From 6fc6804c675895a45310ca21cba3e12ff2083c8b Mon Sep 17 00:00:00 2001 From: "haokang.ke" Date: Thu, 2 Aug 2018 17:19:34 +0800 Subject: [PATCH 1/3] add vendor/ --- .gitignore | 3 +- vendor/github.com/alecthomas/template/LICENSE | 27 + .../github.com/alecthomas/template/README.md | 25 + vendor/github.com/alecthomas/template/doc.go | 406 +++ vendor/github.com/alecthomas/template/exec.go | 845 +++++ .../github.com/alecthomas/template/funcs.go | 598 ++++ .../github.com/alecthomas/template/helper.go | 108 + .../alecthomas/template/parse/lex.go | 556 ++++ .../alecthomas/template/parse/node.go | 834 +++++ .../alecthomas/template/parse/parse.go | 700 +++++ .../alecthomas/template/template.go | 218 ++ vendor/github.com/alecthomas/units/COPYING | 19 + vendor/github.com/alecthomas/units/README.md | 11 + vendor/github.com/alecthomas/units/bytes.go | 83 + vendor/github.com/alecthomas/units/doc.go | 13 + vendor/github.com/alecthomas/units/si.go | 26 + vendor/github.com/alecthomas/units/util.go | 138 + .../aliyun/alibaba-cloud-sdk-go/LICENSE | 201 ++ .../sdk/auth/credential.go | 18 + .../auth/credentials/access_key_credential.go | 34 + .../sdk/auth/credentials/ecs_ram_role.go | 29 + .../credentials/rsa_key_pair_credential.go | 15 + .../sdk/auth/credentials/sts_credential.go | 15 + .../credentials/sts_role_arn_credential.go | 49 + .../sdk/auth/roa_signature_composer.go | 121 + .../sdk/auth/rpc_signature_composer.go | 96 + .../alibaba-cloud-sdk-go/sdk/auth/signer.go | 95 + .../sdk/auth/signers/algorithms.go | 63 + .../sdk/auth/signers/credential_updater.go | 53 + .../sdk/auth/signers/session_credential.go | 7 + .../sdk/auth/signers/signer_access_key.go | 58 + .../sdk/auth/signers/signer_ecs_ram_role.go | 175 ++ .../sdk/auth/signers/signer_key_pair.go | 148 + .../sdk/auth/signers/signer_ram_role_arn.go | 174 ++ .../sdk/auth/signers/signer_sts_token.go | 58 + .../sdk/auth/signers/signer_v2.go | 58 + .../aliyun/alibaba-cloud-sdk-go/sdk/client.go | 417 +++ .../alibaba-cloud-sdk-go/sdk/client_test.go | 573 ++++ .../aliyun/alibaba-cloud-sdk-go/sdk/config.go | 85 + .../sdk/endpoints/endpoints_config.go | 505 +++ .../sdk/endpoints/local_global_resolver.go | 37 + .../sdk/endpoints/local_regional_resolver.go | 41 + .../sdk/endpoints/location_resolver.go | 139 + .../sdk/endpoints/mapping_resolver.go | 39 + .../sdk/endpoints/mapping_resolver_test.go | 19 + .../sdk/endpoints/resolver.go | 80 + .../sdk/endpoints/simple_host_resolver.go | 25 + .../sdk/errors/client_error.go | 92 + .../alibaba-cloud-sdk-go/sdk/errors/error.go | 23 + .../sdk/errors/server_error.go | 122 + .../signature_does_not_match_wrapper.go | 29 + .../alibaba-cloud-sdk-go/sdk/log/log.go | 52 + .../sdk/requests/acs_reqeust.go | 309 ++ .../sdk/requests/common_request.go | 128 + .../sdk/requests/roa_request.go | 144 + .../sdk/requests/rpc_request.go | 81 + .../sdk/requests/types.go | 53 + .../sdk/requests/types_test.go | 50 + .../sdk/resource/tzdata.go | 6 + .../sdk/resource/zoneinfo.go | 1190 +++++++ .../sdk/responses/json_parser.go | 341 ++ .../sdk/responses/json_parser_test.go | 145 + .../sdk/responses/response.go | 137 + .../alibaba-cloud-sdk-go/sdk/utils/utils.go | 117 + .../services/aegis/batch_delete_white_list.go | 105 + .../services/aegis/client.go | 81 + .../services/aegis/create_instance.go | 112 + .../aegis/create_suspicious_export.go | 115 + .../services/aegis/create_user_setting.go | 105 + .../services/aegis/create_user_white_list.go | 106 + .../services/aegis/delete_strategy.go | 105 + .../services/aegis/describe_export_info.go | 114 + .../services/aegis/describe_login_logs.go | 113 + .../services/aegis/describe_mac_config.go | 114 + .../services/aegis/describe_machine_config.go | 113 + .../services/aegis/describe_risk_type.go | 108 + .../aegis/describe_risk_white_list.go | 112 + .../services/aegis/describe_risks.go | 109 + .../aegis/describe_strategy_target.go | 109 + .../services/aegis/describe_stratety.go | 106 + .../aegis/describe_stratety_detail.go | 106 + .../aegis/describe_suspicious_events.go | 115 + .../aegis/describe_suspicious_export_info.go | 114 + .../services/aegis/describe_user_setting.go | 105 + .../services/aegis/describe_vul_details.go | 107 + .../services/aegis/describe_vul_list.go | 116 + .../services/aegis/describe_warning.go | 119 + .../services/aegis/describe_webshell.go | 109 + .../services/aegis/describesummary.go | 119 + .../services/aegis/export_warning.go | 115 + .../services/aegis/get_account_statistics.go | 108 + .../services/aegis/get_crack_statistics.go | 108 + .../services/aegis/get_entity_list.go | 112 + .../services/aegis/get_statistics.go | 108 + .../services/aegis/get_statistics_by_uuid.go | 107 + .../services/aegis/modify_batch_ignore_vul.go | 108 + .../services/aegis/modify_machine_config.go | 110 + .../services/aegis/modify_strategy.go | 113 + .../services/aegis/modify_strategy_target.go | 107 + .../services/aegis/operate_warning.go | 108 + .../services/aegis/query_crack_event.go | 111 + .../services/aegis/query_login_event.go | 111 + .../services/aegis/release_instance.go | 104 + .../services/aegis/renew_instance.go | 109 + .../services/aegis/struct_classifys.go | 21 + .../services/aegis/struct_classifys_item.go | 23 + .../services/aegis/struct_config.go | 31 + .../services/aegis/struct_config_target.go | 23 + ...nfig_targets_in_describe_machine_config.go | 21 + ...uct_config_targets_in_describe_stratety.go | 21 + .../services/aegis/struct_configs.go | 21 + .../services/aegis/struct_cve_list.go | 21 + .../services/aegis/struct_cves.go | 21 + .../services/aegis/struct_cves_item.go | 40 + .../services/aegis/struct_data.go | 29 + .../struct_data_in_get_statistics_by_uuid.go | 21 + .../services/aegis/struct_detail.go | 21 + .../services/aegis/struct_detail_item.go | 23 + .../services/aegis/struct_detail_items.go | 21 + .../services/aegis/struct_detail_list.go | 21 + .../services/aegis/struct_detail_list_item.go | 23 + .../services/aegis/struct_details.go | 21 + .../services/aegis/struct_entity.go | 46 + .../aegis/struct_entity_in_get_entity_list.go | 31 + .../aegis/struct_extend_content_json.go | 31 + .../aegis/struct_list_in_get_entity_list.go | 21 + .../aegis/struct_list_in_query_crack_event.go | 21 + .../aegis/struct_list_in_query_login_event.go | 21 + .../struct_log_list_in_describe_login_logs.go | 21 + ..._log_list_in_describe_suspicious_events.go | 21 + .../services/aegis/struct_log_list_item.go | 46 + .../services/aegis/struct_necessity.go | 28 + .../services/aegis/struct_page_info.go | 24 + .../services/aegis/struct_result.go | 21 + .../services/aegis/struct_risk.go | 27 + .../services/aegis/struct_risk_type.go | 24 + ...truct_risk_type_white_list_query_result.go | 24 + ..._risk_type_white_list_query_result_list.go | 21 + .../services/aegis/struct_risk_types.go | 21 + .../services/aegis/struct_risks.go | 21 + .../services/aegis/struct_rpm_entity_list.go | 21 + .../aegis/struct_rpm_entity_list_item.go | 26 + .../services/aegis/struct_strategie.go | 28 + .../services/aegis/struct_strategies.go | 21 + .../services/aegis/struct_strategy.go | 26 + .../services/aegis/struct_strategy_target.go | 23 + .../services/aegis/struct_strategy_targets.go | 21 + .../services/aegis/struct_sub_type.go | 24 + .../struct_sub_types_in_describe_risk_type.go | 21 + ...t_sub_types_in_describe_stratety_detail.go | 21 + .../services/aegis/struct_target.go | 23 + .../services/aegis/struct_target_list.go | 21 + .../services/aegis/struct_vul_records.go | 21 + .../services/aegis/struct_vul_records_item.go | 39 + .../services/aegis/struct_warning.go | 32 + .../services/aegis/struct_warning_summary.go | 29 + .../services/aegis/struct_warning_summarys.go | 21 + .../services/aegis/struct_warnings.go | 21 + .../services/aegis/struct_webshell_list.go | 21 + .../aegis/struct_webshell_list_item.go | 34 + .../services/aegis/struct_white_list.go | 23 + .../services/aegis/struct_white_lists.go | 21 + .../services/aegis/upgrade_instance.go | 108 + .../alidns/add_batch_domain_records.go | 106 + .../services/alidns/add_domain.go | 112 + .../services/alidns/add_domain_group.go | 107 + .../services/alidns/add_domain_record.go | 112 + .../alidns/apply_for_retrieval_domain_name.go | 106 + .../services/alidns/change_domain_group.go | 108 + .../alidns/change_domain_of_dns_product.go | 108 + .../services/alidns/check_domain_record.go | 109 + .../services/alidns/client.go | 81 + .../alidns/delete_batch_domain_records.go | 106 + .../services/alidns/delete_batch_domains.go | 106 + .../services/alidns/delete_domain.go | 106 + .../services/alidns/delete_domain_group.go | 106 + .../services/alidns/delete_domain_record.go | 106 + .../alidns/delete_sub_domain_records.go | 109 + .../services/alidns/describe_batch_result.go | 110 + .../alidns/describe_dns_product_instance.go | 134 + .../alidns/describe_dns_product_instances.go | 111 + .../alidns/describe_dnsslb_sub_domains.go | 111 + .../services/alidns/describe_domain_groups.go | 111 + .../services/alidns/describe_domain_info.go | 123 + .../services/alidns/describe_domain_logs.go | 114 + .../services/alidns/describe_domain_ns.go | 109 + .../alidns/describe_domain_record_info.go | 119 + .../alidns/describe_domain_records.go | 117 + .../alidns/describe_domain_whois_info.go | 113 + .../services/alidns/describe_domains.go | 112 + .../services/alidns/describe_record_logs.go | 114 + .../alidns/describe_sub_domain_records.go | 112 + .../services/alidns/describe_support_lines.go | 105 + .../services/alidns/get_main_domain_name.go | 108 + .../alidns/modify_hichina_domain_dns.go | 107 + .../services/alidns/retrieval_domain_name.go | 107 + .../services/alidns/set_dnsslb_status.go | 108 + .../alidns/set_domain_record_status.go | 108 + .../services/alidns/struct_available_ttls.go | 21 + .../services/alidns/struct_dns_product.go | 48 + .../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 + ...s_servers_in_describe_domain_whois_info.go | 21 + .../struct_dns_servers_in_describe_domains.go | 21 + .../services/alidns/struct_domain.go | 35 + .../services/alidns/struct_domain_group.go | 23 + .../services/alidns/struct_domain_groups.go | 21 + .../services/alidns/struct_domain_log.go | 26 + .../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_domains.go | 21 + .../alidns/struct_expect_dns_servers.go | 21 + .../services/alidns/struct_fail_result.go | 22 + .../services/alidns/struct_fail_results.go | 21 + .../services/alidns/struct_new_dns_servers.go | 21 + .../alidns/struct_original_dns_servers.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_slb_sub_domain.go | 24 + .../services/alidns/struct_slb_sub_domains.go | 21 + .../services/alidns/struct_status_list.go | 21 + .../alidns/update_batch_domain_records.go | 106 + .../services/alidns/update_dnsslb_weight.go | 108 + .../services/alidns/update_domain_group.go | 108 + .../services/alidns/update_domain_record.go | 112 + .../services/arms/arms_query_data_set.go | 137 + .../services/arms/client.go | 81 + .../services/arms/where_in_dim_query.go | 122 + .../arms4finance/arms_query_data_set.go | 116 + .../services/arms4finance/client.go | 81 + .../arms4finance/where_in_dim_query.go | 118 + .../cbn/associate_cen_bandwidth_package.go | 108 + .../services/cbn/attach_cen_child_instance.go | 111 + .../services/cbn/client.go | 81 + .../services/cbn/create_cen.go | 110 + .../cbn/create_cen_bandwidth_package.go | 118 + .../services/cbn/delete_cen.go | 107 + .../cbn/delete_cen_bandwidth_package.go | 107 + .../describe_cen_attached_child_instances.go | 113 + .../cbn/describe_cen_bandwidth_packages.go | 120 + ...cen_geographic_span_remaining_bandwidth.go | 112 + ...cribe_cen_inter_region_bandwidth_limits.go | 113 + ...escribe_cen_region_domain_route_entries.go | 114 + .../cbn/describe_cen_vbr_health_check.go | 116 + .../services/cbn/describe_cens.go | 119 + .../describe_geographic_region_membership.go | 113 + .../services/cbn/describe_route_conflict.go | 117 + .../services/cbn/detach_cen_child_instance.go | 112 + .../cbn/disable_cen_vbr_health_check.go | 110 + .../cbn/enable_cen_vbr_health_check.go | 112 + .../services/cbn/modify_cen_attribute.go | 109 + .../modify_cen_bandwidth_package_attribute.go | 109 + .../cbn/modify_cen_bandwidth_package_spec.go | 108 + .../set_cen_inter_region_bandwidth_limit.go | 110 + .../services/cbn/struct_cen.go | 26 + .../cbn/struct_cen_bandwidth_package.go | 32 + .../cbn/struct_cen_bandwidth_package_ids.go | 21 + .../cbn/struct_cen_bandwidth_packages.go | 21 + .../services/cbn/struct_cen_ids.go | 21 + ...struct_cen_inter_region_bandwidth_limit.go | 25 + ...truct_cen_inter_region_bandwidth_limits.go | 21 + .../services/cbn/struct_cen_route_entries.go | 21 + .../services/cbn/struct_cen_route_entry.go | 25 + .../services/cbn/struct_cens.go | 21 + .../services/cbn/struct_child_instance.go | 26 + .../services/cbn/struct_child_instances.go | 21 + .../services/cbn/struct_region_id.go | 21 + .../services/cbn/struct_region_ids.go | 21 + .../services/cbn/struct_route_conflict.go | 25 + .../services/cbn/struct_route_conflicts.go | 21 + .../services/cbn/struct_vbr_health_check.go | 27 + .../services/cbn/struct_vbr_health_checks.go | 21 + .../cbn/unassociate_cen_bandwidth_package.go | 108 + .../services/ccc/add_phone_number.go | 111 + .../services/ccc/assign_users.go | 111 + .../services/ccc/client.go | 81 + .../services/ccc/create_skill_group.go | 113 + .../services/ccc/create_user.go | 115 + .../services/ccc/delete_skill_group.go | 108 + .../services/ccc/download_recording.go | 110 + .../services/ccc/get_config.go | 111 + .../services/ccc/get_service_extensions.go | 109 + .../services/ccc/get_user.go | 109 + .../services/ccc/list_call_detail_records.go | 117 + .../services/ccc/list_contact_flows.go | 108 + .../services/ccc/list_phone_numbers.go | 109 + .../services/ccc/list_recordings.go | 115 + .../ccc/list_recordings_by_contact_id.go | 109 + .../services/ccc/list_roles.go | 108 + .../services/ccc/list_skill_groups.go | 108 + .../services/ccc/list_skill_groups_of_user.go | 109 + .../services/ccc/list_users.go | 110 + .../services/ccc/list_users_of_skill_group.go | 111 + .../services/ccc/modify_phone_number.go | 111 + .../services/ccc/modify_skill_group.go | 113 + .../services/ccc/modify_user.go | 114 + .../services/ccc/refresh_token.go | 108 + .../services/ccc/remove_phone_number.go | 108 + .../services/ccc/remove_users.go | 108 + .../services/ccc/request_login_info.go | 108 + .../services/ccc/struct_agents.go | 21 + .../services/ccc/struct_call_detail_agent.go | 30 + .../services/ccc/struct_call_detail_record.go | 34 + .../ccc/struct_call_detail_records.go | 24 + .../services/ccc/struct_config_item.go | 22 + .../services/ccc/struct_contact_flow.go | 28 + .../ccc/struct_contact_flow_version.go | 27 + .../services/ccc/struct_contact_flows.go | 21 + .../services/ccc/struct_detail.go | 25 + ...struct_list_in_list_call_detail_records.go | 21 + .../ccc/struct_list_in_list_recordings.go | 21 + .../services/ccc/struct_list_in_list_users.go | 21 + ...truct_list_in_list_users_of_skill_group.go | 21 + .../services/ccc/struct_login_info.go | 30 + .../ccc/struct_media_download_param.go | 22 + ...ound_phone_numbers_in_list_skill_groups.go | 21 + ...ne_numbers_in_list_skill_groups_of_user.go | 21 + .../services/ccc/struct_phone_number.go | 30 + ...uct_phone_numbers_in_list_contact_flows.go | 21 + ...uct_phone_numbers_in_list_phone_numbers.go | 21 + .../services/ccc/struct_privilege.go | 23 + .../services/ccc/struct_privileges.go | 21 + .../services/ccc/struct_recording.go | 33 + .../services/ccc/struct_recordings.go | 24 + ..._recordings_in_list_call_detail_records.go | 21 + ...rdings_in_list_recordings_by_contact_id.go | 21 + .../services/ccc/struct_role.go | 26 + .../services/ccc/struct_roles_in_get_user.go | 21 + .../ccc/struct_roles_in_list_roles.go | 21 + .../ccc/struct_roles_in_list_users.go | 21 + ...ruct_roles_in_list_users_of_skill_group.go | 21 + .../services/ccc/struct_service_extension.go | 22 + .../services/ccc/struct_service_extensions.go | 21 + .../services/ccc/struct_skill.go | 25 + .../services/ccc/struct_skill_group.go | 28 + .../services/ccc/struct_skill_groups.go | 21 + .../services/ccc/struct_skill_level.go | 23 + .../ccc/struct_skill_levels_in_get_user.go | 21 + ...ill_levels_in_list_skill_groups_of_user.go | 21 + .../ccc/struct_skill_levels_in_list_users.go | 21 + ...ill_levels_in_list_users_of_skill_group.go | 21 + .../services/ccc/struct_token.go | 22 + .../services/ccc/struct_user.go | 27 + .../services/ccc/struct_users.go | 24 + .../services/ccc/struct_versions.go | 21 + .../services/cdn/add_cdn_domain.go | 117 + .../services/cdn/add_fc_trigger.go | 109 + .../cdn/add_live_app_record_config.go | 109 + .../cdn/add_live_app_snapshot_config.go | 111 + .../services/cdn/add_live_domain_mapping.go | 106 + .../services/cdn/add_live_pull_stream_info.go | 110 + .../services/cdn/add_live_stream_transcode.go | 110 + .../cdn/batch_describe_domain_bps_data.go | 112 + .../services/cdn/clear_user_black_list.go | 105 + .../cdn/clear_user_domain_black_list.go | 106 + .../services/cdn/client.go | 81 + .../create_live_stream_record_index_files.go | 113 + .../cdn/delete_cache_expired_config.go | 107 + .../services/cdn/delete_cdn_domain.go | 106 + .../services/cdn/delete_fc_trigger.go | 104 + .../services/cdn/delete_http_header_config.go | 106 + .../cdn/delete_live_app_record_config.go | 106 + .../cdn/delete_live_app_snapshot_config.go | 106 + .../cdn/delete_live_domain_mapping.go | 106 + .../cdn/delete_live_pull_stream_info.go | 107 + .../cdn/delete_live_stream_transcode.go | 108 + .../cdn/describe_cdn_domain_base_detail.go | 106 + .../cdn/describe_cdn_domain_configs.go | 107 + .../cdn/describe_cdn_domain_detail.go | 106 + .../services/cdn/describe_cdn_domain_logs.go | 114 + .../services/cdn/describe_cdn_monitor_data.go | 113 + .../cdn/describe_cdn_region_and_isp.go | 106 + .../services/cdn/describe_cdn_service.go | 110 + .../services/cdn/describe_cdn_types.go | 106 + .../cdn/describe_custom_log_config.go | 109 + .../describe_domain_average_response_time.go | 114 + .../services/cdn/describe_domain_bps_data.go | 123 + .../describe_domain_bps_data_by_time_stamp.go | 111 + .../cdn/describe_domain_cc_attack_info.go | 112 + .../services/cdn/describe_domain_cc_data.go | 112 + .../cdn/describe_domain_certificate_info.go | 105 + .../services/cdn/describe_domain_cname.go | 105 + .../services/cdn/describe_domain_configs.go | 107 + .../cdn/describe_domain_custom_log_config.go | 110 + .../describe_domain_downstream_bps_of_edge.go | 108 + ...scribe_domain_file_size_proportion_data.go | 112 + .../services/cdn/describe_domain_flow_data.go | 118 + .../cdn/describe_domain_hit_rate_data.go | 116 + .../cdn/describe_domain_http_code_data.go | 116 + .../cdn/describe_domain_https_data.go | 115 + .../services/cdn/describe_domain_isp_data.go | 112 + .../cdn/describe_domain_max95_bps_data.go | 113 + .../describe_domain_month_billing_bps_data.go | 120 + .../cdn/describe_domain_online_user_number.go | 108 + .../services/cdn/describe_domain_path_data.go | 118 + .../services/cdn/describe_domain_pv_data.go | 112 + .../services/cdn/describe_domain_qo_s_rt.go | 113 + .../services/cdn/describe_domain_qps_data.go | 118 + .../cdn/describe_domain_real_time_bps_data.go | 109 + ...ibe_domain_real_time_byte_hit_rate_data.go | 107 + .../cdn/describe_domain_real_time_data.go | 113 + .../cdn/describe_domain_real_time_qps_data.go | 109 + ...ribe_domain_real_time_req_hit_rate_data.go | 107 + .../cdn/describe_domain_region_data.go | 112 + .../cdn/describe_domain_req_hit_rate_data.go | 113 + .../cdn/describe_domain_slow_ratio.go | 116 + .../cdn/describe_domain_src_bps_data.go | 114 + .../cdn/describe_domain_src_flow_data.go | 114 + .../cdn/describe_domain_top_refer_visit.go | 110 + .../cdn/describe_domain_top_url_visit.go | 114 + .../describe_domain_upstream_bps_of_edge.go | 108 + .../cdn/describe_domain_upstream_of_center.go | 108 + .../services/cdn/describe_domain_uv_data.go | 112 + .../cdn/describe_domains_by_source.go | 107 + .../cdn/describe_domains_usage_by_day.go | 113 + .../cdn/describe_extensive_domain_data.go | 117 + .../services/cdn/describe_fc_trigger.go | 105 + .../services/cdn/describe_ip_info.go | 110 + .../cdn/describe_l2_vips_by_domain.go | 107 + .../cdn/describe_live_app_record_config.go | 107 + .../cdn/describe_live_pull_stream_config.go | 106 + .../cdn/describe_live_record_config.go | 106 + .../cdn/describe_live_snapshot_config.go | 116 + .../describe_live_specific_domain_mapping.go | 107 + .../cdn/describe_live_stream_bit_rate_data.go | 110 + .../cdn/describe_live_stream_bps_data.go | 110 + .../describe_live_stream_domain_app_info.go | 106 + ...ive_stream_frame_and_bit_rate_by_domain.go | 112 + .../cdn/describe_live_stream_frame_info.go | 110 + .../describe_live_stream_frame_loss_ratio.go | 110 + ...ve_stream_hls_online_user_num_by_domain.go | 114 + .../cdn/describe_live_stream_limit_info.go | 106 + .../cdn/describe_live_stream_number_list.go | 110 + .../cdn/describe_live_stream_online_bps.go | 113 + .../describe_live_stream_online_user_num.go | 112 + ...e_live_stream_online_user_num_by_domain.go | 114 + .../cdn/describe_live_stream_push_data.go | 108 + .../cdn/describe_live_stream_push_errors.go | 108 + .../describe_live_stream_record_content.go | 110 + .../describe_live_stream_record_index_file.go | 109 + ...describe_live_stream_record_index_files.go | 110 + ...escribe_live_stream_relay_push_bit_rate.go | 108 + .../describe_live_stream_relay_push_data.go | 108 + .../describe_live_stream_relay_push_errors.go | 108 + .../cdn/describe_live_stream_room_bit_rate.go | 110 + .../describe_live_stream_room_user_number.go | 112 + .../cdn/describe_live_stream_snapshot_info.go | 112 + .../cdn/describe_live_stream_stream_status.go | 108 + .../describe_live_stream_transcode_info.go | 106 + ...scribe_live_stream_transcode_stream_num.go | 109 + .../cdn/describe_live_streams_block_list.go | 107 + .../describe_live_streams_control_history.go | 109 + ...ve_streams_frame_rate_and_bit_rate_data.go | 110 + .../cdn/describe_live_streams_online_list.go | 114 + .../cdn/describe_live_streams_publish_list.go | 112 + .../services/cdn/describe_one_minute_data.go | 109 + ...be_range_data_by_locate_and_isp_service.go | 110 + .../services/cdn/describe_refresh_quota.go | 112 + .../services/cdn/describe_refresh_tasks.go | 118 + .../cdn/describe_top_domains_by_flow.go | 112 + .../services/cdn/describe_user_configs.go | 106 + .../cdn/describe_user_custom_log_config.go | 106 + .../cdn/describe_user_customer_labels.go | 106 + .../services/cdn/describe_user_domains.go | 119 + .../cdn/describe_user_vips_by_domain.go | 108 + .../services/cdn/forbid_live_stream.go | 109 + .../services/cdn/get_domain.go | 108 + .../cdn/get_user_domain_black_list.go | 107 + .../cdn/list_domains_by_log_config_id.go | 107 + .../cdn/migrate_domain_to_https_delivery.go | 108 + .../services/cdn/modify_cdn_domain.go | 111 + .../services/cdn/modify_cdn_service.go | 105 + .../cdn/modify_domain_custom_log_config.go | 107 + .../cdn/modify_file_cache_expired_config.go | 109 + .../services/cdn/modify_http_header_config.go | 108 + .../cdn/modify_user_custom_log_config.go | 107 + .../services/cdn/open_cdn_service.go | 105 + .../services/cdn/push_object_cache.go | 106 + .../services/cdn/refresh_object_caches.go | 107 + .../services/cdn/resume_live_stream.go | 108 + .../services/cdn/set_cc_config.go | 107 + .../cdn/set_domain_server_certificate.go | 111 + .../services/cdn/set_dynamic_config.go | 110 + .../services/cdn/set_error_page_config.go | 107 + .../cdn/set_file_cache_expired_config.go | 108 + .../set_file_type_force_ttl_code_config.go | 108 + .../services/cdn/set_force_redirect_config.go | 106 + .../services/cdn/set_forward_scheme_config.go | 108 + .../cdn/set_http_error_page_config.go | 107 + .../services/cdn/set_http_header_config.go | 108 + .../services/cdn/set_https_option_config.go | 106 + .../cdn/set_ignore_query_string_config.go | 108 + .../services/cdn/set_ip_allow_list_config.go | 106 + .../services/cdn/set_ip_black_list_config.go | 106 + .../services/cdn/set_l2_oss_key_config.go | 106 + .../cdn/set_live_streams_notify_url_config.go | 106 + .../cdn/set_location_access_restriction.go | 107 + .../services/cdn/set_optimize_config.go | 106 + .../services/cdn/set_oss_log_config.go | 107 + .../services/cdn/set_page_compress_config.go | 106 + .../cdn/set_path_cache_expired_config.go | 108 + .../cdn/set_path_force_ttl_code_config.go | 108 + .../services/cdn/set_range_config.go | 106 + .../services/cdn/set_referer_config.go | 109 + .../cdn/set_remote_req_auth_config.go | 113 + .../cdn/set_remove_query_string_config.go | 107 + .../services/cdn/set_req_auth_config.go | 110 + .../services/cdn/set_req_header_config.go | 108 + .../services/cdn/set_source_host_config.go | 107 + .../cdn/set_user_agent_acess_restriction.go | 107 + .../services/cdn/set_user_black_list.go | 106 + .../cdn/set_user_domain_black_list.go | 106 + .../services/cdn/set_video_seek_config.go | 106 + .../services/cdn/set_waf_config.go | 106 + .../services/cdn/set_waiting_room_config.go | 110 + .../services/cdn/start_cdn_domain.go | 105 + .../services/cdn/start_mix_streams_service.go | 113 + .../services/cdn/stop_cdn_domain.go | 105 + .../services/cdn/stop_mix_streams_service.go | 111 + .../cdn/struct_ali_business_config.go | 24 + .../services/cdn/struct_all_url_list.go | 21 + .../cdn/struct_attack_ip_data_list.go | 21 + .../services/cdn/struct_attack_ip_datas.go | 23 + .../cdn/struct_attacked_url_data_list.go | 21 + .../services/cdn/struct_attacked_url_datas.go | 23 + .../cdn/struct_avg_rt_per_interval.go | 21 + .../services/cdn/struct_bps_data_list.go | 21 + .../services/cdn/struct_bps_data_model.go | 23 + .../cdn/struct_bps_data_per_interval.go | 21 + ...datas_in_batch_describe_domain_bps_data.go | 21 + ..._describe_domain_downstream_bps_of_edge.go | 21 + ...in_describe_domain_upstream_bps_of_edge.go | 21 + ...s_in_describe_domain_upstream_of_center.go | 21 + ..._datas_in_describe_live_stream_bps_data.go | 21 + .../services/cdn/struct_bps_model.go | 22 + .../cdn/struct_byte_hit_rate_data_model.go | 22 + .../cdn/struct_cache_expired_config.go | 26 + .../cdn/struct_cache_expired_configs.go | 21 + .../services/cdn/struct_cc_config.go | 25 + .../services/cdn/struct_cc_data_list.go | 21 + .../services/cdn/struct_cc_datas.go | 22 + .../services/cdn/struct_cdn_monitor_data.go | 26 + .../services/cdn/struct_cdn_task.go | 27 + .../services/cdn/struct_cdn_type.go | 22 + .../services/cdn/struct_cdn_types.go | 21 + .../services/cdn/struct_cert_info.go | 30 + .../services/cdn/struct_cert_infos.go | 21 + .../services/cdn/struct_cname_datas.go | 21 + .../cdn/struct_code_proportion_data.go | 23 + .../services/cdn/struct_config_ids.go | 21 + .../services/cdn/struct_configs.go | 22 + .../services/cdn/struct_content.go | 21 + .../services/cdn/struct_control_info.go | 21 + .../services/cdn/struct_data.go | 26 + ...a_in_describe_domain_real_time_bps_data.go | 21 + ...ibe_domain_real_time_byte_hit_rate_data.go | 21 + ...a_in_describe_domain_real_time_qps_data.go | 21 + ...ribe_domain_real_time_req_hit_rate_data.go | 21 + .../services/cdn/struct_data_module.go | 41 + ...erval_in_describe_domain_real_time_data.go | 21 + ...erval_in_describe_extensive_domain_data.go | 21 + .../services/cdn/struct_domain_app_info.go | 28 + .../services/cdn/struct_domain_app_list.go | 21 + .../cdn/struct_domain_base_detail_model.go | 30 + .../services/cdn/struct_domain_bps_model.go | 22 + .../services/cdn/struct_domain_config.go | 24 + .../services/cdn/struct_domain_configs.go | 47 + ..._configs_in_describe_cdn_domain_configs.go | 21 + .../services/cdn/struct_domain_detail.go | 48 + .../services/cdn/struct_domain_info.go | 25 + .../services/cdn/struct_domain_infos.go | 21 + .../services/cdn/struct_domain_log_detail.go | 25 + .../services/cdn/struct_domain_log_details.go | 21 + .../services/cdn/struct_domain_log_model.go | 22 + .../cdn/struct_domain_mapping_model.go | 22 + .../cdn/struct_domain_mapping_models.go | 21 + .../cdn/struct_domain_transcode_info.go | 26 + .../cdn/struct_domain_transcode_list.go | 21 + .../services/cdn/struct_domains_data.go | 23 + ...t_domains_in_describe_domains_by_source.go | 21 + ...struct_domains_in_describe_user_domains.go | 21 + ...omains_in_list_domains_by_log_config_id.go | 21 + .../services/cdn/struct_domains_list.go | 21 + .../services/cdn/struct_dynamic_config.go | 28 + .../services/cdn/struct_dynamic_configs.go | 21 + .../services/cdn/struct_error_page_config.go | 25 + .../services/cdn/struct_fc_trigger.go | 26 + .../cdn/struct_file_size_proportion_data.go | 22 + ...ruct_file_size_proportion_data_interval.go | 21 + .../cdn/struct_flow_data_per_interval.go | 21 + .../cdn/struct_forward_scheme_config.go | 25 + .../services/cdn/struct_frame_data_infos.go | 21 + .../services/cdn/struct_frame_data_model.go | 28 + .../cdn/struct_frame_loss_ratio_info.go | 23 + .../cdn/struct_frame_loss_ratio_infos.go | 21 + .../struct_frame_rate_and_bit_rate_info.go | 25 + ...s_in_describe_live_stream_bit_rate_data.go | 21 + ...ive_stream_frame_and_bit_rate_by_domain.go | 21 + ...s_in_describe_live_stream_room_bit_rate.go | 21 + ...ve_streams_frame_rate_and_bit_rate_data.go | 21 + .../services/cdn/struct_function_arg.go | 22 + .../services/cdn/struct_function_args.go | 21 + .../cdn/struct_get_domain_detail_model.go | 38 + .../cdn/struct_green_manager_config.go | 25 + .../services/cdn/struct_hit_rate_interval.go | 21 + .../services/cdn/struct_http_code_data.go | 21 + .../cdn/struct_http_error_page_config.go | 24 + .../cdn/struct_http_error_page_configs.go | 21 + .../services/cdn/struct_http_header_config.go | 24 + .../cdn/struct_http_header_configs.go | 21 + .../cdn/struct_https_option_config.go | 23 + .../cdn/struct_https_statistics_info.go | 62 + .../cdn/struct_https_statistics_infos.go | 21 + .../cdn/struct_ignore_query_string_config.go | 24 + .../cdn/struct_ip_allow_list_config.go | 24 + .../services/cdn/struct_isp.go | 22 + .../cdn/struct_isp_proportion_data.go | 34 + .../services/cdn/struct_isps.go | 21 + .../services/cdn/struct_l2_oss_key_config.go | 23 + .../services/cdn/struct_live_app_record.go | 30 + ...ist_in_describe_live_pull_stream_config.go | 21 + ...ord_list_in_describe_live_record_config.go | 21 + .../cdn/struct_live_stream_control_info.go | 24 + .../cdn/struct_live_stream_online_bps_info.go | 24 + .../struct_live_stream_online_bps_infos.go | 21 + .../cdn/struct_live_stream_online_info.go | 25 + ...struct_live_stream_online_user_num_info.go | 23 + ...truct_live_stream_online_user_num_infos.go | 21 + .../cdn/struct_live_stream_publish_info.go | 29 + .../cdn/struct_live_stream_snapshot_config.go | 28 + ...struct_live_stream_snapshot_config_list.go | 21 + .../cdn/struct_live_stream_snapshot_info.go | 24 + .../struct_live_stream_snapshot_info_list.go | 21 + .../services/cdn/struct_lock_reason.go | 21 + .../services/cdn/struct_mac_service_config.go | 25 + .../services/cdn/struct_mix_streams_info.go | 23 + ..._info_list_in_start_mix_streams_service.go | 21 + ...s_info_list_in_stop_mix_streams_service.go | 21 + .../services/cdn/struct_monitor_datas.go | 21 + .../services/cdn/struct_notify_url_config.go | 22 + .../services/cdn/struct_online_info.go | 21 + ...ve_stream_hls_online_user_num_by_domain.go | 21 + ...in_describe_live_stream_online_user_num.go | 21 + ...e_live_stream_online_user_num_by_domain.go | 21 + ...n_describe_live_stream_room_user_number.go | 21 + .../services/cdn/struct_operation_locks.go | 21 + .../services/cdn/struct_optimize_config.go | 23 + .../services/cdn/struct_oss_log_config.go | 23 + .../cdn/struct_page_compress_config.go | 23 + .../services/cdn/struct_page_data.go | 32 + .../cdn/struct_path_data_per_interval.go | 21 + .../services/cdn/struct_publish_info.go | 21 + .../services/cdn/struct_push_errors_model.go | 21 + .../cdn/struct_push_errors_model_list.go | 21 + .../services/cdn/struct_push_stream_model.go | 27 + .../cdn/struct_push_stream_model_list.go | 21 + .../services/cdn/struct_pv_data_interval.go | 21 + .../services/cdn/struct_qps_data_interval.go | 21 + .../services/cdn/struct_qps_model.go | 22 + .../services/cdn/struct_range_config.go | 23 + .../cdn/struct_record_content_info.go | 26 + .../cdn/struct_record_content_info_list.go | 21 + .../services/cdn/struct_record_index_info.go | 32 + .../cdn/struct_record_index_info_list.go | 21 + .../services/cdn/struct_record_info.go | 26 + .../cdn/struct_redirect_type_config.go | 21 + .../services/cdn/struct_refer_list.go | 25 + .../services/cdn/struct_referer_config.go | 26 + .../services/cdn/struct_region.go | 22 + .../cdn/struct_region_proportion_data.go | 34 + .../services/cdn/struct_regions.go | 21 + .../cdn/struct_relay_push_bit_rate_model.go | 26 + .../struct_relay_push_bit_rate_model_list.go | 21 + .../cdn/struct_relay_push_detail_model.go | 27 + .../struct_relay_push_detail_model_list.go | 21 + .../cdn/struct_relay_push_errors_model.go | 21 + .../struct_relay_push_errors_model_list.go | 21 + .../cdn/struct_remove_query_string_config.go | 23 + .../services/cdn/struct_req_auth_config.go | 30 + .../services/cdn/struct_req_header_config.go | 24 + .../services/cdn/struct_req_header_configs.go | 21 + .../cdn/struct_req_hit_rate_data_model.go | 22 + .../cdn/struct_req_hit_rate_interval.go | 21 + .../services/cdn/struct_set_vars_config.go | 24 + .../services/cdn/struct_set_vars_configs.go | 21 + .../services/cdn/struct_slow_ratio_data.go | 28 + .../struct_slow_ratio_data_per_interval.go | 21 + .../services/cdn/struct_source.go | 30 + .../services/cdn/struct_source_model.go | 25 + .../services/cdn/struct_source_models.go | 21 + ...rces_in_describe_cdn_domain_base_detail.go | 21 + ...t_sources_in_describe_cdn_domain_detail.go | 21 + ...struct_sources_in_describe_user_domains.go | 21 + .../cdn/struct_sources_in_get_domain.go | 21 + .../cdn/struct_src_bps_data_per_interval.go | 21 + .../cdn/struct_src_flow_data_per_interval.go | 21 + .../services/cdn/struct_src_host_config.go | 23 + .../services/cdn/struct_stream_number_info.go | 22 + .../cdn/struct_stream_number_infos.go | 21 + .../services/cdn/struct_stream_urls.go | 21 + .../services/cdn/struct_supply_bps_datas.go | 21 + .../services/cdn/struct_tasks.go | 21 + .../services/cdn/struct_top_domain.go | 27 + .../services/cdn/struct_top_domains.go | 21 + .../services/cdn/struct_top_refer_list.go | 21 + .../services/cdn/struct_url200_list.go | 21 + .../services/cdn/struct_url300_list.go | 21 + .../services/cdn/struct_url400_list.go | 21 + .../services/cdn/struct_url500_list.go | 21 + .../services/cdn/struct_url_list.go | 25 + .../services/cdn/struct_usage_by_day.go | 30 + .../services/cdn/struct_usage_by_days.go | 21 + .../services/cdn/struct_usage_data.go | 26 + ...scribe_domain_file_size_proportion_data.go | 22 + ..._data_in_describe_domain_http_code_data.go | 22 + ..._data_in_describe_extensive_domain_data.go | 24 + .../services/cdn/struct_usage_total.go | 28 + .../services/cdn/struct_user_limit_lists.go | 21 + .../services/cdn/struct_user_limit_mode.go | 23 + .../services/cdn/struct_uv_data_interval.go | 21 + ...scribe_domain_file_size_proportion_data.go | 21 + ...value_in_describe_domain_http_code_data.go | 21 + ...truct_value_in_describe_domain_isp_data.go | 21 + ...ct_value_in_describe_domain_region_data.go | 21 + .../services/cdn/struct_video_seek_config.go | 23 + ...ruct_vips_in_describe_l2_vips_by_domain.go | 21 + ...ct_vips_in_describe_user_vips_by_domain.go | 21 + .../services/cdn/struct_waf_config.go | 23 + .../services/cdn/update_fc_trigger.go | 107 + .../cdn/update_live_app_snapshot_config.go | 111 + .../services/chatbot/chat.go | 114 + .../services/chatbot/client.go | 81 + .../services/chatbot/struct_knowledge.go | 25 + .../services/chatbot/struct_message.go | 24 + .../services/chatbot/struct_messages.go | 21 + .../services/chatbot/struct_recommend.go | 25 + .../services/chatbot/struct_recommends.go | 21 + .../services/chatbot/struct_text.go | 22 + .../services/cloudapi/abolish_api.go | 105 + .../services/cloudapi/add_catalog_relation.go | 104 + .../cloudapi/add_catalog_relations.go | 104 + .../cloudapi/add_ip_control_policy_item.go | 106 + .../cloudapi/add_traffic_special_control.go | 106 + .../cloudapi/clear_catalog_relations.go | 103 + .../services/cloudapi/client.go | 81 + .../services/cloudapi/create_api.go | 123 + .../services/cloudapi/create_api_group.go | 108 + .../cloudapi/create_api_stage_variable.go | 108 + .../services/cloudapi/create_app.go | 105 + .../services/cloudapi/create_catalog.go | 106 + .../services/cloudapi/create_ip_control.go | 113 + .../services/cloudapi/create_log_config.go | 105 + .../services/cloudapi/create_signature.go | 107 + .../cloudapi/create_traffic_control.go | 109 + .../delete_all_traffic_special_control.go | 103 + .../services/cloudapi/delete_api.go | 104 + .../services/cloudapi/delete_api_group.go | 103 + .../cloudapi/delete_api_stage_variable.go | 105 + .../services/cloudapi/delete_app.go | 103 + .../services/cloudapi/delete_catalog.go | 103 + .../services/cloudapi/delete_domain.go | 104 + .../cloudapi/delete_domain_certificate.go | 105 + .../services/cloudapi/delete_ip_control.go | 103 + .../services/cloudapi/delete_log_config.go | 103 + .../services/cloudapi/delete_signature.go | 103 + .../cloudapi/delete_traffic_control.go | 103 + .../delete_traffic_special_control.go | 105 + .../services/cloudapi/deploy_api.go | 106 + .../services/cloudapi/describe_api.go | 133 + .../services/cloudapi/describe_api_doc.go | 122 + .../cloudapi/describe_api_error_data.go | 108 + .../services/cloudapi/describe_api_group.go | 116 + .../services/cloudapi/describe_api_groups.go | 110 + .../cloudapi/describe_api_histories.go | 112 + .../services/cloudapi/describe_api_history.go | 133 + .../cloudapi/describe_api_ip_controls.go | 111 + .../cloudapi/describe_api_latency_data.go | 107 + .../cloudapi/describe_api_qps_data.go | 108 + .../cloudapi/describe_api_signatures.go | 111 + .../services/cloudapi/describe_api_stage.go | 111 + .../cloudapi/describe_api_traffic_controls.go | 111 + .../cloudapi/describe_api_traffic_data.go | 108 + .../services/cloudapi/describe_apis.go | 113 + .../services/cloudapi/describe_apis_by_app.go | 109 + .../cloudapi/describe_apis_by_ip_control.go | 109 + .../cloudapi/describe_apis_by_signature.go | 109 + .../describe_apis_by_traffic_control.go | 109 + .../cloudapi/describe_app_attributes.go | 109 + .../cloudapi/describe_app_security.go | 107 + .../services/cloudapi/describe_apps.go | 110 + .../cloudapi/describe_authorized_apis.go | 109 + .../cloudapi/describe_authorized_apps.go | 111 + .../services/cloudapi/describe_catalog.go | 111 + .../services/cloudapi/describe_catalogs.go | 106 + .../cloudapi/describe_deployed_api.go | 130 + .../cloudapi/describe_deployed_apis.go | 112 + .../services/cloudapi/describe_domain.go | 116 + .../cloudapi/describe_domains_resolution.go | 106 + .../cloudapi/describe_history_apis.go | 112 + .../describe_ip_control_policy_items.go | 110 + .../services/cloudapi/describe_ip_controls.go | 111 + .../services/cloudapi/describe_log_config.go | 104 + .../cloudapi/describe_purchased_api_group.go | 110 + .../cloudapi/describe_purchased_api_groups.go | 108 + .../cloudapi/describe_purchased_apis.go | 113 + .../services/cloudapi/describe_regions.go | 103 + .../services/cloudapi/describe_signatures.go | 110 + .../cloudapi/describe_signatures_by_api.go | 106 + .../cloudapi/describe_system_parameters.go | 103 + .../cloudapi/describe_traffic_controls.go | 113 + .../describe_traffic_controls_by_api.go | 106 + .../cloudapi/describe_vpc_accesses.go | 108 + .../services/cloudapi/modify_api.go | 123 + .../services/cloudapi/modify_api_group.go | 109 + .../services/cloudapi/modify_app.go | 105 + .../services/cloudapi/modify_catalog.go | 105 + .../services/cloudapi/modify_ip_control.go | 105 + .../cloudapi/modify_ip_control_policy_item.go | 106 + .../services/cloudapi/modify_log_config.go | 105 + .../services/cloudapi/modify_signature.go | 108 + .../cloudapi/modify_traffic_control.go | 109 + .../services/cloudapi/reactivate_domain.go | 104 + .../cloudapi/remove_apis_authorities.go | 107 + .../cloudapi/remove_apps_authorities.go | 106 + .../cloudapi/remove_catalog_relation.go | 104 + .../cloudapi/remove_catalog_relations.go | 103 + .../cloudapi/remove_ip_control_apis.go | 106 + .../cloudapi/remove_ip_control_policy_item.go | 104 + .../cloudapi/remove_signature_apis.go | 106 + .../cloudapi/remove_traffic_control_apis.go | 106 + .../services/cloudapi/remove_vpc_access.go | 105 + .../services/cloudapi/reset_app_secret.go | 103 + .../services/cloudapi/sdk_generate.go | 106 + .../services/cloudapi/sdk_generate_by_app.go | 105 + .../cloudapi/sdk_generate_by_group.go | 105 + .../services/cloudapi/set_apis_authorities.go | 107 + .../services/cloudapi/set_apps_authorities.go | 107 + .../services/cloudapi/set_domain.go | 114 + .../cloudapi/set_domain_certificate.go | 107 + .../cloudapi/set_domain_web_socket_status.go | 105 + .../services/cloudapi/set_ip_control_apis.go | 106 + .../services/cloudapi/set_signature_apis.go | 106 + .../cloudapi/set_traffic_control_apis.go | 106 + .../services/cloudapi/set_vpc_access.go | 106 + .../cloudapi/struct_api_group_attribute.go | 30 + .../cloudapi/struct_api_group_attributes.go | 21 + .../services/cloudapi/struct_api_his_item.go | 30 + ...api_his_items_in_describe_api_histories.go | 21 + ..._api_his_items_in_describe_history_apis.go | 21 + .../services/cloudapi/struct_api_ids.go | 21 + .../services/cloudapi/struct_api_info.go | 29 + ...pi_infos_in_describe_apis_by_ip_control.go | 21 + ...api_infos_in_describe_apis_by_signature.go | 21 + ...fos_in_describe_apis_by_traffic_control.go | 21 + .../cloudapi/struct_api_ip_control_item.go | 25 + .../cloudapi/struct_api_ip_controls.go | 21 + .../cloudapi/struct_api_signature_item.go | 25 + .../cloudapi/struct_api_signatures.go | 21 + .../services/cloudapi/struct_api_summary.go | 29 + .../services/cloudapi/struct_api_summarys.go | 21 + .../struct_api_traffic_control_item.go | 25 + .../cloudapi/struct_api_traffic_controls.go | 21 + .../cloudapi/struct_app_api_relation_info.go | 30 + .../cloudapi/struct_app_api_relation_infos.go | 21 + .../services/cloudapi/struct_app_attribute.go | 25 + .../services/cloudapi/struct_app_item.go | 23 + .../struct_apps_in_describe_app_attributes.go | 21 + .../cloudapi/struct_apps_in_describe_apps.go | 21 + .../cloudapi/struct_authorized_api.go | 30 + .../cloudapi/struct_authorized_apis.go | 21 + .../cloudapi/struct_authorized_app.go | 27 + .../cloudapi/struct_authorized_apps.go | 21 + .../cloudapi/struct_call_downloads.go | 21 + .../services/cloudapi/struct_call_fails.go | 21 + .../services/cloudapi/struct_call_latencys.go | 21 + .../cloudapi/struct_call_successes.go | 21 + .../services/cloudapi/struct_call_uploads.go | 21 + .../cloudapi/struct_catalog_attribute.go | 27 + .../cloudapi/struct_catalog_attributes.go | 21 + .../services/cloudapi/struct_client_errors.go | 21 + .../cloudapi/struct_constant_parameter.go | 24 + ...uct_constant_parameters_in_describe_api.go | 21 + ...tant_parameters_in_describe_api_history.go | 21 + ...ant_parameters_in_describe_deployed_api.go | 21 + .../cloudapi/struct_custom_domains.go | 21 + .../struct_custom_system_parameter.go | 25 + ...ustom_system_parameters_in_describe_api.go | 21 + ...stem_parameters_in_describe_api_history.go | 21 + ...tem_parameters_in_describe_deployed_api.go | 21 + .../cloudapi/struct_deployed_api_item.go | 29 + .../services/cloudapi/struct_deployed_apis.go | 21 + .../services/cloudapi/struct_deployed_info.go | 23 + .../cloudapi/struct_deployed_infos.go | 21 + .../services/cloudapi/struct_domain_item.go | 28 + .../cloudapi/struct_domain_resolution.go | 22 + .../cloudapi/struct_domain_resolutions.go | 21 + .../services/cloudapi/struct_domains.go | 21 + .../cloudapi/struct_error_code_sample.go | 23 + ...ruct_error_code_samples_in_describe_api.go | 21 + ..._error_code_samples_in_describe_api_doc.go | 21 + ...or_code_samples_in_describe_api_history.go | 21 + ...r_code_samples_in_describe_deployed_api.go | 21 + .../cloudapi/struct_ip_control_info.go | 27 + .../cloudapi/struct_ip_control_infos.go | 21 + .../cloudapi/struct_ip_control_policy_item.go | 25 + .../struct_ip_control_policy_items.go | 21 + .../services/cloudapi/struct_log_info.go | 24 + .../services/cloudapi/struct_log_infos.go | 21 + .../services/cloudapi/struct_monitor_item.go | 22 + .../cloudapi/struct_open_id_connect_config.go | 24 + .../services/cloudapi/struct_purchased_api.go | 28 + .../struct_purchased_api_group_attribute.go | 29 + .../struct_purchased_api_group_attributes.go | 21 + .../cloudapi/struct_purchased_apis.go | 21 + .../services/cloudapi/struct_region.go | 23 + .../services/cloudapi/struct_regions.go | 21 + .../cloudapi/struct_request_config.go | 26 + .../cloudapi/struct_request_parameter.go | 36 + ...ruct_request_parameters_in_describe_api.go | 21 + ..._request_parameters_in_describe_api_doc.go | 21 + ...uest_parameters_in_describe_api_history.go | 21 + ...est_parameters_in_describe_deployed_api.go | 21 + .../cloudapi/struct_result_description.go | 28 + ...uct_result_descriptions_in_describe_api.go | 21 + ...result_descriptions_in_describe_api_doc.go | 21 + ...lt_descriptions_in_describe_api_history.go | 21 + ...t_descriptions_in_describe_deployed_api.go | 21 + .../cloudapi/struct_route_rule_item.go | 24 + .../services/cloudapi/struct_route_rules.go | 21 + .../services/cloudapi/struct_server_errors.go | 21 + .../cloudapi/struct_service_config.go | 31 + .../cloudapi/struct_service_parameter.go | 23 + .../cloudapi/struct_service_parameter_map.go | 22 + ...ruct_service_parameters_in_describe_api.go | 21 + ...vice_parameters_in_describe_api_history.go | 21 + ...ice_parameters_in_describe_deployed_api.go | 21 + ..._service_parameters_map_in_describe_api.go | 21 + ..._parameters_map_in_describe_api_history.go | 21 + ...parameters_map_in_describe_deployed_api.go | 21 + .../cloudapi/struct_signature_info.go | 27 + .../cloudapi/struct_signature_infos.go | 21 + .../cloudapi/struct_signature_item.go | 23 + .../services/cloudapi/struct_signatures.go | 21 + .../services/cloudapi/struct_special.go | 22 + .../cloudapi/struct_special_policies.go | 21 + .../cloudapi/struct_special_policy.go | 22 + .../services/cloudapi/struct_specials.go | 21 + .../services/cloudapi/struct_stage_info.go | 23 + .../services/cloudapi/struct_stage_items.go | 21 + .../cloudapi/struct_stage_route_model.go | 26 + .../cloudapi/struct_system_param_item.go | 24 + .../cloudapi/struct_system_parameter.go | 25 + ...truct_system_parameters_in_describe_api.go | 21 + ...stem_parameters_in_describe_api_history.go | 21 + ...tem_parameters_in_describe_deployed_api.go | 21 + .../services/cloudapi/struct_system_params.go | 21 + .../cloudapi/struct_traffic_control.go | 30 + .../cloudapi/struct_traffic_control_item.go | 23 + .../cloudapi/struct_traffic_control_items.go | 21 + .../cloudapi/struct_traffic_controls.go | 21 + .../services/cloudapi/struct_variable_item.go | 24 + .../services/cloudapi/struct_variables.go | 21 + .../cloudapi/struct_vpc_access_attribute.go | 26 + .../cloudapi/struct_vpc_access_attributes.go | 21 + .../services/cloudapi/struct_vpc_config.go | 24 + .../services/cloudapi/switch_api.go | 107 + .../services/cloudauth/client.go | 81 + .../services/cloudauth/compare_faces.go | 112 + .../cloudauth/detect_face_attributes.go | 114 + .../services/cloudauth/get_materials.go | 110 + .../services/cloudauth/get_status.go | 110 + .../services/cloudauth/get_verify_token.go | 112 + .../services/cloudauth/struct_data.go | 41 + .../cloudauth/struct_face_attributes.go | 28 + .../struct_face_attributes_detect_info.go | 22 + .../services/cloudauth/struct_face_infos.go | 21 + .../services/cloudauth/struct_face_rect.go | 24 + .../services/cloudauth/struct_gender.go | 22 + .../services/cloudauth/struct_headpose.go | 23 + .../services/cloudauth/struct_smiling.go | 22 + .../services/cloudauth/struct_sts_token.go | 27 + .../cloudauth/struct_verify_status.go | 23 + .../services/cloudauth/struct_verify_token.go | 22 + .../services/cloudauth/submit_materials.go | 116 + .../services/cloudphoto/activate_photos.go | 109 + .../services/cloudphoto/add_album_photos.go | 110 + .../services/cloudphoto/client.go | 81 + .../services/cloudphoto/create_album.go | 110 + .../services/cloudphoto/create_event.go | 117 + .../services/cloudphoto/create_photo.go | 116 + .../services/cloudphoto/create_photo_store.go | 109 + .../services/cloudphoto/create_transaction.go | 112 + .../services/cloudphoto/delete_albums.go | 109 + .../services/cloudphoto/delete_event.go | 108 + .../services/cloudphoto/delete_faces.go | 109 + .../services/cloudphoto/delete_photo_store.go | 106 + .../services/cloudphoto/delete_photos.go | 109 + .../services/cloudphoto/edit_event.go | 118 + .../services/cloudphoto/edit_photo_store.go | 111 + .../services/cloudphoto/edit_photos.go | 113 + .../cloudphoto/fetch_album_tag_photos.go | 113 + .../services/cloudphoto/fetch_libraries.go | 110 + .../cloudphoto/fetch_moment_photos.go | 114 + .../services/cloudphoto/fetch_photos.go | 114 + .../cloudphoto/get_albums_by_names.go | 109 + .../services/cloudphoto/get_download_url.go | 109 + .../services/cloudphoto/get_download_urls.go | 109 + .../services/cloudphoto/get_event.go | 109 + .../cloudphoto/get_framed_photo_urls.go | 110 + .../services/cloudphoto/get_library.go | 108 + .../services/cloudphoto/get_photo_store.go | 107 + .../services/cloudphoto/get_photos.go | 109 + .../services/cloudphoto/get_photos_by_md5s.go | 110 + .../cloudphoto/get_private_access_urls.go | 110 + .../cloudphoto/get_public_access_urls.go | 111 + .../services/cloudphoto/get_quota.go | 108 + .../services/cloudphoto/get_similar_photos.go | 109 + .../services/cloudphoto/get_thumbnail.go | 110 + .../services/cloudphoto/get_thumbnails.go | 110 + .../services/cloudphoto/get_video_cover.go | 110 + .../services/cloudphoto/inactivate_photos.go | 110 + .../services/cloudphoto/like_photo.go | 108 + .../services/cloudphoto/list_album_photos.go | 115 + .../services/cloudphoto/list_albums.go | 114 + .../services/cloudphoto/list_events.go | 113 + .../services/cloudphoto/list_face_photos.go | 115 + .../services/cloudphoto/list_faces.go | 115 + .../services/cloudphoto/list_moment_photos.go | 115 + .../services/cloudphoto/list_moments.go | 114 + .../services/cloudphoto/list_photo_faces.go | 109 + .../services/cloudphoto/list_photo_stores.go | 106 + .../services/cloudphoto/list_photo_tags.go | 110 + .../services/cloudphoto/list_photos.go | 114 + .../cloudphoto/list_registered_tags.go | 108 + .../services/cloudphoto/list_tag_photos.go | 115 + .../services/cloudphoto/list_tags.go | 109 + .../cloudphoto/list_time_line_photos.go | 116 + .../services/cloudphoto/list_time_lines.go | 116 + .../services/cloudphoto/merge_faces.go | 110 + .../services/cloudphoto/move_album_photos.go | 111 + .../services/cloudphoto/move_face_photos.go | 111 + .../services/cloudphoto/reactivate_photos.go | 109 + .../services/cloudphoto/register_photo.go | 119 + .../services/cloudphoto/register_tag.go | 109 + .../cloudphoto/remove_album_photos.go | 110 + .../services/cloudphoto/remove_face_photos.go | 110 + .../services/cloudphoto/rename_album.go | 109 + .../services/cloudphoto/rename_face.go | 109 + .../services/cloudphoto/search_photos.go | 112 + .../services/cloudphoto/set_album_cover.go | 109 + .../services/cloudphoto/set_face_cover.go | 109 + .../services/cloudphoto/set_me.go | 108 + .../services/cloudphoto/set_quota.go | 108 + .../services/cloudphoto/struct_album.go | 29 + .../struct_albums_in_get_albums_by_names.go | 21 + .../struct_albums_in_list_albums.go | 21 + .../cloudphoto/struct_auto_clean_config.go | 22 + .../cloudphoto/struct_axis_in_list_faces.go | 21 + .../struct_axis_in_list_photo_faces.go | 21 + .../services/cloudphoto/struct_bucket.go | 24 + .../struct_buckets_in_get_photo_store.go | 21 + .../struct_buckets_in_list_photo_stores.go | 21 + .../services/cloudphoto/struct_cover.go | 32 + .../services/cloudphoto/struct_event.go | 35 + .../services/cloudphoto/struct_events.go | 21 + .../services/cloudphoto/struct_face.go | 33 + .../cloudphoto/struct_faces_in_list_faces.go | 21 + .../struct_faces_in_list_photo_faces.go | 21 + .../services/cloudphoto/struct_libraries.go | 21 + .../services/cloudphoto/struct_library.go | 24 + .../services/cloudphoto/struct_moment.go | 28 + .../services/cloudphoto/struct_moments.go | 21 + .../services/cloudphoto/struct_photo.go | 38 + .../services/cloudphoto/struct_photo_store.go | 31 + .../cloudphoto/struct_photo_stores.go | 21 + .../struct_photos_in_fetch_moment_photos.go | 21 + .../struct_photos_in_fetch_photos.go | 21 + .../cloudphoto/struct_photos_in_get_photos.go | 21 + .../struct_photos_in_get_photos_by_md5s.go | 21 + .../struct_photos_in_get_similar_photos.go | 21 + .../struct_photos_in_list_photos.go | 21 + .../struct_photos_in_list_time_line_photos.go | 21 + .../struct_photos_in_list_time_lines.go | 21 + .../struct_photos_in_search_photos.go | 21 + .../services/cloudphoto/struct_quota.go | 28 + .../cloudphoto/struct_registered_tag.go | 22 + .../cloudphoto/struct_registered_tags.go | 21 + .../services/cloudphoto/struct_result.go | 32 + .../struct_results_in_activate_photos.go | 21 + .../struct_results_in_add_album_photos.go | 21 + .../struct_results_in_delete_albums.go | 21 + .../struct_results_in_delete_faces.go | 21 + .../struct_results_in_delete_photos.go | 21 + .../struct_results_in_edit_photos.go | 21 + ...truct_results_in_fetch_album_tag_photos.go | 21 + .../struct_results_in_get_download_urls.go | 21 + ...struct_results_in_get_framed_photo_urls.go | 21 + ...ruct_results_in_get_private_access_urls.go | 21 + ...truct_results_in_get_public_access_urls.go | 21 + .../struct_results_in_get_thumbnails.go | 21 + .../struct_results_in_inactivate_photos.go | 21 + .../struct_results_in_list_album_photos.go | 21 + .../struct_results_in_list_face_photos.go | 21 + .../struct_results_in_list_moment_photos.go | 21 + .../struct_results_in_list_tag_photos.go | 21 + .../struct_results_in_merge_faces.go | 21 + .../struct_results_in_move_album_photos.go | 21 + .../struct_results_in_move_face_photos.go | 21 + .../struct_results_in_reactivate_photos.go | 21 + .../struct_results_in_remove_album_photos.go | 21 + .../struct_results_in_remove_face_photos.go | 21 + .../services/cloudphoto/struct_tag.go | 26 + .../services/cloudphoto/struct_tag_value.go | 22 + .../services/cloudphoto/struct_tag_values.go | 21 + .../struct_tags_in_list_photo_tags.go | 21 + .../cloudphoto/struct_tags_in_list_tags.go | 21 + .../services/cloudphoto/struct_time_line.go | 25 + .../services/cloudphoto/struct_time_lines.go | 21 + .../services/cloudphoto/struct_transaction.go | 21 + .../services/cloudphoto/struct_upload.go | 28 + .../services/cloudphoto/tag_photo.go | 110 + .../services/cloudphoto/toggle_features.go | 108 + .../services/cms/access_key_get.go | 109 + .../services/cms/add_my_group_instances.go | 107 + .../services/cms/apply_template.go | 113 + .../services/cms/client.go | 81 + .../services/cms/create_alarm.go | 121 + .../services/cms/create_my_groups.go | 112 + .../services/cms/create_notify_policy.go | 111 + .../services/cms/create_task.go | 115 + .../services/cms/delete_alarm.go | 106 + .../services/cms/delete_custom_metric.go | 109 + .../services/cms/delete_event_rule.go | 107 + .../services/cms/delete_event_targets.go | 107 + .../services/cms/delete_group_dynamic_rule.go | 107 + .../services/cms/delete_my_group_instances.go | 108 + .../services/cms/delete_my_groups.go | 107 + .../services/cms/delete_notify_policy.go | 110 + .../services/cms/delete_tasks.go | 108 + .../services/cms/describe_alarm_history.go | 120 + .../services/cms/describe_alarms.go | 119 + .../cms/describe_alarms_for_resources.go | 117 + .../services/cms/describe_contact.go | 107 + .../services/cms/describe_event_rule.go | 107 + .../services/cms/describe_isp_area_city.go | 108 + .../services/cms/describe_task_detail.go | 107 + .../services/cms/describe_tasks.go | 114 + .../services/cms/disable_active_alert.go | 107 + .../services/cms/disable_alarm.go | 106 + .../services/cms/disable_event_rule.go | 107 + .../services/cms/enable_active_alert.go | 107 + .../services/cms/enable_alarm.go | 106 + .../services/cms/enable_event_rule.go | 107 + .../services/cms/get_contacts.go | 108 + .../services/cms/get_my_groups.go | 112 + .../services/cms/get_notify_policy.go | 110 + .../services/cms/list_active_alert_rule.go | 108 + .../services/cms/list_alarm.go | 116 + .../services/cms/list_alarm_history.go | 112 + .../services/cms/list_contact_group.go | 110 + .../services/cms/list_event_rules.go | 113 + .../cms/list_event_targets_by_rule.go | 109 + .../services/cms/list_group_dynamic_rule.go | 110 + .../services/cms/list_my_group_categories.go | 107 + .../services/cms/list_my_group_instances.go | 116 + .../cms/list_my_group_instances_details.go | 116 + .../services/cms/list_my_groups.go | 117 + .../services/cms/list_notify_policy.go | 112 + .../cms/list_product_of_active_alert.go | 107 + .../services/cms/modify_task.go | 114 + .../services/cms/node_install.go | 108 + .../services/cms/node_list.go | 119 + .../services/cms/node_process_create.go | 111 + .../services/cms/node_process_delete.go | 108 + .../services/cms/node_processes.go | 107 + .../services/cms/node_status.go | 109 + .../services/cms/node_status_list.go | 107 + .../services/cms/node_uninstall.go | 106 + .../services/cms/profile_get.go | 110 + .../services/cms/profile_set.go | 109 + .../services/cms/put_custom_metric.go | 106 + .../services/cms/put_event.go | 106 + .../services/cms/put_event_rule.go | 120 + .../services/cms/put_event_targets.go | 148 + .../services/cms/put_group_dynamic_rule.go | 107 + .../services/cms/put_metric_alarm.go | 130 + .../services/cms/query_custom_event_count.go | 107 + .../services/cms/query_custom_event_detail.go | 107 + .../cms/query_custom_event_histogram.go | 107 + .../services/cms/query_custom_metric_list.go | 111 + .../services/cms/query_metric_data.go | 115 + .../services/cms/query_metric_last.go | 118 + .../services/cms/query_metric_list.go | 117 + .../services/cms/query_metric_top.go | 117 + .../services/cms/query_system_event_count.go | 107 + .../services/cms/query_system_event_detail.go | 107 + .../cms/query_system_event_histogram.go | 107 + .../services/cms/send_dry_run_system_event.go | 110 + .../services/cms/start_tasks.go | 107 + .../services/cms/stop_tasks.go | 107 + .../services/cms/struct_alarm.go | 44 + .../services/cms/struct_alarm_history.go | 33 + ...alarm_history_in_describe_alarm_history.go | 44 + ..._history_list_in_describe_alarm_history.go | 21 + ...larm_history_list_in_list_alarm_history.go | 21 + .../struct_alarm_in_list_active_alert_rule.go | 38 + .../cms/struct_alarm_in_list_alarm.go | 38 + .../services/cms/struct_alarm_list.go | 21 + .../services/cms/struct_alert_result.go | 26 + .../services/cms/struct_category.go | 22 + .../services/cms/struct_category_item.go | 22 + .../services/cms/struct_category_items.go | 21 + .../services/cms/struct_channel.go | 22 + .../services/cms/struct_channels.go | 21 + .../services/cms/struct_contact_alii_ms.go | 21 + .../services/cms/struct_contact_group.go | 21 + ...ruct_contact_groups_in_delete_my_groups.go | 21 + ...ontact_groups_in_describe_alarm_history.go | 21 + .../struct_contact_groups_in_get_my_groups.go | 21 + ...ct_contact_groups_in_list_contact_group.go | 21 + ...struct_contact_groups_in_list_my_groups.go | 21 + .../services/cms/struct_contact_mails.go | 21 + .../services/cms/struct_contact_parameter.go | 23 + ..._contact_parameter_in_put_event_targets.go | 23 + ...arameters_in_list_event_targets_by_rule.go | 21 + ...contact_parameters_in_put_event_targets.go | 21 + .../services/cms/struct_contact_smses.go | 21 + ...ruct_contacts_in_describe_alarm_history.go | 21 + .../cms/struct_contacts_in_get_contacts.go | 21 + .../cms/struct_create_alert_results.go | 21 + .../services/cms/struct_datapoints.go | 23 + .../struct_datapoints_in_describe_alarms.go | 21 + ...points_in_describe_alarms_for_resources.go | 21 + ...ct_datapoints_in_list_active_alert_rule.go | 21 + .../struct_datapoints_in_list_event_rules.go | 21 + .../services/cms/struct_event_pattern.go | 24 + ...truct_event_pattern_in_list_event_rules.go | 21 + .../services/cms/struct_event_pattern_item.go | 24 + .../services/cms/struct_event_rule.go | 26 + .../cms/struct_failed_contact_parameters.go | 21 + .../cms/struct_failed_fc_parameters.go | 21 + .../cms/struct_failed_mns_parameters.go | 21 + .../services/cms/struct_fc_parameter.go | 24 + ...truct_fc_parameter_in_put_event_targets.go | 24 + ...arameters_in_list_event_targets_by_rule.go | 21 + ...ruct_fc_parameters_in_put_event_targets.go | 21 + .../services/cms/struct_filter.go | 23 + .../services/cms/struct_filters.go | 21 + .../services/cms/struct_group.go | 26 + .../cms/struct_group_in_delete_my_groups.go | 26 + ...truct_instance_list_in_task_config_list.go | 21 + ..._instance_list_in_task_config_unhealthy.go | 21 + ...truct_level_list_in_describe_event_rule.go | 21 + .../struct_level_list_in_list_event_rules.go | 21 + .../services/cms/struct_mns_parameter.go | 23 + ...ruct_mns_parameter_in_put_event_targets.go | 23 + ...arameters_in_list_event_targets_by_rule.go | 21 + ...uct_mns_parameters_in_put_event_targets.go | 21 + ...struct_name_list_in_describe_event_rule.go | 21 + .../struct_name_list_in_list_event_rules.go | 21 + .../services/cms/struct_node.go | 34 + .../services/cms/struct_node_process.go | 26 + .../services/cms/struct_node_processes.go | 21 + .../services/cms/struct_node_status.go | 23 + .../services/cms/struct_node_status_list.go | 21 + .../services/cms/struct_node_task_config.go | 30 + .../services/cms/struct_node_task_instance.go | 22 + .../services/cms/struct_nodes.go | 21 + .../services/cms/struct_notify_policy.go | 26 + .../services/cms/struct_notify_policy_list.go | 21 + .../services/cms/struct_region.go | 22 + .../services/cms/struct_resource.go | 42 + ...uct_resource_in_list_group_dynamic_rule.go | 21 + .../services/cms/struct_resource_item.go | 24 + ...ct_resources_in_list_my_group_instances.go | 21 + ...rces_in_list_my_group_instances_details.go | 21 + .../cms/struct_resources_in_list_my_groups.go | 21 + .../services/cms/struct_result.go | 32 + ...ruct_status_list_in_describe_event_rule.go | 21 + .../struct_status_list_in_list_event_rules.go | 21 + .../services/cms/struct_tag.go | 22 + .../services/cms/struct_tags.go | 21 + .../services/cms/struct_task_list.go | 21 + .../services/cms/struct_unhealthy_list.go | 21 + .../services/cms/struct_vpc.go | 22 + .../services/cms/task_config_create.go | 114 + .../services/cms/task_config_delete.go | 106 + .../services/cms/task_config_enable.go | 107 + .../services/cms/task_config_list.go | 115 + .../services/cms/task_config_modify.go | 114 + .../services/cms/task_config_unhealthy.go | 107 + .../services/cms/update_alarm.go | 118 + .../services/cms/update_my_group_instances.go | 107 + .../services/cms/update_my_group_members.go | 108 + .../services/cms/update_my_groups.go | 111 + .../services/cs/add_agility_cluster.go | 102 + .../services/cs/attach_instances.go | 103 + .../services/cs/call_back_agility_cluster.go | 104 + .../services/cs/callback_cluster_token.go | 104 + .../cs/check_aliyun_cs_service_role.go | 102 + .../services/cs/client.go | 81 + .../services/cs/create_cluster.go | 102 + .../services/cs/create_cluster_token.go | 103 + .../services/cs/create_template.go | 102 + .../services/cs/delete_cluster.go | 103 + .../services/cs/delete_cluster_node.go | 106 + .../cs/describe_agility_tunnel_agent_info.go | 103 + .../cs/describe_agility_tunnel_certs.go | 103 + .../services/cs/describe_api_version.go | 102 + .../services/cs/describe_cluster_certs.go | 103 + .../services/cs/describe_cluster_detail.go | 103 + .../services/cs/describe_cluster_hosts.go | 103 + .../services/cs/describe_cluster_logs.go | 103 + .../services/cs/describe_cluster_node_info.go | 103 + ...escribe_cluster_node_info_with_instance.go | 104 + .../services/cs/describe_cluster_nodes.go | 105 + .../cs/describe_cluster_scaled_node.go | 103 + .../services/cs/describe_cluster_services.go | 103 + .../services/cs/describe_cluster_tokens.go | 103 + .../services/cs/describe_clusters.go | 104 + .../services/cs/describe_images.go | 104 + .../cs/describe_kubernetes_template.go | 103 + .../cs/describe_kubernetes_templates.go | 104 + .../cs/describe_service_containers.go | 104 + .../services/cs/describe_task_info.go | 103 + .../cs/describe_template_attribute.go | 103 + .../services/cs/describe_templates.go | 102 + .../services/cs/describe_user_containers.go | 103 + .../cs/download_cluster_node_certs.go | 104 + .../services/cs/gather_logs_token.go | 103 + .../services/cs/get_cluster_projects.go | 103 + .../services/cs/get_project_events.go | 104 + .../services/cs/get_trigger_hook.go | 104 + .../services/cs/modify_cluster_name.go | 102 + .../services/cs/reset_cluster_node.go | 104 + .../services/cs/revoke_cluster_token.go | 103 + .../services/cs/scale_cluster.go | 103 + .../services/cs/scale_in_cluster.go | 103 + .../services/cs/update_sub_user_resouces.go | 102 + .../services/cs/upgrade_cluster_components.go | 104 + .../services/csb/approve_order_list.go | 105 + .../services/csb/check_service_exist.go | 107 + .../services/csb/client.go | 81 + .../services/csb/commit_successed_services.go | 106 + .../services/csb/create_credentials.go | 107 + .../services/csb/create_order.go | 107 + .../services/csb/create_project.go | 107 + .../services/csb/create_service.go | 107 + .../services/csb/delete_cas_service.go | 108 + .../services/csb/delete_credentials_list.go | 107 + .../services/csb/delete_order_list.go | 105 + .../services/csb/delete_project.go | 106 + .../services/csb/delete_project_list.go | 106 + .../services/csb/delete_service.go | 106 + .../services/csb/delete_service_list.go | 106 + .../services/csb/delete_union_cas_service.go | 108 + .../services/csb/find_approval_order_list.go | 111 + .../services/csb/find_approve_service_list.go | 111 + .../services/csb/find_credentials_list.go | 108 + .../services/csb/find_instance_list.go | 109 + .../services/csb/find_orderable_list.go | 110 + .../services/csb/find_ordered_list.go | 113 + .../services/csb/find_project_list.go | 108 + .../services/csb/find_projects_name_list.go | 107 + .../services/csb/find_service_list.go | 112 + .../services/csb/get_instance.go | 106 + .../services/csb/get_order.go | 107 + .../services/csb/get_project.go | 107 + .../services/csb/get_service.go | 107 + .../services/csb/publish_cas_service.go | 106 + .../services/csb/publish_union_cas_service.go | 106 + .../services/csb/renew_credentials.go | 106 + .../services/csb/replace_credential.go | 106 + .../services/csb/struct_cas_serv_targets.go | 21 + .../services/csb/struct_consume_types.go | 21 + .../services/csb/struct_credential.go | 27 + .../services/csb/struct_credential_list.go | 21 + .../services/csb/struct_credentials.go | 26 + .../services/csb/struct_current_credential.go | 22 + .../services/csb/struct_data.go | 36 + .../csb/struct_error_type_catagory.go | 23 + ...rror_type_catagory_in_find_ordered_list.go | 23 + ...type_catagory_list_in_find_ordered_list.go | 21 + ...t_error_type_catagory_list_in_get_order.go | 21 + .../services/csb/struct_import_conf.go | 24 + .../services/csb/struct_import_confs.go | 24 + .../services/csb/struct_input_parameter.go | 29 + ...ruct_input_parameter_map_in_get_service.go | 21 + .../services/csb/struct_instance.go | 55 + .../services/csb/struct_item.go | 30 + .../services/csb/struct_item_list.go | 21 + .../services/csb/struct_new_credential.go | 22 + .../services/csb/struct_order.go | 44 + .../csb/struct_order_in_find_ordered_list.go | 34 + ..._order_list_in_find_approval_order_list.go | 21 + .../struct_order_list_in_find_ordered_list.go | 21 + .../services/csb/struct_orders.go | 21 + .../services/csb/struct_output_parameter.go | 29 + ...uct_output_parameter_map_in_get_service.go | 21 + .../services/csb/struct_project.go | 37 + ...truct_project_list_in_find_project_list.go | 21 + .../csb/struct_project_list_in_get_project.go | 21 + .../services/csb/struct_project_name_list.go | 21 + .../services/csb/struct_route_conf.go | 23 + .../services/csb/struct_service.go | 66 + .../struct_service_in_find_orderable_list.go | 40 + .../csb/struct_service_in_get_order.go | 48 + ...rvice_list_in_find_approve_service_list.go | 21 + ...uct_service_list_in_find_orderable_list.go | 21 + ...truct_service_list_in_find_service_list.go | 21 + .../services/csb/struct_service_version.go | 33 + .../csb/struct_service_versions_list.go | 21 + .../services/csb/struct_sla_info.go | 22 + ...ct_sla_info_in_find_approval_order_list.go | 22 + .../services/csb/struct_strict_white_list.go | 21 + .../services/csb/struct_total.go | 22 + .../services/csb/struct_visiable_group.go | 27 + .../csb/struct_visiable_group_list.go | 21 + .../services/csb/update_order.go | 106 + .../services/csb/update_order_list.go | 106 + .../services/csb/update_project.go | 106 + .../csb/update_project_list_status.go | 106 + .../services/csb/update_service.go | 106 + .../csb/update_service_list_status.go | 106 + .../services/csb/update_service_qps.go | 106 + .../services/dcdn/add_dcdn_domain.go | 111 + .../dcdn/batch_delete_dcdn_domain_configs.go | 107 + .../services/dcdn/client.go | 81 + .../services/dcdn/delete_dcdn_domain.go | 107 + .../dcdn/describe_dcdn_certificate_detail.go | 109 + .../dcdn/describe_dcdn_certificate_list.go | 106 + .../dcdn/describe_dcdn_domain_bps_data.go | 107 + .../dcdn/describe_dcdn_domain_cname.go | 103 + .../dcdn/describe_dcdn_domain_configs.go | 107 + .../dcdn/describe_dcdn_domain_detail.go | 106 + .../describe_dcdn_domain_hit_rate_data.go | 107 + .../describe_dcdn_domain_http_code_data.go | 107 + .../services/dcdn/describe_dcdn_domain_log.go | 104 + .../describe_dcdn_domain_origin_bps_data.go | 107 + ...escribe_dcdn_domain_origin_traffic_data.go | 107 + .../dcdn/describe_dcdn_domain_qps_data.go | 107 + .../dcdn/describe_dcdn_domain_traffic_data.go | 107 + .../dcdn/describe_dcdn_refresh_quota.go | 112 + .../dcdn/describe_dcdn_refresh_tasks.go | 118 + .../services/dcdn/describe_dcdn_service.go | 110 + .../dcdn/describe_dcdn_user_domains.go | 118 + .../describe_dcdn_user_resource_package.go | 105 + .../dcdn/describe_user_dcdn_status.go | 108 + .../dcdn/preload_dcdn_object_caches.go | 106 + .../dcdn/refresh_dcdn_object_caches.go | 107 + .../dcdn/set_dcdn_domain_certificate.go | 111 + .../services/dcdn/start_dcdn_domain.go | 105 + .../services/dcdn/stop_dcdn_domain.go | 105 + .../dcdn/struct_bps_data_per_interval.go | 21 + .../services/dcdn/struct_cert.go | 26 + .../services/dcdn/struct_cert_list.go | 21 + .../dcdn/struct_certificate_list_model.go | 22 + .../services/dcdn/struct_cname_datas.go | 21 + .../services/dcdn/struct_data.go | 23 + .../services/dcdn/struct_data_module.go | 54 + .../services/dcdn/struct_data_per_interval.go | 21 + .../services/dcdn/struct_domain_config.go | 24 + .../services/dcdn/struct_domain_configs.go | 21 + .../services/dcdn/struct_domain_detail.go | 32 + .../services/dcdn/struct_domain_log_detail.go | 23 + .../dcdn/struct_domain_log_details.go | 21 + .../services/dcdn/struct_domains.go | 21 + .../services/dcdn/struct_function_arg.go | 22 + .../services/dcdn/struct_function_args.go | 21 + .../dcdn/struct_hit_rate_per_interval.go | 21 + .../dcdn/struct_http_code_data_module.go | 23 + .../struct_http_code_data_per_interval.go | 21 + .../services/dcdn/struct_lock_reason.go | 21 + .../services/dcdn/struct_log_info_detail.go | 25 + .../services/dcdn/struct_log_infos.go | 21 + .../services/dcdn/struct_operation_locks.go | 21 + .../struct_origin_bps_data_per_interval.go | 21 + ...struct_origin_traffic_data_per_interval.go | 21 + .../services/dcdn/struct_page_data.go | 30 + .../services/dcdn/struct_page_info_detail.go | 23 + .../services/dcdn/struct_page_infos.go | 21 + .../dcdn/struct_qps_data_per_interval.go | 21 + .../dcdn/struct_resource_package_info.go | 26 + .../dcdn/struct_resource_package_infos.go | 21 + .../services/dcdn/struct_source.go | 25 + ..._sources_in_describe_dcdn_domain_detail.go | 21 + ...t_sources_in_describe_dcdn_user_domains.go | 21 + .../services/dcdn/struct_task.go | 27 + .../services/dcdn/struct_tasks.go | 21 + .../dcdn/struct_traffic_data_per_interval.go | 21 + .../services/dcdn/update_dcdn_domain.go | 108 + .../services/ddospro/client.go | 81 + .../services/ddospro/create_blockhole.go | 107 + .../services/ddospro/create_domain.go | 109 + .../ddospro/create_web_log_download_task.go | 109 + .../services/ddospro/delete_black_hole.go | 106 + .../services/ddospro/delete_blockhole.go | 105 + .../services/ddospro/delete_domain.go | 104 + .../ddospro/delete_domain_transmit_rule.go | 105 + .../ddospro/describe_back_source_cidr.go | 106 + .../services/ddospro/describe_cc_mode.go | 106 + .../ddospro/describe_cname_auto_status.go | 105 + .../services/ddospro/describe_ddos_status.go | 106 + .../describe_domain_black_white_list.go | 105 + .../ddospro/describe_domain_config.go | 105 + .../services/ddospro/describe_domain_qps.go | 110 + .../ddospro/describe_flow_blockhole_status.go | 106 + .../ddospro/describe_instance_page.go | 110 + .../ddospro/describe_ip_attack_event.go | 111 + .../services/ddospro/describe_ip_traffic.go | 109 + .../services/ddospro/describe_oplog.go | 112 + .../ddospro/describe_un_blackhole_count.go | 105 + .../ddospro/describe_un_blockhole_count.go | 105 + .../describe_web_log_download_file_page.go | 109 + .../services/ddospro/describe_web_log_page.go | 110 + .../services/ddospro/list_domain_config.go | 108 + .../services/ddospro/modify_cc_mode.go | 107 + .../ddospro/modify_cname_auto_status.go | 105 + .../ddospro/modify_domain_black_white_list.go | 106 + .../services/ddospro/modify_domain_proxy.go | 105 + .../ddospro/modify_domain_transmit_rule.go | 107 + .../services/ddospro/struct_attack_info.go | 25 + .../services/ddospro/struct_attacks.go | 21 + .../services/ddospro/struct_bps_drop.go | 21 + .../services/ddospro/struct_bps_total.go | 21 + .../services/ddospro/struct_cidr_list.go | 21 + .../services/ddospro/struct_config.go | 23 + .../services/ddospro/struct_config_list.go | 21 + .../services/ddospro/struct_data.go | 54 + .../struct_data_in_describe_cc_mode.go | 21 + .../struct_data_in_describe_ddos_status.go | 21 + ..._data_in_describe_flow_blockhole_status.go | 21 + .../services/ddospro/struct_file.go | 22 + .../services/ddospro/struct_file_list.go | 21 + .../services/ddospro/struct_instance.go | 23 + .../services/ddospro/struct_instance_info.go | 22 + .../services/ddospro/struct_instance_list.go | 21 + ...uct_instances_in_describe_domain_config.go | 21 + .../struct_instances_in_list_domain_config.go | 21 + .../services/ddospro/struct_ip_info.go | 25 + .../services/ddospro/struct_ip_list.go | 21 + .../services/ddospro/struct_list.go | 21 + .../services/ddospro/struct_oplog_list.go | 21 + .../services/ddospro/struct_page_info.go | 21 + .../services/ddospro/struct_pps_drop.go | 21 + .../services/ddospro/struct_pps_total.go | 21 + ...oxy_type_list_in_describe_domain_config.go | 21 + ...t_proxy_type_list_in_list_domain_config.go | 21 + ..._real_servers_in_describe_domain_config.go | 21 + ...ruct_real_servers_in_list_domain_config.go | 21 + .../services/ddospro/struct_rule.go | 24 + .../struct_rules_in_describe_domain_config.go | 21 + .../struct_rules_in_list_domain_config.go | 21 + .../services/ddospro/struct_time_scope.go | 22 + .../services/ddospro/struct_total.go | 21 + .../services/ddospro/struct_web_log.go | 34 + .../services/ddospro/struct_web_log_list.go | 21 + .../services/ddospro/upload_certificate.go | 106 + .../services/dm/add_ipfilter.go | 106 + .../services/dm/approve_mail_template.go | 107 + .../services/dm/approve_reply_mail_address.go | 106 + .../services/dm/approve_sms_template.go | 107 + .../services/dm/approve_template.go | 107 + .../services/dm/batch_send_mail.go | 114 + .../services/dm/check_domain.go | 106 + .../services/dm/check_invalid_address.go | 106 + .../dm/check_reply_to_mail_address.go | 108 + .../services/dm/client.go | 81 + .../services/dm/create_dayu.go | 106 + .../services/dm/create_domain.go | 106 + .../services/dm/create_mail_address.go | 108 + .../services/dm/create_receiver.go | 108 + .../services/dm/create_sign.go | 110 + .../services/dm/create_tag.go | 106 + .../services/dm/create_template.go | 115 + .../services/dm/delete_domain.go | 106 + .../services/dm/delete_invalid_address.go | 106 + .../services/dm/delete_ipfilter_by_edm_id.go | 107 + .../services/dm/delete_mail_address.go | 106 + .../services/dm/delete_receiver.go | 106 + .../services/dm/delete_receiver_detail.go | 107 + .../services/dm/delete_sign.go | 107 + .../services/dm/delete_tag.go | 106 + .../services/dm/delete_template.go | 107 + .../services/dm/desc_account_summary.go | 120 + .../services/dm/desc_account_summary2.go | 109 + .../services/dm/desc_domain.go | 121 + .../services/dm/desc_template.go | 117 + .../services/dm/enable_account.go | 105 + .../services/dm/get_account_list.go | 115 + .../services/dm/get_ip_protection.go | 106 + .../services/dm/get_ipfilter_list.go | 109 + .../services/dm/get_region_list.go | 115 + .../services/dm/get_sender_address_list.go | 115 + .../services/dm/get_track_list.go | 119 + .../services/dm/migrate_market.go | 107 + .../dm/modify_account_notification.go | 107 + .../services/dm/modify_mail_address.go | 108 + .../dm/modify_sender_address_notification.go | 109 + .../services/dm/modify_tag.go | 107 + .../services/dm/modify_template.go | 114 + .../services/dm/query_domain_by_param.go | 113 + .../services/dm/query_invalid_address.go | 113 + .../dm/query_mail_address_by_param.go | 113 + .../services/dm/query_receiver_by_param.go | 113 + .../services/dm/query_receiver_detail.go | 113 + .../services/dm/query_sign_by_param.go | 112 + .../services/dm/query_sms_statistics.go | 110 + .../services/dm/query_tag_by_param.go | 112 + .../services/dm/query_task_by_param.go | 113 + .../services/dm/query_template_by_param.go | 114 + .../services/dm/save_receiver_detail.go | 110 + .../services/dm/send_test_by_template.go | 113 + ...der_statistics_by_tag_name_and_batch_id.go | 111 + .../dm/sender_statistics_detail_by_param.go | 115 + .../services/dm/set_max_quota_level.go | 106 + .../services/dm/single_send_mail.go | 118 + .../services/dm/single_send_sms.go | 110 + .../dm/struct_account_notification_info.go | 23 + .../dm/struct_data_in_get_account_list.go | 21 + .../dm/struct_data_in_get_ipfilter_list.go | 21 + .../dm/struct_data_in_get_region_list.go | 21 + .../struct_data_in_get_sender_address_list.go | 21 + .../dm/struct_data_in_get_track_list.go | 21 + .../struct_data_in_query_domain_by_param.go | 21 + .../struct_data_in_query_invalid_address.go | 21 + ...uct_data_in_query_mail_address_by_param.go | 21 + .../struct_data_in_query_receiver_by_param.go | 21 + .../struct_data_in_query_receiver_detail.go | 21 + .../dm/struct_data_in_query_sign_by_param.go | 21 + .../dm/struct_data_in_query_sms_statistics.go | 21 + .../dm/struct_data_in_query_tag_by_param.go | 21 + .../dm/struct_data_in_query_task_by_param.go | 21 + .../struct_data_in_query_template_by_param.go | 21 + .../dm/struct_data_in_save_receiver_detail.go | 21 + ...der_statistics_by_tag_name_and_batch_id.go | 21 + ...ta_in_sender_statistics_detail_by_param.go | 21 + .../services/dm/struct_detail.go | 24 + .../services/dm/struct_domain.go | 31 + .../services/dm/struct_ipfilters.go | 23 + .../services/dm/struct_mail_address.go | 32 + .../services/dm/struct_mail_detail.go | 26 + ...ct_mail_detail_in_query_invalid_address.go | 23 + .../services/dm/struct_receiver.go | 28 + .../services/dm/struct_region_list.go | 22 + ...struct_sender_address_notification_info.go | 25 + .../services/dm/struct_sign.go | 28 + .../services/dm/struct_stat.go | 36 + .../services/dm/struct_tag.go | 22 + .../services/dm/struct_task.go | 29 + .../services/dm/struct_template.go | 30 + .../services/dm/update_domain_track_name.go | 107 + .../services/dm/update_ip_protection.go | 106 + .../domain-intl/acknowledge_task_result.go | 106 + .../services/domain-intl/check_domain.go | 106 + .../check_transfer_in_feasibility.go | 110 + .../services/domain-intl/client.go | 81 + .../domain-intl/confirm_transfer_in_email.go | 108 + .../domain-intl/delete_email_verification.go | 107 + .../domain-intl/delete_registrant_profile.go | 105 + .../services/domain-intl/email_verified.go | 105 + .../domain-intl/list_email_verification.go | 116 + .../services/domain-intl/poll_task_result.go | 117 + .../domain-intl/query_change_log_list.go | 117 + .../domain-intl/query_contact_info.go | 118 + .../services/domain-intl/query_dns_host.go | 105 + .../query_domain_by_instance_id.go | 119 + .../services/domain-intl/query_domain_list.go | 122 + .../domain-intl/query_registrant_profiles.go | 116 + .../domain-intl/query_task_detail_history.go | 115 + .../domain-intl/query_task_detail_list.go | 117 + .../domain-intl/query_task_info_history.go | 114 + .../services/domain-intl/query_task_list.go | 115 + .../query_transfer_in_by_instance_id.go | 126 + .../domain-intl/query_transfer_in_list.go | 117 + .../domain-intl/query_transfer_out_info.go | 112 + .../domain-intl/resend_email_verification.go | 107 + ..._batch_task_for_creating_order_activate.go | 129 + ...ve_batch_task_for_creating_order_redeem.go | 112 + ...ave_batch_task_for_creating_order_renew.go | 113 + ..._batch_task_for_creating_order_transfer.go | 114 + ...atch_task_for_domain_name_proxy_service.go | 107 + ...ave_batch_task_for_modifying_domain_dns.go | 108 + ...atch_task_for_transfer_prohibition_lock.go | 107 + ..._batch_task_for_update_prohibition_lock.go | 107 + ...ve_batch_task_for_updating_contact_info.go | 109 + ...or_updating_contact_info_by_new_contact.go | 119 + .../domain-intl/save_registrant_profile.go | 118 + ..._single_task_for_approving_transfer_out.go | 106 + ...e_single_task_for_canceling_transfer_in.go | 106 + ..._single_task_for_canceling_transfer_out.go | 106 + .../save_single_task_for_creating_dns_host.go | 107 + ...single_task_for_creating_order_activate.go | 124 + ...e_single_task_for_creating_order_redeem.go | 107 + ...ve_single_task_for_creating_order_renew.go | 108 + ...single_task_for_creating_order_transfer.go | 109 + ...ngle_task_for_domain_name_proxy_service.go | 107 + ...save_single_task_for_modifying_dns_host.go | 107 + ...or_querying_transfer_authorization_code.go | 106 + ..._single_task_for_synchronizing_dns_host.go | 105 + ...ngle_task_for_transfer_prohibition_lock.go | 107 + ...single_task_for_update_prohibition_lock.go | 107 + ...e_single_task_for_updating_contact_info.go | 110 + .../save_task_for_submitting_domain_delete.go | 106 + .../services/domain-intl/struct_change_log.go | 26 + .../domain-intl/struct_current_page_cursor.go | 35 + .../struct_data_in_list_email_verification.go | 21 + .../struct_data_in_poll_task_result.go | 21 + .../struct_data_in_query_change_log_list.go | 21 + .../struct_data_in_query_domain_list.go | 21 + .../struct_data_in_query_task_detail_list.go | 21 + .../struct_data_in_query_task_list.go | 21 + .../struct_data_in_query_transfer_in_list.go | 21 + .../services/domain-intl/struct_dns_host.go | 22 + .../domain-intl/struct_dns_host_list.go | 21 + .../services/domain-intl/struct_dns_list.go | 21 + .../services/domain-intl/struct_domain.go | 30 + .../domain-intl/struct_email_verification.go | 30 + .../services/domain-intl/struct_exist_list.go | 21 + ..._fail_list_in_confirm_transfer_in_email.go | 21 + ..._fail_list_in_delete_email_verification.go | 21 + ..._fail_list_in_resend_email_verification.go | 21 + ..._fail_list_in_submit_email_verification.go | 21 + ...il_list_in_transfer_in_check_mail_token.go | 21 + .../services/domain-intl/struct_ip_list.go | 21 + .../domain-intl/struct_next_page_cursor.go | 35 + ...ct_objects_in_query_task_detail_history.go | 21 + ...ruct_objects_in_query_task_info_history.go | 21 + .../domain-intl/struct_pre_page_cursor.go | 35 + .../domain-intl/struct_registrant_profile.go | 36 + .../domain-intl/struct_registrant_profiles.go | 21 + .../domain-intl/struct_send_result.go | 23 + ...ccess_list_in_confirm_transfer_in_email.go | 21 + ...ccess_list_in_delete_email_verification.go | 21 + ...ccess_list_in_resend_email_verification.go | 21 + ...ccess_list_in_submit_email_verification.go | 21 + ...ss_list_in_transfer_in_check_mail_token.go | 21 + .../domain-intl/struct_task_detail.go | 33 + .../domain-intl/struct_task_detail_history.go | 32 + .../services/domain-intl/struct_task_info.go | 28 + .../domain-intl/struct_task_info_history.go | 29 + .../domain-intl/struct_transfer_in_info.go | 41 + .../domain-intl/submit_email_verification.go | 109 + .../transfer_in_check_mail_token.go | 107 + ..._in_reenter_transfer_authorization_code.go | 106 + .../transfer_in_refetch_whois_email.go | 105 + .../transfer_in_resend_mail_token.go | 105 + .../domain-intl/verify_contact_field.go | 115 + .../services/domain-intl/verify_email.go | 105 + .../services/domain/accept_demand.go | 104 + .../domain/acknowledge_task_result.go | 106 + .../services/domain/bid_domain.go | 106 + .../domain/cancel_domain_verification.go | 106 + .../services/domain/check_domain.go | 111 + .../domain/check_transfer_in_feasibility.go | 110 + .../services/domain/client.go | 81 + .../domain/confirm_transfer_in_email.go | 108 + .../services/domain/delete_domain_group.go | 105 + .../domain/delete_email_verification.go | 107 + .../domain/delete_registrant_profile.go | 105 + .../services/domain/email_verified.go | 105 + .../services/domain/fail_demand.go | 104 + .../services/domain/finish_demand.go | 104 + .../services/domain/get_reserve_domain_url.go | 103 + .../domain/list_email_verification.go | 116 + .../services/domain/poll_task_result.go | 117 + .../domain/query_advanced_domain_list.go | 135 + .../services/domain/query_auction_detail.go | 125 + .../services/domain/query_auctions.go | 110 + .../services/domain/query_bid_records.go | 110 + .../domain/query_booking_domain_info.go | 109 + .../services/domain/query_broker_demand.go | 111 + .../domain/query_broker_demand_record.go | 110 + .../services/domain/query_change_log_list.go | 117 + .../services/domain/query_contact_info.go | 123 + .../services/domain/query_dns_host.go | 105 + .../domain/query_domain_by_instance_id.go | 129 + .../domain/query_domain_group_list.go | 107 + .../services/domain/query_domain_list.go | 123 + ...uery_domain_real_name_verification_info.go | 113 + .../services/domain/query_domain_suffix.go | 104 + .../domain/query_email_verification.go | 114 + ...eason_for_domain_real_name_verification.go | 107 + ...gistrant_profile_real_name_verification.go | 106 + ...ant_profile_real_name_verification_info.go | 113 + .../domain/query_registrant_profiles.go | 119 + .../domain/query_task_detail_history.go | 115 + .../services/domain/query_task_detail_list.go | 117 + .../domain/query_task_info_history.go | 114 + .../services/domain/query_task_list.go | 115 + .../query_transfer_in_by_instance_id.go | 126 + .../services/domain/query_transfer_in_list.go | 117 + .../domain/query_transfer_out_info.go | 112 + .../services/domain/record_demand.go | 104 + .../services/domain/refuse_demand.go | 104 + ...gistrant_profile_real_name_verification.go | 108 + .../services/domain/request_pay_demand.go | 107 + .../domain/resend_email_verification.go | 107 + .../services/domain/reserve_domain.go | 105 + .../domain/save_batch_domain_remark.go | 105 + ..._batch_task_for_creating_order_activate.go | 135 + ...ve_batch_task_for_creating_order_redeem.go | 112 + ...ave_batch_task_for_creating_order_renew.go | 113 + ..._batch_task_for_creating_order_transfer.go | 114 + ...atch_task_for_domain_name_proxy_service.go | 107 + ...ave_batch_task_for_modifying_domain_dns.go | 108 + ...atch_task_for_transfer_prohibition_lock.go | 107 + ..._batch_task_for_update_prohibition_lock.go | 107 + ...or_updating_contact_info_by_new_contact.go | 125 + ...g_contact_info_by_registrant_profile_id.go | 109 + .../services/domain/save_domain_group.go | 113 + .../domain/save_registrant_profile.go | 124 + ..._single_task_for_approving_transfer_out.go | 106 + ...e_single_task_for_canceling_transfer_in.go | 106 + ..._single_task_for_canceling_transfer_out.go | 106 + .../save_single_task_for_creating_dns_host.go | 107 + ...single_task_for_creating_order_activate.go | 130 + ...e_single_task_for_creating_order_redeem.go | 107 + ...ve_single_task_for_creating_order_renew.go | 108 + ...single_task_for_creating_order_transfer.go | 109 + .../save_single_task_for_deleting_dns_host.go | 106 + ...ngle_task_for_domain_name_proxy_service.go | 107 + ...save_single_task_for_modifying_dns_host.go | 107 + ...or_querying_transfer_authorization_code.go | 106 + ..._single_task_for_synchronizing_dns_host.go | 105 + ...ngle_task_for_transfer_prohibition_lock.go | 107 + ...single_task_for_update_prohibition_lock.go | 107 + ...e_single_task_for_updating_contact_info.go | 110 + .../save_task_for_submitting_domain_delete.go | 106 + ...ame_verification_by_identity_credential.go | 109 + ...e_verification_by_registrant_profile_id.go | 108 + ..._registrant_info_by_identity_credential.go | 127 + ...egistrant_info_by_registrant_profile_id.go | 108 + .../services/domain/struct_auction_detail.go | 42 + .../services/domain/struct_bid_record.go | 25 + .../domain/struct_broker_demand_record.go | 23 + .../services/domain/struct_change_log.go | 26 + .../domain/struct_current_page_cursor.go | 35 + .../struct_data_in_list_email_verification.go | 21 + .../domain/struct_data_in_poll_task_result.go | 21 + ...ruct_data_in_query_advanced_domain_list.go | 21 + .../domain/struct_data_in_query_auctions.go | 21 + .../struct_data_in_query_bid_records.go | 21 + .../struct_data_in_query_broker_demand.go | 21 + ...ruct_data_in_query_broker_demand_record.go | 21 + .../struct_data_in_query_change_log_list.go | 21 + .../struct_data_in_query_domain_group_list.go | 21 + .../struct_data_in_query_domain_list.go | 21 + ...eason_for_domain_real_name_verification.go | 21 + ...gistrant_profile_real_name_verification.go | 21 + .../struct_data_in_query_task_detail_list.go | 21 + .../domain/struct_data_in_query_task_list.go | 21 + .../struct_data_in_query_transfer_in_list.go | 21 + .../services/domain/struct_demand.go | 31 + .../services/domain/struct_dns_host.go | 22 + .../services/domain/struct_dns_host_list.go | 21 + .../services/domain/struct_dns_list.go | 21 + .../services/domain/struct_domain.go | 37 + .../services/domain/struct_domain_group.go | 27 + .../domain/struct_email_verification.go | 30 + .../services/domain/struct_exist_list.go | 21 + ..._fail_list_in_confirm_transfer_in_email.go | 21 + ..._fail_list_in_delete_email_verification.go | 21 + ..._fail_list_in_resend_email_verification.go | 21 + ..._fail_list_in_submit_email_verification.go | 21 + ...il_list_in_transfer_in_check_mail_token.go | 21 + .../services/domain/struct_fail_record.go | 23 + .../services/domain/struct_ip_list.go | 21 + .../domain/struct_next_page_cursor.go | 35 + ...ct_objects_in_query_task_detail_history.go | 21 + ...ruct_objects_in_query_task_info_history.go | 21 + .../services/domain/struct_pre_page_cursor.go | 35 + .../domain/struct_registrant_profile.go | 43 + .../domain/struct_registrant_profiles.go | 21 + .../services/domain/struct_send_result.go | 23 + ...ccess_list_in_confirm_transfer_in_email.go | 21 + ...ccess_list_in_delete_email_verification.go | 21 + ...ccess_list_in_resend_email_verification.go | 21 + ...ccess_list_in_submit_email_verification.go | 21 + ...ss_list_in_transfer_in_check_mail_token.go | 21 + .../services/domain/struct_suffix_list.go | 21 + .../services/domain/struct_task_detail.go | 33 + .../domain/struct_task_detail_history.go | 32 + .../services/domain/struct_task_info.go | 28 + .../domain/struct_task_info_history.go | 29 + .../domain/struct_transfer_in_info.go | 41 + .../domain/submit_email_verification.go | 109 + .../domain/transfer_in_check_mail_token.go | 107 + ..._in_reenter_transfer_authorization_code.go | 106 + .../domain/transfer_in_refetch_whois_email.go | 105 + .../domain/transfer_in_resend_mail_token.go | 105 + .../domain/update_domain_to_domain_group.go | 109 + .../services/domain/verify_contact_field.go | 121 + .../services/domain/verify_email.go | 105 + .../services/domain_intl/check_domain.go | 106 + .../services/domain_intl/client.go | 81 + .../domain_intl/delete_email_verification.go | 107 + .../domain_intl/delete_registrant_profile.go | 105 + .../services/domain_intl/email_verified.go | 105 + .../domain_intl/list_email_verification.go | 116 + .../domain_intl/query_change_log_list.go | 117 + .../domain_intl/query_contact_info.go | 118 + .../services/domain_intl/query_dns_host.go | 105 + .../query_domain_by_instance_id.go | 119 + .../services/domain_intl/query_domain_list.go | 122 + .../domain_intl/query_registrant_profiles.go | 116 + .../domain_intl/query_task_detail_history.go | 115 + .../domain_intl/query_task_detail_list.go | 117 + .../domain_intl/query_task_info_history.go | 114 + .../services/domain_intl/query_task_list.go | 115 + .../domain_intl/resend_email_verification.go | 107 + ..._batch_task_for_creating_order_activate.go | 115 + ...ve_batch_task_for_creating_order_redeem.go | 112 + ...ave_batch_task_for_creating_order_renew.go | 113 + ...atch_task_for_domain_name_proxy_service.go | 107 + ...ave_batch_task_for_modifying_domain_dns.go | 108 + ...atch_task_for_transfer_prohibition_lock.go | 107 + ..._batch_task_for_update_prohibition_lock.go | 107 + ...ve_batch_task_for_updating_contact_info.go | 109 + .../domain_intl/save_registrant_profile.go | 118 + .../save_single_task_for_creating_dns_host.go | 107 + ...single_task_for_creating_order_activate.go | 110 + ...e_single_task_for_creating_order_redeem.go | 107 + ...ve_single_task_for_creating_order_renew.go | 108 + ...ngle_task_for_domain_name_proxy_service.go | 107 + ...save_single_task_for_modifying_dns_host.go | 107 + ..._single_task_for_synchronizing_dns_host.go | 105 + ...ngle_task_for_transfer_prohibition_lock.go | 107 + ...single_task_for_update_prohibition_lock.go | 107 + ...e_single_task_for_updating_contact_info.go | 110 + .../services/domain_intl/struct_change_log.go | 26 + .../domain_intl/struct_current_page_cursor.go | 33 + .../struct_data_in_list_email_verification.go | 21 + .../struct_data_in_query_change_log_list.go | 21 + .../struct_data_in_query_domain_list.go | 21 + .../struct_data_in_query_task_detail_list.go | 21 + .../struct_data_in_query_task_list.go | 21 + .../services/domain_intl/struct_dns_host.go | 22 + .../domain_intl/struct_dns_host_list.go | 21 + .../services/domain_intl/struct_dns_list.go | 21 + .../services/domain_intl/struct_domain.go | 30 + .../domain_intl/struct_email_verification.go | 30 + .../services/domain_intl/struct_exist_list.go | 21 + ..._fail_list_in_delete_email_verification.go | 21 + ..._fail_list_in_resend_email_verification.go | 21 + ..._fail_list_in_submit_email_verification.go | 21 + .../services/domain_intl/struct_ip_list.go | 21 + .../domain_intl/struct_next_page_cursor.go | 33 + ...ct_objects_in_query_task_detail_history.go | 21 + ...ruct_objects_in_query_task_info_history.go | 21 + .../domain_intl/struct_pre_page_cursor.go | 33 + .../domain_intl/struct_registrant_profile.go | 36 + .../domain_intl/struct_registrant_profiles.go | 21 + .../domain_intl/struct_send_result.go | 23 + ...ccess_list_in_delete_email_verification.go | 21 + ...ccess_list_in_resend_email_verification.go | 21 + ...ccess_list_in_submit_email_verification.go | 21 + .../domain_intl/struct_task_detail.go | 30 + .../domain_intl/struct_task_detail_history.go | 30 + .../services/domain_intl/struct_task_info.go | 26 + .../domain_intl/struct_task_info_history.go | 27 + .../domain_intl/submit_email_verification.go | 109 + .../services/domain_intl/verify_email.go | 105 + .../services/drds/client.go | 81 + .../services/drds/create_drds_account.go | 107 + .../services/drds/create_drds_db.go | 108 + .../services/drds/create_drds_instance.go | 114 + .../services/drds/create_read_only_account.go | 107 + .../services/drds/delete_drds_db.go | 105 + .../services/drds/delete_failed_drds_db.go | 105 + .../describe_create_drds_instance_status.go | 105 + .../services/drds/describe_drds_d_bs.go | 105 + .../services/drds/describe_drds_db.go | 106 + .../drds/describe_drds_db_ip_white_list.go | 107 + .../services/drds/describe_drds_instance.go | 105 + ...scribe_drds_instance_net_info_for_inner.go | 107 + .../services/drds/describe_drds_instances.go | 105 + .../services/drds/describe_rds_list.go | 106 + .../drds/describe_read_only_account.go | 106 + .../services/drds/describe_regions.go | 104 + .../services/drds/describe_shard_d_bs.go | 106 + .../drds/describe_shard_db_connection_info.go | 107 + .../services/drds/modify_drds_db_passwd.go | 106 + .../drds/modify_drds_instance_description.go | 105 + .../drds/modify_drds_ip_white_list.go | 109 + .../services/drds/modify_full_table_scan.go | 107 + .../services/drds/modify_rds_read_weight.go | 107 + .../drds/modify_read_only_account_password.go | 108 + .../drds/query_instance_info_by_conn.go | 107 + .../services/drds/remove_drds_instance.go | 104 + .../services/drds/remove_read_only_account.go | 106 + .../services/drds/struct_child.go | 27 + .../services/drds/struct_connection_info.go | 32 + .../services/drds/struct_data.go | 39 + .../drds/struct_data_in_describe_drds_d_bs.go | 21 + .../drds/struct_data_in_describe_drds_db.go | 25 + .../struct_data_in_describe_drds_instances.go | 21 + .../drds/struct_data_in_describe_rds_list.go | 21 + .../struct_data_in_describe_shard_d_bs.go | 21 + .../services/drds/struct_db.go | 25 + .../services/drds/struct_db_intance_pair.go | 22 + .../drds/struct_drds_instance_id_list.go | 21 + .../services/drds/struct_drds_region.go | 25 + .../services/drds/struct_drds_regions.go | 21 + .../services/drds/struct_instance.go | 31 + .../services/drds/struct_instance_series.go | 23 + .../drds/struct_instance_series_list.go | 21 + .../services/drds/struct_ip_white_list.go | 21 + .../services/drds/struct_net_info.go | 24 + .../services/drds/struct_net_infos.go | 21 + .../services/drds/struct_rds_instance.go | 28 + .../drds/struct_read_only_children.go | 21 + .../services/drds/struct_spec.go | 22 + .../services/drds/struct_spec_list.go | 21 + .../services/drds/struct_vip.go | 25 + .../struct_vips_in_describe_drds_instance.go | 21 + .../struct_vips_in_describe_drds_instances.go | 21 + ...uct_vips_in_query_instance_info_by_conn.go | 21 + .../services/dyvmsapi/cancel_call.go | 109 + .../services/dyvmsapi/click_to_dial.go | 117 + .../services/dyvmsapi/client.go | 81 + .../services/dyvmsapi/ivr_call.go | 125 + .../dyvmsapi/query_call_detail_by_call_id.go | 111 + .../services/dyvmsapi/single_call_by_tts.go | 116 + .../services/dyvmsapi/single_call_by_voice.go | 115 + .../services/dyvmsapi/smart_call.go | 120 + .../services/dyvmsapi/voip_add_account.go | 109 + .../services/dyvmsapi/voip_get_token.go | 110 + .../services/ecs/activate_router_interface.go | 106 + .../services/ecs/add_bandwidth_package_ips.go | 109 + .../services/ecs/add_ip_range.go | 108 + .../services/ecs/add_tags.go | 117 + .../services/ecs/allocate_eip_address.go | 111 + .../ecs/allocate_public_ip_address.go | 110 + .../ecs/apply_auto_snapshot_policy.go | 107 + .../ecs/assign_private_ip_addresses.go | 109 + .../services/ecs/associate_eip_address.go | 109 + .../services/ecs/associate_ha_vip.go | 109 + .../services/ecs/attach_classic_link_vpc.go | 107 + .../services/ecs/attach_disk.go | 110 + .../services/ecs/attach_instance_ram_role.go | 111 + .../services/ecs/attach_key_pair.go | 111 + .../services/ecs/attach_network_interface.go | 108 + .../services/ecs/authorize_security_group.go | 120 + .../ecs/authorize_security_group_egress.go | 120 + .../services/ecs/bind_ip_range.go | 108 + .../services/ecs/cancel_agreement.go | 107 + .../ecs/cancel_auto_snapshot_policy.go | 106 + .../services/ecs/cancel_copy_image.go | 107 + .../ecs/cancel_physical_connection.go | 109 + .../services/ecs/cancel_task.go | 106 + .../ecs/check_auto_snapshot_policy.go | 116 + ...ck_disk_enable_auto_snapshot_validation.go | 109 + .../services/ecs/client.go | 81 + .../services/ecs/connect_router_interface.go | 106 + .../ecs/convert_nat_public_ip_to_eip.go | 106 + .../services/ecs/copy_image.go | 122 + .../ecs/create_auto_snapshot_policy.go | 110 + .../services/ecs/create_command.go | 113 + .../services/ecs/create_deployment_set.go | 114 + .../services/ecs/create_disk.go | 126 + .../services/ecs/create_forward_entry.go | 113 + .../services/ecs/create_ha_vip.go | 111 + .../services/ecs/create_hpc_cluster.go | 110 + .../services/ecs/create_image.go | 135 + .../services/ecs/create_instance.go | 172 + .../services/ecs/create_key_pair.go | 120 + .../services/ecs/create_launch_template.go | 181 ++ .../ecs/create_launch_template_version.go | 171 + .../services/ecs/create_nat_gateway.go | 121 + .../services/ecs/create_network_interface.go | 124 + .../create_network_interface_permission.go | 110 + .../ecs/create_physical_connection.go | 119 + .../services/ecs/create_route_entry.go | 118 + .../services/ecs/create_router_interface.go | 129 + .../services/ecs/create_security_group.go | 122 + .../services/ecs/create_snapshot.go | 121 + .../services/ecs/create_v_switch.go | 113 + .../ecs/create_virtual_border_router.go | 118 + .../services/ecs/create_vpc.go | 114 + .../ecs/deactivate_router_interface.go | 106 + .../ecs/delete_auto_snapshot_policy.go | 106 + .../services/ecs/delete_bandwidth_package.go | 107 + .../services/ecs/delete_command.go | 107 + .../services/ecs/delete_deployment_set.go | 107 + .../services/ecs/delete_disk.go | 107 + .../services/ecs/delete_forward_entry.go | 108 + .../services/ecs/delete_ha_vip.go | 108 + .../services/ecs/delete_hpc_cluster.go | 108 + .../services/ecs/delete_image.go | 108 + .../services/ecs/delete_instance.go | 109 + .../services/ecs/delete_key_pairs.go | 106 + .../services/ecs/delete_launch_template.go | 108 + .../ecs/delete_launch_template_version.go | 109 + .../services/ecs/delete_nat_gateway.go | 107 + .../services/ecs/delete_network_interface.go | 107 + .../delete_network_interface_permission.go | 108 + .../ecs/delete_physical_connection.go | 109 + .../services/ecs/delete_recycle_bin.go | 107 + .../services/ecs/delete_route_entry.go | 116 + .../services/ecs/delete_router_interface.go | 109 + .../services/ecs/delete_security_group.go | 107 + .../services/ecs/delete_snapshot.go | 108 + .../services/ecs/delete_v_switch.go | 107 + .../ecs/delete_virtual_border_router.go | 109 + .../services/ecs/delete_vpc.go | 107 + .../services/ecs/describe_access_points.go | 119 + .../ecs/describe_auto_snapshot_policy.go | 109 + .../ecs/describe_auto_snapshot_policy_ex.go | 113 + .../ecs/describe_available_resource.go | 117 + .../ecs/describe_bandwidth_limitation.go | 112 + .../ecs/describe_bandwidth_packages.go | 114 + .../ecs/describe_classic_link_instances.go | 113 + .../ecs/describe_cloud_assistant_status.go | 108 + .../services/ecs/describe_clusters.go | 107 + .../services/ecs/describe_commands.go | 116 + .../ecs/describe_deployment_set_topology.go | 113 + .../services/ecs/describe_deployment_sets.go | 119 + .../ecs/describe_disk_monitor_data.go | 112 + .../services/ecs/describe_disks.go | 147 + .../ecs/describe_disks_full_status.go | 119 + .../services/ecs/describe_eip_addresses.go | 123 + .../services/ecs/describe_eip_monitor_data.go | 111 + .../services/ecs/describe_event_detail.go | 119 + .../ecs/describe_forward_table_entries.go | 114 + .../services/ecs/describe_ha_vips.go | 119 + .../services/ecs/describe_hpc_clusters.go | 114 + .../ecs/describe_image_share_permission.go | 116 + .../describe_image_support_instance_types.go | 117 + .../services/ecs/describe_images.go | 145 + .../ecs/describe_instance_attribute.go | 137 + .../describe_instance_auto_renew_attribute.go | 108 + .../ecs/describe_instance_history_events.go | 122 + .../ecs/describe_instance_monitor_data.go | 111 + .../describe_instance_physical_attribute.go | 111 + .../ecs/describe_instance_ram_role.go | 112 + .../services/ecs/describe_instance_status.go | 114 + .../ecs/describe_instance_type_families.go | 108 + .../services/ecs/describe_instance_types.go | 108 + .../ecs/describe_instance_vnc_passwd.go | 108 + .../services/ecs/describe_instance_vnc_url.go | 108 + .../services/ecs/describe_instances.go | 155 + .../ecs/describe_instances_full_status.go | 122 + .../ecs/describe_intranet_attribute_kb.go | 112 + .../ecs/describe_invocation_results.go | 113 + .../services/ecs/describe_invocations.go | 119 + .../services/ecs/describe_ip_ranges.go | 116 + .../services/ecs/describe_key_pairs.go | 124 + .../ecs/describe_launch_template_versions.go | 119 + .../services/ecs/describe_launch_templates.go | 125 + .../services/ecs/describe_limitation.go | 109 + .../services/ecs/describe_nat_gateways.go | 114 + .../describe_network_interface_permissions.go | 114 + .../ecs/describe_network_interfaces.go | 131 + .../describe_new_project_eip_monitor_data.go | 111 + .../ecs/describe_physical_connections.go | 121 + .../services/ecs/describe_price.go | 127 + .../ecs/describe_recommend_instance_type.go | 114 + .../services/ecs/describe_recycle_bin.go | 112 + .../services/ecs/describe_regions.go | 110 + .../services/ecs/describe_renewal_price.go | 111 + .../services/ecs/describe_resource_by_tags.go | 122 + .../ecs/describe_resources_modification.go | 112 + .../services/ecs/describe_route_tables.go | 117 + .../ecs/describe_router_interfaces.go | 118 + .../ecs/describe_security_group_attribute.go | 116 + .../ecs/describe_security_group_references.go | 108 + .../services/ecs/describe_security_groups.go | 132 + .../services/ecs/describe_snapshot_links.go | 115 + .../ecs/describe_snapshot_monitor_data.go | 110 + .../services/ecs/describe_snapshot_package.go | 112 + .../services/ecs/describe_snapshots.go | 137 + .../services/ecs/describe_snapshots_usage.go | 108 + .../ecs/describe_spot_price_history.go | 117 + .../services/ecs/describe_tag_keys.go | 113 + .../services/ecs/describe_tags.go | 123 + .../services/ecs/describe_task_attribute.go | 118 + .../services/ecs/describe_tasks.go | 118 + .../ecs/describe_user_business_behavior.go | 108 + .../services/ecs/describe_user_data.go | 109 + .../services/ecs/describe_v_routers.go | 113 + .../services/ecs/describe_v_switches.go | 116 + .../ecs/describe_virtual_border_routers.go | 118 + ..._border_routers_for_physical_connection.go | 119 + .../services/ecs/describe_vpcs.go | 114 + .../services/ecs/describe_zones.go | 110 + .../services/ecs/detach_classic_link_vpc.go | 107 + .../services/ecs/detach_disk.go | 108 + .../services/ecs/detach_instance_ram_role.go | 111 + .../services/ecs/detach_key_pair.go | 111 + .../services/ecs/detach_network_interface.go | 108 + .../services/ecs/eip_fill_params.go | 113 + .../services/ecs/eip_fill_product.go | 113 + .../services/ecs/eip_notify_paid.go | 113 + .../ecs/enable_physical_connection.go | 109 + .../services/ecs/export_image.go | 112 + .../ecs/get_instance_console_output.go | 110 + .../services/ecs/get_instance_screenshot.go | 110 + .../services/ecs/import_image.go | 125 + .../services/ecs/import_key_pair.go | 109 + .../services/ecs/install_cloud_assistant.go | 107 + .../services/ecs/invoke_command.go | 111 + .../services/ecs/join_resource_group.go | 109 + .../services/ecs/join_security_group.go | 108 + .../services/ecs/leave_security_group.go | 108 + .../ecs/modify_auto_snapshot_policy.go | 114 + .../ecs/modify_auto_snapshot_policy_ex.go | 110 + .../ecs/modify_bandwidth_package_spec.go | 108 + .../services/ecs/modify_command.go | 112 + .../ecs/modify_deployment_set_attribute.go | 109 + .../services/ecs/modify_disk_attribute.go | 112 + .../services/ecs/modify_disk_charge_type.go | 112 + .../ecs/modify_eip_address_attribute.go | 108 + .../services/ecs/modify_forward_entry.go | 113 + .../services/ecs/modify_ha_vip_attribute.go | 109 + .../ecs/modify_hpc_cluster_attribute.go | 110 + .../services/ecs/modify_image_attribute.go | 109 + .../modify_image_share_group_permission.go | 109 + .../ecs/modify_image_share_permission.go | 127 + .../services/ecs/modify_instance_attribute.go | 113 + .../ecs/modify_instance_auto_release_time.go | 108 + .../modify_instance_auto_renew_attribute.go | 111 + .../ecs/modify_instance_charge_type.go | 115 + .../ecs/modify_instance_network_spec.go | 116 + .../services/ecs/modify_instance_spec.go | 117 + .../ecs/modify_instance_vnc_passwd.go | 108 + .../ecs/modify_instance_vpc_attribute.go | 109 + .../ecs/modify_intranet_bandwidth_kb.go | 109 + .../modify_launch_template_default_version.go | 109 + .../ecs/modify_network_interface_attribute.go | 110 + .../modify_physical_connection_attribute.go | 117 + .../ecs/modify_prepay_instance_spec.go | 114 + .../ecs/modify_router_interface_attribute.go | 114 + .../ecs/modify_router_interface_spec.go | 111 + .../ecs/modify_security_group_attribute.go | 109 + .../ecs/modify_security_group_egress_rule.go | 120 + .../ecs/modify_security_group_policy.go | 109 + .../ecs/modify_security_group_rule.go | 120 + .../services/ecs/modify_snapshot_attribute.go | 109 + .../ecs/modify_user_business_behavior.go | 108 + .../services/ecs/modify_v_router_attribute.go | 109 + .../services/ecs/modify_v_switch_attribute.go | 109 + .../modify_virtual_border_router_attribute.go | 116 + .../services/ecs/modify_vpc_attribute.go | 110 + .../services/ecs/re_activate_instances.go | 107 + .../services/ecs/re_init_disk.go | 111 + .../services/ecs/reboot_instance.go | 108 + .../ecs/recover_virtual_border_router.go | 109 + .../services/ecs/release_eip_address.go | 107 + .../services/ecs/release_public_ip_address.go | 108 + .../ecs/remove_bandwidth_package_ips.go | 109 + .../services/ecs/remove_tags.go | 117 + .../services/ecs/renew_instance.go | 110 + .../services/ecs/replace_system_disk.go | 119 + .../services/ecs/reset_disk.go | 108 + .../services/ecs/resize_disk.go | 109 + .../services/ecs/revoke_security_group.go | 120 + .../ecs/revoke_security_group_egress.go | 120 + .../services/ecs/run_instances.go | 177 ++ .../services/ecs/sign_agreement.go | 107 + .../services/ecs/start_instance.go | 108 + .../services/ecs/stop_instance.go | 110 + .../services/ecs/stop_invocation.go | 108 + .../services/ecs/struct_access_point_set.go | 21 + .../services/ecs/struct_access_point_type.go | 28 + .../services/ecs/struct_account.go | 21 + .../services/ecs/struct_accounts.go | 21 + .../ecs/struct_associated_eip_addresses.go | 21 + .../ecs/struct_associated_instances.go | 21 + .../ecs/struct_associated_public_ip.go | 22 + .../struct_attach_instance_ram_role_result.go | 24 + ...struct_attach_instance_ram_role_results.go | 21 + .../struct_auto_snapshot_excution_status.go | 22 + .../ecs/struct_auto_snapshot_policies.go | 21 + .../ecs/struct_auto_snapshot_policy.go | 38 + .../struct_available_dedicated_host_types.go | 21 + .../ecs/struct_available_disk_categories.go | 21 + .../ecs/struct_available_instance_types.go | 21 + .../services/ecs/struct_available_resource.go | 22 + .../ecs/struct_available_resource_creation.go | 21 + ...esources_in_describe_available_resource.go | 21 + ...rces_in_describe_resources_modification.go | 21 + ...t_available_resources_in_describe_zones.go | 21 + .../ecs/struct_available_volume_categories.go | 21 + .../services/ecs/struct_available_zone.go | 24 + ...le_zones_in_describe_available_resource.go | 21 + ...ones_in_describe_resources_modification.go | 21 + .../services/ecs/struct_bandwidth.go | 24 + .../services/ecs/struct_bandwidth_package.go | 34 + ...width_package_ids_in_create_nat_gateway.go | 21 + ...th_package_ids_in_describe_nat_gateways.go | 21 + .../services/ecs/struct_bandwidth_packages.go | 21 + .../services/ecs/struct_bandwidths.go | 21 + .../services/ecs/struct_cluster.go | 21 + .../services/ecs/struct_clusters.go | 21 + .../services/ecs/struct_command.go | 27 + .../services/ecs/struct_commands.go | 21 + .../services/ecs/struct_data.go | 21 + .../services/ecs/struct_data_disk.go | 27 + .../ecs/struct_data_disk_categories.go | 21 + .../services/ecs/struct_data_disks.go | 21 + .../services/ecs/struct_data_point.go | 22 + .../ecs/struct_dedicated_host_attribute.go | 22 + .../ecs/struct_dedicated_host_generations.go | 21 + .../services/ecs/struct_deployment_set.go | 28 + .../services/ecs/struct_deployment_sets.go | 21 + .../struct_detach_instance_ram_role_result.go | 25 + ...struct_detach_instance_ram_role_results.go | 21 + .../services/ecs/struct_disk.go | 54 + .../ecs/struct_disk_device_mapping.go | 27 + .../ecs/struct_disk_device_mappings.go | 21 + .../services/ecs/struct_disk_event_set.go | 21 + .../services/ecs/struct_disk_event_type.go | 24 + .../ecs/struct_disk_full_status_set.go | 21 + .../ecs/struct_disk_full_status_type.go | 24 + .../services/ecs/struct_disk_monitor_data.go | 30 + .../services/ecs/struct_disks.go | 21 + .../services/ecs/struct_eip_address.go | 25 + ...t_eip_address_in_describe_eip_addresses.go | 33 + .../services/ecs/struct_eip_addresses.go | 21 + .../services/ecs/struct_eip_monitor_data.go | 26 + ...itor_datas_in_describe_eip_monitor_data.go | 21 + ...n_describe_new_project_eip_monitor_data.go | 21 + .../services/ecs/struct_event_cycle_status.go | 22 + .../services/ecs/struct_event_type.go | 22 + .../ecs/struct_forward_table_entries.go | 21 + .../ecs/struct_forward_table_entry.go | 28 + ...forward_table_ids_in_create_nat_gateway.go | 21 + ...ward_table_ids_in_describe_nat_gateways.go | 21 + .../services/ecs/struct_ha_vip.go | 31 + .../services/ecs/struct_ha_vips.go | 21 + .../services/ecs/struct_health_status.go | 22 + .../services/ecs/struct_host.go | 22 + ...sts_in_describe_deployment_set_topology.go | 21 + .../services/ecs/struct_hpc_cluster.go | 23 + .../services/ecs/struct_hpc_clusters.go | 21 + .../services/ecs/struct_image.go | 42 + .../services/ecs/struct_images.go | 21 + ..._address_in_describe_instance_attribute.go | 21 + ..._inner_ip_address_in_describe_instances.go | 21 + .../services/ecs/struct_instance.go | 70 + .../struct_instance_cloud_assistant_status.go | 22 + ...uct_instance_cloud_assistant_status_set.go | 21 + .../ecs/struct_instance_full_status_set.go | 21 + .../ecs/struct_instance_full_status_type.go | 24 + .../ecs/struct_instance_generations.go | 21 + .../services/ecs/struct_instance_id_sets.go | 21 + ...ids_in_describe_deployment_set_topology.go | 21 + .../ecs/struct_instance_monitor_data.go | 37 + .../ecs/struct_instance_ram_role_set.go | 22 + ...role_sets_in_describe_instance_ram_role.go | 21 + ...m_role_sets_in_detach_instance_ram_role.go | 21 + .../ecs/struct_instance_renew_attribute.go | 25 + .../ecs/struct_instance_renew_attributes.go | 21 + .../services/ecs/struct_instance_status.go | 22 + .../services/ecs/struct_instance_statuses.go | 21 + .../ecs/struct_instance_system_event_set.go | 21 + .../ecs/struct_instance_system_event_type.go | 27 + .../services/ecs/struct_instance_tag.go | 22 + .../services/ecs/struct_instance_type.go | 41 + ...lies_in_describe_instance_type_families.go | 21 + ...nstance_type_families_in_describe_zones.go | 21 + .../ecs/struct_instance_type_family.go | 22 + ...n_describe_image_support_instance_types.go | 21 + ...stance_types_in_describe_instance_types.go | 21 + ...struct_instance_types_in_describe_zones.go | 21 + .../services/ecs/struct_instances.go | 21 + .../services/ecs/struct_invocation.go | 32 + .../services/ecs/struct_invocation_result.go | 27 + .../services/ecs/struct_invocation_results.go | 21 + .../services/ecs/struct_invocations.go | 21 + .../services/ecs/struct_invoke_instance.go | 22 + .../services/ecs/struct_invoke_instances.go | 21 + .../services/ecs/struct_ip_range.go | 22 + .../services/ecs/struct_ip_ranges.go | 21 + .../services/ecs/struct_key_pair.go | 22 + .../services/ecs/struct_key_pairs.go | 21 + .../ecs/struct_launch_template_data.go | 55 + .../ecs/struct_launch_template_set.go | 27 + .../ecs/struct_launch_template_sets.go | 21 + .../ecs/struct_launch_template_version_set.go | 29 + .../struct_launch_template_version_sets.go | 21 + .../services/ecs/struct_link.go | 22 + .../services/ecs/struct_links.go | 21 + .../services/ecs/struct_lock_reason.go | 22 + ...itor_data_in_describe_disk_monitor_data.go | 21 + ..._data_in_describe_instance_monitor_data.go | 21 + ..._data_in_describe_snapshot_monitor_data.go | 21 + .../services/ecs/struct_mount_instance.go | 23 + .../services/ecs/struct_mount_instances.go | 21 + .../services/ecs/struct_nat_gateway.go | 32 + .../services/ecs/struct_nat_gateways.go | 21 + .../services/ecs/struct_network_interface.go | 27 + .../struct_network_interface_permission.go | 26 + .../struct_network_interface_permissions.go | 21 + .../ecs/struct_network_interface_set.go | 35 + .../ecs/struct_network_interface_sets.go | 21 + ...etwork_interfaces_in_describe_instances.go | 21 + ...es_in_describe_launch_template_versions.go | 21 + ...pes_in_describe_recommend_instance_type.go | 21 + .../struct_network_types_in_describe_zones.go | 21 + .../services/ecs/struct_next_hop.go | 24 + .../services/ecs/struct_next_hops.go | 21 + .../services/ecs/struct_operation_lock.go | 21 + ...truct_operation_locks_in_describe_disks.go | 21 + ...eration_locks_in_describe_eip_addresses.go | 21 + ...on_locks_in_describe_instance_attribute.go | 21 + ...t_operation_locks_in_describe_instances.go | 21 + .../services/ecs/struct_operation_progress.go | 24 + .../ecs/struct_operation_progress_set.go | 21 + .../services/ecs/struct_permission.go | 36 + .../services/ecs/struct_permissions.go | 21 + .../ecs/struct_physical_connection_set.go | 21 + .../ecs/struct_physical_connection_type.go | 38 + .../services/ecs/struct_price.go | 24 + .../services/ecs/struct_price_info.go | 22 + ..._address_in_describe_instance_attribute.go | 21 + ...rivate_ip_address_in_describe_instances.go | 21 + .../services/ecs/struct_private_ip_set.go | 23 + .../services/ecs/struct_private_ip_sets.go | 21 + ..._address_in_describe_instance_attribute.go | 21 + ...public_ip_address_in_describe_instances.go | 21 + .../services/ecs/struct_public_ip_addresse.go | 22 + .../ecs/struct_public_ip_addresses.go | 21 + .../services/ecs/struct_rack.go | 22 + .../services/ecs/struct_racks.go | 21 + .../services/ecs/struct_rdma_ip_address.go | 21 + .../ecs/struct_recommend_instance_type.go | 25 + .../services/ecs/struct_recycle_bin_model.go | 26 + .../services/ecs/struct_recycle_bin_models.go | 21 + .../ecs/struct_referencing_security_group.go | 22 + .../ecs/struct_referencing_security_groups.go | 21 + .../services/ecs/struct_region.go | 24 + .../services/ecs/struct_regions.go | 21 + .../services/ecs/struct_related_item.go | 22 + .../services/ecs/struct_related_item_set.go | 21 + .../services/ecs/struct_relation_resource.go | 22 + .../services/ecs/struct_relation_resources.go | 21 + .../services/ecs/struct_resource.go | 23 + .../ecs/struct_resource_type_count.go | 26 + .../services/ecs/struct_resources.go | 21 + .../services/ecs/struct_resources_info.go | 27 + .../services/ecs/struct_result.go | 24 + .../ecs/struct_results_in_attach_key_pair.go | 21 + .../ecs/struct_results_in_detach_key_pair.go | 21 + .../services/ecs/struct_route_entry.go | 27 + .../services/ecs/struct_route_entrys.go | 21 + .../services/ecs/struct_route_table.go | 25 + .../services/ecs/struct_route_table_ids.go | 21 + .../services/ecs/struct_route_tables.go | 21 + .../ecs/struct_router_interface_set.go | 21 + .../ecs/struct_router_interface_type.go | 45 + .../services/ecs/struct_rule.go | 22 + .../ecs/struct_rules_in_describe_price.go | 21 + .../struct_rules_in_describe_renewal_price.go | 21 + .../ecs/struct_scheduled_system_event_set.go | 21 + .../ecs/struct_scheduled_system_event_type.go | 25 + .../services/ecs/struct_security_group.go | 28 + ...roup_ids_in_describe_instance_attribute.go | 21 + ...ecurity_group_ids_in_describe_instances.go | 21 + ...roup_ids_in_describe_network_interfaces.go | 21 + .../ecs/struct_security_group_reference.go | 22 + .../ecs/struct_security_group_references.go | 21 + .../services/ecs/struct_security_groups.go | 21 + .../services/ecs/struct_share_group.go | 21 + .../services/ecs/struct_share_groups.go | 21 + .../services/ecs/struct_snapshot.go | 36 + .../services/ecs/struct_snapshot_link.go | 29 + .../services/ecs/struct_snapshot_links.go | 21 + .../services/ecs/struct_snapshot_package.go | 24 + .../services/ecs/struct_snapshot_packages.go | 21 + .../services/ecs/struct_snapshots.go | 21 + .../services/ecs/struct_spot_price_type.go | 27 + .../services/ecs/struct_spot_prices.go | 21 + .../services/ecs/struct_status.go | 22 + .../services/ecs/struct_supported_resource.go | 25 + ...esources_in_describe_available_resource.go | 21 + ...rces_in_describe_resources_modification.go | 21 + .../services/ecs/struct_switch.go | 22 + .../services/ecs/struct_switchs.go | 21 + .../ecs/struct_system_disk_categories.go | 21 + .../services/ecs/struct_tag.go | 23 + .../services/ecs/struct_tag_keys.go | 21 + .../ecs/struct_tags_in_describe_disks.go | 21 + .../ecs/struct_tags_in_describe_images.go | 21 + .../ecs/struct_tags_in_describe_instances.go | 21 + ...gs_in_describe_launch_template_versions.go | 21 + ...struct_tags_in_describe_security_groups.go | 21 + .../ecs/struct_tags_in_describe_snapshots.go | 21 + .../ecs/struct_tags_in_describe_tags.go | 21 + .../services/ecs/struct_task.go | 26 + .../services/ecs/struct_task_set.go | 21 + .../ecs/struct_triggered_group_rule.go | 36 + .../services/ecs/struct_user_cidrs.go | 21 + .../services/ecs/struct_v_router.go | 27 + .../services/ecs/struct_v_routers.go | 21 + .../services/ecs/struct_v_switch.go | 30 + .../services/ecs/struct_v_switch_ids.go | 21 + .../services/ecs/struct_v_switches.go | 21 + ...rder_router_for_physical_connection_set.go | 21 + ...der_router_for_physical_connection_type.go | 28 + .../ecs/struct_virtual_border_router_set.go | 21 + .../ecs/struct_virtual_border_router_type.go | 40 + .../services/ecs/struct_vpc.go | 31 + .../services/ecs/struct_vpc_attributes.go | 24 + .../services/ecs/struct_vpcs.go | 21 + .../services/ecs/struct_zone.go | 31 + ...nes_in_describe_recommend_instance_type.go | 21 + .../ecs/struct_zones_in_describe_zones.go | 21 + .../ecs/terminate_physical_connection.go | 109 + .../ecs/terminate_virtual_border_router.go | 109 + .../ecs/unassign_private_ip_addresses.go | 108 + .../services/ecs/unassociate_eip_address.go | 109 + .../services/ecs/unassociate_ha_vip.go | 110 + .../services/ecs/unbind_ip_range.go | 108 + .../services/ecs/validate_security_group.go | 116 + .../services/ehpc/add_container_app.go | 108 + .../services/ehpc/add_nodes.go | 115 + .../services/ehpc/add_users.go | 111 + .../services/ehpc/client.go | 81 + .../services/ehpc/create_cluster.go | 152 + .../services/ehpc/create_hybrid_cluster.go | 129 + .../services/ehpc/create_job_template.go | 113 + .../services/ehpc/delete_cluster.go | 104 + .../services/ehpc/delete_container_apps.go | 108 + .../services/ehpc/delete_job_templates.go | 103 + .../services/ehpc/delete_jobs.go | 104 + .../services/ehpc/delete_nodes.go | 110 + .../services/ehpc/delete_users.go | 109 + .../ehpc/describe_auto_scale_config.go | 118 + .../services/ehpc/describe_cluster.go | 104 + .../services/ehpc/describe_container_app.go | 104 + .../services/ehpc/edit_job_template.go | 114 + .../services/ehpc/get_auto_scale_config.go | 116 + .../ehpc/get_hybrid_cluster_config.go | 104 + .../services/ehpc/invoke_shell_command.go | 114 + .../services/ehpc/list_cluster_logs.go | 110 + .../services/ehpc/list_clusters.go | 108 + .../services/ehpc/list_commands.go | 110 + .../services/ehpc/list_container_apps.go | 108 + .../services/ehpc/list_container_images.go | 111 + .../ehpc/list_current_client_version.go | 103 + .../services/ehpc/list_custom_images.go | 105 + .../services/ehpc/list_images.go | 103 + .../services/ehpc/list_invocation_results.go | 117 + .../services/ehpc/list_invocation_status.go | 107 + .../services/ehpc/list_job_templates.go | 109 + .../services/ehpc/list_jobs.go | 112 + .../services/ehpc/list_nodes.go | 111 + .../services/ehpc/list_nodes_no_paging.go | 110 + .../services/ehpc/list_preferred_ecs_types.go | 107 + .../services/ehpc/list_regions.go | 103 + .../services/ehpc/list_softwares.go | 104 + .../services/ehpc/list_users.go | 109 + .../services/ehpc/list_volumes.go | 108 + .../ehpc/modify_cluster_attributes.go | 105 + .../ehpc/modify_container_app_attributes.go | 104 + .../services/ehpc/modify_user_groups.go | 110 + .../services/ehpc/modify_user_passwords.go | 110 + .../services/ehpc/pull_image.go | 106 + .../services/ehpc/recover_cluster.go | 103 + .../services/ehpc/rerun_jobs.go | 104 + .../services/ehpc/reset_nodes.go | 109 + .../services/ehpc/set_auto_scale_config.go | 113 + .../services/ehpc/set_job_user.go | 105 + .../services/ehpc/start_cluster.go | 103 + .../services/ehpc/start_nodes.go | 110 + .../services/ehpc/stop_cluster.go | 103 + .../services/ehpc/stop_jobs.go | 104 + .../services/ehpc/stop_nodes.go | 110 + .../services/ehpc/struct_application_info.go | 24 + ...struct_applications_in_describe_cluster.go | 21 + .../struct_applications_in_list_softwares.go | 21 + .../services/ehpc/struct_base_os_tag.go | 24 + .../services/ehpc/struct_cluster_info.go | 48 + .../ehpc/struct_cluster_info_simple.go | 41 + .../services/ehpc/struct_clusters.go | 21 + .../services/ehpc/struct_command.go | 24 + .../services/ehpc/struct_commands.go | 21 + .../services/ehpc/struct_compute.go | 22 + ...uct_compute_in_list_preferred_ecs_types.go | 21 + .../services/ehpc/struct_computes.go | 25 + .../ehpc/struct_container_app_info.go | 27 + .../services/ehpc/struct_container_apps.go | 21 + .../ehpc/struct_container_apps_item.go | 27 + .../services/ehpc/struct_container_id.go | 21 + .../services/ehpc/struct_ecs_info.go | 23 + .../services/ehpc/struct_image_info.go | 31 + .../struct_images_in_list_container_images.go | 21 + .../struct_images_in_list_custom_images.go | 21 + .../services/ehpc/struct_images_item.go | 27 + .../ehpc/struct_instance_ids_in_add_nodes.go | 21 + ...ct_instance_ids_in_invoke_shell_command.go | 21 + .../services/ehpc/struct_invocation_result.go | 27 + .../ehpc/struct_invocation_results.go | 21 + .../services/ehpc/struct_invoke_instance.go | 22 + .../services/ehpc/struct_invoke_instances.go | 21 + .../services/ehpc/struct_job_info.go | 34 + .../services/ehpc/struct_job_templates.go | 31 + .../services/ehpc/struct_jobs.go | 21 + .../services/ehpc/struct_log_info.go | 24 + .../services/ehpc/struct_login.go | 22 + ...truct_login_in_list_preferred_ecs_types.go | 21 + .../services/ehpc/struct_logs.go | 21 + .../services/ehpc/struct_manager.go | 22 + ...uct_manager_in_list_preferred_ecs_types.go | 21 + .../services/ehpc/struct_managers.go | 25 + .../services/ehpc/struct_node_info.go | 35 + .../ehpc/struct_nodes_in_list_nodes.go | 21 + .../struct_nodes_in_list_nodes_no_paging.go | 21 + .../services/ehpc/struct_os_info.go | 24 + .../services/ehpc/struct_os_tags.go | 21 + .../services/ehpc/struct_region_info.go | 22 + .../services/ehpc/struct_regions.go | 21 + .../services/ehpc/struct_resources.go | 22 + .../services/ehpc/struct_roles.go | 23 + .../ehpc/struct_roles_in_list_nodes.go | 21 + .../struct_roles_in_list_nodes_no_paging.go | 21 + .../services/ehpc/struct_series.go | 21 + .../services/ehpc/struct_series_info.go | 23 + .../services/ehpc/struct_software_info.go | 27 + .../services/ehpc/struct_softwares.go | 21 + .../services/ehpc/struct_templates.go | 21 + .../services/ehpc/struct_total_resources.go | 23 + .../services/ehpc/struct_used_resources.go | 23 + .../services/ehpc/struct_user_info.go | 23 + .../services/ehpc/struct_users.go | 21 + .../services/ehpc/struct_volume_info.go | 28 + .../services/ehpc/struct_volumes.go | 21 + .../services/ehpc/submit_job.go | 119 + .../services/ehpc/upgrade_client.go | 104 + .../services/ess/attach_db_instances.go | 107 + .../services/ess/attach_instances.go | 148 + .../services/ess/attach_load_balancers.go | 107 + .../services/ess/client.go | 81 + .../services/ess/complete_lifecycle_action.go | 108 + .../services/ess/create_lifecycle_hook.go | 124 + .../ess/create_notification_configuration.go | 107 + .../ess/create_scaling_configuration.go | 155 + .../services/ess/create_scaling_group.go | 129 + .../services/ess/create_scaling_rule.go | 112 + .../services/ess/create_scheduled_task.go | 115 + .../ess/deactivate_scaling_configuration.go | 106 + .../services/ess/delete_lifecycle_hook.go | 108 + .../ess/delete_notification_configuration.go | 106 + .../ess/delete_scaling_configuration.go | 106 + .../services/ess/delete_scaling_group.go | 107 + .../services/ess/delete_scaling_rule.go | 106 + .../services/ess/delete_scheduled_task.go | 106 + .../ess/describe_account_attributes.go | 112 + .../services/ess/describe_alert_config.go | 108 + .../services/ess/describe_capacity_history.go | 113 + .../services/ess/describe_lifecycle_hooks.go | 114 + .../services/ess/describe_limitation.go | 112 + .../describe_notification_configurations.go | 106 + .../ess/describe_notification_types.go | 105 + .../services/ess/describe_regions.go | 105 + .../ess/describe_scaling_activities.go | 134 + .../ess/describe_scaling_activity_detail.go | 107 + .../ess/describe_scaling_configurations.go | 133 + .../services/ess/describe_scaling_groups.go | 152 + .../ess/describe_scaling_instances.go | 137 + .../services/ess/describe_scaling_rules.go | 143 + .../services/ess/describe_scheduled_tasks.go | 172 + .../services/ess/detach_db_instances.go | 107 + .../services/ess/detach_instances.go | 109 + .../services/ess/detach_load_balancers.go | 107 + .../services/ess/disable_scaling_group.go | 107 + .../services/ess/enable_scaling_group.go | 148 + .../services/ess/enter_standby.go | 106 + .../services/ess/execute_scaling_rule.go | 109 + .../services/ess/exit_standby.go | 106 + .../services/ess/modify_alert_config.go | 108 + .../services/ess/modify_lifecycle_hook.go | 113 + .../ess/modify_notification_configuration.go | 107 + .../ess/modify_scaling_configuration.go | 121 + .../services/ess/modify_scaling_group.go | 115 + .../services/ess/modify_scaling_rule.go | 111 + .../services/ess/modify_scheduled_task.go | 116 + .../services/ess/rebalance_instances.go | 108 + .../ess/record_lifecycle_action_heartbeat.go | 108 + .../services/ess/remove_instances.go | 128 + .../services/ess/set_instances_protection.go | 107 + .../ess/struct_capacity_history_items.go | 21 + .../ess/struct_capacity_history_model.go | 25 + .../services/ess/struct_data_disk.go | 24 + .../services/ess/struct_data_disks.go | 21 + .../services/ess/struct_db_instance_ids.go | 21 + .../services/ess/struct_instance_types.go | 21 + .../services/ess/struct_lifecycle_hook.go | 28 + .../services/ess/struct_lifecycle_hooks.go | 21 + .../services/ess/struct_load_balancer_ids.go | 21 + ...struct_notification_configuration_model.go | 23 + ...truct_notification_configuration_models.go | 21 + ...in_describe_notification_configurations.go | 21 + ...on_types_in_describe_notification_types.go | 21 + .../services/ess/struct_region.go | 23 + .../services/ess/struct_regions.go | 21 + .../services/ess/struct_removal_policies.go | 21 + .../services/ess/struct_scaling_activities.go | 21 + .../services/ess/struct_scaling_activity.go | 32 + .../ess/struct_scaling_configuration.go | 49 + .../ess/struct_scaling_configurations.go | 21 + .../services/ess/struct_scaling_group.go | 46 + .../services/ess/struct_scaling_groups.go | 21 + .../services/ess/struct_scaling_instance.go | 28 + .../services/ess/struct_scaling_instances.go | 21 + .../services/ess/struct_scaling_rule.go | 29 + .../services/ess/struct_scaling_rules.go | 21 + .../services/ess/struct_scheduled_task.go | 30 + .../services/ess/struct_scheduled_tasks.go | 21 + .../services/ess/struct_spot_price_limit.go | 21 + .../services/ess/struct_spot_price_model.go | 22 + .../services/ess/struct_tag.go | 22 + .../services/ess/struct_tags.go | 21 + .../services/ess/struct_v_switch_ids.go | 21 + .../services/ess/verify_authentication.go | 106 + .../services/ess/verify_user.go | 104 + .../services/green/add_faces.go | 103 + .../services/green/add_groups.go | 103 + .../services/green/add_person.go | 103 + .../services/green/add_similarity_image.go | 103 + .../services/green/client.go | 81 + .../services/green/delete_faces.go | 103 + .../services/green/delete_groups.go | 103 + .../services/green/delete_person.go | 103 + .../services/green/delete_similarity_image.go | 103 + .../services/green/file_async_scan.go | 103 + .../services/green/file_async_scan_results.go | 103 + .../services/green/get_faces.go | 103 + .../services/green/get_groups.go | 103 + .../services/green/get_person.go | 103 + .../services/green/get_persons.go | 103 + .../services/green/image_async_scan.go | 103 + .../green/image_async_scan_results.go | 103 + .../services/green/image_scan_feedback.go | 103 + .../services/green/image_sync_scan.go | 103 + .../services/green/search_person.go | 103 + .../services/green/set_person.go | 103 + .../services/green/text_feedback.go | 103 + .../services/green/text_scan.go | 103 + .../services/green/video_async_scan.go | 103 + .../green/video_async_scan_results.go | 103 + .../services/green/video_feedback.go | 103 + .../services/green/video_sync_scan.go | 103 + .../services/green/voice_async_scan.go | 103 + .../green/voice_async_scan_results.go | 103 + .../services/hsm/client.go | 81 + .../services/hsm/config_network.go | 108 + .../services/hsm/config_white_list.go | 106 + .../services/hsm/create_instance.go | 111 + .../services/hsm/describe_instances.go | 110 + .../services/hsm/describe_regions.go | 105 + .../services/hsm/modify_instance.go | 106 + .../services/hsm/release_instance.go | 104 + .../services/hsm/renew_instance.go | 107 + .../services/hsm/struct_instance.go | 33 + .../services/hsm/struct_instance_ids.go | 21 + .../services/hsm/struct_instances.go | 21 + .../services/hsm/struct_region.go | 22 + .../services/hsm/struct_regions.go | 21 + .../services/hsm/struct_white_list.go | 21 + .../services/hsm/struct_zone.go | 21 + .../services/hsm/struct_zones.go | 21 + .../services/jarvis-public/client.go | 81 + .../jarvis-public/describe_phone_info.go | 110 + .../services/jarvis/client.go | 81 + .../jarvis/create_access_white_list_group.go | 114 + .../jarvis/create_cpmc_punish_feed_back.go | 114 + .../jarvis/create_uid_white_list_group.go | 114 + .../jarvis/delete_access_white_list_group.go | 107 + .../jarvis/delete_uid_white_list_group.go | 107 + .../describe_access_white_list_eip_list.go | 108 + .../describe_access_white_list_group.go | 114 + .../describe_access_white_list_slb_list.go | 108 + .../describe_access_whitelist_ecs_list.go | 108 + .../jarvis/describe_cpmc_punish_list.go | 112 + .../jarvis/describe_ddos_defense_info.go | 111 + .../services/jarvis/describe_phone_info.go | 110 + .../services/jarvis/describe_punish_list.go | 113 + .../jarvis/describe_reset_record_list.go | 114 + .../describe_reset_record_query_count.go | 108 + .../jarvis/describe_risk_list_detail.go | 116 + .../services/jarvis/describe_risk_trend.go | 111 + .../services/jarvis/describe_uid_gc_level.go | 107 + .../jarvis/describe_uid_white_list_group.go | 115 + .../modify_access_white_list_auto_share.go | 110 + .../modify_uid_white_list_auto_share.go | 110 + .../services/jarvis/struct_data.go | 50 + .../services/jarvis/struct_data_item.go | 23 + ...ist_in_describe_access_white_list_group.go | 21 + ..._data_list_in_describe_cpmc_punish_list.go | 21 + ...truct_data_list_in_describe_punish_list.go | 21 + ...data_list_in_describe_reset_record_list.go | 21 + ..._data_list_in_describe_risk_list_detail.go | 21 + ...struct_data_list_in_describe_risk_trend.go | 21 + ...a_list_in_describe_uid_white_list_group.go | 21 + .../jarvis/struct_ddos_defense_threshold.go | 21 + .../struct_ddos_defense_threshold_item.go | 23 + .../services/jarvis/struct_ecs.go | 23 + ..._in_describe_access_white_list_eip_list.go | 21 + ..._in_describe_access_white_list_slb_list.go | 21 + ...t_in_describe_access_whitelist_ecs_list.go | 21 + .../jarvis/struct_ecs_sec_group_risk.go | 21 + .../jarvis/struct_ecs_sec_group_risk_item.go | 24 + .../services/jarvis/struct_instance_list.go | 21 + .../services/jarvis/struct_item.go | 22 + ...ems_in_describe_access_white_list_group.go | 21 + ..._items_in_describe_uid_white_list_group.go | 21 + .../services/jarvis/struct_page_info.go | 23 + .../services/jarvis/struct_product_list.go | 21 + .../jarvis/struct_rds_whitelist_risk.go | 21 + .../jarvis/struct_rds_whitelist_risk_item.go | 22 + .../services/kms/cancel_key_deletion.go | 104 + .../services/kms/client.go | 81 + .../services/kms/create_alias.go | 105 + .../services/kms/create_key.go | 107 + .../services/kms/decrypt.go | 107 + .../services/kms/delete_alias.go | 104 + .../services/kms/delete_key_material.go | 104 + .../services/kms/describe_key.go | 105 + .../services/kms/describe_regions.go | 104 + .../services/kms/disable_key.go | 104 + .../services/kms/enable_key.go | 104 + .../services/kms/encrypt.go | 108 + .../services/kms/generate_data_key.go | 110 + .../services/kms/get_parameters_for_import.go | 110 + .../services/kms/import_key_material.go | 107 + .../services/kms/list_aliases.go | 109 + .../services/kms/list_aliases_by_key_id.go | 110 + .../services/kms/list_keys.go | 109 + .../services/kms/schedule_key_deletion.go | 105 + .../services/kms/struct_alias.go | 23 + .../kms/struct_aliases_in_list_aliases.go | 21 + ...truct_aliases_in_list_aliases_by_key_id.go | 21 + .../services/kms/struct_key.go | 22 + .../services/kms/struct_key_metadata.go | 30 + .../services/kms/struct_keys.go | 21 + .../services/kms/struct_region.go | 21 + .../services/kms/struct_regions.go | 21 + .../services/kms/update_alias.go | 105 + .../services/live/add_caster_component.go | 113 + .../services/live/add_caster_episode.go | 112 + .../services/live/add_caster_episode_group.go | 118 + .../live/add_caster_episode_group_content.go | 107 + .../services/live/add_caster_layout.go | 126 + .../services/live/add_caster_program.go | 117 + .../live/add_caster_video_resource.go | 113 + .../live/add_custom_live_stream_transcode.go | 113 + .../live/add_live_app_record_config.go | 121 + .../live/add_live_app_snapshot_config.go | 111 + .../live/add_live_detect_notify_config.go | 106 + .../services/live/add_live_mix_config.go | 107 + .../live/add_live_mix_notify_config.go | 106 + .../live/add_live_pull_stream_info_config.go | 110 + .../live/add_live_record_notify_config.go | 108 + .../live/add_live_record_vod_config.go | 110 + .../add_live_snapshot_detect_porn_config.go | 111 + .../live/add_live_stream_transcode.go | 107 + .../live/add_multiple_stream_mix_service.go | 110 + .../services/live/add_trancode_sei.go | 110 + .../services/live/client.go | 81 + .../services/live/copy_caster.go | 107 + .../services/live/copy_caster_scene_config.go | 106 + .../services/live/create_caster.go | 111 + .../create_live_stream_record_index_files.go | 113 + .../services/live/delete_caster.go | 105 + .../services/live/delete_caster_component.go | 107 + .../services/live/delete_caster_episode.go | 107 + .../live/delete_caster_episode_group.go | 104 + .../services/live/delete_caster_layout.go | 107 + .../services/live/delete_caster_program.go | 105 + .../live/delete_caster_scene_config.go | 106 + .../live/delete_caster_video_resource.go | 105 + .../live/delete_live_app_record_config.go | 107 + .../live/delete_live_app_snapshot_config.go | 106 + .../live/delete_live_detect_notify_config.go | 105 + .../services/live/delete_live_mix_config.go | 106 + .../live/delete_live_mix_notify_config.go | 105 + .../delete_live_pull_stream_info_config.go | 107 + .../live/delete_live_record_notify_config.go | 105 + .../live/delete_live_record_vod_config.go | 107 + ...delete_live_snapshot_detect_porn_config.go | 106 + .../live/delete_live_stream_transcode.go | 107 + .../delete_live_streams_notify_url_config.go | 105 + .../live/describe_caster_components.go | 107 + .../services/live/describe_caster_config.go | 115 + .../services/live/describe_caster_layouts.go | 107 + .../services/live/describe_caster_program.go | 116 + .../services/live/describe_caster_rtc_info.go | 106 + .../services/live/describe_caster_scenes.go | 107 + .../live/describe_caster_stream_url.go | 107 + .../live/describe_caster_video_resources.go | 106 + .../services/live/describe_casters.go | 112 + .../describe_live_detect_notify_config.go | 106 + .../live/describe_live_domain_record_data.go | 108 + .../describe_live_domain_snapshot_data.go | 107 + .../describe_live_domain_transcode_data.go | 107 + .../services/live/describe_live_mix_config.go | 106 + .../live/describe_live_mix_notify_config.go | 106 + .../live/describe_live_pull_stream_config.go | 106 + .../live/describe_live_record_config.go | 116 + .../describe_live_record_notify_config.go | 106 + .../live/describe_live_record_vod_configs.go | 112 + .../live/describe_live_snapshot_config.go | 115 + ...scribe_live_snapshot_detect_porn_config.go | 115 + .../describe_live_stream_bit_rate_data.go | 110 + .../describe_live_stream_history_user_num.go | 110 + .../describe_live_stream_online_user_num.go | 112 + .../describe_live_stream_record_content.go | 110 + .../describe_live_stream_record_index_file.go | 109 + ...describe_live_stream_record_index_files.go | 118 + .../describe_live_stream_snapshot_info.go | 113 + .../describe_live_stream_transcode_info.go | 106 + .../live/describe_live_streams_block_list.go | 113 + .../describe_live_streams_control_history.go | 109 + ...ve_streams_frame_rate_and_bit_rate_data.go | 110 + ...describe_live_streams_notify_url_config.go | 106 + .../live/describe_live_streams_online_list.go | 117 + .../describe_live_streams_publish_list.go | 118 + .../services/live/effect_caster_urgent.go | 105 + .../live/effect_caster_video_resource.go | 106 + .../services/live/forbid_live_stream.go | 109 + .../services/live/image_porn_detection.go | 107 + .../services/live/modify_caster_component.go | 113 + .../services/live/modify_caster_episode.go | 113 + .../services/live/modify_caster_layout.go | 127 + .../services/live/modify_caster_program.go | 118 + .../live/modify_caster_video_resource.go | 114 + .../services/live/real_time_record_command.go | 107 + .../remove_multiple_stream_mix_service.go | 110 + .../services/live/resume_live_stream.go | 108 + .../services/live/set_caster_config.go | 115 + .../services/live/set_caster_scene_config.go | 107 + .../set_live_streams_notify_url_config.go | 106 + .../services/live/start_caster.go | 106 + .../services/live/start_caster_scene.go | 106 + .../live/start_mix_streams_service.go | 113 + .../live/start_multiple_stream_mix_service.go | 108 + .../services/live/stop_caster.go | 104 + .../services/live/stop_caster_scene.go | 105 + .../services/live/stop_mix_streams_service.go | 111 + .../live/stop_multiple_stream_mix_service.go | 107 + .../services/live/struct_audio_layer.go | 23 + .../services/live/struct_audio_layers.go | 21 + .../services/live/struct_blend_list.go | 21 + .../live/struct_caption_layer_content.go | 28 + .../services/live/struct_caster.go | 30 + .../services/live/struct_caster_list.go | 21 + .../services/live/struct_caster_stream.go | 24 + .../services/live/struct_caster_streams.go | 21 + .../services/live/struct_component.go | 29 + ...omponent_ids_in_describe_caster_program.go | 21 + ...component_ids_in_describe_caster_scenes.go | 21 + .../services/live/struct_component_layer.go | 24 + .../services/live/struct_components.go | 21 + .../services/live/struct_control_info.go | 21 + .../struct_custom_transcode_parameters.go | 25 + .../services/live/struct_detail.go | 23 + .../live/struct_domain_transcode_info.go | 24 + .../live/struct_domain_transcode_list.go | 21 + .../services/live/struct_episode.go | 29 + .../services/live/struct_episode_id.go | 21 + .../services/live/struct_episode_ids.go | 21 + .../services/live/struct_episodes.go | 21 + .../struct_frame_rate_and_bit_rate_info.go | 25 + ...s_in_describe_live_stream_bit_rate_data.go | 21 + ...ve_streams_frame_rate_and_bit_rate_data.go | 21 + .../live/struct_image_layer_content.go | 21 + ...ct_item_ids_in_add_caster_episode_group.go | 21 + ...ids_in_add_caster_episode_group_content.go | 21 + .../services/live/struct_layout.go | 25 + .../services/live/struct_layouts.go | 21 + .../services/live/struct_live_app_record.go | 31 + ...ist_in_describe_live_pull_stream_config.go | 21 + ...ord_list_in_describe_live_record_config.go | 21 + .../live/struct_live_detect_notify_config.go | 22 + .../live/struct_live_record_notify_config.go | 24 + .../live/struct_live_record_vod_config.go | 28 + .../live/struct_live_record_vod_configs.go | 21 + ...struct_live_snapshot_detect_porn_config.go | 27 + ...t_live_snapshot_detect_porn_config_list.go | 21 + .../live/struct_live_stream_control_info.go | 24 + .../live/struct_live_stream_online_info.go | 29 + ...struct_live_stream_online_user_num_info.go | 23 + .../live/struct_live_stream_publish_info.go | 33 + .../struct_live_stream_snapshot_config.go | 28 + ...struct_live_stream_snapshot_config_list.go | 21 + .../live/struct_live_stream_snapshot_info.go | 24 + .../struct_live_stream_snapshot_info_list.go | 21 + .../live/struct_live_stream_user_num_info.go | 22 + .../live/struct_live_stream_user_num_infos.go | 21 + .../live/struct_live_streams_notify_config.go | 22 + .../services/live/struct_live_template_ids.go | 21 + .../services/live/struct_mix_config.go | 23 + .../services/live/struct_mix_config_list.go | 21 + .../services/live/struct_mix_list.go | 21 + .../services/live/struct_mix_streams_info.go | 23 + ..._info_list_in_start_mix_streams_service.go | 21 + ...s_info_list_in_stop_mix_streams_service.go | 21 + .../services/live/struct_online_info.go | 21 + .../services/live/struct_online_user_info.go | 21 + .../services/live/struct_pgm_scene_infos.go | 21 + ...rmalizeds_in_describe_caster_components.go | 21 + ..._normalizeds_in_describe_caster_layouts.go | 21 + .../services/live/struct_publish_info.go | 21 + .../services/live/struct_pvw_scene_infos.go | 21 + .../services/live/struct_record_config.go | 23 + .../live/struct_record_content_info.go | 26 + .../live/struct_record_content_info_list.go | 21 + .../services/live/struct_record_data_info.go | 23 + .../services/live/struct_record_data_infos.go | 21 + .../services/live/struct_record_format.go | 24 + ...record_format_in_describe_caster_config.go | 21 + .../live/struct_record_format_item.go | 24 + .../live/struct_record_format_list.go | 21 + .../services/live/struct_record_index_info.go | 34 + .../live/struct_record_index_info_list.go | 21 + .../services/live/struct_record_info.go | 34 + .../services/live/struct_scene.go | 28 + .../services/live/struct_scene_info.go | 23 + .../services/live/struct_scene_list.go | 21 + .../services/live/struct_scenes.go | 21 + .../live/struct_snapshot_data_info.go | 22 + .../live/struct_snapshot_data_infos.go | 21 + .../services/live/struct_stream_info.go | 23 + ..._stream_infos_in_describe_caster_scenes.go | 21 + ...eam_infos_in_describe_caster_stream_url.go | 21 + .../struct_stream_infos_in_start_caster.go | 21 + .../services/live/struct_stream_urls.go | 21 + .../live/struct_text_layer_content.go | 26 + .../services/live/struct_transcode_config.go | 22 + .../live/struct_transcode_data_info.go | 23 + .../live/struct_transcode_data_infos.go | 21 + .../services/live/struct_video_layer.go | 26 + .../services/live/struct_video_layers.go | 21 + .../services/live/struct_video_resource.go | 29 + .../services/live/struct_video_resources.go | 21 + .../live/update_caster_scene_config.go | 107 + .../live/update_live_app_snapshot_config.go | 111 + .../live/update_live_detect_notify_config.go | 106 + .../live/update_live_mix_notify_config.go | 106 + .../live/update_live_record_notify_config.go | 108 + ...update_live_snapshot_detect_porn_config.go | 111 + .../services/mts/activate_media_workflow.go | 108 + .../services/mts/add_asr_pipeline.go | 110 + .../services/mts/add_category.go | 109 + .../services/mts/add_censor_pipeline.go | 110 + .../services/mts/add_cover_pipeline.go | 111 + .../services/mts/add_media.go | 115 + .../services/mts/add_media_tag.go | 108 + .../services/mts/add_media_workflow.go | 110 + .../services/mts/add_pipeline.go | 112 + .../services/mts/add_porn_pipeline.go | 110 + .../services/mts/add_template.go | 113 + .../services/mts/add_terrorism_pipeline.go | 110 + .../services/mts/add_water_mark_template.go | 109 + .../services/mts/bind_input_bucket.go | 108 + .../services/mts/bind_output_bucket.go | 108 + .../services/mts/cancel_job.go | 108 + .../services/mts/category_tree.go | 107 + .../services/mts/client.go | 81 + .../services/mts/create_session.go | 111 + .../services/mts/deactivate_media_workflow.go | 108 + .../services/mts/decrypt_key.go | 110 + .../services/mts/delete_category.go | 107 + .../services/mts/delete_media.go | 107 + .../services/mts/delete_media_tag.go | 108 + .../services/mts/delete_media_workflow.go | 108 + .../services/mts/delete_pipeline.go | 108 + .../services/mts/delete_template.go | 108 + .../mts/delete_water_mark_template.go | 108 + .../services/mts/get_license.go | 110 + .../services/mts/get_package.go | 108 + .../services/mts/list_all_category.go | 107 + .../services/mts/list_all_media_bucket.go | 107 + .../services/mts/list_asr_pipeline.go | 113 + .../services/mts/list_censor_pipeline.go | 113 + .../services/mts/list_cover_pipeline.go | 113 + .../services/mts/list_job.go | 114 + .../services/mts/list_media.go | 112 + .../mts/list_media_workflow_executions.go | 113 + .../services/mts/list_porn_pipeline.go | 113 + .../services/mts/list_terrorism_pipeline.go | 113 + .../services/mts/play_info.go | 115 + .../services/mts/player_auth.go | 108 + .../services/mts/query_analysis_job_list.go | 109 + .../services/mts/query_annotation_job_list.go | 109 + .../services/mts/query_asr_job_list.go | 109 + .../services/mts/query_asr_pipeline_list.go | 109 + .../services/mts/query_auth_config.go | 108 + .../services/mts/query_censor_job_list.go | 109 + .../mts/query_censor_pipeline_list.go | 109 + .../services/mts/query_cover_job_list.go | 109 + .../services/mts/query_cover_pipeline_list.go | 109 + .../services/mts/query_editing_job_list.go | 109 + .../services/mts/query_facerecog_job_list.go | 109 + .../services/mts/query_fp_shot_job_list.go | 109 + .../services/mts/query_job_list.go | 109 + .../mts/query_media_detail_job_list.go | 109 + .../services/mts/query_media_info_job_list.go | 109 + .../services/mts/query_media_list.go | 113 + .../services/mts/query_media_list_by_url.go | 113 + .../query_media_workflow_execution_list.go | 109 + .../services/mts/query_media_workflow_list.go | 109 + .../services/mts/query_pipeline_list.go | 109 + .../services/mts/query_porn_job_list.go | 109 + .../services/mts/query_porn_pipeline_list.go | 109 + .../services/mts/query_snapshot_job_list.go | 109 + .../services/mts/query_tag_job_list.go | 109 + .../services/mts/query_template_list.go | 109 + .../services/mts/query_terrorism_job_list.go | 109 + .../mts/query_terrorism_pipeline_list.go | 109 + .../services/mts/query_video_gif_job_list.go | 109 + .../mts/query_video_split_job_list.go | 109 + .../mts/query_video_summary_job_list.go | 109 + .../mts/query_water_mark_template_list.go | 109 + .../mts/refresh_cdn_domain_configs_cache.go | 109 + .../mts/register_media_detail_person.go | 111 + .../mts/register_media_detail_scenario.go | 110 + .../mts/report_annotation_job_result.go | 110 + .../services/mts/report_censor_job_result.go | 110 + .../services/mts/report_cover_job_result.go | 109 + .../mts/report_facerecog_job_result.go | 110 + .../services/mts/report_fp_shot_job_result.go | 110 + .../mts/report_media_detail_job_result.go | 110 + .../services/mts/report_porn_job_result.go | 110 + .../services/mts/report_tag_job_result.go | 110 + .../mts/report_terrorism_job_result.go | 110 + .../mts/report_video_split_job_result.go | 110 + .../services/mts/search_media.go | 120 + .../services/mts/search_media_workflow.go | 113 + .../services/mts/search_pipeline.go | 113 + .../services/mts/search_template.go | 113 + .../mts/search_water_mark_template.go | 113 + .../services/mts/set_auth_config.go | 110 + .../services/mts/struct_activity.go | 29 + ..._list_in_list_media_workflow_executions.go | 21 + ..._in_query_media_workflow_execution_list.go | 21 + .../services/mts/struct_analysis_config.go | 22 + .../services/mts/struct_analysis_job.go | 33 + .../services/mts/struct_analysis_job_list.go | 21 + .../services/mts/struct_annotation.go | 22 + .../services/mts/struct_annotation_job.go | 29 + .../mts/struct_annotation_job_list.go | 21 + .../services/mts/struct_annotations.go | 21 + .../services/mts/struct_asr_config.go | 21 + .../services/mts/struct_asr_result.go | 22 + .../services/mts/struct_asr_text.go | 25 + .../services/mts/struct_asr_text_list.go | 21 + .../services/mts/struct_audio.go | 28 + .../services/mts/struct_audio_stream.go | 36 + .../struct_audio_stream_list_in_list_job.go | 21 + ...o_stream_list_in_query_editing_job_list.go | 21 + ...uct_audio_stream_list_in_query_job_list.go | 21 + ...tream_list_in_query_media_info_job_list.go | 21 + ...t_audio_stream_list_in_query_media_list.go | 21 + ..._stream_list_in_query_media_list_by_url.go | 21 + ...udio_stream_list_in_submit_editing_jobs.go | 21 + ...struct_audio_stream_list_in_submit_jobs.go | 21 + ...io_stream_list_in_submit_media_info_job.go | 21 + .../services/mts/struct_bitrate_bnd.go | 22 + .../services/mts/struct_category.go | 24 + .../services/mts/struct_category_list.go | 21 + .../services/mts/struct_celebrities.go | 21 + .../services/mts/struct_celebrity.go | 23 + .../services/mts/struct_censor_config.go | 23 + .../services/mts/struct_censor_job.go | 31 + .../services/mts/struct_censor_job_list.go | 21 + .../services/mts/struct_censor_porn_result.go | 26 + .../mts/struct_censor_terrorism_result.go | 26 + .../services/mts/struct_clip.go | 31 + ...uct_clip_list_in_query_editing_job_list.go | 21 + ...struct_clip_list_in_submit_editing_jobs.go | 21 + .../services/mts/struct_clips_config.go | 21 + .../services/mts/struct_clips_config_video.go | 22 + .../struct_clips_in_query_editing_job_list.go | 21 + .../struct_clips_in_submit_editing_jobs.go | 21 + .../services/mts/struct_container.go | 21 + .../services/mts/struct_counter.go | 22 + .../services/mts/struct_cover_config.go | 21 + .../services/mts/struct_cover_image.go | 23 + .../services/mts/struct_cover_image_list.go | 21 + .../services/mts/struct_cover_job.go | 30 + .../services/mts/struct_cover_job_list.go | 21 + .../services/mts/struct_crop.go | 25 + .../services/mts/struct_digi_water_mark.go | 23 + .../services/mts/struct_duplication.go | 22 + .../services/mts/struct_editing.go | 22 + .../services/mts/struct_editing_config.go | 45 + .../services/mts/struct_editing_input.go | 23 + ...diting_inputs_in_query_editing_job_list.go | 21 + ...t_editing_inputs_in_submit_editing_jobs.go | 21 + .../services/mts/struct_effect.go | 22 + ...truct_effects_in_query_editing_job_list.go | 21 + .../struct_effects_in_submit_editing_jobs.go | 21 + .../services/mts/struct_encryption.go | 26 + .../services/mts/struct_ext_subtitle.go | 23 + .../struct_ext_subtitle_list_in_list_job.go | 21 + ...subtitle_list_in_query_editing_job_list.go | 21 + ...uct_ext_subtitle_list_in_query_job_list.go | 21 + ...xt_subtitle_list_in_submit_editing_jobs.go | 21 + ...struct_ext_subtitle_list_in_submit_jobs.go | 21 + .../services/mts/struct_face.go | 23 + .../services/mts/struct_facerecog.go | 22 + .../services/mts/struct_facerecog_job.go | 29 + .../services/mts/struct_facerecog_job_list.go | 21 + .../services/mts/struct_facerecogs.go | 21 + .../services/mts/struct_faces.go | 21 + .../services/mts/struct_failed_domains.go | 21 + .../services/mts/struct_failed_image.go | 23 + .../services/mts/struct_failed_images.go | 21 + .../services/mts/struct_file.go | 22 + .../services/mts/struct_format.go | 28 + .../services/mts/struct_fp_shot.go | 23 + .../services/mts/struct_fp_shot_job.go | 29 + .../services/mts/struct_fp_shot_job_list.go | 21 + .../services/mts/struct_fp_shot_result.go | 21 + .../services/mts/struct_fp_shot_slice.go | 22 + .../services/mts/struct_fp_shot_slices.go | 21 + .../services/mts/struct_fp_shots.go | 21 + .../services/mts/struct_frame_tag_info.go | 23 + .../services/mts/struct_frame_tag_infos.go | 21 + .../services/mts/struct_frame_tags.go | 21 + .../services/mts/struct_gif.go | 24 + .../services/mts/struct_image_file.go | 23 + .../services/mts/struct_input.go | 28 + .../services/mts/struct_input_config.go | 22 + .../services/mts/struct_input_file.go | 23 + .../services/mts/struct_job.go | 42 + .../mts/struct_job_list_in_list_job.go | 21 + .../struct_job_list_in_query_asr_job_list.go | 21 + ...ruct_job_list_in_query_editing_job_list.go | 21 + .../mts/struct_job_list_in_query_job_list.go | 21 + ...job_list_in_query_media_detail_job_list.go | 21 + ...ct_job_list_in_query_video_gif_job_list.go | 21 + ..._job_list_in_query_video_split_job_list.go | 21 + ...ob_list_in_query_video_summary_job_list.go | 21 + .../services/mts/struct_job_result.go | 24 + ..._job_result_list_in_submit_editing_jobs.go | 21 + .../struct_job_result_list_in_submit_jobs.go | 21 + .../mts/struct_m3_u8_non_standard_support.go | 21 + .../services/mts/struct_media.go | 42 + .../services/mts/struct_media_bucket.go | 22 + .../services/mts/struct_media_bucket_list.go | 21 + .../mts/struct_media_detail_config.go | 23 + .../mts/struct_media_detail_recg_result.go | 28 + .../mts/struct_media_detail_recg_results.go | 21 + .../mts/struct_media_detail_result.go | 23 + .../services/mts/struct_media_info.go | 22 + .../services/mts/struct_media_info_job.go | 30 + .../mts/struct_media_info_job_list.go | 21 + .../mts/struct_media_list_in_list_media.go | 21 + .../struct_media_list_in_query_media_list.go | 21 + ...t_media_list_in_query_media_list_by_url.go | 21 + .../mts/struct_media_list_in_search_media.go | 21 + .../services/mts/struct_media_workflow.go | 26 + .../mts/struct_media_workflow_execution.go | 28 + ..._list_in_list_media_workflow_executions.go | 21 + ..._in_query_media_workflow_execution_list.go | 21 + ...kflow_list_in_query_media_workflow_list.go | 21 + ..._workflow_list_in_search_media_workflow.go | 21 + .../services/mts/struct_merge.go | 24 + .../mts/struct_merge_list_in_list_job.go | 21 + ...ct_merge_list_in_query_editing_job_list.go | 21 + .../struct_merge_list_in_query_job_list.go | 21 + ...truct_merge_list_in_submit_editing_jobs.go | 21 + .../mts/struct_merge_list_in_submit_jobs.go | 21 + .../services/mts/struct_mns_message_result.go | 23 + .../services/mts/struct_mux_config.go | 23 + .../services/mts/struct_network_cost.go | 23 + .../mts/struct_non_exist_analysis_job_ids.go | 21 + .../mts/struct_non_exist_file_ur_ls.go | 21 + ..._exist_ids_in_query_annotation_job_list.go | 21 + ...uct_non_exist_ids_in_query_asr_job_list.go | 21 + ...on_exist_ids_in_query_asr_pipeline_list.go | 21 + ..._non_exist_ids_in_query_censor_job_list.go | 21 + ...exist_ids_in_query_censor_pipeline_list.go | 21 + ...t_non_exist_ids_in_query_cover_job_list.go | 21 + ..._exist_ids_in_query_cover_pipeline_list.go | 21 + ...n_exist_ids_in_query_facerecog_job_list.go | 21 + ...non_exist_ids_in_query_fp_shot_job_list.go | 21 + ...xist_ids_in_query_media_detail_job_list.go | 21 + ...ct_non_exist_ids_in_query_porn_job_list.go | 21 + ...n_exist_ids_in_query_porn_pipeline_list.go | 21 + ...uct_non_exist_ids_in_query_tag_job_list.go | 21 + ...n_exist_ids_in_query_terrorism_job_list.go | 21 + ...st_ids_in_query_terrorism_pipeline_list.go | 21 + ...n_exist_ids_in_query_video_gif_job_list.go | 21 + ...exist_ids_in_query_video_split_job_list.go | 21 + ...ist_ids_in_query_video_summary_job_list.go | 21 + ...exist_job_ids_in_query_editing_job_list.go | 21 + ...uct_non_exist_job_ids_in_query_job_list.go | 21 + .../mts/struct_non_exist_media_ids.go | 21 + .../struct_non_exist_media_info_job_ids.go | 21 + .../struct_non_exist_media_workflow_ids.go | 21 + .../services/mts/struct_non_exist_pids.go | 21 + .../services/mts/struct_non_exist_run_ids.go | 21 + .../mts/struct_non_exist_snapshot_job_ids.go | 21 + .../services/mts/struct_non_exist_tids.go | 21 + .../services/mts/struct_non_exist_wids.go | 21 + .../mts/struct_not_found_cdn_domain.go | 21 + .../services/mts/struct_notify_config.go | 23 + .../services/mts/struct_opening.go | 24 + .../mts/struct_opening_list_in_list_job.go | 21 + .../struct_opening_list_in_query_job_list.go | 21 + .../mts/struct_opening_list_in_submit_jobs.go | 21 + .../services/mts/struct_out_subtitle.go | 24 + .../services/mts/struct_out_subtitle_file.go | 24 + .../struct_out_subtitle_list_in_list_job.go | 21 + ...uct_out_subtitle_list_in_query_job_list.go | 21 + ...struct_out_subtitle_list_in_submit_jobs.go | 21 + .../services/mts/struct_output.go | 47 + .../services/mts/struct_output_file.go | 24 + .../services/mts/struct_pipeline.go | 28 + .../struct_pipeline_in_add_cover_pipeline.go | 26 + .../struct_pipeline_in_list_asr_pipeline.go | 25 + ...struct_pipeline_in_list_censor_pipeline.go | 25 + .../struct_pipeline_in_list_cover_pipeline.go | 30 + .../struct_pipeline_in_list_porn_pipeline.go | 25 + ...uct_pipeline_in_list_terrorism_pipeline.go | 25 + ...uct_pipeline_in_query_asr_pipeline_list.go | 25 + ..._pipeline_in_query_censor_pipeline_list.go | 25 + ...t_pipeline_in_query_cover_pipeline_list.go | 26 + ...ct_pipeline_in_query_porn_pipeline_list.go | 25 + ...peline_in_query_terrorism_pipeline_list.go | 25 + ...ruct_pipeline_list_in_list_asr_pipeline.go | 21 + ...t_pipeline_list_in_list_censor_pipeline.go | 21 + ...ct_pipeline_list_in_list_cover_pipeline.go | 21 + ...uct_pipeline_list_in_list_porn_pipeline.go | 21 + ...ipeline_list_in_list_terrorism_pipeline.go | 21 + ...ipeline_list_in_query_asr_pipeline_list.go | 21 + ...line_list_in_query_censor_pipeline_list.go | 21 + ...eline_list_in_query_cover_pipeline_list.go | 21 + ...ct_pipeline_list_in_query_pipeline_list.go | 21 + ...peline_list_in_query_porn_pipeline_list.go | 21 + ...e_list_in_query_terrorism_pipeline_list.go | 21 + ...struct_pipeline_list_in_search_pipeline.go | 21 + .../services/mts/struct_play.go | 32 + .../services/mts/struct_play_info.go | 36 + .../services/mts/struct_play_info_list.go | 21 + .../struct_play_list_in_query_media_list.go | 21 + ...ct_play_list_in_query_media_list_by_url.go | 21 + .../services/mts/struct_politician.go | 23 + .../services/mts/struct_politicians.go | 21 + .../services/mts/struct_porn_config.go | 23 + ...n_counter_list_in_query_censor_job_list.go | 21 + ...orn_counter_list_in_query_porn_job_list.go | 21 + .../services/mts/struct_porn_job.go | 30 + .../services/mts/struct_porn_job_list.go | 21 + ..._porn_top_list_in_query_censor_job_list.go | 21 + ...ct_porn_top_list_in_query_porn_job_list.go | 21 + .../services/mts/struct_properties.go | 30 + .../services/mts/struct_properties_control.go | 22 + .../services/mts/struct_quality_control.go | 22 + .../services/mts/struct_ratio_refer.go | 24 + .../mts/struct_registered_personage.go | 27 + .../mts/struct_registered_personages.go | 21 + .../mts/struct_run_id_list_in_add_media.go | 21 + .../mts/struct_run_id_list_in_list_media.go | 21 + .../struct_run_id_list_in_query_media_list.go | 21 + ..._run_id_list_in_query_media_list_by_url.go | 21 + .../mts/struct_run_id_list_in_search_media.go | 21 + .../mts/struct_run_id_list_in_update_media.go | 21 + .../services/mts/struct_segment.go | 21 + .../services/mts/struct_sensitive.go | 23 + .../services/mts/struct_sensitives.go | 21 + .../services/mts/struct_snapshot.go | 26 + .../services/mts/struct_snapshot_config.go | 29 + .../services/mts/struct_snapshot_job.go | 32 + .../services/mts/struct_snapshot_job_list.go | 21 + ...truct_snapshot_list_in_query_media_list.go | 21 + ...napshot_list_in_query_media_list_by_url.go | 21 + .../services/mts/struct_source_logo.go | 21 + .../services/mts/struct_source_logos.go | 21 + .../services/mts/struct_streams.go | 23 + .../services/mts/struct_subtitle.go | 21 + .../services/mts/struct_subtitle_config.go | 22 + .../mts/struct_subtitle_list_in_list_job.go | 21 + ...subtitle_list_in_query_editing_job_list.go | 21 + .../struct_subtitle_list_in_query_job_list.go | 21 + ...ct_subtitle_list_in_submit_editing_jobs.go | 21 + .../struct_subtitle_list_in_submit_jobs.go | 21 + .../services/mts/struct_subtitle_stream.go | 22 + ...struct_subtitle_stream_list_in_list_job.go | 21 + ...e_stream_list_in_query_editing_job_list.go | 21 + ..._subtitle_stream_list_in_query_job_list.go | 21 + ...tream_list_in_query_media_info_job_list.go | 21 + ...ubtitle_stream_list_in_query_media_list.go | 21 + ..._stream_list_in_query_media_list_by_url.go | 21 + ...itle_stream_list_in_submit_editing_jobs.go | 21 + ...uct_subtitle_stream_list_in_submit_jobs.go | 21 + ...le_stream_list_in_submit_media_info_job.go | 21 + .../services/mts/struct_sucess_domains.go | 21 + .../services/mts/struct_summary.go | 25 + ...struct_summary_list_in_query_media_list.go | 21 + ...summary_list_in_query_media_list_by_url.go | 21 + .../services/mts/struct_super_reso.go | 21 + .../services/mts/struct_switch.go | 24 + .../services/mts/struct_switch_list.go | 21 + .../services/mts/struct_tag_an_result.go | 22 + .../services/mts/struct_tag_an_results.go | 21 + .../services/mts/struct_tag_face.go | 23 + .../services/mts/struct_tag_faces.go | 21 + .../services/mts/struct_tag_fr_result.go | 22 + .../services/mts/struct_tag_fr_results.go | 21 + .../services/mts/struct_tag_job.go | 29 + .../services/mts/struct_tag_job_list.go | 21 + .../services/mts/struct_tags_in_add_media.go | 21 + .../services/mts/struct_tags_in_list_media.go | 21 + ...uct_tags_in_query_media_detail_job_list.go | 21 + .../mts/struct_tags_in_query_media_list.go | 21 + .../struct_tags_in_query_media_list_by_url.go | 21 + .../mts/struct_tags_in_search_media.go | 21 + .../mts/struct_tags_in_update_media.go | 21 + .../services/mts/struct_tail_slate.go | 27 + .../mts/struct_tail_slate_list_in_list_job.go | 21 + ...truct_tail_slate_list_in_query_job_list.go | 21 + .../struct_tail_slate_list_in_submit_jobs.go | 21 + .../services/mts/struct_template.go | 28 + ...emplate_list_in_query_analysis_job_list.go | 21 + ...ct_template_list_in_query_template_list.go | 21 + ...struct_template_list_in_search_template.go | 21 + ...ct_template_list_in_submit_analysis_job.go | 21 + .../services/mts/struct_terrorism_config.go | 23 + ...m_counter_list_in_query_censor_job_list.go | 21 + ...ounter_list_in_query_terrorism_job_list.go | 21 + .../services/mts/struct_terrorism_job.go | 30 + .../services/mts/struct_terrorism_job_list.go | 21 + ...orism_top_list_in_query_censor_job_list.go | 21 + ...sm_top_list_in_query_terrorism_job_list.go | 21 + .../services/mts/struct_tile_out.go | 29 + .../services/mts/struct_tile_output_file.go | 24 + .../services/mts/struct_time_span.go | 22 + .../services/mts/struct_timeline.go | 24 + .../services/mts/struct_timeline_config.go | 22 + .../mts/struct_timeline_config_audio.go | 23 + .../mts/struct_timeline_config_video.go | 25 + .../services/mts/struct_top.go | 25 + .../services/mts/struct_track.go | 24 + ...ct_track_list_in_query_editing_job_list.go | 21 + ...truct_track_list_in_submit_editing_jobs.go | 21 + .../services/mts/struct_trans_config.go | 29 + .../services/mts/struct_ts.go | 22 + .../services/mts/struct_video.go | 41 + .../mts/struct_video_annotation_result.go | 22 + .../mts/struct_video_facerecog_result.go | 21 + .../services/mts/struct_video_gif_result.go | 21 + .../services/mts/struct_video_split.go | 23 + .../services/mts/struct_video_split_list.go | 21 + .../services/mts/struct_video_split_result.go | 21 + .../services/mts/struct_video_stream.go | 44 + .../struct_video_stream_list_in_list_job.go | 21 + ...o_stream_list_in_query_editing_job_list.go | 21 + ...uct_video_stream_list_in_query_job_list.go | 21 + ...tream_list_in_query_media_info_job_list.go | 21 + ...t_video_stream_list_in_query_media_list.go | 21 + ..._stream_list_in_query_media_list_by_url.go | 21 + ...ideo_stream_list_in_submit_editing_jobs.go | 21 + ...struct_video_stream_list_in_submit_jobs.go | 21 + ...eo_stream_list_in_submit_media_info_job.go | 21 + .../services/mts/struct_video_summary.go | 22 + .../services/mts/struct_video_summary_list.go | 21 + .../mts/struct_video_summary_result.go | 22 + .../services/mts/struct_video_tag_result.go | 23 + .../services/mts/struct_volume.go | 22 + .../services/mts/struct_water_mark.go | 28 + .../mts/struct_water_mark_list_in_list_job.go | 21 + ...ter_mark_list_in_query_editing_job_list.go | 21 + ...truct_water_mark_list_in_query_job_list.go | 21 + ..._water_mark_list_in_submit_editing_jobs.go | 21 + .../struct_water_mark_list_in_submit_jobs.go | 21 + .../mts/struct_water_mark_template.go | 31 + ..._list_in_query_water_mark_template_list.go | 21 + ...late_list_in_search_water_mark_template.go | 21 + .../services/mts/struct_webp.go | 21 + .../services/mts/submit_analysis_job.go | 112 + .../services/mts/submit_annotation_job.go | 111 + .../services/mts/submit_asr_job.go | 111 + .../services/mts/submit_censor_job.go | 111 + .../services/mts/submit_cover_job.go | 111 + .../services/mts/submit_editing_jobs.go | 112 + .../services/mts/submit_facerecog_job.go | 111 + .../services/mts/submit_fp_shot_job.go | 111 + .../services/mts/submit_jobs.go | 112 + .../services/mts/submit_media_detail_job.go | 111 + .../services/mts/submit_media_info_job.go | 110 + .../services/mts/submit_porn_job.go | 111 + .../services/mts/submit_snapshot_job.go | 111 + .../services/mts/submit_tag_job.go | 111 + .../services/mts/submit_terrorism_job.go | 111 + .../services/mts/submit_video_gif_job.go | 111 + .../services/mts/submit_video_split_job.go | 111 + .../services/mts/submit_video_summary_job.go | 111 + .../services/mts/unbind_input_bucket.go | 108 + .../services/mts/unbind_output_bucket.go | 107 + .../services/mts/update_asr_pipeline.go | 112 + .../services/mts/update_category_name.go | 108 + .../services/mts/update_censor_pipeline.go | 112 + .../services/mts/update_cover_pipeline.go | 113 + .../services/mts/update_media.go | 113 + .../services/mts/update_media_category.go | 108 + .../services/mts/update_media_cover.go | 108 + .../mts/update_media_publish_state.go | 108 + .../services/mts/update_media_workflow.go | 109 + .../mts/update_media_workflow_trigger_mode.go | 109 + .../services/mts/update_pipeline.go | 112 + .../services/mts/update_porn_pipeline.go | 112 + .../services/mts/update_template.go | 114 + .../services/mts/update_terrorism_pipeline.go | 112 + .../mts/update_water_mark_template.go | 110 + .../services/nas/client.go | 81 + .../services/nas/create_access_group.go | 106 + .../services/nas/create_access_rule.go | 108 + .../services/nas/create_file_system.go | 106 + .../services/nas/create_mount_target.go | 108 + .../services/nas/delete_access_group.go | 103 + .../services/nas/delete_access_rule.go | 104 + .../services/nas/delete_file_system.go | 103 + .../services/nas/delete_mount_target.go | 104 + .../services/nas/describe_access_groups.go | 109 + .../services/nas/describe_access_rules.go | 110 + .../services/nas/describe_file_systems.go | 109 + .../services/nas/describe_mount_targets.go | 110 + .../services/nas/describe_regions.go | 108 + .../services/nas/modify_access_group.go | 104 + .../services/nas/modify_access_rule.go | 108 + .../services/nas/modify_file_system.go | 104 + .../services/nas/modify_mount_target.go | 106 + .../services/nas/struct_access_group.go | 25 + .../services/nas/struct_access_groups.go | 21 + .../services/nas/struct_access_rule.go | 25 + .../services/nas/struct_access_rules.go | 21 + .../services/nas/struct_file_system.go | 29 + .../services/nas/struct_file_systems.go | 21 + .../services/nas/struct_mount_target.go | 26 + ..._mount_targets_in_describe_file_systems.go | 21 + ...mount_targets_in_describe_mount_targets.go | 21 + .../services/nas/struct_package.go | 21 + .../services/nas/struct_packages.go | 21 + .../services/nas/struct_region.go | 22 + .../services/nas/struct_regions.go | 21 + .../services/ots/bind_instance2_vpc.go | 112 + .../services/ots/client.go | 81 + .../services/ots/delete_instance.go | 105 + .../services/ots/delete_tags.go | 112 + .../services/ots/get_instance.go | 106 + .../services/ots/insert_instance.go | 115 + .../services/ots/insert_tags.go | 112 + .../services/ots/list_cluster_type.go | 105 + .../services/ots/list_instance.go | 117 + .../services/ots/list_tags.go | 118 + .../services/ots/list_vpc_info_by_instance.go | 112 + .../services/ots/list_vpc_info_by_vpc.go | 119 + .../services/ots/struct_cluster_type_infos.go | 21 + .../services/ots/struct_instance_info.go | 32 + .../services/ots/struct_instance_infos.go | 21 + .../services/ots/struct_quota.go | 21 + .../services/ots/struct_tag_info.go | 22 + .../ots/struct_tag_infos_in_get_instance.go | 21 + .../ots/struct_tag_infos_in_list_tags.go | 21 + .../services/ots/struct_vpc_info.go | 26 + ..._vpc_infos_in_list_vpc_info_by_instance.go | 21 + ...truct_vpc_infos_in_list_vpc_info_by_vpc.go | 21 + .../services/ots/unbind_instance2_vpc.go | 107 + .../services/ots/update_instance.go | 106 + .../services/push/bind_alias.go | 105 + .../services/push/bind_phone.go | 105 + .../services/push/bind_tag.go | 106 + .../services/push/cancel_push.go | 104 + .../services/push/check_device.go | 105 + .../services/push/check_devices.go | 105 + .../services/push/client.go | 81 + .../services/push/list_push_records.go | 112 + .../services/push/list_summary_apps.go | 103 + .../services/push/list_tags.go | 104 + .../services/push/push.go | 147 + .../services/push/push_message_to_android.go | 109 + .../services/push/push_message_toi_os.go | 109 + .../services/push/push_notice_to_android.go | 110 + .../services/push/push_notice_toi_os.go | 111 + .../services/push/query_aliases.go | 105 + .../services/push/query_device_info.go | 105 + .../services/push/query_device_stat.go | 108 + .../services/push/query_devices_by_account.go | 105 + .../services/push/query_devices_by_alias.go | 105 + .../services/push/query_push_list.go | 112 + .../services/push/query_push_stat_by_app.go | 107 + .../services/push/query_push_stat_by_msg.go | 105 + .../services/push/query_tags.go | 106 + .../services/push/query_unique_device_stat.go | 107 + .../services/push/remove_tag.go | 104 + .../services/push/struct_alias_info.go | 21 + .../services/push/struct_alias_infos.go | 21 + .../services/push/struct_app_device_stat.go | 23 + ...t_app_device_stats_in_query_device_stat.go | 21 + ...evice_stats_in_query_unique_device_stat.go | 21 + .../services/push/struct_app_push_stat.go | 31 + .../services/push/struct_app_push_stats.go | 21 + .../services/push/struct_device_check_info.go | 22 + .../push/struct_device_check_infos.go | 21 + ..._device_ids_in_query_devices_by_account.go | 21 + ...ct_device_ids_in_query_devices_by_alias.go | 21 + .../services/push/struct_device_info.go | 30 + .../services/push/struct_push_message_info.go | 28 + ...push_message_infos_in_list_push_records.go | 21 + ...t_push_message_infos_in_query_push_list.go | 21 + .../services/push/struct_push_stat.go | 31 + .../services/push/struct_push_stats.go | 21 + .../services/push/struct_summary_app_info.go | 22 + .../services/push/struct_summary_app_infos.go | 21 + .../services/push/struct_tag_info.go | 21 + .../push/struct_tag_infos_in_list_tags.go | 21 + .../push/struct_tag_infos_in_query_tags.go | 21 + .../services/push/unbind_alias.go | 106 + .../services/push/unbind_phone.go | 104 + .../services/push/unbind_tag.go | 106 + .../services/pvtz/add_zone.go | 108 + .../services/pvtz/add_zone_record.go | 112 + .../services/pvtz/bind_zone_vpc.go | 112 + .../services/pvtz/check_zone_name.go | 107 + .../services/pvtz/client.go | 81 + .../services/pvtz/delete_zone.go | 106 + .../services/pvtz/delete_zone_record.go | 106 + .../services/pvtz/describe_change_logs.go | 116 + .../services/pvtz/describe_regions.go | 105 + .../services/pvtz/describe_request_graph.go | 109 + .../pvtz/describe_statistic_summary.go | 107 + .../pvtz/describe_user_service_status.go | 105 + .../services/pvtz/describe_zone_info.go | 115 + .../services/pvtz/describe_zone_records.go | 114 + .../services/pvtz/describe_zone_vpc_tree.go | 105 + .../services/pvtz/describe_zones.go | 112 + .../services/pvtz/set_zone_record_status.go | 108 + .../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 | 27 + .../services/pvtz/struct_records.go | 21 + .../services/pvtz/struct_region.go | 22 + .../services/pvtz/struct_regions.go | 21 + .../services/pvtz/struct_request_details.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 | 30 + .../services/pvtz/struct_zone_request_top.go | 24 + .../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/update_zone_record.go | 111 + .../services/pvtz/update_zone_remark.go | 107 + .../services/r-kvstore/client.go | 81 + .../services/r-kvstore/create_backup.go | 109 + .../services/r-kvstore/create_instance.go | 146 + .../services/r-kvstore/create_snapshot.go | 108 + .../r-kvstore/create_static_verification.go | 110 + .../r-kvstore/create_temp_instance.go | 110 + .../services/r-kvstore/delete_instance.go | 108 + .../services/r-kvstore/delete_snapshot.go | 106 + .../r-kvstore/delete_snapshot_settings.go | 106 + .../r-kvstore/delete_temp_instance.go | 106 + .../r-kvstore/describe_backup_policy.go | 112 + .../services/r-kvstore/describe_backups.go | 117 + .../r-kvstore/describe_certification.go | 110 + .../describe_db_instance_net_info.go | 110 + .../describe_history_monitor_values.go | 114 + .../r-kvstore/describe_instance_attribute.go | 109 + .../r-kvstore/describe_instance_config.go | 109 + .../r-kvstore/describe_instance_ssl.go | 112 + .../services/r-kvstore/describe_instances.go | 121 + .../describe_instances_by_expire_time.go | 116 + .../describe_logic_instance_topology.go | 111 + .../r-kvstore/describe_monitor_items.go | 108 + .../describe_monthly_service_status.go | 111 + .../describe_monthly_service_status_detail.go | 112 + .../r-kvstore/describe_rds_v_switchs.go | 110 + .../services/r-kvstore/describe_rds_vpcs.go | 109 + .../services/r-kvstore/describe_regions.go | 108 + .../describe_replica_conflict_info.go | 117 + .../describe_replica_initialize_progress.go | 109 + .../r-kvstore/describe_replica_performance.go | 116 + .../r-kvstore/describe_replica_usage.go | 113 + .../services/r-kvstore/describe_replicas.go | 114 + .../r-kvstore/describe_security_ips.go | 109 + .../services/r-kvstore/describe_snapshots.go | 109 + .../describe_static_verification_list.go | 123 + .../services/r-kvstore/describe_strategy.go | 111 + .../r-kvstore/describe_temp_instance.go | 107 + .../r-kvstore/describe_verification_list.go | 117 + .../services/r-kvstore/flush_instance.go | 108 + .../r-kvstore/get_snapshot_settings.go | 115 + .../r-kvstore/modify_backup_policy.go | 110 + .../r-kvstore/modify_certification.go | 109 + .../r-kvstore/modify_guard_domain_mode.go | 109 + .../r-kvstore/modify_instance_attribute.go | 110 + .../r-kvstore/modify_instance_config.go | 109 + .../modify_instance_maintain_time.go | 110 + .../modify_instance_minor_version.go | 109 + .../modify_instance_net_expire_time.go | 112 + .../r-kvstore/modify_instance_spec.go | 114 + .../modify_instance_spec_pre_check.go | 111 + .../services/r-kvstore/modify_instance_ssl.go | 111 + .../r-kvstore/modify_replica_description.go | 109 + .../services/r-kvstore/modify_replica_mode.go | 111 + .../r-kvstore/modify_replica_recovery_mode.go | 109 + .../r-kvstore/modify_replica_relation.go | 108 + .../modify_replica_verification_mode.go | 109 + .../services/r-kvstore/modify_security_ips.go | 112 + .../services/r-kvstore/query_task.go | 108 + .../services/r-kvstore/release_replica.go | 108 + .../services/r-kvstore/renew_instance.go | 118 + .../r-kvstore/renew_multi_instance.go | 114 + .../services/r-kvstore/restore_instance.go | 109 + .../services/r-kvstore/restore_snapshot.go | 106 + .../r-kvstore/set_snapshot_settings.go | 106 + .../r-kvstore/struct_affected_info.go | 23 + .../r-kvstore/struct_affected_infos.go | 21 + .../services/r-kvstore/struct_backup.go | 33 + .../services/r-kvstore/struct_backups.go | 21 + .../r-kvstore/struct_db_instance_attribute.go | 53 + .../services/r-kvstore/struct_db_instances.go | 21 + .../r-kvstore/struct_instance_net_info.go | 29 + .../r-kvstore/struct_instance_sla_info.go | 22 + .../r-kvstore/struct_instance_sla_infos.go | 21 + ...nstances_in_describe_instance_attribute.go | 21 + .../struct_instances_in_describe_instances.go | 21 + ...es_in_describe_instances_by_expire_time.go | 21 + .../services/r-kvstore/struct_items.go | 29 + ...items_in_describe_replica_conflict_info.go | 21 + ...in_describe_replica_initialize_progress.go | 21 + ...ms_in_describe_static_verification_list.go | 21 + ...uct_items_in_describe_verification_list.go | 21 + .../services/r-kvstore/struct_items_item.go | 44 + .../r-kvstore/struct_kv_store_instance.go | 49 + .../r-kvstore/struct_kv_store_monitor_item.go | 22 + .../r-kvstore/struct_kv_store_region.go | 23 + .../r-kvstore/struct_monitor_items.go | 21 + .../r-kvstore/struct_net_info_item.go | 25 + ..._items_in_describe_db_instance_net_info.go | 21 + ...tems_in_modify_instance_net_expire_time.go | 21 + .../services/r-kvstore/struct_node_info.go | 25 + ...nce_key_in_describe_replica_performance.go | 21 + ...rformance_key_in_describe_replica_usage.go | 21 + .../r-kvstore/struct_performance_key_item.go | 24 + .../r-kvstore/struct_performance_keys.go | 21 + ...e_value_in_describe_replica_performance.go | 21 + ...ormance_value_in_describe_replica_usage.go | 21 + .../struct_performance_value_item.go | 22 + .../r-kvstore/struct_performance_values.go | 21 + .../r-kvstore/struct_redis_proxy_list.go | 21 + .../r-kvstore/struct_redis_shard_list.go | 21 + .../services/r-kvstore/struct_region_ids.go | 21 + .../services/r-kvstore/struct_replicas.go | 21 + .../r-kvstore/struct_security_ip_group.go | 23 + .../r-kvstore/struct_security_ip_groups.go | 21 + .../services/r-kvstore/struct_snapshot.go | 30 + .../services/r-kvstore/struct_snapshots.go | 21 + .../r-kvstore/struct_temp_instance.go | 28 + .../r-kvstore/struct_temp_instances.go | 21 + .../services/r-kvstore/struct_v_switch.go | 28 + ...ruct_v_switch_in_describe_rds_v_switchs.go | 21 + .../r-kvstore/struct_v_switch_item.go | 31 + .../services/r-kvstore/struct_v_switches.go | 21 + .../services/r-kvstore/struct_v_switchs.go | 21 + .../services/r-kvstore/struct_vpc.go | 21 + .../services/r-kvstore/struct_vpc_item.go | 31 + .../services/r-kvstore/struct_vpcs.go | 21 + .../services/r-kvstore/switch_network.go | 114 + .../r-kvstore/switch_temp_instance.go | 106 + .../r-kvstore/transform_to_pre_paid.go | 113 + .../services/r-kvstore/verify_password.go | 109 + .../services/ram/add_user_to_group.go | 104 + .../services/ram/attach_policy_to_group.go | 105 + .../services/ram/attach_policy_to_role.go | 105 + .../services/ram/attach_policy_to_user.go | 105 + .../services/ram/bind_mfa_device.go | 106 + .../services/ram/change_password.go | 104 + .../services/ram/clear_account_alias.go | 102 + .../services/ram/client.go | 81 + .../services/ram/create_access_key.go | 104 + .../services/ram/create_group.go | 105 + .../services/ram/create_login_profile.go | 107 + .../services/ram/create_policy.go | 106 + .../services/ram/create_policy_version.go | 106 + .../services/ram/create_role.go | 106 + .../services/ram/create_user.go | 108 + .../services/ram/create_virtual_mfa_device.go | 104 + .../services/ram/delete_access_key.go | 104 + .../services/ram/delete_group.go | 103 + .../services/ram/delete_login_profile.go | 103 + .../services/ram/delete_policy.go | 103 + .../services/ram/delete_policy_version.go | 104 + .../services/ram/delete_public_key.go | 104 + .../services/ram/delete_role.go | 103 + .../services/ram/delete_user.go | 103 + .../services/ram/delete_virtual_mfa_device.go | 103 + .../services/ram/detach_policy_from_group.go | 105 + .../services/ram/detach_policy_from_role.go | 105 + .../services/ram/detach_policy_from_user.go | 105 + .../services/ram/get_account_alias.go | 103 + .../services/ram/get_group.go | 104 + .../services/ram/get_login_profile.go | 104 + .../services/ram/get_password_policy.go | 103 + .../services/ram/get_policy.go | 105 + .../services/ram/get_policy_version.go | 106 + .../services/ram/get_public_key.go | 105 + .../services/ram/get_role.go | 104 + .../services/ram/get_security_preference.go | 103 + .../services/ram/get_user.go | 104 + .../services/ram/get_user_mfa_info.go | 104 + .../services/ram/list_access_keys.go | 104 + .../services/ram/list_entities_for_policy.go | 107 + .../services/ram/list_groups.go | 107 + .../services/ram/list_groups_for_user.go | 104 + .../services/ram/list_policies.go | 108 + .../services/ram/list_policies_for_group.go | 104 + .../services/ram/list_policies_for_role.go | 104 + .../services/ram/list_policies_for_user.go | 104 + .../services/ram/list_policy_versions.go | 105 + .../services/ram/list_public_keys.go | 104 + .../services/ram/list_roles.go | 107 + .../services/ram/list_users.go | 107 + .../services/ram/list_users_for_group.go | 104 + .../services/ram/list_virtual_mfa_devices.go | 103 + .../services/ram/remove_user_from_group.go | 104 + .../services/ram/set_account_alias.go | 103 + .../ram/set_default_policy_version.go | 104 + .../services/ram/set_password_policy.go | 112 + .../services/ram/set_security_preference.go | 110 + .../services/ram/struct_access_key.go | 24 + .../ram/struct_access_key_preference.go | 21 + .../services/ram/struct_access_keys.go | 21 + .../services/ram/struct_group.go | 26 + ...ruct_groups_in_list_entities_for_policy.go | 21 + .../ram/struct_groups_in_list_groups.go | 21 + .../struct_groups_in_list_groups_for_user.go | 21 + .../services/ram/struct_login_profile.go | 24 + .../ram/struct_login_profile_preference.go | 24 + .../services/ram/struct_mfa_device.go | 21 + .../services/ram/struct_mfa_preference.go | 21 + .../services/ram/struct_password_policy.go | 29 + .../ram/struct_policies_in_list_policies.go | 21 + ...uct_policies_in_list_policies_for_group.go | 21 + ...ruct_policies_in_list_policies_for_role.go | 21 + ...ruct_policies_in_list_policies_for_user.go | 21 + .../services/ram/struct_policy.go | 29 + .../services/ram/struct_policy_version.go | 24 + .../services/ram/struct_policy_versions.go | 21 + .../services/ram/struct_public_key.go | 24 + .../ram/struct_public_key_preference.go | 21 + .../services/ram/struct_public_keys.go | 21 + .../services/ram/struct_role.go | 28 + ...truct_roles_in_list_entities_for_policy.go | 21 + .../ram/struct_roles_in_list_roles.go | 21 + .../ram/struct_security_preference.go | 24 + .../services/ram/struct_user.go | 31 + ...truct_users_in_list_entities_for_policy.go | 21 + .../ram/struct_users_in_list_users.go | 21 + .../struct_users_in_list_users_for_group.go | 21 + .../services/ram/struct_virtual_mfa_device.go | 25 + .../ram/struct_virtual_mfa_devices.go | 21 + .../services/ram/unbind_mfa_device.go | 104 + .../services/ram/update_access_key.go | 105 + .../services/ram/update_group.go | 106 + .../services/ram/update_login_profile.go | 106 + .../services/ram/update_public_key.go | 105 + .../services/ram/update_role.go | 105 + .../services/ram/update_user.go | 109 + .../services/ram/upload_public_key.go | 105 + .../services/rds/add_tags_to_resource.go | 120 + .../allocate_instance_private_connection.go | 109 + .../allocate_instance_public_connection.go | 109 + ...llocate_read_write_splitting_connection.go | 113 + .../rds/calculate_db_instance_weight.go | 108 + .../services/rds/cancel_import.go | 108 + .../rds/check_account_name_available.go | 109 + .../services/rds/check_db_name_available.go | 109 + .../services/rds/check_recovery_conditions.go | 112 + .../services/rds/check_resource.go | 115 + .../services/rds/client.go | 81 + .../services/rds/clone_db_instance.go | 125 + .../services/rds/copy_database.go | 107 + .../services/rds/create_account.go | 111 + .../services/rds/create_backup.go | 110 + .../services/rds/create_damp_policy.go | 116 + .../services/rds/create_database.go | 110 + .../services/rds/create_db_instance.go | 132 + .../rds/create_db_instance_replica.go | 132 + .../services/rds/create_diagnostic_report.go | 106 + .../services/rds/create_migrate_task.go | 118 + .../rds/create_migrate_task_for_sql_server.go | 116 + .../rds/create_online_database_task.go | 111 + .../create_policy_with_specified_policy.go | 109 + .../rds/create_read_only_db_instance.go | 123 + .../services/rds/create_sql_diagnosis.go | 106 + .../rds/create_static_verification.go | 110 + .../services/rds/create_temp_db_instance.go | 110 + .../services/rds/degrade_db_instance_spec.go | 110 + .../services/rds/delete_account.go | 108 + .../services/rds/delete_backup.go | 108 + .../services/rds/delete_damp_policy.go | 109 + .../services/rds/delete_database.go | 108 + .../services/rds/delete_db_instance.go | 108 + .../rds/descibe_imports_from_database.go | 118 + .../rds/describe_abnormal_db_instances.go | 126 + .../services/rds/describe_accounts.go | 111 + .../services/rds/describe_backup_policy.go | 113 + .../rds/describe_backup_sets_for_security.go | 122 + .../services/rds/describe_backup_tasks.go | 113 + .../services/rds/describe_backups.go | 120 + .../rds/describe_backups_for_security.go | 122 + .../services/rds/describe_binlog_files.go | 116 + .../rds/describe_character_set_name.go | 109 + .../rds/describe_cloud_dba_service.go | 107 + .../describe_custins_kernel_release_notes.go | 108 + .../rds/describe_damp_policies_by_cid.go | 109 + .../rds/describe_damp_policy_by_comment.go | 114 + .../describe_damp_policy_by_policy_name.go | 114 + .../rds/describe_database_lock_diagnosis.go | 106 + .../services/rds/describe_databases.go | 112 + .../rds/describe_db_instance_attribute.go | 109 + .../rds/describe_db_instance_by_tags.go | 115 + .../describe_db_instance_extend_attribute.go | 115 + .../rds/describe_db_instance_ha_config.go | 111 + .../rds/describe_db_instance_ip_array_list.go | 109 + .../rds/describe_db_instance_monitor.go | 109 + .../rds/describe_db_instance_net_info.go | 112 + .../rds/describe_db_instance_performance.go | 115 + .../services/rds/describe_db_instance_ssl.go | 111 + .../services/rds/describe_db_instance_tde.go | 109 + .../services/rds/describe_db_instance_user.go | 109 + .../services/rds/describe_db_instances.go | 134 + .../rds/describe_db_instances_as_csv.go | 107 + .../describe_db_instances_by_expire_time.go | 116 + .../describe_db_instances_by_performance.go | 128 + .../rds/describe_diagnostic_report_list.go | 104 + .../services/rds/describe_error_logs.go | 115 + .../describe_instance_auto_renew_attribute.go | 115 + ...escribe_instance_auto_renewal_attribute.go | 115 + .../describe_logic_db_instance_topology.go | 113 + .../services/rds/describe_migrate_tasks.go | 115 + .../describe_migrate_tasks_for_sql_server.go | 118 + .../rds/describe_modify_parameter_log.go | 118 + .../rds/describe_operator_permission.go | 110 + .../describe_optimize_advice_on_big_table.go | 113 + ...escribe_optimize_advice_on_excess_index.go | 113 + .../describe_optimize_advice_on_miss_index.go | 114 + .../describe_optimize_advice_on_miss_pk.go | 113 + .../describe_optimize_advice_on_storage.go | 114 + .../services/rds/describe_oss_downloads.go | 110 + .../describe_oss_downloads_for_sql_server.go | 110 + .../rds/describe_parameter_templates.go | 113 + .../services/rds/describe_parameters.go | 112 + .../rds/describe_pre_check_results.go | 111 + .../services/rds/describe_price.go | 121 + .../rds/describe_realtime_diagnoses.go | 116 + .../services/rds/describe_regions.go | 108 + .../services/rds/describe_renewal_price.go | 119 + .../rds/describe_replica_conflict_info.go | 117 + .../describe_replica_initialize_progress.go | 109 + .../rds/describe_replica_performance.go | 116 + .../services/rds/describe_replica_usage.go | 113 + .../services/rds/describe_replicas.go | 114 + .../rds/describe_resource_diagnosis.go | 112 + .../services/rds/describe_resource_usage.go | 116 + .../describe_security_group_configuration.go | 108 + .../services/rds/describe_slow_log_records.go | 118 + .../services/rds/describe_slow_logs.go | 120 + .../rds/describe_sql_collector_policy.go | 110 + .../services/rds/describe_sql_diagnosis.go | 105 + .../rds/describe_sql_diagnosis_list.go | 104 + .../rds/describe_sql_injection_infos.go | 116 + .../services/rds/describe_sql_log_files.go | 114 + .../services/rds/describe_sql_log_records.go | 121 + .../rds/describe_sql_log_report_list.go | 115 + .../services/rds/describe_sql_log_reports.go | 115 + .../services/rds/describe_sql_reports.go | 115 + .../rds/describe_static_verification_list.go | 123 + .../services/rds/describe_strategy.go | 111 + .../services/rds/describe_tags.go | 111 + .../services/rds/describe_task_info.go | 121 + .../services/rds/describe_tasks.go | 117 + .../rds/describe_verification_list.go | 117 + .../services/rds/describe_vpc_zone_nos.go | 110 + .../services/rds/grant_account_privilege.go | 110 + .../services/rds/grant_operator_permission.go | 109 + .../rds/import_data_for_sql_server.go | 109 + .../services/rds/import_data_from_database.go | 115 + .../rds/import_database_between_instances.go | 110 + .../rds/login_db_instancefrom_cloud_dba.go | 107 + .../services/rds/migrate_to_other_zone.go | 110 + .../rds/modify_account_description.go | 109 + .../services/rds/modify_backup_policy.go | 112 + .../services/rds/modify_damp_policy.go | 115 + .../services/rds/modify_db_description.go | 109 + .../rds/modify_db_instance_connection_mode.go | 108 + .../modify_db_instance_connection_string.go | 110 + .../rds/modify_db_instance_description.go | 109 + .../rds/modify_db_instance_ha_config.go | 109 + .../rds/modify_db_instance_maintain_time.go | 109 + .../rds/modify_db_instance_monitor.go | 109 + .../modify_db_instance_network_expire_time.go | 109 + .../rds/modify_db_instance_network_type.go | 116 + .../modify_db_instance_proxy_configuration.go | 108 + .../services/rds/modify_db_instance_spec.go | 112 + .../services/rds/modify_db_instance_ssl.go | 108 + .../services/rds/modify_db_instance_tde.go | 109 + .../services/rds/modify_guard_domain_mode.go | 109 + .../modify_instance_auto_renewal_attribute.go | 110 + .../services/rds/modify_parameter.go | 110 + .../rds/modify_postpaid_db_instance_spec.go | 110 + .../modify_read_write_splitting_connection.go | 112 + .../rds/modify_replica_description.go | 109 + .../services/rds/modify_replica_mode.go | 111 + .../rds/modify_replica_recovery_mode.go | 109 + .../services/rds/modify_replica_relation.go | 108 + .../rds/modify_replica_verification_mode.go | 109 + .../services/rds/modify_resource_group.go | 109 + .../modify_security_group_configuration.go | 109 + .../services/rds/modify_security_ips.go | 115 + .../rds/modify_sql_collector_policy.go | 110 + .../rds/pre_check_before_import_data.go | 115 + .../services/rds/purge_db_instance_log.go | 108 + .../services/rds/query_price_for_buy.go | 121 + .../rds/release_instance_public_connection.go | 108 + ...release_read_write_splitting_connection.go | 107 + .../services/rds/release_replica.go | 108 + .../services/rds/remove_tags_from_resource.go | 120 + .../services/rds/renew_instance.go | 111 + .../rds/request_service_of_cloud_dba.go | 107 + .../services/rds/reset_account.go | 109 + .../services/rds/reset_account_for_pg.go | 109 + .../services/rds/reset_account_password.go | 109 + .../services/rds/restart_db_instance.go | 108 + .../services/rds/restore_db_instance.go | 109 + .../services/rds/revoke_account_privilege.go | 109 + .../rds/revoke_operator_permission.go | 107 + .../services/rds/start_archive_sql_log.go | 112 + .../rds/start_db_instance_diagnose.go | 111 + .../services/rds/stop_syncing.go | 109 + .../services/rds/struct_abnormal_item.go | 27 + .../services/rds/struct_abnormal_items.go | 21 + .../rds/struct_account_privilege_info.go | 23 + .../struct_accounts_in_describe_accounts.go | 21 + .../struct_accounts_in_describe_databases.go | 21 + .../services/rds/struct_activity_info.go | 23 + .../rds/struct_advice_on_big_table.go | 25 + .../rds/struct_advice_on_excess_index.go | 23 + .../rds/struct_advice_on_miss_index.go | 24 + .../services/rds/struct_advice_on_miss_pk.go | 22 + .../services/rds/struct_advice_on_storage.go | 24 + .../services/rds/struct_advise_value.go | 21 + .../services/rds/struct_backup.go | 38 + .../services/rds/struct_backup_job.go | 25 + .../services/rds/struct_bin_log_file.go | 28 + .../rds/struct_character_set_name_items.go | 21 + .../services/rds/struct_config_parameters.go | 21 + .../services/rds/struct_connection.go | 21 + .../services/rds/struct_coupon.go | 24 + .../rds/struct_coupons_in_describe_price.go | 21 + ...truct_coupons_in_describe_renewal_price.go | 21 + .../struct_coupons_in_query_price_for_buy.go | 21 + .../services/rds/struct_cpu.go | 21 + .../services/rds/struct_database.go | 28 + .../services/rds/struct_database_privilege.go | 23 + .../rds/struct_database_privileges.go | 21 + .../struct_databases_in_describe_databases.go | 21 + ...t_databases_in_describe_db_instance_tde.go | 21 + .../services/rds/struct_db_instance.go | 48 + .../rds/struct_db_instance_account.go | 27 + .../rds/struct_db_instance_attribute.go | 80 + .../rds/struct_db_instance_expire_time.go | 25 + .../services/rds/struct_db_instance_ids.go | 21 + .../rds/struct_db_instance_ip_array.go | 24 + .../rds/struct_db_instance_net_info.go | 33 + .../rds/struct_db_instance_net_infos.go | 21 + .../rds/struct_db_instance_parameter.go | 23 + .../rds/struct_db_instance_performance.go | 26 + .../services/rds/struct_db_instance_tag.go | 22 + .../services/rds/struct_db_instance_weight.go | 24 + .../rds/struct_db_instance_weights.go | 21 + .../services/rds/struct_db_instances.go | 21 + .../services/rds/struct_dead_lock_list.go | 21 + .../rds/struct_ecs_security_group_relation.go | 23 + .../services/rds/struct_error_log.go | 22 + .../rds/struct_host_instance_infos.go | 21 + .../rds/struct_import_result_from_db.go | 25 + .../services/rds/struct_instance_result.go | 23 + .../services/rds/struct_iops.go | 21 + .../services/rds/struct_item.go | 28 + .../services/rds/struct_items.go | 29 + ...t_items_in_calculate_db_instance_weight.go | 21 + ..._items_in_descibe_imports_from_database.go | 21 + ...items_in_describe_abnormal_db_instances.go | 21 + ...ms_in_describe_backup_sets_for_security.go | 21 + .../struct_items_in_describe_backup_tasks.go | 21 + .../rds/struct_items_in_describe_backups.go | 21 + ..._items_in_describe_backups_for_security.go | 21 + .../struct_items_in_describe_binlog_files.go | 21 + ...items_in_describe_db_instance_attribute.go | 21 + ...t_items_in_describe_db_instance_by_tags.go | 21 + ...s_in_describe_db_instance_ip_array_list.go | 21 + .../struct_items_in_describe_db_instances.go | 21 + ...t_items_in_describe_db_instances_as_csv.go | 21 + ...in_describe_db_instances_by_expire_time.go | 21 + ...in_describe_db_instances_by_performance.go | 21 + .../struct_items_in_describe_error_logs.go | 21 + ..._describe_instance_auto_renew_attribute.go | 21 + ...escribe_instance_auto_renewal_attribute.go | 21 + ..._in_describe_logic_db_instance_topology.go | 21 + .../struct_items_in_describe_migrate_tasks.go | 21 + ...n_describe_migrate_tasks_for_sql_server.go | 21 + ..._items_in_describe_modify_parameter_log.go | 21 + ...n_describe_optimize_advice_on_big_table.go | 21 + ...escribe_optimize_advice_on_excess_index.go | 21 + ..._describe_optimize_advice_on_miss_index.go | 21 + ..._in_describe_optimize_advice_on_miss_pk.go | 21 + ..._in_describe_optimize_advice_on_storage.go | 21 + .../struct_items_in_describe_oss_downloads.go | 21 + ...n_describe_oss_downloads_for_sql_server.go | 21 + ...uct_items_in_describe_pre_check_results.go | 21 + ...items_in_describe_replica_conflict_info.go | 21 + ...in_describe_replica_initialize_progress.go | 21 + ...n_describe_security_group_configuration.go | 21 + ...ruct_items_in_describe_slow_log_records.go | 21 + .../rds/struct_items_in_describe_slow_logs.go | 21 + ...t_items_in_describe_sql_injection_infos.go | 21 + .../struct_items_in_describe_sql_log_files.go | 21 + ...truct_items_in_describe_sql_log_records.go | 21 + ...t_items_in_describe_sql_log_report_list.go | 21 + ...truct_items_in_describe_sql_log_reports.go | 21 + .../struct_items_in_describe_sql_reports.go | 21 + ...ms_in_describe_static_verification_list.go | 21 + .../rds/struct_items_in_describe_tags.go | 21 + .../rds/struct_items_in_describe_tasks.go | 21 + ...uct_items_in_describe_verification_list.go | 21 + .../struct_items_in_describe_vpc_zone_nos.go | 21 + ..._in_modify_security_group_configuration.go | 21 + .../services/rds/struct_items_item.go | 44 + .../services/rds/struct_latency_top_n_item.go | 23 + ...n_items_in_describe_sql_log_report_list.go | 21 + ...top_n_items_in_describe_sql_log_reports.go | 21 + ...ncy_top_n_items_in_describe_sql_reports.go | 21 + .../services/rds/struct_log_file.go | 26 + .../rds/struct_logic_db_instance_parameter.go | 29 + .../services/rds/struct_memory.go | 21 + .../services/rds/struct_migrate_task.go | 31 + .../services/rds/struct_node_info.go | 27 + .../services/rds/struct_oss_download.go | 31 + .../rds/struct_parameter_change_log.go | 25 + .../services/rds/struct_parameters.go | 21 + .../services/rds/struct_performance_key.go | 24 + ...nce_key_in_describe_replica_performance.go | 21 + ...rformance_key_in_describe_replica_usage.go | 21 + .../rds/struct_performance_key_item.go | 24 + .../services/rds/struct_performance_keys.go | 21 + ...eys_in_describe_db_instance_performance.go | 21 + .../services/rds/struct_performance_value.go | 22 + ...e_value_in_describe_replica_performance.go | 21 + ...ormance_value_in_describe_replica_usage.go | 21 + .../rds/struct_performance_value_item.go | 22 + .../services/rds/struct_performance_values.go | 21 + .../services/rds/struct_policies.go | 21 + .../services/rds/struct_policy.go | 22 + .../services/rds/struct_pre_check_result.go | 24 + .../services/rds/struct_price_info.go | 27 + .../services/rds/struct_qps_top_n_item.go | 22 + ...n_items_in_describe_sql_log_report_list.go | 21 + ...top_n_items_in_describe_sql_log_reports.go | 21 + ...qps_top_n_items_in_describe_sql_reports.go | 21 + .../services/rds/struct_rds_region.go | 22 + .../rds/struct_read_only_db_instance_id.go | 21 + ...e_ids_in_describe_db_instance_attribute.go | 21 + ...b_instance_ids_in_describe_db_instances.go | 21 + .../rds/struct_realtime_diagnose_tasks.go | 24 + .../services/rds/struct_regions.go | 21 + .../services/rds/struct_replicas.go | 21 + .../services/rds/struct_report.go | 25 + .../services/rds/struct_report_list.go | 21 + .../services/rds/struct_resource.go | 23 + .../services/rds/struct_resources.go | 21 + .../services/rds/struct_rule.go | 23 + .../rds/struct_rule_ids_in_describe_price.go | 21 + ...ruct_rule_ids_in_describe_renewal_price.go | 21 + .../struct_rule_ids_in_query_price_for_buy.go | 21 + .../rds/struct_rules_in_describe_price.go | 21 + .../struct_rules_in_describe_renewal_price.go | 21 + .../struct_rules_in_query_price_for_buy.go | 21 + .../services/rds/struct_running_parameters.go | 21 + .../services/rds/struct_security_ip_group.go | 22 + .../services/rds/struct_security_ip_groups.go | 21 + .../services/rds/struct_sql_diag.go | 25 + .../services/rds/struct_sql_diag_list.go | 21 + .../services/rds/struct_sql_injection_info.go | 27 + .../services/rds/struct_sql_list.go | 21 + .../services/rds/struct_sql_record.go | 28 + .../services/rds/struct_sql_slow_log.go | 40 + .../services/rds/struct_sql_slow_record.go | 28 + .../services/rds/struct_storage.go | 21 + .../services/rds/struct_tag.go | 22 + .../services/rds/struct_tag_infos.go | 23 + .../services/rds/struct_tags.go | 21 + .../services/rds/struct_task_progress_info.go | 31 + .../services/rds/struct_tasks.go | 21 + .../services/rds/struct_template_record.go | 26 + .../services/rds/struct_values.go | 21 + .../services/rds/struct_vpc_zone_id.go | 23 + .../services/rds/switch_db_instance_ha.go | 111 + .../rds/switch_db_instance_net_type.go | 111 + .../rds/upgrade_db_instance_engine_version.go | 111 + .../rds/upgrade_db_instance_kernel_version.go | 111 + .../rds/upgrade_db_instance_net_work_info.go | 107 + .../rds/upgrade_db_instance_network.go | 109 + .../services/rtc/client.go | 81 + .../services/rtc/create_channel.go | 108 + .../services/rtc/create_conference.go | 111 + .../services/rtc/delete_channel.go | 105 + .../services/rtc/delete_conference.go | 106 + .../services/rtc/describe_apps.go | 111 + .../rtc/describe_conference_auth_info.go | 107 + .../rtc/describe_real_time_record_detail.go | 107 + .../rtc/describe_real_time_record_list.go | 106 + .../services/rtc/describe_record_detail.go | 110 + .../services/rtc/describe_record_list.go | 116 + .../services/rtc/describe_statis.go | 111 + .../services/rtc/modify_app.go | 105 + .../services/rtc/modify_conference.go | 110 + .../services/rtc/mute_audio.go | 108 + .../services/rtc/mute_audio_all.go | 108 + .../services/rtc/remove_participants.go | 108 + .../services/rtc/remove_terminals.go | 107 + .../services/rtc/start_app.go | 104 + .../services/rtc/stop_app.go | 104 + .../services/rtc/struct_app.go | 27 + .../services/rtc/struct_app_list.go | 21 + .../services/rtc/struct_auth_info.go | 23 + ...areas_in_describe_real_time_record_list.go | 21 + ...ruct_call_areas_in_describe_record_list.go | 21 + .../services/rtc/struct_channel_statis.go | 21 + .../rtc/struct_channel_statis_item.go | 23 + .../rtc/struct_communication_record_info.go | 28 + ...infos_in_describe_real_time_record_list.go | 21 + ...on_record_infos_in_describe_record_list.go | 21 + .../services/rtc/struct_duration.go | 25 + .../rtc/struct_duration_in_describe_statis.go | 21 + .../services/rtc/struct_duration_item.go | 25 + .../services/rtc/struct_participant.go | 23 + .../rtc/struct_participants_in_mute_audio.go | 21 + .../struct_participants_in_mute_audio_all.go | 21 + ...uct_participants_in_remove_participants.go | 21 + .../struct_participants_in_unmute_audio.go | 21 + ...struct_participants_in_unmute_audio_all.go | 21 + .../services/rtc/struct_record_detail_info.go | 25 + ...fos_in_describe_real_time_record_detail.go | 21 + ..._detail_infos_in_describe_record_detail.go | 21 + .../services/rtc/struct_service_areas.go | 21 + .../services/rtc/struct_statis_info.go | 24 + .../services/rtc/struct_statis_infos.go | 21 + .../services/rtc/struct_terminal.go | 23 + .../services/rtc/struct_terminals.go | 21 + .../services/rtc/struct_user_statis.go | 21 + .../services/rtc/struct_user_statis_item.go | 23 + .../services/rtc/unmute_audio.go | 108 + .../services/rtc/unmute_audio_all.go | 108 + .../services/rtc/update_channel.go | 108 + .../services/scdn/add_scdn_domain.go | 110 + .../scdn/batch_delete_scdn_domain_configs.go | 107 + .../services/scdn/check_scdn_service.go | 108 + .../services/scdn/client.go | 81 + .../services/scdn/delete_scdn_domain.go | 107 + .../scdn/describe_scdn_certificate_detail.go | 109 + .../scdn/describe_scdn_certificate_list.go | 106 + .../scdn/describe_scdn_domain_bps_data.go | 116 + .../describe_scdn_domain_certificate_info.go | 105 + .../scdn/describe_scdn_domain_cname.go | 105 + .../scdn/describe_scdn_domain_configs.go | 107 + .../scdn/describe_scdn_domain_detail.go | 106 + .../describe_scdn_domain_hit_rate_data.go | 112 + .../describe_scdn_domain_http_code_data.go | 114 + .../services/scdn/describe_scdn_domain_log.go | 110 + .../describe_scdn_domain_origin_bps_data.go | 114 + ...escribe_scdn_domain_origin_traffic_data.go | 114 + .../scdn/describe_scdn_domain_qps_data.go | 114 + .../scdn/describe_scdn_domain_traffic_data.go | 116 + .../scdn/describe_scdn_refresh_quota.go | 112 + .../scdn/describe_scdn_refresh_tasks.go | 118 + .../services/scdn/describe_scdn_service.go | 122 + .../scdn/describe_scdn_user_domains.go | 117 + .../services/scdn/describe_scdn_user_quota.go | 113 + .../scdn/preload_scdn_object_caches.go | 106 + .../scdn/refresh_scdn_object_caches.go | 107 + .../scdn/set_scdn_domain_certificate.go | 111 + .../services/scdn/start_scdn_domain.go | 105 + .../services/scdn/stop_scdn_domain.go | 105 + .../scdn/struct_bps_data_per_interval.go | 21 + .../services/scdn/struct_cert.go | 26 + .../services/scdn/struct_cert_info.go | 30 + .../services/scdn/struct_cert_infos.go | 21 + .../services/scdn/struct_cert_list.go | 21 + .../scdn/struct_certificate_list_model.go | 22 + .../services/scdn/struct_cname_datas.go | 21 + .../services/scdn/struct_data.go | 23 + .../services/scdn/struct_data_module.go | 39 + .../services/scdn/struct_data_per_interval.go | 21 + .../services/scdn/struct_domain_config.go | 24 + .../services/scdn/struct_domain_configs.go | 21 + .../services/scdn/struct_domain_detail.go | 32 + .../services/scdn/struct_domain_log_detail.go | 23 + .../scdn/struct_domain_log_details.go | 21 + .../services/scdn/struct_domains.go | 21 + .../services/scdn/struct_function_arg.go | 22 + .../services/scdn/struct_function_args.go | 21 + .../scdn/struct_hit_rate_per_interval.go | 21 + .../scdn/struct_http_code_data_module.go | 23 + .../struct_http_code_data_per_interval.go | 21 + .../services/scdn/struct_lock_reason.go | 21 + .../services/scdn/struct_log_info_detail.go | 25 + .../services/scdn/struct_log_infos.go | 21 + .../services/scdn/struct_operation_locks.go | 21 + .../struct_origin_bps_data_per_interval.go | 21 + ...struct_origin_traffic_data_per_interval.go | 21 + .../services/scdn/struct_page_data.go | 30 + .../services/scdn/struct_page_info_detail.go | 23 + .../services/scdn/struct_page_infos.go | 21 + .../scdn/struct_qps_data_per_interval.go | 21 + .../services/scdn/struct_source.go | 25 + ..._sources_in_describe_scdn_domain_detail.go | 21 + ...t_sources_in_describe_scdn_user_domains.go | 21 + .../services/scdn/struct_task.go | 27 + .../services/scdn/struct_tasks.go | 21 + .../scdn/struct_traffic_data_per_interval.go | 21 + .../services/scdn/update_scdn_domain.go | 107 + .../services/slb/add_backend_servers.go | 112 + .../slb/add_listener_white_list_item.go | 111 + .../services/slb/add_tags.go | 109 + .../slb/add_v_server_group_backend_servers.go | 112 + .../services/slb/client.go | 81 + .../services/slb/create_load_balancer.go | 132 + .../slb/create_load_balancer_http_listener.go | 133 + .../create_load_balancer_https_listener.go | 135 + .../slb/create_load_balancer_tcp_listener.go | 127 + .../slb/create_load_balancer_udp_listener.go | 124 + .../slb/create_master_slave_server_group.go | 113 + .../slb/create_master_slave_v_server_group.go | 113 + .../services/slb/create_rules.go | 112 + .../services/slb/create_v_server_group.go | 113 + .../services/slb/delete_ca_certificate.go | 108 + .../services/slb/delete_load_balancer.go | 109 + .../slb/delete_load_balancer_listener.go | 110 + .../slb/delete_master_slave_server_group.go | 109 + .../slb/delete_master_slave_v_server_group.go | 109 + .../services/slb/delete_rules.go | 109 + .../services/slb/delete_server_certificate.go | 109 + .../services/slb/delete_v_server_group.go | 109 + .../services/slb/describe_ca_certificates.go | 110 + .../services/slb/describe_health_status.go | 111 + ...cribe_listener_access_control_attribute.go | 112 + .../slb/describe_load_balancer_attribute.go | 135 + ...escribe_load_balancer_auto_release_time.go | 110 + ...e_load_balancer_http_listener_attribute.go | 136 + ..._load_balancer_https_listener_attribute.go | 138 + ...be_load_balancer_tcp_listener_attribute.go | 131 + ...be_load_balancer_udp_listener_attribute.go | 127 + .../services/slb/describe_load_balancers.go | 128 + .../describe_load_balancers_related_ecs.go | 112 + ...ibe_master_slave_server_group_attribute.go | 112 + .../describe_master_slave_server_groups.go | 110 + ...e_master_slave_v_server_group_attribute.go | 112 + .../describe_master_slave_v_server_groups.go | 110 + .../services/slb/describe_regions.go | 109 + .../services/slb/describe_rule_attribute.go | 115 + .../services/slb/describe_rules.go | 111 + .../slb/describe_server_certificates.go | 111 + .../services/slb/describe_tags.go | 116 + .../slb/describe_v_server_group_attribute.go | 112 + .../services/slb/describe_v_server_groups.go | 110 + .../services/slb/describe_zones.go | 109 + .../slb/modify_load_balancer_instance_spec.go | 112 + .../slb/modify_load_balancer_internet_spec.go | 113 + .../slb/modify_load_balancer_pay_type.go | 114 + .../modify_v_server_group_backend_servers.go | 113 + .../services/slb/move_resource_group.go | 112 + .../services/slb/remove_backend_servers.go | 112 + .../slb/remove_listener_white_list_item.go | 111 + .../services/slb/remove_tags.go | 109 + .../remove_v_server_group_backend_servers.go | 112 + .../services/slb/set_backend_servers.go | 112 + .../services/slb/set_ca_certificate_name.go | 109 + .../slb/set_listener_access_control_status.go | 111 + .../set_load_balancer_auto_release_time.go | 110 + ...t_load_balancer_http_listener_attribute.go | 133 + ..._load_balancer_https_listener_attribute.go | 135 + .../services/slb/set_load_balancer_name.go | 110 + .../services/slb/set_load_balancer_status.go | 110 + ...et_load_balancer_tcp_listener_attribute.go | 129 + ...et_load_balancer_udp_listener_attribute.go | 125 + .../services/slb/set_rule.go | 110 + .../slb/set_server_certificate_name.go | 110 + .../slb/set_v_server_group_attribute.go | 114 + .../slb/start_load_balancer_listener.go | 110 + .../slb/stop_load_balancer_listener.go | 110 + .../services/slb/struct_backend_server.go | 27 + ...t_backend_server_in_add_backend_servers.go | 22 + ...t_backend_server_in_set_backend_servers.go | 22 + ..._backend_servers_in_add_backend_servers.go | 21 + ...s_in_add_v_server_group_backend_servers.go | 21 + ...ackend_servers_in_create_v_server_group.go | 21 + ...ckend_servers_in_describe_health_status.go | 21 + ...ers_in_describe_load_balancer_attribute.go | 21 + ..._in_describe_load_balancers_related_ecs.go | 21 + ...rs_in_describe_v_server_group_attribute.go | 21 + ...n_modify_v_server_group_backend_servers.go | 21 + ...ckend_servers_in_remove_backend_servers.go | 21 + ...n_remove_v_server_group_backend_servers.go | 21 + ..._backend_servers_in_set_backend_servers.go | 21 + ...servers_in_set_v_server_group_attribute.go | 21 + .../services/slb/struct_ca_certificate.go | 27 + .../services/slb/struct_ca_certificates.go | 21 + .../slb/struct_listener_port_and_protocal.go | 22 + .../slb/struct_listener_port_and_protocol.go | 22 + .../services/slb/struct_listener_ports.go | 21 + .../slb/struct_listener_ports_and_protocal.go | 21 + .../slb/struct_listener_ports_and_protocol.go | 21 + .../services/slb/struct_load_balancer.go | 41 + ...ad_balancers_in_describe_load_balancers.go | 21 + ..._in_describe_load_balancers_related_ecs.go | 21 + .../slb/struct_master_slave_backend_server.go | 25 + ...ers_in_create_master_slave_server_group.go | 21 + ...s_in_create_master_slave_v_server_group.go | 21 + ...ibe_master_slave_server_group_attribute.go | 21 + ...e_master_slave_v_server_group_attribute.go | 21 + .../slb/struct_master_slave_server_group.go | 22 + .../slb/struct_master_slave_server_groups.go | 21 + .../slb/struct_master_slave_v_server_group.go | 25 + ..._in_describe_load_balancers_related_ecs.go | 21 + ...n_describe_master_slave_v_server_groups.go | 21 + .../services/slb/struct_region.go | 22 + .../services/slb/struct_regions.go | 21 + .../services/slb/struct_rule.go | 25 + .../slb/struct_rules_in_create_rules.go | 21 + .../slb/struct_rules_in_describe_rules.go | 21 + .../services/slb/struct_server_certificate.go | 31 + .../slb/struct_server_certificates.go | 21 + .../services/slb/struct_slave_zone.go | 22 + .../services/slb/struct_slave_zones.go | 21 + .../services/slb/struct_tag_set.go | 23 + .../services/slb/struct_tag_sets.go | 21 + .../services/slb/struct_v_server_group.go | 25 + ..._in_describe_load_balancers_related_ecs.go | 21 + ...rver_groups_in_describe_v_server_groups.go | 21 + .../services/slb/struct_zone.go | 23 + .../services/slb/struct_zones.go | 21 + .../services/slb/upload_ca_certificate.go | 116 + .../services/slb/upload_server_certificate.go | 125 + .../services/sls/client.go | 81 + .../services/sls/open_account.go | 104 + .../services/sls/order_succeeded_callback.go | 106 + .../services/sts/assume_role.go | 108 + .../services/sts/client.go | 81 + .../sts/generate_session_access_key.go | 104 + .../services/sts/get_caller_identity.go | 108 + .../services/sts/struct_assumed_role_user.go | 22 + .../services/sts/struct_credentials.go | 24 + .../services/sts/struct_session_access_key.go | 23 + .../services/tesladam/action.go | 106 + .../services/tesladam/action_disk_check.go | 106 + .../services/tesladam/action_disk_mask.go | 107 + .../services/tesladam/action_disk_rma.go | 111 + .../services/tesladam/client.go | 81 + .../services/tesladam/host_gets.go | 108 + .../services/tesladam/struct_data.go | 28 + .../tesladam/struct_data_in_host_gets.go | 21 + .../services/teslamaxcompute/client.go | 81 + .../teslamaxcompute/get_cluster_instance.go | 110 + .../get_instances_status_count.go | 109 + .../teslamaxcompute/get_project_instance.go | 110 + .../teslamaxcompute/get_quota_history_info.go | 110 + .../teslamaxcompute/get_quota_instance.go | 112 + .../teslamaxcompute/get_user_instance.go | 110 + .../query_customer_sale_info.go | 106 + .../query_resource_inventory.go | 105 + .../teslamaxcompute/query_topology.go | 105 + .../teslamaxcompute/struct_cluster.go | 27 + .../teslamaxcompute/struct_cluster_item.go | 27 + ...ct_clusters_in_query_customer_sale_info.go | 21 + ...ct_clusters_in_query_resource_inventory.go | 21 + .../struct_clusters_in_query_topology.go | 21 + .../teslamaxcompute/struct_cpu_max_quota.go | 23 + .../teslamaxcompute/struct_cpu_min_quota.go | 23 + .../teslamaxcompute/struct_cpu_used.go | 23 + .../services/teslamaxcompute/struct_data.go | 24 + ...ruct_data_in_get_instances_status_count.go | 21 + .../struct_data_in_get_quota_history_info.go | 21 + .../struct_data_in_get_quota_instance.go | 22 + .../teslamaxcompute/struct_data_item.go | 24 + .../struct_detail_in_get_cluster_instance.go | 21 + .../struct_detail_in_get_project_instance.go | 21 + .../struct_detail_in_get_quota_instance.go | 21 + .../struct_detail_in_get_user_instance.go | 21 + .../teslamaxcompute/struct_instance.go | 45 + .../teslamaxcompute/struct_mem_max_quota.go | 23 + .../teslamaxcompute/struct_mem_min_quota.go | 23 + .../teslamaxcompute/struct_mem_used.go | 23 + .../services/teslamaxcompute/struct_point.go | 26 + .../teslamaxcompute/struct_region_item.go | 24 + .../teslamaxcompute/struct_regions.go | 21 + .../struct_resource_inventories.go | 21 + .../struct_resource_inventory.go | 24 + .../struct_resource_parameter.go | 22 + .../struct_resource_parameters.go | 21 + .../services/teslamaxcompute/struct_result.go | 21 + .../teslamaxcompute/struct_result_item.go | 22 + .../teslamaxcompute/struct_sale_info.go | 27 + .../teslamaxcompute/struct_sale_infos.go | 21 + .../teslastream/batch_get_job_metric_info.go | 106 + .../batch_get_plugin_config_info.go | 106 + .../services/teslastream/client.go | 81 + .../services/teslastream/get_job_topology.go | 106 + .../services/teslastream/struct_childrens.go | 21 + ...truct_data_in_batch_get_job_metric_info.go | 21 + ...ct_data_in_batch_get_plugin_config_info.go | 21 + .../struct_data_in_get_job_topology.go | 21 + .../services/teslastream/struct_job.go | 35 + .../services/teslastream/struct_parents.go | 21 + .../services/teslastream/struct_plugin.go | 22 + .../services/vpc/activate_router_interface.go | 106 + .../services/vpc/add_bandwidth_package_ips.go | 109 + .../services/vpc/add_bgp_network.go | 110 + .../vpc/add_common_bandwidth_package_ip.go | 108 + .../add_global_acceleration_instance_ip.go | 108 + .../services/vpc/allocate_eip_address.go | 120 + .../services/vpc/associate_eip_address.go | 110 + .../associate_global_acceleration_instance.go | 110 + .../services/vpc/associate_ha_vip.go | 109 + ...cal_connection_to_virtual_border_router.go | 114 + .../vpc/cancel_physical_connection.go | 108 + .../services/vpc/client.go | 81 + .../services/vpc/connect_router_interface.go | 106 + .../services/vpc/create_bandwidth_package.go | 116 + .../services/vpc/create_bgp_group.go | 114 + .../services/vpc/create_bgp_peer.go | 110 + .../vpc/create_common_bandwidth_package.go | 113 + .../services/vpc/create_customer_gateway.go | 115 + .../services/vpc/create_forward_entry.go | 113 + .../create_global_acceleration_instance.go | 115 + .../services/vpc/create_ha_vip.go | 111 + .../services/vpc/create_nat_gateway.go | 125 + .../services/vpc/create_nqa.go | 110 + .../vpc/create_physical_connection.go | 118 + .../vpc/create_physical_connection_new.go | 120 + .../services/vpc/create_route_entry.go | 119 + .../services/vpc/create_router_interface.go | 123 + .../services/vpc/create_snat_entry.go | 111 + .../vpc/create_ssl_vpn_client_cert.go | 111 + .../services/vpc/create_ssl_vpn_server.go | 117 + .../services/vpc/create_v_switch.go | 113 + .../vpc/create_virtual_border_router.go | 117 + .../services/vpc/create_vpc.go | 116 + .../services/vpc/create_vpn_connection.go | 118 + .../vpc/deactivate_router_interface.go | 106 + .../services/vpc/delete_bandwidth_package.go | 108 + .../services/vpc/delete_bgp_group.go | 108 + .../services/vpc/delete_bgp_network.go | 109 + .../services/vpc/delete_bgp_peer.go | 108 + .../vpc/delete_common_bandwidth_package.go | 108 + .../services/vpc/delete_customer_gateway.go | 108 + .../services/vpc/delete_forward_entry.go | 108 + .../delete_global_acceleration_instance.go | 107 + .../services/vpc/delete_ha_vip.go | 108 + .../services/vpc/delete_nat_gateway.go | 108 + .../services/vpc/delete_nqa.go | 108 + .../vpc/delete_physical_connection.go | 109 + .../services/vpc/delete_route_entry.go | 116 + .../services/vpc/delete_router_interface.go | 108 + .../services/vpc/delete_snat_entry.go | 108 + .../vpc/delete_ssl_vpn_client_cert.go | 108 + .../services/vpc/delete_ssl_vpn_server.go | 108 + .../services/vpc/delete_v_switch.go | 107 + .../vpc/delete_virtual_border_router.go | 108 + .../services/vpc/delete_vpc.go | 107 + .../services/vpc/delete_vpn_connection.go | 108 + .../services/vpc/delete_vpn_gateway.go | 108 + .../services/vpc/describe_access_points.go | 121 + ...andwidth_package_public_ip_monitor_data.go | 111 + .../vpc/describe_bandwidth_packages.go | 114 + .../services/vpc/describe_bgp_groups.go | 115 + .../services/vpc/describe_bgp_peers.go | 116 + .../vpc/describe_common_bandwidth_packages.go | 114 + .../services/vpc/describe_customer_gateway.go | 112 + .../vpc/describe_customer_gateways.go | 113 + .../services/vpc/describe_eip_addresses.go | 124 + .../services/vpc/describe_eip_monitor_data.go | 111 + .../vpc/describe_forward_table_entries.go | 114 + .../services/vpc/describe_forward_tables.go | 113 + .../describe_global_acceleration_instances.go | 119 + .../services/vpc/describe_ha_vips.go | 119 + .../services/vpc/describe_nat_gateways.go | 115 + .../describe_new_project_eip_monitor_data.go | 111 + .../services/vpc/describe_nqas.go | 115 + .../vpc/describe_physical_connections.go | 120 + .../services/vpc/describe_regions.go | 108 + .../services/vpc/describe_route_table_list.go | 120 + .../services/vpc/describe_route_tables.go | 118 + .../vpc/describe_router_interfaces.go | 118 + .../describe_router_interfaces_for_global.go | 117 + ...r_related_global_acceleration_instances.go | 109 + .../vpc/describe_snat_table_entries.go | 114 + .../vpc/describe_ssl_vpn_client_cert.go | 118 + .../vpc/describe_ssl_vpn_client_certs.go | 114 + .../services/vpc/describe_ssl_vpn_servers.go | 115 + .../services/vpc/describe_v_routers.go | 113 + .../vpc/describe_v_switch_attributes.go | 118 + .../services/vpc/describe_v_switches.go | 117 + .../vpc/describe_virtual_border_routers.go | 118 + ..._border_routers_for_physical_connection.go | 119 + .../services/vpc/describe_vpc_attribute.go | 123 + .../services/vpc/describe_vpcs.go | 116 + .../services/vpc/describe_vpn_connection.go | 118 + .../vpc/describe_vpn_connection_logs.go | 117 + .../services/vpc/describe_vpn_connections.go | 114 + .../services/vpc/describe_vpn_gateway.go | 122 + .../services/vpc/describe_vpn_gateways.go | 116 + .../services/vpc/describe_zones.go | 107 + .../services/vpc/disable_vpc_classic_link.go | 108 + .../vpc/download_vpn_connection_config.go | 108 + .../vpc/enable_physical_connection.go | 108 + .../services/vpc/enable_vpc_classic_link.go | 108 + .../vpc/modify_bandwidth_package_attribute.go | 109 + .../vpc/modify_bandwidth_package_spec.go | 108 + .../vpc/modify_bgp_group_attribute.go | 113 + ...dify_common_bandwidth_package_attribute.go | 109 + ...odify_common_bandwidth_package_pay_type.go | 118 + .../modify_common_bandwidth_package_spec.go | 108 + .../vpc/modify_customer_gateway_attribute.go | 115 + .../vpc/modify_eip_address_attribute.go | 110 + .../services/vpc/modify_forward_entry.go | 113 + ...global_acceleration_instance_attributes.go | 109 + ...odify_global_acceleration_instance_spec.go | 108 + .../services/vpc/modify_ha_vip_attribute.go | 109 + .../vpc/modify_nat_gateway_attribute.go | 109 + .../services/vpc/modify_nat_gateway_spec.go | 109 + .../services/vpc/modify_nqa.go | 109 + .../modify_physical_connection_attribute.go | 116 + .../vpc/modify_route_table_attributes.go | 116 + .../vpc/modify_router_interface_attribute.go | 115 + .../vpc/modify_router_interface_spec.go | 110 + .../services/vpc/modify_snat_entry.go | 109 + .../vpc/modify_ssl_vpn_client_cert.go | 111 + .../services/vpc/modify_ssl_vpn_server.go | 129 + .../services/vpc/modify_v_router_attribute.go | 109 + .../services/vpc/modify_v_switch_attribute.go | 109 + .../modify_virtual_border_router_attribute.go | 116 + .../services/vpc/modify_vpc_attribute.go | 109 + .../vpc/modify_vpn_connection_attribute.go | 125 + .../vpc/modify_vpn_gateway_attribute.go | 122 + .../services/vpc/move_resource_group.go | 109 + .../vpc/recover_virtual_border_router.go | 108 + .../services/vpc/release_eip_address.go | 107 + .../vpc/remove_bandwidth_package_ips.go | 109 + .../vpc/remove_common_bandwidth_package_ip.go | 108 + .../remove_global_acceleration_instance_ip.go | 108 + .../services/vpc/struct_access_point_set.go | 21 + .../services/vpc/struct_access_point_type.go | 28 + .../services/vpc/struct_associated_cen.go | 23 + ...cens_in_describe_virtual_border_routers.go | 21 + ...sociated_cens_in_describe_vpc_attribute.go | 21 + .../vpc/struct_associated_eip_addresses.go | 21 + .../vpc/struct_associated_instances.go | 21 + .../struct_associated_physical_connection.go | 30 + .../struct_associated_physical_connections.go | 21 + .../services/vpc/struct_available_regions.go | 21 + .../services/vpc/struct_backend_server.go | 24 + .../services/vpc/struct_backend_servers.go | 21 + .../services/vpc/struct_bandwidth_package.go | 35 + ...width_package_ids_in_create_nat_gateway.go | 21 + ...th_package_ids_in_describe_nat_gateways.go | 21 + .../services/vpc/struct_bandwidth_packages.go | 21 + .../services/vpc/struct_bgp_group.go | 33 + .../services/vpc/struct_bgp_groups.go | 21 + .../services/vpc/struct_bgp_peer.go | 36 + .../services/vpc/struct_bgp_peers.go | 21 + .../vpc/struct_cloud_resource_set_type.go | 22 + ...sources_in_describe_v_switch_attributes.go | 21 + ...oud_resources_in_describe_vpc_attribute.go | 21 + .../vpc/struct_common_bandwidth_package.go | 33 + .../vpc/struct_common_bandwidth_packages.go | 21 + .../services/vpc/struct_customer_gateway.go | 25 + .../services/vpc/struct_customer_gateways.go | 21 + .../services/vpc/struct_data.go | 21 + .../services/vpc/struct_eip_address.go | 40 + .../services/vpc/struct_eip_addresses.go | 21 + .../services/vpc/struct_eip_monitor_data.go | 26 + ...itor_datas_in_describe_eip_monitor_data.go | 21 + ...n_describe_new_project_eip_monitor_data.go | 21 + .../services/vpc/struct_forward_entry.go | 28 + .../services/vpc/struct_forward_entrys.go | 21 + .../services/vpc/struct_forward_table.go | 24 + .../vpc/struct_forward_table_entries.go | 21 + .../vpc/struct_forward_table_entry.go | 28 + ...forward_table_ids_in_create_nat_gateway.go | 21 + ...ward_table_ids_in_describe_nat_gateways.go | 21 + .../services/vpc/struct_forward_tables.go | 21 + .../struct_global_acceleration_instance.go | 38 + ..._describe_global_acceleration_instances.go | 21 + ...r_related_global_acceleration_instances.go | 21 + .../services/vpc/struct_ha_vip.go | 31 + .../services/vpc/struct_ha_vips.go | 21 + .../services/vpc/struct_ike_config.go | 29 + .../services/vpc/struct_ip_list.go | 24 + .../services/vpc/struct_ip_lists.go | 21 + .../services/vpc/struct_ipsec_config.go | 24 + .../services/vpc/struct_lock_reason.go | 21 + .../services/vpc/struct_monitor_data.go | 28 + .../services/vpc/struct_monitor_datas.go | 21 + .../services/vpc/struct_nat_gateway.go | 34 + .../services/vpc/struct_nat_gateway_ids.go | 21 + .../services/vpc/struct_nat_gateways.go | 21 + .../services/vpc/struct_next_hop.go | 25 + .../services/vpc/struct_next_hops.go | 21 + .../services/vpc/struct_nqa.go | 25 + .../services/vpc/struct_nqas.go | 21 + ...eration_locks_in_describe_eip_addresses.go | 21 + ..._describe_global_acceleration_instances.go | 21 + .../vpc/struct_physical_connection_set.go | 21 + .../vpc/struct_physical_connection_type.go | 38 + .../services/vpc/struct_public_ip_address.go | 22 + .../services/vpc/struct_public_ip_addresse.go | 24 + ...ddresses_in_describe_bandwidth_packages.go | 21 + ...s_in_describe_common_bandwidth_packages.go | 21 + ..._describe_global_acceleration_instances.go | 21 + .../services/vpc/struct_region.go | 22 + .../services/vpc/struct_regions.go | 21 + .../services/vpc/struct_route_entry.go | 28 + .../services/vpc/struct_route_entrys.go | 21 + .../services/vpc/struct_route_table.go | 25 + .../services/vpc/struct_route_table_ids.go | 21 + .../services/vpc/struct_route_tables.go | 21 + ...rface_set_in_describe_router_interfaces.go | 21 + ...n_describe_router_interfaces_for_global.go | 21 + .../vpc/struct_router_interface_type.go | 47 + ...face_type_in_describe_router_interfaces.go | 47 + .../services/vpc/struct_router_table_ids.go | 21 + .../services/vpc/struct_router_table_list.go | 21 + .../vpc/struct_router_table_list_type.go | 28 + .../services/vpc/struct_snat_table_entries.go | 21 + .../services/vpc/struct_snat_table_entry.go | 26 + ...ct_snat_table_ids_in_create_nat_gateway.go | 21 + ...snat_table_ids_in_describe_nat_gateways.go | 21 + .../vpc/struct_ssl_vpn_client_cert_key.go | 27 + .../vpc/struct_ssl_vpn_client_cert_keys.go | 21 + .../services/vpc/struct_ssl_vpn_server.go | 34 + .../services/vpc/struct_ssl_vpn_servers.go | 21 + ...ct_user_cidrs_in_describe_vpc_attribute.go | 21 + .../vpc/struct_user_cidrs_in_describe_vpcs.go | 21 + .../services/vpc/struct_v_router.go | 27 + .../services/vpc/struct_v_routers.go | 21 + .../services/vpc/struct_v_switch.go | 30 + ..._v_switch_ids_in_describe_vpc_attribute.go | 21 + .../struct_v_switch_ids_in_describe_vpcs.go | 21 + .../services/vpc/struct_v_switches.go | 21 + ...rder_router_for_physical_connection_set.go | 21 + ...der_router_for_physical_connection_type.go | 28 + .../vpc/struct_virtual_border_router_set.go | 21 + .../vpc/struct_virtual_border_router_type.go | 42 + .../services/vpc/struct_vpc.go | 34 + .../services/vpc/struct_vpcs.go | 21 + .../services/vpc/struct_vpn_connection.go | 31 + .../vpc/struct_vpn_connection_config.go | 26 + .../services/vpc/struct_vpn_connections.go | 21 + .../services/vpc/struct_vpn_gateway.go | 35 + .../services/vpc/struct_vpn_gateways.go | 21 + .../services/vpc/struct_zone.go | 22 + .../services/vpc/struct_zones.go | 21 + .../vpc/terminate_physical_connection.go | 108 + .../vpc/terminate_virtual_border_router.go | 108 + .../services/vpc/unassociate_eip_address.go | 109 + ...nassociate_global_acceleration_instance.go | 108 + .../services/vpc/unassociate_ha_vip.go | 110 + ...l_connection_from_virtual_border_router.go | 109 + vendor/github.com/beorn7/perks/LICENSE | 20 + .../beorn7/perks/quantile/exampledata.txt | 2388 ++++++++++++++ .../beorn7/perks/quantile/stream.go | 316 ++ vendor/github.com/golang/protobuf/LICENSE | 28 + .../github.com/golang/protobuf/proto/clone.go | 253 ++ .../golang/protobuf/proto/decode.go | 428 +++ .../golang/protobuf/proto/discard.go | 350 +++ .../golang/protobuf/proto/encode.go | 218 ++ .../github.com/golang/protobuf/proto/equal.go | 300 ++ .../golang/protobuf/proto/extensions.go | 543 ++++ .../github.com/golang/protobuf/proto/lib.go | 921 ++++++ .../golang/protobuf/proto/message_set.go | 314 ++ .../golang/protobuf/proto/pointer_reflect.go | 357 +++ .../golang/protobuf/proto/pointer_unsafe.go | 308 ++ .../golang/protobuf/proto/properties.go | 544 ++++ .../golang/protobuf/proto/table_marshal.go | 2755 +++++++++++++++++ .../golang/protobuf/proto/table_merge.go | 654 ++++ .../golang/protobuf/proto/table_unmarshal.go | 2048 ++++++++++++ .../github.com/golang/protobuf/proto/text.go | 843 +++++ .../golang/protobuf/proto/text_parser.go | 880 ++++++ .../github.com/jmespath/go-jmespath/LICENSE | 13 + .../github.com/jmespath/go-jmespath/Makefile | 44 + .../github.com/jmespath/go-jmespath/README.md | 7 + vendor/github.com/jmespath/go-jmespath/api.go | 49 + .../go-jmespath/astnodetype_string.go | 16 + .../jmespath/go-jmespath/functions.go | 842 +++++ .../jmespath/go-jmespath/interpreter.go | 418 +++ .../github.com/jmespath/go-jmespath/lexer.go | 420 +++ .../github.com/jmespath/go-jmespath/parser.go | 603 ++++ .../jmespath/go-jmespath/toktype_string.go | 16 + .../github.com/jmespath/go-jmespath/util.go | 185 ++ vendor/github.com/json-iterator/go/Gopkg.lock | 21 + vendor/github.com/json-iterator/go/Gopkg.toml | 26 + vendor/github.com/json-iterator/go/LICENSE | 21 + vendor/github.com/json-iterator/go/README.md | 91 + vendor/github.com/json-iterator/go/adapter.go | 148 + vendor/github.com/json-iterator/go/any.go | 321 ++ .../github.com/json-iterator/go/any_array.go | 278 ++ .../github.com/json-iterator/go/any_bool.go | 137 + .../github.com/json-iterator/go/any_float.go | 83 + .../github.com/json-iterator/go/any_int32.go | 74 + .../github.com/json-iterator/go/any_int64.go | 74 + .../json-iterator/go/any_invalid.go | 82 + vendor/github.com/json-iterator/go/any_nil.go | 69 + .../github.com/json-iterator/go/any_number.go | 123 + .../github.com/json-iterator/go/any_object.go | 374 +++ vendor/github.com/json-iterator/go/any_str.go | 166 + .../github.com/json-iterator/go/any_uint32.go | 74 + .../github.com/json-iterator/go/any_uint64.go | 74 + vendor/github.com/json-iterator/go/build.sh | 12 + vendor/github.com/json-iterator/go/config.go | 375 +++ .../go/fuzzy_mode_convert_table.md | 7 + vendor/github.com/json-iterator/go/iter.go | 322 ++ .../github.com/json-iterator/go/iter_array.go | 58 + .../github.com/json-iterator/go/iter_float.go | 347 +++ .../github.com/json-iterator/go/iter_int.go | 345 +++ .../json-iterator/go/iter_object.go | 252 ++ .../github.com/json-iterator/go/iter_skip.go | 129 + .../json-iterator/go/iter_skip_sloppy.go | 144 + .../json-iterator/go/iter_skip_strict.go | 89 + .../github.com/json-iterator/go/iter_str.go | 215 ++ .../github.com/json-iterator/go/jsoniter.go | 18 + vendor/github.com/json-iterator/go/pool.go | 42 + vendor/github.com/json-iterator/go/reflect.go | 332 ++ .../json-iterator/go/reflect_array.go | 104 + .../json-iterator/go/reflect_dynamic.go | 70 + .../json-iterator/go/reflect_extension.go | 483 +++ .../json-iterator/go/reflect_json_number.go | 112 + .../go/reflect_json_raw_message.go | 60 + .../json-iterator/go/reflect_map.go | 326 ++ .../json-iterator/go/reflect_marshaler.go | 218 ++ .../json-iterator/go/reflect_native.go | 451 +++ .../json-iterator/go/reflect_optional.go | 133 + .../json-iterator/go/reflect_slice.go | 99 + .../go/reflect_struct_decoder.go | 1048 +++++++ .../go/reflect_struct_encoder.go | 210 ++ vendor/github.com/json-iterator/go/stream.go | 211 ++ .../json-iterator/go/stream_float.go | 94 + .../github.com/json-iterator/go/stream_int.go | 190 ++ .../github.com/json-iterator/go/stream_str.go | 372 +++ vendor/github.com/json-iterator/go/test.sh | 12 + .../golang_protobuf_extensions/LICENSE | 201 ++ .../golang_protobuf_extensions/NOTICE | 1 + .../pbutil/Makefile | 7 + .../pbutil/decode.go | 75 + .../golang_protobuf_extensions/pbutil/doc.go | 16 + .../pbutil/encode.go | 46 + .../github.com/modern-go/concurrent/LICENSE | 201 ++ .../github.com/modern-go/concurrent/README.md | 49 + .../modern-go/concurrent/executor.go | 14 + .../modern-go/concurrent/go_above_19.go | 15 + .../modern-go/concurrent/go_below_19.go | 33 + vendor/github.com/modern-go/concurrent/log.go | 13 + .../github.com/modern-go/concurrent/test.sh | 12 + .../concurrent/unbounded_executor.go | 119 + .../github.com/modern-go/reflect2/Gopkg.lock | 15 + .../github.com/modern-go/reflect2/Gopkg.toml | 35 + vendor/github.com/modern-go/reflect2/LICENSE | 201 ++ .../github.com/modern-go/reflect2/README.md | 71 + .../modern-go/reflect2/go_above_17.go | 8 + .../modern-go/reflect2/go_above_19.go | 14 + .../modern-go/reflect2/go_below_17.go | 9 + .../modern-go/reflect2/go_below_19.go | 14 + .../github.com/modern-go/reflect2/reflect2.go | 298 ++ .../modern-go/reflect2/reflect2_amd64.s | 0 .../modern-go/reflect2/reflect2_kind.go | 30 + .../modern-go/reflect2/relfect2_386.s | 0 .../modern-go/reflect2/relfect2_amd64p32.s | 0 .../modern-go/reflect2/relfect2_arm.s | 0 .../modern-go/reflect2/relfect2_arm64.s | 0 .../modern-go/reflect2/relfect2_mips64x.s | 0 .../modern-go/reflect2/relfect2_mipsx.s | 0 .../modern-go/reflect2/relfect2_ppc64x.s | 0 .../modern-go/reflect2/relfect2_s390x.s | 0 .../modern-go/reflect2/safe_field.go | 58 + .../github.com/modern-go/reflect2/safe_map.go | 101 + .../modern-go/reflect2/safe_slice.go | 92 + .../modern-go/reflect2/safe_struct.go | 29 + .../modern-go/reflect2/safe_type.go | 78 + vendor/github.com/modern-go/reflect2/test.sh | 12 + .../github.com/modern-go/reflect2/type_map.go | 113 + .../modern-go/reflect2/unsafe_array.go | 65 + .../modern-go/reflect2/unsafe_eface.go | 59 + .../modern-go/reflect2/unsafe_field.go | 74 + .../modern-go/reflect2/unsafe_iface.go | 64 + .../modern-go/reflect2/unsafe_link.go | 70 + .../modern-go/reflect2/unsafe_map.go | 138 + .../modern-go/reflect2/unsafe_ptr.go | 46 + .../modern-go/reflect2/unsafe_slice.go | 177 ++ .../modern-go/reflect2/unsafe_struct.go | 59 + .../modern-go/reflect2/unsafe_type.go | 85 + .../patrickmn/go-cache/CONTRIBUTORS | 9 + vendor/github.com/patrickmn/go-cache/LICENSE | 19 + .../github.com/patrickmn/go-cache/README.md | 83 + vendor/github.com/patrickmn/go-cache/cache.go | 1161 +++++++ .../github.com/patrickmn/go-cache/sharded.go | 192 ++ .../prometheus/client_golang/LICENSE | 201 ++ .../prometheus/client_golang/NOTICE | 23 + .../client_golang/prometheus/README.md | 1 + .../client_golang/prometheus/collector.go | 86 + .../client_golang/prometheus/counter.go | 277 ++ .../client_golang/prometheus/desc.go | 188 ++ .../client_golang/prometheus/doc.go | 201 ++ .../prometheus/expvar_collector.go | 119 + .../client_golang/prometheus/fnv.go | 29 + .../client_golang/prometheus/gauge.go | 286 ++ .../client_golang/prometheus/go_collector.go | 288 ++ .../client_golang/prometheus/histogram.go | 505 +++ .../client_golang/prometheus/http.go | 512 +++ .../client_golang/prometheus/labels.go | 57 + .../client_golang/prometheus/metric.go | 144 + .../client_golang/prometheus/observer.go | 52 + .../prometheus/process_collector.go | 139 + .../prometheus/promhttp/delegator.go | 199 ++ .../prometheus/promhttp/delegator_1_8.go | 181 ++ .../prometheus/promhttp/delegator_pre_1_8.go | 44 + .../client_golang/prometheus/promhttp/http.go | 311 ++ .../prometheus/promhttp/instrument_client.go | 97 + .../promhttp/instrument_client_1_8.go | 144 + .../prometheus/promhttp/instrument_server.go | 447 +++ .../client_golang/prometheus/registry.go | 941 ++++++ .../client_golang/prometheus/summary.go | 623 ++++ .../client_golang/prometheus/timer.go | 51 + .../client_golang/prometheus/untyped.go | 42 + .../client_golang/prometheus/value.go | 158 + .../client_golang/prometheus/vec.go | 472 +++ .../prometheus/client_model/LICENSE | 201 ++ .../github.com/prometheus/client_model/NOTICE | 5 + .../prometheus/client_model/go/metrics.pb.go | 629 ++++ vendor/github.com/prometheus/common/LICENSE | 201 ++ vendor/github.com/prometheus/common/NOTICE | 5 + .../prometheus/common/expfmt/decode.go | 429 +++ .../prometheus/common/expfmt/encode.go | 88 + .../prometheus/common/expfmt/expfmt.go | 38 + .../prometheus/common/expfmt/fuzz.go | 36 + .../prometheus/common/expfmt/text_create.go | 303 ++ .../prometheus/common/expfmt/text_parse.go | 757 +++++ .../bitbucket.org/ww/goautoneg/README.txt | 67 + .../bitbucket.org/ww/goautoneg/autoneg.go | 162 + .../common/log/eventlog_formatter.go | 89 + .../github.com/prometheus/common/log/log.go | 364 +++ .../prometheus/common/log/syslog_formatter.go | 126 + .../prometheus/common/model/alert.go | 136 + .../prometheus/common/model/fingerprinting.go | 105 + .../github.com/prometheus/common/model/fnv.go | 42 + .../prometheus/common/model/labels.go | 210 ++ .../prometheus/common/model/labelset.go | 169 + .../prometheus/common/model/metric.go | 103 + .../prometheus/common/model/model.go | 16 + .../prometheus/common/model/signature.go | 144 + .../prometheus/common/model/silence.go | 106 + .../prometheus/common/model/time.go | 264 ++ .../prometheus/common/model/value.go | 416 +++ .../prometheus/common/version/info.go | 89 + .../prometheus/procfs/CONTRIBUTING.md | 18 + vendor/github.com/prometheus/procfs/LICENSE | 201 ++ .../prometheus/procfs/MAINTAINERS.md | 1 + vendor/github.com/prometheus/procfs/Makefile | 77 + vendor/github.com/prometheus/procfs/NOTICE | 7 + vendor/github.com/prometheus/procfs/README.md | 11 + .../github.com/prometheus/procfs/buddyinfo.go | 95 + vendor/github.com/prometheus/procfs/doc.go | 45 + .../prometheus/procfs/fixtures.ttar | 446 +++ vendor/github.com/prometheus/procfs/fs.go | 82 + .../prometheus/procfs/internal/util/parse.go | 46 + vendor/github.com/prometheus/procfs/ipvs.go | 259 ++ vendor/github.com/prometheus/procfs/mdstat.go | 151 + .../prometheus/procfs/mountstats.go | 606 ++++ .../github.com/prometheus/procfs/net_dev.go | 216 ++ .../github.com/prometheus/procfs/nfs/nfs.go | 263 ++ .../github.com/prometheus/procfs/nfs/parse.go | 317 ++ .../prometheus/procfs/nfs/parse_nfs.go | 67 + .../prometheus/procfs/nfs/parse_nfsd.go | 89 + vendor/github.com/prometheus/procfs/proc.go | 238 ++ .../github.com/prometheus/procfs/proc_io.go | 65 + .../prometheus/procfs/proc_limits.go | 150 + .../github.com/prometheus/procfs/proc_ns.go | 68 + .../github.com/prometheus/procfs/proc_stat.go | 188 ++ vendor/github.com/prometheus/procfs/stat.go | 232 ++ vendor/github.com/prometheus/procfs/ttar | 389 +++ vendor/github.com/prometheus/procfs/xfrm.go | 187 ++ .../github.com/prometheus/procfs/xfs/parse.go | 330 ++ .../github.com/prometheus/procfs/xfs/xfs.go | 163 + vendor/github.com/satori/go.uuid/LICENSE | 20 + vendor/github.com/satori/go.uuid/README.md | 65 + vendor/github.com/satori/go.uuid/uuid.go | 488 +++ vendor/github.com/shopspring/decimal/LICENSE | 45 + .../github.com/shopspring/decimal/README.md | 126 + .../shopspring/decimal/decimal-go.go | 414 +++ .../github.com/shopspring/decimal/decimal.go | 1434 +++++++++ .../github.com/shopspring/decimal/rounding.go | 118 + .../github.com/sirupsen/logrus/CHANGELOG.md | 123 + vendor/github.com/sirupsen/logrus/LICENSE | 21 + vendor/github.com/sirupsen/logrus/README.md | 461 +++ vendor/github.com/sirupsen/logrus/alt_exit.go | 64 + .../github.com/sirupsen/logrus/appveyor.yml | 14 + vendor/github.com/sirupsen/logrus/doc.go | 26 + vendor/github.com/sirupsen/logrus/entry.go | 300 ++ vendor/github.com/sirupsen/logrus/exported.go | 201 ++ .../github.com/sirupsen/logrus/formatter.go | 51 + vendor/github.com/sirupsen/logrus/hooks.go | 34 + .../sirupsen/logrus/json_formatter.go | 96 + vendor/github.com/sirupsen/logrus/logger.go | 337 ++ vendor/github.com/sirupsen/logrus/logrus.go | 143 + .../sirupsen/logrus/terminal_bsd.go | 10 + .../logrus/terminal_check_appengine.go | 11 + .../logrus/terminal_check_notappengine.go | 19 + .../sirupsen/logrus/terminal_linux.go | 14 + .../sirupsen/logrus/text_formatter.go | 195 ++ vendor/github.com/sirupsen/logrus/writer.go | 62 + vendor/vendor.json | 257 ++ 5040 files changed, 379972 insertions(+), 2 deletions(-) create mode 100644 vendor/github.com/alecthomas/template/LICENSE create mode 100644 vendor/github.com/alecthomas/template/README.md create mode 100644 vendor/github.com/alecthomas/template/doc.go create mode 100644 vendor/github.com/alecthomas/template/exec.go create mode 100644 vendor/github.com/alecthomas/template/funcs.go create mode 100644 vendor/github.com/alecthomas/template/helper.go create mode 100644 vendor/github.com/alecthomas/template/parse/lex.go create mode 100644 vendor/github.com/alecthomas/template/parse/node.go create mode 100644 vendor/github.com/alecthomas/template/parse/parse.go create mode 100644 vendor/github.com/alecthomas/template/template.go create mode 100644 vendor/github.com/alecthomas/units/COPYING create mode 100644 vendor/github.com/alecthomas/units/README.md create mode 100644 vendor/github.com/alecthomas/units/bytes.go create mode 100644 vendor/github.com/alecthomas/units/doc.go create mode 100644 vendor/github.com/alecthomas/units/si.go create mode 100644 vendor/github.com/alecthomas/units/util.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/LICENSE create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credential.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/access_key_credential.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/ecs_ram_role.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/rsa_key_pair_credential.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_credential.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_role_arn_credential.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/roa_signature_composer.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/rpc_signature_composer.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signer.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/algorithms.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/credential_updater.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/session_credential.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_access_key.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ecs_ram_role.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_key_pair.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ram_role_arn.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_sts_token.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_v2.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client_test.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/endpoints_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_global_resolver.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_regional_resolver.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/location_resolver.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/mapping_resolver.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/mapping_resolver_test.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/resolver.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/simple_host_resolver.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/client_error.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/error.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/server_error.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/signature_does_not_match_wrapper.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/log/log.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/acs_reqeust.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/common_request.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/roa_request.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/rpc_request.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/types.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/types_test.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/resource/tzdata.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/resource/zoneinfo.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/json_parser.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/json_parser_test.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/response.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/utils.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/batch_delete_white_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/create_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/create_suspicious_export.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/create_user_setting.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/create_user_white_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/delete_strategy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_export_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_login_logs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_mac_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_machine_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_risk_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_risk_white_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_risks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_strategy_target.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_stratety.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_stratety_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_suspicious_events.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_suspicious_export_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_user_setting.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_vul_details.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_vul_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_warning.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_webshell.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describesummary.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/export_warning.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/get_account_statistics.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/get_crack_statistics.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/get_entity_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/get_statistics.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/get_statistics_by_uuid.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/modify_batch_ignore_vul.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/modify_machine_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/modify_strategy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/modify_strategy_target.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/operate_warning.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/query_crack_event.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/query_login_event.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/release_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/renew_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_classifys.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_classifys_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_config_target.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_config_targets_in_describe_machine_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_config_targets_in_describe_stratety.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_configs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_cve_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_cves.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_cves_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_data_in_get_statistics_by_uuid.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_detail_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_detail_items.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_detail_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_detail_list_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_details.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_entity.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_entity_in_get_entity_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_extend_content_json.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_list_in_get_entity_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_list_in_query_crack_event.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_list_in_query_login_event.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_log_list_in_describe_login_logs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_log_list_in_describe_suspicious_events.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_log_list_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_necessity.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_page_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risk.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risk_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risk_type_white_list_query_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risk_type_white_list_query_result_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risk_types.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_rpm_entity_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_rpm_entity_list_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_strategie.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_strategies.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_strategy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_strategy_target.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_strategy_targets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_sub_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_sub_types_in_describe_risk_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_sub_types_in_describe_stratety_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_target.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_target_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_vul_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_vul_records_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_warning.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_warning_summary.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_warning_summarys.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_warnings.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_webshell_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_webshell_list_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_white_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_white_lists.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/upgrade_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_batch_domain_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain_record.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/apply_for_retrieval_domain_name.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/change_domain_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/change_domain_of_dns_product.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/check_domain_record.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_batch_domain_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_batch_domains.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_domain_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_domain_record.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_sub_domain_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_batch_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_product_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_product_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dnsslb_sub_domains.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_logs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_ns.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_record_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_whois_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domains.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_record_logs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_sub_domain_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_support_lines.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/get_main_domain_name.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/modify_hichina_domain_dns.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/retrieval_domain_name.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_dnsslb_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_domain_record_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_available_ttls.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_product.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_products.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_add_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_dns_product_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domain_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domain_ns.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domain_whois_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domains.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_log.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_logs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_records_in_describe_domain_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_records_in_describe_sub_domain_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domains.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_expect_dns_servers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_fail_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_fail_results.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_new_dns_servers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_original_dns_servers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_line.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_lines_in_describe_domain_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_lines_in_describe_support_lines.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_log.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_logs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_slb_sub_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_slb_sub_domains.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_status_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_batch_domain_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dnsslb_weight.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_domain_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_domain_record.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms/arms_query_data_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms/where_in_dim_query.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms4finance/arms_query_data_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms4finance/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms4finance/where_in_dim_query.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/associate_cen_bandwidth_package.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/attach_cen_child_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/create_cen.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/create_cen_bandwidth_package.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/delete_cen.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/delete_cen_bandwidth_package.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_attached_child_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_bandwidth_packages.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_geographic_span_remaining_bandwidth.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_inter_region_bandwidth_limits.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_region_domain_route_entries.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_vbr_health_check.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cens.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_geographic_region_membership.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_route_conflict.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/detach_cen_child_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/disable_cen_vbr_health_check.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/enable_cen_vbr_health_check.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/modify_cen_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/modify_cen_bandwidth_package_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/modify_cen_bandwidth_package_spec.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/set_cen_inter_region_bandwidth_limit.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_bandwidth_package.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_bandwidth_package_ids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_bandwidth_packages.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_ids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_inter_region_bandwidth_limit.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_inter_region_bandwidth_limits.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_route_entries.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_route_entry.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cens.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_child_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_child_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_region_id.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_region_ids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_route_conflict.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_route_conflicts.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_vbr_health_check.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_vbr_health_checks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/unassociate_cen_bandwidth_package.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/add_phone_number.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/assign_users.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/create_skill_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/create_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/delete_skill_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/download_recording.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/get_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/get_service_extensions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/get_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_call_detail_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_contact_flows.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_phone_numbers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_recordings.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_recordings_by_contact_id.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_roles.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_skill_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_skill_groups_of_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_users.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_users_of_skill_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/modify_phone_number.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/modify_skill_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/modify_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/refresh_token.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/remove_phone_number.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/remove_users.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/request_login_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_agents.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_call_detail_agent.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_call_detail_record.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_call_detail_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_config_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_contact_flow.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_contact_flow_version.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_contact_flows.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_list_in_list_call_detail_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_list_in_list_recordings.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_list_in_list_users.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_list_in_list_users_of_skill_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_login_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_media_download_param.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_outbound_phone_numbers_in_list_skill_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_outbound_phone_numbers_in_list_skill_groups_of_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_phone_number.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_phone_numbers_in_list_contact_flows.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_phone_numbers_in_list_phone_numbers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_privilege.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_privileges.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_recording.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_recordings.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_recordings_in_list_call_detail_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_recordings_in_list_recordings_by_contact_id.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_role.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_roles_in_get_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_roles_in_list_roles.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_roles_in_list_users.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_roles_in_list_users_of_skill_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_service_extension.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_service_extensions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_level.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_levels_in_get_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_levels_in_list_skill_groups_of_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_levels_in_list_users.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_levels_in_list_users_of_skill_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_token.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_users.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_versions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_cdn_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_fc_trigger.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_live_app_record_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_live_app_snapshot_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_live_domain_mapping.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_live_pull_stream_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_live_stream_transcode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/batch_describe_domain_bps_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/clear_user_black_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/clear_user_domain_black_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/create_live_stream_record_index_files.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_cache_expired_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_cdn_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_fc_trigger.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_http_header_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_live_app_record_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_live_app_snapshot_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_live_domain_mapping.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_live_pull_stream_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_live_stream_transcode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_domain_base_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_domain_configs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_domain_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_domain_logs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_region_and_isp.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_types.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_custom_log_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_average_response_time.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_bps_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_bps_data_by_time_stamp.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_cc_attack_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_cc_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_certificate_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_cname.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_configs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_custom_log_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_downstream_bps_of_edge.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_file_size_proportion_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_flow_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_hit_rate_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_http_code_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_https_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_isp_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_max95_bps_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_month_billing_bps_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_online_user_number.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_path_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_pv_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_qo_s_rt.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_qps_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_real_time_bps_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_real_time_byte_hit_rate_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_real_time_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_real_time_qps_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_real_time_req_hit_rate_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_region_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_req_hit_rate_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_slow_ratio.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_src_bps_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_src_flow_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_top_refer_visit.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_top_url_visit.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_upstream_bps_of_edge.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_upstream_of_center.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_uv_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domains_by_source.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domains_usage_by_day.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_extensive_domain_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_fc_trigger.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_ip_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_l2_vips_by_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_app_record_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_pull_stream_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_record_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_snapshot_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_specific_domain_mapping.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_bit_rate_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_bps_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_domain_app_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_frame_and_bit_rate_by_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_frame_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_frame_loss_ratio.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_hls_online_user_num_by_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_limit_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_number_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_online_bps.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_online_user_num.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_online_user_num_by_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_push_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_push_errors.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_record_content.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_record_index_file.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_record_index_files.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_relay_push_bit_rate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_relay_push_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_relay_push_errors.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_room_bit_rate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_room_user_number.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_snapshot_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_stream_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_transcode_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_transcode_stream_num.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_streams_block_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_streams_control_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_streams_frame_rate_and_bit_rate_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_streams_online_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_streams_publish_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_one_minute_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_range_data_by_locate_and_isp_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_refresh_quota.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_refresh_tasks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_top_domains_by_flow.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_user_configs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_user_custom_log_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_user_customer_labels.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_user_domains.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_user_vips_by_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/forbid_live_stream.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/get_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/get_user_domain_black_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/list_domains_by_log_config_id.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/migrate_domain_to_https_delivery.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_cdn_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_cdn_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_domain_custom_log_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_file_cache_expired_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_http_header_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_user_custom_log_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/open_cdn_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/push_object_cache.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/refresh_object_caches.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/resume_live_stream.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_cc_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_domain_server_certificate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_dynamic_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_error_page_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_file_cache_expired_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_file_type_force_ttl_code_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_force_redirect_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_forward_scheme_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_http_error_page_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_http_header_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_https_option_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_ignore_query_string_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_ip_allow_list_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_ip_black_list_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_l2_oss_key_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_live_streams_notify_url_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_location_access_restriction.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_optimize_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_oss_log_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_page_compress_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_path_cache_expired_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_path_force_ttl_code_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_range_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_referer_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_remote_req_auth_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_remove_query_string_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_req_auth_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_req_header_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_source_host_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_user_agent_acess_restriction.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_user_black_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_user_domain_black_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_video_seek_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_waf_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_waiting_room_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/start_cdn_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/start_mix_streams_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/stop_cdn_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/stop_mix_streams_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_ali_business_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_all_url_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_attack_ip_data_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_attack_ip_datas.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_attacked_url_data_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_attacked_url_datas.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_avg_rt_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_data_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_data_model.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_data_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_datas_in_batch_describe_domain_bps_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_datas_in_describe_domain_downstream_bps_of_edge.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_datas_in_describe_domain_upstream_bps_of_edge.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_datas_in_describe_domain_upstream_of_center.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_datas_in_describe_live_stream_bps_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_model.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_byte_hit_rate_data_model.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cache_expired_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cache_expired_configs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cc_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cc_data_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cc_datas.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cdn_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cdn_task.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cdn_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cdn_types.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cert_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cert_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cname_datas.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_code_proportion_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_config_ids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_configs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_content.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_control_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_in_describe_domain_real_time_bps_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_in_describe_domain_real_time_byte_hit_rate_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_in_describe_domain_real_time_qps_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_in_describe_domain_real_time_req_hit_rate_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_module.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_per_interval_in_describe_domain_real_time_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_per_interval_in_describe_extensive_domain_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_app_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_app_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_base_detail_model.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_bps_model.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_configs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_configs_in_describe_cdn_domain_configs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_log_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_log_details.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_log_model.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_mapping_model.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_mapping_models.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_transcode_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_transcode_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domains_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domains_in_describe_domains_by_source.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domains_in_describe_user_domains.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domains_in_list_domains_by_log_config_id.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domains_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_dynamic_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_dynamic_configs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_error_page_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_fc_trigger.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_file_size_proportion_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_file_size_proportion_data_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_flow_data_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_forward_scheme_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_data_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_data_model.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_loss_ratio_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_loss_ratio_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_rate_and_bit_rate_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_rate_and_bit_rate_infos_in_describe_live_stream_bit_rate_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_rate_and_bit_rate_infos_in_describe_live_stream_frame_and_bit_rate_by_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_rate_and_bit_rate_infos_in_describe_live_stream_room_bit_rate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_rate_and_bit_rate_infos_in_describe_live_streams_frame_rate_and_bit_rate_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_function_arg.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_function_args.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_get_domain_detail_model.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_green_manager_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_hit_rate_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_http_code_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_http_error_page_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_http_error_page_configs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_http_header_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_http_header_configs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_https_option_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_https_statistics_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_https_statistics_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_ignore_query_string_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_ip_allow_list_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_isp.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_isp_proportion_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_isps.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_l2_oss_key_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_app_record.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_app_record_list_in_describe_live_pull_stream_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_app_record_list_in_describe_live_record_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_control_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_online_bps_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_online_bps_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_online_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_online_user_num_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_online_user_num_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_publish_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_snapshot_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_snapshot_config_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_snapshot_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_snapshot_info_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_lock_reason.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_mac_service_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_mix_streams_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_mix_streams_info_list_in_start_mix_streams_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_mix_streams_info_list_in_stop_mix_streams_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_monitor_datas.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_notify_url_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_online_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_online_user_info_in_describe_live_stream_hls_online_user_num_by_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_online_user_info_in_describe_live_stream_online_user_num.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_online_user_info_in_describe_live_stream_online_user_num_by_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_online_user_info_in_describe_live_stream_room_user_number.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_operation_locks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_optimize_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_oss_log_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_page_compress_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_page_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_path_data_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_publish_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_push_errors_model.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_push_errors_model_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_push_stream_model.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_push_stream_model_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_pv_data_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_qps_data_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_qps_model.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_range_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_record_content_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_record_content_info_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_record_index_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_record_index_info_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_record_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_redirect_type_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_refer_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_referer_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_region.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_region_proportion_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_bit_rate_model.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_bit_rate_model_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_detail_model.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_detail_model_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_errors_model.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_errors_model_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_remove_query_string_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_req_auth_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_req_header_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_req_header_configs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_req_hit_rate_data_model.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_req_hit_rate_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_set_vars_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_set_vars_configs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_slow_ratio_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_slow_ratio_data_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_source.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_source_model.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_source_models.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_sources_in_describe_cdn_domain_base_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_sources_in_describe_cdn_domain_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_sources_in_describe_user_domains.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_sources_in_get_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_src_bps_data_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_src_flow_data_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_src_host_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_stream_number_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_stream_number_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_stream_urls.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_supply_bps_datas.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_tasks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_top_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_top_domains.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_top_refer_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_url200_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_url300_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_url400_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_url500_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_url_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_by_day.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_by_days.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_data_in_describe_domain_file_size_proportion_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_data_in_describe_domain_http_code_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_data_in_describe_extensive_domain_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_total.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_user_limit_lists.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_user_limit_mode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_uv_data_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_value_in_describe_domain_file_size_proportion_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_value_in_describe_domain_http_code_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_value_in_describe_domain_isp_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_value_in_describe_domain_region_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_video_seek_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_vips_in_describe_l2_vips_by_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_vips_in_describe_user_vips_by_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_waf_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/update_fc_trigger.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/update_live_app_snapshot_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/chat.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_knowledge.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_message.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_messages.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_recommend.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_recommends.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_text.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/abolish_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/add_catalog_relation.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/add_catalog_relations.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/add_ip_control_policy_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/add_traffic_special_control.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/clear_catalog_relations.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_api_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_api_stage_variable.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_app.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_catalog.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_ip_control.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_log_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_signature.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_traffic_control.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_all_traffic_special_control.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_api_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_api_stage_variable.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_app.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_catalog.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_domain_certificate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_ip_control.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_log_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_signature.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_traffic_control.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_traffic_special_control.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/deploy_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_doc.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_error_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_histories.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_ip_controls.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_latency_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_qps_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_signatures.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_stage.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_traffic_controls.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_traffic_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apis_by_app.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apis_by_ip_control.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apis_by_signature.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apis_by_traffic_control.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_app_attributes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_app_security.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apps.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_authorized_apis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_authorized_apps.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_catalog.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_catalogs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_deployed_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_deployed_apis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_domains_resolution.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_history_apis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_ip_control_policy_items.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_ip_controls.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_log_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_purchased_api_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_purchased_api_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_purchased_apis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_signatures.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_signatures_by_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_system_parameters.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_traffic_controls.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_traffic_controls_by_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_vpc_accesses.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_api_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_app.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_catalog.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_ip_control.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_ip_control_policy_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_log_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_signature.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_traffic_control.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/reactivate_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_apis_authorities.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_apps_authorities.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_catalog_relation.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_catalog_relations.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_ip_control_apis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_ip_control_policy_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_signature_apis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_traffic_control_apis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_vpc_access.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/reset_app_secret.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/sdk_generate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/sdk_generate_by_app.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/sdk_generate_by_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_apis_authorities.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_apps_authorities.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_domain_certificate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_domain_web_socket_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_ip_control_apis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_signature_apis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_traffic_control_apis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_vpc_access.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_group_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_group_attributes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_his_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_his_items_in_describe_api_histories.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_his_items_in_describe_history_apis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_ids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_infos_in_describe_apis_by_ip_control.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_infos_in_describe_apis_by_signature.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_infos_in_describe_apis_by_traffic_control.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_ip_control_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_ip_controls.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_signature_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_signatures.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_summary.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_summarys.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_traffic_control_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_traffic_controls.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_app_api_relation_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_app_api_relation_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_app_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_app_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_apps_in_describe_app_attributes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_apps_in_describe_apps.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_authorized_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_authorized_apis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_authorized_app.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_authorized_apps.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_call_downloads.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_call_fails.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_call_latencys.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_call_successes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_call_uploads.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_catalog_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_catalog_attributes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_client_errors.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_constant_parameter.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_constant_parameters_in_describe_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_constant_parameters_in_describe_api_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_constant_parameters_in_describe_deployed_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_custom_domains.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_custom_system_parameter.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_custom_system_parameters_in_describe_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_custom_system_parameters_in_describe_api_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_custom_system_parameters_in_describe_deployed_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_deployed_api_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_deployed_apis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_deployed_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_deployed_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_domain_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_domain_resolution.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_domain_resolutions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_domains.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_error_code_sample.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_error_code_samples_in_describe_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_error_code_samples_in_describe_api_doc.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_error_code_samples_in_describe_api_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_error_code_samples_in_describe_deployed_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_ip_control_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_ip_control_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_ip_control_policy_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_ip_control_policy_items.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_log_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_log_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_monitor_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_open_id_connect_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_purchased_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_purchased_api_group_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_purchased_api_group_attributes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_purchased_apis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_region.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_parameter.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_parameters_in_describe_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_parameters_in_describe_api_doc.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_parameters_in_describe_api_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_parameters_in_describe_deployed_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_result_description.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_result_descriptions_in_describe_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_result_descriptions_in_describe_api_doc.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_result_descriptions_in_describe_api_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_result_descriptions_in_describe_deployed_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_route_rule_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_route_rules.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_server_errors.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameter.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameter_map.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_in_describe_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_in_describe_api_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_in_describe_deployed_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_map_in_describe_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_map_in_describe_api_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_map_in_describe_deployed_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_signature_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_signature_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_signature_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_signatures.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_special.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_special_policies.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_special_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_specials.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_stage_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_stage_items.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_stage_route_model.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_param_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_parameter.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_parameters_in_describe_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_parameters_in_describe_api_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_parameters_in_describe_deployed_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_params.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_traffic_control.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_traffic_control_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_traffic_control_items.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_traffic_controls.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_variable_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_variables.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_vpc_access_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_vpc_access_attributes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_vpc_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/switch_api.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/compare_faces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/detect_face_attributes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/get_materials.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/get_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/get_verify_token.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_face_attributes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_face_attributes_detect_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_face_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_face_rect.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_gender.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_headpose.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_smiling.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_sts_token.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_verify_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_verify_token.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/submit_materials.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/activate_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/add_album_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/create_album.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/create_event.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/create_photo.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/create_photo_store.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/create_transaction.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/delete_albums.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/delete_event.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/delete_faces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/delete_photo_store.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/delete_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/edit_event.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/edit_photo_store.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/edit_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/fetch_album_tag_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/fetch_libraries.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/fetch_moment_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/fetch_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_albums_by_names.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_download_url.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_download_urls.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_event.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_framed_photo_urls.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_library.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_photo_store.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_photos_by_md5s.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_private_access_urls.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_public_access_urls.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_quota.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_similar_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_thumbnail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_thumbnails.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_video_cover.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/inactivate_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/like_photo.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_album_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_albums.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_events.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_face_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_faces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_moment_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_moments.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_photo_faces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_photo_stores.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_photo_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_registered_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_tag_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_time_line_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_time_lines.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/merge_faces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/move_album_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/move_face_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/reactivate_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/register_photo.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/register_tag.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/remove_album_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/remove_face_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/rename_album.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/rename_face.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/search_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/set_album_cover.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/set_face_cover.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/set_me.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/set_quota.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_album.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_albums_in_get_albums_by_names.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_albums_in_list_albums.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_auto_clean_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_axis_in_list_faces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_axis_in_list_photo_faces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_bucket.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_buckets_in_get_photo_store.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_buckets_in_list_photo_stores.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_cover.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_event.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_events.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_face.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_faces_in_list_faces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_faces_in_list_photo_faces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_libraries.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_library.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_moment.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_moments.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photo.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photo_store.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photo_stores.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_fetch_moment_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_fetch_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_get_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_get_photos_by_md5s.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_get_similar_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_list_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_list_time_line_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_list_time_lines.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_search_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_quota.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_registered_tag.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_registered_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_activate_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_add_album_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_delete_albums.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_delete_faces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_delete_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_edit_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_fetch_album_tag_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_get_download_urls.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_get_framed_photo_urls.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_get_private_access_urls.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_get_public_access_urls.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_get_thumbnails.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_inactivate_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_list_album_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_list_face_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_list_moment_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_list_tag_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_merge_faces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_move_album_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_move_face_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_reactivate_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_remove_album_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_remove_face_photos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_tag.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_tag_value.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_tag_values.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_tags_in_list_photo_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_tags_in_list_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_time_line.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_time_lines.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_transaction.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_upload.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/tag_photo.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/toggle_features.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/access_key_get.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/add_my_group_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/apply_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/create_alarm.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/create_my_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/create_notify_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/create_task.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_alarm.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_custom_metric.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_event_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_event_targets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_group_dynamic_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_my_group_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_my_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_notify_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_tasks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_alarm_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_alarms.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_alarms_for_resources.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_contact.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_event_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_isp_area_city.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_task_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_tasks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/disable_active_alert.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/disable_alarm.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/disable_event_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/enable_active_alert.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/enable_alarm.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/enable_event_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/get_contacts.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/get_my_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/get_notify_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_active_alert_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_alarm.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_alarm_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_contact_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_event_rules.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_event_targets_by_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_group_dynamic_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_my_group_categories.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_my_group_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_my_group_instances_details.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_my_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_notify_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_product_of_active_alert.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/modify_task.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_install.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_process_create.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_process_delete.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_processes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_status_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_uninstall.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/profile_get.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/profile_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_custom_metric.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_event.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_event_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_event_targets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_group_dynamic_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_metric_alarm.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_custom_event_count.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_custom_event_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_custom_event_histogram.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_custom_metric_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_metric_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_metric_last.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_metric_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_metric_top.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_system_event_count.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_system_event_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_system_event_histogram.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/send_dry_run_system_event.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/start_tasks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/stop_tasks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_history_in_describe_alarm_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_history_list_in_describe_alarm_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_history_list_in_list_alarm_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_in_list_active_alert_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_in_list_alarm.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alert_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_category.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_category_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_category_items.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_channel.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_channels.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_alii_ms.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_groups_in_delete_my_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_groups_in_describe_alarm_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_groups_in_get_my_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_groups_in_list_contact_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_groups_in_list_my_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_mails.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_parameter.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_parameter_in_put_event_targets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_parameters_in_list_event_targets_by_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_parameters_in_put_event_targets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_smses.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contacts_in_describe_alarm_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contacts_in_get_contacts.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_create_alert_results.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_datapoints.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_datapoints_in_describe_alarms.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_datapoints_in_describe_alarms_for_resources.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_datapoints_in_list_active_alert_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_datapoints_in_list_event_rules.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_event_pattern.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_event_pattern_in_list_event_rules.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_event_pattern_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_event_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_failed_contact_parameters.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_failed_fc_parameters.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_failed_mns_parameters.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_fc_parameter.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_fc_parameter_in_put_event_targets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_fc_parameters_in_list_event_targets_by_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_fc_parameters_in_put_event_targets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_filter.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_filters.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_group_in_delete_my_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_instance_list_in_task_config_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_instance_list_in_task_config_unhealthy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_level_list_in_describe_event_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_level_list_in_list_event_rules.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_mns_parameter.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_mns_parameter_in_put_event_targets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_mns_parameters_in_list_event_targets_by_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_mns_parameters_in_put_event_targets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_name_list_in_describe_event_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_name_list_in_list_event_rules.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_process.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_processes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_status_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_task_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_task_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_nodes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_notify_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_notify_policy_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_region.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resource.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resource_in_list_group_dynamic_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resource_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resources_in_list_my_group_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resources_in_list_my_group_instances_details.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resources_in_list_my_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_status_list_in_describe_event_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_status_list_in_list_event_rules.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_tag.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_task_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_unhealthy_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_vpc.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_create.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_delete.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_enable.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_modify.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_unhealthy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/update_alarm.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/update_my_group_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/update_my_group_members.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/update_my_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/add_agility_cluster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/attach_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/call_back_agility_cluster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/callback_cluster_token.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/check_aliyun_cs_service_role.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/create_cluster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/create_cluster_token.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/create_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/delete_cluster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/delete_cluster_node.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_agility_tunnel_agent_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_agility_tunnel_certs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_api_version.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_certs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_hosts.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_logs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_node_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_node_info_with_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_nodes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_scaled_node.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_services.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_tokens.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_clusters.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_images.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_kubernetes_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_kubernetes_templates.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_service_containers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_task_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_template_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_templates.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_user_containers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/download_cluster_node_certs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/gather_logs_token.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/get_cluster_projects.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/get_project_events.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/get_trigger_hook.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/modify_cluster_name.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/reset_cluster_node.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/revoke_cluster_token.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/scale_cluster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/scale_in_cluster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/update_sub_user_resouces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/upgrade_cluster_components.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/approve_order_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/check_service_exist.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/commit_successed_services.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/create_credentials.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/create_order.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/create_project.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/create_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_cas_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_credentials_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_order_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_project.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_project_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_service_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_union_cas_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_approval_order_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_approve_service_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_credentials_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_instance_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_orderable_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_ordered_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_project_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_projects_name_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_service_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/get_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/get_order.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/get_project.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/get_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/publish_cas_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/publish_union_cas_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/renew_credentials.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/replace_credential.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_cas_serv_targets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_consume_types.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_credential.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_credential_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_credentials.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_current_credential.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_error_type_catagory.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_error_type_catagory_in_find_ordered_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_error_type_catagory_list_in_find_ordered_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_error_type_catagory_list_in_get_order.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_import_conf.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_import_confs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_input_parameter.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_input_parameter_map_in_get_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_item_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_new_credential.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_order.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_order_in_find_ordered_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_order_list_in_find_approval_order_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_order_list_in_find_ordered_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_orders.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_output_parameter.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_output_parameter_map_in_get_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_project.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_project_list_in_find_project_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_project_list_in_get_project.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_project_name_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_route_conf.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_in_find_orderable_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_in_get_order.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_list_in_find_approve_service_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_list_in_find_orderable_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_list_in_find_service_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_version.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_versions_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_sla_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_sla_info_in_find_approval_order_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_strict_white_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_total.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_visiable_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_visiable_group_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_order.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_order_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_project.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_project_list_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_service_list_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_service_qps.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/add_dcdn_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/batch_delete_dcdn_domain_configs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/delete_dcdn_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_certificate_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_certificate_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_bps_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_cname.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_configs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_hit_rate_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_http_code_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_log.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_origin_bps_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_origin_traffic_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_qps_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_traffic_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_refresh_quota.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_refresh_tasks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_user_domains.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_user_resource_package.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_user_dcdn_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/preload_dcdn_object_caches.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/refresh_dcdn_object_caches.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/set_dcdn_domain_certificate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/start_dcdn_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/stop_dcdn_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_bps_data_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_cert.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_cert_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_certificate_list_model.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_cname_datas.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_data_module.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_data_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domain_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domain_configs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domain_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domain_log_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domain_log_details.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domains.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_function_arg.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_function_args.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_hit_rate_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_http_code_data_module.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_http_code_data_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_lock_reason.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_log_info_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_log_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_operation_locks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_origin_bps_data_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_origin_traffic_data_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_page_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_page_info_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_page_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_qps_data_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_resource_package_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_resource_package_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_source.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_sources_in_describe_dcdn_domain_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_sources_in_describe_dcdn_user_domains.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_task.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_tasks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_traffic_data_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/update_dcdn_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/create_blockhole.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/create_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/create_web_log_download_task.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/delete_black_hole.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/delete_blockhole.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/delete_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/delete_domain_transmit_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_back_source_cidr.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_cc_mode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_cname_auto_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_ddos_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_domain_black_white_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_domain_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_domain_qps.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_flow_blockhole_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_instance_page.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_ip_attack_event.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_ip_traffic.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_oplog.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_un_blackhole_count.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_un_blockhole_count.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_web_log_download_file_page.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_web_log_page.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/list_domain_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/modify_cc_mode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/modify_cname_auto_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/modify_domain_black_white_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/modify_domain_proxy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/modify_domain_transmit_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_attack_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_attacks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_bps_drop.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_bps_total.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_cidr_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_config_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_data_in_describe_cc_mode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_data_in_describe_ddos_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_data_in_describe_flow_blockhole_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_file.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_file_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_instance_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_instance_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_instances_in_describe_domain_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_instances_in_list_domain_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_ip_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_ip_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_oplog_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_page_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_pps_drop.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_pps_total.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_proxy_type_list_in_describe_domain_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_proxy_type_list_in_list_domain_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_real_servers_in_describe_domain_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_real_servers_in_list_domain_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_rules_in_describe_domain_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_rules_in_list_domain_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_time_scope.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_total.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_web_log.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_web_log_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/upload_certificate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/add_ipfilter.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/approve_mail_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/approve_reply_mail_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/approve_sms_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/approve_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/batch_send_mail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/check_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/check_invalid_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/check_reply_to_mail_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_dayu.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_mail_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_receiver.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_sign.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_tag.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_invalid_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_ipfilter_by_edm_id.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_mail_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_receiver.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_receiver_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_sign.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_tag.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/desc_account_summary.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/desc_account_summary2.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/desc_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/desc_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/enable_account.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_account_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_ip_protection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_ipfilter_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_region_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_sender_address_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_track_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/migrate_market.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/modify_account_notification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/modify_mail_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/modify_sender_address_notification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/modify_tag.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/modify_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_domain_by_param.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_invalid_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_mail_address_by_param.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_receiver_by_param.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_receiver_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_sign_by_param.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_sms_statistics.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_tag_by_param.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_task_by_param.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_template_by_param.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/save_receiver_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/send_test_by_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/sender_statistics_by_tag_name_and_batch_id.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/sender_statistics_detail_by_param.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/set_max_quota_level.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/single_send_mail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/single_send_sms.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_account_notification_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_get_account_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_get_ipfilter_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_get_region_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_get_sender_address_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_get_track_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_domain_by_param.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_invalid_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_mail_address_by_param.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_receiver_by_param.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_receiver_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_sign_by_param.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_sms_statistics.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_tag_by_param.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_task_by_param.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_template_by_param.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_save_receiver_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_sender_statistics_by_tag_name_and_batch_id.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_sender_statistics_detail_by_param.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_ipfilters.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_mail_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_mail_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_mail_detail_in_query_invalid_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_receiver.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_region_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_sender_address_notification_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_sign.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_stat.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_tag.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_task.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/update_domain_track_name.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/update_ip_protection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/acknowledge_task_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/check_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/check_transfer_in_feasibility.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/confirm_transfer_in_email.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/delete_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/delete_registrant_profile.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/email_verified.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/list_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/poll_task_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_change_log_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_contact_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_dns_host.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_domain_by_instance_id.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_domain_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_registrant_profiles.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_task_detail_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_task_detail_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_task_info_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_task_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_transfer_in_by_instance_id.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_transfer_in_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_transfer_out_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/resend_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_creating_order_activate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_creating_order_redeem.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_creating_order_renew.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_creating_order_transfer.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_domain_name_proxy_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_modifying_domain_dns.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_transfer_prohibition_lock.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_update_prohibition_lock.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_updating_contact_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_updating_contact_info_by_new_contact.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_registrant_profile.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_approving_transfer_out.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_canceling_transfer_in.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_canceling_transfer_out.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_creating_dns_host.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_creating_order_activate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_creating_order_redeem.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_creating_order_renew.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_creating_order_transfer.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_domain_name_proxy_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_modifying_dns_host.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_querying_transfer_authorization_code.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_synchronizing_dns_host.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_transfer_prohibition_lock.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_update_prohibition_lock.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_updating_contact_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_task_for_submitting_domain_delete.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_change_log.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_current_page_cursor.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_list_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_poll_task_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_query_change_log_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_query_domain_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_query_task_detail_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_query_task_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_query_transfer_in_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_dns_host.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_dns_host_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_dns_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_exist_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_fail_list_in_confirm_transfer_in_email.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_fail_list_in_delete_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_fail_list_in_resend_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_fail_list_in_submit_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_fail_list_in_transfer_in_check_mail_token.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_ip_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_next_page_cursor.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_objects_in_query_task_detail_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_objects_in_query_task_info_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_pre_page_cursor.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_registrant_profile.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_registrant_profiles.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_send_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_success_list_in_confirm_transfer_in_email.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_success_list_in_delete_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_success_list_in_resend_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_success_list_in_submit_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_success_list_in_transfer_in_check_mail_token.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_task_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_task_detail_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_task_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_task_info_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_transfer_in_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/submit_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/transfer_in_check_mail_token.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/transfer_in_reenter_transfer_authorization_code.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/transfer_in_refetch_whois_email.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/transfer_in_resend_mail_token.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/verify_contact_field.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/verify_email.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/accept_demand.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/acknowledge_task_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/bid_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/cancel_domain_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/check_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/check_transfer_in_feasibility.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/confirm_transfer_in_email.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/delete_domain_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/delete_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/delete_registrant_profile.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/email_verified.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/fail_demand.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/finish_demand.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/get_reserve_domain_url.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/list_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/poll_task_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_advanced_domain_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_auction_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_auctions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_bid_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_booking_domain_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_broker_demand.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_broker_demand_record.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_change_log_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_contact_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_dns_host.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_domain_by_instance_id.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_domain_group_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_domain_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_domain_real_name_verification_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_domain_suffix.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_fail_reason_for_domain_real_name_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_fail_reason_for_registrant_profile_real_name_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_registrant_profile_real_name_verification_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_registrant_profiles.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_task_detail_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_task_detail_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_task_info_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_task_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_transfer_in_by_instance_id.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_transfer_in_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_transfer_out_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/record_demand.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/refuse_demand.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/registrant_profile_real_name_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/request_pay_demand.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/resend_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/reserve_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_domain_remark.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_creating_order_activate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_creating_order_redeem.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_creating_order_renew.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_creating_order_transfer.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_domain_name_proxy_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_modifying_domain_dns.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_transfer_prohibition_lock.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_update_prohibition_lock.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_updating_contact_info_by_new_contact.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_updating_contact_info_by_registrant_profile_id.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_domain_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_registrant_profile.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_approving_transfer_out.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_canceling_transfer_in.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_canceling_transfer_out.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_creating_dns_host.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_creating_order_activate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_creating_order_redeem.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_creating_order_renew.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_creating_order_transfer.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_deleting_dns_host.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_domain_name_proxy_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_modifying_dns_host.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_querying_transfer_authorization_code.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_synchronizing_dns_host.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_transfer_prohibition_lock.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_update_prohibition_lock.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_updating_contact_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_task_for_submitting_domain_delete.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_task_for_submitting_domain_real_name_verification_by_identity_credential.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_task_for_submitting_domain_real_name_verification_by_registrant_profile_id.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_task_for_updating_registrant_info_by_identity_credential.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_task_for_updating_registrant_info_by_registrant_profile_id.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_auction_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_bid_record.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_broker_demand_record.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_change_log.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_current_page_cursor.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_list_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_poll_task_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_advanced_domain_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_auctions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_bid_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_broker_demand.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_broker_demand_record.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_change_log_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_domain_group_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_domain_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_fail_reason_for_domain_real_name_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_fail_reason_for_registrant_profile_real_name_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_task_detail_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_task_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_transfer_in_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_demand.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_dns_host.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_dns_host_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_dns_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_domain_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_exist_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_list_in_confirm_transfer_in_email.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_list_in_delete_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_list_in_resend_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_list_in_submit_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_list_in_transfer_in_check_mail_token.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_record.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_ip_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_next_page_cursor.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_objects_in_query_task_detail_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_objects_in_query_task_info_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_pre_page_cursor.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_registrant_profile.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_registrant_profiles.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_send_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_success_list_in_confirm_transfer_in_email.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_success_list_in_delete_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_success_list_in_resend_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_success_list_in_submit_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_success_list_in_transfer_in_check_mail_token.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_suffix_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_task_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_task_detail_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_task_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_task_info_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_transfer_in_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/submit_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/transfer_in_check_mail_token.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/transfer_in_reenter_transfer_authorization_code.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/transfer_in_refetch_whois_email.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/transfer_in_resend_mail_token.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/update_domain_to_domain_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/verify_contact_field.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/verify_email.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/check_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/delete_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/delete_registrant_profile.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/email_verified.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/list_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_change_log_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_contact_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_dns_host.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_domain_by_instance_id.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_domain_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_registrant_profiles.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_task_detail_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_task_detail_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_task_info_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_task_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/resend_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_creating_order_activate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_creating_order_redeem.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_creating_order_renew.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_domain_name_proxy_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_modifying_domain_dns.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_transfer_prohibition_lock.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_update_prohibition_lock.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_updating_contact_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_registrant_profile.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_creating_dns_host.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_creating_order_activate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_creating_order_redeem.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_creating_order_renew.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_domain_name_proxy_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_modifying_dns_host.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_synchronizing_dns_host.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_transfer_prohibition_lock.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_update_prohibition_lock.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_updating_contact_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_change_log.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_current_page_cursor.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_data_in_list_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_data_in_query_change_log_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_data_in_query_domain_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_data_in_query_task_detail_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_data_in_query_task_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_dns_host.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_dns_host_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_dns_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_exist_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_fail_list_in_delete_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_fail_list_in_resend_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_fail_list_in_submit_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_ip_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_next_page_cursor.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_objects_in_query_task_detail_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_objects_in_query_task_info_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_pre_page_cursor.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_registrant_profile.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_registrant_profiles.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_send_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_success_list_in_delete_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_success_list_in_resend_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_success_list_in_submit_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_task_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_task_detail_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_task_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_task_info_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/submit_email_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/verify_email.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/create_drds_account.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/create_drds_db.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/create_drds_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/create_read_only_account.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/delete_drds_db.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/delete_failed_drds_db.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_create_drds_instance_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_d_bs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_db.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_db_ip_white_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_instance_net_info_for_inner.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_rds_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_read_only_account.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_shard_d_bs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_shard_db_connection_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_drds_db_passwd.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_drds_instance_description.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_drds_ip_white_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_full_table_scan.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_rds_read_weight.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_read_only_account_password.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/query_instance_info_by_conn.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/remove_drds_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/remove_read_only_account.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_child.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_connection_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data_in_describe_drds_d_bs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data_in_describe_drds_db.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data_in_describe_drds_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data_in_describe_rds_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data_in_describe_shard_d_bs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_db.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_db_intance_pair.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_drds_instance_id_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_drds_region.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_drds_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_instance_series.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_instance_series_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_ip_white_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_net_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_net_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_rds_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_read_only_children.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_spec.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_spec_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_vip.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_vips_in_describe_drds_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_vips_in_describe_drds_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_vips_in_query_instance_info_by_conn.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/cancel_call.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/click_to_dial.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/ivr_call.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/query_call_detail_by_call_id.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/single_call_by_tts.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/single_call_by_voice.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/smart_call.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/voip_add_account.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/voip_get_token.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/activate_router_interface.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_bandwidth_package_ips.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_ip_range.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_eip_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_public_ip_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/apply_auto_snapshot_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/assign_private_ip_addresses.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_eip_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_ha_vip.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_classic_link_vpc.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_disk.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_instance_ram_role.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_key_pair.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_network_interface.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group_egress.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/bind_ip_range.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_agreement.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_auto_snapshot_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_copy_image.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_physical_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_task.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/check_auto_snapshot_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/check_disk_enable_auto_snapshot_validation.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/connect_router_interface.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/convert_nat_public_ip_to_eip.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/copy_image.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_auto_snapshot_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_command.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_deployment_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_disk.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_forward_entry.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_ha_vip.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_hpc_cluster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_key_pair.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template_version.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_nat_gateway.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface_permission.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_physical_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_route_entry.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_router_interface.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_security_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_snapshot.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_v_switch.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_virtual_border_router.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_vpc.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/deactivate_router_interface.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_auto_snapshot_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_bandwidth_package.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_command.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_deployment_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_disk.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_forward_entry.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_ha_vip.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_hpc_cluster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_key_pairs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template_version.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_nat_gateway.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface_permission.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_physical_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_recycle_bin.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_route_entry.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_router_interface.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_security_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_snapshot.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_v_switch.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_virtual_border_router.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_vpc.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_access_points.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_snapshot_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_snapshot_policy_ex.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_available_resource.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_limitation.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_packages.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_classic_link_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_cloud_assistant_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_clusters.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_commands.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_set_topology.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_sets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disk_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks_full_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_addresses.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_event_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_forward_table_entries.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_ha_vips.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_hpc_clusters.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_share_permission.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_support_instance_types.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_images.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_auto_renew_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_history_events.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_physical_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_ram_role.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_type_families.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_types.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_vnc_passwd.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_vnc_url.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances_full_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_intranet_attribute_kb.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocation_results.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocations.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_ip_ranges.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_key_pairs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_template_versions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_templates.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_limitation.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_nat_gateways.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interface_permissions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interfaces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_new_project_eip_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_physical_connections.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_price.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_recommend_instance_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_recycle_bin.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_renewal_price.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resource_by_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resources_modification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_route_tables.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_router_interfaces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_references.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_links.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_package.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots_usage.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_spot_price_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tag_keys.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_task_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tasks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_business_behavior.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_routers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_switches.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers_for_physical_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_vpcs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_zones.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_classic_link_vpc.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_disk.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_instance_ram_role.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_key_pair.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_network_interface.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_fill_params.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_fill_product.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_notify_paid.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/enable_physical_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/export_image.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_console_output.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_screenshot.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_image.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_key_pair.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/install_cloud_assistant.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/invoke_command.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_resource_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_security_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/leave_security_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_snapshot_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_snapshot_policy_ex.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_bandwidth_package_spec.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_command.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_deployment_set_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_charge_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_eip_address_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_forward_entry.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_ha_vip_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_hpc_cluster_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_group_permission.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_permission.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_release_time.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_renew_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_charge_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_network_spec.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_spec.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vnc_passwd.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vpc_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_intranet_bandwidth_kb.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_launch_template_default_version.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_network_interface_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_physical_connection_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_prepay_instance_spec.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_spec.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_egress_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_user_business_behavior.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_router_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_switch_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_virtual_border_router_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_vpc_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_activate_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_init_disk.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reboot_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/recover_virtual_border_router.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_eip_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_public_ip_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_bandwidth_package_ips.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/replace_system_disk.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disk.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/resize_disk.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group_egress.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/run_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/sign_agreement.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_invocation.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_access_point_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_access_point_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_account.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_accounts.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_eip_addresses.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_public_ip.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attach_instance_ram_role_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attach_instance_ram_role_results.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_excution_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_policies.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_dedicated_host_types.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_disk_categories.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_types.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resource.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resource_creation.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_available_resource.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_resources_modification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_zones.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_volume_categories.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zone.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zones_in_describe_available_resource.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zones_in_describe_resources_modification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package_ids_in_create_nat_gateway.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package_ids_in_describe_nat_gateways.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_packages.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidths.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_cluster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_clusters.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_command.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_commands.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disk.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disk_categories.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_point.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_generations.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_deployment_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_deployment_sets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detach_instance_ram_role_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detach_instance_ram_role_results.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mapping.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_event_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_event_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_full_status_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_full_status_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address_in_describe_eip_addresses.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_addresses.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_datas_in_describe_eip_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_datas_in_describe_new_project_eip_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_event_cycle_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_event_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_entries.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_entry.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_ids_in_create_nat_gateway.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_ids_in_describe_nat_gateways.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ha_vip.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ha_vips.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_health_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_host.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hosts_in_describe_deployment_set_topology.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hpc_cluster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hpc_clusters.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_images.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inner_ip_address_in_describe_instance_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inner_ip_address_in_describe_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_cloud_assistant_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_cloud_assistant_status_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_full_status_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_full_status_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_generations.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_id_sets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ids_in_describe_deployment_set_topology.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_sets_in_describe_instance_ram_role.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_sets_in_detach_instance_ram_role.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_renew_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_renew_attributes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_statuses.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_system_event_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_system_event_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_tag.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_families_in_describe_instance_type_families.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_families_in_describe_zones.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_family.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_image_support_instance_types.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_instance_types.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_zones.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation_results.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocations.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ip_range.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ip_ranges.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_key_pair.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_key_pairs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_sets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_sets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_link.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_links.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_lock_reason.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_disk_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_instance_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_snapshot_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_mount_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_mount_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_nat_gateway.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_nat_gateways.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_permission.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_permissions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_sets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interfaces_in_describe_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interfaces_in_describe_launch_template_versions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_types_in_describe_recommend_instance_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_types_in_describe_zones.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_next_hop.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_next_hops.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_lock.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_disks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_eip_addresses.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_instance_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_permission.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_permissions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_physical_connection_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_physical_connection_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_address_in_describe_instance_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_address_in_describe_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_address_in_describe_instance_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_address_in_describe_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_addresse.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_addresses.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rack.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_racks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rdma_ip_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recommend_instance_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recycle_bin_model.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recycle_bin_models.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referencing_security_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referencing_security_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_region.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_relation_resource.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_relation_resources.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource_type_count.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resources.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resources_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_results_in_attach_key_pair.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_results_in_detach_key_pair.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_entry.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_entrys.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_table.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_table_ids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_tables.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_router_interface_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_router_interface_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_price.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_renewal_price.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_scheduled_system_event_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_scheduled_system_event_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_instance_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_network_interfaces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_reference.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_references.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_share_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_share_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_link.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_links.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_package.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_packages.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshots.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_price_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_prices.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resource.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resources_in_describe_available_resource.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resources_in_describe_resources_modification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_switch.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_switchs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_system_disk_categories.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag_keys.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_disks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_images.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_launch_template_versions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_security_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_snapshots.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_task.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_task_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_triggered_group_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_user_cidrs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_router.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_routers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switch.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switch_ids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switches.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_for_physical_connection_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_for_physical_connection_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc_attributes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpcs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zone.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zones_in_describe_recommend_instance_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zones_in_describe_zones.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_physical_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_virtual_border_router.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassign_private_ip_addresses.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_eip_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_ha_vip.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unbind_ip_range.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/validate_security_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/add_container_app.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/add_nodes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/add_users.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/create_cluster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/create_hybrid_cluster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/create_job_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_cluster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_container_apps.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_job_templates.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_nodes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_users.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/describe_auto_scale_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/describe_cluster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/describe_container_app.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/edit_job_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/get_auto_scale_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/get_hybrid_cluster_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/invoke_shell_command.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_cluster_logs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_clusters.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_commands.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_container_apps.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_container_images.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_current_client_version.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_custom_images.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_images.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_invocation_results.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_invocation_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_job_templates.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_nodes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_nodes_no_paging.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_preferred_ecs_types.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_softwares.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_users.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_volumes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/modify_cluster_attributes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/modify_container_app_attributes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/modify_user_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/modify_user_passwords.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/pull_image.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/recover_cluster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/rerun_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/reset_nodes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/set_auto_scale_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/set_job_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/start_cluster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/start_nodes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/stop_cluster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/stop_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/stop_nodes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_application_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_applications_in_describe_cluster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_applications_in_list_softwares.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_base_os_tag.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_cluster_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_cluster_info_simple.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_clusters.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_command.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_commands.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_compute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_compute_in_list_preferred_ecs_types.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_computes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_container_app_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_container_apps.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_container_apps_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_container_id.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_ecs_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_image_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_images_in_list_container_images.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_images_in_list_custom_images.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_images_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_instance_ids_in_add_nodes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_instance_ids_in_invoke_shell_command.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_invocation_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_invocation_results.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_invoke_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_invoke_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_job_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_job_templates.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_log_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_login.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_login_in_list_preferred_ecs_types.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_logs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_manager.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_manager_in_list_preferred_ecs_types.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_managers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_node_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_nodes_in_list_nodes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_nodes_in_list_nodes_no_paging.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_os_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_os_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_region_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_resources.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_roles.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_roles_in_list_nodes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_roles_in_list_nodes_no_paging.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_series.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_series_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_software_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_softwares.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_templates.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_total_resources.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_used_resources.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_user_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_users.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_volume_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_volumes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/submit_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/upgrade_client.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/attach_db_instances.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/attach_instances.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/attach_load_balancers.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/client.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/complete_lifecycle_action.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_lifecycle_hook.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_notification_configuration.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_scaling_configuration.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_scaling_group.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_scaling_rule.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_scheduled_task.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/deactivate_scaling_configuration.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_lifecycle_hook.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_notification_configuration.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_scaling_configuration.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_scaling_group.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_scaling_rule.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_scheduled_task.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_account_attributes.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_alert_config.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_capacity_history.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_lifecycle_hooks.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_limitation.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_notification_configurations.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_notification_types.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_regions.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_activities.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_activity_detail.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_configurations.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_groups.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_instances.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_rules.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scheduled_tasks.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/detach_db_instances.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/detach_instances.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/detach_load_balancers.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/disable_scaling_group.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/enable_scaling_group.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/enter_standby.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/execute_scaling_rule.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/exit_standby.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_alert_config.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_lifecycle_hook.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_notification_configuration.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_scaling_configuration.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_scaling_group.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_scaling_rule.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_scheduled_task.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/rebalance_instances.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/record_lifecycle_action_heartbeat.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/remove_instances.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/set_instances_protection.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_capacity_history_items.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_capacity_history_model.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_data_disk.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_data_disks.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_db_instance_ids.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_instance_types.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_lifecycle_hook.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_lifecycle_hooks.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_load_balancer_ids.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_notification_configuration_model.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_notification_configuration_models.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_notification_types_in_describe_notification_configurations.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_notification_types_in_describe_notification_types.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_region.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_regions.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_removal_policies.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_activities.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_activity.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_configuration.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_configurations.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_group.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_groups.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_instance.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_instances.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_rule.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_rules.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scheduled_task.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scheduled_tasks.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_spot_price_limit.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_spot_price_model.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_tag.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_tags.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_v_switch_ids.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/verify_authentication.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/verify_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/add_faces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/add_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/add_person.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/add_similarity_image.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/delete_faces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/delete_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/delete_person.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/delete_similarity_image.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/file_async_scan.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/file_async_scan_results.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/get_faces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/get_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/get_person.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/get_persons.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/image_async_scan.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/image_async_scan_results.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/image_scan_feedback.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/image_sync_scan.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/search_person.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/set_person.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/text_feedback.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/text_scan.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/video_async_scan.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/video_async_scan_results.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/video_feedback.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/video_sync_scan.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/voice_async_scan.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/voice_async_scan_results.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/config_network.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/config_white_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/create_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/describe_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/describe_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/modify_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/release_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/renew_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_instance_ids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_region.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_white_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_zone.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_zones.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis-public/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis-public/describe_phone_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/create_access_white_list_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/create_cpmc_punish_feed_back.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/create_uid_white_list_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/delete_access_white_list_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/delete_uid_white_list_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_access_white_list_eip_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_access_white_list_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_access_white_list_slb_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_access_whitelist_ecs_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_cpmc_punish_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_ddos_defense_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_phone_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_punish_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_reset_record_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_reset_record_query_count.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_risk_list_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_risk_trend.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_uid_gc_level.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_uid_white_list_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/modify_access_white_list_auto_share.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/modify_uid_white_list_auto_share.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_access_white_list_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_cpmc_punish_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_punish_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_reset_record_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_risk_list_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_risk_trend.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_uid_white_list_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ddos_defense_threshold.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ddos_defense_threshold_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs_list_in_describe_access_white_list_eip_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs_list_in_describe_access_white_list_slb_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs_list_in_describe_access_whitelist_ecs_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs_sec_group_risk.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs_sec_group_risk_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_instance_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_items_in_describe_access_white_list_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_items_in_describe_uid_white_list_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_page_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_product_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_rds_whitelist_risk.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_rds_whitelist_risk_item.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/cancel_key_deletion.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/client.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/create_alias.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/create_key.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/decrypt.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/delete_alias.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/delete_key_material.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/describe_key.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/describe_regions.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/disable_key.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/enable_key.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/encrypt.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/generate_data_key.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/get_parameters_for_import.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/import_key_material.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/list_aliases.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/list_aliases_by_key_id.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/list_keys.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/schedule_key_deletion.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_alias.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_aliases_in_list_aliases.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_aliases_in_list_aliases_by_key_id.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_key.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_key_metadata.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_keys.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_region.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_regions.go create mode 100755 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/update_alias.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_component.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_episode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_episode_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_episode_group_content.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_layout.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_program.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_video_resource.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_custom_live_stream_transcode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_app_record_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_app_snapshot_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_detect_notify_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_mix_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_mix_notify_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_pull_stream_info_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_record_notify_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_record_vod_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_snapshot_detect_porn_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_stream_transcode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_multiple_stream_mix_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_trancode_sei.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/copy_caster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/copy_caster_scene_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/create_caster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/create_live_stream_record_index_files.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_component.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_episode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_episode_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_layout.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_program.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_scene_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_video_resource.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_app_record_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_app_snapshot_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_detect_notify_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_mix_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_mix_notify_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_pull_stream_info_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_record_notify_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_record_vod_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_snapshot_detect_porn_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_stream_transcode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_streams_notify_url_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_components.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_layouts.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_program.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_rtc_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_scenes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_stream_url.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_video_resources.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_casters.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_detect_notify_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_domain_record_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_domain_snapshot_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_domain_transcode_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_mix_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_mix_notify_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_pull_stream_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_record_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_record_notify_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_record_vod_configs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_snapshot_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_snapshot_detect_porn_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_bit_rate_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_history_user_num.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_online_user_num.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_record_content.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_record_index_file.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_record_index_files.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_snapshot_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_transcode_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_block_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_control_history.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_frame_rate_and_bit_rate_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_notify_url_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_online_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_publish_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/effect_caster_urgent.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/effect_caster_video_resource.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/forbid_live_stream.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/image_porn_detection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/modify_caster_component.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/modify_caster_episode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/modify_caster_layout.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/modify_caster_program.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/modify_caster_video_resource.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/real_time_record_command.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/remove_multiple_stream_mix_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/resume_live_stream.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/set_caster_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/set_caster_scene_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/set_live_streams_notify_url_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/start_caster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/start_caster_scene.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/start_mix_streams_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/start_multiple_stream_mix_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/stop_caster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/stop_caster_scene.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/stop_mix_streams_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/stop_multiple_stream_mix_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_audio_layer.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_audio_layers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_blend_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_caption_layer_content.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_caster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_caster_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_caster_stream.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_caster_streams.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_component.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_component_ids_in_describe_caster_program.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_component_ids_in_describe_caster_scenes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_component_layer.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_components.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_control_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_custom_transcode_parameters.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_domain_transcode_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_domain_transcode_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_episode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_episode_id.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_episode_ids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_episodes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_frame_rate_and_bit_rate_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_frame_rate_and_bit_rate_infos_in_describe_live_stream_bit_rate_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_frame_rate_and_bit_rate_infos_in_describe_live_streams_frame_rate_and_bit_rate_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_image_layer_content.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_item_ids_in_add_caster_episode_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_item_ids_in_add_caster_episode_group_content.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_layout.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_layouts.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_app_record.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_app_record_list_in_describe_live_pull_stream_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_app_record_list_in_describe_live_record_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_detect_notify_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_record_notify_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_record_vod_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_record_vod_configs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_snapshot_detect_porn_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_snapshot_detect_porn_config_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_control_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_online_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_online_user_num_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_publish_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_snapshot_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_snapshot_config_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_snapshot_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_snapshot_info_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_user_num_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_user_num_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_streams_notify_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_template_ids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_config_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_streams_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_streams_info_list_in_start_mix_streams_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_streams_info_list_in_stop_mix_streams_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_online_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_online_user_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_pgm_scene_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_position_normalizeds_in_describe_caster_components.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_position_normalizeds_in_describe_caster_layouts.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_publish_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_pvw_scene_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_content_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_content_info_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_data_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_data_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_format.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_format_in_describe_caster_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_format_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_format_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_index_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_index_info_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_scene.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_scene_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_scene_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_scenes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_snapshot_data_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_snapshot_data_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_stream_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_stream_infos_in_describe_caster_scenes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_stream_infos_in_describe_caster_stream_url.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_stream_infos_in_start_caster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_stream_urls.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_text_layer_content.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_transcode_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_transcode_data_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_transcode_data_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_video_layer.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_video_layers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_video_resource.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_video_resources.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_caster_scene_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_live_app_snapshot_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_live_detect_notify_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_live_mix_notify_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_live_record_notify_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_live_snapshot_detect_porn_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/activate_media_workflow.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_asr_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_category.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_censor_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_cover_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_media.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_media_tag.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_media_workflow.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_porn_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_terrorism_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_water_mark_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/bind_input_bucket.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/bind_output_bucket.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/cancel_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/category_tree.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/create_session.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/deactivate_media_workflow.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/decrypt_key.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_category.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_media.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_media_tag.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_media_workflow.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_water_mark_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/get_license.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/get_package.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_all_category.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_all_media_bucket.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_asr_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_censor_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_cover_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_media.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_media_workflow_executions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_porn_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_terrorism_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/play_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/player_auth.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_analysis_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_annotation_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_asr_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_asr_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_auth_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_censor_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_censor_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_cover_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_cover_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_editing_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_facerecog_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_fp_shot_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_detail_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_info_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_list_by_url.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_workflow_execution_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_workflow_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_porn_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_porn_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_snapshot_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_tag_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_template_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_terrorism_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_terrorism_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_video_gif_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_video_split_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_video_summary_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_water_mark_template_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/refresh_cdn_domain_configs_cache.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/register_media_detail_person.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/register_media_detail_scenario.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_annotation_job_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_censor_job_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_cover_job_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_facerecog_job_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_fp_shot_job_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_media_detail_job_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_porn_job_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_tag_job_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_terrorism_job_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_video_split_job_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/search_media.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/search_media_workflow.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/search_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/search_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/search_water_mark_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/set_auth_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_activity.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_activity_list_in_list_media_workflow_executions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_activity_list_in_query_media_workflow_execution_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_analysis_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_analysis_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_analysis_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_annotation.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_annotation_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_annotation_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_annotations.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_asr_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_asr_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_asr_text.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_asr_text_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_list_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_query_editing_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_query_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_query_media_info_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_query_media_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_query_media_list_by_url.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_submit_editing_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_submit_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_submit_media_info_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_bitrate_bnd.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_category.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_category_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_celebrities.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_celebrity.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_censor_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_censor_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_censor_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_censor_porn_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_censor_terrorism_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clip.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clip_list_in_query_editing_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clip_list_in_submit_editing_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clips_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clips_config_video.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clips_in_query_editing_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clips_in_submit_editing_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_container.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_counter.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_cover_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_cover_image.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_cover_image_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_cover_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_cover_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_crop.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_digi_water_mark.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_duplication.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_editing.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_editing_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_editing_input.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_editing_inputs_in_query_editing_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_editing_inputs_in_submit_editing_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_effect.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_effects_in_query_editing_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_effects_in_submit_editing_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_encryption.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle_list_in_list_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle_list_in_query_editing_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle_list_in_query_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle_list_in_submit_editing_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle_list_in_submit_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_face.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_facerecog.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_facerecog_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_facerecog_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_facerecogs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_faces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_failed_domains.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_failed_image.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_failed_images.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_file.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_format.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot_slice.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot_slices.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shots.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_frame_tag_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_frame_tag_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_frame_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_gif.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_image_file.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_input.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_input_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_input_file.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_list_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_asr_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_editing_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_media_detail_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_video_gif_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_video_split_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_video_summary_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_result_list_in_submit_editing_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_result_list_in_submit_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_m3_u8_non_standard_support.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_bucket.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_bucket_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_detail_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_detail_recg_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_detail_recg_results.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_detail_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_info_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_info_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_list_in_list_media.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_list_in_query_media_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_list_in_query_media_list_by_url.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_list_in_search_media.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow_execution.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow_execution_list_in_list_media_workflow_executions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow_execution_list_in_query_media_workflow_execution_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow_list_in_query_media_workflow_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow_list_in_search_media_workflow.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge_list_in_list_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge_list_in_query_editing_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge_list_in_query_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge_list_in_submit_editing_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge_list_in_submit_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_mns_message_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_mux_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_network_cost.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_analysis_job_ids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_file_ur_ls.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_annotation_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_asr_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_asr_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_censor_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_censor_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_cover_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_cover_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_facerecog_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_fp_shot_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_media_detail_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_porn_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_porn_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_tag_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_terrorism_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_terrorism_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_video_gif_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_video_split_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_video_summary_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_job_ids_in_query_editing_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_job_ids_in_query_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_media_ids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_media_info_job_ids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_media_workflow_ids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_pids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_run_ids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_snapshot_job_ids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_tids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_wids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_not_found_cdn_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_notify_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_opening.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_opening_list_in_list_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_opening_list_in_query_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_opening_list_in_submit_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_out_subtitle.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_out_subtitle_file.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_out_subtitle_list_in_list_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_out_subtitle_list_in_query_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_out_subtitle_list_in_submit_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_output.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_output_file.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_add_cover_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_list_asr_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_list_censor_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_list_cover_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_list_porn_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_list_terrorism_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_query_asr_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_query_censor_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_query_cover_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_query_porn_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_query_terrorism_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_list_asr_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_list_censor_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_list_cover_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_list_porn_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_list_terrorism_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_asr_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_censor_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_cover_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_porn_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_terrorism_pipeline_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_search_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_play.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_play_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_play_info_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_play_list_in_query_media_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_play_list_in_query_media_list_by_url.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_politician.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_politicians.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_counter_list_in_query_censor_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_counter_list_in_query_porn_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_top_list_in_query_censor_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_top_list_in_query_porn_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_properties.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_properties_control.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_quality_control.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ratio_refer.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_registered_personage.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_registered_personages.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_add_media.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_list_media.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_query_media_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_query_media_list_by_url.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_search_media.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_update_media.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_segment.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_sensitive.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_sensitives.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot_list_in_query_media_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot_list_in_query_media_list_by_url.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_source_logo.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_source_logos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_streams.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_list_in_list_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_list_in_query_editing_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_list_in_query_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_list_in_submit_editing_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_list_in_submit_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_list_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_query_editing_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_query_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_query_media_info_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_query_media_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_query_media_list_by_url.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_submit_editing_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_submit_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_submit_media_info_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_sucess_domains.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_summary.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_summary_list_in_query_media_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_summary_list_in_query_media_list_by_url.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_super_reso.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_switch.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_switch_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_an_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_an_results.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_face.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_faces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_fr_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_fr_results.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_add_media.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_list_media.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_query_media_detail_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_query_media_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_query_media_list_by_url.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_search_media.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_update_media.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tail_slate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tail_slate_list_in_list_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tail_slate_list_in_query_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tail_slate_list_in_submit_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_template_list_in_query_analysis_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_template_list_in_query_template_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_template_list_in_search_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_template_list_in_submit_analysis_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_counter_list_in_query_censor_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_counter_list_in_query_terrorism_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_top_list_in_query_censor_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_top_list_in_query_terrorism_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tile_out.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tile_output_file.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_time_span.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_timeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_timeline_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_timeline_config_audio.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_timeline_config_video.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_top.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_track.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_track_list_in_query_editing_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_track_list_in_submit_editing_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_trans_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ts.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_annotation_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_facerecog_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_gif_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_split.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_split_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_split_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_list_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_query_editing_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_query_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_query_media_info_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_query_media_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_query_media_list_by_url.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_submit_editing_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_submit_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_submit_media_info_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_summary.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_summary_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_summary_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_tag_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_volume.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_list_in_list_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_list_in_query_editing_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_list_in_query_job_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_list_in_submit_editing_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_list_in_submit_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_template_list_in_query_water_mark_template_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_template_list_in_search_water_mark_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_webp.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_analysis_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_annotation_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_asr_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_censor_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_cover_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_editing_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_facerecog_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_fp_shot_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_jobs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_media_detail_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_media_info_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_porn_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_snapshot_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_tag_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_terrorism_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_video_gif_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_video_split_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_video_summary_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/unbind_input_bucket.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/unbind_output_bucket.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_asr_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_category_name.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_censor_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_cover_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media_category.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media_cover.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media_publish_state.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media_workflow.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media_workflow_trigger_mode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_porn_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_terrorism_pipeline.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_water_mark_template.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/create_access_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/create_access_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/create_file_system.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/create_mount_target.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/delete_access_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/delete_access_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/delete_file_system.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/delete_mount_target.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/describe_access_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/describe_access_rules.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/describe_file_systems.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/describe_mount_targets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/describe_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/modify_access_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/modify_access_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/modify_file_system.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/modify_mount_target.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_access_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_access_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_access_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_access_rules.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_file_system.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_file_systems.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_mount_target.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_mount_targets_in_describe_file_systems.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_mount_targets_in_describe_mount_targets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_package.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_packages.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_region.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/bind_instance2_vpc.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/delete_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/delete_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/get_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/insert_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/insert_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/list_cluster_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/list_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/list_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/list_vpc_info_by_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/list_vpc_info_by_vpc.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_cluster_type_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_instance_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_instance_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_quota.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_tag_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_tag_infos_in_get_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_tag_infos_in_list_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_vpc_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_vpc_infos_in_list_vpc_info_by_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_vpc_infos_in_list_vpc_info_by_vpc.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/unbind_instance2_vpc.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/update_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/bind_alias.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/bind_phone.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/bind_tag.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/cancel_push.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/check_device.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/check_devices.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/list_push_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/list_summary_apps.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/list_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/push.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/push_message_to_android.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/push_message_toi_os.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/push_notice_to_android.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/push_notice_toi_os.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_aliases.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_device_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_device_stat.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_devices_by_account.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_devices_by_alias.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_push_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_push_stat_by_app.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_push_stat_by_msg.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_unique_device_stat.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/remove_tag.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_alias_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_alias_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_app_device_stat.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_app_device_stats_in_query_device_stat.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_app_device_stats_in_query_unique_device_stat.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_app_push_stat.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_app_push_stats.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_device_check_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_device_check_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_device_ids_in_query_devices_by_account.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_device_ids_in_query_devices_by_alias.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_device_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_push_message_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_push_message_infos_in_list_push_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_push_message_infos_in_query_push_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_push_stat.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_push_stats.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_summary_app_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_summary_app_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_tag_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_tag_infos_in_list_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_tag_infos_in_query_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/unbind_alias.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/unbind_phone.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/unbind_tag.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/add_zone.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/add_zone_record.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/bind_zone_vpc.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/check_zone_name.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/delete_zone.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/delete_zone_record.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_change_logs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_request_graph.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_statistic_summary.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_user_service_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zone_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zone_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zone_vpc_tree.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zones.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/set_zone_record_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_bind_vpcs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_change_log.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_change_logs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_record.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_region.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_request_details.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpc.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpc_request_top.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpc_request_tops.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpcs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zone.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zone_request_top.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zone_request_tops.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zones_in_describe_zone_vpc_tree.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zones_in_describe_zones.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/update_zone_record.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/update_zone_remark.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/create_backup.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/create_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/create_snapshot.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/create_static_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/create_temp_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/delete_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/delete_snapshot.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/delete_snapshot_settings.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/delete_temp_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_backup_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_backups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_certification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_db_instance_net_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_history_monitor_values.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_instance_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_instance_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_instance_ssl.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_instances_by_expire_time.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_logic_instance_topology.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_monitor_items.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_monthly_service_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_monthly_service_status_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_rds_v_switchs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_rds_vpcs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_replica_conflict_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_replica_initialize_progress.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_replica_performance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_replica_usage.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_replicas.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_security_ips.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_snapshots.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_static_verification_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_strategy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_temp_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_verification_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/flush_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/get_snapshot_settings.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_backup_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_certification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_guard_domain_mode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_maintain_time.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_minor_version.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_net_expire_time.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_spec.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_spec_pre_check.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_ssl.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_replica_description.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_replica_mode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_replica_recovery_mode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_replica_relation.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_replica_verification_mode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_security_ips.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/query_task.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/release_replica.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/renew_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/renew_multi_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/restore_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/restore_snapshot.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/set_snapshot_settings.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_affected_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_affected_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_backup.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_backups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_db_instance_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_db_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instance_net_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instance_sla_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instance_sla_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instances_in_describe_instance_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instances_in_describe_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instances_in_describe_instances_by_expire_time.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items_in_describe_replica_conflict_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items_in_describe_replica_initialize_progress.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items_in_describe_static_verification_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items_in_describe_verification_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_kv_store_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_kv_store_monitor_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_kv_store_region.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_monitor_items.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_net_info_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_net_info_items_in_describe_db_instance_net_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_net_info_items_in_modify_instance_net_expire_time.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_node_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_key_in_describe_replica_performance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_key_in_describe_replica_usage.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_key_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_keys.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_value_in_describe_replica_performance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_value_in_describe_replica_usage.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_value_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_values.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_redis_proxy_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_redis_shard_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_region_ids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_replicas.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_security_ip_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_security_ip_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_snapshot.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_snapshots.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_temp_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_temp_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_v_switch.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_v_switch_in_describe_rds_v_switchs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_v_switch_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_v_switches.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_v_switchs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_vpc.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_vpc_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_vpcs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/switch_network.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/switch_temp_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/transform_to_pre_paid.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/verify_password.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/add_user_to_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/attach_policy_to_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/attach_policy_to_role.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/attach_policy_to_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/bind_mfa_device.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/change_password.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/clear_account_alias.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_access_key.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_login_profile.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_policy_version.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_role.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_virtual_mfa_device.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_access_key.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_login_profile.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_policy_version.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_public_key.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_role.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_virtual_mfa_device.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/detach_policy_from_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/detach_policy_from_role.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/detach_policy_from_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_account_alias.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_login_profile.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_password_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_policy_version.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_public_key.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_role.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_security_preference.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_user_mfa_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_access_keys.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_entities_for_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_groups_for_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_policies.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_policies_for_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_policies_for_role.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_policies_for_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_policy_versions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_public_keys.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_roles.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_users.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_users_for_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_virtual_mfa_devices.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/remove_user_from_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/set_account_alias.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/set_default_policy_version.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/set_password_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/set_security_preference.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_access_key.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_access_key_preference.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_access_keys.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_groups_in_list_entities_for_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_groups_in_list_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_groups_in_list_groups_for_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_login_profile.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_login_profile_preference.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_mfa_device.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_mfa_preference.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_password_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policies_in_list_policies.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policies_in_list_policies_for_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policies_in_list_policies_for_role.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policies_in_list_policies_for_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policy_version.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policy_versions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_public_key.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_public_key_preference.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_public_keys.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_role.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_roles_in_list_entities_for_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_roles_in_list_roles.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_security_preference.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_users_in_list_entities_for_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_users_in_list_users.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_users_in_list_users_for_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_virtual_mfa_device.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_virtual_mfa_devices.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/unbind_mfa_device.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_access_key.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_login_profile.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_public_key.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_role.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/upload_public_key.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/add_tags_to_resource.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/allocate_instance_private_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/allocate_instance_public_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/allocate_read_write_splitting_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/calculate_db_instance_weight.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/cancel_import.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/check_account_name_available.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/check_db_name_available.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/check_recovery_conditions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/check_resource.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/clone_db_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/copy_database.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_account.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_backup.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_damp_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_database.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_db_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_db_instance_replica.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_diagnostic_report.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_migrate_task.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_migrate_task_for_sql_server.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_online_database_task.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_policy_with_specified_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_read_only_db_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_sql_diagnosis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_static_verification.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_temp_db_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/degrade_db_instance_spec.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/delete_account.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/delete_backup.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/delete_damp_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/delete_database.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/delete_db_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/descibe_imports_from_database.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_abnormal_db_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_accounts.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_backup_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_backup_sets_for_security.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_backup_tasks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_backups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_backups_for_security.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_binlog_files.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_character_set_name.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_cloud_dba_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_custins_kernel_release_notes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_damp_policies_by_cid.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_damp_policy_by_comment.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_damp_policy_by_policy_name.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_database_lock_diagnosis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_databases.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_by_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_extend_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_ha_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_ip_array_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_monitor.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_net_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_performance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_ssl.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_tde.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instances_as_csv.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instances_by_expire_time.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instances_by_performance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_diagnostic_report_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_error_logs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_instance_auto_renew_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_instance_auto_renewal_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_logic_db_instance_topology.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_migrate_tasks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_migrate_tasks_for_sql_server.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_modify_parameter_log.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_operator_permission.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_optimize_advice_on_big_table.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_optimize_advice_on_excess_index.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_optimize_advice_on_miss_index.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_optimize_advice_on_miss_pk.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_optimize_advice_on_storage.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_oss_downloads.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_oss_downloads_for_sql_server.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_parameter_templates.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_parameters.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_pre_check_results.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_price.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_realtime_diagnoses.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_renewal_price.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_replica_conflict_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_replica_initialize_progress.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_replica_performance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_replica_usage.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_replicas.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_resource_diagnosis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_resource_usage.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_security_group_configuration.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_slow_log_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_slow_logs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_collector_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_diagnosis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_diagnosis_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_injection_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_log_files.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_log_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_log_report_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_log_reports.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_reports.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_static_verification_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_strategy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_task_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_tasks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_verification_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_vpc_zone_nos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/grant_account_privilege.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/grant_operator_permission.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/import_data_for_sql_server.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/import_data_from_database.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/import_database_between_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/login_db_instancefrom_cloud_dba.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/migrate_to_other_zone.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_account_description.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_backup_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_damp_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_description.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_connection_mode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_connection_string.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_description.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_ha_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_maintain_time.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_monitor.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_network_expire_time.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_network_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_proxy_configuration.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_spec.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_ssl.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_tde.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_guard_domain_mode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_instance_auto_renewal_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_parameter.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_postpaid_db_instance_spec.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_read_write_splitting_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_replica_description.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_replica_mode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_replica_recovery_mode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_replica_relation.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_replica_verification_mode.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_resource_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_security_group_configuration.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_security_ips.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_sql_collector_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/pre_check_before_import_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/purge_db_instance_log.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/query_price_for_buy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/release_instance_public_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/release_read_write_splitting_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/release_replica.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/remove_tags_from_resource.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/renew_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/request_service_of_cloud_dba.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/reset_account.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/reset_account_for_pg.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/reset_account_password.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/restart_db_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/restore_db_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/revoke_account_privilege.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/revoke_operator_permission.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/start_archive_sql_log.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/start_db_instance_diagnose.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/stop_syncing.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_abnormal_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_abnormal_items.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_account_privilege_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_accounts_in_describe_accounts.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_accounts_in_describe_databases.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_activity_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advice_on_big_table.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advice_on_excess_index.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advice_on_miss_index.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advice_on_miss_pk.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advice_on_storage.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advise_value.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_backup.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_backup_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_bin_log_file.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_character_set_name_items.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_config_parameters.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_coupon.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_coupons_in_describe_price.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_coupons_in_describe_renewal_price.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_coupons_in_query_price_for_buy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_cpu.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_database.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_database_privilege.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_database_privileges.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_databases_in_describe_databases.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_databases_in_describe_db_instance_tde.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_account.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_expire_time.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_ids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_ip_array.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_net_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_net_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_parameter.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_performance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_tag.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_weight.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_weights.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_dead_lock_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_ecs_security_group_relation.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_error_log.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_host_instance_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_import_result_from_db.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_instance_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_iops.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_calculate_db_instance_weight.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_descibe_imports_from_database.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_abnormal_db_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_backup_sets_for_security.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_backup_tasks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_backups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_backups_for_security.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_binlog_files.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instance_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instance_by_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instance_ip_array_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instances_as_csv.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instances_by_expire_time.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instances_by_performance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_error_logs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_instance_auto_renew_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_instance_auto_renewal_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_logic_db_instance_topology.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_migrate_tasks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_migrate_tasks_for_sql_server.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_modify_parameter_log.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_optimize_advice_on_big_table.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_optimize_advice_on_excess_index.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_optimize_advice_on_miss_index.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_optimize_advice_on_miss_pk.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_optimize_advice_on_storage.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_oss_downloads.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_oss_downloads_for_sql_server.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_pre_check_results.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_replica_conflict_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_replica_initialize_progress.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_security_group_configuration.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_slow_log_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_slow_logs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_injection_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_log_files.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_log_records.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_log_report_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_log_reports.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_reports.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_static_verification_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_tasks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_verification_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_vpc_zone_nos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_modify_security_group_configuration.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_latency_top_n_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_latency_top_n_items_in_describe_sql_log_report_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_latency_top_n_items_in_describe_sql_log_reports.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_latency_top_n_items_in_describe_sql_reports.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_log_file.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_logic_db_instance_parameter.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_memory.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_migrate_task.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_node_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_oss_download.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_parameter_change_log.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_parameters.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_key.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_key_in_describe_replica_performance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_key_in_describe_replica_usage.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_key_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_keys.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_keys_in_describe_db_instance_performance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_value.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_value_in_describe_replica_performance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_value_in_describe_replica_usage.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_value_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_values.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_policies.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_policy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_pre_check_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_price_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_qps_top_n_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_qps_top_n_items_in_describe_sql_log_report_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_qps_top_n_items_in_describe_sql_log_reports.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_qps_top_n_items_in_describe_sql_reports.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rds_region.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_read_only_db_instance_id.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_read_only_db_instance_ids_in_describe_db_instance_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_read_only_db_instance_ids_in_describe_db_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_realtime_diagnose_tasks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_replicas.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_report.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_report_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_resource.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_resources.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rule_ids_in_describe_price.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rule_ids_in_describe_renewal_price.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rule_ids_in_query_price_for_buy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rules_in_describe_price.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rules_in_describe_renewal_price.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rules_in_query_price_for_buy.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_running_parameters.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_security_ip_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_security_ip_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_diag.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_diag_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_injection_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_record.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_slow_log.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_slow_record.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_storage.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_tag.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_tag_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_task_progress_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_tasks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_template_record.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_values.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_vpc_zone_id.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/switch_db_instance_ha.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/switch_db_instance_net_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/upgrade_db_instance_engine_version.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/upgrade_db_instance_kernel_version.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/upgrade_db_instance_net_work_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/upgrade_db_instance_network.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/create_channel.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/create_conference.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/delete_channel.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/delete_conference.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_apps.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_conference_auth_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_real_time_record_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_real_time_record_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_record_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_record_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_statis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/modify_app.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/modify_conference.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/mute_audio.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/mute_audio_all.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/remove_participants.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/remove_terminals.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/start_app.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/stop_app.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_app.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_app_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_auth_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_call_areas_in_describe_real_time_record_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_call_areas_in_describe_record_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_channel_statis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_channel_statis_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_communication_record_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_communication_record_infos_in_describe_real_time_record_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_communication_record_infos_in_describe_record_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_duration.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_duration_in_describe_statis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_duration_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participant.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participants_in_mute_audio.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participants_in_mute_audio_all.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participants_in_remove_participants.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participants_in_unmute_audio.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participants_in_unmute_audio_all.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_record_detail_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_record_detail_infos_in_describe_real_time_record_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_record_detail_infos_in_describe_record_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_service_areas.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_statis_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_statis_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_terminal.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_terminals.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_user_statis.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_user_statis_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/unmute_audio.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/unmute_audio_all.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/update_channel.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/add_scdn_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/batch_delete_scdn_domain_configs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/check_scdn_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/delete_scdn_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_certificate_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_certificate_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_bps_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_certificate_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_cname.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_configs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_hit_rate_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_http_code_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_log.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_origin_bps_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_origin_traffic_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_qps_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_traffic_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_refresh_quota.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_refresh_tasks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_service.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_user_domains.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_user_quota.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/preload_scdn_object_caches.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/refresh_scdn_object_caches.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/set_scdn_domain_certificate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/start_scdn_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/stop_scdn_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_bps_data_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_cert.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_cert_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_cert_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_cert_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_certificate_list_model.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_cname_datas.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_data_module.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_data_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domain_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domain_configs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domain_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domain_log_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domain_log_details.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domains.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_function_arg.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_function_args.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_hit_rate_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_http_code_data_module.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_http_code_data_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_lock_reason.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_log_info_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_log_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_operation_locks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_origin_bps_data_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_origin_traffic_data_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_page_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_page_info_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_page_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_qps_data_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_source.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_sources_in_describe_scdn_domain_detail.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_sources_in_describe_scdn_user_domains.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_task.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_tasks.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_traffic_data_per_interval.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/update_scdn_domain.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_backend_servers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_listener_white_list_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_v_server_group_backend_servers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_http_listener.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_https_listener.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_tcp_listener.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_udp_listener.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_master_slave_server_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_master_slave_v_server_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_rules.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_v_server_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_ca_certificate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_load_balancer.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_load_balancer_listener.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_master_slave_server_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_master_slave_v_server_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_rules.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_server_certificate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_v_server_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_ca_certificates.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_health_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_listener_access_control_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_auto_release_time.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_http_listener_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_https_listener_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_tcp_listener_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_udp_listener_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancers_related_ecs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_server_group_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_server_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_v_server_group_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_v_server_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_rule_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_rules.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_server_certificates.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_v_server_group_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_v_server_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_zones.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_instance_spec.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_internet_spec.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_pay_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_v_server_group_backend_servers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/move_resource_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_backend_servers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_listener_white_list_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_tags.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_v_server_group_backend_servers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_backend_servers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_ca_certificate_name.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_listener_access_control_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_auto_release_time.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_http_listener_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_https_listener_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_name.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_tcp_listener_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_udp_listener_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_server_certificate_name.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_v_server_group_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/start_load_balancer_listener.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/stop_load_balancer_listener.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_add_backend_servers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_set_backend_servers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_add_backend_servers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_add_v_server_group_backend_servers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_create_v_server_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_health_status.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_load_balancer_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_load_balancers_related_ecs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_v_server_group_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_modify_v_server_group_backend_servers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_remove_backend_servers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_remove_v_server_group_backend_servers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_set_backend_servers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_set_v_server_group_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_ca_certificate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_ca_certificates.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_port_and_protocal.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_port_and_protocol.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_ports.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_ports_and_protocal.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_ports_and_protocol.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_load_balancer.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_load_balancers_in_describe_load_balancers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_load_balancers_in_describe_load_balancers_related_ecs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_server.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_create_master_slave_server_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_create_master_slave_v_server_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_describe_master_slave_server_group_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_describe_master_slave_v_server_group_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_server_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_server_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_v_server_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_v_server_groups_in_describe_load_balancers_related_ecs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_v_server_groups_in_describe_master_slave_v_server_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_region.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_rule.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_rules_in_create_rules.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_rules_in_describe_rules.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificates.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_slave_zone.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_slave_zones.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tag_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tag_sets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_v_server_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_v_server_groups_in_describe_load_balancers_related_ecs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_v_server_groups_in_describe_v_server_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_zone.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_zones.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/upload_ca_certificate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/upload_server_certificate.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sls/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sls/open_account.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sls/order_succeeded_callback.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/assume_role.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/generate_session_access_key.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/get_caller_identity.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/struct_assumed_role_user.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/struct_credentials.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/struct_session_access_key.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/action.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/action_disk_check.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/action_disk_mask.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/action_disk_rma.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/host_gets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/struct_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/struct_data_in_host_gets.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_cluster_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_instances_status_count.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_project_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_quota_history_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_quota_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_user_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/query_customer_sale_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/query_resource_inventory.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/query_topology.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_cluster.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_cluster_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_clusters_in_query_customer_sale_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_clusters_in_query_resource_inventory.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_clusters_in_query_topology.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_cpu_max_quota.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_cpu_min_quota.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_cpu_used.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_data_in_get_instances_status_count.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_data_in_get_quota_history_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_data_in_get_quota_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_data_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_detail_in_get_cluster_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_detail_in_get_project_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_detail_in_get_quota_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_detail_in_get_user_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_mem_max_quota.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_mem_min_quota.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_mem_used.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_point.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_region_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_resource_inventories.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_resource_inventory.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_resource_parameter.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_resource_parameters.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_result.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_result_item.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_sale_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_sale_infos.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/batch_get_job_metric_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/batch_get_plugin_config_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/get_job_topology.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_childrens.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_data_in_batch_get_job_metric_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_data_in_batch_get_plugin_config_info.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_data_in_get_job_topology.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_job.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_parents.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_plugin.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/activate_router_interface.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/add_bandwidth_package_ips.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/add_bgp_network.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/add_common_bandwidth_package_ip.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/add_global_acceleration_instance_ip.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/allocate_eip_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/associate_eip_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/associate_global_acceleration_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/associate_ha_vip.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/associate_physical_connection_to_virtual_border_router.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/cancel_physical_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/client.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/connect_router_interface.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_bandwidth_package.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_bgp_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_bgp_peer.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_common_bandwidth_package.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_customer_gateway.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_forward_entry.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_global_acceleration_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_ha_vip.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_nat_gateway.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_nqa.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_physical_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_physical_connection_new.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_route_entry.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_router_interface.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_snat_entry.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_ssl_vpn_client_cert.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_ssl_vpn_server.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_v_switch.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_virtual_border_router.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_vpc.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_vpn_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/deactivate_router_interface.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_bandwidth_package.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_bgp_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_bgp_network.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_bgp_peer.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_common_bandwidth_package.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_customer_gateway.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_forward_entry.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_global_acceleration_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_ha_vip.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_nat_gateway.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_nqa.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_physical_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_route_entry.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_router_interface.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_snat_entry.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_ssl_vpn_client_cert.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_ssl_vpn_server.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_v_switch.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_virtual_border_router.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_vpc.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_vpn_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_vpn_gateway.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_access_points.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_bandwidth_package_public_ip_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_bandwidth_packages.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_bgp_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_bgp_peers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_common_bandwidth_packages.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_customer_gateway.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_customer_gateways.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_eip_addresses.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_eip_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_forward_table_entries.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_forward_tables.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_global_acceleration_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_ha_vips.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_nat_gateways.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_new_project_eip_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_nqas.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_physical_connections.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_route_table_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_route_tables.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_router_interfaces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_router_interfaces_for_global.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_server_related_global_acceleration_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_snat_table_entries.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_ssl_vpn_client_cert.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_ssl_vpn_client_certs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_ssl_vpn_servers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_v_routers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_v_switch_attributes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_v_switches.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_virtual_border_routers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_virtual_border_routers_for_physical_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpc_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpcs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpn_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpn_connection_logs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpn_connections.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpn_gateway.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpn_gateways.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_zones.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/disable_vpc_classic_link.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/download_vpn_connection_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/enable_physical_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/enable_vpc_classic_link.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_bandwidth_package_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_bandwidth_package_spec.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_bgp_group_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_common_bandwidth_package_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_common_bandwidth_package_pay_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_common_bandwidth_package_spec.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_customer_gateway_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_eip_address_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_forward_entry.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_global_acceleration_instance_attributes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_global_acceleration_instance_spec.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_ha_vip_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_nat_gateway_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_nat_gateway_spec.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_nqa.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_physical_connection_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_route_table_attributes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_router_interface_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_router_interface_spec.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_snat_entry.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_ssl_vpn_client_cert.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_ssl_vpn_server.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_v_router_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_v_switch_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_virtual_border_router_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_vpc_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_vpn_connection_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_vpn_gateway_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/move_resource_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/recover_virtual_border_router.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/release_eip_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/remove_bandwidth_package_ips.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/remove_common_bandwidth_package_ip.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/remove_global_acceleration_instance_ip.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_access_point_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_access_point_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_cen.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_cens_in_describe_virtual_border_routers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_cens_in_describe_vpc_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_eip_addresses.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_physical_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_physical_connections.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_available_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_backend_server.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_backend_servers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bandwidth_package.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bandwidth_package_ids_in_create_nat_gateway.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bandwidth_package_ids_in_describe_nat_gateways.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bandwidth_packages.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bgp_group.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bgp_groups.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bgp_peer.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bgp_peers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_cloud_resource_set_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_cloud_resources_in_describe_v_switch_attributes.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_cloud_resources_in_describe_vpc_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_common_bandwidth_package.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_common_bandwidth_packages.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_customer_gateway.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_customer_gateways.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_eip_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_eip_addresses.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_eip_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_eip_monitor_datas_in_describe_eip_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_eip_monitor_datas_in_describe_new_project_eip_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_entry.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_entrys.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_table.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_table_entries.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_table_entry.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_table_ids_in_create_nat_gateway.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_table_ids_in_describe_nat_gateways.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_tables.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_global_acceleration_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_global_acceleration_instances_in_describe_global_acceleration_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_global_acceleration_instances_in_describe_server_related_global_acceleration_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ha_vip.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ha_vips.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ike_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ip_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ip_lists.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ipsec_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_lock_reason.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_monitor_data.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_monitor_datas.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_nat_gateway.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_nat_gateway_ids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_nat_gateways.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_next_hop.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_next_hops.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_nqa.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_nqas.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_operation_locks_in_describe_eip_addresses.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_operation_locks_in_describe_global_acceleration_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_physical_connection_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_physical_connection_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_public_ip_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_public_ip_addresse.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_public_ip_addresses_in_describe_bandwidth_packages.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_public_ip_addresses_in_describe_common_bandwidth_packages.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_public_ip_addresses_in_describe_global_acceleration_instances.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_region.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_regions.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_route_entry.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_route_entrys.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_route_table.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_route_table_ids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_route_tables.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_interface_set_in_describe_router_interfaces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_interface_set_in_describe_router_interfaces_for_global.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_interface_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_interface_type_in_describe_router_interfaces.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_table_ids.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_table_list.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_table_list_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_snat_table_entries.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_snat_table_entry.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_snat_table_ids_in_create_nat_gateway.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_snat_table_ids_in_describe_nat_gateways.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ssl_vpn_client_cert_key.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ssl_vpn_client_cert_keys.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ssl_vpn_server.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ssl_vpn_servers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_user_cidrs_in_describe_vpc_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_user_cidrs_in_describe_vpcs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_router.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_routers.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_switch.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_switch_ids_in_describe_vpc_attribute.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_switch_ids_in_describe_vpcs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_switches.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_virtual_border_router_for_physical_connection_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_virtual_border_router_for_physical_connection_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_virtual_border_router_set.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_virtual_border_router_type.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpc.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpcs.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpn_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpn_connection_config.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpn_connections.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpn_gateway.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpn_gateways.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_zone.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_zones.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/terminate_physical_connection.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/terminate_virtual_border_router.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/unassociate_eip_address.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/unassociate_global_acceleration_instance.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/unassociate_ha_vip.go create mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/unassociate_physical_connection_from_virtual_border_router.go create mode 100644 vendor/github.com/beorn7/perks/LICENSE create mode 100644 vendor/github.com/beorn7/perks/quantile/exampledata.txt create mode 100644 vendor/github.com/beorn7/perks/quantile/stream.go create mode 100644 vendor/github.com/golang/protobuf/LICENSE create mode 100644 vendor/github.com/golang/protobuf/proto/clone.go create mode 100644 vendor/github.com/golang/protobuf/proto/decode.go create mode 100644 vendor/github.com/golang/protobuf/proto/discard.go create mode 100644 vendor/github.com/golang/protobuf/proto/encode.go create mode 100644 vendor/github.com/golang/protobuf/proto/equal.go create mode 100644 vendor/github.com/golang/protobuf/proto/extensions.go create mode 100644 vendor/github.com/golang/protobuf/proto/lib.go create mode 100644 vendor/github.com/golang/protobuf/proto/message_set.go create mode 100644 vendor/github.com/golang/protobuf/proto/pointer_reflect.go create mode 100644 vendor/github.com/golang/protobuf/proto/pointer_unsafe.go create mode 100644 vendor/github.com/golang/protobuf/proto/properties.go create mode 100644 vendor/github.com/golang/protobuf/proto/table_marshal.go create mode 100644 vendor/github.com/golang/protobuf/proto/table_merge.go create mode 100644 vendor/github.com/golang/protobuf/proto/table_unmarshal.go create mode 100644 vendor/github.com/golang/protobuf/proto/text.go create mode 100644 vendor/github.com/golang/protobuf/proto/text_parser.go create mode 100644 vendor/github.com/jmespath/go-jmespath/LICENSE create mode 100644 vendor/github.com/jmespath/go-jmespath/Makefile create mode 100644 vendor/github.com/jmespath/go-jmespath/README.md create mode 100644 vendor/github.com/jmespath/go-jmespath/api.go create mode 100644 vendor/github.com/jmespath/go-jmespath/astnodetype_string.go create mode 100644 vendor/github.com/jmespath/go-jmespath/functions.go create mode 100644 vendor/github.com/jmespath/go-jmespath/interpreter.go create mode 100644 vendor/github.com/jmespath/go-jmespath/lexer.go create mode 100644 vendor/github.com/jmespath/go-jmespath/parser.go create mode 100644 vendor/github.com/jmespath/go-jmespath/toktype_string.go create mode 100644 vendor/github.com/jmespath/go-jmespath/util.go create mode 100644 vendor/github.com/json-iterator/go/Gopkg.lock create mode 100644 vendor/github.com/json-iterator/go/Gopkg.toml create mode 100644 vendor/github.com/json-iterator/go/LICENSE create mode 100644 vendor/github.com/json-iterator/go/README.md create mode 100644 vendor/github.com/json-iterator/go/adapter.go create mode 100644 vendor/github.com/json-iterator/go/any.go create mode 100644 vendor/github.com/json-iterator/go/any_array.go create mode 100644 vendor/github.com/json-iterator/go/any_bool.go create mode 100644 vendor/github.com/json-iterator/go/any_float.go create mode 100644 vendor/github.com/json-iterator/go/any_int32.go create mode 100644 vendor/github.com/json-iterator/go/any_int64.go create mode 100644 vendor/github.com/json-iterator/go/any_invalid.go create mode 100644 vendor/github.com/json-iterator/go/any_nil.go create mode 100644 vendor/github.com/json-iterator/go/any_number.go create mode 100644 vendor/github.com/json-iterator/go/any_object.go create mode 100644 vendor/github.com/json-iterator/go/any_str.go create mode 100644 vendor/github.com/json-iterator/go/any_uint32.go create mode 100644 vendor/github.com/json-iterator/go/any_uint64.go create mode 100755 vendor/github.com/json-iterator/go/build.sh create mode 100644 vendor/github.com/json-iterator/go/config.go create mode 100644 vendor/github.com/json-iterator/go/fuzzy_mode_convert_table.md create mode 100644 vendor/github.com/json-iterator/go/iter.go create mode 100644 vendor/github.com/json-iterator/go/iter_array.go create mode 100644 vendor/github.com/json-iterator/go/iter_float.go create mode 100644 vendor/github.com/json-iterator/go/iter_int.go create mode 100644 vendor/github.com/json-iterator/go/iter_object.go create mode 100644 vendor/github.com/json-iterator/go/iter_skip.go create mode 100644 vendor/github.com/json-iterator/go/iter_skip_sloppy.go create mode 100644 vendor/github.com/json-iterator/go/iter_skip_strict.go create mode 100644 vendor/github.com/json-iterator/go/iter_str.go create mode 100644 vendor/github.com/json-iterator/go/jsoniter.go create mode 100644 vendor/github.com/json-iterator/go/pool.go create mode 100644 vendor/github.com/json-iterator/go/reflect.go create mode 100644 vendor/github.com/json-iterator/go/reflect_array.go create mode 100644 vendor/github.com/json-iterator/go/reflect_dynamic.go create mode 100644 vendor/github.com/json-iterator/go/reflect_extension.go create mode 100644 vendor/github.com/json-iterator/go/reflect_json_number.go create mode 100644 vendor/github.com/json-iterator/go/reflect_json_raw_message.go create mode 100644 vendor/github.com/json-iterator/go/reflect_map.go create mode 100644 vendor/github.com/json-iterator/go/reflect_marshaler.go create mode 100644 vendor/github.com/json-iterator/go/reflect_native.go create mode 100644 vendor/github.com/json-iterator/go/reflect_optional.go create mode 100644 vendor/github.com/json-iterator/go/reflect_slice.go create mode 100644 vendor/github.com/json-iterator/go/reflect_struct_decoder.go create mode 100644 vendor/github.com/json-iterator/go/reflect_struct_encoder.go create mode 100644 vendor/github.com/json-iterator/go/stream.go create mode 100644 vendor/github.com/json-iterator/go/stream_float.go create mode 100644 vendor/github.com/json-iterator/go/stream_int.go create mode 100644 vendor/github.com/json-iterator/go/stream_str.go create mode 100755 vendor/github.com/json-iterator/go/test.sh create mode 100644 vendor/github.com/matttproud/golang_protobuf_extensions/LICENSE create mode 100644 vendor/github.com/matttproud/golang_protobuf_extensions/NOTICE create mode 100644 vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/Makefile create mode 100644 vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/decode.go create mode 100644 vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/doc.go create mode 100644 vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/encode.go create mode 100644 vendor/github.com/modern-go/concurrent/LICENSE create mode 100644 vendor/github.com/modern-go/concurrent/README.md create mode 100644 vendor/github.com/modern-go/concurrent/executor.go create mode 100644 vendor/github.com/modern-go/concurrent/go_above_19.go create mode 100644 vendor/github.com/modern-go/concurrent/go_below_19.go create mode 100644 vendor/github.com/modern-go/concurrent/log.go create mode 100755 vendor/github.com/modern-go/concurrent/test.sh create mode 100644 vendor/github.com/modern-go/concurrent/unbounded_executor.go create mode 100644 vendor/github.com/modern-go/reflect2/Gopkg.lock create mode 100644 vendor/github.com/modern-go/reflect2/Gopkg.toml create mode 100644 vendor/github.com/modern-go/reflect2/LICENSE create mode 100644 vendor/github.com/modern-go/reflect2/README.md create mode 100644 vendor/github.com/modern-go/reflect2/go_above_17.go create mode 100644 vendor/github.com/modern-go/reflect2/go_above_19.go create mode 100644 vendor/github.com/modern-go/reflect2/go_below_17.go create mode 100644 vendor/github.com/modern-go/reflect2/go_below_19.go create mode 100644 vendor/github.com/modern-go/reflect2/reflect2.go create mode 100644 vendor/github.com/modern-go/reflect2/reflect2_amd64.s create mode 100644 vendor/github.com/modern-go/reflect2/reflect2_kind.go create mode 100644 vendor/github.com/modern-go/reflect2/relfect2_386.s create mode 100644 vendor/github.com/modern-go/reflect2/relfect2_amd64p32.s create mode 100644 vendor/github.com/modern-go/reflect2/relfect2_arm.s create mode 100644 vendor/github.com/modern-go/reflect2/relfect2_arm64.s create mode 100644 vendor/github.com/modern-go/reflect2/relfect2_mips64x.s create mode 100644 vendor/github.com/modern-go/reflect2/relfect2_mipsx.s create mode 100644 vendor/github.com/modern-go/reflect2/relfect2_ppc64x.s create mode 100644 vendor/github.com/modern-go/reflect2/relfect2_s390x.s create mode 100644 vendor/github.com/modern-go/reflect2/safe_field.go create mode 100644 vendor/github.com/modern-go/reflect2/safe_map.go create mode 100644 vendor/github.com/modern-go/reflect2/safe_slice.go create mode 100644 vendor/github.com/modern-go/reflect2/safe_struct.go create mode 100644 vendor/github.com/modern-go/reflect2/safe_type.go create mode 100755 vendor/github.com/modern-go/reflect2/test.sh create mode 100644 vendor/github.com/modern-go/reflect2/type_map.go create mode 100644 vendor/github.com/modern-go/reflect2/unsafe_array.go create mode 100644 vendor/github.com/modern-go/reflect2/unsafe_eface.go create mode 100644 vendor/github.com/modern-go/reflect2/unsafe_field.go create mode 100644 vendor/github.com/modern-go/reflect2/unsafe_iface.go create mode 100644 vendor/github.com/modern-go/reflect2/unsafe_link.go create mode 100644 vendor/github.com/modern-go/reflect2/unsafe_map.go create mode 100644 vendor/github.com/modern-go/reflect2/unsafe_ptr.go create mode 100644 vendor/github.com/modern-go/reflect2/unsafe_slice.go create mode 100644 vendor/github.com/modern-go/reflect2/unsafe_struct.go create mode 100644 vendor/github.com/modern-go/reflect2/unsafe_type.go create mode 100644 vendor/github.com/patrickmn/go-cache/CONTRIBUTORS create mode 100644 vendor/github.com/patrickmn/go-cache/LICENSE create mode 100644 vendor/github.com/patrickmn/go-cache/README.md create mode 100644 vendor/github.com/patrickmn/go-cache/cache.go create mode 100644 vendor/github.com/patrickmn/go-cache/sharded.go create mode 100644 vendor/github.com/prometheus/client_golang/LICENSE create mode 100644 vendor/github.com/prometheus/client_golang/NOTICE create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/README.md create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/collector.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/counter.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/desc.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/doc.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/expvar_collector.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/fnv.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/gauge.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/go_collector.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/histogram.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/http.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/labels.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/metric.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/observer.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/process_collector.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/promhttp/delegator.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/promhttp/delegator_1_8.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/promhttp/delegator_pre_1_8.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/promhttp/http.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/promhttp/instrument_client.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/promhttp/instrument_client_1_8.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/promhttp/instrument_server.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/registry.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/summary.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/timer.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/untyped.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/value.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/vec.go create mode 100644 vendor/github.com/prometheus/client_model/LICENSE create mode 100644 vendor/github.com/prometheus/client_model/NOTICE create mode 100644 vendor/github.com/prometheus/client_model/go/metrics.pb.go create mode 100644 vendor/github.com/prometheus/common/LICENSE create mode 100644 vendor/github.com/prometheus/common/NOTICE create mode 100644 vendor/github.com/prometheus/common/expfmt/decode.go create mode 100644 vendor/github.com/prometheus/common/expfmt/encode.go create mode 100644 vendor/github.com/prometheus/common/expfmt/expfmt.go create mode 100644 vendor/github.com/prometheus/common/expfmt/fuzz.go create mode 100644 vendor/github.com/prometheus/common/expfmt/text_create.go create mode 100644 vendor/github.com/prometheus/common/expfmt/text_parse.go create mode 100644 vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/README.txt create mode 100644 vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/autoneg.go create mode 100644 vendor/github.com/prometheus/common/log/eventlog_formatter.go create mode 100644 vendor/github.com/prometheus/common/log/log.go create mode 100644 vendor/github.com/prometheus/common/log/syslog_formatter.go create mode 100644 vendor/github.com/prometheus/common/model/alert.go create mode 100644 vendor/github.com/prometheus/common/model/fingerprinting.go create mode 100644 vendor/github.com/prometheus/common/model/fnv.go create mode 100644 vendor/github.com/prometheus/common/model/labels.go create mode 100644 vendor/github.com/prometheus/common/model/labelset.go create mode 100644 vendor/github.com/prometheus/common/model/metric.go create mode 100644 vendor/github.com/prometheus/common/model/model.go create mode 100644 vendor/github.com/prometheus/common/model/signature.go create mode 100644 vendor/github.com/prometheus/common/model/silence.go create mode 100644 vendor/github.com/prometheus/common/model/time.go create mode 100644 vendor/github.com/prometheus/common/model/value.go create mode 100644 vendor/github.com/prometheus/common/version/info.go create mode 100644 vendor/github.com/prometheus/procfs/CONTRIBUTING.md create mode 100644 vendor/github.com/prometheus/procfs/LICENSE create mode 100644 vendor/github.com/prometheus/procfs/MAINTAINERS.md create mode 100644 vendor/github.com/prometheus/procfs/Makefile create mode 100644 vendor/github.com/prometheus/procfs/NOTICE create mode 100644 vendor/github.com/prometheus/procfs/README.md create mode 100644 vendor/github.com/prometheus/procfs/buddyinfo.go create mode 100644 vendor/github.com/prometheus/procfs/doc.go create mode 100644 vendor/github.com/prometheus/procfs/fixtures.ttar create mode 100644 vendor/github.com/prometheus/procfs/fs.go create mode 100644 vendor/github.com/prometheus/procfs/internal/util/parse.go create mode 100644 vendor/github.com/prometheus/procfs/ipvs.go create mode 100644 vendor/github.com/prometheus/procfs/mdstat.go create mode 100644 vendor/github.com/prometheus/procfs/mountstats.go create mode 100644 vendor/github.com/prometheus/procfs/net_dev.go create mode 100644 vendor/github.com/prometheus/procfs/nfs/nfs.go create mode 100644 vendor/github.com/prometheus/procfs/nfs/parse.go create mode 100644 vendor/github.com/prometheus/procfs/nfs/parse_nfs.go create mode 100644 vendor/github.com/prometheus/procfs/nfs/parse_nfsd.go create mode 100644 vendor/github.com/prometheus/procfs/proc.go create mode 100644 vendor/github.com/prometheus/procfs/proc_io.go create mode 100644 vendor/github.com/prometheus/procfs/proc_limits.go create mode 100644 vendor/github.com/prometheus/procfs/proc_ns.go create mode 100644 vendor/github.com/prometheus/procfs/proc_stat.go create mode 100644 vendor/github.com/prometheus/procfs/stat.go create mode 100755 vendor/github.com/prometheus/procfs/ttar create mode 100644 vendor/github.com/prometheus/procfs/xfrm.go create mode 100644 vendor/github.com/prometheus/procfs/xfs/parse.go create mode 100644 vendor/github.com/prometheus/procfs/xfs/xfs.go create mode 100644 vendor/github.com/satori/go.uuid/LICENSE create mode 100644 vendor/github.com/satori/go.uuid/README.md create mode 100644 vendor/github.com/satori/go.uuid/uuid.go create mode 100644 vendor/github.com/shopspring/decimal/LICENSE create mode 100644 vendor/github.com/shopspring/decimal/README.md create mode 100644 vendor/github.com/shopspring/decimal/decimal-go.go create mode 100644 vendor/github.com/shopspring/decimal/decimal.go create mode 100644 vendor/github.com/shopspring/decimal/rounding.go create mode 100644 vendor/github.com/sirupsen/logrus/CHANGELOG.md create mode 100644 vendor/github.com/sirupsen/logrus/LICENSE create mode 100644 vendor/github.com/sirupsen/logrus/README.md create mode 100644 vendor/github.com/sirupsen/logrus/alt_exit.go create mode 100644 vendor/github.com/sirupsen/logrus/appveyor.yml create mode 100644 vendor/github.com/sirupsen/logrus/doc.go create mode 100644 vendor/github.com/sirupsen/logrus/entry.go create mode 100644 vendor/github.com/sirupsen/logrus/exported.go create mode 100644 vendor/github.com/sirupsen/logrus/formatter.go create mode 100644 vendor/github.com/sirupsen/logrus/hooks.go create mode 100644 vendor/github.com/sirupsen/logrus/json_formatter.go create mode 100644 vendor/github.com/sirupsen/logrus/logger.go create mode 100644 vendor/github.com/sirupsen/logrus/logrus.go create mode 100644 vendor/github.com/sirupsen/logrus/terminal_bsd.go create mode 100644 vendor/github.com/sirupsen/logrus/terminal_check_appengine.go create mode 100644 vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go create mode 100644 vendor/github.com/sirupsen/logrus/terminal_linux.go create mode 100644 vendor/github.com/sirupsen/logrus/text_formatter.go create mode 100644 vendor/github.com/sirupsen/logrus/writer.go create mode 100644 vendor/vendor.json diff --git a/.gitignore b/.gitignore index 0ea47b1..dd62755 100644 --- a/.gitignore +++ b/.gitignore @@ -19,5 +19,4 @@ website/vendor test.json pkg/ dist/ -.vscode/ -vendor/ \ No newline at end of file +.vscode/ \ No newline at end of file diff --git a/vendor/github.com/alecthomas/template/LICENSE b/vendor/github.com/alecthomas/template/LICENSE new file mode 100644 index 0000000..7448756 --- /dev/null +++ b/vendor/github.com/alecthomas/template/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2012 The Go Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/alecthomas/template/README.md b/vendor/github.com/alecthomas/template/README.md new file mode 100644 index 0000000..ef6a8ee --- /dev/null +++ b/vendor/github.com/alecthomas/template/README.md @@ -0,0 +1,25 @@ +# Go's `text/template` package with newline elision + +This is a fork of Go 1.4's [text/template](http://golang.org/pkg/text/template/) package with one addition: a backslash immediately after a closing delimiter will delete all subsequent newlines until a non-newline. + +eg. + +``` +{{if true}}\ +hello +{{end}}\ +``` + +Will result in: + +``` +hello\n +``` + +Rather than: + +``` +\n +hello\n +\n +``` diff --git a/vendor/github.com/alecthomas/template/doc.go b/vendor/github.com/alecthomas/template/doc.go new file mode 100644 index 0000000..223c595 --- /dev/null +++ b/vendor/github.com/alecthomas/template/doc.go @@ -0,0 +1,406 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +/* +Package template implements data-driven templates for generating textual output. + +To generate HTML output, see package html/template, which has the same interface +as this package but automatically secures HTML output against certain attacks. + +Templates are executed by applying them to a data structure. Annotations in the +template refer to elements of the data structure (typically a field of a struct +or a key in a map) to control execution and derive values to be displayed. +Execution of the template walks the structure and sets the cursor, represented +by a period '.' and called "dot", to the value at the current location in the +structure as execution proceeds. + +The input text for a template is UTF-8-encoded text in any format. +"Actions"--data evaluations or control structures--are delimited by +"{{" and "}}"; all text outside actions is copied to the output unchanged. +Actions may not span newlines, although comments can. + +Once parsed, a template may be executed safely in parallel. + +Here is a trivial example that prints "17 items are made of wool". + + type Inventory struct { + Material string + Count uint + } + sweaters := Inventory{"wool", 17} + tmpl, err := template.New("test").Parse("{{.Count}} items are made of {{.Material}}") + if err != nil { panic(err) } + err = tmpl.Execute(os.Stdout, sweaters) + if err != nil { panic(err) } + +More intricate examples appear below. + +Actions + +Here is the list of actions. "Arguments" and "pipelines" are evaluations of +data, defined in detail below. + +*/ +// {{/* a comment */}} +// A comment; discarded. May contain newlines. +// Comments do not nest and must start and end at the +// delimiters, as shown here. +/* + + {{pipeline}} + The default textual representation of the value of the pipeline + is copied to the output. + + {{if pipeline}} T1 {{end}} + If the value of the pipeline is empty, no output is generated; + otherwise, T1 is executed. The empty values are false, 0, any + nil pointer or interface value, and any array, slice, map, or + string of length zero. + Dot is unaffected. + + {{if pipeline}} T1 {{else}} T0 {{end}} + If the value of the pipeline is empty, T0 is executed; + otherwise, T1 is executed. Dot is unaffected. + + {{if pipeline}} T1 {{else if pipeline}} T0 {{end}} + To simplify the appearance of if-else chains, the else action + of an if may include another if directly; the effect is exactly + the same as writing + {{if pipeline}} T1 {{else}}{{if pipeline}} T0 {{end}}{{end}} + + {{range pipeline}} T1 {{end}} + The value of the pipeline must be an array, slice, map, or channel. + If the value of the pipeline has length zero, nothing is output; + otherwise, dot is set to the successive elements of the array, + slice, or map and T1 is executed. If the value is a map and the + keys are of basic type with a defined order ("comparable"), the + elements will be visited in sorted key order. + + {{range pipeline}} T1 {{else}} T0 {{end}} + The value of the pipeline must be an array, slice, map, or channel. + If the value of the pipeline has length zero, dot is unaffected and + T0 is executed; otherwise, dot is set to the successive elements + of the array, slice, or map and T1 is executed. + + {{template "name"}} + The template with the specified name is executed with nil data. + + {{template "name" pipeline}} + The template with the specified name is executed with dot set + to the value of the pipeline. + + {{with pipeline}} T1 {{end}} + If the value of the pipeline is empty, no output is generated; + otherwise, dot is set to the value of the pipeline and T1 is + executed. + + {{with pipeline}} T1 {{else}} T0 {{end}} + If the value of the pipeline is empty, dot is unaffected and T0 + is executed; otherwise, dot is set to the value of the pipeline + and T1 is executed. + +Arguments + +An argument is a simple value, denoted by one of the following. + + - A boolean, string, character, integer, floating-point, imaginary + or complex constant in Go syntax. These behave like Go's untyped + constants, although raw strings may not span newlines. + - The keyword nil, representing an untyped Go nil. + - The character '.' (period): + . + The result is the value of dot. + - A variable name, which is a (possibly empty) alphanumeric string + preceded by a dollar sign, such as + $piOver2 + or + $ + The result is the value of the variable. + Variables are described below. + - The name of a field of the data, which must be a struct, preceded + by a period, such as + .Field + The result is the value of the field. Field invocations may be + chained: + .Field1.Field2 + Fields can also be evaluated on variables, including chaining: + $x.Field1.Field2 + - The name of a key of the data, which must be a map, preceded + by a period, such as + .Key + The result is the map element value indexed by the key. + Key invocations may be chained and combined with fields to any + depth: + .Field1.Key1.Field2.Key2 + Although the key must be an alphanumeric identifier, unlike with + field names they do not need to start with an upper case letter. + Keys can also be evaluated on variables, including chaining: + $x.key1.key2 + - The name of a niladic method of the data, preceded by a period, + such as + .Method + The result is the value of invoking the method with dot as the + receiver, dot.Method(). Such a method must have one return value (of + any type) or two return values, the second of which is an error. + If it has two and the returned error is non-nil, execution terminates + and an error is returned to the caller as the value of Execute. + Method invocations may be chained and combined with fields and keys + to any depth: + .Field1.Key1.Method1.Field2.Key2.Method2 + Methods can also be evaluated on variables, including chaining: + $x.Method1.Field + - The name of a niladic function, such as + fun + The result is the value of invoking the function, fun(). The return + types and values behave as in methods. Functions and function + names are described below. + - A parenthesized instance of one the above, for grouping. The result + may be accessed by a field or map key invocation. + print (.F1 arg1) (.F2 arg2) + (.StructValuedMethod "arg").Field + +Arguments may evaluate to any type; if they are pointers the implementation +automatically indirects to the base type when required. +If an evaluation yields a function value, such as a function-valued +field of a struct, the function is not invoked automatically, but it +can be used as a truth value for an if action and the like. To invoke +it, use the call function, defined below. + +A pipeline is a possibly chained sequence of "commands". A command is a simple +value (argument) or a function or method call, possibly with multiple arguments: + + Argument + The result is the value of evaluating the argument. + .Method [Argument...] + The method can be alone or the last element of a chain but, + unlike methods in the middle of a chain, it can take arguments. + The result is the value of calling the method with the + arguments: + dot.Method(Argument1, etc.) + functionName [Argument...] + The result is the value of calling the function associated + with the name: + function(Argument1, etc.) + Functions and function names are described below. + +Pipelines + +A pipeline may be "chained" by separating a sequence of commands with pipeline +characters '|'. In a chained pipeline, the result of the each command is +passed as the last argument of the following command. The output of the final +command in the pipeline is the value of the pipeline. + +The output of a command will be either one value or two values, the second of +which has type error. If that second value is present and evaluates to +non-nil, execution terminates and the error is returned to the caller of +Execute. + +Variables + +A pipeline inside an action may initialize a variable to capture the result. +The initialization has syntax + + $variable := pipeline + +where $variable is the name of the variable. An action that declares a +variable produces no output. + +If a "range" action initializes a variable, the variable is set to the +successive elements of the iteration. Also, a "range" may declare two +variables, separated by a comma: + + range $index, $element := pipeline + +in which case $index and $element are set to the successive values of the +array/slice index or map key and element, respectively. Note that if there is +only one variable, it is assigned the element; this is opposite to the +convention in Go range clauses. + +A variable's scope extends to the "end" action of the control structure ("if", +"with", or "range") in which it is declared, or to the end of the template if +there is no such control structure. A template invocation does not inherit +variables from the point of its invocation. + +When execution begins, $ is set to the data argument passed to Execute, that is, +to the starting value of dot. + +Examples + +Here are some example one-line templates demonstrating pipelines and variables. +All produce the quoted word "output": + + {{"\"output\""}} + A string constant. + {{`"output"`}} + A raw string constant. + {{printf "%q" "output"}} + A function call. + {{"output" | printf "%q"}} + A function call whose final argument comes from the previous + command. + {{printf "%q" (print "out" "put")}} + A parenthesized argument. + {{"put" | printf "%s%s" "out" | printf "%q"}} + A more elaborate call. + {{"output" | printf "%s" | printf "%q"}} + A longer chain. + {{with "output"}}{{printf "%q" .}}{{end}} + A with action using dot. + {{with $x := "output" | printf "%q"}}{{$x}}{{end}} + A with action that creates and uses a variable. + {{with $x := "output"}}{{printf "%q" $x}}{{end}} + A with action that uses the variable in another action. + {{with $x := "output"}}{{$x | printf "%q"}}{{end}} + The same, but pipelined. + +Functions + +During execution functions are found in two function maps: first in the +template, then in the global function map. By default, no functions are defined +in the template but the Funcs method can be used to add them. + +Predefined global functions are named as follows. + + and + Returns the boolean AND of its arguments by returning the + first empty argument or the last argument, that is, + "and x y" behaves as "if x then y else x". All the + arguments are evaluated. + call + Returns the result of calling the first argument, which + must be a function, with the remaining arguments as parameters. + Thus "call .X.Y 1 2" is, in Go notation, dot.X.Y(1, 2) where + Y is a func-valued field, map entry, or the like. + The first argument must be the result of an evaluation + that yields a value of function type (as distinct from + a predefined function such as print). The function must + return either one or two result values, the second of which + is of type error. If the arguments don't match the function + or the returned error value is non-nil, execution stops. + html + Returns the escaped HTML equivalent of the textual + representation of its arguments. + index + Returns the result of indexing its first argument by the + following arguments. Thus "index x 1 2 3" is, in Go syntax, + x[1][2][3]. Each indexed item must be a map, slice, or array. + js + Returns the escaped JavaScript equivalent of the textual + representation of its arguments. + len + Returns the integer length of its argument. + not + Returns the boolean negation of its single argument. + or + Returns the boolean OR of its arguments by returning the + first non-empty argument or the last argument, that is, + "or x y" behaves as "if x then x else y". All the + arguments are evaluated. + print + An alias for fmt.Sprint + printf + An alias for fmt.Sprintf + println + An alias for fmt.Sprintln + urlquery + Returns the escaped value of the textual representation of + its arguments in a form suitable for embedding in a URL query. + +The boolean functions take any zero value to be false and a non-zero +value to be true. + +There is also a set of binary comparison operators defined as +functions: + + eq + Returns the boolean truth of arg1 == arg2 + ne + Returns the boolean truth of arg1 != arg2 + lt + Returns the boolean truth of arg1 < arg2 + le + Returns the boolean truth of arg1 <= arg2 + gt + Returns the boolean truth of arg1 > arg2 + ge + Returns the boolean truth of arg1 >= arg2 + +For simpler multi-way equality tests, eq (only) accepts two or more +arguments and compares the second and subsequent to the first, +returning in effect + + arg1==arg2 || arg1==arg3 || arg1==arg4 ... + +(Unlike with || in Go, however, eq is a function call and all the +arguments will be evaluated.) + +The comparison functions work on basic types only (or named basic +types, such as "type Celsius float32"). They implement the Go rules +for comparison of values, except that size and exact type are +ignored, so any integer value, signed or unsigned, may be compared +with any other integer value. (The arithmetic value is compared, +not the bit pattern, so all negative integers are less than all +unsigned integers.) However, as usual, one may not compare an int +with a float32 and so on. + +Associated templates + +Each template is named by a string specified when it is created. Also, each +template is associated with zero or more other templates that it may invoke by +name; such associations are transitive and form a name space of templates. + +A template may use a template invocation to instantiate another associated +template; see the explanation of the "template" action above. The name must be +that of a template associated with the template that contains the invocation. + +Nested template definitions + +When parsing a template, another template may be defined and associated with the +template being parsed. Template definitions must appear at the top level of the +template, much like global variables in a Go program. + +The syntax of such definitions is to surround each template declaration with a +"define" and "end" action. + +The define action names the template being created by providing a string +constant. Here is a simple example: + + `{{define "T1"}}ONE{{end}} + {{define "T2"}}TWO{{end}} + {{define "T3"}}{{template "T1"}} {{template "T2"}}{{end}} + {{template "T3"}}` + +This defines two templates, T1 and T2, and a third T3 that invokes the other two +when it is executed. Finally it invokes T3. If executed this template will +produce the text + + ONE TWO + +By construction, a template may reside in only one association. If it's +necessary to have a template addressable from multiple associations, the +template definition must be parsed multiple times to create distinct *Template +values, or must be copied with the Clone or AddParseTree method. + +Parse may be called multiple times to assemble the various associated templates; +see the ParseFiles and ParseGlob functions and methods for simple ways to parse +related templates stored in files. + +A template may be executed directly or through ExecuteTemplate, which executes +an associated template identified by name. To invoke our example above, we +might write, + + err := tmpl.Execute(os.Stdout, "no data needed") + if err != nil { + log.Fatalf("execution failed: %s", err) + } + +or to invoke a particular template explicitly by name, + + err := tmpl.ExecuteTemplate(os.Stdout, "T2", "no data needed") + if err != nil { + log.Fatalf("execution failed: %s", err) + } + +*/ +package template diff --git a/vendor/github.com/alecthomas/template/exec.go b/vendor/github.com/alecthomas/template/exec.go new file mode 100644 index 0000000..c3078e5 --- /dev/null +++ b/vendor/github.com/alecthomas/template/exec.go @@ -0,0 +1,845 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package template + +import ( + "bytes" + "fmt" + "io" + "reflect" + "runtime" + "sort" + "strings" + + "github.com/alecthomas/template/parse" +) + +// state represents the state of an execution. It's not part of the +// template so that multiple executions of the same template +// can execute in parallel. +type state struct { + tmpl *Template + wr io.Writer + node parse.Node // current node, for errors + vars []variable // push-down stack of variable values. +} + +// variable holds the dynamic value of a variable such as $, $x etc. +type variable struct { + name string + value reflect.Value +} + +// push pushes a new variable on the stack. +func (s *state) push(name string, value reflect.Value) { + s.vars = append(s.vars, variable{name, value}) +} + +// mark returns the length of the variable stack. +func (s *state) mark() int { + return len(s.vars) +} + +// pop pops the variable stack up to the mark. +func (s *state) pop(mark int) { + s.vars = s.vars[0:mark] +} + +// setVar overwrites the top-nth variable on the stack. Used by range iterations. +func (s *state) setVar(n int, value reflect.Value) { + s.vars[len(s.vars)-n].value = value +} + +// varValue returns the value of the named variable. +func (s *state) varValue(name string) reflect.Value { + for i := s.mark() - 1; i >= 0; i-- { + if s.vars[i].name == name { + return s.vars[i].value + } + } + s.errorf("undefined variable: %s", name) + return zero +} + +var zero reflect.Value + +// at marks the state to be on node n, for error reporting. +func (s *state) at(node parse.Node) { + s.node = node +} + +// doublePercent returns the string with %'s replaced by %%, if necessary, +// so it can be used safely inside a Printf format string. +func doublePercent(str string) string { + if strings.Contains(str, "%") { + str = strings.Replace(str, "%", "%%", -1) + } + return str +} + +// errorf formats the error and terminates processing. +func (s *state) errorf(format string, args ...interface{}) { + name := doublePercent(s.tmpl.Name()) + if s.node == nil { + format = fmt.Sprintf("template: %s: %s", name, format) + } else { + location, context := s.tmpl.ErrorContext(s.node) + format = fmt.Sprintf("template: %s: executing %q at <%s>: %s", location, name, doublePercent(context), format) + } + panic(fmt.Errorf(format, args...)) +} + +// errRecover is the handler that turns panics into returns from the top +// level of Parse. +func errRecover(errp *error) { + e := recover() + if e != nil { + switch err := e.(type) { + case runtime.Error: + panic(e) + case error: + *errp = err + default: + panic(e) + } + } +} + +// ExecuteTemplate applies the template associated with t that has the given name +// to the specified data object and writes the output to wr. +// If an error occurs executing the template or writing its output, +// execution stops, but partial results may already have been written to +// the output writer. +// A template may be executed safely in parallel. +func (t *Template) ExecuteTemplate(wr io.Writer, name string, data interface{}) error { + tmpl := t.tmpl[name] + if tmpl == nil { + return fmt.Errorf("template: no template %q associated with template %q", name, t.name) + } + return tmpl.Execute(wr, data) +} + +// Execute applies a parsed template to the specified data object, +// and writes the output to wr. +// If an error occurs executing the template or writing its output, +// execution stops, but partial results may already have been written to +// the output writer. +// A template may be executed safely in parallel. +func (t *Template) Execute(wr io.Writer, data interface{}) (err error) { + defer errRecover(&err) + value := reflect.ValueOf(data) + state := &state{ + tmpl: t, + wr: wr, + vars: []variable{{"$", value}}, + } + t.init() + if t.Tree == nil || t.Root == nil { + var b bytes.Buffer + for name, tmpl := range t.tmpl { + if tmpl.Tree == nil || tmpl.Root == nil { + continue + } + if b.Len() > 0 { + b.WriteString(", ") + } + fmt.Fprintf(&b, "%q", name) + } + var s string + if b.Len() > 0 { + s = "; defined templates are: " + b.String() + } + state.errorf("%q is an incomplete or empty template%s", t.Name(), s) + } + state.walk(value, t.Root) + return +} + +// Walk functions step through the major pieces of the template structure, +// generating output as they go. +func (s *state) walk(dot reflect.Value, node parse.Node) { + s.at(node) + switch node := node.(type) { + case *parse.ActionNode: + // Do not pop variables so they persist until next end. + // Also, if the action declares variables, don't print the result. + val := s.evalPipeline(dot, node.Pipe) + if len(node.Pipe.Decl) == 0 { + s.printValue(node, val) + } + case *parse.IfNode: + s.walkIfOrWith(parse.NodeIf, dot, node.Pipe, node.List, node.ElseList) + case *parse.ListNode: + for _, node := range node.Nodes { + s.walk(dot, node) + } + case *parse.RangeNode: + s.walkRange(dot, node) + case *parse.TemplateNode: + s.walkTemplate(dot, node) + case *parse.TextNode: + if _, err := s.wr.Write(node.Text); err != nil { + s.errorf("%s", err) + } + case *parse.WithNode: + s.walkIfOrWith(parse.NodeWith, dot, node.Pipe, node.List, node.ElseList) + default: + s.errorf("unknown node: %s", node) + } +} + +// walkIfOrWith walks an 'if' or 'with' node. The two control structures +// are identical in behavior except that 'with' sets dot. +func (s *state) walkIfOrWith(typ parse.NodeType, dot reflect.Value, pipe *parse.PipeNode, list, elseList *parse.ListNode) { + defer s.pop(s.mark()) + val := s.evalPipeline(dot, pipe) + truth, ok := isTrue(val) + if !ok { + s.errorf("if/with can't use %v", val) + } + if truth { + if typ == parse.NodeWith { + s.walk(val, list) + } else { + s.walk(dot, list) + } + } else if elseList != nil { + s.walk(dot, elseList) + } +} + +// isTrue reports whether the value is 'true', in the sense of not the zero of its type, +// and whether the value has a meaningful truth value. +func isTrue(val reflect.Value) (truth, ok bool) { + if !val.IsValid() { + // Something like var x interface{}, never set. It's a form of nil. + return false, true + } + switch val.Kind() { + case reflect.Array, reflect.Map, reflect.Slice, reflect.String: + truth = val.Len() > 0 + case reflect.Bool: + truth = val.Bool() + case reflect.Complex64, reflect.Complex128: + truth = val.Complex() != 0 + case reflect.Chan, reflect.Func, reflect.Ptr, reflect.Interface: + truth = !val.IsNil() + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: + truth = val.Int() != 0 + case reflect.Float32, reflect.Float64: + truth = val.Float() != 0 + case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: + truth = val.Uint() != 0 + case reflect.Struct: + truth = true // Struct values are always true. + default: + return + } + return truth, true +} + +func (s *state) walkRange(dot reflect.Value, r *parse.RangeNode) { + s.at(r) + defer s.pop(s.mark()) + val, _ := indirect(s.evalPipeline(dot, r.Pipe)) + // mark top of stack before any variables in the body are pushed. + mark := s.mark() + oneIteration := func(index, elem reflect.Value) { + // Set top var (lexically the second if there are two) to the element. + if len(r.Pipe.Decl) > 0 { + s.setVar(1, elem) + } + // Set next var (lexically the first if there are two) to the index. + if len(r.Pipe.Decl) > 1 { + s.setVar(2, index) + } + s.walk(elem, r.List) + s.pop(mark) + } + switch val.Kind() { + case reflect.Array, reflect.Slice: + if val.Len() == 0 { + break + } + for i := 0; i < val.Len(); i++ { + oneIteration(reflect.ValueOf(i), val.Index(i)) + } + return + case reflect.Map: + if val.Len() == 0 { + break + } + for _, key := range sortKeys(val.MapKeys()) { + oneIteration(key, val.MapIndex(key)) + } + return + case reflect.Chan: + if val.IsNil() { + break + } + i := 0 + for ; ; i++ { + elem, ok := val.Recv() + if !ok { + break + } + oneIteration(reflect.ValueOf(i), elem) + } + if i == 0 { + break + } + return + case reflect.Invalid: + break // An invalid value is likely a nil map, etc. and acts like an empty map. + default: + s.errorf("range can't iterate over %v", val) + } + if r.ElseList != nil { + s.walk(dot, r.ElseList) + } +} + +func (s *state) walkTemplate(dot reflect.Value, t *parse.TemplateNode) { + s.at(t) + tmpl := s.tmpl.tmpl[t.Name] + if tmpl == nil { + s.errorf("template %q not defined", t.Name) + } + // Variables declared by the pipeline persist. + dot = s.evalPipeline(dot, t.Pipe) + newState := *s + newState.tmpl = tmpl + // No dynamic scoping: template invocations inherit no variables. + newState.vars = []variable{{"$", dot}} + newState.walk(dot, tmpl.Root) +} + +// Eval functions evaluate pipelines, commands, and their elements and extract +// values from the data structure by examining fields, calling methods, and so on. +// The printing of those values happens only through walk functions. + +// evalPipeline returns the value acquired by evaluating a pipeline. If the +// pipeline has a variable declaration, the variable will be pushed on the +// stack. Callers should therefore pop the stack after they are finished +// executing commands depending on the pipeline value. +func (s *state) evalPipeline(dot reflect.Value, pipe *parse.PipeNode) (value reflect.Value) { + if pipe == nil { + return + } + s.at(pipe) + for _, cmd := range pipe.Cmds { + value = s.evalCommand(dot, cmd, value) // previous value is this one's final arg. + // If the object has type interface{}, dig down one level to the thing inside. + if value.Kind() == reflect.Interface && value.Type().NumMethod() == 0 { + value = reflect.ValueOf(value.Interface()) // lovely! + } + } + for _, variable := range pipe.Decl { + s.push(variable.Ident[0], value) + } + return value +} + +func (s *state) notAFunction(args []parse.Node, final reflect.Value) { + if len(args) > 1 || final.IsValid() { + s.errorf("can't give argument to non-function %s", args[0]) + } +} + +func (s *state) evalCommand(dot reflect.Value, cmd *parse.CommandNode, final reflect.Value) reflect.Value { + firstWord := cmd.Args[0] + switch n := firstWord.(type) { + case *parse.FieldNode: + return s.evalFieldNode(dot, n, cmd.Args, final) + case *parse.ChainNode: + return s.evalChainNode(dot, n, cmd.Args, final) + case *parse.IdentifierNode: + // Must be a function. + return s.evalFunction(dot, n, cmd, cmd.Args, final) + case *parse.PipeNode: + // Parenthesized pipeline. The arguments are all inside the pipeline; final is ignored. + return s.evalPipeline(dot, n) + case *parse.VariableNode: + return s.evalVariableNode(dot, n, cmd.Args, final) + } + s.at(firstWord) + s.notAFunction(cmd.Args, final) + switch word := firstWord.(type) { + case *parse.BoolNode: + return reflect.ValueOf(word.True) + case *parse.DotNode: + return dot + case *parse.NilNode: + s.errorf("nil is not a command") + case *parse.NumberNode: + return s.idealConstant(word) + case *parse.StringNode: + return reflect.ValueOf(word.Text) + } + s.errorf("can't evaluate command %q", firstWord) + panic("not reached") +} + +// idealConstant is called to return the value of a number in a context where +// we don't know the type. In that case, the syntax of the number tells us +// its type, and we use Go rules to resolve. Note there is no such thing as +// a uint ideal constant in this situation - the value must be of int type. +func (s *state) idealConstant(constant *parse.NumberNode) reflect.Value { + // These are ideal constants but we don't know the type + // and we have no context. (If it was a method argument, + // we'd know what we need.) The syntax guides us to some extent. + s.at(constant) + switch { + case constant.IsComplex: + return reflect.ValueOf(constant.Complex128) // incontrovertible. + case constant.IsFloat && !isHexConstant(constant.Text) && strings.IndexAny(constant.Text, ".eE") >= 0: + return reflect.ValueOf(constant.Float64) + case constant.IsInt: + n := int(constant.Int64) + if int64(n) != constant.Int64 { + s.errorf("%s overflows int", constant.Text) + } + return reflect.ValueOf(n) + case constant.IsUint: + s.errorf("%s overflows int", constant.Text) + } + return zero +} + +func isHexConstant(s string) bool { + return len(s) > 2 && s[0] == '0' && (s[1] == 'x' || s[1] == 'X') +} + +func (s *state) evalFieldNode(dot reflect.Value, field *parse.FieldNode, args []parse.Node, final reflect.Value) reflect.Value { + s.at(field) + return s.evalFieldChain(dot, dot, field, field.Ident, args, final) +} + +func (s *state) evalChainNode(dot reflect.Value, chain *parse.ChainNode, args []parse.Node, final reflect.Value) reflect.Value { + s.at(chain) + // (pipe).Field1.Field2 has pipe as .Node, fields as .Field. Eval the pipeline, then the fields. + pipe := s.evalArg(dot, nil, chain.Node) + if len(chain.Field) == 0 { + s.errorf("internal error: no fields in evalChainNode") + } + return s.evalFieldChain(dot, pipe, chain, chain.Field, args, final) +} + +func (s *state) evalVariableNode(dot reflect.Value, variable *parse.VariableNode, args []parse.Node, final reflect.Value) reflect.Value { + // $x.Field has $x as the first ident, Field as the second. Eval the var, then the fields. + s.at(variable) + value := s.varValue(variable.Ident[0]) + if len(variable.Ident) == 1 { + s.notAFunction(args, final) + return value + } + return s.evalFieldChain(dot, value, variable, variable.Ident[1:], args, final) +} + +// evalFieldChain evaluates .X.Y.Z possibly followed by arguments. +// dot is the environment in which to evaluate arguments, while +// receiver is the value being walked along the chain. +func (s *state) evalFieldChain(dot, receiver reflect.Value, node parse.Node, ident []string, args []parse.Node, final reflect.Value) reflect.Value { + n := len(ident) + for i := 0; i < n-1; i++ { + receiver = s.evalField(dot, ident[i], node, nil, zero, receiver) + } + // Now if it's a method, it gets the arguments. + return s.evalField(dot, ident[n-1], node, args, final, receiver) +} + +func (s *state) evalFunction(dot reflect.Value, node *parse.IdentifierNode, cmd parse.Node, args []parse.Node, final reflect.Value) reflect.Value { + s.at(node) + name := node.Ident + function, ok := findFunction(name, s.tmpl) + if !ok { + s.errorf("%q is not a defined function", name) + } + return s.evalCall(dot, function, cmd, name, args, final) +} + +// evalField evaluates an expression like (.Field) or (.Field arg1 arg2). +// The 'final' argument represents the return value from the preceding +// value of the pipeline, if any. +func (s *state) evalField(dot reflect.Value, fieldName string, node parse.Node, args []parse.Node, final, receiver reflect.Value) reflect.Value { + if !receiver.IsValid() { + return zero + } + typ := receiver.Type() + receiver, _ = indirect(receiver) + // Unless it's an interface, need to get to a value of type *T to guarantee + // we see all methods of T and *T. + ptr := receiver + if ptr.Kind() != reflect.Interface && ptr.CanAddr() { + ptr = ptr.Addr() + } + if method := ptr.MethodByName(fieldName); method.IsValid() { + return s.evalCall(dot, method, node, fieldName, args, final) + } + hasArgs := len(args) > 1 || final.IsValid() + // It's not a method; must be a field of a struct or an element of a map. The receiver must not be nil. + receiver, isNil := indirect(receiver) + if isNil { + s.errorf("nil pointer evaluating %s.%s", typ, fieldName) + } + switch receiver.Kind() { + case reflect.Struct: + tField, ok := receiver.Type().FieldByName(fieldName) + if ok { + field := receiver.FieldByIndex(tField.Index) + if tField.PkgPath != "" { // field is unexported + s.errorf("%s is an unexported field of struct type %s", fieldName, typ) + } + // If it's a function, we must call it. + if hasArgs { + s.errorf("%s has arguments but cannot be invoked as function", fieldName) + } + return field + } + s.errorf("%s is not a field of struct type %s", fieldName, typ) + case reflect.Map: + // If it's a map, attempt to use the field name as a key. + nameVal := reflect.ValueOf(fieldName) + if nameVal.Type().AssignableTo(receiver.Type().Key()) { + if hasArgs { + s.errorf("%s is not a method but has arguments", fieldName) + } + return receiver.MapIndex(nameVal) + } + } + s.errorf("can't evaluate field %s in type %s", fieldName, typ) + panic("not reached") +} + +var ( + errorType = reflect.TypeOf((*error)(nil)).Elem() + fmtStringerType = reflect.TypeOf((*fmt.Stringer)(nil)).Elem() +) + +// evalCall executes a function or method call. If it's a method, fun already has the receiver bound, so +// it looks just like a function call. The arg list, if non-nil, includes (in the manner of the shell), arg[0] +// as the function itself. +func (s *state) evalCall(dot, fun reflect.Value, node parse.Node, name string, args []parse.Node, final reflect.Value) reflect.Value { + if args != nil { + args = args[1:] // Zeroth arg is function name/node; not passed to function. + } + typ := fun.Type() + numIn := len(args) + if final.IsValid() { + numIn++ + } + numFixed := len(args) + if typ.IsVariadic() { + numFixed = typ.NumIn() - 1 // last arg is the variadic one. + if numIn < numFixed { + s.errorf("wrong number of args for %s: want at least %d got %d", name, typ.NumIn()-1, len(args)) + } + } else if numIn < typ.NumIn()-1 || !typ.IsVariadic() && numIn != typ.NumIn() { + s.errorf("wrong number of args for %s: want %d got %d", name, typ.NumIn(), len(args)) + } + if !goodFunc(typ) { + // TODO: This could still be a confusing error; maybe goodFunc should provide info. + s.errorf("can't call method/function %q with %d results", name, typ.NumOut()) + } + // Build the arg list. + argv := make([]reflect.Value, numIn) + // Args must be evaluated. Fixed args first. + i := 0 + for ; i < numFixed && i < len(args); i++ { + argv[i] = s.evalArg(dot, typ.In(i), args[i]) + } + // Now the ... args. + if typ.IsVariadic() { + argType := typ.In(typ.NumIn() - 1).Elem() // Argument is a slice. + for ; i < len(args); i++ { + argv[i] = s.evalArg(dot, argType, args[i]) + } + } + // Add final value if necessary. + if final.IsValid() { + t := typ.In(typ.NumIn() - 1) + if typ.IsVariadic() { + t = t.Elem() + } + argv[i] = s.validateType(final, t) + } + result := fun.Call(argv) + // If we have an error that is not nil, stop execution and return that error to the caller. + if len(result) == 2 && !result[1].IsNil() { + s.at(node) + s.errorf("error calling %s: %s", name, result[1].Interface().(error)) + } + return result[0] +} + +// canBeNil reports whether an untyped nil can be assigned to the type. See reflect.Zero. +func canBeNil(typ reflect.Type) bool { + switch typ.Kind() { + case reflect.Chan, reflect.Func, reflect.Interface, reflect.Map, reflect.Ptr, reflect.Slice: + return true + } + return false +} + +// validateType guarantees that the value is valid and assignable to the type. +func (s *state) validateType(value reflect.Value, typ reflect.Type) reflect.Value { + if !value.IsValid() { + if typ == nil || canBeNil(typ) { + // An untyped nil interface{}. Accept as a proper nil value. + return reflect.Zero(typ) + } + s.errorf("invalid value; expected %s", typ) + } + if typ != nil && !value.Type().AssignableTo(typ) { + if value.Kind() == reflect.Interface && !value.IsNil() { + value = value.Elem() + if value.Type().AssignableTo(typ) { + return value + } + // fallthrough + } + // Does one dereference or indirection work? We could do more, as we + // do with method receivers, but that gets messy and method receivers + // are much more constrained, so it makes more sense there than here. + // Besides, one is almost always all you need. + switch { + case value.Kind() == reflect.Ptr && value.Type().Elem().AssignableTo(typ): + value = value.Elem() + if !value.IsValid() { + s.errorf("dereference of nil pointer of type %s", typ) + } + case reflect.PtrTo(value.Type()).AssignableTo(typ) && value.CanAddr(): + value = value.Addr() + default: + s.errorf("wrong type for value; expected %s; got %s", typ, value.Type()) + } + } + return value +} + +func (s *state) evalArg(dot reflect.Value, typ reflect.Type, n parse.Node) reflect.Value { + s.at(n) + switch arg := n.(type) { + case *parse.DotNode: + return s.validateType(dot, typ) + case *parse.NilNode: + if canBeNil(typ) { + return reflect.Zero(typ) + } + s.errorf("cannot assign nil to %s", typ) + case *parse.FieldNode: + return s.validateType(s.evalFieldNode(dot, arg, []parse.Node{n}, zero), typ) + case *parse.VariableNode: + return s.validateType(s.evalVariableNode(dot, arg, nil, zero), typ) + case *parse.PipeNode: + return s.validateType(s.evalPipeline(dot, arg), typ) + case *parse.IdentifierNode: + return s.evalFunction(dot, arg, arg, nil, zero) + case *parse.ChainNode: + return s.validateType(s.evalChainNode(dot, arg, nil, zero), typ) + } + switch typ.Kind() { + case reflect.Bool: + return s.evalBool(typ, n) + case reflect.Complex64, reflect.Complex128: + return s.evalComplex(typ, n) + case reflect.Float32, reflect.Float64: + return s.evalFloat(typ, n) + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: + return s.evalInteger(typ, n) + case reflect.Interface: + if typ.NumMethod() == 0 { + return s.evalEmptyInterface(dot, n) + } + case reflect.String: + return s.evalString(typ, n) + case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: + return s.evalUnsignedInteger(typ, n) + } + s.errorf("can't handle %s for arg of type %s", n, typ) + panic("not reached") +} + +func (s *state) evalBool(typ reflect.Type, n parse.Node) reflect.Value { + s.at(n) + if n, ok := n.(*parse.BoolNode); ok { + value := reflect.New(typ).Elem() + value.SetBool(n.True) + return value + } + s.errorf("expected bool; found %s", n) + panic("not reached") +} + +func (s *state) evalString(typ reflect.Type, n parse.Node) reflect.Value { + s.at(n) + if n, ok := n.(*parse.StringNode); ok { + value := reflect.New(typ).Elem() + value.SetString(n.Text) + return value + } + s.errorf("expected string; found %s", n) + panic("not reached") +} + +func (s *state) evalInteger(typ reflect.Type, n parse.Node) reflect.Value { + s.at(n) + if n, ok := n.(*parse.NumberNode); ok && n.IsInt { + value := reflect.New(typ).Elem() + value.SetInt(n.Int64) + return value + } + s.errorf("expected integer; found %s", n) + panic("not reached") +} + +func (s *state) evalUnsignedInteger(typ reflect.Type, n parse.Node) reflect.Value { + s.at(n) + if n, ok := n.(*parse.NumberNode); ok && n.IsUint { + value := reflect.New(typ).Elem() + value.SetUint(n.Uint64) + return value + } + s.errorf("expected unsigned integer; found %s", n) + panic("not reached") +} + +func (s *state) evalFloat(typ reflect.Type, n parse.Node) reflect.Value { + s.at(n) + if n, ok := n.(*parse.NumberNode); ok && n.IsFloat { + value := reflect.New(typ).Elem() + value.SetFloat(n.Float64) + return value + } + s.errorf("expected float; found %s", n) + panic("not reached") +} + +func (s *state) evalComplex(typ reflect.Type, n parse.Node) reflect.Value { + if n, ok := n.(*parse.NumberNode); ok && n.IsComplex { + value := reflect.New(typ).Elem() + value.SetComplex(n.Complex128) + return value + } + s.errorf("expected complex; found %s", n) + panic("not reached") +} + +func (s *state) evalEmptyInterface(dot reflect.Value, n parse.Node) reflect.Value { + s.at(n) + switch n := n.(type) { + case *parse.BoolNode: + return reflect.ValueOf(n.True) + case *parse.DotNode: + return dot + case *parse.FieldNode: + return s.evalFieldNode(dot, n, nil, zero) + case *parse.IdentifierNode: + return s.evalFunction(dot, n, n, nil, zero) + case *parse.NilNode: + // NilNode is handled in evalArg, the only place that calls here. + s.errorf("evalEmptyInterface: nil (can't happen)") + case *parse.NumberNode: + return s.idealConstant(n) + case *parse.StringNode: + return reflect.ValueOf(n.Text) + case *parse.VariableNode: + return s.evalVariableNode(dot, n, nil, zero) + case *parse.PipeNode: + return s.evalPipeline(dot, n) + } + s.errorf("can't handle assignment of %s to empty interface argument", n) + panic("not reached") +} + +// indirect returns the item at the end of indirection, and a bool to indicate if it's nil. +// We indirect through pointers and empty interfaces (only) because +// non-empty interfaces have methods we might need. +func indirect(v reflect.Value) (rv reflect.Value, isNil bool) { + for ; v.Kind() == reflect.Ptr || v.Kind() == reflect.Interface; v = v.Elem() { + if v.IsNil() { + return v, true + } + if v.Kind() == reflect.Interface && v.NumMethod() > 0 { + break + } + } + return v, false +} + +// printValue writes the textual representation of the value to the output of +// the template. +func (s *state) printValue(n parse.Node, v reflect.Value) { + s.at(n) + iface, ok := printableValue(v) + if !ok { + s.errorf("can't print %s of type %s", n, v.Type()) + } + fmt.Fprint(s.wr, iface) +} + +// printableValue returns the, possibly indirected, interface value inside v that +// is best for a call to formatted printer. +func printableValue(v reflect.Value) (interface{}, bool) { + if v.Kind() == reflect.Ptr { + v, _ = indirect(v) // fmt.Fprint handles nil. + } + if !v.IsValid() { + return "", true + } + + if !v.Type().Implements(errorType) && !v.Type().Implements(fmtStringerType) { + if v.CanAddr() && (reflect.PtrTo(v.Type()).Implements(errorType) || reflect.PtrTo(v.Type()).Implements(fmtStringerType)) { + v = v.Addr() + } else { + switch v.Kind() { + case reflect.Chan, reflect.Func: + return nil, false + } + } + } + return v.Interface(), true +} + +// Types to help sort the keys in a map for reproducible output. + +type rvs []reflect.Value + +func (x rvs) Len() int { return len(x) } +func (x rvs) Swap(i, j int) { x[i], x[j] = x[j], x[i] } + +type rvInts struct{ rvs } + +func (x rvInts) Less(i, j int) bool { return x.rvs[i].Int() < x.rvs[j].Int() } + +type rvUints struct{ rvs } + +func (x rvUints) Less(i, j int) bool { return x.rvs[i].Uint() < x.rvs[j].Uint() } + +type rvFloats struct{ rvs } + +func (x rvFloats) Less(i, j int) bool { return x.rvs[i].Float() < x.rvs[j].Float() } + +type rvStrings struct{ rvs } + +func (x rvStrings) Less(i, j int) bool { return x.rvs[i].String() < x.rvs[j].String() } + +// sortKeys sorts (if it can) the slice of reflect.Values, which is a slice of map keys. +func sortKeys(v []reflect.Value) []reflect.Value { + if len(v) <= 1 { + return v + } + switch v[0].Kind() { + case reflect.Float32, reflect.Float64: + sort.Sort(rvFloats{v}) + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: + sort.Sort(rvInts{v}) + case reflect.String: + sort.Sort(rvStrings{v}) + case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: + sort.Sort(rvUints{v}) + } + return v +} diff --git a/vendor/github.com/alecthomas/template/funcs.go b/vendor/github.com/alecthomas/template/funcs.go new file mode 100644 index 0000000..39ee5ed --- /dev/null +++ b/vendor/github.com/alecthomas/template/funcs.go @@ -0,0 +1,598 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package template + +import ( + "bytes" + "errors" + "fmt" + "io" + "net/url" + "reflect" + "strings" + "unicode" + "unicode/utf8" +) + +// FuncMap is the type of the map defining the mapping from names to functions. +// Each function must have either a single return value, or two return values of +// which the second has type error. In that case, if the second (error) +// return value evaluates to non-nil during execution, execution terminates and +// Execute returns that error. +type FuncMap map[string]interface{} + +var builtins = FuncMap{ + "and": and, + "call": call, + "html": HTMLEscaper, + "index": index, + "js": JSEscaper, + "len": length, + "not": not, + "or": or, + "print": fmt.Sprint, + "printf": fmt.Sprintf, + "println": fmt.Sprintln, + "urlquery": URLQueryEscaper, + + // Comparisons + "eq": eq, // == + "ge": ge, // >= + "gt": gt, // > + "le": le, // <= + "lt": lt, // < + "ne": ne, // != +} + +var builtinFuncs = createValueFuncs(builtins) + +// createValueFuncs turns a FuncMap into a map[string]reflect.Value +func createValueFuncs(funcMap FuncMap) map[string]reflect.Value { + m := make(map[string]reflect.Value) + addValueFuncs(m, funcMap) + return m +} + +// addValueFuncs adds to values the functions in funcs, converting them to reflect.Values. +func addValueFuncs(out map[string]reflect.Value, in FuncMap) { + for name, fn := range in { + v := reflect.ValueOf(fn) + if v.Kind() != reflect.Func { + panic("value for " + name + " not a function") + } + if !goodFunc(v.Type()) { + panic(fmt.Errorf("can't install method/function %q with %d results", name, v.Type().NumOut())) + } + out[name] = v + } +} + +// addFuncs adds to values the functions in funcs. It does no checking of the input - +// call addValueFuncs first. +func addFuncs(out, in FuncMap) { + for name, fn := range in { + out[name] = fn + } +} + +// goodFunc checks that the function or method has the right result signature. +func goodFunc(typ reflect.Type) bool { + // We allow functions with 1 result or 2 results where the second is an error. + switch { + case typ.NumOut() == 1: + return true + case typ.NumOut() == 2 && typ.Out(1) == errorType: + return true + } + return false +} + +// findFunction looks for a function in the template, and global map. +func findFunction(name string, tmpl *Template) (reflect.Value, bool) { + if tmpl != nil && tmpl.common != nil { + if fn := tmpl.execFuncs[name]; fn.IsValid() { + return fn, true + } + } + if fn := builtinFuncs[name]; fn.IsValid() { + return fn, true + } + return reflect.Value{}, false +} + +// Indexing. + +// index returns the result of indexing its first argument by the following +// arguments. Thus "index x 1 2 3" is, in Go syntax, x[1][2][3]. Each +// indexed item must be a map, slice, or array. +func index(item interface{}, indices ...interface{}) (interface{}, error) { + v := reflect.ValueOf(item) + for _, i := range indices { + index := reflect.ValueOf(i) + var isNil bool + if v, isNil = indirect(v); isNil { + return nil, fmt.Errorf("index of nil pointer") + } + switch v.Kind() { + case reflect.Array, reflect.Slice, reflect.String: + var x int64 + switch index.Kind() { + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: + x = index.Int() + case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: + x = int64(index.Uint()) + default: + return nil, fmt.Errorf("cannot index slice/array with type %s", index.Type()) + } + if x < 0 || x >= int64(v.Len()) { + return nil, fmt.Errorf("index out of range: %d", x) + } + v = v.Index(int(x)) + case reflect.Map: + if !index.IsValid() { + index = reflect.Zero(v.Type().Key()) + } + if !index.Type().AssignableTo(v.Type().Key()) { + return nil, fmt.Errorf("%s is not index type for %s", index.Type(), v.Type()) + } + if x := v.MapIndex(index); x.IsValid() { + v = x + } else { + v = reflect.Zero(v.Type().Elem()) + } + default: + return nil, fmt.Errorf("can't index item of type %s", v.Type()) + } + } + return v.Interface(), nil +} + +// Length + +// length returns the length of the item, with an error if it has no defined length. +func length(item interface{}) (int, error) { + v, isNil := indirect(reflect.ValueOf(item)) + if isNil { + return 0, fmt.Errorf("len of nil pointer") + } + switch v.Kind() { + case reflect.Array, reflect.Chan, reflect.Map, reflect.Slice, reflect.String: + return v.Len(), nil + } + return 0, fmt.Errorf("len of type %s", v.Type()) +} + +// Function invocation + +// call returns the result of evaluating the first argument as a function. +// The function must return 1 result, or 2 results, the second of which is an error. +func call(fn interface{}, args ...interface{}) (interface{}, error) { + v := reflect.ValueOf(fn) + typ := v.Type() + if typ.Kind() != reflect.Func { + return nil, fmt.Errorf("non-function of type %s", typ) + } + if !goodFunc(typ) { + return nil, fmt.Errorf("function called with %d args; should be 1 or 2", typ.NumOut()) + } + numIn := typ.NumIn() + var dddType reflect.Type + if typ.IsVariadic() { + if len(args) < numIn-1 { + return nil, fmt.Errorf("wrong number of args: got %d want at least %d", len(args), numIn-1) + } + dddType = typ.In(numIn - 1).Elem() + } else { + if len(args) != numIn { + return nil, fmt.Errorf("wrong number of args: got %d want %d", len(args), numIn) + } + } + argv := make([]reflect.Value, len(args)) + for i, arg := range args { + value := reflect.ValueOf(arg) + // Compute the expected type. Clumsy because of variadics. + var argType reflect.Type + if !typ.IsVariadic() || i < numIn-1 { + argType = typ.In(i) + } else { + argType = dddType + } + if !value.IsValid() && canBeNil(argType) { + value = reflect.Zero(argType) + } + if !value.Type().AssignableTo(argType) { + return nil, fmt.Errorf("arg %d has type %s; should be %s", i, value.Type(), argType) + } + argv[i] = value + } + result := v.Call(argv) + if len(result) == 2 && !result[1].IsNil() { + return result[0].Interface(), result[1].Interface().(error) + } + return result[0].Interface(), nil +} + +// Boolean logic. + +func truth(a interface{}) bool { + t, _ := isTrue(reflect.ValueOf(a)) + return t +} + +// and computes the Boolean AND of its arguments, returning +// the first false argument it encounters, or the last argument. +func and(arg0 interface{}, args ...interface{}) interface{} { + if !truth(arg0) { + return arg0 + } + for i := range args { + arg0 = args[i] + if !truth(arg0) { + break + } + } + return arg0 +} + +// or computes the Boolean OR of its arguments, returning +// the first true argument it encounters, or the last argument. +func or(arg0 interface{}, args ...interface{}) interface{} { + if truth(arg0) { + return arg0 + } + for i := range args { + arg0 = args[i] + if truth(arg0) { + break + } + } + return arg0 +} + +// not returns the Boolean negation of its argument. +func not(arg interface{}) (truth bool) { + truth, _ = isTrue(reflect.ValueOf(arg)) + return !truth +} + +// Comparison. + +// TODO: Perhaps allow comparison between signed and unsigned integers. + +var ( + errBadComparisonType = errors.New("invalid type for comparison") + errBadComparison = errors.New("incompatible types for comparison") + errNoComparison = errors.New("missing argument for comparison") +) + +type kind int + +const ( + invalidKind kind = iota + boolKind + complexKind + intKind + floatKind + integerKind + stringKind + uintKind +) + +func basicKind(v reflect.Value) (kind, error) { + switch v.Kind() { + case reflect.Bool: + return boolKind, nil + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: + return intKind, nil + case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: + return uintKind, nil + case reflect.Float32, reflect.Float64: + return floatKind, nil + case reflect.Complex64, reflect.Complex128: + return complexKind, nil + case reflect.String: + return stringKind, nil + } + return invalidKind, errBadComparisonType +} + +// eq evaluates the comparison a == b || a == c || ... +func eq(arg1 interface{}, arg2 ...interface{}) (bool, error) { + v1 := reflect.ValueOf(arg1) + k1, err := basicKind(v1) + if err != nil { + return false, err + } + if len(arg2) == 0 { + return false, errNoComparison + } + for _, arg := range arg2 { + v2 := reflect.ValueOf(arg) + k2, err := basicKind(v2) + if err != nil { + return false, err + } + truth := false + if k1 != k2 { + // Special case: Can compare integer values regardless of type's sign. + switch { + case k1 == intKind && k2 == uintKind: + truth = v1.Int() >= 0 && uint64(v1.Int()) == v2.Uint() + case k1 == uintKind && k2 == intKind: + truth = v2.Int() >= 0 && v1.Uint() == uint64(v2.Int()) + default: + return false, errBadComparison + } + } else { + switch k1 { + case boolKind: + truth = v1.Bool() == v2.Bool() + case complexKind: + truth = v1.Complex() == v2.Complex() + case floatKind: + truth = v1.Float() == v2.Float() + case intKind: + truth = v1.Int() == v2.Int() + case stringKind: + truth = v1.String() == v2.String() + case uintKind: + truth = v1.Uint() == v2.Uint() + default: + panic("invalid kind") + } + } + if truth { + return true, nil + } + } + return false, nil +} + +// ne evaluates the comparison a != b. +func ne(arg1, arg2 interface{}) (bool, error) { + // != is the inverse of ==. + equal, err := eq(arg1, arg2) + return !equal, err +} + +// lt evaluates the comparison a < b. +func lt(arg1, arg2 interface{}) (bool, error) { + v1 := reflect.ValueOf(arg1) + k1, err := basicKind(v1) + if err != nil { + return false, err + } + v2 := reflect.ValueOf(arg2) + k2, err := basicKind(v2) + if err != nil { + return false, err + } + truth := false + if k1 != k2 { + // Special case: Can compare integer values regardless of type's sign. + switch { + case k1 == intKind && k2 == uintKind: + truth = v1.Int() < 0 || uint64(v1.Int()) < v2.Uint() + case k1 == uintKind && k2 == intKind: + truth = v2.Int() >= 0 && v1.Uint() < uint64(v2.Int()) + default: + return false, errBadComparison + } + } else { + switch k1 { + case boolKind, complexKind: + return false, errBadComparisonType + case floatKind: + truth = v1.Float() < v2.Float() + case intKind: + truth = v1.Int() < v2.Int() + case stringKind: + truth = v1.String() < v2.String() + case uintKind: + truth = v1.Uint() < v2.Uint() + default: + panic("invalid kind") + } + } + return truth, nil +} + +// le evaluates the comparison <= b. +func le(arg1, arg2 interface{}) (bool, error) { + // <= is < or ==. + lessThan, err := lt(arg1, arg2) + if lessThan || err != nil { + return lessThan, err + } + return eq(arg1, arg2) +} + +// gt evaluates the comparison a > b. +func gt(arg1, arg2 interface{}) (bool, error) { + // > is the inverse of <=. + lessOrEqual, err := le(arg1, arg2) + if err != nil { + return false, err + } + return !lessOrEqual, nil +} + +// ge evaluates the comparison a >= b. +func ge(arg1, arg2 interface{}) (bool, error) { + // >= is the inverse of <. + lessThan, err := lt(arg1, arg2) + if err != nil { + return false, err + } + return !lessThan, nil +} + +// HTML escaping. + +var ( + htmlQuot = []byte(""") // shorter than """ + htmlApos = []byte("'") // shorter than "'" and apos was not in HTML until HTML5 + htmlAmp = []byte("&") + htmlLt = []byte("<") + htmlGt = []byte(">") +) + +// HTMLEscape writes to w the escaped HTML equivalent of the plain text data b. +func HTMLEscape(w io.Writer, b []byte) { + last := 0 + for i, c := range b { + var html []byte + switch c { + case '"': + html = htmlQuot + case '\'': + html = htmlApos + case '&': + html = htmlAmp + case '<': + html = htmlLt + case '>': + html = htmlGt + default: + continue + } + w.Write(b[last:i]) + w.Write(html) + last = i + 1 + } + w.Write(b[last:]) +} + +// HTMLEscapeString returns the escaped HTML equivalent of the plain text data s. +func HTMLEscapeString(s string) string { + // Avoid allocation if we can. + if strings.IndexAny(s, `'"&<>`) < 0 { + return s + } + var b bytes.Buffer + HTMLEscape(&b, []byte(s)) + return b.String() +} + +// HTMLEscaper returns the escaped HTML equivalent of the textual +// representation of its arguments. +func HTMLEscaper(args ...interface{}) string { + return HTMLEscapeString(evalArgs(args)) +} + +// JavaScript escaping. + +var ( + jsLowUni = []byte(`\u00`) + hex = []byte("0123456789ABCDEF") + + jsBackslash = []byte(`\\`) + jsApos = []byte(`\'`) + jsQuot = []byte(`\"`) + jsLt = []byte(`\x3C`) + jsGt = []byte(`\x3E`) +) + +// JSEscape writes to w the escaped JavaScript equivalent of the plain text data b. +func JSEscape(w io.Writer, b []byte) { + last := 0 + for i := 0; i < len(b); i++ { + c := b[i] + + if !jsIsSpecial(rune(c)) { + // fast path: nothing to do + continue + } + w.Write(b[last:i]) + + if c < utf8.RuneSelf { + // Quotes, slashes and angle brackets get quoted. + // Control characters get written as \u00XX. + switch c { + case '\\': + w.Write(jsBackslash) + case '\'': + w.Write(jsApos) + case '"': + w.Write(jsQuot) + case '<': + w.Write(jsLt) + case '>': + w.Write(jsGt) + default: + w.Write(jsLowUni) + t, b := c>>4, c&0x0f + w.Write(hex[t : t+1]) + w.Write(hex[b : b+1]) + } + } else { + // Unicode rune. + r, size := utf8.DecodeRune(b[i:]) + if unicode.IsPrint(r) { + w.Write(b[i : i+size]) + } else { + fmt.Fprintf(w, "\\u%04X", r) + } + i += size - 1 + } + last = i + 1 + } + w.Write(b[last:]) +} + +// JSEscapeString returns the escaped JavaScript equivalent of the plain text data s. +func JSEscapeString(s string) string { + // Avoid allocation if we can. + if strings.IndexFunc(s, jsIsSpecial) < 0 { + return s + } + var b bytes.Buffer + JSEscape(&b, []byte(s)) + return b.String() +} + +func jsIsSpecial(r rune) bool { + switch r { + case '\\', '\'', '"', '<', '>': + return true + } + return r < ' ' || utf8.RuneSelf <= r +} + +// JSEscaper returns the escaped JavaScript equivalent of the textual +// representation of its arguments. +func JSEscaper(args ...interface{}) string { + return JSEscapeString(evalArgs(args)) +} + +// URLQueryEscaper returns the escaped value of the textual representation of +// its arguments in a form suitable for embedding in a URL query. +func URLQueryEscaper(args ...interface{}) string { + return url.QueryEscape(evalArgs(args)) +} + +// evalArgs formats the list of arguments into a string. It is therefore equivalent to +// fmt.Sprint(args...) +// except that each argument is indirected (if a pointer), as required, +// using the same rules as the default string evaluation during template +// execution. +func evalArgs(args []interface{}) string { + ok := false + var s string + // Fast path for simple common case. + if len(args) == 1 { + s, ok = args[0].(string) + } + if !ok { + for i, arg := range args { + a, ok := printableValue(reflect.ValueOf(arg)) + if ok { + args[i] = a + } // else left fmt do its thing + } + s = fmt.Sprint(args...) + } + return s +} diff --git a/vendor/github.com/alecthomas/template/helper.go b/vendor/github.com/alecthomas/template/helper.go new file mode 100644 index 0000000..3636fb5 --- /dev/null +++ b/vendor/github.com/alecthomas/template/helper.go @@ -0,0 +1,108 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Helper functions to make constructing templates easier. + +package template + +import ( + "fmt" + "io/ioutil" + "path/filepath" +) + +// Functions and methods to parse templates. + +// Must is a helper that wraps a call to a function returning (*Template, error) +// and panics if the error is non-nil. It is intended for use in variable +// initializations such as +// var t = template.Must(template.New("name").Parse("text")) +func Must(t *Template, err error) *Template { + if err != nil { + panic(err) + } + return t +} + +// ParseFiles creates a new Template and parses the template definitions from +// the named files. The returned template's name will have the (base) name and +// (parsed) contents of the first file. There must be at least one file. +// If an error occurs, parsing stops and the returned *Template is nil. +func ParseFiles(filenames ...string) (*Template, error) { + return parseFiles(nil, filenames...) +} + +// ParseFiles parses the named files and associates the resulting templates with +// t. If an error occurs, parsing stops and the returned template is nil; +// otherwise it is t. There must be at least one file. +func (t *Template) ParseFiles(filenames ...string) (*Template, error) { + return parseFiles(t, filenames...) +} + +// parseFiles is the helper for the method and function. If the argument +// template is nil, it is created from the first file. +func parseFiles(t *Template, filenames ...string) (*Template, error) { + if len(filenames) == 0 { + // Not really a problem, but be consistent. + return nil, fmt.Errorf("template: no files named in call to ParseFiles") + } + for _, filename := range filenames { + b, err := ioutil.ReadFile(filename) + if err != nil { + return nil, err + } + s := string(b) + name := filepath.Base(filename) + // First template becomes return value if not already defined, + // and we use that one for subsequent New calls to associate + // all the templates together. Also, if this file has the same name + // as t, this file becomes the contents of t, so + // t, err := New(name).Funcs(xxx).ParseFiles(name) + // works. Otherwise we create a new template associated with t. + var tmpl *Template + if t == nil { + t = New(name) + } + if name == t.Name() { + tmpl = t + } else { + tmpl = t.New(name) + } + _, err = tmpl.Parse(s) + if err != nil { + return nil, err + } + } + return t, nil +} + +// ParseGlob creates a new Template and parses the template definitions from the +// files identified by the pattern, which must match at least one file. The +// returned template will have the (base) name and (parsed) contents of the +// first file matched by the pattern. ParseGlob is equivalent to calling +// ParseFiles with the list of files matched by the pattern. +func ParseGlob(pattern string) (*Template, error) { + return parseGlob(nil, pattern) +} + +// ParseGlob parses the template definitions in the files identified by the +// pattern and associates the resulting templates with t. The pattern is +// processed by filepath.Glob and must match at least one file. ParseGlob is +// equivalent to calling t.ParseFiles with the list of files matched by the +// pattern. +func (t *Template) ParseGlob(pattern string) (*Template, error) { + return parseGlob(t, pattern) +} + +// parseGlob is the implementation of the function and method ParseGlob. +func parseGlob(t *Template, pattern string) (*Template, error) { + filenames, err := filepath.Glob(pattern) + if err != nil { + return nil, err + } + if len(filenames) == 0 { + return nil, fmt.Errorf("template: pattern matches no files: %#q", pattern) + } + return parseFiles(t, filenames...) +} diff --git a/vendor/github.com/alecthomas/template/parse/lex.go b/vendor/github.com/alecthomas/template/parse/lex.go new file mode 100644 index 0000000..55f1c05 --- /dev/null +++ b/vendor/github.com/alecthomas/template/parse/lex.go @@ -0,0 +1,556 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package parse + +import ( + "fmt" + "strings" + "unicode" + "unicode/utf8" +) + +// item represents a token or text string returned from the scanner. +type item struct { + typ itemType // The type of this item. + pos Pos // The starting position, in bytes, of this item in the input string. + val string // The value of this item. +} + +func (i item) String() string { + switch { + case i.typ == itemEOF: + return "EOF" + case i.typ == itemError: + return i.val + case i.typ > itemKeyword: + return fmt.Sprintf("<%s>", i.val) + case len(i.val) > 10: + return fmt.Sprintf("%.10q...", i.val) + } + return fmt.Sprintf("%q", i.val) +} + +// itemType identifies the type of lex items. +type itemType int + +const ( + itemError itemType = iota // error occurred; value is text of error + itemBool // boolean constant + itemChar // printable ASCII character; grab bag for comma etc. + itemCharConstant // character constant + itemComplex // complex constant (1+2i); imaginary is just a number + itemColonEquals // colon-equals (':=') introducing a declaration + itemEOF + itemField // alphanumeric identifier starting with '.' + itemIdentifier // alphanumeric identifier not starting with '.' + itemLeftDelim // left action delimiter + itemLeftParen // '(' inside action + itemNumber // simple number, including imaginary + itemPipe // pipe symbol + itemRawString // raw quoted string (includes quotes) + itemRightDelim // right action delimiter + itemElideNewline // elide newline after right delim + itemRightParen // ')' inside action + itemSpace // run of spaces separating arguments + itemString // quoted string (includes quotes) + itemText // plain text + itemVariable // variable starting with '$', such as '$' or '$1' or '$hello' + // Keywords appear after all the rest. + itemKeyword // used only to delimit the keywords + itemDot // the cursor, spelled '.' + itemDefine // define keyword + itemElse // else keyword + itemEnd // end keyword + itemIf // if keyword + itemNil // the untyped nil constant, easiest to treat as a keyword + itemRange // range keyword + itemTemplate // template keyword + itemWith // with keyword +) + +var key = map[string]itemType{ + ".": itemDot, + "define": itemDefine, + "else": itemElse, + "end": itemEnd, + "if": itemIf, + "range": itemRange, + "nil": itemNil, + "template": itemTemplate, + "with": itemWith, +} + +const eof = -1 + +// stateFn represents the state of the scanner as a function that returns the next state. +type stateFn func(*lexer) stateFn + +// lexer holds the state of the scanner. +type lexer struct { + name string // the name of the input; used only for error reports + input string // the string being scanned + leftDelim string // start of action + rightDelim string // end of action + state stateFn // the next lexing function to enter + pos Pos // current position in the input + start Pos // start position of this item + width Pos // width of last rune read from input + lastPos Pos // position of most recent item returned by nextItem + items chan item // channel of scanned items + parenDepth int // nesting depth of ( ) exprs +} + +// next returns the next rune in the input. +func (l *lexer) next() rune { + if int(l.pos) >= len(l.input) { + l.width = 0 + return eof + } + r, w := utf8.DecodeRuneInString(l.input[l.pos:]) + l.width = Pos(w) + l.pos += l.width + return r +} + +// peek returns but does not consume the next rune in the input. +func (l *lexer) peek() rune { + r := l.next() + l.backup() + return r +} + +// backup steps back one rune. Can only be called once per call of next. +func (l *lexer) backup() { + l.pos -= l.width +} + +// emit passes an item back to the client. +func (l *lexer) emit(t itemType) { + l.items <- item{t, l.start, l.input[l.start:l.pos]} + l.start = l.pos +} + +// ignore skips over the pending input before this point. +func (l *lexer) ignore() { + l.start = l.pos +} + +// accept consumes the next rune if it's from the valid set. +func (l *lexer) accept(valid string) bool { + if strings.IndexRune(valid, l.next()) >= 0 { + return true + } + l.backup() + return false +} + +// acceptRun consumes a run of runes from the valid set. +func (l *lexer) acceptRun(valid string) { + for strings.IndexRune(valid, l.next()) >= 0 { + } + l.backup() +} + +// lineNumber reports which line we're on, based on the position of +// the previous item returned by nextItem. Doing it this way +// means we don't have to worry about peek double counting. +func (l *lexer) lineNumber() int { + return 1 + strings.Count(l.input[:l.lastPos], "\n") +} + +// errorf returns an error token and terminates the scan by passing +// back a nil pointer that will be the next state, terminating l.nextItem. +func (l *lexer) errorf(format string, args ...interface{}) stateFn { + l.items <- item{itemError, l.start, fmt.Sprintf(format, args...)} + return nil +} + +// nextItem returns the next item from the input. +func (l *lexer) nextItem() item { + item := <-l.items + l.lastPos = item.pos + return item +} + +// lex creates a new scanner for the input string. +func lex(name, input, left, right string) *lexer { + if left == "" { + left = leftDelim + } + if right == "" { + right = rightDelim + } + l := &lexer{ + name: name, + input: input, + leftDelim: left, + rightDelim: right, + items: make(chan item), + } + go l.run() + return l +} + +// run runs the state machine for the lexer. +func (l *lexer) run() { + for l.state = lexText; l.state != nil; { + l.state = l.state(l) + } +} + +// state functions + +const ( + leftDelim = "{{" + rightDelim = "}}" + leftComment = "/*" + rightComment = "*/" +) + +// lexText scans until an opening action delimiter, "{{". +func lexText(l *lexer) stateFn { + for { + if strings.HasPrefix(l.input[l.pos:], l.leftDelim) { + if l.pos > l.start { + l.emit(itemText) + } + return lexLeftDelim + } + if l.next() == eof { + break + } + } + // Correctly reached EOF. + if l.pos > l.start { + l.emit(itemText) + } + l.emit(itemEOF) + return nil +} + +// lexLeftDelim scans the left delimiter, which is known to be present. +func lexLeftDelim(l *lexer) stateFn { + l.pos += Pos(len(l.leftDelim)) + if strings.HasPrefix(l.input[l.pos:], leftComment) { + return lexComment + } + l.emit(itemLeftDelim) + l.parenDepth = 0 + return lexInsideAction +} + +// lexComment scans a comment. The left comment marker is known to be present. +func lexComment(l *lexer) stateFn { + l.pos += Pos(len(leftComment)) + i := strings.Index(l.input[l.pos:], rightComment) + if i < 0 { + return l.errorf("unclosed comment") + } + l.pos += Pos(i + len(rightComment)) + if !strings.HasPrefix(l.input[l.pos:], l.rightDelim) { + return l.errorf("comment ends before closing delimiter") + + } + l.pos += Pos(len(l.rightDelim)) + l.ignore() + return lexText +} + +// lexRightDelim scans the right delimiter, which is known to be present. +func lexRightDelim(l *lexer) stateFn { + l.pos += Pos(len(l.rightDelim)) + l.emit(itemRightDelim) + if l.peek() == '\\' { + l.pos++ + l.emit(itemElideNewline) + } + return lexText +} + +// lexInsideAction scans the elements inside action delimiters. +func lexInsideAction(l *lexer) stateFn { + // Either number, quoted string, or identifier. + // Spaces separate arguments; runs of spaces turn into itemSpace. + // Pipe symbols separate and are emitted. + if strings.HasPrefix(l.input[l.pos:], l.rightDelim+"\\") || strings.HasPrefix(l.input[l.pos:], l.rightDelim) { + if l.parenDepth == 0 { + return lexRightDelim + } + return l.errorf("unclosed left paren") + } + switch r := l.next(); { + case r == eof || isEndOfLine(r): + return l.errorf("unclosed action") + case isSpace(r): + return lexSpace + case r == ':': + if l.next() != '=' { + return l.errorf("expected :=") + } + l.emit(itemColonEquals) + case r == '|': + l.emit(itemPipe) + case r == '"': + return lexQuote + case r == '`': + return lexRawQuote + case r == '$': + return lexVariable + case r == '\'': + return lexChar + case r == '.': + // special look-ahead for ".field" so we don't break l.backup(). + if l.pos < Pos(len(l.input)) { + r := l.input[l.pos] + if r < '0' || '9' < r { + return lexField + } + } + fallthrough // '.' can start a number. + case r == '+' || r == '-' || ('0' <= r && r <= '9'): + l.backup() + return lexNumber + case isAlphaNumeric(r): + l.backup() + return lexIdentifier + case r == '(': + l.emit(itemLeftParen) + l.parenDepth++ + return lexInsideAction + case r == ')': + l.emit(itemRightParen) + l.parenDepth-- + if l.parenDepth < 0 { + return l.errorf("unexpected right paren %#U", r) + } + return lexInsideAction + case r <= unicode.MaxASCII && unicode.IsPrint(r): + l.emit(itemChar) + return lexInsideAction + default: + return l.errorf("unrecognized character in action: %#U", r) + } + return lexInsideAction +} + +// lexSpace scans a run of space characters. +// One space has already been seen. +func lexSpace(l *lexer) stateFn { + for isSpace(l.peek()) { + l.next() + } + l.emit(itemSpace) + return lexInsideAction +} + +// lexIdentifier scans an alphanumeric. +func lexIdentifier(l *lexer) stateFn { +Loop: + for { + switch r := l.next(); { + case isAlphaNumeric(r): + // absorb. + default: + l.backup() + word := l.input[l.start:l.pos] + if !l.atTerminator() { + return l.errorf("bad character %#U", r) + } + switch { + case key[word] > itemKeyword: + l.emit(key[word]) + case word[0] == '.': + l.emit(itemField) + case word == "true", word == "false": + l.emit(itemBool) + default: + l.emit(itemIdentifier) + } + break Loop + } + } + return lexInsideAction +} + +// lexField scans a field: .Alphanumeric. +// The . has been scanned. +func lexField(l *lexer) stateFn { + return lexFieldOrVariable(l, itemField) +} + +// lexVariable scans a Variable: $Alphanumeric. +// The $ has been scanned. +func lexVariable(l *lexer) stateFn { + if l.atTerminator() { // Nothing interesting follows -> "$". + l.emit(itemVariable) + return lexInsideAction + } + return lexFieldOrVariable(l, itemVariable) +} + +// lexVariable scans a field or variable: [.$]Alphanumeric. +// The . or $ has been scanned. +func lexFieldOrVariable(l *lexer, typ itemType) stateFn { + if l.atTerminator() { // Nothing interesting follows -> "." or "$". + if typ == itemVariable { + l.emit(itemVariable) + } else { + l.emit(itemDot) + } + return lexInsideAction + } + var r rune + for { + r = l.next() + if !isAlphaNumeric(r) { + l.backup() + break + } + } + if !l.atTerminator() { + return l.errorf("bad character %#U", r) + } + l.emit(typ) + return lexInsideAction +} + +// atTerminator reports whether the input is at valid termination character to +// appear after an identifier. Breaks .X.Y into two pieces. Also catches cases +// like "$x+2" not being acceptable without a space, in case we decide one +// day to implement arithmetic. +func (l *lexer) atTerminator() bool { + r := l.peek() + if isSpace(r) || isEndOfLine(r) { + return true + } + switch r { + case eof, '.', ',', '|', ':', ')', '(': + return true + } + // Does r start the delimiter? This can be ambiguous (with delim=="//", $x/2 will + // succeed but should fail) but only in extremely rare cases caused by willfully + // bad choice of delimiter. + if rd, _ := utf8.DecodeRuneInString(l.rightDelim); rd == r { + return true + } + return false +} + +// lexChar scans a character constant. The initial quote is already +// scanned. Syntax checking is done by the parser. +func lexChar(l *lexer) stateFn { +Loop: + for { + switch l.next() { + case '\\': + if r := l.next(); r != eof && r != '\n' { + break + } + fallthrough + case eof, '\n': + return l.errorf("unterminated character constant") + case '\'': + break Loop + } + } + l.emit(itemCharConstant) + return lexInsideAction +} + +// lexNumber scans a number: decimal, octal, hex, float, or imaginary. This +// isn't a perfect number scanner - for instance it accepts "." and "0x0.2" +// and "089" - but when it's wrong the input is invalid and the parser (via +// strconv) will notice. +func lexNumber(l *lexer) stateFn { + if !l.scanNumber() { + return l.errorf("bad number syntax: %q", l.input[l.start:l.pos]) + } + if sign := l.peek(); sign == '+' || sign == '-' { + // Complex: 1+2i. No spaces, must end in 'i'. + if !l.scanNumber() || l.input[l.pos-1] != 'i' { + return l.errorf("bad number syntax: %q", l.input[l.start:l.pos]) + } + l.emit(itemComplex) + } else { + l.emit(itemNumber) + } + return lexInsideAction +} + +func (l *lexer) scanNumber() bool { + // Optional leading sign. + l.accept("+-") + // Is it hex? + digits := "0123456789" + if l.accept("0") && l.accept("xX") { + digits = "0123456789abcdefABCDEF" + } + l.acceptRun(digits) + if l.accept(".") { + l.acceptRun(digits) + } + if l.accept("eE") { + l.accept("+-") + l.acceptRun("0123456789") + } + // Is it imaginary? + l.accept("i") + // Next thing mustn't be alphanumeric. + if isAlphaNumeric(l.peek()) { + l.next() + return false + } + return true +} + +// lexQuote scans a quoted string. +func lexQuote(l *lexer) stateFn { +Loop: + for { + switch l.next() { + case '\\': + if r := l.next(); r != eof && r != '\n' { + break + } + fallthrough + case eof, '\n': + return l.errorf("unterminated quoted string") + case '"': + break Loop + } + } + l.emit(itemString) + return lexInsideAction +} + +// lexRawQuote scans a raw quoted string. +func lexRawQuote(l *lexer) stateFn { +Loop: + for { + switch l.next() { + case eof, '\n': + return l.errorf("unterminated raw quoted string") + case '`': + break Loop + } + } + l.emit(itemRawString) + return lexInsideAction +} + +// isSpace reports whether r is a space character. +func isSpace(r rune) bool { + return r == ' ' || r == '\t' +} + +// isEndOfLine reports whether r is an end-of-line character. +func isEndOfLine(r rune) bool { + return r == '\r' || r == '\n' +} + +// isAlphaNumeric reports whether r is an alphabetic, digit, or underscore. +func isAlphaNumeric(r rune) bool { + return r == '_' || unicode.IsLetter(r) || unicode.IsDigit(r) +} diff --git a/vendor/github.com/alecthomas/template/parse/node.go b/vendor/github.com/alecthomas/template/parse/node.go new file mode 100644 index 0000000..55c37f6 --- /dev/null +++ b/vendor/github.com/alecthomas/template/parse/node.go @@ -0,0 +1,834 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Parse nodes. + +package parse + +import ( + "bytes" + "fmt" + "strconv" + "strings" +) + +var textFormat = "%s" // Changed to "%q" in tests for better error messages. + +// A Node is an element in the parse tree. The interface is trivial. +// The interface contains an unexported method so that only +// types local to this package can satisfy it. +type Node interface { + Type() NodeType + String() string + // Copy does a deep copy of the Node and all its components. + // To avoid type assertions, some XxxNodes also have specialized + // CopyXxx methods that return *XxxNode. + Copy() Node + Position() Pos // byte position of start of node in full original input string + // tree returns the containing *Tree. + // It is unexported so all implementations of Node are in this package. + tree() *Tree +} + +// NodeType identifies the type of a parse tree node. +type NodeType int + +// Pos represents a byte position in the original input text from which +// this template was parsed. +type Pos int + +func (p Pos) Position() Pos { + return p +} + +// Type returns itself and provides an easy default implementation +// for embedding in a Node. Embedded in all non-trivial Nodes. +func (t NodeType) Type() NodeType { + return t +} + +const ( + NodeText NodeType = iota // Plain text. + NodeAction // A non-control action such as a field evaluation. + NodeBool // A boolean constant. + NodeChain // A sequence of field accesses. + NodeCommand // An element of a pipeline. + NodeDot // The cursor, dot. + nodeElse // An else action. Not added to tree. + nodeEnd // An end action. Not added to tree. + NodeField // A field or method name. + NodeIdentifier // An identifier; always a function name. + NodeIf // An if action. + NodeList // A list of Nodes. + NodeNil // An untyped nil constant. + NodeNumber // A numerical constant. + NodePipe // A pipeline of commands. + NodeRange // A range action. + NodeString // A string constant. + NodeTemplate // A template invocation action. + NodeVariable // A $ variable. + NodeWith // A with action. +) + +// Nodes. + +// ListNode holds a sequence of nodes. +type ListNode struct { + NodeType + Pos + tr *Tree + Nodes []Node // The element nodes in lexical order. +} + +func (t *Tree) newList(pos Pos) *ListNode { + return &ListNode{tr: t, NodeType: NodeList, Pos: pos} +} + +func (l *ListNode) append(n Node) { + l.Nodes = append(l.Nodes, n) +} + +func (l *ListNode) tree() *Tree { + return l.tr +} + +func (l *ListNode) String() string { + b := new(bytes.Buffer) + for _, n := range l.Nodes { + fmt.Fprint(b, n) + } + return b.String() +} + +func (l *ListNode) CopyList() *ListNode { + if l == nil { + return l + } + n := l.tr.newList(l.Pos) + for _, elem := range l.Nodes { + n.append(elem.Copy()) + } + return n +} + +func (l *ListNode) Copy() Node { + return l.CopyList() +} + +// TextNode holds plain text. +type TextNode struct { + NodeType + Pos + tr *Tree + Text []byte // The text; may span newlines. +} + +func (t *Tree) newText(pos Pos, text string) *TextNode { + return &TextNode{tr: t, NodeType: NodeText, Pos: pos, Text: []byte(text)} +} + +func (t *TextNode) String() string { + return fmt.Sprintf(textFormat, t.Text) +} + +func (t *TextNode) tree() *Tree { + return t.tr +} + +func (t *TextNode) Copy() Node { + return &TextNode{tr: t.tr, NodeType: NodeText, Pos: t.Pos, Text: append([]byte{}, t.Text...)} +} + +// PipeNode holds a pipeline with optional declaration +type PipeNode struct { + NodeType + Pos + tr *Tree + Line int // The line number in the input (deprecated; kept for compatibility) + Decl []*VariableNode // Variable declarations in lexical order. + Cmds []*CommandNode // The commands in lexical order. +} + +func (t *Tree) newPipeline(pos Pos, line int, decl []*VariableNode) *PipeNode { + return &PipeNode{tr: t, NodeType: NodePipe, Pos: pos, Line: line, Decl: decl} +} + +func (p *PipeNode) append(command *CommandNode) { + p.Cmds = append(p.Cmds, command) +} + +func (p *PipeNode) String() string { + s := "" + if len(p.Decl) > 0 { + for i, v := range p.Decl { + if i > 0 { + s += ", " + } + s += v.String() + } + s += " := " + } + for i, c := range p.Cmds { + if i > 0 { + s += " | " + } + s += c.String() + } + return s +} + +func (p *PipeNode) tree() *Tree { + return p.tr +} + +func (p *PipeNode) CopyPipe() *PipeNode { + if p == nil { + return p + } + var decl []*VariableNode + for _, d := range p.Decl { + decl = append(decl, d.Copy().(*VariableNode)) + } + n := p.tr.newPipeline(p.Pos, p.Line, decl) + for _, c := range p.Cmds { + n.append(c.Copy().(*CommandNode)) + } + return n +} + +func (p *PipeNode) Copy() Node { + return p.CopyPipe() +} + +// ActionNode holds an action (something bounded by delimiters). +// Control actions have their own nodes; ActionNode represents simple +// ones such as field evaluations and parenthesized pipelines. +type ActionNode struct { + NodeType + Pos + tr *Tree + Line int // The line number in the input (deprecated; kept for compatibility) + Pipe *PipeNode // The pipeline in the action. +} + +func (t *Tree) newAction(pos Pos, line int, pipe *PipeNode) *ActionNode { + return &ActionNode{tr: t, NodeType: NodeAction, Pos: pos, Line: line, Pipe: pipe} +} + +func (a *ActionNode) String() string { + return fmt.Sprintf("{{%s}}", a.Pipe) + +} + +func (a *ActionNode) tree() *Tree { + return a.tr +} + +func (a *ActionNode) Copy() Node { + return a.tr.newAction(a.Pos, a.Line, a.Pipe.CopyPipe()) + +} + +// CommandNode holds a command (a pipeline inside an evaluating action). +type CommandNode struct { + NodeType + Pos + tr *Tree + Args []Node // Arguments in lexical order: Identifier, field, or constant. +} + +func (t *Tree) newCommand(pos Pos) *CommandNode { + return &CommandNode{tr: t, NodeType: NodeCommand, Pos: pos} +} + +func (c *CommandNode) append(arg Node) { + c.Args = append(c.Args, arg) +} + +func (c *CommandNode) String() string { + s := "" + for i, arg := range c.Args { + if i > 0 { + s += " " + } + if arg, ok := arg.(*PipeNode); ok { + s += "(" + arg.String() + ")" + continue + } + s += arg.String() + } + return s +} + +func (c *CommandNode) tree() *Tree { + return c.tr +} + +func (c *CommandNode) Copy() Node { + if c == nil { + return c + } + n := c.tr.newCommand(c.Pos) + for _, c := range c.Args { + n.append(c.Copy()) + } + return n +} + +// IdentifierNode holds an identifier. +type IdentifierNode struct { + NodeType + Pos + tr *Tree + Ident string // The identifier's name. +} + +// NewIdentifier returns a new IdentifierNode with the given identifier name. +func NewIdentifier(ident string) *IdentifierNode { + return &IdentifierNode{NodeType: NodeIdentifier, Ident: ident} +} + +// SetPos sets the position. NewIdentifier is a public method so we can't modify its signature. +// Chained for convenience. +// TODO: fix one day? +func (i *IdentifierNode) SetPos(pos Pos) *IdentifierNode { + i.Pos = pos + return i +} + +// SetTree sets the parent tree for the node. NewIdentifier is a public method so we can't modify its signature. +// Chained for convenience. +// TODO: fix one day? +func (i *IdentifierNode) SetTree(t *Tree) *IdentifierNode { + i.tr = t + return i +} + +func (i *IdentifierNode) String() string { + return i.Ident +} + +func (i *IdentifierNode) tree() *Tree { + return i.tr +} + +func (i *IdentifierNode) Copy() Node { + return NewIdentifier(i.Ident).SetTree(i.tr).SetPos(i.Pos) +} + +// VariableNode holds a list of variable names, possibly with chained field +// accesses. The dollar sign is part of the (first) name. +type VariableNode struct { + NodeType + Pos + tr *Tree + Ident []string // Variable name and fields in lexical order. +} + +func (t *Tree) newVariable(pos Pos, ident string) *VariableNode { + return &VariableNode{tr: t, NodeType: NodeVariable, Pos: pos, Ident: strings.Split(ident, ".")} +} + +func (v *VariableNode) String() string { + s := "" + for i, id := range v.Ident { + if i > 0 { + s += "." + } + s += id + } + return s +} + +func (v *VariableNode) tree() *Tree { + return v.tr +} + +func (v *VariableNode) Copy() Node { + return &VariableNode{tr: v.tr, NodeType: NodeVariable, Pos: v.Pos, Ident: append([]string{}, v.Ident...)} +} + +// DotNode holds the special identifier '.'. +type DotNode struct { + NodeType + Pos + tr *Tree +} + +func (t *Tree) newDot(pos Pos) *DotNode { + return &DotNode{tr: t, NodeType: NodeDot, Pos: pos} +} + +func (d *DotNode) Type() NodeType { + // Override method on embedded NodeType for API compatibility. + // TODO: Not really a problem; could change API without effect but + // api tool complains. + return NodeDot +} + +func (d *DotNode) String() string { + return "." +} + +func (d *DotNode) tree() *Tree { + return d.tr +} + +func (d *DotNode) Copy() Node { + return d.tr.newDot(d.Pos) +} + +// NilNode holds the special identifier 'nil' representing an untyped nil constant. +type NilNode struct { + NodeType + Pos + tr *Tree +} + +func (t *Tree) newNil(pos Pos) *NilNode { + return &NilNode{tr: t, NodeType: NodeNil, Pos: pos} +} + +func (n *NilNode) Type() NodeType { + // Override method on embedded NodeType for API compatibility. + // TODO: Not really a problem; could change API without effect but + // api tool complains. + return NodeNil +} + +func (n *NilNode) String() string { + return "nil" +} + +func (n *NilNode) tree() *Tree { + return n.tr +} + +func (n *NilNode) Copy() Node { + return n.tr.newNil(n.Pos) +} + +// FieldNode holds a field (identifier starting with '.'). +// The names may be chained ('.x.y'). +// The period is dropped from each ident. +type FieldNode struct { + NodeType + Pos + tr *Tree + Ident []string // The identifiers in lexical order. +} + +func (t *Tree) newField(pos Pos, ident string) *FieldNode { + return &FieldNode{tr: t, NodeType: NodeField, Pos: pos, Ident: strings.Split(ident[1:], ".")} // [1:] to drop leading period +} + +func (f *FieldNode) String() string { + s := "" + for _, id := range f.Ident { + s += "." + id + } + return s +} + +func (f *FieldNode) tree() *Tree { + return f.tr +} + +func (f *FieldNode) Copy() Node { + return &FieldNode{tr: f.tr, NodeType: NodeField, Pos: f.Pos, Ident: append([]string{}, f.Ident...)} +} + +// ChainNode holds a term followed by a chain of field accesses (identifier starting with '.'). +// The names may be chained ('.x.y'). +// The periods are dropped from each ident. +type ChainNode struct { + NodeType + Pos + tr *Tree + Node Node + Field []string // The identifiers in lexical order. +} + +func (t *Tree) newChain(pos Pos, node Node) *ChainNode { + return &ChainNode{tr: t, NodeType: NodeChain, Pos: pos, Node: node} +} + +// Add adds the named field (which should start with a period) to the end of the chain. +func (c *ChainNode) Add(field string) { + if len(field) == 0 || field[0] != '.' { + panic("no dot in field") + } + field = field[1:] // Remove leading dot. + if field == "" { + panic("empty field") + } + c.Field = append(c.Field, field) +} + +func (c *ChainNode) String() string { + s := c.Node.String() + if _, ok := c.Node.(*PipeNode); ok { + s = "(" + s + ")" + } + for _, field := range c.Field { + s += "." + field + } + return s +} + +func (c *ChainNode) tree() *Tree { + return c.tr +} + +func (c *ChainNode) Copy() Node { + return &ChainNode{tr: c.tr, NodeType: NodeChain, Pos: c.Pos, Node: c.Node, Field: append([]string{}, c.Field...)} +} + +// BoolNode holds a boolean constant. +type BoolNode struct { + NodeType + Pos + tr *Tree + True bool // The value of the boolean constant. +} + +func (t *Tree) newBool(pos Pos, true bool) *BoolNode { + return &BoolNode{tr: t, NodeType: NodeBool, Pos: pos, True: true} +} + +func (b *BoolNode) String() string { + if b.True { + return "true" + } + return "false" +} + +func (b *BoolNode) tree() *Tree { + return b.tr +} + +func (b *BoolNode) Copy() Node { + return b.tr.newBool(b.Pos, b.True) +} + +// NumberNode holds a number: signed or unsigned integer, float, or complex. +// The value is parsed and stored under all the types that can represent the value. +// This simulates in a small amount of code the behavior of Go's ideal constants. +type NumberNode struct { + NodeType + Pos + tr *Tree + IsInt bool // Number has an integral value. + IsUint bool // Number has an unsigned integral value. + IsFloat bool // Number has a floating-point value. + IsComplex bool // Number is complex. + Int64 int64 // The signed integer value. + Uint64 uint64 // The unsigned integer value. + Float64 float64 // The floating-point value. + Complex128 complex128 // The complex value. + Text string // The original textual representation from the input. +} + +func (t *Tree) newNumber(pos Pos, text string, typ itemType) (*NumberNode, error) { + n := &NumberNode{tr: t, NodeType: NodeNumber, Pos: pos, Text: text} + switch typ { + case itemCharConstant: + rune, _, tail, err := strconv.UnquoteChar(text[1:], text[0]) + if err != nil { + return nil, err + } + if tail != "'" { + return nil, fmt.Errorf("malformed character constant: %s", text) + } + n.Int64 = int64(rune) + n.IsInt = true + n.Uint64 = uint64(rune) + n.IsUint = true + n.Float64 = float64(rune) // odd but those are the rules. + n.IsFloat = true + return n, nil + case itemComplex: + // fmt.Sscan can parse the pair, so let it do the work. + if _, err := fmt.Sscan(text, &n.Complex128); err != nil { + return nil, err + } + n.IsComplex = true + n.simplifyComplex() + return n, nil + } + // Imaginary constants can only be complex unless they are zero. + if len(text) > 0 && text[len(text)-1] == 'i' { + f, err := strconv.ParseFloat(text[:len(text)-1], 64) + if err == nil { + n.IsComplex = true + n.Complex128 = complex(0, f) + n.simplifyComplex() + return n, nil + } + } + // Do integer test first so we get 0x123 etc. + u, err := strconv.ParseUint(text, 0, 64) // will fail for -0; fixed below. + if err == nil { + n.IsUint = true + n.Uint64 = u + } + i, err := strconv.ParseInt(text, 0, 64) + if err == nil { + n.IsInt = true + n.Int64 = i + if i == 0 { + n.IsUint = true // in case of -0. + n.Uint64 = u + } + } + // If an integer extraction succeeded, promote the float. + if n.IsInt { + n.IsFloat = true + n.Float64 = float64(n.Int64) + } else if n.IsUint { + n.IsFloat = true + n.Float64 = float64(n.Uint64) + } else { + f, err := strconv.ParseFloat(text, 64) + if err == nil { + n.IsFloat = true + n.Float64 = f + // If a floating-point extraction succeeded, extract the int if needed. + if !n.IsInt && float64(int64(f)) == f { + n.IsInt = true + n.Int64 = int64(f) + } + if !n.IsUint && float64(uint64(f)) == f { + n.IsUint = true + n.Uint64 = uint64(f) + } + } + } + if !n.IsInt && !n.IsUint && !n.IsFloat { + return nil, fmt.Errorf("illegal number syntax: %q", text) + } + return n, nil +} + +// simplifyComplex pulls out any other types that are represented by the complex number. +// These all require that the imaginary part be zero. +func (n *NumberNode) simplifyComplex() { + n.IsFloat = imag(n.Complex128) == 0 + if n.IsFloat { + n.Float64 = real(n.Complex128) + n.IsInt = float64(int64(n.Float64)) == n.Float64 + if n.IsInt { + n.Int64 = int64(n.Float64) + } + n.IsUint = float64(uint64(n.Float64)) == n.Float64 + if n.IsUint { + n.Uint64 = uint64(n.Float64) + } + } +} + +func (n *NumberNode) String() string { + return n.Text +} + +func (n *NumberNode) tree() *Tree { + return n.tr +} + +func (n *NumberNode) Copy() Node { + nn := new(NumberNode) + *nn = *n // Easy, fast, correct. + return nn +} + +// StringNode holds a string constant. The value has been "unquoted". +type StringNode struct { + NodeType + Pos + tr *Tree + Quoted string // The original text of the string, with quotes. + Text string // The string, after quote processing. +} + +func (t *Tree) newString(pos Pos, orig, text string) *StringNode { + return &StringNode{tr: t, NodeType: NodeString, Pos: pos, Quoted: orig, Text: text} +} + +func (s *StringNode) String() string { + return s.Quoted +} + +func (s *StringNode) tree() *Tree { + return s.tr +} + +func (s *StringNode) Copy() Node { + return s.tr.newString(s.Pos, s.Quoted, s.Text) +} + +// endNode represents an {{end}} action. +// It does not appear in the final parse tree. +type endNode struct { + NodeType + Pos + tr *Tree +} + +func (t *Tree) newEnd(pos Pos) *endNode { + return &endNode{tr: t, NodeType: nodeEnd, Pos: pos} +} + +func (e *endNode) String() string { + return "{{end}}" +} + +func (e *endNode) tree() *Tree { + return e.tr +} + +func (e *endNode) Copy() Node { + return e.tr.newEnd(e.Pos) +} + +// elseNode represents an {{else}} action. Does not appear in the final tree. +type elseNode struct { + NodeType + Pos + tr *Tree + Line int // The line number in the input (deprecated; kept for compatibility) +} + +func (t *Tree) newElse(pos Pos, line int) *elseNode { + return &elseNode{tr: t, NodeType: nodeElse, Pos: pos, Line: line} +} + +func (e *elseNode) Type() NodeType { + return nodeElse +} + +func (e *elseNode) String() string { + return "{{else}}" +} + +func (e *elseNode) tree() *Tree { + return e.tr +} + +func (e *elseNode) Copy() Node { + return e.tr.newElse(e.Pos, e.Line) +} + +// BranchNode is the common representation of if, range, and with. +type BranchNode struct { + NodeType + Pos + tr *Tree + Line int // The line number in the input (deprecated; kept for compatibility) + Pipe *PipeNode // The pipeline to be evaluated. + List *ListNode // What to execute if the value is non-empty. + ElseList *ListNode // What to execute if the value is empty (nil if absent). +} + +func (b *BranchNode) String() string { + name := "" + switch b.NodeType { + case NodeIf: + name = "if" + case NodeRange: + name = "range" + case NodeWith: + name = "with" + default: + panic("unknown branch type") + } + if b.ElseList != nil { + return fmt.Sprintf("{{%s %s}}%s{{else}}%s{{end}}", name, b.Pipe, b.List, b.ElseList) + } + return fmt.Sprintf("{{%s %s}}%s{{end}}", name, b.Pipe, b.List) +} + +func (b *BranchNode) tree() *Tree { + return b.tr +} + +func (b *BranchNode) Copy() Node { + switch b.NodeType { + case NodeIf: + return b.tr.newIf(b.Pos, b.Line, b.Pipe, b.List, b.ElseList) + case NodeRange: + return b.tr.newRange(b.Pos, b.Line, b.Pipe, b.List, b.ElseList) + case NodeWith: + return b.tr.newWith(b.Pos, b.Line, b.Pipe, b.List, b.ElseList) + default: + panic("unknown branch type") + } +} + +// IfNode represents an {{if}} action and its commands. +type IfNode struct { + BranchNode +} + +func (t *Tree) newIf(pos Pos, line int, pipe *PipeNode, list, elseList *ListNode) *IfNode { + return &IfNode{BranchNode{tr: t, NodeType: NodeIf, Pos: pos, Line: line, Pipe: pipe, List: list, ElseList: elseList}} +} + +func (i *IfNode) Copy() Node { + return i.tr.newIf(i.Pos, i.Line, i.Pipe.CopyPipe(), i.List.CopyList(), i.ElseList.CopyList()) +} + +// RangeNode represents a {{range}} action and its commands. +type RangeNode struct { + BranchNode +} + +func (t *Tree) newRange(pos Pos, line int, pipe *PipeNode, list, elseList *ListNode) *RangeNode { + return &RangeNode{BranchNode{tr: t, NodeType: NodeRange, Pos: pos, Line: line, Pipe: pipe, List: list, ElseList: elseList}} +} + +func (r *RangeNode) Copy() Node { + return r.tr.newRange(r.Pos, r.Line, r.Pipe.CopyPipe(), r.List.CopyList(), r.ElseList.CopyList()) +} + +// WithNode represents a {{with}} action and its commands. +type WithNode struct { + BranchNode +} + +func (t *Tree) newWith(pos Pos, line int, pipe *PipeNode, list, elseList *ListNode) *WithNode { + return &WithNode{BranchNode{tr: t, NodeType: NodeWith, Pos: pos, Line: line, Pipe: pipe, List: list, ElseList: elseList}} +} + +func (w *WithNode) Copy() Node { + return w.tr.newWith(w.Pos, w.Line, w.Pipe.CopyPipe(), w.List.CopyList(), w.ElseList.CopyList()) +} + +// TemplateNode represents a {{template}} action. +type TemplateNode struct { + NodeType + Pos + tr *Tree + Line int // The line number in the input (deprecated; kept for compatibility) + Name string // The name of the template (unquoted). + Pipe *PipeNode // The command to evaluate as dot for the template. +} + +func (t *Tree) newTemplate(pos Pos, line int, name string, pipe *PipeNode) *TemplateNode { + return &TemplateNode{tr: t, NodeType: NodeTemplate, Pos: pos, Line: line, Name: name, Pipe: pipe} +} + +func (t *TemplateNode) String() string { + if t.Pipe == nil { + return fmt.Sprintf("{{template %q}}", t.Name) + } + return fmt.Sprintf("{{template %q %s}}", t.Name, t.Pipe) +} + +func (t *TemplateNode) tree() *Tree { + return t.tr +} + +func (t *TemplateNode) Copy() Node { + return t.tr.newTemplate(t.Pos, t.Line, t.Name, t.Pipe.CopyPipe()) +} diff --git a/vendor/github.com/alecthomas/template/parse/parse.go b/vendor/github.com/alecthomas/template/parse/parse.go new file mode 100644 index 0000000..0d77ade --- /dev/null +++ b/vendor/github.com/alecthomas/template/parse/parse.go @@ -0,0 +1,700 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package parse builds parse trees for templates as defined by text/template +// and html/template. Clients should use those packages to construct templates +// rather than this one, which provides shared internal data structures not +// intended for general use. +package parse + +import ( + "bytes" + "fmt" + "runtime" + "strconv" + "strings" +) + +// Tree is the representation of a single parsed template. +type Tree struct { + Name string // name of the template represented by the tree. + ParseName string // name of the top-level template during parsing, for error messages. + Root *ListNode // top-level root of the tree. + text string // text parsed to create the template (or its parent) + // Parsing only; cleared after parse. + funcs []map[string]interface{} + lex *lexer + token [3]item // three-token lookahead for parser. + peekCount int + vars []string // variables defined at the moment. +} + +// Copy returns a copy of the Tree. Any parsing state is discarded. +func (t *Tree) Copy() *Tree { + if t == nil { + return nil + } + return &Tree{ + Name: t.Name, + ParseName: t.ParseName, + Root: t.Root.CopyList(), + text: t.text, + } +} + +// Parse returns a map from template name to parse.Tree, created by parsing the +// templates described in the argument string. The top-level template will be +// given the specified name. If an error is encountered, parsing stops and an +// empty map is returned with the error. +func Parse(name, text, leftDelim, rightDelim string, funcs ...map[string]interface{}) (treeSet map[string]*Tree, err error) { + treeSet = make(map[string]*Tree) + t := New(name) + t.text = text + _, err = t.Parse(text, leftDelim, rightDelim, treeSet, funcs...) + return +} + +// next returns the next token. +func (t *Tree) next() item { + if t.peekCount > 0 { + t.peekCount-- + } else { + t.token[0] = t.lex.nextItem() + } + return t.token[t.peekCount] +} + +// backup backs the input stream up one token. +func (t *Tree) backup() { + t.peekCount++ +} + +// backup2 backs the input stream up two tokens. +// The zeroth token is already there. +func (t *Tree) backup2(t1 item) { + t.token[1] = t1 + t.peekCount = 2 +} + +// backup3 backs the input stream up three tokens +// The zeroth token is already there. +func (t *Tree) backup3(t2, t1 item) { // Reverse order: we're pushing back. + t.token[1] = t1 + t.token[2] = t2 + t.peekCount = 3 +} + +// peek returns but does not consume the next token. +func (t *Tree) peek() item { + if t.peekCount > 0 { + return t.token[t.peekCount-1] + } + t.peekCount = 1 + t.token[0] = t.lex.nextItem() + return t.token[0] +} + +// nextNonSpace returns the next non-space token. +func (t *Tree) nextNonSpace() (token item) { + for { + token = t.next() + if token.typ != itemSpace { + break + } + } + return token +} + +// peekNonSpace returns but does not consume the next non-space token. +func (t *Tree) peekNonSpace() (token item) { + for { + token = t.next() + if token.typ != itemSpace { + break + } + } + t.backup() + return token +} + +// Parsing. + +// New allocates a new parse tree with the given name. +func New(name string, funcs ...map[string]interface{}) *Tree { + return &Tree{ + Name: name, + funcs: funcs, + } +} + +// ErrorContext returns a textual representation of the location of the node in the input text. +// The receiver is only used when the node does not have a pointer to the tree inside, +// which can occur in old code. +func (t *Tree) ErrorContext(n Node) (location, context string) { + pos := int(n.Position()) + tree := n.tree() + if tree == nil { + tree = t + } + text := tree.text[:pos] + byteNum := strings.LastIndex(text, "\n") + if byteNum == -1 { + byteNum = pos // On first line. + } else { + byteNum++ // After the newline. + byteNum = pos - byteNum + } + lineNum := 1 + strings.Count(text, "\n") + context = n.String() + if len(context) > 20 { + context = fmt.Sprintf("%.20s...", context) + } + return fmt.Sprintf("%s:%d:%d", tree.ParseName, lineNum, byteNum), context +} + +// errorf formats the error and terminates processing. +func (t *Tree) errorf(format string, args ...interface{}) { + t.Root = nil + format = fmt.Sprintf("template: %s:%d: %s", t.ParseName, t.lex.lineNumber(), format) + panic(fmt.Errorf(format, args...)) +} + +// error terminates processing. +func (t *Tree) error(err error) { + t.errorf("%s", err) +} + +// expect consumes the next token and guarantees it has the required type. +func (t *Tree) expect(expected itemType, context string) item { + token := t.nextNonSpace() + if token.typ != expected { + t.unexpected(token, context) + } + return token +} + +// expectOneOf consumes the next token and guarantees it has one of the required types. +func (t *Tree) expectOneOf(expected1, expected2 itemType, context string) item { + token := t.nextNonSpace() + if token.typ != expected1 && token.typ != expected2 { + t.unexpected(token, context) + } + return token +} + +// unexpected complains about the token and terminates processing. +func (t *Tree) unexpected(token item, context string) { + t.errorf("unexpected %s in %s", token, context) +} + +// recover is the handler that turns panics into returns from the top level of Parse. +func (t *Tree) recover(errp *error) { + e := recover() + if e != nil { + if _, ok := e.(runtime.Error); ok { + panic(e) + } + if t != nil { + t.stopParse() + } + *errp = e.(error) + } + return +} + +// startParse initializes the parser, using the lexer. +func (t *Tree) startParse(funcs []map[string]interface{}, lex *lexer) { + t.Root = nil + t.lex = lex + t.vars = []string{"$"} + t.funcs = funcs +} + +// stopParse terminates parsing. +func (t *Tree) stopParse() { + t.lex = nil + t.vars = nil + t.funcs = nil +} + +// Parse parses the template definition string to construct a representation of +// the template for execution. If either action delimiter string is empty, the +// default ("{{" or "}}") is used. Embedded template definitions are added to +// the treeSet map. +func (t *Tree) Parse(text, leftDelim, rightDelim string, treeSet map[string]*Tree, funcs ...map[string]interface{}) (tree *Tree, err error) { + defer t.recover(&err) + t.ParseName = t.Name + t.startParse(funcs, lex(t.Name, text, leftDelim, rightDelim)) + t.text = text + t.parse(treeSet) + t.add(treeSet) + t.stopParse() + return t, nil +} + +// add adds tree to the treeSet. +func (t *Tree) add(treeSet map[string]*Tree) { + tree := treeSet[t.Name] + if tree == nil || IsEmptyTree(tree.Root) { + treeSet[t.Name] = t + return + } + if !IsEmptyTree(t.Root) { + t.errorf("template: multiple definition of template %q", t.Name) + } +} + +// IsEmptyTree reports whether this tree (node) is empty of everything but space. +func IsEmptyTree(n Node) bool { + switch n := n.(type) { + case nil: + return true + case *ActionNode: + case *IfNode: + case *ListNode: + for _, node := range n.Nodes { + if !IsEmptyTree(node) { + return false + } + } + return true + case *RangeNode: + case *TemplateNode: + case *TextNode: + return len(bytes.TrimSpace(n.Text)) == 0 + case *WithNode: + default: + panic("unknown node: " + n.String()) + } + return false +} + +// parse is the top-level parser for a template, essentially the same +// as itemList except it also parses {{define}} actions. +// It runs to EOF. +func (t *Tree) parse(treeSet map[string]*Tree) (next Node) { + t.Root = t.newList(t.peek().pos) + for t.peek().typ != itemEOF { + if t.peek().typ == itemLeftDelim { + delim := t.next() + if t.nextNonSpace().typ == itemDefine { + newT := New("definition") // name will be updated once we know it. + newT.text = t.text + newT.ParseName = t.ParseName + newT.startParse(t.funcs, t.lex) + newT.parseDefinition(treeSet) + continue + } + t.backup2(delim) + } + n := t.textOrAction() + if n.Type() == nodeEnd { + t.errorf("unexpected %s", n) + } + t.Root.append(n) + } + return nil +} + +// parseDefinition parses a {{define}} ... {{end}} template definition and +// installs the definition in the treeSet map. The "define" keyword has already +// been scanned. +func (t *Tree) parseDefinition(treeSet map[string]*Tree) { + const context = "define clause" + name := t.expectOneOf(itemString, itemRawString, context) + var err error + t.Name, err = strconv.Unquote(name.val) + if err != nil { + t.error(err) + } + t.expect(itemRightDelim, context) + var end Node + t.Root, end = t.itemList() + if end.Type() != nodeEnd { + t.errorf("unexpected %s in %s", end, context) + } + t.add(treeSet) + t.stopParse() +} + +// itemList: +// textOrAction* +// Terminates at {{end}} or {{else}}, returned separately. +func (t *Tree) itemList() (list *ListNode, next Node) { + list = t.newList(t.peekNonSpace().pos) + for t.peekNonSpace().typ != itemEOF { + n := t.textOrAction() + switch n.Type() { + case nodeEnd, nodeElse: + return list, n + } + list.append(n) + } + t.errorf("unexpected EOF") + return +} + +// textOrAction: +// text | action +func (t *Tree) textOrAction() Node { + switch token := t.nextNonSpace(); token.typ { + case itemElideNewline: + return t.elideNewline() + case itemText: + return t.newText(token.pos, token.val) + case itemLeftDelim: + return t.action() + default: + t.unexpected(token, "input") + } + return nil +} + +// elideNewline: +// Remove newlines trailing rightDelim if \\ is present. +func (t *Tree) elideNewline() Node { + token := t.peek() + if token.typ != itemText { + t.unexpected(token, "input") + return nil + } + + t.next() + stripped := strings.TrimLeft(token.val, "\n\r") + diff := len(token.val) - len(stripped) + if diff > 0 { + // This is a bit nasty. We mutate the token in-place to remove + // preceding newlines. + token.pos += Pos(diff) + token.val = stripped + } + return t.newText(token.pos, token.val) +} + +// Action: +// control +// command ("|" command)* +// Left delim is past. Now get actions. +// First word could be a keyword such as range. +func (t *Tree) action() (n Node) { + switch token := t.nextNonSpace(); token.typ { + case itemElse: + return t.elseControl() + case itemEnd: + return t.endControl() + case itemIf: + return t.ifControl() + case itemRange: + return t.rangeControl() + case itemTemplate: + return t.templateControl() + case itemWith: + return t.withControl() + } + t.backup() + // Do not pop variables; they persist until "end". + return t.newAction(t.peek().pos, t.lex.lineNumber(), t.pipeline("command")) +} + +// Pipeline: +// declarations? command ('|' command)* +func (t *Tree) pipeline(context string) (pipe *PipeNode) { + var decl []*VariableNode + pos := t.peekNonSpace().pos + // Are there declarations? + for { + if v := t.peekNonSpace(); v.typ == itemVariable { + t.next() + // Since space is a token, we need 3-token look-ahead here in the worst case: + // in "$x foo" we need to read "foo" (as opposed to ":=") to know that $x is an + // argument variable rather than a declaration. So remember the token + // adjacent to the variable so we can push it back if necessary. + tokenAfterVariable := t.peek() + if next := t.peekNonSpace(); next.typ == itemColonEquals || (next.typ == itemChar && next.val == ",") { + t.nextNonSpace() + variable := t.newVariable(v.pos, v.val) + decl = append(decl, variable) + t.vars = append(t.vars, v.val) + if next.typ == itemChar && next.val == "," { + if context == "range" && len(decl) < 2 { + continue + } + t.errorf("too many declarations in %s", context) + } + } else if tokenAfterVariable.typ == itemSpace { + t.backup3(v, tokenAfterVariable) + } else { + t.backup2(v) + } + } + break + } + pipe = t.newPipeline(pos, t.lex.lineNumber(), decl) + for { + switch token := t.nextNonSpace(); token.typ { + case itemRightDelim, itemRightParen: + if len(pipe.Cmds) == 0 { + t.errorf("missing value for %s", context) + } + if token.typ == itemRightParen { + t.backup() + } + return + case itemBool, itemCharConstant, itemComplex, itemDot, itemField, itemIdentifier, + itemNumber, itemNil, itemRawString, itemString, itemVariable, itemLeftParen: + t.backup() + pipe.append(t.command()) + default: + t.unexpected(token, context) + } + } +} + +func (t *Tree) parseControl(allowElseIf bool, context string) (pos Pos, line int, pipe *PipeNode, list, elseList *ListNode) { + defer t.popVars(len(t.vars)) + line = t.lex.lineNumber() + pipe = t.pipeline(context) + var next Node + list, next = t.itemList() + switch next.Type() { + case nodeEnd: //done + case nodeElse: + if allowElseIf { + // Special case for "else if". If the "else" is followed immediately by an "if", + // the elseControl will have left the "if" token pending. Treat + // {{if a}}_{{else if b}}_{{end}} + // as + // {{if a}}_{{else}}{{if b}}_{{end}}{{end}}. + // To do this, parse the if as usual and stop at it {{end}}; the subsequent{{end}} + // is assumed. This technique works even for long if-else-if chains. + // TODO: Should we allow else-if in with and range? + if t.peek().typ == itemIf { + t.next() // Consume the "if" token. + elseList = t.newList(next.Position()) + elseList.append(t.ifControl()) + // Do not consume the next item - only one {{end}} required. + break + } + } + elseList, next = t.itemList() + if next.Type() != nodeEnd { + t.errorf("expected end; found %s", next) + } + } + return pipe.Position(), line, pipe, list, elseList +} + +// If: +// {{if pipeline}} itemList {{end}} +// {{if pipeline}} itemList {{else}} itemList {{end}} +// If keyword is past. +func (t *Tree) ifControl() Node { + return t.newIf(t.parseControl(true, "if")) +} + +// Range: +// {{range pipeline}} itemList {{end}} +// {{range pipeline}} itemList {{else}} itemList {{end}} +// Range keyword is past. +func (t *Tree) rangeControl() Node { + return t.newRange(t.parseControl(false, "range")) +} + +// With: +// {{with pipeline}} itemList {{end}} +// {{with pipeline}} itemList {{else}} itemList {{end}} +// If keyword is past. +func (t *Tree) withControl() Node { + return t.newWith(t.parseControl(false, "with")) +} + +// End: +// {{end}} +// End keyword is past. +func (t *Tree) endControl() Node { + return t.newEnd(t.expect(itemRightDelim, "end").pos) +} + +// Else: +// {{else}} +// Else keyword is past. +func (t *Tree) elseControl() Node { + // Special case for "else if". + peek := t.peekNonSpace() + if peek.typ == itemIf { + // We see "{{else if ... " but in effect rewrite it to {{else}}{{if ... ". + return t.newElse(peek.pos, t.lex.lineNumber()) + } + return t.newElse(t.expect(itemRightDelim, "else").pos, t.lex.lineNumber()) +} + +// Template: +// {{template stringValue pipeline}} +// Template keyword is past. The name must be something that can evaluate +// to a string. +func (t *Tree) templateControl() Node { + var name string + token := t.nextNonSpace() + switch token.typ { + case itemString, itemRawString: + s, err := strconv.Unquote(token.val) + if err != nil { + t.error(err) + } + name = s + default: + t.unexpected(token, "template invocation") + } + var pipe *PipeNode + if t.nextNonSpace().typ != itemRightDelim { + t.backup() + // Do not pop variables; they persist until "end". + pipe = t.pipeline("template") + } + return t.newTemplate(token.pos, t.lex.lineNumber(), name, pipe) +} + +// command: +// operand (space operand)* +// space-separated arguments up to a pipeline character or right delimiter. +// we consume the pipe character but leave the right delim to terminate the action. +func (t *Tree) command() *CommandNode { + cmd := t.newCommand(t.peekNonSpace().pos) + for { + t.peekNonSpace() // skip leading spaces. + operand := t.operand() + if operand != nil { + cmd.append(operand) + } + switch token := t.next(); token.typ { + case itemSpace: + continue + case itemError: + t.errorf("%s", token.val) + case itemRightDelim, itemRightParen: + t.backup() + case itemPipe: + default: + t.errorf("unexpected %s in operand; missing space?", token) + } + break + } + if len(cmd.Args) == 0 { + t.errorf("empty command") + } + return cmd +} + +// operand: +// term .Field* +// An operand is a space-separated component of a command, +// a term possibly followed by field accesses. +// A nil return means the next item is not an operand. +func (t *Tree) operand() Node { + node := t.term() + if node == nil { + return nil + } + if t.peek().typ == itemField { + chain := t.newChain(t.peek().pos, node) + for t.peek().typ == itemField { + chain.Add(t.next().val) + } + // Compatibility with original API: If the term is of type NodeField + // or NodeVariable, just put more fields on the original. + // Otherwise, keep the Chain node. + // TODO: Switch to Chains always when we can. + switch node.Type() { + case NodeField: + node = t.newField(chain.Position(), chain.String()) + case NodeVariable: + node = t.newVariable(chain.Position(), chain.String()) + default: + node = chain + } + } + return node +} + +// term: +// literal (number, string, nil, boolean) +// function (identifier) +// . +// .Field +// $ +// '(' pipeline ')' +// A term is a simple "expression". +// A nil return means the next item is not a term. +func (t *Tree) term() Node { + switch token := t.nextNonSpace(); token.typ { + case itemError: + t.errorf("%s", token.val) + case itemIdentifier: + if !t.hasFunction(token.val) { + t.errorf("function %q not defined", token.val) + } + return NewIdentifier(token.val).SetTree(t).SetPos(token.pos) + case itemDot: + return t.newDot(token.pos) + case itemNil: + return t.newNil(token.pos) + case itemVariable: + return t.useVar(token.pos, token.val) + case itemField: + return t.newField(token.pos, token.val) + case itemBool: + return t.newBool(token.pos, token.val == "true") + case itemCharConstant, itemComplex, itemNumber: + number, err := t.newNumber(token.pos, token.val, token.typ) + if err != nil { + t.error(err) + } + return number + case itemLeftParen: + pipe := t.pipeline("parenthesized pipeline") + if token := t.next(); token.typ != itemRightParen { + t.errorf("unclosed right paren: unexpected %s", token) + } + return pipe + case itemString, itemRawString: + s, err := strconv.Unquote(token.val) + if err != nil { + t.error(err) + } + return t.newString(token.pos, token.val, s) + } + t.backup() + return nil +} + +// hasFunction reports if a function name exists in the Tree's maps. +func (t *Tree) hasFunction(name string) bool { + for _, funcMap := range t.funcs { + if funcMap == nil { + continue + } + if funcMap[name] != nil { + return true + } + } + return false +} + +// popVars trims the variable list to the specified length +func (t *Tree) popVars(n int) { + t.vars = t.vars[:n] +} + +// useVar returns a node for a variable reference. It errors if the +// variable is not defined. +func (t *Tree) useVar(pos Pos, name string) Node { + v := t.newVariable(pos, name) + for _, varName := range t.vars { + if varName == v.Ident[0] { + return v + } + } + t.errorf("undefined variable %q", v.Ident[0]) + return nil +} diff --git a/vendor/github.com/alecthomas/template/template.go b/vendor/github.com/alecthomas/template/template.go new file mode 100644 index 0000000..447ed2a --- /dev/null +++ b/vendor/github.com/alecthomas/template/template.go @@ -0,0 +1,218 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package template + +import ( + "fmt" + "reflect" + + "github.com/alecthomas/template/parse" +) + +// common holds the information shared by related templates. +type common struct { + tmpl map[string]*Template + // We use two maps, one for parsing and one for execution. + // This separation makes the API cleaner since it doesn't + // expose reflection to the client. + parseFuncs FuncMap + execFuncs map[string]reflect.Value +} + +// Template is the representation of a parsed template. The *parse.Tree +// field is exported only for use by html/template and should be treated +// as unexported by all other clients. +type Template struct { + name string + *parse.Tree + *common + leftDelim string + rightDelim string +} + +// New allocates a new template with the given name. +func New(name string) *Template { + return &Template{ + name: name, + } +} + +// Name returns the name of the template. +func (t *Template) Name() string { + return t.name +} + +// New allocates a new template associated with the given one and with the same +// delimiters. The association, which is transitive, allows one template to +// invoke another with a {{template}} action. +func (t *Template) New(name string) *Template { + t.init() + return &Template{ + name: name, + common: t.common, + leftDelim: t.leftDelim, + rightDelim: t.rightDelim, + } +} + +func (t *Template) init() { + if t.common == nil { + t.common = new(common) + t.tmpl = make(map[string]*Template) + t.parseFuncs = make(FuncMap) + t.execFuncs = make(map[string]reflect.Value) + } +} + +// Clone returns a duplicate of the template, including all associated +// templates. The actual representation is not copied, but the name space of +// associated templates is, so further calls to Parse in the copy will add +// templates to the copy but not to the original. Clone can be used to prepare +// common templates and use them with variant definitions for other templates +// by adding the variants after the clone is made. +func (t *Template) Clone() (*Template, error) { + nt := t.copy(nil) + nt.init() + nt.tmpl[t.name] = nt + for k, v := range t.tmpl { + if k == t.name { // Already installed. + continue + } + // The associated templates share nt's common structure. + tmpl := v.copy(nt.common) + nt.tmpl[k] = tmpl + } + for k, v := range t.parseFuncs { + nt.parseFuncs[k] = v + } + for k, v := range t.execFuncs { + nt.execFuncs[k] = v + } + return nt, nil +} + +// copy returns a shallow copy of t, with common set to the argument. +func (t *Template) copy(c *common) *Template { + nt := New(t.name) + nt.Tree = t.Tree + nt.common = c + nt.leftDelim = t.leftDelim + nt.rightDelim = t.rightDelim + return nt +} + +// AddParseTree creates a new template with the name and parse tree +// and associates it with t. +func (t *Template) AddParseTree(name string, tree *parse.Tree) (*Template, error) { + if t.common != nil && t.tmpl[name] != nil { + return nil, fmt.Errorf("template: redefinition of template %q", name) + } + nt := t.New(name) + nt.Tree = tree + t.tmpl[name] = nt + return nt, nil +} + +// Templates returns a slice of the templates associated with t, including t +// itself. +func (t *Template) Templates() []*Template { + if t.common == nil { + return nil + } + // Return a slice so we don't expose the map. + m := make([]*Template, 0, len(t.tmpl)) + for _, v := range t.tmpl { + m = append(m, v) + } + return m +} + +// Delims sets the action delimiters to the specified strings, to be used in +// subsequent calls to Parse, ParseFiles, or ParseGlob. Nested template +// definitions will inherit the settings. An empty delimiter stands for the +// corresponding default: {{ or }}. +// The return value is the template, so calls can be chained. +func (t *Template) Delims(left, right string) *Template { + t.leftDelim = left + t.rightDelim = right + return t +} + +// Funcs adds the elements of the argument map to the template's function map. +// It panics if a value in the map is not a function with appropriate return +// type. However, it is legal to overwrite elements of the map. The return +// value is the template, so calls can be chained. +func (t *Template) Funcs(funcMap FuncMap) *Template { + t.init() + addValueFuncs(t.execFuncs, funcMap) + addFuncs(t.parseFuncs, funcMap) + return t +} + +// Lookup returns the template with the given name that is associated with t, +// or nil if there is no such template. +func (t *Template) Lookup(name string) *Template { + if t.common == nil { + return nil + } + return t.tmpl[name] +} + +// Parse parses a string into a template. Nested template definitions will be +// associated with the top-level template t. Parse may be called multiple times +// to parse definitions of templates to associate with t. It is an error if a +// resulting template is non-empty (contains content other than template +// definitions) and would replace a non-empty template with the same name. +// (In multiple calls to Parse with the same receiver template, only one call +// can contain text other than space, comments, and template definitions.) +func (t *Template) Parse(text string) (*Template, error) { + t.init() + trees, err := parse.Parse(t.name, text, t.leftDelim, t.rightDelim, t.parseFuncs, builtins) + if err != nil { + return nil, err + } + // Add the newly parsed trees, including the one for t, into our common structure. + for name, tree := range trees { + // If the name we parsed is the name of this template, overwrite this template. + // The associate method checks it's not a redefinition. + tmpl := t + if name != t.name { + tmpl = t.New(name) + } + // Even if t == tmpl, we need to install it in the common.tmpl map. + if replace, err := t.associate(tmpl, tree); err != nil { + return nil, err + } else if replace { + tmpl.Tree = tree + } + tmpl.leftDelim = t.leftDelim + tmpl.rightDelim = t.rightDelim + } + return t, nil +} + +// associate installs the new template into the group of templates associated +// with t. It is an error to reuse a name except to overwrite an empty +// template. The two are already known to share the common structure. +// The boolean return value reports wither to store this tree as t.Tree. +func (t *Template) associate(new *Template, tree *parse.Tree) (bool, error) { + if new.common != t.common { + panic("internal error: associate not common") + } + name := new.name + if old := t.tmpl[name]; old != nil { + oldIsEmpty := parse.IsEmptyTree(old.Root) + newIsEmpty := parse.IsEmptyTree(tree.Root) + if newIsEmpty { + // Whether old is empty or not, new is empty; no reason to replace old. + return false, nil + } + if !oldIsEmpty { + return false, fmt.Errorf("template: redefinition of template %q", name) + } + } + t.tmpl[name] = new + return true, nil +} diff --git a/vendor/github.com/alecthomas/units/COPYING b/vendor/github.com/alecthomas/units/COPYING new file mode 100644 index 0000000..2993ec0 --- /dev/null +++ b/vendor/github.com/alecthomas/units/COPYING @@ -0,0 +1,19 @@ +Copyright (C) 2014 Alec Thomas + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vendor/github.com/alecthomas/units/README.md b/vendor/github.com/alecthomas/units/README.md new file mode 100644 index 0000000..bee884e --- /dev/null +++ b/vendor/github.com/alecthomas/units/README.md @@ -0,0 +1,11 @@ +# Units - Helpful unit multipliers and functions for Go + +The goal of this package is to have functionality similar to the [time](http://golang.org/pkg/time/) package. + +It allows for code like this: + +```go +n, err := ParseBase2Bytes("1KB") +// n == 1024 +n = units.Mebibyte * 512 +``` diff --git a/vendor/github.com/alecthomas/units/bytes.go b/vendor/github.com/alecthomas/units/bytes.go new file mode 100644 index 0000000..eaadeb8 --- /dev/null +++ b/vendor/github.com/alecthomas/units/bytes.go @@ -0,0 +1,83 @@ +package units + +// Base2Bytes is the old non-SI power-of-2 byte scale (1024 bytes in a kilobyte, +// etc.). +type Base2Bytes int64 + +// Base-2 byte units. +const ( + Kibibyte Base2Bytes = 1024 + KiB = Kibibyte + Mebibyte = Kibibyte * 1024 + MiB = Mebibyte + Gibibyte = Mebibyte * 1024 + GiB = Gibibyte + Tebibyte = Gibibyte * 1024 + TiB = Tebibyte + Pebibyte = Tebibyte * 1024 + PiB = Pebibyte + Exbibyte = Pebibyte * 1024 + EiB = Exbibyte +) + +var ( + bytesUnitMap = MakeUnitMap("iB", "B", 1024) + oldBytesUnitMap = MakeUnitMap("B", "B", 1024) +) + +// ParseBase2Bytes supports both iB and B in base-2 multipliers. That is, KB +// and KiB are both 1024. +func ParseBase2Bytes(s string) (Base2Bytes, error) { + n, err := ParseUnit(s, bytesUnitMap) + if err != nil { + n, err = ParseUnit(s, oldBytesUnitMap) + } + return Base2Bytes(n), err +} + +func (b Base2Bytes) String() string { + return ToString(int64(b), 1024, "iB", "B") +} + +var ( + metricBytesUnitMap = MakeUnitMap("B", "B", 1000) +) + +// MetricBytes are SI byte units (1000 bytes in a kilobyte). +type MetricBytes SI + +// SI base-10 byte units. +const ( + Kilobyte MetricBytes = 1000 + KB = Kilobyte + Megabyte = Kilobyte * 1000 + MB = Megabyte + Gigabyte = Megabyte * 1000 + GB = Gigabyte + Terabyte = Gigabyte * 1000 + TB = Terabyte + Petabyte = Terabyte * 1000 + PB = Petabyte + Exabyte = Petabyte * 1000 + EB = Exabyte +) + +// ParseMetricBytes parses base-10 metric byte units. That is, KB is 1000 bytes. +func ParseMetricBytes(s string) (MetricBytes, error) { + n, err := ParseUnit(s, metricBytesUnitMap) + return MetricBytes(n), err +} + +func (m MetricBytes) String() string { + return ToString(int64(m), 1000, "B", "B") +} + +// ParseStrictBytes supports both iB and B suffixes for base 2 and metric, +// respectively. That is, KiB represents 1024 and KB represents 1000. +func ParseStrictBytes(s string) (int64, error) { + n, err := ParseUnit(s, bytesUnitMap) + if err != nil { + n, err = ParseUnit(s, metricBytesUnitMap) + } + return int64(n), err +} diff --git a/vendor/github.com/alecthomas/units/doc.go b/vendor/github.com/alecthomas/units/doc.go new file mode 100644 index 0000000..156ae38 --- /dev/null +++ b/vendor/github.com/alecthomas/units/doc.go @@ -0,0 +1,13 @@ +// Package units provides helpful unit multipliers and functions for Go. +// +// The goal of this package is to have functionality similar to the time [1] package. +// +// +// [1] http://golang.org/pkg/time/ +// +// It allows for code like this: +// +// n, err := ParseBase2Bytes("1KB") +// // n == 1024 +// n = units.Mebibyte * 512 +package units diff --git a/vendor/github.com/alecthomas/units/si.go b/vendor/github.com/alecthomas/units/si.go new file mode 100644 index 0000000..8234a9d --- /dev/null +++ b/vendor/github.com/alecthomas/units/si.go @@ -0,0 +1,26 @@ +package units + +// SI units. +type SI int64 + +// SI unit multiples. +const ( + Kilo SI = 1000 + Mega = Kilo * 1000 + Giga = Mega * 1000 + Tera = Giga * 1000 + Peta = Tera * 1000 + Exa = Peta * 1000 +) + +func MakeUnitMap(suffix, shortSuffix string, scale int64) map[string]float64 { + return map[string]float64{ + shortSuffix: 1, + "K" + suffix: float64(scale), + "M" + suffix: float64(scale * scale), + "G" + suffix: float64(scale * scale * scale), + "T" + suffix: float64(scale * scale * scale * scale), + "P" + suffix: float64(scale * scale * scale * scale * scale), + "E" + suffix: float64(scale * scale * scale * scale * scale * scale), + } +} diff --git a/vendor/github.com/alecthomas/units/util.go b/vendor/github.com/alecthomas/units/util.go new file mode 100644 index 0000000..6527e92 --- /dev/null +++ b/vendor/github.com/alecthomas/units/util.go @@ -0,0 +1,138 @@ +package units + +import ( + "errors" + "fmt" + "strings" +) + +var ( + siUnits = []string{"", "K", "M", "G", "T", "P", "E"} +) + +func ToString(n int64, scale int64, suffix, baseSuffix string) string { + mn := len(siUnits) + out := make([]string, mn) + for i, m := range siUnits { + if n%scale != 0 || i == 0 && n == 0 { + s := suffix + if i == 0 { + s = baseSuffix + } + out[mn-1-i] = fmt.Sprintf("%d%s%s", n%scale, m, s) + } + n /= scale + if n == 0 { + break + } + } + return strings.Join(out, "") +} + +// Below code ripped straight from http://golang.org/src/pkg/time/format.go?s=33392:33438#L1123 +var errLeadingInt = errors.New("units: bad [0-9]*") // never printed + +// leadingInt consumes the leading [0-9]* from s. +func leadingInt(s string) (x int64, rem string, err error) { + i := 0 + for ; i < len(s); i++ { + c := s[i] + if c < '0' || c > '9' { + break + } + if x >= (1<<63-10)/10 { + // overflow + return 0, "", errLeadingInt + } + x = x*10 + int64(c) - '0' + } + return x, s[i:], nil +} + +func ParseUnit(s string, unitMap map[string]float64) (int64, error) { + // [-+]?([0-9]*(\.[0-9]*)?[a-z]+)+ + orig := s + f := float64(0) + neg := false + + // Consume [-+]? + if s != "" { + c := s[0] + if c == '-' || c == '+' { + neg = c == '-' + s = s[1:] + } + } + // Special case: if all that is left is "0", this is zero. + if s == "0" { + return 0, nil + } + if s == "" { + return 0, errors.New("units: invalid " + orig) + } + for s != "" { + g := float64(0) // this element of the sequence + + var x int64 + var err error + + // The next character must be [0-9.] + if !(s[0] == '.' || ('0' <= s[0] && s[0] <= '9')) { + return 0, errors.New("units: invalid " + orig) + } + // Consume [0-9]* + pl := len(s) + x, s, err = leadingInt(s) + if err != nil { + return 0, errors.New("units: invalid " + orig) + } + g = float64(x) + pre := pl != len(s) // whether we consumed anything before a period + + // Consume (\.[0-9]*)? + post := false + if s != "" && s[0] == '.' { + s = s[1:] + pl := len(s) + x, s, err = leadingInt(s) + if err != nil { + return 0, errors.New("units: invalid " + orig) + } + scale := 1.0 + for n := pl - len(s); n > 0; n-- { + scale *= 10 + } + g += float64(x) / scale + post = pl != len(s) + } + if !pre && !post { + // no digits (e.g. ".s" or "-.s") + return 0, errors.New("units: invalid " + orig) + } + + // Consume unit. + i := 0 + for ; i < len(s); i++ { + c := s[i] + if c == '.' || ('0' <= c && c <= '9') { + break + } + } + u := s[:i] + s = s[i:] + unit, ok := unitMap[u] + if !ok { + return 0, errors.New("units: unknown unit " + u + " in " + orig) + } + + f += g * unit + } + + if neg { + f = -f + } + if f < float64(-1<<63) || f > float64(1<<63-1) { + return 0, errors.New("units: overflow parsing unit") + } + return int64(f), nil +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/LICENSE b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/LICENSE @@ -0,0 +1,201 @@ + 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 [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT 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/auth/credential.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credential.go new file mode 100644 index 0000000..7f20b7a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credential.go @@ -0,0 +1,18 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 new file mode 100644 index 0000000..68f8226 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/access_key_credential.go @@ -0,0 +1,34 @@ +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/ecs_ram_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/ecs_ram_role.go new file mode 100644 index 0000000..1e1f73a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/ecs_ram_role.go @@ -0,0 +1,29 @@ +package credentials + +// 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, + } +} + +func (oldCred *StsRoleNameOnEcsCredential) ToEcsRamRoleCredential() *EcsRamRoleCredential { + return &EcsRamRoleCredential{ + RoleName: oldCred.RoleName, + } +} + +type EcsRamRoleCredential struct { + RoleName string +} + +func NewEcsRamRoleCredential(roleName string) *EcsRamRoleCredential { + return &EcsRamRoleCredential{ + RoleName: roleName, + } +} 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 new file mode 100644 index 0000000..00d688e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/rsa_key_pair_credential.go @@ -0,0 +1,15 @@ +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 new file mode 100644 index 0000000..554431f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_credential.go @@ -0,0 +1,15 @@ +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 new file mode 100644 index 0000000..7a9db75 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_role_arn_credential.go @@ -0,0 +1,49 @@ +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 +} + +// 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, + } +} 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 new file mode 100644 index 0000000..902f1a6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/roa_signature_composer.go @@ -0,0 +1,121 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" + "sort" + "strings" +) + +func signRoaRequest(request requests.AcsRequest, signer Signer, regionId string) (err error) { + completeROASignParams(request, signer, regionId) + stringToSign := buildRoaStringToSign(request) + request.SetStringToSign(stringToSign) + signature := signer.Sign(stringToSign, "") + accessKeyId, err := signer.GetAccessKeyId() + if err != nil { + return nil + } + + 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 + } + + queryParams[key] = value + } + } + + // complete header params + headerParams["Date"] = 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)) + 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() + 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 new file mode 100644 index 0000000..0c6f6d1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/rpc_signature_composer.go @@ -0,0 +1,96 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" + "net/url" + "sort" + "strings" +) + +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"] = utils.GetTimeInFormatISO8601() + queryParams["SignatureMethod"] = signer.GetName() + queryParams["SignatureType"] = signer.GetType() + queryParams["SignatureVersion"] = signer.GetVersion() + queryParams["SignatureNonce"] = utils.GetUUIDV4() + 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 + } + + // sort params by key + var paramKeySlice []string + for key := range signParams { + paramKeySlice = append(paramKeySlice, key) + } + sort.Strings(paramKeySlice) + 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 new file mode 100644 index 0000000..ba946d0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signer.go @@ -0,0 +1,95 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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" + "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" + "reflect" +) + +type Signer interface { + GetName() string + GetType() string + GetVersion() string + GetAccessKeyId() (string, error) + GetExtraParam() map[string]string + Sign(stringToSign, secretSuffix string) string + Shutdown() +} + +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, err = signers.NewAccessKeySigner(instance) + } + case *credentials.StsTokenCredential: + { + signer, err = signers.NewStsTokenSigner(instance) + } + + case *credentials.RamRoleArnCredential: + { + signer, err = signers.NewRamRoleArnSigner(instance, commonApi) + } + case *credentials.RsaKeyPairCredential: + { + signer, err = signers.NewSignerKeyPair(instance, commonApi) + } + case *credentials.EcsRamRoleCredential: + { + signer, err = signers.NewEcsRamRoleSigner(instance, commonApi) + } + case *credentials.BaseCredential: // deprecated user interface + { + signer, err = signers.NewAccessKeySigner(instance.ToAccessKeyCredential()) + } + case *credentials.StsRoleArnCredential: // deprecated user interface + { + signer, err = signers.NewRamRoleArnSigner(instance.ToRamRoleArnCredential(), commonApi) + } + case *credentials.StsRoleNameOnEcsCredential: // deprecated user interface + { + signer, err = 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: + { + 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 new file mode 100644 index 0000000..975e985 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/algorithms.go @@ -0,0 +1,63 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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" + "fmt" + /*"encoding/pem" + "io/ioutil" + "os/user" + "crypto/sha256"*/) + +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 { + decodeString, err := base64.StdEncoding.DecodeString(secret) + if err != nil { + fmt.Println("DecodeString err", err) + } + private, err := x509.ParsePKCS8PrivateKey(decodeString) + if err != nil { + fmt.Println("ParsePKCS8PrivateKey err", 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 { + fmt.Println("Error from signing:", err) + return "" + } + + signedString := base64.StdEncoding.EncodeToString(signature) + //fmt.Printf("Encoded: %v\n", signedString) + return signedString +} 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 new file mode 100644 index 0000000..bb73d24 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/credential_updater.go @@ -0,0 +1,53 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" + "time" +) + +const defaultInAdvanceScale = 0.8 + +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 new file mode 100644 index 0000000..99c624c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/session_credential.go @@ -0,0 +1,7 @@ +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 new file mode 100644 index 0000000..92466ea --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_access_key.go @@ -0,0 +1,58 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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, error) { + return &AccessKeySigner{ + credential: credential, + }, nil +} + +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) +} + +func (signer *AccessKeySigner) Shutdown() { + +} 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 new file mode 100644 index 0000000..6cacc14 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ecs_ram_role.go @@ -0,0 +1,175 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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" + "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" + "github.com/jmespath/go-jmespath" + "net/http" + "strings" + "time" +) + +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, err error) { + signer = &EcsRamRoleSigner{ + credential: credential, + commonApi: commonApi, + } + + signer.credentialUpdater = &credentialUpdater{ + credentialExpiration: defaultDurationSeconds / 60, + buildRequestMethod: signer.buildCommonRequest, + responseCallBack: signer.refreshCredential, + refreshApi: signer.refreshApi, + } + + return +} + +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 && (signer.sessionCredential == nil || len(signer.sessionCredential.AccessKeyId) <= 0) { + return "", err + } + 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.AccessKeyId + secretSuffix + return ShaHmac1(stringToSign, secret) +} + +func (signer *EcsRamRoleSigner) buildCommonRequest() (request *requests.CommonRequest, err error) { + request = requests.NewCommonRequest() + return +} + +func (signer *EcsRamRoleSigner) refreshApi(request *requests.CommonRequest) (response *responses.CommonResponse, err error) { + requestUrl := "http://100.100.100.200/latest/meta-data/ram/security-credentials/" + signer.credential.RoleName + httpRequest, err := http.NewRequest(requests.GET, requestUrl, strings.NewReader("")) + if err != nil { + fmt.Println("refresh Ecs sts token err", err) + return + } + httpClient := &http.Client{} + httpResponse, err := httpClient.Do(httpRequest) + if err != nil { + fmt.Println("refresh Ecs sts token err", err) + return + } + + response = responses.NewCommonResponse() + err = responses.Unmarshal(response, httpResponse, "") + + return +} + +func (signer *EcsRamRoleSigner) refreshCredential(response *responses.CommonResponse) (err error) { + if response.GetHttpStatus() != http.StatusOK { + fmt.Println("refresh Ecs sts token err, httpStatus: " + string(response.GetHttpStatus()) + ", message = " + response.GetHttpContentString()) + return + } + var data interface{} + err = json.Unmarshal(response.GetHttpContentBytes(), &data) + if err != nil { + fmt.Println("refresh Ecs sts token err, json.Unmarshal fail", err) + return + } + code, err := jmespath.Search("Code", data) + if err != nil { + fmt.Println("refresh Ecs sts token err, fail to get Code", err) + return + } + if code.(string) != "Success" { + fmt.Println("refresh Ecs sts token err, Code is not Success", err) + return + } + accessKeyId, err := jmespath.Search("AccessKeyId", data) + if err != nil { + fmt.Println("refresh Ecs sts token err, fail to get AccessKeyId", err) + return + } + accessKeySecret, err := jmespath.Search("AccessKeySecret", data) + if err != nil { + fmt.Println("refresh Ecs sts token err, fail to get AccessKeySecret", err) + return + } + securityToken, err := jmespath.Search("SecurityToken", data) + if err != nil { + fmt.Println("refresh Ecs sts token err, fail to get SecurityToken", err) + return + } + expiration, err := jmespath.Search("Expiration", data) + if err != nil { + fmt.Println("refresh Ecs sts token err, fail to get Expiration", err) + return + } + if accessKeyId == nil || accessKeySecret == nil || securityToken == 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 +} + +func (signer *EcsRamRoleSigner) Shutdown() { + +} 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 new file mode 100644 index 0000000..c5fe394 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_key_pair.go @@ -0,0 +1,148 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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" + "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" + "github.com/jmespath/go-jmespath" + "net/http" + "strconv" +) + +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) GetAccessKeyId() (accessKeyId string, err error) { + if signer.sessionCredential == nil || signer.needUpdateCredential() { + err = signer.updateCredential() + } + if err != nil && (signer.sessionCredential == nil || len(signer.sessionCredential.AccessKeyId) <= 0) { + return "", err + } + return signer.sessionCredential.AccessKeyId, err +} + +func (signer *SignerKeyPair) GetExtraParam() map[string]string { + if signer.sessionCredential == nil || signer.needUpdateCredential() { + signer.updateCredential() + } + if signer.sessionCredential == nil || len(signer.sessionCredential.AccessKeyId) <= 0 { + return make(map[string]string) + } + return make(map[string]string) +} + +func (signer *SignerKeyPair) Sign(stringToSign, secretSuffix string) string { + secret := signer.sessionCredential.AccessKeyId + 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.QueryParams["PublicKeyId"] = signer.credential.PublicKeyId + request.QueryParams["DurationSeconds"] = strconv.Itoa(signer.credentialExpiration) + return +} + +func (signerKeyPair *SignerKeyPair) refreshApi(request *requests.CommonRequest) (response *responses.CommonResponse, err error) { + signerV2, err := NewSignerV2(signerKeyPair.credential) + return signerKeyPair.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 { + fmt.Println("refresh KeyPair err, json.Unmarshal fail", err) + return + } + accessKeyId, err := jmespath.Search("SessionAccessKey.SessionAccessKeyId", data) + if err != nil { + fmt.Println("refresh KeyPair err, fail to get SessionAccessKeyId", err) + return + } + accessKeySecret, err := jmespath.Search("SessionAccessKey.SessionAccessKeySecret", data) + if err != nil { + fmt.Println("refresh KeyPair err, fail to get SessionAccessKeySecret", err) + return + } + if accessKeyId == nil || accessKeySecret == nil { + return + } + signer.sessionCredential = &SessionCredential{ + AccessKeyId: accessKeyId.(string), + AccessKeySecret: accessKeySecret.(string), + } + return +} + +func (signer *SignerKeyPair) Shutdown() { + +} 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 new file mode 100644 index 0000000..bfcaa95 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ram_role_arn.go @@ -0,0 +1,174 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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" + "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" + "github.com/jmespath/go-jmespath" + "net/http" + "strconv" + "time" +) + +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 && (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() + request.Product = "Sts" + request.Version = "2015-04-01" + request.ApiName = "AssumeRole" + request.Scheme = requests.HTTPS + request.QueryParams["RoleArn"] = signer.credential.RoleArn + 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, err := 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 { + fmt.Println("refresh RoleArn sts token err, json.Unmarshal fail", err) + return + } + accessKeyId, err := jmespath.Search("Credentials.AccessKeyId", data) + if err != nil { + fmt.Println("refresh RoleArn sts token err, fail to get AccessKeyId", err) + return + } + accessKeySecret, err := jmespath.Search("Credentials.AccessKeySecret", data) + if err != nil { + fmt.Println("refresh RoleArn sts token err, fail to get AccessKeySecret", err) + return + } + securityToken, err := jmespath.Search("Credentials.SecurityToken", data) + if err != nil { + fmt.Println("refresh RoleArn sts token err, fail to get SecurityToken", err) + return + } + 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 +} + +func (signer *RamRoleArnSigner) Shutdown() { + +} 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 new file mode 100644 index 0000000..9e178d0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_sts_token.go @@ -0,0 +1,58 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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, error) { + return &StsTokenSigner{ + credential: credential, + }, nil +} + +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) +} + +func (signer *StsTokenSigner) Shutdown() { + +} 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 new file mode 100644 index 0000000..1814fe7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_v2.go @@ -0,0 +1,58 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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, error) { + return &SignerV2{ + credential: credential, + }, nil +} + +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) +} + +func (signer *SignerV2) Shutdown() { + +} 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 new file mode 100644 index 0000000..26da462 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client.go @@ -0,0 +1,417 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 ( + "fmt" + "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/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" + "net" + "net/http" + "strconv" + "sync" +) + +// this value will be replaced while build: -ldflags="-X sdk.version=x.x.x" +var Version = "0.0.1" + +type Client struct { + regionId string + config *Config + signer auth.Signer + httpClient *http.Client + asyncTaskQueue chan func() + + debug bool + isRunning bool + // void "panic(write to close channel)" cause of addAsync() after Shutdown() + asyncChanLock *sync.RWMutex +} + +func (client *Client) Init() (err error) { + panic("not support yet") +} + +func (client *Client) InitWithOptions(regionId string, config *Config, credential auth.Credential) (err error) { + client.isRunning = true + client.asyncChanLock = new(sync.RWMutex) + client.regionId = regionId + client.config = config + if err != nil { + return + } + client.httpClient = &http.Client{} + + 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) EnableAsync(routinePoolSize, maxTaskQueueSize int) { + client.asyncTaskQueue = make(chan func(), maxTaskQueueSize) + for i := 0; i < routinePoolSize; i++ { + go func() { + for client.isRunning { + select { + case task, notClosed := <-client.asyncTaskQueue: + if notClosed { + task() + } + } + } + }() + } +} + +func (client *Client) InitWithAccessKey(regionId, accessKeyId, accessKeySecret string) (err error) { + config := client.InitClientConfig() + credential := &credentials.BaseCredential{ + 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) 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) 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) { + return client.DoActionWithSigner(request, response, nil) +} + +func (client *Client) BuildRequestWithSigner(request requests.AcsRequest, signer auth.Signer) (err error) { + // add clientVersion + request.GetHeaders()["x-sdk-core-version"] = Version + + regionId := client.regionId + if len(request.GetRegionId()) > 0 { + regionId = request.GetRegionId() + } + + // resolve 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) + + // 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 client.config.UserAgent != "" { + httpRequest.Header.Set("User-Agent", client.config.UserAgent) + } + return err +} + +func (client *Client) DoActionWithSigner(request requests.AcsRequest, response responses.AcsResponse, signer auth.Signer) (err error) { + + // add clientVersion + request.GetHeaders()["x-sdk-core-version"] = Version + + regionId := client.regionId + if len(request.GetRegionId()) > 0 { + regionId = request.GetRegionId() + } + + // resolve 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 client.config.UserAgent != "" { + httpRequest.Header.Set("User-Agent", client.config.UserAgent) + } + if err != nil { + return + } + var httpResponse *http.Response + for retryTimes := 0; retryTimes <= client.config.MaxRetryTime; retryTimes++ { + httpResponse, err = client.httpClient.Do(httpRequest) + + var timeout bool + // receive error + if err != nil { + if timeout = isTimeout(err); !timeout { + // if not timeout error, return + return + } else if retryTimes >= client.config.MaxRetryTime { + // timeout but reached the max retry times, return + timeoutErrorMsg := fmt.Sprintf(errors.TimeoutErrorMessage, strconv.Itoa(retryTimes+1), strconv.Itoa(retryTimes+1)) + err = errors.NewClientError(errors.TimeoutErrorCode, timeoutErrorMsg, err) + return + } + } + // if status code >= 500 or timeout, will trigger retry + if client.config.AutoRetry && (timeout || isServerError(httpResponse)) { + // rewrite signatureNonce and signature + httpRequest, err = buildHttpRequest(request, finalSigner, regionId) + if err != nil { + return + } + continue + } + break + } + err = responses.Unmarshal(response, httpResponse, request.GetAcceptFormat()) + // 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 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 isTimeout(err error) bool { + if err == nil { + return false + } + netErr, isNetError := err.(net.Error) + return isNetError && netErr.Timeout() +} + +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 { + client.asyncChanLock.RLock() + defer client.asyncChanLock.RUnlock() + if client.isRunning { + client.asyncTaskQueue <- task + } + } else { + err = errors.NewClientError(errors.AsyncFunctionNotEnabledCode, errors.AsyncFunctionNotEnabledMessage, nil) + } + return +} + +func (client *Client) GetConfig() *Config { + return client.config +} + +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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 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 +} + +// 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) +} + +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 + } else { + panic("should not be here") + } +} + +func (client *Client) Shutdown() { + client.signer.Shutdown() + // lock the addAsync() + client.asyncChanLock.Lock() + defer client.asyncChanLock.Unlock() + client.isRunning = false + close(client.asyncTaskQueue) +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client_test.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client_test.go new file mode 100644 index 0000000..58077a1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client_test.go @@ -0,0 +1,573 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 ( + "crypto/tls" + "encoding/json" + "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" + "github.com/stretchr/testify/assert" + "io/ioutil" + "net/http" + "os" + "os/user" + "testing" +) + +var client, clientKeyPair, clientEcs, clientRoleArn, clientSts *Client + +type TestConfig struct { + AccessKeyId string + AccessKeySecret string + PublicKeyId string + PrivateKey string + RoleArn string + StsToken string + StsAk string + StsSecret string + ChildAK string + ChildSecret string +} + +type MockResponse struct { + Headers map[string]string + Body string + Params map[string]string + RemoteAddr string + RemoteHost string + QueryString string + RequestURL string +} + +func TestMain(m *testing.M) { + testSetup() + result := m.Run() + testTearDown() + os.Exit(result) +} + +func getConfigFromFile() *TestConfig { + usr, err := user.Current() + if err != nil { + panic(err) + } + configFilePath := usr.HomeDir + "/aliyun-sdk.json" + data, err := ioutil.ReadFile(configFilePath) + if err != nil { + panic(err) + } + var config TestConfig + json.Unmarshal(data, &config) + return &config +} + +func getConfigFromEnv() *TestConfig { + config := &TestConfig{ + AccessKeyId: os.Getenv("ACCESS_KEY_ID"), + AccessKeySecret: os.Getenv("ACCESS_KEY_SECRET"), + PublicKeyId: os.Getenv("PUBLIC_KEY_ID"), + PrivateKey: os.Getenv("PRIVATE_KEY"), + RoleArn: os.Getenv("ROLE_ARN"), + ChildAK: os.Getenv("CHILD_AK"), + ChildSecret: os.Getenv("CHILD_SECRET"), + StsToken: os.Getenv("STS_TOKEN"), + StsAk: os.Getenv("STS_AK"), + StsSecret: os.Getenv("STS_SECRET"), + } + if config.AccessKeyId == "" || os.Getenv("ENV_TYPE") != "CI" { + return nil + } else { + return config + } +} + +func testSetup() { + testConfig := getConfigFromEnv() + if testConfig == nil { + testConfig = getConfigFromFile() + } + + var err error + + clientConfig := NewConfig(). + WithEnableAsync(true). + WithGoRoutinePoolSize(5). + WithMaxTaskQueueSize(1000). + WithHttpTransport(&http.Transport{ + TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + }) + //}). + //WithMaxRetryTime(15). + //WithTimeout(10) + + credential := &credentials.BaseCredential{ + AccessKeyId: testConfig.AccessKeyId, + AccessKeySecret: testConfig.AccessKeySecret, + } + client, err = NewClientWithOptions("cn-hangzhou", clientConfig, credential) + if err != nil { + panic(err) + } + + rsaKeypairCredential := credentials.NewRsaKeyPairCredential(testConfig.PrivateKey, testConfig.PublicKeyId, 3600) + clientKeyPair, err = NewClientWithOptions("cn-hangzhou", clientConfig, rsaKeypairCredential) + if err != nil { + panic(err) + } + + roleNameOnEcsCredential := credentials.NewStsRoleNameOnEcsCredential("conan") + clientEcs, err = NewClientWithOptions("cn-hangzhou", clientConfig, roleNameOnEcsCredential) + if err != nil { + panic(err) + } + + stsRoleArnCredential := credentials.NewStsRoleArnCredential(testConfig.ChildAK, testConfig.ChildSecret, testConfig.RoleArn, "clientTest", 3600) + clientRoleArn, err = NewClientWithOptions("cn-hangzhou", clientConfig, stsRoleArnCredential) + if err != nil { + panic(err) + } + + stsCredential := credentials.NewStsTokenCredential(testConfig.StsAk, testConfig.StsSecret, testConfig.StsToken) + clientSts, err = NewClientWithOptions("cn-hangzhou", clientConfig, stsCredential) + if err != nil { + panic(err) + } +} + +func testTearDown() { + +} + +func TestNewClientWithAccessKey(t *testing.T) { + assert.NotNil(t, client, "NewClientWithAccessKey failed") +} + +func TestRoaGet(t *testing.T) { + request := getFtTestRoaRequest() + + response := &responses.BaseResponse{} + err := client.DoAction(request, response) + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) + + var responseBean MockResponse + json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) + + assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) + assert.Equal(t, "HeaderParamValue", responseBean.Headers["Header-Param"]) +} + +func TestRoaPostForm(t *testing.T) { + request := getFtTestRoaRequest() + request.Method = requests.POST + request.FormParams["BodyParam"] = "BodyParamValue" + + response := &responses.BaseResponse{} + err := client.DoAction(request, response) + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) + + var responseBean MockResponse + json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) + + assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) + assert.Equal(t, "HeaderParamValue", responseBean.Headers["Header-Param"]) + assert.Equal(t, "BodyParamValue", responseBean.Params["BodyParam"]) +} + +func TestRoaPostStream(t *testing.T) { + request := getFtTestRoaRequest() + request.Method = requests.POST + request.Content = []byte("TestContent") + + response := &responses.BaseResponse{} + err := client.DoAction(request, response) + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) + + var responseBean MockResponse + json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) + + assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) + assert.Equal(t, "HeaderParamValue", responseBean.Headers["Header-Param"]) + assert.Equal(t, "TestContent", responseBean.Body) +} + +func TestRoaPostJson(t *testing.T) { + request := getFtTestRoaRequest() + request.Method = requests.POST + dataMap := map[string]string{"key": "value"} + data, err := json.Marshal(dataMap) + assert.Nil(t, err) + request.Content = data + request.SetContentType(requests.Json) + + response := &responses.BaseResponse{} + err = client.DoAction(request, response) + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) + + var responseBean MockResponse + json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) + + assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) + assert.Equal(t, "HeaderParamValue", responseBean.Headers["Header-Param"]) + assert.Equal(t, requests.Json, responseBean.Headers["Content-Type"]) + assert.Equal(t, string(data), responseBean.Body) +} + +func TestRpcGet(t *testing.T) { + request := getFtTestRpcRequest() + request.Method = requests.GET + + response := &responses.BaseResponse{} + err := client.DoAction(request, response) + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) + + var responseBean MockResponse + json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) + + assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) +} + +func TestRpcGetForHttps(t *testing.T) { + request := getFtTestRpcRequest() + request.Method = requests.GET + request.Scheme = requests.HTTPS + + response := &responses.BaseResponse{} + err := client.DoAction(request, response) + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) + + var responseBean MockResponse + json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) + + assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) +} + +func TestRoaGetForHttps(t *testing.T) { + request := getFtTestRoaRequest() + request.Scheme = requests.HTTPS + + response := &responses.BaseResponse{} + err := client.DoAction(request, response) + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) + + var responseBean MockResponse + json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) + + assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) + assert.Equal(t, "HeaderParamValue", responseBean.Headers["Header-Param"]) +} + +func TestRpcPost(t *testing.T) { + request := getFtTestRpcRequest() + request.FormParams["BodyParam"] = "BodyParamValue" + + response := &responses.BaseResponse{} + err := client.DoAction(request, response) + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) + + var responseBean MockResponse + json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) + + assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) + assert.Equal(t, "BodyParamValue", responseBean.Params["BodyParam"]) +} + +func getFtTestRoaRequest() (request *requests.RoaRequest) { + request = &requests.RoaRequest{} + request.InitWithApiInfo("Ft", "2016-01-02", "TestRoaApi", "/web/cloudapi", "", "") + request.Domain = "ft.aliyuncs.com" + + request.Headers["Header-Param"] = "HeaderParamValue" + request.QueryParams["QueryParam"] = "QueryParamValue" + + return +} + +func getFtTestRpcRequest() (request *requests.RpcRequest) { + request = &requests.RpcRequest{} + request.InitWithApiInfo("Ft", "2016-01-01", "TestRpcApi", "", "") + request.Domain = "ft.aliyuncs.com" + request.QueryParams["QueryParam"] = "QueryParamValue" + return +} + +func getFtTestRpcRequestForEndpointLocation() (request *requests.RpcRequest) { + request = &requests.RpcRequest{} + request.InitWithApiInfo("Ft", "2016-01-01", "TestRpcApi", "ft", "openAPI") + request.RegionId = "ft-cn-hangzhou" + request.QueryParams["QueryParam"] = "QueryParamValue" + request.Domain = "ft.aliyuncs.com" + return +} + +func getFtTestRpcRequestForEndpointXml() (request *requests.RpcRequest) { + request = &requests.RpcRequest{} + request.InitWithApiInfo("Ft", "2016-01-01", "TestRpcApi", "", "") + request.RegionId = "cn-hangzhou" + request.QueryParams["QueryParam"] = "QueryParamValue" + request.Domain = "ft.aliyuncs.com" + return +} + +func TestCommonRpcRequest(t *testing.T) { + rpcRequest := requests.NewCommonRequest() + rpcRequest.Product = "Ft" + rpcRequest.Version = "2016-01-01" + rpcRequest.Domain = "ft.aliyuncs.com" + rpcRequest.ApiName = "TestRpcApi" + rpcRequest.Method = "POST" + + rpcRequest.QueryParams["QueryParam"] = "QueryParamValue" + rpcRequest.FormParams["BodyParam"] = "BodyParamValue" + + response, err := client.ProcessCommonRequest(rpcRequest) + + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) + + var responseBean MockResponse + json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) + + assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) + assert.Equal(t, "BodyParamValue", responseBean.Params["BodyParam"]) +} + +func TestCommonRoaRequest(t *testing.T) { + roaRequest := requests.NewCommonRequest() + roaRequest.Product = "Ft" + roaRequest.Version = "2016-01-02" + roaRequest.PathPattern = "/web/cloudapi" + roaRequest.Domain = "ft.aliyuncs.com" + roaRequest.Method = "POST" + + roaRequest.QueryParams["QueryParam"] = "QueryParamValue" + roaRequest.FormParams["BodyParam"] = "BodyParamValue" + + response, err := client.ProcessCommonRequest(roaRequest) + + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) + + var responseBean MockResponse + json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) + + assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) + assert.Equal(t, "BodyParamValue", responseBean.Params["BodyParam"]) +} + +func TestRpcGetForEndpointXml(t *testing.T) { + request := getFtTestRpcRequestForEndpointXml() + request.Method = requests.GET + request.RegionId = "cn-shanghai" + + response := &responses.BaseResponse{} + err := client.DoAction(request, response) + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) + + var responseBean MockResponse + json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) + + assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) +} + +func TestRpcGetForLocation(t *testing.T) { + request := getFtTestRpcRequestForEndpointLocation() + request.Method = requests.GET + + response := &responses.BaseResponse{} + err := client.DoAction(request, response) + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) + + var responseBean MockResponse + json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) + + assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) +} + +func TestRpcGetForLocationCache(t *testing.T) { + request := getFtTestRpcRequestForEndpointLocation() + request.Method = requests.GET + + response := &responses.BaseResponse{} + err := client.DoAction(request, response) + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) + + var responseBean MockResponse + json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) + + assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) + + request2 := getFtTestRpcRequestForEndpointLocation() + request2.Method = requests.GET + err = client.DoAction(request2, response) + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) + + json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) + + assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) +} + +func TestRpcGetForKeyPair(t *testing.T) { + request := getFtTestRpcRequest() + request.Method = requests.GET + + response := &responses.BaseResponse{} + err := clientKeyPair.DoAction(request, response) + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) + + var responseBean MockResponse + json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) + + assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) +} + +/*func TestRpcGetForEcs(t *testing.T) { + //测试接口,想测试的时候,要替换掉singer_ecs_instance中对应的变量,并且还要提供一个mock服务 + //requestUrl := "http://localhost:3500/latest/meta-data/ram/security-credentials/roleNameTest.json" + request := getFtTestRpcRequest() + request.Method = requests.GET + + response := &responses.BaseResponse{} + err := clientEcs.DoAction(request, response) + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) + + var responseBean MockResponse + json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) + + assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) + + err = clientEcs.DoAction(request, response) + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) + + json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) + + assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) +}*/ + +func TestRpcGetForRoleArn(t *testing.T) { + request := getFtTestRpcRequest() + request.Method = requests.GET + + response := &responses.BaseResponse{} + err := clientRoleArn.DoAction(request, response) + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) + + var responseBean MockResponse + json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) + + assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) + + err = clientRoleArn.DoAction(request, response) + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) + + json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) + + assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) +} + +func TestRoaGetForRoleArn(t *testing.T) { + request := getFtTestRoaRequest() + request.Method = requests.GET + + response := &responses.BaseResponse{} + err := clientRoleArn.DoAction(request, response) + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) + + var responseBean MockResponse + json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) + + assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) + + err = clientRoleArn.DoAction(request, response) + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) + + json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) + + assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) +} + +//测试Sts的时候要先获取一套stsToken和ak,由于有时效性,所以先把代码注释掉,测试的时候先获取stsToken完成后再调用 +//func TestRpcGetForSts(t *testing.T) { +// request := getFtTestRpcRequest() +// request.Method = requests.GET +// +// response := &responses.BaseResponse{} +// err := clientSts.DoAction(request, response) +// assert.Nil(t, err) +// assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) +// assert.NotNil(t, response.GetHttpContentString()) +// +// var responseBean MockResponse +// json.Unmarshal([]byte(response.GetHttpContentString()), &responseBean) +// +// assert.Equal(t, "QueryParamValue", responseBean.Params["QueryParam"]) +//} + +func TestCommonRoaRequestForAcceptXML(t *testing.T) { + roaRequest := requests.NewCommonRequest() + roaRequest.Product = "Acs" + roaRequest.Version = "2015-01-01" + roaRequest.ApiName = "GetGlobal" + roaRequest.PathPattern = "/" + roaRequest.Domain = "acs.aliyuncs.com" + roaRequest.AcceptFormat = "XML" + + response, err := client.ProcessCommonRequest(roaRequest) + + assert.Nil(t, err) + assert.Equal(t, http.StatusOK, response.GetHttpStatus(), response.GetHttpContentString()) + assert.NotNil(t, response.GetHttpContentString()) +} 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 new file mode 100644 index 0000000..c67c2ad --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/config.go @@ -0,0 +1,85 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" + "net/http" + "time" +) + +type Config struct { + AutoRetry bool `default:"true"` + MaxRetryTime int `default:"3"` + UserAgent string `default:""` + Debug bool `default:"false"` + Timeout time.Duration `default:"10000000000"` + HttpTransport *http.Transport `default:""` + EnableAsync bool `default:"false"` + MaxTaskQueueSize int `default:"1000"` + GoRoutinePoolSize int `default:"5"` + Scheme string `default:"HTTP"` +} + +func NewConfig() (config *Config) { + config = &Config{} + utils.InitStructWithDefaultTag(config) + return +} + +func (c *Config) WithTimeout(timeout time.Duration) *Config { + c.Timeout = timeout + return c +} + +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) 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) WithDebug(isDebug bool) *Config { + c.Debug = isDebug + 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 new file mode 100644 index 0000000..ec0d56f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/endpoints_config.go @@ -0,0 +1,505 @@ +package endpoints + +import ( + "encoding/json" + "fmt" + "sync" +) + +const endpointsJson = "{" + + " \"products\":[" + + " {" + + " \"code\": \"aegis\"," + + " \"document_id\": \"28449\"," + + " \"location_service_code\": \"vipaegis\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"aegis.cn-hangzhou.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"alidns\"," + + " \"document_id\": \"29739\"," + + " \"location_service_code\": \"alidns\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"alidns.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"arms\"," + + " \"document_id\": \"42924\"," + + " \"location_service_code\": \"\"," + + " \"regional_endpoints\": [ {" + + " \"region\": \"ap-southeast-1\"," + + " \"endpoint\": \"arms.ap-southeast-1.aliyuncs.com\"" + + " }, {" + + " \"region\": \"cn-beijing\"," + + " \"endpoint\": \"arms.cn-beijing.aliyuncs.com\"" + + " }, {" + + " \"region\": \"cn-hangzhou\"," + + " \"endpoint\": \"arms.cn-hangzhou.aliyuncs.com\"" + + " }, {" + + " \"region\": \"cn-hongkong\"," + + " \"endpoint\": \"arms.cn-hongkong.aliyuncs.com\"" + + " }, {" + + " \"region\": \"cn-qingdao\"," + + " \"endpoint\": \"arms.cn-qingdao.aliyuncs.com\"" + + " }, {" + + " \"region\": \"cn-shanghai\"," + + " \"endpoint\": \"arms.cn-shanghai.aliyuncs.com\"" + + " }, {" + + " \"region\": \"cn-shenzhen\"," + + " \"endpoint\": \"arms.cn-shenzhen.aliyuncs.com\"" + + " }]," + + " \"global_endpoint\": \"\"," + + " \"regional_endpoint_pattern\": \"arms.[RegionId].aliyuncs.com\"" + + " }," + + " {" + + " \"code\": \"batchcompute\"," + + " \"document_id\": \"44717\"," + + " \"location_service_code\": \"\"," + + " \"regional_endpoints\": [ {" + + " \"region\": \"ap-southeast-1\"," + + " \"endpoint\": \"batchcompute.ap-southeast-1.aliyuncs.com\"" + + " }, {" + + " \"region\": \"cn-beijing\"," + + " \"endpoint\": \"batchcompute.cn-beijing.aliyuncs.com\"" + + " }, {" + + " \"region\": \"cn-hangzhou\"," + + " \"endpoint\": \"batchcompute.cn-hangzhou.aliyuncs.com\"" + + " }, {" + + " \"region\": \"cn-huhehaote\"," + + " \"endpoint\": \"batchcompute.cn-huhehaote.aliyuncs.com\"" + + " }, {" + + " \"region\": \"cn-qingdao\"," + + " \"endpoint\": \"batchcompute.cn-qingdao.aliyuncs.com\"" + + " }, {" + + " \"region\": \"cn-shanghai\"," + + " \"endpoint\": \"batchcompute.cn-shanghai.aliyuncs.com\"" + + " }, {" + + " \"region\": \"cn-shenzhen\"," + + " \"endpoint\": \"batchcompute.cn-shenzhen.aliyuncs.com\"" + + " }, {" + + " \"region\": \"cn-zhangjiakou\"," + + " \"endpoint\": \"batchcompute.cn-zhangjiakou.aliyuncs.com\"" + + " }, {" + + " \"region\": \"us-west-1\"," + + " \"endpoint\": \"batchcompute.us-west-1.aliyuncs.com\"" + + " }]," + + " \"global_endpoint\": \"\"," + + " \"regional_endpoint_pattern\": \"batchcompute.[RegionId].aliyuncs.com\"" + + " }," + + " {" + + " \"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\": \"cdn\"," + + " \"document_id\": \"27148\"," + + " \"location_service_code\": \"\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"cdn.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"cds\"," + + " \"document_id\": \"62887\"," + + " \"location_service_code\": \"\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"cds.cn-beijing.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"chatbot\"," + + " \"document_id\": \"60760\"," + + " \"location_service_code\": \"beebot\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"\"," + + " \"regional_endpoint_pattern\": \"chatbot.[RegionId].aliyuncs.com\"" + + " }," + + " {" + + " \"code\": \"cloudapi\"," + + " \"document_id\": \"43590\"," + + " \"location_service_code\": \"apigateway\"," + + " \"regional_endpoints\": [ {" + + " \"region\": \"ap-northeast-1\"," + + " \"endpoint\": \"apigateway.ap-northeast-1.aliyuncs.com\"" + + " }, {" + + " \"region\": \"us-west-1\"," + + " \"endpoint\": \"apigateway.us-west-1.aliyuncs.com\"" + + " }]," + + " \"global_endpoint\": \"\"," + + " \"regional_endpoint_pattern\": \"apigateway.[RegionId].aliyuncs.com\"" + + " }," + + " {" + + " \"code\": \"cloudauth\"," + + " \"document_id\": \"60687\"," + + " \"location_service_code\": \"cloudauth\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"cloudauth.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"cloudphoto\"," + + " \"document_id\": \"59902\"," + + " \"location_service_code\": \"cloudphoto\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"\"," + + " \"regional_endpoint_pattern\": \"cloudphoto.[RegionId].aliyuncs.com\"" + + " }," + + " {" + + " \"code\": \"cloudwf\"," + + " \"document_id\": \"58111\"," + + " \"location_service_code\": \"\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"cloudwf.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"cms\"," + + " \"document_id\": \"28615\"," + + " \"location_service_code\": \"cms\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"cr\"," + + " \"document_id\": \"60716\"," + + " \"location_service_code\": \"\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"cr.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"cs\"," + + " \"document_id\": \"26043\"," + + " \"location_service_code\": \"\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"cs.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"csb\"," + + " \"document_id\": \"64837\"," + + " \"location_service_code\": \"\"," + + " \"regional_endpoints\": [ {" + + " \"region\": \"cn-beijing\"," + + " \"endpoint\": \"csb.cn-beijing.aliyuncs.com\"" + + " }, {" + + " \"region\": \"cn-hangzhou\"," + + " \"endpoint\": \"csb.cn-hangzhou.aliyuncs.com\"" + + " }]," + + " \"global_endpoint\": \"\"," + + " \"regional_endpoint_pattern\": \"csb.[RegionId].aliyuncs.com\"" + + " }," + + " {" + + " \"code\": \"dds\"," + + " \"document_id\": \"61715\"," + + " \"location_service_code\": \"dds\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"mongodb.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"mongodb.[RegionId].aliyuncs.com\"" + + " }," + + " {" + + " \"code\": \"dm\"," + + " \"document_id\": \"29434\"," + + " \"location_service_code\": \"\"," + + " \"regional_endpoints\": [ {" + + " \"region\": \"ap-southeast-1\"," + + " \"endpoint\": \"dm.aliyuncs.com\"" + + " }, {" + + " \"region\": \"ap-southeast-2\"," + + " \"endpoint\": \"dm.ap-southeast-2.aliyuncs.com\"" + + " }, {" + + " \"region\": \"cn-beijing\"," + + " \"endpoint\": \"dm.aliyuncs.com\"" + + " }, {" + + " \"region\": \"cn-hangzhou\"," + + " \"endpoint\": \"dm.aliyuncs.com\"" + + " }, {" + + " \"region\": \"cn-hongkong\"," + + " \"endpoint\": \"dm.aliyuncs.com\"" + + " }, {" + + " \"region\": \"cn-qingdao\"," + + " \"endpoint\": \"dm.aliyuncs.com\"" + + " }, {" + + " \"region\": \"cn-shanghai\"," + + " \"endpoint\": \"dm.aliyuncs.com\"" + + " }, {" + + " \"region\": \"cn-shenzhen\"," + + " \"endpoint\": \"dm.aliyuncs.com\"" + + " }, {" + + " \"region\": \"us-east-1\"," + + " \"endpoint\": \"dm.aliyuncs.com\"" + + " }, {" + + " \"region\": \"us-west-1\"," + + " \"endpoint\": \"dm.aliyuncs.com\"" + + " }]," + + " \"global_endpoint\": \"dm.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"dm.[RegionId].aliyuncs.com\"" + + " }," + + " {" + + " \"code\": \"domain\"," + + " \"document_id\": \"42875\"," + + " \"location_service_code\": \"\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"domain.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"domain.aliyuncs.com\"" + + " }," + + " {" + + " \"code\": \"domain-intl\"," + + " \"document_id\": \"\"," + + " \"location_service_code\": \"\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"domain-intl.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"domain-intl.aliyuncs.com\"" + + " }," + + " {" + + " \"code\": \"drds\"," + + " \"document_id\": \"51111\"," + + " \"location_service_code\": \"\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"drds.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"drds.aliyuncs.com\"" + + " }," + + " {" + + " \"code\": \"ecs\"," + + " \"document_id\": \"25484\"," + + " \"location_service_code\": \"ecs\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"emr\"," + + " \"document_id\": \"28140\"," + + " \"location_service_code\": \"emr\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"\"," + + " \"regional_endpoint_pattern\": \"emr.[RegionId].aliyuncs.com\"" + + " }," + + " {" + + " \"code\": \"ess\"," + + " \"document_id\": \"25925\"," + + " \"location_service_code\": \"ess\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"\"," + + " \"regional_endpoint_pattern\": \"ess.[RegionId].aliyuncs.com\"" + + " }," + + " {" + + " \"code\": \"green\"," + + " \"document_id\": \"28427\"," + + " \"location_service_code\": \"green\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"green.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"hpc\"," + + " \"document_id\": \"35201\"," + + " \"location_service_code\": \"hpc\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"hpc.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"httpdns\"," + + " \"document_id\": \"52679\"," + + " \"location_service_code\": \"\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"httpdns-api.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"iot\"," + + " \"document_id\": \"30557\"," + + " \"location_service_code\": \"iot\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"\"," + + " \"regional_endpoint_pattern\": \"iot.[RegionId].aliyuncs.com\"" + + " }," + + " {" + + " \"code\": \"itaas\"," + + " \"document_id\": \"55759\"," + + " \"location_service_code\": \"\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"itaas.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"jaq\"," + + " \"document_id\": \"35037\"," + + " \"location_service_code\": \"\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"jaq.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"live\"," + + " \"document_id\": \"48207\"," + + " \"location_service_code\": \"live\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"live.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"mts\"," + + " \"document_id\": \"29212\"," + + " \"location_service_code\": \"mts\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"nas\"," + + " \"document_id\": \"62598\"," + + " \"location_service_code\": \"nas\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"ons\"," + + " \"document_id\": \"44416\"," + + " \"location_service_code\": \"ons\"," + + " \"regional_endpoints\": []," + + " \"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\": \"ap-southeast-5\"," + + " \"endpoint\": \"polardb.ap-southeast-5.aliyuncs.com\"" + + " }]," + + " \"global_endpoint\": \"\"," + + " \"regional_endpoint_pattern\": \"polardb.aliyuncs.com\"" + + " }," + + " {" + + " \"code\": \"push\"," + + " \"document_id\": \"30074\"," + + " \"location_service_code\": \"\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"cloudpush.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"qualitycheck\"," + + " \"document_id\": \"50807\"," + + " \"location_service_code\": \"\"," + + " \"regional_endpoints\": [ {" + + " \"region\": \"cn-hangzhou\"," + + " \"endpoint\": \"qualitycheck.cn-hangzhou.aliyuncs.com\"" + + " }]," + + " \"global_endpoint\": \"\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"r-kvstore\"," + + " \"document_id\": \"60831\"," + + " \"location_service_code\": \"redisa\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"ram\"," + + " \"document_id\": \"28672\"," + + " \"location_service_code\": \"\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"ram.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"rds\"," + + " \"document_id\": \"26223\"," + + " \"location_service_code\": \"rds\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"ros\"," + + " \"document_id\": \"28899\"," + + " \"location_service_code\": \"\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"ros.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"sas-api\"," + + " \"document_id\": \"28498\"," + + " \"location_service_code\": \"sas\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"slb\"," + + " \"document_id\": \"27565\"," + + " \"location_service_code\": \"slb\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"sts\"," + + " \"document_id\": \"28756\"," + + " \"location_service_code\": \"\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"sts.aliyuncs.com\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"vod\"," + + " \"document_id\": \"60574\"," + + " \"location_service_code\": \"vod\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"vpc\"," + + " \"document_id\": \"34962\"," + + " \"location_service_code\": \"vpc\"," + + " \"regional_endpoints\": []," + + " \"global_endpoint\": \"\"," + + " \"regional_endpoint_pattern\": \"\"" + + " }," + + " {" + + " \"code\": \"waf\"," + + " \"document_id\": \"62847\"," + + " \"location_service_code\": \"waf\"," + + " \"regional_endpoints\": []," + + " \"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 { + fmt.Println("init endpoint config data failed.", 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 new file mode 100644 index 0000000..864b7cc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_global_resolver.go @@ -0,0 +1,37 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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" + "github.com/jmespath/go-jmespath" + "strings" +) + +type LocalGlobalResolver struct { +} + +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 endpoint, support, nil + } + 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 new file mode 100644 index 0000000..f8aa0f9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_regional_resolver.go @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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" + "github.com/jmespath/go-jmespath" + "strings" +) + +type LocalRegionalResolver struct { +} + +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)) + 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 endpoint, support, nil + } + } + 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 new file mode 100644 index 0000000..803bc57 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/location_resolver.go @@ -0,0 +1,139 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "sync" + "time" +) + +const ( + EndpointCacheExpireTime = 3600 //Seconds +) + +var lastClearTimePerProduct = struct { + sync.RWMutex + cache map[string]int64 +}{cache: make(map[string]int64)} + +var endpointCache = struct { + sync.RWMutex + cache map[string]string +}{cache: make(map[string]string)} + +type LocationResolver struct { +} + +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 + if endpointCache.cache != nil && len(endpointCache.cache[cacheKey]) > 0 && !CheckCacheIsExpire(cacheKey) { + endpoint = endpointCache.cache[cacheKey] + support = true + return + } + + //get from remote + getEndpointRequest := requests.NewCommonRequest() + + getEndpointRequest.Product = "Location" + getEndpointRequest.Version = "2015-06-12" + getEndpointRequest.ApiName = "DescribeEndpoints" + getEndpointRequest.Domain = "location.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) + var getEndpointResponse GetEndpointResponse + if !response.IsSuccess() { + support = false + return + } + + json.Unmarshal([]byte(response.GetHttpContentString()), &getEndpointResponse) + 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.Lock() + endpointCache.cache[cacheKey] = endpoint + endpointCache.Unlock() + lastClearTimePerProduct.Lock() + lastClearTimePerProduct.cache[cacheKey] = time.Now().Unix() + lastClearTimePerProduct.Unlock() + support = true + return + } + + support = false + return +} + +func CheckCacheIsExpire(cacheKey string) bool { + lastClearTime := lastClearTimePerProduct.cache[cacheKey] + if lastClearTime <= 0 { + lastClearTime = time.Now().Unix() + lastClearTimePerProduct.Lock() + lastClearTimePerProduct.cache[cacheKey] = lastClearTime + lastClearTimePerProduct.Unlock() + } + + now := time.Now().Unix() + elapsedTime := now - lastClearTime + if elapsedTime > EndpointCacheExpireTime { + return true + } + + return false +} + +type GetEndpointResponse struct { + Endpoints *EndpointsObj + RequestId string + Success bool +} + +type EndpointsObj struct { + Endpoint []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 new file mode 100644 index 0000000..f7b5a1a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/mapping_resolver.go @@ -0,0 +1,39 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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" +) + +const keyFormatter = "%s::%s" + +var endpointMapping = make(map[string]string) + +func AddEndpointMapping(regionId, productId, endpoint string) (err error) { + key := fmt.Sprintf(keyFormatter, strings.ToLower(regionId), strings.ToLower(productId)) + endpointMapping[key] = endpoint + return nil +} + +type MappingResolver struct { +} + +func (resolver *MappingResolver) TryResolve(param *ResolveParam) (endpoint string, support bool, err error) { + key := fmt.Sprintf(keyFormatter, strings.ToLower(param.RegionId), strings.ToLower(param.Product)) + endpoint, contains := endpointMapping[key] + return endpoint, contains, nil +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/mapping_resolver_test.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/mapping_resolver_test.go new file mode 100644 index 0000000..e2fd408 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/mapping_resolver_test.go @@ -0,0 +1,19 @@ +package endpoints + +import ( + "fmt" + "github.com/stretchr/testify/assert" + "testing" +) + +func TestMappingResolver_TryResolve(t *testing.T) { + AddEndpointMapping("cn-hangzhou", "Ecs", "unreachable.aliyuncs.com") + resolveParam := &ResolveParam{ + RegionId: "cn-hangzhou", + Product: "ecs", + } + endpoint, err := Resolve(resolveParam) + assert.Nil(t, err) + assert.Equal(t, endpoint, "unreachable.aliyuncs.com") + fmt.Println("finished") +} 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 new file mode 100644 index 0000000..e58cfbf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/resolver.go @@ -0,0 +1,80 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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" + "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" + "sync" +) + +const ( + ResolveEndpointUserGuideLink = "" +) + +var once sync.Once +var resolvers []Resolver + +type Resolver interface { + TryResolve(param *ResolveParam) (endpoint string, support bool, err error) +} + +func Resolve(param *ResolveParam) (endpoint string, err error) { + supportedResolvers := getAllResolvers() + for _, resolver := range supportedResolvers { + endpoint, supported, err := resolver.TryResolve(param) + if supported { + return endpoint, err + } + } + + // not support + errorMsg := fmt.Sprintf(errors.CanNotResolveEndpointErrorMessage, param, ResolveEndpointUserGuideLink) + err = errors.NewClientError(errors.CanNotResolveEndpointErrorCode, errorMsg, nil) + return +} + +func getAllResolvers() []Resolver { + once.Do(func() { + resolvers = []Resolver{ + &SimpleHostResolver{}, + &MappingResolver{}, + &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/endpoints/simple_host_resolver.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/simple_host_resolver.go new file mode 100644 index 0000000..3e2e731 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/simple_host_resolver.go @@ -0,0 +1,25 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +type SimpleHostResolver struct { +} + +func (resolver *SimpleHostResolver) TryResolve(param *ResolveParam) (endpoint string, support bool, err error) { + if support = len(param.Domain) > 0; support { + endpoint = param.Domain + } + return +} 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 new file mode 100644 index 0000000..88ebc15 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/client_error.go @@ -0,0 +1,92 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 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 new file mode 100644 index 0000000..49962f3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/error.go @@ -0,0 +1,23 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 new file mode 100644 index 0000000..d90638c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/server_error.go @@ -0,0 +1,122 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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, *ServerError) +} + +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, newError := wrapper.tryWrap(originError, wrapInfo) + if ok { + return newError + } + } + 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 new file mode 100644 index 0000000..33b3e4c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/signature_does_not_match_wrapper.go @@ -0,0 +1,29 @@ +package errors + +import "strings" + +const SignatureDostNotMatchErrorCode = "SignatureDoesNotMatch" +const MessagePrefix = "Specified signature is not matched with our calculation. server string to sign is:" + +type SignatureDostNotMatchWrapper struct { +} + +func (*SignatureDostNotMatchWrapper) tryWrap(error *ServerError, wrapInfo map[string]string) (bool, *ServerError) { + clientStringToSign := wrapInfo["StringToSign"] + if error.errorCode == SignatureDostNotMatchErrorCode && clientStringToSign != "" { + message := error.message + if strings.HasPrefix(message, MessagePrefix) { + serverStringToSign := message[len(MessagePrefix):] + if clientStringToSign == serverStringToSign { + // user secret is error + error.recommend = "Please check you AccessKeySecret" + } else { + 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" + } + } + return true, error + } else { + return false, nil + } +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/log/log.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/log/log.go new file mode 100644 index 0000000..01f5209 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/log/log.go @@ -0,0 +1,52 @@ +package log + +import ( + "github.com/sirupsen/logrus" + "os" +) + +func init() { + logrus.SetOutput(os.Stdout) + logrus.SetFormatter(&logrus.TextFormatter{ + DisableColors: false, + FullTimestamp: true, + }) + +} + +func WithFields(fields logrus.Fields) *logrus.Entry { + return logrus.WithFields(logrus.Fields(fields)) +} + +var ( + PanicLevel = logrus.PanicLevel + FatalLevel = logrus.FatalLevel + ErrorLevel = logrus.ErrorLevel + WarnLevel = logrus.WarnLevel + InfoLevel = logrus.InfoLevel + DebugLevel = logrus.DebugLevel + + SetLevel = logrus.SetLevel + GetLevel = logrus.GetLevel + + WithError = logrus.WithError + WithField = logrus.WithField + + Debug = logrus.Debug + Print = logrus.Print + Info = logrus.Info + Warn = logrus.Warn + Warning = logrus.Warning + Error = logrus.Error + Panic = logrus.Panic + Fatal = logrus.Fatal + + Debugf = logrus.Debugf + Printf = logrus.Printf + Infof = logrus.Infof + Warnf = logrus.Warnf + Warningf = logrus.Warningf + Errorf = logrus.Errorf + Panicf = logrus.Panicf + Fatalf = logrus.Fatalf +) diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/acs_reqeust.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/acs_reqeust.go new file mode 100644 index 0000000..5f4a42b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/acs_reqeust.go @@ -0,0 +1,309 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" + "io" + "reflect" + "strconv" +) + +const ( + RPC = "RPC" + ROA = "ROA" + + HTTP = "HTTP" + HTTPS = "HTTPS" + + DefaultHttpPort = "80" + + GET = "GET" + PUT = "PUT" + POST = "POST" + DELETE = "DELETE" + 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 + GetUrl() string + GetQueries() string + GetHeaders() map[string]string + GetQueryParams() map[string]string + GetFormParams() map[string]string + GetContent() []byte + GetBodyReader() io.Reader + GetStyle() string + GetProduct() string + GetVersion() string + GetActionName() string + GetAcceptFormat() string + GetLocationServiceCode() string + GetLocationEndpointType() 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 + + 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) GetContent() []byte { + return request.Content +} + +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) 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.Headers["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() + err = addParam(request, fieldPosition, key, value) + if err != nil { + return + } + } else if typeTag == "Repeated" { + // repeated param + repeatedFieldValue := dataValue.Field(i) + 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().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 +} + +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 new file mode 100644 index 0000000..d5d841b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/common_request.go @@ -0,0 +1,128 @@ +package requests + +import ( + "bytes" + "fmt" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" + "io" + "strings" +) + +type CommonRequest struct { + *baseRequest + + Version string + ApiName string + Product 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() + request.BuildQueries() + request.BuildUrl() + + resultBuilder := bytes.Buffer{} + + mapOutput := func(m map[string]string) { + if len(m) > 0 { + for key, value := range m { + resultBuilder.WriteString(key + ": " + value + "\n") + } + } + } + + // Request Line + resultBuilder.WriteString("\n") + resultBuilder.WriteString(fmt.Sprintf("%s %s %s/1.1\n", request.Method, request.GetQueries(), 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.Version) == 0 { + errors.NewClientError(errors.MissingParamErrorCode, "Common request [version] is required", nil) + } + if len(request.ApiName) == 0 && len(request.PathPattern) == 0 { + errors.NewClientError(errors.MissingParamErrorCode, "At least one of [ApiName] and [PathPattern] should has a value", nil) + } + if len(request.Domain) == 0 && len(request.Product) == 0 { + errors.NewClientError(errors.MissingParamErrorCode, "At least one of [Domain] and [Product] should has a value", nil) + } + + 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.actionName = request.ApiName + request.Ontology = rpcRequest + } + +} + +func (request *CommonRequest) BuildUrl() string { + if len(request.Port) > 0 { + return strings.ToLower(request.Scheme) + "://" + request.Domain + ":" + request.Port + request.BuildQueries() + } + + return strings.ToLower(request.Scheme) + "://" + request.Domain + request.BuildQueries() +} + +func (request *CommonRequest) BuildQueries() string { + return request.Ontology.BuildQueries() +} + +func (request *CommonRequest) GetUrl() string { + if len(request.Port) > 0 { + return strings.ToLower(request.Scheme) + "://" + request.Domain + ":" + request.Port + request.GetQueries() + } + + return strings.ToLower(request.Scheme) + "://" + request.Domain + request.GetQueries() +} + +func (request *CommonRequest) GetQueries() string { + return request.Ontology.GetQueries() +} + +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 new file mode 100644 index 0000000..395178f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/roa_request.go @@ -0,0 +1,144 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" + "io" + "net/url" + "sort" + "strings" +) + +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 + } +} + +func (request *RoaRequest) GetQueries() string { + return request.queries +} + +// for sign method, need not url encoded +func (request *RoaRequest) BuildQueries() string { + return request.buildQueries(false) +} + +func (request *RoaRequest) buildQueries(needParamEncode bool) string { + // replace path params with value + path := request.pathPattern + for key, value := range request.PathParams { + path = strings.Replace(path, "["+key+"]", value, 1) + } + + queryParams := request.QueryParams + // check if path contains params + splitArray := strings.Split(path, "?") + path = splitArray[0] + if len(splitArray) > 1 && len(splitArray[1]) > 0 { + queryParams[splitArray[1]] = "" + } + // 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) + urlBuilder.WriteString("?") + for i := 0; i < len(queryKeys); i++ { + queryKey := queryKeys[i] + urlBuilder.WriteString(queryKey) + if value := queryParams[queryKey]; len(value) > 0 { + urlBuilder.WriteString("=") + if needParamEncode { + urlBuilder.WriteString(url.QueryEscape(value)) + } else { + urlBuilder.WriteString(value) + } + } + if i < len(queryKeys)-1 { + urlBuilder.WriteString("&") + } + } + result := urlBuilder.String() + result = popStandardUrlencode(result) + request.queries = result + return request.queries +} + +func popStandardUrlencode(stringToSign string) (result string) { + result = strings.Replace(stringToSign, "+", "%20", -1) + result = strings.Replace(result, "*", "%2A", -1) + result = strings.Replace(result, "%7E", "~", -1) + return +} + +func (request *RoaRequest) GetUrl() string { + return strings.ToLower(request.Scheme) + "://" + request.Domain + ":" + request.Port + request.GetQueries() +} + +func (request *RoaRequest) BuildUrl() string { + // for network trans, need url encoded + return strings.ToLower(request.Scheme) + "://" + request.Domain + ":" + request.Port + request.buildQueries(true) +} + +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.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 + //request.actionName = commonRequest.ApiName + request.pathPattern = commonRequest.PathPattern + request.locationServiceCode = "" + 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 new file mode 100644 index 0000000..7a61c19 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/rpc_request.go @@ -0,0 +1,81 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" + "io" + "strings" +) + +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) GetQueries() string { + return request.queries +} + +func (request *RpcRequest) BuildUrl() string { + return strings.ToLower(request.Scheme) + "://" + request.Domain + ":" + request.Port + request.BuildQueries() +} + +func (request *RpcRequest) GetUrl() string { + return strings.ToLower(request.Scheme) + "://" + request.Domain + request.GetQueries() +} + +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 +} 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 new file mode 100644 index 0000000..28af63e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/types.go @@ -0,0 +1,53 @@ +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/requests/types_test.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/types_test.go new file mode 100644 index 0000000..2deaeba --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/types_test.go @@ -0,0 +1,50 @@ +package requests + +import ( + "github.com/stretchr/testify/assert" + "testing" +) + +func TestNewInteger(t *testing.T) { + integer := NewInteger(123123) + assert.True(t, integer.HasValue()) + value, err := integer.GetValue() + assert.Nil(t, err) + assert.Equal(t, 123123, value) + var expected Integer + expected = "123123" + assert.Equal(t, expected, integer) +} + +func TestNewInteger64(t *testing.T) { + long := NewInteger64(123123123123123123) + assert.True(t, long.HasValue()) + value, err := long.GetValue64() + assert.Nil(t, err) + assert.Equal(t, int64(123123123123123123), value) + var expected Integer + expected = "123123123123123123" + assert.Equal(t, expected, long) +} + +func TestNewBoolean(t *testing.T) { + boolean := NewBoolean(false) + assert.True(t, boolean.HasValue()) + value, err := boolean.GetValue() + assert.Nil(t, err) + assert.Equal(t, false, value) + var expected Boolean + expected = "false" + assert.Equal(t, expected, boolean) +} + +func TestNewFloat(t *testing.T) { + float := NewFloat(123123.123123) + assert.True(t, float.HasValue()) + value, err := float.GetValue() + assert.Nil(t, err) + assert.Equal(t, 123123.123123, value) + var expected Float + expected = "123123.123123" + assert.Equal(t, expected, float) +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/resource/tzdata.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/resource/tzdata.go new file mode 100644 index 0000000..58f3539 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/resource/tzdata.go @@ -0,0 +1,6 @@ +package resource + +func GetTZData(name string) ([]byte, bool) { + data, ok := files["zoneinfo/"+name] + return data, ok +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/resource/zoneinfo.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/resource/zoneinfo.go new file mode 100644 index 0000000..e0fe9d3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/resource/zoneinfo.go @@ -0,0 +1,1190 @@ +package resource + +var fileNames = []string{"zoneinfo/Africa/Abidjan", "zoneinfo/Africa/Accra", "zoneinfo/Africa/Addis_Ababa", "zoneinfo/Africa/Algiers", "zoneinfo/Africa/Asmara", "zoneinfo/Africa/Asmera", "zoneinfo/Africa/Bamako", "zoneinfo/Africa/Bangui", "zoneinfo/Africa/Banjul", "zoneinfo/Africa/Bissau", "zoneinfo/Africa/Blantyre", "zoneinfo/Africa/Brazzaville", "zoneinfo/Africa/Bujumbura", "zoneinfo/Africa/Cairo", "zoneinfo/Africa/Casablanca", "zoneinfo/Africa/Ceuta", "zoneinfo/Africa/Conakry", "zoneinfo/Africa/Dakar", "zoneinfo/Africa/Dar_es_Salaam", "zoneinfo/Africa/Djibouti", "zoneinfo/Africa/Douala", "zoneinfo/Africa/El_Aaiun", "zoneinfo/Africa/Freetown", "zoneinfo/Africa/Gaborone", "zoneinfo/Africa/Harare", "zoneinfo/Africa/Johannesburg", "zoneinfo/Africa/Juba", "zoneinfo/Africa/Kampala", "zoneinfo/Africa/Khartoum", "zoneinfo/Africa/Kigali", "zoneinfo/Africa/Kinshasa", "zoneinfo/Africa/Lagos", "zoneinfo/Africa/Libreville", "zoneinfo/Africa/Lome", "zoneinfo/Africa/Luanda", "zoneinfo/Africa/Lubumbashi", "zoneinfo/Africa/Lusaka", "zoneinfo/Africa/Malabo", "zoneinfo/Africa/Maputo", "zoneinfo/Africa/Maseru", "zoneinfo/Africa/Mbabane", "zoneinfo/Africa/Mogadishu", "zoneinfo/Africa/Monrovia", "zoneinfo/Africa/Nairobi", "zoneinfo/Africa/Ndjamena", "zoneinfo/Africa/Niamey", "zoneinfo/Africa/Nouakchott", "zoneinfo/Africa/Ouagadougou", "zoneinfo/Africa/Porto-Novo", "zoneinfo/Africa/Sao_Tome", "zoneinfo/Africa/Timbuktu", "zoneinfo/Africa/Tripoli", "zoneinfo/Africa/Tunis", "zoneinfo/Africa/Windhoek", "zoneinfo/America/Adak", "zoneinfo/America/Anchorage", "zoneinfo/America/Anguilla", "zoneinfo/America/Antigua", "zoneinfo/America/Araguaina", "zoneinfo/America/Argentina/Buenos_Aires", "zoneinfo/America/Argentina/Catamarca", "zoneinfo/America/Argentina/ComodRivadavia", "zoneinfo/America/Argentina/Cordoba", "zoneinfo/America/Argentina/Jujuy", "zoneinfo/America/Argentina/La_Rioja", "zoneinfo/America/Argentina/Mendoza", "zoneinfo/America/Argentina/Rio_Gallegos", "zoneinfo/America/Argentina/Salta", "zoneinfo/America/Argentina/San_Juan", "zoneinfo/America/Argentina/San_Luis", "zoneinfo/America/Argentina/Tucuman", "zoneinfo/America/Argentina/Ushuaia", "zoneinfo/America/Aruba", "zoneinfo/America/Asuncion", "zoneinfo/America/Atikokan", "zoneinfo/America/Atka", "zoneinfo/America/Bahia", "zoneinfo/America/Bahia_Banderas", "zoneinfo/America/Barbados", "zoneinfo/America/Belem", "zoneinfo/America/Belize", "zoneinfo/America/Blanc-Sablon", "zoneinfo/America/Boa_Vista", "zoneinfo/America/Bogota", "zoneinfo/America/Boise", "zoneinfo/America/Buenos_Aires", "zoneinfo/America/Cambridge_Bay", "zoneinfo/America/Campo_Grande", "zoneinfo/America/Cancun", "zoneinfo/America/Caracas", "zoneinfo/America/Catamarca", "zoneinfo/America/Cayenne", "zoneinfo/America/Cayman", "zoneinfo/America/Chicago", "zoneinfo/America/Chihuahua", "zoneinfo/America/Coral_Harbour", "zoneinfo/America/Cordoba", "zoneinfo/America/Costa_Rica", "zoneinfo/America/Creston", "zoneinfo/America/Cuiaba", "zoneinfo/America/Curacao", "zoneinfo/America/Danmarkshavn", "zoneinfo/America/Dawson", "zoneinfo/America/Dawson_Creek", "zoneinfo/America/Denver", "zoneinfo/America/Detroit", "zoneinfo/America/Dominica", "zoneinfo/America/Edmonton", "zoneinfo/America/Eirunepe", "zoneinfo/America/El_Salvador", "zoneinfo/America/Ensenada", "zoneinfo/America/Fort_Nelson", "zoneinfo/America/Fort_Wayne", "zoneinfo/America/Fortaleza", "zoneinfo/America/Glace_Bay", "zoneinfo/America/Godthab", "zoneinfo/America/Goose_Bay", "zoneinfo/America/Grand_Turk", "zoneinfo/America/Grenada", "zoneinfo/America/Guadeloupe", "zoneinfo/America/Guatemala", "zoneinfo/America/Guayaquil", "zoneinfo/America/Guyana", "zoneinfo/America/Halifax", "zoneinfo/America/Havana", "zoneinfo/America/Hermosillo", "zoneinfo/America/Indiana/Indianapolis", "zoneinfo/America/Indiana/Knox", "zoneinfo/America/Indiana/Marengo", "zoneinfo/America/Indiana/Petersburg", "zoneinfo/America/Indiana/Tell_City", "zoneinfo/America/Indiana/Vevay", "zoneinfo/America/Indiana/Vincennes", "zoneinfo/America/Indiana/Winamac", "zoneinfo/America/Indianapolis", "zoneinfo/America/Inuvik", "zoneinfo/America/Iqaluit", "zoneinfo/America/Jamaica", "zoneinfo/America/Jujuy", "zoneinfo/America/Juneau", "zoneinfo/America/Kentucky/Louisville", "zoneinfo/America/Kentucky/Monticello", "zoneinfo/America/Knox_IN", "zoneinfo/America/Kralendijk", "zoneinfo/America/La_Paz", "zoneinfo/America/Lima", "zoneinfo/America/Los_Angeles", "zoneinfo/America/Louisville", "zoneinfo/America/Lower_Princes", "zoneinfo/America/Maceio", "zoneinfo/America/Managua", "zoneinfo/America/Manaus", "zoneinfo/America/Marigot", "zoneinfo/America/Martinique", "zoneinfo/America/Matamoros", "zoneinfo/America/Mazatlan", "zoneinfo/America/Mendoza", "zoneinfo/America/Menominee", "zoneinfo/America/Merida", "zoneinfo/America/Metlakatla", "zoneinfo/America/Mexico_City", "zoneinfo/America/Miquelon", "zoneinfo/America/Moncton", "zoneinfo/America/Monterrey", "zoneinfo/America/Montevideo", "zoneinfo/America/Montreal", "zoneinfo/America/Montserrat", "zoneinfo/America/Nassau", "zoneinfo/America/New_York", "zoneinfo/America/Nipigon", "zoneinfo/America/Nome", "zoneinfo/America/Noronha", "zoneinfo/America/North_Dakota/Beulah", "zoneinfo/America/North_Dakota/Center", "zoneinfo/America/North_Dakota/New_Salem", "zoneinfo/America/Ojinaga", "zoneinfo/America/Panama", "zoneinfo/America/Pangnirtung", "zoneinfo/America/Paramaribo", "zoneinfo/America/Phoenix", "zoneinfo/America/Port-au-Prince", "zoneinfo/America/Port_of_Spain", "zoneinfo/America/Porto_Acre", "zoneinfo/America/Porto_Velho", "zoneinfo/America/Puerto_Rico", "zoneinfo/America/Punta_Arenas", "zoneinfo/America/Rainy_River", "zoneinfo/America/Rankin_Inlet", "zoneinfo/America/Recife", "zoneinfo/America/Regina", "zoneinfo/America/Resolute", "zoneinfo/America/Rio_Branco", "zoneinfo/America/Rosario", "zoneinfo/America/Santa_Isabel", "zoneinfo/America/Santarem", "zoneinfo/America/Santiago", "zoneinfo/America/Santo_Domingo", "zoneinfo/America/Sao_Paulo", "zoneinfo/America/Scoresbysund", "zoneinfo/America/Shiprock", "zoneinfo/America/Sitka", "zoneinfo/America/St_Barthelemy", "zoneinfo/America/St_Johns", "zoneinfo/America/St_Kitts", "zoneinfo/America/St_Lucia", "zoneinfo/America/St_Thomas", "zoneinfo/America/St_Vincent", "zoneinfo/America/Swift_Current", "zoneinfo/America/Tegucigalpa", "zoneinfo/America/Thule", "zoneinfo/America/Thunder_Bay", "zoneinfo/America/Tijuana", "zoneinfo/America/Toronto", "zoneinfo/America/Tortola", "zoneinfo/America/Vancouver", "zoneinfo/America/Virgin", "zoneinfo/America/Whitehorse", "zoneinfo/America/Winnipeg", "zoneinfo/America/Yakutat", "zoneinfo/America/Yellowknife", "zoneinfo/Antarctica/Casey", "zoneinfo/Antarctica/Davis", "zoneinfo/Antarctica/DumontDUrville", "zoneinfo/Antarctica/Macquarie", "zoneinfo/Antarctica/Mawson", "zoneinfo/Antarctica/McMurdo", "zoneinfo/Antarctica/Palmer", "zoneinfo/Antarctica/Rothera", "zoneinfo/Antarctica/South_Pole", "zoneinfo/Antarctica/Syowa", "zoneinfo/Antarctica/Troll", "zoneinfo/Antarctica/Vostok", "zoneinfo/Arctic/Longyearbyen", "zoneinfo/Asia/Aden", "zoneinfo/Asia/Almaty", "zoneinfo/Asia/Amman", "zoneinfo/Asia/Anadyr", "zoneinfo/Asia/Aqtau", "zoneinfo/Asia/Aqtobe", "zoneinfo/Asia/Ashgabat", "zoneinfo/Asia/Ashkhabad", "zoneinfo/Asia/Atyrau", "zoneinfo/Asia/Baghdad", "zoneinfo/Asia/Bahrain", "zoneinfo/Asia/Baku", "zoneinfo/Asia/Bangkok", "zoneinfo/Asia/Barnaul", "zoneinfo/Asia/Beirut", "zoneinfo/Asia/Bishkek", "zoneinfo/Asia/Brunei", "zoneinfo/Asia/Calcutta", "zoneinfo/Asia/Chita", "zoneinfo/Asia/Choibalsan", "zoneinfo/Asia/Chongqing", "zoneinfo/Asia/Chungking", "zoneinfo/Asia/Colombo", "zoneinfo/Asia/Dacca", "zoneinfo/Asia/Damascus", "zoneinfo/Asia/Dhaka", "zoneinfo/Asia/Dili", "zoneinfo/Asia/Dubai", "zoneinfo/Asia/Dushanbe", "zoneinfo/Asia/Famagusta", "zoneinfo/Asia/Gaza", "zoneinfo/Asia/Harbin", "zoneinfo/Asia/Hebron", "zoneinfo/Asia/Ho_Chi_Minh", "zoneinfo/Asia/Hong_Kong", "zoneinfo/Asia/Hovd", "zoneinfo/Asia/Irkutsk", "zoneinfo/Asia/Istanbul", "zoneinfo/Asia/Jakarta", "zoneinfo/Asia/Jayapura", "zoneinfo/Asia/Jerusalem", "zoneinfo/Asia/Kabul", "zoneinfo/Asia/Kamchatka", "zoneinfo/Asia/Karachi", "zoneinfo/Asia/Kashgar", "zoneinfo/Asia/Kathmandu", "zoneinfo/Asia/Katmandu", "zoneinfo/Asia/Khandyga", "zoneinfo/Asia/Kolkata", "zoneinfo/Asia/Krasnoyarsk", "zoneinfo/Asia/Kuala_Lumpur", "zoneinfo/Asia/Kuching", "zoneinfo/Asia/Kuwait", "zoneinfo/Asia/Macao", "zoneinfo/Asia/Macau", "zoneinfo/Asia/Magadan", "zoneinfo/Asia/Makassar", "zoneinfo/Asia/Manila", "zoneinfo/Asia/Muscat", "zoneinfo/Asia/Nicosia", "zoneinfo/Asia/Novokuznetsk", "zoneinfo/Asia/Novosibirsk", "zoneinfo/Asia/Omsk", "zoneinfo/Asia/Oral", "zoneinfo/Asia/Phnom_Penh", "zoneinfo/Asia/Pontianak", "zoneinfo/Asia/Pyongyang", "zoneinfo/Asia/Qatar", "zoneinfo/Asia/Qyzylorda", "zoneinfo/Asia/Rangoon", "zoneinfo/Asia/Riyadh", "zoneinfo/Asia/Saigon", "zoneinfo/Asia/Sakhalin", "zoneinfo/Asia/Samarkand", "zoneinfo/Asia/Seoul", "zoneinfo/Asia/Shanghai", "zoneinfo/Asia/Singapore", "zoneinfo/Asia/Srednekolymsk", "zoneinfo/Asia/Taipei", "zoneinfo/Asia/Tashkent", "zoneinfo/Asia/Tbilisi", "zoneinfo/Asia/Tehran", "zoneinfo/Asia/Tel_Aviv", "zoneinfo/Asia/Thimbu", "zoneinfo/Asia/Thimphu", "zoneinfo/Asia/Tokyo", "zoneinfo/Asia/Tomsk", "zoneinfo/Asia/Ujung_Pandang", "zoneinfo/Asia/Ulaanbaatar", "zoneinfo/Asia/Ulan_Bator", "zoneinfo/Asia/Urumqi", "zoneinfo/Asia/Ust-Nera", "zoneinfo/Asia/Vientiane", "zoneinfo/Asia/Vladivostok", "zoneinfo/Asia/Yakutsk", "zoneinfo/Asia/Yangon", "zoneinfo/Asia/Yekaterinburg", "zoneinfo/Asia/Yerevan", "zoneinfo/Atlantic/Azores", "zoneinfo/Atlantic/Bermuda", "zoneinfo/Atlantic/Canary", "zoneinfo/Atlantic/Cape_Verde", "zoneinfo/Atlantic/Faeroe", "zoneinfo/Atlantic/Faroe", "zoneinfo/Atlantic/Jan_Mayen", "zoneinfo/Atlantic/Madeira", "zoneinfo/Atlantic/Reykjavik", "zoneinfo/Atlantic/South_Georgia", "zoneinfo/Atlantic/St_Helena", "zoneinfo/Atlantic/Stanley", "zoneinfo/Australia/ACT", "zoneinfo/Australia/Adelaide", "zoneinfo/Australia/Brisbane", "zoneinfo/Australia/Broken_Hill", "zoneinfo/Australia/Canberra", "zoneinfo/Australia/Currie", "zoneinfo/Australia/Darwin", "zoneinfo/Australia/Eucla", "zoneinfo/Australia/Hobart", "zoneinfo/Australia/LHI", "zoneinfo/Australia/Lindeman", "zoneinfo/Australia/Lord_Howe", "zoneinfo/Australia/Melbourne", "zoneinfo/Australia/NSW", "zoneinfo/Australia/North", "zoneinfo/Australia/Perth", "zoneinfo/Australia/Queensland", "zoneinfo/Australia/South", "zoneinfo/Australia/Sydney", "zoneinfo/Australia/Tasmania", "zoneinfo/Australia/Victoria", "zoneinfo/Australia/West", "zoneinfo/Australia/Yancowinna", "zoneinfo/Brazil/Acre", "zoneinfo/Brazil/DeNoronha", "zoneinfo/Brazil/East", "zoneinfo/Brazil/West", "zoneinfo/CET", "zoneinfo/CST6CDT", "zoneinfo/Canada/Atlantic", "zoneinfo/Canada/Central", "zoneinfo/Canada/Eastern", "zoneinfo/Canada/Mountain", "zoneinfo/Canada/Newfoundland", "zoneinfo/Canada/Pacific", "zoneinfo/Canada/Saskatchewan", "zoneinfo/Canada/Yukon", "zoneinfo/Chile/Continental", "zoneinfo/Chile/EasterIsland", "zoneinfo/Cuba", "zoneinfo/EET", "zoneinfo/EST", "zoneinfo/EST5EDT", "zoneinfo/Egypt", "zoneinfo/Eire", "zoneinfo/Etc/GMT", "zoneinfo/Etc/GMT+0", "zoneinfo/Etc/GMT+1", "zoneinfo/Etc/GMT+10", "zoneinfo/Etc/GMT+11", "zoneinfo/Etc/GMT+12", "zoneinfo/Etc/GMT+2", "zoneinfo/Etc/GMT+3", "zoneinfo/Etc/GMT+4", "zoneinfo/Etc/GMT+5", "zoneinfo/Etc/GMT+6", "zoneinfo/Etc/GMT+7", "zoneinfo/Etc/GMT+8", "zoneinfo/Etc/GMT+9", "zoneinfo/Etc/GMT-0", "zoneinfo/Etc/GMT-1", "zoneinfo/Etc/GMT-10", "zoneinfo/Etc/GMT-11", "zoneinfo/Etc/GMT-12", "zoneinfo/Etc/GMT-13", "zoneinfo/Etc/GMT-14", "zoneinfo/Etc/GMT-2", "zoneinfo/Etc/GMT-3", "zoneinfo/Etc/GMT-4", "zoneinfo/Etc/GMT-5", "zoneinfo/Etc/GMT-6", "zoneinfo/Etc/GMT-7", "zoneinfo/Etc/GMT-8", "zoneinfo/Etc/GMT-9", "zoneinfo/Etc/GMT0", "zoneinfo/Etc/Greenwich", "zoneinfo/Etc/UCT", "zoneinfo/Etc/UTC", "zoneinfo/Etc/Universal", "zoneinfo/Etc/Zulu", "zoneinfo/Europe/Amsterdam", "zoneinfo/Europe/Andorra", "zoneinfo/Europe/Astrakhan", "zoneinfo/Europe/Athens", "zoneinfo/Europe/Belfast", "zoneinfo/Europe/Belgrade", "zoneinfo/Europe/Berlin", "zoneinfo/Europe/Bratislava", "zoneinfo/Europe/Brussels", "zoneinfo/Europe/Bucharest", "zoneinfo/Europe/Budapest", "zoneinfo/Europe/Busingen", "zoneinfo/Europe/Chisinau", "zoneinfo/Europe/Copenhagen", "zoneinfo/Europe/Dublin", "zoneinfo/Europe/Gibraltar", "zoneinfo/Europe/Guernsey", "zoneinfo/Europe/Helsinki", "zoneinfo/Europe/Isle_of_Man", "zoneinfo/Europe/Istanbul", "zoneinfo/Europe/Jersey", "zoneinfo/Europe/Kaliningrad", "zoneinfo/Europe/Kiev", "zoneinfo/Europe/Kirov", "zoneinfo/Europe/Lisbon", "zoneinfo/Europe/Ljubljana", "zoneinfo/Europe/London", "zoneinfo/Europe/Luxembourg", "zoneinfo/Europe/Madrid", "zoneinfo/Europe/Malta", "zoneinfo/Europe/Mariehamn", "zoneinfo/Europe/Minsk", "zoneinfo/Europe/Monaco", "zoneinfo/Europe/Moscow", "zoneinfo/Europe/Nicosia", "zoneinfo/Europe/Oslo", "zoneinfo/Europe/Paris", "zoneinfo/Europe/Podgorica", "zoneinfo/Europe/Prague", "zoneinfo/Europe/Riga", "zoneinfo/Europe/Rome", "zoneinfo/Europe/Samara", "zoneinfo/Europe/San_Marino", "zoneinfo/Europe/Sarajevo", "zoneinfo/Europe/Saratov", "zoneinfo/Europe/Simferopol", "zoneinfo/Europe/Skopje", "zoneinfo/Europe/Sofia", "zoneinfo/Europe/Stockholm", "zoneinfo/Europe/Tallinn", "zoneinfo/Europe/Tirane", "zoneinfo/Europe/Tiraspol", "zoneinfo/Europe/Ulyanovsk", "zoneinfo/Europe/Uzhgorod", "zoneinfo/Europe/Vaduz", "zoneinfo/Europe/Vatican", "zoneinfo/Europe/Vienna", "zoneinfo/Europe/Vilnius", "zoneinfo/Europe/Volgograd", "zoneinfo/Europe/Warsaw", "zoneinfo/Europe/Zagreb", "zoneinfo/Europe/Zaporozhye", "zoneinfo/Europe/Zurich", "zoneinfo/Factory", "zoneinfo/GB", "zoneinfo/GB-Eire", "zoneinfo/GMT", "zoneinfo/GMT+0", "zoneinfo/GMT-0", "zoneinfo/GMT0", "zoneinfo/Greenwich", "zoneinfo/HST", "zoneinfo/Hongkong", "zoneinfo/Iceland", "zoneinfo/Indian/Antananarivo", "zoneinfo/Indian/Chagos", "zoneinfo/Indian/Christmas", "zoneinfo/Indian/Cocos", "zoneinfo/Indian/Comoro", "zoneinfo/Indian/Kerguelen", "zoneinfo/Indian/Mahe", "zoneinfo/Indian/Maldives", "zoneinfo/Indian/Mauritius", "zoneinfo/Indian/Mayotte", "zoneinfo/Indian/Reunion", "zoneinfo/Iran", "zoneinfo/Israel", "zoneinfo/Jamaica", "zoneinfo/Japan", "zoneinfo/Kwajalein", "zoneinfo/Libya", "zoneinfo/MET", "zoneinfo/MST", "zoneinfo/MST7MDT", "zoneinfo/Mexico/BajaNorte", "zoneinfo/Mexico/BajaSur", "zoneinfo/Mexico/General", "zoneinfo/NZ", "zoneinfo/NZ-CHAT", "zoneinfo/Navajo", "zoneinfo/PRC", "zoneinfo/PST8PDT", "zoneinfo/Pacific/Apia", "zoneinfo/Pacific/Auckland", "zoneinfo/Pacific/Bougainville", "zoneinfo/Pacific/Chatham", "zoneinfo/Pacific/Chuuk", "zoneinfo/Pacific/Easter", "zoneinfo/Pacific/Efate", "zoneinfo/Pacific/Enderbury", "zoneinfo/Pacific/Fakaofo", "zoneinfo/Pacific/Fiji", "zoneinfo/Pacific/Funafuti", "zoneinfo/Pacific/Galapagos", "zoneinfo/Pacific/Gambier", "zoneinfo/Pacific/Guadalcanal", "zoneinfo/Pacific/Guam", "zoneinfo/Pacific/Honolulu", "zoneinfo/Pacific/Johnston", "zoneinfo/Pacific/Kiritimati", "zoneinfo/Pacific/Kosrae", "zoneinfo/Pacific/Kwajalein", "zoneinfo/Pacific/Majuro", "zoneinfo/Pacific/Marquesas", "zoneinfo/Pacific/Midway", "zoneinfo/Pacific/Nauru", "zoneinfo/Pacific/Niue", "zoneinfo/Pacific/Norfolk", "zoneinfo/Pacific/Noumea", "zoneinfo/Pacific/Pago_Pago", "zoneinfo/Pacific/Palau", "zoneinfo/Pacific/Pitcairn", "zoneinfo/Pacific/Pohnpei", "zoneinfo/Pacific/Ponape", "zoneinfo/Pacific/Port_Moresby", "zoneinfo/Pacific/Rarotonga", "zoneinfo/Pacific/Saipan", "zoneinfo/Pacific/Samoa", "zoneinfo/Pacific/Tahiti", "zoneinfo/Pacific/Tarawa", "zoneinfo/Pacific/Tongatapu", "zoneinfo/Pacific/Truk", "zoneinfo/Pacific/Wake", "zoneinfo/Pacific/Wallis", "zoneinfo/Pacific/Yap", "zoneinfo/Poland", "zoneinfo/Portugal", "zoneinfo/ROC", "zoneinfo/ROK", "zoneinfo/Singapore", "zoneinfo/Turkey", "zoneinfo/UCT", "zoneinfo/US/Alaska", "zoneinfo/US/Aleutian", "zoneinfo/US/Arizona", "zoneinfo/US/Central", "zoneinfo/US/East-Indiana", "zoneinfo/US/Eastern", "zoneinfo/US/Hawaii", "zoneinfo/US/Indiana-Starke", "zoneinfo/US/Michigan", "zoneinfo/US/Mountain", "zoneinfo/US/Pacific", "zoneinfo/US/Samoa", "zoneinfo/UTC", "zoneinfo/Universal", "zoneinfo/W-SU", "zoneinfo/WET", "zoneinfo/Zulu"} + +var files = map[string][]byte{ + + "zoneinfo/Africa/Abidjan": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 146, 230, 146, 72, 0, 1, 255, 255, 252, 56, 0, 0, 0, 0, 0, 0, 0, 4, 76, 77, 84, 0, 71, 77, 84, 0, 0, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Africa/Accra": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 3, 0, 0, 0, 14, 128, 0, 0, 0, 158, 48, 102, 180, 163, 52, 123, 128, 163, 211, 252, 80, 165, 21, 175, 0, 165, 181, 47, 208, 166, 246, 226, 128, 167, 150, 99, 80, 168, 216, 22, 0, 169, 119, 150, 208, 170, 186, 155, 0, 171, 90, 27, 208, 172, 155, 206, 128, 173, 59, 79, 80, 174, 125, 2, 0, 175, 28, 130, 208, 176, 94, 53, 128, 176, 253, 182, 80, 178, 64, 186, 128, 178, 224, 59, 80, 180, 33, 238, 0, 180, 193, 110, 208, 182, 3, 33, 128, 182, 162, 162, 80, 183, 228, 85, 0, 184, 131, 213, 208, 185, 198, 218, 0, 186, 102, 90, 208, 187, 168, 13, 128, 188, 71, 142, 80, 189, 137, 65, 0, 190, 40, 193, 208, 191, 106, 116, 128, 192, 9, 245, 80, 193, 76, 249, 128, 193, 236, 122, 80, 195, 46, 45, 0, 195, 205, 173, 208, 197, 15, 96, 128, 197, 174, 225, 80, 198, 240, 148, 0, 199, 144, 20, 208, 200, 211, 25, 0, 201, 114, 153, 208, 202, 180, 76, 128, 203, 83, 205, 80, 204, 149, 128, 0, 205, 53, 0, 208, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 255, 204, 0, 0, 0, 0, 4, 176, 1, 4, 0, 0, 0, 0, 0, 10, 76, 77, 84, 0, 43, 48, 48, 50, 48, 0, 71, 77, 84, 0, 0, 0, 0, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Africa/Addis_Ababa": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 177, 238, 218, 252, 180, 194, 154, 208, 199, 145, 71, 216, 237, 47, 225, 212, 0, 1, 2, 3, 1, 0, 0, 34, 132, 0, 0, 0, 0, 42, 48, 0, 4, 0, 0, 35, 40, 0, 8, 0, 0, 38, 172, 0, 14, 0, 0, 42, 48, 0, 4, 76, 77, 84, 0, 69, 65, 84, 0, 43, 48, 50, 51, 48, 0, 43, 48, 50, 52, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 65, 84, 45, 51, 10}, + + "zoneinfo/Africa/Algiers": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 34, 0, 0, 0, 8, 0, 0, 0, 26, 128, 0, 0, 0, 145, 96, 80, 79, 155, 71, 120, 240, 155, 215, 44, 112, 156, 188, 145, 112, 157, 192, 72, 240, 158, 137, 254, 112, 159, 160, 42, 240, 160, 96, 165, 240, 161, 128, 12, 240, 162, 46, 18, 240, 163, 122, 76, 240, 164, 53, 129, 240, 164, 184, 6, 112, 198, 255, 6, 112, 199, 88, 186, 128, 199, 218, 9, 160, 207, 146, 52, 16, 208, 138, 0, 0, 209, 114, 22, 16, 210, 78, 36, 112, 212, 75, 7, 112, 229, 206, 211, 0, 243, 92, 176, 240, 2, 120, 193, 240, 3, 67, 200, 240, 13, 207, 215, 0, 14, 173, 68, 240, 15, 120, 90, 0, 16, 104, 89, 16, 18, 118, 67, 112, 19, 102, 66, 128, 20, 95, 124, 16, 21, 79, 95, 0, 1, 4, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 4, 6, 5, 6, 5, 6, 4, 6, 4, 2, 3, 7, 6, 5, 6, 4, 7, 4, 6, 0, 0, 2, 220, 0, 0, 0, 0, 2, 49, 0, 4, 0, 0, 14, 16, 1, 8, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 13, 0, 0, 28, 32, 1, 17, 0, 0, 14, 16, 0, 22, 0, 0, 14, 16, 1, 8, 76, 77, 84, 0, 80, 77, 84, 0, 87, 69, 83, 84, 0, 87, 69, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 67, 69, 84, 45, 49, 10}, + + "zoneinfo/Africa/Asmara": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 177, 238, 218, 252, 180, 194, 154, 208, 199, 145, 71, 216, 237, 47, 225, 212, 0, 1, 2, 3, 1, 0, 0, 34, 132, 0, 0, 0, 0, 42, 48, 0, 4, 0, 0, 35, 40, 0, 8, 0, 0, 38, 172, 0, 14, 0, 0, 42, 48, 0, 4, 76, 77, 84, 0, 69, 65, 84, 0, 43, 48, 50, 51, 48, 0, 43, 48, 50, 52, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 65, 84, 45, 51, 10}, + + "zoneinfo/Africa/Asmera": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 177, 238, 218, 252, 180, 194, 154, 208, 199, 145, 71, 216, 237, 47, 225, 212, 0, 1, 2, 3, 1, 0, 0, 34, 132, 0, 0, 0, 0, 42, 48, 0, 4, 0, 0, 35, 40, 0, 8, 0, 0, 38, 172, 0, 14, 0, 0, 42, 48, 0, 4, 76, 77, 84, 0, 69, 65, 84, 0, 43, 48, 50, 51, 48, 0, 43, 48, 50, 52, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 65, 84, 45, 51, 10}, + + "zoneinfo/Africa/Bamako": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 146, 230, 146, 72, 0, 1, 255, 255, 252, 56, 0, 0, 0, 0, 0, 0, 0, 4, 76, 77, 84, 0, 71, 77, 84, 0, 0, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Africa/Bangui": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 161, 81, 243, 80, 0, 1, 0, 0, 3, 48, 0, 0, 0, 0, 14, 16, 0, 4, 76, 77, 84, 0, 87, 65, 84, 0, 0, 0, 0, 0, 10, 87, 65, 84, 45, 49, 10}, + + "zoneinfo/Africa/Banjul": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 146, 230, 146, 72, 0, 1, 255, 255, 252, 56, 0, 0, 0, 0, 0, 0, 0, 4, 76, 77, 84, 0, 71, 77, 84, 0, 0, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Africa/Bissau": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 146, 230, 157, 28, 9, 103, 97, 16, 0, 1, 2, 255, 255, 241, 100, 0, 0, 255, 255, 241, 240, 0, 4, 0, 0, 0, 0, 0, 8, 76, 77, 84, 0, 45, 48, 49, 0, 71, 77, 84, 0, 0, 0, 0, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Africa/Blantyre": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 130, 70, 197, 244, 0, 1, 0, 0, 30, 140, 0, 0, 0, 0, 28, 32, 0, 4, 76, 77, 84, 0, 67, 65, 84, 0, 0, 0, 0, 0, 10, 67, 65, 84, 45, 50, 10}, + + "zoneinfo/Africa/Brazzaville": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 161, 81, 243, 80, 0, 1, 0, 0, 3, 48, 0, 0, 0, 0, 14, 16, 0, 4, 76, 77, 84, 0, 87, 65, 84, 0, 0, 0, 0, 0, 10, 87, 65, 84, 45, 49, 10}, + + "zoneinfo/Africa/Bujumbura": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 130, 70, 197, 244, 0, 1, 0, 0, 30, 140, 0, 0, 0, 0, 28, 32, 0, 4, 76, 77, 84, 0, 67, 65, 84, 0, 0, 0, 0, 0, 10, 67, 65, 84, 45, 50, 10}, + + "zoneinfo/Africa/Cairo": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 127, 0, 0, 0, 4, 0, 0, 0, 13, 128, 0, 0, 0, 200, 147, 180, 224, 200, 250, 123, 208, 201, 252, 239, 224, 202, 199, 232, 208, 203, 203, 174, 96, 204, 223, 41, 208, 205, 172, 225, 224, 206, 198, 244, 208, 207, 143, 102, 224, 208, 169, 121, 208, 209, 132, 96, 224, 210, 138, 173, 80, 232, 54, 99, 96, 232, 244, 45, 80, 234, 11, 185, 96, 234, 213, 96, 208, 235, 236, 250, 240, 236, 181, 109, 0, 237, 207, 127, 240, 238, 151, 242, 0, 239, 176, 179, 112, 240, 121, 37, 128, 241, 145, 230, 240, 242, 90, 89, 0, 243, 115, 26, 112, 244, 59, 140, 128, 245, 85, 159, 112, 246, 30, 17, 128, 247, 54, 210, 240, 247, 255, 69, 0, 249, 24, 6, 112, 249, 225, 202, 0, 250, 249, 57, 240, 251, 194, 253, 128, 252, 219, 190, 240, 253, 165, 130, 128, 254, 188, 242, 112, 255, 134, 182, 0, 0, 158, 37, 240, 1, 103, 233, 128, 2, 127, 89, 112, 3, 73, 29, 0, 4, 97, 222, 112, 5, 43, 162, 0, 6, 67, 17, 240, 7, 12, 213, 128, 8, 36, 69, 112, 8, 238, 9, 0, 10, 5, 120, 240, 10, 207, 60, 128, 11, 231, 253, 240, 12, 177, 193, 128, 13, 201, 49, 112, 14, 146, 245, 0, 15, 170, 100, 240, 16, 116, 40, 128, 17, 139, 152, 112, 18, 85, 92, 0, 19, 110, 29, 112, 20, 55, 225, 0, 21, 79, 80, 240, 22, 25, 20, 128, 23, 160, 147, 240, 23, 250, 72, 0, 25, 112, 163, 240, 25, 219, 123, 128, 26, 244, 60, 240, 27, 190, 0, 128, 28, 213, 112, 112, 29, 159, 52, 0, 30, 182, 163, 240, 31, 128, 103, 128, 32, 151, 215, 112, 33, 97, 155, 0, 34, 122, 92, 112, 35, 68, 32, 0, 36, 98, 39, 112, 37, 37, 83, 128, 38, 60, 195, 112, 39, 6, 135, 0, 40, 29, 246, 240, 40, 231, 186, 128, 42, 0, 123, 240, 42, 202, 63, 128, 43, 225, 175, 112, 44, 171, 115, 0, 45, 194, 226, 240, 46, 140, 166, 128, 47, 160, 19, 224, 48, 107, 12, 208, 49, 127, 245, 224, 50, 74, 238, 208, 51, 95, 215, 224, 52, 42, 208, 208, 53, 63, 185, 224, 54, 10, 178, 208, 55, 40, 214, 96, 55, 243, 207, 80, 57, 8, 184, 96, 57, 211, 177, 80, 58, 232, 154, 96, 59, 179, 147, 80, 60, 200, 124, 96, 61, 147, 117, 80, 62, 168, 94, 96, 63, 115, 87, 80, 64, 145, 122, 224, 65, 92, 115, 208, 66, 113, 92, 224, 67, 60, 85, 208, 68, 81, 62, 224, 69, 18, 253, 80, 70, 49, 32, 224, 70, 224, 106, 80, 72, 17, 2, 224, 72, 183, 17, 208, 73, 240, 228, 224, 74, 141, 185, 80, 75, 218, 1, 96, 76, 97, 189, 208, 76, 137, 88, 224, 76, 164, 250, 80, 83, 117, 56, 224, 83, 172, 137, 208, 83, 218, 188, 96, 84, 36, 130, 80, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 1, 2, 1, 2, 1, 2, 0, 0, 29, 85, 0, 0, 0, 0, 42, 48, 1, 4, 0, 0, 28, 32, 0, 9, 0, 0, 42, 48, 1, 4, 76, 77, 84, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 0, 0, 0, 1, 0, 0, 0, 0, 10, 69, 69, 84, 45, 50, 10}, + + "zoneinfo/Africa/Casablanca": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 5, 0, 0, 0, 17, 128, 0, 0, 0, 150, 81, 249, 156, 198, 255, 20, 128, 199, 88, 172, 112, 199, 217, 237, 128, 210, 161, 50, 240, 219, 53, 164, 0, 219, 238, 39, 240, 251, 37, 114, 64, 251, 194, 239, 112, 8, 107, 132, 128, 8, 198, 109, 240, 11, 232, 12, 0, 12, 97, 71, 240, 13, 201, 63, 128, 14, 142, 242, 112, 15, 211, 81, 128, 16, 39, 163, 112, 26, 183, 166, 0, 30, 24, 111, 240, 72, 65, 230, 128, 72, 187, 34, 112, 74, 35, 26, 0, 74, 141, 213, 112, 75, 220, 192, 128, 76, 93, 229, 112, 77, 151, 184, 128, 78, 52, 140, 240, 79, 156, 160, 160, 80, 8, 187, 160, 80, 49, 154, 32, 80, 103, 167, 160, 81, 124, 130, 160, 81, 216, 203, 160, 82, 5, 158, 160, 82, 108, 115, 160, 83, 55, 122, 160, 83, 174, 33, 160, 83, 220, 70, 32, 84, 76, 85, 160, 85, 23, 92, 160, 85, 124, 224, 32, 85, 171, 4, 160, 86, 44, 55, 160, 86, 247, 62, 160, 87, 83, 135, 160, 87, 129, 172, 32, 88, 21, 84, 32, 88, 215, 32, 160, 89, 32, 244, 160, 89, 88, 83, 160, 89, 245, 54, 32, 90, 183, 2, 160, 90, 247, 156, 32, 91, 37, 192, 160, 91, 213, 24, 32, 92, 160, 31, 32, 92, 206, 67, 160, 92, 252, 104, 32, 93, 180, 250, 32, 94, 128, 1, 32, 94, 155, 176, 160, 94, 201, 213, 32, 95, 148, 220, 32, 96, 95, 227, 32, 96, 114, 88, 32, 96, 160, 124, 160, 97, 125, 248, 160, 98, 119, 36, 32, 99, 93, 218, 160, 100, 68, 145, 32, 101, 61, 188, 160, 102, 27, 56, 160, 103, 29, 158, 160, 103, 241, 224, 32, 104, 253, 128, 160, 105, 200, 135, 160, 106, 221, 98, 160, 107, 168, 105, 160, 108, 198, 127, 32, 109, 136, 75, 160, 110, 166, 97, 32, 111, 104, 45, 160, 112, 134, 67, 32, 113, 81, 74, 32, 114, 102, 37, 32, 115, 49, 44, 32, 116, 70, 7, 32, 117, 17, 14, 32, 118, 47, 35, 160, 118, 240, 240, 32, 120, 15, 5, 160, 120, 208, 210, 32, 121, 238, 231, 160, 122, 176, 180, 32, 123, 206, 201, 160, 124, 153, 208, 160, 125, 165, 113, 32, 126, 121, 178, 160, 127, 114, 222, 32, 127, 142, 155, 176, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 255, 255, 248, 228, 0, 0, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 9, 0, 0, 14, 16, 0, 13, 0, 0, 0, 0, 0, 9, 76, 77, 84, 0, 87, 69, 83, 84, 0, 87, 69, 84, 0, 67, 69, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 87, 69, 84, 48, 87, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Africa/Ceuta": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 127, 0, 0, 0, 7, 0, 0, 0, 22, 128, 0, 0, 0, 158, 214, 117, 112, 159, 161, 110, 96, 170, 5, 239, 112, 170, 231, 110, 0, 173, 201, 167, 240, 174, 167, 50, 0, 175, 160, 79, 112, 176, 135, 20, 0, 177, 137, 122, 0, 178, 112, 48, 128, 178, 225, 145, 128, 251, 37, 114, 64, 251, 194, 239, 112, 8, 107, 132, 128, 8, 198, 109, 240, 11, 232, 12, 0, 12, 97, 71, 240, 13, 201, 63, 128, 14, 142, 242, 112, 15, 211, 81, 128, 16, 39, 163, 112, 26, 183, 166, 0, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 2, 1, 2, 3, 2, 3, 2, 3, 2, 3, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 4, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 255, 255, 251, 4, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 14, 16, 1, 8, 0, 0, 0, 0, 0, 4, 0, 0, 14, 16, 0, 13, 0, 0, 28, 32, 1, 17, 0, 0, 14, 16, 0, 13, 76, 77, 84, 0, 87, 69, 84, 0, 87, 69, 83, 84, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Africa/Conakry": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 146, 230, 146, 72, 0, 1, 255, 255, 252, 56, 0, 0, 0, 0, 0, 0, 0, 4, 76, 77, 84, 0, 71, 77, 84, 0, 0, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Africa/Dakar": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 146, 230, 146, 72, 0, 1, 255, 255, 252, 56, 0, 0, 0, 0, 0, 0, 0, 4, 76, 77, 84, 0, 71, 77, 84, 0, 0, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Africa/Dar_es_Salaam": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 177, 238, 218, 252, 180, 194, 154, 208, 199, 145, 71, 216, 237, 47, 225, 212, 0, 1, 2, 3, 1, 0, 0, 34, 132, 0, 0, 0, 0, 42, 48, 0, 4, 0, 0, 35, 40, 0, 8, 0, 0, 38, 172, 0, 14, 0, 0, 42, 48, 0, 4, 76, 77, 84, 0, 69, 65, 84, 0, 43, 48, 50, 51, 48, 0, 43, 48, 50, 52, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 65, 84, 45, 51, 10}, + + "zoneinfo/Africa/Djibouti": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 177, 238, 218, 252, 180, 194, 154, 208, 199, 145, 71, 216, 237, 47, 225, 212, 0, 1, 2, 3, 1, 0, 0, 34, 132, 0, 0, 0, 0, 42, 48, 0, 4, 0, 0, 35, 40, 0, 8, 0, 0, 38, 172, 0, 14, 0, 0, 42, 48, 0, 4, 76, 77, 84, 0, 69, 65, 84, 0, 43, 48, 50, 51, 48, 0, 43, 48, 50, 52, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 65, 84, 45, 51, 10}, + + "zoneinfo/Africa/Douala": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 161, 81, 243, 80, 0, 1, 0, 0, 3, 48, 0, 0, 0, 0, 14, 16, 0, 4, 76, 77, 84, 0, 87, 65, 84, 0, 0, 0, 0, 0, 10, 87, 65, 84, 45, 49, 10}, + + "zoneinfo/Africa/El_Aaiun": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 90, 0, 0, 0, 4, 0, 0, 0, 17, 128, 0, 0, 0, 188, 72, 240, 224, 11, 209, 176, 144, 11, 232, 12, 0, 12, 97, 71, 240, 13, 201, 63, 128, 14, 142, 242, 112, 15, 211, 81, 128, 16, 39, 163, 112, 72, 65, 230, 128, 72, 187, 34, 112, 74, 35, 26, 0, 74, 141, 213, 112, 75, 220, 192, 128, 76, 93, 229, 112, 77, 151, 184, 128, 78, 52, 140, 240, 79, 156, 160, 160, 80, 8, 187, 160, 80, 49, 154, 32, 80, 103, 167, 160, 81, 124, 130, 160, 81, 216, 203, 160, 82, 5, 158, 160, 82, 108, 115, 160, 83, 55, 122, 160, 83, 174, 33, 160, 83, 220, 70, 32, 84, 76, 85, 160, 85, 23, 92, 160, 85, 124, 224, 32, 85, 171, 4, 160, 86, 44, 55, 160, 86, 247, 62, 160, 87, 83, 135, 160, 87, 129, 172, 32, 88, 21, 84, 32, 88, 215, 32, 160, 89, 32, 244, 160, 89, 88, 83, 160, 89, 245, 54, 32, 90, 183, 2, 160, 90, 247, 156, 32, 91, 37, 192, 160, 91, 213, 24, 32, 92, 160, 31, 32, 92, 206, 67, 160, 92, 252, 104, 32, 93, 180, 250, 32, 94, 128, 1, 32, 94, 155, 176, 160, 94, 201, 213, 32, 95, 148, 220, 32, 96, 95, 227, 32, 96, 114, 88, 32, 96, 160, 124, 160, 97, 125, 248, 160, 98, 119, 36, 32, 99, 93, 218, 160, 100, 68, 145, 32, 101, 61, 188, 160, 102, 27, 56, 160, 103, 29, 158, 160, 103, 241, 224, 32, 104, 253, 128, 160, 105, 200, 135, 160, 106, 221, 98, 160, 107, 168, 105, 160, 108, 198, 127, 32, 109, 136, 75, 160, 110, 166, 97, 32, 111, 104, 45, 160, 112, 134, 67, 32, 113, 81, 74, 32, 114, 102, 37, 32, 115, 49, 44, 32, 116, 70, 7, 32, 117, 17, 14, 32, 118, 47, 35, 160, 118, 240, 240, 32, 120, 15, 5, 160, 120, 208, 210, 32, 121, 238, 231, 160, 122, 176, 180, 32, 123, 206, 201, 160, 124, 153, 208, 160, 125, 165, 113, 32, 126, 121, 178, 160, 127, 114, 222, 32, 127, 142, 155, 176, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 3, 255, 255, 243, 160, 0, 0, 255, 255, 241, 240, 0, 4, 0, 0, 14, 16, 1, 8, 0, 0, 0, 0, 0, 13, 76, 77, 84, 0, 45, 48, 49, 0, 87, 69, 83, 84, 0, 87, 69, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 87, 69, 84, 48, 87, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Africa/Freetown": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 146, 230, 146, 72, 0, 1, 255, 255, 252, 56, 0, 0, 0, 0, 0, 0, 0, 4, 76, 77, 84, 0, 71, 77, 84, 0, 0, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Africa/Gaborone": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 130, 70, 197, 244, 0, 1, 0, 0, 30, 140, 0, 0, 0, 0, 28, 32, 0, 4, 76, 77, 84, 0, 67, 65, 84, 0, 0, 0, 0, 0, 10, 67, 65, 84, 45, 50, 10}, + + "zoneinfo/Africa/Harare": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 130, 70, 197, 244, 0, 1, 0, 0, 30, 140, 0, 0, 0, 0, 28, 32, 0, 4, 76, 77, 84, 0, 67, 65, 84, 0, 0, 0, 0, 0, 10, 67, 65, 84, 45, 50, 10}, + + "zoneinfo/Africa/Johannesburg": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 4, 0, 0, 0, 9, 128, 0, 0, 0, 130, 70, 207, 104, 204, 174, 140, 128, 205, 158, 111, 112, 206, 142, 110, 128, 207, 126, 81, 112, 1, 3, 2, 3, 2, 3, 0, 0, 26, 64, 0, 0, 0, 0, 21, 24, 0, 4, 0, 0, 42, 48, 1, 4, 0, 0, 28, 32, 0, 4, 76, 77, 84, 0, 83, 65, 83, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 83, 65, 83, 84, 45, 50, 10}, + + "zoneinfo/Africa/Juba": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 35, 0, 0, 0, 4, 0, 0, 0, 17, 128, 0, 0, 0, 182, 163, 218, 220, 0, 158, 23, 224, 1, 122, 52, 80, 2, 125, 249, 224, 3, 91, 103, 208, 4, 96, 126, 224, 5, 61, 236, 208, 6, 64, 96, 224, 7, 31, 32, 80, 8, 32, 66, 224, 9, 0, 83, 208, 10, 0, 36, 224, 10, 225, 135, 80, 11, 224, 6, 224, 12, 196, 12, 80, 13, 191, 232, 224, 14, 165, 63, 208, 15, 169, 5, 96, 16, 134, 115, 80, 17, 136, 231, 96, 18, 103, 166, 208, 19, 104, 201, 96, 20, 74, 43, 208, 21, 72, 171, 96, 22, 43, 95, 80, 23, 40, 141, 96, 24, 12, 146, 208, 25, 8, 111, 96, 25, 237, 198, 80, 26, 241, 139, 224, 27, 208, 75, 80, 28, 209, 109, 224, 29, 177, 126, 208, 56, 128, 69, 32, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 0, 0, 29, 164, 0, 0, 0, 0, 42, 48, 1, 4, 0, 0, 28, 32, 0, 9, 0, 0, 42, 48, 0, 13, 76, 77, 84, 0, 67, 65, 83, 84, 0, 67, 65, 84, 0, 69, 65, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 65, 84, 45, 51, 10}, + + "zoneinfo/Africa/Kampala": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 177, 238, 218, 252, 180, 194, 154, 208, 199, 145, 71, 216, 237, 47, 225, 212, 0, 1, 2, 3, 1, 0, 0, 34, 132, 0, 0, 0, 0, 42, 48, 0, 4, 0, 0, 35, 40, 0, 8, 0, 0, 38, 172, 0, 14, 0, 0, 42, 48, 0, 4, 76, 77, 84, 0, 69, 65, 84, 0, 43, 48, 50, 51, 48, 0, 43, 48, 50, 52, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 65, 84, 45, 51, 10}, + + "zoneinfo/Africa/Khartoum": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 36, 0, 0, 0, 5, 0, 0, 0, 17, 128, 0, 0, 0, 182, 163, 218, 0, 0, 158, 23, 224, 1, 122, 52, 80, 2, 125, 249, 224, 3, 91, 103, 208, 4, 96, 126, 224, 5, 61, 236, 208, 6, 64, 96, 224, 7, 31, 32, 80, 8, 32, 66, 224, 9, 0, 83, 208, 10, 0, 36, 224, 10, 225, 135, 80, 11, 224, 6, 224, 12, 196, 12, 80, 13, 191, 232, 224, 14, 165, 63, 208, 15, 169, 5, 96, 16, 134, 115, 80, 17, 136, 231, 96, 18, 103, 166, 208, 19, 104, 201, 96, 20, 74, 43, 208, 21, 72, 171, 96, 22, 43, 95, 80, 23, 40, 141, 96, 24, 12, 146, 208, 25, 8, 111, 96, 25, 237, 198, 80, 26, 241, 139, 224, 27, 208, 75, 80, 28, 209, 109, 224, 29, 177, 126, 208, 56, 128, 69, 32, 89, 248, 228, 80, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 0, 0, 30, 128, 0, 0, 0, 0, 42, 48, 1, 4, 0, 0, 28, 32, 0, 9, 0, 0, 42, 48, 0, 13, 0, 0, 28, 32, 0, 9, 76, 77, 84, 0, 67, 65, 83, 84, 0, 67, 65, 84, 0, 69, 65, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 67, 65, 84, 45, 50, 10}, + + "zoneinfo/Africa/Kigali": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 130, 70, 197, 244, 0, 1, 0, 0, 30, 140, 0, 0, 0, 0, 28, 32, 0, 4, 76, 77, 84, 0, 67, 65, 84, 0, 0, 0, 0, 0, 10, 67, 65, 84, 45, 50, 10}, + + "zoneinfo/Africa/Kinshasa": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 161, 81, 243, 80, 0, 1, 0, 0, 3, 48, 0, 0, 0, 0, 14, 16, 0, 4, 76, 77, 84, 0, 87, 65, 84, 0, 0, 0, 0, 0, 10, 87, 65, 84, 45, 49, 10}, + + "zoneinfo/Africa/Lagos": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 161, 81, 243, 80, 0, 1, 0, 0, 3, 48, 0, 0, 0, 0, 14, 16, 0, 4, 76, 77, 84, 0, 87, 65, 84, 0, 0, 0, 0, 0, 10, 87, 65, 84, 45, 49, 10}, + + "zoneinfo/Africa/Libreville": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 161, 81, 243, 80, 0, 1, 0, 0, 3, 48, 0, 0, 0, 0, 14, 16, 0, 4, 76, 77, 84, 0, 87, 65, 84, 0, 0, 0, 0, 0, 10, 87, 65, 84, 45, 49, 10}, + + "zoneinfo/Africa/Lome": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 146, 230, 146, 72, 0, 1, 255, 255, 252, 56, 0, 0, 0, 0, 0, 0, 0, 4, 76, 77, 84, 0, 71, 77, 84, 0, 0, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Africa/Luanda": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 161, 81, 243, 80, 0, 1, 0, 0, 3, 48, 0, 0, 0, 0, 14, 16, 0, 4, 76, 77, 84, 0, 87, 65, 84, 0, 0, 0, 0, 0, 10, 87, 65, 84, 45, 49, 10}, + + "zoneinfo/Africa/Lubumbashi": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 130, 70, 197, 244, 0, 1, 0, 0, 30, 140, 0, 0, 0, 0, 28, 32, 0, 4, 76, 77, 84, 0, 67, 65, 84, 0, 0, 0, 0, 0, 10, 67, 65, 84, 45, 50, 10}, + + "zoneinfo/Africa/Lusaka": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 130, 70, 197, 244, 0, 1, 0, 0, 30, 140, 0, 0, 0, 0, 28, 32, 0, 4, 76, 77, 84, 0, 67, 65, 84, 0, 0, 0, 0, 0, 10, 67, 65, 84, 45, 50, 10}, + + "zoneinfo/Africa/Malabo": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 161, 81, 243, 80, 0, 1, 0, 0, 3, 48, 0, 0, 0, 0, 14, 16, 0, 4, 76, 77, 84, 0, 87, 65, 84, 0, 0, 0, 0, 0, 10, 87, 65, 84, 45, 49, 10}, + + "zoneinfo/Africa/Maputo": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 130, 70, 197, 244, 0, 1, 0, 0, 30, 140, 0, 0, 0, 0, 28, 32, 0, 4, 76, 77, 84, 0, 67, 65, 84, 0, 0, 0, 0, 0, 10, 67, 65, 84, 45, 50, 10}, + + "zoneinfo/Africa/Maseru": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 4, 0, 0, 0, 9, 128, 0, 0, 0, 130, 70, 207, 104, 204, 174, 140, 128, 205, 158, 111, 112, 206, 142, 110, 128, 207, 126, 81, 112, 1, 3, 2, 3, 2, 3, 0, 0, 26, 64, 0, 0, 0, 0, 21, 24, 0, 4, 0, 0, 42, 48, 1, 4, 0, 0, 28, 32, 0, 4, 76, 77, 84, 0, 83, 65, 83, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 83, 65, 83, 84, 45, 50, 10}, + + "zoneinfo/Africa/Mbabane": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 4, 0, 0, 0, 9, 128, 0, 0, 0, 130, 70, 207, 104, 204, 174, 140, 128, 205, 158, 111, 112, 206, 142, 110, 128, 207, 126, 81, 112, 1, 3, 2, 3, 2, 3, 0, 0, 26, 64, 0, 0, 0, 0, 21, 24, 0, 4, 0, 0, 42, 48, 1, 4, 0, 0, 28, 32, 0, 4, 76, 77, 84, 0, 83, 65, 83, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 83, 65, 83, 84, 45, 50, 10}, + + "zoneinfo/Africa/Mogadishu": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 177, 238, 218, 252, 180, 194, 154, 208, 199, 145, 71, 216, 237, 47, 225, 212, 0, 1, 2, 3, 1, 0, 0, 34, 132, 0, 0, 0, 0, 42, 48, 0, 4, 0, 0, 35, 40, 0, 8, 0, 0, 38, 172, 0, 14, 0, 0, 42, 48, 0, 4, 76, 77, 84, 0, 69, 65, 84, 0, 43, 48, 50, 51, 48, 0, 43, 48, 50, 52, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 65, 84, 45, 51, 10}, + + "zoneinfo/Africa/Monrovia": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 12, 128, 0, 0, 0, 160, 95, 108, 156, 3, 202, 90, 110, 1, 2, 3, 255, 255, 245, 228, 0, 0, 255, 255, 245, 228, 0, 4, 255, 255, 245, 146, 0, 4, 0, 0, 0, 0, 0, 8, 76, 77, 84, 0, 77, 77, 84, 0, 71, 77, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Africa/Nairobi": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 177, 238, 218, 252, 180, 194, 154, 208, 199, 145, 71, 216, 237, 47, 225, 212, 0, 1, 2, 3, 1, 0, 0, 34, 132, 0, 0, 0, 0, 42, 48, 0, 4, 0, 0, 35, 40, 0, 8, 0, 0, 38, 172, 0, 14, 0, 0, 42, 48, 0, 4, 76, 77, 84, 0, 69, 65, 84, 0, 43, 48, 50, 51, 48, 0, 43, 48, 50, 52, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 65, 84, 45, 51, 10}, + + "zoneinfo/Africa/Ndjamena": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 3, 0, 0, 0, 13, 128, 0, 0, 0, 146, 230, 128, 100, 18, 102, 113, 112, 19, 38, 222, 96, 0, 1, 2, 1, 0, 0, 14, 28, 0, 0, 0, 0, 14, 16, 0, 4, 0, 0, 28, 32, 1, 8, 76, 77, 84, 0, 87, 65, 84, 0, 87, 65, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 87, 65, 84, 45, 49, 10}, + + "zoneinfo/Africa/Niamey": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 161, 81, 243, 80, 0, 1, 0, 0, 3, 48, 0, 0, 0, 0, 14, 16, 0, 4, 76, 77, 84, 0, 87, 65, 84, 0, 0, 0, 0, 0, 10, 87, 65, 84, 45, 49, 10}, + + "zoneinfo/Africa/Nouakchott": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 146, 230, 146, 72, 0, 1, 255, 255, 252, 56, 0, 0, 0, 0, 0, 0, 0, 4, 76, 77, 84, 0, 71, 77, 84, 0, 0, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Africa/Ouagadougou": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 146, 230, 146, 72, 0, 1, 255, 255, 252, 56, 0, 0, 0, 0, 0, 0, 0, 4, 76, 77, 84, 0, 71, 77, 84, 0, 0, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Africa/Porto-Novo": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 161, 81, 243, 80, 0, 1, 0, 0, 3, 48, 0, 0, 0, 0, 14, 16, 0, 4, 76, 77, 84, 0, 87, 65, 84, 0, 0, 0, 0, 0, 10, 87, 65, 84, 45, 49, 10}, + + "zoneinfo/Africa/Sao_Tome": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 146, 230, 146, 72, 0, 1, 255, 255, 252, 56, 0, 0, 0, 0, 0, 0, 0, 4, 76, 77, 84, 0, 71, 77, 84, 0, 0, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Africa/Timbuktu": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 146, 230, 146, 72, 0, 1, 255, 255, 252, 56, 0, 0, 0, 0, 0, 0, 0, 4, 76, 77, 84, 0, 71, 77, 84, 0, 0, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Africa/Tripoli": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 33, 0, 0, 0, 4, 0, 0, 0, 17, 128, 0, 0, 0, 161, 242, 193, 36, 221, 187, 177, 16, 222, 35, 173, 96, 225, 120, 210, 16, 225, 231, 101, 224, 229, 47, 63, 112, 229, 169, 204, 224, 235, 78, 198, 240, 22, 146, 66, 96, 23, 8, 247, 112, 23, 250, 43, 224, 24, 234, 42, 240, 25, 219, 95, 96, 26, 204, 175, 240, 27, 189, 228, 96, 28, 180, 122, 240, 29, 159, 23, 224, 30, 147, 11, 112, 31, 130, 238, 96, 32, 112, 74, 112, 33, 97, 126, 224, 34, 82, 207, 112, 35, 68, 3, 224, 36, 52, 2, 240, 37, 37, 55, 96, 38, 64, 183, 240, 50, 78, 241, 96, 51, 68, 54, 112, 52, 53, 106, 224, 80, 157, 153, 0, 81, 84, 217, 128, 82, 105, 180, 128, 0, 2, 1, 2, 1, 2, 1, 2, 3, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 1, 3, 2, 1, 3, 0, 0, 12, 92, 0, 0, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 0, 13, 76, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 69, 69, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 69, 84, 45, 50, 10}, + + "zoneinfo/Africa/Tunis": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 34, 0, 0, 0, 6, 0, 0, 0, 17, 128, 0, 0, 0, 145, 96, 80, 79, 198, 58, 136, 224, 199, 88, 158, 96, 199, 219, 34, 224, 202, 226, 84, 224, 203, 173, 105, 240, 204, 231, 75, 16, 205, 169, 23, 144, 205, 194, 22, 0, 205, 204, 176, 16, 206, 162, 53, 0, 207, 146, 52, 16, 208, 137, 227, 224, 209, 114, 22, 16, 210, 78, 22, 96, 13, 199, 223, 240, 14, 137, 172, 112, 15, 170, 100, 240, 16, 116, 26, 112, 34, 163, 58, 240, 35, 60, 40, 240, 36, 44, 25, 240, 37, 28, 10, 240, 38, 60, 195, 112, 39, 5, 39, 112, 66, 116, 13, 240, 67, 60, 128, 0, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 1, 4, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 0, 0, 9, 140, 0, 0, 0, 0, 2, 49, 0, 4, 0, 0, 28, 32, 1, 8, 0, 0, 14, 16, 0, 13, 0, 0, 14, 16, 0, 13, 0, 0, 28, 32, 1, 8, 76, 77, 84, 0, 80, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 10, 67, 69, 84, 45, 49, 10}, + + "zoneinfo/Africa/Windhoek": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 0, 8, 0, 0, 0, 28, 128, 0, 0, 0, 130, 70, 207, 104, 204, 174, 140, 128, 205, 158, 111, 112, 38, 6, 167, 224, 45, 140, 199, 96, 46, 105, 28, 16, 47, 125, 233, 0, 48, 72, 254, 16, 49, 103, 5, 128, 50, 40, 224, 16, 51, 70, 231, 128, 52, 17, 252, 144, 53, 38, 201, 128, 53, 241, 222, 144, 55, 6, 171, 128, 55, 209, 192, 144, 56, 230, 141, 128, 57, 177, 162, 144, 58, 198, 111, 128, 59, 145, 132, 144, 60, 175, 140, 0, 61, 113, 102, 144, 62, 143, 110, 0, 63, 90, 131, 16, 64, 111, 80, 0, 65, 58, 101, 16, 66, 79, 50, 0, 67, 26, 71, 16, 68, 47, 20, 0, 68, 250, 41, 16, 70, 14, 246, 0, 70, 218, 11, 16, 71, 248, 18, 128, 72, 195, 39, 144, 73, 215, 244, 128, 74, 163, 9, 144, 75, 183, 214, 128, 76, 130, 235, 144, 77, 151, 184, 128, 78, 98, 205, 144, 79, 119, 154, 128, 80, 66, 175, 144, 81, 96, 183, 0, 82, 34, 145, 144, 83, 64, 153, 0, 84, 11, 174, 16, 85, 32, 123, 0, 85, 235, 144, 16, 87, 0, 93, 0, 87, 203, 114, 16, 88, 224, 63, 0, 89, 171, 84, 16, 1, 2, 3, 2, 4, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 4, 0, 0, 16, 8, 0, 0, 0, 0, 21, 24, 0, 4, 0, 0, 28, 32, 0, 10, 0, 0, 42, 48, 1, 10, 0, 0, 28, 32, 0, 15, 0, 0, 14, 16, 0, 19, 0, 0, 28, 32, 1, 23, 0, 0, 28, 32, 0, 15, 76, 77, 84, 0, 43, 48, 49, 51, 48, 0, 83, 65, 83, 84, 0, 67, 65, 84, 0, 87, 65, 84, 0, 87, 65, 83, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 67, 65, 84, 45, 50, 10}, + + "zoneinfo/America/Adak": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 144, 0, 0, 0, 9, 0, 0, 0, 33, 128, 0, 0, 0, 203, 137, 68, 208, 210, 35, 244, 112, 210, 97, 80, 64, 250, 210, 85, 176, 254, 184, 113, 80, 255, 168, 84, 64, 0, 152, 83, 80, 1, 136, 54, 64, 2, 120, 53, 80, 3, 113, 82, 192, 4, 97, 81, 208, 5, 81, 52, 192, 6, 65, 51, 208, 7, 49, 22, 192, 7, 141, 109, 208, 9, 16, 248, 192, 9, 173, 233, 80, 10, 240, 218, 192, 11, 224, 217, 208, 12, 217, 247, 64, 13, 192, 187, 208, 14, 185, 217, 64, 15, 169, 216, 80, 16, 153, 187, 64, 17, 137, 186, 80, 18, 121, 157, 64, 19, 105, 156, 80, 20, 89, 127, 64, 21, 73, 126, 80, 22, 57, 97, 64, 23, 41, 96, 80, 24, 34, 125, 192, 25, 9, 66, 80, 26, 2, 95, 192, 26, 43, 34, 32, 26, 242, 80, 192, 27, 226, 51, 176, 28, 210, 50, 192, 29, 194, 21, 176, 30, 178, 20, 192, 31, 161, 247, 176, 32, 118, 71, 64, 33, 129, 217, 176, 34, 86, 41, 64, 35, 106, 246, 48, 36, 54, 11, 64, 37, 74, 216, 48, 38, 21, 237, 64, 39, 42, 186, 48, 39, 255, 9, 192, 41, 10, 156, 48, 41, 222, 235, 192, 42, 234, 126, 48, 43, 190, 205, 192, 44, 211, 154, 176, 45, 158, 175, 192, 46, 179, 124, 176, 47, 126, 145, 192, 48, 147, 94, 176, 49, 103, 174, 64, 50, 115, 64, 176, 51, 71, 144, 64, 52, 83, 34, 176, 53, 39, 114, 64, 54, 51, 4, 176, 55, 7, 84, 64, 56, 28, 33, 48, 56, 231, 54, 64, 57, 252, 3, 48, 58, 199, 24, 64, 59, 219, 229, 48, 60, 176, 52, 192, 61, 187, 199, 48, 62, 144, 22, 192, 63, 155, 169, 48, 64, 111, 248, 192, 65, 132, 197, 176, 66, 79, 218, 192, 67, 100, 167, 176, 68, 47, 188, 192, 69, 68, 137, 176, 69, 243, 239, 64, 71, 45, 166, 48, 71, 211, 209, 64, 73, 13, 136, 48, 73, 179, 179, 64, 74, 237, 106, 48, 75, 156, 207, 192, 76, 214, 134, 176, 77, 124, 177, 192, 78, 182, 104, 176, 79, 92, 147, 192, 80, 150, 74, 176, 81, 60, 117, 192, 82, 118, 44, 176, 83, 28, 87, 192, 84, 86, 14, 176, 84, 252, 57, 192, 86, 53, 240, 176, 86, 229, 86, 64, 88, 31, 13, 48, 88, 197, 56, 64, 89, 254, 239, 48, 90, 165, 26, 64, 91, 222, 209, 48, 92, 132, 252, 64, 93, 190, 179, 48, 94, 100, 222, 64, 95, 158, 149, 48, 96, 77, 250, 192, 97, 135, 177, 176, 98, 45, 220, 192, 99, 103, 147, 176, 100, 13, 190, 192, 101, 71, 117, 176, 101, 237, 160, 192, 103, 39, 87, 176, 103, 205, 130, 192, 105, 7, 57, 176, 105, 173, 100, 192, 106, 231, 27, 176, 107, 150, 129, 64, 108, 208, 56, 48, 109, 118, 99, 64, 110, 176, 26, 48, 111, 86, 69, 64, 112, 143, 252, 48, 113, 54, 39, 64, 114, 111, 222, 48, 115, 22, 9, 64, 116, 79, 192, 48, 116, 255, 37, 192, 118, 56, 220, 176, 118, 223, 7, 192, 120, 24, 190, 176, 120, 190, 233, 192, 121, 248, 160, 176, 122, 158, 203, 192, 123, 216, 130, 176, 124, 126, 173, 192, 125, 184, 100, 176, 126, 94, 143, 192, 127, 152, 70, 176, 1, 2, 3, 1, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 6, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 255, 255, 90, 98, 0, 0, 255, 255, 101, 80, 0, 4, 255, 255, 115, 96, 1, 8, 255, 255, 115, 96, 1, 12, 255, 255, 101, 80, 0, 16, 255, 255, 115, 96, 1, 20, 255, 255, 115, 96, 0, 24, 255, 255, 129, 112, 1, 29, 255, 255, 115, 96, 0, 25, 76, 77, 84, 0, 78, 83, 84, 0, 78, 87, 84, 0, 78, 80, 84, 0, 66, 83, 84, 0, 66, 68, 84, 0, 65, 72, 83, 84, 0, 72, 68, 84, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 10, 72, 83, 84, 49, 48, 72, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Anchorage": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 144, 0, 0, 0, 9, 0, 0, 0, 40, 128, 0, 0, 0, 203, 137, 54, 192, 210, 35, 244, 112, 210, 97, 66, 48, 250, 210, 71, 160, 254, 184, 99, 64, 255, 168, 70, 48, 0, 152, 69, 64, 1, 136, 40, 48, 2, 120, 39, 64, 3, 113, 68, 176, 4, 97, 67, 192, 5, 81, 38, 176, 6, 65, 37, 192, 7, 49, 8, 176, 7, 141, 95, 192, 9, 16, 234, 176, 9, 173, 219, 64, 10, 240, 204, 176, 11, 224, 203, 192, 12, 217, 233, 48, 13, 192, 173, 192, 14, 185, 203, 48, 15, 169, 202, 64, 16, 153, 173, 48, 17, 137, 172, 64, 18, 121, 143, 48, 19, 105, 142, 64, 20, 89, 113, 48, 21, 73, 112, 64, 22, 57, 83, 48, 23, 41, 82, 64, 24, 34, 111, 176, 25, 9, 52, 64, 26, 2, 81, 176, 26, 43, 20, 16, 26, 242, 66, 176, 27, 226, 37, 160, 28, 210, 36, 176, 29, 194, 7, 160, 30, 178, 6, 176, 31, 161, 233, 160, 32, 118, 57, 48, 33, 129, 203, 160, 34, 86, 27, 48, 35, 106, 232, 32, 36, 53, 253, 48, 37, 74, 202, 32, 38, 21, 223, 48, 39, 42, 172, 32, 39, 254, 251, 176, 41, 10, 142, 32, 41, 222, 221, 176, 42, 234, 112, 32, 43, 190, 191, 176, 44, 211, 140, 160, 45, 158, 161, 176, 46, 179, 110, 160, 47, 126, 131, 176, 48, 147, 80, 160, 49, 103, 160, 48, 50, 115, 50, 160, 51, 71, 130, 48, 52, 83, 20, 160, 53, 39, 100, 48, 54, 50, 246, 160, 55, 7, 70, 48, 56, 28, 19, 32, 56, 231, 40, 48, 57, 251, 245, 32, 58, 199, 10, 48, 59, 219, 215, 32, 60, 176, 38, 176, 61, 187, 185, 32, 62, 144, 8, 176, 63, 155, 155, 32, 64, 111, 234, 176, 65, 132, 183, 160, 66, 79, 204, 176, 67, 100, 153, 160, 68, 47, 174, 176, 69, 68, 123, 160, 69, 243, 225, 48, 71, 45, 152, 32, 71, 211, 195, 48, 73, 13, 122, 32, 73, 179, 165, 48, 74, 237, 92, 32, 75, 156, 193, 176, 76, 214, 120, 160, 77, 124, 163, 176, 78, 182, 90, 160, 79, 92, 133, 176, 80, 150, 60, 160, 81, 60, 103, 176, 82, 118, 30, 160, 83, 28, 73, 176, 84, 86, 0, 160, 84, 252, 43, 176, 86, 53, 226, 160, 86, 229, 72, 48, 88, 30, 255, 32, 88, 197, 42, 48, 89, 254, 225, 32, 90, 165, 12, 48, 91, 222, 195, 32, 92, 132, 238, 48, 93, 190, 165, 32, 94, 100, 208, 48, 95, 158, 135, 32, 96, 77, 236, 176, 97, 135, 163, 160, 98, 45, 206, 176, 99, 103, 133, 160, 100, 13, 176, 176, 101, 71, 103, 160, 101, 237, 146, 176, 103, 39, 73, 160, 103, 205, 116, 176, 105, 7, 43, 160, 105, 173, 86, 176, 106, 231, 13, 160, 107, 150, 115, 48, 108, 208, 42, 32, 109, 118, 85, 48, 110, 176, 12, 32, 111, 86, 55, 48, 112, 143, 238, 32, 113, 54, 25, 48, 114, 111, 208, 32, 115, 21, 251, 48, 116, 79, 178, 32, 116, 255, 23, 176, 118, 56, 206, 160, 118, 222, 249, 176, 120, 24, 176, 160, 120, 190, 219, 176, 121, 248, 146, 160, 122, 158, 189, 176, 123, 216, 116, 160, 124, 126, 159, 176, 125, 184, 86, 160, 126, 94, 129, 176, 127, 152, 56, 160, 1, 2, 3, 1, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 6, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 255, 255, 115, 120, 0, 0, 255, 255, 115, 96, 0, 4, 255, 255, 129, 112, 1, 8, 255, 255, 129, 112, 1, 12, 255, 255, 115, 96, 0, 16, 255, 255, 129, 112, 1, 21, 255, 255, 129, 112, 0, 26, 255, 255, 143, 128, 1, 30, 255, 255, 129, 112, 0, 35, 76, 77, 84, 0, 65, 83, 84, 0, 65, 87, 84, 0, 65, 80, 84, 0, 65, 72, 83, 84, 0, 65, 72, 68, 84, 0, 89, 83, 84, 0, 65, 75, 68, 84, 0, 65, 75, 83, 84, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 10, 65, 75, 83, 84, 57, 65, 75, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Anguilla": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 147, 55, 51, 172, 0, 1, 255, 255, 198, 84, 0, 0, 255, 255, 199, 192, 0, 4, 76, 77, 84, 0, 65, 83, 84, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/Antigua": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 147, 55, 51, 172, 0, 1, 255, 255, 198, 84, 0, 0, 255, 255, 199, 192, 0, 4, 76, 77, 84, 0, 65, 83, 84, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/Araguaina": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 150, 170, 116, 48, 184, 15, 73, 224, 184, 253, 64, 160, 185, 241, 52, 48, 186, 222, 116, 32, 218, 56, 174, 48, 218, 235, 250, 48, 220, 25, 225, 176, 220, 185, 89, 32, 221, 251, 21, 48, 222, 155, 222, 32, 223, 221, 154, 48, 224, 84, 51, 32, 244, 151, 255, 176, 245, 5, 94, 32, 246, 192, 100, 48, 247, 14, 30, 160, 248, 81, 44, 48, 248, 199, 197, 32, 250, 10, 210, 176, 250, 168, 248, 160, 251, 236, 6, 48, 252, 139, 125, 160, 29, 201, 142, 48, 30, 120, 215, 160, 31, 160, 53, 176, 32, 51, 207, 160, 33, 129, 105, 48, 34, 11, 200, 160, 35, 88, 16, 176, 35, 226, 112, 32, 37, 55, 242, 176, 37, 212, 199, 32, 48, 128, 121, 48, 49, 29, 77, 160, 50, 87, 32, 176, 51, 6, 106, 32, 52, 56, 84, 48, 52, 248, 193, 32, 54, 32, 31, 48, 54, 207, 104, 160, 55, 246, 198, 176, 56, 184, 133, 32, 57, 223, 227, 48, 58, 143, 44, 160, 59, 200, 255, 176, 60, 111, 14, 160, 61, 196, 145, 48, 62, 78, 240, 160, 80, 131, 101, 48, 81, 32, 57, 160, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 255, 255, 210, 208, 0, 0, 255, 255, 227, 224, 1, 4, 255, 255, 213, 208, 0, 8, 76, 77, 84, 0, 45, 48, 50, 0, 45, 48, 51, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Argentina/Buenos_Aires": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 62, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 162, 146, 143, 48, 182, 123, 82, 64, 183, 26, 201, 176, 184, 30, 143, 64, 184, 212, 112, 48, 186, 23, 125, 192, 186, 181, 163, 176, 187, 248, 177, 64, 188, 150, 215, 48, 189, 217, 228, 192, 190, 120, 10, 176, 191, 187, 24, 64, 192, 90, 143, 176, 193, 157, 157, 64, 194, 59, 195, 48, 195, 126, 208, 192, 196, 28, 246, 176, 197, 96, 4, 64, 197, 254, 42, 48, 199, 65, 55, 192, 199, 224, 175, 48, 200, 129, 148, 64, 202, 77, 161, 176, 202, 238, 134, 192, 206, 77, 255, 48, 206, 176, 237, 192, 211, 41, 53, 176, 212, 67, 100, 192, 244, 61, 8, 48, 244, 159, 246, 192, 245, 5, 108, 48, 246, 50, 16, 64, 246, 230, 159, 176, 248, 19, 67, 192, 248, 199, 211, 48, 249, 244, 119, 64, 250, 211, 54, 176, 251, 195, 53, 192, 252, 188, 83, 48, 253, 172, 82, 64, 254, 156, 53, 48, 255, 140, 52, 64, 7, 163, 74, 176, 8, 36, 111, 160, 35, 148, 181, 176, 36, 16, 148, 160, 37, 55, 242, 176, 37, 240, 118, 160, 39, 33, 15, 48, 39, 208, 88, 160, 41, 0, 241, 48, 41, 176, 58, 160, 42, 224, 211, 48, 43, 153, 87, 32, 55, 246, 198, 176, 56, 191, 42, 176, 71, 119, 9, 176, 71, 220, 127, 32, 72, 250, 162, 176, 73, 188, 97, 32, 127, 255, 255, 255, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 3, 5, 4, 5, 4, 5, 5, 255, 255, 201, 52, 0, 0, 255, 255, 195, 208, 0, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 227, 224, 1, 16, 255, 255, 213, 208, 0, 12, 76, 77, 84, 0, 67, 77, 84, 0, 45, 48, 52, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Argentina/Catamarca": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 62, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 162, 146, 143, 48, 182, 123, 82, 64, 183, 26, 201, 176, 184, 30, 143, 64, 184, 212, 112, 48, 186, 23, 125, 192, 186, 181, 163, 176, 187, 248, 177, 64, 188, 150, 215, 48, 189, 217, 228, 192, 190, 120, 10, 176, 191, 187, 24, 64, 192, 90, 143, 176, 193, 157, 157, 64, 194, 59, 195, 48, 195, 126, 208, 192, 196, 28, 246, 176, 197, 96, 4, 64, 197, 254, 42, 48, 199, 65, 55, 192, 199, 224, 175, 48, 200, 129, 148, 64, 202, 77, 161, 176, 202, 238, 134, 192, 206, 77, 255, 48, 206, 176, 237, 192, 211, 41, 53, 176, 212, 67, 100, 192, 244, 61, 8, 48, 244, 159, 246, 192, 245, 5, 108, 48, 246, 50, 16, 64, 246, 230, 159, 176, 248, 19, 67, 192, 248, 199, 211, 48, 249, 244, 119, 64, 250, 211, 54, 176, 251, 195, 53, 192, 252, 188, 83, 48, 253, 172, 82, 64, 254, 156, 53, 48, 255, 140, 52, 64, 7, 163, 74, 176, 8, 36, 111, 160, 35, 148, 181, 176, 36, 16, 148, 160, 37, 55, 242, 176, 37, 240, 118, 160, 39, 33, 15, 48, 39, 208, 88, 160, 41, 0, 255, 64, 41, 176, 58, 160, 42, 224, 211, 48, 43, 153, 87, 32, 55, 246, 198, 176, 56, 191, 42, 176, 64, 187, 241, 48, 64, 213, 11, 192, 71, 119, 9, 176, 71, 220, 127, 32, 127, 255, 255, 255, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 4, 5, 4, 5, 4, 5, 4, 2, 4, 5, 4, 5, 3, 5, 2, 5, 4, 5, 5, 255, 255, 194, 84, 0, 0, 255, 255, 195, 208, 0, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 227, 224, 1, 16, 255, 255, 213, 208, 0, 12, 76, 77, 84, 0, 67, 77, 84, 0, 45, 48, 52, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Argentina/ComodRivadavia": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 62, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 162, 146, 143, 48, 182, 123, 82, 64, 183, 26, 201, 176, 184, 30, 143, 64, 184, 212, 112, 48, 186, 23, 125, 192, 186, 181, 163, 176, 187, 248, 177, 64, 188, 150, 215, 48, 189, 217, 228, 192, 190, 120, 10, 176, 191, 187, 24, 64, 192, 90, 143, 176, 193, 157, 157, 64, 194, 59, 195, 48, 195, 126, 208, 192, 196, 28, 246, 176, 197, 96, 4, 64, 197, 254, 42, 48, 199, 65, 55, 192, 199, 224, 175, 48, 200, 129, 148, 64, 202, 77, 161, 176, 202, 238, 134, 192, 206, 77, 255, 48, 206, 176, 237, 192, 211, 41, 53, 176, 212, 67, 100, 192, 244, 61, 8, 48, 244, 159, 246, 192, 245, 5, 108, 48, 246, 50, 16, 64, 246, 230, 159, 176, 248, 19, 67, 192, 248, 199, 211, 48, 249, 244, 119, 64, 250, 211, 54, 176, 251, 195, 53, 192, 252, 188, 83, 48, 253, 172, 82, 64, 254, 156, 53, 48, 255, 140, 52, 64, 7, 163, 74, 176, 8, 36, 111, 160, 35, 148, 181, 176, 36, 16, 148, 160, 37, 55, 242, 176, 37, 240, 118, 160, 39, 33, 15, 48, 39, 208, 88, 160, 41, 0, 255, 64, 41, 176, 58, 160, 42, 224, 211, 48, 43, 153, 87, 32, 55, 246, 198, 176, 56, 191, 42, 176, 64, 187, 241, 48, 64, 213, 11, 192, 71, 119, 9, 176, 71, 220, 127, 32, 127, 255, 255, 255, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 4, 5, 4, 5, 4, 5, 4, 2, 4, 5, 4, 5, 3, 5, 2, 5, 4, 5, 5, 255, 255, 194, 84, 0, 0, 255, 255, 195, 208, 0, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 227, 224, 1, 16, 255, 255, 213, 208, 0, 12, 76, 77, 84, 0, 67, 77, 84, 0, 45, 48, 52, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Argentina/Cordoba": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 62, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 162, 146, 143, 48, 182, 123, 82, 64, 183, 26, 201, 176, 184, 30, 143, 64, 184, 212, 112, 48, 186, 23, 125, 192, 186, 181, 163, 176, 187, 248, 177, 64, 188, 150, 215, 48, 189, 217, 228, 192, 190, 120, 10, 176, 191, 187, 24, 64, 192, 90, 143, 176, 193, 157, 157, 64, 194, 59, 195, 48, 195, 126, 208, 192, 196, 28, 246, 176, 197, 96, 4, 64, 197, 254, 42, 48, 199, 65, 55, 192, 199, 224, 175, 48, 200, 129, 148, 64, 202, 77, 161, 176, 202, 238, 134, 192, 206, 77, 255, 48, 206, 176, 237, 192, 211, 41, 53, 176, 212, 67, 100, 192, 244, 61, 8, 48, 244, 159, 246, 192, 245, 5, 108, 48, 246, 50, 16, 64, 246, 230, 159, 176, 248, 19, 67, 192, 248, 199, 211, 48, 249, 244, 119, 64, 250, 211, 54, 176, 251, 195, 53, 192, 252, 188, 83, 48, 253, 172, 82, 64, 254, 156, 53, 48, 255, 140, 52, 64, 7, 163, 74, 176, 8, 36, 111, 160, 35, 148, 181, 176, 36, 16, 148, 160, 37, 55, 242, 176, 37, 240, 118, 160, 39, 33, 15, 48, 39, 208, 88, 160, 41, 0, 255, 64, 41, 176, 58, 160, 42, 224, 211, 48, 43, 153, 87, 32, 55, 246, 198, 176, 56, 191, 42, 176, 71, 119, 9, 176, 71, 220, 127, 32, 72, 250, 162, 176, 73, 188, 97, 32, 127, 255, 255, 255, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 4, 5, 4, 5, 4, 5, 4, 2, 4, 5, 4, 5, 3, 5, 4, 5, 4, 5, 5, 255, 255, 195, 208, 0, 0, 255, 255, 195, 208, 0, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 227, 224, 1, 16, 255, 255, 213, 208, 0, 12, 76, 77, 84, 0, 67, 77, 84, 0, 45, 48, 52, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Argentina/Jujuy": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 60, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 162, 146, 143, 48, 182, 123, 82, 64, 183, 26, 201, 176, 184, 30, 143, 64, 184, 212, 112, 48, 186, 23, 125, 192, 186, 181, 163, 176, 187, 248, 177, 64, 188, 150, 215, 48, 189, 217, 228, 192, 190, 120, 10, 176, 191, 187, 24, 64, 192, 90, 143, 176, 193, 157, 157, 64, 194, 59, 195, 48, 195, 126, 208, 192, 196, 28, 246, 176, 197, 96, 4, 64, 197, 254, 42, 48, 199, 65, 55, 192, 199, 224, 175, 48, 200, 129, 148, 64, 202, 77, 161, 176, 202, 238, 134, 192, 206, 77, 255, 48, 206, 176, 237, 192, 211, 41, 53, 176, 212, 67, 100, 192, 244, 61, 8, 48, 244, 159, 246, 192, 245, 5, 108, 48, 246, 50, 16, 64, 246, 230, 159, 176, 248, 19, 67, 192, 248, 199, 211, 48, 249, 244, 119, 64, 250, 211, 54, 176, 251, 195, 53, 192, 252, 188, 83, 48, 253, 172, 82, 64, 254, 156, 53, 48, 255, 140, 52, 64, 7, 163, 74, 176, 8, 36, 111, 160, 35, 148, 181, 176, 36, 16, 148, 160, 37, 55, 242, 176, 37, 240, 118, 160, 39, 42, 87, 192, 39, 226, 219, 176, 40, 238, 138, 64, 41, 176, 58, 160, 42, 224, 211, 48, 43, 153, 87, 32, 55, 246, 198, 176, 56, 191, 42, 176, 71, 119, 9, 176, 71, 220, 127, 32, 127, 255, 255, 255, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 4, 5, 4, 5, 4, 2, 3, 2, 4, 5, 4, 5, 3, 5, 4, 5, 5, 255, 255, 194, 200, 0, 0, 255, 255, 195, 208, 0, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 227, 224, 1, 16, 255, 255, 213, 208, 0, 12, 76, 77, 84, 0, 67, 77, 84, 0, 45, 48, 52, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Argentina/La_Rioja": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 63, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 162, 146, 143, 48, 182, 123, 82, 64, 183, 26, 201, 176, 184, 30, 143, 64, 184, 212, 112, 48, 186, 23, 125, 192, 186, 181, 163, 176, 187, 248, 177, 64, 188, 150, 215, 48, 189, 217, 228, 192, 190, 120, 10, 176, 191, 187, 24, 64, 192, 90, 143, 176, 193, 157, 157, 64, 194, 59, 195, 48, 195, 126, 208, 192, 196, 28, 246, 176, 197, 96, 4, 64, 197, 254, 42, 48, 199, 65, 55, 192, 199, 224, 175, 48, 200, 129, 148, 64, 202, 77, 161, 176, 202, 238, 134, 192, 206, 77, 255, 48, 206, 176, 237, 192, 211, 41, 53, 176, 212, 67, 100, 192, 244, 61, 8, 48, 244, 159, 246, 192, 245, 5, 108, 48, 246, 50, 16, 64, 246, 230, 159, 176, 248, 19, 67, 192, 248, 199, 211, 48, 249, 244, 119, 64, 250, 211, 54, 176, 251, 195, 53, 192, 252, 188, 83, 48, 253, 172, 82, 64, 254, 156, 53, 48, 255, 140, 52, 64, 7, 163, 74, 176, 8, 36, 111, 160, 35, 148, 181, 176, 36, 16, 148, 160, 37, 55, 242, 176, 37, 240, 118, 160, 39, 33, 15, 48, 39, 205, 181, 160, 40, 38, 38, 64, 41, 0, 241, 48, 41, 176, 58, 160, 42, 224, 211, 48, 43, 153, 87, 32, 55, 246, 198, 176, 56, 191, 42, 176, 64, 187, 241, 48, 64, 213, 11, 192, 71, 119, 9, 176, 71, 220, 127, 32, 127, 255, 255, 255, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 4, 5, 4, 5, 4, 5, 4, 2, 5, 4, 5, 4, 5, 3, 5, 2, 5, 4, 5, 5, 255, 255, 193, 84, 0, 0, 255, 255, 195, 208, 0, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 227, 224, 1, 16, 255, 255, 213, 208, 0, 12, 76, 77, 84, 0, 67, 77, 84, 0, 45, 48, 52, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Argentina/Mendoza": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 62, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 162, 146, 143, 48, 182, 123, 82, 64, 183, 26, 201, 176, 184, 30, 143, 64, 184, 212, 112, 48, 186, 23, 125, 192, 186, 181, 163, 176, 187, 248, 177, 64, 188, 150, 215, 48, 189, 217, 228, 192, 190, 120, 10, 176, 191, 187, 24, 64, 192, 90, 143, 176, 193, 157, 157, 64, 194, 59, 195, 48, 195, 126, 208, 192, 196, 28, 246, 176, 197, 96, 4, 64, 197, 254, 42, 48, 199, 65, 55, 192, 199, 224, 175, 48, 200, 129, 148, 64, 202, 77, 161, 176, 202, 238, 134, 192, 206, 77, 255, 48, 206, 176, 237, 192, 211, 41, 53, 176, 212, 67, 100, 192, 244, 61, 8, 48, 244, 159, 246, 192, 245, 5, 108, 48, 246, 50, 16, 64, 246, 230, 159, 176, 248, 19, 67, 192, 248, 199, 211, 48, 249, 244, 119, 64, 250, 211, 54, 176, 251, 195, 53, 192, 252, 188, 83, 48, 253, 172, 82, 64, 254, 156, 53, 48, 255, 140, 52, 64, 7, 163, 74, 176, 8, 36, 111, 160, 35, 148, 181, 176, 36, 16, 148, 160, 37, 55, 242, 176, 37, 240, 118, 160, 39, 25, 52, 64, 39, 205, 195, 176, 40, 250, 103, 192, 41, 176, 72, 176, 42, 224, 225, 64, 43, 153, 87, 32, 55, 246, 198, 176, 56, 191, 42, 176, 64, 176, 19, 176, 65, 86, 62, 192, 71, 119, 9, 176, 71, 220, 127, 32, 127, 255, 255, 255, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 4, 5, 4, 5, 4, 2, 3, 2, 3, 2, 4, 5, 3, 5, 2, 5, 4, 5, 5, 255, 255, 191, 124, 0, 0, 255, 255, 195, 208, 0, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 227, 224, 1, 16, 255, 255, 213, 208, 0, 12, 76, 77, 84, 0, 67, 77, 84, 0, 45, 48, 52, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Argentina/Rio_Gallegos": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 62, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 162, 146, 143, 48, 182, 123, 82, 64, 183, 26, 201, 176, 184, 30, 143, 64, 184, 212, 112, 48, 186, 23, 125, 192, 186, 181, 163, 176, 187, 248, 177, 64, 188, 150, 215, 48, 189, 217, 228, 192, 190, 120, 10, 176, 191, 187, 24, 64, 192, 90, 143, 176, 193, 157, 157, 64, 194, 59, 195, 48, 195, 126, 208, 192, 196, 28, 246, 176, 197, 96, 4, 64, 197, 254, 42, 48, 199, 65, 55, 192, 199, 224, 175, 48, 200, 129, 148, 64, 202, 77, 161, 176, 202, 238, 134, 192, 206, 77, 255, 48, 206, 176, 237, 192, 211, 41, 53, 176, 212, 67, 100, 192, 244, 61, 8, 48, 244, 159, 246, 192, 245, 5, 108, 48, 246, 50, 16, 64, 246, 230, 159, 176, 248, 19, 67, 192, 248, 199, 211, 48, 249, 244, 119, 64, 250, 211, 54, 176, 251, 195, 53, 192, 252, 188, 83, 48, 253, 172, 82, 64, 254, 156, 53, 48, 255, 140, 52, 64, 7, 163, 74, 176, 8, 36, 111, 160, 35, 148, 181, 176, 36, 16, 148, 160, 37, 55, 242, 176, 37, 240, 118, 160, 39, 33, 15, 48, 39, 208, 88, 160, 41, 0, 241, 48, 41, 176, 58, 160, 42, 224, 211, 48, 43, 153, 87, 32, 55, 246, 198, 176, 56, 191, 42, 176, 64, 187, 241, 48, 64, 213, 11, 192, 71, 119, 9, 176, 71, 220, 127, 32, 127, 255, 255, 255, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 3, 5, 2, 5, 4, 5, 5, 255, 255, 191, 28, 0, 0, 255, 255, 195, 208, 0, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 227, 224, 1, 16, 255, 255, 213, 208, 0, 12, 76, 77, 84, 0, 67, 77, 84, 0, 45, 48, 52, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Argentina/Salta": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 60, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 162, 146, 143, 48, 182, 123, 82, 64, 183, 26, 201, 176, 184, 30, 143, 64, 184, 212, 112, 48, 186, 23, 125, 192, 186, 181, 163, 176, 187, 248, 177, 64, 188, 150, 215, 48, 189, 217, 228, 192, 190, 120, 10, 176, 191, 187, 24, 64, 192, 90, 143, 176, 193, 157, 157, 64, 194, 59, 195, 48, 195, 126, 208, 192, 196, 28, 246, 176, 197, 96, 4, 64, 197, 254, 42, 48, 199, 65, 55, 192, 199, 224, 175, 48, 200, 129, 148, 64, 202, 77, 161, 176, 202, 238, 134, 192, 206, 77, 255, 48, 206, 176, 237, 192, 211, 41, 53, 176, 212, 67, 100, 192, 244, 61, 8, 48, 244, 159, 246, 192, 245, 5, 108, 48, 246, 50, 16, 64, 246, 230, 159, 176, 248, 19, 67, 192, 248, 199, 211, 48, 249, 244, 119, 64, 250, 211, 54, 176, 251, 195, 53, 192, 252, 188, 83, 48, 253, 172, 82, 64, 254, 156, 53, 48, 255, 140, 52, 64, 7, 163, 74, 176, 8, 36, 111, 160, 35, 148, 181, 176, 36, 16, 148, 160, 37, 55, 242, 176, 37, 240, 118, 160, 39, 33, 15, 48, 39, 208, 88, 160, 41, 0, 255, 64, 41, 176, 58, 160, 42, 224, 211, 48, 43, 153, 87, 32, 55, 246, 198, 176, 56, 191, 42, 176, 71, 119, 9, 176, 71, 220, 127, 32, 127, 255, 255, 255, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 4, 5, 4, 5, 4, 5, 4, 2, 4, 5, 4, 5, 3, 5, 4, 5, 5, 255, 255, 194, 172, 0, 0, 255, 255, 195, 208, 0, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 227, 224, 1, 16, 255, 255, 213, 208, 0, 12, 76, 77, 84, 0, 67, 77, 84, 0, 45, 48, 52, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Argentina/San_Juan": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 63, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 162, 146, 143, 48, 182, 123, 82, 64, 183, 26, 201, 176, 184, 30, 143, 64, 184, 212, 112, 48, 186, 23, 125, 192, 186, 181, 163, 176, 187, 248, 177, 64, 188, 150, 215, 48, 189, 217, 228, 192, 190, 120, 10, 176, 191, 187, 24, 64, 192, 90, 143, 176, 193, 157, 157, 64, 194, 59, 195, 48, 195, 126, 208, 192, 196, 28, 246, 176, 197, 96, 4, 64, 197, 254, 42, 48, 199, 65, 55, 192, 199, 224, 175, 48, 200, 129, 148, 64, 202, 77, 161, 176, 202, 238, 134, 192, 206, 77, 255, 48, 206, 176, 237, 192, 211, 41, 53, 176, 212, 67, 100, 192, 244, 61, 8, 48, 244, 159, 246, 192, 245, 5, 108, 48, 246, 50, 16, 64, 246, 230, 159, 176, 248, 19, 67, 192, 248, 199, 211, 48, 249, 244, 119, 64, 250, 211, 54, 176, 251, 195, 53, 192, 252, 188, 83, 48, 253, 172, 82, 64, 254, 156, 53, 48, 255, 140, 52, 64, 7, 163, 74, 176, 8, 36, 111, 160, 35, 148, 181, 176, 36, 16, 148, 160, 37, 55, 242, 176, 37, 240, 118, 160, 39, 33, 15, 48, 39, 205, 181, 160, 40, 38, 38, 64, 41, 0, 241, 48, 41, 176, 58, 160, 42, 224, 211, 48, 43, 153, 87, 32, 55, 246, 198, 176, 56, 191, 42, 176, 64, 186, 159, 176, 65, 3, 48, 64, 71, 119, 9, 176, 71, 220, 127, 32, 127, 255, 255, 255, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 4, 5, 4, 5, 4, 5, 4, 2, 5, 4, 5, 4, 5, 3, 5, 2, 5, 4, 5, 5, 255, 255, 191, 196, 0, 0, 255, 255, 195, 208, 0, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 227, 224, 1, 16, 255, 255, 213, 208, 0, 12, 76, 77, 84, 0, 67, 77, 84, 0, 45, 48, 52, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Argentina/San_Luis": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 63, 0, 0, 0, 7, 0, 0, 0, 20, 128, 0, 0, 0, 162, 146, 143, 48, 182, 123, 82, 64, 183, 26, 201, 176, 184, 30, 143, 64, 184, 212, 112, 48, 186, 23, 125, 192, 186, 181, 163, 176, 187, 248, 177, 64, 188, 150, 215, 48, 189, 217, 228, 192, 190, 120, 10, 176, 191, 187, 24, 64, 192, 90, 143, 176, 193, 157, 157, 64, 194, 59, 195, 48, 195, 126, 208, 192, 196, 28, 246, 176, 197, 96, 4, 64, 197, 254, 42, 48, 199, 65, 55, 192, 199, 224, 175, 48, 200, 129, 148, 64, 202, 77, 161, 176, 202, 238, 134, 192, 206, 77, 255, 48, 206, 176, 237, 192, 211, 41, 53, 176, 212, 67, 100, 192, 244, 61, 8, 48, 244, 159, 246, 192, 245, 5, 108, 48, 246, 50, 16, 64, 246, 230, 159, 176, 248, 19, 67, 192, 248, 199, 211, 48, 249, 244, 119, 64, 250, 211, 54, 176, 251, 195, 53, 192, 252, 188, 83, 48, 253, 172, 82, 64, 254, 156, 53, 48, 255, 140, 52, 64, 7, 163, 74, 176, 8, 36, 111, 160, 35, 148, 181, 176, 36, 16, 148, 160, 37, 55, 242, 176, 37, 253, 165, 160, 39, 25, 52, 64, 39, 205, 195, 176, 40, 71, 27, 192, 55, 246, 198, 176, 56, 191, 42, 176, 64, 186, 159, 176, 65, 3, 48, 64, 71, 119, 9, 176, 71, 147, 252, 160, 71, 211, 82, 176, 72, 241, 118, 64, 73, 179, 52, 176, 74, 209, 88, 64, 127, 255, 255, 255, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 4, 5, 4, 5, 4, 2, 3, 2, 5, 3, 5, 2, 5, 4, 3, 2, 3, 2, 5, 5, 255, 255, 193, 204, 0, 0, 255, 255, 195, 208, 0, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 227, 224, 1, 16, 255, 255, 213, 208, 0, 12, 255, 255, 213, 208, 1, 12, 76, 77, 84, 0, 67, 77, 84, 0, 45, 48, 52, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Argentina/Tucuman": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 162, 146, 143, 48, 182, 123, 82, 64, 183, 26, 201, 176, 184, 30, 143, 64, 184, 212, 112, 48, 186, 23, 125, 192, 186, 181, 163, 176, 187, 248, 177, 64, 188, 150, 215, 48, 189, 217, 228, 192, 190, 120, 10, 176, 191, 187, 24, 64, 192, 90, 143, 176, 193, 157, 157, 64, 194, 59, 195, 48, 195, 126, 208, 192, 196, 28, 246, 176, 197, 96, 4, 64, 197, 254, 42, 48, 199, 65, 55, 192, 199, 224, 175, 48, 200, 129, 148, 64, 202, 77, 161, 176, 202, 238, 134, 192, 206, 77, 255, 48, 206, 176, 237, 192, 211, 41, 53, 176, 212, 67, 100, 192, 244, 61, 8, 48, 244, 159, 246, 192, 245, 5, 108, 48, 246, 50, 16, 64, 246, 230, 159, 176, 248, 19, 67, 192, 248, 199, 211, 48, 249, 244, 119, 64, 250, 211, 54, 176, 251, 195, 53, 192, 252, 188, 83, 48, 253, 172, 82, 64, 254, 156, 53, 48, 255, 140, 52, 64, 7, 163, 74, 176, 8, 36, 111, 160, 35, 148, 181, 176, 36, 16, 148, 160, 37, 55, 242, 176, 37, 240, 118, 160, 39, 33, 15, 48, 39, 208, 88, 160, 41, 0, 255, 64, 41, 176, 58, 160, 42, 224, 211, 48, 43, 153, 87, 32, 55, 246, 198, 176, 56, 191, 42, 176, 64, 187, 241, 48, 64, 203, 209, 64, 71, 119, 9, 176, 71, 220, 127, 32, 72, 250, 162, 176, 73, 188, 97, 32, 127, 255, 255, 255, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 4, 5, 4, 5, 4, 5, 4, 2, 4, 5, 4, 5, 3, 5, 2, 5, 4, 5, 4, 5, 5, 255, 255, 194, 220, 0, 0, 255, 255, 195, 208, 0, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 227, 224, 1, 16, 255, 255, 213, 208, 0, 12, 76, 77, 84, 0, 67, 77, 84, 0, 45, 48, 52, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Argentina/Ushuaia": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 62, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 162, 146, 143, 48, 182, 123, 82, 64, 183, 26, 201, 176, 184, 30, 143, 64, 184, 212, 112, 48, 186, 23, 125, 192, 186, 181, 163, 176, 187, 248, 177, 64, 188, 150, 215, 48, 189, 217, 228, 192, 190, 120, 10, 176, 191, 187, 24, 64, 192, 90, 143, 176, 193, 157, 157, 64, 194, 59, 195, 48, 195, 126, 208, 192, 196, 28, 246, 176, 197, 96, 4, 64, 197, 254, 42, 48, 199, 65, 55, 192, 199, 224, 175, 48, 200, 129, 148, 64, 202, 77, 161, 176, 202, 238, 134, 192, 206, 77, 255, 48, 206, 176, 237, 192, 211, 41, 53, 176, 212, 67, 100, 192, 244, 61, 8, 48, 244, 159, 246, 192, 245, 5, 108, 48, 246, 50, 16, 64, 246, 230, 159, 176, 248, 19, 67, 192, 248, 199, 211, 48, 249, 244, 119, 64, 250, 211, 54, 176, 251, 195, 53, 192, 252, 188, 83, 48, 253, 172, 82, 64, 254, 156, 53, 48, 255, 140, 52, 64, 7, 163, 74, 176, 8, 36, 111, 160, 35, 148, 181, 176, 36, 16, 148, 160, 37, 55, 242, 176, 37, 240, 118, 160, 39, 33, 15, 48, 39, 208, 88, 160, 41, 0, 241, 48, 41, 176, 58, 160, 42, 224, 211, 48, 43, 153, 87, 32, 55, 246, 198, 176, 56, 191, 42, 176, 64, 185, 78, 48, 64, 213, 11, 192, 71, 119, 9, 176, 71, 220, 127, 32, 127, 255, 255, 255, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 3, 5, 2, 5, 4, 5, 5, 255, 255, 191, 248, 0, 0, 255, 255, 195, 208, 0, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 227, 224, 1, 16, 255, 255, 213, 208, 0, 12, 76, 77, 84, 0, 67, 77, 84, 0, 45, 48, 52, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Aruba": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 14, 128, 0, 0, 0, 147, 30, 46, 35, 246, 152, 236, 72, 0, 1, 2, 255, 255, 191, 93, 0, 0, 255, 255, 192, 184, 0, 4, 255, 255, 199, 192, 0, 10, 76, 77, 84, 0, 45, 48, 52, 51, 48, 0, 65, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/Asuncion": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 130, 0, 0, 0, 6, 0, 0, 0, 16, 128, 0, 0, 0, 184, 23, 245, 144, 5, 43, 218, 64, 7, 252, 240, 176, 10, 207, 116, 192, 11, 151, 202, 176, 12, 177, 249, 192, 13, 120, 254, 48, 14, 147, 45, 64, 15, 90, 49, 176, 16, 116, 96, 192, 17, 100, 67, 176, 18, 85, 148, 64, 19, 70, 200, 176, 20, 56, 25, 64, 21, 39, 252, 48, 22, 25, 76, 192, 23, 9, 47, 176, 23, 250, 128, 64, 24, 234, 99, 48, 25, 219, 179, 192, 26, 204, 232, 48, 27, 190, 56, 192, 28, 174, 27, 176, 29, 159, 108, 64, 30, 143, 79, 48, 31, 128, 159, 192, 32, 112, 130, 176, 33, 97, 211, 64, 34, 83, 7, 176, 35, 68, 88, 64, 36, 52, 59, 48, 37, 65, 59, 64, 38, 21, 110, 176, 39, 6, 191, 64, 39, 246, 162, 48, 40, 238, 138, 64, 41, 176, 72, 176, 42, 207, 189, 192, 43, 185, 9, 48, 44, 171, 171, 64, 45, 112, 12, 176, 46, 140, 222, 192, 47, 79, 238, 176, 48, 110, 18, 64, 49, 54, 104, 48, 50, 87, 46, 192, 51, 15, 178, 176, 52, 55, 16, 192, 52, 248, 207, 48, 54, 22, 242, 192, 54, 225, 235, 176, 55, 246, 212, 192, 56, 193, 205, 176, 57, 214, 182, 192, 58, 161, 175, 176, 59, 191, 211, 64, 60, 175, 182, 48, 61, 113, 144, 192, 62, 143, 152, 48, 63, 90, 173, 64, 64, 111, 122, 48, 65, 113, 238, 64, 66, 51, 172, 176, 67, 81, 208, 64, 68, 19, 142, 176, 69, 49, 178, 64, 69, 243, 112, 176, 71, 26, 206, 192, 71, 211, 82, 176, 72, 250, 176, 192, 73, 179, 52, 176, 74, 218, 146, 192, 75, 193, 59, 48, 76, 167, 255, 192, 77, 161, 29, 48, 78, 135, 225, 192, 79, 128, 255, 48, 80, 112, 254, 64, 81, 78, 108, 48, 82, 80, 224, 64, 83, 46, 78, 48, 84, 48, 194, 64, 85, 14, 48, 48, 86, 16, 164, 64, 86, 247, 76, 176, 87, 240, 134, 64, 88, 215, 46, 176, 89, 208, 104, 64, 90, 183, 16, 176, 91, 185, 132, 192, 92, 150, 242, 176, 93, 153, 102, 192, 94, 118, 212, 176, 95, 121, 72, 192, 96, 95, 241, 48, 97, 89, 42, 192, 98, 63, 211, 48, 99, 57, 12, 192, 100, 31, 181, 48, 101, 24, 238, 192, 101, 255, 151, 48, 103, 2, 11, 64, 103, 223, 121, 48, 104, 225, 237, 64, 105, 191, 91, 48, 106, 193, 207, 64, 107, 168, 119, 176, 108, 161, 177, 64, 109, 136, 89, 176, 110, 129, 147, 64, 111, 104, 59, 176, 112, 106, 175, 192, 113, 72, 29, 176, 114, 74, 145, 192, 115, 39, 255, 176, 116, 42, 115, 192, 117, 17, 28, 48, 118, 10, 85, 192, 118, 240, 254, 48, 119, 234, 55, 192, 120, 208, 224, 48, 121, 202, 25, 192, 122, 176, 194, 48, 123, 179, 54, 64, 124, 144, 164, 48, 125, 147, 24, 64, 126, 112, 134, 48, 127, 114, 250, 64, 127, 255, 255, 255, 1, 2, 3, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 4, 255, 255, 201, 240, 0, 0, 255, 255, 201, 240, 0, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 0, 12, 255, 255, 213, 208, 1, 12, 255, 255, 199, 192, 0, 8, 76, 77, 84, 0, 65, 77, 84, 0, 45, 48, 52, 0, 45, 48, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 52, 62, 52, 60, 45, 48, 51, 62, 44, 77, 49, 48, 46, 49, 46, 48, 47, 48, 44, 77, 51, 46, 52, 46, 48, 47, 48, 10}, + + "zoneinfo/America/Atikokan": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 6, 0, 0, 0, 24, 128, 0, 0, 0, 158, 184, 161, 128, 159, 186, 249, 112, 200, 248, 87, 96, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 2, 1, 2, 1, 3, 4, 5, 255, 255, 170, 28, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 0, 20, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 69, 83, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 10, 69, 83, 84, 53, 10}, + + "zoneinfo/America/Atka": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 144, 0, 0, 0, 9, 0, 0, 0, 33, 128, 0, 0, 0, 203, 137, 68, 208, 210, 35, 244, 112, 210, 97, 80, 64, 250, 210, 85, 176, 254, 184, 113, 80, 255, 168, 84, 64, 0, 152, 83, 80, 1, 136, 54, 64, 2, 120, 53, 80, 3, 113, 82, 192, 4, 97, 81, 208, 5, 81, 52, 192, 6, 65, 51, 208, 7, 49, 22, 192, 7, 141, 109, 208, 9, 16, 248, 192, 9, 173, 233, 80, 10, 240, 218, 192, 11, 224, 217, 208, 12, 217, 247, 64, 13, 192, 187, 208, 14, 185, 217, 64, 15, 169, 216, 80, 16, 153, 187, 64, 17, 137, 186, 80, 18, 121, 157, 64, 19, 105, 156, 80, 20, 89, 127, 64, 21, 73, 126, 80, 22, 57, 97, 64, 23, 41, 96, 80, 24, 34, 125, 192, 25, 9, 66, 80, 26, 2, 95, 192, 26, 43, 34, 32, 26, 242, 80, 192, 27, 226, 51, 176, 28, 210, 50, 192, 29, 194, 21, 176, 30, 178, 20, 192, 31, 161, 247, 176, 32, 118, 71, 64, 33, 129, 217, 176, 34, 86, 41, 64, 35, 106, 246, 48, 36, 54, 11, 64, 37, 74, 216, 48, 38, 21, 237, 64, 39, 42, 186, 48, 39, 255, 9, 192, 41, 10, 156, 48, 41, 222, 235, 192, 42, 234, 126, 48, 43, 190, 205, 192, 44, 211, 154, 176, 45, 158, 175, 192, 46, 179, 124, 176, 47, 126, 145, 192, 48, 147, 94, 176, 49, 103, 174, 64, 50, 115, 64, 176, 51, 71, 144, 64, 52, 83, 34, 176, 53, 39, 114, 64, 54, 51, 4, 176, 55, 7, 84, 64, 56, 28, 33, 48, 56, 231, 54, 64, 57, 252, 3, 48, 58, 199, 24, 64, 59, 219, 229, 48, 60, 176, 52, 192, 61, 187, 199, 48, 62, 144, 22, 192, 63, 155, 169, 48, 64, 111, 248, 192, 65, 132, 197, 176, 66, 79, 218, 192, 67, 100, 167, 176, 68, 47, 188, 192, 69, 68, 137, 176, 69, 243, 239, 64, 71, 45, 166, 48, 71, 211, 209, 64, 73, 13, 136, 48, 73, 179, 179, 64, 74, 237, 106, 48, 75, 156, 207, 192, 76, 214, 134, 176, 77, 124, 177, 192, 78, 182, 104, 176, 79, 92, 147, 192, 80, 150, 74, 176, 81, 60, 117, 192, 82, 118, 44, 176, 83, 28, 87, 192, 84, 86, 14, 176, 84, 252, 57, 192, 86, 53, 240, 176, 86, 229, 86, 64, 88, 31, 13, 48, 88, 197, 56, 64, 89, 254, 239, 48, 90, 165, 26, 64, 91, 222, 209, 48, 92, 132, 252, 64, 93, 190, 179, 48, 94, 100, 222, 64, 95, 158, 149, 48, 96, 77, 250, 192, 97, 135, 177, 176, 98, 45, 220, 192, 99, 103, 147, 176, 100, 13, 190, 192, 101, 71, 117, 176, 101, 237, 160, 192, 103, 39, 87, 176, 103, 205, 130, 192, 105, 7, 57, 176, 105, 173, 100, 192, 106, 231, 27, 176, 107, 150, 129, 64, 108, 208, 56, 48, 109, 118, 99, 64, 110, 176, 26, 48, 111, 86, 69, 64, 112, 143, 252, 48, 113, 54, 39, 64, 114, 111, 222, 48, 115, 22, 9, 64, 116, 79, 192, 48, 116, 255, 37, 192, 118, 56, 220, 176, 118, 223, 7, 192, 120, 24, 190, 176, 120, 190, 233, 192, 121, 248, 160, 176, 122, 158, 203, 192, 123, 216, 130, 176, 124, 126, 173, 192, 125, 184, 100, 176, 126, 94, 143, 192, 127, 152, 70, 176, 1, 2, 3, 1, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 6, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 255, 255, 90, 98, 0, 0, 255, 255, 101, 80, 0, 4, 255, 255, 115, 96, 1, 8, 255, 255, 115, 96, 1, 12, 255, 255, 101, 80, 0, 16, 255, 255, 115, 96, 1, 20, 255, 255, 115, 96, 0, 24, 255, 255, 129, 112, 1, 29, 255, 255, 115, 96, 0, 25, 76, 77, 84, 0, 78, 83, 84, 0, 78, 87, 84, 0, 78, 80, 84, 0, 66, 83, 84, 0, 66, 68, 84, 0, 65, 72, 83, 84, 0, 72, 68, 84, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 10, 72, 83, 84, 49, 48, 72, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Bahia": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 63, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 150, 170, 107, 28, 184, 15, 73, 224, 184, 253, 64, 160, 185, 241, 52, 48, 186, 222, 116, 32, 218, 56, 174, 48, 218, 235, 250, 48, 220, 25, 225, 176, 220, 185, 89, 32, 221, 251, 21, 48, 222, 155, 222, 32, 223, 221, 154, 48, 224, 84, 51, 32, 244, 151, 255, 176, 245, 5, 94, 32, 246, 192, 100, 48, 247, 14, 30, 160, 248, 81, 44, 48, 248, 199, 197, 32, 250, 10, 210, 176, 250, 168, 248, 160, 251, 236, 6, 48, 252, 139, 125, 160, 29, 201, 142, 48, 30, 120, 215, 160, 31, 160, 53, 176, 32, 51, 207, 160, 33, 129, 105, 48, 34, 11, 200, 160, 35, 88, 16, 176, 35, 226, 112, 32, 37, 55, 242, 176, 37, 212, 199, 32, 39, 33, 15, 48, 39, 189, 227, 160, 41, 0, 241, 48, 41, 148, 139, 32, 42, 234, 13, 176, 43, 107, 50, 160, 44, 192, 181, 48, 45, 102, 196, 32, 46, 160, 151, 48, 47, 70, 166, 32, 48, 128, 121, 48, 49, 29, 77, 160, 50, 87, 32, 176, 51, 6, 106, 32, 52, 56, 84, 48, 52, 248, 193, 32, 54, 32, 31, 48, 54, 207, 104, 160, 55, 246, 198, 176, 56, 184, 133, 32, 57, 223, 227, 48, 58, 143, 44, 160, 59, 200, 255, 176, 60, 111, 14, 160, 61, 196, 145, 48, 62, 78, 240, 160, 78, 154, 72, 176, 79, 73, 146, 32, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 255, 255, 219, 228, 0, 0, 255, 255, 227, 224, 1, 4, 255, 255, 213, 208, 0, 8, 76, 77, 84, 0, 45, 48, 50, 0, 45, 48, 51, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Bahia_Banderas": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 94, 0, 0, 0, 7, 0, 0, 0, 24, 128, 0, 0, 0, 165, 182, 232, 112, 175, 242, 110, 224, 182, 102, 86, 96, 183, 67, 210, 96, 184, 12, 54, 96, 184, 253, 134, 240, 203, 234, 113, 96, 216, 145, 180, 240, 0, 0, 112, 128, 49, 103, 132, 16, 50, 115, 22, 128, 51, 71, 102, 16, 52, 82, 248, 128, 53, 39, 72, 16, 54, 50, 218, 128, 55, 7, 42, 16, 56, 27, 247, 0, 56, 231, 12, 16, 57, 251, 217, 0, 58, 245, 18, 144, 59, 182, 209, 0, 60, 176, 10, 144, 61, 187, 157, 0, 62, 143, 236, 144, 63, 155, 127, 0, 64, 111, 206, 144, 65, 132, 155, 128, 66, 79, 176, 144, 67, 100, 125, 128, 68, 47, 146, 144, 69, 68, 95, 128, 70, 15, 116, 144, 71, 36, 65, 128, 71, 248, 145, 16, 73, 4, 35, 128, 73, 216, 115, 16, 74, 228, 5, 128, 75, 184, 85, 16, 76, 205, 19, 240, 77, 152, 41, 0, 78, 172, 245, 240, 79, 120, 11, 0, 80, 140, 215, 240, 81, 97, 39, 128, 82, 108, 185, 240, 83, 65, 9, 128, 84, 76, 155, 240, 85, 32, 235, 128, 86, 44, 125, 240, 87, 0, 205, 128, 88, 21, 154, 112, 88, 224, 175, 128, 89, 245, 124, 112, 90, 192, 145, 128, 91, 213, 94, 112, 92, 169, 174, 0, 93, 181, 64, 112, 94, 137, 144, 0, 95, 149, 34, 112, 96, 105, 114, 0, 97, 126, 62, 240, 98, 73, 84, 0, 99, 94, 32, 240, 100, 41, 54, 0, 101, 62, 2, 240, 102, 18, 82, 128, 103, 29, 228, 240, 103, 242, 52, 128, 104, 253, 198, 240, 105, 210, 22, 128, 106, 221, 168, 240, 107, 177, 248, 128, 108, 198, 197, 112, 109, 145, 218, 128, 110, 166, 167, 112, 111, 113, 188, 128, 112, 134, 137, 112, 113, 90, 217, 0, 114, 102, 107, 112, 115, 58, 187, 0, 116, 70, 77, 112, 117, 26, 157, 0, 118, 47, 105, 240, 118, 250, 127, 0, 120, 15, 75, 240, 120, 218, 97, 0, 121, 239, 45, 240, 122, 186, 67, 0, 123, 207, 15, 240, 124, 163, 95, 128, 125, 174, 241, 240, 126, 131, 65, 128, 127, 142, 211, 240, 0, 1, 2, 1, 2, 1, 2, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 255, 255, 157, 84, 0, 0, 255, 255, 157, 144, 0, 4, 255, 255, 171, 160, 0, 8, 255, 255, 143, 128, 0, 12, 255, 255, 171, 160, 1, 16, 255, 255, 185, 176, 1, 20, 255, 255, 171, 160, 0, 8, 76, 77, 84, 0, 77, 83, 84, 0, 67, 83, 84, 0, 80, 83, 84, 0, 77, 68, 84, 0, 67, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 52, 46, 49, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/America/Barbados": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 4, 0, 0, 0, 16, 128, 0, 0, 0, 169, 121, 36, 229, 184, 133, 99, 229, 14, 0, 242, 224, 14, 148, 140, 208, 15, 151, 0, 224, 16, 116, 110, 208, 17, 118, 226, 224, 18, 84, 80, 208, 19, 95, 255, 96, 20, 48, 62, 80, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 255, 255, 200, 27, 0, 0, 255, 255, 200, 27, 0, 4, 255, 255, 213, 208, 1, 8, 255, 255, 199, 192, 0, 12, 76, 77, 84, 0, 66, 77, 84, 0, 65, 68, 84, 0, 65, 83, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/Belem": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 31, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 150, 170, 116, 116, 184, 15, 73, 224, 184, 253, 64, 160, 185, 241, 52, 48, 186, 222, 116, 32, 218, 56, 174, 48, 218, 235, 250, 48, 220, 25, 225, 176, 220, 185, 89, 32, 221, 251, 21, 48, 222, 155, 222, 32, 223, 221, 154, 48, 224, 84, 51, 32, 244, 151, 255, 176, 245, 5, 94, 32, 246, 192, 100, 48, 247, 14, 30, 160, 248, 81, 44, 48, 248, 199, 197, 32, 250, 10, 210, 176, 250, 168, 248, 160, 251, 236, 6, 48, 252, 139, 125, 160, 29, 201, 142, 48, 30, 120, 215, 160, 31, 160, 53, 176, 32, 51, 207, 160, 33, 129, 105, 48, 34, 11, 200, 160, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 255, 255, 210, 140, 0, 0, 255, 255, 227, 224, 1, 4, 255, 255, 213, 208, 0, 8, 76, 77, 84, 0, 45, 48, 50, 0, 45, 48, 51, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Belize": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 56, 0, 0, 0, 4, 0, 0, 0, 18, 128, 0, 0, 0, 147, 94, 217, 176, 159, 159, 59, 224, 160, 69, 81, 216, 161, 127, 29, 224, 162, 46, 110, 88, 163, 94, 255, 224, 164, 14, 80, 88, 165, 62, 225, 224, 165, 238, 50, 88, 167, 39, 254, 96, 167, 206, 20, 88, 169, 7, 224, 96, 169, 173, 246, 88, 170, 231, 194, 96, 171, 151, 18, 216, 172, 199, 164, 96, 173, 118, 244, 216, 174, 167, 134, 96, 175, 86, 214, 216, 176, 135, 104, 96, 177, 54, 184, 216, 178, 112, 132, 224, 179, 22, 154, 216, 180, 80, 102, 224, 180, 246, 124, 216, 182, 48, 72, 224, 182, 223, 153, 88, 184, 16, 42, 224, 184, 191, 123, 88, 185, 240, 12, 224, 186, 159, 93, 88, 187, 217, 41, 96, 188, 127, 63, 88, 189, 185, 11, 96, 190, 95, 33, 88, 191, 152, 237, 96, 192, 63, 3, 88, 193, 120, 207, 96, 194, 40, 31, 216, 195, 88, 177, 96, 196, 8, 1, 216, 197, 56, 147, 96, 197, 231, 227, 216, 199, 33, 175, 224, 199, 199, 197, 216, 201, 1, 145, 224, 201, 167, 167, 216, 202, 225, 115, 224, 203, 144, 196, 88, 204, 193, 85, 224, 205, 112, 166, 88, 7, 98, 219, 96, 7, 185, 208, 80, 24, 97, 113, 96, 24, 171, 55, 80, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 3, 2, 255, 255, 173, 80, 0, 0, 255, 255, 178, 168, 1, 4, 255, 255, 171, 160, 0, 10, 255, 255, 185, 176, 1, 14, 76, 77, 84, 0, 45, 48, 53, 51, 48, 0, 67, 83, 84, 0, 67, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 54, 10}, + + "zoneinfo/America/Blanc-Sablon": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 158, 184, 133, 96, 159, 186, 221, 80, 203, 136, 226, 96, 210, 35, 244, 112, 210, 96, 237, 208, 2, 1, 2, 3, 4, 2, 255, 255, 202, 116, 0, 0, 255, 255, 213, 208, 1, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 213, 208, 1, 16, 76, 77, 84, 0, 65, 68, 84, 0, 65, 83, 84, 0, 65, 87, 84, 0, 65, 80, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/Boa_Vista": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 35, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 150, 170, 127, 224, 184, 15, 87, 240, 184, 253, 78, 176, 185, 241, 66, 64, 186, 222, 130, 48, 218, 56, 188, 64, 218, 236, 8, 64, 220, 25, 239, 192, 220, 185, 103, 48, 221, 251, 35, 64, 222, 155, 236, 48, 223, 221, 168, 64, 224, 84, 65, 48, 244, 152, 13, 192, 245, 5, 108, 48, 246, 192, 114, 64, 247, 14, 44, 176, 248, 81, 58, 64, 248, 199, 211, 48, 250, 10, 224, 192, 250, 169, 6, 176, 251, 236, 20, 64, 252, 139, 139, 176, 29, 201, 156, 64, 30, 120, 229, 176, 31, 160, 67, 192, 32, 51, 221, 176, 33, 129, 119, 64, 34, 11, 214, 176, 55, 246, 212, 192, 56, 184, 147, 48, 57, 223, 241, 64, 57, 233, 29, 176, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 255, 255, 199, 32, 0, 0, 255, 255, 213, 208, 1, 4, 255, 255, 199, 192, 0, 8, 76, 77, 84, 0, 45, 48, 51, 0, 45, 48, 52, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 52, 62, 52, 10}, + + "zoneinfo/America/Bogota": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 4, 0, 0, 0, 16, 128, 0, 0, 0, 152, 88, 85, 112, 42, 3, 115, 80, 43, 190, 93, 64, 127, 255, 255, 255, 1, 3, 2, 3, 3, 255, 255, 186, 144, 0, 0, 255, 255, 186, 144, 0, 4, 255, 255, 199, 192, 1, 8, 255, 255, 185, 176, 0, 12, 76, 77, 84, 0, 66, 77, 84, 0, 45, 48, 52, 0, 45, 48, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 53, 62, 53, 10}, + + "zoneinfo/America/Boise": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 151, 0, 0, 0, 7, 0, 0, 0, 28, 128, 0, 0, 0, 158, 166, 72, 160, 159, 187, 21, 144, 160, 134, 42, 160, 161, 154, 247, 144, 168, 70, 76, 32, 203, 137, 12, 144, 210, 35, 244, 112, 210, 97, 24, 0, 250, 248, 117, 16, 251, 232, 88, 0, 252, 216, 87, 16, 253, 200, 58, 0, 254, 184, 57, 16, 255, 168, 28, 0, 0, 152, 27, 16, 1, 135, 254, 0, 2, 119, 253, 16, 3, 113, 26, 128, 4, 97, 25, 144, 5, 80, 252, 128, 6, 64, 251, 144, 7, 48, 222, 128, 7, 178, 31, 144, 9, 16, 192, 128, 9, 173, 177, 16, 10, 240, 162, 128, 11, 224, 161, 144, 12, 217, 191, 0, 13, 192, 131, 144, 14, 185, 161, 0, 15, 169, 160, 16, 16, 153, 131, 0, 17, 137, 130, 16, 18, 121, 101, 0, 19, 105, 100, 16, 20, 89, 71, 0, 21, 73, 70, 16, 22, 57, 41, 0, 23, 41, 40, 16, 24, 34, 69, 128, 25, 9, 10, 16, 26, 2, 39, 128, 26, 242, 38, 144, 27, 226, 9, 128, 28, 210, 8, 144, 29, 193, 235, 128, 30, 177, 234, 144, 31, 161, 205, 128, 32, 118, 29, 16, 33, 129, 175, 128, 34, 85, 255, 16, 35, 106, 204, 0, 36, 53, 225, 16, 37, 74, 174, 0, 38, 21, 195, 16, 39, 42, 144, 0, 39, 254, 223, 144, 41, 10, 114, 0, 41, 222, 193, 144, 42, 234, 84, 0, 43, 190, 163, 144, 44, 211, 112, 128, 45, 158, 133, 144, 46, 179, 82, 128, 47, 126, 103, 144, 48, 147, 52, 128, 49, 103, 132, 16, 50, 115, 22, 128, 51, 71, 102, 16, 52, 82, 248, 128, 53, 39, 72, 16, 54, 50, 218, 128, 55, 7, 42, 16, 56, 27, 247, 0, 56, 231, 12, 16, 57, 251, 217, 0, 58, 198, 238, 16, 59, 219, 187, 0, 60, 176, 10, 144, 61, 187, 157, 0, 62, 143, 236, 144, 63, 155, 127, 0, 64, 111, 206, 144, 65, 132, 155, 128, 66, 79, 176, 144, 67, 100, 125, 128, 68, 47, 146, 144, 69, 68, 95, 128, 69, 243, 197, 16, 71, 45, 124, 0, 71, 211, 167, 16, 73, 13, 94, 0, 73, 179, 137, 16, 74, 237, 64, 0, 75, 156, 165, 144, 76, 214, 92, 128, 77, 124, 135, 144, 78, 182, 62, 128, 79, 92, 105, 144, 80, 150, 32, 128, 81, 60, 75, 144, 82, 118, 2, 128, 83, 28, 45, 144, 84, 85, 228, 128, 84, 252, 15, 144, 86, 53, 198, 128, 86, 229, 44, 16, 88, 30, 227, 0, 88, 197, 14, 16, 89, 254, 197, 0, 90, 164, 240, 16, 91, 222, 167, 0, 92, 132, 210, 16, 93, 190, 137, 0, 94, 100, 180, 16, 95, 158, 107, 0, 96, 77, 208, 144, 97, 135, 135, 128, 98, 45, 178, 144, 99, 103, 105, 128, 100, 13, 148, 144, 101, 71, 75, 128, 101, 237, 118, 144, 103, 39, 45, 128, 103, 205, 88, 144, 105, 7, 15, 128, 105, 173, 58, 144, 106, 230, 241, 128, 107, 150, 87, 16, 108, 208, 14, 0, 109, 118, 57, 16, 110, 175, 240, 0, 111, 86, 27, 16, 112, 143, 210, 0, 113, 53, 253, 16, 114, 111, 180, 0, 115, 21, 223, 16, 116, 79, 150, 0, 116, 254, 251, 144, 118, 56, 178, 128, 118, 222, 221, 144, 120, 24, 148, 128, 120, 190, 191, 144, 121, 248, 118, 128, 122, 158, 161, 144, 123, 216, 88, 128, 124, 126, 131, 144, 125, 184, 58, 128, 126, 94, 101, 144, 127, 152, 28, 128, 2, 1, 2, 1, 2, 5, 3, 4, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 255, 255, 147, 15, 0, 0, 255, 255, 157, 144, 1, 4, 255, 255, 143, 128, 0, 8, 255, 255, 171, 160, 1, 12, 255, 255, 171, 160, 1, 16, 255, 255, 157, 144, 0, 20, 255, 255, 171, 160, 1, 24, 76, 77, 84, 0, 80, 68, 84, 0, 80, 83, 84, 0, 77, 87, 84, 0, 77, 80, 84, 0, 77, 83, 84, 0, 77, 68, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 10, 77, 83, 84, 55, 77, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Buenos_Aires": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 62, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 162, 146, 143, 48, 182, 123, 82, 64, 183, 26, 201, 176, 184, 30, 143, 64, 184, 212, 112, 48, 186, 23, 125, 192, 186, 181, 163, 176, 187, 248, 177, 64, 188, 150, 215, 48, 189, 217, 228, 192, 190, 120, 10, 176, 191, 187, 24, 64, 192, 90, 143, 176, 193, 157, 157, 64, 194, 59, 195, 48, 195, 126, 208, 192, 196, 28, 246, 176, 197, 96, 4, 64, 197, 254, 42, 48, 199, 65, 55, 192, 199, 224, 175, 48, 200, 129, 148, 64, 202, 77, 161, 176, 202, 238, 134, 192, 206, 77, 255, 48, 206, 176, 237, 192, 211, 41, 53, 176, 212, 67, 100, 192, 244, 61, 8, 48, 244, 159, 246, 192, 245, 5, 108, 48, 246, 50, 16, 64, 246, 230, 159, 176, 248, 19, 67, 192, 248, 199, 211, 48, 249, 244, 119, 64, 250, 211, 54, 176, 251, 195, 53, 192, 252, 188, 83, 48, 253, 172, 82, 64, 254, 156, 53, 48, 255, 140, 52, 64, 7, 163, 74, 176, 8, 36, 111, 160, 35, 148, 181, 176, 36, 16, 148, 160, 37, 55, 242, 176, 37, 240, 118, 160, 39, 33, 15, 48, 39, 208, 88, 160, 41, 0, 241, 48, 41, 176, 58, 160, 42, 224, 211, 48, 43, 153, 87, 32, 55, 246, 198, 176, 56, 191, 42, 176, 71, 119, 9, 176, 71, 220, 127, 32, 72, 250, 162, 176, 73, 188, 97, 32, 127, 255, 255, 255, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 3, 5, 4, 5, 4, 5, 5, 255, 255, 201, 52, 0, 0, 255, 255, 195, 208, 0, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 227, 224, 1, 16, 255, 255, 213, 208, 0, 12, 76, 77, 84, 0, 67, 77, 84, 0, 45, 48, 52, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Cambridge_Bay": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 124, 0, 0, 0, 11, 0, 0, 0, 37, 128, 0, 0, 0, 161, 242, 205, 128, 203, 137, 12, 144, 210, 35, 244, 112, 210, 97, 24, 0, 247, 47, 90, 112, 248, 40, 133, 240, 19, 105, 100, 16, 20, 89, 71, 0, 21, 73, 70, 16, 22, 57, 41, 0, 23, 41, 40, 16, 24, 34, 69, 128, 25, 9, 10, 16, 26, 2, 39, 128, 26, 242, 38, 144, 27, 226, 9, 128, 28, 210, 8, 144, 29, 193, 235, 128, 30, 177, 234, 144, 31, 161, 205, 128, 32, 118, 29, 16, 33, 129, 175, 128, 34, 85, 255, 16, 35, 106, 204, 0, 36, 53, 225, 16, 37, 74, 174, 0, 38, 21, 195, 16, 39, 42, 144, 0, 39, 254, 223, 144, 41, 10, 114, 0, 41, 222, 193, 144, 42, 234, 84, 0, 43, 190, 163, 144, 44, 211, 112, 128, 45, 158, 133, 144, 46, 179, 82, 128, 47, 126, 103, 144, 48, 147, 52, 128, 49, 103, 132, 16, 50, 115, 22, 128, 51, 71, 102, 16, 52, 82, 248, 128, 53, 39, 72, 16, 54, 50, 218, 128, 55, 7, 42, 16, 56, 27, 247, 0, 56, 230, 254, 0, 57, 251, 202, 240, 58, 4, 233, 80, 58, 198, 238, 16, 59, 219, 187, 0, 60, 176, 10, 144, 61, 187, 157, 0, 62, 143, 236, 144, 63, 155, 127, 0, 64, 111, 206, 144, 65, 132, 155, 128, 66, 79, 176, 144, 67, 100, 125, 128, 68, 47, 146, 144, 69, 68, 95, 128, 69, 243, 197, 16, 71, 45, 124, 0, 71, 211, 167, 16, 73, 13, 94, 0, 73, 179, 137, 16, 74, 237, 64, 0, 75, 156, 165, 144, 76, 214, 92, 128, 77, 124, 135, 144, 78, 182, 62, 128, 79, 92, 105, 144, 80, 150, 32, 128, 81, 60, 75, 144, 82, 118, 2, 128, 83, 28, 45, 144, 84, 85, 228, 128, 84, 252, 15, 144, 86, 53, 198, 128, 86, 229, 44, 16, 88, 30, 227, 0, 88, 197, 14, 16, 89, 254, 197, 0, 90, 164, 240, 16, 91, 222, 167, 0, 92, 132, 210, 16, 93, 190, 137, 0, 94, 100, 180, 16, 95, 158, 107, 0, 96, 77, 208, 144, 97, 135, 135, 128, 98, 45, 178, 144, 99, 103, 105, 128, 100, 13, 148, 144, 101, 71, 75, 128, 101, 237, 118, 144, 103, 39, 45, 128, 103, 205, 88, 144, 105, 7, 15, 128, 105, 173, 58, 144, 106, 230, 241, 128, 107, 150, 87, 16, 108, 208, 14, 0, 109, 118, 57, 16, 110, 175, 240, 0, 111, 86, 27, 16, 112, 143, 210, 0, 113, 53, 253, 16, 114, 111, 180, 0, 115, 21, 223, 16, 116, 79, 150, 0, 116, 254, 251, 144, 118, 56, 178, 128, 118, 222, 221, 144, 120, 24, 148, 128, 120, 190, 191, 144, 121, 248, 118, 128, 122, 158, 161, 144, 123, 216, 88, 128, 124, 126, 131, 144, 125, 184, 58, 128, 126, 94, 101, 144, 127, 152, 28, 128, 0, 3, 1, 2, 3, 4, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 7, 6, 8, 7, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 0, 0, 0, 0, 0, 0, 255, 255, 171, 160, 1, 4, 255, 255, 171, 160, 1, 8, 255, 255, 157, 144, 0, 12, 255, 255, 185, 176, 1, 16, 255, 255, 171, 160, 1, 21, 255, 255, 185, 176, 1, 25, 255, 255, 171, 160, 0, 29, 255, 255, 185, 176, 0, 33, 255, 255, 171, 160, 1, 21, 255, 255, 157, 144, 0, 12, 45, 48, 48, 0, 77, 87, 84, 0, 77, 80, 84, 0, 77, 83, 84, 0, 77, 68, 68, 84, 0, 77, 68, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 69, 83, 84, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 10, 77, 83, 84, 55, 77, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Campo_Grande": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 129, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 150, 170, 122, 52, 184, 15, 87, 240, 184, 253, 78, 176, 185, 241, 66, 64, 186, 222, 130, 48, 218, 56, 188, 64, 218, 236, 8, 64, 220, 25, 239, 192, 220, 185, 103, 48, 221, 251, 35, 64, 222, 155, 236, 48, 223, 221, 168, 64, 224, 84, 65, 48, 244, 152, 13, 192, 245, 5, 108, 48, 246, 192, 114, 64, 247, 14, 44, 176, 248, 81, 58, 64, 248, 199, 211, 48, 250, 10, 224, 192, 250, 169, 6, 176, 251, 236, 20, 64, 252, 139, 139, 176, 29, 201, 156, 64, 30, 120, 229, 176, 31, 160, 67, 192, 32, 51, 221, 176, 33, 129, 119, 64, 34, 11, 214, 176, 35, 88, 30, 192, 35, 226, 126, 48, 37, 56, 0, 192, 37, 212, 213, 48, 39, 33, 29, 64, 39, 189, 241, 176, 41, 0, 255, 64, 41, 148, 153, 48, 42, 234, 27, 192, 43, 107, 64, 176, 44, 192, 195, 64, 45, 102, 210, 48, 46, 160, 165, 64, 47, 70, 180, 48, 48, 128, 135, 64, 49, 29, 91, 176, 50, 87, 46, 192, 51, 6, 120, 48, 52, 56, 98, 64, 52, 248, 207, 48, 54, 32, 45, 64, 54, 207, 118, 176, 55, 246, 212, 192, 56, 184, 147, 48, 57, 223, 241, 64, 58, 143, 58, 176, 59, 201, 13, 192, 60, 111, 28, 176, 61, 196, 159, 64, 62, 78, 254, 176, 63, 146, 12, 64, 64, 46, 224, 176, 65, 135, 6, 64, 66, 23, 253, 48, 67, 81, 208, 64, 67, 247, 223, 48, 69, 77, 97, 192, 69, 224, 251, 176, 71, 17, 148, 64, 71, 183, 163, 48, 72, 250, 176, 192, 73, 151, 133, 48, 74, 218, 146, 192, 75, 128, 161, 176, 76, 186, 116, 192, 77, 96, 131, 176, 78, 154, 86, 192, 79, 73, 160, 48, 80, 131, 115, 64, 81, 32, 71, 176, 82, 99, 85, 64, 83, 0, 41, 176, 84, 67, 55, 64, 84, 233, 70, 48, 86, 35, 25, 64, 86, 201, 40, 48, 88, 2, 251, 64, 88, 169, 10, 48, 89, 226, 221, 64, 90, 136, 236, 48, 91, 203, 249, 192, 92, 104, 206, 48, 93, 171, 219, 192, 94, 72, 176, 48, 95, 139, 189, 192, 96, 49, 204, 176, 97, 107, 159, 192, 98, 17, 174, 176, 99, 75, 129, 192, 99, 250, 203, 48, 101, 43, 99, 192, 101, 209, 114, 176, 103, 20, 128, 64, 103, 177, 84, 176, 104, 244, 98, 64, 105, 154, 113, 48, 106, 212, 68, 64, 107, 122, 83, 48, 108, 180, 38, 64, 109, 90, 53, 48, 110, 148, 8, 64, 111, 58, 23, 48, 112, 125, 36, 192, 113, 25, 249, 48, 114, 93, 6, 192, 114, 249, 219, 48, 116, 60, 232, 192, 116, 217, 189, 48, 118, 28, 202, 192, 118, 194, 217, 176, 119, 252, 172, 192, 120, 171, 246, 48, 121, 220, 142, 192, 122, 130, 157, 176, 123, 197, 171, 64, 124, 98, 127, 176, 125, 165, 141, 64, 126, 75, 156, 48, 127, 133, 111, 64, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 255, 255, 204, 204, 0, 0, 255, 255, 213, 208, 1, 4, 255, 255, 199, 192, 0, 8, 76, 77, 84, 0, 45, 48, 51, 0, 45, 48, 52, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 52, 62, 52, 60, 45, 48, 51, 62, 44, 77, 49, 48, 46, 51, 46, 48, 47, 48, 44, 77, 50, 46, 51, 46, 48, 47, 48, 10}, + + "zoneinfo/America/Cancun": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 43, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 165, 182, 218, 96, 22, 134, 213, 96, 49, 103, 103, 240, 50, 114, 250, 96, 51, 71, 73, 240, 52, 82, 220, 96, 53, 39, 43, 240, 53, 196, 0, 96, 54, 50, 204, 112, 55, 7, 28, 0, 56, 27, 232, 240, 56, 230, 254, 0, 57, 251, 202, 240, 58, 245, 4, 128, 59, 182, 194, 240, 60, 175, 252, 128, 61, 187, 142, 240, 62, 143, 222, 128, 63, 155, 112, 240, 64, 111, 192, 128, 65, 132, 141, 112, 66, 79, 162, 128, 67, 100, 111, 112, 68, 47, 132, 128, 69, 68, 81, 112, 70, 15, 102, 128, 71, 36, 51, 112, 71, 248, 131, 0, 73, 4, 21, 112, 73, 216, 101, 0, 74, 227, 247, 112, 75, 184, 71, 0, 76, 205, 19, 240, 77, 152, 41, 0, 78, 172, 245, 240, 79, 120, 11, 0, 80, 140, 215, 240, 81, 97, 39, 128, 82, 108, 185, 240, 83, 65, 9, 128, 84, 76, 155, 240, 84, 205, 221, 0, 0, 1, 3, 2, 3, 2, 3, 2, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 3, 255, 255, 174, 168, 0, 0, 255, 255, 171, 160, 0, 4, 255, 255, 199, 192, 1, 8, 255, 255, 185, 176, 0, 12, 255, 255, 185, 176, 1, 16, 76, 77, 84, 0, 67, 83, 84, 0, 69, 68, 84, 0, 69, 83, 84, 0, 67, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 83, 84, 53, 10}, + + "zoneinfo/America/Caracas": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 4, 0, 0, 0, 18, 128, 0, 0, 0, 147, 30, 44, 60, 246, 152, 236, 72, 71, 91, 146, 112, 87, 37, 169, 112, 127, 255, 255, 255, 1, 2, 3, 2, 3, 3, 255, 255, 193, 64, 0, 0, 255, 255, 193, 68, 0, 4, 255, 255, 192, 184, 0, 8, 255, 255, 199, 192, 0, 14, 76, 77, 84, 0, 67, 77, 84, 0, 45, 48, 52, 51, 48, 0, 45, 48, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 52, 62, 52, 10}, + + "zoneinfo/America/Catamarca": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 62, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 162, 146, 143, 48, 182, 123, 82, 64, 183, 26, 201, 176, 184, 30, 143, 64, 184, 212, 112, 48, 186, 23, 125, 192, 186, 181, 163, 176, 187, 248, 177, 64, 188, 150, 215, 48, 189, 217, 228, 192, 190, 120, 10, 176, 191, 187, 24, 64, 192, 90, 143, 176, 193, 157, 157, 64, 194, 59, 195, 48, 195, 126, 208, 192, 196, 28, 246, 176, 197, 96, 4, 64, 197, 254, 42, 48, 199, 65, 55, 192, 199, 224, 175, 48, 200, 129, 148, 64, 202, 77, 161, 176, 202, 238, 134, 192, 206, 77, 255, 48, 206, 176, 237, 192, 211, 41, 53, 176, 212, 67, 100, 192, 244, 61, 8, 48, 244, 159, 246, 192, 245, 5, 108, 48, 246, 50, 16, 64, 246, 230, 159, 176, 248, 19, 67, 192, 248, 199, 211, 48, 249, 244, 119, 64, 250, 211, 54, 176, 251, 195, 53, 192, 252, 188, 83, 48, 253, 172, 82, 64, 254, 156, 53, 48, 255, 140, 52, 64, 7, 163, 74, 176, 8, 36, 111, 160, 35, 148, 181, 176, 36, 16, 148, 160, 37, 55, 242, 176, 37, 240, 118, 160, 39, 33, 15, 48, 39, 208, 88, 160, 41, 0, 255, 64, 41, 176, 58, 160, 42, 224, 211, 48, 43, 153, 87, 32, 55, 246, 198, 176, 56, 191, 42, 176, 64, 187, 241, 48, 64, 213, 11, 192, 71, 119, 9, 176, 71, 220, 127, 32, 127, 255, 255, 255, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 4, 5, 4, 5, 4, 5, 4, 2, 4, 5, 4, 5, 3, 5, 2, 5, 4, 5, 5, 255, 255, 194, 84, 0, 0, 255, 255, 195, 208, 0, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 227, 224, 1, 16, 255, 255, 213, 208, 0, 12, 76, 77, 84, 0, 67, 77, 84, 0, 45, 48, 52, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Cayenne": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 145, 244, 43, 144, 251, 195, 53, 192, 127, 255, 255, 255, 0, 1, 2, 2, 255, 255, 206, 240, 0, 0, 255, 255, 199, 192, 0, 4, 255, 255, 213, 208, 0, 8, 76, 77, 84, 0, 45, 48, 52, 0, 45, 48, 51, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Cayman": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 139, 244, 97, 232, 1, 2, 255, 255, 181, 112, 0, 0, 255, 255, 181, 24, 0, 4, 255, 255, 185, 176, 0, 8, 76, 77, 84, 0, 67, 77, 84, 0, 69, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 69, 83, 84, 53, 10}, + + "zoneinfo/America/Chicago": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 236, 0, 0, 0, 7, 0, 0, 0, 24, 128, 0, 0, 0, 158, 166, 44, 128, 159, 186, 249, 112, 160, 134, 14, 128, 161, 154, 219, 112, 162, 203, 116, 0, 163, 131, 247, 240, 164, 69, 210, 128, 165, 99, 217, 240, 166, 83, 217, 0, 167, 21, 151, 112, 168, 51, 187, 0, 168, 254, 179, 240, 170, 19, 157, 0, 170, 222, 149, 240, 171, 243, 127, 0, 172, 190, 119, 240, 173, 211, 97, 0, 174, 158, 89, 240, 175, 179, 67, 0, 176, 126, 59, 240, 177, 156, 95, 128, 178, 103, 88, 112, 179, 124, 65, 128, 180, 71, 58, 112, 181, 92, 35, 128, 182, 39, 28, 112, 183, 60, 5, 128, 184, 6, 254, 112, 185, 27, 231, 128, 185, 230, 224, 112, 187, 5, 4, 0, 187, 198, 194, 112, 188, 228, 230, 0, 189, 175, 222, 240, 190, 196, 200, 0, 191, 143, 192, 240, 192, 90, 214, 0, 193, 176, 60, 112, 194, 132, 140, 0, 195, 79, 132, 240, 196, 100, 110, 0, 197, 47, 102, 240, 198, 77, 138, 128, 199, 15, 72, 240, 200, 45, 108, 128, 200, 248, 101, 112, 202, 13, 78, 128, 202, 216, 71, 112, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 211, 117, 243, 0, 212, 64, 235, 240, 213, 85, 213, 0, 214, 32, 205, 240, 215, 53, 183, 0, 216, 0, 175, 240, 217, 21, 153, 0, 217, 224, 145, 240, 218, 254, 181, 128, 219, 192, 115, 240, 220, 222, 151, 128, 221, 169, 144, 112, 222, 190, 121, 128, 223, 137, 114, 112, 224, 158, 91, 128, 225, 105, 84, 112, 226, 126, 61, 128, 227, 73, 54, 112, 228, 94, 31, 128, 229, 87, 60, 240, 230, 71, 60, 0, 231, 55, 30, 240, 232, 39, 30, 0, 233, 23, 0, 240, 234, 7, 0, 0, 234, 246, 226, 240, 235, 230, 226, 0, 236, 214, 196, 240, 237, 198, 196, 0, 238, 191, 225, 112, 239, 175, 224, 128, 240, 159, 195, 112, 241, 143, 194, 128, 242, 127, 165, 112, 243, 111, 164, 128, 244, 95, 135, 112, 245, 79, 134, 128, 246, 63, 105, 112, 247, 47, 104, 128, 248, 40, 133, 240, 249, 15, 74, 128, 250, 8, 103, 240, 250, 248, 103, 0, 251, 232, 73, 240, 252, 216, 73, 0, 253, 200, 43, 240, 254, 184, 43, 0, 255, 168, 13, 240, 0, 152, 13, 0, 1, 135, 239, 240, 2, 119, 239, 0, 3, 113, 12, 112, 4, 97, 11, 128, 5, 80, 238, 112, 6, 64, 237, 128, 7, 48, 208, 112, 7, 141, 39, 128, 9, 16, 178, 112, 9, 173, 163, 0, 10, 240, 148, 112, 11, 224, 147, 128, 12, 217, 176, 240, 13, 192, 117, 128, 14, 185, 146, 240, 15, 169, 146, 0, 16, 153, 116, 240, 17, 137, 116, 0, 18, 121, 86, 240, 19, 105, 86, 0, 20, 89, 56, 240, 21, 73, 56, 0, 22, 57, 26, 240, 23, 41, 26, 0, 24, 34, 55, 112, 25, 8, 252, 0, 26, 2, 25, 112, 26, 242, 24, 128, 27, 225, 251, 112, 28, 209, 250, 128, 29, 193, 221, 112, 30, 177, 220, 128, 31, 161, 191, 112, 32, 118, 15, 0, 33, 129, 161, 112, 34, 85, 241, 0, 35, 106, 189, 240, 36, 53, 211, 0, 37, 74, 159, 240, 38, 21, 181, 0, 39, 42, 129, 240, 39, 254, 209, 128, 41, 10, 99, 240, 41, 222, 179, 128, 42, 234, 69, 240, 43, 190, 149, 128, 44, 211, 98, 112, 45, 158, 119, 128, 46, 179, 68, 112, 47, 126, 89, 128, 48, 147, 38, 112, 49, 103, 118, 0, 50, 115, 8, 112, 51, 71, 88, 0, 52, 82, 234, 112, 53, 39, 58, 0, 54, 50, 204, 112, 55, 7, 28, 0, 56, 27, 232, 240, 56, 230, 254, 0, 57, 251, 202, 240, 58, 198, 224, 0, 59, 219, 172, 240, 60, 175, 252, 128, 61, 187, 142, 240, 62, 143, 222, 128, 63, 155, 112, 240, 64, 111, 192, 128, 65, 132, 141, 112, 66, 79, 162, 128, 67, 100, 111, 112, 68, 47, 132, 128, 69, 68, 81, 112, 69, 243, 183, 0, 71, 45, 109, 240, 71, 211, 153, 0, 73, 13, 79, 240, 73, 179, 123, 0, 74, 237, 49, 240, 75, 156, 151, 128, 76, 214, 78, 112, 77, 124, 121, 128, 78, 182, 48, 112, 79, 92, 91, 128, 80, 150, 18, 112, 81, 60, 61, 128, 82, 117, 244, 112, 83, 28, 31, 128, 84, 85, 214, 112, 84, 252, 1, 128, 86, 53, 184, 112, 86, 229, 30, 0, 88, 30, 212, 240, 88, 197, 0, 0, 89, 254, 182, 240, 90, 164, 226, 0, 91, 222, 152, 240, 92, 132, 196, 0, 93, 190, 122, 240, 94, 100, 166, 0, 95, 158, 92, 240, 96, 77, 194, 128, 97, 135, 121, 112, 98, 45, 164, 128, 99, 103, 91, 112, 100, 13, 134, 128, 101, 71, 61, 112, 101, 237, 104, 128, 103, 39, 31, 112, 103, 205, 74, 128, 105, 7, 1, 112, 105, 173, 44, 128, 106, 230, 227, 112, 107, 150, 73, 0, 108, 207, 255, 240, 109, 118, 43, 0, 110, 175, 225, 240, 111, 86, 13, 0, 112, 143, 195, 240, 113, 53, 239, 0, 114, 111, 165, 240, 115, 21, 209, 0, 116, 79, 135, 240, 116, 254, 237, 128, 118, 56, 164, 112, 118, 222, 207, 128, 120, 24, 134, 112, 120, 190, 177, 128, 121, 248, 104, 112, 122, 158, 147, 128, 123, 216, 74, 112, 124, 126, 117, 128, 125, 184, 44, 112, 126, 94, 87, 128, 127, 152, 14, 112, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 4, 5, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 173, 212, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 0, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 1, 20, 255, 255, 171, 160, 0, 8, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 69, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Chihuahua": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 165, 182, 232, 112, 175, 242, 110, 224, 182, 102, 86, 96, 183, 67, 210, 96, 184, 12, 54, 96, 184, 253, 134, 240, 49, 103, 118, 0, 50, 115, 8, 112, 51, 71, 88, 0, 52, 82, 234, 112, 53, 39, 72, 16, 54, 50, 218, 128, 55, 7, 42, 16, 56, 27, 247, 0, 56, 231, 12, 16, 57, 251, 217, 0, 58, 245, 18, 144, 59, 182, 209, 0, 60, 176, 10, 144, 61, 187, 157, 0, 62, 143, 236, 144, 63, 155, 127, 0, 64, 111, 206, 144, 65, 132, 155, 128, 66, 79, 176, 144, 67, 100, 125, 128, 68, 47, 146, 144, 69, 68, 95, 128, 70, 15, 116, 144, 71, 36, 65, 128, 71, 248, 145, 16, 73, 4, 35, 128, 73, 216, 115, 16, 74, 228, 5, 128, 75, 184, 85, 16, 76, 205, 34, 0, 77, 152, 55, 16, 78, 173, 4, 0, 79, 120, 25, 16, 80, 140, 230, 0, 81, 97, 53, 144, 82, 108, 200, 0, 83, 65, 23, 144, 84, 76, 170, 0, 85, 32, 249, 144, 86, 44, 140, 0, 87, 0, 219, 144, 88, 21, 168, 128, 88, 224, 189, 144, 89, 245, 138, 128, 90, 192, 159, 144, 91, 213, 108, 128, 92, 169, 188, 16, 93, 181, 78, 128, 94, 137, 158, 16, 95, 149, 48, 128, 96, 105, 128, 16, 97, 126, 77, 0, 98, 73, 98, 16, 99, 94, 47, 0, 100, 41, 68, 16, 101, 62, 17, 0, 102, 18, 96, 144, 103, 29, 243, 0, 103, 242, 66, 144, 104, 253, 213, 0, 105, 210, 36, 144, 106, 221, 183, 0, 107, 178, 6, 144, 108, 198, 211, 128, 109, 145, 232, 144, 110, 166, 181, 128, 111, 113, 202, 144, 112, 134, 151, 128, 113, 90, 231, 16, 114, 102, 121, 128, 115, 58, 201, 16, 116, 70, 91, 128, 117, 26, 171, 16, 118, 47, 120, 0, 118, 250, 141, 16, 120, 15, 90, 0, 120, 218, 111, 16, 121, 239, 60, 0, 122, 186, 81, 16, 123, 207, 30, 0, 124, 163, 109, 144, 125, 175, 0, 0, 126, 131, 79, 144, 127, 142, 226, 0, 0, 1, 2, 1, 2, 1, 2, 3, 2, 3, 2, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 255, 255, 156, 140, 0, 0, 255, 255, 157, 144, 0, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 171, 160, 1, 16, 255, 255, 157, 144, 0, 4, 76, 77, 84, 0, 77, 83, 84, 0, 67, 83, 84, 0, 67, 68, 84, 0, 77, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 77, 83, 84, 55, 77, 68, 84, 44, 77, 52, 46, 49, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/America/Coral_Harbour": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 6, 0, 0, 0, 24, 128, 0, 0, 0, 158, 184, 161, 128, 159, 186, 249, 112, 200, 248, 87, 96, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 2, 1, 2, 1, 3, 4, 5, 255, 255, 170, 28, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 0, 20, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 69, 83, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 10, 69, 83, 84, 53, 10}, + + "zoneinfo/America/Cordoba": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 62, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 162, 146, 143, 48, 182, 123, 82, 64, 183, 26, 201, 176, 184, 30, 143, 64, 184, 212, 112, 48, 186, 23, 125, 192, 186, 181, 163, 176, 187, 248, 177, 64, 188, 150, 215, 48, 189, 217, 228, 192, 190, 120, 10, 176, 191, 187, 24, 64, 192, 90, 143, 176, 193, 157, 157, 64, 194, 59, 195, 48, 195, 126, 208, 192, 196, 28, 246, 176, 197, 96, 4, 64, 197, 254, 42, 48, 199, 65, 55, 192, 199, 224, 175, 48, 200, 129, 148, 64, 202, 77, 161, 176, 202, 238, 134, 192, 206, 77, 255, 48, 206, 176, 237, 192, 211, 41, 53, 176, 212, 67, 100, 192, 244, 61, 8, 48, 244, 159, 246, 192, 245, 5, 108, 48, 246, 50, 16, 64, 246, 230, 159, 176, 248, 19, 67, 192, 248, 199, 211, 48, 249, 244, 119, 64, 250, 211, 54, 176, 251, 195, 53, 192, 252, 188, 83, 48, 253, 172, 82, 64, 254, 156, 53, 48, 255, 140, 52, 64, 7, 163, 74, 176, 8, 36, 111, 160, 35, 148, 181, 176, 36, 16, 148, 160, 37, 55, 242, 176, 37, 240, 118, 160, 39, 33, 15, 48, 39, 208, 88, 160, 41, 0, 255, 64, 41, 176, 58, 160, 42, 224, 211, 48, 43, 153, 87, 32, 55, 246, 198, 176, 56, 191, 42, 176, 71, 119, 9, 176, 71, 220, 127, 32, 72, 250, 162, 176, 73, 188, 97, 32, 127, 255, 255, 255, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 4, 5, 4, 5, 4, 5, 4, 2, 4, 5, 4, 5, 3, 5, 4, 5, 4, 5, 5, 255, 255, 195, 208, 0, 0, 255, 255, 195, 208, 0, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 227, 224, 1, 16, 255, 255, 213, 208, 0, 12, 76, 77, 84, 0, 67, 77, 84, 0, 45, 48, 52, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Costa_Rica": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 4, 0, 0, 0, 17, 128, 0, 0, 0, 163, 232, 22, 77, 17, 54, 73, 96, 17, 183, 110, 80, 19, 22, 43, 96, 19, 151, 80, 80, 39, 151, 224, 96, 40, 110, 182, 208, 41, 119, 194, 96, 41, 194, 217, 208, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 255, 255, 177, 51, 0, 0, 255, 255, 177, 51, 0, 4, 255, 255, 185, 176, 1, 9, 255, 255, 171, 160, 0, 13, 76, 77, 84, 0, 83, 74, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 54, 10}, + + "zoneinfo/America/Creston": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 12, 128, 0, 0, 0, 155, 214, 75, 112, 158, 249, 59, 0, 1, 2, 1, 255, 255, 146, 196, 0, 0, 255, 255, 157, 144, 0, 4, 255, 255, 143, 128, 0, 8, 255, 255, 157, 144, 0, 4, 76, 77, 84, 0, 77, 83, 84, 0, 80, 83, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 77, 83, 84, 55, 10}, + + "zoneinfo/America/Cuiaba": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 127, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 150, 170, 123, 148, 184, 15, 87, 240, 184, 253, 78, 176, 185, 241, 66, 64, 186, 222, 130, 48, 218, 56, 188, 64, 218, 236, 8, 64, 220, 25, 239, 192, 220, 185, 103, 48, 221, 251, 35, 64, 222, 155, 236, 48, 223, 221, 168, 64, 224, 84, 65, 48, 244, 152, 13, 192, 245, 5, 108, 48, 246, 192, 114, 64, 247, 14, 44, 176, 248, 81, 58, 64, 248, 199, 211, 48, 250, 10, 224, 192, 250, 169, 6, 176, 251, 236, 20, 64, 252, 139, 139, 176, 29, 201, 156, 64, 30, 120, 229, 176, 31, 160, 67, 192, 32, 51, 221, 176, 33, 129, 119, 64, 34, 11, 214, 176, 35, 88, 30, 192, 35, 226, 126, 48, 37, 56, 0, 192, 37, 212, 213, 48, 39, 33, 29, 64, 39, 189, 241, 176, 41, 0, 255, 64, 41, 148, 153, 48, 42, 234, 27, 192, 43, 107, 64, 176, 44, 192, 195, 64, 45, 102, 210, 48, 46, 160, 165, 64, 47, 70, 180, 48, 48, 128, 135, 64, 49, 29, 91, 176, 50, 87, 46, 192, 51, 6, 120, 48, 52, 56, 98, 64, 52, 248, 207, 48, 54, 32, 45, 64, 54, 207, 118, 176, 55, 246, 212, 192, 56, 184, 147, 48, 57, 223, 241, 64, 58, 143, 58, 176, 59, 201, 13, 192, 60, 111, 28, 176, 61, 196, 159, 64, 62, 78, 254, 176, 65, 135, 6, 64, 66, 23, 253, 48, 67, 81, 208, 64, 67, 247, 223, 48, 69, 77, 97, 192, 69, 224, 251, 176, 71, 17, 148, 64, 71, 183, 163, 48, 72, 250, 176, 192, 73, 151, 133, 48, 74, 218, 146, 192, 75, 128, 161, 176, 76, 186, 116, 192, 77, 96, 131, 176, 78, 154, 86, 192, 79, 73, 160, 48, 80, 131, 115, 64, 81, 32, 71, 176, 82, 99, 85, 64, 83, 0, 41, 176, 84, 67, 55, 64, 84, 233, 70, 48, 86, 35, 25, 64, 86, 201, 40, 48, 88, 2, 251, 64, 88, 169, 10, 48, 89, 226, 221, 64, 90, 136, 236, 48, 91, 203, 249, 192, 92, 104, 206, 48, 93, 171, 219, 192, 94, 72, 176, 48, 95, 139, 189, 192, 96, 49, 204, 176, 97, 107, 159, 192, 98, 17, 174, 176, 99, 75, 129, 192, 99, 250, 203, 48, 101, 43, 99, 192, 101, 209, 114, 176, 103, 20, 128, 64, 103, 177, 84, 176, 104, 244, 98, 64, 105, 154, 113, 48, 106, 212, 68, 64, 107, 122, 83, 48, 108, 180, 38, 64, 109, 90, 53, 48, 110, 148, 8, 64, 111, 58, 23, 48, 112, 125, 36, 192, 113, 25, 249, 48, 114, 93, 6, 192, 114, 249, 219, 48, 116, 60, 232, 192, 116, 217, 189, 48, 118, 28, 202, 192, 118, 194, 217, 176, 119, 252, 172, 192, 120, 171, 246, 48, 121, 220, 142, 192, 122, 130, 157, 176, 123, 197, 171, 64, 124, 98, 127, 176, 125, 165, 141, 64, 126, 75, 156, 48, 127, 133, 111, 64, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 255, 255, 203, 108, 0, 0, 255, 255, 213, 208, 1, 4, 255, 255, 199, 192, 0, 8, 76, 77, 84, 0, 45, 48, 51, 0, 45, 48, 52, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 52, 62, 52, 60, 45, 48, 51, 62, 44, 77, 49, 48, 46, 51, 46, 48, 47, 48, 44, 77, 50, 46, 51, 46, 48, 47, 48, 10}, + + "zoneinfo/America/Curacao": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 14, 128, 0, 0, 0, 147, 30, 46, 35, 246, 152, 236, 72, 0, 1, 2, 255, 255, 191, 93, 0, 0, 255, 255, 192, 184, 0, 4, 255, 255, 199, 192, 0, 10, 76, 77, 84, 0, 45, 48, 52, 51, 48, 0, 65, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/Danmarkshavn": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 35, 0, 0, 0, 6, 0, 0, 0, 16, 128, 0, 0, 0, 155, 128, 73, 0, 19, 77, 124, 80, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 48, 231, 78, 48, 0, 1, 4, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 255, 255, 238, 128, 0, 0, 255, 255, 213, 208, 0, 4, 255, 255, 213, 208, 0, 4, 255, 255, 227, 224, 1, 8, 255, 255, 227, 224, 1, 8, 0, 0, 0, 0, 0, 12, 76, 77, 84, 0, 45, 48, 51, 0, 45, 48, 50, 0, 71, 77, 84, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/America/Dawson": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 127, 0, 0, 0, 8, 0, 0, 0, 33, 128, 0, 0, 0, 158, 184, 203, 176, 159, 187, 35, 160, 160, 208, 12, 176, 161, 162, 210, 128, 203, 137, 40, 176, 210, 35, 244, 112, 210, 97, 52, 32, 247, 47, 118, 144, 248, 40, 162, 16, 7, 48, 236, 144, 19, 105, 114, 32, 20, 89, 85, 16, 21, 73, 84, 32, 22, 57, 55, 16, 23, 41, 54, 32, 24, 34, 83, 144, 25, 9, 24, 32, 26, 2, 53, 144, 26, 242, 52, 160, 27, 226, 23, 144, 28, 210, 22, 160, 29, 193, 249, 144, 30, 177, 248, 160, 31, 161, 219, 144, 32, 118, 43, 32, 33, 129, 189, 144, 34, 86, 13, 32, 35, 106, 218, 16, 36, 53, 239, 32, 37, 74, 188, 16, 38, 21, 209, 32, 39, 42, 158, 16, 39, 254, 237, 160, 41, 10, 128, 16, 41, 222, 207, 160, 42, 234, 98, 16, 43, 190, 177, 160, 44, 211, 126, 144, 45, 158, 147, 160, 46, 179, 96, 144, 47, 126, 117, 160, 48, 147, 66, 144, 49, 103, 146, 32, 50, 115, 36, 144, 51, 71, 116, 32, 52, 83, 6, 144, 53, 39, 86, 32, 54, 50, 232, 144, 55, 7, 56, 32, 56, 28, 5, 16, 56, 231, 26, 32, 57, 251, 231, 16, 58, 198, 252, 32, 59, 219, 201, 16, 60, 176, 24, 160, 61, 187, 171, 16, 62, 143, 250, 160, 63, 155, 141, 16, 64, 111, 220, 160, 65, 132, 169, 144, 66, 79, 190, 160, 67, 100, 139, 144, 68, 47, 160, 160, 69, 68, 109, 144, 69, 243, 211, 32, 71, 45, 138, 16, 71, 211, 181, 32, 73, 13, 108, 16, 73, 179, 151, 32, 74, 237, 78, 16, 75, 156, 179, 160, 76, 214, 106, 144, 77, 124, 149, 160, 78, 182, 76, 144, 79, 92, 119, 160, 80, 150, 46, 144, 81, 60, 89, 160, 82, 118, 16, 144, 83, 28, 59, 160, 84, 85, 242, 144, 84, 252, 29, 160, 86, 53, 212, 144, 86, 229, 58, 32, 88, 30, 241, 16, 88, 197, 28, 32, 89, 254, 211, 16, 90, 164, 254, 32, 91, 222, 181, 16, 92, 132, 224, 32, 93, 190, 151, 16, 94, 100, 194, 32, 95, 158, 121, 16, 96, 77, 222, 160, 97, 135, 149, 144, 98, 45, 192, 160, 99, 103, 119, 144, 100, 13, 162, 160, 101, 71, 89, 144, 101, 237, 132, 160, 103, 39, 59, 144, 103, 205, 102, 160, 105, 7, 29, 144, 105, 173, 72, 160, 106, 230, 255, 144, 107, 150, 101, 32, 108, 208, 28, 16, 109, 118, 71, 32, 110, 175, 254, 16, 111, 86, 41, 32, 112, 143, 224, 16, 113, 54, 11, 32, 114, 111, 194, 16, 115, 21, 237, 32, 116, 79, 164, 16, 116, 255, 9, 160, 118, 56, 192, 144, 118, 222, 235, 160, 120, 24, 162, 144, 120, 190, 205, 160, 121, 248, 132, 144, 122, 158, 175, 160, 123, 216, 102, 144, 124, 126, 145, 160, 125, 184, 72, 144, 126, 94, 115, 160, 127, 152, 42, 144, 2, 1, 2, 1, 2, 3, 4, 2, 5, 2, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 255, 255, 125, 76, 0, 0, 255, 255, 143, 128, 1, 4, 255, 255, 129, 112, 0, 8, 255, 255, 143, 128, 1, 12, 255, 255, 143, 128, 1, 16, 255, 255, 157, 144, 1, 20, 255, 255, 143, 128, 0, 25, 255, 255, 157, 144, 1, 29, 76, 77, 84, 0, 89, 68, 84, 0, 89, 83, 84, 0, 89, 87, 84, 0, 89, 80, 84, 0, 89, 68, 68, 84, 0, 80, 83, 84, 0, 80, 68, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 10, 80, 83, 84, 56, 80, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Dawson_Creek": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 58, 0, 0, 0, 6, 0, 0, 0, 24, 128, 0, 0, 0, 158, 184, 189, 160, 159, 187, 21, 144, 203, 137, 26, 160, 210, 35, 244, 112, 210, 97, 38, 16, 213, 85, 241, 32, 214, 32, 234, 16, 215, 53, 211, 32, 216, 0, 204, 16, 217, 21, 181, 32, 217, 224, 174, 16, 218, 254, 209, 160, 219, 192, 144, 16, 220, 222, 179, 160, 221, 169, 172, 144, 222, 190, 149, 160, 223, 137, 142, 144, 224, 158, 119, 160, 225, 105, 112, 144, 226, 126, 89, 160, 227, 73, 82, 144, 228, 94, 59, 160, 229, 41, 52, 144, 230, 71, 88, 32, 231, 18, 81, 16, 232, 39, 58, 32, 232, 242, 51, 16, 234, 7, 28, 32, 234, 210, 21, 16, 235, 230, 254, 32, 236, 177, 247, 16, 237, 198, 224, 32, 238, 145, 217, 16, 239, 175, 252, 160, 240, 113, 187, 16, 241, 143, 222, 160, 242, 127, 193, 144, 243, 111, 192, 160, 244, 95, 163, 144, 245, 79, 162, 160, 246, 63, 133, 144, 247, 47, 132, 160, 248, 40, 162, 16, 249, 15, 102, 160, 250, 8, 132, 16, 250, 248, 131, 32, 251, 232, 102, 16, 252, 216, 101, 32, 253, 200, 72, 16, 254, 184, 71, 32, 255, 168, 42, 16, 0, 152, 41, 32, 1, 136, 12, 16, 2, 120, 11, 32, 3, 113, 40, 144, 4, 97, 39, 160, 5, 1, 240, 144, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 5, 255, 255, 143, 72, 0, 0, 255, 255, 157, 144, 1, 4, 255, 255, 143, 128, 0, 8, 255, 255, 157, 144, 1, 12, 255, 255, 157, 144, 1, 16, 255, 255, 157, 144, 0, 20, 76, 77, 84, 0, 80, 68, 84, 0, 80, 83, 84, 0, 80, 87, 84, 0, 80, 80, 84, 0, 77, 83, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 10, 77, 83, 84, 55, 10}, + + "zoneinfo/America/Denver": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 158, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 158, 166, 58, 144, 159, 187, 7, 128, 160, 134, 28, 144, 161, 154, 233, 128, 162, 101, 254, 144, 163, 132, 6, 0, 164, 69, 224, 144, 164, 143, 166, 128, 203, 137, 12, 144, 210, 35, 244, 112, 210, 97, 24, 0, 247, 47, 118, 144, 248, 40, 148, 0, 249, 15, 88, 144, 250, 8, 118, 0, 250, 248, 117, 16, 251, 232, 88, 0, 252, 216, 87, 16, 253, 200, 58, 0, 254, 184, 57, 16, 255, 168, 28, 0, 0, 152, 27, 16, 1, 135, 254, 0, 2, 119, 253, 16, 3, 113, 26, 128, 4, 97, 25, 144, 5, 80, 252, 128, 6, 64, 251, 144, 7, 48, 222, 128, 7, 141, 53, 144, 9, 16, 192, 128, 9, 173, 177, 16, 10, 240, 162, 128, 11, 224, 161, 144, 12, 217, 191, 0, 13, 192, 131, 144, 14, 185, 161, 0, 15, 169, 160, 16, 16, 153, 131, 0, 17, 137, 130, 16, 18, 121, 101, 0, 19, 105, 100, 16, 20, 89, 71, 0, 21, 73, 70, 16, 22, 57, 41, 0, 23, 41, 40, 16, 24, 34, 69, 128, 25, 9, 10, 16, 26, 2, 39, 128, 26, 242, 38, 144, 27, 226, 9, 128, 28, 210, 8, 144, 29, 193, 235, 128, 30, 177, 234, 144, 31, 161, 205, 128, 32, 118, 29, 16, 33, 129, 175, 128, 34, 85, 255, 16, 35, 106, 204, 0, 36, 53, 225, 16, 37, 74, 174, 0, 38, 21, 195, 16, 39, 42, 144, 0, 39, 254, 223, 144, 41, 10, 114, 0, 41, 222, 193, 144, 42, 234, 84, 0, 43, 190, 163, 144, 44, 211, 112, 128, 45, 158, 133, 144, 46, 179, 82, 128, 47, 126, 103, 144, 48, 147, 52, 128, 49, 103, 132, 16, 50, 115, 22, 128, 51, 71, 102, 16, 52, 82, 248, 128, 53, 39, 72, 16, 54, 50, 218, 128, 55, 7, 42, 16, 56, 27, 247, 0, 56, 231, 12, 16, 57, 251, 217, 0, 58, 198, 238, 16, 59, 219, 187, 0, 60, 176, 10, 144, 61, 187, 157, 0, 62, 143, 236, 144, 63, 155, 127, 0, 64, 111, 206, 144, 65, 132, 155, 128, 66, 79, 176, 144, 67, 100, 125, 128, 68, 47, 146, 144, 69, 68, 95, 128, 69, 243, 197, 16, 71, 45, 124, 0, 71, 211, 167, 16, 73, 13, 94, 0, 73, 179, 137, 16, 74, 237, 64, 0, 75, 156, 165, 144, 76, 214, 92, 128, 77, 124, 135, 144, 78, 182, 62, 128, 79, 92, 105, 144, 80, 150, 32, 128, 81, 60, 75, 144, 82, 118, 2, 128, 83, 28, 45, 144, 84, 85, 228, 128, 84, 252, 15, 144, 86, 53, 198, 128, 86, 229, 44, 16, 88, 30, 227, 0, 88, 197, 14, 16, 89, 254, 197, 0, 90, 164, 240, 16, 91, 222, 167, 0, 92, 132, 210, 16, 93, 190, 137, 0, 94, 100, 180, 16, 95, 158, 107, 0, 96, 77, 208, 144, 97, 135, 135, 128, 98, 45, 178, 144, 99, 103, 105, 128, 100, 13, 148, 144, 101, 71, 75, 128, 101, 237, 118, 144, 103, 39, 45, 128, 103, 205, 88, 144, 105, 7, 15, 128, 105, 173, 58, 144, 106, 230, 241, 128, 107, 150, 87, 16, 108, 208, 14, 0, 109, 118, 57, 16, 110, 175, 240, 0, 111, 86, 27, 16, 112, 143, 210, 0, 113, 53, 253, 16, 114, 111, 180, 0, 115, 21, 223, 16, 116, 79, 150, 0, 116, 254, 251, 144, 118, 56, 178, 128, 118, 222, 221, 144, 120, 24, 148, 128, 120, 190, 191, 144, 121, 248, 118, 128, 122, 158, 161, 144, 123, 216, 88, 128, 124, 126, 131, 144, 125, 184, 58, 128, 126, 94, 101, 144, 127, 152, 28, 128, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 157, 148, 0, 0, 255, 255, 171, 160, 1, 4, 255, 255, 157, 144, 0, 8, 255, 255, 171, 160, 1, 12, 255, 255, 171, 160, 1, 16, 76, 77, 84, 0, 77, 68, 84, 0, 77, 83, 84, 0, 77, 87, 84, 0, 77, 80, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 10, 77, 83, 84, 55, 77, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Detroit": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 138, 0, 0, 0, 6, 0, 0, 0, 24, 128, 0, 0, 0, 133, 189, 34, 91, 153, 60, 148, 0, 203, 136, 240, 112, 210, 35, 244, 112, 210, 96, 251, 224, 215, 53, 168, 240, 216, 0, 161, 224, 6, 64, 223, 112, 7, 48, 194, 96, 7, 141, 25, 112, 9, 16, 164, 96, 10, 0, 163, 112, 10, 240, 134, 96, 11, 224, 133, 112, 12, 217, 162, 224, 13, 192, 103, 112, 14, 185, 132, 224, 15, 169, 131, 240, 16, 153, 102, 224, 17, 137, 101, 240, 18, 121, 72, 224, 19, 105, 71, 240, 20, 89, 42, 224, 21, 73, 41, 240, 22, 57, 12, 224, 23, 41, 11, 240, 24, 34, 41, 96, 25, 8, 237, 240, 26, 2, 11, 96, 26, 242, 10, 112, 27, 225, 237, 96, 28, 209, 236, 112, 29, 193, 207, 96, 30, 177, 206, 112, 31, 161, 177, 96, 32, 118, 0, 240, 33, 129, 147, 96, 34, 85, 226, 240, 35, 106, 175, 224, 36, 53, 196, 240, 37, 74, 145, 224, 38, 21, 166, 240, 39, 42, 115, 224, 39, 254, 195, 112, 41, 10, 85, 224, 41, 222, 165, 112, 42, 234, 55, 224, 43, 190, 135, 112, 44, 211, 84, 96, 45, 158, 105, 112, 46, 179, 54, 96, 47, 126, 75, 112, 48, 147, 24, 96, 49, 103, 103, 240, 50, 114, 250, 96, 51, 71, 73, 240, 52, 82, 220, 96, 53, 39, 43, 240, 54, 50, 190, 96, 55, 7, 13, 240, 56, 27, 218, 224, 56, 230, 239, 240, 57, 251, 188, 224, 58, 198, 209, 240, 59, 219, 158, 224, 60, 175, 238, 112, 61, 187, 128, 224, 62, 143, 208, 112, 63, 155, 98, 224, 64, 111, 178, 112, 65, 132, 127, 96, 66, 79, 148, 112, 67, 100, 97, 96, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 0, 1, 2, 3, 4, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 255, 255, 178, 37, 0, 0, 255, 255, 171, 160, 0, 4, 255, 255, 185, 176, 0, 8, 255, 255, 199, 192, 1, 12, 255, 255, 199, 192, 1, 16, 255, 255, 199, 192, 1, 20, 76, 77, 84, 0, 67, 83, 84, 0, 69, 83, 84, 0, 69, 87, 84, 0, 69, 80, 84, 0, 69, 68, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Dominica": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 147, 55, 51, 172, 0, 1, 255, 255, 198, 84, 0, 0, 255, 255, 199, 192, 0, 4, 76, 77, 84, 0, 65, 83, 84, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/Edmonton": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 155, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 136, 222, 206, 224, 158, 184, 175, 144, 159, 187, 7, 128, 160, 152, 145, 144, 160, 210, 133, 128, 162, 138, 232, 144, 163, 132, 6, 0, 164, 106, 202, 144, 165, 53, 195, 128, 166, 83, 231, 16, 167, 21, 165, 128, 168, 51, 201, 16, 168, 254, 194, 0, 203, 137, 12, 144, 210, 35, 244, 112, 210, 97, 24, 0, 213, 85, 227, 16, 214, 32, 220, 0, 250, 248, 117, 16, 251, 232, 88, 0, 254, 184, 57, 16, 255, 168, 28, 0, 4, 97, 25, 144, 5, 80, 252, 128, 6, 64, 251, 144, 7, 48, 222, 128, 8, 32, 221, 144, 9, 16, 192, 128, 10, 0, 191, 144, 10, 240, 162, 128, 11, 224, 161, 144, 12, 217, 191, 0, 13, 192, 131, 144, 14, 185, 161, 0, 15, 169, 160, 16, 16, 153, 131, 0, 17, 137, 130, 16, 18, 121, 101, 0, 19, 105, 100, 16, 20, 89, 71, 0, 21, 73, 70, 16, 22, 57, 41, 0, 23, 41, 40, 16, 24, 34, 69, 128, 25, 9, 10, 16, 26, 2, 39, 128, 26, 242, 38, 144, 27, 226, 9, 128, 28, 210, 8, 144, 29, 193, 235, 128, 30, 177, 234, 144, 31, 161, 205, 128, 32, 118, 29, 16, 33, 129, 175, 128, 34, 85, 255, 16, 35, 106, 204, 0, 36, 53, 225, 16, 37, 74, 174, 0, 38, 21, 195, 16, 39, 42, 144, 0, 39, 254, 223, 144, 41, 10, 114, 0, 41, 222, 193, 144, 42, 234, 84, 0, 43, 190, 163, 144, 44, 211, 112, 128, 45, 158, 133, 144, 46, 179, 82, 128, 47, 126, 103, 144, 48, 147, 52, 128, 49, 103, 132, 16, 50, 115, 22, 128, 51, 71, 102, 16, 52, 82, 248, 128, 53, 39, 72, 16, 54, 50, 218, 128, 55, 7, 42, 16, 56, 27, 247, 0, 56, 231, 12, 16, 57, 251, 217, 0, 58, 198, 238, 16, 59, 219, 187, 0, 60, 176, 10, 144, 61, 187, 157, 0, 62, 143, 236, 144, 63, 155, 127, 0, 64, 111, 206, 144, 65, 132, 155, 128, 66, 79, 176, 144, 67, 100, 125, 128, 68, 47, 146, 144, 69, 68, 95, 128, 69, 243, 197, 16, 71, 45, 124, 0, 71, 211, 167, 16, 73, 13, 94, 0, 73, 179, 137, 16, 74, 237, 64, 0, 75, 156, 165, 144, 76, 214, 92, 128, 77, 124, 135, 144, 78, 182, 62, 128, 79, 92, 105, 144, 80, 150, 32, 128, 81, 60, 75, 144, 82, 118, 2, 128, 83, 28, 45, 144, 84, 85, 228, 128, 84, 252, 15, 144, 86, 53, 198, 128, 86, 229, 44, 16, 88, 30, 227, 0, 88, 197, 14, 16, 89, 254, 197, 0, 90, 164, 240, 16, 91, 222, 167, 0, 92, 132, 210, 16, 93, 190, 137, 0, 94, 100, 180, 16, 95, 158, 107, 0, 96, 77, 208, 144, 97, 135, 135, 128, 98, 45, 178, 144, 99, 103, 105, 128, 100, 13, 148, 144, 101, 71, 75, 128, 101, 237, 118, 144, 103, 39, 45, 128, 103, 205, 88, 144, 105, 7, 15, 128, 105, 173, 58, 144, 106, 230, 241, 128, 107, 150, 87, 16, 108, 208, 14, 0, 109, 118, 57, 16, 110, 175, 240, 0, 111, 86, 27, 16, 112, 143, 210, 0, 113, 53, 253, 16, 114, 111, 180, 0, 115, 21, 223, 16, 116, 79, 150, 0, 116, 254, 251, 144, 118, 56, 178, 128, 118, 222, 221, 144, 120, 24, 148, 128, 120, 190, 191, 144, 121, 248, 118, 128, 122, 158, 161, 144, 123, 216, 88, 128, 124, 126, 131, 144, 125, 184, 58, 128, 126, 94, 101, 144, 127, 152, 28, 128, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 149, 160, 0, 0, 255, 255, 171, 160, 1, 4, 255, 255, 157, 144, 0, 8, 255, 255, 171, 160, 1, 12, 255, 255, 171, 160, 1, 16, 76, 77, 84, 0, 77, 68, 84, 0, 77, 83, 84, 0, 77, 87, 84, 0, 77, 80, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 10, 77, 83, 84, 55, 77, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Eirunepe": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 35, 0, 0, 0, 5, 0, 0, 0, 12, 128, 0, 0, 0, 150, 170, 136, 128, 184, 15, 102, 0, 184, 253, 92, 192, 185, 241, 80, 80, 186, 222, 144, 64, 218, 56, 202, 80, 218, 236, 22, 80, 220, 25, 253, 208, 220, 185, 117, 64, 221, 251, 49, 80, 222, 155, 250, 64, 223, 221, 182, 80, 224, 84, 79, 64, 244, 152, 27, 208, 245, 5, 122, 64, 246, 192, 128, 80, 247, 14, 58, 192, 248, 81, 72, 80, 248, 199, 225, 64, 250, 10, 238, 208, 250, 169, 20, 192, 251, 236, 34, 80, 252, 139, 153, 192, 29, 201, 170, 80, 30, 120, 243, 192, 31, 160, 81, 208, 32, 51, 235, 192, 33, 129, 133, 80, 34, 11, 228, 192, 44, 192, 209, 80, 45, 102, 224, 64, 72, 96, 127, 80, 82, 127, 4, 192, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 2, 255, 255, 190, 128, 0, 0, 255, 255, 199, 192, 1, 4, 255, 255, 185, 176, 0, 8, 255, 255, 199, 192, 0, 4, 255, 255, 185, 176, 0, 8, 76, 77, 84, 0, 45, 48, 52, 0, 45, 48, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 53, 62, 53, 10}, + + "zoneinfo/America/El_Salvador": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 163, 213, 166, 32, 32, 154, 220, 224, 33, 92, 155, 80, 34, 122, 190, 224, 35, 60, 125, 80, 0, 2, 1, 2, 1, 2, 255, 255, 172, 96, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 54, 10}, + + "zoneinfo/America/Ensenada": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 6, 0, 0, 0, 24, 128, 0, 0, 0, 165, 182, 246, 128, 169, 121, 79, 112, 175, 242, 124, 240, 182, 102, 100, 112, 183, 27, 16, 0, 184, 10, 242, 240, 203, 234, 141, 128, 210, 35, 244, 112, 210, 153, 186, 112, 215, 27, 89, 0, 216, 145, 180, 240, 226, 126, 75, 144, 227, 73, 82, 144, 228, 94, 45, 144, 229, 41, 52, 144, 230, 71, 74, 16, 231, 18, 81, 16, 232, 39, 44, 16, 232, 242, 51, 16, 234, 7, 14, 16, 234, 210, 21, 16, 235, 230, 240, 16, 236, 177, 247, 16, 237, 198, 210, 16, 238, 145, 217, 16, 11, 224, 175, 160, 12, 217, 205, 16, 13, 192, 145, 160, 14, 185, 175, 16, 15, 169, 174, 32, 16, 153, 145, 16, 17, 137, 144, 32, 18, 121, 115, 16, 19, 105, 114, 32, 20, 89, 85, 16, 21, 73, 84, 32, 22, 57, 55, 16, 23, 41, 54, 32, 24, 34, 83, 144, 25, 9, 24, 32, 26, 2, 53, 144, 26, 242, 52, 160, 27, 226, 23, 144, 28, 210, 22, 160, 29, 193, 249, 144, 30, 177, 248, 160, 31, 161, 219, 144, 32, 118, 43, 32, 33, 129, 189, 144, 34, 86, 13, 32, 35, 106, 218, 16, 36, 53, 239, 32, 37, 74, 188, 16, 38, 21, 209, 32, 39, 42, 158, 16, 39, 254, 237, 160, 41, 10, 128, 16, 41, 222, 207, 160, 42, 234, 98, 16, 43, 190, 177, 160, 44, 211, 126, 144, 45, 158, 147, 160, 46, 179, 96, 144, 47, 126, 117, 160, 48, 147, 66, 144, 49, 103, 146, 32, 50, 115, 36, 144, 51, 71, 116, 32, 52, 83, 6, 144, 53, 39, 86, 32, 54, 50, 232, 144, 55, 7, 56, 32, 56, 28, 5, 16, 56, 231, 26, 32, 57, 251, 231, 16, 58, 198, 252, 32, 59, 219, 201, 16, 60, 176, 24, 160, 61, 187, 171, 16, 62, 143, 250, 160, 63, 155, 141, 16, 64, 111, 220, 160, 65, 132, 169, 144, 66, 79, 190, 160, 67, 100, 139, 144, 68, 47, 160, 160, 69, 68, 109, 144, 70, 15, 130, 160, 71, 36, 79, 144, 71, 248, 159, 32, 73, 4, 49, 144, 73, 216, 129, 32, 74, 228, 19, 144, 75, 156, 179, 160, 76, 214, 106, 144, 77, 124, 149, 160, 78, 182, 76, 144, 79, 92, 119, 160, 80, 150, 46, 144, 81, 60, 89, 160, 82, 118, 16, 144, 83, 28, 59, 160, 84, 85, 242, 144, 84, 252, 29, 160, 86, 53, 212, 144, 86, 229, 58, 32, 88, 30, 241, 16, 88, 197, 28, 32, 89, 254, 211, 16, 90, 164, 254, 32, 91, 222, 181, 16, 92, 132, 224, 32, 93, 190, 151, 16, 94, 100, 194, 32, 95, 158, 121, 16, 96, 77, 222, 160, 97, 135, 149, 144, 98, 45, 192, 160, 99, 103, 119, 144, 100, 13, 162, 160, 101, 71, 89, 144, 101, 237, 132, 160, 103, 39, 59, 144, 103, 205, 102, 160, 105, 7, 29, 144, 105, 173, 72, 160, 106, 230, 255, 144, 107, 150, 101, 32, 108, 208, 28, 16, 109, 118, 71, 32, 110, 175, 254, 16, 111, 86, 41, 32, 112, 143, 224, 16, 113, 54, 11, 32, 114, 111, 194, 16, 115, 21, 237, 32, 116, 79, 164, 16, 116, 255, 9, 160, 118, 56, 192, 144, 118, 222, 235, 160, 120, 24, 162, 144, 120, 190, 205, 160, 121, 248, 132, 144, 122, 158, 175, 160, 123, 216, 102, 144, 124, 126, 145, 160, 125, 184, 72, 144, 126, 94, 115, 160, 127, 152, 42, 144, 0, 1, 2, 1, 2, 3, 2, 4, 5, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 255, 255, 146, 76, 0, 0, 255, 255, 157, 144, 0, 4, 255, 255, 143, 128, 0, 8, 255, 255, 157, 144, 1, 12, 255, 255, 157, 144, 1, 16, 255, 255, 157, 144, 1, 20, 76, 77, 84, 0, 77, 83, 84, 0, 80, 83, 84, 0, 80, 68, 84, 0, 80, 87, 84, 0, 80, 80, 84, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 10, 80, 83, 84, 56, 80, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Fort_Nelson": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 143, 0, 0, 0, 6, 0, 0, 0, 24, 128, 0, 0, 0, 158, 184, 189, 160, 159, 187, 21, 144, 203, 137, 26, 160, 210, 35, 244, 112, 210, 97, 38, 16, 213, 85, 241, 32, 214, 32, 234, 16, 215, 53, 211, 32, 216, 0, 204, 16, 217, 21, 181, 32, 217, 224, 174, 16, 218, 254, 209, 160, 219, 192, 144, 16, 220, 222, 179, 160, 221, 169, 172, 144, 222, 190, 149, 160, 223, 137, 142, 144, 224, 158, 119, 160, 225, 105, 112, 144, 226, 126, 89, 160, 227, 73, 82, 144, 228, 94, 59, 160, 229, 41, 52, 144, 230, 71, 88, 32, 231, 18, 81, 16, 232, 39, 58, 32, 232, 242, 51, 16, 234, 7, 28, 32, 234, 210, 21, 16, 235, 230, 254, 32, 236, 177, 247, 16, 237, 198, 224, 32, 238, 145, 217, 16, 239, 175, 252, 160, 240, 113, 187, 16, 241, 143, 222, 160, 242, 127, 193, 144, 243, 111, 192, 160, 244, 95, 163, 144, 245, 79, 162, 160, 246, 63, 133, 144, 247, 47, 132, 160, 248, 40, 162, 16, 249, 15, 102, 160, 250, 8, 132, 16, 250, 248, 131, 32, 251, 232, 102, 16, 252, 216, 101, 32, 253, 200, 72, 16, 254, 184, 71, 32, 255, 168, 42, 16, 0, 152, 41, 32, 1, 136, 12, 16, 2, 120, 11, 32, 3, 113, 40, 144, 4, 97, 39, 160, 5, 81, 10, 144, 6, 65, 9, 160, 7, 48, 236, 144, 8, 32, 235, 160, 9, 16, 206, 144, 10, 0, 205, 160, 10, 240, 176, 144, 11, 224, 175, 160, 12, 217, 205, 16, 13, 192, 145, 160, 14, 185, 175, 16, 15, 169, 174, 32, 16, 153, 145, 16, 17, 137, 144, 32, 18, 121, 115, 16, 19, 105, 114, 32, 20, 89, 85, 16, 21, 73, 84, 32, 22, 57, 55, 16, 23, 41, 54, 32, 24, 34, 83, 144, 25, 9, 24, 32, 26, 2, 53, 144, 26, 242, 52, 160, 27, 226, 23, 144, 28, 210, 22, 160, 29, 193, 249, 144, 30, 177, 248, 160, 31, 161, 219, 144, 32, 118, 43, 32, 33, 129, 189, 144, 34, 86, 13, 32, 35, 106, 218, 16, 36, 53, 239, 32, 37, 74, 188, 16, 38, 21, 209, 32, 39, 42, 158, 16, 39, 254, 237, 160, 41, 10, 128, 16, 41, 222, 207, 160, 42, 234, 98, 16, 43, 190, 177, 160, 44, 211, 126, 144, 45, 158, 147, 160, 46, 179, 96, 144, 47, 126, 117, 160, 48, 147, 66, 144, 49, 103, 146, 32, 50, 115, 36, 144, 51, 71, 116, 32, 52, 83, 6, 144, 53, 39, 86, 32, 54, 50, 232, 144, 55, 7, 56, 32, 56, 28, 5, 16, 56, 231, 26, 32, 57, 251, 231, 16, 58, 198, 252, 32, 59, 219, 201, 16, 60, 176, 24, 160, 61, 187, 171, 16, 62, 143, 250, 160, 63, 155, 141, 16, 64, 111, 220, 160, 65, 132, 169, 144, 66, 79, 190, 160, 67, 100, 139, 144, 68, 47, 160, 160, 69, 68, 109, 144, 69, 243, 211, 32, 71, 45, 138, 16, 71, 211, 181, 32, 73, 13, 108, 16, 73, 179, 151, 32, 74, 237, 78, 16, 75, 156, 179, 160, 76, 214, 106, 144, 77, 124, 149, 160, 78, 182, 76, 144, 79, 92, 119, 160, 80, 150, 46, 144, 81, 60, 89, 160, 82, 118, 16, 144, 83, 28, 59, 160, 84, 85, 242, 144, 84, 252, 29, 160, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 255, 255, 140, 249, 0, 0, 255, 255, 157, 144, 1, 4, 255, 255, 143, 128, 0, 8, 255, 255, 157, 144, 1, 12, 255, 255, 157, 144, 1, 16, 255, 255, 157, 144, 0, 20, 76, 77, 84, 0, 80, 68, 84, 0, 80, 83, 84, 0, 80, 87, 84, 0, 80, 80, 84, 0, 77, 83, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 10, 77, 83, 84, 55, 10}, + + "zoneinfo/America/Fort_Wayne": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 99, 0, 0, 0, 7, 0, 0, 0, 28, 128, 0, 0, 0, 158, 166, 44, 128, 159, 186, 249, 112, 160, 134, 14, 128, 161, 154, 219, 112, 202, 87, 34, 128, 202, 216, 71, 112, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 211, 117, 243, 0, 212, 64, 235, 240, 213, 85, 213, 0, 214, 32, 205, 240, 215, 53, 183, 0, 216, 0, 175, 240, 217, 21, 153, 0, 217, 224, 145, 240, 218, 254, 181, 128, 219, 192, 115, 240, 220, 222, 151, 128, 221, 169, 144, 112, 222, 190, 121, 128, 223, 137, 114, 112, 224, 158, 91, 128, 225, 105, 84, 112, 226, 126, 61, 128, 227, 73, 54, 112, 228, 94, 31, 128, 232, 242, 22, 240, 234, 7, 0, 0, 254, 184, 28, 240, 255, 167, 255, 224, 0, 151, 254, 240, 1, 135, 225, 224, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 2, 1, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 255, 255, 175, 58, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 0, 20, 255, 255, 199, 192, 1, 24, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 69, 83, 84, 0, 69, 68, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Fortaleza": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 150, 170, 107, 24, 184, 15, 73, 224, 184, 253, 64, 160, 185, 241, 52, 48, 186, 222, 116, 32, 218, 56, 174, 48, 218, 235, 250, 48, 220, 25, 225, 176, 220, 185, 89, 32, 221, 251, 21, 48, 222, 155, 222, 32, 223, 221, 154, 48, 224, 84, 51, 32, 244, 151, 255, 176, 245, 5, 94, 32, 246, 192, 100, 48, 247, 14, 30, 160, 248, 81, 44, 48, 248, 199, 197, 32, 250, 10, 210, 176, 250, 168, 248, 160, 251, 236, 6, 48, 252, 139, 125, 160, 29, 201, 142, 48, 30, 120, 215, 160, 31, 160, 53, 176, 32, 51, 207, 160, 33, 129, 105, 48, 34, 11, 200, 160, 35, 88, 16, 176, 35, 226, 112, 32, 37, 55, 242, 176, 37, 212, 199, 32, 55, 246, 198, 176, 56, 184, 133, 32, 57, 223, 227, 48, 57, 242, 74, 32, 59, 200, 255, 176, 60, 111, 14, 160, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 255, 255, 219, 232, 0, 0, 255, 255, 227, 224, 1, 4, 255, 255, 213, 208, 0, 8, 76, 77, 84, 0, 45, 48, 50, 0, 45, 48, 51, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Glace_Bay": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 141, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 128, 241, 168, 52, 158, 184, 133, 96, 159, 186, 221, 80, 203, 136, 226, 96, 210, 35, 244, 112, 210, 96, 237, 208, 224, 158, 63, 96, 225, 105, 56, 80, 4, 96, 239, 96, 5, 80, 210, 80, 6, 64, 209, 96, 7, 48, 180, 80, 8, 32, 179, 96, 9, 16, 150, 80, 10, 0, 149, 96, 10, 240, 120, 80, 11, 224, 119, 96, 12, 217, 148, 208, 13, 192, 89, 96, 14, 185, 118, 208, 15, 169, 117, 224, 16, 153, 88, 208, 17, 137, 87, 224, 18, 121, 58, 208, 19, 105, 57, 224, 20, 89, 28, 208, 21, 73, 27, 224, 22, 56, 254, 208, 23, 40, 253, 224, 24, 34, 27, 80, 25, 8, 223, 224, 26, 1, 253, 80, 26, 241, 252, 96, 27, 225, 223, 80, 28, 209, 222, 96, 29, 193, 193, 80, 30, 177, 192, 96, 31, 161, 163, 80, 32, 117, 242, 224, 33, 129, 133, 80, 34, 85, 212, 224, 35, 106, 161, 208, 36, 53, 182, 224, 37, 74, 131, 208, 38, 21, 152, 224, 39, 42, 101, 208, 39, 254, 181, 96, 41, 10, 71, 208, 41, 222, 151, 96, 42, 234, 41, 208, 43, 190, 121, 96, 44, 211, 70, 80, 45, 158, 91, 96, 46, 179, 40, 80, 47, 126, 61, 96, 48, 147, 10, 80, 49, 103, 89, 224, 50, 114, 236, 80, 51, 71, 59, 224, 52, 82, 206, 80, 53, 39, 29, 224, 54, 50, 176, 80, 55, 6, 255, 224, 56, 27, 204, 208, 56, 230, 225, 224, 57, 251, 174, 208, 58, 198, 195, 224, 59, 219, 144, 208, 60, 175, 224, 96, 61, 187, 114, 208, 62, 143, 194, 96, 63, 155, 84, 208, 64, 111, 164, 96, 65, 132, 113, 80, 66, 79, 134, 96, 67, 100, 83, 80, 68, 47, 104, 96, 69, 68, 53, 80, 69, 243, 154, 224, 71, 45, 81, 208, 71, 211, 124, 224, 73, 13, 51, 208, 73, 179, 94, 224, 74, 237, 21, 208, 75, 156, 123, 96, 76, 214, 50, 80, 77, 124, 93, 96, 78, 182, 20, 80, 79, 92, 63, 96, 80, 149, 246, 80, 81, 60, 33, 96, 82, 117, 216, 80, 83, 28, 3, 96, 84, 85, 186, 80, 84, 251, 229, 96, 86, 53, 156, 80, 86, 229, 1, 224, 88, 30, 184, 208, 88, 196, 227, 224, 89, 254, 154, 208, 90, 164, 197, 224, 91, 222, 124, 208, 92, 132, 167, 224, 93, 190, 94, 208, 94, 100, 137, 224, 95, 158, 64, 208, 96, 77, 166, 96, 97, 135, 93, 80, 98, 45, 136, 96, 99, 103, 63, 80, 100, 13, 106, 96, 101, 71, 33, 80, 101, 237, 76, 96, 103, 39, 3, 80, 103, 205, 46, 96, 105, 6, 229, 80, 105, 173, 16, 96, 106, 230, 199, 80, 107, 150, 44, 224, 108, 207, 227, 208, 109, 118, 14, 224, 110, 175, 197, 208, 111, 85, 240, 224, 112, 143, 167, 208, 113, 53, 210, 224, 114, 111, 137, 208, 115, 21, 180, 224, 116, 79, 107, 208, 116, 254, 209, 96, 118, 56, 136, 80, 118, 222, 179, 96, 120, 24, 106, 80, 120, 190, 149, 96, 121, 248, 76, 80, 122, 158, 119, 96, 123, 216, 46, 80, 124, 126, 89, 96, 125, 184, 16, 80, 126, 94, 59, 96, 127, 151, 242, 80, 0, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 199, 204, 0, 0, 255, 255, 213, 208, 1, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 213, 208, 1, 16, 76, 77, 84, 0, 65, 68, 84, 0, 65, 83, 84, 0, 65, 87, 84, 0, 65, 80, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 10, 65, 83, 84, 52, 65, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Godthab": []byte{84, 90, 105, 102, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 119, 0, 0, 0, 5, 0, 0, 0, 12, 128, 0, 0, 0, 155, 128, 104, 0, 19, 77, 124, 80, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 127, 255, 255, 255, 0, 1, 4, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 2, 255, 255, 207, 128, 0, 0, 255, 255, 213, 208, 0, 4, 255, 255, 213, 208, 0, 4, 255, 255, 227, 224, 1, 8, 255, 255, 227, 224, 1, 8, 76, 77, 84, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 10, 60, 45, 48, 51, 62, 51, 60, 45, 48, 50, 62, 44, 77, 51, 46, 53, 46, 48, 47, 45, 50, 44, 77, 49, 48, 46, 53, 46, 48, 47, 45, 49, 10}, + + "zoneinfo/America/Goose_Bay": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 204, 0, 0, 0, 11, 0, 0, 0, 33, 128, 0, 0, 0, 158, 184, 126, 140, 159, 186, 214, 124, 190, 158, 77, 108, 192, 184, 49, 56, 193, 121, 239, 168, 194, 152, 19, 56, 195, 89, 209, 168, 196, 119, 245, 56, 197, 57, 179, 168, 198, 97, 17, 184, 199, 25, 149, 168, 200, 64, 243, 184, 201, 2, 178, 40, 202, 32, 213, 184, 202, 226, 148, 40, 204, 0, 183, 184, 210, 35, 244, 112, 210, 96, 230, 200, 211, 136, 68, 216, 212, 74, 3, 72, 213, 104, 38, 216, 214, 41, 229, 72, 215, 72, 8, 216, 216, 9, 199, 72, 217, 39, 234, 216, 217, 233, 169, 72, 219, 17, 7, 88, 219, 210, 197, 200, 220, 222, 116, 88, 221, 169, 109, 72, 222, 190, 86, 88, 223, 137, 79, 72, 224, 158, 56, 88, 225, 105, 49, 72, 226, 126, 26, 88, 227, 73, 19, 72, 228, 93, 252, 88, 229, 40, 245, 72, 230, 71, 24, 216, 231, 18, 17, 200, 232, 38, 250, 216, 232, 241, 243, 200, 234, 6, 220, 216, 234, 209, 213, 200, 235, 230, 190, 216, 236, 177, 183, 200, 237, 198, 160, 216, 238, 191, 190, 72, 239, 175, 189, 88, 240, 159, 160, 72, 241, 143, 159, 88, 242, 127, 130, 72, 243, 111, 129, 88, 244, 95, 100, 72, 245, 79, 99, 88, 246, 63, 70, 72, 247, 47, 69, 88, 248, 40, 98, 200, 248, 218, 107, 88, 249, 15, 46, 96, 250, 8, 75, 208, 250, 248, 74, 224, 251, 232, 45, 208, 252, 216, 44, 224, 253, 200, 15, 208, 254, 184, 14, 224, 255, 167, 241, 208, 0, 151, 240, 224, 1, 135, 211, 208, 2, 119, 210, 224, 3, 112, 240, 80, 4, 96, 239, 96, 5, 80, 210, 80, 6, 64, 209, 96, 7, 48, 180, 80, 8, 32, 179, 96, 9, 16, 150, 80, 10, 0, 149, 96, 10, 240, 120, 80, 11, 224, 119, 96, 12, 217, 148, 208, 13, 192, 89, 96, 14, 185, 118, 208, 15, 169, 117, 224, 16, 153, 88, 208, 17, 137, 87, 224, 18, 121, 58, 208, 19, 105, 57, 224, 20, 89, 28, 208, 21, 73, 27, 224, 22, 56, 254, 208, 23, 40, 253, 224, 24, 34, 27, 80, 25, 8, 223, 224, 26, 1, 253, 80, 26, 241, 252, 96, 27, 225, 223, 80, 28, 209, 222, 96, 29, 193, 193, 80, 30, 177, 192, 96, 31, 161, 163, 80, 32, 117, 214, 252, 33, 129, 105, 108, 34, 85, 184, 252, 35, 106, 119, 220, 36, 53, 154, 252, 37, 74, 103, 236, 38, 21, 124, 252, 39, 42, 73, 236, 39, 254, 153, 124, 41, 10, 43, 236, 41, 222, 123, 124, 42, 234, 13, 236, 43, 190, 93, 124, 44, 211, 42, 108, 45, 158, 63, 124, 46, 179, 12, 108, 47, 126, 33, 124, 48, 146, 238, 108, 49, 103, 61, 252, 50, 114, 208, 108, 51, 71, 31, 252, 52, 82, 178, 108, 53, 39, 1, 252, 54, 50, 148, 108, 55, 6, 227, 252, 56, 27, 176, 236, 56, 230, 197, 252, 57, 251, 146, 236, 58, 198, 167, 252, 59, 219, 116, 236, 60, 175, 196, 124, 61, 187, 86, 236, 62, 143, 166, 124, 63, 155, 56, 236, 64, 111, 136, 124, 65, 132, 85, 108, 66, 79, 106, 124, 67, 100, 55, 108, 68, 47, 76, 124, 69, 68, 25, 108, 69, 243, 126, 252, 71, 45, 53, 236, 71, 211, 96, 252, 73, 13, 23, 236, 73, 179, 66, 252, 74, 236, 249, 236, 75, 156, 95, 124, 76, 214, 22, 108, 77, 124, 65, 124, 78, 182, 20, 80, 79, 92, 63, 96, 80, 149, 246, 80, 81, 60, 33, 96, 82, 117, 216, 80, 83, 28, 3, 96, 84, 85, 186, 80, 84, 251, 229, 96, 86, 53, 156, 80, 86, 229, 1, 224, 88, 30, 184, 208, 88, 196, 227, 224, 89, 254, 154, 208, 90, 164, 197, 224, 91, 222, 124, 208, 92, 132, 167, 224, 93, 190, 94, 208, 94, 100, 137, 224, 95, 158, 64, 208, 96, 77, 166, 96, 97, 135, 93, 80, 98, 45, 136, 96, 99, 103, 63, 80, 100, 13, 106, 96, 101, 71, 33, 80, 101, 237, 76, 96, 103, 39, 3, 80, 103, 205, 46, 96, 105, 6, 229, 80, 105, 173, 16, 96, 106, 230, 199, 80, 107, 150, 44, 224, 108, 207, 227, 208, 109, 118, 14, 224, 110, 175, 197, 208, 111, 85, 240, 224, 112, 143, 167, 208, 113, 53, 210, 224, 114, 111, 137, 208, 115, 21, 180, 224, 116, 79, 107, 208, 116, 254, 209, 96, 118, 56, 136, 80, 118, 222, 179, 96, 120, 24, 106, 80, 120, 190, 149, 96, 121, 248, 76, 80, 122, 158, 119, 96, 123, 216, 46, 80, 124, 126, 89, 96, 125, 184, 16, 80, 126, 94, 59, 96, 127, 151, 242, 80, 1, 2, 1, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 6, 5, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 9, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 255, 255, 199, 92, 0, 0, 255, 255, 206, 148, 0, 4, 255, 255, 220, 164, 1, 8, 255, 255, 206, 200, 0, 4, 255, 255, 220, 216, 1, 8, 255, 255, 220, 216, 1, 12, 255, 255, 220, 216, 1, 16, 255, 255, 213, 208, 1, 20, 255, 255, 199, 192, 0, 24, 255, 255, 227, 224, 1, 28, 255, 255, 213, 208, 1, 20, 76, 77, 84, 0, 78, 83, 84, 0, 78, 68, 84, 0, 78, 80, 84, 0, 78, 87, 84, 0, 65, 68, 84, 0, 65, 83, 84, 0, 65, 68, 68, 84, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 65, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Grand_Turk": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 116, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 147, 15, 180, 255, 17, 137, 101, 240, 18, 121, 72, 224, 19, 105, 71, 240, 20, 89, 42, 224, 21, 73, 41, 240, 22, 57, 12, 224, 23, 41, 11, 240, 24, 34, 41, 96, 25, 8, 237, 240, 26, 2, 11, 96, 26, 242, 10, 112, 27, 225, 237, 96, 28, 209, 236, 112, 29, 193, 207, 96, 30, 177, 206, 112, 31, 161, 177, 96, 32, 118, 0, 240, 33, 129, 147, 96, 34, 85, 226, 240, 35, 106, 175, 224, 36, 53, 196, 240, 37, 74, 145, 224, 38, 21, 166, 240, 39, 42, 115, 224, 39, 254, 195, 112, 41, 10, 85, 224, 41, 222, 165, 112, 42, 234, 55, 224, 43, 190, 135, 112, 44, 211, 84, 96, 45, 158, 105, 112, 46, 179, 54, 96, 47, 126, 75, 112, 48, 147, 24, 96, 49, 103, 103, 240, 50, 114, 250, 96, 51, 71, 73, 240, 52, 82, 220, 96, 53, 39, 43, 240, 54, 50, 190, 96, 55, 7, 13, 240, 56, 27, 218, 224, 56, 230, 239, 240, 57, 251, 188, 224, 58, 198, 209, 240, 59, 219, 158, 224, 60, 175, 238, 112, 61, 187, 128, 224, 62, 143, 208, 112, 63, 155, 98, 224, 64, 111, 178, 112, 65, 132, 127, 96, 66, 79, 148, 112, 67, 100, 97, 96, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 4, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 255, 255, 189, 80, 0, 0, 255, 255, 184, 1, 0, 4, 255, 255, 185, 176, 0, 8, 255, 255, 199, 192, 1, 12, 255, 255, 199, 192, 0, 16, 255, 255, 185, 176, 0, 8, 76, 77, 84, 0, 75, 77, 84, 0, 69, 83, 84, 0, 69, 68, 84, 0, 65, 83, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Grenada": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 147, 55, 51, 172, 0, 1, 255, 255, 198, 84, 0, 0, 255, 255, 199, 192, 0, 4, 76, 77, 84, 0, 65, 83, 84, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/Guadeloupe": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 147, 55, 51, 172, 0, 1, 255, 255, 198, 84, 0, 0, 255, 255, 199, 192, 0, 4, 76, 77, 84, 0, 65, 83, 84, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/Guatemala": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 159, 157, 234, 220, 7, 85, 172, 96, 7, 205, 150, 208, 25, 44, 120, 96, 25, 207, 228, 80, 39, 234, 238, 224, 40, 200, 92, 208, 68, 84, 82, 96, 69, 31, 75, 80, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 171, 36, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 54, 10}, + + "zoneinfo/America/Guayaquil": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 4, 0, 0, 0, 16, 128, 0, 0, 0, 182, 164, 66, 24, 43, 22, 252, 208, 43, 113, 230, 64, 127, 255, 255, 255, 1, 3, 2, 3, 3, 255, 255, 181, 40, 0, 0, 255, 255, 182, 104, 0, 4, 255, 255, 199, 192, 1, 8, 255, 255, 185, 176, 0, 12, 76, 77, 84, 0, 81, 77, 84, 0, 45, 48, 52, 0, 45, 48, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 53, 62, 53, 10}, + + "zoneinfo/America/Guyana": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 4, 0, 0, 0, 18, 128, 0, 0, 0, 152, 217, 121, 136, 10, 125, 180, 60, 39, 127, 251, 48, 127, 255, 255, 255, 0, 1, 2, 3, 3, 255, 255, 201, 120, 0, 0, 255, 255, 203, 68, 0, 4, 255, 255, 213, 208, 0, 10, 255, 255, 199, 192, 0, 14, 76, 77, 84, 0, 45, 48, 51, 52, 53, 0, 45, 48, 51, 0, 45, 48, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 52, 62, 52, 10}, + + "zoneinfo/America/Halifax": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 229, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 128, 241, 171, 160, 154, 228, 222, 192, 155, 214, 19, 48, 158, 184, 133, 96, 159, 186, 221, 80, 162, 157, 23, 64, 163, 48, 177, 48, 164, 122, 86, 64, 165, 27, 31, 48, 166, 83, 160, 192, 166, 252, 82, 176, 168, 60, 189, 64, 168, 220, 52, 176, 170, 28, 159, 64, 170, 205, 58, 48, 171, 252, 129, 64, 172, 191, 145, 48, 173, 238, 216, 64, 174, 140, 254, 48, 175, 188, 69, 64, 176, 127, 85, 48, 177, 174, 156, 64, 178, 75, 112, 176, 179, 142, 126, 64, 180, 36, 187, 48, 181, 110, 96, 64, 182, 21, 192, 176, 183, 78, 66, 64, 184, 8, 23, 176, 185, 36, 233, 192, 185, 231, 249, 176, 187, 4, 203, 192, 187, 209, 22, 48, 189, 0, 93, 64, 189, 157, 49, 176, 190, 242, 180, 64, 191, 144, 218, 48, 192, 211, 231, 192, 193, 94, 71, 48, 194, 141, 142, 64, 195, 80, 158, 48, 196, 109, 112, 64, 197, 48, 128, 48, 198, 114, 60, 64, 199, 16, 98, 48, 200, 54, 110, 192, 200, 249, 126, 176, 202, 22, 80, 192, 202, 217, 96, 176, 203, 136, 226, 96, 210, 35, 244, 112, 210, 96, 237, 208, 211, 117, 214, 224, 212, 64, 207, 208, 213, 85, 184, 224, 214, 32, 177, 208, 215, 53, 154, 224, 216, 0, 147, 208, 217, 21, 124, 224, 217, 224, 117, 208, 220, 222, 123, 96, 221, 169, 116, 80, 222, 190, 93, 96, 223, 137, 86, 80, 224, 158, 63, 96, 225, 105, 56, 80, 226, 126, 33, 96, 227, 73, 26, 80, 230, 71, 31, 224, 231, 18, 24, 208, 232, 39, 1, 224, 232, 241, 250, 208, 234, 6, 227, 224, 234, 209, 220, 208, 235, 230, 197, 224, 236, 177, 190, 208, 241, 143, 166, 96, 242, 127, 137, 80, 243, 111, 136, 96, 244, 95, 107, 80, 245, 79, 106, 96, 246, 63, 77, 80, 247, 47, 76, 96, 248, 40, 105, 208, 249, 15, 46, 96, 250, 8, 75, 208, 250, 248, 74, 224, 251, 232, 45, 208, 252, 216, 44, 224, 253, 200, 15, 208, 254, 184, 14, 224, 255, 167, 241, 208, 0, 151, 240, 224, 1, 135, 211, 208, 2, 119, 210, 224, 3, 112, 240, 80, 4, 96, 239, 96, 5, 80, 210, 80, 6, 64, 209, 96, 7, 48, 180, 80, 8, 32, 179, 96, 9, 16, 150, 80, 10, 0, 149, 96, 10, 240, 120, 80, 11, 224, 119, 96, 12, 217, 148, 208, 13, 192, 89, 96, 14, 185, 118, 208, 15, 169, 117, 224, 16, 153, 88, 208, 17, 137, 87, 224, 18, 121, 58, 208, 19, 105, 57, 224, 20, 89, 28, 208, 21, 73, 27, 224, 22, 56, 254, 208, 23, 40, 253, 224, 24, 34, 27, 80, 25, 8, 223, 224, 26, 1, 253, 80, 26, 241, 252, 96, 27, 225, 223, 80, 28, 209, 222, 96, 29, 193, 193, 80, 30, 177, 192, 96, 31, 161, 163, 80, 32, 117, 242, 224, 33, 129, 133, 80, 34, 85, 212, 224, 35, 106, 161, 208, 36, 53, 182, 224, 37, 74, 131, 208, 38, 21, 152, 224, 39, 42, 101, 208, 39, 254, 181, 96, 41, 10, 71, 208, 41, 222, 151, 96, 42, 234, 41, 208, 43, 190, 121, 96, 44, 211, 70, 80, 45, 158, 91, 96, 46, 179, 40, 80, 47, 126, 61, 96, 48, 147, 10, 80, 49, 103, 89, 224, 50, 114, 236, 80, 51, 71, 59, 224, 52, 82, 206, 80, 53, 39, 29, 224, 54, 50, 176, 80, 55, 6, 255, 224, 56, 27, 204, 208, 56, 230, 225, 224, 57, 251, 174, 208, 58, 198, 195, 224, 59, 219, 144, 208, 60, 175, 224, 96, 61, 187, 114, 208, 62, 143, 194, 96, 63, 155, 84, 208, 64, 111, 164, 96, 65, 132, 113, 80, 66, 79, 134, 96, 67, 100, 83, 80, 68, 47, 104, 96, 69, 68, 53, 80, 69, 243, 154, 224, 71, 45, 81, 208, 71, 211, 124, 224, 73, 13, 51, 208, 73, 179, 94, 224, 74, 237, 21, 208, 75, 156, 123, 96, 76, 214, 50, 80, 77, 124, 93, 96, 78, 182, 20, 80, 79, 92, 63, 96, 80, 149, 246, 80, 81, 60, 33, 96, 82, 117, 216, 80, 83, 28, 3, 96, 84, 85, 186, 80, 84, 251, 229, 96, 86, 53, 156, 80, 86, 229, 1, 224, 88, 30, 184, 208, 88, 196, 227, 224, 89, 254, 154, 208, 90, 164, 197, 224, 91, 222, 124, 208, 92, 132, 167, 224, 93, 190, 94, 208, 94, 100, 137, 224, 95, 158, 64, 208, 96, 77, 166, 96, 97, 135, 93, 80, 98, 45, 136, 96, 99, 103, 63, 80, 100, 13, 106, 96, 101, 71, 33, 80, 101, 237, 76, 96, 103, 39, 3, 80, 103, 205, 46, 96, 105, 6, 229, 80, 105, 173, 16, 96, 106, 230, 199, 80, 107, 150, 44, 224, 108, 207, 227, 208, 109, 118, 14, 224, 110, 175, 197, 208, 111, 85, 240, 224, 112, 143, 167, 208, 113, 53, 210, 224, 114, 111, 137, 208, 115, 21, 180, 224, 116, 79, 107, 208, 116, 254, 209, 96, 118, 56, 136, 80, 118, 222, 179, 96, 120, 24, 106, 80, 120, 190, 149, 96, 121, 248, 76, 80, 122, 158, 119, 96, 123, 216, 46, 80, 124, 126, 89, 96, 125, 184, 16, 80, 126, 94, 59, 96, 127, 151, 242, 80, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 196, 96, 0, 0, 255, 255, 213, 208, 1, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 213, 208, 1, 16, 76, 77, 84, 0, 65, 68, 84, 0, 65, 83, 84, 0, 65, 87, 84, 0, 65, 80, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 10, 65, 83, 84, 52, 65, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Havana": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 156, 0, 0, 0, 6, 0, 0, 0, 16, 128, 0, 0, 0, 172, 98, 194, 128, 177, 211, 148, 80, 178, 116, 93, 64, 200, 91, 102, 208, 200, 211, 81, 64, 202, 59, 72, 208, 202, 188, 109, 192, 204, 36, 101, 80, 204, 156, 79, 192, 209, 196, 11, 80, 210, 59, 245, 192, 211, 163, 237, 80, 212, 27, 215, 192, 247, 96, 5, 208, 247, 255, 125, 64, 249, 61, 68, 208, 249, 227, 83, 192, 250, 219, 59, 208, 251, 167, 134, 64, 252, 197, 169, 208, 253, 135, 104, 64, 254, 184, 0, 208, 255, 167, 227, 192, 0, 151, 226, 208, 1, 135, 197, 192, 2, 119, 196, 208, 3, 112, 226, 64, 4, 96, 225, 80, 5, 53, 20, 192, 6, 64, 195, 80, 7, 22, 72, 64, 8, 32, 165, 80, 8, 247, 123, 192, 10, 0, 135, 80, 10, 240, 106, 64, 11, 224, 105, 80, 12, 217, 134, 192, 13, 192, 75, 80, 14, 185, 104, 192, 15, 178, 162, 80, 16, 125, 155, 64, 17, 81, 234, 208, 18, 102, 183, 192, 19, 49, 204, 208, 20, 70, 153, 192, 21, 91, 130, 208, 22, 38, 123, 192, 23, 59, 100, 208, 24, 6, 93, 192, 25, 27, 70, 208, 25, 230, 63, 192, 26, 251, 40, 208, 27, 207, 92, 64, 28, 219, 10, 208, 29, 175, 62, 64, 30, 122, 83, 80, 31, 143, 32, 64, 32, 90, 53, 80, 33, 111, 2, 64, 34, 67, 81, 208, 35, 78, 228, 64, 36, 35, 51, 208, 37, 46, 198, 64, 38, 21, 138, 208, 39, 23, 226, 192, 39, 254, 167, 80, 40, 247, 210, 208, 41, 222, 137, 80, 42, 215, 180, 208, 43, 190, 107, 80, 44, 183, 150, 208, 45, 158, 77, 80, 46, 151, 120, 208, 47, 126, 47, 80, 48, 119, 90, 208, 49, 103, 75, 208, 50, 87, 60, 208, 51, 71, 45, 208, 52, 64, 89, 80, 53, 29, 213, 80, 54, 50, 176, 80, 54, 253, 183, 80, 56, 27, 204, 208, 56, 230, 211, 208, 57, 251, 174, 208, 58, 198, 181, 208, 59, 219, 144, 208, 60, 175, 210, 80, 61, 187, 114, 208, 62, 143, 180, 80, 63, 155, 84, 208, 64, 102, 91, 208, 69, 68, 53, 80, 69, 243, 140, 208, 71, 36, 23, 80, 71, 220, 169, 80, 73, 3, 249, 80, 73, 179, 80, 208, 74, 227, 219, 80, 75, 156, 109, 80, 76, 204, 247, 208, 77, 133, 137, 208, 78, 191, 78, 208, 79, 119, 224, 208, 80, 149, 246, 80, 81, 60, 19, 80, 82, 117, 216, 80, 83, 27, 245, 80, 84, 85, 186, 80, 84, 251, 215, 80, 86, 53, 156, 80, 86, 228, 243, 208, 88, 30, 184, 208, 88, 196, 213, 208, 89, 254, 154, 208, 90, 164, 183, 208, 91, 222, 124, 208, 92, 132, 153, 208, 93, 190, 94, 208, 94, 100, 123, 208, 95, 158, 64, 208, 96, 77, 152, 80, 97, 135, 93, 80, 98, 45, 122, 80, 99, 103, 63, 80, 100, 13, 92, 80, 101, 71, 33, 80, 101, 237, 62, 80, 103, 39, 3, 80, 103, 205, 32, 80, 105, 6, 229, 80, 105, 173, 2, 80, 106, 230, 199, 80, 107, 150, 30, 208, 108, 207, 227, 208, 109, 118, 0, 208, 110, 175, 197, 208, 111, 85, 226, 208, 112, 143, 167, 208, 113, 53, 196, 208, 114, 111, 137, 208, 115, 21, 166, 208, 116, 79, 107, 208, 116, 254, 195, 80, 118, 56, 136, 80, 118, 222, 165, 80, 120, 24, 106, 80, 120, 190, 135, 80, 121, 248, 76, 80, 122, 158, 105, 80, 123, 216, 46, 80, 124, 126, 75, 80, 125, 184, 16, 80, 126, 94, 45, 80, 127, 151, 242, 80, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 255, 255, 178, 200, 0, 0, 255, 255, 178, 192, 0, 4, 255, 255, 199, 192, 1, 8, 255, 255, 185, 176, 0, 12, 255, 255, 185, 176, 0, 12, 255, 255, 199, 192, 1, 8, 76, 77, 84, 0, 72, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 53, 67, 68, 84, 44, 77, 51, 46, 50, 46, 48, 47, 48, 44, 77, 49, 49, 46, 49, 46, 48, 47, 49, 10}, + + "zoneinfo/America/Hermosillo": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 165, 182, 232, 112, 175, 242, 110, 224, 182, 102, 86, 96, 183, 67, 210, 96, 184, 12, 54, 96, 184, 253, 134, 240, 203, 234, 113, 96, 216, 145, 180, 240, 0, 0, 112, 128, 49, 103, 132, 16, 50, 115, 22, 128, 51, 71, 102, 16, 52, 82, 248, 128, 53, 39, 72, 16, 54, 50, 218, 128, 0, 1, 2, 1, 2, 1, 2, 1, 3, 1, 4, 1, 4, 1, 4, 1, 255, 255, 151, 248, 0, 0, 255, 255, 157, 144, 0, 4, 255, 255, 171, 160, 0, 8, 255, 255, 143, 128, 0, 12, 255, 255, 171, 160, 1, 16, 255, 255, 157, 144, 0, 4, 76, 77, 84, 0, 77, 83, 84, 0, 67, 83, 84, 0, 80, 83, 84, 0, 77, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 77, 83, 84, 55, 10}, + + "zoneinfo/America/Indiana/Indianapolis": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 99, 0, 0, 0, 7, 0, 0, 0, 28, 128, 0, 0, 0, 158, 166, 44, 128, 159, 186, 249, 112, 160, 134, 14, 128, 161, 154, 219, 112, 202, 87, 34, 128, 202, 216, 71, 112, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 211, 117, 243, 0, 212, 64, 235, 240, 213, 85, 213, 0, 214, 32, 205, 240, 215, 53, 183, 0, 216, 0, 175, 240, 217, 21, 153, 0, 217, 224, 145, 240, 218, 254, 181, 128, 219, 192, 115, 240, 220, 222, 151, 128, 221, 169, 144, 112, 222, 190, 121, 128, 223, 137, 114, 112, 224, 158, 91, 128, 225, 105, 84, 112, 226, 126, 61, 128, 227, 73, 54, 112, 228, 94, 31, 128, 232, 242, 22, 240, 234, 7, 0, 0, 254, 184, 28, 240, 255, 167, 255, 224, 0, 151, 254, 240, 1, 135, 225, 224, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 2, 1, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 255, 255, 175, 58, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 0, 20, 255, 255, 199, 192, 1, 24, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 69, 83, 84, 0, 69, 68, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Indiana/Knox": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 154, 0, 0, 0, 7, 0, 0, 0, 24, 128, 0, 0, 0, 158, 166, 44, 128, 159, 186, 249, 112, 160, 134, 14, 128, 161, 154, 219, 112, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 213, 85, 213, 0, 214, 32, 205, 240, 215, 53, 183, 0, 216, 0, 175, 240, 217, 21, 153, 0, 217, 224, 145, 240, 218, 254, 181, 128, 219, 192, 115, 240, 220, 222, 151, 128, 221, 169, 144, 112, 222, 190, 121, 128, 223, 137, 114, 112, 224, 158, 91, 128, 225, 105, 84, 112, 226, 126, 61, 128, 227, 73, 54, 112, 228, 94, 31, 128, 229, 87, 60, 240, 230, 71, 60, 0, 231, 55, 30, 240, 232, 39, 30, 0, 232, 242, 22, 240, 234, 7, 0, 0, 234, 209, 248, 240, 235, 230, 226, 0, 236, 214, 196, 240, 237, 198, 196, 0, 238, 191, 225, 112, 239, 175, 224, 128, 240, 159, 195, 112, 241, 143, 194, 128, 244, 95, 135, 112, 250, 248, 103, 0, 251, 232, 73, 240, 252, 216, 73, 0, 253, 200, 43, 240, 254, 184, 43, 0, 255, 168, 13, 240, 0, 152, 13, 0, 1, 135, 239, 240, 2, 119, 239, 0, 3, 113, 12, 112, 4, 97, 11, 128, 5, 80, 238, 112, 6, 64, 237, 128, 7, 48, 208, 112, 7, 141, 39, 128, 9, 16, 178, 112, 9, 173, 163, 0, 10, 240, 148, 112, 11, 224, 147, 128, 12, 217, 176, 240, 13, 192, 117, 128, 14, 185, 146, 240, 15, 169, 146, 0, 16, 153, 116, 240, 17, 137, 116, 0, 18, 121, 86, 240, 19, 105, 86, 0, 20, 89, 56, 240, 21, 73, 56, 0, 22, 57, 26, 240, 23, 41, 26, 0, 24, 34, 55, 112, 25, 8, 252, 0, 26, 2, 25, 112, 26, 242, 24, 128, 27, 225, 251, 112, 28, 209, 250, 128, 29, 193, 221, 112, 30, 177, 220, 128, 31, 161, 191, 112, 32, 118, 15, 0, 33, 129, 161, 112, 34, 85, 241, 0, 35, 106, 189, 240, 36, 53, 211, 0, 37, 74, 159, 240, 38, 21, 181, 0, 39, 42, 129, 240, 39, 254, 209, 128, 41, 10, 99, 240, 68, 47, 118, 112, 69, 68, 81, 112, 69, 243, 183, 0, 71, 45, 109, 240, 71, 211, 153, 0, 73, 13, 79, 240, 73, 179, 123, 0, 74, 237, 49, 240, 75, 156, 151, 128, 76, 214, 78, 112, 77, 124, 121, 128, 78, 182, 48, 112, 79, 92, 91, 128, 80, 150, 18, 112, 81, 60, 61, 128, 82, 117, 244, 112, 83, 28, 31, 128, 84, 85, 214, 112, 84, 252, 1, 128, 86, 53, 184, 112, 86, 229, 30, 0, 88, 30, 212, 240, 88, 197, 0, 0, 89, 254, 182, 240, 90, 164, 226, 0, 91, 222, 152, 240, 92, 132, 196, 0, 93, 190, 122, 240, 94, 100, 166, 0, 95, 158, 92, 240, 96, 77, 194, 128, 97, 135, 121, 112, 98, 45, 164, 128, 99, 103, 91, 112, 100, 13, 134, 128, 101, 71, 61, 112, 101, 237, 104, 128, 103, 39, 31, 112, 103, 205, 74, 128, 105, 7, 1, 112, 105, 173, 44, 128, 106, 230, 227, 112, 107, 150, 73, 0, 108, 207, 255, 240, 109, 118, 43, 0, 110, 175, 225, 240, 111, 86, 13, 0, 112, 143, 195, 240, 113, 53, 239, 0, 114, 111, 165, 240, 115, 21, 209, 0, 116, 79, 135, 240, 116, 254, 237, 128, 118, 56, 164, 112, 118, 222, 207, 128, 120, 24, 134, 112, 120, 190, 177, 128, 121, 248, 104, 112, 122, 158, 147, 128, 123, 216, 74, 112, 124, 126, 117, 128, 125, 184, 44, 112, 126, 94, 87, 128, 127, 152, 14, 112, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 5, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 174, 202, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 0, 20, 255, 255, 171, 160, 0, 8, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 69, 83, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Indiana/Marengo": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 103, 0, 0, 0, 7, 0, 0, 0, 28, 128, 0, 0, 0, 158, 166, 44, 128, 159, 186, 249, 112, 160, 134, 14, 128, 161, 154, 219, 112, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 220, 222, 151, 128, 221, 169, 144, 112, 226, 126, 61, 128, 227, 73, 54, 112, 228, 94, 31, 128, 229, 41, 24, 112, 230, 71, 60, 0, 231, 18, 52, 240, 232, 39, 30, 0, 232, 242, 22, 240, 234, 7, 0, 0, 234, 209, 248, 240, 235, 230, 226, 0, 236, 177, 218, 240, 237, 198, 196, 0, 238, 145, 188, 240, 239, 175, 224, 128, 254, 184, 28, 240, 255, 167, 255, 224, 0, 151, 254, 240, 1, 135, 225, 224, 2, 119, 224, 240, 3, 112, 254, 96, 4, 96, 253, 112, 5, 80, 224, 96, 6, 64, 223, 112, 7, 48, 194, 96, 7, 141, 25, 112, 9, 16, 178, 112, 9, 173, 148, 240, 10, 240, 134, 96, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 1, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 255, 255, 175, 13, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 0, 20, 255, 255, 199, 192, 1, 24, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 69, 83, 84, 0, 69, 68, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Indiana/Petersburg": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 116, 0, 0, 0, 7, 0, 0, 0, 28, 128, 0, 0, 0, 158, 166, 44, 128, 159, 186, 249, 112, 160, 134, 14, 128, 161, 154, 219, 112, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 228, 103, 61, 224, 229, 41, 24, 112, 230, 71, 60, 0, 231, 18, 52, 240, 232, 39, 30, 0, 232, 242, 22, 240, 234, 7, 0, 0, 234, 209, 248, 240, 235, 230, 226, 0, 236, 177, 218, 240, 237, 198, 196, 0, 238, 145, 188, 240, 239, 175, 224, 128, 240, 159, 195, 112, 241, 143, 194, 128, 242, 127, 165, 112, 243, 111, 164, 128, 244, 95, 135, 112, 245, 79, 134, 128, 246, 63, 105, 112, 247, 47, 104, 128, 250, 8, 103, 240, 250, 248, 103, 0, 251, 232, 73, 240, 252, 216, 73, 0, 253, 200, 43, 240, 254, 184, 43, 0, 255, 168, 13, 240, 0, 152, 13, 0, 1, 135, 239, 240, 2, 119, 239, 0, 3, 113, 12, 112, 4, 97, 11, 128, 5, 80, 238, 112, 6, 64, 237, 128, 7, 48, 208, 112, 7, 141, 39, 128, 9, 16, 178, 112, 9, 173, 163, 0, 10, 240, 148, 112, 11, 224, 147, 128, 12, 217, 176, 240, 13, 192, 117, 128, 14, 185, 146, 240, 68, 47, 118, 112, 69, 68, 81, 112, 69, 243, 183, 0, 71, 45, 109, 240, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 5, 1, 2, 1, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 255, 255, 174, 45, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 0, 20, 255, 255, 199, 192, 1, 24, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 69, 83, 84, 0, 69, 68, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Indiana/Tell_City": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 9, 0, 0, 0, 28, 128, 0, 0, 0, 158, 166, 44, 128, 159, 186, 249, 112, 160, 134, 14, 128, 161, 154, 219, 112, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 211, 117, 243, 0, 212, 64, 235, 240, 224, 158, 91, 128, 225, 105, 84, 112, 226, 126, 61, 128, 227, 73, 54, 112, 228, 103, 61, 224, 229, 41, 24, 112, 230, 71, 60, 0, 231, 18, 52, 240, 232, 39, 30, 0, 232, 242, 22, 240, 234, 7, 0, 0, 234, 209, 248, 240, 235, 230, 226, 0, 236, 177, 218, 240, 237, 198, 196, 0, 238, 191, 225, 112, 239, 175, 224, 128, 240, 113, 158, 240, 241, 143, 194, 128, 242, 127, 165, 112, 243, 111, 164, 128, 244, 95, 135, 112, 245, 79, 134, 128, 254, 184, 28, 240, 255, 167, 255, 224, 0, 151, 254, 240, 1, 135, 225, 224, 68, 47, 118, 112, 69, 68, 81, 112, 69, 243, 183, 0, 71, 45, 109, 240, 71, 211, 153, 0, 73, 13, 79, 240, 73, 179, 123, 0, 74, 237, 49, 240, 75, 156, 151, 128, 76, 214, 78, 112, 77, 124, 121, 128, 78, 182, 48, 112, 79, 92, 91, 128, 80, 150, 18, 112, 81, 60, 61, 128, 82, 117, 244, 112, 83, 28, 31, 128, 84, 85, 214, 112, 84, 252, 1, 128, 86, 53, 184, 112, 86, 229, 30, 0, 88, 30, 212, 240, 88, 197, 0, 0, 89, 254, 182, 240, 90, 164, 226, 0, 91, 222, 152, 240, 92, 132, 196, 0, 93, 190, 122, 240, 94, 100, 166, 0, 95, 158, 92, 240, 96, 77, 194, 128, 97, 135, 121, 112, 98, 45, 164, 128, 99, 103, 91, 112, 100, 13, 134, 128, 101, 71, 61, 112, 101, 237, 104, 128, 103, 39, 31, 112, 103, 205, 74, 128, 105, 7, 1, 112, 105, 173, 44, 128, 106, 230, 227, 112, 107, 150, 73, 0, 108, 207, 255, 240, 109, 118, 43, 0, 110, 175, 225, 240, 111, 86, 13, 0, 112, 143, 195, 240, 113, 53, 239, 0, 114, 111, 165, 240, 115, 21, 209, 0, 116, 79, 135, 240, 116, 254, 237, 128, 118, 56, 164, 112, 118, 222, 207, 128, 120, 24, 134, 112, 120, 190, 177, 128, 121, 248, 104, 112, 122, 158, 147, 128, 123, 216, 74, 112, 124, 126, 117, 128, 125, 184, 44, 112, 126, 94, 87, 128, 127, 152, 14, 112, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 6, 5, 6, 5, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 174, 169, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 0, 20, 255, 255, 199, 192, 1, 24, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 69, 83, 84, 0, 69, 68, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Indiana/Vevay": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 81, 0, 0, 0, 7, 0, 0, 0, 28, 128, 0, 0, 0, 158, 166, 44, 128, 159, 186, 249, 112, 160, 134, 14, 128, 161, 154, 219, 112, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 226, 126, 61, 128, 254, 184, 28, 240, 255, 167, 255, 224, 0, 151, 254, 240, 1, 135, 225, 224, 2, 119, 224, 240, 3, 112, 254, 96, 4, 96, 253, 112, 5, 80, 224, 96, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 2, 1, 2, 1, 2, 3, 4, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 255, 255, 176, 64, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 0, 20, 255, 255, 199, 192, 1, 24, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 69, 83, 84, 0, 69, 68, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Indiana/Vincennes": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 7, 0, 0, 0, 28, 128, 0, 0, 0, 158, 166, 44, 128, 159, 186, 249, 112, 160, 134, 14, 128, 161, 154, 219, 112, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 211, 117, 243, 0, 212, 64, 235, 240, 224, 158, 91, 128, 225, 105, 84, 112, 226, 126, 61, 128, 227, 73, 54, 112, 228, 103, 61, 224, 229, 41, 24, 112, 230, 71, 60, 0, 231, 18, 52, 240, 232, 39, 30, 0, 232, 242, 22, 240, 234, 7, 0, 0, 234, 209, 248, 240, 235, 230, 226, 0, 236, 177, 218, 240, 237, 198, 196, 0, 238, 191, 225, 112, 239, 175, 224, 128, 240, 113, 158, 240, 241, 143, 194, 128, 242, 127, 165, 112, 243, 111, 164, 128, 244, 95, 135, 112, 245, 79, 134, 128, 254, 184, 28, 240, 255, 167, 255, 224, 0, 151, 254, 240, 1, 135, 225, 224, 68, 47, 118, 112, 69, 68, 81, 112, 69, 243, 183, 0, 71, 45, 109, 240, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 6, 5, 6, 5, 1, 2, 1, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 255, 255, 173, 241, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 0, 20, 255, 255, 199, 192, 1, 24, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 69, 83, 84, 0, 69, 68, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Indiana/Winamac": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 107, 0, 0, 0, 7, 0, 0, 0, 28, 128, 0, 0, 0, 158, 166, 44, 128, 159, 186, 249, 112, 160, 134, 14, 128, 161, 154, 219, 112, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 211, 117, 243, 0, 212, 64, 235, 240, 213, 85, 213, 0, 214, 32, 205, 240, 215, 53, 183, 0, 216, 0, 175, 240, 217, 21, 153, 0, 217, 224, 145, 240, 218, 254, 181, 128, 219, 192, 115, 240, 220, 222, 151, 128, 221, 169, 144, 112, 222, 190, 121, 128, 223, 137, 114, 112, 224, 158, 91, 128, 225, 105, 84, 112, 226, 126, 61, 128, 227, 73, 54, 112, 228, 94, 31, 128, 229, 87, 60, 240, 230, 71, 60, 0, 231, 55, 30, 240, 232, 39, 30, 0, 232, 242, 22, 240, 234, 7, 0, 0, 234, 209, 248, 240, 235, 230, 226, 0, 236, 177, 218, 240, 237, 198, 196, 0, 238, 145, 188, 240, 239, 175, 224, 128, 254, 184, 28, 240, 255, 167, 255, 224, 0, 151, 254, 240, 1, 135, 225, 224, 68, 47, 118, 112, 69, 68, 81, 112, 69, 243, 183, 0, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 6, 5, 6, 5, 1, 2, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 255, 255, 174, 207, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 0, 20, 255, 255, 199, 192, 1, 24, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 69, 83, 84, 0, 69, 68, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Indianapolis": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 99, 0, 0, 0, 7, 0, 0, 0, 28, 128, 0, 0, 0, 158, 166, 44, 128, 159, 186, 249, 112, 160, 134, 14, 128, 161, 154, 219, 112, 202, 87, 34, 128, 202, 216, 71, 112, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 211, 117, 243, 0, 212, 64, 235, 240, 213, 85, 213, 0, 214, 32, 205, 240, 215, 53, 183, 0, 216, 0, 175, 240, 217, 21, 153, 0, 217, 224, 145, 240, 218, 254, 181, 128, 219, 192, 115, 240, 220, 222, 151, 128, 221, 169, 144, 112, 222, 190, 121, 128, 223, 137, 114, 112, 224, 158, 91, 128, 225, 105, 84, 112, 226, 126, 61, 128, 227, 73, 54, 112, 228, 94, 31, 128, 232, 242, 22, 240, 234, 7, 0, 0, 254, 184, 28, 240, 255, 167, 255, 224, 0, 151, 254, 240, 1, 135, 225, 224, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 2, 1, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 255, 255, 175, 58, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 0, 20, 255, 255, 199, 192, 1, 24, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 69, 83, 84, 0, 69, 68, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Inuvik": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 121, 0, 0, 0, 5, 0, 0, 0, 21, 128, 0, 0, 0, 224, 6, 78, 128, 247, 47, 104, 128, 248, 40, 148, 0, 17, 137, 144, 32, 19, 105, 100, 16, 20, 89, 71, 0, 21, 73, 70, 16, 22, 57, 41, 0, 23, 41, 40, 16, 24, 34, 69, 128, 25, 9, 10, 16, 26, 2, 39, 128, 26, 242, 38, 144, 27, 226, 9, 128, 28, 210, 8, 144, 29, 193, 235, 128, 30, 177, 234, 144, 31, 161, 205, 128, 32, 118, 29, 16, 33, 129, 175, 128, 34, 85, 255, 16, 35, 106, 204, 0, 36, 53, 225, 16, 37, 74, 174, 0, 38, 21, 195, 16, 39, 42, 144, 0, 39, 254, 223, 144, 41, 10, 114, 0, 41, 222, 193, 144, 42, 234, 84, 0, 43, 190, 163, 144, 44, 211, 112, 128, 45, 158, 133, 144, 46, 179, 82, 128, 47, 126, 103, 144, 48, 147, 52, 128, 49, 103, 132, 16, 50, 115, 22, 128, 51, 71, 102, 16, 52, 82, 248, 128, 53, 39, 72, 16, 54, 50, 218, 128, 55, 7, 42, 16, 56, 27, 247, 0, 56, 231, 12, 16, 57, 251, 217, 0, 58, 198, 238, 16, 59, 219, 187, 0, 60, 176, 10, 144, 61, 187, 157, 0, 62, 143, 236, 144, 63, 155, 127, 0, 64, 111, 206, 144, 65, 132, 155, 128, 66, 79, 176, 144, 67, 100, 125, 128, 68, 47, 146, 144, 69, 68, 95, 128, 69, 243, 197, 16, 71, 45, 124, 0, 71, 211, 167, 16, 73, 13, 94, 0, 73, 179, 137, 16, 74, 237, 64, 0, 75, 156, 165, 144, 76, 214, 92, 128, 77, 124, 135, 144, 78, 182, 62, 128, 79, 92, 105, 144, 80, 150, 32, 128, 81, 60, 75, 144, 82, 118, 2, 128, 83, 28, 45, 144, 84, 85, 228, 128, 84, 252, 15, 144, 86, 53, 198, 128, 86, 229, 44, 16, 88, 30, 227, 0, 88, 197, 14, 16, 89, 254, 197, 0, 90, 164, 240, 16, 91, 222, 167, 0, 92, 132, 210, 16, 93, 190, 137, 0, 94, 100, 180, 16, 95, 158, 107, 0, 96, 77, 208, 144, 97, 135, 135, 128, 98, 45, 178, 144, 99, 103, 105, 128, 100, 13, 148, 144, 101, 71, 75, 128, 101, 237, 118, 144, 103, 39, 45, 128, 103, 205, 88, 144, 105, 7, 15, 128, 105, 173, 58, 144, 106, 230, 241, 128, 107, 150, 87, 16, 108, 208, 14, 0, 109, 118, 57, 16, 110, 175, 240, 0, 111, 86, 27, 16, 112, 143, 210, 0, 113, 53, 253, 16, 114, 111, 180, 0, 115, 21, 223, 16, 116, 79, 150, 0, 116, 254, 251, 144, 118, 56, 178, 128, 118, 222, 221, 144, 120, 24, 148, 128, 120, 190, 191, 144, 121, 248, 118, 128, 122, 158, 161, 144, 123, 216, 88, 128, 124, 126, 131, 144, 125, 184, 58, 128, 126, 94, 101, 144, 127, 152, 28, 128, 0, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 0, 0, 0, 0, 0, 0, 255, 255, 171, 160, 1, 4, 255, 255, 143, 128, 0, 9, 255, 255, 157, 144, 0, 13, 255, 255, 171, 160, 1, 17, 45, 48, 48, 0, 80, 68, 68, 84, 0, 80, 83, 84, 0, 77, 83, 84, 0, 77, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 77, 83, 84, 55, 77, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Iqaluit": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 122, 0, 0, 0, 10, 0, 0, 0, 33, 128, 0, 0, 0, 204, 108, 161, 128, 210, 35, 244, 112, 210, 96, 251, 224, 247, 47, 62, 80, 248, 40, 105, 208, 19, 105, 71, 240, 20, 89, 42, 224, 21, 73, 41, 240, 22, 57, 12, 224, 23, 41, 11, 240, 24, 34, 41, 96, 25, 8, 237, 240, 26, 2, 11, 96, 26, 242, 10, 112, 27, 225, 237, 96, 28, 209, 236, 112, 29, 193, 207, 96, 30, 177, 206, 112, 31, 161, 177, 96, 32, 118, 0, 240, 33, 129, 147, 96, 34, 85, 226, 240, 35, 106, 175, 224, 36, 53, 196, 240, 37, 74, 145, 224, 38, 21, 166, 240, 39, 42, 115, 224, 39, 254, 195, 112, 41, 10, 85, 224, 41, 222, 165, 112, 42, 234, 55, 224, 43, 190, 135, 112, 44, 211, 84, 96, 45, 158, 105, 112, 46, 179, 54, 96, 47, 126, 75, 112, 48, 147, 24, 96, 49, 103, 103, 240, 50, 114, 250, 96, 51, 71, 73, 240, 52, 82, 220, 96, 53, 39, 43, 240, 54, 50, 190, 96, 55, 7, 13, 240, 56, 27, 218, 224, 56, 230, 254, 0, 57, 251, 202, 240, 58, 198, 209, 240, 59, 219, 158, 224, 60, 175, 238, 112, 61, 187, 128, 224, 62, 143, 208, 112, 63, 155, 98, 224, 64, 111, 178, 112, 65, 132, 127, 96, 66, 79, 148, 112, 67, 100, 97, 96, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 0, 5, 1, 2, 3, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 6, 7, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 0, 0, 0, 0, 0, 0, 255, 255, 199, 192, 1, 4, 255, 255, 185, 176, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 199, 192, 1, 17, 255, 255, 199, 192, 1, 21, 255, 255, 171, 160, 0, 25, 255, 255, 185, 176, 1, 29, 255, 255, 199, 192, 1, 17, 255, 255, 185, 176, 0, 8, 45, 48, 48, 0, 69, 80, 84, 0, 69, 83, 84, 0, 69, 68, 68, 84, 0, 69, 68, 84, 0, 69, 87, 84, 0, 67, 83, 84, 0, 67, 68, 84, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Jamaica": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 4, 0, 0, 0, 16, 128, 0, 0, 0, 147, 15, 180, 255, 7, 141, 25, 112, 9, 16, 164, 96, 9, 173, 148, 240, 10, 240, 134, 96, 11, 224, 133, 112, 12, 217, 162, 224, 13, 192, 103, 112, 14, 185, 132, 224, 15, 169, 131, 240, 16, 153, 102, 224, 17, 137, 101, 240, 18, 121, 72, 224, 19, 105, 71, 240, 20, 89, 42, 224, 21, 73, 41, 240, 22, 57, 12, 224, 23, 41, 11, 240, 24, 34, 41, 96, 25, 8, 237, 240, 26, 2, 11, 96, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 255, 255, 184, 1, 0, 0, 255, 255, 184, 1, 0, 4, 255, 255, 185, 176, 0, 8, 255, 255, 199, 192, 1, 12, 76, 77, 84, 0, 75, 77, 84, 0, 69, 83, 84, 0, 69, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 83, 84, 53, 10}, + + "zoneinfo/America/Jujuy": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 60, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 162, 146, 143, 48, 182, 123, 82, 64, 183, 26, 201, 176, 184, 30, 143, 64, 184, 212, 112, 48, 186, 23, 125, 192, 186, 181, 163, 176, 187, 248, 177, 64, 188, 150, 215, 48, 189, 217, 228, 192, 190, 120, 10, 176, 191, 187, 24, 64, 192, 90, 143, 176, 193, 157, 157, 64, 194, 59, 195, 48, 195, 126, 208, 192, 196, 28, 246, 176, 197, 96, 4, 64, 197, 254, 42, 48, 199, 65, 55, 192, 199, 224, 175, 48, 200, 129, 148, 64, 202, 77, 161, 176, 202, 238, 134, 192, 206, 77, 255, 48, 206, 176, 237, 192, 211, 41, 53, 176, 212, 67, 100, 192, 244, 61, 8, 48, 244, 159, 246, 192, 245, 5, 108, 48, 246, 50, 16, 64, 246, 230, 159, 176, 248, 19, 67, 192, 248, 199, 211, 48, 249, 244, 119, 64, 250, 211, 54, 176, 251, 195, 53, 192, 252, 188, 83, 48, 253, 172, 82, 64, 254, 156, 53, 48, 255, 140, 52, 64, 7, 163, 74, 176, 8, 36, 111, 160, 35, 148, 181, 176, 36, 16, 148, 160, 37, 55, 242, 176, 37, 240, 118, 160, 39, 42, 87, 192, 39, 226, 219, 176, 40, 238, 138, 64, 41, 176, 58, 160, 42, 224, 211, 48, 43, 153, 87, 32, 55, 246, 198, 176, 56, 191, 42, 176, 71, 119, 9, 176, 71, 220, 127, 32, 127, 255, 255, 255, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 4, 5, 4, 5, 4, 2, 3, 2, 4, 5, 4, 5, 3, 5, 4, 5, 5, 255, 255, 194, 200, 0, 0, 255, 255, 195, 208, 0, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 227, 224, 1, 16, 255, 255, 213, 208, 0, 12, 76, 77, 84, 0, 67, 77, 84, 0, 45, 48, 52, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Juneau": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 143, 0, 0, 0, 9, 0, 0, 0, 38, 128, 0, 0, 0, 203, 137, 26, 160, 210, 35, 244, 112, 210, 97, 38, 16, 254, 184, 71, 32, 255, 168, 42, 16, 0, 152, 41, 32, 1, 136, 12, 16, 2, 120, 11, 32, 3, 113, 40, 144, 4, 97, 39, 160, 5, 81, 10, 144, 6, 65, 9, 160, 7, 48, 236, 144, 7, 141, 67, 160, 9, 16, 206, 144, 9, 173, 191, 32, 10, 240, 176, 144, 11, 224, 175, 160, 12, 217, 205, 16, 13, 192, 145, 160, 14, 185, 175, 16, 15, 169, 174, 32, 16, 153, 145, 16, 17, 137, 144, 32, 18, 121, 115, 16, 19, 105, 114, 32, 20, 89, 99, 32, 21, 73, 84, 32, 22, 57, 55, 16, 23, 41, 54, 32, 24, 34, 83, 144, 25, 9, 24, 32, 26, 2, 53, 144, 26, 43, 20, 16, 26, 242, 66, 176, 27, 226, 37, 160, 28, 210, 36, 176, 29, 194, 7, 160, 30, 178, 6, 176, 31, 161, 233, 160, 32, 118, 57, 48, 33, 129, 203, 160, 34, 86, 27, 48, 35, 106, 232, 32, 36, 53, 253, 48, 37, 74, 202, 32, 38, 21, 223, 48, 39, 42, 172, 32, 39, 254, 251, 176, 41, 10, 142, 32, 41, 222, 221, 176, 42, 234, 112, 32, 43, 190, 191, 176, 44, 211, 140, 160, 45, 158, 161, 176, 46, 179, 110, 160, 47, 126, 131, 176, 48, 147, 80, 160, 49, 103, 160, 48, 50, 115, 50, 160, 51, 71, 130, 48, 52, 83, 20, 160, 53, 39, 100, 48, 54, 50, 246, 160, 55, 7, 70, 48, 56, 28, 19, 32, 56, 231, 40, 48, 57, 251, 245, 32, 58, 199, 10, 48, 59, 219, 215, 32, 60, 176, 38, 176, 61, 187, 185, 32, 62, 144, 8, 176, 63, 155, 155, 32, 64, 111, 234, 176, 65, 132, 183, 160, 66, 79, 204, 176, 67, 100, 153, 160, 68, 47, 174, 176, 69, 68, 123, 160, 69, 243, 225, 48, 71, 45, 152, 32, 71, 211, 195, 48, 73, 13, 122, 32, 73, 179, 165, 48, 74, 237, 92, 32, 75, 156, 193, 176, 76, 214, 120, 160, 77, 124, 163, 176, 78, 182, 90, 160, 79, 92, 133, 176, 80, 150, 60, 160, 81, 60, 103, 176, 82, 118, 30, 160, 83, 28, 73, 176, 84, 86, 0, 160, 84, 252, 43, 176, 86, 53, 226, 160, 86, 229, 72, 48, 88, 30, 255, 32, 88, 197, 42, 48, 89, 254, 225, 32, 90, 165, 12, 48, 91, 222, 195, 32, 92, 132, 238, 48, 93, 190, 165, 32, 94, 100, 208, 48, 95, 158, 135, 32, 96, 77, 236, 176, 97, 135, 163, 160, 98, 45, 206, 176, 99, 103, 133, 160, 100, 13, 176, 176, 101, 71, 103, 160, 101, 237, 146, 176, 103, 39, 73, 160, 103, 205, 116, 176, 105, 7, 43, 160, 105, 173, 86, 176, 106, 231, 13, 160, 107, 150, 115, 48, 108, 208, 42, 32, 109, 118, 85, 48, 110, 176, 12, 32, 111, 86, 55, 48, 112, 143, 238, 32, 113, 54, 25, 48, 114, 111, 208, 32, 115, 21, 251, 48, 116, 79, 178, 32, 116, 255, 23, 176, 118, 56, 206, 160, 118, 222, 249, 176, 120, 24, 176, 160, 120, 190, 219, 176, 121, 248, 146, 160, 122, 158, 189, 176, 123, 216, 116, 160, 124, 126, 159, 176, 125, 184, 86, 160, 126, 94, 129, 176, 127, 152, 56, 160, 1, 2, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 1, 4, 1, 4, 1, 4, 6, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 255, 255, 129, 251, 0, 0, 255, 255, 143, 128, 0, 4, 255, 255, 157, 144, 1, 8, 255, 255, 157, 144, 1, 12, 255, 255, 157, 144, 1, 16, 255, 255, 143, 128, 1, 20, 255, 255, 129, 112, 0, 24, 255, 255, 143, 128, 1, 28, 255, 255, 129, 112, 0, 33, 76, 77, 84, 0, 80, 83, 84, 0, 80, 87, 84, 0, 80, 80, 84, 0, 80, 68, 84, 0, 89, 68, 84, 0, 89, 83, 84, 0, 65, 75, 68, 84, 0, 65, 75, 83, 84, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 10, 65, 75, 83, 84, 57, 65, 75, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Kentucky/Louisville": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 178, 0, 0, 0, 7, 0, 0, 0, 28, 128, 0, 0, 0, 158, 166, 44, 128, 159, 186, 249, 112, 160, 134, 14, 128, 161, 154, 219, 112, 164, 115, 247, 0, 165, 22, 17, 112, 202, 13, 78, 128, 202, 216, 71, 112, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 210, 219, 151, 96, 211, 164, 9, 112, 213, 85, 213, 0, 219, 192, 115, 240, 220, 222, 151, 128, 221, 169, 144, 112, 222, 190, 121, 128, 223, 137, 114, 112, 224, 158, 91, 128, 225, 105, 84, 112, 226, 126, 61, 128, 227, 73, 54, 112, 228, 94, 31, 128, 229, 41, 24, 112, 230, 71, 60, 0, 231, 55, 30, 240, 232, 39, 30, 0, 233, 23, 0, 240, 234, 7, 0, 0, 234, 246, 226, 240, 235, 230, 226, 0, 236, 214, 196, 240, 237, 198, 196, 0, 238, 191, 225, 112, 239, 175, 224, 128, 240, 30, 144, 112, 252, 216, 58, 240, 253, 200, 29, 224, 254, 184, 28, 240, 255, 167, 255, 224, 0, 151, 254, 240, 1, 135, 225, 224, 2, 119, 224, 240, 3, 112, 254, 96, 4, 96, 253, 112, 5, 80, 224, 96, 6, 64, 223, 112, 7, 48, 194, 96, 7, 141, 25, 112, 9, 16, 178, 112, 9, 173, 148, 240, 10, 240, 134, 96, 11, 224, 133, 112, 12, 217, 162, 224, 13, 192, 103, 112, 14, 185, 132, 224, 15, 169, 131, 240, 16, 153, 102, 224, 17, 137, 101, 240, 18, 121, 72, 224, 19, 105, 71, 240, 20, 89, 42, 224, 21, 73, 41, 240, 22, 57, 12, 224, 23, 41, 11, 240, 24, 34, 41, 96, 25, 8, 237, 240, 26, 2, 11, 96, 26, 242, 10, 112, 27, 225, 237, 96, 28, 209, 236, 112, 29, 193, 207, 96, 30, 177, 206, 112, 31, 161, 177, 96, 32, 118, 0, 240, 33, 129, 147, 96, 34, 85, 226, 240, 35, 106, 175, 224, 36, 53, 196, 240, 37, 74, 145, 224, 38, 21, 166, 240, 39, 42, 115, 224, 39, 254, 195, 112, 41, 10, 85, 224, 41, 222, 165, 112, 42, 234, 55, 224, 43, 190, 135, 112, 44, 211, 84, 96, 45, 158, 105, 112, 46, 179, 54, 96, 47, 126, 75, 112, 48, 147, 24, 96, 49, 103, 103, 240, 50, 114, 250, 96, 51, 71, 73, 240, 52, 82, 220, 96, 53, 39, 43, 240, 54, 50, 190, 96, 55, 7, 13, 240, 56, 27, 218, 224, 56, 230, 239, 240, 57, 251, 188, 224, 58, 198, 209, 240, 59, 219, 158, 224, 60, 175, 238, 112, 61, 187, 128, 224, 62, 143, 208, 112, 63, 155, 98, 224, 64, 111, 178, 112, 65, 132, 127, 96, 66, 79, 148, 112, 67, 100, 97, 96, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 1, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 255, 255, 175, 154, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 0, 20, 255, 255, 199, 192, 1, 24, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 69, 83, 84, 0, 69, 68, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Kentucky/Monticello": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 148, 0, 0, 0, 7, 0, 0, 0, 28, 128, 0, 0, 0, 158, 166, 44, 128, 159, 186, 249, 112, 160, 134, 14, 128, 161, 154, 219, 112, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 252, 216, 73, 0, 253, 200, 43, 240, 254, 184, 43, 0, 255, 168, 13, 240, 0, 152, 13, 0, 1, 135, 239, 240, 2, 119, 239, 0, 3, 113, 12, 112, 4, 97, 11, 128, 5, 80, 238, 112, 6, 64, 237, 128, 7, 48, 208, 112, 7, 141, 39, 128, 9, 16, 178, 112, 9, 173, 163, 0, 10, 240, 148, 112, 11, 224, 147, 128, 12, 217, 176, 240, 13, 192, 117, 128, 14, 185, 146, 240, 15, 169, 146, 0, 16, 153, 116, 240, 17, 137, 116, 0, 18, 121, 86, 240, 19, 105, 86, 0, 20, 89, 56, 240, 21, 73, 56, 0, 22, 57, 26, 240, 23, 41, 26, 0, 24, 34, 55, 112, 25, 8, 252, 0, 26, 2, 25, 112, 26, 242, 24, 128, 27, 225, 251, 112, 28, 209, 250, 128, 29, 193, 221, 112, 30, 177, 220, 128, 31, 161, 191, 112, 32, 118, 15, 0, 33, 129, 161, 112, 34, 85, 241, 0, 35, 106, 189, 240, 36, 53, 211, 0, 37, 74, 159, 240, 38, 21, 181, 0, 39, 42, 129, 240, 39, 254, 209, 128, 41, 10, 99, 240, 41, 222, 179, 128, 42, 234, 69, 240, 43, 190, 149, 128, 44, 211, 98, 112, 45, 158, 119, 128, 46, 179, 68, 112, 47, 126, 89, 128, 48, 147, 38, 112, 49, 103, 118, 0, 50, 115, 8, 112, 51, 71, 88, 0, 52, 82, 234, 112, 53, 39, 58, 0, 54, 50, 204, 112, 55, 7, 28, 0, 56, 27, 232, 240, 56, 230, 254, 0, 57, 251, 202, 240, 58, 198, 209, 240, 59, 219, 158, 224, 60, 175, 238, 112, 61, 187, 128, 224, 62, 143, 208, 112, 63, 155, 98, 224, 64, 111, 178, 112, 65, 132, 127, 96, 66, 79, 148, 112, 67, 100, 97, 96, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 255, 255, 176, 116, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 255, 255, 199, 192, 1, 20, 255, 255, 185, 176, 0, 24, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 69, 68, 84, 0, 69, 83, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Knox_IN": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 154, 0, 0, 0, 7, 0, 0, 0, 24, 128, 0, 0, 0, 158, 166, 44, 128, 159, 186, 249, 112, 160, 134, 14, 128, 161, 154, 219, 112, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 213, 85, 213, 0, 214, 32, 205, 240, 215, 53, 183, 0, 216, 0, 175, 240, 217, 21, 153, 0, 217, 224, 145, 240, 218, 254, 181, 128, 219, 192, 115, 240, 220, 222, 151, 128, 221, 169, 144, 112, 222, 190, 121, 128, 223, 137, 114, 112, 224, 158, 91, 128, 225, 105, 84, 112, 226, 126, 61, 128, 227, 73, 54, 112, 228, 94, 31, 128, 229, 87, 60, 240, 230, 71, 60, 0, 231, 55, 30, 240, 232, 39, 30, 0, 232, 242, 22, 240, 234, 7, 0, 0, 234, 209, 248, 240, 235, 230, 226, 0, 236, 214, 196, 240, 237, 198, 196, 0, 238, 191, 225, 112, 239, 175, 224, 128, 240, 159, 195, 112, 241, 143, 194, 128, 244, 95, 135, 112, 250, 248, 103, 0, 251, 232, 73, 240, 252, 216, 73, 0, 253, 200, 43, 240, 254, 184, 43, 0, 255, 168, 13, 240, 0, 152, 13, 0, 1, 135, 239, 240, 2, 119, 239, 0, 3, 113, 12, 112, 4, 97, 11, 128, 5, 80, 238, 112, 6, 64, 237, 128, 7, 48, 208, 112, 7, 141, 39, 128, 9, 16, 178, 112, 9, 173, 163, 0, 10, 240, 148, 112, 11, 224, 147, 128, 12, 217, 176, 240, 13, 192, 117, 128, 14, 185, 146, 240, 15, 169, 146, 0, 16, 153, 116, 240, 17, 137, 116, 0, 18, 121, 86, 240, 19, 105, 86, 0, 20, 89, 56, 240, 21, 73, 56, 0, 22, 57, 26, 240, 23, 41, 26, 0, 24, 34, 55, 112, 25, 8, 252, 0, 26, 2, 25, 112, 26, 242, 24, 128, 27, 225, 251, 112, 28, 209, 250, 128, 29, 193, 221, 112, 30, 177, 220, 128, 31, 161, 191, 112, 32, 118, 15, 0, 33, 129, 161, 112, 34, 85, 241, 0, 35, 106, 189, 240, 36, 53, 211, 0, 37, 74, 159, 240, 38, 21, 181, 0, 39, 42, 129, 240, 39, 254, 209, 128, 41, 10, 99, 240, 68, 47, 118, 112, 69, 68, 81, 112, 69, 243, 183, 0, 71, 45, 109, 240, 71, 211, 153, 0, 73, 13, 79, 240, 73, 179, 123, 0, 74, 237, 49, 240, 75, 156, 151, 128, 76, 214, 78, 112, 77, 124, 121, 128, 78, 182, 48, 112, 79, 92, 91, 128, 80, 150, 18, 112, 81, 60, 61, 128, 82, 117, 244, 112, 83, 28, 31, 128, 84, 85, 214, 112, 84, 252, 1, 128, 86, 53, 184, 112, 86, 229, 30, 0, 88, 30, 212, 240, 88, 197, 0, 0, 89, 254, 182, 240, 90, 164, 226, 0, 91, 222, 152, 240, 92, 132, 196, 0, 93, 190, 122, 240, 94, 100, 166, 0, 95, 158, 92, 240, 96, 77, 194, 128, 97, 135, 121, 112, 98, 45, 164, 128, 99, 103, 91, 112, 100, 13, 134, 128, 101, 71, 61, 112, 101, 237, 104, 128, 103, 39, 31, 112, 103, 205, 74, 128, 105, 7, 1, 112, 105, 173, 44, 128, 106, 230, 227, 112, 107, 150, 73, 0, 108, 207, 255, 240, 109, 118, 43, 0, 110, 175, 225, 240, 111, 86, 13, 0, 112, 143, 195, 240, 113, 53, 239, 0, 114, 111, 165, 240, 115, 21, 209, 0, 116, 79, 135, 240, 116, 254, 237, 128, 118, 56, 164, 112, 118, 222, 207, 128, 120, 24, 134, 112, 120, 190, 177, 128, 121, 248, 104, 112, 122, 158, 147, 128, 123, 216, 74, 112, 124, 126, 117, 128, 125, 184, 44, 112, 126, 94, 87, 128, 127, 152, 14, 112, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 5, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 174, 202, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 0, 20, 255, 255, 171, 160, 0, 8, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 69, 83, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Kralendijk": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 14, 128, 0, 0, 0, 147, 30, 46, 35, 246, 152, 236, 72, 0, 1, 2, 255, 255, 191, 93, 0, 0, 255, 255, 192, 184, 0, 4, 255, 255, 199, 192, 0, 10, 76, 77, 84, 0, 45, 48, 52, 51, 48, 0, 65, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/La_Paz": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 17, 128, 0, 0, 0, 184, 30, 150, 228, 184, 238, 213, 212, 127, 255, 255, 255, 1, 2, 3, 3, 255, 255, 192, 28, 0, 0, 255, 255, 192, 28, 0, 4, 255, 255, 206, 44, 1, 8, 255, 255, 199, 192, 0, 13, 76, 77, 84, 0, 67, 77, 84, 0, 66, 79, 83, 84, 0, 45, 48, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 52, 62, 52, 10}, + + "zoneinfo/America/Lima": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 4, 0, 0, 0, 12, 128, 0, 0, 0, 140, 116, 64, 212, 195, 207, 74, 80, 196, 69, 227, 64, 197, 47, 74, 208, 198, 31, 45, 192, 199, 15, 44, 208, 199, 255, 15, 192, 30, 24, 196, 80, 30, 143, 93, 64, 31, 249, 247, 208, 32, 112, 144, 192, 37, 158, 227, 208, 38, 21, 124, 192, 45, 37, 3, 80, 45, 155, 156, 64, 127, 255, 255, 255, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 3, 255, 255, 183, 196, 0, 0, 255, 255, 183, 172, 0, 0, 255, 255, 199, 192, 1, 4, 255, 255, 185, 176, 0, 8, 76, 77, 84, 0, 45, 48, 52, 0, 45, 48, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 53, 62, 53, 10}, + + "zoneinfo/America/Los_Angeles": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 186, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 158, 166, 72, 160, 159, 187, 21, 144, 160, 134, 42, 160, 161, 154, 247, 144, 203, 137, 26, 160, 210, 35, 244, 112, 210, 97, 38, 16, 214, 254, 116, 92, 216, 128, 173, 144, 218, 254, 195, 144, 219, 192, 144, 16, 220, 222, 165, 144, 221, 169, 172, 144, 222, 190, 135, 144, 223, 137, 142, 144, 224, 158, 105, 144, 225, 105, 112, 144, 226, 126, 75, 144, 227, 73, 82, 144, 228, 94, 45, 144, 229, 41, 52, 144, 230, 71, 74, 16, 231, 18, 81, 16, 232, 39, 44, 16, 232, 242, 51, 16, 234, 7, 14, 16, 234, 210, 21, 16, 235, 230, 240, 16, 236, 177, 247, 16, 237, 198, 210, 16, 238, 145, 217, 16, 239, 175, 238, 144, 240, 113, 187, 16, 241, 143, 208, 144, 242, 127, 193, 144, 243, 111, 178, 144, 244, 95, 163, 144, 245, 79, 148, 144, 246, 63, 133, 144, 247, 47, 118, 144, 248, 40, 162, 16, 249, 15, 88, 144, 250, 8, 132, 16, 250, 248, 131, 32, 251, 232, 102, 16, 252, 216, 101, 32, 253, 200, 72, 16, 254, 184, 71, 32, 255, 168, 42, 16, 0, 152, 41, 32, 1, 136, 12, 16, 2, 120, 11, 32, 3, 113, 40, 144, 4, 97, 39, 160, 5, 81, 10, 144, 6, 65, 9, 160, 7, 48, 236, 144, 7, 141, 67, 160, 9, 16, 206, 144, 9, 173, 191, 32, 10, 240, 176, 144, 11, 224, 175, 160, 12, 217, 205, 16, 13, 192, 145, 160, 14, 185, 175, 16, 15, 169, 174, 32, 16, 153, 145, 16, 17, 137, 144, 32, 18, 121, 115, 16, 19, 105, 114, 32, 20, 89, 85, 16, 21, 73, 84, 32, 22, 57, 55, 16, 23, 41, 54, 32, 24, 34, 83, 144, 25, 9, 24, 32, 26, 2, 53, 144, 26, 242, 52, 160, 27, 226, 23, 144, 28, 210, 22, 160, 29, 193, 249, 144, 30, 177, 248, 160, 31, 161, 219, 144, 32, 118, 43, 32, 33, 129, 189, 144, 34, 86, 13, 32, 35, 106, 218, 16, 36, 53, 239, 32, 37, 74, 188, 16, 38, 21, 209, 32, 39, 42, 158, 16, 39, 254, 237, 160, 41, 10, 128, 16, 41, 222, 207, 160, 42, 234, 98, 16, 43, 190, 177, 160, 44, 211, 126, 144, 45, 158, 147, 160, 46, 179, 96, 144, 47, 126, 117, 160, 48, 147, 66, 144, 49, 103, 146, 32, 50, 115, 36, 144, 51, 71, 116, 32, 52, 83, 6, 144, 53, 39, 86, 32, 54, 50, 232, 144, 55, 7, 56, 32, 56, 28, 5, 16, 56, 231, 26, 32, 57, 251, 231, 16, 58, 198, 252, 32, 59, 219, 201, 16, 60, 176, 24, 160, 61, 187, 171, 16, 62, 143, 250, 160, 63, 155, 141, 16, 64, 111, 220, 160, 65, 132, 169, 144, 66, 79, 190, 160, 67, 100, 139, 144, 68, 47, 160, 160, 69, 68, 109, 144, 69, 243, 211, 32, 71, 45, 138, 16, 71, 211, 181, 32, 73, 13, 108, 16, 73, 179, 151, 32, 74, 237, 78, 16, 75, 156, 179, 160, 76, 214, 106, 144, 77, 124, 149, 160, 78, 182, 76, 144, 79, 92, 119, 160, 80, 150, 46, 144, 81, 60, 89, 160, 82, 118, 16, 144, 83, 28, 59, 160, 84, 85, 242, 144, 84, 252, 29, 160, 86, 53, 212, 144, 86, 229, 58, 32, 88, 30, 241, 16, 88, 197, 28, 32, 89, 254, 211, 16, 90, 164, 254, 32, 91, 222, 181, 16, 92, 132, 224, 32, 93, 190, 151, 16, 94, 100, 194, 32, 95, 158, 121, 16, 96, 77, 222, 160, 97, 135, 149, 144, 98, 45, 192, 160, 99, 103, 119, 144, 100, 13, 162, 160, 101, 71, 89, 144, 101, 237, 132, 160, 103, 39, 59, 144, 103, 205, 102, 160, 105, 7, 29, 144, 105, 173, 72, 160, 106, 230, 255, 144, 107, 150, 101, 32, 108, 208, 28, 16, 109, 118, 71, 32, 110, 175, 254, 16, 111, 86, 41, 32, 112, 143, 224, 16, 113, 54, 11, 32, 114, 111, 194, 16, 115, 21, 237, 32, 116, 79, 164, 16, 116, 255, 9, 160, 118, 56, 192, 144, 118, 222, 235, 160, 120, 24, 162, 144, 120, 190, 205, 160, 121, 248, 132, 144, 122, 158, 175, 160, 123, 216, 102, 144, 124, 126, 145, 160, 125, 184, 72, 144, 126, 94, 115, 160, 127, 152, 42, 144, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 145, 38, 0, 0, 255, 255, 157, 144, 1, 4, 255, 255, 143, 128, 0, 8, 255, 255, 157, 144, 1, 12, 255, 255, 157, 144, 1, 16, 76, 77, 84, 0, 80, 68, 84, 0, 80, 83, 84, 0, 80, 87, 84, 0, 80, 80, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 10, 80, 83, 84, 56, 80, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Louisville": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 178, 0, 0, 0, 7, 0, 0, 0, 28, 128, 0, 0, 0, 158, 166, 44, 128, 159, 186, 249, 112, 160, 134, 14, 128, 161, 154, 219, 112, 164, 115, 247, 0, 165, 22, 17, 112, 202, 13, 78, 128, 202, 216, 71, 112, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 210, 219, 151, 96, 211, 164, 9, 112, 213, 85, 213, 0, 219, 192, 115, 240, 220, 222, 151, 128, 221, 169, 144, 112, 222, 190, 121, 128, 223, 137, 114, 112, 224, 158, 91, 128, 225, 105, 84, 112, 226, 126, 61, 128, 227, 73, 54, 112, 228, 94, 31, 128, 229, 41, 24, 112, 230, 71, 60, 0, 231, 55, 30, 240, 232, 39, 30, 0, 233, 23, 0, 240, 234, 7, 0, 0, 234, 246, 226, 240, 235, 230, 226, 0, 236, 214, 196, 240, 237, 198, 196, 0, 238, 191, 225, 112, 239, 175, 224, 128, 240, 30, 144, 112, 252, 216, 58, 240, 253, 200, 29, 224, 254, 184, 28, 240, 255, 167, 255, 224, 0, 151, 254, 240, 1, 135, 225, 224, 2, 119, 224, 240, 3, 112, 254, 96, 4, 96, 253, 112, 5, 80, 224, 96, 6, 64, 223, 112, 7, 48, 194, 96, 7, 141, 25, 112, 9, 16, 178, 112, 9, 173, 148, 240, 10, 240, 134, 96, 11, 224, 133, 112, 12, 217, 162, 224, 13, 192, 103, 112, 14, 185, 132, 224, 15, 169, 131, 240, 16, 153, 102, 224, 17, 137, 101, 240, 18, 121, 72, 224, 19, 105, 71, 240, 20, 89, 42, 224, 21, 73, 41, 240, 22, 57, 12, 224, 23, 41, 11, 240, 24, 34, 41, 96, 25, 8, 237, 240, 26, 2, 11, 96, 26, 242, 10, 112, 27, 225, 237, 96, 28, 209, 236, 112, 29, 193, 207, 96, 30, 177, 206, 112, 31, 161, 177, 96, 32, 118, 0, 240, 33, 129, 147, 96, 34, 85, 226, 240, 35, 106, 175, 224, 36, 53, 196, 240, 37, 74, 145, 224, 38, 21, 166, 240, 39, 42, 115, 224, 39, 254, 195, 112, 41, 10, 85, 224, 41, 222, 165, 112, 42, 234, 55, 224, 43, 190, 135, 112, 44, 211, 84, 96, 45, 158, 105, 112, 46, 179, 54, 96, 47, 126, 75, 112, 48, 147, 24, 96, 49, 103, 103, 240, 50, 114, 250, 96, 51, 71, 73, 240, 52, 82, 220, 96, 53, 39, 43, 240, 54, 50, 190, 96, 55, 7, 13, 240, 56, 27, 218, 224, 56, 230, 239, 240, 57, 251, 188, 224, 58, 198, 209, 240, 59, 219, 158, 224, 60, 175, 238, 112, 61, 187, 128, 224, 62, 143, 208, 112, 63, 155, 98, 224, 64, 111, 178, 112, 65, 132, 127, 96, 66, 79, 148, 112, 67, 100, 97, 96, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 1, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 255, 255, 175, 154, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 0, 20, 255, 255, 199, 192, 1, 24, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 69, 83, 84, 0, 69, 68, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Lower_Princes": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 14, 128, 0, 0, 0, 147, 30, 46, 35, 246, 152, 236, 72, 0, 1, 2, 255, 255, 191, 93, 0, 0, 255, 255, 192, 184, 0, 4, 255, 255, 199, 192, 0, 10, 76, 77, 84, 0, 45, 48, 52, 51, 48, 0, 65, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/Maceio": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 43, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 150, 170, 104, 124, 184, 15, 73, 224, 184, 253, 64, 160, 185, 241, 52, 48, 186, 222, 116, 32, 218, 56, 174, 48, 218, 235, 250, 48, 220, 25, 225, 176, 220, 185, 89, 32, 221, 251, 21, 48, 222, 155, 222, 32, 223, 221, 154, 48, 224, 84, 51, 32, 244, 151, 255, 176, 245, 5, 94, 32, 246, 192, 100, 48, 247, 14, 30, 160, 248, 81, 44, 48, 248, 199, 197, 32, 250, 10, 210, 176, 250, 168, 248, 160, 251, 236, 6, 48, 252, 139, 125, 160, 29, 201, 142, 48, 30, 120, 215, 160, 31, 160, 53, 176, 32, 51, 207, 160, 33, 129, 105, 48, 34, 11, 200, 160, 35, 88, 16, 176, 35, 226, 112, 32, 37, 55, 242, 176, 37, 212, 199, 32, 48, 128, 121, 48, 49, 29, 77, 160, 55, 246, 198, 176, 56, 184, 133, 32, 57, 223, 227, 48, 57, 242, 74, 32, 59, 200, 255, 176, 60, 111, 14, 160, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 255, 255, 222, 132, 0, 0, 255, 255, 227, 224, 1, 4, 255, 255, 213, 208, 0, 8, 76, 77, 84, 0, 45, 48, 50, 0, 45, 48, 51, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Managua": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 189, 45, 72, 232, 6, 67, 116, 96, 9, 164, 62, 80, 17, 81, 248, 224, 17, 212, 111, 80, 19, 49, 218, 224, 19, 180, 81, 80, 41, 97, 145, 32, 42, 193, 75, 80, 43, 67, 221, 224, 50, 201, 239, 80, 66, 88, 192, 224, 67, 63, 105, 80, 68, 84, 110, 128, 69, 31, 89, 96, 1, 2, 3, 2, 4, 2, 4, 2, 3, 2, 3, 2, 4, 2, 4, 2, 255, 255, 175, 28, 0, 0, 255, 255, 175, 24, 0, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 0, 12, 255, 255, 185, 176, 1, 16, 255, 255, 171, 160, 0, 8, 76, 77, 84, 0, 77, 77, 84, 0, 67, 83, 84, 0, 69, 83, 84, 0, 67, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 54, 10}, + + "zoneinfo/America/Manaus": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 33, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 150, 170, 127, 68, 184, 15, 87, 240, 184, 253, 78, 176, 185, 241, 66, 64, 186, 222, 130, 48, 218, 56, 188, 64, 218, 236, 8, 64, 220, 25, 239, 192, 220, 185, 103, 48, 221, 251, 35, 64, 222, 155, 236, 48, 223, 221, 168, 64, 224, 84, 65, 48, 244, 152, 13, 192, 245, 5, 108, 48, 246, 192, 114, 64, 247, 14, 44, 176, 248, 81, 58, 64, 248, 199, 211, 48, 250, 10, 224, 192, 250, 169, 6, 176, 251, 236, 20, 64, 252, 139, 139, 176, 29, 201, 156, 64, 30, 120, 229, 176, 31, 160, 67, 192, 32, 51, 221, 176, 33, 129, 119, 64, 34, 11, 214, 176, 44, 192, 195, 64, 45, 102, 210, 48, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 255, 255, 199, 188, 0, 0, 255, 255, 213, 208, 1, 4, 255, 255, 199, 192, 0, 8, 76, 77, 84, 0, 45, 48, 51, 0, 45, 48, 52, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 52, 62, 52, 10}, + + "zoneinfo/America/Marigot": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 147, 55, 51, 172, 0, 1, 255, 255, 198, 84, 0, 0, 255, 255, 199, 192, 0, 4, 76, 77, 84, 0, 65, 83, 84, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/Martinique": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 17, 128, 0, 0, 0, 145, 163, 200, 68, 19, 77, 110, 64, 20, 52, 22, 176, 1, 2, 3, 2, 255, 255, 198, 188, 0, 0, 255, 255, 198, 188, 0, 4, 255, 255, 199, 192, 0, 9, 255, 255, 213, 208, 1, 13, 76, 77, 84, 0, 70, 70, 77, 84, 0, 65, 83, 84, 0, 65, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/Matamoros": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 88, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 165, 182, 218, 96, 34, 85, 241, 0, 35, 106, 189, 240, 49, 103, 118, 0, 50, 115, 8, 112, 51, 71, 88, 0, 52, 82, 234, 112, 53, 39, 58, 0, 54, 50, 204, 112, 55, 7, 28, 0, 56, 27, 232, 240, 56, 230, 254, 0, 57, 251, 202, 240, 58, 245, 4, 128, 59, 182, 194, 240, 60, 175, 252, 128, 61, 187, 142, 240, 62, 143, 222, 128, 63, 155, 112, 240, 64, 111, 192, 128, 65, 132, 141, 112, 66, 79, 162, 128, 67, 100, 111, 112, 68, 47, 132, 128, 69, 68, 81, 112, 70, 15, 102, 128, 71, 36, 51, 112, 71, 248, 131, 0, 73, 4, 21, 112, 73, 216, 101, 0, 74, 227, 247, 112, 75, 156, 151, 128, 76, 214, 78, 112, 77, 124, 121, 128, 78, 182, 48, 112, 79, 92, 91, 128, 80, 150, 18, 112, 81, 60, 61, 128, 82, 117, 244, 112, 83, 28, 31, 128, 84, 85, 214, 112, 84, 252, 1, 128, 86, 53, 184, 112, 86, 229, 30, 0, 88, 30, 212, 240, 88, 197, 0, 0, 89, 254, 182, 240, 90, 164, 226, 0, 91, 222, 152, 240, 92, 132, 196, 0, 93, 190, 122, 240, 94, 100, 166, 0, 95, 158, 92, 240, 96, 77, 194, 128, 97, 135, 121, 112, 98, 45, 164, 128, 99, 103, 91, 112, 100, 13, 134, 128, 101, 71, 61, 112, 101, 237, 104, 128, 103, 39, 31, 112, 103, 205, 74, 128, 105, 7, 1, 112, 105, 173, 44, 128, 106, 230, 227, 112, 107, 150, 73, 0, 108, 207, 255, 240, 109, 118, 43, 0, 110, 175, 225, 240, 111, 86, 13, 0, 112, 143, 195, 240, 113, 53, 239, 0, 114, 111, 165, 240, 115, 21, 209, 0, 116, 79, 135, 240, 116, 254, 237, 128, 118, 56, 164, 112, 118, 222, 207, 128, 120, 24, 134, 112, 120, 190, 177, 128, 121, 248, 104, 112, 122, 158, 147, 128, 123, 216, 74, 112, 124, 126, 117, 128, 125, 184, 44, 112, 126, 94, 87, 128, 127, 152, 14, 112, 0, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 255, 255, 162, 64, 0, 0, 255, 255, 171, 160, 0, 4, 255, 255, 185, 176, 1, 8, 76, 77, 84, 0, 67, 83, 84, 0, 67, 68, 84, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Mazatlan": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 94, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 165, 182, 232, 112, 175, 242, 110, 224, 182, 102, 86, 96, 183, 67, 210, 96, 184, 12, 54, 96, 184, 253, 134, 240, 203, 234, 113, 96, 216, 145, 180, 240, 0, 0, 112, 128, 49, 103, 132, 16, 50, 115, 22, 128, 51, 71, 102, 16, 52, 82, 248, 128, 53, 39, 72, 16, 54, 50, 218, 128, 55, 7, 42, 16, 56, 27, 247, 0, 56, 231, 12, 16, 57, 251, 217, 0, 58, 245, 18, 144, 59, 182, 209, 0, 60, 176, 10, 144, 61, 187, 157, 0, 62, 143, 236, 144, 63, 155, 127, 0, 64, 111, 206, 144, 65, 132, 155, 128, 66, 79, 176, 144, 67, 100, 125, 128, 68, 47, 146, 144, 69, 68, 95, 128, 70, 15, 116, 144, 71, 36, 65, 128, 71, 248, 145, 16, 73, 4, 35, 128, 73, 216, 115, 16, 74, 228, 5, 128, 75, 184, 85, 16, 76, 205, 34, 0, 77, 152, 55, 16, 78, 173, 4, 0, 79, 120, 25, 16, 80, 140, 230, 0, 81, 97, 53, 144, 82, 108, 200, 0, 83, 65, 23, 144, 84, 76, 170, 0, 85, 32, 249, 144, 86, 44, 140, 0, 87, 0, 219, 144, 88, 21, 168, 128, 88, 224, 189, 144, 89, 245, 138, 128, 90, 192, 159, 144, 91, 213, 108, 128, 92, 169, 188, 16, 93, 181, 78, 128, 94, 137, 158, 16, 95, 149, 48, 128, 96, 105, 128, 16, 97, 126, 77, 0, 98, 73, 98, 16, 99, 94, 47, 0, 100, 41, 68, 16, 101, 62, 17, 0, 102, 18, 96, 144, 103, 29, 243, 0, 103, 242, 66, 144, 104, 253, 213, 0, 105, 210, 36, 144, 106, 221, 183, 0, 107, 178, 6, 144, 108, 198, 211, 128, 109, 145, 232, 144, 110, 166, 181, 128, 111, 113, 202, 144, 112, 134, 151, 128, 113, 90, 231, 16, 114, 102, 121, 128, 115, 58, 201, 16, 116, 70, 91, 128, 117, 26, 171, 16, 118, 47, 120, 0, 118, 250, 141, 16, 120, 15, 90, 0, 120, 218, 111, 16, 121, 239, 60, 0, 122, 186, 81, 16, 123, 207, 30, 0, 124, 163, 109, 144, 125, 175, 0, 0, 126, 131, 79, 144, 127, 142, 226, 0, 0, 1, 2, 1, 2, 1, 2, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 255, 255, 156, 60, 0, 0, 255, 255, 157, 144, 0, 4, 255, 255, 171, 160, 0, 8, 255, 255, 143, 128, 0, 12, 255, 255, 171, 160, 1, 16, 255, 255, 157, 144, 0, 4, 76, 77, 84, 0, 77, 83, 84, 0, 67, 83, 84, 0, 80, 83, 84, 0, 77, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 77, 83, 84, 55, 77, 68, 84, 44, 77, 52, 46, 49, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/America/Mendoza": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 62, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 162, 146, 143, 48, 182, 123, 82, 64, 183, 26, 201, 176, 184, 30, 143, 64, 184, 212, 112, 48, 186, 23, 125, 192, 186, 181, 163, 176, 187, 248, 177, 64, 188, 150, 215, 48, 189, 217, 228, 192, 190, 120, 10, 176, 191, 187, 24, 64, 192, 90, 143, 176, 193, 157, 157, 64, 194, 59, 195, 48, 195, 126, 208, 192, 196, 28, 246, 176, 197, 96, 4, 64, 197, 254, 42, 48, 199, 65, 55, 192, 199, 224, 175, 48, 200, 129, 148, 64, 202, 77, 161, 176, 202, 238, 134, 192, 206, 77, 255, 48, 206, 176, 237, 192, 211, 41, 53, 176, 212, 67, 100, 192, 244, 61, 8, 48, 244, 159, 246, 192, 245, 5, 108, 48, 246, 50, 16, 64, 246, 230, 159, 176, 248, 19, 67, 192, 248, 199, 211, 48, 249, 244, 119, 64, 250, 211, 54, 176, 251, 195, 53, 192, 252, 188, 83, 48, 253, 172, 82, 64, 254, 156, 53, 48, 255, 140, 52, 64, 7, 163, 74, 176, 8, 36, 111, 160, 35, 148, 181, 176, 36, 16, 148, 160, 37, 55, 242, 176, 37, 240, 118, 160, 39, 25, 52, 64, 39, 205, 195, 176, 40, 250, 103, 192, 41, 176, 72, 176, 42, 224, 225, 64, 43, 153, 87, 32, 55, 246, 198, 176, 56, 191, 42, 176, 64, 176, 19, 176, 65, 86, 62, 192, 71, 119, 9, 176, 71, 220, 127, 32, 127, 255, 255, 255, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 4, 5, 4, 5, 4, 2, 3, 2, 3, 2, 4, 5, 3, 5, 2, 5, 4, 5, 5, 255, 255, 191, 124, 0, 0, 255, 255, 195, 208, 0, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 227, 224, 1, 16, 255, 255, 213, 208, 0, 12, 76, 77, 84, 0, 67, 77, 84, 0, 45, 48, 52, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Menominee": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 143, 0, 0, 0, 7, 0, 0, 0, 24, 128, 0, 0, 0, 158, 166, 44, 128, 159, 186, 249, 112, 160, 134, 14, 128, 161, 154, 219, 112, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 211, 117, 243, 0, 212, 64, 235, 240, 249, 15, 74, 128, 250, 8, 103, 240, 254, 184, 43, 0, 6, 64, 223, 112, 7, 48, 208, 112, 7, 141, 39, 128, 9, 16, 178, 112, 9, 173, 163, 0, 10, 240, 148, 112, 11, 224, 147, 128, 12, 217, 176, 240, 13, 192, 117, 128, 14, 185, 146, 240, 15, 169, 146, 0, 16, 153, 116, 240, 17, 137, 116, 0, 18, 121, 86, 240, 19, 105, 86, 0, 20, 89, 56, 240, 21, 73, 56, 0, 22, 57, 26, 240, 23, 41, 26, 0, 24, 34, 55, 112, 25, 8, 252, 0, 26, 2, 25, 112, 26, 242, 24, 128, 27, 225, 251, 112, 28, 209, 250, 128, 29, 193, 221, 112, 30, 177, 220, 128, 31, 161, 191, 112, 32, 118, 15, 0, 33, 129, 161, 112, 34, 85, 241, 0, 35, 106, 189, 240, 36, 53, 211, 0, 37, 74, 159, 240, 38, 21, 181, 0, 39, 42, 129, 240, 39, 254, 209, 128, 41, 10, 99, 240, 41, 222, 179, 128, 42, 234, 69, 240, 43, 190, 149, 128, 44, 211, 98, 112, 45, 158, 119, 128, 46, 179, 68, 112, 47, 126, 89, 128, 48, 147, 38, 112, 49, 103, 118, 0, 50, 115, 8, 112, 51, 71, 88, 0, 52, 82, 234, 112, 53, 39, 58, 0, 54, 50, 204, 112, 55, 7, 28, 0, 56, 27, 232, 240, 56, 230, 254, 0, 57, 251, 202, 240, 58, 198, 224, 0, 59, 219, 172, 240, 60, 175, 252, 128, 61, 187, 142, 240, 62, 143, 222, 128, 63, 155, 112, 240, 64, 111, 192, 128, 65, 132, 141, 112, 66, 79, 162, 128, 67, 100, 111, 112, 68, 47, 132, 128, 69, 68, 81, 112, 69, 243, 183, 0, 71, 45, 109, 240, 71, 211, 153, 0, 73, 13, 79, 240, 73, 179, 123, 0, 74, 237, 49, 240, 75, 156, 151, 128, 76, 214, 78, 112, 77, 124, 121, 128, 78, 182, 48, 112, 79, 92, 91, 128, 80, 150, 18, 112, 81, 60, 61, 128, 82, 117, 244, 112, 83, 28, 31, 128, 84, 85, 214, 112, 84, 252, 1, 128, 86, 53, 184, 112, 86, 229, 30, 0, 88, 30, 212, 240, 88, 197, 0, 0, 89, 254, 182, 240, 90, 164, 226, 0, 91, 222, 152, 240, 92, 132, 196, 0, 93, 190, 122, 240, 94, 100, 166, 0, 95, 158, 92, 240, 96, 77, 194, 128, 97, 135, 121, 112, 98, 45, 164, 128, 99, 103, 91, 112, 100, 13, 134, 128, 101, 71, 61, 112, 101, 237, 104, 128, 103, 39, 31, 112, 103, 205, 74, 128, 105, 7, 1, 112, 105, 173, 44, 128, 106, 230, 227, 112, 107, 150, 73, 0, 108, 207, 255, 240, 109, 118, 43, 0, 110, 175, 225, 240, 111, 86, 13, 0, 112, 143, 195, 240, 113, 53, 239, 0, 114, 111, 165, 240, 115, 21, 209, 0, 116, 79, 135, 240, 116, 254, 237, 128, 118, 56, 164, 112, 118, 222, 207, 128, 120, 24, 134, 112, 120, 190, 177, 128, 121, 248, 104, 112, 122, 158, 147, 128, 123, 216, 74, 112, 124, 126, 117, 128, 125, 184, 44, 112, 126, 94, 87, 128, 127, 152, 14, 112, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 5, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 173, 221, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 0, 20, 255, 255, 171, 160, 0, 8, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 69, 83, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Merida": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 88, 0, 0, 0, 5, 0, 0, 0, 16, 128, 0, 0, 0, 165, 182, 218, 96, 22, 134, 213, 96, 24, 76, 75, 80, 49, 103, 118, 0, 50, 115, 8, 112, 51, 71, 88, 0, 52, 82, 234, 112, 53, 39, 58, 0, 54, 50, 204, 112, 55, 7, 28, 0, 56, 27, 232, 240, 56, 230, 254, 0, 57, 251, 202, 240, 58, 245, 4, 128, 59, 182, 194, 240, 60, 175, 252, 128, 61, 187, 142, 240, 62, 143, 222, 128, 63, 155, 112, 240, 64, 111, 192, 128, 65, 132, 141, 112, 66, 79, 162, 128, 67, 100, 111, 112, 68, 47, 132, 128, 69, 68, 81, 112, 70, 15, 102, 128, 71, 36, 51, 112, 71, 248, 131, 0, 73, 4, 21, 112, 73, 216, 101, 0, 74, 227, 247, 112, 75, 184, 71, 0, 76, 205, 19, 240, 77, 152, 41, 0, 78, 172, 245, 240, 79, 120, 11, 0, 80, 140, 215, 240, 81, 97, 39, 128, 82, 108, 185, 240, 83, 65, 9, 128, 84, 76, 155, 240, 85, 32, 235, 128, 86, 44, 125, 240, 87, 0, 205, 128, 88, 21, 154, 112, 88, 224, 175, 128, 89, 245, 124, 112, 90, 192, 145, 128, 91, 213, 94, 112, 92, 169, 174, 0, 93, 181, 64, 112, 94, 137, 144, 0, 95, 149, 34, 112, 96, 105, 114, 0, 97, 126, 62, 240, 98, 73, 84, 0, 99, 94, 32, 240, 100, 41, 54, 0, 101, 62, 2, 240, 102, 18, 82, 128, 103, 29, 228, 240, 103, 242, 52, 128, 104, 253, 198, 240, 105, 210, 22, 128, 106, 221, 168, 240, 107, 177, 248, 128, 108, 198, 197, 112, 109, 145, 218, 128, 110, 166, 167, 112, 111, 113, 188, 128, 112, 134, 137, 112, 113, 90, 217, 0, 114, 102, 107, 112, 115, 58, 187, 0, 116, 70, 77, 112, 117, 26, 157, 0, 118, 47, 105, 240, 118, 250, 127, 0, 120, 15, 75, 240, 120, 218, 97, 0, 121, 239, 45, 240, 122, 186, 67, 0, 123, 207, 15, 240, 124, 163, 95, 128, 125, 174, 241, 240, 126, 131, 65, 128, 127, 142, 211, 240, 0, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 255, 255, 171, 252, 0, 0, 255, 255, 171, 160, 0, 4, 255, 255, 185, 176, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 171, 160, 0, 4, 76, 77, 84, 0, 67, 83, 84, 0, 69, 83, 84, 0, 67, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 52, 46, 49, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/America/Metlakatla": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 79, 0, 0, 0, 7, 0, 0, 0, 30, 128, 0, 0, 0, 203, 137, 26, 160, 210, 35, 244, 112, 210, 97, 38, 16, 254, 184, 71, 32, 255, 168, 42, 16, 0, 152, 41, 32, 1, 136, 12, 16, 2, 120, 11, 32, 3, 113, 40, 144, 4, 97, 39, 160, 5, 81, 10, 144, 6, 65, 9, 160, 7, 48, 236, 144, 7, 141, 67, 160, 9, 16, 206, 144, 9, 173, 191, 32, 10, 240, 176, 144, 11, 224, 175, 160, 12, 217, 205, 16, 13, 192, 145, 160, 14, 185, 175, 16, 15, 169, 174, 32, 16, 153, 145, 16, 17, 137, 144, 32, 18, 121, 115, 16, 19, 105, 114, 32, 20, 89, 85, 16, 21, 73, 84, 32, 22, 57, 55, 16, 23, 41, 54, 32, 24, 34, 83, 144, 25, 9, 24, 32, 26, 2, 53, 144, 86, 53, 226, 160, 86, 229, 72, 48, 88, 30, 255, 32, 88, 197, 42, 48, 89, 254, 225, 32, 90, 165, 12, 48, 91, 222, 195, 32, 92, 132, 238, 48, 93, 190, 165, 32, 94, 100, 208, 48, 95, 158, 135, 32, 96, 77, 236, 176, 97, 135, 163, 160, 98, 45, 206, 176, 99, 103, 133, 160, 100, 13, 176, 176, 101, 71, 103, 160, 101, 237, 146, 176, 103, 39, 73, 160, 103, 205, 116, 176, 105, 7, 43, 160, 105, 173, 86, 176, 106, 231, 13, 160, 107, 150, 115, 48, 108, 208, 42, 32, 109, 118, 85, 48, 110, 176, 12, 32, 111, 86, 55, 48, 112, 143, 238, 32, 113, 54, 25, 48, 114, 111, 208, 32, 115, 21, 251, 48, 116, 79, 178, 32, 116, 255, 23, 176, 118, 56, 206, 160, 118, 222, 249, 176, 120, 24, 176, 160, 120, 190, 219, 176, 121, 248, 146, 160, 122, 158, 189, 176, 123, 216, 116, 160, 124, 126, 159, 176, 125, 184, 86, 160, 126, 94, 129, 176, 127, 152, 56, 160, 1, 2, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 255, 255, 132, 166, 0, 0, 255, 255, 143, 128, 0, 4, 255, 255, 157, 144, 1, 8, 255, 255, 157, 144, 1, 12, 255, 255, 157, 144, 1, 16, 255, 255, 129, 112, 0, 20, 255, 255, 143, 128, 1, 25, 76, 77, 84, 0, 80, 83, 84, 0, 80, 87, 84, 0, 80, 80, 84, 0, 80, 68, 84, 0, 65, 75, 83, 84, 0, 65, 75, 68, 84, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 10, 65, 75, 83, 84, 57, 65, 75, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Mexico_City": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 99, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 165, 182, 232, 112, 175, 242, 110, 224, 182, 102, 86, 96, 183, 67, 210, 96, 184, 12, 54, 96, 184, 253, 134, 240, 197, 222, 176, 96, 198, 151, 52, 80, 201, 85, 241, 224, 201, 234, 221, 80, 207, 2, 198, 224, 207, 183, 86, 80, 218, 153, 21, 224, 219, 118, 131, 208, 49, 103, 118, 0, 50, 115, 8, 112, 51, 71, 88, 0, 52, 82, 234, 112, 53, 39, 58, 0, 54, 50, 204, 112, 55, 7, 28, 0, 56, 27, 232, 240, 56, 230, 254, 0, 57, 251, 202, 240, 58, 245, 4, 128, 59, 182, 194, 240, 60, 175, 252, 128, 61, 187, 142, 240, 62, 143, 222, 128, 63, 155, 112, 240, 64, 111, 192, 128, 65, 132, 141, 112, 66, 79, 162, 128, 67, 100, 111, 112, 68, 47, 132, 128, 69, 68, 81, 112, 70, 15, 102, 128, 71, 36, 51, 112, 71, 248, 131, 0, 73, 4, 21, 112, 73, 216, 101, 0, 74, 227, 247, 112, 75, 184, 71, 0, 76, 205, 19, 240, 77, 152, 41, 0, 78, 172, 245, 240, 79, 120, 11, 0, 80, 140, 215, 240, 81, 97, 39, 128, 82, 108, 185, 240, 83, 65, 9, 128, 84, 76, 155, 240, 85, 32, 235, 128, 86, 44, 125, 240, 87, 0, 205, 128, 88, 21, 154, 112, 88, 224, 175, 128, 89, 245, 124, 112, 90, 192, 145, 128, 91, 213, 94, 112, 92, 169, 174, 0, 93, 181, 64, 112, 94, 137, 144, 0, 95, 149, 34, 112, 96, 105, 114, 0, 97, 126, 62, 240, 98, 73, 84, 0, 99, 94, 32, 240, 100, 41, 54, 0, 101, 62, 2, 240, 102, 18, 82, 128, 103, 29, 228, 240, 103, 242, 52, 128, 104, 253, 198, 240, 105, 210, 22, 128, 106, 221, 168, 240, 107, 177, 248, 128, 108, 198, 197, 112, 109, 145, 218, 128, 110, 166, 167, 112, 111, 113, 188, 128, 112, 134, 137, 112, 113, 90, 217, 0, 114, 102, 107, 112, 115, 58, 187, 0, 116, 70, 77, 112, 117, 26, 157, 0, 118, 47, 105, 240, 118, 250, 127, 0, 120, 15, 75, 240, 120, 218, 97, 0, 121, 239, 45, 240, 122, 186, 67, 0, 123, 207, 15, 240, 124, 163, 95, 128, 125, 174, 241, 240, 126, 131, 65, 128, 127, 142, 211, 240, 0, 1, 2, 1, 2, 1, 2, 3, 2, 3, 2, 4, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 255, 255, 163, 12, 0, 0, 255, 255, 157, 144, 0, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 76, 77, 84, 0, 77, 83, 84, 0, 67, 83, 84, 0, 67, 68, 84, 0, 67, 87, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 52, 46, 49, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/America/Miquelon": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 106, 0, 0, 0, 4, 0, 0, 0, 16, 128, 0, 0, 0, 145, 182, 56, 168, 19, 110, 99, 192, 32, 117, 228, 208, 33, 129, 119, 64, 34, 85, 198, 208, 35, 106, 147, 192, 36, 53, 168, 208, 37, 74, 117, 192, 38, 21, 138, 208, 39, 42, 87, 192, 39, 254, 167, 80, 41, 10, 57, 192, 41, 222, 137, 80, 42, 234, 27, 192, 43, 190, 107, 80, 44, 211, 56, 64, 45, 158, 77, 80, 46, 179, 26, 64, 47, 126, 47, 80, 48, 146, 252, 64, 49, 103, 75, 208, 50, 114, 222, 64, 51, 71, 45, 208, 52, 82, 192, 64, 53, 39, 15, 208, 54, 50, 162, 64, 55, 6, 241, 208, 56, 27, 190, 192, 56, 230, 211, 208, 57, 251, 160, 192, 58, 198, 181, 208, 59, 219, 130, 192, 60, 175, 210, 80, 61, 187, 100, 192, 62, 143, 180, 80, 63, 155, 70, 192, 64, 111, 150, 80, 65, 132, 99, 64, 66, 79, 120, 80, 67, 100, 69, 64, 68, 47, 90, 80, 69, 68, 39, 64, 69, 243, 140, 208, 71, 45, 67, 192, 71, 211, 110, 208, 73, 13, 37, 192, 73, 179, 80, 208, 74, 237, 7, 192, 75, 156, 109, 80, 76, 214, 36, 64, 77, 124, 79, 80, 78, 182, 6, 64, 79, 92, 49, 80, 80, 149, 232, 64, 81, 60, 19, 80, 82, 117, 202, 64, 83, 27, 245, 80, 84, 85, 172, 64, 84, 251, 215, 80, 86, 53, 142, 64, 86, 228, 243, 208, 88, 30, 170, 192, 88, 196, 213, 208, 89, 254, 140, 192, 90, 164, 183, 208, 91, 222, 110, 192, 92, 132, 153, 208, 93, 190, 80, 192, 94, 100, 123, 208, 95, 158, 50, 192, 96, 77, 152, 80, 97, 135, 79, 64, 98, 45, 122, 80, 99, 103, 49, 64, 100, 13, 92, 80, 101, 71, 19, 64, 101, 237, 62, 80, 103, 38, 245, 64, 103, 205, 32, 80, 105, 6, 215, 64, 105, 173, 2, 80, 106, 230, 185, 64, 107, 150, 30, 208, 108, 207, 213, 192, 109, 118, 0, 208, 110, 175, 183, 192, 111, 85, 226, 208, 112, 143, 153, 192, 113, 53, 196, 208, 114, 111, 123, 192, 115, 21, 166, 208, 116, 79, 93, 192, 116, 254, 195, 80, 118, 56, 122, 64, 118, 222, 165, 80, 120, 24, 92, 64, 120, 190, 135, 80, 121, 248, 62, 64, 122, 158, 105, 80, 123, 216, 32, 64, 124, 126, 75, 80, 125, 184, 2, 64, 126, 94, 45, 80, 127, 151, 228, 64, 127, 255, 255, 255, 0, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 2, 255, 255, 203, 88, 0, 0, 255, 255, 199, 192, 0, 4, 255, 255, 213, 208, 0, 8, 255, 255, 227, 224, 1, 12, 76, 77, 84, 0, 65, 83, 84, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 60, 45, 48, 50, 62, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Moncton": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 0, 6, 0, 0, 0, 24, 128, 0, 0, 0, 128, 241, 182, 80, 158, 184, 133, 96, 159, 186, 221, 80, 187, 60, 56, 208, 187, 180, 35, 64, 189, 28, 26, 208, 189, 148, 5, 64, 190, 251, 252, 208, 191, 115, 231, 64, 192, 219, 222, 208, 193, 83, 201, 64, 194, 187, 192, 208, 195, 51, 171, 64, 196, 155, 162, 208, 197, 19, 141, 64, 198, 112, 248, 208, 199, 13, 205, 64, 200, 72, 241, 208, 200, 237, 175, 64, 202, 22, 94, 208, 202, 214, 203, 192, 203, 136, 226, 96, 210, 35, 244, 112, 210, 96, 237, 208, 211, 117, 214, 224, 212, 64, 207, 208, 213, 85, 184, 224, 214, 32, 177, 208, 215, 53, 154, 224, 216, 0, 147, 208, 217, 21, 124, 224, 217, 224, 117, 208, 218, 254, 153, 96, 219, 192, 87, 208, 220, 222, 123, 96, 221, 169, 116, 80, 222, 190, 93, 96, 223, 137, 86, 80, 224, 158, 63, 96, 225, 105, 56, 80, 226, 126, 33, 96, 227, 73, 26, 80, 228, 94, 3, 96, 229, 40, 252, 80, 230, 71, 31, 224, 231, 18, 24, 208, 232, 39, 1, 224, 233, 22, 228, 208, 234, 6, 227, 224, 234, 246, 198, 208, 235, 230, 197, 224, 236, 214, 168, 208, 237, 198, 167, 224, 238, 191, 197, 80, 239, 175, 196, 96, 240, 159, 167, 80, 241, 143, 166, 96, 242, 127, 137, 80, 243, 111, 136, 96, 244, 95, 107, 80, 245, 79, 106, 96, 246, 63, 77, 80, 247, 47, 76, 96, 248, 40, 105, 208, 249, 15, 46, 96, 250, 8, 75, 208, 250, 248, 74, 224, 251, 232, 45, 208, 252, 216, 44, 224, 253, 200, 15, 208, 254, 184, 14, 224, 255, 167, 241, 208, 0, 151, 240, 224, 1, 135, 211, 208, 2, 119, 210, 224, 3, 112, 240, 80, 4, 96, 239, 96, 5, 80, 210, 80, 8, 32, 179, 96, 9, 16, 150, 80, 10, 0, 149, 96, 10, 240, 120, 80, 11, 224, 119, 96, 12, 217, 148, 208, 13, 192, 89, 96, 14, 185, 118, 208, 15, 169, 117, 224, 16, 153, 88, 208, 17, 137, 87, 224, 18, 121, 58, 208, 19, 105, 57, 224, 20, 89, 28, 208, 21, 73, 27, 224, 22, 56, 254, 208, 23, 40, 253, 224, 24, 34, 27, 80, 25, 8, 223, 224, 26, 1, 253, 80, 26, 241, 252, 96, 27, 225, 223, 80, 28, 209, 222, 96, 29, 193, 193, 80, 30, 177, 192, 96, 31, 161, 163, 80, 32, 117, 242, 224, 33, 129, 133, 80, 34, 85, 212, 224, 35, 106, 161, 208, 36, 53, 182, 224, 37, 74, 131, 208, 38, 21, 152, 224, 39, 42, 101, 208, 39, 254, 181, 96, 41, 10, 71, 208, 41, 222, 151, 96, 42, 234, 41, 208, 43, 190, 93, 124, 44, 211, 42, 108, 45, 158, 63, 124, 46, 179, 12, 108, 47, 126, 33, 124, 48, 146, 238, 108, 49, 103, 61, 252, 50, 114, 208, 108, 51, 71, 31, 252, 52, 82, 178, 108, 53, 39, 1, 252, 54, 50, 148, 108, 55, 6, 227, 252, 56, 27, 176, 236, 56, 230, 197, 252, 57, 251, 146, 236, 58, 198, 167, 252, 59, 219, 116, 236, 60, 175, 196, 124, 61, 187, 86, 236, 62, 143, 166, 124, 63, 155, 56, 236, 64, 111, 136, 124, 65, 132, 85, 108, 66, 79, 106, 124, 67, 100, 55, 108, 68, 47, 76, 124, 69, 68, 25, 108, 69, 243, 154, 224, 71, 45, 81, 208, 71, 211, 124, 224, 73, 13, 51, 208, 73, 179, 94, 224, 74, 237, 21, 208, 75, 156, 123, 96, 76, 214, 50, 80, 77, 124, 93, 96, 78, 182, 20, 80, 79, 92, 63, 96, 80, 149, 246, 80, 81, 60, 33, 96, 82, 117, 216, 80, 83, 28, 3, 96, 84, 85, 186, 80, 84, 251, 229, 96, 86, 53, 156, 80, 86, 229, 1, 224, 88, 30, 184, 208, 88, 196, 227, 224, 89, 254, 154, 208, 90, 164, 197, 224, 91, 222, 124, 208, 92, 132, 167, 224, 93, 190, 94, 208, 94, 100, 137, 224, 95, 158, 64, 208, 96, 77, 166, 96, 97, 135, 93, 80, 98, 45, 136, 96, 99, 103, 63, 80, 100, 13, 106, 96, 101, 71, 33, 80, 101, 237, 76, 96, 103, 39, 3, 80, 103, 205, 46, 96, 105, 6, 229, 80, 105, 173, 16, 96, 106, 230, 199, 80, 107, 150, 44, 224, 108, 207, 227, 208, 109, 118, 14, 224, 110, 175, 197, 208, 111, 85, 240, 224, 112, 143, 167, 208, 113, 53, 210, 224, 114, 111, 137, 208, 115, 21, 180, 224, 116, 79, 107, 208, 116, 254, 209, 96, 118, 56, 136, 80, 118, 222, 179, 96, 120, 24, 106, 80, 120, 190, 149, 96, 121, 248, 76, 80, 122, 158, 119, 96, 123, 216, 46, 80, 124, 126, 89, 96, 125, 184, 16, 80, 126, 94, 59, 96, 127, 151, 242, 80, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 4, 5, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 255, 255, 195, 68, 0, 0, 255, 255, 185, 176, 0, 4, 255, 255, 213, 208, 1, 8, 255, 255, 199, 192, 0, 12, 255, 255, 213, 208, 1, 16, 255, 255, 213, 208, 1, 20, 76, 77, 84, 0, 69, 83, 84, 0, 65, 68, 84, 0, 65, 83, 84, 0, 65, 87, 84, 0, 65, 80, 84, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 10, 65, 83, 84, 52, 65, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Monterrey": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 88, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 165, 182, 218, 96, 34, 85, 241, 0, 35, 106, 189, 240, 49, 103, 118, 0, 50, 115, 8, 112, 51, 71, 88, 0, 52, 82, 234, 112, 53, 39, 58, 0, 54, 50, 204, 112, 55, 7, 28, 0, 56, 27, 232, 240, 56, 230, 254, 0, 57, 251, 202, 240, 58, 245, 4, 128, 59, 182, 194, 240, 60, 175, 252, 128, 61, 187, 142, 240, 62, 143, 222, 128, 63, 155, 112, 240, 64, 111, 192, 128, 65, 132, 141, 112, 66, 79, 162, 128, 67, 100, 111, 112, 68, 47, 132, 128, 69, 68, 81, 112, 70, 15, 102, 128, 71, 36, 51, 112, 71, 248, 131, 0, 73, 4, 21, 112, 73, 216, 101, 0, 74, 227, 247, 112, 75, 184, 71, 0, 76, 205, 19, 240, 77, 152, 41, 0, 78, 172, 245, 240, 79, 120, 11, 0, 80, 140, 215, 240, 81, 97, 39, 128, 82, 108, 185, 240, 83, 65, 9, 128, 84, 76, 155, 240, 85, 32, 235, 128, 86, 44, 125, 240, 87, 0, 205, 128, 88, 21, 154, 112, 88, 224, 175, 128, 89, 245, 124, 112, 90, 192, 145, 128, 91, 213, 94, 112, 92, 169, 174, 0, 93, 181, 64, 112, 94, 137, 144, 0, 95, 149, 34, 112, 96, 105, 114, 0, 97, 126, 62, 240, 98, 73, 84, 0, 99, 94, 32, 240, 100, 41, 54, 0, 101, 62, 2, 240, 102, 18, 82, 128, 103, 29, 228, 240, 103, 242, 52, 128, 104, 253, 198, 240, 105, 210, 22, 128, 106, 221, 168, 240, 107, 177, 248, 128, 108, 198, 197, 112, 109, 145, 218, 128, 110, 166, 167, 112, 111, 113, 188, 128, 112, 134, 137, 112, 113, 90, 217, 0, 114, 102, 107, 112, 115, 58, 187, 0, 116, 70, 77, 112, 117, 26, 157, 0, 118, 47, 105, 240, 118, 250, 127, 0, 120, 15, 75, 240, 120, 218, 97, 0, 121, 239, 45, 240, 122, 186, 67, 0, 123, 207, 15, 240, 124, 163, 95, 128, 125, 174, 241, 240, 126, 131, 65, 128, 127, 142, 211, 240, 0, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 255, 255, 161, 244, 0, 0, 255, 255, 171, 160, 0, 4, 255, 255, 185, 176, 1, 8, 76, 77, 84, 0, 67, 83, 84, 0, 67, 68, 84, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 52, 46, 49, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/America/Montevideo": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 88, 0, 0, 0, 9, 0, 0, 0, 28, 128, 0, 0, 0, 162, 146, 135, 172, 169, 1, 37, 184, 169, 241, 15, 176, 170, 226, 89, 56, 171, 210, 67, 48, 172, 195, 140, 184, 173, 179, 118, 176, 187, 244, 181, 184, 188, 191, 181, 176, 189, 212, 151, 184, 190, 159, 151, 176, 191, 180, 121, 184, 192, 127, 121, 176, 193, 157, 150, 56, 194, 95, 91, 176, 195, 125, 120, 56, 196, 63, 61, 176, 197, 93, 90, 56, 198, 31, 31, 176, 199, 61, 60, 56, 200, 8, 60, 48, 201, 29, 30, 56, 201, 232, 30, 48, 202, 139, 159, 56, 203, 85, 77, 176, 205, 30, 205, 56, 205, 149, 95, 32, 236, 11, 133, 176, 236, 242, 46, 32, 237, 69, 74, 176, 237, 133, 214, 32, 247, 19, 114, 176, 247, 250, 27, 32, 248, 243, 84, 176, 250, 9, 115, 32, 250, 211, 54, 176, 251, 234, 166, 160, 252, 254, 62, 48, 253, 247, 98, 168, 254, 223, 113, 176, 255, 216, 150, 40, 0, 192, 165, 48, 1, 185, 201, 168, 4, 88, 220, 48, 4, 237, 199, 160, 7, 223, 239, 176, 9, 90, 71, 40, 12, 177, 221, 160, 14, 231, 127, 48, 15, 131, 2, 32, 18, 85, 134, 48, 19, 110, 71, 160, 33, 195, 84, 48, 34, 59, 62, 160, 35, 161, 228, 176, 36, 25, 207, 32, 37, 74, 103, 176, 37, 240, 118, 160, 39, 33, 15, 48, 39, 208, 88, 160, 41, 10, 43, 176, 41, 176, 58, 160, 42, 224, 211, 48, 43, 144, 28, 160, 65, 76, 246, 48, 66, 70, 47, 192, 67, 72, 163, 208, 68, 19, 156, 192, 69, 31, 75, 80, 69, 243, 126, 192, 71, 8, 103, 208, 71, 211, 96, 192, 72, 232, 73, 208, 73, 179, 66, 192, 74, 200, 43, 208, 75, 156, 95, 64, 76, 168, 13, 208, 77, 124, 65, 64, 78, 135, 239, 208, 79, 92, 35, 64, 80, 113, 12, 80, 81, 60, 5, 64, 82, 80, 238, 80, 83, 27, 231, 64, 84, 48, 208, 80, 84, 251, 201, 64, 127, 255, 255, 255, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 2, 4, 2, 4, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 7, 5, 7, 5, 7, 5, 6, 5, 7, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 5, 255, 255, 203, 84, 0, 0, 255, 255, 203, 84, 0, 4, 255, 255, 213, 208, 1, 8, 255, 255, 206, 200, 0, 12, 255, 255, 206, 200, 0, 12, 255, 255, 213, 208, 0, 8, 255, 255, 227, 224, 1, 18, 255, 255, 220, 216, 1, 22, 255, 255, 227, 224, 1, 18, 76, 77, 84, 0, 77, 77, 84, 0, 45, 48, 51, 0, 45, 48, 51, 51, 48, 0, 45, 48, 50, 0, 45, 48, 50, 51, 48, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Montreal": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 158, 184, 147, 112, 159, 186, 235, 96, 160, 135, 46, 200, 161, 154, 177, 64, 162, 148, 6, 240, 163, 85, 169, 64, 164, 134, 93, 240, 165, 40, 120, 96, 166, 102, 63, 240, 167, 12, 78, 224, 168, 70, 33, 240, 168, 236, 48, 224, 170, 28, 201, 112, 170, 213, 77, 96, 171, 252, 171, 112, 172, 181, 47, 96, 173, 220, 141, 112, 174, 149, 17, 96, 175, 188, 111, 112, 176, 126, 45, 224, 177, 156, 81, 112, 178, 103, 74, 96, 179, 124, 51, 112, 180, 71, 44, 96, 181, 92, 21, 112, 182, 39, 14, 96, 183, 59, 247, 112, 184, 6, 240, 96, 185, 37, 19, 240, 185, 230, 210, 96, 187, 4, 245, 240, 187, 207, 238, 224, 188, 228, 215, 240, 189, 175, 208, 224, 190, 196, 185, 240, 191, 143, 178, 224, 192, 164, 155, 240, 193, 111, 148, 224, 194, 132, 125, 240, 195, 79, 118, 224, 196, 100, 95, 240, 197, 47, 88, 224, 198, 77, 124, 112, 199, 15, 58, 224, 200, 45, 94, 112, 203, 136, 240, 112, 210, 35, 244, 112, 210, 96, 251, 224, 211, 117, 228, 240, 212, 64, 221, 224, 213, 85, 170, 208, 214, 32, 163, 192, 215, 53, 140, 208, 216, 0, 133, 192, 217, 21, 110, 208, 218, 51, 118, 64, 218, 254, 167, 112, 220, 19, 116, 96, 220, 222, 137, 112, 221, 169, 130, 96, 222, 190, 107, 112, 223, 137, 100, 96, 224, 158, 77, 112, 225, 105, 70, 96, 226, 126, 47, 112, 227, 73, 40, 96, 228, 94, 17, 112, 229, 41, 10, 96, 230, 71, 45, 240, 231, 18, 38, 224, 232, 39, 15, 240, 233, 22, 242, 224, 234, 6, 241, 240, 234, 246, 212, 224, 235, 230, 211, 240, 236, 214, 182, 224, 237, 198, 181, 240, 238, 191, 211, 96, 239, 175, 210, 112, 240, 159, 181, 96, 241, 143, 180, 112, 242, 127, 151, 96, 243, 111, 150, 112, 244, 95, 121, 96, 245, 79, 120, 112, 246, 63, 91, 96, 247, 47, 90, 112, 248, 40, 119, 224, 249, 15, 60, 112, 250, 8, 89, 224, 250, 248, 88, 240, 251, 232, 59, 224, 252, 216, 58, 240, 253, 200, 29, 224, 254, 184, 28, 240, 255, 167, 255, 224, 0, 151, 254, 240, 1, 135, 225, 224, 2, 119, 224, 240, 3, 112, 254, 96, 4, 96, 253, 112, 5, 80, 224, 96, 6, 64, 223, 112, 7, 48, 194, 96, 8, 32, 193, 112, 9, 16, 164, 96, 10, 0, 163, 112, 10, 240, 134, 96, 11, 224, 133, 112, 12, 217, 162, 224, 13, 192, 103, 112, 14, 185, 132, 224, 15, 169, 131, 240, 16, 153, 102, 224, 17, 137, 101, 240, 18, 121, 72, 224, 19, 105, 71, 240, 20, 89, 42, 224, 21, 73, 41, 240, 22, 57, 12, 224, 23, 41, 11, 240, 24, 34, 41, 96, 25, 8, 237, 240, 26, 2, 11, 96, 26, 242, 10, 112, 27, 225, 237, 96, 28, 209, 236, 112, 29, 193, 207, 96, 30, 177, 206, 112, 31, 161, 177, 96, 32, 118, 0, 240, 33, 129, 147, 96, 34, 85, 226, 240, 35, 106, 175, 224, 36, 53, 196, 240, 37, 74, 145, 224, 38, 21, 166, 240, 39, 42, 115, 224, 39, 254, 195, 112, 41, 10, 85, 224, 41, 222, 165, 112, 42, 234, 55, 224, 43, 190, 135, 112, 44, 211, 84, 96, 45, 158, 105, 112, 46, 179, 54, 96, 47, 126, 75, 112, 48, 147, 24, 96, 49, 103, 103, 240, 50, 114, 250, 96, 51, 71, 73, 240, 52, 82, 220, 96, 53, 39, 43, 240, 54, 50, 190, 96, 55, 7, 13, 240, 56, 27, 218, 224, 56, 230, 239, 240, 57, 251, 188, 224, 58, 198, 209, 240, 59, 219, 158, 224, 60, 175, 238, 112, 61, 187, 128, 224, 62, 143, 208, 112, 63, 155, 98, 224, 64, 111, 178, 112, 65, 132, 127, 96, 66, 79, 148, 112, 67, 100, 97, 96, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 181, 148, 0, 0, 255, 255, 199, 192, 1, 4, 255, 255, 185, 176, 0, 8, 255, 255, 199, 192, 1, 12, 255, 255, 199, 192, 1, 16, 76, 77, 84, 0, 69, 68, 84, 0, 69, 83, 84, 0, 69, 87, 84, 0, 69, 80, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Montserrat": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 147, 55, 51, 172, 0, 1, 255, 255, 198, 84, 0, 0, 255, 255, 199, 192, 0, 4, 76, 77, 84, 0, 65, 83, 84, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/Nassau": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 147, 55, 66, 138, 245, 79, 120, 112, 246, 63, 91, 96, 247, 47, 90, 112, 248, 40, 119, 224, 249, 15, 60, 112, 250, 8, 89, 224, 250, 248, 88, 240, 251, 232, 59, 224, 252, 216, 58, 240, 253, 200, 29, 224, 254, 184, 28, 240, 255, 167, 255, 224, 0, 151, 254, 240, 1, 135, 225, 224, 2, 119, 224, 240, 3, 112, 254, 96, 4, 96, 253, 112, 5, 80, 224, 96, 6, 64, 223, 112, 7, 48, 194, 96, 8, 32, 193, 112, 9, 16, 164, 96, 10, 0, 163, 112, 10, 240, 134, 96, 11, 224, 133, 112, 12, 217, 162, 224, 13, 192, 103, 112, 14, 185, 132, 224, 15, 169, 131, 240, 16, 153, 102, 224, 17, 137, 101, 240, 18, 121, 72, 224, 19, 105, 71, 240, 20, 89, 42, 224, 21, 73, 41, 240, 22, 57, 12, 224, 23, 41, 11, 240, 24, 34, 41, 96, 25, 8, 237, 240, 26, 2, 11, 96, 26, 242, 10, 112, 27, 225, 237, 96, 28, 209, 236, 112, 29, 193, 207, 96, 30, 177, 206, 112, 31, 161, 177, 96, 32, 118, 0, 240, 33, 129, 147, 96, 34, 85, 226, 240, 35, 106, 175, 224, 36, 53, 196, 240, 37, 74, 145, 224, 38, 21, 166, 240, 39, 42, 115, 224, 39, 254, 195, 112, 41, 10, 85, 224, 41, 222, 165, 112, 42, 234, 55, 224, 43, 190, 135, 112, 44, 211, 84, 96, 45, 158, 105, 112, 46, 179, 54, 96, 47, 126, 75, 112, 48, 147, 24, 96, 49, 103, 103, 240, 50, 114, 250, 96, 51, 71, 73, 240, 52, 82, 220, 96, 53, 39, 43, 240, 54, 50, 190, 96, 55, 7, 13, 240, 56, 27, 218, 224, 56, 230, 239, 240, 57, 251, 188, 224, 58, 198, 209, 240, 59, 219, 158, 224, 60, 175, 238, 112, 61, 187, 128, 224, 62, 143, 208, 112, 63, 155, 98, 224, 64, 111, 178, 112, 65, 132, 127, 96, 66, 79, 148, 112, 67, 100, 97, 96, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 183, 118, 0, 0, 255, 255, 199, 192, 1, 4, 255, 255, 185, 176, 0, 8, 76, 77, 84, 0, 69, 68, 84, 0, 69, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/New_York": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 236, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 158, 166, 30, 112, 159, 186, 235, 96, 160, 134, 0, 112, 161, 154, 205, 96, 162, 101, 226, 112, 163, 131, 233, 224, 164, 106, 174, 112, 165, 53, 167, 96, 166, 83, 202, 240, 167, 21, 137, 96, 168, 51, 172, 240, 168, 254, 165, 224, 170, 19, 142, 240, 170, 222, 135, 224, 171, 243, 112, 240, 172, 190, 105, 224, 173, 211, 82, 240, 174, 158, 75, 224, 175, 179, 52, 240, 176, 126, 45, 224, 177, 156, 81, 112, 178, 103, 74, 96, 179, 124, 51, 112, 180, 71, 44, 96, 181, 92, 21, 112, 182, 39, 14, 96, 183, 59, 247, 112, 184, 6, 240, 96, 185, 27, 217, 112, 185, 230, 210, 96, 187, 4, 245, 240, 187, 198, 180, 96, 188, 228, 215, 240, 189, 175, 208, 224, 190, 196, 185, 240, 191, 143, 178, 224, 192, 164, 155, 240, 193, 111, 148, 224, 194, 132, 125, 240, 195, 79, 118, 224, 196, 100, 95, 240, 197, 47, 88, 224, 198, 77, 124, 112, 199, 15, 58, 224, 200, 45, 94, 112, 200, 248, 87, 96, 202, 13, 64, 112, 202, 216, 57, 96, 203, 136, 240, 112, 210, 35, 244, 112, 210, 96, 251, 224, 211, 117, 228, 240, 212, 64, 221, 224, 213, 85, 198, 240, 214, 32, 191, 224, 215, 53, 168, 240, 216, 0, 161, 224, 217, 21, 138, 240, 217, 224, 131, 224, 218, 254, 167, 112, 219, 192, 101, 224, 220, 222, 137, 112, 221, 169, 130, 96, 222, 190, 107, 112, 223, 137, 100, 96, 224, 158, 77, 112, 225, 105, 70, 96, 226, 126, 47, 112, 227, 73, 40, 96, 228, 94, 17, 112, 229, 87, 46, 224, 230, 71, 45, 240, 231, 55, 16, 224, 232, 39, 15, 240, 233, 22, 242, 224, 234, 6, 241, 240, 234, 246, 212, 224, 235, 230, 211, 240, 236, 214, 182, 224, 237, 198, 181, 240, 238, 191, 211, 96, 239, 175, 210, 112, 240, 159, 181, 96, 241, 143, 180, 112, 242, 127, 151, 96, 243, 111, 150, 112, 244, 95, 121, 96, 245, 79, 120, 112, 246, 63, 91, 96, 247, 47, 90, 112, 248, 40, 119, 224, 249, 15, 60, 112, 250, 8, 89, 224, 250, 248, 88, 240, 251, 232, 59, 224, 252, 216, 58, 240, 253, 200, 29, 224, 254, 184, 28, 240, 255, 167, 255, 224, 0, 151, 254, 240, 1, 135, 225, 224, 2, 119, 224, 240, 3, 112, 254, 96, 4, 96, 253, 112, 5, 80, 224, 96, 6, 64, 223, 112, 7, 48, 194, 96, 7, 141, 25, 112, 9, 16, 164, 96, 9, 173, 148, 240, 10, 240, 134, 96, 11, 224, 133, 112, 12, 217, 162, 224, 13, 192, 103, 112, 14, 185, 132, 224, 15, 169, 131, 240, 16, 153, 102, 224, 17, 137, 101, 240, 18, 121, 72, 224, 19, 105, 71, 240, 20, 89, 42, 224, 21, 73, 41, 240, 22, 57, 12, 224, 23, 41, 11, 240, 24, 34, 41, 96, 25, 8, 237, 240, 26, 2, 11, 96, 26, 242, 10, 112, 27, 225, 237, 96, 28, 209, 236, 112, 29, 193, 207, 96, 30, 177, 206, 112, 31, 161, 177, 96, 32, 118, 0, 240, 33, 129, 147, 96, 34, 85, 226, 240, 35, 106, 175, 224, 36, 53, 196, 240, 37, 74, 145, 224, 38, 21, 166, 240, 39, 42, 115, 224, 39, 254, 195, 112, 41, 10, 85, 224, 41, 222, 165, 112, 42, 234, 55, 224, 43, 190, 135, 112, 44, 211, 84, 96, 45, 158, 105, 112, 46, 179, 54, 96, 47, 126, 75, 112, 48, 147, 24, 96, 49, 103, 103, 240, 50, 114, 250, 96, 51, 71, 73, 240, 52, 82, 220, 96, 53, 39, 43, 240, 54, 50, 190, 96, 55, 7, 13, 240, 56, 27, 218, 224, 56, 230, 239, 240, 57, 251, 188, 224, 58, 198, 209, 240, 59, 219, 158, 224, 60, 175, 238, 112, 61, 187, 128, 224, 62, 143, 208, 112, 63, 155, 98, 224, 64, 111, 178, 112, 65, 132, 127, 96, 66, 79, 148, 112, 67, 100, 97, 96, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 186, 158, 0, 0, 255, 255, 199, 192, 1, 4, 255, 255, 185, 176, 0, 8, 255, 255, 199, 192, 1, 12, 255, 255, 199, 192, 1, 16, 76, 77, 84, 0, 69, 68, 84, 0, 69, 83, 84, 0, 69, 87, 84, 0, 69, 80, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Nipigon": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 135, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 158, 184, 147, 112, 159, 186, 235, 96, 200, 248, 73, 80, 203, 136, 240, 112, 210, 35, 244, 112, 210, 96, 251, 224, 8, 32, 193, 112, 9, 16, 164, 96, 10, 0, 163, 112, 10, 240, 134, 96, 11, 224, 133, 112, 12, 217, 162, 224, 13, 192, 103, 112, 14, 185, 132, 224, 15, 169, 131, 240, 16, 153, 102, 224, 17, 137, 101, 240, 18, 121, 72, 224, 19, 105, 71, 240, 20, 89, 42, 224, 21, 73, 41, 240, 22, 57, 12, 224, 23, 41, 11, 240, 24, 34, 41, 96, 25, 8, 237, 240, 26, 2, 11, 96, 26, 242, 10, 112, 27, 225, 237, 96, 28, 209, 236, 112, 29, 193, 207, 96, 30, 177, 206, 112, 31, 161, 177, 96, 32, 118, 0, 240, 33, 129, 147, 96, 34, 85, 226, 240, 35, 106, 175, 224, 36, 53, 196, 240, 37, 74, 145, 224, 38, 21, 166, 240, 39, 42, 115, 224, 39, 254, 195, 112, 41, 10, 85, 224, 41, 222, 165, 112, 42, 234, 55, 224, 43, 190, 135, 112, 44, 211, 84, 96, 45, 158, 105, 112, 46, 179, 54, 96, 47, 126, 75, 112, 48, 147, 24, 96, 49, 103, 103, 240, 50, 114, 250, 96, 51, 71, 73, 240, 52, 82, 220, 96, 53, 39, 43, 240, 54, 50, 190, 96, 55, 7, 13, 240, 56, 27, 218, 224, 56, 230, 239, 240, 57, 251, 188, 224, 58, 198, 209, 240, 59, 219, 158, 224, 60, 175, 238, 112, 61, 187, 128, 224, 62, 143, 208, 112, 63, 155, 98, 224, 64, 111, 178, 112, 65, 132, 127, 96, 66, 79, 148, 112, 67, 100, 97, 96, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 2, 1, 2, 1, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 173, 64, 0, 0, 255, 255, 199, 192, 1, 4, 255, 255, 185, 176, 0, 8, 255, 255, 199, 192, 1, 12, 255, 255, 199, 192, 1, 16, 76, 77, 84, 0, 69, 68, 84, 0, 69, 83, 84, 0, 69, 87, 84, 0, 69, 80, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Nome": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 144, 0, 0, 0, 9, 0, 0, 0, 38, 128, 0, 0, 0, 203, 137, 68, 208, 210, 35, 244, 112, 210, 97, 80, 64, 250, 210, 85, 176, 254, 184, 113, 80, 255, 168, 84, 64, 0, 152, 83, 80, 1, 136, 54, 64, 2, 120, 53, 80, 3, 113, 82, 192, 4, 97, 81, 208, 5, 81, 52, 192, 6, 65, 51, 208, 7, 49, 22, 192, 7, 141, 109, 208, 9, 16, 248, 192, 9, 173, 233, 80, 10, 240, 218, 192, 11, 224, 217, 208, 12, 217, 247, 64, 13, 192, 187, 208, 14, 185, 217, 64, 15, 169, 216, 80, 16, 153, 187, 64, 17, 137, 186, 80, 18, 121, 157, 64, 19, 105, 156, 80, 20, 89, 127, 64, 21, 73, 126, 80, 22, 57, 97, 64, 23, 41, 96, 80, 24, 34, 125, 192, 25, 9, 66, 80, 26, 2, 95, 192, 26, 43, 20, 16, 26, 242, 66, 176, 27, 226, 37, 160, 28, 210, 36, 176, 29, 194, 7, 160, 30, 178, 6, 176, 31, 161, 233, 160, 32, 118, 57, 48, 33, 129, 203, 160, 34, 86, 27, 48, 35, 106, 232, 32, 36, 53, 253, 48, 37, 74, 202, 32, 38, 21, 223, 48, 39, 42, 172, 32, 39, 254, 251, 176, 41, 10, 142, 32, 41, 222, 221, 176, 42, 234, 112, 32, 43, 190, 191, 176, 44, 211, 140, 160, 45, 158, 161, 176, 46, 179, 110, 160, 47, 126, 131, 176, 48, 147, 80, 160, 49, 103, 160, 48, 50, 115, 50, 160, 51, 71, 130, 48, 52, 83, 20, 160, 53, 39, 100, 48, 54, 50, 246, 160, 55, 7, 70, 48, 56, 28, 19, 32, 56, 231, 40, 48, 57, 251, 245, 32, 58, 199, 10, 48, 59, 219, 215, 32, 60, 176, 38, 176, 61, 187, 185, 32, 62, 144, 8, 176, 63, 155, 155, 32, 64, 111, 234, 176, 65, 132, 183, 160, 66, 79, 204, 176, 67, 100, 153, 160, 68, 47, 174, 176, 69, 68, 123, 160, 69, 243, 225, 48, 71, 45, 152, 32, 71, 211, 195, 48, 73, 13, 122, 32, 73, 179, 165, 48, 74, 237, 92, 32, 75, 156, 193, 176, 76, 214, 120, 160, 77, 124, 163, 176, 78, 182, 90, 160, 79, 92, 133, 176, 80, 150, 60, 160, 81, 60, 103, 176, 82, 118, 30, 160, 83, 28, 73, 176, 84, 86, 0, 160, 84, 252, 43, 176, 86, 53, 226, 160, 86, 229, 72, 48, 88, 30, 255, 32, 88, 197, 42, 48, 89, 254, 225, 32, 90, 165, 12, 48, 91, 222, 195, 32, 92, 132, 238, 48, 93, 190, 165, 32, 94, 100, 208, 48, 95, 158, 135, 32, 96, 77, 236, 176, 97, 135, 163, 160, 98, 45, 206, 176, 99, 103, 133, 160, 100, 13, 176, 176, 101, 71, 103, 160, 101, 237, 146, 176, 103, 39, 73, 160, 103, 205, 116, 176, 105, 7, 43, 160, 105, 173, 86, 176, 106, 231, 13, 160, 107, 150, 115, 48, 108, 208, 42, 32, 109, 118, 85, 48, 110, 176, 12, 32, 111, 86, 55, 48, 112, 143, 238, 32, 113, 54, 25, 48, 114, 111, 208, 32, 115, 21, 251, 48, 116, 79, 178, 32, 116, 255, 23, 176, 118, 56, 206, 160, 118, 222, 249, 176, 120, 24, 176, 160, 120, 190, 219, 176, 121, 248, 146, 160, 122, 158, 189, 176, 123, 216, 116, 160, 124, 126, 159, 176, 125, 184, 86, 160, 126, 94, 129, 176, 127, 152, 56, 160, 1, 2, 3, 1, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 6, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 255, 255, 100, 238, 0, 0, 255, 255, 101, 80, 0, 4, 255, 255, 115, 96, 1, 8, 255, 255, 115, 96, 1, 12, 255, 255, 101, 80, 0, 16, 255, 255, 115, 96, 1, 20, 255, 255, 129, 112, 0, 24, 255, 255, 143, 128, 1, 28, 255, 255, 129, 112, 0, 33, 76, 77, 84, 0, 78, 83, 84, 0, 78, 87, 84, 0, 78, 80, 84, 0, 66, 83, 84, 0, 66, 68, 84, 0, 89, 83, 84, 0, 65, 75, 68, 84, 0, 65, 75, 83, 84, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 10, 65, 75, 83, 84, 57, 65, 75, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Noronha": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 150, 170, 101, 100, 184, 15, 59, 208, 184, 253, 50, 144, 185, 241, 38, 32, 186, 222, 102, 16, 218, 56, 160, 32, 218, 235, 236, 32, 220, 25, 211, 160, 220, 185, 75, 16, 221, 251, 7, 32, 222, 155, 208, 16, 223, 221, 140, 32, 224, 84, 37, 16, 244, 151, 241, 160, 245, 5, 80, 16, 246, 192, 86, 32, 247, 14, 16, 144, 248, 81, 30, 32, 248, 199, 183, 16, 250, 10, 196, 160, 250, 168, 234, 144, 251, 235, 248, 32, 252, 139, 111, 144, 29, 201, 128, 32, 30, 120, 201, 144, 31, 160, 39, 160, 32, 51, 193, 144, 33, 129, 91, 32, 34, 11, 186, 144, 35, 88, 2, 160, 35, 226, 98, 16, 37, 55, 228, 160, 37, 212, 185, 16, 55, 246, 184, 160, 56, 184, 119, 16, 57, 223, 213, 32, 57, 233, 1, 144, 59, 200, 241, 160, 60, 111, 0, 144, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 255, 255, 225, 156, 0, 0, 255, 255, 241, 240, 1, 4, 255, 255, 227, 224, 0, 8, 76, 77, 84, 0, 45, 48, 49, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 50, 62, 50, 10}, + + "zoneinfo/America/North_Dakota/Beulah": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 7, 0, 0, 0, 28, 128, 0, 0, 0, 158, 166, 58, 144, 159, 187, 7, 128, 160, 134, 28, 144, 161, 154, 233, 128, 203, 137, 12, 144, 210, 35, 244, 112, 210, 97, 24, 0, 250, 248, 117, 16, 251, 232, 88, 0, 252, 216, 87, 16, 253, 200, 58, 0, 254, 184, 57, 16, 255, 168, 28, 0, 0, 152, 27, 16, 1, 135, 254, 0, 2, 119, 253, 16, 3, 113, 26, 128, 4, 97, 25, 144, 5, 80, 252, 128, 6, 64, 251, 144, 7, 48, 222, 128, 7, 141, 53, 144, 9, 16, 192, 128, 9, 173, 177, 16, 10, 240, 162, 128, 11, 224, 161, 144, 12, 217, 191, 0, 13, 192, 131, 144, 14, 185, 161, 0, 15, 169, 160, 16, 16, 153, 131, 0, 17, 137, 130, 16, 18, 121, 101, 0, 19, 105, 100, 16, 20, 89, 71, 0, 21, 73, 70, 16, 22, 57, 41, 0, 23, 41, 40, 16, 24, 34, 69, 128, 25, 9, 10, 16, 26, 2, 39, 128, 26, 242, 38, 144, 27, 226, 9, 128, 28, 210, 8, 144, 29, 193, 235, 128, 30, 177, 234, 144, 31, 161, 205, 128, 32, 118, 29, 16, 33, 129, 175, 128, 34, 85, 255, 16, 35, 106, 204, 0, 36, 53, 225, 16, 37, 74, 174, 0, 38, 21, 195, 16, 39, 42, 144, 0, 39, 254, 223, 144, 41, 10, 114, 0, 41, 222, 193, 144, 42, 234, 84, 0, 43, 190, 163, 144, 44, 211, 112, 128, 45, 158, 133, 144, 46, 179, 82, 128, 47, 126, 103, 144, 48, 147, 52, 128, 49, 103, 132, 16, 50, 115, 22, 128, 51, 71, 102, 16, 52, 82, 248, 128, 53, 39, 72, 16, 54, 50, 218, 128, 55, 7, 42, 16, 56, 27, 247, 0, 56, 231, 12, 16, 57, 251, 217, 0, 58, 198, 238, 16, 59, 219, 187, 0, 60, 176, 10, 144, 61, 187, 157, 0, 62, 143, 236, 144, 63, 155, 127, 0, 64, 111, 206, 144, 65, 132, 155, 128, 66, 79, 176, 144, 67, 100, 125, 128, 68, 47, 146, 144, 69, 68, 95, 128, 69, 243, 197, 16, 71, 45, 124, 0, 71, 211, 167, 16, 73, 13, 94, 0, 73, 179, 137, 16, 74, 237, 64, 0, 75, 156, 165, 144, 76, 214, 92, 128, 77, 124, 121, 128, 78, 182, 48, 112, 79, 92, 91, 128, 80, 150, 18, 112, 81, 60, 61, 128, 82, 117, 244, 112, 83, 28, 31, 128, 84, 85, 214, 112, 84, 252, 1, 128, 86, 53, 184, 112, 86, 229, 30, 0, 88, 30, 212, 240, 88, 197, 0, 0, 89, 254, 182, 240, 90, 164, 226, 0, 91, 222, 152, 240, 92, 132, 196, 0, 93, 190, 122, 240, 94, 100, 166, 0, 95, 158, 92, 240, 96, 77, 194, 128, 97, 135, 121, 112, 98, 45, 164, 128, 99, 103, 91, 112, 100, 13, 134, 128, 101, 71, 61, 112, 101, 237, 104, 128, 103, 39, 31, 112, 103, 205, 74, 128, 105, 7, 1, 112, 105, 173, 44, 128, 106, 230, 227, 112, 107, 150, 73, 0, 108, 207, 255, 240, 109, 118, 43, 0, 110, 175, 225, 240, 111, 86, 13, 0, 112, 143, 195, 240, 113, 53, 239, 0, 114, 111, 165, 240, 115, 21, 209, 0, 116, 79, 135, 240, 116, 254, 237, 128, 118, 56, 164, 112, 118, 222, 207, 128, 120, 24, 134, 112, 120, 190, 177, 128, 121, 248, 104, 112, 122, 158, 147, 128, 123, 216, 74, 112, 124, 126, 117, 128, 125, 184, 44, 112, 126, 94, 87, 128, 127, 152, 14, 112, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 255, 255, 160, 149, 0, 0, 255, 255, 171, 160, 1, 4, 255, 255, 157, 144, 0, 8, 255, 255, 171, 160, 1, 12, 255, 255, 171, 160, 1, 16, 255, 255, 185, 176, 1, 20, 255, 255, 171, 160, 0, 24, 76, 77, 84, 0, 77, 68, 84, 0, 77, 83, 84, 0, 77, 87, 84, 0, 77, 80, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/North_Dakota/Center": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 7, 0, 0, 0, 28, 128, 0, 0, 0, 158, 166, 58, 144, 159, 187, 7, 128, 160, 134, 28, 144, 161, 154, 233, 128, 203, 137, 12, 144, 210, 35, 244, 112, 210, 97, 24, 0, 250, 248, 117, 16, 251, 232, 88, 0, 252, 216, 87, 16, 253, 200, 58, 0, 254, 184, 57, 16, 255, 168, 28, 0, 0, 152, 27, 16, 1, 135, 254, 0, 2, 119, 253, 16, 3, 113, 26, 128, 4, 97, 25, 144, 5, 80, 252, 128, 6, 64, 251, 144, 7, 48, 222, 128, 7, 141, 53, 144, 9, 16, 192, 128, 9, 173, 177, 16, 10, 240, 162, 128, 11, 224, 161, 144, 12, 217, 191, 0, 13, 192, 131, 144, 14, 185, 161, 0, 15, 169, 160, 16, 16, 153, 131, 0, 17, 137, 130, 16, 18, 121, 101, 0, 19, 105, 100, 16, 20, 89, 71, 0, 21, 73, 70, 16, 22, 57, 41, 0, 23, 41, 40, 16, 24, 34, 69, 128, 25, 9, 10, 16, 26, 2, 39, 128, 26, 242, 38, 144, 27, 226, 9, 128, 28, 210, 8, 144, 29, 193, 235, 128, 30, 177, 234, 144, 31, 161, 205, 128, 32, 118, 29, 16, 33, 129, 175, 128, 34, 85, 255, 16, 35, 106, 204, 0, 36, 53, 225, 16, 37, 74, 174, 0, 38, 21, 195, 16, 39, 42, 144, 0, 39, 254, 223, 144, 41, 10, 114, 0, 41, 222, 193, 144, 42, 234, 84, 0, 43, 190, 149, 128, 44, 211, 98, 112, 45, 158, 119, 128, 46, 179, 68, 112, 47, 126, 89, 128, 48, 147, 38, 112, 49, 103, 118, 0, 50, 115, 8, 112, 51, 71, 88, 0, 52, 82, 234, 112, 53, 39, 58, 0, 54, 50, 204, 112, 55, 7, 28, 0, 56, 27, 232, 240, 56, 230, 254, 0, 57, 251, 202, 240, 58, 198, 224, 0, 59, 219, 172, 240, 60, 175, 252, 128, 61, 187, 142, 240, 62, 143, 222, 128, 63, 155, 112, 240, 64, 111, 192, 128, 65, 132, 141, 112, 66, 79, 162, 128, 67, 100, 111, 112, 68, 47, 132, 128, 69, 68, 81, 112, 69, 243, 183, 0, 71, 45, 109, 240, 71, 211, 153, 0, 73, 13, 79, 240, 73, 179, 123, 0, 74, 237, 49, 240, 75, 156, 151, 128, 76, 214, 78, 112, 77, 124, 121, 128, 78, 182, 48, 112, 79, 92, 91, 128, 80, 150, 18, 112, 81, 60, 61, 128, 82, 117, 244, 112, 83, 28, 31, 128, 84, 85, 214, 112, 84, 252, 1, 128, 86, 53, 184, 112, 86, 229, 30, 0, 88, 30, 212, 240, 88, 197, 0, 0, 89, 254, 182, 240, 90, 164, 226, 0, 91, 222, 152, 240, 92, 132, 196, 0, 93, 190, 122, 240, 94, 100, 166, 0, 95, 158, 92, 240, 96, 77, 194, 128, 97, 135, 121, 112, 98, 45, 164, 128, 99, 103, 91, 112, 100, 13, 134, 128, 101, 71, 61, 112, 101, 237, 104, 128, 103, 39, 31, 112, 103, 205, 74, 128, 105, 7, 1, 112, 105, 173, 44, 128, 106, 230, 227, 112, 107, 150, 73, 0, 108, 207, 255, 240, 109, 118, 43, 0, 110, 175, 225, 240, 111, 86, 13, 0, 112, 143, 195, 240, 113, 53, 239, 0, 114, 111, 165, 240, 115, 21, 209, 0, 116, 79, 135, 240, 116, 254, 237, 128, 118, 56, 164, 112, 118, 222, 207, 128, 120, 24, 134, 112, 120, 190, 177, 128, 121, 248, 104, 112, 122, 158, 147, 128, 123, 216, 74, 112, 124, 126, 117, 128, 125, 184, 44, 112, 126, 94, 87, 128, 127, 152, 14, 112, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 255, 255, 161, 8, 0, 0, 255, 255, 171, 160, 1, 4, 255, 255, 157, 144, 0, 8, 255, 255, 171, 160, 1, 12, 255, 255, 171, 160, 1, 16, 255, 255, 185, 176, 1, 20, 255, 255, 171, 160, 0, 24, 76, 77, 84, 0, 77, 68, 84, 0, 77, 83, 84, 0, 77, 87, 84, 0, 77, 80, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/North_Dakota/New_Salem": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 7, 0, 0, 0, 28, 128, 0, 0, 0, 158, 166, 58, 144, 159, 187, 7, 128, 160, 134, 28, 144, 161, 154, 233, 128, 203, 137, 12, 144, 210, 35, 244, 112, 210, 97, 24, 0, 250, 248, 117, 16, 251, 232, 88, 0, 252, 216, 87, 16, 253, 200, 58, 0, 254, 184, 57, 16, 255, 168, 28, 0, 0, 152, 27, 16, 1, 135, 254, 0, 2, 119, 253, 16, 3, 113, 26, 128, 4, 97, 25, 144, 5, 80, 252, 128, 6, 64, 251, 144, 7, 48, 222, 128, 7, 141, 53, 144, 9, 16, 192, 128, 9, 173, 177, 16, 10, 240, 162, 128, 11, 224, 161, 144, 12, 217, 191, 0, 13, 192, 131, 144, 14, 185, 161, 0, 15, 169, 160, 16, 16, 153, 131, 0, 17, 137, 130, 16, 18, 121, 101, 0, 19, 105, 100, 16, 20, 89, 71, 0, 21, 73, 70, 16, 22, 57, 41, 0, 23, 41, 40, 16, 24, 34, 69, 128, 25, 9, 10, 16, 26, 2, 39, 128, 26, 242, 38, 144, 27, 226, 9, 128, 28, 210, 8, 144, 29, 193, 235, 128, 30, 177, 234, 144, 31, 161, 205, 128, 32, 118, 29, 16, 33, 129, 175, 128, 34, 85, 255, 16, 35, 106, 204, 0, 36, 53, 225, 16, 37, 74, 174, 0, 38, 21, 195, 16, 39, 42, 144, 0, 39, 254, 223, 144, 41, 10, 114, 0, 41, 222, 193, 144, 42, 234, 84, 0, 43, 190, 163, 144, 44, 211, 112, 128, 45, 158, 133, 144, 46, 179, 82, 128, 47, 126, 103, 144, 48, 147, 52, 128, 49, 103, 132, 16, 50, 115, 22, 128, 51, 71, 102, 16, 52, 82, 248, 128, 53, 39, 72, 16, 54, 50, 218, 128, 55, 7, 42, 16, 56, 27, 247, 0, 56, 231, 12, 16, 57, 251, 217, 0, 58, 198, 238, 16, 59, 219, 187, 0, 60, 176, 10, 144, 61, 187, 157, 0, 62, 143, 236, 144, 63, 155, 127, 0, 64, 111, 192, 128, 65, 132, 141, 112, 66, 79, 162, 128, 67, 100, 111, 112, 68, 47, 132, 128, 69, 68, 81, 112, 69, 243, 183, 0, 71, 45, 109, 240, 71, 211, 153, 0, 73, 13, 79, 240, 73, 179, 123, 0, 74, 237, 49, 240, 75, 156, 151, 128, 76, 214, 78, 112, 77, 124, 121, 128, 78, 182, 48, 112, 79, 92, 91, 128, 80, 150, 18, 112, 81, 60, 61, 128, 82, 117, 244, 112, 83, 28, 31, 128, 84, 85, 214, 112, 84, 252, 1, 128, 86, 53, 184, 112, 86, 229, 30, 0, 88, 30, 212, 240, 88, 197, 0, 0, 89, 254, 182, 240, 90, 164, 226, 0, 91, 222, 152, 240, 92, 132, 196, 0, 93, 190, 122, 240, 94, 100, 166, 0, 95, 158, 92, 240, 96, 77, 194, 128, 97, 135, 121, 112, 98, 45, 164, 128, 99, 103, 91, 112, 100, 13, 134, 128, 101, 71, 61, 112, 101, 237, 104, 128, 103, 39, 31, 112, 103, 205, 74, 128, 105, 7, 1, 112, 105, 173, 44, 128, 106, 230, 227, 112, 107, 150, 73, 0, 108, 207, 255, 240, 109, 118, 43, 0, 110, 175, 225, 240, 111, 86, 13, 0, 112, 143, 195, 240, 113, 53, 239, 0, 114, 111, 165, 240, 115, 21, 209, 0, 116, 79, 135, 240, 116, 254, 237, 128, 118, 56, 164, 112, 118, 222, 207, 128, 120, 24, 134, 112, 120, 190, 177, 128, 121, 248, 104, 112, 122, 158, 147, 128, 123, 216, 74, 112, 124, 126, 117, 128, 125, 184, 44, 112, 126, 94, 87, 128, 127, 152, 14, 112, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 255, 255, 160, 237, 0, 0, 255, 255, 171, 160, 1, 4, 255, 255, 157, 144, 0, 8, 255, 255, 171, 160, 1, 12, 255, 255, 171, 160, 1, 16, 255, 255, 185, 176, 1, 20, 255, 255, 171, 160, 0, 24, 76, 77, 84, 0, 77, 68, 84, 0, 77, 83, 84, 0, 77, 87, 84, 0, 77, 80, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Ojinaga": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 165, 182, 232, 112, 175, 242, 110, 224, 182, 102, 86, 96, 183, 67, 210, 96, 184, 12, 54, 96, 184, 253, 134, 240, 49, 103, 118, 0, 50, 115, 8, 112, 51, 71, 88, 0, 52, 82, 234, 112, 53, 39, 72, 16, 54, 50, 218, 128, 55, 7, 42, 16, 56, 27, 247, 0, 56, 231, 12, 16, 57, 251, 217, 0, 58, 245, 18, 144, 59, 182, 209, 0, 60, 176, 10, 144, 61, 187, 157, 0, 62, 143, 236, 144, 63, 155, 127, 0, 64, 111, 206, 144, 65, 132, 155, 128, 66, 79, 176, 144, 67, 100, 125, 128, 68, 47, 146, 144, 69, 68, 95, 128, 70, 15, 116, 144, 71, 36, 65, 128, 71, 248, 145, 16, 73, 4, 35, 128, 73, 216, 115, 16, 74, 228, 5, 128, 75, 156, 165, 144, 76, 214, 92, 128, 77, 124, 135, 144, 78, 182, 62, 128, 79, 92, 105, 144, 80, 150, 32, 128, 81, 60, 75, 144, 82, 118, 2, 128, 83, 28, 45, 144, 84, 85, 228, 128, 84, 252, 15, 144, 86, 53, 198, 128, 86, 229, 44, 16, 88, 30, 227, 0, 88, 197, 14, 16, 89, 254, 197, 0, 90, 164, 240, 16, 91, 222, 167, 0, 92, 132, 210, 16, 93, 190, 137, 0, 94, 100, 180, 16, 95, 158, 107, 0, 96, 77, 208, 144, 97, 135, 135, 128, 98, 45, 178, 144, 99, 103, 105, 128, 100, 13, 148, 144, 101, 71, 75, 128, 101, 237, 118, 144, 103, 39, 45, 128, 103, 205, 88, 144, 105, 7, 15, 128, 105, 173, 58, 144, 106, 230, 241, 128, 107, 150, 87, 16, 108, 208, 14, 0, 109, 118, 57, 16, 110, 175, 240, 0, 111, 86, 27, 16, 112, 143, 210, 0, 113, 53, 253, 16, 114, 111, 180, 0, 115, 21, 223, 16, 116, 79, 150, 0, 116, 254, 251, 144, 118, 56, 178, 128, 118, 222, 221, 144, 120, 24, 148, 128, 120, 190, 191, 144, 121, 248, 118, 128, 122, 158, 161, 144, 123, 216, 88, 128, 124, 126, 131, 144, 125, 184, 58, 128, 126, 94, 101, 144, 127, 152, 28, 128, 0, 1, 2, 1, 2, 1, 2, 3, 2, 3, 2, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 255, 255, 158, 28, 0, 0, 255, 255, 157, 144, 0, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 171, 160, 1, 16, 255, 255, 157, 144, 0, 4, 76, 77, 84, 0, 77, 83, 84, 0, 67, 83, 84, 0, 67, 68, 84, 0, 77, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 77, 83, 84, 55, 77, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Panama": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 139, 244, 97, 232, 1, 2, 255, 255, 181, 112, 0, 0, 255, 255, 181, 24, 0, 4, 255, 255, 185, 176, 0, 8, 76, 77, 84, 0, 67, 77, 84, 0, 69, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 69, 83, 84, 53, 10}, + + "zoneinfo/America/Pangnirtung": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 123, 0, 0, 0, 12, 0, 0, 0, 41, 128, 0, 0, 0, 163, 213, 82, 128, 203, 136, 226, 96, 210, 35, 244, 112, 210, 96, 237, 208, 247, 47, 48, 64, 248, 40, 91, 192, 19, 105, 57, 224, 20, 89, 28, 208, 21, 73, 27, 224, 22, 56, 254, 208, 23, 40, 253, 224, 24, 34, 27, 80, 25, 8, 223, 224, 26, 1, 253, 80, 26, 241, 252, 96, 27, 225, 223, 80, 28, 209, 222, 96, 29, 193, 193, 80, 30, 177, 192, 96, 31, 161, 163, 80, 32, 117, 242, 224, 33, 129, 133, 80, 34, 85, 212, 224, 35, 106, 161, 208, 36, 53, 182, 224, 37, 74, 131, 208, 38, 21, 152, 224, 39, 42, 101, 208, 39, 254, 181, 96, 41, 10, 71, 208, 41, 222, 151, 96, 42, 234, 41, 208, 43, 190, 121, 96, 44, 211, 70, 80, 45, 158, 91, 96, 46, 179, 40, 80, 47, 126, 61, 96, 48, 147, 24, 96, 49, 103, 103, 240, 50, 114, 250, 96, 51, 71, 73, 240, 52, 82, 220, 96, 53, 39, 43, 240, 54, 50, 190, 96, 55, 7, 13, 240, 56, 27, 218, 224, 56, 230, 254, 0, 57, 251, 202, 240, 58, 198, 209, 240, 59, 219, 158, 224, 60, 175, 238, 112, 61, 187, 128, 224, 62, 143, 208, 112, 63, 155, 98, 224, 64, 111, 178, 112, 65, 132, 127, 96, 66, 79, 148, 112, 67, 100, 97, 96, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 0, 3, 1, 2, 3, 4, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 6, 7, 6, 7, 6, 7, 6, 7, 6, 8, 9, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 0, 0, 0, 0, 0, 0, 255, 255, 213, 208, 1, 4, 255, 255, 213, 208, 1, 8, 255, 255, 199, 192, 0, 12, 255, 255, 227, 224, 1, 16, 255, 255, 213, 208, 1, 21, 255, 255, 199, 192, 1, 25, 255, 255, 185, 176, 0, 29, 255, 255, 171, 160, 0, 33, 255, 255, 185, 176, 1, 37, 255, 255, 199, 192, 1, 25, 255, 255, 185, 176, 0, 29, 45, 48, 48, 0, 65, 87, 84, 0, 65, 80, 84, 0, 65, 83, 84, 0, 65, 68, 68, 84, 0, 65, 68, 84, 0, 69, 68, 84, 0, 69, 83, 84, 0, 67, 83, 84, 0, 67, 68, 84, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Paramaribo": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 5, 0, 0, 0, 18, 128, 0, 0, 0, 145, 5, 142, 184, 190, 42, 75, 196, 210, 98, 44, 180, 27, 190, 49, 184, 127, 255, 255, 255, 0, 1, 2, 3, 4, 4, 255, 255, 204, 72, 0, 0, 255, 255, 204, 60, 0, 4, 255, 255, 204, 76, 0, 4, 255, 255, 206, 200, 0, 8, 255, 255, 213, 208, 0, 14, 76, 77, 84, 0, 80, 77, 84, 0, 45, 48, 51, 51, 48, 0, 45, 48, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Phoenix": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 4, 0, 0, 0, 16, 128, 0, 0, 0, 158, 166, 58, 144, 159, 187, 7, 128, 160, 134, 28, 144, 161, 154, 233, 128, 203, 137, 12, 144, 207, 23, 223, 28, 207, 143, 229, 172, 208, 129, 26, 28, 250, 248, 117, 16, 251, 232, 88, 0, 2, 1, 2, 1, 2, 3, 2, 3, 2, 1, 2, 255, 255, 150, 238, 0, 0, 255, 255, 171, 160, 1, 4, 255, 255, 157, 144, 0, 8, 255, 255, 171, 160, 1, 12, 76, 77, 84, 0, 77, 68, 84, 0, 77, 83, 84, 0, 77, 87, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 77, 83, 84, 55, 10}, + + "zoneinfo/America/Port-au-Prince": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 86, 0, 0, 0, 6, 0, 0, 0, 17, 128, 0, 0, 0, 156, 110, 113, 252, 25, 27, 70, 208, 26, 1, 239, 64, 26, 241, 238, 80, 27, 225, 209, 64, 28, 209, 208, 80, 29, 193, 179, 64, 30, 177, 178, 80, 31, 161, 149, 64, 32, 145, 148, 80, 33, 129, 119, 64, 34, 85, 212, 224, 35, 106, 175, 224, 36, 53, 182, 224, 37, 74, 145, 224, 38, 21, 152, 224, 39, 42, 115, 224, 39, 254, 181, 96, 41, 10, 85, 224, 41, 222, 151, 96, 42, 234, 55, 224, 43, 190, 121, 96, 44, 211, 84, 96, 45, 158, 91, 96, 46, 179, 54, 96, 47, 126, 61, 96, 48, 147, 24, 96, 49, 103, 89, 224, 50, 114, 250, 96, 51, 71, 59, 224, 52, 82, 220, 96, 66, 79, 120, 80, 67, 100, 69, 64, 68, 47, 90, 80, 69, 68, 39, 64, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 255, 255, 188, 48, 0, 0, 255, 255, 188, 68, 0, 4, 255, 255, 199, 192, 1, 9, 255, 255, 185, 176, 0, 13, 255, 255, 199, 192, 1, 9, 255, 255, 185, 176, 0, 13, 76, 77, 84, 0, 80, 80, 77, 84, 0, 69, 68, 84, 0, 69, 83, 84, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Port_of_Spain": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 147, 55, 51, 172, 0, 1, 255, 255, 198, 84, 0, 0, 255, 255, 199, 192, 0, 4, 76, 77, 84, 0, 65, 83, 84, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/Porto_Acre": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 33, 0, 0, 0, 5, 0, 0, 0, 12, 128, 0, 0, 0, 150, 170, 134, 144, 184, 15, 102, 0, 184, 253, 92, 192, 185, 241, 80, 80, 186, 222, 144, 64, 218, 56, 202, 80, 218, 236, 22, 80, 220, 25, 253, 208, 220, 185, 117, 64, 221, 251, 49, 80, 222, 155, 250, 64, 223, 221, 182, 80, 224, 84, 79, 64, 244, 152, 27, 208, 245, 5, 122, 64, 246, 192, 128, 80, 247, 14, 58, 192, 248, 81, 72, 80, 248, 199, 225, 64, 250, 10, 238, 208, 250, 169, 20, 192, 251, 236, 34, 80, 252, 139, 153, 192, 29, 201, 170, 80, 30, 120, 243, 192, 31, 160, 81, 208, 32, 51, 235, 192, 33, 129, 133, 80, 34, 11, 228, 192, 72, 96, 127, 80, 82, 127, 4, 192, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 2, 255, 255, 192, 112, 0, 0, 255, 255, 199, 192, 1, 4, 255, 255, 185, 176, 0, 8, 255, 255, 199, 192, 0, 4, 255, 255, 185, 176, 0, 8, 76, 77, 84, 0, 45, 48, 52, 0, 45, 48, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 53, 62, 53, 10}, + + "zoneinfo/America/Porto_Velho": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 31, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 150, 170, 130, 232, 184, 15, 87, 240, 184, 253, 78, 176, 185, 241, 66, 64, 186, 222, 130, 48, 218, 56, 188, 64, 218, 236, 8, 64, 220, 25, 239, 192, 220, 185, 103, 48, 221, 251, 35, 64, 222, 155, 236, 48, 223, 221, 168, 64, 224, 84, 65, 48, 244, 152, 13, 192, 245, 5, 108, 48, 246, 192, 114, 64, 247, 14, 44, 176, 248, 81, 58, 64, 248, 199, 211, 48, 250, 10, 224, 192, 250, 169, 6, 176, 251, 236, 20, 64, 252, 139, 139, 176, 29, 201, 156, 64, 30, 120, 229, 176, 31, 160, 67, 192, 32, 51, 221, 176, 33, 129, 119, 64, 34, 11, 214, 176, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 255, 255, 196, 24, 0, 0, 255, 255, 213, 208, 1, 4, 255, 255, 199, 192, 0, 8, 76, 77, 84, 0, 45, 48, 51, 0, 45, 48, 52, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 52, 62, 52, 10}, + + "zoneinfo/America/Puerto_Rico": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 16, 128, 0, 0, 0, 203, 246, 50, 192, 210, 35, 244, 112, 210, 96, 237, 208, 1, 3, 2, 1, 255, 255, 194, 7, 0, 0, 255, 255, 199, 192, 0, 4, 255, 255, 213, 208, 1, 8, 255, 255, 213, 208, 1, 12, 76, 77, 84, 0, 65, 83, 84, 0, 65, 80, 84, 0, 65, 87, 84, 0, 0, 0, 1, 0, 0, 0, 1, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/Punta_Arenas": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 117, 0, 0, 0, 8, 0, 0, 0, 20, 128, 0, 0, 0, 143, 48, 71, 70, 155, 92, 229, 80, 159, 124, 226, 198, 161, 0, 113, 192, 176, 94, 119, 198, 177, 119, 61, 64, 178, 65, 0, 208, 179, 88, 112, 192, 180, 34, 52, 80, 181, 57, 164, 64, 182, 3, 103, 208, 183, 26, 215, 192, 183, 228, 155, 80, 184, 253, 92, 192, 185, 199, 32, 80, 204, 28, 110, 64, 204, 108, 231, 208, 213, 51, 85, 192, 213, 118, 146, 64, 253, 209, 60, 64, 254, 146, 250, 176, 255, 204, 205, 192, 0, 114, 220, 176, 1, 117, 80, 192, 2, 64, 73, 176, 3, 85, 50, 192, 4, 32, 43, 176, 5, 62, 79, 64, 6, 0, 13, 176, 7, 11, 188, 64, 7, 223, 239, 176, 8, 254, 19, 64, 9, 191, 209, 176, 10, 221, 245, 64, 11, 168, 238, 48, 12, 189, 215, 64, 13, 136, 208, 48, 14, 157, 185, 64, 15, 104, 178, 48, 16, 134, 213, 192, 17, 72, 148, 48, 18, 102, 183, 192, 19, 40, 118, 48, 20, 70, 153, 192, 21, 17, 146, 176, 22, 38, 123, 192, 22, 241, 116, 176, 24, 6, 93, 192, 24, 209, 86, 176, 25, 230, 63, 192, 26, 177, 56, 176, 27, 207, 92, 64, 28, 145, 26, 176, 29, 175, 62, 64, 30, 112, 252, 176, 31, 143, 32, 64, 32, 127, 3, 48, 33, 111, 2, 64, 34, 57, 251, 48, 35, 78, 228, 64, 36, 25, 221, 48, 37, 56, 0, 192, 37, 249, 191, 48, 38, 242, 248, 192, 39, 217, 161, 48, 40, 247, 196, 192, 41, 194, 189, 176, 42, 215, 166, 192, 43, 162, 159, 176, 44, 183, 136, 192, 45, 130, 129, 176, 46, 151, 106, 192, 47, 98, 99, 176, 48, 128, 135, 64, 49, 66, 69, 176, 50, 96, 105, 64, 51, 61, 215, 48, 52, 64, 75, 64, 53, 11, 68, 48, 54, 13, 184, 64, 55, 6, 213, 176, 56, 0, 15, 64, 56, 203, 8, 48, 57, 233, 43, 192, 58, 170, 234, 48, 59, 201, 13, 192, 60, 138, 204, 48, 61, 168, 239, 192, 62, 106, 174, 48, 63, 136, 209, 192, 64, 83, 202, 176, 65, 104, 179, 192, 66, 51, 172, 176, 67, 72, 149, 192, 68, 19, 142, 176, 69, 49, 178, 64, 69, 243, 112, 176, 71, 17, 148, 64, 71, 239, 2, 48, 72, 241, 118, 64, 73, 188, 111, 48, 74, 209, 88, 64, 75, 184, 0, 176, 76, 177, 58, 64, 77, 198, 7, 48, 78, 80, 130, 192, 79, 156, 174, 176, 80, 66, 217, 192, 81, 124, 144, 176, 82, 43, 246, 64, 83, 92, 114, 176, 84, 11, 216, 64, 87, 55, 230, 48, 87, 175, 236, 192, 88, 67, 134, 176, 127, 255, 255, 255, 1, 2, 1, 3, 1, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 3, 2, 3, 2, 3, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 7, 7, 255, 255, 189, 132, 0, 0, 255, 255, 189, 186, 0, 4, 255, 255, 185, 176, 0, 8, 255, 255, 199, 192, 0, 12, 255, 255, 199, 192, 1, 12, 255, 255, 213, 208, 1, 16, 255, 255, 199, 192, 0, 12, 255, 255, 213, 208, 0, 16, 76, 77, 84, 0, 83, 77, 84, 0, 45, 48, 53, 0, 45, 48, 52, 0, 45, 48, 51, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Rainy_River": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 135, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 158, 184, 161, 128, 159, 186, 249, 112, 200, 248, 87, 96, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 8, 32, 207, 128, 9, 16, 178, 112, 10, 0, 177, 128, 10, 240, 148, 112, 11, 224, 147, 128, 12, 217, 176, 240, 13, 192, 117, 128, 14, 185, 146, 240, 15, 169, 146, 0, 16, 153, 116, 240, 17, 137, 116, 0, 18, 121, 86, 240, 19, 105, 86, 0, 20, 89, 56, 240, 21, 73, 56, 0, 22, 57, 26, 240, 23, 41, 26, 0, 24, 34, 55, 112, 25, 8, 252, 0, 26, 2, 25, 112, 26, 242, 24, 128, 27, 225, 251, 112, 28, 209, 250, 128, 29, 193, 221, 112, 30, 177, 220, 128, 31, 161, 191, 112, 32, 118, 15, 0, 33, 129, 161, 112, 34, 85, 241, 0, 35, 106, 189, 240, 36, 53, 211, 0, 37, 74, 159, 240, 38, 21, 181, 0, 39, 42, 129, 240, 39, 254, 209, 128, 41, 10, 99, 240, 41, 222, 179, 128, 42, 234, 69, 240, 43, 190, 149, 128, 44, 211, 98, 112, 45, 158, 119, 128, 46, 179, 68, 112, 47, 126, 89, 128, 48, 147, 38, 112, 49, 103, 118, 0, 50, 115, 8, 112, 51, 71, 88, 0, 52, 82, 234, 112, 53, 39, 58, 0, 54, 50, 204, 112, 55, 7, 28, 0, 56, 27, 232, 240, 56, 230, 254, 0, 57, 251, 202, 240, 58, 198, 224, 0, 59, 219, 172, 240, 60, 175, 252, 128, 61, 187, 142, 240, 62, 143, 222, 128, 63, 155, 112, 240, 64, 111, 192, 128, 65, 132, 141, 112, 66, 79, 162, 128, 67, 100, 111, 112, 68, 47, 132, 128, 69, 68, 81, 112, 69, 243, 183, 0, 71, 45, 109, 240, 71, 211, 153, 0, 73, 13, 79, 240, 73, 179, 123, 0, 74, 237, 49, 240, 75, 156, 151, 128, 76, 214, 78, 112, 77, 124, 121, 128, 78, 182, 48, 112, 79, 92, 91, 128, 80, 150, 18, 112, 81, 60, 61, 128, 82, 117, 244, 112, 83, 28, 31, 128, 84, 85, 214, 112, 84, 252, 1, 128, 86, 53, 184, 112, 86, 229, 30, 0, 88, 30, 212, 240, 88, 197, 0, 0, 89, 254, 182, 240, 90, 164, 226, 0, 91, 222, 152, 240, 92, 132, 196, 0, 93, 190, 122, 240, 94, 100, 166, 0, 95, 158, 92, 240, 96, 77, 194, 128, 97, 135, 121, 112, 98, 45, 164, 128, 99, 103, 91, 112, 100, 13, 134, 128, 101, 71, 61, 112, 101, 237, 104, 128, 103, 39, 31, 112, 103, 205, 74, 128, 105, 7, 1, 112, 105, 173, 44, 128, 106, 230, 227, 112, 107, 150, 73, 0, 108, 207, 255, 240, 109, 118, 43, 0, 110, 175, 225, 240, 111, 86, 13, 0, 112, 143, 195, 240, 113, 53, 239, 0, 114, 111, 165, 240, 115, 21, 209, 0, 116, 79, 135, 240, 116, 254, 237, 128, 118, 56, 164, 112, 118, 222, 207, 128, 120, 24, 134, 112, 120, 190, 177, 128, 121, 248, 104, 112, 122, 158, 147, 128, 123, 216, 74, 112, 124, 126, 117, 128, 125, 184, 44, 112, 126, 94, 87, 128, 127, 152, 14, 112, 2, 1, 2, 1, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 167, 88, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Rankin_Inlet": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 120, 0, 0, 0, 6, 0, 0, 0, 21, 128, 0, 0, 0, 231, 140, 110, 0, 247, 47, 76, 96, 248, 40, 119, 224, 19, 105, 86, 0, 20, 89, 56, 240, 21, 73, 56, 0, 22, 57, 26, 240, 23, 41, 26, 0, 24, 34, 55, 112, 25, 8, 252, 0, 26, 2, 25, 112, 26, 242, 24, 128, 27, 225, 251, 112, 28, 209, 250, 128, 29, 193, 221, 112, 30, 177, 220, 128, 31, 161, 191, 112, 32, 118, 15, 0, 33, 129, 161, 112, 34, 85, 241, 0, 35, 106, 189, 240, 36, 53, 211, 0, 37, 74, 159, 240, 38, 21, 181, 0, 39, 42, 129, 240, 39, 254, 209, 128, 41, 10, 99, 240, 41, 222, 179, 128, 42, 234, 69, 240, 43, 190, 149, 128, 44, 211, 98, 112, 45, 158, 119, 128, 46, 179, 68, 112, 47, 126, 89, 128, 48, 147, 38, 112, 49, 103, 118, 0, 50, 115, 8, 112, 51, 71, 88, 0, 52, 82, 234, 112, 53, 39, 58, 0, 54, 50, 204, 112, 55, 7, 28, 0, 56, 27, 232, 240, 56, 230, 254, 0, 57, 251, 202, 240, 58, 198, 224, 0, 59, 219, 172, 240, 60, 175, 252, 128, 61, 187, 142, 240, 62, 143, 222, 128, 63, 155, 112, 240, 64, 111, 192, 128, 65, 132, 141, 112, 66, 79, 162, 128, 67, 100, 111, 112, 68, 47, 132, 128, 69, 68, 81, 112, 69, 243, 183, 0, 71, 45, 109, 240, 71, 211, 153, 0, 73, 13, 79, 240, 73, 179, 123, 0, 74, 237, 49, 240, 75, 156, 151, 128, 76, 214, 78, 112, 77, 124, 121, 128, 78, 182, 48, 112, 79, 92, 91, 128, 80, 150, 18, 112, 81, 60, 61, 128, 82, 117, 244, 112, 83, 28, 31, 128, 84, 85, 214, 112, 84, 252, 1, 128, 86, 53, 184, 112, 86, 229, 30, 0, 88, 30, 212, 240, 88, 197, 0, 0, 89, 254, 182, 240, 90, 164, 226, 0, 91, 222, 152, 240, 92, 132, 196, 0, 93, 190, 122, 240, 94, 100, 166, 0, 95, 158, 92, 240, 96, 77, 194, 128, 97, 135, 121, 112, 98, 45, 164, 128, 99, 103, 91, 112, 100, 13, 134, 128, 101, 71, 61, 112, 101, 237, 104, 128, 103, 39, 31, 112, 103, 205, 74, 128, 105, 7, 1, 112, 105, 173, 44, 128, 106, 230, 227, 112, 107, 150, 73, 0, 108, 207, 255, 240, 109, 118, 43, 0, 110, 175, 225, 240, 111, 86, 13, 0, 112, 143, 195, 240, 113, 53, 239, 0, 114, 111, 165, 240, 115, 21, 209, 0, 116, 79, 135, 240, 116, 254, 237, 128, 118, 56, 164, 112, 118, 222, 207, 128, 120, 24, 134, 112, 120, 190, 177, 128, 121, 248, 104, 112, 122, 158, 147, 128, 123, 216, 74, 112, 124, 126, 117, 128, 125, 184, 44, 112, 126, 94, 87, 128, 127, 152, 14, 112, 0, 2, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 4, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 0, 0, 0, 0, 0, 0, 255, 255, 199, 192, 1, 4, 255, 255, 171, 160, 0, 9, 255, 255, 185, 176, 1, 13, 255, 255, 185, 176, 0, 17, 255, 255, 171, 160, 0, 9, 45, 48, 48, 0, 67, 68, 68, 84, 0, 67, 83, 84, 0, 67, 68, 84, 0, 69, 83, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Recife": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 150, 170, 103, 184, 184, 15, 73, 224, 184, 253, 64, 160, 185, 241, 52, 48, 186, 222, 116, 32, 218, 56, 174, 48, 218, 235, 250, 48, 220, 25, 225, 176, 220, 185, 89, 32, 221, 251, 21, 48, 222, 155, 222, 32, 223, 221, 154, 48, 224, 84, 51, 32, 244, 151, 255, 176, 245, 5, 94, 32, 246, 192, 100, 48, 247, 14, 30, 160, 248, 81, 44, 48, 248, 199, 197, 32, 250, 10, 210, 176, 250, 168, 248, 160, 251, 236, 6, 48, 252, 139, 125, 160, 29, 201, 142, 48, 30, 120, 215, 160, 31, 160, 53, 176, 32, 51, 207, 160, 33, 129, 105, 48, 34, 11, 200, 160, 35, 88, 16, 176, 35, 226, 112, 32, 37, 55, 242, 176, 37, 212, 199, 32, 55, 246, 198, 176, 56, 184, 133, 32, 57, 223, 227, 48, 57, 233, 15, 160, 59, 200, 255, 176, 60, 111, 14, 160, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 255, 255, 223, 72, 0, 0, 255, 255, 227, 224, 1, 4, 255, 255, 213, 208, 0, 8, 76, 77, 84, 0, 45, 48, 50, 0, 45, 48, 51, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Regina": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 54, 0, 0, 0, 6, 0, 0, 0, 24, 128, 0, 0, 0, 134, 253, 147, 28, 158, 184, 175, 144, 159, 187, 7, 128, 181, 101, 79, 240, 182, 48, 72, 224, 183, 69, 49, 240, 184, 16, 42, 224, 185, 37, 19, 240, 185, 240, 12, 224, 187, 14, 48, 112, 187, 207, 238, 224, 188, 238, 18, 112, 189, 185, 11, 96, 194, 114, 8, 240, 195, 97, 235, 224, 196, 81, 234, 240, 197, 56, 147, 96, 198, 49, 204, 240, 199, 33, 175, 224, 200, 26, 233, 112, 201, 10, 204, 96, 201, 250, 203, 112, 202, 234, 174, 96, 203, 137, 12, 144, 210, 35, 244, 112, 210, 97, 24, 0, 211, 99, 140, 16, 212, 83, 111, 0, 213, 85, 227, 16, 214, 32, 220, 0, 215, 53, 197, 16, 216, 0, 190, 0, 217, 21, 167, 16, 217, 224, 160, 0, 218, 254, 195, 144, 219, 192, 130, 0, 220, 222, 165, 144, 221, 169, 158, 128, 222, 190, 135, 144, 223, 137, 128, 128, 224, 158, 105, 144, 225, 105, 98, 128, 226, 126, 75, 144, 227, 73, 68, 128, 228, 94, 45, 144, 229, 41, 38, 128, 230, 71, 74, 16, 231, 18, 67, 0, 232, 39, 44, 16, 232, 242, 37, 0, 235, 230, 240, 16, 236, 214, 211, 0, 237, 198, 210, 16, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 255, 255, 157, 228, 0, 0, 255, 255, 171, 160, 1, 4, 255, 255, 157, 144, 0, 8, 255, 255, 171, 160, 1, 12, 255, 255, 171, 160, 1, 16, 255, 255, 171, 160, 0, 20, 76, 77, 84, 0, 77, 68, 84, 0, 77, 83, 84, 0, 77, 87, 84, 0, 77, 80, 84, 0, 67, 83, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 10, 67, 83, 84, 54, 10}, + + "zoneinfo/America/Resolute": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 120, 0, 0, 0, 6, 0, 0, 0, 21, 128, 0, 0, 0, 213, 251, 129, 128, 247, 47, 76, 96, 248, 40, 119, 224, 19, 105, 86, 0, 20, 89, 56, 240, 21, 73, 56, 0, 22, 57, 26, 240, 23, 41, 26, 0, 24, 34, 55, 112, 25, 8, 252, 0, 26, 2, 25, 112, 26, 242, 24, 128, 27, 225, 251, 112, 28, 209, 250, 128, 29, 193, 221, 112, 30, 177, 220, 128, 31, 161, 191, 112, 32, 118, 15, 0, 33, 129, 161, 112, 34, 85, 241, 0, 35, 106, 189, 240, 36, 53, 211, 0, 37, 74, 159, 240, 38, 21, 181, 0, 39, 42, 129, 240, 39, 254, 209, 128, 41, 10, 99, 240, 41, 222, 179, 128, 42, 234, 69, 240, 43, 190, 149, 128, 44, 211, 98, 112, 45, 158, 119, 128, 46, 179, 68, 112, 47, 126, 89, 128, 48, 147, 38, 112, 49, 103, 118, 0, 50, 115, 8, 112, 51, 71, 88, 0, 52, 82, 234, 112, 53, 39, 58, 0, 54, 50, 204, 112, 55, 7, 28, 0, 56, 27, 232, 240, 56, 230, 254, 0, 57, 251, 202, 240, 58, 198, 224, 0, 59, 219, 172, 240, 60, 175, 252, 128, 61, 187, 142, 240, 62, 143, 222, 128, 63, 155, 112, 240, 64, 111, 192, 128, 65, 132, 141, 112, 66, 79, 162, 128, 67, 100, 111, 112, 68, 47, 132, 128, 69, 68, 81, 112, 69, 243, 183, 0, 71, 45, 109, 240, 71, 211, 153, 0, 73, 13, 79, 240, 73, 179, 123, 0, 74, 237, 49, 240, 75, 156, 151, 128, 76, 214, 78, 112, 77, 124, 121, 128, 78, 182, 48, 112, 79, 92, 91, 128, 80, 150, 18, 112, 81, 60, 61, 128, 82, 117, 244, 112, 83, 28, 31, 128, 84, 85, 214, 112, 84, 252, 1, 128, 86, 53, 184, 112, 86, 229, 30, 0, 88, 30, 212, 240, 88, 197, 0, 0, 89, 254, 182, 240, 90, 164, 226, 0, 91, 222, 152, 240, 92, 132, 196, 0, 93, 190, 122, 240, 94, 100, 166, 0, 95, 158, 92, 240, 96, 77, 194, 128, 97, 135, 121, 112, 98, 45, 164, 128, 99, 103, 91, 112, 100, 13, 134, 128, 101, 71, 61, 112, 101, 237, 104, 128, 103, 39, 31, 112, 103, 205, 74, 128, 105, 7, 1, 112, 105, 173, 44, 128, 106, 230, 227, 112, 107, 150, 73, 0, 108, 207, 255, 240, 109, 118, 43, 0, 110, 175, 225, 240, 111, 86, 13, 0, 112, 143, 195, 240, 113, 53, 239, 0, 114, 111, 165, 240, 115, 21, 209, 0, 116, 79, 135, 240, 116, 254, 237, 128, 118, 56, 164, 112, 118, 222, 207, 128, 120, 24, 134, 112, 120, 190, 177, 128, 121, 248, 104, 112, 122, 158, 147, 128, 123, 216, 74, 112, 124, 126, 117, 128, 125, 184, 44, 112, 126, 94, 87, 128, 127, 152, 14, 112, 0, 2, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 4, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 4, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 0, 0, 0, 0, 0, 0, 255, 255, 199, 192, 1, 4, 255, 255, 171, 160, 0, 9, 255, 255, 185, 176, 1, 13, 255, 255, 185, 176, 0, 17, 255, 255, 171, 160, 0, 9, 45, 48, 48, 0, 67, 68, 68, 84, 0, 67, 83, 84, 0, 67, 68, 84, 0, 69, 83, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Rio_Branco": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 33, 0, 0, 0, 5, 0, 0, 0, 12, 128, 0, 0, 0, 150, 170, 134, 144, 184, 15, 102, 0, 184, 253, 92, 192, 185, 241, 80, 80, 186, 222, 144, 64, 218, 56, 202, 80, 218, 236, 22, 80, 220, 25, 253, 208, 220, 185, 117, 64, 221, 251, 49, 80, 222, 155, 250, 64, 223, 221, 182, 80, 224, 84, 79, 64, 244, 152, 27, 208, 245, 5, 122, 64, 246, 192, 128, 80, 247, 14, 58, 192, 248, 81, 72, 80, 248, 199, 225, 64, 250, 10, 238, 208, 250, 169, 20, 192, 251, 236, 34, 80, 252, 139, 153, 192, 29, 201, 170, 80, 30, 120, 243, 192, 31, 160, 81, 208, 32, 51, 235, 192, 33, 129, 133, 80, 34, 11, 228, 192, 72, 96, 127, 80, 82, 127, 4, 192, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 2, 255, 255, 192, 112, 0, 0, 255, 255, 199, 192, 1, 4, 255, 255, 185, 176, 0, 8, 255, 255, 199, 192, 0, 4, 255, 255, 185, 176, 0, 8, 76, 77, 84, 0, 45, 48, 52, 0, 45, 48, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 53, 62, 53, 10}, + + "zoneinfo/America/Rosario": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 62, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 162, 146, 143, 48, 182, 123, 82, 64, 183, 26, 201, 176, 184, 30, 143, 64, 184, 212, 112, 48, 186, 23, 125, 192, 186, 181, 163, 176, 187, 248, 177, 64, 188, 150, 215, 48, 189, 217, 228, 192, 190, 120, 10, 176, 191, 187, 24, 64, 192, 90, 143, 176, 193, 157, 157, 64, 194, 59, 195, 48, 195, 126, 208, 192, 196, 28, 246, 176, 197, 96, 4, 64, 197, 254, 42, 48, 199, 65, 55, 192, 199, 224, 175, 48, 200, 129, 148, 64, 202, 77, 161, 176, 202, 238, 134, 192, 206, 77, 255, 48, 206, 176, 237, 192, 211, 41, 53, 176, 212, 67, 100, 192, 244, 61, 8, 48, 244, 159, 246, 192, 245, 5, 108, 48, 246, 50, 16, 64, 246, 230, 159, 176, 248, 19, 67, 192, 248, 199, 211, 48, 249, 244, 119, 64, 250, 211, 54, 176, 251, 195, 53, 192, 252, 188, 83, 48, 253, 172, 82, 64, 254, 156, 53, 48, 255, 140, 52, 64, 7, 163, 74, 176, 8, 36, 111, 160, 35, 148, 181, 176, 36, 16, 148, 160, 37, 55, 242, 176, 37, 240, 118, 160, 39, 33, 15, 48, 39, 208, 88, 160, 41, 0, 255, 64, 41, 176, 58, 160, 42, 224, 211, 48, 43, 153, 87, 32, 55, 246, 198, 176, 56, 191, 42, 176, 71, 119, 9, 176, 71, 220, 127, 32, 72, 250, 162, 176, 73, 188, 97, 32, 127, 255, 255, 255, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 4, 5, 4, 5, 4, 5, 4, 2, 4, 5, 4, 5, 3, 5, 4, 5, 4, 5, 5, 255, 255, 195, 208, 0, 0, 255, 255, 195, 208, 0, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 227, 224, 1, 16, 255, 255, 213, 208, 0, 12, 76, 77, 84, 0, 67, 77, 84, 0, 45, 48, 52, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Santa_Isabel": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 6, 0, 0, 0, 24, 128, 0, 0, 0, 165, 182, 246, 128, 169, 121, 79, 112, 175, 242, 124, 240, 182, 102, 100, 112, 183, 27, 16, 0, 184, 10, 242, 240, 203, 234, 141, 128, 210, 35, 244, 112, 210, 153, 186, 112, 215, 27, 89, 0, 216, 145, 180, 240, 226, 126, 75, 144, 227, 73, 82, 144, 228, 94, 45, 144, 229, 41, 52, 144, 230, 71, 74, 16, 231, 18, 81, 16, 232, 39, 44, 16, 232, 242, 51, 16, 234, 7, 14, 16, 234, 210, 21, 16, 235, 230, 240, 16, 236, 177, 247, 16, 237, 198, 210, 16, 238, 145, 217, 16, 11, 224, 175, 160, 12, 217, 205, 16, 13, 192, 145, 160, 14, 185, 175, 16, 15, 169, 174, 32, 16, 153, 145, 16, 17, 137, 144, 32, 18, 121, 115, 16, 19, 105, 114, 32, 20, 89, 85, 16, 21, 73, 84, 32, 22, 57, 55, 16, 23, 41, 54, 32, 24, 34, 83, 144, 25, 9, 24, 32, 26, 2, 53, 144, 26, 242, 52, 160, 27, 226, 23, 144, 28, 210, 22, 160, 29, 193, 249, 144, 30, 177, 248, 160, 31, 161, 219, 144, 32, 118, 43, 32, 33, 129, 189, 144, 34, 86, 13, 32, 35, 106, 218, 16, 36, 53, 239, 32, 37, 74, 188, 16, 38, 21, 209, 32, 39, 42, 158, 16, 39, 254, 237, 160, 41, 10, 128, 16, 41, 222, 207, 160, 42, 234, 98, 16, 43, 190, 177, 160, 44, 211, 126, 144, 45, 158, 147, 160, 46, 179, 96, 144, 47, 126, 117, 160, 48, 147, 66, 144, 49, 103, 146, 32, 50, 115, 36, 144, 51, 71, 116, 32, 52, 83, 6, 144, 53, 39, 86, 32, 54, 50, 232, 144, 55, 7, 56, 32, 56, 28, 5, 16, 56, 231, 26, 32, 57, 251, 231, 16, 58, 198, 252, 32, 59, 219, 201, 16, 60, 176, 24, 160, 61, 187, 171, 16, 62, 143, 250, 160, 63, 155, 141, 16, 64, 111, 220, 160, 65, 132, 169, 144, 66, 79, 190, 160, 67, 100, 139, 144, 68, 47, 160, 160, 69, 68, 109, 144, 70, 15, 130, 160, 71, 36, 79, 144, 71, 248, 159, 32, 73, 4, 49, 144, 73, 216, 129, 32, 74, 228, 19, 144, 75, 156, 179, 160, 76, 214, 106, 144, 77, 124, 149, 160, 78, 182, 76, 144, 79, 92, 119, 160, 80, 150, 46, 144, 81, 60, 89, 160, 82, 118, 16, 144, 83, 28, 59, 160, 84, 85, 242, 144, 84, 252, 29, 160, 86, 53, 212, 144, 86, 229, 58, 32, 88, 30, 241, 16, 88, 197, 28, 32, 89, 254, 211, 16, 90, 164, 254, 32, 91, 222, 181, 16, 92, 132, 224, 32, 93, 190, 151, 16, 94, 100, 194, 32, 95, 158, 121, 16, 96, 77, 222, 160, 97, 135, 149, 144, 98, 45, 192, 160, 99, 103, 119, 144, 100, 13, 162, 160, 101, 71, 89, 144, 101, 237, 132, 160, 103, 39, 59, 144, 103, 205, 102, 160, 105, 7, 29, 144, 105, 173, 72, 160, 106, 230, 255, 144, 107, 150, 101, 32, 108, 208, 28, 16, 109, 118, 71, 32, 110, 175, 254, 16, 111, 86, 41, 32, 112, 143, 224, 16, 113, 54, 11, 32, 114, 111, 194, 16, 115, 21, 237, 32, 116, 79, 164, 16, 116, 255, 9, 160, 118, 56, 192, 144, 118, 222, 235, 160, 120, 24, 162, 144, 120, 190, 205, 160, 121, 248, 132, 144, 122, 158, 175, 160, 123, 216, 102, 144, 124, 126, 145, 160, 125, 184, 72, 144, 126, 94, 115, 160, 127, 152, 42, 144, 0, 1, 2, 1, 2, 3, 2, 4, 5, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 255, 255, 146, 76, 0, 0, 255, 255, 157, 144, 0, 4, 255, 255, 143, 128, 0, 8, 255, 255, 157, 144, 1, 12, 255, 255, 157, 144, 1, 16, 255, 255, 157, 144, 1, 20, 76, 77, 84, 0, 77, 83, 84, 0, 80, 83, 84, 0, 80, 68, 84, 0, 80, 87, 84, 0, 80, 80, 84, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 10, 80, 83, 84, 56, 80, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Santarem": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 32, 0, 0, 0, 4, 0, 0, 0, 12, 128, 0, 0, 0, 150, 170, 122, 72, 184, 15, 87, 240, 184, 253, 78, 176, 185, 241, 66, 64, 186, 222, 130, 48, 218, 56, 188, 64, 218, 236, 8, 64, 220, 25, 239, 192, 220, 185, 103, 48, 221, 251, 35, 64, 222, 155, 236, 48, 223, 221, 168, 64, 224, 84, 65, 48, 244, 152, 13, 192, 245, 5, 108, 48, 246, 192, 114, 64, 247, 14, 44, 176, 248, 81, 58, 64, 248, 199, 211, 48, 250, 10, 224, 192, 250, 169, 6, 176, 251, 236, 20, 64, 252, 139, 139, 176, 29, 201, 156, 64, 30, 120, 229, 176, 31, 160, 67, 192, 32, 51, 221, 176, 33, 129, 119, 64, 34, 11, 214, 176, 72, 96, 113, 64, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 3, 255, 255, 204, 184, 0, 0, 255, 255, 213, 208, 1, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 0, 4, 76, 77, 84, 0, 45, 48, 51, 0, 45, 48, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/America/Santiago": []byte{84, 90, 105, 102, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 160, 0, 0, 0, 8, 0, 0, 0, 20, 128, 0, 0, 0, 143, 48, 71, 70, 155, 92, 229, 80, 159, 124, 226, 198, 161, 0, 113, 192, 176, 94, 119, 198, 177, 119, 61, 64, 178, 65, 0, 208, 179, 88, 112, 192, 180, 34, 52, 80, 181, 57, 164, 64, 182, 3, 103, 208, 183, 26, 215, 192, 183, 228, 155, 80, 184, 253, 92, 192, 185, 199, 32, 80, 204, 28, 110, 64, 204, 108, 231, 208, 211, 220, 143, 192, 212, 27, 201, 176, 213, 51, 85, 192, 213, 118, 146, 64, 253, 209, 60, 64, 254, 146, 250, 176, 255, 204, 205, 192, 0, 114, 220, 176, 1, 117, 80, 192, 2, 64, 73, 176, 3, 85, 50, 192, 4, 32, 43, 176, 5, 62, 79, 64, 6, 0, 13, 176, 7, 11, 188, 64, 7, 223, 239, 176, 8, 254, 19, 64, 9, 191, 209, 176, 10, 221, 245, 64, 11, 168, 238, 48, 12, 189, 215, 64, 13, 136, 208, 48, 14, 157, 185, 64, 15, 104, 178, 48, 16, 134, 213, 192, 17, 72, 148, 48, 18, 102, 183, 192, 19, 40, 118, 48, 20, 70, 153, 192, 21, 17, 146, 176, 22, 38, 123, 192, 22, 241, 116, 176, 24, 6, 93, 192, 24, 209, 86, 176, 25, 230, 63, 192, 26, 177, 56, 176, 27, 207, 92, 64, 28, 145, 26, 176, 29, 175, 62, 64, 30, 112, 252, 176, 31, 143, 32, 64, 32, 127, 3, 48, 33, 111, 2, 64, 34, 57, 251, 48, 35, 78, 228, 64, 36, 25, 221, 48, 37, 56, 0, 192, 37, 249, 191, 48, 38, 242, 248, 192, 39, 217, 161, 48, 40, 247, 196, 192, 41, 194, 189, 176, 42, 215, 166, 192, 43, 162, 159, 176, 44, 183, 136, 192, 45, 130, 129, 176, 46, 151, 106, 192, 47, 98, 99, 176, 48, 128, 135, 64, 49, 66, 69, 176, 50, 96, 105, 64, 51, 61, 215, 48, 52, 64, 75, 64, 53, 11, 68, 48, 54, 13, 184, 64, 55, 6, 213, 176, 56, 0, 15, 64, 56, 203, 8, 48, 57, 233, 43, 192, 58, 170, 234, 48, 59, 201, 13, 192, 60, 138, 204, 48, 61, 168, 239, 192, 62, 106, 174, 48, 63, 136, 209, 192, 64, 83, 202, 176, 65, 104, 179, 192, 66, 51, 172, 176, 67, 72, 149, 192, 68, 19, 142, 176, 69, 49, 178, 64, 69, 243, 112, 176, 71, 17, 148, 64, 71, 239, 2, 48, 72, 241, 118, 64, 73, 188, 111, 48, 74, 209, 88, 64, 75, 184, 0, 176, 76, 177, 58, 64, 77, 198, 7, 48, 78, 80, 130, 192, 79, 156, 174, 176, 80, 66, 217, 192, 81, 124, 144, 176, 82, 43, 246, 64, 83, 92, 114, 176, 84, 11, 216, 64, 87, 55, 230, 48, 87, 175, 236, 192, 89, 23, 200, 48, 89, 143, 206, 192, 90, 247, 170, 48, 91, 111, 176, 192, 92, 215, 140, 48, 93, 79, 146, 192, 94, 183, 110, 48, 95, 47, 116, 192, 96, 151, 80, 48, 97, 24, 145, 64, 98, 128, 108, 176, 98, 248, 115, 64, 100, 96, 78, 176, 100, 216, 85, 64, 102, 64, 48, 176, 102, 184, 55, 64, 104, 32, 18, 176, 104, 152, 25, 64, 105, 255, 244, 176, 106, 119, 251, 64, 107, 223, 214, 176, 108, 97, 23, 192, 109, 200, 243, 48, 110, 64, 249, 192, 111, 168, 213, 48, 112, 32, 219, 192, 113, 136, 183, 48, 114, 0, 189, 192, 115, 104, 153, 48, 115, 224, 159, 192, 117, 72, 123, 48, 117, 201, 188, 64, 119, 49, 151, 176, 119, 169, 158, 64, 121, 17, 121, 176, 121, 137, 128, 64, 122, 241, 91, 176, 123, 105, 98, 64, 124, 209, 61, 176, 125, 73, 68, 64, 126, 177, 31, 176, 127, 41, 38, 64, 127, 255, 255, 255, 1, 2, 1, 3, 1, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 3, 2, 3, 5, 3, 2, 3, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 6, 255, 255, 189, 186, 0, 0, 255, 255, 189, 186, 0, 4, 255, 255, 185, 176, 0, 8, 255, 255, 199, 192, 0, 12, 255, 255, 199, 192, 1, 12, 255, 255, 213, 208, 1, 16, 255, 255, 213, 208, 1, 16, 255, 255, 199, 192, 0, 12, 76, 77, 84, 0, 83, 77, 84, 0, 45, 48, 53, 0, 45, 48, 52, 0, 45, 48, 51, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 10, 60, 45, 48, 52, 62, 52, 60, 45, 48, 51, 62, 44, 77, 56, 46, 50, 46, 54, 47, 50, 52, 44, 77, 53, 46, 50, 46, 54, 47, 50, 52, 10}, + + "zoneinfo/America/Santo_Domingo": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 6, 0, 0, 0, 27, 128, 0, 0, 0, 186, 223, 66, 96, 250, 8, 75, 208, 250, 167, 195, 64, 255, 167, 241, 208, 0, 67, 123, 200, 1, 135, 211, 208, 1, 250, 127, 72, 3, 112, 240, 80, 3, 221, 4, 72, 5, 80, 210, 80, 5, 191, 137, 72, 7, 48, 180, 80, 7, 160, 188, 200, 9, 16, 150, 80, 57, 251, 188, 224, 58, 41, 225, 96, 1, 3, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 5, 3, 5, 255, 255, 190, 120, 0, 0, 255, 255, 190, 96, 0, 4, 255, 255, 199, 192, 1, 9, 255, 255, 185, 176, 0, 13, 255, 255, 192, 184, 1, 17, 255, 255, 199, 192, 0, 23, 76, 77, 84, 0, 83, 68, 77, 84, 0, 69, 68, 84, 0, 69, 83, 84, 0, 45, 48, 52, 51, 48, 0, 65, 83, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/Sao_Paulo": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 129, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 150, 170, 114, 180, 184, 15, 73, 224, 184, 253, 64, 160, 185, 241, 52, 48, 186, 222, 116, 32, 218, 56, 174, 48, 218, 235, 250, 48, 220, 25, 225, 176, 220, 185, 89, 32, 221, 251, 21, 48, 222, 155, 222, 32, 223, 221, 154, 48, 224, 84, 51, 32, 244, 90, 9, 48, 245, 5, 94, 32, 246, 192, 100, 48, 247, 14, 30, 160, 248, 81, 44, 48, 248, 199, 197, 32, 250, 10, 210, 176, 250, 168, 248, 160, 251, 236, 6, 48, 252, 139, 125, 160, 29, 201, 142, 48, 30, 120, 215, 160, 31, 160, 53, 176, 32, 51, 207, 160, 33, 129, 105, 48, 34, 11, 200, 160, 35, 88, 16, 176, 35, 226, 112, 32, 37, 55, 242, 176, 37, 212, 199, 32, 39, 33, 15, 48, 39, 189, 227, 160, 41, 0, 241, 48, 41, 148, 139, 32, 42, 234, 13, 176, 43, 107, 50, 160, 44, 192, 181, 48, 45, 102, 196, 32, 46, 160, 151, 48, 47, 70, 166, 32, 48, 128, 121, 48, 49, 29, 77, 160, 50, 87, 32, 176, 51, 6, 106, 32, 52, 56, 84, 48, 52, 248, 193, 32, 54, 32, 31, 48, 54, 207, 104, 160, 55, 246, 198, 176, 56, 184, 133, 32, 57, 223, 227, 48, 58, 143, 44, 160, 59, 200, 255, 176, 60, 111, 14, 160, 61, 196, 145, 48, 62, 78, 240, 160, 63, 145, 254, 48, 64, 46, 210, 160, 65, 134, 248, 48, 66, 23, 239, 32, 67, 81, 194, 48, 67, 247, 209, 32, 69, 77, 83, 176, 69, 224, 237, 160, 71, 17, 134, 48, 71, 183, 149, 32, 72, 250, 162, 176, 73, 151, 119, 32, 74, 218, 132, 176, 75, 128, 147, 160, 76, 186, 102, 176, 77, 96, 117, 160, 78, 154, 72, 176, 79, 73, 146, 32, 80, 131, 101, 48, 81, 32, 57, 160, 82, 99, 71, 48, 83, 0, 27, 160, 84, 67, 41, 48, 84, 233, 56, 32, 86, 35, 11, 48, 86, 201, 26, 32, 88, 2, 237, 48, 88, 168, 252, 32, 89, 226, 207, 48, 90, 136, 222, 32, 91, 203, 235, 176, 92, 104, 192, 32, 93, 171, 205, 176, 94, 72, 162, 32, 95, 139, 175, 176, 96, 49, 190, 160, 97, 107, 145, 176, 98, 17, 160, 160, 99, 75, 115, 176, 99, 250, 189, 32, 101, 43, 85, 176, 101, 209, 100, 160, 103, 20, 114, 48, 103, 177, 70, 160, 104, 244, 84, 48, 105, 154, 99, 32, 106, 212, 54, 48, 107, 122, 69, 32, 108, 180, 24, 48, 109, 90, 39, 32, 110, 147, 250, 48, 111, 58, 9, 32, 112, 125, 22, 176, 113, 25, 235, 32, 114, 92, 248, 176, 114, 249, 205, 32, 116, 60, 218, 176, 116, 217, 175, 32, 118, 28, 188, 176, 118, 194, 203, 160, 119, 252, 158, 176, 120, 171, 232, 32, 121, 220, 128, 176, 122, 130, 143, 160, 123, 197, 157, 48, 124, 98, 113, 160, 125, 165, 127, 48, 126, 75, 142, 32, 127, 133, 97, 48, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 255, 255, 212, 76, 0, 0, 255, 255, 227, 224, 1, 4, 255, 255, 213, 208, 0, 8, 76, 77, 84, 0, 45, 48, 50, 0, 45, 48, 51, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 60, 45, 48, 50, 62, 44, 77, 49, 48, 46, 51, 46, 48, 47, 48, 44, 77, 50, 46, 51, 46, 48, 47, 48, 10}, + + "zoneinfo/America/Scoresbysund": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 119, 0, 0, 0, 7, 0, 0, 0, 16, 128, 0, 0, 0, 155, 128, 76, 24, 19, 77, 110, 64, 20, 52, 36, 192, 21, 35, 249, 160, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 127, 255, 255, 255, 0, 1, 2, 3, 6, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 4, 255, 255, 235, 104, 0, 0, 255, 255, 227, 224, 0, 4, 255, 255, 241, 240, 1, 8, 255, 255, 227, 224, 0, 4, 255, 255, 241, 240, 0, 8, 0, 0, 0, 0, 1, 12, 0, 0, 0, 0, 1, 12, 76, 77, 84, 0, 45, 48, 50, 0, 45, 48, 49, 0, 43, 48, 48, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 10, 60, 45, 48, 49, 62, 49, 60, 43, 48, 48, 62, 44, 77, 51, 46, 53, 46, 48, 47, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 49, 10}, + + "zoneinfo/America/Shiprock": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 158, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 158, 166, 58, 144, 159, 187, 7, 128, 160, 134, 28, 144, 161, 154, 233, 128, 162, 101, 254, 144, 163, 132, 6, 0, 164, 69, 224, 144, 164, 143, 166, 128, 203, 137, 12, 144, 210, 35, 244, 112, 210, 97, 24, 0, 247, 47, 118, 144, 248, 40, 148, 0, 249, 15, 88, 144, 250, 8, 118, 0, 250, 248, 117, 16, 251, 232, 88, 0, 252, 216, 87, 16, 253, 200, 58, 0, 254, 184, 57, 16, 255, 168, 28, 0, 0, 152, 27, 16, 1, 135, 254, 0, 2, 119, 253, 16, 3, 113, 26, 128, 4, 97, 25, 144, 5, 80, 252, 128, 6, 64, 251, 144, 7, 48, 222, 128, 7, 141, 53, 144, 9, 16, 192, 128, 9, 173, 177, 16, 10, 240, 162, 128, 11, 224, 161, 144, 12, 217, 191, 0, 13, 192, 131, 144, 14, 185, 161, 0, 15, 169, 160, 16, 16, 153, 131, 0, 17, 137, 130, 16, 18, 121, 101, 0, 19, 105, 100, 16, 20, 89, 71, 0, 21, 73, 70, 16, 22, 57, 41, 0, 23, 41, 40, 16, 24, 34, 69, 128, 25, 9, 10, 16, 26, 2, 39, 128, 26, 242, 38, 144, 27, 226, 9, 128, 28, 210, 8, 144, 29, 193, 235, 128, 30, 177, 234, 144, 31, 161, 205, 128, 32, 118, 29, 16, 33, 129, 175, 128, 34, 85, 255, 16, 35, 106, 204, 0, 36, 53, 225, 16, 37, 74, 174, 0, 38, 21, 195, 16, 39, 42, 144, 0, 39, 254, 223, 144, 41, 10, 114, 0, 41, 222, 193, 144, 42, 234, 84, 0, 43, 190, 163, 144, 44, 211, 112, 128, 45, 158, 133, 144, 46, 179, 82, 128, 47, 126, 103, 144, 48, 147, 52, 128, 49, 103, 132, 16, 50, 115, 22, 128, 51, 71, 102, 16, 52, 82, 248, 128, 53, 39, 72, 16, 54, 50, 218, 128, 55, 7, 42, 16, 56, 27, 247, 0, 56, 231, 12, 16, 57, 251, 217, 0, 58, 198, 238, 16, 59, 219, 187, 0, 60, 176, 10, 144, 61, 187, 157, 0, 62, 143, 236, 144, 63, 155, 127, 0, 64, 111, 206, 144, 65, 132, 155, 128, 66, 79, 176, 144, 67, 100, 125, 128, 68, 47, 146, 144, 69, 68, 95, 128, 69, 243, 197, 16, 71, 45, 124, 0, 71, 211, 167, 16, 73, 13, 94, 0, 73, 179, 137, 16, 74, 237, 64, 0, 75, 156, 165, 144, 76, 214, 92, 128, 77, 124, 135, 144, 78, 182, 62, 128, 79, 92, 105, 144, 80, 150, 32, 128, 81, 60, 75, 144, 82, 118, 2, 128, 83, 28, 45, 144, 84, 85, 228, 128, 84, 252, 15, 144, 86, 53, 198, 128, 86, 229, 44, 16, 88, 30, 227, 0, 88, 197, 14, 16, 89, 254, 197, 0, 90, 164, 240, 16, 91, 222, 167, 0, 92, 132, 210, 16, 93, 190, 137, 0, 94, 100, 180, 16, 95, 158, 107, 0, 96, 77, 208, 144, 97, 135, 135, 128, 98, 45, 178, 144, 99, 103, 105, 128, 100, 13, 148, 144, 101, 71, 75, 128, 101, 237, 118, 144, 103, 39, 45, 128, 103, 205, 88, 144, 105, 7, 15, 128, 105, 173, 58, 144, 106, 230, 241, 128, 107, 150, 87, 16, 108, 208, 14, 0, 109, 118, 57, 16, 110, 175, 240, 0, 111, 86, 27, 16, 112, 143, 210, 0, 113, 53, 253, 16, 114, 111, 180, 0, 115, 21, 223, 16, 116, 79, 150, 0, 116, 254, 251, 144, 118, 56, 178, 128, 118, 222, 221, 144, 120, 24, 148, 128, 120, 190, 191, 144, 121, 248, 118, 128, 122, 158, 161, 144, 123, 216, 88, 128, 124, 126, 131, 144, 125, 184, 58, 128, 126, 94, 101, 144, 127, 152, 28, 128, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 157, 148, 0, 0, 255, 255, 171, 160, 1, 4, 255, 255, 157, 144, 0, 8, 255, 255, 171, 160, 1, 12, 255, 255, 171, 160, 1, 16, 76, 77, 84, 0, 77, 68, 84, 0, 77, 83, 84, 0, 77, 87, 84, 0, 77, 80, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 10, 77, 83, 84, 55, 77, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Sitka": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 143, 0, 0, 0, 8, 0, 0, 0, 34, 128, 0, 0, 0, 203, 137, 26, 160, 210, 35, 244, 112, 210, 97, 38, 16, 254, 184, 71, 32, 255, 168, 42, 16, 0, 152, 41, 32, 1, 136, 12, 16, 2, 120, 11, 32, 3, 113, 40, 144, 4, 97, 39, 160, 5, 81, 10, 144, 6, 65, 9, 160, 7, 48, 236, 144, 7, 141, 67, 160, 9, 16, 206, 144, 9, 173, 191, 32, 10, 240, 176, 144, 11, 224, 175, 160, 12, 217, 205, 16, 13, 192, 145, 160, 14, 185, 175, 16, 15, 169, 174, 32, 16, 153, 145, 16, 17, 137, 144, 32, 18, 121, 115, 16, 19, 105, 114, 32, 20, 89, 85, 16, 21, 73, 84, 32, 22, 57, 55, 16, 23, 41, 54, 32, 24, 34, 83, 144, 25, 9, 24, 32, 26, 2, 53, 144, 26, 43, 20, 16, 26, 242, 66, 176, 27, 226, 37, 160, 28, 210, 36, 176, 29, 194, 7, 160, 30, 178, 6, 176, 31, 161, 233, 160, 32, 118, 57, 48, 33, 129, 203, 160, 34, 86, 27, 48, 35, 106, 232, 32, 36, 53, 253, 48, 37, 74, 202, 32, 38, 21, 223, 48, 39, 42, 172, 32, 39, 254, 251, 176, 41, 10, 142, 32, 41, 222, 221, 176, 42, 234, 112, 32, 43, 190, 191, 176, 44, 211, 140, 160, 45, 158, 161, 176, 46, 179, 110, 160, 47, 126, 131, 176, 48, 147, 80, 160, 49, 103, 160, 48, 50, 115, 50, 160, 51, 71, 130, 48, 52, 83, 20, 160, 53, 39, 100, 48, 54, 50, 246, 160, 55, 7, 70, 48, 56, 28, 19, 32, 56, 231, 40, 48, 57, 251, 245, 32, 58, 199, 10, 48, 59, 219, 215, 32, 60, 176, 38, 176, 61, 187, 185, 32, 62, 144, 8, 176, 63, 155, 155, 32, 64, 111, 234, 176, 65, 132, 183, 160, 66, 79, 204, 176, 67, 100, 153, 160, 68, 47, 174, 176, 69, 68, 123, 160, 69, 243, 225, 48, 71, 45, 152, 32, 71, 211, 195, 48, 73, 13, 122, 32, 73, 179, 165, 48, 74, 237, 92, 32, 75, 156, 193, 176, 76, 214, 120, 160, 77, 124, 163, 176, 78, 182, 90, 160, 79, 92, 133, 176, 80, 150, 60, 160, 81, 60, 103, 176, 82, 118, 30, 160, 83, 28, 73, 176, 84, 86, 0, 160, 84, 252, 43, 176, 86, 53, 226, 160, 86, 229, 72, 48, 88, 30, 255, 32, 88, 197, 42, 48, 89, 254, 225, 32, 90, 165, 12, 48, 91, 222, 195, 32, 92, 132, 238, 48, 93, 190, 165, 32, 94, 100, 208, 48, 95, 158, 135, 32, 96, 77, 236, 176, 97, 135, 163, 160, 98, 45, 206, 176, 99, 103, 133, 160, 100, 13, 176, 176, 101, 71, 103, 160, 101, 237, 146, 176, 103, 39, 73, 160, 103, 205, 116, 176, 105, 7, 43, 160, 105, 173, 86, 176, 106, 231, 13, 160, 107, 150, 115, 48, 108, 208, 42, 32, 109, 118, 85, 48, 110, 176, 12, 32, 111, 86, 55, 48, 112, 143, 238, 32, 113, 54, 25, 48, 114, 111, 208, 32, 115, 21, 251, 48, 116, 79, 178, 32, 116, 255, 23, 176, 118, 56, 206, 160, 118, 222, 249, 176, 120, 24, 176, 160, 120, 190, 219, 176, 121, 248, 146, 160, 122, 158, 189, 176, 123, 216, 116, 160, 124, 126, 159, 176, 125, 184, 86, 160, 126, 94, 129, 176, 127, 152, 56, 160, 1, 2, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 5, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 255, 255, 129, 39, 0, 0, 255, 255, 143, 128, 0, 4, 255, 255, 157, 144, 1, 8, 255, 255, 157, 144, 1, 12, 255, 255, 157, 144, 1, 16, 255, 255, 129, 112, 0, 20, 255, 255, 143, 128, 1, 24, 255, 255, 129, 112, 0, 29, 76, 77, 84, 0, 80, 83, 84, 0, 80, 87, 84, 0, 80, 80, 84, 0, 80, 68, 84, 0, 89, 83, 84, 0, 65, 75, 68, 84, 0, 65, 75, 83, 84, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 10, 65, 75, 83, 84, 57, 65, 75, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/St_Barthelemy": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 147, 55, 51, 172, 0, 1, 255, 255, 198, 84, 0, 0, 255, 255, 199, 192, 0, 4, 76, 77, 84, 0, 65, 83, 84, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/St_Johns": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 239, 0, 0, 0, 9, 0, 0, 0, 25, 128, 0, 0, 0, 156, 207, 98, 12, 157, 164, 230, 252, 158, 184, 126, 140, 159, 186, 214, 124, 160, 182, 136, 220, 161, 56, 255, 76, 162, 149, 25, 92, 163, 132, 252, 76, 164, 116, 251, 92, 165, 100, 222, 76, 166, 94, 23, 220, 167, 68, 192, 76, 168, 61, 249, 220, 169, 36, 162, 76, 170, 29, 219, 220, 171, 4, 132, 76, 171, 253, 189, 220, 172, 228, 102, 76, 173, 221, 159, 220, 174, 205, 130, 204, 175, 189, 129, 220, 176, 173, 100, 204, 177, 166, 158, 92, 178, 141, 70, 204, 179, 134, 128, 92, 180, 109, 40, 204, 181, 102, 98, 92, 182, 77, 10, 204, 183, 70, 68, 92, 184, 44, 236, 204, 185, 38, 38, 92, 186, 22, 9, 76, 187, 15, 66, 220, 187, 245, 235, 76, 188, 239, 36, 220, 189, 213, 205, 76, 190, 158, 77, 108, 190, 207, 6, 168, 191, 181, 175, 24, 192, 184, 49, 56, 193, 121, 239, 168, 194, 152, 19, 56, 195, 89, 209, 168, 196, 119, 245, 56, 197, 57, 179, 168, 198, 97, 17, 184, 199, 25, 149, 168, 200, 64, 243, 184, 201, 2, 178, 40, 202, 32, 213, 184, 202, 226, 148, 40, 204, 0, 183, 184, 210, 35, 244, 112, 210, 96, 230, 200, 211, 136, 68, 216, 212, 74, 3, 72, 213, 104, 38, 216, 214, 41, 229, 72, 215, 72, 8, 216, 216, 9, 199, 72, 217, 39, 234, 216, 217, 233, 169, 72, 219, 17, 7, 88, 219, 210, 197, 200, 220, 222, 116, 88, 221, 169, 109, 72, 222, 190, 86, 88, 223, 137, 79, 72, 224, 158, 56, 88, 225, 105, 49, 72, 226, 126, 26, 88, 227, 73, 19, 72, 228, 93, 252, 88, 229, 40, 245, 72, 230, 71, 24, 216, 231, 18, 17, 200, 232, 38, 250, 216, 232, 241, 243, 200, 234, 6, 220, 216, 234, 209, 213, 200, 235, 230, 190, 216, 236, 177, 183, 200, 237, 198, 160, 216, 238, 191, 190, 72, 239, 175, 189, 88, 240, 159, 160, 72, 241, 143, 159, 88, 242, 127, 130, 72, 243, 111, 129, 88, 244, 95, 100, 72, 245, 79, 99, 88, 246, 63, 70, 72, 247, 47, 69, 88, 248, 40, 98, 200, 249, 15, 39, 88, 250, 8, 68, 200, 250, 248, 67, 216, 251, 232, 38, 200, 252, 216, 37, 216, 253, 200, 8, 200, 254, 184, 7, 216, 255, 167, 234, 200, 0, 151, 233, 216, 1, 135, 204, 200, 2, 119, 203, 216, 3, 112, 233, 72, 4, 96, 232, 88, 5, 80, 203, 72, 6, 64, 202, 88, 7, 48, 173, 72, 8, 32, 172, 88, 9, 16, 143, 72, 10, 0, 142, 88, 10, 240, 113, 72, 11, 224, 112, 88, 12, 217, 141, 200, 13, 192, 82, 88, 14, 185, 111, 200, 15, 169, 110, 216, 16, 153, 81, 200, 17, 137, 80, 216, 18, 121, 51, 200, 19, 105, 50, 216, 20, 89, 21, 200, 21, 73, 20, 216, 22, 56, 247, 200, 23, 40, 246, 216, 24, 34, 20, 72, 25, 8, 216, 216, 26, 1, 246, 72, 26, 241, 245, 88, 27, 225, 216, 72, 28, 209, 215, 88, 29, 193, 186, 72, 30, 177, 185, 88, 31, 161, 156, 72, 32, 117, 207, 244, 33, 129, 98, 100, 34, 85, 177, 244, 35, 106, 112, 212, 36, 53, 147, 244, 37, 74, 96, 228, 38, 21, 117, 244, 39, 42, 66, 228, 39, 254, 146, 116, 41, 10, 36, 228, 41, 222, 116, 116, 42, 234, 6, 228, 43, 190, 86, 116, 44, 211, 35, 100, 45, 158, 56, 116, 46, 179, 5, 100, 47, 126, 26, 116, 48, 146, 231, 100, 49, 103, 54, 244, 50, 114, 201, 100, 51, 71, 24, 244, 52, 82, 171, 100, 53, 38, 250, 244, 54, 50, 141, 100, 55, 6, 220, 244, 56, 27, 169, 228, 56, 230, 190, 244, 57, 251, 139, 228, 58, 198, 160, 244, 59, 219, 109, 228, 60, 175, 189, 116, 61, 187, 79, 228, 62, 143, 159, 116, 63, 155, 49, 228, 64, 111, 129, 116, 65, 132, 78, 100, 66, 79, 99, 116, 67, 100, 48, 100, 68, 47, 69, 116, 69, 68, 18, 100, 69, 243, 119, 244, 71, 45, 46, 228, 71, 211, 89, 244, 73, 13, 16, 228, 73, 179, 59, 244, 74, 236, 242, 228, 75, 156, 88, 116, 76, 214, 15, 100, 77, 124, 58, 116, 78, 182, 13, 72, 79, 92, 56, 88, 80, 149, 239, 72, 81, 60, 26, 88, 82, 117, 209, 72, 83, 27, 252, 88, 84, 85, 179, 72, 84, 251, 222, 88, 86, 53, 149, 72, 86, 228, 250, 216, 88, 30, 177, 200, 88, 196, 220, 216, 89, 254, 147, 200, 90, 164, 190, 216, 91, 222, 117, 200, 92, 132, 160, 216, 93, 190, 87, 200, 94, 100, 130, 216, 95, 158, 57, 200, 96, 77, 159, 88, 97, 135, 86, 72, 98, 45, 129, 88, 99, 103, 56, 72, 100, 13, 99, 88, 101, 71, 26, 72, 101, 237, 69, 88, 103, 38, 252, 72, 103, 205, 39, 88, 105, 6, 222, 72, 105, 173, 9, 88, 106, 230, 192, 72, 107, 150, 37, 216, 108, 207, 220, 200, 109, 118, 7, 216, 110, 175, 190, 200, 111, 85, 233, 216, 112, 143, 160, 200, 113, 53, 203, 216, 114, 111, 130, 200, 115, 21, 173, 216, 116, 79, 100, 200, 116, 254, 202, 88, 118, 56, 129, 72, 118, 222, 172, 88, 120, 24, 99, 72, 120, 190, 142, 88, 121, 248, 69, 72, 122, 158, 112, 88, 123, 216, 39, 72, 124, 126, 82, 88, 125, 184, 9, 72, 126, 94, 52, 88, 127, 151, 235, 72, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 6, 5, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 7, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 255, 255, 206, 148, 0, 0, 255, 255, 220, 164, 1, 4, 255, 255, 206, 148, 0, 8, 255, 255, 220, 216, 1, 4, 255, 255, 206, 200, 0, 8, 255, 255, 220, 216, 1, 12, 255, 255, 220, 216, 1, 16, 255, 255, 234, 232, 1, 20, 255, 255, 220, 216, 1, 4, 76, 77, 84, 0, 78, 68, 84, 0, 78, 83, 84, 0, 78, 80, 84, 0, 78, 87, 84, 0, 78, 68, 68, 84, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 10, 78, 83, 84, 51, 58, 51, 48, 78, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/St_Kitts": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 147, 55, 51, 172, 0, 1, 255, 255, 198, 84, 0, 0, 255, 255, 199, 192, 0, 4, 76, 77, 84, 0, 65, 83, 84, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/St_Lucia": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 147, 55, 51, 172, 0, 1, 255, 255, 198, 84, 0, 0, 255, 255, 199, 192, 0, 4, 76, 77, 84, 0, 65, 83, 84, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/St_Thomas": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 147, 55, 51, 172, 0, 1, 255, 255, 198, 84, 0, 0, 255, 255, 199, 192, 0, 4, 76, 77, 84, 0, 65, 83, 84, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/St_Vincent": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 147, 55, 51, 172, 0, 1, 255, 255, 198, 84, 0, 0, 255, 255, 199, 192, 0, 4, 76, 77, 84, 0, 65, 83, 84, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/Swift_Current": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 6, 0, 0, 0, 24, 128, 0, 0, 0, 134, 253, 150, 24, 158, 184, 175, 144, 159, 187, 7, 128, 203, 137, 12, 144, 210, 35, 244, 112, 210, 97, 24, 0, 211, 118, 1, 16, 212, 83, 111, 0, 213, 85, 227, 16, 214, 32, 220, 0, 215, 53, 197, 16, 216, 0, 190, 0, 217, 21, 167, 16, 217, 224, 160, 0, 232, 39, 44, 16, 233, 23, 15, 0, 235, 230, 240, 16, 236, 214, 211, 0, 237, 198, 210, 16, 238, 145, 203, 0, 239, 175, 238, 144, 240, 113, 173, 0, 4, 97, 25, 144, 0, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 255, 255, 154, 232, 0, 0, 255, 255, 171, 160, 1, 4, 255, 255, 157, 144, 0, 8, 255, 255, 171, 160, 1, 12, 255, 255, 171, 160, 1, 16, 255, 255, 171, 160, 0, 20, 76, 77, 84, 0, 77, 68, 84, 0, 77, 83, 84, 0, 77, 87, 84, 0, 77, 80, 84, 0, 67, 83, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 10, 67, 83, 84, 54, 10}, + + "zoneinfo/America/Tegucigalpa": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 164, 76, 75, 68, 32, 154, 220, 224, 33, 92, 155, 80, 34, 122, 190, 224, 35, 60, 125, 80, 68, 93, 140, 224, 68, 214, 200, 208, 0, 2, 1, 2, 1, 2, 1, 2, 255, 255, 174, 60, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 54, 10}, + + "zoneinfo/America/Thule": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 96, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 155, 128, 119, 252, 39, 245, 122, 224, 40, 229, 93, 208, 41, 213, 92, 224, 42, 197, 63, 208, 43, 190, 121, 96, 44, 211, 70, 80, 45, 158, 91, 96, 46, 179, 40, 80, 47, 126, 61, 96, 48, 147, 10, 80, 49, 103, 89, 224, 50, 114, 236, 80, 51, 71, 59, 224, 52, 82, 206, 80, 53, 39, 29, 224, 54, 50, 176, 80, 55, 6, 255, 224, 56, 27, 204, 208, 56, 230, 225, 224, 57, 251, 174, 208, 58, 198, 195, 224, 59, 219, 144, 208, 60, 175, 224, 96, 61, 187, 114, 208, 62, 143, 194, 96, 63, 155, 84, 208, 64, 111, 164, 96, 65, 132, 113, 80, 66, 79, 134, 96, 67, 100, 83, 80, 68, 47, 104, 96, 69, 68, 53, 80, 69, 243, 154, 224, 71, 45, 81, 208, 71, 211, 124, 224, 73, 13, 51, 208, 73, 179, 94, 224, 74, 237, 21, 208, 75, 156, 123, 96, 76, 214, 50, 80, 77, 124, 93, 96, 78, 182, 20, 80, 79, 92, 63, 96, 80, 149, 246, 80, 81, 60, 33, 96, 82, 117, 216, 80, 83, 28, 3, 96, 84, 85, 186, 80, 84, 251, 229, 96, 86, 53, 156, 80, 86, 229, 1, 224, 88, 30, 184, 208, 88, 196, 227, 224, 89, 254, 154, 208, 90, 164, 197, 224, 91, 222, 124, 208, 92, 132, 167, 224, 93, 190, 94, 208, 94, 100, 137, 224, 95, 158, 64, 208, 96, 77, 166, 96, 97, 135, 93, 80, 98, 45, 136, 96, 99, 103, 63, 80, 100, 13, 106, 96, 101, 71, 33, 80, 101, 237, 76, 96, 103, 39, 3, 80, 103, 205, 46, 96, 105, 6, 229, 80, 105, 173, 16, 96, 106, 230, 199, 80, 107, 150, 44, 224, 108, 207, 227, 208, 109, 118, 14, 224, 110, 175, 197, 208, 111, 85, 240, 224, 112, 143, 167, 208, 113, 53, 210, 224, 114, 111, 137, 208, 115, 21, 180, 224, 116, 79, 107, 208, 116, 254, 209, 96, 118, 56, 136, 80, 118, 222, 179, 96, 120, 24, 106, 80, 120, 190, 149, 96, 121, 248, 76, 80, 122, 158, 119, 96, 123, 216, 46, 80, 124, 126, 89, 96, 125, 184, 16, 80, 126, 94, 59, 96, 127, 151, 242, 80, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 191, 132, 0, 0, 255, 255, 213, 208, 1, 4, 255, 255, 199, 192, 0, 8, 76, 77, 84, 0, 65, 68, 84, 0, 65, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 65, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Thunder_Bay": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 139, 0, 0, 0, 6, 0, 0, 0, 24, 128, 0, 0, 0, 143, 36, 123, 224, 203, 136, 240, 112, 210, 35, 244, 112, 210, 96, 251, 224, 0, 151, 254, 240, 1, 135, 225, 224, 2, 119, 224, 240, 3, 112, 254, 96, 4, 96, 253, 112, 5, 80, 224, 96, 8, 32, 193, 112, 9, 16, 164, 96, 10, 0, 163, 112, 10, 240, 134, 96, 11, 224, 133, 112, 12, 217, 162, 224, 13, 192, 103, 112, 14, 185, 132, 224, 15, 169, 131, 240, 16, 153, 102, 224, 17, 137, 101, 240, 18, 121, 72, 224, 19, 105, 71, 240, 20, 89, 42, 224, 21, 73, 41, 240, 22, 57, 12, 224, 23, 41, 11, 240, 24, 34, 41, 96, 25, 8, 237, 240, 26, 2, 11, 96, 26, 242, 10, 112, 27, 225, 237, 96, 28, 209, 236, 112, 29, 193, 207, 96, 30, 177, 206, 112, 31, 161, 177, 96, 32, 118, 0, 240, 33, 129, 147, 96, 34, 85, 226, 240, 35, 106, 175, 224, 36, 53, 196, 240, 37, 74, 145, 224, 38, 21, 166, 240, 39, 42, 115, 224, 39, 254, 195, 112, 41, 10, 85, 224, 41, 222, 165, 112, 42, 234, 55, 224, 43, 190, 135, 112, 44, 211, 84, 96, 45, 158, 105, 112, 46, 179, 54, 96, 47, 126, 75, 112, 48, 147, 24, 96, 49, 103, 103, 240, 50, 114, 250, 96, 51, 71, 73, 240, 52, 82, 220, 96, 53, 39, 43, 240, 54, 50, 190, 96, 55, 7, 13, 240, 56, 27, 218, 224, 56, 230, 239, 240, 57, 251, 188, 224, 58, 198, 209, 240, 59, 219, 158, 224, 60, 175, 238, 112, 61, 187, 128, 224, 62, 143, 208, 112, 63, 155, 98, 224, 64, 111, 178, 112, 65, 132, 127, 96, 66, 79, 148, 112, 67, 100, 97, 96, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 1, 2, 3, 4, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 255, 255, 172, 84, 0, 0, 255, 255, 171, 160, 0, 4, 255, 255, 185, 176, 0, 8, 255, 255, 199, 192, 1, 12, 255, 255, 199, 192, 1, 16, 255, 255, 199, 192, 1, 20, 76, 77, 84, 0, 67, 83, 84, 0, 69, 83, 84, 0, 69, 87, 84, 0, 69, 80, 84, 0, 69, 68, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Tijuana": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 6, 0, 0, 0, 24, 128, 0, 0, 0, 165, 182, 246, 128, 169, 121, 79, 112, 175, 242, 124, 240, 182, 102, 100, 112, 183, 27, 16, 0, 184, 10, 242, 240, 203, 234, 141, 128, 210, 35, 244, 112, 210, 153, 186, 112, 215, 27, 89, 0, 216, 145, 180, 240, 226, 126, 75, 144, 227, 73, 82, 144, 228, 94, 45, 144, 229, 41, 52, 144, 230, 71, 74, 16, 231, 18, 81, 16, 232, 39, 44, 16, 232, 242, 51, 16, 234, 7, 14, 16, 234, 210, 21, 16, 235, 230, 240, 16, 236, 177, 247, 16, 237, 198, 210, 16, 238, 145, 217, 16, 11, 224, 175, 160, 12, 217, 205, 16, 13, 192, 145, 160, 14, 185, 175, 16, 15, 169, 174, 32, 16, 153, 145, 16, 17, 137, 144, 32, 18, 121, 115, 16, 19, 105, 114, 32, 20, 89, 85, 16, 21, 73, 84, 32, 22, 57, 55, 16, 23, 41, 54, 32, 24, 34, 83, 144, 25, 9, 24, 32, 26, 2, 53, 144, 26, 242, 52, 160, 27, 226, 23, 144, 28, 210, 22, 160, 29, 193, 249, 144, 30, 177, 248, 160, 31, 161, 219, 144, 32, 118, 43, 32, 33, 129, 189, 144, 34, 86, 13, 32, 35, 106, 218, 16, 36, 53, 239, 32, 37, 74, 188, 16, 38, 21, 209, 32, 39, 42, 158, 16, 39, 254, 237, 160, 41, 10, 128, 16, 41, 222, 207, 160, 42, 234, 98, 16, 43, 190, 177, 160, 44, 211, 126, 144, 45, 158, 147, 160, 46, 179, 96, 144, 47, 126, 117, 160, 48, 147, 66, 144, 49, 103, 146, 32, 50, 115, 36, 144, 51, 71, 116, 32, 52, 83, 6, 144, 53, 39, 86, 32, 54, 50, 232, 144, 55, 7, 56, 32, 56, 28, 5, 16, 56, 231, 26, 32, 57, 251, 231, 16, 58, 198, 252, 32, 59, 219, 201, 16, 60, 176, 24, 160, 61, 187, 171, 16, 62, 143, 250, 160, 63, 155, 141, 16, 64, 111, 220, 160, 65, 132, 169, 144, 66, 79, 190, 160, 67, 100, 139, 144, 68, 47, 160, 160, 69, 68, 109, 144, 70, 15, 130, 160, 71, 36, 79, 144, 71, 248, 159, 32, 73, 4, 49, 144, 73, 216, 129, 32, 74, 228, 19, 144, 75, 156, 179, 160, 76, 214, 106, 144, 77, 124, 149, 160, 78, 182, 76, 144, 79, 92, 119, 160, 80, 150, 46, 144, 81, 60, 89, 160, 82, 118, 16, 144, 83, 28, 59, 160, 84, 85, 242, 144, 84, 252, 29, 160, 86, 53, 212, 144, 86, 229, 58, 32, 88, 30, 241, 16, 88, 197, 28, 32, 89, 254, 211, 16, 90, 164, 254, 32, 91, 222, 181, 16, 92, 132, 224, 32, 93, 190, 151, 16, 94, 100, 194, 32, 95, 158, 121, 16, 96, 77, 222, 160, 97, 135, 149, 144, 98, 45, 192, 160, 99, 103, 119, 144, 100, 13, 162, 160, 101, 71, 89, 144, 101, 237, 132, 160, 103, 39, 59, 144, 103, 205, 102, 160, 105, 7, 29, 144, 105, 173, 72, 160, 106, 230, 255, 144, 107, 150, 101, 32, 108, 208, 28, 16, 109, 118, 71, 32, 110, 175, 254, 16, 111, 86, 41, 32, 112, 143, 224, 16, 113, 54, 11, 32, 114, 111, 194, 16, 115, 21, 237, 32, 116, 79, 164, 16, 116, 255, 9, 160, 118, 56, 192, 144, 118, 222, 235, 160, 120, 24, 162, 144, 120, 190, 205, 160, 121, 248, 132, 144, 122, 158, 175, 160, 123, 216, 102, 144, 124, 126, 145, 160, 125, 184, 72, 144, 126, 94, 115, 160, 127, 152, 42, 144, 0, 1, 2, 1, 2, 3, 2, 4, 5, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 255, 255, 146, 76, 0, 0, 255, 255, 157, 144, 0, 4, 255, 255, 143, 128, 0, 8, 255, 255, 157, 144, 1, 12, 255, 255, 157, 144, 1, 16, 255, 255, 157, 144, 1, 20, 76, 77, 84, 0, 77, 83, 84, 0, 80, 83, 84, 0, 80, 68, 84, 0, 80, 87, 84, 0, 80, 80, 84, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 10, 80, 83, 84, 56, 80, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Toronto": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 158, 184, 147, 112, 159, 186, 235, 96, 160, 135, 46, 200, 161, 154, 177, 64, 162, 148, 6, 240, 163, 85, 169, 64, 164, 134, 93, 240, 165, 40, 120, 96, 166, 102, 63, 240, 167, 12, 78, 224, 168, 70, 33, 240, 168, 236, 48, 224, 170, 28, 201, 112, 170, 213, 77, 96, 171, 252, 171, 112, 172, 181, 47, 96, 173, 220, 141, 112, 174, 149, 17, 96, 175, 188, 111, 112, 176, 126, 45, 224, 177, 156, 81, 112, 178, 103, 74, 96, 179, 124, 51, 112, 180, 71, 44, 96, 181, 92, 21, 112, 182, 39, 14, 96, 183, 59, 247, 112, 184, 6, 240, 96, 185, 37, 19, 240, 185, 230, 210, 96, 187, 4, 245, 240, 187, 207, 238, 224, 188, 228, 215, 240, 189, 175, 208, 224, 190, 196, 185, 240, 191, 143, 178, 224, 192, 164, 155, 240, 193, 111, 148, 224, 194, 132, 125, 240, 195, 79, 118, 224, 196, 100, 95, 240, 197, 47, 88, 224, 198, 77, 124, 112, 199, 15, 58, 224, 200, 45, 94, 112, 203, 136, 240, 112, 210, 35, 244, 112, 210, 96, 251, 224, 211, 117, 228, 240, 212, 64, 221, 224, 213, 85, 170, 208, 214, 32, 163, 192, 215, 53, 140, 208, 216, 0, 133, 192, 217, 21, 110, 208, 218, 51, 118, 64, 218, 254, 167, 112, 220, 19, 116, 96, 220, 222, 137, 112, 221, 169, 130, 96, 222, 190, 107, 112, 223, 137, 100, 96, 224, 158, 77, 112, 225, 105, 70, 96, 226, 126, 47, 112, 227, 73, 40, 96, 228, 94, 17, 112, 229, 41, 10, 96, 230, 71, 45, 240, 231, 18, 38, 224, 232, 39, 15, 240, 233, 22, 242, 224, 234, 6, 241, 240, 234, 246, 212, 224, 235, 230, 211, 240, 236, 214, 182, 224, 237, 198, 181, 240, 238, 191, 211, 96, 239, 175, 210, 112, 240, 159, 181, 96, 241, 143, 180, 112, 242, 127, 151, 96, 243, 111, 150, 112, 244, 95, 121, 96, 245, 79, 120, 112, 246, 63, 91, 96, 247, 47, 90, 112, 248, 40, 119, 224, 249, 15, 60, 112, 250, 8, 89, 224, 250, 248, 88, 240, 251, 232, 59, 224, 252, 216, 58, 240, 253, 200, 29, 224, 254, 184, 28, 240, 255, 167, 255, 224, 0, 151, 254, 240, 1, 135, 225, 224, 2, 119, 224, 240, 3, 112, 254, 96, 4, 96, 253, 112, 5, 80, 224, 96, 6, 64, 223, 112, 7, 48, 194, 96, 8, 32, 193, 112, 9, 16, 164, 96, 10, 0, 163, 112, 10, 240, 134, 96, 11, 224, 133, 112, 12, 217, 162, 224, 13, 192, 103, 112, 14, 185, 132, 224, 15, 169, 131, 240, 16, 153, 102, 224, 17, 137, 101, 240, 18, 121, 72, 224, 19, 105, 71, 240, 20, 89, 42, 224, 21, 73, 41, 240, 22, 57, 12, 224, 23, 41, 11, 240, 24, 34, 41, 96, 25, 8, 237, 240, 26, 2, 11, 96, 26, 242, 10, 112, 27, 225, 237, 96, 28, 209, 236, 112, 29, 193, 207, 96, 30, 177, 206, 112, 31, 161, 177, 96, 32, 118, 0, 240, 33, 129, 147, 96, 34, 85, 226, 240, 35, 106, 175, 224, 36, 53, 196, 240, 37, 74, 145, 224, 38, 21, 166, 240, 39, 42, 115, 224, 39, 254, 195, 112, 41, 10, 85, 224, 41, 222, 165, 112, 42, 234, 55, 224, 43, 190, 135, 112, 44, 211, 84, 96, 45, 158, 105, 112, 46, 179, 54, 96, 47, 126, 75, 112, 48, 147, 24, 96, 49, 103, 103, 240, 50, 114, 250, 96, 51, 71, 73, 240, 52, 82, 220, 96, 53, 39, 43, 240, 54, 50, 190, 96, 55, 7, 13, 240, 56, 27, 218, 224, 56, 230, 239, 240, 57, 251, 188, 224, 58, 198, 209, 240, 59, 219, 158, 224, 60, 175, 238, 112, 61, 187, 128, 224, 62, 143, 208, 112, 63, 155, 98, 224, 64, 111, 178, 112, 65, 132, 127, 96, 66, 79, 148, 112, 67, 100, 97, 96, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 181, 148, 0, 0, 255, 255, 199, 192, 1, 4, 255, 255, 185, 176, 0, 8, 255, 255, 199, 192, 1, 12, 255, 255, 199, 192, 1, 16, 76, 77, 84, 0, 69, 68, 84, 0, 69, 83, 84, 0, 69, 87, 84, 0, 69, 80, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Tortola": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 147, 55, 51, 172, 0, 1, 255, 255, 198, 84, 0, 0, 255, 255, 199, 192, 0, 4, 76, 77, 84, 0, 65, 83, 84, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/Vancouver": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 190, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 158, 184, 189, 160, 159, 187, 21, 144, 203, 137, 26, 160, 210, 35, 244, 112, 210, 97, 38, 16, 211, 118, 15, 32, 212, 83, 125, 16, 213, 85, 241, 32, 214, 32, 234, 16, 215, 53, 211, 32, 216, 0, 204, 16, 217, 21, 181, 32, 217, 224, 174, 16, 218, 254, 209, 160, 219, 192, 144, 16, 220, 222, 179, 160, 221, 169, 172, 144, 222, 190, 149, 160, 223, 137, 142, 144, 224, 158, 119, 160, 225, 105, 112, 144, 226, 126, 89, 160, 227, 73, 82, 144, 228, 94, 59, 160, 229, 41, 52, 144, 230, 71, 88, 32, 231, 18, 81, 16, 232, 39, 58, 32, 232, 242, 51, 16, 234, 7, 28, 32, 234, 210, 21, 16, 235, 230, 254, 32, 236, 177, 247, 16, 237, 198, 224, 32, 238, 145, 217, 16, 239, 175, 252, 160, 240, 113, 187, 16, 241, 143, 222, 160, 242, 127, 193, 144, 243, 111, 192, 160, 244, 95, 163, 144, 245, 79, 162, 160, 246, 63, 133, 144, 247, 47, 132, 160, 248, 40, 162, 16, 249, 15, 102, 160, 250, 8, 132, 16, 250, 248, 131, 32, 251, 232, 102, 16, 252, 216, 101, 32, 253, 200, 72, 16, 254, 184, 71, 32, 255, 168, 42, 16, 0, 152, 41, 32, 1, 136, 12, 16, 2, 120, 11, 32, 3, 113, 40, 144, 4, 97, 39, 160, 5, 81, 10, 144, 6, 65, 9, 160, 7, 48, 236, 144, 8, 32, 235, 160, 9, 16, 206, 144, 10, 0, 205, 160, 10, 240, 176, 144, 11, 224, 175, 160, 12, 217, 205, 16, 13, 192, 145, 160, 14, 185, 175, 16, 15, 169, 174, 32, 16, 153, 145, 16, 17, 137, 144, 32, 18, 121, 115, 16, 19, 105, 114, 32, 20, 89, 85, 16, 21, 73, 84, 32, 22, 57, 55, 16, 23, 41, 54, 32, 24, 34, 83, 144, 25, 9, 24, 32, 26, 2, 53, 144, 26, 242, 52, 160, 27, 226, 23, 144, 28, 210, 22, 160, 29, 193, 249, 144, 30, 177, 248, 160, 31, 161, 219, 144, 32, 118, 43, 32, 33, 129, 189, 144, 34, 86, 13, 32, 35, 106, 218, 16, 36, 53, 239, 32, 37, 74, 188, 16, 38, 21, 209, 32, 39, 42, 158, 16, 39, 254, 237, 160, 41, 10, 128, 16, 41, 222, 207, 160, 42, 234, 98, 16, 43, 190, 177, 160, 44, 211, 126, 144, 45, 158, 147, 160, 46, 179, 96, 144, 47, 126, 117, 160, 48, 147, 66, 144, 49, 103, 146, 32, 50, 115, 36, 144, 51, 71, 116, 32, 52, 83, 6, 144, 53, 39, 86, 32, 54, 50, 232, 144, 55, 7, 56, 32, 56, 28, 5, 16, 56, 231, 26, 32, 57, 251, 231, 16, 58, 198, 252, 32, 59, 219, 201, 16, 60, 176, 24, 160, 61, 187, 171, 16, 62, 143, 250, 160, 63, 155, 141, 16, 64, 111, 220, 160, 65, 132, 169, 144, 66, 79, 190, 160, 67, 100, 139, 144, 68, 47, 160, 160, 69, 68, 109, 144, 69, 243, 211, 32, 71, 45, 138, 16, 71, 211, 181, 32, 73, 13, 108, 16, 73, 179, 151, 32, 74, 237, 78, 16, 75, 156, 179, 160, 76, 214, 106, 144, 77, 124, 149, 160, 78, 182, 76, 144, 79, 92, 119, 160, 80, 150, 46, 144, 81, 60, 89, 160, 82, 118, 16, 144, 83, 28, 59, 160, 84, 85, 242, 144, 84, 252, 29, 160, 86, 53, 212, 144, 86, 229, 58, 32, 88, 30, 241, 16, 88, 197, 28, 32, 89, 254, 211, 16, 90, 164, 254, 32, 91, 222, 181, 16, 92, 132, 224, 32, 93, 190, 151, 16, 94, 100, 194, 32, 95, 158, 121, 16, 96, 77, 222, 160, 97, 135, 149, 144, 98, 45, 192, 160, 99, 103, 119, 144, 100, 13, 162, 160, 101, 71, 89, 144, 101, 237, 132, 160, 103, 39, 59, 144, 103, 205, 102, 160, 105, 7, 29, 144, 105, 173, 72, 160, 106, 230, 255, 144, 107, 150, 101, 32, 108, 208, 28, 16, 109, 118, 71, 32, 110, 175, 254, 16, 111, 86, 41, 32, 112, 143, 224, 16, 113, 54, 11, 32, 114, 111, 194, 16, 115, 21, 237, 32, 116, 79, 164, 16, 116, 255, 9, 160, 118, 56, 192, 144, 118, 222, 235, 160, 120, 24, 162, 144, 120, 190, 205, 160, 121, 248, 132, 144, 122, 158, 175, 160, 123, 216, 102, 144, 124, 126, 145, 160, 125, 184, 72, 144, 126, 94, 115, 160, 127, 152, 42, 144, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 140, 148, 0, 0, 255, 255, 157, 144, 1, 4, 255, 255, 143, 128, 0, 8, 255, 255, 157, 144, 1, 12, 255, 255, 157, 144, 1, 16, 76, 77, 84, 0, 80, 68, 84, 0, 80, 83, 84, 0, 80, 87, 84, 0, 80, 80, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 10, 80, 83, 84, 56, 80, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Virgin": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 147, 55, 51, 172, 0, 1, 255, 255, 198, 84, 0, 0, 255, 255, 199, 192, 0, 4, 76, 77, 84, 0, 65, 83, 84, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 10}, + + "zoneinfo/America/Whitehorse": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 127, 0, 0, 0, 8, 0, 0, 0, 33, 128, 0, 0, 0, 158, 184, 203, 176, 159, 187, 35, 160, 160, 208, 12, 176, 161, 162, 210, 128, 203, 137, 40, 176, 210, 35, 244, 112, 210, 97, 52, 32, 247, 47, 118, 144, 248, 40, 162, 16, 251, 29, 95, 16, 19, 105, 114, 32, 20, 89, 85, 16, 21, 73, 84, 32, 22, 57, 55, 16, 23, 41, 54, 32, 24, 34, 83, 144, 25, 9, 24, 32, 26, 2, 53, 144, 26, 242, 52, 160, 27, 226, 23, 144, 28, 210, 22, 160, 29, 193, 249, 144, 30, 177, 248, 160, 31, 161, 219, 144, 32, 118, 43, 32, 33, 129, 189, 144, 34, 86, 13, 32, 35, 106, 218, 16, 36, 53, 239, 32, 37, 74, 188, 16, 38, 21, 209, 32, 39, 42, 158, 16, 39, 254, 237, 160, 41, 10, 128, 16, 41, 222, 207, 160, 42, 234, 98, 16, 43, 190, 177, 160, 44, 211, 126, 144, 45, 158, 147, 160, 46, 179, 96, 144, 47, 126, 117, 160, 48, 147, 66, 144, 49, 103, 146, 32, 50, 115, 36, 144, 51, 71, 116, 32, 52, 83, 6, 144, 53, 39, 86, 32, 54, 50, 232, 144, 55, 7, 56, 32, 56, 28, 5, 16, 56, 231, 26, 32, 57, 251, 231, 16, 58, 198, 252, 32, 59, 219, 201, 16, 60, 176, 24, 160, 61, 187, 171, 16, 62, 143, 250, 160, 63, 155, 141, 16, 64, 111, 220, 160, 65, 132, 169, 144, 66, 79, 190, 160, 67, 100, 139, 144, 68, 47, 160, 160, 69, 68, 109, 144, 69, 243, 211, 32, 71, 45, 138, 16, 71, 211, 181, 32, 73, 13, 108, 16, 73, 179, 151, 32, 74, 237, 78, 16, 75, 156, 179, 160, 76, 214, 106, 144, 77, 124, 149, 160, 78, 182, 76, 144, 79, 92, 119, 160, 80, 150, 46, 144, 81, 60, 89, 160, 82, 118, 16, 144, 83, 28, 59, 160, 84, 85, 242, 144, 84, 252, 29, 160, 86, 53, 212, 144, 86, 229, 58, 32, 88, 30, 241, 16, 88, 197, 28, 32, 89, 254, 211, 16, 90, 164, 254, 32, 91, 222, 181, 16, 92, 132, 224, 32, 93, 190, 151, 16, 94, 100, 194, 32, 95, 158, 121, 16, 96, 77, 222, 160, 97, 135, 149, 144, 98, 45, 192, 160, 99, 103, 119, 144, 100, 13, 162, 160, 101, 71, 89, 144, 101, 237, 132, 160, 103, 39, 59, 144, 103, 205, 102, 160, 105, 7, 29, 144, 105, 173, 72, 160, 106, 230, 255, 144, 107, 150, 101, 32, 108, 208, 28, 16, 109, 118, 71, 32, 110, 175, 254, 16, 111, 86, 41, 32, 112, 143, 224, 16, 113, 54, 11, 32, 114, 111, 194, 16, 115, 21, 237, 32, 116, 79, 164, 16, 116, 255, 9, 160, 118, 56, 192, 144, 118, 222, 235, 160, 120, 24, 162, 144, 120, 190, 205, 160, 121, 248, 132, 144, 122, 158, 175, 160, 123, 216, 102, 144, 124, 126, 145, 160, 125, 184, 72, 144, 126, 94, 115, 160, 127, 152, 42, 144, 2, 1, 2, 1, 2, 3, 4, 2, 5, 2, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 255, 255, 129, 100, 0, 0, 255, 255, 143, 128, 1, 4, 255, 255, 129, 112, 0, 8, 255, 255, 143, 128, 1, 12, 255, 255, 143, 128, 1, 16, 255, 255, 157, 144, 1, 20, 255, 255, 143, 128, 0, 25, 255, 255, 157, 144, 1, 29, 76, 77, 84, 0, 89, 68, 84, 0, 89, 83, 84, 0, 89, 87, 84, 0, 89, 80, 84, 0, 89, 68, 68, 84, 0, 80, 83, 84, 0, 80, 68, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 10, 80, 83, 84, 56, 80, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Winnipeg": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 187, 0, 0, 0, 7, 0, 0, 0, 20, 128, 0, 0, 0, 155, 1, 251, 224, 155, 195, 186, 80, 158, 184, 161, 128, 159, 186, 249, 112, 194, 160, 59, 128, 195, 79, 132, 240, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 211, 136, 104, 0, 212, 83, 96, 240, 213, 85, 213, 0, 214, 32, 205, 240, 215, 53, 183, 0, 216, 0, 175, 240, 217, 21, 153, 0, 217, 224, 145, 240, 219, 0, 7, 0, 219, 200, 92, 240, 220, 222, 151, 128, 221, 169, 144, 112, 222, 190, 121, 128, 223, 137, 114, 112, 224, 158, 91, 128, 225, 105, 84, 112, 226, 126, 61, 128, 227, 73, 54, 112, 228, 94, 31, 128, 229, 41, 24, 112, 230, 71, 60, 0, 231, 18, 52, 240, 232, 39, 30, 0, 232, 242, 22, 240, 234, 7, 0, 0, 234, 209, 248, 240, 235, 230, 226, 0, 236, 214, 196, 240, 237, 198, 196, 0, 238, 145, 188, 240, 243, 111, 164, 128, 244, 49, 98, 240, 249, 15, 74, 128, 250, 8, 118, 0, 250, 248, 103, 0, 251, 232, 88, 0, 252, 216, 73, 0, 253, 200, 58, 0, 254, 184, 43, 0, 255, 168, 28, 0, 0, 152, 13, 0, 1, 135, 254, 0, 2, 119, 239, 0, 3, 113, 26, 128, 4, 97, 11, 128, 5, 80, 252, 128, 6, 64, 237, 128, 7, 48, 222, 128, 8, 32, 207, 128, 9, 16, 192, 128, 10, 0, 177, 128, 10, 240, 162, 128, 11, 224, 147, 128, 12, 217, 191, 0, 13, 192, 117, 128, 14, 185, 161, 0, 15, 169, 146, 0, 16, 153, 131, 0, 17, 137, 116, 0, 18, 121, 101, 0, 19, 105, 86, 0, 20, 89, 71, 0, 21, 73, 56, 0, 22, 57, 41, 0, 23, 41, 26, 0, 24, 34, 69, 128, 25, 8, 252, 0, 26, 2, 39, 128, 26, 242, 24, 128, 27, 226, 9, 128, 28, 209, 250, 128, 29, 193, 235, 128, 30, 177, 220, 128, 31, 161, 205, 128, 32, 118, 15, 0, 33, 129, 175, 128, 34, 85, 241, 0, 35, 106, 204, 0, 36, 53, 211, 0, 37, 74, 174, 0, 38, 21, 181, 0, 39, 42, 144, 0, 39, 254, 209, 128, 41, 10, 114, 0, 41, 222, 179, 128, 42, 234, 84, 0, 43, 190, 149, 128, 44, 211, 112, 128, 45, 158, 119, 128, 46, 179, 82, 128, 47, 126, 89, 128, 48, 147, 52, 128, 49, 103, 118, 0, 50, 115, 22, 128, 51, 71, 88, 0, 52, 82, 248, 128, 53, 39, 58, 0, 54, 50, 218, 128, 55, 7, 28, 0, 56, 27, 247, 0, 56, 230, 254, 0, 57, 251, 217, 0, 58, 198, 224, 0, 59, 219, 187, 0, 60, 175, 252, 128, 61, 187, 157, 0, 62, 143, 222, 128, 63, 155, 127, 0, 64, 111, 192, 128, 65, 132, 155, 128, 66, 79, 162, 128, 67, 100, 125, 128, 67, 183, 111, 224, 68, 47, 132, 128, 69, 68, 81, 112, 69, 243, 183, 0, 71, 45, 109, 240, 71, 211, 153, 0, 73, 13, 79, 240, 73, 179, 123, 0, 74, 237, 49, 240, 75, 156, 151, 128, 76, 214, 78, 112, 77, 124, 121, 128, 78, 182, 48, 112, 79, 92, 91, 128, 80, 150, 18, 112, 81, 60, 61, 128, 82, 117, 244, 112, 83, 28, 31, 128, 84, 85, 214, 112, 84, 252, 1, 128, 86, 53, 184, 112, 86, 229, 30, 0, 88, 30, 212, 240, 88, 197, 0, 0, 89, 254, 182, 240, 90, 164, 226, 0, 91, 222, 152, 240, 92, 132, 196, 0, 93, 190, 122, 240, 94, 100, 166, 0, 95, 158, 92, 240, 96, 77, 194, 128, 97, 135, 121, 112, 98, 45, 164, 128, 99, 103, 91, 112, 100, 13, 134, 128, 101, 71, 61, 112, 101, 237, 104, 128, 103, 39, 31, 112, 103, 205, 74, 128, 105, 7, 1, 112, 105, 173, 44, 128, 106, 230, 227, 112, 107, 150, 73, 0, 108, 207, 255, 240, 109, 118, 43, 0, 110, 175, 225, 240, 111, 86, 13, 0, 112, 143, 195, 240, 113, 53, 239, 0, 114, 111, 165, 240, 115, 21, 209, 0, 116, 79, 135, 240, 116, 254, 237, 128, 118, 56, 164, 112, 118, 222, 207, 128, 120, 24, 134, 112, 120, 190, 177, 128, 121, 248, 104, 112, 122, 158, 147, 128, 123, 216, 74, 112, 124, 126, 117, 128, 125, 184, 44, 112, 126, 94, 87, 128, 127, 152, 14, 112, 2, 1, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 164, 236, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Yakutat": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 143, 0, 0, 0, 7, 0, 0, 0, 30, 128, 0, 0, 0, 203, 137, 40, 176, 210, 35, 244, 112, 210, 97, 52, 32, 254, 184, 85, 48, 255, 168, 56, 32, 0, 152, 55, 48, 1, 136, 26, 32, 2, 120, 25, 48, 3, 113, 54, 160, 4, 97, 53, 176, 5, 81, 24, 160, 6, 65, 23, 176, 7, 48, 250, 160, 7, 141, 81, 176, 9, 16, 220, 160, 9, 173, 205, 48, 10, 240, 190, 160, 11, 224, 189, 176, 12, 217, 219, 32, 13, 192, 159, 176, 14, 185, 189, 32, 15, 169, 188, 48, 16, 153, 159, 32, 17, 137, 158, 48, 18, 121, 129, 32, 19, 105, 128, 48, 20, 89, 99, 32, 21, 73, 98, 48, 22, 57, 69, 32, 23, 41, 68, 48, 24, 34, 97, 160, 25, 9, 38, 48, 26, 2, 67, 160, 26, 43, 20, 16, 26, 242, 66, 176, 27, 226, 37, 160, 28, 210, 36, 176, 29, 194, 7, 160, 30, 178, 6, 176, 31, 161, 233, 160, 32, 118, 57, 48, 33, 129, 203, 160, 34, 86, 27, 48, 35, 106, 232, 32, 36, 53, 253, 48, 37, 74, 202, 32, 38, 21, 223, 48, 39, 42, 172, 32, 39, 254, 251, 176, 41, 10, 142, 32, 41, 222, 221, 176, 42, 234, 112, 32, 43, 190, 191, 176, 44, 211, 140, 160, 45, 158, 161, 176, 46, 179, 110, 160, 47, 126, 131, 176, 48, 147, 80, 160, 49, 103, 160, 48, 50, 115, 50, 160, 51, 71, 130, 48, 52, 83, 20, 160, 53, 39, 100, 48, 54, 50, 246, 160, 55, 7, 70, 48, 56, 28, 19, 32, 56, 231, 40, 48, 57, 251, 245, 32, 58, 199, 10, 48, 59, 219, 215, 32, 60, 176, 38, 176, 61, 187, 185, 32, 62, 144, 8, 176, 63, 155, 155, 32, 64, 111, 234, 176, 65, 132, 183, 160, 66, 79, 204, 176, 67, 100, 153, 160, 68, 47, 174, 176, 69, 68, 123, 160, 69, 243, 225, 48, 71, 45, 152, 32, 71, 211, 195, 48, 73, 13, 122, 32, 73, 179, 165, 48, 74, 237, 92, 32, 75, 156, 193, 176, 76, 214, 120, 160, 77, 124, 163, 176, 78, 182, 90, 160, 79, 92, 133, 176, 80, 150, 60, 160, 81, 60, 103, 176, 82, 118, 30, 160, 83, 28, 73, 176, 84, 86, 0, 160, 84, 252, 43, 176, 86, 53, 226, 160, 86, 229, 72, 48, 88, 30, 255, 32, 88, 197, 42, 48, 89, 254, 225, 32, 90, 165, 12, 48, 91, 222, 195, 32, 92, 132, 238, 48, 93, 190, 165, 32, 94, 100, 208, 48, 95, 158, 135, 32, 96, 77, 236, 176, 97, 135, 163, 160, 98, 45, 206, 176, 99, 103, 133, 160, 100, 13, 176, 176, 101, 71, 103, 160, 101, 237, 146, 176, 103, 39, 73, 160, 103, 205, 116, 176, 105, 7, 43, 160, 105, 173, 86, 176, 106, 231, 13, 160, 107, 150, 115, 48, 108, 208, 42, 32, 109, 118, 85, 48, 110, 176, 12, 32, 111, 86, 55, 48, 112, 143, 238, 32, 113, 54, 25, 48, 114, 111, 208, 32, 115, 21, 251, 48, 116, 79, 178, 32, 116, 255, 23, 176, 118, 56, 206, 160, 118, 222, 249, 176, 120, 24, 176, 160, 120, 190, 219, 176, 121, 248, 146, 160, 122, 158, 189, 176, 123, 216, 116, 160, 124, 126, 159, 176, 125, 184, 86, 160, 126, 94, 129, 176, 127, 152, 56, 160, 1, 2, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 255, 255, 125, 1, 0, 0, 255, 255, 129, 112, 0, 4, 255, 255, 143, 128, 1, 8, 255, 255, 143, 128, 1, 12, 255, 255, 143, 128, 1, 16, 255, 255, 143, 128, 1, 20, 255, 255, 129, 112, 0, 25, 76, 77, 84, 0, 89, 83, 84, 0, 89, 87, 84, 0, 89, 80, 84, 0, 89, 68, 84, 0, 65, 75, 68, 84, 0, 65, 75, 83, 84, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 10, 65, 75, 83, 84, 57, 65, 75, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/America/Yellowknife": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 123, 0, 0, 0, 6, 0, 0, 0, 25, 128, 0, 0, 0, 190, 42, 24, 0, 203, 137, 12, 144, 210, 35, 244, 112, 210, 97, 24, 0, 247, 47, 90, 112, 248, 40, 133, 240, 19, 105, 100, 16, 20, 89, 71, 0, 21, 73, 70, 16, 22, 57, 41, 0, 23, 41, 40, 16, 24, 34, 69, 128, 25, 9, 10, 16, 26, 2, 39, 128, 26, 242, 38, 144, 27, 226, 9, 128, 28, 210, 8, 144, 29, 193, 235, 128, 30, 177, 234, 144, 31, 161, 205, 128, 32, 118, 29, 16, 33, 129, 175, 128, 34, 85, 255, 16, 35, 106, 204, 0, 36, 53, 225, 16, 37, 74, 174, 0, 38, 21, 195, 16, 39, 42, 144, 0, 39, 254, 223, 144, 41, 10, 114, 0, 41, 222, 193, 144, 42, 234, 84, 0, 43, 190, 163, 144, 44, 211, 112, 128, 45, 158, 133, 144, 46, 179, 82, 128, 47, 126, 103, 144, 48, 147, 52, 128, 49, 103, 132, 16, 50, 115, 22, 128, 51, 71, 102, 16, 52, 82, 248, 128, 53, 39, 72, 16, 54, 50, 218, 128, 55, 7, 42, 16, 56, 27, 247, 0, 56, 231, 12, 16, 57, 251, 217, 0, 58, 198, 238, 16, 59, 219, 187, 0, 60, 176, 10, 144, 61, 187, 157, 0, 62, 143, 236, 144, 63, 155, 127, 0, 64, 111, 206, 144, 65, 132, 155, 128, 66, 79, 176, 144, 67, 100, 125, 128, 68, 47, 146, 144, 69, 68, 95, 128, 69, 243, 197, 16, 71, 45, 124, 0, 71, 211, 167, 16, 73, 13, 94, 0, 73, 179, 137, 16, 74, 237, 64, 0, 75, 156, 165, 144, 76, 214, 92, 128, 77, 124, 135, 144, 78, 182, 62, 128, 79, 92, 105, 144, 80, 150, 32, 128, 81, 60, 75, 144, 82, 118, 2, 128, 83, 28, 45, 144, 84, 85, 228, 128, 84, 252, 15, 144, 86, 53, 198, 128, 86, 229, 44, 16, 88, 30, 227, 0, 88, 197, 14, 16, 89, 254, 197, 0, 90, 164, 240, 16, 91, 222, 167, 0, 92, 132, 210, 16, 93, 190, 137, 0, 94, 100, 180, 16, 95, 158, 107, 0, 96, 77, 208, 144, 97, 135, 135, 128, 98, 45, 178, 144, 99, 103, 105, 128, 100, 13, 148, 144, 101, 71, 75, 128, 101, 237, 118, 144, 103, 39, 45, 128, 103, 205, 88, 144, 105, 7, 15, 128, 105, 173, 58, 144, 106, 230, 241, 128, 107, 150, 87, 16, 108, 208, 14, 0, 109, 118, 57, 16, 110, 175, 240, 0, 111, 86, 27, 16, 112, 143, 210, 0, 113, 53, 253, 16, 114, 111, 180, 0, 115, 21, 223, 16, 116, 79, 150, 0, 116, 254, 251, 144, 118, 56, 178, 128, 118, 222, 221, 144, 120, 24, 148, 128, 120, 190, 191, 144, 121, 248, 118, 128, 122, 158, 161, 144, 123, 216, 88, 128, 124, 126, 131, 144, 125, 184, 58, 128, 126, 94, 101, 144, 127, 152, 28, 128, 0, 3, 1, 2, 3, 4, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 0, 0, 0, 0, 0, 0, 255, 255, 171, 160, 1, 4, 255, 255, 171, 160, 1, 8, 255, 255, 157, 144, 0, 12, 255, 255, 185, 176, 1, 16, 255, 255, 171, 160, 1, 21, 45, 48, 48, 0, 77, 87, 84, 0, 77, 80, 84, 0, 77, 83, 84, 0, 77, 68, 68, 84, 0, 77, 68, 84, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 10, 77, 83, 84, 55, 77, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/Antarctica/Casey": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 5, 0, 0, 0, 12, 128, 0, 0, 0, 254, 30, 204, 128, 74, 218, 6, 32, 75, 143, 202, 240, 78, 169, 156, 32, 79, 67, 205, 144, 88, 10, 59, 128, 127, 255, 255, 255, 0, 1, 2, 1, 2, 3, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 112, 128, 0, 4, 0, 0, 154, 176, 0, 8, 0, 0, 112, 128, 0, 4, 0, 0, 154, 176, 0, 8, 45, 48, 48, 0, 43, 48, 56, 0, 43, 49, 49, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 10, 60, 43, 49, 49, 62, 45, 49, 49, 10}, + + "zoneinfo/Antarctica/Davis": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 4, 0, 0, 0, 12, 128, 0, 0, 0, 231, 156, 64, 0, 246, 71, 223, 16, 254, 71, 171, 0, 74, 218, 20, 48, 75, 151, 250, 64, 78, 169, 170, 48, 79, 67, 247, 192, 127, 255, 255, 255, 0, 1, 0, 1, 2, 3, 2, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 98, 112, 0, 4, 0, 0, 70, 80, 0, 8, 0, 0, 98, 112, 0, 4, 45, 48, 48, 0, 43, 48, 55, 0, 43, 48, 53, 0, 0, 0, 0, 1, 0, 0, 0, 1, 10, 60, 43, 48, 55, 62, 45, 55, 10}, + + "zoneinfo/Antarctica/DumontDUrville": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 212, 188, 118, 128, 222, 52, 96, 96, 231, 60, 2, 128, 127, 255, 255, 255, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 140, 160, 0, 4, 45, 48, 48, 0, 43, 49, 48, 0, 0, 0, 0, 0, 10, 60, 43, 49, 48, 62, 45, 49, 48, 10}, + + "zoneinfo/Antarctica/Macquarie": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 92, 0, 0, 0, 7, 0, 0, 0, 18, 128, 0, 0, 0, 155, 213, 120, 128, 156, 188, 32, 240, 160, 135, 180, 96, 215, 12, 104, 0, 251, 194, 141, 0, 252, 178, 126, 0, 253, 199, 89, 0, 254, 118, 176, 128, 255, 167, 59, 0, 0, 86, 146, 128, 1, 135, 29, 0, 2, 63, 175, 0, 3, 112, 57, 128, 4, 13, 28, 0, 5, 80, 27, 128, 5, 246, 56, 128, 7, 47, 253, 128, 7, 214, 26, 128, 9, 15, 223, 128, 9, 181, 252, 128, 10, 239, 193, 128, 11, 159, 25, 0, 12, 216, 222, 0, 13, 126, 251, 0, 14, 184, 192, 0, 15, 94, 221, 0, 16, 152, 162, 0, 17, 62, 191, 0, 18, 120, 132, 0, 19, 30, 161, 0, 20, 88, 102, 0, 20, 254, 131, 0, 22, 56, 72, 0, 23, 3, 79, 0, 24, 33, 100, 128, 24, 227, 49, 0, 26, 1, 70, 128, 26, 167, 99, 128, 27, 225, 40, 128, 28, 135, 69, 128, 29, 193, 10, 128, 30, 103, 39, 128, 31, 151, 178, 0, 32, 89, 126, 128, 33, 128, 206, 128, 34, 66, 155, 0, 35, 105, 235, 0, 36, 34, 125, 0, 37, 73, 205, 0, 38, 2, 95, 0, 39, 41, 175, 0, 39, 244, 182, 0, 40, 237, 225, 128, 41, 212, 152, 0, 42, 205, 195, 128, 43, 180, 122, 0, 44, 173, 165, 128, 45, 148, 92, 0, 46, 141, 135, 128, 47, 116, 62, 0, 48, 109, 105, 128, 49, 93, 90, 128, 50, 86, 134, 0, 51, 61, 60, 128, 52, 54, 104, 0, 53, 29, 30, 128, 54, 22, 74, 0, 54, 253, 0, 128, 55, 246, 44, 0, 56, 220, 226, 128, 57, 167, 233, 128, 58, 188, 196, 128, 59, 191, 42, 128, 60, 165, 225, 0, 61, 159, 12, 128, 62, 133, 195, 0, 63, 126, 238, 128, 64, 101, 165, 0, 65, 94, 208, 128, 66, 69, 135, 0, 67, 62, 178, 128, 68, 46, 163, 128, 69, 30, 148, 128, 70, 5, 75, 0, 71, 7, 177, 0, 71, 247, 162, 0, 72, 231, 147, 0, 73, 215, 132, 0, 74, 199, 117, 0, 75, 183, 102, 0, 127, 255, 255, 255, 1, 2, 1, 3, 1, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 140, 160, 0, 4, 0, 0, 154, 176, 1, 9, 0, 0, 0, 0, 0, 0, 0, 0, 154, 176, 1, 9, 0, 0, 140, 160, 0, 4, 0, 0, 154, 176, 0, 14, 45, 48, 48, 0, 65, 69, 83, 84, 0, 65, 69, 68, 84, 0, 43, 49, 49, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 49, 62, 45, 49, 49, 10}, + + "zoneinfo/Antarctica/Mawson": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 226, 32, 50, 128, 74, 218, 34, 64, 127, 255, 255, 255, 0, 1, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 84, 96, 0, 4, 0, 0, 70, 80, 0, 8, 45, 48, 48, 0, 43, 48, 54, 0, 43, 48, 53, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 53, 62, 45, 53, 10}, + + "zoneinfo/Antarctica/McMurdo": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 156, 0, 0, 0, 7, 0, 0, 0, 19, 128, 0, 0, 0, 176, 180, 178, 232, 177, 81, 135, 88, 178, 120, 229, 104, 179, 67, 229, 96, 180, 88, 199, 104, 181, 35, 199, 96, 182, 56, 169, 104, 183, 3, 169, 96, 184, 24, 139, 104, 184, 236, 197, 224, 185, 248, 109, 104, 186, 204, 167, 224, 187, 216, 79, 104, 188, 227, 232, 224, 189, 174, 246, 232, 190, 195, 202, 224, 191, 142, 216, 232, 192, 163, 172, 224, 193, 110, 186, 232, 194, 131, 142, 224, 195, 78, 156, 232, 196, 99, 112, 224, 197, 46, 126, 232, 198, 76, 141, 96, 199, 14, 96, 232, 200, 44, 111, 96, 200, 247, 125, 104, 210, 218, 154, 64, 9, 24, 253, 224, 9, 172, 165, 224, 10, 239, 165, 96, 11, 158, 252, 224, 12, 216, 193, 224, 13, 126, 222, 224, 14, 184, 163, 224, 15, 94, 192, 224, 16, 152, 133, 224, 17, 62, 162, 224, 18, 120, 103, 224, 19, 30, 132, 224, 20, 88, 73, 224, 20, 254, 102, 224, 22, 56, 43, 224, 22, 231, 131, 96, 24, 33, 72, 96, 24, 199, 101, 96, 26, 1, 42, 96, 26, 167, 71, 96, 27, 225, 12, 96, 28, 135, 41, 96, 29, 192, 238, 96, 30, 103, 11, 96, 31, 160, 208, 96, 32, 70, 237, 96, 33, 128, 178, 96, 34, 48, 9, 224, 35, 105, 206, 224, 36, 15, 235, 224, 37, 46, 1, 96, 38, 2, 66, 224, 39, 13, 227, 96, 39, 226, 36, 224, 40, 237, 197, 96, 41, 194, 6, 224, 42, 205, 167, 96, 43, 171, 35, 96, 44, 173, 137, 96, 45, 139, 5, 96, 46, 141, 107, 96, 47, 106, 231, 96, 48, 109, 77, 96, 49, 74, 201, 96, 50, 86, 105, 224, 51, 42, 171, 96, 52, 54, 75, 224, 53, 10, 141, 96, 54, 22, 45, 224, 54, 243, 169, 224, 55, 246, 15, 224, 56, 211, 139, 224, 57, 213, 241, 224, 58, 179, 109, 224, 59, 191, 14, 96, 60, 147, 79, 224, 61, 158, 240, 96, 62, 115, 49, 224, 63, 126, 210, 96, 64, 92, 78, 96, 65, 94, 180, 96, 66, 60, 48, 96, 67, 62, 150, 96, 68, 28, 18, 96, 69, 30, 120, 96, 69, 251, 244, 96, 70, 254, 90, 96, 71, 247, 133, 224, 72, 222, 60, 96, 73, 215, 103, 224, 74, 190, 30, 96, 75, 183, 73, 224, 76, 158, 0, 96, 77, 151, 43, 224, 78, 125, 226, 96, 79, 119, 13, 224, 80, 102, 254, 224, 81, 96, 42, 96, 82, 70, 224, 224, 83, 64, 12, 96, 84, 38, 194, 224, 85, 31, 238, 96, 86, 6, 164, 224, 86, 255, 208, 96, 87, 230, 134, 224, 88, 223, 178, 96, 89, 198, 104, 224, 90, 191, 148, 96, 91, 175, 133, 96, 92, 168, 176, 224, 93, 143, 103, 96, 94, 136, 146, 224, 95, 111, 73, 96, 96, 104, 116, 224, 97, 79, 43, 96, 98, 72, 86, 224, 99, 47, 13, 96, 100, 40, 56, 224, 101, 14, 239, 96, 102, 17, 85, 96, 102, 248, 11, 224, 103, 241, 55, 96, 104, 215, 237, 224, 105, 209, 25, 96, 106, 183, 207, 224, 107, 176, 251, 96, 108, 151, 177, 224, 109, 144, 221, 96, 110, 119, 147, 224, 111, 112, 191, 96, 112, 96, 176, 96, 113, 89, 219, 224, 114, 64, 146, 96, 115, 57, 189, 224, 116, 32, 116, 96, 117, 25, 159, 224, 118, 0, 86, 96, 118, 249, 129, 224, 119, 224, 56, 96, 120, 217, 99, 224, 121, 192, 26, 96, 122, 185, 69, 224, 123, 169, 54, 224, 124, 162, 98, 96, 125, 137, 24, 224, 126, 130, 68, 96, 127, 104, 250, 224, 2, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 6, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 0, 0, 163, 216, 0, 0, 0, 0, 175, 200, 1, 4, 0, 0, 161, 184, 0, 9, 0, 0, 168, 192, 1, 4, 0, 0, 182, 208, 1, 14, 0, 0, 168, 192, 0, 4, 0, 0, 168, 192, 0, 4, 76, 77, 84, 0, 78, 90, 83, 84, 0, 78, 90, 77, 84, 0, 78, 90, 68, 84, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 10, 78, 90, 83, 84, 45, 49, 50, 78, 90, 68, 84, 44, 77, 57, 46, 53, 46, 48, 44, 77, 52, 46, 49, 46, 48, 47, 51, 10}, + + "zoneinfo/Antarctica/Palmer": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 84, 0, 0, 0, 8, 0, 0, 0, 16, 128, 0, 0, 0, 246, 152, 173, 0, 246, 230, 159, 176, 248, 19, 67, 192, 248, 199, 211, 48, 249, 244, 119, 64, 250, 211, 54, 176, 251, 195, 53, 192, 252, 188, 83, 48, 253, 172, 82, 64, 254, 156, 53, 48, 255, 140, 52, 64, 7, 163, 74, 176, 8, 36, 111, 160, 23, 48, 188, 176, 24, 6, 93, 192, 24, 209, 86, 176, 25, 230, 63, 192, 26, 177, 56, 176, 27, 207, 92, 64, 28, 145, 26, 176, 29, 175, 62, 64, 30, 112, 252, 176, 31, 143, 32, 64, 32, 127, 3, 48, 33, 111, 2, 64, 34, 57, 251, 48, 35, 78, 228, 64, 36, 25, 221, 48, 37, 56, 0, 192, 37, 249, 191, 48, 38, 242, 248, 192, 39, 217, 161, 48, 40, 247, 196, 192, 41, 194, 189, 176, 42, 215, 166, 192, 43, 162, 159, 176, 44, 183, 136, 192, 45, 130, 129, 176, 46, 151, 106, 192, 47, 98, 99, 176, 48, 128, 135, 64, 49, 66, 69, 176, 50, 96, 105, 64, 51, 61, 215, 48, 52, 64, 75, 64, 53, 11, 68, 48, 54, 13, 184, 64, 55, 6, 213, 176, 56, 0, 15, 64, 56, 203, 8, 48, 57, 233, 43, 192, 58, 170, 234, 48, 59, 201, 13, 192, 60, 138, 204, 48, 61, 168, 239, 192, 62, 106, 174, 48, 63, 136, 209, 192, 64, 83, 202, 176, 65, 104, 179, 192, 66, 51, 172, 176, 67, 72, 149, 192, 68, 19, 142, 176, 69, 49, 178, 64, 69, 243, 112, 176, 71, 17, 148, 64, 71, 239, 2, 48, 72, 241, 118, 64, 73, 188, 111, 48, 74, 209, 88, 64, 75, 184, 0, 176, 76, 177, 58, 64, 77, 198, 7, 48, 78, 80, 130, 192, 79, 156, 174, 176, 80, 66, 217, 192, 81, 124, 144, 176, 82, 43, 246, 64, 83, 92, 114, 176, 84, 11, 216, 64, 87, 55, 230, 48, 87, 175, 236, 192, 88, 67, 134, 176, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 4, 3, 4, 1, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 4, 4, 0, 0, 0, 0, 0, 0, 255, 255, 199, 192, 0, 4, 255, 255, 213, 208, 1, 8, 255, 255, 227, 224, 1, 12, 255, 255, 213, 208, 0, 8, 255, 255, 213, 208, 1, 8, 255, 255, 199, 192, 0, 4, 255, 255, 213, 208, 0, 8, 45, 48, 48, 0, 45, 48, 52, 0, 45, 48, 51, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/Antarctica/Rothera": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 13, 2, 45, 0, 127, 255, 255, 255, 0, 1, 1, 0, 0, 0, 0, 0, 0, 255, 255, 213, 208, 0, 4, 45, 48, 48, 0, 45, 48, 51, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/Antarctica/South_Pole": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 156, 0, 0, 0, 7, 0, 0, 0, 19, 128, 0, 0, 0, 176, 180, 178, 232, 177, 81, 135, 88, 178, 120, 229, 104, 179, 67, 229, 96, 180, 88, 199, 104, 181, 35, 199, 96, 182, 56, 169, 104, 183, 3, 169, 96, 184, 24, 139, 104, 184, 236, 197, 224, 185, 248, 109, 104, 186, 204, 167, 224, 187, 216, 79, 104, 188, 227, 232, 224, 189, 174, 246, 232, 190, 195, 202, 224, 191, 142, 216, 232, 192, 163, 172, 224, 193, 110, 186, 232, 194, 131, 142, 224, 195, 78, 156, 232, 196, 99, 112, 224, 197, 46, 126, 232, 198, 76, 141, 96, 199, 14, 96, 232, 200, 44, 111, 96, 200, 247, 125, 104, 210, 218, 154, 64, 9, 24, 253, 224, 9, 172, 165, 224, 10, 239, 165, 96, 11, 158, 252, 224, 12, 216, 193, 224, 13, 126, 222, 224, 14, 184, 163, 224, 15, 94, 192, 224, 16, 152, 133, 224, 17, 62, 162, 224, 18, 120, 103, 224, 19, 30, 132, 224, 20, 88, 73, 224, 20, 254, 102, 224, 22, 56, 43, 224, 22, 231, 131, 96, 24, 33, 72, 96, 24, 199, 101, 96, 26, 1, 42, 96, 26, 167, 71, 96, 27, 225, 12, 96, 28, 135, 41, 96, 29, 192, 238, 96, 30, 103, 11, 96, 31, 160, 208, 96, 32, 70, 237, 96, 33, 128, 178, 96, 34, 48, 9, 224, 35, 105, 206, 224, 36, 15, 235, 224, 37, 46, 1, 96, 38, 2, 66, 224, 39, 13, 227, 96, 39, 226, 36, 224, 40, 237, 197, 96, 41, 194, 6, 224, 42, 205, 167, 96, 43, 171, 35, 96, 44, 173, 137, 96, 45, 139, 5, 96, 46, 141, 107, 96, 47, 106, 231, 96, 48, 109, 77, 96, 49, 74, 201, 96, 50, 86, 105, 224, 51, 42, 171, 96, 52, 54, 75, 224, 53, 10, 141, 96, 54, 22, 45, 224, 54, 243, 169, 224, 55, 246, 15, 224, 56, 211, 139, 224, 57, 213, 241, 224, 58, 179, 109, 224, 59, 191, 14, 96, 60, 147, 79, 224, 61, 158, 240, 96, 62, 115, 49, 224, 63, 126, 210, 96, 64, 92, 78, 96, 65, 94, 180, 96, 66, 60, 48, 96, 67, 62, 150, 96, 68, 28, 18, 96, 69, 30, 120, 96, 69, 251, 244, 96, 70, 254, 90, 96, 71, 247, 133, 224, 72, 222, 60, 96, 73, 215, 103, 224, 74, 190, 30, 96, 75, 183, 73, 224, 76, 158, 0, 96, 77, 151, 43, 224, 78, 125, 226, 96, 79, 119, 13, 224, 80, 102, 254, 224, 81, 96, 42, 96, 82, 70, 224, 224, 83, 64, 12, 96, 84, 38, 194, 224, 85, 31, 238, 96, 86, 6, 164, 224, 86, 255, 208, 96, 87, 230, 134, 224, 88, 223, 178, 96, 89, 198, 104, 224, 90, 191, 148, 96, 91, 175, 133, 96, 92, 168, 176, 224, 93, 143, 103, 96, 94, 136, 146, 224, 95, 111, 73, 96, 96, 104, 116, 224, 97, 79, 43, 96, 98, 72, 86, 224, 99, 47, 13, 96, 100, 40, 56, 224, 101, 14, 239, 96, 102, 17, 85, 96, 102, 248, 11, 224, 103, 241, 55, 96, 104, 215, 237, 224, 105, 209, 25, 96, 106, 183, 207, 224, 107, 176, 251, 96, 108, 151, 177, 224, 109, 144, 221, 96, 110, 119, 147, 224, 111, 112, 191, 96, 112, 96, 176, 96, 113, 89, 219, 224, 114, 64, 146, 96, 115, 57, 189, 224, 116, 32, 116, 96, 117, 25, 159, 224, 118, 0, 86, 96, 118, 249, 129, 224, 119, 224, 56, 96, 120, 217, 99, 224, 121, 192, 26, 96, 122, 185, 69, 224, 123, 169, 54, 224, 124, 162, 98, 96, 125, 137, 24, 224, 126, 130, 68, 96, 127, 104, 250, 224, 2, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 6, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 0, 0, 163, 216, 0, 0, 0, 0, 175, 200, 1, 4, 0, 0, 161, 184, 0, 9, 0, 0, 168, 192, 1, 4, 0, 0, 182, 208, 1, 14, 0, 0, 168, 192, 0, 4, 0, 0, 168, 192, 0, 4, 76, 77, 84, 0, 78, 90, 83, 84, 0, 78, 90, 77, 84, 0, 78, 90, 68, 84, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 10, 78, 90, 83, 84, 45, 49, 50, 78, 90, 68, 84, 44, 77, 57, 46, 53, 46, 48, 44, 77, 52, 46, 49, 46, 48, 47, 51, 10}, + + "zoneinfo/Antarctica/Syowa": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 231, 177, 88, 0, 127, 255, 255, 255, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 42, 48, 0, 4, 45, 48, 48, 0, 43, 48, 51, 0, 0, 0, 0, 0, 10, 60, 43, 48, 51, 62, 45, 51, 10}, + + "zoneinfo/Antarctica/Troll": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 69, 0, 0, 0, 4, 0, 0, 0, 12, 128, 0, 0, 0, 66, 13, 71, 0, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 127, 255, 255, 255, 0, 3, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 28, 32, 1, 4, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 8, 45, 48, 48, 0, 43, 48, 50, 0, 43, 48, 48, 0, 0, 1, 1, 0, 0, 1, 1, 0, 10, 60, 43, 48, 48, 62, 48, 60, 43, 48, 50, 62, 45, 50, 44, 77, 51, 46, 53, 46, 48, 47, 49, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Antarctica/Vostok": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 233, 88, 137, 128, 127, 255, 255, 255, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 84, 96, 0, 4, 45, 48, 48, 0, 43, 48, 54, 0, 0, 0, 0, 0, 10, 60, 43, 48, 54, 62, 45, 54, 10}, + + "zoneinfo/Arctic/Longyearbyen": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 142, 0, 0, 0, 7, 0, 0, 0, 13, 128, 0, 0, 0, 155, 39, 227, 0, 155, 212, 123, 96, 200, 183, 77, 96, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 130, 37, 16, 209, 114, 22, 16, 210, 98, 7, 16, 235, 175, 32, 144, 236, 168, 76, 16, 237, 152, 61, 16, 238, 136, 46, 16, 239, 120, 31, 16, 240, 104, 16, 16, 241, 88, 1, 16, 242, 71, 242, 16, 243, 55, 227, 16, 244, 39, 212, 16, 245, 23, 197, 16, 246, 16, 240, 144, 247, 47, 6, 16, 247, 240, 210, 144, 18, 206, 151, 240, 19, 77, 68, 16, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 1, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 0, 0, 10, 20, 0, 0, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 76, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Asia/Aden": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 213, 27, 54, 180, 127, 255, 255, 255, 0, 1, 1, 0, 0, 43, 204, 0, 0, 0, 0, 42, 48, 0, 4, 76, 77, 84, 0, 43, 48, 51, 0, 0, 0, 0, 0, 10, 60, 43, 48, 51, 62, 45, 51, 10}, + + "zoneinfo/Asia/Almaty": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 0, 10, 0, 0, 0, 16, 128, 0, 0, 0, 170, 25, 123, 220, 181, 163, 239, 48, 21, 39, 125, 160, 22, 24, 178, 16, 23, 8, 177, 32, 23, 249, 229, 144, 24, 233, 228, 160, 25, 219, 25, 16, 26, 204, 105, 160, 27, 188, 118, 192, 28, 172, 103, 192, 29, 156, 88, 192, 30, 140, 73, 192, 31, 124, 58, 192, 32, 108, 43, 192, 33, 92, 28, 192, 34, 76, 13, 192, 35, 59, 254, 192, 36, 43, 239, 192, 37, 27, 224, 192, 38, 11, 209, 192, 39, 4, 253, 64, 39, 244, 238, 64, 40, 228, 237, 80, 41, 120, 149, 80, 41, 212, 208, 64, 42, 196, 193, 64, 43, 180, 178, 64, 44, 164, 163, 64, 45, 148, 148, 64, 46, 132, 133, 64, 47, 116, 118, 64, 48, 100, 103, 64, 49, 93, 146, 192, 50, 114, 109, 192, 51, 61, 116, 192, 52, 82, 79, 192, 53, 29, 86, 192, 54, 50, 49, 192, 54, 253, 56, 192, 56, 27, 78, 64, 56, 221, 26, 192, 57, 251, 48, 64, 58, 188, 252, 192, 59, 219, 18, 64, 60, 166, 25, 64, 61, 186, 244, 64, 62, 133, 251, 64, 63, 154, 214, 64, 64, 101, 221, 64, 65, 131, 242, 192, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 4, 0, 0, 72, 36, 0, 0, 0, 0, 70, 80, 0, 4, 0, 0, 98, 112, 1, 8, 0, 0, 84, 96, 0, 12, 0, 0, 84, 96, 0, 12, 0, 0, 98, 112, 1, 8, 0, 0, 84, 96, 1, 12, 0, 0, 70, 80, 0, 4, 0, 0, 98, 112, 1, 8, 0, 0, 84, 96, 0, 12, 76, 77, 84, 0, 43, 48, 53, 0, 43, 48, 55, 0, 43, 48, 54, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 54, 62, 45, 54, 10}, + + "zoneinfo/Asia/Amman": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 118, 0, 0, 0, 5, 0, 0, 0, 13, 128, 0, 0, 0, 182, 163, 214, 208, 6, 114, 121, 224, 7, 12, 171, 80, 8, 36, 55, 96, 8, 237, 222, 208, 10, 5, 106, 224, 10, 207, 18, 80, 11, 231, 239, 224, 12, 218, 117, 208, 13, 201, 35, 96, 14, 146, 202, 208, 15, 169, 5, 96, 16, 114, 172, 208, 28, 173, 213, 96, 29, 159, 9, 208, 30, 146, 253, 96, 31, 130, 224, 80, 32, 114, 223, 96, 33, 98, 194, 80, 34, 82, 193, 96, 35, 75, 222, 208, 36, 100, 188, 96, 37, 43, 192, 208, 38, 55, 111, 96, 39, 11, 162, 208, 40, 11, 115, 224, 40, 226, 74, 80, 41, 228, 190, 96, 42, 203, 102, 208, 43, 187, 101, 224, 44, 171, 72, 208, 45, 155, 71, 224, 46, 120, 181, 208, 47, 132, 100, 96, 48, 88, 165, 224, 49, 100, 70, 96, 50, 65, 194, 96, 51, 68, 40, 96, 52, 33, 164, 96, 53, 36, 10, 96, 54, 1, 134, 96, 55, 122, 147, 96, 55, 234, 162, 224, 56, 226, 124, 224, 57, 211, 191, 96, 58, 194, 94, 224, 59, 179, 161, 96, 60, 163, 146, 96, 61, 147, 131, 96, 62, 131, 116, 96, 63, 152, 79, 96, 64, 99, 86, 96, 65, 110, 246, 224, 66, 76, 114, 224, 67, 60, 99, 224, 68, 44, 84, 224, 69, 65, 47, 224, 70, 12, 54, 224, 71, 33, 17, 224, 71, 236, 24, 224, 73, 10, 46, 96, 73, 203, 250, 224, 74, 234, 16, 96, 75, 171, 220, 224, 76, 201, 242, 96, 77, 148, 249, 96, 78, 169, 212, 96, 79, 116, 219, 96, 82, 179, 94, 80, 83, 52, 159, 96, 84, 82, 180, 224, 85, 20, 129, 96, 86, 50, 150, 224, 86, 253, 157, 224, 88, 18, 120, 224, 88, 221, 127, 224, 89, 242, 90, 224, 90, 189, 97, 224, 91, 210, 60, 224, 92, 157, 67, 224, 93, 178, 30, 224, 94, 125, 37, 224, 95, 155, 59, 96, 96, 93, 7, 224, 97, 123, 29, 96, 98, 70, 36, 96, 99, 90, 255, 96, 100, 38, 6, 96, 101, 58, 225, 96, 102, 5, 232, 96, 103, 26, 195, 96, 103, 229, 202, 96, 105, 3, 223, 224, 105, 197, 172, 96, 106, 227, 193, 224, 107, 165, 142, 96, 108, 195, 163, 224, 109, 142, 170, 224, 110, 163, 133, 224, 111, 110, 140, 224, 112, 131, 103, 224, 113, 78, 110, 224, 114, 99, 73, 224, 115, 46, 80, 224, 116, 76, 102, 96, 117, 14, 50, 224, 118, 44, 72, 96, 118, 247, 79, 96, 120, 12, 42, 96, 120, 215, 49, 96, 121, 236, 12, 96, 122, 183, 19, 96, 123, 203, 238, 96, 124, 150, 245, 96, 125, 181, 10, 224, 126, 118, 215, 96, 127, 148, 236, 224, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 4, 3, 4, 3, 4, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 0, 0, 33, 176, 0, 0, 0, 0, 42, 48, 1, 4, 0, 0, 28, 32, 0, 9, 0, 0, 28, 32, 0, 9, 0, 0, 42, 48, 1, 4, 76, 77, 84, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 52, 47, 50, 52, 44, 77, 49, 48, 46, 53, 46, 53, 47, 49, 10}, + + "zoneinfo/Asia/Anadyr": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 66, 0, 0, 0, 10, 0, 0, 0, 20, 128, 0, 0, 0, 170, 25, 29, 156, 181, 163, 140, 192, 21, 39, 27, 48, 22, 24, 79, 160, 23, 8, 78, 176, 23, 249, 145, 48, 24, 233, 144, 64, 25, 218, 196, 176, 26, 204, 21, 64, 27, 188, 34, 96, 28, 172, 19, 96, 29, 156, 4, 96, 30, 139, 245, 96, 31, 123, 230, 96, 32, 107, 215, 96, 33, 91, 200, 96, 34, 75, 185, 96, 35, 59, 170, 96, 36, 43, 155, 96, 37, 27, 140, 96, 38, 11, 125, 96, 39, 4, 168, 224, 39, 244, 153, 224, 40, 228, 152, 240, 41, 120, 64, 240, 41, 212, 123, 224, 42, 196, 108, 224, 43, 180, 93, 224, 44, 164, 78, 224, 45, 148, 63, 224, 46, 132, 48, 224, 47, 116, 33, 224, 48, 100, 18, 224, 49, 93, 62, 96, 50, 114, 25, 96, 51, 61, 32, 96, 52, 81, 251, 96, 53, 29, 2, 96, 54, 49, 221, 96, 54, 252, 228, 96, 56, 26, 249, 224, 56, 220, 198, 96, 57, 250, 219, 224, 58, 188, 168, 96, 59, 218, 189, 224, 60, 165, 196, 224, 61, 186, 159, 224, 62, 133, 166, 224, 63, 154, 129, 224, 64, 101, 136, 224, 65, 131, 158, 96, 66, 69, 106, 224, 67, 99, 128, 96, 68, 37, 76, 224, 69, 67, 98, 96, 70, 5, 46, 224, 71, 35, 68, 96, 71, 238, 75, 96, 73, 3, 38, 96, 73, 206, 45, 96, 74, 227, 8, 96, 75, 174, 15, 96, 76, 204, 50, 240, 77, 141, 255, 112, 127, 255, 255, 255, 0, 1, 3, 2, 3, 4, 1, 4, 1, 4, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 7, 8, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 7, 8, 5, 5, 0, 0, 166, 100, 0, 0, 0, 0, 168, 192, 0, 4, 0, 0, 196, 224, 1, 8, 0, 0, 182, 208, 0, 12, 0, 0, 182, 208, 1, 12, 0, 0, 168, 192, 0, 4, 0, 0, 182, 208, 1, 12, 0, 0, 168, 192, 1, 4, 0, 0, 154, 176, 0, 16, 0, 0, 168, 192, 0, 4, 76, 77, 84, 0, 43, 49, 50, 0, 43, 49, 52, 0, 43, 49, 51, 0, 43, 49, 49, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 50, 62, 45, 49, 50, 10}, + + "zoneinfo/Asia/Aqtau": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 0, 10, 0, 0, 0, 16, 128, 0, 0, 0, 170, 25, 148, 224, 181, 163, 253, 64, 22, 24, 206, 48, 23, 8, 177, 32, 23, 249, 243, 160, 24, 233, 242, 176, 25, 219, 39, 32, 26, 204, 119, 176, 27, 188, 132, 208, 28, 172, 117, 208, 29, 156, 102, 208, 30, 140, 87, 208, 31, 124, 72, 208, 32, 108, 57, 208, 33, 92, 42, 208, 34, 76, 27, 208, 35, 60, 12, 208, 36, 43, 253, 208, 37, 27, 238, 208, 38, 11, 223, 208, 39, 5, 11, 80, 39, 244, 252, 80, 40, 228, 251, 96, 41, 120, 163, 96, 41, 212, 222, 80, 42, 196, 207, 80, 43, 180, 192, 80, 44, 164, 177, 80, 45, 148, 162, 80, 46, 132, 147, 80, 47, 116, 146, 96, 48, 100, 131, 96, 49, 93, 174, 224, 50, 114, 137, 224, 51, 61, 144, 224, 52, 82, 107, 224, 53, 29, 114, 224, 54, 50, 77, 224, 54, 253, 84, 224, 56, 27, 106, 96, 56, 221, 54, 224, 57, 251, 76, 96, 58, 189, 24, 224, 59, 219, 46, 96, 60, 166, 53, 96, 61, 187, 16, 96, 62, 134, 23, 96, 63, 154, 242, 96, 64, 101, 249, 96, 65, 132, 14, 224, 127, 255, 255, 255, 0, 1, 2, 3, 4, 2, 4, 2, 4, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 7, 8, 5, 6, 5, 6, 5, 6, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 5, 5, 0, 0, 47, 32, 0, 0, 0, 0, 56, 64, 0, 4, 0, 0, 70, 80, 0, 8, 0, 0, 84, 96, 0, 12, 0, 0, 84, 96, 1, 12, 0, 0, 70, 80, 0, 8, 0, 0, 84, 96, 1, 12, 0, 0, 70, 80, 1, 8, 0, 0, 56, 64, 0, 4, 0, 0, 70, 80, 0, 8, 76, 77, 84, 0, 43, 48, 52, 0, 43, 48, 53, 0, 43, 48, 54, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 53, 62, 45, 53, 10}, + + "zoneinfo/Asia/Aqtobe": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 0, 11, 0, 0, 0, 16, 128, 0, 0, 0, 170, 25, 142, 104, 181, 163, 253, 64, 21, 39, 139, 176, 22, 24, 192, 32, 23, 8, 177, 32, 23, 249, 243, 160, 24, 233, 242, 176, 25, 219, 39, 32, 26, 204, 119, 176, 27, 188, 132, 208, 28, 172, 117, 208, 29, 156, 102, 208, 30, 140, 87, 208, 31, 124, 72, 208, 32, 108, 57, 208, 33, 92, 42, 208, 34, 76, 27, 208, 35, 60, 12, 208, 36, 43, 253, 208, 37, 27, 238, 208, 38, 11, 223, 208, 39, 5, 11, 80, 39, 244, 252, 80, 40, 228, 251, 96, 41, 120, 163, 96, 41, 212, 222, 80, 42, 196, 207, 80, 43, 180, 192, 80, 44, 164, 177, 80, 45, 148, 162, 80, 46, 132, 147, 80, 47, 116, 132, 80, 48, 100, 117, 80, 49, 93, 160, 208, 50, 114, 123, 208, 51, 61, 130, 208, 52, 82, 93, 208, 53, 29, 100, 208, 54, 50, 63, 208, 54, 253, 70, 208, 56, 27, 92, 80, 56, 221, 40, 208, 57, 251, 62, 80, 58, 189, 10, 208, 59, 219, 32, 80, 60, 166, 39, 80, 61, 187, 2, 80, 62, 134, 9, 80, 63, 154, 228, 80, 64, 101, 235, 80, 65, 132, 0, 208, 127, 255, 255, 255, 0, 1, 2, 3, 4, 3, 2, 3, 2, 3, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 7, 8, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 5, 0, 0, 53, 152, 0, 0, 0, 0, 56, 64, 0, 4, 0, 0, 70, 80, 0, 8, 0, 0, 84, 96, 1, 12, 0, 0, 84, 96, 0, 12, 0, 0, 70, 80, 0, 8, 0, 0, 84, 96, 1, 12, 0, 0, 70, 80, 1, 8, 0, 0, 56, 64, 0, 4, 0, 0, 84, 96, 1, 12, 0, 0, 70, 80, 0, 8, 76, 77, 84, 0, 43, 48, 52, 0, 43, 48, 53, 0, 43, 48, 54, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 53, 62, 45, 53, 10}, + + "zoneinfo/Asia/Ashgabat": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 9, 0, 0, 0, 16, 128, 0, 0, 0, 170, 25, 141, 68, 181, 163, 253, 64, 21, 39, 139, 176, 22, 24, 192, 32, 23, 8, 191, 48, 23, 249, 243, 160, 24, 233, 242, 176, 25, 219, 39, 32, 26, 204, 119, 176, 27, 188, 132, 208, 28, 172, 117, 208, 29, 156, 102, 208, 30, 140, 87, 208, 31, 124, 72, 208, 32, 108, 57, 208, 33, 92, 42, 208, 34, 76, 27, 208, 35, 60, 12, 208, 36, 43, 253, 208, 37, 27, 238, 208, 38, 11, 223, 208, 39, 5, 11, 80, 39, 244, 252, 80, 40, 228, 251, 96, 41, 120, 163, 96, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 3, 3, 0, 0, 54, 188, 0, 0, 0, 0, 56, 64, 0, 4, 0, 0, 84, 96, 1, 8, 0, 0, 70, 80, 0, 12, 0, 0, 70, 80, 0, 12, 0, 0, 84, 96, 1, 8, 0, 0, 70, 80, 1, 12, 0, 0, 56, 64, 0, 4, 0, 0, 70, 80, 0, 12, 76, 77, 84, 0, 43, 48, 52, 0, 43, 48, 54, 0, 43, 48, 53, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 53, 62, 45, 53, 10}, + + "zoneinfo/Asia/Ashkhabad": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 9, 0, 0, 0, 16, 128, 0, 0, 0, 170, 25, 141, 68, 181, 163, 253, 64, 21, 39, 139, 176, 22, 24, 192, 32, 23, 8, 191, 48, 23, 249, 243, 160, 24, 233, 242, 176, 25, 219, 39, 32, 26, 204, 119, 176, 27, 188, 132, 208, 28, 172, 117, 208, 29, 156, 102, 208, 30, 140, 87, 208, 31, 124, 72, 208, 32, 108, 57, 208, 33, 92, 42, 208, 34, 76, 27, 208, 35, 60, 12, 208, 36, 43, 253, 208, 37, 27, 238, 208, 38, 11, 223, 208, 39, 5, 11, 80, 39, 244, 252, 80, 40, 228, 251, 96, 41, 120, 163, 96, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 3, 3, 0, 0, 54, 188, 0, 0, 0, 0, 56, 64, 0, 4, 0, 0, 84, 96, 1, 8, 0, 0, 70, 80, 0, 12, 0, 0, 70, 80, 0, 12, 0, 0, 84, 96, 1, 8, 0, 0, 70, 80, 1, 12, 0, 0, 56, 64, 0, 4, 0, 0, 70, 80, 0, 12, 76, 77, 84, 0, 43, 48, 52, 0, 43, 48, 54, 0, 43, 48, 53, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 53, 62, 45, 53, 10}, + + "zoneinfo/Asia/Atyrau": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 0, 10, 0, 0, 0, 20, 128, 0, 0, 0, 170, 25, 147, 80, 181, 164, 11, 80, 22, 24, 206, 48, 23, 8, 177, 32, 23, 249, 243, 160, 24, 233, 242, 176, 25, 219, 39, 32, 26, 204, 119, 176, 27, 188, 132, 208, 28, 172, 117, 208, 29, 156, 102, 208, 30, 140, 87, 208, 31, 124, 72, 208, 32, 108, 57, 208, 33, 92, 42, 208, 34, 76, 27, 208, 35, 60, 12, 208, 36, 43, 253, 208, 37, 27, 238, 208, 38, 11, 223, 208, 39, 5, 11, 80, 39, 244, 252, 80, 40, 228, 251, 96, 41, 120, 163, 96, 41, 212, 222, 80, 42, 196, 207, 80, 43, 180, 192, 80, 44, 164, 177, 80, 45, 148, 162, 80, 46, 132, 147, 80, 47, 116, 132, 80, 48, 100, 117, 80, 49, 93, 160, 208, 50, 114, 123, 208, 51, 61, 130, 208, 52, 82, 93, 208, 53, 29, 100, 208, 54, 50, 63, 208, 54, 253, 70, 208, 56, 27, 106, 96, 56, 221, 54, 224, 57, 251, 76, 96, 58, 189, 24, 224, 59, 219, 46, 96, 60, 166, 53, 96, 61, 187, 16, 96, 62, 134, 23, 96, 63, 154, 242, 96, 64, 101, 249, 96, 65, 132, 14, 224, 127, 255, 255, 255, 0, 1, 2, 3, 4, 2, 4, 2, 4, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 7, 8, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 5, 5, 0, 0, 48, 176, 0, 0, 0, 0, 42, 48, 0, 4, 0, 0, 70, 80, 0, 8, 0, 0, 84, 96, 0, 12, 0, 0, 84, 96, 1, 12, 0, 0, 70, 80, 0, 8, 0, 0, 84, 96, 1, 12, 0, 0, 70, 80, 1, 8, 0, 0, 56, 64, 0, 16, 0, 0, 70, 80, 0, 8, 76, 77, 84, 0, 43, 48, 51, 0, 43, 48, 53, 0, 43, 48, 54, 0, 43, 48, 52, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 53, 62, 45, 53, 10}, + + "zoneinfo/Asia/Baghdad": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 55, 0, 0, 0, 6, 0, 0, 0, 16, 128, 0, 0, 0, 158, 48, 60, 224, 23, 48, 104, 80, 23, 250, 15, 192, 24, 232, 189, 80, 25, 219, 67, 64, 26, 204, 147, 208, 27, 189, 200, 64, 28, 173, 199, 80, 29, 156, 116, 224, 30, 140, 101, 224, 31, 124, 86, 224, 32, 108, 71, 224, 33, 92, 56, 224, 34, 76, 41, 224, 35, 60, 26, 224, 36, 44, 11, 224, 37, 27, 252, 224, 38, 11, 237, 224, 39, 5, 25, 96, 39, 246, 120, 0, 40, 231, 186, 128, 41, 216, 253, 0, 42, 202, 63, 128, 43, 186, 48, 128, 44, 171, 115, 0, 45, 155, 100, 0, 46, 140, 166, 128, 47, 124, 151, 128, 48, 109, 218, 0, 49, 95, 28, 128, 50, 80, 95, 0, 51, 64, 80, 0, 52, 49, 146, 128, 53, 33, 131, 128, 54, 18, 198, 0, 55, 2, 183, 0, 55, 243, 249, 128, 56, 229, 60, 0, 57, 214, 126, 128, 58, 198, 111, 128, 59, 183, 178, 0, 60, 167, 163, 0, 61, 152, 229, 128, 62, 136, 214, 128, 63, 122, 25, 0, 64, 107, 91, 128, 65, 92, 158, 0, 66, 76, 143, 0, 67, 61, 209, 128, 68, 45, 194, 128, 69, 31, 5, 0, 70, 14, 246, 0, 71, 0, 56, 128, 127, 255, 255, 255, 1, 2, 3, 2, 3, 2, 3, 2, 3, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 4, 0, 0, 41, 164, 0, 0, 0, 0, 41, 160, 0, 4, 0, 0, 42, 48, 0, 8, 0, 0, 56, 64, 1, 12, 0, 0, 42, 48, 0, 8, 0, 0, 56, 64, 1, 12, 76, 77, 84, 0, 66, 77, 84, 0, 43, 48, 51, 0, 43, 48, 52, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 51, 62, 45, 51, 10}, + + "zoneinfo/Asia/Bahrain": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 161, 242, 157, 48, 4, 138, 146, 192, 127, 255, 255, 255, 0, 1, 2, 2, 0, 0, 48, 80, 0, 0, 0, 0, 56, 64, 0, 4, 0, 0, 42, 48, 0, 8, 76, 77, 84, 0, 43, 48, 52, 0, 43, 48, 51, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 51, 62, 45, 51, 10}, + + "zoneinfo/Asia/Baku": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 70, 0, 0, 0, 10, 0, 0, 0, 16, 128, 0, 0, 0, 170, 25, 149, 68, 231, 218, 12, 80, 21, 39, 153, 192, 22, 24, 206, 48, 23, 8, 205, 64, 23, 250, 1, 176, 24, 234, 0, 192, 25, 219, 53, 48, 26, 204, 133, 192, 27, 188, 146, 224, 28, 172, 131, 224, 29, 156, 116, 224, 30, 140, 101, 224, 31, 124, 86, 224, 32, 108, 71, 224, 33, 92, 56, 224, 34, 76, 41, 224, 35, 60, 26, 224, 36, 44, 11, 224, 37, 27, 252, 224, 38, 11, 237, 224, 39, 5, 25, 96, 39, 245, 10, 96, 40, 229, 9, 112, 41, 212, 250, 112, 42, 196, 235, 112, 48, 230, 235, 192, 49, 93, 217, 16, 50, 114, 180, 16, 50, 201, 112, 192, 51, 61, 173, 0, 52, 82, 136, 0, 53, 29, 143, 0, 54, 50, 106, 0, 54, 253, 113, 0, 56, 27, 134, 128, 56, 221, 83, 0, 57, 251, 104, 128, 58, 189, 53, 0, 59, 219, 74, 128, 60, 166, 81, 128, 61, 187, 44, 128, 62, 134, 51, 128, 63, 155, 14, 128, 64, 102, 21, 128, 65, 132, 43, 0, 66, 69, 247, 128, 67, 100, 13, 0, 68, 37, 217, 128, 69, 67, 239, 0, 70, 5, 187, 128, 71, 35, 209, 0, 71, 238, 216, 0, 73, 3, 179, 0, 73, 206, 186, 0, 74, 227, 149, 0, 75, 174, 156, 0, 76, 204, 177, 128, 77, 142, 126, 0, 78, 172, 147, 128, 79, 110, 96, 0, 80, 140, 117, 128, 81, 87, 124, 128, 82, 108, 87, 128, 83, 55, 94, 128, 84, 76, 57, 128, 85, 23, 64, 128, 86, 44, 27, 128, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 6, 4, 3, 8, 9, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 3, 0, 0, 46, 188, 0, 0, 0, 0, 42, 48, 0, 4, 0, 0, 70, 80, 1, 8, 0, 0, 56, 64, 0, 12, 0, 0, 56, 64, 0, 12, 0, 0, 70, 80, 1, 8, 0, 0, 56, 64, 1, 12, 0, 0, 42, 48, 0, 4, 0, 0, 70, 80, 1, 8, 0, 0, 56, 64, 0, 12, 76, 77, 84, 0, 43, 48, 51, 0, 43, 48, 53, 0, 43, 48, 52, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 10, 60, 43, 48, 52, 62, 45, 52, 10}, + + "zoneinfo/Asia/Bangkok": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 162, 106, 103, 196, 127, 255, 255, 255, 1, 2, 2, 0, 0, 94, 60, 0, 0, 0, 0, 94, 60, 0, 4, 0, 0, 98, 112, 0, 8, 76, 77, 84, 0, 66, 77, 84, 0, 43, 48, 55, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 55, 62, 45, 55, 10}, + + "zoneinfo/Asia/Barnaul": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 69, 0, 0, 0, 10, 0, 0, 0, 16, 128, 0, 0, 0, 161, 213, 125, 252, 181, 163, 225, 32, 21, 39, 111, 144, 22, 24, 164, 0, 23, 8, 163, 16, 23, 249, 215, 128, 24, 233, 214, 144, 25, 219, 11, 0, 26, 204, 91, 144, 27, 188, 104, 176, 28, 172, 89, 176, 29, 156, 74, 176, 30, 140, 59, 176, 31, 124, 44, 176, 32, 108, 29, 176, 33, 92, 14, 176, 34, 75, 255, 176, 35, 59, 240, 176, 36, 43, 225, 176, 37, 27, 210, 176, 38, 11, 195, 176, 39, 4, 239, 48, 39, 244, 224, 48, 40, 228, 223, 64, 41, 120, 135, 64, 41, 212, 194, 48, 42, 196, 179, 48, 43, 180, 164, 48, 44, 164, 149, 48, 45, 148, 134, 48, 46, 132, 119, 48, 47, 116, 104, 48, 47, 199, 76, 128, 48, 100, 103, 64, 49, 93, 146, 192, 50, 114, 109, 192, 51, 61, 116, 192, 52, 82, 79, 192, 53, 29, 86, 192, 54, 50, 49, 192, 54, 253, 56, 192, 56, 27, 78, 64, 56, 221, 26, 192, 57, 251, 48, 64, 58, 188, 252, 192, 59, 219, 18, 64, 60, 166, 25, 64, 61, 186, 244, 64, 62, 133, 251, 64, 63, 154, 214, 64, 64, 101, 221, 64, 65, 131, 242, 192, 66, 69, 191, 64, 67, 99, 212, 192, 68, 37, 161, 64, 69, 67, 182, 192, 70, 5, 131, 64, 71, 35, 152, 192, 71, 238, 159, 192, 73, 3, 122, 192, 73, 206, 129, 192, 74, 227, 92, 192, 75, 174, 99, 192, 76, 204, 121, 64, 77, 142, 69, 192, 84, 75, 243, 48, 86, 246, 234, 64, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 4, 5, 4, 5, 4, 5, 4, 5, 8, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 4, 7, 4, 4, 0, 0, 78, 132, 0, 0, 0, 0, 84, 96, 0, 4, 0, 0, 112, 128, 1, 8, 0, 0, 98, 112, 0, 12, 0, 0, 98, 112, 0, 12, 0, 0, 112, 128, 1, 8, 0, 0, 98, 112, 1, 12, 0, 0, 84, 96, 0, 4, 0, 0, 98, 112, 1, 12, 0, 0, 98, 112, 0, 12, 76, 77, 84, 0, 43, 48, 54, 0, 43, 48, 56, 0, 43, 48, 55, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 55, 62, 45, 55, 10}, + + "zoneinfo/Asia/Beirut": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 141, 0, 0, 0, 3, 0, 0, 0, 13, 128, 0, 0, 0, 162, 101, 99, 224, 163, 123, 130, 80, 164, 78, 128, 96, 165, 63, 180, 208, 166, 37, 39, 224, 167, 39, 127, 208, 168, 41, 243, 224, 168, 235, 178, 80, 232, 42, 133, 224, 232, 244, 45, 80, 234, 11, 185, 96, 234, 213, 96, 208, 235, 236, 236, 224, 236, 182, 148, 80, 237, 207, 113, 224, 238, 153, 25, 80, 239, 176, 165, 96, 240, 122, 76, 208, 4, 166, 94, 96, 5, 43, 119, 208, 6, 67, 3, 224, 7, 12, 171, 80, 8, 36, 55, 96, 8, 237, 222, 208, 10, 5, 106, 224, 10, 207, 18, 80, 11, 231, 239, 224, 12, 177, 151, 80, 13, 201, 35, 96, 14, 146, 202, 208, 15, 169, 5, 96, 16, 114, 172, 208, 26, 244, 46, 224, 27, 209, 156, 208, 28, 213, 98, 96, 29, 178, 208, 80, 30, 182, 149, 224, 31, 148, 3, 208, 32, 151, 201, 96, 33, 117, 55, 80, 34, 163, 44, 224, 35, 87, 188, 80, 36, 103, 95, 96, 37, 56, 239, 208, 38, 60, 181, 96, 39, 26, 35, 80, 40, 29, 232, 224, 40, 251, 86, 208, 42, 0, 109, 224, 42, 206, 9, 208, 43, 180, 206, 96, 44, 164, 177, 80, 45, 148, 176, 96, 46, 132, 147, 80, 47, 116, 146, 96, 48, 100, 117, 80, 49, 93, 174, 224, 50, 77, 145, 208, 51, 61, 144, 224, 52, 45, 115, 208, 53, 29, 114, 224, 54, 13, 85, 208, 54, 253, 84, 224, 56, 27, 92, 80, 56, 221, 54, 224, 57, 251, 62, 80, 58, 189, 24, 224, 59, 219, 32, 80, 60, 166, 53, 96, 61, 187, 2, 80, 62, 134, 23, 96, 63, 154, 228, 80, 64, 101, 249, 96, 65, 132, 0, 208, 66, 69, 219, 96, 67, 99, 226, 208, 68, 37, 189, 96, 69, 67, 196, 208, 70, 5, 159, 96, 71, 35, 166, 208, 71, 238, 187, 224, 73, 3, 136, 208, 73, 206, 157, 224, 74, 227, 106, 208, 75, 174, 127, 224, 76, 204, 135, 80, 77, 142, 97, 224, 78, 172, 105, 80, 79, 110, 67, 224, 80, 140, 75, 80, 81, 87, 96, 96, 82, 108, 45, 80, 83, 55, 66, 96, 84, 76, 15, 80, 85, 23, 36, 96, 86, 43, 241, 80, 86, 247, 6, 96, 88, 21, 13, 208, 88, 214, 232, 96, 89, 244, 239, 208, 90, 182, 202, 96, 91, 212, 209, 208, 92, 159, 230, 224, 93, 180, 179, 208, 94, 127, 200, 224, 95, 148, 149, 208, 96, 95, 170, 224, 97, 125, 178, 80, 98, 63, 140, 224, 99, 93, 148, 80, 100, 31, 110, 224, 101, 61, 118, 80, 102, 8, 139, 96, 103, 29, 88, 80, 103, 232, 109, 96, 104, 253, 58, 80, 105, 200, 79, 96, 106, 221, 28, 80, 107, 168, 49, 96, 108, 198, 56, 208, 109, 136, 19, 96, 110, 166, 26, 208, 111, 103, 245, 96, 112, 133, 252, 208, 113, 81, 17, 224, 114, 101, 222, 208, 115, 48, 243, 224, 116, 69, 192, 208, 117, 16, 213, 224, 118, 46, 221, 80, 118, 240, 183, 224, 120, 14, 191, 80, 120, 208, 153, 224, 121, 238, 161, 80, 122, 176, 123, 224, 123, 206, 131, 80, 124, 153, 152, 96, 125, 174, 101, 80, 126, 121, 122, 96, 127, 142, 71, 80, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 0, 0, 33, 72, 0, 0, 0, 0, 42, 48, 1, 4, 0, 0, 28, 32, 0, 9, 76, 77, 84, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 0, 0, 0, 0, 0, 0, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 48, 10}, + + "zoneinfo/Asia/Bishkek": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 54, 0, 0, 0, 10, 0, 0, 0, 16, 128, 0, 0, 0, 170, 25, 126, 16, 181, 163, 239, 48, 21, 39, 125, 160, 22, 24, 178, 16, 23, 8, 177, 32, 23, 249, 229, 144, 24, 233, 228, 160, 25, 219, 25, 16, 26, 204, 105, 160, 27, 188, 118, 192, 28, 172, 103, 192, 29, 156, 88, 192, 30, 140, 73, 192, 31, 124, 58, 192, 32, 108, 43, 192, 33, 92, 28, 192, 34, 76, 13, 192, 35, 59, 254, 192, 36, 43, 239, 192, 37, 27, 224, 192, 38, 11, 209, 192, 39, 4, 253, 64, 39, 244, 238, 64, 40, 190, 163, 192, 41, 231, 55, 48, 42, 196, 165, 32, 43, 199, 25, 48, 44, 164, 135, 32, 45, 166, 251, 48, 46, 132, 105, 32, 47, 134, 221, 48, 48, 100, 75, 32, 49, 102, 191, 48, 50, 77, 103, 160, 51, 61, 137, 216, 52, 82, 86, 200, 53, 29, 107, 216, 54, 50, 56, 200, 54, 253, 77, 216, 56, 27, 85, 72, 56, 221, 47, 216, 57, 251, 55, 72, 58, 189, 17, 216, 59, 219, 25, 72, 60, 166, 46, 88, 61, 186, 251, 72, 62, 134, 16, 88, 63, 154, 221, 72, 64, 101, 242, 88, 65, 131, 249, 200, 66, 69, 212, 88, 66, 251, 146, 32, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 3, 3, 0, 0, 69, 240, 0, 0, 0, 0, 70, 80, 0, 4, 0, 0, 98, 112, 1, 8, 0, 0, 84, 96, 0, 12, 0, 0, 84, 96, 0, 12, 0, 0, 98, 112, 1, 8, 0, 0, 84, 96, 1, 12, 0, 0, 70, 80, 0, 4, 0, 0, 84, 96, 1, 12, 0, 0, 84, 96, 0, 12, 76, 77, 84, 0, 43, 48, 53, 0, 43, 48, 55, 0, 43, 48, 54, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 54, 62, 45, 54, 10}, + + "zoneinfo/Asia/Brunei": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 3, 0, 0, 0, 14, 128, 0, 0, 0, 173, 138, 2, 68, 186, 103, 71, 136, 127, 255, 255, 255, 0, 1, 2, 2, 0, 0, 107, 188, 0, 0, 0, 0, 105, 120, 0, 4, 0, 0, 112, 128, 0, 10, 76, 77, 84, 0, 43, 48, 55, 51, 48, 0, 43, 48, 56, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 56, 62, 45, 56, 10}, + + "zoneinfo/Asia/Calcutta": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 4, 0, 0, 0, 18, 128, 0, 0, 0, 135, 157, 188, 186, 202, 219, 140, 40, 204, 5, 113, 24, 204, 149, 50, 168, 210, 116, 18, 152, 1, 2, 3, 2, 3, 2, 0, 0, 82, 208, 0, 0, 0, 0, 75, 70, 0, 4, 0, 0, 77, 88, 0, 8, 0, 0, 91, 104, 1, 12, 72, 77, 84, 0, 77, 77, 84, 0, 73, 83, 84, 0, 43, 48, 54, 51, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 73, 83, 84, 45, 53, 58, 51, 48, 10}, + + "zoneinfo/Asia/Chita": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 68, 0, 0, 0, 11, 0, 0, 0, 16, 128, 0, 0, 0, 161, 219, 249, 160, 181, 163, 197, 0, 21, 39, 83, 112, 22, 24, 135, 224, 23, 8, 134, 240, 23, 249, 187, 96, 24, 233, 186, 112, 25, 218, 238, 224, 26, 204, 63, 112, 27, 188, 76, 144, 28, 172, 61, 144, 29, 156, 46, 144, 30, 140, 31, 144, 31, 124, 16, 144, 32, 108, 1, 144, 33, 91, 242, 144, 34, 75, 227, 144, 35, 59, 212, 144, 36, 43, 197, 144, 37, 27, 182, 144, 38, 11, 167, 144, 39, 4, 211, 16, 39, 244, 196, 16, 40, 228, 195, 32, 41, 120, 107, 32, 41, 212, 166, 16, 42, 196, 151, 16, 43, 180, 136, 16, 44, 164, 121, 16, 45, 148, 106, 16, 46, 132, 91, 16, 47, 116, 76, 16, 48, 100, 61, 16, 49, 93, 104, 144, 50, 114, 67, 144, 51, 61, 74, 144, 52, 82, 37, 144, 53, 29, 44, 144, 54, 50, 7, 144, 54, 253, 14, 144, 56, 27, 36, 16, 56, 220, 240, 144, 57, 251, 6, 16, 58, 188, 210, 144, 59, 218, 232, 16, 60, 165, 239, 16, 61, 186, 202, 16, 62, 133, 209, 16, 63, 154, 172, 16, 64, 101, 179, 16, 65, 131, 200, 144, 66, 69, 149, 16, 67, 99, 170, 144, 68, 37, 119, 16, 69, 67, 140, 144, 70, 5, 89, 16, 71, 35, 110, 144, 71, 238, 117, 144, 73, 3, 80, 144, 73, 206, 87, 144, 74, 227, 50, 144, 75, 174, 57, 144, 76, 204, 79, 16, 77, 142, 27, 144, 84, 75, 201, 0, 86, 246, 206, 32, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 8, 7, 3, 3, 0, 0, 106, 96, 0, 0, 0, 0, 112, 128, 0, 4, 0, 0, 140, 160, 1, 8, 0, 0, 126, 144, 0, 12, 0, 0, 126, 144, 0, 12, 0, 0, 140, 160, 1, 8, 0, 0, 126, 144, 1, 12, 0, 0, 112, 128, 0, 4, 0, 0, 140, 160, 0, 8, 0, 0, 140, 160, 1, 8, 0, 0, 126, 144, 0, 12, 76, 77, 84, 0, 43, 48, 56, 0, 43, 49, 48, 0, 43, 48, 57, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 57, 62, 45, 57, 10}, + + "zoneinfo/Asia/Choibalsan": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 0, 7, 0, 0, 0, 20, 128, 0, 0, 0, 134, 211, 231, 40, 15, 11, 220, 144, 24, 233, 200, 128, 25, 218, 238, 224, 26, 204, 63, 112, 27, 188, 34, 96, 28, 172, 33, 112, 29, 156, 4, 96, 30, 140, 3, 112, 31, 123, 230, 96, 32, 107, 229, 112, 33, 91, 200, 96, 34, 75, 199, 112, 35, 59, 170, 96, 36, 43, 169, 112, 37, 27, 140, 96, 38, 11, 139, 112, 39, 4, 168, 224, 39, 244, 167, 240, 40, 228, 138, 224, 41, 212, 137, 240, 42, 196, 108, 224, 43, 180, 107, 240, 44, 164, 78, 224, 45, 148, 77, 240, 46, 132, 48, 224, 47, 116, 47, 240, 48, 100, 18, 224, 49, 93, 76, 112, 50, 77, 47, 96, 51, 61, 46, 112, 52, 45, 17, 96, 53, 29, 16, 112, 54, 12, 243, 96, 58, 233, 165, 144, 59, 180, 158, 128, 60, 164, 157, 144, 61, 148, 128, 128, 62, 132, 127, 144, 63, 116, 98, 128, 64, 100, 97, 144, 65, 84, 68, 128, 66, 68, 67, 144, 67, 52, 38, 128, 68, 36, 37, 144, 69, 29, 67, 0, 71, 239, 170, 240, 85, 21, 154, 160, 86, 5, 97, 112, 86, 245, 124, 160, 87, 229, 67, 112, 127, 255, 255, 255, 0, 1, 2, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 2, 5, 2, 5, 2, 2, 0, 0, 107, 88, 0, 0, 0, 0, 98, 112, 0, 4, 0, 0, 112, 128, 0, 8, 0, 0, 126, 144, 0, 12, 0, 0, 140, 160, 1, 16, 0, 0, 126, 144, 1, 12, 0, 0, 112, 128, 0, 8, 76, 77, 84, 0, 43, 48, 55, 0, 43, 48, 56, 0, 43, 48, 57, 0, 43, 49, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 56, 62, 45, 56, 10}, + + "zoneinfo/Asia/Chongqing": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 200, 92, 1, 128, 200, 250, 39, 112, 201, 213, 14, 128, 202, 219, 90, 240, 30, 186, 54, 0, 31, 105, 127, 112, 32, 126, 104, 128, 33, 73, 97, 112, 34, 94, 74, 128, 35, 41, 67, 112, 36, 71, 103, 0, 37, 18, 95, 240, 38, 39, 73, 0, 38, 242, 65, 240, 40, 7, 43, 0, 40, 210, 35, 240, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 0, 0, 113, 215, 0, 0, 0, 0, 126, 144, 1, 4, 0, 0, 112, 128, 0, 8, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 45, 56, 10}, + + "zoneinfo/Asia/Chungking": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 200, 92, 1, 128, 200, 250, 39, 112, 201, 213, 14, 128, 202, 219, 90, 240, 30, 186, 54, 0, 31, 105, 127, 112, 32, 126, 104, 128, 33, 73, 97, 112, 34, 94, 74, 128, 35, 41, 67, 112, 36, 71, 103, 0, 37, 18, 95, 240, 38, 39, 73, 0, 38, 242, 65, 240, 40, 7, 43, 0, 40, 210, 35, 240, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 0, 0, 113, 215, 0, 0, 0, 0, 126, 144, 1, 4, 0, 0, 112, 128, 0, 8, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 45, 56, 10}, + + "zoneinfo/Asia/Colombo": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 8, 0, 0, 0, 24, 128, 0, 0, 0, 135, 157, 189, 28, 203, 90, 28, 40, 204, 149, 43, 160, 210, 117, 128, 56, 49, 166, 0, 40, 50, 113, 0, 32, 68, 63, 234, 40, 127, 255, 255, 255, 1, 2, 3, 4, 2, 5, 6, 2, 2, 0, 0, 74, 220, 0, 0, 0, 0, 74, 228, 0, 4, 0, 0, 77, 88, 0, 8, 0, 0, 84, 96, 1, 14, 0, 0, 91, 104, 1, 18, 0, 0, 91, 104, 0, 18, 0, 0, 84, 96, 0, 14, 0, 0, 77, 88, 0, 8, 76, 77, 84, 0, 77, 77, 84, 0, 43, 48, 53, 51, 48, 0, 43, 48, 54, 0, 43, 48, 54, 51, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 53, 51, 48, 62, 45, 53, 58, 51, 48, 10}, + + "zoneinfo/Asia/Dacca": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 6, 0, 0, 0, 28, 128, 0, 0, 0, 202, 219, 134, 176, 204, 5, 113, 24, 204, 149, 50, 168, 221, 168, 210, 152, 74, 59, 196, 16, 75, 60, 216, 144, 127, 255, 255, 255, 1, 2, 3, 2, 4, 5, 4, 4, 0, 0, 84, 196, 0, 0, 0, 0, 82, 208, 0, 4, 0, 0, 91, 104, 0, 8, 0, 0, 77, 88, 0, 14, 0, 0, 84, 96, 0, 20, 0, 0, 98, 112, 1, 24, 76, 77, 84, 0, 72, 77, 84, 0, 43, 48, 54, 51, 48, 0, 43, 48, 53, 51, 48, 0, 43, 48, 54, 0, 43, 48, 55, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 54, 62, 45, 54, 10}, + + "zoneinfo/Asia/Damascus": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 152, 0, 0, 0, 3, 0, 0, 0, 13, 128, 0, 0, 0, 161, 242, 171, 120, 162, 129, 47, 128, 163, 94, 157, 112, 164, 97, 17, 128, 165, 62, 127, 112, 166, 64, 243, 128, 167, 30, 97, 112, 168, 32, 213, 128, 169, 7, 125, 240, 241, 143, 82, 0, 242, 91, 156, 112, 243, 115, 40, 128, 244, 59, 126, 112, 245, 85, 173, 128, 246, 31, 84, 240, 247, 54, 225, 0, 247, 255, 54, 240, 249, 14, 218, 0, 249, 225, 187, 240, 250, 249, 72, 0, 251, 194, 239, 112, 252, 219, 205, 0, 253, 165, 116, 112, 254, 189, 0, 128, 255, 134, 167, 240, 0, 158, 52, 0, 1, 103, 219, 112, 2, 127, 103, 128, 3, 73, 14, 240, 4, 97, 236, 128, 5, 43, 147, 240, 6, 67, 32, 0, 7, 12, 199, 112, 8, 36, 83, 128, 8, 237, 250, 240, 10, 5, 135, 0, 10, 207, 46, 112, 11, 232, 12, 0, 12, 177, 179, 112, 13, 201, 63, 128, 14, 107, 89, 240, 15, 170, 115, 0, 16, 76, 141, 112, 24, 244, 197, 0, 25, 219, 109, 112, 26, 215, 74, 0, 27, 189, 242, 112, 30, 85, 35, 0, 31, 138, 229, 112, 32, 71, 122, 0, 33, 137, 25, 240, 34, 60, 116, 0, 35, 107, 158, 240, 36, 50, 191, 128, 37, 37, 69, 112, 38, 21, 68, 128, 39, 5, 39, 112, 39, 246, 91, 224, 40, 231, 144, 80, 41, 226, 27, 96, 42, 202, 21, 80, 43, 178, 43, 96, 44, 163, 95, 208, 45, 155, 71, 224, 46, 140, 124, 80, 47, 124, 123, 96, 48, 109, 175, 208, 49, 95, 0, 96, 50, 80, 52, 208, 51, 62, 226, 96, 52, 49, 104, 80, 53, 30, 196, 96, 54, 18, 155, 208, 55, 2, 154, 224, 55, 243, 207, 80, 56, 229, 31, 224, 57, 214, 84, 80, 58, 198, 83, 96, 59, 183, 135, 208, 60, 167, 134, 224, 61, 152, 187, 80, 62, 136, 186, 96, 63, 121, 238, 208, 64, 107, 63, 96, 65, 92, 115, 208, 66, 76, 114, 224, 67, 61, 167, 80, 68, 45, 166, 96, 69, 18, 253, 80, 70, 12, 54, 224, 71, 42, 62, 80, 71, 245, 83, 96, 73, 11, 113, 208, 73, 203, 250, 224, 74, 234, 2, 80, 75, 181, 23, 96, 76, 201, 228, 80, 77, 148, 249, 96, 78, 169, 198, 80, 79, 116, 219, 96, 80, 137, 168, 80, 81, 84, 189, 96, 82, 105, 138, 80, 83, 52, 159, 96, 84, 82, 166, 208, 85, 20, 129, 96, 86, 50, 136, 208, 86, 244, 99, 96, 88, 18, 106, 208, 88, 221, 127, 224, 89, 242, 76, 208, 90, 189, 97, 224, 91, 210, 46, 208, 92, 157, 67, 224, 93, 178, 16, 208, 94, 125, 37, 224, 95, 155, 45, 80, 96, 93, 7, 224, 97, 123, 15, 80, 98, 60, 233, 224, 99, 90, 241, 80, 100, 38, 6, 96, 101, 58, 211, 80, 102, 5, 232, 96, 103, 26, 181, 80, 103, 229, 202, 96, 105, 3, 209, 208, 105, 197, 172, 96, 106, 227, 179, 208, 107, 165, 142, 96, 108, 195, 149, 208, 109, 142, 170, 224, 110, 163, 119, 208, 111, 110, 140, 224, 112, 131, 89, 208, 113, 78, 110, 224, 114, 99, 59, 208, 115, 46, 80, 224, 116, 76, 88, 80, 117, 14, 50, 224, 118, 44, 58, 80, 118, 238, 20, 224, 120, 12, 28, 80, 120, 215, 49, 96, 121, 235, 254, 80, 122, 183, 19, 96, 123, 203, 224, 80, 124, 150, 245, 96, 125, 180, 252, 208, 126, 118, 215, 96, 127, 148, 222, 208, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 0, 0, 34, 8, 0, 0, 0, 0, 42, 48, 1, 4, 0, 0, 28, 32, 0, 9, 76, 77, 84, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 0, 0, 0, 0, 0, 0, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 53, 47, 48, 44, 77, 49, 48, 46, 53, 46, 53, 47, 48, 10}, + + "zoneinfo/Asia/Dhaka": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 6, 0, 0, 0, 28, 128, 0, 0, 0, 202, 219, 134, 176, 204, 5, 113, 24, 204, 149, 50, 168, 221, 168, 210, 152, 74, 59, 196, 16, 75, 60, 216, 144, 127, 255, 255, 255, 1, 2, 3, 2, 4, 5, 4, 4, 0, 0, 84, 196, 0, 0, 0, 0, 82, 208, 0, 4, 0, 0, 91, 104, 0, 8, 0, 0, 77, 88, 0, 14, 0, 0, 84, 96, 0, 20, 0, 0, 98, 112, 1, 24, 76, 77, 84, 0, 72, 77, 84, 0, 43, 48, 54, 51, 48, 0, 43, 48, 53, 51, 48, 0, 43, 48, 54, 0, 43, 48, 55, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 54, 62, 45, 54, 10}, + + "zoneinfo/Asia/Dili": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 146, 230, 24, 196, 203, 153, 50, 240, 11, 234, 48, 112, 57, 195, 153, 0, 127, 255, 255, 255, 0, 1, 2, 1, 2, 2, 0, 0, 117, 188, 0, 0, 0, 0, 112, 128, 0, 4, 0, 0, 126, 144, 0, 8, 76, 77, 84, 0, 43, 48, 56, 0, 43, 48, 57, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 57, 62, 45, 57, 10}, + + "zoneinfo/Asia/Dubai": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 161, 242, 153, 168, 127, 255, 255, 255, 0, 1, 1, 0, 0, 51, 216, 0, 0, 0, 0, 56, 64, 0, 4, 76, 77, 84, 0, 43, 48, 52, 0, 0, 0, 0, 0, 10, 60, 43, 48, 52, 62, 45, 52, 10}, + + "zoneinfo/Asia/Dushanbe": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 26, 0, 0, 0, 8, 0, 0, 0, 16, 128, 0, 0, 0, 170, 25, 131, 128, 181, 163, 239, 48, 21, 39, 125, 160, 22, 24, 178, 16, 23, 8, 177, 32, 23, 249, 229, 144, 24, 233, 228, 160, 25, 219, 25, 16, 26, 204, 105, 160, 27, 188, 118, 192, 28, 172, 103, 192, 29, 156, 88, 192, 30, 140, 73, 192, 31, 124, 58, 192, 32, 108, 43, 192, 33, 92, 28, 192, 34, 76, 13, 192, 35, 59, 254, 192, 36, 43, 239, 192, 37, 27, 224, 192, 38, 11, 209, 192, 39, 4, 253, 64, 39, 244, 238, 64, 40, 202, 143, 80, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 7, 0, 0, 64, 128, 0, 0, 0, 0, 70, 80, 0, 4, 0, 0, 98, 112, 1, 8, 0, 0, 84, 96, 0, 12, 0, 0, 84, 96, 0, 12, 0, 0, 98, 112, 1, 8, 0, 0, 84, 96, 1, 12, 0, 0, 70, 80, 0, 4, 76, 77, 84, 0, 43, 48, 53, 0, 43, 48, 55, 0, 43, 48, 54, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 53, 62, 45, 53, 10}, + + "zoneinfo/Asia/Famagusta": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 127, 0, 0, 0, 7, 0, 0, 0, 17, 128, 0, 0, 0, 165, 119, 30, 44, 9, 237, 175, 224, 10, 221, 146, 208, 11, 250, 100, 224, 12, 190, 198, 80, 13, 164, 57, 96, 14, 138, 225, 208, 15, 132, 27, 96, 16, 117, 79, 208, 17, 99, 253, 96, 18, 83, 224, 80, 19, 77, 25, 224, 20, 51, 194, 80, 21, 35, 193, 96, 22, 19, 164, 80, 23, 3, 163, 96, 23, 243, 134, 80, 24, 227, 133, 96, 25, 211, 104, 80, 26, 195, 103, 96, 27, 188, 132, 208, 28, 172, 131, 224, 29, 156, 102, 208, 30, 140, 101, 224, 31, 124, 72, 208, 32, 108, 71, 224, 33, 92, 42, 208, 34, 76, 41, 224, 35, 60, 12, 208, 36, 44, 11, 224, 37, 27, 238, 208, 38, 11, 237, 224, 39, 5, 11, 80, 39, 245, 10, 96, 40, 228, 237, 80, 41, 212, 236, 96, 42, 196, 207, 80, 43, 180, 206, 96, 44, 164, 177, 80, 45, 148, 176, 96, 46, 132, 147, 80, 47, 116, 146, 96, 48, 100, 117, 80, 49, 93, 174, 224, 50, 77, 145, 208, 51, 61, 144, 224, 52, 45, 115, 208, 53, 29, 114, 224, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 87, 208, 127, 208, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 5, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 0, 0, 31, 212, 0, 0, 0, 0, 42, 48, 1, 4, 0, 0, 28, 32, 0, 9, 0, 0, 28, 32, 0, 9, 0, 0, 42, 48, 1, 4, 0, 0, 42, 48, 0, 13, 0, 0, 28, 32, 0, 9, 76, 77, 84, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 43, 48, 51, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 51, 44, 77, 49, 48, 46, 53, 46, 48, 47, 52, 10}, + + "zoneinfo/Asia/Gaza": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 145, 0, 0, 0, 6, 0, 0, 0, 21, 128, 0, 0, 0, 200, 89, 178, 224, 204, 229, 193, 80, 205, 172, 254, 0, 206, 198, 244, 208, 207, 143, 102, 224, 208, 169, 121, 208, 209, 132, 96, 224, 210, 138, 201, 112, 211, 101, 176, 128, 212, 107, 224, 208, 232, 54, 99, 96, 232, 244, 45, 80, 234, 11, 185, 96, 234, 213, 96, 208, 235, 236, 250, 240, 236, 181, 109, 0, 237, 207, 127, 240, 238, 151, 242, 0, 239, 176, 179, 112, 240, 121, 37, 128, 241, 145, 230, 240, 242, 90, 89, 0, 243, 115, 26, 112, 244, 59, 140, 128, 245, 85, 159, 112, 246, 30, 17, 128, 247, 54, 210, 240, 247, 255, 69, 0, 249, 24, 6, 112, 249, 225, 202, 0, 250, 249, 57, 240, 251, 39, 66, 80, 8, 124, 139, 224, 8, 253, 176, 208, 9, 246, 234, 96, 10, 166, 51, 208, 28, 190, 248, 224, 29, 137, 241, 208, 30, 204, 255, 96, 31, 96, 153, 80, 32, 130, 177, 96, 33, 73, 181, 208, 34, 94, 158, 224, 35, 32, 93, 80, 36, 90, 48, 96, 37, 0, 63, 80, 38, 11, 237, 224, 38, 214, 230, 208, 39, 235, 207, 224, 40, 192, 3, 80, 41, 212, 236, 96, 42, 169, 31, 208, 43, 187, 101, 224, 44, 137, 1, 208, 45, 155, 71, 224, 46, 95, 169, 80, 47, 123, 41, 224, 48, 72, 197, 208, 48, 231, 7, 224, 49, 100, 70, 96, 50, 65, 194, 96, 51, 68, 40, 96, 52, 33, 164, 96, 53, 36, 10, 96, 54, 1, 134, 96, 54, 139, 243, 224, 55, 22, 97, 96, 56, 6, 68, 80, 56, 255, 125, 224, 57, 239, 96, 208, 58, 223, 95, 224, 59, 207, 66, 208, 60, 191, 65, 224, 61, 175, 36, 208, 62, 159, 35, 224, 63, 143, 6, 208, 64, 127, 5, 224, 65, 92, 129, 224, 66, 94, 231, 224, 67, 65, 183, 240, 68, 45, 166, 96, 69, 18, 253, 80, 70, 14, 217, 224, 70, 232, 111, 112, 71, 236, 24, 224, 72, 183, 17, 208, 73, 203, 250, 224, 74, 160, 60, 96, 75, 173, 46, 156, 76, 97, 189, 208, 77, 148, 249, 156, 78, 53, 194, 80, 79, 116, 219, 96, 80, 91, 145, 224, 81, 84, 189, 96, 82, 68, 160, 80, 83, 52, 159, 96, 84, 73, 108, 80, 85, 21, 210, 224, 86, 41, 78, 80, 86, 245, 194, 240, 88, 19, 202, 96, 88, 213, 164, 240, 89, 243, 172, 96, 90, 190, 193, 112, 91, 211, 142, 96, 92, 158, 163, 112, 93, 179, 112, 96, 94, 126, 133, 112, 95, 156, 140, 224, 96, 94, 103, 112, 97, 124, 110, 224, 98, 62, 73, 112, 99, 92, 80, 224, 100, 30, 43, 112, 101, 60, 50, 224, 102, 7, 71, 240, 103, 28, 20, 224, 103, 231, 41, 240, 104, 251, 246, 224, 105, 199, 11, 240, 106, 229, 19, 96, 107, 166, 237, 240, 108, 196, 245, 96, 109, 134, 207, 240, 110, 164, 215, 96, 111, 111, 236, 112, 112, 132, 185, 96, 113, 79, 206, 112, 114, 100, 155, 96, 115, 47, 176, 112, 116, 68, 125, 96, 117, 15, 146, 112, 118, 45, 153, 224, 118, 239, 116, 112, 120, 13, 123, 224, 120, 207, 86, 112, 121, 237, 93, 224, 122, 184, 114, 240, 123, 205, 63, 224, 124, 152, 84, 240, 125, 173, 33, 224, 126, 120, 54, 240, 127, 150, 62, 96, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 2, 1, 5, 1, 5, 1, 5, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 0, 0, 32, 80, 0, 0, 0, 0, 42, 48, 1, 4, 0, 0, 28, 32, 0, 9, 0, 0, 42, 48, 1, 13, 0, 0, 28, 32, 0, 17, 0, 0, 28, 32, 0, 9, 76, 77, 84, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 73, 68, 84, 0, 73, 83, 84, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 54, 47, 49, 44, 77, 49, 48, 46, 53, 46, 54, 47, 49, 10}, + + "zoneinfo/Asia/Harbin": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 200, 92, 1, 128, 200, 250, 39, 112, 201, 213, 14, 128, 202, 219, 90, 240, 30, 186, 54, 0, 31, 105, 127, 112, 32, 126, 104, 128, 33, 73, 97, 112, 34, 94, 74, 128, 35, 41, 67, 112, 36, 71, 103, 0, 37, 18, 95, 240, 38, 39, 73, 0, 38, 242, 65, 240, 40, 7, 43, 0, 40, 210, 35, 240, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 0, 0, 113, 215, 0, 0, 0, 0, 126, 144, 1, 4, 0, 0, 112, 128, 0, 8, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 45, 56, 10}, + + "zoneinfo/Asia/Hebron": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 147, 0, 0, 0, 6, 0, 0, 0, 21, 128, 0, 0, 0, 200, 89, 178, 224, 204, 229, 193, 80, 205, 172, 254, 0, 206, 198, 244, 208, 207, 143, 102, 224, 208, 169, 121, 208, 209, 132, 96, 224, 210, 138, 201, 112, 211, 101, 176, 128, 212, 107, 224, 208, 232, 54, 99, 96, 232, 244, 45, 80, 234, 11, 185, 96, 234, 213, 96, 208, 235, 236, 250, 240, 236, 181, 109, 0, 237, 207, 127, 240, 238, 151, 242, 0, 239, 176, 179, 112, 240, 121, 37, 128, 241, 145, 230, 240, 242, 90, 89, 0, 243, 115, 26, 112, 244, 59, 140, 128, 245, 85, 159, 112, 246, 30, 17, 128, 247, 54, 210, 240, 247, 255, 69, 0, 249, 24, 6, 112, 249, 225, 202, 0, 250, 249, 57, 240, 251, 39, 66, 80, 8, 124, 139, 224, 8, 253, 176, 208, 9, 246, 234, 96, 10, 166, 51, 208, 28, 190, 248, 224, 29, 137, 241, 208, 30, 204, 255, 96, 31, 96, 153, 80, 32, 130, 177, 96, 33, 73, 181, 208, 34, 94, 158, 224, 35, 32, 93, 80, 36, 90, 48, 96, 37, 0, 63, 80, 38, 11, 237, 224, 38, 214, 230, 208, 39, 235, 207, 224, 40, 192, 3, 80, 41, 212, 236, 96, 42, 169, 31, 208, 43, 187, 101, 224, 44, 137, 1, 208, 45, 155, 71, 224, 46, 95, 169, 80, 47, 123, 41, 224, 48, 72, 197, 208, 48, 231, 7, 224, 49, 100, 70, 96, 50, 65, 194, 96, 51, 68, 40, 96, 52, 33, 164, 96, 53, 36, 10, 96, 54, 1, 134, 96, 54, 139, 243, 224, 55, 22, 97, 96, 56, 6, 68, 80, 56, 255, 125, 224, 57, 239, 96, 208, 58, 223, 95, 224, 59, 207, 66, 208, 60, 191, 65, 224, 61, 175, 36, 208, 62, 159, 35, 224, 63, 143, 6, 208, 64, 127, 5, 224, 65, 92, 129, 224, 66, 94, 231, 224, 67, 65, 183, 240, 68, 45, 166, 96, 69, 18, 253, 80, 70, 14, 217, 224, 70, 232, 111, 112, 71, 236, 24, 224, 72, 187, 6, 80, 73, 203, 250, 224, 74, 160, 60, 96, 75, 171, 220, 224, 76, 97, 189, 208, 77, 148, 249, 156, 78, 53, 194, 80, 78, 92, 11, 224, 78, 132, 220, 80, 79, 116, 219, 96, 80, 91, 145, 224, 81, 84, 189, 96, 82, 68, 160, 80, 83, 52, 159, 96, 84, 73, 108, 80, 85, 21, 210, 224, 86, 41, 78, 80, 86, 245, 194, 240, 88, 19, 202, 96, 88, 213, 164, 240, 89, 243, 172, 96, 90, 190, 193, 112, 91, 211, 142, 96, 92, 158, 163, 112, 93, 179, 112, 96, 94, 126, 133, 112, 95, 156, 140, 224, 96, 94, 103, 112, 97, 124, 110, 224, 98, 62, 73, 112, 99, 92, 80, 224, 100, 30, 43, 112, 101, 60, 50, 224, 102, 7, 71, 240, 103, 28, 20, 224, 103, 231, 41, 240, 104, 251, 246, 224, 105, 199, 11, 240, 106, 229, 19, 96, 107, 166, 237, 240, 108, 196, 245, 96, 109, 134, 207, 240, 110, 164, 215, 96, 111, 111, 236, 112, 112, 132, 185, 96, 113, 79, 206, 112, 114, 100, 155, 96, 115, 47, 176, 112, 116, 68, 125, 96, 117, 15, 146, 112, 118, 45, 153, 224, 118, 239, 116, 112, 120, 13, 123, 224, 120, 207, 86, 112, 121, 237, 93, 224, 122, 184, 114, 240, 123, 205, 63, 224, 124, 152, 84, 240, 125, 173, 33, 224, 126, 120, 54, 240, 127, 150, 62, 96, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 2, 1, 5, 1, 5, 1, 5, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 0, 0, 32, 231, 0, 0, 0, 0, 42, 48, 1, 4, 0, 0, 28, 32, 0, 9, 0, 0, 42, 48, 1, 13, 0, 0, 28, 32, 0, 17, 0, 0, 28, 32, 0, 9, 76, 77, 84, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 73, 68, 84, 0, 73, 83, 84, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 54, 47, 49, 44, 77, 49, 48, 46, 53, 46, 54, 47, 49, 10}, + + "zoneinfo/Asia/Ho_Chi_Minh": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 6, 0, 0, 0, 21, 128, 0, 0, 0, 136, 140, 67, 128, 145, 163, 43, 10, 205, 53, 230, 128, 209, 89, 206, 112, 210, 59, 62, 240, 213, 50, 187, 16, 228, 182, 228, 128, 237, 47, 152, 0, 10, 61, 199, 0, 127, 255, 255, 255, 0, 1, 2, 3, 4, 2, 3, 2, 3, 2, 2, 0, 0, 100, 0, 0, 0, 0, 0, 99, 246, 0, 4, 0, 0, 98, 112, 0, 9, 0, 0, 112, 128, 0, 13, 0, 0, 126, 144, 0, 17, 0, 0, 98, 112, 0, 9, 76, 77, 84, 0, 80, 76, 77, 84, 0, 43, 48, 55, 0, 43, 48, 56, 0, 43, 48, 57, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 55, 62, 45, 55, 10}, + + "zoneinfo/Asia/Hong_Kong": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 70, 0, 0, 0, 5, 0, 0, 0, 17, 128, 0, 0, 0, 133, 105, 90, 246, 201, 234, 87, 184, 202, 218, 58, 168, 203, 75, 120, 128, 210, 76, 98, 112, 211, 106, 183, 56, 212, 147, 74, 168, 213, 66, 176, 56, 214, 154, 185, 168, 215, 62, 65, 184, 216, 46, 36, 168, 216, 249, 57, 184, 218, 14, 6, 168, 218, 217, 27, 184, 219, 237, 232, 168, 220, 184, 253, 184, 221, 205, 202, 168, 222, 162, 26, 56, 223, 172, 91, 40, 224, 129, 252, 56, 225, 150, 201, 40, 226, 79, 105, 56, 227, 118, 171, 40, 228, 47, 75, 56, 229, 95, 199, 168, 230, 15, 45, 56, 231, 63, 169, 168, 231, 248, 73, 184, 233, 31, 139, 168, 233, 216, 43, 184, 234, 255, 109, 168, 235, 184, 13, 184, 236, 223, 79, 168, 237, 151, 239, 184, 238, 200, 108, 40, 239, 119, 209, 184, 240, 168, 78, 40, 241, 87, 179, 184, 242, 136, 48, 40, 243, 64, 208, 56, 244, 104, 18, 40, 245, 32, 178, 56, 246, 71, 244, 40, 247, 37, 126, 56, 248, 21, 97, 40, 249, 5, 96, 56, 249, 245, 67, 40, 250, 229, 66, 56, 251, 222, 95, 168, 252, 206, 94, 184, 253, 190, 65, 168, 254, 174, 64, 184, 255, 158, 35, 168, 0, 142, 34, 184, 1, 126, 5, 168, 2, 110, 4, 184, 3, 93, 231, 168, 4, 77, 230, 184, 5, 71, 4, 40, 6, 55, 3, 56, 7, 38, 230, 40, 7, 131, 61, 56, 9, 6, 200, 40, 9, 246, 199, 56, 10, 230, 170, 40, 11, 214, 169, 56, 12, 198, 140, 40, 17, 155, 57, 56, 18, 111, 108, 168, 0, 2, 1, 2, 3, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 0, 0, 107, 10, 0, 0, 0, 0, 126, 144, 1, 4, 0, 0, 112, 128, 0, 9, 0, 0, 126, 144, 0, 13, 0, 0, 112, 128, 0, 9, 76, 77, 84, 0, 72, 75, 83, 84, 0, 72, 75, 84, 0, 74, 83, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 72, 75, 84, 45, 56, 10}, + + "zoneinfo/Asia/Hovd": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 0, 4, 0, 0, 0, 16, 128, 0, 0, 0, 134, 211, 252, 148, 15, 11, 234, 160, 24, 233, 214, 144, 25, 219, 11, 0, 26, 204, 91, 144, 27, 188, 62, 128, 28, 172, 61, 144, 29, 156, 32, 128, 30, 140, 31, 144, 31, 124, 2, 128, 32, 108, 1, 144, 33, 91, 228, 128, 34, 75, 227, 144, 35, 59, 198, 128, 36, 43, 197, 144, 37, 27, 168, 128, 38, 11, 167, 144, 39, 4, 197, 0, 39, 244, 196, 16, 40, 228, 167, 0, 41, 212, 166, 16, 42, 196, 137, 0, 43, 180, 136, 16, 44, 164, 107, 0, 45, 148, 106, 16, 46, 132, 77, 0, 47, 116, 76, 16, 48, 100, 47, 0, 49, 93, 104, 144, 50, 77, 75, 128, 51, 61, 74, 144, 52, 45, 45, 128, 53, 29, 44, 144, 54, 13, 15, 128, 58, 233, 193, 176, 59, 180, 186, 160, 60, 164, 185, 176, 61, 148, 156, 160, 62, 132, 155, 176, 63, 116, 126, 160, 64, 100, 125, 176, 65, 84, 96, 160, 66, 68, 95, 176, 67, 52, 66, 160, 68, 36, 65, 176, 69, 29, 95, 32, 85, 21, 168, 176, 86, 5, 111, 128, 86, 245, 138, 176, 87, 229, 81, 128, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 3, 0, 0, 85, 236, 0, 0, 0, 0, 84, 96, 0, 4, 0, 0, 112, 128, 1, 8, 0, 0, 98, 112, 0, 12, 76, 77, 84, 0, 43, 48, 54, 0, 43, 48, 56, 0, 43, 48, 55, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 55, 62, 45, 55, 10}, + + "zoneinfo/Asia/Irkutsk": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 67, 0, 0, 0, 12, 0, 0, 0, 20, 128, 0, 0, 0, 162, 18, 15, 191, 181, 163, 211, 16, 21, 39, 97, 128, 22, 24, 149, 240, 23, 8, 149, 0, 23, 249, 201, 112, 24, 233, 200, 128, 25, 218, 252, 240, 26, 204, 77, 128, 27, 188, 90, 160, 28, 172, 75, 160, 29, 156, 60, 160, 30, 140, 45, 160, 31, 124, 30, 160, 32, 108, 15, 160, 33, 92, 0, 160, 34, 75, 241, 160, 35, 59, 226, 160, 36, 43, 211, 160, 37, 27, 196, 160, 38, 11, 181, 160, 39, 4, 225, 32, 39, 244, 210, 32, 40, 228, 209, 48, 41, 120, 121, 48, 41, 212, 180, 32, 42, 196, 165, 32, 43, 180, 150, 32, 44, 164, 135, 32, 45, 148, 120, 32, 46, 132, 105, 32, 47, 116, 90, 32, 48, 100, 75, 32, 49, 93, 118, 160, 50, 114, 81, 160, 51, 61, 88, 160, 52, 82, 51, 160, 53, 29, 58, 160, 54, 50, 21, 160, 54, 253, 28, 160, 56, 27, 50, 32, 56, 220, 254, 160, 57, 251, 20, 32, 58, 188, 224, 160, 59, 218, 246, 32, 60, 165, 253, 32, 61, 186, 216, 32, 62, 133, 223, 32, 63, 154, 186, 32, 64, 101, 193, 32, 65, 131, 214, 160, 66, 69, 163, 32, 67, 99, 184, 160, 68, 37, 133, 32, 69, 67, 154, 160, 70, 5, 103, 32, 71, 35, 124, 160, 71, 238, 131, 160, 73, 3, 94, 160, 73, 206, 101, 160, 74, 227, 64, 160, 75, 174, 71, 160, 76, 204, 93, 32, 77, 142, 41, 160, 84, 75, 215, 16, 127, 255, 255, 255, 1, 2, 4, 3, 4, 3, 4, 3, 4, 3, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 7, 8, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 9, 5, 5, 0, 0, 97, 193, 0, 0, 0, 0, 97, 193, 0, 4, 0, 0, 98, 112, 0, 8, 0, 0, 126, 144, 1, 12, 0, 0, 112, 128, 0, 16, 0, 0, 112, 128, 0, 16, 0, 0, 126, 144, 1, 12, 0, 0, 112, 128, 1, 16, 0, 0, 98, 112, 0, 8, 0, 0, 126, 144, 0, 12, 0, 0, 126, 144, 1, 12, 0, 0, 112, 128, 0, 16, 76, 77, 84, 0, 73, 77, 84, 0, 43, 48, 55, 0, 43, 48, 57, 0, 43, 48, 56, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 56, 62, 45, 56, 10}, + + "zoneinfo/Asia/Istanbul": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 131, 0, 0, 0, 11, 0, 0, 0, 25, 128, 0, 0, 0, 144, 139, 245, 152, 155, 12, 23, 96, 155, 213, 190, 208, 162, 101, 99, 224, 163, 123, 130, 80, 164, 78, 128, 96, 165, 63, 180, 208, 166, 37, 39, 224, 167, 39, 127, 208, 170, 40, 40, 96, 170, 225, 253, 208, 171, 249, 137, 224, 172, 195, 49, 80, 200, 127, 238, 96, 200, 255, 193, 208, 201, 74, 245, 96, 202, 206, 128, 80, 203, 203, 174, 96, 204, 229, 193, 80, 209, 113, 235, 224, 210, 107, 9, 80, 211, 162, 57, 96, 212, 67, 2, 80, 213, 76, 13, 224, 214, 41, 123, 208, 215, 43, 239, 224, 216, 9, 93, 208, 217, 2, 151, 96, 217, 233, 63, 208, 218, 239, 168, 96, 219, 210, 92, 80, 220, 212, 208, 96, 221, 179, 143, 208, 241, 244, 185, 96, 242, 100, 186, 208, 245, 104, 6, 96, 246, 31, 56, 208, 0, 160, 186, 224, 1, 107, 179, 208, 2, 128, 156, 224, 3, 75, 149, 208, 4, 105, 185, 96, 5, 52, 178, 80, 6, 110, 147, 112, 7, 57, 168, 128, 7, 251, 117, 0, 9, 25, 166, 160, 9, 219, 58, 224, 10, 240, 7, 208, 12, 16, 206, 96, 12, 217, 36, 80, 13, 164, 57, 96, 14, 166, 145, 80, 15, 132, 27, 96, 16, 134, 115, 80, 18, 103, 152, 192, 19, 77, 54, 0, 20, 71, 122, 192, 21, 35, 221, 128, 22, 39, 92, 192, 23, 3, 191, 128, 24, 7, 62, 192, 25, 137, 148, 80, 25, 220, 148, 192, 28, 198, 211, 208, 29, 155, 21, 80, 30, 140, 115, 240, 31, 124, 100, 240, 32, 108, 85, 240, 33, 92, 70, 240, 34, 76, 55, 240, 35, 60, 40, 240, 36, 44, 25, 240, 37, 28, 10, 240, 38, 11, 251, 240, 39, 5, 39, 112, 39, 245, 24, 112, 40, 229, 9, 112, 41, 212, 250, 112, 42, 196, 235, 112, 43, 180, 220, 112, 44, 164, 205, 112, 45, 139, 131, 240, 46, 132, 175, 112, 47, 116, 160, 112, 48, 100, 145, 112, 49, 93, 188, 240, 50, 114, 151, 240, 51, 61, 158, 240, 52, 82, 121, 240, 53, 29, 128, 240, 54, 50, 91, 240, 54, 253, 98, 240, 56, 27, 120, 112, 56, 221, 68, 240, 57, 251, 90, 112, 58, 189, 38, 240, 59, 219, 60, 112, 60, 166, 67, 112, 61, 187, 30, 112, 62, 134, 37, 112, 63, 155, 0, 112, 64, 102, 7, 112, 65, 132, 28, 240, 66, 69, 233, 112, 67, 99, 254, 240, 68, 37, 203, 112, 69, 67, 224, 240, 69, 152, 50, 224, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 143, 221, 144, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 56, 190, 16, 84, 76, 71, 144, 85, 23, 78, 144, 86, 62, 158, 144, 86, 247, 48, 144, 87, 207, 46, 80, 127, 255, 255, 255, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 2, 3, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 3, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 5, 5, 0, 0, 27, 40, 0, 0, 0, 0, 27, 104, 0, 4, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 13, 0, 0, 56, 64, 1, 17, 0, 0, 42, 48, 0, 21, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 13, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 13, 0, 0, 42, 48, 0, 21, 76, 77, 84, 0, 73, 77, 84, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 43, 48, 52, 0, 43, 48, 51, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 10, 60, 43, 48, 51, 62, 45, 51, 10}, + + "zoneinfo/Asia/Jakarta": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 7, 0, 0, 0, 32, 128, 0, 0, 0, 169, 120, 133, 224, 186, 22, 222, 96, 203, 191, 131, 136, 210, 86, 238, 112, 215, 60, 198, 8, 218, 255, 38, 0, 244, 181, 190, 136, 1, 2, 3, 4, 3, 5, 3, 6, 0, 0, 100, 32, 0, 0, 0, 0, 100, 32, 0, 4, 0, 0, 103, 32, 0, 8, 0, 0, 105, 120, 0, 14, 0, 0, 126, 144, 0, 20, 0, 0, 112, 128, 0, 24, 0, 0, 98, 112, 0, 28, 76, 77, 84, 0, 66, 77, 84, 0, 43, 48, 55, 50, 48, 0, 43, 48, 55, 51, 48, 0, 43, 48, 57, 0, 43, 48, 56, 0, 87, 73, 66, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 87, 73, 66, 45, 55, 10}, + + "zoneinfo/Asia/Jayapura": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 18, 128, 0, 0, 0, 186, 22, 193, 152, 208, 88, 185, 240, 244, 181, 162, 104, 0, 1, 2, 3, 0, 0, 131, 232, 0, 0, 0, 0, 126, 144, 0, 4, 0, 0, 133, 152, 0, 8, 0, 0, 126, 144, 0, 14, 76, 77, 84, 0, 43, 48, 57, 0, 43, 48, 57, 51, 48, 0, 87, 73, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 87, 73, 84, 45, 57, 10}, + + "zoneinfo/Asia/Jerusalem": []byte{84, 90, 105, 102, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 143, 0, 0, 0, 6, 0, 0, 0, 21, 128, 0, 0, 0, 158, 48, 69, 136, 200, 89, 178, 224, 204, 229, 193, 80, 205, 172, 254, 0, 206, 198, 244, 208, 207, 143, 102, 224, 208, 169, 121, 208, 209, 132, 96, 224, 210, 138, 201, 112, 211, 101, 176, 128, 212, 107, 224, 208, 215, 90, 20, 96, 215, 223, 31, 192, 216, 47, 181, 112, 217, 30, 70, 224, 218, 16, 232, 240, 218, 235, 179, 224, 219, 180, 52, 0, 220, 185, 32, 224, 221, 224, 141, 0, 222, 180, 206, 128, 223, 164, 191, 128, 224, 139, 118, 0, 225, 86, 125, 0, 226, 190, 74, 96, 227, 54, 52, 208, 228, 156, 247, 0, 229, 22, 22, 208, 230, 116, 211, 224, 231, 17, 210, 128, 232, 39, 255, 0, 232, 232, 79, 208, 8, 124, 139, 224, 8, 253, 176, 208, 9, 246, 234, 96, 10, 166, 51, 208, 28, 190, 248, 224, 29, 137, 241, 208, 30, 204, 255, 96, 31, 96, 153, 80, 32, 130, 177, 96, 33, 73, 181, 208, 34, 94, 158, 224, 35, 32, 93, 80, 36, 90, 48, 96, 37, 0, 63, 80, 38, 11, 237, 224, 38, 214, 230, 208, 39, 235, 207, 224, 40, 192, 3, 80, 41, 212, 236, 96, 42, 169, 31, 208, 43, 187, 101, 224, 44, 137, 1, 208, 45, 155, 71, 224, 46, 95, 169, 80, 47, 123, 41, 224, 48, 72, 197, 208, 49, 72, 150, 224, 50, 60, 110, 80, 51, 49, 179, 96, 52, 26, 254, 208, 53, 17, 149, 96, 53, 241, 166, 80, 55, 4, 8, 128, 55, 207, 1, 112, 56, 246, 95, 128, 57, 220, 249, 224, 58, 208, 237, 112, 59, 174, 91, 96, 60, 163, 160, 112, 61, 160, 178, 96, 62, 131, 130, 112, 63, 124, 159, 224, 64, 115, 54, 112, 65, 80, 164, 96, 66, 76, 143, 0, 67, 72, 79, 112, 68, 44, 113, 0, 69, 30, 246, 240, 70, 12, 83, 0, 70, 236, 99, 240, 71, 236, 53, 0, 72, 231, 245, 112, 73, 204, 23, 0, 74, 190, 156, 240, 75, 171, 249, 0, 76, 140, 9, 240, 77, 149, 21, 128, 78, 135, 155, 112, 79, 116, 247, 128, 80, 94, 66, 240, 81, 84, 217, 128, 82, 108, 73, 112, 83, 52, 187, 128, 84, 76, 43, 112, 85, 20, 157, 128, 86, 44, 13, 112, 86, 244, 127, 128, 88, 21, 41, 240, 88, 212, 97, 128, 89, 245, 11, 240, 90, 180, 67, 128, 91, 212, 237, 240, 92, 157, 96, 0, 93, 180, 207, 240, 94, 125, 66, 0, 95, 148, 177, 240, 96, 93, 36, 0, 97, 125, 206, 112, 98, 61, 6, 0, 99, 93, 176, 112, 100, 28, 232, 0, 101, 61, 146, 112, 102, 6, 4, 128, 103, 29, 116, 112, 103, 229, 230, 128, 104, 253, 86, 112, 105, 197, 200, 128, 106, 221, 56, 112, 107, 165, 170, 128, 108, 198, 84, 240, 109, 133, 140, 128, 110, 166, 54, 240, 111, 101, 110, 128, 112, 134, 24, 240, 113, 78, 139, 0, 114, 101, 250, 240, 115, 46, 109, 0, 116, 69, 220, 240, 117, 14, 79, 0, 118, 46, 249, 112, 118, 238, 49, 0, 120, 14, 219, 112, 120, 206, 19, 0, 121, 238, 189, 112, 122, 173, 245, 0, 123, 206, 159, 112, 124, 151, 17, 128, 125, 174, 129, 112, 126, 118, 243, 128, 127, 142, 99, 112, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 4, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 0, 0, 33, 6, 0, 0, 0, 0, 32, 248, 0, 4, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 12, 0, 0, 56, 64, 1, 16, 0, 0, 42, 48, 1, 8, 76, 77, 84, 0, 74, 77, 84, 0, 73, 68, 84, 0, 73, 83, 84, 0, 73, 68, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 73, 83, 84, 45, 50, 73, 68, 84, 44, 77, 51, 46, 52, 46, 52, 47, 50, 54, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/Asia/Kabul": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 14, 128, 0, 0, 0, 208, 249, 215, 64, 127, 255, 255, 255, 1, 2, 2, 0, 0, 64, 224, 0, 0, 0, 0, 56, 64, 0, 4, 0, 0, 63, 72, 0, 8, 76, 77, 84, 0, 43, 48, 52, 0, 43, 48, 52, 51, 48, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 52, 51, 48, 62, 45, 52, 58, 51, 48, 10}, + + "zoneinfo/Asia/Kamchatka": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 66, 0, 0, 0, 9, 0, 0, 0, 16, 128, 0, 0, 0, 167, 82, 150, 196, 181, 163, 154, 208, 21, 39, 41, 64, 22, 24, 93, 176, 23, 8, 92, 192, 23, 249, 145, 48, 24, 233, 144, 64, 25, 218, 196, 176, 26, 204, 21, 64, 27, 188, 34, 96, 28, 172, 19, 96, 29, 156, 4, 96, 30, 139, 245, 96, 31, 123, 230, 96, 32, 107, 215, 96, 33, 91, 200, 96, 34, 75, 185, 96, 35, 59, 170, 96, 36, 43, 155, 96, 37, 27, 140, 96, 38, 11, 125, 96, 39, 4, 168, 224, 39, 244, 153, 224, 40, 228, 152, 240, 41, 120, 64, 240, 41, 212, 123, 224, 42, 196, 108, 224, 43, 180, 93, 224, 44, 164, 78, 224, 45, 148, 63, 224, 46, 132, 48, 224, 47, 116, 33, 224, 48, 100, 18, 224, 49, 93, 62, 96, 50, 114, 25, 96, 51, 61, 32, 96, 52, 81, 251, 96, 53, 29, 2, 96, 54, 49, 221, 96, 54, 252, 228, 96, 56, 26, 249, 224, 56, 220, 198, 96, 57, 250, 219, 224, 58, 188, 168, 96, 59, 218, 189, 224, 60, 165, 196, 224, 61, 186, 159, 224, 62, 133, 166, 224, 63, 154, 129, 224, 64, 101, 136, 224, 65, 131, 158, 96, 66, 69, 106, 224, 67, 99, 128, 96, 68, 37, 76, 224, 69, 67, 98, 96, 70, 5, 46, 224, 71, 35, 68, 96, 71, 238, 75, 96, 73, 3, 38, 96, 73, 206, 45, 96, 74, 227, 8, 96, 75, 174, 15, 96, 76, 204, 50, 240, 77, 141, 255, 112, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 4, 4, 0, 0, 148, 188, 0, 0, 0, 0, 154, 176, 0, 4, 0, 0, 182, 208, 1, 8, 0, 0, 168, 192, 0, 12, 0, 0, 168, 192, 0, 12, 0, 0, 182, 208, 1, 8, 0, 0, 168, 192, 1, 12, 0, 0, 154, 176, 0, 4, 0, 0, 168, 192, 0, 12, 76, 77, 84, 0, 43, 49, 49, 0, 43, 49, 51, 0, 43, 49, 50, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 50, 62, 45, 49, 50, 10}, + + "zoneinfo/Asia/Karachi": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 6, 0, 0, 0, 29, 128, 0, 0, 0, 137, 126, 252, 164, 204, 149, 50, 168, 210, 116, 18, 152, 221, 168, 224, 168, 2, 79, 171, 48, 60, 175, 69, 176, 61, 159, 40, 160, 72, 65, 160, 48, 73, 11, 71, 160, 73, 228, 221, 48, 74, 236, 123, 32, 0, 1, 2, 1, 3, 5, 4, 5, 4, 5, 4, 5, 0, 0, 62, 220, 0, 0, 0, 0, 77, 88, 0, 4, 0, 0, 91, 104, 1, 10, 0, 0, 70, 80, 0, 16, 0, 0, 84, 96, 1, 20, 0, 0, 70, 80, 0, 25, 76, 77, 84, 0, 43, 48, 53, 51, 48, 0, 43, 48, 54, 51, 48, 0, 43, 48, 53, 0, 80, 75, 83, 84, 0, 80, 75, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 80, 75, 84, 45, 53, 10}, + + "zoneinfo/Asia/Kashgar": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 176, 254, 186, 100, 127, 255, 255, 255, 0, 1, 1, 0, 0, 82, 28, 0, 0, 0, 0, 84, 96, 0, 4, 76, 77, 84, 0, 43, 48, 54, 0, 0, 0, 0, 0, 10, 60, 43, 48, 54, 62, 45, 54, 10}, + + "zoneinfo/Asia/Kathmandu": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 3, 0, 0, 0, 16, 128, 0, 0, 0, 161, 242, 125, 132, 30, 24, 48, 168, 127, 255, 255, 255, 0, 1, 2, 2, 0, 0, 79, 252, 0, 0, 0, 0, 77, 88, 0, 4, 0, 0, 80, 220, 0, 10, 76, 77, 84, 0, 43, 48, 53, 51, 48, 0, 43, 48, 53, 52, 53, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 53, 52, 53, 62, 45, 53, 58, 52, 53, 10}, + + "zoneinfo/Asia/Katmandu": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 3, 0, 0, 0, 16, 128, 0, 0, 0, 161, 242, 125, 132, 30, 24, 48, 168, 127, 255, 255, 255, 0, 1, 2, 2, 0, 0, 79, 252, 0, 0, 0, 0, 77, 88, 0, 4, 0, 0, 80, 220, 0, 10, 76, 77, 84, 0, 43, 48, 53, 51, 48, 0, 43, 48, 53, 52, 53, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 53, 52, 53, 62, 45, 53, 58, 52, 53, 10}, + + "zoneinfo/Asia/Khandyga": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 69, 0, 0, 0, 13, 0, 0, 0, 20, 128, 0, 0, 0, 161, 219, 228, 235, 181, 163, 197, 0, 21, 39, 83, 112, 22, 24, 135, 224, 23, 8, 134, 240, 23, 249, 187, 96, 24, 233, 186, 112, 25, 218, 238, 224, 26, 204, 63, 112, 27, 188, 76, 144, 28, 172, 61, 144, 29, 156, 46, 144, 30, 140, 31, 144, 31, 124, 16, 144, 32, 108, 1, 144, 33, 91, 242, 144, 34, 75, 227, 144, 35, 59, 212, 144, 36, 43, 197, 144, 37, 27, 182, 144, 38, 11, 167, 144, 39, 4, 211, 16, 39, 244, 196, 16, 40, 228, 195, 32, 41, 120, 107, 32, 41, 212, 166, 16, 42, 196, 151, 16, 43, 180, 136, 16, 44, 164, 121, 16, 45, 148, 106, 16, 46, 132, 91, 16, 47, 116, 76, 16, 48, 100, 61, 16, 49, 93, 104, 144, 50, 114, 67, 144, 51, 61, 74, 144, 52, 82, 37, 144, 53, 29, 44, 144, 54, 50, 7, 144, 54, 253, 14, 144, 56, 27, 36, 16, 56, 220, 240, 144, 57, 251, 6, 16, 58, 188, 210, 144, 59, 218, 232, 16, 60, 165, 239, 16, 61, 186, 202, 16, 62, 133, 209, 16, 63, 154, 172, 16, 63, 242, 228, 112, 64, 101, 165, 0, 65, 131, 186, 128, 66, 69, 135, 0, 67, 99, 156, 128, 68, 37, 105, 0, 69, 67, 126, 128, 70, 5, 75, 0, 71, 35, 96, 128, 71, 238, 103, 128, 73, 3, 66, 128, 73, 206, 73, 128, 74, 227, 36, 128, 75, 174, 43, 128, 76, 204, 65, 0, 77, 142, 13, 128, 78, 110, 2, 80, 84, 75, 201, 0, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 10, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 11, 9, 4, 4, 0, 0, 127, 21, 0, 0, 0, 0, 112, 128, 0, 4, 0, 0, 140, 160, 1, 8, 0, 0, 126, 144, 0, 12, 0, 0, 126, 144, 0, 12, 0, 0, 140, 160, 1, 8, 0, 0, 126, 144, 1, 12, 0, 0, 112, 128, 0, 4, 0, 0, 154, 176, 1, 16, 0, 0, 140, 160, 0, 8, 0, 0, 140, 160, 0, 8, 0, 0, 154, 176, 0, 16, 0, 0, 126, 144, 0, 12, 76, 77, 84, 0, 43, 48, 56, 0, 43, 49, 48, 0, 43, 48, 57, 0, 43, 49, 49, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 57, 62, 45, 57, 10}, + + "zoneinfo/Asia/Kolkata": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 4, 0, 0, 0, 18, 128, 0, 0, 0, 135, 157, 188, 186, 202, 219, 140, 40, 204, 5, 113, 24, 204, 149, 50, 168, 210, 116, 18, 152, 1, 2, 3, 2, 3, 2, 0, 0, 82, 208, 0, 0, 0, 0, 75, 70, 0, 4, 0, 0, 77, 88, 0, 8, 0, 0, 91, 104, 1, 12, 72, 77, 84, 0, 77, 77, 84, 0, 73, 83, 84, 0, 43, 48, 54, 51, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 73, 83, 84, 45, 53, 58, 51, 48, 10}, + + "zoneinfo/Asia/Krasnoyarsk": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 67, 0, 0, 0, 11, 0, 0, 0, 16, 128, 0, 0, 0, 161, 249, 13, 242, 181, 163, 225, 32, 21, 39, 111, 144, 22, 24, 164, 0, 23, 8, 163, 16, 23, 249, 215, 128, 24, 233, 214, 144, 25, 219, 11, 0, 26, 204, 91, 144, 27, 188, 104, 176, 28, 172, 89, 176, 29, 156, 74, 176, 30, 140, 59, 176, 31, 124, 44, 176, 32, 108, 29, 176, 33, 92, 14, 176, 34, 75, 255, 176, 35, 59, 240, 176, 36, 43, 225, 176, 37, 27, 210, 176, 38, 11, 195, 176, 39, 4, 239, 48, 39, 244, 224, 48, 40, 228, 223, 64, 41, 120, 135, 64, 41, 212, 194, 48, 42, 196, 179, 48, 43, 180, 164, 48, 44, 164, 149, 48, 45, 148, 134, 48, 46, 132, 119, 48, 47, 116, 104, 48, 48, 100, 89, 48, 49, 93, 132, 176, 50, 114, 95, 176, 51, 61, 102, 176, 52, 82, 65, 176, 53, 29, 72, 176, 54, 50, 35, 176, 54, 253, 42, 176, 56, 27, 64, 48, 56, 221, 12, 176, 57, 251, 34, 48, 58, 188, 238, 176, 59, 219, 4, 48, 60, 166, 11, 48, 61, 186, 230, 48, 62, 133, 237, 48, 63, 154, 200, 48, 64, 101, 207, 48, 65, 131, 228, 176, 66, 69, 177, 48, 67, 99, 198, 176, 68, 37, 147, 48, 69, 67, 168, 176, 70, 5, 117, 48, 71, 35, 138, 176, 71, 238, 145, 176, 73, 3, 108, 176, 73, 206, 115, 176, 74, 227, 78, 176, 75, 174, 85, 176, 76, 204, 107, 48, 77, 142, 55, 176, 84, 75, 229, 32, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 8, 4, 4, 0, 0, 87, 14, 0, 0, 0, 0, 84, 96, 0, 4, 0, 0, 112, 128, 1, 8, 0, 0, 98, 112, 0, 12, 0, 0, 98, 112, 0, 12, 0, 0, 112, 128, 1, 8, 0, 0, 98, 112, 1, 12, 0, 0, 84, 96, 0, 4, 0, 0, 112, 128, 0, 8, 0, 0, 112, 128, 1, 8, 0, 0, 98, 112, 0, 12, 76, 77, 84, 0, 43, 48, 54, 0, 43, 48, 56, 0, 43, 48, 55, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 55, 62, 45, 55, 10}, + + "zoneinfo/Asia/Kuala_Lumpur": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 8, 0, 0, 0, 32, 128, 0, 0, 0, 134, 131, 133, 163, 186, 103, 78, 144, 192, 10, 228, 96, 202, 179, 229, 96, 203, 145, 95, 8, 210, 72, 109, 240, 22, 145, 245, 8, 127, 255, 255, 255, 1, 2, 3, 4, 5, 6, 5, 7, 7, 0, 0, 95, 86, 0, 0, 0, 0, 97, 93, 0, 4, 0, 0, 98, 112, 0, 8, 0, 0, 103, 32, 1, 12, 0, 0, 103, 32, 0, 12, 0, 0, 105, 120, 0, 18, 0, 0, 126, 144, 0, 24, 0, 0, 112, 128, 0, 28, 76, 77, 84, 0, 83, 77, 84, 0, 43, 48, 55, 0, 43, 48, 55, 50, 48, 0, 43, 48, 55, 51, 48, 0, 43, 48, 57, 0, 43, 48, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 56, 62, 45, 56, 10}, + + "zoneinfo/Asia/Kuching": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 6, 0, 0, 0, 24, 128, 0, 0, 0, 173, 138, 6, 144, 186, 103, 71, 136, 191, 123, 39, 128, 191, 243, 27, 80, 193, 93, 172, 128, 193, 213, 160, 80, 195, 62, 224, 0, 195, 182, 211, 208, 197, 32, 19, 128, 197, 152, 7, 80, 199, 1, 71, 0, 199, 121, 58, 208, 200, 227, 204, 0, 201, 91, 191, 208, 202, 196, 255, 128, 203, 60, 243, 80, 203, 145, 88, 0, 210, 72, 109, 240, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 4, 3, 3, 0, 0, 103, 112, 0, 0, 0, 0, 105, 120, 0, 4, 0, 0, 117, 48, 1, 10, 0, 0, 112, 128, 0, 16, 0, 0, 126, 144, 0, 20, 0, 0, 112, 128, 0, 16, 76, 77, 84, 0, 43, 48, 55, 51, 48, 0, 43, 48, 56, 50, 48, 0, 43, 48, 56, 0, 43, 48, 57, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 56, 62, 45, 56, 10}, + + "zoneinfo/Asia/Kuwait": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 213, 27, 54, 180, 127, 255, 255, 255, 0, 1, 1, 0, 0, 43, 204, 0, 0, 0, 0, 42, 48, 0, 4, 76, 77, 84, 0, 43, 48, 51, 0, 0, 0, 0, 0, 10, 60, 43, 48, 51, 62, 45, 51, 10}, + + "zoneinfo/Asia/Macao": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 146, 230, 36, 4, 239, 119, 209, 184, 240, 168, 78, 40, 241, 87, 179, 184, 242, 136, 48, 40, 243, 55, 100, 128, 244, 104, 18, 40, 245, 32, 178, 56, 246, 71, 244, 40, 247, 0, 99, 0, 248, 39, 164, 240, 249, 5, 96, 56, 249, 245, 67, 40, 250, 229, 66, 56, 251, 222, 95, 168, 252, 206, 94, 184, 253, 190, 65, 168, 254, 174, 64, 184, 255, 158, 35, 168, 0, 142, 34, 184, 1, 126, 5, 168, 2, 110, 4, 184, 3, 93, 231, 168, 4, 77, 181, 128, 5, 61, 152, 112, 6, 45, 151, 128, 7, 38, 180, 240, 8, 22, 180, 0, 9, 6, 200, 40, 9, 246, 199, 56, 10, 230, 170, 40, 11, 214, 169, 56, 12, 198, 140, 40, 13, 182, 139, 56, 14, 166, 110, 40, 15, 150, 60, 0, 16, 134, 30, 240, 17, 118, 30, 0, 18, 111, 59, 112, 19, 95, 58, 128, 20, 79, 29, 112, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 0, 0, 106, 124, 0, 0, 0, 0, 126, 144, 1, 4, 0, 0, 112, 128, 0, 8, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 45, 56, 10}, + + "zoneinfo/Asia/Macau": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 146, 230, 36, 4, 239, 119, 209, 184, 240, 168, 78, 40, 241, 87, 179, 184, 242, 136, 48, 40, 243, 55, 100, 128, 244, 104, 18, 40, 245, 32, 178, 56, 246, 71, 244, 40, 247, 0, 99, 0, 248, 39, 164, 240, 249, 5, 96, 56, 249, 245, 67, 40, 250, 229, 66, 56, 251, 222, 95, 168, 252, 206, 94, 184, 253, 190, 65, 168, 254, 174, 64, 184, 255, 158, 35, 168, 0, 142, 34, 184, 1, 126, 5, 168, 2, 110, 4, 184, 3, 93, 231, 168, 4, 77, 181, 128, 5, 61, 152, 112, 6, 45, 151, 128, 7, 38, 180, 240, 8, 22, 180, 0, 9, 6, 200, 40, 9, 246, 199, 56, 10, 230, 170, 40, 11, 214, 169, 56, 12, 198, 140, 40, 13, 182, 139, 56, 14, 166, 110, 40, 15, 150, 60, 0, 16, 134, 30, 240, 17, 118, 30, 0, 18, 111, 59, 112, 19, 95, 58, 128, 20, 79, 29, 112, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 0, 0, 106, 124, 0, 0, 0, 0, 126, 144, 1, 4, 0, 0, 112, 128, 0, 8, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 45, 56, 10}, + + "zoneinfo/Asia/Magadan": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 68, 0, 0, 0, 11, 0, 0, 0, 16, 128, 0, 0, 0, 170, 25, 54, 160, 181, 163, 168, 224, 21, 39, 55, 80, 22, 24, 107, 192, 23, 8, 106, 208, 23, 249, 159, 64, 24, 233, 158, 80, 25, 218, 210, 192, 26, 204, 35, 80, 27, 188, 48, 112, 28, 172, 33, 112, 29, 156, 18, 112, 30, 140, 3, 112, 31, 123, 244, 112, 32, 107, 229, 112, 33, 91, 214, 112, 34, 75, 199, 112, 35, 59, 184, 112, 36, 43, 169, 112, 37, 27, 154, 112, 38, 11, 139, 112, 39, 4, 182, 240, 39, 244, 167, 240, 40, 228, 167, 0, 41, 120, 79, 0, 41, 212, 137, 240, 42, 196, 122, 240, 43, 180, 107, 240, 44, 164, 92, 240, 45, 148, 77, 240, 46, 132, 62, 240, 47, 116, 47, 240, 48, 100, 32, 240, 49, 93, 76, 112, 50, 114, 39, 112, 51, 61, 46, 112, 52, 82, 9, 112, 53, 29, 16, 112, 54, 49, 235, 112, 54, 252, 242, 112, 56, 27, 7, 240, 56, 220, 212, 112, 57, 250, 233, 240, 58, 188, 182, 112, 59, 218, 203, 240, 60, 165, 210, 240, 61, 186, 173, 240, 62, 133, 180, 240, 63, 154, 143, 240, 64, 101, 150, 240, 65, 131, 172, 112, 66, 69, 120, 240, 67, 99, 142, 112, 68, 37, 90, 240, 69, 67, 112, 112, 70, 5, 60, 240, 71, 35, 82, 112, 71, 238, 89, 112, 73, 3, 52, 112, 73, 206, 59, 112, 74, 227, 22, 112, 75, 174, 29, 112, 76, 204, 50, 240, 77, 141, 255, 112, 84, 75, 172, 224, 87, 27, 156, 0, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 8, 7, 4, 4, 0, 0, 141, 96, 0, 0, 0, 0, 140, 160, 0, 4, 0, 0, 168, 192, 1, 8, 0, 0, 154, 176, 0, 12, 0, 0, 154, 176, 0, 12, 0, 0, 168, 192, 1, 8, 0, 0, 154, 176, 1, 12, 0, 0, 140, 160, 0, 4, 0, 0, 168, 192, 0, 8, 0, 0, 168, 192, 1, 8, 0, 0, 154, 176, 0, 12, 76, 77, 84, 0, 43, 49, 48, 0, 43, 49, 50, 0, 43, 49, 49, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 49, 62, 45, 49, 49, 10}, + + "zoneinfo/Asia/Makassar": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 21, 128, 0, 0, 0, 161, 242, 93, 144, 186, 22, 213, 144, 203, 136, 29, 128, 210, 86, 238, 112, 0, 1, 2, 3, 4, 0, 0, 111, 240, 0, 0, 0, 0, 111, 240, 0, 4, 0, 0, 112, 128, 0, 8, 0, 0, 126, 144, 0, 12, 0, 0, 112, 128, 0, 16, 76, 77, 84, 0, 77, 77, 84, 0, 43, 48, 56, 0, 43, 48, 57, 0, 87, 73, 84, 65, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 87, 73, 84, 65, 45, 56, 10}, + + "zoneinfo/Asia/Manila": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 5, 0, 0, 0, 12, 128, 0, 0, 0, 193, 156, 244, 128, 194, 22, 48, 112, 203, 242, 231, 0, 208, 169, 37, 112, 226, 108, 57, 0, 226, 213, 162, 240, 15, 117, 70, 128, 16, 102, 122, 240, 127, 255, 255, 255, 2, 1, 2, 3, 2, 1, 2, 1, 2, 2, 0, 0, 113, 112, 0, 0, 0, 0, 126, 144, 1, 4, 0, 0, 112, 128, 0, 8, 0, 0, 126, 144, 0, 4, 0, 0, 112, 128, 0, 8, 76, 77, 84, 0, 43, 48, 57, 0, 43, 48, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 56, 62, 45, 56, 10}, + + "zoneinfo/Asia/Muscat": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 161, 242, 153, 168, 127, 255, 255, 255, 0, 1, 1, 0, 0, 51, 216, 0, 0, 0, 0, 56, 64, 0, 4, 76, 77, 84, 0, 43, 48, 52, 0, 0, 0, 0, 0, 10, 60, 43, 48, 52, 62, 45, 52, 10}, + + "zoneinfo/Asia/Nicosia": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 128, 0, 0, 0, 5, 0, 0, 0, 13, 128, 0, 0, 0, 165, 119, 30, 184, 9, 237, 175, 224, 10, 221, 146, 208, 11, 250, 100, 224, 12, 190, 198, 80, 13, 164, 57, 96, 14, 138, 225, 208, 15, 132, 27, 96, 16, 117, 79, 208, 17, 99, 253, 96, 18, 83, 224, 80, 19, 77, 25, 224, 20, 51, 194, 80, 21, 35, 193, 96, 22, 19, 164, 80, 23, 3, 163, 96, 23, 243, 134, 80, 24, 227, 133, 96, 25, 211, 104, 80, 26, 195, 103, 96, 27, 188, 132, 208, 28, 172, 131, 224, 29, 156, 102, 208, 30, 140, 101, 224, 31, 124, 72, 208, 32, 108, 71, 224, 33, 92, 42, 208, 34, 76, 41, 224, 35, 60, 12, 208, 36, 44, 11, 224, 37, 27, 238, 208, 38, 11, 237, 224, 39, 5, 11, 80, 39, 245, 10, 96, 40, 228, 237, 80, 41, 212, 236, 96, 42, 196, 207, 80, 43, 180, 206, 96, 44, 164, 177, 80, 45, 148, 176, 96, 46, 132, 147, 80, 47, 116, 146, 96, 48, 100, 117, 80, 49, 93, 174, 224, 50, 77, 145, 208, 51, 61, 144, 224, 52, 45, 115, 208, 53, 29, 114, 224, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 0, 0, 31, 72, 0, 0, 0, 0, 42, 48, 1, 4, 0, 0, 28, 32, 0, 9, 0, 0, 28, 32, 0, 9, 0, 0, 42, 48, 1, 4, 76, 77, 84, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 51, 44, 77, 49, 48, 46, 53, 46, 48, 47, 52, 10}, + + "zoneinfo/Asia/Novokuznetsk": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 66, 0, 0, 0, 9, 0, 0, 0, 16, 128, 0, 0, 0, 170, 24, 32, 192, 181, 163, 225, 32, 21, 39, 111, 144, 22, 24, 164, 0, 23, 8, 163, 16, 23, 249, 215, 128, 24, 233, 214, 144, 25, 219, 11, 0, 26, 204, 91, 144, 27, 188, 104, 176, 28, 172, 89, 176, 29, 156, 74, 176, 30, 140, 59, 176, 31, 124, 44, 176, 32, 108, 29, 176, 33, 92, 14, 176, 34, 75, 255, 176, 35, 59, 240, 176, 36, 43, 225, 176, 37, 27, 210, 176, 38, 11, 195, 176, 39, 4, 239, 48, 39, 244, 224, 48, 40, 228, 223, 64, 41, 120, 135, 64, 41, 212, 194, 48, 42, 196, 179, 48, 43, 180, 164, 48, 44, 164, 149, 48, 45, 148, 134, 48, 46, 132, 119, 48, 47, 116, 104, 48, 48, 100, 89, 48, 49, 93, 132, 176, 50, 114, 95, 176, 51, 61, 102, 176, 52, 82, 65, 176, 53, 29, 72, 176, 54, 50, 35, 176, 54, 253, 42, 176, 56, 27, 64, 48, 56, 221, 12, 176, 57, 251, 34, 48, 58, 188, 238, 176, 59, 219, 4, 48, 60, 166, 11, 48, 61, 186, 230, 48, 62, 133, 237, 48, 63, 154, 200, 48, 64, 101, 207, 48, 65, 131, 228, 176, 66, 69, 177, 48, 67, 99, 198, 176, 68, 37, 147, 48, 69, 67, 168, 176, 70, 5, 117, 48, 71, 35, 138, 176, 71, 238, 145, 176, 73, 3, 108, 176, 73, 206, 115, 176, 74, 227, 78, 176, 75, 174, 85, 176, 76, 204, 121, 64, 77, 142, 69, 192, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 4, 4, 0, 0, 81, 192, 0, 0, 0, 0, 84, 96, 0, 4, 0, 0, 112, 128, 1, 8, 0, 0, 98, 112, 0, 12, 0, 0, 98, 112, 0, 12, 0, 0, 112, 128, 1, 8, 0, 0, 98, 112, 1, 12, 0, 0, 84, 96, 0, 4, 0, 0, 98, 112, 0, 12, 76, 77, 84, 0, 43, 48, 54, 0, 43, 48, 56, 0, 43, 48, 55, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 55, 62, 45, 55, 10}, + + "zoneinfo/Asia/Novosibirsk": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 69, 0, 0, 0, 10, 0, 0, 0, 16, 128, 0, 0, 0, 161, 219, 25, 36, 181, 163, 225, 32, 21, 39, 111, 144, 22, 24, 164, 0, 23, 8, 163, 16, 23, 249, 215, 128, 24, 233, 214, 144, 25, 219, 11, 0, 26, 204, 91, 144, 27, 188, 104, 176, 28, 172, 89, 176, 29, 156, 74, 176, 30, 140, 59, 176, 31, 124, 44, 176, 32, 108, 29, 176, 33, 92, 14, 176, 34, 75, 255, 176, 35, 59, 240, 176, 36, 43, 225, 176, 37, 27, 210, 176, 38, 11, 195, 176, 39, 4, 239, 48, 39, 244, 224, 48, 40, 228, 223, 64, 41, 120, 135, 64, 41, 212, 194, 48, 42, 196, 179, 48, 43, 180, 164, 48, 43, 254, 78, 0, 44, 164, 163, 64, 45, 148, 148, 64, 46, 132, 133, 64, 47, 116, 118, 64, 48, 100, 103, 64, 49, 93, 146, 192, 50, 114, 109, 192, 51, 61, 116, 192, 52, 82, 79, 192, 53, 29, 86, 192, 54, 50, 49, 192, 54, 253, 56, 192, 56, 27, 78, 64, 56, 221, 26, 192, 57, 251, 48, 64, 58, 188, 252, 192, 59, 219, 18, 64, 60, 166, 25, 64, 61, 186, 244, 64, 62, 133, 251, 64, 63, 154, 214, 64, 64, 101, 221, 64, 65, 131, 242, 192, 66, 69, 191, 64, 67, 99, 212, 192, 68, 37, 161, 64, 69, 67, 182, 192, 70, 5, 131, 64, 71, 35, 152, 192, 71, 238, 159, 192, 73, 3, 122, 192, 73, 206, 129, 192, 74, 227, 92, 192, 75, 174, 99, 192, 76, 204, 121, 64, 77, 142, 69, 192, 84, 75, 243, 48, 87, 147, 204, 192, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 4, 5, 4, 5, 8, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 4, 7, 4, 4, 0, 0, 77, 188, 0, 0, 0, 0, 84, 96, 0, 4, 0, 0, 112, 128, 1, 8, 0, 0, 98, 112, 0, 12, 0, 0, 98, 112, 0, 12, 0, 0, 112, 128, 1, 8, 0, 0, 98, 112, 1, 12, 0, 0, 84, 96, 0, 4, 0, 0, 98, 112, 1, 12, 0, 0, 98, 112, 0, 12, 76, 77, 84, 0, 43, 48, 54, 0, 43, 48, 56, 0, 43, 48, 55, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 55, 62, 45, 55, 10}, + + "zoneinfo/Asia/Omsk": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 67, 0, 0, 0, 11, 0, 0, 0, 16, 128, 0, 0, 0, 161, 179, 64, 182, 181, 163, 239, 48, 21, 39, 125, 160, 22, 24, 178, 16, 23, 8, 177, 32, 23, 249, 229, 144, 24, 233, 228, 160, 25, 219, 25, 16, 26, 204, 105, 160, 27, 188, 118, 192, 28, 172, 103, 192, 29, 156, 88, 192, 30, 140, 73, 192, 31, 124, 58, 192, 32, 108, 43, 192, 33, 92, 28, 192, 34, 76, 13, 192, 35, 59, 254, 192, 36, 43, 239, 192, 37, 27, 224, 192, 38, 11, 209, 192, 39, 4, 253, 64, 39, 244, 238, 64, 40, 228, 237, 80, 41, 120, 149, 80, 41, 212, 208, 64, 42, 196, 193, 64, 43, 180, 178, 64, 44, 164, 163, 64, 45, 148, 148, 64, 46, 132, 133, 64, 47, 116, 118, 64, 48, 100, 103, 64, 49, 93, 146, 192, 50, 114, 109, 192, 51, 61, 116, 192, 52, 82, 79, 192, 53, 29, 86, 192, 54, 50, 49, 192, 54, 253, 56, 192, 56, 27, 78, 64, 56, 221, 26, 192, 57, 251, 48, 64, 58, 188, 252, 192, 59, 219, 18, 64, 60, 166, 25, 64, 61, 186, 244, 64, 62, 133, 251, 64, 63, 154, 214, 64, 64, 101, 221, 64, 65, 131, 242, 192, 66, 69, 191, 64, 67, 99, 212, 192, 68, 37, 161, 64, 69, 67, 182, 192, 70, 5, 131, 64, 71, 35, 152, 192, 71, 238, 159, 192, 73, 3, 122, 192, 73, 206, 129, 192, 74, 227, 92, 192, 75, 174, 99, 192, 76, 204, 121, 64, 77, 142, 69, 192, 84, 75, 243, 48, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 8, 4, 4, 0, 0, 68, 202, 0, 0, 0, 0, 70, 80, 0, 4, 0, 0, 98, 112, 1, 8, 0, 0, 84, 96, 0, 12, 0, 0, 84, 96, 0, 12, 0, 0, 98, 112, 1, 8, 0, 0, 84, 96, 1, 12, 0, 0, 70, 80, 0, 4, 0, 0, 98, 112, 0, 8, 0, 0, 98, 112, 1, 8, 0, 0, 84, 96, 0, 12, 76, 77, 84, 0, 43, 48, 53, 0, 43, 48, 55, 0, 43, 48, 54, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 54, 62, 45, 54, 10}, + + "zoneinfo/Asia/Oral": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 0, 10, 0, 0, 0, 20, 128, 0, 0, 0, 170, 25, 147, 220, 181, 164, 11, 80, 21, 39, 139, 176, 22, 24, 192, 32, 23, 8, 177, 32, 23, 249, 243, 160, 24, 233, 242, 176, 25, 219, 39, 32, 26, 204, 119, 176, 27, 188, 132, 208, 28, 172, 117, 208, 29, 156, 102, 208, 30, 140, 87, 208, 31, 124, 72, 208, 32, 108, 57, 208, 33, 92, 42, 208, 34, 76, 27, 208, 35, 60, 12, 208, 36, 43, 253, 208, 37, 27, 252, 224, 38, 11, 237, 224, 39, 5, 25, 96, 39, 245, 10, 96, 40, 228, 251, 96, 41, 120, 163, 96, 41, 212, 222, 80, 42, 196, 221, 96, 43, 180, 206, 96, 44, 164, 191, 96, 45, 148, 176, 96, 46, 132, 161, 96, 47, 116, 146, 96, 48, 100, 131, 96, 49, 93, 174, 224, 50, 114, 137, 224, 51, 61, 144, 224, 52, 82, 107, 224, 53, 29, 114, 224, 54, 50, 77, 224, 54, 253, 84, 224, 56, 27, 106, 96, 56, 221, 54, 224, 57, 251, 76, 96, 58, 189, 24, 224, 59, 219, 46, 96, 60, 166, 53, 96, 61, 187, 16, 96, 62, 134, 23, 96, 63, 154, 242, 96, 64, 101, 249, 96, 65, 132, 14, 224, 127, 255, 255, 255, 0, 1, 2, 3, 4, 3, 2, 3, 2, 3, 5, 6, 5, 6, 5, 6, 5, 6, 5, 7, 8, 7, 8, 7, 8, 5, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 5, 5, 0, 0, 48, 36, 0, 0, 0, 0, 42, 48, 0, 4, 0, 0, 70, 80, 0, 8, 0, 0, 84, 96, 1, 12, 0, 0, 84, 96, 0, 12, 0, 0, 70, 80, 0, 8, 0, 0, 84, 96, 1, 12, 0, 0, 70, 80, 1, 8, 0, 0, 56, 64, 0, 16, 0, 0, 70, 80, 0, 8, 76, 77, 84, 0, 43, 48, 51, 0, 43, 48, 53, 0, 43, 48, 54, 0, 43, 48, 52, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 53, 62, 45, 53, 10}, + + "zoneinfo/Asia/Phnom_Penh": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 162, 106, 103, 196, 127, 255, 255, 255, 1, 2, 2, 0, 0, 94, 60, 0, 0, 0, 0, 94, 60, 0, 4, 0, 0, 98, 112, 0, 8, 76, 77, 84, 0, 66, 77, 84, 0, 43, 48, 55, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 55, 62, 45, 55, 10}, + + "zoneinfo/Asia/Pontianak": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 7, 0, 0, 0, 31, 128, 0, 0, 0, 139, 255, 142, 0, 186, 22, 223, 0, 203, 121, 164, 8, 210, 86, 238, 112, 215, 60, 198, 8, 218, 255, 38, 0, 244, 181, 190, 136, 33, 218, 116, 128, 0, 1, 2, 3, 2, 4, 2, 5, 6, 0, 0, 102, 128, 0, 0, 0, 0, 102, 128, 0, 4, 0, 0, 105, 120, 0, 8, 0, 0, 126, 144, 0, 14, 0, 0, 112, 128, 0, 18, 0, 0, 112, 128, 0, 22, 0, 0, 98, 112, 0, 27, 76, 77, 84, 0, 80, 77, 84, 0, 43, 48, 55, 51, 48, 0, 43, 48, 57, 0, 43, 48, 56, 0, 87, 73, 84, 65, 0, 87, 73, 66, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 87, 73, 66, 45, 55, 10}, + + "zoneinfo/Asia/Pyongyang": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 12, 128, 0, 0, 0, 139, 215, 241, 156, 146, 230, 22, 248, 210, 47, 97, 112, 85, 206, 2, 112, 0, 1, 2, 3, 1, 0, 0, 117, 228, 0, 0, 0, 0, 119, 136, 0, 4, 0, 0, 126, 144, 0, 8, 0, 0, 126, 144, 0, 4, 0, 0, 119, 136, 0, 4, 76, 77, 84, 0, 75, 83, 84, 0, 74, 83, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 75, 83, 84, 45, 56, 58, 51, 48, 10}, + + "zoneinfo/Asia/Qatar": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 161, 242, 157, 48, 4, 138, 146, 192, 127, 255, 255, 255, 0, 1, 2, 2, 0, 0, 48, 80, 0, 0, 0, 0, 56, 64, 0, 4, 0, 0, 42, 48, 0, 8, 76, 77, 84, 0, 43, 48, 52, 0, 43, 48, 51, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 51, 62, 45, 51, 10}, + + "zoneinfo/Asia/Qyzylorda": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 0, 11, 0, 0, 0, 16, 128, 0, 0, 0, 170, 25, 134, 160, 181, 163, 253, 64, 21, 39, 139, 176, 22, 24, 192, 32, 23, 8, 177, 32, 23, 249, 243, 160, 24, 233, 242, 176, 25, 219, 39, 32, 26, 204, 119, 176, 27, 188, 132, 208, 28, 172, 117, 208, 29, 156, 102, 208, 30, 140, 87, 208, 31, 124, 72, 208, 32, 108, 57, 208, 33, 92, 42, 208, 34, 76, 27, 208, 35, 60, 12, 208, 36, 43, 253, 208, 37, 27, 238, 208, 38, 11, 223, 208, 39, 5, 11, 80, 39, 244, 252, 80, 40, 228, 251, 96, 41, 120, 149, 80, 41, 212, 208, 64, 42, 196, 207, 80, 43, 180, 192, 80, 44, 164, 177, 80, 45, 148, 162, 80, 46, 132, 147, 80, 47, 116, 132, 80, 48, 100, 117, 80, 49, 93, 160, 208, 50, 114, 123, 208, 51, 61, 130, 208, 52, 82, 93, 208, 53, 29, 100, 208, 54, 50, 63, 208, 54, 253, 70, 208, 56, 27, 92, 80, 56, 221, 40, 208, 57, 251, 62, 80, 58, 189, 10, 208, 59, 219, 32, 80, 60, 166, 39, 80, 61, 187, 2, 80, 62, 134, 9, 80, 63, 154, 228, 80, 64, 101, 235, 80, 65, 132, 0, 208, 127, 255, 255, 255, 0, 1, 2, 3, 4, 3, 2, 3, 2, 3, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 7, 5, 9, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 9, 9, 0, 0, 61, 96, 0, 0, 0, 0, 56, 64, 0, 4, 0, 0, 70, 80, 0, 8, 0, 0, 84, 96, 1, 12, 0, 0, 84, 96, 0, 12, 0, 0, 70, 80, 0, 8, 0, 0, 84, 96, 1, 12, 0, 0, 70, 80, 1, 8, 0, 0, 56, 64, 0, 4, 0, 0, 84, 96, 0, 12, 0, 0, 84, 96, 1, 12, 76, 77, 84, 0, 43, 48, 52, 0, 43, 48, 53, 0, 43, 48, 54, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 54, 62, 45, 54, 10}, + + "zoneinfo/Asia/Rangoon": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 18, 128, 0, 0, 0, 161, 242, 115, 81, 203, 242, 252, 24, 209, 154, 103, 240, 127, 255, 255, 255, 1, 2, 3, 2, 2, 0, 0, 90, 47, 0, 0, 0, 0, 90, 47, 0, 4, 0, 0, 91, 104, 0, 8, 0, 0, 126, 144, 0, 14, 0, 0, 91, 104, 0, 8, 76, 77, 84, 0, 82, 77, 84, 0, 43, 48, 54, 51, 48, 0, 43, 48, 57, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 54, 51, 48, 62, 45, 54, 58, 51, 48, 10}, + + "zoneinfo/Asia/Riyadh": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 213, 27, 54, 180, 127, 255, 255, 255, 0, 1, 1, 0, 0, 43, 204, 0, 0, 0, 0, 42, 48, 0, 4, 76, 77, 84, 0, 43, 48, 51, 0, 0, 0, 0, 0, 10, 60, 43, 48, 51, 62, 45, 51, 10}, + + "zoneinfo/Asia/Saigon": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 6, 0, 0, 0, 21, 128, 0, 0, 0, 136, 140, 67, 128, 145, 163, 43, 10, 205, 53, 230, 128, 209, 89, 206, 112, 210, 59, 62, 240, 213, 50, 187, 16, 228, 182, 228, 128, 237, 47, 152, 0, 10, 61, 199, 0, 127, 255, 255, 255, 0, 1, 2, 3, 4, 2, 3, 2, 3, 2, 2, 0, 0, 100, 0, 0, 0, 0, 0, 99, 246, 0, 4, 0, 0, 98, 112, 0, 9, 0, 0, 112, 128, 0, 13, 0, 0, 126, 144, 0, 17, 0, 0, 98, 112, 0, 9, 76, 77, 84, 0, 80, 76, 77, 84, 0, 43, 48, 55, 0, 43, 48, 56, 0, 43, 48, 57, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 55, 62, 45, 55, 10}, + + "zoneinfo/Asia/Sakhalin": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 68, 0, 0, 0, 9, 0, 0, 0, 20, 128, 0, 0, 0, 134, 240, 205, 184, 210, 48, 178, 240, 21, 39, 55, 80, 22, 24, 107, 192, 23, 8, 106, 208, 23, 249, 159, 64, 24, 233, 158, 80, 25, 218, 210, 192, 26, 204, 35, 80, 27, 188, 48, 112, 28, 172, 33, 112, 29, 156, 18, 112, 30, 140, 3, 112, 31, 123, 244, 112, 32, 107, 229, 112, 33, 91, 214, 112, 34, 75, 199, 112, 35, 59, 184, 112, 36, 43, 169, 112, 37, 27, 154, 112, 38, 11, 139, 112, 39, 4, 182, 240, 39, 244, 167, 240, 40, 228, 167, 0, 41, 120, 79, 0, 41, 212, 137, 240, 42, 196, 122, 240, 43, 180, 107, 240, 44, 164, 92, 240, 45, 148, 77, 240, 46, 132, 62, 240, 47, 116, 47, 240, 48, 100, 32, 240, 49, 93, 76, 112, 50, 114, 39, 112, 51, 61, 46, 112, 52, 82, 23, 128, 53, 29, 30, 128, 54, 49, 249, 128, 54, 253, 0, 128, 56, 27, 22, 0, 56, 220, 226, 128, 57, 250, 248, 0, 58, 188, 196, 128, 59, 218, 218, 0, 60, 165, 225, 0, 61, 186, 188, 0, 62, 133, 195, 0, 63, 154, 158, 0, 64, 101, 165, 0, 65, 131, 186, 128, 66, 69, 135, 0, 67, 99, 156, 128, 68, 37, 105, 0, 69, 67, 126, 128, 70, 5, 75, 0, 71, 35, 96, 128, 71, 238, 103, 128, 73, 3, 66, 128, 73, 206, 73, 128, 74, 227, 36, 128, 75, 174, 43, 128, 76, 204, 65, 0, 77, 142, 13, 128, 84, 75, 186, 240, 86, 246, 178, 0, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 4, 7, 4, 4, 0, 0, 133, 200, 0, 0, 0, 0, 126, 144, 0, 4, 0, 0, 168, 192, 1, 8, 0, 0, 154, 176, 0, 12, 0, 0, 154, 176, 0, 12, 0, 0, 168, 192, 1, 8, 0, 0, 154, 176, 1, 12, 0, 0, 140, 160, 0, 16, 0, 0, 154, 176, 0, 12, 76, 77, 84, 0, 43, 48, 57, 0, 43, 49, 50, 0, 43, 49, 49, 0, 43, 49, 48, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 49, 62, 45, 49, 49, 10}, + + "zoneinfo/Asia/Samarkand": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 7, 0, 0, 0, 16, 128, 0, 0, 0, 170, 25, 133, 55, 181, 163, 253, 64, 21, 39, 139, 176, 22, 24, 192, 32, 23, 8, 177, 32, 23, 249, 243, 160, 24, 233, 242, 176, 25, 219, 39, 32, 26, 204, 119, 176, 27, 188, 132, 208, 28, 172, 117, 208, 29, 156, 102, 208, 30, 140, 87, 208, 31, 124, 72, 208, 32, 108, 57, 208, 33, 92, 42, 208, 34, 76, 27, 208, 35, 60, 12, 208, 36, 43, 253, 208, 37, 27, 238, 208, 38, 11, 223, 208, 39, 5, 11, 80, 39, 244, 252, 80, 40, 228, 237, 80, 41, 96, 190, 48, 127, 255, 255, 255, 0, 1, 2, 3, 4, 3, 2, 3, 2, 3, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 2, 2, 0, 0, 62, 201, 0, 0, 0, 0, 56, 64, 0, 4, 0, 0, 70, 80, 0, 8, 0, 0, 84, 96, 1, 12, 0, 0, 84, 96, 0, 12, 0, 0, 70, 80, 0, 8, 0, 0, 84, 96, 1, 12, 76, 77, 84, 0, 43, 48, 52, 0, 43, 48, 53, 0, 43, 48, 54, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 53, 62, 45, 53, 10}, + + "zoneinfo/Asia/Seoul": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 6, 0, 0, 0, 16, 128, 0, 0, 0, 139, 215, 240, 120, 146, 230, 22, 248, 210, 67, 39, 240, 226, 79, 41, 240, 228, 107, 183, 248, 229, 19, 24, 104, 230, 98, 3, 120, 231, 17, 76, 232, 232, 47, 112, 120, 232, 231, 244, 104, 234, 15, 82, 120, 234, 199, 214, 104, 235, 239, 52, 120, 236, 167, 184, 104, 237, 207, 22, 120, 238, 135, 154, 104, 240, 53, 113, 120, 32, 163, 96, 144, 33, 110, 103, 144, 34, 131, 66, 144, 35, 78, 73, 144, 0, 1, 2, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 3, 5, 3, 5, 3, 0, 0, 119, 8, 0, 0, 0, 0, 119, 136, 0, 4, 0, 0, 126, 144, 0, 8, 0, 0, 126, 144, 0, 4, 0, 0, 133, 152, 1, 12, 0, 0, 140, 160, 1, 12, 76, 77, 84, 0, 75, 83, 84, 0, 74, 83, 84, 0, 75, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 75, 83, 84, 45, 57, 10}, + + "zoneinfo/Asia/Shanghai": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 200, 92, 1, 128, 200, 250, 39, 112, 201, 213, 14, 128, 202, 219, 90, 240, 30, 186, 54, 0, 31, 105, 127, 112, 32, 126, 104, 128, 33, 73, 97, 112, 34, 94, 74, 128, 35, 41, 67, 112, 36, 71, 103, 0, 37, 18, 95, 240, 38, 39, 73, 0, 38, 242, 65, 240, 40, 7, 43, 0, 40, 210, 35, 240, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 0, 0, 113, 215, 0, 0, 0, 0, 126, 144, 1, 4, 0, 0, 112, 128, 0, 8, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 45, 56, 10}, + + "zoneinfo/Asia/Singapore": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 8, 0, 0, 0, 32, 128, 0, 0, 0, 134, 131, 133, 163, 186, 103, 78, 144, 192, 10, 228, 96, 202, 179, 229, 96, 203, 145, 95, 8, 210, 72, 109, 240, 22, 145, 245, 8, 127, 255, 255, 255, 1, 2, 3, 4, 5, 6, 5, 7, 7, 0, 0, 97, 93, 0, 0, 0, 0, 97, 93, 0, 4, 0, 0, 98, 112, 0, 8, 0, 0, 103, 32, 1, 12, 0, 0, 103, 32, 0, 12, 0, 0, 105, 120, 0, 18, 0, 0, 126, 144, 0, 24, 0, 0, 112, 128, 0, 28, 76, 77, 84, 0, 83, 77, 84, 0, 43, 48, 55, 0, 43, 48, 55, 50, 48, 0, 43, 48, 55, 51, 48, 0, 43, 48, 57, 0, 43, 48, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 56, 62, 45, 56, 10}, + + "zoneinfo/Asia/Srednekolymsk": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 67, 0, 0, 0, 11, 0, 0, 0, 16, 128, 0, 0, 0, 170, 25, 51, 228, 181, 163, 168, 224, 21, 39, 55, 80, 22, 24, 107, 192, 23, 8, 106, 208, 23, 249, 159, 64, 24, 233, 158, 80, 25, 218, 210, 192, 26, 204, 35, 80, 27, 188, 48, 112, 28, 172, 33, 112, 29, 156, 18, 112, 30, 140, 3, 112, 31, 123, 244, 112, 32, 107, 229, 112, 33, 91, 214, 112, 34, 75, 199, 112, 35, 59, 184, 112, 36, 43, 169, 112, 37, 27, 154, 112, 38, 11, 139, 112, 39, 4, 182, 240, 39, 244, 167, 240, 40, 228, 167, 0, 41, 120, 79, 0, 41, 212, 137, 240, 42, 196, 122, 240, 43, 180, 107, 240, 44, 164, 92, 240, 45, 148, 77, 240, 46, 132, 62, 240, 47, 116, 47, 240, 48, 100, 32, 240, 49, 93, 76, 112, 50, 114, 39, 112, 51, 61, 46, 112, 52, 82, 9, 112, 53, 29, 16, 112, 54, 49, 235, 112, 54, 252, 242, 112, 56, 27, 7, 240, 56, 220, 212, 112, 57, 250, 233, 240, 58, 188, 182, 112, 59, 218, 203, 240, 60, 165, 210, 240, 61, 186, 173, 240, 62, 133, 180, 240, 63, 154, 143, 240, 64, 101, 150, 240, 65, 131, 172, 112, 66, 69, 120, 240, 67, 99, 142, 112, 68, 37, 90, 240, 69, 67, 112, 112, 70, 5, 60, 240, 71, 35, 82, 112, 71, 238, 89, 112, 73, 3, 52, 112, 73, 206, 59, 112, 74, 227, 22, 112, 75, 174, 29, 112, 76, 204, 50, 240, 77, 141, 255, 112, 84, 75, 172, 224, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 8, 4, 4, 0, 0, 144, 28, 0, 0, 0, 0, 140, 160, 0, 4, 0, 0, 168, 192, 1, 8, 0, 0, 154, 176, 0, 12, 0, 0, 154, 176, 0, 12, 0, 0, 168, 192, 1, 8, 0, 0, 154, 176, 1, 12, 0, 0, 140, 160, 0, 4, 0, 0, 168, 192, 0, 8, 0, 0, 168, 192, 1, 8, 0, 0, 154, 176, 0, 12, 76, 77, 84, 0, 43, 49, 48, 0, 43, 49, 50, 0, 43, 49, 49, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 49, 62, 45, 49, 49, 10}, + + "zoneinfo/Asia/Taipei": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 5, 0, 0, 0, 16, 128, 0, 0, 0, 195, 85, 73, 128, 210, 84, 89, 128, 211, 139, 123, 128, 212, 66, 173, 240, 213, 69, 34, 0, 214, 76, 191, 240, 215, 60, 191, 0, 216, 6, 102, 112, 217, 29, 242, 128, 217, 231, 153, 240, 218, 255, 38, 0, 219, 200, 205, 112, 220, 224, 89, 128, 221, 170, 0, 240, 222, 114, 115, 0, 223, 181, 100, 112, 224, 124, 133, 0, 225, 150, 151, 240, 226, 93, 184, 128, 227, 119, 203, 112, 228, 62, 236, 0, 229, 48, 32, 112, 230, 33, 113, 0, 231, 18, 165, 112, 232, 2, 164, 128, 232, 243, 216, 240, 233, 227, 216, 0, 234, 213, 12, 112, 235, 197, 11, 128, 236, 182, 63, 240, 237, 247, 252, 0, 238, 152, 196, 240, 239, 217, 47, 128, 240, 121, 248, 112, 7, 252, 86, 0, 8, 237, 138, 112, 9, 221, 137, 128, 10, 206, 189, 240, 17, 219, 161, 128, 18, 84, 221, 112, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 0, 0, 113, 232, 0, 0, 0, 0, 112, 128, 0, 4, 0, 0, 126, 144, 0, 8, 0, 0, 126, 144, 1, 12, 0, 0, 112, 128, 0, 4, 76, 77, 84, 0, 67, 83, 84, 0, 74, 83, 84, 0, 67, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 45, 56, 10}, + + "zoneinfo/Asia/Tashkent": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 8, 0, 0, 0, 16, 128, 0, 0, 0, 170, 25, 131, 9, 181, 163, 239, 48, 21, 39, 125, 160, 22, 24, 178, 16, 23, 8, 177, 32, 23, 249, 229, 144, 24, 233, 228, 160, 25, 219, 25, 16, 26, 204, 105, 160, 27, 188, 118, 192, 28, 172, 103, 192, 29, 156, 88, 192, 30, 140, 73, 192, 31, 124, 58, 192, 32, 108, 43, 192, 33, 92, 28, 192, 34, 76, 13, 192, 35, 59, 254, 192, 36, 43, 239, 192, 37, 27, 224, 192, 38, 11, 209, 192, 39, 4, 253, 64, 39, 244, 238, 64, 40, 228, 237, 80, 41, 96, 190, 48, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 1, 1, 0, 0, 64, 247, 0, 0, 0, 0, 70, 80, 0, 4, 0, 0, 98, 112, 1, 8, 0, 0, 84, 96, 0, 12, 0, 0, 84, 96, 0, 12, 0, 0, 98, 112, 1, 8, 0, 0, 84, 96, 1, 12, 0, 0, 70, 80, 0, 4, 76, 77, 84, 0, 43, 48, 53, 0, 43, 48, 55, 0, 43, 48, 54, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 53, 62, 45, 53, 10}, + + "zoneinfo/Asia/Tbilisi": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 54, 0, 0, 0, 11, 0, 0, 0, 21, 128, 0, 0, 0, 170, 25, 154, 1, 231, 218, 12, 80, 21, 39, 153, 192, 22, 24, 206, 48, 23, 8, 205, 64, 23, 250, 1, 176, 24, 234, 0, 192, 25, 219, 53, 48, 26, 204, 133, 192, 27, 188, 146, 224, 28, 172, 131, 224, 29, 156, 116, 224, 30, 140, 101, 224, 31, 124, 86, 224, 32, 108, 71, 224, 33, 92, 56, 224, 34, 76, 41, 224, 35, 60, 26, 224, 36, 44, 11, 224, 37, 27, 252, 224, 38, 11, 237, 224, 39, 5, 25, 96, 39, 245, 10, 96, 40, 229, 9, 112, 41, 96, 218, 80, 41, 212, 222, 80, 42, 196, 193, 64, 43, 180, 192, 80, 44, 164, 163, 64, 45, 148, 162, 80, 46, 132, 133, 64, 47, 116, 118, 64, 48, 100, 89, 48, 49, 93, 146, 192, 51, 61, 102, 176, 52, 82, 65, 176, 53, 29, 86, 192, 54, 50, 35, 176, 54, 253, 56, 192, 56, 27, 64, 48, 56, 221, 26, 192, 57, 251, 34, 48, 58, 188, 252, 192, 59, 219, 4, 48, 60, 166, 25, 64, 61, 186, 230, 48, 62, 133, 251, 64, 63, 154, 200, 48, 64, 101, 221, 64, 64, 221, 199, 176, 65, 132, 28, 240, 66, 69, 233, 112, 127, 255, 255, 255, 1, 2, 4, 3, 4, 3, 4, 3, 4, 3, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 7, 8, 2, 9, 2, 9, 2, 9, 4, 3, 4, 3, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 9, 8, 4, 4, 0, 0, 41, 255, 0, 0, 0, 0, 41, 255, 0, 4, 0, 0, 42, 48, 0, 9, 0, 0, 70, 80, 1, 13, 0, 0, 56, 64, 0, 17, 0, 0, 56, 64, 0, 17, 0, 0, 70, 80, 1, 13, 0, 0, 56, 64, 1, 17, 0, 0, 42, 48, 0, 9, 0, 0, 56, 64, 1, 17, 0, 0, 56, 64, 0, 17, 76, 77, 84, 0, 84, 66, 77, 84, 0, 43, 48, 51, 0, 43, 48, 53, 0, 43, 48, 52, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 52, 62, 45, 52, 10}, + + "zoneinfo/Asia/Tehran": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 102, 0, 0, 0, 7, 0, 0, 0, 28, 128, 0, 0, 0, 154, 108, 125, 200, 210, 219, 18, 200, 14, 187, 162, 72, 15, 116, 45, 64, 16, 142, 64, 48, 16, 237, 58, 64, 17, 85, 103, 200, 18, 69, 74, 184, 19, 55, 236, 200, 20, 45, 21, 184, 40, 32, 118, 200, 40, 219, 157, 184, 41, 203, 156, 200, 42, 190, 34, 184, 43, 172, 208, 72, 44, 159, 86, 56, 45, 142, 3, 200, 46, 128, 137, 184, 47, 111, 55, 72, 48, 97, 189, 56, 49, 80, 106, 200, 50, 66, 240, 184, 51, 50, 239, 200, 52, 37, 117, 184, 53, 20, 35, 72, 54, 6, 169, 56, 54, 245, 86, 200, 55, 231, 220, 184, 56, 214, 138, 72, 57, 201, 16, 56, 58, 185, 15, 72, 59, 171, 149, 56, 60, 154, 66, 200, 61, 140, 200, 184, 62, 123, 118, 72, 63, 109, 252, 56, 64, 92, 169, 200, 65, 79, 47, 184, 66, 63, 46, 200, 67, 49, 180, 184, 71, 226, 201, 72, 72, 213, 79, 56, 73, 197, 78, 72, 74, 183, 212, 56, 75, 166, 129, 200, 76, 153, 7, 184, 77, 135, 181, 72, 78, 122, 59, 56, 79, 104, 232, 200, 80, 91, 110, 184, 81, 75, 109, 200, 82, 61, 243, 184, 83, 44, 161, 72, 84, 31, 39, 56, 85, 13, 212, 200, 86, 0, 90, 184, 86, 239, 8, 72, 87, 225, 142, 56, 88, 209, 141, 72, 89, 196, 19, 56, 90, 178, 192, 200, 91, 165, 70, 184, 92, 147, 244, 72, 93, 134, 122, 56, 94, 117, 39, 200, 95, 103, 173, 184, 96, 87, 172, 200, 97, 74, 50, 184, 98, 56, 224, 72, 99, 43, 102, 56, 100, 26, 19, 200, 101, 12, 153, 184, 101, 251, 71, 72, 102, 237, 205, 56, 103, 221, 204, 72, 104, 208, 82, 56, 105, 190, 255, 200, 106, 177, 133, 184, 107, 160, 51, 72, 108, 146, 185, 56, 109, 129, 102, 200, 110, 115, 236, 184, 111, 98, 154, 72, 112, 85, 32, 56, 113, 69, 31, 72, 114, 55, 165, 56, 115, 38, 82, 200, 116, 24, 216, 184, 117, 7, 134, 72, 117, 250, 12, 56, 118, 232, 185, 200, 119, 219, 63, 184, 120, 203, 62, 200, 121, 189, 196, 184, 122, 172, 114, 72, 123, 158, 248, 56, 124, 141, 165, 200, 125, 128, 43, 184, 126, 110, 217, 72, 127, 97, 95, 56, 127, 255, 255, 255, 0, 1, 2, 4, 3, 4, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 2, 0, 0, 48, 56, 0, 0, 0, 0, 48, 56, 0, 4, 0, 0, 49, 56, 0, 8, 0, 0, 70, 80, 1, 14, 0, 0, 56, 64, 0, 18, 0, 0, 63, 72, 1, 22, 0, 0, 49, 56, 0, 8, 76, 77, 84, 0, 84, 77, 84, 0, 43, 48, 51, 51, 48, 0, 43, 48, 53, 0, 43, 48, 52, 0, 43, 48, 52, 51, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 51, 51, 48, 62, 45, 51, 58, 51, 48, 60, 43, 48, 52, 51, 48, 62, 44, 74, 56, 48, 47, 48, 44, 74, 50, 54, 52, 47, 48, 10}, + + "zoneinfo/Asia/Tel_Aviv": []byte{84, 90, 105, 102, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 143, 0, 0, 0, 6, 0, 0, 0, 21, 128, 0, 0, 0, 158, 48, 69, 136, 200, 89, 178, 224, 204, 229, 193, 80, 205, 172, 254, 0, 206, 198, 244, 208, 207, 143, 102, 224, 208, 169, 121, 208, 209, 132, 96, 224, 210, 138, 201, 112, 211, 101, 176, 128, 212, 107, 224, 208, 215, 90, 20, 96, 215, 223, 31, 192, 216, 47, 181, 112, 217, 30, 70, 224, 218, 16, 232, 240, 218, 235, 179, 224, 219, 180, 52, 0, 220, 185, 32, 224, 221, 224, 141, 0, 222, 180, 206, 128, 223, 164, 191, 128, 224, 139, 118, 0, 225, 86, 125, 0, 226, 190, 74, 96, 227, 54, 52, 208, 228, 156, 247, 0, 229, 22, 22, 208, 230, 116, 211, 224, 231, 17, 210, 128, 232, 39, 255, 0, 232, 232, 79, 208, 8, 124, 139, 224, 8, 253, 176, 208, 9, 246, 234, 96, 10, 166, 51, 208, 28, 190, 248, 224, 29, 137, 241, 208, 30, 204, 255, 96, 31, 96, 153, 80, 32, 130, 177, 96, 33, 73, 181, 208, 34, 94, 158, 224, 35, 32, 93, 80, 36, 90, 48, 96, 37, 0, 63, 80, 38, 11, 237, 224, 38, 214, 230, 208, 39, 235, 207, 224, 40, 192, 3, 80, 41, 212, 236, 96, 42, 169, 31, 208, 43, 187, 101, 224, 44, 137, 1, 208, 45, 155, 71, 224, 46, 95, 169, 80, 47, 123, 41, 224, 48, 72, 197, 208, 49, 72, 150, 224, 50, 60, 110, 80, 51, 49, 179, 96, 52, 26, 254, 208, 53, 17, 149, 96, 53, 241, 166, 80, 55, 4, 8, 128, 55, 207, 1, 112, 56, 246, 95, 128, 57, 220, 249, 224, 58, 208, 237, 112, 59, 174, 91, 96, 60, 163, 160, 112, 61, 160, 178, 96, 62, 131, 130, 112, 63, 124, 159, 224, 64, 115, 54, 112, 65, 80, 164, 96, 66, 76, 143, 0, 67, 72, 79, 112, 68, 44, 113, 0, 69, 30, 246, 240, 70, 12, 83, 0, 70, 236, 99, 240, 71, 236, 53, 0, 72, 231, 245, 112, 73, 204, 23, 0, 74, 190, 156, 240, 75, 171, 249, 0, 76, 140, 9, 240, 77, 149, 21, 128, 78, 135, 155, 112, 79, 116, 247, 128, 80, 94, 66, 240, 81, 84, 217, 128, 82, 108, 73, 112, 83, 52, 187, 128, 84, 76, 43, 112, 85, 20, 157, 128, 86, 44, 13, 112, 86, 244, 127, 128, 88, 21, 41, 240, 88, 212, 97, 128, 89, 245, 11, 240, 90, 180, 67, 128, 91, 212, 237, 240, 92, 157, 96, 0, 93, 180, 207, 240, 94, 125, 66, 0, 95, 148, 177, 240, 96, 93, 36, 0, 97, 125, 206, 112, 98, 61, 6, 0, 99, 93, 176, 112, 100, 28, 232, 0, 101, 61, 146, 112, 102, 6, 4, 128, 103, 29, 116, 112, 103, 229, 230, 128, 104, 253, 86, 112, 105, 197, 200, 128, 106, 221, 56, 112, 107, 165, 170, 128, 108, 198, 84, 240, 109, 133, 140, 128, 110, 166, 54, 240, 111, 101, 110, 128, 112, 134, 24, 240, 113, 78, 139, 0, 114, 101, 250, 240, 115, 46, 109, 0, 116, 69, 220, 240, 117, 14, 79, 0, 118, 46, 249, 112, 118, 238, 49, 0, 120, 14, 219, 112, 120, 206, 19, 0, 121, 238, 189, 112, 122, 173, 245, 0, 123, 206, 159, 112, 124, 151, 17, 128, 125, 174, 129, 112, 126, 118, 243, 128, 127, 142, 99, 112, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 4, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 0, 0, 33, 6, 0, 0, 0, 0, 32, 248, 0, 4, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 12, 0, 0, 56, 64, 1, 16, 0, 0, 42, 48, 1, 8, 76, 77, 84, 0, 74, 77, 84, 0, 73, 68, 84, 0, 73, 83, 84, 0, 73, 68, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 73, 83, 84, 45, 50, 73, 68, 84, 44, 77, 51, 46, 52, 46, 52, 47, 50, 54, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/Asia/Thimbu": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 3, 0, 0, 0, 14, 128, 0, 0, 0, 213, 230, 21, 116, 33, 97, 77, 168, 127, 255, 255, 255, 0, 1, 2, 2, 0, 0, 84, 12, 0, 0, 0, 0, 77, 88, 0, 4, 0, 0, 84, 96, 0, 10, 76, 77, 84, 0, 43, 48, 53, 51, 48, 0, 43, 48, 54, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 54, 62, 45, 54, 10}, + + "zoneinfo/Asia/Thimphu": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 3, 0, 0, 0, 14, 128, 0, 0, 0, 213, 230, 21, 116, 33, 97, 77, 168, 127, 255, 255, 255, 0, 1, 2, 2, 0, 0, 84, 12, 0, 0, 0, 0, 77, 88, 0, 4, 0, 0, 84, 96, 0, 10, 76, 77, 84, 0, 43, 48, 53, 51, 48, 0, 43, 48, 54, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 54, 62, 45, 54, 10}, + + "zoneinfo/Asia/Tokyo": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 4, 0, 0, 0, 12, 128, 0, 0, 0, 215, 62, 30, 144, 215, 236, 22, 128, 216, 249, 22, 144, 217, 203, 248, 128, 219, 7, 29, 16, 219, 171, 218, 128, 220, 230, 255, 16, 221, 139, 188, 128, 3, 1, 2, 1, 2, 1, 2, 1, 2, 0, 0, 131, 3, 0, 0, 0, 0, 140, 160, 1, 4, 0, 0, 126, 144, 0, 8, 0, 0, 126, 144, 0, 8, 76, 77, 84, 0, 74, 68, 84, 0, 74, 83, 84, 0, 0, 0, 0, 1, 0, 0, 0, 1, 10, 74, 83, 84, 45, 57, 10}, + + "zoneinfo/Asia/Tomsk": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 69, 0, 0, 0, 10, 0, 0, 0, 16, 128, 0, 0, 0, 161, 229, 78, 217, 181, 163, 225, 32, 21, 39, 111, 144, 22, 24, 164, 0, 23, 8, 163, 16, 23, 249, 215, 128, 24, 233, 214, 144, 25, 219, 11, 0, 26, 204, 91, 144, 27, 188, 104, 176, 28, 172, 89, 176, 29, 156, 74, 176, 30, 140, 59, 176, 31, 124, 44, 176, 32, 108, 29, 176, 33, 92, 14, 176, 34, 75, 255, 176, 35, 59, 240, 176, 36, 43, 225, 176, 37, 27, 210, 176, 38, 11, 195, 176, 39, 4, 239, 48, 39, 244, 224, 48, 40, 228, 223, 64, 41, 120, 135, 64, 41, 212, 194, 48, 42, 196, 179, 48, 43, 180, 164, 48, 44, 164, 149, 48, 45, 148, 134, 48, 46, 132, 119, 48, 47, 116, 104, 48, 48, 100, 89, 48, 49, 93, 132, 176, 50, 114, 95, 176, 51, 61, 102, 176, 52, 82, 65, 176, 53, 29, 72, 176, 54, 50, 35, 176, 54, 253, 42, 176, 56, 27, 64, 48, 56, 221, 12, 176, 57, 251, 34, 48, 58, 188, 238, 176, 59, 219, 4, 48, 60, 166, 11, 48, 60, 206, 233, 176, 61, 186, 244, 64, 62, 133, 251, 64, 63, 154, 214, 64, 64, 101, 221, 64, 65, 131, 242, 192, 66, 69, 191, 64, 67, 99, 212, 192, 68, 37, 161, 64, 69, 67, 182, 192, 70, 5, 131, 64, 71, 35, 152, 192, 71, 238, 159, 192, 73, 3, 122, 192, 73, 206, 129, 192, 74, 227, 92, 192, 75, 174, 99, 192, 76, 204, 121, 64, 77, 142, 69, 192, 84, 75, 243, 48, 87, 73, 248, 192, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 8, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 4, 7, 4, 4, 0, 0, 79, 167, 0, 0, 0, 0, 84, 96, 0, 4, 0, 0, 112, 128, 1, 8, 0, 0, 98, 112, 0, 12, 0, 0, 98, 112, 0, 12, 0, 0, 112, 128, 1, 8, 0, 0, 98, 112, 1, 12, 0, 0, 84, 96, 0, 4, 0, 0, 98, 112, 1, 12, 0, 0, 98, 112, 0, 12, 76, 77, 84, 0, 43, 48, 54, 0, 43, 48, 56, 0, 43, 48, 55, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 55, 62, 45, 55, 10}, + + "zoneinfo/Asia/Ujung_Pandang": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 21, 128, 0, 0, 0, 161, 242, 93, 144, 186, 22, 213, 144, 203, 136, 29, 128, 210, 86, 238, 112, 0, 1, 2, 3, 4, 0, 0, 111, 240, 0, 0, 0, 0, 111, 240, 0, 4, 0, 0, 112, 128, 0, 8, 0, 0, 126, 144, 0, 12, 0, 0, 112, 128, 0, 16, 76, 77, 84, 0, 77, 77, 84, 0, 43, 48, 56, 0, 43, 48, 57, 0, 87, 73, 84, 65, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 87, 73, 84, 65, 45, 56, 10}, + + "zoneinfo/Asia/Ulaanbaatar": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 0, 4, 0, 0, 0, 16, 128, 0, 0, 0, 134, 211, 238, 76, 15, 11, 220, 144, 24, 233, 200, 128, 25, 218, 252, 240, 26, 204, 77, 128, 27, 188, 48, 112, 28, 172, 47, 128, 29, 156, 18, 112, 30, 140, 17, 128, 31, 123, 244, 112, 32, 107, 243, 128, 33, 91, 214, 112, 34, 75, 213, 128, 35, 59, 184, 112, 36, 43, 183, 128, 37, 27, 154, 112, 38, 11, 153, 128, 39, 4, 182, 240, 39, 244, 182, 0, 40, 228, 152, 240, 41, 212, 152, 0, 42, 196, 122, 240, 43, 180, 122, 0, 44, 164, 92, 240, 45, 148, 92, 0, 46, 132, 62, 240, 47, 116, 62, 0, 48, 100, 32, 240, 49, 93, 90, 128, 50, 77, 61, 112, 51, 61, 60, 128, 52, 45, 31, 112, 53, 29, 30, 128, 54, 13, 1, 112, 58, 233, 179, 160, 59, 180, 172, 144, 60, 164, 171, 160, 61, 148, 142, 144, 62, 132, 141, 160, 63, 116, 112, 144, 64, 100, 111, 160, 65, 84, 82, 144, 66, 68, 81, 160, 67, 52, 52, 144, 68, 36, 51, 160, 69, 29, 81, 16, 85, 21, 154, 160, 86, 5, 97, 112, 86, 245, 124, 160, 87, 229, 67, 112, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 3, 0, 0, 100, 52, 0, 0, 0, 0, 98, 112, 0, 4, 0, 0, 126, 144, 1, 8, 0, 0, 112, 128, 0, 12, 76, 77, 84, 0, 43, 48, 55, 0, 43, 48, 57, 0, 43, 48, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 56, 62, 45, 56, 10}, + + "zoneinfo/Asia/Ulan_Bator": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 0, 4, 0, 0, 0, 16, 128, 0, 0, 0, 134, 211, 238, 76, 15, 11, 220, 144, 24, 233, 200, 128, 25, 218, 252, 240, 26, 204, 77, 128, 27, 188, 48, 112, 28, 172, 47, 128, 29, 156, 18, 112, 30, 140, 17, 128, 31, 123, 244, 112, 32, 107, 243, 128, 33, 91, 214, 112, 34, 75, 213, 128, 35, 59, 184, 112, 36, 43, 183, 128, 37, 27, 154, 112, 38, 11, 153, 128, 39, 4, 182, 240, 39, 244, 182, 0, 40, 228, 152, 240, 41, 212, 152, 0, 42, 196, 122, 240, 43, 180, 122, 0, 44, 164, 92, 240, 45, 148, 92, 0, 46, 132, 62, 240, 47, 116, 62, 0, 48, 100, 32, 240, 49, 93, 90, 128, 50, 77, 61, 112, 51, 61, 60, 128, 52, 45, 31, 112, 53, 29, 30, 128, 54, 13, 1, 112, 58, 233, 179, 160, 59, 180, 172, 144, 60, 164, 171, 160, 61, 148, 142, 144, 62, 132, 141, 160, 63, 116, 112, 144, 64, 100, 111, 160, 65, 84, 82, 144, 66, 68, 81, 160, 67, 52, 52, 144, 68, 36, 51, 160, 69, 29, 81, 16, 85, 21, 154, 160, 86, 5, 97, 112, 86, 245, 124, 160, 87, 229, 67, 112, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 3, 0, 0, 100, 52, 0, 0, 0, 0, 98, 112, 0, 4, 0, 0, 126, 144, 1, 8, 0, 0, 112, 128, 0, 12, 76, 77, 84, 0, 43, 48, 55, 0, 43, 48, 57, 0, 43, 48, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 56, 62, 45, 56, 10}, + + "zoneinfo/Asia/Urumqi": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 176, 254, 186, 100, 127, 255, 255, 255, 0, 1, 1, 0, 0, 82, 28, 0, 0, 0, 0, 84, 96, 0, 4, 76, 77, 84, 0, 43, 48, 54, 0, 0, 0, 0, 0, 10, 60, 43, 48, 54, 62, 45, 54, 10}, + + "zoneinfo/Asia/Ust-Nera": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 68, 0, 0, 0, 12, 0, 0, 0, 24, 128, 0, 0, 0, 161, 219, 221, 186, 181, 163, 197, 0, 21, 39, 83, 112, 22, 24, 107, 192, 23, 8, 106, 208, 23, 249, 159, 64, 24, 233, 158, 80, 25, 218, 210, 192, 26, 204, 35, 80, 27, 188, 48, 112, 28, 172, 33, 112, 29, 156, 18, 112, 30, 140, 3, 112, 31, 123, 244, 112, 32, 107, 229, 112, 33, 91, 214, 112, 34, 75, 199, 112, 35, 59, 184, 112, 36, 43, 169, 112, 37, 27, 154, 112, 38, 11, 139, 112, 39, 4, 182, 240, 39, 244, 167, 240, 40, 228, 167, 0, 41, 120, 79, 0, 41, 212, 137, 240, 42, 196, 122, 240, 43, 180, 107, 240, 44, 164, 92, 240, 45, 148, 77, 240, 46, 132, 62, 240, 47, 116, 47, 240, 48, 100, 32, 240, 49, 93, 76, 112, 50, 114, 39, 112, 51, 61, 46, 112, 52, 82, 9, 112, 53, 29, 16, 112, 54, 49, 235, 112, 54, 252, 242, 112, 56, 27, 7, 240, 56, 220, 212, 112, 57, 250, 233, 240, 58, 188, 182, 112, 59, 218, 203, 240, 60, 165, 210, 240, 61, 186, 173, 240, 62, 133, 180, 240, 63, 154, 143, 240, 64, 101, 150, 240, 65, 131, 172, 112, 66, 69, 120, 240, 67, 99, 142, 112, 68, 37, 90, 240, 69, 67, 112, 112, 70, 5, 60, 240, 71, 35, 82, 112, 71, 238, 89, 112, 73, 3, 52, 112, 73, 206, 59, 112, 74, 227, 22, 112, 75, 174, 29, 112, 76, 204, 50, 240, 77, 141, 255, 112, 78, 109, 244, 64, 84, 75, 186, 240, 127, 255, 255, 255, 0, 1, 2, 4, 3, 4, 3, 4, 3, 4, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 7, 8, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 9, 5, 8, 8, 0, 0, 134, 70, 0, 0, 0, 0, 112, 128, 0, 4, 0, 0, 126, 144, 0, 8, 0, 0, 154, 176, 0, 12, 0, 0, 168, 192, 1, 16, 0, 0, 154, 176, 0, 12, 0, 0, 168, 192, 1, 16, 0, 0, 154, 176, 1, 12, 0, 0, 140, 160, 0, 20, 0, 0, 168, 192, 0, 16, 0, 0, 168, 192, 1, 16, 0, 0, 140, 160, 0, 20, 76, 77, 84, 0, 43, 48, 56, 0, 43, 48, 57, 0, 43, 49, 49, 0, 43, 49, 50, 0, 43, 49, 48, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 48, 62, 45, 49, 48, 10}, + + "zoneinfo/Asia/Vientiane": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 162, 106, 103, 196, 127, 255, 255, 255, 1, 2, 2, 0, 0, 94, 60, 0, 0, 0, 0, 94, 60, 0, 4, 0, 0, 98, 112, 0, 8, 76, 77, 84, 0, 66, 77, 84, 0, 43, 48, 55, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 55, 62, 45, 55, 10}, + + "zoneinfo/Asia/Vladivostok": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 67, 0, 0, 0, 11, 0, 0, 0, 16, 128, 0, 0, 0, 167, 89, 71, 93, 181, 163, 182, 240, 21, 39, 69, 96, 22, 24, 121, 208, 23, 8, 120, 224, 23, 249, 173, 80, 24, 233, 172, 96, 25, 218, 224, 208, 26, 204, 49, 96, 27, 188, 62, 128, 28, 172, 47, 128, 29, 156, 32, 128, 30, 140, 17, 128, 31, 124, 2, 128, 32, 107, 243, 128, 33, 91, 228, 128, 34, 75, 213, 128, 35, 59, 198, 128, 36, 43, 183, 128, 37, 27, 168, 128, 38, 11, 153, 128, 39, 4, 197, 0, 39, 244, 182, 0, 40, 228, 181, 16, 41, 120, 93, 16, 41, 212, 152, 0, 42, 196, 137, 0, 43, 180, 122, 0, 44, 164, 107, 0, 45, 148, 92, 0, 46, 132, 77, 0, 47, 116, 62, 0, 48, 100, 47, 0, 49, 93, 90, 128, 50, 114, 53, 128, 51, 61, 60, 128, 52, 82, 23, 128, 53, 29, 30, 128, 54, 49, 249, 128, 54, 253, 0, 128, 56, 27, 22, 0, 56, 220, 226, 128, 57, 250, 248, 0, 58, 188, 196, 128, 59, 218, 218, 0, 60, 165, 225, 0, 61, 186, 188, 0, 62, 133, 195, 0, 63, 154, 158, 0, 64, 101, 165, 0, 65, 131, 186, 128, 66, 69, 135, 0, 67, 99, 156, 128, 68, 37, 105, 0, 69, 67, 126, 128, 70, 5, 75, 0, 71, 35, 96, 128, 71, 238, 103, 128, 73, 3, 66, 128, 73, 206, 73, 128, 74, 227, 36, 128, 75, 174, 43, 128, 76, 204, 65, 0, 77, 142, 13, 128, 84, 75, 186, 240, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 8, 4, 4, 0, 0, 123, 163, 0, 0, 0, 0, 126, 144, 0, 4, 0, 0, 154, 176, 1, 8, 0, 0, 140, 160, 0, 12, 0, 0, 140, 160, 0, 12, 0, 0, 154, 176, 1, 8, 0, 0, 140, 160, 1, 12, 0, 0, 126, 144, 0, 4, 0, 0, 154, 176, 0, 8, 0, 0, 154, 176, 1, 8, 0, 0, 140, 160, 0, 12, 76, 77, 84, 0, 43, 48, 57, 0, 43, 49, 49, 0, 43, 49, 48, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 48, 62, 45, 49, 48, 10}, + + "zoneinfo/Asia/Yakutsk": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 67, 0, 0, 0, 11, 0, 0, 0, 16, 128, 0, 0, 0, 161, 219, 234, 94, 181, 163, 197, 0, 21, 39, 83, 112, 22, 24, 135, 224, 23, 8, 134, 240, 23, 249, 187, 96, 24, 233, 186, 112, 25, 218, 238, 224, 26, 204, 63, 112, 27, 188, 76, 144, 28, 172, 61, 144, 29, 156, 46, 144, 30, 140, 31, 144, 31, 124, 16, 144, 32, 108, 1, 144, 33, 91, 242, 144, 34, 75, 227, 144, 35, 59, 212, 144, 36, 43, 197, 144, 37, 27, 182, 144, 38, 11, 167, 144, 39, 4, 211, 16, 39, 244, 196, 16, 40, 228, 195, 32, 41, 120, 107, 32, 41, 212, 166, 16, 42, 196, 151, 16, 43, 180, 136, 16, 44, 164, 121, 16, 45, 148, 106, 16, 46, 132, 91, 16, 47, 116, 76, 16, 48, 100, 61, 16, 49, 93, 104, 144, 50, 114, 67, 144, 51, 61, 74, 144, 52, 82, 37, 144, 53, 29, 44, 144, 54, 50, 7, 144, 54, 253, 14, 144, 56, 27, 36, 16, 56, 220, 240, 144, 57, 251, 6, 16, 58, 188, 210, 144, 59, 218, 232, 16, 60, 165, 239, 16, 61, 186, 202, 16, 62, 133, 209, 16, 63, 154, 172, 16, 64, 101, 179, 16, 65, 131, 200, 144, 66, 69, 149, 16, 67, 99, 170, 144, 68, 37, 119, 16, 69, 67, 140, 144, 70, 5, 89, 16, 71, 35, 110, 144, 71, 238, 117, 144, 73, 3, 80, 144, 73, 206, 87, 144, 74, 227, 50, 144, 75, 174, 57, 144, 76, 204, 79, 16, 77, 142, 27, 144, 84, 75, 201, 0, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 8, 4, 4, 0, 0, 121, 162, 0, 0, 0, 0, 112, 128, 0, 4, 0, 0, 140, 160, 1, 8, 0, 0, 126, 144, 0, 12, 0, 0, 126, 144, 0, 12, 0, 0, 140, 160, 1, 8, 0, 0, 126, 144, 1, 12, 0, 0, 112, 128, 0, 4, 0, 0, 140, 160, 0, 8, 0, 0, 140, 160, 1, 8, 0, 0, 126, 144, 0, 12, 76, 77, 84, 0, 43, 48, 56, 0, 43, 49, 48, 0, 43, 48, 57, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 57, 62, 45, 57, 10}, + + "zoneinfo/Asia/Yangon": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 18, 128, 0, 0, 0, 161, 242, 115, 81, 203, 242, 252, 24, 209, 154, 103, 240, 127, 255, 255, 255, 1, 2, 3, 2, 2, 0, 0, 90, 47, 0, 0, 0, 0, 90, 47, 0, 4, 0, 0, 91, 104, 0, 8, 0, 0, 126, 144, 0, 14, 0, 0, 91, 104, 0, 8, 76, 77, 84, 0, 82, 77, 84, 0, 43, 48, 54, 51, 48, 0, 43, 48, 57, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 54, 51, 48, 62, 45, 54, 58, 51, 48, 10}, + + "zoneinfo/Asia/Yekaterinburg": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 68, 0, 0, 0, 12, 0, 0, 0, 20, 128, 0, 0, 0, 155, 95, 9, 39, 161, 18, 177, 255, 181, 163, 253, 64, 21, 39, 139, 176, 22, 24, 192, 32, 23, 8, 191, 48, 23, 249, 243, 160, 24, 233, 242, 176, 25, 219, 39, 32, 26, 204, 119, 176, 27, 188, 132, 208, 28, 172, 117, 208, 29, 156, 102, 208, 30, 140, 87, 208, 31, 124, 72, 208, 32, 108, 57, 208, 33, 92, 42, 208, 34, 76, 27, 208, 35, 60, 12, 208, 36, 43, 253, 208, 37, 27, 238, 208, 38, 11, 223, 208, 39, 5, 11, 80, 39, 244, 252, 80, 40, 228, 251, 96, 41, 120, 163, 96, 41, 212, 222, 80, 42, 196, 207, 80, 43, 180, 192, 80, 44, 164, 177, 80, 45, 148, 162, 80, 46, 132, 147, 80, 47, 116, 132, 80, 48, 100, 117, 80, 49, 93, 160, 208, 50, 114, 123, 208, 51, 61, 130, 208, 52, 82, 93, 208, 53, 29, 100, 208, 54, 50, 63, 208, 54, 253, 70, 208, 56, 27, 92, 80, 56, 221, 40, 208, 57, 251, 62, 80, 58, 189, 10, 208, 59, 219, 32, 80, 60, 166, 39, 80, 61, 187, 2, 80, 62, 134, 9, 80, 63, 154, 228, 80, 64, 101, 235, 80, 65, 132, 0, 208, 66, 69, 205, 80, 67, 99, 226, 208, 68, 37, 175, 80, 69, 67, 196, 208, 70, 5, 145, 80, 71, 35, 166, 208, 71, 238, 173, 208, 73, 3, 136, 208, 73, 206, 143, 208, 74, 227, 106, 208, 75, 174, 113, 208, 76, 204, 135, 80, 77, 142, 83, 208, 84, 76, 1, 64, 127, 255, 255, 255, 0, 1, 2, 4, 3, 4, 3, 4, 3, 4, 3, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 7, 8, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 9, 5, 5, 0, 0, 56, 217, 0, 0, 0, 0, 52, 193, 0, 4, 0, 0, 56, 64, 0, 8, 0, 0, 84, 96, 1, 12, 0, 0, 70, 80, 0, 16, 0, 0, 70, 80, 0, 16, 0, 0, 84, 96, 1, 12, 0, 0, 70, 80, 1, 16, 0, 0, 56, 64, 0, 8, 0, 0, 84, 96, 0, 12, 0, 0, 84, 96, 1, 12, 0, 0, 70, 80, 0, 16, 76, 77, 84, 0, 80, 77, 84, 0, 43, 48, 52, 0, 43, 48, 54, 0, 43, 48, 53, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 53, 62, 45, 53, 10}, + + "zoneinfo/Asia/Yerevan": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 66, 0, 0, 0, 10, 0, 0, 0, 16, 128, 0, 0, 0, 170, 25, 154, 72, 231, 218, 12, 80, 21, 39, 153, 192, 22, 24, 206, 48, 23, 8, 205, 64, 23, 250, 1, 176, 24, 234, 0, 192, 25, 219, 53, 48, 26, 204, 133, 192, 27, 188, 146, 224, 28, 172, 131, 224, 29, 156, 116, 224, 30, 140, 101, 224, 31, 124, 86, 224, 32, 108, 71, 224, 33, 92, 56, 224, 34, 76, 41, 224, 35, 60, 26, 224, 36, 44, 11, 224, 37, 27, 252, 224, 38, 11, 237, 224, 39, 5, 25, 96, 39, 245, 10, 96, 40, 229, 9, 112, 41, 212, 250, 112, 42, 196, 235, 112, 43, 180, 220, 112, 44, 164, 205, 112, 45, 148, 190, 112, 46, 132, 175, 112, 47, 116, 160, 112, 48, 100, 145, 112, 50, 201, 112, 192, 51, 61, 144, 224, 52, 82, 107, 224, 53, 29, 114, 224, 54, 50, 77, 224, 54, 253, 84, 224, 56, 27, 106, 96, 56, 221, 54, 224, 57, 251, 76, 96, 58, 189, 24, 224, 59, 219, 46, 96, 60, 166, 53, 96, 61, 187, 16, 96, 62, 134, 23, 96, 63, 154, 242, 96, 64, 101, 249, 96, 65, 132, 14, 224, 66, 69, 219, 96, 67, 99, 240, 224, 68, 37, 189, 96, 69, 67, 210, 224, 70, 5, 159, 96, 71, 35, 180, 224, 71, 238, 187, 224, 73, 3, 150, 224, 73, 206, 157, 224, 74, 227, 120, 224, 75, 174, 127, 224, 76, 204, 149, 96, 77, 30, 54, 64, 77, 142, 97, 224, 78, 172, 119, 96, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 6, 7, 6, 7, 6, 7, 6, 4, 3, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 3, 5, 4, 4, 0, 0, 41, 184, 0, 0, 0, 0, 42, 48, 0, 4, 0, 0, 70, 80, 1, 8, 0, 0, 56, 64, 0, 12, 0, 0, 56, 64, 0, 12, 0, 0, 70, 80, 1, 8, 0, 0, 56, 64, 1, 12, 0, 0, 42, 48, 0, 4, 0, 0, 70, 80, 1, 8, 0, 0, 56, 64, 0, 12, 76, 77, 84, 0, 43, 48, 51, 0, 43, 48, 53, 0, 43, 48, 52, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 52, 62, 45, 52, 10}, + + "zoneinfo/Atlantic/Azores": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 222, 0, 0, 0, 12, 0, 0, 0, 24, 128, 0, 0, 0, 146, 230, 169, 88, 155, 75, 137, 144, 155, 254, 227, 160, 156, 157, 9, 144, 157, 201, 159, 144, 158, 127, 142, 144, 159, 170, 211, 16, 160, 95, 112, 144, 161, 140, 6, 144, 162, 65, 245, 144, 163, 110, 139, 144, 164, 35, 41, 16, 165, 79, 191, 16, 170, 6, 11, 144, 170, 244, 171, 16, 173, 201, 196, 16, 174, 167, 64, 16, 175, 160, 107, 144, 176, 135, 34, 16, 177, 137, 136, 16, 178, 112, 62, 144, 179, 114, 164, 144, 180, 80, 32, 144, 183, 50, 104, 144, 184, 15, 228, 144, 184, 255, 213, 144, 185, 239, 198, 144, 188, 200, 212, 16, 189, 184, 197, 16, 190, 159, 123, 144, 191, 152, 167, 16, 192, 155, 13, 16, 193, 120, 137, 16, 194, 104, 122, 16, 195, 88, 107, 16, 196, 63, 33, 144, 197, 56, 77, 16, 198, 58, 179, 16, 199, 88, 200, 144, 199, 217, 251, 144, 201, 1, 75, 144, 201, 241, 60, 144, 202, 226, 127, 16, 203, 181, 111, 16, 203, 236, 192, 0, 204, 128, 104, 0, 204, 220, 191, 16, 205, 149, 81, 16, 205, 195, 103, 128, 206, 114, 191, 0, 206, 197, 219, 144, 207, 117, 51, 16, 207, 172, 132, 0, 208, 82, 161, 0, 208, 165, 189, 144, 209, 85, 21, 16, 209, 140, 102, 0, 210, 50, 131, 0, 210, 133, 159, 144, 211, 89, 225, 16, 212, 73, 210, 16, 213, 57, 237, 64, 214, 41, 222, 64, 215, 25, 207, 64, 216, 9, 192, 64, 216, 249, 177, 64, 217, 233, 162, 64, 220, 185, 117, 64, 221, 178, 160, 192, 222, 162, 145, 192, 223, 146, 130, 192, 224, 130, 115, 192, 225, 114, 100, 192, 226, 98, 85, 192, 227, 82, 70, 192, 228, 66, 55, 192, 229, 50, 40, 192, 230, 34, 25, 192, 231, 27, 69, 64, 232, 11, 54, 64, 232, 251, 39, 64, 233, 235, 24, 64, 234, 219, 9, 64, 235, 202, 250, 64, 236, 186, 235, 64, 237, 170, 220, 64, 238, 154, 205, 64, 239, 138, 190, 64, 240, 122, 175, 64, 241, 106, 160, 64, 242, 99, 203, 192, 243, 83, 188, 192, 244, 67, 173, 192, 245, 51, 158, 192, 246, 35, 143, 192, 247, 19, 128, 192, 248, 3, 113, 192, 248, 243, 98, 192, 13, 155, 41, 16, 14, 139, 26, 16, 15, 132, 69, 144, 16, 116, 54, 144, 17, 100, 39, 144, 18, 84, 38, 160, 19, 68, 9, 144, 20, 52, 8, 160, 21, 35, 249, 160, 22, 19, 234, 160, 23, 3, 219, 160, 23, 243, 204, 160, 24, 227, 203, 176, 25, 211, 174, 160, 26, 195, 159, 160, 27, 188, 203, 32, 28, 172, 188, 32, 29, 156, 173, 32, 30, 140, 158, 32, 31, 124, 143, 32, 32, 108, 128, 32, 33, 92, 113, 32, 34, 76, 98, 32, 35, 60, 83, 32, 36, 44, 68, 32, 37, 28, 53, 32, 38, 12, 38, 32, 39, 5, 81, 160, 39, 245, 66, 160, 40, 229, 51, 160, 41, 213, 36, 160, 42, 197, 21, 160, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 127, 255, 255, 255, 1, 3, 2, 3, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 4, 5, 4, 6, 4, 5, 4, 6, 4, 5, 4, 6, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 8, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 9, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 11, 255, 255, 231, 240, 0, 0, 255, 255, 229, 40, 0, 4, 255, 255, 241, 240, 1, 8, 255, 255, 227, 224, 0, 12, 255, 255, 241, 240, 1, 8, 255, 255, 227, 224, 0, 12, 0, 0, 0, 0, 1, 16, 255, 255, 241, 240, 0, 8, 255, 255, 241, 240, 0, 8, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 1, 16, 255, 255, 241, 240, 0, 8, 76, 77, 84, 0, 72, 77, 84, 0, 45, 48, 49, 0, 45, 48, 50, 0, 43, 48, 48, 0, 87, 69, 84, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 10, 60, 45, 48, 49, 62, 49, 60, 43, 48, 48, 62, 44, 77, 51, 46, 53, 46, 48, 47, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 49, 10}, + + "zoneinfo/Atlantic/Bermuda": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 130, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 180, 195, 29, 230, 8, 32, 179, 96, 9, 16, 150, 80, 10, 0, 149, 96, 10, 240, 120, 80, 11, 224, 119, 96, 12, 217, 148, 208, 13, 192, 89, 96, 14, 185, 118, 208, 15, 169, 117, 224, 16, 153, 88, 208, 17, 137, 87, 224, 18, 121, 58, 208, 19, 105, 57, 224, 20, 89, 28, 208, 21, 73, 27, 224, 22, 56, 254, 208, 23, 40, 253, 224, 24, 34, 27, 80, 25, 8, 223, 224, 26, 1, 253, 80, 26, 241, 252, 96, 27, 225, 223, 80, 28, 209, 222, 96, 29, 193, 193, 80, 30, 177, 192, 96, 31, 161, 163, 80, 32, 117, 242, 224, 33, 129, 133, 80, 34, 85, 212, 224, 35, 106, 161, 208, 36, 53, 182, 224, 37, 74, 131, 208, 38, 21, 152, 224, 39, 42, 101, 208, 39, 254, 181, 96, 41, 10, 71, 208, 41, 222, 151, 96, 42, 234, 41, 208, 43, 190, 121, 96, 44, 211, 70, 80, 45, 158, 91, 96, 46, 179, 40, 80, 47, 126, 61, 96, 48, 147, 10, 80, 49, 103, 89, 224, 50, 114, 236, 80, 51, 71, 59, 224, 52, 82, 206, 80, 53, 39, 29, 224, 54, 50, 176, 80, 55, 6, 255, 224, 56, 27, 204, 208, 56, 230, 225, 224, 57, 251, 174, 208, 58, 198, 195, 224, 59, 219, 144, 208, 60, 175, 224, 96, 61, 187, 114, 208, 62, 143, 194, 96, 63, 155, 84, 208, 64, 111, 164, 96, 65, 132, 113, 80, 66, 79, 134, 96, 67, 100, 83, 80, 68, 47, 104, 96, 69, 68, 53, 80, 69, 243, 154, 224, 71, 45, 81, 208, 71, 211, 124, 224, 73, 13, 51, 208, 73, 179, 94, 224, 74, 237, 21, 208, 75, 156, 123, 96, 76, 214, 50, 80, 77, 124, 93, 96, 78, 182, 20, 80, 79, 92, 63, 96, 80, 149, 246, 80, 81, 60, 33, 96, 82, 117, 216, 80, 83, 28, 3, 96, 84, 85, 186, 80, 84, 251, 229, 96, 86, 53, 156, 80, 86, 229, 1, 224, 88, 30, 184, 208, 88, 196, 227, 224, 89, 254, 154, 208, 90, 164, 197, 224, 91, 222, 124, 208, 92, 132, 167, 224, 93, 190, 94, 208, 94, 100, 137, 224, 95, 158, 64, 208, 96, 77, 166, 96, 97, 135, 93, 80, 98, 45, 136, 96, 99, 103, 63, 80, 100, 13, 106, 96, 101, 71, 33, 80, 101, 237, 76, 96, 103, 39, 3, 80, 103, 205, 46, 96, 105, 6, 229, 80, 105, 173, 16, 96, 106, 230, 199, 80, 107, 150, 44, 224, 108, 207, 227, 208, 109, 118, 14, 224, 110, 175, 197, 208, 111, 85, 240, 224, 112, 143, 167, 208, 113, 53, 210, 224, 114, 111, 137, 208, 115, 21, 180, 224, 116, 79, 107, 208, 116, 254, 209, 96, 118, 56, 136, 80, 118, 222, 179, 96, 120, 24, 106, 80, 120, 190, 149, 96, 121, 248, 76, 80, 122, 158, 119, 96, 123, 216, 46, 80, 124, 126, 89, 96, 125, 184, 16, 80, 126, 94, 59, 96, 127, 151, 242, 80, 0, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 255, 255, 195, 58, 0, 0, 255, 255, 199, 192, 0, 4, 255, 255, 213, 208, 1, 8, 76, 77, 84, 0, 65, 83, 84, 0, 65, 68, 84, 0, 0, 0, 0, 0, 0, 0, 10, 65, 83, 84, 52, 65, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/Atlantic/Canary": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 119, 0, 0, 0, 6, 0, 0, 0, 17, 128, 0, 0, 0, 166, 4, 92, 240, 212, 65, 247, 32, 19, 77, 54, 0, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 0, 1, 2, 3, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 255, 255, 241, 144, 0, 0, 255, 255, 241, 240, 0, 4, 0, 0, 0, 0, 0, 8, 0, 0, 14, 16, 1, 12, 0, 0, 0, 0, 0, 8, 0, 0, 14, 16, 1, 12, 76, 77, 84, 0, 45, 48, 49, 0, 87, 69, 84, 0, 87, 69, 83, 84, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 10, 87, 69, 84, 48, 87, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 49, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/Atlantic/Cape_Verde": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 4, 0, 0, 0, 12, 128, 0, 0, 0, 137, 127, 81, 140, 204, 149, 156, 32, 210, 116, 124, 16, 11, 23, 247, 64, 127, 255, 255, 255, 0, 1, 2, 1, 3, 3, 255, 255, 233, 244, 0, 0, 255, 255, 227, 224, 0, 4, 255, 255, 241, 240, 1, 8, 255, 255, 241, 240, 0, 8, 76, 77, 84, 0, 45, 48, 50, 0, 45, 48, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 49, 62, 49, 10}, + + "zoneinfo/Atlantic/Faeroe": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 116, 0, 0, 0, 4, 0, 0, 0, 13, 128, 0, 0, 0, 139, 109, 164, 88, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 0, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 255, 255, 249, 168, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 14, 16, 1, 8, 0, 0, 0, 0, 0, 4, 76, 77, 84, 0, 87, 69, 84, 0, 87, 69, 83, 84, 0, 0, 0, 1, 1, 0, 0, 1, 1, 10, 87, 69, 84, 48, 87, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 49, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/Atlantic/Faroe": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 116, 0, 0, 0, 4, 0, 0, 0, 13, 128, 0, 0, 0, 139, 109, 164, 88, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 0, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 255, 255, 249, 168, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 14, 16, 1, 8, 0, 0, 0, 0, 0, 4, 76, 77, 84, 0, 87, 69, 84, 0, 87, 69, 83, 84, 0, 0, 0, 1, 1, 0, 0, 1, 1, 10, 87, 69, 84, 48, 87, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 49, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/Atlantic/Jan_Mayen": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 142, 0, 0, 0, 7, 0, 0, 0, 13, 128, 0, 0, 0, 155, 39, 227, 0, 155, 212, 123, 96, 200, 183, 77, 96, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 130, 37, 16, 209, 114, 22, 16, 210, 98, 7, 16, 235, 175, 32, 144, 236, 168, 76, 16, 237, 152, 61, 16, 238, 136, 46, 16, 239, 120, 31, 16, 240, 104, 16, 16, 241, 88, 1, 16, 242, 71, 242, 16, 243, 55, 227, 16, 244, 39, 212, 16, 245, 23, 197, 16, 246, 16, 240, 144, 247, 47, 6, 16, 247, 240, 210, 144, 18, 206, 151, 240, 19, 77, 68, 16, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 1, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 0, 0, 10, 20, 0, 0, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 76, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Atlantic/Madeira": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 221, 0, 0, 0, 12, 0, 0, 0, 29, 128, 0, 0, 0, 146, 230, 158, 88, 155, 75, 123, 128, 155, 254, 213, 144, 156, 156, 251, 128, 157, 201, 145, 128, 158, 127, 128, 128, 159, 170, 197, 0, 160, 95, 98, 128, 161, 139, 248, 128, 162, 65, 231, 128, 163, 110, 125, 128, 164, 35, 27, 0, 165, 79, 177, 0, 170, 5, 253, 128, 170, 244, 157, 0, 173, 201, 182, 0, 174, 167, 50, 0, 175, 160, 93, 128, 176, 135, 20, 0, 177, 137, 122, 0, 178, 112, 48, 128, 179, 114, 150, 128, 180, 80, 18, 128, 183, 50, 90, 128, 184, 15, 214, 128, 184, 255, 199, 128, 185, 239, 184, 128, 188, 200, 198, 0, 189, 184, 183, 0, 190, 159, 109, 128, 191, 152, 153, 0, 192, 154, 255, 0, 193, 120, 123, 0, 194, 104, 108, 0, 195, 88, 93, 0, 196, 63, 19, 128, 197, 56, 63, 0, 198, 58, 165, 0, 199, 88, 186, 128, 199, 217, 237, 128, 201, 1, 61, 128, 201, 241, 46, 128, 202, 226, 113, 0, 203, 181, 97, 0, 203, 236, 177, 240, 204, 128, 89, 240, 204, 220, 177, 0, 205, 149, 67, 0, 205, 195, 89, 112, 206, 114, 176, 240, 206, 197, 205, 128, 207, 117, 37, 0, 207, 172, 117, 240, 208, 82, 146, 240, 208, 165, 175, 128, 209, 85, 7, 0, 209, 140, 87, 240, 210, 50, 116, 240, 210, 133, 145, 128, 211, 89, 211, 0, 212, 73, 196, 0, 213, 57, 223, 48, 214, 41, 208, 48, 215, 25, 193, 48, 216, 9, 178, 48, 216, 249, 163, 48, 217, 233, 148, 48, 220, 185, 103, 48, 221, 178, 146, 176, 222, 162, 131, 176, 223, 146, 116, 176, 224, 130, 101, 176, 225, 114, 86, 176, 226, 98, 71, 176, 227, 82, 56, 176, 228, 66, 41, 176, 229, 50, 26, 176, 230, 34, 11, 176, 231, 27, 55, 48, 232, 11, 40, 48, 232, 251, 25, 48, 233, 235, 10, 48, 234, 218, 251, 48, 235, 202, 236, 48, 236, 186, 221, 48, 237, 170, 206, 48, 238, 154, 191, 48, 239, 138, 176, 48, 240, 122, 161, 48, 241, 106, 146, 48, 242, 99, 189, 176, 243, 83, 174, 176, 244, 67, 159, 176, 245, 51, 144, 176, 246, 35, 129, 176, 247, 19, 114, 176, 248, 3, 99, 176, 248, 243, 84, 176, 13, 155, 27, 0, 14, 139, 12, 0, 15, 132, 55, 128, 16, 116, 40, 128, 17, 100, 25, 128, 18, 84, 24, 144, 19, 67, 251, 128, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 189, 160, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 3, 2, 3, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 4, 5, 4, 6, 4, 5, 4, 6, 4, 5, 4, 6, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 9, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 255, 255, 240, 40, 0, 0, 255, 255, 240, 40, 0, 4, 0, 0, 0, 0, 1, 8, 255, 255, 241, 240, 0, 12, 0, 0, 0, 0, 1, 8, 255, 255, 241, 240, 0, 12, 0, 0, 14, 16, 1, 16, 0, 0, 14, 16, 1, 20, 0, 0, 0, 0, 0, 25, 0, 0, 0, 0, 0, 25, 0, 0, 0, 0, 0, 25, 0, 0, 14, 16, 1, 20, 76, 77, 84, 0, 70, 77, 84, 0, 43, 48, 48, 0, 45, 48, 49, 0, 43, 48, 49, 0, 87, 69, 83, 84, 0, 87, 69, 84, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 10, 87, 69, 84, 48, 87, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 49, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/Atlantic/Reykjavik": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 69, 0, 0, 0, 6, 0, 0, 0, 16, 128, 0, 0, 0, 139, 96, 131, 160, 156, 145, 30, 0, 157, 209, 136, 144, 158, 114, 81, 128, 159, 213, 3, 16, 160, 83, 133, 0, 161, 182, 54, 144, 164, 60, 39, 128, 164, 185, 116, 16, 198, 77, 26, 0, 199, 61, 39, 32, 199, 218, 23, 176, 201, 38, 67, 160, 201, 195, 38, 32, 203, 6, 37, 160, 203, 172, 66, 160, 204, 220, 205, 32, 205, 140, 36, 160, 206, 188, 175, 32, 207, 108, 6, 160, 208, 156, 145, 32, 209, 75, 232, 160, 210, 133, 173, 160, 211, 43, 202, 160, 212, 101, 143, 160, 213, 57, 209, 32, 214, 69, 113, 160, 215, 25, 179, 32, 216, 37, 83, 160, 216, 249, 149, 32, 218, 14, 112, 32, 218, 217, 119, 32, 219, 229, 23, 160, 220, 185, 89, 32, 221, 206, 52, 32, 222, 162, 117, 160, 223, 174, 22, 32, 224, 130, 87, 160, 225, 141, 248, 32, 226, 98, 57, 160, 227, 109, 218, 32, 228, 66, 27, 160, 229, 77, 188, 32, 230, 33, 253, 160, 231, 54, 216, 160, 232, 11, 26, 32, 233, 22, 186, 160, 233, 234, 252, 32, 234, 246, 156, 160, 235, 202, 222, 32, 236, 214, 126, 160, 237, 170, 192, 32, 238, 182, 96, 160, 239, 138, 162, 32, 240, 150, 66, 160, 241, 106, 132, 32, 242, 127, 95, 32, 243, 83, 160, 160, 244, 95, 65, 32, 245, 51, 130, 160, 246, 63, 35, 32, 247, 19, 100, 160, 248, 31, 5, 32, 248, 243, 70, 160, 249, 254, 231, 32, 250, 211, 40, 160, 251, 232, 3, 160, 252, 188, 69, 32, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 5, 255, 255, 235, 96, 0, 0, 0, 0, 0, 0, 1, 4, 255, 255, 241, 240, 0, 8, 255, 255, 241, 240, 0, 8, 0, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 12, 76, 77, 84, 0, 43, 48, 48, 0, 45, 48, 49, 0, 71, 77, 84, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Atlantic/South_Georgia": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 127, 255, 255, 255, 1, 1, 255, 255, 221, 192, 0, 0, 255, 255, 227, 224, 0, 4, 76, 77, 84, 0, 45, 48, 50, 0, 0, 0, 0, 0, 10, 60, 45, 48, 50, 62, 50, 10}, + + "zoneinfo/Atlantic/St_Helena": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 146, 230, 146, 72, 0, 1, 255, 255, 252, 56, 0, 0, 0, 0, 0, 0, 0, 4, 76, 77, 84, 0, 71, 77, 84, 0, 0, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Atlantic/Stanley": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 71, 0, 0, 0, 7, 0, 0, 0, 20, 128, 0, 0, 0, 147, 68, 95, 60, 195, 79, 90, 192, 196, 54, 3, 48, 197, 47, 60, 192, 198, 21, 229, 48, 199, 24, 89, 64, 199, 255, 1, 176, 200, 248, 59, 64, 201, 222, 227, 176, 202, 216, 29, 64, 203, 190, 197, 176, 204, 183, 255, 64, 205, 54, 129, 48, 25, 17, 254, 64, 25, 211, 188, 176, 26, 241, 196, 32, 27, 170, 100, 48, 28, 209, 166, 32, 29, 138, 70, 48, 30, 168, 91, 176, 31, 106, 54, 64, 32, 136, 61, 176, 33, 74, 24, 64, 34, 104, 31, 176, 35, 41, 250, 64, 36, 72, 1, 176, 37, 9, 220, 64, 38, 49, 30, 48, 38, 233, 190, 64, 40, 17, 0, 48, 40, 210, 218, 192, 41, 240, 226, 48, 42, 178, 188, 192, 43, 208, 196, 48, 44, 146, 158, 192, 45, 176, 166, 48, 46, 114, 128, 192, 47, 144, 136, 48, 48, 82, 98, 192, 49, 121, 164, 176, 50, 59, 127, 64, 51, 89, 134, 176, 52, 27, 97, 64, 53, 57, 104, 176, 53, 251, 67, 64, 55, 25, 74, 176, 55, 219, 37, 64, 56, 249, 44, 176, 57, 187, 7, 64, 58, 217, 42, 208, 59, 145, 202, 224, 60, 194, 71, 80, 61, 113, 172, 224, 62, 162, 41, 80, 63, 90, 201, 96, 64, 130, 11, 80, 65, 58, 171, 96, 66, 97, 237, 80, 67, 26, 141, 96, 68, 65, 207, 80, 68, 250, 111, 96, 70, 33, 177, 80, 70, 218, 81, 96, 72, 10, 205, 208, 72, 195, 109, 224, 73, 234, 175, 208, 74, 163, 79, 224, 75, 202, 145, 208, 76, 131, 49, 224, 127, 255, 255, 255, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 5, 4, 5, 4, 5, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 5, 5, 255, 255, 201, 196, 0, 0, 255, 255, 201, 196, 0, 4, 255, 255, 213, 208, 1, 8, 255, 255, 199, 192, 0, 12, 255, 255, 227, 224, 1, 16, 255, 255, 213, 208, 0, 8, 255, 255, 213, 208, 1, 8, 76, 77, 84, 0, 83, 77, 84, 0, 45, 48, 51, 0, 45, 48, 52, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/Australia/ACT": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 142, 0, 0, 0, 5, 0, 0, 0, 14, 128, 0, 0, 0, 156, 78, 166, 156, 156, 188, 32, 240, 203, 84, 179, 0, 203, 199, 87, 112, 204, 183, 86, 128, 205, 167, 57, 112, 206, 160, 115, 0, 207, 135, 27, 112, 3, 112, 57, 128, 4, 13, 28, 0, 5, 80, 27, 128, 5, 246, 56, 128, 7, 47, 253, 128, 7, 214, 26, 128, 9, 15, 223, 128, 9, 181, 252, 128, 10, 239, 193, 128, 11, 159, 25, 0, 12, 216, 222, 0, 13, 126, 251, 0, 14, 184, 192, 0, 15, 94, 221, 0, 16, 152, 162, 0, 17, 62, 191, 0, 18, 120, 132, 0, 19, 30, 161, 0, 20, 88, 102, 0, 20, 254, 131, 0, 22, 56, 72, 0, 23, 12, 137, 128, 24, 33, 100, 128, 24, 199, 129, 128, 26, 1, 70, 128, 26, 167, 99, 128, 27, 225, 40, 128, 28, 135, 69, 128, 29, 193, 10, 128, 30, 121, 156, 128, 31, 151, 178, 0, 32, 89, 126, 128, 33, 128, 206, 128, 34, 66, 155, 0, 35, 105, 235, 0, 36, 34, 125, 0, 37, 73, 205, 0, 37, 239, 234, 0, 39, 41, 175, 0, 39, 207, 204, 0, 41, 9, 145, 0, 41, 175, 174, 0, 42, 233, 115, 0, 43, 152, 202, 128, 44, 210, 143, 128, 45, 120, 172, 128, 46, 178, 113, 128, 47, 88, 142, 128, 48, 146, 83, 128, 49, 93, 90, 128, 50, 114, 53, 128, 51, 61, 60, 128, 52, 82, 23, 128, 53, 29, 30, 128, 54, 49, 249, 128, 54, 253, 0, 128, 56, 27, 22, 0, 56, 220, 226, 128, 57, 167, 233, 128, 58, 188, 196, 128, 59, 218, 218, 0, 60, 165, 225, 0, 61, 186, 188, 0, 62, 133, 195, 0, 63, 154, 158, 0, 64, 101, 165, 0, 65, 131, 186, 128, 66, 69, 135, 0, 67, 99, 156, 128, 68, 46, 163, 128, 69, 67, 126, 128, 70, 5, 75, 0, 71, 35, 96, 128, 71, 247, 162, 0, 72, 231, 147, 0, 73, 215, 132, 0, 74, 199, 117, 0, 75, 183, 102, 0, 76, 167, 87, 0, 77, 151, 72, 0, 78, 135, 57, 0, 79, 119, 42, 0, 80, 112, 85, 128, 81, 96, 70, 128, 82, 80, 55, 128, 83, 64, 40, 128, 84, 48, 25, 128, 85, 32, 10, 128, 86, 15, 251, 128, 86, 255, 236, 128, 87, 239, 221, 128, 88, 223, 206, 128, 89, 207, 191, 128, 90, 191, 176, 128, 91, 184, 220, 0, 92, 168, 205, 0, 93, 152, 190, 0, 94, 136, 175, 0, 95, 120, 160, 0, 96, 104, 145, 0, 97, 88, 130, 0, 98, 72, 115, 0, 99, 56, 100, 0, 100, 40, 85, 0, 101, 24, 70, 0, 102, 17, 113, 128, 103, 1, 98, 128, 103, 241, 83, 128, 104, 225, 68, 128, 105, 209, 53, 128, 106, 193, 38, 128, 107, 177, 23, 128, 108, 161, 8, 128, 109, 144, 249, 128, 110, 128, 234, 128, 111, 112, 219, 128, 112, 106, 7, 0, 113, 89, 248, 0, 114, 73, 233, 0, 115, 57, 218, 0, 116, 41, 203, 0, 117, 25, 188, 0, 118, 9, 173, 0, 118, 249, 158, 0, 119, 233, 143, 0, 120, 217, 128, 0, 121, 201, 113, 0, 122, 185, 98, 0, 123, 178, 141, 128, 124, 162, 126, 128, 125, 146, 111, 128, 126, 130, 96, 128, 127, 114, 81, 128, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 0, 0, 141, 196, 0, 0, 0, 0, 154, 176, 1, 4, 0, 0, 140, 160, 0, 9, 0, 0, 154, 176, 1, 4, 0, 0, 140, 160, 0, 9, 76, 77, 84, 0, 65, 69, 68, 84, 0, 65, 69, 83, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 65, 69, 83, 84, 45, 49, 48, 65, 69, 68, 84, 44, 77, 49, 48, 46, 49, 46, 48, 44, 77, 52, 46, 49, 46, 48, 47, 51, 10}, + + "zoneinfo/Australia/Adelaide": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 142, 0, 0, 0, 5, 0, 0, 0, 10, 128, 0, 0, 0, 156, 78, 173, 164, 156, 188, 39, 248, 203, 84, 186, 8, 203, 199, 94, 120, 204, 183, 93, 136, 205, 167, 64, 120, 206, 160, 122, 8, 207, 135, 34, 120, 3, 112, 64, 136, 4, 13, 35, 8, 5, 80, 34, 136, 5, 246, 63, 136, 7, 48, 4, 136, 7, 214, 33, 136, 9, 15, 230, 136, 9, 182, 3, 136, 10, 239, 200, 136, 11, 159, 32, 8, 12, 216, 229, 8, 13, 127, 2, 8, 14, 184, 199, 8, 15, 94, 228, 8, 16, 152, 169, 8, 17, 62, 198, 8, 18, 120, 139, 8, 19, 30, 168, 8, 20, 88, 109, 8, 20, 254, 138, 8, 22, 56, 79, 8, 22, 231, 166, 136, 24, 33, 107, 136, 24, 199, 136, 136, 26, 1, 77, 136, 26, 167, 106, 136, 27, 225, 47, 136, 28, 135, 76, 136, 29, 193, 17, 136, 30, 121, 163, 136, 31, 151, 185, 8, 32, 89, 133, 136, 33, 128, 213, 136, 34, 66, 162, 8, 35, 105, 242, 8, 36, 34, 132, 8, 37, 73, 212, 8, 38, 2, 102, 8, 39, 41, 182, 8, 39, 207, 211, 8, 41, 9, 152, 8, 41, 203, 100, 136, 42, 233, 122, 8, 43, 152, 209, 136, 44, 210, 150, 136, 45, 139, 40, 136, 46, 178, 120, 136, 47, 116, 69, 8, 48, 146, 90, 136, 49, 93, 97, 136, 50, 114, 60, 136, 51, 61, 67, 136, 52, 82, 30, 136, 53, 29, 37, 136, 54, 50, 0, 136, 54, 253, 7, 136, 56, 27, 29, 8, 56, 220, 233, 136, 57, 250, 255, 8, 58, 188, 203, 136, 59, 218, 225, 8, 60, 165, 232, 8, 61, 186, 195, 8, 62, 133, 202, 8, 63, 154, 165, 8, 64, 101, 172, 8, 65, 131, 193, 136, 66, 69, 142, 8, 67, 99, 163, 136, 68, 46, 170, 136, 69, 67, 133, 136, 70, 5, 82, 8, 71, 35, 103, 136, 71, 247, 169, 8, 72, 231, 154, 8, 73, 215, 139, 8, 74, 199, 124, 8, 75, 183, 109, 8, 76, 167, 94, 8, 77, 151, 79, 8, 78, 135, 64, 8, 79, 119, 49, 8, 80, 112, 92, 136, 81, 96, 77, 136, 82, 80, 62, 136, 83, 64, 47, 136, 84, 48, 32, 136, 85, 32, 17, 136, 86, 16, 2, 136, 86, 255, 243, 136, 87, 239, 228, 136, 88, 223, 213, 136, 89, 207, 198, 136, 90, 191, 183, 136, 91, 184, 227, 8, 92, 168, 212, 8, 93, 152, 197, 8, 94, 136, 182, 8, 95, 120, 167, 8, 96, 104, 152, 8, 97, 88, 137, 8, 98, 72, 122, 8, 99, 56, 107, 8, 100, 40, 92, 8, 101, 24, 77, 8, 102, 17, 120, 136, 103, 1, 105, 136, 103, 241, 90, 136, 104, 225, 75, 136, 105, 209, 60, 136, 106, 193, 45, 136, 107, 177, 30, 136, 108, 161, 15, 136, 109, 145, 0, 136, 110, 128, 241, 136, 111, 112, 226, 136, 112, 106, 14, 8, 113, 89, 255, 8, 114, 73, 240, 8, 115, 57, 225, 8, 116, 41, 210, 8, 117, 25, 195, 8, 118, 9, 180, 8, 118, 249, 165, 8, 119, 233, 150, 8, 120, 217, 135, 8, 121, 201, 120, 8, 122, 185, 105, 8, 123, 178, 148, 136, 124, 162, 133, 136, 125, 146, 118, 136, 126, 130, 103, 136, 127, 114, 88, 136, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 0, 0, 126, 144, 0, 0, 0, 0, 147, 168, 1, 5, 0, 0, 133, 152, 0, 0, 0, 0, 147, 168, 1, 5, 0, 0, 133, 152, 0, 0, 65, 67, 83, 84, 0, 65, 67, 68, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 65, 67, 83, 84, 45, 57, 58, 51, 48, 65, 67, 68, 84, 44, 77, 49, 48, 46, 49, 46, 48, 44, 77, 52, 46, 49, 46, 48, 47, 51, 10}, + + "zoneinfo/Australia/Brisbane": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 5, 0, 0, 0, 14, 128, 0, 0, 0, 156, 78, 166, 156, 156, 188, 32, 240, 203, 84, 179, 0, 203, 199, 87, 112, 204, 183, 86, 128, 205, 167, 57, 112, 206, 160, 115, 0, 207, 135, 27, 112, 3, 112, 57, 128, 4, 13, 28, 0, 37, 73, 205, 0, 37, 239, 234, 0, 39, 41, 175, 0, 39, 207, 204, 0, 41, 9, 145, 0, 41, 175, 174, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 0, 0, 143, 120, 0, 0, 0, 0, 154, 176, 1, 4, 0, 0, 140, 160, 0, 9, 0, 0, 154, 176, 1, 4, 0, 0, 140, 160, 0, 9, 76, 77, 84, 0, 65, 69, 68, 84, 0, 65, 69, 83, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 65, 69, 83, 84, 45, 49, 48, 10}, + + "zoneinfo/Australia/Broken_Hill": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 143, 0, 0, 0, 5, 0, 0, 0, 10, 128, 0, 0, 0, 156, 78, 173, 164, 156, 188, 39, 248, 203, 84, 186, 8, 203, 199, 94, 120, 204, 183, 93, 136, 205, 167, 64, 120, 206, 160, 122, 8, 207, 135, 34, 120, 3, 112, 64, 136, 4, 13, 35, 8, 5, 80, 34, 136, 5, 246, 63, 136, 7, 48, 4, 136, 7, 214, 33, 136, 9, 15, 230, 136, 9, 182, 3, 136, 10, 239, 200, 136, 11, 159, 32, 8, 12, 216, 229, 8, 13, 127, 2, 8, 14, 184, 199, 8, 15, 94, 228, 8, 16, 152, 169, 8, 17, 62, 198, 8, 18, 120, 139, 8, 19, 30, 168, 8, 20, 88, 109, 8, 20, 254, 138, 8, 22, 56, 79, 8, 23, 12, 144, 136, 24, 33, 107, 136, 24, 199, 136, 136, 26, 1, 77, 136, 26, 167, 106, 136, 27, 225, 47, 136, 28, 135, 76, 136, 29, 193, 17, 136, 30, 121, 163, 136, 31, 151, 185, 8, 32, 89, 133, 136, 33, 128, 213, 136, 34, 66, 162, 8, 35, 105, 242, 8, 36, 34, 132, 8, 37, 73, 212, 8, 37, 239, 241, 8, 39, 41, 182, 8, 39, 207, 211, 8, 41, 9, 152, 8, 41, 175, 181, 8, 42, 233, 122, 8, 43, 152, 209, 136, 44, 210, 150, 136, 45, 120, 179, 136, 46, 178, 120, 136, 47, 88, 149, 136, 48, 146, 90, 136, 49, 93, 97, 136, 50, 114, 60, 136, 51, 61, 67, 136, 52, 82, 30, 136, 53, 29, 37, 136, 54, 50, 0, 136, 54, 253, 7, 136, 56, 27, 29, 8, 56, 108, 175, 216, 56, 220, 233, 136, 57, 250, 255, 8, 58, 188, 203, 136, 59, 218, 225, 8, 60, 165, 232, 8, 61, 186, 195, 8, 62, 133, 202, 8, 63, 154, 165, 8, 64, 101, 172, 8, 65, 131, 193, 136, 66, 69, 142, 8, 67, 99, 163, 136, 68, 46, 170, 136, 69, 67, 133, 136, 70, 5, 82, 8, 71, 35, 103, 136, 71, 247, 169, 8, 72, 231, 154, 8, 73, 215, 139, 8, 74, 199, 124, 8, 75, 183, 109, 8, 76, 167, 94, 8, 77, 151, 79, 8, 78, 135, 64, 8, 79, 119, 49, 8, 80, 112, 92, 136, 81, 96, 77, 136, 82, 80, 62, 136, 83, 64, 47, 136, 84, 48, 32, 136, 85, 32, 17, 136, 86, 16, 2, 136, 86, 255, 243, 136, 87, 239, 228, 136, 88, 223, 213, 136, 89, 207, 198, 136, 90, 191, 183, 136, 91, 184, 227, 8, 92, 168, 212, 8, 93, 152, 197, 8, 94, 136, 182, 8, 95, 120, 167, 8, 96, 104, 152, 8, 97, 88, 137, 8, 98, 72, 122, 8, 99, 56, 107, 8, 100, 40, 92, 8, 101, 24, 77, 8, 102, 17, 120, 136, 103, 1, 105, 136, 103, 241, 90, 136, 104, 225, 75, 136, 105, 209, 60, 136, 106, 193, 45, 136, 107, 177, 30, 136, 108, 161, 15, 136, 109, 145, 0, 136, 110, 128, 241, 136, 111, 112, 226, 136, 112, 106, 14, 8, 113, 89, 255, 8, 114, 73, 240, 8, 115, 57, 225, 8, 116, 41, 210, 8, 117, 25, 195, 8, 118, 9, 180, 8, 118, 249, 165, 8, 119, 233, 150, 8, 120, 217, 135, 8, 121, 201, 120, 8, 122, 185, 105, 8, 123, 178, 148, 136, 124, 162, 133, 136, 125, 146, 118, 136, 126, 130, 103, 136, 127, 114, 88, 136, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 1, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 0, 0, 126, 144, 0, 0, 0, 0, 147, 168, 1, 5, 0, 0, 133, 152, 0, 0, 0, 0, 147, 168, 1, 5, 0, 0, 133, 152, 0, 0, 65, 67, 83, 84, 0, 65, 67, 68, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 65, 67, 83, 84, 45, 57, 58, 51, 48, 65, 67, 68, 84, 44, 77, 49, 48, 46, 49, 46, 48, 44, 77, 52, 46, 49, 46, 48, 47, 51, 10}, + + "zoneinfo/Australia/Canberra": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 142, 0, 0, 0, 5, 0, 0, 0, 14, 128, 0, 0, 0, 156, 78, 166, 156, 156, 188, 32, 240, 203, 84, 179, 0, 203, 199, 87, 112, 204, 183, 86, 128, 205, 167, 57, 112, 206, 160, 115, 0, 207, 135, 27, 112, 3, 112, 57, 128, 4, 13, 28, 0, 5, 80, 27, 128, 5, 246, 56, 128, 7, 47, 253, 128, 7, 214, 26, 128, 9, 15, 223, 128, 9, 181, 252, 128, 10, 239, 193, 128, 11, 159, 25, 0, 12, 216, 222, 0, 13, 126, 251, 0, 14, 184, 192, 0, 15, 94, 221, 0, 16, 152, 162, 0, 17, 62, 191, 0, 18, 120, 132, 0, 19, 30, 161, 0, 20, 88, 102, 0, 20, 254, 131, 0, 22, 56, 72, 0, 23, 12, 137, 128, 24, 33, 100, 128, 24, 199, 129, 128, 26, 1, 70, 128, 26, 167, 99, 128, 27, 225, 40, 128, 28, 135, 69, 128, 29, 193, 10, 128, 30, 121, 156, 128, 31, 151, 178, 0, 32, 89, 126, 128, 33, 128, 206, 128, 34, 66, 155, 0, 35, 105, 235, 0, 36, 34, 125, 0, 37, 73, 205, 0, 37, 239, 234, 0, 39, 41, 175, 0, 39, 207, 204, 0, 41, 9, 145, 0, 41, 175, 174, 0, 42, 233, 115, 0, 43, 152, 202, 128, 44, 210, 143, 128, 45, 120, 172, 128, 46, 178, 113, 128, 47, 88, 142, 128, 48, 146, 83, 128, 49, 93, 90, 128, 50, 114, 53, 128, 51, 61, 60, 128, 52, 82, 23, 128, 53, 29, 30, 128, 54, 49, 249, 128, 54, 253, 0, 128, 56, 27, 22, 0, 56, 220, 226, 128, 57, 167, 233, 128, 58, 188, 196, 128, 59, 218, 218, 0, 60, 165, 225, 0, 61, 186, 188, 0, 62, 133, 195, 0, 63, 154, 158, 0, 64, 101, 165, 0, 65, 131, 186, 128, 66, 69, 135, 0, 67, 99, 156, 128, 68, 46, 163, 128, 69, 67, 126, 128, 70, 5, 75, 0, 71, 35, 96, 128, 71, 247, 162, 0, 72, 231, 147, 0, 73, 215, 132, 0, 74, 199, 117, 0, 75, 183, 102, 0, 76, 167, 87, 0, 77, 151, 72, 0, 78, 135, 57, 0, 79, 119, 42, 0, 80, 112, 85, 128, 81, 96, 70, 128, 82, 80, 55, 128, 83, 64, 40, 128, 84, 48, 25, 128, 85, 32, 10, 128, 86, 15, 251, 128, 86, 255, 236, 128, 87, 239, 221, 128, 88, 223, 206, 128, 89, 207, 191, 128, 90, 191, 176, 128, 91, 184, 220, 0, 92, 168, 205, 0, 93, 152, 190, 0, 94, 136, 175, 0, 95, 120, 160, 0, 96, 104, 145, 0, 97, 88, 130, 0, 98, 72, 115, 0, 99, 56, 100, 0, 100, 40, 85, 0, 101, 24, 70, 0, 102, 17, 113, 128, 103, 1, 98, 128, 103, 241, 83, 128, 104, 225, 68, 128, 105, 209, 53, 128, 106, 193, 38, 128, 107, 177, 23, 128, 108, 161, 8, 128, 109, 144, 249, 128, 110, 128, 234, 128, 111, 112, 219, 128, 112, 106, 7, 0, 113, 89, 248, 0, 114, 73, 233, 0, 115, 57, 218, 0, 116, 41, 203, 0, 117, 25, 188, 0, 118, 9, 173, 0, 118, 249, 158, 0, 119, 233, 143, 0, 120, 217, 128, 0, 121, 201, 113, 0, 122, 185, 98, 0, 123, 178, 141, 128, 124, 162, 126, 128, 125, 146, 111, 128, 126, 130, 96, 128, 127, 114, 81, 128, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 0, 0, 141, 196, 0, 0, 0, 0, 154, 176, 1, 4, 0, 0, 140, 160, 0, 9, 0, 0, 154, 176, 1, 4, 0, 0, 140, 160, 0, 9, 76, 77, 84, 0, 65, 69, 68, 84, 0, 65, 69, 83, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 65, 69, 83, 84, 45, 49, 48, 65, 69, 68, 84, 44, 77, 49, 48, 46, 49, 46, 48, 44, 77, 52, 46, 49, 46, 48, 47, 51, 10}, + + "zoneinfo/Australia/Currie": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 142, 0, 0, 0, 5, 0, 0, 0, 14, 128, 0, 0, 0, 155, 213, 120, 128, 156, 188, 32, 240, 203, 84, 179, 0, 203, 199, 87, 112, 204, 183, 86, 128, 205, 167, 57, 112, 206, 160, 115, 0, 207, 135, 27, 112, 3, 112, 57, 128, 4, 13, 28, 0, 5, 80, 27, 128, 5, 246, 56, 128, 7, 47, 253, 128, 7, 214, 26, 128, 9, 15, 223, 128, 9, 181, 252, 128, 10, 239, 193, 128, 11, 159, 25, 0, 12, 216, 222, 0, 13, 126, 251, 0, 14, 184, 192, 0, 15, 94, 221, 0, 16, 152, 162, 0, 17, 62, 191, 0, 18, 120, 132, 0, 19, 30, 161, 0, 20, 88, 102, 0, 20, 254, 131, 0, 22, 56, 72, 0, 23, 3, 79, 0, 24, 33, 100, 128, 24, 227, 49, 0, 26, 1, 70, 128, 26, 167, 99, 128, 27, 225, 40, 128, 28, 135, 69, 128, 29, 193, 10, 128, 30, 103, 39, 128, 31, 151, 178, 0, 32, 89, 126, 128, 33, 128, 206, 128, 34, 66, 155, 0, 35, 105, 235, 0, 36, 34, 125, 0, 37, 73, 205, 0, 38, 2, 95, 0, 39, 41, 175, 0, 39, 244, 182, 0, 40, 237, 225, 128, 41, 212, 152, 0, 42, 205, 195, 128, 43, 180, 122, 0, 44, 173, 165, 128, 45, 148, 92, 0, 46, 141, 135, 128, 47, 116, 62, 0, 48, 109, 105, 128, 49, 93, 90, 128, 50, 86, 134, 0, 51, 61, 60, 128, 52, 54, 104, 0, 53, 29, 30, 128, 54, 22, 74, 0, 54, 253, 0, 128, 55, 246, 44, 0, 56, 220, 226, 128, 57, 167, 233, 128, 58, 188, 196, 128, 59, 191, 42, 128, 60, 165, 225, 0, 61, 159, 12, 128, 62, 133, 195, 0, 63, 126, 238, 128, 64, 101, 165, 0, 65, 94, 208, 128, 66, 69, 135, 0, 67, 62, 178, 128, 68, 46, 163, 128, 69, 30, 148, 128, 70, 5, 75, 0, 71, 7, 177, 0, 71, 247, 162, 0, 72, 231, 147, 0, 73, 215, 132, 0, 74, 199, 117, 0, 75, 183, 102, 0, 76, 167, 87, 0, 77, 151, 72, 0, 78, 135, 57, 0, 79, 119, 42, 0, 80, 112, 85, 128, 81, 96, 70, 128, 82, 80, 55, 128, 83, 64, 40, 128, 84, 48, 25, 128, 85, 32, 10, 128, 86, 15, 251, 128, 86, 255, 236, 128, 87, 239, 221, 128, 88, 223, 206, 128, 89, 207, 191, 128, 90, 191, 176, 128, 91, 184, 220, 0, 92, 168, 205, 0, 93, 152, 190, 0, 94, 136, 175, 0, 95, 120, 160, 0, 96, 104, 145, 0, 97, 88, 130, 0, 98, 72, 115, 0, 99, 56, 100, 0, 100, 40, 85, 0, 101, 24, 70, 0, 102, 17, 113, 128, 103, 1, 98, 128, 103, 241, 83, 128, 104, 225, 68, 128, 105, 209, 53, 128, 106, 193, 38, 128, 107, 177, 23, 128, 108, 161, 8, 128, 109, 144, 249, 128, 110, 128, 234, 128, 111, 112, 219, 128, 112, 106, 7, 0, 113, 89, 248, 0, 114, 73, 233, 0, 115, 57, 218, 0, 116, 41, 203, 0, 117, 25, 188, 0, 118, 9, 173, 0, 118, 249, 158, 0, 119, 233, 143, 0, 120, 217, 128, 0, 121, 201, 113, 0, 122, 185, 98, 0, 123, 178, 141, 128, 124, 162, 126, 128, 125, 146, 111, 128, 126, 130, 96, 128, 127, 114, 81, 128, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 0, 0, 134, 224, 0, 0, 0, 0, 140, 160, 0, 4, 0, 0, 154, 176, 1, 9, 0, 0, 154, 176, 1, 9, 0, 0, 140, 160, 0, 4, 76, 77, 84, 0, 65, 69, 83, 84, 0, 65, 69, 68, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 65, 69, 83, 84, 45, 49, 48, 65, 69, 68, 84, 44, 77, 49, 48, 46, 49, 46, 48, 44, 77, 52, 46, 49, 46, 48, 47, 51, 10}, + + "zoneinfo/Australia/Darwin": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 3, 0, 0, 0, 10, 128, 0, 0, 0, 156, 78, 173, 164, 156, 188, 39, 248, 203, 84, 186, 8, 203, 199, 94, 120, 204, 183, 93, 136, 205, 167, 64, 120, 206, 160, 122, 8, 207, 135, 34, 120, 2, 1, 2, 1, 2, 1, 2, 1, 2, 0, 0, 126, 144, 0, 0, 0, 0, 147, 168, 1, 5, 0, 0, 133, 152, 0, 0, 65, 67, 83, 84, 0, 65, 67, 68, 84, 0, 0, 0, 0, 0, 0, 0, 10, 65, 67, 83, 84, 45, 57, 58, 51, 48, 10}, + + "zoneinfo/Australia/Eucla": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 5, 0, 0, 0, 16, 128, 0, 0, 0, 156, 78, 184, 48, 156, 188, 50, 132, 203, 84, 196, 148, 203, 199, 105, 4, 204, 183, 104, 20, 205, 167, 75, 4, 9, 15, 241, 20, 9, 182, 14, 20, 26, 1, 88, 20, 26, 167, 117, 20, 41, 37, 82, 20, 41, 175, 191, 148, 69, 113, 180, 148, 70, 5, 92, 148, 71, 35, 114, 20, 71, 238, 121, 20, 73, 3, 84, 20, 73, 206, 91, 20, 127, 255, 255, 255, 2, 1, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 4, 0, 0, 120, 208, 0, 0, 0, 0, 137, 28, 1, 4, 0, 0, 123, 12, 0, 10, 0, 0, 137, 28, 1, 4, 0, 0, 123, 12, 0, 10, 76, 77, 84, 0, 43, 48, 57, 52, 53, 0, 43, 48, 56, 52, 53, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 60, 43, 48, 56, 52, 53, 62, 45, 56, 58, 52, 53, 10}, + + "zoneinfo/Australia/Hobart": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 5, 0, 0, 0, 14, 128, 0, 0, 0, 155, 213, 120, 128, 156, 188, 32, 240, 203, 84, 179, 0, 203, 199, 87, 112, 204, 183, 86, 128, 205, 167, 57, 112, 206, 160, 115, 0, 207, 135, 27, 112, 251, 194, 141, 0, 252, 178, 126, 0, 253, 199, 89, 0, 254, 118, 176, 128, 255, 167, 59, 0, 0, 86, 146, 128, 1, 135, 29, 0, 2, 63, 175, 0, 3, 112, 57, 128, 4, 13, 28, 0, 5, 80, 27, 128, 5, 246, 56, 128, 7, 47, 253, 128, 7, 214, 26, 128, 9, 15, 223, 128, 9, 181, 252, 128, 10, 239, 193, 128, 11, 159, 25, 0, 12, 216, 222, 0, 13, 126, 251, 0, 14, 184, 192, 0, 15, 94, 221, 0, 16, 152, 162, 0, 17, 62, 191, 0, 18, 120, 132, 0, 19, 30, 161, 0, 20, 88, 102, 0, 20, 254, 131, 0, 22, 56, 72, 0, 23, 3, 79, 0, 24, 33, 100, 128, 24, 227, 49, 0, 26, 1, 70, 128, 26, 167, 99, 128, 27, 225, 40, 128, 28, 135, 69, 128, 29, 193, 10, 128, 30, 103, 39, 128, 31, 151, 178, 0, 32, 89, 126, 128, 33, 128, 206, 128, 34, 66, 155, 0, 35, 105, 235, 0, 36, 34, 125, 0, 37, 73, 205, 0, 38, 2, 95, 0, 39, 41, 175, 0, 39, 244, 182, 0, 40, 237, 225, 128, 41, 212, 152, 0, 42, 205, 195, 128, 43, 180, 122, 0, 44, 173, 165, 128, 45, 148, 92, 0, 46, 141, 135, 128, 47, 116, 62, 0, 48, 109, 105, 128, 49, 93, 90, 128, 50, 86, 134, 0, 51, 61, 60, 128, 52, 54, 104, 0, 53, 29, 30, 128, 54, 22, 74, 0, 54, 253, 0, 128, 55, 246, 44, 0, 56, 220, 226, 128, 57, 167, 233, 128, 58, 188, 196, 128, 59, 191, 42, 128, 60, 165, 225, 0, 61, 159, 12, 128, 62, 133, 195, 0, 63, 126, 238, 128, 64, 101, 165, 0, 65, 94, 208, 128, 66, 69, 135, 0, 67, 62, 178, 128, 68, 46, 163, 128, 69, 30, 148, 128, 70, 5, 75, 0, 71, 7, 177, 0, 71, 247, 162, 0, 72, 231, 147, 0, 73, 215, 132, 0, 74, 199, 117, 0, 75, 183, 102, 0, 76, 167, 87, 0, 77, 151, 72, 0, 78, 135, 57, 0, 79, 119, 42, 0, 80, 112, 85, 128, 81, 96, 70, 128, 82, 80, 55, 128, 83, 64, 40, 128, 84, 48, 25, 128, 85, 32, 10, 128, 86, 15, 251, 128, 86, 255, 236, 128, 87, 239, 221, 128, 88, 223, 206, 128, 89, 207, 191, 128, 90, 191, 176, 128, 91, 184, 220, 0, 92, 168, 205, 0, 93, 152, 190, 0, 94, 136, 175, 0, 95, 120, 160, 0, 96, 104, 145, 0, 97, 88, 130, 0, 98, 72, 115, 0, 99, 56, 100, 0, 100, 40, 85, 0, 101, 24, 70, 0, 102, 17, 113, 128, 103, 1, 98, 128, 103, 241, 83, 128, 104, 225, 68, 128, 105, 209, 53, 128, 106, 193, 38, 128, 107, 177, 23, 128, 108, 161, 8, 128, 109, 144, 249, 128, 110, 128, 234, 128, 111, 112, 219, 128, 112, 106, 7, 0, 113, 89, 248, 0, 114, 73, 233, 0, 115, 57, 218, 0, 116, 41, 203, 0, 117, 25, 188, 0, 118, 9, 173, 0, 118, 249, 158, 0, 119, 233, 143, 0, 120, 217, 128, 0, 121, 201, 113, 0, 122, 185, 98, 0, 123, 178, 141, 128, 124, 162, 126, 128, 125, 146, 111, 128, 126, 130, 96, 128, 127, 114, 81, 128, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 0, 0, 138, 28, 0, 0, 0, 0, 140, 160, 0, 4, 0, 0, 154, 176, 1, 9, 0, 0, 154, 176, 1, 9, 0, 0, 140, 160, 0, 4, 76, 77, 84, 0, 65, 69, 83, 84, 0, 65, 69, 68, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 65, 69, 83, 84, 45, 49, 48, 65, 69, 68, 84, 44, 77, 49, 48, 46, 49, 46, 48, 44, 77, 52, 46, 49, 46, 48, 47, 51, 10}, + + "zoneinfo/Australia/LHI": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 116, 0, 0, 0, 5, 0, 0, 0, 25, 128, 0, 0, 0, 20, 254, 102, 224, 22, 56, 64, 248, 22, 231, 138, 104, 24, 33, 93, 120, 24, 199, 108, 104, 26, 1, 63, 120, 26, 167, 78, 104, 27, 225, 33, 120, 28, 135, 48, 104, 29, 193, 3, 120, 30, 121, 142, 112, 31, 151, 170, 248, 32, 89, 112, 112, 33, 128, 199, 120, 34, 66, 140, 240, 35, 105, 227, 248, 36, 34, 110, 240, 37, 73, 197, 248, 37, 239, 219, 240, 39, 41, 167, 248, 39, 207, 189, 240, 41, 9, 137, 248, 41, 175, 159, 240, 42, 233, 107, 248, 43, 152, 188, 112, 44, 210, 136, 120, 45, 120, 158, 112, 46, 178, 106, 120, 47, 88, 128, 112, 48, 146, 76, 120, 49, 93, 76, 112, 50, 114, 46, 120, 51, 61, 46, 112, 52, 82, 16, 120, 53, 29, 16, 112, 54, 49, 242, 120, 54, 252, 242, 112, 56, 27, 14, 248, 56, 220, 212, 112, 57, 167, 226, 120, 58, 188, 182, 112, 59, 218, 210, 248, 60, 165, 210, 240, 61, 186, 180, 248, 62, 133, 180, 240, 63, 154, 150, 248, 64, 101, 150, 240, 65, 131, 179, 120, 66, 69, 120, 240, 67, 99, 149, 120, 68, 46, 149, 112, 69, 67, 119, 120, 70, 5, 60, 240, 71, 35, 89, 120, 71, 247, 147, 240, 72, 231, 139, 248, 73, 215, 117, 240, 74, 199, 109, 248, 75, 183, 87, 240, 76, 167, 79, 248, 77, 151, 57, 240, 78, 135, 49, 248, 79, 119, 27, 240, 80, 112, 78, 120, 81, 96, 56, 112, 82, 80, 48, 120, 83, 64, 26, 112, 84, 48, 18, 120, 85, 31, 252, 112, 86, 15, 244, 120, 86, 255, 222, 112, 87, 239, 214, 120, 88, 223, 192, 112, 89, 207, 184, 120, 90, 191, 162, 112, 91, 184, 212, 248, 92, 168, 190, 240, 93, 152, 182, 248, 94, 136, 160, 240, 95, 120, 152, 248, 96, 104, 130, 240, 97, 88, 122, 248, 98, 72, 100, 240, 99, 56, 92, 248, 100, 40, 70, 240, 101, 24, 62, 248, 102, 17, 99, 112, 103, 1, 91, 120, 103, 241, 69, 112, 104, 225, 61, 120, 105, 209, 39, 112, 106, 193, 31, 120, 107, 177, 9, 112, 108, 161, 1, 120, 109, 144, 235, 112, 110, 128, 227, 120, 111, 112, 205, 112, 112, 105, 255, 248, 113, 89, 233, 240, 114, 73, 225, 248, 115, 57, 203, 240, 116, 41, 195, 248, 117, 25, 173, 240, 118, 9, 165, 248, 118, 249, 143, 240, 119, 233, 135, 248, 120, 217, 113, 240, 121, 201, 105, 248, 122, 185, 83, 240, 123, 178, 134, 120, 124, 162, 112, 112, 125, 146, 104, 120, 126, 130, 82, 112, 127, 114, 74, 120, 127, 255, 255, 255, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 4, 0, 0, 149, 36, 0, 0, 0, 0, 140, 160, 0, 4, 0, 0, 161, 184, 1, 9, 0, 0, 147, 168, 0, 15, 0, 0, 154, 176, 1, 21, 76, 77, 84, 0, 65, 69, 83, 84, 0, 43, 49, 49, 51, 48, 0, 43, 49, 48, 51, 48, 0, 43, 49, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 48, 51, 48, 62, 45, 49, 48, 58, 51, 48, 60, 43, 49, 49, 62, 45, 49, 49, 44, 77, 49, 48, 46, 49, 46, 48, 44, 77, 52, 46, 49, 46, 48, 10}, + + "zoneinfo/Australia/Lindeman": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 5, 0, 0, 0, 14, 128, 0, 0, 0, 156, 78, 166, 156, 156, 188, 32, 240, 203, 84, 179, 0, 203, 199, 87, 112, 204, 183, 86, 128, 205, 167, 57, 112, 206, 160, 115, 0, 207, 135, 27, 112, 3, 112, 57, 128, 4, 13, 28, 0, 37, 73, 205, 0, 37, 239, 234, 0, 39, 41, 175, 0, 39, 207, 204, 0, 41, 9, 145, 0, 41, 175, 174, 0, 42, 80, 104, 224, 42, 233, 115, 0, 43, 152, 202, 128, 44, 210, 143, 128, 45, 120, 172, 128, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 2, 3, 4, 3, 4, 0, 0, 139, 172, 0, 0, 0, 0, 154, 176, 1, 4, 0, 0, 140, 160, 0, 9, 0, 0, 154, 176, 1, 4, 0, 0, 140, 160, 0, 9, 76, 77, 84, 0, 65, 69, 68, 84, 0, 65, 69, 83, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 65, 69, 83, 84, 45, 49, 48, 10}, + + "zoneinfo/Australia/Lord_Howe": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 116, 0, 0, 0, 5, 0, 0, 0, 25, 128, 0, 0, 0, 20, 254, 102, 224, 22, 56, 64, 248, 22, 231, 138, 104, 24, 33, 93, 120, 24, 199, 108, 104, 26, 1, 63, 120, 26, 167, 78, 104, 27, 225, 33, 120, 28, 135, 48, 104, 29, 193, 3, 120, 30, 121, 142, 112, 31, 151, 170, 248, 32, 89, 112, 112, 33, 128, 199, 120, 34, 66, 140, 240, 35, 105, 227, 248, 36, 34, 110, 240, 37, 73, 197, 248, 37, 239, 219, 240, 39, 41, 167, 248, 39, 207, 189, 240, 41, 9, 137, 248, 41, 175, 159, 240, 42, 233, 107, 248, 43, 152, 188, 112, 44, 210, 136, 120, 45, 120, 158, 112, 46, 178, 106, 120, 47, 88, 128, 112, 48, 146, 76, 120, 49, 93, 76, 112, 50, 114, 46, 120, 51, 61, 46, 112, 52, 82, 16, 120, 53, 29, 16, 112, 54, 49, 242, 120, 54, 252, 242, 112, 56, 27, 14, 248, 56, 220, 212, 112, 57, 167, 226, 120, 58, 188, 182, 112, 59, 218, 210, 248, 60, 165, 210, 240, 61, 186, 180, 248, 62, 133, 180, 240, 63, 154, 150, 248, 64, 101, 150, 240, 65, 131, 179, 120, 66, 69, 120, 240, 67, 99, 149, 120, 68, 46, 149, 112, 69, 67, 119, 120, 70, 5, 60, 240, 71, 35, 89, 120, 71, 247, 147, 240, 72, 231, 139, 248, 73, 215, 117, 240, 74, 199, 109, 248, 75, 183, 87, 240, 76, 167, 79, 248, 77, 151, 57, 240, 78, 135, 49, 248, 79, 119, 27, 240, 80, 112, 78, 120, 81, 96, 56, 112, 82, 80, 48, 120, 83, 64, 26, 112, 84, 48, 18, 120, 85, 31, 252, 112, 86, 15, 244, 120, 86, 255, 222, 112, 87, 239, 214, 120, 88, 223, 192, 112, 89, 207, 184, 120, 90, 191, 162, 112, 91, 184, 212, 248, 92, 168, 190, 240, 93, 152, 182, 248, 94, 136, 160, 240, 95, 120, 152, 248, 96, 104, 130, 240, 97, 88, 122, 248, 98, 72, 100, 240, 99, 56, 92, 248, 100, 40, 70, 240, 101, 24, 62, 248, 102, 17, 99, 112, 103, 1, 91, 120, 103, 241, 69, 112, 104, 225, 61, 120, 105, 209, 39, 112, 106, 193, 31, 120, 107, 177, 9, 112, 108, 161, 1, 120, 109, 144, 235, 112, 110, 128, 227, 120, 111, 112, 205, 112, 112, 105, 255, 248, 113, 89, 233, 240, 114, 73, 225, 248, 115, 57, 203, 240, 116, 41, 195, 248, 117, 25, 173, 240, 118, 9, 165, 248, 118, 249, 143, 240, 119, 233, 135, 248, 120, 217, 113, 240, 121, 201, 105, 248, 122, 185, 83, 240, 123, 178, 134, 120, 124, 162, 112, 112, 125, 146, 104, 120, 126, 130, 82, 112, 127, 114, 74, 120, 127, 255, 255, 255, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 4, 0, 0, 149, 36, 0, 0, 0, 0, 140, 160, 0, 4, 0, 0, 161, 184, 1, 9, 0, 0, 147, 168, 0, 15, 0, 0, 154, 176, 1, 21, 76, 77, 84, 0, 65, 69, 83, 84, 0, 43, 49, 49, 51, 48, 0, 43, 49, 48, 51, 48, 0, 43, 49, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 48, 51, 48, 62, 45, 49, 48, 58, 51, 48, 60, 43, 49, 49, 62, 45, 49, 49, 44, 77, 49, 48, 46, 49, 46, 48, 44, 77, 52, 46, 49, 46, 48, 10}, + + "zoneinfo/Australia/Melbourne": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 142, 0, 0, 0, 5, 0, 0, 0, 14, 128, 0, 0, 0, 156, 78, 166, 156, 156, 188, 32, 240, 203, 84, 179, 0, 203, 199, 87, 112, 204, 183, 86, 128, 205, 167, 57, 112, 206, 160, 115, 0, 207, 135, 27, 112, 3, 112, 57, 128, 4, 13, 28, 0, 5, 80, 27, 128, 5, 246, 56, 128, 7, 47, 253, 128, 7, 214, 26, 128, 9, 15, 223, 128, 9, 181, 252, 128, 10, 239, 193, 128, 11, 159, 25, 0, 12, 216, 222, 0, 13, 126, 251, 0, 14, 184, 192, 0, 15, 94, 221, 0, 16, 152, 162, 0, 17, 62, 191, 0, 18, 120, 132, 0, 19, 30, 161, 0, 20, 88, 102, 0, 20, 254, 131, 0, 22, 56, 72, 0, 22, 231, 159, 128, 24, 33, 100, 128, 24, 199, 129, 128, 26, 1, 70, 128, 26, 167, 99, 128, 27, 225, 40, 128, 28, 135, 69, 128, 29, 193, 10, 128, 30, 121, 156, 128, 31, 151, 178, 0, 32, 89, 126, 128, 33, 119, 148, 0, 34, 66, 155, 0, 35, 105, 235, 0, 36, 34, 125, 0, 37, 73, 205, 0, 38, 2, 95, 0, 39, 41, 175, 0, 39, 207, 204, 0, 41, 9, 145, 0, 41, 175, 174, 0, 42, 233, 115, 0, 43, 152, 202, 128, 44, 210, 143, 128, 45, 120, 172, 128, 46, 178, 113, 128, 47, 116, 62, 0, 48, 146, 83, 128, 49, 93, 90, 128, 50, 114, 53, 128, 51, 61, 60, 128, 52, 82, 23, 128, 53, 29, 30, 128, 54, 49, 249, 128, 54, 253, 0, 128, 56, 27, 22, 0, 56, 220, 226, 128, 57, 167, 233, 128, 58, 188, 196, 128, 59, 218, 218, 0, 60, 165, 225, 0, 61, 186, 188, 0, 62, 133, 195, 0, 63, 154, 158, 0, 64, 101, 165, 0, 65, 131, 186, 128, 66, 69, 135, 0, 67, 99, 156, 128, 68, 46, 163, 128, 69, 67, 126, 128, 70, 5, 75, 0, 71, 35, 96, 128, 71, 247, 162, 0, 72, 231, 147, 0, 73, 215, 132, 0, 74, 199, 117, 0, 75, 183, 102, 0, 76, 167, 87, 0, 77, 151, 72, 0, 78, 135, 57, 0, 79, 119, 42, 0, 80, 112, 85, 128, 81, 96, 70, 128, 82, 80, 55, 128, 83, 64, 40, 128, 84, 48, 25, 128, 85, 32, 10, 128, 86, 15, 251, 128, 86, 255, 236, 128, 87, 239, 221, 128, 88, 223, 206, 128, 89, 207, 191, 128, 90, 191, 176, 128, 91, 184, 220, 0, 92, 168, 205, 0, 93, 152, 190, 0, 94, 136, 175, 0, 95, 120, 160, 0, 96, 104, 145, 0, 97, 88, 130, 0, 98, 72, 115, 0, 99, 56, 100, 0, 100, 40, 85, 0, 101, 24, 70, 0, 102, 17, 113, 128, 103, 1, 98, 128, 103, 241, 83, 128, 104, 225, 68, 128, 105, 209, 53, 128, 106, 193, 38, 128, 107, 177, 23, 128, 108, 161, 8, 128, 109, 144, 249, 128, 110, 128, 234, 128, 111, 112, 219, 128, 112, 106, 7, 0, 113, 89, 248, 0, 114, 73, 233, 0, 115, 57, 218, 0, 116, 41, 203, 0, 117, 25, 188, 0, 118, 9, 173, 0, 118, 249, 158, 0, 119, 233, 143, 0, 120, 217, 128, 0, 121, 201, 113, 0, 122, 185, 98, 0, 123, 178, 141, 128, 124, 162, 126, 128, 125, 146, 111, 128, 126, 130, 96, 128, 127, 114, 81, 128, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 0, 0, 135, 232, 0, 0, 0, 0, 154, 176, 1, 4, 0, 0, 140, 160, 0, 9, 0, 0, 154, 176, 1, 4, 0, 0, 140, 160, 0, 9, 76, 77, 84, 0, 65, 69, 68, 84, 0, 65, 69, 83, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 65, 69, 83, 84, 45, 49, 48, 65, 69, 68, 84, 44, 77, 49, 48, 46, 49, 46, 48, 44, 77, 52, 46, 49, 46, 48, 47, 51, 10}, + + "zoneinfo/Australia/NSW": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 142, 0, 0, 0, 5, 0, 0, 0, 14, 128, 0, 0, 0, 156, 78, 166, 156, 156, 188, 32, 240, 203, 84, 179, 0, 203, 199, 87, 112, 204, 183, 86, 128, 205, 167, 57, 112, 206, 160, 115, 0, 207, 135, 27, 112, 3, 112, 57, 128, 4, 13, 28, 0, 5, 80, 27, 128, 5, 246, 56, 128, 7, 47, 253, 128, 7, 214, 26, 128, 9, 15, 223, 128, 9, 181, 252, 128, 10, 239, 193, 128, 11, 159, 25, 0, 12, 216, 222, 0, 13, 126, 251, 0, 14, 184, 192, 0, 15, 94, 221, 0, 16, 152, 162, 0, 17, 62, 191, 0, 18, 120, 132, 0, 19, 30, 161, 0, 20, 88, 102, 0, 20, 254, 131, 0, 22, 56, 72, 0, 23, 12, 137, 128, 24, 33, 100, 128, 24, 199, 129, 128, 26, 1, 70, 128, 26, 167, 99, 128, 27, 225, 40, 128, 28, 135, 69, 128, 29, 193, 10, 128, 30, 121, 156, 128, 31, 151, 178, 0, 32, 89, 126, 128, 33, 128, 206, 128, 34, 66, 155, 0, 35, 105, 235, 0, 36, 34, 125, 0, 37, 73, 205, 0, 37, 239, 234, 0, 39, 41, 175, 0, 39, 207, 204, 0, 41, 9, 145, 0, 41, 175, 174, 0, 42, 233, 115, 0, 43, 152, 202, 128, 44, 210, 143, 128, 45, 120, 172, 128, 46, 178, 113, 128, 47, 88, 142, 128, 48, 146, 83, 128, 49, 93, 90, 128, 50, 114, 53, 128, 51, 61, 60, 128, 52, 82, 23, 128, 53, 29, 30, 128, 54, 49, 249, 128, 54, 253, 0, 128, 56, 27, 22, 0, 56, 220, 226, 128, 57, 167, 233, 128, 58, 188, 196, 128, 59, 218, 218, 0, 60, 165, 225, 0, 61, 186, 188, 0, 62, 133, 195, 0, 63, 154, 158, 0, 64, 101, 165, 0, 65, 131, 186, 128, 66, 69, 135, 0, 67, 99, 156, 128, 68, 46, 163, 128, 69, 67, 126, 128, 70, 5, 75, 0, 71, 35, 96, 128, 71, 247, 162, 0, 72, 231, 147, 0, 73, 215, 132, 0, 74, 199, 117, 0, 75, 183, 102, 0, 76, 167, 87, 0, 77, 151, 72, 0, 78, 135, 57, 0, 79, 119, 42, 0, 80, 112, 85, 128, 81, 96, 70, 128, 82, 80, 55, 128, 83, 64, 40, 128, 84, 48, 25, 128, 85, 32, 10, 128, 86, 15, 251, 128, 86, 255, 236, 128, 87, 239, 221, 128, 88, 223, 206, 128, 89, 207, 191, 128, 90, 191, 176, 128, 91, 184, 220, 0, 92, 168, 205, 0, 93, 152, 190, 0, 94, 136, 175, 0, 95, 120, 160, 0, 96, 104, 145, 0, 97, 88, 130, 0, 98, 72, 115, 0, 99, 56, 100, 0, 100, 40, 85, 0, 101, 24, 70, 0, 102, 17, 113, 128, 103, 1, 98, 128, 103, 241, 83, 128, 104, 225, 68, 128, 105, 209, 53, 128, 106, 193, 38, 128, 107, 177, 23, 128, 108, 161, 8, 128, 109, 144, 249, 128, 110, 128, 234, 128, 111, 112, 219, 128, 112, 106, 7, 0, 113, 89, 248, 0, 114, 73, 233, 0, 115, 57, 218, 0, 116, 41, 203, 0, 117, 25, 188, 0, 118, 9, 173, 0, 118, 249, 158, 0, 119, 233, 143, 0, 120, 217, 128, 0, 121, 201, 113, 0, 122, 185, 98, 0, 123, 178, 141, 128, 124, 162, 126, 128, 125, 146, 111, 128, 126, 130, 96, 128, 127, 114, 81, 128, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 0, 0, 141, 196, 0, 0, 0, 0, 154, 176, 1, 4, 0, 0, 140, 160, 0, 9, 0, 0, 154, 176, 1, 4, 0, 0, 140, 160, 0, 9, 76, 77, 84, 0, 65, 69, 68, 84, 0, 65, 69, 83, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 65, 69, 83, 84, 45, 49, 48, 65, 69, 68, 84, 44, 77, 49, 48, 46, 49, 46, 48, 44, 77, 52, 46, 49, 46, 48, 47, 51, 10}, + + "zoneinfo/Australia/North": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 3, 0, 0, 0, 10, 128, 0, 0, 0, 156, 78, 173, 164, 156, 188, 39, 248, 203, 84, 186, 8, 203, 199, 94, 120, 204, 183, 93, 136, 205, 167, 64, 120, 206, 160, 122, 8, 207, 135, 34, 120, 2, 1, 2, 1, 2, 1, 2, 1, 2, 0, 0, 126, 144, 0, 0, 0, 0, 147, 168, 1, 5, 0, 0, 133, 152, 0, 0, 65, 67, 83, 84, 0, 65, 67, 68, 84, 0, 0, 0, 0, 0, 0, 0, 10, 65, 67, 83, 84, 45, 57, 58, 51, 48, 10}, + + "zoneinfo/Australia/Perth": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 5, 0, 0, 0, 14, 128, 0, 0, 0, 156, 78, 194, 188, 156, 188, 61, 16, 203, 84, 207, 32, 203, 199, 115, 144, 204, 183, 114, 160, 205, 167, 85, 144, 9, 15, 251, 160, 9, 182, 24, 160, 26, 1, 98, 160, 26, 167, 127, 160, 41, 37, 92, 160, 41, 175, 202, 32, 69, 113, 191, 32, 70, 5, 103, 32, 71, 35, 124, 160, 71, 238, 131, 160, 73, 3, 94, 160, 73, 206, 101, 160, 2, 1, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 0, 0, 108, 156, 0, 0, 0, 0, 126, 144, 1, 4, 0, 0, 112, 128, 0, 9, 0, 0, 126, 144, 1, 4, 0, 0, 112, 128, 0, 9, 76, 77, 84, 0, 65, 87, 68, 84, 0, 65, 87, 83, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 65, 87, 83, 84, 45, 56, 10}, + + "zoneinfo/Australia/Queensland": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 5, 0, 0, 0, 14, 128, 0, 0, 0, 156, 78, 166, 156, 156, 188, 32, 240, 203, 84, 179, 0, 203, 199, 87, 112, 204, 183, 86, 128, 205, 167, 57, 112, 206, 160, 115, 0, 207, 135, 27, 112, 3, 112, 57, 128, 4, 13, 28, 0, 37, 73, 205, 0, 37, 239, 234, 0, 39, 41, 175, 0, 39, 207, 204, 0, 41, 9, 145, 0, 41, 175, 174, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 0, 0, 143, 120, 0, 0, 0, 0, 154, 176, 1, 4, 0, 0, 140, 160, 0, 9, 0, 0, 154, 176, 1, 4, 0, 0, 140, 160, 0, 9, 76, 77, 84, 0, 65, 69, 68, 84, 0, 65, 69, 83, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 65, 69, 83, 84, 45, 49, 48, 10}, + + "zoneinfo/Australia/South": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 142, 0, 0, 0, 5, 0, 0, 0, 10, 128, 0, 0, 0, 156, 78, 173, 164, 156, 188, 39, 248, 203, 84, 186, 8, 203, 199, 94, 120, 204, 183, 93, 136, 205, 167, 64, 120, 206, 160, 122, 8, 207, 135, 34, 120, 3, 112, 64, 136, 4, 13, 35, 8, 5, 80, 34, 136, 5, 246, 63, 136, 7, 48, 4, 136, 7, 214, 33, 136, 9, 15, 230, 136, 9, 182, 3, 136, 10, 239, 200, 136, 11, 159, 32, 8, 12, 216, 229, 8, 13, 127, 2, 8, 14, 184, 199, 8, 15, 94, 228, 8, 16, 152, 169, 8, 17, 62, 198, 8, 18, 120, 139, 8, 19, 30, 168, 8, 20, 88, 109, 8, 20, 254, 138, 8, 22, 56, 79, 8, 22, 231, 166, 136, 24, 33, 107, 136, 24, 199, 136, 136, 26, 1, 77, 136, 26, 167, 106, 136, 27, 225, 47, 136, 28, 135, 76, 136, 29, 193, 17, 136, 30, 121, 163, 136, 31, 151, 185, 8, 32, 89, 133, 136, 33, 128, 213, 136, 34, 66, 162, 8, 35, 105, 242, 8, 36, 34, 132, 8, 37, 73, 212, 8, 38, 2, 102, 8, 39, 41, 182, 8, 39, 207, 211, 8, 41, 9, 152, 8, 41, 203, 100, 136, 42, 233, 122, 8, 43, 152, 209, 136, 44, 210, 150, 136, 45, 139, 40, 136, 46, 178, 120, 136, 47, 116, 69, 8, 48, 146, 90, 136, 49, 93, 97, 136, 50, 114, 60, 136, 51, 61, 67, 136, 52, 82, 30, 136, 53, 29, 37, 136, 54, 50, 0, 136, 54, 253, 7, 136, 56, 27, 29, 8, 56, 220, 233, 136, 57, 250, 255, 8, 58, 188, 203, 136, 59, 218, 225, 8, 60, 165, 232, 8, 61, 186, 195, 8, 62, 133, 202, 8, 63, 154, 165, 8, 64, 101, 172, 8, 65, 131, 193, 136, 66, 69, 142, 8, 67, 99, 163, 136, 68, 46, 170, 136, 69, 67, 133, 136, 70, 5, 82, 8, 71, 35, 103, 136, 71, 247, 169, 8, 72, 231, 154, 8, 73, 215, 139, 8, 74, 199, 124, 8, 75, 183, 109, 8, 76, 167, 94, 8, 77, 151, 79, 8, 78, 135, 64, 8, 79, 119, 49, 8, 80, 112, 92, 136, 81, 96, 77, 136, 82, 80, 62, 136, 83, 64, 47, 136, 84, 48, 32, 136, 85, 32, 17, 136, 86, 16, 2, 136, 86, 255, 243, 136, 87, 239, 228, 136, 88, 223, 213, 136, 89, 207, 198, 136, 90, 191, 183, 136, 91, 184, 227, 8, 92, 168, 212, 8, 93, 152, 197, 8, 94, 136, 182, 8, 95, 120, 167, 8, 96, 104, 152, 8, 97, 88, 137, 8, 98, 72, 122, 8, 99, 56, 107, 8, 100, 40, 92, 8, 101, 24, 77, 8, 102, 17, 120, 136, 103, 1, 105, 136, 103, 241, 90, 136, 104, 225, 75, 136, 105, 209, 60, 136, 106, 193, 45, 136, 107, 177, 30, 136, 108, 161, 15, 136, 109, 145, 0, 136, 110, 128, 241, 136, 111, 112, 226, 136, 112, 106, 14, 8, 113, 89, 255, 8, 114, 73, 240, 8, 115, 57, 225, 8, 116, 41, 210, 8, 117, 25, 195, 8, 118, 9, 180, 8, 118, 249, 165, 8, 119, 233, 150, 8, 120, 217, 135, 8, 121, 201, 120, 8, 122, 185, 105, 8, 123, 178, 148, 136, 124, 162, 133, 136, 125, 146, 118, 136, 126, 130, 103, 136, 127, 114, 88, 136, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 0, 0, 126, 144, 0, 0, 0, 0, 147, 168, 1, 5, 0, 0, 133, 152, 0, 0, 0, 0, 147, 168, 1, 5, 0, 0, 133, 152, 0, 0, 65, 67, 83, 84, 0, 65, 67, 68, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 65, 67, 83, 84, 45, 57, 58, 51, 48, 65, 67, 68, 84, 44, 77, 49, 48, 46, 49, 46, 48, 44, 77, 52, 46, 49, 46, 48, 47, 51, 10}, + + "zoneinfo/Australia/Sydney": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 142, 0, 0, 0, 5, 0, 0, 0, 14, 128, 0, 0, 0, 156, 78, 166, 156, 156, 188, 32, 240, 203, 84, 179, 0, 203, 199, 87, 112, 204, 183, 86, 128, 205, 167, 57, 112, 206, 160, 115, 0, 207, 135, 27, 112, 3, 112, 57, 128, 4, 13, 28, 0, 5, 80, 27, 128, 5, 246, 56, 128, 7, 47, 253, 128, 7, 214, 26, 128, 9, 15, 223, 128, 9, 181, 252, 128, 10, 239, 193, 128, 11, 159, 25, 0, 12, 216, 222, 0, 13, 126, 251, 0, 14, 184, 192, 0, 15, 94, 221, 0, 16, 152, 162, 0, 17, 62, 191, 0, 18, 120, 132, 0, 19, 30, 161, 0, 20, 88, 102, 0, 20, 254, 131, 0, 22, 56, 72, 0, 23, 12, 137, 128, 24, 33, 100, 128, 24, 199, 129, 128, 26, 1, 70, 128, 26, 167, 99, 128, 27, 225, 40, 128, 28, 135, 69, 128, 29, 193, 10, 128, 30, 121, 156, 128, 31, 151, 178, 0, 32, 89, 126, 128, 33, 128, 206, 128, 34, 66, 155, 0, 35, 105, 235, 0, 36, 34, 125, 0, 37, 73, 205, 0, 37, 239, 234, 0, 39, 41, 175, 0, 39, 207, 204, 0, 41, 9, 145, 0, 41, 175, 174, 0, 42, 233, 115, 0, 43, 152, 202, 128, 44, 210, 143, 128, 45, 120, 172, 128, 46, 178, 113, 128, 47, 88, 142, 128, 48, 146, 83, 128, 49, 93, 90, 128, 50, 114, 53, 128, 51, 61, 60, 128, 52, 82, 23, 128, 53, 29, 30, 128, 54, 49, 249, 128, 54, 253, 0, 128, 56, 27, 22, 0, 56, 220, 226, 128, 57, 167, 233, 128, 58, 188, 196, 128, 59, 218, 218, 0, 60, 165, 225, 0, 61, 186, 188, 0, 62, 133, 195, 0, 63, 154, 158, 0, 64, 101, 165, 0, 65, 131, 186, 128, 66, 69, 135, 0, 67, 99, 156, 128, 68, 46, 163, 128, 69, 67, 126, 128, 70, 5, 75, 0, 71, 35, 96, 128, 71, 247, 162, 0, 72, 231, 147, 0, 73, 215, 132, 0, 74, 199, 117, 0, 75, 183, 102, 0, 76, 167, 87, 0, 77, 151, 72, 0, 78, 135, 57, 0, 79, 119, 42, 0, 80, 112, 85, 128, 81, 96, 70, 128, 82, 80, 55, 128, 83, 64, 40, 128, 84, 48, 25, 128, 85, 32, 10, 128, 86, 15, 251, 128, 86, 255, 236, 128, 87, 239, 221, 128, 88, 223, 206, 128, 89, 207, 191, 128, 90, 191, 176, 128, 91, 184, 220, 0, 92, 168, 205, 0, 93, 152, 190, 0, 94, 136, 175, 0, 95, 120, 160, 0, 96, 104, 145, 0, 97, 88, 130, 0, 98, 72, 115, 0, 99, 56, 100, 0, 100, 40, 85, 0, 101, 24, 70, 0, 102, 17, 113, 128, 103, 1, 98, 128, 103, 241, 83, 128, 104, 225, 68, 128, 105, 209, 53, 128, 106, 193, 38, 128, 107, 177, 23, 128, 108, 161, 8, 128, 109, 144, 249, 128, 110, 128, 234, 128, 111, 112, 219, 128, 112, 106, 7, 0, 113, 89, 248, 0, 114, 73, 233, 0, 115, 57, 218, 0, 116, 41, 203, 0, 117, 25, 188, 0, 118, 9, 173, 0, 118, 249, 158, 0, 119, 233, 143, 0, 120, 217, 128, 0, 121, 201, 113, 0, 122, 185, 98, 0, 123, 178, 141, 128, 124, 162, 126, 128, 125, 146, 111, 128, 126, 130, 96, 128, 127, 114, 81, 128, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 0, 0, 141, 196, 0, 0, 0, 0, 154, 176, 1, 4, 0, 0, 140, 160, 0, 9, 0, 0, 154, 176, 1, 4, 0, 0, 140, 160, 0, 9, 76, 77, 84, 0, 65, 69, 68, 84, 0, 65, 69, 83, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 65, 69, 83, 84, 45, 49, 48, 65, 69, 68, 84, 44, 77, 49, 48, 46, 49, 46, 48, 44, 77, 52, 46, 49, 46, 48, 47, 51, 10}, + + "zoneinfo/Australia/Tasmania": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 5, 0, 0, 0, 14, 128, 0, 0, 0, 155, 213, 120, 128, 156, 188, 32, 240, 203, 84, 179, 0, 203, 199, 87, 112, 204, 183, 86, 128, 205, 167, 57, 112, 206, 160, 115, 0, 207, 135, 27, 112, 251, 194, 141, 0, 252, 178, 126, 0, 253, 199, 89, 0, 254, 118, 176, 128, 255, 167, 59, 0, 0, 86, 146, 128, 1, 135, 29, 0, 2, 63, 175, 0, 3, 112, 57, 128, 4, 13, 28, 0, 5, 80, 27, 128, 5, 246, 56, 128, 7, 47, 253, 128, 7, 214, 26, 128, 9, 15, 223, 128, 9, 181, 252, 128, 10, 239, 193, 128, 11, 159, 25, 0, 12, 216, 222, 0, 13, 126, 251, 0, 14, 184, 192, 0, 15, 94, 221, 0, 16, 152, 162, 0, 17, 62, 191, 0, 18, 120, 132, 0, 19, 30, 161, 0, 20, 88, 102, 0, 20, 254, 131, 0, 22, 56, 72, 0, 23, 3, 79, 0, 24, 33, 100, 128, 24, 227, 49, 0, 26, 1, 70, 128, 26, 167, 99, 128, 27, 225, 40, 128, 28, 135, 69, 128, 29, 193, 10, 128, 30, 103, 39, 128, 31, 151, 178, 0, 32, 89, 126, 128, 33, 128, 206, 128, 34, 66, 155, 0, 35, 105, 235, 0, 36, 34, 125, 0, 37, 73, 205, 0, 38, 2, 95, 0, 39, 41, 175, 0, 39, 244, 182, 0, 40, 237, 225, 128, 41, 212, 152, 0, 42, 205, 195, 128, 43, 180, 122, 0, 44, 173, 165, 128, 45, 148, 92, 0, 46, 141, 135, 128, 47, 116, 62, 0, 48, 109, 105, 128, 49, 93, 90, 128, 50, 86, 134, 0, 51, 61, 60, 128, 52, 54, 104, 0, 53, 29, 30, 128, 54, 22, 74, 0, 54, 253, 0, 128, 55, 246, 44, 0, 56, 220, 226, 128, 57, 167, 233, 128, 58, 188, 196, 128, 59, 191, 42, 128, 60, 165, 225, 0, 61, 159, 12, 128, 62, 133, 195, 0, 63, 126, 238, 128, 64, 101, 165, 0, 65, 94, 208, 128, 66, 69, 135, 0, 67, 62, 178, 128, 68, 46, 163, 128, 69, 30, 148, 128, 70, 5, 75, 0, 71, 7, 177, 0, 71, 247, 162, 0, 72, 231, 147, 0, 73, 215, 132, 0, 74, 199, 117, 0, 75, 183, 102, 0, 76, 167, 87, 0, 77, 151, 72, 0, 78, 135, 57, 0, 79, 119, 42, 0, 80, 112, 85, 128, 81, 96, 70, 128, 82, 80, 55, 128, 83, 64, 40, 128, 84, 48, 25, 128, 85, 32, 10, 128, 86, 15, 251, 128, 86, 255, 236, 128, 87, 239, 221, 128, 88, 223, 206, 128, 89, 207, 191, 128, 90, 191, 176, 128, 91, 184, 220, 0, 92, 168, 205, 0, 93, 152, 190, 0, 94, 136, 175, 0, 95, 120, 160, 0, 96, 104, 145, 0, 97, 88, 130, 0, 98, 72, 115, 0, 99, 56, 100, 0, 100, 40, 85, 0, 101, 24, 70, 0, 102, 17, 113, 128, 103, 1, 98, 128, 103, 241, 83, 128, 104, 225, 68, 128, 105, 209, 53, 128, 106, 193, 38, 128, 107, 177, 23, 128, 108, 161, 8, 128, 109, 144, 249, 128, 110, 128, 234, 128, 111, 112, 219, 128, 112, 106, 7, 0, 113, 89, 248, 0, 114, 73, 233, 0, 115, 57, 218, 0, 116, 41, 203, 0, 117, 25, 188, 0, 118, 9, 173, 0, 118, 249, 158, 0, 119, 233, 143, 0, 120, 217, 128, 0, 121, 201, 113, 0, 122, 185, 98, 0, 123, 178, 141, 128, 124, 162, 126, 128, 125, 146, 111, 128, 126, 130, 96, 128, 127, 114, 81, 128, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 0, 0, 138, 28, 0, 0, 0, 0, 140, 160, 0, 4, 0, 0, 154, 176, 1, 9, 0, 0, 154, 176, 1, 9, 0, 0, 140, 160, 0, 4, 76, 77, 84, 0, 65, 69, 83, 84, 0, 65, 69, 68, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 65, 69, 83, 84, 45, 49, 48, 65, 69, 68, 84, 44, 77, 49, 48, 46, 49, 46, 48, 44, 77, 52, 46, 49, 46, 48, 47, 51, 10}, + + "zoneinfo/Australia/Victoria": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 142, 0, 0, 0, 5, 0, 0, 0, 14, 128, 0, 0, 0, 156, 78, 166, 156, 156, 188, 32, 240, 203, 84, 179, 0, 203, 199, 87, 112, 204, 183, 86, 128, 205, 167, 57, 112, 206, 160, 115, 0, 207, 135, 27, 112, 3, 112, 57, 128, 4, 13, 28, 0, 5, 80, 27, 128, 5, 246, 56, 128, 7, 47, 253, 128, 7, 214, 26, 128, 9, 15, 223, 128, 9, 181, 252, 128, 10, 239, 193, 128, 11, 159, 25, 0, 12, 216, 222, 0, 13, 126, 251, 0, 14, 184, 192, 0, 15, 94, 221, 0, 16, 152, 162, 0, 17, 62, 191, 0, 18, 120, 132, 0, 19, 30, 161, 0, 20, 88, 102, 0, 20, 254, 131, 0, 22, 56, 72, 0, 22, 231, 159, 128, 24, 33, 100, 128, 24, 199, 129, 128, 26, 1, 70, 128, 26, 167, 99, 128, 27, 225, 40, 128, 28, 135, 69, 128, 29, 193, 10, 128, 30, 121, 156, 128, 31, 151, 178, 0, 32, 89, 126, 128, 33, 119, 148, 0, 34, 66, 155, 0, 35, 105, 235, 0, 36, 34, 125, 0, 37, 73, 205, 0, 38, 2, 95, 0, 39, 41, 175, 0, 39, 207, 204, 0, 41, 9, 145, 0, 41, 175, 174, 0, 42, 233, 115, 0, 43, 152, 202, 128, 44, 210, 143, 128, 45, 120, 172, 128, 46, 178, 113, 128, 47, 116, 62, 0, 48, 146, 83, 128, 49, 93, 90, 128, 50, 114, 53, 128, 51, 61, 60, 128, 52, 82, 23, 128, 53, 29, 30, 128, 54, 49, 249, 128, 54, 253, 0, 128, 56, 27, 22, 0, 56, 220, 226, 128, 57, 167, 233, 128, 58, 188, 196, 128, 59, 218, 218, 0, 60, 165, 225, 0, 61, 186, 188, 0, 62, 133, 195, 0, 63, 154, 158, 0, 64, 101, 165, 0, 65, 131, 186, 128, 66, 69, 135, 0, 67, 99, 156, 128, 68, 46, 163, 128, 69, 67, 126, 128, 70, 5, 75, 0, 71, 35, 96, 128, 71, 247, 162, 0, 72, 231, 147, 0, 73, 215, 132, 0, 74, 199, 117, 0, 75, 183, 102, 0, 76, 167, 87, 0, 77, 151, 72, 0, 78, 135, 57, 0, 79, 119, 42, 0, 80, 112, 85, 128, 81, 96, 70, 128, 82, 80, 55, 128, 83, 64, 40, 128, 84, 48, 25, 128, 85, 32, 10, 128, 86, 15, 251, 128, 86, 255, 236, 128, 87, 239, 221, 128, 88, 223, 206, 128, 89, 207, 191, 128, 90, 191, 176, 128, 91, 184, 220, 0, 92, 168, 205, 0, 93, 152, 190, 0, 94, 136, 175, 0, 95, 120, 160, 0, 96, 104, 145, 0, 97, 88, 130, 0, 98, 72, 115, 0, 99, 56, 100, 0, 100, 40, 85, 0, 101, 24, 70, 0, 102, 17, 113, 128, 103, 1, 98, 128, 103, 241, 83, 128, 104, 225, 68, 128, 105, 209, 53, 128, 106, 193, 38, 128, 107, 177, 23, 128, 108, 161, 8, 128, 109, 144, 249, 128, 110, 128, 234, 128, 111, 112, 219, 128, 112, 106, 7, 0, 113, 89, 248, 0, 114, 73, 233, 0, 115, 57, 218, 0, 116, 41, 203, 0, 117, 25, 188, 0, 118, 9, 173, 0, 118, 249, 158, 0, 119, 233, 143, 0, 120, 217, 128, 0, 121, 201, 113, 0, 122, 185, 98, 0, 123, 178, 141, 128, 124, 162, 126, 128, 125, 146, 111, 128, 126, 130, 96, 128, 127, 114, 81, 128, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 0, 0, 135, 232, 0, 0, 0, 0, 154, 176, 1, 4, 0, 0, 140, 160, 0, 9, 0, 0, 154, 176, 1, 4, 0, 0, 140, 160, 0, 9, 76, 77, 84, 0, 65, 69, 68, 84, 0, 65, 69, 83, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 65, 69, 83, 84, 45, 49, 48, 65, 69, 68, 84, 44, 77, 49, 48, 46, 49, 46, 48, 44, 77, 52, 46, 49, 46, 48, 47, 51, 10}, + + "zoneinfo/Australia/West": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 5, 0, 0, 0, 14, 128, 0, 0, 0, 156, 78, 194, 188, 156, 188, 61, 16, 203, 84, 207, 32, 203, 199, 115, 144, 204, 183, 114, 160, 205, 167, 85, 144, 9, 15, 251, 160, 9, 182, 24, 160, 26, 1, 98, 160, 26, 167, 127, 160, 41, 37, 92, 160, 41, 175, 202, 32, 69, 113, 191, 32, 70, 5, 103, 32, 71, 35, 124, 160, 71, 238, 131, 160, 73, 3, 94, 160, 73, 206, 101, 160, 2, 1, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 0, 0, 108, 156, 0, 0, 0, 0, 126, 144, 1, 4, 0, 0, 112, 128, 0, 9, 0, 0, 126, 144, 1, 4, 0, 0, 112, 128, 0, 9, 76, 77, 84, 0, 65, 87, 68, 84, 0, 65, 87, 83, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 65, 87, 83, 84, 45, 56, 10}, + + "zoneinfo/Australia/Yancowinna": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 143, 0, 0, 0, 5, 0, 0, 0, 10, 128, 0, 0, 0, 156, 78, 173, 164, 156, 188, 39, 248, 203, 84, 186, 8, 203, 199, 94, 120, 204, 183, 93, 136, 205, 167, 64, 120, 206, 160, 122, 8, 207, 135, 34, 120, 3, 112, 64, 136, 4, 13, 35, 8, 5, 80, 34, 136, 5, 246, 63, 136, 7, 48, 4, 136, 7, 214, 33, 136, 9, 15, 230, 136, 9, 182, 3, 136, 10, 239, 200, 136, 11, 159, 32, 8, 12, 216, 229, 8, 13, 127, 2, 8, 14, 184, 199, 8, 15, 94, 228, 8, 16, 152, 169, 8, 17, 62, 198, 8, 18, 120, 139, 8, 19, 30, 168, 8, 20, 88, 109, 8, 20, 254, 138, 8, 22, 56, 79, 8, 23, 12, 144, 136, 24, 33, 107, 136, 24, 199, 136, 136, 26, 1, 77, 136, 26, 167, 106, 136, 27, 225, 47, 136, 28, 135, 76, 136, 29, 193, 17, 136, 30, 121, 163, 136, 31, 151, 185, 8, 32, 89, 133, 136, 33, 128, 213, 136, 34, 66, 162, 8, 35, 105, 242, 8, 36, 34, 132, 8, 37, 73, 212, 8, 37, 239, 241, 8, 39, 41, 182, 8, 39, 207, 211, 8, 41, 9, 152, 8, 41, 175, 181, 8, 42, 233, 122, 8, 43, 152, 209, 136, 44, 210, 150, 136, 45, 120, 179, 136, 46, 178, 120, 136, 47, 88, 149, 136, 48, 146, 90, 136, 49, 93, 97, 136, 50, 114, 60, 136, 51, 61, 67, 136, 52, 82, 30, 136, 53, 29, 37, 136, 54, 50, 0, 136, 54, 253, 7, 136, 56, 27, 29, 8, 56, 108, 175, 216, 56, 220, 233, 136, 57, 250, 255, 8, 58, 188, 203, 136, 59, 218, 225, 8, 60, 165, 232, 8, 61, 186, 195, 8, 62, 133, 202, 8, 63, 154, 165, 8, 64, 101, 172, 8, 65, 131, 193, 136, 66, 69, 142, 8, 67, 99, 163, 136, 68, 46, 170, 136, 69, 67, 133, 136, 70, 5, 82, 8, 71, 35, 103, 136, 71, 247, 169, 8, 72, 231, 154, 8, 73, 215, 139, 8, 74, 199, 124, 8, 75, 183, 109, 8, 76, 167, 94, 8, 77, 151, 79, 8, 78, 135, 64, 8, 79, 119, 49, 8, 80, 112, 92, 136, 81, 96, 77, 136, 82, 80, 62, 136, 83, 64, 47, 136, 84, 48, 32, 136, 85, 32, 17, 136, 86, 16, 2, 136, 86, 255, 243, 136, 87, 239, 228, 136, 88, 223, 213, 136, 89, 207, 198, 136, 90, 191, 183, 136, 91, 184, 227, 8, 92, 168, 212, 8, 93, 152, 197, 8, 94, 136, 182, 8, 95, 120, 167, 8, 96, 104, 152, 8, 97, 88, 137, 8, 98, 72, 122, 8, 99, 56, 107, 8, 100, 40, 92, 8, 101, 24, 77, 8, 102, 17, 120, 136, 103, 1, 105, 136, 103, 241, 90, 136, 104, 225, 75, 136, 105, 209, 60, 136, 106, 193, 45, 136, 107, 177, 30, 136, 108, 161, 15, 136, 109, 145, 0, 136, 110, 128, 241, 136, 111, 112, 226, 136, 112, 106, 14, 8, 113, 89, 255, 8, 114, 73, 240, 8, 115, 57, 225, 8, 116, 41, 210, 8, 117, 25, 195, 8, 118, 9, 180, 8, 118, 249, 165, 8, 119, 233, 150, 8, 120, 217, 135, 8, 121, 201, 120, 8, 122, 185, 105, 8, 123, 178, 148, 136, 124, 162, 133, 136, 125, 146, 118, 136, 126, 130, 103, 136, 127, 114, 88, 136, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 1, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 0, 0, 126, 144, 0, 0, 0, 0, 147, 168, 1, 5, 0, 0, 133, 152, 0, 0, 0, 0, 147, 168, 1, 5, 0, 0, 133, 152, 0, 0, 65, 67, 83, 84, 0, 65, 67, 68, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 65, 67, 83, 84, 45, 57, 58, 51, 48, 65, 67, 68, 84, 44, 77, 49, 48, 46, 49, 46, 48, 44, 77, 52, 46, 49, 46, 48, 47, 51, 10}, + + "zoneinfo/Brazil/Acre": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 33, 0, 0, 0, 5, 0, 0, 0, 12, 128, 0, 0, 0, 150, 170, 134, 144, 184, 15, 102, 0, 184, 253, 92, 192, 185, 241, 80, 80, 186, 222, 144, 64, 218, 56, 202, 80, 218, 236, 22, 80, 220, 25, 253, 208, 220, 185, 117, 64, 221, 251, 49, 80, 222, 155, 250, 64, 223, 221, 182, 80, 224, 84, 79, 64, 244, 152, 27, 208, 245, 5, 122, 64, 246, 192, 128, 80, 247, 14, 58, 192, 248, 81, 72, 80, 248, 199, 225, 64, 250, 10, 238, 208, 250, 169, 20, 192, 251, 236, 34, 80, 252, 139, 153, 192, 29, 201, 170, 80, 30, 120, 243, 192, 31, 160, 81, 208, 32, 51, 235, 192, 33, 129, 133, 80, 34, 11, 228, 192, 72, 96, 127, 80, 82, 127, 4, 192, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 2, 255, 255, 192, 112, 0, 0, 255, 255, 199, 192, 1, 4, 255, 255, 185, 176, 0, 8, 255, 255, 199, 192, 0, 4, 255, 255, 185, 176, 0, 8, 76, 77, 84, 0, 45, 48, 52, 0, 45, 48, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 53, 62, 53, 10}, + + "zoneinfo/Brazil/DeNoronha": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 150, 170, 101, 100, 184, 15, 59, 208, 184, 253, 50, 144, 185, 241, 38, 32, 186, 222, 102, 16, 218, 56, 160, 32, 218, 235, 236, 32, 220, 25, 211, 160, 220, 185, 75, 16, 221, 251, 7, 32, 222, 155, 208, 16, 223, 221, 140, 32, 224, 84, 37, 16, 244, 151, 241, 160, 245, 5, 80, 16, 246, 192, 86, 32, 247, 14, 16, 144, 248, 81, 30, 32, 248, 199, 183, 16, 250, 10, 196, 160, 250, 168, 234, 144, 251, 235, 248, 32, 252, 139, 111, 144, 29, 201, 128, 32, 30, 120, 201, 144, 31, 160, 39, 160, 32, 51, 193, 144, 33, 129, 91, 32, 34, 11, 186, 144, 35, 88, 2, 160, 35, 226, 98, 16, 37, 55, 228, 160, 37, 212, 185, 16, 55, 246, 184, 160, 56, 184, 119, 16, 57, 223, 213, 32, 57, 233, 1, 144, 59, 200, 241, 160, 60, 111, 0, 144, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 255, 255, 225, 156, 0, 0, 255, 255, 241, 240, 1, 4, 255, 255, 227, 224, 0, 8, 76, 77, 84, 0, 45, 48, 49, 0, 45, 48, 50, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 50, 62, 50, 10}, + + "zoneinfo/Brazil/East": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 129, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 150, 170, 114, 180, 184, 15, 73, 224, 184, 253, 64, 160, 185, 241, 52, 48, 186, 222, 116, 32, 218, 56, 174, 48, 218, 235, 250, 48, 220, 25, 225, 176, 220, 185, 89, 32, 221, 251, 21, 48, 222, 155, 222, 32, 223, 221, 154, 48, 224, 84, 51, 32, 244, 90, 9, 48, 245, 5, 94, 32, 246, 192, 100, 48, 247, 14, 30, 160, 248, 81, 44, 48, 248, 199, 197, 32, 250, 10, 210, 176, 250, 168, 248, 160, 251, 236, 6, 48, 252, 139, 125, 160, 29, 201, 142, 48, 30, 120, 215, 160, 31, 160, 53, 176, 32, 51, 207, 160, 33, 129, 105, 48, 34, 11, 200, 160, 35, 88, 16, 176, 35, 226, 112, 32, 37, 55, 242, 176, 37, 212, 199, 32, 39, 33, 15, 48, 39, 189, 227, 160, 41, 0, 241, 48, 41, 148, 139, 32, 42, 234, 13, 176, 43, 107, 50, 160, 44, 192, 181, 48, 45, 102, 196, 32, 46, 160, 151, 48, 47, 70, 166, 32, 48, 128, 121, 48, 49, 29, 77, 160, 50, 87, 32, 176, 51, 6, 106, 32, 52, 56, 84, 48, 52, 248, 193, 32, 54, 32, 31, 48, 54, 207, 104, 160, 55, 246, 198, 176, 56, 184, 133, 32, 57, 223, 227, 48, 58, 143, 44, 160, 59, 200, 255, 176, 60, 111, 14, 160, 61, 196, 145, 48, 62, 78, 240, 160, 63, 145, 254, 48, 64, 46, 210, 160, 65, 134, 248, 48, 66, 23, 239, 32, 67, 81, 194, 48, 67, 247, 209, 32, 69, 77, 83, 176, 69, 224, 237, 160, 71, 17, 134, 48, 71, 183, 149, 32, 72, 250, 162, 176, 73, 151, 119, 32, 74, 218, 132, 176, 75, 128, 147, 160, 76, 186, 102, 176, 77, 96, 117, 160, 78, 154, 72, 176, 79, 73, 146, 32, 80, 131, 101, 48, 81, 32, 57, 160, 82, 99, 71, 48, 83, 0, 27, 160, 84, 67, 41, 48, 84, 233, 56, 32, 86, 35, 11, 48, 86, 201, 26, 32, 88, 2, 237, 48, 88, 168, 252, 32, 89, 226, 207, 48, 90, 136, 222, 32, 91, 203, 235, 176, 92, 104, 192, 32, 93, 171, 205, 176, 94, 72, 162, 32, 95, 139, 175, 176, 96, 49, 190, 160, 97, 107, 145, 176, 98, 17, 160, 160, 99, 75, 115, 176, 99, 250, 189, 32, 101, 43, 85, 176, 101, 209, 100, 160, 103, 20, 114, 48, 103, 177, 70, 160, 104, 244, 84, 48, 105, 154, 99, 32, 106, 212, 54, 48, 107, 122, 69, 32, 108, 180, 24, 48, 109, 90, 39, 32, 110, 147, 250, 48, 111, 58, 9, 32, 112, 125, 22, 176, 113, 25, 235, 32, 114, 92, 248, 176, 114, 249, 205, 32, 116, 60, 218, 176, 116, 217, 175, 32, 118, 28, 188, 176, 118, 194, 203, 160, 119, 252, 158, 176, 120, 171, 232, 32, 121, 220, 128, 176, 122, 130, 143, 160, 123, 197, 157, 48, 124, 98, 113, 160, 125, 165, 127, 48, 126, 75, 142, 32, 127, 133, 97, 48, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 255, 255, 212, 76, 0, 0, 255, 255, 227, 224, 1, 4, 255, 255, 213, 208, 0, 8, 76, 77, 84, 0, 45, 48, 50, 0, 45, 48, 51, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 60, 45, 48, 50, 62, 44, 77, 49, 48, 46, 51, 46, 48, 47, 48, 44, 77, 50, 46, 51, 46, 48, 47, 48, 10}, + + "zoneinfo/Brazil/West": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 33, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 150, 170, 127, 68, 184, 15, 87, 240, 184, 253, 78, 176, 185, 241, 66, 64, 186, 222, 130, 48, 218, 56, 188, 64, 218, 236, 8, 64, 220, 25, 239, 192, 220, 185, 103, 48, 221, 251, 35, 64, 222, 155, 236, 48, 223, 221, 168, 64, 224, 84, 65, 48, 244, 152, 13, 192, 245, 5, 108, 48, 246, 192, 114, 64, 247, 14, 44, 176, 248, 81, 58, 64, 248, 199, 211, 48, 250, 10, 224, 192, 250, 169, 6, 176, 251, 236, 20, 64, 252, 139, 139, 176, 29, 201, 156, 64, 30, 120, 229, 176, 31, 160, 67, 192, 32, 51, 221, 176, 33, 129, 119, 64, 34, 11, 214, 176, 44, 192, 195, 64, 45, 102, 210, 48, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 255, 255, 199, 188, 0, 0, 255, 255, 213, 208, 1, 4, 255, 255, 199, 192, 0, 8, 76, 77, 84, 0, 45, 48, 51, 0, 45, 48, 52, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 52, 62, 52, 10}, + + "zoneinfo/CET": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 136, 0, 0, 0, 4, 0, 0, 0, 9, 155, 12, 23, 96, 155, 213, 218, 240, 156, 217, 174, 144, 157, 164, 181, 144, 158, 185, 144, 144, 159, 132, 151, 144, 200, 9, 113, 144, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 130, 37, 16, 209, 114, 22, 16, 210, 78, 64, 144, 13, 164, 99, 144, 14, 139, 26, 16, 15, 132, 69, 144, 16, 116, 54, 144, 17, 100, 39, 144, 18, 84, 24, 144, 19, 77, 68, 16, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 0, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 0, 0, 28, 32, 1, 0, 0, 0, 14, 16, 0, 5, 0, 0, 28, 32, 1, 0, 0, 0, 14, 16, 0, 5, 67, 69, 83, 84, 0, 67, 69, 84, 0, 0, 0, 1, 1, 0, 0, 0, 0, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/CST6CDT": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 149, 0, 0, 0, 4, 0, 0, 0, 16, 158, 166, 44, 128, 159, 186, 249, 112, 160, 134, 14, 128, 161, 154, 219, 112, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 250, 248, 103, 0, 251, 232, 73, 240, 252, 216, 73, 0, 253, 200, 43, 240, 254, 184, 43, 0, 255, 168, 13, 240, 0, 152, 13, 0, 1, 135, 239, 240, 2, 119, 239, 0, 3, 113, 12, 112, 4, 97, 11, 128, 5, 80, 238, 112, 6, 64, 237, 128, 7, 48, 208, 112, 7, 141, 39, 128, 9, 16, 178, 112, 9, 173, 163, 0, 10, 240, 148, 112, 11, 224, 147, 128, 12, 217, 176, 240, 13, 192, 117, 128, 14, 185, 146, 240, 15, 169, 146, 0, 16, 153, 116, 240, 17, 137, 116, 0, 18, 121, 86, 240, 19, 105, 86, 0, 20, 89, 56, 240, 21, 73, 56, 0, 22, 57, 26, 240, 23, 41, 26, 0, 24, 34, 55, 112, 25, 8, 252, 0, 26, 2, 25, 112, 26, 242, 24, 128, 27, 225, 251, 112, 28, 209, 250, 128, 29, 193, 221, 112, 30, 177, 220, 128, 31, 161, 191, 112, 32, 118, 15, 0, 33, 129, 161, 112, 34, 85, 241, 0, 35, 106, 189, 240, 36, 53, 211, 0, 37, 74, 159, 240, 38, 21, 181, 0, 39, 42, 129, 240, 39, 254, 209, 128, 41, 10, 99, 240, 41, 222, 179, 128, 42, 234, 69, 240, 43, 190, 149, 128, 44, 211, 98, 112, 45, 158, 119, 128, 46, 179, 68, 112, 47, 126, 89, 128, 48, 147, 38, 112, 49, 103, 118, 0, 50, 115, 8, 112, 51, 71, 88, 0, 52, 82, 234, 112, 53, 39, 58, 0, 54, 50, 204, 112, 55, 7, 28, 0, 56, 27, 232, 240, 56, 230, 254, 0, 57, 251, 202, 240, 58, 198, 224, 0, 59, 219, 172, 240, 60, 175, 252, 128, 61, 187, 142, 240, 62, 143, 222, 128, 63, 155, 112, 240, 64, 111, 192, 128, 65, 132, 141, 112, 66, 79, 162, 128, 67, 100, 111, 112, 68, 47, 132, 128, 69, 68, 81, 112, 69, 243, 183, 0, 71, 45, 109, 240, 71, 211, 153, 0, 73, 13, 79, 240, 73, 179, 123, 0, 74, 237, 49, 240, 75, 156, 151, 128, 76, 214, 78, 112, 77, 124, 121, 128, 78, 182, 48, 112, 79, 92, 91, 128, 80, 150, 18, 112, 81, 60, 61, 128, 82, 117, 244, 112, 83, 28, 31, 128, 84, 85, 214, 112, 84, 252, 1, 128, 86, 53, 184, 112, 86, 229, 30, 0, 88, 30, 212, 240, 88, 197, 0, 0, 89, 254, 182, 240, 90, 164, 226, 0, 91, 222, 152, 240, 92, 132, 196, 0, 93, 190, 122, 240, 94, 100, 166, 0, 95, 158, 92, 240, 96, 77, 194, 128, 97, 135, 121, 112, 98, 45, 164, 128, 99, 103, 91, 112, 100, 13, 134, 128, 101, 71, 61, 112, 101, 237, 104, 128, 103, 39, 31, 112, 103, 205, 74, 128, 105, 7, 1, 112, 105, 173, 44, 128, 106, 230, 227, 112, 107, 150, 73, 0, 108, 207, 255, 240, 109, 118, 43, 0, 110, 175, 225, 240, 111, 86, 13, 0, 112, 143, 195, 240, 113, 53, 239, 0, 114, 111, 165, 240, 115, 21, 209, 0, 116, 79, 135, 240, 116, 254, 237, 128, 118, 56, 164, 112, 118, 222, 207, 128, 120, 24, 134, 112, 120, 190, 177, 128, 121, 248, 104, 112, 122, 158, 147, 128, 123, 216, 74, 112, 124, 126, 117, 128, 125, 184, 44, 112, 126, 94, 87, 128, 127, 152, 14, 112, 0, 1, 0, 1, 2, 3, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 255, 255, 185, 176, 1, 0, 255, 255, 171, 160, 0, 4, 255, 255, 185, 176, 1, 8, 255, 255, 185, 176, 1, 12, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 0, 0, 0, 1, 0, 0, 0, 1, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/Canada/Atlantic": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 229, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 128, 241, 171, 160, 154, 228, 222, 192, 155, 214, 19, 48, 158, 184, 133, 96, 159, 186, 221, 80, 162, 157, 23, 64, 163, 48, 177, 48, 164, 122, 86, 64, 165, 27, 31, 48, 166, 83, 160, 192, 166, 252, 82, 176, 168, 60, 189, 64, 168, 220, 52, 176, 170, 28, 159, 64, 170, 205, 58, 48, 171, 252, 129, 64, 172, 191, 145, 48, 173, 238, 216, 64, 174, 140, 254, 48, 175, 188, 69, 64, 176, 127, 85, 48, 177, 174, 156, 64, 178, 75, 112, 176, 179, 142, 126, 64, 180, 36, 187, 48, 181, 110, 96, 64, 182, 21, 192, 176, 183, 78, 66, 64, 184, 8, 23, 176, 185, 36, 233, 192, 185, 231, 249, 176, 187, 4, 203, 192, 187, 209, 22, 48, 189, 0, 93, 64, 189, 157, 49, 176, 190, 242, 180, 64, 191, 144, 218, 48, 192, 211, 231, 192, 193, 94, 71, 48, 194, 141, 142, 64, 195, 80, 158, 48, 196, 109, 112, 64, 197, 48, 128, 48, 198, 114, 60, 64, 199, 16, 98, 48, 200, 54, 110, 192, 200, 249, 126, 176, 202, 22, 80, 192, 202, 217, 96, 176, 203, 136, 226, 96, 210, 35, 244, 112, 210, 96, 237, 208, 211, 117, 214, 224, 212, 64, 207, 208, 213, 85, 184, 224, 214, 32, 177, 208, 215, 53, 154, 224, 216, 0, 147, 208, 217, 21, 124, 224, 217, 224, 117, 208, 220, 222, 123, 96, 221, 169, 116, 80, 222, 190, 93, 96, 223, 137, 86, 80, 224, 158, 63, 96, 225, 105, 56, 80, 226, 126, 33, 96, 227, 73, 26, 80, 230, 71, 31, 224, 231, 18, 24, 208, 232, 39, 1, 224, 232, 241, 250, 208, 234, 6, 227, 224, 234, 209, 220, 208, 235, 230, 197, 224, 236, 177, 190, 208, 241, 143, 166, 96, 242, 127, 137, 80, 243, 111, 136, 96, 244, 95, 107, 80, 245, 79, 106, 96, 246, 63, 77, 80, 247, 47, 76, 96, 248, 40, 105, 208, 249, 15, 46, 96, 250, 8, 75, 208, 250, 248, 74, 224, 251, 232, 45, 208, 252, 216, 44, 224, 253, 200, 15, 208, 254, 184, 14, 224, 255, 167, 241, 208, 0, 151, 240, 224, 1, 135, 211, 208, 2, 119, 210, 224, 3, 112, 240, 80, 4, 96, 239, 96, 5, 80, 210, 80, 6, 64, 209, 96, 7, 48, 180, 80, 8, 32, 179, 96, 9, 16, 150, 80, 10, 0, 149, 96, 10, 240, 120, 80, 11, 224, 119, 96, 12, 217, 148, 208, 13, 192, 89, 96, 14, 185, 118, 208, 15, 169, 117, 224, 16, 153, 88, 208, 17, 137, 87, 224, 18, 121, 58, 208, 19, 105, 57, 224, 20, 89, 28, 208, 21, 73, 27, 224, 22, 56, 254, 208, 23, 40, 253, 224, 24, 34, 27, 80, 25, 8, 223, 224, 26, 1, 253, 80, 26, 241, 252, 96, 27, 225, 223, 80, 28, 209, 222, 96, 29, 193, 193, 80, 30, 177, 192, 96, 31, 161, 163, 80, 32, 117, 242, 224, 33, 129, 133, 80, 34, 85, 212, 224, 35, 106, 161, 208, 36, 53, 182, 224, 37, 74, 131, 208, 38, 21, 152, 224, 39, 42, 101, 208, 39, 254, 181, 96, 41, 10, 71, 208, 41, 222, 151, 96, 42, 234, 41, 208, 43, 190, 121, 96, 44, 211, 70, 80, 45, 158, 91, 96, 46, 179, 40, 80, 47, 126, 61, 96, 48, 147, 10, 80, 49, 103, 89, 224, 50, 114, 236, 80, 51, 71, 59, 224, 52, 82, 206, 80, 53, 39, 29, 224, 54, 50, 176, 80, 55, 6, 255, 224, 56, 27, 204, 208, 56, 230, 225, 224, 57, 251, 174, 208, 58, 198, 195, 224, 59, 219, 144, 208, 60, 175, 224, 96, 61, 187, 114, 208, 62, 143, 194, 96, 63, 155, 84, 208, 64, 111, 164, 96, 65, 132, 113, 80, 66, 79, 134, 96, 67, 100, 83, 80, 68, 47, 104, 96, 69, 68, 53, 80, 69, 243, 154, 224, 71, 45, 81, 208, 71, 211, 124, 224, 73, 13, 51, 208, 73, 179, 94, 224, 74, 237, 21, 208, 75, 156, 123, 96, 76, 214, 50, 80, 77, 124, 93, 96, 78, 182, 20, 80, 79, 92, 63, 96, 80, 149, 246, 80, 81, 60, 33, 96, 82, 117, 216, 80, 83, 28, 3, 96, 84, 85, 186, 80, 84, 251, 229, 96, 86, 53, 156, 80, 86, 229, 1, 224, 88, 30, 184, 208, 88, 196, 227, 224, 89, 254, 154, 208, 90, 164, 197, 224, 91, 222, 124, 208, 92, 132, 167, 224, 93, 190, 94, 208, 94, 100, 137, 224, 95, 158, 64, 208, 96, 77, 166, 96, 97, 135, 93, 80, 98, 45, 136, 96, 99, 103, 63, 80, 100, 13, 106, 96, 101, 71, 33, 80, 101, 237, 76, 96, 103, 39, 3, 80, 103, 205, 46, 96, 105, 6, 229, 80, 105, 173, 16, 96, 106, 230, 199, 80, 107, 150, 44, 224, 108, 207, 227, 208, 109, 118, 14, 224, 110, 175, 197, 208, 111, 85, 240, 224, 112, 143, 167, 208, 113, 53, 210, 224, 114, 111, 137, 208, 115, 21, 180, 224, 116, 79, 107, 208, 116, 254, 209, 96, 118, 56, 136, 80, 118, 222, 179, 96, 120, 24, 106, 80, 120, 190, 149, 96, 121, 248, 76, 80, 122, 158, 119, 96, 123, 216, 46, 80, 124, 126, 89, 96, 125, 184, 16, 80, 126, 94, 59, 96, 127, 151, 242, 80, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 196, 96, 0, 0, 255, 255, 213, 208, 1, 4, 255, 255, 199, 192, 0, 8, 255, 255, 213, 208, 1, 12, 255, 255, 213, 208, 1, 16, 76, 77, 84, 0, 65, 68, 84, 0, 65, 83, 84, 0, 65, 87, 84, 0, 65, 80, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 10, 65, 83, 84, 52, 65, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/Canada/Central": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 187, 0, 0, 0, 7, 0, 0, 0, 20, 128, 0, 0, 0, 155, 1, 251, 224, 155, 195, 186, 80, 158, 184, 161, 128, 159, 186, 249, 112, 194, 160, 59, 128, 195, 79, 132, 240, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 211, 136, 104, 0, 212, 83, 96, 240, 213, 85, 213, 0, 214, 32, 205, 240, 215, 53, 183, 0, 216, 0, 175, 240, 217, 21, 153, 0, 217, 224, 145, 240, 219, 0, 7, 0, 219, 200, 92, 240, 220, 222, 151, 128, 221, 169, 144, 112, 222, 190, 121, 128, 223, 137, 114, 112, 224, 158, 91, 128, 225, 105, 84, 112, 226, 126, 61, 128, 227, 73, 54, 112, 228, 94, 31, 128, 229, 41, 24, 112, 230, 71, 60, 0, 231, 18, 52, 240, 232, 39, 30, 0, 232, 242, 22, 240, 234, 7, 0, 0, 234, 209, 248, 240, 235, 230, 226, 0, 236, 214, 196, 240, 237, 198, 196, 0, 238, 145, 188, 240, 243, 111, 164, 128, 244, 49, 98, 240, 249, 15, 74, 128, 250, 8, 118, 0, 250, 248, 103, 0, 251, 232, 88, 0, 252, 216, 73, 0, 253, 200, 58, 0, 254, 184, 43, 0, 255, 168, 28, 0, 0, 152, 13, 0, 1, 135, 254, 0, 2, 119, 239, 0, 3, 113, 26, 128, 4, 97, 11, 128, 5, 80, 252, 128, 6, 64, 237, 128, 7, 48, 222, 128, 8, 32, 207, 128, 9, 16, 192, 128, 10, 0, 177, 128, 10, 240, 162, 128, 11, 224, 147, 128, 12, 217, 191, 0, 13, 192, 117, 128, 14, 185, 161, 0, 15, 169, 146, 0, 16, 153, 131, 0, 17, 137, 116, 0, 18, 121, 101, 0, 19, 105, 86, 0, 20, 89, 71, 0, 21, 73, 56, 0, 22, 57, 41, 0, 23, 41, 26, 0, 24, 34, 69, 128, 25, 8, 252, 0, 26, 2, 39, 128, 26, 242, 24, 128, 27, 226, 9, 128, 28, 209, 250, 128, 29, 193, 235, 128, 30, 177, 220, 128, 31, 161, 205, 128, 32, 118, 15, 0, 33, 129, 175, 128, 34, 85, 241, 0, 35, 106, 204, 0, 36, 53, 211, 0, 37, 74, 174, 0, 38, 21, 181, 0, 39, 42, 144, 0, 39, 254, 209, 128, 41, 10, 114, 0, 41, 222, 179, 128, 42, 234, 84, 0, 43, 190, 149, 128, 44, 211, 112, 128, 45, 158, 119, 128, 46, 179, 82, 128, 47, 126, 89, 128, 48, 147, 52, 128, 49, 103, 118, 0, 50, 115, 22, 128, 51, 71, 88, 0, 52, 82, 248, 128, 53, 39, 58, 0, 54, 50, 218, 128, 55, 7, 28, 0, 56, 27, 247, 0, 56, 230, 254, 0, 57, 251, 217, 0, 58, 198, 224, 0, 59, 219, 187, 0, 60, 175, 252, 128, 61, 187, 157, 0, 62, 143, 222, 128, 63, 155, 127, 0, 64, 111, 192, 128, 65, 132, 155, 128, 66, 79, 162, 128, 67, 100, 125, 128, 67, 183, 111, 224, 68, 47, 132, 128, 69, 68, 81, 112, 69, 243, 183, 0, 71, 45, 109, 240, 71, 211, 153, 0, 73, 13, 79, 240, 73, 179, 123, 0, 74, 237, 49, 240, 75, 156, 151, 128, 76, 214, 78, 112, 77, 124, 121, 128, 78, 182, 48, 112, 79, 92, 91, 128, 80, 150, 18, 112, 81, 60, 61, 128, 82, 117, 244, 112, 83, 28, 31, 128, 84, 85, 214, 112, 84, 252, 1, 128, 86, 53, 184, 112, 86, 229, 30, 0, 88, 30, 212, 240, 88, 197, 0, 0, 89, 254, 182, 240, 90, 164, 226, 0, 91, 222, 152, 240, 92, 132, 196, 0, 93, 190, 122, 240, 94, 100, 166, 0, 95, 158, 92, 240, 96, 77, 194, 128, 97, 135, 121, 112, 98, 45, 164, 128, 99, 103, 91, 112, 100, 13, 134, 128, 101, 71, 61, 112, 101, 237, 104, 128, 103, 39, 31, 112, 103, 205, 74, 128, 105, 7, 1, 112, 105, 173, 44, 128, 106, 230, 227, 112, 107, 150, 73, 0, 108, 207, 255, 240, 109, 118, 43, 0, 110, 175, 225, 240, 111, 86, 13, 0, 112, 143, 195, 240, 113, 53, 239, 0, 114, 111, 165, 240, 115, 21, 209, 0, 116, 79, 135, 240, 116, 254, 237, 128, 118, 56, 164, 112, 118, 222, 207, 128, 120, 24, 134, 112, 120, 190, 177, 128, 121, 248, 104, 112, 122, 158, 147, 128, 123, 216, 74, 112, 124, 126, 117, 128, 125, 184, 44, 112, 126, 94, 87, 128, 127, 152, 14, 112, 2, 1, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 164, 236, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/Canada/Eastern": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 158, 184, 147, 112, 159, 186, 235, 96, 160, 135, 46, 200, 161, 154, 177, 64, 162, 148, 6, 240, 163, 85, 169, 64, 164, 134, 93, 240, 165, 40, 120, 96, 166, 102, 63, 240, 167, 12, 78, 224, 168, 70, 33, 240, 168, 236, 48, 224, 170, 28, 201, 112, 170, 213, 77, 96, 171, 252, 171, 112, 172, 181, 47, 96, 173, 220, 141, 112, 174, 149, 17, 96, 175, 188, 111, 112, 176, 126, 45, 224, 177, 156, 81, 112, 178, 103, 74, 96, 179, 124, 51, 112, 180, 71, 44, 96, 181, 92, 21, 112, 182, 39, 14, 96, 183, 59, 247, 112, 184, 6, 240, 96, 185, 37, 19, 240, 185, 230, 210, 96, 187, 4, 245, 240, 187, 207, 238, 224, 188, 228, 215, 240, 189, 175, 208, 224, 190, 196, 185, 240, 191, 143, 178, 224, 192, 164, 155, 240, 193, 111, 148, 224, 194, 132, 125, 240, 195, 79, 118, 224, 196, 100, 95, 240, 197, 47, 88, 224, 198, 77, 124, 112, 199, 15, 58, 224, 200, 45, 94, 112, 203, 136, 240, 112, 210, 35, 244, 112, 210, 96, 251, 224, 211, 117, 228, 240, 212, 64, 221, 224, 213, 85, 170, 208, 214, 32, 163, 192, 215, 53, 140, 208, 216, 0, 133, 192, 217, 21, 110, 208, 218, 51, 118, 64, 218, 254, 167, 112, 220, 19, 116, 96, 220, 222, 137, 112, 221, 169, 130, 96, 222, 190, 107, 112, 223, 137, 100, 96, 224, 158, 77, 112, 225, 105, 70, 96, 226, 126, 47, 112, 227, 73, 40, 96, 228, 94, 17, 112, 229, 41, 10, 96, 230, 71, 45, 240, 231, 18, 38, 224, 232, 39, 15, 240, 233, 22, 242, 224, 234, 6, 241, 240, 234, 246, 212, 224, 235, 230, 211, 240, 236, 214, 182, 224, 237, 198, 181, 240, 238, 191, 211, 96, 239, 175, 210, 112, 240, 159, 181, 96, 241, 143, 180, 112, 242, 127, 151, 96, 243, 111, 150, 112, 244, 95, 121, 96, 245, 79, 120, 112, 246, 63, 91, 96, 247, 47, 90, 112, 248, 40, 119, 224, 249, 15, 60, 112, 250, 8, 89, 224, 250, 248, 88, 240, 251, 232, 59, 224, 252, 216, 58, 240, 253, 200, 29, 224, 254, 184, 28, 240, 255, 167, 255, 224, 0, 151, 254, 240, 1, 135, 225, 224, 2, 119, 224, 240, 3, 112, 254, 96, 4, 96, 253, 112, 5, 80, 224, 96, 6, 64, 223, 112, 7, 48, 194, 96, 8, 32, 193, 112, 9, 16, 164, 96, 10, 0, 163, 112, 10, 240, 134, 96, 11, 224, 133, 112, 12, 217, 162, 224, 13, 192, 103, 112, 14, 185, 132, 224, 15, 169, 131, 240, 16, 153, 102, 224, 17, 137, 101, 240, 18, 121, 72, 224, 19, 105, 71, 240, 20, 89, 42, 224, 21, 73, 41, 240, 22, 57, 12, 224, 23, 41, 11, 240, 24, 34, 41, 96, 25, 8, 237, 240, 26, 2, 11, 96, 26, 242, 10, 112, 27, 225, 237, 96, 28, 209, 236, 112, 29, 193, 207, 96, 30, 177, 206, 112, 31, 161, 177, 96, 32, 118, 0, 240, 33, 129, 147, 96, 34, 85, 226, 240, 35, 106, 175, 224, 36, 53, 196, 240, 37, 74, 145, 224, 38, 21, 166, 240, 39, 42, 115, 224, 39, 254, 195, 112, 41, 10, 85, 224, 41, 222, 165, 112, 42, 234, 55, 224, 43, 190, 135, 112, 44, 211, 84, 96, 45, 158, 105, 112, 46, 179, 54, 96, 47, 126, 75, 112, 48, 147, 24, 96, 49, 103, 103, 240, 50, 114, 250, 96, 51, 71, 73, 240, 52, 82, 220, 96, 53, 39, 43, 240, 54, 50, 190, 96, 55, 7, 13, 240, 56, 27, 218, 224, 56, 230, 239, 240, 57, 251, 188, 224, 58, 198, 209, 240, 59, 219, 158, 224, 60, 175, 238, 112, 61, 187, 128, 224, 62, 143, 208, 112, 63, 155, 98, 224, 64, 111, 178, 112, 65, 132, 127, 96, 66, 79, 148, 112, 67, 100, 97, 96, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 181, 148, 0, 0, 255, 255, 199, 192, 1, 4, 255, 255, 185, 176, 0, 8, 255, 255, 199, 192, 1, 12, 255, 255, 199, 192, 1, 16, 76, 77, 84, 0, 69, 68, 84, 0, 69, 83, 84, 0, 69, 87, 84, 0, 69, 80, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/Canada/Mountain": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 155, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 136, 222, 206, 224, 158, 184, 175, 144, 159, 187, 7, 128, 160, 152, 145, 144, 160, 210, 133, 128, 162, 138, 232, 144, 163, 132, 6, 0, 164, 106, 202, 144, 165, 53, 195, 128, 166, 83, 231, 16, 167, 21, 165, 128, 168, 51, 201, 16, 168, 254, 194, 0, 203, 137, 12, 144, 210, 35, 244, 112, 210, 97, 24, 0, 213, 85, 227, 16, 214, 32, 220, 0, 250, 248, 117, 16, 251, 232, 88, 0, 254, 184, 57, 16, 255, 168, 28, 0, 4, 97, 25, 144, 5, 80, 252, 128, 6, 64, 251, 144, 7, 48, 222, 128, 8, 32, 221, 144, 9, 16, 192, 128, 10, 0, 191, 144, 10, 240, 162, 128, 11, 224, 161, 144, 12, 217, 191, 0, 13, 192, 131, 144, 14, 185, 161, 0, 15, 169, 160, 16, 16, 153, 131, 0, 17, 137, 130, 16, 18, 121, 101, 0, 19, 105, 100, 16, 20, 89, 71, 0, 21, 73, 70, 16, 22, 57, 41, 0, 23, 41, 40, 16, 24, 34, 69, 128, 25, 9, 10, 16, 26, 2, 39, 128, 26, 242, 38, 144, 27, 226, 9, 128, 28, 210, 8, 144, 29, 193, 235, 128, 30, 177, 234, 144, 31, 161, 205, 128, 32, 118, 29, 16, 33, 129, 175, 128, 34, 85, 255, 16, 35, 106, 204, 0, 36, 53, 225, 16, 37, 74, 174, 0, 38, 21, 195, 16, 39, 42, 144, 0, 39, 254, 223, 144, 41, 10, 114, 0, 41, 222, 193, 144, 42, 234, 84, 0, 43, 190, 163, 144, 44, 211, 112, 128, 45, 158, 133, 144, 46, 179, 82, 128, 47, 126, 103, 144, 48, 147, 52, 128, 49, 103, 132, 16, 50, 115, 22, 128, 51, 71, 102, 16, 52, 82, 248, 128, 53, 39, 72, 16, 54, 50, 218, 128, 55, 7, 42, 16, 56, 27, 247, 0, 56, 231, 12, 16, 57, 251, 217, 0, 58, 198, 238, 16, 59, 219, 187, 0, 60, 176, 10, 144, 61, 187, 157, 0, 62, 143, 236, 144, 63, 155, 127, 0, 64, 111, 206, 144, 65, 132, 155, 128, 66, 79, 176, 144, 67, 100, 125, 128, 68, 47, 146, 144, 69, 68, 95, 128, 69, 243, 197, 16, 71, 45, 124, 0, 71, 211, 167, 16, 73, 13, 94, 0, 73, 179, 137, 16, 74, 237, 64, 0, 75, 156, 165, 144, 76, 214, 92, 128, 77, 124, 135, 144, 78, 182, 62, 128, 79, 92, 105, 144, 80, 150, 32, 128, 81, 60, 75, 144, 82, 118, 2, 128, 83, 28, 45, 144, 84, 85, 228, 128, 84, 252, 15, 144, 86, 53, 198, 128, 86, 229, 44, 16, 88, 30, 227, 0, 88, 197, 14, 16, 89, 254, 197, 0, 90, 164, 240, 16, 91, 222, 167, 0, 92, 132, 210, 16, 93, 190, 137, 0, 94, 100, 180, 16, 95, 158, 107, 0, 96, 77, 208, 144, 97, 135, 135, 128, 98, 45, 178, 144, 99, 103, 105, 128, 100, 13, 148, 144, 101, 71, 75, 128, 101, 237, 118, 144, 103, 39, 45, 128, 103, 205, 88, 144, 105, 7, 15, 128, 105, 173, 58, 144, 106, 230, 241, 128, 107, 150, 87, 16, 108, 208, 14, 0, 109, 118, 57, 16, 110, 175, 240, 0, 111, 86, 27, 16, 112, 143, 210, 0, 113, 53, 253, 16, 114, 111, 180, 0, 115, 21, 223, 16, 116, 79, 150, 0, 116, 254, 251, 144, 118, 56, 178, 128, 118, 222, 221, 144, 120, 24, 148, 128, 120, 190, 191, 144, 121, 248, 118, 128, 122, 158, 161, 144, 123, 216, 88, 128, 124, 126, 131, 144, 125, 184, 58, 128, 126, 94, 101, 144, 127, 152, 28, 128, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 149, 160, 0, 0, 255, 255, 171, 160, 1, 4, 255, 255, 157, 144, 0, 8, 255, 255, 171, 160, 1, 12, 255, 255, 171, 160, 1, 16, 76, 77, 84, 0, 77, 68, 84, 0, 77, 83, 84, 0, 77, 87, 84, 0, 77, 80, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 10, 77, 83, 84, 55, 77, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/Canada/Newfoundland": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 239, 0, 0, 0, 9, 0, 0, 0, 25, 128, 0, 0, 0, 156, 207, 98, 12, 157, 164, 230, 252, 158, 184, 126, 140, 159, 186, 214, 124, 160, 182, 136, 220, 161, 56, 255, 76, 162, 149, 25, 92, 163, 132, 252, 76, 164, 116, 251, 92, 165, 100, 222, 76, 166, 94, 23, 220, 167, 68, 192, 76, 168, 61, 249, 220, 169, 36, 162, 76, 170, 29, 219, 220, 171, 4, 132, 76, 171, 253, 189, 220, 172, 228, 102, 76, 173, 221, 159, 220, 174, 205, 130, 204, 175, 189, 129, 220, 176, 173, 100, 204, 177, 166, 158, 92, 178, 141, 70, 204, 179, 134, 128, 92, 180, 109, 40, 204, 181, 102, 98, 92, 182, 77, 10, 204, 183, 70, 68, 92, 184, 44, 236, 204, 185, 38, 38, 92, 186, 22, 9, 76, 187, 15, 66, 220, 187, 245, 235, 76, 188, 239, 36, 220, 189, 213, 205, 76, 190, 158, 77, 108, 190, 207, 6, 168, 191, 181, 175, 24, 192, 184, 49, 56, 193, 121, 239, 168, 194, 152, 19, 56, 195, 89, 209, 168, 196, 119, 245, 56, 197, 57, 179, 168, 198, 97, 17, 184, 199, 25, 149, 168, 200, 64, 243, 184, 201, 2, 178, 40, 202, 32, 213, 184, 202, 226, 148, 40, 204, 0, 183, 184, 210, 35, 244, 112, 210, 96, 230, 200, 211, 136, 68, 216, 212, 74, 3, 72, 213, 104, 38, 216, 214, 41, 229, 72, 215, 72, 8, 216, 216, 9, 199, 72, 217, 39, 234, 216, 217, 233, 169, 72, 219, 17, 7, 88, 219, 210, 197, 200, 220, 222, 116, 88, 221, 169, 109, 72, 222, 190, 86, 88, 223, 137, 79, 72, 224, 158, 56, 88, 225, 105, 49, 72, 226, 126, 26, 88, 227, 73, 19, 72, 228, 93, 252, 88, 229, 40, 245, 72, 230, 71, 24, 216, 231, 18, 17, 200, 232, 38, 250, 216, 232, 241, 243, 200, 234, 6, 220, 216, 234, 209, 213, 200, 235, 230, 190, 216, 236, 177, 183, 200, 237, 198, 160, 216, 238, 191, 190, 72, 239, 175, 189, 88, 240, 159, 160, 72, 241, 143, 159, 88, 242, 127, 130, 72, 243, 111, 129, 88, 244, 95, 100, 72, 245, 79, 99, 88, 246, 63, 70, 72, 247, 47, 69, 88, 248, 40, 98, 200, 249, 15, 39, 88, 250, 8, 68, 200, 250, 248, 67, 216, 251, 232, 38, 200, 252, 216, 37, 216, 253, 200, 8, 200, 254, 184, 7, 216, 255, 167, 234, 200, 0, 151, 233, 216, 1, 135, 204, 200, 2, 119, 203, 216, 3, 112, 233, 72, 4, 96, 232, 88, 5, 80, 203, 72, 6, 64, 202, 88, 7, 48, 173, 72, 8, 32, 172, 88, 9, 16, 143, 72, 10, 0, 142, 88, 10, 240, 113, 72, 11, 224, 112, 88, 12, 217, 141, 200, 13, 192, 82, 88, 14, 185, 111, 200, 15, 169, 110, 216, 16, 153, 81, 200, 17, 137, 80, 216, 18, 121, 51, 200, 19, 105, 50, 216, 20, 89, 21, 200, 21, 73, 20, 216, 22, 56, 247, 200, 23, 40, 246, 216, 24, 34, 20, 72, 25, 8, 216, 216, 26, 1, 246, 72, 26, 241, 245, 88, 27, 225, 216, 72, 28, 209, 215, 88, 29, 193, 186, 72, 30, 177, 185, 88, 31, 161, 156, 72, 32, 117, 207, 244, 33, 129, 98, 100, 34, 85, 177, 244, 35, 106, 112, 212, 36, 53, 147, 244, 37, 74, 96, 228, 38, 21, 117, 244, 39, 42, 66, 228, 39, 254, 146, 116, 41, 10, 36, 228, 41, 222, 116, 116, 42, 234, 6, 228, 43, 190, 86, 116, 44, 211, 35, 100, 45, 158, 56, 116, 46, 179, 5, 100, 47, 126, 26, 116, 48, 146, 231, 100, 49, 103, 54, 244, 50, 114, 201, 100, 51, 71, 24, 244, 52, 82, 171, 100, 53, 38, 250, 244, 54, 50, 141, 100, 55, 6, 220, 244, 56, 27, 169, 228, 56, 230, 190, 244, 57, 251, 139, 228, 58, 198, 160, 244, 59, 219, 109, 228, 60, 175, 189, 116, 61, 187, 79, 228, 62, 143, 159, 116, 63, 155, 49, 228, 64, 111, 129, 116, 65, 132, 78, 100, 66, 79, 99, 116, 67, 100, 48, 100, 68, 47, 69, 116, 69, 68, 18, 100, 69, 243, 119, 244, 71, 45, 46, 228, 71, 211, 89, 244, 73, 13, 16, 228, 73, 179, 59, 244, 74, 236, 242, 228, 75, 156, 88, 116, 76, 214, 15, 100, 77, 124, 58, 116, 78, 182, 13, 72, 79, 92, 56, 88, 80, 149, 239, 72, 81, 60, 26, 88, 82, 117, 209, 72, 83, 27, 252, 88, 84, 85, 179, 72, 84, 251, 222, 88, 86, 53, 149, 72, 86, 228, 250, 216, 88, 30, 177, 200, 88, 196, 220, 216, 89, 254, 147, 200, 90, 164, 190, 216, 91, 222, 117, 200, 92, 132, 160, 216, 93, 190, 87, 200, 94, 100, 130, 216, 95, 158, 57, 200, 96, 77, 159, 88, 97, 135, 86, 72, 98, 45, 129, 88, 99, 103, 56, 72, 100, 13, 99, 88, 101, 71, 26, 72, 101, 237, 69, 88, 103, 38, 252, 72, 103, 205, 39, 88, 105, 6, 222, 72, 105, 173, 9, 88, 106, 230, 192, 72, 107, 150, 37, 216, 108, 207, 220, 200, 109, 118, 7, 216, 110, 175, 190, 200, 111, 85, 233, 216, 112, 143, 160, 200, 113, 53, 203, 216, 114, 111, 130, 200, 115, 21, 173, 216, 116, 79, 100, 200, 116, 254, 202, 88, 118, 56, 129, 72, 118, 222, 172, 88, 120, 24, 99, 72, 120, 190, 142, 88, 121, 248, 69, 72, 122, 158, 112, 88, 123, 216, 39, 72, 124, 126, 82, 88, 125, 184, 9, 72, 126, 94, 52, 88, 127, 151, 235, 72, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 6, 5, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 7, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 255, 255, 206, 148, 0, 0, 255, 255, 220, 164, 1, 4, 255, 255, 206, 148, 0, 8, 255, 255, 220, 216, 1, 4, 255, 255, 206, 200, 0, 8, 255, 255, 220, 216, 1, 12, 255, 255, 220, 216, 1, 16, 255, 255, 234, 232, 1, 20, 255, 255, 220, 216, 1, 4, 76, 77, 84, 0, 78, 68, 84, 0, 78, 83, 84, 0, 78, 80, 84, 0, 78, 87, 84, 0, 78, 68, 68, 84, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 10, 78, 83, 84, 51, 58, 51, 48, 78, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/Canada/Pacific": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 190, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 158, 184, 189, 160, 159, 187, 21, 144, 203, 137, 26, 160, 210, 35, 244, 112, 210, 97, 38, 16, 211, 118, 15, 32, 212, 83, 125, 16, 213, 85, 241, 32, 214, 32, 234, 16, 215, 53, 211, 32, 216, 0, 204, 16, 217, 21, 181, 32, 217, 224, 174, 16, 218, 254, 209, 160, 219, 192, 144, 16, 220, 222, 179, 160, 221, 169, 172, 144, 222, 190, 149, 160, 223, 137, 142, 144, 224, 158, 119, 160, 225, 105, 112, 144, 226, 126, 89, 160, 227, 73, 82, 144, 228, 94, 59, 160, 229, 41, 52, 144, 230, 71, 88, 32, 231, 18, 81, 16, 232, 39, 58, 32, 232, 242, 51, 16, 234, 7, 28, 32, 234, 210, 21, 16, 235, 230, 254, 32, 236, 177, 247, 16, 237, 198, 224, 32, 238, 145, 217, 16, 239, 175, 252, 160, 240, 113, 187, 16, 241, 143, 222, 160, 242, 127, 193, 144, 243, 111, 192, 160, 244, 95, 163, 144, 245, 79, 162, 160, 246, 63, 133, 144, 247, 47, 132, 160, 248, 40, 162, 16, 249, 15, 102, 160, 250, 8, 132, 16, 250, 248, 131, 32, 251, 232, 102, 16, 252, 216, 101, 32, 253, 200, 72, 16, 254, 184, 71, 32, 255, 168, 42, 16, 0, 152, 41, 32, 1, 136, 12, 16, 2, 120, 11, 32, 3, 113, 40, 144, 4, 97, 39, 160, 5, 81, 10, 144, 6, 65, 9, 160, 7, 48, 236, 144, 8, 32, 235, 160, 9, 16, 206, 144, 10, 0, 205, 160, 10, 240, 176, 144, 11, 224, 175, 160, 12, 217, 205, 16, 13, 192, 145, 160, 14, 185, 175, 16, 15, 169, 174, 32, 16, 153, 145, 16, 17, 137, 144, 32, 18, 121, 115, 16, 19, 105, 114, 32, 20, 89, 85, 16, 21, 73, 84, 32, 22, 57, 55, 16, 23, 41, 54, 32, 24, 34, 83, 144, 25, 9, 24, 32, 26, 2, 53, 144, 26, 242, 52, 160, 27, 226, 23, 144, 28, 210, 22, 160, 29, 193, 249, 144, 30, 177, 248, 160, 31, 161, 219, 144, 32, 118, 43, 32, 33, 129, 189, 144, 34, 86, 13, 32, 35, 106, 218, 16, 36, 53, 239, 32, 37, 74, 188, 16, 38, 21, 209, 32, 39, 42, 158, 16, 39, 254, 237, 160, 41, 10, 128, 16, 41, 222, 207, 160, 42, 234, 98, 16, 43, 190, 177, 160, 44, 211, 126, 144, 45, 158, 147, 160, 46, 179, 96, 144, 47, 126, 117, 160, 48, 147, 66, 144, 49, 103, 146, 32, 50, 115, 36, 144, 51, 71, 116, 32, 52, 83, 6, 144, 53, 39, 86, 32, 54, 50, 232, 144, 55, 7, 56, 32, 56, 28, 5, 16, 56, 231, 26, 32, 57, 251, 231, 16, 58, 198, 252, 32, 59, 219, 201, 16, 60, 176, 24, 160, 61, 187, 171, 16, 62, 143, 250, 160, 63, 155, 141, 16, 64, 111, 220, 160, 65, 132, 169, 144, 66, 79, 190, 160, 67, 100, 139, 144, 68, 47, 160, 160, 69, 68, 109, 144, 69, 243, 211, 32, 71, 45, 138, 16, 71, 211, 181, 32, 73, 13, 108, 16, 73, 179, 151, 32, 74, 237, 78, 16, 75, 156, 179, 160, 76, 214, 106, 144, 77, 124, 149, 160, 78, 182, 76, 144, 79, 92, 119, 160, 80, 150, 46, 144, 81, 60, 89, 160, 82, 118, 16, 144, 83, 28, 59, 160, 84, 85, 242, 144, 84, 252, 29, 160, 86, 53, 212, 144, 86, 229, 58, 32, 88, 30, 241, 16, 88, 197, 28, 32, 89, 254, 211, 16, 90, 164, 254, 32, 91, 222, 181, 16, 92, 132, 224, 32, 93, 190, 151, 16, 94, 100, 194, 32, 95, 158, 121, 16, 96, 77, 222, 160, 97, 135, 149, 144, 98, 45, 192, 160, 99, 103, 119, 144, 100, 13, 162, 160, 101, 71, 89, 144, 101, 237, 132, 160, 103, 39, 59, 144, 103, 205, 102, 160, 105, 7, 29, 144, 105, 173, 72, 160, 106, 230, 255, 144, 107, 150, 101, 32, 108, 208, 28, 16, 109, 118, 71, 32, 110, 175, 254, 16, 111, 86, 41, 32, 112, 143, 224, 16, 113, 54, 11, 32, 114, 111, 194, 16, 115, 21, 237, 32, 116, 79, 164, 16, 116, 255, 9, 160, 118, 56, 192, 144, 118, 222, 235, 160, 120, 24, 162, 144, 120, 190, 205, 160, 121, 248, 132, 144, 122, 158, 175, 160, 123, 216, 102, 144, 124, 126, 145, 160, 125, 184, 72, 144, 126, 94, 115, 160, 127, 152, 42, 144, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 140, 148, 0, 0, 255, 255, 157, 144, 1, 4, 255, 255, 143, 128, 0, 8, 255, 255, 157, 144, 1, 12, 255, 255, 157, 144, 1, 16, 76, 77, 84, 0, 80, 68, 84, 0, 80, 83, 84, 0, 80, 87, 84, 0, 80, 80, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 10, 80, 83, 84, 56, 80, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/Canada/Saskatchewan": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 54, 0, 0, 0, 6, 0, 0, 0, 24, 128, 0, 0, 0, 134, 253, 147, 28, 158, 184, 175, 144, 159, 187, 7, 128, 181, 101, 79, 240, 182, 48, 72, 224, 183, 69, 49, 240, 184, 16, 42, 224, 185, 37, 19, 240, 185, 240, 12, 224, 187, 14, 48, 112, 187, 207, 238, 224, 188, 238, 18, 112, 189, 185, 11, 96, 194, 114, 8, 240, 195, 97, 235, 224, 196, 81, 234, 240, 197, 56, 147, 96, 198, 49, 204, 240, 199, 33, 175, 224, 200, 26, 233, 112, 201, 10, 204, 96, 201, 250, 203, 112, 202, 234, 174, 96, 203, 137, 12, 144, 210, 35, 244, 112, 210, 97, 24, 0, 211, 99, 140, 16, 212, 83, 111, 0, 213, 85, 227, 16, 214, 32, 220, 0, 215, 53, 197, 16, 216, 0, 190, 0, 217, 21, 167, 16, 217, 224, 160, 0, 218, 254, 195, 144, 219, 192, 130, 0, 220, 222, 165, 144, 221, 169, 158, 128, 222, 190, 135, 144, 223, 137, 128, 128, 224, 158, 105, 144, 225, 105, 98, 128, 226, 126, 75, 144, 227, 73, 68, 128, 228, 94, 45, 144, 229, 41, 38, 128, 230, 71, 74, 16, 231, 18, 67, 0, 232, 39, 44, 16, 232, 242, 37, 0, 235, 230, 240, 16, 236, 214, 211, 0, 237, 198, 210, 16, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 255, 255, 157, 228, 0, 0, 255, 255, 171, 160, 1, 4, 255, 255, 157, 144, 0, 8, 255, 255, 171, 160, 1, 12, 255, 255, 171, 160, 1, 16, 255, 255, 171, 160, 0, 20, 76, 77, 84, 0, 77, 68, 84, 0, 77, 83, 84, 0, 77, 87, 84, 0, 77, 80, 84, 0, 67, 83, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 10, 67, 83, 84, 54, 10}, + + "zoneinfo/Canada/Yukon": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 127, 0, 0, 0, 8, 0, 0, 0, 33, 128, 0, 0, 0, 158, 184, 203, 176, 159, 187, 35, 160, 160, 208, 12, 176, 161, 162, 210, 128, 203, 137, 40, 176, 210, 35, 244, 112, 210, 97, 52, 32, 247, 47, 118, 144, 248, 40, 162, 16, 251, 29, 95, 16, 19, 105, 114, 32, 20, 89, 85, 16, 21, 73, 84, 32, 22, 57, 55, 16, 23, 41, 54, 32, 24, 34, 83, 144, 25, 9, 24, 32, 26, 2, 53, 144, 26, 242, 52, 160, 27, 226, 23, 144, 28, 210, 22, 160, 29, 193, 249, 144, 30, 177, 248, 160, 31, 161, 219, 144, 32, 118, 43, 32, 33, 129, 189, 144, 34, 86, 13, 32, 35, 106, 218, 16, 36, 53, 239, 32, 37, 74, 188, 16, 38, 21, 209, 32, 39, 42, 158, 16, 39, 254, 237, 160, 41, 10, 128, 16, 41, 222, 207, 160, 42, 234, 98, 16, 43, 190, 177, 160, 44, 211, 126, 144, 45, 158, 147, 160, 46, 179, 96, 144, 47, 126, 117, 160, 48, 147, 66, 144, 49, 103, 146, 32, 50, 115, 36, 144, 51, 71, 116, 32, 52, 83, 6, 144, 53, 39, 86, 32, 54, 50, 232, 144, 55, 7, 56, 32, 56, 28, 5, 16, 56, 231, 26, 32, 57, 251, 231, 16, 58, 198, 252, 32, 59, 219, 201, 16, 60, 176, 24, 160, 61, 187, 171, 16, 62, 143, 250, 160, 63, 155, 141, 16, 64, 111, 220, 160, 65, 132, 169, 144, 66, 79, 190, 160, 67, 100, 139, 144, 68, 47, 160, 160, 69, 68, 109, 144, 69, 243, 211, 32, 71, 45, 138, 16, 71, 211, 181, 32, 73, 13, 108, 16, 73, 179, 151, 32, 74, 237, 78, 16, 75, 156, 179, 160, 76, 214, 106, 144, 77, 124, 149, 160, 78, 182, 76, 144, 79, 92, 119, 160, 80, 150, 46, 144, 81, 60, 89, 160, 82, 118, 16, 144, 83, 28, 59, 160, 84, 85, 242, 144, 84, 252, 29, 160, 86, 53, 212, 144, 86, 229, 58, 32, 88, 30, 241, 16, 88, 197, 28, 32, 89, 254, 211, 16, 90, 164, 254, 32, 91, 222, 181, 16, 92, 132, 224, 32, 93, 190, 151, 16, 94, 100, 194, 32, 95, 158, 121, 16, 96, 77, 222, 160, 97, 135, 149, 144, 98, 45, 192, 160, 99, 103, 119, 144, 100, 13, 162, 160, 101, 71, 89, 144, 101, 237, 132, 160, 103, 39, 59, 144, 103, 205, 102, 160, 105, 7, 29, 144, 105, 173, 72, 160, 106, 230, 255, 144, 107, 150, 101, 32, 108, 208, 28, 16, 109, 118, 71, 32, 110, 175, 254, 16, 111, 86, 41, 32, 112, 143, 224, 16, 113, 54, 11, 32, 114, 111, 194, 16, 115, 21, 237, 32, 116, 79, 164, 16, 116, 255, 9, 160, 118, 56, 192, 144, 118, 222, 235, 160, 120, 24, 162, 144, 120, 190, 205, 160, 121, 248, 132, 144, 122, 158, 175, 160, 123, 216, 102, 144, 124, 126, 145, 160, 125, 184, 72, 144, 126, 94, 115, 160, 127, 152, 42, 144, 2, 1, 2, 1, 2, 3, 4, 2, 5, 2, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 255, 255, 129, 100, 0, 0, 255, 255, 143, 128, 1, 4, 255, 255, 129, 112, 0, 8, 255, 255, 143, 128, 1, 12, 255, 255, 143, 128, 1, 16, 255, 255, 157, 144, 1, 20, 255, 255, 143, 128, 0, 25, 255, 255, 157, 144, 1, 29, 76, 77, 84, 0, 89, 68, 84, 0, 89, 83, 84, 0, 89, 87, 84, 0, 89, 80, 84, 0, 89, 68, 68, 84, 0, 80, 83, 84, 0, 80, 68, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 10, 80, 83, 84, 56, 80, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/Chile/Continental": []byte{84, 90, 105, 102, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 160, 0, 0, 0, 8, 0, 0, 0, 20, 128, 0, 0, 0, 143, 48, 71, 70, 155, 92, 229, 80, 159, 124, 226, 198, 161, 0, 113, 192, 176, 94, 119, 198, 177, 119, 61, 64, 178, 65, 0, 208, 179, 88, 112, 192, 180, 34, 52, 80, 181, 57, 164, 64, 182, 3, 103, 208, 183, 26, 215, 192, 183, 228, 155, 80, 184, 253, 92, 192, 185, 199, 32, 80, 204, 28, 110, 64, 204, 108, 231, 208, 211, 220, 143, 192, 212, 27, 201, 176, 213, 51, 85, 192, 213, 118, 146, 64, 253, 209, 60, 64, 254, 146, 250, 176, 255, 204, 205, 192, 0, 114, 220, 176, 1, 117, 80, 192, 2, 64, 73, 176, 3, 85, 50, 192, 4, 32, 43, 176, 5, 62, 79, 64, 6, 0, 13, 176, 7, 11, 188, 64, 7, 223, 239, 176, 8, 254, 19, 64, 9, 191, 209, 176, 10, 221, 245, 64, 11, 168, 238, 48, 12, 189, 215, 64, 13, 136, 208, 48, 14, 157, 185, 64, 15, 104, 178, 48, 16, 134, 213, 192, 17, 72, 148, 48, 18, 102, 183, 192, 19, 40, 118, 48, 20, 70, 153, 192, 21, 17, 146, 176, 22, 38, 123, 192, 22, 241, 116, 176, 24, 6, 93, 192, 24, 209, 86, 176, 25, 230, 63, 192, 26, 177, 56, 176, 27, 207, 92, 64, 28, 145, 26, 176, 29, 175, 62, 64, 30, 112, 252, 176, 31, 143, 32, 64, 32, 127, 3, 48, 33, 111, 2, 64, 34, 57, 251, 48, 35, 78, 228, 64, 36, 25, 221, 48, 37, 56, 0, 192, 37, 249, 191, 48, 38, 242, 248, 192, 39, 217, 161, 48, 40, 247, 196, 192, 41, 194, 189, 176, 42, 215, 166, 192, 43, 162, 159, 176, 44, 183, 136, 192, 45, 130, 129, 176, 46, 151, 106, 192, 47, 98, 99, 176, 48, 128, 135, 64, 49, 66, 69, 176, 50, 96, 105, 64, 51, 61, 215, 48, 52, 64, 75, 64, 53, 11, 68, 48, 54, 13, 184, 64, 55, 6, 213, 176, 56, 0, 15, 64, 56, 203, 8, 48, 57, 233, 43, 192, 58, 170, 234, 48, 59, 201, 13, 192, 60, 138, 204, 48, 61, 168, 239, 192, 62, 106, 174, 48, 63, 136, 209, 192, 64, 83, 202, 176, 65, 104, 179, 192, 66, 51, 172, 176, 67, 72, 149, 192, 68, 19, 142, 176, 69, 49, 178, 64, 69, 243, 112, 176, 71, 17, 148, 64, 71, 239, 2, 48, 72, 241, 118, 64, 73, 188, 111, 48, 74, 209, 88, 64, 75, 184, 0, 176, 76, 177, 58, 64, 77, 198, 7, 48, 78, 80, 130, 192, 79, 156, 174, 176, 80, 66, 217, 192, 81, 124, 144, 176, 82, 43, 246, 64, 83, 92, 114, 176, 84, 11, 216, 64, 87, 55, 230, 48, 87, 175, 236, 192, 89, 23, 200, 48, 89, 143, 206, 192, 90, 247, 170, 48, 91, 111, 176, 192, 92, 215, 140, 48, 93, 79, 146, 192, 94, 183, 110, 48, 95, 47, 116, 192, 96, 151, 80, 48, 97, 24, 145, 64, 98, 128, 108, 176, 98, 248, 115, 64, 100, 96, 78, 176, 100, 216, 85, 64, 102, 64, 48, 176, 102, 184, 55, 64, 104, 32, 18, 176, 104, 152, 25, 64, 105, 255, 244, 176, 106, 119, 251, 64, 107, 223, 214, 176, 108, 97, 23, 192, 109, 200, 243, 48, 110, 64, 249, 192, 111, 168, 213, 48, 112, 32, 219, 192, 113, 136, 183, 48, 114, 0, 189, 192, 115, 104, 153, 48, 115, 224, 159, 192, 117, 72, 123, 48, 117, 201, 188, 64, 119, 49, 151, 176, 119, 169, 158, 64, 121, 17, 121, 176, 121, 137, 128, 64, 122, 241, 91, 176, 123, 105, 98, 64, 124, 209, 61, 176, 125, 73, 68, 64, 126, 177, 31, 176, 127, 41, 38, 64, 127, 255, 255, 255, 1, 2, 1, 3, 1, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 3, 2, 3, 5, 3, 2, 3, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 6, 255, 255, 189, 186, 0, 0, 255, 255, 189, 186, 0, 4, 255, 255, 185, 176, 0, 8, 255, 255, 199, 192, 0, 12, 255, 255, 199, 192, 1, 12, 255, 255, 213, 208, 1, 16, 255, 255, 213, 208, 1, 16, 255, 255, 199, 192, 0, 12, 76, 77, 84, 0, 83, 77, 84, 0, 45, 48, 53, 0, 45, 48, 52, 0, 45, 48, 51, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 10, 60, 45, 48, 52, 62, 52, 60, 45, 48, 51, 62, 44, 77, 56, 46, 50, 46, 54, 47, 50, 52, 44, 77, 53, 46, 50, 46, 54, 47, 50, 52, 10}, + + "zoneinfo/Chile/EasterIsland": []byte{84, 90, 105, 102, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 140, 0, 0, 0, 7, 0, 0, 0, 20, 128, 0, 0, 0, 185, 199, 64, 136, 253, 209, 60, 64, 254, 146, 250, 176, 255, 204, 205, 192, 0, 114, 220, 176, 1, 117, 80, 192, 2, 64, 73, 176, 3, 85, 50, 192, 4, 32, 43, 176, 5, 62, 79, 64, 6, 0, 13, 176, 7, 11, 188, 64, 7, 223, 239, 176, 8, 254, 19, 64, 9, 191, 209, 176, 10, 221, 245, 64, 11, 168, 238, 48, 12, 189, 215, 64, 13, 136, 208, 48, 14, 157, 185, 64, 15, 104, 178, 48, 16, 134, 213, 192, 17, 72, 148, 48, 18, 102, 183, 192, 19, 40, 118, 48, 20, 70, 153, 192, 21, 17, 146, 176, 22, 38, 123, 192, 22, 241, 116, 176, 24, 6, 93, 192, 24, 209, 86, 176, 25, 230, 63, 192, 26, 177, 56, 176, 27, 207, 92, 64, 28, 145, 26, 176, 29, 175, 62, 64, 30, 112, 252, 176, 31, 143, 32, 64, 32, 127, 3, 48, 33, 111, 2, 64, 34, 57, 251, 48, 35, 78, 228, 64, 36, 25, 221, 48, 37, 56, 0, 192, 37, 249, 191, 48, 38, 242, 248, 192, 39, 217, 161, 48, 40, 247, 196, 192, 41, 194, 189, 176, 42, 215, 166, 192, 43, 162, 159, 176, 44, 183, 136, 192, 45, 130, 129, 176, 46, 151, 106, 192, 47, 98, 99, 176, 48, 128, 135, 64, 49, 66, 69, 176, 50, 96, 105, 64, 51, 61, 215, 48, 52, 64, 75, 64, 53, 11, 68, 48, 54, 13, 184, 64, 55, 6, 213, 176, 56, 0, 15, 64, 56, 203, 8, 48, 57, 233, 43, 192, 58, 170, 234, 48, 59, 201, 13, 192, 60, 138, 204, 48, 61, 168, 239, 192, 62, 106, 174, 48, 63, 136, 209, 192, 64, 83, 202, 176, 65, 104, 179, 192, 66, 51, 172, 176, 67, 72, 149, 192, 68, 19, 142, 176, 69, 49, 178, 64, 69, 243, 112, 176, 71, 17, 148, 64, 71, 239, 2, 48, 72, 241, 118, 64, 73, 188, 111, 48, 74, 209, 88, 64, 75, 184, 0, 176, 76, 177, 58, 64, 77, 198, 7, 48, 78, 80, 130, 192, 79, 156, 174, 176, 80, 66, 217, 192, 81, 124, 144, 176, 82, 43, 246, 64, 83, 92, 114, 176, 84, 11, 216, 64, 87, 55, 230, 48, 87, 175, 236, 192, 89, 23, 200, 48, 89, 143, 206, 192, 90, 247, 170, 48, 91, 111, 176, 192, 92, 215, 140, 48, 93, 79, 146, 192, 94, 183, 110, 48, 95, 47, 116, 192, 96, 151, 80, 48, 97, 24, 145, 64, 98, 128, 108, 176, 98, 248, 115, 64, 100, 96, 78, 176, 100, 216, 85, 64, 102, 64, 48, 176, 102, 184, 55, 64, 104, 32, 18, 176, 104, 152, 25, 64, 105, 255, 244, 176, 106, 119, 251, 64, 107, 223, 214, 176, 108, 97, 23, 192, 109, 200, 243, 48, 110, 64, 249, 192, 111, 168, 213, 48, 112, 32, 219, 192, 113, 136, 183, 48, 114, 0, 189, 192, 115, 104, 153, 48, 115, 224, 159, 192, 117, 72, 123, 48, 117, 201, 188, 64, 119, 49, 151, 176, 119, 169, 158, 64, 121, 17, 121, 176, 121, 137, 128, 64, 122, 241, 91, 176, 123, 105, 98, 64, 124, 209, 61, 176, 125, 73, 68, 64, 126, 177, 31, 176, 127, 41, 38, 64, 127, 255, 255, 255, 1, 4, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 6, 255, 255, 153, 120, 0, 0, 255, 255, 153, 120, 0, 4, 255, 255, 171, 160, 1, 8, 255, 255, 157, 144, 0, 12, 255, 255, 157, 144, 0, 12, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 16, 76, 77, 84, 0, 69, 77, 84, 0, 45, 48, 54, 0, 45, 48, 55, 0, 45, 48, 53, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 10, 60, 45, 48, 54, 62, 54, 60, 45, 48, 53, 62, 44, 77, 56, 46, 50, 46, 54, 47, 50, 50, 44, 77, 53, 46, 50, 46, 54, 47, 50, 50, 10}, + + "zoneinfo/Cuba": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 156, 0, 0, 0, 6, 0, 0, 0, 16, 128, 0, 0, 0, 172, 98, 194, 128, 177, 211, 148, 80, 178, 116, 93, 64, 200, 91, 102, 208, 200, 211, 81, 64, 202, 59, 72, 208, 202, 188, 109, 192, 204, 36, 101, 80, 204, 156, 79, 192, 209, 196, 11, 80, 210, 59, 245, 192, 211, 163, 237, 80, 212, 27, 215, 192, 247, 96, 5, 208, 247, 255, 125, 64, 249, 61, 68, 208, 249, 227, 83, 192, 250, 219, 59, 208, 251, 167, 134, 64, 252, 197, 169, 208, 253, 135, 104, 64, 254, 184, 0, 208, 255, 167, 227, 192, 0, 151, 226, 208, 1, 135, 197, 192, 2, 119, 196, 208, 3, 112, 226, 64, 4, 96, 225, 80, 5, 53, 20, 192, 6, 64, 195, 80, 7, 22, 72, 64, 8, 32, 165, 80, 8, 247, 123, 192, 10, 0, 135, 80, 10, 240, 106, 64, 11, 224, 105, 80, 12, 217, 134, 192, 13, 192, 75, 80, 14, 185, 104, 192, 15, 178, 162, 80, 16, 125, 155, 64, 17, 81, 234, 208, 18, 102, 183, 192, 19, 49, 204, 208, 20, 70, 153, 192, 21, 91, 130, 208, 22, 38, 123, 192, 23, 59, 100, 208, 24, 6, 93, 192, 25, 27, 70, 208, 25, 230, 63, 192, 26, 251, 40, 208, 27, 207, 92, 64, 28, 219, 10, 208, 29, 175, 62, 64, 30, 122, 83, 80, 31, 143, 32, 64, 32, 90, 53, 80, 33, 111, 2, 64, 34, 67, 81, 208, 35, 78, 228, 64, 36, 35, 51, 208, 37, 46, 198, 64, 38, 21, 138, 208, 39, 23, 226, 192, 39, 254, 167, 80, 40, 247, 210, 208, 41, 222, 137, 80, 42, 215, 180, 208, 43, 190, 107, 80, 44, 183, 150, 208, 45, 158, 77, 80, 46, 151, 120, 208, 47, 126, 47, 80, 48, 119, 90, 208, 49, 103, 75, 208, 50, 87, 60, 208, 51, 71, 45, 208, 52, 64, 89, 80, 53, 29, 213, 80, 54, 50, 176, 80, 54, 253, 183, 80, 56, 27, 204, 208, 56, 230, 211, 208, 57, 251, 174, 208, 58, 198, 181, 208, 59, 219, 144, 208, 60, 175, 210, 80, 61, 187, 114, 208, 62, 143, 180, 80, 63, 155, 84, 208, 64, 102, 91, 208, 69, 68, 53, 80, 69, 243, 140, 208, 71, 36, 23, 80, 71, 220, 169, 80, 73, 3, 249, 80, 73, 179, 80, 208, 74, 227, 219, 80, 75, 156, 109, 80, 76, 204, 247, 208, 77, 133, 137, 208, 78, 191, 78, 208, 79, 119, 224, 208, 80, 149, 246, 80, 81, 60, 19, 80, 82, 117, 216, 80, 83, 27, 245, 80, 84, 85, 186, 80, 84, 251, 215, 80, 86, 53, 156, 80, 86, 228, 243, 208, 88, 30, 184, 208, 88, 196, 213, 208, 89, 254, 154, 208, 90, 164, 183, 208, 91, 222, 124, 208, 92, 132, 153, 208, 93, 190, 94, 208, 94, 100, 123, 208, 95, 158, 64, 208, 96, 77, 152, 80, 97, 135, 93, 80, 98, 45, 122, 80, 99, 103, 63, 80, 100, 13, 92, 80, 101, 71, 33, 80, 101, 237, 62, 80, 103, 39, 3, 80, 103, 205, 32, 80, 105, 6, 229, 80, 105, 173, 2, 80, 106, 230, 199, 80, 107, 150, 30, 208, 108, 207, 227, 208, 109, 118, 0, 208, 110, 175, 197, 208, 111, 85, 226, 208, 112, 143, 167, 208, 113, 53, 196, 208, 114, 111, 137, 208, 115, 21, 166, 208, 116, 79, 107, 208, 116, 254, 195, 80, 118, 56, 136, 80, 118, 222, 165, 80, 120, 24, 106, 80, 120, 190, 135, 80, 121, 248, 76, 80, 122, 158, 105, 80, 123, 216, 46, 80, 124, 126, 75, 80, 125, 184, 16, 80, 126, 94, 45, 80, 127, 151, 242, 80, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 255, 255, 178, 200, 0, 0, 255, 255, 178, 192, 0, 4, 255, 255, 199, 192, 1, 8, 255, 255, 185, 176, 0, 12, 255, 255, 185, 176, 0, 12, 255, 255, 199, 192, 1, 8, 76, 77, 84, 0, 72, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 53, 67, 68, 84, 44, 77, 51, 46, 50, 46, 48, 47, 48, 44, 77, 49, 49, 46, 49, 46, 48, 47, 49, 10}, + + "zoneinfo/EET": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 122, 0, 0, 0, 2, 0, 0, 0, 9, 13, 164, 99, 144, 14, 139, 26, 16, 15, 132, 69, 144, 16, 116, 54, 144, 17, 100, 39, 144, 18, 84, 24, 144, 19, 77, 68, 16, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 42, 48, 1, 0, 0, 0, 28, 32, 0, 5, 69, 69, 83, 84, 0, 69, 69, 84, 0, 1, 1, 1, 1, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 51, 44, 77, 49, 48, 46, 53, 46, 48, 47, 52, 10}, + + "zoneinfo/EST": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 255, 255, 185, 176, 0, 0, 69, 83, 84, 0, 0, 0, 10, 69, 83, 84, 53, 10}, + + "zoneinfo/EST5EDT": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 149, 0, 0, 0, 4, 0, 0, 0, 16, 158, 166, 30, 112, 159, 186, 235, 96, 160, 134, 0, 112, 161, 154, 205, 96, 203, 136, 240, 112, 210, 35, 244, 112, 210, 96, 251, 224, 250, 248, 88, 240, 251, 232, 59, 224, 252, 216, 58, 240, 253, 200, 29, 224, 254, 184, 28, 240, 255, 167, 255, 224, 0, 151, 254, 240, 1, 135, 225, 224, 2, 119, 224, 240, 3, 112, 254, 96, 4, 96, 253, 112, 5, 80, 224, 96, 6, 64, 223, 112, 7, 48, 194, 96, 7, 141, 25, 112, 9, 16, 164, 96, 9, 173, 148, 240, 10, 240, 134, 96, 11, 224, 133, 112, 12, 217, 162, 224, 13, 192, 103, 112, 14, 185, 132, 224, 15, 169, 131, 240, 16, 153, 102, 224, 17, 137, 101, 240, 18, 121, 72, 224, 19, 105, 71, 240, 20, 89, 42, 224, 21, 73, 41, 240, 22, 57, 12, 224, 23, 41, 11, 240, 24, 34, 41, 96, 25, 8, 237, 240, 26, 2, 11, 96, 26, 242, 10, 112, 27, 225, 237, 96, 28, 209, 236, 112, 29, 193, 207, 96, 30, 177, 206, 112, 31, 161, 177, 96, 32, 118, 0, 240, 33, 129, 147, 96, 34, 85, 226, 240, 35, 106, 175, 224, 36, 53, 196, 240, 37, 74, 145, 224, 38, 21, 166, 240, 39, 42, 115, 224, 39, 254, 195, 112, 41, 10, 85, 224, 41, 222, 165, 112, 42, 234, 55, 224, 43, 190, 135, 112, 44, 211, 84, 96, 45, 158, 105, 112, 46, 179, 54, 96, 47, 126, 75, 112, 48, 147, 24, 96, 49, 103, 103, 240, 50, 114, 250, 96, 51, 71, 73, 240, 52, 82, 220, 96, 53, 39, 43, 240, 54, 50, 190, 96, 55, 7, 13, 240, 56, 27, 218, 224, 56, 230, 239, 240, 57, 251, 188, 224, 58, 198, 209, 240, 59, 219, 158, 224, 60, 175, 238, 112, 61, 187, 128, 224, 62, 143, 208, 112, 63, 155, 98, 224, 64, 111, 178, 112, 65, 132, 127, 96, 66, 79, 148, 112, 67, 100, 97, 96, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 0, 1, 0, 1, 2, 3, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 255, 255, 199, 192, 1, 0, 255, 255, 185, 176, 0, 4, 255, 255, 199, 192, 1, 8, 255, 255, 199, 192, 1, 12, 69, 68, 84, 0, 69, 83, 84, 0, 69, 87, 84, 0, 69, 80, 84, 0, 0, 0, 0, 1, 0, 0, 0, 1, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/Egypt": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 127, 0, 0, 0, 4, 0, 0, 0, 13, 128, 0, 0, 0, 200, 147, 180, 224, 200, 250, 123, 208, 201, 252, 239, 224, 202, 199, 232, 208, 203, 203, 174, 96, 204, 223, 41, 208, 205, 172, 225, 224, 206, 198, 244, 208, 207, 143, 102, 224, 208, 169, 121, 208, 209, 132, 96, 224, 210, 138, 173, 80, 232, 54, 99, 96, 232, 244, 45, 80, 234, 11, 185, 96, 234, 213, 96, 208, 235, 236, 250, 240, 236, 181, 109, 0, 237, 207, 127, 240, 238, 151, 242, 0, 239, 176, 179, 112, 240, 121, 37, 128, 241, 145, 230, 240, 242, 90, 89, 0, 243, 115, 26, 112, 244, 59, 140, 128, 245, 85, 159, 112, 246, 30, 17, 128, 247, 54, 210, 240, 247, 255, 69, 0, 249, 24, 6, 112, 249, 225, 202, 0, 250, 249, 57, 240, 251, 194, 253, 128, 252, 219, 190, 240, 253, 165, 130, 128, 254, 188, 242, 112, 255, 134, 182, 0, 0, 158, 37, 240, 1, 103, 233, 128, 2, 127, 89, 112, 3, 73, 29, 0, 4, 97, 222, 112, 5, 43, 162, 0, 6, 67, 17, 240, 7, 12, 213, 128, 8, 36, 69, 112, 8, 238, 9, 0, 10, 5, 120, 240, 10, 207, 60, 128, 11, 231, 253, 240, 12, 177, 193, 128, 13, 201, 49, 112, 14, 146, 245, 0, 15, 170, 100, 240, 16, 116, 40, 128, 17, 139, 152, 112, 18, 85, 92, 0, 19, 110, 29, 112, 20, 55, 225, 0, 21, 79, 80, 240, 22, 25, 20, 128, 23, 160, 147, 240, 23, 250, 72, 0, 25, 112, 163, 240, 25, 219, 123, 128, 26, 244, 60, 240, 27, 190, 0, 128, 28, 213, 112, 112, 29, 159, 52, 0, 30, 182, 163, 240, 31, 128, 103, 128, 32, 151, 215, 112, 33, 97, 155, 0, 34, 122, 92, 112, 35, 68, 32, 0, 36, 98, 39, 112, 37, 37, 83, 128, 38, 60, 195, 112, 39, 6, 135, 0, 40, 29, 246, 240, 40, 231, 186, 128, 42, 0, 123, 240, 42, 202, 63, 128, 43, 225, 175, 112, 44, 171, 115, 0, 45, 194, 226, 240, 46, 140, 166, 128, 47, 160, 19, 224, 48, 107, 12, 208, 49, 127, 245, 224, 50, 74, 238, 208, 51, 95, 215, 224, 52, 42, 208, 208, 53, 63, 185, 224, 54, 10, 178, 208, 55, 40, 214, 96, 55, 243, 207, 80, 57, 8, 184, 96, 57, 211, 177, 80, 58, 232, 154, 96, 59, 179, 147, 80, 60, 200, 124, 96, 61, 147, 117, 80, 62, 168, 94, 96, 63, 115, 87, 80, 64, 145, 122, 224, 65, 92, 115, 208, 66, 113, 92, 224, 67, 60, 85, 208, 68, 81, 62, 224, 69, 18, 253, 80, 70, 49, 32, 224, 70, 224, 106, 80, 72, 17, 2, 224, 72, 183, 17, 208, 73, 240, 228, 224, 74, 141, 185, 80, 75, 218, 1, 96, 76, 97, 189, 208, 76, 137, 88, 224, 76, 164, 250, 80, 83, 117, 56, 224, 83, 172, 137, 208, 83, 218, 188, 96, 84, 36, 130, 80, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 1, 2, 1, 2, 1, 2, 0, 0, 29, 85, 0, 0, 0, 0, 42, 48, 1, 4, 0, 0, 28, 32, 0, 9, 0, 0, 42, 48, 1, 4, 76, 77, 84, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 0, 0, 0, 1, 0, 0, 0, 0, 10, 69, 69, 84, 45, 50, 10}, + + "zoneinfo/Eire": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 230, 0, 0, 0, 10, 0, 0, 0, 20, 128, 0, 0, 0, 155, 38, 179, 145, 155, 214, 11, 17, 156, 207, 48, 160, 157, 164, 195, 160, 158, 156, 157, 160, 159, 151, 26, 160, 160, 133, 186, 32, 161, 118, 252, 160, 162, 101, 156, 32, 163, 123, 200, 160, 164, 78, 184, 160, 165, 63, 251, 32, 165, 148, 63, 0, 166, 37, 96, 32, 167, 39, 198, 32, 168, 42, 44, 32, 168, 235, 248, 160, 170, 0, 211, 160, 170, 213, 21, 32, 171, 233, 240, 32, 172, 199, 108, 32, 173, 201, 210, 32, 174, 167, 78, 32, 175, 160, 121, 160, 176, 135, 48, 32, 177, 146, 208, 160, 178, 112, 76, 160, 179, 114, 178, 160, 180, 80, 46, 160, 181, 73, 90, 32, 182, 48, 16, 160, 183, 50, 118, 160, 184, 15, 242, 160, 185, 18, 88, 160, 185, 239, 212, 160, 186, 233, 0, 32, 187, 216, 241, 32, 188, 219, 87, 32, 189, 184, 211, 32, 190, 177, 254, 160, 191, 152, 181, 32, 192, 155, 27, 32, 193, 120, 151, 32, 194, 122, 253, 32, 195, 88, 121, 32, 196, 81, 164, 160, 197, 56, 91, 32, 198, 58, 193, 32, 199, 88, 214, 160, 199, 218, 9, 160, 212, 73, 224, 32, 213, 30, 33, 160, 214, 78, 172, 32, 215, 44, 40, 32, 216, 46, 142, 32, 216, 249, 149, 32, 218, 14, 112, 32, 218, 235, 236, 32, 219, 229, 23, 160, 220, 203, 206, 32, 221, 196, 249, 160, 222, 180, 234, 160, 223, 174, 22, 32, 224, 148, 204, 160, 225, 114, 72, 160, 226, 107, 116, 32, 227, 82, 42, 160, 228, 84, 144, 160, 229, 50, 12, 160, 230, 61, 173, 32, 231, 27, 41, 32, 232, 20, 84, 160, 232, 251, 11, 32, 233, 253, 113, 32, 234, 218, 237, 32, 235, 221, 83, 32, 236, 186, 207, 32, 237, 179, 250, 160, 238, 154, 177, 32, 239, 129, 103, 160, 240, 159, 125, 32, 241, 97, 73, 160, 242, 127, 95, 32, 243, 74, 102, 32, 244, 95, 65, 32, 245, 33, 13, 160, 246, 63, 35, 32, 247, 0, 239, 160, 248, 31, 5, 32, 248, 224, 209, 160, 249, 254, 231, 32, 250, 192, 179, 160, 251, 232, 3, 160, 252, 123, 171, 160, 253, 199, 187, 112, 3, 112, 198, 32, 4, 41, 88, 32, 5, 80, 168, 32, 6, 9, 58, 32, 7, 48, 138, 32, 7, 233, 28, 32, 9, 16, 108, 32, 9, 200, 254, 32, 10, 240, 78, 32, 11, 178, 26, 160, 12, 208, 48, 32, 13, 145, 252, 160, 14, 176, 18, 32, 15, 113, 222, 160, 16, 153, 46, 160, 17, 81, 192, 160, 18, 121, 16, 160, 19, 49, 162, 160, 20, 88, 242, 160, 21, 35, 235, 144, 22, 56, 198, 144, 23, 3, 205, 144, 24, 24, 168, 144, 24, 227, 175, 144, 25, 248, 138, 144, 26, 195, 145, 144, 27, 225, 167, 16, 28, 172, 174, 16, 29, 193, 137, 16, 30, 140, 144, 16, 31, 161, 107, 16, 32, 108, 114, 16, 33, 129, 77, 16, 34, 76, 84, 16, 35, 97, 47, 16, 36, 44, 54, 16, 37, 74, 75, 144, 38, 12, 24, 16, 39, 42, 45, 144, 39, 245, 52, 144, 41, 10, 15, 144, 41, 213, 22, 144, 42, 233, 241, 144, 43, 180, 248, 144, 44, 201, 211, 144, 45, 148, 218, 144, 46, 169, 181, 144, 47, 116, 188, 144, 48, 137, 151, 144, 48, 231, 36, 0, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 2, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 6, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 7, 9, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 6, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 255, 255, 250, 36, 0, 0, 255, 255, 250, 15, 0, 4, 0, 0, 8, 31, 1, 8, 0, 0, 14, 16, 1, 12, 0, 0, 0, 0, 0, 16, 0, 0, 14, 16, 1, 8, 0, 0, 0, 0, 0, 16, 0, 0, 14, 16, 0, 8, 0, 0, 14, 16, 1, 8, 0, 0, 0, 0, 0, 16, 76, 77, 84, 0, 68, 77, 84, 0, 73, 83, 84, 0, 66, 83, 84, 0, 71, 77, 84, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 10, 71, 77, 84, 48, 73, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 49, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/Etc/GMT": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 71, 77, 84, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Etc/GMT+0": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 71, 77, 84, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Etc/GMT+1": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 255, 255, 241, 240, 0, 0, 45, 48, 49, 0, 0, 0, 10, 60, 45, 48, 49, 62, 49, 10}, + + "zoneinfo/Etc/GMT+10": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 255, 255, 115, 96, 0, 0, 45, 49, 48, 0, 0, 0, 10, 60, 45, 49, 48, 62, 49, 48, 10}, + + "zoneinfo/Etc/GMT+11": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 255, 255, 101, 80, 0, 0, 45, 49, 49, 0, 0, 0, 10, 60, 45, 49, 49, 62, 49, 49, 10}, + + "zoneinfo/Etc/GMT+12": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 255, 255, 87, 64, 0, 0, 45, 49, 50, 0, 0, 0, 10, 60, 45, 49, 50, 62, 49, 50, 10}, + + "zoneinfo/Etc/GMT+2": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 255, 255, 227, 224, 0, 0, 45, 48, 50, 0, 0, 0, 10, 60, 45, 48, 50, 62, 50, 10}, + + "zoneinfo/Etc/GMT+3": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 255, 255, 213, 208, 0, 0, 45, 48, 51, 0, 0, 0, 10, 60, 45, 48, 51, 62, 51, 10}, + + "zoneinfo/Etc/GMT+4": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 255, 255, 199, 192, 0, 0, 45, 48, 52, 0, 0, 0, 10, 60, 45, 48, 52, 62, 52, 10}, + + "zoneinfo/Etc/GMT+5": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 255, 255, 185, 176, 0, 0, 45, 48, 53, 0, 0, 0, 10, 60, 45, 48, 53, 62, 53, 10}, + + "zoneinfo/Etc/GMT+6": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 255, 255, 171, 160, 0, 0, 45, 48, 54, 0, 0, 0, 10, 60, 45, 48, 54, 62, 54, 10}, + + "zoneinfo/Etc/GMT+7": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 255, 255, 157, 144, 0, 0, 45, 48, 55, 0, 0, 0, 10, 60, 45, 48, 55, 62, 55, 10}, + + "zoneinfo/Etc/GMT+8": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 255, 255, 143, 128, 0, 0, 45, 48, 56, 0, 0, 0, 10, 60, 45, 48, 56, 62, 56, 10}, + + "zoneinfo/Etc/GMT+9": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 255, 255, 129, 112, 0, 0, 45, 48, 57, 0, 0, 0, 10, 60, 45, 48, 57, 62, 57, 10}, + + "zoneinfo/Etc/GMT-0": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 71, 77, 84, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Etc/GMT-1": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 0, 0, 14, 16, 0, 0, 43, 48, 49, 0, 0, 0, 10, 60, 43, 48, 49, 62, 45, 49, 10}, + + "zoneinfo/Etc/GMT-10": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 0, 0, 140, 160, 0, 0, 43, 49, 48, 0, 0, 0, 10, 60, 43, 49, 48, 62, 45, 49, 48, 10}, + + "zoneinfo/Etc/GMT-11": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 0, 0, 154, 176, 0, 0, 43, 49, 49, 0, 0, 0, 10, 60, 43, 49, 49, 62, 45, 49, 49, 10}, + + "zoneinfo/Etc/GMT-12": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 0, 0, 168, 192, 0, 0, 43, 49, 50, 0, 0, 0, 10, 60, 43, 49, 50, 62, 45, 49, 50, 10}, + + "zoneinfo/Etc/GMT-13": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 0, 0, 182, 208, 0, 0, 43, 49, 51, 0, 0, 0, 10, 60, 43, 49, 51, 62, 45, 49, 51, 10}, + + "zoneinfo/Etc/GMT-14": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 0, 0, 196, 224, 0, 0, 43, 49, 52, 0, 0, 0, 10, 60, 43, 49, 52, 62, 45, 49, 52, 10}, + + "zoneinfo/Etc/GMT-2": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 0, 0, 28, 32, 0, 0, 43, 48, 50, 0, 0, 0, 10, 60, 43, 48, 50, 62, 45, 50, 10}, + + "zoneinfo/Etc/GMT-3": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 0, 0, 42, 48, 0, 0, 43, 48, 51, 0, 0, 0, 10, 60, 43, 48, 51, 62, 45, 51, 10}, + + "zoneinfo/Etc/GMT-4": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 0, 0, 56, 64, 0, 0, 43, 48, 52, 0, 0, 0, 10, 60, 43, 48, 52, 62, 45, 52, 10}, + + "zoneinfo/Etc/GMT-5": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 0, 0, 70, 80, 0, 0, 43, 48, 53, 0, 0, 0, 10, 60, 43, 48, 53, 62, 45, 53, 10}, + + "zoneinfo/Etc/GMT-6": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 0, 0, 84, 96, 0, 0, 43, 48, 54, 0, 0, 0, 10, 60, 43, 48, 54, 62, 45, 54, 10}, + + "zoneinfo/Etc/GMT-7": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 0, 0, 98, 112, 0, 0, 43, 48, 55, 0, 0, 0, 10, 60, 43, 48, 55, 62, 45, 55, 10}, + + "zoneinfo/Etc/GMT-8": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 0, 0, 112, 128, 0, 0, 43, 48, 56, 0, 0, 0, 10, 60, 43, 48, 56, 62, 45, 56, 10}, + + "zoneinfo/Etc/GMT-9": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 0, 0, 126, 144, 0, 0, 43, 48, 57, 0, 0, 0, 10, 60, 43, 48, 57, 62, 45, 57, 10}, + + "zoneinfo/Etc/GMT0": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 71, 77, 84, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Etc/Greenwich": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 71, 77, 84, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Etc/UCT": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 85, 67, 84, 0, 0, 0, 10, 85, 67, 84, 48, 10}, + + "zoneinfo/Etc/UTC": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 85, 84, 67, 0, 0, 0, 10, 85, 84, 67, 48, 10}, + + "zoneinfo/Etc/Universal": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 85, 84, 67, 0, 0, 0, 10, 85, 84, 67, 48, 10}, + + "zoneinfo/Etc/Zulu": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 85, 84, 67, 0, 0, 0, 10, 85, 84, 67, 48, 10}, + + "zoneinfo/Europe/Amsterdam": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 181, 0, 0, 0, 14, 0, 0, 0, 33, 128, 0, 0, 0, 155, 12, 46, 236, 155, 213, 214, 92, 156, 217, 184, 12, 157, 164, 191, 12, 158, 167, 37, 12, 159, 151, 22, 12, 160, 144, 65, 140, 161, 118, 248, 12, 162, 112, 35, 140, 163, 86, 218, 12, 164, 80, 5, 140, 165, 54, 188, 12, 166, 37, 91, 140, 167, 39, 193, 140, 168, 94, 227, 140, 169, 7, 163, 140, 169, 238, 90, 12, 170, 231, 133, 140, 172, 39, 226, 12, 172, 199, 103, 140, 173, 237, 102, 12, 174, 167, 73, 140, 175, 206, 153, 140, 176, 135, 43, 140, 177, 177, 30, 140, 178, 112, 72, 12, 179, 146, 82, 12, 180, 80, 42, 12, 181, 115, 133, 140, 182, 48, 12, 12, 183, 84, 185, 12, 184, 15, 238, 12, 185, 64, 120, 140, 185, 239, 208, 12, 187, 24, 113, 140, 187, 216, 236, 140, 188, 249, 165, 12, 189, 184, 206, 140, 190, 218, 216, 140, 191, 152, 176, 140, 192, 189, 93, 140, 193, 120, 146, 140, 194, 167, 203, 140, 194, 220, 93, 92, 195, 88, 116, 112, 196, 127, 196, 112, 197, 56, 86, 112, 198, 96, 247, 240, 199, 33, 114, 240, 200, 68, 178, 80, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 130, 37, 16, 209, 114, 22, 16, 210, 78, 64, 144, 13, 42, 253, 112, 13, 164, 99, 144, 14, 139, 26, 16, 15, 132, 69, 144, 16, 116, 54, 144, 17, 100, 39, 144, 18, 84, 24, 144, 19, 77, 68, 16, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 7, 5, 6, 5, 6, 5, 10, 8, 9, 8, 9, 8, 9, 8, 13, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 0, 0, 4, 148, 0, 0, 0, 0, 18, 164, 1, 4, 0, 0, 4, 148, 0, 8, 0, 0, 18, 164, 1, 4, 0, 0, 4, 148, 0, 8, 0, 0, 4, 176, 0, 12, 0, 0, 18, 192, 1, 18, 0, 0, 18, 192, 1, 18, 0, 0, 14, 16, 0, 24, 0, 0, 28, 32, 1, 28, 0, 0, 28, 32, 1, 28, 0, 0, 28, 32, 1, 28, 0, 0, 14, 16, 0, 24, 0, 0, 14, 16, 0, 24, 76, 77, 84, 0, 78, 83, 84, 0, 65, 77, 84, 0, 43, 48, 48, 50, 48, 0, 43, 48, 49, 50, 48, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Andorra": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 108, 0, 0, 0, 5, 0, 0, 0, 17, 128, 0, 0, 0, 212, 65, 219, 0, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 0, 0, 1, 108, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 14, 16, 0, 8, 0, 0, 28, 32, 1, 12, 0, 0, 14, 16, 0, 8, 76, 77, 84, 0, 87, 69, 84, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Astrakhan": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 66, 0, 0, 0, 9, 0, 0, 0, 16, 128, 0, 0, 0, 170, 24, 69, 116, 181, 164, 11, 80, 21, 39, 153, 192, 22, 24, 206, 48, 23, 8, 205, 64, 23, 250, 1, 176, 24, 234, 0, 192, 25, 219, 53, 48, 26, 204, 133, 192, 27, 188, 146, 224, 28, 172, 131, 224, 29, 156, 116, 224, 30, 140, 101, 224, 31, 124, 86, 224, 32, 108, 71, 224, 33, 92, 56, 224, 34, 76, 41, 224, 35, 60, 26, 224, 36, 44, 11, 224, 37, 28, 10, 240, 38, 11, 251, 240, 39, 5, 39, 112, 39, 245, 24, 112, 41, 212, 236, 96, 42, 196, 235, 112, 43, 180, 220, 112, 44, 164, 205, 112, 45, 148, 190, 112, 46, 132, 175, 112, 47, 116, 160, 112, 48, 100, 145, 112, 49, 93, 188, 240, 50, 114, 151, 240, 51, 61, 158, 240, 52, 82, 121, 240, 53, 29, 128, 240, 54, 50, 91, 240, 54, 253, 98, 240, 56, 27, 120, 112, 56, 221, 68, 240, 57, 251, 90, 112, 58, 189, 38, 240, 59, 219, 60, 112, 60, 166, 67, 112, 61, 187, 30, 112, 62, 134, 37, 112, 63, 155, 0, 112, 64, 102, 7, 112, 65, 132, 28, 240, 66, 69, 233, 112, 67, 99, 254, 240, 68, 37, 203, 112, 69, 67, 224, 240, 70, 5, 173, 112, 71, 35, 194, 240, 71, 238, 201, 240, 73, 3, 164, 240, 73, 206, 171, 240, 74, 227, 134, 240, 75, 174, 141, 240, 76, 204, 163, 112, 77, 142, 111, 240, 84, 76, 29, 96, 86, 247, 20, 112, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 6, 7, 4, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 4, 7, 4, 4, 0, 0, 45, 12, 0, 0, 0, 0, 42, 48, 0, 4, 0, 0, 70, 80, 1, 8, 0, 0, 56, 64, 0, 12, 0, 0, 56, 64, 0, 12, 0, 0, 70, 80, 1, 8, 0, 0, 56, 64, 1, 12, 0, 0, 42, 48, 0, 4, 0, 0, 56, 64, 0, 12, 76, 77, 84, 0, 43, 48, 51, 0, 43, 48, 53, 0, 43, 48, 52, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 52, 62, 45, 52, 10}, + + "zoneinfo/Europe/Athens": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 138, 0, 0, 0, 10, 0, 0, 0, 26, 128, 0, 0, 0, 155, 128, 33, 128, 185, 124, 233, 224, 185, 198, 175, 208, 201, 242, 99, 224, 202, 16, 168, 80, 204, 231, 75, 16, 205, 170, 76, 240, 206, 162, 24, 224, 207, 147, 105, 112, 223, 19, 158, 96, 223, 183, 10, 80, 9, 236, 94, 96, 11, 24, 244, 96, 11, 205, 174, 0, 12, 189, 159, 0, 13, 164, 85, 128, 14, 140, 93, 128, 15, 132, 55, 128, 16, 106, 252, 16, 17, 100, 123, 240, 18, 82, 170, 240, 19, 70, 130, 96, 20, 51, 194, 80, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 3, 2, 3, 2, 5, 4, 5, 4, 3, 2, 3, 6, 7, 6, 7, 6, 7, 6, 3, 2, 3, 2, 3, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 0, 0, 22, 60, 0, 0, 0, 0, 22, 60, 0, 4, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 13, 0, 0, 14, 16, 0, 17, 0, 0, 28, 32, 1, 21, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 13, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 13, 76, 77, 84, 0, 65, 77, 84, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 51, 44, 77, 49, 48, 46, 53, 46, 48, 47, 52, 10}, + + "zoneinfo/Europe/Belfast": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 243, 0, 0, 0, 8, 0, 0, 0, 17, 128, 0, 0, 0, 155, 38, 173, 160, 155, 214, 5, 32, 156, 207, 48, 160, 157, 164, 195, 160, 158, 156, 157, 160, 159, 151, 26, 160, 160, 133, 186, 32, 161, 118, 252, 160, 162, 101, 156, 32, 163, 123, 200, 160, 164, 78, 184, 160, 165, 63, 251, 32, 166, 37, 96, 32, 167, 39, 198, 32, 168, 42, 44, 32, 168, 235, 248, 160, 170, 0, 211, 160, 170, 213, 21, 32, 171, 233, 240, 32, 172, 199, 108, 32, 173, 201, 210, 32, 174, 167, 78, 32, 175, 160, 121, 160, 176, 135, 48, 32, 177, 146, 208, 160, 178, 112, 76, 160, 179, 114, 178, 160, 180, 80, 46, 160, 181, 73, 90, 32, 182, 48, 16, 160, 183, 50, 118, 160, 184, 15, 242, 160, 185, 18, 88, 160, 185, 239, 212, 160, 186, 233, 0, 32, 187, 216, 241, 32, 188, 219, 87, 32, 189, 184, 211, 32, 190, 177, 254, 160, 191, 152, 181, 32, 192, 155, 27, 32, 193, 120, 151, 32, 194, 122, 253, 32, 195, 88, 121, 32, 196, 81, 164, 160, 197, 56, 91, 32, 198, 58, 193, 32, 199, 88, 214, 160, 199, 218, 9, 160, 202, 22, 38, 144, 202, 151, 89, 144, 203, 209, 30, 144, 204, 119, 59, 144, 205, 177, 0, 144, 206, 96, 88, 16, 207, 144, 226, 144, 208, 110, 94, 144, 209, 114, 22, 16, 209, 251, 50, 16, 210, 105, 254, 32, 211, 99, 41, 160, 212, 73, 224, 32, 213, 30, 33, 160, 213, 66, 253, 144, 213, 223, 224, 16, 214, 78, 172, 32, 214, 254, 3, 160, 216, 46, 142, 32, 216, 249, 149, 32, 218, 14, 112, 32, 218, 235, 236, 32, 219, 229, 23, 160, 220, 203, 206, 32, 221, 196, 249, 160, 222, 180, 234, 160, 223, 174, 22, 32, 224, 148, 204, 160, 225, 114, 72, 160, 226, 107, 116, 32, 227, 82, 42, 160, 228, 84, 144, 160, 229, 50, 12, 160, 230, 61, 173, 32, 231, 27, 41, 32, 232, 20, 84, 160, 232, 251, 11, 32, 233, 253, 113, 32, 234, 218, 237, 32, 235, 221, 83, 32, 236, 186, 207, 32, 237, 179, 250, 160, 238, 154, 177, 32, 239, 129, 103, 160, 240, 159, 125, 32, 241, 97, 73, 160, 242, 127, 95, 32, 243, 74, 102, 32, 244, 95, 65, 32, 245, 33, 13, 160, 246, 63, 35, 32, 247, 0, 239, 160, 248, 31, 5, 32, 248, 224, 209, 160, 249, 254, 231, 32, 250, 192, 179, 160, 251, 232, 3, 160, 252, 123, 171, 160, 253, 199, 187, 112, 3, 112, 198, 32, 4, 41, 88, 32, 5, 80, 168, 32, 6, 9, 58, 32, 7, 48, 138, 32, 7, 233, 28, 32, 9, 16, 108, 32, 9, 200, 254, 32, 10, 240, 78, 32, 11, 178, 26, 160, 12, 208, 48, 32, 13, 145, 252, 160, 14, 176, 18, 32, 15, 113, 222, 160, 16, 153, 46, 160, 17, 81, 192, 160, 18, 121, 16, 160, 19, 49, 162, 160, 20, 88, 242, 160, 21, 35, 235, 144, 22, 56, 198, 144, 23, 3, 205, 144, 24, 24, 168, 144, 24, 227, 175, 144, 25, 248, 138, 144, 26, 195, 145, 144, 27, 225, 167, 16, 28, 172, 174, 16, 29, 193, 137, 16, 30, 140, 144, 16, 31, 161, 107, 16, 32, 108, 114, 16, 33, 129, 77, 16, 34, 76, 84, 16, 35, 97, 47, 16, 36, 44, 54, 16, 37, 74, 75, 144, 38, 12, 24, 16, 39, 42, 45, 144, 39, 245, 52, 144, 41, 10, 15, 144, 41, 213, 22, 144, 42, 233, 241, 144, 43, 180, 248, 144, 44, 201, 211, 144, 45, 148, 218, 144, 46, 169, 181, 144, 47, 116, 188, 144, 48, 137, 151, 144, 48, 231, 36, 0, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 2, 1, 2, 1, 3, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 4, 6, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 7, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 255, 255, 255, 181, 0, 0, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 8, 0, 0, 28, 32, 1, 12, 0, 0, 14, 16, 0, 4, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 8, 76, 77, 84, 0, 66, 83, 84, 0, 71, 77, 84, 0, 66, 68, 83, 84, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 10, 71, 77, 84, 48, 66, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 49, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/Europe/Belgrade": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 121, 0, 0, 0, 7, 0, 0, 0, 13, 128, 0, 0, 0, 202, 2, 53, 224, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 130, 37, 16, 208, 250, 1, 112, 209, 161, 140, 16, 210, 78, 64, 144, 24, 69, 95, 112, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 4, 2, 3, 2, 3, 2, 1, 3, 2, 1, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 0, 0, 19, 56, 0, 0, 0, 0, 14, 16, 0, 4, 0, 0, 14, 16, 0, 4, 0, 0, 28, 32, 1, 8, 0, 0, 28, 32, 1, 8, 0, 0, 28, 32, 1, 8, 0, 0, 14, 16, 0, 4, 76, 77, 84, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Berlin": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 145, 0, 0, 0, 9, 0, 0, 0, 18, 128, 0, 0, 0, 155, 12, 23, 96, 155, 213, 218, 240, 156, 217, 174, 144, 157, 164, 181, 144, 158, 185, 144, 144, 159, 132, 151, 144, 200, 9, 113, 144, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 130, 37, 16, 209, 114, 22, 16, 209, 182, 150, 0, 210, 88, 190, 128, 210, 161, 79, 16, 210, 219, 52, 240, 211, 99, 27, 144, 212, 75, 35, 144, 213, 57, 209, 32, 213, 103, 231, 144, 213, 168, 115, 0, 214, 41, 180, 16, 215, 44, 26, 16, 216, 9, 150, 16, 217, 2, 193, 144, 217, 233, 120, 16, 18, 206, 151, 240, 19, 77, 68, 16, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 5, 1, 4, 2, 3, 4, 3, 6, 1, 4, 3, 4, 3, 4, 2, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 0, 0, 12, 136, 0, 0, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 42, 48, 1, 13, 0, 0, 42, 48, 1, 13, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 76, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 67, 69, 77, 84, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Bratislava": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 142, 0, 0, 0, 7, 0, 0, 0, 13, 128, 0, 0, 0, 155, 12, 23, 96, 155, 213, 218, 240, 156, 217, 174, 144, 157, 164, 181, 144, 158, 185, 144, 144, 159, 132, 151, 144, 200, 9, 113, 144, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 110, 94, 144, 209, 121, 255, 16, 210, 161, 79, 16, 211, 128, 28, 144, 212, 73, 210, 16, 213, 76, 56, 16, 214, 41, 180, 16, 215, 44, 26, 16, 216, 9, 150, 16, 217, 1, 112, 16, 217, 233, 120, 16, 16, 237, 100, 112, 17, 100, 39, 144, 18, 84, 24, 144, 19, 77, 68, 16, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 0, 0, 13, 136, 0, 0, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 80, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Brussels": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 186, 0, 0, 0, 11, 0, 0, 0, 22, 128, 0, 0, 0, 152, 68, 73, 128, 155, 12, 37, 112, 155, 213, 218, 240, 156, 217, 174, 144, 157, 164, 181, 144, 158, 185, 144, 144, 159, 132, 151, 144, 159, 206, 248, 48, 160, 96, 165, 240, 161, 126, 187, 112, 162, 46, 18, 240, 163, 122, 76, 240, 164, 53, 129, 240, 165, 94, 35, 112, 166, 37, 53, 240, 167, 39, 155, 240, 168, 42, 1, 240, 169, 7, 125, 240, 169, 238, 52, 112, 170, 231, 95, 240, 171, 215, 80, 240, 172, 199, 65, 240, 173, 201, 167, 240, 174, 167, 35, 240, 175, 160, 79, 112, 176, 135, 5, 240, 177, 137, 107, 240, 178, 112, 76, 160, 179, 114, 178, 160, 180, 80, 46, 160, 181, 73, 90, 32, 182, 48, 16, 160, 183, 50, 118, 160, 184, 15, 242, 160, 184, 255, 227, 160, 185, 239, 212, 160, 186, 214, 139, 32, 187, 216, 241, 32, 188, 200, 226, 32, 189, 184, 211, 32, 190, 159, 137, 160, 191, 152, 181, 32, 192, 155, 27, 32, 193, 120, 151, 32, 194, 104, 136, 32, 195, 88, 121, 32, 196, 63, 47, 160, 197, 56, 91, 32, 198, 58, 193, 32, 199, 88, 214, 160, 199, 218, 9, 160, 200, 74, 25, 32, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 91, 191, 96, 208, 110, 94, 144, 209, 114, 22, 16, 210, 78, 64, 144, 211, 145, 64, 16, 212, 75, 35, 144, 13, 42, 253, 112, 13, 164, 99, 144, 14, 139, 26, 16, 15, 132, 69, 144, 16, 116, 54, 144, 17, 100, 39, 144, 18, 84, 24, 144, 19, 77, 68, 16, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 2, 5, 2, 3, 4, 3, 4, 8, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 3, 4, 3, 4, 3, 5, 4, 3, 4, 3, 4, 2, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 0, 0, 4, 26, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 14, 16, 0, 8, 0, 0, 28, 32, 1, 12, 0, 0, 14, 16, 0, 8, 0, 0, 28, 32, 1, 12, 0, 0, 14, 16, 1, 17, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 4, 0, 0, 28, 32, 1, 12, 0, 0, 14, 16, 0, 8, 66, 77, 84, 0, 87, 69, 84, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 87, 69, 83, 84, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Bucharest": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 138, 0, 0, 0, 8, 0, 0, 0, 17, 128, 0, 0, 0, 183, 176, 210, 8, 185, 62, 243, 96, 185, 239, 156, 96, 186, 223, 141, 96, 187, 207, 126, 96, 188, 200, 169, 224, 189, 184, 154, 224, 190, 168, 139, 224, 191, 152, 124, 224, 192, 136, 109, 224, 193, 120, 94, 224, 194, 104, 79, 224, 195, 88, 64, 224, 196, 72, 49, 224, 197, 56, 34, 224, 198, 40, 19, 224, 199, 24, 4, 224, 17, 173, 209, 96, 18, 83, 224, 80, 19, 77, 11, 208, 20, 51, 208, 96, 21, 35, 221, 128, 22, 19, 206, 128, 23, 3, 191, 128, 23, 243, 176, 128, 24, 227, 161, 128, 25, 211, 146, 128, 26, 195, 131, 128, 27, 188, 175, 0, 28, 172, 160, 0, 29, 156, 145, 0, 30, 140, 130, 0, 31, 124, 115, 0, 32, 108, 100, 0, 33, 92, 85, 0, 34, 76, 70, 0, 35, 60, 55, 0, 36, 44, 40, 0, 37, 28, 25, 0, 38, 12, 10, 0, 39, 5, 53, 128, 39, 127, 180, 224, 39, 245, 10, 96, 40, 228, 251, 96, 41, 212, 236, 96, 42, 196, 221, 96, 43, 180, 206, 96, 44, 164, 191, 96, 45, 36, 160, 224, 45, 148, 176, 96, 46, 132, 147, 80, 47, 116, 146, 96, 48, 100, 117, 80, 49, 93, 174, 224, 50, 114, 123, 208, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 5, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 4, 5, 4, 5, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 5, 2, 3, 2, 3, 2, 3, 5, 4, 5, 4, 5, 4, 5, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 0, 0, 24, 120, 0, 0, 0, 0, 24, 120, 0, 4, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 13, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 13, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 13, 76, 77, 84, 0, 66, 77, 84, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 51, 44, 77, 49, 48, 46, 53, 46, 48, 47, 52, 10}, + + "zoneinfo/Europe/Budapest": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 153, 0, 0, 0, 7, 0, 0, 0, 13, 128, 0, 0, 0, 155, 12, 23, 96, 155, 213, 218, 240, 156, 217, 174, 144, 157, 164, 181, 144, 158, 48, 88, 112, 158, 167, 41, 160, 159, 132, 151, 144, 160, 154, 210, 32, 161, 192, 194, 144, 201, 243, 195, 112, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 130, 37, 16, 208, 250, 1, 112, 209, 153, 120, 224, 210, 138, 187, 96, 211, 80, 166, 144, 212, 73, 210, 16, 213, 57, 195, 16, 214, 41, 180, 16, 215, 25, 165, 16, 216, 9, 150, 16, 217, 2, 193, 144, 217, 233, 120, 16, 218, 237, 47, 144, 219, 230, 91, 16, 226, 162, 168, 240, 227, 81, 242, 96, 228, 131, 220, 112, 229, 51, 37, 224, 230, 116, 225, 240, 231, 17, 182, 96, 232, 84, 210, 0, 232, 241, 194, 144, 19, 77, 54, 0, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 4, 3, 4, 3, 4, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 1, 2, 1, 2, 1, 2, 1, 2, 1, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 0, 0, 17, 228, 0, 0, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 76, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Busingen": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 119, 0, 0, 0, 5, 0, 0, 0, 13, 128, 0, 0, 0, 202, 23, 106, 0, 202, 226, 113, 0, 203, 247, 76, 0, 204, 194, 83, 0, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 0, 0, 6, 250, 0, 0, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 66, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Chisinau": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 142, 0, 0, 0, 16, 0, 0, 0, 38, 128, 0, 0, 0, 158, 107, 159, 12, 183, 176, 210, 8, 185, 62, 243, 96, 185, 239, 156, 96, 186, 223, 141, 96, 187, 207, 126, 96, 188, 200, 169, 224, 189, 184, 154, 224, 190, 168, 139, 224, 191, 152, 124, 224, 192, 136, 109, 224, 193, 120, 94, 224, 194, 104, 79, 224, 195, 88, 64, 224, 196, 72, 49, 224, 197, 56, 34, 224, 198, 40, 19, 224, 199, 24, 4, 224, 200, 188, 147, 96, 202, 119, 125, 80, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 78, 144, 96, 21, 39, 167, 208, 22, 24, 220, 64, 23, 8, 219, 80, 23, 250, 15, 192, 24, 234, 14, 208, 25, 219, 67, 64, 26, 204, 147, 208, 27, 188, 160, 240, 28, 172, 145, 240, 29, 156, 130, 240, 30, 140, 115, 240, 31, 124, 100, 240, 32, 108, 85, 240, 33, 92, 70, 240, 34, 76, 55, 240, 35, 60, 40, 240, 36, 44, 25, 240, 37, 28, 10, 240, 38, 11, 251, 240, 38, 67, 76, 224, 39, 5, 53, 128, 39, 245, 38, 128, 40, 229, 23, 128, 41, 96, 232, 96, 41, 212, 236, 96, 42, 196, 207, 80, 43, 180, 206, 96, 44, 164, 177, 80, 45, 148, 176, 96, 46, 132, 147, 80, 47, 116, 146, 96, 48, 100, 117, 80, 49, 93, 174, 224, 50, 114, 123, 208, 51, 61, 173, 0, 52, 82, 136, 0, 53, 29, 143, 0, 54, 50, 106, 0, 54, 253, 113, 0, 56, 27, 134, 128, 56, 221, 83, 0, 57, 251, 104, 128, 58, 189, 53, 0, 59, 219, 74, 128, 60, 166, 81, 128, 61, 187, 44, 128, 62, 134, 51, 128, 63, 155, 14, 128, 64, 102, 21, 128, 65, 132, 43, 0, 66, 69, 247, 128, 67, 100, 13, 0, 68, 37, 217, 128, 69, 67, 239, 0, 70, 5, 187, 128, 71, 35, 209, 0, 71, 238, 216, 0, 73, 3, 179, 0, 73, 206, 186, 0, 74, 227, 149, 0, 75, 174, 156, 0, 76, 204, 177, 128, 77, 142, 126, 0, 78, 172, 147, 128, 79, 110, 96, 0, 80, 140, 117, 128, 81, 87, 124, 128, 82, 108, 87, 128, 83, 55, 94, 128, 84, 76, 57, 128, 85, 23, 64, 128, 86, 44, 27, 128, 86, 247, 34, 128, 88, 21, 56, 0, 88, 215, 4, 128, 89, 245, 26, 0, 90, 182, 230, 128, 91, 212, 252, 0, 92, 160, 3, 0, 93, 180, 222, 0, 94, 127, 229, 0, 95, 148, 192, 0, 96, 95, 199, 0, 97, 125, 220, 128, 98, 63, 169, 0, 99, 93, 190, 128, 100, 31, 139, 0, 101, 61, 160, 128, 102, 8, 167, 128, 103, 29, 130, 128, 103, 232, 137, 128, 104, 253, 100, 128, 105, 200, 107, 128, 106, 221, 70, 128, 107, 168, 77, 128, 108, 198, 99, 0, 109, 136, 47, 128, 110, 166, 69, 0, 111, 104, 17, 128, 112, 134, 39, 0, 113, 81, 46, 0, 114, 102, 9, 0, 115, 49, 16, 0, 116, 69, 235, 0, 117, 16, 242, 0, 118, 47, 7, 128, 118, 240, 212, 0, 120, 14, 233, 128, 120, 208, 182, 0, 121, 238, 203, 128, 122, 176, 152, 0, 123, 206, 173, 128, 124, 153, 180, 128, 125, 174, 143, 128, 126, 121, 150, 128, 127, 142, 113, 128, 1, 2, 5, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 6, 9, 7, 8, 7, 8, 11, 10, 11, 10, 11, 10, 11, 10, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 6, 4, 3, 4, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 0, 0, 27, 8, 0, 0, 0, 0, 26, 244, 0, 4, 0, 0, 24, 120, 0, 8, 0, 0, 42, 48, 1, 12, 0, 0, 28, 32, 0, 17, 0, 0, 28, 32, 0, 17, 0, 0, 42, 48, 1, 12, 0, 0, 14, 16, 0, 21, 0, 0, 28, 32, 1, 25, 0, 0, 28, 32, 1, 25, 0, 0, 56, 64, 1, 30, 0, 0, 42, 48, 0, 34, 0, 0, 42, 48, 0, 34, 0, 0, 56, 64, 1, 30, 0, 0, 42, 48, 1, 12, 0, 0, 28, 32, 0, 17, 76, 77, 84, 0, 67, 77, 84, 0, 66, 77, 84, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 77, 83, 68, 0, 77, 83, 75, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Copenhagen": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 134, 0, 0, 0, 7, 0, 0, 0, 13, 128, 0, 0, 0, 155, 30, 140, 96, 155, 213, 190, 208, 200, 67, 87, 112, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 130, 37, 16, 209, 114, 22, 16, 210, 36, 16, 144, 211, 121, 133, 16, 212, 27, 173, 144, 213, 94, 173, 16, 213, 223, 224, 16, 215, 71, 201, 144, 215, 191, 194, 16, 18, 206, 151, 240, 19, 77, 68, 16, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 1, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 0, 0, 11, 204, 0, 0, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 67, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Dublin": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 230, 0, 0, 0, 10, 0, 0, 0, 20, 128, 0, 0, 0, 155, 38, 179, 145, 155, 214, 11, 17, 156, 207, 48, 160, 157, 164, 195, 160, 158, 156, 157, 160, 159, 151, 26, 160, 160, 133, 186, 32, 161, 118, 252, 160, 162, 101, 156, 32, 163, 123, 200, 160, 164, 78, 184, 160, 165, 63, 251, 32, 165, 148, 63, 0, 166, 37, 96, 32, 167, 39, 198, 32, 168, 42, 44, 32, 168, 235, 248, 160, 170, 0, 211, 160, 170, 213, 21, 32, 171, 233, 240, 32, 172, 199, 108, 32, 173, 201, 210, 32, 174, 167, 78, 32, 175, 160, 121, 160, 176, 135, 48, 32, 177, 146, 208, 160, 178, 112, 76, 160, 179, 114, 178, 160, 180, 80, 46, 160, 181, 73, 90, 32, 182, 48, 16, 160, 183, 50, 118, 160, 184, 15, 242, 160, 185, 18, 88, 160, 185, 239, 212, 160, 186, 233, 0, 32, 187, 216, 241, 32, 188, 219, 87, 32, 189, 184, 211, 32, 190, 177, 254, 160, 191, 152, 181, 32, 192, 155, 27, 32, 193, 120, 151, 32, 194, 122, 253, 32, 195, 88, 121, 32, 196, 81, 164, 160, 197, 56, 91, 32, 198, 58, 193, 32, 199, 88, 214, 160, 199, 218, 9, 160, 212, 73, 224, 32, 213, 30, 33, 160, 214, 78, 172, 32, 215, 44, 40, 32, 216, 46, 142, 32, 216, 249, 149, 32, 218, 14, 112, 32, 218, 235, 236, 32, 219, 229, 23, 160, 220, 203, 206, 32, 221, 196, 249, 160, 222, 180, 234, 160, 223, 174, 22, 32, 224, 148, 204, 160, 225, 114, 72, 160, 226, 107, 116, 32, 227, 82, 42, 160, 228, 84, 144, 160, 229, 50, 12, 160, 230, 61, 173, 32, 231, 27, 41, 32, 232, 20, 84, 160, 232, 251, 11, 32, 233, 253, 113, 32, 234, 218, 237, 32, 235, 221, 83, 32, 236, 186, 207, 32, 237, 179, 250, 160, 238, 154, 177, 32, 239, 129, 103, 160, 240, 159, 125, 32, 241, 97, 73, 160, 242, 127, 95, 32, 243, 74, 102, 32, 244, 95, 65, 32, 245, 33, 13, 160, 246, 63, 35, 32, 247, 0, 239, 160, 248, 31, 5, 32, 248, 224, 209, 160, 249, 254, 231, 32, 250, 192, 179, 160, 251, 232, 3, 160, 252, 123, 171, 160, 253, 199, 187, 112, 3, 112, 198, 32, 4, 41, 88, 32, 5, 80, 168, 32, 6, 9, 58, 32, 7, 48, 138, 32, 7, 233, 28, 32, 9, 16, 108, 32, 9, 200, 254, 32, 10, 240, 78, 32, 11, 178, 26, 160, 12, 208, 48, 32, 13, 145, 252, 160, 14, 176, 18, 32, 15, 113, 222, 160, 16, 153, 46, 160, 17, 81, 192, 160, 18, 121, 16, 160, 19, 49, 162, 160, 20, 88, 242, 160, 21, 35, 235, 144, 22, 56, 198, 144, 23, 3, 205, 144, 24, 24, 168, 144, 24, 227, 175, 144, 25, 248, 138, 144, 26, 195, 145, 144, 27, 225, 167, 16, 28, 172, 174, 16, 29, 193, 137, 16, 30, 140, 144, 16, 31, 161, 107, 16, 32, 108, 114, 16, 33, 129, 77, 16, 34, 76, 84, 16, 35, 97, 47, 16, 36, 44, 54, 16, 37, 74, 75, 144, 38, 12, 24, 16, 39, 42, 45, 144, 39, 245, 52, 144, 41, 10, 15, 144, 41, 213, 22, 144, 42, 233, 241, 144, 43, 180, 248, 144, 44, 201, 211, 144, 45, 148, 218, 144, 46, 169, 181, 144, 47, 116, 188, 144, 48, 137, 151, 144, 48, 231, 36, 0, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 2, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 6, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 7, 9, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 6, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 255, 255, 250, 36, 0, 0, 255, 255, 250, 15, 0, 4, 0, 0, 8, 31, 1, 8, 0, 0, 14, 16, 1, 12, 0, 0, 0, 0, 0, 16, 0, 0, 14, 16, 1, 8, 0, 0, 0, 0, 0, 16, 0, 0, 14, 16, 0, 8, 0, 0, 14, 16, 1, 8, 0, 0, 0, 0, 0, 16, 76, 77, 84, 0, 68, 77, 84, 0, 73, 83, 84, 0, 66, 83, 84, 0, 71, 77, 84, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 10, 71, 77, 84, 48, 73, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 49, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/Europe/Gibraltar": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 198, 0, 0, 0, 7, 0, 0, 0, 26, 128, 0, 0, 0, 155, 38, 173, 160, 155, 214, 5, 32, 156, 207, 48, 160, 157, 164, 195, 160, 158, 156, 157, 160, 159, 151, 26, 160, 160, 133, 186, 32, 161, 118, 252, 160, 162, 101, 156, 32, 163, 123, 200, 160, 164, 78, 184, 160, 165, 63, 251, 32, 166, 37, 96, 32, 167, 39, 198, 32, 168, 42, 44, 32, 168, 235, 248, 160, 170, 0, 211, 160, 170, 213, 21, 32, 171, 233, 240, 32, 172, 199, 108, 32, 173, 201, 210, 32, 174, 167, 78, 32, 175, 160, 121, 160, 176, 135, 48, 32, 177, 146, 208, 160, 178, 112, 76, 160, 179, 114, 178, 160, 180, 80, 46, 160, 181, 73, 90, 32, 182, 48, 16, 160, 183, 50, 118, 160, 184, 15, 242, 160, 185, 18, 88, 160, 185, 239, 212, 160, 186, 233, 0, 32, 187, 216, 241, 32, 188, 219, 87, 32, 189, 184, 211, 32, 190, 177, 254, 160, 191, 152, 181, 32, 192, 155, 27, 32, 193, 120, 151, 32, 194, 122, 253, 32, 195, 88, 121, 32, 196, 81, 164, 160, 197, 56, 91, 32, 198, 58, 193, 32, 199, 88, 214, 160, 199, 218, 9, 160, 202, 22, 38, 144, 202, 151, 89, 144, 203, 209, 30, 144, 204, 119, 59, 144, 205, 177, 0, 144, 206, 96, 88, 16, 207, 144, 226, 144, 208, 110, 94, 144, 209, 114, 22, 16, 209, 251, 50, 16, 210, 105, 254, 32, 211, 99, 41, 160, 212, 73, 224, 32, 213, 30, 33, 160, 213, 66, 253, 144, 213, 223, 224, 16, 214, 78, 172, 32, 214, 254, 3, 160, 216, 46, 142, 32, 216, 249, 149, 32, 218, 14, 112, 32, 218, 235, 236, 32, 219, 229, 23, 160, 220, 203, 206, 32, 221, 196, 249, 160, 222, 180, 234, 160, 223, 174, 22, 32, 224, 148, 204, 160, 225, 114, 72, 160, 226, 107, 116, 32, 227, 82, 42, 160, 228, 84, 144, 160, 229, 50, 12, 160, 230, 61, 173, 32, 231, 27, 41, 32, 232, 20, 84, 160, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 2, 1, 2, 1, 3, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 4, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 255, 255, 250, 252, 0, 0, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 8, 0, 0, 28, 32, 1, 12, 0, 0, 14, 16, 0, 17, 0, 0, 28, 32, 1, 21, 0, 0, 14, 16, 0, 17, 76, 77, 84, 0, 66, 83, 84, 0, 71, 77, 84, 0, 66, 68, 83, 84, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Guernsey": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 243, 0, 0, 0, 8, 0, 0, 0, 17, 128, 0, 0, 0, 155, 38, 173, 160, 155, 214, 5, 32, 156, 207, 48, 160, 157, 164, 195, 160, 158, 156, 157, 160, 159, 151, 26, 160, 160, 133, 186, 32, 161, 118, 252, 160, 162, 101, 156, 32, 163, 123, 200, 160, 164, 78, 184, 160, 165, 63, 251, 32, 166, 37, 96, 32, 167, 39, 198, 32, 168, 42, 44, 32, 168, 235, 248, 160, 170, 0, 211, 160, 170, 213, 21, 32, 171, 233, 240, 32, 172, 199, 108, 32, 173, 201, 210, 32, 174, 167, 78, 32, 175, 160, 121, 160, 176, 135, 48, 32, 177, 146, 208, 160, 178, 112, 76, 160, 179, 114, 178, 160, 180, 80, 46, 160, 181, 73, 90, 32, 182, 48, 16, 160, 183, 50, 118, 160, 184, 15, 242, 160, 185, 18, 88, 160, 185, 239, 212, 160, 186, 233, 0, 32, 187, 216, 241, 32, 188, 219, 87, 32, 189, 184, 211, 32, 190, 177, 254, 160, 191, 152, 181, 32, 192, 155, 27, 32, 193, 120, 151, 32, 194, 122, 253, 32, 195, 88, 121, 32, 196, 81, 164, 160, 197, 56, 91, 32, 198, 58, 193, 32, 199, 88, 214, 160, 199, 218, 9, 160, 202, 22, 38, 144, 202, 151, 89, 144, 203, 209, 30, 144, 204, 119, 59, 144, 205, 177, 0, 144, 206, 96, 88, 16, 207, 144, 226, 144, 208, 110, 94, 144, 209, 114, 22, 16, 209, 251, 50, 16, 210, 105, 254, 32, 211, 99, 41, 160, 212, 73, 224, 32, 213, 30, 33, 160, 213, 66, 253, 144, 213, 223, 224, 16, 214, 78, 172, 32, 214, 254, 3, 160, 216, 46, 142, 32, 216, 249, 149, 32, 218, 14, 112, 32, 218, 235, 236, 32, 219, 229, 23, 160, 220, 203, 206, 32, 221, 196, 249, 160, 222, 180, 234, 160, 223, 174, 22, 32, 224, 148, 204, 160, 225, 114, 72, 160, 226, 107, 116, 32, 227, 82, 42, 160, 228, 84, 144, 160, 229, 50, 12, 160, 230, 61, 173, 32, 231, 27, 41, 32, 232, 20, 84, 160, 232, 251, 11, 32, 233, 253, 113, 32, 234, 218, 237, 32, 235, 221, 83, 32, 236, 186, 207, 32, 237, 179, 250, 160, 238, 154, 177, 32, 239, 129, 103, 160, 240, 159, 125, 32, 241, 97, 73, 160, 242, 127, 95, 32, 243, 74, 102, 32, 244, 95, 65, 32, 245, 33, 13, 160, 246, 63, 35, 32, 247, 0, 239, 160, 248, 31, 5, 32, 248, 224, 209, 160, 249, 254, 231, 32, 250, 192, 179, 160, 251, 232, 3, 160, 252, 123, 171, 160, 253, 199, 187, 112, 3, 112, 198, 32, 4, 41, 88, 32, 5, 80, 168, 32, 6, 9, 58, 32, 7, 48, 138, 32, 7, 233, 28, 32, 9, 16, 108, 32, 9, 200, 254, 32, 10, 240, 78, 32, 11, 178, 26, 160, 12, 208, 48, 32, 13, 145, 252, 160, 14, 176, 18, 32, 15, 113, 222, 160, 16, 153, 46, 160, 17, 81, 192, 160, 18, 121, 16, 160, 19, 49, 162, 160, 20, 88, 242, 160, 21, 35, 235, 144, 22, 56, 198, 144, 23, 3, 205, 144, 24, 24, 168, 144, 24, 227, 175, 144, 25, 248, 138, 144, 26, 195, 145, 144, 27, 225, 167, 16, 28, 172, 174, 16, 29, 193, 137, 16, 30, 140, 144, 16, 31, 161, 107, 16, 32, 108, 114, 16, 33, 129, 77, 16, 34, 76, 84, 16, 35, 97, 47, 16, 36, 44, 54, 16, 37, 74, 75, 144, 38, 12, 24, 16, 39, 42, 45, 144, 39, 245, 52, 144, 41, 10, 15, 144, 41, 213, 22, 144, 42, 233, 241, 144, 43, 180, 248, 144, 44, 201, 211, 144, 45, 148, 218, 144, 46, 169, 181, 144, 47, 116, 188, 144, 48, 137, 151, 144, 48, 231, 36, 0, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 2, 1, 2, 1, 3, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 4, 6, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 7, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 255, 255, 255, 181, 0, 0, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 8, 0, 0, 28, 32, 1, 12, 0, 0, 14, 16, 0, 4, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 8, 76, 77, 84, 0, 66, 83, 84, 0, 71, 77, 84, 0, 66, 68, 83, 84, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 10, 71, 77, 84, 48, 66, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 49, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/Europe/Helsinki": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 118, 0, 0, 0, 6, 0, 0, 0, 17, 128, 0, 0, 0, 164, 115, 111, 27, 203, 206, 81, 96, 204, 192, 229, 96, 21, 35, 221, 128, 22, 19, 206, 128, 23, 3, 191, 128, 23, 243, 176, 128, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 3, 2, 3, 2, 3, 2, 3, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 0, 0, 23, 101, 0, 0, 0, 0, 23, 101, 0, 4, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 13, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 13, 76, 77, 84, 0, 72, 77, 84, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 51, 44, 77, 49, 48, 46, 53, 46, 48, 47, 52, 10}, + + "zoneinfo/Europe/Isle_of_Man": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 243, 0, 0, 0, 8, 0, 0, 0, 17, 128, 0, 0, 0, 155, 38, 173, 160, 155, 214, 5, 32, 156, 207, 48, 160, 157, 164, 195, 160, 158, 156, 157, 160, 159, 151, 26, 160, 160, 133, 186, 32, 161, 118, 252, 160, 162, 101, 156, 32, 163, 123, 200, 160, 164, 78, 184, 160, 165, 63, 251, 32, 166, 37, 96, 32, 167, 39, 198, 32, 168, 42, 44, 32, 168, 235, 248, 160, 170, 0, 211, 160, 170, 213, 21, 32, 171, 233, 240, 32, 172, 199, 108, 32, 173, 201, 210, 32, 174, 167, 78, 32, 175, 160, 121, 160, 176, 135, 48, 32, 177, 146, 208, 160, 178, 112, 76, 160, 179, 114, 178, 160, 180, 80, 46, 160, 181, 73, 90, 32, 182, 48, 16, 160, 183, 50, 118, 160, 184, 15, 242, 160, 185, 18, 88, 160, 185, 239, 212, 160, 186, 233, 0, 32, 187, 216, 241, 32, 188, 219, 87, 32, 189, 184, 211, 32, 190, 177, 254, 160, 191, 152, 181, 32, 192, 155, 27, 32, 193, 120, 151, 32, 194, 122, 253, 32, 195, 88, 121, 32, 196, 81, 164, 160, 197, 56, 91, 32, 198, 58, 193, 32, 199, 88, 214, 160, 199, 218, 9, 160, 202, 22, 38, 144, 202, 151, 89, 144, 203, 209, 30, 144, 204, 119, 59, 144, 205, 177, 0, 144, 206, 96, 88, 16, 207, 144, 226, 144, 208, 110, 94, 144, 209, 114, 22, 16, 209, 251, 50, 16, 210, 105, 254, 32, 211, 99, 41, 160, 212, 73, 224, 32, 213, 30, 33, 160, 213, 66, 253, 144, 213, 223, 224, 16, 214, 78, 172, 32, 214, 254, 3, 160, 216, 46, 142, 32, 216, 249, 149, 32, 218, 14, 112, 32, 218, 235, 236, 32, 219, 229, 23, 160, 220, 203, 206, 32, 221, 196, 249, 160, 222, 180, 234, 160, 223, 174, 22, 32, 224, 148, 204, 160, 225, 114, 72, 160, 226, 107, 116, 32, 227, 82, 42, 160, 228, 84, 144, 160, 229, 50, 12, 160, 230, 61, 173, 32, 231, 27, 41, 32, 232, 20, 84, 160, 232, 251, 11, 32, 233, 253, 113, 32, 234, 218, 237, 32, 235, 221, 83, 32, 236, 186, 207, 32, 237, 179, 250, 160, 238, 154, 177, 32, 239, 129, 103, 160, 240, 159, 125, 32, 241, 97, 73, 160, 242, 127, 95, 32, 243, 74, 102, 32, 244, 95, 65, 32, 245, 33, 13, 160, 246, 63, 35, 32, 247, 0, 239, 160, 248, 31, 5, 32, 248, 224, 209, 160, 249, 254, 231, 32, 250, 192, 179, 160, 251, 232, 3, 160, 252, 123, 171, 160, 253, 199, 187, 112, 3, 112, 198, 32, 4, 41, 88, 32, 5, 80, 168, 32, 6, 9, 58, 32, 7, 48, 138, 32, 7, 233, 28, 32, 9, 16, 108, 32, 9, 200, 254, 32, 10, 240, 78, 32, 11, 178, 26, 160, 12, 208, 48, 32, 13, 145, 252, 160, 14, 176, 18, 32, 15, 113, 222, 160, 16, 153, 46, 160, 17, 81, 192, 160, 18, 121, 16, 160, 19, 49, 162, 160, 20, 88, 242, 160, 21, 35, 235, 144, 22, 56, 198, 144, 23, 3, 205, 144, 24, 24, 168, 144, 24, 227, 175, 144, 25, 248, 138, 144, 26, 195, 145, 144, 27, 225, 167, 16, 28, 172, 174, 16, 29, 193, 137, 16, 30, 140, 144, 16, 31, 161, 107, 16, 32, 108, 114, 16, 33, 129, 77, 16, 34, 76, 84, 16, 35, 97, 47, 16, 36, 44, 54, 16, 37, 74, 75, 144, 38, 12, 24, 16, 39, 42, 45, 144, 39, 245, 52, 144, 41, 10, 15, 144, 41, 213, 22, 144, 42, 233, 241, 144, 43, 180, 248, 144, 44, 201, 211, 144, 45, 148, 218, 144, 46, 169, 181, 144, 47, 116, 188, 144, 48, 137, 151, 144, 48, 231, 36, 0, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 2, 1, 2, 1, 3, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 4, 6, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 7, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 255, 255, 255, 181, 0, 0, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 8, 0, 0, 28, 32, 1, 12, 0, 0, 14, 16, 0, 4, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 8, 76, 77, 84, 0, 66, 83, 84, 0, 71, 77, 84, 0, 66, 68, 83, 84, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 10, 71, 77, 84, 48, 66, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 49, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/Europe/Istanbul": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 131, 0, 0, 0, 11, 0, 0, 0, 25, 128, 0, 0, 0, 144, 139, 245, 152, 155, 12, 23, 96, 155, 213, 190, 208, 162, 101, 99, 224, 163, 123, 130, 80, 164, 78, 128, 96, 165, 63, 180, 208, 166, 37, 39, 224, 167, 39, 127, 208, 170, 40, 40, 96, 170, 225, 253, 208, 171, 249, 137, 224, 172, 195, 49, 80, 200, 127, 238, 96, 200, 255, 193, 208, 201, 74, 245, 96, 202, 206, 128, 80, 203, 203, 174, 96, 204, 229, 193, 80, 209, 113, 235, 224, 210, 107, 9, 80, 211, 162, 57, 96, 212, 67, 2, 80, 213, 76, 13, 224, 214, 41, 123, 208, 215, 43, 239, 224, 216, 9, 93, 208, 217, 2, 151, 96, 217, 233, 63, 208, 218, 239, 168, 96, 219, 210, 92, 80, 220, 212, 208, 96, 221, 179, 143, 208, 241, 244, 185, 96, 242, 100, 186, 208, 245, 104, 6, 96, 246, 31, 56, 208, 0, 160, 186, 224, 1, 107, 179, 208, 2, 128, 156, 224, 3, 75, 149, 208, 4, 105, 185, 96, 5, 52, 178, 80, 6, 110, 147, 112, 7, 57, 168, 128, 7, 251, 117, 0, 9, 25, 166, 160, 9, 219, 58, 224, 10, 240, 7, 208, 12, 16, 206, 96, 12, 217, 36, 80, 13, 164, 57, 96, 14, 166, 145, 80, 15, 132, 27, 96, 16, 134, 115, 80, 18, 103, 152, 192, 19, 77, 54, 0, 20, 71, 122, 192, 21, 35, 221, 128, 22, 39, 92, 192, 23, 3, 191, 128, 24, 7, 62, 192, 25, 137, 148, 80, 25, 220, 148, 192, 28, 198, 211, 208, 29, 155, 21, 80, 30, 140, 115, 240, 31, 124, 100, 240, 32, 108, 85, 240, 33, 92, 70, 240, 34, 76, 55, 240, 35, 60, 40, 240, 36, 44, 25, 240, 37, 28, 10, 240, 38, 11, 251, 240, 39, 5, 39, 112, 39, 245, 24, 112, 40, 229, 9, 112, 41, 212, 250, 112, 42, 196, 235, 112, 43, 180, 220, 112, 44, 164, 205, 112, 45, 139, 131, 240, 46, 132, 175, 112, 47, 116, 160, 112, 48, 100, 145, 112, 49, 93, 188, 240, 50, 114, 151, 240, 51, 61, 158, 240, 52, 82, 121, 240, 53, 29, 128, 240, 54, 50, 91, 240, 54, 253, 98, 240, 56, 27, 120, 112, 56, 221, 68, 240, 57, 251, 90, 112, 58, 189, 38, 240, 59, 219, 60, 112, 60, 166, 67, 112, 61, 187, 30, 112, 62, 134, 37, 112, 63, 155, 0, 112, 64, 102, 7, 112, 65, 132, 28, 240, 66, 69, 233, 112, 67, 99, 254, 240, 68, 37, 203, 112, 69, 67, 224, 240, 69, 152, 50, 224, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 143, 221, 144, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 56, 190, 16, 84, 76, 71, 144, 85, 23, 78, 144, 86, 62, 158, 144, 86, 247, 48, 144, 87, 207, 46, 80, 127, 255, 255, 255, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 2, 3, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 3, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 5, 5, 0, 0, 27, 40, 0, 0, 0, 0, 27, 104, 0, 4, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 13, 0, 0, 56, 64, 1, 17, 0, 0, 42, 48, 0, 21, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 13, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 13, 0, 0, 42, 48, 0, 21, 76, 77, 84, 0, 73, 77, 84, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 43, 48, 52, 0, 43, 48, 51, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 10, 60, 43, 48, 51, 62, 45, 51, 10}, + + "zoneinfo/Europe/Jersey": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 243, 0, 0, 0, 8, 0, 0, 0, 17, 128, 0, 0, 0, 155, 38, 173, 160, 155, 214, 5, 32, 156, 207, 48, 160, 157, 164, 195, 160, 158, 156, 157, 160, 159, 151, 26, 160, 160, 133, 186, 32, 161, 118, 252, 160, 162, 101, 156, 32, 163, 123, 200, 160, 164, 78, 184, 160, 165, 63, 251, 32, 166, 37, 96, 32, 167, 39, 198, 32, 168, 42, 44, 32, 168, 235, 248, 160, 170, 0, 211, 160, 170, 213, 21, 32, 171, 233, 240, 32, 172, 199, 108, 32, 173, 201, 210, 32, 174, 167, 78, 32, 175, 160, 121, 160, 176, 135, 48, 32, 177, 146, 208, 160, 178, 112, 76, 160, 179, 114, 178, 160, 180, 80, 46, 160, 181, 73, 90, 32, 182, 48, 16, 160, 183, 50, 118, 160, 184, 15, 242, 160, 185, 18, 88, 160, 185, 239, 212, 160, 186, 233, 0, 32, 187, 216, 241, 32, 188, 219, 87, 32, 189, 184, 211, 32, 190, 177, 254, 160, 191, 152, 181, 32, 192, 155, 27, 32, 193, 120, 151, 32, 194, 122, 253, 32, 195, 88, 121, 32, 196, 81, 164, 160, 197, 56, 91, 32, 198, 58, 193, 32, 199, 88, 214, 160, 199, 218, 9, 160, 202, 22, 38, 144, 202, 151, 89, 144, 203, 209, 30, 144, 204, 119, 59, 144, 205, 177, 0, 144, 206, 96, 88, 16, 207, 144, 226, 144, 208, 110, 94, 144, 209, 114, 22, 16, 209, 251, 50, 16, 210, 105, 254, 32, 211, 99, 41, 160, 212, 73, 224, 32, 213, 30, 33, 160, 213, 66, 253, 144, 213, 223, 224, 16, 214, 78, 172, 32, 214, 254, 3, 160, 216, 46, 142, 32, 216, 249, 149, 32, 218, 14, 112, 32, 218, 235, 236, 32, 219, 229, 23, 160, 220, 203, 206, 32, 221, 196, 249, 160, 222, 180, 234, 160, 223, 174, 22, 32, 224, 148, 204, 160, 225, 114, 72, 160, 226, 107, 116, 32, 227, 82, 42, 160, 228, 84, 144, 160, 229, 50, 12, 160, 230, 61, 173, 32, 231, 27, 41, 32, 232, 20, 84, 160, 232, 251, 11, 32, 233, 253, 113, 32, 234, 218, 237, 32, 235, 221, 83, 32, 236, 186, 207, 32, 237, 179, 250, 160, 238, 154, 177, 32, 239, 129, 103, 160, 240, 159, 125, 32, 241, 97, 73, 160, 242, 127, 95, 32, 243, 74, 102, 32, 244, 95, 65, 32, 245, 33, 13, 160, 246, 63, 35, 32, 247, 0, 239, 160, 248, 31, 5, 32, 248, 224, 209, 160, 249, 254, 231, 32, 250, 192, 179, 160, 251, 232, 3, 160, 252, 123, 171, 160, 253, 199, 187, 112, 3, 112, 198, 32, 4, 41, 88, 32, 5, 80, 168, 32, 6, 9, 58, 32, 7, 48, 138, 32, 7, 233, 28, 32, 9, 16, 108, 32, 9, 200, 254, 32, 10, 240, 78, 32, 11, 178, 26, 160, 12, 208, 48, 32, 13, 145, 252, 160, 14, 176, 18, 32, 15, 113, 222, 160, 16, 153, 46, 160, 17, 81, 192, 160, 18, 121, 16, 160, 19, 49, 162, 160, 20, 88, 242, 160, 21, 35, 235, 144, 22, 56, 198, 144, 23, 3, 205, 144, 24, 24, 168, 144, 24, 227, 175, 144, 25, 248, 138, 144, 26, 195, 145, 144, 27, 225, 167, 16, 28, 172, 174, 16, 29, 193, 137, 16, 30, 140, 144, 16, 31, 161, 107, 16, 32, 108, 114, 16, 33, 129, 77, 16, 34, 76, 84, 16, 35, 97, 47, 16, 36, 44, 54, 16, 37, 74, 75, 144, 38, 12, 24, 16, 39, 42, 45, 144, 39, 245, 52, 144, 41, 10, 15, 144, 41, 213, 22, 144, 42, 233, 241, 144, 43, 180, 248, 144, 44, 201, 211, 144, 45, 148, 218, 144, 46, 169, 181, 144, 47, 116, 188, 144, 48, 137, 151, 144, 48, 231, 36, 0, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 2, 1, 2, 1, 3, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 4, 6, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 7, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 255, 255, 255, 181, 0, 0, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 8, 0, 0, 28, 32, 1, 12, 0, 0, 14, 16, 0, 4, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 8, 76, 77, 84, 0, 66, 83, 84, 0, 71, 77, 84, 0, 66, 68, 83, 84, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 10, 71, 77, 84, 48, 66, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 49, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/Europe/Kaliningrad": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 79, 0, 0, 0, 15, 0, 0, 0, 34, 128, 0, 0, 0, 155, 12, 23, 96, 155, 213, 218, 240, 156, 217, 174, 144, 157, 164, 181, 144, 158, 185, 144, 144, 159, 132, 151, 144, 200, 9, 113, 144, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 130, 37, 16, 208, 250, 1, 112, 209, 149, 132, 96, 210, 138, 173, 80, 210, 219, 38, 224, 21, 39, 167, 208, 22, 24, 220, 64, 23, 8, 219, 80, 23, 250, 15, 192, 24, 234, 14, 208, 25, 219, 67, 64, 26, 204, 147, 208, 27, 188, 160, 240, 28, 172, 145, 240, 29, 156, 130, 240, 30, 140, 115, 240, 31, 124, 100, 240, 32, 108, 85, 240, 33, 92, 70, 240, 34, 76, 55, 240, 35, 60, 40, 240, 36, 44, 25, 240, 37, 28, 25, 0, 38, 12, 10, 0, 39, 5, 53, 128, 39, 245, 38, 128, 40, 229, 23, 128, 41, 213, 8, 128, 42, 196, 249, 128, 43, 180, 234, 128, 44, 164, 219, 128, 45, 148, 204, 128, 46, 132, 189, 128, 47, 116, 174, 128, 48, 100, 159, 128, 49, 93, 203, 0, 50, 114, 166, 0, 51, 61, 173, 0, 52, 82, 136, 0, 53, 29, 143, 0, 54, 50, 106, 0, 54, 253, 113, 0, 56, 27, 134, 128, 56, 221, 83, 0, 57, 251, 104, 128, 58, 189, 53, 0, 59, 219, 74, 128, 60, 166, 81, 128, 61, 187, 44, 128, 62, 134, 51, 128, 63, 155, 14, 128, 64, 102, 21, 128, 65, 132, 43, 0, 66, 69, 247, 128, 67, 100, 13, 0, 68, 37, 217, 128, 69, 67, 239, 0, 70, 5, 187, 128, 71, 35, 209, 0, 71, 238, 216, 0, 73, 3, 179, 0, 73, 206, 186, 0, 74, 227, 149, 0, 75, 174, 156, 0, 76, 204, 177, 128, 77, 142, 126, 0, 84, 76, 43, 112, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 6, 5, 6, 8, 7, 8, 7, 8, 7, 8, 7, 9, 10, 9, 10, 9, 10, 9, 10, 9, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 13, 12, 0, 0, 19, 56, 0, 0, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 42, 48, 1, 4, 0, 0, 28, 32, 0, 9, 0, 0, 56, 64, 1, 13, 0, 0, 42, 48, 0, 17, 0, 0, 42, 48, 0, 17, 0, 0, 56, 64, 1, 13, 0, 0, 42, 48, 1, 21, 0, 0, 28, 32, 0, 26, 0, 0, 42, 48, 0, 30, 0, 0, 28, 32, 0, 26, 76, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 77, 83, 68, 0, 77, 83, 75, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 43, 48, 51, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 69, 84, 45, 50, 10}, + + "zoneinfo/Europe/Kiev": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 121, 0, 0, 0, 13, 0, 0, 0, 34, 128, 0, 0, 0, 170, 25, 167, 100, 181, 164, 25, 96, 202, 205, 46, 208, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 206, 205, 168, 112, 21, 39, 167, 208, 22, 24, 220, 64, 23, 8, 219, 80, 23, 250, 15, 192, 24, 234, 14, 208, 25, 219, 67, 64, 26, 204, 147, 208, 27, 188, 160, 240, 28, 172, 145, 240, 29, 156, 130, 240, 30, 140, 115, 240, 31, 124, 100, 240, 32, 108, 85, 240, 33, 92, 70, 240, 34, 76, 55, 240, 35, 60, 40, 240, 36, 44, 25, 240, 37, 28, 10, 240, 38, 11, 251, 240, 38, 141, 32, 224, 40, 229, 23, 128, 41, 212, 236, 96, 42, 196, 207, 80, 43, 180, 206, 96, 44, 164, 177, 80, 45, 148, 176, 96, 46, 132, 147, 80, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 2, 3, 6, 4, 5, 4, 3, 7, 3, 7, 3, 7, 3, 7, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 10, 2, 10, 2, 10, 2, 10, 2, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 0, 0, 28, 156, 0, 0, 0, 0, 28, 156, 0, 4, 0, 0, 28, 32, 0, 8, 0, 0, 42, 48, 0, 12, 0, 0, 14, 16, 0, 16, 0, 0, 28, 32, 1, 20, 0, 0, 28, 32, 1, 20, 0, 0, 56, 64, 1, 25, 0, 0, 42, 48, 0, 12, 0, 0, 56, 64, 1, 25, 0, 0, 42, 48, 1, 29, 0, 0, 42, 48, 1, 29, 0, 0, 28, 32, 0, 8, 76, 77, 84, 0, 75, 77, 84, 0, 69, 69, 84, 0, 77, 83, 75, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 77, 83, 68, 0, 69, 69, 83, 84, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 51, 44, 77, 49, 48, 46, 53, 46, 48, 47, 52, 10}, + + "zoneinfo/Europe/Kirov": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 65, 0, 0, 0, 8, 0, 0, 0, 16, 128, 0, 0, 0, 161, 0, 57, 128, 181, 164, 11, 80, 21, 39, 153, 192, 22, 24, 206, 48, 23, 8, 205, 64, 23, 250, 1, 176, 24, 234, 0, 192, 25, 219, 53, 48, 26, 204, 133, 192, 27, 188, 146, 224, 28, 172, 131, 224, 29, 156, 116, 224, 30, 140, 101, 224, 31, 124, 86, 224, 32, 108, 71, 224, 33, 92, 56, 224, 34, 76, 41, 224, 35, 60, 26, 224, 36, 44, 11, 224, 37, 28, 10, 240, 38, 11, 251, 240, 39, 5, 39, 112, 39, 245, 24, 112, 41, 212, 236, 96, 42, 196, 235, 112, 43, 180, 220, 112, 44, 164, 205, 112, 45, 148, 190, 112, 46, 132, 175, 112, 47, 116, 160, 112, 48, 100, 145, 112, 49, 93, 188, 240, 50, 114, 151, 240, 51, 61, 158, 240, 52, 82, 121, 240, 53, 29, 128, 240, 54, 50, 91, 240, 54, 253, 98, 240, 56, 27, 120, 112, 56, 221, 68, 240, 57, 251, 90, 112, 58, 189, 38, 240, 59, 219, 60, 112, 60, 166, 67, 112, 61, 187, 30, 112, 62, 134, 37, 112, 63, 155, 0, 112, 64, 102, 7, 112, 65, 132, 28, 240, 66, 69, 233, 112, 67, 99, 254, 240, 68, 37, 203, 112, 69, 67, 224, 240, 70, 5, 173, 112, 71, 35, 194, 240, 71, 238, 201, 240, 73, 3, 164, 240, 73, 206, 171, 240, 74, 227, 134, 240, 75, 174, 141, 240, 76, 204, 163, 112, 77, 142, 111, 240, 84, 76, 29, 96, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 6, 7, 4, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 4, 7, 7, 0, 0, 46, 152, 0, 0, 0, 0, 42, 48, 0, 4, 0, 0, 70, 80, 1, 8, 0, 0, 56, 64, 0, 12, 0, 0, 56, 64, 0, 12, 0, 0, 70, 80, 1, 8, 0, 0, 56, 64, 1, 12, 0, 0, 42, 48, 0, 4, 76, 77, 84, 0, 43, 48, 51, 0, 43, 48, 53, 0, 43, 48, 52, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 51, 62, 45, 51, 10}, + + "zoneinfo/Europe/Lisbon": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 222, 0, 0, 0, 11, 0, 0, 0, 27, 128, 0, 0, 0, 146, 230, 151, 29, 155, 75, 109, 112, 155, 254, 199, 128, 156, 156, 237, 112, 157, 201, 131, 112, 158, 127, 114, 112, 159, 170, 182, 240, 160, 95, 84, 112, 161, 139, 234, 112, 162, 65, 217, 112, 163, 110, 111, 112, 164, 35, 12, 240, 165, 79, 162, 240, 170, 5, 239, 112, 170, 244, 142, 240, 173, 201, 167, 240, 174, 167, 35, 240, 175, 160, 79, 112, 176, 135, 5, 240, 177, 137, 107, 240, 178, 112, 34, 112, 179, 114, 136, 112, 180, 80, 4, 112, 183, 50, 76, 112, 184, 15, 200, 112, 184, 255, 185, 112, 185, 239, 170, 112, 188, 200, 183, 240, 189, 184, 168, 240, 190, 159, 95, 112, 191, 152, 138, 240, 192, 154, 240, 240, 193, 120, 108, 240, 194, 104, 93, 240, 195, 88, 78, 240, 196, 63, 5, 112, 197, 56, 48, 240, 198, 58, 150, 240, 199, 88, 172, 112, 199, 217, 223, 112, 201, 1, 47, 112, 201, 241, 32, 112, 202, 226, 98, 240, 203, 181, 82, 240, 203, 236, 163, 224, 204, 128, 75, 224, 204, 220, 162, 240, 205, 149, 52, 240, 205, 195, 75, 96, 206, 114, 162, 224, 206, 197, 191, 112, 207, 117, 22, 240, 207, 172, 103, 224, 208, 82, 132, 224, 208, 165, 161, 112, 209, 84, 248, 240, 209, 140, 73, 224, 210, 50, 102, 224, 210, 133, 131, 112, 211, 89, 196, 240, 212, 73, 181, 240, 213, 57, 209, 32, 214, 41, 194, 32, 215, 25, 179, 32, 216, 9, 164, 32, 216, 249, 149, 32, 217, 233, 134, 32, 220, 185, 89, 32, 221, 178, 132, 160, 222, 162, 117, 160, 223, 146, 102, 160, 224, 130, 87, 160, 225, 114, 72, 160, 226, 98, 57, 160, 227, 82, 42, 160, 228, 66, 27, 160, 229, 50, 12, 160, 230, 33, 253, 160, 231, 27, 41, 32, 232, 11, 26, 32, 232, 251, 11, 32, 233, 234, 252, 32, 234, 218, 237, 32, 235, 202, 222, 32, 236, 186, 207, 32, 237, 170, 192, 32, 238, 154, 177, 32, 239, 138, 162, 32, 240, 122, 147, 32, 241, 106, 132, 32, 242, 99, 175, 160, 243, 83, 160, 160, 244, 67, 145, 160, 245, 51, 130, 160, 246, 35, 115, 160, 247, 19, 100, 160, 248, 3, 85, 160, 248, 243, 70, 160, 12, 171, 42, 0, 13, 155, 27, 0, 14, 139, 12, 0, 15, 132, 55, 128, 16, 116, 40, 128, 17, 100, 25, 128, 18, 84, 24, 144, 19, 67, 251, 128, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 189, 160, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 0, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 5, 3, 4, 3, 5, 3, 4, 3, 5, 3, 4, 3, 5, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 6, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 7, 8, 7, 8, 7, 8, 7, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 255, 255, 247, 99, 0, 0, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 9, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 9, 0, 0, 28, 32, 1, 13, 0, 0, 14, 16, 0, 18, 0, 0, 14, 16, 0, 18, 0, 0, 28, 32, 1, 22, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 9, 76, 77, 84, 0, 87, 69, 83, 84, 0, 87, 69, 84, 0, 87, 69, 77, 84, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 10, 87, 69, 84, 48, 87, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 49, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/Europe/Ljubljana": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 121, 0, 0, 0, 7, 0, 0, 0, 13, 128, 0, 0, 0, 202, 2, 53, 224, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 130, 37, 16, 208, 250, 1, 112, 209, 161, 140, 16, 210, 78, 64, 144, 24, 69, 95, 112, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 4, 2, 3, 2, 3, 2, 1, 3, 2, 1, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 0, 0, 19, 56, 0, 0, 0, 0, 14, 16, 0, 4, 0, 0, 14, 16, 0, 4, 0, 0, 28, 32, 1, 8, 0, 0, 28, 32, 1, 8, 0, 0, 28, 32, 1, 8, 0, 0, 14, 16, 0, 4, 76, 77, 84, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/London": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 243, 0, 0, 0, 8, 0, 0, 0, 17, 128, 0, 0, 0, 155, 38, 173, 160, 155, 214, 5, 32, 156, 207, 48, 160, 157, 164, 195, 160, 158, 156, 157, 160, 159, 151, 26, 160, 160, 133, 186, 32, 161, 118, 252, 160, 162, 101, 156, 32, 163, 123, 200, 160, 164, 78, 184, 160, 165, 63, 251, 32, 166, 37, 96, 32, 167, 39, 198, 32, 168, 42, 44, 32, 168, 235, 248, 160, 170, 0, 211, 160, 170, 213, 21, 32, 171, 233, 240, 32, 172, 199, 108, 32, 173, 201, 210, 32, 174, 167, 78, 32, 175, 160, 121, 160, 176, 135, 48, 32, 177, 146, 208, 160, 178, 112, 76, 160, 179, 114, 178, 160, 180, 80, 46, 160, 181, 73, 90, 32, 182, 48, 16, 160, 183, 50, 118, 160, 184, 15, 242, 160, 185, 18, 88, 160, 185, 239, 212, 160, 186, 233, 0, 32, 187, 216, 241, 32, 188, 219, 87, 32, 189, 184, 211, 32, 190, 177, 254, 160, 191, 152, 181, 32, 192, 155, 27, 32, 193, 120, 151, 32, 194, 122, 253, 32, 195, 88, 121, 32, 196, 81, 164, 160, 197, 56, 91, 32, 198, 58, 193, 32, 199, 88, 214, 160, 199, 218, 9, 160, 202, 22, 38, 144, 202, 151, 89, 144, 203, 209, 30, 144, 204, 119, 59, 144, 205, 177, 0, 144, 206, 96, 88, 16, 207, 144, 226, 144, 208, 110, 94, 144, 209, 114, 22, 16, 209, 251, 50, 16, 210, 105, 254, 32, 211, 99, 41, 160, 212, 73, 224, 32, 213, 30, 33, 160, 213, 66, 253, 144, 213, 223, 224, 16, 214, 78, 172, 32, 214, 254, 3, 160, 216, 46, 142, 32, 216, 249, 149, 32, 218, 14, 112, 32, 218, 235, 236, 32, 219, 229, 23, 160, 220, 203, 206, 32, 221, 196, 249, 160, 222, 180, 234, 160, 223, 174, 22, 32, 224, 148, 204, 160, 225, 114, 72, 160, 226, 107, 116, 32, 227, 82, 42, 160, 228, 84, 144, 160, 229, 50, 12, 160, 230, 61, 173, 32, 231, 27, 41, 32, 232, 20, 84, 160, 232, 251, 11, 32, 233, 253, 113, 32, 234, 218, 237, 32, 235, 221, 83, 32, 236, 186, 207, 32, 237, 179, 250, 160, 238, 154, 177, 32, 239, 129, 103, 160, 240, 159, 125, 32, 241, 97, 73, 160, 242, 127, 95, 32, 243, 74, 102, 32, 244, 95, 65, 32, 245, 33, 13, 160, 246, 63, 35, 32, 247, 0, 239, 160, 248, 31, 5, 32, 248, 224, 209, 160, 249, 254, 231, 32, 250, 192, 179, 160, 251, 232, 3, 160, 252, 123, 171, 160, 253, 199, 187, 112, 3, 112, 198, 32, 4, 41, 88, 32, 5, 80, 168, 32, 6, 9, 58, 32, 7, 48, 138, 32, 7, 233, 28, 32, 9, 16, 108, 32, 9, 200, 254, 32, 10, 240, 78, 32, 11, 178, 26, 160, 12, 208, 48, 32, 13, 145, 252, 160, 14, 176, 18, 32, 15, 113, 222, 160, 16, 153, 46, 160, 17, 81, 192, 160, 18, 121, 16, 160, 19, 49, 162, 160, 20, 88, 242, 160, 21, 35, 235, 144, 22, 56, 198, 144, 23, 3, 205, 144, 24, 24, 168, 144, 24, 227, 175, 144, 25, 248, 138, 144, 26, 195, 145, 144, 27, 225, 167, 16, 28, 172, 174, 16, 29, 193, 137, 16, 30, 140, 144, 16, 31, 161, 107, 16, 32, 108, 114, 16, 33, 129, 77, 16, 34, 76, 84, 16, 35, 97, 47, 16, 36, 44, 54, 16, 37, 74, 75, 144, 38, 12, 24, 16, 39, 42, 45, 144, 39, 245, 52, 144, 41, 10, 15, 144, 41, 213, 22, 144, 42, 233, 241, 144, 43, 180, 248, 144, 44, 201, 211, 144, 45, 148, 218, 144, 46, 169, 181, 144, 47, 116, 188, 144, 48, 137, 151, 144, 48, 231, 36, 0, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 2, 1, 2, 1, 3, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 4, 6, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 7, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 255, 255, 255, 181, 0, 0, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 8, 0, 0, 28, 32, 1, 12, 0, 0, 14, 16, 0, 4, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 8, 76, 77, 84, 0, 66, 83, 84, 0, 71, 77, 84, 0, 66, 68, 83, 84, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 10, 71, 77, 84, 48, 66, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 49, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/Europe/Luxembourg": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 185, 0, 0, 0, 14, 0, 0, 0, 22, 128, 0, 0, 0, 132, 162, 173, 188, 155, 30, 140, 96, 155, 213, 218, 240, 156, 234, 167, 224, 157, 164, 153, 112, 158, 185, 144, 144, 159, 132, 151, 144, 159, 224, 196, 112, 160, 96, 165, 240, 161, 126, 229, 160, 162, 46, 18, 240, 163, 122, 105, 16, 164, 53, 129, 240, 165, 94, 63, 144, 166, 37, 53, 240, 167, 39, 170, 0, 168, 42, 1, 240, 169, 7, 154, 16, 169, 238, 52, 112, 170, 231, 110, 0, 171, 216, 162, 112, 172, 199, 80, 0, 173, 201, 167, 240, 174, 167, 50, 0, 175, 160, 79, 112, 176, 135, 20, 0, 177, 137, 107, 240, 178, 112, 48, 128, 179, 114, 136, 112, 180, 80, 46, 160, 181, 73, 90, 32, 182, 48, 16, 160, 183, 50, 118, 160, 184, 15, 242, 160, 184, 255, 227, 160, 185, 239, 212, 160, 186, 214, 139, 32, 187, 216, 241, 32, 188, 200, 226, 32, 189, 184, 211, 32, 190, 159, 137, 160, 191, 152, 181, 32, 192, 155, 27, 32, 193, 120, 151, 32, 194, 104, 136, 32, 195, 88, 121, 32, 196, 63, 47, 160, 197, 56, 91, 32, 198, 58, 193, 32, 199, 88, 214, 160, 199, 218, 9, 160, 200, 66, 48, 32, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 111, 176, 16, 209, 114, 22, 16, 210, 78, 64, 144, 211, 145, 64, 16, 212, 75, 35, 144, 13, 42, 253, 112, 13, 164, 99, 144, 14, 139, 26, 16, 15, 132, 69, 144, 16, 116, 54, 144, 17, 100, 39, 144, 18, 84, 24, 144, 19, 77, 68, 16, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 0, 2, 1, 2, 1, 2, 3, 4, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 11, 9, 10, 9, 10, 2, 3, 4, 3, 4, 2, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 0, 0, 5, 196, 0, 0, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 14, 16, 1, 13, 0, 0, 0, 0, 0, 18, 0, 0, 0, 0, 0, 18, 0, 0, 14, 16, 1, 13, 0, 0, 14, 16, 0, 18, 0, 0, 28, 32, 1, 13, 0, 0, 28, 32, 1, 13, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 76, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 87, 69, 83, 84, 0, 87, 69, 84, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Madrid": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 163, 0, 0, 0, 11, 0, 0, 0, 27, 128, 0, 0, 0, 158, 186, 197, 240, 159, 160, 57, 0, 160, 144, 27, 240, 161, 129, 108, 128, 170, 5, 239, 112, 170, 231, 110, 0, 173, 201, 167, 240, 174, 167, 50, 0, 175, 160, 79, 112, 176, 135, 20, 0, 177, 137, 122, 0, 178, 112, 48, 128, 179, 114, 136, 112, 180, 80, 18, 128, 194, 201, 236, 240, 195, 88, 93, 0, 196, 72, 63, 240, 196, 109, 27, 224, 197, 57, 116, 96, 199, 33, 91, 128, 199, 245, 142, 240, 203, 245, 222, 96, 204, 149, 113, 240, 205, 195, 75, 96, 206, 160, 213, 112, 207, 163, 45, 96, 208, 128, 183, 112, 209, 131, 15, 96, 210, 96, 153, 112, 211, 98, 241, 96, 212, 64, 123, 112, 217, 30, 70, 224, 217, 233, 91, 240, 8, 13, 205, 224, 8, 244, 146, 112, 9, 237, 175, 224, 10, 212, 116, 112, 11, 187, 28, 224, 12, 171, 27, 240, 13, 164, 57, 96, 14, 138, 253, 240, 15, 132, 69, 144, 16, 116, 54, 144, 16, 237, 100, 112, 17, 100, 39, 144, 18, 84, 24, 144, 19, 77, 68, 16, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 4, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 2, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 7, 8, 6, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 255, 255, 252, 140, 0, 0, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 9, 0, 0, 28, 32, 1, 13, 0, 0, 0, 0, 0, 9, 0, 0, 28, 32, 1, 18, 0, 0, 14, 16, 0, 23, 0, 0, 28, 32, 1, 18, 0, 0, 14, 16, 0, 23, 0, 0, 28, 32, 1, 18, 0, 0, 14, 16, 0, 23, 76, 77, 84, 0, 87, 69, 83, 84, 0, 87, 69, 84, 0, 87, 69, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Malta": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 169, 0, 0, 0, 7, 0, 0, 0, 13, 128, 0, 0, 0, 155, 56, 248, 112, 155, 213, 204, 224, 156, 197, 203, 240, 157, 183, 0, 96, 158, 137, 254, 112, 159, 160, 28, 224, 160, 96, 165, 240, 161, 126, 173, 96, 162, 92, 55, 112, 163, 76, 26, 96, 200, 108, 53, 240, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 144, 226, 144, 208, 110, 94, 144, 209, 114, 22, 16, 210, 76, 210, 240, 211, 62, 49, 144, 212, 73, 210, 16, 213, 29, 247, 112, 214, 41, 151, 240, 214, 235, 128, 144, 216, 9, 150, 16, 249, 51, 181, 240, 249, 217, 196, 224, 251, 28, 210, 112, 251, 185, 180, 240, 252, 252, 180, 112, 253, 153, 150, 240, 254, 229, 208, 240, 255, 130, 179, 112, 0, 197, 178, 240, 1, 98, 149, 112, 2, 156, 90, 112, 3, 66, 119, 112, 4, 133, 118, 240, 5, 43, 147, 240, 6, 26, 51, 112, 7, 10, 36, 112, 8, 23, 22, 112, 8, 218, 52, 112, 9, 247, 20, 144, 10, 194, 13, 128, 11, 214, 246, 144, 12, 161, 239, 128, 13, 182, 216, 144, 14, 129, 209, 128, 15, 150, 186, 144, 16, 97, 179, 128, 17, 118, 156, 144, 18, 65, 149, 128, 19, 69, 91, 16, 20, 42, 178, 0, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 3, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 4, 3, 4, 3, 1, 2, 4, 3, 4, 3, 4, 3, 4, 2, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 0, 0, 13, 156, 0, 0, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 76, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Mariehamn": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 118, 0, 0, 0, 6, 0, 0, 0, 17, 128, 0, 0, 0, 164, 115, 111, 27, 203, 206, 81, 96, 204, 192, 229, 96, 21, 35, 221, 128, 22, 19, 206, 128, 23, 3, 191, 128, 23, 243, 176, 128, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 3, 2, 3, 2, 3, 2, 3, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 0, 0, 23, 101, 0, 0, 0, 0, 23, 101, 0, 4, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 13, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 13, 76, 77, 84, 0, 72, 77, 84, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 51, 44, 77, 49, 48, 46, 53, 46, 48, 47, 52, 10}, + + "zoneinfo/Europe/Minsk": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 70, 0, 0, 0, 13, 0, 0, 0, 38, 128, 0, 0, 0, 170, 25, 170, 56, 181, 164, 25, 96, 202, 94, 112, 208, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 10, 2, 96, 21, 39, 167, 208, 22, 24, 220, 64, 23, 8, 219, 80, 23, 250, 15, 192, 24, 234, 14, 208, 25, 219, 67, 64, 26, 204, 147, 208, 27, 188, 160, 240, 28, 172, 145, 240, 29, 156, 130, 240, 30, 140, 115, 240, 31, 124, 100, 240, 32, 108, 85, 240, 33, 92, 70, 240, 34, 76, 55, 240, 35, 60, 40, 240, 36, 44, 25, 240, 37, 28, 10, 240, 37, 158, 115, 80, 39, 245, 24, 112, 40, 229, 23, 128, 41, 213, 8, 128, 42, 196, 249, 128, 43, 180, 234, 128, 44, 164, 219, 128, 45, 148, 204, 128, 46, 132, 189, 128, 47, 116, 174, 128, 48, 100, 159, 128, 49, 93, 203, 0, 50, 114, 166, 0, 51, 61, 173, 0, 52, 82, 136, 0, 53, 29, 143, 0, 54, 50, 106, 0, 54, 253, 113, 0, 56, 27, 134, 128, 56, 221, 83, 0, 57, 251, 104, 128, 58, 189, 53, 0, 59, 219, 74, 128, 60, 166, 81, 128, 61, 187, 44, 128, 62, 134, 51, 128, 63, 155, 14, 128, 64, 102, 21, 128, 65, 132, 43, 0, 66, 69, 247, 128, 67, 100, 13, 0, 68, 37, 217, 128, 69, 67, 239, 0, 70, 5, 187, 128, 71, 35, 209, 0, 71, 238, 216, 0, 73, 3, 179, 0, 73, 206, 186, 0, 74, 227, 149, 0, 75, 174, 156, 0, 76, 204, 177, 128, 77, 142, 126, 0, 127, 255, 255, 255, 1, 2, 3, 6, 4, 5, 4, 5, 3, 7, 3, 7, 3, 7, 3, 7, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 3, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 12, 12, 0, 0, 25, 216, 0, 0, 0, 0, 25, 200, 0, 4, 0, 0, 28, 32, 0, 8, 0, 0, 42, 48, 0, 12, 0, 0, 14, 16, 0, 16, 0, 0, 28, 32, 1, 20, 0, 0, 28, 32, 1, 20, 0, 0, 56, 64, 1, 25, 0, 0, 42, 48, 0, 12, 0, 0, 56, 64, 1, 25, 0, 0, 42, 48, 1, 29, 0, 0, 28, 32, 0, 8, 0, 0, 42, 48, 0, 34, 76, 77, 84, 0, 77, 77, 84, 0, 69, 69, 84, 0, 77, 83, 75, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 77, 83, 68, 0, 69, 69, 83, 84, 0, 43, 48, 51, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 51, 62, 45, 51, 10}, + + "zoneinfo/Europe/Monaco": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 185, 0, 0, 0, 11, 0, 0, 0, 31, 128, 0, 0, 0, 145, 96, 80, 79, 155, 71, 120, 240, 155, 215, 44, 112, 156, 188, 145, 112, 157, 192, 72, 240, 158, 137, 254, 112, 159, 160, 42, 240, 160, 96, 165, 240, 161, 128, 12, 240, 162, 46, 18, 240, 163, 122, 76, 240, 164, 53, 129, 240, 165, 94, 35, 112, 166, 37, 53, 240, 167, 39, 155, 240, 168, 88, 38, 112, 169, 7, 125, 240, 169, 238, 52, 112, 170, 231, 95, 240, 171, 215, 80, 240, 172, 199, 65, 240, 173, 201, 167, 240, 174, 167, 35, 240, 175, 160, 79, 112, 176, 135, 5, 240, 177, 137, 107, 240, 178, 112, 34, 112, 179, 114, 136, 112, 180, 80, 4, 112, 181, 73, 47, 240, 182, 47, 230, 112, 183, 50, 76, 112, 184, 15, 200, 112, 184, 255, 185, 112, 185, 239, 170, 112, 186, 214, 96, 240, 187, 216, 198, 240, 188, 200, 183, 240, 189, 184, 168, 240, 190, 159, 95, 112, 191, 152, 138, 240, 192, 154, 240, 240, 193, 120, 108, 240, 194, 104, 93, 240, 195, 88, 78, 240, 196, 63, 5, 112, 197, 56, 48, 240, 198, 58, 150, 240, 199, 88, 172, 112, 199, 218, 9, 160, 202, 23, 91, 240, 202, 226, 84, 224, 203, 173, 105, 240, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 137, 241, 240, 209, 114, 22, 16, 210, 78, 64, 144, 11, 187, 57, 0, 12, 171, 27, 240, 13, 164, 99, 144, 14, 139, 26, 16, 15, 132, 69, 144, 16, 116, 54, 144, 17, 100, 39, 144, 18, 84, 24, 144, 19, 77, 68, 16, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 6, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 8, 7, 8, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 0, 0, 6, 236, 0, 0, 0, 0, 2, 49, 0, 4, 0, 0, 14, 16, 1, 8, 0, 0, 0, 0, 0, 13, 0, 0, 14, 16, 1, 8, 0, 0, 28, 32, 1, 17, 0, 0, 0, 0, 0, 13, 0, 0, 28, 32, 1, 22, 0, 0, 14, 16, 0, 27, 0, 0, 28, 32, 1, 22, 0, 0, 14, 16, 0, 27, 76, 77, 84, 0, 80, 77, 84, 0, 87, 69, 83, 84, 0, 87, 69, 84, 0, 87, 69, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Moscow": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 78, 0, 0, 0, 17, 0, 0, 0, 38, 128, 0, 0, 0, 155, 95, 30, 199, 157, 62, 242, 121, 158, 42, 238, 249, 158, 247, 57, 105, 159, 132, 87, 249, 160, 216, 108, 233, 161, 0, 57, 128, 161, 60, 166, 64, 164, 16, 109, 192, 164, 61, 50, 176, 165, 21, 104, 176, 165, 61, 3, 192, 167, 30, 69, 80, 181, 164, 25, 96, 21, 39, 167, 208, 22, 24, 220, 64, 23, 8, 219, 80, 23, 250, 15, 192, 24, 234, 14, 208, 25, 219, 67, 64, 26, 204, 147, 208, 27, 188, 160, 240, 28, 172, 145, 240, 29, 156, 130, 240, 30, 140, 115, 240, 31, 124, 100, 240, 32, 108, 85, 240, 33, 92, 70, 240, 34, 76, 55, 240, 35, 60, 40, 240, 36, 44, 25, 240, 37, 28, 10, 240, 38, 11, 251, 240, 39, 5, 39, 112, 39, 245, 24, 112, 40, 229, 23, 128, 41, 120, 191, 128, 41, 212, 250, 112, 42, 196, 235, 112, 43, 180, 220, 112, 44, 164, 205, 112, 45, 148, 190, 112, 46, 132, 175, 112, 47, 116, 160, 112, 48, 100, 145, 112, 49, 93, 188, 240, 50, 114, 151, 240, 51, 61, 158, 240, 52, 82, 121, 240, 53, 29, 128, 240, 54, 50, 91, 240, 54, 253, 98, 240, 56, 27, 120, 112, 56, 221, 68, 240, 57, 251, 90, 112, 58, 189, 38, 240, 59, 219, 60, 112, 60, 166, 67, 112, 61, 187, 30, 112, 62, 134, 37, 112, 63, 155, 0, 112, 64, 102, 7, 112, 65, 132, 28, 240, 66, 69, 233, 112, 67, 99, 254, 240, 68, 37, 203, 112, 69, 67, 224, 240, 70, 5, 173, 112, 71, 35, 194, 240, 71, 238, 201, 240, 73, 3, 164, 240, 73, 206, 171, 240, 74, 227, 134, 240, 75, 174, 141, 240, 76, 204, 163, 112, 77, 142, 111, 240, 84, 76, 29, 96, 1, 3, 2, 3, 4, 2, 4, 5, 6, 7, 8, 7, 6, 9, 6, 7, 6, 7, 6, 7, 6, 7, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 12, 13, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 14, 10, 0, 0, 35, 57, 0, 0, 0, 0, 35, 57, 0, 4, 0, 0, 49, 135, 1, 8, 0, 0, 35, 119, 0, 4, 0, 0, 63, 151, 1, 12, 0, 0, 56, 64, 1, 17, 0, 0, 42, 48, 0, 21, 0, 0, 56, 64, 1, 17, 0, 0, 70, 80, 1, 25, 0, 0, 28, 32, 0, 29, 0, 0, 42, 48, 0, 21, 0, 0, 56, 64, 1, 17, 0, 0, 42, 48, 1, 33, 0, 0, 28, 32, 0, 29, 0, 0, 56, 64, 0, 21, 0, 0, 56, 64, 1, 17, 0, 0, 42, 48, 0, 21, 76, 77, 84, 0, 77, 77, 84, 0, 77, 83, 84, 0, 77, 68, 83, 84, 0, 77, 83, 68, 0, 77, 83, 75, 0, 43, 48, 53, 0, 69, 69, 84, 0, 69, 69, 83, 84, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 77, 83, 75, 45, 51, 10}, + + "zoneinfo/Europe/Nicosia": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 128, 0, 0, 0, 5, 0, 0, 0, 13, 128, 0, 0, 0, 165, 119, 30, 184, 9, 237, 175, 224, 10, 221, 146, 208, 11, 250, 100, 224, 12, 190, 198, 80, 13, 164, 57, 96, 14, 138, 225, 208, 15, 132, 27, 96, 16, 117, 79, 208, 17, 99, 253, 96, 18, 83, 224, 80, 19, 77, 25, 224, 20, 51, 194, 80, 21, 35, 193, 96, 22, 19, 164, 80, 23, 3, 163, 96, 23, 243, 134, 80, 24, 227, 133, 96, 25, 211, 104, 80, 26, 195, 103, 96, 27, 188, 132, 208, 28, 172, 131, 224, 29, 156, 102, 208, 30, 140, 101, 224, 31, 124, 72, 208, 32, 108, 71, 224, 33, 92, 42, 208, 34, 76, 41, 224, 35, 60, 12, 208, 36, 44, 11, 224, 37, 27, 238, 208, 38, 11, 237, 224, 39, 5, 11, 80, 39, 245, 10, 96, 40, 228, 237, 80, 41, 212, 236, 96, 42, 196, 207, 80, 43, 180, 206, 96, 44, 164, 177, 80, 45, 148, 176, 96, 46, 132, 147, 80, 47, 116, 146, 96, 48, 100, 117, 80, 49, 93, 174, 224, 50, 77, 145, 208, 51, 61, 144, 224, 52, 45, 115, 208, 53, 29, 114, 224, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 0, 0, 31, 72, 0, 0, 0, 0, 42, 48, 1, 4, 0, 0, 28, 32, 0, 9, 0, 0, 28, 32, 0, 9, 0, 0, 42, 48, 1, 4, 76, 77, 84, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 51, 44, 77, 49, 48, 46, 53, 46, 48, 47, 52, 10}, + + "zoneinfo/Europe/Oslo": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 142, 0, 0, 0, 7, 0, 0, 0, 13, 128, 0, 0, 0, 155, 39, 227, 0, 155, 212, 123, 96, 200, 183, 77, 96, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 130, 37, 16, 209, 114, 22, 16, 210, 98, 7, 16, 235, 175, 32, 144, 236, 168, 76, 16, 237, 152, 61, 16, 238, 136, 46, 16, 239, 120, 31, 16, 240, 104, 16, 16, 241, 88, 1, 16, 242, 71, 242, 16, 243, 55, 227, 16, 244, 39, 212, 16, 245, 23, 197, 16, 246, 16, 240, 144, 247, 47, 6, 16, 247, 240, 210, 144, 18, 206, 151, 240, 19, 77, 68, 16, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 1, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 0, 0, 10, 20, 0, 0, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 76, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Paris": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 184, 0, 0, 0, 13, 0, 0, 0, 31, 128, 0, 0, 0, 145, 96, 80, 139, 155, 71, 120, 240, 155, 215, 44, 112, 156, 188, 145, 112, 157, 192, 72, 240, 158, 137, 254, 112, 159, 160, 42, 240, 160, 96, 165, 240, 161, 128, 12, 240, 162, 46, 18, 240, 163, 122, 76, 240, 164, 53, 129, 240, 165, 94, 35, 112, 166, 37, 53, 240, 167, 39, 155, 240, 168, 88, 38, 112, 169, 7, 125, 240, 169, 238, 52, 112, 170, 231, 95, 240, 171, 215, 80, 240, 172, 199, 65, 240, 173, 201, 167, 240, 174, 167, 35, 240, 175, 160, 79, 112, 176, 135, 5, 240, 177, 137, 107, 240, 178, 112, 34, 112, 179, 114, 136, 112, 180, 80, 4, 112, 181, 73, 47, 240, 182, 47, 230, 112, 183, 50, 76, 112, 184, 15, 200, 112, 184, 255, 185, 112, 185, 239, 170, 112, 186, 214, 96, 240, 187, 216, 198, 240, 188, 200, 183, 240, 189, 184, 168, 240, 190, 159, 95, 112, 191, 152, 138, 240, 192, 154, 240, 240, 193, 120, 108, 240, 194, 104, 93, 240, 195, 88, 78, 240, 196, 63, 5, 112, 197, 56, 48, 240, 198, 58, 150, 240, 199, 88, 172, 112, 199, 218, 9, 160, 200, 108, 39, 224, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 79, 225, 224, 208, 137, 241, 240, 209, 114, 22, 16, 210, 78, 64, 144, 11, 187, 57, 0, 12, 171, 27, 240, 13, 164, 99, 144, 14, 139, 26, 16, 15, 132, 69, 144, 16, 116, 54, 144, 17, 100, 39, 144, 18, 84, 24, 144, 19, 77, 68, 16, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 5, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 4, 8, 6, 7, 6, 7, 9, 4, 9, 10, 8, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 0, 0, 2, 49, 0, 0, 0, 0, 2, 49, 0, 4, 0, 0, 14, 16, 1, 8, 0, 0, 0, 0, 0, 13, 0, 0, 14, 16, 1, 8, 0, 0, 0, 0, 0, 13, 0, 0, 14, 16, 0, 17, 0, 0, 28, 32, 1, 21, 0, 0, 28, 32, 1, 21, 0, 0, 28, 32, 1, 26, 0, 0, 14, 16, 0, 17, 0, 0, 28, 32, 1, 21, 0, 0, 14, 16, 0, 17, 76, 77, 84, 0, 80, 77, 84, 0, 87, 69, 83, 84, 0, 87, 69, 84, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 87, 69, 77, 84, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Podgorica": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 121, 0, 0, 0, 7, 0, 0, 0, 13, 128, 0, 0, 0, 202, 2, 53, 224, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 130, 37, 16, 208, 250, 1, 112, 209, 161, 140, 16, 210, 78, 64, 144, 24, 69, 95, 112, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 4, 2, 3, 2, 3, 2, 1, 3, 2, 1, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 0, 0, 19, 56, 0, 0, 0, 0, 14, 16, 0, 4, 0, 0, 14, 16, 0, 4, 0, 0, 28, 32, 1, 8, 0, 0, 28, 32, 1, 8, 0, 0, 28, 32, 1, 8, 0, 0, 14, 16, 0, 4, 76, 77, 84, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Prague": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 142, 0, 0, 0, 7, 0, 0, 0, 13, 128, 0, 0, 0, 155, 12, 23, 96, 155, 213, 218, 240, 156, 217, 174, 144, 157, 164, 181, 144, 158, 185, 144, 144, 159, 132, 151, 144, 200, 9, 113, 144, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 110, 94, 144, 209, 121, 255, 16, 210, 161, 79, 16, 211, 128, 28, 144, 212, 73, 210, 16, 213, 76, 56, 16, 214, 41, 180, 16, 215, 44, 26, 16, 216, 9, 150, 16, 217, 1, 112, 16, 217, 233, 120, 16, 16, 237, 100, 112, 17, 100, 39, 144, 18, 84, 24, 144, 19, 77, 68, 16, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 0, 0, 13, 136, 0, 0, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 80, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Riga": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 128, 0, 0, 0, 15, 0, 0, 0, 38, 128, 0, 0, 0, 158, 185, 135, 254, 159, 132, 142, 254, 160, 136, 70, 126, 160, 203, 130, 254, 173, 231, 241, 222, 200, 175, 100, 96, 202, 98, 101, 80, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 130, 37, 16, 208, 144, 137, 112, 21, 39, 167, 208, 22, 24, 220, 64, 23, 8, 219, 80, 23, 250, 15, 192, 24, 234, 14, 208, 25, 219, 67, 64, 26, 204, 147, 208, 27, 188, 160, 240, 28, 172, 145, 240, 29, 156, 130, 240, 30, 140, 115, 240, 31, 124, 100, 240, 32, 108, 85, 240, 33, 92, 70, 240, 34, 76, 55, 240, 35, 60, 40, 240, 36, 44, 25, 240, 37, 28, 25, 0, 38, 12, 10, 0, 39, 5, 53, 128, 39, 245, 38, 128, 40, 229, 23, 128, 41, 213, 8, 128, 42, 196, 249, 128, 43, 180, 234, 128, 44, 164, 219, 128, 45, 148, 204, 128, 46, 132, 189, 128, 47, 116, 174, 128, 48, 100, 159, 128, 49, 93, 203, 0, 50, 77, 188, 0, 50, 227, 234, 224, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 186, 239, 224, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 2, 1, 2, 1, 3, 4, 7, 5, 6, 5, 6, 5, 4, 8, 4, 8, 4, 8, 4, 8, 9, 10, 9, 10, 9, 10, 9, 10, 9, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 3, 13, 14, 13, 14, 13, 14, 3, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 0, 0, 22, 162, 0, 0, 0, 0, 22, 162, 0, 4, 0, 0, 36, 178, 1, 8, 0, 0, 28, 32, 0, 12, 0, 0, 42, 48, 0, 16, 0, 0, 14, 16, 0, 20, 0, 0, 28, 32, 1, 24, 0, 0, 28, 32, 1, 24, 0, 0, 56, 64, 1, 29, 0, 0, 42, 48, 0, 16, 0, 0, 56, 64, 1, 29, 0, 0, 42, 48, 1, 33, 0, 0, 28, 32, 0, 12, 0, 0, 42, 48, 1, 33, 0, 0, 28, 32, 0, 12, 76, 77, 84, 0, 82, 77, 84, 0, 76, 83, 84, 0, 69, 69, 84, 0, 77, 83, 75, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 77, 83, 68, 0, 69, 69, 83, 84, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 51, 44, 77, 49, 48, 46, 53, 46, 48, 47, 52, 10}, + + "zoneinfo/Europe/Rome": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 172, 0, 0, 0, 7, 0, 0, 0, 13, 128, 0, 0, 0, 155, 56, 248, 112, 155, 213, 204, 224, 156, 197, 203, 240, 157, 183, 0, 96, 158, 137, 254, 112, 159, 160, 28, 224, 160, 96, 165, 240, 161, 126, 173, 96, 162, 92, 55, 112, 163, 76, 26, 96, 200, 108, 53, 240, 204, 231, 75, 16, 205, 169, 23, 144, 206, 130, 116, 224, 206, 162, 67, 16, 207, 146, 52, 16, 207, 227, 198, 224, 208, 110, 94, 144, 209, 114, 22, 16, 210, 76, 210, 240, 211, 62, 49, 144, 212, 73, 210, 16, 213, 29, 247, 112, 214, 41, 151, 240, 214, 235, 128, 144, 216, 9, 150, 16, 249, 51, 181, 240, 249, 217, 196, 224, 251, 28, 210, 112, 251, 185, 180, 240, 252, 252, 180, 112, 253, 153, 150, 240, 254, 229, 208, 240, 255, 130, 179, 112, 0, 197, 178, 240, 1, 98, 149, 112, 2, 156, 90, 112, 3, 66, 119, 112, 4, 133, 118, 240, 5, 43, 147, 240, 6, 110, 147, 112, 7, 11, 117, 240, 8, 69, 58, 240, 8, 235, 87, 240, 10, 46, 87, 112, 10, 203, 57, 240, 12, 14, 57, 112, 12, 171, 27, 240, 13, 228, 224, 240, 14, 138, 253, 240, 15, 205, 253, 112, 16, 116, 26, 112, 17, 173, 223, 112, 18, 83, 252, 112, 18, 206, 151, 240, 19, 77, 68, 16, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 4, 1, 3, 4, 1, 3, 1, 2, 4, 3, 4, 3, 4, 3, 4, 2, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 0, 0, 11, 180, 0, 0, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 82, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Samara": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 66, 0, 0, 0, 12, 0, 0, 0, 20, 128, 0, 0, 0, 161, 0, 57, 128, 181, 164, 11, 80, 21, 39, 153, 192, 22, 24, 206, 48, 23, 8, 205, 64, 23, 250, 1, 176, 24, 234, 0, 192, 25, 219, 53, 48, 26, 204, 133, 192, 27, 188, 146, 224, 28, 172, 131, 224, 29, 156, 116, 224, 30, 140, 101, 224, 31, 124, 86, 224, 32, 108, 71, 224, 33, 92, 56, 224, 34, 76, 41, 224, 35, 60, 26, 224, 36, 44, 11, 224, 37, 28, 10, 240, 38, 11, 251, 240, 39, 5, 39, 112, 39, 245, 24, 112, 40, 229, 23, 128, 41, 0, 199, 0, 41, 212, 236, 96, 42, 196, 221, 96, 43, 180, 206, 96, 44, 164, 191, 96, 45, 148, 176, 96, 46, 132, 161, 96, 47, 116, 146, 96, 48, 100, 131, 96, 49, 93, 174, 224, 50, 114, 137, 224, 51, 61, 144, 224, 52, 82, 107, 224, 53, 29, 114, 224, 54, 50, 77, 224, 54, 253, 84, 224, 56, 27, 106, 96, 56, 221, 54, 224, 57, 251, 76, 96, 58, 189, 24, 224, 59, 219, 46, 96, 60, 166, 53, 96, 61, 187, 16, 96, 62, 134, 23, 96, 63, 154, 242, 96, 64, 101, 249, 96, 65, 132, 14, 224, 66, 69, 219, 96, 67, 99, 240, 224, 68, 37, 189, 96, 69, 67, 210, 224, 70, 5, 159, 96, 71, 35, 180, 224, 71, 238, 187, 224, 73, 3, 150, 224, 73, 206, 157, 224, 74, 227, 120, 224, 75, 174, 127, 224, 76, 204, 163, 112, 77, 142, 111, 240, 127, 255, 255, 255, 0, 1, 2, 3, 2, 3, 2, 3, 2, 3, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 6, 7, 8, 7, 2, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 4, 4, 0, 0, 46, 244, 0, 0, 0, 0, 42, 48, 0, 4, 0, 0, 56, 64, 0, 8, 0, 0, 70, 80, 1, 12, 0, 0, 56, 64, 0, 8, 0, 0, 70, 80, 1, 12, 0, 0, 56, 64, 1, 8, 0, 0, 42, 48, 0, 4, 0, 0, 42, 48, 1, 4, 0, 0, 28, 32, 0, 16, 0, 0, 56, 64, 1, 8, 0, 0, 56, 64, 0, 8, 76, 77, 84, 0, 43, 48, 51, 0, 43, 48, 52, 0, 43, 48, 53, 0, 43, 48, 50, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 52, 62, 45, 52, 10}, + + "zoneinfo/Europe/San_Marino": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 172, 0, 0, 0, 7, 0, 0, 0, 13, 128, 0, 0, 0, 155, 56, 248, 112, 155, 213, 204, 224, 156, 197, 203, 240, 157, 183, 0, 96, 158, 137, 254, 112, 159, 160, 28, 224, 160, 96, 165, 240, 161, 126, 173, 96, 162, 92, 55, 112, 163, 76, 26, 96, 200, 108, 53, 240, 204, 231, 75, 16, 205, 169, 23, 144, 206, 130, 116, 224, 206, 162, 67, 16, 207, 146, 52, 16, 207, 227, 198, 224, 208, 110, 94, 144, 209, 114, 22, 16, 210, 76, 210, 240, 211, 62, 49, 144, 212, 73, 210, 16, 213, 29, 247, 112, 214, 41, 151, 240, 214, 235, 128, 144, 216, 9, 150, 16, 249, 51, 181, 240, 249, 217, 196, 224, 251, 28, 210, 112, 251, 185, 180, 240, 252, 252, 180, 112, 253, 153, 150, 240, 254, 229, 208, 240, 255, 130, 179, 112, 0, 197, 178, 240, 1, 98, 149, 112, 2, 156, 90, 112, 3, 66, 119, 112, 4, 133, 118, 240, 5, 43, 147, 240, 6, 110, 147, 112, 7, 11, 117, 240, 8, 69, 58, 240, 8, 235, 87, 240, 10, 46, 87, 112, 10, 203, 57, 240, 12, 14, 57, 112, 12, 171, 27, 240, 13, 228, 224, 240, 14, 138, 253, 240, 15, 205, 253, 112, 16, 116, 26, 112, 17, 173, 223, 112, 18, 83, 252, 112, 18, 206, 151, 240, 19, 77, 68, 16, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 4, 1, 3, 4, 1, 3, 1, 2, 4, 3, 4, 3, 4, 3, 4, 2, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 0, 0, 11, 180, 0, 0, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 82, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Sarajevo": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 121, 0, 0, 0, 7, 0, 0, 0, 13, 128, 0, 0, 0, 202, 2, 53, 224, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 130, 37, 16, 208, 250, 1, 112, 209, 161, 140, 16, 210, 78, 64, 144, 24, 69, 95, 112, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 4, 2, 3, 2, 3, 2, 1, 3, 2, 1, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 0, 0, 19, 56, 0, 0, 0, 0, 14, 16, 0, 4, 0, 0, 14, 16, 0, 4, 0, 0, 28, 32, 1, 8, 0, 0, 28, 32, 1, 8, 0, 0, 28, 32, 1, 8, 0, 0, 14, 16, 0, 4, 76, 77, 84, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Saratov": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 66, 0, 0, 0, 9, 0, 0, 0, 16, 128, 0, 0, 0, 161, 0, 57, 128, 181, 164, 11, 80, 21, 39, 153, 192, 22, 24, 206, 48, 23, 8, 205, 64, 23, 250, 1, 176, 24, 234, 0, 192, 25, 219, 53, 48, 26, 204, 133, 192, 27, 188, 146, 224, 28, 172, 131, 224, 29, 156, 116, 224, 30, 140, 101, 224, 31, 124, 86, 224, 32, 108, 71, 224, 33, 92, 56, 224, 34, 76, 41, 224, 35, 60, 40, 240, 36, 44, 25, 240, 37, 28, 10, 240, 38, 11, 251, 240, 39, 5, 39, 112, 39, 245, 24, 112, 41, 212, 236, 96, 42, 196, 235, 112, 43, 180, 220, 112, 44, 164, 205, 112, 45, 148, 190, 112, 46, 132, 175, 112, 47, 116, 160, 112, 48, 100, 145, 112, 49, 93, 188, 240, 50, 114, 151, 240, 51, 61, 158, 240, 52, 82, 121, 240, 53, 29, 128, 240, 54, 50, 91, 240, 54, 253, 98, 240, 56, 27, 120, 112, 56, 221, 68, 240, 57, 251, 90, 112, 58, 189, 38, 240, 59, 219, 60, 112, 60, 166, 67, 112, 61, 187, 30, 112, 62, 134, 37, 112, 63, 155, 0, 112, 64, 102, 7, 112, 65, 132, 28, 240, 66, 69, 233, 112, 67, 99, 254, 240, 68, 37, 203, 112, 69, 67, 224, 240, 70, 5, 173, 112, 71, 35, 194, 240, 71, 238, 201, 240, 73, 3, 164, 240, 73, 206, 171, 240, 74, 227, 134, 240, 75, 174, 141, 240, 76, 204, 163, 112, 77, 142, 111, 240, 84, 76, 29, 96, 88, 67, 78, 112, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 6, 7, 6, 7, 6, 7, 4, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 4, 7, 4, 4, 0, 0, 43, 50, 0, 0, 0, 0, 42, 48, 0, 4, 0, 0, 70, 80, 1, 8, 0, 0, 56, 64, 0, 12, 0, 0, 56, 64, 0, 12, 0, 0, 70, 80, 1, 8, 0, 0, 56, 64, 1, 12, 0, 0, 42, 48, 0, 4, 0, 0, 56, 64, 0, 12, 76, 77, 84, 0, 43, 48, 51, 0, 43, 48, 53, 0, 43, 48, 52, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 52, 62, 45, 52, 10}, + + "zoneinfo/Europe/Simferopol": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 77, 0, 0, 0, 15, 0, 0, 0, 34, 128, 0, 0, 0, 170, 25, 164, 32, 181, 164, 25, 96, 203, 4, 141, 208, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 207, 159, 56, 224, 21, 39, 167, 208, 22, 24, 220, 64, 23, 8, 219, 80, 23, 250, 15, 192, 24, 234, 14, 208, 25, 219, 67, 64, 26, 204, 147, 208, 27, 188, 160, 240, 28, 172, 145, 240, 29, 156, 130, 240, 30, 140, 115, 240, 31, 124, 100, 240, 32, 108, 85, 240, 33, 92, 70, 240, 34, 76, 55, 240, 35, 60, 40, 240, 36, 44, 25, 240, 37, 28, 10, 240, 37, 158, 115, 80, 38, 141, 46, 240, 41, 212, 236, 96, 42, 196, 207, 80, 43, 180, 206, 96, 44, 164, 177, 80, 45, 148, 176, 96, 45, 194, 198, 208, 46, 132, 133, 64, 47, 116, 132, 80, 48, 100, 103, 64, 49, 93, 160, 208, 50, 114, 166, 0, 50, 201, 126, 208, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 94, 128, 84, 76, 29, 96, 1, 2, 3, 6, 4, 5, 4, 5, 3, 7, 3, 7, 3, 7, 3, 7, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 3, 2, 10, 2, 10, 2, 10, 7, 3, 7, 3, 9, 8, 3, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 13, 8, 0, 0, 31, 248, 0, 0, 0, 0, 31, 224, 0, 4, 0, 0, 28, 32, 0, 8, 0, 0, 42, 48, 0, 12, 0, 0, 14, 16, 0, 16, 0, 0, 28, 32, 1, 20, 0, 0, 28, 32, 1, 20, 0, 0, 56, 64, 1, 25, 0, 0, 42, 48, 0, 12, 0, 0, 56, 64, 1, 25, 0, 0, 42, 48, 1, 29, 0, 0, 42, 48, 1, 29, 0, 0, 28, 32, 0, 8, 0, 0, 56, 64, 0, 12, 0, 0, 42, 48, 0, 12, 76, 77, 84, 0, 83, 77, 84, 0, 69, 69, 84, 0, 77, 83, 75, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 77, 83, 68, 0, 69, 69, 83, 84, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 10, 77, 83, 75, 45, 51, 10}, + + "zoneinfo/Europe/Skopje": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 121, 0, 0, 0, 7, 0, 0, 0, 13, 128, 0, 0, 0, 202, 2, 53, 224, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 130, 37, 16, 208, 250, 1, 112, 209, 161, 140, 16, 210, 78, 64, 144, 24, 69, 95, 112, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 4, 2, 3, 2, 3, 2, 1, 3, 2, 1, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 0, 0, 19, 56, 0, 0, 0, 0, 14, 16, 0, 4, 0, 0, 14, 16, 0, 4, 0, 0, 28, 32, 1, 8, 0, 0, 28, 32, 1, 8, 0, 0, 28, 32, 1, 8, 0, 0, 14, 16, 0, 4, 76, 77, 84, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Sofia": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 127, 0, 0, 0, 10, 0, 0, 0, 22, 128, 0, 0, 0, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 130, 37, 16, 208, 250, 1, 112, 209, 114, 36, 32, 17, 99, 239, 80, 18, 85, 63, 224, 19, 77, 11, 208, 20, 53, 33, 224, 21, 44, 237, 208, 22, 19, 192, 112, 23, 12, 207, 208, 23, 243, 176, 128, 24, 227, 161, 128, 25, 211, 146, 128, 26, 195, 131, 128, 27, 188, 175, 0, 28, 172, 160, 0, 29, 156, 145, 0, 30, 140, 130, 0, 31, 124, 115, 0, 32, 108, 100, 0, 33, 92, 85, 0, 34, 76, 70, 0, 35, 60, 55, 0, 36, 44, 40, 0, 37, 28, 25, 0, 38, 12, 10, 0, 39, 5, 53, 128, 39, 127, 180, 224, 39, 245, 10, 96, 40, 228, 237, 80, 41, 212, 236, 96, 42, 196, 207, 80, 43, 180, 206, 96, 44, 164, 177, 80, 45, 148, 176, 96, 46, 132, 147, 80, 47, 116, 146, 96, 48, 100, 117, 80, 49, 93, 174, 224, 50, 114, 123, 208, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 2, 3, 2, 3, 2, 4, 1, 5, 1, 5, 1, 5, 1, 5, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 0, 0, 27, 104, 0, 0, 0, 0, 28, 32, 0, 4, 0, 0, 14, 16, 0, 8, 0, 0, 28, 32, 1, 12, 0, 0, 14, 16, 0, 8, 0, 0, 42, 48, 1, 17, 0, 0, 28, 32, 0, 4, 0, 0, 42, 48, 1, 17, 0, 0, 42, 48, 1, 17, 0, 0, 28, 32, 0, 4, 73, 77, 84, 0, 69, 69, 84, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 69, 69, 83, 84, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 51, 44, 77, 49, 48, 46, 53, 46, 48, 47, 52, 10}, + + "zoneinfo/Europe/Stockholm": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 119, 0, 0, 0, 5, 0, 0, 0, 13, 128, 0, 0, 0, 155, 30, 140, 96, 155, 213, 218, 240, 19, 77, 68, 16, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 2, 1, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 0, 0, 14, 30, 0, 0, 0, 0, 14, 16, 0, 4, 0, 0, 28, 32, 1, 8, 0, 0, 28, 32, 1, 8, 0, 0, 14, 16, 0, 4, 83, 69, 84, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Tallinn": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 124, 0, 0, 0, 16, 0, 0, 0, 34, 128, 0, 0, 0, 158, 89, 45, 204, 158, 185, 144, 144, 159, 132, 151, 144, 161, 0, 43, 112, 164, 115, 111, 76, 200, 176, 181, 224, 202, 198, 151, 80, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 116, 203, 224, 21, 39, 167, 208, 22, 24, 220, 64, 23, 8, 219, 80, 23, 250, 15, 192, 24, 234, 14, 208, 25, 219, 67, 64, 26, 204, 147, 208, 27, 188, 160, 240, 28, 172, 145, 240, 29, 156, 130, 240, 30, 140, 115, 240, 31, 124, 100, 240, 32, 108, 85, 240, 33, 92, 70, 240, 34, 76, 55, 240, 35, 60, 40, 240, 36, 44, 25, 240, 37, 28, 25, 0, 38, 12, 10, 0, 39, 5, 53, 128, 39, 245, 38, 128, 40, 229, 23, 128, 41, 213, 8, 128, 42, 196, 249, 128, 43, 180, 234, 128, 44, 164, 219, 128, 45, 148, 204, 128, 46, 132, 189, 128, 47, 116, 174, 128, 48, 100, 159, 128, 49, 93, 203, 0, 50, 114, 166, 0, 51, 61, 173, 0, 52, 82, 136, 0, 53, 29, 143, 0, 54, 6, 190, 80, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 4, 2, 3, 1, 5, 6, 7, 3, 2, 3, 2, 6, 8, 6, 8, 6, 8, 6, 8, 9, 10, 9, 10, 9, 10, 9, 10, 9, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 15, 13, 14, 5, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 0, 0, 23, 52, 0, 0, 0, 0, 23, 52, 0, 4, 0, 0, 28, 32, 1, 8, 0, 0, 14, 16, 0, 13, 0, 0, 14, 16, 0, 13, 0, 0, 28, 32, 0, 17, 0, 0, 42, 48, 0, 21, 0, 0, 28, 32, 1, 8, 0, 0, 56, 64, 1, 25, 0, 0, 42, 48, 0, 21, 0, 0, 56, 64, 1, 25, 0, 0, 42, 48, 1, 29, 0, 0, 28, 32, 0, 17, 0, 0, 28, 32, 0, 17, 0, 0, 42, 48, 1, 29, 0, 0, 42, 48, 1, 29, 76, 77, 84, 0, 84, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 69, 69, 84, 0, 77, 83, 75, 0, 77, 83, 68, 0, 69, 69, 83, 84, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 51, 44, 77, 49, 48, 46, 53, 46, 48, 47, 52, 10}, + + "zoneinfo/Europe/Tirane": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 134, 0, 0, 0, 5, 0, 0, 0, 13, 128, 0, 0, 0, 150, 170, 52, 104, 200, 109, 135, 112, 204, 231, 75, 16, 205, 169, 23, 144, 205, 184, 233, 144, 8, 40, 57, 240, 8, 239, 62, 96, 10, 5, 120, 240, 10, 208, 113, 224, 11, 233, 79, 112, 12, 180, 72, 96, 13, 210, 107, 240, 14, 148, 42, 96, 15, 176, 252, 112, 16, 116, 12, 96, 17, 144, 222, 112, 18, 83, 238, 96, 19, 112, 192, 112, 20, 59, 185, 96, 21, 72, 185, 112, 22, 19, 178, 96, 23, 49, 213, 240, 23, 252, 206, 224, 25, 0, 148, 112, 25, 219, 95, 96, 26, 204, 175, 240, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 0, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 0, 0, 18, 152, 0, 0, 0, 0, 14, 16, 0, 4, 0, 0, 28, 32, 1, 8, 0, 0, 14, 16, 0, 4, 0, 0, 28, 32, 1, 8, 76, 77, 84, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Tiraspol": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 142, 0, 0, 0, 16, 0, 0, 0, 38, 128, 0, 0, 0, 158, 107, 159, 12, 183, 176, 210, 8, 185, 62, 243, 96, 185, 239, 156, 96, 186, 223, 141, 96, 187, 207, 126, 96, 188, 200, 169, 224, 189, 184, 154, 224, 190, 168, 139, 224, 191, 152, 124, 224, 192, 136, 109, 224, 193, 120, 94, 224, 194, 104, 79, 224, 195, 88, 64, 224, 196, 72, 49, 224, 197, 56, 34, 224, 198, 40, 19, 224, 199, 24, 4, 224, 200, 188, 147, 96, 202, 119, 125, 80, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 78, 144, 96, 21, 39, 167, 208, 22, 24, 220, 64, 23, 8, 219, 80, 23, 250, 15, 192, 24, 234, 14, 208, 25, 219, 67, 64, 26, 204, 147, 208, 27, 188, 160, 240, 28, 172, 145, 240, 29, 156, 130, 240, 30, 140, 115, 240, 31, 124, 100, 240, 32, 108, 85, 240, 33, 92, 70, 240, 34, 76, 55, 240, 35, 60, 40, 240, 36, 44, 25, 240, 37, 28, 10, 240, 38, 11, 251, 240, 38, 67, 76, 224, 39, 5, 53, 128, 39, 245, 38, 128, 40, 229, 23, 128, 41, 96, 232, 96, 41, 212, 236, 96, 42, 196, 207, 80, 43, 180, 206, 96, 44, 164, 177, 80, 45, 148, 176, 96, 46, 132, 147, 80, 47, 116, 146, 96, 48, 100, 117, 80, 49, 93, 174, 224, 50, 114, 123, 208, 51, 61, 173, 0, 52, 82, 136, 0, 53, 29, 143, 0, 54, 50, 106, 0, 54, 253, 113, 0, 56, 27, 134, 128, 56, 221, 83, 0, 57, 251, 104, 128, 58, 189, 53, 0, 59, 219, 74, 128, 60, 166, 81, 128, 61, 187, 44, 128, 62, 134, 51, 128, 63, 155, 14, 128, 64, 102, 21, 128, 65, 132, 43, 0, 66, 69, 247, 128, 67, 100, 13, 0, 68, 37, 217, 128, 69, 67, 239, 0, 70, 5, 187, 128, 71, 35, 209, 0, 71, 238, 216, 0, 73, 3, 179, 0, 73, 206, 186, 0, 74, 227, 149, 0, 75, 174, 156, 0, 76, 204, 177, 128, 77, 142, 126, 0, 78, 172, 147, 128, 79, 110, 96, 0, 80, 140, 117, 128, 81, 87, 124, 128, 82, 108, 87, 128, 83, 55, 94, 128, 84, 76, 57, 128, 85, 23, 64, 128, 86, 44, 27, 128, 86, 247, 34, 128, 88, 21, 56, 0, 88, 215, 4, 128, 89, 245, 26, 0, 90, 182, 230, 128, 91, 212, 252, 0, 92, 160, 3, 0, 93, 180, 222, 0, 94, 127, 229, 0, 95, 148, 192, 0, 96, 95, 199, 0, 97, 125, 220, 128, 98, 63, 169, 0, 99, 93, 190, 128, 100, 31, 139, 0, 101, 61, 160, 128, 102, 8, 167, 128, 103, 29, 130, 128, 103, 232, 137, 128, 104, 253, 100, 128, 105, 200, 107, 128, 106, 221, 70, 128, 107, 168, 77, 128, 108, 198, 99, 0, 109, 136, 47, 128, 110, 166, 69, 0, 111, 104, 17, 128, 112, 134, 39, 0, 113, 81, 46, 0, 114, 102, 9, 0, 115, 49, 16, 0, 116, 69, 235, 0, 117, 16, 242, 0, 118, 47, 7, 128, 118, 240, 212, 0, 120, 14, 233, 128, 120, 208, 182, 0, 121, 238, 203, 128, 122, 176, 152, 0, 123, 206, 173, 128, 124, 153, 180, 128, 125, 174, 143, 128, 126, 121, 150, 128, 127, 142, 113, 128, 1, 2, 5, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 6, 9, 7, 8, 7, 8, 11, 10, 11, 10, 11, 10, 11, 10, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 6, 4, 3, 4, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 0, 0, 27, 8, 0, 0, 0, 0, 26, 244, 0, 4, 0, 0, 24, 120, 0, 8, 0, 0, 42, 48, 1, 12, 0, 0, 28, 32, 0, 17, 0, 0, 28, 32, 0, 17, 0, 0, 42, 48, 1, 12, 0, 0, 14, 16, 0, 21, 0, 0, 28, 32, 1, 25, 0, 0, 28, 32, 1, 25, 0, 0, 56, 64, 1, 30, 0, 0, 42, 48, 0, 34, 0, 0, 42, 48, 0, 34, 0, 0, 56, 64, 1, 30, 0, 0, 42, 48, 1, 12, 0, 0, 28, 32, 0, 17, 76, 77, 84, 0, 67, 77, 84, 0, 66, 77, 84, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 77, 83, 68, 0, 77, 83, 75, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Ulyanovsk": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 68, 0, 0, 0, 12, 0, 0, 0, 20, 128, 0, 0, 0, 161, 0, 57, 128, 181, 164, 11, 80, 21, 39, 153, 192, 22, 24, 206, 48, 23, 8, 205, 64, 23, 250, 1, 176, 24, 234, 0, 192, 25, 219, 53, 48, 26, 204, 133, 192, 27, 188, 146, 224, 28, 172, 131, 224, 29, 156, 116, 224, 30, 140, 101, 224, 31, 124, 86, 224, 32, 108, 71, 224, 33, 92, 56, 224, 34, 76, 41, 224, 35, 60, 26, 224, 36, 44, 11, 224, 37, 28, 10, 240, 38, 11, 251, 240, 39, 5, 39, 112, 39, 245, 24, 112, 40, 229, 23, 128, 41, 120, 191, 128, 41, 212, 250, 112, 42, 196, 235, 112, 43, 180, 220, 112, 44, 164, 205, 112, 45, 148, 190, 112, 46, 132, 175, 112, 47, 116, 160, 112, 48, 100, 145, 112, 49, 93, 188, 240, 50, 114, 151, 240, 51, 61, 158, 240, 52, 82, 121, 240, 53, 29, 128, 240, 54, 50, 91, 240, 54, 253, 98, 240, 56, 27, 120, 112, 56, 221, 68, 240, 57, 251, 90, 112, 58, 189, 38, 240, 59, 219, 60, 112, 60, 166, 67, 112, 61, 187, 30, 112, 62, 134, 37, 112, 63, 155, 0, 112, 64, 102, 7, 112, 65, 132, 28, 240, 66, 69, 233, 112, 67, 99, 254, 240, 68, 37, 203, 112, 69, 67, 224, 240, 70, 5, 173, 112, 71, 35, 194, 240, 71, 238, 201, 240, 73, 3, 164, 240, 73, 206, 171, 240, 74, 227, 134, 240, 75, 174, 141, 240, 76, 204, 163, 112, 77, 142, 111, 240, 84, 76, 29, 96, 86, 247, 20, 112, 127, 255, 255, 255, 0, 1, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 6, 7, 6, 7, 8, 9, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 4, 7, 4, 4, 0, 0, 45, 96, 0, 0, 0, 0, 42, 48, 0, 4, 0, 0, 70, 80, 1, 8, 0, 0, 56, 64, 0, 12, 0, 0, 56, 64, 0, 12, 0, 0, 70, 80, 1, 8, 0, 0, 56, 64, 1, 12, 0, 0, 42, 48, 0, 4, 0, 0, 42, 48, 1, 4, 0, 0, 28, 32, 0, 16, 0, 0, 56, 64, 1, 12, 0, 0, 56, 64, 0, 12, 76, 77, 84, 0, 43, 48, 51, 0, 43, 48, 53, 0, 43, 48, 52, 0, 43, 48, 50, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 52, 62, 45, 52, 10}, + + "zoneinfo/Europe/Uzhgorod": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 122, 0, 0, 0, 13, 0, 0, 0, 30, 128, 0, 0, 0, 200, 9, 113, 144, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 128, 169, 96, 208, 161, 158, 224, 209, 229, 253, 240, 21, 39, 167, 208, 22, 24, 220, 64, 23, 8, 219, 80, 23, 250, 15, 192, 24, 234, 14, 208, 25, 219, 67, 64, 26, 204, 147, 208, 27, 188, 160, 240, 28, 172, 145, 240, 29, 156, 130, 240, 30, 140, 115, 240, 31, 124, 100, 240, 32, 108, 85, 240, 33, 92, 70, 240, 34, 76, 55, 240, 35, 60, 40, 240, 36, 44, 25, 240, 37, 28, 10, 240, 37, 158, 115, 80, 38, 141, 46, 240, 39, 245, 66, 160, 41, 212, 236, 96, 42, 196, 207, 80, 43, 180, 206, 96, 44, 164, 177, 80, 45, 148, 176, 96, 46, 132, 147, 80, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 2, 3, 2, 3, 2, 4, 1, 6, 5, 6, 5, 6, 5, 6, 5, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 6, 1, 9, 10, 9, 10, 9, 10, 9, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 0, 0, 20, 232, 0, 0, 0, 0, 14, 16, 0, 4, 0, 0, 28, 32, 1, 8, 0, 0, 14, 16, 0, 4, 0, 0, 28, 32, 1, 8, 0, 0, 56, 64, 1, 13, 0, 0, 42, 48, 0, 17, 0, 0, 42, 48, 0, 17, 0, 0, 56, 64, 1, 13, 0, 0, 28, 32, 0, 21, 0, 0, 42, 48, 1, 25, 0, 0, 42, 48, 1, 25, 0, 0, 28, 32, 0, 21, 76, 77, 84, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 77, 83, 68, 0, 77, 83, 75, 0, 69, 69, 84, 0, 69, 69, 83, 84, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 51, 44, 77, 49, 48, 46, 53, 46, 48, 47, 52, 10}, + + "zoneinfo/Europe/Vaduz": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 119, 0, 0, 0, 5, 0, 0, 0, 13, 128, 0, 0, 0, 202, 23, 106, 0, 202, 226, 113, 0, 203, 247, 76, 0, 204, 194, 83, 0, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 0, 0, 6, 250, 0, 0, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 66, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Vatican": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 172, 0, 0, 0, 7, 0, 0, 0, 13, 128, 0, 0, 0, 155, 56, 248, 112, 155, 213, 204, 224, 156, 197, 203, 240, 157, 183, 0, 96, 158, 137, 254, 112, 159, 160, 28, 224, 160, 96, 165, 240, 161, 126, 173, 96, 162, 92, 55, 112, 163, 76, 26, 96, 200, 108, 53, 240, 204, 231, 75, 16, 205, 169, 23, 144, 206, 130, 116, 224, 206, 162, 67, 16, 207, 146, 52, 16, 207, 227, 198, 224, 208, 110, 94, 144, 209, 114, 22, 16, 210, 76, 210, 240, 211, 62, 49, 144, 212, 73, 210, 16, 213, 29, 247, 112, 214, 41, 151, 240, 214, 235, 128, 144, 216, 9, 150, 16, 249, 51, 181, 240, 249, 217, 196, 224, 251, 28, 210, 112, 251, 185, 180, 240, 252, 252, 180, 112, 253, 153, 150, 240, 254, 229, 208, 240, 255, 130, 179, 112, 0, 197, 178, 240, 1, 98, 149, 112, 2, 156, 90, 112, 3, 66, 119, 112, 4, 133, 118, 240, 5, 43, 147, 240, 6, 110, 147, 112, 7, 11, 117, 240, 8, 69, 58, 240, 8, 235, 87, 240, 10, 46, 87, 112, 10, 203, 57, 240, 12, 14, 57, 112, 12, 171, 27, 240, 13, 228, 224, 240, 14, 138, 253, 240, 15, 205, 253, 112, 16, 116, 26, 112, 17, 173, 223, 112, 18, 83, 252, 112, 18, 206, 151, 240, 19, 77, 68, 16, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 4, 1, 3, 4, 1, 3, 1, 2, 4, 3, 4, 3, 4, 3, 4, 2, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 0, 0, 11, 180, 0, 0, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 82, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Vienna": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 141, 0, 0, 0, 7, 0, 0, 0, 13, 128, 0, 0, 0, 155, 12, 23, 96, 155, 213, 218, 240, 156, 217, 174, 144, 157, 164, 181, 144, 158, 185, 144, 144, 159, 132, 151, 144, 161, 242, 191, 112, 162, 112, 26, 16, 163, 68, 91, 144, 200, 9, 113, 144, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 130, 37, 16, 209, 114, 22, 16, 209, 127, 69, 16, 210, 219, 52, 240, 211, 99, 27, 144, 212, 73, 210, 16, 213, 57, 195, 16, 214, 41, 180, 16, 215, 44, 26, 16, 216, 9, 150, 16, 19, 77, 39, 240, 20, 51, 208, 96, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 3, 4, 3, 4, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 2, 3, 4, 3, 4, 3, 4, 1, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 0, 0, 15, 81, 0, 0, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 76, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Vilnius": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 0, 0, 0, 18, 0, 0, 0, 0, 0, 0, 0, 122, 0, 0, 0, 18, 0, 0, 0, 38, 128, 0, 0, 0, 156, 79, 31, 80, 161, 133, 74, 152, 162, 241, 48, 240, 163, 102, 120, 96, 200, 172, 207, 112, 202, 89, 42, 208, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 48, 61, 224, 21, 39, 167, 208, 22, 24, 220, 64, 23, 8, 219, 80, 23, 250, 15, 192, 24, 234, 14, 208, 25, 219, 67, 64, 26, 204, 147, 208, 27, 188, 160, 240, 28, 172, 145, 240, 29, 156, 130, 240, 30, 140, 115, 240, 31, 124, 100, 240, 32, 108, 85, 240, 33, 92, 70, 240, 34, 76, 55, 240, 35, 60, 40, 240, 36, 44, 25, 240, 37, 28, 25, 0, 38, 12, 10, 0, 39, 5, 53, 128, 39, 245, 38, 128, 40, 229, 23, 128, 41, 213, 8, 128, 42, 196, 249, 128, 43, 180, 234, 128, 44, 164, 219, 128, 45, 148, 204, 128, 46, 132, 189, 128, 47, 116, 174, 128, 48, 100, 159, 128, 49, 93, 203, 0, 50, 114, 166, 0, 51, 61, 173, 0, 52, 82, 136, 0, 52, 170, 192, 96, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 62, 18, 19, 96, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 2, 3, 4, 3, 5, 8, 6, 7, 6, 7, 5, 9, 5, 9, 5, 9, 5, 9, 10, 11, 10, 11, 10, 11, 10, 11, 10, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 12, 13, 4, 14, 15, 14, 16, 4, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 17, 16, 0, 0, 23, 188, 0, 0, 0, 0, 19, 176, 0, 4, 0, 0, 22, 104, 0, 8, 0, 0, 14, 16, 0, 12, 0, 0, 28, 32, 0, 16, 0, 0, 42, 48, 0, 20, 0, 0, 14, 16, 0, 12, 0, 0, 28, 32, 1, 24, 0, 0, 28, 32, 1, 24, 0, 0, 56, 64, 1, 29, 0, 0, 42, 48, 0, 20, 0, 0, 56, 64, 1, 29, 0, 0, 42, 48, 1, 33, 0, 0, 28, 32, 0, 16, 0, 0, 28, 32, 1, 24, 0, 0, 14, 16, 0, 12, 0, 0, 28, 32, 0, 16, 0, 0, 42, 48, 1, 33, 76, 77, 84, 0, 87, 77, 84, 0, 75, 77, 84, 0, 67, 69, 84, 0, 69, 69, 84, 0, 77, 83, 75, 0, 67, 69, 83, 84, 0, 77, 83, 68, 0, 69, 69, 83, 84, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 51, 44, 77, 49, 48, 46, 53, 46, 48, 47, 52, 10}, + + "zoneinfo/Europe/Volgograd": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 65, 0, 0, 0, 8, 0, 0, 0, 16, 128, 0, 0, 0, 161, 245, 70, 220, 181, 164, 11, 80, 21, 39, 153, 192, 22, 24, 206, 48, 23, 8, 205, 64, 23, 250, 1, 176, 24, 234, 0, 192, 25, 219, 53, 48, 26, 204, 133, 192, 27, 188, 146, 224, 28, 172, 131, 224, 29, 156, 116, 224, 30, 140, 101, 224, 31, 124, 86, 224, 32, 108, 71, 224, 33, 92, 56, 224, 34, 76, 41, 224, 35, 60, 40, 240, 36, 44, 25, 240, 37, 28, 10, 240, 38, 11, 251, 240, 39, 5, 39, 112, 39, 245, 24, 112, 41, 212, 236, 96, 42, 196, 235, 112, 43, 180, 220, 112, 44, 164, 205, 112, 45, 148, 190, 112, 46, 132, 175, 112, 47, 116, 160, 112, 48, 100, 145, 112, 49, 93, 188, 240, 50, 114, 151, 240, 51, 61, 158, 240, 52, 82, 121, 240, 53, 29, 128, 240, 54, 50, 91, 240, 54, 253, 98, 240, 56, 27, 120, 112, 56, 221, 68, 240, 57, 251, 90, 112, 58, 189, 38, 240, 59, 219, 60, 112, 60, 166, 67, 112, 61, 187, 30, 112, 62, 134, 37, 112, 63, 155, 0, 112, 64, 102, 7, 112, 65, 132, 28, 240, 66, 69, 233, 112, 67, 99, 254, 240, 68, 37, 203, 112, 69, 67, 224, 240, 70, 5, 173, 112, 71, 35, 194, 240, 71, 238, 201, 240, 73, 3, 164, 240, 73, 206, 171, 240, 74, 227, 134, 240, 75, 174, 141, 240, 76, 204, 163, 112, 77, 142, 111, 240, 84, 76, 29, 96, 127, 255, 255, 255, 0, 1, 2, 3, 2, 3, 2, 3, 2, 3, 4, 5, 4, 5, 4, 5, 4, 6, 7, 6, 7, 6, 7, 4, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 4, 7, 7, 0, 0, 41, 164, 0, 0, 0, 0, 42, 48, 0, 4, 0, 0, 56, 64, 0, 8, 0, 0, 70, 80, 1, 12, 0, 0, 56, 64, 0, 8, 0, 0, 70, 80, 1, 12, 0, 0, 56, 64, 1, 8, 0, 0, 42, 48, 0, 4, 76, 77, 84, 0, 43, 48, 51, 0, 43, 48, 52, 0, 43, 48, 53, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 51, 62, 45, 51, 10}, + + "zoneinfo/Europe/Warsaw": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 168, 0, 0, 0, 11, 0, 0, 0, 26, 128, 0, 0, 0, 153, 168, 42, 208, 155, 12, 23, 96, 155, 213, 218, 240, 156, 217, 174, 144, 157, 164, 181, 144, 158, 185, 144, 144, 159, 132, 151, 144, 160, 154, 182, 0, 161, 101, 189, 0, 166, 125, 124, 96, 200, 118, 222, 16, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 128, 169, 96, 208, 132, 186, 0, 209, 149, 146, 112, 210, 138, 187, 96, 211, 98, 255, 112, 212, 75, 35, 144, 213, 94, 173, 16, 214, 41, 180, 16, 215, 44, 26, 16, 216, 9, 150, 16, 217, 2, 193, 144, 217, 233, 120, 16, 232, 84, 210, 0, 232, 241, 180, 128, 233, 225, 165, 128, 234, 209, 150, 128, 236, 20, 150, 0, 236, 186, 179, 0, 237, 170, 164, 0, 238, 154, 149, 0, 239, 212, 90, 0, 240, 122, 119, 0, 241, 180, 60, 0, 242, 90, 89, 0, 243, 148, 30, 0, 244, 58, 59, 0, 245, 125, 58, 128, 246, 26, 29, 0, 13, 42, 253, 112, 13, 164, 85, 128, 14, 139, 12, 0, 15, 132, 55, 128, 16, 116, 40, 128, 17, 100, 25, 128, 18, 84, 10, 128, 19, 77, 54, 0, 20, 51, 236, 128, 21, 35, 221, 128, 22, 19, 206, 128, 23, 3, 191, 128, 23, 243, 176, 128, 24, 227, 161, 128, 25, 211, 146, 128, 26, 195, 131, 128, 27, 188, 175, 0, 28, 172, 160, 0, 29, 156, 145, 0, 30, 140, 130, 0, 31, 124, 115, 0, 32, 108, 100, 0, 33, 92, 85, 0, 33, 218, 214, 240, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 3, 2, 3, 4, 5, 4, 8, 6, 7, 3, 2, 5, 4, 5, 4, 2, 3, 2, 3, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 3, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 3, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 0, 0, 19, 176, 0, 0, 0, 0, 19, 176, 0, 4, 0, 0, 28, 32, 1, 8, 0, 0, 14, 16, 0, 13, 0, 0, 28, 32, 1, 8, 0, 0, 14, 16, 0, 13, 0, 0, 42, 48, 1, 17, 0, 0, 28, 32, 0, 22, 0, 0, 28, 32, 0, 22, 0, 0, 28, 32, 1, 8, 0, 0, 14, 16, 0, 13, 76, 77, 84, 0, 87, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Zagreb": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 121, 0, 0, 0, 7, 0, 0, 0, 13, 128, 0, 0, 0, 202, 2, 53, 224, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 130, 37, 16, 208, 250, 1, 112, 209, 161, 140, 16, 210, 78, 64, 144, 24, 69, 95, 112, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 4, 2, 3, 2, 3, 2, 1, 3, 2, 1, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 0, 0, 19, 56, 0, 0, 0, 0, 14, 16, 0, 4, 0, 0, 14, 16, 0, 4, 0, 0, 28, 32, 1, 8, 0, 0, 28, 32, 1, 8, 0, 0, 28, 32, 1, 8, 0, 0, 14, 16, 0, 4, 76, 77, 84, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Europe/Zaporozhye": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 122, 0, 0, 0, 13, 0, 0, 0, 36, 128, 0, 0, 0, 170, 25, 163, 48, 181, 164, 25, 96, 202, 170, 231, 208, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 206, 189, 214, 112, 21, 39, 167, 208, 22, 24, 220, 64, 23, 8, 219, 80, 23, 250, 15, 192, 24, 234, 14, 208, 25, 219, 67, 64, 26, 204, 147, 208, 27, 188, 160, 240, 28, 172, 145, 240, 29, 156, 130, 240, 30, 140, 115, 240, 31, 124, 100, 240, 32, 108, 85, 240, 33, 92, 70, 240, 34, 76, 55, 240, 35, 60, 40, 240, 36, 44, 25, 240, 37, 28, 10, 240, 38, 11, 251, 240, 39, 5, 39, 112, 39, 245, 24, 112, 40, 228, 237, 80, 41, 212, 236, 96, 42, 196, 207, 80, 43, 180, 206, 96, 44, 164, 177, 80, 45, 148, 176, 96, 46, 132, 147, 80, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 2, 3, 6, 4, 5, 4, 3, 7, 3, 7, 3, 7, 3, 7, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 10, 2, 10, 2, 10, 2, 10, 2, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 11, 12, 0, 0, 32, 248, 0, 0, 0, 0, 32, 208, 0, 4, 0, 0, 28, 32, 0, 10, 0, 0, 42, 48, 0, 14, 0, 0, 14, 16, 0, 18, 0, 0, 28, 32, 1, 22, 0, 0, 28, 32, 1, 22, 0, 0, 56, 64, 1, 27, 0, 0, 42, 48, 0, 14, 0, 0, 56, 64, 1, 27, 0, 0, 42, 48, 1, 31, 0, 0, 42, 48, 1, 31, 0, 0, 28, 32, 0, 10, 76, 77, 84, 0, 43, 48, 50, 50, 48, 0, 69, 69, 84, 0, 77, 83, 75, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 77, 83, 68, 0, 69, 69, 83, 84, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 10, 69, 69, 84, 45, 50, 69, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 51, 44, 77, 49, 48, 46, 53, 46, 48, 47, 52, 10}, + + "zoneinfo/Europe/Zurich": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 119, 0, 0, 0, 5, 0, 0, 0, 13, 128, 0, 0, 0, 202, 23, 106, 0, 202, 226, 113, 0, 203, 247, 76, 0, 204, 194, 83, 0, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 0, 0, 6, 250, 0, 0, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 66, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Factory": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 4, 128, 0, 0, 0, 127, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 45, 48, 48, 0, 0, 0, 10, 60, 45, 48, 48, 62, 48, 10}, + + "zoneinfo/GB": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 243, 0, 0, 0, 8, 0, 0, 0, 17, 128, 0, 0, 0, 155, 38, 173, 160, 155, 214, 5, 32, 156, 207, 48, 160, 157, 164, 195, 160, 158, 156, 157, 160, 159, 151, 26, 160, 160, 133, 186, 32, 161, 118, 252, 160, 162, 101, 156, 32, 163, 123, 200, 160, 164, 78, 184, 160, 165, 63, 251, 32, 166, 37, 96, 32, 167, 39, 198, 32, 168, 42, 44, 32, 168, 235, 248, 160, 170, 0, 211, 160, 170, 213, 21, 32, 171, 233, 240, 32, 172, 199, 108, 32, 173, 201, 210, 32, 174, 167, 78, 32, 175, 160, 121, 160, 176, 135, 48, 32, 177, 146, 208, 160, 178, 112, 76, 160, 179, 114, 178, 160, 180, 80, 46, 160, 181, 73, 90, 32, 182, 48, 16, 160, 183, 50, 118, 160, 184, 15, 242, 160, 185, 18, 88, 160, 185, 239, 212, 160, 186, 233, 0, 32, 187, 216, 241, 32, 188, 219, 87, 32, 189, 184, 211, 32, 190, 177, 254, 160, 191, 152, 181, 32, 192, 155, 27, 32, 193, 120, 151, 32, 194, 122, 253, 32, 195, 88, 121, 32, 196, 81, 164, 160, 197, 56, 91, 32, 198, 58, 193, 32, 199, 88, 214, 160, 199, 218, 9, 160, 202, 22, 38, 144, 202, 151, 89, 144, 203, 209, 30, 144, 204, 119, 59, 144, 205, 177, 0, 144, 206, 96, 88, 16, 207, 144, 226, 144, 208, 110, 94, 144, 209, 114, 22, 16, 209, 251, 50, 16, 210, 105, 254, 32, 211, 99, 41, 160, 212, 73, 224, 32, 213, 30, 33, 160, 213, 66, 253, 144, 213, 223, 224, 16, 214, 78, 172, 32, 214, 254, 3, 160, 216, 46, 142, 32, 216, 249, 149, 32, 218, 14, 112, 32, 218, 235, 236, 32, 219, 229, 23, 160, 220, 203, 206, 32, 221, 196, 249, 160, 222, 180, 234, 160, 223, 174, 22, 32, 224, 148, 204, 160, 225, 114, 72, 160, 226, 107, 116, 32, 227, 82, 42, 160, 228, 84, 144, 160, 229, 50, 12, 160, 230, 61, 173, 32, 231, 27, 41, 32, 232, 20, 84, 160, 232, 251, 11, 32, 233, 253, 113, 32, 234, 218, 237, 32, 235, 221, 83, 32, 236, 186, 207, 32, 237, 179, 250, 160, 238, 154, 177, 32, 239, 129, 103, 160, 240, 159, 125, 32, 241, 97, 73, 160, 242, 127, 95, 32, 243, 74, 102, 32, 244, 95, 65, 32, 245, 33, 13, 160, 246, 63, 35, 32, 247, 0, 239, 160, 248, 31, 5, 32, 248, 224, 209, 160, 249, 254, 231, 32, 250, 192, 179, 160, 251, 232, 3, 160, 252, 123, 171, 160, 253, 199, 187, 112, 3, 112, 198, 32, 4, 41, 88, 32, 5, 80, 168, 32, 6, 9, 58, 32, 7, 48, 138, 32, 7, 233, 28, 32, 9, 16, 108, 32, 9, 200, 254, 32, 10, 240, 78, 32, 11, 178, 26, 160, 12, 208, 48, 32, 13, 145, 252, 160, 14, 176, 18, 32, 15, 113, 222, 160, 16, 153, 46, 160, 17, 81, 192, 160, 18, 121, 16, 160, 19, 49, 162, 160, 20, 88, 242, 160, 21, 35, 235, 144, 22, 56, 198, 144, 23, 3, 205, 144, 24, 24, 168, 144, 24, 227, 175, 144, 25, 248, 138, 144, 26, 195, 145, 144, 27, 225, 167, 16, 28, 172, 174, 16, 29, 193, 137, 16, 30, 140, 144, 16, 31, 161, 107, 16, 32, 108, 114, 16, 33, 129, 77, 16, 34, 76, 84, 16, 35, 97, 47, 16, 36, 44, 54, 16, 37, 74, 75, 144, 38, 12, 24, 16, 39, 42, 45, 144, 39, 245, 52, 144, 41, 10, 15, 144, 41, 213, 22, 144, 42, 233, 241, 144, 43, 180, 248, 144, 44, 201, 211, 144, 45, 148, 218, 144, 46, 169, 181, 144, 47, 116, 188, 144, 48, 137, 151, 144, 48, 231, 36, 0, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 2, 1, 2, 1, 3, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 4, 6, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 7, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 255, 255, 255, 181, 0, 0, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 8, 0, 0, 28, 32, 1, 12, 0, 0, 14, 16, 0, 4, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 8, 76, 77, 84, 0, 66, 83, 84, 0, 71, 77, 84, 0, 66, 68, 83, 84, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 10, 71, 77, 84, 48, 66, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 49, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/GB-Eire": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 243, 0, 0, 0, 8, 0, 0, 0, 17, 128, 0, 0, 0, 155, 38, 173, 160, 155, 214, 5, 32, 156, 207, 48, 160, 157, 164, 195, 160, 158, 156, 157, 160, 159, 151, 26, 160, 160, 133, 186, 32, 161, 118, 252, 160, 162, 101, 156, 32, 163, 123, 200, 160, 164, 78, 184, 160, 165, 63, 251, 32, 166, 37, 96, 32, 167, 39, 198, 32, 168, 42, 44, 32, 168, 235, 248, 160, 170, 0, 211, 160, 170, 213, 21, 32, 171, 233, 240, 32, 172, 199, 108, 32, 173, 201, 210, 32, 174, 167, 78, 32, 175, 160, 121, 160, 176, 135, 48, 32, 177, 146, 208, 160, 178, 112, 76, 160, 179, 114, 178, 160, 180, 80, 46, 160, 181, 73, 90, 32, 182, 48, 16, 160, 183, 50, 118, 160, 184, 15, 242, 160, 185, 18, 88, 160, 185, 239, 212, 160, 186, 233, 0, 32, 187, 216, 241, 32, 188, 219, 87, 32, 189, 184, 211, 32, 190, 177, 254, 160, 191, 152, 181, 32, 192, 155, 27, 32, 193, 120, 151, 32, 194, 122, 253, 32, 195, 88, 121, 32, 196, 81, 164, 160, 197, 56, 91, 32, 198, 58, 193, 32, 199, 88, 214, 160, 199, 218, 9, 160, 202, 22, 38, 144, 202, 151, 89, 144, 203, 209, 30, 144, 204, 119, 59, 144, 205, 177, 0, 144, 206, 96, 88, 16, 207, 144, 226, 144, 208, 110, 94, 144, 209, 114, 22, 16, 209, 251, 50, 16, 210, 105, 254, 32, 211, 99, 41, 160, 212, 73, 224, 32, 213, 30, 33, 160, 213, 66, 253, 144, 213, 223, 224, 16, 214, 78, 172, 32, 214, 254, 3, 160, 216, 46, 142, 32, 216, 249, 149, 32, 218, 14, 112, 32, 218, 235, 236, 32, 219, 229, 23, 160, 220, 203, 206, 32, 221, 196, 249, 160, 222, 180, 234, 160, 223, 174, 22, 32, 224, 148, 204, 160, 225, 114, 72, 160, 226, 107, 116, 32, 227, 82, 42, 160, 228, 84, 144, 160, 229, 50, 12, 160, 230, 61, 173, 32, 231, 27, 41, 32, 232, 20, 84, 160, 232, 251, 11, 32, 233, 253, 113, 32, 234, 218, 237, 32, 235, 221, 83, 32, 236, 186, 207, 32, 237, 179, 250, 160, 238, 154, 177, 32, 239, 129, 103, 160, 240, 159, 125, 32, 241, 97, 73, 160, 242, 127, 95, 32, 243, 74, 102, 32, 244, 95, 65, 32, 245, 33, 13, 160, 246, 63, 35, 32, 247, 0, 239, 160, 248, 31, 5, 32, 248, 224, 209, 160, 249, 254, 231, 32, 250, 192, 179, 160, 251, 232, 3, 160, 252, 123, 171, 160, 253, 199, 187, 112, 3, 112, 198, 32, 4, 41, 88, 32, 5, 80, 168, 32, 6, 9, 58, 32, 7, 48, 138, 32, 7, 233, 28, 32, 9, 16, 108, 32, 9, 200, 254, 32, 10, 240, 78, 32, 11, 178, 26, 160, 12, 208, 48, 32, 13, 145, 252, 160, 14, 176, 18, 32, 15, 113, 222, 160, 16, 153, 46, 160, 17, 81, 192, 160, 18, 121, 16, 160, 19, 49, 162, 160, 20, 88, 242, 160, 21, 35, 235, 144, 22, 56, 198, 144, 23, 3, 205, 144, 24, 24, 168, 144, 24, 227, 175, 144, 25, 248, 138, 144, 26, 195, 145, 144, 27, 225, 167, 16, 28, 172, 174, 16, 29, 193, 137, 16, 30, 140, 144, 16, 31, 161, 107, 16, 32, 108, 114, 16, 33, 129, 77, 16, 34, 76, 84, 16, 35, 97, 47, 16, 36, 44, 54, 16, 37, 74, 75, 144, 38, 12, 24, 16, 39, 42, 45, 144, 39, 245, 52, 144, 41, 10, 15, 144, 41, 213, 22, 144, 42, 233, 241, 144, 43, 180, 248, 144, 44, 201, 211, 144, 45, 148, 218, 144, 46, 169, 181, 144, 47, 116, 188, 144, 48, 137, 151, 144, 48, 231, 36, 0, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 2, 1, 2, 1, 3, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 4, 6, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 7, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 255, 255, 255, 181, 0, 0, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 8, 0, 0, 28, 32, 1, 12, 0, 0, 14, 16, 0, 4, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 8, 76, 77, 84, 0, 66, 83, 84, 0, 71, 77, 84, 0, 66, 68, 83, 84, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 10, 71, 77, 84, 48, 66, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 49, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/GMT": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 71, 77, 84, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/GMT+0": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 71, 77, 84, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/GMT-0": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 71, 77, 84, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/GMT0": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 71, 77, 84, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Greenwich": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 71, 77, 84, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/HST": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 255, 255, 115, 96, 0, 0, 72, 83, 84, 0, 0, 0, 10, 72, 83, 84, 49, 48, 10}, + + "zoneinfo/Hongkong": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 70, 0, 0, 0, 5, 0, 0, 0, 17, 128, 0, 0, 0, 133, 105, 90, 246, 201, 234, 87, 184, 202, 218, 58, 168, 203, 75, 120, 128, 210, 76, 98, 112, 211, 106, 183, 56, 212, 147, 74, 168, 213, 66, 176, 56, 214, 154, 185, 168, 215, 62, 65, 184, 216, 46, 36, 168, 216, 249, 57, 184, 218, 14, 6, 168, 218, 217, 27, 184, 219, 237, 232, 168, 220, 184, 253, 184, 221, 205, 202, 168, 222, 162, 26, 56, 223, 172, 91, 40, 224, 129, 252, 56, 225, 150, 201, 40, 226, 79, 105, 56, 227, 118, 171, 40, 228, 47, 75, 56, 229, 95, 199, 168, 230, 15, 45, 56, 231, 63, 169, 168, 231, 248, 73, 184, 233, 31, 139, 168, 233, 216, 43, 184, 234, 255, 109, 168, 235, 184, 13, 184, 236, 223, 79, 168, 237, 151, 239, 184, 238, 200, 108, 40, 239, 119, 209, 184, 240, 168, 78, 40, 241, 87, 179, 184, 242, 136, 48, 40, 243, 64, 208, 56, 244, 104, 18, 40, 245, 32, 178, 56, 246, 71, 244, 40, 247, 37, 126, 56, 248, 21, 97, 40, 249, 5, 96, 56, 249, 245, 67, 40, 250, 229, 66, 56, 251, 222, 95, 168, 252, 206, 94, 184, 253, 190, 65, 168, 254, 174, 64, 184, 255, 158, 35, 168, 0, 142, 34, 184, 1, 126, 5, 168, 2, 110, 4, 184, 3, 93, 231, 168, 4, 77, 230, 184, 5, 71, 4, 40, 6, 55, 3, 56, 7, 38, 230, 40, 7, 131, 61, 56, 9, 6, 200, 40, 9, 246, 199, 56, 10, 230, 170, 40, 11, 214, 169, 56, 12, 198, 140, 40, 17, 155, 57, 56, 18, 111, 108, 168, 0, 2, 1, 2, 3, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 0, 0, 107, 10, 0, 0, 0, 0, 126, 144, 1, 4, 0, 0, 112, 128, 0, 9, 0, 0, 126, 144, 0, 13, 0, 0, 112, 128, 0, 9, 76, 77, 84, 0, 72, 75, 83, 84, 0, 72, 75, 84, 0, 74, 83, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 72, 75, 84, 45, 56, 10}, + + "zoneinfo/Iceland": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 69, 0, 0, 0, 6, 0, 0, 0, 16, 128, 0, 0, 0, 139, 96, 131, 160, 156, 145, 30, 0, 157, 209, 136, 144, 158, 114, 81, 128, 159, 213, 3, 16, 160, 83, 133, 0, 161, 182, 54, 144, 164, 60, 39, 128, 164, 185, 116, 16, 198, 77, 26, 0, 199, 61, 39, 32, 199, 218, 23, 176, 201, 38, 67, 160, 201, 195, 38, 32, 203, 6, 37, 160, 203, 172, 66, 160, 204, 220, 205, 32, 205, 140, 36, 160, 206, 188, 175, 32, 207, 108, 6, 160, 208, 156, 145, 32, 209, 75, 232, 160, 210, 133, 173, 160, 211, 43, 202, 160, 212, 101, 143, 160, 213, 57, 209, 32, 214, 69, 113, 160, 215, 25, 179, 32, 216, 37, 83, 160, 216, 249, 149, 32, 218, 14, 112, 32, 218, 217, 119, 32, 219, 229, 23, 160, 220, 185, 89, 32, 221, 206, 52, 32, 222, 162, 117, 160, 223, 174, 22, 32, 224, 130, 87, 160, 225, 141, 248, 32, 226, 98, 57, 160, 227, 109, 218, 32, 228, 66, 27, 160, 229, 77, 188, 32, 230, 33, 253, 160, 231, 54, 216, 160, 232, 11, 26, 32, 233, 22, 186, 160, 233, 234, 252, 32, 234, 246, 156, 160, 235, 202, 222, 32, 236, 214, 126, 160, 237, 170, 192, 32, 238, 182, 96, 160, 239, 138, 162, 32, 240, 150, 66, 160, 241, 106, 132, 32, 242, 127, 95, 32, 243, 83, 160, 160, 244, 95, 65, 32, 245, 51, 130, 160, 246, 63, 35, 32, 247, 19, 100, 160, 248, 31, 5, 32, 248, 243, 70, 160, 249, 254, 231, 32, 250, 211, 40, 160, 251, 232, 3, 160, 252, 188, 69, 32, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 5, 255, 255, 235, 96, 0, 0, 0, 0, 0, 0, 1, 4, 255, 255, 241, 240, 0, 8, 255, 255, 241, 240, 0, 8, 0, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 12, 76, 77, 84, 0, 43, 48, 48, 0, 45, 48, 49, 0, 71, 77, 84, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 10, 71, 77, 84, 48, 10}, + + "zoneinfo/Indian/Antananarivo": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 177, 238, 218, 252, 180, 194, 154, 208, 199, 145, 71, 216, 237, 47, 225, 212, 0, 1, 2, 3, 1, 0, 0, 34, 132, 0, 0, 0, 0, 42, 48, 0, 4, 0, 0, 35, 40, 0, 8, 0, 0, 38, 172, 0, 14, 0, 0, 42, 48, 0, 4, 76, 77, 84, 0, 69, 65, 84, 0, 43, 48, 50, 51, 48, 0, 43, 48, 50, 52, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 65, 84, 45, 51, 10}, + + "zoneinfo/Indian/Chagos": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 137, 126, 247, 156, 48, 230, 221, 176, 127, 255, 255, 255, 0, 1, 2, 2, 0, 0, 67, 228, 0, 0, 0, 0, 70, 80, 0, 4, 0, 0, 84, 96, 0, 8, 76, 77, 84, 0, 43, 48, 53, 0, 43, 48, 54, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 54, 62, 45, 54, 10}, + + "zoneinfo/Indian/Christmas": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 127, 255, 255, 255, 1, 1, 0, 0, 99, 28, 0, 0, 0, 0, 98, 112, 0, 4, 76, 77, 84, 0, 43, 48, 55, 0, 0, 0, 0, 0, 10, 60, 43, 48, 55, 62, 45, 55, 10}, + + "zoneinfo/Indian/Cocos": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 10, 128, 0, 0, 0, 127, 255, 255, 255, 1, 1, 0, 0, 90, 220, 0, 0, 0, 0, 91, 104, 0, 4, 76, 77, 84, 0, 43, 48, 54, 51, 48, 0, 0, 0, 0, 0, 10, 60, 43, 48, 54, 51, 48, 62, 45, 54, 58, 51, 48, 10}, + + "zoneinfo/Indian/Comoro": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 177, 238, 218, 252, 180, 194, 154, 208, 199, 145, 71, 216, 237, 47, 225, 212, 0, 1, 2, 3, 1, 0, 0, 34, 132, 0, 0, 0, 0, 42, 48, 0, 4, 0, 0, 35, 40, 0, 8, 0, 0, 38, 172, 0, 14, 0, 0, 42, 48, 0, 4, 76, 77, 84, 0, 69, 65, 84, 0, 43, 48, 50, 51, 48, 0, 43, 48, 50, 52, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 65, 84, 45, 51, 10}, + + "zoneinfo/Indian/Kerguelen": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 218, 97, 98, 128, 127, 255, 255, 255, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 70, 80, 0, 4, 45, 48, 48, 0, 43, 48, 53, 0, 0, 0, 0, 0, 10, 60, 43, 48, 53, 62, 45, 53, 10}, + + "zoneinfo/Indian/Mahe": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 136, 100, 230, 132, 127, 255, 255, 255, 0, 1, 1, 0, 0, 51, 252, 0, 0, 0, 0, 56, 64, 0, 4, 76, 77, 84, 0, 43, 48, 52, 0, 0, 0, 0, 0, 10, 60, 43, 48, 52, 62, 45, 52, 10}, + + "zoneinfo/Indian/Maldives": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 237, 47, 195, 152, 127, 255, 255, 255, 1, 2, 2, 0, 0, 68, 232, 0, 0, 0, 0, 68, 232, 0, 4, 0, 0, 70, 80, 0, 8, 76, 77, 84, 0, 77, 77, 84, 0, 43, 48, 53, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 53, 62, 45, 53, 10}, + + "zoneinfo/Indian/Mauritius": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 137, 127, 5, 152, 24, 5, 237, 64, 24, 219, 114, 48, 73, 3, 150, 224, 73, 206, 143, 208, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 2, 0, 0, 53, 232, 0, 0, 0, 0, 70, 80, 1, 4, 0, 0, 56, 64, 0, 8, 76, 77, 84, 0, 43, 48, 53, 0, 43, 48, 52, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 52, 62, 45, 52, 10}, + + "zoneinfo/Indian/Mayotte": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 177, 238, 218, 252, 180, 194, 154, 208, 199, 145, 71, 216, 237, 47, 225, 212, 0, 1, 2, 3, 1, 0, 0, 34, 132, 0, 0, 0, 0, 42, 48, 0, 4, 0, 0, 35, 40, 0, 8, 0, 0, 38, 172, 0, 14, 0, 0, 42, 48, 0, 4, 76, 77, 84, 0, 69, 65, 84, 0, 43, 48, 50, 51, 48, 0, 43, 48, 50, 52, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 65, 84, 45, 51, 10}, + + "zoneinfo/Indian/Reunion": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 145, 204, 57, 128, 127, 255, 255, 255, 0, 1, 1, 0, 0, 52, 0, 0, 0, 0, 0, 56, 64, 0, 4, 76, 77, 84, 0, 43, 48, 52, 0, 0, 0, 0, 0, 10, 60, 43, 48, 52, 62, 45, 52, 10}, + + "zoneinfo/Iran": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 102, 0, 0, 0, 7, 0, 0, 0, 28, 128, 0, 0, 0, 154, 108, 125, 200, 210, 219, 18, 200, 14, 187, 162, 72, 15, 116, 45, 64, 16, 142, 64, 48, 16, 237, 58, 64, 17, 85, 103, 200, 18, 69, 74, 184, 19, 55, 236, 200, 20, 45, 21, 184, 40, 32, 118, 200, 40, 219, 157, 184, 41, 203, 156, 200, 42, 190, 34, 184, 43, 172, 208, 72, 44, 159, 86, 56, 45, 142, 3, 200, 46, 128, 137, 184, 47, 111, 55, 72, 48, 97, 189, 56, 49, 80, 106, 200, 50, 66, 240, 184, 51, 50, 239, 200, 52, 37, 117, 184, 53, 20, 35, 72, 54, 6, 169, 56, 54, 245, 86, 200, 55, 231, 220, 184, 56, 214, 138, 72, 57, 201, 16, 56, 58, 185, 15, 72, 59, 171, 149, 56, 60, 154, 66, 200, 61, 140, 200, 184, 62, 123, 118, 72, 63, 109, 252, 56, 64, 92, 169, 200, 65, 79, 47, 184, 66, 63, 46, 200, 67, 49, 180, 184, 71, 226, 201, 72, 72, 213, 79, 56, 73, 197, 78, 72, 74, 183, 212, 56, 75, 166, 129, 200, 76, 153, 7, 184, 77, 135, 181, 72, 78, 122, 59, 56, 79, 104, 232, 200, 80, 91, 110, 184, 81, 75, 109, 200, 82, 61, 243, 184, 83, 44, 161, 72, 84, 31, 39, 56, 85, 13, 212, 200, 86, 0, 90, 184, 86, 239, 8, 72, 87, 225, 142, 56, 88, 209, 141, 72, 89, 196, 19, 56, 90, 178, 192, 200, 91, 165, 70, 184, 92, 147, 244, 72, 93, 134, 122, 56, 94, 117, 39, 200, 95, 103, 173, 184, 96, 87, 172, 200, 97, 74, 50, 184, 98, 56, 224, 72, 99, 43, 102, 56, 100, 26, 19, 200, 101, 12, 153, 184, 101, 251, 71, 72, 102, 237, 205, 56, 103, 221, 204, 72, 104, 208, 82, 56, 105, 190, 255, 200, 106, 177, 133, 184, 107, 160, 51, 72, 108, 146, 185, 56, 109, 129, 102, 200, 110, 115, 236, 184, 111, 98, 154, 72, 112, 85, 32, 56, 113, 69, 31, 72, 114, 55, 165, 56, 115, 38, 82, 200, 116, 24, 216, 184, 117, 7, 134, 72, 117, 250, 12, 56, 118, 232, 185, 200, 119, 219, 63, 184, 120, 203, 62, 200, 121, 189, 196, 184, 122, 172, 114, 72, 123, 158, 248, 56, 124, 141, 165, 200, 125, 128, 43, 184, 126, 110, 217, 72, 127, 97, 95, 56, 127, 255, 255, 255, 0, 1, 2, 4, 3, 4, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 2, 0, 0, 48, 56, 0, 0, 0, 0, 48, 56, 0, 4, 0, 0, 49, 56, 0, 8, 0, 0, 70, 80, 1, 14, 0, 0, 56, 64, 0, 18, 0, 0, 63, 72, 1, 22, 0, 0, 49, 56, 0, 8, 76, 77, 84, 0, 84, 77, 84, 0, 43, 48, 51, 51, 48, 0, 43, 48, 53, 0, 43, 48, 52, 0, 43, 48, 52, 51, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 51, 51, 48, 62, 45, 51, 58, 51, 48, 60, 43, 48, 52, 51, 48, 62, 44, 74, 56, 48, 47, 48, 44, 74, 50, 54, 52, 47, 48, 10}, + + "zoneinfo/Israel": []byte{84, 90, 105, 102, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 143, 0, 0, 0, 6, 0, 0, 0, 21, 128, 0, 0, 0, 158, 48, 69, 136, 200, 89, 178, 224, 204, 229, 193, 80, 205, 172, 254, 0, 206, 198, 244, 208, 207, 143, 102, 224, 208, 169, 121, 208, 209, 132, 96, 224, 210, 138, 201, 112, 211, 101, 176, 128, 212, 107, 224, 208, 215, 90, 20, 96, 215, 223, 31, 192, 216, 47, 181, 112, 217, 30, 70, 224, 218, 16, 232, 240, 218, 235, 179, 224, 219, 180, 52, 0, 220, 185, 32, 224, 221, 224, 141, 0, 222, 180, 206, 128, 223, 164, 191, 128, 224, 139, 118, 0, 225, 86, 125, 0, 226, 190, 74, 96, 227, 54, 52, 208, 228, 156, 247, 0, 229, 22, 22, 208, 230, 116, 211, 224, 231, 17, 210, 128, 232, 39, 255, 0, 232, 232, 79, 208, 8, 124, 139, 224, 8, 253, 176, 208, 9, 246, 234, 96, 10, 166, 51, 208, 28, 190, 248, 224, 29, 137, 241, 208, 30, 204, 255, 96, 31, 96, 153, 80, 32, 130, 177, 96, 33, 73, 181, 208, 34, 94, 158, 224, 35, 32, 93, 80, 36, 90, 48, 96, 37, 0, 63, 80, 38, 11, 237, 224, 38, 214, 230, 208, 39, 235, 207, 224, 40, 192, 3, 80, 41, 212, 236, 96, 42, 169, 31, 208, 43, 187, 101, 224, 44, 137, 1, 208, 45, 155, 71, 224, 46, 95, 169, 80, 47, 123, 41, 224, 48, 72, 197, 208, 49, 72, 150, 224, 50, 60, 110, 80, 51, 49, 179, 96, 52, 26, 254, 208, 53, 17, 149, 96, 53, 241, 166, 80, 55, 4, 8, 128, 55, 207, 1, 112, 56, 246, 95, 128, 57, 220, 249, 224, 58, 208, 237, 112, 59, 174, 91, 96, 60, 163, 160, 112, 61, 160, 178, 96, 62, 131, 130, 112, 63, 124, 159, 224, 64, 115, 54, 112, 65, 80, 164, 96, 66, 76, 143, 0, 67, 72, 79, 112, 68, 44, 113, 0, 69, 30, 246, 240, 70, 12, 83, 0, 70, 236, 99, 240, 71, 236, 53, 0, 72, 231, 245, 112, 73, 204, 23, 0, 74, 190, 156, 240, 75, 171, 249, 0, 76, 140, 9, 240, 77, 149, 21, 128, 78, 135, 155, 112, 79, 116, 247, 128, 80, 94, 66, 240, 81, 84, 217, 128, 82, 108, 73, 112, 83, 52, 187, 128, 84, 76, 43, 112, 85, 20, 157, 128, 86, 44, 13, 112, 86, 244, 127, 128, 88, 21, 41, 240, 88, 212, 97, 128, 89, 245, 11, 240, 90, 180, 67, 128, 91, 212, 237, 240, 92, 157, 96, 0, 93, 180, 207, 240, 94, 125, 66, 0, 95, 148, 177, 240, 96, 93, 36, 0, 97, 125, 206, 112, 98, 61, 6, 0, 99, 93, 176, 112, 100, 28, 232, 0, 101, 61, 146, 112, 102, 6, 4, 128, 103, 29, 116, 112, 103, 229, 230, 128, 104, 253, 86, 112, 105, 197, 200, 128, 106, 221, 56, 112, 107, 165, 170, 128, 108, 198, 84, 240, 109, 133, 140, 128, 110, 166, 54, 240, 111, 101, 110, 128, 112, 134, 24, 240, 113, 78, 139, 0, 114, 101, 250, 240, 115, 46, 109, 0, 116, 69, 220, 240, 117, 14, 79, 0, 118, 46, 249, 112, 118, 238, 49, 0, 120, 14, 219, 112, 120, 206, 19, 0, 121, 238, 189, 112, 122, 173, 245, 0, 123, 206, 159, 112, 124, 151, 17, 128, 125, 174, 129, 112, 126, 118, 243, 128, 127, 142, 99, 112, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 4, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 0, 0, 33, 6, 0, 0, 0, 0, 32, 248, 0, 4, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 12, 0, 0, 56, 64, 1, 16, 0, 0, 42, 48, 1, 8, 76, 77, 84, 0, 74, 77, 84, 0, 73, 68, 84, 0, 73, 83, 84, 0, 73, 68, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 73, 83, 84, 45, 50, 73, 68, 84, 44, 77, 51, 46, 52, 46, 52, 47, 50, 54, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/Jamaica": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 4, 0, 0, 0, 16, 128, 0, 0, 0, 147, 15, 180, 255, 7, 141, 25, 112, 9, 16, 164, 96, 9, 173, 148, 240, 10, 240, 134, 96, 11, 224, 133, 112, 12, 217, 162, 224, 13, 192, 103, 112, 14, 185, 132, 224, 15, 169, 131, 240, 16, 153, 102, 224, 17, 137, 101, 240, 18, 121, 72, 224, 19, 105, 71, 240, 20, 89, 42, 224, 21, 73, 41, 240, 22, 57, 12, 224, 23, 41, 11, 240, 24, 34, 41, 96, 25, 8, 237, 240, 26, 2, 11, 96, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 255, 255, 184, 1, 0, 0, 255, 255, 184, 1, 0, 4, 255, 255, 185, 176, 0, 8, 255, 255, 199, 192, 1, 12, 76, 77, 84, 0, 75, 77, 84, 0, 69, 83, 84, 0, 69, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 83, 84, 53, 10}, + + "zoneinfo/Japan": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 4, 0, 0, 0, 12, 128, 0, 0, 0, 215, 62, 30, 144, 215, 236, 22, 128, 216, 249, 22, 144, 217, 203, 248, 128, 219, 7, 29, 16, 219, 171, 218, 128, 220, 230, 255, 16, 221, 139, 188, 128, 3, 1, 2, 1, 2, 1, 2, 1, 2, 0, 0, 131, 3, 0, 0, 0, 0, 140, 160, 1, 4, 0, 0, 126, 144, 0, 8, 0, 0, 126, 144, 0, 8, 76, 77, 84, 0, 74, 68, 84, 0, 74, 83, 84, 0, 0, 0, 0, 1, 0, 0, 0, 1, 10, 74, 83, 84, 45, 57, 10}, + + "zoneinfo/Kwajalein": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 16, 128, 0, 0, 0, 255, 134, 27, 80, 44, 116, 188, 192, 127, 255, 255, 255, 1, 2, 3, 3, 0, 0, 156, 224, 0, 0, 0, 0, 154, 176, 0, 4, 255, 255, 87, 64, 0, 8, 0, 0, 168, 192, 0, 12, 76, 77, 84, 0, 43, 49, 49, 0, 45, 49, 50, 0, 43, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 50, 62, 45, 49, 50, 10}, + + "zoneinfo/Libya": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 33, 0, 0, 0, 4, 0, 0, 0, 17, 128, 0, 0, 0, 161, 242, 193, 36, 221, 187, 177, 16, 222, 35, 173, 96, 225, 120, 210, 16, 225, 231, 101, 224, 229, 47, 63, 112, 229, 169, 204, 224, 235, 78, 198, 240, 22, 146, 66, 96, 23, 8, 247, 112, 23, 250, 43, 224, 24, 234, 42, 240, 25, 219, 95, 96, 26, 204, 175, 240, 27, 189, 228, 96, 28, 180, 122, 240, 29, 159, 23, 224, 30, 147, 11, 112, 31, 130, 238, 96, 32, 112, 74, 112, 33, 97, 126, 224, 34, 82, 207, 112, 35, 68, 3, 224, 36, 52, 2, 240, 37, 37, 55, 96, 38, 64, 183, 240, 50, 78, 241, 96, 51, 68, 54, 112, 52, 53, 106, 224, 80, 157, 153, 0, 81, 84, 217, 128, 82, 105, 180, 128, 0, 2, 1, 2, 1, 2, 1, 2, 3, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 1, 3, 2, 1, 3, 0, 0, 12, 92, 0, 0, 0, 0, 28, 32, 1, 4, 0, 0, 14, 16, 0, 9, 0, 0, 28, 32, 0, 13, 76, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 69, 69, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 69, 69, 84, 45, 50, 10}, + + "zoneinfo/MET": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 136, 0, 0, 0, 4, 0, 0, 0, 9, 155, 12, 23, 96, 155, 213, 218, 240, 156, 217, 174, 144, 157, 164, 181, 144, 158, 185, 144, 144, 159, 132, 151, 144, 200, 9, 113, 144, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 130, 37, 16, 209, 114, 22, 16, 210, 78, 64, 144, 13, 164, 99, 144, 14, 139, 26, 16, 15, 132, 69, 144, 16, 116, 54, 144, 17, 100, 39, 144, 18, 84, 24, 144, 19, 77, 68, 16, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 0, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 0, 0, 28, 32, 1, 0, 0, 0, 14, 16, 0, 5, 0, 0, 28, 32, 1, 0, 0, 0, 14, 16, 0, 5, 77, 69, 83, 84, 0, 77, 69, 84, 0, 0, 0, 1, 1, 0, 0, 0, 0, 10, 77, 69, 84, 45, 49, 77, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/MST": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 255, 255, 157, 144, 0, 0, 77, 83, 84, 0, 0, 0, 10, 77, 83, 84, 55, 10}, + + "zoneinfo/MST7MDT": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 149, 0, 0, 0, 4, 0, 0, 0, 16, 158, 166, 58, 144, 159, 187, 7, 128, 160, 134, 28, 144, 161, 154, 233, 128, 203, 137, 12, 144, 210, 35, 244, 112, 210, 97, 24, 0, 250, 248, 117, 16, 251, 232, 88, 0, 252, 216, 87, 16, 253, 200, 58, 0, 254, 184, 57, 16, 255, 168, 28, 0, 0, 152, 27, 16, 1, 135, 254, 0, 2, 119, 253, 16, 3, 113, 26, 128, 4, 97, 25, 144, 5, 80, 252, 128, 6, 64, 251, 144, 7, 48, 222, 128, 7, 141, 53, 144, 9, 16, 192, 128, 9, 173, 177, 16, 10, 240, 162, 128, 11, 224, 161, 144, 12, 217, 191, 0, 13, 192, 131, 144, 14, 185, 161, 0, 15, 169, 160, 16, 16, 153, 131, 0, 17, 137, 130, 16, 18, 121, 101, 0, 19, 105, 100, 16, 20, 89, 71, 0, 21, 73, 70, 16, 22, 57, 41, 0, 23, 41, 40, 16, 24, 34, 69, 128, 25, 9, 10, 16, 26, 2, 39, 128, 26, 242, 38, 144, 27, 226, 9, 128, 28, 210, 8, 144, 29, 193, 235, 128, 30, 177, 234, 144, 31, 161, 205, 128, 32, 118, 29, 16, 33, 129, 175, 128, 34, 85, 255, 16, 35, 106, 204, 0, 36, 53, 225, 16, 37, 74, 174, 0, 38, 21, 195, 16, 39, 42, 144, 0, 39, 254, 223, 144, 41, 10, 114, 0, 41, 222, 193, 144, 42, 234, 84, 0, 43, 190, 163, 144, 44, 211, 112, 128, 45, 158, 133, 144, 46, 179, 82, 128, 47, 126, 103, 144, 48, 147, 52, 128, 49, 103, 132, 16, 50, 115, 22, 128, 51, 71, 102, 16, 52, 82, 248, 128, 53, 39, 72, 16, 54, 50, 218, 128, 55, 7, 42, 16, 56, 27, 247, 0, 56, 231, 12, 16, 57, 251, 217, 0, 58, 198, 238, 16, 59, 219, 187, 0, 60, 176, 10, 144, 61, 187, 157, 0, 62, 143, 236, 144, 63, 155, 127, 0, 64, 111, 206, 144, 65, 132, 155, 128, 66, 79, 176, 144, 67, 100, 125, 128, 68, 47, 146, 144, 69, 68, 95, 128, 69, 243, 197, 16, 71, 45, 124, 0, 71, 211, 167, 16, 73, 13, 94, 0, 73, 179, 137, 16, 74, 237, 64, 0, 75, 156, 165, 144, 76, 214, 92, 128, 77, 124, 135, 144, 78, 182, 62, 128, 79, 92, 105, 144, 80, 150, 32, 128, 81, 60, 75, 144, 82, 118, 2, 128, 83, 28, 45, 144, 84, 85, 228, 128, 84, 252, 15, 144, 86, 53, 198, 128, 86, 229, 44, 16, 88, 30, 227, 0, 88, 197, 14, 16, 89, 254, 197, 0, 90, 164, 240, 16, 91, 222, 167, 0, 92, 132, 210, 16, 93, 190, 137, 0, 94, 100, 180, 16, 95, 158, 107, 0, 96, 77, 208, 144, 97, 135, 135, 128, 98, 45, 178, 144, 99, 103, 105, 128, 100, 13, 148, 144, 101, 71, 75, 128, 101, 237, 118, 144, 103, 39, 45, 128, 103, 205, 88, 144, 105, 7, 15, 128, 105, 173, 58, 144, 106, 230, 241, 128, 107, 150, 87, 16, 108, 208, 14, 0, 109, 118, 57, 16, 110, 175, 240, 0, 111, 86, 27, 16, 112, 143, 210, 0, 113, 53, 253, 16, 114, 111, 180, 0, 115, 21, 223, 16, 116, 79, 150, 0, 116, 254, 251, 144, 118, 56, 178, 128, 118, 222, 221, 144, 120, 24, 148, 128, 120, 190, 191, 144, 121, 248, 118, 128, 122, 158, 161, 144, 123, 216, 88, 128, 124, 126, 131, 144, 125, 184, 58, 128, 126, 94, 101, 144, 127, 152, 28, 128, 0, 1, 0, 1, 2, 3, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 255, 255, 171, 160, 1, 0, 255, 255, 157, 144, 0, 4, 255, 255, 171, 160, 1, 8, 255, 255, 171, 160, 1, 12, 77, 68, 84, 0, 77, 83, 84, 0, 77, 87, 84, 0, 77, 80, 84, 0, 0, 0, 0, 1, 0, 0, 0, 1, 10, 77, 83, 84, 55, 77, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/Mexico/BajaNorte": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 6, 0, 0, 0, 24, 128, 0, 0, 0, 165, 182, 246, 128, 169, 121, 79, 112, 175, 242, 124, 240, 182, 102, 100, 112, 183, 27, 16, 0, 184, 10, 242, 240, 203, 234, 141, 128, 210, 35, 244, 112, 210, 153, 186, 112, 215, 27, 89, 0, 216, 145, 180, 240, 226, 126, 75, 144, 227, 73, 82, 144, 228, 94, 45, 144, 229, 41, 52, 144, 230, 71, 74, 16, 231, 18, 81, 16, 232, 39, 44, 16, 232, 242, 51, 16, 234, 7, 14, 16, 234, 210, 21, 16, 235, 230, 240, 16, 236, 177, 247, 16, 237, 198, 210, 16, 238, 145, 217, 16, 11, 224, 175, 160, 12, 217, 205, 16, 13, 192, 145, 160, 14, 185, 175, 16, 15, 169, 174, 32, 16, 153, 145, 16, 17, 137, 144, 32, 18, 121, 115, 16, 19, 105, 114, 32, 20, 89, 85, 16, 21, 73, 84, 32, 22, 57, 55, 16, 23, 41, 54, 32, 24, 34, 83, 144, 25, 9, 24, 32, 26, 2, 53, 144, 26, 242, 52, 160, 27, 226, 23, 144, 28, 210, 22, 160, 29, 193, 249, 144, 30, 177, 248, 160, 31, 161, 219, 144, 32, 118, 43, 32, 33, 129, 189, 144, 34, 86, 13, 32, 35, 106, 218, 16, 36, 53, 239, 32, 37, 74, 188, 16, 38, 21, 209, 32, 39, 42, 158, 16, 39, 254, 237, 160, 41, 10, 128, 16, 41, 222, 207, 160, 42, 234, 98, 16, 43, 190, 177, 160, 44, 211, 126, 144, 45, 158, 147, 160, 46, 179, 96, 144, 47, 126, 117, 160, 48, 147, 66, 144, 49, 103, 146, 32, 50, 115, 36, 144, 51, 71, 116, 32, 52, 83, 6, 144, 53, 39, 86, 32, 54, 50, 232, 144, 55, 7, 56, 32, 56, 28, 5, 16, 56, 231, 26, 32, 57, 251, 231, 16, 58, 198, 252, 32, 59, 219, 201, 16, 60, 176, 24, 160, 61, 187, 171, 16, 62, 143, 250, 160, 63, 155, 141, 16, 64, 111, 220, 160, 65, 132, 169, 144, 66, 79, 190, 160, 67, 100, 139, 144, 68, 47, 160, 160, 69, 68, 109, 144, 70, 15, 130, 160, 71, 36, 79, 144, 71, 248, 159, 32, 73, 4, 49, 144, 73, 216, 129, 32, 74, 228, 19, 144, 75, 156, 179, 160, 76, 214, 106, 144, 77, 124, 149, 160, 78, 182, 76, 144, 79, 92, 119, 160, 80, 150, 46, 144, 81, 60, 89, 160, 82, 118, 16, 144, 83, 28, 59, 160, 84, 85, 242, 144, 84, 252, 29, 160, 86, 53, 212, 144, 86, 229, 58, 32, 88, 30, 241, 16, 88, 197, 28, 32, 89, 254, 211, 16, 90, 164, 254, 32, 91, 222, 181, 16, 92, 132, 224, 32, 93, 190, 151, 16, 94, 100, 194, 32, 95, 158, 121, 16, 96, 77, 222, 160, 97, 135, 149, 144, 98, 45, 192, 160, 99, 103, 119, 144, 100, 13, 162, 160, 101, 71, 89, 144, 101, 237, 132, 160, 103, 39, 59, 144, 103, 205, 102, 160, 105, 7, 29, 144, 105, 173, 72, 160, 106, 230, 255, 144, 107, 150, 101, 32, 108, 208, 28, 16, 109, 118, 71, 32, 110, 175, 254, 16, 111, 86, 41, 32, 112, 143, 224, 16, 113, 54, 11, 32, 114, 111, 194, 16, 115, 21, 237, 32, 116, 79, 164, 16, 116, 255, 9, 160, 118, 56, 192, 144, 118, 222, 235, 160, 120, 24, 162, 144, 120, 190, 205, 160, 121, 248, 132, 144, 122, 158, 175, 160, 123, 216, 102, 144, 124, 126, 145, 160, 125, 184, 72, 144, 126, 94, 115, 160, 127, 152, 42, 144, 0, 1, 2, 1, 2, 3, 2, 4, 5, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 255, 255, 146, 76, 0, 0, 255, 255, 157, 144, 0, 4, 255, 255, 143, 128, 0, 8, 255, 255, 157, 144, 1, 12, 255, 255, 157, 144, 1, 16, 255, 255, 157, 144, 1, 20, 76, 77, 84, 0, 77, 83, 84, 0, 80, 83, 84, 0, 80, 68, 84, 0, 80, 87, 84, 0, 80, 80, 84, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 10, 80, 83, 84, 56, 80, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/Mexico/BajaSur": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 94, 0, 0, 0, 6, 0, 0, 0, 20, 128, 0, 0, 0, 165, 182, 232, 112, 175, 242, 110, 224, 182, 102, 86, 96, 183, 67, 210, 96, 184, 12, 54, 96, 184, 253, 134, 240, 203, 234, 113, 96, 216, 145, 180, 240, 0, 0, 112, 128, 49, 103, 132, 16, 50, 115, 22, 128, 51, 71, 102, 16, 52, 82, 248, 128, 53, 39, 72, 16, 54, 50, 218, 128, 55, 7, 42, 16, 56, 27, 247, 0, 56, 231, 12, 16, 57, 251, 217, 0, 58, 245, 18, 144, 59, 182, 209, 0, 60, 176, 10, 144, 61, 187, 157, 0, 62, 143, 236, 144, 63, 155, 127, 0, 64, 111, 206, 144, 65, 132, 155, 128, 66, 79, 176, 144, 67, 100, 125, 128, 68, 47, 146, 144, 69, 68, 95, 128, 70, 15, 116, 144, 71, 36, 65, 128, 71, 248, 145, 16, 73, 4, 35, 128, 73, 216, 115, 16, 74, 228, 5, 128, 75, 184, 85, 16, 76, 205, 34, 0, 77, 152, 55, 16, 78, 173, 4, 0, 79, 120, 25, 16, 80, 140, 230, 0, 81, 97, 53, 144, 82, 108, 200, 0, 83, 65, 23, 144, 84, 76, 170, 0, 85, 32, 249, 144, 86, 44, 140, 0, 87, 0, 219, 144, 88, 21, 168, 128, 88, 224, 189, 144, 89, 245, 138, 128, 90, 192, 159, 144, 91, 213, 108, 128, 92, 169, 188, 16, 93, 181, 78, 128, 94, 137, 158, 16, 95, 149, 48, 128, 96, 105, 128, 16, 97, 126, 77, 0, 98, 73, 98, 16, 99, 94, 47, 0, 100, 41, 68, 16, 101, 62, 17, 0, 102, 18, 96, 144, 103, 29, 243, 0, 103, 242, 66, 144, 104, 253, 213, 0, 105, 210, 36, 144, 106, 221, 183, 0, 107, 178, 6, 144, 108, 198, 211, 128, 109, 145, 232, 144, 110, 166, 181, 128, 111, 113, 202, 144, 112, 134, 151, 128, 113, 90, 231, 16, 114, 102, 121, 128, 115, 58, 201, 16, 116, 70, 91, 128, 117, 26, 171, 16, 118, 47, 120, 0, 118, 250, 141, 16, 120, 15, 90, 0, 120, 218, 111, 16, 121, 239, 60, 0, 122, 186, 81, 16, 123, 207, 30, 0, 124, 163, 109, 144, 125, 175, 0, 0, 126, 131, 79, 144, 127, 142, 226, 0, 0, 1, 2, 1, 2, 1, 2, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 255, 255, 156, 60, 0, 0, 255, 255, 157, 144, 0, 4, 255, 255, 171, 160, 0, 8, 255, 255, 143, 128, 0, 12, 255, 255, 171, 160, 1, 16, 255, 255, 157, 144, 0, 4, 76, 77, 84, 0, 77, 83, 84, 0, 67, 83, 84, 0, 80, 83, 84, 0, 77, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 77, 83, 84, 55, 77, 68, 84, 44, 77, 52, 46, 49, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/Mexico/General": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 99, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 165, 182, 232, 112, 175, 242, 110, 224, 182, 102, 86, 96, 183, 67, 210, 96, 184, 12, 54, 96, 184, 253, 134, 240, 197, 222, 176, 96, 198, 151, 52, 80, 201, 85, 241, 224, 201, 234, 221, 80, 207, 2, 198, 224, 207, 183, 86, 80, 218, 153, 21, 224, 219, 118, 131, 208, 49, 103, 118, 0, 50, 115, 8, 112, 51, 71, 88, 0, 52, 82, 234, 112, 53, 39, 58, 0, 54, 50, 204, 112, 55, 7, 28, 0, 56, 27, 232, 240, 56, 230, 254, 0, 57, 251, 202, 240, 58, 245, 4, 128, 59, 182, 194, 240, 60, 175, 252, 128, 61, 187, 142, 240, 62, 143, 222, 128, 63, 155, 112, 240, 64, 111, 192, 128, 65, 132, 141, 112, 66, 79, 162, 128, 67, 100, 111, 112, 68, 47, 132, 128, 69, 68, 81, 112, 70, 15, 102, 128, 71, 36, 51, 112, 71, 248, 131, 0, 73, 4, 21, 112, 73, 216, 101, 0, 74, 227, 247, 112, 75, 184, 71, 0, 76, 205, 19, 240, 77, 152, 41, 0, 78, 172, 245, 240, 79, 120, 11, 0, 80, 140, 215, 240, 81, 97, 39, 128, 82, 108, 185, 240, 83, 65, 9, 128, 84, 76, 155, 240, 85, 32, 235, 128, 86, 44, 125, 240, 87, 0, 205, 128, 88, 21, 154, 112, 88, 224, 175, 128, 89, 245, 124, 112, 90, 192, 145, 128, 91, 213, 94, 112, 92, 169, 174, 0, 93, 181, 64, 112, 94, 137, 144, 0, 95, 149, 34, 112, 96, 105, 114, 0, 97, 126, 62, 240, 98, 73, 84, 0, 99, 94, 32, 240, 100, 41, 54, 0, 101, 62, 2, 240, 102, 18, 82, 128, 103, 29, 228, 240, 103, 242, 52, 128, 104, 253, 198, 240, 105, 210, 22, 128, 106, 221, 168, 240, 107, 177, 248, 128, 108, 198, 197, 112, 109, 145, 218, 128, 110, 166, 167, 112, 111, 113, 188, 128, 112, 134, 137, 112, 113, 90, 217, 0, 114, 102, 107, 112, 115, 58, 187, 0, 116, 70, 77, 112, 117, 26, 157, 0, 118, 47, 105, 240, 118, 250, 127, 0, 120, 15, 75, 240, 120, 218, 97, 0, 121, 239, 45, 240, 122, 186, 67, 0, 123, 207, 15, 240, 124, 163, 95, 128, 125, 174, 241, 240, 126, 131, 65, 128, 127, 142, 211, 240, 0, 1, 2, 1, 2, 1, 2, 3, 2, 3, 2, 4, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 255, 255, 163, 12, 0, 0, 255, 255, 157, 144, 0, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 76, 77, 84, 0, 77, 83, 84, 0, 67, 83, 84, 0, 67, 68, 84, 0, 67, 87, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 52, 46, 49, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/NZ": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 156, 0, 0, 0, 7, 0, 0, 0, 19, 128, 0, 0, 0, 176, 180, 178, 232, 177, 81, 135, 88, 178, 120, 229, 104, 179, 67, 229, 96, 180, 88, 199, 104, 181, 35, 199, 96, 182, 56, 169, 104, 183, 3, 169, 96, 184, 24, 139, 104, 184, 236, 197, 224, 185, 248, 109, 104, 186, 204, 167, 224, 187, 216, 79, 104, 188, 227, 232, 224, 189, 174, 246, 232, 190, 195, 202, 224, 191, 142, 216, 232, 192, 163, 172, 224, 193, 110, 186, 232, 194, 131, 142, 224, 195, 78, 156, 232, 196, 99, 112, 224, 197, 46, 126, 232, 198, 76, 141, 96, 199, 14, 96, 232, 200, 44, 111, 96, 200, 247, 125, 104, 210, 218, 154, 64, 9, 24, 253, 224, 9, 172, 165, 224, 10, 239, 165, 96, 11, 158, 252, 224, 12, 216, 193, 224, 13, 126, 222, 224, 14, 184, 163, 224, 15, 94, 192, 224, 16, 152, 133, 224, 17, 62, 162, 224, 18, 120, 103, 224, 19, 30, 132, 224, 20, 88, 73, 224, 20, 254, 102, 224, 22, 56, 43, 224, 22, 231, 131, 96, 24, 33, 72, 96, 24, 199, 101, 96, 26, 1, 42, 96, 26, 167, 71, 96, 27, 225, 12, 96, 28, 135, 41, 96, 29, 192, 238, 96, 30, 103, 11, 96, 31, 160, 208, 96, 32, 70, 237, 96, 33, 128, 178, 96, 34, 48, 9, 224, 35, 105, 206, 224, 36, 15, 235, 224, 37, 46, 1, 96, 38, 2, 66, 224, 39, 13, 227, 96, 39, 226, 36, 224, 40, 237, 197, 96, 41, 194, 6, 224, 42, 205, 167, 96, 43, 171, 35, 96, 44, 173, 137, 96, 45, 139, 5, 96, 46, 141, 107, 96, 47, 106, 231, 96, 48, 109, 77, 96, 49, 74, 201, 96, 50, 86, 105, 224, 51, 42, 171, 96, 52, 54, 75, 224, 53, 10, 141, 96, 54, 22, 45, 224, 54, 243, 169, 224, 55, 246, 15, 224, 56, 211, 139, 224, 57, 213, 241, 224, 58, 179, 109, 224, 59, 191, 14, 96, 60, 147, 79, 224, 61, 158, 240, 96, 62, 115, 49, 224, 63, 126, 210, 96, 64, 92, 78, 96, 65, 94, 180, 96, 66, 60, 48, 96, 67, 62, 150, 96, 68, 28, 18, 96, 69, 30, 120, 96, 69, 251, 244, 96, 70, 254, 90, 96, 71, 247, 133, 224, 72, 222, 60, 96, 73, 215, 103, 224, 74, 190, 30, 96, 75, 183, 73, 224, 76, 158, 0, 96, 77, 151, 43, 224, 78, 125, 226, 96, 79, 119, 13, 224, 80, 102, 254, 224, 81, 96, 42, 96, 82, 70, 224, 224, 83, 64, 12, 96, 84, 38, 194, 224, 85, 31, 238, 96, 86, 6, 164, 224, 86, 255, 208, 96, 87, 230, 134, 224, 88, 223, 178, 96, 89, 198, 104, 224, 90, 191, 148, 96, 91, 175, 133, 96, 92, 168, 176, 224, 93, 143, 103, 96, 94, 136, 146, 224, 95, 111, 73, 96, 96, 104, 116, 224, 97, 79, 43, 96, 98, 72, 86, 224, 99, 47, 13, 96, 100, 40, 56, 224, 101, 14, 239, 96, 102, 17, 85, 96, 102, 248, 11, 224, 103, 241, 55, 96, 104, 215, 237, 224, 105, 209, 25, 96, 106, 183, 207, 224, 107, 176, 251, 96, 108, 151, 177, 224, 109, 144, 221, 96, 110, 119, 147, 224, 111, 112, 191, 96, 112, 96, 176, 96, 113, 89, 219, 224, 114, 64, 146, 96, 115, 57, 189, 224, 116, 32, 116, 96, 117, 25, 159, 224, 118, 0, 86, 96, 118, 249, 129, 224, 119, 224, 56, 96, 120, 217, 99, 224, 121, 192, 26, 96, 122, 185, 69, 224, 123, 169, 54, 224, 124, 162, 98, 96, 125, 137, 24, 224, 126, 130, 68, 96, 127, 104, 250, 224, 2, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 6, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 0, 0, 163, 216, 0, 0, 0, 0, 175, 200, 1, 4, 0, 0, 161, 184, 0, 9, 0, 0, 168, 192, 1, 4, 0, 0, 182, 208, 1, 14, 0, 0, 168, 192, 0, 4, 0, 0, 168, 192, 0, 4, 76, 77, 84, 0, 78, 90, 83, 84, 0, 78, 90, 77, 84, 0, 78, 90, 68, 84, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 10, 78, 90, 83, 84, 45, 49, 50, 78, 90, 68, 84, 44, 77, 57, 46, 53, 46, 48, 44, 77, 52, 46, 49, 46, 48, 47, 51, 10}, + + "zoneinfo/NZ-CHAT": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 130, 0, 0, 0, 5, 0, 0, 0, 22, 128, 0, 0, 0, 210, 218, 150, 188, 9, 24, 253, 224, 9, 172, 165, 224, 10, 239, 165, 96, 11, 158, 252, 224, 12, 216, 193, 224, 13, 126, 222, 224, 14, 184, 163, 224, 15, 94, 192, 224, 16, 152, 133, 224, 17, 62, 162, 224, 18, 120, 103, 224, 19, 30, 132, 224, 20, 88, 73, 224, 20, 254, 102, 224, 22, 56, 43, 224, 22, 231, 131, 96, 24, 33, 72, 96, 24, 199, 101, 96, 26, 1, 42, 96, 26, 167, 71, 96, 27, 225, 12, 96, 28, 135, 41, 96, 29, 192, 238, 96, 30, 103, 11, 96, 31, 160, 208, 96, 32, 70, 237, 96, 33, 128, 178, 96, 34, 48, 9, 224, 35, 105, 206, 224, 36, 15, 235, 224, 37, 46, 1, 96, 38, 2, 66, 224, 39, 13, 227, 96, 39, 226, 36, 224, 40, 237, 197, 96, 41, 194, 6, 224, 42, 205, 167, 96, 43, 171, 35, 96, 44, 173, 137, 96, 45, 139, 5, 96, 46, 141, 107, 96, 47, 106, 231, 96, 48, 109, 77, 96, 49, 74, 201, 96, 50, 86, 105, 224, 51, 42, 171, 96, 52, 54, 75, 224, 53, 10, 141, 96, 54, 22, 45, 224, 54, 243, 169, 224, 55, 246, 15, 224, 56, 211, 139, 224, 57, 213, 241, 224, 58, 179, 109, 224, 59, 191, 14, 96, 60, 147, 79, 224, 61, 158, 240, 96, 62, 115, 49, 224, 63, 126, 210, 96, 64, 92, 78, 96, 65, 94, 180, 96, 66, 60, 48, 96, 67, 62, 150, 96, 68, 28, 18, 96, 69, 30, 120, 96, 69, 251, 244, 96, 70, 254, 90, 96, 71, 247, 133, 224, 72, 222, 60, 96, 73, 215, 103, 224, 74, 190, 30, 96, 75, 183, 73, 224, 76, 158, 0, 96, 77, 151, 43, 224, 78, 125, 226, 96, 79, 119, 13, 224, 80, 102, 254, 224, 81, 96, 42, 96, 82, 70, 224, 224, 83, 64, 12, 96, 84, 38, 194, 224, 85, 31, 238, 96, 86, 6, 164, 224, 86, 255, 208, 96, 87, 230, 134, 224, 88, 223, 178, 96, 89, 198, 104, 224, 90, 191, 148, 96, 91, 175, 133, 96, 92, 168, 176, 224, 93, 143, 103, 96, 94, 136, 146, 224, 95, 111, 73, 96, 96, 104, 116, 224, 97, 79, 43, 96, 98, 72, 86, 224, 99, 47, 13, 96, 100, 40, 56, 224, 101, 14, 239, 96, 102, 17, 85, 96, 102, 248, 11, 224, 103, 241, 55, 96, 104, 215, 237, 224, 105, 209, 25, 96, 106, 183, 207, 224, 107, 176, 251, 96, 108, 151, 177, 224, 109, 144, 221, 96, 110, 119, 147, 224, 111, 112, 191, 96, 112, 96, 176, 96, 113, 89, 219, 224, 114, 64, 146, 96, 115, 57, 189, 224, 116, 32, 116, 96, 117, 25, 159, 224, 118, 0, 86, 96, 118, 249, 129, 224, 119, 224, 56, 96, 120, 217, 99, 224, 121, 192, 26, 96, 122, 185, 69, 224, 123, 169, 54, 224, 124, 162, 98, 96, 125, 137, 24, 224, 126, 130, 68, 96, 127, 104, 250, 224, 127, 255, 255, 255, 1, 4, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 2, 0, 0, 171, 252, 0, 0, 0, 0, 172, 68, 0, 4, 0, 0, 193, 92, 1, 10, 0, 0, 179, 76, 0, 16, 0, 0, 179, 76, 0, 16, 76, 77, 84, 0, 43, 49, 50, 49, 53, 0, 43, 49, 51, 52, 53, 0, 43, 49, 50, 52, 53, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 50, 52, 53, 62, 45, 49, 50, 58, 52, 53, 60, 43, 49, 51, 52, 53, 62, 44, 77, 57, 46, 53, 46, 48, 47, 50, 58, 52, 53, 44, 77, 52, 46, 49, 46, 48, 47, 51, 58, 52, 53, 10}, + + "zoneinfo/Navajo": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 158, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 158, 166, 58, 144, 159, 187, 7, 128, 160, 134, 28, 144, 161, 154, 233, 128, 162, 101, 254, 144, 163, 132, 6, 0, 164, 69, 224, 144, 164, 143, 166, 128, 203, 137, 12, 144, 210, 35, 244, 112, 210, 97, 24, 0, 247, 47, 118, 144, 248, 40, 148, 0, 249, 15, 88, 144, 250, 8, 118, 0, 250, 248, 117, 16, 251, 232, 88, 0, 252, 216, 87, 16, 253, 200, 58, 0, 254, 184, 57, 16, 255, 168, 28, 0, 0, 152, 27, 16, 1, 135, 254, 0, 2, 119, 253, 16, 3, 113, 26, 128, 4, 97, 25, 144, 5, 80, 252, 128, 6, 64, 251, 144, 7, 48, 222, 128, 7, 141, 53, 144, 9, 16, 192, 128, 9, 173, 177, 16, 10, 240, 162, 128, 11, 224, 161, 144, 12, 217, 191, 0, 13, 192, 131, 144, 14, 185, 161, 0, 15, 169, 160, 16, 16, 153, 131, 0, 17, 137, 130, 16, 18, 121, 101, 0, 19, 105, 100, 16, 20, 89, 71, 0, 21, 73, 70, 16, 22, 57, 41, 0, 23, 41, 40, 16, 24, 34, 69, 128, 25, 9, 10, 16, 26, 2, 39, 128, 26, 242, 38, 144, 27, 226, 9, 128, 28, 210, 8, 144, 29, 193, 235, 128, 30, 177, 234, 144, 31, 161, 205, 128, 32, 118, 29, 16, 33, 129, 175, 128, 34, 85, 255, 16, 35, 106, 204, 0, 36, 53, 225, 16, 37, 74, 174, 0, 38, 21, 195, 16, 39, 42, 144, 0, 39, 254, 223, 144, 41, 10, 114, 0, 41, 222, 193, 144, 42, 234, 84, 0, 43, 190, 163, 144, 44, 211, 112, 128, 45, 158, 133, 144, 46, 179, 82, 128, 47, 126, 103, 144, 48, 147, 52, 128, 49, 103, 132, 16, 50, 115, 22, 128, 51, 71, 102, 16, 52, 82, 248, 128, 53, 39, 72, 16, 54, 50, 218, 128, 55, 7, 42, 16, 56, 27, 247, 0, 56, 231, 12, 16, 57, 251, 217, 0, 58, 198, 238, 16, 59, 219, 187, 0, 60, 176, 10, 144, 61, 187, 157, 0, 62, 143, 236, 144, 63, 155, 127, 0, 64, 111, 206, 144, 65, 132, 155, 128, 66, 79, 176, 144, 67, 100, 125, 128, 68, 47, 146, 144, 69, 68, 95, 128, 69, 243, 197, 16, 71, 45, 124, 0, 71, 211, 167, 16, 73, 13, 94, 0, 73, 179, 137, 16, 74, 237, 64, 0, 75, 156, 165, 144, 76, 214, 92, 128, 77, 124, 135, 144, 78, 182, 62, 128, 79, 92, 105, 144, 80, 150, 32, 128, 81, 60, 75, 144, 82, 118, 2, 128, 83, 28, 45, 144, 84, 85, 228, 128, 84, 252, 15, 144, 86, 53, 198, 128, 86, 229, 44, 16, 88, 30, 227, 0, 88, 197, 14, 16, 89, 254, 197, 0, 90, 164, 240, 16, 91, 222, 167, 0, 92, 132, 210, 16, 93, 190, 137, 0, 94, 100, 180, 16, 95, 158, 107, 0, 96, 77, 208, 144, 97, 135, 135, 128, 98, 45, 178, 144, 99, 103, 105, 128, 100, 13, 148, 144, 101, 71, 75, 128, 101, 237, 118, 144, 103, 39, 45, 128, 103, 205, 88, 144, 105, 7, 15, 128, 105, 173, 58, 144, 106, 230, 241, 128, 107, 150, 87, 16, 108, 208, 14, 0, 109, 118, 57, 16, 110, 175, 240, 0, 111, 86, 27, 16, 112, 143, 210, 0, 113, 53, 253, 16, 114, 111, 180, 0, 115, 21, 223, 16, 116, 79, 150, 0, 116, 254, 251, 144, 118, 56, 178, 128, 118, 222, 221, 144, 120, 24, 148, 128, 120, 190, 191, 144, 121, 248, 118, 128, 122, 158, 161, 144, 123, 216, 88, 128, 124, 126, 131, 144, 125, 184, 58, 128, 126, 94, 101, 144, 127, 152, 28, 128, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 157, 148, 0, 0, 255, 255, 171, 160, 1, 4, 255, 255, 157, 144, 0, 8, 255, 255, 171, 160, 1, 12, 255, 255, 171, 160, 1, 16, 76, 77, 84, 0, 77, 68, 84, 0, 77, 83, 84, 0, 77, 87, 84, 0, 77, 80, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 10, 77, 83, 84, 55, 77, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/PRC": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 200, 92, 1, 128, 200, 250, 39, 112, 201, 213, 14, 128, 202, 219, 90, 240, 30, 186, 54, 0, 31, 105, 127, 112, 32, 126, 104, 128, 33, 73, 97, 112, 34, 94, 74, 128, 35, 41, 67, 112, 36, 71, 103, 0, 37, 18, 95, 240, 38, 39, 73, 0, 38, 242, 65, 240, 40, 7, 43, 0, 40, 210, 35, 240, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 0, 0, 113, 215, 0, 0, 0, 0, 126, 144, 1, 4, 0, 0, 112, 128, 0, 8, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 45, 56, 10}, + + "zoneinfo/PST8PDT": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 149, 0, 0, 0, 4, 0, 0, 0, 16, 158, 166, 72, 160, 159, 187, 21, 144, 160, 134, 42, 160, 161, 154, 247, 144, 203, 137, 26, 160, 210, 35, 244, 112, 210, 97, 38, 16, 250, 248, 131, 32, 251, 232, 102, 16, 252, 216, 101, 32, 253, 200, 72, 16, 254, 184, 71, 32, 255, 168, 42, 16, 0, 152, 41, 32, 1, 136, 12, 16, 2, 120, 11, 32, 3, 113, 40, 144, 4, 97, 39, 160, 5, 81, 10, 144, 6, 65, 9, 160, 7, 48, 236, 144, 7, 141, 67, 160, 9, 16, 206, 144, 9, 173, 191, 32, 10, 240, 176, 144, 11, 224, 175, 160, 12, 217, 205, 16, 13, 192, 145, 160, 14, 185, 175, 16, 15, 169, 174, 32, 16, 153, 145, 16, 17, 137, 144, 32, 18, 121, 115, 16, 19, 105, 114, 32, 20, 89, 85, 16, 21, 73, 84, 32, 22, 57, 55, 16, 23, 41, 54, 32, 24, 34, 83, 144, 25, 9, 24, 32, 26, 2, 53, 144, 26, 242, 52, 160, 27, 226, 23, 144, 28, 210, 22, 160, 29, 193, 249, 144, 30, 177, 248, 160, 31, 161, 219, 144, 32, 118, 43, 32, 33, 129, 189, 144, 34, 86, 13, 32, 35, 106, 218, 16, 36, 53, 239, 32, 37, 74, 188, 16, 38, 21, 209, 32, 39, 42, 158, 16, 39, 254, 237, 160, 41, 10, 128, 16, 41, 222, 207, 160, 42, 234, 98, 16, 43, 190, 177, 160, 44, 211, 126, 144, 45, 158, 147, 160, 46, 179, 96, 144, 47, 126, 117, 160, 48, 147, 66, 144, 49, 103, 146, 32, 50, 115, 36, 144, 51, 71, 116, 32, 52, 83, 6, 144, 53, 39, 86, 32, 54, 50, 232, 144, 55, 7, 56, 32, 56, 28, 5, 16, 56, 231, 26, 32, 57, 251, 231, 16, 58, 198, 252, 32, 59, 219, 201, 16, 60, 176, 24, 160, 61, 187, 171, 16, 62, 143, 250, 160, 63, 155, 141, 16, 64, 111, 220, 160, 65, 132, 169, 144, 66, 79, 190, 160, 67, 100, 139, 144, 68, 47, 160, 160, 69, 68, 109, 144, 69, 243, 211, 32, 71, 45, 138, 16, 71, 211, 181, 32, 73, 13, 108, 16, 73, 179, 151, 32, 74, 237, 78, 16, 75, 156, 179, 160, 76, 214, 106, 144, 77, 124, 149, 160, 78, 182, 76, 144, 79, 92, 119, 160, 80, 150, 46, 144, 81, 60, 89, 160, 82, 118, 16, 144, 83, 28, 59, 160, 84, 85, 242, 144, 84, 252, 29, 160, 86, 53, 212, 144, 86, 229, 58, 32, 88, 30, 241, 16, 88, 197, 28, 32, 89, 254, 211, 16, 90, 164, 254, 32, 91, 222, 181, 16, 92, 132, 224, 32, 93, 190, 151, 16, 94, 100, 194, 32, 95, 158, 121, 16, 96, 77, 222, 160, 97, 135, 149, 144, 98, 45, 192, 160, 99, 103, 119, 144, 100, 13, 162, 160, 101, 71, 89, 144, 101, 237, 132, 160, 103, 39, 59, 144, 103, 205, 102, 160, 105, 7, 29, 144, 105, 173, 72, 160, 106, 230, 255, 144, 107, 150, 101, 32, 108, 208, 28, 16, 109, 118, 71, 32, 110, 175, 254, 16, 111, 86, 41, 32, 112, 143, 224, 16, 113, 54, 11, 32, 114, 111, 194, 16, 115, 21, 237, 32, 116, 79, 164, 16, 116, 255, 9, 160, 118, 56, 192, 144, 118, 222, 235, 160, 120, 24, 162, 144, 120, 190, 205, 160, 121, 248, 132, 144, 122, 158, 175, 160, 123, 216, 102, 144, 124, 126, 145, 160, 125, 184, 72, 144, 126, 94, 115, 160, 127, 152, 42, 144, 0, 1, 0, 1, 2, 3, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 255, 255, 157, 144, 1, 0, 255, 255, 143, 128, 0, 4, 255, 255, 157, 144, 1, 8, 255, 255, 157, 144, 1, 12, 80, 68, 84, 0, 80, 83, 84, 0, 80, 87, 84, 0, 80, 80, 84, 0, 0, 0, 0, 1, 0, 0, 0, 1, 10, 80, 83, 84, 56, 80, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/Pacific/Apia": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 60, 0, 0, 0, 7, 0, 0, 0, 26, 128, 0, 0, 0, 145, 5, 252, 0, 218, 98, 4, 56, 76, 159, 39, 176, 77, 151, 43, 224, 78, 125, 226, 96, 78, 253, 139, 160, 79, 119, 13, 224, 80, 102, 254, 224, 81, 96, 42, 96, 82, 70, 224, 224, 83, 64, 12, 96, 84, 38, 194, 224, 85, 31, 238, 96, 86, 6, 164, 224, 86, 255, 208, 96, 87, 230, 134, 224, 88, 223, 178, 96, 89, 198, 104, 224, 90, 191, 148, 96, 91, 175, 133, 96, 92, 168, 176, 224, 93, 143, 103, 96, 94, 136, 146, 224, 95, 111, 73, 96, 96, 104, 116, 224, 97, 79, 43, 96, 98, 72, 86, 224, 99, 47, 13, 96, 100, 40, 56, 224, 101, 14, 239, 96, 102, 17, 85, 96, 102, 248, 11, 224, 103, 241, 55, 96, 104, 215, 237, 224, 105, 209, 25, 96, 106, 183, 207, 224, 107, 176, 251, 96, 108, 151, 177, 224, 109, 144, 221, 96, 110, 119, 147, 224, 111, 112, 191, 96, 112, 96, 176, 96, 113, 89, 219, 224, 114, 64, 146, 96, 115, 57, 189, 224, 116, 32, 116, 96, 117, 25, 159, 224, 118, 0, 86, 96, 118, 249, 129, 224, 119, 224, 56, 96, 120, 217, 99, 224, 121, 192, 26, 96, 122, 185, 69, 224, 123, 169, 54, 224, 124, 162, 98, 96, 125, 137, 24, 224, 126, 130, 68, 96, 127, 104, 250, 224, 127, 255, 255, 255, 1, 2, 4, 3, 4, 3, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 6, 0, 0, 176, 128, 0, 0, 255, 255, 95, 0, 0, 0, 255, 255, 94, 72, 0, 4, 255, 255, 115, 96, 1, 10, 255, 255, 101, 80, 0, 14, 0, 0, 182, 208, 0, 18, 0, 0, 196, 224, 1, 22, 76, 77, 84, 0, 45, 49, 49, 51, 48, 0, 45, 49, 48, 0, 45, 49, 49, 0, 43, 49, 51, 0, 43, 49, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 51, 62, 45, 49, 51, 60, 43, 49, 52, 62, 44, 77, 57, 46, 53, 46, 48, 47, 51, 44, 77, 52, 46, 49, 46, 48, 47, 52, 10}, + + "zoneinfo/Pacific/Auckland": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 156, 0, 0, 0, 7, 0, 0, 0, 19, 128, 0, 0, 0, 176, 180, 178, 232, 177, 81, 135, 88, 178, 120, 229, 104, 179, 67, 229, 96, 180, 88, 199, 104, 181, 35, 199, 96, 182, 56, 169, 104, 183, 3, 169, 96, 184, 24, 139, 104, 184, 236, 197, 224, 185, 248, 109, 104, 186, 204, 167, 224, 187, 216, 79, 104, 188, 227, 232, 224, 189, 174, 246, 232, 190, 195, 202, 224, 191, 142, 216, 232, 192, 163, 172, 224, 193, 110, 186, 232, 194, 131, 142, 224, 195, 78, 156, 232, 196, 99, 112, 224, 197, 46, 126, 232, 198, 76, 141, 96, 199, 14, 96, 232, 200, 44, 111, 96, 200, 247, 125, 104, 210, 218, 154, 64, 9, 24, 253, 224, 9, 172, 165, 224, 10, 239, 165, 96, 11, 158, 252, 224, 12, 216, 193, 224, 13, 126, 222, 224, 14, 184, 163, 224, 15, 94, 192, 224, 16, 152, 133, 224, 17, 62, 162, 224, 18, 120, 103, 224, 19, 30, 132, 224, 20, 88, 73, 224, 20, 254, 102, 224, 22, 56, 43, 224, 22, 231, 131, 96, 24, 33, 72, 96, 24, 199, 101, 96, 26, 1, 42, 96, 26, 167, 71, 96, 27, 225, 12, 96, 28, 135, 41, 96, 29, 192, 238, 96, 30, 103, 11, 96, 31, 160, 208, 96, 32, 70, 237, 96, 33, 128, 178, 96, 34, 48, 9, 224, 35, 105, 206, 224, 36, 15, 235, 224, 37, 46, 1, 96, 38, 2, 66, 224, 39, 13, 227, 96, 39, 226, 36, 224, 40, 237, 197, 96, 41, 194, 6, 224, 42, 205, 167, 96, 43, 171, 35, 96, 44, 173, 137, 96, 45, 139, 5, 96, 46, 141, 107, 96, 47, 106, 231, 96, 48, 109, 77, 96, 49, 74, 201, 96, 50, 86, 105, 224, 51, 42, 171, 96, 52, 54, 75, 224, 53, 10, 141, 96, 54, 22, 45, 224, 54, 243, 169, 224, 55, 246, 15, 224, 56, 211, 139, 224, 57, 213, 241, 224, 58, 179, 109, 224, 59, 191, 14, 96, 60, 147, 79, 224, 61, 158, 240, 96, 62, 115, 49, 224, 63, 126, 210, 96, 64, 92, 78, 96, 65, 94, 180, 96, 66, 60, 48, 96, 67, 62, 150, 96, 68, 28, 18, 96, 69, 30, 120, 96, 69, 251, 244, 96, 70, 254, 90, 96, 71, 247, 133, 224, 72, 222, 60, 96, 73, 215, 103, 224, 74, 190, 30, 96, 75, 183, 73, 224, 76, 158, 0, 96, 77, 151, 43, 224, 78, 125, 226, 96, 79, 119, 13, 224, 80, 102, 254, 224, 81, 96, 42, 96, 82, 70, 224, 224, 83, 64, 12, 96, 84, 38, 194, 224, 85, 31, 238, 96, 86, 6, 164, 224, 86, 255, 208, 96, 87, 230, 134, 224, 88, 223, 178, 96, 89, 198, 104, 224, 90, 191, 148, 96, 91, 175, 133, 96, 92, 168, 176, 224, 93, 143, 103, 96, 94, 136, 146, 224, 95, 111, 73, 96, 96, 104, 116, 224, 97, 79, 43, 96, 98, 72, 86, 224, 99, 47, 13, 96, 100, 40, 56, 224, 101, 14, 239, 96, 102, 17, 85, 96, 102, 248, 11, 224, 103, 241, 55, 96, 104, 215, 237, 224, 105, 209, 25, 96, 106, 183, 207, 224, 107, 176, 251, 96, 108, 151, 177, 224, 109, 144, 221, 96, 110, 119, 147, 224, 111, 112, 191, 96, 112, 96, 176, 96, 113, 89, 219, 224, 114, 64, 146, 96, 115, 57, 189, 224, 116, 32, 116, 96, 117, 25, 159, 224, 118, 0, 86, 96, 118, 249, 129, 224, 119, 224, 56, 96, 120, 217, 99, 224, 121, 192, 26, 96, 122, 185, 69, 224, 123, 169, 54, 224, 124, 162, 98, 96, 125, 137, 24, 224, 126, 130, 68, 96, 127, 104, 250, 224, 2, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 6, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 0, 0, 163, 216, 0, 0, 0, 0, 175, 200, 1, 4, 0, 0, 161, 184, 0, 9, 0, 0, 168, 192, 1, 4, 0, 0, 182, 208, 1, 14, 0, 0, 168, 192, 0, 4, 0, 0, 168, 192, 0, 4, 76, 77, 84, 0, 78, 90, 83, 84, 0, 78, 90, 77, 84, 0, 78, 90, 68, 84, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 10, 78, 90, 83, 84, 45, 49, 50, 78, 90, 68, 84, 44, 77, 57, 46, 53, 46, 48, 44, 77, 52, 46, 49, 46, 48, 47, 51, 10}, + + "zoneinfo/Pacific/Bougainville": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 4, 0, 0, 0, 17, 128, 0, 0, 0, 204, 67, 54, 96, 210, 43, 108, 240, 84, 158, 215, 128, 127, 255, 255, 255, 1, 2, 1, 3, 3, 0, 0, 137, 240, 0, 0, 0, 0, 140, 160, 0, 5, 0, 0, 126, 144, 0, 9, 0, 0, 154, 176, 0, 13, 80, 77, 77, 84, 0, 43, 49, 48, 0, 43, 48, 57, 0, 43, 49, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 49, 62, 45, 49, 49, 10}, + + "zoneinfo/Pacific/Chatham": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 130, 0, 0, 0, 5, 0, 0, 0, 22, 128, 0, 0, 0, 210, 218, 150, 188, 9, 24, 253, 224, 9, 172, 165, 224, 10, 239, 165, 96, 11, 158, 252, 224, 12, 216, 193, 224, 13, 126, 222, 224, 14, 184, 163, 224, 15, 94, 192, 224, 16, 152, 133, 224, 17, 62, 162, 224, 18, 120, 103, 224, 19, 30, 132, 224, 20, 88, 73, 224, 20, 254, 102, 224, 22, 56, 43, 224, 22, 231, 131, 96, 24, 33, 72, 96, 24, 199, 101, 96, 26, 1, 42, 96, 26, 167, 71, 96, 27, 225, 12, 96, 28, 135, 41, 96, 29, 192, 238, 96, 30, 103, 11, 96, 31, 160, 208, 96, 32, 70, 237, 96, 33, 128, 178, 96, 34, 48, 9, 224, 35, 105, 206, 224, 36, 15, 235, 224, 37, 46, 1, 96, 38, 2, 66, 224, 39, 13, 227, 96, 39, 226, 36, 224, 40, 237, 197, 96, 41, 194, 6, 224, 42, 205, 167, 96, 43, 171, 35, 96, 44, 173, 137, 96, 45, 139, 5, 96, 46, 141, 107, 96, 47, 106, 231, 96, 48, 109, 77, 96, 49, 74, 201, 96, 50, 86, 105, 224, 51, 42, 171, 96, 52, 54, 75, 224, 53, 10, 141, 96, 54, 22, 45, 224, 54, 243, 169, 224, 55, 246, 15, 224, 56, 211, 139, 224, 57, 213, 241, 224, 58, 179, 109, 224, 59, 191, 14, 96, 60, 147, 79, 224, 61, 158, 240, 96, 62, 115, 49, 224, 63, 126, 210, 96, 64, 92, 78, 96, 65, 94, 180, 96, 66, 60, 48, 96, 67, 62, 150, 96, 68, 28, 18, 96, 69, 30, 120, 96, 69, 251, 244, 96, 70, 254, 90, 96, 71, 247, 133, 224, 72, 222, 60, 96, 73, 215, 103, 224, 74, 190, 30, 96, 75, 183, 73, 224, 76, 158, 0, 96, 77, 151, 43, 224, 78, 125, 226, 96, 79, 119, 13, 224, 80, 102, 254, 224, 81, 96, 42, 96, 82, 70, 224, 224, 83, 64, 12, 96, 84, 38, 194, 224, 85, 31, 238, 96, 86, 6, 164, 224, 86, 255, 208, 96, 87, 230, 134, 224, 88, 223, 178, 96, 89, 198, 104, 224, 90, 191, 148, 96, 91, 175, 133, 96, 92, 168, 176, 224, 93, 143, 103, 96, 94, 136, 146, 224, 95, 111, 73, 96, 96, 104, 116, 224, 97, 79, 43, 96, 98, 72, 86, 224, 99, 47, 13, 96, 100, 40, 56, 224, 101, 14, 239, 96, 102, 17, 85, 96, 102, 248, 11, 224, 103, 241, 55, 96, 104, 215, 237, 224, 105, 209, 25, 96, 106, 183, 207, 224, 107, 176, 251, 96, 108, 151, 177, 224, 109, 144, 221, 96, 110, 119, 147, 224, 111, 112, 191, 96, 112, 96, 176, 96, 113, 89, 219, 224, 114, 64, 146, 96, 115, 57, 189, 224, 116, 32, 116, 96, 117, 25, 159, 224, 118, 0, 86, 96, 118, 249, 129, 224, 119, 224, 56, 96, 120, 217, 99, 224, 121, 192, 26, 96, 122, 185, 69, 224, 123, 169, 54, 224, 124, 162, 98, 96, 125, 137, 24, 224, 126, 130, 68, 96, 127, 104, 250, 224, 127, 255, 255, 255, 1, 4, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 2, 0, 0, 171, 252, 0, 0, 0, 0, 172, 68, 0, 4, 0, 0, 193, 92, 1, 10, 0, 0, 179, 76, 0, 16, 0, 0, 179, 76, 0, 16, 76, 77, 84, 0, 43, 49, 50, 49, 53, 0, 43, 49, 51, 52, 53, 0, 43, 49, 50, 52, 53, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 50, 52, 53, 62, 45, 49, 50, 58, 52, 53, 60, 43, 49, 51, 52, 53, 62, 44, 77, 57, 46, 53, 46, 48, 47, 50, 58, 52, 53, 44, 77, 52, 46, 49, 46, 48, 47, 51, 58, 52, 53, 10}, + + "zoneinfo/Pacific/Chuuk": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 127, 255, 255, 255, 1, 1, 0, 0, 142, 76, 0, 0, 0, 0, 140, 160, 0, 4, 76, 77, 84, 0, 43, 49, 48, 0, 0, 0, 0, 0, 10, 60, 43, 49, 48, 62, 45, 49, 48, 10}, + + "zoneinfo/Pacific/Easter": []byte{84, 90, 105, 102, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 140, 0, 0, 0, 7, 0, 0, 0, 20, 128, 0, 0, 0, 185, 199, 64, 136, 253, 209, 60, 64, 254, 146, 250, 176, 255, 204, 205, 192, 0, 114, 220, 176, 1, 117, 80, 192, 2, 64, 73, 176, 3, 85, 50, 192, 4, 32, 43, 176, 5, 62, 79, 64, 6, 0, 13, 176, 7, 11, 188, 64, 7, 223, 239, 176, 8, 254, 19, 64, 9, 191, 209, 176, 10, 221, 245, 64, 11, 168, 238, 48, 12, 189, 215, 64, 13, 136, 208, 48, 14, 157, 185, 64, 15, 104, 178, 48, 16, 134, 213, 192, 17, 72, 148, 48, 18, 102, 183, 192, 19, 40, 118, 48, 20, 70, 153, 192, 21, 17, 146, 176, 22, 38, 123, 192, 22, 241, 116, 176, 24, 6, 93, 192, 24, 209, 86, 176, 25, 230, 63, 192, 26, 177, 56, 176, 27, 207, 92, 64, 28, 145, 26, 176, 29, 175, 62, 64, 30, 112, 252, 176, 31, 143, 32, 64, 32, 127, 3, 48, 33, 111, 2, 64, 34, 57, 251, 48, 35, 78, 228, 64, 36, 25, 221, 48, 37, 56, 0, 192, 37, 249, 191, 48, 38, 242, 248, 192, 39, 217, 161, 48, 40, 247, 196, 192, 41, 194, 189, 176, 42, 215, 166, 192, 43, 162, 159, 176, 44, 183, 136, 192, 45, 130, 129, 176, 46, 151, 106, 192, 47, 98, 99, 176, 48, 128, 135, 64, 49, 66, 69, 176, 50, 96, 105, 64, 51, 61, 215, 48, 52, 64, 75, 64, 53, 11, 68, 48, 54, 13, 184, 64, 55, 6, 213, 176, 56, 0, 15, 64, 56, 203, 8, 48, 57, 233, 43, 192, 58, 170, 234, 48, 59, 201, 13, 192, 60, 138, 204, 48, 61, 168, 239, 192, 62, 106, 174, 48, 63, 136, 209, 192, 64, 83, 202, 176, 65, 104, 179, 192, 66, 51, 172, 176, 67, 72, 149, 192, 68, 19, 142, 176, 69, 49, 178, 64, 69, 243, 112, 176, 71, 17, 148, 64, 71, 239, 2, 48, 72, 241, 118, 64, 73, 188, 111, 48, 74, 209, 88, 64, 75, 184, 0, 176, 76, 177, 58, 64, 77, 198, 7, 48, 78, 80, 130, 192, 79, 156, 174, 176, 80, 66, 217, 192, 81, 124, 144, 176, 82, 43, 246, 64, 83, 92, 114, 176, 84, 11, 216, 64, 87, 55, 230, 48, 87, 175, 236, 192, 89, 23, 200, 48, 89, 143, 206, 192, 90, 247, 170, 48, 91, 111, 176, 192, 92, 215, 140, 48, 93, 79, 146, 192, 94, 183, 110, 48, 95, 47, 116, 192, 96, 151, 80, 48, 97, 24, 145, 64, 98, 128, 108, 176, 98, 248, 115, 64, 100, 96, 78, 176, 100, 216, 85, 64, 102, 64, 48, 176, 102, 184, 55, 64, 104, 32, 18, 176, 104, 152, 25, 64, 105, 255, 244, 176, 106, 119, 251, 64, 107, 223, 214, 176, 108, 97, 23, 192, 109, 200, 243, 48, 110, 64, 249, 192, 111, 168, 213, 48, 112, 32, 219, 192, 113, 136, 183, 48, 114, 0, 189, 192, 115, 104, 153, 48, 115, 224, 159, 192, 117, 72, 123, 48, 117, 201, 188, 64, 119, 49, 151, 176, 119, 169, 158, 64, 121, 17, 121, 176, 121, 137, 128, 64, 122, 241, 91, 176, 123, 105, 98, 64, 124, 209, 61, 176, 125, 73, 68, 64, 126, 177, 31, 176, 127, 41, 38, 64, 127, 255, 255, 255, 1, 4, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 6, 255, 255, 153, 120, 0, 0, 255, 255, 153, 120, 0, 4, 255, 255, 171, 160, 1, 8, 255, 255, 157, 144, 0, 12, 255, 255, 157, 144, 0, 12, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 16, 76, 77, 84, 0, 69, 77, 84, 0, 45, 48, 54, 0, 45, 48, 55, 0, 45, 48, 53, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 10, 60, 45, 48, 54, 62, 54, 60, 45, 48, 53, 62, 44, 77, 56, 46, 50, 46, 54, 47, 50, 50, 44, 77, 53, 46, 50, 46, 54, 47, 50, 50, 10}, + + "zoneinfo/Pacific/Efate": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 23, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 146, 245, 194, 180, 25, 210, 247, 208, 26, 194, 218, 192, 27, 218, 102, 208, 28, 162, 188, 192, 29, 155, 246, 80, 30, 130, 158, 192, 31, 123, 216, 80, 32, 107, 187, 64, 33, 91, 186, 80, 34, 75, 157, 64, 35, 59, 156, 80, 36, 43, 127, 64, 37, 27, 126, 80, 38, 11, 97, 64, 38, 251, 96, 80, 39, 235, 67, 64, 40, 228, 124, 208, 41, 129, 81, 64, 42, 233, 72, 208, 43, 97, 51, 64, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 0, 0, 157, 204, 0, 0, 0, 0, 168, 192, 1, 4, 0, 0, 154, 176, 0, 8, 76, 77, 84, 0, 43, 49, 50, 0, 43, 49, 49, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 49, 62, 45, 49, 49, 10}, + + "zoneinfo/Pacific/Enderbury": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 16, 128, 0, 0, 0, 18, 86, 4, 192, 47, 6, 139, 48, 127, 255, 255, 255, 1, 2, 3, 3, 255, 255, 95, 156, 0, 0, 255, 255, 87, 64, 0, 4, 255, 255, 101, 80, 0, 8, 0, 0, 182, 208, 0, 12, 76, 77, 84, 0, 45, 49, 50, 0, 45, 49, 49, 0, 43, 49, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 51, 62, 45, 49, 51, 10}, + + "zoneinfo/Pacific/Fakaofo": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 78, 253, 153, 176, 127, 255, 255, 255, 1, 2, 2, 255, 255, 95, 120, 0, 0, 255, 255, 101, 80, 0, 4, 0, 0, 182, 208, 0, 8, 76, 77, 84, 0, 45, 49, 49, 0, 43, 49, 51, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 51, 62, 45, 49, 51, 10}, + + "zoneinfo/Pacific/Fiji": []byte{84, 90, 105, 102, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 65, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 154, 19, 177, 192, 54, 59, 23, 224, 54, 215, 250, 96, 56, 36, 52, 96, 56, 183, 220, 96, 75, 17, 44, 224, 75, 174, 15, 96, 76, 194, 234, 96, 77, 114, 65, 224, 78, 162, 204, 96, 79, 26, 196, 224, 80, 130, 174, 96, 80, 250, 166, 224, 82, 107, 202, 224, 82, 218, 122, 208, 84, 84, 231, 96, 84, 186, 106, 224, 86, 52, 201, 96, 86, 154, 76, 224, 88, 29, 229, 224, 88, 122, 46, 224, 89, 253, 199, 224, 90, 90, 16, 224, 91, 221, 169, 224, 92, 67, 45, 96, 93, 189, 139, 224, 94, 35, 15, 96, 95, 157, 109, 224, 96, 2, 241, 96, 97, 134, 138, 96, 97, 226, 211, 96, 99, 102, 108, 96, 99, 194, 181, 96, 101, 70, 78, 96, 101, 162, 151, 96, 103, 38, 48, 96, 103, 139, 179, 224, 105, 6, 18, 96, 105, 107, 149, 224, 106, 229, 244, 96, 107, 75, 119, 224, 108, 207, 16, 224, 109, 43, 89, 224, 110, 174, 242, 224, 111, 11, 59, 224, 112, 142, 212, 224, 112, 244, 88, 96, 114, 110, 182, 224, 114, 212, 58, 96, 116, 78, 152, 224, 116, 180, 28, 96, 118, 55, 181, 96, 118, 147, 254, 96, 120, 23, 151, 96, 120, 115, 224, 96, 121, 247, 121, 96, 122, 83, 194, 96, 123, 215, 91, 96, 124, 60, 222, 224, 125, 183, 61, 96, 126, 28, 192, 224, 127, 151, 31, 96, 127, 252, 162, 224, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 0, 0, 167, 192, 0, 0, 0, 0, 182, 208, 1, 4, 0, 0, 168, 192, 0, 8, 76, 77, 84, 0, 43, 49, 51, 0, 43, 49, 50, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 50, 62, 45, 49, 50, 60, 43, 49, 51, 62, 44, 77, 49, 49, 46, 49, 46, 48, 44, 77, 49, 46, 50, 46, 49, 47, 49, 52, 55, 10}, + + "zoneinfo/Pacific/Funafuti": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 127, 255, 255, 255, 1, 1, 0, 0, 168, 4, 0, 0, 0, 0, 168, 192, 0, 4, 76, 77, 84, 0, 43, 49, 50, 0, 0, 0, 0, 0, 10, 60, 43, 49, 50, 62, 45, 49, 50, 10}, + + "zoneinfo/Pacific/Galapagos": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 4, 0, 0, 0, 12, 128, 0, 0, 0, 182, 164, 76, 128, 30, 24, 196, 80, 43, 23, 10, 224, 43, 113, 244, 80, 127, 255, 255, 255, 0, 1, 3, 2, 3, 3, 255, 255, 172, 0, 0, 0, 255, 255, 185, 176, 0, 4, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 76, 77, 84, 0, 45, 48, 53, 0, 45, 48, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 54, 62, 54, 10}, + + "zoneinfo/Pacific/Gambier": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 148, 80, 72, 4, 127, 255, 255, 255, 0, 1, 1, 255, 255, 129, 124, 0, 0, 255, 255, 129, 112, 0, 4, 76, 77, 84, 0, 45, 48, 57, 0, 0, 0, 0, 0, 10, 60, 45, 48, 57, 62, 57, 10}, + + "zoneinfo/Pacific/Guadalcanal": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 148, 79, 51, 140, 127, 255, 255, 255, 0, 1, 1, 0, 0, 149, 244, 0, 0, 0, 0, 154, 176, 0, 4, 76, 77, 84, 0, 43, 49, 49, 0, 0, 0, 0, 0, 10, 60, 43, 49, 49, 62, 45, 49, 49, 10}, + + "zoneinfo/Pacific/Guam": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 13, 128, 0, 0, 0, 58, 67, 94, 96, 1, 2, 0, 0, 135, 180, 0, 0, 0, 0, 140, 160, 0, 4, 0, 0, 140, 160, 0, 8, 76, 77, 84, 0, 71, 83, 84, 0, 67, 104, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 67, 104, 83, 84, 45, 49, 48, 10}, + + "zoneinfo/Pacific/Honolulu": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 4, 0, 0, 0, 12, 128, 0, 0, 0, 187, 5, 67, 72, 187, 33, 113, 88, 203, 137, 61, 200, 210, 97, 73, 56, 213, 141, 115, 72, 1, 2, 1, 2, 1, 3, 255, 255, 108, 2, 0, 0, 255, 255, 108, 88, 0, 4, 255, 255, 122, 104, 1, 8, 255, 255, 115, 96, 0, 4, 76, 77, 84, 0, 72, 83, 84, 0, 72, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 72, 83, 84, 49, 48, 10}, + + "zoneinfo/Pacific/Johnston": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 4, 0, 0, 0, 12, 128, 0, 0, 0, 187, 5, 67, 72, 187, 33, 113, 88, 203, 137, 61, 200, 210, 97, 73, 56, 213, 141, 115, 72, 1, 2, 1, 2, 1, 3, 255, 255, 108, 2, 0, 0, 255, 255, 108, 88, 0, 4, 255, 255, 122, 104, 1, 8, 255, 255, 115, 96, 0, 4, 76, 77, 84, 0, 72, 83, 84, 0, 72, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 72, 83, 84, 49, 48, 10}, + + "zoneinfo/Pacific/Kiritimati": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 18, 128, 0, 0, 0, 18, 85, 242, 0, 47, 6, 125, 32, 127, 255, 255, 255, 1, 2, 3, 3, 255, 255, 108, 128, 0, 0, 255, 255, 106, 0, 0, 4, 255, 255, 115, 96, 0, 10, 0, 0, 196, 224, 0, 14, 76, 77, 84, 0, 45, 49, 48, 52, 48, 0, 45, 49, 48, 0, 43, 49, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 52, 62, 45, 49, 52, 10}, + + "zoneinfo/Pacific/Kosrae": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 12, 128, 0, 0, 0, 255, 134, 27, 80, 54, 139, 103, 64, 127, 255, 255, 255, 1, 2, 1, 1, 0, 0, 152, 204, 0, 0, 0, 0, 154, 176, 0, 4, 0, 0, 168, 192, 0, 8, 0, 0, 154, 176, 0, 4, 76, 77, 84, 0, 43, 49, 49, 0, 43, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 49, 62, 45, 49, 49, 10}, + + "zoneinfo/Pacific/Kwajalein": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 16, 128, 0, 0, 0, 255, 134, 27, 80, 44, 116, 188, 192, 127, 255, 255, 255, 1, 2, 3, 3, 0, 0, 156, 224, 0, 0, 0, 0, 154, 176, 0, 4, 255, 255, 87, 64, 0, 8, 0, 0, 168, 192, 0, 12, 76, 77, 84, 0, 43, 49, 49, 0, 45, 49, 50, 0, 43, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 50, 62, 45, 49, 50, 10}, + + "zoneinfo/Pacific/Majuro": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 12, 128, 0, 0, 0, 255, 134, 27, 80, 127, 255, 255, 255, 1, 2, 2, 0, 0, 160, 128, 0, 0, 0, 0, 154, 176, 0, 4, 0, 0, 168, 192, 0, 8, 76, 77, 84, 0, 43, 49, 49, 0, 43, 49, 50, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 50, 62, 45, 49, 50, 10}, + + "zoneinfo/Pacific/Marquesas": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 10, 128, 0, 0, 0, 148, 80, 76, 72, 127, 255, 255, 255, 0, 1, 1, 255, 255, 125, 56, 0, 0, 255, 255, 122, 104, 0, 4, 76, 77, 84, 0, 45, 48, 57, 51, 48, 0, 0, 0, 0, 0, 10, 60, 45, 48, 57, 51, 48, 62, 57, 58, 51, 48, 10}, + + "zoneinfo/Pacific/Midway": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 8, 128, 0, 0, 0, 145, 5, 251, 8, 1, 2, 0, 0, 177, 120, 0, 0, 255, 255, 95, 248, 0, 0, 255, 255, 101, 80, 0, 4, 76, 77, 84, 0, 83, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 83, 83, 84, 49, 49, 10}, + + "zoneinfo/Pacific/Nauru": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 4, 0, 0, 0, 18, 128, 0, 0, 0, 163, 231, 43, 4, 203, 180, 191, 72, 208, 66, 80, 112, 17, 139, 4, 200, 127, 255, 255, 255, 0, 1, 2, 1, 3, 3, 0, 0, 156, 124, 0, 0, 0, 0, 161, 184, 0, 4, 0, 0, 126, 144, 0, 10, 0, 0, 168, 192, 0, 14, 76, 77, 84, 0, 43, 49, 49, 51, 48, 0, 43, 48, 57, 0, 43, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 50, 62, 45, 49, 50, 10}, + + "zoneinfo/Pacific/Niue": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 20, 128, 0, 0, 0, 220, 67, 53, 96, 16, 116, 202, 56, 127, 255, 255, 255, 1, 2, 3, 3, 255, 255, 96, 180, 0, 0, 255, 255, 96, 160, 0, 4, 255, 255, 94, 72, 0, 10, 255, 255, 101, 80, 0, 16, 76, 77, 84, 0, 45, 49, 49, 50, 48, 0, 45, 49, 49, 51, 48, 0, 45, 49, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 49, 49, 62, 49, 49, 10}, + + "zoneinfo/Pacific/Norfolk": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 5, 0, 0, 0, 26, 128, 0, 0, 0, 220, 65, 248, 128, 9, 15, 202, 104, 9, 181, 217, 88, 86, 15, 230, 104, 127, 255, 255, 255, 1, 2, 3, 2, 4, 4, 0, 0, 157, 120, 0, 0, 0, 0, 157, 128, 0, 4, 0, 0, 161, 184, 0, 10, 0, 0, 175, 200, 1, 16, 0, 0, 154, 176, 0, 22, 76, 77, 84, 0, 43, 49, 49, 49, 50, 0, 43, 49, 49, 51, 48, 0, 43, 49, 50, 51, 48, 0, 43, 49, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 49, 62, 45, 49, 49, 10}, + + "zoneinfo/Pacific/Noumea": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 5, 0, 0, 0, 12, 128, 0, 0, 0, 146, 245, 196, 116, 14, 230, 186, 80, 15, 86, 187, 192, 16, 198, 156, 80, 17, 55, 239, 64, 50, 160, 75, 240, 51, 24, 68, 112, 127, 255, 255, 255, 0, 2, 1, 2, 1, 2, 3, 4, 4, 0, 0, 156, 12, 0, 0, 0, 0, 168, 192, 1, 4, 0, 0, 154, 176, 0, 8, 0, 0, 168, 192, 1, 4, 0, 0, 154, 176, 0, 8, 76, 77, 84, 0, 43, 49, 50, 0, 43, 49, 49, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 60, 43, 49, 49, 62, 45, 49, 49, 10}, + + "zoneinfo/Pacific/Pago_Pago": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 8, 128, 0, 0, 0, 145, 5, 251, 8, 1, 2, 0, 0, 177, 120, 0, 0, 255, 255, 95, 248, 0, 0, 255, 255, 101, 80, 0, 4, 76, 77, 84, 0, 83, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 83, 83, 84, 49, 49, 10}, + + "zoneinfo/Pacific/Palau": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 127, 255, 255, 255, 1, 1, 0, 0, 126, 20, 0, 0, 0, 0, 126, 144, 0, 4, 76, 77, 84, 0, 43, 48, 57, 0, 0, 0, 0, 0, 10, 60, 43, 48, 57, 62, 45, 57, 10}, + + "zoneinfo/Pacific/Pitcairn": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 14, 128, 0, 0, 0, 53, 68, 66, 8, 127, 255, 255, 255, 1, 2, 2, 255, 255, 134, 12, 0, 0, 255, 255, 136, 120, 0, 4, 255, 255, 143, 128, 0, 10, 76, 77, 84, 0, 45, 48, 56, 51, 48, 0, 45, 48, 56, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 48, 56, 62, 56, 10}, + + "zoneinfo/Pacific/Pohnpei": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 127, 255, 255, 255, 1, 1, 0, 0, 148, 84, 0, 0, 0, 0, 154, 176, 0, 4, 76, 77, 84, 0, 43, 49, 49, 0, 0, 0, 0, 0, 10, 60, 43, 49, 49, 62, 45, 49, 49, 10}, + + "zoneinfo/Pacific/Ponape": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 127, 255, 255, 255, 1, 1, 0, 0, 148, 84, 0, 0, 0, 0, 154, 176, 0, 4, 76, 77, 84, 0, 43, 49, 49, 0, 0, 0, 0, 0, 10, 60, 43, 49, 49, 62, 45, 49, 49, 10}, + + "zoneinfo/Pacific/Port_Moresby": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 9, 128, 0, 0, 0, 127, 255, 255, 255, 1, 1, 0, 0, 137, 240, 0, 0, 0, 0, 140, 160, 0, 5, 80, 77, 77, 84, 0, 43, 49, 48, 0, 0, 0, 0, 0, 10, 60, 43, 49, 48, 62, 45, 49, 48, 10}, + + "zoneinfo/Pacific/Rarotonga": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 0, 4, 0, 0, 0, 20, 128, 0, 0, 0, 16, 172, 27, 40, 17, 63, 181, 24, 18, 121, 129, 32, 19, 31, 151, 24, 20, 89, 99, 32, 20, 255, 121, 24, 22, 57, 69, 32, 22, 232, 149, 152, 24, 34, 97, 160, 24, 200, 119, 152, 26, 2, 67, 160, 26, 168, 89, 152, 27, 226, 37, 160, 28, 136, 59, 152, 29, 194, 7, 160, 30, 104, 29, 152, 31, 161, 233, 160, 32, 71, 255, 152, 33, 129, 203, 160, 34, 49, 28, 24, 35, 106, 232, 32, 36, 16, 254, 24, 37, 74, 202, 32, 37, 240, 224, 24, 39, 42, 172, 32, 39, 208, 194, 24, 127, 255, 255, 255, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 2, 255, 255, 106, 56, 0, 0, 255, 255, 108, 88, 0, 4, 255, 255, 115, 96, 0, 10, 255, 255, 122, 104, 1, 14, 76, 77, 84, 0, 45, 49, 48, 51, 48, 0, 45, 49, 48, 0, 45, 48, 57, 51, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 45, 49, 48, 62, 49, 48, 10}, + + "zoneinfo/Pacific/Saipan": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 13, 128, 0, 0, 0, 58, 67, 94, 96, 1, 2, 0, 0, 135, 180, 0, 0, 0, 0, 140, 160, 0, 4, 0, 0, 140, 160, 0, 8, 76, 77, 84, 0, 71, 83, 84, 0, 67, 104, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 67, 104, 83, 84, 45, 49, 48, 10}, + + "zoneinfo/Pacific/Samoa": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 8, 128, 0, 0, 0, 145, 5, 251, 8, 1, 2, 0, 0, 177, 120, 0, 0, 255, 255, 95, 248, 0, 0, 255, 255, 101, 80, 0, 4, 76, 77, 84, 0, 83, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 83, 83, 84, 49, 49, 10}, + + "zoneinfo/Pacific/Tahiti": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 148, 80, 85, 184, 127, 255, 255, 255, 0, 1, 1, 255, 255, 115, 200, 0, 0, 255, 255, 115, 96, 0, 4, 76, 77, 84, 0, 45, 49, 48, 0, 0, 0, 0, 0, 10, 60, 45, 49, 48, 62, 49, 48, 10}, + + "zoneinfo/Pacific/Tarawa": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 127, 255, 255, 255, 1, 1, 0, 0, 162, 52, 0, 0, 0, 0, 168, 192, 0, 4, 76, 77, 84, 0, 43, 49, 50, 0, 0, 0, 0, 0, 10, 60, 43, 49, 50, 62, 45, 49, 50, 10}, + + "zoneinfo/Pacific/Tongatapu": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 6, 0, 0, 0, 18, 128, 0, 0, 0, 201, 115, 66, 144, 55, 251, 71, 208, 56, 211, 125, 208, 58, 4, 8, 80, 58, 114, 184, 64, 59, 227, 234, 80, 60, 82, 154, 64, 88, 29, 215, 208, 88, 122, 32, 208, 127, 255, 255, 255, 1, 2, 3, 4, 5, 2, 5, 2, 5, 2, 2, 0, 0, 173, 72, 0, 0, 0, 0, 173, 112, 0, 4, 0, 0, 182, 208, 0, 10, 0, 0, 196, 224, 1, 14, 0, 0, 182, 208, 0, 10, 0, 0, 196, 224, 1, 14, 76, 77, 84, 0, 43, 49, 50, 50, 48, 0, 43, 49, 51, 0, 43, 49, 52, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 49, 51, 62, 45, 49, 51, 10}, + + "zoneinfo/Pacific/Truk": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 127, 255, 255, 255, 1, 1, 0, 0, 142, 76, 0, 0, 0, 0, 140, 160, 0, 4, 76, 77, 84, 0, 43, 49, 48, 0, 0, 0, 0, 0, 10, 60, 43, 49, 48, 62, 45, 49, 48, 10}, + + "zoneinfo/Pacific/Wake": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 127, 255, 255, 255, 1, 1, 0, 0, 156, 52, 0, 0, 0, 0, 168, 192, 0, 4, 76, 77, 84, 0, 43, 49, 50, 0, 0, 0, 0, 0, 10, 60, 43, 49, 50, 62, 45, 49, 50, 10}, + + "zoneinfo/Pacific/Wallis": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 127, 255, 255, 255, 1, 1, 0, 0, 172, 88, 0, 0, 0, 0, 168, 192, 0, 4, 76, 77, 84, 0, 43, 49, 50, 0, 0, 0, 0, 0, 10, 60, 43, 49, 50, 62, 45, 49, 50, 10}, + + "zoneinfo/Pacific/Yap": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 8, 128, 0, 0, 0, 127, 255, 255, 255, 1, 1, 0, 0, 142, 76, 0, 0, 0, 0, 140, 160, 0, 4, 76, 77, 84, 0, 43, 49, 48, 0, 0, 0, 0, 0, 10, 60, 43, 49, 48, 62, 45, 49, 48, 10}, + + "zoneinfo/Poland": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 168, 0, 0, 0, 11, 0, 0, 0, 26, 128, 0, 0, 0, 153, 168, 42, 208, 155, 12, 23, 96, 155, 213, 218, 240, 156, 217, 174, 144, 157, 164, 181, 144, 158, 185, 144, 144, 159, 132, 151, 144, 160, 154, 182, 0, 161, 101, 189, 0, 166, 125, 124, 96, 200, 118, 222, 16, 204, 231, 75, 16, 205, 169, 23, 144, 206, 162, 67, 16, 207, 146, 52, 16, 208, 128, 169, 96, 208, 132, 186, 0, 209, 149, 146, 112, 210, 138, 187, 96, 211, 98, 255, 112, 212, 75, 35, 144, 213, 94, 173, 16, 214, 41, 180, 16, 215, 44, 26, 16, 216, 9, 150, 16, 217, 2, 193, 144, 217, 233, 120, 16, 232, 84, 210, 0, 232, 241, 180, 128, 233, 225, 165, 128, 234, 209, 150, 128, 236, 20, 150, 0, 236, 186, 179, 0, 237, 170, 164, 0, 238, 154, 149, 0, 239, 212, 90, 0, 240, 122, 119, 0, 241, 180, 60, 0, 242, 90, 89, 0, 243, 148, 30, 0, 244, 58, 59, 0, 245, 125, 58, 128, 246, 26, 29, 0, 13, 42, 253, 112, 13, 164, 85, 128, 14, 139, 12, 0, 15, 132, 55, 128, 16, 116, 40, 128, 17, 100, 25, 128, 18, 84, 10, 128, 19, 77, 54, 0, 20, 51, 236, 128, 21, 35, 221, 128, 22, 19, 206, 128, 23, 3, 191, 128, 23, 243, 176, 128, 24, 227, 161, 128, 25, 211, 146, 128, 26, 195, 131, 128, 27, 188, 175, 0, 28, 172, 160, 0, 29, 156, 145, 0, 30, 140, 130, 0, 31, 124, 115, 0, 32, 108, 100, 0, 33, 92, 85, 0, 33, 218, 214, 240, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 1, 3, 2, 3, 4, 5, 4, 8, 6, 7, 3, 2, 5, 4, 5, 4, 2, 3, 2, 3, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 3, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 3, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 0, 0, 19, 176, 0, 0, 0, 0, 19, 176, 0, 4, 0, 0, 28, 32, 1, 8, 0, 0, 14, 16, 0, 13, 0, 0, 28, 32, 1, 8, 0, 0, 14, 16, 0, 13, 0, 0, 42, 48, 1, 17, 0, 0, 28, 32, 0, 22, 0, 0, 28, 32, 0, 22, 0, 0, 28, 32, 1, 8, 0, 0, 14, 16, 0, 13, 76, 77, 84, 0, 87, 77, 84, 0, 67, 69, 83, 84, 0, 67, 69, 84, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 10, 67, 69, 84, 45, 49, 67, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 44, 77, 49, 48, 46, 53, 46, 48, 47, 51, 10}, + + "zoneinfo/Portugal": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 222, 0, 0, 0, 11, 0, 0, 0, 27, 128, 0, 0, 0, 146, 230, 151, 29, 155, 75, 109, 112, 155, 254, 199, 128, 156, 156, 237, 112, 157, 201, 131, 112, 158, 127, 114, 112, 159, 170, 182, 240, 160, 95, 84, 112, 161, 139, 234, 112, 162, 65, 217, 112, 163, 110, 111, 112, 164, 35, 12, 240, 165, 79, 162, 240, 170, 5, 239, 112, 170, 244, 142, 240, 173, 201, 167, 240, 174, 167, 35, 240, 175, 160, 79, 112, 176, 135, 5, 240, 177, 137, 107, 240, 178, 112, 34, 112, 179, 114, 136, 112, 180, 80, 4, 112, 183, 50, 76, 112, 184, 15, 200, 112, 184, 255, 185, 112, 185, 239, 170, 112, 188, 200, 183, 240, 189, 184, 168, 240, 190, 159, 95, 112, 191, 152, 138, 240, 192, 154, 240, 240, 193, 120, 108, 240, 194, 104, 93, 240, 195, 88, 78, 240, 196, 63, 5, 112, 197, 56, 48, 240, 198, 58, 150, 240, 199, 88, 172, 112, 199, 217, 223, 112, 201, 1, 47, 112, 201, 241, 32, 112, 202, 226, 98, 240, 203, 181, 82, 240, 203, 236, 163, 224, 204, 128, 75, 224, 204, 220, 162, 240, 205, 149, 52, 240, 205, 195, 75, 96, 206, 114, 162, 224, 206, 197, 191, 112, 207, 117, 22, 240, 207, 172, 103, 224, 208, 82, 132, 224, 208, 165, 161, 112, 209, 84, 248, 240, 209, 140, 73, 224, 210, 50, 102, 224, 210, 133, 131, 112, 211, 89, 196, 240, 212, 73, 181, 240, 213, 57, 209, 32, 214, 41, 194, 32, 215, 25, 179, 32, 216, 9, 164, 32, 216, 249, 149, 32, 217, 233, 134, 32, 220, 185, 89, 32, 221, 178, 132, 160, 222, 162, 117, 160, 223, 146, 102, 160, 224, 130, 87, 160, 225, 114, 72, 160, 226, 98, 57, 160, 227, 82, 42, 160, 228, 66, 27, 160, 229, 50, 12, 160, 230, 33, 253, 160, 231, 27, 41, 32, 232, 11, 26, 32, 232, 251, 11, 32, 233, 234, 252, 32, 234, 218, 237, 32, 235, 202, 222, 32, 236, 186, 207, 32, 237, 170, 192, 32, 238, 154, 177, 32, 239, 138, 162, 32, 240, 122, 147, 32, 241, 106, 132, 32, 242, 99, 175, 160, 243, 83, 160, 160, 244, 67, 145, 160, 245, 51, 130, 160, 246, 35, 115, 160, 247, 19, 100, 160, 248, 3, 85, 160, 248, 243, 70, 160, 12, 171, 42, 0, 13, 155, 27, 0, 14, 139, 12, 0, 15, 132, 55, 128, 16, 116, 40, 128, 17, 100, 25, 128, 18, 84, 24, 144, 19, 67, 251, 128, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 189, 160, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 0, 2, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 5, 3, 4, 3, 5, 3, 4, 3, 5, 3, 4, 3, 5, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 6, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 7, 8, 7, 8, 7, 8, 7, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 9, 10, 255, 255, 247, 99, 0, 0, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 9, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 9, 0, 0, 28, 32, 1, 13, 0, 0, 14, 16, 0, 18, 0, 0, 14, 16, 0, 18, 0, 0, 28, 32, 1, 22, 0, 0, 14, 16, 1, 4, 0, 0, 0, 0, 0, 9, 76, 77, 84, 0, 87, 69, 83, 84, 0, 87, 69, 84, 0, 87, 69, 77, 84, 0, 67, 69, 84, 0, 67, 69, 83, 84, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 10, 87, 69, 84, 48, 87, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 49, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/ROC": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 5, 0, 0, 0, 16, 128, 0, 0, 0, 195, 85, 73, 128, 210, 84, 89, 128, 211, 139, 123, 128, 212, 66, 173, 240, 213, 69, 34, 0, 214, 76, 191, 240, 215, 60, 191, 0, 216, 6, 102, 112, 217, 29, 242, 128, 217, 231, 153, 240, 218, 255, 38, 0, 219, 200, 205, 112, 220, 224, 89, 128, 221, 170, 0, 240, 222, 114, 115, 0, 223, 181, 100, 112, 224, 124, 133, 0, 225, 150, 151, 240, 226, 93, 184, 128, 227, 119, 203, 112, 228, 62, 236, 0, 229, 48, 32, 112, 230, 33, 113, 0, 231, 18, 165, 112, 232, 2, 164, 128, 232, 243, 216, 240, 233, 227, 216, 0, 234, 213, 12, 112, 235, 197, 11, 128, 236, 182, 63, 240, 237, 247, 252, 0, 238, 152, 196, 240, 239, 217, 47, 128, 240, 121, 248, 112, 7, 252, 86, 0, 8, 237, 138, 112, 9, 221, 137, 128, 10, 206, 189, 240, 17, 219, 161, 128, 18, 84, 221, 112, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 0, 0, 113, 232, 0, 0, 0, 0, 112, 128, 0, 4, 0, 0, 126, 144, 0, 8, 0, 0, 126, 144, 1, 12, 0, 0, 112, 128, 0, 4, 76, 77, 84, 0, 67, 83, 84, 0, 74, 83, 84, 0, 67, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 67, 83, 84, 45, 56, 10}, + + "zoneinfo/ROK": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 6, 0, 0, 0, 16, 128, 0, 0, 0, 139, 215, 240, 120, 146, 230, 22, 248, 210, 67, 39, 240, 226, 79, 41, 240, 228, 107, 183, 248, 229, 19, 24, 104, 230, 98, 3, 120, 231, 17, 76, 232, 232, 47, 112, 120, 232, 231, 244, 104, 234, 15, 82, 120, 234, 199, 214, 104, 235, 239, 52, 120, 236, 167, 184, 104, 237, 207, 22, 120, 238, 135, 154, 104, 240, 53, 113, 120, 32, 163, 96, 144, 33, 110, 103, 144, 34, 131, 66, 144, 35, 78, 73, 144, 0, 1, 2, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 3, 5, 3, 5, 3, 0, 0, 119, 8, 0, 0, 0, 0, 119, 136, 0, 4, 0, 0, 126, 144, 0, 8, 0, 0, 126, 144, 0, 4, 0, 0, 133, 152, 1, 12, 0, 0, 140, 160, 1, 12, 76, 77, 84, 0, 75, 83, 84, 0, 74, 83, 84, 0, 75, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 75, 83, 84, 45, 57, 10}, + + "zoneinfo/Singapore": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 8, 0, 0, 0, 32, 128, 0, 0, 0, 134, 131, 133, 163, 186, 103, 78, 144, 192, 10, 228, 96, 202, 179, 229, 96, 203, 145, 95, 8, 210, 72, 109, 240, 22, 145, 245, 8, 127, 255, 255, 255, 1, 2, 3, 4, 5, 6, 5, 7, 7, 0, 0, 97, 93, 0, 0, 0, 0, 97, 93, 0, 4, 0, 0, 98, 112, 0, 8, 0, 0, 103, 32, 1, 12, 0, 0, 103, 32, 0, 12, 0, 0, 105, 120, 0, 18, 0, 0, 126, 144, 0, 24, 0, 0, 112, 128, 0, 28, 76, 77, 84, 0, 83, 77, 84, 0, 43, 48, 55, 0, 43, 48, 55, 50, 48, 0, 43, 48, 55, 51, 48, 0, 43, 48, 57, 0, 43, 48, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 60, 43, 48, 56, 62, 45, 56, 10}, + + "zoneinfo/Turkey": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 131, 0, 0, 0, 11, 0, 0, 0, 25, 128, 0, 0, 0, 144, 139, 245, 152, 155, 12, 23, 96, 155, 213, 190, 208, 162, 101, 99, 224, 163, 123, 130, 80, 164, 78, 128, 96, 165, 63, 180, 208, 166, 37, 39, 224, 167, 39, 127, 208, 170, 40, 40, 96, 170, 225, 253, 208, 171, 249, 137, 224, 172, 195, 49, 80, 200, 127, 238, 96, 200, 255, 193, 208, 201, 74, 245, 96, 202, 206, 128, 80, 203, 203, 174, 96, 204, 229, 193, 80, 209, 113, 235, 224, 210, 107, 9, 80, 211, 162, 57, 96, 212, 67, 2, 80, 213, 76, 13, 224, 214, 41, 123, 208, 215, 43, 239, 224, 216, 9, 93, 208, 217, 2, 151, 96, 217, 233, 63, 208, 218, 239, 168, 96, 219, 210, 92, 80, 220, 212, 208, 96, 221, 179, 143, 208, 241, 244, 185, 96, 242, 100, 186, 208, 245, 104, 6, 96, 246, 31, 56, 208, 0, 160, 186, 224, 1, 107, 179, 208, 2, 128, 156, 224, 3, 75, 149, 208, 4, 105, 185, 96, 5, 52, 178, 80, 6, 110, 147, 112, 7, 57, 168, 128, 7, 251, 117, 0, 9, 25, 166, 160, 9, 219, 58, 224, 10, 240, 7, 208, 12, 16, 206, 96, 12, 217, 36, 80, 13, 164, 57, 96, 14, 166, 145, 80, 15, 132, 27, 96, 16, 134, 115, 80, 18, 103, 152, 192, 19, 77, 54, 0, 20, 71, 122, 192, 21, 35, 221, 128, 22, 39, 92, 192, 23, 3, 191, 128, 24, 7, 62, 192, 25, 137, 148, 80, 25, 220, 148, 192, 28, 198, 211, 208, 29, 155, 21, 80, 30, 140, 115, 240, 31, 124, 100, 240, 32, 108, 85, 240, 33, 92, 70, 240, 34, 76, 55, 240, 35, 60, 40, 240, 36, 44, 25, 240, 37, 28, 10, 240, 38, 11, 251, 240, 39, 5, 39, 112, 39, 245, 24, 112, 40, 229, 9, 112, 41, 212, 250, 112, 42, 196, 235, 112, 43, 180, 220, 112, 44, 164, 205, 112, 45, 139, 131, 240, 46, 132, 175, 112, 47, 116, 160, 112, 48, 100, 145, 112, 49, 93, 188, 240, 50, 114, 151, 240, 51, 61, 158, 240, 52, 82, 121, 240, 53, 29, 128, 240, 54, 50, 91, 240, 54, 253, 98, 240, 56, 27, 120, 112, 56, 221, 68, 240, 57, 251, 90, 112, 58, 189, 38, 240, 59, 219, 60, 112, 60, 166, 67, 112, 61, 187, 30, 112, 62, 134, 37, 112, 63, 155, 0, 112, 64, 102, 7, 112, 65, 132, 28, 240, 66, 69, 233, 112, 67, 99, 254, 240, 68, 37, 203, 112, 69, 67, 224, 240, 69, 152, 50, 224, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 143, 221, 144, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 56, 190, 16, 84, 76, 71, 144, 85, 23, 78, 144, 86, 62, 158, 144, 86, 247, 48, 144, 87, 207, 46, 80, 127, 255, 255, 255, 1, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 2, 3, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 3, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 5, 5, 0, 0, 27, 40, 0, 0, 0, 0, 27, 104, 0, 4, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 13, 0, 0, 56, 64, 1, 17, 0, 0, 42, 48, 0, 21, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 13, 0, 0, 42, 48, 1, 8, 0, 0, 28, 32, 0, 13, 0, 0, 42, 48, 0, 21, 76, 77, 84, 0, 73, 77, 84, 0, 69, 69, 83, 84, 0, 69, 69, 84, 0, 43, 48, 52, 0, 43, 48, 51, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 10, 60, 43, 48, 51, 62, 45, 51, 10}, + + "zoneinfo/UCT": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 85, 67, 84, 0, 0, 0, 10, 85, 67, 84, 48, 10}, + + "zoneinfo/US/Alaska": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 144, 0, 0, 0, 9, 0, 0, 0, 40, 128, 0, 0, 0, 203, 137, 54, 192, 210, 35, 244, 112, 210, 97, 66, 48, 250, 210, 71, 160, 254, 184, 99, 64, 255, 168, 70, 48, 0, 152, 69, 64, 1, 136, 40, 48, 2, 120, 39, 64, 3, 113, 68, 176, 4, 97, 67, 192, 5, 81, 38, 176, 6, 65, 37, 192, 7, 49, 8, 176, 7, 141, 95, 192, 9, 16, 234, 176, 9, 173, 219, 64, 10, 240, 204, 176, 11, 224, 203, 192, 12, 217, 233, 48, 13, 192, 173, 192, 14, 185, 203, 48, 15, 169, 202, 64, 16, 153, 173, 48, 17, 137, 172, 64, 18, 121, 143, 48, 19, 105, 142, 64, 20, 89, 113, 48, 21, 73, 112, 64, 22, 57, 83, 48, 23, 41, 82, 64, 24, 34, 111, 176, 25, 9, 52, 64, 26, 2, 81, 176, 26, 43, 20, 16, 26, 242, 66, 176, 27, 226, 37, 160, 28, 210, 36, 176, 29, 194, 7, 160, 30, 178, 6, 176, 31, 161, 233, 160, 32, 118, 57, 48, 33, 129, 203, 160, 34, 86, 27, 48, 35, 106, 232, 32, 36, 53, 253, 48, 37, 74, 202, 32, 38, 21, 223, 48, 39, 42, 172, 32, 39, 254, 251, 176, 41, 10, 142, 32, 41, 222, 221, 176, 42, 234, 112, 32, 43, 190, 191, 176, 44, 211, 140, 160, 45, 158, 161, 176, 46, 179, 110, 160, 47, 126, 131, 176, 48, 147, 80, 160, 49, 103, 160, 48, 50, 115, 50, 160, 51, 71, 130, 48, 52, 83, 20, 160, 53, 39, 100, 48, 54, 50, 246, 160, 55, 7, 70, 48, 56, 28, 19, 32, 56, 231, 40, 48, 57, 251, 245, 32, 58, 199, 10, 48, 59, 219, 215, 32, 60, 176, 38, 176, 61, 187, 185, 32, 62, 144, 8, 176, 63, 155, 155, 32, 64, 111, 234, 176, 65, 132, 183, 160, 66, 79, 204, 176, 67, 100, 153, 160, 68, 47, 174, 176, 69, 68, 123, 160, 69, 243, 225, 48, 71, 45, 152, 32, 71, 211, 195, 48, 73, 13, 122, 32, 73, 179, 165, 48, 74, 237, 92, 32, 75, 156, 193, 176, 76, 214, 120, 160, 77, 124, 163, 176, 78, 182, 90, 160, 79, 92, 133, 176, 80, 150, 60, 160, 81, 60, 103, 176, 82, 118, 30, 160, 83, 28, 73, 176, 84, 86, 0, 160, 84, 252, 43, 176, 86, 53, 226, 160, 86, 229, 72, 48, 88, 30, 255, 32, 88, 197, 42, 48, 89, 254, 225, 32, 90, 165, 12, 48, 91, 222, 195, 32, 92, 132, 238, 48, 93, 190, 165, 32, 94, 100, 208, 48, 95, 158, 135, 32, 96, 77, 236, 176, 97, 135, 163, 160, 98, 45, 206, 176, 99, 103, 133, 160, 100, 13, 176, 176, 101, 71, 103, 160, 101, 237, 146, 176, 103, 39, 73, 160, 103, 205, 116, 176, 105, 7, 43, 160, 105, 173, 86, 176, 106, 231, 13, 160, 107, 150, 115, 48, 108, 208, 42, 32, 109, 118, 85, 48, 110, 176, 12, 32, 111, 86, 55, 48, 112, 143, 238, 32, 113, 54, 25, 48, 114, 111, 208, 32, 115, 21, 251, 48, 116, 79, 178, 32, 116, 255, 23, 176, 118, 56, 206, 160, 118, 222, 249, 176, 120, 24, 176, 160, 120, 190, 219, 176, 121, 248, 146, 160, 122, 158, 189, 176, 123, 216, 116, 160, 124, 126, 159, 176, 125, 184, 86, 160, 126, 94, 129, 176, 127, 152, 56, 160, 1, 2, 3, 1, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 6, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 255, 255, 115, 120, 0, 0, 255, 255, 115, 96, 0, 4, 255, 255, 129, 112, 1, 8, 255, 255, 129, 112, 1, 12, 255, 255, 115, 96, 0, 16, 255, 255, 129, 112, 1, 21, 255, 255, 129, 112, 0, 26, 255, 255, 143, 128, 1, 30, 255, 255, 129, 112, 0, 35, 76, 77, 84, 0, 65, 83, 84, 0, 65, 87, 84, 0, 65, 80, 84, 0, 65, 72, 83, 84, 0, 65, 72, 68, 84, 0, 89, 83, 84, 0, 65, 75, 68, 84, 0, 65, 75, 83, 84, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 10, 65, 75, 83, 84, 57, 65, 75, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/US/Aleutian": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 144, 0, 0, 0, 9, 0, 0, 0, 33, 128, 0, 0, 0, 203, 137, 68, 208, 210, 35, 244, 112, 210, 97, 80, 64, 250, 210, 85, 176, 254, 184, 113, 80, 255, 168, 84, 64, 0, 152, 83, 80, 1, 136, 54, 64, 2, 120, 53, 80, 3, 113, 82, 192, 4, 97, 81, 208, 5, 81, 52, 192, 6, 65, 51, 208, 7, 49, 22, 192, 7, 141, 109, 208, 9, 16, 248, 192, 9, 173, 233, 80, 10, 240, 218, 192, 11, 224, 217, 208, 12, 217, 247, 64, 13, 192, 187, 208, 14, 185, 217, 64, 15, 169, 216, 80, 16, 153, 187, 64, 17, 137, 186, 80, 18, 121, 157, 64, 19, 105, 156, 80, 20, 89, 127, 64, 21, 73, 126, 80, 22, 57, 97, 64, 23, 41, 96, 80, 24, 34, 125, 192, 25, 9, 66, 80, 26, 2, 95, 192, 26, 43, 34, 32, 26, 242, 80, 192, 27, 226, 51, 176, 28, 210, 50, 192, 29, 194, 21, 176, 30, 178, 20, 192, 31, 161, 247, 176, 32, 118, 71, 64, 33, 129, 217, 176, 34, 86, 41, 64, 35, 106, 246, 48, 36, 54, 11, 64, 37, 74, 216, 48, 38, 21, 237, 64, 39, 42, 186, 48, 39, 255, 9, 192, 41, 10, 156, 48, 41, 222, 235, 192, 42, 234, 126, 48, 43, 190, 205, 192, 44, 211, 154, 176, 45, 158, 175, 192, 46, 179, 124, 176, 47, 126, 145, 192, 48, 147, 94, 176, 49, 103, 174, 64, 50, 115, 64, 176, 51, 71, 144, 64, 52, 83, 34, 176, 53, 39, 114, 64, 54, 51, 4, 176, 55, 7, 84, 64, 56, 28, 33, 48, 56, 231, 54, 64, 57, 252, 3, 48, 58, 199, 24, 64, 59, 219, 229, 48, 60, 176, 52, 192, 61, 187, 199, 48, 62, 144, 22, 192, 63, 155, 169, 48, 64, 111, 248, 192, 65, 132, 197, 176, 66, 79, 218, 192, 67, 100, 167, 176, 68, 47, 188, 192, 69, 68, 137, 176, 69, 243, 239, 64, 71, 45, 166, 48, 71, 211, 209, 64, 73, 13, 136, 48, 73, 179, 179, 64, 74, 237, 106, 48, 75, 156, 207, 192, 76, 214, 134, 176, 77, 124, 177, 192, 78, 182, 104, 176, 79, 92, 147, 192, 80, 150, 74, 176, 81, 60, 117, 192, 82, 118, 44, 176, 83, 28, 87, 192, 84, 86, 14, 176, 84, 252, 57, 192, 86, 53, 240, 176, 86, 229, 86, 64, 88, 31, 13, 48, 88, 197, 56, 64, 89, 254, 239, 48, 90, 165, 26, 64, 91, 222, 209, 48, 92, 132, 252, 64, 93, 190, 179, 48, 94, 100, 222, 64, 95, 158, 149, 48, 96, 77, 250, 192, 97, 135, 177, 176, 98, 45, 220, 192, 99, 103, 147, 176, 100, 13, 190, 192, 101, 71, 117, 176, 101, 237, 160, 192, 103, 39, 87, 176, 103, 205, 130, 192, 105, 7, 57, 176, 105, 173, 100, 192, 106, 231, 27, 176, 107, 150, 129, 64, 108, 208, 56, 48, 109, 118, 99, 64, 110, 176, 26, 48, 111, 86, 69, 64, 112, 143, 252, 48, 113, 54, 39, 64, 114, 111, 222, 48, 115, 22, 9, 64, 116, 79, 192, 48, 116, 255, 37, 192, 118, 56, 220, 176, 118, 223, 7, 192, 120, 24, 190, 176, 120, 190, 233, 192, 121, 248, 160, 176, 122, 158, 203, 192, 123, 216, 130, 176, 124, 126, 173, 192, 125, 184, 100, 176, 126, 94, 143, 192, 127, 152, 70, 176, 1, 2, 3, 1, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 6, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 255, 255, 90, 98, 0, 0, 255, 255, 101, 80, 0, 4, 255, 255, 115, 96, 1, 8, 255, 255, 115, 96, 1, 12, 255, 255, 101, 80, 0, 16, 255, 255, 115, 96, 1, 20, 255, 255, 115, 96, 0, 24, 255, 255, 129, 112, 1, 29, 255, 255, 115, 96, 0, 25, 76, 77, 84, 0, 78, 83, 84, 0, 78, 87, 84, 0, 78, 80, 84, 0, 66, 83, 84, 0, 66, 68, 84, 0, 65, 72, 83, 84, 0, 72, 68, 84, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 10, 72, 83, 84, 49, 48, 72, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/US/Arizona": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 4, 0, 0, 0, 16, 128, 0, 0, 0, 158, 166, 58, 144, 159, 187, 7, 128, 160, 134, 28, 144, 161, 154, 233, 128, 203, 137, 12, 144, 207, 23, 223, 28, 207, 143, 229, 172, 208, 129, 26, 28, 250, 248, 117, 16, 251, 232, 88, 0, 2, 1, 2, 1, 2, 3, 2, 3, 2, 1, 2, 255, 255, 150, 238, 0, 0, 255, 255, 171, 160, 1, 4, 255, 255, 157, 144, 0, 8, 255, 255, 171, 160, 1, 12, 76, 77, 84, 0, 77, 68, 84, 0, 77, 83, 84, 0, 77, 87, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 77, 83, 84, 55, 10}, + + "zoneinfo/US/Central": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 236, 0, 0, 0, 7, 0, 0, 0, 24, 128, 0, 0, 0, 158, 166, 44, 128, 159, 186, 249, 112, 160, 134, 14, 128, 161, 154, 219, 112, 162, 203, 116, 0, 163, 131, 247, 240, 164, 69, 210, 128, 165, 99, 217, 240, 166, 83, 217, 0, 167, 21, 151, 112, 168, 51, 187, 0, 168, 254, 179, 240, 170, 19, 157, 0, 170, 222, 149, 240, 171, 243, 127, 0, 172, 190, 119, 240, 173, 211, 97, 0, 174, 158, 89, 240, 175, 179, 67, 0, 176, 126, 59, 240, 177, 156, 95, 128, 178, 103, 88, 112, 179, 124, 65, 128, 180, 71, 58, 112, 181, 92, 35, 128, 182, 39, 28, 112, 183, 60, 5, 128, 184, 6, 254, 112, 185, 27, 231, 128, 185, 230, 224, 112, 187, 5, 4, 0, 187, 198, 194, 112, 188, 228, 230, 0, 189, 175, 222, 240, 190, 196, 200, 0, 191, 143, 192, 240, 192, 90, 214, 0, 193, 176, 60, 112, 194, 132, 140, 0, 195, 79, 132, 240, 196, 100, 110, 0, 197, 47, 102, 240, 198, 77, 138, 128, 199, 15, 72, 240, 200, 45, 108, 128, 200, 248, 101, 112, 202, 13, 78, 128, 202, 216, 71, 112, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 211, 117, 243, 0, 212, 64, 235, 240, 213, 85, 213, 0, 214, 32, 205, 240, 215, 53, 183, 0, 216, 0, 175, 240, 217, 21, 153, 0, 217, 224, 145, 240, 218, 254, 181, 128, 219, 192, 115, 240, 220, 222, 151, 128, 221, 169, 144, 112, 222, 190, 121, 128, 223, 137, 114, 112, 224, 158, 91, 128, 225, 105, 84, 112, 226, 126, 61, 128, 227, 73, 54, 112, 228, 94, 31, 128, 229, 87, 60, 240, 230, 71, 60, 0, 231, 55, 30, 240, 232, 39, 30, 0, 233, 23, 0, 240, 234, 7, 0, 0, 234, 246, 226, 240, 235, 230, 226, 0, 236, 214, 196, 240, 237, 198, 196, 0, 238, 191, 225, 112, 239, 175, 224, 128, 240, 159, 195, 112, 241, 143, 194, 128, 242, 127, 165, 112, 243, 111, 164, 128, 244, 95, 135, 112, 245, 79, 134, 128, 246, 63, 105, 112, 247, 47, 104, 128, 248, 40, 133, 240, 249, 15, 74, 128, 250, 8, 103, 240, 250, 248, 103, 0, 251, 232, 73, 240, 252, 216, 73, 0, 253, 200, 43, 240, 254, 184, 43, 0, 255, 168, 13, 240, 0, 152, 13, 0, 1, 135, 239, 240, 2, 119, 239, 0, 3, 113, 12, 112, 4, 97, 11, 128, 5, 80, 238, 112, 6, 64, 237, 128, 7, 48, 208, 112, 7, 141, 39, 128, 9, 16, 178, 112, 9, 173, 163, 0, 10, 240, 148, 112, 11, 224, 147, 128, 12, 217, 176, 240, 13, 192, 117, 128, 14, 185, 146, 240, 15, 169, 146, 0, 16, 153, 116, 240, 17, 137, 116, 0, 18, 121, 86, 240, 19, 105, 86, 0, 20, 89, 56, 240, 21, 73, 56, 0, 22, 57, 26, 240, 23, 41, 26, 0, 24, 34, 55, 112, 25, 8, 252, 0, 26, 2, 25, 112, 26, 242, 24, 128, 27, 225, 251, 112, 28, 209, 250, 128, 29, 193, 221, 112, 30, 177, 220, 128, 31, 161, 191, 112, 32, 118, 15, 0, 33, 129, 161, 112, 34, 85, 241, 0, 35, 106, 189, 240, 36, 53, 211, 0, 37, 74, 159, 240, 38, 21, 181, 0, 39, 42, 129, 240, 39, 254, 209, 128, 41, 10, 99, 240, 41, 222, 179, 128, 42, 234, 69, 240, 43, 190, 149, 128, 44, 211, 98, 112, 45, 158, 119, 128, 46, 179, 68, 112, 47, 126, 89, 128, 48, 147, 38, 112, 49, 103, 118, 0, 50, 115, 8, 112, 51, 71, 88, 0, 52, 82, 234, 112, 53, 39, 58, 0, 54, 50, 204, 112, 55, 7, 28, 0, 56, 27, 232, 240, 56, 230, 254, 0, 57, 251, 202, 240, 58, 198, 224, 0, 59, 219, 172, 240, 60, 175, 252, 128, 61, 187, 142, 240, 62, 143, 222, 128, 63, 155, 112, 240, 64, 111, 192, 128, 65, 132, 141, 112, 66, 79, 162, 128, 67, 100, 111, 112, 68, 47, 132, 128, 69, 68, 81, 112, 69, 243, 183, 0, 71, 45, 109, 240, 71, 211, 153, 0, 73, 13, 79, 240, 73, 179, 123, 0, 74, 237, 49, 240, 75, 156, 151, 128, 76, 214, 78, 112, 77, 124, 121, 128, 78, 182, 48, 112, 79, 92, 91, 128, 80, 150, 18, 112, 81, 60, 61, 128, 82, 117, 244, 112, 83, 28, 31, 128, 84, 85, 214, 112, 84, 252, 1, 128, 86, 53, 184, 112, 86, 229, 30, 0, 88, 30, 212, 240, 88, 197, 0, 0, 89, 254, 182, 240, 90, 164, 226, 0, 91, 222, 152, 240, 92, 132, 196, 0, 93, 190, 122, 240, 94, 100, 166, 0, 95, 158, 92, 240, 96, 77, 194, 128, 97, 135, 121, 112, 98, 45, 164, 128, 99, 103, 91, 112, 100, 13, 134, 128, 101, 71, 61, 112, 101, 237, 104, 128, 103, 39, 31, 112, 103, 205, 74, 128, 105, 7, 1, 112, 105, 173, 44, 128, 106, 230, 227, 112, 107, 150, 73, 0, 108, 207, 255, 240, 109, 118, 43, 0, 110, 175, 225, 240, 111, 86, 13, 0, 112, 143, 195, 240, 113, 53, 239, 0, 114, 111, 165, 240, 115, 21, 209, 0, 116, 79, 135, 240, 116, 254, 237, 128, 118, 56, 164, 112, 118, 222, 207, 128, 120, 24, 134, 112, 120, 190, 177, 128, 121, 248, 104, 112, 122, 158, 147, 128, 123, 216, 74, 112, 124, 126, 117, 128, 125, 184, 44, 112, 126, 94, 87, 128, 127, 152, 14, 112, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 4, 5, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 173, 212, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 0, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 1, 20, 255, 255, 171, 160, 0, 8, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 69, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/US/East-Indiana": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 99, 0, 0, 0, 7, 0, 0, 0, 28, 128, 0, 0, 0, 158, 166, 44, 128, 159, 186, 249, 112, 160, 134, 14, 128, 161, 154, 219, 112, 202, 87, 34, 128, 202, 216, 71, 112, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 211, 117, 243, 0, 212, 64, 235, 240, 213, 85, 213, 0, 214, 32, 205, 240, 215, 53, 183, 0, 216, 0, 175, 240, 217, 21, 153, 0, 217, 224, 145, 240, 218, 254, 181, 128, 219, 192, 115, 240, 220, 222, 151, 128, 221, 169, 144, 112, 222, 190, 121, 128, 223, 137, 114, 112, 224, 158, 91, 128, 225, 105, 84, 112, 226, 126, 61, 128, 227, 73, 54, 112, 228, 94, 31, 128, 232, 242, 22, 240, 234, 7, 0, 0, 254, 184, 28, 240, 255, 167, 255, 224, 0, 151, 254, 240, 1, 135, 225, 224, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 2, 1, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 2, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 255, 255, 175, 58, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 0, 20, 255, 255, 199, 192, 1, 24, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 69, 83, 84, 0, 69, 68, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/US/Eastern": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 236, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 158, 166, 30, 112, 159, 186, 235, 96, 160, 134, 0, 112, 161, 154, 205, 96, 162, 101, 226, 112, 163, 131, 233, 224, 164, 106, 174, 112, 165, 53, 167, 96, 166, 83, 202, 240, 167, 21, 137, 96, 168, 51, 172, 240, 168, 254, 165, 224, 170, 19, 142, 240, 170, 222, 135, 224, 171, 243, 112, 240, 172, 190, 105, 224, 173, 211, 82, 240, 174, 158, 75, 224, 175, 179, 52, 240, 176, 126, 45, 224, 177, 156, 81, 112, 178, 103, 74, 96, 179, 124, 51, 112, 180, 71, 44, 96, 181, 92, 21, 112, 182, 39, 14, 96, 183, 59, 247, 112, 184, 6, 240, 96, 185, 27, 217, 112, 185, 230, 210, 96, 187, 4, 245, 240, 187, 198, 180, 96, 188, 228, 215, 240, 189, 175, 208, 224, 190, 196, 185, 240, 191, 143, 178, 224, 192, 164, 155, 240, 193, 111, 148, 224, 194, 132, 125, 240, 195, 79, 118, 224, 196, 100, 95, 240, 197, 47, 88, 224, 198, 77, 124, 112, 199, 15, 58, 224, 200, 45, 94, 112, 200, 248, 87, 96, 202, 13, 64, 112, 202, 216, 57, 96, 203, 136, 240, 112, 210, 35, 244, 112, 210, 96, 251, 224, 211, 117, 228, 240, 212, 64, 221, 224, 213, 85, 198, 240, 214, 32, 191, 224, 215, 53, 168, 240, 216, 0, 161, 224, 217, 21, 138, 240, 217, 224, 131, 224, 218, 254, 167, 112, 219, 192, 101, 224, 220, 222, 137, 112, 221, 169, 130, 96, 222, 190, 107, 112, 223, 137, 100, 96, 224, 158, 77, 112, 225, 105, 70, 96, 226, 126, 47, 112, 227, 73, 40, 96, 228, 94, 17, 112, 229, 87, 46, 224, 230, 71, 45, 240, 231, 55, 16, 224, 232, 39, 15, 240, 233, 22, 242, 224, 234, 6, 241, 240, 234, 246, 212, 224, 235, 230, 211, 240, 236, 214, 182, 224, 237, 198, 181, 240, 238, 191, 211, 96, 239, 175, 210, 112, 240, 159, 181, 96, 241, 143, 180, 112, 242, 127, 151, 96, 243, 111, 150, 112, 244, 95, 121, 96, 245, 79, 120, 112, 246, 63, 91, 96, 247, 47, 90, 112, 248, 40, 119, 224, 249, 15, 60, 112, 250, 8, 89, 224, 250, 248, 88, 240, 251, 232, 59, 224, 252, 216, 58, 240, 253, 200, 29, 224, 254, 184, 28, 240, 255, 167, 255, 224, 0, 151, 254, 240, 1, 135, 225, 224, 2, 119, 224, 240, 3, 112, 254, 96, 4, 96, 253, 112, 5, 80, 224, 96, 6, 64, 223, 112, 7, 48, 194, 96, 7, 141, 25, 112, 9, 16, 164, 96, 9, 173, 148, 240, 10, 240, 134, 96, 11, 224, 133, 112, 12, 217, 162, 224, 13, 192, 103, 112, 14, 185, 132, 224, 15, 169, 131, 240, 16, 153, 102, 224, 17, 137, 101, 240, 18, 121, 72, 224, 19, 105, 71, 240, 20, 89, 42, 224, 21, 73, 41, 240, 22, 57, 12, 224, 23, 41, 11, 240, 24, 34, 41, 96, 25, 8, 237, 240, 26, 2, 11, 96, 26, 242, 10, 112, 27, 225, 237, 96, 28, 209, 236, 112, 29, 193, 207, 96, 30, 177, 206, 112, 31, 161, 177, 96, 32, 118, 0, 240, 33, 129, 147, 96, 34, 85, 226, 240, 35, 106, 175, 224, 36, 53, 196, 240, 37, 74, 145, 224, 38, 21, 166, 240, 39, 42, 115, 224, 39, 254, 195, 112, 41, 10, 85, 224, 41, 222, 165, 112, 42, 234, 55, 224, 43, 190, 135, 112, 44, 211, 84, 96, 45, 158, 105, 112, 46, 179, 54, 96, 47, 126, 75, 112, 48, 147, 24, 96, 49, 103, 103, 240, 50, 114, 250, 96, 51, 71, 73, 240, 52, 82, 220, 96, 53, 39, 43, 240, 54, 50, 190, 96, 55, 7, 13, 240, 56, 27, 218, 224, 56, 230, 239, 240, 57, 251, 188, 224, 58, 198, 209, 240, 59, 219, 158, 224, 60, 175, 238, 112, 61, 187, 128, 224, 62, 143, 208, 112, 63, 155, 98, 224, 64, 111, 178, 112, 65, 132, 127, 96, 66, 79, 148, 112, 67, 100, 97, 96, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 186, 158, 0, 0, 255, 255, 199, 192, 1, 4, 255, 255, 185, 176, 0, 8, 255, 255, 199, 192, 1, 12, 255, 255, 199, 192, 1, 16, 76, 77, 84, 0, 69, 68, 84, 0, 69, 83, 84, 0, 69, 87, 84, 0, 69, 80, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/US/Hawaii": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 4, 0, 0, 0, 12, 128, 0, 0, 0, 187, 5, 67, 72, 187, 33, 113, 88, 203, 137, 61, 200, 210, 97, 73, 56, 213, 141, 115, 72, 1, 2, 1, 2, 1, 3, 255, 255, 108, 2, 0, 0, 255, 255, 108, 88, 0, 4, 255, 255, 122, 104, 1, 8, 255, 255, 115, 96, 0, 4, 76, 77, 84, 0, 72, 83, 84, 0, 72, 68, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 72, 83, 84, 49, 48, 10}, + + "zoneinfo/US/Indiana-Starke": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 154, 0, 0, 0, 7, 0, 0, 0, 24, 128, 0, 0, 0, 158, 166, 44, 128, 159, 186, 249, 112, 160, 134, 14, 128, 161, 154, 219, 112, 203, 136, 254, 128, 210, 35, 244, 112, 210, 97, 9, 240, 213, 85, 213, 0, 214, 32, 205, 240, 215, 53, 183, 0, 216, 0, 175, 240, 217, 21, 153, 0, 217, 224, 145, 240, 218, 254, 181, 128, 219, 192, 115, 240, 220, 222, 151, 128, 221, 169, 144, 112, 222, 190, 121, 128, 223, 137, 114, 112, 224, 158, 91, 128, 225, 105, 84, 112, 226, 126, 61, 128, 227, 73, 54, 112, 228, 94, 31, 128, 229, 87, 60, 240, 230, 71, 60, 0, 231, 55, 30, 240, 232, 39, 30, 0, 232, 242, 22, 240, 234, 7, 0, 0, 234, 209, 248, 240, 235, 230, 226, 0, 236, 214, 196, 240, 237, 198, 196, 0, 238, 191, 225, 112, 239, 175, 224, 128, 240, 159, 195, 112, 241, 143, 194, 128, 244, 95, 135, 112, 250, 248, 103, 0, 251, 232, 73, 240, 252, 216, 73, 0, 253, 200, 43, 240, 254, 184, 43, 0, 255, 168, 13, 240, 0, 152, 13, 0, 1, 135, 239, 240, 2, 119, 239, 0, 3, 113, 12, 112, 4, 97, 11, 128, 5, 80, 238, 112, 6, 64, 237, 128, 7, 48, 208, 112, 7, 141, 39, 128, 9, 16, 178, 112, 9, 173, 163, 0, 10, 240, 148, 112, 11, 224, 147, 128, 12, 217, 176, 240, 13, 192, 117, 128, 14, 185, 146, 240, 15, 169, 146, 0, 16, 153, 116, 240, 17, 137, 116, 0, 18, 121, 86, 240, 19, 105, 86, 0, 20, 89, 56, 240, 21, 73, 56, 0, 22, 57, 26, 240, 23, 41, 26, 0, 24, 34, 55, 112, 25, 8, 252, 0, 26, 2, 25, 112, 26, 242, 24, 128, 27, 225, 251, 112, 28, 209, 250, 128, 29, 193, 221, 112, 30, 177, 220, 128, 31, 161, 191, 112, 32, 118, 15, 0, 33, 129, 161, 112, 34, 85, 241, 0, 35, 106, 189, 240, 36, 53, 211, 0, 37, 74, 159, 240, 38, 21, 181, 0, 39, 42, 129, 240, 39, 254, 209, 128, 41, 10, 99, 240, 68, 47, 118, 112, 69, 68, 81, 112, 69, 243, 183, 0, 71, 45, 109, 240, 71, 211, 153, 0, 73, 13, 79, 240, 73, 179, 123, 0, 74, 237, 49, 240, 75, 156, 151, 128, 76, 214, 78, 112, 77, 124, 121, 128, 78, 182, 48, 112, 79, 92, 91, 128, 80, 150, 18, 112, 81, 60, 61, 128, 82, 117, 244, 112, 83, 28, 31, 128, 84, 85, 214, 112, 84, 252, 1, 128, 86, 53, 184, 112, 86, 229, 30, 0, 88, 30, 212, 240, 88, 197, 0, 0, 89, 254, 182, 240, 90, 164, 226, 0, 91, 222, 152, 240, 92, 132, 196, 0, 93, 190, 122, 240, 94, 100, 166, 0, 95, 158, 92, 240, 96, 77, 194, 128, 97, 135, 121, 112, 98, 45, 164, 128, 99, 103, 91, 112, 100, 13, 134, 128, 101, 71, 61, 112, 101, 237, 104, 128, 103, 39, 31, 112, 103, 205, 74, 128, 105, 7, 1, 112, 105, 173, 44, 128, 106, 230, 227, 112, 107, 150, 73, 0, 108, 207, 255, 240, 109, 118, 43, 0, 110, 175, 225, 240, 111, 86, 13, 0, 112, 143, 195, 240, 113, 53, 239, 0, 114, 111, 165, 240, 115, 21, 209, 0, 116, 79, 135, 240, 116, 254, 237, 128, 118, 56, 164, 112, 118, 222, 207, 128, 120, 24, 134, 112, 120, 190, 177, 128, 121, 248, 104, 112, 122, 158, 147, 128, 123, 216, 74, 112, 124, 126, 117, 128, 125, 184, 44, 112, 126, 94, 87, 128, 127, 152, 14, 112, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 5, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 174, 202, 0, 0, 255, 255, 185, 176, 1, 4, 255, 255, 171, 160, 0, 8, 255, 255, 185, 176, 1, 12, 255, 255, 185, 176, 1, 16, 255, 255, 185, 176, 0, 20, 255, 255, 171, 160, 0, 8, 76, 77, 84, 0, 67, 68, 84, 0, 67, 83, 84, 0, 67, 87, 84, 0, 67, 80, 84, 0, 69, 83, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 10, 67, 83, 84, 54, 67, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/US/Michigan": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 138, 0, 0, 0, 6, 0, 0, 0, 24, 128, 0, 0, 0, 133, 189, 34, 91, 153, 60, 148, 0, 203, 136, 240, 112, 210, 35, 244, 112, 210, 96, 251, 224, 215, 53, 168, 240, 216, 0, 161, 224, 6, 64, 223, 112, 7, 48, 194, 96, 7, 141, 25, 112, 9, 16, 164, 96, 10, 0, 163, 112, 10, 240, 134, 96, 11, 224, 133, 112, 12, 217, 162, 224, 13, 192, 103, 112, 14, 185, 132, 224, 15, 169, 131, 240, 16, 153, 102, 224, 17, 137, 101, 240, 18, 121, 72, 224, 19, 105, 71, 240, 20, 89, 42, 224, 21, 73, 41, 240, 22, 57, 12, 224, 23, 41, 11, 240, 24, 34, 41, 96, 25, 8, 237, 240, 26, 2, 11, 96, 26, 242, 10, 112, 27, 225, 237, 96, 28, 209, 236, 112, 29, 193, 207, 96, 30, 177, 206, 112, 31, 161, 177, 96, 32, 118, 0, 240, 33, 129, 147, 96, 34, 85, 226, 240, 35, 106, 175, 224, 36, 53, 196, 240, 37, 74, 145, 224, 38, 21, 166, 240, 39, 42, 115, 224, 39, 254, 195, 112, 41, 10, 85, 224, 41, 222, 165, 112, 42, 234, 55, 224, 43, 190, 135, 112, 44, 211, 84, 96, 45, 158, 105, 112, 46, 179, 54, 96, 47, 126, 75, 112, 48, 147, 24, 96, 49, 103, 103, 240, 50, 114, 250, 96, 51, 71, 73, 240, 52, 82, 220, 96, 53, 39, 43, 240, 54, 50, 190, 96, 55, 7, 13, 240, 56, 27, 218, 224, 56, 230, 239, 240, 57, 251, 188, 224, 58, 198, 209, 240, 59, 219, 158, 224, 60, 175, 238, 112, 61, 187, 128, 224, 62, 143, 208, 112, 63, 155, 98, 224, 64, 111, 178, 112, 65, 132, 127, 96, 66, 79, 148, 112, 67, 100, 97, 96, 68, 47, 118, 112, 69, 68, 67, 96, 69, 243, 168, 240, 71, 45, 95, 224, 71, 211, 138, 240, 73, 13, 65, 224, 73, 179, 108, 240, 74, 237, 35, 224, 75, 156, 137, 112, 76, 214, 64, 96, 77, 124, 107, 112, 78, 182, 34, 96, 79, 92, 77, 112, 80, 150, 4, 96, 81, 60, 47, 112, 82, 117, 230, 96, 83, 28, 17, 112, 84, 85, 200, 96, 84, 251, 243, 112, 86, 53, 170, 96, 86, 229, 15, 240, 88, 30, 198, 224, 88, 196, 241, 240, 89, 254, 168, 224, 90, 164, 211, 240, 91, 222, 138, 224, 92, 132, 181, 240, 93, 190, 108, 224, 94, 100, 151, 240, 95, 158, 78, 224, 96, 77, 180, 112, 97, 135, 107, 96, 98, 45, 150, 112, 99, 103, 77, 96, 100, 13, 120, 112, 101, 71, 47, 96, 101, 237, 90, 112, 103, 39, 17, 96, 103, 205, 60, 112, 105, 6, 243, 96, 105, 173, 30, 112, 106, 230, 213, 96, 107, 150, 58, 240, 108, 207, 241, 224, 109, 118, 28, 240, 110, 175, 211, 224, 111, 85, 254, 240, 112, 143, 181, 224, 113, 53, 224, 240, 114, 111, 151, 224, 115, 21, 194, 240, 116, 79, 121, 224, 116, 254, 223, 112, 118, 56, 150, 96, 118, 222, 193, 112, 120, 24, 120, 96, 120, 190, 163, 112, 121, 248, 90, 96, 122, 158, 133, 112, 123, 216, 60, 96, 124, 126, 103, 112, 125, 184, 30, 96, 126, 94, 73, 112, 127, 152, 0, 96, 0, 1, 2, 3, 4, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 255, 255, 178, 37, 0, 0, 255, 255, 171, 160, 0, 4, 255, 255, 185, 176, 0, 8, 255, 255, 199, 192, 1, 12, 255, 255, 199, 192, 1, 16, 255, 255, 199, 192, 1, 20, 76, 77, 84, 0, 67, 83, 84, 0, 69, 83, 84, 0, 69, 87, 84, 0, 69, 80, 84, 0, 69, 68, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 10, 69, 83, 84, 53, 69, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/US/Mountain": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 158, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 158, 166, 58, 144, 159, 187, 7, 128, 160, 134, 28, 144, 161, 154, 233, 128, 162, 101, 254, 144, 163, 132, 6, 0, 164, 69, 224, 144, 164, 143, 166, 128, 203, 137, 12, 144, 210, 35, 244, 112, 210, 97, 24, 0, 247, 47, 118, 144, 248, 40, 148, 0, 249, 15, 88, 144, 250, 8, 118, 0, 250, 248, 117, 16, 251, 232, 88, 0, 252, 216, 87, 16, 253, 200, 58, 0, 254, 184, 57, 16, 255, 168, 28, 0, 0, 152, 27, 16, 1, 135, 254, 0, 2, 119, 253, 16, 3, 113, 26, 128, 4, 97, 25, 144, 5, 80, 252, 128, 6, 64, 251, 144, 7, 48, 222, 128, 7, 141, 53, 144, 9, 16, 192, 128, 9, 173, 177, 16, 10, 240, 162, 128, 11, 224, 161, 144, 12, 217, 191, 0, 13, 192, 131, 144, 14, 185, 161, 0, 15, 169, 160, 16, 16, 153, 131, 0, 17, 137, 130, 16, 18, 121, 101, 0, 19, 105, 100, 16, 20, 89, 71, 0, 21, 73, 70, 16, 22, 57, 41, 0, 23, 41, 40, 16, 24, 34, 69, 128, 25, 9, 10, 16, 26, 2, 39, 128, 26, 242, 38, 144, 27, 226, 9, 128, 28, 210, 8, 144, 29, 193, 235, 128, 30, 177, 234, 144, 31, 161, 205, 128, 32, 118, 29, 16, 33, 129, 175, 128, 34, 85, 255, 16, 35, 106, 204, 0, 36, 53, 225, 16, 37, 74, 174, 0, 38, 21, 195, 16, 39, 42, 144, 0, 39, 254, 223, 144, 41, 10, 114, 0, 41, 222, 193, 144, 42, 234, 84, 0, 43, 190, 163, 144, 44, 211, 112, 128, 45, 158, 133, 144, 46, 179, 82, 128, 47, 126, 103, 144, 48, 147, 52, 128, 49, 103, 132, 16, 50, 115, 22, 128, 51, 71, 102, 16, 52, 82, 248, 128, 53, 39, 72, 16, 54, 50, 218, 128, 55, 7, 42, 16, 56, 27, 247, 0, 56, 231, 12, 16, 57, 251, 217, 0, 58, 198, 238, 16, 59, 219, 187, 0, 60, 176, 10, 144, 61, 187, 157, 0, 62, 143, 236, 144, 63, 155, 127, 0, 64, 111, 206, 144, 65, 132, 155, 128, 66, 79, 176, 144, 67, 100, 125, 128, 68, 47, 146, 144, 69, 68, 95, 128, 69, 243, 197, 16, 71, 45, 124, 0, 71, 211, 167, 16, 73, 13, 94, 0, 73, 179, 137, 16, 74, 237, 64, 0, 75, 156, 165, 144, 76, 214, 92, 128, 77, 124, 135, 144, 78, 182, 62, 128, 79, 92, 105, 144, 80, 150, 32, 128, 81, 60, 75, 144, 82, 118, 2, 128, 83, 28, 45, 144, 84, 85, 228, 128, 84, 252, 15, 144, 86, 53, 198, 128, 86, 229, 44, 16, 88, 30, 227, 0, 88, 197, 14, 16, 89, 254, 197, 0, 90, 164, 240, 16, 91, 222, 167, 0, 92, 132, 210, 16, 93, 190, 137, 0, 94, 100, 180, 16, 95, 158, 107, 0, 96, 77, 208, 144, 97, 135, 135, 128, 98, 45, 178, 144, 99, 103, 105, 128, 100, 13, 148, 144, 101, 71, 75, 128, 101, 237, 118, 144, 103, 39, 45, 128, 103, 205, 88, 144, 105, 7, 15, 128, 105, 173, 58, 144, 106, 230, 241, 128, 107, 150, 87, 16, 108, 208, 14, 0, 109, 118, 57, 16, 110, 175, 240, 0, 111, 86, 27, 16, 112, 143, 210, 0, 113, 53, 253, 16, 114, 111, 180, 0, 115, 21, 223, 16, 116, 79, 150, 0, 116, 254, 251, 144, 118, 56, 178, 128, 118, 222, 221, 144, 120, 24, 148, 128, 120, 190, 191, 144, 121, 248, 118, 128, 122, 158, 161, 144, 123, 216, 88, 128, 124, 126, 131, 144, 125, 184, 58, 128, 126, 94, 101, 144, 127, 152, 28, 128, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 157, 148, 0, 0, 255, 255, 171, 160, 1, 4, 255, 255, 157, 144, 0, 8, 255, 255, 171, 160, 1, 12, 255, 255, 171, 160, 1, 16, 76, 77, 84, 0, 77, 68, 84, 0, 77, 83, 84, 0, 77, 87, 84, 0, 77, 80, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 10, 77, 83, 84, 55, 77, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/US/Pacific": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 186, 0, 0, 0, 5, 0, 0, 0, 20, 128, 0, 0, 0, 158, 166, 72, 160, 159, 187, 21, 144, 160, 134, 42, 160, 161, 154, 247, 144, 203, 137, 26, 160, 210, 35, 244, 112, 210, 97, 38, 16, 214, 254, 116, 92, 216, 128, 173, 144, 218, 254, 195, 144, 219, 192, 144, 16, 220, 222, 165, 144, 221, 169, 172, 144, 222, 190, 135, 144, 223, 137, 142, 144, 224, 158, 105, 144, 225, 105, 112, 144, 226, 126, 75, 144, 227, 73, 82, 144, 228, 94, 45, 144, 229, 41, 52, 144, 230, 71, 74, 16, 231, 18, 81, 16, 232, 39, 44, 16, 232, 242, 51, 16, 234, 7, 14, 16, 234, 210, 21, 16, 235, 230, 240, 16, 236, 177, 247, 16, 237, 198, 210, 16, 238, 145, 217, 16, 239, 175, 238, 144, 240, 113, 187, 16, 241, 143, 208, 144, 242, 127, 193, 144, 243, 111, 178, 144, 244, 95, 163, 144, 245, 79, 148, 144, 246, 63, 133, 144, 247, 47, 118, 144, 248, 40, 162, 16, 249, 15, 88, 144, 250, 8, 132, 16, 250, 248, 131, 32, 251, 232, 102, 16, 252, 216, 101, 32, 253, 200, 72, 16, 254, 184, 71, 32, 255, 168, 42, 16, 0, 152, 41, 32, 1, 136, 12, 16, 2, 120, 11, 32, 3, 113, 40, 144, 4, 97, 39, 160, 5, 81, 10, 144, 6, 65, 9, 160, 7, 48, 236, 144, 7, 141, 67, 160, 9, 16, 206, 144, 9, 173, 191, 32, 10, 240, 176, 144, 11, 224, 175, 160, 12, 217, 205, 16, 13, 192, 145, 160, 14, 185, 175, 16, 15, 169, 174, 32, 16, 153, 145, 16, 17, 137, 144, 32, 18, 121, 115, 16, 19, 105, 114, 32, 20, 89, 85, 16, 21, 73, 84, 32, 22, 57, 55, 16, 23, 41, 54, 32, 24, 34, 83, 144, 25, 9, 24, 32, 26, 2, 53, 144, 26, 242, 52, 160, 27, 226, 23, 144, 28, 210, 22, 160, 29, 193, 249, 144, 30, 177, 248, 160, 31, 161, 219, 144, 32, 118, 43, 32, 33, 129, 189, 144, 34, 86, 13, 32, 35, 106, 218, 16, 36, 53, 239, 32, 37, 74, 188, 16, 38, 21, 209, 32, 39, 42, 158, 16, 39, 254, 237, 160, 41, 10, 128, 16, 41, 222, 207, 160, 42, 234, 98, 16, 43, 190, 177, 160, 44, 211, 126, 144, 45, 158, 147, 160, 46, 179, 96, 144, 47, 126, 117, 160, 48, 147, 66, 144, 49, 103, 146, 32, 50, 115, 36, 144, 51, 71, 116, 32, 52, 83, 6, 144, 53, 39, 86, 32, 54, 50, 232, 144, 55, 7, 56, 32, 56, 28, 5, 16, 56, 231, 26, 32, 57, 251, 231, 16, 58, 198, 252, 32, 59, 219, 201, 16, 60, 176, 24, 160, 61, 187, 171, 16, 62, 143, 250, 160, 63, 155, 141, 16, 64, 111, 220, 160, 65, 132, 169, 144, 66, 79, 190, 160, 67, 100, 139, 144, 68, 47, 160, 160, 69, 68, 109, 144, 69, 243, 211, 32, 71, 45, 138, 16, 71, 211, 181, 32, 73, 13, 108, 16, 73, 179, 151, 32, 74, 237, 78, 16, 75, 156, 179, 160, 76, 214, 106, 144, 77, 124, 149, 160, 78, 182, 76, 144, 79, 92, 119, 160, 80, 150, 46, 144, 81, 60, 89, 160, 82, 118, 16, 144, 83, 28, 59, 160, 84, 85, 242, 144, 84, 252, 29, 160, 86, 53, 212, 144, 86, 229, 58, 32, 88, 30, 241, 16, 88, 197, 28, 32, 89, 254, 211, 16, 90, 164, 254, 32, 91, 222, 181, 16, 92, 132, 224, 32, 93, 190, 151, 16, 94, 100, 194, 32, 95, 158, 121, 16, 96, 77, 222, 160, 97, 135, 149, 144, 98, 45, 192, 160, 99, 103, 119, 144, 100, 13, 162, 160, 101, 71, 89, 144, 101, 237, 132, 160, 103, 39, 59, 144, 103, 205, 102, 160, 105, 7, 29, 144, 105, 173, 72, 160, 106, 230, 255, 144, 107, 150, 101, 32, 108, 208, 28, 16, 109, 118, 71, 32, 110, 175, 254, 16, 111, 86, 41, 32, 112, 143, 224, 16, 113, 54, 11, 32, 114, 111, 194, 16, 115, 21, 237, 32, 116, 79, 164, 16, 116, 255, 9, 160, 118, 56, 192, 144, 118, 222, 235, 160, 120, 24, 162, 144, 120, 190, 205, 160, 121, 248, 132, 144, 122, 158, 175, 160, 123, 216, 102, 144, 124, 126, 145, 160, 125, 184, 72, 144, 126, 94, 115, 160, 127, 152, 42, 144, 2, 1, 2, 1, 2, 3, 4, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 255, 255, 145, 38, 0, 0, 255, 255, 157, 144, 1, 4, 255, 255, 143, 128, 0, 8, 255, 255, 157, 144, 1, 12, 255, 255, 157, 144, 1, 16, 76, 77, 84, 0, 80, 68, 84, 0, 80, 83, 84, 0, 80, 87, 84, 0, 80, 80, 84, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 10, 80, 83, 84, 56, 80, 68, 84, 44, 77, 51, 46, 50, 46, 48, 44, 77, 49, 49, 46, 49, 46, 48, 10}, + + "zoneinfo/US/Samoa": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 8, 128, 0, 0, 0, 145, 5, 251, 8, 1, 2, 0, 0, 177, 120, 0, 0, 255, 255, 95, 248, 0, 0, 255, 255, 101, 80, 0, 4, 76, 77, 84, 0, 83, 83, 84, 0, 0, 0, 0, 0, 0, 0, 10, 83, 83, 84, 49, 49, 10}, + + "zoneinfo/UTC": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 85, 84, 67, 0, 0, 0, 10, 85, 84, 67, 48, 10}, + + "zoneinfo/Universal": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 85, 84, 67, 0, 0, 0, 10, 85, 84, 67, 48, 10}, + + "zoneinfo/W-SU": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 78, 0, 0, 0, 17, 0, 0, 0, 38, 128, 0, 0, 0, 155, 95, 30, 199, 157, 62, 242, 121, 158, 42, 238, 249, 158, 247, 57, 105, 159, 132, 87, 249, 160, 216, 108, 233, 161, 0, 57, 128, 161, 60, 166, 64, 164, 16, 109, 192, 164, 61, 50, 176, 165, 21, 104, 176, 165, 61, 3, 192, 167, 30, 69, 80, 181, 164, 25, 96, 21, 39, 167, 208, 22, 24, 220, 64, 23, 8, 219, 80, 23, 250, 15, 192, 24, 234, 14, 208, 25, 219, 67, 64, 26, 204, 147, 208, 27, 188, 160, 240, 28, 172, 145, 240, 29, 156, 130, 240, 30, 140, 115, 240, 31, 124, 100, 240, 32, 108, 85, 240, 33, 92, 70, 240, 34, 76, 55, 240, 35, 60, 40, 240, 36, 44, 25, 240, 37, 28, 10, 240, 38, 11, 251, 240, 39, 5, 39, 112, 39, 245, 24, 112, 40, 229, 23, 128, 41, 120, 191, 128, 41, 212, 250, 112, 42, 196, 235, 112, 43, 180, 220, 112, 44, 164, 205, 112, 45, 148, 190, 112, 46, 132, 175, 112, 47, 116, 160, 112, 48, 100, 145, 112, 49, 93, 188, 240, 50, 114, 151, 240, 51, 61, 158, 240, 52, 82, 121, 240, 53, 29, 128, 240, 54, 50, 91, 240, 54, 253, 98, 240, 56, 27, 120, 112, 56, 221, 68, 240, 57, 251, 90, 112, 58, 189, 38, 240, 59, 219, 60, 112, 60, 166, 67, 112, 61, 187, 30, 112, 62, 134, 37, 112, 63, 155, 0, 112, 64, 102, 7, 112, 65, 132, 28, 240, 66, 69, 233, 112, 67, 99, 254, 240, 68, 37, 203, 112, 69, 67, 224, 240, 70, 5, 173, 112, 71, 35, 194, 240, 71, 238, 201, 240, 73, 3, 164, 240, 73, 206, 171, 240, 74, 227, 134, 240, 75, 174, 141, 240, 76, 204, 163, 112, 77, 142, 111, 240, 84, 76, 29, 96, 1, 3, 2, 3, 4, 2, 4, 5, 6, 7, 8, 7, 6, 9, 6, 7, 6, 7, 6, 7, 6, 7, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 12, 13, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 14, 10, 0, 0, 35, 57, 0, 0, 0, 0, 35, 57, 0, 4, 0, 0, 49, 135, 1, 8, 0, 0, 35, 119, 0, 4, 0, 0, 63, 151, 1, 12, 0, 0, 56, 64, 1, 17, 0, 0, 42, 48, 0, 21, 0, 0, 56, 64, 1, 17, 0, 0, 70, 80, 1, 25, 0, 0, 28, 32, 0, 29, 0, 0, 42, 48, 0, 21, 0, 0, 56, 64, 1, 17, 0, 0, 42, 48, 1, 33, 0, 0, 28, 32, 0, 29, 0, 0, 56, 64, 0, 21, 0, 0, 56, 64, 1, 17, 0, 0, 42, 48, 0, 21, 76, 77, 84, 0, 77, 77, 84, 0, 77, 83, 84, 0, 77, 68, 83, 84, 0, 77, 83, 68, 0, 77, 83, 75, 0, 43, 48, 53, 0, 69, 69, 84, 0, 69, 69, 83, 84, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 77, 83, 75, 45, 51, 10}, + + "zoneinfo/WET": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 122, 0, 0, 0, 2, 0, 0, 0, 9, 13, 164, 99, 144, 14, 139, 26, 16, 15, 132, 69, 144, 16, 116, 54, 144, 17, 100, 39, 144, 18, 84, 24, 144, 19, 77, 68, 16, 20, 51, 250, 144, 21, 35, 235, 144, 22, 19, 220, 144, 23, 3, 205, 144, 23, 243, 190, 144, 24, 227, 175, 144, 25, 211, 160, 144, 26, 195, 145, 144, 27, 188, 189, 16, 28, 172, 174, 16, 29, 156, 159, 16, 30, 140, 144, 16, 31, 124, 129, 16, 32, 108, 114, 16, 33, 92, 99, 16, 34, 76, 84, 16, 35, 60, 69, 16, 36, 44, 54, 16, 37, 28, 39, 16, 38, 12, 24, 16, 39, 5, 67, 144, 39, 245, 52, 144, 40, 229, 37, 144, 41, 213, 22, 144, 42, 197, 7, 144, 43, 180, 248, 144, 44, 164, 233, 144, 45, 148, 218, 144, 46, 132, 203, 144, 47, 116, 188, 144, 48, 100, 173, 144, 49, 93, 217, 16, 50, 114, 180, 16, 51, 61, 187, 16, 52, 82, 150, 16, 53, 29, 157, 16, 54, 50, 120, 16, 54, 253, 127, 16, 56, 27, 148, 144, 56, 221, 97, 16, 57, 251, 118, 144, 58, 189, 67, 16, 59, 219, 88, 144, 60, 166, 95, 144, 61, 187, 58, 144, 62, 134, 65, 144, 63, 155, 28, 144, 64, 102, 35, 144, 65, 132, 57, 16, 66, 70, 5, 144, 67, 100, 27, 16, 68, 37, 231, 144, 69, 67, 253, 16, 70, 5, 201, 144, 71, 35, 223, 16, 71, 238, 230, 16, 73, 3, 193, 16, 73, 206, 200, 16, 74, 227, 163, 16, 75, 174, 170, 16, 76, 204, 191, 144, 77, 142, 140, 16, 78, 172, 161, 144, 79, 110, 110, 16, 80, 140, 131, 144, 81, 87, 138, 144, 82, 108, 101, 144, 83, 55, 108, 144, 84, 76, 71, 144, 85, 23, 78, 144, 86, 44, 41, 144, 86, 247, 48, 144, 88, 21, 70, 16, 88, 215, 18, 144, 89, 245, 40, 16, 90, 182, 244, 144, 91, 213, 10, 16, 92, 160, 17, 16, 93, 180, 236, 16, 94, 127, 243, 16, 95, 148, 206, 16, 96, 95, 213, 16, 97, 125, 234, 144, 98, 63, 183, 16, 99, 93, 204, 144, 100, 31, 153, 16, 101, 61, 174, 144, 102, 8, 181, 144, 103, 29, 144, 144, 103, 232, 151, 144, 104, 253, 114, 144, 105, 200, 121, 144, 106, 221, 84, 144, 107, 168, 91, 144, 108, 198, 113, 16, 109, 136, 61, 144, 110, 166, 83, 16, 111, 104, 31, 144, 112, 134, 53, 16, 113, 81, 60, 16, 114, 102, 23, 16, 115, 49, 30, 16, 116, 69, 249, 16, 117, 17, 0, 16, 118, 47, 21, 144, 118, 240, 226, 16, 120, 14, 247, 144, 120, 208, 196, 16, 121, 238, 217, 144, 122, 176, 166, 16, 123, 206, 187, 144, 124, 153, 194, 144, 125, 174, 157, 144, 126, 121, 164, 144, 127, 142, 127, 144, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 14, 16, 1, 0, 0, 0, 0, 0, 0, 5, 87, 69, 83, 84, 0, 87, 69, 84, 0, 1, 1, 1, 1, 10, 87, 69, 84, 48, 87, 69, 83, 84, 44, 77, 51, 46, 53, 46, 48, 47, 49, 44, 77, 49, 48, 46, 53, 46, 48, 10}, + + "zoneinfo/Zulu": []byte{84, 90, 105, 102, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 85, 84, 67, 0, 0, 0, 10, 85, 84, 67, 48, 10}, +} 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 new file mode 100644 index 0000000..43ba6fc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/json_parser.go @@ -0,0 +1,341 @@ +package responses + +import ( + "encoding/json" + "github.com/json-iterator/go" + "io" + "math" + "strconv" + "strings" + "sync" + "unsafe" +) + +const maxUint = ^uint(0) +const maxInt = int(maxUint >> 1) +const minInt = -maxInt - 1 + +var jsonParser jsoniter.API +var initJson = &sync.Once{} + +func initJsonParserOnce() { + initJson.Do(func() { + registerBetterFuzzyDecoder() + jsonParser = jsoniter.ConfigCompatibleWithStandardLibrary + }) +} + +func registerBetterFuzzyDecoder() { + jsoniter.RegisterTypeDecoder("string", &nullableFuzzyStringDecoder{}) + jsoniter.RegisterTypeDecoder("bool", &fuzzyBoolDecoder{}) + jsoniter.RegisterTypeDecoder("float32", &nullableFuzzyFloat32Decoder{}) + jsoniter.RegisterTypeDecoder("float64", &nullableFuzzyFloat64Decoder{}) + jsoniter.RegisterTypeDecoder("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() + } + }}) + jsoniter.RegisterTypeDecoder("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() + } + }}) + jsoniter.RegisterTypeDecoder("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() + } + }}) + jsoniter.RegisterTypeDecoder("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() + } + }}) + jsoniter.RegisterTypeDecoder("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() + } + }}) + jsoniter.RegisterTypeDecoder("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() + } + }}) + jsoniter.RegisterTypeDecoder("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() + } + }}) + jsoniter.RegisterTypeDecoder("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() + } + }}) + jsoniter.RegisterTypeDecoder("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() + } + }}) + jsoniter.RegisterTypeDecoder("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 tolerateEmptyArrayDecoder struct { + valDecoder jsoniter.ValDecoder +} + +func (decoder *tolerateEmptyArrayDecoder) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator) { + if iter.WhatIsNext() == jsoniter.ArrayValue { + iter.Skip() + newIter := iter.Pool().BorrowIterator([]byte("{}")) + defer iter.Pool().ReturnIterator(newIter) + decoder.valDecoder.Decode(ptr, newIter) + } else { + decoder.valDecoder.Decode(ptr, iter) + } +} + +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("nullableFuzzyFloat32Decoder", "not number or string") + } +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/json_parser_test.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/json_parser_test.go new file mode 100644 index 0000000..31987be --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/json_parser_test.go @@ -0,0 +1,145 @@ +package responses + +import ( + "encoding/json" + "fmt" + "github.com/stretchr/testify/assert" + "testing" +) + +func TestFuzzyFieldUnmarshal(t *testing.T) { + from, err := getJsonBytes() + if err != nil { + panic(err) + } + fmt.Println("From:") + fmt.Println(string(from)) + to := &To{} + // support auto json type trans + initJsonParserOnce() + err = jsonParser.Unmarshal(from, to) + if err != nil { + panic(err) + } + + fmt.Println("To:") + bytesTo, _ := json.MarshalIndent(to, "", " ") + fmt.Println(string(bytesTo)) + + assert.Equal(t, "demo string", to.StrToStr) + assert.Equal(t, 123, to.StrToInt) + assert.Equal(t, int64(2147483648), to.StrToInt64) + assert.Equal(t, 1.23, to.StrToFloat) + assert.True(t, to.UpperFullStrToBool) + assert.True(t, to.UpperCamelStrToBool) + assert.True(t, to.LowerStrToBool) + + assert.Equal(t, "123", to.IntToStr) + assert.Equal(t, 123, to.IntToInt) + + assert.Equal(t, "2147483648", to.Int64ToStr) + assert.Equal(t, int64(2147483648), to.Int64ToInt64) + + assert.Equal(t, "true", to.BoolToStr) + assert.Equal(t, true, to.BoolToBool) + + assert.Equal(t, 0, to.EmptyStrToInt) + assert.Equal(t, int64(0), to.EmptyStrToInt64) + assert.Equal(t, float64(0), to.EmptyStrToFloat) + assert.Equal(t, false, to.EmptyStrToBool) + assert.Equal(t, "", to.EmptyStrToStr) +} + +func getJsonBytes() ([]byte, error) { + from := &From{ + StrToStr: "demo string", + StrToInt: "123", + StrToInt64: "2147483648", + StrToFloat: "1.23", + UpperFullStrToBool: "TRUE", + UpperCamelStrToBool: "True", + LowerStrToBool: "true", + + IntToStr: 123, + IntToInt: 123, + + Int64ToStr: int64(2147483648), + Int64ToInt64: int64(2147483648), + + FloatToStr: float64(1.23), + FloatToFloat: float64(1.23), + + BoolToStr: true, + BoolToBool: true, + + EmptyStrToInt: "", + EmptyStrToInt64: "", + EmptyStrToFloat: "", + EmptyStrToBool: "", + EmptyStrToStr: "", + } + + return json.MarshalIndent(from, "", " ") +} + +type From struct { + StrToStr string + StrToInt string + StrToInt64 string + StrToFloat string + UpperFullStrToBool string + UpperCamelStrToBool string + LowerStrToBool string + + IntToStr int + IntToInt int + + Int64ToStr int64 + Int64ToInt64 int64 + + FloatToStr float64 + FloatToFloat float64 + + BoolToStr bool + BoolToBool bool + + EmptyStrToInt string + EmptyStrToInt64 string + EmptyStrToFloat string + EmptyStrToBool string + EmptyStrToStr string +} + +type To struct { + StrToStr string + StrToInt int + StrToInt64 int64 + StrToFloat float64 + UpperFullStrToBool bool + UpperCamelStrToBool bool + LowerStrToBool bool + + IntToStr string + IntToInt int + + Int64ToStr string + Int64ToInt64 int64 + + FloatToStr string + FloatToFloat float64 + + BoolToStr string + BoolToBool bool + + EmptyStrToInt int + EmptyStrToInt64 int64 + EmptyStrToFloat float64 + EmptyStrToBool bool + EmptyStrToStr string + + NilToInt int + NilToInt64 int64 + NilToFloat float64 + NilToBool bool + NilToStr 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 new file mode 100644 index 0000000..9716df1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/response.go @@ -0,0 +1,137 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" + "io/ioutil" + "net/http" + "strings" +) + +type AcsResponse interface { + IsSuccess() bool + GetHttpStatus() int + GetHttpHeaders() map[string][]string + GetHttpContentString() string + GetHttpContentBytes() []byte + GetOriginHttpResponse() *http.Response + parseFromHttpResponse(httpResponse *http.Response) error +} + +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 strings.ToUpper(format) == "JSON" { + initJsonParserOnce() + 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/utils.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/utils.go new file mode 100644 index 0000000..a00c775 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/utils.go @@ -0,0 +1,117 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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" + "encoding/base64" + "encoding/hex" + "encoding/json" + "fmt" + "github.com/satori/go.uuid" + "net/url" + "reflect" + "strconv" + "time" +) + +// if you use go 1.10 or higher, you can hack this util by these to avoid "TimeZone.zip not found" on Windows +var LoadLocationFromTZData func(name string, data []byte) (*time.Location, error) = nil +var TZData []byte = nil + +func GetUUIDV4() (uuidHex string) { + uuidV4 := uuid.NewV4() + uuidHex = hex.EncodeToString(uuidV4.Bytes()) + return +} + +func GetMD5Base64(bytes []byte) (base64Value string) { + md5Ctx := md5.New() + md5Ctx.Write(bytes) + md5Value := md5Ctx.Sum(nil) + base64Value = base64.StdEncoding.EncodeToString(md5Value) + return +} + +func GetGMTLocation() (*time.Location, error) { + if LoadLocationFromTZData != nil && TZData != nil { + return LoadLocationFromTZData("GMT", TZData) + } else { + return time.LoadLocation("GMT") + } +} + +func GetTimeInFormatISO8601() (timeStr string) { + gmt, err := GetGMTLocation() + + if err != nil { + panic(err) + } + return time.Now().In(gmt).Format("2006-01-02T15:04:05Z") +} + +func GetTimeInFormatRFC2616() (timeStr string) { + gmt, err := GetGMTLocation() + + if err != nil { + panic(err) + } + 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 GetFromJsonString(jsonString, key string) (result string, err error) { + var responseMap map[string]*json.RawMessage + err = json.Unmarshal([]byte(jsonString), &responseMap) + if err != nil { + return + } + fmt.Println(string(*responseMap[key])) + err = json.Unmarshal(*responseMap[key], &result) + 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) + } + } +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/batch_delete_white_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/batch_delete_white_list.go new file mode 100644 index 0000000..da317d1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/batch_delete_white_list.go @@ -0,0 +1,105 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// BatchDeleteWhiteList invokes the aegis.BatchDeleteWhiteList API synchronously +// api document: https://help.aliyun.com/api/aegis/batchdeletewhitelist.html +func (client *Client) BatchDeleteWhiteList(request *BatchDeleteWhiteListRequest) (response *BatchDeleteWhiteListResponse, err error) { + response = CreateBatchDeleteWhiteListResponse() + err = client.DoAction(request, response) + return +} + +// BatchDeleteWhiteListWithChan invokes the aegis.BatchDeleteWhiteList API asynchronously +// api document: https://help.aliyun.com/api/aegis/batchdeletewhitelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BatchDeleteWhiteListWithChan(request *BatchDeleteWhiteListRequest) (<-chan *BatchDeleteWhiteListResponse, <-chan error) { + responseChan := make(chan *BatchDeleteWhiteListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BatchDeleteWhiteList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BatchDeleteWhiteListWithCallback invokes the aegis.BatchDeleteWhiteList API asynchronously +// api document: https://help.aliyun.com/api/aegis/batchdeletewhitelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BatchDeleteWhiteListWithCallback(request *BatchDeleteWhiteListRequest, callback func(response *BatchDeleteWhiteListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BatchDeleteWhiteListResponse + var err error + defer close(result) + response, err = client.BatchDeleteWhiteList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BatchDeleteWhiteListRequest is the request struct for api BatchDeleteWhiteList +type BatchDeleteWhiteListRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + RiskIdList string `position:"Query" name:"RiskIdList"` +} + +// BatchDeleteWhiteListResponse is the response struct for api BatchDeleteWhiteList +type BatchDeleteWhiteListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateBatchDeleteWhiteListRequest creates a request to invoke BatchDeleteWhiteList API +func CreateBatchDeleteWhiteListRequest() (request *BatchDeleteWhiteListRequest) { + request = &BatchDeleteWhiteListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "BatchDeleteWhiteList", "vipaegis", "openAPI") + return +} + +// CreateBatchDeleteWhiteListResponse creates a response to parse from BatchDeleteWhiteList response +func CreateBatchDeleteWhiteListResponse() (response *BatchDeleteWhiteListResponse) { + response = &BatchDeleteWhiteListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/client.go new file mode 100644 index 0000000..9b51ebe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/client.go @@ -0,0 +1,81 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/create_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/create_instance.go new file mode 100644 index 0000000..cb35858 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/create_instance.go @@ -0,0 +1,112 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateInstance invokes the aegis.CreateInstance API synchronously +// api document: https://help.aliyun.com/api/aegis/createinstance.html +func (client *Client) CreateInstance(request *CreateInstanceRequest) (response *CreateInstanceResponse, err error) { + response = CreateCreateInstanceResponse() + err = client.DoAction(request, response) + return +} + +// CreateInstanceWithChan invokes the aegis.CreateInstance API asynchronously +// api document: https://help.aliyun.com/api/aegis/createinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateInstanceWithChan(request *CreateInstanceRequest) (<-chan *CreateInstanceResponse, <-chan error) { + responseChan := make(chan *CreateInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateInstanceWithCallback invokes the aegis.CreateInstance API asynchronously +// api document: https://help.aliyun.com/api/aegis/createinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateInstanceWithCallback(request *CreateInstanceRequest, callback func(response *CreateInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateInstanceResponse + var err error + defer close(result) + response, err = client.CreateInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateInstanceRequest is the request struct for api CreateInstance +type CreateInstanceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + Duration requests.Integer `position:"Query" name:"Duration"` + PricingCycle string `position:"Query" name:"PricingCycle"` + VersionCode requests.Integer `position:"Query" name:"VersionCode"` + VmNumber requests.Integer `position:"Query" name:"VmNumber"` + IsAutoRenew requests.Boolean `position:"Query" name:"IsAutoRenew"` + AutoRenewDuration requests.Integer `position:"Query" name:"AutoRenewDuration"` +} + +// CreateInstanceResponse is the response struct for api CreateInstance +type CreateInstanceResponse struct { + *responses.BaseResponse + OrderId string `json:"OrderId" xml:"OrderId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateInstanceRequest creates a request to invoke CreateInstance API +func CreateCreateInstanceRequest() (request *CreateInstanceRequest) { + request = &CreateInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "CreateInstance", "vipaegis", "openAPI") + return +} + +// CreateCreateInstanceResponse creates a response to parse from CreateInstance response +func CreateCreateInstanceResponse() (response *CreateInstanceResponse) { + response = &CreateInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/create_suspicious_export.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/create_suspicious_export.go new file mode 100644 index 0000000..08c03f5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/create_suspicious_export.go @@ -0,0 +1,115 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateSuspiciousExport invokes the aegis.CreateSuspiciousExport API synchronously +// api document: https://help.aliyun.com/api/aegis/createsuspiciousexport.html +func (client *Client) CreateSuspiciousExport(request *CreateSuspiciousExportRequest) (response *CreateSuspiciousExportResponse, err error) { + response = CreateCreateSuspiciousExportResponse() + err = client.DoAction(request, response) + return +} + +// CreateSuspiciousExportWithChan invokes the aegis.CreateSuspiciousExport API asynchronously +// api document: https://help.aliyun.com/api/aegis/createsuspiciousexport.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSuspiciousExportWithChan(request *CreateSuspiciousExportRequest) (<-chan *CreateSuspiciousExportResponse, <-chan error) { + responseChan := make(chan *CreateSuspiciousExportResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateSuspiciousExport(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateSuspiciousExportWithCallback invokes the aegis.CreateSuspiciousExport API asynchronously +// api document: https://help.aliyun.com/api/aegis/createsuspiciousexport.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSuspiciousExportWithCallback(request *CreateSuspiciousExportRequest, callback func(response *CreateSuspiciousExportResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateSuspiciousExportResponse + var err error + defer close(result) + response, err = client.CreateSuspiciousExport(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateSuspiciousExportRequest is the request struct for api CreateSuspiciousExport +type CreateSuspiciousExportRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + EventNameRemark string `position:"Query" name:"EventNameRemark"` + StatusList string `position:"Query" name:"StatusList"` + Level string `position:"Query" name:"Level"` + Dealed string `position:"Query" name:"Dealed"` + EventType string `position:"Query" name:"EventType"` + Uuids string `position:"Query" name:"Uuids"` + GroupId string `position:"Query" name:"GroupId"` + Remark string `position:"Query" name:"Remark"` + Tag string `position:"Query" name:"Tag"` +} + +// CreateSuspiciousExportResponse is the response struct for api CreateSuspiciousExport +type CreateSuspiciousExportResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Id int `json:"Id" xml:"Id"` + FileName string `json:"FileName" xml:"FileName"` +} + +// CreateCreateSuspiciousExportRequest creates a request to invoke CreateSuspiciousExport API +func CreateCreateSuspiciousExportRequest() (request *CreateSuspiciousExportRequest) { + request = &CreateSuspiciousExportRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "CreateSuspiciousExport", "vipaegis", "openAPI") + return +} + +// CreateCreateSuspiciousExportResponse creates a response to parse from CreateSuspiciousExport response +func CreateCreateSuspiciousExportResponse() (response *CreateSuspiciousExportResponse) { + response = &CreateSuspiciousExportResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/create_user_setting.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/create_user_setting.go new file mode 100644 index 0000000..3e1fe63 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/create_user_setting.go @@ -0,0 +1,105 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateUserSetting invokes the aegis.CreateUserSetting API synchronously +// api document: https://help.aliyun.com/api/aegis/createusersetting.html +func (client *Client) CreateUserSetting(request *CreateUserSettingRequest) (response *CreateUserSettingResponse, err error) { + response = CreateCreateUserSettingResponse() + err = client.DoAction(request, response) + return +} + +// CreateUserSettingWithChan invokes the aegis.CreateUserSetting API asynchronously +// api document: https://help.aliyun.com/api/aegis/createusersetting.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateUserSettingWithChan(request *CreateUserSettingRequest) (<-chan *CreateUserSettingResponse, <-chan error) { + responseChan := make(chan *CreateUserSettingResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateUserSetting(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateUserSettingWithCallback invokes the aegis.CreateUserSetting API asynchronously +// api document: https://help.aliyun.com/api/aegis/createusersetting.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateUserSettingWithCallback(request *CreateUserSettingRequest, callback func(response *CreateUserSettingResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateUserSettingResponse + var err error + defer close(result) + response, err = client.CreateUserSetting(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateUserSettingRequest is the request struct for api CreateUserSetting +type CreateUserSettingRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + FrequencyByDays requests.Integer `position:"Query" name:"FrequencyByDays"` +} + +// CreateUserSettingResponse is the response struct for api CreateUserSetting +type CreateUserSettingResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateUserSettingRequest creates a request to invoke CreateUserSetting API +func CreateCreateUserSettingRequest() (request *CreateUserSettingRequest) { + request = &CreateUserSettingRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "CreateUserSetting", "vipaegis", "openAPI") + return +} + +// CreateCreateUserSettingResponse creates a response to parse from CreateUserSetting response +func CreateCreateUserSettingResponse() (response *CreateUserSettingResponse) { + response = &CreateUserSettingResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/create_user_white_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/create_user_white_list.go new file mode 100644 index 0000000..dffa0d4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/create_user_white_list.go @@ -0,0 +1,106 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateUserWhiteList invokes the aegis.CreateUserWhiteList API synchronously +// api document: https://help.aliyun.com/api/aegis/createuserwhitelist.html +func (client *Client) CreateUserWhiteList(request *CreateUserWhiteListRequest) (response *CreateUserWhiteListResponse, err error) { + response = CreateCreateUserWhiteListResponse() + err = client.DoAction(request, response) + return +} + +// CreateUserWhiteListWithChan invokes the aegis.CreateUserWhiteList API asynchronously +// api document: https://help.aliyun.com/api/aegis/createuserwhitelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateUserWhiteListWithChan(request *CreateUserWhiteListRequest) (<-chan *CreateUserWhiteListResponse, <-chan error) { + responseChan := make(chan *CreateUserWhiteListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateUserWhiteList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateUserWhiteListWithCallback invokes the aegis.CreateUserWhiteList API asynchronously +// api document: https://help.aliyun.com/api/aegis/createuserwhitelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateUserWhiteListWithCallback(request *CreateUserWhiteListRequest, callback func(response *CreateUserWhiteListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateUserWhiteListResponse + var err error + defer close(result) + response, err = client.CreateUserWhiteList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateUserWhiteListRequest is the request struct for api CreateUserWhiteList +type CreateUserWhiteListRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + RiskIdList string `position:"Query" name:"RiskIdList"` +} + +// CreateUserWhiteListResponse is the response struct for api CreateUserWhiteList +type CreateUserWhiteListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` +} + +// CreateCreateUserWhiteListRequest creates a request to invoke CreateUserWhiteList API +func CreateCreateUserWhiteListRequest() (request *CreateUserWhiteListRequest) { + request = &CreateUserWhiteListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "CreateUserWhiteList", "vipaegis", "openAPI") + return +} + +// CreateCreateUserWhiteListResponse creates a response to parse from CreateUserWhiteList response +func CreateCreateUserWhiteListResponse() (response *CreateUserWhiteListResponse) { + response = &CreateUserWhiteListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/delete_strategy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/delete_strategy.go new file mode 100644 index 0000000..3ef8491 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/delete_strategy.go @@ -0,0 +1,105 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteStrategy invokes the aegis.DeleteStrategy API synchronously +// api document: https://help.aliyun.com/api/aegis/deletestrategy.html +func (client *Client) DeleteStrategy(request *DeleteStrategyRequest) (response *DeleteStrategyResponse, err error) { + response = CreateDeleteStrategyResponse() + err = client.DoAction(request, response) + return +} + +// DeleteStrategyWithChan invokes the aegis.DeleteStrategy API asynchronously +// api document: https://help.aliyun.com/api/aegis/deletestrategy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteStrategyWithChan(request *DeleteStrategyRequest) (<-chan *DeleteStrategyResponse, <-chan error) { + responseChan := make(chan *DeleteStrategyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteStrategy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteStrategyWithCallback invokes the aegis.DeleteStrategy API asynchronously +// api document: https://help.aliyun.com/api/aegis/deletestrategy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteStrategyWithCallback(request *DeleteStrategyRequest, callback func(response *DeleteStrategyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteStrategyResponse + var err error + defer close(result) + response, err = client.DeleteStrategy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteStrategyRequest is the request struct for api DeleteStrategy +type DeleteStrategyRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Id string `position:"Query" name:"Id"` +} + +// DeleteStrategyResponse is the response struct for api DeleteStrategy +type DeleteStrategyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteStrategyRequest creates a request to invoke DeleteStrategy API +func CreateDeleteStrategyRequest() (request *DeleteStrategyRequest) { + request = &DeleteStrategyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "DeleteStrategy", "vipaegis", "openAPI") + return +} + +// CreateDeleteStrategyResponse creates a response to parse from DeleteStrategy response +func CreateDeleteStrategyResponse() (response *DeleteStrategyResponse) { + response = &DeleteStrategyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_export_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_export_info.go new file mode 100644 index 0000000..a29dbed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_export_info.go @@ -0,0 +1,114 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeExportInfo invokes the aegis.DescribeExportInfo API synchronously +// api document: https://help.aliyun.com/api/aegis/describeexportinfo.html +func (client *Client) DescribeExportInfo(request *DescribeExportInfoRequest) (response *DescribeExportInfoResponse, err error) { + response = CreateDescribeExportInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeExportInfoWithChan invokes the aegis.DescribeExportInfo API asynchronously +// api document: https://help.aliyun.com/api/aegis/describeexportinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeExportInfoWithChan(request *DescribeExportInfoRequest) (<-chan *DescribeExportInfoResponse, <-chan error) { + responseChan := make(chan *DescribeExportInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeExportInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeExportInfoWithCallback invokes the aegis.DescribeExportInfo API asynchronously +// api document: https://help.aliyun.com/api/aegis/describeexportinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeExportInfoWithCallback(request *DescribeExportInfoRequest, callback func(response *DescribeExportInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeExportInfoResponse + var err error + defer close(result) + response, err = client.DescribeExportInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeExportInfoRequest is the request struct for api DescribeExportInfo +type DescribeExportInfoRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ExportId requests.Integer `position:"Query" name:"ExportId"` +} + +// DescribeExportInfoResponse is the response struct for api DescribeExportInfo +type DescribeExportInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + FileName string `json:"FileName" xml:"FileName"` + CurrentCount int `json:"CurrentCount" xml:"CurrentCount"` + Link string `json:"Link" xml:"Link"` + Progress int `json:"Progress" xml:"Progress"` + Id int `json:"Id" xml:"Id"` + Message string `json:"Message" xml:"Message"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + GmtCreate int `json:"GmtCreate" xml:"GmtCreate"` + Status string `json:"Status" xml:"Status"` +} + +// CreateDescribeExportInfoRequest creates a request to invoke DescribeExportInfo API +func CreateDescribeExportInfoRequest() (request *DescribeExportInfoRequest) { + request = &DescribeExportInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "DescribeExportInfo", "vipaegis", "openAPI") + return +} + +// CreateDescribeExportInfoResponse creates a response to parse from DescribeExportInfo response +func CreateDescribeExportInfoResponse() (response *DescribeExportInfoResponse) { + response = &DescribeExportInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_login_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_login_logs.go new file mode 100644 index 0000000..eead86c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_login_logs.go @@ -0,0 +1,113 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLoginLogs invokes the aegis.DescribeLoginLogs API synchronously +// api document: https://help.aliyun.com/api/aegis/describeloginlogs.html +func (client *Client) DescribeLoginLogs(request *DescribeLoginLogsRequest) (response *DescribeLoginLogsResponse, err error) { + response = CreateDescribeLoginLogsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLoginLogsWithChan invokes the aegis.DescribeLoginLogs API asynchronously +// api document: https://help.aliyun.com/api/aegis/describeloginlogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLoginLogsWithChan(request *DescribeLoginLogsRequest) (<-chan *DescribeLoginLogsResponse, <-chan error) { + responseChan := make(chan *DescribeLoginLogsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLoginLogs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLoginLogsWithCallback invokes the aegis.DescribeLoginLogs API asynchronously +// api document: https://help.aliyun.com/api/aegis/describeloginlogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLoginLogsWithCallback(request *DescribeLoginLogsRequest, callback func(response *DescribeLoginLogsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLoginLogsResponse + var err error + defer close(result) + response, err = client.DescribeLoginLogs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLoginLogsRequest is the request struct for api DescribeLoginLogs +type DescribeLoginLogsRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + Statuses string `position:"Query" name:"Statuses"` + Types string `position:"Query" name:"Types"` + Tag string `position:"Query" name:"Tag"` + Remark string `position:"Query" name:"Remark"` +} + +// DescribeLoginLogsResponse is the response struct for api DescribeLoginLogs +type DescribeLoginLogsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + CurrentPage int `json:"CurrentPage" xml:"CurrentPage"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + LogList []LogListItem `json:"LogList" xml:"LogList"` +} + +// CreateDescribeLoginLogsRequest creates a request to invoke DescribeLoginLogs API +func CreateDescribeLoginLogsRequest() (request *DescribeLoginLogsRequest) { + request = &DescribeLoginLogsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "DescribeLoginLogs", "vipaegis", "openAPI") + return +} + +// CreateDescribeLoginLogsResponse creates a response to parse from DescribeLoginLogs response +func CreateDescribeLoginLogsResponse() (response *DescribeLoginLogsResponse) { + response = &DescribeLoginLogsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_mac_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_mac_config.go new file mode 100644 index 0000000..db8b91c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_mac_config.go @@ -0,0 +1,114 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeMacConfig invokes the aegis.DescribeMacConfig API synchronously +// api document: https://help.aliyun.com/api/aegis/describemacconfig.html +func (client *Client) DescribeMacConfig(request *DescribeMacConfigRequest) (response *DescribeMacConfigResponse, err error) { + response = CreateDescribeMacConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeMacConfigWithChan invokes the aegis.DescribeMacConfig API asynchronously +// api document: https://help.aliyun.com/api/aegis/describemacconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMacConfigWithChan(request *DescribeMacConfigRequest) (<-chan *DescribeMacConfigResponse, <-chan error) { + responseChan := make(chan *DescribeMacConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeMacConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeMacConfigWithCallback invokes the aegis.DescribeMacConfig API asynchronously +// api document: https://help.aliyun.com/api/aegis/describemacconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMacConfigWithCallback(request *DescribeMacConfigRequest, callback func(response *DescribeMacConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeMacConfigResponse + var err error + defer close(result) + response, err = client.DescribeMacConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeMacConfigRequest is the request struct for api DescribeMacConfig +type DescribeMacConfigRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Target string `position:"Query" name:"Target"` + Types string `position:"Query" name:"Types"` + Type string `position:"Query" name:"Type"` + Config string `position:"Query" name:"Config"` + Extern string `position:"Query" name:"Extern"` +} + +// DescribeMacConfigResponse is the response struct for api DescribeMacConfig +type DescribeMacConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Count int `json:"Count" xml:"Count"` + PageSize int `json:"PageSize" xml:"PageSize"` + CurrentPage int `json:"CurrentPage" xml:"CurrentPage"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Configs []Config `json:"Configs" xml:"Configs"` +} + +// CreateDescribeMacConfigRequest creates a request to invoke DescribeMacConfig API +func CreateDescribeMacConfigRequest() (request *DescribeMacConfigRequest) { + request = &DescribeMacConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "DescribeMacConfig", "vipaegis", "openAPI") + return +} + +// CreateDescribeMacConfigResponse creates a response to parse from DescribeMacConfig response +func CreateDescribeMacConfigResponse() (response *DescribeMacConfigResponse) { + response = &DescribeMacConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_machine_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_machine_config.go new file mode 100644 index 0000000..6866822 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_machine_config.go @@ -0,0 +1,113 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeMachineConfig invokes the aegis.DescribeMachineConfig API synchronously +// api document: https://help.aliyun.com/api/aegis/describemachineconfig.html +func (client *Client) DescribeMachineConfig(request *DescribeMachineConfigRequest) (response *DescribeMachineConfigResponse, err error) { + response = CreateDescribeMachineConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeMachineConfigWithChan invokes the aegis.DescribeMachineConfig API asynchronously +// api document: https://help.aliyun.com/api/aegis/describemachineconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMachineConfigWithChan(request *DescribeMachineConfigRequest) (<-chan *DescribeMachineConfigResponse, <-chan error) { + responseChan := make(chan *DescribeMachineConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeMachineConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeMachineConfigWithCallback invokes the aegis.DescribeMachineConfig API asynchronously +// api document: https://help.aliyun.com/api/aegis/describemachineconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMachineConfigWithCallback(request *DescribeMachineConfigRequest, callback func(response *DescribeMachineConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeMachineConfigResponse + var err error + defer close(result) + response, err = client.DescribeMachineConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeMachineConfigRequest is the request struct for api DescribeMachineConfig +type DescribeMachineConfigRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Target string `position:"Query" name:"Target"` + Types string `position:"Query" name:"Types"` + Type string `position:"Query" name:"Type"` + Config string `position:"Query" name:"Config"` + Lang string `position:"Query" name:"Lang"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeMachineConfigResponse is the response struct for api DescribeMachineConfig +type DescribeMachineConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Count int `json:"Count" xml:"Count"` + ConfigTargets []ConfigTarget `json:"ConfigTargets" xml:"ConfigTargets"` +} + +// CreateDescribeMachineConfigRequest creates a request to invoke DescribeMachineConfig API +func CreateDescribeMachineConfigRequest() (request *DescribeMachineConfigRequest) { + request = &DescribeMachineConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "DescribeMachineConfig", "vipaegis", "openAPI") + return +} + +// CreateDescribeMachineConfigResponse creates a response to parse from DescribeMachineConfig response +func CreateDescribeMachineConfigResponse() (response *DescribeMachineConfigResponse) { + response = &DescribeMachineConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_risk_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_risk_type.go new file mode 100644 index 0000000..59f3a82 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_risk_type.go @@ -0,0 +1,108 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRiskType invokes the aegis.DescribeRiskType API synchronously +// api document: https://help.aliyun.com/api/aegis/describerisktype.html +func (client *Client) DescribeRiskType(request *DescribeRiskTypeRequest) (response *DescribeRiskTypeResponse, err error) { + response = CreateDescribeRiskTypeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRiskTypeWithChan invokes the aegis.DescribeRiskType API asynchronously +// api document: https://help.aliyun.com/api/aegis/describerisktype.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRiskTypeWithChan(request *DescribeRiskTypeRequest) (<-chan *DescribeRiskTypeResponse, <-chan error) { + responseChan := make(chan *DescribeRiskTypeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRiskType(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRiskTypeWithCallback invokes the aegis.DescribeRiskType API asynchronously +// api document: https://help.aliyun.com/api/aegis/describerisktype.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRiskTypeWithCallback(request *DescribeRiskTypeRequest, callback func(response *DescribeRiskTypeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRiskTypeResponse + var err error + defer close(result) + response, err = client.DescribeRiskType(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRiskTypeRequest is the request struct for api DescribeRiskType +type DescribeRiskTypeRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Uuids string `position:"Query" name:"Uuids"` + StrategyId requests.Integer `position:"Query" name:"StrategyId"` +} + +// DescribeRiskTypeResponse is the response struct for api DescribeRiskType +type DescribeRiskTypeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Count int `json:"Count" xml:"Count"` + RiskTypes []RiskType `json:"RiskTypes" xml:"RiskTypes"` +} + +// CreateDescribeRiskTypeRequest creates a request to invoke DescribeRiskType API +func CreateDescribeRiskTypeRequest() (request *DescribeRiskTypeRequest) { + request = &DescribeRiskTypeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "DescribeRiskType", "vipaegis", "openAPI") + return +} + +// CreateDescribeRiskTypeResponse creates a response to parse from DescribeRiskType response +func CreateDescribeRiskTypeResponse() (response *DescribeRiskTypeResponse) { + response = &DescribeRiskTypeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_risk_white_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_risk_white_list.go new file mode 100644 index 0000000..3df21ef --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_risk_white_list.go @@ -0,0 +1,112 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRiskWhiteList invokes the aegis.DescribeRiskWhiteList API synchronously +// api document: https://help.aliyun.com/api/aegis/describeriskwhitelist.html +func (client *Client) DescribeRiskWhiteList(request *DescribeRiskWhiteListRequest) (response *DescribeRiskWhiteListResponse, err error) { + response = CreateDescribeRiskWhiteListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRiskWhiteListWithChan invokes the aegis.DescribeRiskWhiteList API asynchronously +// api document: https://help.aliyun.com/api/aegis/describeriskwhitelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRiskWhiteListWithChan(request *DescribeRiskWhiteListRequest) (<-chan *DescribeRiskWhiteListResponse, <-chan error) { + responseChan := make(chan *DescribeRiskWhiteListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRiskWhiteList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRiskWhiteListWithCallback invokes the aegis.DescribeRiskWhiteList API asynchronously +// api document: https://help.aliyun.com/api/aegis/describeriskwhitelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRiskWhiteListWithCallback(request *DescribeRiskWhiteListRequest, callback func(response *DescribeRiskWhiteListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRiskWhiteListResponse + var err error + defer close(result) + response, err = client.DescribeRiskWhiteList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRiskWhiteListRequest is the request struct for api DescribeRiskWhiteList +type DescribeRiskWhiteListRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + RiskName string `position:"Query" name:"RiskName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` +} + +// DescribeRiskWhiteListResponse is the response struct for api DescribeRiskWhiteList +type DescribeRiskWhiteListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Count int `json:"Count" xml:"Count"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + CurrentPage int `json:"CurrentPage" xml:"CurrentPage"` + WhiteLists []WhiteList `json:"WhiteLists" xml:"WhiteLists"` +} + +// CreateDescribeRiskWhiteListRequest creates a request to invoke DescribeRiskWhiteList API +func CreateDescribeRiskWhiteListRequest() (request *DescribeRiskWhiteListRequest) { + request = &DescribeRiskWhiteListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "DescribeRiskWhiteList", "vipaegis", "openAPI") + return +} + +// CreateDescribeRiskWhiteListResponse creates a response to parse from DescribeRiskWhiteList response +func CreateDescribeRiskWhiteListResponse() (response *DescribeRiskWhiteListResponse) { + response = &DescribeRiskWhiteListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_risks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_risks.go new file mode 100644 index 0000000..3fa5fb2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_risks.go @@ -0,0 +1,109 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRisks invokes the aegis.DescribeRisks API synchronously +// api document: https://help.aliyun.com/api/aegis/describerisks.html +func (client *Client) DescribeRisks(request *DescribeRisksRequest) (response *DescribeRisksResponse, err error) { + response = CreateDescribeRisksResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRisksWithChan invokes the aegis.DescribeRisks API asynchronously +// api document: https://help.aliyun.com/api/aegis/describerisks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRisksWithChan(request *DescribeRisksRequest) (<-chan *DescribeRisksResponse, <-chan error) { + responseChan := make(chan *DescribeRisksResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRisks(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRisksWithCallback invokes the aegis.DescribeRisks API asynchronously +// api document: https://help.aliyun.com/api/aegis/describerisks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRisksWithCallback(request *DescribeRisksRequest, callback func(response *DescribeRisksResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRisksResponse + var err error + defer close(result) + response, err = client.DescribeRisks(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRisksRequest is the request struct for api DescribeRisks +type DescribeRisksRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + RiskId requests.Integer `position:"Query" name:"RiskId"` + RiskName string `position:"Query" name:"RiskName"` + Limit requests.Integer `position:"Query" name:"Limit"` +} + +// DescribeRisksResponse is the response struct for api DescribeRisks +type DescribeRisksResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Risks []Risk `json:"Risks" xml:"Risks"` +} + +// CreateDescribeRisksRequest creates a request to invoke DescribeRisks API +func CreateDescribeRisksRequest() (request *DescribeRisksRequest) { + request = &DescribeRisksRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "DescribeRisks", "vipaegis", "openAPI") + return +} + +// CreateDescribeRisksResponse creates a response to parse from DescribeRisks response +func CreateDescribeRisksResponse() (response *DescribeRisksResponse) { + response = &DescribeRisksResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_strategy_target.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_strategy_target.go new file mode 100644 index 0000000..ba79ce6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_strategy_target.go @@ -0,0 +1,109 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeStrategyTarget invokes the aegis.DescribeStrategyTarget API synchronously +// api document: https://help.aliyun.com/api/aegis/describestrategytarget.html +func (client *Client) DescribeStrategyTarget(request *DescribeStrategyTargetRequest) (response *DescribeStrategyTargetResponse, err error) { + response = CreateDescribeStrategyTargetResponse() + err = client.DoAction(request, response) + return +} + +// DescribeStrategyTargetWithChan invokes the aegis.DescribeStrategyTarget API asynchronously +// api document: https://help.aliyun.com/api/aegis/describestrategytarget.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeStrategyTargetWithChan(request *DescribeStrategyTargetRequest) (<-chan *DescribeStrategyTargetResponse, <-chan error) { + responseChan := make(chan *DescribeStrategyTargetResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeStrategyTarget(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeStrategyTargetWithCallback invokes the aegis.DescribeStrategyTarget API asynchronously +// api document: https://help.aliyun.com/api/aegis/describestrategytarget.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeStrategyTargetWithCallback(request *DescribeStrategyTargetRequest, callback func(response *DescribeStrategyTargetResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeStrategyTargetResponse + var err error + defer close(result) + response, err = client.DescribeStrategyTarget(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeStrategyTargetRequest is the request struct for api DescribeStrategyTarget +type DescribeStrategyTargetRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Type string `position:"Query" name:"Type"` + Config string `position:"Query" name:"Config"` + Target string `position:"Query" name:"Target"` +} + +// DescribeStrategyTargetResponse is the response struct for api DescribeStrategyTarget +type DescribeStrategyTargetResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Count int `json:"Count" xml:"Count"` + StrategyTargets []StrategyTarget `json:"StrategyTargets" xml:"StrategyTargets"` +} + +// CreateDescribeStrategyTargetRequest creates a request to invoke DescribeStrategyTarget API +func CreateDescribeStrategyTargetRequest() (request *DescribeStrategyTargetRequest) { + request = &DescribeStrategyTargetRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "DescribeStrategyTarget", "vipaegis", "openAPI") + return +} + +// CreateDescribeStrategyTargetResponse creates a response to parse from DescribeStrategyTarget response +func CreateDescribeStrategyTargetResponse() (response *DescribeStrategyTargetResponse) { + response = &DescribeStrategyTargetResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_stratety.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_stratety.go new file mode 100644 index 0000000..fa1b201 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_stratety.go @@ -0,0 +1,106 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeStratety invokes the aegis.DescribeStratety API synchronously +// api document: https://help.aliyun.com/api/aegis/describestratety.html +func (client *Client) DescribeStratety(request *DescribeStratetyRequest) (response *DescribeStratetyResponse, err error) { + response = CreateDescribeStratetyResponse() + err = client.DoAction(request, response) + return +} + +// DescribeStratetyWithChan invokes the aegis.DescribeStratety API asynchronously +// api document: https://help.aliyun.com/api/aegis/describestratety.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeStratetyWithChan(request *DescribeStratetyRequest) (<-chan *DescribeStratetyResponse, <-chan error) { + responseChan := make(chan *DescribeStratetyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeStratety(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeStratetyWithCallback invokes the aegis.DescribeStratety API asynchronously +// api document: https://help.aliyun.com/api/aegis/describestratety.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeStratetyWithCallback(request *DescribeStratetyRequest, callback func(response *DescribeStratetyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeStratetyResponse + var err error + defer close(result) + response, err = client.DescribeStratety(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeStratetyRequest is the request struct for api DescribeStratety +type DescribeStratetyRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` +} + +// DescribeStratetyResponse is the response struct for api DescribeStratety +type DescribeStratetyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Count int `json:"Count" xml:"Count"` + Strategies []Strategie `json:"Strategies" xml:"Strategies"` +} + +// CreateDescribeStratetyRequest creates a request to invoke DescribeStratety API +func CreateDescribeStratetyRequest() (request *DescribeStratetyRequest) { + request = &DescribeStratetyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "DescribeStratety", "vipaegis", "openAPI") + return +} + +// CreateDescribeStratetyResponse creates a response to parse from DescribeStratety response +func CreateDescribeStratetyResponse() (response *DescribeStratetyResponse) { + response = &DescribeStratetyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_stratety_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_stratety_detail.go new file mode 100644 index 0000000..d8ffc18 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_stratety_detail.go @@ -0,0 +1,106 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeStratetyDetail invokes the aegis.DescribeStratetyDetail API synchronously +// api document: https://help.aliyun.com/api/aegis/describestratetydetail.html +func (client *Client) DescribeStratetyDetail(request *DescribeStratetyDetailRequest) (response *DescribeStratetyDetailResponse, err error) { + response = CreateDescribeStratetyDetailResponse() + err = client.DoAction(request, response) + return +} + +// DescribeStratetyDetailWithChan invokes the aegis.DescribeStratetyDetail API asynchronously +// api document: https://help.aliyun.com/api/aegis/describestratetydetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeStratetyDetailWithChan(request *DescribeStratetyDetailRequest) (<-chan *DescribeStratetyDetailResponse, <-chan error) { + responseChan := make(chan *DescribeStratetyDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeStratetyDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeStratetyDetailWithCallback invokes the aegis.DescribeStratetyDetail API asynchronously +// api document: https://help.aliyun.com/api/aegis/describestratetydetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeStratetyDetailWithCallback(request *DescribeStratetyDetailRequest, callback func(response *DescribeStratetyDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeStratetyDetailResponse + var err error + defer close(result) + response, err = client.DescribeStratetyDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeStratetyDetailRequest is the request struct for api DescribeStratetyDetail +type DescribeStratetyDetailRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Id string `position:"Query" name:"Id"` +} + +// DescribeStratetyDetailResponse is the response struct for api DescribeStratetyDetail +type DescribeStratetyDetailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Strategy Strategy `json:"Strategy" xml:"Strategy"` +} + +// CreateDescribeStratetyDetailRequest creates a request to invoke DescribeStratetyDetail API +func CreateDescribeStratetyDetailRequest() (request *DescribeStratetyDetailRequest) { + request = &DescribeStratetyDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "DescribeStratetyDetail", "vipaegis", "openAPI") + return +} + +// CreateDescribeStratetyDetailResponse creates a response to parse from DescribeStratetyDetail response +func CreateDescribeStratetyDetailResponse() (response *DescribeStratetyDetailResponse) { + response = &DescribeStratetyDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_suspicious_events.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_suspicious_events.go new file mode 100644 index 0000000..94b06bd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_suspicious_events.go @@ -0,0 +1,115 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSuspiciousEvents invokes the aegis.DescribeSuspiciousEvents API synchronously +// api document: https://help.aliyun.com/api/aegis/describesuspiciousevents.html +func (client *Client) DescribeSuspiciousEvents(request *DescribeSuspiciousEventsRequest) (response *DescribeSuspiciousEventsResponse, err error) { + response = CreateDescribeSuspiciousEventsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSuspiciousEventsWithChan invokes the aegis.DescribeSuspiciousEvents API asynchronously +// api document: https://help.aliyun.com/api/aegis/describesuspiciousevents.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSuspiciousEventsWithChan(request *DescribeSuspiciousEventsRequest) (<-chan *DescribeSuspiciousEventsResponse, <-chan error) { + responseChan := make(chan *DescribeSuspiciousEventsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSuspiciousEvents(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSuspiciousEventsWithCallback invokes the aegis.DescribeSuspiciousEvents API asynchronously +// api document: https://help.aliyun.com/api/aegis/describesuspiciousevents.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSuspiciousEventsWithCallback(request *DescribeSuspiciousEventsRequest, callback func(response *DescribeSuspiciousEventsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSuspiciousEventsResponse + var err error + defer close(result) + response, err = client.DescribeSuspiciousEvents(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSuspiciousEventsRequest is the request struct for api DescribeSuspiciousEvents +type DescribeSuspiciousEventsRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + Uuid string `position:"Query" name:"Uuid"` + Dealed string `position:"Query" name:"Dealed"` + Remark string `position:"Query" name:"Remark"` + Level string `position:"Query" name:"Level"` + EventType string `position:"Query" name:"EventType"` +} + +// DescribeSuspiciousEventsResponse is the response struct for api DescribeSuspiciousEvents +type DescribeSuspiciousEventsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + CurrentPage int `json:"CurrentPage" xml:"CurrentPage"` + LogList []LogListItem `json:"LogList" xml:"LogList"` +} + +// CreateDescribeSuspiciousEventsRequest creates a request to invoke DescribeSuspiciousEvents API +func CreateDescribeSuspiciousEventsRequest() (request *DescribeSuspiciousEventsRequest) { + request = &DescribeSuspiciousEventsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "DescribeSuspiciousEvents", "vipaegis", "openAPI") + return +} + +// CreateDescribeSuspiciousEventsResponse creates a response to parse from DescribeSuspiciousEvents response +func CreateDescribeSuspiciousEventsResponse() (response *DescribeSuspiciousEventsResponse) { + response = &DescribeSuspiciousEventsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_suspicious_export_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_suspicious_export_info.go new file mode 100644 index 0000000..662313f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_suspicious_export_info.go @@ -0,0 +1,114 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSuspiciousExportInfo invokes the aegis.DescribeSuspiciousExportInfo API synchronously +// api document: https://help.aliyun.com/api/aegis/describesuspiciousexportinfo.html +func (client *Client) DescribeSuspiciousExportInfo(request *DescribeSuspiciousExportInfoRequest) (response *DescribeSuspiciousExportInfoResponse, err error) { + response = CreateDescribeSuspiciousExportInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSuspiciousExportInfoWithChan invokes the aegis.DescribeSuspiciousExportInfo API asynchronously +// api document: https://help.aliyun.com/api/aegis/describesuspiciousexportinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSuspiciousExportInfoWithChan(request *DescribeSuspiciousExportInfoRequest) (<-chan *DescribeSuspiciousExportInfoResponse, <-chan error) { + responseChan := make(chan *DescribeSuspiciousExportInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSuspiciousExportInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSuspiciousExportInfoWithCallback invokes the aegis.DescribeSuspiciousExportInfo API asynchronously +// api document: https://help.aliyun.com/api/aegis/describesuspiciousexportinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSuspiciousExportInfoWithCallback(request *DescribeSuspiciousExportInfoRequest, callback func(response *DescribeSuspiciousExportInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSuspiciousExportInfoResponse + var err error + defer close(result) + response, err = client.DescribeSuspiciousExportInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSuspiciousExportInfoRequest is the request struct for api DescribeSuspiciousExportInfo +type DescribeSuspiciousExportInfoRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ExportId requests.Integer `position:"Query" name:"ExportId"` +} + +// DescribeSuspiciousExportInfoResponse is the response struct for api DescribeSuspiciousExportInfo +type DescribeSuspiciousExportInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Id int `json:"Id" xml:"Id"` + GmtCreate int `json:"GmtCreate" xml:"GmtCreate"` + FileName string `json:"FileName" xml:"FileName"` + CurrentCount int `json:"CurrentCount" xml:"CurrentCount"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Progress int `json:"Progress" xml:"Progress"` + Status string `json:"Status" xml:"Status"` + Message string `json:"Message" xml:"Message"` + Link string `json:"Link" xml:"Link"` +} + +// CreateDescribeSuspiciousExportInfoRequest creates a request to invoke DescribeSuspiciousExportInfo API +func CreateDescribeSuspiciousExportInfoRequest() (request *DescribeSuspiciousExportInfoRequest) { + request = &DescribeSuspiciousExportInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "DescribeSuspiciousExportInfo", "vipaegis", "openAPI") + return +} + +// CreateDescribeSuspiciousExportInfoResponse creates a response to parse from DescribeSuspiciousExportInfo response +func CreateDescribeSuspiciousExportInfoResponse() (response *DescribeSuspiciousExportInfoResponse) { + response = &DescribeSuspiciousExportInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_user_setting.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_user_setting.go new file mode 100644 index 0000000..3edbbaa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_user_setting.go @@ -0,0 +1,105 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeUserSetting invokes the aegis.DescribeUserSetting API synchronously +// api document: https://help.aliyun.com/api/aegis/describeusersetting.html +func (client *Client) DescribeUserSetting(request *DescribeUserSettingRequest) (response *DescribeUserSettingResponse, err error) { + response = CreateDescribeUserSettingResponse() + err = client.DoAction(request, response) + return +} + +// DescribeUserSettingWithChan invokes the aegis.DescribeUserSetting API asynchronously +// api document: https://help.aliyun.com/api/aegis/describeusersetting.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserSettingWithChan(request *DescribeUserSettingRequest) (<-chan *DescribeUserSettingResponse, <-chan error) { + responseChan := make(chan *DescribeUserSettingResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeUserSetting(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeUserSettingWithCallback invokes the aegis.DescribeUserSetting API asynchronously +// api document: https://help.aliyun.com/api/aegis/describeusersetting.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserSettingWithCallback(request *DescribeUserSettingRequest, callback func(response *DescribeUserSettingResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeUserSettingResponse + var err error + defer close(result) + response, err = client.DescribeUserSetting(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeUserSettingRequest is the request struct for api DescribeUserSetting +type DescribeUserSettingRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` +} + +// DescribeUserSettingResponse is the response struct for api DescribeUserSetting +type DescribeUserSettingResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InvalidWarningKeepDays int `json:"InvalidWarningKeepDays" xml:"InvalidWarningKeepDays"` +} + +// CreateDescribeUserSettingRequest creates a request to invoke DescribeUserSetting API +func CreateDescribeUserSettingRequest() (request *DescribeUserSettingRequest) { + request = &DescribeUserSettingRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "DescribeUserSetting", "vipaegis", "openAPI") + return +} + +// CreateDescribeUserSettingResponse creates a response to parse from DescribeUserSetting response +func CreateDescribeUserSettingResponse() (response *DescribeUserSettingResponse) { + response = &DescribeUserSettingResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_vul_details.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_vul_details.go new file mode 100644 index 0000000..7ab17d2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_vul_details.go @@ -0,0 +1,107 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVulDetails invokes the aegis.DescribeVulDetails API synchronously +// api document: https://help.aliyun.com/api/aegis/describevuldetails.html +func (client *Client) DescribeVulDetails(request *DescribeVulDetailsRequest) (response *DescribeVulDetailsResponse, err error) { + response = CreateDescribeVulDetailsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVulDetailsWithChan invokes the aegis.DescribeVulDetails API asynchronously +// api document: https://help.aliyun.com/api/aegis/describevuldetails.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVulDetailsWithChan(request *DescribeVulDetailsRequest) (<-chan *DescribeVulDetailsResponse, <-chan error) { + responseChan := make(chan *DescribeVulDetailsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVulDetails(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVulDetailsWithCallback invokes the aegis.DescribeVulDetails API asynchronously +// api document: https://help.aliyun.com/api/aegis/describevuldetails.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVulDetailsWithCallback(request *DescribeVulDetailsRequest, callback func(response *DescribeVulDetailsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVulDetailsResponse + var err error + defer close(result) + response, err = client.DescribeVulDetails(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVulDetailsRequest is the request struct for api DescribeVulDetails +type DescribeVulDetailsRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Type string `position:"Query" name:"Type"` + Name string `position:"Query" name:"Name"` +} + +// DescribeVulDetailsResponse is the response struct for api DescribeVulDetails +type DescribeVulDetailsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Cves []CvesItem `json:"Cves" xml:"Cves"` +} + +// CreateDescribeVulDetailsRequest creates a request to invoke DescribeVulDetails API +func CreateDescribeVulDetailsRequest() (request *DescribeVulDetailsRequest) { + request = &DescribeVulDetailsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "DescribeVulDetails", "vipaegis", "openAPI") + return +} + +// CreateDescribeVulDetailsResponse creates a response to parse from DescribeVulDetails response +func CreateDescribeVulDetailsResponse() (response *DescribeVulDetailsResponse) { + response = &DescribeVulDetailsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_vul_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_vul_list.go new file mode 100644 index 0000000..cf868b7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_vul_list.go @@ -0,0 +1,116 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVulList invokes the aegis.DescribeVulList API synchronously +// api document: https://help.aliyun.com/api/aegis/describevullist.html +func (client *Client) DescribeVulList(request *DescribeVulListRequest) (response *DescribeVulListResponse, err error) { + response = CreateDescribeVulListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVulListWithChan invokes the aegis.DescribeVulList API asynchronously +// api document: https://help.aliyun.com/api/aegis/describevullist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVulListWithChan(request *DescribeVulListRequest) (<-chan *DescribeVulListResponse, <-chan error) { + responseChan := make(chan *DescribeVulListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVulList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVulListWithCallback invokes the aegis.DescribeVulList API asynchronously +// api document: https://help.aliyun.com/api/aegis/describevullist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVulListWithCallback(request *DescribeVulListRequest, callback func(response *DescribeVulListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVulListResponse + var err error + defer close(result) + response, err = client.DescribeVulList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVulListRequest is the request struct for api DescribeVulList +type DescribeVulListRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + Type string `position:"Query" name:"Type"` + Uuids string `position:"Query" name:"Uuids"` + Name string `position:"Query" name:"Name"` + Level string `position:"Query" name:"Level"` + StatusList string `position:"Query" name:"StatusList"` + Necessity string `position:"Query" name:"Necessity"` + Dealed string `position:"Query" name:"Dealed"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeVulListResponse is the response struct for api DescribeVulList +type DescribeVulListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + CurrentPage int `json:"CurrentPage" xml:"CurrentPage"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + VulRecords []VulRecordsItem `json:"VulRecords" xml:"VulRecords"` +} + +// CreateDescribeVulListRequest creates a request to invoke DescribeVulList API +func CreateDescribeVulListRequest() (request *DescribeVulListRequest) { + request = &DescribeVulListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "DescribeVulList", "vipaegis", "openAPI") + return +} + +// CreateDescribeVulListResponse creates a response to parse from DescribeVulList response +func CreateDescribeVulListResponse() (response *DescribeVulListResponse) { + response = &DescribeVulListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_warning.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_warning.go new file mode 100644 index 0000000..cbb938f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_warning.go @@ -0,0 +1,119 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeWarning invokes the aegis.DescribeWarning API synchronously +// api document: https://help.aliyun.com/api/aegis/describewarning.html +func (client *Client) DescribeWarning(request *DescribeWarningRequest) (response *DescribeWarningResponse, err error) { + response = CreateDescribeWarningResponse() + err = client.DoAction(request, response) + return +} + +// DescribeWarningWithChan invokes the aegis.DescribeWarning API asynchronously +// api document: https://help.aliyun.com/api/aegis/describewarning.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeWarningWithChan(request *DescribeWarningRequest) (<-chan *DescribeWarningResponse, <-chan error) { + responseChan := make(chan *DescribeWarningResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeWarning(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeWarningWithCallback invokes the aegis.DescribeWarning API asynchronously +// api document: https://help.aliyun.com/api/aegis/describewarning.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeWarningWithCallback(request *DescribeWarningRequest, callback func(response *DescribeWarningResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeWarningResponse + var err error + defer close(result) + response, err = client.DescribeWarning(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeWarningRequest is the request struct for api DescribeWarning +type DescribeWarningRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TypeNames string `position:"Query" name:"TypeNames"` + SubTypeNames string `position:"Query" name:"SubTypeNames"` + RiskLevels string `position:"Query" name:"RiskLevels"` + StatusList string `position:"Query" name:"StatusList"` + RiskName string `position:"Query" name:"RiskName"` + StrategyId requests.Integer `position:"Query" name:"StrategyId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + Uuids string `position:"Query" name:"Uuids"` + Dealed string `position:"Query" name:"Dealed"` +} + +// DescribeWarningResponse is the response struct for api DescribeWarning +type DescribeWarningResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Count int `json:"Count" xml:"Count"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + CurrentPage int `json:"CurrentPage" xml:"CurrentPage"` + Warnings []Warning `json:"Warnings" xml:"Warnings"` +} + +// CreateDescribeWarningRequest creates a request to invoke DescribeWarning API +func CreateDescribeWarningRequest() (request *DescribeWarningRequest) { + request = &DescribeWarningRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "DescribeWarning", "vipaegis", "openAPI") + return +} + +// CreateDescribeWarningResponse creates a response to parse from DescribeWarning response +func CreateDescribeWarningResponse() (response *DescribeWarningResponse) { + response = &DescribeWarningResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_webshell.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_webshell.go new file mode 100644 index 0000000..2c07277 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describe_webshell.go @@ -0,0 +1,109 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeWebshell invokes the aegis.DescribeWebshell API synchronously +// api document: https://help.aliyun.com/api/aegis/describewebshell.html +func (client *Client) DescribeWebshell(request *DescribeWebshellRequest) (response *DescribeWebshellResponse, err error) { + response = CreateDescribeWebshellResponse() + err = client.DoAction(request, response) + return +} + +// DescribeWebshellWithChan invokes the aegis.DescribeWebshell API asynchronously +// api document: https://help.aliyun.com/api/aegis/describewebshell.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeWebshellWithChan(request *DescribeWebshellRequest) (<-chan *DescribeWebshellResponse, <-chan error) { + responseChan := make(chan *DescribeWebshellResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeWebshell(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeWebshellWithCallback invokes the aegis.DescribeWebshell API asynchronously +// api document: https://help.aliyun.com/api/aegis/describewebshell.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeWebshellWithCallback(request *DescribeWebshellRequest, callback func(response *DescribeWebshellResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeWebshellResponse + var err error + defer close(result) + response, err = client.DescribeWebshell(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeWebshellRequest is the request struct for api DescribeWebshell +type DescribeWebshellRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + GroupId requests.Integer `position:"Query" name:"GroupId"` + Remark string `position:"Query" name:"Remark"` + Tag requests.Integer `position:"Query" name:"Tag"` + Dealed string `position:"Query" name:"Dealed"` +} + +// DescribeWebshellResponse is the response struct for api DescribeWebshell +type DescribeWebshellResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + WebshellList []WebshellListItem `json:"WebshellList" xml:"WebshellList"` +} + +// CreateDescribeWebshellRequest creates a request to invoke DescribeWebshell API +func CreateDescribeWebshellRequest() (request *DescribeWebshellRequest) { + request = &DescribeWebshellRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "DescribeWebshell", "vipaegis", "openAPI") + return +} + +// CreateDescribeWebshellResponse creates a response to parse from DescribeWebshell response +func CreateDescribeWebshellResponse() (response *DescribeWebshellResponse) { + response = &DescribeWebshellResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describesummary.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describesummary.go new file mode 100644 index 0000000..546eb7d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/describesummary.go @@ -0,0 +1,119 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// Describesummary invokes the aegis.Describesummary API synchronously +// api document: https://help.aliyun.com/api/aegis/describesummary.html +func (client *Client) Describesummary(request *DescribesummaryRequest) (response *DescribesummaryResponse, err error) { + response = CreateDescribesummaryResponse() + err = client.DoAction(request, response) + return +} + +// DescribesummaryWithChan invokes the aegis.Describesummary API asynchronously +// api document: https://help.aliyun.com/api/aegis/describesummary.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribesummaryWithChan(request *DescribesummaryRequest) (<-chan *DescribesummaryResponse, <-chan error) { + responseChan := make(chan *DescribesummaryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.Describesummary(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribesummaryWithCallback invokes the aegis.Describesummary API asynchronously +// api document: https://help.aliyun.com/api/aegis/describesummary.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribesummaryWithCallback(request *DescribesummaryRequest, callback func(response *DescribesummaryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribesummaryResponse + var err error + defer close(result) + response, err = client.Describesummary(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribesummaryRequest is the request struct for api Describesummary +type DescribesummaryRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Uuids string `position:"Query" name:"Uuids"` + TypeNames string `position:"Query" name:"TypeNames"` + SubTypeNames string `position:"Query" name:"SubTypeNames"` + RiskLevels string `position:"Query" name:"RiskLevels"` + StatusList string `position:"Query" name:"StatusList"` + RiskName string `position:"Query" name:"RiskName"` + Dealed string `position:"Query" name:"Dealed"` + StrategyId requests.Integer `position:"Query" name:"StrategyId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` +} + +// DescribesummaryResponse is the response struct for api Describesummary +type DescribesummaryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Count int `json:"Count" xml:"Count"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + CurrentPage int `json:"CurrentPage" xml:"CurrentPage"` + WarningSummarys []WarningSummary `json:"WarningSummarys" xml:"WarningSummarys"` +} + +// CreateDescribesummaryRequest creates a request to invoke Describesummary API +func CreateDescribesummaryRequest() (request *DescribesummaryRequest) { + request = &DescribesummaryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "Describesummary", "vipaegis", "openAPI") + return +} + +// CreateDescribesummaryResponse creates a response to parse from Describesummary response +func CreateDescribesummaryResponse() (response *DescribesummaryResponse) { + response = &DescribesummaryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/export_warning.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/export_warning.go new file mode 100644 index 0000000..b9392d2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/export_warning.go @@ -0,0 +1,115 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ExportWarning invokes the aegis.ExportWarning API synchronously +// api document: https://help.aliyun.com/api/aegis/exportwarning.html +func (client *Client) ExportWarning(request *ExportWarningRequest) (response *ExportWarningResponse, err error) { + response = CreateExportWarningResponse() + err = client.DoAction(request, response) + return +} + +// ExportWarningWithChan invokes the aegis.ExportWarning API asynchronously +// api document: https://help.aliyun.com/api/aegis/exportwarning.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ExportWarningWithChan(request *ExportWarningRequest) (<-chan *ExportWarningResponse, <-chan error) { + responseChan := make(chan *ExportWarningResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ExportWarning(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ExportWarningWithCallback invokes the aegis.ExportWarning API asynchronously +// api document: https://help.aliyun.com/api/aegis/exportwarning.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ExportWarningWithCallback(request *ExportWarningRequest, callback func(response *ExportWarningResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ExportWarningResponse + var err error + defer close(result) + response, err = client.ExportWarning(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ExportWarningRequest is the request struct for api ExportWarning +type ExportWarningRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Uuids string `position:"Query" name:"Uuids"` + TypeNames string `position:"Query" name:"TypeNames"` + SubTypeNames string `position:"Query" name:"SubTypeNames"` + RiskLevels string `position:"Query" name:"RiskLevels"` + StatusList string `position:"Query" name:"StatusList"` + RiskName string `position:"Query" name:"RiskName"` + Dealed string `position:"Query" name:"Dealed"` + IsSummaryExport requests.Integer `position:"Query" name:"IsSummaryExport"` + StrategyId requests.Integer `position:"Query" name:"StrategyId"` +} + +// ExportWarningResponse is the response struct for api ExportWarning +type ExportWarningResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Id int `json:"Id" xml:"Id"` + FileName string `json:"FileName" xml:"FileName"` +} + +// CreateExportWarningRequest creates a request to invoke ExportWarning API +func CreateExportWarningRequest() (request *ExportWarningRequest) { + request = &ExportWarningRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "ExportWarning", "vipaegis", "openAPI") + return +} + +// CreateExportWarningResponse creates a response to parse from ExportWarning response +func CreateExportWarningResponse() (response *ExportWarningResponse) { + response = &ExportWarningResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/get_account_statistics.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/get_account_statistics.go new file mode 100644 index 0000000..e12cbe9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/get_account_statistics.go @@ -0,0 +1,108 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetAccountStatistics invokes the aegis.GetAccountStatistics API synchronously +// api document: https://help.aliyun.com/api/aegis/getaccountstatistics.html +func (client *Client) GetAccountStatistics(request *GetAccountStatisticsRequest) (response *GetAccountStatisticsResponse, err error) { + response = CreateGetAccountStatisticsResponse() + err = client.DoAction(request, response) + return +} + +// GetAccountStatisticsWithChan invokes the aegis.GetAccountStatistics API asynchronously +// api document: https://help.aliyun.com/api/aegis/getaccountstatistics.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetAccountStatisticsWithChan(request *GetAccountStatisticsRequest) (<-chan *GetAccountStatisticsResponse, <-chan error) { + responseChan := make(chan *GetAccountStatisticsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetAccountStatistics(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetAccountStatisticsWithCallback invokes the aegis.GetAccountStatistics API asynchronously +// api document: https://help.aliyun.com/api/aegis/getaccountstatistics.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetAccountStatisticsWithCallback(request *GetAccountStatisticsRequest, callback func(response *GetAccountStatisticsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetAccountStatisticsResponse + var err error + defer close(result) + response, err = client.GetAccountStatistics(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetAccountStatisticsRequest is the request struct for api GetAccountStatistics +type GetAccountStatisticsRequest struct { + *requests.RpcRequest + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` +} + +// GetAccountStatisticsResponse is the response struct for api GetAccountStatistics +type GetAccountStatisticsResponse struct { + *responses.BaseResponse + RequestId string `json:"requestId" xml:"requestId"` + Code string `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` + Message string `json:"Message" xml:"Message"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateGetAccountStatisticsRequest creates a request to invoke GetAccountStatistics API +func CreateGetAccountStatisticsRequest() (request *GetAccountStatisticsRequest) { + request = &GetAccountStatisticsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "GetAccountStatistics", "vipaegis", "openAPI") + return +} + +// CreateGetAccountStatisticsResponse creates a response to parse from GetAccountStatistics response +func CreateGetAccountStatisticsResponse() (response *GetAccountStatisticsResponse) { + response = &GetAccountStatisticsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/get_crack_statistics.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/get_crack_statistics.go new file mode 100644 index 0000000..43d4fa3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/get_crack_statistics.go @@ -0,0 +1,108 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetCrackStatistics invokes the aegis.GetCrackStatistics API synchronously +// api document: https://help.aliyun.com/api/aegis/getcrackstatistics.html +func (client *Client) GetCrackStatistics(request *GetCrackStatisticsRequest) (response *GetCrackStatisticsResponse, err error) { + response = CreateGetCrackStatisticsResponse() + err = client.DoAction(request, response) + return +} + +// GetCrackStatisticsWithChan invokes the aegis.GetCrackStatistics API asynchronously +// api document: https://help.aliyun.com/api/aegis/getcrackstatistics.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetCrackStatisticsWithChan(request *GetCrackStatisticsRequest) (<-chan *GetCrackStatisticsResponse, <-chan error) { + responseChan := make(chan *GetCrackStatisticsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetCrackStatistics(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetCrackStatisticsWithCallback invokes the aegis.GetCrackStatistics API asynchronously +// api document: https://help.aliyun.com/api/aegis/getcrackstatistics.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetCrackStatisticsWithCallback(request *GetCrackStatisticsRequest, callback func(response *GetCrackStatisticsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetCrackStatisticsResponse + var err error + defer close(result) + response, err = client.GetCrackStatistics(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetCrackStatisticsRequest is the request struct for api GetCrackStatistics +type GetCrackStatisticsRequest struct { + *requests.RpcRequest + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` +} + +// GetCrackStatisticsResponse is the response struct for api GetCrackStatistics +type GetCrackStatisticsResponse struct { + *responses.BaseResponse + RequestId string `json:"requestId" xml:"requestId"` + Code string `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` + Message string `json:"Message" xml:"Message"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateGetCrackStatisticsRequest creates a request to invoke GetCrackStatistics API +func CreateGetCrackStatisticsRequest() (request *GetCrackStatisticsRequest) { + request = &GetCrackStatisticsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "GetCrackStatistics", "vipaegis", "openAPI") + return +} + +// CreateGetCrackStatisticsResponse creates a response to parse from GetCrackStatistics response +func CreateGetCrackStatisticsResponse() (response *GetCrackStatisticsResponse) { + response = &GetCrackStatisticsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/get_entity_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/get_entity_list.go new file mode 100644 index 0000000..b3fd049 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/get_entity_list.go @@ -0,0 +1,112 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetEntityList invokes the aegis.GetEntityList API synchronously +// api document: https://help.aliyun.com/api/aegis/getentitylist.html +func (client *Client) GetEntityList(request *GetEntityListRequest) (response *GetEntityListResponse, err error) { + response = CreateGetEntityListResponse() + err = client.DoAction(request, response) + return +} + +// GetEntityListWithChan invokes the aegis.GetEntityList API asynchronously +// api document: https://help.aliyun.com/api/aegis/getentitylist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetEntityListWithChan(request *GetEntityListRequest) (<-chan *GetEntityListResponse, <-chan error) { + responseChan := make(chan *GetEntityListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetEntityList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetEntityListWithCallback invokes the aegis.GetEntityList API asynchronously +// api document: https://help.aliyun.com/api/aegis/getentitylist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetEntityListWithCallback(request *GetEntityListRequest, callback func(response *GetEntityListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetEntityListResponse + var err error + defer close(result) + response, err = client.GetEntityList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetEntityListRequest is the request struct for api GetEntityList +type GetEntityListRequest struct { + *requests.RpcRequest + GroupId requests.Integer `position:"Query" name:"GroupId"` + Remark string `position:"Query" name:"Remark"` + EventType string `position:"Query" name:"EventType"` + RegionNo string `position:"Query" name:"RegionNo"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// GetEntityListResponse is the response struct for api GetEntityList +type GetEntityListResponse struct { + *responses.BaseResponse + RequestId string `json:"requestId" xml:"requestId"` + Code string `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` + Message string `json:"Message" xml:"Message"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateGetEntityListRequest creates a request to invoke GetEntityList API +func CreateGetEntityListRequest() (request *GetEntityListRequest) { + request = &GetEntityListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "GetEntityList", "vipaegis", "openAPI") + return +} + +// CreateGetEntityListResponse creates a response to parse from GetEntityList response +func CreateGetEntityListResponse() (response *GetEntityListResponse) { + response = &GetEntityListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/get_statistics.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/get_statistics.go new file mode 100644 index 0000000..6ca0bb0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/get_statistics.go @@ -0,0 +1,108 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetStatistics invokes the aegis.GetStatistics API synchronously +// api document: https://help.aliyun.com/api/aegis/getstatistics.html +func (client *Client) GetStatistics(request *GetStatisticsRequest) (response *GetStatisticsResponse, err error) { + response = CreateGetStatisticsResponse() + err = client.DoAction(request, response) + return +} + +// GetStatisticsWithChan invokes the aegis.GetStatistics API asynchronously +// api document: https://help.aliyun.com/api/aegis/getstatistics.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetStatisticsWithChan(request *GetStatisticsRequest) (<-chan *GetStatisticsResponse, <-chan error) { + responseChan := make(chan *GetStatisticsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetStatistics(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetStatisticsWithCallback invokes the aegis.GetStatistics API asynchronously +// api document: https://help.aliyun.com/api/aegis/getstatistics.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetStatisticsWithCallback(request *GetStatisticsRequest, callback func(response *GetStatisticsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetStatisticsResponse + var err error + defer close(result) + response, err = client.GetStatistics(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetStatisticsRequest is the request struct for api GetStatistics +type GetStatisticsRequest struct { + *requests.RpcRequest + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` +} + +// GetStatisticsResponse is the response struct for api GetStatistics +type GetStatisticsResponse struct { + *responses.BaseResponse + RequestId string `json:"requestId" xml:"requestId"` + Code string `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` + Message string `json:"Message" xml:"Message"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateGetStatisticsRequest creates a request to invoke GetStatistics API +func CreateGetStatisticsRequest() (request *GetStatisticsRequest) { + request = &GetStatisticsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "GetStatistics", "vipaegis", "openAPI") + return +} + +// CreateGetStatisticsResponse creates a response to parse from GetStatistics response +func CreateGetStatisticsResponse() (response *GetStatisticsResponse) { + response = &GetStatisticsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/get_statistics_by_uuid.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/get_statistics_by_uuid.go new file mode 100644 index 0000000..8443176 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/get_statistics_by_uuid.go @@ -0,0 +1,107 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetStatisticsByUuid invokes the aegis.GetStatisticsByUuid API synchronously +// api document: https://help.aliyun.com/api/aegis/getstatisticsbyuuid.html +func (client *Client) GetStatisticsByUuid(request *GetStatisticsByUuidRequest) (response *GetStatisticsByUuidResponse, err error) { + response = CreateGetStatisticsByUuidResponse() + err = client.DoAction(request, response) + return +} + +// GetStatisticsByUuidWithChan invokes the aegis.GetStatisticsByUuid API asynchronously +// api document: https://help.aliyun.com/api/aegis/getstatisticsbyuuid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetStatisticsByUuidWithChan(request *GetStatisticsByUuidRequest) (<-chan *GetStatisticsByUuidResponse, <-chan error) { + responseChan := make(chan *GetStatisticsByUuidResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetStatisticsByUuid(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetStatisticsByUuidWithCallback invokes the aegis.GetStatisticsByUuid API asynchronously +// api document: https://help.aliyun.com/api/aegis/getstatisticsbyuuid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetStatisticsByUuidWithCallback(request *GetStatisticsByUuidRequest, callback func(response *GetStatisticsByUuidResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetStatisticsByUuidResponse + var err error + defer close(result) + response, err = client.GetStatisticsByUuid(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetStatisticsByUuidRequest is the request struct for api GetStatisticsByUuid +type GetStatisticsByUuidRequest struct { + *requests.RpcRequest + Uuid string `position:"Query" name:"Uuid"` +} + +// GetStatisticsByUuidResponse is the response struct for api GetStatisticsByUuid +type GetStatisticsByUuidResponse struct { + *responses.BaseResponse + RequestId string `json:"requestId" xml:"requestId"` + Code string `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` + Message string `json:"Message" xml:"Message"` + Data DataInGetStatisticsByUuid `json:"Data" xml:"Data"` +} + +// CreateGetStatisticsByUuidRequest creates a request to invoke GetStatisticsByUuid API +func CreateGetStatisticsByUuidRequest() (request *GetStatisticsByUuidRequest) { + request = &GetStatisticsByUuidRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "GetStatisticsByUuid", "vipaegis", "openAPI") + return +} + +// CreateGetStatisticsByUuidResponse creates a response to parse from GetStatisticsByUuid response +func CreateGetStatisticsByUuidResponse() (response *GetStatisticsByUuidResponse) { + response = &GetStatisticsByUuidResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/modify_batch_ignore_vul.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/modify_batch_ignore_vul.go new file mode 100644 index 0000000..06f0468 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/modify_batch_ignore_vul.go @@ -0,0 +1,108 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyBatchIgnoreVul invokes the aegis.ModifyBatchIgnoreVul API synchronously +// api document: https://help.aliyun.com/api/aegis/modifybatchignorevul.html +func (client *Client) ModifyBatchIgnoreVul(request *ModifyBatchIgnoreVulRequest) (response *ModifyBatchIgnoreVulResponse, err error) { + response = CreateModifyBatchIgnoreVulResponse() + err = client.DoAction(request, response) + return +} + +// ModifyBatchIgnoreVulWithChan invokes the aegis.ModifyBatchIgnoreVul API asynchronously +// api document: https://help.aliyun.com/api/aegis/modifybatchignorevul.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyBatchIgnoreVulWithChan(request *ModifyBatchIgnoreVulRequest) (<-chan *ModifyBatchIgnoreVulResponse, <-chan error) { + responseChan := make(chan *ModifyBatchIgnoreVulResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyBatchIgnoreVul(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyBatchIgnoreVulWithCallback invokes the aegis.ModifyBatchIgnoreVul API asynchronously +// api document: https://help.aliyun.com/api/aegis/modifybatchignorevul.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyBatchIgnoreVulWithCallback(request *ModifyBatchIgnoreVulRequest, callback func(response *ModifyBatchIgnoreVulResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyBatchIgnoreVulResponse + var err error + defer close(result) + response, err = client.ModifyBatchIgnoreVul(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyBatchIgnoreVulRequest is the request struct for api ModifyBatchIgnoreVul +type ModifyBatchIgnoreVulRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Reason string `position:"Query" name:"Reason"` + Info string `position:"Query" name:"Info"` +} + +// ModifyBatchIgnoreVulResponse is the response struct for api ModifyBatchIgnoreVul +type ModifyBatchIgnoreVulResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` +} + +// CreateModifyBatchIgnoreVulRequest creates a request to invoke ModifyBatchIgnoreVul API +func CreateModifyBatchIgnoreVulRequest() (request *ModifyBatchIgnoreVulRequest) { + request = &ModifyBatchIgnoreVulRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "ModifyBatchIgnoreVul", "vipaegis", "openAPI") + return +} + +// CreateModifyBatchIgnoreVulResponse creates a response to parse from ModifyBatchIgnoreVul response +func CreateModifyBatchIgnoreVulResponse() (response *ModifyBatchIgnoreVulResponse) { + response = &ModifyBatchIgnoreVulResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/modify_machine_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/modify_machine_config.go new file mode 100644 index 0000000..1cde05c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/modify_machine_config.go @@ -0,0 +1,110 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyMachineConfig invokes the aegis.ModifyMachineConfig API synchronously +// api document: https://help.aliyun.com/api/aegis/modifymachineconfig.html +func (client *Client) ModifyMachineConfig(request *ModifyMachineConfigRequest) (response *ModifyMachineConfigResponse, err error) { + response = CreateModifyMachineConfigResponse() + err = client.DoAction(request, response) + return +} + +// ModifyMachineConfigWithChan invokes the aegis.ModifyMachineConfig API asynchronously +// api document: https://help.aliyun.com/api/aegis/modifymachineconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyMachineConfigWithChan(request *ModifyMachineConfigRequest) (<-chan *ModifyMachineConfigResponse, <-chan error) { + responseChan := make(chan *ModifyMachineConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyMachineConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyMachineConfigWithCallback invokes the aegis.ModifyMachineConfig API asynchronously +// api document: https://help.aliyun.com/api/aegis/modifymachineconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyMachineConfigWithCallback(request *ModifyMachineConfigRequest, callback func(response *ModifyMachineConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyMachineConfigResponse + var err error + defer close(result) + response, err = client.ModifyMachineConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyMachineConfigRequest is the request struct for api ModifyMachineConfig +type ModifyMachineConfigRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Config string `position:"Query" name:"Config"` + Type string `position:"Query" name:"Type"` + Target string `position:"Query" name:"Target"` + Lang string `position:"Query" name:"Lang"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// ModifyMachineConfigResponse is the response struct for api ModifyMachineConfig +type ModifyMachineConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyMachineConfigRequest creates a request to invoke ModifyMachineConfig API +func CreateModifyMachineConfigRequest() (request *ModifyMachineConfigRequest) { + request = &ModifyMachineConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "ModifyMachineConfig", "vipaegis", "openAPI") + return +} + +// CreateModifyMachineConfigResponse creates a response to parse from ModifyMachineConfig response +func CreateModifyMachineConfigResponse() (response *ModifyMachineConfigResponse) { + response = &ModifyMachineConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/modify_strategy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/modify_strategy.go new file mode 100644 index 0000000..d5b47b0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/modify_strategy.go @@ -0,0 +1,113 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyStrategy invokes the aegis.ModifyStrategy API synchronously +// api document: https://help.aliyun.com/api/aegis/modifystrategy.html +func (client *Client) ModifyStrategy(request *ModifyStrategyRequest) (response *ModifyStrategyResponse, err error) { + response = CreateModifyStrategyResponse() + err = client.DoAction(request, response) + return +} + +// ModifyStrategyWithChan invokes the aegis.ModifyStrategy API asynchronously +// api document: https://help.aliyun.com/api/aegis/modifystrategy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyStrategyWithChan(request *ModifyStrategyRequest) (<-chan *ModifyStrategyResponse, <-chan error) { + responseChan := make(chan *ModifyStrategyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyStrategy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyStrategyWithCallback invokes the aegis.ModifyStrategy API asynchronously +// api document: https://help.aliyun.com/api/aegis/modifystrategy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyStrategyWithCallback(request *ModifyStrategyRequest, callback func(response *ModifyStrategyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyStrategyResponse + var err error + defer close(result) + response, err = client.ModifyStrategy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyStrategyRequest is the request struct for api ModifyStrategy +type ModifyStrategyRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CycleDays string `position:"Query" name:"CycleDays"` + Name string `position:"Query" name:"Name"` + CycleStartTime string `position:"Query" name:"CycleStartTime"` + RiskSubTypeName string `position:"Query" name:"RiskSubTypeName"` + Id string `position:"Query" name:"Id"` +} + +// ModifyStrategyResponse is the response struct for api ModifyStrategy +type ModifyStrategyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Result Result `json:"Result" xml:"Result"` +} + +// CreateModifyStrategyRequest creates a request to invoke ModifyStrategy API +func CreateModifyStrategyRequest() (request *ModifyStrategyRequest) { + request = &ModifyStrategyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "ModifyStrategy", "vipaegis", "openAPI") + return +} + +// CreateModifyStrategyResponse creates a response to parse from ModifyStrategy response +func CreateModifyStrategyResponse() (response *ModifyStrategyResponse) { + response = &ModifyStrategyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/modify_strategy_target.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/modify_strategy_target.go new file mode 100644 index 0000000..a85cb45 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/modify_strategy_target.go @@ -0,0 +1,107 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyStrategyTarget invokes the aegis.ModifyStrategyTarget API synchronously +// api document: https://help.aliyun.com/api/aegis/modifystrategytarget.html +func (client *Client) ModifyStrategyTarget(request *ModifyStrategyTargetRequest) (response *ModifyStrategyTargetResponse, err error) { + response = CreateModifyStrategyTargetResponse() + err = client.DoAction(request, response) + return +} + +// ModifyStrategyTargetWithChan invokes the aegis.ModifyStrategyTarget API asynchronously +// api document: https://help.aliyun.com/api/aegis/modifystrategytarget.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyStrategyTargetWithChan(request *ModifyStrategyTargetRequest) (<-chan *ModifyStrategyTargetResponse, <-chan error) { + responseChan := make(chan *ModifyStrategyTargetResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyStrategyTarget(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyStrategyTargetWithCallback invokes the aegis.ModifyStrategyTarget API asynchronously +// api document: https://help.aliyun.com/api/aegis/modifystrategytarget.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyStrategyTargetWithCallback(request *ModifyStrategyTargetRequest, callback func(response *ModifyStrategyTargetResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyStrategyTargetResponse + var err error + defer close(result) + response, err = client.ModifyStrategyTarget(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyStrategyTargetRequest is the request struct for api ModifyStrategyTarget +type ModifyStrategyTargetRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Type string `position:"Query" name:"Type"` + Config string `position:"Query" name:"Config"` + Target string `position:"Query" name:"Target"` +} + +// ModifyStrategyTargetResponse is the response struct for api ModifyStrategyTarget +type ModifyStrategyTargetResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyStrategyTargetRequest creates a request to invoke ModifyStrategyTarget API +func CreateModifyStrategyTargetRequest() (request *ModifyStrategyTargetRequest) { + request = &ModifyStrategyTargetRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "ModifyStrategyTarget", "vipaegis", "openAPI") + return +} + +// CreateModifyStrategyTargetResponse creates a response to parse from ModifyStrategyTarget response +func CreateModifyStrategyTargetResponse() (response *ModifyStrategyTargetResponse) { + response = &ModifyStrategyTargetResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/operate_warning.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/operate_warning.go new file mode 100644 index 0000000..58925e7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/operate_warning.go @@ -0,0 +1,108 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// OperateWarning invokes the aegis.OperateWarning API synchronously +// api document: https://help.aliyun.com/api/aegis/operatewarning.html +func (client *Client) OperateWarning(request *OperateWarningRequest) (response *OperateWarningResponse, err error) { + response = CreateOperateWarningResponse() + err = client.DoAction(request, response) + return +} + +// OperateWarningWithChan invokes the aegis.OperateWarning API asynchronously +// api document: https://help.aliyun.com/api/aegis/operatewarning.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) OperateWarningWithChan(request *OperateWarningRequest) (<-chan *OperateWarningResponse, <-chan error) { + responseChan := make(chan *OperateWarningResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.OperateWarning(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// OperateWarningWithCallback invokes the aegis.OperateWarning API asynchronously +// api document: https://help.aliyun.com/api/aegis/operatewarning.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) OperateWarningWithCallback(request *OperateWarningRequest, callback func(response *OperateWarningResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *OperateWarningResponse + var err error + defer close(result) + response, err = client.OperateWarning(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// OperateWarningRequest is the request struct for api OperateWarning +type OperateWarningRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + RiskIds string `position:"Query" name:"RiskIds"` + OperateType string `position:"Query" name:"OperateType"` + RiskWarningIds string `position:"Query" name:"RiskWarningIds"` + Reason string `position:"Query" name:"Reason"` +} + +// OperateWarningResponse is the response struct for api OperateWarning +type OperateWarningResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateOperateWarningRequest creates a request to invoke OperateWarning API +func CreateOperateWarningRequest() (request *OperateWarningRequest) { + request = &OperateWarningRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "OperateWarning", "vipaegis", "openAPI") + return +} + +// CreateOperateWarningResponse creates a response to parse from OperateWarning response +func CreateOperateWarningResponse() (response *OperateWarningResponse) { + response = &OperateWarningResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/query_crack_event.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/query_crack_event.go new file mode 100644 index 0000000..8351253 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/query_crack_event.go @@ -0,0 +1,111 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryCrackEvent invokes the aegis.QueryCrackEvent API synchronously +// api document: https://help.aliyun.com/api/aegis/querycrackevent.html +func (client *Client) QueryCrackEvent(request *QueryCrackEventRequest) (response *QueryCrackEventResponse, err error) { + response = CreateQueryCrackEventResponse() + err = client.DoAction(request, response) + return +} + +// QueryCrackEventWithChan invokes the aegis.QueryCrackEvent API asynchronously +// api document: https://help.aliyun.com/api/aegis/querycrackevent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCrackEventWithChan(request *QueryCrackEventRequest) (<-chan *QueryCrackEventResponse, <-chan error) { + responseChan := make(chan *QueryCrackEventResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryCrackEvent(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryCrackEventWithCallback invokes the aegis.QueryCrackEvent API asynchronously +// api document: https://help.aliyun.com/api/aegis/querycrackevent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCrackEventWithCallback(request *QueryCrackEventRequest, callback func(response *QueryCrackEventResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryCrackEventResponse + var err error + defer close(result) + response, err = client.QueryCrackEvent(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryCrackEventRequest is the request struct for api QueryCrackEvent +type QueryCrackEventRequest struct { + *requests.RpcRequest + Uuid string `position:"Query" name:"Uuid"` + Status requests.Integer `position:"Query" name:"Status"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` +} + +// QueryCrackEventResponse is the response struct for api QueryCrackEvent +type QueryCrackEventResponse struct { + *responses.BaseResponse + RequestId string `json:"requestId" xml:"requestId"` + Code string `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` + Message string `json:"Message" xml:"Message"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateQueryCrackEventRequest creates a request to invoke QueryCrackEvent API +func CreateQueryCrackEventRequest() (request *QueryCrackEventRequest) { + request = &QueryCrackEventRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "QueryCrackEvent", "vipaegis", "openAPI") + return +} + +// CreateQueryCrackEventResponse creates a response to parse from QueryCrackEvent response +func CreateQueryCrackEventResponse() (response *QueryCrackEventResponse) { + response = &QueryCrackEventResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/query_login_event.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/query_login_event.go new file mode 100644 index 0000000..7818bfd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/query_login_event.go @@ -0,0 +1,111 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryLoginEvent invokes the aegis.QueryLoginEvent API synchronously +// api document: https://help.aliyun.com/api/aegis/queryloginevent.html +func (client *Client) QueryLoginEvent(request *QueryLoginEventRequest) (response *QueryLoginEventResponse, err error) { + response = CreateQueryLoginEventResponse() + err = client.DoAction(request, response) + return +} + +// QueryLoginEventWithChan invokes the aegis.QueryLoginEvent API asynchronously +// api document: https://help.aliyun.com/api/aegis/queryloginevent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryLoginEventWithChan(request *QueryLoginEventRequest) (<-chan *QueryLoginEventResponse, <-chan error) { + responseChan := make(chan *QueryLoginEventResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryLoginEvent(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryLoginEventWithCallback invokes the aegis.QueryLoginEvent API asynchronously +// api document: https://help.aliyun.com/api/aegis/queryloginevent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryLoginEventWithCallback(request *QueryLoginEventRequest, callback func(response *QueryLoginEventResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryLoginEventResponse + var err error + defer close(result) + response, err = client.QueryLoginEvent(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryLoginEventRequest is the request struct for api QueryLoginEvent +type QueryLoginEventRequest struct { + *requests.RpcRequest + Uuid string `position:"Query" name:"Uuid"` + Status requests.Integer `position:"Query" name:"Status"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` +} + +// QueryLoginEventResponse is the response struct for api QueryLoginEvent +type QueryLoginEventResponse struct { + *responses.BaseResponse + RequestId string `json:"requestId" xml:"requestId"` + Code string `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` + Message string `json:"Message" xml:"Message"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateQueryLoginEventRequest creates a request to invoke QueryLoginEvent API +func CreateQueryLoginEventRequest() (request *QueryLoginEventRequest) { + request = &QueryLoginEventRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "QueryLoginEvent", "vipaegis", "openAPI") + return +} + +// CreateQueryLoginEventResponse creates a response to parse from QueryLoginEvent response +func CreateQueryLoginEventResponse() (response *QueryLoginEventResponse) { + response = &QueryLoginEventResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/release_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/release_instance.go new file mode 100644 index 0000000..8c23a1f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/release_instance.go @@ -0,0 +1,104 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReleaseInstance invokes the aegis.ReleaseInstance API synchronously +// api document: https://help.aliyun.com/api/aegis/releaseinstance.html +func (client *Client) ReleaseInstance(request *ReleaseInstanceRequest) (response *ReleaseInstanceResponse, err error) { + response = CreateReleaseInstanceResponse() + err = client.DoAction(request, response) + return +} + +// ReleaseInstanceWithChan invokes the aegis.ReleaseInstance API asynchronously +// api document: https://help.aliyun.com/api/aegis/releaseinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReleaseInstanceWithChan(request *ReleaseInstanceRequest) (<-chan *ReleaseInstanceResponse, <-chan error) { + responseChan := make(chan *ReleaseInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReleaseInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReleaseInstanceWithCallback invokes the aegis.ReleaseInstance API asynchronously +// api document: https://help.aliyun.com/api/aegis/releaseinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReleaseInstanceWithCallback(request *ReleaseInstanceRequest, callback func(response *ReleaseInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReleaseInstanceResponse + var err error + defer close(result) + response, err = client.ReleaseInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReleaseInstanceRequest is the request struct for api ReleaseInstance +type ReleaseInstanceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// ReleaseInstanceResponse is the response struct for api ReleaseInstance +type ReleaseInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateReleaseInstanceRequest creates a request to invoke ReleaseInstance API +func CreateReleaseInstanceRequest() (request *ReleaseInstanceRequest) { + request = &ReleaseInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "ReleaseInstance", "vipaegis", "openAPI") + return +} + +// CreateReleaseInstanceResponse creates a response to parse from ReleaseInstance response +func CreateReleaseInstanceResponse() (response *ReleaseInstanceResponse) { + response = &ReleaseInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/renew_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/renew_instance.go new file mode 100644 index 0000000..1da322a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/renew_instance.go @@ -0,0 +1,109 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RenewInstance invokes the aegis.RenewInstance API synchronously +// api document: https://help.aliyun.com/api/aegis/renewinstance.html +func (client *Client) RenewInstance(request *RenewInstanceRequest) (response *RenewInstanceResponse, err error) { + response = CreateRenewInstanceResponse() + err = client.DoAction(request, response) + return +} + +// RenewInstanceWithChan invokes the aegis.RenewInstance API asynchronously +// api document: https://help.aliyun.com/api/aegis/renewinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RenewInstanceWithChan(request *RenewInstanceRequest) (<-chan *RenewInstanceResponse, <-chan error) { + responseChan := make(chan *RenewInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RenewInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RenewInstanceWithCallback invokes the aegis.RenewInstance API asynchronously +// api document: https://help.aliyun.com/api/aegis/renewinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RenewInstanceWithCallback(request *RenewInstanceRequest, callback func(response *RenewInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RenewInstanceResponse + var err error + defer close(result) + response, err = client.RenewInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RenewInstanceRequest is the request struct for api RenewInstance +type RenewInstanceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + InstanceId string `position:"Query" name:"InstanceId"` + VmNumber string `position:"Query" name:"VmNumber"` + Duration requests.Integer `position:"Query" name:"Duration"` + PricingCycle string `position:"Query" name:"PricingCycle"` +} + +// RenewInstanceResponse is the response struct for api RenewInstance +type RenewInstanceResponse struct { + *responses.BaseResponse + OrderId string `json:"OrderId" xml:"OrderId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRenewInstanceRequest creates a request to invoke RenewInstance API +func CreateRenewInstanceRequest() (request *RenewInstanceRequest) { + request = &RenewInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "RenewInstance", "vipaegis", "openAPI") + return +} + +// CreateRenewInstanceResponse creates a response to parse from RenewInstance response +func CreateRenewInstanceResponse() (response *RenewInstanceResponse) { + response = &RenewInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_classifys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_classifys.go new file mode 100644 index 0000000..470cd37 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_classifys.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Classifys is a nested struct in aegis response +type Classifys struct { + ClassifysItem []ClassifysItem `json:"ClassifysItem" xml:"ClassifysItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_classifys_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_classifys_item.go new file mode 100644 index 0000000..ff7e951 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_classifys_item.go @@ -0,0 +1,23 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ClassifysItem is a nested struct in aegis response +type ClassifysItem struct { + Classify string `json:"Classify" xml:"Classify"` + Description string `json:"Description" xml:"Description"` + DemoVideoUrl string `json:"DemoVideoUrl" xml:"DemoVideoUrl"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_config.go new file mode 100644 index 0000000..09efe3b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_config.go @@ -0,0 +1,31 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 aegis response +type Config struct { + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + Ip string `json:"Ip" xml:"Ip"` + StrategyId int `json:"StrategyId" xml:"StrategyId"` + Account string `json:"Account" xml:"Account"` + Location string `json:"Location" xml:"Location"` + Switcher string `json:"Switcher" xml:"Switcher"` + VulType string `json:"VulType" xml:"VulType"` + UuidCount int `json:"UuidCount" xml:"UuidCount"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + TargetList []Target `json:"TargetList" xml:"TargetList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_config_target.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_config_target.go new file mode 100644 index 0000000..acce4cd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_config_target.go @@ -0,0 +1,23 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ConfigTarget is a nested struct in aegis response +type ConfigTarget struct { + Flag string `json:"Flag" xml:"Flag"` + Target string `json:"Target" xml:"Target"` + TargetType string `json:"TargetType" xml:"TargetType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_config_targets_in_describe_machine_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_config_targets_in_describe_machine_config.go new file mode 100644 index 0000000..9a93c9f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_config_targets_in_describe_machine_config.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ConfigTargetsInDescribeMachineConfig is a nested struct in aegis response +type ConfigTargetsInDescribeMachineConfig struct { + ConfigTarget []ConfigTarget `json:"ConfigTarget" xml:"ConfigTarget"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_config_targets_in_describe_stratety.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_config_targets_in_describe_stratety.go new file mode 100644 index 0000000..3a84ffa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_config_targets_in_describe_stratety.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ConfigTargetsInDescribeStratety is a nested struct in aegis response +type ConfigTargetsInDescribeStratety struct { + ConfigTarget []ConfigTarget `json:"ConfigTarget" xml:"ConfigTarget"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_configs.go new file mode 100644 index 0000000..c4639b2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_configs.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Configs is a nested struct in aegis response +type Configs struct { + Config []Config `json:"Config" xml:"Config"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_cve_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_cve_list.go new file mode 100644 index 0000000..8637b3b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_cve_list.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CveList is a nested struct in aegis response +type CveList struct { + CveList []string `json:"CveList" xml:"CveList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_cves.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_cves.go new file mode 100644 index 0000000..624efa2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_cves.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Cves is a nested struct in aegis response +type Cves struct { + CvesItem []CvesItem `json:"CvesItem" xml:"CvesItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_cves_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_cves_item.go new file mode 100644 index 0000000..92941cc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_cves_item.go @@ -0,0 +1,40 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CvesItem is a nested struct in aegis response +type CvesItem struct { + CveId string `json:"CveId" xml:"CveId"` + CnvdId string `json:"CnvdId" xml:"CnvdId"` + OtherId string `json:"OtherId" xml:"OtherId"` + Title string `json:"Title" xml:"Title"` + CvssScore string `json:"CvssScore" xml:"CvssScore"` + CvssVector string `json:"CvssVector" xml:"CvssVector"` + ReleaseTime int `json:"ReleaseTime" xml:"ReleaseTime"` + Complexity string `json:"Complexity" xml:"Complexity"` + Poc string `json:"Poc" xml:"Poc"` + PocCreateTime int `json:"PocCreateTime" xml:"PocCreateTime"` + PocDisclosureTime int `json:"PocDisclosureTime" xml:"PocDisclosureTime"` + Summary string `json:"Summary" xml:"Summary"` + Solution string `json:"Solution" xml:"Solution"` + Content string `json:"Content" xml:"Content"` + Vendor string `json:"Vendor" xml:"Vendor"` + Product string `json:"Product" xml:"Product"` + VulLevel string `json:"VulLevel" xml:"VulLevel"` + Reference string `json:"Reference" xml:"Reference"` + Classify string `json:"Classify" xml:"Classify"` + Classifys []ClassifysItem `json:"Classifys" xml:"Classifys"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_data.go new file mode 100644 index 0000000..5f9217b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_data.go @@ -0,0 +1,29 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 aegis response +type Data struct { + Intercepted int `json:"Intercepted" xml:"Intercepted"` + Patch int `json:"Patch" xml:"Patch"` + RemoteLogin int `json:"RemoteLogin" xml:"RemoteLogin"` + CrackSuccess int `json:"CrackSuccess" xml:"CrackSuccess"` + Account int `json:"Account" xml:"Account"` + Health int `json:"Health" xml:"Health"` + Trojan int `json:"Trojan" xml:"Trojan"` + PageInfo PageInfo `json:"PageInfo" xml:"PageInfo"` + List ListInQueryCrackEvent `json:"List" xml:"List"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_data_in_get_statistics_by_uuid.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_data_in_get_statistics_by_uuid.go new file mode 100644 index 0000000..5db9bcc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_data_in_get_statistics_by_uuid.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInGetStatisticsByUuid is a nested struct in aegis response +type DataInGetStatisticsByUuid struct { + Entity []Entity `json:"Entity" xml:"Entity"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_detail.go new file mode 100644 index 0000000..b9cdcbd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_detail.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Detail is a nested struct in aegis response +type Detail struct { + DetailItems []DetailItem `json:"DetailItems" xml:"DetailItems"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_detail_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_detail_item.go new file mode 100644 index 0000000..c8ba459 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_detail_item.go @@ -0,0 +1,23 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DetailItem is a nested struct in aegis response +type DetailItem struct { + Name string `json:"name" xml:"name"` + Value string `json:"value" xml:"value"` + Type string `json:"type" xml:"type"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_detail_items.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_detail_items.go new file mode 100644 index 0000000..844baf9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_detail_items.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DetailItems is a nested struct in aegis response +type DetailItems struct { + DetailItem []DetailItem `json:"DetailItem" xml:"DetailItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_detail_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_detail_list.go new file mode 100644 index 0000000..0554dcc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_detail_list.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DetailList is a nested struct in aegis response +type DetailList struct { + DetailListItem []DetailListItem `json:"DetailListItem" xml:"DetailListItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_detail_list_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_detail_list_item.go new file mode 100644 index 0000000..116595b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_detail_list_item.go @@ -0,0 +1,23 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DetailListItem is a nested struct in aegis response +type DetailListItem struct { + Name string `json:"Name" xml:"Name"` + Type string `json:"Type" xml:"Type"` + Value string `json:"Value" xml:"Value"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_details.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_details.go new file mode 100644 index 0000000..4f84880 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_details.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Details is a nested struct in aegis response +type Details struct { + Detail []Detail `json:"Detail" xml:"Detail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_entity.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_entity.go new file mode 100644 index 0000000..12bd070 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_entity.go @@ -0,0 +1,46 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Entity is a nested struct in aegis response +type Entity struct { + AttackType int `json:"AttackType" xml:"AttackType"` + Ip string `json:"Ip" xml:"Ip"` + LoginType int `json:"LoginType" xml:"LoginType"` + CrackTimes int `json:"CrackTimes" xml:"CrackTimes"` + Account int `json:"Account" xml:"Account"` + CrackSourceIp string `json:"CrackSourceIp" xml:"CrackSourceIp"` + StatusName string `json:"StatusName" xml:"StatusName"` + GroupId int `json:"GroupId" xml:"GroupId"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + Location string `json:"Location" xml:"Location"` + Trojan int `json:"Trojan" xml:"Trojan"` + Status int `json:"Status" xml:"Status"` + AttackTime string `json:"AttackTime" xml:"AttackTime"` + LoginSourceIp string `json:"LoginSourceIp" xml:"LoginSourceIp"` + BuyVersion string `json:"BuyVersion" xml:"BuyVersion"` + Region string `json:"Region" xml:"Region"` + AttackTypeName string `json:"AttackTypeName" xml:"AttackTypeName"` + Health int `json:"Health" xml:"Health"` + Uuid string `json:"Uuid" xml:"Uuid"` + InWhite int `json:"InWhite" xml:"InWhite"` + Patch int `json:"Patch" xml:"Patch"` + LoginTime string `json:"LoginTime" xml:"LoginTime"` + UserName string `json:"UserName" xml:"UserName"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Online bool `json:"Online" xml:"Online"` + LoginTypeName string `json:"LoginTypeName" xml:"LoginTypeName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_entity_in_get_entity_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_entity_in_get_entity_list.go new file mode 100644 index 0000000..4c86f6a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_entity_in_get_entity_list.go @@ -0,0 +1,31 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EntityInGetEntityList is a nested struct in aegis response +type EntityInGetEntityList struct { + Uuid string `json:"Uuid" xml:"Uuid"` + GroupId int `json:"GroupId" xml:"GroupId"` + Ip string `json:"Ip" xml:"Ip"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Region string `json:"Region" xml:"Region"` + Os string `json:"Os" xml:"Os"` + Flag string `json:"Flag" xml:"Flag"` + BuyVersion string `json:"BuyVersion" xml:"BuyVersion"` + AegisOnline bool `json:"AegisOnline" xml:"AegisOnline"` + AegisVersion string `json:"aegisVersion" xml:"aegisVersion"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_extend_content_json.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_extend_content_json.go new file mode 100644 index 0000000..35ab8a1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_extend_content_json.go @@ -0,0 +1,31 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ExtendContentJson is a nested struct in aegis response +type ExtendContentJson struct { + Os string `json:"Os" xml:"Os"` + OsRelease string `json:"OsRelease" xml:"OsRelease"` + Status int `json:"Status" xml:"Status"` + LastTs int `json:"LastTs" xml:"LastTs"` + AliasName string `json:"AliasName" xml:"AliasName"` + Tag string `json:"Tag" xml:"Tag"` + PrimaryId int `json:"PrimaryId" xml:"PrimaryId"` + Level string `json:"Level" xml:"Level"` + CveList []string `json:"cveList" xml:"cveList"` + Necessity Necessity `json:"Necessity" xml:"Necessity"` + RpmEntityList []RpmEntityListItem `json:"RpmEntityList" xml:"RpmEntityList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_list_in_get_entity_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_list_in_get_entity_list.go new file mode 100644 index 0000000..6978967 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_list_in_get_entity_list.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ListInGetEntityList is a nested struct in aegis response +type ListInGetEntityList struct { + Entity []EntityInGetEntityList `json:"Entity" xml:"Entity"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_list_in_query_crack_event.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_list_in_query_crack_event.go new file mode 100644 index 0000000..82ad0ef --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_list_in_query_crack_event.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ListInQueryCrackEvent is a nested struct in aegis response +type ListInQueryCrackEvent struct { + Entity []Entity `json:"Entity" xml:"Entity"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_list_in_query_login_event.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_list_in_query_login_event.go new file mode 100644 index 0000000..858d601 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_list_in_query_login_event.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ListInQueryLoginEvent is a nested struct in aegis response +type ListInQueryLoginEvent struct { + Entity []Entity `json:"Entity" xml:"Entity"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_log_list_in_describe_login_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_log_list_in_describe_login_logs.go new file mode 100644 index 0000000..433dce2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_log_list_in_describe_login_logs.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LogListInDescribeLoginLogs is a nested struct in aegis response +type LogListInDescribeLoginLogs struct { + LogListItem []LogListItem `json:"LogListItem" xml:"LogListItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_log_list_in_describe_suspicious_events.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_log_list_in_describe_suspicious_events.go new file mode 100644 index 0000000..d4e229c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_log_list_in_describe_suspicious_events.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LogListInDescribeSuspiciousEvents is a nested struct in aegis response +type LogListInDescribeSuspiciousEvents struct { + LogListItem []LogListItem `json:"LogListItem" xml:"LogListItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_log_list_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_log_list_item.go new file mode 100644 index 0000000..1bcd622 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_log_list_item.go @@ -0,0 +1,46 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LogListItem is a nested struct in aegis response +type LogListItem struct { + LastTime int `json:"LastTime" xml:"LastTime"` + Ip string `json:"Ip" xml:"Ip"` + FirstTime int `json:"FirstTime" xml:"FirstTime"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + AliasEventName string `json:"AliasEventName" xml:"AliasEventName"` + Location string `json:"Location" xml:"Location"` + Protocol int `json:"Protocol" xml:"Protocol"` + OsVersion string `json:"OsVersion" xml:"OsVersion"` + EventType string `json:"EventType" xml:"EventType"` + ProtocolName string `json:"ProtocolName" xml:"ProtocolName"` + Status int `json:"Status" xml:"Status"` + ClientIp string `json:"ClientIp" xml:"ClientIp"` + LoginSourceIp string `json:"LoginSourceIp" xml:"LoginSourceIp"` + Region string `json:"Region" xml:"Region"` + Uuid string `json:"Uuid" xml:"Uuid"` + EventName string `json:"EventName" xml:"EventName"` + Level string `json:"Level" xml:"Level"` + Type string `json:"Type" xml:"Type"` + AliasEventType string `json:"AliasEventType" xml:"AliasEventType"` + UserName string `json:"UserName" xml:"UserName"` + Id int `json:"id" xml:"id"` + LoginTime int `json:"LoginTime" xml:"LoginTime"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + GroupId int `json:"GroupId" xml:"GroupId"` + Online string `json:"Online" xml:"Online"` + DetailList []DetailListItem `json:"DetailList" xml:"DetailList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_necessity.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_necessity.go new file mode 100644 index 0000000..3dc6389 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_necessity.go @@ -0,0 +1,28 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Necessity is a nested struct in aegis response +type Necessity struct { + CvssFactor string `json:"Cvss_factor" xml:"Cvss_factor"` + GmtCreate string `json:"Gmt_create" xml:"Gmt_create"` + Status string `json:"Status" xml:"Status"` + EnviromentFactor string `json:"Enviroment_factor" xml:"Enviroment_factor"` + AssetsFactor string `json:"Assets_factor" xml:"Assets_factor"` + IsCalc string `json:"Is_calc" xml:"Is_calc"` + TotalScore string `json:"Total_score" xml:"Total_score"` + TimeFactor string `json:"Time_factor" xml:"Time_factor"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_page_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_page_info.go new file mode 100644 index 0000000..1352026 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_page_info.go @@ -0,0 +1,24 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PageInfo is a nested struct in aegis response +type PageInfo struct { + PageSize int `json:"PageSize" xml:"PageSize"` + Count int `json:"Count" xml:"Count"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + CurrentPage int `json:"CurrentPage" xml:"CurrentPage"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_result.go new file mode 100644 index 0000000..b1bb1b8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_result.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Result is a nested struct in aegis response +type Result struct { + StrategyId int `json:"StrategyId" xml:"StrategyId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risk.go new file mode 100644 index 0000000..b4e22b7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risk.go @@ -0,0 +1,27 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Risk is a nested struct in aegis response +type Risk struct { + RiskId int `json:"RiskId" xml:"RiskId"` + RiskName string `json:"RiskName" xml:"RiskName"` + RiskDetail string `json:"RiskDetail" xml:"RiskDetail"` + RiskType string `json:"RiskType" xml:"RiskType"` + TypeAlias string `json:"TypeAlias" xml:"TypeAlias"` + SubRiskType string `json:"SubRiskType" xml:"SubRiskType"` + SubTypeAlias string `json:"SubTypeAlias" xml:"SubTypeAlias"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risk_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risk_type.go new file mode 100644 index 0000000..69fd0e8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risk_type.go @@ -0,0 +1,24 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RiskType is a nested struct in aegis response +type RiskType struct { + TypeName string `json:"TypeName" xml:"TypeName"` + Alias string `json:"Alias" xml:"Alias"` + WarnCount string `json:"WarnCount" xml:"WarnCount"` + SubTypes []SubType `json:"SubTypes" xml:"SubTypes"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risk_type_white_list_query_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risk_type_white_list_query_result.go new file mode 100644 index 0000000..496242b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risk_type_white_list_query_result.go @@ -0,0 +1,24 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RiskTypeWhiteListQueryResult is a nested struct in aegis response +type RiskTypeWhiteListQueryResult struct { + TypeName string `json:"TypeName" xml:"TypeName"` + Alias string `json:"Alias" xml:"Alias"` + On bool `json:"On" xml:"On"` + SubTypes []SubType `json:"SubTypes" xml:"SubTypes"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risk_type_white_list_query_result_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risk_type_white_list_query_result_list.go new file mode 100644 index 0000000..17c402f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risk_type_white_list_query_result_list.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RiskTypeWhiteListQueryResultList is a nested struct in aegis response +type RiskTypeWhiteListQueryResultList struct { + RiskTypeWhiteListQueryResult []RiskTypeWhiteListQueryResult `json:"RiskTypeWhiteListQueryResult" xml:"RiskTypeWhiteListQueryResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risk_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risk_types.go new file mode 100644 index 0000000..1ac91c5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risk_types.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RiskTypes is a nested struct in aegis response +type RiskTypes struct { + RiskType []RiskType `json:"RiskType" xml:"RiskType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risks.go new file mode 100644 index 0000000..388fbde --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_risks.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Risks is a nested struct in aegis response +type Risks struct { + Risk []Risk `json:"Risk" xml:"Risk"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_rpm_entity_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_rpm_entity_list.go new file mode 100644 index 0000000..875e42a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_rpm_entity_list.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RpmEntityList is a nested struct in aegis response +type RpmEntityList struct { + RpmEntityListItem []RpmEntityListItem `json:"RpmEntityListItem" xml:"RpmEntityListItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_rpm_entity_list_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_rpm_entity_list_item.go new file mode 100644 index 0000000..c61716a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_rpm_entity_list_item.go @@ -0,0 +1,26 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RpmEntityListItem is a nested struct in aegis response +type RpmEntityListItem struct { + FullVersion string `json:"FullVersion" xml:"FullVersion"` + MatchDetail string `json:"MatchDetail" xml:"MatchDetail"` + Name string `json:"Name" xml:"Name"` + Path string `json:"Path" xml:"Path"` + UpdateCmd string `json:"UpdateCmd" xml:"UpdateCmd"` + Version string `json:"Version" xml:"Version"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_strategie.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_strategie.go new file mode 100644 index 0000000..c4780ab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_strategie.go @@ -0,0 +1,28 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Strategie is a nested struct in aegis response +type Strategie struct { + CycleDays int `json:"CycleDays" xml:"CycleDays"` + Id int `json:"Id" xml:"Id"` + CycleStartTime int `json:"CycleStartTime" xml:"CycleStartTime"` + Type int `json:"Type" xml:"Type"` + Name string `json:"Name" xml:"Name"` + RiskCount int `json:"RiskCount" xml:"RiskCount"` + EcsCount int `json:"EcsCount" xml:"EcsCount"` + ConfigTargets []ConfigTarget `json:"ConfigTargets" xml:"ConfigTargets"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_strategies.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_strategies.go new file mode 100644 index 0000000..3e857ba --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_strategies.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Strategies is a nested struct in aegis response +type Strategies struct { + Strategie []Strategie `json:"Strategie" xml:"Strategie"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_strategy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_strategy.go new file mode 100644 index 0000000..c9995d4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_strategy.go @@ -0,0 +1,26 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 aegis response +type Strategy struct { + CycleDays int `json:"CycleDays" xml:"CycleDays"` + Name string `json:"Name" xml:"Name"` + Id int `json:"Id" xml:"Id"` + CycleStartTime int `json:"CycleStartTime" xml:"CycleStartTime"` + Type int `json:"Type" xml:"Type"` + RiskTypeWhiteListQueryResultList []RiskTypeWhiteListQueryResult `json:"RiskTypeWhiteListQueryResultList" xml:"RiskTypeWhiteListQueryResultList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_strategy_target.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_strategy_target.go new file mode 100644 index 0000000..ddad966 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_strategy_target.go @@ -0,0 +1,23 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StrategyTarget is a nested struct in aegis response +type StrategyTarget struct { + Flag string `json:"Flag" xml:"Flag"` + Target string `json:"Target" xml:"Target"` + TargetType string `json:"TargetType" xml:"TargetType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_strategy_targets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_strategy_targets.go new file mode 100644 index 0000000..e5c0c1f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_strategy_targets.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StrategyTargets is a nested struct in aegis response +type StrategyTargets struct { + StrategyTarget []StrategyTarget `json:"StrategyTarget" xml:"StrategyTarget"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_sub_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_sub_type.go new file mode 100644 index 0000000..45afbda --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_sub_type.go @@ -0,0 +1,24 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SubType is a nested struct in aegis response +type SubType struct { + On bool `json:"On" xml:"On"` + Alias string `json:"Alias" xml:"Alias"` + TypeName string `json:"TypeName" xml:"TypeName"` + WarnCount string `json:"WarnCount" xml:"WarnCount"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_sub_types_in_describe_risk_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_sub_types_in_describe_risk_type.go new file mode 100644 index 0000000..0e25585 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_sub_types_in_describe_risk_type.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SubTypesInDescribeRiskType is a nested struct in aegis response +type SubTypesInDescribeRiskType struct { + SubType []SubType `json:"subType" xml:"subType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_sub_types_in_describe_stratety_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_sub_types_in_describe_stratety_detail.go new file mode 100644 index 0000000..61e317f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_sub_types_in_describe_stratety_detail.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SubTypesInDescribeStratetyDetail is a nested struct in aegis response +type SubTypesInDescribeStratetyDetail struct { + SubType []SubType `json:"SubType" xml:"SubType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_target.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_target.go new file mode 100644 index 0000000..18a4a5b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_target.go @@ -0,0 +1,23 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Target is a nested struct in aegis response +type Target struct { + Flag string `json:"Flag" xml:"Flag"` + TargetType string `json:"TargetType" xml:"TargetType"` + Target string `json:"Target" xml:"Target"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_target_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_target_list.go new file mode 100644 index 0000000..79f81d8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_target_list.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TargetList is a nested struct in aegis response +type TargetList struct { + Target []Target `json:"Target" xml:"Target"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_vul_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_vul_records.go new file mode 100644 index 0000000..d8db43a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_vul_records.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VulRecords is a nested struct in aegis response +type VulRecords struct { + VulRecordsItem []VulRecordsItem `json:"VulRecordsItem" xml:"VulRecordsItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_vul_records_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_vul_records_item.go new file mode 100644 index 0000000..0bc0b18 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_vul_records_item.go @@ -0,0 +1,39 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VulRecordsItem is a nested struct in aegis response +type VulRecordsItem struct { + PrimaryId int `json:"PrimaryId" xml:"PrimaryId"` + Uuid string `json:"Uuid" xml:"Uuid"` + Name string `json:"Name" xml:"Name"` + Tag string `json:"Tag" xml:"Tag"` + AliasName string `json:"AliasName" xml:"AliasName"` + RecordId int `json:"RecordId" xml:"RecordId"` + Type string `json:"Type" xml:"Type"` + Level string `json:"Level" xml:"Level"` + Product string `json:"Product" xml:"Product"` + FirstTs int `json:"FirstTs" xml:"FirstTs"` + LastTs int `json:"LastTs" xml:"LastTs"` + RepairTs int `json:"RepairTs" xml:"RepairTs"` + Status int `json:"Status" xml:"Status"` + Related string `json:"Related" xml:"Related"` + ResultCode string `json:"ResultCode" xml:"ResultCode"` + ResultMessage string `json:"ResultMessage" xml:"ResultMessage"` + ModifyTs int `json:"ModifyTs" xml:"ModifyTs"` + Necessity string `json:"Necessity" xml:"Necessity"` + ExtendContentJson ExtendContentJson `json:"ExtendContentJson" xml:"ExtendContentJson"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_warning.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_warning.go new file mode 100644 index 0000000..da9daed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_warning.go @@ -0,0 +1,32 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Warning is a nested struct in aegis response +type Warning struct { + RiskWarningId int `json:"RiskWarningId" xml:"RiskWarningId"` + RiskName string `json:"RiskName" xml:"RiskName"` + Uuid string `json:"Uuid" xml:"Uuid"` + RirstFoundTime string `json:"RirstFoundTime" xml:"RirstFoundTime"` + LastFoundTime string `json:"LastFoundTime" xml:"LastFoundTime"` + Level string `json:"Level" xml:"Level"` + TypeName string `json:"TypeName" xml:"TypeName"` + SubTypeName string `json:"SubTypeName" xml:"SubTypeName"` + TypeAlias string `json:"TypeAlias" xml:"TypeAlias"` + SubTypeAlias string `json:"SubTypeAlias" xml:"SubTypeAlias"` + Status int `json:"Status" xml:"Status"` + Details []Detail `json:"Details" xml:"Details"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_warning_summary.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_warning_summary.go new file mode 100644 index 0000000..352e324 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_warning_summary.go @@ -0,0 +1,29 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// WarningSummary is a nested struct in aegis response +type WarningSummary struct { + RiskId int `json:"RiskId" xml:"RiskId"` + RiskName string `json:"RiskName" xml:"RiskName"` + Level string `json:"Level" xml:"Level"` + TypeAlias string `json:"TypeAlias" xml:"TypeAlias"` + SubTypeAlias string `json:"SubTypeAlias" xml:"SubTypeAlias"` + LastFoundTime string `json:"LastFoundTime" xml:"LastFoundTime"` + PendingCount int `json:"PendingCount" xml:"PendingCount"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RiskDetail string `json:"RiskDetail" xml:"RiskDetail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_warning_summarys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_warning_summarys.go new file mode 100644 index 0000000..78eda3e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_warning_summarys.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// WarningSummarys is a nested struct in aegis response +type WarningSummarys struct { + WarningSummary []WarningSummary `json:"WarningSummary" xml:"WarningSummary"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_warnings.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_warnings.go new file mode 100644 index 0000000..bb1eaa0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_warnings.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Warnings is a nested struct in aegis response +type Warnings struct { + Warning []Warning `json:"Warning" xml:"Warning"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_webshell_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_webshell_list.go new file mode 100644 index 0000000..8a24120 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_webshell_list.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// WebshellList is a nested struct in aegis response +type WebshellList struct { + WebshellListItem []WebshellListItem `json:"WebshellListItem" xml:"WebshellListItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_webshell_list_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_webshell_list_item.go new file mode 100644 index 0000000..58ada4f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_webshell_list_item.go @@ -0,0 +1,34 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// WebshellListItem is a nested struct in aegis response +type WebshellListItem struct { + Os string `json:"Os" xml:"Os"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + GroupId int `json:"GroupId" xml:"GroupId"` + Ip string `json:"Ip" xml:"Ip"` + Uuid string `json:"Uuid" xml:"Uuid"` + FoundTime string `json:"FoundTime" xml:"FoundTime"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + TrojanType string `json:"TrojanType" xml:"TrojanType"` + FirstFoundTime string `json:"FirstFoundTime" xml:"FirstFoundTime"` + TrojanSize int `json:"TrojanSize" xml:"TrojanSize"` + Domain string `json:"Domain" xml:"Domain"` + TrojanPath string `json:"TrojanPath" xml:"TrojanPath"` + Region string `json:"Region" xml:"Region"` + Status int `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_white_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_white_list.go new file mode 100644 index 0000000..6c0889c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_white_list.go @@ -0,0 +1,23 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// WhiteList is a nested struct in aegis response +type WhiteList struct { + RiskId int `json:"riskId" xml:"riskId"` + RiskName string `json:"riskName" xml:"riskName"` + Reason string `json:"reason" xml:"reason"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_white_lists.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_white_lists.go new file mode 100644 index 0000000..459e322 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/struct_white_lists.go @@ -0,0 +1,21 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// WhiteLists is a nested struct in aegis response +type WhiteLists struct { + WhiteList []WhiteList `json:"WhiteList" xml:"WhiteList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/upgrade_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/upgrade_instance.go new file mode 100644 index 0000000..620846b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/aegis/upgrade_instance.go @@ -0,0 +1,108 @@ +package aegis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpgradeInstance invokes the aegis.UpgradeInstance API synchronously +// api document: https://help.aliyun.com/api/aegis/upgradeinstance.html +func (client *Client) UpgradeInstance(request *UpgradeInstanceRequest) (response *UpgradeInstanceResponse, err error) { + response = CreateUpgradeInstanceResponse() + err = client.DoAction(request, response) + return +} + +// UpgradeInstanceWithChan invokes the aegis.UpgradeInstance API asynchronously +// api document: https://help.aliyun.com/api/aegis/upgradeinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpgradeInstanceWithChan(request *UpgradeInstanceRequest) (<-chan *UpgradeInstanceResponse, <-chan error) { + responseChan := make(chan *UpgradeInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpgradeInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpgradeInstanceWithCallback invokes the aegis.UpgradeInstance API asynchronously +// api document: https://help.aliyun.com/api/aegis/upgradeinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpgradeInstanceWithCallback(request *UpgradeInstanceRequest, callback func(response *UpgradeInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpgradeInstanceResponse + var err error + defer close(result) + response, err = client.UpgradeInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpgradeInstanceRequest is the request struct for api UpgradeInstance +type UpgradeInstanceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + InstanceId string `position:"Query" name:"InstanceId"` + VersionCode requests.Integer `position:"Query" name:"VersionCode"` + VmNumber requests.Integer `position:"Query" name:"VmNumber"` +} + +// UpgradeInstanceResponse is the response struct for api UpgradeInstance +type UpgradeInstanceResponse struct { + *responses.BaseResponse + OrderId string `json:"OrderId" xml:"OrderId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpgradeInstanceRequest creates a request to invoke UpgradeInstance API +func CreateUpgradeInstanceRequest() (request *UpgradeInstanceRequest) { + request = &UpgradeInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("aegis", "2016-11-11", "UpgradeInstance", "vipaegis", "openAPI") + return +} + +// CreateUpgradeInstanceResponse creates a response to parse from UpgradeInstance response +func CreateUpgradeInstanceResponse() (response *UpgradeInstanceResponse) { + response = &UpgradeInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_batch_domain_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_batch_domain_records.go new file mode 100644 index 0000000..30e1dea --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_batch_domain_records.go @@ -0,0 +1,106 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddBatchDomainRecords invokes the alidns.AddBatchDomainRecords API synchronously +// api document: https://help.aliyun.com/api/alidns/addbatchdomainrecords.html +func (client *Client) AddBatchDomainRecords(request *AddBatchDomainRecordsRequest) (response *AddBatchDomainRecordsResponse, err error) { + response = CreateAddBatchDomainRecordsResponse() + err = client.DoAction(request, response) + return +} + +// AddBatchDomainRecordsWithChan invokes the alidns.AddBatchDomainRecords API asynchronously +// api document: https://help.aliyun.com/api/alidns/addbatchdomainrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddBatchDomainRecordsWithChan(request *AddBatchDomainRecordsRequest) (<-chan *AddBatchDomainRecordsResponse, <-chan error) { + responseChan := make(chan *AddBatchDomainRecordsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddBatchDomainRecords(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddBatchDomainRecordsWithCallback invokes the alidns.AddBatchDomainRecords API asynchronously +// api document: https://help.aliyun.com/api/alidns/addbatchdomainrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddBatchDomainRecordsWithCallback(request *AddBatchDomainRecordsRequest, callback func(response *AddBatchDomainRecordsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddBatchDomainRecordsResponse + var err error + defer close(result) + response, err = client.AddBatchDomainRecords(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddBatchDomainRecordsRequest is the request struct for api AddBatchDomainRecords +type AddBatchDomainRecordsRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Records string `position:"Query" name:"Records"` +} + +// AddBatchDomainRecordsResponse is the response struct for api AddBatchDomainRecords +type AddBatchDomainRecordsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TraceId string `json:"TraceId" xml:"TraceId"` +} + +// CreateAddBatchDomainRecordsRequest creates a request to invoke AddBatchDomainRecords API +func CreateAddBatchDomainRecordsRequest() (request *AddBatchDomainRecordsRequest) { + request = &AddBatchDomainRecordsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Alidns", "2015-01-09", "AddBatchDomainRecords", "", "") + return +} + +// CreateAddBatchDomainRecordsResponse creates a response to parse from AddBatchDomainRecords response +func CreateAddBatchDomainRecordsResponse() (response *AddBatchDomainRecordsResponse) { + response = &AddBatchDomainRecordsResponse{ + 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 new file mode 100644 index 0000000..1b2249e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain.go @@ -0,0 +1,112 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/adddomain.html +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 +// api document: https://help.aliyun.com/api/alidns/adddomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/adddomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + GroupId string `position:"Query" name:"GroupId"` +} + +// 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", "", "") + 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_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain_group.go new file mode 100644 index 0000000..a1c7cd4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain_group.go @@ -0,0 +1,107 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/adddomaingroup.html +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 +// api document: https://help.aliyun.com/api/alidns/adddomaingroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/adddomaingroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + GroupName string `position:"Query" name:"GroupName"` +} + +// 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", "", "") + 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 new file mode 100644 index 0000000..1da6024 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain_record.go @@ -0,0 +1,112 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/adddomainrecord.html +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 +// api document: https://help.aliyun.com/api/alidns/adddomainrecord.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/adddomainrecord.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + RR string `position:"Query" name:"RR"` + Type string `position:"Query" name:"Type"` + Value string `position:"Query" name:"Value"` + TTL requests.Integer `position:"Query" name:"TTL"` + Priority requests.Integer `position:"Query" name:"Priority"` + Line string `position:"Query" name:"Line"` +} + +// 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", "", "") + 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/apply_for_retrieval_domain_name.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/apply_for_retrieval_domain_name.go new file mode 100644 index 0000000..86b68e7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/apply_for_retrieval_domain_name.go @@ -0,0 +1,106 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ApplyForRetrievalDomainName invokes the alidns.ApplyForRetrievalDomainName API synchronously +// api document: https://help.aliyun.com/api/alidns/applyforretrievaldomainname.html +func (client *Client) ApplyForRetrievalDomainName(request *ApplyForRetrievalDomainNameRequest) (response *ApplyForRetrievalDomainNameResponse, err error) { + response = CreateApplyForRetrievalDomainNameResponse() + err = client.DoAction(request, response) + return +} + +// ApplyForRetrievalDomainNameWithChan invokes the alidns.ApplyForRetrievalDomainName API asynchronously +// api document: https://help.aliyun.com/api/alidns/applyforretrievaldomainname.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ApplyForRetrievalDomainNameWithChan(request *ApplyForRetrievalDomainNameRequest) (<-chan *ApplyForRetrievalDomainNameResponse, <-chan error) { + responseChan := make(chan *ApplyForRetrievalDomainNameResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ApplyForRetrievalDomainName(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ApplyForRetrievalDomainNameWithCallback invokes the alidns.ApplyForRetrievalDomainName API asynchronously +// api document: https://help.aliyun.com/api/alidns/applyforretrievaldomainname.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ApplyForRetrievalDomainNameWithCallback(request *ApplyForRetrievalDomainNameRequest, callback func(response *ApplyForRetrievalDomainNameResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ApplyForRetrievalDomainNameResponse + var err error + defer close(result) + response, err = client.ApplyForRetrievalDomainName(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ApplyForRetrievalDomainNameRequest is the request struct for api ApplyForRetrievalDomainName +type ApplyForRetrievalDomainNameRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` +} + +// ApplyForRetrievalDomainNameResponse is the response struct for api ApplyForRetrievalDomainName +type ApplyForRetrievalDomainNameResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` +} + +// CreateApplyForRetrievalDomainNameRequest creates a request to invoke ApplyForRetrievalDomainName API +func CreateApplyForRetrievalDomainNameRequest() (request *ApplyForRetrievalDomainNameRequest) { + request = &ApplyForRetrievalDomainNameRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Alidns", "2015-01-09", "ApplyForRetrievalDomainName", "", "") + return +} + +// CreateApplyForRetrievalDomainNameResponse creates a response to parse from ApplyForRetrievalDomainName response +func CreateApplyForRetrievalDomainNameResponse() (response *ApplyForRetrievalDomainNameResponse) { + response = &ApplyForRetrievalDomainNameResponse{ + 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 new file mode 100644 index 0000000..61fed5b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/change_domain_group.go @@ -0,0 +1,108 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/changedomaingroup.html +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 +// api document: https://help.aliyun.com/api/alidns/changedomaingroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/changedomaingroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + GroupId string `position:"Query" name:"GroupId"` +} + +// 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", "", "") + 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 new file mode 100644 index 0000000..04f329e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/change_domain_of_dns_product.go @@ -0,0 +1,108 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/changedomainofdnsproduct.html +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 +// api document: https://help.aliyun.com/api/alidns/changedomainofdnsproduct.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/changedomainofdnsproduct.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + InstanceId string `position:"Query" name:"InstanceId"` + NewDomain string `position:"Query" name:"NewDomain"` + Force requests.Boolean `position:"Query" name:"Force"` +} + +// 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", "", "") + 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/check_domain_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/check_domain_record.go new file mode 100644 index 0000000..876e4de --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/check_domain_record.go @@ -0,0 +1,109 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckDomainRecord invokes the alidns.CheckDomainRecord API synchronously +// api document: https://help.aliyun.com/api/alidns/checkdomainrecord.html +func (client *Client) CheckDomainRecord(request *CheckDomainRecordRequest) (response *CheckDomainRecordResponse, err error) { + response = CreateCheckDomainRecordResponse() + err = client.DoAction(request, response) + return +} + +// CheckDomainRecordWithChan invokes the alidns.CheckDomainRecord API asynchronously +// api document: https://help.aliyun.com/api/alidns/checkdomainrecord.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckDomainRecordWithChan(request *CheckDomainRecordRequest) (<-chan *CheckDomainRecordResponse, <-chan error) { + responseChan := make(chan *CheckDomainRecordResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckDomainRecord(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckDomainRecordWithCallback invokes the alidns.CheckDomainRecord API asynchronously +// api document: https://help.aliyun.com/api/alidns/checkdomainrecord.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckDomainRecordWithCallback(request *CheckDomainRecordRequest, callback func(response *CheckDomainRecordResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckDomainRecordResponse + var err error + defer close(result) + response, err = client.CheckDomainRecord(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckDomainRecordRequest is the request struct for api CheckDomainRecord +type CheckDomainRecordRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + RR string `position:"Query" name:"RR"` + Type string `position:"Query" name:"Type"` + Value string `position:"Query" name:"Value"` +} + +// CheckDomainRecordResponse is the response struct for api CheckDomainRecord +type CheckDomainRecordResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + IsExist bool `json:"IsExist" xml:"IsExist"` +} + +// CreateCheckDomainRecordRequest creates a request to invoke CheckDomainRecord API +func CreateCheckDomainRecordRequest() (request *CheckDomainRecordRequest) { + request = &CheckDomainRecordRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Alidns", "2015-01-09", "CheckDomainRecord", "", "") + return +} + +// CreateCheckDomainRecordResponse creates a response to parse from CheckDomainRecord response +func CreateCheckDomainRecordResponse() (response *CheckDomainRecordResponse) { + response = &CheckDomainRecordResponse{ + 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 new file mode 100644 index 0000000..bd92fdd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/client.go @@ -0,0 +1,81 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_batch_domain_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_batch_domain_records.go new file mode 100644 index 0000000..8c973f7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_batch_domain_records.go @@ -0,0 +1,106 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteBatchDomainRecords invokes the alidns.DeleteBatchDomainRecords API synchronously +// api document: https://help.aliyun.com/api/alidns/deletebatchdomainrecords.html +func (client *Client) DeleteBatchDomainRecords(request *DeleteBatchDomainRecordsRequest) (response *DeleteBatchDomainRecordsResponse, err error) { + response = CreateDeleteBatchDomainRecordsResponse() + err = client.DoAction(request, response) + return +} + +// DeleteBatchDomainRecordsWithChan invokes the alidns.DeleteBatchDomainRecords API asynchronously +// api document: https://help.aliyun.com/api/alidns/deletebatchdomainrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteBatchDomainRecordsWithChan(request *DeleteBatchDomainRecordsRequest) (<-chan *DeleteBatchDomainRecordsResponse, <-chan error) { + responseChan := make(chan *DeleteBatchDomainRecordsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteBatchDomainRecords(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteBatchDomainRecordsWithCallback invokes the alidns.DeleteBatchDomainRecords API asynchronously +// api document: https://help.aliyun.com/api/alidns/deletebatchdomainrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteBatchDomainRecordsWithCallback(request *DeleteBatchDomainRecordsRequest, callback func(response *DeleteBatchDomainRecordsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteBatchDomainRecordsResponse + var err error + defer close(result) + response, err = client.DeleteBatchDomainRecords(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteBatchDomainRecordsRequest is the request struct for api DeleteBatchDomainRecords +type DeleteBatchDomainRecordsRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Records string `position:"Query" name:"Records"` +} + +// DeleteBatchDomainRecordsResponse is the response struct for api DeleteBatchDomainRecords +type DeleteBatchDomainRecordsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TraceId string `json:"TraceId" xml:"TraceId"` +} + +// CreateDeleteBatchDomainRecordsRequest creates a request to invoke DeleteBatchDomainRecords API +func CreateDeleteBatchDomainRecordsRequest() (request *DeleteBatchDomainRecordsRequest) { + request = &DeleteBatchDomainRecordsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Alidns", "2015-01-09", "DeleteBatchDomainRecords", "", "") + return +} + +// CreateDeleteBatchDomainRecordsResponse creates a response to parse from DeleteBatchDomainRecords response +func CreateDeleteBatchDomainRecordsResponse() (response *DeleteBatchDomainRecordsResponse) { + response = &DeleteBatchDomainRecordsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_batch_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_batch_domains.go new file mode 100644 index 0000000..fbbac4c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_batch_domains.go @@ -0,0 +1,106 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteBatchDomains invokes the alidns.DeleteBatchDomains API synchronously +// api document: https://help.aliyun.com/api/alidns/deletebatchdomains.html +func (client *Client) DeleteBatchDomains(request *DeleteBatchDomainsRequest) (response *DeleteBatchDomainsResponse, err error) { + response = CreateDeleteBatchDomainsResponse() + err = client.DoAction(request, response) + return +} + +// DeleteBatchDomainsWithChan invokes the alidns.DeleteBatchDomains API asynchronously +// api document: https://help.aliyun.com/api/alidns/deletebatchdomains.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteBatchDomainsWithChan(request *DeleteBatchDomainsRequest) (<-chan *DeleteBatchDomainsResponse, <-chan error) { + responseChan := make(chan *DeleteBatchDomainsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteBatchDomains(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteBatchDomainsWithCallback invokes the alidns.DeleteBatchDomains API asynchronously +// api document: https://help.aliyun.com/api/alidns/deletebatchdomains.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteBatchDomainsWithCallback(request *DeleteBatchDomainsRequest, callback func(response *DeleteBatchDomainsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteBatchDomainsResponse + var err error + defer close(result) + response, err = client.DeleteBatchDomains(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteBatchDomainsRequest is the request struct for api DeleteBatchDomains +type DeleteBatchDomainsRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Domains string `position:"Query" name:"Domains"` +} + +// DeleteBatchDomainsResponse is the response struct for api DeleteBatchDomains +type DeleteBatchDomainsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TraceId string `json:"TraceId" xml:"TraceId"` +} + +// CreateDeleteBatchDomainsRequest creates a request to invoke DeleteBatchDomains API +func CreateDeleteBatchDomainsRequest() (request *DeleteBatchDomainsRequest) { + request = &DeleteBatchDomainsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Alidns", "2015-01-09", "DeleteBatchDomains", "", "") + return +} + +// CreateDeleteBatchDomainsResponse creates a response to parse from DeleteBatchDomains response +func CreateDeleteBatchDomainsResponse() (response *DeleteBatchDomainsResponse) { + response = &DeleteBatchDomainsResponse{ + 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 new file mode 100644 index 0000000..097f37f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_domain.go @@ -0,0 +1,106 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/deletedomain.html +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 +// api document: https://help.aliyun.com/api/alidns/deletedomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/deletedomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` +} + +// 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", "", "") + 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 new file mode 100644 index 0000000..341b912 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_domain_group.go @@ -0,0 +1,106 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/deletedomaingroup.html +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 +// api document: https://help.aliyun.com/api/alidns/deletedomaingroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/deletedomaingroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + GroupId string `position:"Query" name:"GroupId"` +} + +// 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", "", "") + 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 new file mode 100644 index 0000000..73f2b08 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_domain_record.go @@ -0,0 +1,106 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/deletedomainrecord.html +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 +// api document: https://help.aliyun.com/api/alidns/deletedomainrecord.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/deletedomainrecord.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + RecordId string `position:"Query" name:"RecordId"` +} + +// 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", "", "") + 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_sub_domain_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_sub_domain_records.go new file mode 100644 index 0000000..06bb0fd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_sub_domain_records.go @@ -0,0 +1,109 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/deletesubdomainrecords.html +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 +// api document: https://help.aliyun.com/api/alidns/deletesubdomainrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/deletesubdomainrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + RR string `position:"Query" name:"RR"` + Type string `position:"Query" name:"Type"` +} + +// 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", "", "") + 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.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_batch_result.go new file mode 100644 index 0000000..67590cb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_batch_result.go @@ -0,0 +1,110 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeBatchResult invokes the alidns.DescribeBatchResult API synchronously +// api document: https://help.aliyun.com/api/alidns/describebatchresult.html +func (client *Client) DescribeBatchResult(request *DescribeBatchResultRequest) (response *DescribeBatchResultResponse, err error) { + response = CreateDescribeBatchResultResponse() + err = client.DoAction(request, response) + return +} + +// DescribeBatchResultWithChan invokes the alidns.DescribeBatchResult API asynchronously +// api document: https://help.aliyun.com/api/alidns/describebatchresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBatchResultWithChan(request *DescribeBatchResultRequest) (<-chan *DescribeBatchResultResponse, <-chan error) { + responseChan := make(chan *DescribeBatchResultResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeBatchResult(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeBatchResultWithCallback invokes the alidns.DescribeBatchResult API asynchronously +// api document: https://help.aliyun.com/api/alidns/describebatchresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBatchResultWithCallback(request *DescribeBatchResultRequest, callback func(response *DescribeBatchResultResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeBatchResultResponse + var err error + defer close(result) + response, err = client.DescribeBatchResult(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeBatchResultRequest is the request struct for api DescribeBatchResult +type DescribeBatchResultRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + TraceId string `position:"Query" name:"TraceId"` +} + +// DescribeBatchResultResponse is the response struct for api DescribeBatchResult +type DescribeBatchResultResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TraceId string `json:"TraceId" xml:"TraceId"` + Status int `json:"Status" xml:"Status"` + BatchCount int `json:"BatchCount" xml:"BatchCount"` + SuccessNumber int `json:"SuccessNumber" xml:"SuccessNumber"` + FailResults FailResults `json:"FailResults" xml:"FailResults"` +} + +// CreateDescribeBatchResultRequest creates a request to invoke DescribeBatchResult API +func CreateDescribeBatchResultRequest() (request *DescribeBatchResultRequest) { + request = &DescribeBatchResultRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeBatchResult", "", "") + return +} + +// CreateDescribeBatchResultResponse creates a response to parse from DescribeBatchResult response +func CreateDescribeBatchResultResponse() (response *DescribeBatchResultResponse) { + response = &DescribeBatchResultResponse{ + 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 new file mode 100644 index 0000000..b92bf78 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_product_instance.go @@ -0,0 +1,134 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/describednsproductinstance.html +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 +// api document: https://help.aliyun.com/api/alidns/describednsproductinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/describednsproductinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// 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 int `json:"StartTimestamp" xml:"StartTimestamp"` + EndTime string `json:"EndTime" xml:"EndTime"` + EndTimestamp int `json:"EndTimestamp" xml:"EndTimestamp"` + Domain string `json:"Domain" xml:"Domain"` + BindCount int `json:"BindCount" xml:"BindCount"` + BindUsedCount int `json:"BindUsedCount" xml:"BindUsedCount"` + TTLMinValue int `json:"TTLMinValue" xml:"TTLMinValue"` + SubDomainLevel int `json:"SubDomainLevel" xml:"SubDomainLevel"` + DnsSLBCount int `json:"DnsSLBCount" xml:"DnsSLBCount"` + URLForwardCount int `json:"URLForwardCount" xml:"URLForwardCount"` + DDosDefendFlow int `json:"DDosDefendFlow" xml:"DDosDefendFlow"` + DDosDefendQuery int `json:"DDosDefendQuery" xml:"DDosDefendQuery"` + OverseaDDosDefendFlow int `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 int `json:"MonitorNodeCount" xml:"MonitorNodeCount"` + MonitorFrequency int `json:"MonitorFrequency" xml:"MonitorFrequency"` + MonitorTaskCount int `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"` + 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", "", "") + 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 new file mode 100644 index 0000000..ae17278 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_product_instances.go @@ -0,0 +1,111 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/describednsproductinstances.html +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 +// api document: https://help.aliyun.com/api/alidns/describednsproductinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/describednsproductinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + 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 int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + 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", "", "") + 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 new file mode 100644 index 0000000..b545f41 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dnsslb_sub_domains.go @@ -0,0 +1,111 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/describednsslbsubdomains.html +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 +// api document: https://help.aliyun.com/api/alidns/describednsslbsubdomains.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/describednsslbsubdomains.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeDNSSLBSubDomainsResponse is the response struct for api DescribeDNSSLBSubDomains +type DescribeDNSSLBSubDomainsResponse 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"` + 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", "", "") + 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_domain_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_groups.go new file mode 100644 index 0000000..ffe1f1f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_groups.go @@ -0,0 +1,111 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/describedomaingroups.html +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 +// api document: https://help.aliyun.com/api/alidns/describedomaingroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/describedomaingroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + KeyWord string `position:"Query" name:"KeyWord"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeDomainGroupsResponse is the response struct for api DescribeDomainGroups +type DescribeDomainGroupsResponse 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"` + 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", "", "") + 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 new file mode 100644 index 0000000..0f6f3e0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_info.go @@ -0,0 +1,123 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/describedomaininfo.html +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 +// api document: https://help.aliyun.com/api/alidns/describedomaininfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/describedomaininfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + 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 int `json:"MinTtl" xml:"MinTtl"` + RecordLineTreeJson string `json:"RecordLineTreeJson" xml:"RecordLineTreeJson"` + LineType string `json:"LineType" xml:"LineType"` + RegionLines bool `json:"RegionLines" xml:"RegionLines"` + 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", "", "") + 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 new file mode 100644 index 0000000..39e18ce --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_logs.go @@ -0,0 +1,114 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/describedomainlogs.html +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 +// api document: https://help.aliyun.com/api/alidns/describedomainlogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/describedomainlogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + KeyWord string `position:"Query" name:"KeyWord"` + GroupId string `position:"Query" name:"GroupId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + StartDate string `position:"Query" name:"StartDate"` + EndDate string `position:"Query" name:"endDate"` +} + +// DescribeDomainLogsResponse is the response struct for api DescribeDomainLogs +type DescribeDomainLogsResponse 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"` + 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", "", "") + 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 new file mode 100644 index 0000000..51c86a9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_ns.go @@ -0,0 +1,109 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/describedomainns.html +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 +// api document: https://help.aliyun.com/api/alidns/describedomainns.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/describedomainns.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` +} + +// 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", "", "") + 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 new file mode 100644 index 0000000..c59a7c5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_record_info.go @@ -0,0 +1,119 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/describedomainrecordinfo.html +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 +// api document: https://help.aliyun.com/api/alidns/describedomainrecordinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/describedomainrecordinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + RecordId string `position:"Query" name:"RecordId"` +} + +// 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 int `json:"TTL" xml:"TTL"` + Priority int `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", "", "") + 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 new file mode 100644 index 0000000..bc90538 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_records.go @@ -0,0 +1,117 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/describedomainrecords.html +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 +// api document: https://help.aliyun.com/api/alidns/describedomainrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/describedomainrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + KeyWord string `position:"Query" name:"KeyWord"` + RRKeyWord string `position:"Query" name:"RRKeyWord"` + TypeKeyWord string `position:"Query" name:"TypeKeyWord"` + ValueKeyWord string `position:"Query" name:"ValueKeyWord"` + OrderBy string `position:"Query" name:"OrderBy"` + Direction string `position:"Query" name:"Direction"` +} + +// DescribeDomainRecordsResponse is the response struct for api DescribeDomainRecords +type DescribeDomainRecordsResponse 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"` + 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", "", "") + 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_whois_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_whois_info.go new file mode 100644 index 0000000..9984f6d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_whois_info.go @@ -0,0 +1,113 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainWhoisInfo invokes the alidns.DescribeDomainWhoisInfo API synchronously +// api document: https://help.aliyun.com/api/alidns/describedomainwhoisinfo.html +func (client *Client) DescribeDomainWhoisInfo(request *DescribeDomainWhoisInfoRequest) (response *DescribeDomainWhoisInfoResponse, err error) { + response = CreateDescribeDomainWhoisInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainWhoisInfoWithChan invokes the alidns.DescribeDomainWhoisInfo API asynchronously +// api document: https://help.aliyun.com/api/alidns/describedomainwhoisinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainWhoisInfoWithChan(request *DescribeDomainWhoisInfoRequest) (<-chan *DescribeDomainWhoisInfoResponse, <-chan error) { + responseChan := make(chan *DescribeDomainWhoisInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainWhoisInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainWhoisInfoWithCallback invokes the alidns.DescribeDomainWhoisInfo API asynchronously +// api document: https://help.aliyun.com/api/alidns/describedomainwhoisinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainWhoisInfoWithCallback(request *DescribeDomainWhoisInfoRequest, callback func(response *DescribeDomainWhoisInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainWhoisInfoResponse + var err error + defer close(result) + response, err = client.DescribeDomainWhoisInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainWhoisInfoRequest is the request struct for api DescribeDomainWhoisInfo +type DescribeDomainWhoisInfoRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + GroupId string `position:"Query" name:"GroupId"` +} + +// DescribeDomainWhoisInfoResponse is the response struct for api DescribeDomainWhoisInfo +type DescribeDomainWhoisInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegistrantName string `json:"RegistrantName" xml:"RegistrantName"` + RegistrantEmail string `json:"RegistrantEmail" xml:"RegistrantEmail"` + Registrar string `json:"Registrar" xml:"Registrar"` + RegistrationDate string `json:"RegistrationDate" xml:"RegistrationDate"` + ExpirationDate string `json:"ExpirationDate" xml:"ExpirationDate"` + StatusList StatusList `json:"StatusList" xml:"StatusList"` + DnsServers DnsServersInDescribeDomainWhoisInfo `json:"DnsServers" xml:"DnsServers"` +} + +// CreateDescribeDomainWhoisInfoRequest creates a request to invoke DescribeDomainWhoisInfo API +func CreateDescribeDomainWhoisInfoRequest() (request *DescribeDomainWhoisInfoRequest) { + request = &DescribeDomainWhoisInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDomainWhoisInfo", "", "") + return +} + +// CreateDescribeDomainWhoisInfoResponse creates a response to parse from DescribeDomainWhoisInfo response +func CreateDescribeDomainWhoisInfoResponse() (response *DescribeDomainWhoisInfoResponse) { + response = &DescribeDomainWhoisInfoResponse{ + 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 new file mode 100644 index 0000000..a49982b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domains.go @@ -0,0 +1,112 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/describedomains.html +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 +// api document: https://help.aliyun.com/api/alidns/describedomains.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/describedomains.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + KeyWord string `position:"Query" name:"KeyWord"` + GroupId string `position:"Query" name:"GroupId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeDomainsResponse is the response struct for api DescribeDomains +type DescribeDomainsResponse 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"` + Domains Domains `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", "", "") + 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_record_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_record_logs.go new file mode 100644 index 0000000..d9cd3e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_record_logs.go @@ -0,0 +1,114 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/describerecordlogs.html +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 +// api document: https://help.aliyun.com/api/alidns/describerecordlogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/describerecordlogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + KeyWord string `position:"Query" name:"KeyWord"` + StartDate string `position:"Query" name:"StartDate"` + EndDate string `position:"Query" name:"endDate"` +} + +// DescribeRecordLogsResponse is the response struct for api DescribeRecordLogs +type DescribeRecordLogsResponse 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"` + 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", "", "") + 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_sub_domain_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_sub_domain_records.go new file mode 100644 index 0000000..2b4ae7d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_sub_domain_records.go @@ -0,0 +1,112 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/describesubdomainrecords.html +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 +// api document: https://help.aliyun.com/api/alidns/describesubdomainrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/describesubdomainrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + SubDomain string `position:"Query" name:"SubDomain"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Type string `position:"Query" name:"Type"` +} + +// DescribeSubDomainRecordsResponse is the response struct for api DescribeSubDomainRecords +type DescribeSubDomainRecordsResponse 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"` + 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", "", "") + 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 new file mode 100644 index 0000000..3738c3c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_support_lines.go @@ -0,0 +1,105 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/describesupportlines.html +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 +// api document: https://help.aliyun.com/api/alidns/describesupportlines.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/describesupportlines.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// 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", "", "") + 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/get_main_domain_name.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/get_main_domain_name.go new file mode 100644 index 0000000..e519987 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/get_main_domain_name.go @@ -0,0 +1,108 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/getmaindomainname.html +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 +// api document: https://help.aliyun.com/api/alidns/getmaindomainname.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/getmaindomainname.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + InputString string `position:"Query" name:"InputString"` +} + +// 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 int `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", "", "") + 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/modify_hichina_domain_dns.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/modify_hichina_domain_dns.go new file mode 100644 index 0000000..3b452cd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/modify_hichina_domain_dns.go @@ -0,0 +1,107 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/modifyhichinadomaindns.html +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 +// api document: https://help.aliyun.com/api/alidns/modifyhichinadomaindns.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/modifyhichinadomaindns.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` +} + +// 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", "", "") + 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/retrieval_domain_name.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/retrieval_domain_name.go new file mode 100644 index 0000000..753b85d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/retrieval_domain_name.go @@ -0,0 +1,107 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RetrievalDomainName invokes the alidns.RetrievalDomainName API synchronously +// api document: https://help.aliyun.com/api/alidns/retrievaldomainname.html +func (client *Client) RetrievalDomainName(request *RetrievalDomainNameRequest) (response *RetrievalDomainNameResponse, err error) { + response = CreateRetrievalDomainNameResponse() + err = client.DoAction(request, response) + return +} + +// RetrievalDomainNameWithChan invokes the alidns.RetrievalDomainName API asynchronously +// api document: https://help.aliyun.com/api/alidns/retrievaldomainname.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RetrievalDomainNameWithChan(request *RetrievalDomainNameRequest) (<-chan *RetrievalDomainNameResponse, <-chan error) { + responseChan := make(chan *RetrievalDomainNameResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RetrievalDomainName(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RetrievalDomainNameWithCallback invokes the alidns.RetrievalDomainName API asynchronously +// api document: https://help.aliyun.com/api/alidns/retrievaldomainname.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RetrievalDomainNameWithCallback(request *RetrievalDomainNameRequest, callback func(response *RetrievalDomainNameResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RetrievalDomainNameResponse + var err error + defer close(result) + response, err = client.RetrievalDomainName(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RetrievalDomainNameRequest is the request struct for api RetrievalDomainName +type RetrievalDomainNameRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` +} + +// RetrievalDomainNameResponse is the response struct for api RetrievalDomainName +type RetrievalDomainNameResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + WhoisEmail string `json:"WhoisEmail" xml:"WhoisEmail"` +} + +// CreateRetrievalDomainNameRequest creates a request to invoke RetrievalDomainName API +func CreateRetrievalDomainNameRequest() (request *RetrievalDomainNameRequest) { + request = &RetrievalDomainNameRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Alidns", "2015-01-09", "RetrievalDomainName", "", "") + return +} + +// CreateRetrievalDomainNameResponse creates a response to parse from RetrievalDomainName response +func CreateRetrievalDomainNameResponse() (response *RetrievalDomainNameResponse) { + response = &RetrievalDomainNameResponse{ + 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 new file mode 100644 index 0000000..858d6fe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_dnsslb_status.go @@ -0,0 +1,108 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/setdnsslbstatus.html +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 +// api document: https://help.aliyun.com/api/alidns/setdnsslbstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/setdnsslbstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + SubDomain string `position:"Query" name:"SubDomain"` + 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 int `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", "", "") + 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_record_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_domain_record_status.go new file mode 100644 index 0000000..29ba5f7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_domain_record_status.go @@ -0,0 +1,108 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/setdomainrecordstatus.html +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 +// api document: https://help.aliyun.com/api/alidns/setdomainrecordstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/setdomainrecordstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + RecordId string `position:"Query" name:"RecordId"` + 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", "", "") + 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/struct_available_ttls.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_available_ttls.go new file mode 100644 index 0000000..e1d0ac7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_available_ttls.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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_dns_product.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_product.go new file mode 100644 index 0000000..50a2e86 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_product.go @@ -0,0 +1,48 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 int `json:"StartTimestamp" xml:"StartTimestamp"` + EndTimestamp int `json:"EndTimestamp" xml:"EndTimestamp"` + Domain string `json:"Domain" xml:"Domain"` + BindCount int `json:"BindCount" xml:"BindCount"` + BindUsedCount int `json:"BindUsedCount" xml:"BindUsedCount"` + TTLMinValue int `json:"TTLMinValue" xml:"TTLMinValue"` + SubDomainLevel int `json:"SubDomainLevel" xml:"SubDomainLevel"` + DnsSLBCount int `json:"DnsSLBCount" xml:"DnsSLBCount"` + URLForwardCount int `json:"URLForwardCount" xml:"URLForwardCount"` + DDosDefendFlow int `json:"DDosDefendFlow" xml:"DDosDefendFlow"` + DDosDefendQuery int `json:"DDosDefendQuery" xml:"DDosDefendQuery"` + OverseaDDosDefendFlow int `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 int `json:"MonitorNodeCount" xml:"MonitorNodeCount"` + MonitorFrequency int `json:"MonitorFrequency" xml:"MonitorFrequency"` + MonitorTaskCount int `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"` +} 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 new file mode 100644 index 0000000..636a96f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_products.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 new file mode 100644 index 0000000..d6f5bfb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_add_domain.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 new file mode 100644 index 0000000..64d0db2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_dns_product_instance.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 new file mode 100644 index 0000000..debe648 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domain_info.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 new file mode 100644 index 0000000..67d752e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domain_ns.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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_domain_whois_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domain_whois_info.go new file mode 100644 index 0000000..fc03ed4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domain_whois_info.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DnsServersInDescribeDomainWhoisInfo is a nested struct in alidns response +type DnsServersInDescribeDomainWhoisInfo 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 new file mode 100644 index 0000000..dada40a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domains.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 new file mode 100644 index 0000000..0dd46e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain.go @@ -0,0 +1,35 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 { + 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 int `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"` + DnsServers DnsServersInDescribeDomains `json:"DnsServers" xml:"DnsServers"` +} 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 new file mode 100644 index 0000000..89646e8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_group.go @@ -0,0 +1,23 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 int `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 new file mode 100644 index 0000000..ce193d8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_groups.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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_log.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_log.go new file mode 100644 index 0000000..40128f6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_log.go @@ -0,0 +1,26 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 int `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"` +} 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 new file mode 100644 index 0000000..3964d02 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_logs.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 new file mode 100644 index 0000000..5ef9725 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_records_in_describe_domain_records.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 new file mode 100644 index 0000000..9b64ba0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_records_in_describe_sub_domain_records.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domains.go new file mode 100644 index 0000000..aff37f8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domains.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Domains is a nested struct in alidns response +type Domains struct { + Domain []Domain `json:"Domain" xml:"Domain"` +} 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 new file mode 100644 index 0000000..9befd95 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_expect_dns_servers.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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_fail_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_fail_result.go new file mode 100644 index 0000000..0fc2d30 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_fail_result.go @@ -0,0 +1,22 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailResult is a nested struct in alidns response +type FailResult struct { + BatchIndex string `json:"BatchIndex" xml:"BatchIndex"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_fail_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_fail_results.go new file mode 100644 index 0000000..54ee4d1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_fail_results.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailResults is a nested struct in alidns response +type FailResults struct { + FailResult []FailResult `json:"FailResult" xml:"FailResult"` +} 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 new file mode 100644 index 0000000..5fd8b18 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_new_dns_servers.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 new file mode 100644 index 0000000..b6f90bb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_original_dns_servers.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record.go new file mode 100644 index 0000000..b4f0f19 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record.go @@ -0,0 +1,32 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 { + Locked bool `json:"Locked" xml:"Locked"` + Type string `json:"Type" xml:"Type"` + Line string `json:"Line" xml:"Line"` + RR string `json:"RR" xml:"RR"` + Remark string `json:"Remark" xml:"Remark"` + Priority int `json:"Priority" xml:"Priority"` + RecordId string `json:"RecordId" xml:"RecordId"` + Value string `json:"Value" xml:"Value"` + DomainName string `json:"DomainName" xml:"DomainName"` + Weight int `json:"Weight" xml:"Weight"` + Status string `json:"Status" xml:"Status"` + TTL int `json:"TTL" xml:"TTL"` +} 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 new file mode 100644 index 0000000..2219c2d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_line.go @@ -0,0 +1,24 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 { + LineName string `json:"LineName" xml:"LineName"` + FatherCode string `json:"FatherCode" xml:"FatherCode"` + LineDisplayName string `json:"LineDisplayName" xml:"LineDisplayName"` + LineCode string `json:"LineCode" xml:"LineCode"` +} 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 new file mode 100644 index 0000000..203f525 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_lines_in_describe_domain_info.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 new file mode 100644 index 0000000..5c2e05f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_lines_in_describe_support_lines.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 new file mode 100644 index 0000000..ee45835 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_log.go @@ -0,0 +1,25 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 int `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 new file mode 100644 index 0000000..b5a42b5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_logs.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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_slb_sub_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_slb_sub_domain.go new file mode 100644 index 0000000..043a447 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_slb_sub_domain.go @@ -0,0 +1,24 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 int `json:"RecordCount" xml:"RecordCount"` + Open bool `json:"Open" xml:"Open"` + Type string `json:"Type" xml:"Type"` +} 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 new file mode 100644 index 0000000..4618d59 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_slb_sub_domains.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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_status_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_status_list.go new file mode 100644 index 0000000..341e43d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_status_list.go @@ -0,0 +1,21 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StatusList is a nested struct in alidns response +type StatusList struct { + Status []string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_batch_domain_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_batch_domain_records.go new file mode 100644 index 0000000..c90e204 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_batch_domain_records.go @@ -0,0 +1,106 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateBatchDomainRecords invokes the alidns.UpdateBatchDomainRecords API synchronously +// api document: https://help.aliyun.com/api/alidns/updatebatchdomainrecords.html +func (client *Client) UpdateBatchDomainRecords(request *UpdateBatchDomainRecordsRequest) (response *UpdateBatchDomainRecordsResponse, err error) { + response = CreateUpdateBatchDomainRecordsResponse() + err = client.DoAction(request, response) + return +} + +// UpdateBatchDomainRecordsWithChan invokes the alidns.UpdateBatchDomainRecords API asynchronously +// api document: https://help.aliyun.com/api/alidns/updatebatchdomainrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateBatchDomainRecordsWithChan(request *UpdateBatchDomainRecordsRequest) (<-chan *UpdateBatchDomainRecordsResponse, <-chan error) { + responseChan := make(chan *UpdateBatchDomainRecordsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateBatchDomainRecords(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateBatchDomainRecordsWithCallback invokes the alidns.UpdateBatchDomainRecords API asynchronously +// api document: https://help.aliyun.com/api/alidns/updatebatchdomainrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateBatchDomainRecordsWithCallback(request *UpdateBatchDomainRecordsRequest, callback func(response *UpdateBatchDomainRecordsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateBatchDomainRecordsResponse + var err error + defer close(result) + response, err = client.UpdateBatchDomainRecords(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateBatchDomainRecordsRequest is the request struct for api UpdateBatchDomainRecords +type UpdateBatchDomainRecordsRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Records string `position:"Query" name:"Records"` +} + +// UpdateBatchDomainRecordsResponse is the response struct for api UpdateBatchDomainRecords +type UpdateBatchDomainRecordsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TraceId string `json:"TraceId" xml:"TraceId"` +} + +// CreateUpdateBatchDomainRecordsRequest creates a request to invoke UpdateBatchDomainRecords API +func CreateUpdateBatchDomainRecordsRequest() (request *UpdateBatchDomainRecordsRequest) { + request = &UpdateBatchDomainRecordsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Alidns", "2015-01-09", "UpdateBatchDomainRecords", "", "") + return +} + +// CreateUpdateBatchDomainRecordsResponse creates a response to parse from UpdateBatchDomainRecords response +func CreateUpdateBatchDomainRecordsResponse() (response *UpdateBatchDomainRecordsResponse) { + response = &UpdateBatchDomainRecordsResponse{ + 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 new file mode 100644 index 0000000..ec372a2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dnsslb_weight.go @@ -0,0 +1,108 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/updatednsslbweight.html +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 +// api document: https://help.aliyun.com/api/alidns/updatednsslbweight.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/updatednsslbweight.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + RecordId string `position:"Query" name:"RecordId"` + Weight requests.Integer `position:"Query" name:"Weight"` +} + +// 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", "", "") + 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 new file mode 100644 index 0000000..61f1fb1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_domain_group.go @@ -0,0 +1,108 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/updatedomaingroup.html +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 +// api document: https://help.aliyun.com/api/alidns/updatedomaingroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/updatedomaingroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + GroupId string `position:"Query" name:"GroupId"` + GroupName string `position:"Query" name:"GroupName"` +} + +// 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", "", "") + 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 new file mode 100644 index 0000000..1e9c0da --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_domain_record.go @@ -0,0 +1,112 @@ +package alidns + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 +// api document: https://help.aliyun.com/api/alidns/updatedomainrecord.html +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 +// api document: https://help.aliyun.com/api/alidns/updatedomainrecord.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/alidns/updatedomainrecord.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + RecordId string `position:"Query" name:"RecordId"` + RR string `position:"Query" name:"RR"` + Type string `position:"Query" name:"Type"` + Value string `position:"Query" name:"Value"` + TTL requests.Integer `position:"Query" name:"TTL"` + Priority requests.Integer `position:"Query" name:"Priority"` + Line string `position:"Query" name:"Line"` +} + +// 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", "", "") + 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/arms/arms_query_data_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms/arms_query_data_set.go new file mode 100644 index 0000000..f810e3f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms/arms_query_data_set.go @@ -0,0 +1,137 @@ +package arms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ARMSQueryDataSet invokes the arms.ARMSQueryDataSet API synchronously +// api document: https://help.aliyun.com/api/arms/armsquerydataset.html +func (client *Client) ARMSQueryDataSet(request *ARMSQueryDataSetRequest) (response *ARMSQueryDataSetResponse, err error) { + response = CreateARMSQueryDataSetResponse() + err = client.DoAction(request, response) + return +} + +// ARMSQueryDataSetWithChan invokes the arms.ARMSQueryDataSet API asynchronously +// api document: https://help.aliyun.com/api/arms/armsquerydataset.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ARMSQueryDataSetWithChan(request *ARMSQueryDataSetRequest) (<-chan *ARMSQueryDataSetResponse, <-chan error) { + responseChan := make(chan *ARMSQueryDataSetResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ARMSQueryDataSet(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ARMSQueryDataSetWithCallback invokes the arms.ARMSQueryDataSet API asynchronously +// api document: https://help.aliyun.com/api/arms/armsquerydataset.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ARMSQueryDataSetWithCallback(request *ARMSQueryDataSetRequest, callback func(response *ARMSQueryDataSetResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ARMSQueryDataSetResponse + var err error + defer close(result) + response, err = client.ARMSQueryDataSet(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ARMSQueryDataSetRequest is the request struct for api ARMSQueryDataSet +type ARMSQueryDataSetRequest struct { + *requests.RpcRequest + DatasetId requests.Integer `position:"Query" name:"DatasetId"` + IntervalInSec requests.Integer `position:"Query" name:"IntervalInSec"` + DateStr requests.Integer `position:"Query" name:"DateStr"` + MinTime requests.Integer `position:"Query" name:"MinTime"` + MaxTime requests.Integer `position:"Query" name:"MaxTime"` + Dimensions *[]ARMSQueryDataSetDimensions `position:"Query" name:"Dimensions" type:"Repeated"` + Measures *[]string `position:"Query" name:"Measures" type:"Repeated"` + IsDrillDown requests.Boolean `position:"Query" name:"IsDrillDown"` + OrderByKey string `position:"Query" name:"OrderByKey"` + Limit requests.Integer `position:"Query" name:"Limit"` + ReduceTail requests.Boolean `position:"Query" name:"ReduceTail"` + HungryMode requests.Boolean `position:"Query" name:"HungryMode"` + RequiredDims *[]ARMSQueryDataSetRequiredDims `position:"Query" name:"RequiredDims" type:"Repeated"` + OptionalDims *[]ARMSQueryDataSetOptionalDims `position:"Query" name:"OptionalDims" type:"Repeated"` +} + +// ARMSQueryDataSetDimensions is a repeated param struct in ARMSQueryDataSetRequest +type ARMSQueryDataSetDimensions struct { + Key string `name:"Key"` + Value string `name:"Value"` + Type string `name:"Type"` +} + +// ARMSQueryDataSetRequiredDims is a repeated param struct in ARMSQueryDataSetRequest +type ARMSQueryDataSetRequiredDims struct { + Key string `name:"Key"` + Value string `name:"Value"` + Type string `name:"Type"` +} + +// ARMSQueryDataSetOptionalDims is a repeated param struct in ARMSQueryDataSetRequest +type ARMSQueryDataSetOptionalDims struct { + Key string `name:"Key"` + Value string `name:"Value"` + Type string `name:"Type"` +} + +// ARMSQueryDataSetResponse is the response struct for api ARMSQueryDataSet +type ARMSQueryDataSetResponse struct { + *responses.BaseResponse + Data string `json:"Data" xml:"Data"` +} + +// CreateARMSQueryDataSetRequest creates a request to invoke ARMSQueryDataSet API +func CreateARMSQueryDataSetRequest() (request *ARMSQueryDataSetRequest) { + request = &ARMSQueryDataSetRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("ARMS", "2016-11-25", "ARMSQueryDataSet", "", "") + return +} + +// CreateARMSQueryDataSetResponse creates a response to parse from ARMSQueryDataSet response +func CreateARMSQueryDataSetResponse() (response *ARMSQueryDataSetResponse) { + response = &ARMSQueryDataSetResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms/client.go new file mode 100644 index 0000000..17a9ce5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms/client.go @@ -0,0 +1,81 @@ +package arms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms/where_in_dim_query.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms/where_in_dim_query.go new file mode 100644 index 0000000..9ac4f25 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms/where_in_dim_query.go @@ -0,0 +1,122 @@ +package arms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// WhereInDimQuery invokes the arms.WhereInDimQuery API synchronously +// api document: https://help.aliyun.com/api/arms/whereindimquery.html +func (client *Client) WhereInDimQuery(request *WhereInDimQueryRequest) (response *WhereInDimQueryResponse, err error) { + response = CreateWhereInDimQueryResponse() + err = client.DoAction(request, response) + return +} + +// WhereInDimQueryWithChan invokes the arms.WhereInDimQuery API asynchronously +// api document: https://help.aliyun.com/api/arms/whereindimquery.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) WhereInDimQueryWithChan(request *WhereInDimQueryRequest) (<-chan *WhereInDimQueryResponse, <-chan error) { + responseChan := make(chan *WhereInDimQueryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.WhereInDimQuery(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// WhereInDimQueryWithCallback invokes the arms.WhereInDimQuery API asynchronously +// api document: https://help.aliyun.com/api/arms/whereindimquery.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) WhereInDimQueryWithCallback(request *WhereInDimQueryRequest, callback func(response *WhereInDimQueryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *WhereInDimQueryResponse + var err error + defer close(result) + response, err = client.WhereInDimQuery(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// WhereInDimQueryRequest is the request struct for api WhereInDimQuery +type WhereInDimQueryRequest struct { + *requests.RpcRequest + DatasetId requests.Integer `position:"Query" name:"DatasetId"` + IntervalInSec requests.Integer `position:"Query" name:"IntervalInSec"` + DateStr string `position:"Query" name:"DateStr"` + MinTime requests.Integer `position:"Query" name:"MinTime"` + MaxTime requests.Integer `position:"Query" name:"MaxTime"` + Dimensions *[]WhereInDimQueryDimensions `position:"Query" name:"Dimensions" type:"Repeated"` + WhereInKey string `position:"Query" name:"WhereInKey"` + WhereInValues *[]string `position:"Query" name:"WhereInValues" type:"Repeated"` + Measures *[]string `position:"Query" name:"Measures" type:"Repeated"` + IsDrillDown requests.Boolean `position:"Query" name:"IsDrillDown"` + OrderByKey string `position:"Query" name:"OrderByKey"` + Limit requests.Integer `position:"Query" name:"Limit"` + ReduceTail requests.Boolean `position:"Query" name:"ReduceTail"` +} + +// WhereInDimQueryDimensions is a repeated param struct in WhereInDimQueryRequest +type WhereInDimQueryDimensions struct { + Key string `name:"Key"` + Value string `name:"Value"` + Type string `name:"Type"` +} + +// WhereInDimQueryResponse is the response struct for api WhereInDimQuery +type WhereInDimQueryResponse struct { + *responses.BaseResponse + Data string `json:"Data" xml:"Data"` +} + +// CreateWhereInDimQueryRequest creates a request to invoke WhereInDimQuery API +func CreateWhereInDimQueryRequest() (request *WhereInDimQueryRequest) { + request = &WhereInDimQueryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("ARMS", "2016-11-25", "WhereInDimQuery", "", "") + return +} + +// CreateWhereInDimQueryResponse creates a response to parse from WhereInDimQuery response +func CreateWhereInDimQueryResponse() (response *WhereInDimQueryResponse) { + response = &WhereInDimQueryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms4finance/arms_query_data_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms4finance/arms_query_data_set.go new file mode 100644 index 0000000..bb3f440 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms4finance/arms_query_data_set.go @@ -0,0 +1,116 @@ +package arms4finance + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ARMSQueryDataSet invokes the arms4finance.ARMSQueryDataSet API synchronously +// api document: https://help.aliyun.com/api/arms4finance/armsquerydataset.html +func (client *Client) ARMSQueryDataSet(request *ARMSQueryDataSetRequest) (response *ARMSQueryDataSetResponse, err error) { + response = CreateARMSQueryDataSetResponse() + err = client.DoAction(request, response) + return +} + +// ARMSQueryDataSetWithChan invokes the arms4finance.ARMSQueryDataSet API asynchronously +// api document: https://help.aliyun.com/api/arms4finance/armsquerydataset.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ARMSQueryDataSetWithChan(request *ARMSQueryDataSetRequest) (<-chan *ARMSQueryDataSetResponse, <-chan error) { + responseChan := make(chan *ARMSQueryDataSetResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ARMSQueryDataSet(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ARMSQueryDataSetWithCallback invokes the arms4finance.ARMSQueryDataSet API asynchronously +// api document: https://help.aliyun.com/api/arms4finance/armsquerydataset.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ARMSQueryDataSetWithCallback(request *ARMSQueryDataSetRequest, callback func(response *ARMSQueryDataSetResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ARMSQueryDataSetResponse + var err error + defer close(result) + response, err = client.ARMSQueryDataSet(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ARMSQueryDataSetRequest is the request struct for api ARMSQueryDataSet +type ARMSQueryDataSetRequest struct { + *requests.RpcRequest + DatasetId requests.Integer `position:"Query" name:"DatasetId"` + IntervalInSec requests.Integer `position:"Query" name:"IntervalInSec"` + DateStr string `position:"Query" name:"DateStr"` + MinTime requests.Integer `position:"Query" name:"MinTime"` + MaxTime requests.Integer `position:"Query" name:"MaxTime"` + Dimensions *[]ARMSQueryDataSetDimensions `position:"Query" name:"Dimensions" type:"Repeated"` + Measures *[]string `position:"Query" name:"Measures" type:"Repeated"` + IsDrillDown requests.Boolean `position:"Query" name:"IsDrillDown"` +} + +// ARMSQueryDataSetDimensions is a repeated param struct in ARMSQueryDataSetRequest +type ARMSQueryDataSetDimensions struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// ARMSQueryDataSetResponse is the response struct for api ARMSQueryDataSet +type ARMSQueryDataSetResponse struct { + *responses.BaseResponse + Data string `json:"Data" xml:"Data"` +} + +// CreateARMSQueryDataSetRequest creates a request to invoke ARMSQueryDataSet API +func CreateARMSQueryDataSetRequest() (request *ARMSQueryDataSetRequest) { + request = &ARMSQueryDataSetRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("ARMS4FINANCE", "2017-11-30", "ARMSQueryDataSet", "", "") + return +} + +// CreateARMSQueryDataSetResponse creates a response to parse from ARMSQueryDataSet response +func CreateARMSQueryDataSetResponse() (response *ARMSQueryDataSetResponse) { + response = &ARMSQueryDataSetResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms4finance/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms4finance/client.go new file mode 100644 index 0000000..ef78fbe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms4finance/client.go @@ -0,0 +1,81 @@ +package arms4finance + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms4finance/where_in_dim_query.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms4finance/where_in_dim_query.go new file mode 100644 index 0000000..8a1c1ab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/arms4finance/where_in_dim_query.go @@ -0,0 +1,118 @@ +package arms4finance + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// WhereInDimQuery invokes the arms4finance.WhereInDimQuery API synchronously +// api document: https://help.aliyun.com/api/arms4finance/whereindimquery.html +func (client *Client) WhereInDimQuery(request *WhereInDimQueryRequest) (response *WhereInDimQueryResponse, err error) { + response = CreateWhereInDimQueryResponse() + err = client.DoAction(request, response) + return +} + +// WhereInDimQueryWithChan invokes the arms4finance.WhereInDimQuery API asynchronously +// api document: https://help.aliyun.com/api/arms4finance/whereindimquery.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) WhereInDimQueryWithChan(request *WhereInDimQueryRequest) (<-chan *WhereInDimQueryResponse, <-chan error) { + responseChan := make(chan *WhereInDimQueryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.WhereInDimQuery(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// WhereInDimQueryWithCallback invokes the arms4finance.WhereInDimQuery API asynchronously +// api document: https://help.aliyun.com/api/arms4finance/whereindimquery.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) WhereInDimQueryWithCallback(request *WhereInDimQueryRequest, callback func(response *WhereInDimQueryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *WhereInDimQueryResponse + var err error + defer close(result) + response, err = client.WhereInDimQuery(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// WhereInDimQueryRequest is the request struct for api WhereInDimQuery +type WhereInDimQueryRequest struct { + *requests.RpcRequest + DatasetId requests.Integer `position:"Query" name:"DatasetId"` + IntervalInSec requests.Integer `position:"Query" name:"IntervalInSec"` + DateStr string `position:"Query" name:"DateStr"` + MinTime requests.Integer `position:"Query" name:"MinTime"` + MaxTime requests.Integer `position:"Query" name:"MaxTime"` + Dimensions *[]WhereInDimQueryDimensions `position:"Query" name:"Dimensions" type:"Repeated"` + WhereInKey string `position:"Query" name:"WhereInKey"` + WhereInValues *[]string `position:"Query" name:"WhereInValues" type:"Repeated"` + Measures *[]string `position:"Query" name:"Measures" type:"Repeated"` + IsDrillDown requests.Boolean `position:"Query" name:"IsDrillDown"` +} + +// WhereInDimQueryDimensions is a repeated param struct in WhereInDimQueryRequest +type WhereInDimQueryDimensions struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// WhereInDimQueryResponse is the response struct for api WhereInDimQuery +type WhereInDimQueryResponse struct { + *responses.BaseResponse + Data string `json:"Data" xml:"Data"` +} + +// CreateWhereInDimQueryRequest creates a request to invoke WhereInDimQuery API +func CreateWhereInDimQueryRequest() (request *WhereInDimQueryRequest) { + request = &WhereInDimQueryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("ARMS4FINANCE", "2017-11-30", "WhereInDimQuery", "", "") + return +} + +// CreateWhereInDimQueryResponse creates a response to parse from WhereInDimQuery response +func CreateWhereInDimQueryResponse() (response *WhereInDimQueryResponse) { + response = &WhereInDimQueryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/associate_cen_bandwidth_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/associate_cen_bandwidth_package.go new file mode 100644 index 0000000..6cba346 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/associate_cen_bandwidth_package.go @@ -0,0 +1,108 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AssociateCenBandwidthPackage invokes the cbn.AssociateCenBandwidthPackage API synchronously +// api document: https://help.aliyun.com/api/cbn/associatecenbandwidthpackage.html +func (client *Client) AssociateCenBandwidthPackage(request *AssociateCenBandwidthPackageRequest) (response *AssociateCenBandwidthPackageResponse, err error) { + response = CreateAssociateCenBandwidthPackageResponse() + err = client.DoAction(request, response) + return +} + +// AssociateCenBandwidthPackageWithChan invokes the cbn.AssociateCenBandwidthPackage API asynchronously +// api document: https://help.aliyun.com/api/cbn/associatecenbandwidthpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AssociateCenBandwidthPackageWithChan(request *AssociateCenBandwidthPackageRequest) (<-chan *AssociateCenBandwidthPackageResponse, <-chan error) { + responseChan := make(chan *AssociateCenBandwidthPackageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AssociateCenBandwidthPackage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AssociateCenBandwidthPackageWithCallback invokes the cbn.AssociateCenBandwidthPackage API asynchronously +// api document: https://help.aliyun.com/api/cbn/associatecenbandwidthpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AssociateCenBandwidthPackageWithCallback(request *AssociateCenBandwidthPackageRequest, callback func(response *AssociateCenBandwidthPackageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AssociateCenBandwidthPackageResponse + var err error + defer close(result) + response, err = client.AssociateCenBandwidthPackage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AssociateCenBandwidthPackageRequest is the request struct for api AssociateCenBandwidthPackage +type AssociateCenBandwidthPackageRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CenId string `position:"Query" name:"CenId"` + CenBandwidthPackageId string `position:"Query" name:"CenBandwidthPackageId"` +} + +// AssociateCenBandwidthPackageResponse is the response struct for api AssociateCenBandwidthPackage +type AssociateCenBandwidthPackageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAssociateCenBandwidthPackageRequest creates a request to invoke AssociateCenBandwidthPackage API +func CreateAssociateCenBandwidthPackageRequest() (request *AssociateCenBandwidthPackageRequest) { + request = &AssociateCenBandwidthPackageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "AssociateCenBandwidthPackage", "cbn", "openAPI") + return +} + +// CreateAssociateCenBandwidthPackageResponse creates a response to parse from AssociateCenBandwidthPackage response +func CreateAssociateCenBandwidthPackageResponse() (response *AssociateCenBandwidthPackageResponse) { + response = &AssociateCenBandwidthPackageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/attach_cen_child_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/attach_cen_child_instance.go new file mode 100644 index 0000000..502b9c7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/attach_cen_child_instance.go @@ -0,0 +1,111 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AttachCenChildInstance invokes the cbn.AttachCenChildInstance API synchronously +// api document: https://help.aliyun.com/api/cbn/attachcenchildinstance.html +func (client *Client) AttachCenChildInstance(request *AttachCenChildInstanceRequest) (response *AttachCenChildInstanceResponse, err error) { + response = CreateAttachCenChildInstanceResponse() + err = client.DoAction(request, response) + return +} + +// AttachCenChildInstanceWithChan invokes the cbn.AttachCenChildInstance API asynchronously +// api document: https://help.aliyun.com/api/cbn/attachcenchildinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachCenChildInstanceWithChan(request *AttachCenChildInstanceRequest) (<-chan *AttachCenChildInstanceResponse, <-chan error) { + responseChan := make(chan *AttachCenChildInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AttachCenChildInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AttachCenChildInstanceWithCallback invokes the cbn.AttachCenChildInstance API asynchronously +// api document: https://help.aliyun.com/api/cbn/attachcenchildinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachCenChildInstanceWithCallback(request *AttachCenChildInstanceRequest, callback func(response *AttachCenChildInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AttachCenChildInstanceResponse + var err error + defer close(result) + response, err = client.AttachCenChildInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AttachCenChildInstanceRequest is the request struct for api AttachCenChildInstance +type AttachCenChildInstanceRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CenId string `position:"Query" name:"CenId"` + ChildInstanceId string `position:"Query" name:"ChildInstanceId"` + ChildInstanceType string `position:"Query" name:"ChildInstanceType"` + ChildInstanceRegionId string `position:"Query" name:"ChildInstanceRegionId"` + ChildInstanceOwnerId requests.Integer `position:"Query" name:"ChildInstanceOwnerId"` +} + +// AttachCenChildInstanceResponse is the response struct for api AttachCenChildInstance +type AttachCenChildInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAttachCenChildInstanceRequest creates a request to invoke AttachCenChildInstance API +func CreateAttachCenChildInstanceRequest() (request *AttachCenChildInstanceRequest) { + request = &AttachCenChildInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "AttachCenChildInstance", "cbn", "openAPI") + return +} + +// CreateAttachCenChildInstanceResponse creates a response to parse from AttachCenChildInstance response +func CreateAttachCenChildInstanceResponse() (response *AttachCenChildInstanceResponse) { + response = &AttachCenChildInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/client.go new file mode 100644 index 0000000..249c919 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/client.go @@ -0,0 +1,81 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/create_cen.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/create_cen.go new file mode 100644 index 0000000..d51d876 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/create_cen.go @@ -0,0 +1,110 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateCen invokes the cbn.CreateCen API synchronously +// api document: https://help.aliyun.com/api/cbn/createcen.html +func (client *Client) CreateCen(request *CreateCenRequest) (response *CreateCenResponse, err error) { + response = CreateCreateCenResponse() + err = client.DoAction(request, response) + return +} + +// CreateCenWithChan invokes the cbn.CreateCen API asynchronously +// api document: https://help.aliyun.com/api/cbn/createcen.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateCenWithChan(request *CreateCenRequest) (<-chan *CreateCenResponse, <-chan error) { + responseChan := make(chan *CreateCenResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateCen(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateCenWithCallback invokes the cbn.CreateCen API asynchronously +// api document: https://help.aliyun.com/api/cbn/createcen.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateCenWithCallback(request *CreateCenRequest, callback func(response *CreateCenResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateCenResponse + var err error + defer close(result) + response, err = client.CreateCen(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateCenRequest is the request struct for api CreateCen +type CreateCenRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` +} + +// CreateCenResponse is the response struct for api CreateCen +type CreateCenResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CenId string `json:"CenId" xml:"CenId"` +} + +// CreateCreateCenRequest creates a request to invoke CreateCen API +func CreateCreateCenRequest() (request *CreateCenRequest) { + request = &CreateCenRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "CreateCen", "cbn", "openAPI") + return +} + +// CreateCreateCenResponse creates a response to parse from CreateCen response +func CreateCreateCenResponse() (response *CreateCenResponse) { + response = &CreateCenResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/create_cen_bandwidth_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/create_cen_bandwidth_package.go new file mode 100644 index 0000000..ce3d054 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/create_cen_bandwidth_package.go @@ -0,0 +1,118 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateCenBandwidthPackage invokes the cbn.CreateCenBandwidthPackage API synchronously +// api document: https://help.aliyun.com/api/cbn/createcenbandwidthpackage.html +func (client *Client) CreateCenBandwidthPackage(request *CreateCenBandwidthPackageRequest) (response *CreateCenBandwidthPackageResponse, err error) { + response = CreateCreateCenBandwidthPackageResponse() + err = client.DoAction(request, response) + return +} + +// CreateCenBandwidthPackageWithChan invokes the cbn.CreateCenBandwidthPackage API asynchronously +// api document: https://help.aliyun.com/api/cbn/createcenbandwidthpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateCenBandwidthPackageWithChan(request *CreateCenBandwidthPackageRequest) (<-chan *CreateCenBandwidthPackageResponse, <-chan error) { + responseChan := make(chan *CreateCenBandwidthPackageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateCenBandwidthPackage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateCenBandwidthPackageWithCallback invokes the cbn.CreateCenBandwidthPackage API asynchronously +// api document: https://help.aliyun.com/api/cbn/createcenbandwidthpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateCenBandwidthPackageWithCallback(request *CreateCenBandwidthPackageRequest, callback func(response *CreateCenBandwidthPackageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateCenBandwidthPackageResponse + var err error + defer close(result) + response, err = client.CreateCenBandwidthPackage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateCenBandwidthPackageRequest is the request struct for api CreateCenBandwidthPackage +type CreateCenBandwidthPackageRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + GeographicRegionAId string `position:"Query" name:"GeographicRegionAId"` + GeographicRegionBId string `position:"Query" name:"GeographicRegionBId"` + BandwidthPackageChargeType string `position:"Query" name:"BandwidthPackageChargeType"` + Period requests.Integer `position:"Query" name:"Period"` + PricingCycle string `position:"Query" name:"PricingCycle"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` +} + +// CreateCenBandwidthPackageResponse is the response struct for api CreateCenBandwidthPackage +type CreateCenBandwidthPackageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CenBandwidthPackageId string `json:"CenBandwidthPackageId" xml:"CenBandwidthPackageId"` + CenBandwidthPackageOrderId string `json:"CenBandwidthPackageOrderId" xml:"CenBandwidthPackageOrderId"` +} + +// CreateCreateCenBandwidthPackageRequest creates a request to invoke CreateCenBandwidthPackage API +func CreateCreateCenBandwidthPackageRequest() (request *CreateCenBandwidthPackageRequest) { + request = &CreateCenBandwidthPackageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "CreateCenBandwidthPackage", "cbn", "openAPI") + return +} + +// CreateCreateCenBandwidthPackageResponse creates a response to parse from CreateCenBandwidthPackage response +func CreateCreateCenBandwidthPackageResponse() (response *CreateCenBandwidthPackageResponse) { + response = &CreateCenBandwidthPackageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/delete_cen.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/delete_cen.go new file mode 100644 index 0000000..3eba839 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/delete_cen.go @@ -0,0 +1,107 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCen invokes the cbn.DeleteCen API synchronously +// api document: https://help.aliyun.com/api/cbn/deletecen.html +func (client *Client) DeleteCen(request *DeleteCenRequest) (response *DeleteCenResponse, err error) { + response = CreateDeleteCenResponse() + err = client.DoAction(request, response) + return +} + +// DeleteCenWithChan invokes the cbn.DeleteCen API asynchronously +// api document: https://help.aliyun.com/api/cbn/deletecen.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCenWithChan(request *DeleteCenRequest) (<-chan *DeleteCenResponse, <-chan error) { + responseChan := make(chan *DeleteCenResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCen(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteCenWithCallback invokes the cbn.DeleteCen API asynchronously +// api document: https://help.aliyun.com/api/cbn/deletecen.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCenWithCallback(request *DeleteCenRequest, callback func(response *DeleteCenResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteCenResponse + var err error + defer close(result) + response, err = client.DeleteCen(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteCenRequest is the request struct for api DeleteCen +type DeleteCenRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CenId string `position:"Query" name:"CenId"` +} + +// DeleteCenResponse is the response struct for api DeleteCen +type DeleteCenResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteCenRequest creates a request to invoke DeleteCen API +func CreateDeleteCenRequest() (request *DeleteCenRequest) { + request = &DeleteCenRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "DeleteCen", "cbn", "openAPI") + return +} + +// CreateDeleteCenResponse creates a response to parse from DeleteCen response +func CreateDeleteCenResponse() (response *DeleteCenResponse) { + response = &DeleteCenResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/delete_cen_bandwidth_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/delete_cen_bandwidth_package.go new file mode 100644 index 0000000..4b0d7cc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/delete_cen_bandwidth_package.go @@ -0,0 +1,107 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCenBandwidthPackage invokes the cbn.DeleteCenBandwidthPackage API synchronously +// api document: https://help.aliyun.com/api/cbn/deletecenbandwidthpackage.html +func (client *Client) DeleteCenBandwidthPackage(request *DeleteCenBandwidthPackageRequest) (response *DeleteCenBandwidthPackageResponse, err error) { + response = CreateDeleteCenBandwidthPackageResponse() + err = client.DoAction(request, response) + return +} + +// DeleteCenBandwidthPackageWithChan invokes the cbn.DeleteCenBandwidthPackage API asynchronously +// api document: https://help.aliyun.com/api/cbn/deletecenbandwidthpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCenBandwidthPackageWithChan(request *DeleteCenBandwidthPackageRequest) (<-chan *DeleteCenBandwidthPackageResponse, <-chan error) { + responseChan := make(chan *DeleteCenBandwidthPackageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCenBandwidthPackage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteCenBandwidthPackageWithCallback invokes the cbn.DeleteCenBandwidthPackage API asynchronously +// api document: https://help.aliyun.com/api/cbn/deletecenbandwidthpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCenBandwidthPackageWithCallback(request *DeleteCenBandwidthPackageRequest, callback func(response *DeleteCenBandwidthPackageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteCenBandwidthPackageResponse + var err error + defer close(result) + response, err = client.DeleteCenBandwidthPackage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteCenBandwidthPackageRequest is the request struct for api DeleteCenBandwidthPackage +type DeleteCenBandwidthPackageRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CenBandwidthPackageId string `position:"Query" name:"CenBandwidthPackageId"` +} + +// DeleteCenBandwidthPackageResponse is the response struct for api DeleteCenBandwidthPackage +type DeleteCenBandwidthPackageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteCenBandwidthPackageRequest creates a request to invoke DeleteCenBandwidthPackage API +func CreateDeleteCenBandwidthPackageRequest() (request *DeleteCenBandwidthPackageRequest) { + request = &DeleteCenBandwidthPackageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "DeleteCenBandwidthPackage", "cbn", "openAPI") + return +} + +// CreateDeleteCenBandwidthPackageResponse creates a response to parse from DeleteCenBandwidthPackage response +func CreateDeleteCenBandwidthPackageResponse() (response *DeleteCenBandwidthPackageResponse) { + response = &DeleteCenBandwidthPackageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_attached_child_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_attached_child_instances.go new file mode 100644 index 0000000..cb522c7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_attached_child_instances.go @@ -0,0 +1,113 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCenAttachedChildInstances invokes the cbn.DescribeCenAttachedChildInstances API synchronously +// api document: https://help.aliyun.com/api/cbn/describecenattachedchildinstances.html +func (client *Client) DescribeCenAttachedChildInstances(request *DescribeCenAttachedChildInstancesRequest) (response *DescribeCenAttachedChildInstancesResponse, err error) { + response = CreateDescribeCenAttachedChildInstancesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCenAttachedChildInstancesWithChan invokes the cbn.DescribeCenAttachedChildInstances API asynchronously +// api document: https://help.aliyun.com/api/cbn/describecenattachedchildinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCenAttachedChildInstancesWithChan(request *DescribeCenAttachedChildInstancesRequest) (<-chan *DescribeCenAttachedChildInstancesResponse, <-chan error) { + responseChan := make(chan *DescribeCenAttachedChildInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCenAttachedChildInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCenAttachedChildInstancesWithCallback invokes the cbn.DescribeCenAttachedChildInstances API asynchronously +// api document: https://help.aliyun.com/api/cbn/describecenattachedchildinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCenAttachedChildInstancesWithCallback(request *DescribeCenAttachedChildInstancesRequest, callback func(response *DescribeCenAttachedChildInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCenAttachedChildInstancesResponse + var err error + defer close(result) + response, err = client.DescribeCenAttachedChildInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCenAttachedChildInstancesRequest is the request struct for api DescribeCenAttachedChildInstances +type DescribeCenAttachedChildInstancesRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + CenId string `position:"Query" name:"CenId"` +} + +// DescribeCenAttachedChildInstancesResponse is the response struct for api DescribeCenAttachedChildInstances +type DescribeCenAttachedChildInstancesResponse 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"` + ChildInstances ChildInstances `json:"ChildInstances" xml:"ChildInstances"` +} + +// CreateDescribeCenAttachedChildInstancesRequest creates a request to invoke DescribeCenAttachedChildInstances API +func CreateDescribeCenAttachedChildInstancesRequest() (request *DescribeCenAttachedChildInstancesRequest) { + request = &DescribeCenAttachedChildInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "DescribeCenAttachedChildInstances", "cbn", "openAPI") + return +} + +// CreateDescribeCenAttachedChildInstancesResponse creates a response to parse from DescribeCenAttachedChildInstances response +func CreateDescribeCenAttachedChildInstancesResponse() (response *DescribeCenAttachedChildInstancesResponse) { + response = &DescribeCenAttachedChildInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_bandwidth_packages.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_bandwidth_packages.go new file mode 100644 index 0000000..e64f7e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_bandwidth_packages.go @@ -0,0 +1,120 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCenBandwidthPackages invokes the cbn.DescribeCenBandwidthPackages API synchronously +// api document: https://help.aliyun.com/api/cbn/describecenbandwidthpackages.html +func (client *Client) DescribeCenBandwidthPackages(request *DescribeCenBandwidthPackagesRequest) (response *DescribeCenBandwidthPackagesResponse, err error) { + response = CreateDescribeCenBandwidthPackagesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCenBandwidthPackagesWithChan invokes the cbn.DescribeCenBandwidthPackages API asynchronously +// api document: https://help.aliyun.com/api/cbn/describecenbandwidthpackages.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCenBandwidthPackagesWithChan(request *DescribeCenBandwidthPackagesRequest) (<-chan *DescribeCenBandwidthPackagesResponse, <-chan error) { + responseChan := make(chan *DescribeCenBandwidthPackagesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCenBandwidthPackages(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCenBandwidthPackagesWithCallback invokes the cbn.DescribeCenBandwidthPackages API asynchronously +// api document: https://help.aliyun.com/api/cbn/describecenbandwidthpackages.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCenBandwidthPackagesWithCallback(request *DescribeCenBandwidthPackagesRequest, callback func(response *DescribeCenBandwidthPackagesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCenBandwidthPackagesResponse + var err error + defer close(result) + response, err = client.DescribeCenBandwidthPackages(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCenBandwidthPackagesRequest is the request struct for api DescribeCenBandwidthPackages +type DescribeCenBandwidthPackagesRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Filter *[]DescribeCenBandwidthPackagesFilter `position:"Query" name:"Filter" type:"Repeated"` + IsOrKey requests.Boolean `position:"Query" name:"IsOrKey"` +} + +// DescribeCenBandwidthPackagesFilter is a repeated param struct in DescribeCenBandwidthPackagesRequest +type DescribeCenBandwidthPackagesFilter struct { + Key string `name:"Key"` + Value *[]string `name:"Value" type:"Repeated"` +} + +// DescribeCenBandwidthPackagesResponse is the response struct for api DescribeCenBandwidthPackages +type DescribeCenBandwidthPackagesResponse 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"` + CenBandwidthPackages CenBandwidthPackages `json:"CenBandwidthPackages" xml:"CenBandwidthPackages"` +} + +// CreateDescribeCenBandwidthPackagesRequest creates a request to invoke DescribeCenBandwidthPackages API +func CreateDescribeCenBandwidthPackagesRequest() (request *DescribeCenBandwidthPackagesRequest) { + request = &DescribeCenBandwidthPackagesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "DescribeCenBandwidthPackages", "cbn", "openAPI") + return +} + +// CreateDescribeCenBandwidthPackagesResponse creates a response to parse from DescribeCenBandwidthPackages response +func CreateDescribeCenBandwidthPackagesResponse() (response *DescribeCenBandwidthPackagesResponse) { + response = &DescribeCenBandwidthPackagesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_geographic_span_remaining_bandwidth.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_geographic_span_remaining_bandwidth.go new file mode 100644 index 0000000..810a778 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_geographic_span_remaining_bandwidth.go @@ -0,0 +1,112 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCenGeographicSpanRemainingBandwidth invokes the cbn.DescribeCenGeographicSpanRemainingBandwidth API synchronously +// api document: https://help.aliyun.com/api/cbn/describecengeographicspanremainingbandwidth.html +func (client *Client) DescribeCenGeographicSpanRemainingBandwidth(request *DescribeCenGeographicSpanRemainingBandwidthRequest) (response *DescribeCenGeographicSpanRemainingBandwidthResponse, err error) { + response = CreateDescribeCenGeographicSpanRemainingBandwidthResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCenGeographicSpanRemainingBandwidthWithChan invokes the cbn.DescribeCenGeographicSpanRemainingBandwidth API asynchronously +// api document: https://help.aliyun.com/api/cbn/describecengeographicspanremainingbandwidth.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCenGeographicSpanRemainingBandwidthWithChan(request *DescribeCenGeographicSpanRemainingBandwidthRequest) (<-chan *DescribeCenGeographicSpanRemainingBandwidthResponse, <-chan error) { + responseChan := make(chan *DescribeCenGeographicSpanRemainingBandwidthResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCenGeographicSpanRemainingBandwidth(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCenGeographicSpanRemainingBandwidthWithCallback invokes the cbn.DescribeCenGeographicSpanRemainingBandwidth API asynchronously +// api document: https://help.aliyun.com/api/cbn/describecengeographicspanremainingbandwidth.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCenGeographicSpanRemainingBandwidthWithCallback(request *DescribeCenGeographicSpanRemainingBandwidthRequest, callback func(response *DescribeCenGeographicSpanRemainingBandwidthResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCenGeographicSpanRemainingBandwidthResponse + var err error + defer close(result) + response, err = client.DescribeCenGeographicSpanRemainingBandwidth(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCenGeographicSpanRemainingBandwidthRequest is the request struct for api DescribeCenGeographicSpanRemainingBandwidth +type DescribeCenGeographicSpanRemainingBandwidthRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + CenId string `position:"Query" name:"CenId"` + GeographicRegionAId string `position:"Query" name:"GeographicRegionAId"` + GeographicRegionBId string `position:"Query" name:"GeographicRegionBId"` +} + +// DescribeCenGeographicSpanRemainingBandwidthResponse is the response struct for api DescribeCenGeographicSpanRemainingBandwidth +type DescribeCenGeographicSpanRemainingBandwidthResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RemainingBandwidth int `json:"RemainingBandwidth" xml:"RemainingBandwidth"` +} + +// CreateDescribeCenGeographicSpanRemainingBandwidthRequest creates a request to invoke DescribeCenGeographicSpanRemainingBandwidth API +func CreateDescribeCenGeographicSpanRemainingBandwidthRequest() (request *DescribeCenGeographicSpanRemainingBandwidthRequest) { + request = &DescribeCenGeographicSpanRemainingBandwidthRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "DescribeCenGeographicSpanRemainingBandwidth", "cbn", "openAPI") + return +} + +// CreateDescribeCenGeographicSpanRemainingBandwidthResponse creates a response to parse from DescribeCenGeographicSpanRemainingBandwidth response +func CreateDescribeCenGeographicSpanRemainingBandwidthResponse() (response *DescribeCenGeographicSpanRemainingBandwidthResponse) { + response = &DescribeCenGeographicSpanRemainingBandwidthResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_inter_region_bandwidth_limits.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_inter_region_bandwidth_limits.go new file mode 100644 index 0000000..e8ffa35 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_inter_region_bandwidth_limits.go @@ -0,0 +1,113 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCenInterRegionBandwidthLimits invokes the cbn.DescribeCenInterRegionBandwidthLimits API synchronously +// api document: https://help.aliyun.com/api/cbn/describeceninterregionbandwidthlimits.html +func (client *Client) DescribeCenInterRegionBandwidthLimits(request *DescribeCenInterRegionBandwidthLimitsRequest) (response *DescribeCenInterRegionBandwidthLimitsResponse, err error) { + response = CreateDescribeCenInterRegionBandwidthLimitsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCenInterRegionBandwidthLimitsWithChan invokes the cbn.DescribeCenInterRegionBandwidthLimits API asynchronously +// api document: https://help.aliyun.com/api/cbn/describeceninterregionbandwidthlimits.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCenInterRegionBandwidthLimitsWithChan(request *DescribeCenInterRegionBandwidthLimitsRequest) (<-chan *DescribeCenInterRegionBandwidthLimitsResponse, <-chan error) { + responseChan := make(chan *DescribeCenInterRegionBandwidthLimitsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCenInterRegionBandwidthLimits(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCenInterRegionBandwidthLimitsWithCallback invokes the cbn.DescribeCenInterRegionBandwidthLimits API asynchronously +// api document: https://help.aliyun.com/api/cbn/describeceninterregionbandwidthlimits.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCenInterRegionBandwidthLimitsWithCallback(request *DescribeCenInterRegionBandwidthLimitsRequest, callback func(response *DescribeCenInterRegionBandwidthLimitsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCenInterRegionBandwidthLimitsResponse + var err error + defer close(result) + response, err = client.DescribeCenInterRegionBandwidthLimits(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCenInterRegionBandwidthLimitsRequest is the request struct for api DescribeCenInterRegionBandwidthLimits +type DescribeCenInterRegionBandwidthLimitsRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + CenId string `position:"Query" name:"CenId"` +} + +// DescribeCenInterRegionBandwidthLimitsResponse is the response struct for api DescribeCenInterRegionBandwidthLimits +type DescribeCenInterRegionBandwidthLimitsResponse 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"` + CenInterRegionBandwidthLimits CenInterRegionBandwidthLimits `json:"CenInterRegionBandwidthLimits" xml:"CenInterRegionBandwidthLimits"` +} + +// CreateDescribeCenInterRegionBandwidthLimitsRequest creates a request to invoke DescribeCenInterRegionBandwidthLimits API +func CreateDescribeCenInterRegionBandwidthLimitsRequest() (request *DescribeCenInterRegionBandwidthLimitsRequest) { + request = &DescribeCenInterRegionBandwidthLimitsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "DescribeCenInterRegionBandwidthLimits", "cbn", "openAPI") + return +} + +// CreateDescribeCenInterRegionBandwidthLimitsResponse creates a response to parse from DescribeCenInterRegionBandwidthLimits response +func CreateDescribeCenInterRegionBandwidthLimitsResponse() (response *DescribeCenInterRegionBandwidthLimitsResponse) { + response = &DescribeCenInterRegionBandwidthLimitsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_region_domain_route_entries.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_region_domain_route_entries.go new file mode 100644 index 0000000..8cccf9c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_region_domain_route_entries.go @@ -0,0 +1,114 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCenRegionDomainRouteEntries invokes the cbn.DescribeCenRegionDomainRouteEntries API synchronously +// api document: https://help.aliyun.com/api/cbn/describecenregiondomainrouteentries.html +func (client *Client) DescribeCenRegionDomainRouteEntries(request *DescribeCenRegionDomainRouteEntriesRequest) (response *DescribeCenRegionDomainRouteEntriesResponse, err error) { + response = CreateDescribeCenRegionDomainRouteEntriesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCenRegionDomainRouteEntriesWithChan invokes the cbn.DescribeCenRegionDomainRouteEntries API asynchronously +// api document: https://help.aliyun.com/api/cbn/describecenregiondomainrouteentries.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCenRegionDomainRouteEntriesWithChan(request *DescribeCenRegionDomainRouteEntriesRequest) (<-chan *DescribeCenRegionDomainRouteEntriesResponse, <-chan error) { + responseChan := make(chan *DescribeCenRegionDomainRouteEntriesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCenRegionDomainRouteEntries(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCenRegionDomainRouteEntriesWithCallback invokes the cbn.DescribeCenRegionDomainRouteEntries API asynchronously +// api document: https://help.aliyun.com/api/cbn/describecenregiondomainrouteentries.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCenRegionDomainRouteEntriesWithCallback(request *DescribeCenRegionDomainRouteEntriesRequest, callback func(response *DescribeCenRegionDomainRouteEntriesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCenRegionDomainRouteEntriesResponse + var err error + defer close(result) + response, err = client.DescribeCenRegionDomainRouteEntries(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCenRegionDomainRouteEntriesRequest is the request struct for api DescribeCenRegionDomainRouteEntries +type DescribeCenRegionDomainRouteEntriesRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CenId string `position:"Query" name:"CenId"` + CenRegionId string `position:"Query" name:"CenRegionId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeCenRegionDomainRouteEntriesResponse is the response struct for api DescribeCenRegionDomainRouteEntries +type DescribeCenRegionDomainRouteEntriesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + CenRouteEntries CenRouteEntries `json:"CenRouteEntries" xml:"CenRouteEntries"` +} + +// CreateDescribeCenRegionDomainRouteEntriesRequest creates a request to invoke DescribeCenRegionDomainRouteEntries API +func CreateDescribeCenRegionDomainRouteEntriesRequest() (request *DescribeCenRegionDomainRouteEntriesRequest) { + request = &DescribeCenRegionDomainRouteEntriesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "DescribeCenRegionDomainRouteEntries", "cbn", "openAPI") + return +} + +// CreateDescribeCenRegionDomainRouteEntriesResponse creates a response to parse from DescribeCenRegionDomainRouteEntries response +func CreateDescribeCenRegionDomainRouteEntriesResponse() (response *DescribeCenRegionDomainRouteEntriesResponse) { + response = &DescribeCenRegionDomainRouteEntriesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_vbr_health_check.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_vbr_health_check.go new file mode 100644 index 0000000..6c5277d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cen_vbr_health_check.go @@ -0,0 +1,116 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCenVbrHealthCheck invokes the cbn.DescribeCenVbrHealthCheck API synchronously +// api document: https://help.aliyun.com/api/cbn/describecenvbrhealthcheck.html +func (client *Client) DescribeCenVbrHealthCheck(request *DescribeCenVbrHealthCheckRequest) (response *DescribeCenVbrHealthCheckResponse, err error) { + response = CreateDescribeCenVbrHealthCheckResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCenVbrHealthCheckWithChan invokes the cbn.DescribeCenVbrHealthCheck API asynchronously +// api document: https://help.aliyun.com/api/cbn/describecenvbrhealthcheck.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCenVbrHealthCheckWithChan(request *DescribeCenVbrHealthCheckRequest) (<-chan *DescribeCenVbrHealthCheckResponse, <-chan error) { + responseChan := make(chan *DescribeCenVbrHealthCheckResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCenVbrHealthCheck(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCenVbrHealthCheckWithCallback invokes the cbn.DescribeCenVbrHealthCheck API asynchronously +// api document: https://help.aliyun.com/api/cbn/describecenvbrhealthcheck.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCenVbrHealthCheckWithCallback(request *DescribeCenVbrHealthCheckRequest, callback func(response *DescribeCenVbrHealthCheckResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCenVbrHealthCheckResponse + var err error + defer close(result) + response, err = client.DescribeCenVbrHealthCheck(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCenVbrHealthCheckRequest is the request struct for api DescribeCenVbrHealthCheck +type DescribeCenVbrHealthCheckRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CenId string `position:"Query" name:"CenId"` + VbrInstanceRegionId string `position:"Query" name:"VbrInstanceRegionId"` + VbrInstanceId string `position:"Query" name:"VbrInstanceId"` + VbrInstanceOwnerId requests.Integer `position:"Query" name:"VbrInstanceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeCenVbrHealthCheckResponse is the response struct for api DescribeCenVbrHealthCheck +type DescribeCenVbrHealthCheckResponse 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"` + VbrHealthChecks VbrHealthChecks `json:"VbrHealthChecks" xml:"VbrHealthChecks"` +} + +// CreateDescribeCenVbrHealthCheckRequest creates a request to invoke DescribeCenVbrHealthCheck API +func CreateDescribeCenVbrHealthCheckRequest() (request *DescribeCenVbrHealthCheckRequest) { + request = &DescribeCenVbrHealthCheckRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "DescribeCenVbrHealthCheck", "cbn", "openAPI") + return +} + +// CreateDescribeCenVbrHealthCheckResponse creates a response to parse from DescribeCenVbrHealthCheck response +func CreateDescribeCenVbrHealthCheckResponse() (response *DescribeCenVbrHealthCheckResponse) { + response = &DescribeCenVbrHealthCheckResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cens.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cens.go new file mode 100644 index 0000000..61dd8d9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_cens.go @@ -0,0 +1,119 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCens invokes the cbn.DescribeCens API synchronously +// api document: https://help.aliyun.com/api/cbn/describecens.html +func (client *Client) DescribeCens(request *DescribeCensRequest) (response *DescribeCensResponse, err error) { + response = CreateDescribeCensResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCensWithChan invokes the cbn.DescribeCens API asynchronously +// api document: https://help.aliyun.com/api/cbn/describecens.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCensWithChan(request *DescribeCensRequest) (<-chan *DescribeCensResponse, <-chan error) { + responseChan := make(chan *DescribeCensResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCens(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCensWithCallback invokes the cbn.DescribeCens API asynchronously +// api document: https://help.aliyun.com/api/cbn/describecens.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCensWithCallback(request *DescribeCensRequest, callback func(response *DescribeCensResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCensResponse + var err error + defer close(result) + response, err = client.DescribeCens(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCensRequest is the request struct for api DescribeCens +type DescribeCensRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Filter *[]DescribeCensFilter `position:"Query" name:"Filter" type:"Repeated"` +} + +// DescribeCensFilter is a repeated param struct in DescribeCensRequest +type DescribeCensFilter struct { + Key string `name:"Key"` + Value *[]string `name:"Value" type:"Repeated"` +} + +// DescribeCensResponse is the response struct for api DescribeCens +type DescribeCensResponse 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"` + Cens Cens `json:"Cens" xml:"Cens"` +} + +// CreateDescribeCensRequest creates a request to invoke DescribeCens API +func CreateDescribeCensRequest() (request *DescribeCensRequest) { + request = &DescribeCensRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "DescribeCens", "cbn", "openAPI") + return +} + +// CreateDescribeCensResponse creates a response to parse from DescribeCens response +func CreateDescribeCensResponse() (response *DescribeCensResponse) { + response = &DescribeCensResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_geographic_region_membership.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_geographic_region_membership.go new file mode 100644 index 0000000..7dce9f3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_geographic_region_membership.go @@ -0,0 +1,113 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeGeographicRegionMembership invokes the cbn.DescribeGeographicRegionMembership API synchronously +// api document: https://help.aliyun.com/api/cbn/describegeographicregionmembership.html +func (client *Client) DescribeGeographicRegionMembership(request *DescribeGeographicRegionMembershipRequest) (response *DescribeGeographicRegionMembershipResponse, err error) { + response = CreateDescribeGeographicRegionMembershipResponse() + err = client.DoAction(request, response) + return +} + +// DescribeGeographicRegionMembershipWithChan invokes the cbn.DescribeGeographicRegionMembership API asynchronously +// api document: https://help.aliyun.com/api/cbn/describegeographicregionmembership.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeGeographicRegionMembershipWithChan(request *DescribeGeographicRegionMembershipRequest) (<-chan *DescribeGeographicRegionMembershipResponse, <-chan error) { + responseChan := make(chan *DescribeGeographicRegionMembershipResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeGeographicRegionMembership(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeGeographicRegionMembershipWithCallback invokes the cbn.DescribeGeographicRegionMembership API asynchronously +// api document: https://help.aliyun.com/api/cbn/describegeographicregionmembership.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeGeographicRegionMembershipWithCallback(request *DescribeGeographicRegionMembershipRequest, callback func(response *DescribeGeographicRegionMembershipResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeGeographicRegionMembershipResponse + var err error + defer close(result) + response, err = client.DescribeGeographicRegionMembership(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeGeographicRegionMembershipRequest is the request struct for api DescribeGeographicRegionMembership +type DescribeGeographicRegionMembershipRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + GeographicRegionId string `position:"Query" name:"GeographicRegionId"` +} + +// DescribeGeographicRegionMembershipResponse is the response struct for api DescribeGeographicRegionMembership +type DescribeGeographicRegionMembershipResponse 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"` + RegionIds RegionIds `json:"RegionIds" xml:"RegionIds"` +} + +// CreateDescribeGeographicRegionMembershipRequest creates a request to invoke DescribeGeographicRegionMembership API +func CreateDescribeGeographicRegionMembershipRequest() (request *DescribeGeographicRegionMembershipRequest) { + request = &DescribeGeographicRegionMembershipRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "DescribeGeographicRegionMembership", "cbn", "openAPI") + return +} + +// CreateDescribeGeographicRegionMembershipResponse creates a response to parse from DescribeGeographicRegionMembership response +func CreateDescribeGeographicRegionMembershipResponse() (response *DescribeGeographicRegionMembershipResponse) { + response = &DescribeGeographicRegionMembershipResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_route_conflict.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_route_conflict.go new file mode 100644 index 0000000..2bf4784 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/describe_route_conflict.go @@ -0,0 +1,117 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRouteConflict invokes the cbn.DescribeRouteConflict API synchronously +// api document: https://help.aliyun.com/api/cbn/describerouteconflict.html +func (client *Client) DescribeRouteConflict(request *DescribeRouteConflictRequest) (response *DescribeRouteConflictResponse, err error) { + response = CreateDescribeRouteConflictResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRouteConflictWithChan invokes the cbn.DescribeRouteConflict API asynchronously +// api document: https://help.aliyun.com/api/cbn/describerouteconflict.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRouteConflictWithChan(request *DescribeRouteConflictRequest) (<-chan *DescribeRouteConflictResponse, <-chan error) { + responseChan := make(chan *DescribeRouteConflictResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRouteConflict(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRouteConflictWithCallback invokes the cbn.DescribeRouteConflict API asynchronously +// api document: https://help.aliyun.com/api/cbn/describerouteconflict.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRouteConflictWithCallback(request *DescribeRouteConflictRequest, callback func(response *DescribeRouteConflictResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRouteConflictResponse + var err error + defer close(result) + response, err = client.DescribeRouteConflict(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRouteConflictRequest is the request struct for api DescribeRouteConflict +type DescribeRouteConflictRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ChildInstanceId string `position:"Query" name:"ChildInstanceId"` + ChildInstanceType string `position:"Query" name:"ChildInstanceType"` + ChildInstanceRegionId string `position:"Query" name:"ChildInstanceRegionId"` + ChildInstanceRouteTableId string `position:"Query" name:"ChildInstanceRouteTableId"` + DestinationCidrBlock string `position:"Query" name:"DestinationCidrBlock"` +} + +// DescribeRouteConflictResponse is the response struct for api DescribeRouteConflict +type DescribeRouteConflictResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + RouteConflicts RouteConflicts `json:"RouteConflicts" xml:"RouteConflicts"` +} + +// CreateDescribeRouteConflictRequest creates a request to invoke DescribeRouteConflict API +func CreateDescribeRouteConflictRequest() (request *DescribeRouteConflictRequest) { + request = &DescribeRouteConflictRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "DescribeRouteConflict", "cbn", "openAPI") + return +} + +// CreateDescribeRouteConflictResponse creates a response to parse from DescribeRouteConflict response +func CreateDescribeRouteConflictResponse() (response *DescribeRouteConflictResponse) { + response = &DescribeRouteConflictResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/detach_cen_child_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/detach_cen_child_instance.go new file mode 100644 index 0000000..9c3234e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/detach_cen_child_instance.go @@ -0,0 +1,112 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DetachCenChildInstance invokes the cbn.DetachCenChildInstance API synchronously +// api document: https://help.aliyun.com/api/cbn/detachcenchildinstance.html +func (client *Client) DetachCenChildInstance(request *DetachCenChildInstanceRequest) (response *DetachCenChildInstanceResponse, err error) { + response = CreateDetachCenChildInstanceResponse() + err = client.DoAction(request, response) + return +} + +// DetachCenChildInstanceWithChan invokes the cbn.DetachCenChildInstance API asynchronously +// api document: https://help.aliyun.com/api/cbn/detachcenchildinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachCenChildInstanceWithChan(request *DetachCenChildInstanceRequest) (<-chan *DetachCenChildInstanceResponse, <-chan error) { + responseChan := make(chan *DetachCenChildInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DetachCenChildInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DetachCenChildInstanceWithCallback invokes the cbn.DetachCenChildInstance API asynchronously +// api document: https://help.aliyun.com/api/cbn/detachcenchildinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachCenChildInstanceWithCallback(request *DetachCenChildInstanceRequest, callback func(response *DetachCenChildInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DetachCenChildInstanceResponse + var err error + defer close(result) + response, err = client.DetachCenChildInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DetachCenChildInstanceRequest is the request struct for api DetachCenChildInstance +type DetachCenChildInstanceRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CenId string `position:"Query" name:"CenId"` + ChildInstanceId string `position:"Query" name:"ChildInstanceId"` + ChildInstanceType string `position:"Query" name:"ChildInstanceType"` + ChildInstanceRegionId string `position:"Query" name:"ChildInstanceRegionId"` + ChildInstanceOwnerId requests.Integer `position:"Query" name:"ChildInstanceOwnerId"` + CenOwnerId requests.Integer `position:"Query" name:"CenOwnerId"` +} + +// DetachCenChildInstanceResponse is the response struct for api DetachCenChildInstance +type DetachCenChildInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDetachCenChildInstanceRequest creates a request to invoke DetachCenChildInstance API +func CreateDetachCenChildInstanceRequest() (request *DetachCenChildInstanceRequest) { + request = &DetachCenChildInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "DetachCenChildInstance", "cbn", "openAPI") + return +} + +// CreateDetachCenChildInstanceResponse creates a response to parse from DetachCenChildInstance response +func CreateDetachCenChildInstanceResponse() (response *DetachCenChildInstanceResponse) { + response = &DetachCenChildInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/disable_cen_vbr_health_check.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/disable_cen_vbr_health_check.go new file mode 100644 index 0000000..988a4b7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/disable_cen_vbr_health_check.go @@ -0,0 +1,110 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DisableCenVbrHealthCheck invokes the cbn.DisableCenVbrHealthCheck API synchronously +// api document: https://help.aliyun.com/api/cbn/disablecenvbrhealthcheck.html +func (client *Client) DisableCenVbrHealthCheck(request *DisableCenVbrHealthCheckRequest) (response *DisableCenVbrHealthCheckResponse, err error) { + response = CreateDisableCenVbrHealthCheckResponse() + err = client.DoAction(request, response) + return +} + +// DisableCenVbrHealthCheckWithChan invokes the cbn.DisableCenVbrHealthCheck API asynchronously +// api document: https://help.aliyun.com/api/cbn/disablecenvbrhealthcheck.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DisableCenVbrHealthCheckWithChan(request *DisableCenVbrHealthCheckRequest) (<-chan *DisableCenVbrHealthCheckResponse, <-chan error) { + responseChan := make(chan *DisableCenVbrHealthCheckResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DisableCenVbrHealthCheck(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DisableCenVbrHealthCheckWithCallback invokes the cbn.DisableCenVbrHealthCheck API asynchronously +// api document: https://help.aliyun.com/api/cbn/disablecenvbrhealthcheck.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DisableCenVbrHealthCheckWithCallback(request *DisableCenVbrHealthCheckRequest, callback func(response *DisableCenVbrHealthCheckResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DisableCenVbrHealthCheckResponse + var err error + defer close(result) + response, err = client.DisableCenVbrHealthCheck(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DisableCenVbrHealthCheckRequest is the request struct for api DisableCenVbrHealthCheck +type DisableCenVbrHealthCheckRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CenId string `position:"Query" name:"CenId"` + VbrInstanceRegionId string `position:"Query" name:"VbrInstanceRegionId"` + VbrInstanceId string `position:"Query" name:"VbrInstanceId"` + VbrInstanceOwnerId requests.Integer `position:"Query" name:"VbrInstanceOwnerId"` +} + +// DisableCenVbrHealthCheckResponse is the response struct for api DisableCenVbrHealthCheck +type DisableCenVbrHealthCheckResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDisableCenVbrHealthCheckRequest creates a request to invoke DisableCenVbrHealthCheck API +func CreateDisableCenVbrHealthCheckRequest() (request *DisableCenVbrHealthCheckRequest) { + request = &DisableCenVbrHealthCheckRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "DisableCenVbrHealthCheck", "cbn", "openAPI") + return +} + +// CreateDisableCenVbrHealthCheckResponse creates a response to parse from DisableCenVbrHealthCheck response +func CreateDisableCenVbrHealthCheckResponse() (response *DisableCenVbrHealthCheckResponse) { + response = &DisableCenVbrHealthCheckResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/enable_cen_vbr_health_check.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/enable_cen_vbr_health_check.go new file mode 100644 index 0000000..b349909 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/enable_cen_vbr_health_check.go @@ -0,0 +1,112 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EnableCenVbrHealthCheck invokes the cbn.EnableCenVbrHealthCheck API synchronously +// api document: https://help.aliyun.com/api/cbn/enablecenvbrhealthcheck.html +func (client *Client) EnableCenVbrHealthCheck(request *EnableCenVbrHealthCheckRequest) (response *EnableCenVbrHealthCheckResponse, err error) { + response = CreateEnableCenVbrHealthCheckResponse() + err = client.DoAction(request, response) + return +} + +// EnableCenVbrHealthCheckWithChan invokes the cbn.EnableCenVbrHealthCheck API asynchronously +// api document: https://help.aliyun.com/api/cbn/enablecenvbrhealthcheck.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnableCenVbrHealthCheckWithChan(request *EnableCenVbrHealthCheckRequest) (<-chan *EnableCenVbrHealthCheckResponse, <-chan error) { + responseChan := make(chan *EnableCenVbrHealthCheckResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EnableCenVbrHealthCheck(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EnableCenVbrHealthCheckWithCallback invokes the cbn.EnableCenVbrHealthCheck API asynchronously +// api document: https://help.aliyun.com/api/cbn/enablecenvbrhealthcheck.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnableCenVbrHealthCheckWithCallback(request *EnableCenVbrHealthCheckRequest, callback func(response *EnableCenVbrHealthCheckResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EnableCenVbrHealthCheckResponse + var err error + defer close(result) + response, err = client.EnableCenVbrHealthCheck(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EnableCenVbrHealthCheckRequest is the request struct for api EnableCenVbrHealthCheck +type EnableCenVbrHealthCheckRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CenId string `position:"Query" name:"CenId"` + VbrInstanceRegionId string `position:"Query" name:"VbrInstanceRegionId"` + VbrInstanceId string `position:"Query" name:"VbrInstanceId"` + HealthCheckSourceIp string `position:"Query" name:"HealthCheckSourceIp"` + HealthCheckTargetIp string `position:"Query" name:"HealthCheckTargetIp"` + VbrInstanceOwnerId requests.Integer `position:"Query" name:"VbrInstanceOwnerId"` +} + +// EnableCenVbrHealthCheckResponse is the response struct for api EnableCenVbrHealthCheck +type EnableCenVbrHealthCheckResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateEnableCenVbrHealthCheckRequest creates a request to invoke EnableCenVbrHealthCheck API +func CreateEnableCenVbrHealthCheckRequest() (request *EnableCenVbrHealthCheckRequest) { + request = &EnableCenVbrHealthCheckRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "EnableCenVbrHealthCheck", "cbn", "openAPI") + return +} + +// CreateEnableCenVbrHealthCheckResponse creates a response to parse from EnableCenVbrHealthCheck response +func CreateEnableCenVbrHealthCheckResponse() (response *EnableCenVbrHealthCheckResponse) { + response = &EnableCenVbrHealthCheckResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/modify_cen_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/modify_cen_attribute.go new file mode 100644 index 0000000..b90e083 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/modify_cen_attribute.go @@ -0,0 +1,109 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyCenAttribute invokes the cbn.ModifyCenAttribute API synchronously +// api document: https://help.aliyun.com/api/cbn/modifycenattribute.html +func (client *Client) ModifyCenAttribute(request *ModifyCenAttributeRequest) (response *ModifyCenAttributeResponse, err error) { + response = CreateModifyCenAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyCenAttributeWithChan invokes the cbn.ModifyCenAttribute API asynchronously +// api document: https://help.aliyun.com/api/cbn/modifycenattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCenAttributeWithChan(request *ModifyCenAttributeRequest) (<-chan *ModifyCenAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyCenAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyCenAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyCenAttributeWithCallback invokes the cbn.ModifyCenAttribute API asynchronously +// api document: https://help.aliyun.com/api/cbn/modifycenattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCenAttributeWithCallback(request *ModifyCenAttributeRequest, callback func(response *ModifyCenAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyCenAttributeResponse + var err error + defer close(result) + response, err = client.ModifyCenAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyCenAttributeRequest is the request struct for api ModifyCenAttribute +type ModifyCenAttributeRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CenId string `position:"Query" name:"CenId"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` +} + +// ModifyCenAttributeResponse is the response struct for api ModifyCenAttribute +type ModifyCenAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyCenAttributeRequest creates a request to invoke ModifyCenAttribute API +func CreateModifyCenAttributeRequest() (request *ModifyCenAttributeRequest) { + request = &ModifyCenAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "ModifyCenAttribute", "cbn", "openAPI") + return +} + +// CreateModifyCenAttributeResponse creates a response to parse from ModifyCenAttribute response +func CreateModifyCenAttributeResponse() (response *ModifyCenAttributeResponse) { + response = &ModifyCenAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/modify_cen_bandwidth_package_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/modify_cen_bandwidth_package_attribute.go new file mode 100644 index 0000000..2af0ddc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/modify_cen_bandwidth_package_attribute.go @@ -0,0 +1,109 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyCenBandwidthPackageAttribute invokes the cbn.ModifyCenBandwidthPackageAttribute API synchronously +// api document: https://help.aliyun.com/api/cbn/modifycenbandwidthpackageattribute.html +func (client *Client) ModifyCenBandwidthPackageAttribute(request *ModifyCenBandwidthPackageAttributeRequest) (response *ModifyCenBandwidthPackageAttributeResponse, err error) { + response = CreateModifyCenBandwidthPackageAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyCenBandwidthPackageAttributeWithChan invokes the cbn.ModifyCenBandwidthPackageAttribute API asynchronously +// api document: https://help.aliyun.com/api/cbn/modifycenbandwidthpackageattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCenBandwidthPackageAttributeWithChan(request *ModifyCenBandwidthPackageAttributeRequest) (<-chan *ModifyCenBandwidthPackageAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyCenBandwidthPackageAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyCenBandwidthPackageAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyCenBandwidthPackageAttributeWithCallback invokes the cbn.ModifyCenBandwidthPackageAttribute API asynchronously +// api document: https://help.aliyun.com/api/cbn/modifycenbandwidthpackageattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCenBandwidthPackageAttributeWithCallback(request *ModifyCenBandwidthPackageAttributeRequest, callback func(response *ModifyCenBandwidthPackageAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyCenBandwidthPackageAttributeResponse + var err error + defer close(result) + response, err = client.ModifyCenBandwidthPackageAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyCenBandwidthPackageAttributeRequest is the request struct for api ModifyCenBandwidthPackageAttribute +type ModifyCenBandwidthPackageAttributeRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` + CenBandwidthPackageId string `position:"Query" name:"CenBandwidthPackageId"` +} + +// ModifyCenBandwidthPackageAttributeResponse is the response struct for api ModifyCenBandwidthPackageAttribute +type ModifyCenBandwidthPackageAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyCenBandwidthPackageAttributeRequest creates a request to invoke ModifyCenBandwidthPackageAttribute API +func CreateModifyCenBandwidthPackageAttributeRequest() (request *ModifyCenBandwidthPackageAttributeRequest) { + request = &ModifyCenBandwidthPackageAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "ModifyCenBandwidthPackageAttribute", "cbn", "openAPI") + return +} + +// CreateModifyCenBandwidthPackageAttributeResponse creates a response to parse from ModifyCenBandwidthPackageAttribute response +func CreateModifyCenBandwidthPackageAttributeResponse() (response *ModifyCenBandwidthPackageAttributeResponse) { + response = &ModifyCenBandwidthPackageAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/modify_cen_bandwidth_package_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/modify_cen_bandwidth_package_spec.go new file mode 100644 index 0000000..792542d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/modify_cen_bandwidth_package_spec.go @@ -0,0 +1,108 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyCenBandwidthPackageSpec invokes the cbn.ModifyCenBandwidthPackageSpec API synchronously +// api document: https://help.aliyun.com/api/cbn/modifycenbandwidthpackagespec.html +func (client *Client) ModifyCenBandwidthPackageSpec(request *ModifyCenBandwidthPackageSpecRequest) (response *ModifyCenBandwidthPackageSpecResponse, err error) { + response = CreateModifyCenBandwidthPackageSpecResponse() + err = client.DoAction(request, response) + return +} + +// ModifyCenBandwidthPackageSpecWithChan invokes the cbn.ModifyCenBandwidthPackageSpec API asynchronously +// api document: https://help.aliyun.com/api/cbn/modifycenbandwidthpackagespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCenBandwidthPackageSpecWithChan(request *ModifyCenBandwidthPackageSpecRequest) (<-chan *ModifyCenBandwidthPackageSpecResponse, <-chan error) { + responseChan := make(chan *ModifyCenBandwidthPackageSpecResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyCenBandwidthPackageSpec(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyCenBandwidthPackageSpecWithCallback invokes the cbn.ModifyCenBandwidthPackageSpec API asynchronously +// api document: https://help.aliyun.com/api/cbn/modifycenbandwidthpackagespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCenBandwidthPackageSpecWithCallback(request *ModifyCenBandwidthPackageSpecRequest, callback func(response *ModifyCenBandwidthPackageSpecResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyCenBandwidthPackageSpecResponse + var err error + defer close(result) + response, err = client.ModifyCenBandwidthPackageSpec(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyCenBandwidthPackageSpecRequest is the request struct for api ModifyCenBandwidthPackageSpec +type ModifyCenBandwidthPackageSpecRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CenBandwidthPackageId string `position:"Query" name:"CenBandwidthPackageId"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` +} + +// ModifyCenBandwidthPackageSpecResponse is the response struct for api ModifyCenBandwidthPackageSpec +type ModifyCenBandwidthPackageSpecResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyCenBandwidthPackageSpecRequest creates a request to invoke ModifyCenBandwidthPackageSpec API +func CreateModifyCenBandwidthPackageSpecRequest() (request *ModifyCenBandwidthPackageSpecRequest) { + request = &ModifyCenBandwidthPackageSpecRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "ModifyCenBandwidthPackageSpec", "cbn", "openAPI") + return +} + +// CreateModifyCenBandwidthPackageSpecResponse creates a response to parse from ModifyCenBandwidthPackageSpec response +func CreateModifyCenBandwidthPackageSpecResponse() (response *ModifyCenBandwidthPackageSpecResponse) { + response = &ModifyCenBandwidthPackageSpecResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/set_cen_inter_region_bandwidth_limit.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/set_cen_inter_region_bandwidth_limit.go new file mode 100644 index 0000000..8dec018 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/set_cen_inter_region_bandwidth_limit.go @@ -0,0 +1,110 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetCenInterRegionBandwidthLimit invokes the cbn.SetCenInterRegionBandwidthLimit API synchronously +// api document: https://help.aliyun.com/api/cbn/setceninterregionbandwidthlimit.html +func (client *Client) SetCenInterRegionBandwidthLimit(request *SetCenInterRegionBandwidthLimitRequest) (response *SetCenInterRegionBandwidthLimitResponse, err error) { + response = CreateSetCenInterRegionBandwidthLimitResponse() + err = client.DoAction(request, response) + return +} + +// SetCenInterRegionBandwidthLimitWithChan invokes the cbn.SetCenInterRegionBandwidthLimit API asynchronously +// api document: https://help.aliyun.com/api/cbn/setceninterregionbandwidthlimit.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetCenInterRegionBandwidthLimitWithChan(request *SetCenInterRegionBandwidthLimitRequest) (<-chan *SetCenInterRegionBandwidthLimitResponse, <-chan error) { + responseChan := make(chan *SetCenInterRegionBandwidthLimitResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetCenInterRegionBandwidthLimit(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetCenInterRegionBandwidthLimitWithCallback invokes the cbn.SetCenInterRegionBandwidthLimit API asynchronously +// api document: https://help.aliyun.com/api/cbn/setceninterregionbandwidthlimit.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetCenInterRegionBandwidthLimitWithCallback(request *SetCenInterRegionBandwidthLimitRequest, callback func(response *SetCenInterRegionBandwidthLimitResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetCenInterRegionBandwidthLimitResponse + var err error + defer close(result) + response, err = client.SetCenInterRegionBandwidthLimit(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetCenInterRegionBandwidthLimitRequest is the request struct for api SetCenInterRegionBandwidthLimit +type SetCenInterRegionBandwidthLimitRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CenId string `position:"Query" name:"CenId"` + LocalRegionId string `position:"Query" name:"LocalRegionId"` + OppositeRegionId string `position:"Query" name:"OppositeRegionId"` + BandwidthLimit requests.Integer `position:"Query" name:"BandwidthLimit"` +} + +// SetCenInterRegionBandwidthLimitResponse is the response struct for api SetCenInterRegionBandwidthLimit +type SetCenInterRegionBandwidthLimitResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetCenInterRegionBandwidthLimitRequest creates a request to invoke SetCenInterRegionBandwidthLimit API +func CreateSetCenInterRegionBandwidthLimitRequest() (request *SetCenInterRegionBandwidthLimitRequest) { + request = &SetCenInterRegionBandwidthLimitRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "SetCenInterRegionBandwidthLimit", "cbn", "openAPI") + return +} + +// CreateSetCenInterRegionBandwidthLimitResponse creates a response to parse from SetCenInterRegionBandwidthLimit response +func CreateSetCenInterRegionBandwidthLimitResponse() (response *SetCenInterRegionBandwidthLimitResponse) { + response = &SetCenInterRegionBandwidthLimitResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen.go new file mode 100644 index 0000000..7e7468f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen.go @@ -0,0 +1,26 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Cen is a nested struct in cbn response +type Cen struct { + CenId string `json:"CenId" xml:"CenId"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + Status string `json:"Status" xml:"Status"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + CenBandwidthPackageIds CenBandwidthPackageIds `json:"CenBandwidthPackageIds" xml:"CenBandwidthPackageIds"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_bandwidth_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_bandwidth_package.go new file mode 100644 index 0000000..5774974 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_bandwidth_package.go @@ -0,0 +1,32 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CenBandwidthPackage is a nested struct in cbn response +type CenBandwidthPackage struct { + CenBandwidthPackageId string `json:"CenBandwidthPackageId" xml:"CenBandwidthPackageId"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + BandwidthPackageChargeType string `json:"BandwidthPackageChargeType" xml:"BandwidthPackageChargeType"` + GeographicRegionAId string `json:"GeographicRegionAId" xml:"GeographicRegionAId"` + GeographicRegionBId string `json:"GeographicRegionBId" xml:"GeographicRegionBId"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` + Status string `json:"Status" xml:"Status"` + CenIds CenIds `json:"CenIds" xml:"CenIds"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_bandwidth_package_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_bandwidth_package_ids.go new file mode 100644 index 0000000..d997d2c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_bandwidth_package_ids.go @@ -0,0 +1,21 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CenBandwidthPackageIds is a nested struct in cbn response +type CenBandwidthPackageIds struct { + CenBandwidthPackageId []string `json:"CenBandwidthPackageId" xml:"CenBandwidthPackageId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_bandwidth_packages.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_bandwidth_packages.go new file mode 100644 index 0000000..c5fa229 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_bandwidth_packages.go @@ -0,0 +1,21 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CenBandwidthPackages is a nested struct in cbn response +type CenBandwidthPackages struct { + CenBandwidthPackage []CenBandwidthPackage `json:"CenBandwidthPackage" xml:"CenBandwidthPackage"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_ids.go new file mode 100644 index 0000000..674cab2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_ids.go @@ -0,0 +1,21 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CenIds is a nested struct in cbn response +type CenIds struct { + CenId []string `json:"CenId" xml:"CenId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_inter_region_bandwidth_limit.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_inter_region_bandwidth_limit.go new file mode 100644 index 0000000..fcb5aa4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_inter_region_bandwidth_limit.go @@ -0,0 +1,25 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CenInterRegionBandwidthLimit is a nested struct in cbn response +type CenInterRegionBandwidthLimit struct { + CenId string `json:"CenId" xml:"CenId"` + LocalRegionId string `json:"LocalRegionId" xml:"LocalRegionId"` + OppositeRegionId string `json:"OppositeRegionId" xml:"OppositeRegionId"` + BandwidthLimit int `json:"BandwidthLimit" xml:"BandwidthLimit"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_inter_region_bandwidth_limits.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_inter_region_bandwidth_limits.go new file mode 100644 index 0000000..551665f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_inter_region_bandwidth_limits.go @@ -0,0 +1,21 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CenInterRegionBandwidthLimits is a nested struct in cbn response +type CenInterRegionBandwidthLimits struct { + CenInterRegionBandwidthLimit []CenInterRegionBandwidthLimit `json:"CenInterRegionBandwidthLimit" xml:"CenInterRegionBandwidthLimit"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_route_entries.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_route_entries.go new file mode 100644 index 0000000..67a76de --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_route_entries.go @@ -0,0 +1,21 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CenRouteEntries is a nested struct in cbn response +type CenRouteEntries struct { + CenRouteEntry []CenRouteEntry `json:"CenRouteEntry" xml:"CenRouteEntry"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_route_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_route_entry.go new file mode 100644 index 0000000..824dfaf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cen_route_entry.go @@ -0,0 +1,25 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CenRouteEntry is a nested struct in cbn response +type CenRouteEntry struct { + DestinationCidrBlock string `json:"DestinationCidrBlock" xml:"DestinationCidrBlock"` + Type string `json:"Type" xml:"Type"` + NextHopInstanceId string `json:"NextHopInstanceId" xml:"NextHopInstanceId"` + NextHopType string `json:"NextHopType" xml:"NextHopType"` + NextHopRegionId string `json:"NextHopRegionId" xml:"NextHopRegionId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cens.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cens.go new file mode 100644 index 0000000..096fb69 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_cens.go @@ -0,0 +1,21 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Cens is a nested struct in cbn response +type Cens struct { + Cen []Cen `json:"Cen" xml:"Cen"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_child_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_child_instance.go new file mode 100644 index 0000000..68d34fd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_child_instance.go @@ -0,0 +1,26 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ChildInstance is a nested struct in cbn response +type ChildInstance struct { + CenId string `json:"CenId" xml:"CenId"` + ChildInstanceId string `json:"ChildInstanceId" xml:"ChildInstanceId"` + ChildInstanceType string `json:"ChildInstanceType" xml:"ChildInstanceType"` + ChildInstanceRegionId string `json:"ChildInstanceRegionId" xml:"ChildInstanceRegionId"` + ChildInstanceOwnerId int `json:"ChildInstanceOwnerId" xml:"ChildInstanceOwnerId"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_child_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_child_instances.go new file mode 100644 index 0000000..a53c75a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_child_instances.go @@ -0,0 +1,21 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ChildInstances is a nested struct in cbn response +type ChildInstances struct { + ChildInstance []ChildInstance `json:"ChildInstance" xml:"ChildInstance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_region_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_region_id.go new file mode 100644 index 0000000..0622197 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_region_id.go @@ -0,0 +1,21 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RegionId is a nested struct in cbn response +type RegionId struct { + RegionId string `json:"RegionId" xml:"RegionId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_region_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_region_ids.go new file mode 100644 index 0000000..b60cc45 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_region_ids.go @@ -0,0 +1,21 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RegionIds is a nested struct in cbn response +type RegionIds struct { + RegionId []RegionId `json:"RegionId" xml:"RegionId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_route_conflict.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_route_conflict.go new file mode 100644 index 0000000..ac278b2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_route_conflict.go @@ -0,0 +1,25 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouteConflict is a nested struct in cbn response +type RouteConflict struct { + DestinationCidrBlock string `json:"DestinationCidrBlock" xml:"DestinationCidrBlock"` + RegionId string `json:"RegionId" xml:"RegionId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_route_conflicts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_route_conflicts.go new file mode 100644 index 0000000..7179fbe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_route_conflicts.go @@ -0,0 +1,21 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouteConflicts is a nested struct in cbn response +type RouteConflicts struct { + RouteConflict []RouteConflict `json:"RouteConflict" xml:"RouteConflict"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_vbr_health_check.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_vbr_health_check.go new file mode 100644 index 0000000..d58bac8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_vbr_health_check.go @@ -0,0 +1,27 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VbrHealthCheck is a nested struct in cbn response +type VbrHealthCheck struct { + CenId string `json:"CenId" xml:"CenId"` + VbrInstanceId string `json:"VbrInstanceId" xml:"VbrInstanceId"` + LinkStatus string `json:"LinkStatus" xml:"LinkStatus"` + PacketLoss int `json:"PacketLoss" xml:"PacketLoss"` + HealthCheckSourceIp string `json:"HealthCheckSourceIp" xml:"HealthCheckSourceIp"` + HealthCheckTargetIp string `json:"HealthCheckTargetIp" xml:"HealthCheckTargetIp"` + Delay int `json:"Delay" xml:"Delay"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_vbr_health_checks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_vbr_health_checks.go new file mode 100644 index 0000000..145cc3f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/struct_vbr_health_checks.go @@ -0,0 +1,21 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VbrHealthChecks is a nested struct in cbn response +type VbrHealthChecks struct { + VbrHealthCheck []VbrHealthCheck `json:"VbrHealthCheck" xml:"VbrHealthCheck"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/unassociate_cen_bandwidth_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/unassociate_cen_bandwidth_package.go new file mode 100644 index 0000000..98a5f56 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cbn/unassociate_cen_bandwidth_package.go @@ -0,0 +1,108 @@ +package cbn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UnassociateCenBandwidthPackage invokes the cbn.UnassociateCenBandwidthPackage API synchronously +// api document: https://help.aliyun.com/api/cbn/unassociatecenbandwidthpackage.html +func (client *Client) UnassociateCenBandwidthPackage(request *UnassociateCenBandwidthPackageRequest) (response *UnassociateCenBandwidthPackageResponse, err error) { + response = CreateUnassociateCenBandwidthPackageResponse() + err = client.DoAction(request, response) + return +} + +// UnassociateCenBandwidthPackageWithChan invokes the cbn.UnassociateCenBandwidthPackage API asynchronously +// api document: https://help.aliyun.com/api/cbn/unassociatecenbandwidthpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnassociateCenBandwidthPackageWithChan(request *UnassociateCenBandwidthPackageRequest) (<-chan *UnassociateCenBandwidthPackageResponse, <-chan error) { + responseChan := make(chan *UnassociateCenBandwidthPackageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UnassociateCenBandwidthPackage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UnassociateCenBandwidthPackageWithCallback invokes the cbn.UnassociateCenBandwidthPackage API asynchronously +// api document: https://help.aliyun.com/api/cbn/unassociatecenbandwidthpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnassociateCenBandwidthPackageWithCallback(request *UnassociateCenBandwidthPackageRequest, callback func(response *UnassociateCenBandwidthPackageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UnassociateCenBandwidthPackageResponse + var err error + defer close(result) + response, err = client.UnassociateCenBandwidthPackage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UnassociateCenBandwidthPackageRequest is the request struct for api UnassociateCenBandwidthPackage +type UnassociateCenBandwidthPackageRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CenId string `position:"Query" name:"CenId"` + CenBandwidthPackageId string `position:"Query" name:"CenBandwidthPackageId"` +} + +// UnassociateCenBandwidthPackageResponse is the response struct for api UnassociateCenBandwidthPackage +type UnassociateCenBandwidthPackageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUnassociateCenBandwidthPackageRequest creates a request to invoke UnassociateCenBandwidthPackage API +func CreateUnassociateCenBandwidthPackageRequest() (request *UnassociateCenBandwidthPackageRequest) { + request = &UnassociateCenBandwidthPackageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cbn", "2017-09-12", "UnassociateCenBandwidthPackage", "cbn", "openAPI") + return +} + +// CreateUnassociateCenBandwidthPackageResponse creates a response to parse from UnassociateCenBandwidthPackage response +func CreateUnassociateCenBandwidthPackageResponse() (response *UnassociateCenBandwidthPackageResponse) { + response = &UnassociateCenBandwidthPackageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/add_phone_number.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/add_phone_number.go new file mode 100644 index 0000000..61bf5cd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/add_phone_number.go @@ -0,0 +1,111 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddPhoneNumber invokes the ccc.AddPhoneNumber API synchronously +// api document: https://help.aliyun.com/api/ccc/addphonenumber.html +func (client *Client) AddPhoneNumber(request *AddPhoneNumberRequest) (response *AddPhoneNumberResponse, err error) { + response = CreateAddPhoneNumberResponse() + err = client.DoAction(request, response) + return +} + +// AddPhoneNumberWithChan invokes the ccc.AddPhoneNumber API asynchronously +// api document: https://help.aliyun.com/api/ccc/addphonenumber.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddPhoneNumberWithChan(request *AddPhoneNumberRequest) (<-chan *AddPhoneNumberResponse, <-chan error) { + responseChan := make(chan *AddPhoneNumberResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddPhoneNumber(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddPhoneNumberWithCallback invokes the ccc.AddPhoneNumber API asynchronously +// api document: https://help.aliyun.com/api/ccc/addphonenumber.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddPhoneNumberWithCallback(request *AddPhoneNumberRequest, callback func(response *AddPhoneNumberResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddPhoneNumberResponse + var err error + defer close(result) + response, err = client.AddPhoneNumber(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddPhoneNumberRequest is the request struct for api AddPhoneNumber +type AddPhoneNumberRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + PhoneNumber string `position:"Query" name:"PhoneNumber"` + Usage string `position:"Query" name:"Usage"` + ContactFlowId string `position:"Query" name:"ContactFlowId"` +} + +// AddPhoneNumberResponse is the response struct for api AddPhoneNumber +type AddPhoneNumberResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + PhoneNumber PhoneNumber `json:"PhoneNumber" xml:"PhoneNumber"` +} + +// CreateAddPhoneNumberRequest creates a request to invoke AddPhoneNumber API +func CreateAddPhoneNumberRequest() (request *AddPhoneNumberRequest) { + request = &AddPhoneNumberRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "AddPhoneNumber", "", "") + return +} + +// CreateAddPhoneNumberResponse creates a response to parse from AddPhoneNumber response +func CreateAddPhoneNumberResponse() (response *AddPhoneNumberResponse) { + response = &AddPhoneNumberResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/assign_users.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/assign_users.go new file mode 100644 index 0000000..35d3ae6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/assign_users.go @@ -0,0 +1,111 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AssignUsers invokes the ccc.AssignUsers API synchronously +// api document: https://help.aliyun.com/api/ccc/assignusers.html +func (client *Client) AssignUsers(request *AssignUsersRequest) (response *AssignUsersResponse, err error) { + response = CreateAssignUsersResponse() + err = client.DoAction(request, response) + return +} + +// AssignUsersWithChan invokes the ccc.AssignUsers API asynchronously +// api document: https://help.aliyun.com/api/ccc/assignusers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AssignUsersWithChan(request *AssignUsersRequest) (<-chan *AssignUsersResponse, <-chan error) { + responseChan := make(chan *AssignUsersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AssignUsers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AssignUsersWithCallback invokes the ccc.AssignUsers API asynchronously +// api document: https://help.aliyun.com/api/ccc/assignusers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AssignUsersWithCallback(request *AssignUsersRequest, callback func(response *AssignUsersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AssignUsersResponse + var err error + defer close(result) + response, err = client.AssignUsers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AssignUsersRequest is the request struct for api AssignUsers +type AssignUsersRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + UserRamId *[]string `position:"Query" name:"UserRamId" type:"Repeated"` + RoleId *[]string `position:"Query" name:"RoleId" type:"Repeated"` + SkillGroupId *[]string `position:"Query" name:"SkillGroupId" type:"Repeated"` + SkillLevel *[]string `position:"Query" name:"SkillLevel" type:"Repeated"` +} + +// AssignUsersResponse is the response struct for api AssignUsers +type AssignUsersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` +} + +// CreateAssignUsersRequest creates a request to invoke AssignUsers API +func CreateAssignUsersRequest() (request *AssignUsersRequest) { + request = &AssignUsersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "AssignUsers", "", "") + return +} + +// CreateAssignUsersResponse creates a response to parse from AssignUsers response +func CreateAssignUsersResponse() (response *AssignUsersResponse) { + response = &AssignUsersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/client.go new file mode 100644 index 0000000..5d8a01c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/client.go @@ -0,0 +1,81 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/create_skill_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/create_skill_group.go new file mode 100644 index 0000000..4fe2b5d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/create_skill_group.go @@ -0,0 +1,113 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateSkillGroup invokes the ccc.CreateSkillGroup API synchronously +// api document: https://help.aliyun.com/api/ccc/createskillgroup.html +func (client *Client) CreateSkillGroup(request *CreateSkillGroupRequest) (response *CreateSkillGroupResponse, err error) { + response = CreateCreateSkillGroupResponse() + err = client.DoAction(request, response) + return +} + +// CreateSkillGroupWithChan invokes the ccc.CreateSkillGroup API asynchronously +// api document: https://help.aliyun.com/api/ccc/createskillgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSkillGroupWithChan(request *CreateSkillGroupRequest) (<-chan *CreateSkillGroupResponse, <-chan error) { + responseChan := make(chan *CreateSkillGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateSkillGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateSkillGroupWithCallback invokes the ccc.CreateSkillGroup API asynchronously +// api document: https://help.aliyun.com/api/ccc/createskillgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSkillGroupWithCallback(request *CreateSkillGroupRequest, callback func(response *CreateSkillGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateSkillGroupResponse + var err error + defer close(result) + response, err = client.CreateSkillGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateSkillGroupRequest is the request struct for api CreateSkillGroup +type CreateSkillGroupRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` + OutboundPhoneNumberId *[]string `position:"Query" name:"OutboundPhoneNumberId" type:"Repeated"` + UserId *[]string `position:"Query" name:"UserId" type:"Repeated"` + SkillLevel *[]string `position:"Query" name:"SkillLevel" type:"Repeated"` +} + +// CreateSkillGroupResponse is the response struct for api CreateSkillGroup +type CreateSkillGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + SkillGroupId string `json:"SkillGroupId" xml:"SkillGroupId"` +} + +// CreateCreateSkillGroupRequest creates a request to invoke CreateSkillGroup API +func CreateCreateSkillGroupRequest() (request *CreateSkillGroupRequest) { + request = &CreateSkillGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "CreateSkillGroup", "", "") + return +} + +// CreateCreateSkillGroupResponse creates a response to parse from CreateSkillGroup response +func CreateCreateSkillGroupResponse() (response *CreateSkillGroupResponse) { + response = &CreateSkillGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/create_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/create_user.go new file mode 100644 index 0000000..b56c58a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/create_user.go @@ -0,0 +1,115 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateUser invokes the ccc.CreateUser API synchronously +// api document: https://help.aliyun.com/api/ccc/createuser.html +func (client *Client) CreateUser(request *CreateUserRequest) (response *CreateUserResponse, err error) { + response = CreateCreateUserResponse() + err = client.DoAction(request, response) + return +} + +// CreateUserWithChan invokes the ccc.CreateUser API asynchronously +// api document: https://help.aliyun.com/api/ccc/createuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateUserWithChan(request *CreateUserRequest) (<-chan *CreateUserResponse, <-chan error) { + responseChan := make(chan *CreateUserResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateUser(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateUserWithCallback invokes the ccc.CreateUser API asynchronously +// api document: https://help.aliyun.com/api/ccc/createuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateUserWithCallback(request *CreateUserRequest, callback func(response *CreateUserResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateUserResponse + var err error + defer close(result) + response, err = client.CreateUser(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateUserRequest is the request struct for api CreateUser +type CreateUserRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + LoginName string `position:"Query" name:"LoginName"` + DisplayName string `position:"Query" name:"DisplayName"` + Phone string `position:"Query" name:"Phone"` + Email string `position:"Query" name:"Email"` + RoleId *[]string `position:"Query" name:"RoleId" type:"Repeated"` + SkillGroupId *[]string `position:"Query" name:"SkillGroupId" type:"Repeated"` + SkillLevel *[]string `position:"Query" name:"SkillLevel" type:"Repeated"` +} + +// CreateUserResponse is the response struct for api CreateUser +type CreateUserResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + UserId string `json:"UserId" xml:"UserId"` +} + +// CreateCreateUserRequest creates a request to invoke CreateUser API +func CreateCreateUserRequest() (request *CreateUserRequest) { + request = &CreateUserRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "CreateUser", "", "") + return +} + +// CreateCreateUserResponse creates a response to parse from CreateUser response +func CreateCreateUserResponse() (response *CreateUserResponse) { + response = &CreateUserResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/delete_skill_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/delete_skill_group.go new file mode 100644 index 0000000..c5ae11f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/delete_skill_group.go @@ -0,0 +1,108 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteSkillGroup invokes the ccc.DeleteSkillGroup API synchronously +// api document: https://help.aliyun.com/api/ccc/deleteskillgroup.html +func (client *Client) DeleteSkillGroup(request *DeleteSkillGroupRequest) (response *DeleteSkillGroupResponse, err error) { + response = CreateDeleteSkillGroupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteSkillGroupWithChan invokes the ccc.DeleteSkillGroup API asynchronously +// api document: https://help.aliyun.com/api/ccc/deleteskillgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSkillGroupWithChan(request *DeleteSkillGroupRequest) (<-chan *DeleteSkillGroupResponse, <-chan error) { + responseChan := make(chan *DeleteSkillGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteSkillGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteSkillGroupWithCallback invokes the ccc.DeleteSkillGroup API asynchronously +// api document: https://help.aliyun.com/api/ccc/deleteskillgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSkillGroupWithCallback(request *DeleteSkillGroupRequest, callback func(response *DeleteSkillGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteSkillGroupResponse + var err error + defer close(result) + response, err = client.DeleteSkillGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteSkillGroupRequest is the request struct for api DeleteSkillGroup +type DeleteSkillGroupRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + SkillGroupId string `position:"Query" name:"SkillGroupId"` +} + +// DeleteSkillGroupResponse is the response struct for api DeleteSkillGroup +type DeleteSkillGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` +} + +// CreateDeleteSkillGroupRequest creates a request to invoke DeleteSkillGroup API +func CreateDeleteSkillGroupRequest() (request *DeleteSkillGroupRequest) { + request = &DeleteSkillGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "DeleteSkillGroup", "", "") + return +} + +// CreateDeleteSkillGroupResponse creates a response to parse from DeleteSkillGroup response +func CreateDeleteSkillGroupResponse() (response *DeleteSkillGroupResponse) { + response = &DeleteSkillGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/download_recording.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/download_recording.go new file mode 100644 index 0000000..3170bd7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/download_recording.go @@ -0,0 +1,110 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DownloadRecording invokes the ccc.DownloadRecording API synchronously +// api document: https://help.aliyun.com/api/ccc/downloadrecording.html +func (client *Client) DownloadRecording(request *DownloadRecordingRequest) (response *DownloadRecordingResponse, err error) { + response = CreateDownloadRecordingResponse() + err = client.DoAction(request, response) + return +} + +// DownloadRecordingWithChan invokes the ccc.DownloadRecording API asynchronously +// api document: https://help.aliyun.com/api/ccc/downloadrecording.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DownloadRecordingWithChan(request *DownloadRecordingRequest) (<-chan *DownloadRecordingResponse, <-chan error) { + responseChan := make(chan *DownloadRecordingResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DownloadRecording(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DownloadRecordingWithCallback invokes the ccc.DownloadRecording API asynchronously +// api document: https://help.aliyun.com/api/ccc/downloadrecording.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DownloadRecordingWithCallback(request *DownloadRecordingRequest, callback func(response *DownloadRecordingResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DownloadRecordingResponse + var err error + defer close(result) + response, err = client.DownloadRecording(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DownloadRecordingRequest is the request struct for api DownloadRecording +type DownloadRecordingRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + FileName string `position:"Query" name:"FileName"` + Channel string `position:"Query" name:"Channel"` +} + +// DownloadRecordingResponse is the response struct for api DownloadRecording +type DownloadRecordingResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + MediaDownloadParam MediaDownloadParam `json:"MediaDownloadParam" xml:"MediaDownloadParam"` +} + +// CreateDownloadRecordingRequest creates a request to invoke DownloadRecording API +func CreateDownloadRecordingRequest() (request *DownloadRecordingRequest) { + request = &DownloadRecordingRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "DownloadRecording", "", "") + return +} + +// CreateDownloadRecordingResponse creates a response to parse from DownloadRecording response +func CreateDownloadRecordingResponse() (response *DownloadRecordingResponse) { + response = &DownloadRecordingResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/get_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/get_config.go new file mode 100644 index 0000000..5158e79 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/get_config.go @@ -0,0 +1,111 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetConfig invokes the ccc.GetConfig API synchronously +// api document: https://help.aliyun.com/api/ccc/getconfig.html +func (client *Client) GetConfig(request *GetConfigRequest) (response *GetConfigResponse, err error) { + response = CreateGetConfigResponse() + err = client.DoAction(request, response) + return +} + +// GetConfigWithChan invokes the ccc.GetConfig API asynchronously +// api document: https://help.aliyun.com/api/ccc/getconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetConfigWithChan(request *GetConfigRequest) (<-chan *GetConfigResponse, <-chan error) { + responseChan := make(chan *GetConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetConfigWithCallback invokes the ccc.GetConfig API asynchronously +// api document: https://help.aliyun.com/api/ccc/getconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetConfigWithCallback(request *GetConfigRequest, callback func(response *GetConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetConfigResponse + var err error + defer close(result) + response, err = client.GetConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetConfigRequest is the request struct for api GetConfig +type GetConfigRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + Name string `position:"Query" name:"Name"` + ObjectId string `position:"Query" name:"ObjectId"` + ObjectType string `position:"Query" name:"ObjectType"` +} + +// GetConfigResponse is the response struct for api GetConfig +type GetConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + ConfigItem ConfigItem `json:"ConfigItem" xml:"ConfigItem"` +} + +// CreateGetConfigRequest creates a request to invoke GetConfig API +func CreateGetConfigRequest() (request *GetConfigRequest) { + request = &GetConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "GetConfig", "", "") + return +} + +// CreateGetConfigResponse creates a response to parse from GetConfig response +func CreateGetConfigResponse() (response *GetConfigResponse) { + response = &GetConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/get_service_extensions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/get_service_extensions.go new file mode 100644 index 0000000..3af9028 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/get_service_extensions.go @@ -0,0 +1,109 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetServiceExtensions invokes the ccc.GetServiceExtensions API synchronously +// api document: https://help.aliyun.com/api/ccc/getserviceextensions.html +func (client *Client) GetServiceExtensions(request *GetServiceExtensionsRequest) (response *GetServiceExtensionsResponse, err error) { + response = CreateGetServiceExtensionsResponse() + err = client.DoAction(request, response) + return +} + +// GetServiceExtensionsWithChan invokes the ccc.GetServiceExtensions API asynchronously +// api document: https://help.aliyun.com/api/ccc/getserviceextensions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetServiceExtensionsWithChan(request *GetServiceExtensionsRequest) (<-chan *GetServiceExtensionsResponse, <-chan error) { + responseChan := make(chan *GetServiceExtensionsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetServiceExtensions(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetServiceExtensionsWithCallback invokes the ccc.GetServiceExtensions API asynchronously +// api document: https://help.aliyun.com/api/ccc/getserviceextensions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetServiceExtensionsWithCallback(request *GetServiceExtensionsRequest, callback func(response *GetServiceExtensionsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetServiceExtensionsResponse + var err error + defer close(result) + response, err = client.GetServiceExtensions(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetServiceExtensionsRequest is the request struct for api GetServiceExtensions +type GetServiceExtensionsRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + ServiceType string `position:"Query" name:"ServiceType"` +} + +// GetServiceExtensionsResponse is the response struct for api GetServiceExtensions +type GetServiceExtensionsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + ServiceExtensions ServiceExtensions `json:"ServiceExtensions" xml:"ServiceExtensions"` +} + +// CreateGetServiceExtensionsRequest creates a request to invoke GetServiceExtensions API +func CreateGetServiceExtensionsRequest() (request *GetServiceExtensionsRequest) { + request = &GetServiceExtensionsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "GetServiceExtensions", "", "") + return +} + +// CreateGetServiceExtensionsResponse creates a response to parse from GetServiceExtensions response +func CreateGetServiceExtensionsResponse() (response *GetServiceExtensionsResponse) { + response = &GetServiceExtensionsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/get_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/get_user.go new file mode 100644 index 0000000..3ce171e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/get_user.go @@ -0,0 +1,109 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetUser invokes the ccc.GetUser API synchronously +// api document: https://help.aliyun.com/api/ccc/getuser.html +func (client *Client) GetUser(request *GetUserRequest) (response *GetUserResponse, err error) { + response = CreateGetUserResponse() + err = client.DoAction(request, response) + return +} + +// GetUserWithChan invokes the ccc.GetUser API asynchronously +// api document: https://help.aliyun.com/api/ccc/getuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetUserWithChan(request *GetUserRequest) (<-chan *GetUserResponse, <-chan error) { + responseChan := make(chan *GetUserResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetUser(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetUserWithCallback invokes the ccc.GetUser API asynchronously +// api document: https://help.aliyun.com/api/ccc/getuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetUserWithCallback(request *GetUserRequest, callback func(response *GetUserResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetUserResponse + var err error + defer close(result) + response, err = client.GetUser(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetUserRequest is the request struct for api GetUser +type GetUserRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + UserId string `position:"Query" name:"UserId"` +} + +// GetUserResponse is the response struct for api GetUser +type GetUserResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + User User `json:"User" xml:"User"` +} + +// CreateGetUserRequest creates a request to invoke GetUser API +func CreateGetUserRequest() (request *GetUserRequest) { + request = &GetUserRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "GetUser", "", "") + return +} + +// CreateGetUserResponse creates a response to parse from GetUser response +func CreateGetUserResponse() (response *GetUserResponse) { + response = &GetUserResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_call_detail_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_call_detail_records.go new file mode 100644 index 0000000..7f0f64b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_call_detail_records.go @@ -0,0 +1,117 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListCallDetailRecords invokes the ccc.ListCallDetailRecords API synchronously +// api document: https://help.aliyun.com/api/ccc/listcalldetailrecords.html +func (client *Client) ListCallDetailRecords(request *ListCallDetailRecordsRequest) (response *ListCallDetailRecordsResponse, err error) { + response = CreateListCallDetailRecordsResponse() + err = client.DoAction(request, response) + return +} + +// ListCallDetailRecordsWithChan invokes the ccc.ListCallDetailRecords API asynchronously +// api document: https://help.aliyun.com/api/ccc/listcalldetailrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListCallDetailRecordsWithChan(request *ListCallDetailRecordsRequest) (<-chan *ListCallDetailRecordsResponse, <-chan error) { + responseChan := make(chan *ListCallDetailRecordsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListCallDetailRecords(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListCallDetailRecordsWithCallback invokes the ccc.ListCallDetailRecords API asynchronously +// api document: https://help.aliyun.com/api/ccc/listcalldetailrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListCallDetailRecordsWithCallback(request *ListCallDetailRecordsRequest, callback func(response *ListCallDetailRecordsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListCallDetailRecordsResponse + var err error + defer close(result) + response, err = client.ListCallDetailRecords(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListCallDetailRecordsRequest is the request struct for api ListCallDetailRecords +type ListCallDetailRecordsRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + PhoneNumber string `position:"Query" name:"PhoneNumber"` + StartTime requests.Integer `position:"Query" name:"StartTime"` + StopTime requests.Integer `position:"Query" name:"StopTime"` + Criteria string `position:"Query" name:"Criteria"` + ContactType string `position:"Query" name:"ContactType"` + ContactDisposition string `position:"Query" name:"ContactDisposition"` + WithRecording requests.Boolean `position:"Query" name:"WithRecording"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// ListCallDetailRecordsResponse is the response struct for api ListCallDetailRecords +type ListCallDetailRecordsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + CallDetailRecords CallDetailRecords `json:"CallDetailRecords" xml:"CallDetailRecords"` +} + +// CreateListCallDetailRecordsRequest creates a request to invoke ListCallDetailRecords API +func CreateListCallDetailRecordsRequest() (request *ListCallDetailRecordsRequest) { + request = &ListCallDetailRecordsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "ListCallDetailRecords", "", "") + return +} + +// CreateListCallDetailRecordsResponse creates a response to parse from ListCallDetailRecords response +func CreateListCallDetailRecordsResponse() (response *ListCallDetailRecordsResponse) { + response = &ListCallDetailRecordsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_contact_flows.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_contact_flows.go new file mode 100644 index 0000000..19d5d76 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_contact_flows.go @@ -0,0 +1,108 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListContactFlows invokes the ccc.ListContactFlows API synchronously +// api document: https://help.aliyun.com/api/ccc/listcontactflows.html +func (client *Client) ListContactFlows(request *ListContactFlowsRequest) (response *ListContactFlowsResponse, err error) { + response = CreateListContactFlowsResponse() + err = client.DoAction(request, response) + return +} + +// ListContactFlowsWithChan invokes the ccc.ListContactFlows API asynchronously +// api document: https://help.aliyun.com/api/ccc/listcontactflows.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListContactFlowsWithChan(request *ListContactFlowsRequest) (<-chan *ListContactFlowsResponse, <-chan error) { + responseChan := make(chan *ListContactFlowsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListContactFlows(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListContactFlowsWithCallback invokes the ccc.ListContactFlows API asynchronously +// api document: https://help.aliyun.com/api/ccc/listcontactflows.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListContactFlowsWithCallback(request *ListContactFlowsRequest, callback func(response *ListContactFlowsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListContactFlowsResponse + var err error + defer close(result) + response, err = client.ListContactFlows(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListContactFlowsRequest is the request struct for api ListContactFlows +type ListContactFlowsRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` +} + +// ListContactFlowsResponse is the response struct for api ListContactFlows +type ListContactFlowsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + ContactFlows ContactFlows `json:"ContactFlows" xml:"ContactFlows"` +} + +// CreateListContactFlowsRequest creates a request to invoke ListContactFlows API +func CreateListContactFlowsRequest() (request *ListContactFlowsRequest) { + request = &ListContactFlowsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "ListContactFlows", "", "") + return +} + +// CreateListContactFlowsResponse creates a response to parse from ListContactFlows response +func CreateListContactFlowsResponse() (response *ListContactFlowsResponse) { + response = &ListContactFlowsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_phone_numbers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_phone_numbers.go new file mode 100644 index 0000000..4bb8fc3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_phone_numbers.go @@ -0,0 +1,109 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListPhoneNumbers invokes the ccc.ListPhoneNumbers API synchronously +// api document: https://help.aliyun.com/api/ccc/listphonenumbers.html +func (client *Client) ListPhoneNumbers(request *ListPhoneNumbersRequest) (response *ListPhoneNumbersResponse, err error) { + response = CreateListPhoneNumbersResponse() + err = client.DoAction(request, response) + return +} + +// ListPhoneNumbersWithChan invokes the ccc.ListPhoneNumbers API asynchronously +// api document: https://help.aliyun.com/api/ccc/listphonenumbers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPhoneNumbersWithChan(request *ListPhoneNumbersRequest) (<-chan *ListPhoneNumbersResponse, <-chan error) { + responseChan := make(chan *ListPhoneNumbersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPhoneNumbers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPhoneNumbersWithCallback invokes the ccc.ListPhoneNumbers API asynchronously +// api document: https://help.aliyun.com/api/ccc/listphonenumbers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPhoneNumbersWithCallback(request *ListPhoneNumbersRequest, callback func(response *ListPhoneNumbersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPhoneNumbersResponse + var err error + defer close(result) + response, err = client.ListPhoneNumbers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPhoneNumbersRequest is the request struct for api ListPhoneNumbers +type ListPhoneNumbersRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + OutboundOnly requests.Boolean `position:"Query" name:"OutboundOnly"` +} + +// ListPhoneNumbersResponse is the response struct for api ListPhoneNumbers +type ListPhoneNumbersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + PhoneNumbers PhoneNumbersInListPhoneNumbers `json:"PhoneNumbers" xml:"PhoneNumbers"` +} + +// CreateListPhoneNumbersRequest creates a request to invoke ListPhoneNumbers API +func CreateListPhoneNumbersRequest() (request *ListPhoneNumbersRequest) { + request = &ListPhoneNumbersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "ListPhoneNumbers", "", "") + return +} + +// CreateListPhoneNumbersResponse creates a response to parse from ListPhoneNumbers response +func CreateListPhoneNumbersResponse() (response *ListPhoneNumbersResponse) { + response = &ListPhoneNumbersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_recordings.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_recordings.go new file mode 100644 index 0000000..71c6b4c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_recordings.go @@ -0,0 +1,115 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListRecordings invokes the ccc.ListRecordings API synchronously +// api document: https://help.aliyun.com/api/ccc/listrecordings.html +func (client *Client) ListRecordings(request *ListRecordingsRequest) (response *ListRecordingsResponse, err error) { + response = CreateListRecordingsResponse() + err = client.DoAction(request, response) + return +} + +// ListRecordingsWithChan invokes the ccc.ListRecordings API asynchronously +// api document: https://help.aliyun.com/api/ccc/listrecordings.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListRecordingsWithChan(request *ListRecordingsRequest) (<-chan *ListRecordingsResponse, <-chan error) { + responseChan := make(chan *ListRecordingsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListRecordings(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListRecordingsWithCallback invokes the ccc.ListRecordings API asynchronously +// api document: https://help.aliyun.com/api/ccc/listrecordings.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListRecordingsWithCallback(request *ListRecordingsRequest, callback func(response *ListRecordingsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListRecordingsResponse + var err error + defer close(result) + response, err = client.ListRecordings(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListRecordingsRequest is the request struct for api ListRecordings +type ListRecordingsRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + StartTime requests.Integer `position:"Query" name:"StartTime"` + StopTime requests.Integer `position:"Query" name:"StopTime"` + PhoneNumber string `position:"Query" name:"PhoneNumber"` + AgentId string `position:"Query" name:"AgentId"` + Criteria string `position:"Query" name:"Criteria"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// ListRecordingsResponse is the response struct for api ListRecordings +type ListRecordingsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Recordings Recordings `json:"Recordings" xml:"Recordings"` +} + +// CreateListRecordingsRequest creates a request to invoke ListRecordings API +func CreateListRecordingsRequest() (request *ListRecordingsRequest) { + request = &ListRecordingsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "ListRecordings", "", "") + return +} + +// CreateListRecordingsResponse creates a response to parse from ListRecordings response +func CreateListRecordingsResponse() (response *ListRecordingsResponse) { + response = &ListRecordingsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_recordings_by_contact_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_recordings_by_contact_id.go new file mode 100644 index 0000000..6f3854e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_recordings_by_contact_id.go @@ -0,0 +1,109 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListRecordingsByContactId invokes the ccc.ListRecordingsByContactId API synchronously +// api document: https://help.aliyun.com/api/ccc/listrecordingsbycontactid.html +func (client *Client) ListRecordingsByContactId(request *ListRecordingsByContactIdRequest) (response *ListRecordingsByContactIdResponse, err error) { + response = CreateListRecordingsByContactIdResponse() + err = client.DoAction(request, response) + return +} + +// ListRecordingsByContactIdWithChan invokes the ccc.ListRecordingsByContactId API asynchronously +// api document: https://help.aliyun.com/api/ccc/listrecordingsbycontactid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListRecordingsByContactIdWithChan(request *ListRecordingsByContactIdRequest) (<-chan *ListRecordingsByContactIdResponse, <-chan error) { + responseChan := make(chan *ListRecordingsByContactIdResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListRecordingsByContactId(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListRecordingsByContactIdWithCallback invokes the ccc.ListRecordingsByContactId API asynchronously +// api document: https://help.aliyun.com/api/ccc/listrecordingsbycontactid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListRecordingsByContactIdWithCallback(request *ListRecordingsByContactIdRequest, callback func(response *ListRecordingsByContactIdResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListRecordingsByContactIdResponse + var err error + defer close(result) + response, err = client.ListRecordingsByContactId(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListRecordingsByContactIdRequest is the request struct for api ListRecordingsByContactId +type ListRecordingsByContactIdRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + ContactId string `position:"Query" name:"ContactId"` +} + +// ListRecordingsByContactIdResponse is the response struct for api ListRecordingsByContactId +type ListRecordingsByContactIdResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Recordings RecordingsInListRecordingsByContactId `json:"Recordings" xml:"Recordings"` +} + +// CreateListRecordingsByContactIdRequest creates a request to invoke ListRecordingsByContactId API +func CreateListRecordingsByContactIdRequest() (request *ListRecordingsByContactIdRequest) { + request = &ListRecordingsByContactIdRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "ListRecordingsByContactId", "", "") + return +} + +// CreateListRecordingsByContactIdResponse creates a response to parse from ListRecordingsByContactId response +func CreateListRecordingsByContactIdResponse() (response *ListRecordingsByContactIdResponse) { + response = &ListRecordingsByContactIdResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_roles.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_roles.go new file mode 100644 index 0000000..492de3c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_roles.go @@ -0,0 +1,108 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListRoles invokes the ccc.ListRoles API synchronously +// api document: https://help.aliyun.com/api/ccc/listroles.html +func (client *Client) ListRoles(request *ListRolesRequest) (response *ListRolesResponse, err error) { + response = CreateListRolesResponse() + err = client.DoAction(request, response) + return +} + +// ListRolesWithChan invokes the ccc.ListRoles API asynchronously +// api document: https://help.aliyun.com/api/ccc/listroles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListRolesWithChan(request *ListRolesRequest) (<-chan *ListRolesResponse, <-chan error) { + responseChan := make(chan *ListRolesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListRoles(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListRolesWithCallback invokes the ccc.ListRoles API asynchronously +// api document: https://help.aliyun.com/api/ccc/listroles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListRolesWithCallback(request *ListRolesRequest, callback func(response *ListRolesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListRolesResponse + var err error + defer close(result) + response, err = client.ListRoles(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListRolesRequest is the request struct for api ListRoles +type ListRolesRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` +} + +// ListRolesResponse is the response struct for api ListRoles +type ListRolesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Roles RolesInListRoles `json:"Roles" xml:"Roles"` +} + +// CreateListRolesRequest creates a request to invoke ListRoles API +func CreateListRolesRequest() (request *ListRolesRequest) { + request = &ListRolesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "ListRoles", "", "") + return +} + +// CreateListRolesResponse creates a response to parse from ListRoles response +func CreateListRolesResponse() (response *ListRolesResponse) { + response = &ListRolesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_skill_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_skill_groups.go new file mode 100644 index 0000000..79f8a14 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_skill_groups.go @@ -0,0 +1,108 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListSkillGroups invokes the ccc.ListSkillGroups API synchronously +// api document: https://help.aliyun.com/api/ccc/listskillgroups.html +func (client *Client) ListSkillGroups(request *ListSkillGroupsRequest) (response *ListSkillGroupsResponse, err error) { + response = CreateListSkillGroupsResponse() + err = client.DoAction(request, response) + return +} + +// ListSkillGroupsWithChan invokes the ccc.ListSkillGroups API asynchronously +// api document: https://help.aliyun.com/api/ccc/listskillgroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListSkillGroupsWithChan(request *ListSkillGroupsRequest) (<-chan *ListSkillGroupsResponse, <-chan error) { + responseChan := make(chan *ListSkillGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListSkillGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListSkillGroupsWithCallback invokes the ccc.ListSkillGroups API asynchronously +// api document: https://help.aliyun.com/api/ccc/listskillgroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListSkillGroupsWithCallback(request *ListSkillGroupsRequest, callback func(response *ListSkillGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListSkillGroupsResponse + var err error + defer close(result) + response, err = client.ListSkillGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListSkillGroupsRequest is the request struct for api ListSkillGroups +type ListSkillGroupsRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` +} + +// ListSkillGroupsResponse is the response struct for api ListSkillGroups +type ListSkillGroupsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + SkillGroups SkillGroups `json:"SkillGroups" xml:"SkillGroups"` +} + +// CreateListSkillGroupsRequest creates a request to invoke ListSkillGroups API +func CreateListSkillGroupsRequest() (request *ListSkillGroupsRequest) { + request = &ListSkillGroupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "ListSkillGroups", "", "") + return +} + +// CreateListSkillGroupsResponse creates a response to parse from ListSkillGroups response +func CreateListSkillGroupsResponse() (response *ListSkillGroupsResponse) { + response = &ListSkillGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_skill_groups_of_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_skill_groups_of_user.go new file mode 100644 index 0000000..f7adc73 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_skill_groups_of_user.go @@ -0,0 +1,109 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListSkillGroupsOfUser invokes the ccc.ListSkillGroupsOfUser API synchronously +// api document: https://help.aliyun.com/api/ccc/listskillgroupsofuser.html +func (client *Client) ListSkillGroupsOfUser(request *ListSkillGroupsOfUserRequest) (response *ListSkillGroupsOfUserResponse, err error) { + response = CreateListSkillGroupsOfUserResponse() + err = client.DoAction(request, response) + return +} + +// ListSkillGroupsOfUserWithChan invokes the ccc.ListSkillGroupsOfUser API asynchronously +// api document: https://help.aliyun.com/api/ccc/listskillgroupsofuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListSkillGroupsOfUserWithChan(request *ListSkillGroupsOfUserRequest) (<-chan *ListSkillGroupsOfUserResponse, <-chan error) { + responseChan := make(chan *ListSkillGroupsOfUserResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListSkillGroupsOfUser(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListSkillGroupsOfUserWithCallback invokes the ccc.ListSkillGroupsOfUser API asynchronously +// api document: https://help.aliyun.com/api/ccc/listskillgroupsofuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListSkillGroupsOfUserWithCallback(request *ListSkillGroupsOfUserRequest, callback func(response *ListSkillGroupsOfUserResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListSkillGroupsOfUserResponse + var err error + defer close(result) + response, err = client.ListSkillGroupsOfUser(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListSkillGroupsOfUserRequest is the request struct for api ListSkillGroupsOfUser +type ListSkillGroupsOfUserRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + UserId string `position:"Query" name:"UserId"` +} + +// ListSkillGroupsOfUserResponse is the response struct for api ListSkillGroupsOfUser +type ListSkillGroupsOfUserResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + SkillLevels SkillLevelsInListSkillGroupsOfUser `json:"SkillLevels" xml:"SkillLevels"` +} + +// CreateListSkillGroupsOfUserRequest creates a request to invoke ListSkillGroupsOfUser API +func CreateListSkillGroupsOfUserRequest() (request *ListSkillGroupsOfUserRequest) { + request = &ListSkillGroupsOfUserRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "ListSkillGroupsOfUser", "", "") + return +} + +// CreateListSkillGroupsOfUserResponse creates a response to parse from ListSkillGroupsOfUser response +func CreateListSkillGroupsOfUserResponse() (response *ListSkillGroupsOfUserResponse) { + response = &ListSkillGroupsOfUserResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_users.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_users.go new file mode 100644 index 0000000..d6d27fd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_users.go @@ -0,0 +1,110 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListUsers invokes the ccc.ListUsers API synchronously +// api document: https://help.aliyun.com/api/ccc/listusers.html +func (client *Client) ListUsers(request *ListUsersRequest) (response *ListUsersResponse, err error) { + response = CreateListUsersResponse() + err = client.DoAction(request, response) + return +} + +// ListUsersWithChan invokes the ccc.ListUsers API asynchronously +// api document: https://help.aliyun.com/api/ccc/listusers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListUsersWithChan(request *ListUsersRequest) (<-chan *ListUsersResponse, <-chan error) { + responseChan := make(chan *ListUsersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListUsers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListUsersWithCallback invokes the ccc.ListUsers API asynchronously +// api document: https://help.aliyun.com/api/ccc/listusers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListUsersWithCallback(request *ListUsersRequest, callback func(response *ListUsersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListUsersResponse + var err error + defer close(result) + response, err = client.ListUsers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListUsersRequest is the request struct for api ListUsers +type ListUsersRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// ListUsersResponse is the response struct for api ListUsers +type ListUsersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Users Users `json:"Users" xml:"Users"` +} + +// CreateListUsersRequest creates a request to invoke ListUsers API +func CreateListUsersRequest() (request *ListUsersRequest) { + request = &ListUsersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "ListUsers", "", "") + return +} + +// CreateListUsersResponse creates a response to parse from ListUsers response +func CreateListUsersResponse() (response *ListUsersResponse) { + response = &ListUsersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_users_of_skill_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_users_of_skill_group.go new file mode 100644 index 0000000..7f20bbc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/list_users_of_skill_group.go @@ -0,0 +1,111 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListUsersOfSkillGroup invokes the ccc.ListUsersOfSkillGroup API synchronously +// api document: https://help.aliyun.com/api/ccc/listusersofskillgroup.html +func (client *Client) ListUsersOfSkillGroup(request *ListUsersOfSkillGroupRequest) (response *ListUsersOfSkillGroupResponse, err error) { + response = CreateListUsersOfSkillGroupResponse() + err = client.DoAction(request, response) + return +} + +// ListUsersOfSkillGroupWithChan invokes the ccc.ListUsersOfSkillGroup API asynchronously +// api document: https://help.aliyun.com/api/ccc/listusersofskillgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListUsersOfSkillGroupWithChan(request *ListUsersOfSkillGroupRequest) (<-chan *ListUsersOfSkillGroupResponse, <-chan error) { + responseChan := make(chan *ListUsersOfSkillGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListUsersOfSkillGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListUsersOfSkillGroupWithCallback invokes the ccc.ListUsersOfSkillGroup API asynchronously +// api document: https://help.aliyun.com/api/ccc/listusersofskillgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListUsersOfSkillGroupWithCallback(request *ListUsersOfSkillGroupRequest, callback func(response *ListUsersOfSkillGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListUsersOfSkillGroupResponse + var err error + defer close(result) + response, err = client.ListUsersOfSkillGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListUsersOfSkillGroupRequest is the request struct for api ListUsersOfSkillGroup +type ListUsersOfSkillGroupRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + SkillGroupId string `position:"Query" name:"SkillGroupId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// ListUsersOfSkillGroupResponse is the response struct for api ListUsersOfSkillGroup +type ListUsersOfSkillGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Users Users `json:"Users" xml:"Users"` +} + +// CreateListUsersOfSkillGroupRequest creates a request to invoke ListUsersOfSkillGroup API +func CreateListUsersOfSkillGroupRequest() (request *ListUsersOfSkillGroupRequest) { + request = &ListUsersOfSkillGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "ListUsersOfSkillGroup", "", "") + return +} + +// CreateListUsersOfSkillGroupResponse creates a response to parse from ListUsersOfSkillGroup response +func CreateListUsersOfSkillGroupResponse() (response *ListUsersOfSkillGroupResponse) { + response = &ListUsersOfSkillGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/modify_phone_number.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/modify_phone_number.go new file mode 100644 index 0000000..1ab6562 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/modify_phone_number.go @@ -0,0 +1,111 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyPhoneNumber invokes the ccc.ModifyPhoneNumber API synchronously +// api document: https://help.aliyun.com/api/ccc/modifyphonenumber.html +func (client *Client) ModifyPhoneNumber(request *ModifyPhoneNumberRequest) (response *ModifyPhoneNumberResponse, err error) { + response = CreateModifyPhoneNumberResponse() + err = client.DoAction(request, response) + return +} + +// ModifyPhoneNumberWithChan invokes the ccc.ModifyPhoneNumber API asynchronously +// api document: https://help.aliyun.com/api/ccc/modifyphonenumber.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyPhoneNumberWithChan(request *ModifyPhoneNumberRequest) (<-chan *ModifyPhoneNumberResponse, <-chan error) { + responseChan := make(chan *ModifyPhoneNumberResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyPhoneNumber(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyPhoneNumberWithCallback invokes the ccc.ModifyPhoneNumber API asynchronously +// api document: https://help.aliyun.com/api/ccc/modifyphonenumber.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyPhoneNumberWithCallback(request *ModifyPhoneNumberRequest, callback func(response *ModifyPhoneNumberResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyPhoneNumberResponse + var err error + defer close(result) + response, err = client.ModifyPhoneNumber(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyPhoneNumberRequest is the request struct for api ModifyPhoneNumber +type ModifyPhoneNumberRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + PhoneNumberId string `position:"Query" name:"PhoneNumberId"` + Usage string `position:"Query" name:"Usage"` + ContactFlowId string `position:"Query" name:"ContactFlowId"` +} + +// ModifyPhoneNumberResponse is the response struct for api ModifyPhoneNumber +type ModifyPhoneNumberResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + PhoneNumber PhoneNumber `json:"PhoneNumber" xml:"PhoneNumber"` +} + +// CreateModifyPhoneNumberRequest creates a request to invoke ModifyPhoneNumber API +func CreateModifyPhoneNumberRequest() (request *ModifyPhoneNumberRequest) { + request = &ModifyPhoneNumberRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "ModifyPhoneNumber", "", "") + return +} + +// CreateModifyPhoneNumberResponse creates a response to parse from ModifyPhoneNumber response +func CreateModifyPhoneNumberResponse() (response *ModifyPhoneNumberResponse) { + response = &ModifyPhoneNumberResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/modify_skill_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/modify_skill_group.go new file mode 100644 index 0000000..004ffba --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/modify_skill_group.go @@ -0,0 +1,113 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifySkillGroup invokes the ccc.ModifySkillGroup API synchronously +// api document: https://help.aliyun.com/api/ccc/modifyskillgroup.html +func (client *Client) ModifySkillGroup(request *ModifySkillGroupRequest) (response *ModifySkillGroupResponse, err error) { + response = CreateModifySkillGroupResponse() + err = client.DoAction(request, response) + return +} + +// ModifySkillGroupWithChan invokes the ccc.ModifySkillGroup API asynchronously +// api document: https://help.aliyun.com/api/ccc/modifyskillgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySkillGroupWithChan(request *ModifySkillGroupRequest) (<-chan *ModifySkillGroupResponse, <-chan error) { + responseChan := make(chan *ModifySkillGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifySkillGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifySkillGroupWithCallback invokes the ccc.ModifySkillGroup API asynchronously +// api document: https://help.aliyun.com/api/ccc/modifyskillgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySkillGroupWithCallback(request *ModifySkillGroupRequest, callback func(response *ModifySkillGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifySkillGroupResponse + var err error + defer close(result) + response, err = client.ModifySkillGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifySkillGroupRequest is the request struct for api ModifySkillGroup +type ModifySkillGroupRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + SkillGroupId string `position:"Query" name:"SkillGroupId"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` + OutboundPhoneNumberId *[]string `position:"Query" name:"OutboundPhoneNumberId" type:"Repeated"` + UserId *[]string `position:"Query" name:"UserId" type:"Repeated"` + SkillLevel *[]string `position:"Query" name:"SkillLevel" type:"Repeated"` +} + +// ModifySkillGroupResponse is the response struct for api ModifySkillGroup +type ModifySkillGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` +} + +// CreateModifySkillGroupRequest creates a request to invoke ModifySkillGroup API +func CreateModifySkillGroupRequest() (request *ModifySkillGroupRequest) { + request = &ModifySkillGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "ModifySkillGroup", "", "") + return +} + +// CreateModifySkillGroupResponse creates a response to parse from ModifySkillGroup response +func CreateModifySkillGroupResponse() (response *ModifySkillGroupResponse) { + response = &ModifySkillGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/modify_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/modify_user.go new file mode 100644 index 0000000..eb2e5d4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/modify_user.go @@ -0,0 +1,114 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyUser invokes the ccc.ModifyUser API synchronously +// api document: https://help.aliyun.com/api/ccc/modifyuser.html +func (client *Client) ModifyUser(request *ModifyUserRequest) (response *ModifyUserResponse, err error) { + response = CreateModifyUserResponse() + err = client.DoAction(request, response) + return +} + +// ModifyUserWithChan invokes the ccc.ModifyUser API asynchronously +// api document: https://help.aliyun.com/api/ccc/modifyuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyUserWithChan(request *ModifyUserRequest) (<-chan *ModifyUserResponse, <-chan error) { + responseChan := make(chan *ModifyUserResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyUser(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyUserWithCallback invokes the ccc.ModifyUser API asynchronously +// api document: https://help.aliyun.com/api/ccc/modifyuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyUserWithCallback(request *ModifyUserRequest, callback func(response *ModifyUserResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyUserResponse + var err error + defer close(result) + response, err = client.ModifyUser(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyUserRequest is the request struct for api ModifyUser +type ModifyUserRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + UserId string `position:"Query" name:"UserId"` + DisplayName string `position:"Query" name:"DisplayName"` + Phone string `position:"Query" name:"Phone"` + Email string `position:"Query" name:"Email"` + RoleId *[]string `position:"Query" name:"RoleId" type:"Repeated"` + SkillGroupId *[]string `position:"Query" name:"SkillGroupId" type:"Repeated"` + SkillLevel *[]string `position:"Query" name:"SkillLevel" type:"Repeated"` +} + +// ModifyUserResponse is the response struct for api ModifyUser +type ModifyUserResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` +} + +// CreateModifyUserRequest creates a request to invoke ModifyUser API +func CreateModifyUserRequest() (request *ModifyUserRequest) { + request = &ModifyUserRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "ModifyUser", "", "") + return +} + +// CreateModifyUserResponse creates a response to parse from ModifyUser response +func CreateModifyUserResponse() (response *ModifyUserResponse) { + response = &ModifyUserResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/refresh_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/refresh_token.go new file mode 100644 index 0000000..08f3c33 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/refresh_token.go @@ -0,0 +1,108 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RefreshToken invokes the ccc.RefreshToken API synchronously +// api document: https://help.aliyun.com/api/ccc/refreshtoken.html +func (client *Client) RefreshToken(request *RefreshTokenRequest) (response *RefreshTokenResponse, err error) { + response = CreateRefreshTokenResponse() + err = client.DoAction(request, response) + return +} + +// RefreshTokenWithChan invokes the ccc.RefreshToken API asynchronously +// api document: https://help.aliyun.com/api/ccc/refreshtoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RefreshTokenWithChan(request *RefreshTokenRequest) (<-chan *RefreshTokenResponse, <-chan error) { + responseChan := make(chan *RefreshTokenResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RefreshToken(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RefreshTokenWithCallback invokes the ccc.RefreshToken API asynchronously +// api document: https://help.aliyun.com/api/ccc/refreshtoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RefreshTokenWithCallback(request *RefreshTokenRequest, callback func(response *RefreshTokenResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RefreshTokenResponse + var err error + defer close(result) + response, err = client.RefreshToken(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RefreshTokenRequest is the request struct for api RefreshToken +type RefreshTokenRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` +} + +// RefreshTokenResponse is the response struct for api RefreshToken +type RefreshTokenResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Token Token `json:"Token" xml:"Token"` +} + +// CreateRefreshTokenRequest creates a request to invoke RefreshToken API +func CreateRefreshTokenRequest() (request *RefreshTokenRequest) { + request = &RefreshTokenRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "RefreshToken", "", "") + return +} + +// CreateRefreshTokenResponse creates a response to parse from RefreshToken response +func CreateRefreshTokenResponse() (response *RefreshTokenResponse) { + response = &RefreshTokenResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/remove_phone_number.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/remove_phone_number.go new file mode 100644 index 0000000..8cdb0fb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/remove_phone_number.go @@ -0,0 +1,108 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemovePhoneNumber invokes the ccc.RemovePhoneNumber API synchronously +// api document: https://help.aliyun.com/api/ccc/removephonenumber.html +func (client *Client) RemovePhoneNumber(request *RemovePhoneNumberRequest) (response *RemovePhoneNumberResponse, err error) { + response = CreateRemovePhoneNumberResponse() + err = client.DoAction(request, response) + return +} + +// RemovePhoneNumberWithChan invokes the ccc.RemovePhoneNumber API asynchronously +// api document: https://help.aliyun.com/api/ccc/removephonenumber.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemovePhoneNumberWithChan(request *RemovePhoneNumberRequest) (<-chan *RemovePhoneNumberResponse, <-chan error) { + responseChan := make(chan *RemovePhoneNumberResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemovePhoneNumber(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemovePhoneNumberWithCallback invokes the ccc.RemovePhoneNumber API asynchronously +// api document: https://help.aliyun.com/api/ccc/removephonenumber.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemovePhoneNumberWithCallback(request *RemovePhoneNumberRequest, callback func(response *RemovePhoneNumberResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemovePhoneNumberResponse + var err error + defer close(result) + response, err = client.RemovePhoneNumber(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemovePhoneNumberRequest is the request struct for api RemovePhoneNumber +type RemovePhoneNumberRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + PhoneNumberId string `position:"Query" name:"PhoneNumberId"` +} + +// RemovePhoneNumberResponse is the response struct for api RemovePhoneNumber +type RemovePhoneNumberResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` +} + +// CreateRemovePhoneNumberRequest creates a request to invoke RemovePhoneNumber API +func CreateRemovePhoneNumberRequest() (request *RemovePhoneNumberRequest) { + request = &RemovePhoneNumberRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "RemovePhoneNumber", "", "") + return +} + +// CreateRemovePhoneNumberResponse creates a response to parse from RemovePhoneNumber response +func CreateRemovePhoneNumberResponse() (response *RemovePhoneNumberResponse) { + response = &RemovePhoneNumberResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/remove_users.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/remove_users.go new file mode 100644 index 0000000..fcd96f9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/remove_users.go @@ -0,0 +1,108 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveUsers invokes the ccc.RemoveUsers API synchronously +// api document: https://help.aliyun.com/api/ccc/removeusers.html +func (client *Client) RemoveUsers(request *RemoveUsersRequest) (response *RemoveUsersResponse, err error) { + response = CreateRemoveUsersResponse() + err = client.DoAction(request, response) + return +} + +// RemoveUsersWithChan invokes the ccc.RemoveUsers API asynchronously +// api document: https://help.aliyun.com/api/ccc/removeusers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveUsersWithChan(request *RemoveUsersRequest) (<-chan *RemoveUsersResponse, <-chan error) { + responseChan := make(chan *RemoveUsersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveUsers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveUsersWithCallback invokes the ccc.RemoveUsers API asynchronously +// api document: https://help.aliyun.com/api/ccc/removeusers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveUsersWithCallback(request *RemoveUsersRequest, callback func(response *RemoveUsersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveUsersResponse + var err error + defer close(result) + response, err = client.RemoveUsers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveUsersRequest is the request struct for api RemoveUsers +type RemoveUsersRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + UserId *[]string `position:"Query" name:"UserId" type:"Repeated"` +} + +// RemoveUsersResponse is the response struct for api RemoveUsers +type RemoveUsersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` +} + +// CreateRemoveUsersRequest creates a request to invoke RemoveUsers API +func CreateRemoveUsersRequest() (request *RemoveUsersRequest) { + request = &RemoveUsersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "RemoveUsers", "", "") + return +} + +// CreateRemoveUsersResponse creates a response to parse from RemoveUsers response +func CreateRemoveUsersResponse() (response *RemoveUsersResponse) { + response = &RemoveUsersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/request_login_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/request_login_info.go new file mode 100644 index 0000000..780fb87 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/request_login_info.go @@ -0,0 +1,108 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RequestLoginInfo invokes the ccc.RequestLoginInfo API synchronously +// api document: https://help.aliyun.com/api/ccc/requestlogininfo.html +func (client *Client) RequestLoginInfo(request *RequestLoginInfoRequest) (response *RequestLoginInfoResponse, err error) { + response = CreateRequestLoginInfoResponse() + err = client.DoAction(request, response) + return +} + +// RequestLoginInfoWithChan invokes the ccc.RequestLoginInfo API asynchronously +// api document: https://help.aliyun.com/api/ccc/requestlogininfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RequestLoginInfoWithChan(request *RequestLoginInfoRequest) (<-chan *RequestLoginInfoResponse, <-chan error) { + responseChan := make(chan *RequestLoginInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RequestLoginInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RequestLoginInfoWithCallback invokes the ccc.RequestLoginInfo API asynchronously +// api document: https://help.aliyun.com/api/ccc/requestlogininfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RequestLoginInfoWithCallback(request *RequestLoginInfoRequest, callback func(response *RequestLoginInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RequestLoginInfoResponse + var err error + defer close(result) + response, err = client.RequestLoginInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RequestLoginInfoRequest is the request struct for api RequestLoginInfo +type RequestLoginInfoRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` +} + +// RequestLoginInfoResponse is the response struct for api RequestLoginInfo +type RequestLoginInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + LoginInfo LoginInfo `json:"LoginInfo" xml:"LoginInfo"` +} + +// CreateRequestLoginInfoRequest creates a request to invoke RequestLoginInfo API +func CreateRequestLoginInfoRequest() (request *RequestLoginInfoRequest) { + request = &RequestLoginInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CCC", "2017-07-05", "RequestLoginInfo", "", "") + return +} + +// CreateRequestLoginInfoResponse creates a response to parse from RequestLoginInfo response +func CreateRequestLoginInfoResponse() (response *RequestLoginInfoResponse) { + response = &RequestLoginInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_agents.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_agents.go new file mode 100644 index 0000000..585278b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_agents.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Agents is a nested struct in ccc response +type Agents struct { + CallDetailAgent []CallDetailAgent `json:"CallDetailAgent" xml:"CallDetailAgent"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_call_detail_agent.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_call_detail_agent.go new file mode 100644 index 0000000..88ba248 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_call_detail_agent.go @@ -0,0 +1,30 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CallDetailAgent is a nested struct in ccc response +type CallDetailAgent struct { + ContactId string `json:"ContactId" xml:"ContactId"` + AgentId string `json:"AgentId" xml:"AgentId"` + AgentName string `json:"AgentName" xml:"AgentName"` + SkillGroupName string `json:"SkillGroupName" xml:"SkillGroupName"` + QueueTime int `json:"QueueTime" xml:"QueueTime"` + RingTime int `json:"RingTime" xml:"RingTime"` + StartTime int `json:"StartTime" xml:"StartTime"` + TalkTime int `json:"TalkTime" xml:"TalkTime"` + HoldTime int `json:"HoldTime" xml:"HoldTime"` + WorkTime int `json:"WorkTime" xml:"WorkTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_call_detail_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_call_detail_record.go new file mode 100644 index 0000000..05d32e8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_call_detail_record.go @@ -0,0 +1,34 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CallDetailRecord is a nested struct in ccc response +type CallDetailRecord struct { + ContactId string `json:"ContactId" xml:"ContactId"` + StartTime int `json:"StartTime" xml:"StartTime"` + Duration int `json:"Duration" xml:"Duration"` + Satisfaction int `json:"Satisfaction" xml:"Satisfaction"` + ContactType string `json:"ContactType" xml:"ContactType"` + ContactDisposition string `json:"ContactDisposition" xml:"ContactDisposition"` + CallingNumber string `json:"CallingNumber" xml:"CallingNumber"` + CalledNumber string `json:"CalledNumber" xml:"CalledNumber"` + AgentNames string `json:"AgentNames" xml:"AgentNames"` + SkillGroupNames string `json:"SkillGroupNames" xml:"SkillGroupNames"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + ExtraAttr string `json:"ExtraAttr" xml:"ExtraAttr"` + Agents Agents `json:"Agents" xml:"Agents"` + Recordings RecordingsInListCallDetailRecords `json:"Recordings" xml:"Recordings"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_call_detail_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_call_detail_records.go new file mode 100644 index 0000000..2fa5f0b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_call_detail_records.go @@ -0,0 +1,24 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CallDetailRecords is a nested struct in ccc response +type CallDetailRecords struct { + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + List ListInListCallDetailRecords `json:"List" xml:"List"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_config_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_config_item.go new file mode 100644 index 0000000..fa9e912 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_config_item.go @@ -0,0 +1,22 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ConfigItem is a nested struct in ccc response +type ConfigItem struct { + Name string `json:"Name" xml:"Name"` + Value string `json:"Value" xml:"Value"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_contact_flow.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_contact_flow.go new file mode 100644 index 0000000..27627aa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_contact_flow.go @@ -0,0 +1,28 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContactFlow is a nested struct in ccc response +type ContactFlow struct { + ContactFlowDescription string `json:"ContactFlowDescription" xml:"ContactFlowDescription"` + ContactFlowName string `json:"ContactFlowName" xml:"ContactFlowName"` + ContactFlowId string `json:"ContactFlowId" xml:"ContactFlowId"` + Type string `json:"Type" xml:"Type"` + AppliedVersion string `json:"AppliedVersion" xml:"AppliedVersion"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + PhoneNumbers PhoneNumbersInListContactFlows `json:"PhoneNumbers" xml:"PhoneNumbers"` + Versions Versions `json:"Versions" xml:"Versions"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_contact_flow_version.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_contact_flow_version.go new file mode 100644 index 0000000..0c1d446 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_contact_flow_version.go @@ -0,0 +1,27 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContactFlowVersion is a nested struct in ccc response +type ContactFlowVersion struct { + ContactFlowVersionId string `json:"ContactFlowVersionId" xml:"ContactFlowVersionId"` + Version string `json:"Version" xml:"Version"` + ContactFlowVersionDescription string `json:"ContactFlowVersionDescription" xml:"ContactFlowVersionDescription"` + LastModified string `json:"LastModified" xml:"LastModified"` + LastModifiedBy string `json:"LastModifiedBy" xml:"LastModifiedBy"` + LockedBy string `json:"LockedBy" xml:"LockedBy"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_contact_flows.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_contact_flows.go new file mode 100644 index 0000000..15929b2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_contact_flows.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContactFlows is a nested struct in ccc response +type ContactFlows struct { + ContactFlow []ContactFlow `json:"ContactFlow" xml:"ContactFlow"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_detail.go new file mode 100644 index 0000000..42c5149 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_detail.go @@ -0,0 +1,25 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Detail is a nested struct in ccc response +type Detail struct { + Email string `json:"Email" xml:"Email"` + DisplayName string `json:"DisplayName" xml:"DisplayName"` + Department string `json:"Department" xml:"Department"` + Phone string `json:"Phone" xml:"Phone"` + LoginName string `json:"LoginName" xml:"LoginName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_list_in_list_call_detail_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_list_in_list_call_detail_records.go new file mode 100644 index 0000000..624b934 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_list_in_list_call_detail_records.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ListInListCallDetailRecords is a nested struct in ccc response +type ListInListCallDetailRecords struct { + CallDetailRecord []CallDetailRecord `json:"CallDetailRecord" xml:"CallDetailRecord"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_list_in_list_recordings.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_list_in_list_recordings.go new file mode 100644 index 0000000..f0449ec --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_list_in_list_recordings.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ListInListRecordings is a nested struct in ccc response +type ListInListRecordings struct { + Recording []Recording `json:"Recording" xml:"Recording"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_list_in_list_users.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_list_in_list_users.go new file mode 100644 index 0000000..09d6530 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_list_in_list_users.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ListInListUsers is a nested struct in ccc response +type ListInListUsers struct { + User []User `json:"User" xml:"User"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_list_in_list_users_of_skill_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_list_in_list_users_of_skill_group.go new file mode 100644 index 0000000..62cdd89 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_list_in_list_users_of_skill_group.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ListInListUsersOfSkillGroup is a nested struct in ccc response +type ListInListUsersOfSkillGroup struct { + User []User `json:"User" xml:"User"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_login_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_login_info.go new file mode 100644 index 0000000..f4e9878 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_login_info.go @@ -0,0 +1,30 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LoginInfo is a nested struct in ccc response +type LoginInfo struct { + UserName string `json:"UserName" xml:"UserName"` + DisplayName string `json:"DisplayName" xml:"DisplayName"` + PhoneNumber string `json:"PhoneNumber" xml:"PhoneNumber"` + Region string `json:"Region" xml:"Region"` + WebRtcUrl string `json:"WebRtcUrl" xml:"WebRtcUrl"` + AgentServerUrl string `json:"AgentServerUrl" xml:"AgentServerUrl"` + Extension string `json:"Extension" xml:"Extension"` + TenantId string `json:"TenantId" xml:"TenantId"` + Signature string `json:"Signature" xml:"Signature"` + SignData string `json:"SignData" xml:"SignData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_media_download_param.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_media_download_param.go new file mode 100644 index 0000000..05ff80f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_media_download_param.go @@ -0,0 +1,22 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MediaDownloadParam is a nested struct in ccc response +type MediaDownloadParam struct { + SignatureUrl string `json:"SignatureUrl" xml:"SignatureUrl"` + FileName string `json:"FileName" xml:"FileName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_outbound_phone_numbers_in_list_skill_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_outbound_phone_numbers_in_list_skill_groups.go new file mode 100644 index 0000000..996d481 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_outbound_phone_numbers_in_list_skill_groups.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OutboundPhoneNumbersInListSkillGroups is a nested struct in ccc response +type OutboundPhoneNumbersInListSkillGroups struct { + PhoneNumber []PhoneNumber `json:"PhoneNumber" xml:"PhoneNumber"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_outbound_phone_numbers_in_list_skill_groups_of_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_outbound_phone_numbers_in_list_skill_groups_of_user.go new file mode 100644 index 0000000..5f2bb8b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_outbound_phone_numbers_in_list_skill_groups_of_user.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OutboundPhoneNumbersInListSkillGroupsOfUser is a nested struct in ccc response +type OutboundPhoneNumbersInListSkillGroupsOfUser struct { + PhoneNumber []PhoneNumber `json:"PhoneNumber" xml:"PhoneNumber"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_phone_number.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_phone_number.go new file mode 100644 index 0000000..e9b77ee --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_phone_number.go @@ -0,0 +1,30 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PhoneNumber is a nested struct in ccc response +type PhoneNumber struct { + PhoneNumberId string `json:"PhoneNumberId" xml:"PhoneNumberId"` + RemainingTime int `json:"RemainingTime" xml:"RemainingTime"` + Trunks int `json:"Trunks" xml:"Trunks"` + AllowOutbound bool `json:"AllowOutbound" xml:"AllowOutbound"` + TestOnly bool `json:"TestOnly" xml:"TestOnly"` + PhoneNumberDescription string `json:"PhoneNumberDescription" xml:"PhoneNumberDescription"` + Usage string `json:"Usage" xml:"Usage"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Number string `json:"Number" xml:"Number"` + ContactFlow ContactFlow `json:"ContactFlow" xml:"ContactFlow"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_phone_numbers_in_list_contact_flows.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_phone_numbers_in_list_contact_flows.go new file mode 100644 index 0000000..d8b3cd5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_phone_numbers_in_list_contact_flows.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PhoneNumbersInListContactFlows is a nested struct in ccc response +type PhoneNumbersInListContactFlows struct { + PhoneNumber []PhoneNumber `json:"PhoneNumber" xml:"PhoneNumber"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_phone_numbers_in_list_phone_numbers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_phone_numbers_in_list_phone_numbers.go new file mode 100644 index 0000000..9900599 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_phone_numbers_in_list_phone_numbers.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PhoneNumbersInListPhoneNumbers is a nested struct in ccc response +type PhoneNumbersInListPhoneNumbers struct { + PhoneNumber []PhoneNumber `json:"PhoneNumber" xml:"PhoneNumber"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_privilege.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_privilege.go new file mode 100644 index 0000000..8a7eda5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_privilege.go @@ -0,0 +1,23 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Privilege is a nested struct in ccc response +type Privilege struct { + PrivilegeId string `json:"PrivilegeId" xml:"PrivilegeId"` + PrivilegeName string `json:"PrivilegeName" xml:"PrivilegeName"` + PrivilegeDescription string `json:"PrivilegeDescription" xml:"PrivilegeDescription"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_privileges.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_privileges.go new file mode 100644 index 0000000..92fa960 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_privileges.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Privileges is a nested struct in ccc response +type Privileges struct { + Privilege []Privilege `json:"Privilege" xml:"Privilege"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_recording.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_recording.go new file mode 100644 index 0000000..eaf5580 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_recording.go @@ -0,0 +1,33 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Recording is a nested struct in ccc response +type Recording struct { + AgentId string `json:"AgentId" xml:"AgentId"` + Duration int `json:"Duration" xml:"Duration"` + CallingNumber string `json:"CallingNumber" xml:"CallingNumber"` + ContactType string `json:"ContactType" xml:"ContactType"` + FilePath string `json:"FilePath" xml:"FilePath"` + FileDescription string `json:"FileDescription" xml:"FileDescription"` + Channel string `json:"Channel" xml:"Channel"` + StartTime int `json:"StartTime" xml:"StartTime"` + CalledNumber string `json:"CalledNumber" xml:"CalledNumber"` + ContactId string `json:"ContactId" xml:"ContactId"` + FileName string `json:"FileName" xml:"FileName"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + AgentName string `json:"AgentName" xml:"AgentName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_recordings.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_recordings.go new file mode 100644 index 0000000..4d43960 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_recordings.go @@ -0,0 +1,24 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Recordings is a nested struct in ccc response +type Recordings struct { + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + List ListInListRecordings `json:"List" xml:"List"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_recordings_in_list_call_detail_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_recordings_in_list_call_detail_records.go new file mode 100644 index 0000000..cdbcfc7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_recordings_in_list_call_detail_records.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordingsInListCallDetailRecords is a nested struct in ccc response +type RecordingsInListCallDetailRecords struct { + Recording []Recording `json:"Recording" xml:"Recording"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_recordings_in_list_recordings_by_contact_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_recordings_in_list_recordings_by_contact_id.go new file mode 100644 index 0000000..6154895 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_recordings_in_list_recordings_by_contact_id.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordingsInListRecordingsByContactId is a nested struct in ccc response +type RecordingsInListRecordingsByContactId struct { + Recording []Recording `json:"Recording" xml:"Recording"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_role.go new file mode 100644 index 0000000..31e6651 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_role.go @@ -0,0 +1,26 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Role is a nested struct in ccc response +type Role struct { + RoleId string `json:"RoleId" xml:"RoleId"` + RoleDescription string `json:"RoleDescription" xml:"RoleDescription"` + RoleName string `json:"RoleName" xml:"RoleName"` + UserCount int `json:"UserCount" xml:"UserCount"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Privileges Privileges `json:"Privileges" xml:"Privileges"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_roles_in_get_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_roles_in_get_user.go new file mode 100644 index 0000000..492dec0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_roles_in_get_user.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RolesInGetUser is a nested struct in ccc response +type RolesInGetUser struct { + Role []Role `json:"Role" xml:"Role"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_roles_in_list_roles.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_roles_in_list_roles.go new file mode 100644 index 0000000..5c2afd8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_roles_in_list_roles.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RolesInListRoles is a nested struct in ccc response +type RolesInListRoles struct { + Role []Role `json:"Role" xml:"Role"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_roles_in_list_users.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_roles_in_list_users.go new file mode 100644 index 0000000..75618f3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_roles_in_list_users.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RolesInListUsers is a nested struct in ccc response +type RolesInListUsers struct { + Role []Role `json:"Role" xml:"Role"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_roles_in_list_users_of_skill_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_roles_in_list_users_of_skill_group.go new file mode 100644 index 0000000..8c09482 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_roles_in_list_users_of_skill_group.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RolesInListUsersOfSkillGroup is a nested struct in ccc response +type RolesInListUsersOfSkillGroup struct { + Role []Role `json:"Role" xml:"Role"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_service_extension.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_service_extension.go new file mode 100644 index 0000000..1e24d2f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_service_extension.go @@ -0,0 +1,22 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServiceExtension is a nested struct in ccc response +type ServiceExtension struct { + Name string `json:"Name" xml:"Name"` + Number string `json:"Number" xml:"Number"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_service_extensions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_service_extensions.go new file mode 100644 index 0000000..762dbec --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_service_extensions.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServiceExtensions is a nested struct in ccc response +type ServiceExtensions struct { + ServiceExtension []ServiceExtension `json:"ServiceExtension" xml:"ServiceExtension"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill.go new file mode 100644 index 0000000..6b5704e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill.go @@ -0,0 +1,25 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Skill is a nested struct in ccc response +type Skill struct { + SkillGroupName string `json:"SkillGroupName" xml:"SkillGroupName"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + SkillGroupDescription string `json:"SkillGroupDescription" xml:"SkillGroupDescription"` + SkillGroupId string `json:"SkillGroupId" xml:"SkillGroupId"` + OutboundPhoneNumbers OutboundPhoneNumbersInListSkillGroupsOfUser `json:"OutboundPhoneNumbers" xml:"OutboundPhoneNumbers"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_group.go new file mode 100644 index 0000000..8e60d50 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_group.go @@ -0,0 +1,28 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SkillGroup is a nested struct in ccc response +type SkillGroup struct { + SkillGroupId string `json:"SkillGroupId" xml:"SkillGroupId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + SkillGroupName string `json:"SkillGroupName" xml:"SkillGroupName"` + AccSkillGroupName string `json:"AccSkillGroupName" xml:"AccSkillGroupName"` + AccQueueName string `json:"AccQueueName" xml:"AccQueueName"` + SkillGroupDescription string `json:"SkillGroupDescription" xml:"SkillGroupDescription"` + UserCount int `json:"UserCount" xml:"UserCount"` + OutboundPhoneNumbers OutboundPhoneNumbersInListSkillGroups `json:"OutboundPhoneNumbers" xml:"OutboundPhoneNumbers"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_groups.go new file mode 100644 index 0000000..59e3583 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_groups.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SkillGroups is a nested struct in ccc response +type SkillGroups struct { + SkillGroup []SkillGroup `json:"SkillGroup" xml:"SkillGroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_level.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_level.go new file mode 100644 index 0000000..06f011d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_level.go @@ -0,0 +1,23 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SkillLevel is a nested struct in ccc response +type SkillLevel struct { + SkillLevelId string `json:"SkillLevelId" xml:"SkillLevelId"` + Level int `json:"Level" xml:"Level"` + Skill Skill `json:"Skill" xml:"Skill"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_levels_in_get_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_levels_in_get_user.go new file mode 100644 index 0000000..699e5b2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_levels_in_get_user.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SkillLevelsInGetUser is a nested struct in ccc response +type SkillLevelsInGetUser struct { + SkillLevel []SkillLevel `json:"SkillLevel" xml:"SkillLevel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_levels_in_list_skill_groups_of_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_levels_in_list_skill_groups_of_user.go new file mode 100644 index 0000000..b05060c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_levels_in_list_skill_groups_of_user.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SkillLevelsInListSkillGroupsOfUser is a nested struct in ccc response +type SkillLevelsInListSkillGroupsOfUser struct { + SkillLevel []SkillLevel `json:"SkillLevel" xml:"SkillLevel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_levels_in_list_users.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_levels_in_list_users.go new file mode 100644 index 0000000..f5d693a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_levels_in_list_users.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SkillLevelsInListUsers is a nested struct in ccc response +type SkillLevelsInListUsers struct { + SkillLevel []SkillLevel `json:"SkillLevel" xml:"SkillLevel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_levels_in_list_users_of_skill_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_levels_in_list_users_of_skill_group.go new file mode 100644 index 0000000..217dfda --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_skill_levels_in_list_users_of_skill_group.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SkillLevelsInListUsersOfSkillGroup is a nested struct in ccc response +type SkillLevelsInListUsersOfSkillGroup struct { + SkillLevel []SkillLevel `json:"SkillLevel" xml:"SkillLevel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_token.go new file mode 100644 index 0000000..f55f8fb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_token.go @@ -0,0 +1,22 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Token is a nested struct in ccc response +type Token struct { + Signature string `json:"Signature" xml:"Signature"` + SignData string `json:"SignData" xml:"SignData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_user.go new file mode 100644 index 0000000..3e1cb3b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_user.go @@ -0,0 +1,27 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// User is a nested struct in ccc response +type User struct { + UserId string `json:"UserId" xml:"UserId"` + RamId string `json:"RamId" xml:"RamId"` + Primary bool `json:"Primary" xml:"Primary"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Detail Detail `json:"Detail" xml:"Detail"` + SkillLevels SkillLevelsInGetUser `json:"SkillLevels" xml:"SkillLevels"` + Roles RolesInListUsersOfSkillGroup `json:"Roles" xml:"Roles"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_users.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_users.go new file mode 100644 index 0000000..93a44dd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_users.go @@ -0,0 +1,24 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Users is a nested struct in ccc response +type Users struct { + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + List ListInListUsersOfSkillGroup `json:"List" xml:"List"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_versions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_versions.go new file mode 100644 index 0000000..48130d3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ccc/struct_versions.go @@ -0,0 +1,21 @@ +package ccc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Versions is a nested struct in ccc response +type Versions struct { + ContactFlowVersion []ContactFlowVersion `json:"ContactFlowVersion" xml:"ContactFlowVersion"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_cdn_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_cdn_domain.go new file mode 100644 index 0000000..8f75c61 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_cdn_domain.go @@ -0,0 +1,117 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddCdnDomain invokes the cdn.AddCdnDomain API synchronously +// api document: https://help.aliyun.com/api/cdn/addcdndomain.html +func (client *Client) AddCdnDomain(request *AddCdnDomainRequest) (response *AddCdnDomainResponse, err error) { + response = CreateAddCdnDomainResponse() + err = client.DoAction(request, response) + return +} + +// AddCdnDomainWithChan invokes the cdn.AddCdnDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/addcdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCdnDomainWithChan(request *AddCdnDomainRequest) (<-chan *AddCdnDomainResponse, <-chan error) { + responseChan := make(chan *AddCdnDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddCdnDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddCdnDomainWithCallback invokes the cdn.AddCdnDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/addcdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCdnDomainWithCallback(request *AddCdnDomainRequest, callback func(response *AddCdnDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddCdnDomainResponse + var err error + defer close(result) + response, err = client.AddCdnDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddCdnDomainRequest is the request struct for api AddCdnDomain +type AddCdnDomainRequest struct { + *requests.RpcRequest + TopLevelDomain string `position:"Query" name:"TopLevelDomain"` + Sources string `position:"Query" name:"Sources"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DomainName string `position:"Query" name:"DomainName"` + LiveType string `position:"Query" name:"LiveType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + SourcePort requests.Integer `position:"Query" name:"SourcePort"` + Priorities string `position:"Query" name:"Priorities"` + SecurityToken string `position:"Query" name:"SecurityToken"` + CdnType string `position:"Query" name:"CdnType"` + Scope string `position:"Query" name:"Scope"` + SourceType string `position:"Query" name:"SourceType"` + CheckUrl string `position:"Query" name:"CheckUrl"` + Region string `position:"Query" name:"Region"` +} + +// AddCdnDomainResponse is the response struct for api AddCdnDomain +type AddCdnDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddCdnDomainRequest creates a request to invoke AddCdnDomain API +func CreateAddCdnDomainRequest() (request *AddCdnDomainRequest) { + request = &AddCdnDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "AddCdnDomain", "", "") + return +} + +// CreateAddCdnDomainResponse creates a response to parse from AddCdnDomain response +func CreateAddCdnDomainResponse() (response *AddCdnDomainResponse) { + response = &AddCdnDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_fc_trigger.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_fc_trigger.go new file mode 100644 index 0000000..e5c6228 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_fc_trigger.go @@ -0,0 +1,109 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddFCTrigger invokes the cdn.AddFCTrigger API synchronously +// api document: https://help.aliyun.com/api/cdn/addfctrigger.html +func (client *Client) AddFCTrigger(request *AddFCTriggerRequest) (response *AddFCTriggerResponse, err error) { + response = CreateAddFCTriggerResponse() + err = client.DoAction(request, response) + return +} + +// AddFCTriggerWithChan invokes the cdn.AddFCTrigger API asynchronously +// api document: https://help.aliyun.com/api/cdn/addfctrigger.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddFCTriggerWithChan(request *AddFCTriggerRequest) (<-chan *AddFCTriggerResponse, <-chan error) { + responseChan := make(chan *AddFCTriggerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddFCTrigger(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddFCTriggerWithCallback invokes the cdn.AddFCTrigger API asynchronously +// api document: https://help.aliyun.com/api/cdn/addfctrigger.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddFCTriggerWithCallback(request *AddFCTriggerRequest, callback func(response *AddFCTriggerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddFCTriggerResponse + var err error + defer close(result) + response, err = client.AddFCTrigger(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddFCTriggerRequest is the request struct for api AddFCTrigger +type AddFCTriggerRequest struct { + *requests.RpcRequest + Notes string `position:"Body" name:"Notes"` + EventMetaVersion string `position:"Body" name:"EventMetaVersion"` + TriggerARN string `position:"Query" name:"TriggerARN"` + SourceARN string `position:"Body" name:"SourceARN"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + RoleARN string `position:"Body" name:"RoleARN"` + EventMetaName string `position:"Body" name:"EventMetaName"` +} + +// AddFCTriggerResponse is the response struct for api AddFCTrigger +type AddFCTriggerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddFCTriggerRequest creates a request to invoke AddFCTrigger API +func CreateAddFCTriggerRequest() (request *AddFCTriggerRequest) { + request = &AddFCTriggerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "AddFCTrigger", "", "") + return +} + +// CreateAddFCTriggerResponse creates a response to parse from AddFCTrigger response +func CreateAddFCTriggerResponse() (response *AddFCTriggerResponse) { + response = &AddFCTriggerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_live_app_record_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_live_app_record_config.go new file mode 100644 index 0000000..bc49b02 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_live_app_record_config.go @@ -0,0 +1,109 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddLiveAppRecordConfig invokes the cdn.AddLiveAppRecordConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/addliveapprecordconfig.html +func (client *Client) AddLiveAppRecordConfig(request *AddLiveAppRecordConfigRequest) (response *AddLiveAppRecordConfigResponse, err error) { + response = CreateAddLiveAppRecordConfigResponse() + err = client.DoAction(request, response) + return +} + +// AddLiveAppRecordConfigWithChan invokes the cdn.AddLiveAppRecordConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/addliveapprecordconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveAppRecordConfigWithChan(request *AddLiveAppRecordConfigRequest) (<-chan *AddLiveAppRecordConfigResponse, <-chan error) { + responseChan := make(chan *AddLiveAppRecordConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddLiveAppRecordConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddLiveAppRecordConfigWithCallback invokes the cdn.AddLiveAppRecordConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/addliveapprecordconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveAppRecordConfigWithCallback(request *AddLiveAppRecordConfigRequest, callback func(response *AddLiveAppRecordConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddLiveAppRecordConfigResponse + var err error + defer close(result) + response, err = client.AddLiveAppRecordConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddLiveAppRecordConfigRequest is the request struct for api AddLiveAppRecordConfig +type AddLiveAppRecordConfigRequest struct { + *requests.RpcRequest + OssBucket string `position:"Query" name:"OssBucket"` + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OssEndpoint string `position:"Query" name:"OssEndpoint"` + OssObjectPrefix string `position:"Query" name:"OssObjectPrefix"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AddLiveAppRecordConfigResponse is the response struct for api AddLiveAppRecordConfig +type AddLiveAppRecordConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddLiveAppRecordConfigRequest creates a request to invoke AddLiveAppRecordConfig API +func CreateAddLiveAppRecordConfigRequest() (request *AddLiveAppRecordConfigRequest) { + request = &AddLiveAppRecordConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "AddLiveAppRecordConfig", "", "") + return +} + +// CreateAddLiveAppRecordConfigResponse creates a response to parse from AddLiveAppRecordConfig response +func CreateAddLiveAppRecordConfigResponse() (response *AddLiveAppRecordConfigResponse) { + response = &AddLiveAppRecordConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_live_app_snapshot_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_live_app_snapshot_config.go new file mode 100644 index 0000000..e209e41 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_live_app_snapshot_config.go @@ -0,0 +1,111 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddLiveAppSnapshotConfig invokes the cdn.AddLiveAppSnapshotConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/addliveappsnapshotconfig.html +func (client *Client) AddLiveAppSnapshotConfig(request *AddLiveAppSnapshotConfigRequest) (response *AddLiveAppSnapshotConfigResponse, err error) { + response = CreateAddLiveAppSnapshotConfigResponse() + err = client.DoAction(request, response) + return +} + +// AddLiveAppSnapshotConfigWithChan invokes the cdn.AddLiveAppSnapshotConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/addliveappsnapshotconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveAppSnapshotConfigWithChan(request *AddLiveAppSnapshotConfigRequest) (<-chan *AddLiveAppSnapshotConfigResponse, <-chan error) { + responseChan := make(chan *AddLiveAppSnapshotConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddLiveAppSnapshotConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddLiveAppSnapshotConfigWithCallback invokes the cdn.AddLiveAppSnapshotConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/addliveappsnapshotconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveAppSnapshotConfigWithCallback(request *AddLiveAppSnapshotConfigRequest, callback func(response *AddLiveAppSnapshotConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddLiveAppSnapshotConfigResponse + var err error + defer close(result) + response, err = client.AddLiveAppSnapshotConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddLiveAppSnapshotConfigRequest is the request struct for api AddLiveAppSnapshotConfig +type AddLiveAppSnapshotConfigRequest struct { + *requests.RpcRequest + TimeInterval requests.Integer `position:"Query" name:"TimeInterval"` + OssBucket string `position:"Query" name:"OssBucket"` + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OssEndpoint string `position:"Query" name:"OssEndpoint"` + SequenceOssObject string `position:"Query" name:"SequenceOssObject"` + OverwriteOssObject string `position:"Query" name:"OverwriteOssObject"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AddLiveAppSnapshotConfigResponse is the response struct for api AddLiveAppSnapshotConfig +type AddLiveAppSnapshotConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddLiveAppSnapshotConfigRequest creates a request to invoke AddLiveAppSnapshotConfig API +func CreateAddLiveAppSnapshotConfigRequest() (request *AddLiveAppSnapshotConfigRequest) { + request = &AddLiveAppSnapshotConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "AddLiveAppSnapshotConfig", "", "") + return +} + +// CreateAddLiveAppSnapshotConfigResponse creates a response to parse from AddLiveAppSnapshotConfig response +func CreateAddLiveAppSnapshotConfigResponse() (response *AddLiveAppSnapshotConfigResponse) { + response = &AddLiveAppSnapshotConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_live_domain_mapping.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_live_domain_mapping.go new file mode 100644 index 0000000..6c2a4aa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_live_domain_mapping.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddLiveDomainMapping invokes the cdn.AddLiveDomainMapping API synchronously +// api document: https://help.aliyun.com/api/cdn/addlivedomainmapping.html +func (client *Client) AddLiveDomainMapping(request *AddLiveDomainMappingRequest) (response *AddLiveDomainMappingResponse, err error) { + response = CreateAddLiveDomainMappingResponse() + err = client.DoAction(request, response) + return +} + +// AddLiveDomainMappingWithChan invokes the cdn.AddLiveDomainMapping API asynchronously +// api document: https://help.aliyun.com/api/cdn/addlivedomainmapping.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveDomainMappingWithChan(request *AddLiveDomainMappingRequest) (<-chan *AddLiveDomainMappingResponse, <-chan error) { + responseChan := make(chan *AddLiveDomainMappingResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddLiveDomainMapping(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddLiveDomainMappingWithCallback invokes the cdn.AddLiveDomainMapping API asynchronously +// api document: https://help.aliyun.com/api/cdn/addlivedomainmapping.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveDomainMappingWithCallback(request *AddLiveDomainMappingRequest, callback func(response *AddLiveDomainMappingResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddLiveDomainMappingResponse + var err error + defer close(result) + response, err = client.AddLiveDomainMapping(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddLiveDomainMappingRequest is the request struct for api AddLiveDomainMapping +type AddLiveDomainMappingRequest struct { + *requests.RpcRequest + PullDomain string `position:"Query" name:"PullDomain"` + SecurityToken string `position:"Query" name:"SecurityToken"` + PushDomain string `position:"Query" name:"PushDomain"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AddLiveDomainMappingResponse is the response struct for api AddLiveDomainMapping +type AddLiveDomainMappingResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddLiveDomainMappingRequest creates a request to invoke AddLiveDomainMapping API +func CreateAddLiveDomainMappingRequest() (request *AddLiveDomainMappingRequest) { + request = &AddLiveDomainMappingRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "AddLiveDomainMapping", "", "") + return +} + +// CreateAddLiveDomainMappingResponse creates a response to parse from AddLiveDomainMapping response +func CreateAddLiveDomainMappingResponse() (response *AddLiveDomainMappingResponse) { + response = &AddLiveDomainMappingResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_live_pull_stream_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_live_pull_stream_info.go new file mode 100644 index 0000000..9c52dbe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_live_pull_stream_info.go @@ -0,0 +1,110 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddLivePullStreamInfo invokes the cdn.AddLivePullStreamInfo API synchronously +// api document: https://help.aliyun.com/api/cdn/addlivepullstreaminfo.html +func (client *Client) AddLivePullStreamInfo(request *AddLivePullStreamInfoRequest) (response *AddLivePullStreamInfoResponse, err error) { + response = CreateAddLivePullStreamInfoResponse() + err = client.DoAction(request, response) + return +} + +// AddLivePullStreamInfoWithChan invokes the cdn.AddLivePullStreamInfo API asynchronously +// api document: https://help.aliyun.com/api/cdn/addlivepullstreaminfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLivePullStreamInfoWithChan(request *AddLivePullStreamInfoRequest) (<-chan *AddLivePullStreamInfoResponse, <-chan error) { + responseChan := make(chan *AddLivePullStreamInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddLivePullStreamInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddLivePullStreamInfoWithCallback invokes the cdn.AddLivePullStreamInfo API asynchronously +// api document: https://help.aliyun.com/api/cdn/addlivepullstreaminfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLivePullStreamInfoWithCallback(request *AddLivePullStreamInfoRequest, callback func(response *AddLivePullStreamInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddLivePullStreamInfoResponse + var err error + defer close(result) + response, err = client.AddLivePullStreamInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddLivePullStreamInfoRequest is the request struct for api AddLivePullStreamInfo +type AddLivePullStreamInfoRequest struct { + *requests.RpcRequest + SourceUrl string `position:"Query" name:"SourceUrl"` + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// AddLivePullStreamInfoResponse is the response struct for api AddLivePullStreamInfo +type AddLivePullStreamInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddLivePullStreamInfoRequest creates a request to invoke AddLivePullStreamInfo API +func CreateAddLivePullStreamInfoRequest() (request *AddLivePullStreamInfoRequest) { + request = &AddLivePullStreamInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "AddLivePullStreamInfo", "", "") + return +} + +// CreateAddLivePullStreamInfoResponse creates a response to parse from AddLivePullStreamInfo response +func CreateAddLivePullStreamInfoResponse() (response *AddLivePullStreamInfoResponse) { + response = &AddLivePullStreamInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_live_stream_transcode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_live_stream_transcode.go new file mode 100644 index 0000000..602c2aa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/add_live_stream_transcode.go @@ -0,0 +1,110 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddLiveStreamTranscode invokes the cdn.AddLiveStreamTranscode API synchronously +// api document: https://help.aliyun.com/api/cdn/addlivestreamtranscode.html +func (client *Client) AddLiveStreamTranscode(request *AddLiveStreamTranscodeRequest) (response *AddLiveStreamTranscodeResponse, err error) { + response = CreateAddLiveStreamTranscodeResponse() + err = client.DoAction(request, response) + return +} + +// AddLiveStreamTranscodeWithChan invokes the cdn.AddLiveStreamTranscode API asynchronously +// api document: https://help.aliyun.com/api/cdn/addlivestreamtranscode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveStreamTranscodeWithChan(request *AddLiveStreamTranscodeRequest) (<-chan *AddLiveStreamTranscodeResponse, <-chan error) { + responseChan := make(chan *AddLiveStreamTranscodeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddLiveStreamTranscode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddLiveStreamTranscodeWithCallback invokes the cdn.AddLiveStreamTranscode API asynchronously +// api document: https://help.aliyun.com/api/cdn/addlivestreamtranscode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveStreamTranscodeWithCallback(request *AddLiveStreamTranscodeRequest, callback func(response *AddLiveStreamTranscodeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddLiveStreamTranscodeResponse + var err error + defer close(result) + response, err = client.AddLiveStreamTranscode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddLiveStreamTranscodeRequest is the request struct for api AddLiveStreamTranscode +type AddLiveStreamTranscodeRequest struct { + *requests.RpcRequest + Template string `position:"Query" name:"Template"` + App string `position:"Query" name:"App"` + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Domain string `position:"Query" name:"Domain"` + Record string `position:"Query" name:"Record"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Snapshot string `position:"Query" name:"Snapshot"` +} + +// AddLiveStreamTranscodeResponse is the response struct for api AddLiveStreamTranscode +type AddLiveStreamTranscodeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddLiveStreamTranscodeRequest creates a request to invoke AddLiveStreamTranscode API +func CreateAddLiveStreamTranscodeRequest() (request *AddLiveStreamTranscodeRequest) { + request = &AddLiveStreamTranscodeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "AddLiveStreamTranscode", "", "") + return +} + +// CreateAddLiveStreamTranscodeResponse creates a response to parse from AddLiveStreamTranscode response +func CreateAddLiveStreamTranscodeResponse() (response *AddLiveStreamTranscodeResponse) { + response = &AddLiveStreamTranscodeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/batch_describe_domain_bps_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/batch_describe_domain_bps_data.go new file mode 100644 index 0000000..c4954e1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/batch_describe_domain_bps_data.go @@ -0,0 +1,112 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// BatchDescribeDomainBpsData invokes the cdn.BatchDescribeDomainBpsData API synchronously +// api document: https://help.aliyun.com/api/cdn/batchdescribedomainbpsdata.html +func (client *Client) BatchDescribeDomainBpsData(request *BatchDescribeDomainBpsDataRequest) (response *BatchDescribeDomainBpsDataResponse, err error) { + response = CreateBatchDescribeDomainBpsDataResponse() + err = client.DoAction(request, response) + return +} + +// BatchDescribeDomainBpsDataWithChan invokes the cdn.BatchDescribeDomainBpsData API asynchronously +// api document: https://help.aliyun.com/api/cdn/batchdescribedomainbpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BatchDescribeDomainBpsDataWithChan(request *BatchDescribeDomainBpsDataRequest) (<-chan *BatchDescribeDomainBpsDataResponse, <-chan error) { + responseChan := make(chan *BatchDescribeDomainBpsDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BatchDescribeDomainBpsData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BatchDescribeDomainBpsDataWithCallback invokes the cdn.BatchDescribeDomainBpsData API asynchronously +// api document: https://help.aliyun.com/api/cdn/batchdescribedomainbpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BatchDescribeDomainBpsDataWithCallback(request *BatchDescribeDomainBpsDataRequest, callback func(response *BatchDescribeDomainBpsDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BatchDescribeDomainBpsDataResponse + var err error + defer close(result) + response, err = client.BatchDescribeDomainBpsData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BatchDescribeDomainBpsDataRequest is the request struct for api BatchDescribeDomainBpsData +type BatchDescribeDomainBpsDataRequest struct { + *requests.RpcRequest + StartTime string `position:"Query" name:"StartTime"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// BatchDescribeDomainBpsDataResponse is the response struct for api BatchDescribeDomainBpsData +type BatchDescribeDomainBpsDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + BpsDatas BpsDatasInBatchDescribeDomainBpsData `json:"BpsDatas" xml:"BpsDatas"` +} + +// CreateBatchDescribeDomainBpsDataRequest creates a request to invoke BatchDescribeDomainBpsData API +func CreateBatchDescribeDomainBpsDataRequest() (request *BatchDescribeDomainBpsDataRequest) { + request = &BatchDescribeDomainBpsDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "BatchDescribeDomainBpsData", "", "") + return +} + +// CreateBatchDescribeDomainBpsDataResponse creates a response to parse from BatchDescribeDomainBpsData response +func CreateBatchDescribeDomainBpsDataResponse() (response *BatchDescribeDomainBpsDataResponse) { + response = &BatchDescribeDomainBpsDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/clear_user_black_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/clear_user_black_list.go new file mode 100644 index 0000000..05a0c92 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/clear_user_black_list.go @@ -0,0 +1,105 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ClearUserBlackList invokes the cdn.ClearUserBlackList API synchronously +// api document: https://help.aliyun.com/api/cdn/clearuserblacklist.html +func (client *Client) ClearUserBlackList(request *ClearUserBlackListRequest) (response *ClearUserBlackListResponse, err error) { + response = CreateClearUserBlackListResponse() + err = client.DoAction(request, response) + return +} + +// ClearUserBlackListWithChan invokes the cdn.ClearUserBlackList API asynchronously +// api document: https://help.aliyun.com/api/cdn/clearuserblacklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ClearUserBlackListWithChan(request *ClearUserBlackListRequest) (<-chan *ClearUserBlackListResponse, <-chan error) { + responseChan := make(chan *ClearUserBlackListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ClearUserBlackList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ClearUserBlackListWithCallback invokes the cdn.ClearUserBlackList API asynchronously +// api document: https://help.aliyun.com/api/cdn/clearuserblacklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ClearUserBlackListWithCallback(request *ClearUserBlackListRequest, callback func(response *ClearUserBlackListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ClearUserBlackListResponse + var err error + defer close(result) + response, err = client.ClearUserBlackList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ClearUserBlackListRequest is the request struct for api ClearUserBlackList +type ClearUserBlackListRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ClearUserBlackListResponse is the response struct for api ClearUserBlackList +type ClearUserBlackListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateClearUserBlackListRequest creates a request to invoke ClearUserBlackList API +func CreateClearUserBlackListRequest() (request *ClearUserBlackListRequest) { + request = &ClearUserBlackListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "ClearUserBlackList", "", "") + return +} + +// CreateClearUserBlackListResponse creates a response to parse from ClearUserBlackList response +func CreateClearUserBlackListResponse() (response *ClearUserBlackListResponse) { + response = &ClearUserBlackListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/clear_user_domain_black_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/clear_user_domain_black_list.go new file mode 100644 index 0000000..0c3871b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/clear_user_domain_black_list.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ClearUserDomainBlackList invokes the cdn.ClearUserDomainBlackList API synchronously +// api document: https://help.aliyun.com/api/cdn/clearuserdomainblacklist.html +func (client *Client) ClearUserDomainBlackList(request *ClearUserDomainBlackListRequest) (response *ClearUserDomainBlackListResponse, err error) { + response = CreateClearUserDomainBlackListResponse() + err = client.DoAction(request, response) + return +} + +// ClearUserDomainBlackListWithChan invokes the cdn.ClearUserDomainBlackList API asynchronously +// api document: https://help.aliyun.com/api/cdn/clearuserdomainblacklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ClearUserDomainBlackListWithChan(request *ClearUserDomainBlackListRequest) (<-chan *ClearUserDomainBlackListResponse, <-chan error) { + responseChan := make(chan *ClearUserDomainBlackListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ClearUserDomainBlackList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ClearUserDomainBlackListWithCallback invokes the cdn.ClearUserDomainBlackList API asynchronously +// api document: https://help.aliyun.com/api/cdn/clearuserdomainblacklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ClearUserDomainBlackListWithCallback(request *ClearUserDomainBlackListRequest, callback func(response *ClearUserDomainBlackListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ClearUserDomainBlackListResponse + var err error + defer close(result) + response, err = client.ClearUserDomainBlackList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ClearUserDomainBlackListRequest is the request struct for api ClearUserDomainBlackList +type ClearUserDomainBlackListRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ClearUserDomainBlackListResponse is the response struct for api ClearUserDomainBlackList +type ClearUserDomainBlackListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateClearUserDomainBlackListRequest creates a request to invoke ClearUserDomainBlackList API +func CreateClearUserDomainBlackListRequest() (request *ClearUserDomainBlackListRequest) { + request = &ClearUserDomainBlackListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "ClearUserDomainBlackList", "", "") + return +} + +// CreateClearUserDomainBlackListResponse creates a response to parse from ClearUserDomainBlackList response +func CreateClearUserDomainBlackListResponse() (response *ClearUserDomainBlackListResponse) { + response = &ClearUserDomainBlackListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/client.go new file mode 100644 index 0000000..7d2bbc3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/client.go @@ -0,0 +1,81 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/create_live_stream_record_index_files.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/create_live_stream_record_index_files.go new file mode 100644 index 0000000..4d62799 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/create_live_stream_record_index_files.go @@ -0,0 +1,113 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateLiveStreamRecordIndexFiles invokes the cdn.CreateLiveStreamRecordIndexFiles API synchronously +// api document: https://help.aliyun.com/api/cdn/createlivestreamrecordindexfiles.html +func (client *Client) CreateLiveStreamRecordIndexFiles(request *CreateLiveStreamRecordIndexFilesRequest) (response *CreateLiveStreamRecordIndexFilesResponse, err error) { + response = CreateCreateLiveStreamRecordIndexFilesResponse() + err = client.DoAction(request, response) + return +} + +// CreateLiveStreamRecordIndexFilesWithChan invokes the cdn.CreateLiveStreamRecordIndexFiles API asynchronously +// api document: https://help.aliyun.com/api/cdn/createlivestreamrecordindexfiles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLiveStreamRecordIndexFilesWithChan(request *CreateLiveStreamRecordIndexFilesRequest) (<-chan *CreateLiveStreamRecordIndexFilesResponse, <-chan error) { + responseChan := make(chan *CreateLiveStreamRecordIndexFilesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateLiveStreamRecordIndexFiles(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateLiveStreamRecordIndexFilesWithCallback invokes the cdn.CreateLiveStreamRecordIndexFiles API asynchronously +// api document: https://help.aliyun.com/api/cdn/createlivestreamrecordindexfiles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLiveStreamRecordIndexFilesWithCallback(request *CreateLiveStreamRecordIndexFilesRequest, callback func(response *CreateLiveStreamRecordIndexFilesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateLiveStreamRecordIndexFilesResponse + var err error + defer close(result) + response, err = client.CreateLiveStreamRecordIndexFiles(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateLiveStreamRecordIndexFilesRequest is the request struct for api CreateLiveStreamRecordIndexFiles +type CreateLiveStreamRecordIndexFilesRequest struct { + *requests.RpcRequest + OssBucket string `position:"Query" name:"OssBucket"` + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OssEndpoint string `position:"Query" name:"OssEndpoint"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` + OssObject string `position:"Query" name:"OssObject"` +} + +// CreateLiveStreamRecordIndexFilesResponse is the response struct for api CreateLiveStreamRecordIndexFiles +type CreateLiveStreamRecordIndexFilesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RecordInfo RecordInfo `json:"RecordInfo" xml:"RecordInfo"` +} + +// CreateCreateLiveStreamRecordIndexFilesRequest creates a request to invoke CreateLiveStreamRecordIndexFiles API +func CreateCreateLiveStreamRecordIndexFilesRequest() (request *CreateLiveStreamRecordIndexFilesRequest) { + request = &CreateLiveStreamRecordIndexFilesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "CreateLiveStreamRecordIndexFiles", "", "") + return +} + +// CreateCreateLiveStreamRecordIndexFilesResponse creates a response to parse from CreateLiveStreamRecordIndexFiles response +func CreateCreateLiveStreamRecordIndexFilesResponse() (response *CreateLiveStreamRecordIndexFilesResponse) { + response = &CreateLiveStreamRecordIndexFilesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_cache_expired_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_cache_expired_config.go new file mode 100644 index 0000000..cfcd72b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_cache_expired_config.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCacheExpiredConfig invokes the cdn.DeleteCacheExpiredConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/deletecacheexpiredconfig.html +func (client *Client) DeleteCacheExpiredConfig(request *DeleteCacheExpiredConfigRequest) (response *DeleteCacheExpiredConfigResponse, err error) { + response = CreateDeleteCacheExpiredConfigResponse() + err = client.DoAction(request, response) + return +} + +// DeleteCacheExpiredConfigWithChan invokes the cdn.DeleteCacheExpiredConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/deletecacheexpiredconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCacheExpiredConfigWithChan(request *DeleteCacheExpiredConfigRequest) (<-chan *DeleteCacheExpiredConfigResponse, <-chan error) { + responseChan := make(chan *DeleteCacheExpiredConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCacheExpiredConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteCacheExpiredConfigWithCallback invokes the cdn.DeleteCacheExpiredConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/deletecacheexpiredconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCacheExpiredConfigWithCallback(request *DeleteCacheExpiredConfigRequest, callback func(response *DeleteCacheExpiredConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteCacheExpiredConfigResponse + var err error + defer close(result) + response, err = client.DeleteCacheExpiredConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteCacheExpiredConfigRequest is the request struct for api DeleteCacheExpiredConfig +type DeleteCacheExpiredConfigRequest struct { + *requests.RpcRequest + CacheType string `position:"Query" name:"CacheType"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ConfigID string `position:"Query" name:"ConfigID"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteCacheExpiredConfigResponse is the response struct for api DeleteCacheExpiredConfig +type DeleteCacheExpiredConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteCacheExpiredConfigRequest creates a request to invoke DeleteCacheExpiredConfig API +func CreateDeleteCacheExpiredConfigRequest() (request *DeleteCacheExpiredConfigRequest) { + request = &DeleteCacheExpiredConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DeleteCacheExpiredConfig", "", "") + return +} + +// CreateDeleteCacheExpiredConfigResponse creates a response to parse from DeleteCacheExpiredConfig response +func CreateDeleteCacheExpiredConfigResponse() (response *DeleteCacheExpiredConfigResponse) { + response = &DeleteCacheExpiredConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_cdn_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_cdn_domain.go new file mode 100644 index 0000000..91e3f8c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_cdn_domain.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCdnDomain invokes the cdn.DeleteCdnDomain API synchronously +// api document: https://help.aliyun.com/api/cdn/deletecdndomain.html +func (client *Client) DeleteCdnDomain(request *DeleteCdnDomainRequest) (response *DeleteCdnDomainResponse, err error) { + response = CreateDeleteCdnDomainResponse() + err = client.DoAction(request, response) + return +} + +// DeleteCdnDomainWithChan invokes the cdn.DeleteCdnDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/deletecdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCdnDomainWithChan(request *DeleteCdnDomainRequest) (<-chan *DeleteCdnDomainResponse, <-chan error) { + responseChan := make(chan *DeleteCdnDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCdnDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteCdnDomainWithCallback invokes the cdn.DeleteCdnDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/deletecdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCdnDomainWithCallback(request *DeleteCdnDomainRequest, callback func(response *DeleteCdnDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteCdnDomainResponse + var err error + defer close(result) + response, err = client.DeleteCdnDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteCdnDomainRequest is the request struct for api DeleteCdnDomain +type DeleteCdnDomainRequest struct { + *requests.RpcRequest + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteCdnDomainResponse is the response struct for api DeleteCdnDomain +type DeleteCdnDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteCdnDomainRequest creates a request to invoke DeleteCdnDomain API +func CreateDeleteCdnDomainRequest() (request *DeleteCdnDomainRequest) { + request = &DeleteCdnDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DeleteCdnDomain", "", "") + return +} + +// CreateDeleteCdnDomainResponse creates a response to parse from DeleteCdnDomain response +func CreateDeleteCdnDomainResponse() (response *DeleteCdnDomainResponse) { + response = &DeleteCdnDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_fc_trigger.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_fc_trigger.go new file mode 100644 index 0000000..a146294 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_fc_trigger.go @@ -0,0 +1,104 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteFCTrigger invokes the cdn.DeleteFCTrigger API synchronously +// api document: https://help.aliyun.com/api/cdn/deletefctrigger.html +func (client *Client) DeleteFCTrigger(request *DeleteFCTriggerRequest) (response *DeleteFCTriggerResponse, err error) { + response = CreateDeleteFCTriggerResponse() + err = client.DoAction(request, response) + return +} + +// DeleteFCTriggerWithChan invokes the cdn.DeleteFCTrigger API asynchronously +// api document: https://help.aliyun.com/api/cdn/deletefctrigger.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteFCTriggerWithChan(request *DeleteFCTriggerRequest) (<-chan *DeleteFCTriggerResponse, <-chan error) { + responseChan := make(chan *DeleteFCTriggerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteFCTrigger(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteFCTriggerWithCallback invokes the cdn.DeleteFCTrigger API asynchronously +// api document: https://help.aliyun.com/api/cdn/deletefctrigger.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteFCTriggerWithCallback(request *DeleteFCTriggerRequest, callback func(response *DeleteFCTriggerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteFCTriggerResponse + var err error + defer close(result) + response, err = client.DeleteFCTrigger(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteFCTriggerRequest is the request struct for api DeleteFCTrigger +type DeleteFCTriggerRequest struct { + *requests.RpcRequest + TriggerARN string `position:"Query" name:"TriggerARN"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteFCTriggerResponse is the response struct for api DeleteFCTrigger +type DeleteFCTriggerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteFCTriggerRequest creates a request to invoke DeleteFCTrigger API +func CreateDeleteFCTriggerRequest() (request *DeleteFCTriggerRequest) { + request = &DeleteFCTriggerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DeleteFCTrigger", "", "") + return +} + +// CreateDeleteFCTriggerResponse creates a response to parse from DeleteFCTrigger response +func CreateDeleteFCTriggerResponse() (response *DeleteFCTriggerResponse) { + response = &DeleteFCTriggerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_http_header_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_http_header_config.go new file mode 100644 index 0000000..29024ca --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_http_header_config.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteHttpHeaderConfig invokes the cdn.DeleteHttpHeaderConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/deletehttpheaderconfig.html +func (client *Client) DeleteHttpHeaderConfig(request *DeleteHttpHeaderConfigRequest) (response *DeleteHttpHeaderConfigResponse, err error) { + response = CreateDeleteHttpHeaderConfigResponse() + err = client.DoAction(request, response) + return +} + +// DeleteHttpHeaderConfigWithChan invokes the cdn.DeleteHttpHeaderConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/deletehttpheaderconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteHttpHeaderConfigWithChan(request *DeleteHttpHeaderConfigRequest) (<-chan *DeleteHttpHeaderConfigResponse, <-chan error) { + responseChan := make(chan *DeleteHttpHeaderConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteHttpHeaderConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteHttpHeaderConfigWithCallback invokes the cdn.DeleteHttpHeaderConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/deletehttpheaderconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteHttpHeaderConfigWithCallback(request *DeleteHttpHeaderConfigRequest, callback func(response *DeleteHttpHeaderConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteHttpHeaderConfigResponse + var err error + defer close(result) + response, err = client.DeleteHttpHeaderConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteHttpHeaderConfigRequest is the request struct for api DeleteHttpHeaderConfig +type DeleteHttpHeaderConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + ConfigID string `position:"Query" name:"ConfigID"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteHttpHeaderConfigResponse is the response struct for api DeleteHttpHeaderConfig +type DeleteHttpHeaderConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteHttpHeaderConfigRequest creates a request to invoke DeleteHttpHeaderConfig API +func CreateDeleteHttpHeaderConfigRequest() (request *DeleteHttpHeaderConfigRequest) { + request = &DeleteHttpHeaderConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DeleteHttpHeaderConfig", "", "") + return +} + +// CreateDeleteHttpHeaderConfigResponse creates a response to parse from DeleteHttpHeaderConfig response +func CreateDeleteHttpHeaderConfigResponse() (response *DeleteHttpHeaderConfigResponse) { + response = &DeleteHttpHeaderConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_live_app_record_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_live_app_record_config.go new file mode 100644 index 0000000..a2d88a4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_live_app_record_config.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLiveAppRecordConfig invokes the cdn.DeleteLiveAppRecordConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/deleteliveapprecordconfig.html +func (client *Client) DeleteLiveAppRecordConfig(request *DeleteLiveAppRecordConfigRequest) (response *DeleteLiveAppRecordConfigResponse, err error) { + response = CreateDeleteLiveAppRecordConfigResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLiveAppRecordConfigWithChan invokes the cdn.DeleteLiveAppRecordConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/deleteliveapprecordconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveAppRecordConfigWithChan(request *DeleteLiveAppRecordConfigRequest) (<-chan *DeleteLiveAppRecordConfigResponse, <-chan error) { + responseChan := make(chan *DeleteLiveAppRecordConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLiveAppRecordConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLiveAppRecordConfigWithCallback invokes the cdn.DeleteLiveAppRecordConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/deleteliveapprecordconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveAppRecordConfigWithCallback(request *DeleteLiveAppRecordConfigRequest, callback func(response *DeleteLiveAppRecordConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLiveAppRecordConfigResponse + var err error + defer close(result) + response, err = client.DeleteLiveAppRecordConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLiveAppRecordConfigRequest is the request struct for api DeleteLiveAppRecordConfig +type DeleteLiveAppRecordConfigRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteLiveAppRecordConfigResponse is the response struct for api DeleteLiveAppRecordConfig +type DeleteLiveAppRecordConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLiveAppRecordConfigRequest creates a request to invoke DeleteLiveAppRecordConfig API +func CreateDeleteLiveAppRecordConfigRequest() (request *DeleteLiveAppRecordConfigRequest) { + request = &DeleteLiveAppRecordConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DeleteLiveAppRecordConfig", "", "") + return +} + +// CreateDeleteLiveAppRecordConfigResponse creates a response to parse from DeleteLiveAppRecordConfig response +func CreateDeleteLiveAppRecordConfigResponse() (response *DeleteLiveAppRecordConfigResponse) { + response = &DeleteLiveAppRecordConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_live_app_snapshot_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_live_app_snapshot_config.go new file mode 100644 index 0000000..8afb68c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_live_app_snapshot_config.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLiveAppSnapshotConfig invokes the cdn.DeleteLiveAppSnapshotConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/deleteliveappsnapshotconfig.html +func (client *Client) DeleteLiveAppSnapshotConfig(request *DeleteLiveAppSnapshotConfigRequest) (response *DeleteLiveAppSnapshotConfigResponse, err error) { + response = CreateDeleteLiveAppSnapshotConfigResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLiveAppSnapshotConfigWithChan invokes the cdn.DeleteLiveAppSnapshotConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/deleteliveappsnapshotconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveAppSnapshotConfigWithChan(request *DeleteLiveAppSnapshotConfigRequest) (<-chan *DeleteLiveAppSnapshotConfigResponse, <-chan error) { + responseChan := make(chan *DeleteLiveAppSnapshotConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLiveAppSnapshotConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLiveAppSnapshotConfigWithCallback invokes the cdn.DeleteLiveAppSnapshotConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/deleteliveappsnapshotconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveAppSnapshotConfigWithCallback(request *DeleteLiveAppSnapshotConfigRequest, callback func(response *DeleteLiveAppSnapshotConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLiveAppSnapshotConfigResponse + var err error + defer close(result) + response, err = client.DeleteLiveAppSnapshotConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLiveAppSnapshotConfigRequest is the request struct for api DeleteLiveAppSnapshotConfig +type DeleteLiveAppSnapshotConfigRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteLiveAppSnapshotConfigResponse is the response struct for api DeleteLiveAppSnapshotConfig +type DeleteLiveAppSnapshotConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLiveAppSnapshotConfigRequest creates a request to invoke DeleteLiveAppSnapshotConfig API +func CreateDeleteLiveAppSnapshotConfigRequest() (request *DeleteLiveAppSnapshotConfigRequest) { + request = &DeleteLiveAppSnapshotConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DeleteLiveAppSnapshotConfig", "", "") + return +} + +// CreateDeleteLiveAppSnapshotConfigResponse creates a response to parse from DeleteLiveAppSnapshotConfig response +func CreateDeleteLiveAppSnapshotConfigResponse() (response *DeleteLiveAppSnapshotConfigResponse) { + response = &DeleteLiveAppSnapshotConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_live_domain_mapping.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_live_domain_mapping.go new file mode 100644 index 0000000..a64527e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_live_domain_mapping.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLiveDomainMapping invokes the cdn.DeleteLiveDomainMapping API synchronously +// api document: https://help.aliyun.com/api/cdn/deletelivedomainmapping.html +func (client *Client) DeleteLiveDomainMapping(request *DeleteLiveDomainMappingRequest) (response *DeleteLiveDomainMappingResponse, err error) { + response = CreateDeleteLiveDomainMappingResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLiveDomainMappingWithChan invokes the cdn.DeleteLiveDomainMapping API asynchronously +// api document: https://help.aliyun.com/api/cdn/deletelivedomainmapping.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveDomainMappingWithChan(request *DeleteLiveDomainMappingRequest) (<-chan *DeleteLiveDomainMappingResponse, <-chan error) { + responseChan := make(chan *DeleteLiveDomainMappingResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLiveDomainMapping(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLiveDomainMappingWithCallback invokes the cdn.DeleteLiveDomainMapping API asynchronously +// api document: https://help.aliyun.com/api/cdn/deletelivedomainmapping.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveDomainMappingWithCallback(request *DeleteLiveDomainMappingRequest, callback func(response *DeleteLiveDomainMappingResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLiveDomainMappingResponse + var err error + defer close(result) + response, err = client.DeleteLiveDomainMapping(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLiveDomainMappingRequest is the request struct for api DeleteLiveDomainMapping +type DeleteLiveDomainMappingRequest struct { + *requests.RpcRequest + PullDomain string `position:"Query" name:"PullDomain"` + SecurityToken string `position:"Query" name:"SecurityToken"` + PushDomain string `position:"Query" name:"PushDomain"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteLiveDomainMappingResponse is the response struct for api DeleteLiveDomainMapping +type DeleteLiveDomainMappingResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLiveDomainMappingRequest creates a request to invoke DeleteLiveDomainMapping API +func CreateDeleteLiveDomainMappingRequest() (request *DeleteLiveDomainMappingRequest) { + request = &DeleteLiveDomainMappingRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DeleteLiveDomainMapping", "", "") + return +} + +// CreateDeleteLiveDomainMappingResponse creates a response to parse from DeleteLiveDomainMapping response +func CreateDeleteLiveDomainMappingResponse() (response *DeleteLiveDomainMappingResponse) { + response = &DeleteLiveDomainMappingResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_live_pull_stream_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_live_pull_stream_info.go new file mode 100644 index 0000000..3c55e82 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_live_pull_stream_info.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLivePullStreamInfo invokes the cdn.DeleteLivePullStreamInfo API synchronously +// api document: https://help.aliyun.com/api/cdn/deletelivepullstreaminfo.html +func (client *Client) DeleteLivePullStreamInfo(request *DeleteLivePullStreamInfoRequest) (response *DeleteLivePullStreamInfoResponse, err error) { + response = CreateDeleteLivePullStreamInfoResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLivePullStreamInfoWithChan invokes the cdn.DeleteLivePullStreamInfo API asynchronously +// api document: https://help.aliyun.com/api/cdn/deletelivepullstreaminfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLivePullStreamInfoWithChan(request *DeleteLivePullStreamInfoRequest) (<-chan *DeleteLivePullStreamInfoResponse, <-chan error) { + responseChan := make(chan *DeleteLivePullStreamInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLivePullStreamInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLivePullStreamInfoWithCallback invokes the cdn.DeleteLivePullStreamInfo API asynchronously +// api document: https://help.aliyun.com/api/cdn/deletelivepullstreaminfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLivePullStreamInfoWithCallback(request *DeleteLivePullStreamInfoRequest, callback func(response *DeleteLivePullStreamInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLivePullStreamInfoResponse + var err error + defer close(result) + response, err = client.DeleteLivePullStreamInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLivePullStreamInfoRequest is the request struct for api DeleteLivePullStreamInfo +type DeleteLivePullStreamInfoRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DeleteLivePullStreamInfoResponse is the response struct for api DeleteLivePullStreamInfo +type DeleteLivePullStreamInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLivePullStreamInfoRequest creates a request to invoke DeleteLivePullStreamInfo API +func CreateDeleteLivePullStreamInfoRequest() (request *DeleteLivePullStreamInfoRequest) { + request = &DeleteLivePullStreamInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DeleteLivePullStreamInfo", "", "") + return +} + +// CreateDeleteLivePullStreamInfoResponse creates a response to parse from DeleteLivePullStreamInfo response +func CreateDeleteLivePullStreamInfoResponse() (response *DeleteLivePullStreamInfoResponse) { + response = &DeleteLivePullStreamInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_live_stream_transcode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_live_stream_transcode.go new file mode 100644 index 0000000..b8ff112 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/delete_live_stream_transcode.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLiveStreamTranscode invokes the cdn.DeleteLiveStreamTranscode API synchronously +// api document: https://help.aliyun.com/api/cdn/deletelivestreamtranscode.html +func (client *Client) DeleteLiveStreamTranscode(request *DeleteLiveStreamTranscodeRequest) (response *DeleteLiveStreamTranscodeResponse, err error) { + response = CreateDeleteLiveStreamTranscodeResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLiveStreamTranscodeWithChan invokes the cdn.DeleteLiveStreamTranscode API asynchronously +// api document: https://help.aliyun.com/api/cdn/deletelivestreamtranscode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveStreamTranscodeWithChan(request *DeleteLiveStreamTranscodeRequest) (<-chan *DeleteLiveStreamTranscodeResponse, <-chan error) { + responseChan := make(chan *DeleteLiveStreamTranscodeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLiveStreamTranscode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLiveStreamTranscodeWithCallback invokes the cdn.DeleteLiveStreamTranscode API asynchronously +// api document: https://help.aliyun.com/api/cdn/deletelivestreamtranscode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveStreamTranscodeWithCallback(request *DeleteLiveStreamTranscodeRequest, callback func(response *DeleteLiveStreamTranscodeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLiveStreamTranscodeResponse + var err error + defer close(result) + response, err = client.DeleteLiveStreamTranscode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLiveStreamTranscodeRequest is the request struct for api DeleteLiveStreamTranscode +type DeleteLiveStreamTranscodeRequest struct { + *requests.RpcRequest + Template string `position:"Query" name:"Template"` + App string `position:"Query" name:"App"` + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Domain string `position:"Query" name:"Domain"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteLiveStreamTranscodeResponse is the response struct for api DeleteLiveStreamTranscode +type DeleteLiveStreamTranscodeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLiveStreamTranscodeRequest creates a request to invoke DeleteLiveStreamTranscode API +func CreateDeleteLiveStreamTranscodeRequest() (request *DeleteLiveStreamTranscodeRequest) { + request = &DeleteLiveStreamTranscodeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DeleteLiveStreamTranscode", "", "") + return +} + +// CreateDeleteLiveStreamTranscodeResponse creates a response to parse from DeleteLiveStreamTranscode response +func CreateDeleteLiveStreamTranscodeResponse() (response *DeleteLiveStreamTranscodeResponse) { + response = &DeleteLiveStreamTranscodeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_domain_base_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_domain_base_detail.go new file mode 100644 index 0000000..00039b8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_domain_base_detail.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCdnDomainBaseDetail invokes the cdn.DescribeCdnDomainBaseDetail API synchronously +// api document: https://help.aliyun.com/api/cdn/describecdndomainbasedetail.html +func (client *Client) DescribeCdnDomainBaseDetail(request *DescribeCdnDomainBaseDetailRequest) (response *DescribeCdnDomainBaseDetailResponse, err error) { + response = CreateDescribeCdnDomainBaseDetailResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCdnDomainBaseDetailWithChan invokes the cdn.DescribeCdnDomainBaseDetail API asynchronously +// api document: https://help.aliyun.com/api/cdn/describecdndomainbasedetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCdnDomainBaseDetailWithChan(request *DescribeCdnDomainBaseDetailRequest) (<-chan *DescribeCdnDomainBaseDetailResponse, <-chan error) { + responseChan := make(chan *DescribeCdnDomainBaseDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCdnDomainBaseDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCdnDomainBaseDetailWithCallback invokes the cdn.DescribeCdnDomainBaseDetail API asynchronously +// api document: https://help.aliyun.com/api/cdn/describecdndomainbasedetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCdnDomainBaseDetailWithCallback(request *DescribeCdnDomainBaseDetailRequest, callback func(response *DescribeCdnDomainBaseDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCdnDomainBaseDetailResponse + var err error + defer close(result) + response, err = client.DescribeCdnDomainBaseDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCdnDomainBaseDetailRequest is the request struct for api DescribeCdnDomainBaseDetail +type DescribeCdnDomainBaseDetailRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeCdnDomainBaseDetailResponse is the response struct for api DescribeCdnDomainBaseDetail +type DescribeCdnDomainBaseDetailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainBaseDetailModel DomainBaseDetailModel `json:"DomainBaseDetailModel" xml:"DomainBaseDetailModel"` +} + +// CreateDescribeCdnDomainBaseDetailRequest creates a request to invoke DescribeCdnDomainBaseDetail API +func CreateDescribeCdnDomainBaseDetailRequest() (request *DescribeCdnDomainBaseDetailRequest) { + request = &DescribeCdnDomainBaseDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeCdnDomainBaseDetail", "", "") + return +} + +// CreateDescribeCdnDomainBaseDetailResponse creates a response to parse from DescribeCdnDomainBaseDetail response +func CreateDescribeCdnDomainBaseDetailResponse() (response *DescribeCdnDomainBaseDetailResponse) { + response = &DescribeCdnDomainBaseDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_domain_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_domain_configs.go new file mode 100644 index 0000000..43906ab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_domain_configs.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCdnDomainConfigs invokes the cdn.DescribeCdnDomainConfigs API synchronously +// api document: https://help.aliyun.com/api/cdn/describecdndomainconfigs.html +func (client *Client) DescribeCdnDomainConfigs(request *DescribeCdnDomainConfigsRequest) (response *DescribeCdnDomainConfigsResponse, err error) { + response = CreateDescribeCdnDomainConfigsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCdnDomainConfigsWithChan invokes the cdn.DescribeCdnDomainConfigs API asynchronously +// api document: https://help.aliyun.com/api/cdn/describecdndomainconfigs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCdnDomainConfigsWithChan(request *DescribeCdnDomainConfigsRequest) (<-chan *DescribeCdnDomainConfigsResponse, <-chan error) { + responseChan := make(chan *DescribeCdnDomainConfigsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCdnDomainConfigs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCdnDomainConfigsWithCallback invokes the cdn.DescribeCdnDomainConfigs API asynchronously +// api document: https://help.aliyun.com/api/cdn/describecdndomainconfigs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCdnDomainConfigsWithCallback(request *DescribeCdnDomainConfigsRequest, callback func(response *DescribeCdnDomainConfigsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCdnDomainConfigsResponse + var err error + defer close(result) + response, err = client.DescribeCdnDomainConfigs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCdnDomainConfigsRequest is the request struct for api DescribeCdnDomainConfigs +type DescribeCdnDomainConfigsRequest struct { + *requests.RpcRequest + FunctionNames string `position:"Query" name:"FunctionNames"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeCdnDomainConfigsResponse is the response struct for api DescribeCdnDomainConfigs +type DescribeCdnDomainConfigsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainConfigs DomainConfigsInDescribeCdnDomainConfigs `json:"DomainConfigs" xml:"DomainConfigs"` +} + +// CreateDescribeCdnDomainConfigsRequest creates a request to invoke DescribeCdnDomainConfigs API +func CreateDescribeCdnDomainConfigsRequest() (request *DescribeCdnDomainConfigsRequest) { + request = &DescribeCdnDomainConfigsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeCdnDomainConfigs", "", "") + return +} + +// CreateDescribeCdnDomainConfigsResponse creates a response to parse from DescribeCdnDomainConfigs response +func CreateDescribeCdnDomainConfigsResponse() (response *DescribeCdnDomainConfigsResponse) { + response = &DescribeCdnDomainConfigsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_domain_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_domain_detail.go new file mode 100644 index 0000000..c6293df --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_domain_detail.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCdnDomainDetail invokes the cdn.DescribeCdnDomainDetail API synchronously +// api document: https://help.aliyun.com/api/cdn/describecdndomaindetail.html +func (client *Client) DescribeCdnDomainDetail(request *DescribeCdnDomainDetailRequest) (response *DescribeCdnDomainDetailResponse, err error) { + response = CreateDescribeCdnDomainDetailResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCdnDomainDetailWithChan invokes the cdn.DescribeCdnDomainDetail API asynchronously +// api document: https://help.aliyun.com/api/cdn/describecdndomaindetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCdnDomainDetailWithChan(request *DescribeCdnDomainDetailRequest) (<-chan *DescribeCdnDomainDetailResponse, <-chan error) { + responseChan := make(chan *DescribeCdnDomainDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCdnDomainDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCdnDomainDetailWithCallback invokes the cdn.DescribeCdnDomainDetail API asynchronously +// api document: https://help.aliyun.com/api/cdn/describecdndomaindetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCdnDomainDetailWithCallback(request *DescribeCdnDomainDetailRequest, callback func(response *DescribeCdnDomainDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCdnDomainDetailResponse + var err error + defer close(result) + response, err = client.DescribeCdnDomainDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCdnDomainDetailRequest is the request struct for api DescribeCdnDomainDetail +type DescribeCdnDomainDetailRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeCdnDomainDetailResponse is the response struct for api DescribeCdnDomainDetail +type DescribeCdnDomainDetailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + GetDomainDetailModel GetDomainDetailModel `json:"GetDomainDetailModel" xml:"GetDomainDetailModel"` +} + +// CreateDescribeCdnDomainDetailRequest creates a request to invoke DescribeCdnDomainDetail API +func CreateDescribeCdnDomainDetailRequest() (request *DescribeCdnDomainDetailRequest) { + request = &DescribeCdnDomainDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeCdnDomainDetail", "", "") + return +} + +// CreateDescribeCdnDomainDetailResponse creates a response to parse from DescribeCdnDomainDetail response +func CreateDescribeCdnDomainDetailResponse() (response *DescribeCdnDomainDetailResponse) { + response = &DescribeCdnDomainDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_domain_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_domain_logs.go new file mode 100644 index 0000000..304e9a0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_domain_logs.go @@ -0,0 +1,114 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCdnDomainLogs invokes the cdn.DescribeCdnDomainLogs API synchronously +// api document: https://help.aliyun.com/api/cdn/describecdndomainlogs.html +func (client *Client) DescribeCdnDomainLogs(request *DescribeCdnDomainLogsRequest) (response *DescribeCdnDomainLogsResponse, err error) { + response = CreateDescribeCdnDomainLogsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCdnDomainLogsWithChan invokes the cdn.DescribeCdnDomainLogs API asynchronously +// api document: https://help.aliyun.com/api/cdn/describecdndomainlogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCdnDomainLogsWithChan(request *DescribeCdnDomainLogsRequest) (<-chan *DescribeCdnDomainLogsResponse, <-chan error) { + responseChan := make(chan *DescribeCdnDomainLogsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCdnDomainLogs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCdnDomainLogsWithCallback invokes the cdn.DescribeCdnDomainLogs API asynchronously +// api document: https://help.aliyun.com/api/cdn/describecdndomainlogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCdnDomainLogsWithCallback(request *DescribeCdnDomainLogsRequest, callback func(response *DescribeCdnDomainLogsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCdnDomainLogsResponse + var err error + defer close(result) + response, err = client.DescribeCdnDomainLogs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCdnDomainLogsRequest is the request struct for api DescribeCdnDomainLogs +type DescribeCdnDomainLogsRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + LogDay string `position:"Query" name:"LogDay"` +} + +// DescribeCdnDomainLogsResponse is the response struct for api DescribeCdnDomainLogs +type DescribeCdnDomainLogsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + DomainLogModel DomainLogModel `json:"DomainLogModel" xml:"DomainLogModel"` +} + +// CreateDescribeCdnDomainLogsRequest creates a request to invoke DescribeCdnDomainLogs API +func CreateDescribeCdnDomainLogsRequest() (request *DescribeCdnDomainLogsRequest) { + request = &DescribeCdnDomainLogsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeCdnDomainLogs", "", "") + return +} + +// CreateDescribeCdnDomainLogsResponse creates a response to parse from DescribeCdnDomainLogs response +func CreateDescribeCdnDomainLogsResponse() (response *DescribeCdnDomainLogsResponse) { + response = &DescribeCdnDomainLogsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_monitor_data.go new file mode 100644 index 0000000..9a3cda6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_monitor_data.go @@ -0,0 +1,113 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCdnMonitorData invokes the cdn.DescribeCdnMonitorData API synchronously +// api document: https://help.aliyun.com/api/cdn/describecdnmonitordata.html +func (client *Client) DescribeCdnMonitorData(request *DescribeCdnMonitorDataRequest) (response *DescribeCdnMonitorDataResponse, err error) { + response = CreateDescribeCdnMonitorDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCdnMonitorDataWithChan invokes the cdn.DescribeCdnMonitorData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describecdnmonitordata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCdnMonitorDataWithChan(request *DescribeCdnMonitorDataRequest) (<-chan *DescribeCdnMonitorDataResponse, <-chan error) { + responseChan := make(chan *DescribeCdnMonitorDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCdnMonitorData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCdnMonitorDataWithCallback invokes the cdn.DescribeCdnMonitorData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describecdnmonitordata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCdnMonitorDataWithCallback(request *DescribeCdnMonitorDataRequest, callback func(response *DescribeCdnMonitorDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCdnMonitorDataResponse + var err error + defer close(result) + response, err = client.DescribeCdnMonitorData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCdnMonitorDataRequest is the request struct for api DescribeCdnMonitorData +type DescribeCdnMonitorDataRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + Interval string `position:"Query" name:"Interval"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeCdnMonitorDataResponse is the response struct for api DescribeCdnMonitorData +type DescribeCdnMonitorDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + MonitorInterval int `json:"MonitorInterval" xml:"MonitorInterval"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + MonitorDatas MonitorDatas `json:"MonitorDatas" xml:"MonitorDatas"` +} + +// CreateDescribeCdnMonitorDataRequest creates a request to invoke DescribeCdnMonitorData API +func CreateDescribeCdnMonitorDataRequest() (request *DescribeCdnMonitorDataRequest) { + request = &DescribeCdnMonitorDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeCdnMonitorData", "", "") + return +} + +// CreateDescribeCdnMonitorDataResponse creates a response to parse from DescribeCdnMonitorData response +func CreateDescribeCdnMonitorDataResponse() (response *DescribeCdnMonitorDataResponse) { + response = &DescribeCdnMonitorDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_region_and_isp.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_region_and_isp.go new file mode 100644 index 0000000..89a0129 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_region_and_isp.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCdnRegionAndIsp invokes the cdn.DescribeCdnRegionAndIsp API synchronously +// api document: https://help.aliyun.com/api/cdn/describecdnregionandisp.html +func (client *Client) DescribeCdnRegionAndIsp(request *DescribeCdnRegionAndIspRequest) (response *DescribeCdnRegionAndIspResponse, err error) { + response = CreateDescribeCdnRegionAndIspResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCdnRegionAndIspWithChan invokes the cdn.DescribeCdnRegionAndIsp API asynchronously +// api document: https://help.aliyun.com/api/cdn/describecdnregionandisp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCdnRegionAndIspWithChan(request *DescribeCdnRegionAndIspRequest) (<-chan *DescribeCdnRegionAndIspResponse, <-chan error) { + responseChan := make(chan *DescribeCdnRegionAndIspResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCdnRegionAndIsp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCdnRegionAndIspWithCallback invokes the cdn.DescribeCdnRegionAndIsp API asynchronously +// api document: https://help.aliyun.com/api/cdn/describecdnregionandisp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCdnRegionAndIspWithCallback(request *DescribeCdnRegionAndIspRequest, callback func(response *DescribeCdnRegionAndIspResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCdnRegionAndIspResponse + var err error + defer close(result) + response, err = client.DescribeCdnRegionAndIsp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCdnRegionAndIspRequest is the request struct for api DescribeCdnRegionAndIsp +type DescribeCdnRegionAndIspRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeCdnRegionAndIspResponse is the response struct for api DescribeCdnRegionAndIsp +type DescribeCdnRegionAndIspResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Regions Regions `json:"Regions" xml:"Regions"` + Isps Isps `json:"Isps" xml:"Isps"` +} + +// CreateDescribeCdnRegionAndIspRequest creates a request to invoke DescribeCdnRegionAndIsp API +func CreateDescribeCdnRegionAndIspRequest() (request *DescribeCdnRegionAndIspRequest) { + request = &DescribeCdnRegionAndIspRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeCdnRegionAndIsp", "", "") + return +} + +// CreateDescribeCdnRegionAndIspResponse creates a response to parse from DescribeCdnRegionAndIsp response +func CreateDescribeCdnRegionAndIspResponse() (response *DescribeCdnRegionAndIspResponse) { + response = &DescribeCdnRegionAndIspResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_service.go new file mode 100644 index 0000000..6b7cf64 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_service.go @@ -0,0 +1,110 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCdnService invokes the cdn.DescribeCdnService API synchronously +// api document: https://help.aliyun.com/api/cdn/describecdnservice.html +func (client *Client) DescribeCdnService(request *DescribeCdnServiceRequest) (response *DescribeCdnServiceResponse, err error) { + response = CreateDescribeCdnServiceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCdnServiceWithChan invokes the cdn.DescribeCdnService API asynchronously +// api document: https://help.aliyun.com/api/cdn/describecdnservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCdnServiceWithChan(request *DescribeCdnServiceRequest) (<-chan *DescribeCdnServiceResponse, <-chan error) { + responseChan := make(chan *DescribeCdnServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCdnService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCdnServiceWithCallback invokes the cdn.DescribeCdnService API asynchronously +// api document: https://help.aliyun.com/api/cdn/describecdnservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCdnServiceWithCallback(request *DescribeCdnServiceRequest, callback func(response *DescribeCdnServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCdnServiceResponse + var err error + defer close(result) + response, err = client.DescribeCdnService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCdnServiceRequest is the request struct for api DescribeCdnService +type DescribeCdnServiceRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeCdnServiceResponse is the response struct for api DescribeCdnService +type DescribeCdnServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + OpeningTime string `json:"OpeningTime" xml:"OpeningTime"` + ChangingChargeType string `json:"ChangingChargeType" xml:"ChangingChargeType"` + ChangingAffectTime string `json:"ChangingAffectTime" xml:"ChangingAffectTime"` + OperationLocks OperationLocks `json:"OperationLocks" xml:"OperationLocks"` +} + +// CreateDescribeCdnServiceRequest creates a request to invoke DescribeCdnService API +func CreateDescribeCdnServiceRequest() (request *DescribeCdnServiceRequest) { + request = &DescribeCdnServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeCdnService", "", "") + return +} + +// CreateDescribeCdnServiceResponse creates a response to parse from DescribeCdnService response +func CreateDescribeCdnServiceResponse() (response *DescribeCdnServiceResponse) { + response = &DescribeCdnServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_types.go new file mode 100644 index 0000000..24e5d00 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_cdn_types.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCdnTypes invokes the cdn.DescribeCdnTypes API synchronously +// api document: https://help.aliyun.com/api/cdn/describecdntypes.html +func (client *Client) DescribeCdnTypes(request *DescribeCdnTypesRequest) (response *DescribeCdnTypesResponse, err error) { + response = CreateDescribeCdnTypesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCdnTypesWithChan invokes the cdn.DescribeCdnTypes API asynchronously +// api document: https://help.aliyun.com/api/cdn/describecdntypes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCdnTypesWithChan(request *DescribeCdnTypesRequest) (<-chan *DescribeCdnTypesResponse, <-chan error) { + responseChan := make(chan *DescribeCdnTypesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCdnTypes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCdnTypesWithCallback invokes the cdn.DescribeCdnTypes API asynchronously +// api document: https://help.aliyun.com/api/cdn/describecdntypes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCdnTypesWithCallback(request *DescribeCdnTypesRequest, callback func(response *DescribeCdnTypesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCdnTypesResponse + var err error + defer close(result) + response, err = client.DescribeCdnTypes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCdnTypesRequest is the request struct for api DescribeCdnTypes +type DescribeCdnTypesRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeCdnTypesResponse is the response struct for api DescribeCdnTypes +type DescribeCdnTypesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CdnTypes CdnTypes `json:"CdnTypes" xml:"CdnTypes"` +} + +// CreateDescribeCdnTypesRequest creates a request to invoke DescribeCdnTypes API +func CreateDescribeCdnTypesRequest() (request *DescribeCdnTypesRequest) { + request = &DescribeCdnTypesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeCdnTypes", "", "") + return +} + +// CreateDescribeCdnTypesResponse creates a response to parse from DescribeCdnTypes response +func CreateDescribeCdnTypesResponse() (response *DescribeCdnTypesResponse) { + response = &DescribeCdnTypesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_custom_log_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_custom_log_config.go new file mode 100644 index 0000000..99becb7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_custom_log_config.go @@ -0,0 +1,109 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCustomLogConfig invokes the cdn.DescribeCustomLogConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/describecustomlogconfig.html +func (client *Client) DescribeCustomLogConfig(request *DescribeCustomLogConfigRequest) (response *DescribeCustomLogConfigResponse, err error) { + response = CreateDescribeCustomLogConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCustomLogConfigWithChan invokes the cdn.DescribeCustomLogConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/describecustomlogconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCustomLogConfigWithChan(request *DescribeCustomLogConfigRequest) (<-chan *DescribeCustomLogConfigResponse, <-chan error) { + responseChan := make(chan *DescribeCustomLogConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCustomLogConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCustomLogConfigWithCallback invokes the cdn.DescribeCustomLogConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/describecustomlogconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCustomLogConfigWithCallback(request *DescribeCustomLogConfigRequest, callback func(response *DescribeCustomLogConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCustomLogConfigResponse + var err error + defer close(result) + response, err = client.DescribeCustomLogConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCustomLogConfigRequest is the request struct for api DescribeCustomLogConfig +type DescribeCustomLogConfigRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Version string `position:"Query" name:"Version"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ConfigId string `position:"Query" name:"ConfigId"` +} + +// DescribeCustomLogConfigResponse is the response struct for api DescribeCustomLogConfig +type DescribeCustomLogConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Remark string `json:"Remark" xml:"Remark"` + Sample string `json:"Sample" xml:"Sample"` + Tag string `json:"Tag" xml:"Tag"` +} + +// CreateDescribeCustomLogConfigRequest creates a request to invoke DescribeCustomLogConfig API +func CreateDescribeCustomLogConfigRequest() (request *DescribeCustomLogConfigRequest) { + request = &DescribeCustomLogConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeCustomLogConfig", "", "") + return +} + +// CreateDescribeCustomLogConfigResponse creates a response to parse from DescribeCustomLogConfig response +func CreateDescribeCustomLogConfigResponse() (response *DescribeCustomLogConfigResponse) { + response = &DescribeCustomLogConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_average_response_time.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_average_response_time.go new file mode 100644 index 0000000..909a8eb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_average_response_time.go @@ -0,0 +1,114 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainAverageResponseTime invokes the cdn.DescribeDomainAverageResponseTime API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainaverageresponsetime.html +func (client *Client) DescribeDomainAverageResponseTime(request *DescribeDomainAverageResponseTimeRequest) (response *DescribeDomainAverageResponseTimeResponse, err error) { + response = CreateDescribeDomainAverageResponseTimeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainAverageResponseTimeWithChan invokes the cdn.DescribeDomainAverageResponseTime API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainaverageresponsetime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainAverageResponseTimeWithChan(request *DescribeDomainAverageResponseTimeRequest) (<-chan *DescribeDomainAverageResponseTimeResponse, <-chan error) { + responseChan := make(chan *DescribeDomainAverageResponseTimeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainAverageResponseTime(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainAverageResponseTimeWithCallback invokes the cdn.DescribeDomainAverageResponseTime API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainaverageresponsetime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainAverageResponseTimeWithCallback(request *DescribeDomainAverageResponseTimeRequest, callback func(response *DescribeDomainAverageResponseTimeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainAverageResponseTimeResponse + var err error + defer close(result) + response, err = client.DescribeDomainAverageResponseTime(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainAverageResponseTimeRequest is the request struct for api DescribeDomainAverageResponseTime +type DescribeDomainAverageResponseTimeRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + TimeMerge string `position:"Query" name:"TimeMerge"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + Interval string `position:"Query" name:"Interval"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainAverageResponseTimeResponse is the response struct for api DescribeDomainAverageResponseTime +type DescribeDomainAverageResponseTimeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + AvgRTPerInterval AvgRTPerInterval `json:"AvgRTPerInterval" xml:"AvgRTPerInterval"` +} + +// CreateDescribeDomainAverageResponseTimeRequest creates a request to invoke DescribeDomainAverageResponseTime API +func CreateDescribeDomainAverageResponseTimeRequest() (request *DescribeDomainAverageResponseTimeRequest) { + request = &DescribeDomainAverageResponseTimeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainAverageResponseTime", "", "") + return +} + +// CreateDescribeDomainAverageResponseTimeResponse creates a response to parse from DescribeDomainAverageResponseTime response +func CreateDescribeDomainAverageResponseTimeResponse() (response *DescribeDomainAverageResponseTimeResponse) { + response = &DescribeDomainAverageResponseTimeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_bps_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_bps_data.go new file mode 100644 index 0000000..3df18b7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_bps_data.go @@ -0,0 +1,123 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainBpsData invokes the cdn.DescribeDomainBpsData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainbpsdata.html +func (client *Client) DescribeDomainBpsData(request *DescribeDomainBpsDataRequest) (response *DescribeDomainBpsDataResponse, err error) { + response = CreateDescribeDomainBpsDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainBpsDataWithChan invokes the cdn.DescribeDomainBpsData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainbpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainBpsDataWithChan(request *DescribeDomainBpsDataRequest) (<-chan *DescribeDomainBpsDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainBpsDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainBpsData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainBpsDataWithCallback invokes the cdn.DescribeDomainBpsData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainbpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainBpsDataWithCallback(request *DescribeDomainBpsDataRequest, callback func(response *DescribeDomainBpsDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainBpsDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainBpsData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainBpsDataRequest is the request struct for api DescribeDomainBpsData +type DescribeDomainBpsDataRequest struct { + *requests.RpcRequest + FixTimeGap string `position:"Query" name:"FixTimeGap"` + TimeMerge string `position:"Query" name:"TimeMerge"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + LocationNameEn string `position:"Query" name:"LocationNameEn"` + StartTime string `position:"Query" name:"StartTime"` + IspNameEn string `position:"Query" name:"IspNameEn"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + DomainType string `position:"Query" name:"DomainType"` + SecurityToken string `position:"Query" name:"SecurityToken"` + Interval string `position:"Query" name:"Interval"` +} + +// DescribeDomainBpsDataResponse is the response struct for api DescribeDomainBpsData +type DescribeDomainBpsDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + LocationNameEn string `json:"LocationNameEn" xml:"LocationNameEn"` + IspNameEn string `json:"IspNameEn" xml:"IspNameEn"` + LocationName string `json:"LocationName" xml:"LocationName"` + IspName string `json:"IspName" xml:"IspName"` + BpsDataPerInterval BpsDataPerInterval `json:"BpsDataPerInterval" xml:"BpsDataPerInterval"` + SupplyBpsDatas SupplyBpsDatas `json:"SupplyBpsDatas" xml:"SupplyBpsDatas"` +} + +// CreateDescribeDomainBpsDataRequest creates a request to invoke DescribeDomainBpsData API +func CreateDescribeDomainBpsDataRequest() (request *DescribeDomainBpsDataRequest) { + request = &DescribeDomainBpsDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainBpsData", "", "") + return +} + +// CreateDescribeDomainBpsDataResponse creates a response to parse from DescribeDomainBpsData response +func CreateDescribeDomainBpsDataResponse() (response *DescribeDomainBpsDataResponse) { + response = &DescribeDomainBpsDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_bps_data_by_time_stamp.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_bps_data_by_time_stamp.go new file mode 100644 index 0000000..0487d58 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_bps_data_by_time_stamp.go @@ -0,0 +1,111 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainBpsDataByTimeStamp invokes the cdn.DescribeDomainBpsDataByTimeStamp API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainbpsdatabytimestamp.html +func (client *Client) DescribeDomainBpsDataByTimeStamp(request *DescribeDomainBpsDataByTimeStampRequest) (response *DescribeDomainBpsDataByTimeStampResponse, err error) { + response = CreateDescribeDomainBpsDataByTimeStampResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainBpsDataByTimeStampWithChan invokes the cdn.DescribeDomainBpsDataByTimeStamp API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainbpsdatabytimestamp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainBpsDataByTimeStampWithChan(request *DescribeDomainBpsDataByTimeStampRequest) (<-chan *DescribeDomainBpsDataByTimeStampResponse, <-chan error) { + responseChan := make(chan *DescribeDomainBpsDataByTimeStampResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainBpsDataByTimeStamp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainBpsDataByTimeStampWithCallback invokes the cdn.DescribeDomainBpsDataByTimeStamp API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainbpsdatabytimestamp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainBpsDataByTimeStampWithCallback(request *DescribeDomainBpsDataByTimeStampRequest, callback func(response *DescribeDomainBpsDataByTimeStampResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainBpsDataByTimeStampResponse + var err error + defer close(result) + response, err = client.DescribeDomainBpsDataByTimeStamp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainBpsDataByTimeStampRequest is the request struct for api DescribeDomainBpsDataByTimeStamp +type DescribeDomainBpsDataByTimeStampRequest struct { + *requests.RpcRequest + IspNames string `position:"Query" name:"IspNames"` + SecurityToken string `position:"Query" name:"SecurityToken"` + LocationNames string `position:"Query" name:"LocationNames"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + TimePoint string `position:"Query" name:"TimePoint"` +} + +// DescribeDomainBpsDataByTimeStampResponse is the response struct for api DescribeDomainBpsDataByTimeStamp +type DescribeDomainBpsDataByTimeStampResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` + BpsDataList BpsDataList `json:"BpsDataList" xml:"BpsDataList"` +} + +// CreateDescribeDomainBpsDataByTimeStampRequest creates a request to invoke DescribeDomainBpsDataByTimeStamp API +func CreateDescribeDomainBpsDataByTimeStampRequest() (request *DescribeDomainBpsDataByTimeStampRequest) { + request = &DescribeDomainBpsDataByTimeStampRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainBpsDataByTimeStamp", "", "") + return +} + +// CreateDescribeDomainBpsDataByTimeStampResponse creates a response to parse from DescribeDomainBpsDataByTimeStamp response +func CreateDescribeDomainBpsDataByTimeStampResponse() (response *DescribeDomainBpsDataByTimeStampResponse) { + response = &DescribeDomainBpsDataByTimeStampResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_cc_attack_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_cc_attack_info.go new file mode 100644 index 0000000..a19bae6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_cc_attack_info.go @@ -0,0 +1,112 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainCCAttackInfo invokes the cdn.DescribeDomainCCAttackInfo API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainccattackinfo.html +func (client *Client) DescribeDomainCCAttackInfo(request *DescribeDomainCCAttackInfoRequest) (response *DescribeDomainCCAttackInfoResponse, err error) { + response = CreateDescribeDomainCCAttackInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainCCAttackInfoWithChan invokes the cdn.DescribeDomainCCAttackInfo API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainccattackinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainCCAttackInfoWithChan(request *DescribeDomainCCAttackInfoRequest) (<-chan *DescribeDomainCCAttackInfoResponse, <-chan error) { + responseChan := make(chan *DescribeDomainCCAttackInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainCCAttackInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainCCAttackInfoWithCallback invokes the cdn.DescribeDomainCCAttackInfo API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainccattackinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainCCAttackInfoWithCallback(request *DescribeDomainCCAttackInfoRequest, callback func(response *DescribeDomainCCAttackInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainCCAttackInfoResponse + var err error + defer close(result) + response, err = client.DescribeDomainCCAttackInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainCCAttackInfoRequest is the request struct for api DescribeDomainCCAttackInfo +type DescribeDomainCCAttackInfoRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainCCAttackInfoResponse is the response struct for api DescribeDomainCCAttackInfo +type DescribeDomainCCAttackInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + AttackIpDataList AttackIpDataList `json:"AttackIpDataList" xml:"AttackIpDataList"` + AttackedUrlDataList AttackedUrlDataList `json:"AttackedUrlDataList" xml:"AttackedUrlDataList"` +} + +// CreateDescribeDomainCCAttackInfoRequest creates a request to invoke DescribeDomainCCAttackInfo API +func CreateDescribeDomainCCAttackInfoRequest() (request *DescribeDomainCCAttackInfoRequest) { + request = &DescribeDomainCCAttackInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainCCAttackInfo", "", "") + return +} + +// CreateDescribeDomainCCAttackInfoResponse creates a response to parse from DescribeDomainCCAttackInfo response +func CreateDescribeDomainCCAttackInfoResponse() (response *DescribeDomainCCAttackInfoResponse) { + response = &DescribeDomainCCAttackInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_cc_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_cc_data.go new file mode 100644 index 0000000..1943bc6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_cc_data.go @@ -0,0 +1,112 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainCCData invokes the cdn.DescribeDomainCCData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainccdata.html +func (client *Client) DescribeDomainCCData(request *DescribeDomainCCDataRequest) (response *DescribeDomainCCDataResponse, err error) { + response = CreateDescribeDomainCCDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainCCDataWithChan invokes the cdn.DescribeDomainCCData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainccdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainCCDataWithChan(request *DescribeDomainCCDataRequest) (<-chan *DescribeDomainCCDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainCCDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainCCData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainCCDataWithCallback invokes the cdn.DescribeDomainCCData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainccdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainCCDataWithCallback(request *DescribeDomainCCDataRequest, callback func(response *DescribeDomainCCDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainCCDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainCCData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainCCDataRequest is the request struct for api DescribeDomainCCData +type DescribeDomainCCDataRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainCCDataResponse is the response struct for api DescribeDomainCCData +type DescribeDomainCCDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + CCDataList CCDataList `json:"CCDataList" xml:"CCDataList"` +} + +// CreateDescribeDomainCCDataRequest creates a request to invoke DescribeDomainCCData API +func CreateDescribeDomainCCDataRequest() (request *DescribeDomainCCDataRequest) { + request = &DescribeDomainCCDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainCCData", "", "") + return +} + +// CreateDescribeDomainCCDataResponse creates a response to parse from DescribeDomainCCData response +func CreateDescribeDomainCCDataResponse() (response *DescribeDomainCCDataResponse) { + response = &DescribeDomainCCDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_certificate_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_certificate_info.go new file mode 100644 index 0000000..97849c2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_certificate_info.go @@ -0,0 +1,105 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainCertificateInfo invokes the cdn.DescribeDomainCertificateInfo API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomaincertificateinfo.html +func (client *Client) DescribeDomainCertificateInfo(request *DescribeDomainCertificateInfoRequest) (response *DescribeDomainCertificateInfoResponse, err error) { + response = CreateDescribeDomainCertificateInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainCertificateInfoWithChan invokes the cdn.DescribeDomainCertificateInfo API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomaincertificateinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainCertificateInfoWithChan(request *DescribeDomainCertificateInfoRequest) (<-chan *DescribeDomainCertificateInfoResponse, <-chan error) { + responseChan := make(chan *DescribeDomainCertificateInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainCertificateInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainCertificateInfoWithCallback invokes the cdn.DescribeDomainCertificateInfo API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomaincertificateinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainCertificateInfoWithCallback(request *DescribeDomainCertificateInfoRequest, callback func(response *DescribeDomainCertificateInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainCertificateInfoResponse + var err error + defer close(result) + response, err = client.DescribeDomainCertificateInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainCertificateInfoRequest is the request struct for api DescribeDomainCertificateInfo +type DescribeDomainCertificateInfoRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainCertificateInfoResponse is the response struct for api DescribeDomainCertificateInfo +type DescribeDomainCertificateInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CertInfos CertInfos `json:"CertInfos" xml:"CertInfos"` +} + +// CreateDescribeDomainCertificateInfoRequest creates a request to invoke DescribeDomainCertificateInfo API +func CreateDescribeDomainCertificateInfoRequest() (request *DescribeDomainCertificateInfoRequest) { + request = &DescribeDomainCertificateInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainCertificateInfo", "", "") + return +} + +// CreateDescribeDomainCertificateInfoResponse creates a response to parse from DescribeDomainCertificateInfo response +func CreateDescribeDomainCertificateInfoResponse() (response *DescribeDomainCertificateInfoResponse) { + response = &DescribeDomainCertificateInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_cname.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_cname.go new file mode 100644 index 0000000..07795df --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_cname.go @@ -0,0 +1,105 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainCname invokes the cdn.DescribeDomainCname API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomaincname.html +func (client *Client) DescribeDomainCname(request *DescribeDomainCnameRequest) (response *DescribeDomainCnameResponse, err error) { + response = CreateDescribeDomainCnameResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainCnameWithChan invokes the cdn.DescribeDomainCname API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomaincname.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainCnameWithChan(request *DescribeDomainCnameRequest) (<-chan *DescribeDomainCnameResponse, <-chan error) { + responseChan := make(chan *DescribeDomainCnameResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainCname(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainCnameWithCallback invokes the cdn.DescribeDomainCname API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomaincname.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainCnameWithCallback(request *DescribeDomainCnameRequest, callback func(response *DescribeDomainCnameResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainCnameResponse + var err error + defer close(result) + response, err = client.DescribeDomainCname(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainCnameRequest is the request struct for api DescribeDomainCname +type DescribeDomainCnameRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainCnameResponse is the response struct for api DescribeDomainCname +type DescribeDomainCnameResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CnameDatas CnameDatas `json:"CnameDatas" xml:"CnameDatas"` +} + +// CreateDescribeDomainCnameRequest creates a request to invoke DescribeDomainCname API +func CreateDescribeDomainCnameRequest() (request *DescribeDomainCnameRequest) { + request = &DescribeDomainCnameRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainCname", "", "") + return +} + +// CreateDescribeDomainCnameResponse creates a response to parse from DescribeDomainCname response +func CreateDescribeDomainCnameResponse() (response *DescribeDomainCnameResponse) { + response = &DescribeDomainCnameResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_configs.go new file mode 100644 index 0000000..124ed03 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_configs.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainConfigs invokes the cdn.DescribeDomainConfigs API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainconfigs.html +func (client *Client) DescribeDomainConfigs(request *DescribeDomainConfigsRequest) (response *DescribeDomainConfigsResponse, err error) { + response = CreateDescribeDomainConfigsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainConfigsWithChan invokes the cdn.DescribeDomainConfigs API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainconfigs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainConfigsWithChan(request *DescribeDomainConfigsRequest) (<-chan *DescribeDomainConfigsResponse, <-chan error) { + responseChan := make(chan *DescribeDomainConfigsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainConfigs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainConfigsWithCallback invokes the cdn.DescribeDomainConfigs API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainconfigs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainConfigsWithCallback(request *DescribeDomainConfigsRequest, callback func(response *DescribeDomainConfigsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainConfigsResponse + var err error + defer close(result) + response, err = client.DescribeDomainConfigs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainConfigsRequest is the request struct for api DescribeDomainConfigs +type DescribeDomainConfigsRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + ConfigList string `position:"Query" name:"ConfigList"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainConfigsResponse is the response struct for api DescribeDomainConfigs +type DescribeDomainConfigsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainConfigs DomainConfigs `json:"DomainConfigs" xml:"DomainConfigs"` +} + +// CreateDescribeDomainConfigsRequest creates a request to invoke DescribeDomainConfigs API +func CreateDescribeDomainConfigsRequest() (request *DescribeDomainConfigsRequest) { + request = &DescribeDomainConfigsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainConfigs", "", "") + return +} + +// CreateDescribeDomainConfigsResponse creates a response to parse from DescribeDomainConfigs response +func CreateDescribeDomainConfigsResponse() (response *DescribeDomainConfigsResponse) { + response = &DescribeDomainConfigsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_custom_log_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_custom_log_config.go new file mode 100644 index 0000000..aa8ede3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_custom_log_config.go @@ -0,0 +1,110 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainCustomLogConfig invokes the cdn.DescribeDomainCustomLogConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomaincustomlogconfig.html +func (client *Client) DescribeDomainCustomLogConfig(request *DescribeDomainCustomLogConfigRequest) (response *DescribeDomainCustomLogConfigResponse, err error) { + response = CreateDescribeDomainCustomLogConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainCustomLogConfigWithChan invokes the cdn.DescribeDomainCustomLogConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomaincustomlogconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainCustomLogConfigWithChan(request *DescribeDomainCustomLogConfigRequest) (<-chan *DescribeDomainCustomLogConfigResponse, <-chan error) { + responseChan := make(chan *DescribeDomainCustomLogConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainCustomLogConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainCustomLogConfigWithCallback invokes the cdn.DescribeDomainCustomLogConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomaincustomlogconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainCustomLogConfigWithCallback(request *DescribeDomainCustomLogConfigRequest, callback func(response *DescribeDomainCustomLogConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainCustomLogConfigResponse + var err error + defer close(result) + response, err = client.DescribeDomainCustomLogConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainCustomLogConfigRequest is the request struct for api DescribeDomainCustomLogConfig +type DescribeDomainCustomLogConfigRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Version string `position:"Query" name:"Version"` + SecurityToken string `position:"Query" name:"SecurityToken"` +} + +// DescribeDomainCustomLogConfigResponse is the response struct for api DescribeDomainCustomLogConfig +type DescribeDomainCustomLogConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ConfigId string `json:"ConfigId" xml:"ConfigId"` + Remark string `json:"Remark" xml:"Remark"` + Sample string `json:"Sample" xml:"Sample"` + Tag string `json:"Tag" xml:"Tag"` +} + +// CreateDescribeDomainCustomLogConfigRequest creates a request to invoke DescribeDomainCustomLogConfig API +func CreateDescribeDomainCustomLogConfigRequest() (request *DescribeDomainCustomLogConfigRequest) { + request = &DescribeDomainCustomLogConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainCustomLogConfig", "", "") + return +} + +// CreateDescribeDomainCustomLogConfigResponse creates a response to parse from DescribeDomainCustomLogConfig response +func CreateDescribeDomainCustomLogConfigResponse() (response *DescribeDomainCustomLogConfigResponse) { + response = &DescribeDomainCustomLogConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_downstream_bps_of_edge.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_downstream_bps_of_edge.go new file mode 100644 index 0000000..d8b4a82 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_downstream_bps_of_edge.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainDownstreamBpsOfEdge invokes the cdn.DescribeDomainDownstreamBpsOfEdge API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomaindownstreambpsofedge.html +func (client *Client) DescribeDomainDownstreamBpsOfEdge(request *DescribeDomainDownstreamBpsOfEdgeRequest) (response *DescribeDomainDownstreamBpsOfEdgeResponse, err error) { + response = CreateDescribeDomainDownstreamBpsOfEdgeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainDownstreamBpsOfEdgeWithChan invokes the cdn.DescribeDomainDownstreamBpsOfEdge API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomaindownstreambpsofedge.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainDownstreamBpsOfEdgeWithChan(request *DescribeDomainDownstreamBpsOfEdgeRequest) (<-chan *DescribeDomainDownstreamBpsOfEdgeResponse, <-chan error) { + responseChan := make(chan *DescribeDomainDownstreamBpsOfEdgeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainDownstreamBpsOfEdge(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainDownstreamBpsOfEdgeWithCallback invokes the cdn.DescribeDomainDownstreamBpsOfEdge API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomaindownstreambpsofedge.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainDownstreamBpsOfEdgeWithCallback(request *DescribeDomainDownstreamBpsOfEdgeRequest, callback func(response *DescribeDomainDownstreamBpsOfEdgeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainDownstreamBpsOfEdgeResponse + var err error + defer close(result) + response, err = client.DescribeDomainDownstreamBpsOfEdge(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainDownstreamBpsOfEdgeRequest is the request struct for api DescribeDomainDownstreamBpsOfEdge +type DescribeDomainDownstreamBpsOfEdgeRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainDownstreamBpsOfEdgeResponse is the response struct for api DescribeDomainDownstreamBpsOfEdge +type DescribeDomainDownstreamBpsOfEdgeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + BpsDatas BpsDatasInDescribeDomainDownstreamBpsOfEdge `json:"BpsDatas" xml:"BpsDatas"` +} + +// CreateDescribeDomainDownstreamBpsOfEdgeRequest creates a request to invoke DescribeDomainDownstreamBpsOfEdge API +func CreateDescribeDomainDownstreamBpsOfEdgeRequest() (request *DescribeDomainDownstreamBpsOfEdgeRequest) { + request = &DescribeDomainDownstreamBpsOfEdgeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainDownstreamBpsOfEdge", "", "") + return +} + +// CreateDescribeDomainDownstreamBpsOfEdgeResponse creates a response to parse from DescribeDomainDownstreamBpsOfEdge response +func CreateDescribeDomainDownstreamBpsOfEdgeResponse() (response *DescribeDomainDownstreamBpsOfEdgeResponse) { + response = &DescribeDomainDownstreamBpsOfEdgeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_file_size_proportion_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_file_size_proportion_data.go new file mode 100644 index 0000000..dfc3d43 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_file_size_proportion_data.go @@ -0,0 +1,112 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainFileSizeProportionData invokes the cdn.DescribeDomainFileSizeProportionData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainfilesizeproportiondata.html +func (client *Client) DescribeDomainFileSizeProportionData(request *DescribeDomainFileSizeProportionDataRequest) (response *DescribeDomainFileSizeProportionDataResponse, err error) { + response = CreateDescribeDomainFileSizeProportionDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainFileSizeProportionDataWithChan invokes the cdn.DescribeDomainFileSizeProportionData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainfilesizeproportiondata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainFileSizeProportionDataWithChan(request *DescribeDomainFileSizeProportionDataRequest) (<-chan *DescribeDomainFileSizeProportionDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainFileSizeProportionDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainFileSizeProportionData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainFileSizeProportionDataWithCallback invokes the cdn.DescribeDomainFileSizeProportionData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainfilesizeproportiondata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainFileSizeProportionDataWithCallback(request *DescribeDomainFileSizeProportionDataRequest, callback func(response *DescribeDomainFileSizeProportionDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainFileSizeProportionDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainFileSizeProportionData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainFileSizeProportionDataRequest is the request struct for api DescribeDomainFileSizeProportionData +type DescribeDomainFileSizeProportionDataRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainFileSizeProportionDataResponse is the response struct for api DescribeDomainFileSizeProportionData +type DescribeDomainFileSizeProportionDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + FileSizeProportionDataInterval FileSizeProportionDataInterval `json:"FileSizeProportionDataInterval" xml:"FileSizeProportionDataInterval"` +} + +// CreateDescribeDomainFileSizeProportionDataRequest creates a request to invoke DescribeDomainFileSizeProportionData API +func CreateDescribeDomainFileSizeProportionDataRequest() (request *DescribeDomainFileSizeProportionDataRequest) { + request = &DescribeDomainFileSizeProportionDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainFileSizeProportionData", "", "") + return +} + +// CreateDescribeDomainFileSizeProportionDataResponse creates a response to parse from DescribeDomainFileSizeProportionData response +func CreateDescribeDomainFileSizeProportionDataResponse() (response *DescribeDomainFileSizeProportionDataResponse) { + response = &DescribeDomainFileSizeProportionDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_flow_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_flow_data.go new file mode 100644 index 0000000..9cdc594 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_flow_data.go @@ -0,0 +1,118 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainFlowData invokes the cdn.DescribeDomainFlowData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainflowdata.html +func (client *Client) DescribeDomainFlowData(request *DescribeDomainFlowDataRequest) (response *DescribeDomainFlowDataResponse, err error) { + response = CreateDescribeDomainFlowDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainFlowDataWithChan invokes the cdn.DescribeDomainFlowData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainflowdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainFlowDataWithChan(request *DescribeDomainFlowDataRequest) (<-chan *DescribeDomainFlowDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainFlowDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainFlowData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainFlowDataWithCallback invokes the cdn.DescribeDomainFlowData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainflowdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainFlowDataWithCallback(request *DescribeDomainFlowDataRequest, callback func(response *DescribeDomainFlowDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainFlowDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainFlowData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainFlowDataRequest is the request struct for api DescribeDomainFlowData +type DescribeDomainFlowDataRequest struct { + *requests.RpcRequest + FixTimeGap string `position:"Query" name:"FixTimeGap"` + TimeMerge string `position:"Query" name:"TimeMerge"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + LocationNameEn string `position:"Query" name:"LocationNameEn"` + StartTime string `position:"Query" name:"StartTime"` + IspNameEn string `position:"Query" name:"IspNameEn"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + DomainType string `position:"Query" name:"DomainType"` + SecurityToken string `position:"Query" name:"SecurityToken"` + Interval string `position:"Query" name:"Interval"` +} + +// DescribeDomainFlowDataResponse is the response struct for api DescribeDomainFlowData +type DescribeDomainFlowDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + FlowDataPerInterval FlowDataPerInterval `json:"FlowDataPerInterval" xml:"FlowDataPerInterval"` +} + +// CreateDescribeDomainFlowDataRequest creates a request to invoke DescribeDomainFlowData API +func CreateDescribeDomainFlowDataRequest() (request *DescribeDomainFlowDataRequest) { + request = &DescribeDomainFlowDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainFlowData", "", "") + return +} + +// CreateDescribeDomainFlowDataResponse creates a response to parse from DescribeDomainFlowData response +func CreateDescribeDomainFlowDataResponse() (response *DescribeDomainFlowDataResponse) { + response = &DescribeDomainFlowDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_hit_rate_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_hit_rate_data.go new file mode 100644 index 0000000..da30588 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_hit_rate_data.go @@ -0,0 +1,116 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainHitRateData invokes the cdn.DescribeDomainHitRateData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainhitratedata.html +func (client *Client) DescribeDomainHitRateData(request *DescribeDomainHitRateDataRequest) (response *DescribeDomainHitRateDataResponse, err error) { + response = CreateDescribeDomainHitRateDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainHitRateDataWithChan invokes the cdn.DescribeDomainHitRateData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainhitratedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainHitRateDataWithChan(request *DescribeDomainHitRateDataRequest) (<-chan *DescribeDomainHitRateDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainHitRateDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainHitRateData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainHitRateDataWithCallback invokes the cdn.DescribeDomainHitRateData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainhitratedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainHitRateDataWithCallback(request *DescribeDomainHitRateDataRequest, callback func(response *DescribeDomainHitRateDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainHitRateDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainHitRateData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainHitRateDataRequest is the request struct for api DescribeDomainHitRateData +type DescribeDomainHitRateDataRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + TimeMerge string `position:"Query" name:"TimeMerge"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + LocationNameEn string `position:"Query" name:"LocationNameEn"` + Interval string `position:"Query" name:"Interval"` + StartTime string `position:"Query" name:"StartTime"` + IspNameEn string `position:"Query" name:"IspNameEn"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainHitRateDataResponse is the response struct for api DescribeDomainHitRateData +type DescribeDomainHitRateDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + HitRateInterval HitRateInterval `json:"HitRateInterval" xml:"HitRateInterval"` +} + +// CreateDescribeDomainHitRateDataRequest creates a request to invoke DescribeDomainHitRateData API +func CreateDescribeDomainHitRateDataRequest() (request *DescribeDomainHitRateDataRequest) { + request = &DescribeDomainHitRateDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainHitRateData", "", "") + return +} + +// CreateDescribeDomainHitRateDataResponse creates a response to parse from DescribeDomainHitRateData response +func CreateDescribeDomainHitRateDataResponse() (response *DescribeDomainHitRateDataResponse) { + response = &DescribeDomainHitRateDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_http_code_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_http_code_data.go new file mode 100644 index 0000000..040842f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_http_code_data.go @@ -0,0 +1,116 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainHttpCodeData invokes the cdn.DescribeDomainHttpCodeData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainhttpcodedata.html +func (client *Client) DescribeDomainHttpCodeData(request *DescribeDomainHttpCodeDataRequest) (response *DescribeDomainHttpCodeDataResponse, err error) { + response = CreateDescribeDomainHttpCodeDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainHttpCodeDataWithChan invokes the cdn.DescribeDomainHttpCodeData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainhttpcodedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainHttpCodeDataWithChan(request *DescribeDomainHttpCodeDataRequest) (<-chan *DescribeDomainHttpCodeDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainHttpCodeDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainHttpCodeData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainHttpCodeDataWithCallback invokes the cdn.DescribeDomainHttpCodeData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainhttpcodedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainHttpCodeDataWithCallback(request *DescribeDomainHttpCodeDataRequest, callback func(response *DescribeDomainHttpCodeDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainHttpCodeDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainHttpCodeData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainHttpCodeDataRequest is the request struct for api DescribeDomainHttpCodeData +type DescribeDomainHttpCodeDataRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + TimeMerge string `position:"Query" name:"TimeMerge"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + LocationNameEn string `position:"Query" name:"LocationNameEn"` + Interval string `position:"Query" name:"Interval"` + StartTime string `position:"Query" name:"StartTime"` + IspNameEn string `position:"Query" name:"IspNameEn"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainHttpCodeDataResponse is the response struct for api DescribeDomainHttpCodeData +type DescribeDomainHttpCodeDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + HttpCodeData HttpCodeData `json:"HttpCodeData" xml:"HttpCodeData"` +} + +// CreateDescribeDomainHttpCodeDataRequest creates a request to invoke DescribeDomainHttpCodeData API +func CreateDescribeDomainHttpCodeDataRequest() (request *DescribeDomainHttpCodeDataRequest) { + request = &DescribeDomainHttpCodeDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainHttpCodeData", "", "") + return +} + +// CreateDescribeDomainHttpCodeDataResponse creates a response to parse from DescribeDomainHttpCodeData response +func CreateDescribeDomainHttpCodeDataResponse() (response *DescribeDomainHttpCodeDataResponse) { + response = &DescribeDomainHttpCodeDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_https_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_https_data.go new file mode 100644 index 0000000..e3bb8fe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_https_data.go @@ -0,0 +1,115 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainHttpsData invokes the cdn.DescribeDomainHttpsData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainhttpsdata.html +func (client *Client) DescribeDomainHttpsData(request *DescribeDomainHttpsDataRequest) (response *DescribeDomainHttpsDataResponse, err error) { + response = CreateDescribeDomainHttpsDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainHttpsDataWithChan invokes the cdn.DescribeDomainHttpsData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainhttpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainHttpsDataWithChan(request *DescribeDomainHttpsDataRequest) (<-chan *DescribeDomainHttpsDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainHttpsDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainHttpsData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainHttpsDataWithCallback invokes the cdn.DescribeDomainHttpsData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainhttpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainHttpsDataWithCallback(request *DescribeDomainHttpsDataRequest, callback func(response *DescribeDomainHttpsDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainHttpsDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainHttpsData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainHttpsDataRequest is the request struct for api DescribeDomainHttpsData +type DescribeDomainHttpsDataRequest struct { + *requests.RpcRequest + DomainType string `position:"Query" name:"DomainType"` + FixTimeGap string `position:"Query" name:"FixTimeGap"` + SecurityToken string `position:"Query" name:"SecurityToken"` + TimeMerge string `position:"Query" name:"TimeMerge"` + DomainNames string `position:"Query" name:"DomainNames"` + EndTime string `position:"Query" name:"EndTime"` + Interval string `position:"Query" name:"Interval"` + StartTime string `position:"Query" name:"StartTime"` + Cls string `position:"Query" name:"Cls"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainHttpsDataResponse is the response struct for api DescribeDomainHttpsData +type DescribeDomainHttpsDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainNames string `json:"DomainNames" xml:"DomainNames"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + HttpsStatisticsInfos HttpsStatisticsInfos `json:"HttpsStatisticsInfos" xml:"HttpsStatisticsInfos"` +} + +// CreateDescribeDomainHttpsDataRequest creates a request to invoke DescribeDomainHttpsData API +func CreateDescribeDomainHttpsDataRequest() (request *DescribeDomainHttpsDataRequest) { + request = &DescribeDomainHttpsDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainHttpsData", "", "") + return +} + +// CreateDescribeDomainHttpsDataResponse creates a response to parse from DescribeDomainHttpsData response +func CreateDescribeDomainHttpsDataResponse() (response *DescribeDomainHttpsDataResponse) { + response = &DescribeDomainHttpsDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_isp_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_isp_data.go new file mode 100644 index 0000000..0540b2b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_isp_data.go @@ -0,0 +1,112 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainISPData invokes the cdn.DescribeDomainISPData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainispdata.html +func (client *Client) DescribeDomainISPData(request *DescribeDomainISPDataRequest) (response *DescribeDomainISPDataResponse, err error) { + response = CreateDescribeDomainISPDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainISPDataWithChan invokes the cdn.DescribeDomainISPData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainispdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainISPDataWithChan(request *DescribeDomainISPDataRequest) (<-chan *DescribeDomainISPDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainISPDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainISPData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainISPDataWithCallback invokes the cdn.DescribeDomainISPData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainispdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainISPDataWithCallback(request *DescribeDomainISPDataRequest, callback func(response *DescribeDomainISPDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainISPDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainISPData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainISPDataRequest is the request struct for api DescribeDomainISPData +type DescribeDomainISPDataRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainISPDataResponse is the response struct for api DescribeDomainISPData +type DescribeDomainISPDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + Value ValueInDescribeDomainISPData `json:"Value" xml:"Value"` +} + +// CreateDescribeDomainISPDataRequest creates a request to invoke DescribeDomainISPData API +func CreateDescribeDomainISPDataRequest() (request *DescribeDomainISPDataRequest) { + request = &DescribeDomainISPDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainISPData", "", "") + return +} + +// CreateDescribeDomainISPDataResponse creates a response to parse from DescribeDomainISPData response +func CreateDescribeDomainISPDataResponse() (response *DescribeDomainISPDataResponse) { + response = &DescribeDomainISPDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_max95_bps_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_max95_bps_data.go new file mode 100644 index 0000000..d4d15d7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_max95_bps_data.go @@ -0,0 +1,113 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainMax95BpsData invokes the cdn.DescribeDomainMax95BpsData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainmax95bpsdata.html +func (client *Client) DescribeDomainMax95BpsData(request *DescribeDomainMax95BpsDataRequest) (response *DescribeDomainMax95BpsDataResponse, err error) { + response = CreateDescribeDomainMax95BpsDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainMax95BpsDataWithChan invokes the cdn.DescribeDomainMax95BpsData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainmax95bpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainMax95BpsDataWithChan(request *DescribeDomainMax95BpsDataRequest) (<-chan *DescribeDomainMax95BpsDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainMax95BpsDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainMax95BpsData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainMax95BpsDataWithCallback invokes the cdn.DescribeDomainMax95BpsData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainmax95bpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainMax95BpsDataWithCallback(request *DescribeDomainMax95BpsDataRequest, callback func(response *DescribeDomainMax95BpsDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainMax95BpsDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainMax95BpsData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainMax95BpsDataRequest is the request struct for api DescribeDomainMax95BpsData +type DescribeDomainMax95BpsDataRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainMax95BpsDataResponse is the response struct for api DescribeDomainMax95BpsData +type DescribeDomainMax95BpsDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + Max95Bps string `json:"Max95Bps" xml:"Max95Bps"` + DomesticMax95Bps string `json:"DomesticMax95Bps" xml:"DomesticMax95Bps"` + OverseasMax95Bps string `json:"OverseasMax95Bps" xml:"OverseasMax95Bps"` +} + +// CreateDescribeDomainMax95BpsDataRequest creates a request to invoke DescribeDomainMax95BpsData API +func CreateDescribeDomainMax95BpsDataRequest() (request *DescribeDomainMax95BpsDataRequest) { + request = &DescribeDomainMax95BpsDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainMax95BpsData", "", "") + return +} + +// CreateDescribeDomainMax95BpsDataResponse creates a response to parse from DescribeDomainMax95BpsData response +func CreateDescribeDomainMax95BpsDataResponse() (response *DescribeDomainMax95BpsDataResponse) { + response = &DescribeDomainMax95BpsDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_month_billing_bps_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_month_billing_bps_data.go new file mode 100644 index 0000000..a0a1f9d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_month_billing_bps_data.go @@ -0,0 +1,120 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainMonthBillingBpsData invokes the cdn.DescribeDomainMonthBillingBpsData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainmonthbillingbpsdata.html +func (client *Client) DescribeDomainMonthBillingBpsData(request *DescribeDomainMonthBillingBpsDataRequest) (response *DescribeDomainMonthBillingBpsDataResponse, err error) { + response = CreateDescribeDomainMonthBillingBpsDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainMonthBillingBpsDataWithChan invokes the cdn.DescribeDomainMonthBillingBpsData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainmonthbillingbpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainMonthBillingBpsDataWithChan(request *DescribeDomainMonthBillingBpsDataRequest) (<-chan *DescribeDomainMonthBillingBpsDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainMonthBillingBpsDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainMonthBillingBpsData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainMonthBillingBpsDataWithCallback invokes the cdn.DescribeDomainMonthBillingBpsData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainmonthbillingbpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainMonthBillingBpsDataWithCallback(request *DescribeDomainMonthBillingBpsDataRequest, callback func(response *DescribeDomainMonthBillingBpsDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainMonthBillingBpsDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainMonthBillingBpsData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainMonthBillingBpsDataRequest is the request struct for api DescribeDomainMonthBillingBpsData +type DescribeDomainMonthBillingBpsDataRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainMonthBillingBpsDataResponse is the response struct for api DescribeDomainMonthBillingBpsData +type DescribeDomainMonthBillingBpsDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + Bandwidth95Bps float64 `json:"Bandwidth95Bps" xml:"Bandwidth95Bps"` + DomesticBandwidth95Bps float64 `json:"DomesticBandwidth95Bps" xml:"DomesticBandwidth95Bps"` + OverseasBandwidth95Bps float64 `json:"OverseasBandwidth95Bps" xml:"OverseasBandwidth95Bps"` + MonthavgBps float64 `json:"MonthavgBps" xml:"MonthavgBps"` + DomesticMonthavgBps float64 `json:"DomesticMonthavgBps" xml:"DomesticMonthavgBps"` + OverseasMonthavgBps float64 `json:"OverseasMonthavgBps" xml:"OverseasMonthavgBps"` + Month4thBps float64 `json:"Month4thBps" xml:"Month4thBps"` + DomesticMonth4thBps float64 `json:"DomesticMonth4thBps" xml:"DomesticMonth4thBps"` + OverseasMonth4thBps float64 `json:"OverseasMonth4thBps" xml:"OverseasMonth4thBps"` +} + +// CreateDescribeDomainMonthBillingBpsDataRequest creates a request to invoke DescribeDomainMonthBillingBpsData API +func CreateDescribeDomainMonthBillingBpsDataRequest() (request *DescribeDomainMonthBillingBpsDataRequest) { + request = &DescribeDomainMonthBillingBpsDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainMonthBillingBpsData", "", "") + return +} + +// CreateDescribeDomainMonthBillingBpsDataResponse creates a response to parse from DescribeDomainMonthBillingBpsData response +func CreateDescribeDomainMonthBillingBpsDataResponse() (response *DescribeDomainMonthBillingBpsDataResponse) { + response = &DescribeDomainMonthBillingBpsDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_online_user_number.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_online_user_number.go new file mode 100644 index 0000000..1f2d0ef --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_online_user_number.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainOnlineUserNumber invokes the cdn.DescribeDomainOnlineUserNumber API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainonlineusernumber.html +func (client *Client) DescribeDomainOnlineUserNumber(request *DescribeDomainOnlineUserNumberRequest) (response *DescribeDomainOnlineUserNumberResponse, err error) { + response = CreateDescribeDomainOnlineUserNumberResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainOnlineUserNumberWithChan invokes the cdn.DescribeDomainOnlineUserNumber API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainonlineusernumber.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainOnlineUserNumberWithChan(request *DescribeDomainOnlineUserNumberRequest) (<-chan *DescribeDomainOnlineUserNumberResponse, <-chan error) { + responseChan := make(chan *DescribeDomainOnlineUserNumberResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainOnlineUserNumber(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainOnlineUserNumberWithCallback invokes the cdn.DescribeDomainOnlineUserNumber API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainonlineusernumber.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainOnlineUserNumberWithCallback(request *DescribeDomainOnlineUserNumberRequest, callback func(response *DescribeDomainOnlineUserNumberResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainOnlineUserNumberResponse + var err error + defer close(result) + response, err = client.DescribeDomainOnlineUserNumber(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainOnlineUserNumberRequest is the request struct for api DescribeDomainOnlineUserNumber +type DescribeDomainOnlineUserNumberRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainOnlineUserNumberResponse is the response struct for api DescribeDomainOnlineUserNumber +type DescribeDomainOnlineUserNumberResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LiveStreamOnlineUserNumInfos LiveStreamOnlineUserNumInfos `json:"LiveStreamOnlineUserNumInfos" xml:"LiveStreamOnlineUserNumInfos"` +} + +// CreateDescribeDomainOnlineUserNumberRequest creates a request to invoke DescribeDomainOnlineUserNumber API +func CreateDescribeDomainOnlineUserNumberRequest() (request *DescribeDomainOnlineUserNumberRequest) { + request = &DescribeDomainOnlineUserNumberRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainOnlineUserNumber", "", "") + return +} + +// CreateDescribeDomainOnlineUserNumberResponse creates a response to parse from DescribeDomainOnlineUserNumber response +func CreateDescribeDomainOnlineUserNumberResponse() (response *DescribeDomainOnlineUserNumberResponse) { + response = &DescribeDomainOnlineUserNumberResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_path_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_path_data.go new file mode 100644 index 0000000..720c24d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_path_data.go @@ -0,0 +1,118 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainPathData invokes the cdn.DescribeDomainPathData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainpathdata.html +func (client *Client) DescribeDomainPathData(request *DescribeDomainPathDataRequest) (response *DescribeDomainPathDataResponse, err error) { + response = CreateDescribeDomainPathDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainPathDataWithChan invokes the cdn.DescribeDomainPathData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainpathdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainPathDataWithChan(request *DescribeDomainPathDataRequest) (<-chan *DescribeDomainPathDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainPathDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainPathData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainPathDataWithCallback invokes the cdn.DescribeDomainPathData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainpathdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainPathDataWithCallback(request *DescribeDomainPathDataRequest, callback func(response *DescribeDomainPathDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainPathDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainPathData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainPathDataRequest is the request struct for api DescribeDomainPathData +type DescribeDomainPathDataRequest struct { + *requests.RpcRequest + StartTime string `position:"Query" name:"StartTime"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + Path string `position:"Query" name:"Path"` + SecurityToken string `position:"Query" name:"SecurityToken"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Version string `position:"Query" name:"Version"` +} + +// DescribeDomainPathDataResponse is the response struct for api DescribeDomainPathData +type DescribeDomainPathDataResponse struct { + *responses.BaseResponse + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PathDataPerInterval PathDataPerInterval `json:"PathDataPerInterval" xml:"PathDataPerInterval"` +} + +// CreateDescribeDomainPathDataRequest creates a request to invoke DescribeDomainPathData API +func CreateDescribeDomainPathDataRequest() (request *DescribeDomainPathDataRequest) { + request = &DescribeDomainPathDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainPathData", "", "") + return +} + +// CreateDescribeDomainPathDataResponse creates a response to parse from DescribeDomainPathData response +func CreateDescribeDomainPathDataResponse() (response *DescribeDomainPathDataResponse) { + response = &DescribeDomainPathDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_pv_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_pv_data.go new file mode 100644 index 0000000..c1d16e9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_pv_data.go @@ -0,0 +1,112 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainPvData invokes the cdn.DescribeDomainPvData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainpvdata.html +func (client *Client) DescribeDomainPvData(request *DescribeDomainPvDataRequest) (response *DescribeDomainPvDataResponse, err error) { + response = CreateDescribeDomainPvDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainPvDataWithChan invokes the cdn.DescribeDomainPvData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainpvdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainPvDataWithChan(request *DescribeDomainPvDataRequest) (<-chan *DescribeDomainPvDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainPvDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainPvData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainPvDataWithCallback invokes the cdn.DescribeDomainPvData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainpvdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainPvDataWithCallback(request *DescribeDomainPvDataRequest, callback func(response *DescribeDomainPvDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainPvDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainPvData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainPvDataRequest is the request struct for api DescribeDomainPvData +type DescribeDomainPvDataRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainPvDataResponse is the response struct for api DescribeDomainPvData +type DescribeDomainPvDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + PvDataInterval PvDataInterval `json:"PvDataInterval" xml:"PvDataInterval"` +} + +// CreateDescribeDomainPvDataRequest creates a request to invoke DescribeDomainPvData API +func CreateDescribeDomainPvDataRequest() (request *DescribeDomainPvDataRequest) { + request = &DescribeDomainPvDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainPvData", "", "") + return +} + +// CreateDescribeDomainPvDataResponse creates a response to parse from DescribeDomainPvData response +func CreateDescribeDomainPvDataResponse() (response *DescribeDomainPvDataResponse) { + response = &DescribeDomainPvDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_qo_s_rt.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_qo_s_rt.go new file mode 100644 index 0000000..3a28978 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_qo_s_rt.go @@ -0,0 +1,113 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainQoSRt invokes the cdn.DescribeDomainQoSRt API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainqosrt.html +func (client *Client) DescribeDomainQoSRt(request *DescribeDomainQoSRtRequest) (response *DescribeDomainQoSRtResponse, err error) { + response = CreateDescribeDomainQoSRtResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainQoSRtWithChan invokes the cdn.DescribeDomainQoSRt API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainqosrt.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainQoSRtWithChan(request *DescribeDomainQoSRtRequest) (<-chan *DescribeDomainQoSRtResponse, <-chan error) { + responseChan := make(chan *DescribeDomainQoSRtResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainQoSRt(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainQoSRtWithCallback invokes the cdn.DescribeDomainQoSRt API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainqosrt.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainQoSRtWithCallback(request *DescribeDomainQoSRtRequest, callback func(response *DescribeDomainQoSRtResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainQoSRtResponse + var err error + defer close(result) + response, err = client.DescribeDomainQoSRt(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainQoSRtRequest is the request struct for api DescribeDomainQoSRt +type DescribeDomainQoSRtRequest struct { + *requests.RpcRequest + Ip string `position:"Query" name:"Ip"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Version string `position:"Query" name:"Version"` + SecurityToken string `position:"Query" name:"SecurityToken"` +} + +// DescribeDomainQoSRtResponse is the response struct for api DescribeDomainQoSRt +type DescribeDomainQoSRtResponse struct { + *responses.BaseResponse + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + Ip string `json:"Ip" xml:"Ip"` + Content Content `json:"Content" xml:"Content"` +} + +// CreateDescribeDomainQoSRtRequest creates a request to invoke DescribeDomainQoSRt API +func CreateDescribeDomainQoSRtRequest() (request *DescribeDomainQoSRtRequest) { + request = &DescribeDomainQoSRtRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainQoSRt", "", "") + return +} + +// CreateDescribeDomainQoSRtResponse creates a response to parse from DescribeDomainQoSRt response +func CreateDescribeDomainQoSRtResponse() (response *DescribeDomainQoSRtResponse) { + response = &DescribeDomainQoSRtResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_qps_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_qps_data.go new file mode 100644 index 0000000..7b86034 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_qps_data.go @@ -0,0 +1,118 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainQpsData invokes the cdn.DescribeDomainQpsData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainqpsdata.html +func (client *Client) DescribeDomainQpsData(request *DescribeDomainQpsDataRequest) (response *DescribeDomainQpsDataResponse, err error) { + response = CreateDescribeDomainQpsDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainQpsDataWithChan invokes the cdn.DescribeDomainQpsData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainqpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainQpsDataWithChan(request *DescribeDomainQpsDataRequest) (<-chan *DescribeDomainQpsDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainQpsDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainQpsData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainQpsDataWithCallback invokes the cdn.DescribeDomainQpsData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainqpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainQpsDataWithCallback(request *DescribeDomainQpsDataRequest, callback func(response *DescribeDomainQpsDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainQpsDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainQpsData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainQpsDataRequest is the request struct for api DescribeDomainQpsData +type DescribeDomainQpsDataRequest struct { + *requests.RpcRequest + FixTimeGap string `position:"Query" name:"FixTimeGap"` + TimeMerge string `position:"Query" name:"TimeMerge"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + LocationNameEn string `position:"Query" name:"LocationNameEn"` + StartTime string `position:"Query" name:"StartTime"` + IspNameEn string `position:"Query" name:"IspNameEn"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + DomainType string `position:"Query" name:"DomainType"` + SecurityToken string `position:"Query" name:"SecurityToken"` + Interval string `position:"Query" name:"Interval"` +} + +// DescribeDomainQpsDataResponse is the response struct for api DescribeDomainQpsData +type DescribeDomainQpsDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + QpsDataInterval QpsDataInterval `json:"QpsDataInterval" xml:"QpsDataInterval"` +} + +// CreateDescribeDomainQpsDataRequest creates a request to invoke DescribeDomainQpsData API +func CreateDescribeDomainQpsDataRequest() (request *DescribeDomainQpsDataRequest) { + request = &DescribeDomainQpsDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainQpsData", "", "") + return +} + +// CreateDescribeDomainQpsDataResponse creates a response to parse from DescribeDomainQpsData response +func CreateDescribeDomainQpsDataResponse() (response *DescribeDomainQpsDataResponse) { + response = &DescribeDomainQpsDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_real_time_bps_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_real_time_bps_data.go new file mode 100644 index 0000000..7fb23fa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_real_time_bps_data.go @@ -0,0 +1,109 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainRealTimeBpsData invokes the cdn.DescribeDomainRealTimeBpsData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainrealtimebpsdata.html +func (client *Client) DescribeDomainRealTimeBpsData(request *DescribeDomainRealTimeBpsDataRequest) (response *DescribeDomainRealTimeBpsDataResponse, err error) { + response = CreateDescribeDomainRealTimeBpsDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainRealTimeBpsDataWithChan invokes the cdn.DescribeDomainRealTimeBpsData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainrealtimebpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainRealTimeBpsDataWithChan(request *DescribeDomainRealTimeBpsDataRequest) (<-chan *DescribeDomainRealTimeBpsDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainRealTimeBpsDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainRealTimeBpsData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainRealTimeBpsDataWithCallback invokes the cdn.DescribeDomainRealTimeBpsData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainrealtimebpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainRealTimeBpsDataWithCallback(request *DescribeDomainRealTimeBpsDataRequest, callback func(response *DescribeDomainRealTimeBpsDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainRealTimeBpsDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainRealTimeBpsData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainRealTimeBpsDataRequest is the request struct for api DescribeDomainRealTimeBpsData +type DescribeDomainRealTimeBpsDataRequest struct { + *requests.RpcRequest + LocationNameEn string `position:"Query" name:"LocationNameEn"` + IspNameEn string `position:"Query" name:"IspNameEn"` + StartTime string `position:"Query" name:"StartTime"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainRealTimeBpsDataResponse is the response struct for api DescribeDomainRealTimeBpsData +type DescribeDomainRealTimeBpsDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data DataInDescribeDomainRealTimeBpsData `json:"Data" xml:"Data"` +} + +// CreateDescribeDomainRealTimeBpsDataRequest creates a request to invoke DescribeDomainRealTimeBpsData API +func CreateDescribeDomainRealTimeBpsDataRequest() (request *DescribeDomainRealTimeBpsDataRequest) { + request = &DescribeDomainRealTimeBpsDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainRealTimeBpsData", "", "") + return +} + +// CreateDescribeDomainRealTimeBpsDataResponse creates a response to parse from DescribeDomainRealTimeBpsData response +func CreateDescribeDomainRealTimeBpsDataResponse() (response *DescribeDomainRealTimeBpsDataResponse) { + response = &DescribeDomainRealTimeBpsDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_real_time_byte_hit_rate_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_real_time_byte_hit_rate_data.go new file mode 100644 index 0000000..a3f9227 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_real_time_byte_hit_rate_data.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainRealTimeByteHitRateData invokes the cdn.DescribeDomainRealTimeByteHitRateData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainrealtimebytehitratedata.html +func (client *Client) DescribeDomainRealTimeByteHitRateData(request *DescribeDomainRealTimeByteHitRateDataRequest) (response *DescribeDomainRealTimeByteHitRateDataResponse, err error) { + response = CreateDescribeDomainRealTimeByteHitRateDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainRealTimeByteHitRateDataWithChan invokes the cdn.DescribeDomainRealTimeByteHitRateData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainrealtimebytehitratedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainRealTimeByteHitRateDataWithChan(request *DescribeDomainRealTimeByteHitRateDataRequest) (<-chan *DescribeDomainRealTimeByteHitRateDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainRealTimeByteHitRateDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainRealTimeByteHitRateData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainRealTimeByteHitRateDataWithCallback invokes the cdn.DescribeDomainRealTimeByteHitRateData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainrealtimebytehitratedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainRealTimeByteHitRateDataWithCallback(request *DescribeDomainRealTimeByteHitRateDataRequest, callback func(response *DescribeDomainRealTimeByteHitRateDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainRealTimeByteHitRateDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainRealTimeByteHitRateData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainRealTimeByteHitRateDataRequest is the request struct for api DescribeDomainRealTimeByteHitRateData +type DescribeDomainRealTimeByteHitRateDataRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainRealTimeByteHitRateDataResponse is the response struct for api DescribeDomainRealTimeByteHitRateData +type DescribeDomainRealTimeByteHitRateDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data DataInDescribeDomainRealTimeByteHitRateData `json:"Data" xml:"Data"` +} + +// CreateDescribeDomainRealTimeByteHitRateDataRequest creates a request to invoke DescribeDomainRealTimeByteHitRateData API +func CreateDescribeDomainRealTimeByteHitRateDataRequest() (request *DescribeDomainRealTimeByteHitRateDataRequest) { + request = &DescribeDomainRealTimeByteHitRateDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainRealTimeByteHitRateData", "", "") + return +} + +// CreateDescribeDomainRealTimeByteHitRateDataResponse creates a response to parse from DescribeDomainRealTimeByteHitRateData response +func CreateDescribeDomainRealTimeByteHitRateDataResponse() (response *DescribeDomainRealTimeByteHitRateDataResponse) { + response = &DescribeDomainRealTimeByteHitRateDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_real_time_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_real_time_data.go new file mode 100644 index 0000000..5681803 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_real_time_data.go @@ -0,0 +1,113 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainRealTimeData invokes the cdn.DescribeDomainRealTimeData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainrealtimedata.html +func (client *Client) DescribeDomainRealTimeData(request *DescribeDomainRealTimeDataRequest) (response *DescribeDomainRealTimeDataResponse, err error) { + response = CreateDescribeDomainRealTimeDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainRealTimeDataWithChan invokes the cdn.DescribeDomainRealTimeData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainrealtimedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainRealTimeDataWithChan(request *DescribeDomainRealTimeDataRequest) (<-chan *DescribeDomainRealTimeDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainRealTimeDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainRealTimeData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainRealTimeDataWithCallback invokes the cdn.DescribeDomainRealTimeData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainrealtimedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainRealTimeDataWithCallback(request *DescribeDomainRealTimeDataRequest, callback func(response *DescribeDomainRealTimeDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainRealTimeDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainRealTimeData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainRealTimeDataRequest is the request struct for api DescribeDomainRealTimeData +type DescribeDomainRealTimeDataRequest struct { + *requests.RpcRequest + Field string `position:"Query" name:"Field"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainRealTimeDataResponse is the response struct for api DescribeDomainRealTimeData +type DescribeDomainRealTimeDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + Field string `json:"Field" xml:"Field"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DataPerInterval DataPerIntervalInDescribeDomainRealTimeData `json:"DataPerInterval" xml:"DataPerInterval"` +} + +// CreateDescribeDomainRealTimeDataRequest creates a request to invoke DescribeDomainRealTimeData API +func CreateDescribeDomainRealTimeDataRequest() (request *DescribeDomainRealTimeDataRequest) { + request = &DescribeDomainRealTimeDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainRealTimeData", "", "") + return +} + +// CreateDescribeDomainRealTimeDataResponse creates a response to parse from DescribeDomainRealTimeData response +func CreateDescribeDomainRealTimeDataResponse() (response *DescribeDomainRealTimeDataResponse) { + response = &DescribeDomainRealTimeDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_real_time_qps_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_real_time_qps_data.go new file mode 100644 index 0000000..64849b0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_real_time_qps_data.go @@ -0,0 +1,109 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainRealTimeQpsData invokes the cdn.DescribeDomainRealTimeQpsData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainrealtimeqpsdata.html +func (client *Client) DescribeDomainRealTimeQpsData(request *DescribeDomainRealTimeQpsDataRequest) (response *DescribeDomainRealTimeQpsDataResponse, err error) { + response = CreateDescribeDomainRealTimeQpsDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainRealTimeQpsDataWithChan invokes the cdn.DescribeDomainRealTimeQpsData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainrealtimeqpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainRealTimeQpsDataWithChan(request *DescribeDomainRealTimeQpsDataRequest) (<-chan *DescribeDomainRealTimeQpsDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainRealTimeQpsDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainRealTimeQpsData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainRealTimeQpsDataWithCallback invokes the cdn.DescribeDomainRealTimeQpsData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainrealtimeqpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainRealTimeQpsDataWithCallback(request *DescribeDomainRealTimeQpsDataRequest, callback func(response *DescribeDomainRealTimeQpsDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainRealTimeQpsDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainRealTimeQpsData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainRealTimeQpsDataRequest is the request struct for api DescribeDomainRealTimeQpsData +type DescribeDomainRealTimeQpsDataRequest struct { + *requests.RpcRequest + LocationNameEn string `position:"Query" name:"LocationNameEn"` + IspNameEn string `position:"Query" name:"IspNameEn"` + StartTime string `position:"Query" name:"StartTime"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainRealTimeQpsDataResponse is the response struct for api DescribeDomainRealTimeQpsData +type DescribeDomainRealTimeQpsDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data DataInDescribeDomainRealTimeQpsData `json:"Data" xml:"Data"` +} + +// CreateDescribeDomainRealTimeQpsDataRequest creates a request to invoke DescribeDomainRealTimeQpsData API +func CreateDescribeDomainRealTimeQpsDataRequest() (request *DescribeDomainRealTimeQpsDataRequest) { + request = &DescribeDomainRealTimeQpsDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainRealTimeQpsData", "", "") + return +} + +// CreateDescribeDomainRealTimeQpsDataResponse creates a response to parse from DescribeDomainRealTimeQpsData response +func CreateDescribeDomainRealTimeQpsDataResponse() (response *DescribeDomainRealTimeQpsDataResponse) { + response = &DescribeDomainRealTimeQpsDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_real_time_req_hit_rate_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_real_time_req_hit_rate_data.go new file mode 100644 index 0000000..5366249 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_real_time_req_hit_rate_data.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainRealTimeReqHitRateData invokes the cdn.DescribeDomainRealTimeReqHitRateData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainrealtimereqhitratedata.html +func (client *Client) DescribeDomainRealTimeReqHitRateData(request *DescribeDomainRealTimeReqHitRateDataRequest) (response *DescribeDomainRealTimeReqHitRateDataResponse, err error) { + response = CreateDescribeDomainRealTimeReqHitRateDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainRealTimeReqHitRateDataWithChan invokes the cdn.DescribeDomainRealTimeReqHitRateData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainrealtimereqhitratedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainRealTimeReqHitRateDataWithChan(request *DescribeDomainRealTimeReqHitRateDataRequest) (<-chan *DescribeDomainRealTimeReqHitRateDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainRealTimeReqHitRateDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainRealTimeReqHitRateData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainRealTimeReqHitRateDataWithCallback invokes the cdn.DescribeDomainRealTimeReqHitRateData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainrealtimereqhitratedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainRealTimeReqHitRateDataWithCallback(request *DescribeDomainRealTimeReqHitRateDataRequest, callback func(response *DescribeDomainRealTimeReqHitRateDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainRealTimeReqHitRateDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainRealTimeReqHitRateData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainRealTimeReqHitRateDataRequest is the request struct for api DescribeDomainRealTimeReqHitRateData +type DescribeDomainRealTimeReqHitRateDataRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainRealTimeReqHitRateDataResponse is the response struct for api DescribeDomainRealTimeReqHitRateData +type DescribeDomainRealTimeReqHitRateDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data DataInDescribeDomainRealTimeReqHitRateData `json:"Data" xml:"Data"` +} + +// CreateDescribeDomainRealTimeReqHitRateDataRequest creates a request to invoke DescribeDomainRealTimeReqHitRateData API +func CreateDescribeDomainRealTimeReqHitRateDataRequest() (request *DescribeDomainRealTimeReqHitRateDataRequest) { + request = &DescribeDomainRealTimeReqHitRateDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainRealTimeReqHitRateData", "", "") + return +} + +// CreateDescribeDomainRealTimeReqHitRateDataResponse creates a response to parse from DescribeDomainRealTimeReqHitRateData response +func CreateDescribeDomainRealTimeReqHitRateDataResponse() (response *DescribeDomainRealTimeReqHitRateDataResponse) { + response = &DescribeDomainRealTimeReqHitRateDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_region_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_region_data.go new file mode 100644 index 0000000..1cb739c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_region_data.go @@ -0,0 +1,112 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainRegionData invokes the cdn.DescribeDomainRegionData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainregiondata.html +func (client *Client) DescribeDomainRegionData(request *DescribeDomainRegionDataRequest) (response *DescribeDomainRegionDataResponse, err error) { + response = CreateDescribeDomainRegionDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainRegionDataWithChan invokes the cdn.DescribeDomainRegionData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainregiondata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainRegionDataWithChan(request *DescribeDomainRegionDataRequest) (<-chan *DescribeDomainRegionDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainRegionDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainRegionData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainRegionDataWithCallback invokes the cdn.DescribeDomainRegionData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainregiondata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainRegionDataWithCallback(request *DescribeDomainRegionDataRequest, callback func(response *DescribeDomainRegionDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainRegionDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainRegionData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainRegionDataRequest is the request struct for api DescribeDomainRegionData +type DescribeDomainRegionDataRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainRegionDataResponse is the response struct for api DescribeDomainRegionData +type DescribeDomainRegionDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + Value ValueInDescribeDomainRegionData `json:"Value" xml:"Value"` +} + +// CreateDescribeDomainRegionDataRequest creates a request to invoke DescribeDomainRegionData API +func CreateDescribeDomainRegionDataRequest() (request *DescribeDomainRegionDataRequest) { + request = &DescribeDomainRegionDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainRegionData", "", "") + return +} + +// CreateDescribeDomainRegionDataResponse creates a response to parse from DescribeDomainRegionData response +func CreateDescribeDomainRegionDataResponse() (response *DescribeDomainRegionDataResponse) { + response = &DescribeDomainRegionDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_req_hit_rate_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_req_hit_rate_data.go new file mode 100644 index 0000000..40edaff --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_req_hit_rate_data.go @@ -0,0 +1,113 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainReqHitRateData invokes the cdn.DescribeDomainReqHitRateData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainreqhitratedata.html +func (client *Client) DescribeDomainReqHitRateData(request *DescribeDomainReqHitRateDataRequest) (response *DescribeDomainReqHitRateDataResponse, err error) { + response = CreateDescribeDomainReqHitRateDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainReqHitRateDataWithChan invokes the cdn.DescribeDomainReqHitRateData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainreqhitratedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainReqHitRateDataWithChan(request *DescribeDomainReqHitRateDataRequest) (<-chan *DescribeDomainReqHitRateDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainReqHitRateDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainReqHitRateData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainReqHitRateDataWithCallback invokes the cdn.DescribeDomainReqHitRateData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainreqhitratedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainReqHitRateDataWithCallback(request *DescribeDomainReqHitRateDataRequest, callback func(response *DescribeDomainReqHitRateDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainReqHitRateDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainReqHitRateData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainReqHitRateDataRequest is the request struct for api DescribeDomainReqHitRateData +type DescribeDomainReqHitRateDataRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + Interval string `position:"Query" name:"Interval"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainReqHitRateDataResponse is the response struct for api DescribeDomainReqHitRateData +type DescribeDomainReqHitRateDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + ReqHitRateInterval ReqHitRateInterval `json:"ReqHitRateInterval" xml:"ReqHitRateInterval"` +} + +// CreateDescribeDomainReqHitRateDataRequest creates a request to invoke DescribeDomainReqHitRateData API +func CreateDescribeDomainReqHitRateDataRequest() (request *DescribeDomainReqHitRateDataRequest) { + request = &DescribeDomainReqHitRateDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainReqHitRateData", "", "") + return +} + +// CreateDescribeDomainReqHitRateDataResponse creates a response to parse from DescribeDomainReqHitRateData response +func CreateDescribeDomainReqHitRateDataResponse() (response *DescribeDomainReqHitRateDataResponse) { + response = &DescribeDomainReqHitRateDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_slow_ratio.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_slow_ratio.go new file mode 100644 index 0000000..61854c1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_slow_ratio.go @@ -0,0 +1,116 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainSlowRatio invokes the cdn.DescribeDomainSlowRatio API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainslowratio.html +func (client *Client) DescribeDomainSlowRatio(request *DescribeDomainSlowRatioRequest) (response *DescribeDomainSlowRatioResponse, err error) { + response = CreateDescribeDomainSlowRatioResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainSlowRatioWithChan invokes the cdn.DescribeDomainSlowRatio API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainslowratio.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainSlowRatioWithChan(request *DescribeDomainSlowRatioRequest) (<-chan *DescribeDomainSlowRatioResponse, <-chan error) { + responseChan := make(chan *DescribeDomainSlowRatioResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainSlowRatio(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainSlowRatioWithCallback invokes the cdn.DescribeDomainSlowRatio API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainslowratio.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainSlowRatioWithCallback(request *DescribeDomainSlowRatioRequest, callback func(response *DescribeDomainSlowRatioResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainSlowRatioResponse + var err error + defer close(result) + response, err = client.DescribeDomainSlowRatio(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainSlowRatioRequest is the request struct for api DescribeDomainSlowRatio +type DescribeDomainSlowRatioRequest struct { + *requests.RpcRequest + StartTime string `position:"Query" name:"StartTime"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + SecurityToken string `position:"Query" name:"SecurityToken"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Version string `position:"Query" name:"Version"` +} + +// DescribeDomainSlowRatioResponse is the response struct for api DescribeDomainSlowRatio +type DescribeDomainSlowRatioResponse struct { + *responses.BaseResponse + EndTime string `json:"EndTime" xml:"EndTime"` + DataInterval int `json:"DataInterval" xml:"DataInterval"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + StartTime string `json:"StartTime" xml:"StartTime"` + SlowRatioDataPerInterval SlowRatioDataPerInterval `json:"SlowRatioDataPerInterval" xml:"SlowRatioDataPerInterval"` +} + +// CreateDescribeDomainSlowRatioRequest creates a request to invoke DescribeDomainSlowRatio API +func CreateDescribeDomainSlowRatioRequest() (request *DescribeDomainSlowRatioRequest) { + request = &DescribeDomainSlowRatioRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainSlowRatio", "", "") + return +} + +// CreateDescribeDomainSlowRatioResponse creates a response to parse from DescribeDomainSlowRatio response +func CreateDescribeDomainSlowRatioResponse() (response *DescribeDomainSlowRatioResponse) { + response = &DescribeDomainSlowRatioResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_src_bps_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_src_bps_data.go new file mode 100644 index 0000000..70c6fc6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_src_bps_data.go @@ -0,0 +1,114 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainSrcBpsData invokes the cdn.DescribeDomainSrcBpsData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainsrcbpsdata.html +func (client *Client) DescribeDomainSrcBpsData(request *DescribeDomainSrcBpsDataRequest) (response *DescribeDomainSrcBpsDataResponse, err error) { + response = CreateDescribeDomainSrcBpsDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainSrcBpsDataWithChan invokes the cdn.DescribeDomainSrcBpsData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainsrcbpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainSrcBpsDataWithChan(request *DescribeDomainSrcBpsDataRequest) (<-chan *DescribeDomainSrcBpsDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainSrcBpsDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainSrcBpsData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainSrcBpsDataWithCallback invokes the cdn.DescribeDomainSrcBpsData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainsrcbpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainSrcBpsDataWithCallback(request *DescribeDomainSrcBpsDataRequest, callback func(response *DescribeDomainSrcBpsDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainSrcBpsDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainSrcBpsData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainSrcBpsDataRequest is the request struct for api DescribeDomainSrcBpsData +type DescribeDomainSrcBpsDataRequest struct { + *requests.RpcRequest + StartTime string `position:"Query" name:"StartTime"` + FixTimeGap string `position:"Query" name:"FixTimeGap"` + TimeMerge string `position:"Query" name:"TimeMerge"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Interval string `position:"Query" name:"Interval"` +} + +// DescribeDomainSrcBpsDataResponse is the response struct for api DescribeDomainSrcBpsData +type DescribeDomainSrcBpsDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + SrcBpsDataPerInterval SrcBpsDataPerInterval `json:"SrcBpsDataPerInterval" xml:"SrcBpsDataPerInterval"` +} + +// CreateDescribeDomainSrcBpsDataRequest creates a request to invoke DescribeDomainSrcBpsData API +func CreateDescribeDomainSrcBpsDataRequest() (request *DescribeDomainSrcBpsDataRequest) { + request = &DescribeDomainSrcBpsDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainSrcBpsData", "", "") + return +} + +// CreateDescribeDomainSrcBpsDataResponse creates a response to parse from DescribeDomainSrcBpsData response +func CreateDescribeDomainSrcBpsDataResponse() (response *DescribeDomainSrcBpsDataResponse) { + response = &DescribeDomainSrcBpsDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_src_flow_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_src_flow_data.go new file mode 100644 index 0000000..e247b68 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_src_flow_data.go @@ -0,0 +1,114 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainSrcFlowData invokes the cdn.DescribeDomainSrcFlowData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainsrcflowdata.html +func (client *Client) DescribeDomainSrcFlowData(request *DescribeDomainSrcFlowDataRequest) (response *DescribeDomainSrcFlowDataResponse, err error) { + response = CreateDescribeDomainSrcFlowDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainSrcFlowDataWithChan invokes the cdn.DescribeDomainSrcFlowData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainsrcflowdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainSrcFlowDataWithChan(request *DescribeDomainSrcFlowDataRequest) (<-chan *DescribeDomainSrcFlowDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainSrcFlowDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainSrcFlowData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainSrcFlowDataWithCallback invokes the cdn.DescribeDomainSrcFlowData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainsrcflowdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainSrcFlowDataWithCallback(request *DescribeDomainSrcFlowDataRequest, callback func(response *DescribeDomainSrcFlowDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainSrcFlowDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainSrcFlowData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainSrcFlowDataRequest is the request struct for api DescribeDomainSrcFlowData +type DescribeDomainSrcFlowDataRequest struct { + *requests.RpcRequest + StartTime string `position:"Query" name:"StartTime"` + FixTimeGap string `position:"Query" name:"FixTimeGap"` + TimeMerge string `position:"Query" name:"TimeMerge"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Interval string `position:"Query" name:"Interval"` +} + +// DescribeDomainSrcFlowDataResponse is the response struct for api DescribeDomainSrcFlowData +type DescribeDomainSrcFlowDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + SrcFlowDataPerInterval SrcFlowDataPerInterval `json:"SrcFlowDataPerInterval" xml:"SrcFlowDataPerInterval"` +} + +// CreateDescribeDomainSrcFlowDataRequest creates a request to invoke DescribeDomainSrcFlowData API +func CreateDescribeDomainSrcFlowDataRequest() (request *DescribeDomainSrcFlowDataRequest) { + request = &DescribeDomainSrcFlowDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainSrcFlowData", "", "") + return +} + +// CreateDescribeDomainSrcFlowDataResponse creates a response to parse from DescribeDomainSrcFlowData response +func CreateDescribeDomainSrcFlowDataResponse() (response *DescribeDomainSrcFlowDataResponse) { + response = &DescribeDomainSrcFlowDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_top_refer_visit.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_top_refer_visit.go new file mode 100644 index 0000000..26d3761 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_top_refer_visit.go @@ -0,0 +1,110 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainTopReferVisit invokes the cdn.DescribeDomainTopReferVisit API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomaintoprefervisit.html +func (client *Client) DescribeDomainTopReferVisit(request *DescribeDomainTopReferVisitRequest) (response *DescribeDomainTopReferVisitResponse, err error) { + response = CreateDescribeDomainTopReferVisitResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainTopReferVisitWithChan invokes the cdn.DescribeDomainTopReferVisit API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomaintoprefervisit.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainTopReferVisitWithChan(request *DescribeDomainTopReferVisitRequest) (<-chan *DescribeDomainTopReferVisitResponse, <-chan error) { + responseChan := make(chan *DescribeDomainTopReferVisitResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainTopReferVisit(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainTopReferVisitWithCallback invokes the cdn.DescribeDomainTopReferVisit API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomaintoprefervisit.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainTopReferVisitWithCallback(request *DescribeDomainTopReferVisitRequest, callback func(response *DescribeDomainTopReferVisitResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainTopReferVisitResponse + var err error + defer close(result) + response, err = client.DescribeDomainTopReferVisit(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainTopReferVisitRequest is the request struct for api DescribeDomainTopReferVisit +type DescribeDomainTopReferVisitRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + SortBy string `position:"Query" name:"SortBy"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainTopReferVisitResponse is the response struct for api DescribeDomainTopReferVisit +type DescribeDomainTopReferVisitResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + TopReferList TopReferList `json:"TopReferList" xml:"TopReferList"` +} + +// CreateDescribeDomainTopReferVisitRequest creates a request to invoke DescribeDomainTopReferVisit API +func CreateDescribeDomainTopReferVisitRequest() (request *DescribeDomainTopReferVisitRequest) { + request = &DescribeDomainTopReferVisitRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainTopReferVisit", "", "") + return +} + +// CreateDescribeDomainTopReferVisitResponse creates a response to parse from DescribeDomainTopReferVisit response +func CreateDescribeDomainTopReferVisitResponse() (response *DescribeDomainTopReferVisitResponse) { + response = &DescribeDomainTopReferVisitResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_top_url_visit.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_top_url_visit.go new file mode 100644 index 0000000..41b9c76 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_top_url_visit.go @@ -0,0 +1,114 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainTopUrlVisit invokes the cdn.DescribeDomainTopUrlVisit API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomaintopurlvisit.html +func (client *Client) DescribeDomainTopUrlVisit(request *DescribeDomainTopUrlVisitRequest) (response *DescribeDomainTopUrlVisitResponse, err error) { + response = CreateDescribeDomainTopUrlVisitResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainTopUrlVisitWithChan invokes the cdn.DescribeDomainTopUrlVisit API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomaintopurlvisit.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainTopUrlVisitWithChan(request *DescribeDomainTopUrlVisitRequest) (<-chan *DescribeDomainTopUrlVisitResponse, <-chan error) { + responseChan := make(chan *DescribeDomainTopUrlVisitResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainTopUrlVisit(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainTopUrlVisitWithCallback invokes the cdn.DescribeDomainTopUrlVisit API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomaintopurlvisit.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainTopUrlVisitWithCallback(request *DescribeDomainTopUrlVisitRequest, callback func(response *DescribeDomainTopUrlVisitResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainTopUrlVisitResponse + var err error + defer close(result) + response, err = client.DescribeDomainTopUrlVisit(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainTopUrlVisitRequest is the request struct for api DescribeDomainTopUrlVisit +type DescribeDomainTopUrlVisitRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + SortBy string `position:"Query" name:"SortBy"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainTopUrlVisitResponse is the response struct for api DescribeDomainTopUrlVisit +type DescribeDomainTopUrlVisitResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + AllUrlList AllUrlList `json:"AllUrlList" xml:"AllUrlList"` + Url200List Url200List `json:"Url200List" xml:"Url200List"` + Url300List Url300List `json:"Url300List" xml:"Url300List"` + Url400List Url400List `json:"Url400List" xml:"Url400List"` + Url500List Url500List `json:"Url500List" xml:"Url500List"` +} + +// CreateDescribeDomainTopUrlVisitRequest creates a request to invoke DescribeDomainTopUrlVisit API +func CreateDescribeDomainTopUrlVisitRequest() (request *DescribeDomainTopUrlVisitRequest) { + request = &DescribeDomainTopUrlVisitRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainTopUrlVisit", "", "") + return +} + +// CreateDescribeDomainTopUrlVisitResponse creates a response to parse from DescribeDomainTopUrlVisit response +func CreateDescribeDomainTopUrlVisitResponse() (response *DescribeDomainTopUrlVisitResponse) { + response = &DescribeDomainTopUrlVisitResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_upstream_bps_of_edge.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_upstream_bps_of_edge.go new file mode 100644 index 0000000..98318a0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_upstream_bps_of_edge.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainUpstreamBpsOfEdge invokes the cdn.DescribeDomainUpstreamBpsOfEdge API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainupstreambpsofedge.html +func (client *Client) DescribeDomainUpstreamBpsOfEdge(request *DescribeDomainUpstreamBpsOfEdgeRequest) (response *DescribeDomainUpstreamBpsOfEdgeResponse, err error) { + response = CreateDescribeDomainUpstreamBpsOfEdgeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainUpstreamBpsOfEdgeWithChan invokes the cdn.DescribeDomainUpstreamBpsOfEdge API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainupstreambpsofedge.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainUpstreamBpsOfEdgeWithChan(request *DescribeDomainUpstreamBpsOfEdgeRequest) (<-chan *DescribeDomainUpstreamBpsOfEdgeResponse, <-chan error) { + responseChan := make(chan *DescribeDomainUpstreamBpsOfEdgeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainUpstreamBpsOfEdge(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainUpstreamBpsOfEdgeWithCallback invokes the cdn.DescribeDomainUpstreamBpsOfEdge API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainupstreambpsofedge.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainUpstreamBpsOfEdgeWithCallback(request *DescribeDomainUpstreamBpsOfEdgeRequest, callback func(response *DescribeDomainUpstreamBpsOfEdgeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainUpstreamBpsOfEdgeResponse + var err error + defer close(result) + response, err = client.DescribeDomainUpstreamBpsOfEdge(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainUpstreamBpsOfEdgeRequest is the request struct for api DescribeDomainUpstreamBpsOfEdge +type DescribeDomainUpstreamBpsOfEdgeRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainUpstreamBpsOfEdgeResponse is the response struct for api DescribeDomainUpstreamBpsOfEdge +type DescribeDomainUpstreamBpsOfEdgeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + BpsDatas BpsDatasInDescribeDomainUpstreamBpsOfEdge `json:"BpsDatas" xml:"BpsDatas"` +} + +// CreateDescribeDomainUpstreamBpsOfEdgeRequest creates a request to invoke DescribeDomainUpstreamBpsOfEdge API +func CreateDescribeDomainUpstreamBpsOfEdgeRequest() (request *DescribeDomainUpstreamBpsOfEdgeRequest) { + request = &DescribeDomainUpstreamBpsOfEdgeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainUpstreamBpsOfEdge", "", "") + return +} + +// CreateDescribeDomainUpstreamBpsOfEdgeResponse creates a response to parse from DescribeDomainUpstreamBpsOfEdge response +func CreateDescribeDomainUpstreamBpsOfEdgeResponse() (response *DescribeDomainUpstreamBpsOfEdgeResponse) { + response = &DescribeDomainUpstreamBpsOfEdgeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_upstream_of_center.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_upstream_of_center.go new file mode 100644 index 0000000..bddb40c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_upstream_of_center.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainUpstreamOfCenter invokes the cdn.DescribeDomainUpstreamOfCenter API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainupstreamofcenter.html +func (client *Client) DescribeDomainUpstreamOfCenter(request *DescribeDomainUpstreamOfCenterRequest) (response *DescribeDomainUpstreamOfCenterResponse, err error) { + response = CreateDescribeDomainUpstreamOfCenterResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainUpstreamOfCenterWithChan invokes the cdn.DescribeDomainUpstreamOfCenter API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainupstreamofcenter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainUpstreamOfCenterWithChan(request *DescribeDomainUpstreamOfCenterRequest) (<-chan *DescribeDomainUpstreamOfCenterResponse, <-chan error) { + responseChan := make(chan *DescribeDomainUpstreamOfCenterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainUpstreamOfCenter(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainUpstreamOfCenterWithCallback invokes the cdn.DescribeDomainUpstreamOfCenter API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainupstreamofcenter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainUpstreamOfCenterWithCallback(request *DescribeDomainUpstreamOfCenterRequest, callback func(response *DescribeDomainUpstreamOfCenterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainUpstreamOfCenterResponse + var err error + defer close(result) + response, err = client.DescribeDomainUpstreamOfCenter(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainUpstreamOfCenterRequest is the request struct for api DescribeDomainUpstreamOfCenter +type DescribeDomainUpstreamOfCenterRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainUpstreamOfCenterResponse is the response struct for api DescribeDomainUpstreamOfCenter +type DescribeDomainUpstreamOfCenterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + BpsDatas BpsDatasInDescribeDomainUpstreamOfCenter `json:"BpsDatas" xml:"BpsDatas"` +} + +// CreateDescribeDomainUpstreamOfCenterRequest creates a request to invoke DescribeDomainUpstreamOfCenter API +func CreateDescribeDomainUpstreamOfCenterRequest() (request *DescribeDomainUpstreamOfCenterRequest) { + request = &DescribeDomainUpstreamOfCenterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainUpstreamOfCenter", "", "") + return +} + +// CreateDescribeDomainUpstreamOfCenterResponse creates a response to parse from DescribeDomainUpstreamOfCenter response +func CreateDescribeDomainUpstreamOfCenterResponse() (response *DescribeDomainUpstreamOfCenterResponse) { + response = &DescribeDomainUpstreamOfCenterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_uv_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_uv_data.go new file mode 100644 index 0000000..a9e2e60 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domain_uv_data.go @@ -0,0 +1,112 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainUvData invokes the cdn.DescribeDomainUvData API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainuvdata.html +func (client *Client) DescribeDomainUvData(request *DescribeDomainUvDataRequest) (response *DescribeDomainUvDataResponse, err error) { + response = CreateDescribeDomainUvDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainUvDataWithChan invokes the cdn.DescribeDomainUvData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainuvdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainUvDataWithChan(request *DescribeDomainUvDataRequest) (<-chan *DescribeDomainUvDataResponse, <-chan error) { + responseChan := make(chan *DescribeDomainUvDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainUvData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainUvDataWithCallback invokes the cdn.DescribeDomainUvData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainuvdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainUvDataWithCallback(request *DescribeDomainUvDataRequest, callback func(response *DescribeDomainUvDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainUvDataResponse + var err error + defer close(result) + response, err = client.DescribeDomainUvData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainUvDataRequest is the request struct for api DescribeDomainUvData +type DescribeDomainUvDataRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainUvDataResponse is the response struct for api DescribeDomainUvData +type DescribeDomainUvDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + UvDataInterval UvDataInterval `json:"UvDataInterval" xml:"UvDataInterval"` +} + +// CreateDescribeDomainUvDataRequest creates a request to invoke DescribeDomainUvData API +func CreateDescribeDomainUvDataRequest() (request *DescribeDomainUvDataRequest) { + request = &DescribeDomainUvDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainUvData", "", "") + return +} + +// CreateDescribeDomainUvDataResponse creates a response to parse from DescribeDomainUvData response +func CreateDescribeDomainUvDataResponse() (response *DescribeDomainUvDataResponse) { + response = &DescribeDomainUvDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domains_by_source.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domains_by_source.go new file mode 100644 index 0000000..b2c8565 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domains_by_source.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainsBySource invokes the cdn.DescribeDomainsBySource API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainsbysource.html +func (client *Client) DescribeDomainsBySource(request *DescribeDomainsBySourceRequest) (response *DescribeDomainsBySourceResponse, err error) { + response = CreateDescribeDomainsBySourceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainsBySourceWithChan invokes the cdn.DescribeDomainsBySource API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainsbysource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainsBySourceWithChan(request *DescribeDomainsBySourceRequest) (<-chan *DescribeDomainsBySourceResponse, <-chan error) { + responseChan := make(chan *DescribeDomainsBySourceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainsBySource(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainsBySourceWithCallback invokes the cdn.DescribeDomainsBySource API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainsbysource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainsBySourceWithCallback(request *DescribeDomainsBySourceRequest, callback func(response *DescribeDomainsBySourceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainsBySourceResponse + var err error + defer close(result) + response, err = client.DescribeDomainsBySource(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainsBySourceRequest is the request struct for api DescribeDomainsBySource +type DescribeDomainsBySourceRequest struct { + *requests.RpcRequest + Sources string `position:"Query" name:"Sources"` + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainsBySourceResponse is the response struct for api DescribeDomainsBySource +type DescribeDomainsBySourceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Sources string `json:"Sources" xml:"Sources"` + DomainsList DomainsList `json:"DomainsList" xml:"DomainsList"` +} + +// CreateDescribeDomainsBySourceRequest creates a request to invoke DescribeDomainsBySource API +func CreateDescribeDomainsBySourceRequest() (request *DescribeDomainsBySourceRequest) { + request = &DescribeDomainsBySourceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainsBySource", "", "") + return +} + +// CreateDescribeDomainsBySourceResponse creates a response to parse from DescribeDomainsBySource response +func CreateDescribeDomainsBySourceResponse() (response *DescribeDomainsBySourceResponse) { + response = &DescribeDomainsBySourceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domains_usage_by_day.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domains_usage_by_day.go new file mode 100644 index 0000000..a45ebf4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_domains_usage_by_day.go @@ -0,0 +1,113 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainsUsageByDay invokes the cdn.DescribeDomainsUsageByDay API synchronously +// api document: https://help.aliyun.com/api/cdn/describedomainsusagebyday.html +func (client *Client) DescribeDomainsUsageByDay(request *DescribeDomainsUsageByDayRequest) (response *DescribeDomainsUsageByDayResponse, err error) { + response = CreateDescribeDomainsUsageByDayResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainsUsageByDayWithChan invokes the cdn.DescribeDomainsUsageByDay API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainsusagebyday.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainsUsageByDayWithChan(request *DescribeDomainsUsageByDayRequest) (<-chan *DescribeDomainsUsageByDayResponse, <-chan error) { + responseChan := make(chan *DescribeDomainsUsageByDayResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainsUsageByDay(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainsUsageByDayWithCallback invokes the cdn.DescribeDomainsUsageByDay API asynchronously +// api document: https://help.aliyun.com/api/cdn/describedomainsusagebyday.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainsUsageByDayWithCallback(request *DescribeDomainsUsageByDayRequest, callback func(response *DescribeDomainsUsageByDayResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainsUsageByDayResponse + var err error + defer close(result) + response, err = client.DescribeDomainsUsageByDay(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainsUsageByDayRequest is the request struct for api DescribeDomainsUsageByDay +type DescribeDomainsUsageByDayRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDomainsUsageByDayResponse is the response struct for api DescribeDomainsUsageByDay +type DescribeDomainsUsageByDayResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + UsageTotal UsageTotal `json:"UsageTotal" xml:"UsageTotal"` + UsageByDays UsageByDays `json:"UsageByDays" xml:"UsageByDays"` +} + +// CreateDescribeDomainsUsageByDayRequest creates a request to invoke DescribeDomainsUsageByDay API +func CreateDescribeDomainsUsageByDayRequest() (request *DescribeDomainsUsageByDayRequest) { + request = &DescribeDomainsUsageByDayRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainsUsageByDay", "", "") + return +} + +// CreateDescribeDomainsUsageByDayResponse creates a response to parse from DescribeDomainsUsageByDay response +func CreateDescribeDomainsUsageByDayResponse() (response *DescribeDomainsUsageByDayResponse) { + response = &DescribeDomainsUsageByDayResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_extensive_domain_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_extensive_domain_data.go new file mode 100644 index 0000000..ea453ec --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_extensive_domain_data.go @@ -0,0 +1,117 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeExtensiveDomainData invokes the cdn.DescribeExtensiveDomainData API synchronously +// api document: https://help.aliyun.com/api/cdn/describeextensivedomaindata.html +func (client *Client) DescribeExtensiveDomainData(request *DescribeExtensiveDomainDataRequest) (response *DescribeExtensiveDomainDataResponse, err error) { + response = CreateDescribeExtensiveDomainDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeExtensiveDomainDataWithChan invokes the cdn.DescribeExtensiveDomainData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describeextensivedomaindata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeExtensiveDomainDataWithChan(request *DescribeExtensiveDomainDataRequest) (<-chan *DescribeExtensiveDomainDataResponse, <-chan error) { + responseChan := make(chan *DescribeExtensiveDomainDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeExtensiveDomainData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeExtensiveDomainDataWithCallback invokes the cdn.DescribeExtensiveDomainData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describeextensivedomaindata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeExtensiveDomainDataWithCallback(request *DescribeExtensiveDomainDataRequest, callback func(response *DescribeExtensiveDomainDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeExtensiveDomainDataResponse + var err error + defer close(result) + response, err = client.DescribeExtensiveDomainData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeExtensiveDomainDataRequest is the request struct for api DescribeExtensiveDomainData +type DescribeExtensiveDomainDataRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + ExtensiveDomain string `position:"Query" name:"ExtensiveDomain"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeExtensiveDomainDataResponse is the response struct for api DescribeExtensiveDomainData +type DescribeExtensiveDomainDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ExtensiveDomain string `json:"ExtensiveDomain" xml:"ExtensiveDomain"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + PageNumber string `json:"PageNumber" xml:"PageNumber"` + TotalCount string `json:"TotalCount" xml:"TotalCount"` + PageSize string `json:"PageSize" xml:"PageSize"` + DataPerInterval DataPerIntervalInDescribeExtensiveDomainData `json:"DataPerInterval" xml:"DataPerInterval"` +} + +// CreateDescribeExtensiveDomainDataRequest creates a request to invoke DescribeExtensiveDomainData API +func CreateDescribeExtensiveDomainDataRequest() (request *DescribeExtensiveDomainDataRequest) { + request = &DescribeExtensiveDomainDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeExtensiveDomainData", "", "") + return +} + +// CreateDescribeExtensiveDomainDataResponse creates a response to parse from DescribeExtensiveDomainData response +func CreateDescribeExtensiveDomainDataResponse() (response *DescribeExtensiveDomainDataResponse) { + response = &DescribeExtensiveDomainDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_fc_trigger.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_fc_trigger.go new file mode 100644 index 0000000..126bcb6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_fc_trigger.go @@ -0,0 +1,105 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeFCTrigger invokes the cdn.DescribeFCTrigger API synchronously +// api document: https://help.aliyun.com/api/cdn/describefctrigger.html +func (client *Client) DescribeFCTrigger(request *DescribeFCTriggerRequest) (response *DescribeFCTriggerResponse, err error) { + response = CreateDescribeFCTriggerResponse() + err = client.DoAction(request, response) + return +} + +// DescribeFCTriggerWithChan invokes the cdn.DescribeFCTrigger API asynchronously +// api document: https://help.aliyun.com/api/cdn/describefctrigger.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeFCTriggerWithChan(request *DescribeFCTriggerRequest) (<-chan *DescribeFCTriggerResponse, <-chan error) { + responseChan := make(chan *DescribeFCTriggerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeFCTrigger(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeFCTriggerWithCallback invokes the cdn.DescribeFCTrigger API asynchronously +// api document: https://help.aliyun.com/api/cdn/describefctrigger.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeFCTriggerWithCallback(request *DescribeFCTriggerRequest, callback func(response *DescribeFCTriggerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeFCTriggerResponse + var err error + defer close(result) + response, err = client.DescribeFCTrigger(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeFCTriggerRequest is the request struct for api DescribeFCTrigger +type DescribeFCTriggerRequest struct { + *requests.RpcRequest + TriggerARN string `position:"Query" name:"TriggerARN"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeFCTriggerResponse is the response struct for api DescribeFCTrigger +type DescribeFCTriggerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + FCTrigger FCTrigger `json:"FCTrigger" xml:"FCTrigger"` +} + +// CreateDescribeFCTriggerRequest creates a request to invoke DescribeFCTrigger API +func CreateDescribeFCTriggerRequest() (request *DescribeFCTriggerRequest) { + request = &DescribeFCTriggerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeFCTrigger", "", "") + return +} + +// CreateDescribeFCTriggerResponse creates a response to parse from DescribeFCTrigger response +func CreateDescribeFCTriggerResponse() (response *DescribeFCTriggerResponse) { + response = &DescribeFCTriggerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_ip_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_ip_info.go new file mode 100644 index 0000000..0eaaa7a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_ip_info.go @@ -0,0 +1,110 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeIpInfo invokes the cdn.DescribeIpInfo API synchronously +// api document: https://help.aliyun.com/api/cdn/describeipinfo.html +func (client *Client) DescribeIpInfo(request *DescribeIpInfoRequest) (response *DescribeIpInfoResponse, err error) { + response = CreateDescribeIpInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeIpInfoWithChan invokes the cdn.DescribeIpInfo API asynchronously +// api document: https://help.aliyun.com/api/cdn/describeipinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeIpInfoWithChan(request *DescribeIpInfoRequest) (<-chan *DescribeIpInfoResponse, <-chan error) { + responseChan := make(chan *DescribeIpInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeIpInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeIpInfoWithCallback invokes the cdn.DescribeIpInfo API asynchronously +// api document: https://help.aliyun.com/api/cdn/describeipinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeIpInfoWithCallback(request *DescribeIpInfoRequest, callback func(response *DescribeIpInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeIpInfoResponse + var err error + defer close(result) + response, err = client.DescribeIpInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeIpInfoRequest is the request struct for api DescribeIpInfo +type DescribeIpInfoRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + IP string `position:"Query" name:"IP"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeIpInfoResponse is the response struct for api DescribeIpInfo +type DescribeIpInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CdnIp string `json:"CdnIp" xml:"CdnIp"` + ISP string `json:"ISP" xml:"ISP"` + IspEname string `json:"IspEname" xml:"IspEname"` + Region string `json:"Region" xml:"Region"` + RegionEname string `json:"RegionEname" xml:"RegionEname"` +} + +// CreateDescribeIpInfoRequest creates a request to invoke DescribeIpInfo API +func CreateDescribeIpInfoRequest() (request *DescribeIpInfoRequest) { + request = &DescribeIpInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeIpInfo", "", "") + return +} + +// CreateDescribeIpInfoResponse creates a response to parse from DescribeIpInfo response +func CreateDescribeIpInfoResponse() (response *DescribeIpInfoResponse) { + response = &DescribeIpInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_l2_vips_by_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_l2_vips_by_domain.go new file mode 100644 index 0000000..97e98c1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_l2_vips_by_domain.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeL2VipsByDomain invokes the cdn.DescribeL2VipsByDomain API synchronously +// api document: https://help.aliyun.com/api/cdn/describel2vipsbydomain.html +func (client *Client) DescribeL2VipsByDomain(request *DescribeL2VipsByDomainRequest) (response *DescribeL2VipsByDomainResponse, err error) { + response = CreateDescribeL2VipsByDomainResponse() + err = client.DoAction(request, response) + return +} + +// DescribeL2VipsByDomainWithChan invokes the cdn.DescribeL2VipsByDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/describel2vipsbydomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeL2VipsByDomainWithChan(request *DescribeL2VipsByDomainRequest) (<-chan *DescribeL2VipsByDomainResponse, <-chan error) { + responseChan := make(chan *DescribeL2VipsByDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeL2VipsByDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeL2VipsByDomainWithCallback invokes the cdn.DescribeL2VipsByDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/describel2vipsbydomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeL2VipsByDomainWithCallback(request *DescribeL2VipsByDomainRequest, callback func(response *DescribeL2VipsByDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeL2VipsByDomainResponse + var err error + defer close(result) + response, err = client.DescribeL2VipsByDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeL2VipsByDomainRequest is the request struct for api DescribeL2VipsByDomain +type DescribeL2VipsByDomainRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeL2VipsByDomainResponse is the response struct for api DescribeL2VipsByDomain +type DescribeL2VipsByDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + Vips VipsInDescribeL2VipsByDomain `json:"Vips" xml:"Vips"` +} + +// CreateDescribeL2VipsByDomainRequest creates a request to invoke DescribeL2VipsByDomain API +func CreateDescribeL2VipsByDomainRequest() (request *DescribeL2VipsByDomainRequest) { + request = &DescribeL2VipsByDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeL2VipsByDomain", "", "") + return +} + +// CreateDescribeL2VipsByDomainResponse creates a response to parse from DescribeL2VipsByDomain response +func CreateDescribeL2VipsByDomainResponse() (response *DescribeL2VipsByDomainResponse) { + response = &DescribeL2VipsByDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_app_record_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_app_record_config.go new file mode 100644 index 0000000..61c2c51 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_app_record_config.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveAppRecordConfig invokes the cdn.DescribeLiveAppRecordConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/describeliveapprecordconfig.html +func (client *Client) DescribeLiveAppRecordConfig(request *DescribeLiveAppRecordConfigRequest) (response *DescribeLiveAppRecordConfigResponse, err error) { + response = CreateDescribeLiveAppRecordConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveAppRecordConfigWithChan invokes the cdn.DescribeLiveAppRecordConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/describeliveapprecordconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveAppRecordConfigWithChan(request *DescribeLiveAppRecordConfigRequest) (<-chan *DescribeLiveAppRecordConfigResponse, <-chan error) { + responseChan := make(chan *DescribeLiveAppRecordConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveAppRecordConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveAppRecordConfigWithCallback invokes the cdn.DescribeLiveAppRecordConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/describeliveapprecordconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveAppRecordConfigWithCallback(request *DescribeLiveAppRecordConfigRequest, callback func(response *DescribeLiveAppRecordConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveAppRecordConfigResponse + var err error + defer close(result) + response, err = client.DescribeLiveAppRecordConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveAppRecordConfigRequest is the request struct for api DescribeLiveAppRecordConfig +type DescribeLiveAppRecordConfigRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveAppRecordConfigResponse is the response struct for api DescribeLiveAppRecordConfig +type DescribeLiveAppRecordConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LiveAppRecord LiveAppRecord `json:"LiveAppRecord" xml:"LiveAppRecord"` +} + +// CreateDescribeLiveAppRecordConfigRequest creates a request to invoke DescribeLiveAppRecordConfig API +func CreateDescribeLiveAppRecordConfigRequest() (request *DescribeLiveAppRecordConfigRequest) { + request = &DescribeLiveAppRecordConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveAppRecordConfig", "", "") + return +} + +// CreateDescribeLiveAppRecordConfigResponse creates a response to parse from DescribeLiveAppRecordConfig response +func CreateDescribeLiveAppRecordConfigResponse() (response *DescribeLiveAppRecordConfigResponse) { + response = &DescribeLiveAppRecordConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_pull_stream_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_pull_stream_config.go new file mode 100644 index 0000000..3560b16 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_pull_stream_config.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLivePullStreamConfig invokes the cdn.DescribeLivePullStreamConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivepullstreamconfig.html +func (client *Client) DescribeLivePullStreamConfig(request *DescribeLivePullStreamConfigRequest) (response *DescribeLivePullStreamConfigResponse, err error) { + response = CreateDescribeLivePullStreamConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLivePullStreamConfigWithChan invokes the cdn.DescribeLivePullStreamConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivepullstreamconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLivePullStreamConfigWithChan(request *DescribeLivePullStreamConfigRequest) (<-chan *DescribeLivePullStreamConfigResponse, <-chan error) { + responseChan := make(chan *DescribeLivePullStreamConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLivePullStreamConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLivePullStreamConfigWithCallback invokes the cdn.DescribeLivePullStreamConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivepullstreamconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLivePullStreamConfigWithCallback(request *DescribeLivePullStreamConfigRequest, callback func(response *DescribeLivePullStreamConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLivePullStreamConfigResponse + var err error + defer close(result) + response, err = client.DescribeLivePullStreamConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLivePullStreamConfigRequest is the request struct for api DescribeLivePullStreamConfig +type DescribeLivePullStreamConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLivePullStreamConfigResponse is the response struct for api DescribeLivePullStreamConfig +type DescribeLivePullStreamConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LiveAppRecordList LiveAppRecordListInDescribeLivePullStreamConfig `json:"LiveAppRecordList" xml:"LiveAppRecordList"` +} + +// CreateDescribeLivePullStreamConfigRequest creates a request to invoke DescribeLivePullStreamConfig API +func CreateDescribeLivePullStreamConfigRequest() (request *DescribeLivePullStreamConfigRequest) { + request = &DescribeLivePullStreamConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLivePullStreamConfig", "", "") + return +} + +// CreateDescribeLivePullStreamConfigResponse creates a response to parse from DescribeLivePullStreamConfig response +func CreateDescribeLivePullStreamConfigResponse() (response *DescribeLivePullStreamConfigResponse) { + response = &DescribeLivePullStreamConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_record_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_record_config.go new file mode 100644 index 0000000..463a603 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_record_config.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveRecordConfig invokes the cdn.DescribeLiveRecordConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/describeliverecordconfig.html +func (client *Client) DescribeLiveRecordConfig(request *DescribeLiveRecordConfigRequest) (response *DescribeLiveRecordConfigResponse, err error) { + response = CreateDescribeLiveRecordConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveRecordConfigWithChan invokes the cdn.DescribeLiveRecordConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/describeliverecordconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveRecordConfigWithChan(request *DescribeLiveRecordConfigRequest) (<-chan *DescribeLiveRecordConfigResponse, <-chan error) { + responseChan := make(chan *DescribeLiveRecordConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveRecordConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveRecordConfigWithCallback invokes the cdn.DescribeLiveRecordConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/describeliverecordconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveRecordConfigWithCallback(request *DescribeLiveRecordConfigRequest, callback func(response *DescribeLiveRecordConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveRecordConfigResponse + var err error + defer close(result) + response, err = client.DescribeLiveRecordConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveRecordConfigRequest is the request struct for api DescribeLiveRecordConfig +type DescribeLiveRecordConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveRecordConfigResponse is the response struct for api DescribeLiveRecordConfig +type DescribeLiveRecordConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LiveAppRecordList LiveAppRecordListInDescribeLiveRecordConfig `json:"LiveAppRecordList" xml:"LiveAppRecordList"` +} + +// CreateDescribeLiveRecordConfigRequest creates a request to invoke DescribeLiveRecordConfig API +func CreateDescribeLiveRecordConfigRequest() (request *DescribeLiveRecordConfigRequest) { + request = &DescribeLiveRecordConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveRecordConfig", "", "") + return +} + +// CreateDescribeLiveRecordConfigResponse creates a response to parse from DescribeLiveRecordConfig response +func CreateDescribeLiveRecordConfigResponse() (response *DescribeLiveRecordConfigResponse) { + response = &DescribeLiveRecordConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_snapshot_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_snapshot_config.go new file mode 100644 index 0000000..832f80a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_snapshot_config.go @@ -0,0 +1,116 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveSnapshotConfig invokes the cdn.DescribeLiveSnapshotConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivesnapshotconfig.html +func (client *Client) DescribeLiveSnapshotConfig(request *DescribeLiveSnapshotConfigRequest) (response *DescribeLiveSnapshotConfigResponse, err error) { + response = CreateDescribeLiveSnapshotConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveSnapshotConfigWithChan invokes the cdn.DescribeLiveSnapshotConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivesnapshotconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveSnapshotConfigWithChan(request *DescribeLiveSnapshotConfigRequest) (<-chan *DescribeLiveSnapshotConfigResponse, <-chan error) { + responseChan := make(chan *DescribeLiveSnapshotConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveSnapshotConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveSnapshotConfigWithCallback invokes the cdn.DescribeLiveSnapshotConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivesnapshotconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveSnapshotConfigWithCallback(request *DescribeLiveSnapshotConfigRequest, callback func(response *DescribeLiveSnapshotConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveSnapshotConfigResponse + var err error + defer close(result) + response, err = client.DescribeLiveSnapshotConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveSnapshotConfigRequest is the request struct for api DescribeLiveSnapshotConfig +type DescribeLiveSnapshotConfigRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + StreamName string `position:"Query" name:"StreamName"` + Order string `position:"Query" name:"Order"` +} + +// DescribeLiveSnapshotConfigResponse is the response struct for api DescribeLiveSnapshotConfig +type DescribeLiveSnapshotConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNum int `json:"PageNum" xml:"PageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + Order string `json:"Order" xml:"Order"` + TotalNum int `json:"TotalNum" xml:"TotalNum"` + TotalPage int `json:"TotalPage" xml:"TotalPage"` + LiveStreamSnapshotConfigList LiveStreamSnapshotConfigList `json:"LiveStreamSnapshotConfigList" xml:"LiveStreamSnapshotConfigList"` +} + +// CreateDescribeLiveSnapshotConfigRequest creates a request to invoke DescribeLiveSnapshotConfig API +func CreateDescribeLiveSnapshotConfigRequest() (request *DescribeLiveSnapshotConfigRequest) { + request = &DescribeLiveSnapshotConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveSnapshotConfig", "", "") + return +} + +// CreateDescribeLiveSnapshotConfigResponse creates a response to parse from DescribeLiveSnapshotConfig response +func CreateDescribeLiveSnapshotConfigResponse() (response *DescribeLiveSnapshotConfigResponse) { + response = &DescribeLiveSnapshotConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_specific_domain_mapping.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_specific_domain_mapping.go new file mode 100644 index 0000000..f27c06f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_specific_domain_mapping.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveSpecificDomainMapping invokes the cdn.DescribeLiveSpecificDomainMapping API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivespecificdomainmapping.html +func (client *Client) DescribeLiveSpecificDomainMapping(request *DescribeLiveSpecificDomainMappingRequest) (response *DescribeLiveSpecificDomainMappingResponse, err error) { + response = CreateDescribeLiveSpecificDomainMappingResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveSpecificDomainMappingWithChan invokes the cdn.DescribeLiveSpecificDomainMapping API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivespecificdomainmapping.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveSpecificDomainMappingWithChan(request *DescribeLiveSpecificDomainMappingRequest) (<-chan *DescribeLiveSpecificDomainMappingResponse, <-chan error) { + responseChan := make(chan *DescribeLiveSpecificDomainMappingResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveSpecificDomainMapping(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveSpecificDomainMappingWithCallback invokes the cdn.DescribeLiveSpecificDomainMapping API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivespecificdomainmapping.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveSpecificDomainMappingWithCallback(request *DescribeLiveSpecificDomainMappingRequest, callback func(response *DescribeLiveSpecificDomainMappingResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveSpecificDomainMappingResponse + var err error + defer close(result) + response, err = client.DescribeLiveSpecificDomainMapping(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveSpecificDomainMappingRequest is the request struct for api DescribeLiveSpecificDomainMapping +type DescribeLiveSpecificDomainMappingRequest struct { + *requests.RpcRequest + PullDomain string `position:"Query" name:"PullDomain"` + SecurityToken string `position:"Query" name:"SecurityToken"` + PushDomain string `position:"Query" name:"PushDomain"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveSpecificDomainMappingResponse is the response struct for api DescribeLiveSpecificDomainMapping +type DescribeLiveSpecificDomainMappingResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainMappingModels DomainMappingModels `json:"DomainMappingModels" xml:"DomainMappingModels"` +} + +// CreateDescribeLiveSpecificDomainMappingRequest creates a request to invoke DescribeLiveSpecificDomainMapping API +func CreateDescribeLiveSpecificDomainMappingRequest() (request *DescribeLiveSpecificDomainMappingRequest) { + request = &DescribeLiveSpecificDomainMappingRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveSpecificDomainMapping", "", "") + return +} + +// CreateDescribeLiveSpecificDomainMappingResponse creates a response to parse from DescribeLiveSpecificDomainMapping response +func CreateDescribeLiveSpecificDomainMappingResponse() (response *DescribeLiveSpecificDomainMappingResponse) { + response = &DescribeLiveSpecificDomainMappingResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_bit_rate_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_bit_rate_data.go new file mode 100644 index 0000000..7476b8a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_bit_rate_data.go @@ -0,0 +1,110 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamBitRateData invokes the cdn.DescribeLiveStreamBitRateData API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreambitratedata.html +func (client *Client) DescribeLiveStreamBitRateData(request *DescribeLiveStreamBitRateDataRequest) (response *DescribeLiveStreamBitRateDataResponse, err error) { + response = CreateDescribeLiveStreamBitRateDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamBitRateDataWithChan invokes the cdn.DescribeLiveStreamBitRateData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreambitratedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamBitRateDataWithChan(request *DescribeLiveStreamBitRateDataRequest) (<-chan *DescribeLiveStreamBitRateDataResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamBitRateDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamBitRateData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamBitRateDataWithCallback invokes the cdn.DescribeLiveStreamBitRateData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreambitratedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamBitRateDataWithCallback(request *DescribeLiveStreamBitRateDataRequest, callback func(response *DescribeLiveStreamBitRateDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamBitRateDataResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamBitRateData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamBitRateDataRequest is the request struct for api DescribeLiveStreamBitRateData +type DescribeLiveStreamBitRateDataRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveStreamBitRateDataResponse is the response struct for api DescribeLiveStreamBitRateData +type DescribeLiveStreamBitRateDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + FrameRateAndBitRateInfos FrameRateAndBitRateInfosInDescribeLiveStreamBitRateData `json:"FrameRateAndBitRateInfos" xml:"FrameRateAndBitRateInfos"` +} + +// CreateDescribeLiveStreamBitRateDataRequest creates a request to invoke DescribeLiveStreamBitRateData API +func CreateDescribeLiveStreamBitRateDataRequest() (request *DescribeLiveStreamBitRateDataRequest) { + request = &DescribeLiveStreamBitRateDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamBitRateData", "", "") + return +} + +// CreateDescribeLiveStreamBitRateDataResponse creates a response to parse from DescribeLiveStreamBitRateData response +func CreateDescribeLiveStreamBitRateDataResponse() (response *DescribeLiveStreamBitRateDataResponse) { + response = &DescribeLiveStreamBitRateDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_bps_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_bps_data.go new file mode 100644 index 0000000..12cb8bb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_bps_data.go @@ -0,0 +1,110 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamBpsData invokes the cdn.DescribeLiveStreamBpsData API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreambpsdata.html +func (client *Client) DescribeLiveStreamBpsData(request *DescribeLiveStreamBpsDataRequest) (response *DescribeLiveStreamBpsDataResponse, err error) { + response = CreateDescribeLiveStreamBpsDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamBpsDataWithChan invokes the cdn.DescribeLiveStreamBpsData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreambpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamBpsDataWithChan(request *DescribeLiveStreamBpsDataRequest) (<-chan *DescribeLiveStreamBpsDataResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamBpsDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamBpsData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamBpsDataWithCallback invokes the cdn.DescribeLiveStreamBpsData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreambpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamBpsDataWithCallback(request *DescribeLiveStreamBpsDataRequest, callback func(response *DescribeLiveStreamBpsDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamBpsDataResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamBpsData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamBpsDataRequest is the request struct for api DescribeLiveStreamBpsData +type DescribeLiveStreamBpsDataRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveStreamBpsDataResponse is the response struct for api DescribeLiveStreamBpsData +type DescribeLiveStreamBpsDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + BpsDatas BpsDatasInDescribeLiveStreamBpsData `json:"BpsDatas" xml:"BpsDatas"` +} + +// CreateDescribeLiveStreamBpsDataRequest creates a request to invoke DescribeLiveStreamBpsData API +func CreateDescribeLiveStreamBpsDataRequest() (request *DescribeLiveStreamBpsDataRequest) { + request = &DescribeLiveStreamBpsDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamBpsData", "", "") + return +} + +// CreateDescribeLiveStreamBpsDataResponse creates a response to parse from DescribeLiveStreamBpsData response +func CreateDescribeLiveStreamBpsDataResponse() (response *DescribeLiveStreamBpsDataResponse) { + response = &DescribeLiveStreamBpsDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_domain_app_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_domain_app_info.go new file mode 100644 index 0000000..fac0ce8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_domain_app_info.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamDomainAppInfo invokes the cdn.DescribeLiveStreamDomainAppInfo API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamdomainappinfo.html +func (client *Client) DescribeLiveStreamDomainAppInfo(request *DescribeLiveStreamDomainAppInfoRequest) (response *DescribeLiveStreamDomainAppInfoResponse, err error) { + response = CreateDescribeLiveStreamDomainAppInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamDomainAppInfoWithChan invokes the cdn.DescribeLiveStreamDomainAppInfo API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamdomainappinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamDomainAppInfoWithChan(request *DescribeLiveStreamDomainAppInfoRequest) (<-chan *DescribeLiveStreamDomainAppInfoResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamDomainAppInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamDomainAppInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamDomainAppInfoWithCallback invokes the cdn.DescribeLiveStreamDomainAppInfo API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamdomainappinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamDomainAppInfoWithCallback(request *DescribeLiveStreamDomainAppInfoRequest, callback func(response *DescribeLiveStreamDomainAppInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamDomainAppInfoResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamDomainAppInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamDomainAppInfoRequest is the request struct for api DescribeLiveStreamDomainAppInfo +type DescribeLiveStreamDomainAppInfoRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + AppDomain string `position:"Query" name:"AppDomain"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveStreamDomainAppInfoResponse is the response struct for api DescribeLiveStreamDomainAppInfo +type DescribeLiveStreamDomainAppInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainAppList DomainAppList `json:"DomainAppList" xml:"DomainAppList"` +} + +// CreateDescribeLiveStreamDomainAppInfoRequest creates a request to invoke DescribeLiveStreamDomainAppInfo API +func CreateDescribeLiveStreamDomainAppInfoRequest() (request *DescribeLiveStreamDomainAppInfoRequest) { + request = &DescribeLiveStreamDomainAppInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamDomainAppInfo", "", "") + return +} + +// CreateDescribeLiveStreamDomainAppInfoResponse creates a response to parse from DescribeLiveStreamDomainAppInfo response +func CreateDescribeLiveStreamDomainAppInfoResponse() (response *DescribeLiveStreamDomainAppInfoResponse) { + response = &DescribeLiveStreamDomainAppInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_frame_and_bit_rate_by_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_frame_and_bit_rate_by_domain.go new file mode 100644 index 0000000..4e5087d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_frame_and_bit_rate_by_domain.go @@ -0,0 +1,112 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamFrameAndBitRateByDomain invokes the cdn.DescribeLiveStreamFrameAndBitRateByDomain API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamframeandbitratebydomain.html +func (client *Client) DescribeLiveStreamFrameAndBitRateByDomain(request *DescribeLiveStreamFrameAndBitRateByDomainRequest) (response *DescribeLiveStreamFrameAndBitRateByDomainResponse, err error) { + response = CreateDescribeLiveStreamFrameAndBitRateByDomainResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamFrameAndBitRateByDomainWithChan invokes the cdn.DescribeLiveStreamFrameAndBitRateByDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamframeandbitratebydomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamFrameAndBitRateByDomainWithChan(request *DescribeLiveStreamFrameAndBitRateByDomainRequest) (<-chan *DescribeLiveStreamFrameAndBitRateByDomainResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamFrameAndBitRateByDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamFrameAndBitRateByDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamFrameAndBitRateByDomainWithCallback invokes the cdn.DescribeLiveStreamFrameAndBitRateByDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamframeandbitratebydomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamFrameAndBitRateByDomainWithCallback(request *DescribeLiveStreamFrameAndBitRateByDomainRequest, callback func(response *DescribeLiveStreamFrameAndBitRateByDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamFrameAndBitRateByDomainResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamFrameAndBitRateByDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamFrameAndBitRateByDomainRequest is the request struct for api DescribeLiveStreamFrameAndBitRateByDomain +type DescribeLiveStreamFrameAndBitRateByDomainRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeLiveStreamFrameAndBitRateByDomainResponse is the response struct for api DescribeLiveStreamFrameAndBitRateByDomain +type DescribeLiveStreamFrameAndBitRateByDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Count int `json:"Count" xml:"Count"` + PageNumber int `json:"pageNumber" xml:"pageNumber"` + PageSize int `json:"pageSize" xml:"pageSize"` + FrameRateAndBitRateInfos FrameRateAndBitRateInfosInDescribeLiveStreamFrameAndBitRateByDomain `json:"FrameRateAndBitRateInfos" xml:"FrameRateAndBitRateInfos"` +} + +// CreateDescribeLiveStreamFrameAndBitRateByDomainRequest creates a request to invoke DescribeLiveStreamFrameAndBitRateByDomain API +func CreateDescribeLiveStreamFrameAndBitRateByDomainRequest() (request *DescribeLiveStreamFrameAndBitRateByDomainRequest) { + request = &DescribeLiveStreamFrameAndBitRateByDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamFrameAndBitRateByDomain", "", "") + return +} + +// CreateDescribeLiveStreamFrameAndBitRateByDomainResponse creates a response to parse from DescribeLiveStreamFrameAndBitRateByDomain response +func CreateDescribeLiveStreamFrameAndBitRateByDomainResponse() (response *DescribeLiveStreamFrameAndBitRateByDomainResponse) { + response = &DescribeLiveStreamFrameAndBitRateByDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_frame_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_frame_info.go new file mode 100644 index 0000000..b6cf4b0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_frame_info.go @@ -0,0 +1,110 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamFrameInfo invokes the cdn.DescribeLiveStreamFrameInfo API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamframeinfo.html +func (client *Client) DescribeLiveStreamFrameInfo(request *DescribeLiveStreamFrameInfoRequest) (response *DescribeLiveStreamFrameInfoResponse, err error) { + response = CreateDescribeLiveStreamFrameInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamFrameInfoWithChan invokes the cdn.DescribeLiveStreamFrameInfo API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamframeinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamFrameInfoWithChan(request *DescribeLiveStreamFrameInfoRequest) (<-chan *DescribeLiveStreamFrameInfoResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamFrameInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamFrameInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamFrameInfoWithCallback invokes the cdn.DescribeLiveStreamFrameInfo API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamframeinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamFrameInfoWithCallback(request *DescribeLiveStreamFrameInfoRequest, callback func(response *DescribeLiveStreamFrameInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamFrameInfoResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamFrameInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamFrameInfoRequest is the request struct for api DescribeLiveStreamFrameInfo +type DescribeLiveStreamFrameInfoRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveStreamFrameInfoResponse is the response struct for api DescribeLiveStreamFrameInfo +type DescribeLiveStreamFrameInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + FrameDataInfos FrameDataInfos `json:"FrameDataInfos" xml:"FrameDataInfos"` +} + +// CreateDescribeLiveStreamFrameInfoRequest creates a request to invoke DescribeLiveStreamFrameInfo API +func CreateDescribeLiveStreamFrameInfoRequest() (request *DescribeLiveStreamFrameInfoRequest) { + request = &DescribeLiveStreamFrameInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamFrameInfo", "", "") + return +} + +// CreateDescribeLiveStreamFrameInfoResponse creates a response to parse from DescribeLiveStreamFrameInfo response +func CreateDescribeLiveStreamFrameInfoResponse() (response *DescribeLiveStreamFrameInfoResponse) { + response = &DescribeLiveStreamFrameInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_frame_loss_ratio.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_frame_loss_ratio.go new file mode 100644 index 0000000..3e82d0f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_frame_loss_ratio.go @@ -0,0 +1,110 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamFrameLossRatio invokes the cdn.DescribeLiveStreamFrameLossRatio API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamframelossratio.html +func (client *Client) DescribeLiveStreamFrameLossRatio(request *DescribeLiveStreamFrameLossRatioRequest) (response *DescribeLiveStreamFrameLossRatioResponse, err error) { + response = CreateDescribeLiveStreamFrameLossRatioResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamFrameLossRatioWithChan invokes the cdn.DescribeLiveStreamFrameLossRatio API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamframelossratio.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamFrameLossRatioWithChan(request *DescribeLiveStreamFrameLossRatioRequest) (<-chan *DescribeLiveStreamFrameLossRatioResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamFrameLossRatioResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamFrameLossRatio(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamFrameLossRatioWithCallback invokes the cdn.DescribeLiveStreamFrameLossRatio API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamframelossratio.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamFrameLossRatioWithCallback(request *DescribeLiveStreamFrameLossRatioRequest, callback func(response *DescribeLiveStreamFrameLossRatioResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamFrameLossRatioResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamFrameLossRatio(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamFrameLossRatioRequest is the request struct for api DescribeLiveStreamFrameLossRatio +type DescribeLiveStreamFrameLossRatioRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveStreamFrameLossRatioResponse is the response struct for api DescribeLiveStreamFrameLossRatio +type DescribeLiveStreamFrameLossRatioResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + FrameLossRatioInfos FrameLossRatioInfos `json:"FrameLossRatioInfos" xml:"FrameLossRatioInfos"` +} + +// CreateDescribeLiveStreamFrameLossRatioRequest creates a request to invoke DescribeLiveStreamFrameLossRatio API +func CreateDescribeLiveStreamFrameLossRatioRequest() (request *DescribeLiveStreamFrameLossRatioRequest) { + request = &DescribeLiveStreamFrameLossRatioRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamFrameLossRatio", "", "") + return +} + +// CreateDescribeLiveStreamFrameLossRatioResponse creates a response to parse from DescribeLiveStreamFrameLossRatio response +func CreateDescribeLiveStreamFrameLossRatioResponse() (response *DescribeLiveStreamFrameLossRatioResponse) { + response = &DescribeLiveStreamFrameLossRatioResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_hls_online_user_num_by_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_hls_online_user_num_by_domain.go new file mode 100644 index 0000000..57eb2ab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_hls_online_user_num_by_domain.go @@ -0,0 +1,114 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamHlsOnlineUserNumByDomain invokes the cdn.DescribeLiveStreamHlsOnlineUserNumByDomain API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamhlsonlineusernumbydomain.html +func (client *Client) DescribeLiveStreamHlsOnlineUserNumByDomain(request *DescribeLiveStreamHlsOnlineUserNumByDomainRequest) (response *DescribeLiveStreamHlsOnlineUserNumByDomainResponse, err error) { + response = CreateDescribeLiveStreamHlsOnlineUserNumByDomainResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamHlsOnlineUserNumByDomainWithChan invokes the cdn.DescribeLiveStreamHlsOnlineUserNumByDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamhlsonlineusernumbydomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamHlsOnlineUserNumByDomainWithChan(request *DescribeLiveStreamHlsOnlineUserNumByDomainRequest) (<-chan *DescribeLiveStreamHlsOnlineUserNumByDomainResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamHlsOnlineUserNumByDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamHlsOnlineUserNumByDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamHlsOnlineUserNumByDomainWithCallback invokes the cdn.DescribeLiveStreamHlsOnlineUserNumByDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamhlsonlineusernumbydomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamHlsOnlineUserNumByDomainWithCallback(request *DescribeLiveStreamHlsOnlineUserNumByDomainRequest, callback func(response *DescribeLiveStreamHlsOnlineUserNumByDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamHlsOnlineUserNumByDomainResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamHlsOnlineUserNumByDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamHlsOnlineUserNumByDomainRequest is the request struct for api DescribeLiveStreamHlsOnlineUserNumByDomain +type DescribeLiveStreamHlsOnlineUserNumByDomainRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + HlsSwitch string `position:"Query" name:"HlsSwitch"` + DomainName string `position:"Query" name:"DomainName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeLiveStreamHlsOnlineUserNumByDomainResponse is the response struct for api DescribeLiveStreamHlsOnlineUserNumByDomain +type DescribeLiveStreamHlsOnlineUserNumByDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalUserNumber int `json:"TotalUserNumber" xml:"TotalUserNumber"` + Count int `json:"Count" xml:"Count"` + PageNumber int `json:"pageNumber" xml:"pageNumber"` + PageSize int `json:"pageSize" xml:"pageSize"` + OnlineUserInfo OnlineUserInfoInDescribeLiveStreamHlsOnlineUserNumByDomain `json:"OnlineUserInfo" xml:"OnlineUserInfo"` +} + +// CreateDescribeLiveStreamHlsOnlineUserNumByDomainRequest creates a request to invoke DescribeLiveStreamHlsOnlineUserNumByDomain API +func CreateDescribeLiveStreamHlsOnlineUserNumByDomainRequest() (request *DescribeLiveStreamHlsOnlineUserNumByDomainRequest) { + request = &DescribeLiveStreamHlsOnlineUserNumByDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamHlsOnlineUserNumByDomain", "", "") + return +} + +// CreateDescribeLiveStreamHlsOnlineUserNumByDomainResponse creates a response to parse from DescribeLiveStreamHlsOnlineUserNumByDomain response +func CreateDescribeLiveStreamHlsOnlineUserNumByDomainResponse() (response *DescribeLiveStreamHlsOnlineUserNumByDomainResponse) { + response = &DescribeLiveStreamHlsOnlineUserNumByDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_limit_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_limit_info.go new file mode 100644 index 0000000..2f732f7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_limit_info.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamLimitInfo invokes the cdn.DescribeLiveStreamLimitInfo API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamlimitinfo.html +func (client *Client) DescribeLiveStreamLimitInfo(request *DescribeLiveStreamLimitInfoRequest) (response *DescribeLiveStreamLimitInfoResponse, err error) { + response = CreateDescribeLiveStreamLimitInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamLimitInfoWithChan invokes the cdn.DescribeLiveStreamLimitInfo API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamlimitinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamLimitInfoWithChan(request *DescribeLiveStreamLimitInfoRequest) (<-chan *DescribeLiveStreamLimitInfoResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamLimitInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamLimitInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamLimitInfoWithCallback invokes the cdn.DescribeLiveStreamLimitInfo API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamlimitinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamLimitInfoWithCallback(request *DescribeLiveStreamLimitInfoRequest, callback func(response *DescribeLiveStreamLimitInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamLimitInfoResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamLimitInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamLimitInfoRequest is the request struct for api DescribeLiveStreamLimitInfo +type DescribeLiveStreamLimitInfoRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + LimitDomain string `position:"Query" name:"LimitDomain"` +} + +// DescribeLiveStreamLimitInfoResponse is the response struct for api DescribeLiveStreamLimitInfo +type DescribeLiveStreamLimitInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + UserLimitLists UserLimitLists `json:"UserLimitLists" xml:"UserLimitLists"` +} + +// CreateDescribeLiveStreamLimitInfoRequest creates a request to invoke DescribeLiveStreamLimitInfo API +func CreateDescribeLiveStreamLimitInfoRequest() (request *DescribeLiveStreamLimitInfoRequest) { + request = &DescribeLiveStreamLimitInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamLimitInfo", "", "") + return +} + +// CreateDescribeLiveStreamLimitInfoResponse creates a response to parse from DescribeLiveStreamLimitInfo response +func CreateDescribeLiveStreamLimitInfoResponse() (response *DescribeLiveStreamLimitInfoResponse) { + response = &DescribeLiveStreamLimitInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_number_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_number_list.go new file mode 100644 index 0000000..28cab55 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_number_list.go @@ -0,0 +1,110 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamNumberList invokes the cdn.DescribeLiveStreamNumberList API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamnumberlist.html +func (client *Client) DescribeLiveStreamNumberList(request *DescribeLiveStreamNumberListRequest) (response *DescribeLiveStreamNumberListResponse, err error) { + response = CreateDescribeLiveStreamNumberListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamNumberListWithChan invokes the cdn.DescribeLiveStreamNumberList API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamnumberlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamNumberListWithChan(request *DescribeLiveStreamNumberListRequest) (<-chan *DescribeLiveStreamNumberListResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamNumberListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamNumberList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamNumberListWithCallback invokes the cdn.DescribeLiveStreamNumberList API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamnumberlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamNumberListWithCallback(request *DescribeLiveStreamNumberListRequest, callback func(response *DescribeLiveStreamNumberListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamNumberListResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamNumberList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamNumberListRequest is the request struct for api DescribeLiveStreamNumberList +type DescribeLiveStreamNumberListRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveStreamNumberListResponse is the response struct for api DescribeLiveStreamNumberList +type DescribeLiveStreamNumberListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StreamNumberInfos StreamNumberInfos `json:"StreamNumberInfos" xml:"StreamNumberInfos"` +} + +// CreateDescribeLiveStreamNumberListRequest creates a request to invoke DescribeLiveStreamNumberList API +func CreateDescribeLiveStreamNumberListRequest() (request *DescribeLiveStreamNumberListRequest) { + request = &DescribeLiveStreamNumberListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamNumberList", "", "") + return +} + +// CreateDescribeLiveStreamNumberListResponse creates a response to parse from DescribeLiveStreamNumberList response +func CreateDescribeLiveStreamNumberListResponse() (response *DescribeLiveStreamNumberListResponse) { + response = &DescribeLiveStreamNumberListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_online_bps.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_online_bps.go new file mode 100644 index 0000000..f4600a0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_online_bps.go @@ -0,0 +1,113 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamOnlineBps invokes the cdn.DescribeLiveStreamOnlineBps API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamonlinebps.html +func (client *Client) DescribeLiveStreamOnlineBps(request *DescribeLiveStreamOnlineBpsRequest) (response *DescribeLiveStreamOnlineBpsResponse, err error) { + response = CreateDescribeLiveStreamOnlineBpsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamOnlineBpsWithChan invokes the cdn.DescribeLiveStreamOnlineBps API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamonlinebps.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamOnlineBpsWithChan(request *DescribeLiveStreamOnlineBpsRequest) (<-chan *DescribeLiveStreamOnlineBpsResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamOnlineBpsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamOnlineBps(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamOnlineBpsWithCallback invokes the cdn.DescribeLiveStreamOnlineBps API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamonlinebps.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamOnlineBpsWithCallback(request *DescribeLiveStreamOnlineBpsRequest, callback func(response *DescribeLiveStreamOnlineBpsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamOnlineBpsResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamOnlineBps(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamOnlineBpsRequest is the request struct for api DescribeLiveStreamOnlineBps +type DescribeLiveStreamOnlineBpsRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveStreamOnlineBpsResponse is the response struct for api DescribeLiveStreamOnlineBps +type DescribeLiveStreamOnlineBpsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalUserNumber int `json:"TotalUserNumber" xml:"TotalUserNumber"` + FlvBps float64 `json:"FlvBps" xml:"FlvBps"` + HlsBps float64 `json:"HlsBps" xml:"HlsBps"` + LiveStreamOnlineBpsInfos LiveStreamOnlineBpsInfos `json:"LiveStreamOnlineBpsInfos" xml:"LiveStreamOnlineBpsInfos"` +} + +// CreateDescribeLiveStreamOnlineBpsRequest creates a request to invoke DescribeLiveStreamOnlineBps API +func CreateDescribeLiveStreamOnlineBpsRequest() (request *DescribeLiveStreamOnlineBpsRequest) { + request = &DescribeLiveStreamOnlineBpsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamOnlineBps", "", "") + return +} + +// CreateDescribeLiveStreamOnlineBpsResponse creates a response to parse from DescribeLiveStreamOnlineBps response +func CreateDescribeLiveStreamOnlineBpsResponse() (response *DescribeLiveStreamOnlineBpsResponse) { + response = &DescribeLiveStreamOnlineBpsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_online_user_num.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_online_user_num.go new file mode 100644 index 0000000..f5062af --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_online_user_num.go @@ -0,0 +1,112 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamOnlineUserNum invokes the cdn.DescribeLiveStreamOnlineUserNum API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamonlineusernum.html +func (client *Client) DescribeLiveStreamOnlineUserNum(request *DescribeLiveStreamOnlineUserNumRequest) (response *DescribeLiveStreamOnlineUserNumResponse, err error) { + response = CreateDescribeLiveStreamOnlineUserNumResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamOnlineUserNumWithChan invokes the cdn.DescribeLiveStreamOnlineUserNum API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamonlineusernum.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamOnlineUserNumWithChan(request *DescribeLiveStreamOnlineUserNumRequest) (<-chan *DescribeLiveStreamOnlineUserNumResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamOnlineUserNumResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamOnlineUserNum(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamOnlineUserNumWithCallback invokes the cdn.DescribeLiveStreamOnlineUserNum API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamonlineusernum.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamOnlineUserNumWithCallback(request *DescribeLiveStreamOnlineUserNumRequest, callback func(response *DescribeLiveStreamOnlineUserNumResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamOnlineUserNumResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamOnlineUserNum(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamOnlineUserNumRequest is the request struct for api DescribeLiveStreamOnlineUserNum +type DescribeLiveStreamOnlineUserNumRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + HlsSwitch string `position:"Query" name:"HlsSwitch"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveStreamOnlineUserNumResponse is the response struct for api DescribeLiveStreamOnlineUserNum +type DescribeLiveStreamOnlineUserNumResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalUserNumber int `json:"TotalUserNumber" xml:"TotalUserNumber"` + OnlineUserInfo OnlineUserInfoInDescribeLiveStreamOnlineUserNum `json:"OnlineUserInfo" xml:"OnlineUserInfo"` +} + +// CreateDescribeLiveStreamOnlineUserNumRequest creates a request to invoke DescribeLiveStreamOnlineUserNum API +func CreateDescribeLiveStreamOnlineUserNumRequest() (request *DescribeLiveStreamOnlineUserNumRequest) { + request = &DescribeLiveStreamOnlineUserNumRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamOnlineUserNum", "", "") + return +} + +// CreateDescribeLiveStreamOnlineUserNumResponse creates a response to parse from DescribeLiveStreamOnlineUserNum response +func CreateDescribeLiveStreamOnlineUserNumResponse() (response *DescribeLiveStreamOnlineUserNumResponse) { + response = &DescribeLiveStreamOnlineUserNumResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_online_user_num_by_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_online_user_num_by_domain.go new file mode 100644 index 0000000..8ffe4d0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_online_user_num_by_domain.go @@ -0,0 +1,114 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamOnlineUserNumByDomain invokes the cdn.DescribeLiveStreamOnlineUserNumByDomain API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamonlineusernumbydomain.html +func (client *Client) DescribeLiveStreamOnlineUserNumByDomain(request *DescribeLiveStreamOnlineUserNumByDomainRequest) (response *DescribeLiveStreamOnlineUserNumByDomainResponse, err error) { + response = CreateDescribeLiveStreamOnlineUserNumByDomainResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamOnlineUserNumByDomainWithChan invokes the cdn.DescribeLiveStreamOnlineUserNumByDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamonlineusernumbydomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamOnlineUserNumByDomainWithChan(request *DescribeLiveStreamOnlineUserNumByDomainRequest) (<-chan *DescribeLiveStreamOnlineUserNumByDomainResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamOnlineUserNumByDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamOnlineUserNumByDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamOnlineUserNumByDomainWithCallback invokes the cdn.DescribeLiveStreamOnlineUserNumByDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamonlineusernumbydomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamOnlineUserNumByDomainWithCallback(request *DescribeLiveStreamOnlineUserNumByDomainRequest, callback func(response *DescribeLiveStreamOnlineUserNumByDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamOnlineUserNumByDomainResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamOnlineUserNumByDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamOnlineUserNumByDomainRequest is the request struct for api DescribeLiveStreamOnlineUserNumByDomain +type DescribeLiveStreamOnlineUserNumByDomainRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + HlsSwitch string `position:"Query" name:"HlsSwitch"` + DomainName string `position:"Query" name:"DomainName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeLiveStreamOnlineUserNumByDomainResponse is the response struct for api DescribeLiveStreamOnlineUserNumByDomain +type DescribeLiveStreamOnlineUserNumByDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalUserNumber int `json:"TotalUserNumber" xml:"TotalUserNumber"` + Count int `json:"Count" xml:"Count"` + PageNumber int `json:"pageNumber" xml:"pageNumber"` + PageSize int `json:"pageSize" xml:"pageSize"` + OnlineUserInfo OnlineUserInfoInDescribeLiveStreamOnlineUserNumByDomain `json:"OnlineUserInfo" xml:"OnlineUserInfo"` +} + +// CreateDescribeLiveStreamOnlineUserNumByDomainRequest creates a request to invoke DescribeLiveStreamOnlineUserNumByDomain API +func CreateDescribeLiveStreamOnlineUserNumByDomainRequest() (request *DescribeLiveStreamOnlineUserNumByDomainRequest) { + request = &DescribeLiveStreamOnlineUserNumByDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamOnlineUserNumByDomain", "", "") + return +} + +// CreateDescribeLiveStreamOnlineUserNumByDomainResponse creates a response to parse from DescribeLiveStreamOnlineUserNumByDomain response +func CreateDescribeLiveStreamOnlineUserNumByDomainResponse() (response *DescribeLiveStreamOnlineUserNumByDomainResponse) { + response = &DescribeLiveStreamOnlineUserNumByDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_push_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_push_data.go new file mode 100644 index 0000000..8b8abd7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_push_data.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamPushData invokes the cdn.DescribeLiveStreamPushData API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreampushdata.html +func (client *Client) DescribeLiveStreamPushData(request *DescribeLiveStreamPushDataRequest) (response *DescribeLiveStreamPushDataResponse, err error) { + response = CreateDescribeLiveStreamPushDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamPushDataWithChan invokes the cdn.DescribeLiveStreamPushData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreampushdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamPushDataWithChan(request *DescribeLiveStreamPushDataRequest) (<-chan *DescribeLiveStreamPushDataResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamPushDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamPushData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamPushDataWithCallback invokes the cdn.DescribeLiveStreamPushData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreampushdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamPushDataWithCallback(request *DescribeLiveStreamPushDataRequest, callback func(response *DescribeLiveStreamPushDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamPushDataResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamPushData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamPushDataRequest is the request struct for api DescribeLiveStreamPushData +type DescribeLiveStreamPushDataRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveStreamPushDataResponse is the response struct for api DescribeLiveStreamPushData +type DescribeLiveStreamPushDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PushStreamModelList PushStreamModelList `json:"PushStreamModelList" xml:"PushStreamModelList"` +} + +// CreateDescribeLiveStreamPushDataRequest creates a request to invoke DescribeLiveStreamPushData API +func CreateDescribeLiveStreamPushDataRequest() (request *DescribeLiveStreamPushDataRequest) { + request = &DescribeLiveStreamPushDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamPushData", "", "") + return +} + +// CreateDescribeLiveStreamPushDataResponse creates a response to parse from DescribeLiveStreamPushData response +func CreateDescribeLiveStreamPushDataResponse() (response *DescribeLiveStreamPushDataResponse) { + response = &DescribeLiveStreamPushDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_push_errors.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_push_errors.go new file mode 100644 index 0000000..195a3ff --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_push_errors.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamPushErrors invokes the cdn.DescribeLiveStreamPushErrors API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreampusherrors.html +func (client *Client) DescribeLiveStreamPushErrors(request *DescribeLiveStreamPushErrorsRequest) (response *DescribeLiveStreamPushErrorsResponse, err error) { + response = CreateDescribeLiveStreamPushErrorsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamPushErrorsWithChan invokes the cdn.DescribeLiveStreamPushErrors API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreampusherrors.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamPushErrorsWithChan(request *DescribeLiveStreamPushErrorsRequest) (<-chan *DescribeLiveStreamPushErrorsResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamPushErrorsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamPushErrors(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamPushErrorsWithCallback invokes the cdn.DescribeLiveStreamPushErrors API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreampusherrors.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamPushErrorsWithCallback(request *DescribeLiveStreamPushErrorsRequest, callback func(response *DescribeLiveStreamPushErrorsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamPushErrorsResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamPushErrors(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamPushErrorsRequest is the request struct for api DescribeLiveStreamPushErrors +type DescribeLiveStreamPushErrorsRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveStreamPushErrorsResponse is the response struct for api DescribeLiveStreamPushErrors +type DescribeLiveStreamPushErrorsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PushErrorsModelList PushErrorsModelList `json:"PushErrorsModelList" xml:"PushErrorsModelList"` +} + +// CreateDescribeLiveStreamPushErrorsRequest creates a request to invoke DescribeLiveStreamPushErrors API +func CreateDescribeLiveStreamPushErrorsRequest() (request *DescribeLiveStreamPushErrorsRequest) { + request = &DescribeLiveStreamPushErrorsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamPushErrors", "", "") + return +} + +// CreateDescribeLiveStreamPushErrorsResponse creates a response to parse from DescribeLiveStreamPushErrors response +func CreateDescribeLiveStreamPushErrorsResponse() (response *DescribeLiveStreamPushErrorsResponse) { + response = &DescribeLiveStreamPushErrorsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_record_content.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_record_content.go new file mode 100644 index 0000000..f7fdca0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_record_content.go @@ -0,0 +1,110 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamRecordContent invokes the cdn.DescribeLiveStreamRecordContent API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamrecordcontent.html +func (client *Client) DescribeLiveStreamRecordContent(request *DescribeLiveStreamRecordContentRequest) (response *DescribeLiveStreamRecordContentResponse, err error) { + response = CreateDescribeLiveStreamRecordContentResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamRecordContentWithChan invokes the cdn.DescribeLiveStreamRecordContent API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamrecordcontent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRecordContentWithChan(request *DescribeLiveStreamRecordContentRequest) (<-chan *DescribeLiveStreamRecordContentResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamRecordContentResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamRecordContent(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamRecordContentWithCallback invokes the cdn.DescribeLiveStreamRecordContent API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamrecordcontent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRecordContentWithCallback(request *DescribeLiveStreamRecordContentRequest, callback func(response *DescribeLiveStreamRecordContentResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamRecordContentResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamRecordContent(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamRecordContentRequest is the request struct for api DescribeLiveStreamRecordContent +type DescribeLiveStreamRecordContentRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveStreamRecordContentResponse is the response struct for api DescribeLiveStreamRecordContent +type DescribeLiveStreamRecordContentResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RecordContentInfoList RecordContentInfoList `json:"RecordContentInfoList" xml:"RecordContentInfoList"` +} + +// CreateDescribeLiveStreamRecordContentRequest creates a request to invoke DescribeLiveStreamRecordContent API +func CreateDescribeLiveStreamRecordContentRequest() (request *DescribeLiveStreamRecordContentRequest) { + request = &DescribeLiveStreamRecordContentRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamRecordContent", "", "") + return +} + +// CreateDescribeLiveStreamRecordContentResponse creates a response to parse from DescribeLiveStreamRecordContent response +func CreateDescribeLiveStreamRecordContentResponse() (response *DescribeLiveStreamRecordContentResponse) { + response = &DescribeLiveStreamRecordContentResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_record_index_file.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_record_index_file.go new file mode 100644 index 0000000..4f18aff --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_record_index_file.go @@ -0,0 +1,109 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamRecordIndexFile invokes the cdn.DescribeLiveStreamRecordIndexFile API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamrecordindexfile.html +func (client *Client) DescribeLiveStreamRecordIndexFile(request *DescribeLiveStreamRecordIndexFileRequest) (response *DescribeLiveStreamRecordIndexFileResponse, err error) { + response = CreateDescribeLiveStreamRecordIndexFileResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamRecordIndexFileWithChan invokes the cdn.DescribeLiveStreamRecordIndexFile API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamrecordindexfile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRecordIndexFileWithChan(request *DescribeLiveStreamRecordIndexFileRequest) (<-chan *DescribeLiveStreamRecordIndexFileResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamRecordIndexFileResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamRecordIndexFile(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamRecordIndexFileWithCallback invokes the cdn.DescribeLiveStreamRecordIndexFile API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamrecordindexfile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRecordIndexFileWithCallback(request *DescribeLiveStreamRecordIndexFileRequest, callback func(response *DescribeLiveStreamRecordIndexFileResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamRecordIndexFileResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamRecordIndexFile(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamRecordIndexFileRequest is the request struct for api DescribeLiveStreamRecordIndexFile +type DescribeLiveStreamRecordIndexFileRequest struct { + *requests.RpcRequest + RecordId string `position:"Query" name:"RecordId"` + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveStreamRecordIndexFileResponse is the response struct for api DescribeLiveStreamRecordIndexFile +type DescribeLiveStreamRecordIndexFileResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RecordIndexInfo RecordIndexInfo `json:"RecordIndexInfo" xml:"RecordIndexInfo"` +} + +// CreateDescribeLiveStreamRecordIndexFileRequest creates a request to invoke DescribeLiveStreamRecordIndexFile API +func CreateDescribeLiveStreamRecordIndexFileRequest() (request *DescribeLiveStreamRecordIndexFileRequest) { + request = &DescribeLiveStreamRecordIndexFileRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamRecordIndexFile", "", "") + return +} + +// CreateDescribeLiveStreamRecordIndexFileResponse creates a response to parse from DescribeLiveStreamRecordIndexFile response +func CreateDescribeLiveStreamRecordIndexFileResponse() (response *DescribeLiveStreamRecordIndexFileResponse) { + response = &DescribeLiveStreamRecordIndexFileResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_record_index_files.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_record_index_files.go new file mode 100644 index 0000000..f88fcb3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_record_index_files.go @@ -0,0 +1,110 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamRecordIndexFiles invokes the cdn.DescribeLiveStreamRecordIndexFiles API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamrecordindexfiles.html +func (client *Client) DescribeLiveStreamRecordIndexFiles(request *DescribeLiveStreamRecordIndexFilesRequest) (response *DescribeLiveStreamRecordIndexFilesResponse, err error) { + response = CreateDescribeLiveStreamRecordIndexFilesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamRecordIndexFilesWithChan invokes the cdn.DescribeLiveStreamRecordIndexFiles API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamrecordindexfiles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRecordIndexFilesWithChan(request *DescribeLiveStreamRecordIndexFilesRequest) (<-chan *DescribeLiveStreamRecordIndexFilesResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamRecordIndexFilesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamRecordIndexFiles(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamRecordIndexFilesWithCallback invokes the cdn.DescribeLiveStreamRecordIndexFiles API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamrecordindexfiles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRecordIndexFilesWithCallback(request *DescribeLiveStreamRecordIndexFilesRequest, callback func(response *DescribeLiveStreamRecordIndexFilesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamRecordIndexFilesResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamRecordIndexFiles(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamRecordIndexFilesRequest is the request struct for api DescribeLiveStreamRecordIndexFiles +type DescribeLiveStreamRecordIndexFilesRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveStreamRecordIndexFilesResponse is the response struct for api DescribeLiveStreamRecordIndexFiles +type DescribeLiveStreamRecordIndexFilesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RecordIndexInfoList RecordIndexInfoList `json:"RecordIndexInfoList" xml:"RecordIndexInfoList"` +} + +// CreateDescribeLiveStreamRecordIndexFilesRequest creates a request to invoke DescribeLiveStreamRecordIndexFiles API +func CreateDescribeLiveStreamRecordIndexFilesRequest() (request *DescribeLiveStreamRecordIndexFilesRequest) { + request = &DescribeLiveStreamRecordIndexFilesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamRecordIndexFiles", "", "") + return +} + +// CreateDescribeLiveStreamRecordIndexFilesResponse creates a response to parse from DescribeLiveStreamRecordIndexFiles response +func CreateDescribeLiveStreamRecordIndexFilesResponse() (response *DescribeLiveStreamRecordIndexFilesResponse) { + response = &DescribeLiveStreamRecordIndexFilesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_relay_push_bit_rate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_relay_push_bit_rate.go new file mode 100644 index 0000000..ef99419 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_relay_push_bit_rate.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamRelayPushBitRate invokes the cdn.DescribeLiveStreamRelayPushBitRate API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamrelaypushbitrate.html +func (client *Client) DescribeLiveStreamRelayPushBitRate(request *DescribeLiveStreamRelayPushBitRateRequest) (response *DescribeLiveStreamRelayPushBitRateResponse, err error) { + response = CreateDescribeLiveStreamRelayPushBitRateResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamRelayPushBitRateWithChan invokes the cdn.DescribeLiveStreamRelayPushBitRate API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamrelaypushbitrate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRelayPushBitRateWithChan(request *DescribeLiveStreamRelayPushBitRateRequest) (<-chan *DescribeLiveStreamRelayPushBitRateResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamRelayPushBitRateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamRelayPushBitRate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamRelayPushBitRateWithCallback invokes the cdn.DescribeLiveStreamRelayPushBitRate API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamrelaypushbitrate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRelayPushBitRateWithCallback(request *DescribeLiveStreamRelayPushBitRateRequest, callback func(response *DescribeLiveStreamRelayPushBitRateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamRelayPushBitRateResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamRelayPushBitRate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamRelayPushBitRateRequest is the request struct for api DescribeLiveStreamRelayPushBitRate +type DescribeLiveStreamRelayPushBitRateRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveStreamRelayPushBitRateResponse is the response struct for api DescribeLiveStreamRelayPushBitRate +type DescribeLiveStreamRelayPushBitRateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RelayPushBitRateModelList RelayPushBitRateModelList `json:"RelayPushBitRateModelList" xml:"RelayPushBitRateModelList"` +} + +// CreateDescribeLiveStreamRelayPushBitRateRequest creates a request to invoke DescribeLiveStreamRelayPushBitRate API +func CreateDescribeLiveStreamRelayPushBitRateRequest() (request *DescribeLiveStreamRelayPushBitRateRequest) { + request = &DescribeLiveStreamRelayPushBitRateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamRelayPushBitRate", "", "") + return +} + +// CreateDescribeLiveStreamRelayPushBitRateResponse creates a response to parse from DescribeLiveStreamRelayPushBitRate response +func CreateDescribeLiveStreamRelayPushBitRateResponse() (response *DescribeLiveStreamRelayPushBitRateResponse) { + response = &DescribeLiveStreamRelayPushBitRateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_relay_push_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_relay_push_data.go new file mode 100644 index 0000000..e58e4c4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_relay_push_data.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamRelayPushData invokes the cdn.DescribeLiveStreamRelayPushData API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamrelaypushdata.html +func (client *Client) DescribeLiveStreamRelayPushData(request *DescribeLiveStreamRelayPushDataRequest) (response *DescribeLiveStreamRelayPushDataResponse, err error) { + response = CreateDescribeLiveStreamRelayPushDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamRelayPushDataWithChan invokes the cdn.DescribeLiveStreamRelayPushData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamrelaypushdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRelayPushDataWithChan(request *DescribeLiveStreamRelayPushDataRequest) (<-chan *DescribeLiveStreamRelayPushDataResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamRelayPushDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamRelayPushData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamRelayPushDataWithCallback invokes the cdn.DescribeLiveStreamRelayPushData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamrelaypushdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRelayPushDataWithCallback(request *DescribeLiveStreamRelayPushDataRequest, callback func(response *DescribeLiveStreamRelayPushDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamRelayPushDataResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamRelayPushData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamRelayPushDataRequest is the request struct for api DescribeLiveStreamRelayPushData +type DescribeLiveStreamRelayPushDataRequest struct { + *requests.RpcRequest + RelayDomain string `position:"Query" name:"RelayDomain"` + SecurityToken string `position:"Query" name:"SecurityToken"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveStreamRelayPushDataResponse is the response struct for api DescribeLiveStreamRelayPushData +type DescribeLiveStreamRelayPushDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RelayPushDetailModelList RelayPushDetailModelList `json:"RelayPushDetailModelList" xml:"RelayPushDetailModelList"` +} + +// CreateDescribeLiveStreamRelayPushDataRequest creates a request to invoke DescribeLiveStreamRelayPushData API +func CreateDescribeLiveStreamRelayPushDataRequest() (request *DescribeLiveStreamRelayPushDataRequest) { + request = &DescribeLiveStreamRelayPushDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamRelayPushData", "", "") + return +} + +// CreateDescribeLiveStreamRelayPushDataResponse creates a response to parse from DescribeLiveStreamRelayPushData response +func CreateDescribeLiveStreamRelayPushDataResponse() (response *DescribeLiveStreamRelayPushDataResponse) { + response = &DescribeLiveStreamRelayPushDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_relay_push_errors.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_relay_push_errors.go new file mode 100644 index 0000000..91e4931 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_relay_push_errors.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamRelayPushErrors invokes the cdn.DescribeLiveStreamRelayPushErrors API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamrelaypusherrors.html +func (client *Client) DescribeLiveStreamRelayPushErrors(request *DescribeLiveStreamRelayPushErrorsRequest) (response *DescribeLiveStreamRelayPushErrorsResponse, err error) { + response = CreateDescribeLiveStreamRelayPushErrorsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamRelayPushErrorsWithChan invokes the cdn.DescribeLiveStreamRelayPushErrors API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamrelaypusherrors.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRelayPushErrorsWithChan(request *DescribeLiveStreamRelayPushErrorsRequest) (<-chan *DescribeLiveStreamRelayPushErrorsResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamRelayPushErrorsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamRelayPushErrors(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamRelayPushErrorsWithCallback invokes the cdn.DescribeLiveStreamRelayPushErrors API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamrelaypusherrors.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRelayPushErrorsWithCallback(request *DescribeLiveStreamRelayPushErrorsRequest, callback func(response *DescribeLiveStreamRelayPushErrorsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamRelayPushErrorsResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamRelayPushErrors(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamRelayPushErrorsRequest is the request struct for api DescribeLiveStreamRelayPushErrors +type DescribeLiveStreamRelayPushErrorsRequest struct { + *requests.RpcRequest + RelayDomain string `position:"Query" name:"RelayDomain"` + SecurityToken string `position:"Query" name:"SecurityToken"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveStreamRelayPushErrorsResponse is the response struct for api DescribeLiveStreamRelayPushErrors +type DescribeLiveStreamRelayPushErrorsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RelayPushErrorsModelList RelayPushErrorsModelList `json:"RelayPushErrorsModelList" xml:"RelayPushErrorsModelList"` +} + +// CreateDescribeLiveStreamRelayPushErrorsRequest creates a request to invoke DescribeLiveStreamRelayPushErrors API +func CreateDescribeLiveStreamRelayPushErrorsRequest() (request *DescribeLiveStreamRelayPushErrorsRequest) { + request = &DescribeLiveStreamRelayPushErrorsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamRelayPushErrors", "", "") + return +} + +// CreateDescribeLiveStreamRelayPushErrorsResponse creates a response to parse from DescribeLiveStreamRelayPushErrors response +func CreateDescribeLiveStreamRelayPushErrorsResponse() (response *DescribeLiveStreamRelayPushErrorsResponse) { + response = &DescribeLiveStreamRelayPushErrorsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_room_bit_rate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_room_bit_rate.go new file mode 100644 index 0000000..ab5e93a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_room_bit_rate.go @@ -0,0 +1,110 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamRoomBitRate invokes the cdn.DescribeLiveStreamRoomBitRate API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamroombitrate.html +func (client *Client) DescribeLiveStreamRoomBitRate(request *DescribeLiveStreamRoomBitRateRequest) (response *DescribeLiveStreamRoomBitRateResponse, err error) { + response = CreateDescribeLiveStreamRoomBitRateResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamRoomBitRateWithChan invokes the cdn.DescribeLiveStreamRoomBitRate API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamroombitrate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRoomBitRateWithChan(request *DescribeLiveStreamRoomBitRateRequest) (<-chan *DescribeLiveStreamRoomBitRateResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamRoomBitRateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamRoomBitRate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamRoomBitRateWithCallback invokes the cdn.DescribeLiveStreamRoomBitRate API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamroombitrate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRoomBitRateWithCallback(request *DescribeLiveStreamRoomBitRateRequest, callback func(response *DescribeLiveStreamRoomBitRateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamRoomBitRateResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamRoomBitRate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamRoomBitRateRequest is the request struct for api DescribeLiveStreamRoomBitRate +type DescribeLiveStreamRoomBitRateRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveStreamRoomBitRateResponse is the response struct for api DescribeLiveStreamRoomBitRate +type DescribeLiveStreamRoomBitRateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + FrameRateAndBitRateInfos FrameRateAndBitRateInfosInDescribeLiveStreamRoomBitRate `json:"FrameRateAndBitRateInfos" xml:"FrameRateAndBitRateInfos"` +} + +// CreateDescribeLiveStreamRoomBitRateRequest creates a request to invoke DescribeLiveStreamRoomBitRate API +func CreateDescribeLiveStreamRoomBitRateRequest() (request *DescribeLiveStreamRoomBitRateRequest) { + request = &DescribeLiveStreamRoomBitRateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamRoomBitRate", "", "") + return +} + +// CreateDescribeLiveStreamRoomBitRateResponse creates a response to parse from DescribeLiveStreamRoomBitRate response +func CreateDescribeLiveStreamRoomBitRateResponse() (response *DescribeLiveStreamRoomBitRateResponse) { + response = &DescribeLiveStreamRoomBitRateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_room_user_number.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_room_user_number.go new file mode 100644 index 0000000..ff5ae94 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_room_user_number.go @@ -0,0 +1,112 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamRoomUserNumber invokes the cdn.DescribeLiveStreamRoomUserNumber API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamroomusernumber.html +func (client *Client) DescribeLiveStreamRoomUserNumber(request *DescribeLiveStreamRoomUserNumberRequest) (response *DescribeLiveStreamRoomUserNumberResponse, err error) { + response = CreateDescribeLiveStreamRoomUserNumberResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamRoomUserNumberWithChan invokes the cdn.DescribeLiveStreamRoomUserNumber API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamroomusernumber.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRoomUserNumberWithChan(request *DescribeLiveStreamRoomUserNumberRequest) (<-chan *DescribeLiveStreamRoomUserNumberResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamRoomUserNumberResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamRoomUserNumber(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamRoomUserNumberWithCallback invokes the cdn.DescribeLiveStreamRoomUserNumber API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamroomusernumber.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRoomUserNumberWithCallback(request *DescribeLiveStreamRoomUserNumberRequest, callback func(response *DescribeLiveStreamRoomUserNumberResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamRoomUserNumberResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamRoomUserNumber(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamRoomUserNumberRequest is the request struct for api DescribeLiveStreamRoomUserNumber +type DescribeLiveStreamRoomUserNumberRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + HlsSwitch string `position:"Query" name:"HlsSwitch"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveStreamRoomUserNumberResponse is the response struct for api DescribeLiveStreamRoomUserNumber +type DescribeLiveStreamRoomUserNumberResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalUserNumber int `json:"TotalUserNumber" xml:"TotalUserNumber"` + OnlineUserInfo OnlineUserInfoInDescribeLiveStreamRoomUserNumber `json:"OnlineUserInfo" xml:"OnlineUserInfo"` +} + +// CreateDescribeLiveStreamRoomUserNumberRequest creates a request to invoke DescribeLiveStreamRoomUserNumber API +func CreateDescribeLiveStreamRoomUserNumberRequest() (request *DescribeLiveStreamRoomUserNumberRequest) { + request = &DescribeLiveStreamRoomUserNumberRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamRoomUserNumber", "", "") + return +} + +// CreateDescribeLiveStreamRoomUserNumberResponse creates a response to parse from DescribeLiveStreamRoomUserNumber response +func CreateDescribeLiveStreamRoomUserNumberResponse() (response *DescribeLiveStreamRoomUserNumberResponse) { + response = &DescribeLiveStreamRoomUserNumberResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_snapshot_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_snapshot_info.go new file mode 100644 index 0000000..68cfb36 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_snapshot_info.go @@ -0,0 +1,112 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamSnapshotInfo invokes the cdn.DescribeLiveStreamSnapshotInfo API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamsnapshotinfo.html +func (client *Client) DescribeLiveStreamSnapshotInfo(request *DescribeLiveStreamSnapshotInfoRequest) (response *DescribeLiveStreamSnapshotInfoResponse, err error) { + response = CreateDescribeLiveStreamSnapshotInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamSnapshotInfoWithChan invokes the cdn.DescribeLiveStreamSnapshotInfo API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamsnapshotinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamSnapshotInfoWithChan(request *DescribeLiveStreamSnapshotInfoRequest) (<-chan *DescribeLiveStreamSnapshotInfoResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamSnapshotInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamSnapshotInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamSnapshotInfoWithCallback invokes the cdn.DescribeLiveStreamSnapshotInfo API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamsnapshotinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamSnapshotInfoWithCallback(request *DescribeLiveStreamSnapshotInfoRequest, callback func(response *DescribeLiveStreamSnapshotInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamSnapshotInfoResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamSnapshotInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamSnapshotInfoRequest is the request struct for api DescribeLiveStreamSnapshotInfo +type DescribeLiveStreamSnapshotInfoRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + Limit requests.Integer `position:"Query" name:"Limit"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveStreamSnapshotInfoResponse is the response struct for api DescribeLiveStreamSnapshotInfo +type DescribeLiveStreamSnapshotInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NextStartTime string `json:"NextStartTime" xml:"NextStartTime"` + LiveStreamSnapshotInfoList LiveStreamSnapshotInfoList `json:"LiveStreamSnapshotInfoList" xml:"LiveStreamSnapshotInfoList"` +} + +// CreateDescribeLiveStreamSnapshotInfoRequest creates a request to invoke DescribeLiveStreamSnapshotInfo API +func CreateDescribeLiveStreamSnapshotInfoRequest() (request *DescribeLiveStreamSnapshotInfoRequest) { + request = &DescribeLiveStreamSnapshotInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamSnapshotInfo", "", "") + return +} + +// CreateDescribeLiveStreamSnapshotInfoResponse creates a response to parse from DescribeLiveStreamSnapshotInfo response +func CreateDescribeLiveStreamSnapshotInfoResponse() (response *DescribeLiveStreamSnapshotInfoResponse) { + response = &DescribeLiveStreamSnapshotInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_stream_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_stream_status.go new file mode 100644 index 0000000..ddda76a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_stream_status.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamStreamStatus invokes the cdn.DescribeLiveStreamStreamStatus API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamstreamstatus.html +func (client *Client) DescribeLiveStreamStreamStatus(request *DescribeLiveStreamStreamStatusRequest) (response *DescribeLiveStreamStreamStatusResponse, err error) { + response = CreateDescribeLiveStreamStreamStatusResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamStreamStatusWithChan invokes the cdn.DescribeLiveStreamStreamStatus API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamstreamstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamStreamStatusWithChan(request *DescribeLiveStreamStreamStatusRequest) (<-chan *DescribeLiveStreamStreamStatusResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamStreamStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamStreamStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamStreamStatusWithCallback invokes the cdn.DescribeLiveStreamStreamStatus API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamstreamstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamStreamStatusWithCallback(request *DescribeLiveStreamStreamStatusRequest, callback func(response *DescribeLiveStreamStreamStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamStreamStatusResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamStreamStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamStreamStatusRequest is the request struct for api DescribeLiveStreamStreamStatus +type DescribeLiveStreamStreamStatusRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveStreamStreamStatusResponse is the response struct for api DescribeLiveStreamStreamStatus +type DescribeLiveStreamStreamStatusResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + StreamStatus string `json:"StreamStatus" xml:"StreamStatus"` +} + +// CreateDescribeLiveStreamStreamStatusRequest creates a request to invoke DescribeLiveStreamStreamStatus API +func CreateDescribeLiveStreamStreamStatusRequest() (request *DescribeLiveStreamStreamStatusRequest) { + request = &DescribeLiveStreamStreamStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamStreamStatus", "", "") + return +} + +// CreateDescribeLiveStreamStreamStatusResponse creates a response to parse from DescribeLiveStreamStreamStatus response +func CreateDescribeLiveStreamStreamStatusResponse() (response *DescribeLiveStreamStreamStatusResponse) { + response = &DescribeLiveStreamStreamStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_transcode_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_transcode_info.go new file mode 100644 index 0000000..1242230 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_transcode_info.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamTranscodeInfo invokes the cdn.DescribeLiveStreamTranscodeInfo API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamtranscodeinfo.html +func (client *Client) DescribeLiveStreamTranscodeInfo(request *DescribeLiveStreamTranscodeInfoRequest) (response *DescribeLiveStreamTranscodeInfoResponse, err error) { + response = CreateDescribeLiveStreamTranscodeInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamTranscodeInfoWithChan invokes the cdn.DescribeLiveStreamTranscodeInfo API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamtranscodeinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamTranscodeInfoWithChan(request *DescribeLiveStreamTranscodeInfoRequest) (<-chan *DescribeLiveStreamTranscodeInfoResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamTranscodeInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamTranscodeInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamTranscodeInfoWithCallback invokes the cdn.DescribeLiveStreamTranscodeInfo API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamtranscodeinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamTranscodeInfoWithCallback(request *DescribeLiveStreamTranscodeInfoRequest, callback func(response *DescribeLiveStreamTranscodeInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamTranscodeInfoResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamTranscodeInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamTranscodeInfoRequest is the request struct for api DescribeLiveStreamTranscodeInfo +type DescribeLiveStreamTranscodeInfoRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + DomainTranscodeName string `position:"Query" name:"DomainTranscodeName"` +} + +// DescribeLiveStreamTranscodeInfoResponse is the response struct for api DescribeLiveStreamTranscodeInfo +type DescribeLiveStreamTranscodeInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainTranscodeList DomainTranscodeList `json:"DomainTranscodeList" xml:"DomainTranscodeList"` +} + +// CreateDescribeLiveStreamTranscodeInfoRequest creates a request to invoke DescribeLiveStreamTranscodeInfo API +func CreateDescribeLiveStreamTranscodeInfoRequest() (request *DescribeLiveStreamTranscodeInfoRequest) { + request = &DescribeLiveStreamTranscodeInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamTranscodeInfo", "", "") + return +} + +// CreateDescribeLiveStreamTranscodeInfoResponse creates a response to parse from DescribeLiveStreamTranscodeInfo response +func CreateDescribeLiveStreamTranscodeInfoResponse() (response *DescribeLiveStreamTranscodeInfoResponse) { + response = &DescribeLiveStreamTranscodeInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_transcode_stream_num.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_transcode_stream_num.go new file mode 100644 index 0000000..47cad38 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_stream_transcode_stream_num.go @@ -0,0 +1,109 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamTranscodeStreamNum invokes the cdn.DescribeLiveStreamTranscodeStreamNum API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamtranscodestreamnum.html +func (client *Client) DescribeLiveStreamTranscodeStreamNum(request *DescribeLiveStreamTranscodeStreamNumRequest) (response *DescribeLiveStreamTranscodeStreamNumResponse, err error) { + response = CreateDescribeLiveStreamTranscodeStreamNumResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamTranscodeStreamNumWithChan invokes the cdn.DescribeLiveStreamTranscodeStreamNum API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamtranscodestreamnum.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamTranscodeStreamNumWithChan(request *DescribeLiveStreamTranscodeStreamNumRequest) (<-chan *DescribeLiveStreamTranscodeStreamNumResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamTranscodeStreamNumResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamTranscodeStreamNum(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamTranscodeStreamNumWithCallback invokes the cdn.DescribeLiveStreamTranscodeStreamNum API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamtranscodestreamnum.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamTranscodeStreamNumWithCallback(request *DescribeLiveStreamTranscodeStreamNumRequest, callback func(response *DescribeLiveStreamTranscodeStreamNumResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamTranscodeStreamNumResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamTranscodeStreamNum(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamTranscodeStreamNumRequest is the request struct for api DescribeLiveStreamTranscodeStreamNum +type DescribeLiveStreamTranscodeStreamNumRequest struct { + *requests.RpcRequest + PullDomain string `position:"Query" name:"PullDomain"` + SecurityToken string `position:"Query" name:"SecurityToken"` + PushDomain string `position:"Query" name:"PushDomain"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveStreamTranscodeStreamNumResponse is the response struct for api DescribeLiveStreamTranscodeStreamNum +type DescribeLiveStreamTranscodeStreamNumResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Total int `json:"Total" xml:"Total"` + TranscodedNumber int `json:"TranscodedNumber" xml:"TranscodedNumber"` + UntranscodeNumber int `json:"UntranscodeNumber" xml:"UntranscodeNumber"` +} + +// CreateDescribeLiveStreamTranscodeStreamNumRequest creates a request to invoke DescribeLiveStreamTranscodeStreamNum API +func CreateDescribeLiveStreamTranscodeStreamNumRequest() (request *DescribeLiveStreamTranscodeStreamNumRequest) { + request = &DescribeLiveStreamTranscodeStreamNumRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamTranscodeStreamNum", "", "") + return +} + +// CreateDescribeLiveStreamTranscodeStreamNumResponse creates a response to parse from DescribeLiveStreamTranscodeStreamNum response +func CreateDescribeLiveStreamTranscodeStreamNumResponse() (response *DescribeLiveStreamTranscodeStreamNumResponse) { + response = &DescribeLiveStreamTranscodeStreamNumResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_streams_block_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_streams_block_list.go new file mode 100644 index 0000000..cc41895 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_streams_block_list.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamsBlockList invokes the cdn.DescribeLiveStreamsBlockList API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamsblocklist.html +func (client *Client) DescribeLiveStreamsBlockList(request *DescribeLiveStreamsBlockListRequest) (response *DescribeLiveStreamsBlockListResponse, err error) { + response = CreateDescribeLiveStreamsBlockListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamsBlockListWithChan invokes the cdn.DescribeLiveStreamsBlockList API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamsblocklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsBlockListWithChan(request *DescribeLiveStreamsBlockListRequest) (<-chan *DescribeLiveStreamsBlockListResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamsBlockListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamsBlockList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamsBlockListWithCallback invokes the cdn.DescribeLiveStreamsBlockList API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamsblocklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsBlockListWithCallback(request *DescribeLiveStreamsBlockListRequest, callback func(response *DescribeLiveStreamsBlockListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamsBlockListResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamsBlockList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamsBlockListRequest is the request struct for api DescribeLiveStreamsBlockList +type DescribeLiveStreamsBlockListRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveStreamsBlockListResponse is the response struct for api DescribeLiveStreamsBlockList +type DescribeLiveStreamsBlockListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StreamUrls StreamUrls `json:"StreamUrls" xml:"StreamUrls"` +} + +// CreateDescribeLiveStreamsBlockListRequest creates a request to invoke DescribeLiveStreamsBlockList API +func CreateDescribeLiveStreamsBlockListRequest() (request *DescribeLiveStreamsBlockListRequest) { + request = &DescribeLiveStreamsBlockListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamsBlockList", "", "") + return +} + +// CreateDescribeLiveStreamsBlockListResponse creates a response to parse from DescribeLiveStreamsBlockList response +func CreateDescribeLiveStreamsBlockListResponse() (response *DescribeLiveStreamsBlockListResponse) { + response = &DescribeLiveStreamsBlockListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_streams_control_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_streams_control_history.go new file mode 100644 index 0000000..b18fbe9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_streams_control_history.go @@ -0,0 +1,109 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamsControlHistory invokes the cdn.DescribeLiveStreamsControlHistory API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamscontrolhistory.html +func (client *Client) DescribeLiveStreamsControlHistory(request *DescribeLiveStreamsControlHistoryRequest) (response *DescribeLiveStreamsControlHistoryResponse, err error) { + response = CreateDescribeLiveStreamsControlHistoryResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamsControlHistoryWithChan invokes the cdn.DescribeLiveStreamsControlHistory API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamscontrolhistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsControlHistoryWithChan(request *DescribeLiveStreamsControlHistoryRequest) (<-chan *DescribeLiveStreamsControlHistoryResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamsControlHistoryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamsControlHistory(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamsControlHistoryWithCallback invokes the cdn.DescribeLiveStreamsControlHistory API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamscontrolhistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsControlHistoryWithCallback(request *DescribeLiveStreamsControlHistoryRequest, callback func(response *DescribeLiveStreamsControlHistoryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamsControlHistoryResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamsControlHistory(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamsControlHistoryRequest is the request struct for api DescribeLiveStreamsControlHistory +type DescribeLiveStreamsControlHistoryRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveStreamsControlHistoryResponse is the response struct for api DescribeLiveStreamsControlHistory +type DescribeLiveStreamsControlHistoryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ControlInfo ControlInfo `json:"ControlInfo" xml:"ControlInfo"` +} + +// CreateDescribeLiveStreamsControlHistoryRequest creates a request to invoke DescribeLiveStreamsControlHistory API +func CreateDescribeLiveStreamsControlHistoryRequest() (request *DescribeLiveStreamsControlHistoryRequest) { + request = &DescribeLiveStreamsControlHistoryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamsControlHistory", "", "") + return +} + +// CreateDescribeLiveStreamsControlHistoryResponse creates a response to parse from DescribeLiveStreamsControlHistory response +func CreateDescribeLiveStreamsControlHistoryResponse() (response *DescribeLiveStreamsControlHistoryResponse) { + response = &DescribeLiveStreamsControlHistoryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_streams_frame_rate_and_bit_rate_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_streams_frame_rate_and_bit_rate_data.go new file mode 100644 index 0000000..dba1638 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_streams_frame_rate_and_bit_rate_data.go @@ -0,0 +1,110 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamsFrameRateAndBitRateData invokes the cdn.DescribeLiveStreamsFrameRateAndBitRateData API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamsframerateandbitratedata.html +func (client *Client) DescribeLiveStreamsFrameRateAndBitRateData(request *DescribeLiveStreamsFrameRateAndBitRateDataRequest) (response *DescribeLiveStreamsFrameRateAndBitRateDataResponse, err error) { + response = CreateDescribeLiveStreamsFrameRateAndBitRateDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamsFrameRateAndBitRateDataWithChan invokes the cdn.DescribeLiveStreamsFrameRateAndBitRateData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamsframerateandbitratedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsFrameRateAndBitRateDataWithChan(request *DescribeLiveStreamsFrameRateAndBitRateDataRequest) (<-chan *DescribeLiveStreamsFrameRateAndBitRateDataResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamsFrameRateAndBitRateDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamsFrameRateAndBitRateData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamsFrameRateAndBitRateDataWithCallback invokes the cdn.DescribeLiveStreamsFrameRateAndBitRateData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamsframerateandbitratedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsFrameRateAndBitRateDataWithCallback(request *DescribeLiveStreamsFrameRateAndBitRateDataRequest, callback func(response *DescribeLiveStreamsFrameRateAndBitRateDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamsFrameRateAndBitRateDataResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamsFrameRateAndBitRateData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamsFrameRateAndBitRateDataRequest is the request struct for api DescribeLiveStreamsFrameRateAndBitRateData +type DescribeLiveStreamsFrameRateAndBitRateDataRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveStreamsFrameRateAndBitRateDataResponse is the response struct for api DescribeLiveStreamsFrameRateAndBitRateData +type DescribeLiveStreamsFrameRateAndBitRateDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + FrameRateAndBitRateInfos FrameRateAndBitRateInfosInDescribeLiveStreamsFrameRateAndBitRateData `json:"FrameRateAndBitRateInfos" xml:"FrameRateAndBitRateInfos"` +} + +// CreateDescribeLiveStreamsFrameRateAndBitRateDataRequest creates a request to invoke DescribeLiveStreamsFrameRateAndBitRateData API +func CreateDescribeLiveStreamsFrameRateAndBitRateDataRequest() (request *DescribeLiveStreamsFrameRateAndBitRateDataRequest) { + request = &DescribeLiveStreamsFrameRateAndBitRateDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamsFrameRateAndBitRateData", "", "") + return +} + +// CreateDescribeLiveStreamsFrameRateAndBitRateDataResponse creates a response to parse from DescribeLiveStreamsFrameRateAndBitRateData response +func CreateDescribeLiveStreamsFrameRateAndBitRateDataResponse() (response *DescribeLiveStreamsFrameRateAndBitRateDataResponse) { + response = &DescribeLiveStreamsFrameRateAndBitRateDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_streams_online_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_streams_online_list.go new file mode 100644 index 0000000..42fdeb7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_streams_online_list.go @@ -0,0 +1,114 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamsOnlineList invokes the cdn.DescribeLiveStreamsOnlineList API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamsonlinelist.html +func (client *Client) DescribeLiveStreamsOnlineList(request *DescribeLiveStreamsOnlineListRequest) (response *DescribeLiveStreamsOnlineListResponse, err error) { + response = CreateDescribeLiveStreamsOnlineListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamsOnlineListWithChan invokes the cdn.DescribeLiveStreamsOnlineList API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamsonlinelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsOnlineListWithChan(request *DescribeLiveStreamsOnlineListRequest) (<-chan *DescribeLiveStreamsOnlineListResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamsOnlineListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamsOnlineList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamsOnlineListWithCallback invokes the cdn.DescribeLiveStreamsOnlineList API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamsonlinelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsOnlineListWithCallback(request *DescribeLiveStreamsOnlineListRequest, callback func(response *DescribeLiveStreamsOnlineListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamsOnlineListResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamsOnlineList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamsOnlineListRequest is the request struct for api DescribeLiveStreamsOnlineList +type DescribeLiveStreamsOnlineListRequest struct { + *requests.RpcRequest + StreamType string `position:"Query" name:"StreamType"` + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNum requests.Integer `position:"Query" name:"PageNum"` +} + +// DescribeLiveStreamsOnlineListResponse is the response struct for api DescribeLiveStreamsOnlineList +type DescribeLiveStreamsOnlineListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNum int `json:"PageNum" xml:"PageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalNum int `json:"TotalNum" xml:"TotalNum"` + TotalPage int `json:"TotalPage" xml:"TotalPage"` + OnlineInfo OnlineInfo `json:"OnlineInfo" xml:"OnlineInfo"` +} + +// CreateDescribeLiveStreamsOnlineListRequest creates a request to invoke DescribeLiveStreamsOnlineList API +func CreateDescribeLiveStreamsOnlineListRequest() (request *DescribeLiveStreamsOnlineListRequest) { + request = &DescribeLiveStreamsOnlineListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamsOnlineList", "", "") + return +} + +// CreateDescribeLiveStreamsOnlineListResponse creates a response to parse from DescribeLiveStreamsOnlineList response +func CreateDescribeLiveStreamsOnlineListResponse() (response *DescribeLiveStreamsOnlineListResponse) { + response = &DescribeLiveStreamsOnlineListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_streams_publish_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_streams_publish_list.go new file mode 100644 index 0000000..231bb45 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_live_streams_publish_list.go @@ -0,0 +1,112 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamsPublishList invokes the cdn.DescribeLiveStreamsPublishList API synchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamspublishlist.html +func (client *Client) DescribeLiveStreamsPublishList(request *DescribeLiveStreamsPublishListRequest) (response *DescribeLiveStreamsPublishListResponse, err error) { + response = CreateDescribeLiveStreamsPublishListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamsPublishListWithChan invokes the cdn.DescribeLiveStreamsPublishList API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamspublishlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsPublishListWithChan(request *DescribeLiveStreamsPublishListRequest) (<-chan *DescribeLiveStreamsPublishListResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamsPublishListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamsPublishList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamsPublishListWithCallback invokes the cdn.DescribeLiveStreamsPublishList API asynchronously +// api document: https://help.aliyun.com/api/cdn/describelivestreamspublishlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsPublishListWithCallback(request *DescribeLiveStreamsPublishListRequest, callback func(response *DescribeLiveStreamsPublishListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamsPublishListResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamsPublishList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamsPublishListRequest is the request struct for api DescribeLiveStreamsPublishList +type DescribeLiveStreamsPublishListRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeLiveStreamsPublishListResponse is the response struct for api DescribeLiveStreamsPublishList +type DescribeLiveStreamsPublishListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PublishInfo PublishInfo `json:"PublishInfo" xml:"PublishInfo"` +} + +// CreateDescribeLiveStreamsPublishListRequest creates a request to invoke DescribeLiveStreamsPublishList API +func CreateDescribeLiveStreamsPublishListRequest() (request *DescribeLiveStreamsPublishListRequest) { + request = &DescribeLiveStreamsPublishListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeLiveStreamsPublishList", "", "") + return +} + +// CreateDescribeLiveStreamsPublishListResponse creates a response to parse from DescribeLiveStreamsPublishList response +func CreateDescribeLiveStreamsPublishListResponse() (response *DescribeLiveStreamsPublishListResponse) { + response = &DescribeLiveStreamsPublishListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_one_minute_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_one_minute_data.go new file mode 100644 index 0000000..c004a32 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_one_minute_data.go @@ -0,0 +1,109 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeOneMinuteData invokes the cdn.DescribeOneMinuteData API synchronously +// api document: https://help.aliyun.com/api/cdn/describeoneminutedata.html +func (client *Client) DescribeOneMinuteData(request *DescribeOneMinuteDataRequest) (response *DescribeOneMinuteDataResponse, err error) { + response = CreateDescribeOneMinuteDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeOneMinuteDataWithChan invokes the cdn.DescribeOneMinuteData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describeoneminutedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeOneMinuteDataWithChan(request *DescribeOneMinuteDataRequest) (<-chan *DescribeOneMinuteDataResponse, <-chan error) { + responseChan := make(chan *DescribeOneMinuteDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeOneMinuteData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeOneMinuteDataWithCallback invokes the cdn.DescribeOneMinuteData API asynchronously +// api document: https://help.aliyun.com/api/cdn/describeoneminutedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeOneMinuteDataWithCallback(request *DescribeOneMinuteDataRequest, callback func(response *DescribeOneMinuteDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeOneMinuteDataResponse + var err error + defer close(result) + response, err = client.DescribeOneMinuteData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeOneMinuteDataRequest is the request struct for api DescribeOneMinuteData +type DescribeOneMinuteDataRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + DataTime string `position:"Query" name:"DataTime"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeOneMinuteDataResponse is the response struct for api DescribeOneMinuteData +type DescribeOneMinuteDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Bps string `json:"Bps" xml:"Bps"` + Qps string `json:"Qps" xml:"Qps"` +} + +// CreateDescribeOneMinuteDataRequest creates a request to invoke DescribeOneMinuteData API +func CreateDescribeOneMinuteDataRequest() (request *DescribeOneMinuteDataRequest) { + request = &DescribeOneMinuteDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeOneMinuteData", "", "") + return +} + +// CreateDescribeOneMinuteDataResponse creates a response to parse from DescribeOneMinuteData response +func CreateDescribeOneMinuteDataResponse() (response *DescribeOneMinuteDataResponse) { + response = &DescribeOneMinuteDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_range_data_by_locate_and_isp_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_range_data_by_locate_and_isp_service.go new file mode 100644 index 0000000..6ff3ddc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_range_data_by_locate_and_isp_service.go @@ -0,0 +1,110 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRangeDataByLocateAndIspService invokes the cdn.DescribeRangeDataByLocateAndIspService API synchronously +// api document: https://help.aliyun.com/api/cdn/describerangedatabylocateandispservice.html +func (client *Client) DescribeRangeDataByLocateAndIspService(request *DescribeRangeDataByLocateAndIspServiceRequest) (response *DescribeRangeDataByLocateAndIspServiceResponse, err error) { + response = CreateDescribeRangeDataByLocateAndIspServiceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRangeDataByLocateAndIspServiceWithChan invokes the cdn.DescribeRangeDataByLocateAndIspService API asynchronously +// api document: https://help.aliyun.com/api/cdn/describerangedatabylocateandispservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRangeDataByLocateAndIspServiceWithChan(request *DescribeRangeDataByLocateAndIspServiceRequest) (<-chan *DescribeRangeDataByLocateAndIspServiceResponse, <-chan error) { + responseChan := make(chan *DescribeRangeDataByLocateAndIspServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRangeDataByLocateAndIspService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRangeDataByLocateAndIspServiceWithCallback invokes the cdn.DescribeRangeDataByLocateAndIspService API asynchronously +// api document: https://help.aliyun.com/api/cdn/describerangedatabylocateandispservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRangeDataByLocateAndIspServiceWithCallback(request *DescribeRangeDataByLocateAndIspServiceRequest, callback func(response *DescribeRangeDataByLocateAndIspServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRangeDataByLocateAndIspServiceResponse + var err error + defer close(result) + response, err = client.DescribeRangeDataByLocateAndIspService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRangeDataByLocateAndIspServiceRequest is the request struct for api DescribeRangeDataByLocateAndIspService +type DescribeRangeDataByLocateAndIspServiceRequest struct { + *requests.RpcRequest + IspNames string `position:"Query" name:"IspNames"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainNames string `position:"Query" name:"DomainNames"` + LocationNames string `position:"Query" name:"LocationNames"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"startTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeRangeDataByLocateAndIspServiceResponse is the response struct for api DescribeRangeDataByLocateAndIspService +type DescribeRangeDataByLocateAndIspServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JsonResult string `json:"JsonResult" xml:"JsonResult"` +} + +// CreateDescribeRangeDataByLocateAndIspServiceRequest creates a request to invoke DescribeRangeDataByLocateAndIspService API +func CreateDescribeRangeDataByLocateAndIspServiceRequest() (request *DescribeRangeDataByLocateAndIspServiceRequest) { + request = &DescribeRangeDataByLocateAndIspServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeRangeDataByLocateAndIspService", "", "") + return +} + +// CreateDescribeRangeDataByLocateAndIspServiceResponse creates a response to parse from DescribeRangeDataByLocateAndIspService response +func CreateDescribeRangeDataByLocateAndIspServiceResponse() (response *DescribeRangeDataByLocateAndIspServiceResponse) { + response = &DescribeRangeDataByLocateAndIspServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_refresh_quota.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_refresh_quota.go new file mode 100644 index 0000000..1131be3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_refresh_quota.go @@ -0,0 +1,112 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRefreshQuota invokes the cdn.DescribeRefreshQuota API synchronously +// api document: https://help.aliyun.com/api/cdn/describerefreshquota.html +func (client *Client) DescribeRefreshQuota(request *DescribeRefreshQuotaRequest) (response *DescribeRefreshQuotaResponse, err error) { + response = CreateDescribeRefreshQuotaResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRefreshQuotaWithChan invokes the cdn.DescribeRefreshQuota API asynchronously +// api document: https://help.aliyun.com/api/cdn/describerefreshquota.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRefreshQuotaWithChan(request *DescribeRefreshQuotaRequest) (<-chan *DescribeRefreshQuotaResponse, <-chan error) { + responseChan := make(chan *DescribeRefreshQuotaResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRefreshQuota(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRefreshQuotaWithCallback invokes the cdn.DescribeRefreshQuota API asynchronously +// api document: https://help.aliyun.com/api/cdn/describerefreshquota.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRefreshQuotaWithCallback(request *DescribeRefreshQuotaRequest, callback func(response *DescribeRefreshQuotaResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRefreshQuotaResponse + var err error + defer close(result) + response, err = client.DescribeRefreshQuota(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRefreshQuotaRequest is the request struct for api DescribeRefreshQuota +type DescribeRefreshQuotaRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeRefreshQuotaResponse is the response struct for api DescribeRefreshQuota +type DescribeRefreshQuotaResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + UrlQuota string `json:"UrlQuota" xml:"UrlQuota"` + DirQuota string `json:"DirQuota" xml:"DirQuota"` + UrlRemain string `json:"UrlRemain" xml:"UrlRemain"` + DirRemain string `json:"DirRemain" xml:"DirRemain"` + PreloadQuota string `json:"PreloadQuota" xml:"PreloadQuota"` + BlockQuota string `json:"BlockQuota" xml:"BlockQuota"` + PreloadRemain string `json:"PreloadRemain" xml:"PreloadRemain"` + BlockRemain string `json:"blockRemain" xml:"blockRemain"` +} + +// CreateDescribeRefreshQuotaRequest creates a request to invoke DescribeRefreshQuota API +func CreateDescribeRefreshQuotaRequest() (request *DescribeRefreshQuotaRequest) { + request = &DescribeRefreshQuotaRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeRefreshQuota", "", "") + return +} + +// CreateDescribeRefreshQuotaResponse creates a response to parse from DescribeRefreshQuota response +func CreateDescribeRefreshQuotaResponse() (response *DescribeRefreshQuotaResponse) { + response = &DescribeRefreshQuotaResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_refresh_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_refresh_tasks.go new file mode 100644 index 0000000..cf9a222 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_refresh_tasks.go @@ -0,0 +1,118 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRefreshTasks invokes the cdn.DescribeRefreshTasks API synchronously +// api document: https://help.aliyun.com/api/cdn/describerefreshtasks.html +func (client *Client) DescribeRefreshTasks(request *DescribeRefreshTasksRequest) (response *DescribeRefreshTasksResponse, err error) { + response = CreateDescribeRefreshTasksResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRefreshTasksWithChan invokes the cdn.DescribeRefreshTasks API asynchronously +// api document: https://help.aliyun.com/api/cdn/describerefreshtasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRefreshTasksWithChan(request *DescribeRefreshTasksRequest) (<-chan *DescribeRefreshTasksResponse, <-chan error) { + responseChan := make(chan *DescribeRefreshTasksResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRefreshTasks(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRefreshTasksWithCallback invokes the cdn.DescribeRefreshTasks API asynchronously +// api document: https://help.aliyun.com/api/cdn/describerefreshtasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRefreshTasksWithCallback(request *DescribeRefreshTasksRequest, callback func(response *DescribeRefreshTasksResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRefreshTasksResponse + var err error + defer close(result) + response, err = client.DescribeRefreshTasks(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRefreshTasksRequest is the request struct for api DescribeRefreshTasks +type DescribeRefreshTasksRequest struct { + *requests.RpcRequest + ObjectPath string `position:"Query" name:"ObjectPath"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ObjectType string `position:"Query" name:"ObjectType"` + TaskId string `position:"Query" name:"TaskId"` + Status string `position:"Query" name:"Status"` +} + +// DescribeRefreshTasksResponse is the response struct for api DescribeRefreshTasks +type DescribeRefreshTasksResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Tasks Tasks `json:"Tasks" xml:"Tasks"` +} + +// CreateDescribeRefreshTasksRequest creates a request to invoke DescribeRefreshTasks API +func CreateDescribeRefreshTasksRequest() (request *DescribeRefreshTasksRequest) { + request = &DescribeRefreshTasksRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeRefreshTasks", "", "") + return +} + +// CreateDescribeRefreshTasksResponse creates a response to parse from DescribeRefreshTasks response +func CreateDescribeRefreshTasksResponse() (response *DescribeRefreshTasksResponse) { + response = &DescribeRefreshTasksResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_top_domains_by_flow.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_top_domains_by_flow.go new file mode 100644 index 0000000..8efb959 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_top_domains_by_flow.go @@ -0,0 +1,112 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeTopDomainsByFlow invokes the cdn.DescribeTopDomainsByFlow API synchronously +// api document: https://help.aliyun.com/api/cdn/describetopdomainsbyflow.html +func (client *Client) DescribeTopDomainsByFlow(request *DescribeTopDomainsByFlowRequest) (response *DescribeTopDomainsByFlowResponse, err error) { + response = CreateDescribeTopDomainsByFlowResponse() + err = client.DoAction(request, response) + return +} + +// DescribeTopDomainsByFlowWithChan invokes the cdn.DescribeTopDomainsByFlow API asynchronously +// api document: https://help.aliyun.com/api/cdn/describetopdomainsbyflow.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTopDomainsByFlowWithChan(request *DescribeTopDomainsByFlowRequest) (<-chan *DescribeTopDomainsByFlowResponse, <-chan error) { + responseChan := make(chan *DescribeTopDomainsByFlowResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeTopDomainsByFlow(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeTopDomainsByFlowWithCallback invokes the cdn.DescribeTopDomainsByFlow API asynchronously +// api document: https://help.aliyun.com/api/cdn/describetopdomainsbyflow.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTopDomainsByFlowWithCallback(request *DescribeTopDomainsByFlowRequest, callback func(response *DescribeTopDomainsByFlowResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeTopDomainsByFlowResponse + var err error + defer close(result) + response, err = client.DescribeTopDomainsByFlow(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeTopDomainsByFlowRequest is the request struct for api DescribeTopDomainsByFlow +type DescribeTopDomainsByFlowRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + Limit requests.Integer `position:"Query" name:"Limit"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeTopDomainsByFlowResponse is the response struct for api DescribeTopDomainsByFlow +type DescribeTopDomainsByFlowResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DomainCount int `json:"DomainCount" xml:"DomainCount"` + DomainOnlineCount int `json:"DomainOnlineCount" xml:"DomainOnlineCount"` + TopDomains TopDomains `json:"TopDomains" xml:"TopDomains"` +} + +// CreateDescribeTopDomainsByFlowRequest creates a request to invoke DescribeTopDomainsByFlow API +func CreateDescribeTopDomainsByFlowRequest() (request *DescribeTopDomainsByFlowRequest) { + request = &DescribeTopDomainsByFlowRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeTopDomainsByFlow", "", "") + return +} + +// CreateDescribeTopDomainsByFlowResponse creates a response to parse from DescribeTopDomainsByFlow response +func CreateDescribeTopDomainsByFlowResponse() (response *DescribeTopDomainsByFlowResponse) { + response = &DescribeTopDomainsByFlowResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_user_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_user_configs.go new file mode 100644 index 0000000..c3e529b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_user_configs.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeUserConfigs invokes the cdn.DescribeUserConfigs API synchronously +// api document: https://help.aliyun.com/api/cdn/describeuserconfigs.html +func (client *Client) DescribeUserConfigs(request *DescribeUserConfigsRequest) (response *DescribeUserConfigsResponse, err error) { + response = CreateDescribeUserConfigsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeUserConfigsWithChan invokes the cdn.DescribeUserConfigs API asynchronously +// api document: https://help.aliyun.com/api/cdn/describeuserconfigs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserConfigsWithChan(request *DescribeUserConfigsRequest) (<-chan *DescribeUserConfigsResponse, <-chan error) { + responseChan := make(chan *DescribeUserConfigsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeUserConfigs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeUserConfigsWithCallback invokes the cdn.DescribeUserConfigs API asynchronously +// api document: https://help.aliyun.com/api/cdn/describeuserconfigs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserConfigsWithCallback(request *DescribeUserConfigsRequest, callback func(response *DescribeUserConfigsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeUserConfigsResponse + var err error + defer close(result) + response, err = client.DescribeUserConfigs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeUserConfigsRequest is the request struct for api DescribeUserConfigs +type DescribeUserConfigsRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Config string `position:"Query" name:"Config"` +} + +// DescribeUserConfigsResponse is the response struct for api DescribeUserConfigs +type DescribeUserConfigsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Configs Configs `json:"Configs" xml:"Configs"` +} + +// CreateDescribeUserConfigsRequest creates a request to invoke DescribeUserConfigs API +func CreateDescribeUserConfigsRequest() (request *DescribeUserConfigsRequest) { + request = &DescribeUserConfigsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeUserConfigs", "", "") + return +} + +// CreateDescribeUserConfigsResponse creates a response to parse from DescribeUserConfigs response +func CreateDescribeUserConfigsResponse() (response *DescribeUserConfigsResponse) { + response = &DescribeUserConfigsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_user_custom_log_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_user_custom_log_config.go new file mode 100644 index 0000000..67bd67c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_user_custom_log_config.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeUserCustomLogConfig invokes the cdn.DescribeUserCustomLogConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/describeusercustomlogconfig.html +func (client *Client) DescribeUserCustomLogConfig(request *DescribeUserCustomLogConfigRequest) (response *DescribeUserCustomLogConfigResponse, err error) { + response = CreateDescribeUserCustomLogConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeUserCustomLogConfigWithChan invokes the cdn.DescribeUserCustomLogConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/describeusercustomlogconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserCustomLogConfigWithChan(request *DescribeUserCustomLogConfigRequest) (<-chan *DescribeUserCustomLogConfigResponse, <-chan error) { + responseChan := make(chan *DescribeUserCustomLogConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeUserCustomLogConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeUserCustomLogConfigWithCallback invokes the cdn.DescribeUserCustomLogConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/describeusercustomlogconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserCustomLogConfigWithCallback(request *DescribeUserCustomLogConfigRequest, callback func(response *DescribeUserCustomLogConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeUserCustomLogConfigResponse + var err error + defer close(result) + response, err = client.DescribeUserCustomLogConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeUserCustomLogConfigRequest is the request struct for api DescribeUserCustomLogConfig +type DescribeUserCustomLogConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Version string `position:"Query" name:"Version"` +} + +// DescribeUserCustomLogConfigResponse is the response struct for api DescribeUserCustomLogConfig +type DescribeUserCustomLogConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ConfigIds ConfigIds `json:"ConfigIds" xml:"ConfigIds"` +} + +// CreateDescribeUserCustomLogConfigRequest creates a request to invoke DescribeUserCustomLogConfig API +func CreateDescribeUserCustomLogConfigRequest() (request *DescribeUserCustomLogConfigRequest) { + request = &DescribeUserCustomLogConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeUserCustomLogConfig", "", "") + return +} + +// CreateDescribeUserCustomLogConfigResponse creates a response to parse from DescribeUserCustomLogConfig response +func CreateDescribeUserCustomLogConfigResponse() (response *DescribeUserCustomLogConfigResponse) { + response = &DescribeUserCustomLogConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_user_customer_labels.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_user_customer_labels.go new file mode 100644 index 0000000..33aad77 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_user_customer_labels.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeUserCustomerLabels invokes the cdn.DescribeUserCustomerLabels API synchronously +// api document: https://help.aliyun.com/api/cdn/describeusercustomerlabels.html +func (client *Client) DescribeUserCustomerLabels(request *DescribeUserCustomerLabelsRequest) (response *DescribeUserCustomerLabelsResponse, err error) { + response = CreateDescribeUserCustomerLabelsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeUserCustomerLabelsWithChan invokes the cdn.DescribeUserCustomerLabels API asynchronously +// api document: https://help.aliyun.com/api/cdn/describeusercustomerlabels.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserCustomerLabelsWithChan(request *DescribeUserCustomerLabelsRequest) (<-chan *DescribeUserCustomerLabelsResponse, <-chan error) { + responseChan := make(chan *DescribeUserCustomerLabelsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeUserCustomerLabels(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeUserCustomerLabelsWithCallback invokes the cdn.DescribeUserCustomerLabels API asynchronously +// api document: https://help.aliyun.com/api/cdn/describeusercustomerlabels.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserCustomerLabelsWithCallback(request *DescribeUserCustomerLabelsRequest, callback func(response *DescribeUserCustomerLabelsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeUserCustomerLabelsResponse + var err error + defer close(result) + response, err = client.DescribeUserCustomerLabels(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeUserCustomerLabelsRequest is the request struct for api DescribeUserCustomerLabels +type DescribeUserCustomerLabelsRequest struct { + *requests.RpcRequest + Uid requests.Integer `position:"Query" name:"Uid"` + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeUserCustomerLabelsResponse is the response struct for api DescribeUserCustomerLabels +type DescribeUserCustomerLabelsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + IsInnerUser bool `json:"IsInnerUser" xml:"IsInnerUser"` +} + +// CreateDescribeUserCustomerLabelsRequest creates a request to invoke DescribeUserCustomerLabels API +func CreateDescribeUserCustomerLabelsRequest() (request *DescribeUserCustomerLabelsRequest) { + request = &DescribeUserCustomerLabelsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeUserCustomerLabels", "", "") + return +} + +// CreateDescribeUserCustomerLabelsResponse creates a response to parse from DescribeUserCustomerLabels response +func CreateDescribeUserCustomerLabelsResponse() (response *DescribeUserCustomerLabelsResponse) { + response = &DescribeUserCustomerLabelsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_user_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_user_domains.go new file mode 100644 index 0000000..80795a6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_user_domains.go @@ -0,0 +1,119 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeUserDomains invokes the cdn.DescribeUserDomains API synchronously +// api document: https://help.aliyun.com/api/cdn/describeuserdomains.html +func (client *Client) DescribeUserDomains(request *DescribeUserDomainsRequest) (response *DescribeUserDomainsResponse, err error) { + response = CreateDescribeUserDomainsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeUserDomainsWithChan invokes the cdn.DescribeUserDomains API asynchronously +// api document: https://help.aliyun.com/api/cdn/describeuserdomains.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserDomainsWithChan(request *DescribeUserDomainsRequest) (<-chan *DescribeUserDomainsResponse, <-chan error) { + responseChan := make(chan *DescribeUserDomainsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeUserDomains(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeUserDomainsWithCallback invokes the cdn.DescribeUserDomains API asynchronously +// api document: https://help.aliyun.com/api/cdn/describeuserdomains.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserDomainsWithCallback(request *DescribeUserDomainsRequest, callback func(response *DescribeUserDomainsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeUserDomainsResponse + var err error + defer close(result) + response, err = client.DescribeUserDomains(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeUserDomainsRequest is the request struct for api DescribeUserDomains +type DescribeUserDomainsRequest struct { + *requests.RpcRequest + FuncFilter string `position:"Query" name:"FuncFilter"` + Sources string `position:"Query" name:"Sources"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + FuncId string `position:"Query" name:"FuncId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + DomainStatus string `position:"Query" name:"DomainStatus"` + DomainSearchType string `position:"Query" name:"DomainSearchType"` + CheckDomainShow requests.Boolean `position:"Query" name:"CheckDomainShow"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + CdnType string `position:"Query" name:"CdnType"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeUserDomainsResponse is the response struct for api DescribeUserDomains +type DescribeUserDomainsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Domains DomainsInDescribeUserDomains `json:"Domains" xml:"Domains"` +} + +// CreateDescribeUserDomainsRequest creates a request to invoke DescribeUserDomains API +func CreateDescribeUserDomainsRequest() (request *DescribeUserDomainsRequest) { + request = &DescribeUserDomainsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeUserDomains", "", "") + return +} + +// CreateDescribeUserDomainsResponse creates a response to parse from DescribeUserDomains response +func CreateDescribeUserDomainsResponse() (response *DescribeUserDomainsResponse) { + response = &DescribeUserDomainsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_user_vips_by_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_user_vips_by_domain.go new file mode 100644 index 0000000..bee080f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/describe_user_vips_by_domain.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeUserVipsByDomain invokes the cdn.DescribeUserVipsByDomain API synchronously +// api document: https://help.aliyun.com/api/cdn/describeuservipsbydomain.html +func (client *Client) DescribeUserVipsByDomain(request *DescribeUserVipsByDomainRequest) (response *DescribeUserVipsByDomainResponse, err error) { + response = CreateDescribeUserVipsByDomainResponse() + err = client.DoAction(request, response) + return +} + +// DescribeUserVipsByDomainWithChan invokes the cdn.DescribeUserVipsByDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/describeuservipsbydomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserVipsByDomainWithChan(request *DescribeUserVipsByDomainRequest) (<-chan *DescribeUserVipsByDomainResponse, <-chan error) { + responseChan := make(chan *DescribeUserVipsByDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeUserVipsByDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeUserVipsByDomainWithCallback invokes the cdn.DescribeUserVipsByDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/describeuservipsbydomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserVipsByDomainWithCallback(request *DescribeUserVipsByDomainRequest, callback func(response *DescribeUserVipsByDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeUserVipsByDomainResponse + var err error + defer close(result) + response, err = client.DescribeUserVipsByDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeUserVipsByDomainRequest is the request struct for api DescribeUserVipsByDomain +type DescribeUserVipsByDomainRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + Available string `position:"Query" name:"Available"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeUserVipsByDomainResponse is the response struct for api DescribeUserVipsByDomain +type DescribeUserVipsByDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName int `json:"DomainName" xml:"DomainName"` + Vips VipsInDescribeUserVipsByDomain `json:"Vips" xml:"Vips"` +} + +// CreateDescribeUserVipsByDomainRequest creates a request to invoke DescribeUserVipsByDomain API +func CreateDescribeUserVipsByDomainRequest() (request *DescribeUserVipsByDomainRequest) { + request = &DescribeUserVipsByDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeUserVipsByDomain", "", "") + return +} + +// CreateDescribeUserVipsByDomainResponse creates a response to parse from DescribeUserVipsByDomain response +func CreateDescribeUserVipsByDomainResponse() (response *DescribeUserVipsByDomainResponse) { + response = &DescribeUserVipsByDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/forbid_live_stream.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/forbid_live_stream.go new file mode 100644 index 0000000..6c5d4c8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/forbid_live_stream.go @@ -0,0 +1,109 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ForbidLiveStream invokes the cdn.ForbidLiveStream API synchronously +// api document: https://help.aliyun.com/api/cdn/forbidlivestream.html +func (client *Client) ForbidLiveStream(request *ForbidLiveStreamRequest) (response *ForbidLiveStreamResponse, err error) { + response = CreateForbidLiveStreamResponse() + err = client.DoAction(request, response) + return +} + +// ForbidLiveStreamWithChan invokes the cdn.ForbidLiveStream API asynchronously +// api document: https://help.aliyun.com/api/cdn/forbidlivestream.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ForbidLiveStreamWithChan(request *ForbidLiveStreamRequest) (<-chan *ForbidLiveStreamResponse, <-chan error) { + responseChan := make(chan *ForbidLiveStreamResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ForbidLiveStream(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ForbidLiveStreamWithCallback invokes the cdn.ForbidLiveStream API asynchronously +// api document: https://help.aliyun.com/api/cdn/forbidlivestream.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ForbidLiveStreamWithCallback(request *ForbidLiveStreamRequest, callback func(response *ForbidLiveStreamResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ForbidLiveStreamResponse + var err error + defer close(result) + response, err = client.ForbidLiveStream(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ForbidLiveStreamRequest is the request struct for api ForbidLiveStream +type ForbidLiveStreamRequest struct { + *requests.RpcRequest + ResumeTime string `position:"Query" name:"ResumeTime"` + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + LiveStreamType string `position:"Query" name:"LiveStreamType"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// ForbidLiveStreamResponse is the response struct for api ForbidLiveStream +type ForbidLiveStreamResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateForbidLiveStreamRequest creates a request to invoke ForbidLiveStream API +func CreateForbidLiveStreamRequest() (request *ForbidLiveStreamRequest) { + request = &ForbidLiveStreamRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "ForbidLiveStream", "", "") + return +} + +// CreateForbidLiveStreamResponse creates a response to parse from ForbidLiveStream response +func CreateForbidLiveStreamResponse() (response *ForbidLiveStreamResponse) { + response = &ForbidLiveStreamResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/get_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/get_domain.go new file mode 100644 index 0000000..2561b05 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/get_domain.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetDomain invokes the cdn.GetDomain API synchronously +// api document: https://help.aliyun.com/api/cdn/getdomain.html +func (client *Client) GetDomain(request *GetDomainRequest) (response *GetDomainResponse, err error) { + response = CreateGetDomainResponse() + err = client.DoAction(request, response) + return +} + +// GetDomainWithChan invokes the cdn.GetDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/getdomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetDomainWithChan(request *GetDomainRequest) (<-chan *GetDomainResponse, <-chan error) { + responseChan := make(chan *GetDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetDomainWithCallback invokes the cdn.GetDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/getdomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetDomainWithCallback(request *GetDomainRequest, callback func(response *GetDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetDomainResponse + var err error + defer close(result) + response, err = client.GetDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetDomainRequest is the request struct for api GetDomain +type GetDomainRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Version string `position:"Query" name:"Version"` + SecurityToken string `position:"Query" name:"SecurityToken"` +} + +// GetDomainResponse is the response struct for api GetDomain +type GetDomainResponse struct { + *responses.BaseResponse + RetCode string `json:"RetCode" xml:"RetCode"` + Description string `json:"Description" xml:"Description"` + DomainDetail DomainDetail `json:"DomainDetail" xml:"DomainDetail"` +} + +// CreateGetDomainRequest creates a request to invoke GetDomain API +func CreateGetDomainRequest() (request *GetDomainRequest) { + request = &GetDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "GetDomain", "", "") + return +} + +// CreateGetDomainResponse creates a response to parse from GetDomain response +func CreateGetDomainResponse() (response *GetDomainResponse) { + response = &GetDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/get_user_domain_black_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/get_user_domain_black_list.go new file mode 100644 index 0000000..5cc30c9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/get_user_domain_black_list.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetUserDomainBlackList invokes the cdn.GetUserDomainBlackList API synchronously +// api document: https://help.aliyun.com/api/cdn/getuserdomainblacklist.html +func (client *Client) GetUserDomainBlackList(request *GetUserDomainBlackListRequest) (response *GetUserDomainBlackListResponse, err error) { + response = CreateGetUserDomainBlackListResponse() + err = client.DoAction(request, response) + return +} + +// GetUserDomainBlackListWithChan invokes the cdn.GetUserDomainBlackList API asynchronously +// api document: https://help.aliyun.com/api/cdn/getuserdomainblacklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetUserDomainBlackListWithChan(request *GetUserDomainBlackListRequest) (<-chan *GetUserDomainBlackListResponse, <-chan error) { + responseChan := make(chan *GetUserDomainBlackListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetUserDomainBlackList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetUserDomainBlackListWithCallback invokes the cdn.GetUserDomainBlackList API asynchronously +// api document: https://help.aliyun.com/api/cdn/getuserdomainblacklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetUserDomainBlackListWithCallback(request *GetUserDomainBlackListRequest, callback func(response *GetUserDomainBlackListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetUserDomainBlackListResponse + var err error + defer close(result) + response, err = client.GetUserDomainBlackList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetUserDomainBlackListRequest is the request struct for api GetUserDomainBlackList +type GetUserDomainBlackListRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// GetUserDomainBlackListResponse is the response struct for api GetUserDomainBlackList +type GetUserDomainBlackListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Bind string `json:"Bind" xml:"Bind"` +} + +// CreateGetUserDomainBlackListRequest creates a request to invoke GetUserDomainBlackList API +func CreateGetUserDomainBlackListRequest() (request *GetUserDomainBlackListRequest) { + request = &GetUserDomainBlackListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "GetUserDomainBlackList", "", "") + return +} + +// CreateGetUserDomainBlackListResponse creates a response to parse from GetUserDomainBlackList response +func CreateGetUserDomainBlackListResponse() (response *GetUserDomainBlackListResponse) { + response = &GetUserDomainBlackListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/list_domains_by_log_config_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/list_domains_by_log_config_id.go new file mode 100644 index 0000000..49ede82 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/list_domains_by_log_config_id.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListDomainsByLogConfigId invokes the cdn.ListDomainsByLogConfigId API synchronously +// api document: https://help.aliyun.com/api/cdn/listdomainsbylogconfigid.html +func (client *Client) ListDomainsByLogConfigId(request *ListDomainsByLogConfigIdRequest) (response *ListDomainsByLogConfigIdResponse, err error) { + response = CreateListDomainsByLogConfigIdResponse() + err = client.DoAction(request, response) + return +} + +// ListDomainsByLogConfigIdWithChan invokes the cdn.ListDomainsByLogConfigId API asynchronously +// api document: https://help.aliyun.com/api/cdn/listdomainsbylogconfigid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListDomainsByLogConfigIdWithChan(request *ListDomainsByLogConfigIdRequest) (<-chan *ListDomainsByLogConfigIdResponse, <-chan error) { + responseChan := make(chan *ListDomainsByLogConfigIdResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListDomainsByLogConfigId(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListDomainsByLogConfigIdWithCallback invokes the cdn.ListDomainsByLogConfigId API asynchronously +// api document: https://help.aliyun.com/api/cdn/listdomainsbylogconfigid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListDomainsByLogConfigIdWithCallback(request *ListDomainsByLogConfigIdRequest, callback func(response *ListDomainsByLogConfigIdResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListDomainsByLogConfigIdResponse + var err error + defer close(result) + response, err = client.ListDomainsByLogConfigId(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListDomainsByLogConfigIdRequest is the request struct for api ListDomainsByLogConfigId +type ListDomainsByLogConfigIdRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Version string `position:"Query" name:"Version"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ConfigId string `position:"Query" name:"ConfigId"` +} + +// ListDomainsByLogConfigIdResponse is the response struct for api ListDomainsByLogConfigId +type ListDomainsByLogConfigIdResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Domains DomainsInListDomainsByLogConfigId `json:"Domains" xml:"Domains"` +} + +// CreateListDomainsByLogConfigIdRequest creates a request to invoke ListDomainsByLogConfigId API +func CreateListDomainsByLogConfigIdRequest() (request *ListDomainsByLogConfigIdRequest) { + request = &ListDomainsByLogConfigIdRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "ListDomainsByLogConfigId", "", "") + return +} + +// CreateListDomainsByLogConfigIdResponse creates a response to parse from ListDomainsByLogConfigId response +func CreateListDomainsByLogConfigIdResponse() (response *ListDomainsByLogConfigIdResponse) { + response = &ListDomainsByLogConfigIdResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/migrate_domain_to_https_delivery.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/migrate_domain_to_https_delivery.go new file mode 100644 index 0000000..510339a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/migrate_domain_to_https_delivery.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// MigrateDomainToHttpsDelivery invokes the cdn.MigrateDomainToHttpsDelivery API synchronously +// api document: https://help.aliyun.com/api/cdn/migratedomaintohttpsdelivery.html +func (client *Client) MigrateDomainToHttpsDelivery(request *MigrateDomainToHttpsDeliveryRequest) (response *MigrateDomainToHttpsDeliveryResponse, err error) { + response = CreateMigrateDomainToHttpsDeliveryResponse() + err = client.DoAction(request, response) + return +} + +// MigrateDomainToHttpsDeliveryWithChan invokes the cdn.MigrateDomainToHttpsDelivery API asynchronously +// api document: https://help.aliyun.com/api/cdn/migratedomaintohttpsdelivery.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) MigrateDomainToHttpsDeliveryWithChan(request *MigrateDomainToHttpsDeliveryRequest) (<-chan *MigrateDomainToHttpsDeliveryResponse, <-chan error) { + responseChan := make(chan *MigrateDomainToHttpsDeliveryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.MigrateDomainToHttpsDelivery(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// MigrateDomainToHttpsDeliveryWithCallback invokes the cdn.MigrateDomainToHttpsDelivery API asynchronously +// api document: https://help.aliyun.com/api/cdn/migratedomaintohttpsdelivery.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) MigrateDomainToHttpsDeliveryWithCallback(request *MigrateDomainToHttpsDeliveryRequest, callback func(response *MigrateDomainToHttpsDeliveryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *MigrateDomainToHttpsDeliveryResponse + var err error + defer close(result) + response, err = client.MigrateDomainToHttpsDelivery(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// MigrateDomainToHttpsDeliveryRequest is the request struct for api MigrateDomainToHttpsDelivery +type MigrateDomainToHttpsDeliveryRequest struct { + *requests.RpcRequest + PrivateKey string `position:"Query" name:"PrivateKey"` + ServerCertificate string `position:"Query" name:"ServerCertificate"` + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// MigrateDomainToHttpsDeliveryResponse is the response struct for api MigrateDomainToHttpsDelivery +type MigrateDomainToHttpsDeliveryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateMigrateDomainToHttpsDeliveryRequest creates a request to invoke MigrateDomainToHttpsDelivery API +func CreateMigrateDomainToHttpsDeliveryRequest() (request *MigrateDomainToHttpsDeliveryRequest) { + request = &MigrateDomainToHttpsDeliveryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "MigrateDomainToHttpsDelivery", "", "") + return +} + +// CreateMigrateDomainToHttpsDeliveryResponse creates a response to parse from MigrateDomainToHttpsDelivery response +func CreateMigrateDomainToHttpsDeliveryResponse() (response *MigrateDomainToHttpsDeliveryResponse) { + response = &MigrateDomainToHttpsDeliveryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_cdn_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_cdn_domain.go new file mode 100644 index 0000000..ee87488 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_cdn_domain.go @@ -0,0 +1,111 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyCdnDomain invokes the cdn.ModifyCdnDomain API synchronously +// api document: https://help.aliyun.com/api/cdn/modifycdndomain.html +func (client *Client) ModifyCdnDomain(request *ModifyCdnDomainRequest) (response *ModifyCdnDomainResponse, err error) { + response = CreateModifyCdnDomainResponse() + err = client.DoAction(request, response) + return +} + +// ModifyCdnDomainWithChan invokes the cdn.ModifyCdnDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/modifycdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCdnDomainWithChan(request *ModifyCdnDomainRequest) (<-chan *ModifyCdnDomainResponse, <-chan error) { + responseChan := make(chan *ModifyCdnDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyCdnDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyCdnDomainWithCallback invokes the cdn.ModifyCdnDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/modifycdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCdnDomainWithCallback(request *ModifyCdnDomainRequest, callback func(response *ModifyCdnDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyCdnDomainResponse + var err error + defer close(result) + response, err = client.ModifyCdnDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyCdnDomainRequest is the request struct for api ModifyCdnDomain +type ModifyCdnDomainRequest struct { + *requests.RpcRequest + TopLevelDomain string `position:"Query" name:"TopLevelDomain"` + SourcePort requests.Integer `position:"Query" name:"SourcePort"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Priorities string `position:"Query" name:"Priorities"` + Sources string `position:"Query" name:"Sources"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + SourceType string `position:"Query" name:"SourceType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyCdnDomainResponse is the response struct for api ModifyCdnDomain +type ModifyCdnDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyCdnDomainRequest creates a request to invoke ModifyCdnDomain API +func CreateModifyCdnDomainRequest() (request *ModifyCdnDomainRequest) { + request = &ModifyCdnDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "ModifyCdnDomain", "", "") + return +} + +// CreateModifyCdnDomainResponse creates a response to parse from ModifyCdnDomain response +func CreateModifyCdnDomainResponse() (response *ModifyCdnDomainResponse) { + response = &ModifyCdnDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_cdn_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_cdn_service.go new file mode 100644 index 0000000..e998c89 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_cdn_service.go @@ -0,0 +1,105 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyCdnService invokes the cdn.ModifyCdnService API synchronously +// api document: https://help.aliyun.com/api/cdn/modifycdnservice.html +func (client *Client) ModifyCdnService(request *ModifyCdnServiceRequest) (response *ModifyCdnServiceResponse, err error) { + response = CreateModifyCdnServiceResponse() + err = client.DoAction(request, response) + return +} + +// ModifyCdnServiceWithChan invokes the cdn.ModifyCdnService API asynchronously +// api document: https://help.aliyun.com/api/cdn/modifycdnservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCdnServiceWithChan(request *ModifyCdnServiceRequest) (<-chan *ModifyCdnServiceResponse, <-chan error) { + responseChan := make(chan *ModifyCdnServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyCdnService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyCdnServiceWithCallback invokes the cdn.ModifyCdnService API asynchronously +// api document: https://help.aliyun.com/api/cdn/modifycdnservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCdnServiceWithCallback(request *ModifyCdnServiceRequest, callback func(response *ModifyCdnServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyCdnServiceResponse + var err error + defer close(result) + response, err = client.ModifyCdnService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyCdnServiceRequest is the request struct for api ModifyCdnService +type ModifyCdnServiceRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyCdnServiceResponse is the response struct for api ModifyCdnService +type ModifyCdnServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyCdnServiceRequest creates a request to invoke ModifyCdnService API +func CreateModifyCdnServiceRequest() (request *ModifyCdnServiceRequest) { + request = &ModifyCdnServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "ModifyCdnService", "", "") + return +} + +// CreateModifyCdnServiceResponse creates a response to parse from ModifyCdnService response +func CreateModifyCdnServiceResponse() (response *ModifyCdnServiceResponse) { + response = &ModifyCdnServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_domain_custom_log_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_domain_custom_log_config.go new file mode 100644 index 0000000..82c89bb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_domain_custom_log_config.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDomainCustomLogConfig invokes the cdn.ModifyDomainCustomLogConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/modifydomaincustomlogconfig.html +func (client *Client) ModifyDomainCustomLogConfig(request *ModifyDomainCustomLogConfigRequest) (response *ModifyDomainCustomLogConfigResponse, err error) { + response = CreateModifyDomainCustomLogConfigResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDomainCustomLogConfigWithChan invokes the cdn.ModifyDomainCustomLogConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/modifydomaincustomlogconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDomainCustomLogConfigWithChan(request *ModifyDomainCustomLogConfigRequest) (<-chan *ModifyDomainCustomLogConfigResponse, <-chan error) { + responseChan := make(chan *ModifyDomainCustomLogConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDomainCustomLogConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDomainCustomLogConfigWithCallback invokes the cdn.ModifyDomainCustomLogConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/modifydomaincustomlogconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDomainCustomLogConfigWithCallback(request *ModifyDomainCustomLogConfigRequest, callback func(response *ModifyDomainCustomLogConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDomainCustomLogConfigResponse + var err error + defer close(result) + response, err = client.ModifyDomainCustomLogConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDomainCustomLogConfigRequest is the request struct for api ModifyDomainCustomLogConfig +type ModifyDomainCustomLogConfigRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Version string `position:"Query" name:"Version"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ConfigId string `position:"Query" name:"ConfigId"` +} + +// ModifyDomainCustomLogConfigResponse is the response struct for api ModifyDomainCustomLogConfig +type ModifyDomainCustomLogConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyDomainCustomLogConfigRequest creates a request to invoke ModifyDomainCustomLogConfig API +func CreateModifyDomainCustomLogConfigRequest() (request *ModifyDomainCustomLogConfigRequest) { + request = &ModifyDomainCustomLogConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "ModifyDomainCustomLogConfig", "", "") + return +} + +// CreateModifyDomainCustomLogConfigResponse creates a response to parse from ModifyDomainCustomLogConfig response +func CreateModifyDomainCustomLogConfigResponse() (response *ModifyDomainCustomLogConfigResponse) { + response = &ModifyDomainCustomLogConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_file_cache_expired_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_file_cache_expired_config.go new file mode 100644 index 0000000..b0ed88a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_file_cache_expired_config.go @@ -0,0 +1,109 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyFileCacheExpiredConfig invokes the cdn.ModifyFileCacheExpiredConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/modifyfilecacheexpiredconfig.html +func (client *Client) ModifyFileCacheExpiredConfig(request *ModifyFileCacheExpiredConfigRequest) (response *ModifyFileCacheExpiredConfigResponse, err error) { + response = CreateModifyFileCacheExpiredConfigResponse() + err = client.DoAction(request, response) + return +} + +// ModifyFileCacheExpiredConfigWithChan invokes the cdn.ModifyFileCacheExpiredConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/modifyfilecacheexpiredconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyFileCacheExpiredConfigWithChan(request *ModifyFileCacheExpiredConfigRequest) (<-chan *ModifyFileCacheExpiredConfigResponse, <-chan error) { + responseChan := make(chan *ModifyFileCacheExpiredConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyFileCacheExpiredConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyFileCacheExpiredConfigWithCallback invokes the cdn.ModifyFileCacheExpiredConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/modifyfilecacheexpiredconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyFileCacheExpiredConfigWithCallback(request *ModifyFileCacheExpiredConfigRequest, callback func(response *ModifyFileCacheExpiredConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyFileCacheExpiredConfigResponse + var err error + defer close(result) + response, err = client.ModifyFileCacheExpiredConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyFileCacheExpiredConfigRequest is the request struct for api ModifyFileCacheExpiredConfig +type ModifyFileCacheExpiredConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + ConfigID string `position:"Query" name:"ConfigID"` + DomainName string `position:"Query" name:"DomainName"` + Weight string `position:"Query" name:"Weight"` + CacheContent string `position:"Query" name:"CacheContent"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + TTL string `position:"Query" name:"TTL"` +} + +// ModifyFileCacheExpiredConfigResponse is the response struct for api ModifyFileCacheExpiredConfig +type ModifyFileCacheExpiredConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyFileCacheExpiredConfigRequest creates a request to invoke ModifyFileCacheExpiredConfig API +func CreateModifyFileCacheExpiredConfigRequest() (request *ModifyFileCacheExpiredConfigRequest) { + request = &ModifyFileCacheExpiredConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "ModifyFileCacheExpiredConfig", "", "") + return +} + +// CreateModifyFileCacheExpiredConfigResponse creates a response to parse from ModifyFileCacheExpiredConfig response +func CreateModifyFileCacheExpiredConfigResponse() (response *ModifyFileCacheExpiredConfigResponse) { + response = &ModifyFileCacheExpiredConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_http_header_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_http_header_config.go new file mode 100644 index 0000000..3112e52 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_http_header_config.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyHttpHeaderConfig invokes the cdn.ModifyHttpHeaderConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/modifyhttpheaderconfig.html +func (client *Client) ModifyHttpHeaderConfig(request *ModifyHttpHeaderConfigRequest) (response *ModifyHttpHeaderConfigResponse, err error) { + response = CreateModifyHttpHeaderConfigResponse() + err = client.DoAction(request, response) + return +} + +// ModifyHttpHeaderConfigWithChan invokes the cdn.ModifyHttpHeaderConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/modifyhttpheaderconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyHttpHeaderConfigWithChan(request *ModifyHttpHeaderConfigRequest) (<-chan *ModifyHttpHeaderConfigResponse, <-chan error) { + responseChan := make(chan *ModifyHttpHeaderConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyHttpHeaderConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyHttpHeaderConfigWithCallback invokes the cdn.ModifyHttpHeaderConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/modifyhttpheaderconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyHttpHeaderConfigWithCallback(request *ModifyHttpHeaderConfigRequest, callback func(response *ModifyHttpHeaderConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyHttpHeaderConfigResponse + var err error + defer close(result) + response, err = client.ModifyHttpHeaderConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyHttpHeaderConfigRequest is the request struct for api ModifyHttpHeaderConfig +type ModifyHttpHeaderConfigRequest struct { + *requests.RpcRequest + HeaderValue string `position:"Query" name:"HeaderValue"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ConfigID string `position:"Query" name:"ConfigID"` + DomainName string `position:"Query" name:"DomainName"` + HeaderKey string `position:"Query" name:"HeaderKey"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyHttpHeaderConfigResponse is the response struct for api ModifyHttpHeaderConfig +type ModifyHttpHeaderConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyHttpHeaderConfigRequest creates a request to invoke ModifyHttpHeaderConfig API +func CreateModifyHttpHeaderConfigRequest() (request *ModifyHttpHeaderConfigRequest) { + request = &ModifyHttpHeaderConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "ModifyHttpHeaderConfig", "", "") + return +} + +// CreateModifyHttpHeaderConfigResponse creates a response to parse from ModifyHttpHeaderConfig response +func CreateModifyHttpHeaderConfigResponse() (response *ModifyHttpHeaderConfigResponse) { + response = &ModifyHttpHeaderConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_user_custom_log_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_user_custom_log_config.go new file mode 100644 index 0000000..8d539c8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/modify_user_custom_log_config.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyUserCustomLogConfig invokes the cdn.ModifyUserCustomLogConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/modifyusercustomlogconfig.html +func (client *Client) ModifyUserCustomLogConfig(request *ModifyUserCustomLogConfigRequest) (response *ModifyUserCustomLogConfigResponse, err error) { + response = CreateModifyUserCustomLogConfigResponse() + err = client.DoAction(request, response) + return +} + +// ModifyUserCustomLogConfigWithChan invokes the cdn.ModifyUserCustomLogConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/modifyusercustomlogconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyUserCustomLogConfigWithChan(request *ModifyUserCustomLogConfigRequest) (<-chan *ModifyUserCustomLogConfigResponse, <-chan error) { + responseChan := make(chan *ModifyUserCustomLogConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyUserCustomLogConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyUserCustomLogConfigWithCallback invokes the cdn.ModifyUserCustomLogConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/modifyusercustomlogconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyUserCustomLogConfigWithCallback(request *ModifyUserCustomLogConfigRequest, callback func(response *ModifyUserCustomLogConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyUserCustomLogConfigResponse + var err error + defer close(result) + response, err = client.ModifyUserCustomLogConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyUserCustomLogConfigRequest is the request struct for api ModifyUserCustomLogConfig +type ModifyUserCustomLogConfigRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Version string `position:"Query" name:"Version"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ConfigId string `position:"Query" name:"ConfigId"` + Tag string `position:"Query" name:"Tag"` +} + +// ModifyUserCustomLogConfigResponse is the response struct for api ModifyUserCustomLogConfig +type ModifyUserCustomLogConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyUserCustomLogConfigRequest creates a request to invoke ModifyUserCustomLogConfig API +func CreateModifyUserCustomLogConfigRequest() (request *ModifyUserCustomLogConfigRequest) { + request = &ModifyUserCustomLogConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "ModifyUserCustomLogConfig", "", "") + return +} + +// CreateModifyUserCustomLogConfigResponse creates a response to parse from ModifyUserCustomLogConfig response +func CreateModifyUserCustomLogConfigResponse() (response *ModifyUserCustomLogConfigResponse) { + response = &ModifyUserCustomLogConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/open_cdn_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/open_cdn_service.go new file mode 100644 index 0000000..711a2cf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/open_cdn_service.go @@ -0,0 +1,105 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// OpenCdnService invokes the cdn.OpenCdnService API synchronously +// api document: https://help.aliyun.com/api/cdn/opencdnservice.html +func (client *Client) OpenCdnService(request *OpenCdnServiceRequest) (response *OpenCdnServiceResponse, err error) { + response = CreateOpenCdnServiceResponse() + err = client.DoAction(request, response) + return +} + +// OpenCdnServiceWithChan invokes the cdn.OpenCdnService API asynchronously +// api document: https://help.aliyun.com/api/cdn/opencdnservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) OpenCdnServiceWithChan(request *OpenCdnServiceRequest) (<-chan *OpenCdnServiceResponse, <-chan error) { + responseChan := make(chan *OpenCdnServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.OpenCdnService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// OpenCdnServiceWithCallback invokes the cdn.OpenCdnService API asynchronously +// api document: https://help.aliyun.com/api/cdn/opencdnservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) OpenCdnServiceWithCallback(request *OpenCdnServiceRequest, callback func(response *OpenCdnServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *OpenCdnServiceResponse + var err error + defer close(result) + response, err = client.OpenCdnService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// OpenCdnServiceRequest is the request struct for api OpenCdnService +type OpenCdnServiceRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// OpenCdnServiceResponse is the response struct for api OpenCdnService +type OpenCdnServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateOpenCdnServiceRequest creates a request to invoke OpenCdnService API +func CreateOpenCdnServiceRequest() (request *OpenCdnServiceRequest) { + request = &OpenCdnServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "OpenCdnService", "", "") + return +} + +// CreateOpenCdnServiceResponse creates a response to parse from OpenCdnService response +func CreateOpenCdnServiceResponse() (response *OpenCdnServiceResponse) { + response = &OpenCdnServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/push_object_cache.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/push_object_cache.go new file mode 100644 index 0000000..e91b503 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/push_object_cache.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PushObjectCache invokes the cdn.PushObjectCache API synchronously +// api document: https://help.aliyun.com/api/cdn/pushobjectcache.html +func (client *Client) PushObjectCache(request *PushObjectCacheRequest) (response *PushObjectCacheResponse, err error) { + response = CreatePushObjectCacheResponse() + err = client.DoAction(request, response) + return +} + +// PushObjectCacheWithChan invokes the cdn.PushObjectCache API asynchronously +// api document: https://help.aliyun.com/api/cdn/pushobjectcache.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PushObjectCacheWithChan(request *PushObjectCacheRequest) (<-chan *PushObjectCacheResponse, <-chan error) { + responseChan := make(chan *PushObjectCacheResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PushObjectCache(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PushObjectCacheWithCallback invokes the cdn.PushObjectCache API asynchronously +// api document: https://help.aliyun.com/api/cdn/pushobjectcache.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PushObjectCacheWithCallback(request *PushObjectCacheRequest, callback func(response *PushObjectCacheResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PushObjectCacheResponse + var err error + defer close(result) + response, err = client.PushObjectCache(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PushObjectCacheRequest is the request struct for api PushObjectCache +type PushObjectCacheRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + ObjectPath string `position:"Query" name:"ObjectPath"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// PushObjectCacheResponse is the response struct for api PushObjectCache +type PushObjectCacheResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PushTaskId string `json:"PushTaskId" xml:"PushTaskId"` +} + +// CreatePushObjectCacheRequest creates a request to invoke PushObjectCache API +func CreatePushObjectCacheRequest() (request *PushObjectCacheRequest) { + request = &PushObjectCacheRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "PushObjectCache", "", "") + return +} + +// CreatePushObjectCacheResponse creates a response to parse from PushObjectCache response +func CreatePushObjectCacheResponse() (response *PushObjectCacheResponse) { + response = &PushObjectCacheResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/refresh_object_caches.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/refresh_object_caches.go new file mode 100644 index 0000000..e2d2fda --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/refresh_object_caches.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RefreshObjectCaches invokes the cdn.RefreshObjectCaches API synchronously +// api document: https://help.aliyun.com/api/cdn/refreshobjectcaches.html +func (client *Client) RefreshObjectCaches(request *RefreshObjectCachesRequest) (response *RefreshObjectCachesResponse, err error) { + response = CreateRefreshObjectCachesResponse() + err = client.DoAction(request, response) + return +} + +// RefreshObjectCachesWithChan invokes the cdn.RefreshObjectCaches API asynchronously +// api document: https://help.aliyun.com/api/cdn/refreshobjectcaches.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RefreshObjectCachesWithChan(request *RefreshObjectCachesRequest) (<-chan *RefreshObjectCachesResponse, <-chan error) { + responseChan := make(chan *RefreshObjectCachesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RefreshObjectCaches(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RefreshObjectCachesWithCallback invokes the cdn.RefreshObjectCaches API asynchronously +// api document: https://help.aliyun.com/api/cdn/refreshobjectcaches.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RefreshObjectCachesWithCallback(request *RefreshObjectCachesRequest, callback func(response *RefreshObjectCachesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RefreshObjectCachesResponse + var err error + defer close(result) + response, err = client.RefreshObjectCaches(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RefreshObjectCachesRequest is the request struct for api RefreshObjectCaches +type RefreshObjectCachesRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + ObjectPath string `position:"Query" name:"ObjectPath"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ObjectType string `position:"Query" name:"ObjectType"` +} + +// RefreshObjectCachesResponse is the response struct for api RefreshObjectCaches +type RefreshObjectCachesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RefreshTaskId string `json:"RefreshTaskId" xml:"RefreshTaskId"` +} + +// CreateRefreshObjectCachesRequest creates a request to invoke RefreshObjectCaches API +func CreateRefreshObjectCachesRequest() (request *RefreshObjectCachesRequest) { + request = &RefreshObjectCachesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "RefreshObjectCaches", "", "") + return +} + +// CreateRefreshObjectCachesResponse creates a response to parse from RefreshObjectCaches response +func CreateRefreshObjectCachesResponse() (response *RefreshObjectCachesResponse) { + response = &RefreshObjectCachesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/resume_live_stream.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/resume_live_stream.go new file mode 100644 index 0000000..506f62c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/resume_live_stream.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ResumeLiveStream invokes the cdn.ResumeLiveStream API synchronously +// api document: https://help.aliyun.com/api/cdn/resumelivestream.html +func (client *Client) ResumeLiveStream(request *ResumeLiveStreamRequest) (response *ResumeLiveStreamResponse, err error) { + response = CreateResumeLiveStreamResponse() + err = client.DoAction(request, response) + return +} + +// ResumeLiveStreamWithChan invokes the cdn.ResumeLiveStream API asynchronously +// api document: https://help.aliyun.com/api/cdn/resumelivestream.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResumeLiveStreamWithChan(request *ResumeLiveStreamRequest) (<-chan *ResumeLiveStreamResponse, <-chan error) { + responseChan := make(chan *ResumeLiveStreamResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ResumeLiveStream(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ResumeLiveStreamWithCallback invokes the cdn.ResumeLiveStream API asynchronously +// api document: https://help.aliyun.com/api/cdn/resumelivestream.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResumeLiveStreamWithCallback(request *ResumeLiveStreamRequest, callback func(response *ResumeLiveStreamResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ResumeLiveStreamResponse + var err error + defer close(result) + response, err = client.ResumeLiveStream(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ResumeLiveStreamRequest is the request struct for api ResumeLiveStream +type ResumeLiveStreamRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + LiveStreamType string `position:"Query" name:"LiveStreamType"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// ResumeLiveStreamResponse is the response struct for api ResumeLiveStream +type ResumeLiveStreamResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateResumeLiveStreamRequest creates a request to invoke ResumeLiveStream API +func CreateResumeLiveStreamRequest() (request *ResumeLiveStreamRequest) { + request = &ResumeLiveStreamRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "ResumeLiveStream", "", "") + return +} + +// CreateResumeLiveStreamResponse creates a response to parse from ResumeLiveStream response +func CreateResumeLiveStreamResponse() (response *ResumeLiveStreamResponse) { + response = &ResumeLiveStreamResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_cc_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_cc_config.go new file mode 100644 index 0000000..5db8c38 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_cc_config.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetCcConfig invokes the cdn.SetCcConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setccconfig.html +func (client *Client) SetCcConfig(request *SetCcConfigRequest) (response *SetCcConfigResponse, err error) { + response = CreateSetCcConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetCcConfigWithChan invokes the cdn.SetCcConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setccconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetCcConfigWithChan(request *SetCcConfigRequest) (<-chan *SetCcConfigResponse, <-chan error) { + responseChan := make(chan *SetCcConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetCcConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetCcConfigWithCallback invokes the cdn.SetCcConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setccconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetCcConfigWithCallback(request *SetCcConfigRequest, callback func(response *SetCcConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetCcConfigResponse + var err error + defer close(result) + response, err = client.SetCcConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetCcConfigRequest is the request struct for api SetCcConfig +type SetCcConfigRequest struct { + *requests.RpcRequest + AllowIps string `position:"Query" name:"AllowIps"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + BlockIps string `position:"Query" name:"BlockIps"` +} + +// SetCcConfigResponse is the response struct for api SetCcConfig +type SetCcConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetCcConfigRequest creates a request to invoke SetCcConfig API +func CreateSetCcConfigRequest() (request *SetCcConfigRequest) { + request = &SetCcConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetCcConfig", "", "") + return +} + +// CreateSetCcConfigResponse creates a response to parse from SetCcConfig response +func CreateSetCcConfigResponse() (response *SetCcConfigResponse) { + response = &SetCcConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_domain_server_certificate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_domain_server_certificate.go new file mode 100644 index 0000000..bd11095 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_domain_server_certificate.go @@ -0,0 +1,111 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetDomainServerCertificate invokes the cdn.SetDomainServerCertificate API synchronously +// api document: https://help.aliyun.com/api/cdn/setdomainservercertificate.html +func (client *Client) SetDomainServerCertificate(request *SetDomainServerCertificateRequest) (response *SetDomainServerCertificateResponse, err error) { + response = CreateSetDomainServerCertificateResponse() + err = client.DoAction(request, response) + return +} + +// SetDomainServerCertificateWithChan invokes the cdn.SetDomainServerCertificate API asynchronously +// api document: https://help.aliyun.com/api/cdn/setdomainservercertificate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetDomainServerCertificateWithChan(request *SetDomainServerCertificateRequest) (<-chan *SetDomainServerCertificateResponse, <-chan error) { + responseChan := make(chan *SetDomainServerCertificateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetDomainServerCertificate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetDomainServerCertificateWithCallback invokes the cdn.SetDomainServerCertificate API asynchronously +// api document: https://help.aliyun.com/api/cdn/setdomainservercertificate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetDomainServerCertificateWithCallback(request *SetDomainServerCertificateRequest, callback func(response *SetDomainServerCertificateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetDomainServerCertificateResponse + var err error + defer close(result) + response, err = client.SetDomainServerCertificate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetDomainServerCertificateRequest is the request struct for api SetDomainServerCertificate +type SetDomainServerCertificateRequest struct { + *requests.RpcRequest + PrivateKey string `position:"Query" name:"PrivateKey"` + ServerCertificateStatus string `position:"Query" name:"ServerCertificateStatus"` + ServerCertificate string `position:"Query" name:"ServerCertificate"` + SecurityToken string `position:"Query" name:"SecurityToken"` + CertType string `position:"Query" name:"CertType"` + CertName string `position:"Query" name:"CertName"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Region string `position:"Query" name:"Region"` +} + +// SetDomainServerCertificateResponse is the response struct for api SetDomainServerCertificate +type SetDomainServerCertificateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetDomainServerCertificateRequest creates a request to invoke SetDomainServerCertificate API +func CreateSetDomainServerCertificateRequest() (request *SetDomainServerCertificateRequest) { + request = &SetDomainServerCertificateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetDomainServerCertificate", "", "") + return +} + +// CreateSetDomainServerCertificateResponse creates a response to parse from SetDomainServerCertificate response +func CreateSetDomainServerCertificateResponse() (response *SetDomainServerCertificateResponse) { + response = &SetDomainServerCertificateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_dynamic_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_dynamic_config.go new file mode 100644 index 0000000..fbe6651 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_dynamic_config.go @@ -0,0 +1,110 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetDynamicConfig invokes the cdn.SetDynamicConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setdynamicconfig.html +func (client *Client) SetDynamicConfig(request *SetDynamicConfigRequest) (response *SetDynamicConfigResponse, err error) { + response = CreateSetDynamicConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetDynamicConfigWithChan invokes the cdn.SetDynamicConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setdynamicconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetDynamicConfigWithChan(request *SetDynamicConfigRequest) (<-chan *SetDynamicConfigResponse, <-chan error) { + responseChan := make(chan *SetDynamicConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetDynamicConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetDynamicConfigWithCallback invokes the cdn.SetDynamicConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setdynamicconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetDynamicConfigWithCallback(request *SetDynamicConfigRequest, callback func(response *SetDynamicConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetDynamicConfigResponse + var err error + defer close(result) + response, err = client.SetDynamicConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetDynamicConfigRequest is the request struct for api SetDynamicConfig +type SetDynamicConfigRequest struct { + *requests.RpcRequest + DynamicOrigin string `position:"Query" name:"DynamicOrigin"` + StaticType string `position:"Query" name:"StaticType"` + SecurityToken string `position:"Query" name:"SecurityToken"` + StaticUri string `position:"Query" name:"StaticUri"` + DomainName string `position:"Query" name:"DomainName"` + StaticPath string `position:"Query" name:"StaticPath"` + DynamicCacheControl string `position:"Query" name:"DynamicCacheControl"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetDynamicConfigResponse is the response struct for api SetDynamicConfig +type SetDynamicConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetDynamicConfigRequest creates a request to invoke SetDynamicConfig API +func CreateSetDynamicConfigRequest() (request *SetDynamicConfigRequest) { + request = &SetDynamicConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetDynamicConfig", "", "") + return +} + +// CreateSetDynamicConfigResponse creates a response to parse from SetDynamicConfig response +func CreateSetDynamicConfigResponse() (response *SetDynamicConfigResponse) { + response = &SetDynamicConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_error_page_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_error_page_config.go new file mode 100644 index 0000000..3448c55 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_error_page_config.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetErrorPageConfig invokes the cdn.SetErrorPageConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/seterrorpageconfig.html +func (client *Client) SetErrorPageConfig(request *SetErrorPageConfigRequest) (response *SetErrorPageConfigResponse, err error) { + response = CreateSetErrorPageConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetErrorPageConfigWithChan invokes the cdn.SetErrorPageConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/seterrorpageconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetErrorPageConfigWithChan(request *SetErrorPageConfigRequest) (<-chan *SetErrorPageConfigResponse, <-chan error) { + responseChan := make(chan *SetErrorPageConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetErrorPageConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetErrorPageConfigWithCallback invokes the cdn.SetErrorPageConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/seterrorpageconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetErrorPageConfigWithCallback(request *SetErrorPageConfigRequest, callback func(response *SetErrorPageConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetErrorPageConfigResponse + var err error + defer close(result) + response, err = client.SetErrorPageConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetErrorPageConfigRequest is the request struct for api SetErrorPageConfig +type SetErrorPageConfigRequest struct { + *requests.RpcRequest + PageType string `position:"Query" name:"PageType"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + CustomPageUrl string `position:"Query" name:"CustomPageUrl"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetErrorPageConfigResponse is the response struct for api SetErrorPageConfig +type SetErrorPageConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetErrorPageConfigRequest creates a request to invoke SetErrorPageConfig API +func CreateSetErrorPageConfigRequest() (request *SetErrorPageConfigRequest) { + request = &SetErrorPageConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetErrorPageConfig", "", "") + return +} + +// CreateSetErrorPageConfigResponse creates a response to parse from SetErrorPageConfig response +func CreateSetErrorPageConfigResponse() (response *SetErrorPageConfigResponse) { + response = &SetErrorPageConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_file_cache_expired_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_file_cache_expired_config.go new file mode 100644 index 0000000..c0d0e42 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_file_cache_expired_config.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetFileCacheExpiredConfig invokes the cdn.SetFileCacheExpiredConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setfilecacheexpiredconfig.html +func (client *Client) SetFileCacheExpiredConfig(request *SetFileCacheExpiredConfigRequest) (response *SetFileCacheExpiredConfigResponse, err error) { + response = CreateSetFileCacheExpiredConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetFileCacheExpiredConfigWithChan invokes the cdn.SetFileCacheExpiredConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setfilecacheexpiredconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetFileCacheExpiredConfigWithChan(request *SetFileCacheExpiredConfigRequest) (<-chan *SetFileCacheExpiredConfigResponse, <-chan error) { + responseChan := make(chan *SetFileCacheExpiredConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetFileCacheExpiredConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetFileCacheExpiredConfigWithCallback invokes the cdn.SetFileCacheExpiredConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setfilecacheexpiredconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetFileCacheExpiredConfigWithCallback(request *SetFileCacheExpiredConfigRequest, callback func(response *SetFileCacheExpiredConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetFileCacheExpiredConfigResponse + var err error + defer close(result) + response, err = client.SetFileCacheExpiredConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetFileCacheExpiredConfigRequest is the request struct for api SetFileCacheExpiredConfig +type SetFileCacheExpiredConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + Weight string `position:"Query" name:"Weight"` + CacheContent string `position:"Query" name:"CacheContent"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + TTL string `position:"Query" name:"TTL"` +} + +// SetFileCacheExpiredConfigResponse is the response struct for api SetFileCacheExpiredConfig +type SetFileCacheExpiredConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetFileCacheExpiredConfigRequest creates a request to invoke SetFileCacheExpiredConfig API +func CreateSetFileCacheExpiredConfigRequest() (request *SetFileCacheExpiredConfigRequest) { + request = &SetFileCacheExpiredConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetFileCacheExpiredConfig", "", "") + return +} + +// CreateSetFileCacheExpiredConfigResponse creates a response to parse from SetFileCacheExpiredConfig response +func CreateSetFileCacheExpiredConfigResponse() (response *SetFileCacheExpiredConfigResponse) { + response = &SetFileCacheExpiredConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_file_type_force_ttl_code_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_file_type_force_ttl_code_config.go new file mode 100644 index 0000000..87da625 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_file_type_force_ttl_code_config.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetFileTypeForceTtlCodeConfig invokes the cdn.SetFileTypeForceTtlCodeConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setfiletypeforcettlcodeconfig.html +func (client *Client) SetFileTypeForceTtlCodeConfig(request *SetFileTypeForceTtlCodeConfigRequest) (response *SetFileTypeForceTtlCodeConfigResponse, err error) { + response = CreateSetFileTypeForceTtlCodeConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetFileTypeForceTtlCodeConfigWithChan invokes the cdn.SetFileTypeForceTtlCodeConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setfiletypeforcettlcodeconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetFileTypeForceTtlCodeConfigWithChan(request *SetFileTypeForceTtlCodeConfigRequest) (<-chan *SetFileTypeForceTtlCodeConfigResponse, <-chan error) { + responseChan := make(chan *SetFileTypeForceTtlCodeConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetFileTypeForceTtlCodeConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetFileTypeForceTtlCodeConfigWithCallback invokes the cdn.SetFileTypeForceTtlCodeConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setfiletypeforcettlcodeconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetFileTypeForceTtlCodeConfigWithCallback(request *SetFileTypeForceTtlCodeConfigRequest, callback func(response *SetFileTypeForceTtlCodeConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetFileTypeForceTtlCodeConfigResponse + var err error + defer close(result) + response, err = client.SetFileTypeForceTtlCodeConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetFileTypeForceTtlCodeConfigRequest is the request struct for api SetFileTypeForceTtlCodeConfig +type SetFileTypeForceTtlCodeConfigRequest struct { + *requests.RpcRequest + FileType string `position:"Query" name:"FileType"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Version string `position:"Query" name:"Version"` + CodeString string `position:"Query" name:"CodeString"` + SecurityToken string `position:"Query" name:"SecurityToken"` +} + +// SetFileTypeForceTtlCodeConfigResponse is the response struct for api SetFileTypeForceTtlCodeConfig +type SetFileTypeForceTtlCodeConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetFileTypeForceTtlCodeConfigRequest creates a request to invoke SetFileTypeForceTtlCodeConfig API +func CreateSetFileTypeForceTtlCodeConfigRequest() (request *SetFileTypeForceTtlCodeConfigRequest) { + request = &SetFileTypeForceTtlCodeConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetFileTypeForceTtlCodeConfig", "", "") + return +} + +// CreateSetFileTypeForceTtlCodeConfigResponse creates a response to parse from SetFileTypeForceTtlCodeConfig response +func CreateSetFileTypeForceTtlCodeConfigResponse() (response *SetFileTypeForceTtlCodeConfigResponse) { + response = &SetFileTypeForceTtlCodeConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_force_redirect_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_force_redirect_config.go new file mode 100644 index 0000000..cca5d6e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_force_redirect_config.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetForceRedirectConfig invokes the cdn.SetForceRedirectConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setforceredirectconfig.html +func (client *Client) SetForceRedirectConfig(request *SetForceRedirectConfigRequest) (response *SetForceRedirectConfigResponse, err error) { + response = CreateSetForceRedirectConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetForceRedirectConfigWithChan invokes the cdn.SetForceRedirectConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setforceredirectconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetForceRedirectConfigWithChan(request *SetForceRedirectConfigRequest) (<-chan *SetForceRedirectConfigResponse, <-chan error) { + responseChan := make(chan *SetForceRedirectConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetForceRedirectConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetForceRedirectConfigWithCallback invokes the cdn.SetForceRedirectConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setforceredirectconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetForceRedirectConfigWithCallback(request *SetForceRedirectConfigRequest, callback func(response *SetForceRedirectConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetForceRedirectConfigResponse + var err error + defer close(result) + response, err = client.SetForceRedirectConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetForceRedirectConfigRequest is the request struct for api SetForceRedirectConfig +type SetForceRedirectConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + RedirectType string `position:"Query" name:"RedirectType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetForceRedirectConfigResponse is the response struct for api SetForceRedirectConfig +type SetForceRedirectConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetForceRedirectConfigRequest creates a request to invoke SetForceRedirectConfig API +func CreateSetForceRedirectConfigRequest() (request *SetForceRedirectConfigRequest) { + request = &SetForceRedirectConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetForceRedirectConfig", "", "") + return +} + +// CreateSetForceRedirectConfigResponse creates a response to parse from SetForceRedirectConfig response +func CreateSetForceRedirectConfigResponse() (response *SetForceRedirectConfigResponse) { + response = &SetForceRedirectConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_forward_scheme_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_forward_scheme_config.go new file mode 100644 index 0000000..8f215ae --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_forward_scheme_config.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetForwardSchemeConfig invokes the cdn.SetForwardSchemeConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setforwardschemeconfig.html +func (client *Client) SetForwardSchemeConfig(request *SetForwardSchemeConfigRequest) (response *SetForwardSchemeConfigResponse, err error) { + response = CreateSetForwardSchemeConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetForwardSchemeConfigWithChan invokes the cdn.SetForwardSchemeConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setforwardschemeconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetForwardSchemeConfigWithChan(request *SetForwardSchemeConfigRequest) (<-chan *SetForwardSchemeConfigResponse, <-chan error) { + responseChan := make(chan *SetForwardSchemeConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetForwardSchemeConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetForwardSchemeConfigWithCallback invokes the cdn.SetForwardSchemeConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setforwardschemeconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetForwardSchemeConfigWithCallback(request *SetForwardSchemeConfigRequest, callback func(response *SetForwardSchemeConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetForwardSchemeConfigResponse + var err error + defer close(result) + response, err = client.SetForwardSchemeConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetForwardSchemeConfigRequest is the request struct for api SetForwardSchemeConfig +type SetForwardSchemeConfigRequest struct { + *requests.RpcRequest + SchemeOrigin string `position:"Query" name:"SchemeOrigin"` + SchemeOriginPort string `position:"Query" name:"SchemeOriginPort"` + SecurityToken string `position:"Query" name:"SecurityToken"` + Enable string `position:"Query" name:"Enable"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetForwardSchemeConfigResponse is the response struct for api SetForwardSchemeConfig +type SetForwardSchemeConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetForwardSchemeConfigRequest creates a request to invoke SetForwardSchemeConfig API +func CreateSetForwardSchemeConfigRequest() (request *SetForwardSchemeConfigRequest) { + request = &SetForwardSchemeConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetForwardSchemeConfig", "", "") + return +} + +// CreateSetForwardSchemeConfigResponse creates a response to parse from SetForwardSchemeConfig response +func CreateSetForwardSchemeConfigResponse() (response *SetForwardSchemeConfigResponse) { + response = &SetForwardSchemeConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_http_error_page_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_http_error_page_config.go new file mode 100644 index 0000000..b4cfda0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_http_error_page_config.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetHttpErrorPageConfig invokes the cdn.SetHttpErrorPageConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/sethttperrorpageconfig.html +func (client *Client) SetHttpErrorPageConfig(request *SetHttpErrorPageConfigRequest) (response *SetHttpErrorPageConfigResponse, err error) { + response = CreateSetHttpErrorPageConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetHttpErrorPageConfigWithChan invokes the cdn.SetHttpErrorPageConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/sethttperrorpageconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetHttpErrorPageConfigWithChan(request *SetHttpErrorPageConfigRequest) (<-chan *SetHttpErrorPageConfigResponse, <-chan error) { + responseChan := make(chan *SetHttpErrorPageConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetHttpErrorPageConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetHttpErrorPageConfigWithCallback invokes the cdn.SetHttpErrorPageConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/sethttperrorpageconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetHttpErrorPageConfigWithCallback(request *SetHttpErrorPageConfigRequest, callback func(response *SetHttpErrorPageConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetHttpErrorPageConfigResponse + var err error + defer close(result) + response, err = client.SetHttpErrorPageConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetHttpErrorPageConfigRequest is the request struct for api SetHttpErrorPageConfig +type SetHttpErrorPageConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + PageUrl string `position:"Query" name:"PageUrl"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ErrorCode string `position:"Query" name:"ErrorCode"` +} + +// SetHttpErrorPageConfigResponse is the response struct for api SetHttpErrorPageConfig +type SetHttpErrorPageConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetHttpErrorPageConfigRequest creates a request to invoke SetHttpErrorPageConfig API +func CreateSetHttpErrorPageConfigRequest() (request *SetHttpErrorPageConfigRequest) { + request = &SetHttpErrorPageConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetHttpErrorPageConfig", "", "") + return +} + +// CreateSetHttpErrorPageConfigResponse creates a response to parse from SetHttpErrorPageConfig response +func CreateSetHttpErrorPageConfigResponse() (response *SetHttpErrorPageConfigResponse) { + response = &SetHttpErrorPageConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_http_header_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_http_header_config.go new file mode 100644 index 0000000..f8a666d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_http_header_config.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetHttpHeaderConfig invokes the cdn.SetHttpHeaderConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/sethttpheaderconfig.html +func (client *Client) SetHttpHeaderConfig(request *SetHttpHeaderConfigRequest) (response *SetHttpHeaderConfigResponse, err error) { + response = CreateSetHttpHeaderConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetHttpHeaderConfigWithChan invokes the cdn.SetHttpHeaderConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/sethttpheaderconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetHttpHeaderConfigWithChan(request *SetHttpHeaderConfigRequest) (<-chan *SetHttpHeaderConfigResponse, <-chan error) { + responseChan := make(chan *SetHttpHeaderConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetHttpHeaderConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetHttpHeaderConfigWithCallback invokes the cdn.SetHttpHeaderConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/sethttpheaderconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetHttpHeaderConfigWithCallback(request *SetHttpHeaderConfigRequest, callback func(response *SetHttpHeaderConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetHttpHeaderConfigResponse + var err error + defer close(result) + response, err = client.SetHttpHeaderConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetHttpHeaderConfigRequest is the request struct for api SetHttpHeaderConfig +type SetHttpHeaderConfigRequest struct { + *requests.RpcRequest + HeaderValue string `position:"Query" name:"HeaderValue"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ConfigId requests.Integer `position:"Query" name:"ConfigId"` + DomainName string `position:"Query" name:"DomainName"` + HeaderKey string `position:"Query" name:"HeaderKey"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetHttpHeaderConfigResponse is the response struct for api SetHttpHeaderConfig +type SetHttpHeaderConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetHttpHeaderConfigRequest creates a request to invoke SetHttpHeaderConfig API +func CreateSetHttpHeaderConfigRequest() (request *SetHttpHeaderConfigRequest) { + request = &SetHttpHeaderConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetHttpHeaderConfig", "", "") + return +} + +// CreateSetHttpHeaderConfigResponse creates a response to parse from SetHttpHeaderConfig response +func CreateSetHttpHeaderConfigResponse() (response *SetHttpHeaderConfigResponse) { + response = &SetHttpHeaderConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_https_option_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_https_option_config.go new file mode 100644 index 0000000..d9832e8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_https_option_config.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetHttpsOptionConfig invokes the cdn.SetHttpsOptionConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/sethttpsoptionconfig.html +func (client *Client) SetHttpsOptionConfig(request *SetHttpsOptionConfigRequest) (response *SetHttpsOptionConfigResponse, err error) { + response = CreateSetHttpsOptionConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetHttpsOptionConfigWithChan invokes the cdn.SetHttpsOptionConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/sethttpsoptionconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetHttpsOptionConfigWithChan(request *SetHttpsOptionConfigRequest) (<-chan *SetHttpsOptionConfigResponse, <-chan error) { + responseChan := make(chan *SetHttpsOptionConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetHttpsOptionConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetHttpsOptionConfigWithCallback invokes the cdn.SetHttpsOptionConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/sethttpsoptionconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetHttpsOptionConfigWithCallback(request *SetHttpsOptionConfigRequest, callback func(response *SetHttpsOptionConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetHttpsOptionConfigResponse + var err error + defer close(result) + response, err = client.SetHttpsOptionConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetHttpsOptionConfigRequest is the request struct for api SetHttpsOptionConfig +type SetHttpsOptionConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + Http2 string `position:"Query" name:"Http2"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetHttpsOptionConfigResponse is the response struct for api SetHttpsOptionConfig +type SetHttpsOptionConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetHttpsOptionConfigRequest creates a request to invoke SetHttpsOptionConfig API +func CreateSetHttpsOptionConfigRequest() (request *SetHttpsOptionConfigRequest) { + request = &SetHttpsOptionConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetHttpsOptionConfig", "", "") + return +} + +// CreateSetHttpsOptionConfigResponse creates a response to parse from SetHttpsOptionConfig response +func CreateSetHttpsOptionConfigResponse() (response *SetHttpsOptionConfigResponse) { + response = &SetHttpsOptionConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_ignore_query_string_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_ignore_query_string_config.go new file mode 100644 index 0000000..63766ef --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_ignore_query_string_config.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetIgnoreQueryStringConfig invokes the cdn.SetIgnoreQueryStringConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setignorequerystringconfig.html +func (client *Client) SetIgnoreQueryStringConfig(request *SetIgnoreQueryStringConfigRequest) (response *SetIgnoreQueryStringConfigResponse, err error) { + response = CreateSetIgnoreQueryStringConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetIgnoreQueryStringConfigWithChan invokes the cdn.SetIgnoreQueryStringConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setignorequerystringconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetIgnoreQueryStringConfigWithChan(request *SetIgnoreQueryStringConfigRequest) (<-chan *SetIgnoreQueryStringConfigResponse, <-chan error) { + responseChan := make(chan *SetIgnoreQueryStringConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetIgnoreQueryStringConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetIgnoreQueryStringConfigWithCallback invokes the cdn.SetIgnoreQueryStringConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setignorequerystringconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetIgnoreQueryStringConfigWithCallback(request *SetIgnoreQueryStringConfigRequest, callback func(response *SetIgnoreQueryStringConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetIgnoreQueryStringConfigResponse + var err error + defer close(result) + response, err = client.SetIgnoreQueryStringConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetIgnoreQueryStringConfigRequest is the request struct for api SetIgnoreQueryStringConfig +type SetIgnoreQueryStringConfigRequest struct { + *requests.RpcRequest + KeepOssArgs string `position:"Query" name:"KeepOssArgs"` + HashKeyArgs string `position:"Query" name:"HashKeyArgs"` + SecurityToken string `position:"Query" name:"SecurityToken"` + Enable string `position:"Query" name:"Enable"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetIgnoreQueryStringConfigResponse is the response struct for api SetIgnoreQueryStringConfig +type SetIgnoreQueryStringConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetIgnoreQueryStringConfigRequest creates a request to invoke SetIgnoreQueryStringConfig API +func CreateSetIgnoreQueryStringConfigRequest() (request *SetIgnoreQueryStringConfigRequest) { + request = &SetIgnoreQueryStringConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetIgnoreQueryStringConfig", "", "") + return +} + +// CreateSetIgnoreQueryStringConfigResponse creates a response to parse from SetIgnoreQueryStringConfig response +func CreateSetIgnoreQueryStringConfigResponse() (response *SetIgnoreQueryStringConfigResponse) { + response = &SetIgnoreQueryStringConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_ip_allow_list_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_ip_allow_list_config.go new file mode 100644 index 0000000..ac160da --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_ip_allow_list_config.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetIpAllowListConfig invokes the cdn.SetIpAllowListConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setipallowlistconfig.html +func (client *Client) SetIpAllowListConfig(request *SetIpAllowListConfigRequest) (response *SetIpAllowListConfigResponse, err error) { + response = CreateSetIpAllowListConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetIpAllowListConfigWithChan invokes the cdn.SetIpAllowListConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setipallowlistconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetIpAllowListConfigWithChan(request *SetIpAllowListConfigRequest) (<-chan *SetIpAllowListConfigResponse, <-chan error) { + responseChan := make(chan *SetIpAllowListConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetIpAllowListConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetIpAllowListConfigWithCallback invokes the cdn.SetIpAllowListConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setipallowlistconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetIpAllowListConfigWithCallback(request *SetIpAllowListConfigRequest, callback func(response *SetIpAllowListConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetIpAllowListConfigResponse + var err error + defer close(result) + response, err = client.SetIpAllowListConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetIpAllowListConfigRequest is the request struct for api SetIpAllowListConfig +type SetIpAllowListConfigRequest struct { + *requests.RpcRequest + AllowIps string `position:"Query" name:"AllowIps"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetIpAllowListConfigResponse is the response struct for api SetIpAllowListConfig +type SetIpAllowListConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetIpAllowListConfigRequest creates a request to invoke SetIpAllowListConfig API +func CreateSetIpAllowListConfigRequest() (request *SetIpAllowListConfigRequest) { + request = &SetIpAllowListConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetIpAllowListConfig", "", "") + return +} + +// CreateSetIpAllowListConfigResponse creates a response to parse from SetIpAllowListConfig response +func CreateSetIpAllowListConfigResponse() (response *SetIpAllowListConfigResponse) { + response = &SetIpAllowListConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_ip_black_list_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_ip_black_list_config.go new file mode 100644 index 0000000..1028c52 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_ip_black_list_config.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetIpBlackListConfig invokes the cdn.SetIpBlackListConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setipblacklistconfig.html +func (client *Client) SetIpBlackListConfig(request *SetIpBlackListConfigRequest) (response *SetIpBlackListConfigResponse, err error) { + response = CreateSetIpBlackListConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetIpBlackListConfigWithChan invokes the cdn.SetIpBlackListConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setipblacklistconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetIpBlackListConfigWithChan(request *SetIpBlackListConfigRequest) (<-chan *SetIpBlackListConfigResponse, <-chan error) { + responseChan := make(chan *SetIpBlackListConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetIpBlackListConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetIpBlackListConfigWithCallback invokes the cdn.SetIpBlackListConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setipblacklistconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetIpBlackListConfigWithCallback(request *SetIpBlackListConfigRequest, callback func(response *SetIpBlackListConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetIpBlackListConfigResponse + var err error + defer close(result) + response, err = client.SetIpBlackListConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetIpBlackListConfigRequest is the request struct for api SetIpBlackListConfig +type SetIpBlackListConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + BlockIps string `position:"Query" name:"BlockIps"` +} + +// SetIpBlackListConfigResponse is the response struct for api SetIpBlackListConfig +type SetIpBlackListConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetIpBlackListConfigRequest creates a request to invoke SetIpBlackListConfig API +func CreateSetIpBlackListConfigRequest() (request *SetIpBlackListConfigRequest) { + request = &SetIpBlackListConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetIpBlackListConfig", "", "") + return +} + +// CreateSetIpBlackListConfigResponse creates a response to parse from SetIpBlackListConfig response +func CreateSetIpBlackListConfigResponse() (response *SetIpBlackListConfigResponse) { + response = &SetIpBlackListConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_l2_oss_key_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_l2_oss_key_config.go new file mode 100644 index 0000000..c71b940 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_l2_oss_key_config.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetL2OssKeyConfig invokes the cdn.SetL2OssKeyConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setl2osskeyconfig.html +func (client *Client) SetL2OssKeyConfig(request *SetL2OssKeyConfigRequest) (response *SetL2OssKeyConfigResponse, err error) { + response = CreateSetL2OssKeyConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetL2OssKeyConfigWithChan invokes the cdn.SetL2OssKeyConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setl2osskeyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetL2OssKeyConfigWithChan(request *SetL2OssKeyConfigRequest) (<-chan *SetL2OssKeyConfigResponse, <-chan error) { + responseChan := make(chan *SetL2OssKeyConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetL2OssKeyConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetL2OssKeyConfigWithCallback invokes the cdn.SetL2OssKeyConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setl2osskeyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetL2OssKeyConfigWithCallback(request *SetL2OssKeyConfigRequest, callback func(response *SetL2OssKeyConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetL2OssKeyConfigResponse + var err error + defer close(result) + response, err = client.SetL2OssKeyConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetL2OssKeyConfigRequest is the request struct for api SetL2OssKeyConfig +type SetL2OssKeyConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PrivateOssAuth string `position:"Query" name:"PrivateOssAuth"` +} + +// SetL2OssKeyConfigResponse is the response struct for api SetL2OssKeyConfig +type SetL2OssKeyConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetL2OssKeyConfigRequest creates a request to invoke SetL2OssKeyConfig API +func CreateSetL2OssKeyConfigRequest() (request *SetL2OssKeyConfigRequest) { + request = &SetL2OssKeyConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetL2OssKeyConfig", "", "") + return +} + +// CreateSetL2OssKeyConfigResponse creates a response to parse from SetL2OssKeyConfig response +func CreateSetL2OssKeyConfigResponse() (response *SetL2OssKeyConfigResponse) { + response = &SetL2OssKeyConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_live_streams_notify_url_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_live_streams_notify_url_config.go new file mode 100644 index 0000000..d18e015 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_live_streams_notify_url_config.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetLiveStreamsNotifyUrlConfig invokes the cdn.SetLiveStreamsNotifyUrlConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setlivestreamsnotifyurlconfig.html +func (client *Client) SetLiveStreamsNotifyUrlConfig(request *SetLiveStreamsNotifyUrlConfigRequest) (response *SetLiveStreamsNotifyUrlConfigResponse, err error) { + response = CreateSetLiveStreamsNotifyUrlConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetLiveStreamsNotifyUrlConfigWithChan invokes the cdn.SetLiveStreamsNotifyUrlConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setlivestreamsnotifyurlconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetLiveStreamsNotifyUrlConfigWithChan(request *SetLiveStreamsNotifyUrlConfigRequest) (<-chan *SetLiveStreamsNotifyUrlConfigResponse, <-chan error) { + responseChan := make(chan *SetLiveStreamsNotifyUrlConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetLiveStreamsNotifyUrlConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetLiveStreamsNotifyUrlConfigWithCallback invokes the cdn.SetLiveStreamsNotifyUrlConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setlivestreamsnotifyurlconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetLiveStreamsNotifyUrlConfigWithCallback(request *SetLiveStreamsNotifyUrlConfigRequest, callback func(response *SetLiveStreamsNotifyUrlConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetLiveStreamsNotifyUrlConfigResponse + var err error + defer close(result) + response, err = client.SetLiveStreamsNotifyUrlConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetLiveStreamsNotifyUrlConfigRequest is the request struct for api SetLiveStreamsNotifyUrlConfig +type SetLiveStreamsNotifyUrlConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + NotifyUrl string `position:"Query" name:"NotifyUrl"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetLiveStreamsNotifyUrlConfigResponse is the response struct for api SetLiveStreamsNotifyUrlConfig +type SetLiveStreamsNotifyUrlConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetLiveStreamsNotifyUrlConfigRequest creates a request to invoke SetLiveStreamsNotifyUrlConfig API +func CreateSetLiveStreamsNotifyUrlConfigRequest() (request *SetLiveStreamsNotifyUrlConfigRequest) { + request = &SetLiveStreamsNotifyUrlConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetLiveStreamsNotifyUrlConfig", "", "") + return +} + +// CreateSetLiveStreamsNotifyUrlConfigResponse creates a response to parse from SetLiveStreamsNotifyUrlConfig response +func CreateSetLiveStreamsNotifyUrlConfigResponse() (response *SetLiveStreamsNotifyUrlConfigResponse) { + response = &SetLiveStreamsNotifyUrlConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_location_access_restriction.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_location_access_restriction.go new file mode 100644 index 0000000..97cfae0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_location_access_restriction.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetLocationAccessRestriction invokes the cdn.SetLocationAccessRestriction API synchronously +// api document: https://help.aliyun.com/api/cdn/setlocationaccessrestriction.html +func (client *Client) SetLocationAccessRestriction(request *SetLocationAccessRestrictionRequest) (response *SetLocationAccessRestrictionResponse, err error) { + response = CreateSetLocationAccessRestrictionResponse() + err = client.DoAction(request, response) + return +} + +// SetLocationAccessRestrictionWithChan invokes the cdn.SetLocationAccessRestriction API asynchronously +// api document: https://help.aliyun.com/api/cdn/setlocationaccessrestriction.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetLocationAccessRestrictionWithChan(request *SetLocationAccessRestrictionRequest) (<-chan *SetLocationAccessRestrictionResponse, <-chan error) { + responseChan := make(chan *SetLocationAccessRestrictionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetLocationAccessRestriction(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetLocationAccessRestrictionWithCallback invokes the cdn.SetLocationAccessRestriction API asynchronously +// api document: https://help.aliyun.com/api/cdn/setlocationaccessrestriction.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetLocationAccessRestrictionWithCallback(request *SetLocationAccessRestrictionRequest, callback func(response *SetLocationAccessRestrictionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetLocationAccessRestrictionResponse + var err error + defer close(result) + response, err = client.SetLocationAccessRestriction(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetLocationAccessRestrictionRequest is the request struct for api SetLocationAccessRestriction +type SetLocationAccessRestrictionRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + Location string `position:"Query" name:"Location"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Type string `position:"Query" name:"Type"` +} + +// SetLocationAccessRestrictionResponse is the response struct for api SetLocationAccessRestriction +type SetLocationAccessRestrictionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetLocationAccessRestrictionRequest creates a request to invoke SetLocationAccessRestriction API +func CreateSetLocationAccessRestrictionRequest() (request *SetLocationAccessRestrictionRequest) { + request = &SetLocationAccessRestrictionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetLocationAccessRestriction", "", "") + return +} + +// CreateSetLocationAccessRestrictionResponse creates a response to parse from SetLocationAccessRestriction response +func CreateSetLocationAccessRestrictionResponse() (response *SetLocationAccessRestrictionResponse) { + response = &SetLocationAccessRestrictionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_optimize_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_optimize_config.go new file mode 100644 index 0000000..5524c8d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_optimize_config.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetOptimizeConfig invokes the cdn.SetOptimizeConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setoptimizeconfig.html +func (client *Client) SetOptimizeConfig(request *SetOptimizeConfigRequest) (response *SetOptimizeConfigResponse, err error) { + response = CreateSetOptimizeConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetOptimizeConfigWithChan invokes the cdn.SetOptimizeConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setoptimizeconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetOptimizeConfigWithChan(request *SetOptimizeConfigRequest) (<-chan *SetOptimizeConfigResponse, <-chan error) { + responseChan := make(chan *SetOptimizeConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetOptimizeConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetOptimizeConfigWithCallback invokes the cdn.SetOptimizeConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setoptimizeconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetOptimizeConfigWithCallback(request *SetOptimizeConfigRequest, callback func(response *SetOptimizeConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetOptimizeConfigResponse + var err error + defer close(result) + response, err = client.SetOptimizeConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetOptimizeConfigRequest is the request struct for api SetOptimizeConfig +type SetOptimizeConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + Enable string `position:"Query" name:"Enable"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetOptimizeConfigResponse is the response struct for api SetOptimizeConfig +type SetOptimizeConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetOptimizeConfigRequest creates a request to invoke SetOptimizeConfig API +func CreateSetOptimizeConfigRequest() (request *SetOptimizeConfigRequest) { + request = &SetOptimizeConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetOptimizeConfig", "", "") + return +} + +// CreateSetOptimizeConfigResponse creates a response to parse from SetOptimizeConfig response +func CreateSetOptimizeConfigResponse() (response *SetOptimizeConfigResponse) { + response = &SetOptimizeConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_oss_log_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_oss_log_config.go new file mode 100644 index 0000000..cddd569 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_oss_log_config.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetOssLogConfig invokes the cdn.SetOssLogConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setosslogconfig.html +func (client *Client) SetOssLogConfig(request *SetOssLogConfigRequest) (response *SetOssLogConfigResponse, err error) { + response = CreateSetOssLogConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetOssLogConfigWithChan invokes the cdn.SetOssLogConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setosslogconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetOssLogConfigWithChan(request *SetOssLogConfigRequest) (<-chan *SetOssLogConfigResponse, <-chan error) { + responseChan := make(chan *SetOssLogConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetOssLogConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetOssLogConfigWithCallback invokes the cdn.SetOssLogConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setosslogconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetOssLogConfigWithCallback(request *SetOssLogConfigRequest, callback func(response *SetOssLogConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetOssLogConfigResponse + var err error + defer close(result) + response, err = client.SetOssLogConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetOssLogConfigRequest is the request struct for api SetOssLogConfig +type SetOssLogConfigRequest struct { + *requests.RpcRequest + Bucket string `position:"Query" name:"Bucket"` + SecurityToken string `position:"Query" name:"SecurityToken"` + Enable string `position:"Query" name:"Enable"` + Prefix string `position:"Query" name:"Prefix"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetOssLogConfigResponse is the response struct for api SetOssLogConfig +type SetOssLogConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetOssLogConfigRequest creates a request to invoke SetOssLogConfig API +func CreateSetOssLogConfigRequest() (request *SetOssLogConfigRequest) { + request = &SetOssLogConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetOssLogConfig", "", "") + return +} + +// CreateSetOssLogConfigResponse creates a response to parse from SetOssLogConfig response +func CreateSetOssLogConfigResponse() (response *SetOssLogConfigResponse) { + response = &SetOssLogConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_page_compress_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_page_compress_config.go new file mode 100644 index 0000000..996962c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_page_compress_config.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetPageCompressConfig invokes the cdn.SetPageCompressConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setpagecompressconfig.html +func (client *Client) SetPageCompressConfig(request *SetPageCompressConfigRequest) (response *SetPageCompressConfigResponse, err error) { + response = CreateSetPageCompressConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetPageCompressConfigWithChan invokes the cdn.SetPageCompressConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setpagecompressconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetPageCompressConfigWithChan(request *SetPageCompressConfigRequest) (<-chan *SetPageCompressConfigResponse, <-chan error) { + responseChan := make(chan *SetPageCompressConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetPageCompressConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetPageCompressConfigWithCallback invokes the cdn.SetPageCompressConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setpagecompressconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetPageCompressConfigWithCallback(request *SetPageCompressConfigRequest, callback func(response *SetPageCompressConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetPageCompressConfigResponse + var err error + defer close(result) + response, err = client.SetPageCompressConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetPageCompressConfigRequest is the request struct for api SetPageCompressConfig +type SetPageCompressConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + Enable string `position:"Query" name:"Enable"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetPageCompressConfigResponse is the response struct for api SetPageCompressConfig +type SetPageCompressConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetPageCompressConfigRequest creates a request to invoke SetPageCompressConfig API +func CreateSetPageCompressConfigRequest() (request *SetPageCompressConfigRequest) { + request = &SetPageCompressConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetPageCompressConfig", "", "") + return +} + +// CreateSetPageCompressConfigResponse creates a response to parse from SetPageCompressConfig response +func CreateSetPageCompressConfigResponse() (response *SetPageCompressConfigResponse) { + response = &SetPageCompressConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_path_cache_expired_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_path_cache_expired_config.go new file mode 100644 index 0000000..a2edfd7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_path_cache_expired_config.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetPathCacheExpiredConfig invokes the cdn.SetPathCacheExpiredConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setpathcacheexpiredconfig.html +func (client *Client) SetPathCacheExpiredConfig(request *SetPathCacheExpiredConfigRequest) (response *SetPathCacheExpiredConfigResponse, err error) { + response = CreateSetPathCacheExpiredConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetPathCacheExpiredConfigWithChan invokes the cdn.SetPathCacheExpiredConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setpathcacheexpiredconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetPathCacheExpiredConfigWithChan(request *SetPathCacheExpiredConfigRequest) (<-chan *SetPathCacheExpiredConfigResponse, <-chan error) { + responseChan := make(chan *SetPathCacheExpiredConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetPathCacheExpiredConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetPathCacheExpiredConfigWithCallback invokes the cdn.SetPathCacheExpiredConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setpathcacheexpiredconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetPathCacheExpiredConfigWithCallback(request *SetPathCacheExpiredConfigRequest, callback func(response *SetPathCacheExpiredConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetPathCacheExpiredConfigResponse + var err error + defer close(result) + response, err = client.SetPathCacheExpiredConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetPathCacheExpiredConfigRequest is the request struct for api SetPathCacheExpiredConfig +type SetPathCacheExpiredConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + Weight string `position:"Query" name:"Weight"` + CacheContent string `position:"Query" name:"CacheContent"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + TTL string `position:"Query" name:"TTL"` +} + +// SetPathCacheExpiredConfigResponse is the response struct for api SetPathCacheExpiredConfig +type SetPathCacheExpiredConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetPathCacheExpiredConfigRequest creates a request to invoke SetPathCacheExpiredConfig API +func CreateSetPathCacheExpiredConfigRequest() (request *SetPathCacheExpiredConfigRequest) { + request = &SetPathCacheExpiredConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetPathCacheExpiredConfig", "", "") + return +} + +// CreateSetPathCacheExpiredConfigResponse creates a response to parse from SetPathCacheExpiredConfig response +func CreateSetPathCacheExpiredConfigResponse() (response *SetPathCacheExpiredConfigResponse) { + response = &SetPathCacheExpiredConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_path_force_ttl_code_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_path_force_ttl_code_config.go new file mode 100644 index 0000000..f92854c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_path_force_ttl_code_config.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetPathForceTtlCodeConfig invokes the cdn.SetPathForceTtlCodeConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setpathforcettlcodeconfig.html +func (client *Client) SetPathForceTtlCodeConfig(request *SetPathForceTtlCodeConfigRequest) (response *SetPathForceTtlCodeConfigResponse, err error) { + response = CreateSetPathForceTtlCodeConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetPathForceTtlCodeConfigWithChan invokes the cdn.SetPathForceTtlCodeConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setpathforcettlcodeconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetPathForceTtlCodeConfigWithChan(request *SetPathForceTtlCodeConfigRequest) (<-chan *SetPathForceTtlCodeConfigResponse, <-chan error) { + responseChan := make(chan *SetPathForceTtlCodeConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetPathForceTtlCodeConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetPathForceTtlCodeConfigWithCallback invokes the cdn.SetPathForceTtlCodeConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setpathforcettlcodeconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetPathForceTtlCodeConfigWithCallback(request *SetPathForceTtlCodeConfigRequest, callback func(response *SetPathForceTtlCodeConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetPathForceTtlCodeConfigResponse + var err error + defer close(result) + response, err = client.SetPathForceTtlCodeConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetPathForceTtlCodeConfigRequest is the request struct for api SetPathForceTtlCodeConfig +type SetPathForceTtlCodeConfigRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Version string `position:"Query" name:"Version"` + CodeString string `position:"Query" name:"CodeString"` + Path string `position:"Query" name:"Path"` + SecurityToken string `position:"Query" name:"SecurityToken"` +} + +// SetPathForceTtlCodeConfigResponse is the response struct for api SetPathForceTtlCodeConfig +type SetPathForceTtlCodeConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetPathForceTtlCodeConfigRequest creates a request to invoke SetPathForceTtlCodeConfig API +func CreateSetPathForceTtlCodeConfigRequest() (request *SetPathForceTtlCodeConfigRequest) { + request = &SetPathForceTtlCodeConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetPathForceTtlCodeConfig", "", "") + return +} + +// CreateSetPathForceTtlCodeConfigResponse creates a response to parse from SetPathForceTtlCodeConfig response +func CreateSetPathForceTtlCodeConfigResponse() (response *SetPathForceTtlCodeConfigResponse) { + response = &SetPathForceTtlCodeConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_range_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_range_config.go new file mode 100644 index 0000000..74da317 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_range_config.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetRangeConfig invokes the cdn.SetRangeConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setrangeconfig.html +func (client *Client) SetRangeConfig(request *SetRangeConfigRequest) (response *SetRangeConfigResponse, err error) { + response = CreateSetRangeConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetRangeConfigWithChan invokes the cdn.SetRangeConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setrangeconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetRangeConfigWithChan(request *SetRangeConfigRequest) (<-chan *SetRangeConfigResponse, <-chan error) { + responseChan := make(chan *SetRangeConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetRangeConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetRangeConfigWithCallback invokes the cdn.SetRangeConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setrangeconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetRangeConfigWithCallback(request *SetRangeConfigRequest, callback func(response *SetRangeConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetRangeConfigResponse + var err error + defer close(result) + response, err = client.SetRangeConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetRangeConfigRequest is the request struct for api SetRangeConfig +type SetRangeConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + Enable string `position:"Query" name:"Enable"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetRangeConfigResponse is the response struct for api SetRangeConfig +type SetRangeConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetRangeConfigRequest creates a request to invoke SetRangeConfig API +func CreateSetRangeConfigRequest() (request *SetRangeConfigRequest) { + request = &SetRangeConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetRangeConfig", "", "") + return +} + +// CreateSetRangeConfigResponse creates a response to parse from SetRangeConfig response +func CreateSetRangeConfigResponse() (response *SetRangeConfigResponse) { + response = &SetRangeConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_referer_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_referer_config.go new file mode 100644 index 0000000..3051b5a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_referer_config.go @@ -0,0 +1,109 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetRefererConfig invokes the cdn.SetRefererConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setrefererconfig.html +func (client *Client) SetRefererConfig(request *SetRefererConfigRequest) (response *SetRefererConfigResponse, err error) { + response = CreateSetRefererConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetRefererConfigWithChan invokes the cdn.SetRefererConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setrefererconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetRefererConfigWithChan(request *SetRefererConfigRequest) (<-chan *SetRefererConfigResponse, <-chan error) { + responseChan := make(chan *SetRefererConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetRefererConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetRefererConfigWithCallback invokes the cdn.SetRefererConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setrefererconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetRefererConfigWithCallback(request *SetRefererConfigRequest, callback func(response *SetRefererConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetRefererConfigResponse + var err error + defer close(result) + response, err = client.SetRefererConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetRefererConfigRequest is the request struct for api SetRefererConfig +type SetRefererConfigRequest struct { + *requests.RpcRequest + ReferList string `position:"Query" name:"ReferList"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + ReferType string `position:"Query" name:"ReferType"` + DisableAst string `position:"Query" name:"DisableAst"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AllowEmpty string `position:"Query" name:"AllowEmpty"` +} + +// SetRefererConfigResponse is the response struct for api SetRefererConfig +type SetRefererConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetRefererConfigRequest creates a request to invoke SetRefererConfig API +func CreateSetRefererConfigRequest() (request *SetRefererConfigRequest) { + request = &SetRefererConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetRefererConfig", "", "") + return +} + +// CreateSetRefererConfigResponse creates a response to parse from SetRefererConfig response +func CreateSetRefererConfigResponse() (response *SetRefererConfigResponse) { + response = &SetRefererConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_remote_req_auth_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_remote_req_auth_config.go new file mode 100644 index 0000000..933d33e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_remote_req_auth_config.go @@ -0,0 +1,113 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetRemoteReqAuthConfig invokes the cdn.SetRemoteReqAuthConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setremotereqauthconfig.html +func (client *Client) SetRemoteReqAuthConfig(request *SetRemoteReqAuthConfigRequest) (response *SetRemoteReqAuthConfigResponse, err error) { + response = CreateSetRemoteReqAuthConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetRemoteReqAuthConfigWithChan invokes the cdn.SetRemoteReqAuthConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setremotereqauthconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetRemoteReqAuthConfigWithChan(request *SetRemoteReqAuthConfigRequest) (<-chan *SetRemoteReqAuthConfigResponse, <-chan error) { + responseChan := make(chan *SetRemoteReqAuthConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetRemoteReqAuthConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetRemoteReqAuthConfigWithCallback invokes the cdn.SetRemoteReqAuthConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setremotereqauthconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetRemoteReqAuthConfigWithCallback(request *SetRemoteReqAuthConfigRequest, callback func(response *SetRemoteReqAuthConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetRemoteReqAuthConfigResponse + var err error + defer close(result) + response, err = client.SetRemoteReqAuthConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetRemoteReqAuthConfigRequest is the request struct for api SetRemoteReqAuthConfig +type SetRemoteReqAuthConfigRequest struct { + *requests.RpcRequest + AuthPath string `position:"Query" name:"AuthPath"` + DomainName string `position:"Query" name:"DomainName"` + AuthEnable string `position:"Query" name:"AuthEnable"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + TimeOut string `position:"Query" name:"TimeOut"` + AuthType string `position:"Query" name:"AuthType"` + AuthProvider string `position:"Query" name:"AuthProvider"` + SecurityToken string `position:"Query" name:"SecurityToken"` + AuthCrash string `position:"Query" name:"AuthCrash"` + AuthAddr string `position:"Query" name:"AuthAddr"` + AuthFileType string `position:"Query" name:"AuthFileType"` +} + +// SetRemoteReqAuthConfigResponse is the response struct for api SetRemoteReqAuthConfig +type SetRemoteReqAuthConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetRemoteReqAuthConfigRequest creates a request to invoke SetRemoteReqAuthConfig API +func CreateSetRemoteReqAuthConfigRequest() (request *SetRemoteReqAuthConfigRequest) { + request = &SetRemoteReqAuthConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetRemoteReqAuthConfig", "", "") + return +} + +// CreateSetRemoteReqAuthConfigResponse creates a response to parse from SetRemoteReqAuthConfig response +func CreateSetRemoteReqAuthConfigResponse() (response *SetRemoteReqAuthConfigResponse) { + response = &SetRemoteReqAuthConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_remove_query_string_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_remove_query_string_config.go new file mode 100644 index 0000000..1cbcbae --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_remove_query_string_config.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetRemoveQueryStringConfig invokes the cdn.SetRemoveQueryStringConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setremovequerystringconfig.html +func (client *Client) SetRemoveQueryStringConfig(request *SetRemoveQueryStringConfigRequest) (response *SetRemoveQueryStringConfigResponse, err error) { + response = CreateSetRemoveQueryStringConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetRemoveQueryStringConfigWithChan invokes the cdn.SetRemoveQueryStringConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setremovequerystringconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetRemoveQueryStringConfigWithChan(request *SetRemoveQueryStringConfigRequest) (<-chan *SetRemoveQueryStringConfigResponse, <-chan error) { + responseChan := make(chan *SetRemoveQueryStringConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetRemoveQueryStringConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetRemoveQueryStringConfigWithCallback invokes the cdn.SetRemoveQueryStringConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setremovequerystringconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetRemoveQueryStringConfigWithCallback(request *SetRemoveQueryStringConfigRequest, callback func(response *SetRemoveQueryStringConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetRemoveQueryStringConfigResponse + var err error + defer close(result) + response, err = client.SetRemoveQueryStringConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetRemoveQueryStringConfigRequest is the request struct for api SetRemoveQueryStringConfig +type SetRemoveQueryStringConfigRequest struct { + *requests.RpcRequest + KeepOssArgs string `position:"Query" name:"KeepOssArgs"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + AliRemoveArgs string `position:"Query" name:"AliRemoveArgs"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetRemoveQueryStringConfigResponse is the response struct for api SetRemoveQueryStringConfig +type SetRemoveQueryStringConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetRemoveQueryStringConfigRequest creates a request to invoke SetRemoveQueryStringConfig API +func CreateSetRemoveQueryStringConfigRequest() (request *SetRemoveQueryStringConfigRequest) { + request = &SetRemoveQueryStringConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetRemoveQueryStringConfig", "", "") + return +} + +// CreateSetRemoveQueryStringConfigResponse creates a response to parse from SetRemoveQueryStringConfig response +func CreateSetRemoveQueryStringConfigResponse() (response *SetRemoveQueryStringConfigResponse) { + response = &SetRemoveQueryStringConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_req_auth_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_req_auth_config.go new file mode 100644 index 0000000..f828cdd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_req_auth_config.go @@ -0,0 +1,110 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetReqAuthConfig invokes the cdn.SetReqAuthConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setreqauthconfig.html +func (client *Client) SetReqAuthConfig(request *SetReqAuthConfigRequest) (response *SetReqAuthConfigResponse, err error) { + response = CreateSetReqAuthConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetReqAuthConfigWithChan invokes the cdn.SetReqAuthConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setreqauthconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetReqAuthConfigWithChan(request *SetReqAuthConfigRequest) (<-chan *SetReqAuthConfigResponse, <-chan error) { + responseChan := make(chan *SetReqAuthConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetReqAuthConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetReqAuthConfigWithCallback invokes the cdn.SetReqAuthConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setreqauthconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetReqAuthConfigWithCallback(request *SetReqAuthConfigRequest, callback func(response *SetReqAuthConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetReqAuthConfigResponse + var err error + defer close(result) + response, err = client.SetReqAuthConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetReqAuthConfigRequest is the request struct for api SetReqAuthConfig +type SetReqAuthConfigRequest struct { + *requests.RpcRequest + Key1 string `position:"Query" name:"Key1"` + Key2 string `position:"Query" name:"Key2"` + AuthRemoteDesc string `position:"Query" name:"AuthRemoteDesc"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + TimeOut string `position:"Query" name:"TimeOut"` + AuthType string `position:"Query" name:"AuthType"` +} + +// SetReqAuthConfigResponse is the response struct for api SetReqAuthConfig +type SetReqAuthConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetReqAuthConfigRequest creates a request to invoke SetReqAuthConfig API +func CreateSetReqAuthConfigRequest() (request *SetReqAuthConfigRequest) { + request = &SetReqAuthConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetReqAuthConfig", "", "") + return +} + +// CreateSetReqAuthConfigResponse creates a response to parse from SetReqAuthConfig response +func CreateSetReqAuthConfigResponse() (response *SetReqAuthConfigResponse) { + response = &SetReqAuthConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_req_header_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_req_header_config.go new file mode 100644 index 0000000..5c41979 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_req_header_config.go @@ -0,0 +1,108 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetReqHeaderConfig invokes the cdn.SetReqHeaderConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setreqheaderconfig.html +func (client *Client) SetReqHeaderConfig(request *SetReqHeaderConfigRequest) (response *SetReqHeaderConfigResponse, err error) { + response = CreateSetReqHeaderConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetReqHeaderConfigWithChan invokes the cdn.SetReqHeaderConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setreqheaderconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetReqHeaderConfigWithChan(request *SetReqHeaderConfigRequest) (<-chan *SetReqHeaderConfigResponse, <-chan error) { + responseChan := make(chan *SetReqHeaderConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetReqHeaderConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetReqHeaderConfigWithCallback invokes the cdn.SetReqHeaderConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setreqheaderconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetReqHeaderConfigWithCallback(request *SetReqHeaderConfigRequest, callback func(response *SetReqHeaderConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetReqHeaderConfigResponse + var err error + defer close(result) + response, err = client.SetReqHeaderConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetReqHeaderConfigRequest is the request struct for api SetReqHeaderConfig +type SetReqHeaderConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + ConfigId requests.Integer `position:"Query" name:"ConfigId"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Value string `position:"Query" name:"Value"` + Key string `position:"Query" name:"Key"` +} + +// SetReqHeaderConfigResponse is the response struct for api SetReqHeaderConfig +type SetReqHeaderConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetReqHeaderConfigRequest creates a request to invoke SetReqHeaderConfig API +func CreateSetReqHeaderConfigRequest() (request *SetReqHeaderConfigRequest) { + request = &SetReqHeaderConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetReqHeaderConfig", "", "") + return +} + +// CreateSetReqHeaderConfigResponse creates a response to parse from SetReqHeaderConfig response +func CreateSetReqHeaderConfigResponse() (response *SetReqHeaderConfigResponse) { + response = &SetReqHeaderConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_source_host_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_source_host_config.go new file mode 100644 index 0000000..9b01fc0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_source_host_config.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetSourceHostConfig invokes the cdn.SetSourceHostConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setsourcehostconfig.html +func (client *Client) SetSourceHostConfig(request *SetSourceHostConfigRequest) (response *SetSourceHostConfigResponse, err error) { + response = CreateSetSourceHostConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetSourceHostConfigWithChan invokes the cdn.SetSourceHostConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setsourcehostconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetSourceHostConfigWithChan(request *SetSourceHostConfigRequest) (<-chan *SetSourceHostConfigResponse, <-chan error) { + responseChan := make(chan *SetSourceHostConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetSourceHostConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetSourceHostConfigWithCallback invokes the cdn.SetSourceHostConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setsourcehostconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetSourceHostConfigWithCallback(request *SetSourceHostConfigRequest, callback func(response *SetSourceHostConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetSourceHostConfigResponse + var err error + defer close(result) + response, err = client.SetSourceHostConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetSourceHostConfigRequest is the request struct for api SetSourceHostConfig +type SetSourceHostConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + Enable string `position:"Query" name:"Enable"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + BackSrcDomain string `position:"Query" name:"BackSrcDomain"` +} + +// SetSourceHostConfigResponse is the response struct for api SetSourceHostConfig +type SetSourceHostConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetSourceHostConfigRequest creates a request to invoke SetSourceHostConfig API +func CreateSetSourceHostConfigRequest() (request *SetSourceHostConfigRequest) { + request = &SetSourceHostConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetSourceHostConfig", "", "") + return +} + +// CreateSetSourceHostConfigResponse creates a response to parse from SetSourceHostConfig response +func CreateSetSourceHostConfigResponse() (response *SetSourceHostConfigResponse) { + response = &SetSourceHostConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_user_agent_acess_restriction.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_user_agent_acess_restriction.go new file mode 100644 index 0000000..32739db --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_user_agent_acess_restriction.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetUserAgentAcessRestriction invokes the cdn.SetUserAgentAcessRestriction API synchronously +// api document: https://help.aliyun.com/api/cdn/setuseragentacessrestriction.html +func (client *Client) SetUserAgentAcessRestriction(request *SetUserAgentAcessRestrictionRequest) (response *SetUserAgentAcessRestrictionResponse, err error) { + response = CreateSetUserAgentAcessRestrictionResponse() + err = client.DoAction(request, response) + return +} + +// SetUserAgentAcessRestrictionWithChan invokes the cdn.SetUserAgentAcessRestriction API asynchronously +// api document: https://help.aliyun.com/api/cdn/setuseragentacessrestriction.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetUserAgentAcessRestrictionWithChan(request *SetUserAgentAcessRestrictionRequest) (<-chan *SetUserAgentAcessRestrictionResponse, <-chan error) { + responseChan := make(chan *SetUserAgentAcessRestrictionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetUserAgentAcessRestriction(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetUserAgentAcessRestrictionWithCallback invokes the cdn.SetUserAgentAcessRestriction API asynchronously +// api document: https://help.aliyun.com/api/cdn/setuseragentacessrestriction.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetUserAgentAcessRestrictionWithCallback(request *SetUserAgentAcessRestrictionRequest, callback func(response *SetUserAgentAcessRestrictionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetUserAgentAcessRestrictionResponse + var err error + defer close(result) + response, err = client.SetUserAgentAcessRestriction(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetUserAgentAcessRestrictionRequest is the request struct for api SetUserAgentAcessRestriction +type SetUserAgentAcessRestrictionRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + UserAgent string `position:"Query" name:"UserAgent"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Type string `position:"Query" name:"Type"` +} + +// SetUserAgentAcessRestrictionResponse is the response struct for api SetUserAgentAcessRestriction +type SetUserAgentAcessRestrictionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetUserAgentAcessRestrictionRequest creates a request to invoke SetUserAgentAcessRestriction API +func CreateSetUserAgentAcessRestrictionRequest() (request *SetUserAgentAcessRestrictionRequest) { + request = &SetUserAgentAcessRestrictionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetUserAgentAcessRestriction", "", "") + return +} + +// CreateSetUserAgentAcessRestrictionResponse creates a response to parse from SetUserAgentAcessRestriction response +func CreateSetUserAgentAcessRestrictionResponse() (response *SetUserAgentAcessRestrictionResponse) { + response = &SetUserAgentAcessRestrictionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_user_black_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_user_black_list.go new file mode 100644 index 0000000..bb89775 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_user_black_list.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetUserBlackList invokes the cdn.SetUserBlackList API synchronously +// api document: https://help.aliyun.com/api/cdn/setuserblacklist.html +func (client *Client) SetUserBlackList(request *SetUserBlackListRequest) (response *SetUserBlackListResponse, err error) { + response = CreateSetUserBlackListResponse() + err = client.DoAction(request, response) + return +} + +// SetUserBlackListWithChan invokes the cdn.SetUserBlackList API asynchronously +// api document: https://help.aliyun.com/api/cdn/setuserblacklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetUserBlackListWithChan(request *SetUserBlackListRequest) (<-chan *SetUserBlackListResponse, <-chan error) { + responseChan := make(chan *SetUserBlackListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetUserBlackList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetUserBlackListWithCallback invokes the cdn.SetUserBlackList API asynchronously +// api document: https://help.aliyun.com/api/cdn/setuserblacklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetUserBlackListWithCallback(request *SetUserBlackListRequest, callback func(response *SetUserBlackListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetUserBlackListResponse + var err error + defer close(result) + response, err = client.SetUserBlackList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetUserBlackListRequest is the request struct for api SetUserBlackList +type SetUserBlackListRequest struct { + *requests.RpcRequest + ConfigUrl string `position:"Query" name:"ConfigUrl"` + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetUserBlackListResponse is the response struct for api SetUserBlackList +type SetUserBlackListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetUserBlackListRequest creates a request to invoke SetUserBlackList API +func CreateSetUserBlackListRequest() (request *SetUserBlackListRequest) { + request = &SetUserBlackListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetUserBlackList", "", "") + return +} + +// CreateSetUserBlackListResponse creates a response to parse from SetUserBlackList response +func CreateSetUserBlackListResponse() (response *SetUserBlackListResponse) { + response = &SetUserBlackListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_user_domain_black_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_user_domain_black_list.go new file mode 100644 index 0000000..6732c08 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_user_domain_black_list.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetUserDomainBlackList invokes the cdn.SetUserDomainBlackList API synchronously +// api document: https://help.aliyun.com/api/cdn/setuserdomainblacklist.html +func (client *Client) SetUserDomainBlackList(request *SetUserDomainBlackListRequest) (response *SetUserDomainBlackListResponse, err error) { + response = CreateSetUserDomainBlackListResponse() + err = client.DoAction(request, response) + return +} + +// SetUserDomainBlackListWithChan invokes the cdn.SetUserDomainBlackList API asynchronously +// api document: https://help.aliyun.com/api/cdn/setuserdomainblacklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetUserDomainBlackListWithChan(request *SetUserDomainBlackListRequest) (<-chan *SetUserDomainBlackListResponse, <-chan error) { + responseChan := make(chan *SetUserDomainBlackListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetUserDomainBlackList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetUserDomainBlackListWithCallback invokes the cdn.SetUserDomainBlackList API asynchronously +// api document: https://help.aliyun.com/api/cdn/setuserdomainblacklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetUserDomainBlackListWithCallback(request *SetUserDomainBlackListRequest, callback func(response *SetUserDomainBlackListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetUserDomainBlackListResponse + var err error + defer close(result) + response, err = client.SetUserDomainBlackList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetUserDomainBlackListRequest is the request struct for api SetUserDomainBlackList +type SetUserDomainBlackListRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetUserDomainBlackListResponse is the response struct for api SetUserDomainBlackList +type SetUserDomainBlackListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetUserDomainBlackListRequest creates a request to invoke SetUserDomainBlackList API +func CreateSetUserDomainBlackListRequest() (request *SetUserDomainBlackListRequest) { + request = &SetUserDomainBlackListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetUserDomainBlackList", "", "") + return +} + +// CreateSetUserDomainBlackListResponse creates a response to parse from SetUserDomainBlackList response +func CreateSetUserDomainBlackListResponse() (response *SetUserDomainBlackListResponse) { + response = &SetUserDomainBlackListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_video_seek_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_video_seek_config.go new file mode 100644 index 0000000..e0001a3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_video_seek_config.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetVideoSeekConfig invokes the cdn.SetVideoSeekConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setvideoseekconfig.html +func (client *Client) SetVideoSeekConfig(request *SetVideoSeekConfigRequest) (response *SetVideoSeekConfigResponse, err error) { + response = CreateSetVideoSeekConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetVideoSeekConfigWithChan invokes the cdn.SetVideoSeekConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setvideoseekconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetVideoSeekConfigWithChan(request *SetVideoSeekConfigRequest) (<-chan *SetVideoSeekConfigResponse, <-chan error) { + responseChan := make(chan *SetVideoSeekConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetVideoSeekConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetVideoSeekConfigWithCallback invokes the cdn.SetVideoSeekConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setvideoseekconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetVideoSeekConfigWithCallback(request *SetVideoSeekConfigRequest, callback func(response *SetVideoSeekConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetVideoSeekConfigResponse + var err error + defer close(result) + response, err = client.SetVideoSeekConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetVideoSeekConfigRequest is the request struct for api SetVideoSeekConfig +type SetVideoSeekConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + Enable string `position:"Query" name:"Enable"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetVideoSeekConfigResponse is the response struct for api SetVideoSeekConfig +type SetVideoSeekConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetVideoSeekConfigRequest creates a request to invoke SetVideoSeekConfig API +func CreateSetVideoSeekConfigRequest() (request *SetVideoSeekConfigRequest) { + request = &SetVideoSeekConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetVideoSeekConfig", "", "") + return +} + +// CreateSetVideoSeekConfigResponse creates a response to parse from SetVideoSeekConfig response +func CreateSetVideoSeekConfigResponse() (response *SetVideoSeekConfigResponse) { + response = &SetVideoSeekConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_waf_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_waf_config.go new file mode 100644 index 0000000..0048619 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_waf_config.go @@ -0,0 +1,106 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetWafConfig invokes the cdn.SetWafConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setwafconfig.html +func (client *Client) SetWafConfig(request *SetWafConfigRequest) (response *SetWafConfigResponse, err error) { + response = CreateSetWafConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetWafConfigWithChan invokes the cdn.SetWafConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setwafconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetWafConfigWithChan(request *SetWafConfigRequest) (<-chan *SetWafConfigResponse, <-chan error) { + responseChan := make(chan *SetWafConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetWafConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetWafConfigWithCallback invokes the cdn.SetWafConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setwafconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetWafConfigWithCallback(request *SetWafConfigRequest, callback func(response *SetWafConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetWafConfigResponse + var err error + defer close(result) + response, err = client.SetWafConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetWafConfigRequest is the request struct for api SetWafConfig +type SetWafConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + Enable string `position:"Query" name:"Enable"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetWafConfigResponse is the response struct for api SetWafConfig +type SetWafConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetWafConfigRequest creates a request to invoke SetWafConfig API +func CreateSetWafConfigRequest() (request *SetWafConfigRequest) { + request = &SetWafConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetWafConfig", "", "") + return +} + +// CreateSetWafConfigResponse creates a response to parse from SetWafConfig response +func CreateSetWafConfigResponse() (response *SetWafConfigResponse) { + response = &SetWafConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_waiting_room_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_waiting_room_config.go new file mode 100644 index 0000000..beef206 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/set_waiting_room_config.go @@ -0,0 +1,110 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetWaitingRoomConfig invokes the cdn.SetWaitingRoomConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/setwaitingroomconfig.html +func (client *Client) SetWaitingRoomConfig(request *SetWaitingRoomConfigRequest) (response *SetWaitingRoomConfigResponse, err error) { + response = CreateSetWaitingRoomConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetWaitingRoomConfigWithChan invokes the cdn.SetWaitingRoomConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setwaitingroomconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetWaitingRoomConfigWithChan(request *SetWaitingRoomConfigRequest) (<-chan *SetWaitingRoomConfigResponse, <-chan error) { + responseChan := make(chan *SetWaitingRoomConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetWaitingRoomConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetWaitingRoomConfigWithCallback invokes the cdn.SetWaitingRoomConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/setwaitingroomconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetWaitingRoomConfigWithCallback(request *SetWaitingRoomConfigRequest, callback func(response *SetWaitingRoomConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetWaitingRoomConfigResponse + var err error + defer close(result) + response, err = client.SetWaitingRoomConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetWaitingRoomConfigRequest is the request struct for api SetWaitingRoomConfig +type SetWaitingRoomConfigRequest struct { + *requests.RpcRequest + WaitUrl string `position:"Query" name:"WaitUrl"` + WaitUri string `position:"Query" name:"WaitUri"` + MaxQps requests.Integer `position:"Query" name:"MaxQps"` + MaxTimeWait requests.Integer `position:"Query" name:"MaxTimeWait"` + DomainName string `position:"Query" name:"DomainName"` + AllowPct requests.Integer `position:"Query" name:"AllowPct"` + GapTime requests.Integer `position:"Query" name:"GapTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetWaitingRoomConfigResponse is the response struct for api SetWaitingRoomConfig +type SetWaitingRoomConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetWaitingRoomConfigRequest creates a request to invoke SetWaitingRoomConfig API +func CreateSetWaitingRoomConfigRequest() (request *SetWaitingRoomConfigRequest) { + request = &SetWaitingRoomConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "SetWaitingRoomConfig", "", "") + return +} + +// CreateSetWaitingRoomConfigResponse creates a response to parse from SetWaitingRoomConfig response +func CreateSetWaitingRoomConfigResponse() (response *SetWaitingRoomConfigResponse) { + response = &SetWaitingRoomConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/start_cdn_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/start_cdn_domain.go new file mode 100644 index 0000000..1f14d71 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/start_cdn_domain.go @@ -0,0 +1,105 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StartCdnDomain invokes the cdn.StartCdnDomain API synchronously +// api document: https://help.aliyun.com/api/cdn/startcdndomain.html +func (client *Client) StartCdnDomain(request *StartCdnDomainRequest) (response *StartCdnDomainResponse, err error) { + response = CreateStartCdnDomainResponse() + err = client.DoAction(request, response) + return +} + +// StartCdnDomainWithChan invokes the cdn.StartCdnDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/startcdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartCdnDomainWithChan(request *StartCdnDomainRequest) (<-chan *StartCdnDomainResponse, <-chan error) { + responseChan := make(chan *StartCdnDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartCdnDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartCdnDomainWithCallback invokes the cdn.StartCdnDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/startcdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartCdnDomainWithCallback(request *StartCdnDomainRequest, callback func(response *StartCdnDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartCdnDomainResponse + var err error + defer close(result) + response, err = client.StartCdnDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartCdnDomainRequest is the request struct for api StartCdnDomain +type StartCdnDomainRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// StartCdnDomainResponse is the response struct for api StartCdnDomain +type StartCdnDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStartCdnDomainRequest creates a request to invoke StartCdnDomain API +func CreateStartCdnDomainRequest() (request *StartCdnDomainRequest) { + request = &StartCdnDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "StartCdnDomain", "", "") + return +} + +// CreateStartCdnDomainResponse creates a response to parse from StartCdnDomain response +func CreateStartCdnDomainResponse() (response *StartCdnDomainResponse) { + response = &StartCdnDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/start_mix_streams_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/start_mix_streams_service.go new file mode 100644 index 0000000..23bbd1f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/start_mix_streams_service.go @@ -0,0 +1,113 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StartMixStreamsService invokes the cdn.StartMixStreamsService API synchronously +// api document: https://help.aliyun.com/api/cdn/startmixstreamsservice.html +func (client *Client) StartMixStreamsService(request *StartMixStreamsServiceRequest) (response *StartMixStreamsServiceResponse, err error) { + response = CreateStartMixStreamsServiceResponse() + err = client.DoAction(request, response) + return +} + +// StartMixStreamsServiceWithChan invokes the cdn.StartMixStreamsService API asynchronously +// api document: https://help.aliyun.com/api/cdn/startmixstreamsservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartMixStreamsServiceWithChan(request *StartMixStreamsServiceRequest) (<-chan *StartMixStreamsServiceResponse, <-chan error) { + responseChan := make(chan *StartMixStreamsServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartMixStreamsService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartMixStreamsServiceWithCallback invokes the cdn.StartMixStreamsService API asynchronously +// api document: https://help.aliyun.com/api/cdn/startmixstreamsservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartMixStreamsServiceWithCallback(request *StartMixStreamsServiceRequest, callback func(response *StartMixStreamsServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartMixStreamsServiceResponse + var err error + defer close(result) + response, err = client.StartMixStreamsService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartMixStreamsServiceRequest is the request struct for api StartMixStreamsService +type StartMixStreamsServiceRequest struct { + *requests.RpcRequest + MixType string `position:"Query" name:"MixType"` + SecurityToken string `position:"Query" name:"SecurityToken"` + MainDomainName string `position:"Query" name:"MainDomainName"` + MixStreamName string `position:"Query" name:"MixStreamName"` + MixTemplate string `position:"Query" name:"MixTemplate"` + MixDomainName string `position:"Query" name:"MixDomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + MainAppName string `position:"Query" name:"MainAppName"` + MixAppName string `position:"Query" name:"MixAppName"` + MainStreamName string `position:"Query" name:"MainStreamName"` +} + +// StartMixStreamsServiceResponse is the response struct for api StartMixStreamsService +type StartMixStreamsServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MixStreamsInfoList MixStreamsInfoListInStartMixStreamsService `json:"MixStreamsInfoList" xml:"MixStreamsInfoList"` +} + +// CreateStartMixStreamsServiceRequest creates a request to invoke StartMixStreamsService API +func CreateStartMixStreamsServiceRequest() (request *StartMixStreamsServiceRequest) { + request = &StartMixStreamsServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "StartMixStreamsService", "", "") + return +} + +// CreateStartMixStreamsServiceResponse creates a response to parse from StartMixStreamsService response +func CreateStartMixStreamsServiceResponse() (response *StartMixStreamsServiceResponse) { + response = &StartMixStreamsServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/stop_cdn_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/stop_cdn_domain.go new file mode 100644 index 0000000..50df3c5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/stop_cdn_domain.go @@ -0,0 +1,105 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StopCdnDomain invokes the cdn.StopCdnDomain API synchronously +// api document: https://help.aliyun.com/api/cdn/stopcdndomain.html +func (client *Client) StopCdnDomain(request *StopCdnDomainRequest) (response *StopCdnDomainResponse, err error) { + response = CreateStopCdnDomainResponse() + err = client.DoAction(request, response) + return +} + +// StopCdnDomainWithChan invokes the cdn.StopCdnDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/stopcdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopCdnDomainWithChan(request *StopCdnDomainRequest) (<-chan *StopCdnDomainResponse, <-chan error) { + responseChan := make(chan *StopCdnDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopCdnDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopCdnDomainWithCallback invokes the cdn.StopCdnDomain API asynchronously +// api document: https://help.aliyun.com/api/cdn/stopcdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopCdnDomainWithCallback(request *StopCdnDomainRequest, callback func(response *StopCdnDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopCdnDomainResponse + var err error + defer close(result) + response, err = client.StopCdnDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopCdnDomainRequest is the request struct for api StopCdnDomain +type StopCdnDomainRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// StopCdnDomainResponse is the response struct for api StopCdnDomain +type StopCdnDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStopCdnDomainRequest creates a request to invoke StopCdnDomain API +func CreateStopCdnDomainRequest() (request *StopCdnDomainRequest) { + request = &StopCdnDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "StopCdnDomain", "", "") + return +} + +// CreateStopCdnDomainResponse creates a response to parse from StopCdnDomain response +func CreateStopCdnDomainResponse() (response *StopCdnDomainResponse) { + response = &StopCdnDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/stop_mix_streams_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/stop_mix_streams_service.go new file mode 100644 index 0000000..1dd4db5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/stop_mix_streams_service.go @@ -0,0 +1,111 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StopMixStreamsService invokes the cdn.StopMixStreamsService API synchronously +// api document: https://help.aliyun.com/api/cdn/stopmixstreamsservice.html +func (client *Client) StopMixStreamsService(request *StopMixStreamsServiceRequest) (response *StopMixStreamsServiceResponse, err error) { + response = CreateStopMixStreamsServiceResponse() + err = client.DoAction(request, response) + return +} + +// StopMixStreamsServiceWithChan invokes the cdn.StopMixStreamsService API asynchronously +// api document: https://help.aliyun.com/api/cdn/stopmixstreamsservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopMixStreamsServiceWithChan(request *StopMixStreamsServiceRequest) (<-chan *StopMixStreamsServiceResponse, <-chan error) { + responseChan := make(chan *StopMixStreamsServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopMixStreamsService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopMixStreamsServiceWithCallback invokes the cdn.StopMixStreamsService API asynchronously +// api document: https://help.aliyun.com/api/cdn/stopmixstreamsservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopMixStreamsServiceWithCallback(request *StopMixStreamsServiceRequest, callback func(response *StopMixStreamsServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopMixStreamsServiceResponse + var err error + defer close(result) + response, err = client.StopMixStreamsService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopMixStreamsServiceRequest is the request struct for api StopMixStreamsService +type StopMixStreamsServiceRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + MainDomainName string `position:"Query" name:"MainDomainName"` + MixStreamName string `position:"Query" name:"MixStreamName"` + MixDomainName string `position:"Query" name:"MixDomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + MainAppName string `position:"Query" name:"MainAppName"` + MixAppName string `position:"Query" name:"MixAppName"` + MainStreamName string `position:"Query" name:"MainStreamName"` +} + +// StopMixStreamsServiceResponse is the response struct for api StopMixStreamsService +type StopMixStreamsServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MixStreamsInfoList MixStreamsInfoListInStopMixStreamsService `json:"MixStreamsInfoList" xml:"MixStreamsInfoList"` +} + +// CreateStopMixStreamsServiceRequest creates a request to invoke StopMixStreamsService API +func CreateStopMixStreamsServiceRequest() (request *StopMixStreamsServiceRequest) { + request = &StopMixStreamsServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "StopMixStreamsService", "", "") + return +} + +// CreateStopMixStreamsServiceResponse creates a response to parse from StopMixStreamsService response +func CreateStopMixStreamsServiceResponse() (response *StopMixStreamsServiceResponse) { + response = &StopMixStreamsServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_ali_business_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_ali_business_config.go new file mode 100644 index 0000000..71e6f68 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_ali_business_config.go @@ -0,0 +1,24 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AliBusinessConfig is a nested struct in cdn response +type AliBusinessConfig struct { + AliBusinessTable string `json:"AliBusinessTable" xml:"AliBusinessTable"` + AliBusinessType string `json:"AliBusinessType" xml:"AliBusinessType"` + ConfigId string `json:"ConfigId" xml:"ConfigId"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_all_url_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_all_url_list.go new file mode 100644 index 0000000..b0e74bf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_all_url_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AllUrlList is a nested struct in cdn response +type AllUrlList struct { + UrlList []UrlList `json:"UrlList" xml:"UrlList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_attack_ip_data_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_attack_ip_data_list.go new file mode 100644 index 0000000..48a6271 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_attack_ip_data_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AttackIpDataList is a nested struct in cdn response +type AttackIpDataList struct { + AttackIpDatas []AttackIpDatas `json:"AttackIpDatas" xml:"AttackIpDatas"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_attack_ip_datas.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_attack_ip_datas.go new file mode 100644 index 0000000..c7e045c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_attack_ip_datas.go @@ -0,0 +1,23 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AttackIpDatas is a nested struct in cdn response +type AttackIpDatas struct { + Ip string `json:"Ip" xml:"Ip"` + AttackCount string `json:"AttackCount" xml:"AttackCount"` + Result string `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_attacked_url_data_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_attacked_url_data_list.go new file mode 100644 index 0000000..a6a58b5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_attacked_url_data_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AttackedUrlDataList is a nested struct in cdn response +type AttackedUrlDataList struct { + AttackedUrlDatas []AttackedUrlDatas `json:"AttackedUrlDatas" xml:"AttackedUrlDatas"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_attacked_url_datas.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_attacked_url_datas.go new file mode 100644 index 0000000..fa22e0b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_attacked_url_datas.go @@ -0,0 +1,23 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AttackedUrlDatas is a nested struct in cdn response +type AttackedUrlDatas struct { + Url string `json:"Url" xml:"Url"` + AttackCount string `json:"AttackCount" xml:"AttackCount"` + Result string `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_avg_rt_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_avg_rt_per_interval.go new file mode 100644 index 0000000..67c8bc0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_avg_rt_per_interval.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AvgRTPerInterval is a nested struct in cdn response +type AvgRTPerInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_data_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_data_list.go new file mode 100644 index 0000000..4d30758 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_data_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BpsDataList is a nested struct in cdn response +type BpsDataList struct { + BpsDataModel []BpsDataModel `json:"BpsDataModel" xml:"BpsDataModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_data_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_data_model.go new file mode 100644 index 0000000..c8938a6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_data_model.go @@ -0,0 +1,23 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BpsDataModel is a nested struct in cdn response +type BpsDataModel struct { + LocationName string `json:"LocationName" xml:"LocationName"` + IspName string `json:"IspName" xml:"IspName"` + Bps int `json:"Bps" xml:"Bps"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_data_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_data_per_interval.go new file mode 100644 index 0000000..db69be1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_data_per_interval.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BpsDataPerInterval is a nested struct in cdn response +type BpsDataPerInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_datas_in_batch_describe_domain_bps_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_datas_in_batch_describe_domain_bps_data.go new file mode 100644 index 0000000..227c85b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_datas_in_batch_describe_domain_bps_data.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BpsDatasInBatchDescribeDomainBpsData is a nested struct in cdn response +type BpsDatasInBatchDescribeDomainBpsData struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_datas_in_describe_domain_downstream_bps_of_edge.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_datas_in_describe_domain_downstream_bps_of_edge.go new file mode 100644 index 0000000..eb50a38 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_datas_in_describe_domain_downstream_bps_of_edge.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BpsDatasInDescribeDomainDownstreamBpsOfEdge is a nested struct in cdn response +type BpsDatasInDescribeDomainDownstreamBpsOfEdge struct { + DomainBpsModel []DomainBpsModel `json:"DomainBpsModel" xml:"DomainBpsModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_datas_in_describe_domain_upstream_bps_of_edge.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_datas_in_describe_domain_upstream_bps_of_edge.go new file mode 100644 index 0000000..742feae --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_datas_in_describe_domain_upstream_bps_of_edge.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BpsDatasInDescribeDomainUpstreamBpsOfEdge is a nested struct in cdn response +type BpsDatasInDescribeDomainUpstreamBpsOfEdge struct { + DomainBpsModel []DomainBpsModel `json:"DomainBpsModel" xml:"DomainBpsModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_datas_in_describe_domain_upstream_of_center.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_datas_in_describe_domain_upstream_of_center.go new file mode 100644 index 0000000..abf957c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_datas_in_describe_domain_upstream_of_center.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BpsDatasInDescribeDomainUpstreamOfCenter is a nested struct in cdn response +type BpsDatasInDescribeDomainUpstreamOfCenter struct { + DomainBpsModel []DomainBpsModel `json:"DomainBpsModel" xml:"DomainBpsModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_datas_in_describe_live_stream_bps_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_datas_in_describe_live_stream_bps_data.go new file mode 100644 index 0000000..2261243 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_datas_in_describe_live_stream_bps_data.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BpsDatasInDescribeLiveStreamBpsData is a nested struct in cdn response +type BpsDatasInDescribeLiveStreamBpsData struct { + DomainBpsModel []DomainBpsModel `json:"DomainBpsModel" xml:"DomainBpsModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_model.go new file mode 100644 index 0000000..ced5670 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_bps_model.go @@ -0,0 +1,22 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BpsModel is a nested struct in cdn response +type BpsModel struct { + Bps float64 `json:"Bps" xml:"Bps"` + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_byte_hit_rate_data_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_byte_hit_rate_data_model.go new file mode 100644 index 0000000..d0bc6d4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_byte_hit_rate_data_model.go @@ -0,0 +1,22 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ByteHitRateDataModel is a nested struct in cdn response +type ByteHitRateDataModel struct { + ByteHitRate float64 `json:"ByteHitRate" xml:"ByteHitRate"` + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cache_expired_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cache_expired_config.go new file mode 100644 index 0000000..bf47d86 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cache_expired_config.go @@ -0,0 +1,26 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CacheExpiredConfig is a nested struct in cdn response +type CacheExpiredConfig struct { + ConfigId string `json:"ConfigId" xml:"ConfigId"` + CacheType string `json:"CacheType" xml:"CacheType"` + CacheContent string `json:"CacheContent" xml:"CacheContent"` + TTL string `json:"TTL" xml:"TTL"` + Weight string `json:"Weight" xml:"Weight"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cache_expired_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cache_expired_configs.go new file mode 100644 index 0000000..b5577b7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cache_expired_configs.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CacheExpiredConfigs is a nested struct in cdn response +type CacheExpiredConfigs struct { + CacheExpiredConfig []CacheExpiredConfig `json:"CacheExpiredConfig" xml:"CacheExpiredConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cc_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cc_config.go new file mode 100644 index 0000000..7a79f3b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cc_config.go @@ -0,0 +1,25 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CcConfig is a nested struct in cdn response +type CcConfig struct { + ConfigId string `json:"ConfigId" xml:"ConfigId"` + Enable string `json:"Enable" xml:"Enable"` + AllowIps string `json:"AllowIps" xml:"AllowIps"` + BlockIps string `json:"BlockIps" xml:"BlockIps"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cc_data_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cc_data_list.go new file mode 100644 index 0000000..0fca13f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cc_data_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CCDataList is a nested struct in cdn response +type CCDataList struct { + CCDatas []CCDatas `json:"CCDatas" xml:"CCDatas"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cc_datas.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cc_datas.go new file mode 100644 index 0000000..992107c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cc_datas.go @@ -0,0 +1,22 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CCDatas is a nested struct in cdn response +type CCDatas struct { + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` + Count string `json:"Count" xml:"Count"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cdn_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cdn_monitor_data.go new file mode 100644 index 0000000..aac465d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cdn_monitor_data.go @@ -0,0 +1,26 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CDNMonitorData is a nested struct in cdn response +type CDNMonitorData struct { + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` + QueryPerSecond string `json:"QueryPerSecond" xml:"QueryPerSecond"` + BytesPerSecond string `json:"BytesPerSecond" xml:"BytesPerSecond"` + BytesHitRate string `json:"BytesHitRate" xml:"BytesHitRate"` + RequestHitRate string `json:"RequestHitRate" xml:"RequestHitRate"` + AverageObjectSize string `json:"AverageObjectSize" xml:"AverageObjectSize"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cdn_task.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cdn_task.go new file mode 100644 index 0000000..a56e74a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cdn_task.go @@ -0,0 +1,27 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CDNTask is a nested struct in cdn response +type CDNTask struct { + TaskId string `json:"TaskId" xml:"TaskId"` + ObjectPath string `json:"ObjectPath" xml:"ObjectPath"` + Process string `json:"Process" xml:"Process"` + Status string `json:"Status" xml:"Status"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Description string `json:"Description" xml:"Description"` + ObjectType string `json:"ObjectType" xml:"ObjectType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cdn_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cdn_type.go new file mode 100644 index 0000000..48b007a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cdn_type.go @@ -0,0 +1,22 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CdnType is a nested struct in cdn response +type CdnType struct { + Type string `json:"Type" xml:"Type"` + Desc string `json:"Desc" xml:"Desc"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cdn_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cdn_types.go new file mode 100644 index 0000000..8a44f94 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cdn_types.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CdnTypes is a nested struct in cdn response +type CdnTypes struct { + CdnType []CdnType `json:"CdnType" xml:"CdnType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cert_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cert_info.go new file mode 100644 index 0000000..f53a7d6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cert_info.go @@ -0,0 +1,30 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CertInfo is a nested struct in cdn response +type CertInfo struct { + DomainName string `json:"DomainName" xml:"DomainName"` + CertName string `json:"CertName" xml:"CertName"` + CertDomainName string `json:"CertDomainName" xml:"CertDomainName"` + CertExpireTime string `json:"CertExpireTime" xml:"CertExpireTime"` + CertLife string `json:"CertLife" xml:"CertLife"` + CertOrg string `json:"CertOrg" xml:"CertOrg"` + CertType string `json:"CertType" xml:"CertType"` + ServerCertificateStatus string `json:"ServerCertificateStatus" xml:"ServerCertificateStatus"` + Status string `json:"Status" xml:"Status"` + ServerCertificate string `json:"ServerCertificate" xml:"ServerCertificate"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cert_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cert_infos.go new file mode 100644 index 0000000..0c4dca0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cert_infos.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CertInfos is a nested struct in cdn response +type CertInfos struct { + CertInfo []CertInfo `json:"CertInfo" xml:"CertInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cname_datas.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cname_datas.go new file mode 100644 index 0000000..aa84e23 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_cname_datas.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CnameDatas is a nested struct in cdn response +type CnameDatas struct { + Data []Data `json:"Data" xml:"Data"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_code_proportion_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_code_proportion_data.go new file mode 100644 index 0000000..21e0284 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_code_proportion_data.go @@ -0,0 +1,23 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CodeProportionData is a nested struct in cdn response +type CodeProportionData struct { + Code string `json:"Code" xml:"Code"` + Proportion string `json:"Proportion" xml:"Proportion"` + Count string `json:"Count" xml:"Count"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_config_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_config_ids.go new file mode 100644 index 0000000..4ff6587 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_config_ids.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ConfigIds is a nested struct in cdn response +type ConfigIds struct { + ConfigId []string `json:"ConfigId" xml:"ConfigId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_configs.go new file mode 100644 index 0000000..f66df03 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_configs.go @@ -0,0 +1,22 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Configs is a nested struct in cdn response +type Configs struct { + OssLogConfig OssLogConfig `json:"OssLogConfig" xml:"OssLogConfig"` + GreenManagerConfig GreenManagerConfig `json:"GreenManagerConfig" xml:"GreenManagerConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_content.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_content.go new file mode 100644 index 0000000..f39754a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_content.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Content is a nested struct in cdn response +type Content struct { + Data []Data `json:"Data" xml:"Data"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_control_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_control_info.go new file mode 100644 index 0000000..3c07268 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_control_info.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ControlInfo is a nested struct in cdn response +type ControlInfo struct { + LiveStreamControlInfo []LiveStreamControlInfo `json:"LiveStreamControlInfo" xml:"LiveStreamControlInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data.go new file mode 100644 index 0000000..7fdde81 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data.go @@ -0,0 +1,26 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 cdn response +type Data struct { + Domain string `json:"Domain" xml:"Domain"` + Cname string `json:"Cname" xml:"Cname"` + Time string `json:"Time" xml:"Time"` + Status int `json:"Status" xml:"Status"` + More3s string `json:"More3s" xml:"More3s"` + More5s string `json:"More5s" xml:"More5s"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_in_describe_domain_real_time_bps_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_in_describe_domain_real_time_bps_data.go new file mode 100644 index 0000000..447e56e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_in_describe_domain_real_time_bps_data.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInDescribeDomainRealTimeBpsData is a nested struct in cdn response +type DataInDescribeDomainRealTimeBpsData struct { + BpsModel []BpsModel `json:"BpsModel" xml:"BpsModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_in_describe_domain_real_time_byte_hit_rate_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_in_describe_domain_real_time_byte_hit_rate_data.go new file mode 100644 index 0000000..df0452b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_in_describe_domain_real_time_byte_hit_rate_data.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInDescribeDomainRealTimeByteHitRateData is a nested struct in cdn response +type DataInDescribeDomainRealTimeByteHitRateData struct { + ByteHitRateDataModel []ByteHitRateDataModel `json:"ByteHitRateDataModel" xml:"ByteHitRateDataModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_in_describe_domain_real_time_qps_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_in_describe_domain_real_time_qps_data.go new file mode 100644 index 0000000..0860d68 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_in_describe_domain_real_time_qps_data.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInDescribeDomainRealTimeQpsData is a nested struct in cdn response +type DataInDescribeDomainRealTimeQpsData struct { + QpsModel []QpsModel `json:"QpsModel" xml:"QpsModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_in_describe_domain_real_time_req_hit_rate_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_in_describe_domain_real_time_req_hit_rate_data.go new file mode 100644 index 0000000..cb8037f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_in_describe_domain_real_time_req_hit_rate_data.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInDescribeDomainRealTimeReqHitRateData is a nested struct in cdn response +type DataInDescribeDomainRealTimeReqHitRateData struct { + ReqHitRateDataModel []ReqHitRateDataModel `json:"ReqHitRateDataModel" xml:"ReqHitRateDataModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_module.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_module.go new file mode 100644 index 0000000..ad6ff91 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_module.go @@ -0,0 +1,41 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataModule is a nested struct in cdn response +type DataModule struct { + OverseasValue string `json:"OverseasValue" xml:"OverseasValue"` + DynamicValue string `json:"DynamicValue" xml:"DynamicValue"` + Timestamp string `json:"Timestamp" xml:"Timestamp"` + DomainName string `json:"DomainName" xml:"DomainName"` + L2Value string `json:"L2Value" xml:"L2Value"` + StaticOverseasValue string `json:"StaticOverseasValue" xml:"StaticOverseasValue"` + DynamicOverseasValue string `json:"DynamicOverseasValue" xml:"DynamicOverseasValue"` + L1InnerBps float64 `json:"L1InnerBps" xml:"L1InnerBps"` + L1Bps float64 `json:"L1Bps" xml:"L1Bps"` + DomesticValue string `json:"DomesticValue" xml:"DomesticValue"` + AccValue string `json:"AccValue" xml:"AccValue"` + Value string `json:"Value" xml:"Value"` + AccDomesticValue string `json:"AccDomesticValue" xml:"AccDomesticValue"` + StaticValue string `json:"StaticValue" xml:"StaticValue"` + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` + DynamicDomesticValue string `json:"DynamicDomesticValue" xml:"DynamicDomesticValue"` + StaticDomesticValue string `json:"StaticDomesticValue" xml:"StaticDomesticValue"` + L1OutBps float64 `json:"L1OutBps" xml:"L1OutBps"` + DomesticL2Value string `json:"DomesticL2Value" xml:"DomesticL2Value"` + AccOverseasValue string `json:"AccOverseasValue" xml:"AccOverseasValue"` + OverseasL2Value string `json:"OverseasL2Value" xml:"OverseasL2Value"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_per_interval_in_describe_domain_real_time_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_per_interval_in_describe_domain_real_time_data.go new file mode 100644 index 0000000..69a191c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_per_interval_in_describe_domain_real_time_data.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataPerIntervalInDescribeDomainRealTimeData is a nested struct in cdn response +type DataPerIntervalInDescribeDomainRealTimeData struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_per_interval_in_describe_extensive_domain_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_per_interval_in_describe_extensive_domain_data.go new file mode 100644 index 0000000..7e43642 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_data_per_interval_in_describe_extensive_domain_data.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataPerIntervalInDescribeExtensiveDomainData is a nested struct in cdn response +type DataPerIntervalInDescribeExtensiveDomainData struct { + UsageData []UsageDataInDescribeExtensiveDomainData `json:"UsageData" xml:"UsageData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_app_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_app_info.go new file mode 100644 index 0000000..865decc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_app_info.go @@ -0,0 +1,28 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainAppInfo is a nested struct in cdn response +type DomainAppInfo struct { + AppDomain string `json:"AppDomain" xml:"AppDomain"` + AppId string `json:"AppId" xml:"AppId"` + AppKey string `json:"AppKey" xml:"AppKey"` + AppOssBucket string `json:"AppOssBucket" xml:"AppOssBucket"` + AppOssHost string `json:"AppOssHost" xml:"AppOssHost"` + AppOwnerId string `json:"AppOwnerId" xml:"AppOwnerId"` + AppSecret string `json:"AppSecret" xml:"AppSecret"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_app_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_app_list.go new file mode 100644 index 0000000..426e16b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_app_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainAppList is a nested struct in cdn response +type DomainAppList struct { + DomainAppInfo []DomainAppInfo `json:"DomainAppInfo" xml:"DomainAppInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_base_detail_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_base_detail_model.go new file mode 100644 index 0000000..9d03e4b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_base_detail_model.go @@ -0,0 +1,30 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainBaseDetailModel is a nested struct in cdn response +type DomainBaseDetailModel struct { + Cname string `json:"Cname" xml:"Cname"` + CdnType string `json:"CdnType" xml:"CdnType"` + DomainStatus string `json:"DomainStatus" xml:"DomainStatus"` + SourceType string `json:"SourceType" xml:"SourceType"` + Region string `json:"Region" xml:"Region"` + DomainName string `json:"DomainName" xml:"DomainName"` + Remark string `json:"Remark" xml:"Remark"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + GmtCreated string `json:"GmtCreated" xml:"GmtCreated"` + Sources SourcesInDescribeCdnDomainBaseDetail `json:"Sources" xml:"Sources"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_bps_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_bps_model.go new file mode 100644 index 0000000..4c3a5ff --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_bps_model.go @@ -0,0 +1,22 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainBpsModel is a nested struct in cdn response +type DomainBpsModel struct { + Time string `json:"Time" xml:"Time"` + Bps float64 `json:"Bps" xml:"Bps"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_config.go new file mode 100644 index 0000000..f4f5d97 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_config.go @@ -0,0 +1,24 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainConfig is a nested struct in cdn response +type DomainConfig struct { + FunctionName string `json:"FunctionName" xml:"FunctionName"` + ConfigId string `json:"ConfigId" xml:"ConfigId"` + Status string `json:"Status" xml:"Status"` + FunctionArgs FunctionArgs `json:"FunctionArgs" xml:"FunctionArgs"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_configs.go new file mode 100644 index 0000000..f7b7312 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_configs.go @@ -0,0 +1,47 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainConfigs is a nested struct in cdn response +type DomainConfigs struct { + NotifyUrlConfig NotifyUrlConfig `json:"NotifyUrlConfig" xml:"NotifyUrlConfig"` + PageCompressConfig PageCompressConfig `json:"PageCompressConfig" xml:"PageCompressConfig"` + OptimizeConfig OptimizeConfig `json:"OptimizeConfig" xml:"OptimizeConfig"` + ReqAuthConfig ReqAuthConfig `json:"ReqAuthConfig" xml:"ReqAuthConfig"` + RangeConfig RangeConfig `json:"RangeConfig" xml:"RangeConfig"` + IpAllowListConfig IpAllowListConfig `json:"IpAllowListConfig" xml:"IpAllowListConfig"` + ErrorPageConfig ErrorPageConfig `json:"ErrorPageConfig" xml:"ErrorPageConfig"` + ForwardSchemeConfig ForwardSchemeConfig `json:"ForwardSchemeConfig" xml:"ForwardSchemeConfig"` + AliBusinessConfig AliBusinessConfig `json:"AliBusinessConfig" xml:"AliBusinessConfig"` + RefererConfig RefererConfig `json:"RefererConfig" xml:"RefererConfig"` + CcConfig CcConfig `json:"CcConfig" xml:"CcConfig"` + SrcHostConfig SrcHostConfig `json:"SrcHostConfig" xml:"SrcHostConfig"` + MacServiceConfig MacServiceConfig `json:"MacServiceConfig" xml:"MacServiceConfig"` + IgnoreQueryStringConfig IgnoreQueryStringConfig `json:"IgnoreQueryStringConfig" xml:"IgnoreQueryStringConfig"` + L2OssKeyConfig L2OssKeyConfig `json:"L2OssKeyConfig" xml:"L2OssKeyConfig"` + WafConfig WafConfig `json:"WafConfig" xml:"WafConfig"` + RedirectTypeConfig RedirectTypeConfig `json:"RedirectTypeConfig" xml:"RedirectTypeConfig"` + GreenManagerConfig GreenManagerConfig `json:"GreenManagerConfig" xml:"GreenManagerConfig"` + RemoveQueryStringConfig RemoveQueryStringConfig `json:"RemoveQueryStringConfig" xml:"RemoveQueryStringConfig"` + HttpsOptionConfig HttpsOptionConfig `json:"HttpsOptionConfig" xml:"HttpsOptionConfig"` + VideoSeekConfig VideoSeekConfig `json:"VideoSeekConfig" xml:"VideoSeekConfig"` + ReqHeaderConfigs ReqHeaderConfigs `json:"ReqHeaderConfigs" xml:"ReqHeaderConfigs"` + HttpHeaderConfigs HttpHeaderConfigs `json:"HttpHeaderConfigs" xml:"HttpHeaderConfigs"` + CacheExpiredConfigs CacheExpiredConfigs `json:"CacheExpiredConfigs" xml:"CacheExpiredConfigs"` + DynamicConfigs DynamicConfigs `json:"DynamicConfigs" xml:"DynamicConfigs"` + SetVarsConfigs SetVarsConfigs `json:"SetVarsConfigs" xml:"SetVarsConfigs"` + HttpErrorPageConfigs HttpErrorPageConfigs `json:"HttpErrorPageConfigs" xml:"HttpErrorPageConfigs"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_configs_in_describe_cdn_domain_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_configs_in_describe_cdn_domain_configs.go new file mode 100644 index 0000000..3371942 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_configs_in_describe_cdn_domain_configs.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainConfigsInDescribeCdnDomainConfigs is a nested struct in cdn response +type DomainConfigsInDescribeCdnDomainConfigs struct { + DomainConfig []DomainConfig `json:"DomainConfig" xml:"DomainConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_detail.go new file mode 100644 index 0000000..7742a1a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_detail.go @@ -0,0 +1,48 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainDetail is a nested struct in cdn response +type DomainDetail struct { + AliUid string `json:"AliUid" xml:"AliUid"` + AoneId string `json:"AoneId" xml:"AoneId"` + BizId int `json:"BizId" xml:"BizId"` + BizName string `json:"BizName" xml:"BizName"` + Category string `json:"Category" xml:"Category"` + CheckUrl string `json:"CheckUrl" xml:"CheckUrl"` + Cname string `json:"Cname" xml:"Cname"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + DomainId int `json:"DomainId" xml:"DomainId"` + DomainName string `json:"DomainName" xml:"DomainName"` + Enabled string `json:"Enabled" xml:"Enabled"` + HitRate int `json:"HitRate" xml:"HitRate"` + IsMadeUp int `json:"IsMadeUp" xml:"IsMadeUp"` + IsRegister int `json:"IsRegister" xml:"IsRegister"` + MaxBps int `json:"MaxBps" xml:"MaxBps"` + ProductId int `json:"ProductId" xml:"ProductId"` + Remark string `json:"Remark" xml:"Remark"` + ScheduleDomainId int `json:"ScheduleDomainId" xml:"ScheduleDomainId"` + ScheduleDomainName string `json:"ScheduleDomainName" xml:"ScheduleDomainName"` + ScheduleDomainExt int `json:"ScheduleDomainExt" xml:"ScheduleDomainExt"` + SourceId int `json:"SourceId" xml:"SourceId"` + SslFlag bool `json:"SslFlag" xml:"SslFlag"` + ServerCertificateStatus string `json:"ServerCertificateStatus" xml:"ServerCertificateStatus"` + ServerCertificate string `json:"ServerCertificate" xml:"ServerCertificate"` + SwdmExt int `json:"SwdmExt" xml:"SwdmExt"` + UserId int `json:"UserId" xml:"UserId"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + Sources SourcesInGetDomain `json:"Sources" xml:"Sources"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_info.go new file mode 100644 index 0000000..3791695 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_info.go @@ -0,0 +1,25 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainInfo is a nested struct in cdn response +type DomainInfo struct { + DomainName string `json:"DomainName" xml:"DomainName"` + DomainCname string `json:"DomainCname" xml:"DomainCname"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_infos.go new file mode 100644 index 0000000..d33a1bf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_infos.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainInfos is a nested struct in cdn response +type DomainInfos struct { + DomainInfo []DomainInfo `json:"domainInfo" xml:"domainInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_log_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_log_detail.go new file mode 100644 index 0000000..eee3e1a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_log_detail.go @@ -0,0 +1,25 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainLogDetail is a nested struct in cdn response +type DomainLogDetail struct { + LogName string `json:"LogName" xml:"LogName"` + LogPath string `json:"LogPath" xml:"LogPath"` + LogSize int `json:"LogSize" xml:"LogSize"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_log_details.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_log_details.go new file mode 100644 index 0000000..67656ce --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_log_details.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainLogDetails is a nested struct in cdn response +type DomainLogDetails struct { + DomainLogDetail []DomainLogDetail `json:"DomainLogDetail" xml:"DomainLogDetail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_log_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_log_model.go new file mode 100644 index 0000000..2d60aae --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_log_model.go @@ -0,0 +1,22 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainLogModel is a nested struct in cdn response +type DomainLogModel struct { + DomainName string `json:"DomainName" xml:"DomainName"` + DomainLogDetails DomainLogDetails `json:"DomainLogDetails" xml:"DomainLogDetails"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_mapping_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_mapping_model.go new file mode 100644 index 0000000..2d0ce1e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_mapping_model.go @@ -0,0 +1,22 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainMappingModel is a nested struct in cdn response +type DomainMappingModel struct { + PushDomain string `json:"PushDomain" xml:"PushDomain"` + PullDomain string `json:"PullDomain" xml:"PullDomain"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_mapping_models.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_mapping_models.go new file mode 100644 index 0000000..c2dc0f4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_mapping_models.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainMappingModels is a nested struct in cdn response +type DomainMappingModels struct { + DomainMappingModel []DomainMappingModel `json:"DomainMappingModel" xml:"DomainMappingModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_transcode_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_transcode_info.go new file mode 100644 index 0000000..69e24ae --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_transcode_info.go @@ -0,0 +1,26 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainTranscodeInfo is a nested struct in cdn response +type DomainTranscodeInfo struct { + TranscodeApp string `json:"TranscodeApp" xml:"TranscodeApp"` + TranscodeId string `json:"TranscodeId" xml:"TranscodeId"` + TranscodeName string `json:"TranscodeName" xml:"TranscodeName"` + TranscodeRecord string `json:"TranscodeRecord" xml:"TranscodeRecord"` + TranscodeSnapshot string `json:"TranscodeSnapshot" xml:"TranscodeSnapshot"` + TranscodeTemplate string `json:"TranscodeTemplate" xml:"TranscodeTemplate"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_transcode_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_transcode_list.go new file mode 100644 index 0000000..a8e5c30 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domain_transcode_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainTranscodeList is a nested struct in cdn response +type DomainTranscodeList struct { + DomainTranscodeInfo []DomainTranscodeInfo `json:"DomainTranscodeInfo" xml:"DomainTranscodeInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domains_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domains_data.go new file mode 100644 index 0000000..ca15ed0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domains_data.go @@ -0,0 +1,23 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainsData is a nested struct in cdn response +type DomainsData struct { + Source string `json:"Source" xml:"Source"` + Domains DomainsInDescribeDomainsBySource `json:"Domains" xml:"Domains"` + DomainInfos DomainInfos `json:"DomainInfos" xml:"DomainInfos"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domains_in_describe_domains_by_source.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domains_in_describe_domains_by_source.go new file mode 100644 index 0000000..bcacfe8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domains_in_describe_domains_by_source.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainsInDescribeDomainsBySource is a nested struct in cdn response +type DomainsInDescribeDomainsBySource struct { + DomainNames []string `json:"domainNames" xml:"domainNames"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domains_in_describe_user_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domains_in_describe_user_domains.go new file mode 100644 index 0000000..17ae309 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domains_in_describe_user_domains.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainsInDescribeUserDomains is a nested struct in cdn response +type DomainsInDescribeUserDomains struct { + PageData []PageData `json:"PageData" xml:"PageData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domains_in_list_domains_by_log_config_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domains_in_list_domains_by_log_config_id.go new file mode 100644 index 0000000..d2a9a51 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domains_in_list_domains_by_log_config_id.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainsInListDomainsByLogConfigId is a nested struct in cdn response +type DomainsInListDomainsByLogConfigId struct { + Domain []string `json:"Domain" xml:"Domain"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domains_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domains_list.go new file mode 100644 index 0000000..46e7564 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_domains_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainsList is a nested struct in cdn response +type DomainsList struct { + DomainsData []DomainsData `json:"DomainsData" xml:"DomainsData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_dynamic_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_dynamic_config.go new file mode 100644 index 0000000..e8b6c5a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_dynamic_config.go @@ -0,0 +1,28 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DynamicConfig is a nested struct in cdn response +type DynamicConfig struct { + ConfigId string `json:"ConfigId" xml:"ConfigId"` + Enable string `json:"Enable" xml:"Enable"` + DynamicOrigin string `json:"DynamicOrigin" xml:"DynamicOrigin"` + StaticType string `json:"StaticType" xml:"StaticType"` + StaticUri string `json:"StaticUri" xml:"StaticUri"` + StaticPath string `json:"StaticPath" xml:"StaticPath"` + DynamicCacheControl string `json:"DynamicCacheControl" xml:"DynamicCacheControl"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_dynamic_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_dynamic_configs.go new file mode 100644 index 0000000..e36c4b7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_dynamic_configs.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DynamicConfigs is a nested struct in cdn response +type DynamicConfigs struct { + DynamicConfig []DynamicConfig `json:"DynamicConfig" xml:"DynamicConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_error_page_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_error_page_config.go new file mode 100644 index 0000000..79883e2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_error_page_config.go @@ -0,0 +1,25 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ErrorPageConfig is a nested struct in cdn response +type ErrorPageConfig struct { + ConfigId string `json:"ConfigId" xml:"ConfigId"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + PageType string `json:"PageType" xml:"PageType"` + CustomPageUrl string `json:"CustomPageUrl" xml:"CustomPageUrl"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_fc_trigger.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_fc_trigger.go new file mode 100644 index 0000000..18a70d6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_fc_trigger.go @@ -0,0 +1,26 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FCTrigger is a nested struct in cdn response +type FCTrigger struct { + EventMetaName string `json:"EventMetaName" xml:"EventMetaName"` + EventMetaVersion string `json:"EventMetaVersion" xml:"EventMetaVersion"` + TriggerARN string `json:"TriggerARN" xml:"TriggerARN"` + RoleARN string `json:"RoleARN" xml:"RoleARN"` + SourceArn string `json:"SourceArn" xml:"SourceArn"` + Notes string `json:"Notes" xml:"Notes"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_file_size_proportion_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_file_size_proportion_data.go new file mode 100644 index 0000000..ec4a741 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_file_size_proportion_data.go @@ -0,0 +1,22 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FileSizeProportionData is a nested struct in cdn response +type FileSizeProportionData struct { + FileSize string `json:"FileSize" xml:"FileSize"` + Proportion string `json:"Proportion" xml:"Proportion"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_file_size_proportion_data_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_file_size_proportion_data_interval.go new file mode 100644 index 0000000..8eef6e2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_file_size_proportion_data_interval.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FileSizeProportionDataInterval is a nested struct in cdn response +type FileSizeProportionDataInterval struct { + UsageData []UsageDataInDescribeDomainFileSizeProportionData `json:"UsageData" xml:"UsageData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_flow_data_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_flow_data_per_interval.go new file mode 100644 index 0000000..060e416 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_flow_data_per_interval.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FlowDataPerInterval is a nested struct in cdn response +type FlowDataPerInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_forward_scheme_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_forward_scheme_config.go new file mode 100644 index 0000000..37c59f6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_forward_scheme_config.go @@ -0,0 +1,25 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ForwardSchemeConfig is a nested struct in cdn response +type ForwardSchemeConfig struct { + ConfigId string `json:"ConfigId" xml:"ConfigId"` + Enable string `json:"Enable" xml:"Enable"` + SchemeOrigin string `json:"SchemeOrigin" xml:"SchemeOrigin"` + SchemeOriginPort string `json:"SchemeOriginPort" xml:"SchemeOriginPort"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_data_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_data_infos.go new file mode 100644 index 0000000..5246619 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_data_infos.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FrameDataInfos is a nested struct in cdn response +type FrameDataInfos struct { + FrameDataModel []FrameDataModel `json:"FrameDataModel" xml:"FrameDataModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_data_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_data_model.go new file mode 100644 index 0000000..06ecaa7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_data_model.go @@ -0,0 +1,28 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FrameDataModel is a nested struct in cdn response +type FrameDataModel struct { + Time string `json:"Time" xml:"Time"` + Stream string `json:"Stream" xml:"Stream"` + ClientAddr string `json:"ClientAddr" xml:"ClientAddr"` + Server string `json:"Server" xml:"Server"` + AudioRate float64 `json:"AudioRate" xml:"AudioRate"` + AudioByte float64 `json:"AudioByte" xml:"AudioByte"` + FrameRate float64 `json:"FrameRate" xml:"FrameRate"` + FrameByte float64 `json:"FrameByte" xml:"FrameByte"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_loss_ratio_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_loss_ratio_info.go new file mode 100644 index 0000000..51b17c0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_loss_ratio_info.go @@ -0,0 +1,23 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FrameLossRatioInfo is a nested struct in cdn response +type FrameLossRatioInfo struct { + StreamUrl string `json:"StreamUrl" xml:"StreamUrl"` + FrameLossRatio float64 `json:"FrameLossRatio" xml:"FrameLossRatio"` + Time string `json:"Time" xml:"Time"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_loss_ratio_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_loss_ratio_infos.go new file mode 100644 index 0000000..267900e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_loss_ratio_infos.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FrameLossRatioInfos is a nested struct in cdn response +type FrameLossRatioInfos struct { + FrameLossRatioInfo []FrameLossRatioInfo `json:"FrameLossRatioInfo" xml:"FrameLossRatioInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_rate_and_bit_rate_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_rate_and_bit_rate_info.go new file mode 100644 index 0000000..2f6c865 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_rate_and_bit_rate_info.go @@ -0,0 +1,25 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FrameRateAndBitRateInfo is a nested struct in cdn response +type FrameRateAndBitRateInfo struct { + BitRate float64 `json:"BitRate" xml:"BitRate"` + Time string `json:"Time" xml:"Time"` + VideoFrameRate float64 `json:"VideoFrameRate" xml:"VideoFrameRate"` + AudioFrameRate float64 `json:"AudioFrameRate" xml:"AudioFrameRate"` + StreamUrl string `json:"StreamUrl" xml:"StreamUrl"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_rate_and_bit_rate_infos_in_describe_live_stream_bit_rate_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_rate_and_bit_rate_infos_in_describe_live_stream_bit_rate_data.go new file mode 100644 index 0000000..8dc7c82 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_rate_and_bit_rate_infos_in_describe_live_stream_bit_rate_data.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FrameRateAndBitRateInfosInDescribeLiveStreamBitRateData is a nested struct in cdn response +type FrameRateAndBitRateInfosInDescribeLiveStreamBitRateData struct { + FrameRateAndBitRateInfo []FrameRateAndBitRateInfo `json:"FrameRateAndBitRateInfo" xml:"FrameRateAndBitRateInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_rate_and_bit_rate_infos_in_describe_live_stream_frame_and_bit_rate_by_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_rate_and_bit_rate_infos_in_describe_live_stream_frame_and_bit_rate_by_domain.go new file mode 100644 index 0000000..f160817 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_rate_and_bit_rate_infos_in_describe_live_stream_frame_and_bit_rate_by_domain.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FrameRateAndBitRateInfosInDescribeLiveStreamFrameAndBitRateByDomain is a nested struct in cdn response +type FrameRateAndBitRateInfosInDescribeLiveStreamFrameAndBitRateByDomain struct { + FrameRateAndBitRateInfo []FrameRateAndBitRateInfo `json:"FrameRateAndBitRateInfo" xml:"FrameRateAndBitRateInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_rate_and_bit_rate_infos_in_describe_live_stream_room_bit_rate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_rate_and_bit_rate_infos_in_describe_live_stream_room_bit_rate.go new file mode 100644 index 0000000..7a141f3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_rate_and_bit_rate_infos_in_describe_live_stream_room_bit_rate.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FrameRateAndBitRateInfosInDescribeLiveStreamRoomBitRate is a nested struct in cdn response +type FrameRateAndBitRateInfosInDescribeLiveStreamRoomBitRate struct { + FrameRateAndBitRateInfo []FrameRateAndBitRateInfo `json:"FrameRateAndBitRateInfo" xml:"FrameRateAndBitRateInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_rate_and_bit_rate_infos_in_describe_live_streams_frame_rate_and_bit_rate_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_rate_and_bit_rate_infos_in_describe_live_streams_frame_rate_and_bit_rate_data.go new file mode 100644 index 0000000..684591f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_frame_rate_and_bit_rate_infos_in_describe_live_streams_frame_rate_and_bit_rate_data.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FrameRateAndBitRateInfosInDescribeLiveStreamsFrameRateAndBitRateData is a nested struct in cdn response +type FrameRateAndBitRateInfosInDescribeLiveStreamsFrameRateAndBitRateData struct { + FrameRateAndBitRateInfo []FrameRateAndBitRateInfo `json:"FrameRateAndBitRateInfo" xml:"FrameRateAndBitRateInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_function_arg.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_function_arg.go new file mode 100644 index 0000000..b5a667e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_function_arg.go @@ -0,0 +1,22 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FunctionArg is a nested struct in cdn response +type FunctionArg struct { + ArgName string `json:"ArgName" xml:"ArgName"` + ArgValue string `json:"ArgValue" xml:"ArgValue"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_function_args.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_function_args.go new file mode 100644 index 0000000..351a0a6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_function_args.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FunctionArgs is a nested struct in cdn response +type FunctionArgs struct { + FunctionArg []FunctionArg `json:"FunctionArg" xml:"FunctionArg"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_get_domain_detail_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_get_domain_detail_model.go new file mode 100644 index 0000000..f63c4a3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_get_domain_detail_model.go @@ -0,0 +1,38 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// GetDomainDetailModel is a nested struct in cdn response +type GetDomainDetailModel struct { + GmtCreated string `json:"GmtCreated" xml:"GmtCreated"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + SourceType string `json:"SourceType" xml:"SourceType"` + DomainStatus string `json:"DomainStatus" xml:"DomainStatus"` + SourcePort int `json:"SourcePort" xml:"SourcePort"` + CdnType string `json:"CdnType" xml:"CdnType"` + Cname string `json:"Cname" xml:"Cname"` + HttpsCname string `json:"HttpsCname" xml:"HttpsCname"` + DomainName string `json:"DomainName" xml:"DomainName"` + Description string `json:"Description" xml:"Description"` + ServerCertificateStatus string `json:"ServerCertificateStatus" xml:"ServerCertificateStatus"` + ServerCertificate string `json:"ServerCertificate" xml:"ServerCertificate"` + Region string `json:"Region" xml:"Region"` + Scope string `json:"Scope" xml:"Scope"` + CertificateName string `json:"CertificateName" xml:"CertificateName"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + Sources SourcesInDescribeCdnDomainDetail `json:"Sources" xml:"Sources"` + SourceModels SourceModels `json:"SourceModels" xml:"SourceModels"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_green_manager_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_green_manager_config.go new file mode 100644 index 0000000..bd51dea --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_green_manager_config.go @@ -0,0 +1,25 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// GreenManagerConfig is a nested struct in cdn response +type GreenManagerConfig struct { + Quota string `json:"Quota" xml:"Quota"` + ConfigId string `json:"ConfigId" xml:"ConfigId"` + Enabled string `json:"Enabled" xml:"Enabled"` + Status string `json:"Status" xml:"Status"` + Ratio string `json:"Ratio" xml:"Ratio"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_hit_rate_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_hit_rate_interval.go new file mode 100644 index 0000000..d1d6fa9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_hit_rate_interval.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HitRateInterval is a nested struct in cdn response +type HitRateInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_http_code_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_http_code_data.go new file mode 100644 index 0000000..fc8ea64 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_http_code_data.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HttpCodeData is a nested struct in cdn response +type HttpCodeData struct { + UsageData []UsageDataInDescribeDomainHttpCodeData `json:"UsageData" xml:"UsageData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_http_error_page_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_http_error_page_config.go new file mode 100644 index 0000000..445ec5a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_http_error_page_config.go @@ -0,0 +1,24 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HttpErrorPageConfig is a nested struct in cdn response +type HttpErrorPageConfig struct { + ConfigId string `json:"ConfigId" xml:"ConfigId"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + PageUrl string `json:"PageUrl" xml:"PageUrl"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_http_error_page_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_http_error_page_configs.go new file mode 100644 index 0000000..e3f51a6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_http_error_page_configs.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HttpErrorPageConfigs is a nested struct in cdn response +type HttpErrorPageConfigs struct { + HttpErrorPageConfig []HttpErrorPageConfig `json:"HttpErrorPageConfig" xml:"HttpErrorPageConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_http_header_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_http_header_config.go new file mode 100644 index 0000000..2fdaa2f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_http_header_config.go @@ -0,0 +1,24 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HttpHeaderConfig is a nested struct in cdn response +type HttpHeaderConfig struct { + ConfigId string `json:"ConfigId" xml:"ConfigId"` + HeaderKey string `json:"HeaderKey" xml:"HeaderKey"` + HeaderValue string `json:"HeaderValue" xml:"HeaderValue"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_http_header_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_http_header_configs.go new file mode 100644 index 0000000..0b849d2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_http_header_configs.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HttpHeaderConfigs is a nested struct in cdn response +type HttpHeaderConfigs struct { + HttpHeaderConfig []HttpHeaderConfig `json:"HttpHeaderConfig" xml:"HttpHeaderConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_https_option_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_https_option_config.go new file mode 100644 index 0000000..ae1ebf6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_https_option_config.go @@ -0,0 +1,23 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HttpsOptionConfig is a nested struct in cdn response +type HttpsOptionConfig struct { + Http2 string `json:"Http2" xml:"Http2"` + ConfigId string `json:"ConfigId" xml:"ConfigId"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_https_statistics_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_https_statistics_info.go new file mode 100644 index 0000000..0e27c1b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_https_statistics_info.go @@ -0,0 +1,62 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HttpsStatisticsInfo is a nested struct in cdn response +type HttpsStatisticsInfo struct { + Time string `json:"Time" xml:"Time"` + L1HttpsBps float64 `json:"L1HttpsBps" xml:"L1HttpsBps"` + L1HttpsInnerBps float64 `json:"L1HttpsInnerBps" xml:"L1HttpsInnerBps"` + L1HttpsOutBps float64 `json:"L1HttpsOutBps" xml:"L1HttpsOutBps"` + L1HttpsQps int `json:"L1HttpsQps" xml:"L1HttpsQps"` + L1HttpsInnerQps int `json:"L1HttpsInnerQps" xml:"L1HttpsInnerQps"` + L1HttpsOutQps int `json:"L1HttpsOutQps" xml:"L1HttpsOutQps"` + L1HttpsTtraf int `json:"L1HttpsTtraf" xml:"L1HttpsTtraf"` + HttpsSrcBps int `json:"HttpsSrcBps" xml:"HttpsSrcBps"` + HttpsSrcTraf int `json:"HttpsSrcTraf" xml:"HttpsSrcTraf"` + L1HttpsInnerTraf int `json:"L1HttpsInnerTraf" xml:"L1HttpsInnerTraf"` + L1HttpsOutTraf int `json:"L1HttpsOutTraf" xml:"L1HttpsOutTraf"` + HttpsByteHitRate float64 `json:"HttpsByteHitRate" xml:"HttpsByteHitRate"` + HttpsReqHitRate float64 `json:"HttpsReqHitRate" xml:"HttpsReqHitRate"` + L1HttpsHitRate float64 `json:"L1HttpsHitRate" xml:"L1HttpsHitRate"` + L1HttpsInnerAcc float64 `json:"L1HttpsInner_acc" xml:"L1HttpsInner_acc"` + L1HttpsOutAcc float64 `json:"L1HttpsOut_acc" xml:"L1HttpsOut_acc"` + L1HttpsTacc float64 `json:"L1HttpsTacc" xml:"L1HttpsTacc"` + L1DyHttpsBps float64 `json:"L1DyHttpsBps" xml:"L1DyHttpsBps"` + L1DyHttpsInnerBps float64 `json:"L1DyHttpsInnerBps" xml:"L1DyHttpsInnerBps"` + L1DyHttpsOutBps float64 `json:"L1DyHttpsOutBps" xml:"L1DyHttpsOutBps"` + L1StHttpsBps float64 `json:"L1StHttpsBps" xml:"L1StHttpsBps"` + L1StHttpsInnerBps float64 `json:"L1StHttpsInnerBps" xml:"L1StHttpsInnerBps"` + L1StHttpsOutBps float64 `json:"L1StHttpsOutBps" xml:"L1StHttpsOutBps"` + L1DyHttpsTraf float64 `json:"l1DyHttpsTraf" xml:"l1DyHttpsTraf"` + L1DyHttpsInnerTraf float64 `json:"L1DyHttpsInnerTraf" xml:"L1DyHttpsInnerTraf"` + L1DyHttpsOutTraf float64 `json:"L1DyHttpsOutTraf" xml:"L1DyHttpsOutTraf"` + L1StHttpsTraf float64 `json:"L1StHttpsTraf" xml:"L1StHttpsTraf"` + L1StHttpsInnerTraf float64 `json:"L1StHttpsInnerTraf" xml:"L1StHttpsInnerTraf"` + L1StHttpsOutTraf float64 `json:"L1StHttpsOutTraf" xml:"L1StHttpsOutTraf"` + L1DyHttpsQps float64 `json:"L1DyHttpsQps" xml:"L1DyHttpsQps"` + L1DyHttpsInnerQps float64 `json:"L1DyHttpsInnerQps" xml:"L1DyHttpsInnerQps"` + L1DyHttpsOutQps float64 `json:"L1DyHttpsOutQps" xml:"L1DyHttpsOutQps"` + L1StHttpsQps float64 `json:"L1StHttpsQps" xml:"L1StHttpsQps"` + L1StHttpsInnerQps float64 `json:"L1StHttpsInnerQps" xml:"L1StHttpsInnerQps"` + L1StHttpsOutQps float64 `json:"L1StHttpsOutQps" xml:"L1StHttpsOutQps"` + L1DyHttpsAcc float64 `json:"L1DyHttpsAcc" xml:"L1DyHttpsAcc"` + L1DyHttpsInnerAcc float64 `json:"L1DyHttpsInnerAcc" xml:"L1DyHttpsInnerAcc"` + L1DyHttpsOutAcc float64 `json:"L1DyHttpsOutAcc" xml:"L1DyHttpsOutAcc"` + L1StHttpsAcc float64 `json:"L1StHttpsAcc" xml:"L1StHttpsAcc"` + L1StHttpsInnerAcc float64 `json:"L1StHttpsInnerAcc" xml:"L1StHttpsInnerAcc"` + L1StHttpsOutAcc float64 `json:"L1StHttpsOutAcc" xml:"L1StHttpsOutAcc"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_https_statistics_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_https_statistics_infos.go new file mode 100644 index 0000000..9cab499 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_https_statistics_infos.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HttpsStatisticsInfos is a nested struct in cdn response +type HttpsStatisticsInfos struct { + HttpsStatisticsInfo []HttpsStatisticsInfo `json:"HttpsStatisticsInfo" xml:"HttpsStatisticsInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_ignore_query_string_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_ignore_query_string_config.go new file mode 100644 index 0000000..35a49db --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_ignore_query_string_config.go @@ -0,0 +1,24 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IgnoreQueryStringConfig is a nested struct in cdn response +type IgnoreQueryStringConfig struct { + ConfigId string `json:"ConfigId" xml:"ConfigId"` + HashKeyArgs string `json:"HashKeyArgs" xml:"HashKeyArgs"` + Enable string `json:"Enable" xml:"Enable"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_ip_allow_list_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_ip_allow_list_config.go new file mode 100644 index 0000000..960c579 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_ip_allow_list_config.go @@ -0,0 +1,24 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IpAllowListConfig is a nested struct in cdn response +type IpAllowListConfig struct { + ConfigId string `json:"ConfigId" xml:"ConfigId"` + IpList string `json:"IpList" xml:"IpList"` + IpAclXfwd string `json:"IpAclXfwd" xml:"IpAclXfwd"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_isp.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_isp.go new file mode 100644 index 0000000..6f485f8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_isp.go @@ -0,0 +1,22 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Isp is a nested struct in cdn response +type Isp struct { + NameZh string `json:"NameZh" xml:"NameZh"` + NameEn string `json:"NameEn" xml:"NameEn"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_isp_proportion_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_isp_proportion_data.go new file mode 100644 index 0000000..72abac4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_isp_proportion_data.go @@ -0,0 +1,34 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ISPProportionData is a nested struct in cdn response +type ISPProportionData struct { + ISP string `json:"ISP" xml:"ISP"` + Proportion string `json:"Proportion" xml:"Proportion"` + IspEname string `json:"IspEname" xml:"IspEname"` + AvgObjectSize string `json:"AvgObjectSize" xml:"AvgObjectSize"` + AvgResponseTime string `json:"AvgResponseTime" xml:"AvgResponseTime"` + Bps string `json:"Bps" xml:"Bps"` + ByteHitRate string `json:"ByteHitRate" xml:"ByteHitRate"` + Qps string `json:"Qps" xml:"Qps"` + ReqErrRate string `json:"ReqErrRate" xml:"ReqErrRate"` + ReqHitRate string `json:"ReqHitRate" xml:"ReqHitRate"` + AvgResponseRate string `json:"AvgResponseRate" xml:"AvgResponseRate"` + TotalBytes string `json:"TotalBytes" xml:"TotalBytes"` + BytesProportion string `json:"BytesProportion" xml:"BytesProportion"` + TotalQuery string `json:"TotalQuery" xml:"TotalQuery"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_isps.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_isps.go new file mode 100644 index 0000000..6e09e54 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_isps.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Isps is a nested struct in cdn response +type Isps struct { + Isp []Isp `json:"Isp" xml:"Isp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_l2_oss_key_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_l2_oss_key_config.go new file mode 100644 index 0000000..50bc23b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_l2_oss_key_config.go @@ -0,0 +1,23 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// L2OssKeyConfig is a nested struct in cdn response +type L2OssKeyConfig struct { + PrivateOssAuth string `json:"PrivateOssAuth" xml:"PrivateOssAuth"` + ConfigId string `json:"ConfigId" xml:"ConfigId"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_app_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_app_record.go new file mode 100644 index 0000000..e1b978d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_app_record.go @@ -0,0 +1,30 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveAppRecord is a nested struct in cdn response +type LiveAppRecord struct { + StartTime string `json:"StartTime" xml:"StartTime"` + OssObjectPrefix string `json:"OssObjectPrefix" xml:"OssObjectPrefix"` + EndTime string `json:"EndTime" xml:"EndTime"` + DomainName string `json:"DomainName" xml:"DomainName"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + OssEndpoint string `json:"OssEndpoint" xml:"OssEndpoint"` + AppName string `json:"AppName" xml:"AppName"` + SourceUrl string `json:"SourceUrl" xml:"SourceUrl"` + StreamName string `json:"StreamName" xml:"StreamName"` + OssBucket string `json:"OssBucket" xml:"OssBucket"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_app_record_list_in_describe_live_pull_stream_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_app_record_list_in_describe_live_pull_stream_config.go new file mode 100644 index 0000000..12f0435 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_app_record_list_in_describe_live_pull_stream_config.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveAppRecordListInDescribeLivePullStreamConfig is a nested struct in cdn response +type LiveAppRecordListInDescribeLivePullStreamConfig struct { + LiveAppRecord []LiveAppRecord `json:"LiveAppRecord" xml:"LiveAppRecord"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_app_record_list_in_describe_live_record_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_app_record_list_in_describe_live_record_config.go new file mode 100644 index 0000000..35b2964 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_app_record_list_in_describe_live_record_config.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveAppRecordListInDescribeLiveRecordConfig is a nested struct in cdn response +type LiveAppRecordListInDescribeLiveRecordConfig struct { + LiveAppRecord []LiveAppRecord `json:"LiveAppRecord" xml:"LiveAppRecord"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_control_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_control_info.go new file mode 100644 index 0000000..a2f1372 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_control_info.go @@ -0,0 +1,24 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamControlInfo is a nested struct in cdn response +type LiveStreamControlInfo struct { + StreamName string `json:"StreamName" xml:"StreamName"` + ClientIP string `json:"ClientIP" xml:"ClientIP"` + Action string `json:"Action" xml:"Action"` + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_online_bps_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_online_bps_info.go new file mode 100644 index 0000000..7fe29d4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_online_bps_info.go @@ -0,0 +1,24 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamOnlineBpsInfo is a nested struct in cdn response +type LiveStreamOnlineBpsInfo struct { + StreamUrl string `json:"StreamUrl" xml:"StreamUrl"` + UpBps float64 `json:"UpBps" xml:"UpBps"` + DownBps float64 `json:"DownBps" xml:"DownBps"` + Time string `json:"Time" xml:"Time"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_online_bps_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_online_bps_infos.go new file mode 100644 index 0000000..f2891f9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_online_bps_infos.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamOnlineBpsInfos is a nested struct in cdn response +type LiveStreamOnlineBpsInfos struct { + LiveStreamOnlineBpsInfo []LiveStreamOnlineBpsInfo `json:"LiveStreamOnlineBpsInfo" xml:"LiveStreamOnlineBpsInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_online_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_online_info.go new file mode 100644 index 0000000..2f839d4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_online_info.go @@ -0,0 +1,25 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamOnlineInfo is a nested struct in cdn response +type LiveStreamOnlineInfo struct { + DomainName string `json:"DomainName" xml:"DomainName"` + AppName string `json:"AppName" xml:"AppName"` + StreamName string `json:"StreamName" xml:"StreamName"` + PublishTime string `json:"PublishTime" xml:"PublishTime"` + PublishUrl string `json:"PublishUrl" xml:"PublishUrl"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_online_user_num_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_online_user_num_info.go new file mode 100644 index 0000000..2ed52f8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_online_user_num_info.go @@ -0,0 +1,23 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamOnlineUserNumInfo is a nested struct in cdn response +type LiveStreamOnlineUserNumInfo struct { + Time string `json:"Time" xml:"Time"` + StreamUrl string `json:"StreamUrl" xml:"StreamUrl"` + UserNumber int `json:"UserNumber" xml:"UserNumber"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_online_user_num_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_online_user_num_infos.go new file mode 100644 index 0000000..243042b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_online_user_num_infos.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamOnlineUserNumInfos is a nested struct in cdn response +type LiveStreamOnlineUserNumInfos struct { + LiveStreamOnlineUserNumInfo []LiveStreamOnlineUserNumInfo `json:"LiveStreamOnlineUserNumInfo" xml:"LiveStreamOnlineUserNumInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_publish_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_publish_info.go new file mode 100644 index 0000000..cd7248d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_publish_info.go @@ -0,0 +1,29 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamPublishInfo is a nested struct in cdn response +type LiveStreamPublishInfo struct { + DomainName string `json:"DomainName" xml:"DomainName"` + AppName string `json:"AppName" xml:"AppName"` + StreamName string `json:"StreamName" xml:"StreamName"` + StreamUrl string `json:"StreamUrl" xml:"StreamUrl"` + PublishTime string `json:"PublishTime" xml:"PublishTime"` + StopTime string `json:"StopTime" xml:"StopTime"` + PublishUrl string `json:"PublishUrl" xml:"PublishUrl"` + ClientAddr string `json:"ClientAddr" xml:"ClientAddr"` + EdgeNodeAddr string `json:"EdgeNodeAddr" xml:"EdgeNodeAddr"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_snapshot_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_snapshot_config.go new file mode 100644 index 0000000..d751426 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_snapshot_config.go @@ -0,0 +1,28 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamSnapshotConfig is a nested struct in cdn response +type LiveStreamSnapshotConfig struct { + DomainName string `json:"DomainName" xml:"DomainName"` + AppName string `json:"AppName" xml:"AppName"` + TimeInterval int `json:"TimeInterval" xml:"TimeInterval"` + OssEndpoint string `json:"OssEndpoint" xml:"OssEndpoint"` + OssBucket string `json:"OssBucket" xml:"OssBucket"` + OverwriteOssObject string `json:"OverwriteOssObject" xml:"OverwriteOssObject"` + SequenceOssObject string `json:"SequenceOssObject" xml:"SequenceOssObject"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_snapshot_config_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_snapshot_config_list.go new file mode 100644 index 0000000..06d3208 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_snapshot_config_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamSnapshotConfigList is a nested struct in cdn response +type LiveStreamSnapshotConfigList struct { + LiveStreamSnapshotConfig []LiveStreamSnapshotConfig `json:"LiveStreamSnapshotConfig" xml:"LiveStreamSnapshotConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_snapshot_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_snapshot_info.go new file mode 100644 index 0000000..57774fa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_snapshot_info.go @@ -0,0 +1,24 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamSnapshotInfo is a nested struct in cdn response +type LiveStreamSnapshotInfo struct { + OssEndpoint string `json:"OssEndpoint" xml:"OssEndpoint"` + OssBucket string `json:"OssBucket" xml:"OssBucket"` + OssObject string `json:"OssObject" xml:"OssObject"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_snapshot_info_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_snapshot_info_list.go new file mode 100644 index 0000000..462504a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_live_stream_snapshot_info_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamSnapshotInfoList is a nested struct in cdn response +type LiveStreamSnapshotInfoList struct { + LiveStreamSnapshotInfo []LiveStreamSnapshotInfo `json:"LiveStreamSnapshotInfo" xml:"LiveStreamSnapshotInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_lock_reason.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_lock_reason.go new file mode 100644 index 0000000..366f819 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_lock_reason.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LockReason is a nested struct in cdn response +type LockReason struct { + LockReason string `json:"LockReason" xml:"LockReason"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_mac_service_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_mac_service_config.go new file mode 100644 index 0000000..d895e62 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_mac_service_config.go @@ -0,0 +1,25 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MacServiceConfig is a nested struct in cdn response +type MacServiceConfig struct { + AppList string `json:"AppList" xml:"AppList"` + Enabled string `json:"Enabled" xml:"Enabled"` + ProcessResult string `json:"ProcessResult" xml:"ProcessResult"` + ConfigId string `json:"ConfigId" xml:"ConfigId"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_mix_streams_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_mix_streams_info.go new file mode 100644 index 0000000..2660b18 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_mix_streams_info.go @@ -0,0 +1,23 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MixStreamsInfo is a nested struct in cdn response +type MixStreamsInfo struct { + DomainName string `json:"DomainName" xml:"DomainName"` + AppName string `json:"AppName" xml:"AppName"` + StreamName string `json:"StreamName" xml:"StreamName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_mix_streams_info_list_in_start_mix_streams_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_mix_streams_info_list_in_start_mix_streams_service.go new file mode 100644 index 0000000..7f94ea8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_mix_streams_info_list_in_start_mix_streams_service.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MixStreamsInfoListInStartMixStreamsService is a nested struct in cdn response +type MixStreamsInfoListInStartMixStreamsService struct { + MixStreamsInfo []MixStreamsInfo `json:"MixStreamsInfo" xml:"MixStreamsInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_mix_streams_info_list_in_stop_mix_streams_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_mix_streams_info_list_in_stop_mix_streams_service.go new file mode 100644 index 0000000..dc25462 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_mix_streams_info_list_in_stop_mix_streams_service.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MixStreamsInfoListInStopMixStreamsService is a nested struct in cdn response +type MixStreamsInfoListInStopMixStreamsService struct { + MixStreamsInfo []MixStreamsInfo `json:"MixStreamsInfo" xml:"MixStreamsInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_monitor_datas.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_monitor_datas.go new file mode 100644 index 0000000..4d153e0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_monitor_datas.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MonitorDatas is a nested struct in cdn response +type MonitorDatas struct { + CDNMonitorData []CDNMonitorData `json:"CDNMonitorData" xml:"CDNMonitorData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_notify_url_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_notify_url_config.go new file mode 100644 index 0000000..ae30b4b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_notify_url_config.go @@ -0,0 +1,22 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NotifyUrlConfig is a nested struct in cdn response +type NotifyUrlConfig struct { + Enable string `json:"Enable" xml:"Enable"` + NotifyUrl string `json:"NotifyUrl" xml:"NotifyUrl"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_online_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_online_info.go new file mode 100644 index 0000000..6ee413b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_online_info.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OnlineInfo is a nested struct in cdn response +type OnlineInfo struct { + LiveStreamOnlineInfo []LiveStreamOnlineInfo `json:"LiveStreamOnlineInfo" xml:"LiveStreamOnlineInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_online_user_info_in_describe_live_stream_hls_online_user_num_by_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_online_user_info_in_describe_live_stream_hls_online_user_num_by_domain.go new file mode 100644 index 0000000..952fa97 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_online_user_info_in_describe_live_stream_hls_online_user_num_by_domain.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OnlineUserInfoInDescribeLiveStreamHlsOnlineUserNumByDomain is a nested struct in cdn response +type OnlineUserInfoInDescribeLiveStreamHlsOnlineUserNumByDomain struct { + LiveStreamOnlineUserNumInfo []LiveStreamOnlineUserNumInfo `json:"LiveStreamOnlineUserNumInfo" xml:"LiveStreamOnlineUserNumInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_online_user_info_in_describe_live_stream_online_user_num.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_online_user_info_in_describe_live_stream_online_user_num.go new file mode 100644 index 0000000..ff2d9cd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_online_user_info_in_describe_live_stream_online_user_num.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OnlineUserInfoInDescribeLiveStreamOnlineUserNum is a nested struct in cdn response +type OnlineUserInfoInDescribeLiveStreamOnlineUserNum struct { + LiveStreamOnlineUserNumInfo []LiveStreamOnlineUserNumInfo `json:"LiveStreamOnlineUserNumInfo" xml:"LiveStreamOnlineUserNumInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_online_user_info_in_describe_live_stream_online_user_num_by_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_online_user_info_in_describe_live_stream_online_user_num_by_domain.go new file mode 100644 index 0000000..8c94102 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_online_user_info_in_describe_live_stream_online_user_num_by_domain.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OnlineUserInfoInDescribeLiveStreamOnlineUserNumByDomain is a nested struct in cdn response +type OnlineUserInfoInDescribeLiveStreamOnlineUserNumByDomain struct { + LiveStreamOnlineUserNumInfo []LiveStreamOnlineUserNumInfo `json:"LiveStreamOnlineUserNumInfo" xml:"LiveStreamOnlineUserNumInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_online_user_info_in_describe_live_stream_room_user_number.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_online_user_info_in_describe_live_stream_room_user_number.go new file mode 100644 index 0000000..0b52658 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_online_user_info_in_describe_live_stream_room_user_number.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OnlineUserInfoInDescribeLiveStreamRoomUserNumber is a nested struct in cdn response +type OnlineUserInfoInDescribeLiveStreamRoomUserNumber struct { + LiveStreamOnlineUserNumInfo []LiveStreamOnlineUserNumInfo `json:"LiveStreamOnlineUserNumInfo" xml:"LiveStreamOnlineUserNumInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_operation_locks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_operation_locks.go new file mode 100644 index 0000000..3463fc9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_operation_locks.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OperationLocks is a nested struct in cdn response +type OperationLocks struct { + LockReason []LockReason `json:"LockReason" xml:"LockReason"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_optimize_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_optimize_config.go new file mode 100644 index 0000000..d485caa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_optimize_config.go @@ -0,0 +1,23 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OptimizeConfig is a nested struct in cdn response +type OptimizeConfig struct { + ConfigId string `json:"ConfigId" xml:"ConfigId"` + Enable string `json:"Enable" xml:"Enable"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_oss_log_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_oss_log_config.go new file mode 100644 index 0000000..84c17fd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_oss_log_config.go @@ -0,0 +1,23 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OssLogConfig is a nested struct in cdn response +type OssLogConfig struct { + Enable string `json:"Enable" xml:"Enable"` + Bucket string `json:"Bucket" xml:"Bucket"` + Prefix string `json:"Prefix" xml:"Prefix"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_page_compress_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_page_compress_config.go new file mode 100644 index 0000000..87b68c0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_page_compress_config.go @@ -0,0 +1,23 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PageCompressConfig is a nested struct in cdn response +type PageCompressConfig struct { + ConfigId string `json:"ConfigId" xml:"ConfigId"` + Enable string `json:"Enable" xml:"Enable"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_page_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_page_data.go new file mode 100644 index 0000000..31ea40b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_page_data.go @@ -0,0 +1,32 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PageData is a nested struct in cdn response +type PageData struct { + DomainName string `json:"DomainName" xml:"DomainName"` + Cname string `json:"Cname" xml:"Cname"` + CdnType string `json:"CdnType" xml:"CdnType"` + DomainStatus string `json:"DomainStatus" xml:"DomainStatus"` + GmtCreated string `json:"GmtCreated" xml:"GmtCreated"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + Description string `json:"Description" xml:"Description"` + SourceType string `json:"SourceType" xml:"SourceType"` + SslProtocol string `json:"SslProtocol" xml:"SslProtocol"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + Sandbox string `json:"Sandbox" xml:"Sandbox"` + Sources SourcesInDescribeUserDomains `json:"Sources" xml:"Sources"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_path_data_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_path_data_per_interval.go new file mode 100644 index 0000000..9c5a6e8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_path_data_per_interval.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PathDataPerInterval is a nested struct in cdn response +type PathDataPerInterval struct { + UsageData []UsageData `json:"UsageData" xml:"UsageData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_publish_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_publish_info.go new file mode 100644 index 0000000..738451b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_publish_info.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PublishInfo is a nested struct in cdn response +type PublishInfo struct { + LiveStreamPublishInfo []LiveStreamPublishInfo `json:"LiveStreamPublishInfo" xml:"LiveStreamPublishInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_push_errors_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_push_errors_model.go new file mode 100644 index 0000000..25ec42f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_push_errors_model.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PushErrorsModel is a nested struct in cdn response +type PushErrorsModel struct { + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_push_errors_model_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_push_errors_model_list.go new file mode 100644 index 0000000..c9b8be0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_push_errors_model_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PushErrorsModelList is a nested struct in cdn response +type PushErrorsModelList struct { + PushErrorsModel []PushErrorsModel `json:"PushErrorsModel" xml:"PushErrorsModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_push_stream_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_push_stream_model.go new file mode 100644 index 0000000..bbea121 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_push_stream_model.go @@ -0,0 +1,27 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PushStreamModel is a nested struct in cdn response +type PushStreamModel struct { + Time string `json:"Time" xml:"Time"` + Stream string `json:"Stream" xml:"Stream"` + FrameRate float64 `json:"FrameRate" xml:"FrameRate"` + BitRate float64 `json:"BitRate" xml:"BitRate"` + FrameLossRate float64 `json:"FrameLossRate" xml:"FrameLossRate"` + ServerAddr string `json:"ServerAddr" xml:"ServerAddr"` + ClientAddr string `json:"ClientAddr" xml:"ClientAddr"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_push_stream_model_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_push_stream_model_list.go new file mode 100644 index 0000000..f575b7a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_push_stream_model_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PushStreamModelList is a nested struct in cdn response +type PushStreamModelList struct { + PushStreamModel []PushStreamModel `json:"PushStreamModel" xml:"PushStreamModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_pv_data_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_pv_data_interval.go new file mode 100644 index 0000000..81851cc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_pv_data_interval.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PvDataInterval is a nested struct in cdn response +type PvDataInterval struct { + UsageData []UsageData `json:"UsageData" xml:"UsageData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_qps_data_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_qps_data_interval.go new file mode 100644 index 0000000..854778b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_qps_data_interval.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// QpsDataInterval is a nested struct in cdn response +type QpsDataInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_qps_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_qps_model.go new file mode 100644 index 0000000..b593183 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_qps_model.go @@ -0,0 +1,22 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// QpsModel is a nested struct in cdn response +type QpsModel struct { + Qps float64 `json:"Qps" xml:"Qps"` + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_range_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_range_config.go new file mode 100644 index 0000000..1b8316f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_range_config.go @@ -0,0 +1,23 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RangeConfig is a nested struct in cdn response +type RangeConfig struct { + ConfigId string `json:"ConfigId" xml:"ConfigId"` + Enable string `json:"Enable" xml:"Enable"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_record_content_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_record_content_info.go new file mode 100644 index 0000000..d65175b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_record_content_info.go @@ -0,0 +1,26 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordContentInfo is a nested struct in cdn response +type RecordContentInfo struct { + OssEndpoint string `json:"OssEndpoint" xml:"OssEndpoint"` + OssBucket string `json:"OssBucket" xml:"OssBucket"` + OssObjectPrefix string `json:"OssObjectPrefix" xml:"OssObjectPrefix"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + Duration float64 `json:"Duration" xml:"Duration"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_record_content_info_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_record_content_info_list.go new file mode 100644 index 0000000..9b26a34 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_record_content_info_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordContentInfoList is a nested struct in cdn response +type RecordContentInfoList struct { + RecordContentInfo []RecordContentInfo `json:"RecordContentInfo" xml:"RecordContentInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_record_index_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_record_index_info.go new file mode 100644 index 0000000..6617ff7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_record_index_info.go @@ -0,0 +1,32 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordIndexInfo is a nested struct in cdn response +type RecordIndexInfo struct { + OssObject string `json:"OssObject" xml:"OssObject"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + Duration float64 `json:"Duration" xml:"Duration"` + DomainName string `json:"DomainName" xml:"DomainName"` + RecordUrl string `json:"RecordUrl" xml:"RecordUrl"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + RecordId string `json:"RecordId" xml:"RecordId"` + Height int `json:"Height" xml:"Height"` + Width int `json:"Width" xml:"Width"` + AppName string `json:"AppName" xml:"AppName"` + StreamName string `json:"StreamName" xml:"StreamName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_record_index_info_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_record_index_info_list.go new file mode 100644 index 0000000..94df2e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_record_index_info_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordIndexInfoList is a nested struct in cdn response +type RecordIndexInfoList struct { + RecordIndexInfo []RecordIndexInfo `json:"RecordIndexInfo" xml:"RecordIndexInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_record_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_record_info.go new file mode 100644 index 0000000..8a326f4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_record_info.go @@ -0,0 +1,26 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordInfo is a nested struct in cdn response +type RecordInfo struct { + RecordId string `json:"RecordId" xml:"RecordId"` + RecordUrl string `json:"RecordUrl" xml:"RecordUrl"` + Duration float64 `json:"Duration" xml:"Duration"` + Height int `json:"Height" xml:"Height"` + Width int `json:"Width" xml:"Width"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_redirect_type_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_redirect_type_config.go new file mode 100644 index 0000000..d54c57b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_redirect_type_config.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RedirectTypeConfig is a nested struct in cdn response +type RedirectTypeConfig struct { + RedirectType string `json:"RedirectType" xml:"RedirectType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_refer_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_refer_list.go new file mode 100644 index 0000000..cccbab4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_refer_list.go @@ -0,0 +1,25 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ReferList is a nested struct in cdn response +type ReferList struct { + ReferDetail string `json:"ReferDetail" xml:"ReferDetail"` + VisitData string `json:"VisitData" xml:"VisitData"` + VisitProportion float64 `json:"VisitProportion" xml:"VisitProportion"` + Flow string `json:"Flow" xml:"Flow"` + FlowProportion float64 `json:"FlowProportion" xml:"FlowProportion"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_referer_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_referer_config.go new file mode 100644 index 0000000..048e5f3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_referer_config.go @@ -0,0 +1,26 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RefererConfig is a nested struct in cdn response +type RefererConfig struct { + ConfigId string `json:"ConfigId" xml:"ConfigId"` + ReferType string `json:"ReferType" xml:"ReferType"` + ReferList string `json:"ReferList" xml:"ReferList"` + AllowEmpty string `json:"AllowEmpty" xml:"AllowEmpty"` + DisableAst string `json:"DisableAst" xml:"DisableAst"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_region.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_region.go new file mode 100644 index 0000000..caa232b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_region.go @@ -0,0 +1,22 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 cdn response +type Region struct { + NameZh string `json:"NameZh" xml:"NameZh"` + NameEn string `json:"NameEn" xml:"NameEn"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_region_proportion_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_region_proportion_data.go new file mode 100644 index 0000000..bf7ed98 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_region_proportion_data.go @@ -0,0 +1,34 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RegionProportionData is a nested struct in cdn response +type RegionProportionData struct { + Region string `json:"Region" xml:"Region"` + Proportion string `json:"Proportion" xml:"Proportion"` + RegionEname string `json:"RegionEname" xml:"RegionEname"` + AvgObjectSize string `json:"AvgObjectSize" xml:"AvgObjectSize"` + AvgResponseTime string `json:"AvgResponseTime" xml:"AvgResponseTime"` + Bps string `json:"Bps" xml:"Bps"` + ByteHitRate string `json:"ByteHitRate" xml:"ByteHitRate"` + Qps string `json:"Qps" xml:"Qps"` + ReqErrRate string `json:"ReqErrRate" xml:"ReqErrRate"` + ReqHitRate string `json:"ReqHitRate" xml:"ReqHitRate"` + AvgResponseRate string `json:"AvgResponseRate" xml:"AvgResponseRate"` + TotalBytes string `json:"TotalBytes" xml:"TotalBytes"` + BytesProportion string `json:"BytesProportion" xml:"BytesProportion"` + TotalQuery string `json:"TotalQuery" xml:"TotalQuery"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_regions.go new file mode 100644 index 0000000..540395c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_regions.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 cdn response +type Regions struct { + Region []Region `json:"Region" xml:"Region"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_bit_rate_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_bit_rate_model.go new file mode 100644 index 0000000..a9c660d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_bit_rate_model.go @@ -0,0 +1,26 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RelayPushBitRateModel is a nested struct in cdn response +type RelayPushBitRateModel struct { + Time string `json:"Time" xml:"Time"` + VedioFrame string `json:"VedioFrame" xml:"VedioFrame"` + VedioTimstamp string `json:"VedioTimstamp" xml:"VedioTimstamp"` + AudioFrame string `json:"AudioFrame" xml:"AudioFrame"` + AudioTimstamp string `json:"AudioTimstamp" xml:"AudioTimstamp"` + RelayDomain string `json:"RelayDomain" xml:"RelayDomain"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_bit_rate_model_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_bit_rate_model_list.go new file mode 100644 index 0000000..1e456d4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_bit_rate_model_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RelayPushBitRateModelList is a nested struct in cdn response +type RelayPushBitRateModelList struct { + RelayPushBitRateModel []RelayPushBitRateModel `json:"RelayPushBitRateModel" xml:"RelayPushBitRateModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_detail_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_detail_model.go new file mode 100644 index 0000000..0f23a85 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_detail_model.go @@ -0,0 +1,27 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RelayPushDetailModel is a nested struct in cdn response +type RelayPushDetailModel struct { + Time string `json:"Time" xml:"Time"` + Stream string `json:"Stream" xml:"Stream"` + FrameRate float64 `json:"FrameRate" xml:"FrameRate"` + BitRate float64 `json:"BitRate" xml:"BitRate"` + FrameLossRate float64 `json:"FrameLossRate" xml:"FrameLossRate"` + ServerAddr string `json:"ServerAddr" xml:"ServerAddr"` + ClientAddr string `json:"ClientAddr" xml:"ClientAddr"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_detail_model_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_detail_model_list.go new file mode 100644 index 0000000..cc6d735 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_detail_model_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RelayPushDetailModelList is a nested struct in cdn response +type RelayPushDetailModelList struct { + RelayPushDetailModel []RelayPushDetailModel `json:"RelayPushDetailModel" xml:"RelayPushDetailModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_errors_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_errors_model.go new file mode 100644 index 0000000..c770781 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_errors_model.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RelayPushErrorsModel is a nested struct in cdn response +type RelayPushErrorsModel struct { + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_errors_model_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_errors_model_list.go new file mode 100644 index 0000000..3fdac97 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_relay_push_errors_model_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RelayPushErrorsModelList is a nested struct in cdn response +type RelayPushErrorsModelList struct { + RelayPushErrorsModel []RelayPushErrorsModel `json:"RelayPushErrorsModel" xml:"RelayPushErrorsModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_remove_query_string_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_remove_query_string_config.go new file mode 100644 index 0000000..60fdbf0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_remove_query_string_config.go @@ -0,0 +1,23 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RemoveQueryStringConfig is a nested struct in cdn response +type RemoveQueryStringConfig struct { + AliRemoveArgs string `json:"AliRemoveArgs" xml:"AliRemoveArgs"` + ConfigId string `json:"ConfigId" xml:"ConfigId"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_req_auth_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_req_auth_config.go new file mode 100644 index 0000000..cdb1311 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_req_auth_config.go @@ -0,0 +1,30 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ReqAuthConfig is a nested struct in cdn response +type ReqAuthConfig struct { + ConfigId string `json:"ConfigId" xml:"ConfigId"` + AuthType string `json:"AuthType" xml:"AuthType"` + Key1 string `json:"Key1" xml:"Key1"` + Key2 string `json:"Key2" xml:"Key2"` + Status string `json:"Status" xml:"Status"` + AliAuthWhiteList string `json:"AliAuthWhiteList" xml:"AliAuthWhiteList"` + AuthM3u8 string `json:"AuthM3u8" xml:"AuthM3u8"` + AuthAddr string `json:"AuthAddr" xml:"AuthAddr"` + AuthRemoteDesc string `json:"AuthRemoteDesc" xml:"AuthRemoteDesc"` + TimeOut string `json:"TimeOut" xml:"TimeOut"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_req_header_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_req_header_config.go new file mode 100644 index 0000000..6a66486 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_req_header_config.go @@ -0,0 +1,24 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ReqHeaderConfig is a nested struct in cdn response +type ReqHeaderConfig struct { + ConfigId string `json:"ConfigId" xml:"ConfigId"` + Key string `json:"Key" xml:"Key"` + Value string `json:"Value" xml:"Value"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_req_header_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_req_header_configs.go new file mode 100644 index 0000000..00eb1a3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_req_header_configs.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ReqHeaderConfigs is a nested struct in cdn response +type ReqHeaderConfigs struct { + ReqHeaderConfig []ReqHeaderConfig `json:"ReqHeaderConfig" xml:"ReqHeaderConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_req_hit_rate_data_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_req_hit_rate_data_model.go new file mode 100644 index 0000000..71ac2f8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_req_hit_rate_data_model.go @@ -0,0 +1,22 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ReqHitRateDataModel is a nested struct in cdn response +type ReqHitRateDataModel struct { + ReqHitRate float64 `json:"ReqHitRate" xml:"ReqHitRate"` + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_req_hit_rate_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_req_hit_rate_interval.go new file mode 100644 index 0000000..8b9d8b6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_req_hit_rate_interval.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ReqHitRateInterval is a nested struct in cdn response +type ReqHitRateInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_set_vars_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_set_vars_config.go new file mode 100644 index 0000000..280a70c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_set_vars_config.go @@ -0,0 +1,24 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SetVarsConfig is a nested struct in cdn response +type SetVarsConfig struct { + ConfigId string `json:"ConfigId" xml:"ConfigId"` + VarName string `json:"VarName" xml:"VarName"` + VarValue string `json:"VarValue" xml:"VarValue"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_set_vars_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_set_vars_configs.go new file mode 100644 index 0000000..1f30b50 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_set_vars_configs.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SetVarsConfigs is a nested struct in cdn response +type SetVarsConfigs struct { + SetVarsConfig []SetVarsConfig `json:"SetVarsConfig" xml:"SetVarsConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_slow_ratio_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_slow_ratio_data.go new file mode 100644 index 0000000..116bd94 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_slow_ratio_data.go @@ -0,0 +1,28 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SlowRatioData is a nested struct in cdn response +type SlowRatioData struct { + TotalUsers int `json:"TotalUsers" xml:"TotalUsers"` + SlowUsers int `json:"SlowUsers" xml:"SlowUsers"` + SlowRatio float64 `json:"SlowRatio" xml:"SlowRatio"` + RegionNameZh string `json:"RegionNameZh" xml:"RegionNameZh"` + RegionNameEn string `json:"RegionNameEn" xml:"RegionNameEn"` + IspNameZh string `json:"IspNameZh" xml:"IspNameZh"` + IspNameEn string `json:"IspNameEn" xml:"IspNameEn"` + Time string `json:"Time" xml:"Time"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_slow_ratio_data_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_slow_ratio_data_per_interval.go new file mode 100644 index 0000000..08289c7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_slow_ratio_data_per_interval.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SlowRatioDataPerInterval is a nested struct in cdn response +type SlowRatioDataPerInterval struct { + SlowRatioData []SlowRatioData `json:"SlowRatioData" xml:"SlowRatioData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_source.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_source.go new file mode 100644 index 0000000..a09b514 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_source.go @@ -0,0 +1,30 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Source is a nested struct in cdn response +type Source struct { + DomainSource string `json:"DomainSource" xml:"DomainSource"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + DomainSourceId int `json:"DomainSourceId" xml:"DomainSourceId"` + Enabled string `json:"Enabled" xml:"Enabled"` + Port int `json:"Port" xml:"Port"` + Priority int `json:"Priority" xml:"Priority"` + RouteStatus string `json:"RouteStatus" xml:"RouteStatus"` + Status string `json:"Status" xml:"Status"` + SourceType string `json:"SourceType" xml:"SourceType"` + Weight int `json:"Weight" xml:"Weight"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_source_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_source_model.go new file mode 100644 index 0000000..02b3d16 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_source_model.go @@ -0,0 +1,25 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SourceModel is a nested struct in cdn response +type SourceModel struct { + Content string `json:"Content" xml:"Content"` + Type string `json:"Type" xml:"Type"` + Port int `json:"Port" xml:"Port"` + Enabled string `json:"Enabled" xml:"Enabled"` + Priority string `json:"Priority" xml:"Priority"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_source_models.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_source_models.go new file mode 100644 index 0000000..5024e2f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_source_models.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SourceModels is a nested struct in cdn response +type SourceModels struct { + SourceModel []SourceModel `json:"SourceModel" xml:"SourceModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_sources_in_describe_cdn_domain_base_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_sources_in_describe_cdn_domain_base_detail.go new file mode 100644 index 0000000..7a781f8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_sources_in_describe_cdn_domain_base_detail.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SourcesInDescribeCdnDomainBaseDetail is a nested struct in cdn response +type SourcesInDescribeCdnDomainBaseDetail struct { + Source []string `json:"Source" xml:"Source"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_sources_in_describe_cdn_domain_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_sources_in_describe_cdn_domain_detail.go new file mode 100644 index 0000000..3b520c8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_sources_in_describe_cdn_domain_detail.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SourcesInDescribeCdnDomainDetail is a nested struct in cdn response +type SourcesInDescribeCdnDomainDetail struct { + Source []string `json:"Source" xml:"Source"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_sources_in_describe_user_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_sources_in_describe_user_domains.go new file mode 100644 index 0000000..a8f8a97 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_sources_in_describe_user_domains.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SourcesInDescribeUserDomains is a nested struct in cdn response +type SourcesInDescribeUserDomains struct { + Source []string `json:"Source" xml:"Source"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_sources_in_get_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_sources_in_get_domain.go new file mode 100644 index 0000000..f1aee78 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_sources_in_get_domain.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SourcesInGetDomain is a nested struct in cdn response +type SourcesInGetDomain struct { + Source []Source `json:"Source" xml:"Source"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_src_bps_data_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_src_bps_data_per_interval.go new file mode 100644 index 0000000..8e8536a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_src_bps_data_per_interval.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SrcBpsDataPerInterval is a nested struct in cdn response +type SrcBpsDataPerInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_src_flow_data_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_src_flow_data_per_interval.go new file mode 100644 index 0000000..8456724 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_src_flow_data_per_interval.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SrcFlowDataPerInterval is a nested struct in cdn response +type SrcFlowDataPerInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_src_host_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_src_host_config.go new file mode 100644 index 0000000..0dcad4e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_src_host_config.go @@ -0,0 +1,23 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SrcHostConfig is a nested struct in cdn response +type SrcHostConfig struct { + ConfigId string `json:"ConfigId" xml:"ConfigId"` + DomainName string `json:"DomainName" xml:"DomainName"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_stream_number_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_stream_number_info.go new file mode 100644 index 0000000..de32293 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_stream_number_info.go @@ -0,0 +1,22 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StreamNumberInfo is a nested struct in cdn response +type StreamNumberInfo struct { + Number int `json:"Number" xml:"Number"` + Time string `json:"Time" xml:"Time"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_stream_number_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_stream_number_infos.go new file mode 100644 index 0000000..f32bc7b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_stream_number_infos.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StreamNumberInfos is a nested struct in cdn response +type StreamNumberInfos struct { + StreamNumberInfo []StreamNumberInfo `json:"StreamNumberInfo" xml:"StreamNumberInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_stream_urls.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_stream_urls.go new file mode 100644 index 0000000..4e9336b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_stream_urls.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StreamUrls is a nested struct in cdn response +type StreamUrls struct { + StreamUrl []string `json:"StreamUrl" xml:"StreamUrl"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_supply_bps_datas.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_supply_bps_datas.go new file mode 100644 index 0000000..44981c4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_supply_bps_datas.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SupplyBpsDatas is a nested struct in cdn response +type SupplyBpsDatas struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_tasks.go new file mode 100644 index 0000000..3fef0ed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_tasks.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Tasks is a nested struct in cdn response +type Tasks struct { + CDNTask []CDNTask `json:"CDNTask" xml:"CDNTask"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_top_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_top_domain.go new file mode 100644 index 0000000..28220e3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_top_domain.go @@ -0,0 +1,27 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TopDomain is a nested struct in cdn response +type TopDomain struct { + DomainName string `json:"DomainName" xml:"DomainName"` + Rank int `json:"Rank" xml:"Rank"` + TotalTraffic string `json:"TotalTraffic" xml:"TotalTraffic"` + TrafficPercent string `json:"TrafficPercent" xml:"TrafficPercent"` + MaxBps int `json:"MaxBps" xml:"MaxBps"` + MaxBpsTime string `json:"MaxBpsTime" xml:"MaxBpsTime"` + TotalAccess int `json:"TotalAccess" xml:"TotalAccess"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_top_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_top_domains.go new file mode 100644 index 0000000..047cfce --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_top_domains.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TopDomains is a nested struct in cdn response +type TopDomains struct { + TopDomain []TopDomain `json:"TopDomain" xml:"TopDomain"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_top_refer_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_top_refer_list.go new file mode 100644 index 0000000..31698cf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_top_refer_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TopReferList is a nested struct in cdn response +type TopReferList struct { + ReferList []ReferList `json:"ReferList" xml:"ReferList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_url200_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_url200_list.go new file mode 100644 index 0000000..38e0be4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_url200_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Url200List is a nested struct in cdn response +type Url200List struct { + UrlList []UrlList `json:"UrlList" xml:"UrlList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_url300_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_url300_list.go new file mode 100644 index 0000000..ca73008 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_url300_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Url300List is a nested struct in cdn response +type Url300List struct { + UrlList []UrlList `json:"UrlList" xml:"UrlList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_url400_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_url400_list.go new file mode 100644 index 0000000..2fdb7a3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_url400_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Url400List is a nested struct in cdn response +type Url400List struct { + UrlList []UrlList `json:"UrlList" xml:"UrlList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_url500_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_url500_list.go new file mode 100644 index 0000000..697cf51 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_url500_list.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Url500List is a nested struct in cdn response +type Url500List struct { + UrlList []UrlList `json:"UrlList" xml:"UrlList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_url_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_url_list.go new file mode 100644 index 0000000..41571b5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_url_list.go @@ -0,0 +1,25 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UrlList is a nested struct in cdn response +type UrlList struct { + Flow string `json:"Flow" xml:"Flow"` + VisitData string `json:"VisitData" xml:"VisitData"` + UrlDetail string `json:"UrlDetail" xml:"UrlDetail"` + FlowProportion float64 `json:"FlowProportion" xml:"FlowProportion"` + VisitProportion float64 `json:"VisitProportion" xml:"VisitProportion"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_by_day.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_by_day.go new file mode 100644 index 0000000..c1e04f3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_by_day.go @@ -0,0 +1,30 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UsageByDay is a nested struct in cdn response +type UsageByDay struct { + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` + Qps string `json:"Qps" xml:"Qps"` + BytesHitRate string `json:"BytesHitRate" xml:"BytesHitRate"` + RequestHitRate string `json:"RequestHitRate" xml:"RequestHitRate"` + MaxBps string `json:"MaxBps" xml:"MaxBps"` + MaxBpsTime string `json:"MaxBpsTime" xml:"MaxBpsTime"` + MaxSrcBps string `json:"MaxSrcBps" xml:"MaxSrcBps"` + MaxSrcBpsTime string `json:"MaxSrcBpsTime" xml:"MaxSrcBpsTime"` + TotalAccess string `json:"TotalAccess" xml:"TotalAccess"` + TotalTraffic string `json:"TotalTraffic" xml:"TotalTraffic"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_by_days.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_by_days.go new file mode 100644 index 0000000..c67462e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_by_days.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UsageByDays is a nested struct in cdn response +type UsageByDays struct { + UsageByDay []UsageByDay `json:"UsageByDay" xml:"UsageByDay"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_data.go new file mode 100644 index 0000000..cae5598 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_data.go @@ -0,0 +1,26 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UsageData is a nested struct in cdn response +type UsageData struct { + Path string `json:"Path" xml:"Path"` + Time string `json:"Time" xml:"Time"` + Value string `json:"Value" xml:"Value"` + Traffic int `json:"Traffic" xml:"Traffic"` + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` + Acc int `json:"Acc" xml:"Acc"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_data_in_describe_domain_file_size_proportion_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_data_in_describe_domain_file_size_proportion_data.go new file mode 100644 index 0000000..b665f59 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_data_in_describe_domain_file_size_proportion_data.go @@ -0,0 +1,22 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UsageDataInDescribeDomainFileSizeProportionData is a nested struct in cdn response +type UsageDataInDescribeDomainFileSizeProportionData struct { + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` + Value ValueInDescribeDomainFileSizeProportionData `json:"Value" xml:"Value"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_data_in_describe_domain_http_code_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_data_in_describe_domain_http_code_data.go new file mode 100644 index 0000000..dcb9952 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_data_in_describe_domain_http_code_data.go @@ -0,0 +1,22 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UsageDataInDescribeDomainHttpCodeData is a nested struct in cdn response +type UsageDataInDescribeDomainHttpCodeData struct { + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` + Value ValueInDescribeDomainHttpCodeData `json:"Value" xml:"Value"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_data_in_describe_extensive_domain_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_data_in_describe_extensive_domain_data.go new file mode 100644 index 0000000..03e9390 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_data_in_describe_extensive_domain_data.go @@ -0,0 +1,24 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UsageDataInDescribeExtensiveDomainData is a nested struct in cdn response +type UsageDataInDescribeExtensiveDomainData struct { + ExactDomain string `json:"ExactDomain" xml:"ExactDomain"` + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` + Acc string `json:"Acc" xml:"Acc"` + Flow string `json:"Flow" xml:"Flow"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_total.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_total.go new file mode 100644 index 0000000..3a2dfb3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_usage_total.go @@ -0,0 +1,28 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UsageTotal is a nested struct in cdn response +type UsageTotal struct { + BytesHitRate string `json:"BytesHitRate" xml:"BytesHitRate"` + RequestHitRate string `json:"RequestHitRate" xml:"RequestHitRate"` + MaxBps string `json:"MaxBps" xml:"MaxBps"` + MaxBpsTime string `json:"MaxBpsTime" xml:"MaxBpsTime"` + MaxSrcBps string `json:"MaxSrcBps" xml:"MaxSrcBps"` + MaxSrcBpsTime string `json:"MaxSrcBpsTime" xml:"MaxSrcBpsTime"` + TotalAccess string `json:"TotalAccess" xml:"TotalAccess"` + TotalTraffic string `json:"TotalTraffic" xml:"TotalTraffic"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_user_limit_lists.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_user_limit_lists.go new file mode 100644 index 0000000..2242628 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_user_limit_lists.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UserLimitLists is a nested struct in cdn response +type UserLimitLists struct { + UserLimitMode []UserLimitMode `json:"UserLimitMode" xml:"UserLimitMode"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_user_limit_mode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_user_limit_mode.go new file mode 100644 index 0000000..570e7af --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_user_limit_mode.go @@ -0,0 +1,23 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UserLimitMode is a nested struct in cdn response +type UserLimitMode struct { + LimitDomain string `json:"LimitDomain" xml:"LimitDomain"` + LimitNum string `json:"LimitNum" xml:"LimitNum"` + LimitTranscodeNum string `json:"LimitTranscodeNum" xml:"LimitTranscodeNum"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_uv_data_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_uv_data_interval.go new file mode 100644 index 0000000..d5f9a8e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_uv_data_interval.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UvDataInterval is a nested struct in cdn response +type UvDataInterval struct { + UsageData []UsageData `json:"UsageData" xml:"UsageData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_value_in_describe_domain_file_size_proportion_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_value_in_describe_domain_file_size_proportion_data.go new file mode 100644 index 0000000..184996a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_value_in_describe_domain_file_size_proportion_data.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ValueInDescribeDomainFileSizeProportionData is a nested struct in cdn response +type ValueInDescribeDomainFileSizeProportionData struct { + FileSizeProportionData []FileSizeProportionData `json:"FileSizeProportionData" xml:"FileSizeProportionData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_value_in_describe_domain_http_code_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_value_in_describe_domain_http_code_data.go new file mode 100644 index 0000000..23c2f1e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_value_in_describe_domain_http_code_data.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ValueInDescribeDomainHttpCodeData is a nested struct in cdn response +type ValueInDescribeDomainHttpCodeData struct { + CodeProportionData []CodeProportionData `json:"CodeProportionData" xml:"CodeProportionData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_value_in_describe_domain_isp_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_value_in_describe_domain_isp_data.go new file mode 100644 index 0000000..c727f71 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_value_in_describe_domain_isp_data.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ValueInDescribeDomainISPData is a nested struct in cdn response +type ValueInDescribeDomainISPData struct { + ISPProportionData []ISPProportionData `json:"ISPProportionData" xml:"ISPProportionData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_value_in_describe_domain_region_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_value_in_describe_domain_region_data.go new file mode 100644 index 0000000..cfd06fb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_value_in_describe_domain_region_data.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ValueInDescribeDomainRegionData is a nested struct in cdn response +type ValueInDescribeDomainRegionData struct { + RegionProportionData []RegionProportionData `json:"RegionProportionData" xml:"RegionProportionData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_video_seek_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_video_seek_config.go new file mode 100644 index 0000000..c7b8534 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_video_seek_config.go @@ -0,0 +1,23 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoSeekConfig is a nested struct in cdn response +type VideoSeekConfig struct { + ConfigId string `json:"ConfigId" xml:"ConfigId"` + Enable string `json:"Enable" xml:"Enable"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_vips_in_describe_l2_vips_by_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_vips_in_describe_l2_vips_by_domain.go new file mode 100644 index 0000000..f883ba7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_vips_in_describe_l2_vips_by_domain.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VipsInDescribeL2VipsByDomain is a nested struct in cdn response +type VipsInDescribeL2VipsByDomain struct { + Vip []string `json:"Vip" xml:"Vip"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_vips_in_describe_user_vips_by_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_vips_in_describe_user_vips_by_domain.go new file mode 100644 index 0000000..dc27056 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_vips_in_describe_user_vips_by_domain.go @@ -0,0 +1,21 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VipsInDescribeUserVipsByDomain is a nested struct in cdn response +type VipsInDescribeUserVipsByDomain struct { + Vip []string `json:"Vip" xml:"Vip"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_waf_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_waf_config.go new file mode 100644 index 0000000..e4e7552 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/struct_waf_config.go @@ -0,0 +1,23 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// WafConfig is a nested struct in cdn response +type WafConfig struct { + ConfigId string `json:"ConfigId" xml:"ConfigId"` + Enable string `json:"Enable" xml:"Enable"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/update_fc_trigger.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/update_fc_trigger.go new file mode 100644 index 0000000..1701493 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/update_fc_trigger.go @@ -0,0 +1,107 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateFCTrigger invokes the cdn.UpdateFCTrigger API synchronously +// api document: https://help.aliyun.com/api/cdn/updatefctrigger.html +func (client *Client) UpdateFCTrigger(request *UpdateFCTriggerRequest) (response *UpdateFCTriggerResponse, err error) { + response = CreateUpdateFCTriggerResponse() + err = client.DoAction(request, response) + return +} + +// UpdateFCTriggerWithChan invokes the cdn.UpdateFCTrigger API asynchronously +// api document: https://help.aliyun.com/api/cdn/updatefctrigger.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateFCTriggerWithChan(request *UpdateFCTriggerRequest) (<-chan *UpdateFCTriggerResponse, <-chan error) { + responseChan := make(chan *UpdateFCTriggerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateFCTrigger(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateFCTriggerWithCallback invokes the cdn.UpdateFCTrigger API asynchronously +// api document: https://help.aliyun.com/api/cdn/updatefctrigger.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateFCTriggerWithCallback(request *UpdateFCTriggerRequest, callback func(response *UpdateFCTriggerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateFCTriggerResponse + var err error + defer close(result) + response, err = client.UpdateFCTrigger(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateFCTriggerRequest is the request struct for api UpdateFCTrigger +type UpdateFCTriggerRequest struct { + *requests.RpcRequest + Notes string `position:"Body" name:"Notes"` + TriggerARN string `position:"Query" name:"TriggerARN"` + SourceARN string `position:"Body" name:"SourceARN"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + RoleARN string `position:"Body" name:"RoleARN"` +} + +// UpdateFCTriggerResponse is the response struct for api UpdateFCTrigger +type UpdateFCTriggerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateFCTriggerRequest creates a request to invoke UpdateFCTrigger API +func CreateUpdateFCTriggerRequest() (request *UpdateFCTriggerRequest) { + request = &UpdateFCTriggerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "UpdateFCTrigger", "", "") + return +} + +// CreateUpdateFCTriggerResponse creates a response to parse from UpdateFCTrigger response +func CreateUpdateFCTriggerResponse() (response *UpdateFCTriggerResponse) { + response = &UpdateFCTriggerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/update_live_app_snapshot_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/update_live_app_snapshot_config.go new file mode 100644 index 0000000..13d2cc4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/update_live_app_snapshot_config.go @@ -0,0 +1,111 @@ +package cdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateLiveAppSnapshotConfig invokes the cdn.UpdateLiveAppSnapshotConfig API synchronously +// api document: https://help.aliyun.com/api/cdn/updateliveappsnapshotconfig.html +func (client *Client) UpdateLiveAppSnapshotConfig(request *UpdateLiveAppSnapshotConfigRequest) (response *UpdateLiveAppSnapshotConfigResponse, err error) { + response = CreateUpdateLiveAppSnapshotConfigResponse() + err = client.DoAction(request, response) + return +} + +// UpdateLiveAppSnapshotConfigWithChan invokes the cdn.UpdateLiveAppSnapshotConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/updateliveappsnapshotconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateLiveAppSnapshotConfigWithChan(request *UpdateLiveAppSnapshotConfigRequest) (<-chan *UpdateLiveAppSnapshotConfigResponse, <-chan error) { + responseChan := make(chan *UpdateLiveAppSnapshotConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateLiveAppSnapshotConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateLiveAppSnapshotConfigWithCallback invokes the cdn.UpdateLiveAppSnapshotConfig API asynchronously +// api document: https://help.aliyun.com/api/cdn/updateliveappsnapshotconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateLiveAppSnapshotConfigWithCallback(request *UpdateLiveAppSnapshotConfigRequest, callback func(response *UpdateLiveAppSnapshotConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateLiveAppSnapshotConfigResponse + var err error + defer close(result) + response, err = client.UpdateLiveAppSnapshotConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateLiveAppSnapshotConfigRequest is the request struct for api UpdateLiveAppSnapshotConfig +type UpdateLiveAppSnapshotConfigRequest struct { + *requests.RpcRequest + TimeInterval requests.Integer `position:"Query" name:"TimeInterval"` + OssBucket string `position:"Query" name:"OssBucket"` + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OssEndpoint string `position:"Query" name:"OssEndpoint"` + SequenceOssObject string `position:"Query" name:"SequenceOssObject"` + OverwriteOssObject string `position:"Query" name:"OverwriteOssObject"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// UpdateLiveAppSnapshotConfigResponse is the response struct for api UpdateLiveAppSnapshotConfig +type UpdateLiveAppSnapshotConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateLiveAppSnapshotConfigRequest creates a request to invoke UpdateLiveAppSnapshotConfig API +func CreateUpdateLiveAppSnapshotConfigRequest() (request *UpdateLiveAppSnapshotConfigRequest) { + request = &UpdateLiveAppSnapshotConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cdn", "2014-11-11", "UpdateLiveAppSnapshotConfig", "", "") + return +} + +// CreateUpdateLiveAppSnapshotConfigResponse creates a response to parse from UpdateLiveAppSnapshotConfig response +func CreateUpdateLiveAppSnapshotConfigResponse() (response *UpdateLiveAppSnapshotConfigResponse) { + response = &UpdateLiveAppSnapshotConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/chat.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/chat.go new file mode 100644 index 0000000..5e0e925 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/chat.go @@ -0,0 +1,114 @@ +package chatbot + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// Chat invokes the chatbot.Chat API synchronously +// api document: https://help.aliyun.com/api/chatbot/chat.html +func (client *Client) Chat(request *ChatRequest) (response *ChatResponse, err error) { + response = CreateChatResponse() + err = client.DoAction(request, response) + return +} + +// ChatWithChan invokes the chatbot.Chat API asynchronously +// api document: https://help.aliyun.com/api/chatbot/chat.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ChatWithChan(request *ChatRequest) (<-chan *ChatResponse, <-chan error) { + responseChan := make(chan *ChatResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.Chat(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ChatWithCallback invokes the chatbot.Chat API asynchronously +// api document: https://help.aliyun.com/api/chatbot/chat.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ChatWithCallback(request *ChatRequest, callback func(response *ChatResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ChatResponse + var err error + defer close(result) + response, err = client.Chat(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ChatRequest is the request struct for api Chat +type ChatRequest struct { + *requests.RpcRequest + KnowledgeId string `position:"Query" name:"KnowledgeId"` + SenderId string `position:"Query" name:"SenderId"` + InstanceId string `position:"Query" name:"InstanceId"` + SenderNick string `position:"Query" name:"SenderNick"` + Perspective *[]string `position:"Query" name:"Perspective" type:"Repeated"` + SessionId string `position:"Query" name:"SessionId"` + Tag string `position:"Query" name:"Tag"` + Utterance string `position:"Query" name:"Utterance"` +} + +// ChatResponse is the response struct for api Chat +type ChatResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SessionId string `json:"SessionId" xml:"SessionId"` + MessageId string `json:"MessageId" xml:"MessageId"` + Tag string `json:"Tag" xml:"Tag"` + Messages []Message `json:"Messages" xml:"Messages"` +} + +// CreateChatRequest creates a request to invoke Chat API +func CreateChatRequest() (request *ChatRequest) { + request = &ChatRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Chatbot", "2017-10-11", "Chat", "beebot", "openAPI") + return +} + +// CreateChatResponse creates a response to parse from Chat response +func CreateChatResponse() (response *ChatResponse) { + response = &ChatResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/client.go new file mode 100644 index 0000000..8c8428c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/client.go @@ -0,0 +1,81 @@ +package chatbot + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_knowledge.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_knowledge.go new file mode 100644 index 0000000..d162b41 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_knowledge.go @@ -0,0 +1,25 @@ +package chatbot + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Knowledge is a nested struct in chatbot response +type Knowledge struct { + Id string `json:"Id" xml:"Id"` + Title string `json:"Title" xml:"Title"` + Summary string `json:"Summary" xml:"Summary"` + Content string `json:"Content" xml:"Content"` + AnswerSource string `json:"AnswerSource" xml:"AnswerSource"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_message.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_message.go new file mode 100644 index 0000000..8c4c511 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_message.go @@ -0,0 +1,24 @@ +package chatbot + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Message is a nested struct in chatbot response +type Message struct { + Type string `json:"Type" xml:"Type"` + Text Text `json:"Text" xml:"Text"` + Knowledge Knowledge `json:"Knowledge" xml:"Knowledge"` + Recommends []Recommend `json:"Recommends" xml:"Recommends"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_messages.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_messages.go new file mode 100644 index 0000000..d26b1df --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_messages.go @@ -0,0 +1,21 @@ +package chatbot + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Messages is a nested struct in chatbot response +type Messages struct { + Message []Message `json:"Message" xml:"Message"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_recommend.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_recommend.go new file mode 100644 index 0000000..8661e8b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_recommend.go @@ -0,0 +1,25 @@ +package chatbot + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Recommend is a nested struct in chatbot response +type Recommend struct { + KnowledgeId string `json:"KnowledgeId" xml:"KnowledgeId"` + Title string `json:"Title" xml:"Title"` + AnswerSource string `json:"AnswerSource" xml:"AnswerSource"` + Summary string `json:"Summary" xml:"Summary"` + Content string `json:"Content" xml:"Content"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_recommends.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_recommends.go new file mode 100644 index 0000000..311e3f3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_recommends.go @@ -0,0 +1,21 @@ +package chatbot + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Recommends is a nested struct in chatbot response +type Recommends struct { + Recommend []Recommend `json:"Recommend" xml:"Recommend"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_text.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_text.go new file mode 100644 index 0000000..b83379b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/chatbot/struct_text.go @@ -0,0 +1,22 @@ +package chatbot + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Text is a nested struct in chatbot response +type Text struct { + Content string `json:"Content" xml:"Content"` + AnswerSource string `json:"AnswerSource" xml:"AnswerSource"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/abolish_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/abolish_api.go new file mode 100644 index 0000000..a071685 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/abolish_api.go @@ -0,0 +1,105 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AbolishApi invokes the cloudapi.AbolishApi API synchronously +// api document: https://help.aliyun.com/api/cloudapi/abolishapi.html +func (client *Client) AbolishApi(request *AbolishApiRequest) (response *AbolishApiResponse, err error) { + response = CreateAbolishApiResponse() + err = client.DoAction(request, response) + return +} + +// AbolishApiWithChan invokes the cloudapi.AbolishApi API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/abolishapi.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AbolishApiWithChan(request *AbolishApiRequest) (<-chan *AbolishApiResponse, <-chan error) { + responseChan := make(chan *AbolishApiResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AbolishApi(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AbolishApiWithCallback invokes the cloudapi.AbolishApi API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/abolishapi.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AbolishApiWithCallback(request *AbolishApiRequest, callback func(response *AbolishApiResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AbolishApiResponse + var err error + defer close(result) + response, err = client.AbolishApi(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AbolishApiRequest is the request struct for api AbolishApi +type AbolishApiRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + ApiId string `position:"Query" name:"ApiId"` + StageName string `position:"Query" name:"StageName"` +} + +// AbolishApiResponse is the response struct for api AbolishApi +type AbolishApiResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAbolishApiRequest creates a request to invoke AbolishApi API +func CreateAbolishApiRequest() (request *AbolishApiRequest) { + request = &AbolishApiRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "AbolishApi", "apigateway", "openAPI") + return +} + +// CreateAbolishApiResponse creates a response to parse from AbolishApi response +func CreateAbolishApiResponse() (response *AbolishApiResponse) { + response = &AbolishApiResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/add_catalog_relation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/add_catalog_relation.go new file mode 100644 index 0000000..daccc33 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/add_catalog_relation.go @@ -0,0 +1,104 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddCatalogRelation invokes the cloudapi.AddCatalogRelation API synchronously +// api document: https://help.aliyun.com/api/cloudapi/addcatalogrelation.html +func (client *Client) AddCatalogRelation(request *AddCatalogRelationRequest) (response *AddCatalogRelationResponse, err error) { + response = CreateAddCatalogRelationResponse() + err = client.DoAction(request, response) + return +} + +// AddCatalogRelationWithChan invokes the cloudapi.AddCatalogRelation API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/addcatalogrelation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCatalogRelationWithChan(request *AddCatalogRelationRequest) (<-chan *AddCatalogRelationResponse, <-chan error) { + responseChan := make(chan *AddCatalogRelationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddCatalogRelation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddCatalogRelationWithCallback invokes the cloudapi.AddCatalogRelation API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/addcatalogrelation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCatalogRelationWithCallback(request *AddCatalogRelationRequest, callback func(response *AddCatalogRelationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddCatalogRelationResponse + var err error + defer close(result) + response, err = client.AddCatalogRelation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddCatalogRelationRequest is the request struct for api AddCatalogRelation +type AddCatalogRelationRequest struct { + *requests.RpcRequest + CatalogId string `position:"Query" name:"CatalogId"` + ApiId string `position:"Query" name:"ApiId"` +} + +// AddCatalogRelationResponse is the response struct for api AddCatalogRelation +type AddCatalogRelationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddCatalogRelationRequest creates a request to invoke AddCatalogRelation API +func CreateAddCatalogRelationRequest() (request *AddCatalogRelationRequest) { + request = &AddCatalogRelationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "AddCatalogRelation", "apigateway", "openAPI") + return +} + +// CreateAddCatalogRelationResponse creates a response to parse from AddCatalogRelation response +func CreateAddCatalogRelationResponse() (response *AddCatalogRelationResponse) { + response = &AddCatalogRelationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/add_catalog_relations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/add_catalog_relations.go new file mode 100644 index 0000000..a112643 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/add_catalog_relations.go @@ -0,0 +1,104 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddCatalogRelations invokes the cloudapi.AddCatalogRelations API synchronously +// api document: https://help.aliyun.com/api/cloudapi/addcatalogrelations.html +func (client *Client) AddCatalogRelations(request *AddCatalogRelationsRequest) (response *AddCatalogRelationsResponse, err error) { + response = CreateAddCatalogRelationsResponse() + err = client.DoAction(request, response) + return +} + +// AddCatalogRelationsWithChan invokes the cloudapi.AddCatalogRelations API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/addcatalogrelations.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCatalogRelationsWithChan(request *AddCatalogRelationsRequest) (<-chan *AddCatalogRelationsResponse, <-chan error) { + responseChan := make(chan *AddCatalogRelationsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddCatalogRelations(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddCatalogRelationsWithCallback invokes the cloudapi.AddCatalogRelations API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/addcatalogrelations.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCatalogRelationsWithCallback(request *AddCatalogRelationsRequest, callback func(response *AddCatalogRelationsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddCatalogRelationsResponse + var err error + defer close(result) + response, err = client.AddCatalogRelations(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddCatalogRelationsRequest is the request struct for api AddCatalogRelations +type AddCatalogRelationsRequest struct { + *requests.RpcRequest + CatalogId string `position:"Query" name:"CatalogId"` + ApiIds string `position:"Query" name:"ApiIds"` +} + +// AddCatalogRelationsResponse is the response struct for api AddCatalogRelations +type AddCatalogRelationsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddCatalogRelationsRequest creates a request to invoke AddCatalogRelations API +func CreateAddCatalogRelationsRequest() (request *AddCatalogRelationsRequest) { + request = &AddCatalogRelationsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "AddCatalogRelations", "apigateway", "openAPI") + return +} + +// CreateAddCatalogRelationsResponse creates a response to parse from AddCatalogRelations response +func CreateAddCatalogRelationsResponse() (response *AddCatalogRelationsResponse) { + response = &AddCatalogRelationsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/add_ip_control_policy_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/add_ip_control_policy_item.go new file mode 100644 index 0000000..b8faf7b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/add_ip_control_policy_item.go @@ -0,0 +1,106 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddIpControlPolicyItem invokes the cloudapi.AddIpControlPolicyItem API synchronously +// api document: https://help.aliyun.com/api/cloudapi/addipcontrolpolicyitem.html +func (client *Client) AddIpControlPolicyItem(request *AddIpControlPolicyItemRequest) (response *AddIpControlPolicyItemResponse, err error) { + response = CreateAddIpControlPolicyItemResponse() + err = client.DoAction(request, response) + return +} + +// AddIpControlPolicyItemWithChan invokes the cloudapi.AddIpControlPolicyItem API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/addipcontrolpolicyitem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddIpControlPolicyItemWithChan(request *AddIpControlPolicyItemRequest) (<-chan *AddIpControlPolicyItemResponse, <-chan error) { + responseChan := make(chan *AddIpControlPolicyItemResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddIpControlPolicyItem(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddIpControlPolicyItemWithCallback invokes the cloudapi.AddIpControlPolicyItem API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/addipcontrolpolicyitem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddIpControlPolicyItemWithCallback(request *AddIpControlPolicyItemRequest, callback func(response *AddIpControlPolicyItemResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddIpControlPolicyItemResponse + var err error + defer close(result) + response, err = client.AddIpControlPolicyItem(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddIpControlPolicyItemRequest is the request struct for api AddIpControlPolicyItem +type AddIpControlPolicyItemRequest struct { + *requests.RpcRequest + IpControlId string `position:"Query" name:"IpControlId"` + AppId string `position:"Query" name:"AppId"` + CidrIp string `position:"Query" name:"CidrIp"` +} + +// AddIpControlPolicyItemResponse is the response struct for api AddIpControlPolicyItem +type AddIpControlPolicyItemResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PolicyItemId string `json:"PolicyItemId" xml:"PolicyItemId"` +} + +// CreateAddIpControlPolicyItemRequest creates a request to invoke AddIpControlPolicyItem API +func CreateAddIpControlPolicyItemRequest() (request *AddIpControlPolicyItemRequest) { + request = &AddIpControlPolicyItemRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "AddIpControlPolicyItem", "apigateway", "openAPI") + return +} + +// CreateAddIpControlPolicyItemResponse creates a response to parse from AddIpControlPolicyItem response +func CreateAddIpControlPolicyItemResponse() (response *AddIpControlPolicyItemResponse) { + response = &AddIpControlPolicyItemResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/add_traffic_special_control.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/add_traffic_special_control.go new file mode 100644 index 0000000..aa57122 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/add_traffic_special_control.go @@ -0,0 +1,106 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddTrafficSpecialControl invokes the cloudapi.AddTrafficSpecialControl API synchronously +// api document: https://help.aliyun.com/api/cloudapi/addtrafficspecialcontrol.html +func (client *Client) AddTrafficSpecialControl(request *AddTrafficSpecialControlRequest) (response *AddTrafficSpecialControlResponse, err error) { + response = CreateAddTrafficSpecialControlResponse() + err = client.DoAction(request, response) + return +} + +// AddTrafficSpecialControlWithChan invokes the cloudapi.AddTrafficSpecialControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/addtrafficspecialcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddTrafficSpecialControlWithChan(request *AddTrafficSpecialControlRequest) (<-chan *AddTrafficSpecialControlResponse, <-chan error) { + responseChan := make(chan *AddTrafficSpecialControlResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddTrafficSpecialControl(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddTrafficSpecialControlWithCallback invokes the cloudapi.AddTrafficSpecialControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/addtrafficspecialcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddTrafficSpecialControlWithCallback(request *AddTrafficSpecialControlRequest, callback func(response *AddTrafficSpecialControlResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddTrafficSpecialControlResponse + var err error + defer close(result) + response, err = client.AddTrafficSpecialControl(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddTrafficSpecialControlRequest is the request struct for api AddTrafficSpecialControl +type AddTrafficSpecialControlRequest struct { + *requests.RpcRequest + TrafficControlId string `position:"Query" name:"TrafficControlId"` + SpecialType string `position:"Query" name:"SpecialType"` + SpecialKey string `position:"Query" name:"SpecialKey"` + TrafficValue requests.Integer `position:"Query" name:"TrafficValue"` +} + +// AddTrafficSpecialControlResponse is the response struct for api AddTrafficSpecialControl +type AddTrafficSpecialControlResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddTrafficSpecialControlRequest creates a request to invoke AddTrafficSpecialControl API +func CreateAddTrafficSpecialControlRequest() (request *AddTrafficSpecialControlRequest) { + request = &AddTrafficSpecialControlRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "AddTrafficSpecialControl", "apigateway", "openAPI") + return +} + +// CreateAddTrafficSpecialControlResponse creates a response to parse from AddTrafficSpecialControl response +func CreateAddTrafficSpecialControlResponse() (response *AddTrafficSpecialControlResponse) { + response = &AddTrafficSpecialControlResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/clear_catalog_relations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/clear_catalog_relations.go new file mode 100644 index 0000000..6be5ee8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/clear_catalog_relations.go @@ -0,0 +1,103 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ClearCatalogRelations invokes the cloudapi.ClearCatalogRelations API synchronously +// api document: https://help.aliyun.com/api/cloudapi/clearcatalogrelations.html +func (client *Client) ClearCatalogRelations(request *ClearCatalogRelationsRequest) (response *ClearCatalogRelationsResponse, err error) { + response = CreateClearCatalogRelationsResponse() + err = client.DoAction(request, response) + return +} + +// ClearCatalogRelationsWithChan invokes the cloudapi.ClearCatalogRelations API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/clearcatalogrelations.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ClearCatalogRelationsWithChan(request *ClearCatalogRelationsRequest) (<-chan *ClearCatalogRelationsResponse, <-chan error) { + responseChan := make(chan *ClearCatalogRelationsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ClearCatalogRelations(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ClearCatalogRelationsWithCallback invokes the cloudapi.ClearCatalogRelations API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/clearcatalogrelations.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ClearCatalogRelationsWithCallback(request *ClearCatalogRelationsRequest, callback func(response *ClearCatalogRelationsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ClearCatalogRelationsResponse + var err error + defer close(result) + response, err = client.ClearCatalogRelations(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ClearCatalogRelationsRequest is the request struct for api ClearCatalogRelations +type ClearCatalogRelationsRequest struct { + *requests.RpcRequest + CatalogId string `position:"Query" name:"CatalogId"` +} + +// ClearCatalogRelationsResponse is the response struct for api ClearCatalogRelations +type ClearCatalogRelationsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateClearCatalogRelationsRequest creates a request to invoke ClearCatalogRelations API +func CreateClearCatalogRelationsRequest() (request *ClearCatalogRelationsRequest) { + request = &ClearCatalogRelationsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "ClearCatalogRelations", "apigateway", "openAPI") + return +} + +// CreateClearCatalogRelationsResponse creates a response to parse from ClearCatalogRelations response +func CreateClearCatalogRelationsResponse() (response *ClearCatalogRelationsResponse) { + response = &ClearCatalogRelationsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/client.go new file mode 100644 index 0000000..b52af19 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/client.go @@ -0,0 +1,81 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_api.go new file mode 100644 index 0000000..f2ab170 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_api.go @@ -0,0 +1,123 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateApi invokes the cloudapi.CreateApi API synchronously +// api document: https://help.aliyun.com/api/cloudapi/createapi.html +func (client *Client) CreateApi(request *CreateApiRequest) (response *CreateApiResponse, err error) { + response = CreateCreateApiResponse() + err = client.DoAction(request, response) + return +} + +// CreateApiWithChan invokes the cloudapi.CreateApi API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/createapi.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateApiWithChan(request *CreateApiRequest) (<-chan *CreateApiResponse, <-chan error) { + responseChan := make(chan *CreateApiResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateApi(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateApiWithCallback invokes the cloudapi.CreateApi API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/createapi.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateApiWithCallback(request *CreateApiRequest, callback func(response *CreateApiResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateApiResponse + var err error + defer close(result) + response, err = client.CreateApi(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateApiRequest is the request struct for api CreateApi +type CreateApiRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + ApiName string `position:"Query" name:"ApiName"` + Visibility string `position:"Query" name:"Visibility"` + Description string `position:"Query" name:"Description"` + AuthType string `position:"Query" name:"AuthType"` + RequestConfig string `position:"Query" name:"RequestConfig"` + ServiceConfig string `position:"Query" name:"ServiceConfig"` + RequestParameters string `position:"Query" name:"RequestParameters"` + SystemParameters string `position:"Query" name:"SystemParameters"` + ConstantParameters string `position:"Query" name:"ConstantParameters"` + ServiceParameters string `position:"Query" name:"ServiceParameters"` + ServiceParametersMap string `position:"Query" name:"ServiceParametersMap"` + ResultType string `position:"Query" name:"ResultType"` + ResultSample string `position:"Query" name:"ResultSample"` + FailResultSample string `position:"Query" name:"FailResultSample"` + ErrorCodeSamples string `position:"Query" name:"ErrorCodeSamples"` + ResultDescriptions string `position:"Query" name:"ResultDescriptions"` + OpenIdConnectConfig string `position:"Query" name:"OpenIdConnectConfig"` + AllowSignatureMethod string `position:"Query" name:"AllowSignatureMethod"` + WebSocketApiType string `position:"Query" name:"WebSocketApiType"` +} + +// CreateApiResponse is the response struct for api CreateApi +type CreateApiResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ApiId string `json:"ApiId" xml:"ApiId"` +} + +// CreateCreateApiRequest creates a request to invoke CreateApi API +func CreateCreateApiRequest() (request *CreateApiRequest) { + request = &CreateApiRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "CreateApi", "apigateway", "openAPI") + return +} + +// CreateCreateApiResponse creates a response to parse from CreateApi response +func CreateCreateApiResponse() (response *CreateApiResponse) { + response = &CreateApiResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_api_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_api_group.go new file mode 100644 index 0000000..46481f9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_api_group.go @@ -0,0 +1,108 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateApiGroup invokes the cloudapi.CreateApiGroup API synchronously +// api document: https://help.aliyun.com/api/cloudapi/createapigroup.html +func (client *Client) CreateApiGroup(request *CreateApiGroupRequest) (response *CreateApiGroupResponse, err error) { + response = CreateCreateApiGroupResponse() + err = client.DoAction(request, response) + return +} + +// CreateApiGroupWithChan invokes the cloudapi.CreateApiGroup API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/createapigroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateApiGroupWithChan(request *CreateApiGroupRequest) (<-chan *CreateApiGroupResponse, <-chan error) { + responseChan := make(chan *CreateApiGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateApiGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateApiGroupWithCallback invokes the cloudapi.CreateApiGroup API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/createapigroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateApiGroupWithCallback(request *CreateApiGroupRequest, callback func(response *CreateApiGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateApiGroupResponse + var err error + defer close(result) + response, err = client.CreateApiGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateApiGroupRequest is the request struct for api CreateApiGroup +type CreateApiGroupRequest struct { + *requests.RpcRequest + GroupName string `position:"Query" name:"GroupName"` + Description string `position:"Query" name:"Description"` +} + +// CreateApiGroupResponse is the response struct for api CreateApiGroup +type CreateApiGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + GroupId string `json:"GroupId" xml:"GroupId"` + GroupName string `json:"GroupName" xml:"GroupName"` + SubDomain string `json:"SubDomain" xml:"SubDomain"` + Description string `json:"Description" xml:"Description"` +} + +// CreateCreateApiGroupRequest creates a request to invoke CreateApiGroup API +func CreateCreateApiGroupRequest() (request *CreateApiGroupRequest) { + request = &CreateApiGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "CreateApiGroup", "apigateway", "openAPI") + return +} + +// CreateCreateApiGroupResponse creates a response to parse from CreateApiGroup response +func CreateCreateApiGroupResponse() (response *CreateApiGroupResponse) { + response = &CreateApiGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_api_stage_variable.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_api_stage_variable.go new file mode 100644 index 0000000..91683d0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_api_stage_variable.go @@ -0,0 +1,108 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateApiStageVariable invokes the cloudapi.CreateApiStageVariable API synchronously +// api document: https://help.aliyun.com/api/cloudapi/createapistagevariable.html +func (client *Client) CreateApiStageVariable(request *CreateApiStageVariableRequest) (response *CreateApiStageVariableResponse, err error) { + response = CreateCreateApiStageVariableResponse() + err = client.DoAction(request, response) + return +} + +// CreateApiStageVariableWithChan invokes the cloudapi.CreateApiStageVariable API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/createapistagevariable.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateApiStageVariableWithChan(request *CreateApiStageVariableRequest) (<-chan *CreateApiStageVariableResponse, <-chan error) { + responseChan := make(chan *CreateApiStageVariableResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateApiStageVariable(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateApiStageVariableWithCallback invokes the cloudapi.CreateApiStageVariable API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/createapistagevariable.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateApiStageVariableWithCallback(request *CreateApiStageVariableRequest, callback func(response *CreateApiStageVariableResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateApiStageVariableResponse + var err error + defer close(result) + response, err = client.CreateApiStageVariable(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateApiStageVariableRequest is the request struct for api CreateApiStageVariable +type CreateApiStageVariableRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + StageId string `position:"Query" name:"StageId"` + VariableName string `position:"Query" name:"VariableName"` + SupportRoute requests.Boolean `position:"Query" name:"SupportRoute"` + VariableValue string `position:"Query" name:"VariableValue"` + StageRouteModel string `position:"Query" name:"StageRouteModel"` +} + +// CreateApiStageVariableResponse is the response struct for api CreateApiStageVariable +type CreateApiStageVariableResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateApiStageVariableRequest creates a request to invoke CreateApiStageVariable API +func CreateCreateApiStageVariableRequest() (request *CreateApiStageVariableRequest) { + request = &CreateApiStageVariableRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "CreateApiStageVariable", "apigateway", "openAPI") + return +} + +// CreateCreateApiStageVariableResponse creates a response to parse from CreateApiStageVariable response +func CreateCreateApiStageVariableResponse() (response *CreateApiStageVariableResponse) { + response = &CreateApiStageVariableResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_app.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_app.go new file mode 100644 index 0000000..db9092f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_app.go @@ -0,0 +1,105 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateApp invokes the cloudapi.CreateApp API synchronously +// api document: https://help.aliyun.com/api/cloudapi/createapp.html +func (client *Client) CreateApp(request *CreateAppRequest) (response *CreateAppResponse, err error) { + response = CreateCreateAppResponse() + err = client.DoAction(request, response) + return +} + +// CreateAppWithChan invokes the cloudapi.CreateApp API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/createapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateAppWithChan(request *CreateAppRequest) (<-chan *CreateAppResponse, <-chan error) { + responseChan := make(chan *CreateAppResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateApp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateAppWithCallback invokes the cloudapi.CreateApp API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/createapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateAppWithCallback(request *CreateAppRequest, callback func(response *CreateAppResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateAppResponse + var err error + defer close(result) + response, err = client.CreateApp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateAppRequest is the request struct for api CreateApp +type CreateAppRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + Description string `position:"Query" name:"Description"` +} + +// CreateAppResponse is the response struct for api CreateApp +type CreateAppResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AppId int `json:"AppId" xml:"AppId"` +} + +// CreateCreateAppRequest creates a request to invoke CreateApp API +func CreateCreateAppRequest() (request *CreateAppRequest) { + request = &CreateAppRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "CreateApp", "apigateway", "openAPI") + return +} + +// CreateCreateAppResponse creates a response to parse from CreateApp response +func CreateCreateAppResponse() (response *CreateAppResponse) { + response = &CreateAppResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_catalog.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_catalog.go new file mode 100644 index 0000000..6881b89 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_catalog.go @@ -0,0 +1,106 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateCatalog invokes the cloudapi.CreateCatalog API synchronously +// api document: https://help.aliyun.com/api/cloudapi/createcatalog.html +func (client *Client) CreateCatalog(request *CreateCatalogRequest) (response *CreateCatalogResponse, err error) { + response = CreateCreateCatalogResponse() + err = client.DoAction(request, response) + return +} + +// CreateCatalogWithChan invokes the cloudapi.CreateCatalog API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/createcatalog.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateCatalogWithChan(request *CreateCatalogRequest) (<-chan *CreateCatalogResponse, <-chan error) { + responseChan := make(chan *CreateCatalogResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateCatalog(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateCatalogWithCallback invokes the cloudapi.CreateCatalog API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/createcatalog.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateCatalogWithCallback(request *CreateCatalogRequest, callback func(response *CreateCatalogResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateCatalogResponse + var err error + defer close(result) + response, err = client.CreateCatalog(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateCatalogRequest is the request struct for api CreateCatalog +type CreateCatalogRequest struct { + *requests.RpcRequest + CatalogName string `position:"Query" name:"CatalogName"` + Description string `position:"Query" name:"Description"` + ParentId string `position:"Query" name:"ParentId"` +} + +// CreateCatalogResponse is the response struct for api CreateCatalog +type CreateCatalogResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CatalogId string `json:"CatalogId" xml:"CatalogId"` +} + +// CreateCreateCatalogRequest creates a request to invoke CreateCatalog API +func CreateCreateCatalogRequest() (request *CreateCatalogRequest) { + request = &CreateCatalogRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "CreateCatalog", "apigateway", "openAPI") + return +} + +// CreateCreateCatalogResponse creates a response to parse from CreateCatalog response +func CreateCreateCatalogResponse() (response *CreateCatalogResponse) { + response = &CreateCatalogResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_ip_control.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_ip_control.go new file mode 100644 index 0000000..1b64597 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_ip_control.go @@ -0,0 +1,113 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateIpControl invokes the cloudapi.CreateIpControl API synchronously +// api document: https://help.aliyun.com/api/cloudapi/createipcontrol.html +func (client *Client) CreateIpControl(request *CreateIpControlRequest) (response *CreateIpControlResponse, err error) { + response = CreateCreateIpControlResponse() + err = client.DoAction(request, response) + return +} + +// CreateIpControlWithChan invokes the cloudapi.CreateIpControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/createipcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateIpControlWithChan(request *CreateIpControlRequest) (<-chan *CreateIpControlResponse, <-chan error) { + responseChan := make(chan *CreateIpControlResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateIpControl(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateIpControlWithCallback invokes the cloudapi.CreateIpControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/createipcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateIpControlWithCallback(request *CreateIpControlRequest, callback func(response *CreateIpControlResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateIpControlResponse + var err error + defer close(result) + response, err = client.CreateIpControl(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateIpControlRequest is the request struct for api CreateIpControl +type CreateIpControlRequest struct { + *requests.RpcRequest + IpControlName string `position:"Query" name:"IpControlName"` + IpControlType string `position:"Query" name:"IpControlType"` + Description string `position:"Query" name:"Description"` + IpControlPolicys *[]CreateIpControlIpControlPolicys `position:"Query" name:"IpControlPolicys" type:"Repeated"` +} + +// CreateIpControlIpControlPolicys is a repeated param struct in CreateIpControlRequest +type CreateIpControlIpControlPolicys struct { + AppId string `name:"AppId"` + CidrIp string `name:"CidrIp"` +} + +// CreateIpControlResponse is the response struct for api CreateIpControl +type CreateIpControlResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + IpControlId string `json:"IpControlId" xml:"IpControlId"` +} + +// CreateCreateIpControlRequest creates a request to invoke CreateIpControl API +func CreateCreateIpControlRequest() (request *CreateIpControlRequest) { + request = &CreateIpControlRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "CreateIpControl", "apigateway", "openAPI") + return +} + +// CreateCreateIpControlResponse creates a response to parse from CreateIpControl response +func CreateCreateIpControlResponse() (response *CreateIpControlResponse) { + response = &CreateIpControlResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_log_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_log_config.go new file mode 100644 index 0000000..27353c5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_log_config.go @@ -0,0 +1,105 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateLogConfig invokes the cloudapi.CreateLogConfig API synchronously +// api document: https://help.aliyun.com/api/cloudapi/createlogconfig.html +func (client *Client) CreateLogConfig(request *CreateLogConfigRequest) (response *CreateLogConfigResponse, err error) { + response = CreateCreateLogConfigResponse() + err = client.DoAction(request, response) + return +} + +// CreateLogConfigWithChan invokes the cloudapi.CreateLogConfig API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/createlogconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLogConfigWithChan(request *CreateLogConfigRequest) (<-chan *CreateLogConfigResponse, <-chan error) { + responseChan := make(chan *CreateLogConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateLogConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateLogConfigWithCallback invokes the cloudapi.CreateLogConfig API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/createlogconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLogConfigWithCallback(request *CreateLogConfigRequest, callback func(response *CreateLogConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateLogConfigResponse + var err error + defer close(result) + response, err = client.CreateLogConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateLogConfigRequest is the request struct for api CreateLogConfig +type CreateLogConfigRequest struct { + *requests.RpcRequest + SlsProject string `position:"Query" name:"SlsProject"` + SlsLogStore string `position:"Query" name:"SlsLogStore"` + LogType string `position:"Query" name:"LogType"` +} + +// CreateLogConfigResponse is the response struct for api CreateLogConfig +type CreateLogConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateLogConfigRequest creates a request to invoke CreateLogConfig API +func CreateCreateLogConfigRequest() (request *CreateLogConfigRequest) { + request = &CreateLogConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "CreateLogConfig", "apigateway", "openAPI") + return +} + +// CreateCreateLogConfigResponse creates a response to parse from CreateLogConfig response +func CreateCreateLogConfigResponse() (response *CreateLogConfigResponse) { + response = &CreateLogConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_signature.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_signature.go new file mode 100644 index 0000000..e5ba870 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_signature.go @@ -0,0 +1,107 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateSignature invokes the cloudapi.CreateSignature API synchronously +// api document: https://help.aliyun.com/api/cloudapi/createsignature.html +func (client *Client) CreateSignature(request *CreateSignatureRequest) (response *CreateSignatureResponse, err error) { + response = CreateCreateSignatureResponse() + err = client.DoAction(request, response) + return +} + +// CreateSignatureWithChan invokes the cloudapi.CreateSignature API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/createsignature.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSignatureWithChan(request *CreateSignatureRequest) (<-chan *CreateSignatureResponse, <-chan error) { + responseChan := make(chan *CreateSignatureResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateSignature(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateSignatureWithCallback invokes the cloudapi.CreateSignature API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/createsignature.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSignatureWithCallback(request *CreateSignatureRequest, callback func(response *CreateSignatureResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateSignatureResponse + var err error + defer close(result) + response, err = client.CreateSignature(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateSignatureRequest is the request struct for api CreateSignature +type CreateSignatureRequest struct { + *requests.RpcRequest + SignatureName string `position:"Query" name:"SignatureName"` + SignatureKey string `position:"Query" name:"SignatureKey"` + SignatureSecret string `position:"Query" name:"SignatureSecret"` +} + +// CreateSignatureResponse is the response struct for api CreateSignature +type CreateSignatureResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SignatureId string `json:"SignatureId" xml:"SignatureId"` + SignatureName string `json:"SignatureName" xml:"SignatureName"` +} + +// CreateCreateSignatureRequest creates a request to invoke CreateSignature API +func CreateCreateSignatureRequest() (request *CreateSignatureRequest) { + request = &CreateSignatureRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "CreateSignature", "apigateway", "openAPI") + return +} + +// CreateCreateSignatureResponse creates a response to parse from CreateSignature response +func CreateCreateSignatureResponse() (response *CreateSignatureResponse) { + response = &CreateSignatureResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_traffic_control.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_traffic_control.go new file mode 100644 index 0000000..8736d69 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/create_traffic_control.go @@ -0,0 +1,109 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateTrafficControl invokes the cloudapi.CreateTrafficControl API synchronously +// api document: https://help.aliyun.com/api/cloudapi/createtrafficcontrol.html +func (client *Client) CreateTrafficControl(request *CreateTrafficControlRequest) (response *CreateTrafficControlResponse, err error) { + response = CreateCreateTrafficControlResponse() + err = client.DoAction(request, response) + return +} + +// CreateTrafficControlWithChan invokes the cloudapi.CreateTrafficControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/createtrafficcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateTrafficControlWithChan(request *CreateTrafficControlRequest) (<-chan *CreateTrafficControlResponse, <-chan error) { + responseChan := make(chan *CreateTrafficControlResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateTrafficControl(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateTrafficControlWithCallback invokes the cloudapi.CreateTrafficControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/createtrafficcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateTrafficControlWithCallback(request *CreateTrafficControlRequest, callback func(response *CreateTrafficControlResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateTrafficControlResponse + var err error + defer close(result) + response, err = client.CreateTrafficControl(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateTrafficControlRequest is the request struct for api CreateTrafficControl +type CreateTrafficControlRequest struct { + *requests.RpcRequest + TrafficControlName string `position:"Query" name:"TrafficControlName"` + TrafficControlUnit string `position:"Query" name:"TrafficControlUnit"` + ApiDefault requests.Integer `position:"Query" name:"ApiDefault"` + UserDefault requests.Integer `position:"Query" name:"UserDefault"` + AppDefault requests.Integer `position:"Query" name:"AppDefault"` + Description string `position:"Query" name:"Description"` +} + +// CreateTrafficControlResponse is the response struct for api CreateTrafficControl +type CreateTrafficControlResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TrafficControlId string `json:"TrafficControlId" xml:"TrafficControlId"` +} + +// CreateCreateTrafficControlRequest creates a request to invoke CreateTrafficControl API +func CreateCreateTrafficControlRequest() (request *CreateTrafficControlRequest) { + request = &CreateTrafficControlRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "CreateTrafficControl", "apigateway", "openAPI") + return +} + +// CreateCreateTrafficControlResponse creates a response to parse from CreateTrafficControl response +func CreateCreateTrafficControlResponse() (response *CreateTrafficControlResponse) { + response = &CreateTrafficControlResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_all_traffic_special_control.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_all_traffic_special_control.go new file mode 100644 index 0000000..019c1ff --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_all_traffic_special_control.go @@ -0,0 +1,103 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteAllTrafficSpecialControl invokes the cloudapi.DeleteAllTrafficSpecialControl API synchronously +// api document: https://help.aliyun.com/api/cloudapi/deletealltrafficspecialcontrol.html +func (client *Client) DeleteAllTrafficSpecialControl(request *DeleteAllTrafficSpecialControlRequest) (response *DeleteAllTrafficSpecialControlResponse, err error) { + response = CreateDeleteAllTrafficSpecialControlResponse() + err = client.DoAction(request, response) + return +} + +// DeleteAllTrafficSpecialControlWithChan invokes the cloudapi.DeleteAllTrafficSpecialControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deletealltrafficspecialcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAllTrafficSpecialControlWithChan(request *DeleteAllTrafficSpecialControlRequest) (<-chan *DeleteAllTrafficSpecialControlResponse, <-chan error) { + responseChan := make(chan *DeleteAllTrafficSpecialControlResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteAllTrafficSpecialControl(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteAllTrafficSpecialControlWithCallback invokes the cloudapi.DeleteAllTrafficSpecialControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deletealltrafficspecialcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAllTrafficSpecialControlWithCallback(request *DeleteAllTrafficSpecialControlRequest, callback func(response *DeleteAllTrafficSpecialControlResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteAllTrafficSpecialControlResponse + var err error + defer close(result) + response, err = client.DeleteAllTrafficSpecialControl(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteAllTrafficSpecialControlRequest is the request struct for api DeleteAllTrafficSpecialControl +type DeleteAllTrafficSpecialControlRequest struct { + *requests.RpcRequest + TrafficControlId string `position:"Query" name:"TrafficControlId"` +} + +// DeleteAllTrafficSpecialControlResponse is the response struct for api DeleteAllTrafficSpecialControl +type DeleteAllTrafficSpecialControlResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteAllTrafficSpecialControlRequest creates a request to invoke DeleteAllTrafficSpecialControl API +func CreateDeleteAllTrafficSpecialControlRequest() (request *DeleteAllTrafficSpecialControlRequest) { + request = &DeleteAllTrafficSpecialControlRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DeleteAllTrafficSpecialControl", "apigateway", "openAPI") + return +} + +// CreateDeleteAllTrafficSpecialControlResponse creates a response to parse from DeleteAllTrafficSpecialControl response +func CreateDeleteAllTrafficSpecialControlResponse() (response *DeleteAllTrafficSpecialControlResponse) { + response = &DeleteAllTrafficSpecialControlResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_api.go new file mode 100644 index 0000000..dcc54c5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_api.go @@ -0,0 +1,104 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteApi invokes the cloudapi.DeleteApi API synchronously +// api document: https://help.aliyun.com/api/cloudapi/deleteapi.html +func (client *Client) DeleteApi(request *DeleteApiRequest) (response *DeleteApiResponse, err error) { + response = CreateDeleteApiResponse() + err = client.DoAction(request, response) + return +} + +// DeleteApiWithChan invokes the cloudapi.DeleteApi API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deleteapi.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteApiWithChan(request *DeleteApiRequest) (<-chan *DeleteApiResponse, <-chan error) { + responseChan := make(chan *DeleteApiResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteApi(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteApiWithCallback invokes the cloudapi.DeleteApi API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deleteapi.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteApiWithCallback(request *DeleteApiRequest, callback func(response *DeleteApiResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteApiResponse + var err error + defer close(result) + response, err = client.DeleteApi(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteApiRequest is the request struct for api DeleteApi +type DeleteApiRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + ApiId string `position:"Query" name:"ApiId"` +} + +// DeleteApiResponse is the response struct for api DeleteApi +type DeleteApiResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteApiRequest creates a request to invoke DeleteApi API +func CreateDeleteApiRequest() (request *DeleteApiRequest) { + request = &DeleteApiRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DeleteApi", "apigateway", "openAPI") + return +} + +// CreateDeleteApiResponse creates a response to parse from DeleteApi response +func CreateDeleteApiResponse() (response *DeleteApiResponse) { + response = &DeleteApiResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_api_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_api_group.go new file mode 100644 index 0000000..413f166 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_api_group.go @@ -0,0 +1,103 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteApiGroup invokes the cloudapi.DeleteApiGroup API synchronously +// api document: https://help.aliyun.com/api/cloudapi/deleteapigroup.html +func (client *Client) DeleteApiGroup(request *DeleteApiGroupRequest) (response *DeleteApiGroupResponse, err error) { + response = CreateDeleteApiGroupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteApiGroupWithChan invokes the cloudapi.DeleteApiGroup API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deleteapigroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteApiGroupWithChan(request *DeleteApiGroupRequest) (<-chan *DeleteApiGroupResponse, <-chan error) { + responseChan := make(chan *DeleteApiGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteApiGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteApiGroupWithCallback invokes the cloudapi.DeleteApiGroup API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deleteapigroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteApiGroupWithCallback(request *DeleteApiGroupRequest, callback func(response *DeleteApiGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteApiGroupResponse + var err error + defer close(result) + response, err = client.DeleteApiGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteApiGroupRequest is the request struct for api DeleteApiGroup +type DeleteApiGroupRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` +} + +// DeleteApiGroupResponse is the response struct for api DeleteApiGroup +type DeleteApiGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteApiGroupRequest creates a request to invoke DeleteApiGroup API +func CreateDeleteApiGroupRequest() (request *DeleteApiGroupRequest) { + request = &DeleteApiGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DeleteApiGroup", "apigateway", "openAPI") + return +} + +// CreateDeleteApiGroupResponse creates a response to parse from DeleteApiGroup response +func CreateDeleteApiGroupResponse() (response *DeleteApiGroupResponse) { + response = &DeleteApiGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_api_stage_variable.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_api_stage_variable.go new file mode 100644 index 0000000..af34962 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_api_stage_variable.go @@ -0,0 +1,105 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteApiStageVariable invokes the cloudapi.DeleteApiStageVariable API synchronously +// api document: https://help.aliyun.com/api/cloudapi/deleteapistagevariable.html +func (client *Client) DeleteApiStageVariable(request *DeleteApiStageVariableRequest) (response *DeleteApiStageVariableResponse, err error) { + response = CreateDeleteApiStageVariableResponse() + err = client.DoAction(request, response) + return +} + +// DeleteApiStageVariableWithChan invokes the cloudapi.DeleteApiStageVariable API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deleteapistagevariable.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteApiStageVariableWithChan(request *DeleteApiStageVariableRequest) (<-chan *DeleteApiStageVariableResponse, <-chan error) { + responseChan := make(chan *DeleteApiStageVariableResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteApiStageVariable(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteApiStageVariableWithCallback invokes the cloudapi.DeleteApiStageVariable API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deleteapistagevariable.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteApiStageVariableWithCallback(request *DeleteApiStageVariableRequest, callback func(response *DeleteApiStageVariableResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteApiStageVariableResponse + var err error + defer close(result) + response, err = client.DeleteApiStageVariable(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteApiStageVariableRequest is the request struct for api DeleteApiStageVariable +type DeleteApiStageVariableRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + StageId string `position:"Query" name:"StageId"` + VariableName string `position:"Query" name:"VariableName"` +} + +// DeleteApiStageVariableResponse is the response struct for api DeleteApiStageVariable +type DeleteApiStageVariableResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteApiStageVariableRequest creates a request to invoke DeleteApiStageVariable API +func CreateDeleteApiStageVariableRequest() (request *DeleteApiStageVariableRequest) { + request = &DeleteApiStageVariableRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DeleteApiStageVariable", "apigateway", "openAPI") + return +} + +// CreateDeleteApiStageVariableResponse creates a response to parse from DeleteApiStageVariable response +func CreateDeleteApiStageVariableResponse() (response *DeleteApiStageVariableResponse) { + response = &DeleteApiStageVariableResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_app.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_app.go new file mode 100644 index 0000000..da08e43 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_app.go @@ -0,0 +1,103 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteApp invokes the cloudapi.DeleteApp API synchronously +// api document: https://help.aliyun.com/api/cloudapi/deleteapp.html +func (client *Client) DeleteApp(request *DeleteAppRequest) (response *DeleteAppResponse, err error) { + response = CreateDeleteAppResponse() + err = client.DoAction(request, response) + return +} + +// DeleteAppWithChan invokes the cloudapi.DeleteApp API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deleteapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAppWithChan(request *DeleteAppRequest) (<-chan *DeleteAppResponse, <-chan error) { + responseChan := make(chan *DeleteAppResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteApp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteAppWithCallback invokes the cloudapi.DeleteApp API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deleteapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAppWithCallback(request *DeleteAppRequest, callback func(response *DeleteAppResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteAppResponse + var err error + defer close(result) + response, err = client.DeleteApp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteAppRequest is the request struct for api DeleteApp +type DeleteAppRequest struct { + *requests.RpcRequest + AppId requests.Integer `position:"Query" name:"AppId"` +} + +// DeleteAppResponse is the response struct for api DeleteApp +type DeleteAppResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteAppRequest creates a request to invoke DeleteApp API +func CreateDeleteAppRequest() (request *DeleteAppRequest) { + request = &DeleteAppRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DeleteApp", "apigateway", "openAPI") + return +} + +// CreateDeleteAppResponse creates a response to parse from DeleteApp response +func CreateDeleteAppResponse() (response *DeleteAppResponse) { + response = &DeleteAppResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_catalog.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_catalog.go new file mode 100644 index 0000000..3a0fb3b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_catalog.go @@ -0,0 +1,103 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCatalog invokes the cloudapi.DeleteCatalog API synchronously +// api document: https://help.aliyun.com/api/cloudapi/deletecatalog.html +func (client *Client) DeleteCatalog(request *DeleteCatalogRequest) (response *DeleteCatalogResponse, err error) { + response = CreateDeleteCatalogResponse() + err = client.DoAction(request, response) + return +} + +// DeleteCatalogWithChan invokes the cloudapi.DeleteCatalog API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deletecatalog.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCatalogWithChan(request *DeleteCatalogRequest) (<-chan *DeleteCatalogResponse, <-chan error) { + responseChan := make(chan *DeleteCatalogResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCatalog(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteCatalogWithCallback invokes the cloudapi.DeleteCatalog API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deletecatalog.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCatalogWithCallback(request *DeleteCatalogRequest, callback func(response *DeleteCatalogResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteCatalogResponse + var err error + defer close(result) + response, err = client.DeleteCatalog(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteCatalogRequest is the request struct for api DeleteCatalog +type DeleteCatalogRequest struct { + *requests.RpcRequest + CatalogId string `position:"Query" name:"CatalogId"` +} + +// DeleteCatalogResponse is the response struct for api DeleteCatalog +type DeleteCatalogResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteCatalogRequest creates a request to invoke DeleteCatalog API +func CreateDeleteCatalogRequest() (request *DeleteCatalogRequest) { + request = &DeleteCatalogRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DeleteCatalog", "apigateway", "openAPI") + return +} + +// CreateDeleteCatalogResponse creates a response to parse from DeleteCatalog response +func CreateDeleteCatalogResponse() (response *DeleteCatalogResponse) { + response = &DeleteCatalogResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_domain.go new file mode 100644 index 0000000..5652b92 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_domain.go @@ -0,0 +1,104 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 cloudapi.DeleteDomain API synchronously +// api document: https://help.aliyun.com/api/cloudapi/deletedomain.html +func (client *Client) DeleteDomain(request *DeleteDomainRequest) (response *DeleteDomainResponse, err error) { + response = CreateDeleteDomainResponse() + err = client.DoAction(request, response) + return +} + +// DeleteDomainWithChan invokes the cloudapi.DeleteDomain API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deletedomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 cloudapi.DeleteDomain API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deletedomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + GroupId string `position:"Query" name:"GroupId"` + DomainName string `position:"Query" name:"DomainName"` +} + +// DeleteDomainResponse is the response struct for api DeleteDomain +type DeleteDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteDomainRequest creates a request to invoke DeleteDomain API +func CreateDeleteDomainRequest() (request *DeleteDomainRequest) { + request = &DeleteDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DeleteDomain", "apigateway", "openAPI") + 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/cloudapi/delete_domain_certificate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_domain_certificate.go new file mode 100644 index 0000000..ecb4821 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_domain_certificate.go @@ -0,0 +1,105 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteDomainCertificate invokes the cloudapi.DeleteDomainCertificate API synchronously +// api document: https://help.aliyun.com/api/cloudapi/deletedomaincertificate.html +func (client *Client) DeleteDomainCertificate(request *DeleteDomainCertificateRequest) (response *DeleteDomainCertificateResponse, err error) { + response = CreateDeleteDomainCertificateResponse() + err = client.DoAction(request, response) + return +} + +// DeleteDomainCertificateWithChan invokes the cloudapi.DeleteDomainCertificate API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deletedomaincertificate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteDomainCertificateWithChan(request *DeleteDomainCertificateRequest) (<-chan *DeleteDomainCertificateResponse, <-chan error) { + responseChan := make(chan *DeleteDomainCertificateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteDomainCertificate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteDomainCertificateWithCallback invokes the cloudapi.DeleteDomainCertificate API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deletedomaincertificate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteDomainCertificateWithCallback(request *DeleteDomainCertificateRequest, callback func(response *DeleteDomainCertificateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteDomainCertificateResponse + var err error + defer close(result) + response, err = client.DeleteDomainCertificate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteDomainCertificateRequest is the request struct for api DeleteDomainCertificate +type DeleteDomainCertificateRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + DomainName string `position:"Query" name:"DomainName"` + CertificateId string `position:"Query" name:"CertificateId"` +} + +// DeleteDomainCertificateResponse is the response struct for api DeleteDomainCertificate +type DeleteDomainCertificateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteDomainCertificateRequest creates a request to invoke DeleteDomainCertificate API +func CreateDeleteDomainCertificateRequest() (request *DeleteDomainCertificateRequest) { + request = &DeleteDomainCertificateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DeleteDomainCertificate", "apigateway", "openAPI") + return +} + +// CreateDeleteDomainCertificateResponse creates a response to parse from DeleteDomainCertificate response +func CreateDeleteDomainCertificateResponse() (response *DeleteDomainCertificateResponse) { + response = &DeleteDomainCertificateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_ip_control.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_ip_control.go new file mode 100644 index 0000000..b7b4e51 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_ip_control.go @@ -0,0 +1,103 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteIpControl invokes the cloudapi.DeleteIpControl API synchronously +// api document: https://help.aliyun.com/api/cloudapi/deleteipcontrol.html +func (client *Client) DeleteIpControl(request *DeleteIpControlRequest) (response *DeleteIpControlResponse, err error) { + response = CreateDeleteIpControlResponse() + err = client.DoAction(request, response) + return +} + +// DeleteIpControlWithChan invokes the cloudapi.DeleteIpControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deleteipcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteIpControlWithChan(request *DeleteIpControlRequest) (<-chan *DeleteIpControlResponse, <-chan error) { + responseChan := make(chan *DeleteIpControlResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteIpControl(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteIpControlWithCallback invokes the cloudapi.DeleteIpControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deleteipcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteIpControlWithCallback(request *DeleteIpControlRequest, callback func(response *DeleteIpControlResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteIpControlResponse + var err error + defer close(result) + response, err = client.DeleteIpControl(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteIpControlRequest is the request struct for api DeleteIpControl +type DeleteIpControlRequest struct { + *requests.RpcRequest + IpControlId string `position:"Query" name:"IpControlId"` +} + +// DeleteIpControlResponse is the response struct for api DeleteIpControl +type DeleteIpControlResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteIpControlRequest creates a request to invoke DeleteIpControl API +func CreateDeleteIpControlRequest() (request *DeleteIpControlRequest) { + request = &DeleteIpControlRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DeleteIpControl", "apigateway", "openAPI") + return +} + +// CreateDeleteIpControlResponse creates a response to parse from DeleteIpControl response +func CreateDeleteIpControlResponse() (response *DeleteIpControlResponse) { + response = &DeleteIpControlResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_log_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_log_config.go new file mode 100644 index 0000000..c3fcf07 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_log_config.go @@ -0,0 +1,103 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLogConfig invokes the cloudapi.DeleteLogConfig API synchronously +// api document: https://help.aliyun.com/api/cloudapi/deletelogconfig.html +func (client *Client) DeleteLogConfig(request *DeleteLogConfigRequest) (response *DeleteLogConfigResponse, err error) { + response = CreateDeleteLogConfigResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLogConfigWithChan invokes the cloudapi.DeleteLogConfig API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deletelogconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLogConfigWithChan(request *DeleteLogConfigRequest) (<-chan *DeleteLogConfigResponse, <-chan error) { + responseChan := make(chan *DeleteLogConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLogConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLogConfigWithCallback invokes the cloudapi.DeleteLogConfig API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deletelogconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLogConfigWithCallback(request *DeleteLogConfigRequest, callback func(response *DeleteLogConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLogConfigResponse + var err error + defer close(result) + response, err = client.DeleteLogConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLogConfigRequest is the request struct for api DeleteLogConfig +type DeleteLogConfigRequest struct { + *requests.RpcRequest + LogType string `position:"Query" name:"LogType"` +} + +// DeleteLogConfigResponse is the response struct for api DeleteLogConfig +type DeleteLogConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLogConfigRequest creates a request to invoke DeleteLogConfig API +func CreateDeleteLogConfigRequest() (request *DeleteLogConfigRequest) { + request = &DeleteLogConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DeleteLogConfig", "apigateway", "openAPI") + return +} + +// CreateDeleteLogConfigResponse creates a response to parse from DeleteLogConfig response +func CreateDeleteLogConfigResponse() (response *DeleteLogConfigResponse) { + response = &DeleteLogConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_signature.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_signature.go new file mode 100644 index 0000000..2abf298 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_signature.go @@ -0,0 +1,103 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteSignature invokes the cloudapi.DeleteSignature API synchronously +// api document: https://help.aliyun.com/api/cloudapi/deletesignature.html +func (client *Client) DeleteSignature(request *DeleteSignatureRequest) (response *DeleteSignatureResponse, err error) { + response = CreateDeleteSignatureResponse() + err = client.DoAction(request, response) + return +} + +// DeleteSignatureWithChan invokes the cloudapi.DeleteSignature API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deletesignature.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSignatureWithChan(request *DeleteSignatureRequest) (<-chan *DeleteSignatureResponse, <-chan error) { + responseChan := make(chan *DeleteSignatureResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteSignature(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteSignatureWithCallback invokes the cloudapi.DeleteSignature API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deletesignature.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSignatureWithCallback(request *DeleteSignatureRequest, callback func(response *DeleteSignatureResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteSignatureResponse + var err error + defer close(result) + response, err = client.DeleteSignature(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteSignatureRequest is the request struct for api DeleteSignature +type DeleteSignatureRequest struct { + *requests.RpcRequest + SignatureId string `position:"Query" name:"SignatureId"` +} + +// DeleteSignatureResponse is the response struct for api DeleteSignature +type DeleteSignatureResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteSignatureRequest creates a request to invoke DeleteSignature API +func CreateDeleteSignatureRequest() (request *DeleteSignatureRequest) { + request = &DeleteSignatureRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DeleteSignature", "apigateway", "openAPI") + return +} + +// CreateDeleteSignatureResponse creates a response to parse from DeleteSignature response +func CreateDeleteSignatureResponse() (response *DeleteSignatureResponse) { + response = &DeleteSignatureResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_traffic_control.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_traffic_control.go new file mode 100644 index 0000000..c90f2ed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_traffic_control.go @@ -0,0 +1,103 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteTrafficControl invokes the cloudapi.DeleteTrafficControl API synchronously +// api document: https://help.aliyun.com/api/cloudapi/deletetrafficcontrol.html +func (client *Client) DeleteTrafficControl(request *DeleteTrafficControlRequest) (response *DeleteTrafficControlResponse, err error) { + response = CreateDeleteTrafficControlResponse() + err = client.DoAction(request, response) + return +} + +// DeleteTrafficControlWithChan invokes the cloudapi.DeleteTrafficControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deletetrafficcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteTrafficControlWithChan(request *DeleteTrafficControlRequest) (<-chan *DeleteTrafficControlResponse, <-chan error) { + responseChan := make(chan *DeleteTrafficControlResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteTrafficControl(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteTrafficControlWithCallback invokes the cloudapi.DeleteTrafficControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deletetrafficcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteTrafficControlWithCallback(request *DeleteTrafficControlRequest, callback func(response *DeleteTrafficControlResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteTrafficControlResponse + var err error + defer close(result) + response, err = client.DeleteTrafficControl(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteTrafficControlRequest is the request struct for api DeleteTrafficControl +type DeleteTrafficControlRequest struct { + *requests.RpcRequest + TrafficControlId string `position:"Query" name:"TrafficControlId"` +} + +// DeleteTrafficControlResponse is the response struct for api DeleteTrafficControl +type DeleteTrafficControlResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteTrafficControlRequest creates a request to invoke DeleteTrafficControl API +func CreateDeleteTrafficControlRequest() (request *DeleteTrafficControlRequest) { + request = &DeleteTrafficControlRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DeleteTrafficControl", "apigateway", "openAPI") + return +} + +// CreateDeleteTrafficControlResponse creates a response to parse from DeleteTrafficControl response +func CreateDeleteTrafficControlResponse() (response *DeleteTrafficControlResponse) { + response = &DeleteTrafficControlResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_traffic_special_control.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_traffic_special_control.go new file mode 100644 index 0000000..8710810 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/delete_traffic_special_control.go @@ -0,0 +1,105 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteTrafficSpecialControl invokes the cloudapi.DeleteTrafficSpecialControl API synchronously +// api document: https://help.aliyun.com/api/cloudapi/deletetrafficspecialcontrol.html +func (client *Client) DeleteTrafficSpecialControl(request *DeleteTrafficSpecialControlRequest) (response *DeleteTrafficSpecialControlResponse, err error) { + response = CreateDeleteTrafficSpecialControlResponse() + err = client.DoAction(request, response) + return +} + +// DeleteTrafficSpecialControlWithChan invokes the cloudapi.DeleteTrafficSpecialControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deletetrafficspecialcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteTrafficSpecialControlWithChan(request *DeleteTrafficSpecialControlRequest) (<-chan *DeleteTrafficSpecialControlResponse, <-chan error) { + responseChan := make(chan *DeleteTrafficSpecialControlResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteTrafficSpecialControl(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteTrafficSpecialControlWithCallback invokes the cloudapi.DeleteTrafficSpecialControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deletetrafficspecialcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteTrafficSpecialControlWithCallback(request *DeleteTrafficSpecialControlRequest, callback func(response *DeleteTrafficSpecialControlResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteTrafficSpecialControlResponse + var err error + defer close(result) + response, err = client.DeleteTrafficSpecialControl(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteTrafficSpecialControlRequest is the request struct for api DeleteTrafficSpecialControl +type DeleteTrafficSpecialControlRequest struct { + *requests.RpcRequest + TrafficControlId string `position:"Query" name:"TrafficControlId"` + SpecialType string `position:"Query" name:"SpecialType"` + SpecialKey string `position:"Query" name:"SpecialKey"` +} + +// DeleteTrafficSpecialControlResponse is the response struct for api DeleteTrafficSpecialControl +type DeleteTrafficSpecialControlResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteTrafficSpecialControlRequest creates a request to invoke DeleteTrafficSpecialControl API +func CreateDeleteTrafficSpecialControlRequest() (request *DeleteTrafficSpecialControlRequest) { + request = &DeleteTrafficSpecialControlRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DeleteTrafficSpecialControl", "apigateway", "openAPI") + return +} + +// CreateDeleteTrafficSpecialControlResponse creates a response to parse from DeleteTrafficSpecialControl response +func CreateDeleteTrafficSpecialControlResponse() (response *DeleteTrafficSpecialControlResponse) { + response = &DeleteTrafficSpecialControlResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/deploy_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/deploy_api.go new file mode 100644 index 0000000..2fb9adc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/deploy_api.go @@ -0,0 +1,106 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeployApi invokes the cloudapi.DeployApi API synchronously +// api document: https://help.aliyun.com/api/cloudapi/deployapi.html +func (client *Client) DeployApi(request *DeployApiRequest) (response *DeployApiResponse, err error) { + response = CreateDeployApiResponse() + err = client.DoAction(request, response) + return +} + +// DeployApiWithChan invokes the cloudapi.DeployApi API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deployapi.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeployApiWithChan(request *DeployApiRequest) (<-chan *DeployApiResponse, <-chan error) { + responseChan := make(chan *DeployApiResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeployApi(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeployApiWithCallback invokes the cloudapi.DeployApi API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/deployapi.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeployApiWithCallback(request *DeployApiRequest, callback func(response *DeployApiResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeployApiResponse + var err error + defer close(result) + response, err = client.DeployApi(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeployApiRequest is the request struct for api DeployApi +type DeployApiRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + ApiId string `position:"Query" name:"ApiId"` + StageName string `position:"Query" name:"StageName"` + Description string `position:"Query" name:"Description"` +} + +// DeployApiResponse is the response struct for api DeployApi +type DeployApiResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeployApiRequest creates a request to invoke DeployApi API +func CreateDeployApiRequest() (request *DeployApiRequest) { + request = &DeployApiRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DeployApi", "apigateway", "openAPI") + return +} + +// CreateDeployApiResponse creates a response to parse from DeployApi response +func CreateDeployApiResponse() (response *DeployApiResponse) { + response = &DeployApiResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api.go new file mode 100644 index 0000000..b4b952f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api.go @@ -0,0 +1,133 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApi invokes the cloudapi.DescribeApi API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapi.html +func (client *Client) DescribeApi(request *DescribeApiRequest) (response *DescribeApiResponse, err error) { + response = CreateDescribeApiResponse() + err = client.DoAction(request, response) + return +} + +// DescribeApiWithChan invokes the cloudapi.DescribeApi API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapi.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiWithChan(request *DescribeApiRequest) (<-chan *DescribeApiResponse, <-chan error) { + responseChan := make(chan *DescribeApiResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApi(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeApiWithCallback invokes the cloudapi.DescribeApi API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapi.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiWithCallback(request *DescribeApiRequest, callback func(response *DescribeApiResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeApiResponse + var err error + defer close(result) + response, err = client.DescribeApi(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeApiRequest is the request struct for api DescribeApi +type DescribeApiRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + ApiId string `position:"Query" name:"ApiId"` +} + +// DescribeApiResponse is the response struct for api DescribeApi +type DescribeApiResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegionId string `json:"RegionId" xml:"RegionId"` + ApiId string `json:"ApiId" xml:"ApiId"` + ApiName string `json:"ApiName" xml:"ApiName"` + GroupId string `json:"GroupId" xml:"GroupId"` + GroupName string `json:"GroupName" xml:"GroupName"` + Visibility string `json:"Visibility" xml:"Visibility"` + AuthType string `json:"AuthType" xml:"AuthType"` + ResultType string `json:"ResultType" xml:"ResultType"` + ResultSample string `json:"ResultSample" xml:"ResultSample"` + FailResultSample string `json:"FailResultSample" xml:"FailResultSample"` + CreatedTime string `json:"CreatedTime" xml:"CreatedTime"` + ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` + Description string `json:"Description" xml:"Description"` + Mock string `json:"Mock" xml:"Mock"` + MockResult string `json:"MockResult" xml:"MockResult"` + AllowSignatureMethod string `json:"AllowSignatureMethod" xml:"AllowSignatureMethod"` + WebSocketApiType string `json:"WebSocketApiType" xml:"WebSocketApiType"` + RequestConfig RequestConfig `json:"RequestConfig" xml:"RequestConfig"` + ServiceConfig ServiceConfig `json:"ServiceConfig" xml:"ServiceConfig"` + OpenIdConnectConfig OpenIdConnectConfig `json:"OpenIdConnectConfig" xml:"OpenIdConnectConfig"` + ErrorCodeSamples ErrorCodeSamplesInDescribeApi `json:"ErrorCodeSamples" xml:"ErrorCodeSamples"` + ResultDescriptions ResultDescriptionsInDescribeApi `json:"ResultDescriptions" xml:"ResultDescriptions"` + SystemParameters SystemParametersInDescribeApi `json:"SystemParameters" xml:"SystemParameters"` + CustomSystemParameters CustomSystemParametersInDescribeApi `json:"CustomSystemParameters" xml:"CustomSystemParameters"` + ConstantParameters ConstantParametersInDescribeApi `json:"ConstantParameters" xml:"ConstantParameters"` + RequestParameters RequestParametersInDescribeApi `json:"RequestParameters" xml:"RequestParameters"` + ServiceParameters ServiceParametersInDescribeApi `json:"ServiceParameters" xml:"ServiceParameters"` + ServiceParametersMap ServiceParametersMapInDescribeApi `json:"ServiceParametersMap" xml:"ServiceParametersMap"` + DeployedInfos DeployedInfos `json:"DeployedInfos" xml:"DeployedInfos"` +} + +// CreateDescribeApiRequest creates a request to invoke DescribeApi API +func CreateDescribeApiRequest() (request *DescribeApiRequest) { + request = &DescribeApiRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeApi", "apigateway", "openAPI") + return +} + +// CreateDescribeApiResponse creates a response to parse from DescribeApi response +func CreateDescribeApiResponse() (response *DescribeApiResponse) { + response = &DescribeApiResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_doc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_doc.go new file mode 100644 index 0000000..760d3ad --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_doc.go @@ -0,0 +1,122 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApiDoc invokes the cloudapi.DescribeApiDoc API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapidoc.html +func (client *Client) DescribeApiDoc(request *DescribeApiDocRequest) (response *DescribeApiDocResponse, err error) { + response = CreateDescribeApiDocResponse() + err = client.DoAction(request, response) + return +} + +// DescribeApiDocWithChan invokes the cloudapi.DescribeApiDoc API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapidoc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiDocWithChan(request *DescribeApiDocRequest) (<-chan *DescribeApiDocResponse, <-chan error) { + responseChan := make(chan *DescribeApiDocResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApiDoc(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeApiDocWithCallback invokes the cloudapi.DescribeApiDoc API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapidoc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiDocWithCallback(request *DescribeApiDocRequest, callback func(response *DescribeApiDocResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeApiDocResponse + var err error + defer close(result) + response, err = client.DescribeApiDoc(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeApiDocRequest is the request struct for api DescribeApiDoc +type DescribeApiDocRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + StageName string `position:"Query" name:"StageName"` + ApiId string `position:"Query" name:"ApiId"` +} + +// DescribeApiDocResponse is the response struct for api DescribeApiDoc +type DescribeApiDocResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegionId string `json:"RegionId" xml:"RegionId"` + GroupId string `json:"GroupId" xml:"GroupId"` + GroupName string `json:"GroupName" xml:"GroupName"` + StageName string `json:"StageName" xml:"StageName"` + ApiId string `json:"ApiId" xml:"ApiId"` + ApiName string `json:"ApiName" xml:"ApiName"` + Description string `json:"Description" xml:"Description"` + Visibility string `json:"Visibility" xml:"Visibility"` + AuthType string `json:"AuthType" xml:"AuthType"` + ResultType string `json:"ResultType" xml:"ResultType"` + ResultSample string `json:"ResultSample" xml:"ResultSample"` + FailResultSample string `json:"FailResultSample" xml:"FailResultSample"` + DeployedTime string `json:"DeployedTime" xml:"DeployedTime"` + RequestConfig RequestConfig `json:"RequestConfig" xml:"RequestConfig"` + ErrorCodeSamples ErrorCodeSamplesInDescribeApiDoc `json:"ErrorCodeSamples" xml:"ErrorCodeSamples"` + ResultDescriptions ResultDescriptionsInDescribeApiDoc `json:"ResultDescriptions" xml:"ResultDescriptions"` + RequestParameters RequestParametersInDescribeApiDoc `json:"RequestParameters" xml:"RequestParameters"` +} + +// CreateDescribeApiDocRequest creates a request to invoke DescribeApiDoc API +func CreateDescribeApiDocRequest() (request *DescribeApiDocRequest) { + request = &DescribeApiDocRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeApiDoc", "apigateway", "openAPI") + return +} + +// CreateDescribeApiDocResponse creates a response to parse from DescribeApiDoc response +func CreateDescribeApiDocResponse() (response *DescribeApiDocResponse) { + response = &DescribeApiDocResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_error_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_error_data.go new file mode 100644 index 0000000..0f68582 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_error_data.go @@ -0,0 +1,108 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApiErrorData invokes the cloudapi.DescribeApiErrorData API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapierrordata.html +func (client *Client) DescribeApiErrorData(request *DescribeApiErrorDataRequest) (response *DescribeApiErrorDataResponse, err error) { + response = CreateDescribeApiErrorDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeApiErrorDataWithChan invokes the cloudapi.DescribeApiErrorData API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapierrordata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiErrorDataWithChan(request *DescribeApiErrorDataRequest) (<-chan *DescribeApiErrorDataResponse, <-chan error) { + responseChan := make(chan *DescribeApiErrorDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApiErrorData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeApiErrorDataWithCallback invokes the cloudapi.DescribeApiErrorData API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapierrordata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiErrorDataWithCallback(request *DescribeApiErrorDataRequest, callback func(response *DescribeApiErrorDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeApiErrorDataResponse + var err error + defer close(result) + response, err = client.DescribeApiErrorData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeApiErrorDataRequest is the request struct for api DescribeApiErrorData +type DescribeApiErrorDataRequest struct { + *requests.RpcRequest + ApiId string `position:"Query" name:"ApiId"` + GroupId string `position:"Query" name:"GroupId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` +} + +// DescribeApiErrorDataResponse is the response struct for api DescribeApiErrorData +type DescribeApiErrorDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ClientErrors ClientErrors `json:"ClientErrors" xml:"ClientErrors"` + ServerErrors ServerErrors `json:"ServerErrors" xml:"ServerErrors"` +} + +// CreateDescribeApiErrorDataRequest creates a request to invoke DescribeApiErrorData API +func CreateDescribeApiErrorDataRequest() (request *DescribeApiErrorDataRequest) { + request = &DescribeApiErrorDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeApiErrorData", "apigateway", "openAPI") + return +} + +// CreateDescribeApiErrorDataResponse creates a response to parse from DescribeApiErrorData response +func CreateDescribeApiErrorDataResponse() (response *DescribeApiErrorDataResponse) { + response = &DescribeApiErrorDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_group.go new file mode 100644 index 0000000..6db0013 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_group.go @@ -0,0 +1,116 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApiGroup invokes the cloudapi.DescribeApiGroup API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapigroup.html +func (client *Client) DescribeApiGroup(request *DescribeApiGroupRequest) (response *DescribeApiGroupResponse, err error) { + response = CreateDescribeApiGroupResponse() + err = client.DoAction(request, response) + return +} + +// DescribeApiGroupWithChan invokes the cloudapi.DescribeApiGroup API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapigroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiGroupWithChan(request *DescribeApiGroupRequest) (<-chan *DescribeApiGroupResponse, <-chan error) { + responseChan := make(chan *DescribeApiGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApiGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeApiGroupWithCallback invokes the cloudapi.DescribeApiGroup API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapigroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiGroupWithCallback(request *DescribeApiGroupRequest, callback func(response *DescribeApiGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeApiGroupResponse + var err error + defer close(result) + response, err = client.DescribeApiGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeApiGroupRequest is the request struct for api DescribeApiGroup +type DescribeApiGroupRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` +} + +// DescribeApiGroupResponse is the response struct for api DescribeApiGroup +type DescribeApiGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + GroupId string `json:"GroupId" xml:"GroupId"` + GroupName string `json:"GroupName" xml:"GroupName"` + SubDomain string `json:"SubDomain" xml:"SubDomain"` + Description string `json:"Description" xml:"Description"` + CreatedTime string `json:"CreatedTime" xml:"CreatedTime"` + ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` + RegionId string `json:"RegionId" xml:"RegionId"` + Status string `json:"Status" xml:"Status"` + BillingStatus string `json:"BillingStatus" xml:"BillingStatus"` + IllegalStatus string `json:"IllegalStatus" xml:"IllegalStatus"` + TrafficLimit int `json:"TrafficLimit" xml:"TrafficLimit"` + CustomDomains CustomDomains `json:"CustomDomains" xml:"CustomDomains"` + StageItems StageItems `json:"StageItems" xml:"StageItems"` +} + +// CreateDescribeApiGroupRequest creates a request to invoke DescribeApiGroup API +func CreateDescribeApiGroupRequest() (request *DescribeApiGroupRequest) { + request = &DescribeApiGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeApiGroup", "apigateway", "openAPI") + return +} + +// CreateDescribeApiGroupResponse creates a response to parse from DescribeApiGroup response +func CreateDescribeApiGroupResponse() (response *DescribeApiGroupResponse) { + response = &DescribeApiGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_groups.go new file mode 100644 index 0000000..071bb12 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_groups.go @@ -0,0 +1,110 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApiGroups invokes the cloudapi.DescribeApiGroups API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapigroups.html +func (client *Client) DescribeApiGroups(request *DescribeApiGroupsRequest) (response *DescribeApiGroupsResponse, err error) { + response = CreateDescribeApiGroupsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeApiGroupsWithChan invokes the cloudapi.DescribeApiGroups API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapigroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiGroupsWithChan(request *DescribeApiGroupsRequest) (<-chan *DescribeApiGroupsResponse, <-chan error) { + responseChan := make(chan *DescribeApiGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApiGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeApiGroupsWithCallback invokes the cloudapi.DescribeApiGroups API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapigroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiGroupsWithCallback(request *DescribeApiGroupsRequest, callback func(response *DescribeApiGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeApiGroupsResponse + var err error + defer close(result) + response, err = client.DescribeApiGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeApiGroupsRequest is the request struct for api DescribeApiGroups +type DescribeApiGroupsRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + GroupName string `position:"Query" name:"GroupName"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeApiGroupsResponse is the response struct for api DescribeApiGroups +type DescribeApiGroupsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + ApiGroupAttributes ApiGroupAttributes `json:"ApiGroupAttributes" xml:"ApiGroupAttributes"` +} + +// CreateDescribeApiGroupsRequest creates a request to invoke DescribeApiGroups API +func CreateDescribeApiGroupsRequest() (request *DescribeApiGroupsRequest) { + request = &DescribeApiGroupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeApiGroups", "apigateway", "openAPI") + return +} + +// CreateDescribeApiGroupsResponse creates a response to parse from DescribeApiGroups response +func CreateDescribeApiGroupsResponse() (response *DescribeApiGroupsResponse) { + response = &DescribeApiGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_histories.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_histories.go new file mode 100644 index 0000000..6ce89fa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_histories.go @@ -0,0 +1,112 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApiHistories invokes the cloudapi.DescribeApiHistories API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapihistories.html +func (client *Client) DescribeApiHistories(request *DescribeApiHistoriesRequest) (response *DescribeApiHistoriesResponse, err error) { + response = CreateDescribeApiHistoriesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeApiHistoriesWithChan invokes the cloudapi.DescribeApiHistories API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapihistories.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiHistoriesWithChan(request *DescribeApiHistoriesRequest) (<-chan *DescribeApiHistoriesResponse, <-chan error) { + responseChan := make(chan *DescribeApiHistoriesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApiHistories(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeApiHistoriesWithCallback invokes the cloudapi.DescribeApiHistories API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapihistories.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiHistoriesWithCallback(request *DescribeApiHistoriesRequest, callback func(response *DescribeApiHistoriesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeApiHistoriesResponse + var err error + defer close(result) + response, err = client.DescribeApiHistories(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeApiHistoriesRequest is the request struct for api DescribeApiHistories +type DescribeApiHistoriesRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + StageName string `position:"Query" name:"StageName"` + ApiId string `position:"Query" name:"ApiId"` + ApiName string `position:"Query" name:"ApiName"` + PageSize string `position:"Query" name:"PageSize"` + PageNumber string `position:"Query" name:"PageNumber"` +} + +// DescribeApiHistoriesResponse is the response struct for api DescribeApiHistories +type DescribeApiHistoriesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + ApiHisItems ApiHisItemsInDescribeApiHistories `json:"ApiHisItems" xml:"ApiHisItems"` +} + +// CreateDescribeApiHistoriesRequest creates a request to invoke DescribeApiHistories API +func CreateDescribeApiHistoriesRequest() (request *DescribeApiHistoriesRequest) { + request = &DescribeApiHistoriesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeApiHistories", "apigateway", "openAPI") + return +} + +// CreateDescribeApiHistoriesResponse creates a response to parse from DescribeApiHistories response +func CreateDescribeApiHistoriesResponse() (response *DescribeApiHistoriesResponse) { + response = &DescribeApiHistoriesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_history.go new file mode 100644 index 0000000..1bb7948 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_history.go @@ -0,0 +1,133 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApiHistory invokes the cloudapi.DescribeApiHistory API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapihistory.html +func (client *Client) DescribeApiHistory(request *DescribeApiHistoryRequest) (response *DescribeApiHistoryResponse, err error) { + response = CreateDescribeApiHistoryResponse() + err = client.DoAction(request, response) + return +} + +// DescribeApiHistoryWithChan invokes the cloudapi.DescribeApiHistory API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapihistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiHistoryWithChan(request *DescribeApiHistoryRequest) (<-chan *DescribeApiHistoryResponse, <-chan error) { + responseChan := make(chan *DescribeApiHistoryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApiHistory(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeApiHistoryWithCallback invokes the cloudapi.DescribeApiHistory API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapihistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiHistoryWithCallback(request *DescribeApiHistoryRequest, callback func(response *DescribeApiHistoryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeApiHistoryResponse + var err error + defer close(result) + response, err = client.DescribeApiHistory(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeApiHistoryRequest is the request struct for api DescribeApiHistory +type DescribeApiHistoryRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + ApiId string `position:"Query" name:"ApiId"` + StageName string `position:"Query" name:"StageName"` + HistoryVersion string `position:"Query" name:"HistoryVersion"` +} + +// DescribeApiHistoryResponse is the response struct for api DescribeApiHistory +type DescribeApiHistoryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegionId string `json:"RegionId" xml:"RegionId"` + GroupId string `json:"GroupId" xml:"GroupId"` + GroupName string `json:"GroupName" xml:"GroupName"` + StageName string `json:"StageName" xml:"StageName"` + ApiId string `json:"ApiId" xml:"ApiId"` + ApiName string `json:"ApiName" xml:"ApiName"` + Description string `json:"Description" xml:"Description"` + HistoryVersion string `json:"HistoryVersion" xml:"HistoryVersion"` + Status string `json:"Status" xml:"Status"` + Visibility string `json:"Visibility" xml:"Visibility"` + AuthType string `json:"AuthType" xml:"AuthType"` + ResultType string `json:"ResultType" xml:"ResultType"` + ResultSample string `json:"ResultSample" xml:"ResultSample"` + FailResultSample string `json:"FailResultSample" xml:"FailResultSample"` + DeployedTime string `json:"DeployedTime" xml:"DeployedTime"` + AllowSignatureMethod string `json:"AllowSignatureMethod" xml:"AllowSignatureMethod"` + RequestConfig RequestConfig `json:"RequestConfig" xml:"RequestConfig"` + ServiceConfig ServiceConfig `json:"ServiceConfig" xml:"ServiceConfig"` + OpenIdConnectConfig OpenIdConnectConfig `json:"OpenIdConnectConfig" xml:"OpenIdConnectConfig"` + ErrorCodeSamples ErrorCodeSamplesInDescribeApiHistory `json:"ErrorCodeSamples" xml:"ErrorCodeSamples"` + ResultDescriptions ResultDescriptionsInDescribeApiHistory `json:"ResultDescriptions" xml:"ResultDescriptions"` + SystemParameters SystemParametersInDescribeApiHistory `json:"SystemParameters" xml:"SystemParameters"` + CustomSystemParameters CustomSystemParametersInDescribeApiHistory `json:"CustomSystemParameters" xml:"CustomSystemParameters"` + ConstantParameters ConstantParametersInDescribeApiHistory `json:"ConstantParameters" xml:"ConstantParameters"` + RequestParameters RequestParametersInDescribeApiHistory `json:"RequestParameters" xml:"RequestParameters"` + ServiceParameters ServiceParametersInDescribeApiHistory `json:"ServiceParameters" xml:"ServiceParameters"` + ServiceParametersMap ServiceParametersMapInDescribeApiHistory `json:"ServiceParametersMap" xml:"ServiceParametersMap"` +} + +// CreateDescribeApiHistoryRequest creates a request to invoke DescribeApiHistory API +func CreateDescribeApiHistoryRequest() (request *DescribeApiHistoryRequest) { + request = &DescribeApiHistoryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeApiHistory", "apigateway", "openAPI") + return +} + +// CreateDescribeApiHistoryResponse creates a response to parse from DescribeApiHistory response +func CreateDescribeApiHistoryResponse() (response *DescribeApiHistoryResponse) { + response = &DescribeApiHistoryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_ip_controls.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_ip_controls.go new file mode 100644 index 0000000..ec6e21a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_ip_controls.go @@ -0,0 +1,111 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApiIpControls invokes the cloudapi.DescribeApiIpControls API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapiipcontrols.html +func (client *Client) DescribeApiIpControls(request *DescribeApiIpControlsRequest) (response *DescribeApiIpControlsResponse, err error) { + response = CreateDescribeApiIpControlsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeApiIpControlsWithChan invokes the cloudapi.DescribeApiIpControls API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapiipcontrols.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiIpControlsWithChan(request *DescribeApiIpControlsRequest) (<-chan *DescribeApiIpControlsResponse, <-chan error) { + responseChan := make(chan *DescribeApiIpControlsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApiIpControls(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeApiIpControlsWithCallback invokes the cloudapi.DescribeApiIpControls API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapiipcontrols.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiIpControlsWithCallback(request *DescribeApiIpControlsRequest, callback func(response *DescribeApiIpControlsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeApiIpControlsResponse + var err error + defer close(result) + response, err = client.DescribeApiIpControls(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeApiIpControlsRequest is the request struct for api DescribeApiIpControls +type DescribeApiIpControlsRequest struct { + *requests.RpcRequest + StageName string `position:"Query" name:"StageName"` + GroupId string `position:"Query" name:"GroupId"` + ApiIds string `position:"Query" name:"ApiIds"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeApiIpControlsResponse is the response struct for api DescribeApiIpControls +type DescribeApiIpControlsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + ApiIpControls ApiIpControls `json:"ApiIpControls" xml:"ApiIpControls"` +} + +// CreateDescribeApiIpControlsRequest creates a request to invoke DescribeApiIpControls API +func CreateDescribeApiIpControlsRequest() (request *DescribeApiIpControlsRequest) { + request = &DescribeApiIpControlsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeApiIpControls", "apigateway", "openAPI") + return +} + +// CreateDescribeApiIpControlsResponse creates a response to parse from DescribeApiIpControls response +func CreateDescribeApiIpControlsResponse() (response *DescribeApiIpControlsResponse) { + response = &DescribeApiIpControlsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_latency_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_latency_data.go new file mode 100644 index 0000000..ae3aa8e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_latency_data.go @@ -0,0 +1,107 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApiLatencyData invokes the cloudapi.DescribeApiLatencyData API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapilatencydata.html +func (client *Client) DescribeApiLatencyData(request *DescribeApiLatencyDataRequest) (response *DescribeApiLatencyDataResponse, err error) { + response = CreateDescribeApiLatencyDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeApiLatencyDataWithChan invokes the cloudapi.DescribeApiLatencyData API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapilatencydata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiLatencyDataWithChan(request *DescribeApiLatencyDataRequest) (<-chan *DescribeApiLatencyDataResponse, <-chan error) { + responseChan := make(chan *DescribeApiLatencyDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApiLatencyData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeApiLatencyDataWithCallback invokes the cloudapi.DescribeApiLatencyData API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapilatencydata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiLatencyDataWithCallback(request *DescribeApiLatencyDataRequest, callback func(response *DescribeApiLatencyDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeApiLatencyDataResponse + var err error + defer close(result) + response, err = client.DescribeApiLatencyData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeApiLatencyDataRequest is the request struct for api DescribeApiLatencyData +type DescribeApiLatencyDataRequest struct { + *requests.RpcRequest + ApiId string `position:"Query" name:"ApiId"` + GroupId string `position:"Query" name:"GroupId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` +} + +// DescribeApiLatencyDataResponse is the response struct for api DescribeApiLatencyData +type DescribeApiLatencyDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CallLatencys CallLatencys `json:"CallLatencys" xml:"CallLatencys"` +} + +// CreateDescribeApiLatencyDataRequest creates a request to invoke DescribeApiLatencyData API +func CreateDescribeApiLatencyDataRequest() (request *DescribeApiLatencyDataRequest) { + request = &DescribeApiLatencyDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeApiLatencyData", "apigateway", "openAPI") + return +} + +// CreateDescribeApiLatencyDataResponse creates a response to parse from DescribeApiLatencyData response +func CreateDescribeApiLatencyDataResponse() (response *DescribeApiLatencyDataResponse) { + response = &DescribeApiLatencyDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_qps_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_qps_data.go new file mode 100644 index 0000000..6fed99b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_qps_data.go @@ -0,0 +1,108 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApiQpsData invokes the cloudapi.DescribeApiQpsData API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapiqpsdata.html +func (client *Client) DescribeApiQpsData(request *DescribeApiQpsDataRequest) (response *DescribeApiQpsDataResponse, err error) { + response = CreateDescribeApiQpsDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeApiQpsDataWithChan invokes the cloudapi.DescribeApiQpsData API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapiqpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiQpsDataWithChan(request *DescribeApiQpsDataRequest) (<-chan *DescribeApiQpsDataResponse, <-chan error) { + responseChan := make(chan *DescribeApiQpsDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApiQpsData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeApiQpsDataWithCallback invokes the cloudapi.DescribeApiQpsData API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapiqpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiQpsDataWithCallback(request *DescribeApiQpsDataRequest, callback func(response *DescribeApiQpsDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeApiQpsDataResponse + var err error + defer close(result) + response, err = client.DescribeApiQpsData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeApiQpsDataRequest is the request struct for api DescribeApiQpsData +type DescribeApiQpsDataRequest struct { + *requests.RpcRequest + ApiId string `position:"Query" name:"ApiId"` + GroupId string `position:"Query" name:"GroupId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` +} + +// DescribeApiQpsDataResponse is the response struct for api DescribeApiQpsData +type DescribeApiQpsDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CallSuccesses CallSuccesses `json:"CallSuccesses" xml:"CallSuccesses"` + CallFails CallFails `json:"CallFails" xml:"CallFails"` +} + +// CreateDescribeApiQpsDataRequest creates a request to invoke DescribeApiQpsData API +func CreateDescribeApiQpsDataRequest() (request *DescribeApiQpsDataRequest) { + request = &DescribeApiQpsDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeApiQpsData", "apigateway", "openAPI") + return +} + +// CreateDescribeApiQpsDataResponse creates a response to parse from DescribeApiQpsData response +func CreateDescribeApiQpsDataResponse() (response *DescribeApiQpsDataResponse) { + response = &DescribeApiQpsDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_signatures.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_signatures.go new file mode 100644 index 0000000..d79a4ea --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_signatures.go @@ -0,0 +1,111 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApiSignatures invokes the cloudapi.DescribeApiSignatures API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapisignatures.html +func (client *Client) DescribeApiSignatures(request *DescribeApiSignaturesRequest) (response *DescribeApiSignaturesResponse, err error) { + response = CreateDescribeApiSignaturesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeApiSignaturesWithChan invokes the cloudapi.DescribeApiSignatures API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapisignatures.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiSignaturesWithChan(request *DescribeApiSignaturesRequest) (<-chan *DescribeApiSignaturesResponse, <-chan error) { + responseChan := make(chan *DescribeApiSignaturesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApiSignatures(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeApiSignaturesWithCallback invokes the cloudapi.DescribeApiSignatures API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapisignatures.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiSignaturesWithCallback(request *DescribeApiSignaturesRequest, callback func(response *DescribeApiSignaturesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeApiSignaturesResponse + var err error + defer close(result) + response, err = client.DescribeApiSignatures(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeApiSignaturesRequest is the request struct for api DescribeApiSignatures +type DescribeApiSignaturesRequest struct { + *requests.RpcRequest + StageName string `position:"Query" name:"StageName"` + GroupId string `position:"Query" name:"GroupId"` + ApiIds string `position:"Query" name:"ApiIds"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeApiSignaturesResponse is the response struct for api DescribeApiSignatures +type DescribeApiSignaturesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + ApiSignatures ApiSignatures `json:"ApiSignatures" xml:"ApiSignatures"` +} + +// CreateDescribeApiSignaturesRequest creates a request to invoke DescribeApiSignatures API +func CreateDescribeApiSignaturesRequest() (request *DescribeApiSignaturesRequest) { + request = &DescribeApiSignaturesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeApiSignatures", "apigateway", "openAPI") + return +} + +// CreateDescribeApiSignaturesResponse creates a response to parse from DescribeApiSignatures response +func CreateDescribeApiSignaturesResponse() (response *DescribeApiSignaturesResponse) { + response = &DescribeApiSignaturesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_stage.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_stage.go new file mode 100644 index 0000000..6e55012 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_stage.go @@ -0,0 +1,111 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApiStage invokes the cloudapi.DescribeApiStage API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapistage.html +func (client *Client) DescribeApiStage(request *DescribeApiStageRequest) (response *DescribeApiStageResponse, err error) { + response = CreateDescribeApiStageResponse() + err = client.DoAction(request, response) + return +} + +// DescribeApiStageWithChan invokes the cloudapi.DescribeApiStage API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapistage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiStageWithChan(request *DescribeApiStageRequest) (<-chan *DescribeApiStageResponse, <-chan error) { + responseChan := make(chan *DescribeApiStageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApiStage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeApiStageWithCallback invokes the cloudapi.DescribeApiStage API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapistage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiStageWithCallback(request *DescribeApiStageRequest, callback func(response *DescribeApiStageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeApiStageResponse + var err error + defer close(result) + response, err = client.DescribeApiStage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeApiStageRequest is the request struct for api DescribeApiStage +type DescribeApiStageRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + StageId string `position:"Query" name:"StageId"` +} + +// DescribeApiStageResponse is the response struct for api DescribeApiStage +type DescribeApiStageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + GroupId string `json:"GroupId" xml:"GroupId"` + StageId string `json:"StageId" xml:"StageId"` + StageName string `json:"StageName" xml:"StageName"` + Description string `json:"Description" xml:"Description"` + CreatedTime string `json:"CreatedTime" xml:"CreatedTime"` + ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` + Variables Variables `json:"Variables" xml:"Variables"` +} + +// CreateDescribeApiStageRequest creates a request to invoke DescribeApiStage API +func CreateDescribeApiStageRequest() (request *DescribeApiStageRequest) { + request = &DescribeApiStageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeApiStage", "apigateway", "openAPI") + return +} + +// CreateDescribeApiStageResponse creates a response to parse from DescribeApiStage response +func CreateDescribeApiStageResponse() (response *DescribeApiStageResponse) { + response = &DescribeApiStageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_traffic_controls.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_traffic_controls.go new file mode 100644 index 0000000..e7ce399 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_traffic_controls.go @@ -0,0 +1,111 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApiTrafficControls invokes the cloudapi.DescribeApiTrafficControls API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapitrafficcontrols.html +func (client *Client) DescribeApiTrafficControls(request *DescribeApiTrafficControlsRequest) (response *DescribeApiTrafficControlsResponse, err error) { + response = CreateDescribeApiTrafficControlsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeApiTrafficControlsWithChan invokes the cloudapi.DescribeApiTrafficControls API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapitrafficcontrols.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiTrafficControlsWithChan(request *DescribeApiTrafficControlsRequest) (<-chan *DescribeApiTrafficControlsResponse, <-chan error) { + responseChan := make(chan *DescribeApiTrafficControlsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApiTrafficControls(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeApiTrafficControlsWithCallback invokes the cloudapi.DescribeApiTrafficControls API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapitrafficcontrols.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiTrafficControlsWithCallback(request *DescribeApiTrafficControlsRequest, callback func(response *DescribeApiTrafficControlsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeApiTrafficControlsResponse + var err error + defer close(result) + response, err = client.DescribeApiTrafficControls(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeApiTrafficControlsRequest is the request struct for api DescribeApiTrafficControls +type DescribeApiTrafficControlsRequest struct { + *requests.RpcRequest + StageName string `position:"Query" name:"StageName"` + GroupId string `position:"Query" name:"GroupId"` + ApiIds string `position:"Query" name:"ApiIds"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeApiTrafficControlsResponse is the response struct for api DescribeApiTrafficControls +type DescribeApiTrafficControlsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + ApiTrafficControls ApiTrafficControls `json:"ApiTrafficControls" xml:"ApiTrafficControls"` +} + +// CreateDescribeApiTrafficControlsRequest creates a request to invoke DescribeApiTrafficControls API +func CreateDescribeApiTrafficControlsRequest() (request *DescribeApiTrafficControlsRequest) { + request = &DescribeApiTrafficControlsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeApiTrafficControls", "apigateway", "openAPI") + return +} + +// CreateDescribeApiTrafficControlsResponse creates a response to parse from DescribeApiTrafficControls response +func CreateDescribeApiTrafficControlsResponse() (response *DescribeApiTrafficControlsResponse) { + response = &DescribeApiTrafficControlsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_traffic_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_traffic_data.go new file mode 100644 index 0000000..82482c3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_api_traffic_data.go @@ -0,0 +1,108 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApiTrafficData invokes the cloudapi.DescribeApiTrafficData API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapitrafficdata.html +func (client *Client) DescribeApiTrafficData(request *DescribeApiTrafficDataRequest) (response *DescribeApiTrafficDataResponse, err error) { + response = CreateDescribeApiTrafficDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeApiTrafficDataWithChan invokes the cloudapi.DescribeApiTrafficData API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapitrafficdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiTrafficDataWithChan(request *DescribeApiTrafficDataRequest) (<-chan *DescribeApiTrafficDataResponse, <-chan error) { + responseChan := make(chan *DescribeApiTrafficDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApiTrafficData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeApiTrafficDataWithCallback invokes the cloudapi.DescribeApiTrafficData API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapitrafficdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiTrafficDataWithCallback(request *DescribeApiTrafficDataRequest, callback func(response *DescribeApiTrafficDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeApiTrafficDataResponse + var err error + defer close(result) + response, err = client.DescribeApiTrafficData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeApiTrafficDataRequest is the request struct for api DescribeApiTrafficData +type DescribeApiTrafficDataRequest struct { + *requests.RpcRequest + ApiId string `position:"Query" name:"ApiId"` + GroupId string `position:"Query" name:"GroupId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` +} + +// DescribeApiTrafficDataResponse is the response struct for api DescribeApiTrafficData +type DescribeApiTrafficDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CallUploads CallUploads `json:"CallUploads" xml:"CallUploads"` + CallDownloads CallDownloads `json:"CallDownloads" xml:"CallDownloads"` +} + +// CreateDescribeApiTrafficDataRequest creates a request to invoke DescribeApiTrafficData API +func CreateDescribeApiTrafficDataRequest() (request *DescribeApiTrafficDataRequest) { + request = &DescribeApiTrafficDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeApiTrafficData", "apigateway", "openAPI") + return +} + +// CreateDescribeApiTrafficDataResponse creates a response to parse from DescribeApiTrafficData response +func CreateDescribeApiTrafficDataResponse() (response *DescribeApiTrafficDataResponse) { + response = &DescribeApiTrafficDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apis.go new file mode 100644 index 0000000..25a6c5d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apis.go @@ -0,0 +1,113 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApis invokes the cloudapi.DescribeApis API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapis.html +func (client *Client) DescribeApis(request *DescribeApisRequest) (response *DescribeApisResponse, err error) { + response = CreateDescribeApisResponse() + err = client.DoAction(request, response) + return +} + +// DescribeApisWithChan invokes the cloudapi.DescribeApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApisWithChan(request *DescribeApisRequest) (<-chan *DescribeApisResponse, <-chan error) { + responseChan := make(chan *DescribeApisResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApis(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeApisWithCallback invokes the cloudapi.DescribeApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApisWithCallback(request *DescribeApisRequest, callback func(response *DescribeApisResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeApisResponse + var err error + defer close(result) + response, err = client.DescribeApis(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeApisRequest is the request struct for api DescribeApis +type DescribeApisRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + ApiId string `position:"Query" name:"ApiId"` + ApiName string `position:"Query" name:"ApiName"` + CatalogId string `position:"Query" name:"CatalogId"` + Visibility string `position:"Query" name:"Visibility"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeApisResponse is the response struct for api DescribeApis +type DescribeApisResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + ApiSummarys ApiSummarys `json:"ApiSummarys" xml:"ApiSummarys"` +} + +// CreateDescribeApisRequest creates a request to invoke DescribeApis API +func CreateDescribeApisRequest() (request *DescribeApisRequest) { + request = &DescribeApisRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeApis", "apigateway", "openAPI") + return +} + +// CreateDescribeApisResponse creates a response to parse from DescribeApis response +func CreateDescribeApisResponse() (response *DescribeApisResponse) { + response = &DescribeApisResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apis_by_app.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apis_by_app.go new file mode 100644 index 0000000..ae09544 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apis_by_app.go @@ -0,0 +1,109 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApisByApp invokes the cloudapi.DescribeApisByApp API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapisbyapp.html +func (client *Client) DescribeApisByApp(request *DescribeApisByAppRequest) (response *DescribeApisByAppResponse, err error) { + response = CreateDescribeApisByAppResponse() + err = client.DoAction(request, response) + return +} + +// DescribeApisByAppWithChan invokes the cloudapi.DescribeApisByApp API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapisbyapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApisByAppWithChan(request *DescribeApisByAppRequest) (<-chan *DescribeApisByAppResponse, <-chan error) { + responseChan := make(chan *DescribeApisByAppResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApisByApp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeApisByAppWithCallback invokes the cloudapi.DescribeApisByApp API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapisbyapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApisByAppWithCallback(request *DescribeApisByAppRequest, callback func(response *DescribeApisByAppResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeApisByAppResponse + var err error + defer close(result) + response, err = client.DescribeApisByApp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeApisByAppRequest is the request struct for api DescribeApisByApp +type DescribeApisByAppRequest struct { + *requests.RpcRequest + AppId requests.Integer `position:"Query" name:"AppId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeApisByAppResponse is the response struct for api DescribeApisByApp +type DescribeApisByAppResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + AppApiRelationInfos AppApiRelationInfos `json:"AppApiRelationInfos" xml:"AppApiRelationInfos"` +} + +// CreateDescribeApisByAppRequest creates a request to invoke DescribeApisByApp API +func CreateDescribeApisByAppRequest() (request *DescribeApisByAppRequest) { + request = &DescribeApisByAppRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeApisByApp", "apigateway", "openAPI") + return +} + +// CreateDescribeApisByAppResponse creates a response to parse from DescribeApisByApp response +func CreateDescribeApisByAppResponse() (response *DescribeApisByAppResponse) { + response = &DescribeApisByAppResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apis_by_ip_control.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apis_by_ip_control.go new file mode 100644 index 0000000..9615c0a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apis_by_ip_control.go @@ -0,0 +1,109 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApisByIpControl invokes the cloudapi.DescribeApisByIpControl API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapisbyipcontrol.html +func (client *Client) DescribeApisByIpControl(request *DescribeApisByIpControlRequest) (response *DescribeApisByIpControlResponse, err error) { + response = CreateDescribeApisByIpControlResponse() + err = client.DoAction(request, response) + return +} + +// DescribeApisByIpControlWithChan invokes the cloudapi.DescribeApisByIpControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapisbyipcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApisByIpControlWithChan(request *DescribeApisByIpControlRequest) (<-chan *DescribeApisByIpControlResponse, <-chan error) { + responseChan := make(chan *DescribeApisByIpControlResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApisByIpControl(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeApisByIpControlWithCallback invokes the cloudapi.DescribeApisByIpControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapisbyipcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApisByIpControlWithCallback(request *DescribeApisByIpControlRequest, callback func(response *DescribeApisByIpControlResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeApisByIpControlResponse + var err error + defer close(result) + response, err = client.DescribeApisByIpControl(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeApisByIpControlRequest is the request struct for api DescribeApisByIpControl +type DescribeApisByIpControlRequest struct { + *requests.RpcRequest + IpControlId string `position:"Query" name:"IpControlId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeApisByIpControlResponse is the response struct for api DescribeApisByIpControl +type DescribeApisByIpControlResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + ApiInfos ApiInfosInDescribeApisByIpControl `json:"ApiInfos" xml:"ApiInfos"` +} + +// CreateDescribeApisByIpControlRequest creates a request to invoke DescribeApisByIpControl API +func CreateDescribeApisByIpControlRequest() (request *DescribeApisByIpControlRequest) { + request = &DescribeApisByIpControlRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeApisByIpControl", "apigateway", "openAPI") + return +} + +// CreateDescribeApisByIpControlResponse creates a response to parse from DescribeApisByIpControl response +func CreateDescribeApisByIpControlResponse() (response *DescribeApisByIpControlResponse) { + response = &DescribeApisByIpControlResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apis_by_signature.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apis_by_signature.go new file mode 100644 index 0000000..c294707 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apis_by_signature.go @@ -0,0 +1,109 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApisBySignature invokes the cloudapi.DescribeApisBySignature API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapisbysignature.html +func (client *Client) DescribeApisBySignature(request *DescribeApisBySignatureRequest) (response *DescribeApisBySignatureResponse, err error) { + response = CreateDescribeApisBySignatureResponse() + err = client.DoAction(request, response) + return +} + +// DescribeApisBySignatureWithChan invokes the cloudapi.DescribeApisBySignature API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapisbysignature.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApisBySignatureWithChan(request *DescribeApisBySignatureRequest) (<-chan *DescribeApisBySignatureResponse, <-chan error) { + responseChan := make(chan *DescribeApisBySignatureResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApisBySignature(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeApisBySignatureWithCallback invokes the cloudapi.DescribeApisBySignature API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapisbysignature.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApisBySignatureWithCallback(request *DescribeApisBySignatureRequest, callback func(response *DescribeApisBySignatureResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeApisBySignatureResponse + var err error + defer close(result) + response, err = client.DescribeApisBySignature(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeApisBySignatureRequest is the request struct for api DescribeApisBySignature +type DescribeApisBySignatureRequest struct { + *requests.RpcRequest + SignatureId string `position:"Query" name:"SignatureId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeApisBySignatureResponse is the response struct for api DescribeApisBySignature +type DescribeApisBySignatureResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + ApiInfos ApiInfosInDescribeApisBySignature `json:"ApiInfos" xml:"ApiInfos"` +} + +// CreateDescribeApisBySignatureRequest creates a request to invoke DescribeApisBySignature API +func CreateDescribeApisBySignatureRequest() (request *DescribeApisBySignatureRequest) { + request = &DescribeApisBySignatureRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeApisBySignature", "apigateway", "openAPI") + return +} + +// CreateDescribeApisBySignatureResponse creates a response to parse from DescribeApisBySignature response +func CreateDescribeApisBySignatureResponse() (response *DescribeApisBySignatureResponse) { + response = &DescribeApisBySignatureResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apis_by_traffic_control.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apis_by_traffic_control.go new file mode 100644 index 0000000..2af5a51 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apis_by_traffic_control.go @@ -0,0 +1,109 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApisByTrafficControl invokes the cloudapi.DescribeApisByTrafficControl API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapisbytrafficcontrol.html +func (client *Client) DescribeApisByTrafficControl(request *DescribeApisByTrafficControlRequest) (response *DescribeApisByTrafficControlResponse, err error) { + response = CreateDescribeApisByTrafficControlResponse() + err = client.DoAction(request, response) + return +} + +// DescribeApisByTrafficControlWithChan invokes the cloudapi.DescribeApisByTrafficControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapisbytrafficcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApisByTrafficControlWithChan(request *DescribeApisByTrafficControlRequest) (<-chan *DescribeApisByTrafficControlResponse, <-chan error) { + responseChan := make(chan *DescribeApisByTrafficControlResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApisByTrafficControl(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeApisByTrafficControlWithCallback invokes the cloudapi.DescribeApisByTrafficControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapisbytrafficcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApisByTrafficControlWithCallback(request *DescribeApisByTrafficControlRequest, callback func(response *DescribeApisByTrafficControlResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeApisByTrafficControlResponse + var err error + defer close(result) + response, err = client.DescribeApisByTrafficControl(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeApisByTrafficControlRequest is the request struct for api DescribeApisByTrafficControl +type DescribeApisByTrafficControlRequest struct { + *requests.RpcRequest + TrafficControlId string `position:"Query" name:"TrafficControlId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeApisByTrafficControlResponse is the response struct for api DescribeApisByTrafficControl +type DescribeApisByTrafficControlResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + ApiInfos ApiInfosInDescribeApisByTrafficControl `json:"ApiInfos" xml:"ApiInfos"` +} + +// CreateDescribeApisByTrafficControlRequest creates a request to invoke DescribeApisByTrafficControl API +func CreateDescribeApisByTrafficControlRequest() (request *DescribeApisByTrafficControlRequest) { + request = &DescribeApisByTrafficControlRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeApisByTrafficControl", "apigateway", "openAPI") + return +} + +// CreateDescribeApisByTrafficControlResponse creates a response to parse from DescribeApisByTrafficControl response +func CreateDescribeApisByTrafficControlResponse() (response *DescribeApisByTrafficControlResponse) { + response = &DescribeApisByTrafficControlResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_app_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_app_attributes.go new file mode 100644 index 0000000..c06c42d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_app_attributes.go @@ -0,0 +1,109 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAppAttributes invokes the cloudapi.DescribeAppAttributes API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeappattributes.html +func (client *Client) DescribeAppAttributes(request *DescribeAppAttributesRequest) (response *DescribeAppAttributesResponse, err error) { + response = CreateDescribeAppAttributesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAppAttributesWithChan invokes the cloudapi.DescribeAppAttributes API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeappattributes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAppAttributesWithChan(request *DescribeAppAttributesRequest) (<-chan *DescribeAppAttributesResponse, <-chan error) { + responseChan := make(chan *DescribeAppAttributesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAppAttributes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAppAttributesWithCallback invokes the cloudapi.DescribeAppAttributes API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeappattributes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAppAttributesWithCallback(request *DescribeAppAttributesRequest, callback func(response *DescribeAppAttributesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAppAttributesResponse + var err error + defer close(result) + response, err = client.DescribeAppAttributes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAppAttributesRequest is the request struct for api DescribeAppAttributes +type DescribeAppAttributesRequest struct { + *requests.RpcRequest + AppId requests.Integer `position:"Query" name:"AppId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeAppAttributesResponse is the response struct for api DescribeAppAttributes +type DescribeAppAttributesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + Apps AppsInDescribeAppAttributes `json:"Apps" xml:"Apps"` +} + +// CreateDescribeAppAttributesRequest creates a request to invoke DescribeAppAttributes API +func CreateDescribeAppAttributesRequest() (request *DescribeAppAttributesRequest) { + request = &DescribeAppAttributesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeAppAttributes", "apigateway", "openAPI") + return +} + +// CreateDescribeAppAttributesResponse creates a response to parse from DescribeAppAttributes response +func CreateDescribeAppAttributesResponse() (response *DescribeAppAttributesResponse) { + response = &DescribeAppAttributesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_app_security.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_app_security.go new file mode 100644 index 0000000..b6d2833 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_app_security.go @@ -0,0 +1,107 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAppSecurity invokes the cloudapi.DescribeAppSecurity API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeappsecurity.html +func (client *Client) DescribeAppSecurity(request *DescribeAppSecurityRequest) (response *DescribeAppSecurityResponse, err error) { + response = CreateDescribeAppSecurityResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAppSecurityWithChan invokes the cloudapi.DescribeAppSecurity API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeappsecurity.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAppSecurityWithChan(request *DescribeAppSecurityRequest) (<-chan *DescribeAppSecurityResponse, <-chan error) { + responseChan := make(chan *DescribeAppSecurityResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAppSecurity(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAppSecurityWithCallback invokes the cloudapi.DescribeAppSecurity API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeappsecurity.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAppSecurityWithCallback(request *DescribeAppSecurityRequest, callback func(response *DescribeAppSecurityResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAppSecurityResponse + var err error + defer close(result) + response, err = client.DescribeAppSecurity(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAppSecurityRequest is the request struct for api DescribeAppSecurity +type DescribeAppSecurityRequest struct { + *requests.RpcRequest + AppId requests.Integer `position:"Query" name:"AppId"` +} + +// DescribeAppSecurityResponse is the response struct for api DescribeAppSecurity +type DescribeAppSecurityResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AppKey string `json:"AppKey" xml:"AppKey"` + AppSecret string `json:"AppSecret" xml:"AppSecret"` + CreatedTime string `json:"CreatedTime" xml:"CreatedTime"` + ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` +} + +// CreateDescribeAppSecurityRequest creates a request to invoke DescribeAppSecurity API +func CreateDescribeAppSecurityRequest() (request *DescribeAppSecurityRequest) { + request = &DescribeAppSecurityRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeAppSecurity", "apigateway", "openAPI") + return +} + +// CreateDescribeAppSecurityResponse creates a response to parse from DescribeAppSecurity response +func CreateDescribeAppSecurityResponse() (response *DescribeAppSecurityResponse) { + response = &DescribeAppSecurityResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apps.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apps.go new file mode 100644 index 0000000..1a15c1a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_apps.go @@ -0,0 +1,110 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApps invokes the cloudapi.DescribeApps API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapps.html +func (client *Client) DescribeApps(request *DescribeAppsRequest) (response *DescribeAppsResponse, err error) { + response = CreateDescribeAppsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAppsWithChan invokes the cloudapi.DescribeApps API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapps.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAppsWithChan(request *DescribeAppsRequest) (<-chan *DescribeAppsResponse, <-chan error) { + responseChan := make(chan *DescribeAppsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApps(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAppsWithCallback invokes the cloudapi.DescribeApps API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeapps.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAppsWithCallback(request *DescribeAppsRequest, callback func(response *DescribeAppsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAppsResponse + var err error + defer close(result) + response, err = client.DescribeApps(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAppsRequest is the request struct for api DescribeApps +type DescribeAppsRequest struct { + *requests.RpcRequest + AppId requests.Integer `position:"Query" name:"AppId"` + AppOwner requests.Integer `position:"Query" name:"AppOwner"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeAppsResponse is the response struct for api DescribeApps +type DescribeAppsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + Apps AppsInDescribeApps `json:"Apps" xml:"Apps"` +} + +// CreateDescribeAppsRequest creates a request to invoke DescribeApps API +func CreateDescribeAppsRequest() (request *DescribeAppsRequest) { + request = &DescribeAppsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeApps", "apigateway", "openAPI") + return +} + +// CreateDescribeAppsResponse creates a response to parse from DescribeApps response +func CreateDescribeAppsResponse() (response *DescribeAppsResponse) { + response = &DescribeAppsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_authorized_apis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_authorized_apis.go new file mode 100644 index 0000000..dda3769 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_authorized_apis.go @@ -0,0 +1,109 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAuthorizedApis invokes the cloudapi.DescribeAuthorizedApis API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeauthorizedapis.html +func (client *Client) DescribeAuthorizedApis(request *DescribeAuthorizedApisRequest) (response *DescribeAuthorizedApisResponse, err error) { + response = CreateDescribeAuthorizedApisResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAuthorizedApisWithChan invokes the cloudapi.DescribeAuthorizedApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeauthorizedapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAuthorizedApisWithChan(request *DescribeAuthorizedApisRequest) (<-chan *DescribeAuthorizedApisResponse, <-chan error) { + responseChan := make(chan *DescribeAuthorizedApisResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAuthorizedApis(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAuthorizedApisWithCallback invokes the cloudapi.DescribeAuthorizedApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeauthorizedapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAuthorizedApisWithCallback(request *DescribeAuthorizedApisRequest, callback func(response *DescribeAuthorizedApisResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAuthorizedApisResponse + var err error + defer close(result) + response, err = client.DescribeAuthorizedApis(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAuthorizedApisRequest is the request struct for api DescribeAuthorizedApis +type DescribeAuthorizedApisRequest struct { + *requests.RpcRequest + AppId requests.Integer `position:"Query" name:"AppId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeAuthorizedApisResponse is the response struct for api DescribeAuthorizedApis +type DescribeAuthorizedApisResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + AuthorizedApis AuthorizedApis `json:"AuthorizedApis" xml:"AuthorizedApis"` +} + +// CreateDescribeAuthorizedApisRequest creates a request to invoke DescribeAuthorizedApis API +func CreateDescribeAuthorizedApisRequest() (request *DescribeAuthorizedApisRequest) { + request = &DescribeAuthorizedApisRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeAuthorizedApis", "apigateway", "openAPI") + return +} + +// CreateDescribeAuthorizedApisResponse creates a response to parse from DescribeAuthorizedApis response +func CreateDescribeAuthorizedApisResponse() (response *DescribeAuthorizedApisResponse) { + response = &DescribeAuthorizedApisResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_authorized_apps.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_authorized_apps.go new file mode 100644 index 0000000..7f337a9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_authorized_apps.go @@ -0,0 +1,111 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAuthorizedApps invokes the cloudapi.DescribeAuthorizedApps API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeauthorizedapps.html +func (client *Client) DescribeAuthorizedApps(request *DescribeAuthorizedAppsRequest) (response *DescribeAuthorizedAppsResponse, err error) { + response = CreateDescribeAuthorizedAppsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAuthorizedAppsWithChan invokes the cloudapi.DescribeAuthorizedApps API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeauthorizedapps.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAuthorizedAppsWithChan(request *DescribeAuthorizedAppsRequest) (<-chan *DescribeAuthorizedAppsResponse, <-chan error) { + responseChan := make(chan *DescribeAuthorizedAppsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAuthorizedApps(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAuthorizedAppsWithCallback invokes the cloudapi.DescribeAuthorizedApps API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeauthorizedapps.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAuthorizedAppsWithCallback(request *DescribeAuthorizedAppsRequest, callback func(response *DescribeAuthorizedAppsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAuthorizedAppsResponse + var err error + defer close(result) + response, err = client.DescribeAuthorizedApps(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAuthorizedAppsRequest is the request struct for api DescribeAuthorizedApps +type DescribeAuthorizedAppsRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + StageName string `position:"Query" name:"StageName"` + ApiId string `position:"Query" name:"ApiId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeAuthorizedAppsResponse is the response struct for api DescribeAuthorizedApps +type DescribeAuthorizedAppsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + AuthorizedApps AuthorizedApps `json:"AuthorizedApps" xml:"AuthorizedApps"` +} + +// CreateDescribeAuthorizedAppsRequest creates a request to invoke DescribeAuthorizedApps API +func CreateDescribeAuthorizedAppsRequest() (request *DescribeAuthorizedAppsRequest) { + request = &DescribeAuthorizedAppsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeAuthorizedApps", "apigateway", "openAPI") + return +} + +// CreateDescribeAuthorizedAppsResponse creates a response to parse from DescribeAuthorizedApps response +func CreateDescribeAuthorizedAppsResponse() (response *DescribeAuthorizedAppsResponse) { + response = &DescribeAuthorizedAppsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_catalog.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_catalog.go new file mode 100644 index 0000000..0b6bc87 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_catalog.go @@ -0,0 +1,111 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCatalog invokes the cloudapi.DescribeCatalog API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describecatalog.html +func (client *Client) DescribeCatalog(request *DescribeCatalogRequest) (response *DescribeCatalogResponse, err error) { + response = CreateDescribeCatalogResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCatalogWithChan invokes the cloudapi.DescribeCatalog API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describecatalog.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCatalogWithChan(request *DescribeCatalogRequest) (<-chan *DescribeCatalogResponse, <-chan error) { + responseChan := make(chan *DescribeCatalogResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCatalog(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCatalogWithCallback invokes the cloudapi.DescribeCatalog API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describecatalog.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCatalogWithCallback(request *DescribeCatalogRequest, callback func(response *DescribeCatalogResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCatalogResponse + var err error + defer close(result) + response, err = client.DescribeCatalog(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCatalogRequest is the request struct for api DescribeCatalog +type DescribeCatalogRequest struct { + *requests.RpcRequest + CatalogId string `position:"Query" name:"CatalogId"` +} + +// DescribeCatalogResponse is the response struct for api DescribeCatalog +type DescribeCatalogResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CatalogId string `json:"CatalogId" xml:"CatalogId"` + CatalogName string `json:"CatalogName" xml:"CatalogName"` + Description string `json:"Description" xml:"Description"` + ParentId string `json:"ParentId" xml:"ParentId"` + CreatedTime string `json:"CreatedTime" xml:"CreatedTime"` + ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` + RegionId string `json:"RegionId" xml:"RegionId"` + ApiIds ApiIds `json:"ApiIds" xml:"ApiIds"` +} + +// CreateDescribeCatalogRequest creates a request to invoke DescribeCatalog API +func CreateDescribeCatalogRequest() (request *DescribeCatalogRequest) { + request = &DescribeCatalogRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeCatalog", "apigateway", "openAPI") + return +} + +// CreateDescribeCatalogResponse creates a response to parse from DescribeCatalog response +func CreateDescribeCatalogResponse() (response *DescribeCatalogResponse) { + response = &DescribeCatalogResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_catalogs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_catalogs.go new file mode 100644 index 0000000..c1c29cc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_catalogs.go @@ -0,0 +1,106 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCatalogs invokes the cloudapi.DescribeCatalogs API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describecatalogs.html +func (client *Client) DescribeCatalogs(request *DescribeCatalogsRequest) (response *DescribeCatalogsResponse, err error) { + response = CreateDescribeCatalogsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCatalogsWithChan invokes the cloudapi.DescribeCatalogs API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describecatalogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCatalogsWithChan(request *DescribeCatalogsRequest) (<-chan *DescribeCatalogsResponse, <-chan error) { + responseChan := make(chan *DescribeCatalogsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCatalogs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCatalogsWithCallback invokes the cloudapi.DescribeCatalogs API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describecatalogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCatalogsWithCallback(request *DescribeCatalogsRequest, callback func(response *DescribeCatalogsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCatalogsResponse + var err error + defer close(result) + response, err = client.DescribeCatalogs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCatalogsRequest is the request struct for api DescribeCatalogs +type DescribeCatalogsRequest struct { + *requests.RpcRequest +} + +// DescribeCatalogsResponse is the response struct for api DescribeCatalogs +type DescribeCatalogsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + CatalogAttributes CatalogAttributes `json:"CatalogAttributes" xml:"CatalogAttributes"` +} + +// CreateDescribeCatalogsRequest creates a request to invoke DescribeCatalogs API +func CreateDescribeCatalogsRequest() (request *DescribeCatalogsRequest) { + request = &DescribeCatalogsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeCatalogs", "apigateway", "openAPI") + return +} + +// CreateDescribeCatalogsResponse creates a response to parse from DescribeCatalogs response +func CreateDescribeCatalogsResponse() (response *DescribeCatalogsResponse) { + response = &DescribeCatalogsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_deployed_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_deployed_api.go new file mode 100644 index 0000000..04c7750 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_deployed_api.go @@ -0,0 +1,130 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDeployedApi invokes the cloudapi.DescribeDeployedApi API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describedeployedapi.html +func (client *Client) DescribeDeployedApi(request *DescribeDeployedApiRequest) (response *DescribeDeployedApiResponse, err error) { + response = CreateDescribeDeployedApiResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDeployedApiWithChan invokes the cloudapi.DescribeDeployedApi API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describedeployedapi.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDeployedApiWithChan(request *DescribeDeployedApiRequest) (<-chan *DescribeDeployedApiResponse, <-chan error) { + responseChan := make(chan *DescribeDeployedApiResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDeployedApi(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDeployedApiWithCallback invokes the cloudapi.DescribeDeployedApi API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describedeployedapi.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDeployedApiWithCallback(request *DescribeDeployedApiRequest, callback func(response *DescribeDeployedApiResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDeployedApiResponse + var err error + defer close(result) + response, err = client.DescribeDeployedApi(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDeployedApiRequest is the request struct for api DescribeDeployedApi +type DescribeDeployedApiRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + ApiId string `position:"Query" name:"ApiId"` + StageName string `position:"Query" name:"StageName"` +} + +// DescribeDeployedApiResponse is the response struct for api DescribeDeployedApi +type DescribeDeployedApiResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegionId string `json:"RegionId" xml:"RegionId"` + GroupId string `json:"GroupId" xml:"GroupId"` + GroupName string `json:"GroupName" xml:"GroupName"` + StageName string `json:"StageName" xml:"StageName"` + ApiId string `json:"ApiId" xml:"ApiId"` + ApiName string `json:"ApiName" xml:"ApiName"` + Description string `json:"Description" xml:"Description"` + Visibility string `json:"Visibility" xml:"Visibility"` + AuthType string `json:"AuthType" xml:"AuthType"` + ResultType string `json:"ResultType" xml:"ResultType"` + ResultSample string `json:"ResultSample" xml:"ResultSample"` + FailResultSample string `json:"FailResultSample" xml:"FailResultSample"` + DeployedTime string `json:"DeployedTime" xml:"DeployedTime"` + AllowSignatureMethod string `json:"AllowSignatureMethod" xml:"AllowSignatureMethod"` + RequestConfig RequestConfig `json:"RequestConfig" xml:"RequestConfig"` + ServiceConfig ServiceConfig `json:"ServiceConfig" xml:"ServiceConfig"` + OpenIdConnectConfig OpenIdConnectConfig `json:"OpenIdConnectConfig" xml:"OpenIdConnectConfig"` + ErrorCodeSamples ErrorCodeSamplesInDescribeDeployedApi `json:"ErrorCodeSamples" xml:"ErrorCodeSamples"` + ResultDescriptions ResultDescriptionsInDescribeDeployedApi `json:"ResultDescriptions" xml:"ResultDescriptions"` + SystemParameters SystemParametersInDescribeDeployedApi `json:"SystemParameters" xml:"SystemParameters"` + CustomSystemParameters CustomSystemParametersInDescribeDeployedApi `json:"CustomSystemParameters" xml:"CustomSystemParameters"` + ConstantParameters ConstantParametersInDescribeDeployedApi `json:"ConstantParameters" xml:"ConstantParameters"` + RequestParameters RequestParametersInDescribeDeployedApi `json:"RequestParameters" xml:"RequestParameters"` + ServiceParameters ServiceParametersInDescribeDeployedApi `json:"ServiceParameters" xml:"ServiceParameters"` + ServiceParametersMap ServiceParametersMapInDescribeDeployedApi `json:"ServiceParametersMap" xml:"ServiceParametersMap"` +} + +// CreateDescribeDeployedApiRequest creates a request to invoke DescribeDeployedApi API +func CreateDescribeDeployedApiRequest() (request *DescribeDeployedApiRequest) { + request = &DescribeDeployedApiRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeDeployedApi", "apigateway", "openAPI") + return +} + +// CreateDescribeDeployedApiResponse creates a response to parse from DescribeDeployedApi response +func CreateDescribeDeployedApiResponse() (response *DescribeDeployedApiResponse) { + response = &DescribeDeployedApiResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_deployed_apis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_deployed_apis.go new file mode 100644 index 0000000..8e1f278 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_deployed_apis.go @@ -0,0 +1,112 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDeployedApis invokes the cloudapi.DescribeDeployedApis API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describedeployedapis.html +func (client *Client) DescribeDeployedApis(request *DescribeDeployedApisRequest) (response *DescribeDeployedApisResponse, err error) { + response = CreateDescribeDeployedApisResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDeployedApisWithChan invokes the cloudapi.DescribeDeployedApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describedeployedapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDeployedApisWithChan(request *DescribeDeployedApisRequest) (<-chan *DescribeDeployedApisResponse, <-chan error) { + responseChan := make(chan *DescribeDeployedApisResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDeployedApis(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDeployedApisWithCallback invokes the cloudapi.DescribeDeployedApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describedeployedapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDeployedApisWithCallback(request *DescribeDeployedApisRequest, callback func(response *DescribeDeployedApisResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDeployedApisResponse + var err error + defer close(result) + response, err = client.DescribeDeployedApis(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDeployedApisRequest is the request struct for api DescribeDeployedApis +type DescribeDeployedApisRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + StageName string `position:"Query" name:"StageName"` + ApiId string `position:"Query" name:"ApiId"` + ApiName string `position:"Query" name:"ApiName"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeDeployedApisResponse is the response struct for api DescribeDeployedApis +type DescribeDeployedApisResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + DeployedApis DeployedApis `json:"DeployedApis" xml:"DeployedApis"` +} + +// CreateDescribeDeployedApisRequest creates a request to invoke DescribeDeployedApis API +func CreateDescribeDeployedApisRequest() (request *DescribeDeployedApisRequest) { + request = &DescribeDeployedApisRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeDeployedApis", "apigateway", "openAPI") + return +} + +// CreateDescribeDeployedApisResponse creates a response to parse from DescribeDeployedApis response +func CreateDescribeDeployedApisResponse() (response *DescribeDeployedApisResponse) { + response = &DescribeDeployedApisResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_domain.go new file mode 100644 index 0000000..46972d1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_domain.go @@ -0,0 +1,116 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomain invokes the cloudapi.DescribeDomain API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describedomain.html +func (client *Client) DescribeDomain(request *DescribeDomainRequest) (response *DescribeDomainResponse, err error) { + response = CreateDescribeDomainResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainWithChan invokes the cloudapi.DescribeDomain API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describedomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainWithChan(request *DescribeDomainRequest) (<-chan *DescribeDomainResponse, <-chan error) { + responseChan := make(chan *DescribeDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainWithCallback invokes the cloudapi.DescribeDomain API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describedomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainWithCallback(request *DescribeDomainRequest, callback func(response *DescribeDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainResponse + var err error + defer close(result) + response, err = client.DescribeDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainRequest is the request struct for api DescribeDomain +type DescribeDomainRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + DomainName string `position:"Query" name:"DomainName"` +} + +// DescribeDomainResponse is the response struct for api DescribeDomain +type DescribeDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + GroupId string `json:"GroupId" xml:"GroupId"` + DomainName string `json:"DomainName" xml:"DomainName"` + SubDomain string `json:"SubDomain" xml:"SubDomain"` + CertificateId string `json:"CertificateId" xml:"CertificateId"` + CertificateName string `json:"CertificateName" xml:"CertificateName"` + CertificateBody string `json:"CertificateBody" xml:"CertificateBody"` + CertificatePrivateKey string `json:"CertificatePrivateKey" xml:"CertificatePrivateKey"` + DomainBindingStatus string `json:"DomainBindingStatus" xml:"DomainBindingStatus"` + DomainCNAMEStatus string `json:"DomainCNAMEStatus" xml:"DomainCNAMEStatus"` + DomainLegalStatus string `json:"DomainLegalStatus" xml:"DomainLegalStatus"` + DomainWebSocketStatus string `json:"DomainWebSocketStatus" xml:"DomainWebSocketStatus"` + DomainRemark string `json:"DomainRemark" xml:"DomainRemark"` +} + +// CreateDescribeDomainRequest creates a request to invoke DescribeDomain API +func CreateDescribeDomainRequest() (request *DescribeDomainRequest) { + request = &DescribeDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeDomain", "apigateway", "openAPI") + return +} + +// CreateDescribeDomainResponse creates a response to parse from DescribeDomain response +func CreateDescribeDomainResponse() (response *DescribeDomainResponse) { + response = &DescribeDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_domains_resolution.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_domains_resolution.go new file mode 100644 index 0000000..5bba8c4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_domains_resolution.go @@ -0,0 +1,106 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainsResolution invokes the cloudapi.DescribeDomainsResolution API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describedomainsresolution.html +func (client *Client) DescribeDomainsResolution(request *DescribeDomainsResolutionRequest) (response *DescribeDomainsResolutionResponse, err error) { + response = CreateDescribeDomainsResolutionResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainsResolutionWithChan invokes the cloudapi.DescribeDomainsResolution API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describedomainsresolution.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainsResolutionWithChan(request *DescribeDomainsResolutionRequest) (<-chan *DescribeDomainsResolutionResponse, <-chan error) { + responseChan := make(chan *DescribeDomainsResolutionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainsResolution(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainsResolutionWithCallback invokes the cloudapi.DescribeDomainsResolution API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describedomainsresolution.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainsResolutionWithCallback(request *DescribeDomainsResolutionRequest, callback func(response *DescribeDomainsResolutionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainsResolutionResponse + var err error + defer close(result) + response, err = client.DescribeDomainsResolution(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainsResolutionRequest is the request struct for api DescribeDomainsResolution +type DescribeDomainsResolutionRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + DomainNames string `position:"Query" name:"DomainNames"` +} + +// DescribeDomainsResolutionResponse is the response struct for api DescribeDomainsResolution +type DescribeDomainsResolutionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + GroupId string `json:"GroupId" xml:"GroupId"` + DomainResolutions DomainResolutions `json:"DomainResolutions" xml:"DomainResolutions"` +} + +// CreateDescribeDomainsResolutionRequest creates a request to invoke DescribeDomainsResolution API +func CreateDescribeDomainsResolutionRequest() (request *DescribeDomainsResolutionRequest) { + request = &DescribeDomainsResolutionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeDomainsResolution", "apigateway", "openAPI") + return +} + +// CreateDescribeDomainsResolutionResponse creates a response to parse from DescribeDomainsResolution response +func CreateDescribeDomainsResolutionResponse() (response *DescribeDomainsResolutionResponse) { + response = &DescribeDomainsResolutionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_history_apis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_history_apis.go new file mode 100644 index 0000000..ffc3290 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_history_apis.go @@ -0,0 +1,112 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeHistoryApis invokes the cloudapi.DescribeHistoryApis API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describehistoryapis.html +func (client *Client) DescribeHistoryApis(request *DescribeHistoryApisRequest) (response *DescribeHistoryApisResponse, err error) { + response = CreateDescribeHistoryApisResponse() + err = client.DoAction(request, response) + return +} + +// DescribeHistoryApisWithChan invokes the cloudapi.DescribeHistoryApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describehistoryapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeHistoryApisWithChan(request *DescribeHistoryApisRequest) (<-chan *DescribeHistoryApisResponse, <-chan error) { + responseChan := make(chan *DescribeHistoryApisResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeHistoryApis(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeHistoryApisWithCallback invokes the cloudapi.DescribeHistoryApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describehistoryapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeHistoryApisWithCallback(request *DescribeHistoryApisRequest, callback func(response *DescribeHistoryApisResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeHistoryApisResponse + var err error + defer close(result) + response, err = client.DescribeHistoryApis(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeHistoryApisRequest is the request struct for api DescribeHistoryApis +type DescribeHistoryApisRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + StageName string `position:"Query" name:"StageName"` + ApiId string `position:"Query" name:"ApiId"` + ApiName string `position:"Query" name:"ApiName"` + PageSize string `position:"Query" name:"PageSize"` + PageNumber string `position:"Query" name:"PageNumber"` +} + +// DescribeHistoryApisResponse is the response struct for api DescribeHistoryApis +type DescribeHistoryApisResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + ApiHisItems ApiHisItemsInDescribeHistoryApis `json:"ApiHisItems" xml:"ApiHisItems"` +} + +// CreateDescribeHistoryApisRequest creates a request to invoke DescribeHistoryApis API +func CreateDescribeHistoryApisRequest() (request *DescribeHistoryApisRequest) { + request = &DescribeHistoryApisRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeHistoryApis", "apigateway", "openAPI") + return +} + +// CreateDescribeHistoryApisResponse creates a response to parse from DescribeHistoryApis response +func CreateDescribeHistoryApisResponse() (response *DescribeHistoryApisResponse) { + response = &DescribeHistoryApisResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_ip_control_policy_items.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_ip_control_policy_items.go new file mode 100644 index 0000000..796c9bb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_ip_control_policy_items.go @@ -0,0 +1,110 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeIpControlPolicyItems invokes the cloudapi.DescribeIpControlPolicyItems API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeipcontrolpolicyitems.html +func (client *Client) DescribeIpControlPolicyItems(request *DescribeIpControlPolicyItemsRequest) (response *DescribeIpControlPolicyItemsResponse, err error) { + response = CreateDescribeIpControlPolicyItemsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeIpControlPolicyItemsWithChan invokes the cloudapi.DescribeIpControlPolicyItems API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeipcontrolpolicyitems.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeIpControlPolicyItemsWithChan(request *DescribeIpControlPolicyItemsRequest) (<-chan *DescribeIpControlPolicyItemsResponse, <-chan error) { + responseChan := make(chan *DescribeIpControlPolicyItemsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeIpControlPolicyItems(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeIpControlPolicyItemsWithCallback invokes the cloudapi.DescribeIpControlPolicyItems API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeipcontrolpolicyitems.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeIpControlPolicyItemsWithCallback(request *DescribeIpControlPolicyItemsRequest, callback func(response *DescribeIpControlPolicyItemsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeIpControlPolicyItemsResponse + var err error + defer close(result) + response, err = client.DescribeIpControlPolicyItems(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeIpControlPolicyItemsRequest is the request struct for api DescribeIpControlPolicyItems +type DescribeIpControlPolicyItemsRequest struct { + *requests.RpcRequest + IpControlId string `position:"Query" name:"IpControlId"` + PolicyItemId string `position:"Query" name:"PolicyItemId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeIpControlPolicyItemsResponse is the response struct for api DescribeIpControlPolicyItems +type DescribeIpControlPolicyItemsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + IpControlPolicyItems IpControlPolicyItems `json:"IpControlPolicyItems" xml:"IpControlPolicyItems"` +} + +// CreateDescribeIpControlPolicyItemsRequest creates a request to invoke DescribeIpControlPolicyItems API +func CreateDescribeIpControlPolicyItemsRequest() (request *DescribeIpControlPolicyItemsRequest) { + request = &DescribeIpControlPolicyItemsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeIpControlPolicyItems", "apigateway", "openAPI") + return +} + +// CreateDescribeIpControlPolicyItemsResponse creates a response to parse from DescribeIpControlPolicyItems response +func CreateDescribeIpControlPolicyItemsResponse() (response *DescribeIpControlPolicyItemsResponse) { + response = &DescribeIpControlPolicyItemsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_ip_controls.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_ip_controls.go new file mode 100644 index 0000000..d312d16 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_ip_controls.go @@ -0,0 +1,111 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeIpControls invokes the cloudapi.DescribeIpControls API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeipcontrols.html +func (client *Client) DescribeIpControls(request *DescribeIpControlsRequest) (response *DescribeIpControlsResponse, err error) { + response = CreateDescribeIpControlsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeIpControlsWithChan invokes the cloudapi.DescribeIpControls API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeipcontrols.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeIpControlsWithChan(request *DescribeIpControlsRequest) (<-chan *DescribeIpControlsResponse, <-chan error) { + responseChan := make(chan *DescribeIpControlsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeIpControls(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeIpControlsWithCallback invokes the cloudapi.DescribeIpControls API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeipcontrols.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeIpControlsWithCallback(request *DescribeIpControlsRequest, callback func(response *DescribeIpControlsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeIpControlsResponse + var err error + defer close(result) + response, err = client.DescribeIpControls(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeIpControlsRequest is the request struct for api DescribeIpControls +type DescribeIpControlsRequest struct { + *requests.RpcRequest + IpControlId string `position:"Query" name:"IpControlId"` + IpControlName string `position:"Query" name:"IpControlName"` + IpControlType string `position:"Query" name:"IpControlType"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeIpControlsResponse is the response struct for api DescribeIpControls +type DescribeIpControlsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + IpControlInfos IpControlInfos `json:"IpControlInfos" xml:"IpControlInfos"` +} + +// CreateDescribeIpControlsRequest creates a request to invoke DescribeIpControls API +func CreateDescribeIpControlsRequest() (request *DescribeIpControlsRequest) { + request = &DescribeIpControlsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeIpControls", "apigateway", "openAPI") + return +} + +// CreateDescribeIpControlsResponse creates a response to parse from DescribeIpControls response +func CreateDescribeIpControlsResponse() (response *DescribeIpControlsResponse) { + response = &DescribeIpControlsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_log_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_log_config.go new file mode 100644 index 0000000..8289a96 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_log_config.go @@ -0,0 +1,104 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLogConfig invokes the cloudapi.DescribeLogConfig API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describelogconfig.html +func (client *Client) DescribeLogConfig(request *DescribeLogConfigRequest) (response *DescribeLogConfigResponse, err error) { + response = CreateDescribeLogConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLogConfigWithChan invokes the cloudapi.DescribeLogConfig API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describelogconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLogConfigWithChan(request *DescribeLogConfigRequest) (<-chan *DescribeLogConfigResponse, <-chan error) { + responseChan := make(chan *DescribeLogConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLogConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLogConfigWithCallback invokes the cloudapi.DescribeLogConfig API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describelogconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLogConfigWithCallback(request *DescribeLogConfigRequest, callback func(response *DescribeLogConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLogConfigResponse + var err error + defer close(result) + response, err = client.DescribeLogConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLogConfigRequest is the request struct for api DescribeLogConfig +type DescribeLogConfigRequest struct { + *requests.RpcRequest + LogType string `position:"Query" name:"LogType"` +} + +// DescribeLogConfigResponse is the response struct for api DescribeLogConfig +type DescribeLogConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LogInfos LogInfos `json:"LogInfos" xml:"LogInfos"` +} + +// CreateDescribeLogConfigRequest creates a request to invoke DescribeLogConfig API +func CreateDescribeLogConfigRequest() (request *DescribeLogConfigRequest) { + request = &DescribeLogConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeLogConfig", "apigateway", "openAPI") + return +} + +// CreateDescribeLogConfigResponse creates a response to parse from DescribeLogConfig response +func CreateDescribeLogConfigResponse() (response *DescribeLogConfigResponse) { + response = &DescribeLogConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_purchased_api_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_purchased_api_group.go new file mode 100644 index 0000000..b47eec0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_purchased_api_group.go @@ -0,0 +1,110 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribePurchasedApiGroup invokes the cloudapi.DescribePurchasedApiGroup API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describepurchasedapigroup.html +func (client *Client) DescribePurchasedApiGroup(request *DescribePurchasedApiGroupRequest) (response *DescribePurchasedApiGroupResponse, err error) { + response = CreateDescribePurchasedApiGroupResponse() + err = client.DoAction(request, response) + return +} + +// DescribePurchasedApiGroupWithChan invokes the cloudapi.DescribePurchasedApiGroup API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describepurchasedapigroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePurchasedApiGroupWithChan(request *DescribePurchasedApiGroupRequest) (<-chan *DescribePurchasedApiGroupResponse, <-chan error) { + responseChan := make(chan *DescribePurchasedApiGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribePurchasedApiGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribePurchasedApiGroupWithCallback invokes the cloudapi.DescribePurchasedApiGroup API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describepurchasedapigroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePurchasedApiGroupWithCallback(request *DescribePurchasedApiGroupRequest, callback func(response *DescribePurchasedApiGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribePurchasedApiGroupResponse + var err error + defer close(result) + response, err = client.DescribePurchasedApiGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribePurchasedApiGroupRequest is the request struct for api DescribePurchasedApiGroup +type DescribePurchasedApiGroupRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` +} + +// DescribePurchasedApiGroupResponse is the response struct for api DescribePurchasedApiGroup +type DescribePurchasedApiGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + GroupId string `json:"GroupId" xml:"GroupId"` + GroupName string `json:"GroupName" xml:"GroupName"` + Description string `json:"Description" xml:"Description"` + PurchasedTime string `json:"PurchasedTime" xml:"PurchasedTime"` + RegionId string `json:"RegionId" xml:"RegionId"` + Status string `json:"Status" xml:"Status"` + Domains Domains `json:"Domains" xml:"Domains"` +} + +// CreateDescribePurchasedApiGroupRequest creates a request to invoke DescribePurchasedApiGroup API +func CreateDescribePurchasedApiGroupRequest() (request *DescribePurchasedApiGroupRequest) { + request = &DescribePurchasedApiGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribePurchasedApiGroup", "apigateway", "openAPI") + return +} + +// CreateDescribePurchasedApiGroupResponse creates a response to parse from DescribePurchasedApiGroup response +func CreateDescribePurchasedApiGroupResponse() (response *DescribePurchasedApiGroupResponse) { + response = &DescribePurchasedApiGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_purchased_api_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_purchased_api_groups.go new file mode 100644 index 0000000..2b5210d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_purchased_api_groups.go @@ -0,0 +1,108 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribePurchasedApiGroups invokes the cloudapi.DescribePurchasedApiGroups API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describepurchasedapigroups.html +func (client *Client) DescribePurchasedApiGroups(request *DescribePurchasedApiGroupsRequest) (response *DescribePurchasedApiGroupsResponse, err error) { + response = CreateDescribePurchasedApiGroupsResponse() + err = client.DoAction(request, response) + return +} + +// DescribePurchasedApiGroupsWithChan invokes the cloudapi.DescribePurchasedApiGroups API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describepurchasedapigroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePurchasedApiGroupsWithChan(request *DescribePurchasedApiGroupsRequest) (<-chan *DescribePurchasedApiGroupsResponse, <-chan error) { + responseChan := make(chan *DescribePurchasedApiGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribePurchasedApiGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribePurchasedApiGroupsWithCallback invokes the cloudapi.DescribePurchasedApiGroups API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describepurchasedapigroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePurchasedApiGroupsWithCallback(request *DescribePurchasedApiGroupsRequest, callback func(response *DescribePurchasedApiGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribePurchasedApiGroupsResponse + var err error + defer close(result) + response, err = client.DescribePurchasedApiGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribePurchasedApiGroupsRequest is the request struct for api DescribePurchasedApiGroups +type DescribePurchasedApiGroupsRequest struct { + *requests.RpcRequest + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribePurchasedApiGroupsResponse is the response struct for api DescribePurchasedApiGroups +type DescribePurchasedApiGroupsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PurchasedApiGroupAttributes PurchasedApiGroupAttributes `json:"PurchasedApiGroupAttributes" xml:"PurchasedApiGroupAttributes"` +} + +// CreateDescribePurchasedApiGroupsRequest creates a request to invoke DescribePurchasedApiGroups API +func CreateDescribePurchasedApiGroupsRequest() (request *DescribePurchasedApiGroupsRequest) { + request = &DescribePurchasedApiGroupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribePurchasedApiGroups", "apigateway", "openAPI") + return +} + +// CreateDescribePurchasedApiGroupsResponse creates a response to parse from DescribePurchasedApiGroups response +func CreateDescribePurchasedApiGroupsResponse() (response *DescribePurchasedApiGroupsResponse) { + response = &DescribePurchasedApiGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_purchased_apis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_purchased_apis.go new file mode 100644 index 0000000..022d0a4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_purchased_apis.go @@ -0,0 +1,113 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribePurchasedApis invokes the cloudapi.DescribePurchasedApis API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describepurchasedapis.html +func (client *Client) DescribePurchasedApis(request *DescribePurchasedApisRequest) (response *DescribePurchasedApisResponse, err error) { + response = CreateDescribePurchasedApisResponse() + err = client.DoAction(request, response) + return +} + +// DescribePurchasedApisWithChan invokes the cloudapi.DescribePurchasedApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describepurchasedapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePurchasedApisWithChan(request *DescribePurchasedApisRequest) (<-chan *DescribePurchasedApisResponse, <-chan error) { + responseChan := make(chan *DescribePurchasedApisResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribePurchasedApis(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribePurchasedApisWithCallback invokes the cloudapi.DescribePurchasedApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describepurchasedapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePurchasedApisWithCallback(request *DescribePurchasedApisRequest, callback func(response *DescribePurchasedApisResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribePurchasedApisResponse + var err error + defer close(result) + response, err = client.DescribePurchasedApis(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribePurchasedApisRequest is the request struct for api DescribePurchasedApis +type DescribePurchasedApisRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + StageName string `position:"Query" name:"StageName"` + ApiId string `position:"Query" name:"ApiId"` + ApiName string `position:"Query" name:"ApiName"` + Visibility string `position:"Query" name:"Visibility"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribePurchasedApisResponse is the response struct for api DescribePurchasedApis +type DescribePurchasedApisResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PurchasedApis PurchasedApis `json:"PurchasedApis" xml:"PurchasedApis"` +} + +// CreateDescribePurchasedApisRequest creates a request to invoke DescribePurchasedApis API +func CreateDescribePurchasedApisRequest() (request *DescribePurchasedApisRequest) { + request = &DescribePurchasedApisRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribePurchasedApis", "apigateway", "openAPI") + return +} + +// CreateDescribePurchasedApisResponse creates a response to parse from DescribePurchasedApis response +func CreateDescribePurchasedApisResponse() (response *DescribePurchasedApisResponse) { + response = &DescribePurchasedApisResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_regions.go new file mode 100644 index 0000000..e251a04 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_regions.go @@ -0,0 +1,103 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 cloudapi.DescribeRegions API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describeregions.html +func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) { + response = CreateDescribeRegionsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRegionsWithChan invokes the cloudapi.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 cloudapi.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +} + +// 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("CloudAPI", "2016-07-14", "DescribeRegions", "apigateway", "openAPI") + 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/cloudapi/describe_signatures.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_signatures.go new file mode 100644 index 0000000..2c97544 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_signatures.go @@ -0,0 +1,110 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSignatures invokes the cloudapi.DescribeSignatures API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describesignatures.html +func (client *Client) DescribeSignatures(request *DescribeSignaturesRequest) (response *DescribeSignaturesResponse, err error) { + response = CreateDescribeSignaturesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSignaturesWithChan invokes the cloudapi.DescribeSignatures API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describesignatures.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSignaturesWithChan(request *DescribeSignaturesRequest) (<-chan *DescribeSignaturesResponse, <-chan error) { + responseChan := make(chan *DescribeSignaturesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSignatures(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSignaturesWithCallback invokes the cloudapi.DescribeSignatures API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describesignatures.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSignaturesWithCallback(request *DescribeSignaturesRequest, callback func(response *DescribeSignaturesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSignaturesResponse + var err error + defer close(result) + response, err = client.DescribeSignatures(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSignaturesRequest is the request struct for api DescribeSignatures +type DescribeSignaturesRequest struct { + *requests.RpcRequest + SignatureId string `position:"Query" name:"SignatureId"` + SignatureName string `position:"Query" name:"SignatureName"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeSignaturesResponse is the response struct for api DescribeSignatures +type DescribeSignaturesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + SignatureInfos SignatureInfos `json:"SignatureInfos" xml:"SignatureInfos"` +} + +// CreateDescribeSignaturesRequest creates a request to invoke DescribeSignatures API +func CreateDescribeSignaturesRequest() (request *DescribeSignaturesRequest) { + request = &DescribeSignaturesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeSignatures", "apigateway", "openAPI") + return +} + +// CreateDescribeSignaturesResponse creates a response to parse from DescribeSignatures response +func CreateDescribeSignaturesResponse() (response *DescribeSignaturesResponse) { + response = &DescribeSignaturesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_signatures_by_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_signatures_by_api.go new file mode 100644 index 0000000..e3ab24b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_signatures_by_api.go @@ -0,0 +1,106 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSignaturesByApi invokes the cloudapi.DescribeSignaturesByApi API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describesignaturesbyapi.html +func (client *Client) DescribeSignaturesByApi(request *DescribeSignaturesByApiRequest) (response *DescribeSignaturesByApiResponse, err error) { + response = CreateDescribeSignaturesByApiResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSignaturesByApiWithChan invokes the cloudapi.DescribeSignaturesByApi API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describesignaturesbyapi.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSignaturesByApiWithChan(request *DescribeSignaturesByApiRequest) (<-chan *DescribeSignaturesByApiResponse, <-chan error) { + responseChan := make(chan *DescribeSignaturesByApiResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSignaturesByApi(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSignaturesByApiWithCallback invokes the cloudapi.DescribeSignaturesByApi API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describesignaturesbyapi.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSignaturesByApiWithCallback(request *DescribeSignaturesByApiRequest, callback func(response *DescribeSignaturesByApiResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSignaturesByApiResponse + var err error + defer close(result) + response, err = client.DescribeSignaturesByApi(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSignaturesByApiRequest is the request struct for api DescribeSignaturesByApi +type DescribeSignaturesByApiRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + ApiId string `position:"Query" name:"ApiId"` + StageName string `position:"Query" name:"StageName"` +} + +// DescribeSignaturesByApiResponse is the response struct for api DescribeSignaturesByApi +type DescribeSignaturesByApiResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Signatures Signatures `json:"Signatures" xml:"Signatures"` +} + +// CreateDescribeSignaturesByApiRequest creates a request to invoke DescribeSignaturesByApi API +func CreateDescribeSignaturesByApiRequest() (request *DescribeSignaturesByApiRequest) { + request = &DescribeSignaturesByApiRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeSignaturesByApi", "apigateway", "openAPI") + return +} + +// CreateDescribeSignaturesByApiResponse creates a response to parse from DescribeSignaturesByApi response +func CreateDescribeSignaturesByApiResponse() (response *DescribeSignaturesByApiResponse) { + response = &DescribeSignaturesByApiResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_system_parameters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_system_parameters.go new file mode 100644 index 0000000..c87e85f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_system_parameters.go @@ -0,0 +1,103 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSystemParameters invokes the cloudapi.DescribeSystemParameters API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describesystemparameters.html +func (client *Client) DescribeSystemParameters(request *DescribeSystemParametersRequest) (response *DescribeSystemParametersResponse, err error) { + response = CreateDescribeSystemParametersResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSystemParametersWithChan invokes the cloudapi.DescribeSystemParameters API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describesystemparameters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSystemParametersWithChan(request *DescribeSystemParametersRequest) (<-chan *DescribeSystemParametersResponse, <-chan error) { + responseChan := make(chan *DescribeSystemParametersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSystemParameters(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSystemParametersWithCallback invokes the cloudapi.DescribeSystemParameters API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describesystemparameters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSystemParametersWithCallback(request *DescribeSystemParametersRequest, callback func(response *DescribeSystemParametersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSystemParametersResponse + var err error + defer close(result) + response, err = client.DescribeSystemParameters(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSystemParametersRequest is the request struct for api DescribeSystemParameters +type DescribeSystemParametersRequest struct { + *requests.RpcRequest +} + +// DescribeSystemParametersResponse is the response struct for api DescribeSystemParameters +type DescribeSystemParametersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SystemParams SystemParams `json:"SystemParams" xml:"SystemParams"` +} + +// CreateDescribeSystemParametersRequest creates a request to invoke DescribeSystemParameters API +func CreateDescribeSystemParametersRequest() (request *DescribeSystemParametersRequest) { + request = &DescribeSystemParametersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeSystemParameters", "apigateway", "openAPI") + return +} + +// CreateDescribeSystemParametersResponse creates a response to parse from DescribeSystemParameters response +func CreateDescribeSystemParametersResponse() (response *DescribeSystemParametersResponse) { + response = &DescribeSystemParametersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_traffic_controls.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_traffic_controls.go new file mode 100644 index 0000000..fe9505c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_traffic_controls.go @@ -0,0 +1,113 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeTrafficControls invokes the cloudapi.DescribeTrafficControls API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describetrafficcontrols.html +func (client *Client) DescribeTrafficControls(request *DescribeTrafficControlsRequest) (response *DescribeTrafficControlsResponse, err error) { + response = CreateDescribeTrafficControlsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeTrafficControlsWithChan invokes the cloudapi.DescribeTrafficControls API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describetrafficcontrols.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTrafficControlsWithChan(request *DescribeTrafficControlsRequest) (<-chan *DescribeTrafficControlsResponse, <-chan error) { + responseChan := make(chan *DescribeTrafficControlsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeTrafficControls(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeTrafficControlsWithCallback invokes the cloudapi.DescribeTrafficControls API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describetrafficcontrols.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTrafficControlsWithCallback(request *DescribeTrafficControlsRequest, callback func(response *DescribeTrafficControlsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeTrafficControlsResponse + var err error + defer close(result) + response, err = client.DescribeTrafficControls(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeTrafficControlsRequest is the request struct for api DescribeTrafficControls +type DescribeTrafficControlsRequest struct { + *requests.RpcRequest + TrafficControlId string `position:"Query" name:"TrafficControlId"` + GroupId string `position:"Query" name:"GroupId"` + ApiId string `position:"Query" name:"ApiId"` + StageName string `position:"Query" name:"StageName"` + TrafficControlName string `position:"Query" name:"TrafficControlName"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeTrafficControlsResponse is the response struct for api DescribeTrafficControls +type DescribeTrafficControlsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TrafficControls TrafficControls `json:"TrafficControls" xml:"TrafficControls"` +} + +// CreateDescribeTrafficControlsRequest creates a request to invoke DescribeTrafficControls API +func CreateDescribeTrafficControlsRequest() (request *DescribeTrafficControlsRequest) { + request = &DescribeTrafficControlsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeTrafficControls", "apigateway", "openAPI") + return +} + +// CreateDescribeTrafficControlsResponse creates a response to parse from DescribeTrafficControls response +func CreateDescribeTrafficControlsResponse() (response *DescribeTrafficControlsResponse) { + response = &DescribeTrafficControlsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_traffic_controls_by_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_traffic_controls_by_api.go new file mode 100644 index 0000000..f771cfa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_traffic_controls_by_api.go @@ -0,0 +1,106 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeTrafficControlsByApi invokes the cloudapi.DescribeTrafficControlsByApi API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describetrafficcontrolsbyapi.html +func (client *Client) DescribeTrafficControlsByApi(request *DescribeTrafficControlsByApiRequest) (response *DescribeTrafficControlsByApiResponse, err error) { + response = CreateDescribeTrafficControlsByApiResponse() + err = client.DoAction(request, response) + return +} + +// DescribeTrafficControlsByApiWithChan invokes the cloudapi.DescribeTrafficControlsByApi API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describetrafficcontrolsbyapi.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTrafficControlsByApiWithChan(request *DescribeTrafficControlsByApiRequest) (<-chan *DescribeTrafficControlsByApiResponse, <-chan error) { + responseChan := make(chan *DescribeTrafficControlsByApiResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeTrafficControlsByApi(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeTrafficControlsByApiWithCallback invokes the cloudapi.DescribeTrafficControlsByApi API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describetrafficcontrolsbyapi.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTrafficControlsByApiWithCallback(request *DescribeTrafficControlsByApiRequest, callback func(response *DescribeTrafficControlsByApiResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeTrafficControlsByApiResponse + var err error + defer close(result) + response, err = client.DescribeTrafficControlsByApi(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeTrafficControlsByApiRequest is the request struct for api DescribeTrafficControlsByApi +type DescribeTrafficControlsByApiRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + ApiId string `position:"Query" name:"ApiId"` + StageName string `position:"Query" name:"StageName"` +} + +// DescribeTrafficControlsByApiResponse is the response struct for api DescribeTrafficControlsByApi +type DescribeTrafficControlsByApiResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TrafficControlItems TrafficControlItems `json:"TrafficControlItems" xml:"TrafficControlItems"` +} + +// CreateDescribeTrafficControlsByApiRequest creates a request to invoke DescribeTrafficControlsByApi API +func CreateDescribeTrafficControlsByApiRequest() (request *DescribeTrafficControlsByApiRequest) { + request = &DescribeTrafficControlsByApiRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeTrafficControlsByApi", "apigateway", "openAPI") + return +} + +// CreateDescribeTrafficControlsByApiResponse creates a response to parse from DescribeTrafficControlsByApi response +func CreateDescribeTrafficControlsByApiResponse() (response *DescribeTrafficControlsByApiResponse) { + response = &DescribeTrafficControlsByApiResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_vpc_accesses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_vpc_accesses.go new file mode 100644 index 0000000..bf2a578 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/describe_vpc_accesses.go @@ -0,0 +1,108 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVpcAccesses invokes the cloudapi.DescribeVpcAccesses API synchronously +// api document: https://help.aliyun.com/api/cloudapi/describevpcaccesses.html +func (client *Client) DescribeVpcAccesses(request *DescribeVpcAccessesRequest) (response *DescribeVpcAccessesResponse, err error) { + response = CreateDescribeVpcAccessesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVpcAccessesWithChan invokes the cloudapi.DescribeVpcAccesses API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describevpcaccesses.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVpcAccessesWithChan(request *DescribeVpcAccessesRequest) (<-chan *DescribeVpcAccessesResponse, <-chan error) { + responseChan := make(chan *DescribeVpcAccessesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVpcAccesses(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVpcAccessesWithCallback invokes the cloudapi.DescribeVpcAccesses API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/describevpcaccesses.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVpcAccessesWithCallback(request *DescribeVpcAccessesRequest, callback func(response *DescribeVpcAccessesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVpcAccessesResponse + var err error + defer close(result) + response, err = client.DescribeVpcAccesses(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVpcAccessesRequest is the request struct for api DescribeVpcAccesses +type DescribeVpcAccessesRequest struct { + *requests.RpcRequest + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeVpcAccessesResponse is the response struct for api DescribeVpcAccesses +type DescribeVpcAccessesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + VpcAccessAttributes VpcAccessAttributes `json:"VpcAccessAttributes" xml:"VpcAccessAttributes"` +} + +// CreateDescribeVpcAccessesRequest creates a request to invoke DescribeVpcAccesses API +func CreateDescribeVpcAccessesRequest() (request *DescribeVpcAccessesRequest) { + request = &DescribeVpcAccessesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "DescribeVpcAccesses", "apigateway", "openAPI") + return +} + +// CreateDescribeVpcAccessesResponse creates a response to parse from DescribeVpcAccesses response +func CreateDescribeVpcAccessesResponse() (response *DescribeVpcAccessesResponse) { + response = &DescribeVpcAccessesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_api.go new file mode 100644 index 0000000..52f3a08 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_api.go @@ -0,0 +1,123 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyApi invokes the cloudapi.ModifyApi API synchronously +// api document: https://help.aliyun.com/api/cloudapi/modifyapi.html +func (client *Client) ModifyApi(request *ModifyApiRequest) (response *ModifyApiResponse, err error) { + response = CreateModifyApiResponse() + err = client.DoAction(request, response) + return +} + +// ModifyApiWithChan invokes the cloudapi.ModifyApi API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/modifyapi.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyApiWithChan(request *ModifyApiRequest) (<-chan *ModifyApiResponse, <-chan error) { + responseChan := make(chan *ModifyApiResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyApi(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyApiWithCallback invokes the cloudapi.ModifyApi API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/modifyapi.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyApiWithCallback(request *ModifyApiRequest, callback func(response *ModifyApiResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyApiResponse + var err error + defer close(result) + response, err = client.ModifyApi(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyApiRequest is the request struct for api ModifyApi +type ModifyApiRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + ApiId string `position:"Query" name:"ApiId"` + ApiName string `position:"Query" name:"ApiName"` + Description string `position:"Query" name:"Description"` + Visibility string `position:"Query" name:"Visibility"` + AuthType string `position:"Query" name:"AuthType"` + RequestConfig string `position:"Query" name:"RequestConfig"` + ServiceConfig string `position:"Query" name:"ServiceConfig"` + RequestParameters string `position:"Query" name:"RequestParameters"` + SystemParameters string `position:"Query" name:"SystemParameters"` + ConstantParameters string `position:"Query" name:"ConstantParameters"` + ServiceParameters string `position:"Query" name:"ServiceParameters"` + ServiceParametersMap string `position:"Query" name:"ServiceParametersMap"` + ResultType string `position:"Query" name:"ResultType"` + ResultSample string `position:"Query" name:"ResultSample"` + FailResultSample string `position:"Query" name:"FailResultSample"` + ErrorCodeSamples string `position:"Query" name:"ErrorCodeSamples"` + ResultDescriptions string `position:"Query" name:"ResultDescriptions"` + OpenIdConnectConfig string `position:"Query" name:"OpenIdConnectConfig"` + AllowSignatureMethod string `position:"Query" name:"AllowSignatureMethod"` + WebSocketApiType string `position:"Query" name:"WebSocketApiType"` +} + +// ModifyApiResponse is the response struct for api ModifyApi +type ModifyApiResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyApiRequest creates a request to invoke ModifyApi API +func CreateModifyApiRequest() (request *ModifyApiRequest) { + request = &ModifyApiRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "ModifyApi", "apigateway", "openAPI") + return +} + +// CreateModifyApiResponse creates a response to parse from ModifyApi response +func CreateModifyApiResponse() (response *ModifyApiResponse) { + response = &ModifyApiResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_api_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_api_group.go new file mode 100644 index 0000000..2eed78a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_api_group.go @@ -0,0 +1,109 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyApiGroup invokes the cloudapi.ModifyApiGroup API synchronously +// api document: https://help.aliyun.com/api/cloudapi/modifyapigroup.html +func (client *Client) ModifyApiGroup(request *ModifyApiGroupRequest) (response *ModifyApiGroupResponse, err error) { + response = CreateModifyApiGroupResponse() + err = client.DoAction(request, response) + return +} + +// ModifyApiGroupWithChan invokes the cloudapi.ModifyApiGroup API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/modifyapigroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyApiGroupWithChan(request *ModifyApiGroupRequest) (<-chan *ModifyApiGroupResponse, <-chan error) { + responseChan := make(chan *ModifyApiGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyApiGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyApiGroupWithCallback invokes the cloudapi.ModifyApiGroup API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/modifyapigroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyApiGroupWithCallback(request *ModifyApiGroupRequest, callback func(response *ModifyApiGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyApiGroupResponse + var err error + defer close(result) + response, err = client.ModifyApiGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyApiGroupRequest is the request struct for api ModifyApiGroup +type ModifyApiGroupRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + GroupName string `position:"Query" name:"GroupName"` + Description string `position:"Query" name:"Description"` +} + +// ModifyApiGroupResponse is the response struct for api ModifyApiGroup +type ModifyApiGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + GroupId string `json:"GroupId" xml:"GroupId"` + GroupName string `json:"GroupName" xml:"GroupName"` + SubDomain string `json:"SubDomain" xml:"SubDomain"` + Description string `json:"Description" xml:"Description"` +} + +// CreateModifyApiGroupRequest creates a request to invoke ModifyApiGroup API +func CreateModifyApiGroupRequest() (request *ModifyApiGroupRequest) { + request = &ModifyApiGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "ModifyApiGroup", "apigateway", "openAPI") + return +} + +// CreateModifyApiGroupResponse creates a response to parse from ModifyApiGroup response +func CreateModifyApiGroupResponse() (response *ModifyApiGroupResponse) { + response = &ModifyApiGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_app.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_app.go new file mode 100644 index 0000000..a3d2429 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_app.go @@ -0,0 +1,105 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyApp invokes the cloudapi.ModifyApp API synchronously +// api document: https://help.aliyun.com/api/cloudapi/modifyapp.html +func (client *Client) ModifyApp(request *ModifyAppRequest) (response *ModifyAppResponse, err error) { + response = CreateModifyAppResponse() + err = client.DoAction(request, response) + return +} + +// ModifyAppWithChan invokes the cloudapi.ModifyApp API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/modifyapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyAppWithChan(request *ModifyAppRequest) (<-chan *ModifyAppResponse, <-chan error) { + responseChan := make(chan *ModifyAppResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyApp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyAppWithCallback invokes the cloudapi.ModifyApp API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/modifyapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyAppWithCallback(request *ModifyAppRequest, callback func(response *ModifyAppResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyAppResponse + var err error + defer close(result) + response, err = client.ModifyApp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyAppRequest is the request struct for api ModifyApp +type ModifyAppRequest struct { + *requests.RpcRequest + AppId requests.Integer `position:"Query" name:"AppId"` + AppName string `position:"Query" name:"AppName"` + Description string `position:"Query" name:"Description"` +} + +// ModifyAppResponse is the response struct for api ModifyApp +type ModifyAppResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyAppRequest creates a request to invoke ModifyApp API +func CreateModifyAppRequest() (request *ModifyAppRequest) { + request = &ModifyAppRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "ModifyApp", "apigateway", "openAPI") + return +} + +// CreateModifyAppResponse creates a response to parse from ModifyApp response +func CreateModifyAppResponse() (response *ModifyAppResponse) { + response = &ModifyAppResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_catalog.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_catalog.go new file mode 100644 index 0000000..f10db42 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_catalog.go @@ -0,0 +1,105 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyCatalog invokes the cloudapi.ModifyCatalog API synchronously +// api document: https://help.aliyun.com/api/cloudapi/modifycatalog.html +func (client *Client) ModifyCatalog(request *ModifyCatalogRequest) (response *ModifyCatalogResponse, err error) { + response = CreateModifyCatalogResponse() + err = client.DoAction(request, response) + return +} + +// ModifyCatalogWithChan invokes the cloudapi.ModifyCatalog API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/modifycatalog.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCatalogWithChan(request *ModifyCatalogRequest) (<-chan *ModifyCatalogResponse, <-chan error) { + responseChan := make(chan *ModifyCatalogResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyCatalog(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyCatalogWithCallback invokes the cloudapi.ModifyCatalog API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/modifycatalog.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCatalogWithCallback(request *ModifyCatalogRequest, callback func(response *ModifyCatalogResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyCatalogResponse + var err error + defer close(result) + response, err = client.ModifyCatalog(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyCatalogRequest is the request struct for api ModifyCatalog +type ModifyCatalogRequest struct { + *requests.RpcRequest + CatalogId string `position:"Query" name:"CatalogId"` + CatalogName string `position:"Query" name:"CatalogName"` + Description string `position:"Query" name:"Description"` +} + +// ModifyCatalogResponse is the response struct for api ModifyCatalog +type ModifyCatalogResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyCatalogRequest creates a request to invoke ModifyCatalog API +func CreateModifyCatalogRequest() (request *ModifyCatalogRequest) { + request = &ModifyCatalogRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "ModifyCatalog", "apigateway", "openAPI") + return +} + +// CreateModifyCatalogResponse creates a response to parse from ModifyCatalog response +func CreateModifyCatalogResponse() (response *ModifyCatalogResponse) { + response = &ModifyCatalogResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_ip_control.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_ip_control.go new file mode 100644 index 0000000..cf96fc6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_ip_control.go @@ -0,0 +1,105 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyIpControl invokes the cloudapi.ModifyIpControl API synchronously +// api document: https://help.aliyun.com/api/cloudapi/modifyipcontrol.html +func (client *Client) ModifyIpControl(request *ModifyIpControlRequest) (response *ModifyIpControlResponse, err error) { + response = CreateModifyIpControlResponse() + err = client.DoAction(request, response) + return +} + +// ModifyIpControlWithChan invokes the cloudapi.ModifyIpControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/modifyipcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyIpControlWithChan(request *ModifyIpControlRequest) (<-chan *ModifyIpControlResponse, <-chan error) { + responseChan := make(chan *ModifyIpControlResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyIpControl(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyIpControlWithCallback invokes the cloudapi.ModifyIpControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/modifyipcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyIpControlWithCallback(request *ModifyIpControlRequest, callback func(response *ModifyIpControlResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyIpControlResponse + var err error + defer close(result) + response, err = client.ModifyIpControl(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyIpControlRequest is the request struct for api ModifyIpControl +type ModifyIpControlRequest struct { + *requests.RpcRequest + IpControlId string `position:"Query" name:"IpControlId"` + IpControlName string `position:"Query" name:"IpControlName"` + Description string `position:"Query" name:"Description"` +} + +// ModifyIpControlResponse is the response struct for api ModifyIpControl +type ModifyIpControlResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyIpControlRequest creates a request to invoke ModifyIpControl API +func CreateModifyIpControlRequest() (request *ModifyIpControlRequest) { + request = &ModifyIpControlRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "ModifyIpControl", "apigateway", "openAPI") + return +} + +// CreateModifyIpControlResponse creates a response to parse from ModifyIpControl response +func CreateModifyIpControlResponse() (response *ModifyIpControlResponse) { + response = &ModifyIpControlResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_ip_control_policy_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_ip_control_policy_item.go new file mode 100644 index 0000000..7714a9d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_ip_control_policy_item.go @@ -0,0 +1,106 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyIpControlPolicyItem invokes the cloudapi.ModifyIpControlPolicyItem API synchronously +// api document: https://help.aliyun.com/api/cloudapi/modifyipcontrolpolicyitem.html +func (client *Client) ModifyIpControlPolicyItem(request *ModifyIpControlPolicyItemRequest) (response *ModifyIpControlPolicyItemResponse, err error) { + response = CreateModifyIpControlPolicyItemResponse() + err = client.DoAction(request, response) + return +} + +// ModifyIpControlPolicyItemWithChan invokes the cloudapi.ModifyIpControlPolicyItem API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/modifyipcontrolpolicyitem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyIpControlPolicyItemWithChan(request *ModifyIpControlPolicyItemRequest) (<-chan *ModifyIpControlPolicyItemResponse, <-chan error) { + responseChan := make(chan *ModifyIpControlPolicyItemResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyIpControlPolicyItem(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyIpControlPolicyItemWithCallback invokes the cloudapi.ModifyIpControlPolicyItem API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/modifyipcontrolpolicyitem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyIpControlPolicyItemWithCallback(request *ModifyIpControlPolicyItemRequest, callback func(response *ModifyIpControlPolicyItemResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyIpControlPolicyItemResponse + var err error + defer close(result) + response, err = client.ModifyIpControlPolicyItem(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyIpControlPolicyItemRequest is the request struct for api ModifyIpControlPolicyItem +type ModifyIpControlPolicyItemRequest struct { + *requests.RpcRequest + IpControlId string `position:"Query" name:"IpControlId"` + PolicyItemId string `position:"Query" name:"PolicyItemId"` + AppId string `position:"Query" name:"AppId"` + CidrIp string `position:"Query" name:"CidrIp"` +} + +// ModifyIpControlPolicyItemResponse is the response struct for api ModifyIpControlPolicyItem +type ModifyIpControlPolicyItemResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyIpControlPolicyItemRequest creates a request to invoke ModifyIpControlPolicyItem API +func CreateModifyIpControlPolicyItemRequest() (request *ModifyIpControlPolicyItemRequest) { + request = &ModifyIpControlPolicyItemRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "ModifyIpControlPolicyItem", "apigateway", "openAPI") + return +} + +// CreateModifyIpControlPolicyItemResponse creates a response to parse from ModifyIpControlPolicyItem response +func CreateModifyIpControlPolicyItemResponse() (response *ModifyIpControlPolicyItemResponse) { + response = &ModifyIpControlPolicyItemResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_log_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_log_config.go new file mode 100644 index 0000000..e1975c1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_log_config.go @@ -0,0 +1,105 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyLogConfig invokes the cloudapi.ModifyLogConfig API synchronously +// api document: https://help.aliyun.com/api/cloudapi/modifylogconfig.html +func (client *Client) ModifyLogConfig(request *ModifyLogConfigRequest) (response *ModifyLogConfigResponse, err error) { + response = CreateModifyLogConfigResponse() + err = client.DoAction(request, response) + return +} + +// ModifyLogConfigWithChan invokes the cloudapi.ModifyLogConfig API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/modifylogconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyLogConfigWithChan(request *ModifyLogConfigRequest) (<-chan *ModifyLogConfigResponse, <-chan error) { + responseChan := make(chan *ModifyLogConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyLogConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyLogConfigWithCallback invokes the cloudapi.ModifyLogConfig API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/modifylogconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyLogConfigWithCallback(request *ModifyLogConfigRequest, callback func(response *ModifyLogConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyLogConfigResponse + var err error + defer close(result) + response, err = client.ModifyLogConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyLogConfigRequest is the request struct for api ModifyLogConfig +type ModifyLogConfigRequest struct { + *requests.RpcRequest + SlsProject string `position:"Query" name:"SlsProject"` + SlsLogStore string `position:"Query" name:"SlsLogStore"` + LogType string `position:"Query" name:"LogType"` +} + +// ModifyLogConfigResponse is the response struct for api ModifyLogConfig +type ModifyLogConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyLogConfigRequest creates a request to invoke ModifyLogConfig API +func CreateModifyLogConfigRequest() (request *ModifyLogConfigRequest) { + request = &ModifyLogConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "ModifyLogConfig", "apigateway", "openAPI") + return +} + +// CreateModifyLogConfigResponse creates a response to parse from ModifyLogConfig response +func CreateModifyLogConfigResponse() (response *ModifyLogConfigResponse) { + response = &ModifyLogConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_signature.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_signature.go new file mode 100644 index 0000000..58d2b22 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_signature.go @@ -0,0 +1,108 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifySignature invokes the cloudapi.ModifySignature API synchronously +// api document: https://help.aliyun.com/api/cloudapi/modifysignature.html +func (client *Client) ModifySignature(request *ModifySignatureRequest) (response *ModifySignatureResponse, err error) { + response = CreateModifySignatureResponse() + err = client.DoAction(request, response) + return +} + +// ModifySignatureWithChan invokes the cloudapi.ModifySignature API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/modifysignature.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySignatureWithChan(request *ModifySignatureRequest) (<-chan *ModifySignatureResponse, <-chan error) { + responseChan := make(chan *ModifySignatureResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifySignature(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifySignatureWithCallback invokes the cloudapi.ModifySignature API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/modifysignature.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySignatureWithCallback(request *ModifySignatureRequest, callback func(response *ModifySignatureResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifySignatureResponse + var err error + defer close(result) + response, err = client.ModifySignature(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifySignatureRequest is the request struct for api ModifySignature +type ModifySignatureRequest struct { + *requests.RpcRequest + SignatureId string `position:"Query" name:"SignatureId"` + SignatureName string `position:"Query" name:"SignatureName"` + SignatureKey string `position:"Query" name:"SignatureKey"` + SignatureSecret string `position:"Query" name:"SignatureSecret"` +} + +// ModifySignatureResponse is the response struct for api ModifySignature +type ModifySignatureResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SignatureId string `json:"SignatureId" xml:"SignatureId"` + SignatureName string `json:"SignatureName" xml:"SignatureName"` +} + +// CreateModifySignatureRequest creates a request to invoke ModifySignature API +func CreateModifySignatureRequest() (request *ModifySignatureRequest) { + request = &ModifySignatureRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "ModifySignature", "apigateway", "openAPI") + return +} + +// CreateModifySignatureResponse creates a response to parse from ModifySignature response +func CreateModifySignatureResponse() (response *ModifySignatureResponse) { + response = &ModifySignatureResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_traffic_control.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_traffic_control.go new file mode 100644 index 0000000..296d30a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/modify_traffic_control.go @@ -0,0 +1,109 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyTrafficControl invokes the cloudapi.ModifyTrafficControl API synchronously +// api document: https://help.aliyun.com/api/cloudapi/modifytrafficcontrol.html +func (client *Client) ModifyTrafficControl(request *ModifyTrafficControlRequest) (response *ModifyTrafficControlResponse, err error) { + response = CreateModifyTrafficControlResponse() + err = client.DoAction(request, response) + return +} + +// ModifyTrafficControlWithChan invokes the cloudapi.ModifyTrafficControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/modifytrafficcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyTrafficControlWithChan(request *ModifyTrafficControlRequest) (<-chan *ModifyTrafficControlResponse, <-chan error) { + responseChan := make(chan *ModifyTrafficControlResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyTrafficControl(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyTrafficControlWithCallback invokes the cloudapi.ModifyTrafficControl API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/modifytrafficcontrol.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyTrafficControlWithCallback(request *ModifyTrafficControlRequest, callback func(response *ModifyTrafficControlResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyTrafficControlResponse + var err error + defer close(result) + response, err = client.ModifyTrafficControl(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyTrafficControlRequest is the request struct for api ModifyTrafficControl +type ModifyTrafficControlRequest struct { + *requests.RpcRequest + TrafficControlId string `position:"Query" name:"TrafficControlId"` + TrafficControlName string `position:"Query" name:"TrafficControlName"` + TrafficControlUnit string `position:"Query" name:"TrafficControlUnit"` + ApiDefault requests.Integer `position:"Query" name:"ApiDefault"` + UserDefault requests.Integer `position:"Query" name:"UserDefault"` + AppDefault requests.Integer `position:"Query" name:"AppDefault"` + Description string `position:"Query" name:"Description"` +} + +// ModifyTrafficControlResponse is the response struct for api ModifyTrafficControl +type ModifyTrafficControlResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyTrafficControlRequest creates a request to invoke ModifyTrafficControl API +func CreateModifyTrafficControlRequest() (request *ModifyTrafficControlRequest) { + request = &ModifyTrafficControlRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "ModifyTrafficControl", "apigateway", "openAPI") + return +} + +// CreateModifyTrafficControlResponse creates a response to parse from ModifyTrafficControl response +func CreateModifyTrafficControlResponse() (response *ModifyTrafficControlResponse) { + response = &ModifyTrafficControlResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/reactivate_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/reactivate_domain.go new file mode 100644 index 0000000..1fd9a17 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/reactivate_domain.go @@ -0,0 +1,104 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReactivateDomain invokes the cloudapi.ReactivateDomain API synchronously +// api document: https://help.aliyun.com/api/cloudapi/reactivatedomain.html +func (client *Client) ReactivateDomain(request *ReactivateDomainRequest) (response *ReactivateDomainResponse, err error) { + response = CreateReactivateDomainResponse() + err = client.DoAction(request, response) + return +} + +// ReactivateDomainWithChan invokes the cloudapi.ReactivateDomain API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/reactivatedomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReactivateDomainWithChan(request *ReactivateDomainRequest) (<-chan *ReactivateDomainResponse, <-chan error) { + responseChan := make(chan *ReactivateDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReactivateDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReactivateDomainWithCallback invokes the cloudapi.ReactivateDomain API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/reactivatedomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReactivateDomainWithCallback(request *ReactivateDomainRequest, callback func(response *ReactivateDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReactivateDomainResponse + var err error + defer close(result) + response, err = client.ReactivateDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReactivateDomainRequest is the request struct for api ReactivateDomain +type ReactivateDomainRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + DomainName string `position:"Query" name:"DomainName"` +} + +// ReactivateDomainResponse is the response struct for api ReactivateDomain +type ReactivateDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateReactivateDomainRequest creates a request to invoke ReactivateDomain API +func CreateReactivateDomainRequest() (request *ReactivateDomainRequest) { + request = &ReactivateDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "ReactivateDomain", "apigateway", "openAPI") + return +} + +// CreateReactivateDomainResponse creates a response to parse from ReactivateDomain response +func CreateReactivateDomainResponse() (response *ReactivateDomainResponse) { + response = &ReactivateDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_apis_authorities.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_apis_authorities.go new file mode 100644 index 0000000..88bf4ca --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_apis_authorities.go @@ -0,0 +1,107 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveApisAuthorities invokes the cloudapi.RemoveApisAuthorities API synchronously +// api document: https://help.aliyun.com/api/cloudapi/removeapisauthorities.html +func (client *Client) RemoveApisAuthorities(request *RemoveApisAuthoritiesRequest) (response *RemoveApisAuthoritiesResponse, err error) { + response = CreateRemoveApisAuthoritiesResponse() + err = client.DoAction(request, response) + return +} + +// RemoveApisAuthoritiesWithChan invokes the cloudapi.RemoveApisAuthorities API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/removeapisauthorities.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveApisAuthoritiesWithChan(request *RemoveApisAuthoritiesRequest) (<-chan *RemoveApisAuthoritiesResponse, <-chan error) { + responseChan := make(chan *RemoveApisAuthoritiesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveApisAuthorities(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveApisAuthoritiesWithCallback invokes the cloudapi.RemoveApisAuthorities API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/removeapisauthorities.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveApisAuthoritiesWithCallback(request *RemoveApisAuthoritiesRequest, callback func(response *RemoveApisAuthoritiesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveApisAuthoritiesResponse + var err error + defer close(result) + response, err = client.RemoveApisAuthorities(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveApisAuthoritiesRequest is the request struct for api RemoveApisAuthorities +type RemoveApisAuthoritiesRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + AppId requests.Integer `position:"Query" name:"AppId"` + StageName string `position:"Query" name:"StageName"` + ApiIds string `position:"Query" name:"ApiIds"` + Description string `position:"Query" name:"Description"` +} + +// RemoveApisAuthoritiesResponse is the response struct for api RemoveApisAuthorities +type RemoveApisAuthoritiesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveApisAuthoritiesRequest creates a request to invoke RemoveApisAuthorities API +func CreateRemoveApisAuthoritiesRequest() (request *RemoveApisAuthoritiesRequest) { + request = &RemoveApisAuthoritiesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "RemoveApisAuthorities", "apigateway", "openAPI") + return +} + +// CreateRemoveApisAuthoritiesResponse creates a response to parse from RemoveApisAuthorities response +func CreateRemoveApisAuthoritiesResponse() (response *RemoveApisAuthoritiesResponse) { + response = &RemoveApisAuthoritiesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_apps_authorities.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_apps_authorities.go new file mode 100644 index 0000000..0deac53 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_apps_authorities.go @@ -0,0 +1,106 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveAppsAuthorities invokes the cloudapi.RemoveAppsAuthorities API synchronously +// api document: https://help.aliyun.com/api/cloudapi/removeappsauthorities.html +func (client *Client) RemoveAppsAuthorities(request *RemoveAppsAuthoritiesRequest) (response *RemoveAppsAuthoritiesResponse, err error) { + response = CreateRemoveAppsAuthoritiesResponse() + err = client.DoAction(request, response) + return +} + +// RemoveAppsAuthoritiesWithChan invokes the cloudapi.RemoveAppsAuthorities API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/removeappsauthorities.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveAppsAuthoritiesWithChan(request *RemoveAppsAuthoritiesRequest) (<-chan *RemoveAppsAuthoritiesResponse, <-chan error) { + responseChan := make(chan *RemoveAppsAuthoritiesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveAppsAuthorities(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveAppsAuthoritiesWithCallback invokes the cloudapi.RemoveAppsAuthorities API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/removeappsauthorities.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveAppsAuthoritiesWithCallback(request *RemoveAppsAuthoritiesRequest, callback func(response *RemoveAppsAuthoritiesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveAppsAuthoritiesResponse + var err error + defer close(result) + response, err = client.RemoveAppsAuthorities(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveAppsAuthoritiesRequest is the request struct for api RemoveAppsAuthorities +type RemoveAppsAuthoritiesRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + ApiId string `position:"Query" name:"ApiId"` + StageName string `position:"Query" name:"StageName"` + AppIds string `position:"Query" name:"AppIds"` +} + +// RemoveAppsAuthoritiesResponse is the response struct for api RemoveAppsAuthorities +type RemoveAppsAuthoritiesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveAppsAuthoritiesRequest creates a request to invoke RemoveAppsAuthorities API +func CreateRemoveAppsAuthoritiesRequest() (request *RemoveAppsAuthoritiesRequest) { + request = &RemoveAppsAuthoritiesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "RemoveAppsAuthorities", "apigateway", "openAPI") + return +} + +// CreateRemoveAppsAuthoritiesResponse creates a response to parse from RemoveAppsAuthorities response +func CreateRemoveAppsAuthoritiesResponse() (response *RemoveAppsAuthoritiesResponse) { + response = &RemoveAppsAuthoritiesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_catalog_relation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_catalog_relation.go new file mode 100644 index 0000000..718d59d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_catalog_relation.go @@ -0,0 +1,104 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveCatalogRelation invokes the cloudapi.RemoveCatalogRelation API synchronously +// api document: https://help.aliyun.com/api/cloudapi/removecatalogrelation.html +func (client *Client) RemoveCatalogRelation(request *RemoveCatalogRelationRequest) (response *RemoveCatalogRelationResponse, err error) { + response = CreateRemoveCatalogRelationResponse() + err = client.DoAction(request, response) + return +} + +// RemoveCatalogRelationWithChan invokes the cloudapi.RemoveCatalogRelation API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/removecatalogrelation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveCatalogRelationWithChan(request *RemoveCatalogRelationRequest) (<-chan *RemoveCatalogRelationResponse, <-chan error) { + responseChan := make(chan *RemoveCatalogRelationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveCatalogRelation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveCatalogRelationWithCallback invokes the cloudapi.RemoveCatalogRelation API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/removecatalogrelation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveCatalogRelationWithCallback(request *RemoveCatalogRelationRequest, callback func(response *RemoveCatalogRelationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveCatalogRelationResponse + var err error + defer close(result) + response, err = client.RemoveCatalogRelation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveCatalogRelationRequest is the request struct for api RemoveCatalogRelation +type RemoveCatalogRelationRequest struct { + *requests.RpcRequest + CatalogId string `position:"Query" name:"CatalogId"` + ApiId string `position:"Query" name:"ApiId"` +} + +// RemoveCatalogRelationResponse is the response struct for api RemoveCatalogRelation +type RemoveCatalogRelationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveCatalogRelationRequest creates a request to invoke RemoveCatalogRelation API +func CreateRemoveCatalogRelationRequest() (request *RemoveCatalogRelationRequest) { + request = &RemoveCatalogRelationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "RemoveCatalogRelation", "apigateway", "openAPI") + return +} + +// CreateRemoveCatalogRelationResponse creates a response to parse from RemoveCatalogRelation response +func CreateRemoveCatalogRelationResponse() (response *RemoveCatalogRelationResponse) { + response = &RemoveCatalogRelationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_catalog_relations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_catalog_relations.go new file mode 100644 index 0000000..9723f3e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_catalog_relations.go @@ -0,0 +1,103 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveCatalogRelations invokes the cloudapi.RemoveCatalogRelations API synchronously +// api document: https://help.aliyun.com/api/cloudapi/removecatalogrelations.html +func (client *Client) RemoveCatalogRelations(request *RemoveCatalogRelationsRequest) (response *RemoveCatalogRelationsResponse, err error) { + response = CreateRemoveCatalogRelationsResponse() + err = client.DoAction(request, response) + return +} + +// RemoveCatalogRelationsWithChan invokes the cloudapi.RemoveCatalogRelations API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/removecatalogrelations.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveCatalogRelationsWithChan(request *RemoveCatalogRelationsRequest) (<-chan *RemoveCatalogRelationsResponse, <-chan error) { + responseChan := make(chan *RemoveCatalogRelationsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveCatalogRelations(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveCatalogRelationsWithCallback invokes the cloudapi.RemoveCatalogRelations API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/removecatalogrelations.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveCatalogRelationsWithCallback(request *RemoveCatalogRelationsRequest, callback func(response *RemoveCatalogRelationsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveCatalogRelationsResponse + var err error + defer close(result) + response, err = client.RemoveCatalogRelations(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveCatalogRelationsRequest is the request struct for api RemoveCatalogRelations +type RemoveCatalogRelationsRequest struct { + *requests.RpcRequest + CatalogId string `position:"Query" name:"CatalogId"` +} + +// RemoveCatalogRelationsResponse is the response struct for api RemoveCatalogRelations +type RemoveCatalogRelationsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveCatalogRelationsRequest creates a request to invoke RemoveCatalogRelations API +func CreateRemoveCatalogRelationsRequest() (request *RemoveCatalogRelationsRequest) { + request = &RemoveCatalogRelationsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "RemoveCatalogRelations", "apigateway", "openAPI") + return +} + +// CreateRemoveCatalogRelationsResponse creates a response to parse from RemoveCatalogRelations response +func CreateRemoveCatalogRelationsResponse() (response *RemoveCatalogRelationsResponse) { + response = &RemoveCatalogRelationsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_ip_control_apis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_ip_control_apis.go new file mode 100644 index 0000000..183cb66 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_ip_control_apis.go @@ -0,0 +1,106 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveIpControlApis invokes the cloudapi.RemoveIpControlApis API synchronously +// api document: https://help.aliyun.com/api/cloudapi/removeipcontrolapis.html +func (client *Client) RemoveIpControlApis(request *RemoveIpControlApisRequest) (response *RemoveIpControlApisResponse, err error) { + response = CreateRemoveIpControlApisResponse() + err = client.DoAction(request, response) + return +} + +// RemoveIpControlApisWithChan invokes the cloudapi.RemoveIpControlApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/removeipcontrolapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveIpControlApisWithChan(request *RemoveIpControlApisRequest) (<-chan *RemoveIpControlApisResponse, <-chan error) { + responseChan := make(chan *RemoveIpControlApisResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveIpControlApis(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveIpControlApisWithCallback invokes the cloudapi.RemoveIpControlApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/removeipcontrolapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveIpControlApisWithCallback(request *RemoveIpControlApisRequest, callback func(response *RemoveIpControlApisResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveIpControlApisResponse + var err error + defer close(result) + response, err = client.RemoveIpControlApis(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveIpControlApisRequest is the request struct for api RemoveIpControlApis +type RemoveIpControlApisRequest struct { + *requests.RpcRequest + IpControlId string `position:"Query" name:"IpControlId"` + GroupId string `position:"Query" name:"GroupId"` + ApiIds string `position:"Query" name:"ApiIds"` + StageName string `position:"Query" name:"StageName"` +} + +// RemoveIpControlApisResponse is the response struct for api RemoveIpControlApis +type RemoveIpControlApisResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveIpControlApisRequest creates a request to invoke RemoveIpControlApis API +func CreateRemoveIpControlApisRequest() (request *RemoveIpControlApisRequest) { + request = &RemoveIpControlApisRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "RemoveIpControlApis", "apigateway", "openAPI") + return +} + +// CreateRemoveIpControlApisResponse creates a response to parse from RemoveIpControlApis response +func CreateRemoveIpControlApisResponse() (response *RemoveIpControlApisResponse) { + response = &RemoveIpControlApisResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_ip_control_policy_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_ip_control_policy_item.go new file mode 100644 index 0000000..0b90f91 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_ip_control_policy_item.go @@ -0,0 +1,104 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveIpControlPolicyItem invokes the cloudapi.RemoveIpControlPolicyItem API synchronously +// api document: https://help.aliyun.com/api/cloudapi/removeipcontrolpolicyitem.html +func (client *Client) RemoveIpControlPolicyItem(request *RemoveIpControlPolicyItemRequest) (response *RemoveIpControlPolicyItemResponse, err error) { + response = CreateRemoveIpControlPolicyItemResponse() + err = client.DoAction(request, response) + return +} + +// RemoveIpControlPolicyItemWithChan invokes the cloudapi.RemoveIpControlPolicyItem API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/removeipcontrolpolicyitem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveIpControlPolicyItemWithChan(request *RemoveIpControlPolicyItemRequest) (<-chan *RemoveIpControlPolicyItemResponse, <-chan error) { + responseChan := make(chan *RemoveIpControlPolicyItemResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveIpControlPolicyItem(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveIpControlPolicyItemWithCallback invokes the cloudapi.RemoveIpControlPolicyItem API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/removeipcontrolpolicyitem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveIpControlPolicyItemWithCallback(request *RemoveIpControlPolicyItemRequest, callback func(response *RemoveIpControlPolicyItemResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveIpControlPolicyItemResponse + var err error + defer close(result) + response, err = client.RemoveIpControlPolicyItem(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveIpControlPolicyItemRequest is the request struct for api RemoveIpControlPolicyItem +type RemoveIpControlPolicyItemRequest struct { + *requests.RpcRequest + IpControlId string `position:"Query" name:"IpControlId"` + PolicyItemIds string `position:"Query" name:"PolicyItemIds"` +} + +// RemoveIpControlPolicyItemResponse is the response struct for api RemoveIpControlPolicyItem +type RemoveIpControlPolicyItemResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveIpControlPolicyItemRequest creates a request to invoke RemoveIpControlPolicyItem API +func CreateRemoveIpControlPolicyItemRequest() (request *RemoveIpControlPolicyItemRequest) { + request = &RemoveIpControlPolicyItemRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "RemoveIpControlPolicyItem", "apigateway", "openAPI") + return +} + +// CreateRemoveIpControlPolicyItemResponse creates a response to parse from RemoveIpControlPolicyItem response +func CreateRemoveIpControlPolicyItemResponse() (response *RemoveIpControlPolicyItemResponse) { + response = &RemoveIpControlPolicyItemResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_signature_apis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_signature_apis.go new file mode 100644 index 0000000..c2e9b68 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_signature_apis.go @@ -0,0 +1,106 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveSignatureApis invokes the cloudapi.RemoveSignatureApis API synchronously +// api document: https://help.aliyun.com/api/cloudapi/removesignatureapis.html +func (client *Client) RemoveSignatureApis(request *RemoveSignatureApisRequest) (response *RemoveSignatureApisResponse, err error) { + response = CreateRemoveSignatureApisResponse() + err = client.DoAction(request, response) + return +} + +// RemoveSignatureApisWithChan invokes the cloudapi.RemoveSignatureApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/removesignatureapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveSignatureApisWithChan(request *RemoveSignatureApisRequest) (<-chan *RemoveSignatureApisResponse, <-chan error) { + responseChan := make(chan *RemoveSignatureApisResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveSignatureApis(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveSignatureApisWithCallback invokes the cloudapi.RemoveSignatureApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/removesignatureapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveSignatureApisWithCallback(request *RemoveSignatureApisRequest, callback func(response *RemoveSignatureApisResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveSignatureApisResponse + var err error + defer close(result) + response, err = client.RemoveSignatureApis(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveSignatureApisRequest is the request struct for api RemoveSignatureApis +type RemoveSignatureApisRequest struct { + *requests.RpcRequest + SignatureId string `position:"Query" name:"SignatureId"` + GroupId string `position:"Query" name:"GroupId"` + ApiIds string `position:"Query" name:"ApiIds"` + StageName string `position:"Query" name:"StageName"` +} + +// RemoveSignatureApisResponse is the response struct for api RemoveSignatureApis +type RemoveSignatureApisResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveSignatureApisRequest creates a request to invoke RemoveSignatureApis API +func CreateRemoveSignatureApisRequest() (request *RemoveSignatureApisRequest) { + request = &RemoveSignatureApisRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "RemoveSignatureApis", "apigateway", "openAPI") + return +} + +// CreateRemoveSignatureApisResponse creates a response to parse from RemoveSignatureApis response +func CreateRemoveSignatureApisResponse() (response *RemoveSignatureApisResponse) { + response = &RemoveSignatureApisResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_traffic_control_apis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_traffic_control_apis.go new file mode 100644 index 0000000..5770ba1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_traffic_control_apis.go @@ -0,0 +1,106 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveTrafficControlApis invokes the cloudapi.RemoveTrafficControlApis API synchronously +// api document: https://help.aliyun.com/api/cloudapi/removetrafficcontrolapis.html +func (client *Client) RemoveTrafficControlApis(request *RemoveTrafficControlApisRequest) (response *RemoveTrafficControlApisResponse, err error) { + response = CreateRemoveTrafficControlApisResponse() + err = client.DoAction(request, response) + return +} + +// RemoveTrafficControlApisWithChan invokes the cloudapi.RemoveTrafficControlApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/removetrafficcontrolapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveTrafficControlApisWithChan(request *RemoveTrafficControlApisRequest) (<-chan *RemoveTrafficControlApisResponse, <-chan error) { + responseChan := make(chan *RemoveTrafficControlApisResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveTrafficControlApis(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveTrafficControlApisWithCallback invokes the cloudapi.RemoveTrafficControlApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/removetrafficcontrolapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveTrafficControlApisWithCallback(request *RemoveTrafficControlApisRequest, callback func(response *RemoveTrafficControlApisResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveTrafficControlApisResponse + var err error + defer close(result) + response, err = client.RemoveTrafficControlApis(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveTrafficControlApisRequest is the request struct for api RemoveTrafficControlApis +type RemoveTrafficControlApisRequest struct { + *requests.RpcRequest + TrafficControlId string `position:"Query" name:"TrafficControlId"` + GroupId string `position:"Query" name:"GroupId"` + ApiIds string `position:"Query" name:"ApiIds"` + StageName string `position:"Query" name:"StageName"` +} + +// RemoveTrafficControlApisResponse is the response struct for api RemoveTrafficControlApis +type RemoveTrafficControlApisResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveTrafficControlApisRequest creates a request to invoke RemoveTrafficControlApis API +func CreateRemoveTrafficControlApisRequest() (request *RemoveTrafficControlApisRequest) { + request = &RemoveTrafficControlApisRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "RemoveTrafficControlApis", "apigateway", "openAPI") + return +} + +// CreateRemoveTrafficControlApisResponse creates a response to parse from RemoveTrafficControlApis response +func CreateRemoveTrafficControlApisResponse() (response *RemoveTrafficControlApisResponse) { + response = &RemoveTrafficControlApisResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_vpc_access.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_vpc_access.go new file mode 100644 index 0000000..cf7ec82 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/remove_vpc_access.go @@ -0,0 +1,105 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveVpcAccess invokes the cloudapi.RemoveVpcAccess API synchronously +// api document: https://help.aliyun.com/api/cloudapi/removevpcaccess.html +func (client *Client) RemoveVpcAccess(request *RemoveVpcAccessRequest) (response *RemoveVpcAccessResponse, err error) { + response = CreateRemoveVpcAccessResponse() + err = client.DoAction(request, response) + return +} + +// RemoveVpcAccessWithChan invokes the cloudapi.RemoveVpcAccess API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/removevpcaccess.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveVpcAccessWithChan(request *RemoveVpcAccessRequest) (<-chan *RemoveVpcAccessResponse, <-chan error) { + responseChan := make(chan *RemoveVpcAccessResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveVpcAccess(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveVpcAccessWithCallback invokes the cloudapi.RemoveVpcAccess API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/removevpcaccess.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveVpcAccessWithCallback(request *RemoveVpcAccessRequest, callback func(response *RemoveVpcAccessResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveVpcAccessResponse + var err error + defer close(result) + response, err = client.RemoveVpcAccess(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveVpcAccessRequest is the request struct for api RemoveVpcAccess +type RemoveVpcAccessRequest struct { + *requests.RpcRequest + VpcId string `position:"Query" name:"VpcId"` + InstanceId string `position:"Query" name:"InstanceId"` + Port requests.Integer `position:"Query" name:"Port"` +} + +// RemoveVpcAccessResponse is the response struct for api RemoveVpcAccess +type RemoveVpcAccessResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveVpcAccessRequest creates a request to invoke RemoveVpcAccess API +func CreateRemoveVpcAccessRequest() (request *RemoveVpcAccessRequest) { + request = &RemoveVpcAccessRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "RemoveVpcAccess", "apigateway", "openAPI") + return +} + +// CreateRemoveVpcAccessResponse creates a response to parse from RemoveVpcAccess response +func CreateRemoveVpcAccessResponse() (response *RemoveVpcAccessResponse) { + response = &RemoveVpcAccessResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/reset_app_secret.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/reset_app_secret.go new file mode 100644 index 0000000..4fb2409 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/reset_app_secret.go @@ -0,0 +1,103 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ResetAppSecret invokes the cloudapi.ResetAppSecret API synchronously +// api document: https://help.aliyun.com/api/cloudapi/resetappsecret.html +func (client *Client) ResetAppSecret(request *ResetAppSecretRequest) (response *ResetAppSecretResponse, err error) { + response = CreateResetAppSecretResponse() + err = client.DoAction(request, response) + return +} + +// ResetAppSecretWithChan invokes the cloudapi.ResetAppSecret API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/resetappsecret.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResetAppSecretWithChan(request *ResetAppSecretRequest) (<-chan *ResetAppSecretResponse, <-chan error) { + responseChan := make(chan *ResetAppSecretResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ResetAppSecret(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ResetAppSecretWithCallback invokes the cloudapi.ResetAppSecret API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/resetappsecret.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResetAppSecretWithCallback(request *ResetAppSecretRequest, callback func(response *ResetAppSecretResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ResetAppSecretResponse + var err error + defer close(result) + response, err = client.ResetAppSecret(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ResetAppSecretRequest is the request struct for api ResetAppSecret +type ResetAppSecretRequest struct { + *requests.RpcRequest + AppKey string `position:"Query" name:"AppKey"` +} + +// ResetAppSecretResponse is the response struct for api ResetAppSecret +type ResetAppSecretResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateResetAppSecretRequest creates a request to invoke ResetAppSecret API +func CreateResetAppSecretRequest() (request *ResetAppSecretRequest) { + request = &ResetAppSecretRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "ResetAppSecret", "apigateway", "openAPI") + return +} + +// CreateResetAppSecretResponse creates a response to parse from ResetAppSecret response +func CreateResetAppSecretResponse() (response *ResetAppSecretResponse) { + response = &ResetAppSecretResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/sdk_generate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/sdk_generate.go new file mode 100644 index 0000000..5261424 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/sdk_generate.go @@ -0,0 +1,106 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SdkGenerate invokes the cloudapi.SdkGenerate API synchronously +// api document: https://help.aliyun.com/api/cloudapi/sdkgenerate.html +func (client *Client) SdkGenerate(request *SdkGenerateRequest) (response *SdkGenerateResponse, err error) { + response = CreateSdkGenerateResponse() + err = client.DoAction(request, response) + return +} + +// SdkGenerateWithChan invokes the cloudapi.SdkGenerate API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/sdkgenerate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SdkGenerateWithChan(request *SdkGenerateRequest) (<-chan *SdkGenerateResponse, <-chan error) { + responseChan := make(chan *SdkGenerateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SdkGenerate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SdkGenerateWithCallback invokes the cloudapi.SdkGenerate API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/sdkgenerate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SdkGenerateWithCallback(request *SdkGenerateRequest, callback func(response *SdkGenerateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SdkGenerateResponse + var err error + defer close(result) + response, err = client.SdkGenerate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SdkGenerateRequest is the request struct for api SdkGenerate +type SdkGenerateRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + AppId requests.Integer `position:"Query" name:"AppId"` + Language string `position:"Query" name:"Language"` +} + +// SdkGenerateResponse is the response struct for api SdkGenerate +type SdkGenerateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DownloadLink string `json:"DownloadLink" xml:"DownloadLink"` +} + +// CreateSdkGenerateRequest creates a request to invoke SdkGenerate API +func CreateSdkGenerateRequest() (request *SdkGenerateRequest) { + request = &SdkGenerateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "SdkGenerate", "apigateway", "openAPI") + return +} + +// CreateSdkGenerateResponse creates a response to parse from SdkGenerate response +func CreateSdkGenerateResponse() (response *SdkGenerateResponse) { + response = &SdkGenerateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/sdk_generate_by_app.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/sdk_generate_by_app.go new file mode 100644 index 0000000..8016ab6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/sdk_generate_by_app.go @@ -0,0 +1,105 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SdkGenerateByApp invokes the cloudapi.SdkGenerateByApp API synchronously +// api document: https://help.aliyun.com/api/cloudapi/sdkgeneratebyapp.html +func (client *Client) SdkGenerateByApp(request *SdkGenerateByAppRequest) (response *SdkGenerateByAppResponse, err error) { + response = CreateSdkGenerateByAppResponse() + err = client.DoAction(request, response) + return +} + +// SdkGenerateByAppWithChan invokes the cloudapi.SdkGenerateByApp API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/sdkgeneratebyapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SdkGenerateByAppWithChan(request *SdkGenerateByAppRequest) (<-chan *SdkGenerateByAppResponse, <-chan error) { + responseChan := make(chan *SdkGenerateByAppResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SdkGenerateByApp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SdkGenerateByAppWithCallback invokes the cloudapi.SdkGenerateByApp API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/sdkgeneratebyapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SdkGenerateByAppWithCallback(request *SdkGenerateByAppRequest, callback func(response *SdkGenerateByAppResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SdkGenerateByAppResponse + var err error + defer close(result) + response, err = client.SdkGenerateByApp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SdkGenerateByAppRequest is the request struct for api SdkGenerateByApp +type SdkGenerateByAppRequest struct { + *requests.RpcRequest + AppId requests.Integer `position:"Query" name:"AppId"` + Language string `position:"Query" name:"Language"` +} + +// SdkGenerateByAppResponse is the response struct for api SdkGenerateByApp +type SdkGenerateByAppResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DownloadLink string `json:"DownloadLink" xml:"DownloadLink"` +} + +// CreateSdkGenerateByAppRequest creates a request to invoke SdkGenerateByApp API +func CreateSdkGenerateByAppRequest() (request *SdkGenerateByAppRequest) { + request = &SdkGenerateByAppRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "SdkGenerateByApp", "apigateway", "openAPI") + return +} + +// CreateSdkGenerateByAppResponse creates a response to parse from SdkGenerateByApp response +func CreateSdkGenerateByAppResponse() (response *SdkGenerateByAppResponse) { + response = &SdkGenerateByAppResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/sdk_generate_by_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/sdk_generate_by_group.go new file mode 100644 index 0000000..70253ac --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/sdk_generate_by_group.go @@ -0,0 +1,105 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SdkGenerateByGroup invokes the cloudapi.SdkGenerateByGroup API synchronously +// api document: https://help.aliyun.com/api/cloudapi/sdkgeneratebygroup.html +func (client *Client) SdkGenerateByGroup(request *SdkGenerateByGroupRequest) (response *SdkGenerateByGroupResponse, err error) { + response = CreateSdkGenerateByGroupResponse() + err = client.DoAction(request, response) + return +} + +// SdkGenerateByGroupWithChan invokes the cloudapi.SdkGenerateByGroup API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/sdkgeneratebygroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SdkGenerateByGroupWithChan(request *SdkGenerateByGroupRequest) (<-chan *SdkGenerateByGroupResponse, <-chan error) { + responseChan := make(chan *SdkGenerateByGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SdkGenerateByGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SdkGenerateByGroupWithCallback invokes the cloudapi.SdkGenerateByGroup API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/sdkgeneratebygroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SdkGenerateByGroupWithCallback(request *SdkGenerateByGroupRequest, callback func(response *SdkGenerateByGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SdkGenerateByGroupResponse + var err error + defer close(result) + response, err = client.SdkGenerateByGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SdkGenerateByGroupRequest is the request struct for api SdkGenerateByGroup +type SdkGenerateByGroupRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + Language string `position:"Query" name:"Language"` +} + +// SdkGenerateByGroupResponse is the response struct for api SdkGenerateByGroup +type SdkGenerateByGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DownloadLink string `json:"DownloadLink" xml:"DownloadLink"` +} + +// CreateSdkGenerateByGroupRequest creates a request to invoke SdkGenerateByGroup API +func CreateSdkGenerateByGroupRequest() (request *SdkGenerateByGroupRequest) { + request = &SdkGenerateByGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "SdkGenerateByGroup", "apigateway", "openAPI") + return +} + +// CreateSdkGenerateByGroupResponse creates a response to parse from SdkGenerateByGroup response +func CreateSdkGenerateByGroupResponse() (response *SdkGenerateByGroupResponse) { + response = &SdkGenerateByGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_apis_authorities.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_apis_authorities.go new file mode 100644 index 0000000..6b6c509 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_apis_authorities.go @@ -0,0 +1,107 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetApisAuthorities invokes the cloudapi.SetApisAuthorities API synchronously +// api document: https://help.aliyun.com/api/cloudapi/setapisauthorities.html +func (client *Client) SetApisAuthorities(request *SetApisAuthoritiesRequest) (response *SetApisAuthoritiesResponse, err error) { + response = CreateSetApisAuthoritiesResponse() + err = client.DoAction(request, response) + return +} + +// SetApisAuthoritiesWithChan invokes the cloudapi.SetApisAuthorities API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/setapisauthorities.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetApisAuthoritiesWithChan(request *SetApisAuthoritiesRequest) (<-chan *SetApisAuthoritiesResponse, <-chan error) { + responseChan := make(chan *SetApisAuthoritiesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetApisAuthorities(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetApisAuthoritiesWithCallback invokes the cloudapi.SetApisAuthorities API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/setapisauthorities.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetApisAuthoritiesWithCallback(request *SetApisAuthoritiesRequest, callback func(response *SetApisAuthoritiesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetApisAuthoritiesResponse + var err error + defer close(result) + response, err = client.SetApisAuthorities(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetApisAuthoritiesRequest is the request struct for api SetApisAuthorities +type SetApisAuthoritiesRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + AppId requests.Integer `position:"Query" name:"AppId"` + StageName string `position:"Query" name:"StageName"` + ApiIds string `position:"Query" name:"ApiIds"` + Description string `position:"Query" name:"Description"` +} + +// SetApisAuthoritiesResponse is the response struct for api SetApisAuthorities +type SetApisAuthoritiesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetApisAuthoritiesRequest creates a request to invoke SetApisAuthorities API +func CreateSetApisAuthoritiesRequest() (request *SetApisAuthoritiesRequest) { + request = &SetApisAuthoritiesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "SetApisAuthorities", "apigateway", "openAPI") + return +} + +// CreateSetApisAuthoritiesResponse creates a response to parse from SetApisAuthorities response +func CreateSetApisAuthoritiesResponse() (response *SetApisAuthoritiesResponse) { + response = &SetApisAuthoritiesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_apps_authorities.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_apps_authorities.go new file mode 100644 index 0000000..f6cc4be --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_apps_authorities.go @@ -0,0 +1,107 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetAppsAuthorities invokes the cloudapi.SetAppsAuthorities API synchronously +// api document: https://help.aliyun.com/api/cloudapi/setappsauthorities.html +func (client *Client) SetAppsAuthorities(request *SetAppsAuthoritiesRequest) (response *SetAppsAuthoritiesResponse, err error) { + response = CreateSetAppsAuthoritiesResponse() + err = client.DoAction(request, response) + return +} + +// SetAppsAuthoritiesWithChan invokes the cloudapi.SetAppsAuthorities API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/setappsauthorities.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetAppsAuthoritiesWithChan(request *SetAppsAuthoritiesRequest) (<-chan *SetAppsAuthoritiesResponse, <-chan error) { + responseChan := make(chan *SetAppsAuthoritiesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetAppsAuthorities(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetAppsAuthoritiesWithCallback invokes the cloudapi.SetAppsAuthorities API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/setappsauthorities.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetAppsAuthoritiesWithCallback(request *SetAppsAuthoritiesRequest, callback func(response *SetAppsAuthoritiesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetAppsAuthoritiesResponse + var err error + defer close(result) + response, err = client.SetAppsAuthorities(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetAppsAuthoritiesRequest is the request struct for api SetAppsAuthorities +type SetAppsAuthoritiesRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + ApiId string `position:"Query" name:"ApiId"` + StageName string `position:"Query" name:"StageName"` + AppIds string `position:"Query" name:"AppIds"` + Description string `position:"Query" name:"Description"` +} + +// SetAppsAuthoritiesResponse is the response struct for api SetAppsAuthorities +type SetAppsAuthoritiesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetAppsAuthoritiesRequest creates a request to invoke SetAppsAuthorities API +func CreateSetAppsAuthoritiesRequest() (request *SetAppsAuthoritiesRequest) { + request = &SetAppsAuthoritiesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "SetAppsAuthorities", "apigateway", "openAPI") + return +} + +// CreateSetAppsAuthoritiesResponse creates a response to parse from SetAppsAuthorities response +func CreateSetAppsAuthoritiesResponse() (response *SetAppsAuthoritiesResponse) { + response = &SetAppsAuthoritiesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_domain.go new file mode 100644 index 0000000..f8a00ba --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_domain.go @@ -0,0 +1,114 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetDomain invokes the cloudapi.SetDomain API synchronously +// api document: https://help.aliyun.com/api/cloudapi/setdomain.html +func (client *Client) SetDomain(request *SetDomainRequest) (response *SetDomainResponse, err error) { + response = CreateSetDomainResponse() + err = client.DoAction(request, response) + return +} + +// SetDomainWithChan invokes the cloudapi.SetDomain API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/setdomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetDomainWithChan(request *SetDomainRequest) (<-chan *SetDomainResponse, <-chan error) { + responseChan := make(chan *SetDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetDomainWithCallback invokes the cloudapi.SetDomain API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/setdomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetDomainWithCallback(request *SetDomainRequest, callback func(response *SetDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetDomainResponse + var err error + defer close(result) + response, err = client.SetDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetDomainRequest is the request struct for api SetDomain +type SetDomainRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + DomainName string `position:"Query" name:"DomainName"` + CertificateName string `position:"Query" name:"CertificateName"` + CertificateBody string `position:"Query" name:"CertificateBody"` + CertificatePrivateKey string `position:"Query" name:"CertificatePrivateKey"` +} + +// SetDomainResponse is the response struct for api SetDomain +type SetDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + GroupId string `json:"GroupId" xml:"GroupId"` + DomainName string `json:"DomainName" xml:"DomainName"` + SubDomain string `json:"SubDomain" xml:"SubDomain"` + DomainBindingStatus string `json:"DomainBindingStatus" xml:"DomainBindingStatus"` + DomainLegalStatus string `json:"DomainLegalStatus" xml:"DomainLegalStatus"` + DomainWebSocketStatus string `json:"DomainWebSocketStatus" xml:"DomainWebSocketStatus"` + DomainRemark string `json:"DomainRemark" xml:"DomainRemark"` +} + +// CreateSetDomainRequest creates a request to invoke SetDomain API +func CreateSetDomainRequest() (request *SetDomainRequest) { + request = &SetDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "SetDomain", "apigateway", "openAPI") + return +} + +// CreateSetDomainResponse creates a response to parse from SetDomain response +func CreateSetDomainResponse() (response *SetDomainResponse) { + response = &SetDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_domain_certificate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_domain_certificate.go new file mode 100644 index 0000000..d44f6db --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_domain_certificate.go @@ -0,0 +1,107 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetDomainCertificate invokes the cloudapi.SetDomainCertificate API synchronously +// api document: https://help.aliyun.com/api/cloudapi/setdomaincertificate.html +func (client *Client) SetDomainCertificate(request *SetDomainCertificateRequest) (response *SetDomainCertificateResponse, err error) { + response = CreateSetDomainCertificateResponse() + err = client.DoAction(request, response) + return +} + +// SetDomainCertificateWithChan invokes the cloudapi.SetDomainCertificate API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/setdomaincertificate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetDomainCertificateWithChan(request *SetDomainCertificateRequest) (<-chan *SetDomainCertificateResponse, <-chan error) { + responseChan := make(chan *SetDomainCertificateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetDomainCertificate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetDomainCertificateWithCallback invokes the cloudapi.SetDomainCertificate API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/setdomaincertificate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetDomainCertificateWithCallback(request *SetDomainCertificateRequest, callback func(response *SetDomainCertificateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetDomainCertificateResponse + var err error + defer close(result) + response, err = client.SetDomainCertificate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetDomainCertificateRequest is the request struct for api SetDomainCertificate +type SetDomainCertificateRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + DomainName string `position:"Query" name:"DomainName"` + CertificateName string `position:"Query" name:"CertificateName"` + CertificateBody string `position:"Query" name:"CertificateBody"` + CertificatePrivateKey string `position:"Query" name:"CertificatePrivateKey"` +} + +// SetDomainCertificateResponse is the response struct for api SetDomainCertificate +type SetDomainCertificateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetDomainCertificateRequest creates a request to invoke SetDomainCertificate API +func CreateSetDomainCertificateRequest() (request *SetDomainCertificateRequest) { + request = &SetDomainCertificateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "SetDomainCertificate", "apigateway", "openAPI") + return +} + +// CreateSetDomainCertificateResponse creates a response to parse from SetDomainCertificate response +func CreateSetDomainCertificateResponse() (response *SetDomainCertificateResponse) { + response = &SetDomainCertificateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_domain_web_socket_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_domain_web_socket_status.go new file mode 100644 index 0000000..ac9f97c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_domain_web_socket_status.go @@ -0,0 +1,105 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetDomainWebSocketStatus invokes the cloudapi.SetDomainWebSocketStatus API synchronously +// api document: https://help.aliyun.com/api/cloudapi/setdomainwebsocketstatus.html +func (client *Client) SetDomainWebSocketStatus(request *SetDomainWebSocketStatusRequest) (response *SetDomainWebSocketStatusResponse, err error) { + response = CreateSetDomainWebSocketStatusResponse() + err = client.DoAction(request, response) + return +} + +// SetDomainWebSocketStatusWithChan invokes the cloudapi.SetDomainWebSocketStatus API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/setdomainwebsocketstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetDomainWebSocketStatusWithChan(request *SetDomainWebSocketStatusRequest) (<-chan *SetDomainWebSocketStatusResponse, <-chan error) { + responseChan := make(chan *SetDomainWebSocketStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetDomainWebSocketStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetDomainWebSocketStatusWithCallback invokes the cloudapi.SetDomainWebSocketStatus API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/setdomainwebsocketstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetDomainWebSocketStatusWithCallback(request *SetDomainWebSocketStatusRequest, callback func(response *SetDomainWebSocketStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetDomainWebSocketStatusResponse + var err error + defer close(result) + response, err = client.SetDomainWebSocketStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetDomainWebSocketStatusRequest is the request struct for api SetDomainWebSocketStatus +type SetDomainWebSocketStatusRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + DomainName string `position:"Query" name:"DomainName"` + ActionValue string `position:"Query" name:"ActionValue"` +} + +// SetDomainWebSocketStatusResponse is the response struct for api SetDomainWebSocketStatus +type SetDomainWebSocketStatusResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetDomainWebSocketStatusRequest creates a request to invoke SetDomainWebSocketStatus API +func CreateSetDomainWebSocketStatusRequest() (request *SetDomainWebSocketStatusRequest) { + request = &SetDomainWebSocketStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "SetDomainWebSocketStatus", "apigateway", "openAPI") + return +} + +// CreateSetDomainWebSocketStatusResponse creates a response to parse from SetDomainWebSocketStatus response +func CreateSetDomainWebSocketStatusResponse() (response *SetDomainWebSocketStatusResponse) { + response = &SetDomainWebSocketStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_ip_control_apis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_ip_control_apis.go new file mode 100644 index 0000000..3d7766c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_ip_control_apis.go @@ -0,0 +1,106 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetIpControlApis invokes the cloudapi.SetIpControlApis API synchronously +// api document: https://help.aliyun.com/api/cloudapi/setipcontrolapis.html +func (client *Client) SetIpControlApis(request *SetIpControlApisRequest) (response *SetIpControlApisResponse, err error) { + response = CreateSetIpControlApisResponse() + err = client.DoAction(request, response) + return +} + +// SetIpControlApisWithChan invokes the cloudapi.SetIpControlApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/setipcontrolapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetIpControlApisWithChan(request *SetIpControlApisRequest) (<-chan *SetIpControlApisResponse, <-chan error) { + responseChan := make(chan *SetIpControlApisResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetIpControlApis(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetIpControlApisWithCallback invokes the cloudapi.SetIpControlApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/setipcontrolapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetIpControlApisWithCallback(request *SetIpControlApisRequest, callback func(response *SetIpControlApisResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetIpControlApisResponse + var err error + defer close(result) + response, err = client.SetIpControlApis(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetIpControlApisRequest is the request struct for api SetIpControlApis +type SetIpControlApisRequest struct { + *requests.RpcRequest + IpControlId string `position:"Query" name:"IpControlId"` + GroupId string `position:"Query" name:"GroupId"` + ApiIds string `position:"Query" name:"ApiIds"` + StageName string `position:"Query" name:"StageName"` +} + +// SetIpControlApisResponse is the response struct for api SetIpControlApis +type SetIpControlApisResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetIpControlApisRequest creates a request to invoke SetIpControlApis API +func CreateSetIpControlApisRequest() (request *SetIpControlApisRequest) { + request = &SetIpControlApisRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "SetIpControlApis", "apigateway", "openAPI") + return +} + +// CreateSetIpControlApisResponse creates a response to parse from SetIpControlApis response +func CreateSetIpControlApisResponse() (response *SetIpControlApisResponse) { + response = &SetIpControlApisResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_signature_apis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_signature_apis.go new file mode 100644 index 0000000..d8ce32e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_signature_apis.go @@ -0,0 +1,106 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetSignatureApis invokes the cloudapi.SetSignatureApis API synchronously +// api document: https://help.aliyun.com/api/cloudapi/setsignatureapis.html +func (client *Client) SetSignatureApis(request *SetSignatureApisRequest) (response *SetSignatureApisResponse, err error) { + response = CreateSetSignatureApisResponse() + err = client.DoAction(request, response) + return +} + +// SetSignatureApisWithChan invokes the cloudapi.SetSignatureApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/setsignatureapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetSignatureApisWithChan(request *SetSignatureApisRequest) (<-chan *SetSignatureApisResponse, <-chan error) { + responseChan := make(chan *SetSignatureApisResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetSignatureApis(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetSignatureApisWithCallback invokes the cloudapi.SetSignatureApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/setsignatureapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetSignatureApisWithCallback(request *SetSignatureApisRequest, callback func(response *SetSignatureApisResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetSignatureApisResponse + var err error + defer close(result) + response, err = client.SetSignatureApis(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetSignatureApisRequest is the request struct for api SetSignatureApis +type SetSignatureApisRequest struct { + *requests.RpcRequest + SignatureId string `position:"Query" name:"SignatureId"` + GroupId string `position:"Query" name:"GroupId"` + ApiIds string `position:"Query" name:"ApiIds"` + StageName string `position:"Query" name:"StageName"` +} + +// SetSignatureApisResponse is the response struct for api SetSignatureApis +type SetSignatureApisResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetSignatureApisRequest creates a request to invoke SetSignatureApis API +func CreateSetSignatureApisRequest() (request *SetSignatureApisRequest) { + request = &SetSignatureApisRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "SetSignatureApis", "apigateway", "openAPI") + return +} + +// CreateSetSignatureApisResponse creates a response to parse from SetSignatureApis response +func CreateSetSignatureApisResponse() (response *SetSignatureApisResponse) { + response = &SetSignatureApisResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_traffic_control_apis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_traffic_control_apis.go new file mode 100644 index 0000000..49f1c12 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_traffic_control_apis.go @@ -0,0 +1,106 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetTrafficControlApis invokes the cloudapi.SetTrafficControlApis API synchronously +// api document: https://help.aliyun.com/api/cloudapi/settrafficcontrolapis.html +func (client *Client) SetTrafficControlApis(request *SetTrafficControlApisRequest) (response *SetTrafficControlApisResponse, err error) { + response = CreateSetTrafficControlApisResponse() + err = client.DoAction(request, response) + return +} + +// SetTrafficControlApisWithChan invokes the cloudapi.SetTrafficControlApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/settrafficcontrolapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetTrafficControlApisWithChan(request *SetTrafficControlApisRequest) (<-chan *SetTrafficControlApisResponse, <-chan error) { + responseChan := make(chan *SetTrafficControlApisResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetTrafficControlApis(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetTrafficControlApisWithCallback invokes the cloudapi.SetTrafficControlApis API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/settrafficcontrolapis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetTrafficControlApisWithCallback(request *SetTrafficControlApisRequest, callback func(response *SetTrafficControlApisResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetTrafficControlApisResponse + var err error + defer close(result) + response, err = client.SetTrafficControlApis(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetTrafficControlApisRequest is the request struct for api SetTrafficControlApis +type SetTrafficControlApisRequest struct { + *requests.RpcRequest + TrafficControlId string `position:"Query" name:"TrafficControlId"` + GroupId string `position:"Query" name:"GroupId"` + ApiIds string `position:"Query" name:"ApiIds"` + StageName string `position:"Query" name:"StageName"` +} + +// SetTrafficControlApisResponse is the response struct for api SetTrafficControlApis +type SetTrafficControlApisResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetTrafficControlApisRequest creates a request to invoke SetTrafficControlApis API +func CreateSetTrafficControlApisRequest() (request *SetTrafficControlApisRequest) { + request = &SetTrafficControlApisRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "SetTrafficControlApis", "apigateway", "openAPI") + return +} + +// CreateSetTrafficControlApisResponse creates a response to parse from SetTrafficControlApis response +func CreateSetTrafficControlApisResponse() (response *SetTrafficControlApisResponse) { + response = &SetTrafficControlApisResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_vpc_access.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_vpc_access.go new file mode 100644 index 0000000..2ea89ff --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/set_vpc_access.go @@ -0,0 +1,106 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetVpcAccess invokes the cloudapi.SetVpcAccess API synchronously +// api document: https://help.aliyun.com/api/cloudapi/setvpcaccess.html +func (client *Client) SetVpcAccess(request *SetVpcAccessRequest) (response *SetVpcAccessResponse, err error) { + response = CreateSetVpcAccessResponse() + err = client.DoAction(request, response) + return +} + +// SetVpcAccessWithChan invokes the cloudapi.SetVpcAccess API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/setvpcaccess.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetVpcAccessWithChan(request *SetVpcAccessRequest) (<-chan *SetVpcAccessResponse, <-chan error) { + responseChan := make(chan *SetVpcAccessResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetVpcAccess(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetVpcAccessWithCallback invokes the cloudapi.SetVpcAccess API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/setvpcaccess.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetVpcAccessWithCallback(request *SetVpcAccessRequest, callback func(response *SetVpcAccessResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetVpcAccessResponse + var err error + defer close(result) + response, err = client.SetVpcAccess(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetVpcAccessRequest is the request struct for api SetVpcAccess +type SetVpcAccessRequest struct { + *requests.RpcRequest + Name string `position:"Query" name:"Name"` + VpcId string `position:"Query" name:"VpcId"` + InstanceId string `position:"Query" name:"InstanceId"` + Port requests.Integer `position:"Query" name:"Port"` +} + +// SetVpcAccessResponse is the response struct for api SetVpcAccess +type SetVpcAccessResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetVpcAccessRequest creates a request to invoke SetVpcAccess API +func CreateSetVpcAccessRequest() (request *SetVpcAccessRequest) { + request = &SetVpcAccessRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "SetVpcAccess", "apigateway", "openAPI") + return +} + +// CreateSetVpcAccessResponse creates a response to parse from SetVpcAccess response +func CreateSetVpcAccessResponse() (response *SetVpcAccessResponse) { + response = &SetVpcAccessResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_group_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_group_attribute.go new file mode 100644 index 0000000..d93d169 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_group_attribute.go @@ -0,0 +1,30 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ApiGroupAttribute is a nested struct in cloudapi response +type ApiGroupAttribute struct { + GroupId string `json:"GroupId" xml:"GroupId"` + GroupName string `json:"GroupName" xml:"GroupName"` + SubDomain string `json:"SubDomain" xml:"SubDomain"` + Description string `json:"Description" xml:"Description"` + CreatedTime string `json:"CreatedTime" xml:"CreatedTime"` + ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` + RegionId string `json:"RegionId" xml:"RegionId"` + TrafficLimit int `json:"TrafficLimit" xml:"TrafficLimit"` + BillingStatus string `json:"BillingStatus" xml:"BillingStatus"` + IllegalStatus string `json:"IllegalStatus" xml:"IllegalStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_group_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_group_attributes.go new file mode 100644 index 0000000..32c2d6e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_group_attributes.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ApiGroupAttributes is a nested struct in cloudapi response +type ApiGroupAttributes struct { + ApiGroupAttribute []ApiGroupAttribute `json:"ApiGroupAttribute" xml:"ApiGroupAttribute"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_his_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_his_item.go new file mode 100644 index 0000000..d5397cd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_his_item.go @@ -0,0 +1,30 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ApiHisItem is a nested struct in cloudapi response +type ApiHisItem struct { + ApiId string `json:"ApiId" xml:"ApiId"` + HistoryVersion string `json:"HistoryVersion" xml:"HistoryVersion"` + RegionId string `json:"RegionId" xml:"RegionId"` + GroupName string `json:"GroupName" xml:"GroupName"` + ApiName string `json:"ApiName" xml:"ApiName"` + GroupId string `json:"GroupId" xml:"GroupId"` + Status string `json:"Status" xml:"Status"` + StageName string `json:"StageName" xml:"StageName"` + Description string `json:"Description" xml:"Description"` + DeployedTime string `json:"DeployedTime" xml:"DeployedTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_his_items_in_describe_api_histories.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_his_items_in_describe_api_histories.go new file mode 100644 index 0000000..a9cef20 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_his_items_in_describe_api_histories.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ApiHisItemsInDescribeApiHistories is a nested struct in cloudapi response +type ApiHisItemsInDescribeApiHistories struct { + ApiHisItem []ApiHisItem `json:"ApiHisItem" xml:"ApiHisItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_his_items_in_describe_history_apis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_his_items_in_describe_history_apis.go new file mode 100644 index 0000000..bf23acc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_his_items_in_describe_history_apis.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ApiHisItemsInDescribeHistoryApis is a nested struct in cloudapi response +type ApiHisItemsInDescribeHistoryApis struct { + ApiHisItem []ApiHisItem `json:"ApiHisItem" xml:"ApiHisItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_ids.go new file mode 100644 index 0000000..4e6e5c4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_ids.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ApiIds is a nested struct in cloudapi response +type ApiIds struct { + ApiId []string `json:"ApiId" xml:"ApiId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_info.go new file mode 100644 index 0000000..88ca920 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_info.go @@ -0,0 +1,29 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ApiInfo is a nested struct in cloudapi response +type ApiInfo struct { + ApiId string `json:"ApiId" xml:"ApiId"` + RegionId string `json:"RegionId" xml:"RegionId"` + BoundTime string `json:"BoundTime" xml:"BoundTime"` + GroupName string `json:"GroupName" xml:"GroupName"` + GroupId string `json:"GroupId" xml:"GroupId"` + ApiName string `json:"ApiName" xml:"ApiName"` + StageName string `json:"StageName" xml:"StageName"` + Description string `json:"Description" xml:"Description"` + Visibility string `json:"Visibility" xml:"Visibility"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_infos_in_describe_apis_by_ip_control.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_infos_in_describe_apis_by_ip_control.go new file mode 100644 index 0000000..f4f9510 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_infos_in_describe_apis_by_ip_control.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ApiInfosInDescribeApisByIpControl is a nested struct in cloudapi response +type ApiInfosInDescribeApisByIpControl struct { + ApiInfo []ApiInfo `json:"ApiInfo" xml:"ApiInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_infos_in_describe_apis_by_signature.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_infos_in_describe_apis_by_signature.go new file mode 100644 index 0000000..ada86e1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_infos_in_describe_apis_by_signature.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ApiInfosInDescribeApisBySignature is a nested struct in cloudapi response +type ApiInfosInDescribeApisBySignature struct { + ApiInfo []ApiInfo `json:"ApiInfo" xml:"ApiInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_infos_in_describe_apis_by_traffic_control.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_infos_in_describe_apis_by_traffic_control.go new file mode 100644 index 0000000..be2f855 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_infos_in_describe_apis_by_traffic_control.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ApiInfosInDescribeApisByTrafficControl is a nested struct in cloudapi response +type ApiInfosInDescribeApisByTrafficControl struct { + ApiInfo []ApiInfo `json:"ApiInfo" xml:"ApiInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_ip_control_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_ip_control_item.go new file mode 100644 index 0000000..9818609 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_ip_control_item.go @@ -0,0 +1,25 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ApiIpControlItem is a nested struct in cloudapi response +type ApiIpControlItem struct { + ApiId string `json:"ApiId" xml:"ApiId"` + ApiName string `json:"ApiName" xml:"ApiName"` + IpControlId string `json:"IpControlId" xml:"IpControlId"` + IpControlName string `json:"IpControlName" xml:"IpControlName"` + BoundTime string `json:"BoundTime" xml:"BoundTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_ip_controls.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_ip_controls.go new file mode 100644 index 0000000..04211ad --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_ip_controls.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ApiIpControls is a nested struct in cloudapi response +type ApiIpControls struct { + ApiIpControlItem []ApiIpControlItem `json:"ApiIpControlItem" xml:"ApiIpControlItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_signature_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_signature_item.go new file mode 100644 index 0000000..6d93639 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_signature_item.go @@ -0,0 +1,25 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ApiSignatureItem is a nested struct in cloudapi response +type ApiSignatureItem struct { + ApiId string `json:"ApiId" xml:"ApiId"` + ApiName string `json:"ApiName" xml:"ApiName"` + SignatureId string `json:"SignatureId" xml:"SignatureId"` + SignatureName string `json:"SignatureName" xml:"SignatureName"` + BoundTime string `json:"BoundTime" xml:"BoundTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_signatures.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_signatures.go new file mode 100644 index 0000000..08c421b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_signatures.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ApiSignatures is a nested struct in cloudapi response +type ApiSignatures struct { + ApiSignatureItem []ApiSignatureItem `json:"ApiSignatureItem" xml:"ApiSignatureItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_summary.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_summary.go new file mode 100644 index 0000000..efc28ee --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_summary.go @@ -0,0 +1,29 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ApiSummary is a nested struct in cloudapi response +type ApiSummary struct { + RegionId string `json:"RegionId" xml:"RegionId"` + GroupId string `json:"GroupId" xml:"GroupId"` + GroupName string `json:"GroupName" xml:"GroupName"` + ApiId string `json:"ApiId" xml:"ApiId"` + ApiName string `json:"ApiName" xml:"ApiName"` + Visibility string `json:"Visibility" xml:"Visibility"` + Description string `json:"Description" xml:"Description"` + CreatedTime string `json:"CreatedTime" xml:"CreatedTime"` + ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_summarys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_summarys.go new file mode 100644 index 0000000..ad1d789 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_summarys.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ApiSummarys is a nested struct in cloudapi response +type ApiSummarys struct { + ApiSummary []ApiSummary `json:"ApiSummary" xml:"ApiSummary"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_traffic_control_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_traffic_control_item.go new file mode 100644 index 0000000..3ef95c8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_traffic_control_item.go @@ -0,0 +1,25 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ApiTrafficControlItem is a nested struct in cloudapi response +type ApiTrafficControlItem struct { + ApiId string `json:"ApiId" xml:"ApiId"` + ApiName string `json:"ApiName" xml:"ApiName"` + TrafficControlId string `json:"TrafficControlId" xml:"TrafficControlId"` + TrafficControlName string `json:"TrafficControlName" xml:"TrafficControlName"` + BoundTime string `json:"BoundTime" xml:"BoundTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_traffic_controls.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_traffic_controls.go new file mode 100644 index 0000000..8def8e3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_api_traffic_controls.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ApiTrafficControls is a nested struct in cloudapi response +type ApiTrafficControls struct { + ApiTrafficControlItem []ApiTrafficControlItem `json:"ApiTrafficControlItem" xml:"ApiTrafficControlItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_app_api_relation_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_app_api_relation_info.go new file mode 100644 index 0000000..338e6a7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_app_api_relation_info.go @@ -0,0 +1,30 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AppApiRelationInfo is a nested struct in cloudapi response +type AppApiRelationInfo struct { + RegionId string `json:"RegionId" xml:"RegionId"` + GroupId string `json:"GroupId" xml:"GroupId"` + GroupName string `json:"GroupName" xml:"GroupName"` + StageName string `json:"StageName" xml:"StageName"` + Operator string `json:"Operator" xml:"Operator"` + ApiId string `json:"ApiId" xml:"ApiId"` + ApiName string `json:"ApiName" xml:"ApiName"` + AuthorizationSource string `json:"AuthorizationSource" xml:"AuthorizationSource"` + Description string `json:"Description" xml:"Description"` + CreatedTime string `json:"CreatedTime" xml:"CreatedTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_app_api_relation_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_app_api_relation_infos.go new file mode 100644 index 0000000..c10a0bf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_app_api_relation_infos.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AppApiRelationInfos is a nested struct in cloudapi response +type AppApiRelationInfos struct { + AppApiRelationInfo []AppApiRelationInfo `json:"AppApiRelationInfo" xml:"AppApiRelationInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_app_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_app_attribute.go new file mode 100644 index 0000000..66e87f0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_app_attribute.go @@ -0,0 +1,25 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AppAttribute is a nested struct in cloudapi response +type AppAttribute struct { + AppId int `json:"AppId" xml:"AppId"` + AppName string `json:"AppName" xml:"AppName"` + Description string `json:"Description" xml:"Description"` + CreatedTime string `json:"CreatedTime" xml:"CreatedTime"` + ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_app_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_app_item.go new file mode 100644 index 0000000..4ac69ad --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_app_item.go @@ -0,0 +1,23 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AppItem is a nested struct in cloudapi response +type AppItem struct { + AppId int `json:"AppId" xml:"AppId"` + AppName string `json:"AppName" xml:"AppName"` + Description string `json:"Description" xml:"Description"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_apps_in_describe_app_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_apps_in_describe_app_attributes.go new file mode 100644 index 0000000..b6001e9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_apps_in_describe_app_attributes.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AppsInDescribeAppAttributes is a nested struct in cloudapi response +type AppsInDescribeAppAttributes struct { + AppAttribute []AppAttribute `json:"AppAttribute" xml:"AppAttribute"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_apps_in_describe_apps.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_apps_in_describe_apps.go new file mode 100644 index 0000000..07d48d3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_apps_in_describe_apps.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AppsInDescribeApps is a nested struct in cloudapi response +type AppsInDescribeApps struct { + AppItem []AppItem `json:"AppItem" xml:"AppItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_authorized_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_authorized_api.go new file mode 100644 index 0000000..5f7fb35 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_authorized_api.go @@ -0,0 +1,30 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AuthorizedApi is a nested struct in cloudapi response +type AuthorizedApi struct { + RegionId string `json:"RegionId" xml:"RegionId"` + GroupId string `json:"GroupId" xml:"GroupId"` + GroupName string `json:"GroupName" xml:"GroupName"` + StageName string `json:"StageName" xml:"StageName"` + Operator string `json:"Operator" xml:"Operator"` + ApiId string `json:"ApiId" xml:"ApiId"` + ApiName string `json:"ApiName" xml:"ApiName"` + AuthorizationSource string `json:"AuthorizationSource" xml:"AuthorizationSource"` + Description string `json:"Description" xml:"Description"` + AuthorizedTime string `json:"AuthorizedTime" xml:"AuthorizedTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_authorized_apis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_authorized_apis.go new file mode 100644 index 0000000..dbb48a3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_authorized_apis.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AuthorizedApis is a nested struct in cloudapi response +type AuthorizedApis struct { + AuthorizedApi []AuthorizedApi `json:"AuthorizedApi" xml:"AuthorizedApi"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_authorized_app.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_authorized_app.go new file mode 100644 index 0000000..a55536e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_authorized_app.go @@ -0,0 +1,27 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AuthorizedApp is a nested struct in cloudapi response +type AuthorizedApp struct { + StageName string `json:"StageName" xml:"StageName"` + AppId int `json:"AppId" xml:"AppId"` + AppName string `json:"AppName" xml:"AppName"` + Operator string `json:"Operator" xml:"Operator"` + AuthorizationSource string `json:"AuthorizationSource" xml:"AuthorizationSource"` + Description string `json:"Description" xml:"Description"` + AuthorizedTime string `json:"AuthorizedTime" xml:"AuthorizedTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_authorized_apps.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_authorized_apps.go new file mode 100644 index 0000000..ffdecb7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_authorized_apps.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AuthorizedApps is a nested struct in cloudapi response +type AuthorizedApps struct { + AuthorizedApp []AuthorizedApp `json:"AuthorizedApp" xml:"AuthorizedApp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_call_downloads.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_call_downloads.go new file mode 100644 index 0000000..0c0037f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_call_downloads.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CallDownloads is a nested struct in cloudapi response +type CallDownloads struct { + MonitorItem []MonitorItem `json:"MonitorItem" xml:"MonitorItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_call_fails.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_call_fails.go new file mode 100644 index 0000000..c71d489 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_call_fails.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CallFails is a nested struct in cloudapi response +type CallFails struct { + MonitorItem []MonitorItem `json:"MonitorItem" xml:"MonitorItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_call_latencys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_call_latencys.go new file mode 100644 index 0000000..16a43da --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_call_latencys.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CallLatencys is a nested struct in cloudapi response +type CallLatencys struct { + MonitorItem []MonitorItem `json:"MonitorItem" xml:"MonitorItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_call_successes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_call_successes.go new file mode 100644 index 0000000..3d7edeb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_call_successes.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CallSuccesses is a nested struct in cloudapi response +type CallSuccesses struct { + MonitorItem []MonitorItem `json:"MonitorItem" xml:"MonitorItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_call_uploads.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_call_uploads.go new file mode 100644 index 0000000..c37c164 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_call_uploads.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CallUploads is a nested struct in cloudapi response +type CallUploads struct { + MonitorItem []MonitorItem `json:"MonitorItem" xml:"MonitorItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_catalog_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_catalog_attribute.go new file mode 100644 index 0000000..d5c266a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_catalog_attribute.go @@ -0,0 +1,27 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CatalogAttribute is a nested struct in cloudapi response +type CatalogAttribute struct { + CatalogId string `json:"CatalogId" xml:"CatalogId"` + CatalogName string `json:"CatalogName" xml:"CatalogName"` + Description string `json:"Description" xml:"Description"` + ParentId string `json:"ParentId" xml:"ParentId"` + CreatedTime string `json:"CreatedTime" xml:"CreatedTime"` + ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` + RegionId string `json:"RegionId" xml:"RegionId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_catalog_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_catalog_attributes.go new file mode 100644 index 0000000..5c1b59b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_catalog_attributes.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CatalogAttributes is a nested struct in cloudapi response +type CatalogAttributes struct { + CatalogAttribute []CatalogAttribute `json:"CatalogAttribute" xml:"CatalogAttribute"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_client_errors.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_client_errors.go new file mode 100644 index 0000000..e80d1b0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_client_errors.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ClientErrors is a nested struct in cloudapi response +type ClientErrors struct { + MonitorItem []MonitorItem `json:"MonitorItem" xml:"MonitorItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_constant_parameter.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_constant_parameter.go new file mode 100644 index 0000000..61f5d83 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_constant_parameter.go @@ -0,0 +1,24 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ConstantParameter is a nested struct in cloudapi response +type ConstantParameter struct { + ServiceParameterName string `json:"ServiceParameterName" xml:"ServiceParameterName"` + Description string `json:"Description" xml:"Description"` + ConstantValue string `json:"ConstantValue" xml:"ConstantValue"` + Location string `json:"Location" xml:"Location"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_constant_parameters_in_describe_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_constant_parameters_in_describe_api.go new file mode 100644 index 0000000..76201dd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_constant_parameters_in_describe_api.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ConstantParametersInDescribeApi is a nested struct in cloudapi response +type ConstantParametersInDescribeApi struct { + ConstantParameter []ConstantParameter `json:"ConstantParameter" xml:"ConstantParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_constant_parameters_in_describe_api_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_constant_parameters_in_describe_api_history.go new file mode 100644 index 0000000..7bfd981 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_constant_parameters_in_describe_api_history.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ConstantParametersInDescribeApiHistory is a nested struct in cloudapi response +type ConstantParametersInDescribeApiHistory struct { + ConstantParameter []ConstantParameter `json:"ConstantParameter" xml:"ConstantParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_constant_parameters_in_describe_deployed_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_constant_parameters_in_describe_deployed_api.go new file mode 100644 index 0000000..6f1d95b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_constant_parameters_in_describe_deployed_api.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ConstantParametersInDescribeDeployedApi is a nested struct in cloudapi response +type ConstantParametersInDescribeDeployedApi struct { + ConstantParameter []ConstantParameter `json:"ConstantParameter" xml:"ConstantParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_custom_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_custom_domains.go new file mode 100644 index 0000000..23bdfb9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_custom_domains.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CustomDomains is a nested struct in cloudapi response +type CustomDomains struct { + DomainItem []DomainItem `json:"DomainItem" xml:"DomainItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_custom_system_parameter.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_custom_system_parameter.go new file mode 100644 index 0000000..dbac7b3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_custom_system_parameter.go @@ -0,0 +1,25 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CustomSystemParameter is a nested struct in cloudapi response +type CustomSystemParameter struct { + ParameterName string `json:"ParameterName" xml:"ParameterName"` + ServiceParameterName string `json:"ServiceParameterName" xml:"ServiceParameterName"` + DemoValue string `json:"DemoValue" xml:"DemoValue"` + Description string `json:"Description" xml:"Description"` + Location string `json:"Location" xml:"Location"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_custom_system_parameters_in_describe_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_custom_system_parameters_in_describe_api.go new file mode 100644 index 0000000..c109416 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_custom_system_parameters_in_describe_api.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CustomSystemParametersInDescribeApi is a nested struct in cloudapi response +type CustomSystemParametersInDescribeApi struct { + CustomSystemParameter []CustomSystemParameter `json:"CustomSystemParameter" xml:"CustomSystemParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_custom_system_parameters_in_describe_api_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_custom_system_parameters_in_describe_api_history.go new file mode 100644 index 0000000..c8fc6c6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_custom_system_parameters_in_describe_api_history.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CustomSystemParametersInDescribeApiHistory is a nested struct in cloudapi response +type CustomSystemParametersInDescribeApiHistory struct { + CustomSystemParameter []CustomSystemParameter `json:"CustomSystemParameter" xml:"CustomSystemParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_custom_system_parameters_in_describe_deployed_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_custom_system_parameters_in_describe_deployed_api.go new file mode 100644 index 0000000..93bc896 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_custom_system_parameters_in_describe_deployed_api.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CustomSystemParametersInDescribeDeployedApi is a nested struct in cloudapi response +type CustomSystemParametersInDescribeDeployedApi struct { + CustomSystemParameter []CustomSystemParameter `json:"CustomSystemParameter" xml:"CustomSystemParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_deployed_api_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_deployed_api_item.go new file mode 100644 index 0000000..bb379c6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_deployed_api_item.go @@ -0,0 +1,29 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DeployedApiItem is a nested struct in cloudapi response +type DeployedApiItem struct { + RegionId string `json:"RegionId" xml:"RegionId"` + ApiId string `json:"ApiId" xml:"ApiId"` + ApiName string `json:"ApiName" xml:"ApiName"` + GroupId string `json:"GroupId" xml:"GroupId"` + GroupName string `json:"GroupName" xml:"GroupName"` + StageName string `json:"StageName" xml:"StageName"` + Visibility string `json:"Visibility" xml:"Visibility"` + Description string `json:"Description" xml:"Description"` + DeployedTime string `json:"DeployedTime" xml:"DeployedTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_deployed_apis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_deployed_apis.go new file mode 100644 index 0000000..c86a2ab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_deployed_apis.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DeployedApis is a nested struct in cloudapi response +type DeployedApis struct { + DeployedApiItem []DeployedApiItem `json:"DeployedApiItem" xml:"DeployedApiItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_deployed_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_deployed_info.go new file mode 100644 index 0000000..4bbfff5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_deployed_info.go @@ -0,0 +1,23 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DeployedInfo is a nested struct in cloudapi response +type DeployedInfo struct { + StageName string `json:"StageName" xml:"StageName"` + EffectiveVersion string `json:"EffectiveVersion" xml:"EffectiveVersion"` + DeployedStatus string `json:"DeployedStatus" xml:"DeployedStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_deployed_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_deployed_infos.go new file mode 100644 index 0000000..7382dcd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_deployed_infos.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DeployedInfos is a nested struct in cloudapi response +type DeployedInfos struct { + DeployedInfo []DeployedInfo `json:"DeployedInfo" xml:"DeployedInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_domain_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_domain_item.go new file mode 100644 index 0000000..c46d0b3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_domain_item.go @@ -0,0 +1,28 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainItem is a nested struct in cloudapi response +type DomainItem struct { + DomainRemark string `json:"DomainRemark" xml:"DomainRemark"` + DomainName string `json:"DomainName" xml:"DomainName"` + DomainCNAMEStatus string `json:"DomainCNAMEStatus" xml:"DomainCNAMEStatus"` + CertificateId string `json:"CertificateId" xml:"CertificateId"` + DomainWebSocketStatus string `json:"DomainWebSocketStatus" xml:"DomainWebSocketStatus"` + DomainLegalStatus string `json:"DomainLegalStatus" xml:"DomainLegalStatus"` + CertificateName string `json:"CertificateName" xml:"CertificateName"` + DomainBindingStatus string `json:"DomainBindingStatus" xml:"DomainBindingStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_domain_resolution.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_domain_resolution.go new file mode 100644 index 0000000..e249c13 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_domain_resolution.go @@ -0,0 +1,22 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainResolution is a nested struct in cloudapi response +type DomainResolution struct { + DomainName string `json:"DomainName" xml:"DomainName"` + DomainResolutionStatus string `json:"DomainResolutionStatus" xml:"DomainResolutionStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_domain_resolutions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_domain_resolutions.go new file mode 100644 index 0000000..56e31f2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_domain_resolutions.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainResolutions is a nested struct in cloudapi response +type DomainResolutions struct { + DomainResolution []DomainResolution `json:"DomainResolution" xml:"DomainResolution"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_domains.go new file mode 100644 index 0000000..c480f3f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_domains.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Domains is a nested struct in cloudapi response +type Domains struct { + DomainItem []DomainItem `json:"DomainItem" xml:"DomainItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_error_code_sample.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_error_code_sample.go new file mode 100644 index 0000000..7234631 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_error_code_sample.go @@ -0,0 +1,23 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ErrorCodeSample is a nested struct in cloudapi response +type ErrorCodeSample struct { + Message string `json:"Message" xml:"Message"` + Code string `json:"Code" xml:"Code"` + Description string `json:"Description" xml:"Description"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_error_code_samples_in_describe_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_error_code_samples_in_describe_api.go new file mode 100644 index 0000000..4fb6f91 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_error_code_samples_in_describe_api.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ErrorCodeSamplesInDescribeApi is a nested struct in cloudapi response +type ErrorCodeSamplesInDescribeApi struct { + ErrorCodeSample []ErrorCodeSample `json:"ErrorCodeSample" xml:"ErrorCodeSample"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_error_code_samples_in_describe_api_doc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_error_code_samples_in_describe_api_doc.go new file mode 100644 index 0000000..4499257 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_error_code_samples_in_describe_api_doc.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ErrorCodeSamplesInDescribeApiDoc is a nested struct in cloudapi response +type ErrorCodeSamplesInDescribeApiDoc struct { + ErrorCodeSample []ErrorCodeSample `json:"ErrorCodeSample" xml:"ErrorCodeSample"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_error_code_samples_in_describe_api_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_error_code_samples_in_describe_api_history.go new file mode 100644 index 0000000..5f46b12 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_error_code_samples_in_describe_api_history.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ErrorCodeSamplesInDescribeApiHistory is a nested struct in cloudapi response +type ErrorCodeSamplesInDescribeApiHistory struct { + ErrorCodeSample []ErrorCodeSample `json:"ErrorCodeSample" xml:"ErrorCodeSample"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_error_code_samples_in_describe_deployed_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_error_code_samples_in_describe_deployed_api.go new file mode 100644 index 0000000..f619b13 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_error_code_samples_in_describe_deployed_api.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ErrorCodeSamplesInDescribeDeployedApi is a nested struct in cloudapi response +type ErrorCodeSamplesInDescribeDeployedApi struct { + ErrorCodeSample []ErrorCodeSample `json:"ErrorCodeSample" xml:"ErrorCodeSample"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_ip_control_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_ip_control_info.go new file mode 100644 index 0000000..ae3afcf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_ip_control_info.go @@ -0,0 +1,27 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IpControlInfo is a nested struct in cloudapi response +type IpControlInfo struct { + IpControlId string `json:"IpControlId" xml:"IpControlId"` + IpControlName string `json:"IpControlName" xml:"IpControlName"` + IpControlType string `json:"IpControlType" xml:"IpControlType"` + Description string `json:"Description" xml:"Description"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` + RegionId string `json:"RegionId" xml:"RegionId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_ip_control_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_ip_control_infos.go new file mode 100644 index 0000000..a5095cc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_ip_control_infos.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IpControlInfos is a nested struct in cloudapi response +type IpControlInfos struct { + IpControlInfo []IpControlInfo `json:"IpControlInfo" xml:"IpControlInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_ip_control_policy_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_ip_control_policy_item.go new file mode 100644 index 0000000..5f75ea5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_ip_control_policy_item.go @@ -0,0 +1,25 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IpControlPolicyItem is a nested struct in cloudapi response +type IpControlPolicyItem struct { + AppId string `json:"AppId" xml:"AppId"` + CidrIp string `json:"CidrIp" xml:"CidrIp"` + PolicyItemId string `json:"PolicyItemId" xml:"PolicyItemId"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_ip_control_policy_items.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_ip_control_policy_items.go new file mode 100644 index 0000000..7ab0758 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_ip_control_policy_items.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IpControlPolicyItems is a nested struct in cloudapi response +type IpControlPolicyItems struct { + IpControlPolicyItem []IpControlPolicyItem `json:"IpControlPolicyItem" xml:"IpControlPolicyItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_log_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_log_info.go new file mode 100644 index 0000000..a48b502 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_log_info.go @@ -0,0 +1,24 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LogInfo is a nested struct in cloudapi response +type LogInfo struct { + RegionId string `json:"RegionId" xml:"RegionId"` + SlsProject string `json:"SlsProject" xml:"SlsProject"` + SlsLogStore string `json:"SlsLogStore" xml:"SlsLogStore"` + LogType string `json:"LogType" xml:"LogType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_log_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_log_infos.go new file mode 100644 index 0000000..24b20cb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_log_infos.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LogInfos is a nested struct in cloudapi response +type LogInfos struct { + LogInfo []LogInfo `json:"LogInfo" xml:"LogInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_monitor_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_monitor_item.go new file mode 100644 index 0000000..590ff0d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_monitor_item.go @@ -0,0 +1,22 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MonitorItem is a nested struct in cloudapi response +type MonitorItem struct { + ItemTime string `json:"ItemTime" xml:"ItemTime"` + ItemValue string `json:"ItemValue" xml:"ItemValue"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_open_id_connect_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_open_id_connect_config.go new file mode 100644 index 0000000..a918e7a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_open_id_connect_config.go @@ -0,0 +1,24 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OpenIdConnectConfig is a nested struct in cloudapi response +type OpenIdConnectConfig struct { + IdTokenParamName string `json:"IdTokenParamName" xml:"IdTokenParamName"` + PublicKeyId string `json:"PublicKeyId" xml:"PublicKeyId"` + PublicKey string `json:"PublicKey" xml:"PublicKey"` + OpenIdApiType string `json:"OpenIdApiType" xml:"OpenIdApiType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_purchased_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_purchased_api.go new file mode 100644 index 0000000..a6da703 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_purchased_api.go @@ -0,0 +1,28 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PurchasedApi is a nested struct in cloudapi response +type PurchasedApi struct { + RegionId string `json:"RegionId" xml:"RegionId"` + GroupId string `json:"GroupId" xml:"GroupId"` + GroupName string `json:"GroupName" xml:"GroupName"` + ApiId string `json:"ApiId" xml:"ApiId"` + ApiName string `json:"ApiName" xml:"ApiName"` + StageName string `json:"StageName" xml:"StageName"` + Description string `json:"Description" xml:"Description"` + PurchasedTime string `json:"PurchasedTime" xml:"PurchasedTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_purchased_api_group_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_purchased_api_group_attribute.go new file mode 100644 index 0000000..d746009 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_purchased_api_group_attribute.go @@ -0,0 +1,29 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PurchasedApiGroupAttribute is a nested struct in cloudapi response +type PurchasedApiGroupAttribute struct { + GroupId string `json:"GroupId" xml:"GroupId"` + GroupName string `json:"GroupName" xml:"GroupName"` + Description string `json:"Description" xml:"Description"` + PurchasedTime string `json:"PurchasedTime" xml:"PurchasedTime"` + ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` + RegionId string `json:"RegionId" xml:"RegionId"` + BillingType string `json:"BillingType" xml:"BillingType"` + InvokeTimesMax int `json:"InvokeTimesMax" xml:"InvokeTimesMax"` + InvokeTimesNow int `json:"InvokeTimesNow" xml:"InvokeTimesNow"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_purchased_api_group_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_purchased_api_group_attributes.go new file mode 100644 index 0000000..112c125 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_purchased_api_group_attributes.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PurchasedApiGroupAttributes is a nested struct in cloudapi response +type PurchasedApiGroupAttributes struct { + PurchasedApiGroupAttribute []PurchasedApiGroupAttribute `json:"PurchasedApiGroupAttribute" xml:"PurchasedApiGroupAttribute"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_purchased_apis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_purchased_apis.go new file mode 100644 index 0000000..739490f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_purchased_apis.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PurchasedApis is a nested struct in cloudapi response +type PurchasedApis struct { + PurchasedApi []PurchasedApi `json:"PurchasedApi" xml:"PurchasedApi"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_region.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_region.go new file mode 100644 index 0000000..7588196 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_region.go @@ -0,0 +1,23 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 cloudapi response +type Region struct { + RegionId string `json:"RegionId" xml:"RegionId"` + LocalName string `json:"LocalName" xml:"LocalName"` + EndPoint string `json:"EndPoint" xml:"EndPoint"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_regions.go new file mode 100644 index 0000000..17d9712 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_regions.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 cloudapi response +type Regions struct { + Region []Region `json:"Region" xml:"Region"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_config.go new file mode 100644 index 0000000..f81f108 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_config.go @@ -0,0 +1,26 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RequestConfig is a nested struct in cloudapi response +type RequestConfig struct { + RequestHttpMethod string `json:"RequestHttpMethod" xml:"RequestHttpMethod"` + RequestProtocol string `json:"RequestProtocol" xml:"RequestProtocol"` + RequestMode string `json:"RequestMode" xml:"RequestMode"` + RequestPath string `json:"RequestPath" xml:"RequestPath"` + PostBodyDescription string `json:"PostBodyDescription" xml:"PostBodyDescription"` + BodyFormat string `json:"BodyFormat" xml:"BodyFormat"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_parameter.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_parameter.go new file mode 100644 index 0000000..a5779cb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_parameter.go @@ -0,0 +1,36 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RequestParameter is a nested struct in cloudapi response +type RequestParameter struct { + MaxValue int `json:"MaxValue" xml:"MaxValue"` + ApiParameterName string `json:"ApiParameterName" xml:"ApiParameterName"` + DocOrder int `json:"DocOrder" xml:"DocOrder"` + EnumValue string `json:"EnumValue" xml:"EnumValue"` + ParameterType string `json:"ParameterType" xml:"ParameterType"` + DefaultValue string `json:"DefaultValue" xml:"DefaultValue"` + JsonScheme string `json:"JsonScheme" xml:"JsonScheme"` + Location string `json:"Location" xml:"Location"` + Required string `json:"Required" xml:"Required"` + DemoValue string `json:"DemoValue" xml:"DemoValue"` + MinLength int `json:"MinLength" xml:"MinLength"` + MaxLength int `json:"MaxLength" xml:"MaxLength"` + RegularExpression string `json:"RegularExpression" xml:"RegularExpression"` + MinValue int `json:"MinValue" xml:"MinValue"` + DocShow string `json:"DocShow" xml:"DocShow"` + Description string `json:"Description" xml:"Description"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_parameters_in_describe_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_parameters_in_describe_api.go new file mode 100644 index 0000000..c005317 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_parameters_in_describe_api.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RequestParametersInDescribeApi is a nested struct in cloudapi response +type RequestParametersInDescribeApi struct { + RequestParameter []RequestParameter `json:"RequestParameter" xml:"RequestParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_parameters_in_describe_api_doc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_parameters_in_describe_api_doc.go new file mode 100644 index 0000000..9305f51 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_parameters_in_describe_api_doc.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RequestParametersInDescribeApiDoc is a nested struct in cloudapi response +type RequestParametersInDescribeApiDoc struct { + RequestParameter []RequestParameter `json:"RequestParameter" xml:"RequestParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_parameters_in_describe_api_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_parameters_in_describe_api_history.go new file mode 100644 index 0000000..f20bf1f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_parameters_in_describe_api_history.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RequestParametersInDescribeApiHistory is a nested struct in cloudapi response +type RequestParametersInDescribeApiHistory struct { + RequestParameter []RequestParameter `json:"RequestParameter" xml:"RequestParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_parameters_in_describe_deployed_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_parameters_in_describe_deployed_api.go new file mode 100644 index 0000000..f55c7d4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_request_parameters_in_describe_deployed_api.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RequestParametersInDescribeDeployedApi is a nested struct in cloudapi response +type RequestParametersInDescribeDeployedApi struct { + RequestParameter []RequestParameter `json:"RequestParameter" xml:"RequestParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_result_description.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_result_description.go new file mode 100644 index 0000000..4c1e448 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_result_description.go @@ -0,0 +1,28 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultDescription is a nested struct in cloudapi response +type ResultDescription struct { + Key string `json:"Key" xml:"Key"` + Name string `json:"Name" xml:"Name"` + Mandatory bool `json:"Mandatory" xml:"Mandatory"` + HasChild bool `json:"HasChild" xml:"HasChild"` + Pid string `json:"Pid" xml:"Pid"` + Id string `json:"Id" xml:"Id"` + Description string `json:"Description" xml:"Description"` + Type string `json:"Type" xml:"Type"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_result_descriptions_in_describe_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_result_descriptions_in_describe_api.go new file mode 100644 index 0000000..09c7774 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_result_descriptions_in_describe_api.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultDescriptionsInDescribeApi is a nested struct in cloudapi response +type ResultDescriptionsInDescribeApi struct { + ResultDescription []ResultDescription `json:"ResultDescription" xml:"ResultDescription"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_result_descriptions_in_describe_api_doc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_result_descriptions_in_describe_api_doc.go new file mode 100644 index 0000000..39adfab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_result_descriptions_in_describe_api_doc.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultDescriptionsInDescribeApiDoc is a nested struct in cloudapi response +type ResultDescriptionsInDescribeApiDoc struct { + ResultDescription []ResultDescription `json:"ResultDescription" xml:"ResultDescription"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_result_descriptions_in_describe_api_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_result_descriptions_in_describe_api_history.go new file mode 100644 index 0000000..e018e75 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_result_descriptions_in_describe_api_history.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultDescriptionsInDescribeApiHistory is a nested struct in cloudapi response +type ResultDescriptionsInDescribeApiHistory struct { + ResultDescription []ResultDescription `json:"ResultDescription" xml:"ResultDescription"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_result_descriptions_in_describe_deployed_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_result_descriptions_in_describe_deployed_api.go new file mode 100644 index 0000000..35cfc23 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_result_descriptions_in_describe_deployed_api.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultDescriptionsInDescribeDeployedApi is a nested struct in cloudapi response +type ResultDescriptionsInDescribeDeployedApi struct { + ResultDescription []ResultDescription `json:"ResultDescription" xml:"ResultDescription"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_route_rule_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_route_rule_item.go new file mode 100644 index 0000000..f32a65b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_route_rule_item.go @@ -0,0 +1,24 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouteRuleItem is a nested struct in cloudapi response +type RouteRuleItem struct { + MaxValue int `json:"MaxValue" xml:"MaxValue"` + MinValue int `json:"MinValue" xml:"MinValue"` + ConditionValue string `json:"ConditionValue" xml:"ConditionValue"` + ResultValue string `json:"ResultValue" xml:"ResultValue"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_route_rules.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_route_rules.go new file mode 100644 index 0000000..8e00ca4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_route_rules.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouteRules is a nested struct in cloudapi response +type RouteRules struct { + RouteRuleItem []RouteRuleItem `json:"RouteRuleItem" xml:"RouteRuleItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_server_errors.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_server_errors.go new file mode 100644 index 0000000..392dff7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_server_errors.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServerErrors is a nested struct in cloudapi response +type ServerErrors struct { + MonitorItem []MonitorItem `json:"MonitorItem" xml:"MonitorItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_config.go new file mode 100644 index 0000000..b7f068b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_config.go @@ -0,0 +1,31 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServiceConfig is a nested struct in cloudapi response +type ServiceConfig struct { + ServiceTimeout int `json:"ServiceTimeout" xml:"ServiceTimeout"` + ServiceVpcEnable string `json:"ServiceVpcEnable" xml:"ServiceVpcEnable"` + ContentTypeCatagory string `json:"ContentTypeCatagory" xml:"ContentTypeCatagory"` + ServiceProtocol string `json:"ServiceProtocol" xml:"ServiceProtocol"` + ContentTypeValue string `json:"ContentTypeValue" xml:"ContentTypeValue"` + ServiceHttpMethod string `json:"ServiceHttpMethod" xml:"ServiceHttpMethod"` + ServicePath string `json:"ServicePath" xml:"ServicePath"` + ServiceAddress string `json:"ServiceAddress" xml:"ServiceAddress"` + Mock string `json:"Mock" xml:"Mock"` + MockResult string `json:"MockResult" xml:"MockResult"` + VpcConfig VpcConfig `json:"VpcConfig" xml:"VpcConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameter.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameter.go new file mode 100644 index 0000000..29586a6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameter.go @@ -0,0 +1,23 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServiceParameter is a nested struct in cloudapi response +type ServiceParameter struct { + ServiceParameterName string `json:"ServiceParameterName" xml:"ServiceParameterName"` + ParameterType string `json:"ParameterType" xml:"ParameterType"` + Location string `json:"Location" xml:"Location"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameter_map.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameter_map.go new file mode 100644 index 0000000..022eb6e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameter_map.go @@ -0,0 +1,22 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServiceParameterMap is a nested struct in cloudapi response +type ServiceParameterMap struct { + RequestParameterName string `json:"RequestParameterName" xml:"RequestParameterName"` + ServiceParameterName string `json:"ServiceParameterName" xml:"ServiceParameterName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_in_describe_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_in_describe_api.go new file mode 100644 index 0000000..2809ab9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_in_describe_api.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServiceParametersInDescribeApi is a nested struct in cloudapi response +type ServiceParametersInDescribeApi struct { + ServiceParameter []ServiceParameter `json:"ServiceParameter" xml:"ServiceParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_in_describe_api_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_in_describe_api_history.go new file mode 100644 index 0000000..f192711 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_in_describe_api_history.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServiceParametersInDescribeApiHistory is a nested struct in cloudapi response +type ServiceParametersInDescribeApiHistory struct { + ServiceParameter []ServiceParameter `json:"ServiceParameter" xml:"ServiceParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_in_describe_deployed_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_in_describe_deployed_api.go new file mode 100644 index 0000000..7cfccd1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_in_describe_deployed_api.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServiceParametersInDescribeDeployedApi is a nested struct in cloudapi response +type ServiceParametersInDescribeDeployedApi struct { + ServiceParameter []ServiceParameter `json:"ServiceParameter" xml:"ServiceParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_map_in_describe_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_map_in_describe_api.go new file mode 100644 index 0000000..58ef77b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_map_in_describe_api.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServiceParametersMapInDescribeApi is a nested struct in cloudapi response +type ServiceParametersMapInDescribeApi struct { + ServiceParameterMap []ServiceParameterMap `json:"ServiceParameterMap" xml:"ServiceParameterMap"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_map_in_describe_api_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_map_in_describe_api_history.go new file mode 100644 index 0000000..662afb7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_map_in_describe_api_history.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServiceParametersMapInDescribeApiHistory is a nested struct in cloudapi response +type ServiceParametersMapInDescribeApiHistory struct { + ServiceParameterMap []ServiceParameterMap `json:"ServiceParameterMap" xml:"ServiceParameterMap"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_map_in_describe_deployed_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_map_in_describe_deployed_api.go new file mode 100644 index 0000000..0099a55 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_service_parameters_map_in_describe_deployed_api.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServiceParametersMapInDescribeDeployedApi is a nested struct in cloudapi response +type ServiceParametersMapInDescribeDeployedApi struct { + ServiceParameterMap []ServiceParameterMap `json:"ServiceParameterMap" xml:"ServiceParameterMap"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_signature_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_signature_info.go new file mode 100644 index 0000000..6d62253 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_signature_info.go @@ -0,0 +1,27 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SignatureInfo is a nested struct in cloudapi response +type SignatureInfo struct { + RegionId string `json:"RegionId" xml:"RegionId"` + SignatureId string `json:"SignatureId" xml:"SignatureId"` + SignatureName string `json:"SignatureName" xml:"SignatureName"` + SignatureKey string `json:"SignatureKey" xml:"SignatureKey"` + SignatureSecret string `json:"SignatureSecret" xml:"SignatureSecret"` + CreatedTime string `json:"CreatedTime" xml:"CreatedTime"` + ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_signature_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_signature_infos.go new file mode 100644 index 0000000..69ed837 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_signature_infos.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SignatureInfos is a nested struct in cloudapi response +type SignatureInfos struct { + SignatureInfo []SignatureInfo `json:"SignatureInfo" xml:"SignatureInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_signature_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_signature_item.go new file mode 100644 index 0000000..472ec86 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_signature_item.go @@ -0,0 +1,23 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SignatureItem is a nested struct in cloudapi response +type SignatureItem struct { + SignatureId string `json:"SignatureId" xml:"SignatureId"` + SignatureName string `json:"SignatureName" xml:"SignatureName"` + BoundTime string `json:"BoundTime" xml:"BoundTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_signatures.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_signatures.go new file mode 100644 index 0000000..c7d29ed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_signatures.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Signatures is a nested struct in cloudapi response +type Signatures struct { + SignatureItem []SignatureItem `json:"SignatureItem" xml:"SignatureItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_special.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_special.go new file mode 100644 index 0000000..26612cb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_special.go @@ -0,0 +1,22 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Special is a nested struct in cloudapi response +type Special struct { + SpecialKey string `json:"SpecialKey" xml:"SpecialKey"` + TrafficValue int `json:"TrafficValue" xml:"TrafficValue"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_special_policies.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_special_policies.go new file mode 100644 index 0000000..f05f2b8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_special_policies.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SpecialPolicies is a nested struct in cloudapi response +type SpecialPolicies struct { + SpecialPolicy []SpecialPolicy `json:"SpecialPolicy" xml:"SpecialPolicy"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_special_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_special_policy.go new file mode 100644 index 0000000..a57a5b2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_special_policy.go @@ -0,0 +1,22 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SpecialPolicy is a nested struct in cloudapi response +type SpecialPolicy struct { + SpecialType string `json:"SpecialType" xml:"SpecialType"` + Specials Specials `json:"Specials" xml:"Specials"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_specials.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_specials.go new file mode 100644 index 0000000..9bc8204 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_specials.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Specials is a nested struct in cloudapi response +type Specials struct { + Special []Special `json:"Special" xml:"Special"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_stage_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_stage_info.go new file mode 100644 index 0000000..4a605fa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_stage_info.go @@ -0,0 +1,23 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StageInfo is a nested struct in cloudapi response +type StageInfo struct { + StageId string `json:"StageId" xml:"StageId"` + StageName string `json:"StageName" xml:"StageName"` + Description string `json:"Description" xml:"Description"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_stage_items.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_stage_items.go new file mode 100644 index 0000000..fdd93cc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_stage_items.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StageItems is a nested struct in cloudapi response +type StageItems struct { + StageInfo []StageInfo `json:"StageInfo" xml:"StageInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_stage_route_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_stage_route_model.go new file mode 100644 index 0000000..c540259 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_stage_route_model.go @@ -0,0 +1,26 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StageRouteModel is a nested struct in cloudapi response +type StageRouteModel struct { + ParameterCatalog string `json:"ParameterCatalog" xml:"ParameterCatalog"` + ServiceParameterName string `json:"ServiceParameterName" xml:"ServiceParameterName"` + Location string `json:"Location" xml:"Location"` + ParameterType string `json:"ParameterType" xml:"ParameterType"` + RouteMatchSymbol string `json:"RouteMatchSymbol" xml:"RouteMatchSymbol"` + RouteRules RouteRules `json:"RouteRules" xml:"RouteRules"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_param_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_param_item.go new file mode 100644 index 0000000..93900be --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_param_item.go @@ -0,0 +1,24 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SystemParamItem is a nested struct in cloudapi response +type SystemParamItem struct { + ParamName string `json:"ParamName" xml:"ParamName"` + ParamType string `json:"ParamType" xml:"ParamType"` + DemoValue string `json:"DemoValue" xml:"DemoValue"` + Description string `json:"Description" xml:"Description"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_parameter.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_parameter.go new file mode 100644 index 0000000..dba6b09 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_parameter.go @@ -0,0 +1,25 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SystemParameter is a nested struct in cloudapi response +type SystemParameter struct { + ParameterName string `json:"ParameterName" xml:"ParameterName"` + ServiceParameterName string `json:"ServiceParameterName" xml:"ServiceParameterName"` + DemoValue string `json:"DemoValue" xml:"DemoValue"` + Description string `json:"Description" xml:"Description"` + Location string `json:"Location" xml:"Location"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_parameters_in_describe_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_parameters_in_describe_api.go new file mode 100644 index 0000000..faff6a4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_parameters_in_describe_api.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SystemParametersInDescribeApi is a nested struct in cloudapi response +type SystemParametersInDescribeApi struct { + SystemParameter []SystemParameter `json:"SystemParameter" xml:"SystemParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_parameters_in_describe_api_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_parameters_in_describe_api_history.go new file mode 100644 index 0000000..a4faf73 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_parameters_in_describe_api_history.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SystemParametersInDescribeApiHistory is a nested struct in cloudapi response +type SystemParametersInDescribeApiHistory struct { + SystemParameter []SystemParameter `json:"SystemParameter" xml:"SystemParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_parameters_in_describe_deployed_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_parameters_in_describe_deployed_api.go new file mode 100644 index 0000000..8615ef0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_parameters_in_describe_deployed_api.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SystemParametersInDescribeDeployedApi is a nested struct in cloudapi response +type SystemParametersInDescribeDeployedApi struct { + SystemParameter []SystemParameter `json:"SystemParameter" xml:"SystemParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_params.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_params.go new file mode 100644 index 0000000..e9d1703 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_system_params.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SystemParams is a nested struct in cloudapi response +type SystemParams struct { + SystemParamItem []SystemParamItem `json:"SystemParamItem" xml:"SystemParamItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_traffic_control.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_traffic_control.go new file mode 100644 index 0000000..ff1400f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_traffic_control.go @@ -0,0 +1,30 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TrafficControl is a nested struct in cloudapi response +type TrafficControl struct { + TrafficControlId string `json:"TrafficControlId" xml:"TrafficControlId"` + TrafficControlName string `json:"TrafficControlName" xml:"TrafficControlName"` + Description string `json:"Description" xml:"Description"` + TrafficControlUnit string `json:"TrafficControlUnit" xml:"TrafficControlUnit"` + ApiDefault int `json:"ApiDefault" xml:"ApiDefault"` + UserDefault int `json:"UserDefault" xml:"UserDefault"` + AppDefault int `json:"AppDefault" xml:"AppDefault"` + CreatedTime string `json:"CreatedTime" xml:"CreatedTime"` + ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` + SpecialPolicies SpecialPolicies `json:"SpecialPolicies" xml:"SpecialPolicies"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_traffic_control_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_traffic_control_item.go new file mode 100644 index 0000000..887a737 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_traffic_control_item.go @@ -0,0 +1,23 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TrafficControlItem is a nested struct in cloudapi response +type TrafficControlItem struct { + TrafficControlItemId string `json:"TrafficControlItemId" xml:"TrafficControlItemId"` + TrafficControlItemName string `json:"TrafficControlItemName" xml:"TrafficControlItemName"` + BoundTime string `json:"BoundTime" xml:"BoundTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_traffic_control_items.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_traffic_control_items.go new file mode 100644 index 0000000..414b18a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_traffic_control_items.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TrafficControlItems is a nested struct in cloudapi response +type TrafficControlItems struct { + TrafficControlItem []TrafficControlItem `json:"TrafficControlItem" xml:"TrafficControlItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_traffic_controls.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_traffic_controls.go new file mode 100644 index 0000000..fb4ff36 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_traffic_controls.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TrafficControls is a nested struct in cloudapi response +type TrafficControls struct { + TrafficControl []TrafficControl `json:"TrafficControl" xml:"TrafficControl"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_variable_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_variable_item.go new file mode 100644 index 0000000..0dc3c17 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_variable_item.go @@ -0,0 +1,24 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VariableItem is a nested struct in cloudapi response +type VariableItem struct { + VariableName string `json:"VariableName" xml:"VariableName"` + VariableValue string `json:"VariableValue" xml:"VariableValue"` + SupportRoute bool `json:"SupportRoute" xml:"SupportRoute"` + StageRouteModel StageRouteModel `json:"StageRouteModel" xml:"StageRouteModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_variables.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_variables.go new file mode 100644 index 0000000..02ab2c0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_variables.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Variables is a nested struct in cloudapi response +type Variables struct { + VariableItem []VariableItem `json:"VariableItem" xml:"VariableItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_vpc_access_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_vpc_access_attribute.go new file mode 100644 index 0000000..c61cc75 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_vpc_access_attribute.go @@ -0,0 +1,26 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VpcAccessAttribute is a nested struct in cloudapi response +type VpcAccessAttribute struct { + VpcId string `json:"VpcId" xml:"VpcId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + CreatedTime string `json:"CreatedTime" xml:"CreatedTime"` + Port int `json:"Port" xml:"Port"` + RegionId string `json:"RegionId" xml:"RegionId"` + Name string `json:"Name" xml:"Name"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_vpc_access_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_vpc_access_attributes.go new file mode 100644 index 0000000..2602ee4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_vpc_access_attributes.go @@ -0,0 +1,21 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VpcAccessAttributes is a nested struct in cloudapi response +type VpcAccessAttributes struct { + VpcAccessAttribute []VpcAccessAttribute `json:"VpcAccessAttribute" xml:"VpcAccessAttribute"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_vpc_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_vpc_config.go new file mode 100644 index 0000000..31ded50 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/struct_vpc_config.go @@ -0,0 +1,24 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VpcConfig is a nested struct in cloudapi response +type VpcConfig struct { + Name string `json:"Name" xml:"Name"` + Port int `json:"Port" xml:"Port"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + VpcId string `json:"VpcId" xml:"VpcId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/switch_api.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/switch_api.go new file mode 100644 index 0000000..822f7ff --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudapi/switch_api.go @@ -0,0 +1,107 @@ +package cloudapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SwitchApi invokes the cloudapi.SwitchApi API synchronously +// api document: https://help.aliyun.com/api/cloudapi/switchapi.html +func (client *Client) SwitchApi(request *SwitchApiRequest) (response *SwitchApiResponse, err error) { + response = CreateSwitchApiResponse() + err = client.DoAction(request, response) + return +} + +// SwitchApiWithChan invokes the cloudapi.SwitchApi API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/switchapi.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SwitchApiWithChan(request *SwitchApiRequest) (<-chan *SwitchApiResponse, <-chan error) { + responseChan := make(chan *SwitchApiResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SwitchApi(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SwitchApiWithCallback invokes the cloudapi.SwitchApi API asynchronously +// api document: https://help.aliyun.com/api/cloudapi/switchapi.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SwitchApiWithCallback(request *SwitchApiRequest, callback func(response *SwitchApiResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SwitchApiResponse + var err error + defer close(result) + response, err = client.SwitchApi(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SwitchApiRequest is the request struct for api SwitchApi +type SwitchApiRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + ApiId string `position:"Query" name:"ApiId"` + StageName string `position:"Query" name:"StageName"` + Description string `position:"Query" name:"Description"` + HistoryVersion string `position:"Query" name:"HistoryVersion"` +} + +// SwitchApiResponse is the response struct for api SwitchApi +type SwitchApiResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSwitchApiRequest creates a request to invoke SwitchApi API +func CreateSwitchApiRequest() (request *SwitchApiRequest) { + request = &SwitchApiRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudAPI", "2016-07-14", "SwitchApi", "apigateway", "openAPI") + return +} + +// CreateSwitchApiResponse creates a response to parse from SwitchApi response +func CreateSwitchApiResponse() (response *SwitchApiResponse) { + response = &SwitchApiResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/client.go new file mode 100644 index 0000000..98b2075 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/client.go @@ -0,0 +1,81 @@ +package cloudauth + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/compare_faces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/compare_faces.go new file mode 100644 index 0000000..55ee74e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/compare_faces.go @@ -0,0 +1,112 @@ +package cloudauth + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CompareFaces invokes the cloudauth.CompareFaces API synchronously +// api document: https://help.aliyun.com/api/cloudauth/comparefaces.html +func (client *Client) CompareFaces(request *CompareFacesRequest) (response *CompareFacesResponse, err error) { + response = CreateCompareFacesResponse() + err = client.DoAction(request, response) + return +} + +// CompareFacesWithChan invokes the cloudauth.CompareFaces API asynchronously +// api document: https://help.aliyun.com/api/cloudauth/comparefaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CompareFacesWithChan(request *CompareFacesRequest) (<-chan *CompareFacesResponse, <-chan error) { + responseChan := make(chan *CompareFacesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CompareFaces(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CompareFacesWithCallback invokes the cloudauth.CompareFaces API asynchronously +// api document: https://help.aliyun.com/api/cloudauth/comparefaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CompareFacesWithCallback(request *CompareFacesRequest, callback func(response *CompareFacesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CompareFacesResponse + var err error + defer close(result) + response, err = client.CompareFaces(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CompareFacesRequest is the request struct for api CompareFaces +type CompareFacesRequest struct { + *requests.RpcRequest + SourceImageType string `position:"Query" name:"SourceImageType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SourceIp string `position:"Query" name:"SourceIp"` + TargetImageType string `position:"Query" name:"TargetImageType"` + SourceImageValue string `position:"Query" name:"SourceImageValue"` + TargetImageValue string `position:"Query" name:"TargetImageValue"` +} + +// CompareFacesResponse is the response struct for api CompareFaces +type CompareFacesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateCompareFacesRequest creates a request to invoke CompareFaces API +func CreateCompareFacesRequest() (request *CompareFacesRequest) { + request = &CompareFacesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cloudauth", "2018-07-03", "CompareFaces", "cloudauth", "openAPI") + return +} + +// CreateCompareFacesResponse creates a response to parse from CompareFaces response +func CreateCompareFacesResponse() (response *CompareFacesResponse) { + response = &CompareFacesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/detect_face_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/detect_face_attributes.go new file mode 100644 index 0000000..25d21a8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/detect_face_attributes.go @@ -0,0 +1,114 @@ +package cloudauth + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DetectFaceAttributes invokes the cloudauth.DetectFaceAttributes API synchronously +// api document: https://help.aliyun.com/api/cloudauth/detectfaceattributes.html +func (client *Client) DetectFaceAttributes(request *DetectFaceAttributesRequest) (response *DetectFaceAttributesResponse, err error) { + response = CreateDetectFaceAttributesResponse() + err = client.DoAction(request, response) + return +} + +// DetectFaceAttributesWithChan invokes the cloudauth.DetectFaceAttributes API asynchronously +// api document: https://help.aliyun.com/api/cloudauth/detectfaceattributes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetectFaceAttributesWithChan(request *DetectFaceAttributesRequest) (<-chan *DetectFaceAttributesResponse, <-chan error) { + responseChan := make(chan *DetectFaceAttributesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DetectFaceAttributes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DetectFaceAttributesWithCallback invokes the cloudauth.DetectFaceAttributes API asynchronously +// api document: https://help.aliyun.com/api/cloudauth/detectfaceattributes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetectFaceAttributesWithCallback(request *DetectFaceAttributesRequest, callback func(response *DetectFaceAttributesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DetectFaceAttributesResponse + var err error + defer close(result) + response, err = client.DetectFaceAttributes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DetectFaceAttributesRequest is the request struct for api DetectFaceAttributes +type DetectFaceAttributesRequest struct { + *requests.RpcRequest + MaxNumPhotosPerCategory requests.Integer `position:"Query" name:"MaxNumPhotosPerCategory"` + MaxFaceNum requests.Integer `position:"Query" name:"MaxFaceNum"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SourceIp string `position:"Query" name:"SourceIp"` + RetAttributes string `position:"Query" name:"RetAttributes"` + MaterialValue string `position:"Query" name:"MaterialValue"` + DontSaveDB requests.Boolean `position:"Query" name:"DontSaveDB"` + ClientTag string `position:"Query" name:"ClientTag"` +} + +// DetectFaceAttributesResponse is the response struct for api DetectFaceAttributes +type DetectFaceAttributesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateDetectFaceAttributesRequest creates a request to invoke DetectFaceAttributes API +func CreateDetectFaceAttributesRequest() (request *DetectFaceAttributesRequest) { + request = &DetectFaceAttributesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cloudauth", "2018-07-03", "DetectFaceAttributes", "cloudauth", "openAPI") + return +} + +// CreateDetectFaceAttributesResponse creates a response to parse from DetectFaceAttributes response +func CreateDetectFaceAttributesResponse() (response *DetectFaceAttributesResponse) { + response = &DetectFaceAttributesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/get_materials.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/get_materials.go new file mode 100644 index 0000000..955eb20 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/get_materials.go @@ -0,0 +1,110 @@ +package cloudauth + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetMaterials invokes the cloudauth.GetMaterials API synchronously +// api document: https://help.aliyun.com/api/cloudauth/getmaterials.html +func (client *Client) GetMaterials(request *GetMaterialsRequest) (response *GetMaterialsResponse, err error) { + response = CreateGetMaterialsResponse() + err = client.DoAction(request, response) + return +} + +// GetMaterialsWithChan invokes the cloudauth.GetMaterials API asynchronously +// api document: https://help.aliyun.com/api/cloudauth/getmaterials.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetMaterialsWithChan(request *GetMaterialsRequest) (<-chan *GetMaterialsResponse, <-chan error) { + responseChan := make(chan *GetMaterialsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetMaterials(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetMaterialsWithCallback invokes the cloudauth.GetMaterials API asynchronously +// api document: https://help.aliyun.com/api/cloudauth/getmaterials.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetMaterialsWithCallback(request *GetMaterialsRequest, callback func(response *GetMaterialsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetMaterialsResponse + var err error + defer close(result) + response, err = client.GetMaterials(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetMaterialsRequest is the request struct for api GetMaterials +type GetMaterialsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Biz string `position:"Query" name:"Biz"` + SourceIp string `position:"Query" name:"SourceIp"` + TicketId string `position:"Query" name:"TicketId"` +} + +// GetMaterialsResponse is the response struct for api GetMaterials +type GetMaterialsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateGetMaterialsRequest creates a request to invoke GetMaterials API +func CreateGetMaterialsRequest() (request *GetMaterialsRequest) { + request = &GetMaterialsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cloudauth", "2018-07-03", "GetMaterials", "cloudauth", "openAPI") + return +} + +// CreateGetMaterialsResponse creates a response to parse from GetMaterials response +func CreateGetMaterialsResponse() (response *GetMaterialsResponse) { + response = &GetMaterialsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/get_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/get_status.go new file mode 100644 index 0000000..e808dbb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/get_status.go @@ -0,0 +1,110 @@ +package cloudauth + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetStatus invokes the cloudauth.GetStatus API synchronously +// api document: https://help.aliyun.com/api/cloudauth/getstatus.html +func (client *Client) GetStatus(request *GetStatusRequest) (response *GetStatusResponse, err error) { + response = CreateGetStatusResponse() + err = client.DoAction(request, response) + return +} + +// GetStatusWithChan invokes the cloudauth.GetStatus API asynchronously +// api document: https://help.aliyun.com/api/cloudauth/getstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetStatusWithChan(request *GetStatusRequest) (<-chan *GetStatusResponse, <-chan error) { + responseChan := make(chan *GetStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetStatusWithCallback invokes the cloudauth.GetStatus API asynchronously +// api document: https://help.aliyun.com/api/cloudauth/getstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetStatusWithCallback(request *GetStatusRequest, callback func(response *GetStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetStatusResponse + var err error + defer close(result) + response, err = client.GetStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetStatusRequest is the request struct for api GetStatus +type GetStatusRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Biz string `position:"Query" name:"Biz"` + SourceIp string `position:"Query" name:"SourceIp"` + TicketId string `position:"Query" name:"TicketId"` +} + +// GetStatusResponse is the response struct for api GetStatus +type GetStatusResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateGetStatusRequest creates a request to invoke GetStatus API +func CreateGetStatusRequest() (request *GetStatusRequest) { + request = &GetStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cloudauth", "2018-07-03", "GetStatus", "cloudauth", "openAPI") + return +} + +// CreateGetStatusResponse creates a response to parse from GetStatus response +func CreateGetStatusResponse() (response *GetStatusResponse) { + response = &GetStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/get_verify_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/get_verify_token.go new file mode 100644 index 0000000..df1d856 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/get_verify_token.go @@ -0,0 +1,112 @@ +package cloudauth + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetVerifyToken invokes the cloudauth.GetVerifyToken API synchronously +// api document: https://help.aliyun.com/api/cloudauth/getverifytoken.html +func (client *Client) GetVerifyToken(request *GetVerifyTokenRequest) (response *GetVerifyTokenResponse, err error) { + response = CreateGetVerifyTokenResponse() + err = client.DoAction(request, response) + return +} + +// GetVerifyTokenWithChan invokes the cloudauth.GetVerifyToken API asynchronously +// api document: https://help.aliyun.com/api/cloudauth/getverifytoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetVerifyTokenWithChan(request *GetVerifyTokenRequest) (<-chan *GetVerifyTokenResponse, <-chan error) { + responseChan := make(chan *GetVerifyTokenResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetVerifyToken(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetVerifyTokenWithCallback invokes the cloudauth.GetVerifyToken API asynchronously +// api document: https://help.aliyun.com/api/cloudauth/getverifytoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetVerifyTokenWithCallback(request *GetVerifyTokenRequest, callback func(response *GetVerifyTokenResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetVerifyTokenResponse + var err error + defer close(result) + response, err = client.GetVerifyToken(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetVerifyTokenRequest is the request struct for api GetVerifyToken +type GetVerifyTokenRequest struct { + *requests.RpcRequest + UserData string `position:"Query" name:"UserData"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Biz string `position:"Query" name:"Biz"` + SourceIp string `position:"Query" name:"SourceIp"` + Binding string `position:"Query" name:"Binding"` + TicketId string `position:"Query" name:"TicketId"` +} + +// GetVerifyTokenResponse is the response struct for api GetVerifyToken +type GetVerifyTokenResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateGetVerifyTokenRequest creates a request to invoke GetVerifyToken API +func CreateGetVerifyTokenRequest() (request *GetVerifyTokenRequest) { + request = &GetVerifyTokenRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cloudauth", "2018-07-03", "GetVerifyToken", "cloudauth", "openAPI") + return +} + +// CreateGetVerifyTokenResponse creates a response to parse from GetVerifyToken response +func CreateGetVerifyTokenResponse() (response *GetVerifyTokenResponse) { + response = &GetVerifyTokenResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_data.go new file mode 100644 index 0000000..3d8b079 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_data.go @@ -0,0 +1,41 @@ +package cloudauth + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 cloudauth response +type Data struct { + Name string `json:"Name" xml:"Name"` + IdCardFrontPic string `json:"IdCardFrontPic" xml:"IdCardFrontPic"` + TrustedScore float64 `json:"TrustedScore" xml:"TrustedScore"` + FacePic string `json:"FacePic" xml:"FacePic"` + IdCardExpiry string `json:"IdCardExpiry" xml:"IdCardExpiry"` + AuditConclusions string `json:"AuditConclusions" xml:"AuditConclusions"` + IdCardType string `json:"IdCardType" xml:"IdCardType"` + SimilarityScore float64 `json:"SimilarityScore" xml:"SimilarityScore"` + IdentificationNumber string `json:"IdentificationNumber" xml:"IdentificationNumber"` + Address string `json:"Address" xml:"Address"` + Sex string `json:"Sex" xml:"Sex"` + ImgWidth int `json:"ImgWidth" xml:"ImgWidth"` + IdCardBackPic string `json:"IdCardBackPic" xml:"IdCardBackPic"` + CloudauthPageUrl string `json:"CloudauthPageUrl" xml:"CloudauthPageUrl"` + ImgHeight int `json:"ImgHeight" xml:"ImgHeight"` + StatusCode int `json:"StatusCode" xml:"StatusCode"` + ConfidenceThresholds string `json:"ConfidenceThresholds" xml:"ConfidenceThresholds"` + StsToken StsToken `json:"StsToken" xml:"StsToken"` + VerifyToken VerifyToken `json:"VerifyToken" xml:"VerifyToken"` + VerifyStatus VerifyStatus `json:"VerifyStatus" xml:"VerifyStatus"` + FaceInfos FaceInfos `json:"FaceInfos" xml:"FaceInfos"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_face_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_face_attributes.go new file mode 100644 index 0000000..275b223 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_face_attributes.go @@ -0,0 +1,28 @@ +package cloudauth + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FaceAttributes is a nested struct in cloudauth response +type FaceAttributes struct { + Age int `json:"Age" xml:"Age"` + Glasses string `json:"Glasses" xml:"Glasses"` + Facetype string `json:"Facetype" xml:"Facetype"` + Blur float64 `json:"Blur" xml:"Blur"` + Ethnicity string `json:"Ethnicity" xml:"Ethnicity"` + Gender Gender `json:"Gender" xml:"Gender"` + Smiling Smiling `json:"Smiling" xml:"Smiling"` + Headpose Headpose `json:"Headpose" xml:"Headpose"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_face_attributes_detect_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_face_attributes_detect_info.go new file mode 100644 index 0000000..b099f0e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_face_attributes_detect_info.go @@ -0,0 +1,22 @@ +package cloudauth + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FaceAttributesDetectInfo is a nested struct in cloudauth response +type FaceAttributesDetectInfo struct { + FaceRect FaceRect `json:"FaceRect" xml:"FaceRect"` + FaceAttributes FaceAttributes `json:"FaceAttributes" xml:"FaceAttributes"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_face_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_face_infos.go new file mode 100644 index 0000000..7bdff38 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_face_infos.go @@ -0,0 +1,21 @@ +package cloudauth + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FaceInfos is a nested struct in cloudauth response +type FaceInfos struct { + FaceAttributesDetectInfo []FaceAttributesDetectInfo `json:"FaceAttributesDetectInfo" xml:"FaceAttributesDetectInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_face_rect.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_face_rect.go new file mode 100644 index 0000000..f299443 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_face_rect.go @@ -0,0 +1,24 @@ +package cloudauth + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FaceRect is a nested struct in cloudauth response +type FaceRect struct { + Top int `json:"Top" xml:"Top"` + Left int `json:"Left" xml:"Left"` + Width int `json:"Width" xml:"Width"` + Height int `json:"Height" xml:"Height"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_gender.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_gender.go new file mode 100644 index 0000000..4c88b1c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_gender.go @@ -0,0 +1,22 @@ +package cloudauth + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Gender is a nested struct in cloudauth response +type Gender struct { + Score float64 `json:"Score" xml:"Score"` + Value string `json:"Value" xml:"Value"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_headpose.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_headpose.go new file mode 100644 index 0000000..1f9a49e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_headpose.go @@ -0,0 +1,23 @@ +package cloudauth + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Headpose is a nested struct in cloudauth response +type Headpose struct { + PitchAngle float64 `json:"PitchAngle" xml:"PitchAngle"` + RollAngle float64 `json:"RollAngle" xml:"RollAngle"` + YawAngle float64 `json:"YawAngle" xml:"YawAngle"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_smiling.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_smiling.go new file mode 100644 index 0000000..ec9bb7f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_smiling.go @@ -0,0 +1,22 @@ +package cloudauth + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Smiling is a nested struct in cloudauth response +type Smiling struct { + Value float64 `json:"Value" xml:"Value"` + Threshold float64 `json:"Threshold" xml:"Threshold"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_sts_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_sts_token.go new file mode 100644 index 0000000..52ac7a7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_sts_token.go @@ -0,0 +1,27 @@ +package cloudauth + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StsToken is a nested struct in cloudauth response +type StsToken struct { + AccessKeyId string `json:"AccessKeyId" xml:"AccessKeyId"` + AccessKeySecret string `json:"AccessKeySecret" xml:"AccessKeySecret"` + Expiration string `json:"Expiration" xml:"Expiration"` + EndPoint string `json:"EndPoint" xml:"EndPoint"` + BucketName string `json:"BucketName" xml:"BucketName"` + Path string `json:"Path" xml:"Path"` + Token string `json:"Token" xml:"Token"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_verify_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_verify_status.go new file mode 100644 index 0000000..baddbba --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_verify_status.go @@ -0,0 +1,23 @@ +package cloudauth + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VerifyStatus is a nested struct in cloudauth response +type VerifyStatus struct { + StatusCode int `json:"StatusCode" xml:"StatusCode"` + TrustedScore float64 `json:"TrustedScore" xml:"TrustedScore"` + SimilarityScore float64 `json:"SimilarityScore" xml:"SimilarityScore"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_verify_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_verify_token.go new file mode 100644 index 0000000..ae033ce --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/struct_verify_token.go @@ -0,0 +1,22 @@ +package cloudauth + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VerifyToken is a nested struct in cloudauth response +type VerifyToken struct { + Token string `json:"Token" xml:"Token"` + DurationSeconds int `json:"DurationSeconds" xml:"DurationSeconds"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/submit_materials.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/submit_materials.go new file mode 100644 index 0000000..0659988 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudauth/submit_materials.go @@ -0,0 +1,116 @@ +package cloudauth + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitMaterials invokes the cloudauth.SubmitMaterials API synchronously +// api document: https://help.aliyun.com/api/cloudauth/submitmaterials.html +func (client *Client) SubmitMaterials(request *SubmitMaterialsRequest) (response *SubmitMaterialsResponse, err error) { + response = CreateSubmitMaterialsResponse() + err = client.DoAction(request, response) + return +} + +// SubmitMaterialsWithChan invokes the cloudauth.SubmitMaterials API asynchronously +// api document: https://help.aliyun.com/api/cloudauth/submitmaterials.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitMaterialsWithChan(request *SubmitMaterialsRequest) (<-chan *SubmitMaterialsResponse, <-chan error) { + responseChan := make(chan *SubmitMaterialsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitMaterials(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitMaterialsWithCallback invokes the cloudauth.SubmitMaterials API asynchronously +// api document: https://help.aliyun.com/api/cloudauth/submitmaterials.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitMaterialsWithCallback(request *SubmitMaterialsRequest, callback func(response *SubmitMaterialsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitMaterialsResponse + var err error + defer close(result) + response, err = client.SubmitMaterials(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitMaterialsRequest is the request struct for api SubmitMaterials +type SubmitMaterialsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SourceIp string `position:"Query" name:"SourceIp"` + Material *[]SubmitMaterialsMaterial `position:"Query" name:"Material" type:"Repeated"` + VerifyToken string `position:"Query" name:"VerifyToken"` +} + +// SubmitMaterialsMaterial is a repeated param struct in SubmitMaterialsRequest +type SubmitMaterialsMaterial struct { + MaterialType string `name:"MaterialType"` + Value string `name:"Value"` +} + +// SubmitMaterialsResponse is the response struct for api SubmitMaterials +type SubmitMaterialsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateSubmitMaterialsRequest creates a request to invoke SubmitMaterials API +func CreateSubmitMaterialsRequest() (request *SubmitMaterialsRequest) { + request = &SubmitMaterialsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cloudauth", "2018-07-03", "SubmitMaterials", "cloudauth", "openAPI") + return +} + +// CreateSubmitMaterialsResponse creates a response to parse from SubmitMaterials response +func CreateSubmitMaterialsResponse() (response *SubmitMaterialsResponse) { + response = &SubmitMaterialsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/activate_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/activate_photos.go new file mode 100644 index 0000000..3a333ab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/activate_photos.go @@ -0,0 +1,109 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ActivatePhotos invokes the cloudphoto.ActivatePhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/activatephotos.html +func (client *Client) ActivatePhotos(request *ActivatePhotosRequest) (response *ActivatePhotosResponse, err error) { + response = CreateActivatePhotosResponse() + err = client.DoAction(request, response) + return +} + +// ActivatePhotosWithChan invokes the cloudphoto.ActivatePhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/activatephotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ActivatePhotosWithChan(request *ActivatePhotosRequest) (<-chan *ActivatePhotosResponse, <-chan error) { + responseChan := make(chan *ActivatePhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ActivatePhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ActivatePhotosWithCallback invokes the cloudphoto.ActivatePhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/activatephotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ActivatePhotosWithCallback(request *ActivatePhotosRequest, callback func(response *ActivatePhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ActivatePhotosResponse + var err error + defer close(result) + response, err = client.ActivatePhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ActivatePhotosRequest is the request struct for api ActivatePhotos +type ActivatePhotosRequest struct { + *requests.RpcRequest + PhotoId *[]string `position:"Query" name:"PhotoId" type:"Repeated"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// ActivatePhotosResponse is the response struct for api ActivatePhotos +type ActivatePhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results []Result `json:"Results" xml:"Results"` +} + +// CreateActivatePhotosRequest creates a request to invoke ActivatePhotos API +func CreateActivatePhotosRequest() (request *ActivatePhotosRequest) { + request = &ActivatePhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ActivatePhotos", "cloudphoto", "openAPI") + return +} + +// CreateActivatePhotosResponse creates a response to parse from ActivatePhotos response +func CreateActivatePhotosResponse() (response *ActivatePhotosResponse) { + response = &ActivatePhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/add_album_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/add_album_photos.go new file mode 100644 index 0000000..a9dfa6e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/add_album_photos.go @@ -0,0 +1,110 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddAlbumPhotos invokes the cloudphoto.AddAlbumPhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/addalbumphotos.html +func (client *Client) AddAlbumPhotos(request *AddAlbumPhotosRequest) (response *AddAlbumPhotosResponse, err error) { + response = CreateAddAlbumPhotosResponse() + err = client.DoAction(request, response) + return +} + +// AddAlbumPhotosWithChan invokes the cloudphoto.AddAlbumPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/addalbumphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddAlbumPhotosWithChan(request *AddAlbumPhotosRequest) (<-chan *AddAlbumPhotosResponse, <-chan error) { + responseChan := make(chan *AddAlbumPhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddAlbumPhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddAlbumPhotosWithCallback invokes the cloudphoto.AddAlbumPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/addalbumphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddAlbumPhotosWithCallback(request *AddAlbumPhotosRequest, callback func(response *AddAlbumPhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddAlbumPhotosResponse + var err error + defer close(result) + response, err = client.AddAlbumPhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddAlbumPhotosRequest is the request struct for api AddAlbumPhotos +type AddAlbumPhotosRequest struct { + *requests.RpcRequest + AlbumId requests.Integer `position:"Query" name:"AlbumId"` + PhotoId *[]string `position:"Query" name:"PhotoId" type:"Repeated"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// AddAlbumPhotosResponse is the response struct for api AddAlbumPhotos +type AddAlbumPhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results []Result `json:"Results" xml:"Results"` +} + +// CreateAddAlbumPhotosRequest creates a request to invoke AddAlbumPhotos API +func CreateAddAlbumPhotosRequest() (request *AddAlbumPhotosRequest) { + request = &AddAlbumPhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "AddAlbumPhotos", "cloudphoto", "openAPI") + return +} + +// CreateAddAlbumPhotosResponse creates a response to parse from AddAlbumPhotos response +func CreateAddAlbumPhotosResponse() (response *AddAlbumPhotosResponse) { + response = &AddAlbumPhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/client.go new file mode 100644 index 0000000..13f6d99 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/client.go @@ -0,0 +1,81 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/create_album.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/create_album.go new file mode 100644 index 0000000..e8efdc6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/create_album.go @@ -0,0 +1,110 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateAlbum invokes the cloudphoto.CreateAlbum API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/createalbum.html +func (client *Client) CreateAlbum(request *CreateAlbumRequest) (response *CreateAlbumResponse, err error) { + response = CreateCreateAlbumResponse() + err = client.DoAction(request, response) + return +} + +// CreateAlbumWithChan invokes the cloudphoto.CreateAlbum API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/createalbum.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateAlbumWithChan(request *CreateAlbumRequest) (<-chan *CreateAlbumResponse, <-chan error) { + responseChan := make(chan *CreateAlbumResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateAlbum(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateAlbumWithCallback invokes the cloudphoto.CreateAlbum API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/createalbum.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateAlbumWithCallback(request *CreateAlbumRequest, callback func(response *CreateAlbumResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateAlbumResponse + var err error + defer close(result) + response, err = client.CreateAlbum(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateAlbumRequest is the request struct for api CreateAlbum +type CreateAlbumRequest struct { + *requests.RpcRequest + AlbumName string `position:"Query" name:"AlbumName"` + StoreName string `position:"Query" name:"StoreName"` + Remark string `position:"Query" name:"Remark"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// CreateAlbumResponse is the response struct for api CreateAlbum +type CreateAlbumResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Album Album `json:"Album" xml:"Album"` +} + +// CreateCreateAlbumRequest creates a request to invoke CreateAlbum API +func CreateCreateAlbumRequest() (request *CreateAlbumRequest) { + request = &CreateAlbumRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "CreateAlbum", "cloudphoto", "openAPI") + return +} + +// CreateCreateAlbumResponse creates a response to parse from CreateAlbum response +func CreateCreateAlbumResponse() (response *CreateAlbumResponse) { + response = &CreateAlbumResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/create_event.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/create_event.go new file mode 100644 index 0000000..c8bd172 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/create_event.go @@ -0,0 +1,117 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateEvent invokes the cloudphoto.CreateEvent API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/createevent.html +func (client *Client) CreateEvent(request *CreateEventRequest) (response *CreateEventResponse, err error) { + response = CreateCreateEventResponse() + err = client.DoAction(request, response) + return +} + +// CreateEventWithChan invokes the cloudphoto.CreateEvent API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/createevent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateEventWithChan(request *CreateEventRequest) (<-chan *CreateEventResponse, <-chan error) { + responseChan := make(chan *CreateEventResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateEvent(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateEventWithCallback invokes the cloudphoto.CreateEvent API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/createevent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateEventWithCallback(request *CreateEventRequest, callback func(response *CreateEventResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateEventResponse + var err error + defer close(result) + response, err = client.CreateEvent(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateEventRequest is the request struct for api CreateEvent +type CreateEventRequest struct { + *requests.RpcRequest + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` + Title string `position:"Query" name:"Title"` + StartAt requests.Integer `position:"Query" name:"StartAt"` + EndAt requests.Integer `position:"Query" name:"EndAt"` + Identity string `position:"Query" name:"Identity"` + WeixinTitle string `position:"Query" name:"WeixinTitle"` + SplashPhotoId string `position:"Query" name:"SplashPhotoId"` + BannerPhotoId string `position:"Query" name:"BannerPhotoId"` + WatermarkPhotoId string `position:"Query" name:"WatermarkPhotoId"` + Remark string `position:"Query" name:"Remark"` +} + +// CreateEventResponse is the response struct for api CreateEvent +type CreateEventResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Event Event `json:"Event" xml:"Event"` +} + +// CreateCreateEventRequest creates a request to invoke CreateEvent API +func CreateCreateEventRequest() (request *CreateEventRequest) { + request = &CreateEventRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "CreateEvent", "cloudphoto", "openAPI") + return +} + +// CreateCreateEventResponse creates a response to parse from CreateEvent response +func CreateCreateEventResponse() (response *CreateEventResponse) { + response = &CreateEventResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/create_photo.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/create_photo.go new file mode 100644 index 0000000..bc88e66 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/create_photo.go @@ -0,0 +1,116 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreatePhoto invokes the cloudphoto.CreatePhoto API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/createphoto.html +func (client *Client) CreatePhoto(request *CreatePhotoRequest) (response *CreatePhotoResponse, err error) { + response = CreateCreatePhotoResponse() + err = client.DoAction(request, response) + return +} + +// CreatePhotoWithChan invokes the cloudphoto.CreatePhoto API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/createphoto.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreatePhotoWithChan(request *CreatePhotoRequest) (<-chan *CreatePhotoResponse, <-chan error) { + responseChan := make(chan *CreatePhotoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreatePhoto(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreatePhotoWithCallback invokes the cloudphoto.CreatePhoto API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/createphoto.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreatePhotoWithCallback(request *CreatePhotoRequest, callback func(response *CreatePhotoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreatePhotoResponse + var err error + defer close(result) + response, err = client.CreatePhoto(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreatePhotoRequest is the request struct for api CreatePhoto +type CreatePhotoRequest struct { + *requests.RpcRequest + FileId string `position:"Query" name:"FileId"` + SessionId string `position:"Query" name:"SessionId"` + UploadType string `position:"Query" name:"UploadType"` + PhotoTitle string `position:"Query" name:"PhotoTitle"` + StoreName string `position:"Query" name:"StoreName"` + Remark string `position:"Query" name:"Remark"` + LibraryId string `position:"Query" name:"LibraryId"` + Staging string `position:"Query" name:"Staging"` + ShareExpireTime requests.Integer `position:"Query" name:"ShareExpireTime"` + TakenAt requests.Integer `position:"Query" name:"TakenAt"` +} + +// CreatePhotoResponse is the response struct for api CreatePhoto +type CreatePhotoResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Photo Photo `json:"Photo" xml:"Photo"` +} + +// CreateCreatePhotoRequest creates a request to invoke CreatePhoto API +func CreateCreatePhotoRequest() (request *CreatePhotoRequest) { + request = &CreatePhotoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "CreatePhoto", "cloudphoto", "openAPI") + return +} + +// CreateCreatePhotoResponse creates a response to parse from CreatePhoto response +func CreateCreatePhotoResponse() (response *CreatePhotoResponse) { + response = &CreatePhotoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/create_photo_store.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/create_photo_store.go new file mode 100644 index 0000000..eed8d55 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/create_photo_store.go @@ -0,0 +1,109 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreatePhotoStore invokes the cloudphoto.CreatePhotoStore API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/createphotostore.html +func (client *Client) CreatePhotoStore(request *CreatePhotoStoreRequest) (response *CreatePhotoStoreResponse, err error) { + response = CreateCreatePhotoStoreResponse() + err = client.DoAction(request, response) + return +} + +// CreatePhotoStoreWithChan invokes the cloudphoto.CreatePhotoStore API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/createphotostore.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreatePhotoStoreWithChan(request *CreatePhotoStoreRequest) (<-chan *CreatePhotoStoreResponse, <-chan error) { + responseChan := make(chan *CreatePhotoStoreResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreatePhotoStore(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreatePhotoStoreWithCallback invokes the cloudphoto.CreatePhotoStore API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/createphotostore.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreatePhotoStoreWithCallback(request *CreatePhotoStoreRequest, callback func(response *CreatePhotoStoreResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreatePhotoStoreResponse + var err error + defer close(result) + response, err = client.CreatePhotoStore(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreatePhotoStoreRequest is the request struct for api CreatePhotoStore +type CreatePhotoStoreRequest struct { + *requests.RpcRequest + StoreName string `position:"Query" name:"StoreName"` + DefaultQuota requests.Integer `position:"Query" name:"DefaultQuota"` + BucketName string `position:"Query" name:"BucketName"` + Remark string `position:"Query" name:"Remark"` +} + +// CreatePhotoStoreResponse is the response struct for api CreatePhotoStore +type CreatePhotoStoreResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` +} + +// CreateCreatePhotoStoreRequest creates a request to invoke CreatePhotoStore API +func CreateCreatePhotoStoreRequest() (request *CreatePhotoStoreRequest) { + request = &CreatePhotoStoreRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "CreatePhotoStore", "cloudphoto", "openAPI") + return +} + +// CreateCreatePhotoStoreResponse creates a response to parse from CreatePhotoStore response +func CreateCreatePhotoStoreResponse() (response *CreatePhotoStoreResponse) { + response = &CreatePhotoStoreResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/create_transaction.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/create_transaction.go new file mode 100644 index 0000000..43e8eab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/create_transaction.go @@ -0,0 +1,112 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateTransaction invokes the cloudphoto.CreateTransaction API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/createtransaction.html +func (client *Client) CreateTransaction(request *CreateTransactionRequest) (response *CreateTransactionResponse, err error) { + response = CreateCreateTransactionResponse() + err = client.DoAction(request, response) + return +} + +// CreateTransactionWithChan invokes the cloudphoto.CreateTransaction API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/createtransaction.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateTransactionWithChan(request *CreateTransactionRequest) (<-chan *CreateTransactionResponse, <-chan error) { + responseChan := make(chan *CreateTransactionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateTransaction(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateTransactionWithCallback invokes the cloudphoto.CreateTransaction API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/createtransaction.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateTransactionWithCallback(request *CreateTransactionRequest, callback func(response *CreateTransactionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateTransactionResponse + var err error + defer close(result) + response, err = client.CreateTransaction(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateTransactionRequest is the request struct for api CreateTransaction +type CreateTransactionRequest struct { + *requests.RpcRequest + Size requests.Integer `position:"Query" name:"Size"` + Ext string `position:"Query" name:"Ext"` + Force string `position:"Query" name:"Force"` + Md5 string `position:"Query" name:"Md5"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// CreateTransactionResponse is the response struct for api CreateTransaction +type CreateTransactionResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Transaction Transaction `json:"Transaction" xml:"Transaction"` +} + +// CreateCreateTransactionRequest creates a request to invoke CreateTransaction API +func CreateCreateTransactionRequest() (request *CreateTransactionRequest) { + request = &CreateTransactionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "CreateTransaction", "cloudphoto", "openAPI") + return +} + +// CreateCreateTransactionResponse creates a response to parse from CreateTransaction response +func CreateCreateTransactionResponse() (response *CreateTransactionResponse) { + response = &CreateTransactionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/delete_albums.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/delete_albums.go new file mode 100644 index 0000000..042044c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/delete_albums.go @@ -0,0 +1,109 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteAlbums invokes the cloudphoto.DeleteAlbums API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/deletealbums.html +func (client *Client) DeleteAlbums(request *DeleteAlbumsRequest) (response *DeleteAlbumsResponse, err error) { + response = CreateDeleteAlbumsResponse() + err = client.DoAction(request, response) + return +} + +// DeleteAlbumsWithChan invokes the cloudphoto.DeleteAlbums API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/deletealbums.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAlbumsWithChan(request *DeleteAlbumsRequest) (<-chan *DeleteAlbumsResponse, <-chan error) { + responseChan := make(chan *DeleteAlbumsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteAlbums(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteAlbumsWithCallback invokes the cloudphoto.DeleteAlbums API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/deletealbums.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAlbumsWithCallback(request *DeleteAlbumsRequest, callback func(response *DeleteAlbumsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteAlbumsResponse + var err error + defer close(result) + response, err = client.DeleteAlbums(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteAlbumsRequest is the request struct for api DeleteAlbums +type DeleteAlbumsRequest struct { + *requests.RpcRequest + AlbumId *[]string `position:"Query" name:"AlbumId" type:"Repeated"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// DeleteAlbumsResponse is the response struct for api DeleteAlbums +type DeleteAlbumsResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results []Result `json:"Results" xml:"Results"` +} + +// CreateDeleteAlbumsRequest creates a request to invoke DeleteAlbums API +func CreateDeleteAlbumsRequest() (request *DeleteAlbumsRequest) { + request = &DeleteAlbumsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "DeleteAlbums", "cloudphoto", "openAPI") + return +} + +// CreateDeleteAlbumsResponse creates a response to parse from DeleteAlbums response +func CreateDeleteAlbumsResponse() (response *DeleteAlbumsResponse) { + response = &DeleteAlbumsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/delete_event.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/delete_event.go new file mode 100644 index 0000000..c5419fc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/delete_event.go @@ -0,0 +1,108 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteEvent invokes the cloudphoto.DeleteEvent API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/deleteevent.html +func (client *Client) DeleteEvent(request *DeleteEventRequest) (response *DeleteEventResponse, err error) { + response = CreateDeleteEventResponse() + err = client.DoAction(request, response) + return +} + +// DeleteEventWithChan invokes the cloudphoto.DeleteEvent API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/deleteevent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteEventWithChan(request *DeleteEventRequest) (<-chan *DeleteEventResponse, <-chan error) { + responseChan := make(chan *DeleteEventResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteEvent(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteEventWithCallback invokes the cloudphoto.DeleteEvent API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/deleteevent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteEventWithCallback(request *DeleteEventRequest, callback func(response *DeleteEventResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteEventResponse + var err error + defer close(result) + response, err = client.DeleteEvent(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteEventRequest is the request struct for api DeleteEvent +type DeleteEventRequest struct { + *requests.RpcRequest + EventId requests.Integer `position:"Query" name:"EventId"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// DeleteEventResponse is the response struct for api DeleteEvent +type DeleteEventResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` +} + +// CreateDeleteEventRequest creates a request to invoke DeleteEvent API +func CreateDeleteEventRequest() (request *DeleteEventRequest) { + request = &DeleteEventRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "DeleteEvent", "cloudphoto", "openAPI") + return +} + +// CreateDeleteEventResponse creates a response to parse from DeleteEvent response +func CreateDeleteEventResponse() (response *DeleteEventResponse) { + response = &DeleteEventResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/delete_faces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/delete_faces.go new file mode 100644 index 0000000..c906f49 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/delete_faces.go @@ -0,0 +1,109 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteFaces invokes the cloudphoto.DeleteFaces API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/deletefaces.html +func (client *Client) DeleteFaces(request *DeleteFacesRequest) (response *DeleteFacesResponse, err error) { + response = CreateDeleteFacesResponse() + err = client.DoAction(request, response) + return +} + +// DeleteFacesWithChan invokes the cloudphoto.DeleteFaces API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/deletefaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteFacesWithChan(request *DeleteFacesRequest) (<-chan *DeleteFacesResponse, <-chan error) { + responseChan := make(chan *DeleteFacesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteFaces(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteFacesWithCallback invokes the cloudphoto.DeleteFaces API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/deletefaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteFacesWithCallback(request *DeleteFacesRequest, callback func(response *DeleteFacesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteFacesResponse + var err error + defer close(result) + response, err = client.DeleteFaces(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteFacesRequest is the request struct for api DeleteFaces +type DeleteFacesRequest struct { + *requests.RpcRequest + FaceId *[]string `position:"Query" name:"FaceId" type:"Repeated"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// DeleteFacesResponse is the response struct for api DeleteFaces +type DeleteFacesResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results []Result `json:"Results" xml:"Results"` +} + +// CreateDeleteFacesRequest creates a request to invoke DeleteFaces API +func CreateDeleteFacesRequest() (request *DeleteFacesRequest) { + request = &DeleteFacesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "DeleteFaces", "cloudphoto", "openAPI") + return +} + +// CreateDeleteFacesResponse creates a response to parse from DeleteFaces response +func CreateDeleteFacesResponse() (response *DeleteFacesResponse) { + response = &DeleteFacesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/delete_photo_store.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/delete_photo_store.go new file mode 100644 index 0000000..9ff955b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/delete_photo_store.go @@ -0,0 +1,106 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeletePhotoStore invokes the cloudphoto.DeletePhotoStore API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/deletephotostore.html +func (client *Client) DeletePhotoStore(request *DeletePhotoStoreRequest) (response *DeletePhotoStoreResponse, err error) { + response = CreateDeletePhotoStoreResponse() + err = client.DoAction(request, response) + return +} + +// DeletePhotoStoreWithChan invokes the cloudphoto.DeletePhotoStore API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/deletephotostore.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeletePhotoStoreWithChan(request *DeletePhotoStoreRequest) (<-chan *DeletePhotoStoreResponse, <-chan error) { + responseChan := make(chan *DeletePhotoStoreResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeletePhotoStore(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeletePhotoStoreWithCallback invokes the cloudphoto.DeletePhotoStore API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/deletephotostore.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeletePhotoStoreWithCallback(request *DeletePhotoStoreRequest, callback func(response *DeletePhotoStoreResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeletePhotoStoreResponse + var err error + defer close(result) + response, err = client.DeletePhotoStore(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeletePhotoStoreRequest is the request struct for api DeletePhotoStore +type DeletePhotoStoreRequest struct { + *requests.RpcRequest + StoreName string `position:"Query" name:"StoreName"` +} + +// DeletePhotoStoreResponse is the response struct for api DeletePhotoStore +type DeletePhotoStoreResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` +} + +// CreateDeletePhotoStoreRequest creates a request to invoke DeletePhotoStore API +func CreateDeletePhotoStoreRequest() (request *DeletePhotoStoreRequest) { + request = &DeletePhotoStoreRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "DeletePhotoStore", "cloudphoto", "openAPI") + return +} + +// CreateDeletePhotoStoreResponse creates a response to parse from DeletePhotoStore response +func CreateDeletePhotoStoreResponse() (response *DeletePhotoStoreResponse) { + response = &DeletePhotoStoreResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/delete_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/delete_photos.go new file mode 100644 index 0000000..bf42041 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/delete_photos.go @@ -0,0 +1,109 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeletePhotos invokes the cloudphoto.DeletePhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/deletephotos.html +func (client *Client) DeletePhotos(request *DeletePhotosRequest) (response *DeletePhotosResponse, err error) { + response = CreateDeletePhotosResponse() + err = client.DoAction(request, response) + return +} + +// DeletePhotosWithChan invokes the cloudphoto.DeletePhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/deletephotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeletePhotosWithChan(request *DeletePhotosRequest) (<-chan *DeletePhotosResponse, <-chan error) { + responseChan := make(chan *DeletePhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeletePhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeletePhotosWithCallback invokes the cloudphoto.DeletePhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/deletephotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeletePhotosWithCallback(request *DeletePhotosRequest, callback func(response *DeletePhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeletePhotosResponse + var err error + defer close(result) + response, err = client.DeletePhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeletePhotosRequest is the request struct for api DeletePhotos +type DeletePhotosRequest struct { + *requests.RpcRequest + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` + PhotoId *[]string `position:"Query" name:"PhotoId" type:"Repeated"` +} + +// DeletePhotosResponse is the response struct for api DeletePhotos +type DeletePhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results []Result `json:"Results" xml:"Results"` +} + +// CreateDeletePhotosRequest creates a request to invoke DeletePhotos API +func CreateDeletePhotosRequest() (request *DeletePhotosRequest) { + request = &DeletePhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "DeletePhotos", "cloudphoto", "openAPI") + return +} + +// CreateDeletePhotosResponse creates a response to parse from DeletePhotos response +func CreateDeletePhotosResponse() (response *DeletePhotosResponse) { + response = &DeletePhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/edit_event.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/edit_event.go new file mode 100644 index 0000000..af44014 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/edit_event.go @@ -0,0 +1,118 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EditEvent invokes the cloudphoto.EditEvent API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/editevent.html +func (client *Client) EditEvent(request *EditEventRequest) (response *EditEventResponse, err error) { + response = CreateEditEventResponse() + err = client.DoAction(request, response) + return +} + +// EditEventWithChan invokes the cloudphoto.EditEvent API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/editevent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EditEventWithChan(request *EditEventRequest) (<-chan *EditEventResponse, <-chan error) { + responseChan := make(chan *EditEventResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EditEvent(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EditEventWithCallback invokes the cloudphoto.EditEvent API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/editevent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EditEventWithCallback(request *EditEventRequest, callback func(response *EditEventResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EditEventResponse + var err error + defer close(result) + response, err = client.EditEvent(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EditEventRequest is the request struct for api EditEvent +type EditEventRequest struct { + *requests.RpcRequest + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` + EventId string `position:"Query" name:"EventId"` + Identity string `position:"Query" name:"Identity"` + Title string `position:"Query" name:"Title"` + StartAt requests.Integer `position:"Query" name:"StartAt"` + EndAt requests.Integer `position:"Query" name:"EndAt"` + WeixinTitle string `position:"Query" name:"WeixinTitle"` + SplashPhotoId string `position:"Query" name:"SplashPhotoId"` + BannerPhotoId string `position:"Query" name:"BannerPhotoId"` + WatermarkPhotoId string `position:"Query" name:"WatermarkPhotoId"` + Remark string `position:"Query" name:"Remark"` +} + +// EditEventResponse is the response struct for api EditEvent +type EditEventResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Event Event `json:"Event" xml:"Event"` +} + +// CreateEditEventRequest creates a request to invoke EditEvent API +func CreateEditEventRequest() (request *EditEventRequest) { + request = &EditEventRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "EditEvent", "cloudphoto", "openAPI") + return +} + +// CreateEditEventResponse creates a response to parse from EditEvent response +func CreateEditEventResponse() (response *EditEventResponse) { + response = &EditEventResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/edit_photo_store.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/edit_photo_store.go new file mode 100644 index 0000000..14be42e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/edit_photo_store.go @@ -0,0 +1,111 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EditPhotoStore invokes the cloudphoto.EditPhotoStore API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/editphotostore.html +func (client *Client) EditPhotoStore(request *EditPhotoStoreRequest) (response *EditPhotoStoreResponse, err error) { + response = CreateEditPhotoStoreResponse() + err = client.DoAction(request, response) + return +} + +// EditPhotoStoreWithChan invokes the cloudphoto.EditPhotoStore API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/editphotostore.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EditPhotoStoreWithChan(request *EditPhotoStoreRequest) (<-chan *EditPhotoStoreResponse, <-chan error) { + responseChan := make(chan *EditPhotoStoreResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EditPhotoStore(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EditPhotoStoreWithCallback invokes the cloudphoto.EditPhotoStore API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/editphotostore.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EditPhotoStoreWithCallback(request *EditPhotoStoreRequest, callback func(response *EditPhotoStoreResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EditPhotoStoreResponse + var err error + defer close(result) + response, err = client.EditPhotoStore(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EditPhotoStoreRequest is the request struct for api EditPhotoStore +type EditPhotoStoreRequest struct { + *requests.RpcRequest + AutoCleanEnabled string `position:"Query" name:"AutoCleanEnabled"` + AutoCleanDays requests.Integer `position:"Query" name:"AutoCleanDays"` + DefaultQuota requests.Integer `position:"Query" name:"DefaultQuota"` + DefaultTrashQuota requests.Integer `position:"Query" name:"DefaultTrashQuota"` + Remark string `position:"Query" name:"Remark"` + StoreName string `position:"Query" name:"StoreName"` +} + +// EditPhotoStoreResponse is the response struct for api EditPhotoStore +type EditPhotoStoreResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` +} + +// CreateEditPhotoStoreRequest creates a request to invoke EditPhotoStore API +func CreateEditPhotoStoreRequest() (request *EditPhotoStoreRequest) { + request = &EditPhotoStoreRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "EditPhotoStore", "cloudphoto", "openAPI") + return +} + +// CreateEditPhotoStoreResponse creates a response to parse from EditPhotoStore response +func CreateEditPhotoStoreResponse() (response *EditPhotoStoreResponse) { + response = &EditPhotoStoreResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/edit_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/edit_photos.go new file mode 100644 index 0000000..628344b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/edit_photos.go @@ -0,0 +1,113 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EditPhotos invokes the cloudphoto.EditPhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/editphotos.html +func (client *Client) EditPhotos(request *EditPhotosRequest) (response *EditPhotosResponse, err error) { + response = CreateEditPhotosResponse() + err = client.DoAction(request, response) + return +} + +// EditPhotosWithChan invokes the cloudphoto.EditPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/editphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EditPhotosWithChan(request *EditPhotosRequest) (<-chan *EditPhotosResponse, <-chan error) { + responseChan := make(chan *EditPhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EditPhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EditPhotosWithCallback invokes the cloudphoto.EditPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/editphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EditPhotosWithCallback(request *EditPhotosRequest, callback func(response *EditPhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EditPhotosResponse + var err error + defer close(result) + response, err = client.EditPhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EditPhotosRequest is the request struct for api EditPhotos +type EditPhotosRequest struct { + *requests.RpcRequest + PhotoId *[]string `position:"Query" name:"PhotoId" type:"Repeated"` + ShareExpireTime requests.Integer `position:"Query" name:"ShareExpireTime"` + TakenAt requests.Integer `position:"Query" name:"TakenAt"` + Title string `position:"Query" name:"Title"` + Remark string `position:"Query" name:"Remark"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// EditPhotosResponse is the response struct for api EditPhotos +type EditPhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results []Result `json:"Results" xml:"Results"` +} + +// CreateEditPhotosRequest creates a request to invoke EditPhotos API +func CreateEditPhotosRequest() (request *EditPhotosRequest) { + request = &EditPhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "EditPhotos", "cloudphoto", "openAPI") + return +} + +// CreateEditPhotosResponse creates a response to parse from EditPhotos response +func CreateEditPhotosResponse() (response *EditPhotosResponse) { + response = &EditPhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/fetch_album_tag_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/fetch_album_tag_photos.go new file mode 100644 index 0000000..47c331c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/fetch_album_tag_photos.go @@ -0,0 +1,113 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// FetchAlbumTagPhotos invokes the cloudphoto.FetchAlbumTagPhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/fetchalbumtagphotos.html +func (client *Client) FetchAlbumTagPhotos(request *FetchAlbumTagPhotosRequest) (response *FetchAlbumTagPhotosResponse, err error) { + response = CreateFetchAlbumTagPhotosResponse() + err = client.DoAction(request, response) + return +} + +// FetchAlbumTagPhotosWithChan invokes the cloudphoto.FetchAlbumTagPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/fetchalbumtagphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FetchAlbumTagPhotosWithChan(request *FetchAlbumTagPhotosRequest) (<-chan *FetchAlbumTagPhotosResponse, <-chan error) { + responseChan := make(chan *FetchAlbumTagPhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.FetchAlbumTagPhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// FetchAlbumTagPhotosWithCallback invokes the cloudphoto.FetchAlbumTagPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/fetchalbumtagphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FetchAlbumTagPhotosWithCallback(request *FetchAlbumTagPhotosRequest, callback func(response *FetchAlbumTagPhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *FetchAlbumTagPhotosResponse + var err error + defer close(result) + response, err = client.FetchAlbumTagPhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// FetchAlbumTagPhotosRequest is the request struct for api FetchAlbumTagPhotos +type FetchAlbumTagPhotosRequest struct { + *requests.RpcRequest + AlbumId requests.Integer `position:"Query" name:"AlbumId"` + TagId requests.Integer `position:"Query" name:"TagId"` + Size requests.Integer `position:"Query" name:"Size"` + Page requests.Integer `position:"Query" name:"Page"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// FetchAlbumTagPhotosResponse is the response struct for api FetchAlbumTagPhotos +type FetchAlbumTagPhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results []Result `json:"Results" xml:"Results"` +} + +// CreateFetchAlbumTagPhotosRequest creates a request to invoke FetchAlbumTagPhotos API +func CreateFetchAlbumTagPhotosRequest() (request *FetchAlbumTagPhotosRequest) { + request = &FetchAlbumTagPhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "FetchAlbumTagPhotos", "cloudphoto", "openAPI") + return +} + +// CreateFetchAlbumTagPhotosResponse creates a response to parse from FetchAlbumTagPhotos response +func CreateFetchAlbumTagPhotosResponse() (response *FetchAlbumTagPhotosResponse) { + response = &FetchAlbumTagPhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/fetch_libraries.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/fetch_libraries.go new file mode 100644 index 0000000..b426ca0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/fetch_libraries.go @@ -0,0 +1,110 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// FetchLibraries invokes the cloudphoto.FetchLibraries API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/fetchlibraries.html +func (client *Client) FetchLibraries(request *FetchLibrariesRequest) (response *FetchLibrariesResponse, err error) { + response = CreateFetchLibrariesResponse() + err = client.DoAction(request, response) + return +} + +// FetchLibrariesWithChan invokes the cloudphoto.FetchLibraries API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/fetchlibraries.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FetchLibrariesWithChan(request *FetchLibrariesRequest) (<-chan *FetchLibrariesResponse, <-chan error) { + responseChan := make(chan *FetchLibrariesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.FetchLibraries(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// FetchLibrariesWithCallback invokes the cloudphoto.FetchLibraries API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/fetchlibraries.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FetchLibrariesWithCallback(request *FetchLibrariesRequest, callback func(response *FetchLibrariesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *FetchLibrariesResponse + var err error + defer close(result) + response, err = client.FetchLibraries(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// FetchLibrariesRequest is the request struct for api FetchLibraries +type FetchLibrariesRequest struct { + *requests.RpcRequest + StoreName string `position:"Query" name:"StoreName"` + Page requests.Integer `position:"Query" name:"Page"` + Size requests.Integer `position:"Query" name:"Size"` +} + +// FetchLibrariesResponse is the response struct for api FetchLibraries +type FetchLibrariesResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Libraries []Library `json:"Libraries" xml:"Libraries"` +} + +// CreateFetchLibrariesRequest creates a request to invoke FetchLibraries API +func CreateFetchLibrariesRequest() (request *FetchLibrariesRequest) { + request = &FetchLibrariesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "FetchLibraries", "cloudphoto", "openAPI") + return +} + +// CreateFetchLibrariesResponse creates a response to parse from FetchLibraries response +func CreateFetchLibrariesResponse() (response *FetchLibrariesResponse) { + response = &FetchLibrariesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/fetch_moment_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/fetch_moment_photos.go new file mode 100644 index 0000000..a4024dd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/fetch_moment_photos.go @@ -0,0 +1,114 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// FetchMomentPhotos invokes the cloudphoto.FetchMomentPhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/fetchmomentphotos.html +func (client *Client) FetchMomentPhotos(request *FetchMomentPhotosRequest) (response *FetchMomentPhotosResponse, err error) { + response = CreateFetchMomentPhotosResponse() + err = client.DoAction(request, response) + return +} + +// FetchMomentPhotosWithChan invokes the cloudphoto.FetchMomentPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/fetchmomentphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FetchMomentPhotosWithChan(request *FetchMomentPhotosRequest) (<-chan *FetchMomentPhotosResponse, <-chan error) { + responseChan := make(chan *FetchMomentPhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.FetchMomentPhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// FetchMomentPhotosWithCallback invokes the cloudphoto.FetchMomentPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/fetchmomentphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FetchMomentPhotosWithCallback(request *FetchMomentPhotosRequest, callback func(response *FetchMomentPhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *FetchMomentPhotosResponse + var err error + defer close(result) + response, err = client.FetchMomentPhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// FetchMomentPhotosRequest is the request struct for api FetchMomentPhotos +type FetchMomentPhotosRequest struct { + *requests.RpcRequest + MomentId requests.Integer `position:"Query" name:"MomentId"` + OrderBy string `position:"Query" name:"OrderBy"` + Order string `position:"Query" name:"Order"` + Size requests.Integer `position:"Query" name:"Size"` + Page requests.Integer `position:"Query" name:"Page"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// FetchMomentPhotosResponse is the response struct for api FetchMomentPhotos +type FetchMomentPhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Photos []Photo `json:"Photos" xml:"Photos"` +} + +// CreateFetchMomentPhotosRequest creates a request to invoke FetchMomentPhotos API +func CreateFetchMomentPhotosRequest() (request *FetchMomentPhotosRequest) { + request = &FetchMomentPhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "FetchMomentPhotos", "cloudphoto", "openAPI") + return +} + +// CreateFetchMomentPhotosResponse creates a response to parse from FetchMomentPhotos response +func CreateFetchMomentPhotosResponse() (response *FetchMomentPhotosResponse) { + response = &FetchMomentPhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/fetch_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/fetch_photos.go new file mode 100644 index 0000000..5c5b243 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/fetch_photos.go @@ -0,0 +1,114 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// FetchPhotos invokes the cloudphoto.FetchPhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/fetchphotos.html +func (client *Client) FetchPhotos(request *FetchPhotosRequest) (response *FetchPhotosResponse, err error) { + response = CreateFetchPhotosResponse() + err = client.DoAction(request, response) + return +} + +// FetchPhotosWithChan invokes the cloudphoto.FetchPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/fetchphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FetchPhotosWithChan(request *FetchPhotosRequest) (<-chan *FetchPhotosResponse, <-chan error) { + responseChan := make(chan *FetchPhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.FetchPhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// FetchPhotosWithCallback invokes the cloudphoto.FetchPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/fetchphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FetchPhotosWithCallback(request *FetchPhotosRequest, callback func(response *FetchPhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *FetchPhotosResponse + var err error + defer close(result) + response, err = client.FetchPhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// FetchPhotosRequest is the request struct for api FetchPhotos +type FetchPhotosRequest struct { + *requests.RpcRequest + State string `position:"Query" name:"State"` + OrderBy string `position:"Query" name:"OrderBy"` + Order string `position:"Query" name:"Order"` + Size requests.Integer `position:"Query" name:"Size"` + Page requests.Integer `position:"Query" name:"Page"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// FetchPhotosResponse is the response struct for api FetchPhotos +type FetchPhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Photos []Photo `json:"Photos" xml:"Photos"` +} + +// CreateFetchPhotosRequest creates a request to invoke FetchPhotos API +func CreateFetchPhotosRequest() (request *FetchPhotosRequest) { + request = &FetchPhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "FetchPhotos", "cloudphoto", "openAPI") + return +} + +// CreateFetchPhotosResponse creates a response to parse from FetchPhotos response +func CreateFetchPhotosResponse() (response *FetchPhotosResponse) { + response = &FetchPhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_albums_by_names.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_albums_by_names.go new file mode 100644 index 0000000..97b8da5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_albums_by_names.go @@ -0,0 +1,109 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetAlbumsByNames invokes the cloudphoto.GetAlbumsByNames API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/getalbumsbynames.html +func (client *Client) GetAlbumsByNames(request *GetAlbumsByNamesRequest) (response *GetAlbumsByNamesResponse, err error) { + response = CreateGetAlbumsByNamesResponse() + err = client.DoAction(request, response) + return +} + +// GetAlbumsByNamesWithChan invokes the cloudphoto.GetAlbumsByNames API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getalbumsbynames.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetAlbumsByNamesWithChan(request *GetAlbumsByNamesRequest) (<-chan *GetAlbumsByNamesResponse, <-chan error) { + responseChan := make(chan *GetAlbumsByNamesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetAlbumsByNames(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetAlbumsByNamesWithCallback invokes the cloudphoto.GetAlbumsByNames API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getalbumsbynames.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetAlbumsByNamesWithCallback(request *GetAlbumsByNamesRequest, callback func(response *GetAlbumsByNamesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetAlbumsByNamesResponse + var err error + defer close(result) + response, err = client.GetAlbumsByNames(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetAlbumsByNamesRequest is the request struct for api GetAlbumsByNames +type GetAlbumsByNamesRequest struct { + *requests.RpcRequest + Name *[]string `position:"Query" name:"Name" type:"Repeated"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// GetAlbumsByNamesResponse is the response struct for api GetAlbumsByNames +type GetAlbumsByNamesResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Albums []Album `json:"Albums" xml:"Albums"` +} + +// CreateGetAlbumsByNamesRequest creates a request to invoke GetAlbumsByNames API +func CreateGetAlbumsByNamesRequest() (request *GetAlbumsByNamesRequest) { + request = &GetAlbumsByNamesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetAlbumsByNames", "cloudphoto", "openAPI") + return +} + +// CreateGetAlbumsByNamesResponse creates a response to parse from GetAlbumsByNames response +func CreateGetAlbumsByNamesResponse() (response *GetAlbumsByNamesResponse) { + response = &GetAlbumsByNamesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_download_url.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_download_url.go new file mode 100644 index 0000000..2507bc9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_download_url.go @@ -0,0 +1,109 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetDownloadUrl invokes the cloudphoto.GetDownloadUrl API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/getdownloadurl.html +func (client *Client) GetDownloadUrl(request *GetDownloadUrlRequest) (response *GetDownloadUrlResponse, err error) { + response = CreateGetDownloadUrlResponse() + err = client.DoAction(request, response) + return +} + +// GetDownloadUrlWithChan invokes the cloudphoto.GetDownloadUrl API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getdownloadurl.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetDownloadUrlWithChan(request *GetDownloadUrlRequest) (<-chan *GetDownloadUrlResponse, <-chan error) { + responseChan := make(chan *GetDownloadUrlResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetDownloadUrl(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetDownloadUrlWithCallback invokes the cloudphoto.GetDownloadUrl API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getdownloadurl.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetDownloadUrlWithCallback(request *GetDownloadUrlRequest, callback func(response *GetDownloadUrlResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetDownloadUrlResponse + var err error + defer close(result) + response, err = client.GetDownloadUrl(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetDownloadUrlRequest is the request struct for api GetDownloadUrl +type GetDownloadUrlRequest struct { + *requests.RpcRequest + PhotoId requests.Integer `position:"Query" name:"PhotoId"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// GetDownloadUrlResponse is the response struct for api GetDownloadUrl +type GetDownloadUrlResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + DownloadUrl string `json:"DownloadUrl" xml:"DownloadUrl"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` +} + +// CreateGetDownloadUrlRequest creates a request to invoke GetDownloadUrl API +func CreateGetDownloadUrlRequest() (request *GetDownloadUrlRequest) { + request = &GetDownloadUrlRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetDownloadUrl", "cloudphoto", "openAPI") + return +} + +// CreateGetDownloadUrlResponse creates a response to parse from GetDownloadUrl response +func CreateGetDownloadUrlResponse() (response *GetDownloadUrlResponse) { + response = &GetDownloadUrlResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_download_urls.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_download_urls.go new file mode 100644 index 0000000..e69939c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_download_urls.go @@ -0,0 +1,109 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetDownloadUrls invokes the cloudphoto.GetDownloadUrls API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/getdownloadurls.html +func (client *Client) GetDownloadUrls(request *GetDownloadUrlsRequest) (response *GetDownloadUrlsResponse, err error) { + response = CreateGetDownloadUrlsResponse() + err = client.DoAction(request, response) + return +} + +// GetDownloadUrlsWithChan invokes the cloudphoto.GetDownloadUrls API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getdownloadurls.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetDownloadUrlsWithChan(request *GetDownloadUrlsRequest) (<-chan *GetDownloadUrlsResponse, <-chan error) { + responseChan := make(chan *GetDownloadUrlsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetDownloadUrls(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetDownloadUrlsWithCallback invokes the cloudphoto.GetDownloadUrls API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getdownloadurls.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetDownloadUrlsWithCallback(request *GetDownloadUrlsRequest, callback func(response *GetDownloadUrlsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetDownloadUrlsResponse + var err error + defer close(result) + response, err = client.GetDownloadUrls(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetDownloadUrlsRequest is the request struct for api GetDownloadUrls +type GetDownloadUrlsRequest struct { + *requests.RpcRequest + PhotoId *[]string `position:"Query" name:"PhotoId" type:"Repeated"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// GetDownloadUrlsResponse is the response struct for api GetDownloadUrls +type GetDownloadUrlsResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results ResultsInGetDownloadUrls `json:"Results" xml:"Results"` +} + +// CreateGetDownloadUrlsRequest creates a request to invoke GetDownloadUrls API +func CreateGetDownloadUrlsRequest() (request *GetDownloadUrlsRequest) { + request = &GetDownloadUrlsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetDownloadUrls", "cloudphoto", "openAPI") + return +} + +// CreateGetDownloadUrlsResponse creates a response to parse from GetDownloadUrls response +func CreateGetDownloadUrlsResponse() (response *GetDownloadUrlsResponse) { + response = &GetDownloadUrlsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_event.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_event.go new file mode 100644 index 0000000..e26c54c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_event.go @@ -0,0 +1,109 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetEvent invokes the cloudphoto.GetEvent API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/getevent.html +func (client *Client) GetEvent(request *GetEventRequest) (response *GetEventResponse, err error) { + response = CreateGetEventResponse() + err = client.DoAction(request, response) + return +} + +// GetEventWithChan invokes the cloudphoto.GetEvent API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getevent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetEventWithChan(request *GetEventRequest) (<-chan *GetEventResponse, <-chan error) { + responseChan := make(chan *GetEventResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetEvent(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetEventWithCallback invokes the cloudphoto.GetEvent API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getevent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetEventWithCallback(request *GetEventRequest, callback func(response *GetEventResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetEventResponse + var err error + defer close(result) + response, err = client.GetEvent(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetEventRequest is the request struct for api GetEvent +type GetEventRequest struct { + *requests.RpcRequest + EventId requests.Integer `position:"Query" name:"EventId"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// GetEventResponse is the response struct for api GetEvent +type GetEventResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Event Event `json:"Event" xml:"Event"` +} + +// CreateGetEventRequest creates a request to invoke GetEvent API +func CreateGetEventRequest() (request *GetEventRequest) { + request = &GetEventRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetEvent", "cloudphoto", "openAPI") + return +} + +// CreateGetEventResponse creates a response to parse from GetEvent response +func CreateGetEventResponse() (response *GetEventResponse) { + response = &GetEventResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_framed_photo_urls.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_framed_photo_urls.go new file mode 100644 index 0000000..5b060c7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_framed_photo_urls.go @@ -0,0 +1,110 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetFramedPhotoUrls invokes the cloudphoto.GetFramedPhotoUrls API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/getframedphotourls.html +func (client *Client) GetFramedPhotoUrls(request *GetFramedPhotoUrlsRequest) (response *GetFramedPhotoUrlsResponse, err error) { + response = CreateGetFramedPhotoUrlsResponse() + err = client.DoAction(request, response) + return +} + +// GetFramedPhotoUrlsWithChan invokes the cloudphoto.GetFramedPhotoUrls API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getframedphotourls.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetFramedPhotoUrlsWithChan(request *GetFramedPhotoUrlsRequest) (<-chan *GetFramedPhotoUrlsResponse, <-chan error) { + responseChan := make(chan *GetFramedPhotoUrlsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetFramedPhotoUrls(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetFramedPhotoUrlsWithCallback invokes the cloudphoto.GetFramedPhotoUrls API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getframedphotourls.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetFramedPhotoUrlsWithCallback(request *GetFramedPhotoUrlsRequest, callback func(response *GetFramedPhotoUrlsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetFramedPhotoUrlsResponse + var err error + defer close(result) + response, err = client.GetFramedPhotoUrls(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetFramedPhotoUrlsRequest is the request struct for api GetFramedPhotoUrls +type GetFramedPhotoUrlsRequest struct { + *requests.RpcRequest + PhotoId *[]string `position:"Query" name:"PhotoId" type:"Repeated"` + FrameId string `position:"Query" name:"FrameId"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// GetFramedPhotoUrlsResponse is the response struct for api GetFramedPhotoUrls +type GetFramedPhotoUrlsResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results ResultsInGetFramedPhotoUrls `json:"Results" xml:"Results"` +} + +// CreateGetFramedPhotoUrlsRequest creates a request to invoke GetFramedPhotoUrls API +func CreateGetFramedPhotoUrlsRequest() (request *GetFramedPhotoUrlsRequest) { + request = &GetFramedPhotoUrlsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetFramedPhotoUrls", "cloudphoto", "openAPI") + return +} + +// CreateGetFramedPhotoUrlsResponse creates a response to parse from GetFramedPhotoUrls response +func CreateGetFramedPhotoUrlsResponse() (response *GetFramedPhotoUrlsResponse) { + response = &GetFramedPhotoUrlsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_library.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_library.go new file mode 100644 index 0000000..9d96909 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_library.go @@ -0,0 +1,108 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetLibrary invokes the cloudphoto.GetLibrary API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/getlibrary.html +func (client *Client) GetLibrary(request *GetLibraryRequest) (response *GetLibraryResponse, err error) { + response = CreateGetLibraryResponse() + err = client.DoAction(request, response) + return +} + +// GetLibraryWithChan invokes the cloudphoto.GetLibrary API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getlibrary.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetLibraryWithChan(request *GetLibraryRequest) (<-chan *GetLibraryResponse, <-chan error) { + responseChan := make(chan *GetLibraryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetLibrary(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetLibraryWithCallback invokes the cloudphoto.GetLibrary API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getlibrary.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetLibraryWithCallback(request *GetLibraryRequest, callback func(response *GetLibraryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetLibraryResponse + var err error + defer close(result) + response, err = client.GetLibrary(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetLibraryRequest is the request struct for api GetLibrary +type GetLibraryRequest struct { + *requests.RpcRequest + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// GetLibraryResponse is the response struct for api GetLibrary +type GetLibraryResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Library Library `json:"Library" xml:"Library"` +} + +// CreateGetLibraryRequest creates a request to invoke GetLibrary API +func CreateGetLibraryRequest() (request *GetLibraryRequest) { + request = &GetLibraryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetLibrary", "cloudphoto", "openAPI") + return +} + +// CreateGetLibraryResponse creates a response to parse from GetLibrary response +func CreateGetLibraryResponse() (response *GetLibraryResponse) { + response = &GetLibraryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_photo_store.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_photo_store.go new file mode 100644 index 0000000..484a65f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_photo_store.go @@ -0,0 +1,107 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetPhotoStore invokes the cloudphoto.GetPhotoStore API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/getphotostore.html +func (client *Client) GetPhotoStore(request *GetPhotoStoreRequest) (response *GetPhotoStoreResponse, err error) { + response = CreateGetPhotoStoreResponse() + err = client.DoAction(request, response) + return +} + +// GetPhotoStoreWithChan invokes the cloudphoto.GetPhotoStore API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getphotostore.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPhotoStoreWithChan(request *GetPhotoStoreRequest) (<-chan *GetPhotoStoreResponse, <-chan error) { + responseChan := make(chan *GetPhotoStoreResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetPhotoStore(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetPhotoStoreWithCallback invokes the cloudphoto.GetPhotoStore API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getphotostore.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPhotoStoreWithCallback(request *GetPhotoStoreRequest, callback func(response *GetPhotoStoreResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetPhotoStoreResponse + var err error + defer close(result) + response, err = client.GetPhotoStore(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetPhotoStoreRequest is the request struct for api GetPhotoStore +type GetPhotoStoreRequest struct { + *requests.RpcRequest + StoreName string `position:"Query" name:"StoreName"` +} + +// GetPhotoStoreResponse is the response struct for api GetPhotoStore +type GetPhotoStoreResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + PhotoStore PhotoStore `json:"PhotoStore" xml:"PhotoStore"` +} + +// CreateGetPhotoStoreRequest creates a request to invoke GetPhotoStore API +func CreateGetPhotoStoreRequest() (request *GetPhotoStoreRequest) { + request = &GetPhotoStoreRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetPhotoStore", "cloudphoto", "openAPI") + return +} + +// CreateGetPhotoStoreResponse creates a response to parse from GetPhotoStore response +func CreateGetPhotoStoreResponse() (response *GetPhotoStoreResponse) { + response = &GetPhotoStoreResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_photos.go new file mode 100644 index 0000000..e6620d2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_photos.go @@ -0,0 +1,109 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetPhotos invokes the cloudphoto.GetPhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/getphotos.html +func (client *Client) GetPhotos(request *GetPhotosRequest) (response *GetPhotosResponse, err error) { + response = CreateGetPhotosResponse() + err = client.DoAction(request, response) + return +} + +// GetPhotosWithChan invokes the cloudphoto.GetPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPhotosWithChan(request *GetPhotosRequest) (<-chan *GetPhotosResponse, <-chan error) { + responseChan := make(chan *GetPhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetPhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetPhotosWithCallback invokes the cloudphoto.GetPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPhotosWithCallback(request *GetPhotosRequest, callback func(response *GetPhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetPhotosResponse + var err error + defer close(result) + response, err = client.GetPhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetPhotosRequest is the request struct for api GetPhotos +type GetPhotosRequest struct { + *requests.RpcRequest + PhotoId *[]string `position:"Query" name:"PhotoId" type:"Repeated"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// GetPhotosResponse is the response struct for api GetPhotos +type GetPhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Photos []Photo `json:"Photos" xml:"Photos"` +} + +// CreateGetPhotosRequest creates a request to invoke GetPhotos API +func CreateGetPhotosRequest() (request *GetPhotosRequest) { + request = &GetPhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetPhotos", "cloudphoto", "openAPI") + return +} + +// CreateGetPhotosResponse creates a response to parse from GetPhotos response +func CreateGetPhotosResponse() (response *GetPhotosResponse) { + response = &GetPhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_photos_by_md5s.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_photos_by_md5s.go new file mode 100644 index 0000000..87ec957 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_photos_by_md5s.go @@ -0,0 +1,110 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetPhotosByMd5s invokes the cloudphoto.GetPhotosByMd5s API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/getphotosbymd5s.html +func (client *Client) GetPhotosByMd5s(request *GetPhotosByMd5sRequest) (response *GetPhotosByMd5sResponse, err error) { + response = CreateGetPhotosByMd5sResponse() + err = client.DoAction(request, response) + return +} + +// GetPhotosByMd5sWithChan invokes the cloudphoto.GetPhotosByMd5s API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getphotosbymd5s.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPhotosByMd5sWithChan(request *GetPhotosByMd5sRequest) (<-chan *GetPhotosByMd5sResponse, <-chan error) { + responseChan := make(chan *GetPhotosByMd5sResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetPhotosByMd5s(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetPhotosByMd5sWithCallback invokes the cloudphoto.GetPhotosByMd5s API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getphotosbymd5s.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPhotosByMd5sWithCallback(request *GetPhotosByMd5sRequest, callback func(response *GetPhotosByMd5sResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetPhotosByMd5sResponse + var err error + defer close(result) + response, err = client.GetPhotosByMd5s(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetPhotosByMd5sRequest is the request struct for api GetPhotosByMd5s +type GetPhotosByMd5sRequest struct { + *requests.RpcRequest + Md5 *[]string `position:"Query" name:"Md5" type:"Repeated"` + State string `position:"Query" name:"State"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// GetPhotosByMd5sResponse is the response struct for api GetPhotosByMd5s +type GetPhotosByMd5sResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Photos []Photo `json:"Photos" xml:"Photos"` +} + +// CreateGetPhotosByMd5sRequest creates a request to invoke GetPhotosByMd5s API +func CreateGetPhotosByMd5sRequest() (request *GetPhotosByMd5sRequest) { + request = &GetPhotosByMd5sRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetPhotosByMd5s", "cloudphoto", "openAPI") + return +} + +// CreateGetPhotosByMd5sResponse creates a response to parse from GetPhotosByMd5s response +func CreateGetPhotosByMd5sResponse() (response *GetPhotosByMd5sResponse) { + response = &GetPhotosByMd5sResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_private_access_urls.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_private_access_urls.go new file mode 100644 index 0000000..0cded72 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_private_access_urls.go @@ -0,0 +1,110 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetPrivateAccessUrls invokes the cloudphoto.GetPrivateAccessUrls API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/getprivateaccessurls.html +func (client *Client) GetPrivateAccessUrls(request *GetPrivateAccessUrlsRequest) (response *GetPrivateAccessUrlsResponse, err error) { + response = CreateGetPrivateAccessUrlsResponse() + err = client.DoAction(request, response) + return +} + +// GetPrivateAccessUrlsWithChan invokes the cloudphoto.GetPrivateAccessUrls API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getprivateaccessurls.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPrivateAccessUrlsWithChan(request *GetPrivateAccessUrlsRequest) (<-chan *GetPrivateAccessUrlsResponse, <-chan error) { + responseChan := make(chan *GetPrivateAccessUrlsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetPrivateAccessUrls(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetPrivateAccessUrlsWithCallback invokes the cloudphoto.GetPrivateAccessUrls API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getprivateaccessurls.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPrivateAccessUrlsWithCallback(request *GetPrivateAccessUrlsRequest, callback func(response *GetPrivateAccessUrlsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetPrivateAccessUrlsResponse + var err error + defer close(result) + response, err = client.GetPrivateAccessUrls(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetPrivateAccessUrlsRequest is the request struct for api GetPrivateAccessUrls +type GetPrivateAccessUrlsRequest struct { + *requests.RpcRequest + PhotoId *[]string `position:"Query" name:"PhotoId" type:"Repeated"` + ZoomType string `position:"Query" name:"ZoomType"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// GetPrivateAccessUrlsResponse is the response struct for api GetPrivateAccessUrls +type GetPrivateAccessUrlsResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results []Result `json:"Results" xml:"Results"` +} + +// CreateGetPrivateAccessUrlsRequest creates a request to invoke GetPrivateAccessUrls API +func CreateGetPrivateAccessUrlsRequest() (request *GetPrivateAccessUrlsRequest) { + request = &GetPrivateAccessUrlsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetPrivateAccessUrls", "cloudphoto", "openAPI") + return +} + +// CreateGetPrivateAccessUrlsResponse creates a response to parse from GetPrivateAccessUrls response +func CreateGetPrivateAccessUrlsResponse() (response *GetPrivateAccessUrlsResponse) { + response = &GetPrivateAccessUrlsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_public_access_urls.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_public_access_urls.go new file mode 100644 index 0000000..9d10913 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_public_access_urls.go @@ -0,0 +1,111 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetPublicAccessUrls invokes the cloudphoto.GetPublicAccessUrls API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/getpublicaccessurls.html +func (client *Client) GetPublicAccessUrls(request *GetPublicAccessUrlsRequest) (response *GetPublicAccessUrlsResponse, err error) { + response = CreateGetPublicAccessUrlsResponse() + err = client.DoAction(request, response) + return +} + +// GetPublicAccessUrlsWithChan invokes the cloudphoto.GetPublicAccessUrls API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getpublicaccessurls.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPublicAccessUrlsWithChan(request *GetPublicAccessUrlsRequest) (<-chan *GetPublicAccessUrlsResponse, <-chan error) { + responseChan := make(chan *GetPublicAccessUrlsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetPublicAccessUrls(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetPublicAccessUrlsWithCallback invokes the cloudphoto.GetPublicAccessUrls API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getpublicaccessurls.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPublicAccessUrlsWithCallback(request *GetPublicAccessUrlsRequest, callback func(response *GetPublicAccessUrlsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetPublicAccessUrlsResponse + var err error + defer close(result) + response, err = client.GetPublicAccessUrls(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetPublicAccessUrlsRequest is the request struct for api GetPublicAccessUrls +type GetPublicAccessUrlsRequest struct { + *requests.RpcRequest + PhotoId *[]string `position:"Query" name:"PhotoId" type:"Repeated"` + ZoomType string `position:"Query" name:"ZoomType"` + DomainType string `position:"Query" name:"DomainType"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// GetPublicAccessUrlsResponse is the response struct for api GetPublicAccessUrls +type GetPublicAccessUrlsResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results []Result `json:"Results" xml:"Results"` +} + +// CreateGetPublicAccessUrlsRequest creates a request to invoke GetPublicAccessUrls API +func CreateGetPublicAccessUrlsRequest() (request *GetPublicAccessUrlsRequest) { + request = &GetPublicAccessUrlsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetPublicAccessUrls", "cloudphoto", "openAPI") + return +} + +// CreateGetPublicAccessUrlsResponse creates a response to parse from GetPublicAccessUrls response +func CreateGetPublicAccessUrlsResponse() (response *GetPublicAccessUrlsResponse) { + response = &GetPublicAccessUrlsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_quota.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_quota.go new file mode 100644 index 0000000..976f56a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_quota.go @@ -0,0 +1,108 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetQuota invokes the cloudphoto.GetQuota API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/getquota.html +func (client *Client) GetQuota(request *GetQuotaRequest) (response *GetQuotaResponse, err error) { + response = CreateGetQuotaResponse() + err = client.DoAction(request, response) + return +} + +// GetQuotaWithChan invokes the cloudphoto.GetQuota API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getquota.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetQuotaWithChan(request *GetQuotaRequest) (<-chan *GetQuotaResponse, <-chan error) { + responseChan := make(chan *GetQuotaResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetQuota(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetQuotaWithCallback invokes the cloudphoto.GetQuota API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getquota.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetQuotaWithCallback(request *GetQuotaRequest, callback func(response *GetQuotaResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetQuotaResponse + var err error + defer close(result) + response, err = client.GetQuota(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetQuotaRequest is the request struct for api GetQuota +type GetQuotaRequest struct { + *requests.RpcRequest + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// GetQuotaResponse is the response struct for api GetQuota +type GetQuotaResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Quota Quota `json:"Quota" xml:"Quota"` +} + +// CreateGetQuotaRequest creates a request to invoke GetQuota API +func CreateGetQuotaRequest() (request *GetQuotaRequest) { + request = &GetQuotaRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetQuota", "cloudphoto", "openAPI") + return +} + +// CreateGetQuotaResponse creates a response to parse from GetQuota response +func CreateGetQuotaResponse() (response *GetQuotaResponse) { + response = &GetQuotaResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_similar_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_similar_photos.go new file mode 100644 index 0000000..393c115 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_similar_photos.go @@ -0,0 +1,109 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetSimilarPhotos invokes the cloudphoto.GetSimilarPhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/getsimilarphotos.html +func (client *Client) GetSimilarPhotos(request *GetSimilarPhotosRequest) (response *GetSimilarPhotosResponse, err error) { + response = CreateGetSimilarPhotosResponse() + err = client.DoAction(request, response) + return +} + +// GetSimilarPhotosWithChan invokes the cloudphoto.GetSimilarPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getsimilarphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetSimilarPhotosWithChan(request *GetSimilarPhotosRequest) (<-chan *GetSimilarPhotosResponse, <-chan error) { + responseChan := make(chan *GetSimilarPhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetSimilarPhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetSimilarPhotosWithCallback invokes the cloudphoto.GetSimilarPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getsimilarphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetSimilarPhotosWithCallback(request *GetSimilarPhotosRequest, callback func(response *GetSimilarPhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetSimilarPhotosResponse + var err error + defer close(result) + response, err = client.GetSimilarPhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetSimilarPhotosRequest is the request struct for api GetSimilarPhotos +type GetSimilarPhotosRequest struct { + *requests.RpcRequest + PhotoId requests.Integer `position:"Query" name:"PhotoId"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// GetSimilarPhotosResponse is the response struct for api GetSimilarPhotos +type GetSimilarPhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Photos []Photo `json:"Photos" xml:"Photos"` +} + +// CreateGetSimilarPhotosRequest creates a request to invoke GetSimilarPhotos API +func CreateGetSimilarPhotosRequest() (request *GetSimilarPhotosRequest) { + request = &GetSimilarPhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetSimilarPhotos", "cloudphoto", "openAPI") + return +} + +// CreateGetSimilarPhotosResponse creates a response to parse from GetSimilarPhotos response +func CreateGetSimilarPhotosResponse() (response *GetSimilarPhotosResponse) { + response = &GetSimilarPhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_thumbnail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_thumbnail.go new file mode 100644 index 0000000..64c547d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_thumbnail.go @@ -0,0 +1,110 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetThumbnail invokes the cloudphoto.GetThumbnail API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/getthumbnail.html +func (client *Client) GetThumbnail(request *GetThumbnailRequest) (response *GetThumbnailResponse, err error) { + response = CreateGetThumbnailResponse() + err = client.DoAction(request, response) + return +} + +// GetThumbnailWithChan invokes the cloudphoto.GetThumbnail API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getthumbnail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetThumbnailWithChan(request *GetThumbnailRequest) (<-chan *GetThumbnailResponse, <-chan error) { + responseChan := make(chan *GetThumbnailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetThumbnail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetThumbnailWithCallback invokes the cloudphoto.GetThumbnail API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getthumbnail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetThumbnailWithCallback(request *GetThumbnailRequest, callback func(response *GetThumbnailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetThumbnailResponse + var err error + defer close(result) + response, err = client.GetThumbnail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetThumbnailRequest is the request struct for api GetThumbnail +type GetThumbnailRequest struct { + *requests.RpcRequest + PhotoId requests.Integer `position:"Query" name:"PhotoId"` + ZoomType string `position:"Query" name:"ZoomType"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// GetThumbnailResponse is the response struct for api GetThumbnail +type GetThumbnailResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + ThumbnailUrl string `json:"ThumbnailUrl" xml:"ThumbnailUrl"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` +} + +// CreateGetThumbnailRequest creates a request to invoke GetThumbnail API +func CreateGetThumbnailRequest() (request *GetThumbnailRequest) { + request = &GetThumbnailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetThumbnail", "cloudphoto", "openAPI") + return +} + +// CreateGetThumbnailResponse creates a response to parse from GetThumbnail response +func CreateGetThumbnailResponse() (response *GetThumbnailResponse) { + response = &GetThumbnailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_thumbnails.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_thumbnails.go new file mode 100644 index 0000000..b5d0e60 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_thumbnails.go @@ -0,0 +1,110 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetThumbnails invokes the cloudphoto.GetThumbnails API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/getthumbnails.html +func (client *Client) GetThumbnails(request *GetThumbnailsRequest) (response *GetThumbnailsResponse, err error) { + response = CreateGetThumbnailsResponse() + err = client.DoAction(request, response) + return +} + +// GetThumbnailsWithChan invokes the cloudphoto.GetThumbnails API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getthumbnails.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetThumbnailsWithChan(request *GetThumbnailsRequest) (<-chan *GetThumbnailsResponse, <-chan error) { + responseChan := make(chan *GetThumbnailsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetThumbnails(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetThumbnailsWithCallback invokes the cloudphoto.GetThumbnails API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getthumbnails.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetThumbnailsWithCallback(request *GetThumbnailsRequest, callback func(response *GetThumbnailsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetThumbnailsResponse + var err error + defer close(result) + response, err = client.GetThumbnails(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetThumbnailsRequest is the request struct for api GetThumbnails +type GetThumbnailsRequest struct { + *requests.RpcRequest + PhotoId *[]string `position:"Query" name:"PhotoId" type:"Repeated"` + ZoomType string `position:"Query" name:"ZoomType"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// GetThumbnailsResponse is the response struct for api GetThumbnails +type GetThumbnailsResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results ResultsInGetThumbnails `json:"Results" xml:"Results"` +} + +// CreateGetThumbnailsRequest creates a request to invoke GetThumbnails API +func CreateGetThumbnailsRequest() (request *GetThumbnailsRequest) { + request = &GetThumbnailsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetThumbnails", "cloudphoto", "openAPI") + return +} + +// CreateGetThumbnailsResponse creates a response to parse from GetThumbnails response +func CreateGetThumbnailsResponse() (response *GetThumbnailsResponse) { + response = &GetThumbnailsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_video_cover.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_video_cover.go new file mode 100644 index 0000000..f135a25 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/get_video_cover.go @@ -0,0 +1,110 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetVideoCover invokes the cloudphoto.GetVideoCover API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/getvideocover.html +func (client *Client) GetVideoCover(request *GetVideoCoverRequest) (response *GetVideoCoverResponse, err error) { + response = CreateGetVideoCoverResponse() + err = client.DoAction(request, response) + return +} + +// GetVideoCoverWithChan invokes the cloudphoto.GetVideoCover API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getvideocover.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetVideoCoverWithChan(request *GetVideoCoverRequest) (<-chan *GetVideoCoverResponse, <-chan error) { + responseChan := make(chan *GetVideoCoverResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetVideoCover(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetVideoCoverWithCallback invokes the cloudphoto.GetVideoCover API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/getvideocover.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetVideoCoverWithCallback(request *GetVideoCoverRequest, callback func(response *GetVideoCoverResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetVideoCoverResponse + var err error + defer close(result) + response, err = client.GetVideoCover(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetVideoCoverRequest is the request struct for api GetVideoCover +type GetVideoCoverRequest struct { + *requests.RpcRequest + PhotoId requests.Integer `position:"Query" name:"PhotoId"` + ZoomType string `position:"Query" name:"ZoomType"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// GetVideoCoverResponse is the response struct for api GetVideoCover +type GetVideoCoverResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + VideoCoverUrl string `json:"VideoCoverUrl" xml:"VideoCoverUrl"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` +} + +// CreateGetVideoCoverRequest creates a request to invoke GetVideoCover API +func CreateGetVideoCoverRequest() (request *GetVideoCoverRequest) { + request = &GetVideoCoverRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetVideoCover", "cloudphoto", "openAPI") + return +} + +// CreateGetVideoCoverResponse creates a response to parse from GetVideoCover response +func CreateGetVideoCoverResponse() (response *GetVideoCoverResponse) { + response = &GetVideoCoverResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/inactivate_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/inactivate_photos.go new file mode 100644 index 0000000..d308dcc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/inactivate_photos.go @@ -0,0 +1,110 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// InactivatePhotos invokes the cloudphoto.InactivatePhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/inactivatephotos.html +func (client *Client) InactivatePhotos(request *InactivatePhotosRequest) (response *InactivatePhotosResponse, err error) { + response = CreateInactivatePhotosResponse() + err = client.DoAction(request, response) + return +} + +// InactivatePhotosWithChan invokes the cloudphoto.InactivatePhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/inactivatephotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) InactivatePhotosWithChan(request *InactivatePhotosRequest) (<-chan *InactivatePhotosResponse, <-chan error) { + responseChan := make(chan *InactivatePhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.InactivatePhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// InactivatePhotosWithCallback invokes the cloudphoto.InactivatePhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/inactivatephotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) InactivatePhotosWithCallback(request *InactivatePhotosRequest, callback func(response *InactivatePhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *InactivatePhotosResponse + var err error + defer close(result) + response, err = client.InactivatePhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// InactivatePhotosRequest is the request struct for api InactivatePhotos +type InactivatePhotosRequest struct { + *requests.RpcRequest + PhotoId *[]string `position:"Query" name:"PhotoId" type:"Repeated"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` + InactiveTime requests.Integer `position:"Query" name:"InactiveTime"` +} + +// InactivatePhotosResponse is the response struct for api InactivatePhotos +type InactivatePhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results []Result `json:"Results" xml:"Results"` +} + +// CreateInactivatePhotosRequest creates a request to invoke InactivatePhotos API +func CreateInactivatePhotosRequest() (request *InactivatePhotosRequest) { + request = &InactivatePhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "InactivatePhotos", "cloudphoto", "openAPI") + return +} + +// CreateInactivatePhotosResponse creates a response to parse from InactivatePhotos response +func CreateInactivatePhotosResponse() (response *InactivatePhotosResponse) { + response = &InactivatePhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/like_photo.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/like_photo.go new file mode 100644 index 0000000..26e213a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/like_photo.go @@ -0,0 +1,108 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// LikePhoto invokes the cloudphoto.LikePhoto API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/likephoto.html +func (client *Client) LikePhoto(request *LikePhotoRequest) (response *LikePhotoResponse, err error) { + response = CreateLikePhotoResponse() + err = client.DoAction(request, response) + return +} + +// LikePhotoWithChan invokes the cloudphoto.LikePhoto API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/likephoto.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) LikePhotoWithChan(request *LikePhotoRequest) (<-chan *LikePhotoResponse, <-chan error) { + responseChan := make(chan *LikePhotoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.LikePhoto(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// LikePhotoWithCallback invokes the cloudphoto.LikePhoto API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/likephoto.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) LikePhotoWithCallback(request *LikePhotoRequest, callback func(response *LikePhotoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *LikePhotoResponse + var err error + defer close(result) + response, err = client.LikePhoto(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// LikePhotoRequest is the request struct for api LikePhoto +type LikePhotoRequest struct { + *requests.RpcRequest + PhotoId requests.Integer `position:"Query" name:"PhotoId"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// LikePhotoResponse is the response struct for api LikePhoto +type LikePhotoResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` +} + +// CreateLikePhotoRequest creates a request to invoke LikePhoto API +func CreateLikePhotoRequest() (request *LikePhotoRequest) { + request = &LikePhotoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "LikePhoto", "cloudphoto", "openAPI") + return +} + +// CreateLikePhotoResponse creates a response to parse from LikePhoto response +func CreateLikePhotoResponse() (response *LikePhotoResponse) { + response = &LikePhotoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_album_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_album_photos.go new file mode 100644 index 0000000..a96497c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_album_photos.go @@ -0,0 +1,115 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListAlbumPhotos invokes the cloudphoto.ListAlbumPhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/listalbumphotos.html +func (client *Client) ListAlbumPhotos(request *ListAlbumPhotosRequest) (response *ListAlbumPhotosResponse, err error) { + response = CreateListAlbumPhotosResponse() + err = client.DoAction(request, response) + return +} + +// ListAlbumPhotosWithChan invokes the cloudphoto.ListAlbumPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listalbumphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListAlbumPhotosWithChan(request *ListAlbumPhotosRequest) (<-chan *ListAlbumPhotosResponse, <-chan error) { + responseChan := make(chan *ListAlbumPhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListAlbumPhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListAlbumPhotosWithCallback invokes the cloudphoto.ListAlbumPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listalbumphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListAlbumPhotosWithCallback(request *ListAlbumPhotosRequest, callback func(response *ListAlbumPhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListAlbumPhotosResponse + var err error + defer close(result) + response, err = client.ListAlbumPhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListAlbumPhotosRequest is the request struct for api ListAlbumPhotos +type ListAlbumPhotosRequest struct { + *requests.RpcRequest + AlbumId requests.Integer `position:"Query" name:"AlbumId"` + Direction string `position:"Query" name:"Direction"` + Size requests.Integer `position:"Query" name:"Size"` + Cursor string `position:"Query" name:"Cursor"` + State string `position:"Query" name:"State"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// ListAlbumPhotosResponse is the response struct for api ListAlbumPhotos +type ListAlbumPhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + NextCursor string `json:"NextCursor" xml:"NextCursor"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results []Result `json:"Results" xml:"Results"` +} + +// CreateListAlbumPhotosRequest creates a request to invoke ListAlbumPhotos API +func CreateListAlbumPhotosRequest() (request *ListAlbumPhotosRequest) { + request = &ListAlbumPhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListAlbumPhotos", "cloudphoto", "openAPI") + return +} + +// CreateListAlbumPhotosResponse creates a response to parse from ListAlbumPhotos response +func CreateListAlbumPhotosResponse() (response *ListAlbumPhotosResponse) { + response = &ListAlbumPhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_albums.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_albums.go new file mode 100644 index 0000000..80181e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_albums.go @@ -0,0 +1,114 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListAlbums invokes the cloudphoto.ListAlbums API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/listalbums.html +func (client *Client) ListAlbums(request *ListAlbumsRequest) (response *ListAlbumsResponse, err error) { + response = CreateListAlbumsResponse() + err = client.DoAction(request, response) + return +} + +// ListAlbumsWithChan invokes the cloudphoto.ListAlbums API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listalbums.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListAlbumsWithChan(request *ListAlbumsRequest) (<-chan *ListAlbumsResponse, <-chan error) { + responseChan := make(chan *ListAlbumsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListAlbums(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListAlbumsWithCallback invokes the cloudphoto.ListAlbums API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listalbums.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListAlbumsWithCallback(request *ListAlbumsRequest, callback func(response *ListAlbumsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListAlbumsResponse + var err error + defer close(result) + response, err = client.ListAlbums(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListAlbumsRequest is the request struct for api ListAlbums +type ListAlbumsRequest struct { + *requests.RpcRequest + Direction string `position:"Query" name:"Direction"` + Size requests.Integer `position:"Query" name:"Size"` + Cursor string `position:"Query" name:"Cursor"` + State string `position:"Query" name:"State"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// ListAlbumsResponse is the response struct for api ListAlbums +type ListAlbumsResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + NextCursor string `json:"NextCursor" xml:"NextCursor"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Albums []Album `json:"Albums" xml:"Albums"` +} + +// CreateListAlbumsRequest creates a request to invoke ListAlbums API +func CreateListAlbumsRequest() (request *ListAlbumsRequest) { + request = &ListAlbumsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListAlbums", "cloudphoto", "openAPI") + return +} + +// CreateListAlbumsResponse creates a response to parse from ListAlbums response +func CreateListAlbumsResponse() (response *ListAlbumsResponse) { + response = &ListAlbumsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_events.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_events.go new file mode 100644 index 0000000..a754980 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_events.go @@ -0,0 +1,113 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListEvents invokes the cloudphoto.ListEvents API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/listevents.html +func (client *Client) ListEvents(request *ListEventsRequest) (response *ListEventsResponse, err error) { + response = CreateListEventsResponse() + err = client.DoAction(request, response) + return +} + +// ListEventsWithChan invokes the cloudphoto.ListEvents API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listevents.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListEventsWithChan(request *ListEventsRequest) (<-chan *ListEventsResponse, <-chan error) { + responseChan := make(chan *ListEventsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListEvents(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListEventsWithCallback invokes the cloudphoto.ListEvents API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listevents.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListEventsWithCallback(request *ListEventsRequest, callback func(response *ListEventsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListEventsResponse + var err error + defer close(result) + response, err = client.ListEvents(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListEventsRequest is the request struct for api ListEvents +type ListEventsRequest struct { + *requests.RpcRequest + Direction string `position:"Query" name:"Direction"` + Size requests.Integer `position:"Query" name:"Size"` + Cursor string `position:"Query" name:"Cursor"` + State string `position:"Query" name:"State"` + StoreName string `position:"Query" name:"StoreName"` +} + +// ListEventsResponse is the response struct for api ListEvents +type ListEventsResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + NextCursor string `json:"NextCursor" xml:"NextCursor"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Events []Event `json:"Events" xml:"Events"` +} + +// CreateListEventsRequest creates a request to invoke ListEvents API +func CreateListEventsRequest() (request *ListEventsRequest) { + request = &ListEventsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListEvents", "cloudphoto", "openAPI") + return +} + +// CreateListEventsResponse creates a response to parse from ListEvents response +func CreateListEventsResponse() (response *ListEventsResponse) { + response = &ListEventsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_face_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_face_photos.go new file mode 100644 index 0000000..0ee9ccf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_face_photos.go @@ -0,0 +1,115 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListFacePhotos invokes the cloudphoto.ListFacePhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/listfacephotos.html +func (client *Client) ListFacePhotos(request *ListFacePhotosRequest) (response *ListFacePhotosResponse, err error) { + response = CreateListFacePhotosResponse() + err = client.DoAction(request, response) + return +} + +// ListFacePhotosWithChan invokes the cloudphoto.ListFacePhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listfacephotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListFacePhotosWithChan(request *ListFacePhotosRequest) (<-chan *ListFacePhotosResponse, <-chan error) { + responseChan := make(chan *ListFacePhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListFacePhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListFacePhotosWithCallback invokes the cloudphoto.ListFacePhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listfacephotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListFacePhotosWithCallback(request *ListFacePhotosRequest, callback func(response *ListFacePhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListFacePhotosResponse + var err error + defer close(result) + response, err = client.ListFacePhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListFacePhotosRequest is the request struct for api ListFacePhotos +type ListFacePhotosRequest struct { + *requests.RpcRequest + FaceId requests.Integer `position:"Query" name:"FaceId"` + Direction string `position:"Query" name:"Direction"` + Size requests.Integer `position:"Query" name:"Size"` + Cursor string `position:"Query" name:"Cursor"` + State string `position:"Query" name:"State"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// ListFacePhotosResponse is the response struct for api ListFacePhotos +type ListFacePhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + NextCursor string `json:"NextCursor" xml:"NextCursor"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results []Result `json:"Results" xml:"Results"` +} + +// CreateListFacePhotosRequest creates a request to invoke ListFacePhotos API +func CreateListFacePhotosRequest() (request *ListFacePhotosRequest) { + request = &ListFacePhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListFacePhotos", "cloudphoto", "openAPI") + return +} + +// CreateListFacePhotosResponse creates a response to parse from ListFacePhotos response +func CreateListFacePhotosResponse() (response *ListFacePhotosResponse) { + response = &ListFacePhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_faces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_faces.go new file mode 100644 index 0000000..2007615 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_faces.go @@ -0,0 +1,115 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListFaces invokes the cloudphoto.ListFaces API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/listfaces.html +func (client *Client) ListFaces(request *ListFacesRequest) (response *ListFacesResponse, err error) { + response = CreateListFacesResponse() + err = client.DoAction(request, response) + return +} + +// ListFacesWithChan invokes the cloudphoto.ListFaces API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listfaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListFacesWithChan(request *ListFacesRequest) (<-chan *ListFacesResponse, <-chan error) { + responseChan := make(chan *ListFacesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListFaces(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListFacesWithCallback invokes the cloudphoto.ListFaces API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listfaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListFacesWithCallback(request *ListFacesRequest, callback func(response *ListFacesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListFacesResponse + var err error + defer close(result) + response, err = client.ListFaces(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListFacesRequest is the request struct for api ListFaces +type ListFacesRequest struct { + *requests.RpcRequest + Direction string `position:"Query" name:"Direction"` + Size requests.Integer `position:"Query" name:"Size"` + Cursor string `position:"Query" name:"Cursor"` + State string `position:"Query" name:"State"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` + HasFaceName string `position:"Query" name:"HasFaceName"` +} + +// ListFacesResponse is the response struct for api ListFaces +type ListFacesResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + NextCursor string `json:"NextCursor" xml:"NextCursor"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Faces []Face `json:"Faces" xml:"Faces"` +} + +// CreateListFacesRequest creates a request to invoke ListFaces API +func CreateListFacesRequest() (request *ListFacesRequest) { + request = &ListFacesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListFaces", "cloudphoto", "openAPI") + return +} + +// CreateListFacesResponse creates a response to parse from ListFaces response +func CreateListFacesResponse() (response *ListFacesResponse) { + response = &ListFacesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_moment_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_moment_photos.go new file mode 100644 index 0000000..2cc90e2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_moment_photos.go @@ -0,0 +1,115 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListMomentPhotos invokes the cloudphoto.ListMomentPhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/listmomentphotos.html +func (client *Client) ListMomentPhotos(request *ListMomentPhotosRequest) (response *ListMomentPhotosResponse, err error) { + response = CreateListMomentPhotosResponse() + err = client.DoAction(request, response) + return +} + +// ListMomentPhotosWithChan invokes the cloudphoto.ListMomentPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listmomentphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListMomentPhotosWithChan(request *ListMomentPhotosRequest) (<-chan *ListMomentPhotosResponse, <-chan error) { + responseChan := make(chan *ListMomentPhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListMomentPhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListMomentPhotosWithCallback invokes the cloudphoto.ListMomentPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listmomentphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListMomentPhotosWithCallback(request *ListMomentPhotosRequest, callback func(response *ListMomentPhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListMomentPhotosResponse + var err error + defer close(result) + response, err = client.ListMomentPhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListMomentPhotosRequest is the request struct for api ListMomentPhotos +type ListMomentPhotosRequest struct { + *requests.RpcRequest + MomentId requests.Integer `position:"Query" name:"MomentId"` + Direction string `position:"Query" name:"Direction"` + Size requests.Integer `position:"Query" name:"Size"` + Cursor string `position:"Query" name:"Cursor"` + State string `position:"Query" name:"State"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// ListMomentPhotosResponse is the response struct for api ListMomentPhotos +type ListMomentPhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + NextCursor string `json:"NextCursor" xml:"NextCursor"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results []Result `json:"Results" xml:"Results"` +} + +// CreateListMomentPhotosRequest creates a request to invoke ListMomentPhotos API +func CreateListMomentPhotosRequest() (request *ListMomentPhotosRequest) { + request = &ListMomentPhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListMomentPhotos", "cloudphoto", "openAPI") + return +} + +// CreateListMomentPhotosResponse creates a response to parse from ListMomentPhotos response +func CreateListMomentPhotosResponse() (response *ListMomentPhotosResponse) { + response = &ListMomentPhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_moments.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_moments.go new file mode 100644 index 0000000..cb320f6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_moments.go @@ -0,0 +1,114 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListMoments invokes the cloudphoto.ListMoments API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/listmoments.html +func (client *Client) ListMoments(request *ListMomentsRequest) (response *ListMomentsResponse, err error) { + response = CreateListMomentsResponse() + err = client.DoAction(request, response) + return +} + +// ListMomentsWithChan invokes the cloudphoto.ListMoments API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listmoments.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListMomentsWithChan(request *ListMomentsRequest) (<-chan *ListMomentsResponse, <-chan error) { + responseChan := make(chan *ListMomentsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListMoments(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListMomentsWithCallback invokes the cloudphoto.ListMoments API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listmoments.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListMomentsWithCallback(request *ListMomentsRequest, callback func(response *ListMomentsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListMomentsResponse + var err error + defer close(result) + response, err = client.ListMoments(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListMomentsRequest is the request struct for api ListMoments +type ListMomentsRequest struct { + *requests.RpcRequest + Direction string `position:"Query" name:"Direction"` + Size requests.Integer `position:"Query" name:"Size"` + Cursor string `position:"Query" name:"Cursor"` + State string `position:"Query" name:"State"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// ListMomentsResponse is the response struct for api ListMoments +type ListMomentsResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + NextCursor string `json:"NextCursor" xml:"NextCursor"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Moments []Moment `json:"Moments" xml:"Moments"` +} + +// CreateListMomentsRequest creates a request to invoke ListMoments API +func CreateListMomentsRequest() (request *ListMomentsRequest) { + request = &ListMomentsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListMoments", "cloudphoto", "openAPI") + return +} + +// CreateListMomentsResponse creates a response to parse from ListMoments response +func CreateListMomentsResponse() (response *ListMomentsResponse) { + response = &ListMomentsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_photo_faces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_photo_faces.go new file mode 100644 index 0000000..66e8739 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_photo_faces.go @@ -0,0 +1,109 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListPhotoFaces invokes the cloudphoto.ListPhotoFaces API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/listphotofaces.html +func (client *Client) ListPhotoFaces(request *ListPhotoFacesRequest) (response *ListPhotoFacesResponse, err error) { + response = CreateListPhotoFacesResponse() + err = client.DoAction(request, response) + return +} + +// ListPhotoFacesWithChan invokes the cloudphoto.ListPhotoFaces API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listphotofaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPhotoFacesWithChan(request *ListPhotoFacesRequest) (<-chan *ListPhotoFacesResponse, <-chan error) { + responseChan := make(chan *ListPhotoFacesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPhotoFaces(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPhotoFacesWithCallback invokes the cloudphoto.ListPhotoFaces API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listphotofaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPhotoFacesWithCallback(request *ListPhotoFacesRequest, callback func(response *ListPhotoFacesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPhotoFacesResponse + var err error + defer close(result) + response, err = client.ListPhotoFaces(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPhotoFacesRequest is the request struct for api ListPhotoFaces +type ListPhotoFacesRequest struct { + *requests.RpcRequest + PhotoId requests.Integer `position:"Query" name:"PhotoId"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// ListPhotoFacesResponse is the response struct for api ListPhotoFaces +type ListPhotoFacesResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Faces []Face `json:"Faces" xml:"Faces"` +} + +// CreateListPhotoFacesRequest creates a request to invoke ListPhotoFaces API +func CreateListPhotoFacesRequest() (request *ListPhotoFacesRequest) { + request = &ListPhotoFacesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListPhotoFaces", "cloudphoto", "openAPI") + return +} + +// CreateListPhotoFacesResponse creates a response to parse from ListPhotoFaces response +func CreateListPhotoFacesResponse() (response *ListPhotoFacesResponse) { + response = &ListPhotoFacesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_photo_stores.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_photo_stores.go new file mode 100644 index 0000000..a02cf36 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_photo_stores.go @@ -0,0 +1,106 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListPhotoStores invokes the cloudphoto.ListPhotoStores API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/listphotostores.html +func (client *Client) ListPhotoStores(request *ListPhotoStoresRequest) (response *ListPhotoStoresResponse, err error) { + response = CreateListPhotoStoresResponse() + err = client.DoAction(request, response) + return +} + +// ListPhotoStoresWithChan invokes the cloudphoto.ListPhotoStores API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listphotostores.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPhotoStoresWithChan(request *ListPhotoStoresRequest) (<-chan *ListPhotoStoresResponse, <-chan error) { + responseChan := make(chan *ListPhotoStoresResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPhotoStores(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPhotoStoresWithCallback invokes the cloudphoto.ListPhotoStores API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listphotostores.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPhotoStoresWithCallback(request *ListPhotoStoresRequest, callback func(response *ListPhotoStoresResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPhotoStoresResponse + var err error + defer close(result) + response, err = client.ListPhotoStores(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPhotoStoresRequest is the request struct for api ListPhotoStores +type ListPhotoStoresRequest struct { + *requests.RpcRequest +} + +// ListPhotoStoresResponse is the response struct for api ListPhotoStores +type ListPhotoStoresResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + PhotoStores []PhotoStore `json:"PhotoStores" xml:"PhotoStores"` +} + +// CreateListPhotoStoresRequest creates a request to invoke ListPhotoStores API +func CreateListPhotoStoresRequest() (request *ListPhotoStoresRequest) { + request = &ListPhotoStoresRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListPhotoStores", "cloudphoto", "openAPI") + return +} + +// CreateListPhotoStoresResponse creates a response to parse from ListPhotoStores response +func CreateListPhotoStoresResponse() (response *ListPhotoStoresResponse) { + response = &ListPhotoStoresResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_photo_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_photo_tags.go new file mode 100644 index 0000000..f89b01d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_photo_tags.go @@ -0,0 +1,110 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListPhotoTags invokes the cloudphoto.ListPhotoTags API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/listphototags.html +func (client *Client) ListPhotoTags(request *ListPhotoTagsRequest) (response *ListPhotoTagsResponse, err error) { + response = CreateListPhotoTagsResponse() + err = client.DoAction(request, response) + return +} + +// ListPhotoTagsWithChan invokes the cloudphoto.ListPhotoTags API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listphototags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPhotoTagsWithChan(request *ListPhotoTagsRequest) (<-chan *ListPhotoTagsResponse, <-chan error) { + responseChan := make(chan *ListPhotoTagsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPhotoTags(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPhotoTagsWithCallback invokes the cloudphoto.ListPhotoTags API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listphototags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPhotoTagsWithCallback(request *ListPhotoTagsRequest, callback func(response *ListPhotoTagsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPhotoTagsResponse + var err error + defer close(result) + response, err = client.ListPhotoTags(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPhotoTagsRequest is the request struct for api ListPhotoTags +type ListPhotoTagsRequest struct { + *requests.RpcRequest + PhotoId requests.Integer `position:"Query" name:"PhotoId"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` + Lang string `position:"Query" name:"Lang"` +} + +// ListPhotoTagsResponse is the response struct for api ListPhotoTags +type ListPhotoTagsResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Tags []Tag `json:"Tags" xml:"Tags"` +} + +// CreateListPhotoTagsRequest creates a request to invoke ListPhotoTags API +func CreateListPhotoTagsRequest() (request *ListPhotoTagsRequest) { + request = &ListPhotoTagsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListPhotoTags", "cloudphoto", "openAPI") + return +} + +// CreateListPhotoTagsResponse creates a response to parse from ListPhotoTags response +func CreateListPhotoTagsResponse() (response *ListPhotoTagsResponse) { + response = &ListPhotoTagsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_photos.go new file mode 100644 index 0000000..ca63039 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_photos.go @@ -0,0 +1,114 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListPhotos invokes the cloudphoto.ListPhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/listphotos.html +func (client *Client) ListPhotos(request *ListPhotosRequest) (response *ListPhotosResponse, err error) { + response = CreateListPhotosResponse() + err = client.DoAction(request, response) + return +} + +// ListPhotosWithChan invokes the cloudphoto.ListPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPhotosWithChan(request *ListPhotosRequest) (<-chan *ListPhotosResponse, <-chan error) { + responseChan := make(chan *ListPhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPhotosWithCallback invokes the cloudphoto.ListPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPhotosWithCallback(request *ListPhotosRequest, callback func(response *ListPhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPhotosResponse + var err error + defer close(result) + response, err = client.ListPhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPhotosRequest is the request struct for api ListPhotos +type ListPhotosRequest struct { + *requests.RpcRequest + Direction string `position:"Query" name:"Direction"` + Size requests.Integer `position:"Query" name:"Size"` + Cursor string `position:"Query" name:"Cursor"` + State string `position:"Query" name:"State"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// ListPhotosResponse is the response struct for api ListPhotos +type ListPhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + NextCursor string `json:"NextCursor" xml:"NextCursor"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Photos []Photo `json:"Photos" xml:"Photos"` +} + +// CreateListPhotosRequest creates a request to invoke ListPhotos API +func CreateListPhotosRequest() (request *ListPhotosRequest) { + request = &ListPhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListPhotos", "cloudphoto", "openAPI") + return +} + +// CreateListPhotosResponse creates a response to parse from ListPhotos response +func CreateListPhotosResponse() (response *ListPhotosResponse) { + response = &ListPhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_registered_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_registered_tags.go new file mode 100644 index 0000000..0085f1b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_registered_tags.go @@ -0,0 +1,108 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListRegisteredTags invokes the cloudphoto.ListRegisteredTags API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/listregisteredtags.html +func (client *Client) ListRegisteredTags(request *ListRegisteredTagsRequest) (response *ListRegisteredTagsResponse, err error) { + response = CreateListRegisteredTagsResponse() + err = client.DoAction(request, response) + return +} + +// ListRegisteredTagsWithChan invokes the cloudphoto.ListRegisteredTags API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listregisteredtags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListRegisteredTagsWithChan(request *ListRegisteredTagsRequest) (<-chan *ListRegisteredTagsResponse, <-chan error) { + responseChan := make(chan *ListRegisteredTagsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListRegisteredTags(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListRegisteredTagsWithCallback invokes the cloudphoto.ListRegisteredTags API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listregisteredtags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListRegisteredTagsWithCallback(request *ListRegisteredTagsRequest, callback func(response *ListRegisteredTagsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListRegisteredTagsResponse + var err error + defer close(result) + response, err = client.ListRegisteredTags(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListRegisteredTagsRequest is the request struct for api ListRegisteredTags +type ListRegisteredTagsRequest struct { + *requests.RpcRequest + StoreName string `position:"Query" name:"StoreName"` + Lang *[]string `position:"Query" name:"Lang" type:"Repeated"` +} + +// ListRegisteredTagsResponse is the response struct for api ListRegisteredTags +type ListRegisteredTagsResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + RegisteredTags []RegisteredTag `json:"RegisteredTags" xml:"RegisteredTags"` +} + +// CreateListRegisteredTagsRequest creates a request to invoke ListRegisteredTags API +func CreateListRegisteredTagsRequest() (request *ListRegisteredTagsRequest) { + request = &ListRegisteredTagsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListRegisteredTags", "cloudphoto", "openAPI") + return +} + +// CreateListRegisteredTagsResponse creates a response to parse from ListRegisteredTags response +func CreateListRegisteredTagsResponse() (response *ListRegisteredTagsResponse) { + response = &ListRegisteredTagsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_tag_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_tag_photos.go new file mode 100644 index 0000000..2254e0a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_tag_photos.go @@ -0,0 +1,115 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListTagPhotos invokes the cloudphoto.ListTagPhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/listtagphotos.html +func (client *Client) ListTagPhotos(request *ListTagPhotosRequest) (response *ListTagPhotosResponse, err error) { + response = CreateListTagPhotosResponse() + err = client.DoAction(request, response) + return +} + +// ListTagPhotosWithChan invokes the cloudphoto.ListTagPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listtagphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListTagPhotosWithChan(request *ListTagPhotosRequest) (<-chan *ListTagPhotosResponse, <-chan error) { + responseChan := make(chan *ListTagPhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListTagPhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListTagPhotosWithCallback invokes the cloudphoto.ListTagPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listtagphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListTagPhotosWithCallback(request *ListTagPhotosRequest, callback func(response *ListTagPhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListTagPhotosResponse + var err error + defer close(result) + response, err = client.ListTagPhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListTagPhotosRequest is the request struct for api ListTagPhotos +type ListTagPhotosRequest struct { + *requests.RpcRequest + TagId requests.Integer `position:"Query" name:"TagId"` + Direction string `position:"Query" name:"Direction"` + Size requests.Integer `position:"Query" name:"Size"` + Cursor string `position:"Query" name:"Cursor"` + State string `position:"Query" name:"State"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// ListTagPhotosResponse is the response struct for api ListTagPhotos +type ListTagPhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + NextCursor string `json:"NextCursor" xml:"NextCursor"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results []Result `json:"Results" xml:"Results"` +} + +// CreateListTagPhotosRequest creates a request to invoke ListTagPhotos API +func CreateListTagPhotosRequest() (request *ListTagPhotosRequest) { + request = &ListTagPhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListTagPhotos", "cloudphoto", "openAPI") + return +} + +// CreateListTagPhotosResponse creates a response to parse from ListTagPhotos response +func CreateListTagPhotosResponse() (response *ListTagPhotosResponse) { + response = &ListTagPhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_tags.go new file mode 100644 index 0000000..35ab166 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_tags.go @@ -0,0 +1,109 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListTags invokes the cloudphoto.ListTags API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/listtags.html +func (client *Client) ListTags(request *ListTagsRequest) (response *ListTagsResponse, err error) { + response = CreateListTagsResponse() + err = client.DoAction(request, response) + return +} + +// ListTagsWithChan invokes the cloudphoto.ListTags API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listtags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListTagsWithChan(request *ListTagsRequest) (<-chan *ListTagsResponse, <-chan error) { + responseChan := make(chan *ListTagsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListTags(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListTagsWithCallback invokes the cloudphoto.ListTags API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listtags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListTagsWithCallback(request *ListTagsRequest, callback func(response *ListTagsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListTagsResponse + var err error + defer close(result) + response, err = client.ListTags(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListTagsRequest is the request struct for api ListTags +type ListTagsRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// ListTagsResponse is the response struct for api ListTags +type ListTagsResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Tags []Tag `json:"Tags" xml:"Tags"` +} + +// CreateListTagsRequest creates a request to invoke ListTags API +func CreateListTagsRequest() (request *ListTagsRequest) { + request = &ListTagsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListTags", "cloudphoto", "openAPI") + return +} + +// CreateListTagsResponse creates a response to parse from ListTags response +func CreateListTagsResponse() (response *ListTagsResponse) { + response = &ListTagsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_time_line_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_time_line_photos.go new file mode 100644 index 0000000..fe3059d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_time_line_photos.go @@ -0,0 +1,116 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListTimeLinePhotos invokes the cloudphoto.ListTimeLinePhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/listtimelinephotos.html +func (client *Client) ListTimeLinePhotos(request *ListTimeLinePhotosRequest) (response *ListTimeLinePhotosResponse, err error) { + response = CreateListTimeLinePhotosResponse() + err = client.DoAction(request, response) + return +} + +// ListTimeLinePhotosWithChan invokes the cloudphoto.ListTimeLinePhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listtimelinephotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListTimeLinePhotosWithChan(request *ListTimeLinePhotosRequest) (<-chan *ListTimeLinePhotosResponse, <-chan error) { + responseChan := make(chan *ListTimeLinePhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListTimeLinePhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListTimeLinePhotosWithCallback invokes the cloudphoto.ListTimeLinePhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listtimelinephotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListTimeLinePhotosWithCallback(request *ListTimeLinePhotosRequest, callback func(response *ListTimeLinePhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListTimeLinePhotosResponse + var err error + defer close(result) + response, err = client.ListTimeLinePhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListTimeLinePhotosRequest is the request struct for api ListTimeLinePhotos +type ListTimeLinePhotosRequest struct { + *requests.RpcRequest + Direction string `position:"Query" name:"Direction"` + Page requests.Integer `position:"Query" name:"Page"` + Size requests.Integer `position:"Query" name:"Size"` + StartTime requests.Integer `position:"Query" name:"StartTime"` + EndTime requests.Integer `position:"Query" name:"EndTime"` + FilterBy string `position:"Query" name:"FilterBy"` + Order string `position:"Query" name:"Order"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// ListTimeLinePhotosResponse is the response struct for api ListTimeLinePhotos +type ListTimeLinePhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Photos []Photo `json:"Photos" xml:"Photos"` +} + +// CreateListTimeLinePhotosRequest creates a request to invoke ListTimeLinePhotos API +func CreateListTimeLinePhotosRequest() (request *ListTimeLinePhotosRequest) { + request = &ListTimeLinePhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListTimeLinePhotos", "cloudphoto", "openAPI") + return +} + +// CreateListTimeLinePhotosResponse creates a response to parse from ListTimeLinePhotos response +func CreateListTimeLinePhotosResponse() (response *ListTimeLinePhotosResponse) { + response = &ListTimeLinePhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_time_lines.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_time_lines.go new file mode 100644 index 0000000..e882d59 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/list_time_lines.go @@ -0,0 +1,116 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListTimeLines invokes the cloudphoto.ListTimeLines API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/listtimelines.html +func (client *Client) ListTimeLines(request *ListTimeLinesRequest) (response *ListTimeLinesResponse, err error) { + response = CreateListTimeLinesResponse() + err = client.DoAction(request, response) + return +} + +// ListTimeLinesWithChan invokes the cloudphoto.ListTimeLines API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listtimelines.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListTimeLinesWithChan(request *ListTimeLinesRequest) (<-chan *ListTimeLinesResponse, <-chan error) { + responseChan := make(chan *ListTimeLinesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListTimeLines(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListTimeLinesWithCallback invokes the cloudphoto.ListTimeLines API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/listtimelines.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListTimeLinesWithCallback(request *ListTimeLinesRequest, callback func(response *ListTimeLinesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListTimeLinesResponse + var err error + defer close(result) + response, err = client.ListTimeLines(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListTimeLinesRequest is the request struct for api ListTimeLines +type ListTimeLinesRequest struct { + *requests.RpcRequest + Direction string `position:"Query" name:"Direction"` + PhotoSize requests.Integer `position:"Query" name:"PhotoSize"` + Cursor requests.Integer `position:"Query" name:"Cursor"` + TimeLineCount requests.Integer `position:"Query" name:"TimeLineCount"` + TimeLineUnit string `position:"Query" name:"TimeLineUnit"` + FilterBy string `position:"Query" name:"FilterBy"` + Order string `position:"Query" name:"Order"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// ListTimeLinesResponse is the response struct for api ListTimeLines +type ListTimeLinesResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + NextCursor int `json:"NextCursor" xml:"NextCursor"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + TimeLines []TimeLine `json:"TimeLines" xml:"TimeLines"` +} + +// CreateListTimeLinesRequest creates a request to invoke ListTimeLines API +func CreateListTimeLinesRequest() (request *ListTimeLinesRequest) { + request = &ListTimeLinesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListTimeLines", "cloudphoto", "openAPI") + return +} + +// CreateListTimeLinesResponse creates a response to parse from ListTimeLines response +func CreateListTimeLinesResponse() (response *ListTimeLinesResponse) { + response = &ListTimeLinesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/merge_faces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/merge_faces.go new file mode 100644 index 0000000..2c482bb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/merge_faces.go @@ -0,0 +1,110 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// MergeFaces invokes the cloudphoto.MergeFaces API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/mergefaces.html +func (client *Client) MergeFaces(request *MergeFacesRequest) (response *MergeFacesResponse, err error) { + response = CreateMergeFacesResponse() + err = client.DoAction(request, response) + return +} + +// MergeFacesWithChan invokes the cloudphoto.MergeFaces API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/mergefaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) MergeFacesWithChan(request *MergeFacesRequest) (<-chan *MergeFacesResponse, <-chan error) { + responseChan := make(chan *MergeFacesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.MergeFaces(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// MergeFacesWithCallback invokes the cloudphoto.MergeFaces API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/mergefaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) MergeFacesWithCallback(request *MergeFacesRequest, callback func(response *MergeFacesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *MergeFacesResponse + var err error + defer close(result) + response, err = client.MergeFaces(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// MergeFacesRequest is the request struct for api MergeFaces +type MergeFacesRequest struct { + *requests.RpcRequest + FaceId *[]string `position:"Query" name:"FaceId" type:"Repeated"` + TargetFaceId requests.Integer `position:"Query" name:"TargetFaceId"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// MergeFacesResponse is the response struct for api MergeFaces +type MergeFacesResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results ResultsInMergeFaces `json:"Results" xml:"Results"` +} + +// CreateMergeFacesRequest creates a request to invoke MergeFaces API +func CreateMergeFacesRequest() (request *MergeFacesRequest) { + request = &MergeFacesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "MergeFaces", "cloudphoto", "openAPI") + return +} + +// CreateMergeFacesResponse creates a response to parse from MergeFaces response +func CreateMergeFacesResponse() (response *MergeFacesResponse) { + response = &MergeFacesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/move_album_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/move_album_photos.go new file mode 100644 index 0000000..12b7ac1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/move_album_photos.go @@ -0,0 +1,111 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// MoveAlbumPhotos invokes the cloudphoto.MoveAlbumPhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/movealbumphotos.html +func (client *Client) MoveAlbumPhotos(request *MoveAlbumPhotosRequest) (response *MoveAlbumPhotosResponse, err error) { + response = CreateMoveAlbumPhotosResponse() + err = client.DoAction(request, response) + return +} + +// MoveAlbumPhotosWithChan invokes the cloudphoto.MoveAlbumPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/movealbumphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) MoveAlbumPhotosWithChan(request *MoveAlbumPhotosRequest) (<-chan *MoveAlbumPhotosResponse, <-chan error) { + responseChan := make(chan *MoveAlbumPhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.MoveAlbumPhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// MoveAlbumPhotosWithCallback invokes the cloudphoto.MoveAlbumPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/movealbumphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) MoveAlbumPhotosWithCallback(request *MoveAlbumPhotosRequest, callback func(response *MoveAlbumPhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *MoveAlbumPhotosResponse + var err error + defer close(result) + response, err = client.MoveAlbumPhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// MoveAlbumPhotosRequest is the request struct for api MoveAlbumPhotos +type MoveAlbumPhotosRequest struct { + *requests.RpcRequest + SourceAlbumId requests.Integer `position:"Query" name:"SourceAlbumId"` + PhotoId *[]string `position:"Query" name:"PhotoId" type:"Repeated"` + TargetAlbumId requests.Integer `position:"Query" name:"TargetAlbumId"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// MoveAlbumPhotosResponse is the response struct for api MoveAlbumPhotos +type MoveAlbumPhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results []Result `json:"Results" xml:"Results"` +} + +// CreateMoveAlbumPhotosRequest creates a request to invoke MoveAlbumPhotos API +func CreateMoveAlbumPhotosRequest() (request *MoveAlbumPhotosRequest) { + request = &MoveAlbumPhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "MoveAlbumPhotos", "cloudphoto", "openAPI") + return +} + +// CreateMoveAlbumPhotosResponse creates a response to parse from MoveAlbumPhotos response +func CreateMoveAlbumPhotosResponse() (response *MoveAlbumPhotosResponse) { + response = &MoveAlbumPhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/move_face_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/move_face_photos.go new file mode 100644 index 0000000..7974419 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/move_face_photos.go @@ -0,0 +1,111 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// MoveFacePhotos invokes the cloudphoto.MoveFacePhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/movefacephotos.html +func (client *Client) MoveFacePhotos(request *MoveFacePhotosRequest) (response *MoveFacePhotosResponse, err error) { + response = CreateMoveFacePhotosResponse() + err = client.DoAction(request, response) + return +} + +// MoveFacePhotosWithChan invokes the cloudphoto.MoveFacePhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/movefacephotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) MoveFacePhotosWithChan(request *MoveFacePhotosRequest) (<-chan *MoveFacePhotosResponse, <-chan error) { + responseChan := make(chan *MoveFacePhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.MoveFacePhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// MoveFacePhotosWithCallback invokes the cloudphoto.MoveFacePhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/movefacephotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) MoveFacePhotosWithCallback(request *MoveFacePhotosRequest, callback func(response *MoveFacePhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *MoveFacePhotosResponse + var err error + defer close(result) + response, err = client.MoveFacePhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// MoveFacePhotosRequest is the request struct for api MoveFacePhotos +type MoveFacePhotosRequest struct { + *requests.RpcRequest + SourceFaceId requests.Integer `position:"Query" name:"SourceFaceId"` + PhotoId *[]string `position:"Query" name:"PhotoId" type:"Repeated"` + TargetFaceId requests.Integer `position:"Query" name:"TargetFaceId"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// MoveFacePhotosResponse is the response struct for api MoveFacePhotos +type MoveFacePhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results []Result `json:"Results" xml:"Results"` +} + +// CreateMoveFacePhotosRequest creates a request to invoke MoveFacePhotos API +func CreateMoveFacePhotosRequest() (request *MoveFacePhotosRequest) { + request = &MoveFacePhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "MoveFacePhotos", "cloudphoto", "openAPI") + return +} + +// CreateMoveFacePhotosResponse creates a response to parse from MoveFacePhotos response +func CreateMoveFacePhotosResponse() (response *MoveFacePhotosResponse) { + response = &MoveFacePhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/reactivate_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/reactivate_photos.go new file mode 100644 index 0000000..83ec930 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/reactivate_photos.go @@ -0,0 +1,109 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReactivatePhotos invokes the cloudphoto.ReactivatePhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/reactivatephotos.html +func (client *Client) ReactivatePhotos(request *ReactivatePhotosRequest) (response *ReactivatePhotosResponse, err error) { + response = CreateReactivatePhotosResponse() + err = client.DoAction(request, response) + return +} + +// ReactivatePhotosWithChan invokes the cloudphoto.ReactivatePhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/reactivatephotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReactivatePhotosWithChan(request *ReactivatePhotosRequest) (<-chan *ReactivatePhotosResponse, <-chan error) { + responseChan := make(chan *ReactivatePhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReactivatePhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReactivatePhotosWithCallback invokes the cloudphoto.ReactivatePhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/reactivatephotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReactivatePhotosWithCallback(request *ReactivatePhotosRequest, callback func(response *ReactivatePhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReactivatePhotosResponse + var err error + defer close(result) + response, err = client.ReactivatePhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReactivatePhotosRequest is the request struct for api ReactivatePhotos +type ReactivatePhotosRequest struct { + *requests.RpcRequest + PhotoId *[]string `position:"Query" name:"PhotoId" type:"Repeated"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// ReactivatePhotosResponse is the response struct for api ReactivatePhotos +type ReactivatePhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results []Result `json:"Results" xml:"Results"` +} + +// CreateReactivatePhotosRequest creates a request to invoke ReactivatePhotos API +func CreateReactivatePhotosRequest() (request *ReactivatePhotosRequest) { + request = &ReactivatePhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ReactivatePhotos", "cloudphoto", "openAPI") + return +} + +// CreateReactivatePhotosResponse creates a response to parse from ReactivatePhotos response +func CreateReactivatePhotosResponse() (response *ReactivatePhotosResponse) { + response = &ReactivatePhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/register_photo.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/register_photo.go new file mode 100644 index 0000000..51dffb1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/register_photo.go @@ -0,0 +1,119 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RegisterPhoto invokes the cloudphoto.RegisterPhoto API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/registerphoto.html +func (client *Client) RegisterPhoto(request *RegisterPhotoRequest) (response *RegisterPhotoResponse, err error) { + response = CreateRegisterPhotoResponse() + err = client.DoAction(request, response) + return +} + +// RegisterPhotoWithChan invokes the cloudphoto.RegisterPhoto API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/registerphoto.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RegisterPhotoWithChan(request *RegisterPhotoRequest) (<-chan *RegisterPhotoResponse, <-chan error) { + responseChan := make(chan *RegisterPhotoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RegisterPhoto(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RegisterPhotoWithCallback invokes the cloudphoto.RegisterPhoto API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/registerphoto.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RegisterPhotoWithCallback(request *RegisterPhotoRequest, callback func(response *RegisterPhotoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RegisterPhotoResponse + var err error + defer close(result) + response, err = client.RegisterPhoto(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RegisterPhotoRequest is the request struct for api RegisterPhoto +type RegisterPhotoRequest struct { + *requests.RpcRequest + TakenAt requests.Integer `position:"Query" name:"TakenAt"` + Location string `position:"Query" name:"Location"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` + Latitude requests.Float `position:"Query" name:"Latitude"` + Longitude requests.Float `position:"Query" name:"Longitude"` + Width requests.Integer `position:"Query" name:"Width"` + Height requests.Integer `position:"Query" name:"Height"` + IsVideo string `position:"Query" name:"IsVideo"` + Md5 string `position:"Query" name:"Md5"` + Size requests.Integer `position:"Query" name:"Size"` + PhotoTitle string `position:"Query" name:"PhotoTitle"` + Remark string `position:"Query" name:"Remark"` +} + +// RegisterPhotoResponse is the response struct for api RegisterPhoto +type RegisterPhotoResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Photo Photo `json:"Photo" xml:"Photo"` +} + +// CreateRegisterPhotoRequest creates a request to invoke RegisterPhoto API +func CreateRegisterPhotoRequest() (request *RegisterPhotoRequest) { + request = &RegisterPhotoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "RegisterPhoto", "cloudphoto", "openAPI") + return +} + +// CreateRegisterPhotoResponse creates a response to parse from RegisterPhoto response +func CreateRegisterPhotoResponse() (response *RegisterPhotoResponse) { + response = &RegisterPhotoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/register_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/register_tag.go new file mode 100644 index 0000000..739b914 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/register_tag.go @@ -0,0 +1,109 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RegisterTag invokes the cloudphoto.RegisterTag API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/registertag.html +func (client *Client) RegisterTag(request *RegisterTagRequest) (response *RegisterTagResponse, err error) { + response = CreateRegisterTagResponse() + err = client.DoAction(request, response) + return +} + +// RegisterTagWithChan invokes the cloudphoto.RegisterTag API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/registertag.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RegisterTagWithChan(request *RegisterTagRequest) (<-chan *RegisterTagResponse, <-chan error) { + responseChan := make(chan *RegisterTagResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RegisterTag(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RegisterTagWithCallback invokes the cloudphoto.RegisterTag API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/registertag.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RegisterTagWithCallback(request *RegisterTagRequest, callback func(response *RegisterTagResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RegisterTagResponse + var err error + defer close(result) + response, err = client.RegisterTag(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RegisterTagRequest is the request struct for api RegisterTag +type RegisterTagRequest struct { + *requests.RpcRequest + StoreName string `position:"Query" name:"StoreName"` + TagKey string `position:"Query" name:"TagKey"` + Lang string `position:"Query" name:"Lang"` + Text string `position:"Query" name:"Text"` +} + +// RegisterTagResponse is the response struct for api RegisterTag +type RegisterTagResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` +} + +// CreateRegisterTagRequest creates a request to invoke RegisterTag API +func CreateRegisterTagRequest() (request *RegisterTagRequest) { + request = &RegisterTagRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "RegisterTag", "cloudphoto", "openAPI") + return +} + +// CreateRegisterTagResponse creates a response to parse from RegisterTag response +func CreateRegisterTagResponse() (response *RegisterTagResponse) { + response = &RegisterTagResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/remove_album_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/remove_album_photos.go new file mode 100644 index 0000000..0244bd2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/remove_album_photos.go @@ -0,0 +1,110 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveAlbumPhotos invokes the cloudphoto.RemoveAlbumPhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/removealbumphotos.html +func (client *Client) RemoveAlbumPhotos(request *RemoveAlbumPhotosRequest) (response *RemoveAlbumPhotosResponse, err error) { + response = CreateRemoveAlbumPhotosResponse() + err = client.DoAction(request, response) + return +} + +// RemoveAlbumPhotosWithChan invokes the cloudphoto.RemoveAlbumPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/removealbumphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveAlbumPhotosWithChan(request *RemoveAlbumPhotosRequest) (<-chan *RemoveAlbumPhotosResponse, <-chan error) { + responseChan := make(chan *RemoveAlbumPhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveAlbumPhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveAlbumPhotosWithCallback invokes the cloudphoto.RemoveAlbumPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/removealbumphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveAlbumPhotosWithCallback(request *RemoveAlbumPhotosRequest, callback func(response *RemoveAlbumPhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveAlbumPhotosResponse + var err error + defer close(result) + response, err = client.RemoveAlbumPhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveAlbumPhotosRequest is the request struct for api RemoveAlbumPhotos +type RemoveAlbumPhotosRequest struct { + *requests.RpcRequest + AlbumId requests.Integer `position:"Query" name:"AlbumId"` + PhotoId *[]string `position:"Query" name:"PhotoId" type:"Repeated"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// RemoveAlbumPhotosResponse is the response struct for api RemoveAlbumPhotos +type RemoveAlbumPhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results []Result `json:"Results" xml:"Results"` +} + +// CreateRemoveAlbumPhotosRequest creates a request to invoke RemoveAlbumPhotos API +func CreateRemoveAlbumPhotosRequest() (request *RemoveAlbumPhotosRequest) { + request = &RemoveAlbumPhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "RemoveAlbumPhotos", "cloudphoto", "openAPI") + return +} + +// CreateRemoveAlbumPhotosResponse creates a response to parse from RemoveAlbumPhotos response +func CreateRemoveAlbumPhotosResponse() (response *RemoveAlbumPhotosResponse) { + response = &RemoveAlbumPhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/remove_face_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/remove_face_photos.go new file mode 100644 index 0000000..0e5192b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/remove_face_photos.go @@ -0,0 +1,110 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveFacePhotos invokes the cloudphoto.RemoveFacePhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/removefacephotos.html +func (client *Client) RemoveFacePhotos(request *RemoveFacePhotosRequest) (response *RemoveFacePhotosResponse, err error) { + response = CreateRemoveFacePhotosResponse() + err = client.DoAction(request, response) + return +} + +// RemoveFacePhotosWithChan invokes the cloudphoto.RemoveFacePhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/removefacephotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveFacePhotosWithChan(request *RemoveFacePhotosRequest) (<-chan *RemoveFacePhotosResponse, <-chan error) { + responseChan := make(chan *RemoveFacePhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveFacePhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveFacePhotosWithCallback invokes the cloudphoto.RemoveFacePhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/removefacephotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveFacePhotosWithCallback(request *RemoveFacePhotosRequest, callback func(response *RemoveFacePhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveFacePhotosResponse + var err error + defer close(result) + response, err = client.RemoveFacePhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveFacePhotosRequest is the request struct for api RemoveFacePhotos +type RemoveFacePhotosRequest struct { + *requests.RpcRequest + FaceId requests.Integer `position:"Query" name:"FaceId"` + PhotoId *[]string `position:"Query" name:"PhotoId" type:"Repeated"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// RemoveFacePhotosResponse is the response struct for api RemoveFacePhotos +type RemoveFacePhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Results []Result `json:"Results" xml:"Results"` +} + +// CreateRemoveFacePhotosRequest creates a request to invoke RemoveFacePhotos API +func CreateRemoveFacePhotosRequest() (request *RemoveFacePhotosRequest) { + request = &RemoveFacePhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "RemoveFacePhotos", "cloudphoto", "openAPI") + return +} + +// CreateRemoveFacePhotosResponse creates a response to parse from RemoveFacePhotos response +func CreateRemoveFacePhotosResponse() (response *RemoveFacePhotosResponse) { + response = &RemoveFacePhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/rename_album.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/rename_album.go new file mode 100644 index 0000000..fe7c0b4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/rename_album.go @@ -0,0 +1,109 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RenameAlbum invokes the cloudphoto.RenameAlbum API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/renamealbum.html +func (client *Client) RenameAlbum(request *RenameAlbumRequest) (response *RenameAlbumResponse, err error) { + response = CreateRenameAlbumResponse() + err = client.DoAction(request, response) + return +} + +// RenameAlbumWithChan invokes the cloudphoto.RenameAlbum API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/renamealbum.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RenameAlbumWithChan(request *RenameAlbumRequest) (<-chan *RenameAlbumResponse, <-chan error) { + responseChan := make(chan *RenameAlbumResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RenameAlbum(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RenameAlbumWithCallback invokes the cloudphoto.RenameAlbum API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/renamealbum.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RenameAlbumWithCallback(request *RenameAlbumRequest, callback func(response *RenameAlbumResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RenameAlbumResponse + var err error + defer close(result) + response, err = client.RenameAlbum(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RenameAlbumRequest is the request struct for api RenameAlbum +type RenameAlbumRequest struct { + *requests.RpcRequest + AlbumId requests.Integer `position:"Query" name:"AlbumId"` + AlbumName string `position:"Query" name:"AlbumName"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// RenameAlbumResponse is the response struct for api RenameAlbum +type RenameAlbumResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` +} + +// CreateRenameAlbumRequest creates a request to invoke RenameAlbum API +func CreateRenameAlbumRequest() (request *RenameAlbumRequest) { + request = &RenameAlbumRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "RenameAlbum", "cloudphoto", "openAPI") + return +} + +// CreateRenameAlbumResponse creates a response to parse from RenameAlbum response +func CreateRenameAlbumResponse() (response *RenameAlbumResponse) { + response = &RenameAlbumResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/rename_face.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/rename_face.go new file mode 100644 index 0000000..3769329 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/rename_face.go @@ -0,0 +1,109 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RenameFace invokes the cloudphoto.RenameFace API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/renameface.html +func (client *Client) RenameFace(request *RenameFaceRequest) (response *RenameFaceResponse, err error) { + response = CreateRenameFaceResponse() + err = client.DoAction(request, response) + return +} + +// RenameFaceWithChan invokes the cloudphoto.RenameFace API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/renameface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RenameFaceWithChan(request *RenameFaceRequest) (<-chan *RenameFaceResponse, <-chan error) { + responseChan := make(chan *RenameFaceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RenameFace(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RenameFaceWithCallback invokes the cloudphoto.RenameFace API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/renameface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RenameFaceWithCallback(request *RenameFaceRequest, callback func(response *RenameFaceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RenameFaceResponse + var err error + defer close(result) + response, err = client.RenameFace(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RenameFaceRequest is the request struct for api RenameFace +type RenameFaceRequest struct { + *requests.RpcRequest + FaceId requests.Integer `position:"Query" name:"FaceId"` + FaceName string `position:"Query" name:"FaceName"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// RenameFaceResponse is the response struct for api RenameFace +type RenameFaceResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` +} + +// CreateRenameFaceRequest creates a request to invoke RenameFace API +func CreateRenameFaceRequest() (request *RenameFaceRequest) { + request = &RenameFaceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "RenameFace", "cloudphoto", "openAPI") + return +} + +// CreateRenameFaceResponse creates a response to parse from RenameFace response +func CreateRenameFaceResponse() (response *RenameFaceResponse) { + response = &RenameFaceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/search_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/search_photos.go new file mode 100644 index 0000000..14b5baf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/search_photos.go @@ -0,0 +1,112 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SearchPhotos invokes the cloudphoto.SearchPhotos API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/searchphotos.html +func (client *Client) SearchPhotos(request *SearchPhotosRequest) (response *SearchPhotosResponse, err error) { + response = CreateSearchPhotosResponse() + err = client.DoAction(request, response) + return +} + +// SearchPhotosWithChan invokes the cloudphoto.SearchPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/searchphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SearchPhotosWithChan(request *SearchPhotosRequest) (<-chan *SearchPhotosResponse, <-chan error) { + responseChan := make(chan *SearchPhotosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SearchPhotos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SearchPhotosWithCallback invokes the cloudphoto.SearchPhotos API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/searchphotos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SearchPhotosWithCallback(request *SearchPhotosRequest, callback func(response *SearchPhotosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SearchPhotosResponse + var err error + defer close(result) + response, err = client.SearchPhotos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SearchPhotosRequest is the request struct for api SearchPhotos +type SearchPhotosRequest struct { + *requests.RpcRequest + Page requests.Integer `position:"Query" name:"Page"` + Size requests.Integer `position:"Query" name:"Size"` + Keyword string `position:"Query" name:"Keyword"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// SearchPhotosResponse is the response struct for api SearchPhotos +type SearchPhotosResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Photos []Photo `json:"Photos" xml:"Photos"` +} + +// CreateSearchPhotosRequest creates a request to invoke SearchPhotos API +func CreateSearchPhotosRequest() (request *SearchPhotosRequest) { + request = &SearchPhotosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "SearchPhotos", "cloudphoto", "openAPI") + return +} + +// CreateSearchPhotosResponse creates a response to parse from SearchPhotos response +func CreateSearchPhotosResponse() (response *SearchPhotosResponse) { + response = &SearchPhotosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/set_album_cover.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/set_album_cover.go new file mode 100644 index 0000000..1cb1fbf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/set_album_cover.go @@ -0,0 +1,109 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetAlbumCover invokes the cloudphoto.SetAlbumCover API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/setalbumcover.html +func (client *Client) SetAlbumCover(request *SetAlbumCoverRequest) (response *SetAlbumCoverResponse, err error) { + response = CreateSetAlbumCoverResponse() + err = client.DoAction(request, response) + return +} + +// SetAlbumCoverWithChan invokes the cloudphoto.SetAlbumCover API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/setalbumcover.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetAlbumCoverWithChan(request *SetAlbumCoverRequest) (<-chan *SetAlbumCoverResponse, <-chan error) { + responseChan := make(chan *SetAlbumCoverResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetAlbumCover(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetAlbumCoverWithCallback invokes the cloudphoto.SetAlbumCover API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/setalbumcover.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetAlbumCoverWithCallback(request *SetAlbumCoverRequest, callback func(response *SetAlbumCoverResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetAlbumCoverResponse + var err error + defer close(result) + response, err = client.SetAlbumCover(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetAlbumCoverRequest is the request struct for api SetAlbumCover +type SetAlbumCoverRequest struct { + *requests.RpcRequest + AlbumId requests.Integer `position:"Query" name:"AlbumId"` + PhotoId requests.Integer `position:"Query" name:"PhotoId"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// SetAlbumCoverResponse is the response struct for api SetAlbumCover +type SetAlbumCoverResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` +} + +// CreateSetAlbumCoverRequest creates a request to invoke SetAlbumCover API +func CreateSetAlbumCoverRequest() (request *SetAlbumCoverRequest) { + request = &SetAlbumCoverRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "SetAlbumCover", "cloudphoto", "openAPI") + return +} + +// CreateSetAlbumCoverResponse creates a response to parse from SetAlbumCover response +func CreateSetAlbumCoverResponse() (response *SetAlbumCoverResponse) { + response = &SetAlbumCoverResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/set_face_cover.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/set_face_cover.go new file mode 100644 index 0000000..f07cf1f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/set_face_cover.go @@ -0,0 +1,109 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetFaceCover invokes the cloudphoto.SetFaceCover API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/setfacecover.html +func (client *Client) SetFaceCover(request *SetFaceCoverRequest) (response *SetFaceCoverResponse, err error) { + response = CreateSetFaceCoverResponse() + err = client.DoAction(request, response) + return +} + +// SetFaceCoverWithChan invokes the cloudphoto.SetFaceCover API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/setfacecover.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetFaceCoverWithChan(request *SetFaceCoverRequest) (<-chan *SetFaceCoverResponse, <-chan error) { + responseChan := make(chan *SetFaceCoverResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetFaceCover(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetFaceCoverWithCallback invokes the cloudphoto.SetFaceCover API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/setfacecover.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetFaceCoverWithCallback(request *SetFaceCoverRequest, callback func(response *SetFaceCoverResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetFaceCoverResponse + var err error + defer close(result) + response, err = client.SetFaceCover(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetFaceCoverRequest is the request struct for api SetFaceCover +type SetFaceCoverRequest struct { + *requests.RpcRequest + FaceId requests.Integer `position:"Query" name:"FaceId"` + PhotoId requests.Integer `position:"Query" name:"PhotoId"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// SetFaceCoverResponse is the response struct for api SetFaceCover +type SetFaceCoverResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` +} + +// CreateSetFaceCoverRequest creates a request to invoke SetFaceCover API +func CreateSetFaceCoverRequest() (request *SetFaceCoverRequest) { + request = &SetFaceCoverRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "SetFaceCover", "cloudphoto", "openAPI") + return +} + +// CreateSetFaceCoverResponse creates a response to parse from SetFaceCover response +func CreateSetFaceCoverResponse() (response *SetFaceCoverResponse) { + response = &SetFaceCoverResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/set_me.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/set_me.go new file mode 100644 index 0000000..b57834d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/set_me.go @@ -0,0 +1,108 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetMe invokes the cloudphoto.SetMe API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/setme.html +func (client *Client) SetMe(request *SetMeRequest) (response *SetMeResponse, err error) { + response = CreateSetMeResponse() + err = client.DoAction(request, response) + return +} + +// SetMeWithChan invokes the cloudphoto.SetMe API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/setme.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetMeWithChan(request *SetMeRequest) (<-chan *SetMeResponse, <-chan error) { + responseChan := make(chan *SetMeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetMe(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetMeWithCallback invokes the cloudphoto.SetMe API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/setme.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetMeWithCallback(request *SetMeRequest, callback func(response *SetMeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetMeResponse + var err error + defer close(result) + response, err = client.SetMe(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetMeRequest is the request struct for api SetMe +type SetMeRequest struct { + *requests.RpcRequest + FaceId requests.Integer `position:"Query" name:"FaceId"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// SetMeResponse is the response struct for api SetMe +type SetMeResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` +} + +// CreateSetMeRequest creates a request to invoke SetMe API +func CreateSetMeRequest() (request *SetMeRequest) { + request = &SetMeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "SetMe", "cloudphoto", "openAPI") + return +} + +// CreateSetMeResponse creates a response to parse from SetMe response +func CreateSetMeResponse() (response *SetMeResponse) { + response = &SetMeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/set_quota.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/set_quota.go new file mode 100644 index 0000000..41e3799 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/set_quota.go @@ -0,0 +1,108 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetQuota invokes the cloudphoto.SetQuota API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/setquota.html +func (client *Client) SetQuota(request *SetQuotaRequest) (response *SetQuotaResponse, err error) { + response = CreateSetQuotaResponse() + err = client.DoAction(request, response) + return +} + +// SetQuotaWithChan invokes the cloudphoto.SetQuota API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/setquota.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetQuotaWithChan(request *SetQuotaRequest) (<-chan *SetQuotaResponse, <-chan error) { + responseChan := make(chan *SetQuotaResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetQuota(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetQuotaWithCallback invokes the cloudphoto.SetQuota API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/setquota.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetQuotaWithCallback(request *SetQuotaRequest, callback func(response *SetQuotaResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetQuotaResponse + var err error + defer close(result) + response, err = client.SetQuota(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetQuotaRequest is the request struct for api SetQuota +type SetQuotaRequest struct { + *requests.RpcRequest + TotalQuota requests.Integer `position:"Query" name:"TotalQuota"` + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` +} + +// SetQuotaResponse is the response struct for api SetQuota +type SetQuotaResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` +} + +// CreateSetQuotaRequest creates a request to invoke SetQuota API +func CreateSetQuotaRequest() (request *SetQuotaRequest) { + request = &SetQuotaRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "SetQuota", "cloudphoto", "openAPI") + return +} + +// CreateSetQuotaResponse creates a response to parse from SetQuota response +func CreateSetQuotaResponse() (response *SetQuotaResponse) { + response = &SetQuotaResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_album.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_album.go new file mode 100644 index 0000000..f8201a1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_album.go @@ -0,0 +1,29 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Album is a nested struct in cloudphoto response +type Album struct { + Name string `json:"Name" xml:"Name"` + IdStr string `json:"IdStr" xml:"IdStr"` + Ctime int `json:"Ctime" xml:"Ctime"` + State string `json:"State" xml:"State"` + PhotosCount int `json:"PhotosCount" xml:"PhotosCount"` + Mtime int `json:"Mtime" xml:"Mtime"` + Remark string `json:"Remark" xml:"Remark"` + Id int `json:"Id" xml:"Id"` + Cover Cover `json:"Cover" xml:"Cover"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_albums_in_get_albums_by_names.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_albums_in_get_albums_by_names.go new file mode 100644 index 0000000..c4089e4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_albums_in_get_albums_by_names.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AlbumsInGetAlbumsByNames is a nested struct in cloudphoto response +type AlbumsInGetAlbumsByNames struct { + Album []Album `json:"Album" xml:"Album"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_albums_in_list_albums.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_albums_in_list_albums.go new file mode 100644 index 0000000..5c9eeef --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_albums_in_list_albums.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AlbumsInListAlbums is a nested struct in cloudphoto response +type AlbumsInListAlbums struct { + Album []Album `json:"Album" xml:"Album"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_auto_clean_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_auto_clean_config.go new file mode 100644 index 0000000..1ffe4c6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_auto_clean_config.go @@ -0,0 +1,22 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AutoCleanConfig is a nested struct in cloudphoto response +type AutoCleanConfig struct { + AutoCleanEnabled bool `json:"AutoCleanEnabled" xml:"AutoCleanEnabled"` + AutoCleanDays int `json:"AutoCleanDays" xml:"AutoCleanDays"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_axis_in_list_faces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_axis_in_list_faces.go new file mode 100644 index 0000000..6e8312e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_axis_in_list_faces.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AxisInListFaces is a nested struct in cloudphoto response +type AxisInListFaces struct { + Axis []string `json:"Axis" xml:"Axis"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_axis_in_list_photo_faces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_axis_in_list_photo_faces.go new file mode 100644 index 0000000..80c4593 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_axis_in_list_photo_faces.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AxisInListPhotoFaces is a nested struct in cloudphoto response +type AxisInListPhotoFaces struct { + Axis []string `json:"Axis" xml:"Axis"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_bucket.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_bucket.go new file mode 100644 index 0000000..b7aee36 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_bucket.go @@ -0,0 +1,24 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Bucket is a nested struct in cloudphoto response +type Bucket struct { + Name string `json:"Name" xml:"Name"` + Region string `json:"Region" xml:"Region"` + State string `json:"State" xml:"State"` + Acl string `json:"Acl" xml:"Acl"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_buckets_in_get_photo_store.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_buckets_in_get_photo_store.go new file mode 100644 index 0000000..af6172f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_buckets_in_get_photo_store.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BucketsInGetPhotoStore is a nested struct in cloudphoto response +type BucketsInGetPhotoStore struct { + Bucket []Bucket `json:"Bucket" xml:"Bucket"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_buckets_in_list_photo_stores.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_buckets_in_list_photo_stores.go new file mode 100644 index 0000000..33a8047 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_buckets_in_list_photo_stores.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BucketsInListPhotoStores is a nested struct in cloudphoto response +type BucketsInListPhotoStores struct { + Bucket []Bucket `json:"Bucket" xml:"Bucket"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_cover.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_cover.go new file mode 100644 index 0000000..76ffdce --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_cover.go @@ -0,0 +1,32 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Cover is a nested struct in cloudphoto response +type Cover struct { + FileId string `json:"FileId" xml:"FileId"` + IsVideo bool `json:"IsVideo" xml:"IsVideo"` + IdStr string `json:"IdStr" xml:"IdStr"` + Ctime int `json:"Ctime" xml:"Ctime"` + State string `json:"State" xml:"State"` + Title string `json:"Title" xml:"Title"` + Remark string `json:"Remark" xml:"Remark"` + Mtime int `json:"Mtime" xml:"Mtime"` + Md5 string `json:"Md5" xml:"Md5"` + Width int `json:"Width" xml:"Width"` + Id int `json:"Id" xml:"Id"` + Height int `json:"Height" xml:"Height"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_event.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_event.go new file mode 100644 index 0000000..5369ced --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_event.go @@ -0,0 +1,35 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Event is a nested struct in cloudphoto response +type Event struct { + IdStr string `json:"IdStr" xml:"IdStr"` + Ctime int `json:"Ctime" xml:"Ctime"` + Title string `json:"Title" xml:"Title"` + SplashPhotoId string `json:"SplashPhotoId" xml:"SplashPhotoId"` + Id int `json:"Id" xml:"Id"` + BannerPhotoId string `json:"BannerPhotoId" xml:"BannerPhotoId"` + WeixinTitle string `json:"WeixinTitle" xml:"WeixinTitle"` + Identity string `json:"Identity" xml:"Identity"` + State string `json:"State" xml:"State"` + EndAt int `json:"EndAt" xml:"EndAt"` + Mtime int `json:"Mtime" xml:"Mtime"` + ViewsCount int `json:"ViewsCount" xml:"ViewsCount"` + LibraryId string `json:"LibraryId" xml:"LibraryId"` + WatermarkPhotoId string `json:"WatermarkPhotoId" xml:"WatermarkPhotoId"` + StartAt int `json:"StartAt" xml:"StartAt"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_events.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_events.go new file mode 100644 index 0000000..eea0bc9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_events.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Events is a nested struct in cloudphoto response +type Events struct { + Event []Event `json:"Event" xml:"Event"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_face.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_face.go new file mode 100644 index 0000000..185d93e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_face.go @@ -0,0 +1,33 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Face is a nested struct in cloudphoto response +type Face struct { + Name string `json:"Name" xml:"Name"` + FaceIdStr string `json:"FaceIdStr" xml:"FaceIdStr"` + IdStr string `json:"IdStr" xml:"IdStr"` + Ctime int `json:"Ctime" xml:"Ctime"` + IsMe bool `json:"IsMe" xml:"IsMe"` + FaceId int `json:"FaceId" xml:"FaceId"` + Id int `json:"Id" xml:"Id"` + FaceName string `json:"FaceName" xml:"FaceName"` + State string `json:"State" xml:"State"` + PhotosCount int `json:"PhotosCount" xml:"PhotosCount"` + Mtime int `json:"Mtime" xml:"Mtime"` + Axis []string `json:"Axis" xml:"Axis"` + Cover Cover `json:"Cover" xml:"Cover"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_faces_in_list_faces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_faces_in_list_faces.go new file mode 100644 index 0000000..303c5fe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_faces_in_list_faces.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FacesInListFaces is a nested struct in cloudphoto response +type FacesInListFaces struct { + Face []Face `json:"Face" xml:"Face"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_faces_in_list_photo_faces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_faces_in_list_photo_faces.go new file mode 100644 index 0000000..e6c24ee --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_faces_in_list_photo_faces.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FacesInListPhotoFaces is a nested struct in cloudphoto response +type FacesInListPhotoFaces struct { + Face []Face `json:"Face" xml:"Face"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_libraries.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_libraries.go new file mode 100644 index 0000000..9e5a843 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_libraries.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Libraries is a nested struct in cloudphoto response +type Libraries struct { + Library []Library `json:"Library" xml:"Library"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_library.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_library.go new file mode 100644 index 0000000..c90fd8e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_library.go @@ -0,0 +1,24 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Library is a nested struct in cloudphoto response +type Library struct { + Ctime int `json:"Ctime" xml:"Ctime"` + LibraryId string `json:"LibraryId" xml:"LibraryId"` + AutoCleanConfig AutoCleanConfig `json:"AutoCleanConfig" xml:"AutoCleanConfig"` + Quota Quota `json:"Quota" xml:"Quota"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_moment.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_moment.go new file mode 100644 index 0000000..115b185 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_moment.go @@ -0,0 +1,28 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Moment is a nested struct in cloudphoto response +type Moment struct { + Id int `json:"Id" xml:"Id"` + IdStr string `json:"IdStr" xml:"IdStr"` + LocationName string `json:"LocationName" xml:"LocationName"` + PhotosCount int `json:"PhotosCount" xml:"PhotosCount"` + State string `json:"State" xml:"State"` + TakenAt int `json:"TakenAt" xml:"TakenAt"` + Ctime int `json:"Ctime" xml:"Ctime"` + Mtime int `json:"Mtime" xml:"Mtime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_moments.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_moments.go new file mode 100644 index 0000000..72774b5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_moments.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Moments is a nested struct in cloudphoto response +type Moments struct { + Moment []Moment `json:"Moment" xml:"Moment"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photo.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photo.go new file mode 100644 index 0000000..a5bb3c1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photo.go @@ -0,0 +1,38 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Photo is a nested struct in cloudphoto response +type Photo struct { + FileId string `json:"FileId" xml:"FileId"` + IdStr string `json:"IdStr" xml:"IdStr"` + Ctime int `json:"Ctime" xml:"Ctime"` + Title string `json:"Title" xml:"Title"` + Remark string `json:"Remark" xml:"Remark"` + Like int `json:"Like" xml:"Like"` + Id int `json:"Id" xml:"Id"` + InactiveTime int `json:"InactiveTime" xml:"InactiveTime"` + ShareExpireTime int `json:"ShareExpireTime" xml:"ShareExpireTime"` + Location string `json:"Location" xml:"Location"` + Height int `json:"Height" xml:"Height"` + IsVideo bool `json:"IsVideo" xml:"IsVideo"` + State string `json:"State" xml:"State"` + Mtime int `json:"Mtime" xml:"Mtime"` + Md5 string `json:"Md5" xml:"Md5"` + Width int `json:"Width" xml:"Width"` + Size int `json:"Size" xml:"Size"` + TakenAt int `json:"TakenAt" xml:"TakenAt"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photo_store.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photo_store.go new file mode 100644 index 0000000..d4561b5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photo_store.go @@ -0,0 +1,31 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PhotoStore is a nested struct in cloudphoto response +type PhotoStore struct { + Name string `json:"Name" xml:"Name"` + IdStr string `json:"IdStr" xml:"IdStr"` + Ctime int `json:"Ctime" xml:"Ctime"` + AutoCleanEnabled bool `json:"AutoCleanEnabled" xml:"AutoCleanEnabled"` + DefaultQuota int `json:"DefaultQuota" xml:"DefaultQuota"` + Remark string `json:"Remark" xml:"Remark"` + Mtime int `json:"Mtime" xml:"Mtime"` + DefaultTrashQuota int `json:"DefaultTrashQuota" xml:"DefaultTrashQuota"` + Id int `json:"Id" xml:"Id"` + AutoCleanDays int `json:"AutoCleanDays" xml:"AutoCleanDays"` + Buckets []Bucket `json:"Buckets" xml:"Buckets"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photo_stores.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photo_stores.go new file mode 100644 index 0000000..ad17814 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photo_stores.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PhotoStores is a nested struct in cloudphoto response +type PhotoStores struct { + PhotoStore []PhotoStore `json:"PhotoStore" xml:"PhotoStore"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_fetch_moment_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_fetch_moment_photos.go new file mode 100644 index 0000000..f4aaafb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_fetch_moment_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PhotosInFetchMomentPhotos is a nested struct in cloudphoto response +type PhotosInFetchMomentPhotos struct { + Photo []Photo `json:"Photo" xml:"Photo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_fetch_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_fetch_photos.go new file mode 100644 index 0000000..f37d227 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_fetch_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PhotosInFetchPhotos is a nested struct in cloudphoto response +type PhotosInFetchPhotos struct { + Photo []Photo `json:"Photo" xml:"Photo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_get_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_get_photos.go new file mode 100644 index 0000000..5ce4112 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_get_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PhotosInGetPhotos is a nested struct in cloudphoto response +type PhotosInGetPhotos struct { + Photo []Photo `json:"Photo" xml:"Photo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_get_photos_by_md5s.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_get_photos_by_md5s.go new file mode 100644 index 0000000..e850150 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_get_photos_by_md5s.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PhotosInGetPhotosByMd5s is a nested struct in cloudphoto response +type PhotosInGetPhotosByMd5s struct { + Photo []Photo `json:"Photo" xml:"Photo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_get_similar_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_get_similar_photos.go new file mode 100644 index 0000000..f0d5998 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_get_similar_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PhotosInGetSimilarPhotos is a nested struct in cloudphoto response +type PhotosInGetSimilarPhotos struct { + Photo []Photo `json:"Photo" xml:"Photo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_list_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_list_photos.go new file mode 100644 index 0000000..5000de5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_list_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PhotosInListPhotos is a nested struct in cloudphoto response +type PhotosInListPhotos struct { + Photo []Photo `json:"Photo" xml:"Photo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_list_time_line_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_list_time_line_photos.go new file mode 100644 index 0000000..2293a04 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_list_time_line_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PhotosInListTimeLinePhotos is a nested struct in cloudphoto response +type PhotosInListTimeLinePhotos struct { + Photo []Photo `json:"Photo" xml:"Photo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_list_time_lines.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_list_time_lines.go new file mode 100644 index 0000000..761a7f3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_list_time_lines.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PhotosInListTimeLines is a nested struct in cloudphoto response +type PhotosInListTimeLines struct { + Photo []Photo `json:"Photo" xml:"Photo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_search_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_search_photos.go new file mode 100644 index 0000000..801604e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_photos_in_search_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PhotosInSearchPhotos is a nested struct in cloudphoto response +type PhotosInSearchPhotos struct { + Photo []Photo `json:"Photo" xml:"Photo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_quota.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_quota.go new file mode 100644 index 0000000..c5c292e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_quota.go @@ -0,0 +1,28 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Quota is a nested struct in cloudphoto response +type Quota struct { + TotalTrashQuota int `json:"TotalTrashQuota" xml:"TotalTrashQuota"` + ActiveSize int `json:"ActiveSize" xml:"ActiveSize"` + UsedQuota int `json:"UsedQuota" xml:"UsedQuota"` + InactiveSize int `json:"InactiveSize" xml:"InactiveSize"` + PhotosCount int `json:"PhotosCount" xml:"PhotosCount"` + FacesCount int `json:"FacesCount" xml:"FacesCount"` + VideosCount int `json:"VideosCount" xml:"VideosCount"` + TotalQuota int `json:"TotalQuota" xml:"TotalQuota"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_registered_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_registered_tag.go new file mode 100644 index 0000000..82d6bbb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_registered_tag.go @@ -0,0 +1,22 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RegisteredTag is a nested struct in cloudphoto response +type RegisteredTag struct { + TagKey string `json:"TagKey" xml:"TagKey"` + TagValues []TagValue `json:"TagValues" xml:"TagValues"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_registered_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_registered_tags.go new file mode 100644 index 0000000..d89341b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_registered_tags.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RegisteredTags is a nested struct in cloudphoto response +type RegisteredTags struct { + RegisteredTag []RegisteredTag `json:"RegisteredTag" xml:"RegisteredTag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_result.go new file mode 100644 index 0000000..fe5c007 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_result.go @@ -0,0 +1,32 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Result is a nested struct in cloudphoto response +type Result struct { + AccessUrl string `json:"AccessUrl" xml:"AccessUrl"` + FramedPhotoUrl string `json:"FramedPhotoUrl" xml:"FramedPhotoUrl"` + IdStr string `json:"IdStr" xml:"IdStr"` + Message string `json:"Message" xml:"Message"` + PhotoIdStr string `json:"PhotoIdStr" xml:"PhotoIdStr"` + State string `json:"State" xml:"State"` + Code string `json:"Code" xml:"Code"` + Mtime int `json:"Mtime" xml:"Mtime"` + Id int `json:"Id" xml:"Id"` + ThumbnailUrl string `json:"ThumbnailUrl" xml:"ThumbnailUrl"` + DownloadUrl string `json:"DownloadUrl" xml:"DownloadUrl"` + PhotoId int `json:"PhotoId" xml:"PhotoId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_activate_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_activate_photos.go new file mode 100644 index 0000000..bb967fa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_activate_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInActivatePhotos is a nested struct in cloudphoto response +type ResultsInActivatePhotos struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_add_album_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_add_album_photos.go new file mode 100644 index 0000000..0321ffe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_add_album_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInAddAlbumPhotos is a nested struct in cloudphoto response +type ResultsInAddAlbumPhotos struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_delete_albums.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_delete_albums.go new file mode 100644 index 0000000..e44a6af --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_delete_albums.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInDeleteAlbums is a nested struct in cloudphoto response +type ResultsInDeleteAlbums struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_delete_faces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_delete_faces.go new file mode 100644 index 0000000..ba32558 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_delete_faces.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInDeleteFaces is a nested struct in cloudphoto response +type ResultsInDeleteFaces struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_delete_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_delete_photos.go new file mode 100644 index 0000000..aa203e9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_delete_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInDeletePhotos is a nested struct in cloudphoto response +type ResultsInDeletePhotos struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_edit_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_edit_photos.go new file mode 100644 index 0000000..55c3247 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_edit_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInEditPhotos is a nested struct in cloudphoto response +type ResultsInEditPhotos struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_fetch_album_tag_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_fetch_album_tag_photos.go new file mode 100644 index 0000000..fd2f6e0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_fetch_album_tag_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInFetchAlbumTagPhotos is a nested struct in cloudphoto response +type ResultsInFetchAlbumTagPhotos struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_get_download_urls.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_get_download_urls.go new file mode 100644 index 0000000..6b56dcf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_get_download_urls.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInGetDownloadUrls is a nested struct in cloudphoto response +type ResultsInGetDownloadUrls struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_get_framed_photo_urls.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_get_framed_photo_urls.go new file mode 100644 index 0000000..8541797 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_get_framed_photo_urls.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInGetFramedPhotoUrls is a nested struct in cloudphoto response +type ResultsInGetFramedPhotoUrls struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_get_private_access_urls.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_get_private_access_urls.go new file mode 100644 index 0000000..13d7152 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_get_private_access_urls.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInGetPrivateAccessUrls is a nested struct in cloudphoto response +type ResultsInGetPrivateAccessUrls struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_get_public_access_urls.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_get_public_access_urls.go new file mode 100644 index 0000000..6ff64e7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_get_public_access_urls.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInGetPublicAccessUrls is a nested struct in cloudphoto response +type ResultsInGetPublicAccessUrls struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_get_thumbnails.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_get_thumbnails.go new file mode 100644 index 0000000..fdca0af --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_get_thumbnails.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInGetThumbnails is a nested struct in cloudphoto response +type ResultsInGetThumbnails struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_inactivate_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_inactivate_photos.go new file mode 100644 index 0000000..be73cd0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_inactivate_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInInactivatePhotos is a nested struct in cloudphoto response +type ResultsInInactivatePhotos struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_list_album_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_list_album_photos.go new file mode 100644 index 0000000..bb07262 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_list_album_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInListAlbumPhotos is a nested struct in cloudphoto response +type ResultsInListAlbumPhotos struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_list_face_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_list_face_photos.go new file mode 100644 index 0000000..a18a8b3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_list_face_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInListFacePhotos is a nested struct in cloudphoto response +type ResultsInListFacePhotos struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_list_moment_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_list_moment_photos.go new file mode 100644 index 0000000..52cab36 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_list_moment_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInListMomentPhotos is a nested struct in cloudphoto response +type ResultsInListMomentPhotos struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_list_tag_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_list_tag_photos.go new file mode 100644 index 0000000..48bcd3b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_list_tag_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInListTagPhotos is a nested struct in cloudphoto response +type ResultsInListTagPhotos struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_merge_faces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_merge_faces.go new file mode 100644 index 0000000..03511f3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_merge_faces.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInMergeFaces is a nested struct in cloudphoto response +type ResultsInMergeFaces struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_move_album_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_move_album_photos.go new file mode 100644 index 0000000..24bdb1f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_move_album_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInMoveAlbumPhotos is a nested struct in cloudphoto response +type ResultsInMoveAlbumPhotos struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_move_face_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_move_face_photos.go new file mode 100644 index 0000000..8978ca7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_move_face_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInMoveFacePhotos is a nested struct in cloudphoto response +type ResultsInMoveFacePhotos struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_reactivate_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_reactivate_photos.go new file mode 100644 index 0000000..b7ef541 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_reactivate_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInReactivatePhotos is a nested struct in cloudphoto response +type ResultsInReactivatePhotos struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_remove_album_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_remove_album_photos.go new file mode 100644 index 0000000..e326e4e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_remove_album_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInRemoveAlbumPhotos is a nested struct in cloudphoto response +type ResultsInRemoveAlbumPhotos struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_remove_face_photos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_remove_face_photos.go new file mode 100644 index 0000000..19693a7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_results_in_remove_face_photos.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInRemoveFacePhotos is a nested struct in cloudphoto response +type ResultsInRemoveFacePhotos struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_tag.go new file mode 100644 index 0000000..ca0b54c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_tag.go @@ -0,0 +1,26 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 cloudphoto response +type Tag struct { + Name string `json:"Name" xml:"Name"` + ParentTag string `json:"ParentTag" xml:"ParentTag"` + IdStr string `json:"IdStr" xml:"IdStr"` + Id int `json:"Id" xml:"Id"` + IsSubTag bool `json:"IsSubTag" xml:"IsSubTag"` + Cover Cover `json:"Cover" xml:"Cover"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_tag_value.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_tag_value.go new file mode 100644 index 0000000..c5d7016 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_tag_value.go @@ -0,0 +1,22 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagValue is a nested struct in cloudphoto response +type TagValue struct { + Lang string `json:"Lang" xml:"Lang"` + Text string `json:"Text" xml:"Text"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_tag_values.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_tag_values.go new file mode 100644 index 0000000..9aecbfa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_tag_values.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagValues is a nested struct in cloudphoto response +type TagValues struct { + TagValue []TagValue `json:"TagValue" xml:"TagValue"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_tags_in_list_photo_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_tags_in_list_photo_tags.go new file mode 100644 index 0000000..7f014d1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_tags_in_list_photo_tags.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInListPhotoTags is a nested struct in cloudphoto response +type TagsInListPhotoTags struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_tags_in_list_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_tags_in_list_tags.go new file mode 100644 index 0000000..54a9876 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_tags_in_list_tags.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInListTags is a nested struct in cloudphoto response +type TagsInListTags struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_time_line.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_time_line.go new file mode 100644 index 0000000..585638d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_time_line.go @@ -0,0 +1,25 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TimeLine is a nested struct in cloudphoto response +type TimeLine struct { + StartTime int `json:"StartTime" xml:"StartTime"` + EndTime int `json:"EndTime" xml:"EndTime"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PhotosCount int `json:"PhotosCount" xml:"PhotosCount"` + Photos []Photo `json:"Photos" xml:"Photos"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_time_lines.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_time_lines.go new file mode 100644 index 0000000..64a45f6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_time_lines.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TimeLines is a nested struct in cloudphoto response +type TimeLines struct { + TimeLine []TimeLine `json:"TimeLine" xml:"TimeLine"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_transaction.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_transaction.go new file mode 100644 index 0000000..a302874 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_transaction.go @@ -0,0 +1,21 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Transaction is a nested struct in cloudphoto response +type Transaction struct { + Upload Upload `json:"Upload" xml:"Upload"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_upload.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_upload.go new file mode 100644 index 0000000..a45c466 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/struct_upload.go @@ -0,0 +1,28 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Upload is a nested struct in cloudphoto response +type Upload struct { + Bucket string `json:"Bucket" xml:"Bucket"` + FileId string `json:"FileId" xml:"FileId"` + OssEndpoint string `json:"OssEndpoint" xml:"OssEndpoint"` + ObjectKey string `json:"ObjectKey" xml:"ObjectKey"` + SessionId string `json:"SessionId" xml:"SessionId"` + AccessKeyId string `json:"AccessKeyId" xml:"AccessKeyId"` + AccessKeySecret string `json:"AccessKeySecret" xml:"AccessKeySecret"` + StsToken string `json:"StsToken" xml:"StsToken"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/tag_photo.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/tag_photo.go new file mode 100644 index 0000000..361bbcc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/tag_photo.go @@ -0,0 +1,110 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TagPhoto invokes the cloudphoto.TagPhoto API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/tagphoto.html +func (client *Client) TagPhoto(request *TagPhotoRequest) (response *TagPhotoResponse, err error) { + response = CreateTagPhotoResponse() + err = client.DoAction(request, response) + return +} + +// TagPhotoWithChan invokes the cloudphoto.TagPhoto API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/tagphoto.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TagPhotoWithChan(request *TagPhotoRequest) (<-chan *TagPhotoResponse, <-chan error) { + responseChan := make(chan *TagPhotoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TagPhoto(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TagPhotoWithCallback invokes the cloudphoto.TagPhoto API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/tagphoto.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TagPhotoWithCallback(request *TagPhotoRequest, callback func(response *TagPhotoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TagPhotoResponse + var err error + defer close(result) + response, err = client.TagPhoto(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TagPhotoRequest is the request struct for api TagPhoto +type TagPhotoRequest struct { + *requests.RpcRequest + StoreName string `position:"Query" name:"StoreName"` + LibraryId string `position:"Query" name:"LibraryId"` + TagKey *[]string `position:"Query" name:"TagKey" type:"Repeated"` + Confidence *[]string `position:"Query" name:"Confidence" type:"Repeated"` + PhotoId requests.Integer `position:"Query" name:"PhotoId"` +} + +// TagPhotoResponse is the response struct for api TagPhoto +type TagPhotoResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` +} + +// CreateTagPhotoRequest creates a request to invoke TagPhoto API +func CreateTagPhotoRequest() (request *TagPhotoRequest) { + request = &TagPhotoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "TagPhoto", "cloudphoto", "openAPI") + return +} + +// CreateTagPhotoResponse creates a response to parse from TagPhoto response +func CreateTagPhotoResponse() (response *TagPhotoResponse) { + response = &TagPhotoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/toggle_features.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/toggle_features.go new file mode 100644 index 0000000..e6a9c65 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cloudphoto/toggle_features.go @@ -0,0 +1,108 @@ +package cloudphoto + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ToggleFeatures invokes the cloudphoto.ToggleFeatures API synchronously +// api document: https://help.aliyun.com/api/cloudphoto/togglefeatures.html +func (client *Client) ToggleFeatures(request *ToggleFeaturesRequest) (response *ToggleFeaturesResponse, err error) { + response = CreateToggleFeaturesResponse() + err = client.DoAction(request, response) + return +} + +// ToggleFeaturesWithChan invokes the cloudphoto.ToggleFeatures API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/togglefeatures.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ToggleFeaturesWithChan(request *ToggleFeaturesRequest) (<-chan *ToggleFeaturesResponse, <-chan error) { + responseChan := make(chan *ToggleFeaturesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ToggleFeatures(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ToggleFeaturesWithCallback invokes the cloudphoto.ToggleFeatures API asynchronously +// api document: https://help.aliyun.com/api/cloudphoto/togglefeatures.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ToggleFeaturesWithCallback(request *ToggleFeaturesRequest, callback func(response *ToggleFeaturesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ToggleFeaturesResponse + var err error + defer close(result) + response, err = client.ToggleFeatures(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ToggleFeaturesRequest is the request struct for api ToggleFeatures +type ToggleFeaturesRequest struct { + *requests.RpcRequest + StoreName string `position:"Query" name:"StoreName"` + EnabledFeatures *[]string `position:"Query" name:"EnabledFeatures" type:"Repeated"` + DisabledFeatures *[]string `position:"Query" name:"DisabledFeatures" type:"Repeated"` +} + +// ToggleFeaturesResponse is the response struct for api ToggleFeatures +type ToggleFeaturesResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` +} + +// CreateToggleFeaturesRequest creates a request to invoke ToggleFeatures API +func CreateToggleFeaturesRequest() (request *ToggleFeaturesRequest) { + request = &ToggleFeaturesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ToggleFeatures", "cloudphoto", "openAPI") + return +} + +// CreateToggleFeaturesResponse creates a response to parse from ToggleFeatures response +func CreateToggleFeaturesResponse() (response *ToggleFeaturesResponse) { + response = &ToggleFeaturesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/access_key_get.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/access_key_get.go new file mode 100644 index 0000000..8594dda --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/access_key_get.go @@ -0,0 +1,109 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AccessKeyGet invokes the cms.AccessKeyGet API synchronously +// api document: https://help.aliyun.com/api/cms/accesskeyget.html +func (client *Client) AccessKeyGet(request *AccessKeyGetRequest) (response *AccessKeyGetResponse, err error) { + response = CreateAccessKeyGetResponse() + err = client.DoAction(request, response) + return +} + +// AccessKeyGetWithChan invokes the cms.AccessKeyGet API asynchronously +// api document: https://help.aliyun.com/api/cms/accesskeyget.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AccessKeyGetWithChan(request *AccessKeyGetRequest) (<-chan *AccessKeyGetResponse, <-chan error) { + responseChan := make(chan *AccessKeyGetResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AccessKeyGet(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AccessKeyGetWithCallback invokes the cms.AccessKeyGet API asynchronously +// api document: https://help.aliyun.com/api/cms/accesskeyget.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AccessKeyGetWithCallback(request *AccessKeyGetRequest, callback func(response *AccessKeyGetResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AccessKeyGetResponse + var err error + defer close(result) + response, err = client.AccessKeyGet(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AccessKeyGetRequest is the request struct for api AccessKeyGet +type AccessKeyGetRequest struct { + *requests.RpcRequest + UserId requests.Integer `position:"Query" name:"UserId"` +} + +// AccessKeyGetResponse is the response struct for api AccessKeyGet +type AccessKeyGetResponse struct { + *responses.BaseResponse + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Success bool `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` + UserId int `json:"UserId" xml:"UserId"` + AccessKey string `json:"AccessKey" xml:"AccessKey"` + SecretKey string `json:"SecretKey" xml:"SecretKey"` +} + +// CreateAccessKeyGetRequest creates a request to invoke AccessKeyGet API +func CreateAccessKeyGetRequest() (request *AccessKeyGetRequest) { + request = &AccessKeyGetRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "AccessKeyGet", "cms", "openAPI") + return +} + +// CreateAccessKeyGetResponse creates a response to parse from AccessKeyGet response +func CreateAccessKeyGetResponse() (response *AccessKeyGetResponse) { + response = &AccessKeyGetResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/add_my_group_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/add_my_group_instances.go new file mode 100644 index 0000000..1a74a73 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/add_my_group_instances.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddMyGroupInstances invokes the cms.AddMyGroupInstances API synchronously +// api document: https://help.aliyun.com/api/cms/addmygroupinstances.html +func (client *Client) AddMyGroupInstances(request *AddMyGroupInstancesRequest) (response *AddMyGroupInstancesResponse, err error) { + response = CreateAddMyGroupInstancesResponse() + err = client.DoAction(request, response) + return +} + +// AddMyGroupInstancesWithChan invokes the cms.AddMyGroupInstances API asynchronously +// api document: https://help.aliyun.com/api/cms/addmygroupinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddMyGroupInstancesWithChan(request *AddMyGroupInstancesRequest) (<-chan *AddMyGroupInstancesResponse, <-chan error) { + responseChan := make(chan *AddMyGroupInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddMyGroupInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddMyGroupInstancesWithCallback invokes the cms.AddMyGroupInstances API asynchronously +// api document: https://help.aliyun.com/api/cms/addmygroupinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddMyGroupInstancesWithCallback(request *AddMyGroupInstancesRequest, callback func(response *AddMyGroupInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddMyGroupInstancesResponse + var err error + defer close(result) + response, err = client.AddMyGroupInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddMyGroupInstancesRequest is the request struct for api AddMyGroupInstances +type AddMyGroupInstancesRequest struct { + *requests.RpcRequest + Instances string `position:"Query" name:"Instances"` + GroupId requests.Integer `position:"Query" name:"GroupId"` +} + +// AddMyGroupInstancesResponse is the response struct for api AddMyGroupInstances +type AddMyGroupInstancesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` +} + +// CreateAddMyGroupInstancesRequest creates a request to invoke AddMyGroupInstances API +func CreateAddMyGroupInstancesRequest() (request *AddMyGroupInstancesRequest) { + request = &AddMyGroupInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "AddMyGroupInstances", "cms", "openAPI") + return +} + +// CreateAddMyGroupInstancesResponse creates a response to parse from AddMyGroupInstances response +func CreateAddMyGroupInstancesResponse() (response *AddMyGroupInstancesResponse) { + response = &AddMyGroupInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/apply_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/apply_template.go new file mode 100644 index 0000000..37beefb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/apply_template.go @@ -0,0 +1,113 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ApplyTemplate invokes the cms.ApplyTemplate API synchronously +// api document: https://help.aliyun.com/api/cms/applytemplate.html +func (client *Client) ApplyTemplate(request *ApplyTemplateRequest) (response *ApplyTemplateResponse, err error) { + response = CreateApplyTemplateResponse() + err = client.DoAction(request, response) + return +} + +// ApplyTemplateWithChan invokes the cms.ApplyTemplate API asynchronously +// api document: https://help.aliyun.com/api/cms/applytemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ApplyTemplateWithChan(request *ApplyTemplateRequest) (<-chan *ApplyTemplateResponse, <-chan error) { + responseChan := make(chan *ApplyTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ApplyTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ApplyTemplateWithCallback invokes the cms.ApplyTemplate API asynchronously +// api document: https://help.aliyun.com/api/cms/applytemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ApplyTemplateWithCallback(request *ApplyTemplateRequest, callback func(response *ApplyTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ApplyTemplateResponse + var err error + defer close(result) + response, err = client.ApplyTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ApplyTemplateRequest is the request struct for api ApplyTemplate +type ApplyTemplateRequest struct { + *requests.RpcRequest + EnableStartTime requests.Integer `position:"Query" name:"EnableStartTime"` + ApplyMode string `position:"Query" name:"ApplyMode"` + TemplateIds string `position:"Query" name:"TemplateIds"` + EnableEndTime requests.Integer `position:"Query" name:"EnableEndTime"` + GroupId requests.Integer `position:"Query" name:"GroupId"` + NotifyLevel requests.Integer `position:"Query" name:"NotifyLevel"` + SilenceTime requests.Integer `position:"Query" name:"SilenceTime"` +} + +// ApplyTemplateResponse is the response struct for api ApplyTemplate +type ApplyTemplateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Resource Resource `json:"Resource" xml:"Resource"` +} + +// CreateApplyTemplateRequest creates a request to invoke ApplyTemplate API +func CreateApplyTemplateRequest() (request *ApplyTemplateRequest) { + request = &ApplyTemplateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "ApplyTemplate", "cms", "openAPI") + return +} + +// CreateApplyTemplateResponse creates a response to parse from ApplyTemplate response +func CreateApplyTemplateResponse() (response *ApplyTemplateResponse) { + response = &ApplyTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/client.go new file mode 100644 index 0000000..6fb148c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/client.go @@ -0,0 +1,81 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/create_alarm.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/create_alarm.go new file mode 100644 index 0000000..522e5c5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/create_alarm.go @@ -0,0 +1,121 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateAlarm invokes the cms.CreateAlarm API synchronously +// api document: https://help.aliyun.com/api/cms/createalarm.html +func (client *Client) CreateAlarm(request *CreateAlarmRequest) (response *CreateAlarmResponse, err error) { + response = CreateCreateAlarmResponse() + err = client.DoAction(request, response) + return +} + +// CreateAlarmWithChan invokes the cms.CreateAlarm API asynchronously +// api document: https://help.aliyun.com/api/cms/createalarm.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateAlarmWithChan(request *CreateAlarmRequest) (<-chan *CreateAlarmResponse, <-chan error) { + responseChan := make(chan *CreateAlarmResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateAlarm(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateAlarmWithCallback invokes the cms.CreateAlarm API asynchronously +// api document: https://help.aliyun.com/api/cms/createalarm.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateAlarmWithCallback(request *CreateAlarmRequest, callback func(response *CreateAlarmResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateAlarmResponse + var err error + defer close(result) + response, err = client.CreateAlarm(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateAlarmRequest is the request struct for api CreateAlarm +type CreateAlarmRequest struct { + *requests.RpcRequest + Period requests.Integer `position:"Query" name:"Period"` + Webhook string `position:"Query" name:"Webhook"` + ContactGroups string `position:"Query" name:"ContactGroups"` + EndTime requests.Integer `position:"Query" name:"EndTime"` + Threshold string `position:"Query" name:"Threshold"` + StartTime requests.Integer `position:"Query" name:"StartTime"` + Namespace string `position:"Query" name:"Namespace"` + Name string `position:"Query" name:"Name"` + EvaluationCount requests.Integer `position:"Query" name:"EvaluationCount"` + SilenceTime requests.Integer `position:"Query" name:"SilenceTime"` + MetricName string `position:"Query" name:"MetricName"` + NotifyType requests.Integer `position:"Query" name:"NotifyType"` + ComparisonOperator string `position:"Query" name:"ComparisonOperator"` + Dimensions string `position:"Query" name:"Dimensions"` + Statistics string `position:"Query" name:"Statistics"` +} + +// CreateAlarmResponse is the response struct for api CreateAlarm +type CreateAlarmResponse struct { + *responses.BaseResponse + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data string `json:"Data" xml:"Data"` +} + +// CreateCreateAlarmRequest creates a request to invoke CreateAlarm API +func CreateCreateAlarmRequest() (request *CreateAlarmRequest) { + request = &CreateAlarmRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "CreateAlarm", "cms", "openAPI") + return +} + +// CreateCreateAlarmResponse creates a response to parse from CreateAlarm response +func CreateCreateAlarmResponse() (response *CreateAlarmResponse) { + response = &CreateAlarmResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/create_my_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/create_my_groups.go new file mode 100644 index 0000000..febfcdc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/create_my_groups.go @@ -0,0 +1,112 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateMyGroups invokes the cms.CreateMyGroups API synchronously +// api document: https://help.aliyun.com/api/cms/createmygroups.html +func (client *Client) CreateMyGroups(request *CreateMyGroupsRequest) (response *CreateMyGroupsResponse, err error) { + response = CreateCreateMyGroupsResponse() + err = client.DoAction(request, response) + return +} + +// CreateMyGroupsWithChan invokes the cms.CreateMyGroups API asynchronously +// api document: https://help.aliyun.com/api/cms/createmygroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateMyGroupsWithChan(request *CreateMyGroupsRequest) (<-chan *CreateMyGroupsResponse, <-chan error) { + responseChan := make(chan *CreateMyGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateMyGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateMyGroupsWithCallback invokes the cms.CreateMyGroups API asynchronously +// api document: https://help.aliyun.com/api/cms/createmygroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateMyGroupsWithCallback(request *CreateMyGroupsRequest, callback func(response *CreateMyGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateMyGroupsResponse + var err error + defer close(result) + response, err = client.CreateMyGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateMyGroupsRequest is the request struct for api CreateMyGroups +type CreateMyGroupsRequest struct { + *requests.RpcRequest + ContactGroups string `position:"Query" name:"ContactGroups"` + Options string `position:"Query" name:"Options"` + Type string `position:"Query" name:"Type"` + ServiceId requests.Integer `position:"Query" name:"ServiceId"` + GroupName string `position:"Query" name:"GroupName"` + BindUrl string `position:"Query" name:"BindUrl"` +} + +// CreateMyGroupsResponse is the response struct for api CreateMyGroups +type CreateMyGroupsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + GroupId int `json:"GroupId" xml:"GroupId"` +} + +// CreateCreateMyGroupsRequest creates a request to invoke CreateMyGroups API +func CreateCreateMyGroupsRequest() (request *CreateMyGroupsRequest) { + request = &CreateMyGroupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "CreateMyGroups", "cms", "openAPI") + return +} + +// CreateCreateMyGroupsResponse creates a response to parse from CreateMyGroups response +func CreateCreateMyGroupsResponse() (response *CreateMyGroupsResponse) { + response = &CreateMyGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/create_notify_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/create_notify_policy.go new file mode 100644 index 0000000..69131c7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/create_notify_policy.go @@ -0,0 +1,111 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateNotifyPolicy invokes the cms.CreateNotifyPolicy API synchronously +// api document: https://help.aliyun.com/api/cms/createnotifypolicy.html +func (client *Client) CreateNotifyPolicy(request *CreateNotifyPolicyRequest) (response *CreateNotifyPolicyResponse, err error) { + response = CreateCreateNotifyPolicyResponse() + err = client.DoAction(request, response) + return +} + +// CreateNotifyPolicyWithChan invokes the cms.CreateNotifyPolicy API asynchronously +// api document: https://help.aliyun.com/api/cms/createnotifypolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateNotifyPolicyWithChan(request *CreateNotifyPolicyRequest) (<-chan *CreateNotifyPolicyResponse, <-chan error) { + responseChan := make(chan *CreateNotifyPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateNotifyPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateNotifyPolicyWithCallback invokes the cms.CreateNotifyPolicy API asynchronously +// api document: https://help.aliyun.com/api/cms/createnotifypolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateNotifyPolicyWithCallback(request *CreateNotifyPolicyRequest, callback func(response *CreateNotifyPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateNotifyPolicyResponse + var err error + defer close(result) + response, err = client.CreateNotifyPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateNotifyPolicyRequest is the request struct for api CreateNotifyPolicy +type CreateNotifyPolicyRequest struct { + *requests.RpcRequest + PolicyType string `position:"Query" name:"PolicyType"` + AlertName string `position:"Query" name:"AlertName"` + EndTime requests.Integer `position:"Query" name:"EndTime"` + StartTime requests.Integer `position:"Query" name:"StartTime"` + Dimensions string `position:"Query" name:"Dimensions"` +} + +// CreateNotifyPolicyResponse is the response struct for api CreateNotifyPolicy +type CreateNotifyPolicyResponse struct { + *responses.BaseResponse + Code string `json:"code" xml:"code"` + Message string `json:"message" xml:"message"` + Success string `json:"success" xml:"success"` + TraceId string `json:"traceId" xml:"traceId"` + Result int `json:"result" xml:"result"` +} + +// CreateCreateNotifyPolicyRequest creates a request to invoke CreateNotifyPolicy API +func CreateCreateNotifyPolicyRequest() (request *CreateNotifyPolicyRequest) { + request = &CreateNotifyPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "CreateNotifyPolicy", "cms", "openAPI") + return +} + +// CreateCreateNotifyPolicyResponse creates a response to parse from CreateNotifyPolicy response +func CreateCreateNotifyPolicyResponse() (response *CreateNotifyPolicyResponse) { + response = &CreateNotifyPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/create_task.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/create_task.go new file mode 100644 index 0000000..f657ac7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/create_task.go @@ -0,0 +1,115 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateTask invokes the cms.CreateTask API synchronously +// api document: https://help.aliyun.com/api/cms/createtask.html +func (client *Client) CreateTask(request *CreateTaskRequest) (response *CreateTaskResponse, err error) { + response = CreateCreateTaskResponse() + err = client.DoAction(request, response) + return +} + +// CreateTaskWithChan invokes the cms.CreateTask API asynchronously +// api document: https://help.aliyun.com/api/cms/createtask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateTaskWithChan(request *CreateTaskRequest) (<-chan *CreateTaskResponse, <-chan error) { + responseChan := make(chan *CreateTaskResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateTask(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateTaskWithCallback invokes the cms.CreateTask API asynchronously +// api document: https://help.aliyun.com/api/cms/createtask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateTaskWithCallback(request *CreateTaskRequest, callback func(response *CreateTaskResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateTaskResponse + var err error + defer close(result) + response, err = client.CreateTask(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateTaskRequest is the request struct for api CreateTask +type CreateTaskRequest struct { + *requests.RpcRequest + Address string `position:"Query" name:"Address"` + TaskType string `position:"Query" name:"TaskType"` + IspCity string `position:"Query" name:"IspCity"` + AlertIds string `position:"Query" name:"AlertIds"` + Options string `position:"Query" name:"Options"` + TaskName string `position:"Query" name:"TaskName"` + Interval string `position:"Query" name:"Interval"` + AlertRule string `position:"Query" name:"AlertRule"` +} + +// CreateTaskResponse is the response struct for api CreateTask +type CreateTaskResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Success string `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data string `json:"Data" xml:"Data"` + AlertRule string `json:"AlertRule" xml:"AlertRule"` +} + +// CreateCreateTaskRequest creates a request to invoke CreateTask API +func CreateCreateTaskRequest() (request *CreateTaskRequest) { + request = &CreateTaskRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "CreateTask", "cms", "openAPI") + return +} + +// CreateCreateTaskResponse creates a response to parse from CreateTask response +func CreateCreateTaskResponse() (response *CreateTaskResponse) { + response = &CreateTaskResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_alarm.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_alarm.go new file mode 100644 index 0000000..2c7327d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_alarm.go @@ -0,0 +1,106 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteAlarm invokes the cms.DeleteAlarm API synchronously +// api document: https://help.aliyun.com/api/cms/deletealarm.html +func (client *Client) DeleteAlarm(request *DeleteAlarmRequest) (response *DeleteAlarmResponse, err error) { + response = CreateDeleteAlarmResponse() + err = client.DoAction(request, response) + return +} + +// DeleteAlarmWithChan invokes the cms.DeleteAlarm API asynchronously +// api document: https://help.aliyun.com/api/cms/deletealarm.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAlarmWithChan(request *DeleteAlarmRequest) (<-chan *DeleteAlarmResponse, <-chan error) { + responseChan := make(chan *DeleteAlarmResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteAlarm(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteAlarmWithCallback invokes the cms.DeleteAlarm API asynchronously +// api document: https://help.aliyun.com/api/cms/deletealarm.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAlarmWithCallback(request *DeleteAlarmRequest, callback func(response *DeleteAlarmResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteAlarmResponse + var err error + defer close(result) + response, err = client.DeleteAlarm(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteAlarmRequest is the request struct for api DeleteAlarm +type DeleteAlarmRequest struct { + *requests.RpcRequest + Id string `position:"Query" name:"Id"` +} + +// DeleteAlarmResponse is the response struct for api DeleteAlarm +type DeleteAlarmResponse struct { + *responses.BaseResponse + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteAlarmRequest creates a request to invoke DeleteAlarm API +func CreateDeleteAlarmRequest() (request *DeleteAlarmRequest) { + request = &DeleteAlarmRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "DeleteAlarm", "cms", "openAPI") + return +} + +// CreateDeleteAlarmResponse creates a response to parse from DeleteAlarm response +func CreateDeleteAlarmResponse() (response *DeleteAlarmResponse) { + response = &DeleteAlarmResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_custom_metric.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_custom_metric.go new file mode 100644 index 0000000..6f91666 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_custom_metric.go @@ -0,0 +1,109 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCustomMetric invokes the cms.DeleteCustomMetric API synchronously +// api document: https://help.aliyun.com/api/cms/deletecustommetric.html +func (client *Client) DeleteCustomMetric(request *DeleteCustomMetricRequest) (response *DeleteCustomMetricResponse, err error) { + response = CreateDeleteCustomMetricResponse() + err = client.DoAction(request, response) + return +} + +// DeleteCustomMetricWithChan invokes the cms.DeleteCustomMetric API asynchronously +// api document: https://help.aliyun.com/api/cms/deletecustommetric.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCustomMetricWithChan(request *DeleteCustomMetricRequest) (<-chan *DeleteCustomMetricResponse, <-chan error) { + responseChan := make(chan *DeleteCustomMetricResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCustomMetric(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteCustomMetricWithCallback invokes the cms.DeleteCustomMetric API asynchronously +// api document: https://help.aliyun.com/api/cms/deletecustommetric.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCustomMetricWithCallback(request *DeleteCustomMetricRequest, callback func(response *DeleteCustomMetricResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteCustomMetricResponse + var err error + defer close(result) + response, err = client.DeleteCustomMetric(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteCustomMetricRequest is the request struct for api DeleteCustomMetric +type DeleteCustomMetricRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + MetricName string `position:"Query" name:"MetricName"` + UUID string `position:"Query" name:"UUID"` + Md5 string `position:"Query" name:"Md5"` +} + +// DeleteCustomMetricResponse is the response struct for api DeleteCustomMetric +type DeleteCustomMetricResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Result string `json:"Result" xml:"Result"` +} + +// CreateDeleteCustomMetricRequest creates a request to invoke DeleteCustomMetric API +func CreateDeleteCustomMetricRequest() (request *DeleteCustomMetricRequest) { + request = &DeleteCustomMetricRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "DeleteCustomMetric", "cms", "openAPI") + return +} + +// CreateDeleteCustomMetricResponse creates a response to parse from DeleteCustomMetric response +func CreateDeleteCustomMetricResponse() (response *DeleteCustomMetricResponse) { + response = &DeleteCustomMetricResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_event_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_event_rule.go new file mode 100644 index 0000000..4032f50 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_event_rule.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteEventRule invokes the cms.DeleteEventRule API synchronously +// api document: https://help.aliyun.com/api/cms/deleteeventrule.html +func (client *Client) DeleteEventRule(request *DeleteEventRuleRequest) (response *DeleteEventRuleResponse, err error) { + response = CreateDeleteEventRuleResponse() + err = client.DoAction(request, response) + return +} + +// DeleteEventRuleWithChan invokes the cms.DeleteEventRule API asynchronously +// api document: https://help.aliyun.com/api/cms/deleteeventrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteEventRuleWithChan(request *DeleteEventRuleRequest) (<-chan *DeleteEventRuleResponse, <-chan error) { + responseChan := make(chan *DeleteEventRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteEventRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteEventRuleWithCallback invokes the cms.DeleteEventRule API asynchronously +// api document: https://help.aliyun.com/api/cms/deleteeventrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteEventRuleWithCallback(request *DeleteEventRuleRequest, callback func(response *DeleteEventRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteEventRuleResponse + var err error + defer close(result) + response, err = client.DeleteEventRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteEventRuleRequest is the request struct for api DeleteEventRule +type DeleteEventRuleRequest struct { + *requests.RpcRequest + RuleNames *[]string `position:"Query" name:"RuleNames" type:"Repeated"` + RuleName string `position:"Query" name:"RuleName"` +} + +// DeleteEventRuleResponse is the response struct for api DeleteEventRule +type DeleteEventRuleResponse struct { + *responses.BaseResponse + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteEventRuleRequest creates a request to invoke DeleteEventRule API +func CreateDeleteEventRuleRequest() (request *DeleteEventRuleRequest) { + request = &DeleteEventRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "DeleteEventRule", "cms", "openAPI") + return +} + +// CreateDeleteEventRuleResponse creates a response to parse from DeleteEventRule response +func CreateDeleteEventRuleResponse() (response *DeleteEventRuleResponse) { + response = &DeleteEventRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_event_targets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_event_targets.go new file mode 100644 index 0000000..0488cc3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_event_targets.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteEventTargets invokes the cms.DeleteEventTargets API synchronously +// api document: https://help.aliyun.com/api/cms/deleteeventtargets.html +func (client *Client) DeleteEventTargets(request *DeleteEventTargetsRequest) (response *DeleteEventTargetsResponse, err error) { + response = CreateDeleteEventTargetsResponse() + err = client.DoAction(request, response) + return +} + +// DeleteEventTargetsWithChan invokes the cms.DeleteEventTargets API asynchronously +// api document: https://help.aliyun.com/api/cms/deleteeventtargets.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteEventTargetsWithChan(request *DeleteEventTargetsRequest) (<-chan *DeleteEventTargetsResponse, <-chan error) { + responseChan := make(chan *DeleteEventTargetsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteEventTargets(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteEventTargetsWithCallback invokes the cms.DeleteEventTargets API asynchronously +// api document: https://help.aliyun.com/api/cms/deleteeventtargets.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteEventTargetsWithCallback(request *DeleteEventTargetsRequest, callback func(response *DeleteEventTargetsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteEventTargetsResponse + var err error + defer close(result) + response, err = client.DeleteEventTargets(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteEventTargetsRequest is the request struct for api DeleteEventTargets +type DeleteEventTargetsRequest struct { + *requests.RpcRequest + Ids *[]string `position:"Query" name:"Ids" type:"Repeated"` + RuleName string `position:"Query" name:"RuleName"` +} + +// DeleteEventTargetsResponse is the response struct for api DeleteEventTargets +type DeleteEventTargetsResponse struct { + *responses.BaseResponse + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteEventTargetsRequest creates a request to invoke DeleteEventTargets API +func CreateDeleteEventTargetsRequest() (request *DeleteEventTargetsRequest) { + request = &DeleteEventTargetsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "DeleteEventTargets", "cms", "openAPI") + return +} + +// CreateDeleteEventTargetsResponse creates a response to parse from DeleteEventTargets response +func CreateDeleteEventTargetsResponse() (response *DeleteEventTargetsResponse) { + response = &DeleteEventTargetsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_group_dynamic_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_group_dynamic_rule.go new file mode 100644 index 0000000..b5036b6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_group_dynamic_rule.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteGroupDynamicRule invokes the cms.DeleteGroupDynamicRule API synchronously +// api document: https://help.aliyun.com/api/cms/deletegroupdynamicrule.html +func (client *Client) DeleteGroupDynamicRule(request *DeleteGroupDynamicRuleRequest) (response *DeleteGroupDynamicRuleResponse, err error) { + response = CreateDeleteGroupDynamicRuleResponse() + err = client.DoAction(request, response) + return +} + +// DeleteGroupDynamicRuleWithChan invokes the cms.DeleteGroupDynamicRule API asynchronously +// api document: https://help.aliyun.com/api/cms/deletegroupdynamicrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteGroupDynamicRuleWithChan(request *DeleteGroupDynamicRuleRequest) (<-chan *DeleteGroupDynamicRuleResponse, <-chan error) { + responseChan := make(chan *DeleteGroupDynamicRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteGroupDynamicRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteGroupDynamicRuleWithCallback invokes the cms.DeleteGroupDynamicRule API asynchronously +// api document: https://help.aliyun.com/api/cms/deletegroupdynamicrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteGroupDynamicRuleWithCallback(request *DeleteGroupDynamicRuleRequest, callback func(response *DeleteGroupDynamicRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteGroupDynamicRuleResponse + var err error + defer close(result) + response, err = client.DeleteGroupDynamicRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteGroupDynamicRuleRequest is the request struct for api DeleteGroupDynamicRule +type DeleteGroupDynamicRuleRequest struct { + *requests.RpcRequest + GroupId requests.Integer `position:"Query" name:"GroupId"` + Category string `position:"Query" name:"Category"` +} + +// DeleteGroupDynamicRuleResponse is the response struct for api DeleteGroupDynamicRule +type DeleteGroupDynamicRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` +} + +// CreateDeleteGroupDynamicRuleRequest creates a request to invoke DeleteGroupDynamicRule API +func CreateDeleteGroupDynamicRuleRequest() (request *DeleteGroupDynamicRuleRequest) { + request = &DeleteGroupDynamicRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "DeleteGroupDynamicRule", "cms", "openAPI") + return +} + +// CreateDeleteGroupDynamicRuleResponse creates a response to parse from DeleteGroupDynamicRule response +func CreateDeleteGroupDynamicRuleResponse() (response *DeleteGroupDynamicRuleResponse) { + response = &DeleteGroupDynamicRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_my_group_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_my_group_instances.go new file mode 100644 index 0000000..ef61c9c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_my_group_instances.go @@ -0,0 +1,108 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteMyGroupInstances invokes the cms.DeleteMyGroupInstances API synchronously +// api document: https://help.aliyun.com/api/cms/deletemygroupinstances.html +func (client *Client) DeleteMyGroupInstances(request *DeleteMyGroupInstancesRequest) (response *DeleteMyGroupInstancesResponse, err error) { + response = CreateDeleteMyGroupInstancesResponse() + err = client.DoAction(request, response) + return +} + +// DeleteMyGroupInstancesWithChan invokes the cms.DeleteMyGroupInstances API asynchronously +// api document: https://help.aliyun.com/api/cms/deletemygroupinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteMyGroupInstancesWithChan(request *DeleteMyGroupInstancesRequest) (<-chan *DeleteMyGroupInstancesResponse, <-chan error) { + responseChan := make(chan *DeleteMyGroupInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteMyGroupInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteMyGroupInstancesWithCallback invokes the cms.DeleteMyGroupInstances API asynchronously +// api document: https://help.aliyun.com/api/cms/deletemygroupinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteMyGroupInstancesWithCallback(request *DeleteMyGroupInstancesRequest, callback func(response *DeleteMyGroupInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteMyGroupInstancesResponse + var err error + defer close(result) + response, err = client.DeleteMyGroupInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteMyGroupInstancesRequest is the request struct for api DeleteMyGroupInstances +type DeleteMyGroupInstancesRequest struct { + *requests.RpcRequest + InstanceIds string `position:"Query" name:"InstanceIds"` + InstanceIdList string `position:"Query" name:"InstanceIdList"` + GroupId requests.Integer `position:"Query" name:"GroupId"` +} + +// DeleteMyGroupInstancesResponse is the response struct for api DeleteMyGroupInstances +type DeleteMyGroupInstancesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` +} + +// CreateDeleteMyGroupInstancesRequest creates a request to invoke DeleteMyGroupInstances API +func CreateDeleteMyGroupInstancesRequest() (request *DeleteMyGroupInstancesRequest) { + request = &DeleteMyGroupInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "DeleteMyGroupInstances", "cms", "openAPI") + return +} + +// CreateDeleteMyGroupInstancesResponse creates a response to parse from DeleteMyGroupInstances response +func CreateDeleteMyGroupInstancesResponse() (response *DeleteMyGroupInstancesResponse) { + response = &DeleteMyGroupInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_my_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_my_groups.go new file mode 100644 index 0000000..24f500e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_my_groups.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteMyGroups invokes the cms.DeleteMyGroups API synchronously +// api document: https://help.aliyun.com/api/cms/deletemygroups.html +func (client *Client) DeleteMyGroups(request *DeleteMyGroupsRequest) (response *DeleteMyGroupsResponse, err error) { + response = CreateDeleteMyGroupsResponse() + err = client.DoAction(request, response) + return +} + +// DeleteMyGroupsWithChan invokes the cms.DeleteMyGroups API asynchronously +// api document: https://help.aliyun.com/api/cms/deletemygroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteMyGroupsWithChan(request *DeleteMyGroupsRequest) (<-chan *DeleteMyGroupsResponse, <-chan error) { + responseChan := make(chan *DeleteMyGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteMyGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteMyGroupsWithCallback invokes the cms.DeleteMyGroups API asynchronously +// api document: https://help.aliyun.com/api/cms/deletemygroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteMyGroupsWithCallback(request *DeleteMyGroupsRequest, callback func(response *DeleteMyGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteMyGroupsResponse + var err error + defer close(result) + response, err = client.DeleteMyGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteMyGroupsRequest is the request struct for api DeleteMyGroups +type DeleteMyGroupsRequest struct { + *requests.RpcRequest + GroupId requests.Integer `position:"Query" name:"GroupId"` +} + +// DeleteMyGroupsResponse is the response struct for api DeleteMyGroups +type DeleteMyGroupsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Group GroupInDeleteMyGroups `json:"Group" xml:"Group"` +} + +// CreateDeleteMyGroupsRequest creates a request to invoke DeleteMyGroups API +func CreateDeleteMyGroupsRequest() (request *DeleteMyGroupsRequest) { + request = &DeleteMyGroupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "DeleteMyGroups", "cms", "openAPI") + return +} + +// CreateDeleteMyGroupsResponse creates a response to parse from DeleteMyGroups response +func CreateDeleteMyGroupsResponse() (response *DeleteMyGroupsResponse) { + response = &DeleteMyGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_notify_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_notify_policy.go new file mode 100644 index 0000000..96c303e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_notify_policy.go @@ -0,0 +1,110 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteNotifyPolicy invokes the cms.DeleteNotifyPolicy API synchronously +// api document: https://help.aliyun.com/api/cms/deletenotifypolicy.html +func (client *Client) DeleteNotifyPolicy(request *DeleteNotifyPolicyRequest) (response *DeleteNotifyPolicyResponse, err error) { + response = CreateDeleteNotifyPolicyResponse() + err = client.DoAction(request, response) + return +} + +// DeleteNotifyPolicyWithChan invokes the cms.DeleteNotifyPolicy API asynchronously +// api document: https://help.aliyun.com/api/cms/deletenotifypolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteNotifyPolicyWithChan(request *DeleteNotifyPolicyRequest) (<-chan *DeleteNotifyPolicyResponse, <-chan error) { + responseChan := make(chan *DeleteNotifyPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteNotifyPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteNotifyPolicyWithCallback invokes the cms.DeleteNotifyPolicy API asynchronously +// api document: https://help.aliyun.com/api/cms/deletenotifypolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteNotifyPolicyWithCallback(request *DeleteNotifyPolicyRequest, callback func(response *DeleteNotifyPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteNotifyPolicyResponse + var err error + defer close(result) + response, err = client.DeleteNotifyPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteNotifyPolicyRequest is the request struct for api DeleteNotifyPolicy +type DeleteNotifyPolicyRequest struct { + *requests.RpcRequest + PolicyType string `position:"Query" name:"PolicyType"` + AlertName string `position:"Query" name:"AlertName"` + Id string `position:"Query" name:"Id"` + Dimensions string `position:"Query" name:"Dimensions"` +} + +// DeleteNotifyPolicyResponse is the response struct for api DeleteNotifyPolicy +type DeleteNotifyPolicyResponse struct { + *responses.BaseResponse + Code string `json:"code" xml:"code"` + Message string `json:"message" xml:"message"` + Success string `json:"success" xml:"success"` + TraceId string `json:"traceId" xml:"traceId"` + Result int `json:"result" xml:"result"` +} + +// CreateDeleteNotifyPolicyRequest creates a request to invoke DeleteNotifyPolicy API +func CreateDeleteNotifyPolicyRequest() (request *DeleteNotifyPolicyRequest) { + request = &DeleteNotifyPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "DeleteNotifyPolicy", "cms", "openAPI") + return +} + +// CreateDeleteNotifyPolicyResponse creates a response to parse from DeleteNotifyPolicy response +func CreateDeleteNotifyPolicyResponse() (response *DeleteNotifyPolicyResponse) { + response = &DeleteNotifyPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_tasks.go new file mode 100644 index 0000000..2fb98fe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/delete_tasks.go @@ -0,0 +1,108 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteTasks invokes the cms.DeleteTasks API synchronously +// api document: https://help.aliyun.com/api/cms/deletetasks.html +func (client *Client) DeleteTasks(request *DeleteTasksRequest) (response *DeleteTasksResponse, err error) { + response = CreateDeleteTasksResponse() + err = client.DoAction(request, response) + return +} + +// DeleteTasksWithChan invokes the cms.DeleteTasks API asynchronously +// api document: https://help.aliyun.com/api/cms/deletetasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteTasksWithChan(request *DeleteTasksRequest) (<-chan *DeleteTasksResponse, <-chan error) { + responseChan := make(chan *DeleteTasksResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteTasks(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteTasksWithCallback invokes the cms.DeleteTasks API asynchronously +// api document: https://help.aliyun.com/api/cms/deletetasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteTasksWithCallback(request *DeleteTasksRequest, callback func(response *DeleteTasksResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteTasksResponse + var err error + defer close(result) + response, err = client.DeleteTasks(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteTasksRequest is the request struct for api DeleteTasks +type DeleteTasksRequest struct { + *requests.RpcRequest + IsDeleteAlarms requests.Integer `position:"Query" name:"IsDeleteAlarms"` + TaskIds string `position:"Query" name:"TaskIds"` +} + +// DeleteTasksResponse is the response struct for api DeleteTasks +type DeleteTasksResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Success string `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data string `json:"Data" xml:"Data"` +} + +// CreateDeleteTasksRequest creates a request to invoke DeleteTasks API +func CreateDeleteTasksRequest() (request *DeleteTasksRequest) { + request = &DeleteTasksRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "DeleteTasks", "cms", "openAPI") + return +} + +// CreateDeleteTasksResponse creates a response to parse from DeleteTasks response +func CreateDeleteTasksResponse() (response *DeleteTasksResponse) { + response = &DeleteTasksResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_alarm_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_alarm_history.go new file mode 100644 index 0000000..31c517f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_alarm_history.go @@ -0,0 +1,120 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAlarmHistory invokes the cms.DescribeAlarmHistory API synchronously +// api document: https://help.aliyun.com/api/cms/describealarmhistory.html +func (client *Client) DescribeAlarmHistory(request *DescribeAlarmHistoryRequest) (response *DescribeAlarmHistoryResponse, err error) { + response = CreateDescribeAlarmHistoryResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAlarmHistoryWithChan invokes the cms.DescribeAlarmHistory API asynchronously +// api document: https://help.aliyun.com/api/cms/describealarmhistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAlarmHistoryWithChan(request *DescribeAlarmHistoryRequest) (<-chan *DescribeAlarmHistoryResponse, <-chan error) { + responseChan := make(chan *DescribeAlarmHistoryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAlarmHistory(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAlarmHistoryWithCallback invokes the cms.DescribeAlarmHistory API asynchronously +// api document: https://help.aliyun.com/api/cms/describealarmhistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAlarmHistoryWithCallback(request *DescribeAlarmHistoryRequest, callback func(response *DescribeAlarmHistoryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAlarmHistoryResponse + var err error + defer close(result) + response, err = client.DescribeAlarmHistory(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAlarmHistoryRequest is the request struct for api DescribeAlarmHistory +type DescribeAlarmHistoryRequest struct { + *requests.RpcRequest + AlertName string `position:"Query" name:"AlertName"` + GroupId string `position:"Query" name:"GroupId"` + EndTime string `position:"Query" name:"EndTime"` + RuleName string `position:"Query" name:"RuleName"` + StartTime string `position:"Query" name:"StartTime"` + Ascending requests.Boolean `position:"Query" name:"Ascending"` + OnlyCount requests.Boolean `position:"Query" name:"OnlyCount"` + Namespace string `position:"Query" name:"Namespace"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + State string `position:"Query" name:"State"` + Page requests.Integer `position:"Query" name:"Page"` + MetricName string `position:"Query" name:"MetricName"` + Status string `position:"Query" name:"Status"` +} + +// DescribeAlarmHistoryResponse is the response struct for api DescribeAlarmHistory +type DescribeAlarmHistoryResponse struct { + *responses.BaseResponse + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Total string `json:"Total" xml:"Total"` + RequestId string `json:"RequestId" xml:"RequestId"` + AlarmHistoryList AlarmHistoryListInDescribeAlarmHistory `json:"AlarmHistoryList" xml:"AlarmHistoryList"` +} + +// CreateDescribeAlarmHistoryRequest creates a request to invoke DescribeAlarmHistory API +func CreateDescribeAlarmHistoryRequest() (request *DescribeAlarmHistoryRequest) { + request = &DescribeAlarmHistoryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "DescribeAlarmHistory", "cms", "openAPI") + return +} + +// CreateDescribeAlarmHistoryResponse creates a response to parse from DescribeAlarmHistory response +func CreateDescribeAlarmHistoryResponse() (response *DescribeAlarmHistoryResponse) { + response = &DescribeAlarmHistoryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_alarms.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_alarms.go new file mode 100644 index 0000000..394d21f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_alarms.go @@ -0,0 +1,119 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAlarms invokes the cms.DescribeAlarms API synchronously +// api document: https://help.aliyun.com/api/cms/describealarms.html +func (client *Client) DescribeAlarms(request *DescribeAlarmsRequest) (response *DescribeAlarmsResponse, err error) { + response = CreateDescribeAlarmsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAlarmsWithChan invokes the cms.DescribeAlarms API asynchronously +// api document: https://help.aliyun.com/api/cms/describealarms.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAlarmsWithChan(request *DescribeAlarmsRequest) (<-chan *DescribeAlarmsResponse, <-chan error) { + responseChan := make(chan *DescribeAlarmsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAlarms(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAlarmsWithCallback invokes the cms.DescribeAlarms API asynchronously +// api document: https://help.aliyun.com/api/cms/describealarms.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAlarmsWithCallback(request *DescribeAlarmsRequest, callback func(response *DescribeAlarmsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAlarmsResponse + var err error + defer close(result) + response, err = client.DescribeAlarms(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAlarmsRequest is the request struct for api DescribeAlarms +type DescribeAlarmsRequest struct { + *requests.RpcRequest + EnableState requests.Boolean `position:"Query" name:"EnableState"` + Names string `position:"Query" name:"Names"` + DisplayName string `position:"Query" name:"DisplayName"` + GroupId string `position:"Query" name:"GroupId"` + Namespace string `position:"Query" name:"Namespace"` + PageSize string `position:"Query" name:"PageSize"` + AlertState string `position:"Query" name:"AlertState"` + NameKeyword string `position:"Query" name:"NameKeyword"` + GroupBy string `position:"Query" name:"GroupBy"` + Page string `position:"Query" name:"Page"` + MetricName string `position:"Query" name:"MetricName"` +} + +// DescribeAlarmsResponse is the response struct for api DescribeAlarms +type DescribeAlarmsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TraceId string `json:"TraceId" xml:"TraceId"` + Success bool `json:"Success" xml:"Success"` + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Total string `json:"Total" xml:"Total"` + Datapoints DatapointsInDescribeAlarms `json:"Datapoints" xml:"Datapoints"` +} + +// CreateDescribeAlarmsRequest creates a request to invoke DescribeAlarms API +func CreateDescribeAlarmsRequest() (request *DescribeAlarmsRequest) { + request = &DescribeAlarmsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "DescribeAlarms", "cms", "openAPI") + return +} + +// CreateDescribeAlarmsResponse creates a response to parse from DescribeAlarms response +func CreateDescribeAlarmsResponse() (response *DescribeAlarmsResponse) { + response = &DescribeAlarmsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_alarms_for_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_alarms_for_resources.go new file mode 100644 index 0000000..1667ab5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_alarms_for_resources.go @@ -0,0 +1,117 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAlarmsForResources invokes the cms.DescribeAlarmsForResources API synchronously +// api document: https://help.aliyun.com/api/cms/describealarmsforresources.html +func (client *Client) DescribeAlarmsForResources(request *DescribeAlarmsForResourcesRequest) (response *DescribeAlarmsForResourcesResponse, err error) { + response = CreateDescribeAlarmsForResourcesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAlarmsForResourcesWithChan invokes the cms.DescribeAlarmsForResources API asynchronously +// api document: https://help.aliyun.com/api/cms/describealarmsforresources.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAlarmsForResourcesWithChan(request *DescribeAlarmsForResourcesRequest) (<-chan *DescribeAlarmsForResourcesResponse, <-chan error) { + responseChan := make(chan *DescribeAlarmsForResourcesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAlarmsForResources(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAlarmsForResourcesWithCallback invokes the cms.DescribeAlarmsForResources API asynchronously +// api document: https://help.aliyun.com/api/cms/describealarmsforresources.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAlarmsForResourcesWithCallback(request *DescribeAlarmsForResourcesRequest, callback func(response *DescribeAlarmsForResourcesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAlarmsForResourcesResponse + var err error + defer close(result) + response, err = client.DescribeAlarmsForResources(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAlarmsForResourcesRequest is the request struct for api DescribeAlarmsForResources +type DescribeAlarmsForResourcesRequest struct { + *requests.RpcRequest + EnableState requests.Boolean `position:"Query" name:"EnableState"` + GroupId string `position:"Query" name:"GroupId"` + Namespace string `position:"Query" name:"Namespace"` + PageSize string `position:"Query" name:"PageSize"` + AlertState string `position:"Query" name:"AlertState"` + Page string `position:"Query" name:"Page"` + MetricName string `position:"Query" name:"MetricName"` + Dimensions string `position:"Query" name:"Dimensions"` +} + +// DescribeAlarmsForResourcesResponse is the response struct for api DescribeAlarmsForResources +type DescribeAlarmsForResourcesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TraceId string `json:"TraceId" xml:"TraceId"` + Success bool `json:"Success" xml:"Success"` + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Total string `json:"Total" xml:"Total"` + Dimensions string `json:"Dimensions" xml:"Dimensions"` + Datapoints DatapointsInDescribeAlarmsForResources `json:"Datapoints" xml:"Datapoints"` +} + +// CreateDescribeAlarmsForResourcesRequest creates a request to invoke DescribeAlarmsForResources API +func CreateDescribeAlarmsForResourcesRequest() (request *DescribeAlarmsForResourcesRequest) { + request = &DescribeAlarmsForResourcesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "DescribeAlarmsForResources", "cms", "openAPI") + return +} + +// CreateDescribeAlarmsForResourcesResponse creates a response to parse from DescribeAlarmsForResources response +func CreateDescribeAlarmsForResourcesResponse() (response *DescribeAlarmsForResourcesResponse) { + response = &DescribeAlarmsForResourcesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_contact.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_contact.go new file mode 100644 index 0000000..7583bfa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_contact.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeContact invokes the cms.DescribeContact API synchronously +// api document: https://help.aliyun.com/api/cms/describecontact.html +func (client *Client) DescribeContact(request *DescribeContactRequest) (response *DescribeContactResponse, err error) { + response = CreateDescribeContactResponse() + err = client.DoAction(request, response) + return +} + +// DescribeContactWithChan invokes the cms.DescribeContact API asynchronously +// api document: https://help.aliyun.com/api/cms/describecontact.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeContactWithChan(request *DescribeContactRequest) (<-chan *DescribeContactResponse, <-chan error) { + responseChan := make(chan *DescribeContactResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeContact(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeContactWithCallback invokes the cms.DescribeContact API asynchronously +// api document: https://help.aliyun.com/api/cms/describecontact.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeContactWithCallback(request *DescribeContactRequest, callback func(response *DescribeContactResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeContactResponse + var err error + defer close(result) + response, err = client.DescribeContact(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeContactRequest is the request struct for api DescribeContact +type DescribeContactRequest struct { + *requests.RpcRequest + ContactName string `position:"Query" name:"ContactName"` +} + +// DescribeContactResponse is the response struct for api DescribeContact +type DescribeContactResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Datapoints Datapoints `json:"Datapoints" xml:"Datapoints"` +} + +// CreateDescribeContactRequest creates a request to invoke DescribeContact API +func CreateDescribeContactRequest() (request *DescribeContactRequest) { + request = &DescribeContactRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "DescribeContact", "cms", "openAPI") + return +} + +// CreateDescribeContactResponse creates a response to parse from DescribeContact response +func CreateDescribeContactResponse() (response *DescribeContactResponse) { + response = &DescribeContactResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_event_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_event_rule.go new file mode 100644 index 0000000..5d10cd2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_event_rule.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeEventRule invokes the cms.DescribeEventRule API synchronously +// api document: https://help.aliyun.com/api/cms/describeeventrule.html +func (client *Client) DescribeEventRule(request *DescribeEventRuleRequest) (response *DescribeEventRuleResponse, err error) { + response = CreateDescribeEventRuleResponse() + err = client.DoAction(request, response) + return +} + +// DescribeEventRuleWithChan invokes the cms.DescribeEventRule API asynchronously +// api document: https://help.aliyun.com/api/cms/describeeventrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeEventRuleWithChan(request *DescribeEventRuleRequest) (<-chan *DescribeEventRuleResponse, <-chan error) { + responseChan := make(chan *DescribeEventRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeEventRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeEventRuleWithCallback invokes the cms.DescribeEventRule API asynchronously +// api document: https://help.aliyun.com/api/cms/describeeventrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeEventRuleWithCallback(request *DescribeEventRuleRequest, callback func(response *DescribeEventRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeEventRuleResponse + var err error + defer close(result) + response, err = client.DescribeEventRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeEventRuleRequest is the request struct for api DescribeEventRule +type DescribeEventRuleRequest struct { + *requests.RpcRequest + RuleName string `position:"Query" name:"RuleName"` +} + +// DescribeEventRuleResponse is the response struct for api DescribeEventRule +type DescribeEventRuleResponse struct { + *responses.BaseResponse + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Result Result `json:"Result" xml:"Result"` +} + +// CreateDescribeEventRuleRequest creates a request to invoke DescribeEventRule API +func CreateDescribeEventRuleRequest() (request *DescribeEventRuleRequest) { + request = &DescribeEventRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "DescribeEventRule", "cms", "openAPI") + return +} + +// CreateDescribeEventRuleResponse creates a response to parse from DescribeEventRule response +func CreateDescribeEventRuleResponse() (response *DescribeEventRuleResponse) { + response = &DescribeEventRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_isp_area_city.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_isp_area_city.go new file mode 100644 index 0000000..46f1fa5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_isp_area_city.go @@ -0,0 +1,108 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeISPAreaCity invokes the cms.DescribeISPAreaCity API synchronously +// api document: https://help.aliyun.com/api/cms/describeispareacity.html +func (client *Client) DescribeISPAreaCity(request *DescribeISPAreaCityRequest) (response *DescribeISPAreaCityResponse, err error) { + response = CreateDescribeISPAreaCityResponse() + err = client.DoAction(request, response) + return +} + +// DescribeISPAreaCityWithChan invokes the cms.DescribeISPAreaCity API asynchronously +// api document: https://help.aliyun.com/api/cms/describeispareacity.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeISPAreaCityWithChan(request *DescribeISPAreaCityRequest) (<-chan *DescribeISPAreaCityResponse, <-chan error) { + responseChan := make(chan *DescribeISPAreaCityResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeISPAreaCity(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeISPAreaCityWithCallback invokes the cms.DescribeISPAreaCity API asynchronously +// api document: https://help.aliyun.com/api/cms/describeispareacity.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeISPAreaCityWithCallback(request *DescribeISPAreaCityRequest, callback func(response *DescribeISPAreaCityResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeISPAreaCityResponse + var err error + defer close(result) + response, err = client.DescribeISPAreaCity(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeISPAreaCityRequest is the request struct for api DescribeISPAreaCity +type DescribeISPAreaCityRequest struct { + *requests.RpcRequest + City string `position:"Query" name:"City"` + Isp string `position:"Query" name:"Isp"` +} + +// DescribeISPAreaCityResponse is the response struct for api DescribeISPAreaCity +type DescribeISPAreaCityResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Success string `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data string `json:"Data" xml:"Data"` +} + +// CreateDescribeISPAreaCityRequest creates a request to invoke DescribeISPAreaCity API +func CreateDescribeISPAreaCityRequest() (request *DescribeISPAreaCityRequest) { + request = &DescribeISPAreaCityRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "DescribeISPAreaCity", "cms", "openAPI") + return +} + +// CreateDescribeISPAreaCityResponse creates a response to parse from DescribeISPAreaCity response +func CreateDescribeISPAreaCityResponse() (response *DescribeISPAreaCityResponse) { + response = &DescribeISPAreaCityResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_task_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_task_detail.go new file mode 100644 index 0000000..78ab343 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_task_detail.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeTaskDetail invokes the cms.DescribeTaskDetail API synchronously +// api document: https://help.aliyun.com/api/cms/describetaskdetail.html +func (client *Client) DescribeTaskDetail(request *DescribeTaskDetailRequest) (response *DescribeTaskDetailResponse, err error) { + response = CreateDescribeTaskDetailResponse() + err = client.DoAction(request, response) + return +} + +// DescribeTaskDetailWithChan invokes the cms.DescribeTaskDetail API asynchronously +// api document: https://help.aliyun.com/api/cms/describetaskdetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTaskDetailWithChan(request *DescribeTaskDetailRequest) (<-chan *DescribeTaskDetailResponse, <-chan error) { + responseChan := make(chan *DescribeTaskDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeTaskDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeTaskDetailWithCallback invokes the cms.DescribeTaskDetail API asynchronously +// api document: https://help.aliyun.com/api/cms/describetaskdetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTaskDetailWithCallback(request *DescribeTaskDetailRequest, callback func(response *DescribeTaskDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeTaskDetailResponse + var err error + defer close(result) + response, err = client.DescribeTaskDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeTaskDetailRequest is the request struct for api DescribeTaskDetail +type DescribeTaskDetailRequest struct { + *requests.RpcRequest + TaskId string `position:"Query" name:"TaskId"` +} + +// DescribeTaskDetailResponse is the response struct for api DescribeTaskDetail +type DescribeTaskDetailResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Success string `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data string `json:"Data" xml:"Data"` +} + +// CreateDescribeTaskDetailRequest creates a request to invoke DescribeTaskDetail API +func CreateDescribeTaskDetailRequest() (request *DescribeTaskDetailRequest) { + request = &DescribeTaskDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "DescribeTaskDetail", "cms", "openAPI") + return +} + +// CreateDescribeTaskDetailResponse creates a response to parse from DescribeTaskDetail response +func CreateDescribeTaskDetailResponse() (response *DescribeTaskDetailResponse) { + response = &DescribeTaskDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_tasks.go new file mode 100644 index 0000000..4622acd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/describe_tasks.go @@ -0,0 +1,114 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeTasks invokes the cms.DescribeTasks API synchronously +// api document: https://help.aliyun.com/api/cms/describetasks.html +func (client *Client) DescribeTasks(request *DescribeTasksRequest) (response *DescribeTasksResponse, err error) { + response = CreateDescribeTasksResponse() + err = client.DoAction(request, response) + return +} + +// DescribeTasksWithChan invokes the cms.DescribeTasks API asynchronously +// api document: https://help.aliyun.com/api/cms/describetasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTasksWithChan(request *DescribeTasksRequest) (<-chan *DescribeTasksResponse, <-chan error) { + responseChan := make(chan *DescribeTasksResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeTasks(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeTasksWithCallback invokes the cms.DescribeTasks API asynchronously +// api document: https://help.aliyun.com/api/cms/describetasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTasksWithCallback(request *DescribeTasksRequest, callback func(response *DescribeTasksResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeTasksResponse + var err error + defer close(result) + response, err = client.DescribeTasks(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeTasksRequest is the request struct for api DescribeTasks +type DescribeTasksRequest struct { + *requests.RpcRequest + TaskType string `position:"Query" name:"TaskType"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Page requests.Integer `position:"Query" name:"Page"` + Keyword string `position:"Query" name:"Keyword"` + TaskId string `position:"Query" name:"TaskId"` +} + +// DescribeTasksResponse is the response struct for api DescribeTasks +type DescribeTasksResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Success string `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data string `json:"Data" xml:"Data"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` +} + +// CreateDescribeTasksRequest creates a request to invoke DescribeTasks API +func CreateDescribeTasksRequest() (request *DescribeTasksRequest) { + request = &DescribeTasksRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "DescribeTasks", "cms", "openAPI") + return +} + +// CreateDescribeTasksResponse creates a response to parse from DescribeTasks response +func CreateDescribeTasksResponse() (response *DescribeTasksResponse) { + response = &DescribeTasksResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/disable_active_alert.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/disable_active_alert.go new file mode 100644 index 0000000..690ac96 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/disable_active_alert.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DisableActiveAlert invokes the cms.DisableActiveAlert API synchronously +// api document: https://help.aliyun.com/api/cms/disableactivealert.html +func (client *Client) DisableActiveAlert(request *DisableActiveAlertRequest) (response *DisableActiveAlertResponse, err error) { + response = CreateDisableActiveAlertResponse() + err = client.DoAction(request, response) + return +} + +// DisableActiveAlertWithChan invokes the cms.DisableActiveAlert API asynchronously +// api document: https://help.aliyun.com/api/cms/disableactivealert.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DisableActiveAlertWithChan(request *DisableActiveAlertRequest) (<-chan *DisableActiveAlertResponse, <-chan error) { + responseChan := make(chan *DisableActiveAlertResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DisableActiveAlert(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DisableActiveAlertWithCallback invokes the cms.DisableActiveAlert API asynchronously +// api document: https://help.aliyun.com/api/cms/disableactivealert.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DisableActiveAlertWithCallback(request *DisableActiveAlertRequest, callback func(response *DisableActiveAlertResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DisableActiveAlertResponse + var err error + defer close(result) + response, err = client.DisableActiveAlert(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DisableActiveAlertRequest is the request struct for api DisableActiveAlert +type DisableActiveAlertRequest struct { + *requests.RpcRequest + Product string `position:"Query" name:"Product"` + UserId string `position:"Query" name:"UserId"` +} + +// DisableActiveAlertResponse is the response struct for api DisableActiveAlert +type DisableActiveAlertResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` +} + +// CreateDisableActiveAlertRequest creates a request to invoke DisableActiveAlert API +func CreateDisableActiveAlertRequest() (request *DisableActiveAlertRequest) { + request = &DisableActiveAlertRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "DisableActiveAlert", "cms", "openAPI") + return +} + +// CreateDisableActiveAlertResponse creates a response to parse from DisableActiveAlert response +func CreateDisableActiveAlertResponse() (response *DisableActiveAlertResponse) { + response = &DisableActiveAlertResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/disable_alarm.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/disable_alarm.go new file mode 100644 index 0000000..32e8987 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/disable_alarm.go @@ -0,0 +1,106 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DisableAlarm invokes the cms.DisableAlarm API synchronously +// api document: https://help.aliyun.com/api/cms/disablealarm.html +func (client *Client) DisableAlarm(request *DisableAlarmRequest) (response *DisableAlarmResponse, err error) { + response = CreateDisableAlarmResponse() + err = client.DoAction(request, response) + return +} + +// DisableAlarmWithChan invokes the cms.DisableAlarm API asynchronously +// api document: https://help.aliyun.com/api/cms/disablealarm.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DisableAlarmWithChan(request *DisableAlarmRequest) (<-chan *DisableAlarmResponse, <-chan error) { + responseChan := make(chan *DisableAlarmResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DisableAlarm(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DisableAlarmWithCallback invokes the cms.DisableAlarm API asynchronously +// api document: https://help.aliyun.com/api/cms/disablealarm.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DisableAlarmWithCallback(request *DisableAlarmRequest, callback func(response *DisableAlarmResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DisableAlarmResponse + var err error + defer close(result) + response, err = client.DisableAlarm(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DisableAlarmRequest is the request struct for api DisableAlarm +type DisableAlarmRequest struct { + *requests.RpcRequest + Id string `position:"Query" name:"Id"` +} + +// DisableAlarmResponse is the response struct for api DisableAlarm +type DisableAlarmResponse struct { + *responses.BaseResponse + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDisableAlarmRequest creates a request to invoke DisableAlarm API +func CreateDisableAlarmRequest() (request *DisableAlarmRequest) { + request = &DisableAlarmRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "DisableAlarm", "cms", "openAPI") + return +} + +// CreateDisableAlarmResponse creates a response to parse from DisableAlarm response +func CreateDisableAlarmResponse() (response *DisableAlarmResponse) { + response = &DisableAlarmResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/disable_event_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/disable_event_rule.go new file mode 100644 index 0000000..4f30149 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/disable_event_rule.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DisableEventRule invokes the cms.DisableEventRule API synchronously +// api document: https://help.aliyun.com/api/cms/disableeventrule.html +func (client *Client) DisableEventRule(request *DisableEventRuleRequest) (response *DisableEventRuleResponse, err error) { + response = CreateDisableEventRuleResponse() + err = client.DoAction(request, response) + return +} + +// DisableEventRuleWithChan invokes the cms.DisableEventRule API asynchronously +// api document: https://help.aliyun.com/api/cms/disableeventrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DisableEventRuleWithChan(request *DisableEventRuleRequest) (<-chan *DisableEventRuleResponse, <-chan error) { + responseChan := make(chan *DisableEventRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DisableEventRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DisableEventRuleWithCallback invokes the cms.DisableEventRule API asynchronously +// api document: https://help.aliyun.com/api/cms/disableeventrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DisableEventRuleWithCallback(request *DisableEventRuleRequest, callback func(response *DisableEventRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DisableEventRuleResponse + var err error + defer close(result) + response, err = client.DisableEventRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DisableEventRuleRequest is the request struct for api DisableEventRule +type DisableEventRuleRequest struct { + *requests.RpcRequest + RuleNames *[]string `position:"Query" name:"RuleNames" type:"Repeated"` + RuleName string `position:"Query" name:"RuleName"` +} + +// DisableEventRuleResponse is the response struct for api DisableEventRule +type DisableEventRuleResponse struct { + *responses.BaseResponse + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDisableEventRuleRequest creates a request to invoke DisableEventRule API +func CreateDisableEventRuleRequest() (request *DisableEventRuleRequest) { + request = &DisableEventRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "DisableEventRule", "cms", "openAPI") + return +} + +// CreateDisableEventRuleResponse creates a response to parse from DisableEventRule response +func CreateDisableEventRuleResponse() (response *DisableEventRuleResponse) { + response = &DisableEventRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/enable_active_alert.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/enable_active_alert.go new file mode 100644 index 0000000..3f80a35 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/enable_active_alert.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EnableActiveAlert invokes the cms.EnableActiveAlert API synchronously +// api document: https://help.aliyun.com/api/cms/enableactivealert.html +func (client *Client) EnableActiveAlert(request *EnableActiveAlertRequest) (response *EnableActiveAlertResponse, err error) { + response = CreateEnableActiveAlertResponse() + err = client.DoAction(request, response) + return +} + +// EnableActiveAlertWithChan invokes the cms.EnableActiveAlert API asynchronously +// api document: https://help.aliyun.com/api/cms/enableactivealert.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnableActiveAlertWithChan(request *EnableActiveAlertRequest) (<-chan *EnableActiveAlertResponse, <-chan error) { + responseChan := make(chan *EnableActiveAlertResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EnableActiveAlert(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EnableActiveAlertWithCallback invokes the cms.EnableActiveAlert API asynchronously +// api document: https://help.aliyun.com/api/cms/enableactivealert.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnableActiveAlertWithCallback(request *EnableActiveAlertRequest, callback func(response *EnableActiveAlertResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EnableActiveAlertResponse + var err error + defer close(result) + response, err = client.EnableActiveAlert(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EnableActiveAlertRequest is the request struct for api EnableActiveAlert +type EnableActiveAlertRequest struct { + *requests.RpcRequest + Product string `position:"Query" name:"Product"` + UserId string `position:"Query" name:"UserId"` +} + +// EnableActiveAlertResponse is the response struct for api EnableActiveAlert +type EnableActiveAlertResponse struct { + *responses.BaseResponse + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateEnableActiveAlertRequest creates a request to invoke EnableActiveAlert API +func CreateEnableActiveAlertRequest() (request *EnableActiveAlertRequest) { + request = &EnableActiveAlertRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "EnableActiveAlert", "cms", "openAPI") + return +} + +// CreateEnableActiveAlertResponse creates a response to parse from EnableActiveAlert response +func CreateEnableActiveAlertResponse() (response *EnableActiveAlertResponse) { + response = &EnableActiveAlertResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/enable_alarm.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/enable_alarm.go new file mode 100644 index 0000000..26e3822 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/enable_alarm.go @@ -0,0 +1,106 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EnableAlarm invokes the cms.EnableAlarm API synchronously +// api document: https://help.aliyun.com/api/cms/enablealarm.html +func (client *Client) EnableAlarm(request *EnableAlarmRequest) (response *EnableAlarmResponse, err error) { + response = CreateEnableAlarmResponse() + err = client.DoAction(request, response) + return +} + +// EnableAlarmWithChan invokes the cms.EnableAlarm API asynchronously +// api document: https://help.aliyun.com/api/cms/enablealarm.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnableAlarmWithChan(request *EnableAlarmRequest) (<-chan *EnableAlarmResponse, <-chan error) { + responseChan := make(chan *EnableAlarmResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EnableAlarm(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EnableAlarmWithCallback invokes the cms.EnableAlarm API asynchronously +// api document: https://help.aliyun.com/api/cms/enablealarm.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnableAlarmWithCallback(request *EnableAlarmRequest, callback func(response *EnableAlarmResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EnableAlarmResponse + var err error + defer close(result) + response, err = client.EnableAlarm(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EnableAlarmRequest is the request struct for api EnableAlarm +type EnableAlarmRequest struct { + *requests.RpcRequest + Id string `position:"Query" name:"Id"` +} + +// EnableAlarmResponse is the response struct for api EnableAlarm +type EnableAlarmResponse struct { + *responses.BaseResponse + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateEnableAlarmRequest creates a request to invoke EnableAlarm API +func CreateEnableAlarmRequest() (request *EnableAlarmRequest) { + request = &EnableAlarmRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "EnableAlarm", "cms", "openAPI") + return +} + +// CreateEnableAlarmResponse creates a response to parse from EnableAlarm response +func CreateEnableAlarmResponse() (response *EnableAlarmResponse) { + response = &EnableAlarmResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/enable_event_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/enable_event_rule.go new file mode 100644 index 0000000..9f43aa9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/enable_event_rule.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EnableEventRule invokes the cms.EnableEventRule API synchronously +// api document: https://help.aliyun.com/api/cms/enableeventrule.html +func (client *Client) EnableEventRule(request *EnableEventRuleRequest) (response *EnableEventRuleResponse, err error) { + response = CreateEnableEventRuleResponse() + err = client.DoAction(request, response) + return +} + +// EnableEventRuleWithChan invokes the cms.EnableEventRule API asynchronously +// api document: https://help.aliyun.com/api/cms/enableeventrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnableEventRuleWithChan(request *EnableEventRuleRequest) (<-chan *EnableEventRuleResponse, <-chan error) { + responseChan := make(chan *EnableEventRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EnableEventRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EnableEventRuleWithCallback invokes the cms.EnableEventRule API asynchronously +// api document: https://help.aliyun.com/api/cms/enableeventrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnableEventRuleWithCallback(request *EnableEventRuleRequest, callback func(response *EnableEventRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EnableEventRuleResponse + var err error + defer close(result) + response, err = client.EnableEventRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EnableEventRuleRequest is the request struct for api EnableEventRule +type EnableEventRuleRequest struct { + *requests.RpcRequest + RuleNames *[]string `position:"Query" name:"RuleNames" type:"Repeated"` + RuleName string `position:"Query" name:"RuleName"` +} + +// EnableEventRuleResponse is the response struct for api EnableEventRule +type EnableEventRuleResponse struct { + *responses.BaseResponse + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateEnableEventRuleRequest creates a request to invoke EnableEventRule API +func CreateEnableEventRuleRequest() (request *EnableEventRuleRequest) { + request = &EnableEventRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "EnableEventRule", "cms", "openAPI") + return +} + +// CreateEnableEventRuleResponse creates a response to parse from EnableEventRule response +func CreateEnableEventRuleResponse() (response *EnableEventRuleResponse) { + response = &EnableEventRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/get_contacts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/get_contacts.go new file mode 100644 index 0000000..925a8ee --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/get_contacts.go @@ -0,0 +1,108 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetContacts invokes the cms.GetContacts API synchronously +// api document: https://help.aliyun.com/api/cms/getcontacts.html +func (client *Client) GetContacts(request *GetContactsRequest) (response *GetContactsResponse, err error) { + response = CreateGetContactsResponse() + err = client.DoAction(request, response) + return +} + +// GetContactsWithChan invokes the cms.GetContacts API asynchronously +// api document: https://help.aliyun.com/api/cms/getcontacts.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetContactsWithChan(request *GetContactsRequest) (<-chan *GetContactsResponse, <-chan error) { + responseChan := make(chan *GetContactsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetContacts(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetContactsWithCallback invokes the cms.GetContacts API asynchronously +// api document: https://help.aliyun.com/api/cms/getcontacts.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetContactsWithCallback(request *GetContactsRequest, callback func(response *GetContactsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetContactsResponse + var err error + defer close(result) + response, err = client.GetContacts(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetContactsRequest is the request struct for api GetContacts +type GetContactsRequest struct { + *requests.RpcRequest + GroupName string `position:"Query" name:"GroupName"` +} + +// GetContactsResponse is the response struct for api GetContacts +type GetContactsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Datapoints Datapoints `json:"Datapoints" xml:"Datapoints"` +} + +// CreateGetContactsRequest creates a request to invoke GetContacts API +func CreateGetContactsRequest() (request *GetContactsRequest) { + request = &GetContactsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "GetContacts", "cms", "openAPI") + return +} + +// CreateGetContactsResponse creates a response to parse from GetContacts response +func CreateGetContactsResponse() (response *GetContactsResponse) { + response = &GetContactsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/get_my_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/get_my_groups.go new file mode 100644 index 0000000..5df18f5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/get_my_groups.go @@ -0,0 +1,112 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetMyGroups invokes the cms.GetMyGroups API synchronously +// api document: https://help.aliyun.com/api/cms/getmygroups.html +func (client *Client) GetMyGroups(request *GetMyGroupsRequest) (response *GetMyGroupsResponse, err error) { + response = CreateGetMyGroupsResponse() + err = client.DoAction(request, response) + return +} + +// GetMyGroupsWithChan invokes the cms.GetMyGroups API asynchronously +// api document: https://help.aliyun.com/api/cms/getmygroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetMyGroupsWithChan(request *GetMyGroupsRequest) (<-chan *GetMyGroupsResponse, <-chan error) { + responseChan := make(chan *GetMyGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetMyGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetMyGroupsWithCallback invokes the cms.GetMyGroups API asynchronously +// api document: https://help.aliyun.com/api/cms/getmygroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetMyGroupsWithCallback(request *GetMyGroupsRequest, callback func(response *GetMyGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetMyGroupsResponse + var err error + defer close(result) + response, err = client.GetMyGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetMyGroupsRequest is the request struct for api GetMyGroups +type GetMyGroupsRequest struct { + *requests.RpcRequest + SelectContactGroups requests.Boolean `position:"Query" name:"SelectContactGroups"` + InstanceId string `position:"Query" name:"InstanceId"` + GroupId requests.Integer `position:"Query" name:"GroupId"` + Type string `position:"Query" name:"Type"` + GroupName string `position:"Query" name:"GroupName"` + BindUrl string `position:"Query" name:"BindUrl"` +} + +// GetMyGroupsResponse is the response struct for api GetMyGroups +type GetMyGroupsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Group Group `json:"Group" xml:"Group"` +} + +// CreateGetMyGroupsRequest creates a request to invoke GetMyGroups API +func CreateGetMyGroupsRequest() (request *GetMyGroupsRequest) { + request = &GetMyGroupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "GetMyGroups", "cms", "openAPI") + return +} + +// CreateGetMyGroupsResponse creates a response to parse from GetMyGroups response +func CreateGetMyGroupsResponse() (response *GetMyGroupsResponse) { + response = &GetMyGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/get_notify_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/get_notify_policy.go new file mode 100644 index 0000000..fd96892 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/get_notify_policy.go @@ -0,0 +1,110 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetNotifyPolicy invokes the cms.GetNotifyPolicy API synchronously +// api document: https://help.aliyun.com/api/cms/getnotifypolicy.html +func (client *Client) GetNotifyPolicy(request *GetNotifyPolicyRequest) (response *GetNotifyPolicyResponse, err error) { + response = CreateGetNotifyPolicyResponse() + err = client.DoAction(request, response) + return +} + +// GetNotifyPolicyWithChan invokes the cms.GetNotifyPolicy API asynchronously +// api document: https://help.aliyun.com/api/cms/getnotifypolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetNotifyPolicyWithChan(request *GetNotifyPolicyRequest) (<-chan *GetNotifyPolicyResponse, <-chan error) { + responseChan := make(chan *GetNotifyPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetNotifyPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetNotifyPolicyWithCallback invokes the cms.GetNotifyPolicy API asynchronously +// api document: https://help.aliyun.com/api/cms/getnotifypolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetNotifyPolicyWithCallback(request *GetNotifyPolicyRequest, callback func(response *GetNotifyPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetNotifyPolicyResponse + var err error + defer close(result) + response, err = client.GetNotifyPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetNotifyPolicyRequest is the request struct for api GetNotifyPolicy +type GetNotifyPolicyRequest struct { + *requests.RpcRequest + PolicyType string `position:"Query" name:"PolicyType"` + AlertName string `position:"Query" name:"AlertName"` + Id string `position:"Query" name:"Id"` + Dimensions string `position:"Query" name:"Dimensions"` +} + +// GetNotifyPolicyResponse is the response struct for api GetNotifyPolicy +type GetNotifyPolicyResponse struct { + *responses.BaseResponse + Code string `json:"code" xml:"code"` + Message string `json:"message" xml:"message"` + Success string `json:"success" xml:"success"` + TraceId string `json:"traceId" xml:"traceId"` + Result Result `json:"Result" xml:"Result"` +} + +// CreateGetNotifyPolicyRequest creates a request to invoke GetNotifyPolicy API +func CreateGetNotifyPolicyRequest() (request *GetNotifyPolicyRequest) { + request = &GetNotifyPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "GetNotifyPolicy", "cms", "openAPI") + return +} + +// CreateGetNotifyPolicyResponse creates a response to parse from GetNotifyPolicy response +func CreateGetNotifyPolicyResponse() (response *GetNotifyPolicyResponse) { + response = &GetNotifyPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_active_alert_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_active_alert_rule.go new file mode 100644 index 0000000..abb031e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_active_alert_rule.go @@ -0,0 +1,108 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListActiveAlertRule invokes the cms.ListActiveAlertRule API synchronously +// api document: https://help.aliyun.com/api/cms/listactivealertrule.html +func (client *Client) ListActiveAlertRule(request *ListActiveAlertRuleRequest) (response *ListActiveAlertRuleResponse, err error) { + response = CreateListActiveAlertRuleResponse() + err = client.DoAction(request, response) + return +} + +// ListActiveAlertRuleWithChan invokes the cms.ListActiveAlertRule API asynchronously +// api document: https://help.aliyun.com/api/cms/listactivealertrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListActiveAlertRuleWithChan(request *ListActiveAlertRuleRequest) (<-chan *ListActiveAlertRuleResponse, <-chan error) { + responseChan := make(chan *ListActiveAlertRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListActiveAlertRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListActiveAlertRuleWithCallback invokes the cms.ListActiveAlertRule API asynchronously +// api document: https://help.aliyun.com/api/cms/listactivealertrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListActiveAlertRuleWithCallback(request *ListActiveAlertRuleRequest, callback func(response *ListActiveAlertRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListActiveAlertRuleResponse + var err error + defer close(result) + response, err = client.ListActiveAlertRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListActiveAlertRuleRequest is the request struct for api ListActiveAlertRule +type ListActiveAlertRuleRequest struct { + *requests.RpcRequest + Product string `position:"Query" name:"Product"` + UserId string `position:"Query" name:"UserId"` +} + +// ListActiveAlertRuleResponse is the response struct for api ListActiveAlertRule +type ListActiveAlertRuleResponse struct { + *responses.BaseResponse + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Datapoints DatapointsInListActiveAlertRule `json:"Datapoints" xml:"Datapoints"` +} + +// CreateListActiveAlertRuleRequest creates a request to invoke ListActiveAlertRule API +func CreateListActiveAlertRuleRequest() (request *ListActiveAlertRuleRequest) { + request = &ListActiveAlertRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "ListActiveAlertRule", "cms", "openAPI") + return +} + +// CreateListActiveAlertRuleResponse creates a response to parse from ListActiveAlertRule response +func CreateListActiveAlertRuleResponse() (response *ListActiveAlertRuleResponse) { + response = &ListActiveAlertRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_alarm.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_alarm.go new file mode 100644 index 0000000..05941a7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_alarm.go @@ -0,0 +1,116 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListAlarm invokes the cms.ListAlarm API synchronously +// api document: https://help.aliyun.com/api/cms/listalarm.html +func (client *Client) ListAlarm(request *ListAlarmRequest) (response *ListAlarmResponse, err error) { + response = CreateListAlarmResponse() + err = client.DoAction(request, response) + return +} + +// ListAlarmWithChan invokes the cms.ListAlarm API asynchronously +// api document: https://help.aliyun.com/api/cms/listalarm.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListAlarmWithChan(request *ListAlarmRequest) (<-chan *ListAlarmResponse, <-chan error) { + responseChan := make(chan *ListAlarmResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListAlarm(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListAlarmWithCallback invokes the cms.ListAlarm API asynchronously +// api document: https://help.aliyun.com/api/cms/listalarm.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListAlarmWithCallback(request *ListAlarmRequest, callback func(response *ListAlarmResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListAlarmResponse + var err error + defer close(result) + response, err = client.ListAlarm(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListAlarmRequest is the request struct for api ListAlarm +type ListAlarmRequest struct { + *requests.RpcRequest + IsEnable requests.Boolean `position:"Query" name:"IsEnable"` + Name string `position:"Query" name:"Name"` + Namespace string `position:"Query" name:"Namespace"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Id string `position:"Query" name:"Id"` + State string `position:"Query" name:"State"` + Dimension string `position:"Query" name:"Dimension"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// ListAlarmResponse is the response struct for api ListAlarm +type ListAlarmResponse struct { + *responses.BaseResponse + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + NextToken int `json:"NextToken" xml:"NextToken"` + Total int `json:"Total" xml:"Total"` + RequestId string `json:"RequestId" xml:"RequestId"` + AlarmList AlarmList `json:"AlarmList" xml:"AlarmList"` +} + +// CreateListAlarmRequest creates a request to invoke ListAlarm API +func CreateListAlarmRequest() (request *ListAlarmRequest) { + request = &ListAlarmRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "ListAlarm", "cms", "openAPI") + return +} + +// CreateListAlarmResponse creates a response to parse from ListAlarm response +func CreateListAlarmResponse() (response *ListAlarmResponse) { + response = &ListAlarmResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_alarm_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_alarm_history.go new file mode 100644 index 0000000..c1566e5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_alarm_history.go @@ -0,0 +1,112 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListAlarmHistory invokes the cms.ListAlarmHistory API synchronously +// api document: https://help.aliyun.com/api/cms/listalarmhistory.html +func (client *Client) ListAlarmHistory(request *ListAlarmHistoryRequest) (response *ListAlarmHistoryResponse, err error) { + response = CreateListAlarmHistoryResponse() + err = client.DoAction(request, response) + return +} + +// ListAlarmHistoryWithChan invokes the cms.ListAlarmHistory API asynchronously +// api document: https://help.aliyun.com/api/cms/listalarmhistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListAlarmHistoryWithChan(request *ListAlarmHistoryRequest) (<-chan *ListAlarmHistoryResponse, <-chan error) { + responseChan := make(chan *ListAlarmHistoryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListAlarmHistory(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListAlarmHistoryWithCallback invokes the cms.ListAlarmHistory API asynchronously +// api document: https://help.aliyun.com/api/cms/listalarmhistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListAlarmHistoryWithCallback(request *ListAlarmHistoryRequest, callback func(response *ListAlarmHistoryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListAlarmHistoryResponse + var err error + defer close(result) + response, err = client.ListAlarmHistory(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListAlarmHistoryRequest is the request struct for api ListAlarmHistory +type ListAlarmHistoryRequest struct { + *requests.RpcRequest + Cursor string `position:"Query" name:"Cursor"` + Size requests.Integer `position:"Query" name:"Size"` + EndTime string `position:"Query" name:"EndTime"` + Id string `position:"Query" name:"Id"` + StartTime string `position:"Query" name:"StartTime"` +} + +// ListAlarmHistoryResponse is the response struct for api ListAlarmHistory +type ListAlarmHistoryResponse struct { + *responses.BaseResponse + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Cursor string `json:"Cursor" xml:"Cursor"` + RequestId string `json:"RequestId" xml:"RequestId"` + AlarmHistoryList AlarmHistoryListInListAlarmHistory `json:"AlarmHistoryList" xml:"AlarmHistoryList"` +} + +// CreateListAlarmHistoryRequest creates a request to invoke ListAlarmHistory API +func CreateListAlarmHistoryRequest() (request *ListAlarmHistoryRequest) { + request = &ListAlarmHistoryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "ListAlarmHistory", "cms", "openAPI") + return +} + +// CreateListAlarmHistoryResponse creates a response to parse from ListAlarmHistory response +func CreateListAlarmHistoryResponse() (response *ListAlarmHistoryResponse) { + response = &ListAlarmHistoryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_contact_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_contact_group.go new file mode 100644 index 0000000..708841b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_contact_group.go @@ -0,0 +1,110 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListContactGroup invokes the cms.ListContactGroup API synchronously +// api document: https://help.aliyun.com/api/cms/listcontactgroup.html +func (client *Client) ListContactGroup(request *ListContactGroupRequest) (response *ListContactGroupResponse, err error) { + response = CreateListContactGroupResponse() + err = client.DoAction(request, response) + return +} + +// ListContactGroupWithChan invokes the cms.ListContactGroup API asynchronously +// api document: https://help.aliyun.com/api/cms/listcontactgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListContactGroupWithChan(request *ListContactGroupRequest) (<-chan *ListContactGroupResponse, <-chan error) { + responseChan := make(chan *ListContactGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListContactGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListContactGroupWithCallback invokes the cms.ListContactGroup API asynchronously +// api document: https://help.aliyun.com/api/cms/listcontactgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListContactGroupWithCallback(request *ListContactGroupRequest, callback func(response *ListContactGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListContactGroupResponse + var err error + defer close(result) + response, err = client.ListContactGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListContactGroupRequest is the request struct for api ListContactGroup +type ListContactGroupRequest struct { + *requests.RpcRequest + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// ListContactGroupResponse is the response struct for api ListContactGroup +type ListContactGroupResponse struct { + *responses.BaseResponse + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + NextToken int `json:"NextToken" xml:"NextToken"` + Total int `json:"Total" xml:"Total"` + RequestId string `json:"RequestId" xml:"RequestId"` + ContactGroups ContactGroupsInListContactGroup `json:"ContactGroups" xml:"ContactGroups"` +} + +// CreateListContactGroupRequest creates a request to invoke ListContactGroup API +func CreateListContactGroupRequest() (request *ListContactGroupRequest) { + request = &ListContactGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "ListContactGroup", "cms", "openAPI") + return +} + +// CreateListContactGroupResponse creates a response to parse from ListContactGroup response +func CreateListContactGroupResponse() (response *ListContactGroupResponse) { + response = &ListContactGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_event_rules.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_event_rules.go new file mode 100644 index 0000000..1316562 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_event_rules.go @@ -0,0 +1,113 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListEventRules invokes the cms.ListEventRules API synchronously +// api document: https://help.aliyun.com/api/cms/listeventrules.html +func (client *Client) ListEventRules(request *ListEventRulesRequest) (response *ListEventRulesResponse, err error) { + response = CreateListEventRulesResponse() + err = client.DoAction(request, response) + return +} + +// ListEventRulesWithChan invokes the cms.ListEventRules API asynchronously +// api document: https://help.aliyun.com/api/cms/listeventrules.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListEventRulesWithChan(request *ListEventRulesRequest) (<-chan *ListEventRulesResponse, <-chan error) { + responseChan := make(chan *ListEventRulesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListEventRules(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListEventRulesWithCallback invokes the cms.ListEventRules API asynchronously +// api document: https://help.aliyun.com/api/cms/listeventrules.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListEventRulesWithCallback(request *ListEventRulesRequest, callback func(response *ListEventRulesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListEventRulesResponse + var err error + defer close(result) + response, err = client.ListEventRules(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListEventRulesRequest is the request struct for api ListEventRules +type ListEventRulesRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + PageSize string `position:"Query" name:"PageSize"` + NamePrefix string `position:"Query" name:"NamePrefix"` + Page string `position:"Query" name:"Page"` +} + +// ListEventRulesResponse is the response struct for api ListEventRules +type ListEventRulesResponse struct { + *responses.BaseResponse + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Total int `json:"Total" xml:"Total"` + CurrentPage int `json:"CurrentPage" xml:"CurrentPage"` + NextToken string `json:"NextToken" xml:"NextToken"` + Datapoints DatapointsInListEventRules `json:"Datapoints" xml:"Datapoints"` +} + +// CreateListEventRulesRequest creates a request to invoke ListEventRules API +func CreateListEventRulesRequest() (request *ListEventRulesRequest) { + request = &ListEventRulesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "ListEventRules", "cms", "openAPI") + return +} + +// CreateListEventRulesResponse creates a response to parse from ListEventRules response +func CreateListEventRulesResponse() (response *ListEventRulesResponse) { + response = &ListEventRulesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_event_targets_by_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_event_targets_by_rule.go new file mode 100644 index 0000000..3f928f6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_event_targets_by_rule.go @@ -0,0 +1,109 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListEventTargetsByRule invokes the cms.ListEventTargetsByRule API synchronously +// api document: https://help.aliyun.com/api/cms/listeventtargetsbyrule.html +func (client *Client) ListEventTargetsByRule(request *ListEventTargetsByRuleRequest) (response *ListEventTargetsByRuleResponse, err error) { + response = CreateListEventTargetsByRuleResponse() + err = client.DoAction(request, response) + return +} + +// ListEventTargetsByRuleWithChan invokes the cms.ListEventTargetsByRule API asynchronously +// api document: https://help.aliyun.com/api/cms/listeventtargetsbyrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListEventTargetsByRuleWithChan(request *ListEventTargetsByRuleRequest) (<-chan *ListEventTargetsByRuleResponse, <-chan error) { + responseChan := make(chan *ListEventTargetsByRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListEventTargetsByRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListEventTargetsByRuleWithCallback invokes the cms.ListEventTargetsByRule API asynchronously +// api document: https://help.aliyun.com/api/cms/listeventtargetsbyrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListEventTargetsByRuleWithCallback(request *ListEventTargetsByRuleRequest, callback func(response *ListEventTargetsByRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListEventTargetsByRuleResponse + var err error + defer close(result) + response, err = client.ListEventTargetsByRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListEventTargetsByRuleRequest is the request struct for api ListEventTargetsByRule +type ListEventTargetsByRuleRequest struct { + *requests.RpcRequest + RuleName string `position:"Query" name:"RuleName"` +} + +// ListEventTargetsByRuleResponse is the response struct for api ListEventTargetsByRule +type ListEventTargetsByRuleResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + ParameterCount int `json:"ParameterCount" xml:"ParameterCount"` + ContactParameters ContactParametersInListEventTargetsByRule `json:"ContactParameters" xml:"ContactParameters"` + FcParameters FcParametersInListEventTargetsByRule `json:"FcParameters" xml:"FcParameters"` + MnsParameters MnsParametersInListEventTargetsByRule `json:"MnsParameters" xml:"MnsParameters"` +} + +// CreateListEventTargetsByRuleRequest creates a request to invoke ListEventTargetsByRule API +func CreateListEventTargetsByRuleRequest() (request *ListEventTargetsByRuleRequest) { + request = &ListEventTargetsByRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "ListEventTargetsByRule", "cms", "openAPI") + return +} + +// CreateListEventTargetsByRuleResponse creates a response to parse from ListEventTargetsByRule response +func CreateListEventTargetsByRuleResponse() (response *ListEventTargetsByRuleResponse) { + response = &ListEventTargetsByRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_group_dynamic_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_group_dynamic_rule.go new file mode 100644 index 0000000..b6a3ed9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_group_dynamic_rule.go @@ -0,0 +1,110 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListGroupDynamicRule invokes the cms.ListGroupDynamicRule API synchronously +// api document: https://help.aliyun.com/api/cms/listgroupdynamicrule.html +func (client *Client) ListGroupDynamicRule(request *ListGroupDynamicRuleRequest) (response *ListGroupDynamicRuleResponse, err error) { + response = CreateListGroupDynamicRuleResponse() + err = client.DoAction(request, response) + return +} + +// ListGroupDynamicRuleWithChan invokes the cms.ListGroupDynamicRule API asynchronously +// api document: https://help.aliyun.com/api/cms/listgroupdynamicrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListGroupDynamicRuleWithChan(request *ListGroupDynamicRuleRequest) (<-chan *ListGroupDynamicRuleResponse, <-chan error) { + responseChan := make(chan *ListGroupDynamicRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListGroupDynamicRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListGroupDynamicRuleWithCallback invokes the cms.ListGroupDynamicRule API asynchronously +// api document: https://help.aliyun.com/api/cms/listgroupdynamicrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListGroupDynamicRuleWithCallback(request *ListGroupDynamicRuleRequest, callback func(response *ListGroupDynamicRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListGroupDynamicRuleResponse + var err error + defer close(result) + response, err = client.ListGroupDynamicRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListGroupDynamicRuleRequest is the request struct for api ListGroupDynamicRule +type ListGroupDynamicRuleRequest struct { + *requests.RpcRequest + GroupId requests.Integer `position:"Query" name:"GroupId"` +} + +// ListGroupDynamicRuleResponse is the response struct for api ListGroupDynamicRule +type ListGroupDynamicRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + Total int `json:"Total" xml:"Total"` + Resource ResourceInListGroupDynamicRule `json:"Resource" xml:"Resource"` +} + +// CreateListGroupDynamicRuleRequest creates a request to invoke ListGroupDynamicRule API +func CreateListGroupDynamicRuleRequest() (request *ListGroupDynamicRuleRequest) { + request = &ListGroupDynamicRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "ListGroupDynamicRule", "cms", "openAPI") + return +} + +// CreateListGroupDynamicRuleResponse creates a response to parse from ListGroupDynamicRule response +func CreateListGroupDynamicRuleResponse() (response *ListGroupDynamicRuleResponse) { + response = &ListGroupDynamicRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_my_group_categories.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_my_group_categories.go new file mode 100644 index 0000000..3d1a8b6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_my_group_categories.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListMyGroupCategories invokes the cms.ListMyGroupCategories API synchronously +// api document: https://help.aliyun.com/api/cms/listmygroupcategories.html +func (client *Client) ListMyGroupCategories(request *ListMyGroupCategoriesRequest) (response *ListMyGroupCategoriesResponse, err error) { + response = CreateListMyGroupCategoriesResponse() + err = client.DoAction(request, response) + return +} + +// ListMyGroupCategoriesWithChan invokes the cms.ListMyGroupCategories API asynchronously +// api document: https://help.aliyun.com/api/cms/listmygroupcategories.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListMyGroupCategoriesWithChan(request *ListMyGroupCategoriesRequest) (<-chan *ListMyGroupCategoriesResponse, <-chan error) { + responseChan := make(chan *ListMyGroupCategoriesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListMyGroupCategories(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListMyGroupCategoriesWithCallback invokes the cms.ListMyGroupCategories API asynchronously +// api document: https://help.aliyun.com/api/cms/listmygroupcategories.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListMyGroupCategoriesWithCallback(request *ListMyGroupCategoriesRequest, callback func(response *ListMyGroupCategoriesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListMyGroupCategoriesResponse + var err error + defer close(result) + response, err = client.ListMyGroupCategories(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListMyGroupCategoriesRequest is the request struct for api ListMyGroupCategories +type ListMyGroupCategoriesRequest struct { + *requests.RpcRequest + GroupId requests.Integer `position:"Query" name:"GroupId"` +} + +// ListMyGroupCategoriesResponse is the response struct for api ListMyGroupCategories +type ListMyGroupCategoriesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Category Category `json:"Category" xml:"Category"` +} + +// CreateListMyGroupCategoriesRequest creates a request to invoke ListMyGroupCategories API +func CreateListMyGroupCategoriesRequest() (request *ListMyGroupCategoriesRequest) { + request = &ListMyGroupCategoriesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "ListMyGroupCategories", "cms", "openAPI") + return +} + +// CreateListMyGroupCategoriesResponse creates a response to parse from ListMyGroupCategories response +func CreateListMyGroupCategoriesResponse() (response *ListMyGroupCategoriesResponse) { + response = &ListMyGroupCategoriesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_my_group_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_my_group_instances.go new file mode 100644 index 0000000..a50f517 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_my_group_instances.go @@ -0,0 +1,116 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListMyGroupInstances invokes the cms.ListMyGroupInstances API synchronously +// api document: https://help.aliyun.com/api/cms/listmygroupinstances.html +func (client *Client) ListMyGroupInstances(request *ListMyGroupInstancesRequest) (response *ListMyGroupInstancesResponse, err error) { + response = CreateListMyGroupInstancesResponse() + err = client.DoAction(request, response) + return +} + +// ListMyGroupInstancesWithChan invokes the cms.ListMyGroupInstances API asynchronously +// api document: https://help.aliyun.com/api/cms/listmygroupinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListMyGroupInstancesWithChan(request *ListMyGroupInstancesRequest) (<-chan *ListMyGroupInstancesResponse, <-chan error) { + responseChan := make(chan *ListMyGroupInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListMyGroupInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListMyGroupInstancesWithCallback invokes the cms.ListMyGroupInstances API asynchronously +// api document: https://help.aliyun.com/api/cms/listmygroupinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListMyGroupInstancesWithCallback(request *ListMyGroupInstancesRequest, callback func(response *ListMyGroupInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListMyGroupInstancesResponse + var err error + defer close(result) + response, err = client.ListMyGroupInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListMyGroupInstancesRequest is the request struct for api ListMyGroupInstances +type ListMyGroupInstancesRequest struct { + *requests.RpcRequest + Total requests.Boolean `position:"Query" name:"Total"` + InstanceIds string `position:"Query" name:"InstanceIds"` + GroupId requests.Integer `position:"Query" name:"GroupId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Category string `position:"Query" name:"Category"` + Keyword string `position:"Query" name:"Keyword"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// ListMyGroupInstancesResponse is the response struct for api ListMyGroupInstances +type ListMyGroupInstancesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + Total int `json:"Total" xml:"Total"` + Resources ResourcesInListMyGroupInstances `json:"Resources" xml:"Resources"` +} + +// CreateListMyGroupInstancesRequest creates a request to invoke ListMyGroupInstances API +func CreateListMyGroupInstancesRequest() (request *ListMyGroupInstancesRequest) { + request = &ListMyGroupInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "ListMyGroupInstances", "cms", "openAPI") + return +} + +// CreateListMyGroupInstancesResponse creates a response to parse from ListMyGroupInstances response +func CreateListMyGroupInstancesResponse() (response *ListMyGroupInstancesResponse) { + response = &ListMyGroupInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_my_group_instances_details.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_my_group_instances_details.go new file mode 100644 index 0000000..c31b4e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_my_group_instances_details.go @@ -0,0 +1,116 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListMyGroupInstancesDetails invokes the cms.ListMyGroupInstancesDetails API synchronously +// api document: https://help.aliyun.com/api/cms/listmygroupinstancesdetails.html +func (client *Client) ListMyGroupInstancesDetails(request *ListMyGroupInstancesDetailsRequest) (response *ListMyGroupInstancesDetailsResponse, err error) { + response = CreateListMyGroupInstancesDetailsResponse() + err = client.DoAction(request, response) + return +} + +// ListMyGroupInstancesDetailsWithChan invokes the cms.ListMyGroupInstancesDetails API asynchronously +// api document: https://help.aliyun.com/api/cms/listmygroupinstancesdetails.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListMyGroupInstancesDetailsWithChan(request *ListMyGroupInstancesDetailsRequest) (<-chan *ListMyGroupInstancesDetailsResponse, <-chan error) { + responseChan := make(chan *ListMyGroupInstancesDetailsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListMyGroupInstancesDetails(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListMyGroupInstancesDetailsWithCallback invokes the cms.ListMyGroupInstancesDetails API asynchronously +// api document: https://help.aliyun.com/api/cms/listmygroupinstancesdetails.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListMyGroupInstancesDetailsWithCallback(request *ListMyGroupInstancesDetailsRequest, callback func(response *ListMyGroupInstancesDetailsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListMyGroupInstancesDetailsResponse + var err error + defer close(result) + response, err = client.ListMyGroupInstancesDetails(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListMyGroupInstancesDetailsRequest is the request struct for api ListMyGroupInstancesDetails +type ListMyGroupInstancesDetailsRequest struct { + *requests.RpcRequest + Total requests.Boolean `position:"Query" name:"Total"` + InstanceIds string `position:"Query" name:"InstanceIds"` + GroupId requests.Integer `position:"Query" name:"GroupId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Category string `position:"Query" name:"Category"` + Keyword string `position:"Query" name:"Keyword"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// ListMyGroupInstancesDetailsResponse is the response struct for api ListMyGroupInstancesDetails +type ListMyGroupInstancesDetailsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + Total int `json:"Total" xml:"Total"` + Resources ResourcesInListMyGroupInstancesDetails `json:"Resources" xml:"Resources"` +} + +// CreateListMyGroupInstancesDetailsRequest creates a request to invoke ListMyGroupInstancesDetails API +func CreateListMyGroupInstancesDetailsRequest() (request *ListMyGroupInstancesDetailsRequest) { + request = &ListMyGroupInstancesDetailsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "ListMyGroupInstancesDetails", "cms", "openAPI") + return +} + +// CreateListMyGroupInstancesDetailsResponse creates a response to parse from ListMyGroupInstancesDetails response +func CreateListMyGroupInstancesDetailsResponse() (response *ListMyGroupInstancesDetailsResponse) { + response = &ListMyGroupInstancesDetailsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_my_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_my_groups.go new file mode 100644 index 0000000..d7628b5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_my_groups.go @@ -0,0 +1,117 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListMyGroups invokes the cms.ListMyGroups API synchronously +// api document: https://help.aliyun.com/api/cms/listmygroups.html +func (client *Client) ListMyGroups(request *ListMyGroupsRequest) (response *ListMyGroupsResponse, err error) { + response = CreateListMyGroupsResponse() + err = client.DoAction(request, response) + return +} + +// ListMyGroupsWithChan invokes the cms.ListMyGroups API asynchronously +// api document: https://help.aliyun.com/api/cms/listmygroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListMyGroupsWithChan(request *ListMyGroupsRequest) (<-chan *ListMyGroupsResponse, <-chan error) { + responseChan := make(chan *ListMyGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListMyGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListMyGroupsWithCallback invokes the cms.ListMyGroups API asynchronously +// api document: https://help.aliyun.com/api/cms/listmygroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListMyGroupsWithCallback(request *ListMyGroupsRequest, callback func(response *ListMyGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListMyGroupsResponse + var err error + defer close(result) + response, err = client.ListMyGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListMyGroupsRequest is the request struct for api ListMyGroups +type ListMyGroupsRequest struct { + *requests.RpcRequest + SelectContactGroups requests.Boolean `position:"Query" name:"SelectContactGroups"` + InstanceId string `position:"Query" name:"InstanceId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Keyword string `position:"Query" name:"Keyword"` + Type string `position:"Query" name:"Type"` + GroupName string `position:"Query" name:"GroupName"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + BindUrls string `position:"Query" name:"BindUrls"` +} + +// ListMyGroupsResponse is the response struct for api ListMyGroups +type ListMyGroupsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + Total int `json:"Total" xml:"Total"` + Resources ResourcesInListMyGroups `json:"Resources" xml:"Resources"` +} + +// CreateListMyGroupsRequest creates a request to invoke ListMyGroups API +func CreateListMyGroupsRequest() (request *ListMyGroupsRequest) { + request = &ListMyGroupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "ListMyGroups", "cms", "openAPI") + return +} + +// CreateListMyGroupsResponse creates a response to parse from ListMyGroups response +func CreateListMyGroupsResponse() (response *ListMyGroupsResponse) { + response = &ListMyGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_notify_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_notify_policy.go new file mode 100644 index 0000000..b047cc8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_notify_policy.go @@ -0,0 +1,112 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListNotifyPolicy invokes the cms.ListNotifyPolicy API synchronously +// api document: https://help.aliyun.com/api/cms/listnotifypolicy.html +func (client *Client) ListNotifyPolicy(request *ListNotifyPolicyRequest) (response *ListNotifyPolicyResponse, err error) { + response = CreateListNotifyPolicyResponse() + err = client.DoAction(request, response) + return +} + +// ListNotifyPolicyWithChan invokes the cms.ListNotifyPolicy API asynchronously +// api document: https://help.aliyun.com/api/cms/listnotifypolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListNotifyPolicyWithChan(request *ListNotifyPolicyRequest) (<-chan *ListNotifyPolicyResponse, <-chan error) { + responseChan := make(chan *ListNotifyPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListNotifyPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListNotifyPolicyWithCallback invokes the cms.ListNotifyPolicy API asynchronously +// api document: https://help.aliyun.com/api/cms/listnotifypolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListNotifyPolicyWithCallback(request *ListNotifyPolicyRequest, callback func(response *ListNotifyPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListNotifyPolicyResponse + var err error + defer close(result) + response, err = client.ListNotifyPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListNotifyPolicyRequest is the request struct for api ListNotifyPolicy +type ListNotifyPolicyRequest struct { + *requests.RpcRequest + PolicyType string `position:"Query" name:"PolicyType"` + AlertName string `position:"Query" name:"AlertName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Id string `position:"Query" name:"Id"` + Dimensions string `position:"Query" name:"Dimensions"` +} + +// ListNotifyPolicyResponse is the response struct for api ListNotifyPolicy +type ListNotifyPolicyResponse struct { + *responses.BaseResponse + Code string `json:"code" xml:"code"` + Message string `json:"message" xml:"message"` + Success string `json:"success" xml:"success"` + TraceId string `json:"traceId" xml:"traceId"` + Total int `json:"total" xml:"total"` + NotifyPolicyList NotifyPolicyList `json:"NotifyPolicyList" xml:"NotifyPolicyList"` +} + +// CreateListNotifyPolicyRequest creates a request to invoke ListNotifyPolicy API +func CreateListNotifyPolicyRequest() (request *ListNotifyPolicyRequest) { + request = &ListNotifyPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "ListNotifyPolicy", "cms", "openAPI") + return +} + +// CreateListNotifyPolicyResponse creates a response to parse from ListNotifyPolicy response +func CreateListNotifyPolicyResponse() (response *ListNotifyPolicyResponse) { + response = &ListNotifyPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_product_of_active_alert.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_product_of_active_alert.go new file mode 100644 index 0000000..f93d987 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/list_product_of_active_alert.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListProductOfActiveAlert invokes the cms.ListProductOfActiveAlert API synchronously +// api document: https://help.aliyun.com/api/cms/listproductofactivealert.html +func (client *Client) ListProductOfActiveAlert(request *ListProductOfActiveAlertRequest) (response *ListProductOfActiveAlertResponse, err error) { + response = CreateListProductOfActiveAlertResponse() + err = client.DoAction(request, response) + return +} + +// ListProductOfActiveAlertWithChan invokes the cms.ListProductOfActiveAlert API asynchronously +// api document: https://help.aliyun.com/api/cms/listproductofactivealert.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListProductOfActiveAlertWithChan(request *ListProductOfActiveAlertRequest) (<-chan *ListProductOfActiveAlertResponse, <-chan error) { + responseChan := make(chan *ListProductOfActiveAlertResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListProductOfActiveAlert(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListProductOfActiveAlertWithCallback invokes the cms.ListProductOfActiveAlert API asynchronously +// api document: https://help.aliyun.com/api/cms/listproductofactivealert.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListProductOfActiveAlertWithCallback(request *ListProductOfActiveAlertRequest, callback func(response *ListProductOfActiveAlertResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListProductOfActiveAlertResponse + var err error + defer close(result) + response, err = client.ListProductOfActiveAlert(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListProductOfActiveAlertRequest is the request struct for api ListProductOfActiveAlert +type ListProductOfActiveAlertRequest struct { + *requests.RpcRequest + UserId string `position:"Query" name:"UserId"` +} + +// ListProductOfActiveAlertResponse is the response struct for api ListProductOfActiveAlert +type ListProductOfActiveAlertResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Datapoints string `json:"Datapoints" xml:"Datapoints"` +} + +// CreateListProductOfActiveAlertRequest creates a request to invoke ListProductOfActiveAlert API +func CreateListProductOfActiveAlertRequest() (request *ListProductOfActiveAlertRequest) { + request = &ListProductOfActiveAlertRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "ListProductOfActiveAlert", "cms", "openAPI") + return +} + +// CreateListProductOfActiveAlertResponse creates a response to parse from ListProductOfActiveAlert response +func CreateListProductOfActiveAlertResponse() (response *ListProductOfActiveAlertResponse) { + response = &ListProductOfActiveAlertResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/modify_task.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/modify_task.go new file mode 100644 index 0000000..e38ed81 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/modify_task.go @@ -0,0 +1,114 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyTask invokes the cms.ModifyTask API synchronously +// api document: https://help.aliyun.com/api/cms/modifytask.html +func (client *Client) ModifyTask(request *ModifyTaskRequest) (response *ModifyTaskResponse, err error) { + response = CreateModifyTaskResponse() + err = client.DoAction(request, response) + return +} + +// ModifyTaskWithChan invokes the cms.ModifyTask API asynchronously +// api document: https://help.aliyun.com/api/cms/modifytask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyTaskWithChan(request *ModifyTaskRequest) (<-chan *ModifyTaskResponse, <-chan error) { + responseChan := make(chan *ModifyTaskResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyTask(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyTaskWithCallback invokes the cms.ModifyTask API asynchronously +// api document: https://help.aliyun.com/api/cms/modifytask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyTaskWithCallback(request *ModifyTaskRequest, callback func(response *ModifyTaskResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyTaskResponse + var err error + defer close(result) + response, err = client.ModifyTask(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyTaskRequest is the request struct for api ModifyTask +type ModifyTaskRequest struct { + *requests.RpcRequest + Address string `position:"Query" name:"Address"` + IspCity string `position:"Query" name:"IspCity"` + AlertIds string `position:"Query" name:"AlertIds"` + Options string `position:"Query" name:"Options"` + TaskName string `position:"Query" name:"TaskName"` + Interval string `position:"Query" name:"Interval"` + AlertRule string `position:"Query" name:"AlertRule"` + TaskId string `position:"Query" name:"TaskId"` +} + +// ModifyTaskResponse is the response struct for api ModifyTask +type ModifyTaskResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Success string `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data string `json:"Data" xml:"Data"` +} + +// CreateModifyTaskRequest creates a request to invoke ModifyTask API +func CreateModifyTaskRequest() (request *ModifyTaskRequest) { + request = &ModifyTaskRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "ModifyTask", "cms", "openAPI") + return +} + +// CreateModifyTaskResponse creates a response to parse from ModifyTask response +func CreateModifyTaskResponse() (response *ModifyTaskResponse) { + response = &ModifyTaskResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_install.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_install.go new file mode 100644 index 0000000..849b17b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_install.go @@ -0,0 +1,108 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// NodeInstall invokes the cms.NodeInstall API synchronously +// api document: https://help.aliyun.com/api/cms/nodeinstall.html +func (client *Client) NodeInstall(request *NodeInstallRequest) (response *NodeInstallResponse, err error) { + response = CreateNodeInstallResponse() + err = client.DoAction(request, response) + return +} + +// NodeInstallWithChan invokes the cms.NodeInstall API asynchronously +// api document: https://help.aliyun.com/api/cms/nodeinstall.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) NodeInstallWithChan(request *NodeInstallRequest) (<-chan *NodeInstallResponse, <-chan error) { + responseChan := make(chan *NodeInstallResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.NodeInstall(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// NodeInstallWithCallback invokes the cms.NodeInstall API asynchronously +// api document: https://help.aliyun.com/api/cms/nodeinstall.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) NodeInstallWithCallback(request *NodeInstallRequest, callback func(response *NodeInstallResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *NodeInstallResponse + var err error + defer close(result) + response, err = client.NodeInstall(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// NodeInstallRequest is the request struct for api NodeInstall +type NodeInstallRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + Force requests.Boolean `position:"Query" name:"Force"` + UserId string `position:"Query" name:"UserId"` +} + +// NodeInstallResponse is the response struct for api NodeInstall +type NodeInstallResponse struct { + *responses.BaseResponse + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Success bool `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateNodeInstallRequest creates a request to invoke NodeInstall API +func CreateNodeInstallRequest() (request *NodeInstallRequest) { + request = &NodeInstallRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "NodeInstall", "cms", "openAPI") + return +} + +// CreateNodeInstallResponse creates a response to parse from NodeInstall response +func CreateNodeInstallResponse() (response *NodeInstallResponse) { + response = &NodeInstallResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_list.go new file mode 100644 index 0000000..96726b6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_list.go @@ -0,0 +1,119 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// NodeList invokes the cms.NodeList API synchronously +// api document: https://help.aliyun.com/api/cms/nodelist.html +func (client *Client) NodeList(request *NodeListRequest) (response *NodeListResponse, err error) { + response = CreateNodeListResponse() + err = client.DoAction(request, response) + return +} + +// NodeListWithChan invokes the cms.NodeList API asynchronously +// api document: https://help.aliyun.com/api/cms/nodelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) NodeListWithChan(request *NodeListRequest) (<-chan *NodeListResponse, <-chan error) { + responseChan := make(chan *NodeListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.NodeList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// NodeListWithCallback invokes the cms.NodeList API asynchronously +// api document: https://help.aliyun.com/api/cms/nodelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) NodeListWithCallback(request *NodeListRequest, callback func(response *NodeListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *NodeListResponse + var err error + defer close(result) + response, err = client.NodeList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// NodeListRequest is the request struct for api NodeList +type NodeListRequest struct { + *requests.RpcRequest + HostName string `position:"Query" name:"HostName"` + InstanceIds string `position:"Query" name:"InstanceIds"` + InstanceRegionId string `position:"Query" name:"InstanceRegionId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + KeyWord string `position:"Query" name:"KeyWord"` + UserId requests.Integer `position:"Query" name:"UserId"` + SerialNumbers string `position:"Query" name:"SerialNumbers"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + Status string `position:"Query" name:"Status"` +} + +// NodeListResponse is the response struct for api NodeList +type NodeListResponse struct { + *responses.BaseResponse + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Success bool `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageTotal int `json:"PageTotal" xml:"PageTotal"` + Total int `json:"Total" xml:"Total"` + Nodes Nodes `json:"Nodes" xml:"Nodes"` +} + +// CreateNodeListRequest creates a request to invoke NodeList API +func CreateNodeListRequest() (request *NodeListRequest) { + request = &NodeListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "NodeList", "cms", "openAPI") + return +} + +// CreateNodeListResponse creates a response to parse from NodeList response +func CreateNodeListResponse() (response *NodeListResponse) { + response = &NodeListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_process_create.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_process_create.go new file mode 100644 index 0000000..d6d210d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_process_create.go @@ -0,0 +1,111 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// NodeProcessCreate invokes the cms.NodeProcessCreate API synchronously +// api document: https://help.aliyun.com/api/cms/nodeprocesscreate.html +func (client *Client) NodeProcessCreate(request *NodeProcessCreateRequest) (response *NodeProcessCreateResponse, err error) { + response = CreateNodeProcessCreateResponse() + err = client.DoAction(request, response) + return +} + +// NodeProcessCreateWithChan invokes the cms.NodeProcessCreate API asynchronously +// api document: https://help.aliyun.com/api/cms/nodeprocesscreate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) NodeProcessCreateWithChan(request *NodeProcessCreateRequest) (<-chan *NodeProcessCreateResponse, <-chan error) { + responseChan := make(chan *NodeProcessCreateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.NodeProcessCreate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// NodeProcessCreateWithCallback invokes the cms.NodeProcessCreate API asynchronously +// api document: https://help.aliyun.com/api/cms/nodeprocesscreate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) NodeProcessCreateWithCallback(request *NodeProcessCreateRequest, callback func(response *NodeProcessCreateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *NodeProcessCreateResponse + var err error + defer close(result) + response, err = client.NodeProcessCreate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// NodeProcessCreateRequest is the request struct for api NodeProcessCreate +type NodeProcessCreateRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + ProcessName string `position:"Query" name:"ProcessName"` + Name string `position:"Query" name:"Name"` + ProcessUser string `position:"Query" name:"ProcessUser"` + Command string `position:"Query" name:"Command"` +} + +// NodeProcessCreateResponse is the response struct for api NodeProcessCreate +type NodeProcessCreateResponse struct { + *responses.BaseResponse + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Success bool `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` + Id int `json:"Id" xml:"Id"` +} + +// CreateNodeProcessCreateRequest creates a request to invoke NodeProcessCreate API +func CreateNodeProcessCreateRequest() (request *NodeProcessCreateRequest) { + request = &NodeProcessCreateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "NodeProcessCreate", "cms", "openAPI") + return +} + +// CreateNodeProcessCreateResponse creates a response to parse from NodeProcessCreate response +func CreateNodeProcessCreateResponse() (response *NodeProcessCreateResponse) { + response = &NodeProcessCreateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_process_delete.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_process_delete.go new file mode 100644 index 0000000..2f4b0d6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_process_delete.go @@ -0,0 +1,108 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// NodeProcessDelete invokes the cms.NodeProcessDelete API synchronously +// api document: https://help.aliyun.com/api/cms/nodeprocessdelete.html +func (client *Client) NodeProcessDelete(request *NodeProcessDeleteRequest) (response *NodeProcessDeleteResponse, err error) { + response = CreateNodeProcessDeleteResponse() + err = client.DoAction(request, response) + return +} + +// NodeProcessDeleteWithChan invokes the cms.NodeProcessDelete API asynchronously +// api document: https://help.aliyun.com/api/cms/nodeprocessdelete.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) NodeProcessDeleteWithChan(request *NodeProcessDeleteRequest) (<-chan *NodeProcessDeleteResponse, <-chan error) { + responseChan := make(chan *NodeProcessDeleteResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.NodeProcessDelete(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// NodeProcessDeleteWithCallback invokes the cms.NodeProcessDelete API asynchronously +// api document: https://help.aliyun.com/api/cms/nodeprocessdelete.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) NodeProcessDeleteWithCallback(request *NodeProcessDeleteRequest, callback func(response *NodeProcessDeleteResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *NodeProcessDeleteResponse + var err error + defer close(result) + response, err = client.NodeProcessDelete(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// NodeProcessDeleteRequest is the request struct for api NodeProcessDelete +type NodeProcessDeleteRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + Name string `position:"Query" name:"Name"` + Id string `position:"Query" name:"Id"` +} + +// NodeProcessDeleteResponse is the response struct for api NodeProcessDelete +type NodeProcessDeleteResponse struct { + *responses.BaseResponse + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Success bool `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateNodeProcessDeleteRequest creates a request to invoke NodeProcessDelete API +func CreateNodeProcessDeleteRequest() (request *NodeProcessDeleteRequest) { + request = &NodeProcessDeleteRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "NodeProcessDelete", "cms", "openAPI") + return +} + +// CreateNodeProcessDeleteResponse creates a response to parse from NodeProcessDelete response +func CreateNodeProcessDeleteResponse() (response *NodeProcessDeleteResponse) { + response = &NodeProcessDeleteResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_processes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_processes.go new file mode 100644 index 0000000..3c544f7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_processes.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// NodeProcesses invokes the cms.NodeProcesses API synchronously +// api document: https://help.aliyun.com/api/cms/nodeprocesses.html +func (client *Client) NodeProcesses(request *NodeProcessesRequest) (response *NodeProcessesResponse, err error) { + response = CreateNodeProcessesResponse() + err = client.DoAction(request, response) + return +} + +// NodeProcessesWithChan invokes the cms.NodeProcesses API asynchronously +// api document: https://help.aliyun.com/api/cms/nodeprocesses.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) NodeProcessesWithChan(request *NodeProcessesRequest) (<-chan *NodeProcessesResponse, <-chan error) { + responseChan := make(chan *NodeProcessesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.NodeProcesses(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// NodeProcessesWithCallback invokes the cms.NodeProcesses API asynchronously +// api document: https://help.aliyun.com/api/cms/nodeprocesses.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) NodeProcessesWithCallback(request *NodeProcessesRequest, callback func(response *NodeProcessesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *NodeProcessesResponse + var err error + defer close(result) + response, err = client.NodeProcesses(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// NodeProcessesRequest is the request struct for api NodeProcesses +type NodeProcessesRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` +} + +// NodeProcessesResponse is the response struct for api NodeProcesses +type NodeProcessesResponse struct { + *responses.BaseResponse + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Success bool `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` + NodeProcesses NodeProcesses `json:"NodeProcesses" xml:"NodeProcesses"` +} + +// CreateNodeProcessesRequest creates a request to invoke NodeProcesses API +func CreateNodeProcessesRequest() (request *NodeProcessesRequest) { + request = &NodeProcessesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "NodeProcesses", "cms", "openAPI") + return +} + +// CreateNodeProcessesResponse creates a response to parse from NodeProcesses response +func CreateNodeProcessesResponse() (response *NodeProcessesResponse) { + response = &NodeProcessesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_status.go new file mode 100644 index 0000000..a595067 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_status.go @@ -0,0 +1,109 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// NodeStatus invokes the cms.NodeStatus API synchronously +// api document: https://help.aliyun.com/api/cms/nodestatus.html +func (client *Client) NodeStatus(request *NodeStatusRequest) (response *NodeStatusResponse, err error) { + response = CreateNodeStatusResponse() + err = client.DoAction(request, response) + return +} + +// NodeStatusWithChan invokes the cms.NodeStatus API asynchronously +// api document: https://help.aliyun.com/api/cms/nodestatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) NodeStatusWithChan(request *NodeStatusRequest) (<-chan *NodeStatusResponse, <-chan error) { + responseChan := make(chan *NodeStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.NodeStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// NodeStatusWithCallback invokes the cms.NodeStatus API asynchronously +// api document: https://help.aliyun.com/api/cms/nodestatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) NodeStatusWithCallback(request *NodeStatusRequest, callback func(response *NodeStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *NodeStatusResponse + var err error + defer close(result) + response, err = client.NodeStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// NodeStatusRequest is the request struct for api NodeStatus +type NodeStatusRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` +} + +// NodeStatusResponse is the response struct for api NodeStatus +type NodeStatusResponse struct { + *responses.BaseResponse + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Success bool `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + AutoInstall bool `json:"AutoInstall" xml:"AutoInstall"` + Status string `json:"Status" xml:"Status"` +} + +// CreateNodeStatusRequest creates a request to invoke NodeStatus API +func CreateNodeStatusRequest() (request *NodeStatusRequest) { + request = &NodeStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "NodeStatus", "cms", "openAPI") + return +} + +// CreateNodeStatusResponse creates a response to parse from NodeStatus response +func CreateNodeStatusResponse() (response *NodeStatusResponse) { + response = &NodeStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_status_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_status_list.go new file mode 100644 index 0000000..05e992e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_status_list.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// NodeStatusList invokes the cms.NodeStatusList API synchronously +// api document: https://help.aliyun.com/api/cms/nodestatuslist.html +func (client *Client) NodeStatusList(request *NodeStatusListRequest) (response *NodeStatusListResponse, err error) { + response = CreateNodeStatusListResponse() + err = client.DoAction(request, response) + return +} + +// NodeStatusListWithChan invokes the cms.NodeStatusList API asynchronously +// api document: https://help.aliyun.com/api/cms/nodestatuslist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) NodeStatusListWithChan(request *NodeStatusListRequest) (<-chan *NodeStatusListResponse, <-chan error) { + responseChan := make(chan *NodeStatusListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.NodeStatusList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// NodeStatusListWithCallback invokes the cms.NodeStatusList API asynchronously +// api document: https://help.aliyun.com/api/cms/nodestatuslist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) NodeStatusListWithCallback(request *NodeStatusListRequest, callback func(response *NodeStatusListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *NodeStatusListResponse + var err error + defer close(result) + response, err = client.NodeStatusList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// NodeStatusListRequest is the request struct for api NodeStatusList +type NodeStatusListRequest struct { + *requests.RpcRequest + InstanceIds string `position:"Query" name:"InstanceIds"` +} + +// NodeStatusListResponse is the response struct for api NodeStatusList +type NodeStatusListResponse struct { + *responses.BaseResponse + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Success bool `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` + NodeStatusList NodeStatusList `json:"NodeStatusList" xml:"NodeStatusList"` +} + +// CreateNodeStatusListRequest creates a request to invoke NodeStatusList API +func CreateNodeStatusListRequest() (request *NodeStatusListRequest) { + request = &NodeStatusListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "NodeStatusList", "cms", "openAPI") + return +} + +// CreateNodeStatusListResponse creates a response to parse from NodeStatusList response +func CreateNodeStatusListResponse() (response *NodeStatusListResponse) { + response = &NodeStatusListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_uninstall.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_uninstall.go new file mode 100644 index 0000000..67143c3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/node_uninstall.go @@ -0,0 +1,106 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// NodeUninstall invokes the cms.NodeUninstall API synchronously +// api document: https://help.aliyun.com/api/cms/nodeuninstall.html +func (client *Client) NodeUninstall(request *NodeUninstallRequest) (response *NodeUninstallResponse, err error) { + response = CreateNodeUninstallResponse() + err = client.DoAction(request, response) + return +} + +// NodeUninstallWithChan invokes the cms.NodeUninstall API asynchronously +// api document: https://help.aliyun.com/api/cms/nodeuninstall.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) NodeUninstallWithChan(request *NodeUninstallRequest) (<-chan *NodeUninstallResponse, <-chan error) { + responseChan := make(chan *NodeUninstallResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.NodeUninstall(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// NodeUninstallWithCallback invokes the cms.NodeUninstall API asynchronously +// api document: https://help.aliyun.com/api/cms/nodeuninstall.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) NodeUninstallWithCallback(request *NodeUninstallRequest, callback func(response *NodeUninstallResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *NodeUninstallResponse + var err error + defer close(result) + response, err = client.NodeUninstall(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// NodeUninstallRequest is the request struct for api NodeUninstall +type NodeUninstallRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` +} + +// NodeUninstallResponse is the response struct for api NodeUninstall +type NodeUninstallResponse struct { + *responses.BaseResponse + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Success bool `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateNodeUninstallRequest creates a request to invoke NodeUninstall API +func CreateNodeUninstallRequest() (request *NodeUninstallRequest) { + request = &NodeUninstallRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "NodeUninstall", "cms", "openAPI") + return +} + +// CreateNodeUninstallResponse creates a response to parse from NodeUninstall response +func CreateNodeUninstallResponse() (response *NodeUninstallResponse) { + response = &NodeUninstallResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/profile_get.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/profile_get.go new file mode 100644 index 0000000..5eebb1f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/profile_get.go @@ -0,0 +1,110 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ProfileGet invokes the cms.ProfileGet API synchronously +// api document: https://help.aliyun.com/api/cms/profileget.html +func (client *Client) ProfileGet(request *ProfileGetRequest) (response *ProfileGetResponse, err error) { + response = CreateProfileGetResponse() + err = client.DoAction(request, response) + return +} + +// ProfileGetWithChan invokes the cms.ProfileGet API asynchronously +// api document: https://help.aliyun.com/api/cms/profileget.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ProfileGetWithChan(request *ProfileGetRequest) (<-chan *ProfileGetResponse, <-chan error) { + responseChan := make(chan *ProfileGetResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ProfileGet(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ProfileGetWithCallback invokes the cms.ProfileGet API asynchronously +// api document: https://help.aliyun.com/api/cms/profileget.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ProfileGetWithCallback(request *ProfileGetRequest, callback func(response *ProfileGetResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ProfileGetResponse + var err error + defer close(result) + response, err = client.ProfileGet(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ProfileGetRequest is the request struct for api ProfileGet +type ProfileGetRequest struct { + *requests.RpcRequest + UserId requests.Integer `position:"Query" name:"UserId"` +} + +// ProfileGetResponse is the response struct for api ProfileGet +type ProfileGetResponse struct { + *responses.BaseResponse + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Success bool `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` + UserId int `json:"UserId" xml:"UserId"` + AutoInstall bool `json:"AutoInstall" xml:"AutoInstall"` + EnableInstallAgentNewECS bool `json:"EnableInstallAgentNewECS" xml:"EnableInstallAgentNewECS"` + EnableActiveAlert string `json:"EnableActiveAlert" xml:"EnableActiveAlert"` +} + +// CreateProfileGetRequest creates a request to invoke ProfileGet API +func CreateProfileGetRequest() (request *ProfileGetRequest) { + request = &ProfileGetRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "ProfileGet", "cms", "openAPI") + return +} + +// CreateProfileGetResponse creates a response to parse from ProfileGet response +func CreateProfileGetResponse() (response *ProfileGetResponse) { + response = &ProfileGetResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/profile_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/profile_set.go new file mode 100644 index 0000000..92d7ee3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/profile_set.go @@ -0,0 +1,109 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ProfileSet invokes the cms.ProfileSet API synchronously +// api document: https://help.aliyun.com/api/cms/profileset.html +func (client *Client) ProfileSet(request *ProfileSetRequest) (response *ProfileSetResponse, err error) { + response = CreateProfileSetResponse() + err = client.DoAction(request, response) + return +} + +// ProfileSetWithChan invokes the cms.ProfileSet API asynchronously +// api document: https://help.aliyun.com/api/cms/profileset.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ProfileSetWithChan(request *ProfileSetRequest) (<-chan *ProfileSetResponse, <-chan error) { + responseChan := make(chan *ProfileSetResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ProfileSet(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ProfileSetWithCallback invokes the cms.ProfileSet API asynchronously +// api document: https://help.aliyun.com/api/cms/profileset.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ProfileSetWithCallback(request *ProfileSetRequest, callback func(response *ProfileSetResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ProfileSetResponse + var err error + defer close(result) + response, err = client.ProfileSet(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ProfileSetRequest is the request struct for api ProfileSet +type ProfileSetRequest struct { + *requests.RpcRequest + EnableInstallAgentNewECS requests.Boolean `position:"Query" name:"EnableInstallAgentNewECS"` + EnableActiveAlert string `position:"Query" name:"EnableActiveAlert"` + AutoInstall requests.Boolean `position:"Query" name:"AutoInstall"` + UserId requests.Integer `position:"Query" name:"UserId"` +} + +// ProfileSetResponse is the response struct for api ProfileSet +type ProfileSetResponse struct { + *responses.BaseResponse + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Success bool `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateProfileSetRequest creates a request to invoke ProfileSet API +func CreateProfileSetRequest() (request *ProfileSetRequest) { + request = &ProfileSetRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "ProfileSet", "cms", "openAPI") + return +} + +// CreateProfileSetResponse creates a response to parse from ProfileSet response +func CreateProfileSetResponse() (response *ProfileSetResponse) { + response = &ProfileSetResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_custom_metric.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_custom_metric.go new file mode 100644 index 0000000..f9f67ca --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_custom_metric.go @@ -0,0 +1,106 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PutCustomMetric invokes the cms.PutCustomMetric API synchronously +// api document: https://help.aliyun.com/api/cms/putcustommetric.html +func (client *Client) PutCustomMetric(request *PutCustomMetricRequest) (response *PutCustomMetricResponse, err error) { + response = CreatePutCustomMetricResponse() + err = client.DoAction(request, response) + return +} + +// PutCustomMetricWithChan invokes the cms.PutCustomMetric API asynchronously +// api document: https://help.aliyun.com/api/cms/putcustommetric.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PutCustomMetricWithChan(request *PutCustomMetricRequest) (<-chan *PutCustomMetricResponse, <-chan error) { + responseChan := make(chan *PutCustomMetricResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PutCustomMetric(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PutCustomMetricWithCallback invokes the cms.PutCustomMetric API asynchronously +// api document: https://help.aliyun.com/api/cms/putcustommetric.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PutCustomMetricWithCallback(request *PutCustomMetricRequest, callback func(response *PutCustomMetricResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PutCustomMetricResponse + var err error + defer close(result) + response, err = client.PutCustomMetric(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PutCustomMetricRequest is the request struct for api PutCustomMetric +type PutCustomMetricRequest struct { + *requests.RpcRequest + MetricList string `position:"Query" name:"MetricList"` +} + +// PutCustomMetricResponse is the response struct for api PutCustomMetric +type PutCustomMetricResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Data string `json:"Data" xml:"Data"` +} + +// CreatePutCustomMetricRequest creates a request to invoke PutCustomMetric API +func CreatePutCustomMetricRequest() (request *PutCustomMetricRequest) { + request = &PutCustomMetricRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "PutCustomMetric", "cms", "openAPI") + return +} + +// CreatePutCustomMetricResponse creates a response to parse from PutCustomMetric response +func CreatePutCustomMetricResponse() (response *PutCustomMetricResponse) { + response = &PutCustomMetricResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_event.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_event.go new file mode 100644 index 0000000..7648281 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_event.go @@ -0,0 +1,106 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PutEvent invokes the cms.PutEvent API synchronously +// api document: https://help.aliyun.com/api/cms/putevent.html +func (client *Client) PutEvent(request *PutEventRequest) (response *PutEventResponse, err error) { + response = CreatePutEventResponse() + err = client.DoAction(request, response) + return +} + +// PutEventWithChan invokes the cms.PutEvent API asynchronously +// api document: https://help.aliyun.com/api/cms/putevent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PutEventWithChan(request *PutEventRequest) (<-chan *PutEventResponse, <-chan error) { + responseChan := make(chan *PutEventResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PutEvent(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PutEventWithCallback invokes the cms.PutEvent API asynchronously +// api document: https://help.aliyun.com/api/cms/putevent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PutEventWithCallback(request *PutEventRequest, callback func(response *PutEventResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PutEventResponse + var err error + defer close(result) + response, err = client.PutEvent(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PutEventRequest is the request struct for api PutEvent +type PutEventRequest struct { + *requests.RpcRequest + EventInfo string `position:"Query" name:"EventInfo"` +} + +// PutEventResponse is the response struct for api PutEvent +type PutEventResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Data string `json:"Data" xml:"Data"` +} + +// CreatePutEventRequest creates a request to invoke PutEvent API +func CreatePutEventRequest() (request *PutEventRequest) { + request = &PutEventRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "PutEvent", "cms", "openAPI") + return +} + +// CreatePutEventResponse creates a response to parse from PutEvent response +func CreatePutEventResponse() (response *PutEventResponse) { + response = &PutEventResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_event_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_event_rule.go new file mode 100644 index 0000000..b57fe1a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_event_rule.go @@ -0,0 +1,120 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PutEventRule invokes the cms.PutEventRule API synchronously +// api document: https://help.aliyun.com/api/cms/puteventrule.html +func (client *Client) PutEventRule(request *PutEventRuleRequest) (response *PutEventRuleResponse, err error) { + response = CreatePutEventRuleResponse() + err = client.DoAction(request, response) + return +} + +// PutEventRuleWithChan invokes the cms.PutEventRule API asynchronously +// api document: https://help.aliyun.com/api/cms/puteventrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PutEventRuleWithChan(request *PutEventRuleRequest) (<-chan *PutEventRuleResponse, <-chan error) { + responseChan := make(chan *PutEventRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PutEventRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PutEventRuleWithCallback invokes the cms.PutEventRule API asynchronously +// api document: https://help.aliyun.com/api/cms/puteventrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PutEventRuleWithCallback(request *PutEventRuleRequest, callback func(response *PutEventRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PutEventRuleResponse + var err error + defer close(result) + response, err = client.PutEventRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PutEventRuleRequest is the request struct for api PutEventRule +type PutEventRuleRequest struct { + *requests.RpcRequest + EventPattern *[]PutEventRuleEventPattern `position:"Query" name:"EventPattern" type:"Repeated"` + GroupId string `position:"Query" name:"GroupId"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` + EventType string `position:"Query" name:"EventType"` + State string `position:"Query" name:"State"` +} + +// PutEventRuleEventPattern is a repeated param struct in PutEventRuleRequest +type PutEventRuleEventPattern struct { + Product string `name:"Product"` + NameList *[]string `name:"NameList" type:"Repeated"` + StatusList *[]string `name:"StatusList" type:"Repeated"` + LevelList *[]string `name:"LevelList" type:"Repeated"` +} + +// PutEventRuleResponse is the response struct for api PutEventRule +type PutEventRuleResponse struct { + *responses.BaseResponse + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data string `json:"Data" xml:"Data"` +} + +// CreatePutEventRuleRequest creates a request to invoke PutEventRule API +func CreatePutEventRuleRequest() (request *PutEventRuleRequest) { + request = &PutEventRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "PutEventRule", "cms", "openAPI") + return +} + +// CreatePutEventRuleResponse creates a response to parse from PutEventRule response +func CreatePutEventRuleResponse() (response *PutEventRuleResponse) { + response = &PutEventRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_event_targets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_event_targets.go new file mode 100644 index 0000000..6d287c6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_event_targets.go @@ -0,0 +1,148 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PutEventTargets invokes the cms.PutEventTargets API synchronously +// api document: https://help.aliyun.com/api/cms/puteventtargets.html +func (client *Client) PutEventTargets(request *PutEventTargetsRequest) (response *PutEventTargetsResponse, err error) { + response = CreatePutEventTargetsResponse() + err = client.DoAction(request, response) + return +} + +// PutEventTargetsWithChan invokes the cms.PutEventTargets API asynchronously +// api document: https://help.aliyun.com/api/cms/puteventtargets.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PutEventTargetsWithChan(request *PutEventTargetsRequest) (<-chan *PutEventTargetsResponse, <-chan error) { + responseChan := make(chan *PutEventTargetsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PutEventTargets(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PutEventTargetsWithCallback invokes the cms.PutEventTargets API asynchronously +// api document: https://help.aliyun.com/api/cms/puteventtargets.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PutEventTargetsWithCallback(request *PutEventTargetsRequest, callback func(response *PutEventTargetsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PutEventTargetsResponse + var err error + defer close(result) + response, err = client.PutEventTargets(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PutEventTargetsRequest is the request struct for api PutEventTargets +type PutEventTargetsRequest struct { + *requests.RpcRequest + WebhookParameters *[]PutEventTargetsWebhookParameters `position:"Query" name:"WebhookParameters" type:"Repeated"` + ContactParameters *[]PutEventTargetsContactParameters `position:"Query" name:"ContactParameters" type:"Repeated"` + FcParameters *[]PutEventTargetsFcParameters `position:"Query" name:"FcParameters" type:"Repeated"` + RuleName string `position:"Query" name:"RuleName"` + MnsParameters *[]PutEventTargetsMnsParameters `position:"Query" name:"MnsParameters" type:"Repeated"` +} + +// PutEventTargetsWebhookParameters is a repeated param struct in PutEventTargetsRequest +type PutEventTargetsWebhookParameters struct { + Id string `name:"Id"` + Protocol string `name:"Protocol"` + Url string `name:"Url"` + Method string `name:"Method"` +} + +// PutEventTargetsContactParameters is a repeated param struct in PutEventTargetsRequest +type PutEventTargetsContactParameters struct { + Id string `name:"Id"` + ContactGroupName string `name:"ContactGroupName"` + Level string `name:"Level"` +} + +// PutEventTargetsFcParameters is a repeated param struct in PutEventTargetsRequest +type PutEventTargetsFcParameters struct { + Id string `name:"Id"` + Region string `name:"Region"` + ServiceName string `name:"ServiceName"` + FunctionName string `name:"FunctionName"` +} + +// PutEventTargetsMnsParameters is a repeated param struct in PutEventTargetsRequest +type PutEventTargetsMnsParameters struct { + Id string `name:"Id"` + Region string `name:"Region"` + Queue string `name:"Queue"` +} + +// PutEventTargetsResponse is the response struct for api PutEventTargets +type PutEventTargetsResponse struct { + *responses.BaseResponse + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + ParameterCount string `json:"ParameterCount" xml:"ParameterCount"` + FailedParameterCount string `json:"FailedParameterCount" xml:"FailedParameterCount"` + ContactParameters ContactParametersInPutEventTargets `json:"ContactParameters" xml:"ContactParameters"` + MnsParameters MnsParametersInPutEventTargets `json:"MnsParameters" xml:"MnsParameters"` + FcParameters FcParametersInPutEventTargets `json:"FcParameters" xml:"FcParameters"` + FailedContactParameters FailedContactParameters `json:"FailedContactParameters" xml:"FailedContactParameters"` + FailedMnsParameters FailedMnsParameters `json:"FailedMnsParameters" xml:"FailedMnsParameters"` + FailedFcParameters FailedFcParameters `json:"FailedFcParameters" xml:"FailedFcParameters"` +} + +// CreatePutEventTargetsRequest creates a request to invoke PutEventTargets API +func CreatePutEventTargetsRequest() (request *PutEventTargetsRequest) { + request = &PutEventTargetsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "PutEventTargets", "cms", "openAPI") + return +} + +// CreatePutEventTargetsResponse creates a response to parse from PutEventTargets response +func CreatePutEventTargetsResponse() (response *PutEventTargetsResponse) { + response = &PutEventTargetsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_group_dynamic_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_group_dynamic_rule.go new file mode 100644 index 0000000..8e3434d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_group_dynamic_rule.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PutGroupDynamicRule invokes the cms.PutGroupDynamicRule API synchronously +// api document: https://help.aliyun.com/api/cms/putgroupdynamicrule.html +func (client *Client) PutGroupDynamicRule(request *PutGroupDynamicRuleRequest) (response *PutGroupDynamicRuleResponse, err error) { + response = CreatePutGroupDynamicRuleResponse() + err = client.DoAction(request, response) + return +} + +// PutGroupDynamicRuleWithChan invokes the cms.PutGroupDynamicRule API asynchronously +// api document: https://help.aliyun.com/api/cms/putgroupdynamicrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PutGroupDynamicRuleWithChan(request *PutGroupDynamicRuleRequest) (<-chan *PutGroupDynamicRuleResponse, <-chan error) { + responseChan := make(chan *PutGroupDynamicRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PutGroupDynamicRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PutGroupDynamicRuleWithCallback invokes the cms.PutGroupDynamicRule API asynchronously +// api document: https://help.aliyun.com/api/cms/putgroupdynamicrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PutGroupDynamicRuleWithCallback(request *PutGroupDynamicRuleRequest, callback func(response *PutGroupDynamicRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PutGroupDynamicRuleResponse + var err error + defer close(result) + response, err = client.PutGroupDynamicRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PutGroupDynamicRuleRequest is the request struct for api PutGroupDynamicRule +type PutGroupDynamicRuleRequest struct { + *requests.RpcRequest + GroupId requests.Integer `position:"Query" name:"GroupId"` + GroupRuleArrayJson string `position:"Query" name:"GroupRuleArrayJson"` +} + +// PutGroupDynamicRuleResponse is the response struct for api PutGroupDynamicRule +type PutGroupDynamicRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` +} + +// CreatePutGroupDynamicRuleRequest creates a request to invoke PutGroupDynamicRule API +func CreatePutGroupDynamicRuleRequest() (request *PutGroupDynamicRuleRequest) { + request = &PutGroupDynamicRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "PutGroupDynamicRule", "cms", "openAPI") + return +} + +// CreatePutGroupDynamicRuleResponse creates a response to parse from PutGroupDynamicRule response +func CreatePutGroupDynamicRuleResponse() (response *PutGroupDynamicRuleResponse) { + response = &PutGroupDynamicRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_metric_alarm.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_metric_alarm.go new file mode 100644 index 0000000..96c65e0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/put_metric_alarm.go @@ -0,0 +1,130 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PutMetricAlarm invokes the cms.PutMetricAlarm API synchronously +// api document: https://help.aliyun.com/api/cms/putmetricalarm.html +func (client *Client) PutMetricAlarm(request *PutMetricAlarmRequest) (response *PutMetricAlarmResponse, err error) { + response = CreatePutMetricAlarmResponse() + err = client.DoAction(request, response) + return +} + +// PutMetricAlarmWithChan invokes the cms.PutMetricAlarm API asynchronously +// api document: https://help.aliyun.com/api/cms/putmetricalarm.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PutMetricAlarmWithChan(request *PutMetricAlarmRequest) (<-chan *PutMetricAlarmResponse, <-chan error) { + responseChan := make(chan *PutMetricAlarmResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PutMetricAlarm(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PutMetricAlarmWithCallback invokes the cms.PutMetricAlarm API asynchronously +// api document: https://help.aliyun.com/api/cms/putmetricalarm.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PutMetricAlarmWithCallback(request *PutMetricAlarmRequest, callback func(response *PutMetricAlarmResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PutMetricAlarmResponse + var err error + defer close(result) + response, err = client.PutMetricAlarm(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PutMetricAlarmRequest is the request struct for api PutMetricAlarm +type PutMetricAlarmRequest struct { + *requests.RpcRequest + Period string `position:"Query" name:"Period"` + Webhook string `position:"Query" name:"Webhook"` + ContactGroups string `position:"Query" name:"ContactGroups"` + Level requests.Integer `position:"Query" name:"Level"` + Subject string `position:"Query" name:"Subject"` + AlertName string `position:"Query" name:"AlertName"` + GroupId string `position:"Query" name:"GroupId"` + Description string `position:"Query" name:"Description"` + Resources string `position:"Query" name:"Resources"` + Threshold string `position:"Query" name:"Threshold"` + EffectiveInterval string `position:"Query" name:"EffectiveInterval"` + GroupName string `position:"Query" name:"GroupName"` + Filter string `position:"Query" name:"Filter"` + NoEffectiveInterval string `position:"Query" name:"NoEffectiveInterval"` + DisplayName string `position:"Query" name:"DisplayName"` + Namespace string `position:"Query" name:"Namespace"` + EvaluationCount requests.Integer `position:"Query" name:"EvaluationCount"` + SilenceTime requests.Integer `position:"Query" name:"SilenceTime"` + Interval string `position:"Query" name:"Interval"` + MetricName string `position:"Query" name:"MetricName"` + DeepDive string `position:"Query" name:"DeepDive"` + ComparisonOperator string `position:"Query" name:"ComparisonOperator"` + Dimensions string `position:"Query" name:"Dimensions"` + Statistics string `position:"Query" name:"Statistics"` +} + +// PutMetricAlarmResponse is the response struct for api PutMetricAlarm +type PutMetricAlarmResponse struct { + *responses.BaseResponse + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Datapoints string `json:"Datapoints" xml:"Datapoints"` +} + +// CreatePutMetricAlarmRequest creates a request to invoke PutMetricAlarm API +func CreatePutMetricAlarmRequest() (request *PutMetricAlarmRequest) { + request = &PutMetricAlarmRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "PutMetricAlarm", "cms", "openAPI") + return +} + +// CreatePutMetricAlarmResponse creates a response to parse from PutMetricAlarm response +func CreatePutMetricAlarmResponse() (response *PutMetricAlarmResponse) { + response = &PutMetricAlarmResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_custom_event_count.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_custom_event_count.go new file mode 100644 index 0000000..2f14f5d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_custom_event_count.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryCustomEventCount invokes the cms.QueryCustomEventCount API synchronously +// api document: https://help.aliyun.com/api/cms/querycustomeventcount.html +func (client *Client) QueryCustomEventCount(request *QueryCustomEventCountRequest) (response *QueryCustomEventCountResponse, err error) { + response = CreateQueryCustomEventCountResponse() + err = client.DoAction(request, response) + return +} + +// QueryCustomEventCountWithChan invokes the cms.QueryCustomEventCount API asynchronously +// api document: https://help.aliyun.com/api/cms/querycustomeventcount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCustomEventCountWithChan(request *QueryCustomEventCountRequest) (<-chan *QueryCustomEventCountResponse, <-chan error) { + responseChan := make(chan *QueryCustomEventCountResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryCustomEventCount(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryCustomEventCountWithCallback invokes the cms.QueryCustomEventCount API asynchronously +// api document: https://help.aliyun.com/api/cms/querycustomeventcount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCustomEventCountWithCallback(request *QueryCustomEventCountRequest, callback func(response *QueryCustomEventCountResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryCustomEventCountResponse + var err error + defer close(result) + response, err = client.QueryCustomEventCount(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryCustomEventCountRequest is the request struct for api QueryCustomEventCount +type QueryCustomEventCountRequest struct { + *requests.RpcRequest + QueryJson string `position:"Query" name:"QueryJson"` +} + +// QueryCustomEventCountResponse is the response struct for api QueryCustomEventCount +type QueryCustomEventCountResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Data string `json:"Data" xml:"Data"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` +} + +// CreateQueryCustomEventCountRequest creates a request to invoke QueryCustomEventCount API +func CreateQueryCustomEventCountRequest() (request *QueryCustomEventCountRequest) { + request = &QueryCustomEventCountRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "QueryCustomEventCount", "cms", "openAPI") + return +} + +// CreateQueryCustomEventCountResponse creates a response to parse from QueryCustomEventCount response +func CreateQueryCustomEventCountResponse() (response *QueryCustomEventCountResponse) { + response = &QueryCustomEventCountResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_custom_event_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_custom_event_detail.go new file mode 100644 index 0000000..ea4748d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_custom_event_detail.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryCustomEventDetail invokes the cms.QueryCustomEventDetail API synchronously +// api document: https://help.aliyun.com/api/cms/querycustomeventdetail.html +func (client *Client) QueryCustomEventDetail(request *QueryCustomEventDetailRequest) (response *QueryCustomEventDetailResponse, err error) { + response = CreateQueryCustomEventDetailResponse() + err = client.DoAction(request, response) + return +} + +// QueryCustomEventDetailWithChan invokes the cms.QueryCustomEventDetail API asynchronously +// api document: https://help.aliyun.com/api/cms/querycustomeventdetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCustomEventDetailWithChan(request *QueryCustomEventDetailRequest) (<-chan *QueryCustomEventDetailResponse, <-chan error) { + responseChan := make(chan *QueryCustomEventDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryCustomEventDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryCustomEventDetailWithCallback invokes the cms.QueryCustomEventDetail API asynchronously +// api document: https://help.aliyun.com/api/cms/querycustomeventdetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCustomEventDetailWithCallback(request *QueryCustomEventDetailRequest, callback func(response *QueryCustomEventDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryCustomEventDetailResponse + var err error + defer close(result) + response, err = client.QueryCustomEventDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryCustomEventDetailRequest is the request struct for api QueryCustomEventDetail +type QueryCustomEventDetailRequest struct { + *requests.RpcRequest + QueryJson string `position:"Query" name:"QueryJson"` +} + +// QueryCustomEventDetailResponse is the response struct for api QueryCustomEventDetail +type QueryCustomEventDetailResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Data string `json:"Data" xml:"Data"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success string `json:"Success" xml:"Success"` +} + +// CreateQueryCustomEventDetailRequest creates a request to invoke QueryCustomEventDetail API +func CreateQueryCustomEventDetailRequest() (request *QueryCustomEventDetailRequest) { + request = &QueryCustomEventDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "QueryCustomEventDetail", "cms", "openAPI") + return +} + +// CreateQueryCustomEventDetailResponse creates a response to parse from QueryCustomEventDetail response +func CreateQueryCustomEventDetailResponse() (response *QueryCustomEventDetailResponse) { + response = &QueryCustomEventDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_custom_event_histogram.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_custom_event_histogram.go new file mode 100644 index 0000000..c85f70e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_custom_event_histogram.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryCustomEventHistogram invokes the cms.QueryCustomEventHistogram API synchronously +// api document: https://help.aliyun.com/api/cms/querycustomeventhistogram.html +func (client *Client) QueryCustomEventHistogram(request *QueryCustomEventHistogramRequest) (response *QueryCustomEventHistogramResponse, err error) { + response = CreateQueryCustomEventHistogramResponse() + err = client.DoAction(request, response) + return +} + +// QueryCustomEventHistogramWithChan invokes the cms.QueryCustomEventHistogram API asynchronously +// api document: https://help.aliyun.com/api/cms/querycustomeventhistogram.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCustomEventHistogramWithChan(request *QueryCustomEventHistogramRequest) (<-chan *QueryCustomEventHistogramResponse, <-chan error) { + responseChan := make(chan *QueryCustomEventHistogramResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryCustomEventHistogram(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryCustomEventHistogramWithCallback invokes the cms.QueryCustomEventHistogram API asynchronously +// api document: https://help.aliyun.com/api/cms/querycustomeventhistogram.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCustomEventHistogramWithCallback(request *QueryCustomEventHistogramRequest, callback func(response *QueryCustomEventHistogramResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryCustomEventHistogramResponse + var err error + defer close(result) + response, err = client.QueryCustomEventHistogram(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryCustomEventHistogramRequest is the request struct for api QueryCustomEventHistogram +type QueryCustomEventHistogramRequest struct { + *requests.RpcRequest + QueryJson string `position:"Query" name:"QueryJson"` +} + +// QueryCustomEventHistogramResponse is the response struct for api QueryCustomEventHistogram +type QueryCustomEventHistogramResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Data string `json:"Data" xml:"Data"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success string `json:"Success" xml:"Success"` +} + +// CreateQueryCustomEventHistogramRequest creates a request to invoke QueryCustomEventHistogram API +func CreateQueryCustomEventHistogramRequest() (request *QueryCustomEventHistogramRequest) { + request = &QueryCustomEventHistogramRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "QueryCustomEventHistogram", "cms", "openAPI") + return +} + +// CreateQueryCustomEventHistogramResponse creates a response to parse from QueryCustomEventHistogram response +func CreateQueryCustomEventHistogramResponse() (response *QueryCustomEventHistogramResponse) { + response = &QueryCustomEventHistogramResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_custom_metric_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_custom_metric_list.go new file mode 100644 index 0000000..b2674da --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_custom_metric_list.go @@ -0,0 +1,111 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryCustomMetricList invokes the cms.QueryCustomMetricList API synchronously +// api document: https://help.aliyun.com/api/cms/querycustommetriclist.html +func (client *Client) QueryCustomMetricList(request *QueryCustomMetricListRequest) (response *QueryCustomMetricListResponse, err error) { + response = CreateQueryCustomMetricListResponse() + err = client.DoAction(request, response) + return +} + +// QueryCustomMetricListWithChan invokes the cms.QueryCustomMetricList API asynchronously +// api document: https://help.aliyun.com/api/cms/querycustommetriclist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCustomMetricListWithChan(request *QueryCustomMetricListRequest) (<-chan *QueryCustomMetricListResponse, <-chan error) { + responseChan := make(chan *QueryCustomMetricListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryCustomMetricList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryCustomMetricListWithCallback invokes the cms.QueryCustomMetricList API asynchronously +// api document: https://help.aliyun.com/api/cms/querycustommetriclist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCustomMetricListWithCallback(request *QueryCustomMetricListRequest, callback func(response *QueryCustomMetricListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryCustomMetricListResponse + var err error + defer close(result) + response, err = client.QueryCustomMetricList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryCustomMetricListRequest is the request struct for api QueryCustomMetricList +type QueryCustomMetricListRequest struct { + *requests.RpcRequest + Size string `position:"Query" name:"Size"` + GroupId string `position:"Query" name:"GroupId"` + Page string `position:"Query" name:"Page"` + MetricName string `position:"Query" name:"MetricName"` + Dimension string `position:"Query" name:"Dimension"` + Md5 string `position:"Query" name:"Md5"` +} + +// QueryCustomMetricListResponse is the response struct for api QueryCustomMetricList +type QueryCustomMetricListResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Result string `json:"Result" xml:"Result"` +} + +// CreateQueryCustomMetricListRequest creates a request to invoke QueryCustomMetricList API +func CreateQueryCustomMetricListRequest() (request *QueryCustomMetricListRequest) { + request = &QueryCustomMetricListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "QueryCustomMetricList", "cms", "openAPI") + return +} + +// CreateQueryCustomMetricListResponse creates a response to parse from QueryCustomMetricList response +func CreateQueryCustomMetricListResponse() (response *QueryCustomMetricListResponse) { + response = &QueryCustomMetricListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_metric_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_metric_data.go new file mode 100644 index 0000000..1a235b7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_metric_data.go @@ -0,0 +1,115 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryMetricData invokes the cms.QueryMetricData API synchronously +// api document: https://help.aliyun.com/api/cms/querymetricdata.html +func (client *Client) QueryMetricData(request *QueryMetricDataRequest) (response *QueryMetricDataResponse, err error) { + response = CreateQueryMetricDataResponse() + err = client.DoAction(request, response) + return +} + +// QueryMetricDataWithChan invokes the cms.QueryMetricData API asynchronously +// api document: https://help.aliyun.com/api/cms/querymetricdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMetricDataWithChan(request *QueryMetricDataRequest) (<-chan *QueryMetricDataResponse, <-chan error) { + responseChan := make(chan *QueryMetricDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryMetricData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryMetricDataWithCallback invokes the cms.QueryMetricData API asynchronously +// api document: https://help.aliyun.com/api/cms/querymetricdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMetricDataWithCallback(request *QueryMetricDataRequest, callback func(response *QueryMetricDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryMetricDataResponse + var err error + defer close(result) + response, err = client.QueryMetricData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryMetricDataRequest is the request struct for api QueryMetricData +type QueryMetricDataRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Period string `position:"Query" name:"Period"` + Metric string `position:"Query" name:"Metric"` + Length string `position:"Query" name:"Length"` + Project string `position:"Query" name:"Project"` + EndTime string `position:"Query" name:"EndTime"` + Express string `position:"Query" name:"Express"` + StartTime string `position:"Query" name:"StartTime"` + Dimensions string `position:"Query" name:"Dimensions"` +} + +// QueryMetricDataResponse is the response struct for api QueryMetricData +type QueryMetricDataResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Datapoints string `json:"Datapoints" xml:"Datapoints"` + Period string `json:"Period" xml:"Period"` +} + +// CreateQueryMetricDataRequest creates a request to invoke QueryMetricData API +func CreateQueryMetricDataRequest() (request *QueryMetricDataRequest) { + request = &QueryMetricDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "QueryMetricData", "cms", "openAPI") + return +} + +// CreateQueryMetricDataResponse creates a response to parse from QueryMetricData response +func CreateQueryMetricDataResponse() (response *QueryMetricDataResponse) { + response = &QueryMetricDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_metric_last.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_metric_last.go new file mode 100644 index 0000000..1bb962b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_metric_last.go @@ -0,0 +1,118 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryMetricLast invokes the cms.QueryMetricLast API synchronously +// api document: https://help.aliyun.com/api/cms/querymetriclast.html +func (client *Client) QueryMetricLast(request *QueryMetricLastRequest) (response *QueryMetricLastResponse, err error) { + response = CreateQueryMetricLastResponse() + err = client.DoAction(request, response) + return +} + +// QueryMetricLastWithChan invokes the cms.QueryMetricLast API asynchronously +// api document: https://help.aliyun.com/api/cms/querymetriclast.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMetricLastWithChan(request *QueryMetricLastRequest) (<-chan *QueryMetricLastResponse, <-chan error) { + responseChan := make(chan *QueryMetricLastResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryMetricLast(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryMetricLastWithCallback invokes the cms.QueryMetricLast API asynchronously +// api document: https://help.aliyun.com/api/cms/querymetriclast.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMetricLastWithCallback(request *QueryMetricLastRequest, callback func(response *QueryMetricLastResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryMetricLastResponse + var err error + defer close(result) + response, err = client.QueryMetricLast(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryMetricLastRequest is the request struct for api QueryMetricLast +type QueryMetricLastRequest struct { + *requests.RpcRequest + Cursor string `position:"Query" name:"Cursor"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Period string `position:"Query" name:"Period"` + Metric string `position:"Query" name:"Metric"` + Length string `position:"Query" name:"Length"` + Project string `position:"Query" name:"Project"` + EndTime string `position:"Query" name:"EndTime"` + Express string `position:"Query" name:"Express"` + StartTime string `position:"Query" name:"StartTime"` + Page string `position:"Query" name:"Page"` + Dimensions string `position:"Query" name:"Dimensions"` +} + +// QueryMetricLastResponse is the response struct for api QueryMetricLast +type QueryMetricLastResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Cursor string `json:"Cursor" xml:"Cursor"` + Datapoints string `json:"Datapoints" xml:"Datapoints"` + Period string `json:"Period" xml:"Period"` +} + +// CreateQueryMetricLastRequest creates a request to invoke QueryMetricLast API +func CreateQueryMetricLastRequest() (request *QueryMetricLastRequest) { + request = &QueryMetricLastRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "QueryMetricLast", "cms", "openAPI") + return +} + +// CreateQueryMetricLastResponse creates a response to parse from QueryMetricLast response +func CreateQueryMetricLastResponse() (response *QueryMetricLastResponse) { + response = &QueryMetricLastResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_metric_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_metric_list.go new file mode 100644 index 0000000..b818add --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_metric_list.go @@ -0,0 +1,117 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryMetricList invokes the cms.QueryMetricList API synchronously +// api document: https://help.aliyun.com/api/cms/querymetriclist.html +func (client *Client) QueryMetricList(request *QueryMetricListRequest) (response *QueryMetricListResponse, err error) { + response = CreateQueryMetricListResponse() + err = client.DoAction(request, response) + return +} + +// QueryMetricListWithChan invokes the cms.QueryMetricList API asynchronously +// api document: https://help.aliyun.com/api/cms/querymetriclist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMetricListWithChan(request *QueryMetricListRequest) (<-chan *QueryMetricListResponse, <-chan error) { + responseChan := make(chan *QueryMetricListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryMetricList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryMetricListWithCallback invokes the cms.QueryMetricList API asynchronously +// api document: https://help.aliyun.com/api/cms/querymetriclist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMetricListWithCallback(request *QueryMetricListRequest, callback func(response *QueryMetricListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryMetricListResponse + var err error + defer close(result) + response, err = client.QueryMetricList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryMetricListRequest is the request struct for api QueryMetricList +type QueryMetricListRequest struct { + *requests.RpcRequest + Cursor string `position:"Query" name:"Cursor"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Period string `position:"Query" name:"Period"` + Metric string `position:"Query" name:"Metric"` + Length string `position:"Query" name:"Length"` + Project string `position:"Query" name:"Project"` + EndTime string `position:"Query" name:"EndTime"` + Express string `position:"Query" name:"Express"` + StartTime string `position:"Query" name:"StartTime"` + Dimensions string `position:"Query" name:"Dimensions"` +} + +// QueryMetricListResponse is the response struct for api QueryMetricList +type QueryMetricListResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Cursor string `json:"Cursor" xml:"Cursor"` + Datapoints string `json:"Datapoints" xml:"Datapoints"` + Period string `json:"Period" xml:"Period"` +} + +// CreateQueryMetricListRequest creates a request to invoke QueryMetricList API +func CreateQueryMetricListRequest() (request *QueryMetricListRequest) { + request = &QueryMetricListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "QueryMetricList", "cms", "openAPI") + return +} + +// CreateQueryMetricListResponse creates a response to parse from QueryMetricList response +func CreateQueryMetricListResponse() (response *QueryMetricListResponse) { + response = &QueryMetricListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_metric_top.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_metric_top.go new file mode 100644 index 0000000..76ffb5e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_metric_top.go @@ -0,0 +1,117 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryMetricTop invokes the cms.QueryMetricTop API synchronously +// api document: https://help.aliyun.com/api/cms/querymetrictop.html +func (client *Client) QueryMetricTop(request *QueryMetricTopRequest) (response *QueryMetricTopResponse, err error) { + response = CreateQueryMetricTopResponse() + err = client.DoAction(request, response) + return +} + +// QueryMetricTopWithChan invokes the cms.QueryMetricTop API asynchronously +// api document: https://help.aliyun.com/api/cms/querymetrictop.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMetricTopWithChan(request *QueryMetricTopRequest) (<-chan *QueryMetricTopResponse, <-chan error) { + responseChan := make(chan *QueryMetricTopResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryMetricTop(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryMetricTopWithCallback invokes the cms.QueryMetricTop API asynchronously +// api document: https://help.aliyun.com/api/cms/querymetrictop.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMetricTopWithCallback(request *QueryMetricTopRequest, callback func(response *QueryMetricTopResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryMetricTopResponse + var err error + defer close(result) + response, err = client.QueryMetricTop(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryMetricTopRequest is the request struct for api QueryMetricTop +type QueryMetricTopRequest struct { + *requests.RpcRequest + Period string `position:"Query" name:"Period"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Metric string `position:"Query" name:"Metric"` + Length string `position:"Query" name:"Length"` + Project string `position:"Query" name:"Project"` + EndTime string `position:"Query" name:"EndTime"` + Orderby string `position:"Query" name:"Orderby"` + Express string `position:"Query" name:"Express"` + StartTime string `position:"Query" name:"StartTime"` + Dimensions string `position:"Query" name:"Dimensions"` + OrderDesc string `position:"Query" name:"OrderDesc"` +} + +// QueryMetricTopResponse is the response struct for api QueryMetricTop +type QueryMetricTopResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Datapoints string `json:"Datapoints" xml:"Datapoints"` + Period string `json:"Period" xml:"Period"` +} + +// CreateQueryMetricTopRequest creates a request to invoke QueryMetricTop API +func CreateQueryMetricTopRequest() (request *QueryMetricTopRequest) { + request = &QueryMetricTopRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "QueryMetricTop", "cms", "openAPI") + return +} + +// CreateQueryMetricTopResponse creates a response to parse from QueryMetricTop response +func CreateQueryMetricTopResponse() (response *QueryMetricTopResponse) { + response = &QueryMetricTopResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_system_event_count.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_system_event_count.go new file mode 100644 index 0000000..da5aeb4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_system_event_count.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QuerySystemEventCount invokes the cms.QuerySystemEventCount API synchronously +// api document: https://help.aliyun.com/api/cms/querysystemeventcount.html +func (client *Client) QuerySystemEventCount(request *QuerySystemEventCountRequest) (response *QuerySystemEventCountResponse, err error) { + response = CreateQuerySystemEventCountResponse() + err = client.DoAction(request, response) + return +} + +// QuerySystemEventCountWithChan invokes the cms.QuerySystemEventCount API asynchronously +// api document: https://help.aliyun.com/api/cms/querysystemeventcount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QuerySystemEventCountWithChan(request *QuerySystemEventCountRequest) (<-chan *QuerySystemEventCountResponse, <-chan error) { + responseChan := make(chan *QuerySystemEventCountResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QuerySystemEventCount(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QuerySystemEventCountWithCallback invokes the cms.QuerySystemEventCount API asynchronously +// api document: https://help.aliyun.com/api/cms/querysystemeventcount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QuerySystemEventCountWithCallback(request *QuerySystemEventCountRequest, callback func(response *QuerySystemEventCountResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QuerySystemEventCountResponse + var err error + defer close(result) + response, err = client.QuerySystemEventCount(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QuerySystemEventCountRequest is the request struct for api QuerySystemEventCount +type QuerySystemEventCountRequest struct { + *requests.RpcRequest + QueryJson string `position:"Query" name:"QueryJson"` +} + +// QuerySystemEventCountResponse is the response struct for api QuerySystemEventCount +type QuerySystemEventCountResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Data string `json:"Data" xml:"Data"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success string `json:"Success" xml:"Success"` +} + +// CreateQuerySystemEventCountRequest creates a request to invoke QuerySystemEventCount API +func CreateQuerySystemEventCountRequest() (request *QuerySystemEventCountRequest) { + request = &QuerySystemEventCountRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "QuerySystemEventCount", "cms", "openAPI") + return +} + +// CreateQuerySystemEventCountResponse creates a response to parse from QuerySystemEventCount response +func CreateQuerySystemEventCountResponse() (response *QuerySystemEventCountResponse) { + response = &QuerySystemEventCountResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_system_event_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_system_event_detail.go new file mode 100644 index 0000000..17c5ae6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_system_event_detail.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QuerySystemEventDetail invokes the cms.QuerySystemEventDetail API synchronously +// api document: https://help.aliyun.com/api/cms/querysystemeventdetail.html +func (client *Client) QuerySystemEventDetail(request *QuerySystemEventDetailRequest) (response *QuerySystemEventDetailResponse, err error) { + response = CreateQuerySystemEventDetailResponse() + err = client.DoAction(request, response) + return +} + +// QuerySystemEventDetailWithChan invokes the cms.QuerySystemEventDetail API asynchronously +// api document: https://help.aliyun.com/api/cms/querysystemeventdetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QuerySystemEventDetailWithChan(request *QuerySystemEventDetailRequest) (<-chan *QuerySystemEventDetailResponse, <-chan error) { + responseChan := make(chan *QuerySystemEventDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QuerySystemEventDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QuerySystemEventDetailWithCallback invokes the cms.QuerySystemEventDetail API asynchronously +// api document: https://help.aliyun.com/api/cms/querysystemeventdetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QuerySystemEventDetailWithCallback(request *QuerySystemEventDetailRequest, callback func(response *QuerySystemEventDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QuerySystemEventDetailResponse + var err error + defer close(result) + response, err = client.QuerySystemEventDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QuerySystemEventDetailRequest is the request struct for api QuerySystemEventDetail +type QuerySystemEventDetailRequest struct { + *requests.RpcRequest + QueryJson string `position:"Query" name:"QueryJson"` +} + +// QuerySystemEventDetailResponse is the response struct for api QuerySystemEventDetail +type QuerySystemEventDetailResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Data string `json:"Data" xml:"Data"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success string `json:"Success" xml:"Success"` +} + +// CreateQuerySystemEventDetailRequest creates a request to invoke QuerySystemEventDetail API +func CreateQuerySystemEventDetailRequest() (request *QuerySystemEventDetailRequest) { + request = &QuerySystemEventDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "QuerySystemEventDetail", "cms", "openAPI") + return +} + +// CreateQuerySystemEventDetailResponse creates a response to parse from QuerySystemEventDetail response +func CreateQuerySystemEventDetailResponse() (response *QuerySystemEventDetailResponse) { + response = &QuerySystemEventDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_system_event_histogram.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_system_event_histogram.go new file mode 100644 index 0000000..eaa2442 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/query_system_event_histogram.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QuerySystemEventHistogram invokes the cms.QuerySystemEventHistogram API synchronously +// api document: https://help.aliyun.com/api/cms/querysystemeventhistogram.html +func (client *Client) QuerySystemEventHistogram(request *QuerySystemEventHistogramRequest) (response *QuerySystemEventHistogramResponse, err error) { + response = CreateQuerySystemEventHistogramResponse() + err = client.DoAction(request, response) + return +} + +// QuerySystemEventHistogramWithChan invokes the cms.QuerySystemEventHistogram API asynchronously +// api document: https://help.aliyun.com/api/cms/querysystemeventhistogram.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QuerySystemEventHistogramWithChan(request *QuerySystemEventHistogramRequest) (<-chan *QuerySystemEventHistogramResponse, <-chan error) { + responseChan := make(chan *QuerySystemEventHistogramResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QuerySystemEventHistogram(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QuerySystemEventHistogramWithCallback invokes the cms.QuerySystemEventHistogram API asynchronously +// api document: https://help.aliyun.com/api/cms/querysystemeventhistogram.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QuerySystemEventHistogramWithCallback(request *QuerySystemEventHistogramRequest, callback func(response *QuerySystemEventHistogramResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QuerySystemEventHistogramResponse + var err error + defer close(result) + response, err = client.QuerySystemEventHistogram(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QuerySystemEventHistogramRequest is the request struct for api QuerySystemEventHistogram +type QuerySystemEventHistogramRequest struct { + *requests.RpcRequest + QueryJson string `position:"Query" name:"QueryJson"` +} + +// QuerySystemEventHistogramResponse is the response struct for api QuerySystemEventHistogram +type QuerySystemEventHistogramResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Data string `json:"Data" xml:"Data"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success string `json:"Success" xml:"Success"` +} + +// CreateQuerySystemEventHistogramRequest creates a request to invoke QuerySystemEventHistogram API +func CreateQuerySystemEventHistogramRequest() (request *QuerySystemEventHistogramRequest) { + request = &QuerySystemEventHistogramRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "QuerySystemEventHistogram", "cms", "openAPI") + return +} + +// CreateQuerySystemEventHistogramResponse creates a response to parse from QuerySystemEventHistogram response +func CreateQuerySystemEventHistogramResponse() (response *QuerySystemEventHistogramResponse) { + response = &QuerySystemEventHistogramResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/send_dry_run_system_event.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/send_dry_run_system_event.go new file mode 100644 index 0000000..5d0c2a1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/send_dry_run_system_event.go @@ -0,0 +1,110 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SendDryRunSystemEvent invokes the cms.SendDryRunSystemEvent API synchronously +// api document: https://help.aliyun.com/api/cms/senddryrunsystemevent.html +func (client *Client) SendDryRunSystemEvent(request *SendDryRunSystemEventRequest) (response *SendDryRunSystemEventResponse, err error) { + response = CreateSendDryRunSystemEventResponse() + err = client.DoAction(request, response) + return +} + +// SendDryRunSystemEventWithChan invokes the cms.SendDryRunSystemEvent API asynchronously +// api document: https://help.aliyun.com/api/cms/senddryrunsystemevent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SendDryRunSystemEventWithChan(request *SendDryRunSystemEventRequest) (<-chan *SendDryRunSystemEventResponse, <-chan error) { + responseChan := make(chan *SendDryRunSystemEventResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SendDryRunSystemEvent(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SendDryRunSystemEventWithCallback invokes the cms.SendDryRunSystemEvent API asynchronously +// api document: https://help.aliyun.com/api/cms/senddryrunsystemevent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SendDryRunSystemEventWithCallback(request *SendDryRunSystemEventRequest, callback func(response *SendDryRunSystemEventResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SendDryRunSystemEventResponse + var err error + defer close(result) + response, err = client.SendDryRunSystemEvent(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SendDryRunSystemEventRequest is the request struct for api SendDryRunSystemEvent +type SendDryRunSystemEventRequest struct { + *requests.RpcRequest + Product string `position:"Query" name:"Product"` + GroupId string `position:"Query" name:"GroupId"` + EventName string `position:"Query" name:"EventName"` + EventContent string `position:"Query" name:"EventContent"` +} + +// SendDryRunSystemEventResponse is the response struct for api SendDryRunSystemEvent +type SendDryRunSystemEventResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Data string `json:"Data" xml:"Data"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success string `json:"Success" xml:"Success"` +} + +// CreateSendDryRunSystemEventRequest creates a request to invoke SendDryRunSystemEvent API +func CreateSendDryRunSystemEventRequest() (request *SendDryRunSystemEventRequest) { + request = &SendDryRunSystemEventRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "SendDryRunSystemEvent", "cms", "openAPI") + return +} + +// CreateSendDryRunSystemEventResponse creates a response to parse from SendDryRunSystemEvent response +func CreateSendDryRunSystemEventResponse() (response *SendDryRunSystemEventResponse) { + response = &SendDryRunSystemEventResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/start_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/start_tasks.go new file mode 100644 index 0000000..cebf3e5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/start_tasks.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StartTasks invokes the cms.StartTasks API synchronously +// api document: https://help.aliyun.com/api/cms/starttasks.html +func (client *Client) StartTasks(request *StartTasksRequest) (response *StartTasksResponse, err error) { + response = CreateStartTasksResponse() + err = client.DoAction(request, response) + return +} + +// StartTasksWithChan invokes the cms.StartTasks API asynchronously +// api document: https://help.aliyun.com/api/cms/starttasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartTasksWithChan(request *StartTasksRequest) (<-chan *StartTasksResponse, <-chan error) { + responseChan := make(chan *StartTasksResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartTasks(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartTasksWithCallback invokes the cms.StartTasks API asynchronously +// api document: https://help.aliyun.com/api/cms/starttasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartTasksWithCallback(request *StartTasksRequest, callback func(response *StartTasksResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartTasksResponse + var err error + defer close(result) + response, err = client.StartTasks(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartTasksRequest is the request struct for api StartTasks +type StartTasksRequest struct { + *requests.RpcRequest + TaskIds string `position:"Query" name:"TaskIds"` +} + +// StartTasksResponse is the response struct for api StartTasks +type StartTasksResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Success string `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data string `json:"Data" xml:"Data"` +} + +// CreateStartTasksRequest creates a request to invoke StartTasks API +func CreateStartTasksRequest() (request *StartTasksRequest) { + request = &StartTasksRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "StartTasks", "cms", "openAPI") + return +} + +// CreateStartTasksResponse creates a response to parse from StartTasks response +func CreateStartTasksResponse() (response *StartTasksResponse) { + response = &StartTasksResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/stop_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/stop_tasks.go new file mode 100644 index 0000000..b92e4e2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/stop_tasks.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StopTasks invokes the cms.StopTasks API synchronously +// api document: https://help.aliyun.com/api/cms/stoptasks.html +func (client *Client) StopTasks(request *StopTasksRequest) (response *StopTasksResponse, err error) { + response = CreateStopTasksResponse() + err = client.DoAction(request, response) + return +} + +// StopTasksWithChan invokes the cms.StopTasks API asynchronously +// api document: https://help.aliyun.com/api/cms/stoptasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopTasksWithChan(request *StopTasksRequest) (<-chan *StopTasksResponse, <-chan error) { + responseChan := make(chan *StopTasksResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopTasks(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopTasksWithCallback invokes the cms.StopTasks API asynchronously +// api document: https://help.aliyun.com/api/cms/stoptasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopTasksWithCallback(request *StopTasksRequest, callback func(response *StopTasksResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopTasksResponse + var err error + defer close(result) + response, err = client.StopTasks(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopTasksRequest is the request struct for api StopTasks +type StopTasksRequest struct { + *requests.RpcRequest + TaskIds string `position:"Query" name:"TaskIds"` +} + +// StopTasksResponse is the response struct for api StopTasks +type StopTasksResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Success string `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data string `json:"Data" xml:"Data"` +} + +// CreateStopTasksRequest creates a request to invoke StopTasks API +func CreateStopTasksRequest() (request *StopTasksRequest) { + request = &StopTasksRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "StopTasks", "cms", "openAPI") + return +} + +// CreateStopTasksResponse creates a response to parse from StopTasks response +func CreateStopTasksResponse() (response *StopTasksResponse) { + response = &StopTasksResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm.go new file mode 100644 index 0000000..f36acbb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm.go @@ -0,0 +1,44 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Alarm is a nested struct in cms response +type Alarm struct { + Name string `json:"Name" xml:"Name"` + Resources string `json:"Resources" xml:"Resources"` + RuleName string `json:"RuleName" xml:"RuleName"` + Level string `json:"Level" xml:"Level"` + EffectiveInterval string `json:"EffectiveInterval" xml:"EffectiveInterval"` + ContactGroups string `json:"ContactGroups" xml:"ContactGroups"` + GroupName string `json:"GroupName" xml:"GroupName"` + Dimensions string `json:"Dimensions" xml:"Dimensions"` + SilenceTime string `json:"SilenceTime" xml:"SilenceTime"` + DisplayName string `json:"DisplayName" xml:"DisplayName"` + Threshold string `json:"Threshold" xml:"Threshold"` + Period string `json:"Period" xml:"Period"` + Uuid string `json:"Uuid" xml:"Uuid"` + Subject string `json:"Subject" xml:"Subject"` + ComparisonOperator string `json:"ComparisonOperator" xml:"ComparisonOperator"` + State string `json:"State" xml:"State"` + Namespace string `json:"Namespace" xml:"Namespace"` + Enable bool `json:"Enable" xml:"Enable"` + MetricName string `json:"MetricName" xml:"MetricName"` + GroupId string `json:"GroupId" xml:"GroupId"` + Statistics string `json:"Statistics" xml:"Statistics"` + EvaluationCount string `json:"EvaluationCount" xml:"EvaluationCount"` + Webhook string `json:"Webhook" xml:"Webhook"` + NoEffectiveInterval string `json:"NoEffectiveInterval" xml:"NoEffectiveInterval"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_history.go new file mode 100644 index 0000000..4cbdca6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_history.go @@ -0,0 +1,33 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AlarmHistory is a nested struct in cms response +type AlarmHistory struct { + Name string `json:"Name" xml:"Name"` + AlarmTime int `json:"AlarmTime" xml:"AlarmTime"` + Status int `json:"Status" xml:"Status"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + Dimension string `json:"Dimension" xml:"Dimension"` + ContactGroups string `json:"ContactGroups" xml:"ContactGroups"` + Value string `json:"Value" xml:"Value"` + State string `json:"State" xml:"State"` + Namespace string `json:"Namespace" xml:"Namespace"` + Id string `json:"Id" xml:"Id"` + MetricName string `json:"MetricName" xml:"MetricName"` + LastTime int `json:"LastTime" xml:"LastTime"` + EvaluationCount int `json:"EvaluationCount" xml:"EvaluationCount"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_history_in_describe_alarm_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_history_in_describe_alarm_history.go new file mode 100644 index 0000000..5bf1a5f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_history_in_describe_alarm_history.go @@ -0,0 +1,44 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AlarmHistoryInDescribeAlarmHistory is a nested struct in cms response +type AlarmHistoryInDescribeAlarmHistory struct { + Id string `json:"Id" xml:"Id"` + AlertName string `json:"AlertName" xml:"AlertName"` + GroupId string `json:"GroupId" xml:"GroupId"` + Namespace string `json:"Namespace" xml:"Namespace"` + MetricName string `json:"MetricName" xml:"MetricName"` + Dimensions string `json:"Dimensions" xml:"Dimensions"` + Expression string `json:"Expression" xml:"Expression"` + EvaluationCount int `json:"EvaluationCount" xml:"EvaluationCount"` + Value string `json:"Value" xml:"Value"` + AlertTime int `json:"AlertTime" xml:"AlertTime"` + LastTime int `json:"LastTime" xml:"LastTime"` + Level string `json:"Level" xml:"Level"` + PreLevel string `json:"PreLevel" xml:"PreLevel"` + RuleName string `json:"ruleName" xml:"ruleName"` + State string `json:"State" xml:"State"` + Status int `json:"Status" xml:"Status"` + UserId string `json:"UserId" xml:"UserId"` + Webhooks string `json:"Webhooks" xml:"Webhooks"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + ContactGroups ContactGroupsInDescribeAlarmHistory `json:"ContactGroups" xml:"ContactGroups"` + Contacts ContactsInDescribeAlarmHistory `json:"Contacts" xml:"Contacts"` + ContactALIIMs ContactALIIMs `json:"ContactALIIMs" xml:"ContactALIIMs"` + ContactSmses ContactSmses `json:"ContactSmses" xml:"ContactSmses"` + ContactMails ContactMails `json:"ContactMails" xml:"ContactMails"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_history_list_in_describe_alarm_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_history_list_in_describe_alarm_history.go new file mode 100644 index 0000000..c2001f9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_history_list_in_describe_alarm_history.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AlarmHistoryListInDescribeAlarmHistory is a nested struct in cms response +type AlarmHistoryListInDescribeAlarmHistory struct { + AlarmHistory []AlarmHistoryInDescribeAlarmHistory `json:"AlarmHistory" xml:"AlarmHistory"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_history_list_in_list_alarm_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_history_list_in_list_alarm_history.go new file mode 100644 index 0000000..3aadd88 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_history_list_in_list_alarm_history.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AlarmHistoryListInListAlarmHistory is a nested struct in cms response +type AlarmHistoryListInListAlarmHistory struct { + AlarmHistory []AlarmHistory `json:"AlarmHistory" xml:"AlarmHistory"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_in_list_active_alert_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_in_list_active_alert_rule.go new file mode 100644 index 0000000..bd8f8b3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_in_list_active_alert_rule.go @@ -0,0 +1,38 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AlarmInListActiveAlertRule is a nested struct in cms response +type AlarmInListActiveAlertRule struct { + Uuid string `json:"Uuid" xml:"Uuid"` + Name string `json:"Name" xml:"Name"` + Namespace string `json:"Namespace" xml:"Namespace"` + MetricName string `json:"MetricName" xml:"MetricName"` + Period string `json:"Period" xml:"Period"` + Statistics string `json:"Statistics" xml:"Statistics"` + ComparisonOperator string `json:"ComparisonOperator" xml:"ComparisonOperator"` + Threshold string `json:"Threshold" xml:"Threshold"` + EvaluationCount string `json:"EvaluationCount" xml:"EvaluationCount"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + SilenceTime string `json:"SilenceTime" xml:"SilenceTime"` + NotifyType string `json:"NotifyType" xml:"NotifyType"` + Enable string `json:"Enable" xml:"Enable"` + State string `json:"State" xml:"State"` + ContactGroups string `json:"ContactGroups" xml:"ContactGroups"` + Webhook string `json:"Webhook" xml:"Webhook"` + RuleName string `json:"RuleName" xml:"RuleName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_in_list_alarm.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_in_list_alarm.go new file mode 100644 index 0000000..705d043 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_in_list_alarm.go @@ -0,0 +1,38 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AlarmInListAlarm is a nested struct in cms response +type AlarmInListAlarm struct { + Id string `json:"Id" xml:"Id"` + Name string `json:"Name" xml:"Name"` + Namespace string `json:"Namespace" xml:"Namespace"` + MetricName string `json:"MetricName" xml:"MetricName"` + Dimensions string `json:"Dimensions" xml:"Dimensions"` + Period int `json:"Period" xml:"Period"` + Statistics string `json:"Statistics" xml:"Statistics"` + ComparisonOperator string `json:"ComparisonOperator" xml:"ComparisonOperator"` + Threshold string `json:"Threshold" xml:"Threshold"` + EvaluationCount int `json:"EvaluationCount" xml:"EvaluationCount"` + StartTime int `json:"StartTime" xml:"StartTime"` + EndTime int `json:"EndTime" xml:"EndTime"` + SilenceTime int `json:"SilenceTime" xml:"SilenceTime"` + NotifyType int `json:"NotifyType" xml:"NotifyType"` + Enable bool `json:"Enable" xml:"Enable"` + State string `json:"State" xml:"State"` + ContactGroups string `json:"ContactGroups" xml:"ContactGroups"` + Webhook string `json:"Webhook" xml:"Webhook"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_list.go new file mode 100644 index 0000000..297e2d2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alarm_list.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AlarmList is a nested struct in cms response +type AlarmList struct { + Alarm []AlarmInListAlarm `json:"Alarm" xml:"Alarm"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alert_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alert_result.go new file mode 100644 index 0000000..4ae09c3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_alert_result.go @@ -0,0 +1,26 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AlertResult is a nested struct in cms response +type AlertResult struct { + Name string `json:"Name" xml:"Name"` + DisplayName string `json:"DisplayName" xml:"DisplayName"` + MetricNamespace string `json:"MetricNamespace" xml:"MetricNamespace"` + MetricName string `json:"MetricName" xml:"MetricName"` + Message string `json:"Message" xml:"Message"` + Success string `json:"Success" xml:"Success"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_category.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_category.go new file mode 100644 index 0000000..ee83eed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_category.go @@ -0,0 +1,22 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Category is a nested struct in cms response +type Category struct { + GroupId int `json:"GroupId" xml:"GroupId"` + CategoryItems CategoryItems `json:"CategoryItems" xml:"CategoryItems"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_category_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_category_item.go new file mode 100644 index 0000000..1c874e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_category_item.go @@ -0,0 +1,22 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CategoryItem is a nested struct in cms response +type CategoryItem struct { + Category string `json:"Category" xml:"Category"` + Count int `json:"Count" xml:"Count"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_category_items.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_category_items.go new file mode 100644 index 0000000..f84f0d5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_category_items.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CategoryItems is a nested struct in cms response +type CategoryItems struct { + CategoryItem []CategoryItem `json:"CategoryItem" xml:"CategoryItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_channel.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_channel.go new file mode 100644 index 0000000..aecb2b2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_channel.go @@ -0,0 +1,22 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Channel is a nested struct in cms response +type Channel struct { + Type string `json:"Type" xml:"Type"` + Value string `json:"Value" xml:"Value"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_channels.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_channels.go new file mode 100644 index 0000000..b9b4708 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_channels.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Channels is a nested struct in cms response +type Channels struct { + Channel []Channel `json:"Channel" xml:"Channel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_alii_ms.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_alii_ms.go new file mode 100644 index 0000000..4898ee1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_alii_ms.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContactALIIMs is a nested struct in cms response +type ContactALIIMs struct { + ContactALIIM []string `json:"ContactALIIM" xml:"ContactALIIM"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_group.go new file mode 100644 index 0000000..bcc1107 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_group.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContactGroup is a nested struct in cms response +type ContactGroup struct { + Name string `json:"Name" xml:"Name"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_groups_in_delete_my_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_groups_in_delete_my_groups.go new file mode 100644 index 0000000..71a0b7e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_groups_in_delete_my_groups.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContactGroupsInDeleteMyGroups is a nested struct in cms response +type ContactGroupsInDeleteMyGroups struct { + ContactGroup []ContactGroup `json:"ContactGroup" xml:"ContactGroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_groups_in_describe_alarm_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_groups_in_describe_alarm_history.go new file mode 100644 index 0000000..f09fe55 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_groups_in_describe_alarm_history.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContactGroupsInDescribeAlarmHistory is a nested struct in cms response +type ContactGroupsInDescribeAlarmHistory struct { + ContactGroup []string `json:"ContactGroup" xml:"ContactGroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_groups_in_get_my_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_groups_in_get_my_groups.go new file mode 100644 index 0000000..0fa2c7d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_groups_in_get_my_groups.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContactGroupsInGetMyGroups is a nested struct in cms response +type ContactGroupsInGetMyGroups struct { + ContactGroup []ContactGroup `json:"ContactGroup" xml:"ContactGroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_groups_in_list_contact_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_groups_in_list_contact_group.go new file mode 100644 index 0000000..fdf2a52 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_groups_in_list_contact_group.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContactGroupsInListContactGroup is a nested struct in cms response +type ContactGroupsInListContactGroup struct { + ContactGroup []string `json:"ContactGroup" xml:"ContactGroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_groups_in_list_my_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_groups_in_list_my_groups.go new file mode 100644 index 0000000..fc3f01b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_groups_in_list_my_groups.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContactGroupsInListMyGroups is a nested struct in cms response +type ContactGroupsInListMyGroups struct { + ContactGroup []ContactGroup `json:"ContactGroup" xml:"ContactGroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_mails.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_mails.go new file mode 100644 index 0000000..ae06f84 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_mails.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContactMails is a nested struct in cms response +type ContactMails struct { + ContactMail []string `json:"ContactMail" xml:"ContactMail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_parameter.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_parameter.go new file mode 100644 index 0000000..29a4d43 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_parameter.go @@ -0,0 +1,23 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContactParameter is a nested struct in cms response +type ContactParameter struct { + Level string `json:"Level" xml:"Level"` + Id string `json:"Id" xml:"Id"` + ContactGroupName string `json:"ContactGroupName" xml:"ContactGroupName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_parameter_in_put_event_targets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_parameter_in_put_event_targets.go new file mode 100644 index 0000000..81f3f99 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_parameter_in_put_event_targets.go @@ -0,0 +1,23 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContactParameterInPutEventTargets is a nested struct in cms response +type ContactParameterInPutEventTargets struct { + Id int `json:"Id" xml:"Id"` + ContactGroupName string `json:"ContactGroupName" xml:"ContactGroupName"` + Level string `json:"Level" xml:"Level"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_parameters_in_list_event_targets_by_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_parameters_in_list_event_targets_by_rule.go new file mode 100644 index 0000000..14afca8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_parameters_in_list_event_targets_by_rule.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContactParametersInListEventTargetsByRule is a nested struct in cms response +type ContactParametersInListEventTargetsByRule struct { + ContactParameter []ContactParameter `json:"ContactParameter" xml:"ContactParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_parameters_in_put_event_targets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_parameters_in_put_event_targets.go new file mode 100644 index 0000000..7758941 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_parameters_in_put_event_targets.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContactParametersInPutEventTargets is a nested struct in cms response +type ContactParametersInPutEventTargets struct { + ContactParameter []ContactParameterInPutEventTargets `json:"ContactParameter" xml:"ContactParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_smses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_smses.go new file mode 100644 index 0000000..e264da5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contact_smses.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContactSmses is a nested struct in cms response +type ContactSmses struct { + ContactSms []string `json:"ContactSms" xml:"ContactSms"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contacts_in_describe_alarm_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contacts_in_describe_alarm_history.go new file mode 100644 index 0000000..a8987d7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contacts_in_describe_alarm_history.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContactsInDescribeAlarmHistory is a nested struct in cms response +type ContactsInDescribeAlarmHistory struct { + Contact []string `json:"Contact" xml:"Contact"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contacts_in_get_contacts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contacts_in_get_contacts.go new file mode 100644 index 0000000..596a719 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_contacts_in_get_contacts.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContactsInGetContacts is a nested struct in cms response +type ContactsInGetContacts struct { + Contact []string `json:"Contact" xml:"Contact"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_create_alert_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_create_alert_results.go new file mode 100644 index 0000000..64d151c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_create_alert_results.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CreateAlertResults is a nested struct in cms response +type CreateAlertResults struct { + AlertResult []AlertResult `json:"AlertResult" xml:"AlertResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_datapoints.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_datapoints.go new file mode 100644 index 0000000..a018df4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_datapoints.go @@ -0,0 +1,23 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Datapoints is a nested struct in cms response +type Datapoints struct { + Name string `json:"Name" xml:"Name"` + Contacts ContactsInGetContacts `json:"Contacts" xml:"Contacts"` + Channels Channels `json:"Channels" xml:"Channels"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_datapoints_in_describe_alarms.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_datapoints_in_describe_alarms.go new file mode 100644 index 0000000..e275e08 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_datapoints_in_describe_alarms.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DatapointsInDescribeAlarms is a nested struct in cms response +type DatapointsInDescribeAlarms struct { + Alarm []Alarm `json:"Alarm" xml:"Alarm"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_datapoints_in_describe_alarms_for_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_datapoints_in_describe_alarms_for_resources.go new file mode 100644 index 0000000..1ee6817 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_datapoints_in_describe_alarms_for_resources.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DatapointsInDescribeAlarmsForResources is a nested struct in cms response +type DatapointsInDescribeAlarmsForResources struct { + Alarm []Alarm `json:"Alarm" xml:"Alarm"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_datapoints_in_list_active_alert_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_datapoints_in_list_active_alert_rule.go new file mode 100644 index 0000000..40c09c1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_datapoints_in_list_active_alert_rule.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DatapointsInListActiveAlertRule is a nested struct in cms response +type DatapointsInListActiveAlertRule struct { + Alarm []AlarmInListActiveAlertRule `json:"Alarm" xml:"Alarm"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_datapoints_in_list_event_rules.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_datapoints_in_list_event_rules.go new file mode 100644 index 0000000..89630f3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_datapoints_in_list_event_rules.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DatapointsInListEventRules is a nested struct in cms response +type DatapointsInListEventRules struct { + EventRule []EventRule `json:"EventRule" xml:"EventRule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_event_pattern.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_event_pattern.go new file mode 100644 index 0000000..a901f2f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_event_pattern.go @@ -0,0 +1,24 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EventPattern is a nested struct in cms response +type EventPattern struct { + Product string `json:"Product" xml:"Product"` + LevelList LevelListInDescribeEventRule `json:"LevelList" xml:"LevelList"` + StatusList StatusListInDescribeEventRule `json:"StatusList" xml:"StatusList"` + NameList NameListInDescribeEventRule `json:"NameList" xml:"NameList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_event_pattern_in_list_event_rules.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_event_pattern_in_list_event_rules.go new file mode 100644 index 0000000..52bfe61 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_event_pattern_in_list_event_rules.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EventPatternInListEventRules is a nested struct in cms response +type EventPatternInListEventRules struct { + EventPatternItem []EventPatternItem `json:"EventPatternItem" xml:"EventPatternItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_event_pattern_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_event_pattern_item.go new file mode 100644 index 0000000..0093f7e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_event_pattern_item.go @@ -0,0 +1,24 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EventPatternItem is a nested struct in cms response +type EventPatternItem struct { + Product string `json:"Product" xml:"Product"` + NameList NameListInListEventRules `json:"NameList" xml:"NameList"` + StatusList StatusListInListEventRules `json:"StatusList" xml:"StatusList"` + LevelList LevelListInListEventRules `json:"LevelList" xml:"LevelList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_event_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_event_rule.go new file mode 100644 index 0000000..db58b5e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_event_rule.go @@ -0,0 +1,26 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EventRule is a nested struct in cms response +type EventRule struct { + Name string `json:"Name" xml:"Name"` + GroupId string `json:"GroupId" xml:"GroupId"` + EventType string `json:"EventType" xml:"EventType"` + State string `json:"State" xml:"State"` + Description string `json:"Description" xml:"Description"` + EventPattern EventPatternInListEventRules `json:"EventPattern" xml:"EventPattern"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_failed_contact_parameters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_failed_contact_parameters.go new file mode 100644 index 0000000..aa04663 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_failed_contact_parameters.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailedContactParameters is a nested struct in cms response +type FailedContactParameters struct { + ContactParameter []ContactParameterInPutEventTargets `json:"ContactParameter" xml:"ContactParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_failed_fc_parameters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_failed_fc_parameters.go new file mode 100644 index 0000000..d96faac --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_failed_fc_parameters.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailedFcParameters is a nested struct in cms response +type FailedFcParameters struct { + FcParameter []FcParameterInPutEventTargets `json:"FcParameter" xml:"FcParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_failed_mns_parameters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_failed_mns_parameters.go new file mode 100644 index 0000000..7a1f994 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_failed_mns_parameters.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailedMnsParameters is a nested struct in cms response +type FailedMnsParameters struct { + MnsParameter []MnsParameterInPutEventTargets `json:"MnsParameter" xml:"MnsParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_fc_parameter.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_fc_parameter.go new file mode 100644 index 0000000..db76e3f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_fc_parameter.go @@ -0,0 +1,24 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FCParameter is a nested struct in cms response +type FCParameter struct { + Region string `json:"Region" xml:"Region"` + Id string `json:"Id" xml:"Id"` + ServiceName string `json:"ServiceName" xml:"ServiceName"` + FunctionName string `json:"FunctionName" xml:"FunctionName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_fc_parameter_in_put_event_targets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_fc_parameter_in_put_event_targets.go new file mode 100644 index 0000000..6fdf786 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_fc_parameter_in_put_event_targets.go @@ -0,0 +1,24 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FcParameterInPutEventTargets is a nested struct in cms response +type FcParameterInPutEventTargets struct { + Id int `json:"Id" xml:"Id"` + Region string `json:"Region" xml:"Region"` + ServiceName string `json:"ServiceName" xml:"ServiceName"` + FunctionName string `json:"FunctionName" xml:"FunctionName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_fc_parameters_in_list_event_targets_by_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_fc_parameters_in_list_event_targets_by_rule.go new file mode 100644 index 0000000..bb55229 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_fc_parameters_in_list_event_targets_by_rule.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FcParametersInListEventTargetsByRule is a nested struct in cms response +type FcParametersInListEventTargetsByRule struct { + FCParameter []FCParameter `json:"FCParameter" xml:"FCParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_fc_parameters_in_put_event_targets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_fc_parameters_in_put_event_targets.go new file mode 100644 index 0000000..b69f8c1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_fc_parameters_in_put_event_targets.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FcParametersInPutEventTargets is a nested struct in cms response +type FcParametersInPutEventTargets struct { + FcParameter []FcParameterInPutEventTargets `json:"FcParameter" xml:"FcParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_filter.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_filter.go new file mode 100644 index 0000000..a7adeef --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_filter.go @@ -0,0 +1,23 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Filter is a nested struct in cms response +type Filter struct { + Function string `json:"Function" xml:"Function"` + Name string `json:"Name" xml:"Name"` + Value string `json:"Value" xml:"Value"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_filters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_filters.go new file mode 100644 index 0000000..9dbe7d3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_filters.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Filters is a nested struct in cms response +type Filters struct { + Filter []Filter `json:"Filter" xml:"Filter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_group.go new file mode 100644 index 0000000..862d2cc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_group.go @@ -0,0 +1,26 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Group is a nested struct in cms response +type Group struct { + GroupId int `json:"GroupId" xml:"GroupId"` + ServiceId int `json:"ServiceId" xml:"ServiceId"` + BindUrl string `json:"BindUrl" xml:"BindUrl"` + GroupName string `json:"GroupName" xml:"GroupName"` + Type string `json:"Type" xml:"Type"` + ContactGroups ContactGroupsInGetMyGroups `json:"ContactGroups" xml:"ContactGroups"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_group_in_delete_my_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_group_in_delete_my_groups.go new file mode 100644 index 0000000..4d0a868 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_group_in_delete_my_groups.go @@ -0,0 +1,26 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// GroupInDeleteMyGroups is a nested struct in cms response +type GroupInDeleteMyGroups struct { + GroupId int `json:"GroupId" xml:"GroupId"` + GroupName string `json:"GroupName" xml:"GroupName"` + ServiceId string `json:"ServiceId" xml:"ServiceId"` + BindUrls string `json:"BindUrls" xml:"BindUrls"` + Type string `json:"Type" xml:"Type"` + ContactGroups ContactGroupsInDeleteMyGroups `json:"ContactGroups" xml:"ContactGroups"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_instance_list_in_task_config_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_instance_list_in_task_config_list.go new file mode 100644 index 0000000..5044ca5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_instance_list_in_task_config_list.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceListInTaskConfigList is a nested struct in cms response +type InstanceListInTaskConfigList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_instance_list_in_task_config_unhealthy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_instance_list_in_task_config_unhealthy.go new file mode 100644 index 0000000..6b858a6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_instance_list_in_task_config_unhealthy.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceListInTaskConfigUnhealthy is a nested struct in cms response +type InstanceListInTaskConfigUnhealthy struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_level_list_in_describe_event_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_level_list_in_describe_event_rule.go new file mode 100644 index 0000000..4793c2b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_level_list_in_describe_event_rule.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LevelListInDescribeEventRule is a nested struct in cms response +type LevelListInDescribeEventRule struct { + LevelList []string `json:"LevelList" xml:"LevelList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_level_list_in_list_event_rules.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_level_list_in_list_event_rules.go new file mode 100644 index 0000000..f88b1f8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_level_list_in_list_event_rules.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LevelListInListEventRules is a nested struct in cms response +type LevelListInListEventRules struct { + LevelList []string `json:"LevelList" xml:"LevelList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_mns_parameter.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_mns_parameter.go new file mode 100644 index 0000000..9634a9b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_mns_parameter.go @@ -0,0 +1,23 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MnsParameter is a nested struct in cms response +type MnsParameter struct { + Region string `json:"Region" xml:"Region"` + Queue string `json:"Queue" xml:"Queue"` + Id string `json:"Id" xml:"Id"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_mns_parameter_in_put_event_targets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_mns_parameter_in_put_event_targets.go new file mode 100644 index 0000000..67beef4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_mns_parameter_in_put_event_targets.go @@ -0,0 +1,23 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MnsParameterInPutEventTargets is a nested struct in cms response +type MnsParameterInPutEventTargets struct { + Id int `json:"Id" xml:"Id"` + Region string `json:"Region" xml:"Region"` + Queue string `json:"Queue" xml:"Queue"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_mns_parameters_in_list_event_targets_by_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_mns_parameters_in_list_event_targets_by_rule.go new file mode 100644 index 0000000..d0bac19 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_mns_parameters_in_list_event_targets_by_rule.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MnsParametersInListEventTargetsByRule is a nested struct in cms response +type MnsParametersInListEventTargetsByRule struct { + MnsParameter []MnsParameter `json:"MnsParameter" xml:"MnsParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_mns_parameters_in_put_event_targets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_mns_parameters_in_put_event_targets.go new file mode 100644 index 0000000..5bb2fdf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_mns_parameters_in_put_event_targets.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MnsParametersInPutEventTargets is a nested struct in cms response +type MnsParametersInPutEventTargets struct { + MnsParameter []MnsParameterInPutEventTargets `json:"MnsParameter" xml:"MnsParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_name_list_in_describe_event_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_name_list_in_describe_event_rule.go new file mode 100644 index 0000000..e7f377b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_name_list_in_describe_event_rule.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NameListInDescribeEventRule is a nested struct in cms response +type NameListInDescribeEventRule struct { + NameList []string `json:"NameList" xml:"NameList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_name_list_in_list_event_rules.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_name_list_in_list_event_rules.go new file mode 100644 index 0000000..9c11368 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_name_list_in_list_event_rules.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NameListInListEventRules is a nested struct in cms response +type NameListInListEventRules struct { + NameList []string `json:"NameList" xml:"NameList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node.go new file mode 100644 index 0000000..71a948c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node.go @@ -0,0 +1,34 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Node is a nested struct in cms response +type Node struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + SerialNumber string `json:"SerialNumber" xml:"SerialNumber"` + HostName string `json:"HostName" xml:"HostName"` + AliUid int `json:"AliUid" xml:"AliUid"` + OperatingSystem string `json:"OperatingSystem" xml:"OperatingSystem"` + IpGroup string `json:"IpGroup" xml:"IpGroup"` + Region string `json:"Region" xml:"Region"` + TianjimonVersion string `json:"TianjimonVersion" xml:"TianjimonVersion"` + EipAddress string `json:"EipAddress" xml:"EipAddress"` + EipId string `json:"EipId" xml:"EipId"` + AliyunHost bool `json:"AliyunHost" xml:"AliyunHost"` + NatIp string `json:"NatIp" xml:"NatIp"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + InstanceTypeFamily string `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_process.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_process.go new file mode 100644 index 0000000..95faaba --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_process.go @@ -0,0 +1,26 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NodeProcess is a nested struct in cms response +type NodeProcess struct { + Id int `json:"Id" xml:"Id"` + Name string `json:"Name" xml:"Name"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + ProcessName string `json:"ProcessName" xml:"ProcessName"` + ProcessUser string `json:"ProcessUser" xml:"ProcessUser"` + Command string `json:"Command" xml:"Command"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_processes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_processes.go new file mode 100644 index 0000000..ccd09ca --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_processes.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NodeProcesses is a nested struct in cms response +type NodeProcesses struct { + NodeProcess []NodeProcess `json:"NodeProcess" xml:"NodeProcess"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_status.go new file mode 100644 index 0000000..dab3ab6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_status.go @@ -0,0 +1,23 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NodeStatus is a nested struct in cms response +type NodeStatus struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + AutoInstall bool `json:"AutoInstall" xml:"AutoInstall"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_status_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_status_list.go new file mode 100644 index 0000000..73d7077 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_status_list.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NodeStatusList is a nested struct in cms response +type NodeStatusList struct { + NodeStatus []NodeStatus `json:"NodeStatus" xml:"NodeStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_task_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_task_config.go new file mode 100644 index 0000000..47af3df --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_task_config.go @@ -0,0 +1,30 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NodeTaskConfig is a nested struct in cms response +type NodeTaskConfig struct { + Id int `json:"Id" xml:"Id"` + TaskName string `json:"TaskName" xml:"TaskName"` + TaskType string `json:"TaskType" xml:"TaskType"` + TaskScope string `json:"TaskScope" xml:"TaskScope"` + Disabled bool `json:"Disabled" xml:"Disabled"` + GroupId int `json:"GroupId" xml:"GroupId"` + GroupName string `json:"GroupName" xml:"GroupName"` + JsonData string `json:"JsonData" xml:"JsonData"` + AlertConfig string `json:"AlertConfig" xml:"AlertConfig"` + InstanceList InstanceListInTaskConfigList `json:"InstanceList" xml:"InstanceList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_task_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_task_instance.go new file mode 100644 index 0000000..f1354ad --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_node_task_instance.go @@ -0,0 +1,22 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NodeTaskInstance is a nested struct in cms response +type NodeTaskInstance struct { + TaskId int `json:"TaskId" xml:"TaskId"` + InstanceList InstanceListInTaskConfigUnhealthy `json:"InstanceList" xml:"InstanceList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_nodes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_nodes.go new file mode 100644 index 0000000..a2e461c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_nodes.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Nodes is a nested struct in cms response +type Nodes struct { + Node []Node `json:"Node" xml:"Node"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_notify_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_notify_policy.go new file mode 100644 index 0000000..10771e8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_notify_policy.go @@ -0,0 +1,26 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NotifyPolicy is a nested struct in cms response +type NotifyPolicy struct { + AlertName string `json:"AlertName" xml:"AlertName"` + Dimensions string `json:"Dimensions" xml:"Dimensions"` + Type string `json:"Type" xml:"Type"` + Id string `json:"Id" xml:"Id"` + StartTime int `json:"StartTime" xml:"StartTime"` + EndTime int `json:"EndTime" xml:"EndTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_notify_policy_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_notify_policy_list.go new file mode 100644 index 0000000..cb0d0e2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_notify_policy_list.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NotifyPolicyList is a nested struct in cms response +type NotifyPolicyList struct { + NotifyPolicy []NotifyPolicy `json:"NotifyPolicy" xml:"NotifyPolicy"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_region.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_region.go new file mode 100644 index 0000000..36bdd6f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_region.go @@ -0,0 +1,22 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 cms response +type Region struct { + RegionId string `json:"RegionId" xml:"RegionId"` + AvailabilityZone string `json:"AvailabilityZone" xml:"AvailabilityZone"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resource.go new file mode 100644 index 0000000..c078a23 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resource.go @@ -0,0 +1,42 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Resource is a nested struct in cms response +type Resource struct { + Category string `json:"Category" xml:"Category"` + Desc string `json:"Desc" xml:"Desc"` + BindUrl string `json:"BindUrl" xml:"BindUrl"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + Dimension string `json:"Dimension" xml:"Dimension"` + GroupName string `json:"GroupName" xml:"GroupName"` + Id int `json:"Id" xml:"Id"` + GmtCreate int `json:"GmtCreate" xml:"GmtCreate"` + BindUrls string `json:"BindUrls" xml:"BindUrls"` + ServiceId string `json:"ServiceId" xml:"ServiceId"` + RegionId string `json:"RegionId" xml:"RegionId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + GroupId int `json:"GroupId" xml:"GroupId"` + GmtModified int `json:"GmtModified" xml:"GmtModified"` + AliUid int `json:"AliUid" xml:"AliUid"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + Type string `json:"Type" xml:"Type"` + Vpc Vpc `json:"Vpc" xml:"Vpc"` + Region Region `json:"Region" xml:"Region"` + CreateAlertResults CreateAlertResults `json:"CreateAlertResults" xml:"CreateAlertResults"` + Tags Tags `json:"Tags" xml:"Tags"` + ContactGroups ContactGroupsInListMyGroups `json:"ContactGroups" xml:"ContactGroups"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resource_in_list_group_dynamic_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resource_in_list_group_dynamic_rule.go new file mode 100644 index 0000000..b6abfa2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resource_in_list_group_dynamic_rule.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResourceInListGroupDynamicRule is a nested struct in cms response +type ResourceInListGroupDynamicRule struct { + ResourceItem []ResourceItem `json:"ResourceItem" xml:"ResourceItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resource_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resource_item.go new file mode 100644 index 0000000..9beb6d4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resource_item.go @@ -0,0 +1,24 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResourceItem is a nested struct in cms response +type ResourceItem struct { + GroupId int `json:"GroupId" xml:"GroupId"` + Category string `json:"Category" xml:"Category"` + FilterRelation string `json:"FilterRelation" xml:"FilterRelation"` + Filters Filters `json:"Filters" xml:"Filters"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resources_in_list_my_group_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resources_in_list_my_group_instances.go new file mode 100644 index 0000000..5080198 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resources_in_list_my_group_instances.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResourcesInListMyGroupInstances is a nested struct in cms response +type ResourcesInListMyGroupInstances struct { + Resource []Resource `json:"Resource" xml:"Resource"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resources_in_list_my_group_instances_details.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resources_in_list_my_group_instances_details.go new file mode 100644 index 0000000..778e066 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resources_in_list_my_group_instances_details.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResourcesInListMyGroupInstancesDetails is a nested struct in cms response +type ResourcesInListMyGroupInstancesDetails struct { + Resource []Resource `json:"Resource" xml:"Resource"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resources_in_list_my_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resources_in_list_my_groups.go new file mode 100644 index 0000000..d946c3a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_resources_in_list_my_groups.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResourcesInListMyGroups is a nested struct in cms response +type ResourcesInListMyGroups struct { + Resource []Resource `json:"Resource" xml:"Resource"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_result.go new file mode 100644 index 0000000..583ff1f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_result.go @@ -0,0 +1,32 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Result is a nested struct in cms response +type Result struct { + Name string `json:"Name" xml:"Name"` + StartTime int `json:"StartTime" xml:"StartTime"` + State string `json:"State" xml:"State"` + EventType string `json:"EventType" xml:"EventType"` + Dimensions string `json:"Dimensions" xml:"Dimensions"` + GroupId string `json:"GroupId" xml:"GroupId"` + Id string `json:"Id" xml:"Id"` + Description string `json:"Description" xml:"Description"` + EndTime int `json:"EndTime" xml:"EndTime"` + AlertName string `json:"AlertName" xml:"AlertName"` + Type string `json:"Type" xml:"Type"` + EventPattern EventPattern `json:"EventPattern" xml:"EventPattern"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_status_list_in_describe_event_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_status_list_in_describe_event_rule.go new file mode 100644 index 0000000..be8403f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_status_list_in_describe_event_rule.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StatusListInDescribeEventRule is a nested struct in cms response +type StatusListInDescribeEventRule struct { + StatusList []string `json:"StatusList" xml:"StatusList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_status_list_in_list_event_rules.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_status_list_in_list_event_rules.go new file mode 100644 index 0000000..d066092 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_status_list_in_list_event_rules.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StatusListInListEventRules is a nested struct in cms response +type StatusListInListEventRules struct { + StatusList []string `json:"StatusList" xml:"StatusList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_tag.go new file mode 100644 index 0000000..c31fea1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_tag.go @@ -0,0 +1,22 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 cms response +type Tag 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/cms/struct_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_tags.go new file mode 100644 index 0000000..536c365 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_tags.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 cms response +type Tags struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_task_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_task_list.go new file mode 100644 index 0000000..1debe5b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_task_list.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TaskList is a nested struct in cms response +type TaskList struct { + NodeTaskConfig []NodeTaskConfig `json:"NodeTaskConfig" xml:"NodeTaskConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_unhealthy_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_unhealthy_list.go new file mode 100644 index 0000000..bed957f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_unhealthy_list.go @@ -0,0 +1,21 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UnhealthyList is a nested struct in cms response +type UnhealthyList struct { + NodeTaskInstance []NodeTaskInstance `json:"NodeTaskInstance" xml:"NodeTaskInstance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_vpc.go new file mode 100644 index 0000000..e83f3a8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/struct_vpc.go @@ -0,0 +1,22 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 cms response +type Vpc struct { + VpcInstanceId string `json:"VpcInstanceId" xml:"VpcInstanceId"` + VswitchInstanceId string `json:"VswitchInstanceId" xml:"VswitchInstanceId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_create.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_create.go new file mode 100644 index 0000000..03f8a36 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_create.go @@ -0,0 +1,114 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TaskConfigCreate invokes the cms.TaskConfigCreate API synchronously +// api document: https://help.aliyun.com/api/cms/taskconfigcreate.html +func (client *Client) TaskConfigCreate(request *TaskConfigCreateRequest) (response *TaskConfigCreateResponse, err error) { + response = CreateTaskConfigCreateResponse() + err = client.DoAction(request, response) + return +} + +// TaskConfigCreateWithChan invokes the cms.TaskConfigCreate API asynchronously +// api document: https://help.aliyun.com/api/cms/taskconfigcreate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TaskConfigCreateWithChan(request *TaskConfigCreateRequest) (<-chan *TaskConfigCreateResponse, <-chan error) { + responseChan := make(chan *TaskConfigCreateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TaskConfigCreate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TaskConfigCreateWithCallback invokes the cms.TaskConfigCreate API asynchronously +// api document: https://help.aliyun.com/api/cms/taskconfigcreate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TaskConfigCreateWithCallback(request *TaskConfigCreateRequest, callback func(response *TaskConfigCreateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TaskConfigCreateResponse + var err error + defer close(result) + response, err = client.TaskConfigCreate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TaskConfigCreateRequest is the request struct for api TaskConfigCreate +type TaskConfigCreateRequest struct { + *requests.RpcRequest + InstanceList *[]string `position:"Query" name:"InstanceList" type:"Repeated"` + JsonData string `position:"Query" name:"JsonData"` + TaskType string `position:"Query" name:"TaskType"` + TaskScope string `position:"Query" name:"TaskScope"` + AlertConfig string `position:"Query" name:"AlertConfig"` + GroupId requests.Integer `position:"Query" name:"GroupId"` + TaskName string `position:"Query" name:"TaskName"` + GroupName string `position:"Query" name:"GroupName"` +} + +// TaskConfigCreateResponse is the response struct for api TaskConfigCreate +type TaskConfigCreateResponse struct { + *responses.BaseResponse + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Success bool `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` + TaskId int `json:"TaskId" xml:"TaskId"` +} + +// CreateTaskConfigCreateRequest creates a request to invoke TaskConfigCreate API +func CreateTaskConfigCreateRequest() (request *TaskConfigCreateRequest) { + request = &TaskConfigCreateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "TaskConfigCreate", "cms", "openAPI") + return +} + +// CreateTaskConfigCreateResponse creates a response to parse from TaskConfigCreate response +func CreateTaskConfigCreateResponse() (response *TaskConfigCreateResponse) { + response = &TaskConfigCreateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_delete.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_delete.go new file mode 100644 index 0000000..e8856cf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_delete.go @@ -0,0 +1,106 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TaskConfigDelete invokes the cms.TaskConfigDelete API synchronously +// api document: https://help.aliyun.com/api/cms/taskconfigdelete.html +func (client *Client) TaskConfigDelete(request *TaskConfigDeleteRequest) (response *TaskConfigDeleteResponse, err error) { + response = CreateTaskConfigDeleteResponse() + err = client.DoAction(request, response) + return +} + +// TaskConfigDeleteWithChan invokes the cms.TaskConfigDelete API asynchronously +// api document: https://help.aliyun.com/api/cms/taskconfigdelete.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TaskConfigDeleteWithChan(request *TaskConfigDeleteRequest) (<-chan *TaskConfigDeleteResponse, <-chan error) { + responseChan := make(chan *TaskConfigDeleteResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TaskConfigDelete(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TaskConfigDeleteWithCallback invokes the cms.TaskConfigDelete API asynchronously +// api document: https://help.aliyun.com/api/cms/taskconfigdelete.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TaskConfigDeleteWithCallback(request *TaskConfigDeleteRequest, callback func(response *TaskConfigDeleteResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TaskConfigDeleteResponse + var err error + defer close(result) + response, err = client.TaskConfigDelete(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TaskConfigDeleteRequest is the request struct for api TaskConfigDelete +type TaskConfigDeleteRequest struct { + *requests.RpcRequest + IdList *[]string `position:"Query" name:"IdList" type:"Repeated"` +} + +// TaskConfigDeleteResponse is the response struct for api TaskConfigDelete +type TaskConfigDeleteResponse struct { + *responses.BaseResponse + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Success bool `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateTaskConfigDeleteRequest creates a request to invoke TaskConfigDelete API +func CreateTaskConfigDeleteRequest() (request *TaskConfigDeleteRequest) { + request = &TaskConfigDeleteRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "TaskConfigDelete", "cms", "openAPI") + return +} + +// CreateTaskConfigDeleteResponse creates a response to parse from TaskConfigDelete response +func CreateTaskConfigDeleteResponse() (response *TaskConfigDeleteResponse) { + response = &TaskConfigDeleteResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_enable.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_enable.go new file mode 100644 index 0000000..a224bd6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_enable.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TaskConfigEnable invokes the cms.TaskConfigEnable API synchronously +// api document: https://help.aliyun.com/api/cms/taskconfigenable.html +func (client *Client) TaskConfigEnable(request *TaskConfigEnableRequest) (response *TaskConfigEnableResponse, err error) { + response = CreateTaskConfigEnableResponse() + err = client.DoAction(request, response) + return +} + +// TaskConfigEnableWithChan invokes the cms.TaskConfigEnable API asynchronously +// api document: https://help.aliyun.com/api/cms/taskconfigenable.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TaskConfigEnableWithChan(request *TaskConfigEnableRequest) (<-chan *TaskConfigEnableResponse, <-chan error) { + responseChan := make(chan *TaskConfigEnableResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TaskConfigEnable(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TaskConfigEnableWithCallback invokes the cms.TaskConfigEnable API asynchronously +// api document: https://help.aliyun.com/api/cms/taskconfigenable.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TaskConfigEnableWithCallback(request *TaskConfigEnableRequest, callback func(response *TaskConfigEnableResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TaskConfigEnableResponse + var err error + defer close(result) + response, err = client.TaskConfigEnable(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TaskConfigEnableRequest is the request struct for api TaskConfigEnable +type TaskConfigEnableRequest struct { + *requests.RpcRequest + IdList *[]string `position:"Query" name:"IdList" type:"Repeated"` + Enabled requests.Boolean `position:"Query" name:"Enabled"` +} + +// TaskConfigEnableResponse is the response struct for api TaskConfigEnable +type TaskConfigEnableResponse struct { + *responses.BaseResponse + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Success bool `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateTaskConfigEnableRequest creates a request to invoke TaskConfigEnable API +func CreateTaskConfigEnableRequest() (request *TaskConfigEnableRequest) { + request = &TaskConfigEnableRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "TaskConfigEnable", "cms", "openAPI") + return +} + +// CreateTaskConfigEnableResponse creates a response to parse from TaskConfigEnable response +func CreateTaskConfigEnableResponse() (response *TaskConfigEnableResponse) { + response = &TaskConfigEnableResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_list.go new file mode 100644 index 0000000..d7c3b0a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_list.go @@ -0,0 +1,115 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TaskConfigList invokes the cms.TaskConfigList API synchronously +// api document: https://help.aliyun.com/api/cms/taskconfiglist.html +func (client *Client) TaskConfigList(request *TaskConfigListRequest) (response *TaskConfigListResponse, err error) { + response = CreateTaskConfigListResponse() + err = client.DoAction(request, response) + return +} + +// TaskConfigListWithChan invokes the cms.TaskConfigList API asynchronously +// api document: https://help.aliyun.com/api/cms/taskconfiglist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TaskConfigListWithChan(request *TaskConfigListRequest) (<-chan *TaskConfigListResponse, <-chan error) { + responseChan := make(chan *TaskConfigListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TaskConfigList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TaskConfigListWithCallback invokes the cms.TaskConfigList API asynchronously +// api document: https://help.aliyun.com/api/cms/taskconfiglist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TaskConfigListWithCallback(request *TaskConfigListRequest, callback func(response *TaskConfigListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TaskConfigListResponse + var err error + defer close(result) + response, err = client.TaskConfigList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TaskConfigListRequest is the request struct for api TaskConfigList +type TaskConfigListRequest struct { + *requests.RpcRequest + GroupId requests.Integer `position:"Query" name:"GroupId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + TaskName string `position:"Query" name:"TaskName"` + Id requests.Integer `position:"Query" name:"Id"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// TaskConfigListResponse is the response struct for api TaskConfigList +type TaskConfigListResponse struct { + *responses.BaseResponse + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Success bool `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageTotal int `json:"PageTotal" xml:"PageTotal"` + Total int `json:"Total" xml:"Total"` + TaskList TaskList `json:"TaskList" xml:"TaskList"` +} + +// CreateTaskConfigListRequest creates a request to invoke TaskConfigList API +func CreateTaskConfigListRequest() (request *TaskConfigListRequest) { + request = &TaskConfigListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "TaskConfigList", "cms", "openAPI") + return +} + +// CreateTaskConfigListResponse creates a response to parse from TaskConfigList response +func CreateTaskConfigListResponse() (response *TaskConfigListResponse) { + response = &TaskConfigListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_modify.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_modify.go new file mode 100644 index 0000000..4734afb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_modify.go @@ -0,0 +1,114 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TaskConfigModify invokes the cms.TaskConfigModify API synchronously +// api document: https://help.aliyun.com/api/cms/taskconfigmodify.html +func (client *Client) TaskConfigModify(request *TaskConfigModifyRequest) (response *TaskConfigModifyResponse, err error) { + response = CreateTaskConfigModifyResponse() + err = client.DoAction(request, response) + return +} + +// TaskConfigModifyWithChan invokes the cms.TaskConfigModify API asynchronously +// api document: https://help.aliyun.com/api/cms/taskconfigmodify.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TaskConfigModifyWithChan(request *TaskConfigModifyRequest) (<-chan *TaskConfigModifyResponse, <-chan error) { + responseChan := make(chan *TaskConfigModifyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TaskConfigModify(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TaskConfigModifyWithCallback invokes the cms.TaskConfigModify API asynchronously +// api document: https://help.aliyun.com/api/cms/taskconfigmodify.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TaskConfigModifyWithCallback(request *TaskConfigModifyRequest, callback func(response *TaskConfigModifyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TaskConfigModifyResponse + var err error + defer close(result) + response, err = client.TaskConfigModify(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TaskConfigModifyRequest is the request struct for api TaskConfigModify +type TaskConfigModifyRequest struct { + *requests.RpcRequest + InstanceList *[]string `position:"Query" name:"InstanceList" type:"Repeated"` + JsonData string `position:"Query" name:"JsonData"` + TaskType string `position:"Query" name:"TaskType"` + TaskScope string `position:"Query" name:"TaskScope"` + AlertConfig string `position:"Query" name:"AlertConfig"` + GroupId requests.Integer `position:"Query" name:"GroupId"` + TaskName string `position:"Query" name:"TaskName"` + Id requests.Integer `position:"Query" name:"Id"` + GroupName string `position:"Query" name:"GroupName"` +} + +// TaskConfigModifyResponse is the response struct for api TaskConfigModify +type TaskConfigModifyResponse struct { + *responses.BaseResponse + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Success bool `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateTaskConfigModifyRequest creates a request to invoke TaskConfigModify API +func CreateTaskConfigModifyRequest() (request *TaskConfigModifyRequest) { + request = &TaskConfigModifyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "TaskConfigModify", "cms", "openAPI") + return +} + +// CreateTaskConfigModifyResponse creates a response to parse from TaskConfigModify response +func CreateTaskConfigModifyResponse() (response *TaskConfigModifyResponse) { + response = &TaskConfigModifyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_unhealthy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_unhealthy.go new file mode 100644 index 0000000..a9b7963 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/task_config_unhealthy.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TaskConfigUnhealthy invokes the cms.TaskConfigUnhealthy API synchronously +// api document: https://help.aliyun.com/api/cms/taskconfigunhealthy.html +func (client *Client) TaskConfigUnhealthy(request *TaskConfigUnhealthyRequest) (response *TaskConfigUnhealthyResponse, err error) { + response = CreateTaskConfigUnhealthyResponse() + err = client.DoAction(request, response) + return +} + +// TaskConfigUnhealthyWithChan invokes the cms.TaskConfigUnhealthy API asynchronously +// api document: https://help.aliyun.com/api/cms/taskconfigunhealthy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TaskConfigUnhealthyWithChan(request *TaskConfigUnhealthyRequest) (<-chan *TaskConfigUnhealthyResponse, <-chan error) { + responseChan := make(chan *TaskConfigUnhealthyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TaskConfigUnhealthy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TaskConfigUnhealthyWithCallback invokes the cms.TaskConfigUnhealthy API asynchronously +// api document: https://help.aliyun.com/api/cms/taskconfigunhealthy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TaskConfigUnhealthyWithCallback(request *TaskConfigUnhealthyRequest, callback func(response *TaskConfigUnhealthyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TaskConfigUnhealthyResponse + var err error + defer close(result) + response, err = client.TaskConfigUnhealthy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TaskConfigUnhealthyRequest is the request struct for api TaskConfigUnhealthy +type TaskConfigUnhealthyRequest struct { + *requests.RpcRequest + TaskIdList *[]string `position:"Query" name:"TaskIdList" type:"Repeated"` +} + +// TaskConfigUnhealthyResponse is the response struct for api TaskConfigUnhealthy +type TaskConfigUnhealthyResponse struct { + *responses.BaseResponse + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Success bool `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` + UnhealthyList UnhealthyList `json:"UnhealthyList" xml:"UnhealthyList"` +} + +// CreateTaskConfigUnhealthyRequest creates a request to invoke TaskConfigUnhealthy API +func CreateTaskConfigUnhealthyRequest() (request *TaskConfigUnhealthyRequest) { + request = &TaskConfigUnhealthyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "TaskConfigUnhealthy", "cms", "openAPI") + return +} + +// CreateTaskConfigUnhealthyResponse creates a response to parse from TaskConfigUnhealthy response +func CreateTaskConfigUnhealthyResponse() (response *TaskConfigUnhealthyResponse) { + response = &TaskConfigUnhealthyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/update_alarm.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/update_alarm.go new file mode 100644 index 0000000..8909f12 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/update_alarm.go @@ -0,0 +1,118 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateAlarm invokes the cms.UpdateAlarm API synchronously +// api document: https://help.aliyun.com/api/cms/updatealarm.html +func (client *Client) UpdateAlarm(request *UpdateAlarmRequest) (response *UpdateAlarmResponse, err error) { + response = CreateUpdateAlarmResponse() + err = client.DoAction(request, response) + return +} + +// UpdateAlarmWithChan invokes the cms.UpdateAlarm API asynchronously +// api document: https://help.aliyun.com/api/cms/updatealarm.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateAlarmWithChan(request *UpdateAlarmRequest) (<-chan *UpdateAlarmResponse, <-chan error) { + responseChan := make(chan *UpdateAlarmResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateAlarm(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateAlarmWithCallback invokes the cms.UpdateAlarm API asynchronously +// api document: https://help.aliyun.com/api/cms/updatealarm.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateAlarmWithCallback(request *UpdateAlarmRequest, callback func(response *UpdateAlarmResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateAlarmResponse + var err error + defer close(result) + response, err = client.UpdateAlarm(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateAlarmRequest is the request struct for api UpdateAlarm +type UpdateAlarmRequest struct { + *requests.RpcRequest + Period requests.Integer `position:"Query" name:"Period"` + Webhook string `position:"Query" name:"Webhook"` + ContactGroups string `position:"Query" name:"ContactGroups"` + EndTime requests.Integer `position:"Query" name:"EndTime"` + Threshold string `position:"Query" name:"Threshold"` + StartTime requests.Integer `position:"Query" name:"StartTime"` + Name string `position:"Query" name:"Name"` + EvaluationCount requests.Integer `position:"Query" name:"EvaluationCount"` + SilenceTime requests.Integer `position:"Query" name:"SilenceTime"` + Id string `position:"Query" name:"Id"` + NotifyType requests.Integer `position:"Query" name:"NotifyType"` + ComparisonOperator string `position:"Query" name:"ComparisonOperator"` + Statistics string `position:"Query" name:"Statistics"` +} + +// UpdateAlarmResponse is the response struct for api UpdateAlarm +type UpdateAlarmResponse struct { + *responses.BaseResponse + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateAlarmRequest creates a request to invoke UpdateAlarm API +func CreateUpdateAlarmRequest() (request *UpdateAlarmRequest) { + request = &UpdateAlarmRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "UpdateAlarm", "cms", "openAPI") + return +} + +// CreateUpdateAlarmResponse creates a response to parse from UpdateAlarm response +func CreateUpdateAlarmResponse() (response *UpdateAlarmResponse) { + response = &UpdateAlarmResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/update_my_group_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/update_my_group_instances.go new file mode 100644 index 0000000..d3fcd90 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/update_my_group_instances.go @@ -0,0 +1,107 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateMyGroupInstances invokes the cms.UpdateMyGroupInstances API synchronously +// api document: https://help.aliyun.com/api/cms/updatemygroupinstances.html +func (client *Client) UpdateMyGroupInstances(request *UpdateMyGroupInstancesRequest) (response *UpdateMyGroupInstancesResponse, err error) { + response = CreateUpdateMyGroupInstancesResponse() + err = client.DoAction(request, response) + return +} + +// UpdateMyGroupInstancesWithChan invokes the cms.UpdateMyGroupInstances API asynchronously +// api document: https://help.aliyun.com/api/cms/updatemygroupinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateMyGroupInstancesWithChan(request *UpdateMyGroupInstancesRequest) (<-chan *UpdateMyGroupInstancesResponse, <-chan error) { + responseChan := make(chan *UpdateMyGroupInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateMyGroupInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateMyGroupInstancesWithCallback invokes the cms.UpdateMyGroupInstances API asynchronously +// api document: https://help.aliyun.com/api/cms/updatemygroupinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateMyGroupInstancesWithCallback(request *UpdateMyGroupInstancesRequest, callback func(response *UpdateMyGroupInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateMyGroupInstancesResponse + var err error + defer close(result) + response, err = client.UpdateMyGroupInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateMyGroupInstancesRequest is the request struct for api UpdateMyGroupInstances +type UpdateMyGroupInstancesRequest struct { + *requests.RpcRequest + Instances string `position:"Query" name:"Instances"` + GroupId requests.Integer `position:"Query" name:"GroupId"` +} + +// UpdateMyGroupInstancesResponse is the response struct for api UpdateMyGroupInstances +type UpdateMyGroupInstancesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` +} + +// CreateUpdateMyGroupInstancesRequest creates a request to invoke UpdateMyGroupInstances API +func CreateUpdateMyGroupInstancesRequest() (request *UpdateMyGroupInstancesRequest) { + request = &UpdateMyGroupInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "UpdateMyGroupInstances", "cms", "openAPI") + return +} + +// CreateUpdateMyGroupInstancesResponse creates a response to parse from UpdateMyGroupInstances response +func CreateUpdateMyGroupInstancesResponse() (response *UpdateMyGroupInstancesResponse) { + response = &UpdateMyGroupInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/update_my_group_members.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/update_my_group_members.go new file mode 100644 index 0000000..364024d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/update_my_group_members.go @@ -0,0 +1,108 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateMyGroupMembers invokes the cms.UpdateMyGroupMembers API synchronously +// api document: https://help.aliyun.com/api/cms/updatemygroupmembers.html +func (client *Client) UpdateMyGroupMembers(request *UpdateMyGroupMembersRequest) (response *UpdateMyGroupMembersResponse, err error) { + response = CreateUpdateMyGroupMembersResponse() + err = client.DoAction(request, response) + return +} + +// UpdateMyGroupMembersWithChan invokes the cms.UpdateMyGroupMembers API asynchronously +// api document: https://help.aliyun.com/api/cms/updatemygroupmembers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateMyGroupMembersWithChan(request *UpdateMyGroupMembersRequest) (<-chan *UpdateMyGroupMembersResponse, <-chan error) { + responseChan := make(chan *UpdateMyGroupMembersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateMyGroupMembers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateMyGroupMembersWithCallback invokes the cms.UpdateMyGroupMembers API asynchronously +// api document: https://help.aliyun.com/api/cms/updatemygroupmembers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateMyGroupMembersWithCallback(request *UpdateMyGroupMembersRequest, callback func(response *UpdateMyGroupMembersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateMyGroupMembersResponse + var err error + defer close(result) + response, err = client.UpdateMyGroupMembers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateMyGroupMembersRequest is the request struct for api UpdateMyGroupMembers +type UpdateMyGroupMembersRequest struct { + *requests.RpcRequest + Readers string `position:"Query" name:"Readers"` + GroupId requests.Integer `position:"Query" name:"GroupId"` + Masters string `position:"Query" name:"Masters"` +} + +// UpdateMyGroupMembersResponse is the response struct for api UpdateMyGroupMembers +type UpdateMyGroupMembersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` +} + +// CreateUpdateMyGroupMembersRequest creates a request to invoke UpdateMyGroupMembers API +func CreateUpdateMyGroupMembersRequest() (request *UpdateMyGroupMembersRequest) { + request = &UpdateMyGroupMembersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "UpdateMyGroupMembers", "cms", "openAPI") + return +} + +// CreateUpdateMyGroupMembersResponse creates a response to parse from UpdateMyGroupMembers response +func CreateUpdateMyGroupMembersResponse() (response *UpdateMyGroupMembersResponse) { + response = &UpdateMyGroupMembersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/update_my_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/update_my_groups.go new file mode 100644 index 0000000..03fdc08 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cms/update_my_groups.go @@ -0,0 +1,111 @@ +package cms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateMyGroups invokes the cms.UpdateMyGroups API synchronously +// api document: https://help.aliyun.com/api/cms/updatemygroups.html +func (client *Client) UpdateMyGroups(request *UpdateMyGroupsRequest) (response *UpdateMyGroupsResponse, err error) { + response = CreateUpdateMyGroupsResponse() + err = client.DoAction(request, response) + return +} + +// UpdateMyGroupsWithChan invokes the cms.UpdateMyGroups API asynchronously +// api document: https://help.aliyun.com/api/cms/updatemygroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateMyGroupsWithChan(request *UpdateMyGroupsRequest) (<-chan *UpdateMyGroupsResponse, <-chan error) { + responseChan := make(chan *UpdateMyGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateMyGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateMyGroupsWithCallback invokes the cms.UpdateMyGroups API asynchronously +// api document: https://help.aliyun.com/api/cms/updatemygroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateMyGroupsWithCallback(request *UpdateMyGroupsRequest, callback func(response *UpdateMyGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateMyGroupsResponse + var err error + defer close(result) + response, err = client.UpdateMyGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateMyGroupsRequest is the request struct for api UpdateMyGroups +type UpdateMyGroupsRequest struct { + *requests.RpcRequest + ContactGroups string `position:"Query" name:"ContactGroups"` + GroupId string `position:"Query" name:"GroupId"` + ServiceId requests.Integer `position:"Query" name:"ServiceId"` + Type string `position:"Query" name:"Type"` + GroupName string `position:"Query" name:"GroupName"` + BindUrls string `position:"Query" name:"BindUrls"` +} + +// UpdateMyGroupsResponse is the response struct for api UpdateMyGroups +type UpdateMyGroupsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + ErrorCode int `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` +} + +// CreateUpdateMyGroupsRequest creates a request to invoke UpdateMyGroups API +func CreateUpdateMyGroupsRequest() (request *UpdateMyGroupsRequest) { + request = &UpdateMyGroupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Cms", "2018-03-08", "UpdateMyGroups", "cms", "openAPI") + return +} + +// CreateUpdateMyGroupsResponse creates a response to parse from UpdateMyGroups response +func CreateUpdateMyGroupsResponse() (response *UpdateMyGroupsResponse) { + response = &UpdateMyGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/add_agility_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/add_agility_cluster.go new file mode 100644 index 0000000..db68784 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/add_agility_cluster.go @@ -0,0 +1,102 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddAgilityCluster invokes the cs.AddAgilityCluster API synchronously +// api document: https://help.aliyun.com/api/cs/addagilitycluster.html +func (client *Client) AddAgilityCluster(request *AddAgilityClusterRequest) (response *AddAgilityClusterResponse, err error) { + response = CreateAddAgilityClusterResponse() + err = client.DoAction(request, response) + return +} + +// AddAgilityClusterWithChan invokes the cs.AddAgilityCluster API asynchronously +// api document: https://help.aliyun.com/api/cs/addagilitycluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddAgilityClusterWithChan(request *AddAgilityClusterRequest) (<-chan *AddAgilityClusterResponse, <-chan error) { + responseChan := make(chan *AddAgilityClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddAgilityCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddAgilityClusterWithCallback invokes the cs.AddAgilityCluster API asynchronously +// api document: https://help.aliyun.com/api/cs/addagilitycluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddAgilityClusterWithCallback(request *AddAgilityClusterRequest, callback func(response *AddAgilityClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddAgilityClusterResponse + var err error + defer close(result) + response, err = client.AddAgilityCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddAgilityClusterRequest is the request struct for api AddAgilityCluster +type AddAgilityClusterRequest struct { + *requests.RoaRequest +} + +// AddAgilityClusterResponse is the response struct for api AddAgilityCluster +type AddAgilityClusterResponse struct { + *responses.BaseResponse +} + +// CreateAddAgilityClusterRequest creates a request to invoke AddAgilityCluster API +func CreateAddAgilityClusterRequest() (request *AddAgilityClusterRequest) { + request = &AddAgilityClusterRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "AddAgilityCluster", "/add_agility_cluster", "", "") + request.Method = requests.POST + return +} + +// CreateAddAgilityClusterResponse creates a response to parse from AddAgilityCluster response +func CreateAddAgilityClusterResponse() (response *AddAgilityClusterResponse) { + response = &AddAgilityClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/attach_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/attach_instances.go new file mode 100644 index 0000000..f24c097 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/attach_instances.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AttachInstances invokes the cs.AttachInstances API synchronously +// api document: https://help.aliyun.com/api/cs/attachinstances.html +func (client *Client) AttachInstances(request *AttachInstancesRequest) (response *AttachInstancesResponse, err error) { + response = CreateAttachInstancesResponse() + err = client.DoAction(request, response) + return +} + +// AttachInstancesWithChan invokes the cs.AttachInstances API asynchronously +// api document: https://help.aliyun.com/api/cs/attachinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachInstancesWithChan(request *AttachInstancesRequest) (<-chan *AttachInstancesResponse, <-chan error) { + responseChan := make(chan *AttachInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AttachInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AttachInstancesWithCallback invokes the cs.AttachInstances API asynchronously +// api document: https://help.aliyun.com/api/cs/attachinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachInstancesWithCallback(request *AttachInstancesRequest, callback func(response *AttachInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AttachInstancesResponse + var err error + defer close(result) + response, err = client.AttachInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AttachInstancesRequest is the request struct for api AttachInstances +type AttachInstancesRequest struct { + *requests.RoaRequest + ClusterId string `position:"Path" name:"ClusterId"` +} + +// AttachInstancesResponse is the response struct for api AttachInstances +type AttachInstancesResponse struct { + *responses.BaseResponse +} + +// CreateAttachInstancesRequest creates a request to invoke AttachInstances API +func CreateAttachInstancesRequest() (request *AttachInstancesRequest) { + request = &AttachInstancesRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "AttachInstances", "/clusters/[ClusterId]/attach", "", "") + request.Method = requests.POST + return +} + +// CreateAttachInstancesResponse creates a response to parse from AttachInstances response +func CreateAttachInstancesResponse() (response *AttachInstancesResponse) { + response = &AttachInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/call_back_agility_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/call_back_agility_cluster.go new file mode 100644 index 0000000..45270f6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/call_back_agility_cluster.go @@ -0,0 +1,104 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CallBackAgilityCluster invokes the cs.CallBackAgilityCluster API synchronously +// api document: https://help.aliyun.com/api/cs/callbackagilitycluster.html +func (client *Client) CallBackAgilityCluster(request *CallBackAgilityClusterRequest) (response *CallBackAgilityClusterResponse, err error) { + response = CreateCallBackAgilityClusterResponse() + err = client.DoAction(request, response) + return +} + +// CallBackAgilityClusterWithChan invokes the cs.CallBackAgilityCluster API asynchronously +// api document: https://help.aliyun.com/api/cs/callbackagilitycluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CallBackAgilityClusterWithChan(request *CallBackAgilityClusterRequest) (<-chan *CallBackAgilityClusterResponse, <-chan error) { + responseChan := make(chan *CallBackAgilityClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CallBackAgilityCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CallBackAgilityClusterWithCallback invokes the cs.CallBackAgilityCluster API asynchronously +// api document: https://help.aliyun.com/api/cs/callbackagilitycluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CallBackAgilityClusterWithCallback(request *CallBackAgilityClusterRequest, callback func(response *CallBackAgilityClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CallBackAgilityClusterResponse + var err error + defer close(result) + response, err = client.CallBackAgilityCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CallBackAgilityClusterRequest is the request struct for api CallBackAgilityCluster +type CallBackAgilityClusterRequest struct { + *requests.RoaRequest + Token string `position:"Path" name:"Token"` + ReqOnce string `position:"Path" name:"ReqOnce"` +} + +// CallBackAgilityClusterResponse is the response struct for api CallBackAgilityCluster +type CallBackAgilityClusterResponse struct { + *responses.BaseResponse +} + +// CreateCallBackAgilityClusterRequest creates a request to invoke CallBackAgilityCluster API +func CreateCallBackAgilityClusterRequest() (request *CallBackAgilityClusterRequest) { + request = &CallBackAgilityClusterRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "CallBackAgilityCluster", "/agility/token/[Token]/req_once/[ReqOnce]/callback", "", "") + request.Method = requests.POST + return +} + +// CreateCallBackAgilityClusterResponse creates a response to parse from CallBackAgilityCluster response +func CreateCallBackAgilityClusterResponse() (response *CallBackAgilityClusterResponse) { + response = &CallBackAgilityClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/callback_cluster_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/callback_cluster_token.go new file mode 100644 index 0000000..ef59f05 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/callback_cluster_token.go @@ -0,0 +1,104 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CallbackClusterToken invokes the cs.CallbackClusterToken API synchronously +// api document: https://help.aliyun.com/api/cs/callbackclustertoken.html +func (client *Client) CallbackClusterToken(request *CallbackClusterTokenRequest) (response *CallbackClusterTokenResponse, err error) { + response = CreateCallbackClusterTokenResponse() + err = client.DoAction(request, response) + return +} + +// CallbackClusterTokenWithChan invokes the cs.CallbackClusterToken API asynchronously +// api document: https://help.aliyun.com/api/cs/callbackclustertoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CallbackClusterTokenWithChan(request *CallbackClusterTokenRequest) (<-chan *CallbackClusterTokenResponse, <-chan error) { + responseChan := make(chan *CallbackClusterTokenResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CallbackClusterToken(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CallbackClusterTokenWithCallback invokes the cs.CallbackClusterToken API asynchronously +// api document: https://help.aliyun.com/api/cs/callbackclustertoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CallbackClusterTokenWithCallback(request *CallbackClusterTokenRequest, callback func(response *CallbackClusterTokenResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CallbackClusterTokenResponse + var err error + defer close(result) + response, err = client.CallbackClusterToken(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CallbackClusterTokenRequest is the request struct for api CallbackClusterToken +type CallbackClusterTokenRequest struct { + *requests.RoaRequest + Token string `position:"Path" name:"Token"` + ReqOnce string `position:"Path" name:"ReqOnce"` +} + +// CallbackClusterTokenResponse is the response struct for api CallbackClusterToken +type CallbackClusterTokenResponse struct { + *responses.BaseResponse +} + +// CreateCallbackClusterTokenRequest creates a request to invoke CallbackClusterToken API +func CreateCallbackClusterTokenRequest() (request *CallbackClusterTokenRequest) { + request = &CallbackClusterTokenRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "CallbackClusterToken", "/token/[Token]/req_once/[ReqOnce]/callback", "", "") + request.Method = requests.POST + return +} + +// CreateCallbackClusterTokenResponse creates a response to parse from CallbackClusterToken response +func CreateCallbackClusterTokenResponse() (response *CallbackClusterTokenResponse) { + response = &CallbackClusterTokenResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/check_aliyun_cs_service_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/check_aliyun_cs_service_role.go new file mode 100644 index 0000000..2b77a13 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/check_aliyun_cs_service_role.go @@ -0,0 +1,102 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckAliyunCSServiceRole invokes the cs.CheckAliyunCSServiceRole API synchronously +// api document: https://help.aliyun.com/api/cs/checkaliyuncsservicerole.html +func (client *Client) CheckAliyunCSServiceRole(request *CheckAliyunCSServiceRoleRequest) (response *CheckAliyunCSServiceRoleResponse, err error) { + response = CreateCheckAliyunCSServiceRoleResponse() + err = client.DoAction(request, response) + return +} + +// CheckAliyunCSServiceRoleWithChan invokes the cs.CheckAliyunCSServiceRole API asynchronously +// api document: https://help.aliyun.com/api/cs/checkaliyuncsservicerole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckAliyunCSServiceRoleWithChan(request *CheckAliyunCSServiceRoleRequest) (<-chan *CheckAliyunCSServiceRoleResponse, <-chan error) { + responseChan := make(chan *CheckAliyunCSServiceRoleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckAliyunCSServiceRole(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckAliyunCSServiceRoleWithCallback invokes the cs.CheckAliyunCSServiceRole API asynchronously +// api document: https://help.aliyun.com/api/cs/checkaliyuncsservicerole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckAliyunCSServiceRoleWithCallback(request *CheckAliyunCSServiceRoleRequest, callback func(response *CheckAliyunCSServiceRoleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckAliyunCSServiceRoleResponse + var err error + defer close(result) + response, err = client.CheckAliyunCSServiceRole(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckAliyunCSServiceRoleRequest is the request struct for api CheckAliyunCSServiceRole +type CheckAliyunCSServiceRoleRequest struct { + *requests.RoaRequest +} + +// CheckAliyunCSServiceRoleResponse is the response struct for api CheckAliyunCSServiceRole +type CheckAliyunCSServiceRoleResponse struct { + *responses.BaseResponse +} + +// CreateCheckAliyunCSServiceRoleRequest creates a request to invoke CheckAliyunCSServiceRole API +func CreateCheckAliyunCSServiceRoleRequest() (request *CheckAliyunCSServiceRoleRequest) { + request = &CheckAliyunCSServiceRoleRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "CheckAliyunCSServiceRole", "/aliyuncsrole/status", "", "") + request.Method = requests.GET + return +} + +// CreateCheckAliyunCSServiceRoleResponse creates a response to parse from CheckAliyunCSServiceRole response +func CreateCheckAliyunCSServiceRoleResponse() (response *CheckAliyunCSServiceRoleResponse) { + response = &CheckAliyunCSServiceRoleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/client.go new file mode 100644 index 0000000..05aeee1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/client.go @@ -0,0 +1,81 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/create_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/create_cluster.go new file mode 100644 index 0000000..d8908e1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/create_cluster.go @@ -0,0 +1,102 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateCluster invokes the cs.CreateCluster API synchronously +// api document: https://help.aliyun.com/api/cs/createcluster.html +func (client *Client) CreateCluster(request *CreateClusterRequest) (response *CreateClusterResponse, err error) { + response = CreateCreateClusterResponse() + err = client.DoAction(request, response) + return +} + +// CreateClusterWithChan invokes the cs.CreateCluster API asynchronously +// api document: https://help.aliyun.com/api/cs/createcluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateClusterWithChan(request *CreateClusterRequest) (<-chan *CreateClusterResponse, <-chan error) { + responseChan := make(chan *CreateClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateClusterWithCallback invokes the cs.CreateCluster API asynchronously +// api document: https://help.aliyun.com/api/cs/createcluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateClusterWithCallback(request *CreateClusterRequest, callback func(response *CreateClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateClusterResponse + var err error + defer close(result) + response, err = client.CreateCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateClusterRequest is the request struct for api CreateCluster +type CreateClusterRequest struct { + *requests.RoaRequest +} + +// CreateClusterResponse is the response struct for api CreateCluster +type CreateClusterResponse struct { + *responses.BaseResponse +} + +// CreateCreateClusterRequest creates a request to invoke CreateCluster API +func CreateCreateClusterRequest() (request *CreateClusterRequest) { + request = &CreateClusterRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "CreateCluster", "/clusters", "", "") + request.Method = requests.POST + return +} + +// CreateCreateClusterResponse creates a response to parse from CreateCluster response +func CreateCreateClusterResponse() (response *CreateClusterResponse) { + response = &CreateClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/create_cluster_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/create_cluster_token.go new file mode 100644 index 0000000..d27937f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/create_cluster_token.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateClusterToken invokes the cs.CreateClusterToken API synchronously +// api document: https://help.aliyun.com/api/cs/createclustertoken.html +func (client *Client) CreateClusterToken(request *CreateClusterTokenRequest) (response *CreateClusterTokenResponse, err error) { + response = CreateCreateClusterTokenResponse() + err = client.DoAction(request, response) + return +} + +// CreateClusterTokenWithChan invokes the cs.CreateClusterToken API asynchronously +// api document: https://help.aliyun.com/api/cs/createclustertoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateClusterTokenWithChan(request *CreateClusterTokenRequest) (<-chan *CreateClusterTokenResponse, <-chan error) { + responseChan := make(chan *CreateClusterTokenResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateClusterToken(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateClusterTokenWithCallback invokes the cs.CreateClusterToken API asynchronously +// api document: https://help.aliyun.com/api/cs/createclustertoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateClusterTokenWithCallback(request *CreateClusterTokenRequest, callback func(response *CreateClusterTokenResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateClusterTokenResponse + var err error + defer close(result) + response, err = client.CreateClusterToken(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateClusterTokenRequest is the request struct for api CreateClusterToken +type CreateClusterTokenRequest struct { + *requests.RoaRequest + ClusterId string `position:"Path" name:"ClusterId"` +} + +// CreateClusterTokenResponse is the response struct for api CreateClusterToken +type CreateClusterTokenResponse struct { + *responses.BaseResponse +} + +// CreateCreateClusterTokenRequest creates a request to invoke CreateClusterToken API +func CreateCreateClusterTokenRequest() (request *CreateClusterTokenRequest) { + request = &CreateClusterTokenRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "CreateClusterToken", "/clusters/[ClusterId]/token", "", "") + request.Method = requests.POST + return +} + +// CreateCreateClusterTokenResponse creates a response to parse from CreateClusterToken response +func CreateCreateClusterTokenResponse() (response *CreateClusterTokenResponse) { + response = &CreateClusterTokenResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/create_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/create_template.go new file mode 100644 index 0000000..1c1c89c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/create_template.go @@ -0,0 +1,102 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateTemplate invokes the cs.CreateTemplate API synchronously +// api document: https://help.aliyun.com/api/cs/createtemplate.html +func (client *Client) CreateTemplate(request *CreateTemplateRequest) (response *CreateTemplateResponse, err error) { + response = CreateCreateTemplateResponse() + err = client.DoAction(request, response) + return +} + +// CreateTemplateWithChan invokes the cs.CreateTemplate API asynchronously +// api document: https://help.aliyun.com/api/cs/createtemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateTemplateWithChan(request *CreateTemplateRequest) (<-chan *CreateTemplateResponse, <-chan error) { + responseChan := make(chan *CreateTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateTemplateWithCallback invokes the cs.CreateTemplate API asynchronously +// api document: https://help.aliyun.com/api/cs/createtemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateTemplateWithCallback(request *CreateTemplateRequest, callback func(response *CreateTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateTemplateResponse + var err error + defer close(result) + response, err = client.CreateTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateTemplateRequest is the request struct for api CreateTemplate +type CreateTemplateRequest struct { + *requests.RoaRequest +} + +// CreateTemplateResponse is the response struct for api CreateTemplate +type CreateTemplateResponse struct { + *responses.BaseResponse +} + +// CreateCreateTemplateRequest creates a request to invoke CreateTemplate API +func CreateCreateTemplateRequest() (request *CreateTemplateRequest) { + request = &CreateTemplateRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "CreateTemplate", "/templates", "", "") + request.Method = requests.PUT + return +} + +// CreateCreateTemplateResponse creates a response to parse from CreateTemplate response +func CreateCreateTemplateResponse() (response *CreateTemplateResponse) { + response = &CreateTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/delete_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/delete_cluster.go new file mode 100644 index 0000000..6229d48 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/delete_cluster.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCluster invokes the cs.DeleteCluster API synchronously +// api document: https://help.aliyun.com/api/cs/deletecluster.html +func (client *Client) DeleteCluster(request *DeleteClusterRequest) (response *DeleteClusterResponse, err error) { + response = CreateDeleteClusterResponse() + err = client.DoAction(request, response) + return +} + +// DeleteClusterWithChan invokes the cs.DeleteCluster API asynchronously +// api document: https://help.aliyun.com/api/cs/deletecluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteClusterWithChan(request *DeleteClusterRequest) (<-chan *DeleteClusterResponse, <-chan error) { + responseChan := make(chan *DeleteClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteClusterWithCallback invokes the cs.DeleteCluster API asynchronously +// api document: https://help.aliyun.com/api/cs/deletecluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteClusterWithCallback(request *DeleteClusterRequest, callback func(response *DeleteClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteClusterResponse + var err error + defer close(result) + response, err = client.DeleteCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteClusterRequest is the request struct for api DeleteCluster +type DeleteClusterRequest struct { + *requests.RoaRequest + ClusterId string `position:"Path" name:"ClusterId"` +} + +// DeleteClusterResponse is the response struct for api DeleteCluster +type DeleteClusterResponse struct { + *responses.BaseResponse +} + +// CreateDeleteClusterRequest creates a request to invoke DeleteCluster API +func CreateDeleteClusterRequest() (request *DeleteClusterRequest) { + request = &DeleteClusterRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DeleteCluster", "/clusters/[ClusterId]", "", "") + request.Method = requests.DELETE + return +} + +// CreateDeleteClusterResponse creates a response to parse from DeleteCluster response +func CreateDeleteClusterResponse() (response *DeleteClusterResponse) { + response = &DeleteClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/delete_cluster_node.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/delete_cluster_node.go new file mode 100644 index 0000000..cc9e9ba --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/delete_cluster_node.go @@ -0,0 +1,106 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteClusterNode invokes the cs.DeleteClusterNode API synchronously +// api document: https://help.aliyun.com/api/cs/deleteclusternode.html +func (client *Client) DeleteClusterNode(request *DeleteClusterNodeRequest) (response *DeleteClusterNodeResponse, err error) { + response = CreateDeleteClusterNodeResponse() + err = client.DoAction(request, response) + return +} + +// DeleteClusterNodeWithChan invokes the cs.DeleteClusterNode API asynchronously +// api document: https://help.aliyun.com/api/cs/deleteclusternode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteClusterNodeWithChan(request *DeleteClusterNodeRequest) (<-chan *DeleteClusterNodeResponse, <-chan error) { + responseChan := make(chan *DeleteClusterNodeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteClusterNode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteClusterNodeWithCallback invokes the cs.DeleteClusterNode API asynchronously +// api document: https://help.aliyun.com/api/cs/deleteclusternode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteClusterNodeWithCallback(request *DeleteClusterNodeRequest, callback func(response *DeleteClusterNodeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteClusterNodeResponse + var err error + defer close(result) + response, err = client.DeleteClusterNode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteClusterNodeRequest is the request struct for api DeleteClusterNode +type DeleteClusterNodeRequest struct { + *requests.RoaRequest + ClusterId string `position:"Path" name:"ClusterId"` + Ip string `position:"Path" name:"Ip"` + Force string `position:"Query" name:"force"` + ReleaseInstance string `position:"Query" name:"releaseInstance"` +} + +// DeleteClusterNodeResponse is the response struct for api DeleteClusterNode +type DeleteClusterNodeResponse struct { + *responses.BaseResponse +} + +// CreateDeleteClusterNodeRequest creates a request to invoke DeleteClusterNode API +func CreateDeleteClusterNodeRequest() (request *DeleteClusterNodeRequest) { + request = &DeleteClusterNodeRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DeleteClusterNode", "/clusters/[ClusterId]/ip/[Ip]", "", "") + request.Method = requests.DELETE + return +} + +// CreateDeleteClusterNodeResponse creates a response to parse from DeleteClusterNode response +func CreateDeleteClusterNodeResponse() (response *DeleteClusterNodeResponse) { + response = &DeleteClusterNodeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_agility_tunnel_agent_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_agility_tunnel_agent_info.go new file mode 100644 index 0000000..965c4cc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_agility_tunnel_agent_info.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAgilityTunnelAgentInfo invokes the cs.DescribeAgilityTunnelAgentInfo API synchronously +// api document: https://help.aliyun.com/api/cs/describeagilitytunnelagentinfo.html +func (client *Client) DescribeAgilityTunnelAgentInfo(request *DescribeAgilityTunnelAgentInfoRequest) (response *DescribeAgilityTunnelAgentInfoResponse, err error) { + response = CreateDescribeAgilityTunnelAgentInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAgilityTunnelAgentInfoWithChan invokes the cs.DescribeAgilityTunnelAgentInfo API asynchronously +// api document: https://help.aliyun.com/api/cs/describeagilitytunnelagentinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAgilityTunnelAgentInfoWithChan(request *DescribeAgilityTunnelAgentInfoRequest) (<-chan *DescribeAgilityTunnelAgentInfoResponse, <-chan error) { + responseChan := make(chan *DescribeAgilityTunnelAgentInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAgilityTunnelAgentInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAgilityTunnelAgentInfoWithCallback invokes the cs.DescribeAgilityTunnelAgentInfo API asynchronously +// api document: https://help.aliyun.com/api/cs/describeagilitytunnelagentinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAgilityTunnelAgentInfoWithCallback(request *DescribeAgilityTunnelAgentInfoRequest, callback func(response *DescribeAgilityTunnelAgentInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAgilityTunnelAgentInfoResponse + var err error + defer close(result) + response, err = client.DescribeAgilityTunnelAgentInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAgilityTunnelAgentInfoRequest is the request struct for api DescribeAgilityTunnelAgentInfo +type DescribeAgilityTunnelAgentInfoRequest struct { + *requests.RoaRequest + Token string `position:"Path" name:"Token"` +} + +// DescribeAgilityTunnelAgentInfoResponse is the response struct for api DescribeAgilityTunnelAgentInfo +type DescribeAgilityTunnelAgentInfoResponse struct { + *responses.BaseResponse +} + +// CreateDescribeAgilityTunnelAgentInfoRequest creates a request to invoke DescribeAgilityTunnelAgentInfo API +func CreateDescribeAgilityTunnelAgentInfoRequest() (request *DescribeAgilityTunnelAgentInfoRequest) { + request = &DescribeAgilityTunnelAgentInfoRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeAgilityTunnelAgentInfo", "/agility/[Token]/agent_info", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeAgilityTunnelAgentInfoResponse creates a response to parse from DescribeAgilityTunnelAgentInfo response +func CreateDescribeAgilityTunnelAgentInfoResponse() (response *DescribeAgilityTunnelAgentInfoResponse) { + response = &DescribeAgilityTunnelAgentInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_agility_tunnel_certs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_agility_tunnel_certs.go new file mode 100644 index 0000000..f462b9e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_agility_tunnel_certs.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAgilityTunnelCerts invokes the cs.DescribeAgilityTunnelCerts API synchronously +// api document: https://help.aliyun.com/api/cs/describeagilitytunnelcerts.html +func (client *Client) DescribeAgilityTunnelCerts(request *DescribeAgilityTunnelCertsRequest) (response *DescribeAgilityTunnelCertsResponse, err error) { + response = CreateDescribeAgilityTunnelCertsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAgilityTunnelCertsWithChan invokes the cs.DescribeAgilityTunnelCerts API asynchronously +// api document: https://help.aliyun.com/api/cs/describeagilitytunnelcerts.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAgilityTunnelCertsWithChan(request *DescribeAgilityTunnelCertsRequest) (<-chan *DescribeAgilityTunnelCertsResponse, <-chan error) { + responseChan := make(chan *DescribeAgilityTunnelCertsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAgilityTunnelCerts(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAgilityTunnelCertsWithCallback invokes the cs.DescribeAgilityTunnelCerts API asynchronously +// api document: https://help.aliyun.com/api/cs/describeagilitytunnelcerts.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAgilityTunnelCertsWithCallback(request *DescribeAgilityTunnelCertsRequest, callback func(response *DescribeAgilityTunnelCertsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAgilityTunnelCertsResponse + var err error + defer close(result) + response, err = client.DescribeAgilityTunnelCerts(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAgilityTunnelCertsRequest is the request struct for api DescribeAgilityTunnelCerts +type DescribeAgilityTunnelCertsRequest struct { + *requests.RoaRequest + Token string `position:"Path" name:"Token"` +} + +// DescribeAgilityTunnelCertsResponse is the response struct for api DescribeAgilityTunnelCerts +type DescribeAgilityTunnelCertsResponse struct { + *responses.BaseResponse +} + +// CreateDescribeAgilityTunnelCertsRequest creates a request to invoke DescribeAgilityTunnelCerts API +func CreateDescribeAgilityTunnelCertsRequest() (request *DescribeAgilityTunnelCertsRequest) { + request = &DescribeAgilityTunnelCertsRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeAgilityTunnelCerts", "/agility/[Token]/agent_certs", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeAgilityTunnelCertsResponse creates a response to parse from DescribeAgilityTunnelCerts response +func CreateDescribeAgilityTunnelCertsResponse() (response *DescribeAgilityTunnelCertsResponse) { + response = &DescribeAgilityTunnelCertsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_api_version.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_api_version.go new file mode 100644 index 0000000..e0f8e65 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_api_version.go @@ -0,0 +1,102 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApiVersion invokes the cs.DescribeApiVersion API synchronously +// api document: https://help.aliyun.com/api/cs/describeapiversion.html +func (client *Client) DescribeApiVersion(request *DescribeApiVersionRequest) (response *DescribeApiVersionResponse, err error) { + response = CreateDescribeApiVersionResponse() + err = client.DoAction(request, response) + return +} + +// DescribeApiVersionWithChan invokes the cs.DescribeApiVersion API asynchronously +// api document: https://help.aliyun.com/api/cs/describeapiversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiVersionWithChan(request *DescribeApiVersionRequest) (<-chan *DescribeApiVersionResponse, <-chan error) { + responseChan := make(chan *DescribeApiVersionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApiVersion(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeApiVersionWithCallback invokes the cs.DescribeApiVersion API asynchronously +// api document: https://help.aliyun.com/api/cs/describeapiversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeApiVersionWithCallback(request *DescribeApiVersionRequest, callback func(response *DescribeApiVersionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeApiVersionResponse + var err error + defer close(result) + response, err = client.DescribeApiVersion(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeApiVersionRequest is the request struct for api DescribeApiVersion +type DescribeApiVersionRequest struct { + *requests.RoaRequest +} + +// DescribeApiVersionResponse is the response struct for api DescribeApiVersion +type DescribeApiVersionResponse struct { + *responses.BaseResponse +} + +// CreateDescribeApiVersionRequest creates a request to invoke DescribeApiVersion API +func CreateDescribeApiVersionRequest() (request *DescribeApiVersionRequest) { + request = &DescribeApiVersionRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeApiVersion", "/version", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeApiVersionResponse creates a response to parse from DescribeApiVersion response +func CreateDescribeApiVersionResponse() (response *DescribeApiVersionResponse) { + response = &DescribeApiVersionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_certs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_certs.go new file mode 100644 index 0000000..a4af0d6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_certs.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeClusterCerts invokes the cs.DescribeClusterCerts API synchronously +// api document: https://help.aliyun.com/api/cs/describeclustercerts.html +func (client *Client) DescribeClusterCerts(request *DescribeClusterCertsRequest) (response *DescribeClusterCertsResponse, err error) { + response = CreateDescribeClusterCertsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeClusterCertsWithChan invokes the cs.DescribeClusterCerts API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclustercerts.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterCertsWithChan(request *DescribeClusterCertsRequest) (<-chan *DescribeClusterCertsResponse, <-chan error) { + responseChan := make(chan *DescribeClusterCertsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeClusterCerts(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeClusterCertsWithCallback invokes the cs.DescribeClusterCerts API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclustercerts.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterCertsWithCallback(request *DescribeClusterCertsRequest, callback func(response *DescribeClusterCertsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeClusterCertsResponse + var err error + defer close(result) + response, err = client.DescribeClusterCerts(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeClusterCertsRequest is the request struct for api DescribeClusterCerts +type DescribeClusterCertsRequest struct { + *requests.RoaRequest + ClusterId string `position:"Path" name:"ClusterId"` +} + +// DescribeClusterCertsResponse is the response struct for api DescribeClusterCerts +type DescribeClusterCertsResponse struct { + *responses.BaseResponse +} + +// CreateDescribeClusterCertsRequest creates a request to invoke DescribeClusterCerts API +func CreateDescribeClusterCertsRequest() (request *DescribeClusterCertsRequest) { + request = &DescribeClusterCertsRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterCerts", "/clusters/[ClusterId]/certs", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeClusterCertsResponse creates a response to parse from DescribeClusterCerts response +func CreateDescribeClusterCertsResponse() (response *DescribeClusterCertsResponse) { + response = &DescribeClusterCertsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_detail.go new file mode 100644 index 0000000..e33c282 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_detail.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeClusterDetail invokes the cs.DescribeClusterDetail API synchronously +// api document: https://help.aliyun.com/api/cs/describeclusterdetail.html +func (client *Client) DescribeClusterDetail(request *DescribeClusterDetailRequest) (response *DescribeClusterDetailResponse, err error) { + response = CreateDescribeClusterDetailResponse() + err = client.DoAction(request, response) + return +} + +// DescribeClusterDetailWithChan invokes the cs.DescribeClusterDetail API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclusterdetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterDetailWithChan(request *DescribeClusterDetailRequest) (<-chan *DescribeClusterDetailResponse, <-chan error) { + responseChan := make(chan *DescribeClusterDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeClusterDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeClusterDetailWithCallback invokes the cs.DescribeClusterDetail API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclusterdetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterDetailWithCallback(request *DescribeClusterDetailRequest, callback func(response *DescribeClusterDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeClusterDetailResponse + var err error + defer close(result) + response, err = client.DescribeClusterDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeClusterDetailRequest is the request struct for api DescribeClusterDetail +type DescribeClusterDetailRequest struct { + *requests.RoaRequest + ClusterId string `position:"Path" name:"ClusterId"` +} + +// DescribeClusterDetailResponse is the response struct for api DescribeClusterDetail +type DescribeClusterDetailResponse struct { + *responses.BaseResponse +} + +// CreateDescribeClusterDetailRequest creates a request to invoke DescribeClusterDetail API +func CreateDescribeClusterDetailRequest() (request *DescribeClusterDetailRequest) { + request = &DescribeClusterDetailRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterDetail", "/clusters/[ClusterId]", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeClusterDetailResponse creates a response to parse from DescribeClusterDetail response +func CreateDescribeClusterDetailResponse() (response *DescribeClusterDetailResponse) { + response = &DescribeClusterDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_hosts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_hosts.go new file mode 100644 index 0000000..5f961ac --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_hosts.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeClusterHosts invokes the cs.DescribeClusterHosts API synchronously +// api document: https://help.aliyun.com/api/cs/describeclusterhosts.html +func (client *Client) DescribeClusterHosts(request *DescribeClusterHostsRequest) (response *DescribeClusterHostsResponse, err error) { + response = CreateDescribeClusterHostsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeClusterHostsWithChan invokes the cs.DescribeClusterHosts API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclusterhosts.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterHostsWithChan(request *DescribeClusterHostsRequest) (<-chan *DescribeClusterHostsResponse, <-chan error) { + responseChan := make(chan *DescribeClusterHostsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeClusterHosts(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeClusterHostsWithCallback invokes the cs.DescribeClusterHosts API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclusterhosts.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterHostsWithCallback(request *DescribeClusterHostsRequest, callback func(response *DescribeClusterHostsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeClusterHostsResponse + var err error + defer close(result) + response, err = client.DescribeClusterHosts(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeClusterHostsRequest is the request struct for api DescribeClusterHosts +type DescribeClusterHostsRequest struct { + *requests.RoaRequest + ClusterId string `position:"Path" name:"ClusterId"` +} + +// DescribeClusterHostsResponse is the response struct for api DescribeClusterHosts +type DescribeClusterHostsResponse struct { + *responses.BaseResponse +} + +// CreateDescribeClusterHostsRequest creates a request to invoke DescribeClusterHosts API +func CreateDescribeClusterHostsRequest() (request *DescribeClusterHostsRequest) { + request = &DescribeClusterHostsRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterHosts", "/clusters/[ClusterId]/hosts", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeClusterHostsResponse creates a response to parse from DescribeClusterHosts response +func CreateDescribeClusterHostsResponse() (response *DescribeClusterHostsResponse) { + response = &DescribeClusterHostsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_logs.go new file mode 100644 index 0000000..557409a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_logs.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeClusterLogs invokes the cs.DescribeClusterLogs API synchronously +// api document: https://help.aliyun.com/api/cs/describeclusterlogs.html +func (client *Client) DescribeClusterLogs(request *DescribeClusterLogsRequest) (response *DescribeClusterLogsResponse, err error) { + response = CreateDescribeClusterLogsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeClusterLogsWithChan invokes the cs.DescribeClusterLogs API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclusterlogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterLogsWithChan(request *DescribeClusterLogsRequest) (<-chan *DescribeClusterLogsResponse, <-chan error) { + responseChan := make(chan *DescribeClusterLogsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeClusterLogs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeClusterLogsWithCallback invokes the cs.DescribeClusterLogs API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclusterlogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterLogsWithCallback(request *DescribeClusterLogsRequest, callback func(response *DescribeClusterLogsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeClusterLogsResponse + var err error + defer close(result) + response, err = client.DescribeClusterLogs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeClusterLogsRequest is the request struct for api DescribeClusterLogs +type DescribeClusterLogsRequest struct { + *requests.RoaRequest + ClusterId string `position:"Path" name:"ClusterId"` +} + +// DescribeClusterLogsResponse is the response struct for api DescribeClusterLogs +type DescribeClusterLogsResponse struct { + *responses.BaseResponse +} + +// CreateDescribeClusterLogsRequest creates a request to invoke DescribeClusterLogs API +func CreateDescribeClusterLogsRequest() (request *DescribeClusterLogsRequest) { + request = &DescribeClusterLogsRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterLogs", "/clusters/[ClusterId]/logs", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeClusterLogsResponse creates a response to parse from DescribeClusterLogs response +func CreateDescribeClusterLogsResponse() (response *DescribeClusterLogsResponse) { + response = &DescribeClusterLogsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_node_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_node_info.go new file mode 100644 index 0000000..7641992 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_node_info.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeClusterNodeInfo invokes the cs.DescribeClusterNodeInfo API synchronously +// api document: https://help.aliyun.com/api/cs/describeclusternodeinfo.html +func (client *Client) DescribeClusterNodeInfo(request *DescribeClusterNodeInfoRequest) (response *DescribeClusterNodeInfoResponse, err error) { + response = CreateDescribeClusterNodeInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeClusterNodeInfoWithChan invokes the cs.DescribeClusterNodeInfo API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclusternodeinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterNodeInfoWithChan(request *DescribeClusterNodeInfoRequest) (<-chan *DescribeClusterNodeInfoResponse, <-chan error) { + responseChan := make(chan *DescribeClusterNodeInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeClusterNodeInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeClusterNodeInfoWithCallback invokes the cs.DescribeClusterNodeInfo API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclusternodeinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterNodeInfoWithCallback(request *DescribeClusterNodeInfoRequest, callback func(response *DescribeClusterNodeInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeClusterNodeInfoResponse + var err error + defer close(result) + response, err = client.DescribeClusterNodeInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeClusterNodeInfoRequest is the request struct for api DescribeClusterNodeInfo +type DescribeClusterNodeInfoRequest struct { + *requests.RoaRequest + Token string `position:"Path" name:"Token"` +} + +// DescribeClusterNodeInfoResponse is the response struct for api DescribeClusterNodeInfo +type DescribeClusterNodeInfoResponse struct { + *responses.BaseResponse +} + +// CreateDescribeClusterNodeInfoRequest creates a request to invoke DescribeClusterNodeInfo API +func CreateDescribeClusterNodeInfoRequest() (request *DescribeClusterNodeInfoRequest) { + request = &DescribeClusterNodeInfoRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterNodeInfo", "/token/[Token]/node_info", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeClusterNodeInfoResponse creates a response to parse from DescribeClusterNodeInfo response +func CreateDescribeClusterNodeInfoResponse() (response *DescribeClusterNodeInfoResponse) { + response = &DescribeClusterNodeInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_node_info_with_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_node_info_with_instance.go new file mode 100644 index 0000000..2057579 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_node_info_with_instance.go @@ -0,0 +1,104 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeClusterNodeInfoWithInstance invokes the cs.DescribeClusterNodeInfoWithInstance API synchronously +// api document: https://help.aliyun.com/api/cs/describeclusternodeinfowithinstance.html +func (client *Client) DescribeClusterNodeInfoWithInstance(request *DescribeClusterNodeInfoWithInstanceRequest) (response *DescribeClusterNodeInfoWithInstanceResponse, err error) { + response = CreateDescribeClusterNodeInfoWithInstanceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeClusterNodeInfoWithInstanceWithChan invokes the cs.DescribeClusterNodeInfoWithInstance API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclusternodeinfowithinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterNodeInfoWithInstanceWithChan(request *DescribeClusterNodeInfoWithInstanceRequest) (<-chan *DescribeClusterNodeInfoWithInstanceResponse, <-chan error) { + responseChan := make(chan *DescribeClusterNodeInfoWithInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeClusterNodeInfoWithInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeClusterNodeInfoWithInstanceWithCallback invokes the cs.DescribeClusterNodeInfoWithInstance API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclusternodeinfowithinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterNodeInfoWithInstanceWithCallback(request *DescribeClusterNodeInfoWithInstanceRequest, callback func(response *DescribeClusterNodeInfoWithInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeClusterNodeInfoWithInstanceResponse + var err error + defer close(result) + response, err = client.DescribeClusterNodeInfoWithInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeClusterNodeInfoWithInstanceRequest is the request struct for api DescribeClusterNodeInfoWithInstance +type DescribeClusterNodeInfoWithInstanceRequest struct { + *requests.RoaRequest + Token string `position:"Path" name:"Token"` + InstanceId string `position:"Path" name:"InstanceId"` +} + +// DescribeClusterNodeInfoWithInstanceResponse is the response struct for api DescribeClusterNodeInfoWithInstance +type DescribeClusterNodeInfoWithInstanceResponse struct { + *responses.BaseResponse +} + +// CreateDescribeClusterNodeInfoWithInstanceRequest creates a request to invoke DescribeClusterNodeInfoWithInstance API +func CreateDescribeClusterNodeInfoWithInstanceRequest() (request *DescribeClusterNodeInfoWithInstanceRequest) { + request = &DescribeClusterNodeInfoWithInstanceRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterNodeInfoWithInstance", "/token/[Token]/instance/[InstanceId]/node_info", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeClusterNodeInfoWithInstanceResponse creates a response to parse from DescribeClusterNodeInfoWithInstance response +func CreateDescribeClusterNodeInfoWithInstanceResponse() (response *DescribeClusterNodeInfoWithInstanceResponse) { + response = &DescribeClusterNodeInfoWithInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_nodes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_nodes.go new file mode 100644 index 0000000..c005238 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_nodes.go @@ -0,0 +1,105 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeClusterNodes invokes the cs.DescribeClusterNodes API synchronously +// api document: https://help.aliyun.com/api/cs/describeclusternodes.html +func (client *Client) DescribeClusterNodes(request *DescribeClusterNodesRequest) (response *DescribeClusterNodesResponse, err error) { + response = CreateDescribeClusterNodesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeClusterNodesWithChan invokes the cs.DescribeClusterNodes API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclusternodes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterNodesWithChan(request *DescribeClusterNodesRequest) (<-chan *DescribeClusterNodesResponse, <-chan error) { + responseChan := make(chan *DescribeClusterNodesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeClusterNodes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeClusterNodesWithCallback invokes the cs.DescribeClusterNodes API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclusternodes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterNodesWithCallback(request *DescribeClusterNodesRequest, callback func(response *DescribeClusterNodesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeClusterNodesResponse + var err error + defer close(result) + response, err = client.DescribeClusterNodes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeClusterNodesRequest is the request struct for api DescribeClusterNodes +type DescribeClusterNodesRequest struct { + *requests.RoaRequest + ClusterId string `position:"Path" name:"ClusterId"` + PageSize string `position:"Query" name:"pageSize"` + PageNumber string `position:"Query" name:"pageNumber"` +} + +// DescribeClusterNodesResponse is the response struct for api DescribeClusterNodes +type DescribeClusterNodesResponse struct { + *responses.BaseResponse +} + +// CreateDescribeClusterNodesRequest creates a request to invoke DescribeClusterNodes API +func CreateDescribeClusterNodesRequest() (request *DescribeClusterNodesRequest) { + request = &DescribeClusterNodesRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterNodes", "/clusters/[ClusterId]/nodes", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeClusterNodesResponse creates a response to parse from DescribeClusterNodes response +func CreateDescribeClusterNodesResponse() (response *DescribeClusterNodesResponse) { + response = &DescribeClusterNodesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_scaled_node.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_scaled_node.go new file mode 100644 index 0000000..ed6d05f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_scaled_node.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeClusterScaledNode invokes the cs.DescribeClusterScaledNode API synchronously +// api document: https://help.aliyun.com/api/cs/describeclusterscalednode.html +func (client *Client) DescribeClusterScaledNode(request *DescribeClusterScaledNodeRequest) (response *DescribeClusterScaledNodeResponse, err error) { + response = CreateDescribeClusterScaledNodeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeClusterScaledNodeWithChan invokes the cs.DescribeClusterScaledNode API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclusterscalednode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterScaledNodeWithChan(request *DescribeClusterScaledNodeRequest) (<-chan *DescribeClusterScaledNodeResponse, <-chan error) { + responseChan := make(chan *DescribeClusterScaledNodeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeClusterScaledNode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeClusterScaledNodeWithCallback invokes the cs.DescribeClusterScaledNode API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclusterscalednode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterScaledNodeWithCallback(request *DescribeClusterScaledNodeRequest, callback func(response *DescribeClusterScaledNodeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeClusterScaledNodeResponse + var err error + defer close(result) + response, err = client.DescribeClusterScaledNode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeClusterScaledNodeRequest is the request struct for api DescribeClusterScaledNode +type DescribeClusterScaledNodeRequest struct { + *requests.RoaRequest + ClusterId string `position:"Path" name:"ClusterId"` +} + +// DescribeClusterScaledNodeResponse is the response struct for api DescribeClusterScaledNode +type DescribeClusterScaledNodeResponse struct { + *responses.BaseResponse +} + +// CreateDescribeClusterScaledNodeRequest creates a request to invoke DescribeClusterScaledNode API +func CreateDescribeClusterScaledNodeRequest() (request *DescribeClusterScaledNodeRequest) { + request = &DescribeClusterScaledNodeRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterScaledNode", "/clusters/[ClusterId]/scaled_nodes/", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeClusterScaledNodeResponse creates a response to parse from DescribeClusterScaledNode response +func CreateDescribeClusterScaledNodeResponse() (response *DescribeClusterScaledNodeResponse) { + response = &DescribeClusterScaledNodeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_services.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_services.go new file mode 100644 index 0000000..adca2da --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_services.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeClusterServices invokes the cs.DescribeClusterServices API synchronously +// api document: https://help.aliyun.com/api/cs/describeclusterservices.html +func (client *Client) DescribeClusterServices(request *DescribeClusterServicesRequest) (response *DescribeClusterServicesResponse, err error) { + response = CreateDescribeClusterServicesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeClusterServicesWithChan invokes the cs.DescribeClusterServices API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclusterservices.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterServicesWithChan(request *DescribeClusterServicesRequest) (<-chan *DescribeClusterServicesResponse, <-chan error) { + responseChan := make(chan *DescribeClusterServicesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeClusterServices(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeClusterServicesWithCallback invokes the cs.DescribeClusterServices API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclusterservices.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterServicesWithCallback(request *DescribeClusterServicesRequest, callback func(response *DescribeClusterServicesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeClusterServicesResponse + var err error + defer close(result) + response, err = client.DescribeClusterServices(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeClusterServicesRequest is the request struct for api DescribeClusterServices +type DescribeClusterServicesRequest struct { + *requests.RoaRequest + ClusterId string `position:"Path" name:"ClusterId"` +} + +// DescribeClusterServicesResponse is the response struct for api DescribeClusterServices +type DescribeClusterServicesResponse struct { + *responses.BaseResponse +} + +// CreateDescribeClusterServicesRequest creates a request to invoke DescribeClusterServices API +func CreateDescribeClusterServicesRequest() (request *DescribeClusterServicesRequest) { + request = &DescribeClusterServicesRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterServices", "/clusters/[ClusterId]/services", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeClusterServicesResponse creates a response to parse from DescribeClusterServices response +func CreateDescribeClusterServicesResponse() (response *DescribeClusterServicesResponse) { + response = &DescribeClusterServicesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_tokens.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_tokens.go new file mode 100644 index 0000000..37f8d52 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_cluster_tokens.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeClusterTokens invokes the cs.DescribeClusterTokens API synchronously +// api document: https://help.aliyun.com/api/cs/describeclustertokens.html +func (client *Client) DescribeClusterTokens(request *DescribeClusterTokensRequest) (response *DescribeClusterTokensResponse, err error) { + response = CreateDescribeClusterTokensResponse() + err = client.DoAction(request, response) + return +} + +// DescribeClusterTokensWithChan invokes the cs.DescribeClusterTokens API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclustertokens.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterTokensWithChan(request *DescribeClusterTokensRequest) (<-chan *DescribeClusterTokensResponse, <-chan error) { + responseChan := make(chan *DescribeClusterTokensResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeClusterTokens(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeClusterTokensWithCallback invokes the cs.DescribeClusterTokens API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclustertokens.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterTokensWithCallback(request *DescribeClusterTokensRequest, callback func(response *DescribeClusterTokensResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeClusterTokensResponse + var err error + defer close(result) + response, err = client.DescribeClusterTokens(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeClusterTokensRequest is the request struct for api DescribeClusterTokens +type DescribeClusterTokensRequest struct { + *requests.RoaRequest + ClusterId string `position:"Path" name:"ClusterId"` +} + +// DescribeClusterTokensResponse is the response struct for api DescribeClusterTokens +type DescribeClusterTokensResponse struct { + *responses.BaseResponse +} + +// CreateDescribeClusterTokensRequest creates a request to invoke DescribeClusterTokens API +func CreateDescribeClusterTokensRequest() (request *DescribeClusterTokensRequest) { + request = &DescribeClusterTokensRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterTokens", "/clusters/[ClusterId]/tokens", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeClusterTokensResponse creates a response to parse from DescribeClusterTokens response +func CreateDescribeClusterTokensResponse() (response *DescribeClusterTokensResponse) { + response = &DescribeClusterTokensResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_clusters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_clusters.go new file mode 100644 index 0000000..c02982d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_clusters.go @@ -0,0 +1,104 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeClusters invokes the cs.DescribeClusters API synchronously +// api document: https://help.aliyun.com/api/cs/describeclusters.html +func (client *Client) DescribeClusters(request *DescribeClustersRequest) (response *DescribeClustersResponse, err error) { + response = CreateDescribeClustersResponse() + err = client.DoAction(request, response) + return +} + +// DescribeClustersWithChan invokes the cs.DescribeClusters API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclusters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClustersWithChan(request *DescribeClustersRequest) (<-chan *DescribeClustersResponse, <-chan error) { + responseChan := make(chan *DescribeClustersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeClusters(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeClustersWithCallback invokes the cs.DescribeClusters API asynchronously +// api document: https://help.aliyun.com/api/cs/describeclusters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClustersWithCallback(request *DescribeClustersRequest, callback func(response *DescribeClustersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeClustersResponse + var err error + defer close(result) + response, err = client.DescribeClusters(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeClustersRequest is the request struct for api DescribeClusters +type DescribeClustersRequest struct { + *requests.RoaRequest + Name string `position:"Query" name:"Name"` + ClusterType string `position:"Query" name:"clusterType"` +} + +// DescribeClustersResponse is the response struct for api DescribeClusters +type DescribeClustersResponse struct { + *responses.BaseResponse +} + +// CreateDescribeClustersRequest creates a request to invoke DescribeClusters API +func CreateDescribeClustersRequest() (request *DescribeClustersRequest) { + request = &DescribeClustersRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusters", "/clusters", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeClustersResponse creates a response to parse from DescribeClusters response +func CreateDescribeClustersResponse() (response *DescribeClustersResponse) { + response = &DescribeClustersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_images.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_images.go new file mode 100644 index 0000000..6e2b3ed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_images.go @@ -0,0 +1,104 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeImages invokes the cs.DescribeImages API synchronously +// api document: https://help.aliyun.com/api/cs/describeimages.html +func (client *Client) DescribeImages(request *DescribeImagesRequest) (response *DescribeImagesResponse, err error) { + response = CreateDescribeImagesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeImagesWithChan invokes the cs.DescribeImages API asynchronously +// api document: https://help.aliyun.com/api/cs/describeimages.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeImagesWithChan(request *DescribeImagesRequest) (<-chan *DescribeImagesResponse, <-chan error) { + responseChan := make(chan *DescribeImagesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeImages(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeImagesWithCallback invokes the cs.DescribeImages API asynchronously +// api document: https://help.aliyun.com/api/cs/describeimages.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeImagesWithCallback(request *DescribeImagesRequest, callback func(response *DescribeImagesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeImagesResponse + var err error + defer close(result) + response, err = client.DescribeImages(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeImagesRequest is the request struct for api DescribeImages +type DescribeImagesRequest struct { + *requests.RoaRequest + DockerVersion string `position:"Query" name:"DockerVersion"` + ImageName string `position:"Query" name:"ImageName"` +} + +// DescribeImagesResponse is the response struct for api DescribeImages +type DescribeImagesResponse struct { + *responses.BaseResponse +} + +// CreateDescribeImagesRequest creates a request to invoke DescribeImages API +func CreateDescribeImagesRequest() (request *DescribeImagesRequest) { + request = &DescribeImagesRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeImages", "/images", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeImagesResponse creates a response to parse from DescribeImages response +func CreateDescribeImagesResponse() (response *DescribeImagesResponse) { + response = &DescribeImagesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_kubernetes_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_kubernetes_template.go new file mode 100644 index 0000000..c5e2624 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_kubernetes_template.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeKubernetesTemplate invokes the cs.DescribeKubernetesTemplate API synchronously +// api document: https://help.aliyun.com/api/cs/describekubernetestemplate.html +func (client *Client) DescribeKubernetesTemplate(request *DescribeKubernetesTemplateRequest) (response *DescribeKubernetesTemplateResponse, err error) { + response = CreateDescribeKubernetesTemplateResponse() + err = client.DoAction(request, response) + return +} + +// DescribeKubernetesTemplateWithChan invokes the cs.DescribeKubernetesTemplate API asynchronously +// api document: https://help.aliyun.com/api/cs/describekubernetestemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeKubernetesTemplateWithChan(request *DescribeKubernetesTemplateRequest) (<-chan *DescribeKubernetesTemplateResponse, <-chan error) { + responseChan := make(chan *DescribeKubernetesTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeKubernetesTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeKubernetesTemplateWithCallback invokes the cs.DescribeKubernetesTemplate API asynchronously +// api document: https://help.aliyun.com/api/cs/describekubernetestemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeKubernetesTemplateWithCallback(request *DescribeKubernetesTemplateRequest, callback func(response *DescribeKubernetesTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeKubernetesTemplateResponse + var err error + defer close(result) + response, err = client.DescribeKubernetesTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeKubernetesTemplateRequest is the request struct for api DescribeKubernetesTemplate +type DescribeKubernetesTemplateRequest struct { + *requests.RoaRequest + ClusterId string `position:"Path" name:"ClusterId"` +} + +// DescribeKubernetesTemplateResponse is the response struct for api DescribeKubernetesTemplate +type DescribeKubernetesTemplateResponse struct { + *responses.BaseResponse +} + +// CreateDescribeKubernetesTemplateRequest creates a request to invoke DescribeKubernetesTemplate API +func CreateDescribeKubernetesTemplateRequest() (request *DescribeKubernetesTemplateRequest) { + request = &DescribeKubernetesTemplateRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeKubernetesTemplate", "/k8s/templates/[ClusterId]", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeKubernetesTemplateResponse creates a response to parse from DescribeKubernetesTemplate response +func CreateDescribeKubernetesTemplateResponse() (response *DescribeKubernetesTemplateResponse) { + response = &DescribeKubernetesTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_kubernetes_templates.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_kubernetes_templates.go new file mode 100644 index 0000000..c6e3694 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_kubernetes_templates.go @@ -0,0 +1,104 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeKubernetesTemplates invokes the cs.DescribeKubernetesTemplates API synchronously +// api document: https://help.aliyun.com/api/cs/describekubernetestemplates.html +func (client *Client) DescribeKubernetesTemplates(request *DescribeKubernetesTemplatesRequest) (response *DescribeKubernetesTemplatesResponse, err error) { + response = CreateDescribeKubernetesTemplatesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeKubernetesTemplatesWithChan invokes the cs.DescribeKubernetesTemplates API asynchronously +// api document: https://help.aliyun.com/api/cs/describekubernetestemplates.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeKubernetesTemplatesWithChan(request *DescribeKubernetesTemplatesRequest) (<-chan *DescribeKubernetesTemplatesResponse, <-chan error) { + responseChan := make(chan *DescribeKubernetesTemplatesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeKubernetesTemplates(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeKubernetesTemplatesWithCallback invokes the cs.DescribeKubernetesTemplates API asynchronously +// api document: https://help.aliyun.com/api/cs/describekubernetestemplates.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeKubernetesTemplatesWithCallback(request *DescribeKubernetesTemplatesRequest, callback func(response *DescribeKubernetesTemplatesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeKubernetesTemplatesResponse + var err error + defer close(result) + response, err = client.DescribeKubernetesTemplates(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeKubernetesTemplatesRequest is the request struct for api DescribeKubernetesTemplates +type DescribeKubernetesTemplatesRequest struct { + *requests.RoaRequest + KubernetesVersion string `position:"Query" name:"KubernetesVersion"` + Region string `position:"Query" name:"Region"` +} + +// DescribeKubernetesTemplatesResponse is the response struct for api DescribeKubernetesTemplates +type DescribeKubernetesTemplatesResponse struct { + *responses.BaseResponse +} + +// CreateDescribeKubernetesTemplatesRequest creates a request to invoke DescribeKubernetesTemplates API +func CreateDescribeKubernetesTemplatesRequest() (request *DescribeKubernetesTemplatesRequest) { + request = &DescribeKubernetesTemplatesRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeKubernetesTemplates", "/k8s/templates", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeKubernetesTemplatesResponse creates a response to parse from DescribeKubernetesTemplates response +func CreateDescribeKubernetesTemplatesResponse() (response *DescribeKubernetesTemplatesResponse) { + response = &DescribeKubernetesTemplatesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_service_containers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_service_containers.go new file mode 100644 index 0000000..aea2f32 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_service_containers.go @@ -0,0 +1,104 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeServiceContainers invokes the cs.DescribeServiceContainers API synchronously +// api document: https://help.aliyun.com/api/cs/describeservicecontainers.html +func (client *Client) DescribeServiceContainers(request *DescribeServiceContainersRequest) (response *DescribeServiceContainersResponse, err error) { + response = CreateDescribeServiceContainersResponse() + err = client.DoAction(request, response) + return +} + +// DescribeServiceContainersWithChan invokes the cs.DescribeServiceContainers API asynchronously +// api document: https://help.aliyun.com/api/cs/describeservicecontainers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeServiceContainersWithChan(request *DescribeServiceContainersRequest) (<-chan *DescribeServiceContainersResponse, <-chan error) { + responseChan := make(chan *DescribeServiceContainersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeServiceContainers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeServiceContainersWithCallback invokes the cs.DescribeServiceContainers API asynchronously +// api document: https://help.aliyun.com/api/cs/describeservicecontainers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeServiceContainersWithCallback(request *DescribeServiceContainersRequest, callback func(response *DescribeServiceContainersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeServiceContainersResponse + var err error + defer close(result) + response, err = client.DescribeServiceContainers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeServiceContainersRequest is the request struct for api DescribeServiceContainers +type DescribeServiceContainersRequest struct { + *requests.RoaRequest + ClusterId string `position:"Path" name:"ClusterId"` + ServiceId string `position:"Path" name:"ServiceId"` +} + +// DescribeServiceContainersResponse is the response struct for api DescribeServiceContainers +type DescribeServiceContainersResponse struct { + *responses.BaseResponse +} + +// CreateDescribeServiceContainersRequest creates a request to invoke DescribeServiceContainers API +func CreateDescribeServiceContainersRequest() (request *DescribeServiceContainersRequest) { + request = &DescribeServiceContainersRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeServiceContainers", "/clusters/[ClusterId]/services/[ServiceId]/containers", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeServiceContainersResponse creates a response to parse from DescribeServiceContainers response +func CreateDescribeServiceContainersResponse() (response *DescribeServiceContainersResponse) { + response = &DescribeServiceContainersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_task_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_task_info.go new file mode 100644 index 0000000..bb968df --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_task_info.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeTaskInfo invokes the cs.DescribeTaskInfo API synchronously +// api document: https://help.aliyun.com/api/cs/describetaskinfo.html +func (client *Client) DescribeTaskInfo(request *DescribeTaskInfoRequest) (response *DescribeTaskInfoResponse, err error) { + response = CreateDescribeTaskInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeTaskInfoWithChan invokes the cs.DescribeTaskInfo API asynchronously +// api document: https://help.aliyun.com/api/cs/describetaskinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTaskInfoWithChan(request *DescribeTaskInfoRequest) (<-chan *DescribeTaskInfoResponse, <-chan error) { + responseChan := make(chan *DescribeTaskInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeTaskInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeTaskInfoWithCallback invokes the cs.DescribeTaskInfo API asynchronously +// api document: https://help.aliyun.com/api/cs/describetaskinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTaskInfoWithCallback(request *DescribeTaskInfoRequest, callback func(response *DescribeTaskInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeTaskInfoResponse + var err error + defer close(result) + response, err = client.DescribeTaskInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeTaskInfoRequest is the request struct for api DescribeTaskInfo +type DescribeTaskInfoRequest struct { + *requests.RoaRequest + TaskId string `position:"Path" name:"TaskId"` +} + +// DescribeTaskInfoResponse is the response struct for api DescribeTaskInfo +type DescribeTaskInfoResponse struct { + *responses.BaseResponse +} + +// CreateDescribeTaskInfoRequest creates a request to invoke DescribeTaskInfo API +func CreateDescribeTaskInfoRequest() (request *DescribeTaskInfoRequest) { + request = &DescribeTaskInfoRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeTaskInfo", "/tasks/[TaskId]", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeTaskInfoResponse creates a response to parse from DescribeTaskInfo response +func CreateDescribeTaskInfoResponse() (response *DescribeTaskInfoResponse) { + response = &DescribeTaskInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_template_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_template_attribute.go new file mode 100644 index 0000000..689e82a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_template_attribute.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeTemplateAttribute invokes the cs.DescribeTemplateAttribute API synchronously +// api document: https://help.aliyun.com/api/cs/describetemplateattribute.html +func (client *Client) DescribeTemplateAttribute(request *DescribeTemplateAttributeRequest) (response *DescribeTemplateAttributeResponse, err error) { + response = CreateDescribeTemplateAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeTemplateAttributeWithChan invokes the cs.DescribeTemplateAttribute API asynchronously +// api document: https://help.aliyun.com/api/cs/describetemplateattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTemplateAttributeWithChan(request *DescribeTemplateAttributeRequest) (<-chan *DescribeTemplateAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeTemplateAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeTemplateAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeTemplateAttributeWithCallback invokes the cs.DescribeTemplateAttribute API asynchronously +// api document: https://help.aliyun.com/api/cs/describetemplateattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTemplateAttributeWithCallback(request *DescribeTemplateAttributeRequest, callback func(response *DescribeTemplateAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeTemplateAttributeResponse + var err error + defer close(result) + response, err = client.DescribeTemplateAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeTemplateAttributeRequest is the request struct for api DescribeTemplateAttribute +type DescribeTemplateAttributeRequest struct { + *requests.RoaRequest + TemplateId string `position:"Path" name:"TemplateId"` +} + +// DescribeTemplateAttributeResponse is the response struct for api DescribeTemplateAttribute +type DescribeTemplateAttributeResponse struct { + *responses.BaseResponse +} + +// CreateDescribeTemplateAttributeRequest creates a request to invoke DescribeTemplateAttribute API +func CreateDescribeTemplateAttributeRequest() (request *DescribeTemplateAttributeRequest) { + request = &DescribeTemplateAttributeRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeTemplateAttribute", "/templates/[TemplateId]", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeTemplateAttributeResponse creates a response to parse from DescribeTemplateAttribute response +func CreateDescribeTemplateAttributeResponse() (response *DescribeTemplateAttributeResponse) { + response = &DescribeTemplateAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_templates.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_templates.go new file mode 100644 index 0000000..a24131b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_templates.go @@ -0,0 +1,102 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeTemplates invokes the cs.DescribeTemplates API synchronously +// api document: https://help.aliyun.com/api/cs/describetemplates.html +func (client *Client) DescribeTemplates(request *DescribeTemplatesRequest) (response *DescribeTemplatesResponse, err error) { + response = CreateDescribeTemplatesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeTemplatesWithChan invokes the cs.DescribeTemplates API asynchronously +// api document: https://help.aliyun.com/api/cs/describetemplates.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTemplatesWithChan(request *DescribeTemplatesRequest) (<-chan *DescribeTemplatesResponse, <-chan error) { + responseChan := make(chan *DescribeTemplatesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeTemplates(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeTemplatesWithCallback invokes the cs.DescribeTemplates API asynchronously +// api document: https://help.aliyun.com/api/cs/describetemplates.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTemplatesWithCallback(request *DescribeTemplatesRequest, callback func(response *DescribeTemplatesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeTemplatesResponse + var err error + defer close(result) + response, err = client.DescribeTemplates(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeTemplatesRequest is the request struct for api DescribeTemplates +type DescribeTemplatesRequest struct { + *requests.RoaRequest +} + +// DescribeTemplatesResponse is the response struct for api DescribeTemplates +type DescribeTemplatesResponse struct { + *responses.BaseResponse +} + +// CreateDescribeTemplatesRequest creates a request to invoke DescribeTemplates API +func CreateDescribeTemplatesRequest() (request *DescribeTemplatesRequest) { + request = &DescribeTemplatesRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeTemplates", "/templates", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeTemplatesResponse creates a response to parse from DescribeTemplates response +func CreateDescribeTemplatesResponse() (response *DescribeTemplatesResponse) { + response = &DescribeTemplatesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_user_containers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_user_containers.go new file mode 100644 index 0000000..43a0705 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/describe_user_containers.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeUserContainers invokes the cs.DescribeUserContainers API synchronously +// api document: https://help.aliyun.com/api/cs/describeusercontainers.html +func (client *Client) DescribeUserContainers(request *DescribeUserContainersRequest) (response *DescribeUserContainersResponse, err error) { + response = CreateDescribeUserContainersResponse() + err = client.DoAction(request, response) + return +} + +// DescribeUserContainersWithChan invokes the cs.DescribeUserContainers API asynchronously +// api document: https://help.aliyun.com/api/cs/describeusercontainers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserContainersWithChan(request *DescribeUserContainersRequest) (<-chan *DescribeUserContainersResponse, <-chan error) { + responseChan := make(chan *DescribeUserContainersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeUserContainers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeUserContainersWithCallback invokes the cs.DescribeUserContainers API asynchronously +// api document: https://help.aliyun.com/api/cs/describeusercontainers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserContainersWithCallback(request *DescribeUserContainersRequest, callback func(response *DescribeUserContainersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeUserContainersResponse + var err error + defer close(result) + response, err = client.DescribeUserContainers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeUserContainersRequest is the request struct for api DescribeUserContainers +type DescribeUserContainersRequest struct { + *requests.RoaRequest + ServiceId string `position:"Query" name:"ServiceId"` +} + +// DescribeUserContainersResponse is the response struct for api DescribeUserContainers +type DescribeUserContainersResponse struct { + *responses.BaseResponse +} + +// CreateDescribeUserContainersRequest creates a request to invoke DescribeUserContainers API +func CreateDescribeUserContainersRequest() (request *DescribeUserContainersRequest) { + request = &DescribeUserContainersRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DescribeUserContainers", "/region/[RegionId]/containers", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeUserContainersResponse creates a response to parse from DescribeUserContainers response +func CreateDescribeUserContainersResponse() (response *DescribeUserContainersResponse) { + response = &DescribeUserContainersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/download_cluster_node_certs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/download_cluster_node_certs.go new file mode 100644 index 0000000..57ca32d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/download_cluster_node_certs.go @@ -0,0 +1,104 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DownloadClusterNodeCerts invokes the cs.DownloadClusterNodeCerts API synchronously +// api document: https://help.aliyun.com/api/cs/downloadclusternodecerts.html +func (client *Client) DownloadClusterNodeCerts(request *DownloadClusterNodeCertsRequest) (response *DownloadClusterNodeCertsResponse, err error) { + response = CreateDownloadClusterNodeCertsResponse() + err = client.DoAction(request, response) + return +} + +// DownloadClusterNodeCertsWithChan invokes the cs.DownloadClusterNodeCerts API asynchronously +// api document: https://help.aliyun.com/api/cs/downloadclusternodecerts.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DownloadClusterNodeCertsWithChan(request *DownloadClusterNodeCertsRequest) (<-chan *DownloadClusterNodeCertsResponse, <-chan error) { + responseChan := make(chan *DownloadClusterNodeCertsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DownloadClusterNodeCerts(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DownloadClusterNodeCertsWithCallback invokes the cs.DownloadClusterNodeCerts API asynchronously +// api document: https://help.aliyun.com/api/cs/downloadclusternodecerts.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DownloadClusterNodeCertsWithCallback(request *DownloadClusterNodeCertsRequest, callback func(response *DownloadClusterNodeCertsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DownloadClusterNodeCertsResponse + var err error + defer close(result) + response, err = client.DownloadClusterNodeCerts(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DownloadClusterNodeCertsRequest is the request struct for api DownloadClusterNodeCerts +type DownloadClusterNodeCertsRequest struct { + *requests.RoaRequest + Token string `position:"Path" name:"Token"` + NodeId string `position:"Path" name:"NodeId"` +} + +// DownloadClusterNodeCertsResponse is the response struct for api DownloadClusterNodeCerts +type DownloadClusterNodeCertsResponse struct { + *responses.BaseResponse +} + +// CreateDownloadClusterNodeCertsRequest creates a request to invoke DownloadClusterNodeCerts API +func CreateDownloadClusterNodeCertsRequest() (request *DownloadClusterNodeCertsRequest) { + request = &DownloadClusterNodeCertsRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "DownloadClusterNodeCerts", "/token/[Token]/nodes/[NodeId]/certs", "", "") + request.Method = requests.GET + return +} + +// CreateDownloadClusterNodeCertsResponse creates a response to parse from DownloadClusterNodeCerts response +func CreateDownloadClusterNodeCertsResponse() (response *DownloadClusterNodeCertsResponse) { + response = &DownloadClusterNodeCertsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/gather_logs_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/gather_logs_token.go new file mode 100644 index 0000000..bdaedea --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/gather_logs_token.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GatherLogsToken invokes the cs.GatherLogsToken API synchronously +// api document: https://help.aliyun.com/api/cs/gatherlogstoken.html +func (client *Client) GatherLogsToken(request *GatherLogsTokenRequest) (response *GatherLogsTokenResponse, err error) { + response = CreateGatherLogsTokenResponse() + err = client.DoAction(request, response) + return +} + +// GatherLogsTokenWithChan invokes the cs.GatherLogsToken API asynchronously +// api document: https://help.aliyun.com/api/cs/gatherlogstoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GatherLogsTokenWithChan(request *GatherLogsTokenRequest) (<-chan *GatherLogsTokenResponse, <-chan error) { + responseChan := make(chan *GatherLogsTokenResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GatherLogsToken(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GatherLogsTokenWithCallback invokes the cs.GatherLogsToken API asynchronously +// api document: https://help.aliyun.com/api/cs/gatherlogstoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GatherLogsTokenWithCallback(request *GatherLogsTokenRequest, callback func(response *GatherLogsTokenResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GatherLogsTokenResponse + var err error + defer close(result) + response, err = client.GatherLogsToken(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GatherLogsTokenRequest is the request struct for api GatherLogsToken +type GatherLogsTokenRequest struct { + *requests.RoaRequest + Token string `position:"Path" name:"Token"` +} + +// GatherLogsTokenResponse is the response struct for api GatherLogsToken +type GatherLogsTokenResponse struct { + *responses.BaseResponse +} + +// CreateGatherLogsTokenRequest creates a request to invoke GatherLogsToken API +func CreateGatherLogsTokenRequest() (request *GatherLogsTokenRequest) { + request = &GatherLogsTokenRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "GatherLogsToken", "/token/[Token]/gather_logs", "", "") + request.Method = requests.POST + return +} + +// CreateGatherLogsTokenResponse creates a response to parse from GatherLogsToken response +func CreateGatherLogsTokenResponse() (response *GatherLogsTokenResponse) { + response = &GatherLogsTokenResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/get_cluster_projects.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/get_cluster_projects.go new file mode 100644 index 0000000..216162c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/get_cluster_projects.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetClusterProjects invokes the cs.GetClusterProjects API synchronously +// api document: https://help.aliyun.com/api/cs/getclusterprojects.html +func (client *Client) GetClusterProjects(request *GetClusterProjectsRequest) (response *GetClusterProjectsResponse, err error) { + response = CreateGetClusterProjectsResponse() + err = client.DoAction(request, response) + return +} + +// GetClusterProjectsWithChan invokes the cs.GetClusterProjects API asynchronously +// api document: https://help.aliyun.com/api/cs/getclusterprojects.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetClusterProjectsWithChan(request *GetClusterProjectsRequest) (<-chan *GetClusterProjectsResponse, <-chan error) { + responseChan := make(chan *GetClusterProjectsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetClusterProjects(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetClusterProjectsWithCallback invokes the cs.GetClusterProjects API asynchronously +// api document: https://help.aliyun.com/api/cs/getclusterprojects.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetClusterProjectsWithCallback(request *GetClusterProjectsRequest, callback func(response *GetClusterProjectsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetClusterProjectsResponse + var err error + defer close(result) + response, err = client.GetClusterProjects(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetClusterProjectsRequest is the request struct for api GetClusterProjects +type GetClusterProjectsRequest struct { + *requests.RoaRequest + ClusterId string `position:"Path" name:"ClusterId"` +} + +// GetClusterProjectsResponse is the response struct for api GetClusterProjects +type GetClusterProjectsResponse struct { + *responses.BaseResponse +} + +// CreateGetClusterProjectsRequest creates a request to invoke GetClusterProjects API +func CreateGetClusterProjectsRequest() (request *GetClusterProjectsRequest) { + request = &GetClusterProjectsRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "GetClusterProjects", "/clusters/[ClusterId]/projects", "", "") + request.Method = requests.GET + return +} + +// CreateGetClusterProjectsResponse creates a response to parse from GetClusterProjects response +func CreateGetClusterProjectsResponse() (response *GetClusterProjectsResponse) { + response = &GetClusterProjectsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/get_project_events.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/get_project_events.go new file mode 100644 index 0000000..c81b595 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/get_project_events.go @@ -0,0 +1,104 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetProjectEvents invokes the cs.GetProjectEvents API synchronously +// api document: https://help.aliyun.com/api/cs/getprojectevents.html +func (client *Client) GetProjectEvents(request *GetProjectEventsRequest) (response *GetProjectEventsResponse, err error) { + response = CreateGetProjectEventsResponse() + err = client.DoAction(request, response) + return +} + +// GetProjectEventsWithChan invokes the cs.GetProjectEvents API asynchronously +// api document: https://help.aliyun.com/api/cs/getprojectevents.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetProjectEventsWithChan(request *GetProjectEventsRequest) (<-chan *GetProjectEventsResponse, <-chan error) { + responseChan := make(chan *GetProjectEventsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetProjectEvents(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetProjectEventsWithCallback invokes the cs.GetProjectEvents API asynchronously +// api document: https://help.aliyun.com/api/cs/getprojectevents.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetProjectEventsWithCallback(request *GetProjectEventsRequest, callback func(response *GetProjectEventsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetProjectEventsResponse + var err error + defer close(result) + response, err = client.GetProjectEvents(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetProjectEventsRequest is the request struct for api GetProjectEvents +type GetProjectEventsRequest struct { + *requests.RoaRequest + ClusterId string `position:"Path" name:"ClusterId"` + ProjectId string `position:"Path" name:"ProjectId"` +} + +// GetProjectEventsResponse is the response struct for api GetProjectEvents +type GetProjectEventsResponse struct { + *responses.BaseResponse +} + +// CreateGetProjectEventsRequest creates a request to invoke GetProjectEvents API +func CreateGetProjectEventsRequest() (request *GetProjectEventsRequest) { + request = &GetProjectEventsRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "GetProjectEvents", "/clusters/[ClusterId]/projects/[ProjectId]/events", "", "") + request.Method = requests.GET + return +} + +// CreateGetProjectEventsResponse creates a response to parse from GetProjectEvents response +func CreateGetProjectEventsResponse() (response *GetProjectEventsResponse) { + response = &GetProjectEventsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/get_trigger_hook.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/get_trigger_hook.go new file mode 100644 index 0000000..11e5a0c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/get_trigger_hook.go @@ -0,0 +1,104 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetTriggerHook invokes the cs.GetTriggerHook API synchronously +// api document: https://help.aliyun.com/api/cs/gettriggerhook.html +func (client *Client) GetTriggerHook(request *GetTriggerHookRequest) (response *GetTriggerHookResponse, err error) { + response = CreateGetTriggerHookResponse() + err = client.DoAction(request, response) + return +} + +// GetTriggerHookWithChan invokes the cs.GetTriggerHook API asynchronously +// api document: https://help.aliyun.com/api/cs/gettriggerhook.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetTriggerHookWithChan(request *GetTriggerHookRequest) (<-chan *GetTriggerHookResponse, <-chan error) { + responseChan := make(chan *GetTriggerHookResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetTriggerHook(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetTriggerHookWithCallback invokes the cs.GetTriggerHook API asynchronously +// api document: https://help.aliyun.com/api/cs/gettriggerhook.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetTriggerHookWithCallback(request *GetTriggerHookRequest, callback func(response *GetTriggerHookResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetTriggerHookResponse + var err error + defer close(result) + response, err = client.GetTriggerHook(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetTriggerHookRequest is the request struct for api GetTriggerHook +type GetTriggerHookRequest struct { + *requests.RoaRequest + ClusterId string `position:"Path" name:"ClusterId"` + ProjectId string `position:"Path" name:"ProjectId"` +} + +// GetTriggerHookResponse is the response struct for api GetTriggerHook +type GetTriggerHookResponse struct { + *responses.BaseResponse +} + +// CreateGetTriggerHookRequest creates a request to invoke GetTriggerHook API +func CreateGetTriggerHookRequest() (request *GetTriggerHookRequest) { + request = &GetTriggerHookRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "GetTriggerHook", "/hook/trigger/[ClusterId]/[ProjectId]", "", "") + request.Method = requests.GET + return +} + +// CreateGetTriggerHookResponse creates a response to parse from GetTriggerHook response +func CreateGetTriggerHookResponse() (response *GetTriggerHookResponse) { + response = &GetTriggerHookResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/modify_cluster_name.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/modify_cluster_name.go new file mode 100644 index 0000000..aa51e35 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/modify_cluster_name.go @@ -0,0 +1,102 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyClusterName invokes the cs.ModifyClusterName API synchronously +// api document: https://help.aliyun.com/api/cs/modifyclustername.html +func (client *Client) ModifyClusterName(request *ModifyClusterNameRequest) (response *ModifyClusterNameResponse, err error) { + response = CreateModifyClusterNameResponse() + err = client.DoAction(request, response) + return +} + +// ModifyClusterNameWithChan invokes the cs.ModifyClusterName API asynchronously +// api document: https://help.aliyun.com/api/cs/modifyclustername.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyClusterNameWithChan(request *ModifyClusterNameRequest) (<-chan *ModifyClusterNameResponse, <-chan error) { + responseChan := make(chan *ModifyClusterNameResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyClusterName(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyClusterNameWithCallback invokes the cs.ModifyClusterName API asynchronously +// api document: https://help.aliyun.com/api/cs/modifyclustername.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyClusterNameWithCallback(request *ModifyClusterNameRequest, callback func(response *ModifyClusterNameResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyClusterNameResponse + var err error + defer close(result) + response, err = client.ModifyClusterName(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyClusterNameRequest is the request struct for api ModifyClusterName +type ModifyClusterNameRequest struct { + *requests.RoaRequest +} + +// ModifyClusterNameResponse is the response struct for api ModifyClusterName +type ModifyClusterNameResponse struct { + *responses.BaseResponse +} + +// CreateModifyClusterNameRequest creates a request to invoke ModifyClusterName API +func CreateModifyClusterNameRequest() (request *ModifyClusterNameRequest) { + request = &ModifyClusterNameRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "ModifyClusterName", "/clusters/[ClusterId]/name/[ClusterName]", "", "") + request.Method = requests.POST + return +} + +// CreateModifyClusterNameResponse creates a response to parse from ModifyClusterName response +func CreateModifyClusterNameResponse() (response *ModifyClusterNameResponse) { + response = &ModifyClusterNameResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/reset_cluster_node.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/reset_cluster_node.go new file mode 100644 index 0000000..3b370ba --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/reset_cluster_node.go @@ -0,0 +1,104 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ResetClusterNode invokes the cs.ResetClusterNode API synchronously +// api document: https://help.aliyun.com/api/cs/resetclusternode.html +func (client *Client) ResetClusterNode(request *ResetClusterNodeRequest) (response *ResetClusterNodeResponse, err error) { + response = CreateResetClusterNodeResponse() + err = client.DoAction(request, response) + return +} + +// ResetClusterNodeWithChan invokes the cs.ResetClusterNode API asynchronously +// api document: https://help.aliyun.com/api/cs/resetclusternode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResetClusterNodeWithChan(request *ResetClusterNodeRequest) (<-chan *ResetClusterNodeResponse, <-chan error) { + responseChan := make(chan *ResetClusterNodeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ResetClusterNode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ResetClusterNodeWithCallback invokes the cs.ResetClusterNode API asynchronously +// api document: https://help.aliyun.com/api/cs/resetclusternode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResetClusterNodeWithCallback(request *ResetClusterNodeRequest, callback func(response *ResetClusterNodeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ResetClusterNodeResponse + var err error + defer close(result) + response, err = client.ResetClusterNode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ResetClusterNodeRequest is the request struct for api ResetClusterNode +type ResetClusterNodeRequest struct { + *requests.RoaRequest + ClusterId string `position:"Path" name:"ClusterId"` + InstanceId string `position:"Path" name:"InstanceId"` +} + +// ResetClusterNodeResponse is the response struct for api ResetClusterNode +type ResetClusterNodeResponse struct { + *responses.BaseResponse +} + +// CreateResetClusterNodeRequest creates a request to invoke ResetClusterNode API +func CreateResetClusterNodeRequest() (request *ResetClusterNodeRequest) { + request = &ResetClusterNodeRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "ResetClusterNode", "/clusters/[ClusterId]/instances/[InstanceId]/reset", "", "") + request.Method = requests.POST + return +} + +// CreateResetClusterNodeResponse creates a response to parse from ResetClusterNode response +func CreateResetClusterNodeResponse() (response *ResetClusterNodeResponse) { + response = &ResetClusterNodeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/revoke_cluster_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/revoke_cluster_token.go new file mode 100644 index 0000000..5ed540c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/revoke_cluster_token.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RevokeClusterToken invokes the cs.RevokeClusterToken API synchronously +// api document: https://help.aliyun.com/api/cs/revokeclustertoken.html +func (client *Client) RevokeClusterToken(request *RevokeClusterTokenRequest) (response *RevokeClusterTokenResponse, err error) { + response = CreateRevokeClusterTokenResponse() + err = client.DoAction(request, response) + return +} + +// RevokeClusterTokenWithChan invokes the cs.RevokeClusterToken API asynchronously +// api document: https://help.aliyun.com/api/cs/revokeclustertoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RevokeClusterTokenWithChan(request *RevokeClusterTokenRequest) (<-chan *RevokeClusterTokenResponse, <-chan error) { + responseChan := make(chan *RevokeClusterTokenResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RevokeClusterToken(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RevokeClusterTokenWithCallback invokes the cs.RevokeClusterToken API asynchronously +// api document: https://help.aliyun.com/api/cs/revokeclustertoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RevokeClusterTokenWithCallback(request *RevokeClusterTokenRequest, callback func(response *RevokeClusterTokenResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RevokeClusterTokenResponse + var err error + defer close(result) + response, err = client.RevokeClusterToken(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RevokeClusterTokenRequest is the request struct for api RevokeClusterToken +type RevokeClusterTokenRequest struct { + *requests.RoaRequest + Token string `position:"Path" name:"Token"` +} + +// RevokeClusterTokenResponse is the response struct for api RevokeClusterToken +type RevokeClusterTokenResponse struct { + *responses.BaseResponse +} + +// CreateRevokeClusterTokenRequest creates a request to invoke RevokeClusterToken API +func CreateRevokeClusterTokenRequest() (request *RevokeClusterTokenRequest) { + request = &RevokeClusterTokenRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "RevokeClusterToken", "/token/[Token]/revoke", "", "") + request.Method = requests.DELETE + return +} + +// CreateRevokeClusterTokenResponse creates a response to parse from RevokeClusterToken response +func CreateRevokeClusterTokenResponse() (response *RevokeClusterTokenResponse) { + response = &RevokeClusterTokenResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/scale_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/scale_cluster.go new file mode 100644 index 0000000..e564db7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/scale_cluster.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ScaleCluster invokes the cs.ScaleCluster API synchronously +// api document: https://help.aliyun.com/api/cs/scalecluster.html +func (client *Client) ScaleCluster(request *ScaleClusterRequest) (response *ScaleClusterResponse, err error) { + response = CreateScaleClusterResponse() + err = client.DoAction(request, response) + return +} + +// ScaleClusterWithChan invokes the cs.ScaleCluster API asynchronously +// api document: https://help.aliyun.com/api/cs/scalecluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ScaleClusterWithChan(request *ScaleClusterRequest) (<-chan *ScaleClusterResponse, <-chan error) { + responseChan := make(chan *ScaleClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ScaleCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ScaleClusterWithCallback invokes the cs.ScaleCluster API asynchronously +// api document: https://help.aliyun.com/api/cs/scalecluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ScaleClusterWithCallback(request *ScaleClusterRequest, callback func(response *ScaleClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ScaleClusterResponse + var err error + defer close(result) + response, err = client.ScaleCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ScaleClusterRequest is the request struct for api ScaleCluster +type ScaleClusterRequest struct { + *requests.RoaRequest + ClusterId string `position:"Path" name:"ClusterId"` +} + +// ScaleClusterResponse is the response struct for api ScaleCluster +type ScaleClusterResponse struct { + *responses.BaseResponse +} + +// CreateScaleClusterRequest creates a request to invoke ScaleCluster API +func CreateScaleClusterRequest() (request *ScaleClusterRequest) { + request = &ScaleClusterRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "ScaleCluster", "/clusters/[ClusterId]", "", "") + request.Method = requests.PUT + return +} + +// CreateScaleClusterResponse creates a response to parse from ScaleCluster response +func CreateScaleClusterResponse() (response *ScaleClusterResponse) { + response = &ScaleClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/scale_in_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/scale_in_cluster.go new file mode 100644 index 0000000..d710832 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/scale_in_cluster.go @@ -0,0 +1,103 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ScaleInCluster invokes the cs.ScaleInCluster API synchronously +// api document: https://help.aliyun.com/api/cs/scaleincluster.html +func (client *Client) ScaleInCluster(request *ScaleInClusterRequest) (response *ScaleInClusterResponse, err error) { + response = CreateScaleInClusterResponse() + err = client.DoAction(request, response) + return +} + +// ScaleInClusterWithChan invokes the cs.ScaleInCluster API asynchronously +// api document: https://help.aliyun.com/api/cs/scaleincluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ScaleInClusterWithChan(request *ScaleInClusterRequest) (<-chan *ScaleInClusterResponse, <-chan error) { + responseChan := make(chan *ScaleInClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ScaleInCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ScaleInClusterWithCallback invokes the cs.ScaleInCluster API asynchronously +// api document: https://help.aliyun.com/api/cs/scaleincluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ScaleInClusterWithCallback(request *ScaleInClusterRequest, callback func(response *ScaleInClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ScaleInClusterResponse + var err error + defer close(result) + response, err = client.ScaleInCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ScaleInClusterRequest is the request struct for api ScaleInCluster +type ScaleInClusterRequest struct { + *requests.RoaRequest + ClusterId string `position:"Path" name:"ClusterId"` +} + +// ScaleInClusterResponse is the response struct for api ScaleInCluster +type ScaleInClusterResponse struct { + *responses.BaseResponse +} + +// CreateScaleInClusterRequest creates a request to invoke ScaleInCluster API +func CreateScaleInClusterRequest() (request *ScaleInClusterRequest) { + request = &ScaleInClusterRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "ScaleInCluster", "/clusters/[ClusterId]/scalein", "", "") + request.Method = requests.POST + return +} + +// CreateScaleInClusterResponse creates a response to parse from ScaleInCluster response +func CreateScaleInClusterResponse() (response *ScaleInClusterResponse) { + response = &ScaleInClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/update_sub_user_resouces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/update_sub_user_resouces.go new file mode 100644 index 0000000..eb6b551 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/update_sub_user_resouces.go @@ -0,0 +1,102 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateSubUserResouces invokes the cs.UpdateSubUserResouces API synchronously +// api document: https://help.aliyun.com/api/cs/updatesubuserresouces.html +func (client *Client) UpdateSubUserResouces(request *UpdateSubUserResoucesRequest) (response *UpdateSubUserResoucesResponse, err error) { + response = CreateUpdateSubUserResoucesResponse() + err = client.DoAction(request, response) + return +} + +// UpdateSubUserResoucesWithChan invokes the cs.UpdateSubUserResouces API asynchronously +// api document: https://help.aliyun.com/api/cs/updatesubuserresouces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateSubUserResoucesWithChan(request *UpdateSubUserResoucesRequest) (<-chan *UpdateSubUserResoucesResponse, <-chan error) { + responseChan := make(chan *UpdateSubUserResoucesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateSubUserResouces(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateSubUserResoucesWithCallback invokes the cs.UpdateSubUserResouces API asynchronously +// api document: https://help.aliyun.com/api/cs/updatesubuserresouces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateSubUserResoucesWithCallback(request *UpdateSubUserResoucesRequest, callback func(response *UpdateSubUserResoucesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateSubUserResoucesResponse + var err error + defer close(result) + response, err = client.UpdateSubUserResouces(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateSubUserResoucesRequest is the request struct for api UpdateSubUserResouces +type UpdateSubUserResoucesRequest struct { + *requests.RoaRequest +} + +// UpdateSubUserResoucesResponse is the response struct for api UpdateSubUserResouces +type UpdateSubUserResoucesResponse struct { + *responses.BaseResponse +} + +// CreateUpdateSubUserResoucesRequest creates a request to invoke UpdateSubUserResouces API +func CreateUpdateSubUserResoucesRequest() (request *UpdateSubUserResoucesRequest) { + request = &UpdateSubUserResoucesRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "UpdateSubUserResouces", "/ram/resources", "", "") + request.Method = requests.POST + return +} + +// CreateUpdateSubUserResoucesResponse creates a response to parse from UpdateSubUserResouces response +func CreateUpdateSubUserResoucesResponse() (response *UpdateSubUserResoucesResponse) { + response = &UpdateSubUserResoucesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/upgrade_cluster_components.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/upgrade_cluster_components.go new file mode 100644 index 0000000..b121811 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cs/upgrade_cluster_components.go @@ -0,0 +1,104 @@ +package cs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpgradeClusterComponents invokes the cs.UpgradeClusterComponents API synchronously +// api document: https://help.aliyun.com/api/cs/upgradeclustercomponents.html +func (client *Client) UpgradeClusterComponents(request *UpgradeClusterComponentsRequest) (response *UpgradeClusterComponentsResponse, err error) { + response = CreateUpgradeClusterComponentsResponse() + err = client.DoAction(request, response) + return +} + +// UpgradeClusterComponentsWithChan invokes the cs.UpgradeClusterComponents API asynchronously +// api document: https://help.aliyun.com/api/cs/upgradeclustercomponents.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpgradeClusterComponentsWithChan(request *UpgradeClusterComponentsRequest) (<-chan *UpgradeClusterComponentsResponse, <-chan error) { + responseChan := make(chan *UpgradeClusterComponentsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpgradeClusterComponents(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpgradeClusterComponentsWithCallback invokes the cs.UpgradeClusterComponents API asynchronously +// api document: https://help.aliyun.com/api/cs/upgradeclustercomponents.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpgradeClusterComponentsWithCallback(request *UpgradeClusterComponentsRequest, callback func(response *UpgradeClusterComponentsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpgradeClusterComponentsResponse + var err error + defer close(result) + response, err = client.UpgradeClusterComponents(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpgradeClusterComponentsRequest is the request struct for api UpgradeClusterComponents +type UpgradeClusterComponentsRequest struct { + *requests.RoaRequest + ClusterId string `position:"Path" name:"ClusterId"` + ComponentId string `position:"Path" name:"ComponentId"` +} + +// UpgradeClusterComponentsResponse is the response struct for api UpgradeClusterComponents +type UpgradeClusterComponentsResponse struct { + *responses.BaseResponse +} + +// CreateUpgradeClusterComponentsRequest creates a request to invoke UpgradeClusterComponents API +func CreateUpgradeClusterComponentsRequest() (request *UpgradeClusterComponentsRequest) { + request = &UpgradeClusterComponentsRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("CS", "2015-12-15", "UpgradeClusterComponents", "/clusters/[ClusterId]/components/[ComponentId]/upgrade", "", "") + request.Method = requests.POST + return +} + +// CreateUpgradeClusterComponentsResponse creates a response to parse from UpgradeClusterComponents response +func CreateUpgradeClusterComponentsResponse() (response *UpgradeClusterComponentsResponse) { + response = &UpgradeClusterComponentsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/approve_order_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/approve_order_list.go new file mode 100644 index 0000000..3a8cf77 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/approve_order_list.go @@ -0,0 +1,105 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ApproveOrderList invokes the csb.ApproveOrderList API synchronously +// api document: https://help.aliyun.com/api/csb/approveorderlist.html +func (client *Client) ApproveOrderList(request *ApproveOrderListRequest) (response *ApproveOrderListResponse, err error) { + response = CreateApproveOrderListResponse() + err = client.DoAction(request, response) + return +} + +// ApproveOrderListWithChan invokes the csb.ApproveOrderList API asynchronously +// api document: https://help.aliyun.com/api/csb/approveorderlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ApproveOrderListWithChan(request *ApproveOrderListRequest) (<-chan *ApproveOrderListResponse, <-chan error) { + responseChan := make(chan *ApproveOrderListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ApproveOrderList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ApproveOrderListWithCallback invokes the csb.ApproveOrderList API asynchronously +// api document: https://help.aliyun.com/api/csb/approveorderlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ApproveOrderListWithCallback(request *ApproveOrderListRequest, callback func(response *ApproveOrderListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ApproveOrderListResponse + var err error + defer close(result) + response, err = client.ApproveOrderList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ApproveOrderListRequest is the request struct for api ApproveOrderList +type ApproveOrderListRequest struct { + *requests.RpcRequest + Data string `position:"Body" name:"Data"` +} + +// ApproveOrderListResponse is the response struct for api ApproveOrderList +type ApproveOrderListResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateApproveOrderListRequest creates a request to invoke ApproveOrderList API +func CreateApproveOrderListRequest() (request *ApproveOrderListRequest) { + request = &ApproveOrderListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "ApproveOrderList", "CSB", "openAPI") + return +} + +// CreateApproveOrderListResponse creates a response to parse from ApproveOrderList response +func CreateApproveOrderListResponse() (response *ApproveOrderListResponse) { + response = &ApproveOrderListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/check_service_exist.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/check_service_exist.go new file mode 100644 index 0000000..7a8e797 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/check_service_exist.go @@ -0,0 +1,107 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckServiceExist invokes the csb.CheckServiceExist API synchronously +// api document: https://help.aliyun.com/api/csb/checkserviceexist.html +func (client *Client) CheckServiceExist(request *CheckServiceExistRequest) (response *CheckServiceExistResponse, err error) { + response = CreateCheckServiceExistResponse() + err = client.DoAction(request, response) + return +} + +// CheckServiceExistWithChan invokes the csb.CheckServiceExist API asynchronously +// api document: https://help.aliyun.com/api/csb/checkserviceexist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckServiceExistWithChan(request *CheckServiceExistRequest) (<-chan *CheckServiceExistResponse, <-chan error) { + responseChan := make(chan *CheckServiceExistResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckServiceExist(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckServiceExistWithCallback invokes the csb.CheckServiceExist API asynchronously +// api document: https://help.aliyun.com/api/csb/checkserviceexist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckServiceExistWithCallback(request *CheckServiceExistRequest, callback func(response *CheckServiceExistResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckServiceExistResponse + var err error + defer close(result) + response, err = client.CheckServiceExist(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckServiceExistRequest is the request struct for api CheckServiceExist +type CheckServiceExistRequest struct { + *requests.RpcRequest + CsbId requests.Integer `position:"Query" name:"CsbId"` + ServiceName string `position:"Query" name:"ServiceName"` +} + +// CheckServiceExistResponse is the response struct for api CheckServiceExist +type CheckServiceExistResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateCheckServiceExistRequest creates a request to invoke CheckServiceExist API +func CreateCheckServiceExistRequest() (request *CheckServiceExistRequest) { + request = &CheckServiceExistRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "CheckServiceExist", "CSB", "openAPI") + return +} + +// CreateCheckServiceExistResponse creates a response to parse from CheckServiceExist response +func CreateCheckServiceExistResponse() (response *CheckServiceExistResponse) { + response = &CheckServiceExistResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/client.go new file mode 100644 index 0000000..4afc5fa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/client.go @@ -0,0 +1,81 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/commit_successed_services.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/commit_successed_services.go new file mode 100644 index 0000000..9090c3d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/commit_successed_services.go @@ -0,0 +1,106 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CommitSuccessedServices invokes the csb.CommitSuccessedServices API synchronously +// api document: https://help.aliyun.com/api/csb/commitsuccessedservices.html +func (client *Client) CommitSuccessedServices(request *CommitSuccessedServicesRequest) (response *CommitSuccessedServicesResponse, err error) { + response = CreateCommitSuccessedServicesResponse() + err = client.DoAction(request, response) + return +} + +// CommitSuccessedServicesWithChan invokes the csb.CommitSuccessedServices API asynchronously +// api document: https://help.aliyun.com/api/csb/commitsuccessedservices.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CommitSuccessedServicesWithChan(request *CommitSuccessedServicesRequest) (<-chan *CommitSuccessedServicesResponse, <-chan error) { + responseChan := make(chan *CommitSuccessedServicesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CommitSuccessedServices(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CommitSuccessedServicesWithCallback invokes the csb.CommitSuccessedServices API asynchronously +// api document: https://help.aliyun.com/api/csb/commitsuccessedservices.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CommitSuccessedServicesWithCallback(request *CommitSuccessedServicesRequest, callback func(response *CommitSuccessedServicesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CommitSuccessedServicesResponse + var err error + defer close(result) + response, err = client.CommitSuccessedServices(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CommitSuccessedServicesRequest is the request struct for api CommitSuccessedServices +type CommitSuccessedServicesRequest struct { + *requests.RpcRequest + CsbName string `position:"Query" name:"CsbName"` + Services string `position:"Body" name:"Services"` +} + +// CommitSuccessedServicesResponse is the response struct for api CommitSuccessedServices +type CommitSuccessedServicesResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCommitSuccessedServicesRequest creates a request to invoke CommitSuccessedServices API +func CreateCommitSuccessedServicesRequest() (request *CommitSuccessedServicesRequest) { + request = &CommitSuccessedServicesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "CommitSuccessedServices", "CSB", "openAPI") + return +} + +// CreateCommitSuccessedServicesResponse creates a response to parse from CommitSuccessedServices response +func CreateCommitSuccessedServicesResponse() (response *CommitSuccessedServicesResponse) { + response = &CommitSuccessedServicesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/create_credentials.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/create_credentials.go new file mode 100644 index 0000000..dd80087 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/create_credentials.go @@ -0,0 +1,107 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateCredentials invokes the csb.CreateCredentials API synchronously +// api document: https://help.aliyun.com/api/csb/createcredentials.html +func (client *Client) CreateCredentials(request *CreateCredentialsRequest) (response *CreateCredentialsResponse, err error) { + response = CreateCreateCredentialsResponse() + err = client.DoAction(request, response) + return +} + +// CreateCredentialsWithChan invokes the csb.CreateCredentials API asynchronously +// api document: https://help.aliyun.com/api/csb/createcredentials.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateCredentialsWithChan(request *CreateCredentialsRequest) (<-chan *CreateCredentialsResponse, <-chan error) { + responseChan := make(chan *CreateCredentialsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateCredentials(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateCredentialsWithCallback invokes the csb.CreateCredentials API asynchronously +// api document: https://help.aliyun.com/api/csb/createcredentials.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateCredentialsWithCallback(request *CreateCredentialsRequest, callback func(response *CreateCredentialsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateCredentialsResponse + var err error + defer close(result) + response, err = client.CreateCredentials(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateCredentialsRequest is the request struct for api CreateCredentials +type CreateCredentialsRequest struct { + *requests.RpcRequest + Data string `position:"Body" name:"Data"` + CsbId requests.Integer `position:"Query" name:"CsbId"` +} + +// CreateCredentialsResponse is the response struct for api CreateCredentials +type CreateCredentialsResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateCreateCredentialsRequest creates a request to invoke CreateCredentials API +func CreateCreateCredentialsRequest() (request *CreateCredentialsRequest) { + request = &CreateCredentialsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "CreateCredentials", "CSB", "openAPI") + return +} + +// CreateCreateCredentialsResponse creates a response to parse from CreateCredentials response +func CreateCreateCredentialsResponse() (response *CreateCredentialsResponse) { + response = &CreateCredentialsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/create_order.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/create_order.go new file mode 100644 index 0000000..1c74fda --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/create_order.go @@ -0,0 +1,107 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateOrder invokes the csb.CreateOrder API synchronously +// api document: https://help.aliyun.com/api/csb/createorder.html +func (client *Client) CreateOrder(request *CreateOrderRequest) (response *CreateOrderResponse, err error) { + response = CreateCreateOrderResponse() + err = client.DoAction(request, response) + return +} + +// CreateOrderWithChan invokes the csb.CreateOrder API asynchronously +// api document: https://help.aliyun.com/api/csb/createorder.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateOrderWithChan(request *CreateOrderRequest) (<-chan *CreateOrderResponse, <-chan error) { + responseChan := make(chan *CreateOrderResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateOrder(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateOrderWithCallback invokes the csb.CreateOrder API asynchronously +// api document: https://help.aliyun.com/api/csb/createorder.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateOrderWithCallback(request *CreateOrderRequest, callback func(response *CreateOrderResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateOrderResponse + var err error + defer close(result) + response, err = client.CreateOrder(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateOrderRequest is the request struct for api CreateOrder +type CreateOrderRequest struct { + *requests.RpcRequest + CsbId requests.Integer `position:"Query" name:"CsbId"` + Data string `position:"Body" name:"Data"` +} + +// CreateOrderResponse is the response struct for api CreateOrder +type CreateOrderResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateCreateOrderRequest creates a request to invoke CreateOrder API +func CreateCreateOrderRequest() (request *CreateOrderRequest) { + request = &CreateOrderRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "CreateOrder", "CSB", "openAPI") + return +} + +// CreateCreateOrderResponse creates a response to parse from CreateOrder response +func CreateCreateOrderResponse() (response *CreateOrderResponse) { + response = &CreateOrderResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/create_project.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/create_project.go new file mode 100644 index 0000000..9443dc0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/create_project.go @@ -0,0 +1,107 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateProject invokes the csb.CreateProject API synchronously +// api document: https://help.aliyun.com/api/csb/createproject.html +func (client *Client) CreateProject(request *CreateProjectRequest) (response *CreateProjectResponse, err error) { + response = CreateCreateProjectResponse() + err = client.DoAction(request, response) + return +} + +// CreateProjectWithChan invokes the csb.CreateProject API asynchronously +// api document: https://help.aliyun.com/api/csb/createproject.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateProjectWithChan(request *CreateProjectRequest) (<-chan *CreateProjectResponse, <-chan error) { + responseChan := make(chan *CreateProjectResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateProject(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateProjectWithCallback invokes the csb.CreateProject API asynchronously +// api document: https://help.aliyun.com/api/csb/createproject.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateProjectWithCallback(request *CreateProjectRequest, callback func(response *CreateProjectResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateProjectResponse + var err error + defer close(result) + response, err = client.CreateProject(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateProjectRequest is the request struct for api CreateProject +type CreateProjectRequest struct { + *requests.RpcRequest + CsbId requests.Integer `position:"Query" name:"CsbId"` + Data string `position:"Body" name:"Data"` +} + +// CreateProjectResponse is the response struct for api CreateProject +type CreateProjectResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateCreateProjectRequest creates a request to invoke CreateProject API +func CreateCreateProjectRequest() (request *CreateProjectRequest) { + request = &CreateProjectRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "CreateProject", "CSB", "openAPI") + return +} + +// CreateCreateProjectResponse creates a response to parse from CreateProject response +func CreateCreateProjectResponse() (response *CreateProjectResponse) { + response = &CreateProjectResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/create_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/create_service.go new file mode 100644 index 0000000..2ad4a84 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/create_service.go @@ -0,0 +1,107 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateService invokes the csb.CreateService API synchronously +// api document: https://help.aliyun.com/api/csb/createservice.html +func (client *Client) CreateService(request *CreateServiceRequest) (response *CreateServiceResponse, err error) { + response = CreateCreateServiceResponse() + err = client.DoAction(request, response) + return +} + +// CreateServiceWithChan invokes the csb.CreateService API asynchronously +// api document: https://help.aliyun.com/api/csb/createservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateServiceWithChan(request *CreateServiceRequest) (<-chan *CreateServiceResponse, <-chan error) { + responseChan := make(chan *CreateServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateServiceWithCallback invokes the csb.CreateService API asynchronously +// api document: https://help.aliyun.com/api/csb/createservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateServiceWithCallback(request *CreateServiceRequest, callback func(response *CreateServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateServiceResponse + var err error + defer close(result) + response, err = client.CreateService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateServiceRequest is the request struct for api CreateService +type CreateServiceRequest struct { + *requests.RpcRequest + CsbId requests.Integer `position:"Query" name:"CsbId"` + Data string `position:"Body" name:"Data"` +} + +// CreateServiceResponse is the response struct for api CreateService +type CreateServiceResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateCreateServiceRequest creates a request to invoke CreateService API +func CreateCreateServiceRequest() (request *CreateServiceRequest) { + request = &CreateServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "CreateService", "CSB", "openAPI") + return +} + +// CreateCreateServiceResponse creates a response to parse from CreateService response +func CreateCreateServiceResponse() (response *CreateServiceResponse) { + response = &CreateServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_cas_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_cas_service.go new file mode 100644 index 0000000..a2e0341 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_cas_service.go @@ -0,0 +1,108 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCasService invokes the csb.DeleteCasService API synchronously +// api document: https://help.aliyun.com/api/csb/deletecasservice.html +func (client *Client) DeleteCasService(request *DeleteCasServiceRequest) (response *DeleteCasServiceResponse, err error) { + response = CreateDeleteCasServiceResponse() + err = client.DoAction(request, response) + return +} + +// DeleteCasServiceWithChan invokes the csb.DeleteCasService API asynchronously +// api document: https://help.aliyun.com/api/csb/deletecasservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCasServiceWithChan(request *DeleteCasServiceRequest) (<-chan *DeleteCasServiceResponse, <-chan error) { + responseChan := make(chan *DeleteCasServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCasService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteCasServiceWithCallback invokes the csb.DeleteCasService API asynchronously +// api document: https://help.aliyun.com/api/csb/deletecasservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCasServiceWithCallback(request *DeleteCasServiceRequest, callback func(response *DeleteCasServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteCasServiceResponse + var err error + defer close(result) + response, err = client.DeleteCasService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteCasServiceRequest is the request struct for api DeleteCasService +type DeleteCasServiceRequest struct { + *requests.RpcRequest + SrcUserId string `position:"Query" name:"SrcUserId"` + CasServiceId string `position:"Query" name:"CasServiceId"` + CasCsbName string `position:"Query" name:"CasCsbName"` + LeafOnly requests.Boolean `position:"Query" name:"LeafOnly"` +} + +// DeleteCasServiceResponse is the response struct for api DeleteCasService +type DeleteCasServiceResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteCasServiceRequest creates a request to invoke DeleteCasService API +func CreateDeleteCasServiceRequest() (request *DeleteCasServiceRequest) { + request = &DeleteCasServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "DeleteCasService", "CSB", "openAPI") + return +} + +// CreateDeleteCasServiceResponse creates a response to parse from DeleteCasService response +func CreateDeleteCasServiceResponse() (response *DeleteCasServiceResponse) { + response = &DeleteCasServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_credentials_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_credentials_list.go new file mode 100644 index 0000000..c52e091 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_credentials_list.go @@ -0,0 +1,107 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCredentialsList invokes the csb.DeleteCredentialsList API synchronously +// api document: https://help.aliyun.com/api/csb/deletecredentialslist.html +func (client *Client) DeleteCredentialsList(request *DeleteCredentialsListRequest) (response *DeleteCredentialsListResponse, err error) { + response = CreateDeleteCredentialsListResponse() + err = client.DoAction(request, response) + return +} + +// DeleteCredentialsListWithChan invokes the csb.DeleteCredentialsList API asynchronously +// api document: https://help.aliyun.com/api/csb/deletecredentialslist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCredentialsListWithChan(request *DeleteCredentialsListRequest) (<-chan *DeleteCredentialsListResponse, <-chan error) { + responseChan := make(chan *DeleteCredentialsListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCredentialsList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteCredentialsListWithCallback invokes the csb.DeleteCredentialsList API asynchronously +// api document: https://help.aliyun.com/api/csb/deletecredentialslist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCredentialsListWithCallback(request *DeleteCredentialsListRequest, callback func(response *DeleteCredentialsListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteCredentialsListResponse + var err error + defer close(result) + response, err = client.DeleteCredentialsList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteCredentialsListRequest is the request struct for api DeleteCredentialsList +type DeleteCredentialsListRequest struct { + *requests.RpcRequest + Data string `position:"Body" name:"Data"` + IgnoreDauth requests.Boolean `position:"Query" name:"IgnoreDauth"` + Force requests.Boolean `position:"Query" name:"Force"` +} + +// DeleteCredentialsListResponse is the response struct for api DeleteCredentialsList +type DeleteCredentialsListResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteCredentialsListRequest creates a request to invoke DeleteCredentialsList API +func CreateDeleteCredentialsListRequest() (request *DeleteCredentialsListRequest) { + request = &DeleteCredentialsListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "DeleteCredentialsList", "CSB", "openAPI") + return +} + +// CreateDeleteCredentialsListResponse creates a response to parse from DeleteCredentialsList response +func CreateDeleteCredentialsListResponse() (response *DeleteCredentialsListResponse) { + response = &DeleteCredentialsListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_order_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_order_list.go new file mode 100644 index 0000000..2a32d4d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_order_list.go @@ -0,0 +1,105 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteOrderList invokes the csb.DeleteOrderList API synchronously +// api document: https://help.aliyun.com/api/csb/deleteorderlist.html +func (client *Client) DeleteOrderList(request *DeleteOrderListRequest) (response *DeleteOrderListResponse, err error) { + response = CreateDeleteOrderListResponse() + err = client.DoAction(request, response) + return +} + +// DeleteOrderListWithChan invokes the csb.DeleteOrderList API asynchronously +// api document: https://help.aliyun.com/api/csb/deleteorderlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteOrderListWithChan(request *DeleteOrderListRequest) (<-chan *DeleteOrderListResponse, <-chan error) { + responseChan := make(chan *DeleteOrderListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteOrderList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteOrderListWithCallback invokes the csb.DeleteOrderList API asynchronously +// api document: https://help.aliyun.com/api/csb/deleteorderlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteOrderListWithCallback(request *DeleteOrderListRequest, callback func(response *DeleteOrderListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteOrderListResponse + var err error + defer close(result) + response, err = client.DeleteOrderList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteOrderListRequest is the request struct for api DeleteOrderList +type DeleteOrderListRequest struct { + *requests.RpcRequest + Data string `position:"Body" name:"Data"` +} + +// DeleteOrderListResponse is the response struct for api DeleteOrderList +type DeleteOrderListResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteOrderListRequest creates a request to invoke DeleteOrderList API +func CreateDeleteOrderListRequest() (request *DeleteOrderListRequest) { + request = &DeleteOrderListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "DeleteOrderList", "CSB", "openAPI") + return +} + +// CreateDeleteOrderListResponse creates a response to parse from DeleteOrderList response +func CreateDeleteOrderListResponse() (response *DeleteOrderListResponse) { + response = &DeleteOrderListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_project.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_project.go new file mode 100644 index 0000000..dcbe18c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_project.go @@ -0,0 +1,106 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteProject invokes the csb.DeleteProject API synchronously +// api document: https://help.aliyun.com/api/csb/deleteproject.html +func (client *Client) DeleteProject(request *DeleteProjectRequest) (response *DeleteProjectResponse, err error) { + response = CreateDeleteProjectResponse() + err = client.DoAction(request, response) + return +} + +// DeleteProjectWithChan invokes the csb.DeleteProject API asynchronously +// api document: https://help.aliyun.com/api/csb/deleteproject.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteProjectWithChan(request *DeleteProjectRequest) (<-chan *DeleteProjectResponse, <-chan error) { + responseChan := make(chan *DeleteProjectResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteProject(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteProjectWithCallback invokes the csb.DeleteProject API asynchronously +// api document: https://help.aliyun.com/api/csb/deleteproject.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteProjectWithCallback(request *DeleteProjectRequest, callback func(response *DeleteProjectResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteProjectResponse + var err error + defer close(result) + response, err = client.DeleteProject(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteProjectRequest is the request struct for api DeleteProject +type DeleteProjectRequest struct { + *requests.RpcRequest + CsbId requests.Integer `position:"Query" name:"CsbId"` + ProjectId requests.Integer `position:"Query" name:"ProjectId"` +} + +// DeleteProjectResponse is the response struct for api DeleteProject +type DeleteProjectResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteProjectRequest creates a request to invoke DeleteProject API +func CreateDeleteProjectRequest() (request *DeleteProjectRequest) { + request = &DeleteProjectRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "DeleteProject", "CSB", "openAPI") + return +} + +// CreateDeleteProjectResponse creates a response to parse from DeleteProject response +func CreateDeleteProjectResponse() (response *DeleteProjectResponse) { + response = &DeleteProjectResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_project_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_project_list.go new file mode 100644 index 0000000..0dce835 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_project_list.go @@ -0,0 +1,106 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteProjectList invokes the csb.DeleteProjectList API synchronously +// api document: https://help.aliyun.com/api/csb/deleteprojectlist.html +func (client *Client) DeleteProjectList(request *DeleteProjectListRequest) (response *DeleteProjectListResponse, err error) { + response = CreateDeleteProjectListResponse() + err = client.DoAction(request, response) + return +} + +// DeleteProjectListWithChan invokes the csb.DeleteProjectList API asynchronously +// api document: https://help.aliyun.com/api/csb/deleteprojectlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteProjectListWithChan(request *DeleteProjectListRequest) (<-chan *DeleteProjectListResponse, <-chan error) { + responseChan := make(chan *DeleteProjectListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteProjectList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteProjectListWithCallback invokes the csb.DeleteProjectList API asynchronously +// api document: https://help.aliyun.com/api/csb/deleteprojectlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteProjectListWithCallback(request *DeleteProjectListRequest, callback func(response *DeleteProjectListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteProjectListResponse + var err error + defer close(result) + response, err = client.DeleteProjectList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteProjectListRequest is the request struct for api DeleteProjectList +type DeleteProjectListRequest struct { + *requests.RpcRequest + CsbId requests.Integer `position:"Query" name:"CsbId"` + Data string `position:"Body" name:"Data"` +} + +// DeleteProjectListResponse is the response struct for api DeleteProjectList +type DeleteProjectListResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteProjectListRequest creates a request to invoke DeleteProjectList API +func CreateDeleteProjectListRequest() (request *DeleteProjectListRequest) { + request = &DeleteProjectListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "DeleteProjectList", "CSB", "openAPI") + return +} + +// CreateDeleteProjectListResponse creates a response to parse from DeleteProjectList response +func CreateDeleteProjectListResponse() (response *DeleteProjectListResponse) { + response = &DeleteProjectListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_service.go new file mode 100644 index 0000000..13f0409 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_service.go @@ -0,0 +1,106 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteService invokes the csb.DeleteService API synchronously +// api document: https://help.aliyun.com/api/csb/deleteservice.html +func (client *Client) DeleteService(request *DeleteServiceRequest) (response *DeleteServiceResponse, err error) { + response = CreateDeleteServiceResponse() + err = client.DoAction(request, response) + return +} + +// DeleteServiceWithChan invokes the csb.DeleteService API asynchronously +// api document: https://help.aliyun.com/api/csb/deleteservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteServiceWithChan(request *DeleteServiceRequest) (<-chan *DeleteServiceResponse, <-chan error) { + responseChan := make(chan *DeleteServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteServiceWithCallback invokes the csb.DeleteService API asynchronously +// api document: https://help.aliyun.com/api/csb/deleteservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteServiceWithCallback(request *DeleteServiceRequest, callback func(response *DeleteServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteServiceResponse + var err error + defer close(result) + response, err = client.DeleteService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteServiceRequest is the request struct for api DeleteService +type DeleteServiceRequest struct { + *requests.RpcRequest + ServiceId requests.Integer `position:"Query" name:"ServiceId"` + ServiceName string `position:"Query" name:"ServiceName"` +} + +// DeleteServiceResponse is the response struct for api DeleteService +type DeleteServiceResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteServiceRequest creates a request to invoke DeleteService API +func CreateDeleteServiceRequest() (request *DeleteServiceRequest) { + request = &DeleteServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "DeleteService", "CSB", "openAPI") + return +} + +// CreateDeleteServiceResponse creates a response to parse from DeleteService response +func CreateDeleteServiceResponse() (response *DeleteServiceResponse) { + response = &DeleteServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_service_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_service_list.go new file mode 100644 index 0000000..bef9f63 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_service_list.go @@ -0,0 +1,106 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteServiceList invokes the csb.DeleteServiceList API synchronously +// api document: https://help.aliyun.com/api/csb/deleteservicelist.html +func (client *Client) DeleteServiceList(request *DeleteServiceListRequest) (response *DeleteServiceListResponse, err error) { + response = CreateDeleteServiceListResponse() + err = client.DoAction(request, response) + return +} + +// DeleteServiceListWithChan invokes the csb.DeleteServiceList API asynchronously +// api document: https://help.aliyun.com/api/csb/deleteservicelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteServiceListWithChan(request *DeleteServiceListRequest) (<-chan *DeleteServiceListResponse, <-chan error) { + responseChan := make(chan *DeleteServiceListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteServiceList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteServiceListWithCallback invokes the csb.DeleteServiceList API asynchronously +// api document: https://help.aliyun.com/api/csb/deleteservicelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteServiceListWithCallback(request *DeleteServiceListRequest, callback func(response *DeleteServiceListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteServiceListResponse + var err error + defer close(result) + response, err = client.DeleteServiceList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteServiceListRequest is the request struct for api DeleteServiceList +type DeleteServiceListRequest struct { + *requests.RpcRequest + CsbId requests.Integer `position:"Query" name:"CsbId"` + Data string `position:"Body" name:"Data"` +} + +// DeleteServiceListResponse is the response struct for api DeleteServiceList +type DeleteServiceListResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteServiceListRequest creates a request to invoke DeleteServiceList API +func CreateDeleteServiceListRequest() (request *DeleteServiceListRequest) { + request = &DeleteServiceListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "DeleteServiceList", "CSB", "openAPI") + return +} + +// CreateDeleteServiceListResponse creates a response to parse from DeleteServiceList response +func CreateDeleteServiceListResponse() (response *DeleteServiceListResponse) { + response = &DeleteServiceListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_union_cas_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_union_cas_service.go new file mode 100644 index 0000000..d9ceb4e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/delete_union_cas_service.go @@ -0,0 +1,108 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteUnionCasService invokes the csb.DeleteUnionCasService API synchronously +// api document: https://help.aliyun.com/api/csb/deleteunioncasservice.html +func (client *Client) DeleteUnionCasService(request *DeleteUnionCasServiceRequest) (response *DeleteUnionCasServiceResponse, err error) { + response = CreateDeleteUnionCasServiceResponse() + err = client.DoAction(request, response) + return +} + +// DeleteUnionCasServiceWithChan invokes the csb.DeleteUnionCasService API asynchronously +// api document: https://help.aliyun.com/api/csb/deleteunioncasservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteUnionCasServiceWithChan(request *DeleteUnionCasServiceRequest) (<-chan *DeleteUnionCasServiceResponse, <-chan error) { + responseChan := make(chan *DeleteUnionCasServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteUnionCasService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteUnionCasServiceWithCallback invokes the csb.DeleteUnionCasService API asynchronously +// api document: https://help.aliyun.com/api/csb/deleteunioncasservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteUnionCasServiceWithCallback(request *DeleteUnionCasServiceRequest, callback func(response *DeleteUnionCasServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteUnionCasServiceResponse + var err error + defer close(result) + response, err = client.DeleteUnionCasService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteUnionCasServiceRequest is the request struct for api DeleteUnionCasService +type DeleteUnionCasServiceRequest struct { + *requests.RpcRequest + SrcUserId string `position:"Query" name:"SrcUserId"` + CasServiceId string `position:"Query" name:"CasServiceId"` + CasCsbName string `position:"Query" name:"CasCsbName"` + LeafOnly requests.Boolean `position:"Query" name:"LeafOnly"` +} + +// DeleteUnionCasServiceResponse is the response struct for api DeleteUnionCasService +type DeleteUnionCasServiceResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteUnionCasServiceRequest creates a request to invoke DeleteUnionCasService API +func CreateDeleteUnionCasServiceRequest() (request *DeleteUnionCasServiceRequest) { + request = &DeleteUnionCasServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "DeleteUnionCasService", "CSB", "openAPI") + return +} + +// CreateDeleteUnionCasServiceResponse creates a response to parse from DeleteUnionCasService response +func CreateDeleteUnionCasServiceResponse() (response *DeleteUnionCasServiceResponse) { + response = &DeleteUnionCasServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_approval_order_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_approval_order_list.go new file mode 100644 index 0000000..5105253 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_approval_order_list.go @@ -0,0 +1,111 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// FindApprovalOrderList invokes the csb.FindApprovalOrderList API synchronously +// api document: https://help.aliyun.com/api/csb/findapprovalorderlist.html +func (client *Client) FindApprovalOrderList(request *FindApprovalOrderListRequest) (response *FindApprovalOrderListResponse, err error) { + response = CreateFindApprovalOrderListResponse() + err = client.DoAction(request, response) + return +} + +// FindApprovalOrderListWithChan invokes the csb.FindApprovalOrderList API asynchronously +// api document: https://help.aliyun.com/api/csb/findapprovalorderlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FindApprovalOrderListWithChan(request *FindApprovalOrderListRequest) (<-chan *FindApprovalOrderListResponse, <-chan error) { + responseChan := make(chan *FindApprovalOrderListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.FindApprovalOrderList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// FindApprovalOrderListWithCallback invokes the csb.FindApprovalOrderList API asynchronously +// api document: https://help.aliyun.com/api/csb/findapprovalorderlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FindApprovalOrderListWithCallback(request *FindApprovalOrderListRequest, callback func(response *FindApprovalOrderListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *FindApprovalOrderListResponse + var err error + defer close(result) + response, err = client.FindApprovalOrderList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// FindApprovalOrderListRequest is the request struct for api FindApprovalOrderList +type FindApprovalOrderListRequest struct { + *requests.RpcRequest + ServiceId requests.Integer `position:"Query" name:"ServiceId"` + ServiceName string `position:"Query" name:"ServiceName"` + Alias string `position:"Query" name:"Alias"` + ProjectName string `position:"Query" name:"ProjectName"` + OnlyPending requests.Boolean `position:"Query" name:"OnlyPending"` + PageNum requests.Integer `position:"Query" name:"PageNum"` +} + +// FindApprovalOrderListResponse is the response struct for api FindApprovalOrderList +type FindApprovalOrderListResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateFindApprovalOrderListRequest creates a request to invoke FindApprovalOrderList API +func CreateFindApprovalOrderListRequest() (request *FindApprovalOrderListRequest) { + request = &FindApprovalOrderListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "FindApprovalOrderList", "CSB", "openAPI") + return +} + +// CreateFindApprovalOrderListResponse creates a response to parse from FindApprovalOrderList response +func CreateFindApprovalOrderListResponse() (response *FindApprovalOrderListResponse) { + response = &FindApprovalOrderListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_approve_service_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_approve_service_list.go new file mode 100644 index 0000000..fe6ffd4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_approve_service_list.go @@ -0,0 +1,111 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// FindApproveServiceList invokes the csb.FindApproveServiceList API synchronously +// api document: https://help.aliyun.com/api/csb/findapproveservicelist.html +func (client *Client) FindApproveServiceList(request *FindApproveServiceListRequest) (response *FindApproveServiceListResponse, err error) { + response = CreateFindApproveServiceListResponse() + err = client.DoAction(request, response) + return +} + +// FindApproveServiceListWithChan invokes the csb.FindApproveServiceList API asynchronously +// api document: https://help.aliyun.com/api/csb/findapproveservicelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FindApproveServiceListWithChan(request *FindApproveServiceListRequest) (<-chan *FindApproveServiceListResponse, <-chan error) { + responseChan := make(chan *FindApproveServiceListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.FindApproveServiceList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// FindApproveServiceListWithCallback invokes the csb.FindApproveServiceList API asynchronously +// api document: https://help.aliyun.com/api/csb/findapproveservicelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FindApproveServiceListWithCallback(request *FindApproveServiceListRequest, callback func(response *FindApproveServiceListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *FindApproveServiceListResponse + var err error + defer close(result) + response, err = client.FindApproveServiceList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// FindApproveServiceListRequest is the request struct for api FindApproveServiceList +type FindApproveServiceListRequest struct { + *requests.RpcRequest + ApproveLevel string `position:"Query" name:"approveLevel"` + ServiceName string `position:"Query" name:"serviceName"` + Alias string `position:"Query" name:"alias"` + ProjectName string `position:"Query" name:"projectName"` + CsbId requests.Integer `position:"Query" name:"csbId"` + ShowDelService requests.Boolean `position:"Query" name:"showDelService"` +} + +// FindApproveServiceListResponse is the response struct for api FindApproveServiceList +type FindApproveServiceListResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateFindApproveServiceListRequest creates a request to invoke FindApproveServiceList API +func CreateFindApproveServiceListRequest() (request *FindApproveServiceListRequest) { + request = &FindApproveServiceListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "FindApproveServiceList", "CSB", "openAPI") + return +} + +// CreateFindApproveServiceListResponse creates a response to parse from FindApproveServiceList response +func CreateFindApproveServiceListResponse() (response *FindApproveServiceListResponse) { + response = &FindApproveServiceListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_credentials_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_credentials_list.go new file mode 100644 index 0000000..3f386bd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_credentials_list.go @@ -0,0 +1,108 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// FindCredentialsList invokes the csb.FindCredentialsList API synchronously +// api document: https://help.aliyun.com/api/csb/findcredentialslist.html +func (client *Client) FindCredentialsList(request *FindCredentialsListRequest) (response *FindCredentialsListResponse, err error) { + response = CreateFindCredentialsListResponse() + err = client.DoAction(request, response) + return +} + +// FindCredentialsListWithChan invokes the csb.FindCredentialsList API asynchronously +// api document: https://help.aliyun.com/api/csb/findcredentialslist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FindCredentialsListWithChan(request *FindCredentialsListRequest) (<-chan *FindCredentialsListResponse, <-chan error) { + responseChan := make(chan *FindCredentialsListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.FindCredentialsList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// FindCredentialsListWithCallback invokes the csb.FindCredentialsList API asynchronously +// api document: https://help.aliyun.com/api/csb/findcredentialslist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FindCredentialsListWithCallback(request *FindCredentialsListRequest, callback func(response *FindCredentialsListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *FindCredentialsListResponse + var err error + defer close(result) + response, err = client.FindCredentialsList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// FindCredentialsListRequest is the request struct for api FindCredentialsList +type FindCredentialsListRequest struct { + *requests.RpcRequest + CsbId requests.Integer `position:"Query" name:"CsbId"` + GroupName string `position:"Query" name:"GroupName"` + PageNum requests.Integer `position:"Query" name:"PageNum"` +} + +// FindCredentialsListResponse is the response struct for api FindCredentialsList +type FindCredentialsListResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateFindCredentialsListRequest creates a request to invoke FindCredentialsList API +func CreateFindCredentialsListRequest() (request *FindCredentialsListRequest) { + request = &FindCredentialsListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "FindCredentialsList", "CSB", "openAPI") + return +} + +// CreateFindCredentialsListResponse creates a response to parse from FindCredentialsList response +func CreateFindCredentialsListResponse() (response *FindCredentialsListResponse) { + response = &FindCredentialsListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_instance_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_instance_list.go new file mode 100644 index 0000000..1e7e52a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_instance_list.go @@ -0,0 +1,109 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// FindInstanceList invokes the csb.FindInstanceList API synchronously +// api document: https://help.aliyun.com/api/csb/findinstancelist.html +func (client *Client) FindInstanceList(request *FindInstanceListRequest) (response *FindInstanceListResponse, err error) { + response = CreateFindInstanceListResponse() + err = client.DoAction(request, response) + return +} + +// FindInstanceListWithChan invokes the csb.FindInstanceList API asynchronously +// api document: https://help.aliyun.com/api/csb/findinstancelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FindInstanceListWithChan(request *FindInstanceListRequest) (<-chan *FindInstanceListResponse, <-chan error) { + responseChan := make(chan *FindInstanceListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.FindInstanceList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// FindInstanceListWithCallback invokes the csb.FindInstanceList API asynchronously +// api document: https://help.aliyun.com/api/csb/findinstancelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FindInstanceListWithCallback(request *FindInstanceListRequest, callback func(response *FindInstanceListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *FindInstanceListResponse + var err error + defer close(result) + response, err = client.FindInstanceList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// FindInstanceListRequest is the request struct for api FindInstanceList +type FindInstanceListRequest struct { + *requests.RpcRequest + SearchTxt string `position:"Query" name:"SearchTxt"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + Status requests.Integer `position:"Query" name:"Status"` + CsbId requests.Integer `position:"Query" name:"CsbId"` +} + +// FindInstanceListResponse is the response struct for api FindInstanceList +type FindInstanceListResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateFindInstanceListRequest creates a request to invoke FindInstanceList API +func CreateFindInstanceListRequest() (request *FindInstanceListRequest) { + request = &FindInstanceListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "FindInstanceList", "CSB", "openAPI") + return +} + +// CreateFindInstanceListResponse creates a response to parse from FindInstanceList response +func CreateFindInstanceListResponse() (response *FindInstanceListResponse) { + response = &FindInstanceListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_orderable_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_orderable_list.go new file mode 100644 index 0000000..0f0c879 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_orderable_list.go @@ -0,0 +1,110 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// FindOrderableList invokes the csb.FindOrderableList API synchronously +// api document: https://help.aliyun.com/api/csb/findorderablelist.html +func (client *Client) FindOrderableList(request *FindOrderableListRequest) (response *FindOrderableListResponse, err error) { + response = CreateFindOrderableListResponse() + err = client.DoAction(request, response) + return +} + +// FindOrderableListWithChan invokes the csb.FindOrderableList API asynchronously +// api document: https://help.aliyun.com/api/csb/findorderablelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FindOrderableListWithChan(request *FindOrderableListRequest) (<-chan *FindOrderableListResponse, <-chan error) { + responseChan := make(chan *FindOrderableListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.FindOrderableList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// FindOrderableListWithCallback invokes the csb.FindOrderableList API asynchronously +// api document: https://help.aliyun.com/api/csb/findorderablelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FindOrderableListWithCallback(request *FindOrderableListRequest, callback func(response *FindOrderableListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *FindOrderableListResponse + var err error + defer close(result) + response, err = client.FindOrderableList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// FindOrderableListRequest is the request struct for api FindOrderableList +type FindOrderableListRequest struct { + *requests.RpcRequest + PageNum requests.Integer `position:"Query" name:"PageNum"` + CsbId requests.Integer `position:"Query" name:"CsbId"` + ServiceName string `position:"Query" name:"ServiceName"` + Alias string `position:"Query" name:"Alias"` + ProjectName string `position:"Query" name:"ProjectName"` +} + +// FindOrderableListResponse is the response struct for api FindOrderableList +type FindOrderableListResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateFindOrderableListRequest creates a request to invoke FindOrderableList API +func CreateFindOrderableListRequest() (request *FindOrderableListRequest) { + request = &FindOrderableListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "FindOrderableList", "CSB", "openAPI") + return +} + +// CreateFindOrderableListResponse creates a response to parse from FindOrderableList response +func CreateFindOrderableListResponse() (response *FindOrderableListResponse) { + response = &FindOrderableListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_ordered_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_ordered_list.go new file mode 100644 index 0000000..9e363f5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_ordered_list.go @@ -0,0 +1,113 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// FindOrderedList invokes the csb.FindOrderedList API synchronously +// api document: https://help.aliyun.com/api/csb/findorderedlist.html +func (client *Client) FindOrderedList(request *FindOrderedListRequest) (response *FindOrderedListResponse, err error) { + response = CreateFindOrderedListResponse() + err = client.DoAction(request, response) + return +} + +// FindOrderedListWithChan invokes the csb.FindOrderedList API asynchronously +// api document: https://help.aliyun.com/api/csb/findorderedlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FindOrderedListWithChan(request *FindOrderedListRequest) (<-chan *FindOrderedListResponse, <-chan error) { + responseChan := make(chan *FindOrderedListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.FindOrderedList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// FindOrderedListWithCallback invokes the csb.FindOrderedList API asynchronously +// api document: https://help.aliyun.com/api/csb/findorderedlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FindOrderedListWithCallback(request *FindOrderedListRequest, callback func(response *FindOrderedListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *FindOrderedListResponse + var err error + defer close(result) + response, err = client.FindOrderedList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// FindOrderedListRequest is the request struct for api FindOrderedList +type FindOrderedListRequest struct { + *requests.RpcRequest + ProjectName string `position:"Query" name:"ProjectName"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + ServiceId requests.Integer `position:"Query" name:"ServiceId"` + ServiceName string `position:"Query" name:"ServiceName"` + Alias string `position:"Query" name:"Alias"` + ShowDelOrder requests.Boolean `position:"Query" name:"ShowDelOrder"` + Status string `position:"Query" name:"Status"` + CsbId requests.Integer `position:"Query" name:"CsbId"` +} + +// FindOrderedListResponse is the response struct for api FindOrderedList +type FindOrderedListResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateFindOrderedListRequest creates a request to invoke FindOrderedList API +func CreateFindOrderedListRequest() (request *FindOrderedListRequest) { + request = &FindOrderedListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "FindOrderedList", "CSB", "openAPI") + return +} + +// CreateFindOrderedListResponse creates a response to parse from FindOrderedList response +func CreateFindOrderedListResponse() (response *FindOrderedListResponse) { + response = &FindOrderedListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_project_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_project_list.go new file mode 100644 index 0000000..5a263b6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_project_list.go @@ -0,0 +1,108 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// FindProjectList invokes the csb.FindProjectList API synchronously +// api document: https://help.aliyun.com/api/csb/findprojectlist.html +func (client *Client) FindProjectList(request *FindProjectListRequest) (response *FindProjectListResponse, err error) { + response = CreateFindProjectListResponse() + err = client.DoAction(request, response) + return +} + +// FindProjectListWithChan invokes the csb.FindProjectList API asynchronously +// api document: https://help.aliyun.com/api/csb/findprojectlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FindProjectListWithChan(request *FindProjectListRequest) (<-chan *FindProjectListResponse, <-chan error) { + responseChan := make(chan *FindProjectListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.FindProjectList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// FindProjectListWithCallback invokes the csb.FindProjectList API asynchronously +// api document: https://help.aliyun.com/api/csb/findprojectlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FindProjectListWithCallback(request *FindProjectListRequest, callback func(response *FindProjectListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *FindProjectListResponse + var err error + defer close(result) + response, err = client.FindProjectList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// FindProjectListRequest is the request struct for api FindProjectList +type FindProjectListRequest struct { + *requests.RpcRequest + CsbId requests.Integer `position:"Query" name:"CsbId"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + ProjectName string `position:"Query" name:"ProjectName"` +} + +// FindProjectListResponse is the response struct for api FindProjectList +type FindProjectListResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateFindProjectListRequest creates a request to invoke FindProjectList API +func CreateFindProjectListRequest() (request *FindProjectListRequest) { + request = &FindProjectListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "FindProjectList", "CSB", "openAPI") + return +} + +// CreateFindProjectListResponse creates a response to parse from FindProjectList response +func CreateFindProjectListResponse() (response *FindProjectListResponse) { + response = &FindProjectListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_projects_name_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_projects_name_list.go new file mode 100644 index 0000000..6791f17 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_projects_name_list.go @@ -0,0 +1,107 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// FindProjectsNameList invokes the csb.FindProjectsNameList API synchronously +// api document: https://help.aliyun.com/api/csb/findprojectsnamelist.html +func (client *Client) FindProjectsNameList(request *FindProjectsNameListRequest) (response *FindProjectsNameListResponse, err error) { + response = CreateFindProjectsNameListResponse() + err = client.DoAction(request, response) + return +} + +// FindProjectsNameListWithChan invokes the csb.FindProjectsNameList API asynchronously +// api document: https://help.aliyun.com/api/csb/findprojectsnamelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FindProjectsNameListWithChan(request *FindProjectsNameListRequest) (<-chan *FindProjectsNameListResponse, <-chan error) { + responseChan := make(chan *FindProjectsNameListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.FindProjectsNameList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// FindProjectsNameListWithCallback invokes the csb.FindProjectsNameList API asynchronously +// api document: https://help.aliyun.com/api/csb/findprojectsnamelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FindProjectsNameListWithCallback(request *FindProjectsNameListRequest, callback func(response *FindProjectsNameListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *FindProjectsNameListResponse + var err error + defer close(result) + response, err = client.FindProjectsNameList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// FindProjectsNameListRequest is the request struct for api FindProjectsNameList +type FindProjectsNameListRequest struct { + *requests.RpcRequest + CsbId requests.Integer `position:"Query" name:"CsbId"` + OperationFlag string `position:"Query" name:"OperationFlag"` +} + +// FindProjectsNameListResponse is the response struct for api FindProjectsNameList +type FindProjectsNameListResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateFindProjectsNameListRequest creates a request to invoke FindProjectsNameList API +func CreateFindProjectsNameListRequest() (request *FindProjectsNameListRequest) { + request = &FindProjectsNameListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "FindProjectsNameList", "CSB", "openAPI") + return +} + +// CreateFindProjectsNameListResponse creates a response to parse from FindProjectsNameList response +func CreateFindProjectsNameListResponse() (response *FindProjectsNameListResponse) { + response = &FindProjectsNameListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_service_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_service_list.go new file mode 100644 index 0000000..ff62920 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/find_service_list.go @@ -0,0 +1,112 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// FindServiceList invokes the csb.FindServiceList API synchronously +// api document: https://help.aliyun.com/api/csb/findservicelist.html +func (client *Client) FindServiceList(request *FindServiceListRequest) (response *FindServiceListResponse, err error) { + response = CreateFindServiceListResponse() + err = client.DoAction(request, response) + return +} + +// FindServiceListWithChan invokes the csb.FindServiceList API asynchronously +// api document: https://help.aliyun.com/api/csb/findservicelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FindServiceListWithChan(request *FindServiceListRequest) (<-chan *FindServiceListResponse, <-chan error) { + responseChan := make(chan *FindServiceListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.FindServiceList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// FindServiceListWithCallback invokes the csb.FindServiceList API asynchronously +// api document: https://help.aliyun.com/api/csb/findservicelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FindServiceListWithCallback(request *FindServiceListRequest, callback func(response *FindServiceListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *FindServiceListResponse + var err error + defer close(result) + response, err = client.FindServiceList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// FindServiceListRequest is the request struct for api FindServiceList +type FindServiceListRequest struct { + *requests.RpcRequest + PageNum requests.Integer `position:"Query" name:"PageNum"` + CasShowType requests.Integer `position:"Query" name:"CasShowType"` + ServiceName string `position:"Query" name:"ServiceName"` + Alias string `position:"Query" name:"Alias"` + ProjectName string `position:"Query" name:"ProjectName"` + CsbId requests.Integer `position:"Query" name:"CsbId"` + ShowDelService requests.Boolean `position:"Query" name:"ShowDelService"` +} + +// FindServiceListResponse is the response struct for api FindServiceList +type FindServiceListResponse struct { + *responses.BaseResponse + Message string `json:"Message" xml:"Message"` + Code int `json:"Code" xml:"Code"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateFindServiceListRequest creates a request to invoke FindServiceList API +func CreateFindServiceListRequest() (request *FindServiceListRequest) { + request = &FindServiceListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "FindServiceList", "CSB", "openAPI") + return +} + +// CreateFindServiceListResponse creates a response to parse from FindServiceList response +func CreateFindServiceListResponse() (response *FindServiceListResponse) { + response = &FindServiceListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/get_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/get_instance.go new file mode 100644 index 0000000..cdf9237 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/get_instance.go @@ -0,0 +1,106 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetInstance invokes the csb.GetInstance API synchronously +// api document: https://help.aliyun.com/api/csb/getinstance.html +func (client *Client) GetInstance(request *GetInstanceRequest) (response *GetInstanceResponse, err error) { + response = CreateGetInstanceResponse() + err = client.DoAction(request, response) + return +} + +// GetInstanceWithChan invokes the csb.GetInstance API asynchronously +// api document: https://help.aliyun.com/api/csb/getinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetInstanceWithChan(request *GetInstanceRequest) (<-chan *GetInstanceResponse, <-chan error) { + responseChan := make(chan *GetInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetInstanceWithCallback invokes the csb.GetInstance API asynchronously +// api document: https://help.aliyun.com/api/csb/getinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetInstanceWithCallback(request *GetInstanceRequest, callback func(response *GetInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetInstanceResponse + var err error + defer close(result) + response, err = client.GetInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetInstanceRequest is the request struct for api GetInstance +type GetInstanceRequest struct { + *requests.RpcRequest + CsbId requests.Integer `position:"Query" name:"CsbId"` +} + +// GetInstanceResponse is the response struct for api GetInstance +type GetInstanceResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateGetInstanceRequest creates a request to invoke GetInstance API +func CreateGetInstanceRequest() (request *GetInstanceRequest) { + request = &GetInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "GetInstance", "CSB", "openAPI") + return +} + +// CreateGetInstanceResponse creates a response to parse from GetInstance response +func CreateGetInstanceResponse() (response *GetInstanceResponse) { + response = &GetInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/get_order.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/get_order.go new file mode 100644 index 0000000..6c20731 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/get_order.go @@ -0,0 +1,107 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetOrder invokes the csb.GetOrder API synchronously +// api document: https://help.aliyun.com/api/csb/getorder.html +func (client *Client) GetOrder(request *GetOrderRequest) (response *GetOrderResponse, err error) { + response = CreateGetOrderResponse() + err = client.DoAction(request, response) + return +} + +// GetOrderWithChan invokes the csb.GetOrder API asynchronously +// api document: https://help.aliyun.com/api/csb/getorder.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetOrderWithChan(request *GetOrderRequest) (<-chan *GetOrderResponse, <-chan error) { + responseChan := make(chan *GetOrderResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetOrder(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetOrderWithCallback invokes the csb.GetOrder API asynchronously +// api document: https://help.aliyun.com/api/csb/getorder.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetOrderWithCallback(request *GetOrderRequest, callback func(response *GetOrderResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetOrderResponse + var err error + defer close(result) + response, err = client.GetOrder(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetOrderRequest is the request struct for api GetOrder +type GetOrderRequest struct { + *requests.RpcRequest + OrderId requests.Integer `position:"Query" name:"OrderId"` + ServiceName string `position:"Query" name:"ServiceName"` +} + +// GetOrderResponse is the response struct for api GetOrder +type GetOrderResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateGetOrderRequest creates a request to invoke GetOrder API +func CreateGetOrderRequest() (request *GetOrderRequest) { + request = &GetOrderRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "GetOrder", "CSB", "openAPI") + return +} + +// CreateGetOrderResponse creates a response to parse from GetOrder response +func CreateGetOrderResponse() (response *GetOrderResponse) { + response = &GetOrderResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/get_project.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/get_project.go new file mode 100644 index 0000000..78915ab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/get_project.go @@ -0,0 +1,107 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetProject invokes the csb.GetProject API synchronously +// api document: https://help.aliyun.com/api/csb/getproject.html +func (client *Client) GetProject(request *GetProjectRequest) (response *GetProjectResponse, err error) { + response = CreateGetProjectResponse() + err = client.DoAction(request, response) + return +} + +// GetProjectWithChan invokes the csb.GetProject API asynchronously +// api document: https://help.aliyun.com/api/csb/getproject.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetProjectWithChan(request *GetProjectRequest) (<-chan *GetProjectResponse, <-chan error) { + responseChan := make(chan *GetProjectResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetProject(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetProjectWithCallback invokes the csb.GetProject API asynchronously +// api document: https://help.aliyun.com/api/csb/getproject.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetProjectWithCallback(request *GetProjectRequest, callback func(response *GetProjectResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetProjectResponse + var err error + defer close(result) + response, err = client.GetProject(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetProjectRequest is the request struct for api GetProject +type GetProjectRequest struct { + *requests.RpcRequest + CsbId requests.Integer `position:"Query" name:"CsbId"` + ProjectName string `position:"Query" name:"ProjectName"` +} + +// GetProjectResponse is the response struct for api GetProject +type GetProjectResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateGetProjectRequest creates a request to invoke GetProject API +func CreateGetProjectRequest() (request *GetProjectRequest) { + request = &GetProjectRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "GetProject", "CSB", "openAPI") + return +} + +// CreateGetProjectResponse creates a response to parse from GetProject response +func CreateGetProjectResponse() (response *GetProjectResponse) { + response = &GetProjectResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/get_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/get_service.go new file mode 100644 index 0000000..19b9dcb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/get_service.go @@ -0,0 +1,107 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetService invokes the csb.GetService API synchronously +// api document: https://help.aliyun.com/api/csb/getservice.html +func (client *Client) GetService(request *GetServiceRequest) (response *GetServiceResponse, err error) { + response = CreateGetServiceResponse() + err = client.DoAction(request, response) + return +} + +// GetServiceWithChan invokes the csb.GetService API asynchronously +// api document: https://help.aliyun.com/api/csb/getservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetServiceWithChan(request *GetServiceRequest) (<-chan *GetServiceResponse, <-chan error) { + responseChan := make(chan *GetServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetServiceWithCallback invokes the csb.GetService API asynchronously +// api document: https://help.aliyun.com/api/csb/getservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetServiceWithCallback(request *GetServiceRequest, callback func(response *GetServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetServiceResponse + var err error + defer close(result) + response, err = client.GetService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetServiceRequest is the request struct for api GetService +type GetServiceRequest struct { + *requests.RpcRequest + CsbId requests.Integer `position:"Query" name:"CsbId"` + ServiceId requests.Integer `position:"Query" name:"ServiceId"` +} + +// GetServiceResponse is the response struct for api GetService +type GetServiceResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateGetServiceRequest creates a request to invoke GetService API +func CreateGetServiceRequest() (request *GetServiceRequest) { + request = &GetServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "GetService", "CSB", "openAPI") + return +} + +// CreateGetServiceResponse creates a response to parse from GetService response +func CreateGetServiceResponse() (response *GetServiceResponse) { + response = &GetServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/publish_cas_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/publish_cas_service.go new file mode 100644 index 0000000..b661d5d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/publish_cas_service.go @@ -0,0 +1,106 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PublishCasService invokes the csb.PublishCasService API synchronously +// api document: https://help.aliyun.com/api/csb/publishcasservice.html +func (client *Client) PublishCasService(request *PublishCasServiceRequest) (response *PublishCasServiceResponse, err error) { + response = CreatePublishCasServiceResponse() + err = client.DoAction(request, response) + return +} + +// PublishCasServiceWithChan invokes the csb.PublishCasService API asynchronously +// api document: https://help.aliyun.com/api/csb/publishcasservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PublishCasServiceWithChan(request *PublishCasServiceRequest) (<-chan *PublishCasServiceResponse, <-chan error) { + responseChan := make(chan *PublishCasServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PublishCasService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PublishCasServiceWithCallback invokes the csb.PublishCasService API asynchronously +// api document: https://help.aliyun.com/api/csb/publishcasservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PublishCasServiceWithCallback(request *PublishCasServiceRequest, callback func(response *PublishCasServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PublishCasServiceResponse + var err error + defer close(result) + response, err = client.PublishCasService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PublishCasServiceRequest is the request struct for api PublishCasService +type PublishCasServiceRequest struct { + *requests.RpcRequest + CasCsbName string `position:"Query" name:"CasCsbName"` + Data string `position:"Body" name:"Data"` +} + +// PublishCasServiceResponse is the response struct for api PublishCasService +type PublishCasServiceResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreatePublishCasServiceRequest creates a request to invoke PublishCasService API +func CreatePublishCasServiceRequest() (request *PublishCasServiceRequest) { + request = &PublishCasServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "PublishCasService", "CSB", "openAPI") + return +} + +// CreatePublishCasServiceResponse creates a response to parse from PublishCasService response +func CreatePublishCasServiceResponse() (response *PublishCasServiceResponse) { + response = &PublishCasServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/publish_union_cas_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/publish_union_cas_service.go new file mode 100644 index 0000000..6f010ac --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/publish_union_cas_service.go @@ -0,0 +1,106 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PublishUnionCasService invokes the csb.PublishUnionCasService API synchronously +// api document: https://help.aliyun.com/api/csb/publishunioncasservice.html +func (client *Client) PublishUnionCasService(request *PublishUnionCasServiceRequest) (response *PublishUnionCasServiceResponse, err error) { + response = CreatePublishUnionCasServiceResponse() + err = client.DoAction(request, response) + return +} + +// PublishUnionCasServiceWithChan invokes the csb.PublishUnionCasService API asynchronously +// api document: https://help.aliyun.com/api/csb/publishunioncasservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PublishUnionCasServiceWithChan(request *PublishUnionCasServiceRequest) (<-chan *PublishUnionCasServiceResponse, <-chan error) { + responseChan := make(chan *PublishUnionCasServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PublishUnionCasService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PublishUnionCasServiceWithCallback invokes the csb.PublishUnionCasService API asynchronously +// api document: https://help.aliyun.com/api/csb/publishunioncasservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PublishUnionCasServiceWithCallback(request *PublishUnionCasServiceRequest, callback func(response *PublishUnionCasServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PublishUnionCasServiceResponse + var err error + defer close(result) + response, err = client.PublishUnionCasService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PublishUnionCasServiceRequest is the request struct for api PublishUnionCasService +type PublishUnionCasServiceRequest struct { + *requests.RpcRequest + CasCsbName string `position:"Query" name:"CasCsbName"` + Data string `position:"Body" name:"Data"` +} + +// PublishUnionCasServiceResponse is the response struct for api PublishUnionCasService +type PublishUnionCasServiceResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreatePublishUnionCasServiceRequest creates a request to invoke PublishUnionCasService API +func CreatePublishUnionCasServiceRequest() (request *PublishUnionCasServiceRequest) { + request = &PublishUnionCasServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "PublishUnionCasService", "CSB", "openAPI") + return +} + +// CreatePublishUnionCasServiceResponse creates a response to parse from PublishUnionCasService response +func CreatePublishUnionCasServiceResponse() (response *PublishUnionCasServiceResponse) { + response = &PublishUnionCasServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/renew_credentials.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/renew_credentials.go new file mode 100644 index 0000000..fd52182 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/renew_credentials.go @@ -0,0 +1,106 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RenewCredentials invokes the csb.RenewCredentials API synchronously +// api document: https://help.aliyun.com/api/csb/renewcredentials.html +func (client *Client) RenewCredentials(request *RenewCredentialsRequest) (response *RenewCredentialsResponse, err error) { + response = CreateRenewCredentialsResponse() + err = client.DoAction(request, response) + return +} + +// RenewCredentialsWithChan invokes the csb.RenewCredentials API asynchronously +// api document: https://help.aliyun.com/api/csb/renewcredentials.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RenewCredentialsWithChan(request *RenewCredentialsRequest) (<-chan *RenewCredentialsResponse, <-chan error) { + responseChan := make(chan *RenewCredentialsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RenewCredentials(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RenewCredentialsWithCallback invokes the csb.RenewCredentials API asynchronously +// api document: https://help.aliyun.com/api/csb/renewcredentials.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RenewCredentialsWithCallback(request *RenewCredentialsRequest, callback func(response *RenewCredentialsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RenewCredentialsResponse + var err error + defer close(result) + response, err = client.RenewCredentials(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RenewCredentialsRequest is the request struct for api RenewCredentials +type RenewCredentialsRequest struct { + *requests.RpcRequest + CredentialId requests.Integer `position:"Query" name:"CredentialId"` +} + +// RenewCredentialsResponse is the response struct for api RenewCredentials +type RenewCredentialsResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateRenewCredentialsRequest creates a request to invoke RenewCredentials API +func CreateRenewCredentialsRequest() (request *RenewCredentialsRequest) { + request = &RenewCredentialsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "RenewCredentials", "CSB", "openAPI") + return +} + +// CreateRenewCredentialsResponse creates a response to parse from RenewCredentials response +func CreateRenewCredentialsResponse() (response *RenewCredentialsResponse) { + response = &RenewCredentialsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/replace_credential.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/replace_credential.go new file mode 100644 index 0000000..bfabf79 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/replace_credential.go @@ -0,0 +1,106 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReplaceCredential invokes the csb.ReplaceCredential API synchronously +// api document: https://help.aliyun.com/api/csb/replacecredential.html +func (client *Client) ReplaceCredential(request *ReplaceCredentialRequest) (response *ReplaceCredentialResponse, err error) { + response = CreateReplaceCredentialResponse() + err = client.DoAction(request, response) + return +} + +// ReplaceCredentialWithChan invokes the csb.ReplaceCredential API asynchronously +// api document: https://help.aliyun.com/api/csb/replacecredential.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReplaceCredentialWithChan(request *ReplaceCredentialRequest) (<-chan *ReplaceCredentialResponse, <-chan error) { + responseChan := make(chan *ReplaceCredentialResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReplaceCredential(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReplaceCredentialWithCallback invokes the csb.ReplaceCredential API asynchronously +// api document: https://help.aliyun.com/api/csb/replacecredential.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReplaceCredentialWithCallback(request *ReplaceCredentialRequest, callback func(response *ReplaceCredentialResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReplaceCredentialResponse + var err error + defer close(result) + response, err = client.ReplaceCredential(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReplaceCredentialRequest is the request struct for api ReplaceCredential +type ReplaceCredentialRequest struct { + *requests.RpcRequest + CredentialId requests.Integer `position:"Query" name:"CredentialId"` +} + +// ReplaceCredentialResponse is the response struct for api ReplaceCredential +type ReplaceCredentialResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateReplaceCredentialRequest creates a request to invoke ReplaceCredential API +func CreateReplaceCredentialRequest() (request *ReplaceCredentialRequest) { + request = &ReplaceCredentialRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "ReplaceCredential", "CSB", "openAPI") + return +} + +// CreateReplaceCredentialResponse creates a response to parse from ReplaceCredential response +func CreateReplaceCredentialResponse() (response *ReplaceCredentialResponse) { + response = &ReplaceCredentialResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_cas_serv_targets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_cas_serv_targets.go new file mode 100644 index 0000000..f205386 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_cas_serv_targets.go @@ -0,0 +1,21 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CasServTargets is a nested struct in csb response +type CasServTargets struct { + CasServTarget []string `json:"CasServTarget" xml:"CasServTarget"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_consume_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_consume_types.go new file mode 100644 index 0000000..b0f6b51 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_consume_types.go @@ -0,0 +1,21 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ConsumeTypes is a nested struct in csb response +type ConsumeTypes struct { + ConsumeType []string `json:"ConsumeType" xml:"ConsumeType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_credential.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_credential.go new file mode 100644 index 0000000..565df2d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_credential.go @@ -0,0 +1,27 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Credential is a nested struct in csb response +type Credential struct { + GmtCreate int `json:"GmtCreate" xml:"GmtCreate"` + Id int `json:"Id" xml:"Id"` + Name string `json:"Name" xml:"Name"` + OwnerAttr string `json:"OwnerAttr" xml:"OwnerAttr"` + UserId string `json:"UserId" xml:"UserId"` + CurrentCredential CurrentCredential `json:"CurrentCredential" xml:"CurrentCredential"` + NewCredential NewCredential `json:"NewCredential" xml:"NewCredential"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_credential_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_credential_list.go new file mode 100644 index 0000000..e24af63 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_credential_list.go @@ -0,0 +1,21 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CredentialList is a nested struct in csb response +type CredentialList struct { + Credential []Credential `json:"Credential" xml:"Credential"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_credentials.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_credentials.go new file mode 100644 index 0000000..023cd1c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_credentials.go @@ -0,0 +1,26 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Credentials is a nested struct in csb response +type Credentials struct { + GmtCreate int `json:"GmtCreate" xml:"GmtCreate"` + Name string `json:"Name" xml:"Name"` + UserId string `json:"UserId" xml:"UserId"` + Id int `json:"Id" xml:"Id"` + CurrentCredential CurrentCredential `json:"CurrentCredential" xml:"CurrentCredential"` + NewCredential NewCredential `json:"NewCredential" xml:"NewCredential"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_current_credential.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_current_credential.go new file mode 100644 index 0000000..65d1d29 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_current_credential.go @@ -0,0 +1,22 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CurrentCredential is a nested struct in csb response +type CurrentCredential struct { + SecretKey string `json:"SecretKey" xml:"SecretKey"` + AccessKey string `json:"AccessKey" xml:"AccessKey"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_data.go new file mode 100644 index 0000000..a40ed9b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_data.go @@ -0,0 +1,36 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 csb response +type Data struct { + Id int `json:"Id" xml:"Id"` + UpdateCount int `json:"UpdateCount" xml:"UpdateCount"` + CurrentPage int `json:"CurrentPage" xml:"CurrentPage"` + Total int `json:"Total" xml:"Total"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + Exist bool `json:"Exist" xml:"Exist"` + ProjectNameList []string `json:"ProjectNameList" xml:"ProjectNameList"` + Credentials Credentials `json:"Credentials" xml:"Credentials"` + Service Service `json:"Service" xml:"Service"` + Order Order `json:"Order" xml:"Order"` + Instance Instance `json:"Instance" xml:"Instance"` + ProjectList []Project `json:"ProjectList" xml:"ProjectList"` + CredentialList []Credential `json:"CredentialList" xml:"CredentialList"` + OrderList []OrderInFindOrderedList `json:"OrderList" xml:"OrderList"` + ItemList []Item `json:"ItemList" xml:"ItemList"` + ServiceList []Service `json:"ServiceList" xml:"ServiceList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_error_type_catagory.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_error_type_catagory.go new file mode 100644 index 0000000..2bfe07a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_error_type_catagory.go @@ -0,0 +1,23 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ErrorTypeCatagory is a nested struct in csb response +type ErrorTypeCatagory struct { + Name string `json:"Name" xml:"Name"` + Total int `json:"Total" xml:"Total"` + ErrorNum int `json:"ErrorNum" xml:"ErrorNum"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_error_type_catagory_in_find_ordered_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_error_type_catagory_in_find_ordered_list.go new file mode 100644 index 0000000..9cf5a83 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_error_type_catagory_in_find_ordered_list.go @@ -0,0 +1,23 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ErrorTypeCatagoryInFindOrderedList is a nested struct in csb response +type ErrorTypeCatagoryInFindOrderedList struct { + Name string `json:"Name" xml:"Name"` + Total int `json:"Total" xml:"Total"` + ErrorNum int `json:"ErrorNum" xml:"ErrorNum"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_error_type_catagory_list_in_find_ordered_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_error_type_catagory_list_in_find_ordered_list.go new file mode 100644 index 0000000..f67a046 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_error_type_catagory_list_in_find_ordered_list.go @@ -0,0 +1,21 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ErrorTypeCatagoryListInFindOrderedList is a nested struct in csb response +type ErrorTypeCatagoryListInFindOrderedList struct { + ErrorTypeCatagory []ErrorTypeCatagoryInFindOrderedList `json:"ErrorTypeCatagory" xml:"ErrorTypeCatagory"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_error_type_catagory_list_in_get_order.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_error_type_catagory_list_in_get_order.go new file mode 100644 index 0000000..cc6551b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_error_type_catagory_list_in_get_order.go @@ -0,0 +1,21 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ErrorTypeCatagoryListInGetOrder is a nested struct in csb response +type ErrorTypeCatagoryListInGetOrder struct { + ErrorTypeCatagory []ErrorTypeCatagory `json:"ErrorTypeCatagory" xml:"ErrorTypeCatagory"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_import_conf.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_import_conf.go new file mode 100644 index 0000000..76928cf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_import_conf.go @@ -0,0 +1,24 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ImportConf is a nested struct in csb response +type ImportConf struct { + AccessEndpointJSON string `json:"AccessEndpointJSON" xml:"AccessEndpointJSON"` + ProvideType string `json:"ProvideType" xml:"ProvideType"` + InputParameterMap []InputParameter `json:"InputParameterMap" xml:"InputParameterMap"` + OutputParameterMap []OutputParameter `json:"OutputParameterMap" xml:"OutputParameterMap"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_import_confs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_import_confs.go new file mode 100644 index 0000000..4e2ad29 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_import_confs.go @@ -0,0 +1,24 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ImportConfs is a nested struct in csb response +type ImportConfs struct { + AccessEndpointJSON string `json:"AccessEndpointJSON" xml:"AccessEndpointJSON"` + ProvideType string `json:"ProvideType" xml:"ProvideType"` + InputParameterMap []InputParameter `json:"InputParameterMap" xml:"InputParameterMap"` + OutputParameterMap []OutputParameter `json:"OutputParameterMap" xml:"OutputParameterMap"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_input_parameter.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_input_parameter.go new file mode 100644 index 0000000..375387a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_input_parameter.go @@ -0,0 +1,29 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InputParameter is a nested struct in csb response +type InputParameter struct { + MapStyle int `json:"MapStyle" xml:"MapStyle"` + Optional bool `json:"Optional" xml:"Optional"` + ParamType string `json:"ParamType" xml:"ParamType"` + PassMethod string `json:"PassMethod" xml:"PassMethod"` + ExtType int `json:"ExtType" xml:"ExtType"` + CatType int `json:"CatType" xml:"CatType"` + Depth int `json:"Depth" xml:"Depth"` + OriginalName string `json:"OriginalName" xml:"OriginalName"` + TargetName string `json:"TargetName" xml:"TargetName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_input_parameter_map_in_get_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_input_parameter_map_in_get_service.go new file mode 100644 index 0000000..ffdfc39 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_input_parameter_map_in_get_service.go @@ -0,0 +1,21 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InputParameterMapInGetService is a nested struct in csb response +type InputParameterMapInGetService struct { + InputParameter []InputParameter `json:"InputParameter" xml:"InputParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_instance.go new file mode 100644 index 0000000..94a934c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_instance.go @@ -0,0 +1,55 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 csb response +type Instance struct { + ApprLevel int `json:"ApprLevel" xml:"ApprLevel"` + ApprUser1 string `json:"ApprUser1" xml:"ApprUser1"` + ApprUser2 string `json:"ApprUser2" xml:"ApprUser2"` + BrokerVpcId string `json:"BrokerVpcId" xml:"BrokerVpcId"` + BrokerVpcName string `json:"BrokerVpcName" xml:"BrokerVpcName"` + ClientVpcId string `json:"ClientVpcId" xml:"ClientVpcId"` + ClientVpcName string `json:"ClientVpcName" xml:"ClientVpcName"` + ClusterMembers int `json:"ClusterMembers" xml:"ClusterMembers"` + CredentialGroup int `json:"CredentialGroup" xml:"CredentialGroup"` + CsbAccountId string `json:"CsbAccountId" xml:"CsbAccountId"` + CsbId int `json:"CsbId" xml:"CsbId"` + DbStatus int `json:"DbStatus" xml:"DbStatus"` + Description string `json:"Description" xml:"Description"` + FrontStatus string `json:"FrontStatus" xml:"FrontStatus"` + GmtCreate int `json:"GmtCreate" xml:"GmtCreate"` + GmtModified int `json:"GmtModified" xml:"GmtModified"` + Id int `json:"Id" xml:"Id"` + InstanceCategory int `json:"InstanceCategory" xml:"InstanceCategory"` + InstanceType int `json:"InstanceType" xml:"InstanceType"` + IpList string `json:"IpList" xml:"IpList"` + IsImported bool `json:"IsImported" xml:"IsImported"` + IsPublic bool `json:"IsPublic" xml:"IsPublic"` + Name string `json:"Name" xml:"Name"` + OwnerId string `json:"OwnerId" xml:"OwnerId"` + SentinelCtlStr string `json:"SentinelCtlStr" xml:"SentinelCtlStr"` + SentinelCtrl int `json:"SentinelCtrl" xml:"SentinelCtrl"` + SentinelGridInterval int `json:"SentinelGridInterval" xml:"SentinelGridInterval"` + SentinelQps int `json:"SentinelQps" xml:"SentinelQps"` + Status string `json:"Status" xml:"Status"` + StatusCode int `json:"StatusCode" xml:"StatusCode"` + TenantId string `json:"TenantId" xml:"TenantId"` + Testable bool `json:"Testable" xml:"Testable"` + UserId string `json:"UserId" xml:"UserId"` + Visible bool `json:"Visible" xml:"Visible"` + VpcName string `json:"VpcName" xml:"VpcName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_item.go new file mode 100644 index 0000000..059ee17 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_item.go @@ -0,0 +1,30 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Item is a nested struct in csb response +type Item struct { + Description string `json:"Description" xml:"Description"` + FrontStatus string `json:"FrontStatus" xml:"FrontStatus"` + GmtCreate int `json:"GmtCreate" xml:"GmtCreate"` + GmtModified int `json:"GmtModified" xml:"GmtModified"` + Id int `json:"Id" xml:"Id"` + InstanceCategory int `json:"InstanceCategory" xml:"InstanceCategory"` + Name string `json:"Name" xml:"Name"` + StatusCode int `json:"StatusCode" xml:"StatusCode"` + Visible bool `json:"Visible" xml:"Visible"` + VpcName string `json:"VpcName" xml:"VpcName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_item_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_item_list.go new file mode 100644 index 0000000..95ddb76 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_item_list.go @@ -0,0 +1,21 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemList is a nested struct in csb response +type ItemList struct { + Item []Item `json:"Item" xml:"Item"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_new_credential.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_new_credential.go new file mode 100644 index 0000000..6210c51 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_new_credential.go @@ -0,0 +1,22 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NewCredential is a nested struct in csb response +type NewCredential struct { + SecretKey string `json:"SecretKey" xml:"SecretKey"` + AccessKey string `json:"AccessKey" xml:"AccessKey"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_order.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_order.go new file mode 100644 index 0000000..cfbe9a2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_order.go @@ -0,0 +1,44 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Order is a nested struct in csb response +type Order struct { + StatisticName string `json:"StatisticName" xml:"StatisticName"` + GroupName string `json:"GroupName" xml:"GroupName"` + ApproveComments string `json:"ApproveComments" xml:"ApproveComments"` + CredentialGroupId int `json:"CredentialGroupId" xml:"CredentialGroupId"` + StrictWhiteListJson string `json:"StrictWhiteListJson" xml:"StrictWhiteListJson"` + ProjectName string `json:"ProjectName" xml:"ProjectName"` + UserId string `json:"UserId" xml:"UserId"` + DauthGroupName string `json:"DauthGroupName" xml:"DauthGroupName"` + ServiceName string `json:"ServiceName" xml:"ServiceName"` + Status int `json:"Status" xml:"Status"` + Id int `json:"Id" xml:"Id"` + ServiceStatus int `json:"ServiceStatus" xml:"ServiceStatus"` + GmtCreate int `json:"GmtCreate" xml:"GmtCreate"` + GmtModified int `json:"GmtModified" xml:"GmtModified"` + ServiceId int `json:"ServiceId" xml:"ServiceId"` + CsbId int `json:"CsbId" xml:"CsbId"` + UserName string `json:"UserName" xml:"UserName"` + Alias string `json:"Alias" xml:"Alias"` + ServiceVersion string `json:"ServiceVersion" xml:"ServiceVersion"` + StrictWhiteList []string `json:"StrictWhiteList" xml:"StrictWhiteList"` + Service ServiceInGetOrder `json:"Service" xml:"Service"` + Total Total `json:"Total" xml:"Total"` + SlaInfo SlaInfo `json:"SlaInfo" xml:"SlaInfo"` + ErrorTypeCatagoryList []ErrorTypeCatagory `json:"ErrorTypeCatagoryList" xml:"ErrorTypeCatagoryList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_order_in_find_ordered_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_order_in_find_ordered_list.go new file mode 100644 index 0000000..45c156b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_order_in_find_ordered_list.go @@ -0,0 +1,34 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OrderInFindOrderedList is a nested struct in csb response +type OrderInFindOrderedList struct { + Alias string `json:"Alias" xml:"Alias"` + ProjectName string `json:"ProjectName" xml:"ProjectName"` + ServiceName string `json:"ServiceName" xml:"ServiceName"` + ServiceVersion string `json:"ServiceVersion" xml:"ServiceVersion"` + OrderStatus int `json:"OrderStatus" xml:"OrderStatus"` + AliveOrderCount int `json:"AliveOrderCount" xml:"AliveOrderCount"` + GmtCreate int `json:"GmtCreate" xml:"GmtCreate"` + MaxRT int `json:"MaxRT" xml:"MaxRT"` + MinRT int `json:"MinRT" xml:"MinRT"` + ServiceId string `json:"ServiceId" xml:"ServiceId"` + ServiceStatus int `json:"ServiceStatus" xml:"ServiceStatus"` + Total Total `json:"Total" xml:"Total"` + ErrorTypeCatagoryList []ErrorTypeCatagoryInFindOrderedList `json:"ErrorTypeCatagoryList" xml:"ErrorTypeCatagoryList"` + Orders []Order `json:"Orders" xml:"Orders"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_order_list_in_find_approval_order_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_order_list_in_find_approval_order_list.go new file mode 100644 index 0000000..81a1025 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_order_list_in_find_approval_order_list.go @@ -0,0 +1,21 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OrderListInFindApprovalOrderList is a nested struct in csb response +type OrderListInFindApprovalOrderList struct { + Order []Order `json:"Order" xml:"Order"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_order_list_in_find_ordered_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_order_list_in_find_ordered_list.go new file mode 100644 index 0000000..3ae39d3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_order_list_in_find_ordered_list.go @@ -0,0 +1,21 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OrderListInFindOrderedList is a nested struct in csb response +type OrderListInFindOrderedList struct { + Order []OrderInFindOrderedList `json:"Order" xml:"Order"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_orders.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_orders.go new file mode 100644 index 0000000..553b916 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_orders.go @@ -0,0 +1,21 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Orders is a nested struct in csb response +type Orders struct { + Order []Order `json:"Order" xml:"Order"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_output_parameter.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_output_parameter.go new file mode 100644 index 0000000..d83f784 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_output_parameter.go @@ -0,0 +1,29 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OutputParameter is a nested struct in csb response +type OutputParameter struct { + MapStyle int `json:"MapStyle" xml:"MapStyle"` + Optional bool `json:"Optional" xml:"Optional"` + ParamType string `json:"ParamType" xml:"ParamType"` + PassMethod string `json:"PassMethod" xml:"PassMethod"` + ExtType int `json:"ExtType" xml:"ExtType"` + CatType int `json:"CatType" xml:"CatType"` + Depth int `json:"Depth" xml:"Depth"` + OriginalName string `json:"OriginalName" xml:"OriginalName"` + TargetName string `json:"TargetName" xml:"TargetName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_output_parameter_map_in_get_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_output_parameter_map_in_get_service.go new file mode 100644 index 0000000..26d6eb3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_output_parameter_map_in_get_service.go @@ -0,0 +1,21 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OutputParameterMapInGetService is a nested struct in csb response +type OutputParameterMapInGetService struct { + OutputParameter []OutputParameter `json:"OutputParameter" xml:"OutputParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_project.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_project.go new file mode 100644 index 0000000..0a8ebeb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_project.go @@ -0,0 +1,37 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Project is a nested struct in csb response +type Project struct { + InterfaceJarLocation string `json:"InterfaceJarLocation" xml:"InterfaceJarLocation"` + Status int `json:"Status" xml:"Status"` + JarFileKey string `json:"JarFileKey" xml:"JarFileKey"` + ProjectOwnerEmail string `json:"ProjectOwnerEmail" xml:"ProjectOwnerEmail"` + Id int `json:"Id" xml:"Id"` + ProjectOwnerName string `json:"ProjectOwnerName" xml:"ProjectOwnerName"` + ProjectOwnerPhoneNum string `json:"ProjectOwnerPhoneNum" xml:"ProjectOwnerPhoneNum"` + GmtCreate int `json:"GmtCreate" xml:"GmtCreate"` + InterfaceJarName string `json:"InterfaceJarName" xml:"InterfaceJarName"` + DeleteFlag int `json:"DeleteFlag" xml:"DeleteFlag"` + OwnerId string `json:"OwnerId" xml:"OwnerId"` + ProjectName string `json:"ProjectName" xml:"ProjectName"` + UserId string `json:"UserId" xml:"UserId"` + ApiNum int `json:"ApiNum" xml:"ApiNum"` + GmtModified int `json:"GmtModified" xml:"GmtModified"` + CsbId int `json:"CsbId" xml:"CsbId"` + Description string `json:"Description" xml:"Description"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_project_list_in_find_project_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_project_list_in_find_project_list.go new file mode 100644 index 0000000..b1171ea --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_project_list_in_find_project_list.go @@ -0,0 +1,21 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ProjectListInFindProjectList is a nested struct in csb response +type ProjectListInFindProjectList struct { + Project []Project `json:"Project" xml:"Project"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_project_list_in_get_project.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_project_list_in_get_project.go new file mode 100644 index 0000000..ae48e90 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_project_list_in_get_project.go @@ -0,0 +1,21 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ProjectListInGetProject is a nested struct in csb response +type ProjectListInGetProject struct { + Project []Project `json:"Project" xml:"Project"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_project_name_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_project_name_list.go new file mode 100644 index 0000000..f9dc9bf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_project_name_list.go @@ -0,0 +1,21 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ProjectNameList is a nested struct in csb response +type ProjectNameList struct { + ProjectName []string `json:"ProjectName" xml:"ProjectName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_route_conf.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_route_conf.go new file mode 100644 index 0000000..4fb1813 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_route_conf.go @@ -0,0 +1,23 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouteConf is a nested struct in csb response +type RouteConf struct { + ServiceRouteStrategy string `json:"ServiceRouteStrategy" xml:"ServiceRouteStrategy"` + ImportConf ImportConf `json:"ImportConf" xml:"ImportConf"` + ImportConfs ImportConfs `json:"ImportConfs" xml:"ImportConfs"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service.go new file mode 100644 index 0000000..f72ba9d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service.go @@ -0,0 +1,66 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Service is a nested struct in csb response +type Service struct { + ProvideType string `json:"ProvideType" xml:"ProvideType"` + RouteConfJson string `json:"RouteConfJson" xml:"RouteConfJson"` + ServiceProviderType string `json:"ServiceProviderType" xml:"ServiceProviderType"` + StatisticName string `json:"StatisticName" xml:"StatisticName"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` + AllVisiable bool `json:"AllVisiable" xml:"AllVisiable"` + ServiceOpenRestfulPath string `json:"ServiceOpenRestfulPath" xml:"ServiceOpenRestfulPath"` + ConsumeTypesJSON string `json:"ConsumeTypesJSON" xml:"ConsumeTypesJSON"` + SSL bool `json:"SSL" xml:"SSL"` + CasTargets string `json:"CasTargets" xml:"CasTargets"` + ProjectName string `json:"ProjectName" xml:"ProjectName"` + UserId string `json:"UserId" xml:"UserId"` + IpWhiteStr string `json:"IpWhiteStr" xml:"IpWhiteStr"` + OldVersion string `json:"OldVersion" xml:"OldVersion"` + ApproveUserId string `json:"ApproveUserId" xml:"ApproveUserId"` + ModelVersion string `json:"ModelVersion" xml:"ModelVersion"` + Scope string `json:"Scope" xml:"Scope"` + ServiceName string `json:"ServiceName" xml:"ServiceName"` + Description string `json:"Description" xml:"Description"` + Status int `json:"Status" xml:"Status"` + IpBlackStr string `json:"IpBlackStr" xml:"IpBlackStr"` + ErrDefJSON string `json:"ErrDefJSON" xml:"ErrDefJSON"` + PrincipalName string `json:"PrincipalName" xml:"PrincipalName"` + Active bool `json:"Active" xml:"Active"` + OrderInfo string `json:"OrderInfo" xml:"OrderInfo"` + Id int `json:"Id" xml:"Id"` + OttFlag bool `json:"OttFlag" xml:"OttFlag"` + AccessParamsJSON string `json:"AccessParamsJSON" xml:"AccessParamsJSON"` + PolicyHandler string `json:"PolicyHandler" xml:"PolicyHandler"` + ModifiedTime int `json:"ModifiedTime" xml:"ModifiedTime"` + OpenRestfulPath string `json:"OpenRestfulPath" xml:"OpenRestfulPath"` + InterfaceName string `json:"InterfaceName" xml:"InterfaceName"` + OwnerId string `json:"OwnerId" xml:"OwnerId"` + ValidConsumeTypes bool `json:"ValidConsumeTypes" xml:"ValidConsumeTypes"` + Qps int `json:"Qps" xml:"Qps"` + CsbId int `json:"CsbId" xml:"CsbId"` + Alias string `json:"Alias" xml:"Alias"` + ProjectId int `json:"ProjectId" xml:"ProjectId"` + ValidProvideType bool `json:"ValidProvideType" xml:"ValidProvideType"` + SkipAuth bool `json:"SkipAuth" xml:"SkipAuth"` + ServiceVersion string `json:"ServiceVersion" xml:"ServiceVersion"` + CasServTargets []string `json:"CasServTargets" xml:"CasServTargets"` + ConsumeTypes []string `json:"ConsumeTypes" xml:"ConsumeTypes"` + RouteConf RouteConf `json:"RouteConf" xml:"RouteConf"` + ServiceVersionsList []ServiceVersion `json:"ServiceVersionsList" xml:"ServiceVersionsList"` + VisiableGroupList []VisiableGroup `json:"VisiableGroupList" xml:"VisiableGroupList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_in_find_orderable_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_in_find_orderable_list.go new file mode 100644 index 0000000..9a556a9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_in_find_orderable_list.go @@ -0,0 +1,40 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServiceInFindOrderableList is a nested struct in csb response +type ServiceInFindOrderableList struct { + Alias string `json:"Alias" xml:"Alias"` + AllVisiable bool `json:"AllVisiable" xml:"AllVisiable"` + ApproveUserId string `json:"ApproveUserId" xml:"ApproveUserId"` + CasTargets string `json:"CasTargets" xml:"CasTargets"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` + CsbId int `json:"CsbId" xml:"CsbId"` + Id int `json:"Id" xml:"Id"` + InterfaceName string `json:"InterfaceName" xml:"InterfaceName"` + ModifiedTime int `json:"ModifiedTime" xml:"ModifiedTime"` + OwnerId string `json:"OwnerId" xml:"OwnerId"` + PrincipalName string `json:"PrincipalName" xml:"PrincipalName"` + ProjectId string `json:"ProjectId" xml:"ProjectId"` + ProjectName string `json:"ProjectName" xml:"ProjectName"` + Scope string `json:"Scope" xml:"Scope"` + ServiceName string `json:"ServiceName" xml:"ServiceName"` + ServiceVersion string `json:"ServiceVersion" xml:"ServiceVersion"` + SkipAuth bool `json:"SkipAuth" xml:"SkipAuth"` + StatisticName string `json:"StatisticName" xml:"StatisticName"` + Status int `json:"Status" xml:"Status"` + UserId string `json:"UserId" xml:"UserId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_in_get_order.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_in_get_order.go new file mode 100644 index 0000000..3c61061 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_in_get_order.go @@ -0,0 +1,48 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServiceInGetOrder is a nested struct in csb response +type ServiceInGetOrder struct { + AccessParamsJSON string `json:"AccessParamsJSON" xml:"AccessParamsJSON"` + Active bool `json:"Active" xml:"Active"` + Alias string `json:"Alias" xml:"Alias"` + AllVisiable bool `json:"AllVisiable" xml:"AllVisiable"` + ConsumeTypesJSON string `json:"ConsumeTypesJSON" xml:"ConsumeTypesJSON"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` + CsbId int `json:"CsbId" xml:"CsbId"` + ErrDefJSON string `json:"ErrDefJSON" xml:"ErrDefJSON"` + Id int `json:"Id" xml:"Id"` + InterfaceName string `json:"InterfaceName" xml:"InterfaceName"` + OldVersion string `json:"OldVersion" xml:"OldVersion"` + OttFlag bool `json:"OttFlag" xml:"OttFlag"` + OwnerId string `json:"OwnerId" xml:"OwnerId"` + PrincipalName string `json:"PrincipalName" xml:"PrincipalName"` + ProjectId string `json:"ProjectId" xml:"ProjectId"` + ProjectName string `json:"ProjectName" xml:"ProjectName"` + ProvideType string `json:"ProvideType" xml:"ProvideType"` + SSL bool `json:"SSL" xml:"SSL"` + Scope string `json:"Scope" xml:"Scope"` + ServiceName string `json:"ServiceName" xml:"ServiceName"` + ServiceProviderType string `json:"ServiceProviderType" xml:"ServiceProviderType"` + ServiceVersion string `json:"ServiceVersion" xml:"ServiceVersion"` + SkipAuth bool `json:"SkipAuth" xml:"SkipAuth"` + StatisticName string `json:"StatisticName" xml:"StatisticName"` + Status int `json:"Status" xml:"Status"` + UserId int `json:"UserId" xml:"UserId"` + ValidConsumeTypes bool `json:"ValidConsumeTypes" xml:"ValidConsumeTypes"` + ValidProvideType bool `json:"ValidProvideType" xml:"ValidProvideType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_list_in_find_approve_service_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_list_in_find_approve_service_list.go new file mode 100644 index 0000000..5700d31 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_list_in_find_approve_service_list.go @@ -0,0 +1,21 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServiceListInFindApproveServiceList is a nested struct in csb response +type ServiceListInFindApproveServiceList struct { + Service []Service `json:"Service" xml:"Service"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_list_in_find_orderable_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_list_in_find_orderable_list.go new file mode 100644 index 0000000..c010f41 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_list_in_find_orderable_list.go @@ -0,0 +1,21 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServiceListInFindOrderableList is a nested struct in csb response +type ServiceListInFindOrderableList struct { + Service []ServiceInFindOrderableList `json:"Service" xml:"Service"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_list_in_find_service_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_list_in_find_service_list.go new file mode 100644 index 0000000..0f9eaac --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_list_in_find_service_list.go @@ -0,0 +1,21 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServiceListInFindServiceList is a nested struct in csb response +type ServiceListInFindServiceList struct { + Service []Service `json:"Service" xml:"Service"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_version.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_version.go new file mode 100644 index 0000000..9adc4d4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_version.go @@ -0,0 +1,33 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServiceVersion is a nested struct in csb response +type ServiceVersion struct { + Active bool `json:"Active" xml:"Active"` + AllVisiable bool `json:"AllVisiable" xml:"AllVisiable"` + Id int `json:"Id" xml:"Id"` + OldVersion string `json:"OldVersion" xml:"OldVersion"` + OttFlag bool `json:"OttFlag" xml:"OttFlag"` + SSL bool `json:"SSL" xml:"SSL"` + Scope string `json:"Scope" xml:"Scope"` + ServiceVersion string `json:"ServiceVersion" xml:"ServiceVersion"` + SkipAuth bool `json:"SkipAuth" xml:"SkipAuth"` + StatisticName string `json:"StatisticName" xml:"StatisticName"` + Status int `json:"Status" xml:"Status"` + ValidConsumeTypes bool `json:"ValidConsumeTypes" xml:"ValidConsumeTypes"` + ValidProvideType bool `json:"ValidProvideType" xml:"ValidProvideType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_versions_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_versions_list.go new file mode 100644 index 0000000..c2fa9c2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_service_versions_list.go @@ -0,0 +1,21 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServiceVersionsList is a nested struct in csb response +type ServiceVersionsList struct { + ServiceVersion []ServiceVersion `json:"ServiceVersion" xml:"ServiceVersion"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_sla_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_sla_info.go new file mode 100644 index 0000000..45e36e9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_sla_info.go @@ -0,0 +1,22 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SlaInfo is a nested struct in csb response +type SlaInfo struct { + Qps string `json:"Qps" xml:"Qps"` + Qph string `json:"Qph" xml:"Qph"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_sla_info_in_find_approval_order_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_sla_info_in_find_approval_order_list.go new file mode 100644 index 0000000..75ecbf7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_sla_info_in_find_approval_order_list.go @@ -0,0 +1,22 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SlaInfoInFindApprovalOrderList is a nested struct in csb response +type SlaInfoInFindApprovalOrderList struct { + Qph int `json:"Qph" xml:"Qph"` + Qps int `json:"Qps" xml:"Qps"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_strict_white_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_strict_white_list.go new file mode 100644 index 0000000..6e2a561 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_strict_white_list.go @@ -0,0 +1,21 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StrictWhiteList is a nested struct in csb response +type StrictWhiteList struct { + StrictWhite []string `json:"StrictWhite" xml:"StrictWhite"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_total.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_total.go new file mode 100644 index 0000000..379059d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_total.go @@ -0,0 +1,22 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Total is a nested struct in csb response +type Total struct { + ErrorNum int `json:"ErrorNum" xml:"ErrorNum"` + Total int `json:"Total" xml:"Total"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_visiable_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_visiable_group.go new file mode 100644 index 0000000..68b0848 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_visiable_group.go @@ -0,0 +1,27 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VisiableGroup is a nested struct in csb response +type VisiableGroup struct { + Id int `json:"Id" xml:"Id"` + GroupId int `json:"GroupId" xml:"GroupId"` + UserId string `json:"UserId" xml:"UserId"` + ServiceId int `json:"ServiceId" xml:"ServiceId"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` + ModifiedTime int `json:"ModifiedTime" xml:"ModifiedTime"` + Status int `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_visiable_group_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_visiable_group_list.go new file mode 100644 index 0000000..d02f8dc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/struct_visiable_group_list.go @@ -0,0 +1,21 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VisiableGroupList is a nested struct in csb response +type VisiableGroupList struct { + VisiableGroup []VisiableGroup `json:"VisiableGroup" xml:"VisiableGroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_order.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_order.go new file mode 100644 index 0000000..3a5b33a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_order.go @@ -0,0 +1,106 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateOrder invokes the csb.UpdateOrder API synchronously +// api document: https://help.aliyun.com/api/csb/updateorder.html +func (client *Client) UpdateOrder(request *UpdateOrderRequest) (response *UpdateOrderResponse, err error) { + response = CreateUpdateOrderResponse() + err = client.DoAction(request, response) + return +} + +// UpdateOrderWithChan invokes the csb.UpdateOrder API asynchronously +// api document: https://help.aliyun.com/api/csb/updateorder.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateOrderWithChan(request *UpdateOrderRequest) (<-chan *UpdateOrderResponse, <-chan error) { + responseChan := make(chan *UpdateOrderResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateOrder(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateOrderWithCallback invokes the csb.UpdateOrder API asynchronously +// api document: https://help.aliyun.com/api/csb/updateorder.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateOrderWithCallback(request *UpdateOrderRequest, callback func(response *UpdateOrderResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateOrderResponse + var err error + defer close(result) + response, err = client.UpdateOrder(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateOrderRequest is the request struct for api UpdateOrder +type UpdateOrderRequest struct { + *requests.RpcRequest + CsbId requests.Integer `position:"Query" name:"CsbId"` + Data string `position:"Body" name:"Data"` +} + +// UpdateOrderResponse is the response struct for api UpdateOrder +type UpdateOrderResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateOrderRequest creates a request to invoke UpdateOrder API +func CreateUpdateOrderRequest() (request *UpdateOrderRequest) { + request = &UpdateOrderRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "UpdateOrder", "CSB", "openAPI") + return +} + +// CreateUpdateOrderResponse creates a response to parse from UpdateOrder response +func CreateUpdateOrderResponse() (response *UpdateOrderResponse) { + response = &UpdateOrderResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_order_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_order_list.go new file mode 100644 index 0000000..0cd18bf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_order_list.go @@ -0,0 +1,106 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateOrderList invokes the csb.UpdateOrderList API synchronously +// api document: https://help.aliyun.com/api/csb/updateorderlist.html +func (client *Client) UpdateOrderList(request *UpdateOrderListRequest) (response *UpdateOrderListResponse, err error) { + response = CreateUpdateOrderListResponse() + err = client.DoAction(request, response) + return +} + +// UpdateOrderListWithChan invokes the csb.UpdateOrderList API asynchronously +// api document: https://help.aliyun.com/api/csb/updateorderlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateOrderListWithChan(request *UpdateOrderListRequest) (<-chan *UpdateOrderListResponse, <-chan error) { + responseChan := make(chan *UpdateOrderListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateOrderList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateOrderListWithCallback invokes the csb.UpdateOrderList API asynchronously +// api document: https://help.aliyun.com/api/csb/updateorderlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateOrderListWithCallback(request *UpdateOrderListRequest, callback func(response *UpdateOrderListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateOrderListResponse + var err error + defer close(result) + response, err = client.UpdateOrderList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateOrderListRequest is the request struct for api UpdateOrderList +type UpdateOrderListRequest struct { + *requests.RpcRequest + Data string `position:"Body" name:"Data"` +} + +// UpdateOrderListResponse is the response struct for api UpdateOrderList +type UpdateOrderListResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateUpdateOrderListRequest creates a request to invoke UpdateOrderList API +func CreateUpdateOrderListRequest() (request *UpdateOrderListRequest) { + request = &UpdateOrderListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "UpdateOrderList", "CSB", "openAPI") + return +} + +// CreateUpdateOrderListResponse creates a response to parse from UpdateOrderList response +func CreateUpdateOrderListResponse() (response *UpdateOrderListResponse) { + response = &UpdateOrderListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_project.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_project.go new file mode 100644 index 0000000..6e2409a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_project.go @@ -0,0 +1,106 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateProject invokes the csb.UpdateProject API synchronously +// api document: https://help.aliyun.com/api/csb/updateproject.html +func (client *Client) UpdateProject(request *UpdateProjectRequest) (response *UpdateProjectResponse, err error) { + response = CreateUpdateProjectResponse() + err = client.DoAction(request, response) + return +} + +// UpdateProjectWithChan invokes the csb.UpdateProject API asynchronously +// api document: https://help.aliyun.com/api/csb/updateproject.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateProjectWithChan(request *UpdateProjectRequest) (<-chan *UpdateProjectResponse, <-chan error) { + responseChan := make(chan *UpdateProjectResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateProject(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateProjectWithCallback invokes the csb.UpdateProject API asynchronously +// api document: https://help.aliyun.com/api/csb/updateproject.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateProjectWithCallback(request *UpdateProjectRequest, callback func(response *UpdateProjectResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateProjectResponse + var err error + defer close(result) + response, err = client.UpdateProject(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateProjectRequest is the request struct for api UpdateProject +type UpdateProjectRequest struct { + *requests.RpcRequest + CsbId requests.Integer `position:"Query" name:"CsbId"` + Data string `position:"Body" name:"Data"` +} + +// UpdateProjectResponse is the response struct for api UpdateProject +type UpdateProjectResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateProjectRequest creates a request to invoke UpdateProject API +func CreateUpdateProjectRequest() (request *UpdateProjectRequest) { + request = &UpdateProjectRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "UpdateProject", "CSB", "openAPI") + return +} + +// CreateUpdateProjectResponse creates a response to parse from UpdateProject response +func CreateUpdateProjectResponse() (response *UpdateProjectResponse) { + response = &UpdateProjectResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_project_list_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_project_list_status.go new file mode 100644 index 0000000..54d7607 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_project_list_status.go @@ -0,0 +1,106 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateProjectListStatus invokes the csb.UpdateProjectListStatus API synchronously +// api document: https://help.aliyun.com/api/csb/updateprojectliststatus.html +func (client *Client) UpdateProjectListStatus(request *UpdateProjectListStatusRequest) (response *UpdateProjectListStatusResponse, err error) { + response = CreateUpdateProjectListStatusResponse() + err = client.DoAction(request, response) + return +} + +// UpdateProjectListStatusWithChan invokes the csb.UpdateProjectListStatus API asynchronously +// api document: https://help.aliyun.com/api/csb/updateprojectliststatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateProjectListStatusWithChan(request *UpdateProjectListStatusRequest) (<-chan *UpdateProjectListStatusResponse, <-chan error) { + responseChan := make(chan *UpdateProjectListStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateProjectListStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateProjectListStatusWithCallback invokes the csb.UpdateProjectListStatus API asynchronously +// api document: https://help.aliyun.com/api/csb/updateprojectliststatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateProjectListStatusWithCallback(request *UpdateProjectListStatusRequest, callback func(response *UpdateProjectListStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateProjectListStatusResponse + var err error + defer close(result) + response, err = client.UpdateProjectListStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateProjectListStatusRequest is the request struct for api UpdateProjectListStatus +type UpdateProjectListStatusRequest struct { + *requests.RpcRequest + CsbId requests.Integer `position:"Query" name:"CsbId"` + Data string `position:"Body" name:"Data"` +} + +// UpdateProjectListStatusResponse is the response struct for api UpdateProjectListStatus +type UpdateProjectListStatusResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateProjectListStatusRequest creates a request to invoke UpdateProjectListStatus API +func CreateUpdateProjectListStatusRequest() (request *UpdateProjectListStatusRequest) { + request = &UpdateProjectListStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "UpdateProjectListStatus", "CSB", "openAPI") + return +} + +// CreateUpdateProjectListStatusResponse creates a response to parse from UpdateProjectListStatus response +func CreateUpdateProjectListStatusResponse() (response *UpdateProjectListStatusResponse) { + response = &UpdateProjectListStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_service.go new file mode 100644 index 0000000..d8e93d9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_service.go @@ -0,0 +1,106 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateService invokes the csb.UpdateService API synchronously +// api document: https://help.aliyun.com/api/csb/updateservice.html +func (client *Client) UpdateService(request *UpdateServiceRequest) (response *UpdateServiceResponse, err error) { + response = CreateUpdateServiceResponse() + err = client.DoAction(request, response) + return +} + +// UpdateServiceWithChan invokes the csb.UpdateService API asynchronously +// api document: https://help.aliyun.com/api/csb/updateservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateServiceWithChan(request *UpdateServiceRequest) (<-chan *UpdateServiceResponse, <-chan error) { + responseChan := make(chan *UpdateServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateServiceWithCallback invokes the csb.UpdateService API asynchronously +// api document: https://help.aliyun.com/api/csb/updateservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateServiceWithCallback(request *UpdateServiceRequest, callback func(response *UpdateServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateServiceResponse + var err error + defer close(result) + response, err = client.UpdateService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateServiceRequest is the request struct for api UpdateService +type UpdateServiceRequest struct { + *requests.RpcRequest + CsbId requests.Integer `position:"Query" name:"CsbId"` + Data string `position:"Body" name:"Data"` +} + +// UpdateServiceResponse is the response struct for api UpdateService +type UpdateServiceResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateServiceRequest creates a request to invoke UpdateService API +func CreateUpdateServiceRequest() (request *UpdateServiceRequest) { + request = &UpdateServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "UpdateService", "CSB", "openAPI") + return +} + +// CreateUpdateServiceResponse creates a response to parse from UpdateService response +func CreateUpdateServiceResponse() (response *UpdateServiceResponse) { + response = &UpdateServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_service_list_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_service_list_status.go new file mode 100644 index 0000000..7e97413 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_service_list_status.go @@ -0,0 +1,106 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateServiceListStatus invokes the csb.UpdateServiceListStatus API synchronously +// api document: https://help.aliyun.com/api/csb/updateserviceliststatus.html +func (client *Client) UpdateServiceListStatus(request *UpdateServiceListStatusRequest) (response *UpdateServiceListStatusResponse, err error) { + response = CreateUpdateServiceListStatusResponse() + err = client.DoAction(request, response) + return +} + +// UpdateServiceListStatusWithChan invokes the csb.UpdateServiceListStatus API asynchronously +// api document: https://help.aliyun.com/api/csb/updateserviceliststatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateServiceListStatusWithChan(request *UpdateServiceListStatusRequest) (<-chan *UpdateServiceListStatusResponse, <-chan error) { + responseChan := make(chan *UpdateServiceListStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateServiceListStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateServiceListStatusWithCallback invokes the csb.UpdateServiceListStatus API asynchronously +// api document: https://help.aliyun.com/api/csb/updateserviceliststatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateServiceListStatusWithCallback(request *UpdateServiceListStatusRequest, callback func(response *UpdateServiceListStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateServiceListStatusResponse + var err error + defer close(result) + response, err = client.UpdateServiceListStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateServiceListStatusRequest is the request struct for api UpdateServiceListStatus +type UpdateServiceListStatusRequest struct { + *requests.RpcRequest + CsbId requests.Integer `position:"Query" name:"CsbId"` + Data string `position:"Body" name:"Data"` +} + +// UpdateServiceListStatusResponse is the response struct for api UpdateServiceListStatus +type UpdateServiceListStatusResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateServiceListStatusRequest creates a request to invoke UpdateServiceListStatus API +func CreateUpdateServiceListStatusRequest() (request *UpdateServiceListStatusRequest) { + request = &UpdateServiceListStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "UpdateServiceListStatus", "CSB", "openAPI") + return +} + +// CreateUpdateServiceListStatusResponse creates a response to parse from UpdateServiceListStatus response +func CreateUpdateServiceListStatusResponse() (response *UpdateServiceListStatusResponse) { + response = &UpdateServiceListStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_service_qps.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_service_qps.go new file mode 100644 index 0000000..80babfe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/csb/update_service_qps.go @@ -0,0 +1,106 @@ +package csb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateServiceQPS invokes the csb.UpdateServiceQPS API synchronously +// api document: https://help.aliyun.com/api/csb/updateserviceqps.html +func (client *Client) UpdateServiceQPS(request *UpdateServiceQPSRequest) (response *UpdateServiceQPSResponse, err error) { + response = CreateUpdateServiceQPSResponse() + err = client.DoAction(request, response) + return +} + +// UpdateServiceQPSWithChan invokes the csb.UpdateServiceQPS API asynchronously +// api document: https://help.aliyun.com/api/csb/updateserviceqps.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateServiceQPSWithChan(request *UpdateServiceQPSRequest) (<-chan *UpdateServiceQPSResponse, <-chan error) { + responseChan := make(chan *UpdateServiceQPSResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateServiceQPS(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateServiceQPSWithCallback invokes the csb.UpdateServiceQPS API asynchronously +// api document: https://help.aliyun.com/api/csb/updateserviceqps.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateServiceQPSWithCallback(request *UpdateServiceQPSRequest, callback func(response *UpdateServiceQPSResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateServiceQPSResponse + var err error + defer close(result) + response, err = client.UpdateServiceQPS(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateServiceQPSRequest is the request struct for api UpdateServiceQPS +type UpdateServiceQPSRequest struct { + *requests.RpcRequest + ServiceId requests.Integer `position:"Query" name:"ServiceId"` + Qps string `position:"Query" name:"Qps"` +} + +// UpdateServiceQPSResponse is the response struct for api UpdateServiceQPS +type UpdateServiceQPSResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateServiceQPSRequest creates a request to invoke UpdateServiceQPS API +func CreateUpdateServiceQPSRequest() (request *UpdateServiceQPSRequest) { + request = &UpdateServiceQPSRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("CSB", "2017-11-18", "UpdateServiceQPS", "CSB", "openAPI") + return +} + +// CreateUpdateServiceQPSResponse creates a response to parse from UpdateServiceQPS response +func CreateUpdateServiceQPSResponse() (response *UpdateServiceQPSResponse) { + response = &UpdateServiceQPSResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/add_dcdn_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/add_dcdn_domain.go new file mode 100644 index 0000000..2b16c44 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/add_dcdn_domain.go @@ -0,0 +1,111 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddDcdnDomain invokes the dcdn.AddDcdnDomain API synchronously +// api document: https://help.aliyun.com/api/dcdn/adddcdndomain.html +func (client *Client) AddDcdnDomain(request *AddDcdnDomainRequest) (response *AddDcdnDomainResponse, err error) { + response = CreateAddDcdnDomainResponse() + err = client.DoAction(request, response) + return +} + +// AddDcdnDomainWithChan invokes the dcdn.AddDcdnDomain API asynchronously +// api document: https://help.aliyun.com/api/dcdn/adddcdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddDcdnDomainWithChan(request *AddDcdnDomainRequest) (<-chan *AddDcdnDomainResponse, <-chan error) { + responseChan := make(chan *AddDcdnDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddDcdnDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddDcdnDomainWithCallback invokes the dcdn.AddDcdnDomain API asynchronously +// api document: https://help.aliyun.com/api/dcdn/adddcdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddDcdnDomainWithCallback(request *AddDcdnDomainRequest, callback func(response *AddDcdnDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddDcdnDomainResponse + var err error + defer close(result) + response, err = client.AddDcdnDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddDcdnDomainRequest is the request struct for api AddDcdnDomain +type AddDcdnDomainRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Sources string `position:"Query" name:"Sources"` + CheckUrl string `position:"Query" name:"CheckUrl"` + Scope string `position:"Query" name:"Scope"` + TopLevelDomain string `position:"Query" name:"TopLevelDomain"` +} + +// AddDcdnDomainResponse is the response struct for api AddDcdnDomain +type AddDcdnDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddDcdnDomainRequest creates a request to invoke AddDcdnDomain API +func CreateAddDcdnDomainRequest() (request *AddDcdnDomainRequest) { + request = &AddDcdnDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "AddDcdnDomain", "dcdn", "openAPI") + return +} + +// CreateAddDcdnDomainResponse creates a response to parse from AddDcdnDomain response +func CreateAddDcdnDomainResponse() (response *AddDcdnDomainResponse) { + response = &AddDcdnDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/batch_delete_dcdn_domain_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/batch_delete_dcdn_domain_configs.go new file mode 100644 index 0000000..ba57213 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/batch_delete_dcdn_domain_configs.go @@ -0,0 +1,107 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// BatchDeleteDcdnDomainConfigs invokes the dcdn.BatchDeleteDcdnDomainConfigs API synchronously +// api document: https://help.aliyun.com/api/dcdn/batchdeletedcdndomainconfigs.html +func (client *Client) BatchDeleteDcdnDomainConfigs(request *BatchDeleteDcdnDomainConfigsRequest) (response *BatchDeleteDcdnDomainConfigsResponse, err error) { + response = CreateBatchDeleteDcdnDomainConfigsResponse() + err = client.DoAction(request, response) + return +} + +// BatchDeleteDcdnDomainConfigsWithChan invokes the dcdn.BatchDeleteDcdnDomainConfigs API asynchronously +// api document: https://help.aliyun.com/api/dcdn/batchdeletedcdndomainconfigs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BatchDeleteDcdnDomainConfigsWithChan(request *BatchDeleteDcdnDomainConfigsRequest) (<-chan *BatchDeleteDcdnDomainConfigsResponse, <-chan error) { + responseChan := make(chan *BatchDeleteDcdnDomainConfigsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BatchDeleteDcdnDomainConfigs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BatchDeleteDcdnDomainConfigsWithCallback invokes the dcdn.BatchDeleteDcdnDomainConfigs API asynchronously +// api document: https://help.aliyun.com/api/dcdn/batchdeletedcdndomainconfigs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BatchDeleteDcdnDomainConfigsWithCallback(request *BatchDeleteDcdnDomainConfigsRequest, callback func(response *BatchDeleteDcdnDomainConfigsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BatchDeleteDcdnDomainConfigsResponse + var err error + defer close(result) + response, err = client.BatchDeleteDcdnDomainConfigs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BatchDeleteDcdnDomainConfigsRequest is the request struct for api BatchDeleteDcdnDomainConfigs +type BatchDeleteDcdnDomainConfigsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainNames string `position:"Query" name:"DomainNames"` + FunctionNames string `position:"Query" name:"FunctionNames"` +} + +// BatchDeleteDcdnDomainConfigsResponse is the response struct for api BatchDeleteDcdnDomainConfigs +type BatchDeleteDcdnDomainConfigsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateBatchDeleteDcdnDomainConfigsRequest creates a request to invoke BatchDeleteDcdnDomainConfigs API +func CreateBatchDeleteDcdnDomainConfigsRequest() (request *BatchDeleteDcdnDomainConfigsRequest) { + request = &BatchDeleteDcdnDomainConfigsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "BatchDeleteDcdnDomainConfigs", "dcdn", "openAPI") + return +} + +// CreateBatchDeleteDcdnDomainConfigsResponse creates a response to parse from BatchDeleteDcdnDomainConfigs response +func CreateBatchDeleteDcdnDomainConfigsResponse() (response *BatchDeleteDcdnDomainConfigsResponse) { + response = &BatchDeleteDcdnDomainConfigsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/client.go new file mode 100644 index 0000000..e9b197d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/client.go @@ -0,0 +1,81 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/delete_dcdn_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/delete_dcdn_domain.go new file mode 100644 index 0000000..83c56b7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/delete_dcdn_domain.go @@ -0,0 +1,107 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteDcdnDomain invokes the dcdn.DeleteDcdnDomain API synchronously +// api document: https://help.aliyun.com/api/dcdn/deletedcdndomain.html +func (client *Client) DeleteDcdnDomain(request *DeleteDcdnDomainRequest) (response *DeleteDcdnDomainResponse, err error) { + response = CreateDeleteDcdnDomainResponse() + err = client.DoAction(request, response) + return +} + +// DeleteDcdnDomainWithChan invokes the dcdn.DeleteDcdnDomain API asynchronously +// api document: https://help.aliyun.com/api/dcdn/deletedcdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteDcdnDomainWithChan(request *DeleteDcdnDomainRequest) (<-chan *DeleteDcdnDomainResponse, <-chan error) { + responseChan := make(chan *DeleteDcdnDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteDcdnDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteDcdnDomainWithCallback invokes the dcdn.DeleteDcdnDomain API asynchronously +// api document: https://help.aliyun.com/api/dcdn/deletedcdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteDcdnDomainWithCallback(request *DeleteDcdnDomainRequest, callback func(response *DeleteDcdnDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteDcdnDomainResponse + var err error + defer close(result) + response, err = client.DeleteDcdnDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteDcdnDomainRequest is the request struct for api DeleteDcdnDomain +type DeleteDcdnDomainRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` +} + +// DeleteDcdnDomainResponse is the response struct for api DeleteDcdnDomain +type DeleteDcdnDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteDcdnDomainRequest creates a request to invoke DeleteDcdnDomain API +func CreateDeleteDcdnDomainRequest() (request *DeleteDcdnDomainRequest) { + request = &DeleteDcdnDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "DeleteDcdnDomain", "dcdn", "openAPI") + return +} + +// CreateDeleteDcdnDomainResponse creates a response to parse from DeleteDcdnDomain response +func CreateDeleteDcdnDomainResponse() (response *DeleteDcdnDomainResponse) { + response = &DeleteDcdnDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_certificate_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_certificate_detail.go new file mode 100644 index 0000000..7d788b0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_certificate_detail.go @@ -0,0 +1,109 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDcdnCertificateDetail invokes the dcdn.DescribeDcdnCertificateDetail API synchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdncertificatedetail.html +func (client *Client) DescribeDcdnCertificateDetail(request *DescribeDcdnCertificateDetailRequest) (response *DescribeDcdnCertificateDetailResponse, err error) { + response = CreateDescribeDcdnCertificateDetailResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDcdnCertificateDetailWithChan invokes the dcdn.DescribeDcdnCertificateDetail API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdncertificatedetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnCertificateDetailWithChan(request *DescribeDcdnCertificateDetailRequest) (<-chan *DescribeDcdnCertificateDetailResponse, <-chan error) { + responseChan := make(chan *DescribeDcdnCertificateDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDcdnCertificateDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDcdnCertificateDetailWithCallback invokes the dcdn.DescribeDcdnCertificateDetail API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdncertificatedetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnCertificateDetailWithCallback(request *DescribeDcdnCertificateDetailRequest, callback func(response *DescribeDcdnCertificateDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDcdnCertificateDetailResponse + var err error + defer close(result) + response, err = client.DescribeDcdnCertificateDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDcdnCertificateDetailRequest is the request struct for api DescribeDcdnCertificateDetail +type DescribeDcdnCertificateDetailRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + CertName string `position:"Query" name:"CertName"` +} + +// DescribeDcdnCertificateDetailResponse is the response struct for api DescribeDcdnCertificateDetail +type DescribeDcdnCertificateDetailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Cert string `json:"Cert" xml:"Cert"` + Key string `json:"Key" xml:"Key"` + CertId int `json:"CertId" xml:"CertId"` + CertName string `json:"CertName" xml:"CertName"` +} + +// CreateDescribeDcdnCertificateDetailRequest creates a request to invoke DescribeDcdnCertificateDetail API +func CreateDescribeDcdnCertificateDetailRequest() (request *DescribeDcdnCertificateDetailRequest) { + request = &DescribeDcdnCertificateDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "DescribeDcdnCertificateDetail", "dcdn", "openAPI") + return +} + +// CreateDescribeDcdnCertificateDetailResponse creates a response to parse from DescribeDcdnCertificateDetail response +func CreateDescribeDcdnCertificateDetailResponse() (response *DescribeDcdnCertificateDetailResponse) { + response = &DescribeDcdnCertificateDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_certificate_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_certificate_list.go new file mode 100644 index 0000000..cf7b970 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_certificate_list.go @@ -0,0 +1,106 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDcdnCertificateList invokes the dcdn.DescribeDcdnCertificateList API synchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdncertificatelist.html +func (client *Client) DescribeDcdnCertificateList(request *DescribeDcdnCertificateListRequest) (response *DescribeDcdnCertificateListResponse, err error) { + response = CreateDescribeDcdnCertificateListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDcdnCertificateListWithChan invokes the dcdn.DescribeDcdnCertificateList API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdncertificatelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnCertificateListWithChan(request *DescribeDcdnCertificateListRequest) (<-chan *DescribeDcdnCertificateListResponse, <-chan error) { + responseChan := make(chan *DescribeDcdnCertificateListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDcdnCertificateList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDcdnCertificateListWithCallback invokes the dcdn.DescribeDcdnCertificateList API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdncertificatelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnCertificateListWithCallback(request *DescribeDcdnCertificateListRequest, callback func(response *DescribeDcdnCertificateListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDcdnCertificateListResponse + var err error + defer close(result) + response, err = client.DescribeDcdnCertificateList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDcdnCertificateListRequest is the request struct for api DescribeDcdnCertificateList +type DescribeDcdnCertificateListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` +} + +// DescribeDcdnCertificateListResponse is the response struct for api DescribeDcdnCertificateList +type DescribeDcdnCertificateListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CertificateListModel CertificateListModel `json:"CertificateListModel" xml:"CertificateListModel"` +} + +// CreateDescribeDcdnCertificateListRequest creates a request to invoke DescribeDcdnCertificateList API +func CreateDescribeDcdnCertificateListRequest() (request *DescribeDcdnCertificateListRequest) { + request = &DescribeDcdnCertificateListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "DescribeDcdnCertificateList", "dcdn", "openAPI") + return +} + +// CreateDescribeDcdnCertificateListResponse creates a response to parse from DescribeDcdnCertificateList response +func CreateDescribeDcdnCertificateListResponse() (response *DescribeDcdnCertificateListResponse) { + response = &DescribeDcdnCertificateListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_bps_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_bps_data.go new file mode 100644 index 0000000..acd8e97 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_bps_data.go @@ -0,0 +1,107 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDcdnDomainBpsData invokes the dcdn.DescribeDcdnDomainBpsData API synchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainbpsdata.html +func (client *Client) DescribeDcdnDomainBpsData(request *DescribeDcdnDomainBpsDataRequest) (response *DescribeDcdnDomainBpsDataResponse, err error) { + response = CreateDescribeDcdnDomainBpsDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDcdnDomainBpsDataWithChan invokes the dcdn.DescribeDcdnDomainBpsData API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainbpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainBpsDataWithChan(request *DescribeDcdnDomainBpsDataRequest) (<-chan *DescribeDcdnDomainBpsDataResponse, <-chan error) { + responseChan := make(chan *DescribeDcdnDomainBpsDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDcdnDomainBpsData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDcdnDomainBpsDataWithCallback invokes the dcdn.DescribeDcdnDomainBpsData API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainbpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainBpsDataWithCallback(request *DescribeDcdnDomainBpsDataRequest, callback func(response *DescribeDcdnDomainBpsDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDcdnDomainBpsDataResponse + var err error + defer close(result) + response, err = client.DescribeDcdnDomainBpsData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDcdnDomainBpsDataRequest is the request struct for api DescribeDcdnDomainBpsData +type DescribeDcdnDomainBpsDataRequest struct { + *requests.RpcRequest +} + +// DescribeDcdnDomainBpsDataResponse is the response struct for api DescribeDcdnDomainBpsData +type DescribeDcdnDomainBpsDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + BpsDataPerInterval BpsDataPerInterval `json:"BpsDataPerInterval" xml:"BpsDataPerInterval"` +} + +// CreateDescribeDcdnDomainBpsDataRequest creates a request to invoke DescribeDcdnDomainBpsData API +func CreateDescribeDcdnDomainBpsDataRequest() (request *DescribeDcdnDomainBpsDataRequest) { + request = &DescribeDcdnDomainBpsDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "DescribeDcdnDomainBpsData", "dcdn", "openAPI") + return +} + +// CreateDescribeDcdnDomainBpsDataResponse creates a response to parse from DescribeDcdnDomainBpsData response +func CreateDescribeDcdnDomainBpsDataResponse() (response *DescribeDcdnDomainBpsDataResponse) { + response = &DescribeDcdnDomainBpsDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_cname.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_cname.go new file mode 100644 index 0000000..1734523 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_cname.go @@ -0,0 +1,103 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDcdnDomainCname invokes the dcdn.DescribeDcdnDomainCname API synchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomaincname.html +func (client *Client) DescribeDcdnDomainCname(request *DescribeDcdnDomainCnameRequest) (response *DescribeDcdnDomainCnameResponse, err error) { + response = CreateDescribeDcdnDomainCnameResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDcdnDomainCnameWithChan invokes the dcdn.DescribeDcdnDomainCname API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomaincname.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainCnameWithChan(request *DescribeDcdnDomainCnameRequest) (<-chan *DescribeDcdnDomainCnameResponse, <-chan error) { + responseChan := make(chan *DescribeDcdnDomainCnameResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDcdnDomainCname(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDcdnDomainCnameWithCallback invokes the dcdn.DescribeDcdnDomainCname API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomaincname.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainCnameWithCallback(request *DescribeDcdnDomainCnameRequest, callback func(response *DescribeDcdnDomainCnameResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDcdnDomainCnameResponse + var err error + defer close(result) + response, err = client.DescribeDcdnDomainCname(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDcdnDomainCnameRequest is the request struct for api DescribeDcdnDomainCname +type DescribeDcdnDomainCnameRequest struct { + *requests.RpcRequest +} + +// DescribeDcdnDomainCnameResponse is the response struct for api DescribeDcdnDomainCname +type DescribeDcdnDomainCnameResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CnameDatas CnameDatas `json:"CnameDatas" xml:"CnameDatas"` +} + +// CreateDescribeDcdnDomainCnameRequest creates a request to invoke DescribeDcdnDomainCname API +func CreateDescribeDcdnDomainCnameRequest() (request *DescribeDcdnDomainCnameRequest) { + request = &DescribeDcdnDomainCnameRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "DescribeDcdnDomainCname", "dcdn", "openAPI") + return +} + +// CreateDescribeDcdnDomainCnameResponse creates a response to parse from DescribeDcdnDomainCname response +func CreateDescribeDcdnDomainCnameResponse() (response *DescribeDcdnDomainCnameResponse) { + response = &DescribeDcdnDomainCnameResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_configs.go new file mode 100644 index 0000000..ccf3907 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_configs.go @@ -0,0 +1,107 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDcdnDomainConfigs invokes the dcdn.DescribeDcdnDomainConfigs API synchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainconfigs.html +func (client *Client) DescribeDcdnDomainConfigs(request *DescribeDcdnDomainConfigsRequest) (response *DescribeDcdnDomainConfigsResponse, err error) { + response = CreateDescribeDcdnDomainConfigsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDcdnDomainConfigsWithChan invokes the dcdn.DescribeDcdnDomainConfigs API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainconfigs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainConfigsWithChan(request *DescribeDcdnDomainConfigsRequest) (<-chan *DescribeDcdnDomainConfigsResponse, <-chan error) { + responseChan := make(chan *DescribeDcdnDomainConfigsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDcdnDomainConfigs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDcdnDomainConfigsWithCallback invokes the dcdn.DescribeDcdnDomainConfigs API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainconfigs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainConfigsWithCallback(request *DescribeDcdnDomainConfigsRequest, callback func(response *DescribeDcdnDomainConfigsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDcdnDomainConfigsResponse + var err error + defer close(result) + response, err = client.DescribeDcdnDomainConfigs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDcdnDomainConfigsRequest is the request struct for api DescribeDcdnDomainConfigs +type DescribeDcdnDomainConfigsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + FunctionNames string `position:"Query" name:"FunctionNames"` +} + +// DescribeDcdnDomainConfigsResponse is the response struct for api DescribeDcdnDomainConfigs +type DescribeDcdnDomainConfigsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainConfigs DomainConfigs `json:"DomainConfigs" xml:"DomainConfigs"` +} + +// CreateDescribeDcdnDomainConfigsRequest creates a request to invoke DescribeDcdnDomainConfigs API +func CreateDescribeDcdnDomainConfigsRequest() (request *DescribeDcdnDomainConfigsRequest) { + request = &DescribeDcdnDomainConfigsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "DescribeDcdnDomainConfigs", "dcdn", "openAPI") + return +} + +// CreateDescribeDcdnDomainConfigsResponse creates a response to parse from DescribeDcdnDomainConfigs response +func CreateDescribeDcdnDomainConfigsResponse() (response *DescribeDcdnDomainConfigsResponse) { + response = &DescribeDcdnDomainConfigsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_detail.go new file mode 100644 index 0000000..2a1da4a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_detail.go @@ -0,0 +1,106 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDcdnDomainDetail invokes the dcdn.DescribeDcdnDomainDetail API synchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomaindetail.html +func (client *Client) DescribeDcdnDomainDetail(request *DescribeDcdnDomainDetailRequest) (response *DescribeDcdnDomainDetailResponse, err error) { + response = CreateDescribeDcdnDomainDetailResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDcdnDomainDetailWithChan invokes the dcdn.DescribeDcdnDomainDetail API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomaindetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainDetailWithChan(request *DescribeDcdnDomainDetailRequest) (<-chan *DescribeDcdnDomainDetailResponse, <-chan error) { + responseChan := make(chan *DescribeDcdnDomainDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDcdnDomainDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDcdnDomainDetailWithCallback invokes the dcdn.DescribeDcdnDomainDetail API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomaindetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainDetailWithCallback(request *DescribeDcdnDomainDetailRequest, callback func(response *DescribeDcdnDomainDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDcdnDomainDetailResponse + var err error + defer close(result) + response, err = client.DescribeDcdnDomainDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDcdnDomainDetailRequest is the request struct for api DescribeDcdnDomainDetail +type DescribeDcdnDomainDetailRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` +} + +// DescribeDcdnDomainDetailResponse is the response struct for api DescribeDcdnDomainDetail +type DescribeDcdnDomainDetailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainDetail DomainDetail `json:"DomainDetail" xml:"DomainDetail"` +} + +// CreateDescribeDcdnDomainDetailRequest creates a request to invoke DescribeDcdnDomainDetail API +func CreateDescribeDcdnDomainDetailRequest() (request *DescribeDcdnDomainDetailRequest) { + request = &DescribeDcdnDomainDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "DescribeDcdnDomainDetail", "dcdn", "openAPI") + return +} + +// CreateDescribeDcdnDomainDetailResponse creates a response to parse from DescribeDcdnDomainDetail response +func CreateDescribeDcdnDomainDetailResponse() (response *DescribeDcdnDomainDetailResponse) { + response = &DescribeDcdnDomainDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_hit_rate_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_hit_rate_data.go new file mode 100644 index 0000000..6bd1d3a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_hit_rate_data.go @@ -0,0 +1,107 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDcdnDomainHitRateData invokes the dcdn.DescribeDcdnDomainHitRateData API synchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainhitratedata.html +func (client *Client) DescribeDcdnDomainHitRateData(request *DescribeDcdnDomainHitRateDataRequest) (response *DescribeDcdnDomainHitRateDataResponse, err error) { + response = CreateDescribeDcdnDomainHitRateDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDcdnDomainHitRateDataWithChan invokes the dcdn.DescribeDcdnDomainHitRateData API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainhitratedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainHitRateDataWithChan(request *DescribeDcdnDomainHitRateDataRequest) (<-chan *DescribeDcdnDomainHitRateDataResponse, <-chan error) { + responseChan := make(chan *DescribeDcdnDomainHitRateDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDcdnDomainHitRateData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDcdnDomainHitRateDataWithCallback invokes the dcdn.DescribeDcdnDomainHitRateData API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainhitratedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainHitRateDataWithCallback(request *DescribeDcdnDomainHitRateDataRequest, callback func(response *DescribeDcdnDomainHitRateDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDcdnDomainHitRateDataResponse + var err error + defer close(result) + response, err = client.DescribeDcdnDomainHitRateData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDcdnDomainHitRateDataRequest is the request struct for api DescribeDcdnDomainHitRateData +type DescribeDcdnDomainHitRateDataRequest struct { + *requests.RpcRequest +} + +// DescribeDcdnDomainHitRateDataResponse is the response struct for api DescribeDcdnDomainHitRateData +type DescribeDcdnDomainHitRateDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + HitRatePerInterval HitRatePerInterval `json:"HitRatePerInterval" xml:"HitRatePerInterval"` +} + +// CreateDescribeDcdnDomainHitRateDataRequest creates a request to invoke DescribeDcdnDomainHitRateData API +func CreateDescribeDcdnDomainHitRateDataRequest() (request *DescribeDcdnDomainHitRateDataRequest) { + request = &DescribeDcdnDomainHitRateDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "DescribeDcdnDomainHitRateData", "dcdn", "openAPI") + return +} + +// CreateDescribeDcdnDomainHitRateDataResponse creates a response to parse from DescribeDcdnDomainHitRateData response +func CreateDescribeDcdnDomainHitRateDataResponse() (response *DescribeDcdnDomainHitRateDataResponse) { + response = &DescribeDcdnDomainHitRateDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_http_code_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_http_code_data.go new file mode 100644 index 0000000..b6b09df --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_http_code_data.go @@ -0,0 +1,107 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDcdnDomainHttpCodeData invokes the dcdn.DescribeDcdnDomainHttpCodeData API synchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainhttpcodedata.html +func (client *Client) DescribeDcdnDomainHttpCodeData(request *DescribeDcdnDomainHttpCodeDataRequest) (response *DescribeDcdnDomainHttpCodeDataResponse, err error) { + response = CreateDescribeDcdnDomainHttpCodeDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDcdnDomainHttpCodeDataWithChan invokes the dcdn.DescribeDcdnDomainHttpCodeData API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainhttpcodedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainHttpCodeDataWithChan(request *DescribeDcdnDomainHttpCodeDataRequest) (<-chan *DescribeDcdnDomainHttpCodeDataResponse, <-chan error) { + responseChan := make(chan *DescribeDcdnDomainHttpCodeDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDcdnDomainHttpCodeData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDcdnDomainHttpCodeDataWithCallback invokes the dcdn.DescribeDcdnDomainHttpCodeData API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainhttpcodedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainHttpCodeDataWithCallback(request *DescribeDcdnDomainHttpCodeDataRequest, callback func(response *DescribeDcdnDomainHttpCodeDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDcdnDomainHttpCodeDataResponse + var err error + defer close(result) + response, err = client.DescribeDcdnDomainHttpCodeData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDcdnDomainHttpCodeDataRequest is the request struct for api DescribeDcdnDomainHttpCodeData +type DescribeDcdnDomainHttpCodeDataRequest struct { + *requests.RpcRequest +} + +// DescribeDcdnDomainHttpCodeDataResponse is the response struct for api DescribeDcdnDomainHttpCodeData +type DescribeDcdnDomainHttpCodeDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + DataPerInterval DataPerInterval `json:"DataPerInterval" xml:"DataPerInterval"` +} + +// CreateDescribeDcdnDomainHttpCodeDataRequest creates a request to invoke DescribeDcdnDomainHttpCodeData API +func CreateDescribeDcdnDomainHttpCodeDataRequest() (request *DescribeDcdnDomainHttpCodeDataRequest) { + request = &DescribeDcdnDomainHttpCodeDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "DescribeDcdnDomainHttpCodeData", "dcdn", "openAPI") + return +} + +// CreateDescribeDcdnDomainHttpCodeDataResponse creates a response to parse from DescribeDcdnDomainHttpCodeData response +func CreateDescribeDcdnDomainHttpCodeDataResponse() (response *DescribeDcdnDomainHttpCodeDataResponse) { + response = &DescribeDcdnDomainHttpCodeDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_log.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_log.go new file mode 100644 index 0000000..059f547 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_log.go @@ -0,0 +1,104 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDcdnDomainLog invokes the dcdn.DescribeDcdnDomainLog API synchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainlog.html +func (client *Client) DescribeDcdnDomainLog(request *DescribeDcdnDomainLogRequest) (response *DescribeDcdnDomainLogResponse, err error) { + response = CreateDescribeDcdnDomainLogResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDcdnDomainLogWithChan invokes the dcdn.DescribeDcdnDomainLog API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainlog.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainLogWithChan(request *DescribeDcdnDomainLogRequest) (<-chan *DescribeDcdnDomainLogResponse, <-chan error) { + responseChan := make(chan *DescribeDcdnDomainLogResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDcdnDomainLog(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDcdnDomainLogWithCallback invokes the dcdn.DescribeDcdnDomainLog API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainlog.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainLogWithCallback(request *DescribeDcdnDomainLogRequest, callback func(response *DescribeDcdnDomainLogResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDcdnDomainLogResponse + var err error + defer close(result) + response, err = client.DescribeDcdnDomainLog(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDcdnDomainLogRequest is the request struct for api DescribeDcdnDomainLog +type DescribeDcdnDomainLogRequest struct { + *requests.RpcRequest +} + +// DescribeDcdnDomainLogResponse is the response struct for api DescribeDcdnDomainLog +type DescribeDcdnDomainLogResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + DomainLogDetails DomainLogDetails `json:"DomainLogDetails" xml:"DomainLogDetails"` +} + +// CreateDescribeDcdnDomainLogRequest creates a request to invoke DescribeDcdnDomainLog API +func CreateDescribeDcdnDomainLogRequest() (request *DescribeDcdnDomainLogRequest) { + request = &DescribeDcdnDomainLogRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "DescribeDcdnDomainLog", "dcdn", "openAPI") + return +} + +// CreateDescribeDcdnDomainLogResponse creates a response to parse from DescribeDcdnDomainLog response +func CreateDescribeDcdnDomainLogResponse() (response *DescribeDcdnDomainLogResponse) { + response = &DescribeDcdnDomainLogResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_origin_bps_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_origin_bps_data.go new file mode 100644 index 0000000..e578728 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_origin_bps_data.go @@ -0,0 +1,107 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDcdnDomainOriginBpsData invokes the dcdn.DescribeDcdnDomainOriginBpsData API synchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainoriginbpsdata.html +func (client *Client) DescribeDcdnDomainOriginBpsData(request *DescribeDcdnDomainOriginBpsDataRequest) (response *DescribeDcdnDomainOriginBpsDataResponse, err error) { + response = CreateDescribeDcdnDomainOriginBpsDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDcdnDomainOriginBpsDataWithChan invokes the dcdn.DescribeDcdnDomainOriginBpsData API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainoriginbpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainOriginBpsDataWithChan(request *DescribeDcdnDomainOriginBpsDataRequest) (<-chan *DescribeDcdnDomainOriginBpsDataResponse, <-chan error) { + responseChan := make(chan *DescribeDcdnDomainOriginBpsDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDcdnDomainOriginBpsData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDcdnDomainOriginBpsDataWithCallback invokes the dcdn.DescribeDcdnDomainOriginBpsData API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainoriginbpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainOriginBpsDataWithCallback(request *DescribeDcdnDomainOriginBpsDataRequest, callback func(response *DescribeDcdnDomainOriginBpsDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDcdnDomainOriginBpsDataResponse + var err error + defer close(result) + response, err = client.DescribeDcdnDomainOriginBpsData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDcdnDomainOriginBpsDataRequest is the request struct for api DescribeDcdnDomainOriginBpsData +type DescribeDcdnDomainOriginBpsDataRequest struct { + *requests.RpcRequest +} + +// DescribeDcdnDomainOriginBpsDataResponse is the response struct for api DescribeDcdnDomainOriginBpsData +type DescribeDcdnDomainOriginBpsDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + OriginBpsDataPerInterval OriginBpsDataPerInterval `json:"OriginBpsDataPerInterval" xml:"OriginBpsDataPerInterval"` +} + +// CreateDescribeDcdnDomainOriginBpsDataRequest creates a request to invoke DescribeDcdnDomainOriginBpsData API +func CreateDescribeDcdnDomainOriginBpsDataRequest() (request *DescribeDcdnDomainOriginBpsDataRequest) { + request = &DescribeDcdnDomainOriginBpsDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "DescribeDcdnDomainOriginBpsData", "dcdn", "openAPI") + return +} + +// CreateDescribeDcdnDomainOriginBpsDataResponse creates a response to parse from DescribeDcdnDomainOriginBpsData response +func CreateDescribeDcdnDomainOriginBpsDataResponse() (response *DescribeDcdnDomainOriginBpsDataResponse) { + response = &DescribeDcdnDomainOriginBpsDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_origin_traffic_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_origin_traffic_data.go new file mode 100644 index 0000000..27a65fa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_origin_traffic_data.go @@ -0,0 +1,107 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDcdnDomainOriginTrafficData invokes the dcdn.DescribeDcdnDomainOriginTrafficData API synchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainorigintrafficdata.html +func (client *Client) DescribeDcdnDomainOriginTrafficData(request *DescribeDcdnDomainOriginTrafficDataRequest) (response *DescribeDcdnDomainOriginTrafficDataResponse, err error) { + response = CreateDescribeDcdnDomainOriginTrafficDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDcdnDomainOriginTrafficDataWithChan invokes the dcdn.DescribeDcdnDomainOriginTrafficData API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainorigintrafficdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainOriginTrafficDataWithChan(request *DescribeDcdnDomainOriginTrafficDataRequest) (<-chan *DescribeDcdnDomainOriginTrafficDataResponse, <-chan error) { + responseChan := make(chan *DescribeDcdnDomainOriginTrafficDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDcdnDomainOriginTrafficData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDcdnDomainOriginTrafficDataWithCallback invokes the dcdn.DescribeDcdnDomainOriginTrafficData API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainorigintrafficdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainOriginTrafficDataWithCallback(request *DescribeDcdnDomainOriginTrafficDataRequest, callback func(response *DescribeDcdnDomainOriginTrafficDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDcdnDomainOriginTrafficDataResponse + var err error + defer close(result) + response, err = client.DescribeDcdnDomainOriginTrafficData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDcdnDomainOriginTrafficDataRequest is the request struct for api DescribeDcdnDomainOriginTrafficData +type DescribeDcdnDomainOriginTrafficDataRequest struct { + *requests.RpcRequest +} + +// DescribeDcdnDomainOriginTrafficDataResponse is the response struct for api DescribeDcdnDomainOriginTrafficData +type DescribeDcdnDomainOriginTrafficDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + OriginTrafficDataPerInterval OriginTrafficDataPerInterval `json:"OriginTrafficDataPerInterval" xml:"OriginTrafficDataPerInterval"` +} + +// CreateDescribeDcdnDomainOriginTrafficDataRequest creates a request to invoke DescribeDcdnDomainOriginTrafficData API +func CreateDescribeDcdnDomainOriginTrafficDataRequest() (request *DescribeDcdnDomainOriginTrafficDataRequest) { + request = &DescribeDcdnDomainOriginTrafficDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "DescribeDcdnDomainOriginTrafficData", "dcdn", "openAPI") + return +} + +// CreateDescribeDcdnDomainOriginTrafficDataResponse creates a response to parse from DescribeDcdnDomainOriginTrafficData response +func CreateDescribeDcdnDomainOriginTrafficDataResponse() (response *DescribeDcdnDomainOriginTrafficDataResponse) { + response = &DescribeDcdnDomainOriginTrafficDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_qps_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_qps_data.go new file mode 100644 index 0000000..601734e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_qps_data.go @@ -0,0 +1,107 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDcdnDomainQpsData invokes the dcdn.DescribeDcdnDomainQpsData API synchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainqpsdata.html +func (client *Client) DescribeDcdnDomainQpsData(request *DescribeDcdnDomainQpsDataRequest) (response *DescribeDcdnDomainQpsDataResponse, err error) { + response = CreateDescribeDcdnDomainQpsDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDcdnDomainQpsDataWithChan invokes the dcdn.DescribeDcdnDomainQpsData API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainqpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainQpsDataWithChan(request *DescribeDcdnDomainQpsDataRequest) (<-chan *DescribeDcdnDomainQpsDataResponse, <-chan error) { + responseChan := make(chan *DescribeDcdnDomainQpsDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDcdnDomainQpsData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDcdnDomainQpsDataWithCallback invokes the dcdn.DescribeDcdnDomainQpsData API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomainqpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainQpsDataWithCallback(request *DescribeDcdnDomainQpsDataRequest, callback func(response *DescribeDcdnDomainQpsDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDcdnDomainQpsDataResponse + var err error + defer close(result) + response, err = client.DescribeDcdnDomainQpsData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDcdnDomainQpsDataRequest is the request struct for api DescribeDcdnDomainQpsData +type DescribeDcdnDomainQpsDataRequest struct { + *requests.RpcRequest +} + +// DescribeDcdnDomainQpsDataResponse is the response struct for api DescribeDcdnDomainQpsData +type DescribeDcdnDomainQpsDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + QpsDataPerInterval QpsDataPerInterval `json:"QpsDataPerInterval" xml:"QpsDataPerInterval"` +} + +// CreateDescribeDcdnDomainQpsDataRequest creates a request to invoke DescribeDcdnDomainQpsData API +func CreateDescribeDcdnDomainQpsDataRequest() (request *DescribeDcdnDomainQpsDataRequest) { + request = &DescribeDcdnDomainQpsDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "DescribeDcdnDomainQpsData", "dcdn", "openAPI") + return +} + +// CreateDescribeDcdnDomainQpsDataResponse creates a response to parse from DescribeDcdnDomainQpsData response +func CreateDescribeDcdnDomainQpsDataResponse() (response *DescribeDcdnDomainQpsDataResponse) { + response = &DescribeDcdnDomainQpsDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_traffic_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_traffic_data.go new file mode 100644 index 0000000..0de4396 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_domain_traffic_data.go @@ -0,0 +1,107 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDcdnDomainTrafficData invokes the dcdn.DescribeDcdnDomainTrafficData API synchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomaintrafficdata.html +func (client *Client) DescribeDcdnDomainTrafficData(request *DescribeDcdnDomainTrafficDataRequest) (response *DescribeDcdnDomainTrafficDataResponse, err error) { + response = CreateDescribeDcdnDomainTrafficDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDcdnDomainTrafficDataWithChan invokes the dcdn.DescribeDcdnDomainTrafficData API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomaintrafficdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainTrafficDataWithChan(request *DescribeDcdnDomainTrafficDataRequest) (<-chan *DescribeDcdnDomainTrafficDataResponse, <-chan error) { + responseChan := make(chan *DescribeDcdnDomainTrafficDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDcdnDomainTrafficData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDcdnDomainTrafficDataWithCallback invokes the dcdn.DescribeDcdnDomainTrafficData API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdndomaintrafficdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnDomainTrafficDataWithCallback(request *DescribeDcdnDomainTrafficDataRequest, callback func(response *DescribeDcdnDomainTrafficDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDcdnDomainTrafficDataResponse + var err error + defer close(result) + response, err = client.DescribeDcdnDomainTrafficData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDcdnDomainTrafficDataRequest is the request struct for api DescribeDcdnDomainTrafficData +type DescribeDcdnDomainTrafficDataRequest struct { + *requests.RpcRequest +} + +// DescribeDcdnDomainTrafficDataResponse is the response struct for api DescribeDcdnDomainTrafficData +type DescribeDcdnDomainTrafficDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + TrafficDataPerInterval TrafficDataPerInterval `json:"TrafficDataPerInterval" xml:"TrafficDataPerInterval"` +} + +// CreateDescribeDcdnDomainTrafficDataRequest creates a request to invoke DescribeDcdnDomainTrafficData API +func CreateDescribeDcdnDomainTrafficDataRequest() (request *DescribeDcdnDomainTrafficDataRequest) { + request = &DescribeDcdnDomainTrafficDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "DescribeDcdnDomainTrafficData", "dcdn", "openAPI") + return +} + +// CreateDescribeDcdnDomainTrafficDataResponse creates a response to parse from DescribeDcdnDomainTrafficData response +func CreateDescribeDcdnDomainTrafficDataResponse() (response *DescribeDcdnDomainTrafficDataResponse) { + response = &DescribeDcdnDomainTrafficDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_refresh_quota.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_refresh_quota.go new file mode 100644 index 0000000..8fa848d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_refresh_quota.go @@ -0,0 +1,112 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDcdnRefreshQuota invokes the dcdn.DescribeDcdnRefreshQuota API synchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdnrefreshquota.html +func (client *Client) DescribeDcdnRefreshQuota(request *DescribeDcdnRefreshQuotaRequest) (response *DescribeDcdnRefreshQuotaResponse, err error) { + response = CreateDescribeDcdnRefreshQuotaResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDcdnRefreshQuotaWithChan invokes the dcdn.DescribeDcdnRefreshQuota API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdnrefreshquota.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnRefreshQuotaWithChan(request *DescribeDcdnRefreshQuotaRequest) (<-chan *DescribeDcdnRefreshQuotaResponse, <-chan error) { + responseChan := make(chan *DescribeDcdnRefreshQuotaResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDcdnRefreshQuota(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDcdnRefreshQuotaWithCallback invokes the dcdn.DescribeDcdnRefreshQuota API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdnrefreshquota.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnRefreshQuotaWithCallback(request *DescribeDcdnRefreshQuotaRequest, callback func(response *DescribeDcdnRefreshQuotaResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDcdnRefreshQuotaResponse + var err error + defer close(result) + response, err = client.DescribeDcdnRefreshQuota(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDcdnRefreshQuotaRequest is the request struct for api DescribeDcdnRefreshQuota +type DescribeDcdnRefreshQuotaRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` +} + +// DescribeDcdnRefreshQuotaResponse is the response struct for api DescribeDcdnRefreshQuota +type DescribeDcdnRefreshQuotaResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + UrlQuota string `json:"UrlQuota" xml:"UrlQuota"` + DirQuota string `json:"DirQuota" xml:"DirQuota"` + UrlRemain string `json:"UrlRemain" xml:"UrlRemain"` + DirRemain string `json:"DirRemain" xml:"DirRemain"` + PreloadQuota string `json:"PreloadQuota" xml:"PreloadQuota"` + BlockQuota string `json:"BlockQuota" xml:"BlockQuota"` + PreloadRemain string `json:"PreloadRemain" xml:"PreloadRemain"` + BlockRemain string `json:"blockRemain" xml:"blockRemain"` +} + +// CreateDescribeDcdnRefreshQuotaRequest creates a request to invoke DescribeDcdnRefreshQuota API +func CreateDescribeDcdnRefreshQuotaRequest() (request *DescribeDcdnRefreshQuotaRequest) { + request = &DescribeDcdnRefreshQuotaRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "DescribeDcdnRefreshQuota", "dcdn", "openAPI") + return +} + +// CreateDescribeDcdnRefreshQuotaResponse creates a response to parse from DescribeDcdnRefreshQuota response +func CreateDescribeDcdnRefreshQuotaResponse() (response *DescribeDcdnRefreshQuotaResponse) { + response = &DescribeDcdnRefreshQuotaResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_refresh_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_refresh_tasks.go new file mode 100644 index 0000000..b55883b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_refresh_tasks.go @@ -0,0 +1,118 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDcdnRefreshTasks invokes the dcdn.DescribeDcdnRefreshTasks API synchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdnrefreshtasks.html +func (client *Client) DescribeDcdnRefreshTasks(request *DescribeDcdnRefreshTasksRequest) (response *DescribeDcdnRefreshTasksResponse, err error) { + response = CreateDescribeDcdnRefreshTasksResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDcdnRefreshTasksWithChan invokes the dcdn.DescribeDcdnRefreshTasks API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdnrefreshtasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnRefreshTasksWithChan(request *DescribeDcdnRefreshTasksRequest) (<-chan *DescribeDcdnRefreshTasksResponse, <-chan error) { + responseChan := make(chan *DescribeDcdnRefreshTasksResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDcdnRefreshTasks(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDcdnRefreshTasksWithCallback invokes the dcdn.DescribeDcdnRefreshTasks API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdnrefreshtasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnRefreshTasksWithCallback(request *DescribeDcdnRefreshTasksRequest, callback func(response *DescribeDcdnRefreshTasksResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDcdnRefreshTasksResponse + var err error + defer close(result) + response, err = client.DescribeDcdnRefreshTasks(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDcdnRefreshTasksRequest is the request struct for api DescribeDcdnRefreshTasks +type DescribeDcdnRefreshTasksRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + TaskId string `position:"Query" name:"TaskId"` + ObjectPath string `position:"Query" name:"ObjectPath"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ObjectType string `position:"Query" name:"ObjectType"` + DomainName string `position:"Query" name:"DomainName"` + Status string `position:"Query" name:"Status"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` +} + +// DescribeDcdnRefreshTasksResponse is the response struct for api DescribeDcdnRefreshTasks +type DescribeDcdnRefreshTasksResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Tasks Tasks `json:"Tasks" xml:"Tasks"` +} + +// CreateDescribeDcdnRefreshTasksRequest creates a request to invoke DescribeDcdnRefreshTasks API +func CreateDescribeDcdnRefreshTasksRequest() (request *DescribeDcdnRefreshTasksRequest) { + request = &DescribeDcdnRefreshTasksRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "DescribeDcdnRefreshTasks", "dcdn", "openAPI") + return +} + +// CreateDescribeDcdnRefreshTasksResponse creates a response to parse from DescribeDcdnRefreshTasks response +func CreateDescribeDcdnRefreshTasksResponse() (response *DescribeDcdnRefreshTasksResponse) { + response = &DescribeDcdnRefreshTasksResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_service.go new file mode 100644 index 0000000..98e391a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_service.go @@ -0,0 +1,110 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDcdnService invokes the dcdn.DescribeDcdnService API synchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdnservice.html +func (client *Client) DescribeDcdnService(request *DescribeDcdnServiceRequest) (response *DescribeDcdnServiceResponse, err error) { + response = CreateDescribeDcdnServiceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDcdnServiceWithChan invokes the dcdn.DescribeDcdnService API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdnservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnServiceWithChan(request *DescribeDcdnServiceRequest) (<-chan *DescribeDcdnServiceResponse, <-chan error) { + responseChan := make(chan *DescribeDcdnServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDcdnService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDcdnServiceWithCallback invokes the dcdn.DescribeDcdnService API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdnservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnServiceWithCallback(request *DescribeDcdnServiceRequest, callback func(response *DescribeDcdnServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDcdnServiceResponse + var err error + defer close(result) + response, err = client.DescribeDcdnService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDcdnServiceRequest is the request struct for api DescribeDcdnService +type DescribeDcdnServiceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` +} + +// DescribeDcdnServiceResponse is the response struct for api DescribeDcdnService +type DescribeDcdnServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + OpeningTime string `json:"OpeningTime" xml:"OpeningTime"` + ChangingChargeType string `json:"ChangingChargeType" xml:"ChangingChargeType"` + ChangingAffectTime string `json:"ChangingAffectTime" xml:"ChangingAffectTime"` + OperationLocks OperationLocks `json:"OperationLocks" xml:"OperationLocks"` +} + +// CreateDescribeDcdnServiceRequest creates a request to invoke DescribeDcdnService API +func CreateDescribeDcdnServiceRequest() (request *DescribeDcdnServiceRequest) { + request = &DescribeDcdnServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "DescribeDcdnService", "dcdn", "openAPI") + return +} + +// CreateDescribeDcdnServiceResponse creates a response to parse from DescribeDcdnService response +func CreateDescribeDcdnServiceResponse() (response *DescribeDcdnServiceResponse) { + response = &DescribeDcdnServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_user_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_user_domains.go new file mode 100644 index 0000000..cc27f7d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_user_domains.go @@ -0,0 +1,118 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDcdnUserDomains invokes the dcdn.DescribeDcdnUserDomains API synchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdnuserdomains.html +func (client *Client) DescribeDcdnUserDomains(request *DescribeDcdnUserDomainsRequest) (response *DescribeDcdnUserDomainsResponse, err error) { + response = CreateDescribeDcdnUserDomainsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDcdnUserDomainsWithChan invokes the dcdn.DescribeDcdnUserDomains API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdnuserdomains.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnUserDomainsWithChan(request *DescribeDcdnUserDomainsRequest) (<-chan *DescribeDcdnUserDomainsResponse, <-chan error) { + responseChan := make(chan *DescribeDcdnUserDomainsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDcdnUserDomains(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDcdnUserDomainsWithCallback invokes the dcdn.DescribeDcdnUserDomains API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdnuserdomains.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnUserDomainsWithCallback(request *DescribeDcdnUserDomainsRequest, callback func(response *DescribeDcdnUserDomainsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDcdnUserDomainsResponse + var err error + defer close(result) + response, err = client.DescribeDcdnUserDomains(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDcdnUserDomainsRequest is the request struct for api DescribeDcdnUserDomains +type DescribeDcdnUserDomainsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + DomainName string `position:"Query" name:"DomainName"` + DomainStatus string `position:"Query" name:"DomainStatus"` + DomainSearchType string `position:"Query" name:"DomainSearchType"` + CheckDomainShow requests.Boolean `position:"Query" name:"CheckDomainShow"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + FuncId string `position:"Query" name:"FuncId"` + FuncFilter string `position:"Query" name:"FuncFilter"` +} + +// DescribeDcdnUserDomainsResponse is the response struct for api DescribeDcdnUserDomains +type DescribeDcdnUserDomainsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + OnlineCount int `json:"OnlineCount" xml:"OnlineCount"` + Domains Domains `json:"Domains" xml:"Domains"` +} + +// CreateDescribeDcdnUserDomainsRequest creates a request to invoke DescribeDcdnUserDomains API +func CreateDescribeDcdnUserDomainsRequest() (request *DescribeDcdnUserDomainsRequest) { + request = &DescribeDcdnUserDomainsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "DescribeDcdnUserDomains", "dcdn", "openAPI") + return +} + +// CreateDescribeDcdnUserDomainsResponse creates a response to parse from DescribeDcdnUserDomains response +func CreateDescribeDcdnUserDomainsResponse() (response *DescribeDcdnUserDomainsResponse) { + response = &DescribeDcdnUserDomainsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_user_resource_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_user_resource_package.go new file mode 100644 index 0000000..5bbc0b2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_dcdn_user_resource_package.go @@ -0,0 +1,105 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDcdnUserResourcePackage invokes the dcdn.DescribeDcdnUserResourcePackage API synchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdnuserresourcepackage.html +func (client *Client) DescribeDcdnUserResourcePackage(request *DescribeDcdnUserResourcePackageRequest) (response *DescribeDcdnUserResourcePackageResponse, err error) { + response = CreateDescribeDcdnUserResourcePackageResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDcdnUserResourcePackageWithChan invokes the dcdn.DescribeDcdnUserResourcePackage API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdnuserresourcepackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnUserResourcePackageWithChan(request *DescribeDcdnUserResourcePackageRequest) (<-chan *DescribeDcdnUserResourcePackageResponse, <-chan error) { + responseChan := make(chan *DescribeDcdnUserResourcePackageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDcdnUserResourcePackage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDcdnUserResourcePackageWithCallback invokes the dcdn.DescribeDcdnUserResourcePackage API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describedcdnuserresourcepackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDcdnUserResourcePackageWithCallback(request *DescribeDcdnUserResourcePackageRequest, callback func(response *DescribeDcdnUserResourcePackageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDcdnUserResourcePackageResponse + var err error + defer close(result) + response, err = client.DescribeDcdnUserResourcePackage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDcdnUserResourcePackageRequest is the request struct for api DescribeDcdnUserResourcePackage +type DescribeDcdnUserResourcePackageRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` +} + +// DescribeDcdnUserResourcePackageResponse is the response struct for api DescribeDcdnUserResourcePackage +type DescribeDcdnUserResourcePackageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ResourcePackageInfos ResourcePackageInfos `json:"ResourcePackageInfos" xml:"ResourcePackageInfos"` +} + +// CreateDescribeDcdnUserResourcePackageRequest creates a request to invoke DescribeDcdnUserResourcePackage API +func CreateDescribeDcdnUserResourcePackageRequest() (request *DescribeDcdnUserResourcePackageRequest) { + request = &DescribeDcdnUserResourcePackageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "DescribeDcdnUserResourcePackage", "dcdn", "openAPI") + return +} + +// CreateDescribeDcdnUserResourcePackageResponse creates a response to parse from DescribeDcdnUserResourcePackage response +func CreateDescribeDcdnUserResourcePackageResponse() (response *DescribeDcdnUserResourcePackageResponse) { + response = &DescribeDcdnUserResourcePackageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_user_dcdn_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_user_dcdn_status.go new file mode 100644 index 0000000..395a9f9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/describe_user_dcdn_status.go @@ -0,0 +1,108 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeUserDcdnStatus invokes the dcdn.DescribeUserDcdnStatus API synchronously +// api document: https://help.aliyun.com/api/dcdn/describeuserdcdnstatus.html +func (client *Client) DescribeUserDcdnStatus(request *DescribeUserDcdnStatusRequest) (response *DescribeUserDcdnStatusResponse, err error) { + response = CreateDescribeUserDcdnStatusResponse() + err = client.DoAction(request, response) + return +} + +// DescribeUserDcdnStatusWithChan invokes the dcdn.DescribeUserDcdnStatus API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describeuserdcdnstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserDcdnStatusWithChan(request *DescribeUserDcdnStatusRequest) (<-chan *DescribeUserDcdnStatusResponse, <-chan error) { + responseChan := make(chan *DescribeUserDcdnStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeUserDcdnStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeUserDcdnStatusWithCallback invokes the dcdn.DescribeUserDcdnStatus API asynchronously +// api document: https://help.aliyun.com/api/dcdn/describeuserdcdnstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserDcdnStatusWithCallback(request *DescribeUserDcdnStatusRequest, callback func(response *DescribeUserDcdnStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeUserDcdnStatusResponse + var err error + defer close(result) + response, err = client.DescribeUserDcdnStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeUserDcdnStatusRequest is the request struct for api DescribeUserDcdnStatus +type DescribeUserDcdnStatusRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` +} + +// DescribeUserDcdnStatusResponse is the response struct for api DescribeUserDcdnStatus +type DescribeUserDcdnStatusResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Enabled bool `json:"Enabled" xml:"Enabled"` + OnService bool `json:"OnService" xml:"OnService"` + InDebt bool `json:"InDebt" xml:"InDebt"` + InDebtOverdue bool `json:"InDebtOverdue" xml:"InDebtOverdue"` +} + +// CreateDescribeUserDcdnStatusRequest creates a request to invoke DescribeUserDcdnStatus API +func CreateDescribeUserDcdnStatusRequest() (request *DescribeUserDcdnStatusRequest) { + request = &DescribeUserDcdnStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "DescribeUserDcdnStatus", "dcdn", "openAPI") + return +} + +// CreateDescribeUserDcdnStatusResponse creates a response to parse from DescribeUserDcdnStatus response +func CreateDescribeUserDcdnStatusResponse() (response *DescribeUserDcdnStatusResponse) { + response = &DescribeUserDcdnStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/preload_dcdn_object_caches.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/preload_dcdn_object_caches.go new file mode 100644 index 0000000..3494f19 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/preload_dcdn_object_caches.go @@ -0,0 +1,106 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PreloadDcdnObjectCaches invokes the dcdn.PreloadDcdnObjectCaches API synchronously +// api document: https://help.aliyun.com/api/dcdn/preloaddcdnobjectcaches.html +func (client *Client) PreloadDcdnObjectCaches(request *PreloadDcdnObjectCachesRequest) (response *PreloadDcdnObjectCachesResponse, err error) { + response = CreatePreloadDcdnObjectCachesResponse() + err = client.DoAction(request, response) + return +} + +// PreloadDcdnObjectCachesWithChan invokes the dcdn.PreloadDcdnObjectCaches API asynchronously +// api document: https://help.aliyun.com/api/dcdn/preloaddcdnobjectcaches.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PreloadDcdnObjectCachesWithChan(request *PreloadDcdnObjectCachesRequest) (<-chan *PreloadDcdnObjectCachesResponse, <-chan error) { + responseChan := make(chan *PreloadDcdnObjectCachesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PreloadDcdnObjectCaches(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PreloadDcdnObjectCachesWithCallback invokes the dcdn.PreloadDcdnObjectCaches API asynchronously +// api document: https://help.aliyun.com/api/dcdn/preloaddcdnobjectcaches.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PreloadDcdnObjectCachesWithCallback(request *PreloadDcdnObjectCachesRequest, callback func(response *PreloadDcdnObjectCachesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PreloadDcdnObjectCachesResponse + var err error + defer close(result) + response, err = client.PreloadDcdnObjectCaches(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PreloadDcdnObjectCachesRequest is the request struct for api PreloadDcdnObjectCaches +type PreloadDcdnObjectCachesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ObjectPath string `position:"Query" name:"ObjectPath"` +} + +// PreloadDcdnObjectCachesResponse is the response struct for api PreloadDcdnObjectCaches +type PreloadDcdnObjectCachesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PreloadTaskId string `json:"PreloadTaskId" xml:"PreloadTaskId"` +} + +// CreatePreloadDcdnObjectCachesRequest creates a request to invoke PreloadDcdnObjectCaches API +func CreatePreloadDcdnObjectCachesRequest() (request *PreloadDcdnObjectCachesRequest) { + request = &PreloadDcdnObjectCachesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "PreloadDcdnObjectCaches", "dcdn", "openAPI") + return +} + +// CreatePreloadDcdnObjectCachesResponse creates a response to parse from PreloadDcdnObjectCaches response +func CreatePreloadDcdnObjectCachesResponse() (response *PreloadDcdnObjectCachesResponse) { + response = &PreloadDcdnObjectCachesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/refresh_dcdn_object_caches.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/refresh_dcdn_object_caches.go new file mode 100644 index 0000000..ccd05ac --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/refresh_dcdn_object_caches.go @@ -0,0 +1,107 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RefreshDcdnObjectCaches invokes the dcdn.RefreshDcdnObjectCaches API synchronously +// api document: https://help.aliyun.com/api/dcdn/refreshdcdnobjectcaches.html +func (client *Client) RefreshDcdnObjectCaches(request *RefreshDcdnObjectCachesRequest) (response *RefreshDcdnObjectCachesResponse, err error) { + response = CreateRefreshDcdnObjectCachesResponse() + err = client.DoAction(request, response) + return +} + +// RefreshDcdnObjectCachesWithChan invokes the dcdn.RefreshDcdnObjectCaches API asynchronously +// api document: https://help.aliyun.com/api/dcdn/refreshdcdnobjectcaches.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RefreshDcdnObjectCachesWithChan(request *RefreshDcdnObjectCachesRequest) (<-chan *RefreshDcdnObjectCachesResponse, <-chan error) { + responseChan := make(chan *RefreshDcdnObjectCachesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RefreshDcdnObjectCaches(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RefreshDcdnObjectCachesWithCallback invokes the dcdn.RefreshDcdnObjectCaches API asynchronously +// api document: https://help.aliyun.com/api/dcdn/refreshdcdnobjectcaches.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RefreshDcdnObjectCachesWithCallback(request *RefreshDcdnObjectCachesRequest, callback func(response *RefreshDcdnObjectCachesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RefreshDcdnObjectCachesResponse + var err error + defer close(result) + response, err = client.RefreshDcdnObjectCaches(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RefreshDcdnObjectCachesRequest is the request struct for api RefreshDcdnObjectCaches +type RefreshDcdnObjectCachesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ObjectPath string `position:"Query" name:"ObjectPath"` + ObjectType string `position:"Query" name:"ObjectType"` +} + +// RefreshDcdnObjectCachesResponse is the response struct for api RefreshDcdnObjectCaches +type RefreshDcdnObjectCachesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RefreshTaskId string `json:"RefreshTaskId" xml:"RefreshTaskId"` +} + +// CreateRefreshDcdnObjectCachesRequest creates a request to invoke RefreshDcdnObjectCaches API +func CreateRefreshDcdnObjectCachesRequest() (request *RefreshDcdnObjectCachesRequest) { + request = &RefreshDcdnObjectCachesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "RefreshDcdnObjectCaches", "dcdn", "openAPI") + return +} + +// CreateRefreshDcdnObjectCachesResponse creates a response to parse from RefreshDcdnObjectCaches response +func CreateRefreshDcdnObjectCachesResponse() (response *RefreshDcdnObjectCachesResponse) { + response = &RefreshDcdnObjectCachesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/set_dcdn_domain_certificate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/set_dcdn_domain_certificate.go new file mode 100644 index 0000000..f50ed5f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/set_dcdn_domain_certificate.go @@ -0,0 +1,111 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetDcdnDomainCertificate invokes the dcdn.SetDcdnDomainCertificate API synchronously +// api document: https://help.aliyun.com/api/dcdn/setdcdndomaincertificate.html +func (client *Client) SetDcdnDomainCertificate(request *SetDcdnDomainCertificateRequest) (response *SetDcdnDomainCertificateResponse, err error) { + response = CreateSetDcdnDomainCertificateResponse() + err = client.DoAction(request, response) + return +} + +// SetDcdnDomainCertificateWithChan invokes the dcdn.SetDcdnDomainCertificate API asynchronously +// api document: https://help.aliyun.com/api/dcdn/setdcdndomaincertificate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetDcdnDomainCertificateWithChan(request *SetDcdnDomainCertificateRequest) (<-chan *SetDcdnDomainCertificateResponse, <-chan error) { + responseChan := make(chan *SetDcdnDomainCertificateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetDcdnDomainCertificate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetDcdnDomainCertificateWithCallback invokes the dcdn.SetDcdnDomainCertificate API asynchronously +// api document: https://help.aliyun.com/api/dcdn/setdcdndomaincertificate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetDcdnDomainCertificateWithCallback(request *SetDcdnDomainCertificateRequest, callback func(response *SetDcdnDomainCertificateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetDcdnDomainCertificateResponse + var err error + defer close(result) + response, err = client.SetDcdnDomainCertificate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetDcdnDomainCertificateRequest is the request struct for api SetDcdnDomainCertificate +type SetDcdnDomainCertificateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + CertName string `position:"Query" name:"CertName"` + CertType string `position:"Query" name:"CertType"` + SSLProtocol string `position:"Query" name:"SSLProtocol"` + SSLPub string `position:"Query" name:"SSLPub"` + SSLPri string `position:"Query" name:"SSLPri"` + Region string `position:"Query" name:"Region"` +} + +// SetDcdnDomainCertificateResponse is the response struct for api SetDcdnDomainCertificate +type SetDcdnDomainCertificateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetDcdnDomainCertificateRequest creates a request to invoke SetDcdnDomainCertificate API +func CreateSetDcdnDomainCertificateRequest() (request *SetDcdnDomainCertificateRequest) { + request = &SetDcdnDomainCertificateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "SetDcdnDomainCertificate", "dcdn", "openAPI") + return +} + +// CreateSetDcdnDomainCertificateResponse creates a response to parse from SetDcdnDomainCertificate response +func CreateSetDcdnDomainCertificateResponse() (response *SetDcdnDomainCertificateResponse) { + response = &SetDcdnDomainCertificateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/start_dcdn_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/start_dcdn_domain.go new file mode 100644 index 0000000..3ca7c9e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/start_dcdn_domain.go @@ -0,0 +1,105 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StartDcdnDomain invokes the dcdn.StartDcdnDomain API synchronously +// api document: https://help.aliyun.com/api/dcdn/startdcdndomain.html +func (client *Client) StartDcdnDomain(request *StartDcdnDomainRequest) (response *StartDcdnDomainResponse, err error) { + response = CreateStartDcdnDomainResponse() + err = client.DoAction(request, response) + return +} + +// StartDcdnDomainWithChan invokes the dcdn.StartDcdnDomain API asynchronously +// api document: https://help.aliyun.com/api/dcdn/startdcdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartDcdnDomainWithChan(request *StartDcdnDomainRequest) (<-chan *StartDcdnDomainResponse, <-chan error) { + responseChan := make(chan *StartDcdnDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartDcdnDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartDcdnDomainWithCallback invokes the dcdn.StartDcdnDomain API asynchronously +// api document: https://help.aliyun.com/api/dcdn/startdcdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartDcdnDomainWithCallback(request *StartDcdnDomainRequest, callback func(response *StartDcdnDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartDcdnDomainResponse + var err error + defer close(result) + response, err = client.StartDcdnDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartDcdnDomainRequest is the request struct for api StartDcdnDomain +type StartDcdnDomainRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` +} + +// StartDcdnDomainResponse is the response struct for api StartDcdnDomain +type StartDcdnDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStartDcdnDomainRequest creates a request to invoke StartDcdnDomain API +func CreateStartDcdnDomainRequest() (request *StartDcdnDomainRequest) { + request = &StartDcdnDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "StartDcdnDomain", "dcdn", "openAPI") + return +} + +// CreateStartDcdnDomainResponse creates a response to parse from StartDcdnDomain response +func CreateStartDcdnDomainResponse() (response *StartDcdnDomainResponse) { + response = &StartDcdnDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/stop_dcdn_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/stop_dcdn_domain.go new file mode 100644 index 0000000..ed3d5ef --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/stop_dcdn_domain.go @@ -0,0 +1,105 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StopDcdnDomain invokes the dcdn.StopDcdnDomain API synchronously +// api document: https://help.aliyun.com/api/dcdn/stopdcdndomain.html +func (client *Client) StopDcdnDomain(request *StopDcdnDomainRequest) (response *StopDcdnDomainResponse, err error) { + response = CreateStopDcdnDomainResponse() + err = client.DoAction(request, response) + return +} + +// StopDcdnDomainWithChan invokes the dcdn.StopDcdnDomain API asynchronously +// api document: https://help.aliyun.com/api/dcdn/stopdcdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopDcdnDomainWithChan(request *StopDcdnDomainRequest) (<-chan *StopDcdnDomainResponse, <-chan error) { + responseChan := make(chan *StopDcdnDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopDcdnDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopDcdnDomainWithCallback invokes the dcdn.StopDcdnDomain API asynchronously +// api document: https://help.aliyun.com/api/dcdn/stopdcdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopDcdnDomainWithCallback(request *StopDcdnDomainRequest, callback func(response *StopDcdnDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopDcdnDomainResponse + var err error + defer close(result) + response, err = client.StopDcdnDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopDcdnDomainRequest is the request struct for api StopDcdnDomain +type StopDcdnDomainRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` +} + +// StopDcdnDomainResponse is the response struct for api StopDcdnDomain +type StopDcdnDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStopDcdnDomainRequest creates a request to invoke StopDcdnDomain API +func CreateStopDcdnDomainRequest() (request *StopDcdnDomainRequest) { + request = &StopDcdnDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "StopDcdnDomain", "dcdn", "openAPI") + return +} + +// CreateStopDcdnDomainResponse creates a response to parse from StopDcdnDomain response +func CreateStopDcdnDomainResponse() (response *StopDcdnDomainResponse) { + response = &StopDcdnDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_bps_data_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_bps_data_per_interval.go new file mode 100644 index 0000000..48acaa7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_bps_data_per_interval.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BpsDataPerInterval is a nested struct in dcdn response +type BpsDataPerInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_cert.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_cert.go new file mode 100644 index 0000000..9064f8a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_cert.go @@ -0,0 +1,26 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Cert is a nested struct in dcdn response +type Cert struct { + CertName string `json:"CertName" xml:"CertName"` + CertId int `json:"CertId" xml:"CertId"` + Fingerprint string `json:"Fingerprint" xml:"Fingerprint"` + Common string `json:"Common" xml:"Common"` + Issuer string `json:"Issuer" xml:"Issuer"` + LastTime int `json:"LastTime" xml:"LastTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_cert_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_cert_list.go new file mode 100644 index 0000000..45e7f82 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_cert_list.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CertList is a nested struct in dcdn response +type CertList struct { + Cert []Cert `json:"Cert" xml:"Cert"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_certificate_list_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_certificate_list_model.go new file mode 100644 index 0000000..d02303a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_certificate_list_model.go @@ -0,0 +1,22 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CertificateListModel is a nested struct in dcdn response +type CertificateListModel struct { + Count int `json:"Count" xml:"Count"` + CertList CertList `json:"CertList" xml:"CertList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_cname_datas.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_cname_datas.go new file mode 100644 index 0000000..354517b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_cname_datas.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CnameDatas is a nested struct in dcdn response +type CnameDatas struct { + Data []Data `json:"Data" xml:"Data"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_data.go new file mode 100644 index 0000000..f281155 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_data.go @@ -0,0 +1,23 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 dcdn response +type Data struct { + Domain string `json:"Domain" xml:"Domain"` + Cname string `json:"Cname" xml:"Cname"` + Status int `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_data_module.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_data_module.go new file mode 100644 index 0000000..c924de1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_data_module.go @@ -0,0 +1,54 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataModule is a nested struct in dcdn response +type DataModule struct { + StaticHttpTraffic float64 `json:"StaticHttpTraffic" xml:"StaticHttpTraffic"` + StaticHttpBps float64 `json:"StaticHttpBps" xml:"StaticHttpBps"` + DynamicHttpsAcc float64 `json:"DynamicHttpsAcc" xml:"DynamicHttpsAcc"` + DynamicHttpOriginBps float64 `json:"DynamicHttpOriginBps" xml:"DynamicHttpOriginBps"` + DynamicHttpsOriginBps float64 `json:"DynamicHttpsOriginBps" xml:"DynamicHttpsOriginBps"` + StaticHttpsOriginTraffic float64 `json:"StaticHttpsOriginTraffic" xml:"StaticHttpsOriginTraffic"` + StaticHttpAcc float64 `json:"StaticHttpAcc" xml:"StaticHttpAcc"` + DynamicHttpsBps float64 `json:"DynamicHttpsBps" xml:"DynamicHttpsBps"` + StaticHttpsBps float64 `json:"StaticHttpsBps" xml:"StaticHttpsBps"` + OriginTraffic float64 `json:"OriginTraffic" xml:"OriginTraffic"` + DynamicHttpAcc float64 `json:"DynamicHttpAcc" xml:"DynamicHttpAcc"` + StaticHttpsTraffic float64 `json:"StaticHttpsTraffic" xml:"StaticHttpsTraffic"` + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` + Acc float64 `json:"Acc" xml:"Acc"` + StaticHttpsAcc float64 `json:"StaticHttpsAcc" xml:"StaticHttpsAcc"` + DynamicHttpOriginTraffic float64 `json:"DynamicHttpOriginTraffic" xml:"DynamicHttpOriginTraffic"` + ReqHitRate float64 `json:"ReqHitRate" xml:"ReqHitRate"` + StaticHttpQps float64 `json:"StaticHttpQps" xml:"StaticHttpQps"` + DynamicHttpTraffic float64 `json:"DynamicHttpTraffic" xml:"DynamicHttpTraffic"` + OriginBps float64 `json:"OriginBps" xml:"OriginBps"` + Bps float64 `json:"Bps" xml:"Bps"` + DynamicHttpBps float64 `json:"DynamicHttpBps" xml:"DynamicHttpBps"` + StaticHttpOriginTraffic float64 `json:"StaticHttpOriginTraffic" xml:"StaticHttpOriginTraffic"` + StaticHttpOriginBps float64 `json:"StaticHttpOriginBps" xml:"StaticHttpOriginBps"` + Qps float64 `json:"Qps" xml:"Qps"` + DynamicHttpsTraffic float64 `json:"DynamicHttpsTraffic" xml:"DynamicHttpsTraffic"` + StaticHttpsQps float64 `json:"StaticHttpsQps" xml:"StaticHttpsQps"` + DynamicHttpsOriginTraffic float64 `json:"DynamicHttpsOriginTraffic" xml:"DynamicHttpsOriginTraffic"` + StaticHttpsOriginBps float64 `json:"StaticHttpsOriginBps" xml:"StaticHttpsOriginBps"` + ByteHitRate float64 `json:"ByteHitRate" xml:"ByteHitRate"` + DynamicHttpsQps float64 `json:"DynamicHttpsQps" xml:"DynamicHttpsQps"` + DynamicHttpQps float64 `json:"DynamicHttpQps" xml:"DynamicHttpQps"` + Traffic float64 `json:"Traffic" xml:"Traffic"` + HttpCodeDataPerInterval HttpCodeDataPerInterval `json:"HttpCodeDataPerInterval" xml:"HttpCodeDataPerInterval"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_data_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_data_per_interval.go new file mode 100644 index 0000000..0c47212 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_data_per_interval.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataPerInterval is a nested struct in dcdn response +type DataPerInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domain_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domain_config.go new file mode 100644 index 0000000..755579f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domain_config.go @@ -0,0 +1,24 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainConfig is a nested struct in dcdn response +type DomainConfig struct { + FunctionName string `json:"FunctionName" xml:"FunctionName"` + ConfigId string `json:"ConfigId" xml:"ConfigId"` + Status string `json:"Status" xml:"Status"` + FunctionArgs FunctionArgs `json:"FunctionArgs" xml:"FunctionArgs"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domain_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domain_configs.go new file mode 100644 index 0000000..3b4f1b9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domain_configs.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainConfigs is a nested struct in dcdn response +type DomainConfigs struct { + DomainConfig []DomainConfig `json:"DomainConfig" xml:"DomainConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domain_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domain_detail.go new file mode 100644 index 0000000..7f3585d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domain_detail.go @@ -0,0 +1,32 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainDetail is a nested struct in dcdn response +type DomainDetail struct { + GmtCreated string `json:"GmtCreated" xml:"GmtCreated"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + DomainStatus string `json:"DomainStatus" xml:"DomainStatus"` + Cname string `json:"Cname" xml:"Cname"` + DomainName string `json:"DomainName" xml:"DomainName"` + Description string `json:"Description" xml:"Description"` + SSLProtocol string `json:"SSLProtocol" xml:"SSLProtocol"` + SSLPub string `json:"SSLPub" xml:"SSLPub"` + Scope string `json:"Scope" xml:"Scope"` + CertName string `json:"CertName" xml:"CertName"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + Sources SourcesInDescribeDcdnDomainDetail `json:"Sources" xml:"Sources"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domain_log_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domain_log_detail.go new file mode 100644 index 0000000..a319de6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domain_log_detail.go @@ -0,0 +1,23 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainLogDetail is a nested struct in dcdn response +type DomainLogDetail struct { + LogCount int `json:"LogCount" xml:"LogCount"` + PageInfos PageInfos `json:"PageInfos" xml:"PageInfos"` + LogInfos LogInfos `json:"LogInfos" xml:"LogInfos"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domain_log_details.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domain_log_details.go new file mode 100644 index 0000000..c5a2e9d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domain_log_details.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainLogDetails is a nested struct in dcdn response +type DomainLogDetails struct { + DomainLogDetail []DomainLogDetail `json:"DomainLogDetail" xml:"DomainLogDetail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domains.go new file mode 100644 index 0000000..c29ea92 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_domains.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Domains is a nested struct in dcdn response +type Domains struct { + PageData []PageData `json:"PageData" xml:"PageData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_function_arg.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_function_arg.go new file mode 100644 index 0000000..ad5a3d5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_function_arg.go @@ -0,0 +1,22 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FunctionArg is a nested struct in dcdn response +type FunctionArg struct { + ArgName string `json:"ArgName" xml:"ArgName"` + ArgValue string `json:"ArgValue" xml:"ArgValue"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_function_args.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_function_args.go new file mode 100644 index 0000000..df4d9ff --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_function_args.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FunctionArgs is a nested struct in dcdn response +type FunctionArgs struct { + FunctionArg []FunctionArg `json:"FunctionArg" xml:"FunctionArg"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_hit_rate_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_hit_rate_per_interval.go new file mode 100644 index 0000000..074c445 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_hit_rate_per_interval.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HitRatePerInterval is a nested struct in dcdn response +type HitRatePerInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_http_code_data_module.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_http_code_data_module.go new file mode 100644 index 0000000..cc5021e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_http_code_data_module.go @@ -0,0 +1,23 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HttpCodeDataModule is a nested struct in dcdn response +type HttpCodeDataModule struct { + Code int `json:"Code" xml:"Code"` + Proportion float64 `json:"Proportion" xml:"Proportion"` + Count float64 `json:"Count" xml:"Count"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_http_code_data_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_http_code_data_per_interval.go new file mode 100644 index 0000000..b1a657f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_http_code_data_per_interval.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HttpCodeDataPerInterval is a nested struct in dcdn response +type HttpCodeDataPerInterval struct { + HttpCodeDataModule []HttpCodeDataModule `json:"HttpCodeDataModule" xml:"HttpCodeDataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_lock_reason.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_lock_reason.go new file mode 100644 index 0000000..5f14423 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_lock_reason.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LockReason is a nested struct in dcdn response +type LockReason struct { + LockReason string `json:"LockReason" xml:"LockReason"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_log_info_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_log_info_detail.go new file mode 100644 index 0000000..85999b4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_log_info_detail.go @@ -0,0 +1,25 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LogInfoDetail is a nested struct in dcdn response +type LogInfoDetail struct { + LogName string `json:"LogName" xml:"LogName"` + LogPath string `json:"LogPath" xml:"LogPath"` + LogSize int `json:"LogSize" xml:"LogSize"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_log_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_log_infos.go new file mode 100644 index 0000000..a438060 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_log_infos.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LogInfos is a nested struct in dcdn response +type LogInfos struct { + LogInfoDetail []LogInfoDetail `json:"LogInfoDetail" xml:"LogInfoDetail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_operation_locks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_operation_locks.go new file mode 100644 index 0000000..0a28045 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_operation_locks.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OperationLocks is a nested struct in dcdn response +type OperationLocks struct { + LockReason []LockReason `json:"LockReason" xml:"LockReason"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_origin_bps_data_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_origin_bps_data_per_interval.go new file mode 100644 index 0000000..50c2429 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_origin_bps_data_per_interval.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OriginBpsDataPerInterval is a nested struct in dcdn response +type OriginBpsDataPerInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_origin_traffic_data_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_origin_traffic_data_per_interval.go new file mode 100644 index 0000000..f75b8af --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_origin_traffic_data_per_interval.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OriginTrafficDataPerInterval is a nested struct in dcdn response +type OriginTrafficDataPerInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_page_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_page_data.go new file mode 100644 index 0000000..f94f106 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_page_data.go @@ -0,0 +1,30 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PageData is a nested struct in dcdn response +type PageData struct { + DomainName string `json:"DomainName" xml:"DomainName"` + Cname string `json:"Cname" xml:"Cname"` + DomainStatus string `json:"DomainStatus" xml:"DomainStatus"` + GmtCreated string `json:"GmtCreated" xml:"GmtCreated"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + Description string `json:"Description" xml:"Description"` + SSLProtocol string `json:"SSLProtocol" xml:"SSLProtocol"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + Sandbox string `json:"Sandbox" xml:"Sandbox"` + Sources SourcesInDescribeDcdnUserDomains `json:"Sources" xml:"Sources"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_page_info_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_page_info_detail.go new file mode 100644 index 0000000..64f6948 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_page_info_detail.go @@ -0,0 +1,23 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PageInfoDetail is a nested struct in dcdn response +type PageInfoDetail struct { + PageIndex int `json:"PageIndex" xml:"PageIndex"` + PageSize int `json:"PageSize" xml:"PageSize"` + Total int `json:"Total" xml:"Total"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_page_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_page_infos.go new file mode 100644 index 0000000..2a07567 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_page_infos.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PageInfos is a nested struct in dcdn response +type PageInfos struct { + PageInfoDetail []PageInfoDetail `json:"PageInfoDetail" xml:"PageInfoDetail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_qps_data_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_qps_data_per_interval.go new file mode 100644 index 0000000..e27c5e3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_qps_data_per_interval.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// QpsDataPerInterval is a nested struct in dcdn response +type QpsDataPerInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_resource_package_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_resource_package_info.go new file mode 100644 index 0000000..d2399ab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_resource_package_info.go @@ -0,0 +1,26 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResourcePackageInfo is a nested struct in dcdn response +type ResourcePackageInfo struct { + CurrCapacity string `json:"CurrCapacity" xml:"CurrCapacity"` + InitCapacity string `json:"InitCapacity" xml:"InitCapacity"` + CommodityCode string `json:"CommodityCode" xml:"CommodityCode"` + DisplayName string `json:"DisplayName" xml:"DisplayName"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_resource_package_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_resource_package_infos.go new file mode 100644 index 0000000..59d786d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_resource_package_infos.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResourcePackageInfos is a nested struct in dcdn response +type ResourcePackageInfos struct { + ResourcePackageInfo []ResourcePackageInfo `json:"ResourcePackageInfo" xml:"ResourcePackageInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_source.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_source.go new file mode 100644 index 0000000..5fc1ba3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_source.go @@ -0,0 +1,25 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Source is a nested struct in dcdn response +type Source struct { + Port int `json:"Port" xml:"Port"` + Content string `json:"Content" xml:"Content"` + Enabled string `json:"Enabled" xml:"Enabled"` + Priority string `json:"Priority" xml:"Priority"` + Type string `json:"Type" xml:"Type"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_sources_in_describe_dcdn_domain_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_sources_in_describe_dcdn_domain_detail.go new file mode 100644 index 0000000..259ae53 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_sources_in_describe_dcdn_domain_detail.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SourcesInDescribeDcdnDomainDetail is a nested struct in dcdn response +type SourcesInDescribeDcdnDomainDetail struct { + Source []Source `json:"Source" xml:"Source"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_sources_in_describe_dcdn_user_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_sources_in_describe_dcdn_user_domains.go new file mode 100644 index 0000000..c1d265e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_sources_in_describe_dcdn_user_domains.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SourcesInDescribeDcdnUserDomains is a nested struct in dcdn response +type SourcesInDescribeDcdnUserDomains struct { + Source []Source `json:"Source" xml:"Source"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_task.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_task.go new file mode 100644 index 0000000..fb9f72c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_task.go @@ -0,0 +1,27 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Task is a nested struct in dcdn response +type Task struct { + TaskId string `json:"TaskId" xml:"TaskId"` + ObjectPath string `json:"ObjectPath" xml:"ObjectPath"` + Process string `json:"Process" xml:"Process"` + Status string `json:"Status" xml:"Status"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Description string `json:"Description" xml:"Description"` + ObjectType string `json:"ObjectType" xml:"ObjectType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_tasks.go new file mode 100644 index 0000000..c4e6570 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_tasks.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Tasks is a nested struct in dcdn response +type Tasks struct { + Task []Task `json:"Task" xml:"Task"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_traffic_data_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_traffic_data_per_interval.go new file mode 100644 index 0000000..4223502 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/struct_traffic_data_per_interval.go @@ -0,0 +1,21 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TrafficDataPerInterval is a nested struct in dcdn response +type TrafficDataPerInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/update_dcdn_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/update_dcdn_domain.go new file mode 100644 index 0000000..df1760e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dcdn/update_dcdn_domain.go @@ -0,0 +1,108 @@ +package dcdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateDcdnDomain invokes the dcdn.UpdateDcdnDomain API synchronously +// api document: https://help.aliyun.com/api/dcdn/updatedcdndomain.html +func (client *Client) UpdateDcdnDomain(request *UpdateDcdnDomainRequest) (response *UpdateDcdnDomainResponse, err error) { + response = CreateUpdateDcdnDomainResponse() + err = client.DoAction(request, response) + return +} + +// UpdateDcdnDomainWithChan invokes the dcdn.UpdateDcdnDomain API asynchronously +// api document: https://help.aliyun.com/api/dcdn/updatedcdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateDcdnDomainWithChan(request *UpdateDcdnDomainRequest) (<-chan *UpdateDcdnDomainResponse, <-chan error) { + responseChan := make(chan *UpdateDcdnDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateDcdnDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateDcdnDomainWithCallback invokes the dcdn.UpdateDcdnDomain API asynchronously +// api document: https://help.aliyun.com/api/dcdn/updatedcdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateDcdnDomainWithCallback(request *UpdateDcdnDomainRequest, callback func(response *UpdateDcdnDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateDcdnDomainResponse + var err error + defer close(result) + response, err = client.UpdateDcdnDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateDcdnDomainRequest is the request struct for api UpdateDcdnDomain +type UpdateDcdnDomainRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + Sources string `position:"Query" name:"Sources"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + TopLevelDomain string `position:"Query" name:"TopLevelDomain"` +} + +// UpdateDcdnDomainResponse is the response struct for api UpdateDcdnDomain +type UpdateDcdnDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateDcdnDomainRequest creates a request to invoke UpdateDcdnDomain API +func CreateUpdateDcdnDomainRequest() (request *UpdateDcdnDomainRequest) { + request = &UpdateDcdnDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "UpdateDcdnDomain", "dcdn", "openAPI") + return +} + +// CreateUpdateDcdnDomainResponse creates a response to parse from UpdateDcdnDomain response +func CreateUpdateDcdnDomainResponse() (response *UpdateDcdnDomainResponse) { + response = &UpdateDcdnDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/client.go new file mode 100644 index 0000000..3b0ce1d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/client.go @@ -0,0 +1,81 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/create_blockhole.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/create_blockhole.go new file mode 100644 index 0000000..361f946 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/create_blockhole.go @@ -0,0 +1,107 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateBlockhole invokes the ddospro.CreateBlockhole API synchronously +// api document: https://help.aliyun.com/api/ddospro/createblockhole.html +func (client *Client) CreateBlockhole(request *CreateBlockholeRequest) (response *CreateBlockholeResponse, err error) { + response = CreateCreateBlockholeResponse() + err = client.DoAction(request, response) + return +} + +// CreateBlockholeWithChan invokes the ddospro.CreateBlockhole API asynchronously +// api document: https://help.aliyun.com/api/ddospro/createblockhole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateBlockholeWithChan(request *CreateBlockholeRequest) (<-chan *CreateBlockholeResponse, <-chan error) { + responseChan := make(chan *CreateBlockholeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateBlockhole(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateBlockholeWithCallback invokes the ddospro.CreateBlockhole API asynchronously +// api document: https://help.aliyun.com/api/ddospro/createblockhole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateBlockholeWithCallback(request *CreateBlockholeRequest, callback func(response *CreateBlockholeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateBlockholeResponse + var err error + defer close(result) + response, err = client.CreateBlockhole(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateBlockholeRequest is the request struct for api CreateBlockhole +type CreateBlockholeRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Vip string `position:"Query" name:"Vip"` + BlockZone string `position:"Query" name:"BlockZone"` + BlockTime requests.Integer `position:"Query" name:"BlockTime"` +} + +// CreateBlockholeResponse is the response struct for api CreateBlockhole +type CreateBlockholeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateBlockholeRequest creates a request to invoke CreateBlockhole API +func CreateCreateBlockholeRequest() (request *CreateBlockholeRequest) { + request = &CreateBlockholeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "CreateBlockhole", "", "") + return +} + +// CreateCreateBlockholeResponse creates a response to parse from CreateBlockhole response +func CreateCreateBlockholeResponse() (response *CreateBlockholeResponse) { + response = &CreateBlockholeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/create_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/create_domain.go new file mode 100644 index 0000000..3f682ea --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/create_domain.go @@ -0,0 +1,109 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateDomain invokes the ddospro.CreateDomain API synchronously +// api document: https://help.aliyun.com/api/ddospro/createdomain.html +func (client *Client) CreateDomain(request *CreateDomainRequest) (response *CreateDomainResponse, err error) { + response = CreateCreateDomainResponse() + err = client.DoAction(request, response) + return +} + +// CreateDomainWithChan invokes the ddospro.CreateDomain API asynchronously +// api document: https://help.aliyun.com/api/ddospro/createdomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDomainWithChan(request *CreateDomainRequest) (<-chan *CreateDomainResponse, <-chan error) { + responseChan := make(chan *CreateDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateDomainWithCallback invokes the ddospro.CreateDomain API asynchronously +// api document: https://help.aliyun.com/api/ddospro/createdomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDomainWithCallback(request *CreateDomainRequest, callback func(response *CreateDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateDomainResponse + var err error + defer close(result) + response, err = client.CreateDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateDomainRequest is the request struct for api CreateDomain +type CreateDomainRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Domain string `position:"Query" name:"Domain"` + Ip string `position:"Query" name:"Ip"` + Type string `position:"Query" name:"Type"` + CcEnable requests.Boolean `position:"Query" name:"CcEnable"` + RealServer *[]string `position:"Query" name:"RealServer" type:"Repeated"` + ProxyType *[]string `position:"Query" name:"ProxyType" type:"Repeated"` +} + +// CreateDomainResponse is the response struct for api CreateDomain +type CreateDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateDomainRequest creates a request to invoke CreateDomain API +func CreateCreateDomainRequest() (request *CreateDomainRequest) { + request = &CreateDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "CreateDomain", "", "") + return +} + +// CreateCreateDomainResponse creates a response to parse from CreateDomain response +func CreateCreateDomainResponse() (response *CreateDomainResponse) { + response = &CreateDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/create_web_log_download_task.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/create_web_log_download_task.go new file mode 100644 index 0000000..322d6ac --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/create_web_log_download_task.go @@ -0,0 +1,109 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateWebLogDownloadTask invokes the ddospro.CreateWebLogDownloadTask API synchronously +// api document: https://help.aliyun.com/api/ddospro/createweblogdownloadtask.html +func (client *Client) CreateWebLogDownloadTask(request *CreateWebLogDownloadTaskRequest) (response *CreateWebLogDownloadTaskResponse, err error) { + response = CreateCreateWebLogDownloadTaskResponse() + err = client.DoAction(request, response) + return +} + +// CreateWebLogDownloadTaskWithChan invokes the ddospro.CreateWebLogDownloadTask API asynchronously +// api document: https://help.aliyun.com/api/ddospro/createweblogdownloadtask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateWebLogDownloadTaskWithChan(request *CreateWebLogDownloadTaskRequest) (<-chan *CreateWebLogDownloadTaskResponse, <-chan error) { + responseChan := make(chan *CreateWebLogDownloadTaskResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateWebLogDownloadTask(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateWebLogDownloadTaskWithCallback invokes the ddospro.CreateWebLogDownloadTask API asynchronously +// api document: https://help.aliyun.com/api/ddospro/createweblogdownloadtask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateWebLogDownloadTaskWithCallback(request *CreateWebLogDownloadTaskRequest, callback func(response *CreateWebLogDownloadTaskResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateWebLogDownloadTaskResponse + var err error + defer close(result) + response, err = client.CreateWebLogDownloadTask(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateWebLogDownloadTaskRequest is the request struct for api CreateWebLogDownloadTask +type CreateWebLogDownloadTaskRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Domain string `position:"Query" name:"Domain"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + StartTime requests.Integer `position:"Query" name:"StartTime"` + EndTime requests.Integer `position:"Query" name:"EndTime"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` +} + +// CreateWebLogDownloadTaskResponse is the response struct for api CreateWebLogDownloadTask +type CreateWebLogDownloadTaskResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateWebLogDownloadTaskRequest creates a request to invoke CreateWebLogDownloadTask API +func CreateCreateWebLogDownloadTaskRequest() (request *CreateWebLogDownloadTaskRequest) { + request = &CreateWebLogDownloadTaskRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "CreateWebLogDownloadTask", "", "") + return +} + +// CreateCreateWebLogDownloadTaskResponse creates a response to parse from CreateWebLogDownloadTask response +func CreateCreateWebLogDownloadTaskResponse() (response *CreateWebLogDownloadTaskResponse) { + response = &CreateWebLogDownloadTaskResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/delete_black_hole.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/delete_black_hole.go new file mode 100644 index 0000000..2d7d4b1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/delete_black_hole.go @@ -0,0 +1,106 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteBlackHole invokes the ddospro.DeleteBlackHole API synchronously +// api document: https://help.aliyun.com/api/ddospro/deleteblackhole.html +func (client *Client) DeleteBlackHole(request *DeleteBlackHoleRequest) (response *DeleteBlackHoleResponse, err error) { + response = CreateDeleteBlackHoleResponse() + err = client.DoAction(request, response) + return +} + +// DeleteBlackHoleWithChan invokes the ddospro.DeleteBlackHole API asynchronously +// api document: https://help.aliyun.com/api/ddospro/deleteblackhole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteBlackHoleWithChan(request *DeleteBlackHoleRequest) (<-chan *DeleteBlackHoleResponse, <-chan error) { + responseChan := make(chan *DeleteBlackHoleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteBlackHole(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteBlackHoleWithCallback invokes the ddospro.DeleteBlackHole API asynchronously +// api document: https://help.aliyun.com/api/ddospro/deleteblackhole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteBlackHoleWithCallback(request *DeleteBlackHoleRequest, callback func(response *DeleteBlackHoleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteBlackHoleResponse + var err error + defer close(result) + response, err = client.DeleteBlackHole(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteBlackHoleRequest is the request struct for api DeleteBlackHole +type DeleteBlackHoleRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Vip string `position:"Query" name:"Vip"` +} + +// DeleteBlackHoleResponse is the response struct for api DeleteBlackHole +type DeleteBlackHoleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data string `json:"data" xml:"data"` +} + +// CreateDeleteBlackHoleRequest creates a request to invoke DeleteBlackHole API +func CreateDeleteBlackHoleRequest() (request *DeleteBlackHoleRequest) { + request = &DeleteBlackHoleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "DeleteBlackHole", "", "") + return +} + +// CreateDeleteBlackHoleResponse creates a response to parse from DeleteBlackHole response +func CreateDeleteBlackHoleResponse() (response *DeleteBlackHoleResponse) { + response = &DeleteBlackHoleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/delete_blockhole.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/delete_blockhole.go new file mode 100644 index 0000000..5ce5962 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/delete_blockhole.go @@ -0,0 +1,105 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteBlockhole invokes the ddospro.DeleteBlockhole API synchronously +// api document: https://help.aliyun.com/api/ddospro/deleteblockhole.html +func (client *Client) DeleteBlockhole(request *DeleteBlockholeRequest) (response *DeleteBlockholeResponse, err error) { + response = CreateDeleteBlockholeResponse() + err = client.DoAction(request, response) + return +} + +// DeleteBlockholeWithChan invokes the ddospro.DeleteBlockhole API asynchronously +// api document: https://help.aliyun.com/api/ddospro/deleteblockhole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteBlockholeWithChan(request *DeleteBlockholeRequest) (<-chan *DeleteBlockholeResponse, <-chan error) { + responseChan := make(chan *DeleteBlockholeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteBlockhole(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteBlockholeWithCallback invokes the ddospro.DeleteBlockhole API asynchronously +// api document: https://help.aliyun.com/api/ddospro/deleteblockhole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteBlockholeWithCallback(request *DeleteBlockholeRequest, callback func(response *DeleteBlockholeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteBlockholeResponse + var err error + defer close(result) + response, err = client.DeleteBlockhole(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteBlockholeRequest is the request struct for api DeleteBlockhole +type DeleteBlockholeRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Vip string `position:"Query" name:"Vip"` +} + +// DeleteBlockholeResponse is the response struct for api DeleteBlockhole +type DeleteBlockholeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteBlockholeRequest creates a request to invoke DeleteBlockhole API +func CreateDeleteBlockholeRequest() (request *DeleteBlockholeRequest) { + request = &DeleteBlockholeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "DeleteBlockhole", "", "") + return +} + +// CreateDeleteBlockholeResponse creates a response to parse from DeleteBlockhole response +func CreateDeleteBlockholeResponse() (response *DeleteBlockholeResponse) { + response = &DeleteBlockholeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/delete_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/delete_domain.go new file mode 100644 index 0000000..46bbb4f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/delete_domain.go @@ -0,0 +1,104 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 ddospro.DeleteDomain API synchronously +// api document: https://help.aliyun.com/api/ddospro/deletedomain.html +func (client *Client) DeleteDomain(request *DeleteDomainRequest) (response *DeleteDomainResponse, err error) { + response = CreateDeleteDomainResponse() + err = client.DoAction(request, response) + return +} + +// DeleteDomainWithChan invokes the ddospro.DeleteDomain API asynchronously +// api document: https://help.aliyun.com/api/ddospro/deletedomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 ddospro.DeleteDomain API asynchronously +// api document: https://help.aliyun.com/api/ddospro/deletedomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Domain string `position:"Query" name:"Domain"` +} + +// DeleteDomainResponse is the response struct for api DeleteDomain +type DeleteDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteDomainRequest creates a request to invoke DeleteDomain API +func CreateDeleteDomainRequest() (request *DeleteDomainRequest) { + request = &DeleteDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "DeleteDomain", "", "") + 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/ddospro/delete_domain_transmit_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/delete_domain_transmit_rule.go new file mode 100644 index 0000000..2fb96d3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/delete_domain_transmit_rule.go @@ -0,0 +1,105 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteDomainTransmitRule invokes the ddospro.DeleteDomainTransmitRule API synchronously +// api document: https://help.aliyun.com/api/ddospro/deletedomaintransmitrule.html +func (client *Client) DeleteDomainTransmitRule(request *DeleteDomainTransmitRuleRequest) (response *DeleteDomainTransmitRuleResponse, err error) { + response = CreateDeleteDomainTransmitRuleResponse() + err = client.DoAction(request, response) + return +} + +// DeleteDomainTransmitRuleWithChan invokes the ddospro.DeleteDomainTransmitRule API asynchronously +// api document: https://help.aliyun.com/api/ddospro/deletedomaintransmitrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteDomainTransmitRuleWithChan(request *DeleteDomainTransmitRuleRequest) (<-chan *DeleteDomainTransmitRuleResponse, <-chan error) { + responseChan := make(chan *DeleteDomainTransmitRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteDomainTransmitRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteDomainTransmitRuleWithCallback invokes the ddospro.DeleteDomainTransmitRule API asynchronously +// api document: https://help.aliyun.com/api/ddospro/deletedomaintransmitrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteDomainTransmitRuleWithCallback(request *DeleteDomainTransmitRuleRequest, callback func(response *DeleteDomainTransmitRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteDomainTransmitRuleResponse + var err error + defer close(result) + response, err = client.DeleteDomainTransmitRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteDomainTransmitRuleRequest is the request struct for api DeleteDomainTransmitRule +type DeleteDomainTransmitRuleRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Domain string `position:"Query" name:"Domain"` + Ip string `position:"Query" name:"Ip"` +} + +// DeleteDomainTransmitRuleResponse is the response struct for api DeleteDomainTransmitRule +type DeleteDomainTransmitRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteDomainTransmitRuleRequest creates a request to invoke DeleteDomainTransmitRule API +func CreateDeleteDomainTransmitRuleRequest() (request *DeleteDomainTransmitRuleRequest) { + request = &DeleteDomainTransmitRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "DeleteDomainTransmitRule", "", "") + return +} + +// CreateDeleteDomainTransmitRuleResponse creates a response to parse from DeleteDomainTransmitRule response +func CreateDeleteDomainTransmitRuleResponse() (response *DeleteDomainTransmitRuleResponse) { + response = &DeleteDomainTransmitRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_back_source_cidr.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_back_source_cidr.go new file mode 100644 index 0000000..c3a6a59 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_back_source_cidr.go @@ -0,0 +1,106 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeBackSourceCidr invokes the ddospro.DescribeBackSourceCidr API synchronously +// api document: https://help.aliyun.com/api/ddospro/describebacksourcecidr.html +func (client *Client) DescribeBackSourceCidr(request *DescribeBackSourceCidrRequest) (response *DescribeBackSourceCidrResponse, err error) { + response = CreateDescribeBackSourceCidrResponse() + err = client.DoAction(request, response) + return +} + +// DescribeBackSourceCidrWithChan invokes the ddospro.DescribeBackSourceCidr API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describebacksourcecidr.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBackSourceCidrWithChan(request *DescribeBackSourceCidrRequest) (<-chan *DescribeBackSourceCidrResponse, <-chan error) { + responseChan := make(chan *DescribeBackSourceCidrResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeBackSourceCidr(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeBackSourceCidrWithCallback invokes the ddospro.DescribeBackSourceCidr API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describebacksourcecidr.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBackSourceCidrWithCallback(request *DescribeBackSourceCidrRequest, callback func(response *DescribeBackSourceCidrResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeBackSourceCidrResponse + var err error + defer close(result) + response, err = client.DescribeBackSourceCidr(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeBackSourceCidrRequest is the request struct for api DescribeBackSourceCidr +type DescribeBackSourceCidrRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Line string `position:"Query" name:"Line"` + Region string `position:"Query" name:"Region"` +} + +// DescribeBackSourceCidrResponse is the response struct for api DescribeBackSourceCidr +type DescribeBackSourceCidrResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CidrList CidrList `json:"CidrList" xml:"CidrList"` +} + +// CreateDescribeBackSourceCidrRequest creates a request to invoke DescribeBackSourceCidr API +func CreateDescribeBackSourceCidrRequest() (request *DescribeBackSourceCidrRequest) { + request = &DescribeBackSourceCidrRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "DescribeBackSourceCidr", "", "") + return +} + +// CreateDescribeBackSourceCidrResponse creates a response to parse from DescribeBackSourceCidr response +func CreateDescribeBackSourceCidrResponse() (response *DescribeBackSourceCidrResponse) { + response = &DescribeBackSourceCidrResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_cc_mode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_cc_mode.go new file mode 100644 index 0000000..a10b453 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_cc_mode.go @@ -0,0 +1,106 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCcMode invokes the ddospro.DescribeCcMode API synchronously +// api document: https://help.aliyun.com/api/ddospro/describeccmode.html +func (client *Client) DescribeCcMode(request *DescribeCcModeRequest) (response *DescribeCcModeResponse, err error) { + response = CreateDescribeCcModeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCcModeWithChan invokes the ddospro.DescribeCcMode API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeccmode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCcModeWithChan(request *DescribeCcModeRequest) (<-chan *DescribeCcModeResponse, <-chan error) { + responseChan := make(chan *DescribeCcModeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCcMode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCcModeWithCallback invokes the ddospro.DescribeCcMode API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeccmode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCcModeWithCallback(request *DescribeCcModeRequest, callback func(response *DescribeCcModeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCcModeResponse + var err error + defer close(result) + response, err = client.DescribeCcMode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCcModeRequest is the request struct for api DescribeCcMode +type DescribeCcModeRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Vips *[]string `position:"Query" name:"Vips" type:"Repeated"` +} + +// DescribeCcModeResponse is the response struct for api DescribeCcMode +type DescribeCcModeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data []Data `json:"Data" xml:"Data"` +} + +// CreateDescribeCcModeRequest creates a request to invoke DescribeCcMode API +func CreateDescribeCcModeRequest() (request *DescribeCcModeRequest) { + request = &DescribeCcModeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "DescribeCcMode", "", "") + return +} + +// CreateDescribeCcModeResponse creates a response to parse from DescribeCcMode response +func CreateDescribeCcModeResponse() (response *DescribeCcModeResponse) { + response = &DescribeCcModeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_cname_auto_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_cname_auto_status.go new file mode 100644 index 0000000..e2e58cf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_cname_auto_status.go @@ -0,0 +1,105 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCnameAutoStatus invokes the ddospro.DescribeCnameAutoStatus API synchronously +// api document: https://help.aliyun.com/api/ddospro/describecnameautostatus.html +func (client *Client) DescribeCnameAutoStatus(request *DescribeCnameAutoStatusRequest) (response *DescribeCnameAutoStatusResponse, err error) { + response = CreateDescribeCnameAutoStatusResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCnameAutoStatusWithChan invokes the ddospro.DescribeCnameAutoStatus API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describecnameautostatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCnameAutoStatusWithChan(request *DescribeCnameAutoStatusRequest) (<-chan *DescribeCnameAutoStatusResponse, <-chan error) { + responseChan := make(chan *DescribeCnameAutoStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCnameAutoStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCnameAutoStatusWithCallback invokes the ddospro.DescribeCnameAutoStatus API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describecnameautostatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCnameAutoStatusWithCallback(request *DescribeCnameAutoStatusRequest, callback func(response *DescribeCnameAutoStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCnameAutoStatusResponse + var err error + defer close(result) + response, err = client.DescribeCnameAutoStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCnameAutoStatusRequest is the request struct for api DescribeCnameAutoStatus +type DescribeCnameAutoStatusRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Domain string `position:"Query" name:"Domain"` +} + +// DescribeCnameAutoStatusResponse is the response struct for api DescribeCnameAutoStatus +type DescribeCnameAutoStatusResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Status bool `json:"Status" xml:"Status"` +} + +// CreateDescribeCnameAutoStatusRequest creates a request to invoke DescribeCnameAutoStatus API +func CreateDescribeCnameAutoStatusRequest() (request *DescribeCnameAutoStatusRequest) { + request = &DescribeCnameAutoStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "DescribeCnameAutoStatus", "", "") + return +} + +// CreateDescribeCnameAutoStatusResponse creates a response to parse from DescribeCnameAutoStatus response +func CreateDescribeCnameAutoStatusResponse() (response *DescribeCnameAutoStatusResponse) { + response = &DescribeCnameAutoStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_ddos_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_ddos_status.go new file mode 100644 index 0000000..5bf9327 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_ddos_status.go @@ -0,0 +1,106 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDdosStatus invokes the ddospro.DescribeDdosStatus API synchronously +// api document: https://help.aliyun.com/api/ddospro/describeddosstatus.html +func (client *Client) DescribeDdosStatus(request *DescribeDdosStatusRequest) (response *DescribeDdosStatusResponse, err error) { + response = CreateDescribeDdosStatusResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDdosStatusWithChan invokes the ddospro.DescribeDdosStatus API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeddosstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDdosStatusWithChan(request *DescribeDdosStatusRequest) (<-chan *DescribeDdosStatusResponse, <-chan error) { + responseChan := make(chan *DescribeDdosStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDdosStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDdosStatusWithCallback invokes the ddospro.DescribeDdosStatus API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeddosstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDdosStatusWithCallback(request *DescribeDdosStatusRequest, callback func(response *DescribeDdosStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDdosStatusResponse + var err error + defer close(result) + response, err = client.DescribeDdosStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDdosStatusRequest is the request struct for api DescribeDdosStatus +type DescribeDdosStatusRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Vips *[]string `position:"Query" name:"Vips" type:"Repeated"` +} + +// DescribeDdosStatusResponse is the response struct for api DescribeDdosStatus +type DescribeDdosStatusResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data []Data `json:"Data" xml:"Data"` +} + +// CreateDescribeDdosStatusRequest creates a request to invoke DescribeDdosStatus API +func CreateDescribeDdosStatusRequest() (request *DescribeDdosStatusRequest) { + request = &DescribeDdosStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "DescribeDdosStatus", "", "") + return +} + +// CreateDescribeDdosStatusResponse creates a response to parse from DescribeDdosStatus response +func CreateDescribeDdosStatusResponse() (response *DescribeDdosStatusResponse) { + response = &DescribeDdosStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_domain_black_white_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_domain_black_white_list.go new file mode 100644 index 0000000..c43984d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_domain_black_white_list.go @@ -0,0 +1,105 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainBlackWhiteList invokes the ddospro.DescribeDomainBlackWhiteList API synchronously +// api document: https://help.aliyun.com/api/ddospro/describedomainblackwhitelist.html +func (client *Client) DescribeDomainBlackWhiteList(request *DescribeDomainBlackWhiteListRequest) (response *DescribeDomainBlackWhiteListResponse, err error) { + response = CreateDescribeDomainBlackWhiteListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainBlackWhiteListWithChan invokes the ddospro.DescribeDomainBlackWhiteList API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describedomainblackwhitelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainBlackWhiteListWithChan(request *DescribeDomainBlackWhiteListRequest) (<-chan *DescribeDomainBlackWhiteListResponse, <-chan error) { + responseChan := make(chan *DescribeDomainBlackWhiteListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainBlackWhiteList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainBlackWhiteListWithCallback invokes the ddospro.DescribeDomainBlackWhiteList API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describedomainblackwhitelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainBlackWhiteListWithCallback(request *DescribeDomainBlackWhiteListRequest, callback func(response *DescribeDomainBlackWhiteListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainBlackWhiteListResponse + var err error + defer close(result) + response, err = client.DescribeDomainBlackWhiteList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainBlackWhiteListRequest is the request struct for api DescribeDomainBlackWhiteList +type DescribeDomainBlackWhiteListRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Domain string `position:"Query" name:"Domain"` +} + +// DescribeDomainBlackWhiteListResponse is the response struct for api DescribeDomainBlackWhiteList +type DescribeDomainBlackWhiteListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateDescribeDomainBlackWhiteListRequest creates a request to invoke DescribeDomainBlackWhiteList API +func CreateDescribeDomainBlackWhiteListRequest() (request *DescribeDomainBlackWhiteListRequest) { + request = &DescribeDomainBlackWhiteListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "DescribeDomainBlackWhiteList", "", "") + return +} + +// CreateDescribeDomainBlackWhiteListResponse creates a response to parse from DescribeDomainBlackWhiteList response +func CreateDescribeDomainBlackWhiteListResponse() (response *DescribeDomainBlackWhiteListResponse) { + response = &DescribeDomainBlackWhiteListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_domain_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_domain_config.go new file mode 100644 index 0000000..30cc51f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_domain_config.go @@ -0,0 +1,105 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainConfig invokes the ddospro.DescribeDomainConfig API synchronously +// api document: https://help.aliyun.com/api/ddospro/describedomainconfig.html +func (client *Client) DescribeDomainConfig(request *DescribeDomainConfigRequest) (response *DescribeDomainConfigResponse, err error) { + response = CreateDescribeDomainConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainConfigWithChan invokes the ddospro.DescribeDomainConfig API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describedomainconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainConfigWithChan(request *DescribeDomainConfigRequest) (<-chan *DescribeDomainConfigResponse, <-chan error) { + responseChan := make(chan *DescribeDomainConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainConfigWithCallback invokes the ddospro.DescribeDomainConfig API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describedomainconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainConfigWithCallback(request *DescribeDomainConfigRequest, callback func(response *DescribeDomainConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainConfigResponse + var err error + defer close(result) + response, err = client.DescribeDomainConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainConfigRequest is the request struct for api DescribeDomainConfig +type DescribeDomainConfigRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Domain string `position:"Query" name:"Domain"` +} + +// DescribeDomainConfigResponse is the response struct for api DescribeDomainConfig +type DescribeDomainConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Config Config `json:"Config" xml:"Config"` +} + +// CreateDescribeDomainConfigRequest creates a request to invoke DescribeDomainConfig API +func CreateDescribeDomainConfigRequest() (request *DescribeDomainConfigRequest) { + request = &DescribeDomainConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "DescribeDomainConfig", "", "") + return +} + +// CreateDescribeDomainConfigResponse creates a response to parse from DescribeDomainConfig response +func CreateDescribeDomainConfigResponse() (response *DescribeDomainConfigResponse) { + response = &DescribeDomainConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_domain_qps.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_domain_qps.go new file mode 100644 index 0000000..73b4f45 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_domain_qps.go @@ -0,0 +1,110 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainQps invokes the ddospro.DescribeDomainQps API synchronously +// api document: https://help.aliyun.com/api/ddospro/describedomainqps.html +func (client *Client) DescribeDomainQps(request *DescribeDomainQpsRequest) (response *DescribeDomainQpsResponse, err error) { + response = CreateDescribeDomainQpsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainQpsWithChan invokes the ddospro.DescribeDomainQps API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describedomainqps.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainQpsWithChan(request *DescribeDomainQpsRequest) (<-chan *DescribeDomainQpsResponse, <-chan error) { + responseChan := make(chan *DescribeDomainQpsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainQps(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainQpsWithCallback invokes the ddospro.DescribeDomainQps API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describedomainqps.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDomainQpsWithCallback(request *DescribeDomainQpsRequest, callback func(response *DescribeDomainQpsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainQpsResponse + var err error + defer close(result) + response, err = client.DescribeDomainQps(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainQpsRequest is the request struct for api DescribeDomainQps +type DescribeDomainQpsRequest struct { + *requests.RpcRequest + Domain string `position:"Query" name:"Domain"` + StartDateMillis requests.Integer `position:"Query" name:"StartDateMillis"` + EndDateMillis requests.Integer `position:"Query" name:"EndDateMillis"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// DescribeDomainQpsResponse is the response struct for api DescribeDomainQps +type DescribeDomainQpsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateDescribeDomainQpsRequest creates a request to invoke DescribeDomainQps API +func CreateDescribeDomainQpsRequest() (request *DescribeDomainQpsRequest) { + request = &DescribeDomainQpsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "DescribeDomainQps", "", "") + return +} + +// CreateDescribeDomainQpsResponse creates a response to parse from DescribeDomainQps response +func CreateDescribeDomainQpsResponse() (response *DescribeDomainQpsResponse) { + response = &DescribeDomainQpsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_flow_blockhole_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_flow_blockhole_status.go new file mode 100644 index 0000000..a43aa92 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_flow_blockhole_status.go @@ -0,0 +1,106 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeFlowBlockholeStatus invokes the ddospro.DescribeFlowBlockholeStatus API synchronously +// api document: https://help.aliyun.com/api/ddospro/describeflowblockholestatus.html +func (client *Client) DescribeFlowBlockholeStatus(request *DescribeFlowBlockholeStatusRequest) (response *DescribeFlowBlockholeStatusResponse, err error) { + response = CreateDescribeFlowBlockholeStatusResponse() + err = client.DoAction(request, response) + return +} + +// DescribeFlowBlockholeStatusWithChan invokes the ddospro.DescribeFlowBlockholeStatus API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeflowblockholestatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeFlowBlockholeStatusWithChan(request *DescribeFlowBlockholeStatusRequest) (<-chan *DescribeFlowBlockholeStatusResponse, <-chan error) { + responseChan := make(chan *DescribeFlowBlockholeStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeFlowBlockholeStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeFlowBlockholeStatusWithCallback invokes the ddospro.DescribeFlowBlockholeStatus API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeflowblockholestatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeFlowBlockholeStatusWithCallback(request *DescribeFlowBlockholeStatusRequest, callback func(response *DescribeFlowBlockholeStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeFlowBlockholeStatusResponse + var err error + defer close(result) + response, err = client.DescribeFlowBlockholeStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeFlowBlockholeStatusRequest is the request struct for api DescribeFlowBlockholeStatus +type DescribeFlowBlockholeStatusRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Vips *[]string `position:"Query" name:"Vips" type:"Repeated"` +} + +// DescribeFlowBlockholeStatusResponse is the response struct for api DescribeFlowBlockholeStatus +type DescribeFlowBlockholeStatusResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data []Data `json:"Data" xml:"Data"` +} + +// CreateDescribeFlowBlockholeStatusRequest creates a request to invoke DescribeFlowBlockholeStatus API +func CreateDescribeFlowBlockholeStatusRequest() (request *DescribeFlowBlockholeStatusRequest) { + request = &DescribeFlowBlockholeStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "DescribeFlowBlockholeStatus", "", "") + return +} + +// CreateDescribeFlowBlockholeStatusResponse creates a response to parse from DescribeFlowBlockholeStatus response +func CreateDescribeFlowBlockholeStatusResponse() (response *DescribeFlowBlockholeStatusResponse) { + response = &DescribeFlowBlockholeStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_instance_page.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_instance_page.go new file mode 100644 index 0000000..3fefbc0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_instance_page.go @@ -0,0 +1,110 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstancePage invokes the ddospro.DescribeInstancePage API synchronously +// api document: https://help.aliyun.com/api/ddospro/describeinstancepage.html +func (client *Client) DescribeInstancePage(request *DescribeInstancePageRequest) (response *DescribeInstancePageResponse, err error) { + response = CreateDescribeInstancePageResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstancePageWithChan invokes the ddospro.DescribeInstancePage API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeinstancepage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstancePageWithChan(request *DescribeInstancePageRequest) (<-chan *DescribeInstancePageResponse, <-chan error) { + responseChan := make(chan *DescribeInstancePageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstancePage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstancePageWithCallback invokes the ddospro.DescribeInstancePage API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeinstancepage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstancePageWithCallback(request *DescribeInstancePageRequest, callback func(response *DescribeInstancePageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstancePageResponse + var err error + defer close(result) + response, err = client.DescribeInstancePage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstancePageRequest is the request struct for api DescribeInstancePage +type DescribeInstancePageRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + InstanceIdList *[]string `position:"Query" name:"InstanceIdList" type:"Repeated"` + IpList *[]string `position:"Query" name:"IpList" type:"Repeated"` +} + +// DescribeInstancePageResponse is the response struct for api DescribeInstancePage +type DescribeInstancePageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Total int `json:"Total" xml:"Total"` + InstanceList []InstanceInfo `json:"InstanceList" xml:"InstanceList"` +} + +// CreateDescribeInstancePageRequest creates a request to invoke DescribeInstancePage API +func CreateDescribeInstancePageRequest() (request *DescribeInstancePageRequest) { + request = &DescribeInstancePageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "DescribeInstancePage", "", "") + return +} + +// CreateDescribeInstancePageResponse creates a response to parse from DescribeInstancePage response +func CreateDescribeInstancePageResponse() (response *DescribeInstancePageResponse) { + response = &DescribeInstancePageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_ip_attack_event.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_ip_attack_event.go new file mode 100644 index 0000000..2ad67ce --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_ip_attack_event.go @@ -0,0 +1,111 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeIpAttackEvent invokes the ddospro.DescribeIpAttackEvent API synchronously +// api document: https://help.aliyun.com/api/ddospro/describeipattackevent.html +func (client *Client) DescribeIpAttackEvent(request *DescribeIpAttackEventRequest) (response *DescribeIpAttackEventResponse, err error) { + response = CreateDescribeIpAttackEventResponse() + err = client.DoAction(request, response) + return +} + +// DescribeIpAttackEventWithChan invokes the ddospro.DescribeIpAttackEvent API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeipattackevent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeIpAttackEventWithChan(request *DescribeIpAttackEventRequest) (<-chan *DescribeIpAttackEventResponse, <-chan error) { + responseChan := make(chan *DescribeIpAttackEventResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeIpAttackEvent(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeIpAttackEventWithCallback invokes the ddospro.DescribeIpAttackEvent API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeipattackevent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeIpAttackEventWithCallback(request *DescribeIpAttackEventRequest, callback func(response *DescribeIpAttackEventResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeIpAttackEventResponse + var err error + defer close(result) + response, err = client.DescribeIpAttackEvent(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeIpAttackEventRequest is the request struct for api DescribeIpAttackEvent +type DescribeIpAttackEventRequest struct { + *requests.RpcRequest + StartDateMillis requests.Integer `position:"Query" name:"StartDateMillis"` + EndDateMillis requests.Integer `position:"Query" name:"EndDateMillis"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Start requests.Integer `position:"Query" name:"Start"` + Ip string `position:"Query" name:"Ip"` +} + +// DescribeIpAttackEventResponse is the response struct for api DescribeIpAttackEvent +type DescribeIpAttackEventResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateDescribeIpAttackEventRequest creates a request to invoke DescribeIpAttackEvent API +func CreateDescribeIpAttackEventRequest() (request *DescribeIpAttackEventRequest) { + request = &DescribeIpAttackEventRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "DescribeIpAttackEvent", "", "") + return +} + +// CreateDescribeIpAttackEventResponse creates a response to parse from DescribeIpAttackEvent response +func CreateDescribeIpAttackEventResponse() (response *DescribeIpAttackEventResponse) { + response = &DescribeIpAttackEventResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_ip_traffic.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_ip_traffic.go new file mode 100644 index 0000000..c212371 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_ip_traffic.go @@ -0,0 +1,109 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeIpTraffic invokes the ddospro.DescribeIpTraffic API synchronously +// api document: https://help.aliyun.com/api/ddospro/describeiptraffic.html +func (client *Client) DescribeIpTraffic(request *DescribeIpTrafficRequest) (response *DescribeIpTrafficResponse, err error) { + response = CreateDescribeIpTrafficResponse() + err = client.DoAction(request, response) + return +} + +// DescribeIpTrafficWithChan invokes the ddospro.DescribeIpTraffic API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeiptraffic.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeIpTrafficWithChan(request *DescribeIpTrafficRequest) (<-chan *DescribeIpTrafficResponse, <-chan error) { + responseChan := make(chan *DescribeIpTrafficResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeIpTraffic(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeIpTrafficWithCallback invokes the ddospro.DescribeIpTraffic API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeiptraffic.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeIpTrafficWithCallback(request *DescribeIpTrafficRequest, callback func(response *DescribeIpTrafficResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeIpTrafficResponse + var err error + defer close(result) + response, err = client.DescribeIpTraffic(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeIpTrafficRequest is the request struct for api DescribeIpTraffic +type DescribeIpTrafficRequest struct { + *requests.RpcRequest + Ip string `position:"Query" name:"Ip"` + StartDateMillis requests.Integer `position:"Query" name:"StartDateMillis"` + EndDateMillis requests.Integer `position:"Query" name:"EndDateMillis"` +} + +// DescribeIpTrafficResponse is the response struct for api DescribeIpTraffic +type DescribeIpTrafficResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateDescribeIpTrafficRequest creates a request to invoke DescribeIpTraffic API +func CreateDescribeIpTrafficRequest() (request *DescribeIpTrafficRequest) { + request = &DescribeIpTrafficRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "DescribeIpTraffic", "", "") + return +} + +// CreateDescribeIpTrafficResponse creates a response to parse from DescribeIpTraffic response +func CreateDescribeIpTrafficResponse() (response *DescribeIpTrafficResponse) { + response = &DescribeIpTrafficResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_oplog.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_oplog.go new file mode 100644 index 0000000..b43a4a0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_oplog.go @@ -0,0 +1,112 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeOplog invokes the ddospro.DescribeOplog API synchronously +// api document: https://help.aliyun.com/api/ddospro/describeoplog.html +func (client *Client) DescribeOplog(request *DescribeOplogRequest) (response *DescribeOplogResponse, err error) { + response = CreateDescribeOplogResponse() + err = client.DoAction(request, response) + return +} + +// DescribeOplogWithChan invokes the ddospro.DescribeOplog API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeoplog.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeOplogWithChan(request *DescribeOplogRequest) (<-chan *DescribeOplogResponse, <-chan error) { + responseChan := make(chan *DescribeOplogResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeOplog(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeOplogWithCallback invokes the ddospro.DescribeOplog API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeoplog.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeOplogWithCallback(request *DescribeOplogRequest, callback func(response *DescribeOplogResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeOplogResponse + var err error + defer close(result) + response, err = client.DescribeOplog(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeOplogRequest is the request struct for api DescribeOplog +type DescribeOplogRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceId string `position:"Query" name:"ResourceId"` + Result requests.Integer `position:"Query" name:"Result"` + StartTime requests.Integer `position:"Query" name:"StartTime"` + EndTime requests.Integer `position:"Query" name:"EndTime"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeOplogResponse is the response struct for api DescribeOplog +type DescribeOplogResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Total int `json:"Total" xml:"Total"` + OplogList []Data `json:"OplogList" xml:"OplogList"` +} + +// CreateDescribeOplogRequest creates a request to invoke DescribeOplog API +func CreateDescribeOplogRequest() (request *DescribeOplogRequest) { + request = &DescribeOplogRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "DescribeOplog", "", "") + return +} + +// CreateDescribeOplogResponse creates a response to parse from DescribeOplog response +func CreateDescribeOplogResponse() (response *DescribeOplogResponse) { + response = &DescribeOplogResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_un_blackhole_count.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_un_blackhole_count.go new file mode 100644 index 0000000..5017e7b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_un_blackhole_count.go @@ -0,0 +1,105 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeUnBlackholeCount invokes the ddospro.DescribeUnBlackholeCount API synchronously +// api document: https://help.aliyun.com/api/ddospro/describeunblackholecount.html +func (client *Client) DescribeUnBlackholeCount(request *DescribeUnBlackholeCountRequest) (response *DescribeUnBlackholeCountResponse, err error) { + response = CreateDescribeUnBlackholeCountResponse() + err = client.DoAction(request, response) + return +} + +// DescribeUnBlackholeCountWithChan invokes the ddospro.DescribeUnBlackholeCount API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeunblackholecount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUnBlackholeCountWithChan(request *DescribeUnBlackholeCountRequest) (<-chan *DescribeUnBlackholeCountResponse, <-chan error) { + responseChan := make(chan *DescribeUnBlackholeCountResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeUnBlackholeCount(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeUnBlackholeCountWithCallback invokes the ddospro.DescribeUnBlackholeCount API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeunblackholecount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUnBlackholeCountWithCallback(request *DescribeUnBlackholeCountRequest, callback func(response *DescribeUnBlackholeCountResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeUnBlackholeCountResponse + var err error + defer close(result) + response, err = client.DescribeUnBlackholeCount(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeUnBlackholeCountRequest is the request struct for api DescribeUnBlackholeCount +type DescribeUnBlackholeCountRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` +} + +// DescribeUnBlackholeCountResponse is the response struct for api DescribeUnBlackholeCount +type DescribeUnBlackholeCountResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateDescribeUnBlackholeCountRequest creates a request to invoke DescribeUnBlackholeCount API +func CreateDescribeUnBlackholeCountRequest() (request *DescribeUnBlackholeCountRequest) { + request = &DescribeUnBlackholeCountRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "DescribeUnBlackholeCount", "", "") + return +} + +// CreateDescribeUnBlackholeCountResponse creates a response to parse from DescribeUnBlackholeCount response +func CreateDescribeUnBlackholeCountResponse() (response *DescribeUnBlackholeCountResponse) { + response = &DescribeUnBlackholeCountResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_un_blockhole_count.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_un_blockhole_count.go new file mode 100644 index 0000000..14ac838 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_un_blockhole_count.go @@ -0,0 +1,105 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeUnBlockholeCount invokes the ddospro.DescribeUnBlockholeCount API synchronously +// api document: https://help.aliyun.com/api/ddospro/describeunblockholecount.html +func (client *Client) DescribeUnBlockholeCount(request *DescribeUnBlockholeCountRequest) (response *DescribeUnBlockholeCountResponse, err error) { + response = CreateDescribeUnBlockholeCountResponse() + err = client.DoAction(request, response) + return +} + +// DescribeUnBlockholeCountWithChan invokes the ddospro.DescribeUnBlockholeCount API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeunblockholecount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUnBlockholeCountWithChan(request *DescribeUnBlockholeCountRequest) (<-chan *DescribeUnBlockholeCountResponse, <-chan error) { + responseChan := make(chan *DescribeUnBlockholeCountResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeUnBlockholeCount(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeUnBlockholeCountWithCallback invokes the ddospro.DescribeUnBlockholeCount API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeunblockholecount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUnBlockholeCountWithCallback(request *DescribeUnBlockholeCountRequest, callback func(response *DescribeUnBlockholeCountResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeUnBlockholeCountResponse + var err error + defer close(result) + response, err = client.DescribeUnBlockholeCount(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeUnBlockholeCountRequest is the request struct for api DescribeUnBlockholeCount +type DescribeUnBlockholeCountRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` +} + +// DescribeUnBlockholeCountResponse is the response struct for api DescribeUnBlockholeCount +type DescribeUnBlockholeCountResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateDescribeUnBlockholeCountRequest creates a request to invoke DescribeUnBlockholeCount API +func CreateDescribeUnBlockholeCountRequest() (request *DescribeUnBlockholeCountRequest) { + request = &DescribeUnBlockholeCountRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "DescribeUnBlockholeCount", "", "") + return +} + +// CreateDescribeUnBlockholeCountResponse creates a response to parse from DescribeUnBlockholeCount response +func CreateDescribeUnBlockholeCountResponse() (response *DescribeUnBlockholeCountResponse) { + response = &DescribeUnBlockholeCountResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_web_log_download_file_page.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_web_log_download_file_page.go new file mode 100644 index 0000000..3aaa2aa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_web_log_download_file_page.go @@ -0,0 +1,109 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeWebLogDownloadFilePage invokes the ddospro.DescribeWebLogDownloadFilePage API synchronously +// api document: https://help.aliyun.com/api/ddospro/describeweblogdownloadfilepage.html +func (client *Client) DescribeWebLogDownloadFilePage(request *DescribeWebLogDownloadFilePageRequest) (response *DescribeWebLogDownloadFilePageResponse, err error) { + response = CreateDescribeWebLogDownloadFilePageResponse() + err = client.DoAction(request, response) + return +} + +// DescribeWebLogDownloadFilePageWithChan invokes the ddospro.DescribeWebLogDownloadFilePage API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeweblogdownloadfilepage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeWebLogDownloadFilePageWithChan(request *DescribeWebLogDownloadFilePageRequest) (<-chan *DescribeWebLogDownloadFilePageResponse, <-chan error) { + responseChan := make(chan *DescribeWebLogDownloadFilePageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeWebLogDownloadFilePage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeWebLogDownloadFilePageWithCallback invokes the ddospro.DescribeWebLogDownloadFilePage API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeweblogdownloadfilepage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeWebLogDownloadFilePageWithCallback(request *DescribeWebLogDownloadFilePageRequest, callback func(response *DescribeWebLogDownloadFilePageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeWebLogDownloadFilePageResponse + var err error + defer close(result) + response, err = client.DescribeWebLogDownloadFilePage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeWebLogDownloadFilePageRequest is the request struct for api DescribeWebLogDownloadFilePage +type DescribeWebLogDownloadFilePageRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + TaskId requests.Integer `position:"Query" name:"TaskId"` +} + +// DescribeWebLogDownloadFilePageResponse is the response struct for api DescribeWebLogDownloadFilePage +type DescribeWebLogDownloadFilePageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + FileList []File `json:"FileList" xml:"FileList"` +} + +// CreateDescribeWebLogDownloadFilePageRequest creates a request to invoke DescribeWebLogDownloadFilePage API +func CreateDescribeWebLogDownloadFilePageRequest() (request *DescribeWebLogDownloadFilePageRequest) { + request = &DescribeWebLogDownloadFilePageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "DescribeWebLogDownloadFilePage", "", "") + return +} + +// CreateDescribeWebLogDownloadFilePageResponse creates a response to parse from DescribeWebLogDownloadFilePage response +func CreateDescribeWebLogDownloadFilePageResponse() (response *DescribeWebLogDownloadFilePageResponse) { + response = &DescribeWebLogDownloadFilePageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_web_log_page.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_web_log_page.go new file mode 100644 index 0000000..5deaa4e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/describe_web_log_page.go @@ -0,0 +1,110 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeWebLogPage invokes the ddospro.DescribeWebLogPage API synchronously +// api document: https://help.aliyun.com/api/ddospro/describeweblogpage.html +func (client *Client) DescribeWebLogPage(request *DescribeWebLogPageRequest) (response *DescribeWebLogPageResponse, err error) { + response = CreateDescribeWebLogPageResponse() + err = client.DoAction(request, response) + return +} + +// DescribeWebLogPageWithChan invokes the ddospro.DescribeWebLogPage API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeweblogpage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeWebLogPageWithChan(request *DescribeWebLogPageRequest) (<-chan *DescribeWebLogPageResponse, <-chan error) { + responseChan := make(chan *DescribeWebLogPageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeWebLogPage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeWebLogPageWithCallback invokes the ddospro.DescribeWebLogPage API asynchronously +// api document: https://help.aliyun.com/api/ddospro/describeweblogpage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeWebLogPageWithCallback(request *DescribeWebLogPageRequest, callback func(response *DescribeWebLogPageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeWebLogPageResponse + var err error + defer close(result) + response, err = client.DescribeWebLogPage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeWebLogPageRequest is the request struct for api DescribeWebLogPage +type DescribeWebLogPageRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Domain string `position:"Query" name:"Domain"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + StartTime requests.Integer `position:"Query" name:"StartTime"` + EndTime requests.Integer `position:"Query" name:"EndTime"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` +} + +// DescribeWebLogPageResponse is the response struct for api DescribeWebLogPage +type DescribeWebLogPageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + WebLogList []WebLog `json:"WebLogList" xml:"WebLogList"` +} + +// CreateDescribeWebLogPageRequest creates a request to invoke DescribeWebLogPage API +func CreateDescribeWebLogPageRequest() (request *DescribeWebLogPageRequest) { + request = &DescribeWebLogPageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "DescribeWebLogPage", "", "") + return +} + +// CreateDescribeWebLogPageResponse creates a response to parse from DescribeWebLogPage response +func CreateDescribeWebLogPageResponse() (response *DescribeWebLogPageResponse) { + response = &DescribeWebLogPageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/list_domain_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/list_domain_config.go new file mode 100644 index 0000000..af1bca1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/list_domain_config.go @@ -0,0 +1,108 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListDomainConfig invokes the ddospro.ListDomainConfig API synchronously +// api document: https://help.aliyun.com/api/ddospro/listdomainconfig.html +func (client *Client) ListDomainConfig(request *ListDomainConfigRequest) (response *ListDomainConfigResponse, err error) { + response = CreateListDomainConfigResponse() + err = client.DoAction(request, response) + return +} + +// ListDomainConfigWithChan invokes the ddospro.ListDomainConfig API asynchronously +// api document: https://help.aliyun.com/api/ddospro/listdomainconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListDomainConfigWithChan(request *ListDomainConfigRequest) (<-chan *ListDomainConfigResponse, <-chan error) { + responseChan := make(chan *ListDomainConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListDomainConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListDomainConfigWithCallback invokes the ddospro.ListDomainConfig API asynchronously +// api document: https://help.aliyun.com/api/ddospro/listdomainconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListDomainConfigWithCallback(request *ListDomainConfigRequest, callback func(response *ListDomainConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListDomainConfigResponse + var err error + defer close(result) + response, err = client.ListDomainConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListDomainConfigRequest is the request struct for api ListDomainConfig +type ListDomainConfigRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Domain string `position:"Query" name:"Domain"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` +} + +// ListDomainConfigResponse is the response struct for api ListDomainConfig +type ListDomainConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Total int `json:"Total" xml:"Total"` + ConfigList ConfigList `json:"ConfigList" xml:"ConfigList"` +} + +// CreateListDomainConfigRequest creates a request to invoke ListDomainConfig API +func CreateListDomainConfigRequest() (request *ListDomainConfigRequest) { + request = &ListDomainConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "ListDomainConfig", "", "") + return +} + +// CreateListDomainConfigResponse creates a response to parse from ListDomainConfig response +func CreateListDomainConfigResponse() (response *ListDomainConfigResponse) { + response = &ListDomainConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/modify_cc_mode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/modify_cc_mode.go new file mode 100644 index 0000000..04f3d23 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/modify_cc_mode.go @@ -0,0 +1,107 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyCcMode invokes the ddospro.ModifyCcMode API synchronously +// api document: https://help.aliyun.com/api/ddospro/modifyccmode.html +func (client *Client) ModifyCcMode(request *ModifyCcModeRequest) (response *ModifyCcModeResponse, err error) { + response = CreateModifyCcModeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyCcModeWithChan invokes the ddospro.ModifyCcMode API asynchronously +// api document: https://help.aliyun.com/api/ddospro/modifyccmode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCcModeWithChan(request *ModifyCcModeRequest) (<-chan *ModifyCcModeResponse, <-chan error) { + responseChan := make(chan *ModifyCcModeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyCcMode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyCcModeWithCallback invokes the ddospro.ModifyCcMode API asynchronously +// api document: https://help.aliyun.com/api/ddospro/modifyccmode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCcModeWithCallback(request *ModifyCcModeRequest, callback func(response *ModifyCcModeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyCcModeResponse + var err error + defer close(result) + response, err = client.ModifyCcMode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyCcModeRequest is the request struct for api ModifyCcMode +type ModifyCcModeRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Vip string `position:"Query" name:"Vip"` + CcMode string `position:"Query" name:"CcMode"` +} + +// ModifyCcModeResponse is the response struct for api ModifyCcMode +type ModifyCcModeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data string `json:"data" xml:"data"` +} + +// CreateModifyCcModeRequest creates a request to invoke ModifyCcMode API +func CreateModifyCcModeRequest() (request *ModifyCcModeRequest) { + request = &ModifyCcModeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "ModifyCcMode", "", "") + return +} + +// CreateModifyCcModeResponse creates a response to parse from ModifyCcMode response +func CreateModifyCcModeResponse() (response *ModifyCcModeResponse) { + response = &ModifyCcModeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/modify_cname_auto_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/modify_cname_auto_status.go new file mode 100644 index 0000000..d66ffc7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/modify_cname_auto_status.go @@ -0,0 +1,105 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyCnameAutoStatus invokes the ddospro.ModifyCnameAutoStatus API synchronously +// api document: https://help.aliyun.com/api/ddospro/modifycnameautostatus.html +func (client *Client) ModifyCnameAutoStatus(request *ModifyCnameAutoStatusRequest) (response *ModifyCnameAutoStatusResponse, err error) { + response = CreateModifyCnameAutoStatusResponse() + err = client.DoAction(request, response) + return +} + +// ModifyCnameAutoStatusWithChan invokes the ddospro.ModifyCnameAutoStatus API asynchronously +// api document: https://help.aliyun.com/api/ddospro/modifycnameautostatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCnameAutoStatusWithChan(request *ModifyCnameAutoStatusRequest) (<-chan *ModifyCnameAutoStatusResponse, <-chan error) { + responseChan := make(chan *ModifyCnameAutoStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyCnameAutoStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyCnameAutoStatusWithCallback invokes the ddospro.ModifyCnameAutoStatus API asynchronously +// api document: https://help.aliyun.com/api/ddospro/modifycnameautostatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCnameAutoStatusWithCallback(request *ModifyCnameAutoStatusRequest, callback func(response *ModifyCnameAutoStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyCnameAutoStatusResponse + var err error + defer close(result) + response, err = client.ModifyCnameAutoStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyCnameAutoStatusRequest is the request struct for api ModifyCnameAutoStatus +type ModifyCnameAutoStatusRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Domain string `position:"Query" name:"Domain"` + Enable requests.Boolean `position:"Query" name:"Enable"` +} + +// ModifyCnameAutoStatusResponse is the response struct for api ModifyCnameAutoStatus +type ModifyCnameAutoStatusResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyCnameAutoStatusRequest creates a request to invoke ModifyCnameAutoStatus API +func CreateModifyCnameAutoStatusRequest() (request *ModifyCnameAutoStatusRequest) { + request = &ModifyCnameAutoStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "ModifyCnameAutoStatus", "", "") + return +} + +// CreateModifyCnameAutoStatusResponse creates a response to parse from ModifyCnameAutoStatus response +func CreateModifyCnameAutoStatusResponse() (response *ModifyCnameAutoStatusResponse) { + response = &ModifyCnameAutoStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/modify_domain_black_white_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/modify_domain_black_white_list.go new file mode 100644 index 0000000..35a97c5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/modify_domain_black_white_list.go @@ -0,0 +1,106 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDomainBlackWhiteList invokes the ddospro.ModifyDomainBlackWhiteList API synchronously +// api document: https://help.aliyun.com/api/ddospro/modifydomainblackwhitelist.html +func (client *Client) ModifyDomainBlackWhiteList(request *ModifyDomainBlackWhiteListRequest) (response *ModifyDomainBlackWhiteListResponse, err error) { + response = CreateModifyDomainBlackWhiteListResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDomainBlackWhiteListWithChan invokes the ddospro.ModifyDomainBlackWhiteList API asynchronously +// api document: https://help.aliyun.com/api/ddospro/modifydomainblackwhitelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDomainBlackWhiteListWithChan(request *ModifyDomainBlackWhiteListRequest) (<-chan *ModifyDomainBlackWhiteListResponse, <-chan error) { + responseChan := make(chan *ModifyDomainBlackWhiteListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDomainBlackWhiteList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDomainBlackWhiteListWithCallback invokes the ddospro.ModifyDomainBlackWhiteList API asynchronously +// api document: https://help.aliyun.com/api/ddospro/modifydomainblackwhitelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDomainBlackWhiteListWithCallback(request *ModifyDomainBlackWhiteListRequest, callback func(response *ModifyDomainBlackWhiteListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDomainBlackWhiteListResponse + var err error + defer close(result) + response, err = client.ModifyDomainBlackWhiteList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDomainBlackWhiteListRequest is the request struct for api ModifyDomainBlackWhiteList +type ModifyDomainBlackWhiteListRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Domain string `position:"Query" name:"Domain"` + Black *[]string `position:"Query" name:"Black" type:"Repeated"` + White *[]string `position:"Query" name:"White" type:"Repeated"` +} + +// ModifyDomainBlackWhiteListResponse is the response struct for api ModifyDomainBlackWhiteList +type ModifyDomainBlackWhiteListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyDomainBlackWhiteListRequest creates a request to invoke ModifyDomainBlackWhiteList API +func CreateModifyDomainBlackWhiteListRequest() (request *ModifyDomainBlackWhiteListRequest) { + request = &ModifyDomainBlackWhiteListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "ModifyDomainBlackWhiteList", "", "") + return +} + +// CreateModifyDomainBlackWhiteListResponse creates a response to parse from ModifyDomainBlackWhiteList response +func CreateModifyDomainBlackWhiteListResponse() (response *ModifyDomainBlackWhiteListResponse) { + response = &ModifyDomainBlackWhiteListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/modify_domain_proxy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/modify_domain_proxy.go new file mode 100644 index 0000000..dc18ac3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/modify_domain_proxy.go @@ -0,0 +1,105 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDomainProxy invokes the ddospro.ModifyDomainProxy API synchronously +// api document: https://help.aliyun.com/api/ddospro/modifydomainproxy.html +func (client *Client) ModifyDomainProxy(request *ModifyDomainProxyRequest) (response *ModifyDomainProxyResponse, err error) { + response = CreateModifyDomainProxyResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDomainProxyWithChan invokes the ddospro.ModifyDomainProxy API asynchronously +// api document: https://help.aliyun.com/api/ddospro/modifydomainproxy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDomainProxyWithChan(request *ModifyDomainProxyRequest) (<-chan *ModifyDomainProxyResponse, <-chan error) { + responseChan := make(chan *ModifyDomainProxyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDomainProxy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDomainProxyWithCallback invokes the ddospro.ModifyDomainProxy API asynchronously +// api document: https://help.aliyun.com/api/ddospro/modifydomainproxy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDomainProxyWithCallback(request *ModifyDomainProxyRequest, callback func(response *ModifyDomainProxyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDomainProxyResponse + var err error + defer close(result) + response, err = client.ModifyDomainProxy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDomainProxyRequest is the request struct for api ModifyDomainProxy +type ModifyDomainProxyRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Domain string `position:"Query" name:"Domain"` + ProxyType *[]string `position:"Query" name:"ProxyType" type:"Repeated"` +} + +// ModifyDomainProxyResponse is the response struct for api ModifyDomainProxy +type ModifyDomainProxyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyDomainProxyRequest creates a request to invoke ModifyDomainProxy API +func CreateModifyDomainProxyRequest() (request *ModifyDomainProxyRequest) { + request = &ModifyDomainProxyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "ModifyDomainProxy", "", "") + return +} + +// CreateModifyDomainProxyResponse creates a response to parse from ModifyDomainProxy response +func CreateModifyDomainProxyResponse() (response *ModifyDomainProxyResponse) { + response = &ModifyDomainProxyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/modify_domain_transmit_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/modify_domain_transmit_rule.go new file mode 100644 index 0000000..e1505c3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/modify_domain_transmit_rule.go @@ -0,0 +1,107 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDomainTransmitRule invokes the ddospro.ModifyDomainTransmitRule API synchronously +// api document: https://help.aliyun.com/api/ddospro/modifydomaintransmitrule.html +func (client *Client) ModifyDomainTransmitRule(request *ModifyDomainTransmitRuleRequest) (response *ModifyDomainTransmitRuleResponse, err error) { + response = CreateModifyDomainTransmitRuleResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDomainTransmitRuleWithChan invokes the ddospro.ModifyDomainTransmitRule API asynchronously +// api document: https://help.aliyun.com/api/ddospro/modifydomaintransmitrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDomainTransmitRuleWithChan(request *ModifyDomainTransmitRuleRequest) (<-chan *ModifyDomainTransmitRuleResponse, <-chan error) { + responseChan := make(chan *ModifyDomainTransmitRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDomainTransmitRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDomainTransmitRuleWithCallback invokes the ddospro.ModifyDomainTransmitRule API asynchronously +// api document: https://help.aliyun.com/api/ddospro/modifydomaintransmitrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDomainTransmitRuleWithCallback(request *ModifyDomainTransmitRuleRequest, callback func(response *ModifyDomainTransmitRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDomainTransmitRuleResponse + var err error + defer close(result) + response, err = client.ModifyDomainTransmitRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDomainTransmitRuleRequest is the request struct for api ModifyDomainTransmitRule +type ModifyDomainTransmitRuleRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Domain string `position:"Query" name:"Domain"` + Ip string `position:"Query" name:"Ip"` + Type string `position:"Query" name:"Type"` + RealServer *[]string `position:"Query" name:"RealServer" type:"Repeated"` +} + +// ModifyDomainTransmitRuleResponse is the response struct for api ModifyDomainTransmitRule +type ModifyDomainTransmitRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyDomainTransmitRuleRequest creates a request to invoke ModifyDomainTransmitRule API +func CreateModifyDomainTransmitRuleRequest() (request *ModifyDomainTransmitRuleRequest) { + request = &ModifyDomainTransmitRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "ModifyDomainTransmitRule", "", "") + return +} + +// CreateModifyDomainTransmitRuleResponse creates a response to parse from ModifyDomainTransmitRule response +func CreateModifyDomainTransmitRuleResponse() (response *ModifyDomainTransmitRuleResponse) { + response = &ModifyDomainTransmitRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_attack_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_attack_info.go new file mode 100644 index 0000000..48db77b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_attack_info.go @@ -0,0 +1,25 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AttackInfo is a nested struct in ddospro response +type AttackInfo struct { + AttackType string `json:"AttackType" xml:"AttackType"` + Duration string `json:"Duration" xml:"Duration"` + StartTimeMillis int `json:"StartTimeMillis" xml:"StartTimeMillis"` + EndTimeMillis int `json:"EndTimeMillis" xml:"EndTimeMillis"` + EventType int `json:"eventType" xml:"eventType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_attacks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_attacks.go new file mode 100644 index 0000000..7061b55 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_attacks.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Attacks is a nested struct in ddospro response +type Attacks struct { + Attack []string `json:"Attack" xml:"Attack"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_bps_drop.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_bps_drop.go new file mode 100644 index 0000000..54ea1c6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_bps_drop.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BpsDrop is a nested struct in ddospro response +type BpsDrop struct { + BpsDropItem []string `json:"BpsDropItem" xml:"BpsDropItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_bps_total.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_bps_total.go new file mode 100644 index 0000000..2ecb073 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_bps_total.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BpsTotal is a nested struct in ddospro response +type BpsTotal struct { + BpsTotalItem []string `json:"BpsTotalItem" xml:"BpsTotalItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_cidr_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_cidr_list.go new file mode 100644 index 0000000..eae273e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_cidr_list.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CidrList is a nested struct in ddospro response +type CidrList struct { + Cidr []string `json:"Cidr" xml:"Cidr"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_config.go new file mode 100644 index 0000000..f5cc7c9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_config.go @@ -0,0 +1,23 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 ddospro response +type Config struct { + Cname string `json:"Cname" xml:"Cname"` + Domain string `json:"Domain" xml:"Domain"` + Instances InstancesInDescribeDomainConfig `json:"Instances" xml:"Instances"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_config_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_config_list.go new file mode 100644 index 0000000..6a814e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_config_list.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ConfigList is a nested struct in ddospro response +type ConfigList struct { + Config []Config `json:"Config" xml:"Config"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_data.go new file mode 100644 index 0000000..13ac74e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_data.go @@ -0,0 +1,54 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 ddospro response +type Data struct { + Cycle int `json:"Cycle" xml:"Cycle"` + CycleResidue int `json:"CycleResidue" xml:"CycleResidue"` + LastBlockTime int `json:"LastBlockTime" xml:"LastBlockTime"` + HoleThresholdMbps int `json:"HoleThresholdMbps" xml:"HoleThresholdMbps"` + CcMode string `json:"CcMode" xml:"CcMode"` + WhiteList string `json:"WhiteList" xml:"WhiteList"` + ExpectionOpenTime int `json:"ExpectionOpenTime" xml:"ExpectionOpenTime"` + Status bool `json:"Status" xml:"Status"` + ResourceId string `json:"ResourceId" xml:"ResourceId"` + OpDesc string `json:"OpDesc" xml:"OpDesc"` + OpAction int `json:"OpAction" xml:"OpAction"` + LastCloseTime int `json:"LastCloseTime" xml:"LastCloseTime"` + RemainingTime int `json:"RemainingTime" xml:"RemainingTime"` + BlockZone string `json:"BlockZone" xml:"BlockZone"` + BlockTime int `json:"BlockTime" xml:"BlockTime"` + TotalClose int `json:"TotalClose" xml:"TotalClose"` + Region string `json:"Region" xml:"Region"` + TotalTime int `json:"TotalTime" xml:"TotalTime"` + CycleTime int `json:"CycleTime" xml:"CycleTime"` + DdosStatus int `json:"DdosStatus" xml:"DdosStatus"` + BlackList string `json:"BlackList" xml:"BlackList"` + Result int `json:"Result" xml:"Result"` + Vip string `json:"Vip" xml:"Vip"` + OpDate int `json:"OpDate" xml:"OpDate"` + UnblockTime int `json:"UnblockTime" xml:"UnblockTime"` + BpsDrop []string `json:"BpsDrop" xml:"BpsDrop"` + Attacks []string `json:"Attacks" xml:"Attacks"` + PpsDrop []string `json:"PpsDrop" xml:"PpsDrop"` + PpsTotal []string `json:"PpsTotal" xml:"PpsTotal"` + BpsTotal []string `json:"BpsTotal" xml:"BpsTotal"` + Total []string `json:"Total" xml:"Total"` + TimeScope TimeScope `json:"TimeScope" xml:"TimeScope"` + PageInfo PageInfo `json:"PageInfo" xml:"PageInfo"` + List []AttackInfo `json:"List" xml:"List"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_data_in_describe_cc_mode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_data_in_describe_cc_mode.go new file mode 100644 index 0000000..cc588a8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_data_in_describe_cc_mode.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInDescribeCcMode is a nested struct in ddospro response +type DataInDescribeCcMode struct { + Data []Data `json:"data" xml:"data"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_data_in_describe_ddos_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_data_in_describe_ddos_status.go new file mode 100644 index 0000000..1418a0d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_data_in_describe_ddos_status.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInDescribeDdosStatus is a nested struct in ddospro response +type DataInDescribeDdosStatus struct { + Data []Data `json:"data" xml:"data"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_data_in_describe_flow_blockhole_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_data_in_describe_flow_blockhole_status.go new file mode 100644 index 0000000..9462817 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_data_in_describe_flow_blockhole_status.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInDescribeFlowBlockholeStatus is a nested struct in ddospro response +type DataInDescribeFlowBlockholeStatus struct { + Data []Data `json:"data" xml:"data"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_file.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_file.go new file mode 100644 index 0000000..fcb7e49 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_file.go @@ -0,0 +1,22 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// File is a nested struct in ddospro response +type File struct { + FileName string `json:"FileName" xml:"FileName"` + FileDownloadUrl string `json:"FileDownloadUrl" xml:"FileDownloadUrl"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_file_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_file_list.go new file mode 100644 index 0000000..6d69ac7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_file_list.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FileList is a nested struct in ddospro response +type FileList struct { + File []File `json:"File" xml:"File"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_instance.go new file mode 100644 index 0000000..e758927 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_instance.go @@ -0,0 +1,23 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 ddospro response +type Instance struct { + InstanceRemark string `json:"InstanceRemark" xml:"InstanceRemark"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Rules RulesInDescribeDomainConfig `json:"Rules" xml:"Rules"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_instance_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_instance_info.go new file mode 100644 index 0000000..72962e2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_instance_info.go @@ -0,0 +1,22 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceInfo is a nested struct in ddospro response +type InstanceInfo struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + IpList []IpInfo `json:"IpList" xml:"IpList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_instance_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_instance_list.go new file mode 100644 index 0000000..743be35 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_instance_list.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceList is a nested struct in ddospro response +type InstanceList struct { + InstanceInfo []InstanceInfo `json:"InstanceInfo" xml:"InstanceInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_instances_in_describe_domain_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_instances_in_describe_domain_config.go new file mode 100644 index 0000000..b165e12 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_instances_in_describe_domain_config.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstancesInDescribeDomainConfig is a nested struct in ddospro response +type InstancesInDescribeDomainConfig struct { + Instance []Instance `json:"Instance" xml:"Instance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_instances_in_list_domain_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_instances_in_list_domain_config.go new file mode 100644 index 0000000..f3a46ed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_instances_in_list_domain_config.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstancesInListDomainConfig is a nested struct in ddospro response +type InstancesInListDomainConfig struct { + Instance []Instance `json:"Instance" xml:"Instance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_ip_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_ip_info.go new file mode 100644 index 0000000..ae9dcc1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_ip_info.go @@ -0,0 +1,25 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IpInfo is a nested struct in ddospro response +type IpInfo struct { + Ip string `json:"Ip" xml:"Ip"` + OrderId int `json:"OrderId" xml:"OrderId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Status int `json:"Status" xml:"Status"` + AliUid int `json:"AliUid" xml:"AliUid"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_ip_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_ip_list.go new file mode 100644 index 0000000..f789e52 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_ip_list.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IpList is a nested struct in ddospro response +type IpList struct { + IpInfo []IpInfo `json:"IpInfo" xml:"IpInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_list.go new file mode 100644 index 0000000..55c32e2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_list.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// List is a nested struct in ddospro response +type List struct { + AttackInfo []AttackInfo `json:"AttackInfo" xml:"AttackInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_oplog_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_oplog_list.go new file mode 100644 index 0000000..f208f15 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_oplog_list.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OplogList is a nested struct in ddospro response +type OplogList struct { + Data []Data `json:"data" xml:"data"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_page_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_page_info.go new file mode 100644 index 0000000..7e996c3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_page_info.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PageInfo is a nested struct in ddospro response +type PageInfo struct { + Total int `json:"Total" xml:"Total"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_pps_drop.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_pps_drop.go new file mode 100644 index 0000000..1708368 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_pps_drop.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PpsDrop is a nested struct in ddospro response +type PpsDrop struct { + PpsDropItem []string `json:"PpsDropItem" xml:"PpsDropItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_pps_total.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_pps_total.go new file mode 100644 index 0000000..7b8a75c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_pps_total.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PpsTotal is a nested struct in ddospro response +type PpsTotal struct { + PpsTotalItem []string `json:"PpsTotalItem" xml:"PpsTotalItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_proxy_type_list_in_describe_domain_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_proxy_type_list_in_describe_domain_config.go new file mode 100644 index 0000000..32a0e27 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_proxy_type_list_in_describe_domain_config.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ProxyTypeListInDescribeDomainConfig is a nested struct in ddospro response +type ProxyTypeListInDescribeDomainConfig struct { + ProxyType []string `json:"ProxyType" xml:"ProxyType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_proxy_type_list_in_list_domain_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_proxy_type_list_in_list_domain_config.go new file mode 100644 index 0000000..d9135b9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_proxy_type_list_in_list_domain_config.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ProxyTypeListInListDomainConfig is a nested struct in ddospro response +type ProxyTypeListInListDomainConfig struct { + ProxyType []string `json:"ProxyType" xml:"ProxyType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_real_servers_in_describe_domain_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_real_servers_in_describe_domain_config.go new file mode 100644 index 0000000..5c5b968 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_real_servers_in_describe_domain_config.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RealServersInDescribeDomainConfig is a nested struct in ddospro response +type RealServersInDescribeDomainConfig struct { + RealServer []string `json:"RealServer" xml:"RealServer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_real_servers_in_list_domain_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_real_servers_in_list_domain_config.go new file mode 100644 index 0000000..e8092e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_real_servers_in_list_domain_config.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RealServersInListDomainConfig is a nested struct in ddospro response +type RealServersInListDomainConfig struct { + RealServer []string `json:"RealServer" xml:"RealServer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_rule.go new file mode 100644 index 0000000..58e3274 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_rule.go @@ -0,0 +1,24 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Rule is a nested struct in ddospro response +type Rule struct { + Ip string `json:"Ip" xml:"Ip"` + Line string `json:"Line" xml:"Line"` + RealServers RealServersInDescribeDomainConfig `json:"RealServers" xml:"RealServers"` + ProxyTypeList ProxyTypeListInDescribeDomainConfig `json:"ProxyTypeList" xml:"ProxyTypeList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_rules_in_describe_domain_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_rules_in_describe_domain_config.go new file mode 100644 index 0000000..e8422c8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_rules_in_describe_domain_config.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RulesInDescribeDomainConfig is a nested struct in ddospro response +type RulesInDescribeDomainConfig struct { + Rule []Rule `json:"Rule" xml:"Rule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_rules_in_list_domain_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_rules_in_list_domain_config.go new file mode 100644 index 0000000..07fbb87 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_rules_in_list_domain_config.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RulesInListDomainConfig is a nested struct in ddospro response +type RulesInListDomainConfig struct { + Rule []Rule `json:"Rule" xml:"Rule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_time_scope.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_time_scope.go new file mode 100644 index 0000000..b0d660c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_time_scope.go @@ -0,0 +1,22 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TimeScope is a nested struct in ddospro response +type TimeScope struct { + Interval int `json:"Interval" xml:"Interval"` + Start int `json:"Start" xml:"Start"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_total.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_total.go new file mode 100644 index 0000000..1c4fb83 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_total.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Total is a nested struct in ddospro response +type Total struct { + Total []string `json:"Total" xml:"Total"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_web_log.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_web_log.go new file mode 100644 index 0000000..9197c61 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_web_log.go @@ -0,0 +1,34 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// WebLog is a nested struct in ddospro response +type WebLog struct { + Request string `json:"Request" xml:"Request"` + HttpXForwardedFor string `json:"HttpXForwardedFor" xml:"HttpXForwardedFor"` + UpstreamResponseTime string `json:"UpstreamResponseTime" xml:"UpstreamResponseTime"` + HttpUserAgent string `json:"HttpUserAgent" xml:"HttpUserAgent"` + AttackRule string `json:"AttackRule" xml:"AttackRule"` + UpstreamStatus string `json:"UpstreamStatus" xml:"UpstreamStatus"` + UpstreamAddr string `json:"UpstreamAddr" xml:"UpstreamAddr"` + HttpCookie string `json:"HttpCookie" xml:"HttpCookie"` + RealClientIp string `json:"RealClientIp" xml:"RealClientIp"` + Host string `json:"Host" xml:"Host"` + Time string `json:"Time" xml:"Time"` + HttpReferer string `json:"HttpReferer" xml:"HttpReferer"` + Status string `json:"Status" xml:"Status"` + RemoteAddr string `json:"RemoteAddr" xml:"RemoteAddr"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_web_log_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_web_log_list.go new file mode 100644 index 0000000..f9907c9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/struct_web_log_list.go @@ -0,0 +1,21 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// WebLogList is a nested struct in ddospro response +type WebLogList struct { + WebLog []WebLog `json:"WebLog" xml:"WebLog"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/upload_certificate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/upload_certificate.go new file mode 100644 index 0000000..c105c74 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ddospro/upload_certificate.go @@ -0,0 +1,106 @@ +package ddospro + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UploadCertificate invokes the ddospro.UploadCertificate API synchronously +// api document: https://help.aliyun.com/api/ddospro/uploadcertificate.html +func (client *Client) UploadCertificate(request *UploadCertificateRequest) (response *UploadCertificateResponse, err error) { + response = CreateUploadCertificateResponse() + err = client.DoAction(request, response) + return +} + +// UploadCertificateWithChan invokes the ddospro.UploadCertificate API asynchronously +// api document: https://help.aliyun.com/api/ddospro/uploadcertificate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UploadCertificateWithChan(request *UploadCertificateRequest) (<-chan *UploadCertificateResponse, <-chan error) { + responseChan := make(chan *UploadCertificateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UploadCertificate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UploadCertificateWithCallback invokes the ddospro.UploadCertificate API asynchronously +// api document: https://help.aliyun.com/api/ddospro/uploadcertificate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UploadCertificateWithCallback(request *UploadCertificateRequest, callback func(response *UploadCertificateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UploadCertificateResponse + var err error + defer close(result) + response, err = client.UploadCertificate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UploadCertificateRequest is the request struct for api UploadCertificate +type UploadCertificateRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Domain string `position:"Query" name:"Domain"` + Cert string `position:"Query" name:"Cert"` + Key string `position:"Query" name:"Key"` +} + +// UploadCertificateResponse is the response struct for api UploadCertificate +type UploadCertificateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUploadCertificateRequest creates a request to invoke UploadCertificate API +func CreateUploadCertificateRequest() (request *UploadCertificateRequest) { + request = &UploadCertificateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DDoSPro", "2017-07-25", "UploadCertificate", "", "") + return +} + +// CreateUploadCertificateResponse creates a response to parse from UploadCertificate response +func CreateUploadCertificateResponse() (response *UploadCertificateResponse) { + response = &UploadCertificateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/add_ipfilter.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/add_ipfilter.go new file mode 100644 index 0000000..4a25df9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/add_ipfilter.go @@ -0,0 +1,106 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddIpfilter invokes the dm.AddIpfilter API synchronously +// api document: https://help.aliyun.com/api/dm/addipfilter.html +func (client *Client) AddIpfilter(request *AddIpfilterRequest) (response *AddIpfilterResponse, err error) { + response = CreateAddIpfilterResponse() + err = client.DoAction(request, response) + return +} + +// AddIpfilterWithChan invokes the dm.AddIpfilter API asynchronously +// api document: https://help.aliyun.com/api/dm/addipfilter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddIpfilterWithChan(request *AddIpfilterRequest) (<-chan *AddIpfilterResponse, <-chan error) { + responseChan := make(chan *AddIpfilterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddIpfilter(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddIpfilterWithCallback invokes the dm.AddIpfilter API asynchronously +// api document: https://help.aliyun.com/api/dm/addipfilter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddIpfilterWithCallback(request *AddIpfilterRequest, callback func(response *AddIpfilterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddIpfilterResponse + var err error + defer close(result) + response, err = client.AddIpfilter(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddIpfilterRequest is the request struct for api AddIpfilter +type AddIpfilterRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + IpAddress string `position:"Query" name:"IpAddress"` +} + +// AddIpfilterResponse is the response struct for api AddIpfilter +type AddIpfilterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddIpfilterRequest creates a request to invoke AddIpfilter API +func CreateAddIpfilterRequest() (request *AddIpfilterRequest) { + request = &AddIpfilterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "AddIpfilter", "", "") + return +} + +// CreateAddIpfilterResponse creates a response to parse from AddIpfilter response +func CreateAddIpfilterResponse() (response *AddIpfilterResponse) { + response = &AddIpfilterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/approve_mail_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/approve_mail_template.go new file mode 100644 index 0000000..c1148d0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/approve_mail_template.go @@ -0,0 +1,107 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ApproveMailTemplate invokes the dm.ApproveMailTemplate API synchronously +// api document: https://help.aliyun.com/api/dm/approvemailtemplate.html +func (client *Client) ApproveMailTemplate(request *ApproveMailTemplateRequest) (response *ApproveMailTemplateResponse, err error) { + response = CreateApproveMailTemplateResponse() + err = client.DoAction(request, response) + return +} + +// ApproveMailTemplateWithChan invokes the dm.ApproveMailTemplate API asynchronously +// api document: https://help.aliyun.com/api/dm/approvemailtemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ApproveMailTemplateWithChan(request *ApproveMailTemplateRequest) (<-chan *ApproveMailTemplateResponse, <-chan error) { + responseChan := make(chan *ApproveMailTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ApproveMailTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ApproveMailTemplateWithCallback invokes the dm.ApproveMailTemplate API asynchronously +// api document: https://help.aliyun.com/api/dm/approvemailtemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ApproveMailTemplateWithCallback(request *ApproveMailTemplateRequest, callback func(response *ApproveMailTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ApproveMailTemplateResponse + var err error + defer close(result) + response, err = client.ApproveMailTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ApproveMailTemplateRequest is the request struct for api ApproveMailTemplate +type ApproveMailTemplateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TemplateId requests.Integer `position:"Query" name:"TemplateId"` + FromType requests.Integer `position:"Query" name:"FromType"` +} + +// ApproveMailTemplateResponse is the response struct for api ApproveMailTemplate +type ApproveMailTemplateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateApproveMailTemplateRequest creates a request to invoke ApproveMailTemplate API +func CreateApproveMailTemplateRequest() (request *ApproveMailTemplateRequest) { + request = &ApproveMailTemplateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "ApproveMailTemplate", "", "") + return +} + +// CreateApproveMailTemplateResponse creates a response to parse from ApproveMailTemplate response +func CreateApproveMailTemplateResponse() (response *ApproveMailTemplateResponse) { + response = &ApproveMailTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/approve_reply_mail_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/approve_reply_mail_address.go new file mode 100644 index 0000000..284672a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/approve_reply_mail_address.go @@ -0,0 +1,106 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ApproveReplyMailAddress invokes the dm.ApproveReplyMailAddress API synchronously +// api document: https://help.aliyun.com/api/dm/approvereplymailaddress.html +func (client *Client) ApproveReplyMailAddress(request *ApproveReplyMailAddressRequest) (response *ApproveReplyMailAddressResponse, err error) { + response = CreateApproveReplyMailAddressResponse() + err = client.DoAction(request, response) + return +} + +// ApproveReplyMailAddressWithChan invokes the dm.ApproveReplyMailAddress API asynchronously +// api document: https://help.aliyun.com/api/dm/approvereplymailaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ApproveReplyMailAddressWithChan(request *ApproveReplyMailAddressRequest) (<-chan *ApproveReplyMailAddressResponse, <-chan error) { + responseChan := make(chan *ApproveReplyMailAddressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ApproveReplyMailAddress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ApproveReplyMailAddressWithCallback invokes the dm.ApproveReplyMailAddress API asynchronously +// api document: https://help.aliyun.com/api/dm/approvereplymailaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ApproveReplyMailAddressWithCallback(request *ApproveReplyMailAddressRequest, callback func(response *ApproveReplyMailAddressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ApproveReplyMailAddressResponse + var err error + defer close(result) + response, err = client.ApproveReplyMailAddress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ApproveReplyMailAddressRequest is the request struct for api ApproveReplyMailAddress +type ApproveReplyMailAddressRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Ticket string `position:"Query" name:"Ticket"` +} + +// ApproveReplyMailAddressResponse is the response struct for api ApproveReplyMailAddress +type ApproveReplyMailAddressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateApproveReplyMailAddressRequest creates a request to invoke ApproveReplyMailAddress API +func CreateApproveReplyMailAddressRequest() (request *ApproveReplyMailAddressRequest) { + request = &ApproveReplyMailAddressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "ApproveReplyMailAddress", "", "") + return +} + +// CreateApproveReplyMailAddressResponse creates a response to parse from ApproveReplyMailAddress response +func CreateApproveReplyMailAddressResponse() (response *ApproveReplyMailAddressResponse) { + response = &ApproveReplyMailAddressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/approve_sms_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/approve_sms_template.go new file mode 100644 index 0000000..65f5400 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/approve_sms_template.go @@ -0,0 +1,107 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ApproveSmsTemplate invokes the dm.ApproveSmsTemplate API synchronously +// api document: https://help.aliyun.com/api/dm/approvesmstemplate.html +func (client *Client) ApproveSmsTemplate(request *ApproveSmsTemplateRequest) (response *ApproveSmsTemplateResponse, err error) { + response = CreateApproveSmsTemplateResponse() + err = client.DoAction(request, response) + return +} + +// ApproveSmsTemplateWithChan invokes the dm.ApproveSmsTemplate API asynchronously +// api document: https://help.aliyun.com/api/dm/approvesmstemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ApproveSmsTemplateWithChan(request *ApproveSmsTemplateRequest) (<-chan *ApproveSmsTemplateResponse, <-chan error) { + responseChan := make(chan *ApproveSmsTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ApproveSmsTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ApproveSmsTemplateWithCallback invokes the dm.ApproveSmsTemplate API asynchronously +// api document: https://help.aliyun.com/api/dm/approvesmstemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ApproveSmsTemplateWithCallback(request *ApproveSmsTemplateRequest, callback func(response *ApproveSmsTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ApproveSmsTemplateResponse + var err error + defer close(result) + response, err = client.ApproveSmsTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ApproveSmsTemplateRequest is the request struct for api ApproveSmsTemplate +type ApproveSmsTemplateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TemplateId requests.Integer `position:"Query" name:"TemplateId"` + FromType requests.Integer `position:"Query" name:"FromType"` +} + +// ApproveSmsTemplateResponse is the response struct for api ApproveSmsTemplate +type ApproveSmsTemplateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateApproveSmsTemplateRequest creates a request to invoke ApproveSmsTemplate API +func CreateApproveSmsTemplateRequest() (request *ApproveSmsTemplateRequest) { + request = &ApproveSmsTemplateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "ApproveSmsTemplate", "", "") + return +} + +// CreateApproveSmsTemplateResponse creates a response to parse from ApproveSmsTemplate response +func CreateApproveSmsTemplateResponse() (response *ApproveSmsTemplateResponse) { + response = &ApproveSmsTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/approve_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/approve_template.go new file mode 100644 index 0000000..ea47d23 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/approve_template.go @@ -0,0 +1,107 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ApproveTemplate invokes the dm.ApproveTemplate API synchronously +// api document: https://help.aliyun.com/api/dm/approvetemplate.html +func (client *Client) ApproveTemplate(request *ApproveTemplateRequest) (response *ApproveTemplateResponse, err error) { + response = CreateApproveTemplateResponse() + err = client.DoAction(request, response) + return +} + +// ApproveTemplateWithChan invokes the dm.ApproveTemplate API asynchronously +// api document: https://help.aliyun.com/api/dm/approvetemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ApproveTemplateWithChan(request *ApproveTemplateRequest) (<-chan *ApproveTemplateResponse, <-chan error) { + responseChan := make(chan *ApproveTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ApproveTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ApproveTemplateWithCallback invokes the dm.ApproveTemplate API asynchronously +// api document: https://help.aliyun.com/api/dm/approvetemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ApproveTemplateWithCallback(request *ApproveTemplateRequest, callback func(response *ApproveTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ApproveTemplateResponse + var err error + defer close(result) + response, err = client.ApproveTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ApproveTemplateRequest is the request struct for api ApproveTemplate +type ApproveTemplateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TemplateId requests.Integer `position:"Query" name:"TemplateId"` + FromType requests.Integer `position:"Query" name:"FromType"` +} + +// ApproveTemplateResponse is the response struct for api ApproveTemplate +type ApproveTemplateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateApproveTemplateRequest creates a request to invoke ApproveTemplate API +func CreateApproveTemplateRequest() (request *ApproveTemplateRequest) { + request = &ApproveTemplateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "ApproveTemplate", "", "") + return +} + +// CreateApproveTemplateResponse creates a response to parse from ApproveTemplate response +func CreateApproveTemplateResponse() (response *ApproveTemplateResponse) { + response = &ApproveTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/batch_send_mail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/batch_send_mail.go new file mode 100644 index 0000000..ba4ef48 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/batch_send_mail.go @@ -0,0 +1,114 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// BatchSendMail invokes the dm.BatchSendMail API synchronously +// api document: https://help.aliyun.com/api/dm/batchsendmail.html +func (client *Client) BatchSendMail(request *BatchSendMailRequest) (response *BatchSendMailResponse, err error) { + response = CreateBatchSendMailResponse() + err = client.DoAction(request, response) + return +} + +// BatchSendMailWithChan invokes the dm.BatchSendMail API asynchronously +// api document: https://help.aliyun.com/api/dm/batchsendmail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BatchSendMailWithChan(request *BatchSendMailRequest) (<-chan *BatchSendMailResponse, <-chan error) { + responseChan := make(chan *BatchSendMailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BatchSendMail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BatchSendMailWithCallback invokes the dm.BatchSendMail API asynchronously +// api document: https://help.aliyun.com/api/dm/batchsendmail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BatchSendMailWithCallback(request *BatchSendMailRequest, callback func(response *BatchSendMailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BatchSendMailResponse + var err error + defer close(result) + response, err = client.BatchSendMail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BatchSendMailRequest is the request struct for api BatchSendMail +type BatchSendMailRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TemplateName string `position:"Query" name:"TemplateName"` + AccountName string `position:"Query" name:"AccountName"` + ReceiversName string `position:"Query" name:"ReceiversName"` + AddressType requests.Integer `position:"Query" name:"AddressType"` + TagName string `position:"Query" name:"TagName"` + ReplyAddress string `position:"Query" name:"ReplyAddress"` + ReplyAddressAlias string `position:"Query" name:"ReplyAddressAlias"` + ClickTrace string `position:"Query" name:"ClickTrace"` +} + +// BatchSendMailResponse is the response struct for api BatchSendMail +type BatchSendMailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + EnvId string `json:"EnvId" xml:"EnvId"` +} + +// CreateBatchSendMailRequest creates a request to invoke BatchSendMail API +func CreateBatchSendMailRequest() (request *BatchSendMailRequest) { + request = &BatchSendMailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "BatchSendMail", "", "") + return +} + +// CreateBatchSendMailResponse creates a response to parse from BatchSendMail response +func CreateBatchSendMailResponse() (response *BatchSendMailResponse) { + response = &BatchSendMailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/check_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/check_domain.go new file mode 100644 index 0000000..f72bb75 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/check_domain.go @@ -0,0 +1,106 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckDomain invokes the dm.CheckDomain API synchronously +// api document: https://help.aliyun.com/api/dm/checkdomain.html +func (client *Client) CheckDomain(request *CheckDomainRequest) (response *CheckDomainResponse, err error) { + response = CreateCheckDomainResponse() + err = client.DoAction(request, response) + return +} + +// CheckDomainWithChan invokes the dm.CheckDomain API asynchronously +// api document: https://help.aliyun.com/api/dm/checkdomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckDomainWithChan(request *CheckDomainRequest) (<-chan *CheckDomainResponse, <-chan error) { + responseChan := make(chan *CheckDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckDomainWithCallback invokes the dm.CheckDomain API asynchronously +// api document: https://help.aliyun.com/api/dm/checkdomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckDomainWithCallback(request *CheckDomainRequest, callback func(response *CheckDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckDomainResponse + var err error + defer close(result) + response, err = client.CheckDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckDomainRequest is the request struct for api CheckDomain +type CheckDomainRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DomainId requests.Integer `position:"Query" name:"DomainId"` +} + +// CheckDomainResponse is the response struct for api CheckDomain +type CheckDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCheckDomainRequest creates a request to invoke CheckDomain API +func CreateCheckDomainRequest() (request *CheckDomainRequest) { + request = &CheckDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "CheckDomain", "", "") + return +} + +// CreateCheckDomainResponse creates a response to parse from CheckDomain response +func CreateCheckDomainResponse() (response *CheckDomainResponse) { + response = &CheckDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/check_invalid_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/check_invalid_address.go new file mode 100644 index 0000000..cfe3919 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/check_invalid_address.go @@ -0,0 +1,106 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckInvalidAddress invokes the dm.CheckInvalidAddress API synchronously +// api document: https://help.aliyun.com/api/dm/checkinvalidaddress.html +func (client *Client) CheckInvalidAddress(request *CheckInvalidAddressRequest) (response *CheckInvalidAddressResponse, err error) { + response = CreateCheckInvalidAddressResponse() + err = client.DoAction(request, response) + return +} + +// CheckInvalidAddressWithChan invokes the dm.CheckInvalidAddress API asynchronously +// api document: https://help.aliyun.com/api/dm/checkinvalidaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckInvalidAddressWithChan(request *CheckInvalidAddressRequest) (<-chan *CheckInvalidAddressResponse, <-chan error) { + responseChan := make(chan *CheckInvalidAddressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckInvalidAddress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckInvalidAddressWithCallback invokes the dm.CheckInvalidAddress API asynchronously +// api document: https://help.aliyun.com/api/dm/checkinvalidaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckInvalidAddressWithCallback(request *CheckInvalidAddressRequest, callback func(response *CheckInvalidAddressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckInvalidAddressResponse + var err error + defer close(result) + response, err = client.CheckInvalidAddress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckInvalidAddressRequest is the request struct for api CheckInvalidAddress +type CheckInvalidAddressRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ToAddress string `position:"Query" name:"ToAddress"` +} + +// CheckInvalidAddressResponse is the response struct for api CheckInvalidAddress +type CheckInvalidAddressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCheckInvalidAddressRequest creates a request to invoke CheckInvalidAddress API +func CreateCheckInvalidAddressRequest() (request *CheckInvalidAddressRequest) { + request = &CheckInvalidAddressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "CheckInvalidAddress", "", "") + return +} + +// CreateCheckInvalidAddressResponse creates a response to parse from CheckInvalidAddress response +func CreateCheckInvalidAddressResponse() (response *CheckInvalidAddressResponse) { + response = &CheckInvalidAddressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/check_reply_to_mail_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/check_reply_to_mail_address.go new file mode 100644 index 0000000..e4a9879 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/check_reply_to_mail_address.go @@ -0,0 +1,108 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckReplyToMailAddress invokes the dm.CheckReplyToMailAddress API synchronously +// api document: https://help.aliyun.com/api/dm/checkreplytomailaddress.html +func (client *Client) CheckReplyToMailAddress(request *CheckReplyToMailAddressRequest) (response *CheckReplyToMailAddressResponse, err error) { + response = CreateCheckReplyToMailAddressResponse() + err = client.DoAction(request, response) + return +} + +// CheckReplyToMailAddressWithChan invokes the dm.CheckReplyToMailAddress API asynchronously +// api document: https://help.aliyun.com/api/dm/checkreplytomailaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckReplyToMailAddressWithChan(request *CheckReplyToMailAddressRequest) (<-chan *CheckReplyToMailAddressResponse, <-chan error) { + responseChan := make(chan *CheckReplyToMailAddressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckReplyToMailAddress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckReplyToMailAddressWithCallback invokes the dm.CheckReplyToMailAddress API asynchronously +// api document: https://help.aliyun.com/api/dm/checkreplytomailaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckReplyToMailAddressWithCallback(request *CheckReplyToMailAddressRequest, callback func(response *CheckReplyToMailAddressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckReplyToMailAddressResponse + var err error + defer close(result) + response, err = client.CheckReplyToMailAddress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckReplyToMailAddressRequest is the request struct for api CheckReplyToMailAddress +type CheckReplyToMailAddressRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Lang string `position:"Query" name:"Lang"` + Region string `position:"Query" name:"Region"` + MailAddressId requests.Integer `position:"Query" name:"MailAddressId"` +} + +// CheckReplyToMailAddressResponse is the response struct for api CheckReplyToMailAddress +type CheckReplyToMailAddressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCheckReplyToMailAddressRequest creates a request to invoke CheckReplyToMailAddress API +func CreateCheckReplyToMailAddressRequest() (request *CheckReplyToMailAddressRequest) { + request = &CheckReplyToMailAddressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "CheckReplyToMailAddress", "", "") + return +} + +// CreateCheckReplyToMailAddressResponse creates a response to parse from CheckReplyToMailAddress response +func CreateCheckReplyToMailAddressResponse() (response *CheckReplyToMailAddressResponse) { + response = &CheckReplyToMailAddressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/client.go new file mode 100644 index 0000000..998e5f5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/client.go @@ -0,0 +1,81 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_dayu.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_dayu.go new file mode 100644 index 0000000..490762f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_dayu.go @@ -0,0 +1,106 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateDayu invokes the dm.CreateDayu API synchronously +// api document: https://help.aliyun.com/api/dm/createdayu.html +func (client *Client) CreateDayu(request *CreateDayuRequest) (response *CreateDayuResponse, err error) { + response = CreateCreateDayuResponse() + err = client.DoAction(request, response) + return +} + +// CreateDayuWithChan invokes the dm.CreateDayu API asynchronously +// api document: https://help.aliyun.com/api/dm/createdayu.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDayuWithChan(request *CreateDayuRequest) (<-chan *CreateDayuResponse, <-chan error) { + responseChan := make(chan *CreateDayuResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateDayu(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateDayuWithCallback invokes the dm.CreateDayu API asynchronously +// api document: https://help.aliyun.com/api/dm/createdayu.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDayuWithCallback(request *CreateDayuRequest, callback func(response *CreateDayuResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateDayuResponse + var err error + defer close(result) + response, err = client.CreateDayu(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateDayuRequest is the request struct for api CreateDayu +type CreateDayuRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AccountType requests.Integer `position:"Query" name:"AccountType"` +} + +// CreateDayuResponse is the response struct for api CreateDayu +type CreateDayuResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateDayuRequest creates a request to invoke CreateDayu API +func CreateCreateDayuRequest() (request *CreateDayuRequest) { + request = &CreateDayuRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "CreateDayu", "", "") + return +} + +// CreateCreateDayuResponse creates a response to parse from CreateDayu response +func CreateCreateDayuResponse() (response *CreateDayuResponse) { + response = &CreateDayuResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_domain.go new file mode 100644 index 0000000..7741d4f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_domain.go @@ -0,0 +1,106 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateDomain invokes the dm.CreateDomain API synchronously +// api document: https://help.aliyun.com/api/dm/createdomain.html +func (client *Client) CreateDomain(request *CreateDomainRequest) (response *CreateDomainResponse, err error) { + response = CreateCreateDomainResponse() + err = client.DoAction(request, response) + return +} + +// CreateDomainWithChan invokes the dm.CreateDomain API asynchronously +// api document: https://help.aliyun.com/api/dm/createdomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDomainWithChan(request *CreateDomainRequest) (<-chan *CreateDomainResponse, <-chan error) { + responseChan := make(chan *CreateDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateDomainWithCallback invokes the dm.CreateDomain API asynchronously +// api document: https://help.aliyun.com/api/dm/createdomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDomainWithCallback(request *CreateDomainRequest, callback func(response *CreateDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateDomainResponse + var err error + defer close(result) + response, err = client.CreateDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateDomainRequest is the request struct for api CreateDomain +type CreateDomainRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DomainName string `position:"Query" name:"DomainName"` +} + +// CreateDomainResponse is the response struct for api CreateDomain +type CreateDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateDomainRequest creates a request to invoke CreateDomain API +func CreateCreateDomainRequest() (request *CreateDomainRequest) { + request = &CreateDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "CreateDomain", "", "") + return +} + +// CreateCreateDomainResponse creates a response to parse from CreateDomain response +func CreateCreateDomainResponse() (response *CreateDomainResponse) { + response = &CreateDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_mail_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_mail_address.go new file mode 100644 index 0000000..abcddd5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_mail_address.go @@ -0,0 +1,108 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateMailAddress invokes the dm.CreateMailAddress API synchronously +// api document: https://help.aliyun.com/api/dm/createmailaddress.html +func (client *Client) CreateMailAddress(request *CreateMailAddressRequest) (response *CreateMailAddressResponse, err error) { + response = CreateCreateMailAddressResponse() + err = client.DoAction(request, response) + return +} + +// CreateMailAddressWithChan invokes the dm.CreateMailAddress API asynchronously +// api document: https://help.aliyun.com/api/dm/createmailaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateMailAddressWithChan(request *CreateMailAddressRequest) (<-chan *CreateMailAddressResponse, <-chan error) { + responseChan := make(chan *CreateMailAddressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateMailAddress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateMailAddressWithCallback invokes the dm.CreateMailAddress API asynchronously +// api document: https://help.aliyun.com/api/dm/createmailaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateMailAddressWithCallback(request *CreateMailAddressRequest, callback func(response *CreateMailAddressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateMailAddressResponse + var err error + defer close(result) + response, err = client.CreateMailAddress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateMailAddressRequest is the request struct for api CreateMailAddress +type CreateMailAddressRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AccountName string `position:"Query" name:"AccountName"` + ReplyAddress string `position:"Query" name:"ReplyAddress"` + Sendtype string `position:"Query" name:"Sendtype"` +} + +// CreateMailAddressResponse is the response struct for api CreateMailAddress +type CreateMailAddressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateMailAddressRequest creates a request to invoke CreateMailAddress API +func CreateCreateMailAddressRequest() (request *CreateMailAddressRequest) { + request = &CreateMailAddressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "CreateMailAddress", "", "") + return +} + +// CreateCreateMailAddressResponse creates a response to parse from CreateMailAddress response +func CreateCreateMailAddressResponse() (response *CreateMailAddressResponse) { + response = &CreateMailAddressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_receiver.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_receiver.go new file mode 100644 index 0000000..adfdb87 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_receiver.go @@ -0,0 +1,108 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateReceiver invokes the dm.CreateReceiver API synchronously +// api document: https://help.aliyun.com/api/dm/createreceiver.html +func (client *Client) CreateReceiver(request *CreateReceiverRequest) (response *CreateReceiverResponse, err error) { + response = CreateCreateReceiverResponse() + err = client.DoAction(request, response) + return +} + +// CreateReceiverWithChan invokes the dm.CreateReceiver API asynchronously +// api document: https://help.aliyun.com/api/dm/createreceiver.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateReceiverWithChan(request *CreateReceiverRequest) (<-chan *CreateReceiverResponse, <-chan error) { + responseChan := make(chan *CreateReceiverResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateReceiver(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateReceiverWithCallback invokes the dm.CreateReceiver API asynchronously +// api document: https://help.aliyun.com/api/dm/createreceiver.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateReceiverWithCallback(request *CreateReceiverRequest, callback func(response *CreateReceiverResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateReceiverResponse + var err error + defer close(result) + response, err = client.CreateReceiver(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateReceiverRequest is the request struct for api CreateReceiver +type CreateReceiverRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ReceiversName string `position:"Query" name:"ReceiversName"` + ReceiversAlias string `position:"Query" name:"ReceiversAlias"` + Desc string `position:"Query" name:"Desc"` +} + +// CreateReceiverResponse is the response struct for api CreateReceiver +type CreateReceiverResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateReceiverRequest creates a request to invoke CreateReceiver API +func CreateCreateReceiverRequest() (request *CreateReceiverRequest) { + request = &CreateReceiverRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "CreateReceiver", "", "") + return +} + +// CreateCreateReceiverResponse creates a response to parse from CreateReceiver response +func CreateCreateReceiverResponse() (response *CreateReceiverResponse) { + response = &CreateReceiverResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_sign.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_sign.go new file mode 100644 index 0000000..bf870c9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_sign.go @@ -0,0 +1,110 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateSign invokes the dm.CreateSign API synchronously +// api document: https://help.aliyun.com/api/dm/createsign.html +func (client *Client) CreateSign(request *CreateSignRequest) (response *CreateSignResponse, err error) { + response = CreateCreateSignResponse() + err = client.DoAction(request, response) + return +} + +// CreateSignWithChan invokes the dm.CreateSign API asynchronously +// api document: https://help.aliyun.com/api/dm/createsign.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSignWithChan(request *CreateSignRequest) (<-chan *CreateSignResponse, <-chan error) { + responseChan := make(chan *CreateSignResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateSign(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateSignWithCallback invokes the dm.CreateSign API asynchronously +// api document: https://help.aliyun.com/api/dm/createsign.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSignWithCallback(request *CreateSignRequest, callback func(response *CreateSignResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateSignResponse + var err error + defer close(result) + response, err = client.CreateSign(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateSignRequest is the request struct for api CreateSign +type CreateSignRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SignName string `position:"Query" name:"SignName"` + Remark string `position:"Query" name:"Remark"` + SignType requests.Integer `position:"Query" name:"SignType"` + FileNames string `position:"Query" name:"FileNames"` + FromType requests.Integer `position:"Query" name:"FromType"` +} + +// CreateSignResponse is the response struct for api CreateSign +type CreateSignResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateSignRequest creates a request to invoke CreateSign API +func CreateCreateSignRequest() (request *CreateSignRequest) { + request = &CreateSignRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "CreateSign", "", "") + return +} + +// CreateCreateSignResponse creates a response to parse from CreateSign response +func CreateCreateSignResponse() (response *CreateSignResponse) { + response = &CreateSignResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_tag.go new file mode 100644 index 0000000..0fe80bb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_tag.go @@ -0,0 +1,106 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateTag invokes the dm.CreateTag API synchronously +// api document: https://help.aliyun.com/api/dm/createtag.html +func (client *Client) CreateTag(request *CreateTagRequest) (response *CreateTagResponse, err error) { + response = CreateCreateTagResponse() + err = client.DoAction(request, response) + return +} + +// CreateTagWithChan invokes the dm.CreateTag API asynchronously +// api document: https://help.aliyun.com/api/dm/createtag.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateTagWithChan(request *CreateTagRequest) (<-chan *CreateTagResponse, <-chan error) { + responseChan := make(chan *CreateTagResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateTag(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateTagWithCallback invokes the dm.CreateTag API asynchronously +// api document: https://help.aliyun.com/api/dm/createtag.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateTagWithCallback(request *CreateTagRequest, callback func(response *CreateTagResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateTagResponse + var err error + defer close(result) + response, err = client.CreateTag(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateTagRequest is the request struct for api CreateTag +type CreateTagRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TagName string `position:"Query" name:"TagName"` +} + +// CreateTagResponse is the response struct for api CreateTag +type CreateTagResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateTagRequest creates a request to invoke CreateTag API +func CreateCreateTagRequest() (request *CreateTagRequest) { + request = &CreateTagRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "CreateTag", "", "") + return +} + +// CreateCreateTagResponse creates a response to parse from CreateTag response +func CreateCreateTagResponse() (response *CreateTagResponse) { + response = &CreateTagResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_template.go new file mode 100644 index 0000000..41a640d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/create_template.go @@ -0,0 +1,115 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateTemplate invokes the dm.CreateTemplate API synchronously +// api document: https://help.aliyun.com/api/dm/createtemplate.html +func (client *Client) CreateTemplate(request *CreateTemplateRequest) (response *CreateTemplateResponse, err error) { + response = CreateCreateTemplateResponse() + err = client.DoAction(request, response) + return +} + +// CreateTemplateWithChan invokes the dm.CreateTemplate API asynchronously +// api document: https://help.aliyun.com/api/dm/createtemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateTemplateWithChan(request *CreateTemplateRequest) (<-chan *CreateTemplateResponse, <-chan error) { + responseChan := make(chan *CreateTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateTemplateWithCallback invokes the dm.CreateTemplate API asynchronously +// api document: https://help.aliyun.com/api/dm/createtemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateTemplateWithCallback(request *CreateTemplateRequest, callback func(response *CreateTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateTemplateResponse + var err error + defer close(result) + response, err = client.CreateTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateTemplateRequest is the request struct for api CreateTemplate +type CreateTemplateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TemplateType requests.Integer `position:"Query" name:"TemplateType"` + TemplateName string `position:"Query" name:"TemplateName"` + TemplateSubject string `position:"Query" name:"TemplateSubject"` + TemplateNickName string `position:"Query" name:"TemplateNickName"` + TemplateText string `position:"Query" name:"TemplateText"` + SmsType requests.Integer `position:"Query" name:"SmsType"` + SmsContent string `position:"Query" name:"SmsContent"` + Remark string `position:"Query" name:"Remark"` + FromType requests.Integer `position:"Query" name:"FromType"` +} + +// CreateTemplateResponse is the response struct for api CreateTemplate +type CreateTemplateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TemplateId int `json:"TemplateId" xml:"TemplateId"` +} + +// CreateCreateTemplateRequest creates a request to invoke CreateTemplate API +func CreateCreateTemplateRequest() (request *CreateTemplateRequest) { + request = &CreateTemplateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "CreateTemplate", "", "") + return +} + +// CreateCreateTemplateResponse creates a response to parse from CreateTemplate response +func CreateCreateTemplateResponse() (response *CreateTemplateResponse) { + response = &CreateTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_domain.go new file mode 100644 index 0000000..2c0c4e0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_domain.go @@ -0,0 +1,106 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 dm.DeleteDomain API synchronously +// api document: https://help.aliyun.com/api/dm/deletedomain.html +func (client *Client) DeleteDomain(request *DeleteDomainRequest) (response *DeleteDomainResponse, err error) { + response = CreateDeleteDomainResponse() + err = client.DoAction(request, response) + return +} + +// DeleteDomainWithChan invokes the dm.DeleteDomain API asynchronously +// api document: https://help.aliyun.com/api/dm/deletedomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 dm.DeleteDomain API asynchronously +// api document: https://help.aliyun.com/api/dm/deletedomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DomainId requests.Integer `position:"Query" name:"DomainId"` +} + +// DeleteDomainResponse is the response struct for api DeleteDomain +type DeleteDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteDomainRequest creates a request to invoke DeleteDomain API +func CreateDeleteDomainRequest() (request *DeleteDomainRequest) { + request = &DeleteDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "DeleteDomain", "", "") + 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/dm/delete_invalid_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_invalid_address.go new file mode 100644 index 0000000..739b7ba --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_invalid_address.go @@ -0,0 +1,106 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteInvalidAddress invokes the dm.DeleteInvalidAddress API synchronously +// api document: https://help.aliyun.com/api/dm/deleteinvalidaddress.html +func (client *Client) DeleteInvalidAddress(request *DeleteInvalidAddressRequest) (response *DeleteInvalidAddressResponse, err error) { + response = CreateDeleteInvalidAddressResponse() + err = client.DoAction(request, response) + return +} + +// DeleteInvalidAddressWithChan invokes the dm.DeleteInvalidAddress API asynchronously +// api document: https://help.aliyun.com/api/dm/deleteinvalidaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteInvalidAddressWithChan(request *DeleteInvalidAddressRequest) (<-chan *DeleteInvalidAddressResponse, <-chan error) { + responseChan := make(chan *DeleteInvalidAddressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteInvalidAddress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteInvalidAddressWithCallback invokes the dm.DeleteInvalidAddress API asynchronously +// api document: https://help.aliyun.com/api/dm/deleteinvalidaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteInvalidAddressWithCallback(request *DeleteInvalidAddressRequest, callback func(response *DeleteInvalidAddressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteInvalidAddressResponse + var err error + defer close(result) + response, err = client.DeleteInvalidAddress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteInvalidAddressRequest is the request struct for api DeleteInvalidAddress +type DeleteInvalidAddressRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ToAddress string `position:"Query" name:"ToAddress"` +} + +// DeleteInvalidAddressResponse is the response struct for api DeleteInvalidAddress +type DeleteInvalidAddressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteInvalidAddressRequest creates a request to invoke DeleteInvalidAddress API +func CreateDeleteInvalidAddressRequest() (request *DeleteInvalidAddressRequest) { + request = &DeleteInvalidAddressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "DeleteInvalidAddress", "", "") + return +} + +// CreateDeleteInvalidAddressResponse creates a response to parse from DeleteInvalidAddress response +func CreateDeleteInvalidAddressResponse() (response *DeleteInvalidAddressResponse) { + response = &DeleteInvalidAddressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_ipfilter_by_edm_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_ipfilter_by_edm_id.go new file mode 100644 index 0000000..3d1f025 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_ipfilter_by_edm_id.go @@ -0,0 +1,107 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteIpfilterByEdmId invokes the dm.DeleteIpfilterByEdmId API synchronously +// api document: https://help.aliyun.com/api/dm/deleteipfilterbyedmid.html +func (client *Client) DeleteIpfilterByEdmId(request *DeleteIpfilterByEdmIdRequest) (response *DeleteIpfilterByEdmIdResponse, err error) { + response = CreateDeleteIpfilterByEdmIdResponse() + err = client.DoAction(request, response) + return +} + +// DeleteIpfilterByEdmIdWithChan invokes the dm.DeleteIpfilterByEdmId API asynchronously +// api document: https://help.aliyun.com/api/dm/deleteipfilterbyedmid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteIpfilterByEdmIdWithChan(request *DeleteIpfilterByEdmIdRequest) (<-chan *DeleteIpfilterByEdmIdResponse, <-chan error) { + responseChan := make(chan *DeleteIpfilterByEdmIdResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteIpfilterByEdmId(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteIpfilterByEdmIdWithCallback invokes the dm.DeleteIpfilterByEdmId API asynchronously +// api document: https://help.aliyun.com/api/dm/deleteipfilterbyedmid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteIpfilterByEdmIdWithCallback(request *DeleteIpfilterByEdmIdRequest, callback func(response *DeleteIpfilterByEdmIdResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteIpfilterByEdmIdResponse + var err error + defer close(result) + response, err = client.DeleteIpfilterByEdmId(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteIpfilterByEdmIdRequest is the request struct for api DeleteIpfilterByEdmId +type DeleteIpfilterByEdmIdRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + FromType requests.Integer `position:"Query" name:"FromType"` + Id string `position:"Query" name:"Id"` +} + +// DeleteIpfilterByEdmIdResponse is the response struct for api DeleteIpfilterByEdmId +type DeleteIpfilterByEdmIdResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteIpfilterByEdmIdRequest creates a request to invoke DeleteIpfilterByEdmId API +func CreateDeleteIpfilterByEdmIdRequest() (request *DeleteIpfilterByEdmIdRequest) { + request = &DeleteIpfilterByEdmIdRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "DeleteIpfilterByEdmId", "", "") + return +} + +// CreateDeleteIpfilterByEdmIdResponse creates a response to parse from DeleteIpfilterByEdmId response +func CreateDeleteIpfilterByEdmIdResponse() (response *DeleteIpfilterByEdmIdResponse) { + response = &DeleteIpfilterByEdmIdResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_mail_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_mail_address.go new file mode 100644 index 0000000..e3b7c64 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_mail_address.go @@ -0,0 +1,106 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteMailAddress invokes the dm.DeleteMailAddress API synchronously +// api document: https://help.aliyun.com/api/dm/deletemailaddress.html +func (client *Client) DeleteMailAddress(request *DeleteMailAddressRequest) (response *DeleteMailAddressResponse, err error) { + response = CreateDeleteMailAddressResponse() + err = client.DoAction(request, response) + return +} + +// DeleteMailAddressWithChan invokes the dm.DeleteMailAddress API asynchronously +// api document: https://help.aliyun.com/api/dm/deletemailaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteMailAddressWithChan(request *DeleteMailAddressRequest) (<-chan *DeleteMailAddressResponse, <-chan error) { + responseChan := make(chan *DeleteMailAddressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteMailAddress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteMailAddressWithCallback invokes the dm.DeleteMailAddress API asynchronously +// api document: https://help.aliyun.com/api/dm/deletemailaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteMailAddressWithCallback(request *DeleteMailAddressRequest, callback func(response *DeleteMailAddressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteMailAddressResponse + var err error + defer close(result) + response, err = client.DeleteMailAddress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteMailAddressRequest is the request struct for api DeleteMailAddress +type DeleteMailAddressRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MailAddressId requests.Integer `position:"Query" name:"MailAddressId"` +} + +// DeleteMailAddressResponse is the response struct for api DeleteMailAddress +type DeleteMailAddressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteMailAddressRequest creates a request to invoke DeleteMailAddress API +func CreateDeleteMailAddressRequest() (request *DeleteMailAddressRequest) { + request = &DeleteMailAddressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "DeleteMailAddress", "", "") + return +} + +// CreateDeleteMailAddressResponse creates a response to parse from DeleteMailAddress response +func CreateDeleteMailAddressResponse() (response *DeleteMailAddressResponse) { + response = &DeleteMailAddressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_receiver.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_receiver.go new file mode 100644 index 0000000..ba9b070 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_receiver.go @@ -0,0 +1,106 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteReceiver invokes the dm.DeleteReceiver API synchronously +// api document: https://help.aliyun.com/api/dm/deletereceiver.html +func (client *Client) DeleteReceiver(request *DeleteReceiverRequest) (response *DeleteReceiverResponse, err error) { + response = CreateDeleteReceiverResponse() + err = client.DoAction(request, response) + return +} + +// DeleteReceiverWithChan invokes the dm.DeleteReceiver API asynchronously +// api document: https://help.aliyun.com/api/dm/deletereceiver.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteReceiverWithChan(request *DeleteReceiverRequest) (<-chan *DeleteReceiverResponse, <-chan error) { + responseChan := make(chan *DeleteReceiverResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteReceiver(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteReceiverWithCallback invokes the dm.DeleteReceiver API asynchronously +// api document: https://help.aliyun.com/api/dm/deletereceiver.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteReceiverWithCallback(request *DeleteReceiverRequest, callback func(response *DeleteReceiverResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteReceiverResponse + var err error + defer close(result) + response, err = client.DeleteReceiver(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteReceiverRequest is the request struct for api DeleteReceiver +type DeleteReceiverRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ReceiverId string `position:"Query" name:"ReceiverId"` +} + +// DeleteReceiverResponse is the response struct for api DeleteReceiver +type DeleteReceiverResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteReceiverRequest creates a request to invoke DeleteReceiver API +func CreateDeleteReceiverRequest() (request *DeleteReceiverRequest) { + request = &DeleteReceiverRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "DeleteReceiver", "", "") + return +} + +// CreateDeleteReceiverResponse creates a response to parse from DeleteReceiver response +func CreateDeleteReceiverResponse() (response *DeleteReceiverResponse) { + response = &DeleteReceiverResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_receiver_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_receiver_detail.go new file mode 100644 index 0000000..1cf3424 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_receiver_detail.go @@ -0,0 +1,107 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteReceiverDetail invokes the dm.DeleteReceiverDetail API synchronously +// api document: https://help.aliyun.com/api/dm/deletereceiverdetail.html +func (client *Client) DeleteReceiverDetail(request *DeleteReceiverDetailRequest) (response *DeleteReceiverDetailResponse, err error) { + response = CreateDeleteReceiverDetailResponse() + err = client.DoAction(request, response) + return +} + +// DeleteReceiverDetailWithChan invokes the dm.DeleteReceiverDetail API asynchronously +// api document: https://help.aliyun.com/api/dm/deletereceiverdetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteReceiverDetailWithChan(request *DeleteReceiverDetailRequest) (<-chan *DeleteReceiverDetailResponse, <-chan error) { + responseChan := make(chan *DeleteReceiverDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteReceiverDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteReceiverDetailWithCallback invokes the dm.DeleteReceiverDetail API asynchronously +// api document: https://help.aliyun.com/api/dm/deletereceiverdetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteReceiverDetailWithCallback(request *DeleteReceiverDetailRequest, callback func(response *DeleteReceiverDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteReceiverDetailResponse + var err error + defer close(result) + response, err = client.DeleteReceiverDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteReceiverDetailRequest is the request struct for api DeleteReceiverDetail +type DeleteReceiverDetailRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ReceiverId string `position:"Query" name:"ReceiverId"` + Email string `position:"Query" name:"Email"` +} + +// DeleteReceiverDetailResponse is the response struct for api DeleteReceiverDetail +type DeleteReceiverDetailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteReceiverDetailRequest creates a request to invoke DeleteReceiverDetail API +func CreateDeleteReceiverDetailRequest() (request *DeleteReceiverDetailRequest) { + request = &DeleteReceiverDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "DeleteReceiverDetail", "", "") + return +} + +// CreateDeleteReceiverDetailResponse creates a response to parse from DeleteReceiverDetail response +func CreateDeleteReceiverDetailResponse() (response *DeleteReceiverDetailResponse) { + response = &DeleteReceiverDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_sign.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_sign.go new file mode 100644 index 0000000..217bb78 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_sign.go @@ -0,0 +1,107 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteSign invokes the dm.DeleteSign API synchronously +// api document: https://help.aliyun.com/api/dm/deletesign.html +func (client *Client) DeleteSign(request *DeleteSignRequest) (response *DeleteSignResponse, err error) { + response = CreateDeleteSignResponse() + err = client.DoAction(request, response) + return +} + +// DeleteSignWithChan invokes the dm.DeleteSign API asynchronously +// api document: https://help.aliyun.com/api/dm/deletesign.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSignWithChan(request *DeleteSignRequest) (<-chan *DeleteSignResponse, <-chan error) { + responseChan := make(chan *DeleteSignResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteSign(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteSignWithCallback invokes the dm.DeleteSign API asynchronously +// api document: https://help.aliyun.com/api/dm/deletesign.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSignWithCallback(request *DeleteSignRequest, callback func(response *DeleteSignResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteSignResponse + var err error + defer close(result) + response, err = client.DeleteSign(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteSignRequest is the request struct for api DeleteSign +type DeleteSignRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SignId requests.Integer `position:"Query" name:"SignId"` + FromType requests.Integer `position:"Query" name:"FromType"` +} + +// DeleteSignResponse is the response struct for api DeleteSign +type DeleteSignResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteSignRequest creates a request to invoke DeleteSign API +func CreateDeleteSignRequest() (request *DeleteSignRequest) { + request = &DeleteSignRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "DeleteSign", "", "") + return +} + +// CreateDeleteSignResponse creates a response to parse from DeleteSign response +func CreateDeleteSignResponse() (response *DeleteSignResponse) { + response = &DeleteSignResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_tag.go new file mode 100644 index 0000000..ee62017 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_tag.go @@ -0,0 +1,106 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteTag invokes the dm.DeleteTag API synchronously +// api document: https://help.aliyun.com/api/dm/deletetag.html +func (client *Client) DeleteTag(request *DeleteTagRequest) (response *DeleteTagResponse, err error) { + response = CreateDeleteTagResponse() + err = client.DoAction(request, response) + return +} + +// DeleteTagWithChan invokes the dm.DeleteTag API asynchronously +// api document: https://help.aliyun.com/api/dm/deletetag.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteTagWithChan(request *DeleteTagRequest) (<-chan *DeleteTagResponse, <-chan error) { + responseChan := make(chan *DeleteTagResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteTag(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteTagWithCallback invokes the dm.DeleteTag API asynchronously +// api document: https://help.aliyun.com/api/dm/deletetag.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteTagWithCallback(request *DeleteTagRequest, callback func(response *DeleteTagResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteTagResponse + var err error + defer close(result) + response, err = client.DeleteTag(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteTagRequest is the request struct for api DeleteTag +type DeleteTagRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TagId requests.Integer `position:"Query" name:"TagId"` +} + +// DeleteTagResponse is the response struct for api DeleteTag +type DeleteTagResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteTagRequest creates a request to invoke DeleteTag API +func CreateDeleteTagRequest() (request *DeleteTagRequest) { + request = &DeleteTagRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "DeleteTag", "", "") + return +} + +// CreateDeleteTagResponse creates a response to parse from DeleteTag response +func CreateDeleteTagResponse() (response *DeleteTagResponse) { + response = &DeleteTagResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_template.go new file mode 100644 index 0000000..6f2f23b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/delete_template.go @@ -0,0 +1,107 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteTemplate invokes the dm.DeleteTemplate API synchronously +// api document: https://help.aliyun.com/api/dm/deletetemplate.html +func (client *Client) DeleteTemplate(request *DeleteTemplateRequest) (response *DeleteTemplateResponse, err error) { + response = CreateDeleteTemplateResponse() + err = client.DoAction(request, response) + return +} + +// DeleteTemplateWithChan invokes the dm.DeleteTemplate API asynchronously +// api document: https://help.aliyun.com/api/dm/deletetemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteTemplateWithChan(request *DeleteTemplateRequest) (<-chan *DeleteTemplateResponse, <-chan error) { + responseChan := make(chan *DeleteTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteTemplateWithCallback invokes the dm.DeleteTemplate API asynchronously +// api document: https://help.aliyun.com/api/dm/deletetemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteTemplateWithCallback(request *DeleteTemplateRequest, callback func(response *DeleteTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteTemplateResponse + var err error + defer close(result) + response, err = client.DeleteTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteTemplateRequest is the request struct for api DeleteTemplate +type DeleteTemplateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TemplateId requests.Integer `position:"Query" name:"TemplateId"` + FromType requests.Integer `position:"Query" name:"FromType"` +} + +// DeleteTemplateResponse is the response struct for api DeleteTemplate +type DeleteTemplateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteTemplateRequest creates a request to invoke DeleteTemplate API +func CreateDeleteTemplateRequest() (request *DeleteTemplateRequest) { + request = &DeleteTemplateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "DeleteTemplate", "", "") + return +} + +// CreateDeleteTemplateResponse creates a response to parse from DeleteTemplate response +func CreateDeleteTemplateResponse() (response *DeleteTemplateResponse) { + response = &DeleteTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/desc_account_summary.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/desc_account_summary.go new file mode 100644 index 0000000..6657977 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/desc_account_summary.go @@ -0,0 +1,120 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescAccountSummary invokes the dm.DescAccountSummary API synchronously +// api document: https://help.aliyun.com/api/dm/descaccountsummary.html +func (client *Client) DescAccountSummary(request *DescAccountSummaryRequest) (response *DescAccountSummaryResponse, err error) { + response = CreateDescAccountSummaryResponse() + err = client.DoAction(request, response) + return +} + +// DescAccountSummaryWithChan invokes the dm.DescAccountSummary API asynchronously +// api document: https://help.aliyun.com/api/dm/descaccountsummary.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescAccountSummaryWithChan(request *DescAccountSummaryRequest) (<-chan *DescAccountSummaryResponse, <-chan error) { + responseChan := make(chan *DescAccountSummaryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescAccountSummary(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescAccountSummaryWithCallback invokes the dm.DescAccountSummary API asynchronously +// api document: https://help.aliyun.com/api/dm/descaccountsummary.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescAccountSummaryWithCallback(request *DescAccountSummaryRequest, callback func(response *DescAccountSummaryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescAccountSummaryResponse + var err error + defer close(result) + response, err = client.DescAccountSummary(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescAccountSummaryRequest is the request struct for api DescAccountSummary +type DescAccountSummaryRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` +} + +// DescAccountSummaryResponse is the response struct for api DescAccountSummary +type DescAccountSummaryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + UserStatus int `json:"UserStatus" xml:"UserStatus"` + QuotaLevel int `json:"QuotaLevel" xml:"QuotaLevel"` + MaxQuotaLevel int `json:"MaxQuotaLevel" xml:"MaxQuotaLevel"` + DailyQuota int `json:"DailyQuota" xml:"DailyQuota"` + MonthQuota int `json:"MonthQuota" xml:"MonthQuota"` + Tags int `json:"Tags" xml:"Tags"` + Domains int `json:"Domains" xml:"Domains"` + MailAddresses int `json:"MailAddresses" xml:"MailAddresses"` + Receivers int `json:"Receivers" xml:"Receivers"` + Templates int `json:"Templates" xml:"Templates"` + DayuStatus int `json:"DayuStatus" xml:"DayuStatus"` + SmsTemplates int `json:"SmsTemplates" xml:"SmsTemplates"` + SmsRecord int `json:"SmsRecord" xml:"SmsRecord"` + SmsSign int `json:"SmsSign" xml:"SmsSign"` + EnableTimes int `json:"EnableTimes" xml:"EnableTimes"` +} + +// CreateDescAccountSummaryRequest creates a request to invoke DescAccountSummary API +func CreateDescAccountSummaryRequest() (request *DescAccountSummaryRequest) { + request = &DescAccountSummaryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "DescAccountSummary", "", "") + return +} + +// CreateDescAccountSummaryResponse creates a response to parse from DescAccountSummary response +func CreateDescAccountSummaryResponse() (response *DescAccountSummaryResponse) { + response = &DescAccountSummaryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/desc_account_summary2.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/desc_account_summary2.go new file mode 100644 index 0000000..ebd25d5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/desc_account_summary2.go @@ -0,0 +1,109 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescAccountSummary2 invokes the dm.DescAccountSummary2 API synchronously +// api document: https://help.aliyun.com/api/dm/descaccountsummary2.html +func (client *Client) DescAccountSummary2(request *DescAccountSummary2Request) (response *DescAccountSummary2Response, err error) { + response = CreateDescAccountSummary2Response() + err = client.DoAction(request, response) + return +} + +// DescAccountSummary2WithChan invokes the dm.DescAccountSummary2 API asynchronously +// api document: https://help.aliyun.com/api/dm/descaccountsummary2.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescAccountSummary2WithChan(request *DescAccountSummary2Request) (<-chan *DescAccountSummary2Response, <-chan error) { + responseChan := make(chan *DescAccountSummary2Response, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescAccountSummary2(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescAccountSummary2WithCallback invokes the dm.DescAccountSummary2 API asynchronously +// api document: https://help.aliyun.com/api/dm/descaccountsummary2.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescAccountSummary2WithCallback(request *DescAccountSummary2Request, callback func(response *DescAccountSummary2Response, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescAccountSummary2Response + var err error + defer close(result) + response, err = client.DescAccountSummary2(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescAccountSummary2Request is the request struct for api DescAccountSummary2 +type DescAccountSummary2Request struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + FromType requests.Integer `position:"Query" name:"FromType"` +} + +// DescAccountSummary2Response is the response struct for api DescAccountSummary2 +type DescAccountSummary2Response struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MnsMigrating int `json:"MnsMigrating" xml:"MnsMigrating"` + MnsForceMigrating int `json:"MnsForceMigrating" xml:"MnsForceMigrating"` + MnsBag int `json:"MnsBag" xml:"MnsBag"` +} + +// CreateDescAccountSummary2Request creates a request to invoke DescAccountSummary2 API +func CreateDescAccountSummary2Request() (request *DescAccountSummary2Request) { + request = &DescAccountSummary2Request{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "DescAccountSummary2", "", "") + return +} + +// CreateDescAccountSummary2Response creates a response to parse from DescAccountSummary2 response +func CreateDescAccountSummary2Response() (response *DescAccountSummary2Response) { + response = &DescAccountSummary2Response{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/desc_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/desc_domain.go new file mode 100644 index 0000000..417de9b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/desc_domain.go @@ -0,0 +1,121 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescDomain invokes the dm.DescDomain API synchronously +// api document: https://help.aliyun.com/api/dm/descdomain.html +func (client *Client) DescDomain(request *DescDomainRequest) (response *DescDomainResponse, err error) { + response = CreateDescDomainResponse() + err = client.DoAction(request, response) + return +} + +// DescDomainWithChan invokes the dm.DescDomain API asynchronously +// api document: https://help.aliyun.com/api/dm/descdomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescDomainWithChan(request *DescDomainRequest) (<-chan *DescDomainResponse, <-chan error) { + responseChan := make(chan *DescDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescDomainWithCallback invokes the dm.DescDomain API asynchronously +// api document: https://help.aliyun.com/api/dm/descdomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescDomainWithCallback(request *DescDomainRequest, callback func(response *DescDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescDomainResponse + var err error + defer close(result) + response, err = client.DescDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescDomainRequest is the request struct for api DescDomain +type DescDomainRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DomainId requests.Integer `position:"Query" name:"DomainId"` +} + +// DescDomainResponse is the response struct for api DescDomain +type DescDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainId string `json:"DomainId" xml:"DomainId"` + DomainName string `json:"DomainName" xml:"DomainName"` + DomainType string `json:"DomainType" xml:"DomainType"` + DomainStatus string `json:"DomainStatus" xml:"DomainStatus"` + CnameRecord string `json:"CnameRecord" xml:"CnameRecord"` + CnameConfirmStatus string `json:"CnameConfirmStatus" xml:"CnameConfirmStatus"` + SpfAuthStatus string `json:"SpfAuthStatus" xml:"SpfAuthStatus"` + MxAuthStatus string `json:"MxAuthStatus" xml:"MxAuthStatus"` + DefaultDomain string `json:"DefaultDomain" xml:"DefaultDomain"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + CnameAuthStatus string `json:"CnameAuthStatus" xml:"CnameAuthStatus"` + IcpStatus string `json:"IcpStatus" xml:"IcpStatus"` + SpfRecord string `json:"SpfRecord" xml:"SpfRecord"` + MxRecord string `json:"MxRecord" xml:"MxRecord"` + TracefRecord string `json:"TracefRecord" xml:"TracefRecord"` +} + +// CreateDescDomainRequest creates a request to invoke DescDomain API +func CreateDescDomainRequest() (request *DescDomainRequest) { + request = &DescDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "DescDomain", "", "") + return +} + +// CreateDescDomainResponse creates a response to parse from DescDomain response +func CreateDescDomainResponse() (response *DescDomainResponse) { + response = &DescDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/desc_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/desc_template.go new file mode 100644 index 0000000..c2f29d0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/desc_template.go @@ -0,0 +1,117 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescTemplate invokes the dm.DescTemplate API synchronously +// api document: https://help.aliyun.com/api/dm/desctemplate.html +func (client *Client) DescTemplate(request *DescTemplateRequest) (response *DescTemplateResponse, err error) { + response = CreateDescTemplateResponse() + err = client.DoAction(request, response) + return +} + +// DescTemplateWithChan invokes the dm.DescTemplate API asynchronously +// api document: https://help.aliyun.com/api/dm/desctemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescTemplateWithChan(request *DescTemplateRequest) (<-chan *DescTemplateResponse, <-chan error) { + responseChan := make(chan *DescTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescTemplateWithCallback invokes the dm.DescTemplate API asynchronously +// api document: https://help.aliyun.com/api/dm/desctemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescTemplateWithCallback(request *DescTemplateRequest, callback func(response *DescTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescTemplateResponse + var err error + defer close(result) + response, err = client.DescTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescTemplateRequest is the request struct for api DescTemplate +type DescTemplateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TemplateId requests.Integer `position:"Query" name:"TemplateId"` + FromType requests.Integer `position:"Query" name:"FromType"` +} + +// DescTemplateResponse is the response struct for api DescTemplate +type DescTemplateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TemplateName string `json:"TemplateName" xml:"TemplateName"` + TemplateSubject string `json:"TemplateSubject" xml:"TemplateSubject"` + TemplateNickName string `json:"TemplateNickName" xml:"TemplateNickName"` + TemplateStatus string `json:"TemplateStatus" xml:"TemplateStatus"` + TemplateType string `json:"TemplateType" xml:"TemplateType"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TemplateText string `json:"TemplateText" xml:"TemplateText"` + SmsContent string `json:"SmsContent" xml:"SmsContent"` + SmsType string `json:"SmsType" xml:"SmsType"` + Remark string `json:"Remark" xml:"Remark"` +} + +// CreateDescTemplateRequest creates a request to invoke DescTemplate API +func CreateDescTemplateRequest() (request *DescTemplateRequest) { + request = &DescTemplateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "DescTemplate", "", "") + return +} + +// CreateDescTemplateResponse creates a response to parse from DescTemplate response +func CreateDescTemplateResponse() (response *DescTemplateResponse) { + response = &DescTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/enable_account.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/enable_account.go new file mode 100644 index 0000000..dbaffa3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/enable_account.go @@ -0,0 +1,105 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EnableAccount invokes the dm.EnableAccount API synchronously +// api document: https://help.aliyun.com/api/dm/enableaccount.html +func (client *Client) EnableAccount(request *EnableAccountRequest) (response *EnableAccountResponse, err error) { + response = CreateEnableAccountResponse() + err = client.DoAction(request, response) + return +} + +// EnableAccountWithChan invokes the dm.EnableAccount API asynchronously +// api document: https://help.aliyun.com/api/dm/enableaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnableAccountWithChan(request *EnableAccountRequest) (<-chan *EnableAccountResponse, <-chan error) { + responseChan := make(chan *EnableAccountResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EnableAccount(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EnableAccountWithCallback invokes the dm.EnableAccount API asynchronously +// api document: https://help.aliyun.com/api/dm/enableaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnableAccountWithCallback(request *EnableAccountRequest, callback func(response *EnableAccountResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EnableAccountResponse + var err error + defer close(result) + response, err = client.EnableAccount(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EnableAccountRequest is the request struct for api EnableAccount +type EnableAccountRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` +} + +// EnableAccountResponse is the response struct for api EnableAccount +type EnableAccountResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateEnableAccountRequest creates a request to invoke EnableAccount API +func CreateEnableAccountRequest() (request *EnableAccountRequest) { + request = &EnableAccountRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "EnableAccount", "", "") + return +} + +// CreateEnableAccountResponse creates a response to parse from EnableAccount response +func CreateEnableAccountResponse() (response *EnableAccountResponse) { + response = &EnableAccountResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_account_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_account_list.go new file mode 100644 index 0000000..977c9fe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_account_list.go @@ -0,0 +1,115 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetAccountList invokes the dm.GetAccountList API synchronously +// api document: https://help.aliyun.com/api/dm/getaccountlist.html +func (client *Client) GetAccountList(request *GetAccountListRequest) (response *GetAccountListResponse, err error) { + response = CreateGetAccountListResponse() + err = client.DoAction(request, response) + return +} + +// GetAccountListWithChan invokes the dm.GetAccountList API asynchronously +// api document: https://help.aliyun.com/api/dm/getaccountlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetAccountListWithChan(request *GetAccountListRequest) (<-chan *GetAccountListResponse, <-chan error) { + responseChan := make(chan *GetAccountListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetAccountList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetAccountListWithCallback invokes the dm.GetAccountList API asynchronously +// api document: https://help.aliyun.com/api/dm/getaccountlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetAccountListWithCallback(request *GetAccountListRequest, callback func(response *GetAccountListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetAccountListResponse + var err error + defer close(result) + response, err = client.GetAccountList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetAccountListRequest is the request struct for api GetAccountList +type GetAccountListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Total string `position:"Query" name:"Total"` + Offset string `position:"Query" name:"Offset"` + PageSize string `position:"Query" name:"PageSize"` + OffsetCreateTime string `position:"Query" name:"OffsetCreateTime"` + OffsetCreateTimeDesc string `position:"Query" name:"OffsetCreateTimeDesc"` + PageNumber string `position:"Query" name:"PageNumber"` +} + +// GetAccountListResponse is the response struct for api GetAccountList +type GetAccountListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Total int `json:"Total" xml:"Total"` + PageNo int `json:"PageNo" xml:"PageNo"` + PageSize int `json:"PageSize" xml:"PageSize"` + Data DataInGetAccountList `json:"data" xml:"data"` +} + +// CreateGetAccountListRequest creates a request to invoke GetAccountList API +func CreateGetAccountListRequest() (request *GetAccountListRequest) { + request = &GetAccountListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "GetAccountList", "", "") + return +} + +// CreateGetAccountListResponse creates a response to parse from GetAccountList response +func CreateGetAccountListResponse() (response *GetAccountListResponse) { + response = &GetAccountListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_ip_protection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_ip_protection.go new file mode 100644 index 0000000..da8442d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_ip_protection.go @@ -0,0 +1,106 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetIpProtection invokes the dm.GetIpProtection API synchronously +// api document: https://help.aliyun.com/api/dm/getipprotection.html +func (client *Client) GetIpProtection(request *GetIpProtectionRequest) (response *GetIpProtectionResponse, err error) { + response = CreateGetIpProtectionResponse() + err = client.DoAction(request, response) + return +} + +// GetIpProtectionWithChan invokes the dm.GetIpProtection API asynchronously +// api document: https://help.aliyun.com/api/dm/getipprotection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetIpProtectionWithChan(request *GetIpProtectionRequest) (<-chan *GetIpProtectionResponse, <-chan error) { + responseChan := make(chan *GetIpProtectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetIpProtection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetIpProtectionWithCallback invokes the dm.GetIpProtection API asynchronously +// api document: https://help.aliyun.com/api/dm/getipprotection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetIpProtectionWithCallback(request *GetIpProtectionRequest, callback func(response *GetIpProtectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetIpProtectionResponse + var err error + defer close(result) + response, err = client.GetIpProtection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetIpProtectionRequest is the request struct for api GetIpProtection +type GetIpProtectionRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` +} + +// GetIpProtectionResponse is the response struct for api GetIpProtection +type GetIpProtectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + IpProtection string `json:"IpProtection" xml:"IpProtection"` +} + +// CreateGetIpProtectionRequest creates a request to invoke GetIpProtection API +func CreateGetIpProtectionRequest() (request *GetIpProtectionRequest) { + request = &GetIpProtectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "GetIpProtection", "", "") + return +} + +// CreateGetIpProtectionResponse creates a response to parse from GetIpProtection response +func CreateGetIpProtectionResponse() (response *GetIpProtectionResponse) { + response = &GetIpProtectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_ipfilter_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_ipfilter_list.go new file mode 100644 index 0000000..e306197 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_ipfilter_list.go @@ -0,0 +1,109 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetIpfilterList invokes the dm.GetIpfilterList API synchronously +// api document: https://help.aliyun.com/api/dm/getipfilterlist.html +func (client *Client) GetIpfilterList(request *GetIpfilterListRequest) (response *GetIpfilterListResponse, err error) { + response = CreateGetIpfilterListResponse() + err = client.DoAction(request, response) + return +} + +// GetIpfilterListWithChan invokes the dm.GetIpfilterList API asynchronously +// api document: https://help.aliyun.com/api/dm/getipfilterlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetIpfilterListWithChan(request *GetIpfilterListRequest) (<-chan *GetIpfilterListResponse, <-chan error) { + responseChan := make(chan *GetIpfilterListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetIpfilterList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetIpfilterListWithCallback invokes the dm.GetIpfilterList API asynchronously +// api document: https://help.aliyun.com/api/dm/getipfilterlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetIpfilterListWithCallback(request *GetIpfilterListRequest, callback func(response *GetIpfilterListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetIpfilterListResponse + var err error + defer close(result) + response, err = client.GetIpfilterList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetIpfilterListRequest is the request struct for api GetIpfilterList +type GetIpfilterListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` +} + +// GetIpfilterListResponse is the response struct for api GetIpfilterList +type GetIpfilterListResponse 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"` + Data DataInGetIpfilterList `json:"data" xml:"data"` +} + +// CreateGetIpfilterListRequest creates a request to invoke GetIpfilterList API +func CreateGetIpfilterListRequest() (request *GetIpfilterListRequest) { + request = &GetIpfilterListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "GetIpfilterList", "", "") + return +} + +// CreateGetIpfilterListResponse creates a response to parse from GetIpfilterList response +func CreateGetIpfilterListResponse() (response *GetIpfilterListResponse) { + response = &GetIpfilterListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_region_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_region_list.go new file mode 100644 index 0000000..19744b7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_region_list.go @@ -0,0 +1,115 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetRegionList invokes the dm.GetRegionList API synchronously +// api document: https://help.aliyun.com/api/dm/getregionlist.html +func (client *Client) GetRegionList(request *GetRegionListRequest) (response *GetRegionListResponse, err error) { + response = CreateGetRegionListResponse() + err = client.DoAction(request, response) + return +} + +// GetRegionListWithChan invokes the dm.GetRegionList API asynchronously +// api document: https://help.aliyun.com/api/dm/getregionlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetRegionListWithChan(request *GetRegionListRequest) (<-chan *GetRegionListResponse, <-chan error) { + responseChan := make(chan *GetRegionListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetRegionList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetRegionListWithCallback invokes the dm.GetRegionList API asynchronously +// api document: https://help.aliyun.com/api/dm/getregionlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetRegionListWithCallback(request *GetRegionListRequest, callback func(response *GetRegionListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetRegionListResponse + var err error + defer close(result) + response, err = client.GetRegionList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetRegionListRequest is the request struct for api GetRegionList +type GetRegionListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Total string `position:"Query" name:"Total"` + Offset string `position:"Query" name:"Offset"` + PageSize string `position:"Query" name:"PageSize"` + OffsetCreateTime string `position:"Query" name:"OffsetCreateTime"` + OffsetCreateTimeDesc string `position:"Query" name:"OffsetCreateTimeDesc"` + PageNumber string `position:"Query" name:"PageNumber"` +} + +// GetRegionListResponse is the response struct for api GetRegionList +type GetRegionListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Total int `json:"Total" xml:"Total"` + PageNo int `json:"PageNo" xml:"PageNo"` + PageSize int `json:"PageSize" xml:"PageSize"` + Data DataInGetRegionList `json:"data" xml:"data"` +} + +// CreateGetRegionListRequest creates a request to invoke GetRegionList API +func CreateGetRegionListRequest() (request *GetRegionListRequest) { + request = &GetRegionListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "GetRegionList", "", "") + return +} + +// CreateGetRegionListResponse creates a response to parse from GetRegionList response +func CreateGetRegionListResponse() (response *GetRegionListResponse) { + response = &GetRegionListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_sender_address_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_sender_address_list.go new file mode 100644 index 0000000..f373316 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_sender_address_list.go @@ -0,0 +1,115 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetSenderAddressList invokes the dm.GetSenderAddressList API synchronously +// api document: https://help.aliyun.com/api/dm/getsenderaddresslist.html +func (client *Client) GetSenderAddressList(request *GetSenderAddressListRequest) (response *GetSenderAddressListResponse, err error) { + response = CreateGetSenderAddressListResponse() + err = client.DoAction(request, response) + return +} + +// GetSenderAddressListWithChan invokes the dm.GetSenderAddressList API asynchronously +// api document: https://help.aliyun.com/api/dm/getsenderaddresslist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetSenderAddressListWithChan(request *GetSenderAddressListRequest) (<-chan *GetSenderAddressListResponse, <-chan error) { + responseChan := make(chan *GetSenderAddressListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetSenderAddressList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetSenderAddressListWithCallback invokes the dm.GetSenderAddressList API asynchronously +// api document: https://help.aliyun.com/api/dm/getsenderaddresslist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetSenderAddressListWithCallback(request *GetSenderAddressListRequest, callback func(response *GetSenderAddressListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetSenderAddressListResponse + var err error + defer close(result) + response, err = client.GetSenderAddressList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetSenderAddressListRequest is the request struct for api GetSenderAddressList +type GetSenderAddressListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Total string `position:"Query" name:"Total"` + Offset string `position:"Query" name:"Offset"` + PageSize string `position:"Query" name:"PageSize"` + PageNo string `position:"Query" name:"PageNo"` + Keyword string `position:"Query" name:"Keyword"` + NotifyUrl string `position:"Query" name:"NotifyUrl"` +} + +// GetSenderAddressListResponse is the response struct for api GetSenderAddressList +type GetSenderAddressListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Total int `json:"Total" xml:"Total"` + PageNo int `json:"PageNo" xml:"PageNo"` + PageSize int `json:"PageSize" xml:"PageSize"` + Data DataInGetSenderAddressList `json:"data" xml:"data"` +} + +// CreateGetSenderAddressListRequest creates a request to invoke GetSenderAddressList API +func CreateGetSenderAddressListRequest() (request *GetSenderAddressListRequest) { + request = &GetSenderAddressListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "GetSenderAddressList", "", "") + return +} + +// CreateGetSenderAddressListResponse creates a response to parse from GetSenderAddressList response +func CreateGetSenderAddressListResponse() (response *GetSenderAddressListResponse) { + response = &GetSenderAddressListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_track_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_track_list.go new file mode 100644 index 0000000..981eddc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/get_track_list.go @@ -0,0 +1,119 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetTrackList invokes the dm.GetTrackList API synchronously +// api document: https://help.aliyun.com/api/dm/gettracklist.html +func (client *Client) GetTrackList(request *GetTrackListRequest) (response *GetTrackListResponse, err error) { + response = CreateGetTrackListResponse() + err = client.DoAction(request, response) + return +} + +// GetTrackListWithChan invokes the dm.GetTrackList API asynchronously +// api document: https://help.aliyun.com/api/dm/gettracklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetTrackListWithChan(request *GetTrackListRequest) (<-chan *GetTrackListResponse, <-chan error) { + responseChan := make(chan *GetTrackListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetTrackList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetTrackListWithCallback invokes the dm.GetTrackList API asynchronously +// api document: https://help.aliyun.com/api/dm/gettracklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetTrackListWithCallback(request *GetTrackListRequest, callback func(response *GetTrackListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetTrackListResponse + var err error + defer close(result) + response, err = client.GetTrackList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetTrackListRequest is the request struct for api GetTrackList +type GetTrackListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + Total string `position:"Query" name:"Total"` + Offset string `position:"Query" name:"Offset"` + PageSize string `position:"Query" name:"PageSize"` + OffsetCreateTime string `position:"Query" name:"OffsetCreateTime"` + OffsetCreateTimeDesc string `position:"Query" name:"OffsetCreateTimeDesc"` + PageNumber string `position:"Query" name:"PageNumber"` +} + +// GetTrackListResponse is the response struct for api GetTrackList +type GetTrackListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Total int `json:"Total" xml:"Total"` + PageNo int `json:"PageNo" xml:"PageNo"` + PageSize int `json:"PageSize" xml:"PageSize"` + OffsetCreateTime string `json:"OffsetCreateTime" xml:"OffsetCreateTime"` + OffsetCreateTimeDesc string `json:"OffsetCreateTimeDesc" xml:"OffsetCreateTimeDesc"` + Data DataInGetTrackList `json:"data" xml:"data"` +} + +// CreateGetTrackListRequest creates a request to invoke GetTrackList API +func CreateGetTrackListRequest() (request *GetTrackListRequest) { + request = &GetTrackListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "GetTrackList", "", "") + return +} + +// CreateGetTrackListResponse creates a response to parse from GetTrackList response +func CreateGetTrackListResponse() (response *GetTrackListResponse) { + response = &GetTrackListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/migrate_market.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/migrate_market.go new file mode 100644 index 0000000..f64f7ff --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/migrate_market.go @@ -0,0 +1,107 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// MigrateMarket invokes the dm.MigrateMarket API synchronously +// api document: https://help.aliyun.com/api/dm/migratemarket.html +func (client *Client) MigrateMarket(request *MigrateMarketRequest) (response *MigrateMarketResponse, err error) { + response = CreateMigrateMarketResponse() + err = client.DoAction(request, response) + return +} + +// MigrateMarketWithChan invokes the dm.MigrateMarket API asynchronously +// api document: https://help.aliyun.com/api/dm/migratemarket.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) MigrateMarketWithChan(request *MigrateMarketRequest) (<-chan *MigrateMarketResponse, <-chan error) { + responseChan := make(chan *MigrateMarketResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.MigrateMarket(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// MigrateMarketWithCallback invokes the dm.MigrateMarket API asynchronously +// api document: https://help.aliyun.com/api/dm/migratemarket.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) MigrateMarketWithCallback(request *MigrateMarketRequest, callback func(response *MigrateMarketResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *MigrateMarketResponse + var err error + defer close(result) + response, err = client.MigrateMarket(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// MigrateMarketRequest is the request struct for api MigrateMarket +type MigrateMarketRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Version string `position:"Query" name:"Version"` + FromType requests.Integer `position:"Query" name:"FromType"` +} + +// MigrateMarketResponse is the response struct for api MigrateMarket +type MigrateMarketResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateMigrateMarketRequest creates a request to invoke MigrateMarket API +func CreateMigrateMarketRequest() (request *MigrateMarketRequest) { + request = &MigrateMarketRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "MigrateMarket", "", "") + return +} + +// CreateMigrateMarketResponse creates a response to parse from MigrateMarket response +func CreateMigrateMarketResponse() (response *MigrateMarketResponse) { + response = &MigrateMarketResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/modify_account_notification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/modify_account_notification.go new file mode 100644 index 0000000..96c8458 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/modify_account_notification.go @@ -0,0 +1,107 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyAccountNotification invokes the dm.ModifyAccountNotification API synchronously +// api document: https://help.aliyun.com/api/dm/modifyaccountnotification.html +func (client *Client) ModifyAccountNotification(request *ModifyAccountNotificationRequest) (response *ModifyAccountNotificationResponse, err error) { + response = CreateModifyAccountNotificationResponse() + err = client.DoAction(request, response) + return +} + +// ModifyAccountNotificationWithChan invokes the dm.ModifyAccountNotification API asynchronously +// api document: https://help.aliyun.com/api/dm/modifyaccountnotification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyAccountNotificationWithChan(request *ModifyAccountNotificationRequest) (<-chan *ModifyAccountNotificationResponse, <-chan error) { + responseChan := make(chan *ModifyAccountNotificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyAccountNotification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyAccountNotificationWithCallback invokes the dm.ModifyAccountNotification API asynchronously +// api document: https://help.aliyun.com/api/dm/modifyaccountnotification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyAccountNotificationWithCallback(request *ModifyAccountNotificationRequest, callback func(response *ModifyAccountNotificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyAccountNotificationResponse + var err error + defer close(result) + response, err = client.ModifyAccountNotification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyAccountNotificationRequest is the request struct for api ModifyAccountNotification +type ModifyAccountNotificationRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Region string `position:"Query" name:"Region"` + Status string `position:"Query" name:"Status"` +} + +// ModifyAccountNotificationResponse is the response struct for api ModifyAccountNotification +type ModifyAccountNotificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyAccountNotificationRequest creates a request to invoke ModifyAccountNotification API +func CreateModifyAccountNotificationRequest() (request *ModifyAccountNotificationRequest) { + request = &ModifyAccountNotificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "ModifyAccountNotification", "", "") + return +} + +// CreateModifyAccountNotificationResponse creates a response to parse from ModifyAccountNotification response +func CreateModifyAccountNotificationResponse() (response *ModifyAccountNotificationResponse) { + response = &ModifyAccountNotificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/modify_mail_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/modify_mail_address.go new file mode 100644 index 0000000..4791355 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/modify_mail_address.go @@ -0,0 +1,108 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyMailAddress invokes the dm.ModifyMailAddress API synchronously +// api document: https://help.aliyun.com/api/dm/modifymailaddress.html +func (client *Client) ModifyMailAddress(request *ModifyMailAddressRequest) (response *ModifyMailAddressResponse, err error) { + response = CreateModifyMailAddressResponse() + err = client.DoAction(request, response) + return +} + +// ModifyMailAddressWithChan invokes the dm.ModifyMailAddress API asynchronously +// api document: https://help.aliyun.com/api/dm/modifymailaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyMailAddressWithChan(request *ModifyMailAddressRequest) (<-chan *ModifyMailAddressResponse, <-chan error) { + responseChan := make(chan *ModifyMailAddressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyMailAddress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyMailAddressWithCallback invokes the dm.ModifyMailAddress API asynchronously +// api document: https://help.aliyun.com/api/dm/modifymailaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyMailAddressWithCallback(request *ModifyMailAddressRequest, callback func(response *ModifyMailAddressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyMailAddressResponse + var err error + defer close(result) + response, err = client.ModifyMailAddress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyMailAddressRequest is the request struct for api ModifyMailAddress +type ModifyMailAddressRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MailAddressId requests.Integer `position:"Query" name:"MailAddressId"` + ReplyAddress string `position:"Query" name:"ReplyAddress"` + Password string `position:"Query" name:"Password"` +} + +// ModifyMailAddressResponse is the response struct for api ModifyMailAddress +type ModifyMailAddressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyMailAddressRequest creates a request to invoke ModifyMailAddress API +func CreateModifyMailAddressRequest() (request *ModifyMailAddressRequest) { + request = &ModifyMailAddressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "ModifyMailAddress", "", "") + return +} + +// CreateModifyMailAddressResponse creates a response to parse from ModifyMailAddress response +func CreateModifyMailAddressResponse() (response *ModifyMailAddressResponse) { + response = &ModifyMailAddressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/modify_sender_address_notification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/modify_sender_address_notification.go new file mode 100644 index 0000000..4d0e86a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/modify_sender_address_notification.go @@ -0,0 +1,109 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifySenderAddressNotification invokes the dm.ModifySenderAddressNotification API synchronously +// api document: https://help.aliyun.com/api/dm/modifysenderaddressnotification.html +func (client *Client) ModifySenderAddressNotification(request *ModifySenderAddressNotificationRequest) (response *ModifySenderAddressNotificationResponse, err error) { + response = CreateModifySenderAddressNotificationResponse() + err = client.DoAction(request, response) + return +} + +// ModifySenderAddressNotificationWithChan invokes the dm.ModifySenderAddressNotification API asynchronously +// api document: https://help.aliyun.com/api/dm/modifysenderaddressnotification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySenderAddressNotificationWithChan(request *ModifySenderAddressNotificationRequest) (<-chan *ModifySenderAddressNotificationResponse, <-chan error) { + responseChan := make(chan *ModifySenderAddressNotificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifySenderAddressNotification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifySenderAddressNotificationWithCallback invokes the dm.ModifySenderAddressNotification API asynchronously +// api document: https://help.aliyun.com/api/dm/modifysenderaddressnotification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySenderAddressNotificationWithCallback(request *ModifySenderAddressNotificationRequest, callback func(response *ModifySenderAddressNotificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifySenderAddressNotificationResponse + var err error + defer close(result) + response, err = client.ModifySenderAddressNotification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifySenderAddressNotificationRequest is the request struct for api ModifySenderAddressNotification +type ModifySenderAddressNotificationRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SenderAddressId string `position:"Query" name:"SenderAddressId"` + SenderAddress string `position:"Query" name:"SenderAddress"` + Region string `position:"Query" name:"Region"` + Status string `position:"Query" name:"Status"` +} + +// ModifySenderAddressNotificationResponse is the response struct for api ModifySenderAddressNotification +type ModifySenderAddressNotificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifySenderAddressNotificationRequest creates a request to invoke ModifySenderAddressNotification API +func CreateModifySenderAddressNotificationRequest() (request *ModifySenderAddressNotificationRequest) { + request = &ModifySenderAddressNotificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "ModifySenderAddressNotification", "", "") + return +} + +// CreateModifySenderAddressNotificationResponse creates a response to parse from ModifySenderAddressNotification response +func CreateModifySenderAddressNotificationResponse() (response *ModifySenderAddressNotificationResponse) { + response = &ModifySenderAddressNotificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/modify_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/modify_tag.go new file mode 100644 index 0000000..7def134 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/modify_tag.go @@ -0,0 +1,107 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyTag invokes the dm.ModifyTag API synchronously +// api document: https://help.aliyun.com/api/dm/modifytag.html +func (client *Client) ModifyTag(request *ModifyTagRequest) (response *ModifyTagResponse, err error) { + response = CreateModifyTagResponse() + err = client.DoAction(request, response) + return +} + +// ModifyTagWithChan invokes the dm.ModifyTag API asynchronously +// api document: https://help.aliyun.com/api/dm/modifytag.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyTagWithChan(request *ModifyTagRequest) (<-chan *ModifyTagResponse, <-chan error) { + responseChan := make(chan *ModifyTagResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyTag(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyTagWithCallback invokes the dm.ModifyTag API asynchronously +// api document: https://help.aliyun.com/api/dm/modifytag.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyTagWithCallback(request *ModifyTagRequest, callback func(response *ModifyTagResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyTagResponse + var err error + defer close(result) + response, err = client.ModifyTag(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyTagRequest is the request struct for api ModifyTag +type ModifyTagRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TagId requests.Integer `position:"Query" name:"TagId"` + TagName string `position:"Query" name:"TagName"` +} + +// ModifyTagResponse is the response struct for api ModifyTag +type ModifyTagResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyTagRequest creates a request to invoke ModifyTag API +func CreateModifyTagRequest() (request *ModifyTagRequest) { + request = &ModifyTagRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "ModifyTag", "", "") + return +} + +// CreateModifyTagResponse creates a response to parse from ModifyTag response +func CreateModifyTagResponse() (response *ModifyTagResponse) { + response = &ModifyTagResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/modify_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/modify_template.go new file mode 100644 index 0000000..8c0594c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/modify_template.go @@ -0,0 +1,114 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyTemplate invokes the dm.ModifyTemplate API synchronously +// api document: https://help.aliyun.com/api/dm/modifytemplate.html +func (client *Client) ModifyTemplate(request *ModifyTemplateRequest) (response *ModifyTemplateResponse, err error) { + response = CreateModifyTemplateResponse() + err = client.DoAction(request, response) + return +} + +// ModifyTemplateWithChan invokes the dm.ModifyTemplate API asynchronously +// api document: https://help.aliyun.com/api/dm/modifytemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyTemplateWithChan(request *ModifyTemplateRequest) (<-chan *ModifyTemplateResponse, <-chan error) { + responseChan := make(chan *ModifyTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyTemplateWithCallback invokes the dm.ModifyTemplate API asynchronously +// api document: https://help.aliyun.com/api/dm/modifytemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyTemplateWithCallback(request *ModifyTemplateRequest, callback func(response *ModifyTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyTemplateResponse + var err error + defer close(result) + response, err = client.ModifyTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyTemplateRequest is the request struct for api ModifyTemplate +type ModifyTemplateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TemplateId requests.Integer `position:"Query" name:"TemplateId"` + TemplateName string `position:"Query" name:"TemplateName"` + TemplateSubject string `position:"Query" name:"TemplateSubject"` + TemplateNickName string `position:"Query" name:"TemplateNickName"` + TemplateText string `position:"Query" name:"TemplateText"` + SmsType requests.Integer `position:"Query" name:"SmsType"` + SmsContent string `position:"Query" name:"SmsContent"` + Remark string `position:"Query" name:"Remark"` + FromType requests.Integer `position:"Query" name:"FromType"` +} + +// ModifyTemplateResponse is the response struct for api ModifyTemplate +type ModifyTemplateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyTemplateRequest creates a request to invoke ModifyTemplate API +func CreateModifyTemplateRequest() (request *ModifyTemplateRequest) { + request = &ModifyTemplateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "ModifyTemplate", "", "") + return +} + +// CreateModifyTemplateResponse creates a response to parse from ModifyTemplate response +func CreateModifyTemplateResponse() (response *ModifyTemplateResponse) { + response = &ModifyTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_domain_by_param.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_domain_by_param.go new file mode 100644 index 0000000..3746c3b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_domain_by_param.go @@ -0,0 +1,113 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDomainByParam invokes the dm.QueryDomainByParam API synchronously +// api document: https://help.aliyun.com/api/dm/querydomainbyparam.html +func (client *Client) QueryDomainByParam(request *QueryDomainByParamRequest) (response *QueryDomainByParamResponse, err error) { + response = CreateQueryDomainByParamResponse() + err = client.DoAction(request, response) + return +} + +// QueryDomainByParamWithChan invokes the dm.QueryDomainByParam API asynchronously +// api document: https://help.aliyun.com/api/dm/querydomainbyparam.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDomainByParamWithChan(request *QueryDomainByParamRequest) (<-chan *QueryDomainByParamResponse, <-chan error) { + responseChan := make(chan *QueryDomainByParamResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDomainByParam(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDomainByParamWithCallback invokes the dm.QueryDomainByParam API asynchronously +// api document: https://help.aliyun.com/api/dm/querydomainbyparam.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDomainByParamWithCallback(request *QueryDomainByParamRequest, callback func(response *QueryDomainByParamResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDomainByParamResponse + var err error + defer close(result) + response, err = client.QueryDomainByParam(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDomainByParamRequest is the request struct for api QueryDomainByParam +type QueryDomainByParamRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNo requests.Integer `position:"Query" name:"PageNo"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + KeyWord string `position:"Query" name:"KeyWord"` + Status requests.Integer `position:"Query" name:"Status"` +} + +// QueryDomainByParamResponse is the response struct for api QueryDomainByParam +type QueryDomainByParamResponse 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"` + Data DataInQueryDomainByParam `json:"data" xml:"data"` +} + +// CreateQueryDomainByParamRequest creates a request to invoke QueryDomainByParam API +func CreateQueryDomainByParamRequest() (request *QueryDomainByParamRequest) { + request = &QueryDomainByParamRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "QueryDomainByParam", "", "") + return +} + +// CreateQueryDomainByParamResponse creates a response to parse from QueryDomainByParam response +func CreateQueryDomainByParamResponse() (response *QueryDomainByParamResponse) { + response = &QueryDomainByParamResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_invalid_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_invalid_address.go new file mode 100644 index 0000000..f8a8960 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_invalid_address.go @@ -0,0 +1,113 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryInvalidAddress invokes the dm.QueryInvalidAddress API synchronously +// api document: https://help.aliyun.com/api/dm/queryinvalidaddress.html +func (client *Client) QueryInvalidAddress(request *QueryInvalidAddressRequest) (response *QueryInvalidAddressResponse, err error) { + response = CreateQueryInvalidAddressResponse() + err = client.DoAction(request, response) + return +} + +// QueryInvalidAddressWithChan invokes the dm.QueryInvalidAddress API asynchronously +// api document: https://help.aliyun.com/api/dm/queryinvalidaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryInvalidAddressWithChan(request *QueryInvalidAddressRequest) (<-chan *QueryInvalidAddressResponse, <-chan error) { + responseChan := make(chan *QueryInvalidAddressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryInvalidAddress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryInvalidAddressWithCallback invokes the dm.QueryInvalidAddress API asynchronously +// api document: https://help.aliyun.com/api/dm/queryinvalidaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryInvalidAddressWithCallback(request *QueryInvalidAddressRequest, callback func(response *QueryInvalidAddressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryInvalidAddressResponse + var err error + defer close(result) + response, err = client.QueryInvalidAddress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryInvalidAddressRequest is the request struct for api QueryInvalidAddress +type QueryInvalidAddressRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + KeyWord string `position:"Query" name:"KeyWord"` + Length requests.Integer `position:"Query" name:"Length"` + NextStart string `position:"Query" name:"NextStart"` +} + +// QueryInvalidAddressResponse is the response struct for api QueryInvalidAddress +type QueryInvalidAddressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NextStart int `json:"NextStart" xml:"NextStart"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Data DataInQueryInvalidAddress `json:"data" xml:"data"` +} + +// CreateQueryInvalidAddressRequest creates a request to invoke QueryInvalidAddress API +func CreateQueryInvalidAddressRequest() (request *QueryInvalidAddressRequest) { + request = &QueryInvalidAddressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "QueryInvalidAddress", "", "") + return +} + +// CreateQueryInvalidAddressResponse creates a response to parse from QueryInvalidAddress response +func CreateQueryInvalidAddressResponse() (response *QueryInvalidAddressResponse) { + response = &QueryInvalidAddressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_mail_address_by_param.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_mail_address_by_param.go new file mode 100644 index 0000000..86fa28a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_mail_address_by_param.go @@ -0,0 +1,113 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryMailAddressByParam invokes the dm.QueryMailAddressByParam API synchronously +// api document: https://help.aliyun.com/api/dm/querymailaddressbyparam.html +func (client *Client) QueryMailAddressByParam(request *QueryMailAddressByParamRequest) (response *QueryMailAddressByParamResponse, err error) { + response = CreateQueryMailAddressByParamResponse() + err = client.DoAction(request, response) + return +} + +// QueryMailAddressByParamWithChan invokes the dm.QueryMailAddressByParam API asynchronously +// api document: https://help.aliyun.com/api/dm/querymailaddressbyparam.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMailAddressByParamWithChan(request *QueryMailAddressByParamRequest) (<-chan *QueryMailAddressByParamResponse, <-chan error) { + responseChan := make(chan *QueryMailAddressByParamResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryMailAddressByParam(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryMailAddressByParamWithCallback invokes the dm.QueryMailAddressByParam API asynchronously +// api document: https://help.aliyun.com/api/dm/querymailaddressbyparam.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMailAddressByParamWithCallback(request *QueryMailAddressByParamRequest, callback func(response *QueryMailAddressByParamResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryMailAddressByParamResponse + var err error + defer close(result) + response, err = client.QueryMailAddressByParam(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryMailAddressByParamRequest is the request struct for api QueryMailAddressByParam +type QueryMailAddressByParamRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNo requests.Integer `position:"Query" name:"PageNo"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + KeyWord string `position:"Query" name:"KeyWord"` + Sendtype string `position:"Query" name:"Sendtype"` +} + +// QueryMailAddressByParamResponse is the response struct for api QueryMailAddressByParam +type QueryMailAddressByParamResponse 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"` + Data DataInQueryMailAddressByParam `json:"data" xml:"data"` +} + +// CreateQueryMailAddressByParamRequest creates a request to invoke QueryMailAddressByParam API +func CreateQueryMailAddressByParamRequest() (request *QueryMailAddressByParamRequest) { + request = &QueryMailAddressByParamRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "QueryMailAddressByParam", "", "") + return +} + +// CreateQueryMailAddressByParamResponse creates a response to parse from QueryMailAddressByParam response +func CreateQueryMailAddressByParamResponse() (response *QueryMailAddressByParamResponse) { + response = &QueryMailAddressByParamResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_receiver_by_param.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_receiver_by_param.go new file mode 100644 index 0000000..dcc5c39 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_receiver_by_param.go @@ -0,0 +1,113 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryReceiverByParam invokes the dm.QueryReceiverByParam API synchronously +// api document: https://help.aliyun.com/api/dm/queryreceiverbyparam.html +func (client *Client) QueryReceiverByParam(request *QueryReceiverByParamRequest) (response *QueryReceiverByParamResponse, err error) { + response = CreateQueryReceiverByParamResponse() + err = client.DoAction(request, response) + return +} + +// QueryReceiverByParamWithChan invokes the dm.QueryReceiverByParam API asynchronously +// api document: https://help.aliyun.com/api/dm/queryreceiverbyparam.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryReceiverByParamWithChan(request *QueryReceiverByParamRequest) (<-chan *QueryReceiverByParamResponse, <-chan error) { + responseChan := make(chan *QueryReceiverByParamResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryReceiverByParam(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryReceiverByParamWithCallback invokes the dm.QueryReceiverByParam API asynchronously +// api document: https://help.aliyun.com/api/dm/queryreceiverbyparam.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryReceiverByParamWithCallback(request *QueryReceiverByParamRequest, callback func(response *QueryReceiverByParamResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryReceiverByParamResponse + var err error + defer close(result) + response, err = client.QueryReceiverByParam(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryReceiverByParamRequest is the request struct for api QueryReceiverByParam +type QueryReceiverByParamRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNo requests.Integer `position:"Query" name:"PageNo"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + KeyWord string `position:"Query" name:"KeyWord"` + Status requests.Integer `position:"Query" name:"Status"` +} + +// QueryReceiverByParamResponse is the response struct for api QueryReceiverByParam +type QueryReceiverByParamResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + NextStart string `json:"NextStart" xml:"NextStart"` + PageSize int `json:"PageSize" xml:"PageSize"` + Data DataInQueryReceiverByParam `json:"data" xml:"data"` +} + +// CreateQueryReceiverByParamRequest creates a request to invoke QueryReceiverByParam API +func CreateQueryReceiverByParamRequest() (request *QueryReceiverByParamRequest) { + request = &QueryReceiverByParamRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "QueryReceiverByParam", "", "") + return +} + +// CreateQueryReceiverByParamResponse creates a response to parse from QueryReceiverByParam response +func CreateQueryReceiverByParamResponse() (response *QueryReceiverByParamResponse) { + response = &QueryReceiverByParamResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_receiver_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_receiver_detail.go new file mode 100644 index 0000000..abdc151 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_receiver_detail.go @@ -0,0 +1,113 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryReceiverDetail invokes the dm.QueryReceiverDetail API synchronously +// api document: https://help.aliyun.com/api/dm/queryreceiverdetail.html +func (client *Client) QueryReceiverDetail(request *QueryReceiverDetailRequest) (response *QueryReceiverDetailResponse, err error) { + response = CreateQueryReceiverDetailResponse() + err = client.DoAction(request, response) + return +} + +// QueryReceiverDetailWithChan invokes the dm.QueryReceiverDetail API asynchronously +// api document: https://help.aliyun.com/api/dm/queryreceiverdetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryReceiverDetailWithChan(request *QueryReceiverDetailRequest) (<-chan *QueryReceiverDetailResponse, <-chan error) { + responseChan := make(chan *QueryReceiverDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryReceiverDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryReceiverDetailWithCallback invokes the dm.QueryReceiverDetail API asynchronously +// api document: https://help.aliyun.com/api/dm/queryreceiverdetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryReceiverDetailWithCallback(request *QueryReceiverDetailRequest, callback func(response *QueryReceiverDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryReceiverDetailResponse + var err error + defer close(result) + response, err = client.QueryReceiverDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryReceiverDetailRequest is the request struct for api QueryReceiverDetail +type QueryReceiverDetailRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ReceiverId string `position:"Query" name:"ReceiverId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + KeyWord string `position:"Query" name:"KeyWord"` + NextStart string `position:"Query" name:"NextStart"` +} + +// QueryReceiverDetailResponse is the response struct for api QueryReceiverDetail +type QueryReceiverDetailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + NextStart string `json:"NextStart" xml:"NextStart"` + DataSchema string `json:"DataSchema" xml:"DataSchema"` + Data DataInQueryReceiverDetail `json:"data" xml:"data"` +} + +// CreateQueryReceiverDetailRequest creates a request to invoke QueryReceiverDetail API +func CreateQueryReceiverDetailRequest() (request *QueryReceiverDetailRequest) { + request = &QueryReceiverDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "QueryReceiverDetail", "", "") + return +} + +// CreateQueryReceiverDetailResponse creates a response to parse from QueryReceiverDetail response +func CreateQueryReceiverDetailResponse() (response *QueryReceiverDetailResponse) { + response = &QueryReceiverDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_sign_by_param.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_sign_by_param.go new file mode 100644 index 0000000..e31d89e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_sign_by_param.go @@ -0,0 +1,112 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QuerySignByParam invokes the dm.QuerySignByParam API synchronously +// api document: https://help.aliyun.com/api/dm/querysignbyparam.html +func (client *Client) QuerySignByParam(request *QuerySignByParamRequest) (response *QuerySignByParamResponse, err error) { + response = CreateQuerySignByParamResponse() + err = client.DoAction(request, response) + return +} + +// QuerySignByParamWithChan invokes the dm.QuerySignByParam API asynchronously +// api document: https://help.aliyun.com/api/dm/querysignbyparam.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QuerySignByParamWithChan(request *QuerySignByParamRequest) (<-chan *QuerySignByParamResponse, <-chan error) { + responseChan := make(chan *QuerySignByParamResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QuerySignByParam(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QuerySignByParamWithCallback invokes the dm.QuerySignByParam API asynchronously +// api document: https://help.aliyun.com/api/dm/querysignbyparam.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QuerySignByParamWithCallback(request *QuerySignByParamRequest, callback func(response *QuerySignByParamResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QuerySignByParamResponse + var err error + defer close(result) + response, err = client.QuerySignByParam(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QuerySignByParamRequest is the request struct for api QuerySignByParam +type QuerySignByParamRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNo requests.Integer `position:"Query" name:"PageNo"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + KeyWord string `position:"Query" name:"KeyWord"` + FromType requests.Integer `position:"Query" name:"FromType"` +} + +// QuerySignByParamResponse is the response struct for api QuerySignByParam +type QuerySignByParamResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + Data DataInQuerySignByParam `json:"data" xml:"data"` +} + +// CreateQuerySignByParamRequest creates a request to invoke QuerySignByParam API +func CreateQuerySignByParamRequest() (request *QuerySignByParamRequest) { + request = &QuerySignByParamRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "QuerySignByParam", "", "") + return +} + +// CreateQuerySignByParamResponse creates a response to parse from QuerySignByParam response +func CreateQuerySignByParamResponse() (response *QuerySignByParamResponse) { + response = &QuerySignByParamResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_sms_statistics.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_sms_statistics.go new file mode 100644 index 0000000..87bfb00 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_sms_statistics.go @@ -0,0 +1,110 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QuerySmsStatistics invokes the dm.QuerySmsStatistics API synchronously +// api document: https://help.aliyun.com/api/dm/querysmsstatistics.html +func (client *Client) QuerySmsStatistics(request *QuerySmsStatisticsRequest) (response *QuerySmsStatisticsResponse, err error) { + response = CreateQuerySmsStatisticsResponse() + err = client.DoAction(request, response) + return +} + +// QuerySmsStatisticsWithChan invokes the dm.QuerySmsStatistics API asynchronously +// api document: https://help.aliyun.com/api/dm/querysmsstatistics.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QuerySmsStatisticsWithChan(request *QuerySmsStatisticsRequest) (<-chan *QuerySmsStatisticsResponse, <-chan error) { + responseChan := make(chan *QuerySmsStatisticsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QuerySmsStatistics(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QuerySmsStatisticsWithCallback invokes the dm.QuerySmsStatistics API asynchronously +// api document: https://help.aliyun.com/api/dm/querysmsstatistics.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QuerySmsStatisticsWithCallback(request *QuerySmsStatisticsRequest, callback func(response *QuerySmsStatisticsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QuerySmsStatisticsResponse + var err error + defer close(result) + response, err = client.QuerySmsStatistics(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QuerySmsStatisticsRequest is the request struct for api QuerySmsStatistics +type QuerySmsStatisticsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + FromType requests.Integer `position:"Query" name:"FromType"` +} + +// QuerySmsStatisticsResponse is the response struct for api QuerySmsStatistics +type QuerySmsStatisticsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Data DataInQuerySmsStatistics `json:"data" xml:"data"` +} + +// CreateQuerySmsStatisticsRequest creates a request to invoke QuerySmsStatistics API +func CreateQuerySmsStatisticsRequest() (request *QuerySmsStatisticsRequest) { + request = &QuerySmsStatisticsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "QuerySmsStatistics", "", "") + return +} + +// CreateQuerySmsStatisticsResponse creates a response to parse from QuerySmsStatistics response +func CreateQuerySmsStatisticsResponse() (response *QuerySmsStatisticsResponse) { + response = &QuerySmsStatisticsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_tag_by_param.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_tag_by_param.go new file mode 100644 index 0000000..24437ff --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_tag_by_param.go @@ -0,0 +1,112 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTagByParam invokes the dm.QueryTagByParam API synchronously +// api document: https://help.aliyun.com/api/dm/querytagbyparam.html +func (client *Client) QueryTagByParam(request *QueryTagByParamRequest) (response *QueryTagByParamResponse, err error) { + response = CreateQueryTagByParamResponse() + err = client.DoAction(request, response) + return +} + +// QueryTagByParamWithChan invokes the dm.QueryTagByParam API asynchronously +// api document: https://help.aliyun.com/api/dm/querytagbyparam.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTagByParamWithChan(request *QueryTagByParamRequest) (<-chan *QueryTagByParamResponse, <-chan error) { + responseChan := make(chan *QueryTagByParamResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTagByParam(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTagByParamWithCallback invokes the dm.QueryTagByParam API asynchronously +// api document: https://help.aliyun.com/api/dm/querytagbyparam.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTagByParamWithCallback(request *QueryTagByParamRequest, callback func(response *QueryTagByParamResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTagByParamResponse + var err error + defer close(result) + response, err = client.QueryTagByParam(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTagByParamRequest is the request struct for api QueryTagByParam +type QueryTagByParamRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNo requests.Integer `position:"Query" name:"PageNo"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + KeyWord string `position:"Query" name:"KeyWord"` +} + +// QueryTagByParamResponse is the response struct for api QueryTagByParam +type QueryTagByParamResponse 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"` + Data DataInQueryTagByParam `json:"data" xml:"data"` +} + +// CreateQueryTagByParamRequest creates a request to invoke QueryTagByParam API +func CreateQueryTagByParamRequest() (request *QueryTagByParamRequest) { + request = &QueryTagByParamRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "QueryTagByParam", "", "") + return +} + +// CreateQueryTagByParamResponse creates a response to parse from QueryTagByParam response +func CreateQueryTagByParamResponse() (response *QueryTagByParamResponse) { + response = &QueryTagByParamResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_task_by_param.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_task_by_param.go new file mode 100644 index 0000000..356c11b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_task_by_param.go @@ -0,0 +1,113 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTaskByParam invokes the dm.QueryTaskByParam API synchronously +// api document: https://help.aliyun.com/api/dm/querytaskbyparam.html +func (client *Client) QueryTaskByParam(request *QueryTaskByParamRequest) (response *QueryTaskByParamResponse, err error) { + response = CreateQueryTaskByParamResponse() + err = client.DoAction(request, response) + return +} + +// QueryTaskByParamWithChan invokes the dm.QueryTaskByParam API asynchronously +// api document: https://help.aliyun.com/api/dm/querytaskbyparam.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskByParamWithChan(request *QueryTaskByParamRequest) (<-chan *QueryTaskByParamResponse, <-chan error) { + responseChan := make(chan *QueryTaskByParamResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTaskByParam(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTaskByParamWithCallback invokes the dm.QueryTaskByParam API asynchronously +// api document: https://help.aliyun.com/api/dm/querytaskbyparam.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskByParamWithCallback(request *QueryTaskByParamRequest, callback func(response *QueryTaskByParamResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTaskByParamResponse + var err error + defer close(result) + response, err = client.QueryTaskByParam(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTaskByParamRequest is the request struct for api QueryTaskByParam +type QueryTaskByParamRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNo requests.Integer `position:"Query" name:"PageNo"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + KeyWord string `position:"Query" name:"KeyWord"` + Status requests.Integer `position:"Query" name:"Status"` +} + +// QueryTaskByParamResponse is the response struct for api QueryTaskByParam +type QueryTaskByParamResponse 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"` + Data DataInQueryTaskByParam `json:"data" xml:"data"` +} + +// CreateQueryTaskByParamRequest creates a request to invoke QueryTaskByParam API +func CreateQueryTaskByParamRequest() (request *QueryTaskByParamRequest) { + request = &QueryTaskByParamRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "QueryTaskByParam", "", "") + return +} + +// CreateQueryTaskByParamResponse creates a response to parse from QueryTaskByParam response +func CreateQueryTaskByParamResponse() (response *QueryTaskByParamResponse) { + response = &QueryTaskByParamResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_template_by_param.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_template_by_param.go new file mode 100644 index 0000000..63d8c81 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/query_template_by_param.go @@ -0,0 +1,114 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTemplateByParam invokes the dm.QueryTemplateByParam API synchronously +// api document: https://help.aliyun.com/api/dm/querytemplatebyparam.html +func (client *Client) QueryTemplateByParam(request *QueryTemplateByParamRequest) (response *QueryTemplateByParamResponse, err error) { + response = CreateQueryTemplateByParamResponse() + err = client.DoAction(request, response) + return +} + +// QueryTemplateByParamWithChan invokes the dm.QueryTemplateByParam API asynchronously +// api document: https://help.aliyun.com/api/dm/querytemplatebyparam.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTemplateByParamWithChan(request *QueryTemplateByParamRequest) (<-chan *QueryTemplateByParamResponse, <-chan error) { + responseChan := make(chan *QueryTemplateByParamResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTemplateByParam(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTemplateByParamWithCallback invokes the dm.QueryTemplateByParam API asynchronously +// api document: https://help.aliyun.com/api/dm/querytemplatebyparam.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTemplateByParamWithCallback(request *QueryTemplateByParamRequest, callback func(response *QueryTemplateByParamResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTemplateByParamResponse + var err error + defer close(result) + response, err = client.QueryTemplateByParam(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTemplateByParamRequest is the request struct for api QueryTemplateByParam +type QueryTemplateByParamRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNo requests.Integer `position:"Query" name:"PageNo"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + KeyWord string `position:"Query" name:"KeyWord"` + Status requests.Integer `position:"Query" name:"Status"` + FromType requests.Integer `position:"Query" name:"FromType"` +} + +// QueryTemplateByParamResponse is the response struct for api QueryTemplateByParam +type QueryTemplateByParamResponse 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"` + Data DataInQueryTemplateByParam `json:"data" xml:"data"` +} + +// CreateQueryTemplateByParamRequest creates a request to invoke QueryTemplateByParam API +func CreateQueryTemplateByParamRequest() (request *QueryTemplateByParamRequest) { + request = &QueryTemplateByParamRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "QueryTemplateByParam", "", "") + return +} + +// CreateQueryTemplateByParamResponse creates a response to parse from QueryTemplateByParam response +func CreateQueryTemplateByParamResponse() (response *QueryTemplateByParamResponse) { + response = &QueryTemplateByParamResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/save_receiver_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/save_receiver_detail.go new file mode 100644 index 0000000..a1c00f7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/save_receiver_detail.go @@ -0,0 +1,110 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveReceiverDetail invokes the dm.SaveReceiverDetail API synchronously +// api document: https://help.aliyun.com/api/dm/savereceiverdetail.html +func (client *Client) SaveReceiverDetail(request *SaveReceiverDetailRequest) (response *SaveReceiverDetailResponse, err error) { + response = CreateSaveReceiverDetailResponse() + err = client.DoAction(request, response) + return +} + +// SaveReceiverDetailWithChan invokes the dm.SaveReceiverDetail API asynchronously +// api document: https://help.aliyun.com/api/dm/savereceiverdetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveReceiverDetailWithChan(request *SaveReceiverDetailRequest) (<-chan *SaveReceiverDetailResponse, <-chan error) { + responseChan := make(chan *SaveReceiverDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveReceiverDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveReceiverDetailWithCallback invokes the dm.SaveReceiverDetail API asynchronously +// api document: https://help.aliyun.com/api/dm/savereceiverdetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveReceiverDetailWithCallback(request *SaveReceiverDetailRequest, callback func(response *SaveReceiverDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveReceiverDetailResponse + var err error + defer close(result) + response, err = client.SaveReceiverDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveReceiverDetailRequest is the request struct for api SaveReceiverDetail +type SaveReceiverDetailRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ReceiverId string `position:"Query" name:"ReceiverId"` + Detail string `position:"Query" name:"Detail"` +} + +// SaveReceiverDetailResponse is the response struct for api SaveReceiverDetail +type SaveReceiverDetailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SuccessCount int `json:"SuccessCount" xml:"SuccessCount"` + ErrorCount int `json:"ErrorCount" xml:"ErrorCount"` + Data DataInSaveReceiverDetail `json:"Data" xml:"Data"` +} + +// CreateSaveReceiverDetailRequest creates a request to invoke SaveReceiverDetail API +func CreateSaveReceiverDetailRequest() (request *SaveReceiverDetailRequest) { + request = &SaveReceiverDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "SaveReceiverDetail", "", "") + return +} + +// CreateSaveReceiverDetailResponse creates a response to parse from SaveReceiverDetail response +func CreateSaveReceiverDetailResponse() (response *SaveReceiverDetailResponse) { + response = &SaveReceiverDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/send_test_by_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/send_test_by_template.go new file mode 100644 index 0000000..d4f099c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/send_test_by_template.go @@ -0,0 +1,113 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SendTestByTemplate invokes the dm.SendTestByTemplate API synchronously +// api document: https://help.aliyun.com/api/dm/sendtestbytemplate.html +func (client *Client) SendTestByTemplate(request *SendTestByTemplateRequest) (response *SendTestByTemplateResponse, err error) { + response = CreateSendTestByTemplateResponse() + err = client.DoAction(request, response) + return +} + +// SendTestByTemplateWithChan invokes the dm.SendTestByTemplate API asynchronously +// api document: https://help.aliyun.com/api/dm/sendtestbytemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SendTestByTemplateWithChan(request *SendTestByTemplateRequest) (<-chan *SendTestByTemplateResponse, <-chan error) { + responseChan := make(chan *SendTestByTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SendTestByTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SendTestByTemplateWithCallback invokes the dm.SendTestByTemplate API asynchronously +// api document: https://help.aliyun.com/api/dm/sendtestbytemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SendTestByTemplateWithCallback(request *SendTestByTemplateRequest, callback func(response *SendTestByTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SendTestByTemplateResponse + var err error + defer close(result) + response, err = client.SendTestByTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SendTestByTemplateRequest is the request struct for api SendTestByTemplate +type SendTestByTemplateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TemplateId requests.Integer `position:"Query" name:"TemplateId"` + AccountName string `position:"Query" name:"AccountName"` + UserName string `position:"Query" name:"UserName"` + NickName string `position:"Query" name:"NickName"` + Birthday string `position:"Query" name:"Birthday"` + Gender string `position:"Query" name:"Gender"` + Mobile string `position:"Query" name:"Mobile"` + Email string `position:"Query" name:"Email"` +} + +// SendTestByTemplateResponse is the response struct for api SendTestByTemplate +type SendTestByTemplateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSendTestByTemplateRequest creates a request to invoke SendTestByTemplate API +func CreateSendTestByTemplateRequest() (request *SendTestByTemplateRequest) { + request = &SendTestByTemplateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "SendTestByTemplate", "", "") + return +} + +// CreateSendTestByTemplateResponse creates a response to parse from SendTestByTemplate response +func CreateSendTestByTemplateResponse() (response *SendTestByTemplateResponse) { + response = &SendTestByTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/sender_statistics_by_tag_name_and_batch_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/sender_statistics_by_tag_name_and_batch_id.go new file mode 100644 index 0000000..e47d4b9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/sender_statistics_by_tag_name_and_batch_id.go @@ -0,0 +1,111 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SenderStatisticsByTagNameAndBatchID invokes the dm.SenderStatisticsByTagNameAndBatchID API synchronously +// api document: https://help.aliyun.com/api/dm/senderstatisticsbytagnameandbatchid.html +func (client *Client) SenderStatisticsByTagNameAndBatchID(request *SenderStatisticsByTagNameAndBatchIDRequest) (response *SenderStatisticsByTagNameAndBatchIDResponse, err error) { + response = CreateSenderStatisticsByTagNameAndBatchIDResponse() + err = client.DoAction(request, response) + return +} + +// SenderStatisticsByTagNameAndBatchIDWithChan invokes the dm.SenderStatisticsByTagNameAndBatchID API asynchronously +// api document: https://help.aliyun.com/api/dm/senderstatisticsbytagnameandbatchid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SenderStatisticsByTagNameAndBatchIDWithChan(request *SenderStatisticsByTagNameAndBatchIDRequest) (<-chan *SenderStatisticsByTagNameAndBatchIDResponse, <-chan error) { + responseChan := make(chan *SenderStatisticsByTagNameAndBatchIDResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SenderStatisticsByTagNameAndBatchID(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SenderStatisticsByTagNameAndBatchIDWithCallback invokes the dm.SenderStatisticsByTagNameAndBatchID API asynchronously +// api document: https://help.aliyun.com/api/dm/senderstatisticsbytagnameandbatchid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SenderStatisticsByTagNameAndBatchIDWithCallback(request *SenderStatisticsByTagNameAndBatchIDRequest, callback func(response *SenderStatisticsByTagNameAndBatchIDResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SenderStatisticsByTagNameAndBatchIDResponse + var err error + defer close(result) + response, err = client.SenderStatisticsByTagNameAndBatchID(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SenderStatisticsByTagNameAndBatchIDRequest is the request struct for api SenderStatisticsByTagNameAndBatchID +type SenderStatisticsByTagNameAndBatchIDRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AccountName string `position:"Query" name:"AccountName"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + TagName string `position:"Query" name:"TagName"` +} + +// SenderStatisticsByTagNameAndBatchIDResponse is the response struct for api SenderStatisticsByTagNameAndBatchID +type SenderStatisticsByTagNameAndBatchIDResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Data DataInSenderStatisticsByTagNameAndBatchID `json:"data" xml:"data"` +} + +// CreateSenderStatisticsByTagNameAndBatchIDRequest creates a request to invoke SenderStatisticsByTagNameAndBatchID API +func CreateSenderStatisticsByTagNameAndBatchIDRequest() (request *SenderStatisticsByTagNameAndBatchIDRequest) { + request = &SenderStatisticsByTagNameAndBatchIDRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "SenderStatisticsByTagNameAndBatchID", "", "") + return +} + +// CreateSenderStatisticsByTagNameAndBatchIDResponse creates a response to parse from SenderStatisticsByTagNameAndBatchID response +func CreateSenderStatisticsByTagNameAndBatchIDResponse() (response *SenderStatisticsByTagNameAndBatchIDResponse) { + response = &SenderStatisticsByTagNameAndBatchIDResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/sender_statistics_detail_by_param.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/sender_statistics_detail_by_param.go new file mode 100644 index 0000000..7a42420 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/sender_statistics_detail_by_param.go @@ -0,0 +1,115 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SenderStatisticsDetailByParam invokes the dm.SenderStatisticsDetailByParam API synchronously +// api document: https://help.aliyun.com/api/dm/senderstatisticsdetailbyparam.html +func (client *Client) SenderStatisticsDetailByParam(request *SenderStatisticsDetailByParamRequest) (response *SenderStatisticsDetailByParamResponse, err error) { + response = CreateSenderStatisticsDetailByParamResponse() + err = client.DoAction(request, response) + return +} + +// SenderStatisticsDetailByParamWithChan invokes the dm.SenderStatisticsDetailByParam API asynchronously +// api document: https://help.aliyun.com/api/dm/senderstatisticsdetailbyparam.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SenderStatisticsDetailByParamWithChan(request *SenderStatisticsDetailByParamRequest) (<-chan *SenderStatisticsDetailByParamResponse, <-chan error) { + responseChan := make(chan *SenderStatisticsDetailByParamResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SenderStatisticsDetailByParam(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SenderStatisticsDetailByParamWithCallback invokes the dm.SenderStatisticsDetailByParam API asynchronously +// api document: https://help.aliyun.com/api/dm/senderstatisticsdetailbyparam.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SenderStatisticsDetailByParamWithCallback(request *SenderStatisticsDetailByParamRequest, callback func(response *SenderStatisticsDetailByParamResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SenderStatisticsDetailByParamResponse + var err error + defer close(result) + response, err = client.SenderStatisticsDetailByParam(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SenderStatisticsDetailByParamRequest is the request struct for api SenderStatisticsDetailByParam +type SenderStatisticsDetailByParamRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AccountName string `position:"Query" name:"AccountName"` + ToAddress string `position:"Query" name:"ToAddress"` + Status requests.Integer `position:"Query" name:"Status"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + TagName string `position:"Query" name:"TagName"` + Length requests.Integer `position:"Query" name:"Length"` + NextStart string `position:"Query" name:"NextStart"` +} + +// SenderStatisticsDetailByParamResponse is the response struct for api SenderStatisticsDetailByParam +type SenderStatisticsDetailByParamResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NextStart int `json:"NextStart" xml:"NextStart"` + Data DataInSenderStatisticsDetailByParam `json:"data" xml:"data"` +} + +// CreateSenderStatisticsDetailByParamRequest creates a request to invoke SenderStatisticsDetailByParam API +func CreateSenderStatisticsDetailByParamRequest() (request *SenderStatisticsDetailByParamRequest) { + request = &SenderStatisticsDetailByParamRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "SenderStatisticsDetailByParam", "", "") + return +} + +// CreateSenderStatisticsDetailByParamResponse creates a response to parse from SenderStatisticsDetailByParam response +func CreateSenderStatisticsDetailByParamResponse() (response *SenderStatisticsDetailByParamResponse) { + response = &SenderStatisticsDetailByParamResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/set_max_quota_level.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/set_max_quota_level.go new file mode 100644 index 0000000..ceaa84c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/set_max_quota_level.go @@ -0,0 +1,106 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetMaxQuotaLevel invokes the dm.SetMaxQuotaLevel API synchronously +// api document: https://help.aliyun.com/api/dm/setmaxquotalevel.html +func (client *Client) SetMaxQuotaLevel(request *SetMaxQuotaLevelRequest) (response *SetMaxQuotaLevelResponse, err error) { + response = CreateSetMaxQuotaLevelResponse() + err = client.DoAction(request, response) + return +} + +// SetMaxQuotaLevelWithChan invokes the dm.SetMaxQuotaLevel API asynchronously +// api document: https://help.aliyun.com/api/dm/setmaxquotalevel.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetMaxQuotaLevelWithChan(request *SetMaxQuotaLevelRequest) (<-chan *SetMaxQuotaLevelResponse, <-chan error) { + responseChan := make(chan *SetMaxQuotaLevelResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetMaxQuotaLevel(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetMaxQuotaLevelWithCallback invokes the dm.SetMaxQuotaLevel API asynchronously +// api document: https://help.aliyun.com/api/dm/setmaxquotalevel.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetMaxQuotaLevelWithCallback(request *SetMaxQuotaLevelRequest, callback func(response *SetMaxQuotaLevelResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetMaxQuotaLevelResponse + var err error + defer close(result) + response, err = client.SetMaxQuotaLevel(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetMaxQuotaLevelRequest is the request struct for api SetMaxQuotaLevel +type SetMaxQuotaLevelRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MaxQuotaLevel string `position:"Query" name:"MaxQuotaLevel"` +} + +// SetMaxQuotaLevelResponse is the response struct for api SetMaxQuotaLevel +type SetMaxQuotaLevelResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetMaxQuotaLevelRequest creates a request to invoke SetMaxQuotaLevel API +func CreateSetMaxQuotaLevelRequest() (request *SetMaxQuotaLevelRequest) { + request = &SetMaxQuotaLevelRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "SetMaxQuotaLevel", "", "") + return +} + +// CreateSetMaxQuotaLevelResponse creates a response to parse from SetMaxQuotaLevel response +func CreateSetMaxQuotaLevelResponse() (response *SetMaxQuotaLevelResponse) { + response = &SetMaxQuotaLevelResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/single_send_mail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/single_send_mail.go new file mode 100644 index 0000000..e2fb3b9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/single_send_mail.go @@ -0,0 +1,118 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SingleSendMail invokes the dm.SingleSendMail API synchronously +// api document: https://help.aliyun.com/api/dm/singlesendmail.html +func (client *Client) SingleSendMail(request *SingleSendMailRequest) (response *SingleSendMailResponse, err error) { + response = CreateSingleSendMailResponse() + err = client.DoAction(request, response) + return +} + +// SingleSendMailWithChan invokes the dm.SingleSendMail API asynchronously +// api document: https://help.aliyun.com/api/dm/singlesendmail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SingleSendMailWithChan(request *SingleSendMailRequest) (<-chan *SingleSendMailResponse, <-chan error) { + responseChan := make(chan *SingleSendMailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SingleSendMail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SingleSendMailWithCallback invokes the dm.SingleSendMail API asynchronously +// api document: https://help.aliyun.com/api/dm/singlesendmail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SingleSendMailWithCallback(request *SingleSendMailRequest, callback func(response *SingleSendMailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SingleSendMailResponse + var err error + defer close(result) + response, err = client.SingleSendMail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SingleSendMailRequest is the request struct for api SingleSendMail +type SingleSendMailRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AccountName string `position:"Query" name:"AccountName"` + AddressType requests.Integer `position:"Query" name:"AddressType"` + TagName string `position:"Query" name:"TagName"` + ReplyToAddress requests.Boolean `position:"Query" name:"ReplyToAddress"` + ToAddress string `position:"Query" name:"ToAddress"` + Subject string `position:"Query" name:"Subject"` + HtmlBody string `position:"Query" name:"HtmlBody"` + TextBody string `position:"Query" name:"TextBody"` + FromAlias string `position:"Query" name:"FromAlias"` + ReplyAddress string `position:"Query" name:"ReplyAddress"` + ReplyAddressAlias string `position:"Query" name:"ReplyAddressAlias"` + ClickTrace string `position:"Query" name:"ClickTrace"` +} + +// SingleSendMailResponse is the response struct for api SingleSendMail +type SingleSendMailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + EnvId string `json:"EnvId" xml:"EnvId"` +} + +// CreateSingleSendMailRequest creates a request to invoke SingleSendMail API +func CreateSingleSendMailRequest() (request *SingleSendMailRequest) { + request = &SingleSendMailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "SingleSendMail", "", "") + return +} + +// CreateSingleSendMailResponse creates a response to parse from SingleSendMail response +func CreateSingleSendMailResponse() (response *SingleSendMailResponse) { + response = &SingleSendMailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/single_send_sms.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/single_send_sms.go new file mode 100644 index 0000000..2126bb2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/single_send_sms.go @@ -0,0 +1,110 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SingleSendSms invokes the dm.SingleSendSms API synchronously +// api document: https://help.aliyun.com/api/dm/singlesendsms.html +func (client *Client) SingleSendSms(request *SingleSendSmsRequest) (response *SingleSendSmsResponse, err error) { + response = CreateSingleSendSmsResponse() + err = client.DoAction(request, response) + return +} + +// SingleSendSmsWithChan invokes the dm.SingleSendSms API asynchronously +// api document: https://help.aliyun.com/api/dm/singlesendsms.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SingleSendSmsWithChan(request *SingleSendSmsRequest) (<-chan *SingleSendSmsResponse, <-chan error) { + responseChan := make(chan *SingleSendSmsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SingleSendSms(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SingleSendSmsWithCallback invokes the dm.SingleSendSms API asynchronously +// api document: https://help.aliyun.com/api/dm/singlesendsms.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SingleSendSmsWithCallback(request *SingleSendSmsRequest, callback func(response *SingleSendSmsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SingleSendSmsResponse + var err error + defer close(result) + response, err = client.SingleSendSms(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SingleSendSmsRequest is the request struct for api SingleSendSms +type SingleSendSmsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SignName string `position:"Query" name:"SignName"` + TemplateCode string `position:"Query" name:"TemplateCode"` + RecNum string `position:"Query" name:"RecNum"` + ParamString string `position:"Query" name:"ParamString"` + Version string `position:"Query" name:"Version"` +} + +// SingleSendSmsResponse is the response struct for api SingleSendSms +type SingleSendSmsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSingleSendSmsRequest creates a request to invoke SingleSendSms API +func CreateSingleSendSmsRequest() (request *SingleSendSmsRequest) { + request = &SingleSendSmsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "SingleSendSms", "", "") + return +} + +// CreateSingleSendSmsResponse creates a response to parse from SingleSendSms response +func CreateSingleSendSmsResponse() (response *SingleSendSmsResponse) { + response = &SingleSendSmsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_account_notification_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_account_notification_info.go new file mode 100644 index 0000000..fb69a1b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_account_notification_info.go @@ -0,0 +1,23 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AccountNotificationInfo is a nested struct in dm response +type AccountNotificationInfo struct { + Region string `json:"Region" xml:"Region"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_get_account_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_get_account_list.go new file mode 100644 index 0000000..829c130 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_get_account_list.go @@ -0,0 +1,21 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInGetAccountList is a nested struct in dm response +type DataInGetAccountList struct { + AccountNotificationInfo []AccountNotificationInfo `json:"accountNotificationInfo" xml:"accountNotificationInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_get_ipfilter_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_get_ipfilter_list.go new file mode 100644 index 0000000..43435f6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_get_ipfilter_list.go @@ -0,0 +1,21 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInGetIpfilterList is a nested struct in dm response +type DataInGetIpfilterList struct { + Ipfilters []Ipfilters `json:"ipfilters" xml:"ipfilters"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_get_region_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_get_region_list.go new file mode 100644 index 0000000..e2607c6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_get_region_list.go @@ -0,0 +1,21 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInGetRegionList is a nested struct in dm response +type DataInGetRegionList struct { + RegionList []RegionList `json:"regionList" xml:"regionList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_get_sender_address_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_get_sender_address_list.go new file mode 100644 index 0000000..38eccf5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_get_sender_address_list.go @@ -0,0 +1,21 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInGetSenderAddressList is a nested struct in dm response +type DataInGetSenderAddressList struct { + SenderAddressNotificationInfo []SenderAddressNotificationInfo `json:"senderAddressNotificationInfo" xml:"senderAddressNotificationInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_get_track_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_get_track_list.go new file mode 100644 index 0000000..03da5e5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_get_track_list.go @@ -0,0 +1,21 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInGetTrackList is a nested struct in dm response +type DataInGetTrackList struct { + Stat []Stat `json:"stat" xml:"stat"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_domain_by_param.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_domain_by_param.go new file mode 100644 index 0000000..06ca259 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_domain_by_param.go @@ -0,0 +1,21 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryDomainByParam is a nested struct in dm response +type DataInQueryDomainByParam struct { + Domain []Domain `json:"domain" xml:"domain"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_invalid_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_invalid_address.go new file mode 100644 index 0000000..aa769d0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_invalid_address.go @@ -0,0 +1,21 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryInvalidAddress is a nested struct in dm response +type DataInQueryInvalidAddress struct { + MailDetail []MailDetailInQueryInvalidAddress `json:"mailDetail" xml:"mailDetail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_mail_address_by_param.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_mail_address_by_param.go new file mode 100644 index 0000000..ca6f38f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_mail_address_by_param.go @@ -0,0 +1,21 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryMailAddressByParam is a nested struct in dm response +type DataInQueryMailAddressByParam struct { + MailAddress []MailAddress `json:"mailAddress" xml:"mailAddress"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_receiver_by_param.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_receiver_by_param.go new file mode 100644 index 0000000..3bf6d7b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_receiver_by_param.go @@ -0,0 +1,21 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryReceiverByParam is a nested struct in dm response +type DataInQueryReceiverByParam struct { + Receiver []Receiver `json:"receiver" xml:"receiver"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_receiver_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_receiver_detail.go new file mode 100644 index 0000000..e34d26d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_receiver_detail.go @@ -0,0 +1,21 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryReceiverDetail is a nested struct in dm response +type DataInQueryReceiverDetail struct { + Detail []Detail `json:"detail" xml:"detail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_sign_by_param.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_sign_by_param.go new file mode 100644 index 0000000..f15f6d4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_sign_by_param.go @@ -0,0 +1,21 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQuerySignByParam is a nested struct in dm response +type DataInQuerySignByParam struct { + Sign []Sign `json:"sign" xml:"sign"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_sms_statistics.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_sms_statistics.go new file mode 100644 index 0000000..9b1394c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_sms_statistics.go @@ -0,0 +1,21 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQuerySmsStatistics is a nested struct in dm response +type DataInQuerySmsStatistics struct { + Stat []Stat `json:"stat" xml:"stat"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_tag_by_param.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_tag_by_param.go new file mode 100644 index 0000000..10652e9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_tag_by_param.go @@ -0,0 +1,21 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryTagByParam is a nested struct in dm response +type DataInQueryTagByParam struct { + Tag []Tag `json:"tag" xml:"tag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_task_by_param.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_task_by_param.go new file mode 100644 index 0000000..0365601 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_task_by_param.go @@ -0,0 +1,21 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryTaskByParam is a nested struct in dm response +type DataInQueryTaskByParam struct { + Task []Task `json:"task" xml:"task"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_template_by_param.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_template_by_param.go new file mode 100644 index 0000000..5d273e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_query_template_by_param.go @@ -0,0 +1,21 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryTemplateByParam is a nested struct in dm response +type DataInQueryTemplateByParam struct { + Template []Template `json:"template" xml:"template"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_save_receiver_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_save_receiver_detail.go new file mode 100644 index 0000000..2cd5696 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_save_receiver_detail.go @@ -0,0 +1,21 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInSaveReceiverDetail is a nested struct in dm response +type DataInSaveReceiverDetail struct { + Detail []Detail `json:"Detail" xml:"Detail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_sender_statistics_by_tag_name_and_batch_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_sender_statistics_by_tag_name_and_batch_id.go new file mode 100644 index 0000000..2d88a63 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_sender_statistics_by_tag_name_and_batch_id.go @@ -0,0 +1,21 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInSenderStatisticsByTagNameAndBatchID is a nested struct in dm response +type DataInSenderStatisticsByTagNameAndBatchID struct { + Stat []Stat `json:"stat" xml:"stat"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_sender_statistics_detail_by_param.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_sender_statistics_detail_by_param.go new file mode 100644 index 0000000..3afdb8d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_data_in_sender_statistics_detail_by_param.go @@ -0,0 +1,21 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInSenderStatisticsDetailByParam is a nested struct in dm response +type DataInSenderStatisticsDetailByParam struct { + MailDetail []MailDetail `json:"mailDetail" xml:"mailDetail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_detail.go new file mode 100644 index 0000000..4cb0f5c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_detail.go @@ -0,0 +1,24 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Detail is a nested struct in dm response +type Detail struct { + Email string `json:"Email" xml:"Email"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Data string `json:"Data" xml:"Data"` + UtcCreateTime int `json:"UtcCreateTime" xml:"UtcCreateTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_domain.go new file mode 100644 index 0000000..f7fbf38 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_domain.go @@ -0,0 +1,31 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 dm response +type Domain struct { + DomainId string `json:"DomainId" xml:"DomainId"` + DomainName string `json:"DomainName" xml:"DomainName"` + DomainStatus string `json:"DomainStatus" xml:"DomainStatus"` + DomainRecord string `json:"DomainRecord" xml:"DomainRecord"` + ConfirmStatus string `json:"ConfirmStatus" xml:"ConfirmStatus"` + SpfAuthStatus string `json:"SpfAuthStatus" xml:"SpfAuthStatus"` + MxAuthStatus string `json:"MxAuthStatus" xml:"MxAuthStatus"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + UtcCreateTime int `json:"UtcCreateTime" xml:"UtcCreateTime"` + CnameAuthStatus string `json:"CnameAuthStatus" xml:"CnameAuthStatus"` + IcpStatus string `json:"IcpStatus" xml:"IcpStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_ipfilters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_ipfilters.go new file mode 100644 index 0000000..45f0fa6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_ipfilters.go @@ -0,0 +1,23 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ipfilters is a nested struct in dm response +type Ipfilters struct { + Id string `json:"Id" xml:"Id"` + IpAddress string `json:"IpAddress" xml:"IpAddress"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_mail_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_mail_address.go new file mode 100644 index 0000000..23023b5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_mail_address.go @@ -0,0 +1,32 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MailAddress is a nested struct in dm response +type MailAddress struct { + MailAddressId string `json:"MailAddressId" xml:"MailAddressId"` + AccountName string `json:"AccountName" xml:"AccountName"` + ReplyAddress string `json:"ReplyAddress" xml:"ReplyAddress"` + Sendtype string `json:"Sendtype" xml:"Sendtype"` + AccountStatus string `json:"AccountStatus" xml:"AccountStatus"` + ReplyStatus string `json:"ReplyStatus" xml:"ReplyStatus"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + DailyCount string `json:"DailyCount" xml:"DailyCount"` + MonthCount string `json:"MonthCount" xml:"MonthCount"` + DailyReqCount string `json:"DailyReqCount" xml:"DailyReqCount"` + MonthReqCount string `json:"MonthReqCount" xml:"MonthReqCount"` + DomainStatus string `json:"DomainStatus" xml:"DomainStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_mail_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_mail_detail.go new file mode 100644 index 0000000..7d9f047 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_mail_detail.go @@ -0,0 +1,26 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MailDetail is a nested struct in dm response +type MailDetail struct { + Status int `json:"Status" xml:"Status"` + UtcLastUpdateTime string `json:"UtcLastUpdateTime" xml:"UtcLastUpdateTime"` + ToAddress string `json:"ToAddress" xml:"ToAddress"` + Message string `json:"Message" xml:"Message"` + LastUpdateTime string `json:"LastUpdateTime" xml:"LastUpdateTime"` + AccountName string `json:"AccountName" xml:"AccountName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_mail_detail_in_query_invalid_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_mail_detail_in_query_invalid_address.go new file mode 100644 index 0000000..3c25369 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_mail_detail_in_query_invalid_address.go @@ -0,0 +1,23 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MailDetailInQueryInvalidAddress is a nested struct in dm response +type MailDetailInQueryInvalidAddress struct { + LastUpdateTime string `json:"LastUpdateTime" xml:"LastUpdateTime"` + UtcLastUpdateTime int `json:"UtcLastUpdateTime" xml:"UtcLastUpdateTime"` + ToAddress string `json:"ToAddress" xml:"ToAddress"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_receiver.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_receiver.go new file mode 100644 index 0000000..65c0287 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_receiver.go @@ -0,0 +1,28 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Receiver is a nested struct in dm response +type Receiver struct { + ReceiverId string `json:"ReceiverId" xml:"ReceiverId"` + ReceiversName string `json:"ReceiversName" xml:"ReceiversName"` + Count string `json:"Count" xml:"Count"` + ReceiversAlias string `json:"ReceiversAlias" xml:"ReceiversAlias"` + Desc string `json:"Desc" xml:"Desc"` + ReceiversStatus string `json:"ReceiversStatus" xml:"ReceiversStatus"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + UtcCreateTime int `json:"UtcCreateTime" xml:"UtcCreateTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_region_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_region_list.go new file mode 100644 index 0000000..9fc277c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_region_list.go @@ -0,0 +1,22 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RegionList is a nested struct in dm response +type RegionList struct { + Region string `json:"Region" xml:"Region"` + RegionDesc string `json:"RegionDesc" xml:"RegionDesc"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_sender_address_notification_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_sender_address_notification_info.go new file mode 100644 index 0000000..5f70f9c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_sender_address_notification_info.go @@ -0,0 +1,25 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SenderAddressNotificationInfo is a nested struct in dm response +type SenderAddressNotificationInfo struct { + Region string `json:"Region" xml:"Region"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + Status string `json:"Status" xml:"Status"` + SenderAddressId string `json:"SenderAddressId" xml:"SenderAddressId"` + SenderAddress string `json:"SenderAddress" xml:"SenderAddress"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_sign.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_sign.go new file mode 100644 index 0000000..7cf4b62 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_sign.go @@ -0,0 +1,28 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Sign is a nested struct in dm response +type Sign struct { + SignId int `json:"SignId" xml:"SignId"` + OrderId string `json:"OrderId" xml:"OrderId"` + Remark string `json:"Remark" xml:"Remark"` + AuditState string `json:"AuditState" xml:"AuditState"` + SignType string `json:"SignType" xml:"SignType"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + SignName string `json:"SignName" xml:"SignName"` + RejectInfo string `json:"RejectInfo" xml:"RejectInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_stat.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_stat.go new file mode 100644 index 0000000..9dcb8ad --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_stat.go @@ -0,0 +1,36 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Stat is a nested struct in dm response +type Stat struct { + RcptUniqueClickRate string `json:"RcptUniqueClickRate" xml:"RcptUniqueClickRate"` + RequestCount string `json:"requestCount" xml:"requestCount"` + TotalNumber string `json:"TotalNumber" xml:"TotalNumber"` + UnavailablePercent string `json:"unavailablePercent" xml:"unavailablePercent"` + SucceededPercent string `json:"succeededPercent" xml:"succeededPercent"` + RcptClickCount string `json:"RcptClickCount" xml:"RcptClickCount"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + RcptOpenRate string `json:"RcptOpenRate" xml:"RcptOpenRate"` + RcptUniqueClickCount string `json:"RcptUniqueClickCount" xml:"RcptUniqueClickCount"` + UnavailableCount string `json:"unavailableCount" xml:"unavailableCount"` + SuccessCount string `json:"successCount" xml:"successCount"` + RcptClickRate string `json:"RcptClickRate" xml:"RcptClickRate"` + RcptOpenCount string `json:"RcptOpenCount" xml:"RcptOpenCount"` + RcptUniqueOpenCount string `json:"RcptUniqueOpenCount" xml:"RcptUniqueOpenCount"` + FaildCount string `json:"faildCount" xml:"faildCount"` + RcptUniqueOpenRate string `json:"RcptUniqueOpenRate" xml:"RcptUniqueOpenRate"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_tag.go new file mode 100644 index 0000000..f20e70c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_tag.go @@ -0,0 +1,22 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 dm response +type Tag struct { + TagId string `json:"TagId" xml:"TagId"` + TagName string `json:"TagName" xml:"TagName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_task.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_task.go new file mode 100644 index 0000000..3a3b1dd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_task.go @@ -0,0 +1,29 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Task is a nested struct in dm response +type Task struct { + TaskId string `json:"TaskId" xml:"TaskId"` + ReceiversName string `json:"ReceiversName" xml:"ReceiversName"` + TemplateName string `json:"TemplateName" xml:"TemplateName"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + UtcCreateTime int `json:"UtcCreateTime" xml:"UtcCreateTime"` + AddressType string `json:"AddressType" xml:"AddressType"` + TagName string `json:"TagName" xml:"TagName"` + RequestCount string `json:"RequestCount" xml:"RequestCount"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_template.go new file mode 100644 index 0000000..89c23ee --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/struct_template.go @@ -0,0 +1,30 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Template is a nested struct in dm response +type Template struct { + TemplateId string `json:"TemplateId" xml:"TemplateId"` + TemplateName string `json:"TemplateName" xml:"TemplateName"` + TemplateComment string `json:"TemplateComment" xml:"TemplateComment"` + TemplateStatus string `json:"TemplateStatus" xml:"TemplateStatus"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + UtcCreatetime int `json:"UtcCreatetime" xml:"UtcCreatetime"` + TemplateType int `json:"TemplateType" xml:"TemplateType"` + SmsTemplateCode int `json:"SmsTemplateCode" xml:"SmsTemplateCode"` + Smsrejectinfo int `json:"Smsrejectinfo" xml:"Smsrejectinfo"` + SmsStatus int `json:"SmsStatus" xml:"SmsStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/update_domain_track_name.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/update_domain_track_name.go new file mode 100644 index 0000000..009ee63 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/update_domain_track_name.go @@ -0,0 +1,107 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateDomainTrackName invokes the dm.UpdateDomainTrackName API synchronously +// api document: https://help.aliyun.com/api/dm/updatedomaintrackname.html +func (client *Client) UpdateDomainTrackName(request *UpdateDomainTrackNameRequest) (response *UpdateDomainTrackNameResponse, err error) { + response = CreateUpdateDomainTrackNameResponse() + err = client.DoAction(request, response) + return +} + +// UpdateDomainTrackNameWithChan invokes the dm.UpdateDomainTrackName API asynchronously +// api document: https://help.aliyun.com/api/dm/updatedomaintrackname.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateDomainTrackNameWithChan(request *UpdateDomainTrackNameRequest) (<-chan *UpdateDomainTrackNameResponse, <-chan error) { + responseChan := make(chan *UpdateDomainTrackNameResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateDomainTrackName(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateDomainTrackNameWithCallback invokes the dm.UpdateDomainTrackName API asynchronously +// api document: https://help.aliyun.com/api/dm/updatedomaintrackname.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateDomainTrackNameWithCallback(request *UpdateDomainTrackNameRequest, callback func(response *UpdateDomainTrackNameResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateDomainTrackNameResponse + var err error + defer close(result) + response, err = client.UpdateDomainTrackName(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateDomainTrackNameRequest is the request struct for api UpdateDomainTrackName +type UpdateDomainTrackNameRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DomainId requests.Integer `position:"Query" name:"DomainId"` + CnameTrackRecord string `position:"Query" name:"CnameTrackRecord"` +} + +// UpdateDomainTrackNameResponse is the response struct for api UpdateDomainTrackName +type UpdateDomainTrackNameResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateDomainTrackNameRequest creates a request to invoke UpdateDomainTrackName API +func CreateUpdateDomainTrackNameRequest() (request *UpdateDomainTrackNameRequest) { + request = &UpdateDomainTrackNameRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "UpdateDomainTrackName", "", "") + return +} + +// CreateUpdateDomainTrackNameResponse creates a response to parse from UpdateDomainTrackName response +func CreateUpdateDomainTrackNameResponse() (response *UpdateDomainTrackNameResponse) { + response = &UpdateDomainTrackNameResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/update_ip_protection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/update_ip_protection.go new file mode 100644 index 0000000..4e69245 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dm/update_ip_protection.go @@ -0,0 +1,106 @@ +package dm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateIpProtection invokes the dm.UpdateIpProtection API synchronously +// api document: https://help.aliyun.com/api/dm/updateipprotection.html +func (client *Client) UpdateIpProtection(request *UpdateIpProtectionRequest) (response *UpdateIpProtectionResponse, err error) { + response = CreateUpdateIpProtectionResponse() + err = client.DoAction(request, response) + return +} + +// UpdateIpProtectionWithChan invokes the dm.UpdateIpProtection API asynchronously +// api document: https://help.aliyun.com/api/dm/updateipprotection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateIpProtectionWithChan(request *UpdateIpProtectionRequest) (<-chan *UpdateIpProtectionResponse, <-chan error) { + responseChan := make(chan *UpdateIpProtectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateIpProtection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateIpProtectionWithCallback invokes the dm.UpdateIpProtection API asynchronously +// api document: https://help.aliyun.com/api/dm/updateipprotection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateIpProtectionWithCallback(request *UpdateIpProtectionRequest, callback func(response *UpdateIpProtectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateIpProtectionResponse + var err error + defer close(result) + response, err = client.UpdateIpProtection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateIpProtectionRequest is the request struct for api UpdateIpProtection +type UpdateIpProtectionRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + IpProtection string `position:"Query" name:"IpProtection"` +} + +// UpdateIpProtectionResponse is the response struct for api UpdateIpProtection +type UpdateIpProtectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateIpProtectionRequest creates a request to invoke UpdateIpProtection API +func CreateUpdateIpProtectionRequest() (request *UpdateIpProtectionRequest) { + request = &UpdateIpProtectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dm", "2015-11-23", "UpdateIpProtection", "", "") + return +} + +// CreateUpdateIpProtectionResponse creates a response to parse from UpdateIpProtection response +func CreateUpdateIpProtectionResponse() (response *UpdateIpProtectionResponse) { + response = &UpdateIpProtectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/acknowledge_task_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/acknowledge_task_result.go new file mode 100644 index 0000000..6de15d8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/acknowledge_task_result.go @@ -0,0 +1,106 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AcknowledgeTaskResult invokes the domain_intl.AcknowledgeTaskResult API synchronously +// api document: https://help.aliyun.com/api/domain-intl/acknowledgetaskresult.html +func (client *Client) AcknowledgeTaskResult(request *AcknowledgeTaskResultRequest) (response *AcknowledgeTaskResultResponse, err error) { + response = CreateAcknowledgeTaskResultResponse() + err = client.DoAction(request, response) + return +} + +// AcknowledgeTaskResultWithChan invokes the domain_intl.AcknowledgeTaskResult API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/acknowledgetaskresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AcknowledgeTaskResultWithChan(request *AcknowledgeTaskResultRequest) (<-chan *AcknowledgeTaskResultResponse, <-chan error) { + responseChan := make(chan *AcknowledgeTaskResultResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AcknowledgeTaskResult(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AcknowledgeTaskResultWithCallback invokes the domain_intl.AcknowledgeTaskResult API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/acknowledgetaskresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AcknowledgeTaskResultWithCallback(request *AcknowledgeTaskResultRequest, callback func(response *AcknowledgeTaskResultResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AcknowledgeTaskResultResponse + var err error + defer close(result) + response, err = client.AcknowledgeTaskResult(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AcknowledgeTaskResultRequest is the request struct for api AcknowledgeTaskResult +type AcknowledgeTaskResultRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + TaskDetailNo *[]string `position:"Query" name:"TaskDetailNo" type:"Repeated"` +} + +// AcknowledgeTaskResultResponse is the response struct for api AcknowledgeTaskResult +type AcknowledgeTaskResultResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Result int `json:"Result" xml:"Result"` +} + +// CreateAcknowledgeTaskResultRequest creates a request to invoke AcknowledgeTaskResult API +func CreateAcknowledgeTaskResultRequest() (request *AcknowledgeTaskResultRequest) { + request = &AcknowledgeTaskResultRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "AcknowledgeTaskResult", "domain", "openAPI") + return +} + +// CreateAcknowledgeTaskResultResponse creates a response to parse from AcknowledgeTaskResult response +func CreateAcknowledgeTaskResultResponse() (response *AcknowledgeTaskResultResponse) { + response = &AcknowledgeTaskResultResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/check_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/check_domain.go new file mode 100644 index 0000000..db6f61a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/check_domain.go @@ -0,0 +1,106 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckDomain invokes the domain_intl.CheckDomain API synchronously +// api document: https://help.aliyun.com/api/domain-intl/checkdomain.html +func (client *Client) CheckDomain(request *CheckDomainRequest) (response *CheckDomainResponse, err error) { + response = CreateCheckDomainResponse() + err = client.DoAction(request, response) + return +} + +// CheckDomainWithChan invokes the domain_intl.CheckDomain API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/checkdomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckDomainWithChan(request *CheckDomainRequest) (<-chan *CheckDomainResponse, <-chan error) { + responseChan := make(chan *CheckDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckDomainWithCallback invokes the domain_intl.CheckDomain API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/checkdomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckDomainWithCallback(request *CheckDomainRequest, callback func(response *CheckDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckDomainResponse + var err error + defer close(result) + response, err = client.CheckDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckDomainRequest is the request struct for api CheckDomain +type CheckDomainRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` +} + +// CheckDomainResponse is the response struct for api CheckDomain +type CheckDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + Avail string `json:"Avail" xml:"Avail"` + Premium string `json:"Premium" xml:"Premium"` +} + +// CreateCheckDomainRequest creates a request to invoke CheckDomain API +func CreateCheckDomainRequest() (request *CheckDomainRequest) { + request = &CheckDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "CheckDomain", "domain", "openAPI") + return +} + +// CreateCheckDomainResponse creates a response to parse from CheckDomain response +func CreateCheckDomainResponse() (response *CheckDomainResponse) { + response = &CheckDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/check_transfer_in_feasibility.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/check_transfer_in_feasibility.go new file mode 100644 index 0000000..bfe109f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/check_transfer_in_feasibility.go @@ -0,0 +1,110 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckTransferInFeasibility invokes the domain_intl.CheckTransferInFeasibility API synchronously +// api document: https://help.aliyun.com/api/domain-intl/checktransferinfeasibility.html +func (client *Client) CheckTransferInFeasibility(request *CheckTransferInFeasibilityRequest) (response *CheckTransferInFeasibilityResponse, err error) { + response = CreateCheckTransferInFeasibilityResponse() + err = client.DoAction(request, response) + return +} + +// CheckTransferInFeasibilityWithChan invokes the domain_intl.CheckTransferInFeasibility API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/checktransferinfeasibility.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckTransferInFeasibilityWithChan(request *CheckTransferInFeasibilityRequest) (<-chan *CheckTransferInFeasibilityResponse, <-chan error) { + responseChan := make(chan *CheckTransferInFeasibilityResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckTransferInFeasibility(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckTransferInFeasibilityWithCallback invokes the domain_intl.CheckTransferInFeasibility API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/checktransferinfeasibility.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckTransferInFeasibilityWithCallback(request *CheckTransferInFeasibilityRequest, callback func(response *CheckTransferInFeasibilityResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckTransferInFeasibilityResponse + var err error + defer close(result) + response, err = client.CheckTransferInFeasibility(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckTransferInFeasibilityRequest is the request struct for api CheckTransferInFeasibility +type CheckTransferInFeasibilityRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + TransferAuthorizationCode string `position:"Query" name:"TransferAuthorizationCode"` +} + +// CheckTransferInFeasibilityResponse is the response struct for api CheckTransferInFeasibility +type CheckTransferInFeasibilityResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CanTransfer bool `json:"CanTransfer" xml:"CanTransfer"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + ProductId string `json:"ProductId" xml:"ProductId"` +} + +// CreateCheckTransferInFeasibilityRequest creates a request to invoke CheckTransferInFeasibility API +func CreateCheckTransferInFeasibilityRequest() (request *CheckTransferInFeasibilityRequest) { + request = &CheckTransferInFeasibilityRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "CheckTransferInFeasibility", "domain", "openAPI") + return +} + +// CreateCheckTransferInFeasibilityResponse creates a response to parse from CheckTransferInFeasibility response +func CreateCheckTransferInFeasibilityResponse() (response *CheckTransferInFeasibilityResponse) { + response = &CheckTransferInFeasibilityResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/client.go new file mode 100644 index 0000000..72d2e3f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/client.go @@ -0,0 +1,81 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/confirm_transfer_in_email.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/confirm_transfer_in_email.go new file mode 100644 index 0000000..aa3dc02 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/confirm_transfer_in_email.go @@ -0,0 +1,108 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ConfirmTransferInEmail invokes the domain_intl.ConfirmTransferInEmail API synchronously +// api document: https://help.aliyun.com/api/domain-intl/confirmtransferinemail.html +func (client *Client) ConfirmTransferInEmail(request *ConfirmTransferInEmailRequest) (response *ConfirmTransferInEmailResponse, err error) { + response = CreateConfirmTransferInEmailResponse() + err = client.DoAction(request, response) + return +} + +// ConfirmTransferInEmailWithChan invokes the domain_intl.ConfirmTransferInEmail API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/confirmtransferinemail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ConfirmTransferInEmailWithChan(request *ConfirmTransferInEmailRequest) (<-chan *ConfirmTransferInEmailResponse, <-chan error) { + responseChan := make(chan *ConfirmTransferInEmailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ConfirmTransferInEmail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ConfirmTransferInEmailWithCallback invokes the domain_intl.ConfirmTransferInEmail API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/confirmtransferinemail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ConfirmTransferInEmailWithCallback(request *ConfirmTransferInEmailRequest, callback func(response *ConfirmTransferInEmailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ConfirmTransferInEmailResponse + var err error + defer close(result) + response, err = client.ConfirmTransferInEmail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ConfirmTransferInEmailRequest is the request struct for api ConfirmTransferInEmail +type ConfirmTransferInEmailRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` +} + +// ConfirmTransferInEmailResponse is the response struct for api ConfirmTransferInEmail +type ConfirmTransferInEmailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SuccessList SuccessListInConfirmTransferInEmail `json:"SuccessList" xml:"SuccessList"` + FailList FailListInConfirmTransferInEmail `json:"FailList" xml:"FailList"` +} + +// CreateConfirmTransferInEmailRequest creates a request to invoke ConfirmTransferInEmail API +func CreateConfirmTransferInEmailRequest() (request *ConfirmTransferInEmailRequest) { + request = &ConfirmTransferInEmailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "ConfirmTransferInEmail", "domain", "openAPI") + return +} + +// CreateConfirmTransferInEmailResponse creates a response to parse from ConfirmTransferInEmail response +func CreateConfirmTransferInEmailResponse() (response *ConfirmTransferInEmailResponse) { + response = &ConfirmTransferInEmailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/delete_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/delete_email_verification.go new file mode 100644 index 0000000..8b69339 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/delete_email_verification.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteEmailVerification invokes the domain_intl.DeleteEmailVerification API synchronously +// api document: https://help.aliyun.com/api/domain-intl/deleteemailverification.html +func (client *Client) DeleteEmailVerification(request *DeleteEmailVerificationRequest) (response *DeleteEmailVerificationResponse, err error) { + response = CreateDeleteEmailVerificationResponse() + err = client.DoAction(request, response) + return +} + +// DeleteEmailVerificationWithChan invokes the domain_intl.DeleteEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/deleteemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteEmailVerificationWithChan(request *DeleteEmailVerificationRequest) (<-chan *DeleteEmailVerificationResponse, <-chan error) { + responseChan := make(chan *DeleteEmailVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteEmailVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteEmailVerificationWithCallback invokes the domain_intl.DeleteEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/deleteemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteEmailVerificationWithCallback(request *DeleteEmailVerificationRequest, callback func(response *DeleteEmailVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteEmailVerificationResponse + var err error + defer close(result) + response, err = client.DeleteEmailVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteEmailVerificationRequest is the request struct for api DeleteEmailVerification +type DeleteEmailVerificationRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// DeleteEmailVerificationResponse is the response struct for api DeleteEmailVerification +type DeleteEmailVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SuccessList []SendResult `json:"SuccessList" xml:"SuccessList"` + FailList []SendResult `json:"FailList" xml:"FailList"` +} + +// CreateDeleteEmailVerificationRequest creates a request to invoke DeleteEmailVerification API +func CreateDeleteEmailVerificationRequest() (request *DeleteEmailVerificationRequest) { + request = &DeleteEmailVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "DeleteEmailVerification", "domain", "openAPI") + return +} + +// CreateDeleteEmailVerificationResponse creates a response to parse from DeleteEmailVerification response +func CreateDeleteEmailVerificationResponse() (response *DeleteEmailVerificationResponse) { + response = &DeleteEmailVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/delete_registrant_profile.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/delete_registrant_profile.go new file mode 100644 index 0000000..1573934 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/delete_registrant_profile.go @@ -0,0 +1,105 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteRegistrantProfile invokes the domain_intl.DeleteRegistrantProfile API synchronously +// api document: https://help.aliyun.com/api/domain-intl/deleteregistrantprofile.html +func (client *Client) DeleteRegistrantProfile(request *DeleteRegistrantProfileRequest) (response *DeleteRegistrantProfileResponse, err error) { + response = CreateDeleteRegistrantProfileResponse() + err = client.DoAction(request, response) + return +} + +// DeleteRegistrantProfileWithChan invokes the domain_intl.DeleteRegistrantProfile API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/deleteregistrantprofile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteRegistrantProfileWithChan(request *DeleteRegistrantProfileRequest) (<-chan *DeleteRegistrantProfileResponse, <-chan error) { + responseChan := make(chan *DeleteRegistrantProfileResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteRegistrantProfile(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteRegistrantProfileWithCallback invokes the domain_intl.DeleteRegistrantProfile API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/deleteregistrantprofile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteRegistrantProfileWithCallback(request *DeleteRegistrantProfileRequest, callback func(response *DeleteRegistrantProfileResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteRegistrantProfileResponse + var err error + defer close(result) + response, err = client.DeleteRegistrantProfile(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteRegistrantProfileRequest is the request struct for api DeleteRegistrantProfile +type DeleteRegistrantProfileRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` +} + +// DeleteRegistrantProfileResponse is the response struct for api DeleteRegistrantProfile +type DeleteRegistrantProfileResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteRegistrantProfileRequest creates a request to invoke DeleteRegistrantProfile API +func CreateDeleteRegistrantProfileRequest() (request *DeleteRegistrantProfileRequest) { + request = &DeleteRegistrantProfileRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "DeleteRegistrantProfile", "domain", "openAPI") + return +} + +// CreateDeleteRegistrantProfileResponse creates a response to parse from DeleteRegistrantProfile response +func CreateDeleteRegistrantProfileResponse() (response *DeleteRegistrantProfileResponse) { + response = &DeleteRegistrantProfileResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/email_verified.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/email_verified.go new file mode 100644 index 0000000..10e58a6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/email_verified.go @@ -0,0 +1,105 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EmailVerified invokes the domain_intl.EmailVerified API synchronously +// api document: https://help.aliyun.com/api/domain-intl/emailverified.html +func (client *Client) EmailVerified(request *EmailVerifiedRequest) (response *EmailVerifiedResponse, err error) { + response = CreateEmailVerifiedResponse() + err = client.DoAction(request, response) + return +} + +// EmailVerifiedWithChan invokes the domain_intl.EmailVerified API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/emailverified.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EmailVerifiedWithChan(request *EmailVerifiedRequest) (<-chan *EmailVerifiedResponse, <-chan error) { + responseChan := make(chan *EmailVerifiedResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EmailVerified(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EmailVerifiedWithCallback invokes the domain_intl.EmailVerified API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/emailverified.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EmailVerifiedWithCallback(request *EmailVerifiedRequest, callback func(response *EmailVerifiedResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EmailVerifiedResponse + var err error + defer close(result) + response, err = client.EmailVerified(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EmailVerifiedRequest is the request struct for api EmailVerified +type EmailVerifiedRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Email string `position:"Query" name:"Email"` +} + +// EmailVerifiedResponse is the response struct for api EmailVerified +type EmailVerifiedResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateEmailVerifiedRequest creates a request to invoke EmailVerified API +func CreateEmailVerifiedRequest() (request *EmailVerifiedRequest) { + request = &EmailVerifiedRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "EmailVerified", "domain", "openAPI") + return +} + +// CreateEmailVerifiedResponse creates a response to parse from EmailVerified response +func CreateEmailVerifiedResponse() (response *EmailVerifiedResponse) { + response = &EmailVerifiedResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/list_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/list_email_verification.go new file mode 100644 index 0000000..78659c3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/list_email_verification.go @@ -0,0 +1,116 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListEmailVerification invokes the domain_intl.ListEmailVerification API synchronously +// api document: https://help.aliyun.com/api/domain-intl/listemailverification.html +func (client *Client) ListEmailVerification(request *ListEmailVerificationRequest) (response *ListEmailVerificationResponse, err error) { + response = CreateListEmailVerificationResponse() + err = client.DoAction(request, response) + return +} + +// ListEmailVerificationWithChan invokes the domain_intl.ListEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/listemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListEmailVerificationWithChan(request *ListEmailVerificationRequest) (<-chan *ListEmailVerificationResponse, <-chan error) { + responseChan := make(chan *ListEmailVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListEmailVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListEmailVerificationWithCallback invokes the domain_intl.ListEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/listemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListEmailVerificationWithCallback(request *ListEmailVerificationRequest, callback func(response *ListEmailVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListEmailVerificationResponse + var err error + defer close(result) + response, err = client.ListEmailVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListEmailVerificationRequest is the request struct for api ListEmailVerification +type ListEmailVerificationRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + BeginCreateTime requests.Integer `position:"Query" name:"BeginCreateTime"` + EndCreateTime requests.Integer `position:"Query" name:"EndCreateTime"` + Email string `position:"Query" name:"Email"` + VerificationStatus requests.Integer `position:"Query" name:"VerificationStatus"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// ListEmailVerificationResponse is the response struct for api ListEmailVerification +type ListEmailVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data []EmailVerification `json:"Data" xml:"Data"` +} + +// CreateListEmailVerificationRequest creates a request to invoke ListEmailVerification API +func CreateListEmailVerificationRequest() (request *ListEmailVerificationRequest) { + request = &ListEmailVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "ListEmailVerification", "domain", "openAPI") + return +} + +// CreateListEmailVerificationResponse creates a response to parse from ListEmailVerification response +func CreateListEmailVerificationResponse() (response *ListEmailVerificationResponse) { + response = &ListEmailVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/poll_task_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/poll_task_result.go new file mode 100644 index 0000000..a57eb0c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/poll_task_result.go @@ -0,0 +1,117 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PollTaskResult invokes the domain_intl.PollTaskResult API synchronously +// api document: https://help.aliyun.com/api/domain-intl/polltaskresult.html +func (client *Client) PollTaskResult(request *PollTaskResultRequest) (response *PollTaskResultResponse, err error) { + response = CreatePollTaskResultResponse() + err = client.DoAction(request, response) + return +} + +// PollTaskResultWithChan invokes the domain_intl.PollTaskResult API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/polltaskresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PollTaskResultWithChan(request *PollTaskResultRequest) (<-chan *PollTaskResultResponse, <-chan error) { + responseChan := make(chan *PollTaskResultResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PollTaskResult(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PollTaskResultWithCallback invokes the domain_intl.PollTaskResult API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/polltaskresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PollTaskResultWithCallback(request *PollTaskResultRequest, callback func(response *PollTaskResultResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PollTaskResultResponse + var err error + defer close(result) + response, err = client.PollTaskResult(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PollTaskResultRequest is the request struct for api PollTaskResult +type PollTaskResultRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + TaskNo string `position:"Query" name:"TaskNo"` + DomainName string `position:"Query" name:"DomainName"` + InstanceId string `position:"Query" name:"InstanceId"` + TaskResultStatus requests.Integer `position:"Query" name:"TaskResultStatus"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// PollTaskResultResponse is the response struct for api PollTaskResult +type PollTaskResultResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data DataInPollTaskResult `json:"Data" xml:"Data"` +} + +// CreatePollTaskResultRequest creates a request to invoke PollTaskResult API +func CreatePollTaskResultRequest() (request *PollTaskResultRequest) { + request = &PollTaskResultRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "PollTaskResult", "domain", "openAPI") + return +} + +// CreatePollTaskResultResponse creates a response to parse from PollTaskResult response +func CreatePollTaskResultResponse() (response *PollTaskResultResponse) { + response = &PollTaskResultResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_change_log_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_change_log_list.go new file mode 100644 index 0000000..19b5ff1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_change_log_list.go @@ -0,0 +1,117 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryChangeLogList invokes the domain_intl.QueryChangeLogList API synchronously +// api document: https://help.aliyun.com/api/domain-intl/querychangeloglist.html +func (client *Client) QueryChangeLogList(request *QueryChangeLogListRequest) (response *QueryChangeLogListResponse, err error) { + response = CreateQueryChangeLogListResponse() + err = client.DoAction(request, response) + return +} + +// QueryChangeLogListWithChan invokes the domain_intl.QueryChangeLogList API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querychangeloglist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryChangeLogListWithChan(request *QueryChangeLogListRequest) (<-chan *QueryChangeLogListResponse, <-chan error) { + responseChan := make(chan *QueryChangeLogListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryChangeLogList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryChangeLogListWithCallback invokes the domain_intl.QueryChangeLogList API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querychangeloglist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryChangeLogListWithCallback(request *QueryChangeLogListRequest, callback func(response *QueryChangeLogListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryChangeLogListResponse + var err error + defer close(result) + response, err = client.QueryChangeLogList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryChangeLogListRequest is the request struct for api QueryChangeLogList +type QueryChangeLogListRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + StartDate requests.Integer `position:"Query" name:"StartDate"` + EndDate requests.Integer `position:"Query" name:"EndDate"` +} + +// QueryChangeLogListResponse is the response struct for api QueryChangeLogList +type QueryChangeLogListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + ResultLimit bool `json:"ResultLimit" xml:"ResultLimit"` + Data DataInQueryChangeLogList `json:"Data" xml:"Data"` +} + +// CreateQueryChangeLogListRequest creates a request to invoke QueryChangeLogList API +func CreateQueryChangeLogListRequest() (request *QueryChangeLogListRequest) { + request = &QueryChangeLogListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryChangeLogList", "domain", "openAPI") + return +} + +// CreateQueryChangeLogListResponse creates a response to parse from QueryChangeLogList response +func CreateQueryChangeLogListResponse() (response *QueryChangeLogListResponse) { + response = &QueryChangeLogListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_contact_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_contact_info.go new file mode 100644 index 0000000..c271dbb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_contact_info.go @@ -0,0 +1,118 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryContactInfo invokes the domain_intl.QueryContactInfo API synchronously +// api document: https://help.aliyun.com/api/domain-intl/querycontactinfo.html +func (client *Client) QueryContactInfo(request *QueryContactInfoRequest) (response *QueryContactInfoResponse, err error) { + response = CreateQueryContactInfoResponse() + err = client.DoAction(request, response) + return +} + +// QueryContactInfoWithChan invokes the domain_intl.QueryContactInfo API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querycontactinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryContactInfoWithChan(request *QueryContactInfoRequest) (<-chan *QueryContactInfoResponse, <-chan error) { + responseChan := make(chan *QueryContactInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryContactInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryContactInfoWithCallback invokes the domain_intl.QueryContactInfo API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querycontactinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryContactInfoWithCallback(request *QueryContactInfoRequest, callback func(response *QueryContactInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryContactInfoResponse + var err error + defer close(result) + response, err = client.QueryContactInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryContactInfoRequest is the request struct for api QueryContactInfo +type QueryContactInfoRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + ContactType string `position:"Query" name:"ContactType"` +} + +// QueryContactInfoResponse is the response struct for api QueryContactInfo +type QueryContactInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CreateDate string `json:"CreateDate" xml:"CreateDate"` + RegistrantName string `json:"RegistrantName" xml:"RegistrantName"` + RegistrantOrganization string `json:"RegistrantOrganization" xml:"RegistrantOrganization"` + Country string `json:"Country" xml:"Country"` + Province string `json:"Province" xml:"Province"` + City string `json:"City" xml:"City"` + Address string `json:"Address" xml:"Address"` + Email string `json:"Email" xml:"Email"` + PostalCode string `json:"PostalCode" xml:"PostalCode"` + TelArea string `json:"TelArea" xml:"TelArea"` + Telephone string `json:"Telephone" xml:"Telephone"` + TelExt string `json:"TelExt" xml:"TelExt"` +} + +// CreateQueryContactInfoRequest creates a request to invoke QueryContactInfo API +func CreateQueryContactInfoRequest() (request *QueryContactInfoRequest) { + request = &QueryContactInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryContactInfo", "domain", "openAPI") + return +} + +// CreateQueryContactInfoResponse creates a response to parse from QueryContactInfo response +func CreateQueryContactInfoResponse() (response *QueryContactInfoResponse) { + response = &QueryContactInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_dns_host.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_dns_host.go new file mode 100644 index 0000000..2d313bb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_dns_host.go @@ -0,0 +1,105 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDnsHost invokes the domain_intl.QueryDnsHost API synchronously +// api document: https://help.aliyun.com/api/domain-intl/querydnshost.html +func (client *Client) QueryDnsHost(request *QueryDnsHostRequest) (response *QueryDnsHostResponse, err error) { + response = CreateQueryDnsHostResponse() + err = client.DoAction(request, response) + return +} + +// QueryDnsHostWithChan invokes the domain_intl.QueryDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querydnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDnsHostWithChan(request *QueryDnsHostRequest) (<-chan *QueryDnsHostResponse, <-chan error) { + responseChan := make(chan *QueryDnsHostResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDnsHost(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDnsHostWithCallback invokes the domain_intl.QueryDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querydnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDnsHostWithCallback(request *QueryDnsHostRequest, callback func(response *QueryDnsHostResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDnsHostResponse + var err error + defer close(result) + response, err = client.QueryDnsHost(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDnsHostRequest is the request struct for api QueryDnsHost +type QueryDnsHostRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryDnsHostResponse is the response struct for api QueryDnsHost +type QueryDnsHostResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DnsHostList []DnsHost `json:"DnsHostList" xml:"DnsHostList"` +} + +// CreateQueryDnsHostRequest creates a request to invoke QueryDnsHost API +func CreateQueryDnsHostRequest() (request *QueryDnsHostRequest) { + request = &QueryDnsHostRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryDnsHost", "domain", "openAPI") + return +} + +// CreateQueryDnsHostResponse creates a response to parse from QueryDnsHost response +func CreateQueryDnsHostResponse() (response *QueryDnsHostResponse) { + response = &QueryDnsHostResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_domain_by_instance_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_domain_by_instance_id.go new file mode 100644 index 0000000..346bc8d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_domain_by_instance_id.go @@ -0,0 +1,119 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDomainByInstanceId invokes the domain_intl.QueryDomainByInstanceId API synchronously +// api document: https://help.aliyun.com/api/domain-intl/querydomainbyinstanceid.html +func (client *Client) QueryDomainByInstanceId(request *QueryDomainByInstanceIdRequest) (response *QueryDomainByInstanceIdResponse, err error) { + response = CreateQueryDomainByInstanceIdResponse() + err = client.DoAction(request, response) + return +} + +// QueryDomainByInstanceIdWithChan invokes the domain_intl.QueryDomainByInstanceId API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querydomainbyinstanceid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDomainByInstanceIdWithChan(request *QueryDomainByInstanceIdRequest) (<-chan *QueryDomainByInstanceIdResponse, <-chan error) { + responseChan := make(chan *QueryDomainByInstanceIdResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDomainByInstanceId(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDomainByInstanceIdWithCallback invokes the domain_intl.QueryDomainByInstanceId API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querydomainbyinstanceid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDomainByInstanceIdWithCallback(request *QueryDomainByInstanceIdRequest, callback func(response *QueryDomainByInstanceIdResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDomainByInstanceIdResponse + var err error + defer close(result) + response, err = client.QueryDomainByInstanceId(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDomainByInstanceIdRequest is the request struct for api QueryDomainByInstanceId +type QueryDomainByInstanceIdRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// QueryDomainByInstanceIdResponse is the response struct for api QueryDomainByInstanceId +type QueryDomainByInstanceIdResponse struct { + *responses.BaseResponse + UserId string `json:"UserId" xml:"UserId"` + DomainName string `json:"DomainName" xml:"DomainName"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + RegistrationDate string `json:"RegistrationDate" xml:"RegistrationDate"` + ExpirationDate string `json:"ExpirationDate" xml:"ExpirationDate"` + RegistrantOrganization string `json:"RegistrantOrganization" xml:"RegistrantOrganization"` + RegistrantName string `json:"RegistrantName" xml:"RegistrantName"` + Email string `json:"Email" xml:"Email"` + UpdateProhibitionLock string `json:"UpdateProhibitionLock" xml:"UpdateProhibitionLock"` + TransferProhibitionLock string `json:"TransferProhibitionLock" xml:"TransferProhibitionLock"` + DomainNameProxyService bool `json:"DomainNameProxyService" xml:"DomainNameProxyService"` + Premium bool `json:"Premium" xml:"Premium"` + EmailVerificationStatus int `json:"EmailVerificationStatus" xml:"EmailVerificationStatus"` + EmailVerificationClientHold bool `json:"EmailVerificationClientHold" xml:"EmailVerificationClientHold"` + DnsList DnsList `json:"DnsList" xml:"DnsList"` +} + +// CreateQueryDomainByInstanceIdRequest creates a request to invoke QueryDomainByInstanceId API +func CreateQueryDomainByInstanceIdRequest() (request *QueryDomainByInstanceIdRequest) { + request = &QueryDomainByInstanceIdRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryDomainByInstanceId", "domain", "openAPI") + return +} + +// CreateQueryDomainByInstanceIdResponse creates a response to parse from QueryDomainByInstanceId response +func CreateQueryDomainByInstanceIdResponse() (response *QueryDomainByInstanceIdResponse) { + response = &QueryDomainByInstanceIdResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_domain_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_domain_list.go new file mode 100644 index 0000000..5917dc1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_domain_list.go @@ -0,0 +1,122 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDomainList invokes the domain_intl.QueryDomainList API synchronously +// api document: https://help.aliyun.com/api/domain-intl/querydomainlist.html +func (client *Client) QueryDomainList(request *QueryDomainListRequest) (response *QueryDomainListResponse, err error) { + response = CreateQueryDomainListResponse() + err = client.DoAction(request, response) + return +} + +// QueryDomainListWithChan invokes the domain_intl.QueryDomainList API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querydomainlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDomainListWithChan(request *QueryDomainListRequest) (<-chan *QueryDomainListResponse, <-chan error) { + responseChan := make(chan *QueryDomainListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDomainList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDomainListWithCallback invokes the domain_intl.QueryDomainList API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querydomainlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDomainListWithCallback(request *QueryDomainListRequest, callback func(response *QueryDomainListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDomainListResponse + var err error + defer close(result) + response, err = client.QueryDomainList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDomainListRequest is the request struct for api QueryDomainList +type QueryDomainListRequest struct { + *requests.RpcRequest + StartExpirationDate requests.Integer `position:"Query" name:"StartExpirationDate"` + QueryType string `position:"Query" name:"QueryType"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + EndExpirationDate requests.Integer `position:"Query" name:"EndExpirationDate"` + StartRegistrationDate requests.Integer `position:"Query" name:"StartRegistrationDate"` + EndRegistrationDate requests.Integer `position:"Query" name:"EndRegistrationDate"` + DomainName string `position:"Query" name:"DomainName"` + OrderByType string `position:"Query" name:"OrderByType"` + OrderKeyType string `position:"Query" name:"OrderKeyType"` + ProductDomainType string `position:"Query" name:"ProductDomainType"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// QueryDomainListResponse is the response struct for api QueryDomainList +type QueryDomainListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data DataInQueryDomainList `json:"Data" xml:"Data"` +} + +// CreateQueryDomainListRequest creates a request to invoke QueryDomainList API +func CreateQueryDomainListRequest() (request *QueryDomainListRequest) { + request = &QueryDomainListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryDomainList", "domain", "openAPI") + return +} + +// CreateQueryDomainListResponse creates a response to parse from QueryDomainList response +func CreateQueryDomainListResponse() (response *QueryDomainListResponse) { + response = &QueryDomainListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_registrant_profiles.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_registrant_profiles.go new file mode 100644 index 0000000..9813eae --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_registrant_profiles.go @@ -0,0 +1,116 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryRegistrantProfiles invokes the domain_intl.QueryRegistrantProfiles API synchronously +// api document: https://help.aliyun.com/api/domain-intl/queryregistrantprofiles.html +func (client *Client) QueryRegistrantProfiles(request *QueryRegistrantProfilesRequest) (response *QueryRegistrantProfilesResponse, err error) { + response = CreateQueryRegistrantProfilesResponse() + err = client.DoAction(request, response) + return +} + +// QueryRegistrantProfilesWithChan invokes the domain_intl.QueryRegistrantProfiles API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/queryregistrantprofiles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryRegistrantProfilesWithChan(request *QueryRegistrantProfilesRequest) (<-chan *QueryRegistrantProfilesResponse, <-chan error) { + responseChan := make(chan *QueryRegistrantProfilesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryRegistrantProfiles(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryRegistrantProfilesWithCallback invokes the domain_intl.QueryRegistrantProfiles API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/queryregistrantprofiles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryRegistrantProfilesWithCallback(request *QueryRegistrantProfilesRequest, callback func(response *QueryRegistrantProfilesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryRegistrantProfilesResponse + var err error + defer close(result) + response, err = client.QueryRegistrantProfiles(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryRegistrantProfilesRequest is the request struct for api QueryRegistrantProfiles +type QueryRegistrantProfilesRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + RegistrantOrganization string `position:"Query" name:"RegistrantOrganization"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + DefaultRegistrantProfile requests.Boolean `position:"Query" name:"DefaultRegistrantProfile"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// QueryRegistrantProfilesResponse is the response struct for api QueryRegistrantProfiles +type QueryRegistrantProfilesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + RegistrantProfiles RegistrantProfiles `json:"RegistrantProfiles" xml:"RegistrantProfiles"` +} + +// CreateQueryRegistrantProfilesRequest creates a request to invoke QueryRegistrantProfiles API +func CreateQueryRegistrantProfilesRequest() (request *QueryRegistrantProfilesRequest) { + request = &QueryRegistrantProfilesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryRegistrantProfiles", "domain", "openAPI") + return +} + +// CreateQueryRegistrantProfilesResponse creates a response to parse from QueryRegistrantProfiles response +func CreateQueryRegistrantProfilesResponse() (response *QueryRegistrantProfilesResponse) { + response = &QueryRegistrantProfilesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_task_detail_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_task_detail_history.go new file mode 100644 index 0000000..4595f79 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_task_detail_history.go @@ -0,0 +1,115 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTaskDetailHistory invokes the domain_intl.QueryTaskDetailHistory API synchronously +// api document: https://help.aliyun.com/api/domain-intl/querytaskdetailhistory.html +func (client *Client) QueryTaskDetailHistory(request *QueryTaskDetailHistoryRequest) (response *QueryTaskDetailHistoryResponse, err error) { + response = CreateQueryTaskDetailHistoryResponse() + err = client.DoAction(request, response) + return +} + +// QueryTaskDetailHistoryWithChan invokes the domain_intl.QueryTaskDetailHistory API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytaskdetailhistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskDetailHistoryWithChan(request *QueryTaskDetailHistoryRequest) (<-chan *QueryTaskDetailHistoryResponse, <-chan error) { + responseChan := make(chan *QueryTaskDetailHistoryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTaskDetailHistory(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTaskDetailHistoryWithCallback invokes the domain_intl.QueryTaskDetailHistory API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytaskdetailhistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskDetailHistoryWithCallback(request *QueryTaskDetailHistoryRequest, callback func(response *QueryTaskDetailHistoryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTaskDetailHistoryResponse + var err error + defer close(result) + response, err = client.QueryTaskDetailHistory(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTaskDetailHistoryRequest is the request struct for api QueryTaskDetailHistory +type QueryTaskDetailHistoryRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + TaskNo string `position:"Query" name:"TaskNo"` + DomainName string `position:"Query" name:"DomainName"` + DomainNameCursor string `position:"Query" name:"DomainNameCursor"` + TaskStatus requests.Integer `position:"Query" name:"TaskStatus"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + TaskDetailNoCursor string `position:"Query" name:"TaskDetailNoCursor"` +} + +// QueryTaskDetailHistoryResponse is the response struct for api QueryTaskDetailHistory +type QueryTaskDetailHistoryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + CurrentPageCursor CurrentPageCursor `json:"CurrentPageCursor" xml:"CurrentPageCursor"` + NextPageCursor NextPageCursor `json:"NextPageCursor" xml:"NextPageCursor"` + PrePageCursor PrePageCursor `json:"PrePageCursor" xml:"PrePageCursor"` + Objects []TaskDetailHistory `json:"Objects" xml:"Objects"` +} + +// CreateQueryTaskDetailHistoryRequest creates a request to invoke QueryTaskDetailHistory API +func CreateQueryTaskDetailHistoryRequest() (request *QueryTaskDetailHistoryRequest) { + request = &QueryTaskDetailHistoryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryTaskDetailHistory", "domain", "openAPI") + return +} + +// CreateQueryTaskDetailHistoryResponse creates a response to parse from QueryTaskDetailHistory response +func CreateQueryTaskDetailHistoryResponse() (response *QueryTaskDetailHistoryResponse) { + response = &QueryTaskDetailHistoryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_task_detail_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_task_detail_list.go new file mode 100644 index 0000000..fdc0a06 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_task_detail_list.go @@ -0,0 +1,117 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTaskDetailList invokes the domain_intl.QueryTaskDetailList API synchronously +// api document: https://help.aliyun.com/api/domain-intl/querytaskdetaillist.html +func (client *Client) QueryTaskDetailList(request *QueryTaskDetailListRequest) (response *QueryTaskDetailListResponse, err error) { + response = CreateQueryTaskDetailListResponse() + err = client.DoAction(request, response) + return +} + +// QueryTaskDetailListWithChan invokes the domain_intl.QueryTaskDetailList API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytaskdetaillist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskDetailListWithChan(request *QueryTaskDetailListRequest) (<-chan *QueryTaskDetailListResponse, <-chan error) { + responseChan := make(chan *QueryTaskDetailListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTaskDetailList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTaskDetailListWithCallback invokes the domain_intl.QueryTaskDetailList API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytaskdetaillist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskDetailListWithCallback(request *QueryTaskDetailListRequest, callback func(response *QueryTaskDetailListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTaskDetailListResponse + var err error + defer close(result) + response, err = client.QueryTaskDetailList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTaskDetailListRequest is the request struct for api QueryTaskDetailList +type QueryTaskDetailListRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + TaskNo string `position:"Query" name:"TaskNo"` + DomainName string `position:"Query" name:"DomainName"` + InstanceId string `position:"Query" name:"InstanceId"` + TaskStatus requests.Integer `position:"Query" name:"TaskStatus"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// QueryTaskDetailListResponse is the response struct for api QueryTaskDetailList +type QueryTaskDetailListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data DataInQueryTaskDetailList `json:"Data" xml:"Data"` +} + +// CreateQueryTaskDetailListRequest creates a request to invoke QueryTaskDetailList API +func CreateQueryTaskDetailListRequest() (request *QueryTaskDetailListRequest) { + request = &QueryTaskDetailListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryTaskDetailList", "domain", "openAPI") + return +} + +// CreateQueryTaskDetailListResponse creates a response to parse from QueryTaskDetailList response +func CreateQueryTaskDetailListResponse() (response *QueryTaskDetailListResponse) { + response = &QueryTaskDetailListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_task_info_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_task_info_history.go new file mode 100644 index 0000000..01fede7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_task_info_history.go @@ -0,0 +1,114 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTaskInfoHistory invokes the domain_intl.QueryTaskInfoHistory API synchronously +// api document: https://help.aliyun.com/api/domain-intl/querytaskinfohistory.html +func (client *Client) QueryTaskInfoHistory(request *QueryTaskInfoHistoryRequest) (response *QueryTaskInfoHistoryResponse, err error) { + response = CreateQueryTaskInfoHistoryResponse() + err = client.DoAction(request, response) + return +} + +// QueryTaskInfoHistoryWithChan invokes the domain_intl.QueryTaskInfoHistory API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytaskinfohistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskInfoHistoryWithChan(request *QueryTaskInfoHistoryRequest) (<-chan *QueryTaskInfoHistoryResponse, <-chan error) { + responseChan := make(chan *QueryTaskInfoHistoryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTaskInfoHistory(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTaskInfoHistoryWithCallback invokes the domain_intl.QueryTaskInfoHistory API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytaskinfohistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskInfoHistoryWithCallback(request *QueryTaskInfoHistoryRequest, callback func(response *QueryTaskInfoHistoryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTaskInfoHistoryResponse + var err error + defer close(result) + response, err = client.QueryTaskInfoHistory(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTaskInfoHistoryRequest is the request struct for api QueryTaskInfoHistory +type QueryTaskInfoHistoryRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + BeginCreateTime requests.Integer `position:"Query" name:"BeginCreateTime"` + EndCreateTime requests.Integer `position:"Query" name:"EndCreateTime"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + CreateTimeCursor requests.Integer `position:"Query" name:"CreateTimeCursor"` + TaskNoCursor string `position:"Query" name:"TaskNoCursor"` +} + +// QueryTaskInfoHistoryResponse is the response struct for api QueryTaskInfoHistory +type QueryTaskInfoHistoryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + CurrentPageCursor CurrentPageCursor `json:"CurrentPageCursor" xml:"CurrentPageCursor"` + NextPageCursor NextPageCursor `json:"NextPageCursor" xml:"NextPageCursor"` + PrePageCursor PrePageCursor `json:"PrePageCursor" xml:"PrePageCursor"` + Objects []TaskInfoHistory `json:"Objects" xml:"Objects"` +} + +// CreateQueryTaskInfoHistoryRequest creates a request to invoke QueryTaskInfoHistory API +func CreateQueryTaskInfoHistoryRequest() (request *QueryTaskInfoHistoryRequest) { + request = &QueryTaskInfoHistoryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryTaskInfoHistory", "domain", "openAPI") + return +} + +// CreateQueryTaskInfoHistoryResponse creates a response to parse from QueryTaskInfoHistory response +func CreateQueryTaskInfoHistoryResponse() (response *QueryTaskInfoHistoryResponse) { + response = &QueryTaskInfoHistoryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_task_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_task_list.go new file mode 100644 index 0000000..c518650 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_task_list.go @@ -0,0 +1,115 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTaskList invokes the domain_intl.QueryTaskList API synchronously +// api document: https://help.aliyun.com/api/domain-intl/querytasklist.html +func (client *Client) QueryTaskList(request *QueryTaskListRequest) (response *QueryTaskListResponse, err error) { + response = CreateQueryTaskListResponse() + err = client.DoAction(request, response) + return +} + +// QueryTaskListWithChan invokes the domain_intl.QueryTaskList API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytasklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskListWithChan(request *QueryTaskListRequest) (<-chan *QueryTaskListResponse, <-chan error) { + responseChan := make(chan *QueryTaskListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTaskList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTaskListWithCallback invokes the domain_intl.QueryTaskList API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytasklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskListWithCallback(request *QueryTaskListRequest, callback func(response *QueryTaskListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTaskListResponse + var err error + defer close(result) + response, err = client.QueryTaskList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTaskListRequest is the request struct for api QueryTaskList +type QueryTaskListRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + BeginCreateTime requests.Integer `position:"Query" name:"BeginCreateTime"` + EndCreateTime requests.Integer `position:"Query" name:"EndCreateTime"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// QueryTaskListResponse is the response struct for api QueryTaskList +type QueryTaskListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data DataInQueryTaskList `json:"Data" xml:"Data"` +} + +// CreateQueryTaskListRequest creates a request to invoke QueryTaskList API +func CreateQueryTaskListRequest() (request *QueryTaskListRequest) { + request = &QueryTaskListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryTaskList", "domain", "openAPI") + return +} + +// CreateQueryTaskListResponse creates a response to parse from QueryTaskList response +func CreateQueryTaskListResponse() (response *QueryTaskListResponse) { + response = &QueryTaskListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_transfer_in_by_instance_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_transfer_in_by_instance_id.go new file mode 100644 index 0000000..1b5cf7a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_transfer_in_by_instance_id.go @@ -0,0 +1,126 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTransferInByInstanceId invokes the domain_intl.QueryTransferInByInstanceId API synchronously +// api document: https://help.aliyun.com/api/domain-intl/querytransferinbyinstanceid.html +func (client *Client) QueryTransferInByInstanceId(request *QueryTransferInByInstanceIdRequest) (response *QueryTransferInByInstanceIdResponse, err error) { + response = CreateQueryTransferInByInstanceIdResponse() + err = client.DoAction(request, response) + return +} + +// QueryTransferInByInstanceIdWithChan invokes the domain_intl.QueryTransferInByInstanceId API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytransferinbyinstanceid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTransferInByInstanceIdWithChan(request *QueryTransferInByInstanceIdRequest) (<-chan *QueryTransferInByInstanceIdResponse, <-chan error) { + responseChan := make(chan *QueryTransferInByInstanceIdResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTransferInByInstanceId(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTransferInByInstanceIdWithCallback invokes the domain_intl.QueryTransferInByInstanceId API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytransferinbyinstanceid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTransferInByInstanceIdWithCallback(request *QueryTransferInByInstanceIdRequest, callback func(response *QueryTransferInByInstanceIdResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTransferInByInstanceIdResponse + var err error + defer close(result) + response, err = client.QueryTransferInByInstanceId(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTransferInByInstanceIdRequest is the request struct for api QueryTransferInByInstanceId +type QueryTransferInByInstanceIdRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// QueryTransferInByInstanceIdResponse is the response struct for api QueryTransferInByInstanceId +type QueryTransferInByInstanceIdResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SubmissionDate string `json:"SubmissionDate" xml:"SubmissionDate"` + ModificationDate string `json:"ModificationDate" xml:"ModificationDate"` + UserId string `json:"UserId" xml:"UserId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + DomainName string `json:"DomainName" xml:"DomainName"` + Status int `json:"Status" xml:"Status"` + SimpleTransferInStatus string `json:"SimpleTransferInStatus" xml:"SimpleTransferInStatus"` + ResultCode string `json:"ResultCode" xml:"ResultCode"` + ResultDate string `json:"ResultDate" xml:"ResultDate"` + ResultMsg string `json:"ResultMsg" xml:"ResultMsg"` + TransferAuthorizationCodeSubmissionDate string `json:"TransferAuthorizationCodeSubmissionDate" xml:"TransferAuthorizationCodeSubmissionDate"` + NeedMailCheck bool `json:"NeedMailCheck" xml:"NeedMailCheck"` + Email string `json:"Email" xml:"Email"` + WhoisMailStatus bool `json:"WhoisMailStatus" xml:"WhoisMailStatus"` + ExpirationDate string `json:"ExpirationDate" xml:"ExpirationDate"` + ProgressBarType int `json:"ProgressBarType" xml:"ProgressBarType"` + SubmissionDateLong int `json:"SubmissionDateLong" xml:"SubmissionDateLong"` + ModificationDateLong int `json:"ModificationDateLong" xml:"ModificationDateLong"` + ResultDateLong int `json:"ResultDateLong" xml:"ResultDateLong"` + ExpirationDateLong int `json:"ExpirationDateLong" xml:"ExpirationDateLong"` + TransferAuthorizationCodeSubmissionDateLong int `json:"TransferAuthorizationCodeSubmissionDateLong" xml:"TransferAuthorizationCodeSubmissionDateLong"` +} + +// CreateQueryTransferInByInstanceIdRequest creates a request to invoke QueryTransferInByInstanceId API +func CreateQueryTransferInByInstanceIdRequest() (request *QueryTransferInByInstanceIdRequest) { + request = &QueryTransferInByInstanceIdRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryTransferInByInstanceId", "domain", "openAPI") + return +} + +// CreateQueryTransferInByInstanceIdResponse creates a response to parse from QueryTransferInByInstanceId response +func CreateQueryTransferInByInstanceIdResponse() (response *QueryTransferInByInstanceIdResponse) { + response = &QueryTransferInByInstanceIdResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_transfer_in_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_transfer_in_list.go new file mode 100644 index 0000000..f00c888 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_transfer_in_list.go @@ -0,0 +1,117 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTransferInList invokes the domain_intl.QueryTransferInList API synchronously +// api document: https://help.aliyun.com/api/domain-intl/querytransferinlist.html +func (client *Client) QueryTransferInList(request *QueryTransferInListRequest) (response *QueryTransferInListResponse, err error) { + response = CreateQueryTransferInListResponse() + err = client.DoAction(request, response) + return +} + +// QueryTransferInListWithChan invokes the domain_intl.QueryTransferInList API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytransferinlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTransferInListWithChan(request *QueryTransferInListRequest) (<-chan *QueryTransferInListResponse, <-chan error) { + responseChan := make(chan *QueryTransferInListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTransferInList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTransferInListWithCallback invokes the domain_intl.QueryTransferInList API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytransferinlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTransferInListWithCallback(request *QueryTransferInListRequest, callback func(response *QueryTransferInListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTransferInListResponse + var err error + defer close(result) + response, err = client.QueryTransferInList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTransferInListRequest is the request struct for api QueryTransferInList +type QueryTransferInListRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + SubmissionStartDate requests.Integer `position:"Query" name:"SubmissionStartDate"` + SubmissionEndDate requests.Integer `position:"Query" name:"SubmissionEndDate"` + DomainName string `position:"Query" name:"DomainName"` + SimpleTransferInStatus string `position:"Query" name:"SimpleTransferInStatus"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// QueryTransferInListResponse is the response struct for api QueryTransferInList +type QueryTransferInListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data DataInQueryTransferInList `json:"Data" xml:"Data"` +} + +// CreateQueryTransferInListRequest creates a request to invoke QueryTransferInList API +func CreateQueryTransferInListRequest() (request *QueryTransferInListRequest) { + request = &QueryTransferInListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryTransferInList", "domain", "openAPI") + return +} + +// CreateQueryTransferInListResponse creates a response to parse from QueryTransferInList response +func CreateQueryTransferInListResponse() (response *QueryTransferInListResponse) { + response = &QueryTransferInListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_transfer_out_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_transfer_out_info.go new file mode 100644 index 0000000..00de157 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/query_transfer_out_info.go @@ -0,0 +1,112 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTransferOutInfo invokes the domain_intl.QueryTransferOutInfo API synchronously +// api document: https://help.aliyun.com/api/domain-intl/querytransferoutinfo.html +func (client *Client) QueryTransferOutInfo(request *QueryTransferOutInfoRequest) (response *QueryTransferOutInfoResponse, err error) { + response = CreateQueryTransferOutInfoResponse() + err = client.DoAction(request, response) + return +} + +// QueryTransferOutInfoWithChan invokes the domain_intl.QueryTransferOutInfo API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytransferoutinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTransferOutInfoWithChan(request *QueryTransferOutInfoRequest) (<-chan *QueryTransferOutInfoResponse, <-chan error) { + responseChan := make(chan *QueryTransferOutInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTransferOutInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTransferOutInfoWithCallback invokes the domain_intl.QueryTransferOutInfo API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytransferoutinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTransferOutInfoWithCallback(request *QueryTransferOutInfoRequest, callback func(response *QueryTransferOutInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTransferOutInfoResponse + var err error + defer close(result) + response, err = client.QueryTransferOutInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTransferOutInfoRequest is the request struct for api QueryTransferOutInfo +type QueryTransferOutInfoRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// QueryTransferOutInfoResponse is the response struct for api QueryTransferOutInfo +type QueryTransferOutInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Status int `json:"Status" xml:"Status"` + Email string `json:"Email" xml:"Email"` + TransferAuthorizationCodeSendDate string `json:"TransferAuthorizationCodeSendDate" xml:"TransferAuthorizationCodeSendDate"` + ExpirationDate string `json:"ExpirationDate" xml:"ExpirationDate"` + PendingRequestDate string `json:"PendingRequestDate" xml:"PendingRequestDate"` + ResultCode string `json:"ResultCode" xml:"ResultCode"` + ResultMsg string `json:"ResultMsg" xml:"ResultMsg"` +} + +// CreateQueryTransferOutInfoRequest creates a request to invoke QueryTransferOutInfo API +func CreateQueryTransferOutInfoRequest() (request *QueryTransferOutInfoRequest) { + request = &QueryTransferOutInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryTransferOutInfo", "domain", "openAPI") + return +} + +// CreateQueryTransferOutInfoResponse creates a response to parse from QueryTransferOutInfo response +func CreateQueryTransferOutInfoResponse() (response *QueryTransferOutInfoResponse) { + response = &QueryTransferOutInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/resend_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/resend_email_verification.go new file mode 100644 index 0000000..6828690 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/resend_email_verification.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ResendEmailVerification invokes the domain_intl.ResendEmailVerification API synchronously +// api document: https://help.aliyun.com/api/domain-intl/resendemailverification.html +func (client *Client) ResendEmailVerification(request *ResendEmailVerificationRequest) (response *ResendEmailVerificationResponse, err error) { + response = CreateResendEmailVerificationResponse() + err = client.DoAction(request, response) + return +} + +// ResendEmailVerificationWithChan invokes the domain_intl.ResendEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/resendemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResendEmailVerificationWithChan(request *ResendEmailVerificationRequest) (<-chan *ResendEmailVerificationResponse, <-chan error) { + responseChan := make(chan *ResendEmailVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ResendEmailVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ResendEmailVerificationWithCallback invokes the domain_intl.ResendEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/resendemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResendEmailVerificationWithCallback(request *ResendEmailVerificationRequest, callback func(response *ResendEmailVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ResendEmailVerificationResponse + var err error + defer close(result) + response, err = client.ResendEmailVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ResendEmailVerificationRequest is the request struct for api ResendEmailVerification +type ResendEmailVerificationRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// ResendEmailVerificationResponse is the response struct for api ResendEmailVerification +type ResendEmailVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SuccessList []SendResult `json:"SuccessList" xml:"SuccessList"` + FailList []SendResult `json:"FailList" xml:"FailList"` +} + +// CreateResendEmailVerificationRequest creates a request to invoke ResendEmailVerification API +func CreateResendEmailVerificationRequest() (request *ResendEmailVerificationRequest) { + request = &ResendEmailVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "ResendEmailVerification", "domain", "openAPI") + return +} + +// CreateResendEmailVerificationResponse creates a response to parse from ResendEmailVerification response +func CreateResendEmailVerificationResponse() (response *ResendEmailVerificationResponse) { + response = &ResendEmailVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_creating_order_activate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_creating_order_activate.go new file mode 100644 index 0000000..c9a1753 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_creating_order_activate.go @@ -0,0 +1,129 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForCreatingOrderActivate invokes the domain_intl.SaveBatchTaskForCreatingOrderActivate API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforcreatingorderactivate.html +func (client *Client) SaveBatchTaskForCreatingOrderActivate(request *SaveBatchTaskForCreatingOrderActivateRequest) (response *SaveBatchTaskForCreatingOrderActivateResponse, err error) { + response = CreateSaveBatchTaskForCreatingOrderActivateResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForCreatingOrderActivateWithChan invokes the domain_intl.SaveBatchTaskForCreatingOrderActivate API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforcreatingorderactivate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderActivateWithChan(request *SaveBatchTaskForCreatingOrderActivateRequest) (<-chan *SaveBatchTaskForCreatingOrderActivateResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForCreatingOrderActivateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForCreatingOrderActivate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForCreatingOrderActivateWithCallback invokes the domain_intl.SaveBatchTaskForCreatingOrderActivate API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforcreatingorderactivate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderActivateWithCallback(request *SaveBatchTaskForCreatingOrderActivateRequest, callback func(response *SaveBatchTaskForCreatingOrderActivateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForCreatingOrderActivateResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForCreatingOrderActivate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForCreatingOrderActivateRequest is the request struct for api SaveBatchTaskForCreatingOrderActivate +type SaveBatchTaskForCreatingOrderActivateRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + OrderActivateParam *[]SaveBatchTaskForCreatingOrderActivateOrderActivateParam `position:"Query" name:"OrderActivateParam" type:"Repeated"` +} + +// SaveBatchTaskForCreatingOrderActivateOrderActivateParam is a repeated param struct in SaveBatchTaskForCreatingOrderActivateRequest +type SaveBatchTaskForCreatingOrderActivateOrderActivateParam struct { + DomainName string `name:"DomainName"` + SubscriptionDuration string `name:"SubscriptionDuration"` + RegistrantProfileId string `name:"RegistrantProfileId"` + EnableDomainProxy string `name:"EnableDomainProxy"` + PermitPremiumActivation string `name:"PermitPremiumActivation"` + AliyunDns string `name:"AliyunDns"` + Dns1 string `name:"Dns1"` + Dns2 string `name:"Dns2"` + Country string `name:"Country"` + City string `name:"City"` + RegistrantOrganization string `name:"RegistrantOrganization"` + RegistrantName string `name:"RegistrantName"` + Province string `name:"Province"` + Address string `name:"Address"` + Email string `name:"Email"` + PostalCode string `name:"PostalCode"` + TelArea string `name:"TelArea"` + Telephone string `name:"Telephone"` + TelExt string `name:"TelExt"` +} + +// SaveBatchTaskForCreatingOrderActivateResponse is the response struct for api SaveBatchTaskForCreatingOrderActivate +type SaveBatchTaskForCreatingOrderActivateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForCreatingOrderActivateRequest creates a request to invoke SaveBatchTaskForCreatingOrderActivate API +func CreateSaveBatchTaskForCreatingOrderActivateRequest() (request *SaveBatchTaskForCreatingOrderActivateRequest) { + request = &SaveBatchTaskForCreatingOrderActivateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveBatchTaskForCreatingOrderActivate", "domain", "openAPI") + return +} + +// CreateSaveBatchTaskForCreatingOrderActivateResponse creates a response to parse from SaveBatchTaskForCreatingOrderActivate response +func CreateSaveBatchTaskForCreatingOrderActivateResponse() (response *SaveBatchTaskForCreatingOrderActivateResponse) { + response = &SaveBatchTaskForCreatingOrderActivateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_creating_order_redeem.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_creating_order_redeem.go new file mode 100644 index 0000000..478d3d1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_creating_order_redeem.go @@ -0,0 +1,112 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForCreatingOrderRedeem invokes the domain_intl.SaveBatchTaskForCreatingOrderRedeem API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforcreatingorderredeem.html +func (client *Client) SaveBatchTaskForCreatingOrderRedeem(request *SaveBatchTaskForCreatingOrderRedeemRequest) (response *SaveBatchTaskForCreatingOrderRedeemResponse, err error) { + response = CreateSaveBatchTaskForCreatingOrderRedeemResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForCreatingOrderRedeemWithChan invokes the domain_intl.SaveBatchTaskForCreatingOrderRedeem API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforcreatingorderredeem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderRedeemWithChan(request *SaveBatchTaskForCreatingOrderRedeemRequest) (<-chan *SaveBatchTaskForCreatingOrderRedeemResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForCreatingOrderRedeemResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForCreatingOrderRedeem(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForCreatingOrderRedeemWithCallback invokes the domain_intl.SaveBatchTaskForCreatingOrderRedeem API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforcreatingorderredeem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderRedeemWithCallback(request *SaveBatchTaskForCreatingOrderRedeemRequest, callback func(response *SaveBatchTaskForCreatingOrderRedeemResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForCreatingOrderRedeemResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForCreatingOrderRedeem(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForCreatingOrderRedeemRequest is the request struct for api SaveBatchTaskForCreatingOrderRedeem +type SaveBatchTaskForCreatingOrderRedeemRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + OrderRedeemParam *[]SaveBatchTaskForCreatingOrderRedeemOrderRedeemParam `position:"Query" name:"OrderRedeemParam" type:"Repeated"` +} + +// SaveBatchTaskForCreatingOrderRedeemOrderRedeemParam is a repeated param struct in SaveBatchTaskForCreatingOrderRedeemRequest +type SaveBatchTaskForCreatingOrderRedeemOrderRedeemParam struct { + DomainName string `name:"DomainName"` + CurrentExpirationDate string `name:"CurrentExpirationDate"` +} + +// SaveBatchTaskForCreatingOrderRedeemResponse is the response struct for api SaveBatchTaskForCreatingOrderRedeem +type SaveBatchTaskForCreatingOrderRedeemResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForCreatingOrderRedeemRequest creates a request to invoke SaveBatchTaskForCreatingOrderRedeem API +func CreateSaveBatchTaskForCreatingOrderRedeemRequest() (request *SaveBatchTaskForCreatingOrderRedeemRequest) { + request = &SaveBatchTaskForCreatingOrderRedeemRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveBatchTaskForCreatingOrderRedeem", "domain", "openAPI") + return +} + +// CreateSaveBatchTaskForCreatingOrderRedeemResponse creates a response to parse from SaveBatchTaskForCreatingOrderRedeem response +func CreateSaveBatchTaskForCreatingOrderRedeemResponse() (response *SaveBatchTaskForCreatingOrderRedeemResponse) { + response = &SaveBatchTaskForCreatingOrderRedeemResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_creating_order_renew.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_creating_order_renew.go new file mode 100644 index 0000000..b908d2c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_creating_order_renew.go @@ -0,0 +1,113 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForCreatingOrderRenew invokes the domain_intl.SaveBatchTaskForCreatingOrderRenew API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforcreatingorderrenew.html +func (client *Client) SaveBatchTaskForCreatingOrderRenew(request *SaveBatchTaskForCreatingOrderRenewRequest) (response *SaveBatchTaskForCreatingOrderRenewResponse, err error) { + response = CreateSaveBatchTaskForCreatingOrderRenewResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForCreatingOrderRenewWithChan invokes the domain_intl.SaveBatchTaskForCreatingOrderRenew API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforcreatingorderrenew.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderRenewWithChan(request *SaveBatchTaskForCreatingOrderRenewRequest) (<-chan *SaveBatchTaskForCreatingOrderRenewResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForCreatingOrderRenewResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForCreatingOrderRenew(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForCreatingOrderRenewWithCallback invokes the domain_intl.SaveBatchTaskForCreatingOrderRenew API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforcreatingorderrenew.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderRenewWithCallback(request *SaveBatchTaskForCreatingOrderRenewRequest, callback func(response *SaveBatchTaskForCreatingOrderRenewResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForCreatingOrderRenewResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForCreatingOrderRenew(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForCreatingOrderRenewRequest is the request struct for api SaveBatchTaskForCreatingOrderRenew +type SaveBatchTaskForCreatingOrderRenewRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + OrderRenewParam *[]SaveBatchTaskForCreatingOrderRenewOrderRenewParam `position:"Query" name:"OrderRenewParam" type:"Repeated"` +} + +// SaveBatchTaskForCreatingOrderRenewOrderRenewParam is a repeated param struct in SaveBatchTaskForCreatingOrderRenewRequest +type SaveBatchTaskForCreatingOrderRenewOrderRenewParam struct { + DomainName string `name:"DomainName"` + CurrentExpirationDate string `name:"CurrentExpirationDate"` + SubscriptionDuration string `name:"SubscriptionDuration"` +} + +// SaveBatchTaskForCreatingOrderRenewResponse is the response struct for api SaveBatchTaskForCreatingOrderRenew +type SaveBatchTaskForCreatingOrderRenewResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForCreatingOrderRenewRequest creates a request to invoke SaveBatchTaskForCreatingOrderRenew API +func CreateSaveBatchTaskForCreatingOrderRenewRequest() (request *SaveBatchTaskForCreatingOrderRenewRequest) { + request = &SaveBatchTaskForCreatingOrderRenewRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveBatchTaskForCreatingOrderRenew", "domain", "openAPI") + return +} + +// CreateSaveBatchTaskForCreatingOrderRenewResponse creates a response to parse from SaveBatchTaskForCreatingOrderRenew response +func CreateSaveBatchTaskForCreatingOrderRenewResponse() (response *SaveBatchTaskForCreatingOrderRenewResponse) { + response = &SaveBatchTaskForCreatingOrderRenewResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_creating_order_transfer.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_creating_order_transfer.go new file mode 100644 index 0000000..db0368e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_creating_order_transfer.go @@ -0,0 +1,114 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForCreatingOrderTransfer invokes the domain_intl.SaveBatchTaskForCreatingOrderTransfer API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforcreatingordertransfer.html +func (client *Client) SaveBatchTaskForCreatingOrderTransfer(request *SaveBatchTaskForCreatingOrderTransferRequest) (response *SaveBatchTaskForCreatingOrderTransferResponse, err error) { + response = CreateSaveBatchTaskForCreatingOrderTransferResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForCreatingOrderTransferWithChan invokes the domain_intl.SaveBatchTaskForCreatingOrderTransfer API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforcreatingordertransfer.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderTransferWithChan(request *SaveBatchTaskForCreatingOrderTransferRequest) (<-chan *SaveBatchTaskForCreatingOrderTransferResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForCreatingOrderTransferResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForCreatingOrderTransfer(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForCreatingOrderTransferWithCallback invokes the domain_intl.SaveBatchTaskForCreatingOrderTransfer API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforcreatingordertransfer.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderTransferWithCallback(request *SaveBatchTaskForCreatingOrderTransferRequest, callback func(response *SaveBatchTaskForCreatingOrderTransferResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForCreatingOrderTransferResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForCreatingOrderTransfer(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForCreatingOrderTransferRequest is the request struct for api SaveBatchTaskForCreatingOrderTransfer +type SaveBatchTaskForCreatingOrderTransferRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + OrderTransferParam *[]SaveBatchTaskForCreatingOrderTransferOrderTransferParam `position:"Query" name:"OrderTransferParam" type:"Repeated"` +} + +// SaveBatchTaskForCreatingOrderTransferOrderTransferParam is a repeated param struct in SaveBatchTaskForCreatingOrderTransferRequest +type SaveBatchTaskForCreatingOrderTransferOrderTransferParam struct { + DomainName string `name:"DomainName"` + AuthorizationCode string `name:"AuthorizationCode"` + RegistrantProfileId string `name:"RegistrantProfileId"` + PermitPremiumTransfer string `name:"PermitPremiumTransfer"` +} + +// SaveBatchTaskForCreatingOrderTransferResponse is the response struct for api SaveBatchTaskForCreatingOrderTransfer +type SaveBatchTaskForCreatingOrderTransferResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForCreatingOrderTransferRequest creates a request to invoke SaveBatchTaskForCreatingOrderTransfer API +func CreateSaveBatchTaskForCreatingOrderTransferRequest() (request *SaveBatchTaskForCreatingOrderTransferRequest) { + request = &SaveBatchTaskForCreatingOrderTransferRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveBatchTaskForCreatingOrderTransfer", "domain", "openAPI") + return +} + +// CreateSaveBatchTaskForCreatingOrderTransferResponse creates a response to parse from SaveBatchTaskForCreatingOrderTransfer response +func CreateSaveBatchTaskForCreatingOrderTransferResponse() (response *SaveBatchTaskForCreatingOrderTransferResponse) { + response = &SaveBatchTaskForCreatingOrderTransferResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_domain_name_proxy_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_domain_name_proxy_service.go new file mode 100644 index 0000000..554b715 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_domain_name_proxy_service.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForDomainNameProxyService invokes the domain_intl.SaveBatchTaskForDomainNameProxyService API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskfordomainnameproxyservice.html +func (client *Client) SaveBatchTaskForDomainNameProxyService(request *SaveBatchTaskForDomainNameProxyServiceRequest) (response *SaveBatchTaskForDomainNameProxyServiceResponse, err error) { + response = CreateSaveBatchTaskForDomainNameProxyServiceResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForDomainNameProxyServiceWithChan invokes the domain_intl.SaveBatchTaskForDomainNameProxyService API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskfordomainnameproxyservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForDomainNameProxyServiceWithChan(request *SaveBatchTaskForDomainNameProxyServiceRequest) (<-chan *SaveBatchTaskForDomainNameProxyServiceResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForDomainNameProxyServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForDomainNameProxyService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForDomainNameProxyServiceWithCallback invokes the domain_intl.SaveBatchTaskForDomainNameProxyService API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskfordomainnameproxyservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForDomainNameProxyServiceWithCallback(request *SaveBatchTaskForDomainNameProxyServiceRequest, callback func(response *SaveBatchTaskForDomainNameProxyServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForDomainNameProxyServiceResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForDomainNameProxyService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForDomainNameProxyServiceRequest is the request struct for api SaveBatchTaskForDomainNameProxyService +type SaveBatchTaskForDomainNameProxyServiceRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + Status requests.Boolean `position:"Query" name:"status"` +} + +// SaveBatchTaskForDomainNameProxyServiceResponse is the response struct for api SaveBatchTaskForDomainNameProxyService +type SaveBatchTaskForDomainNameProxyServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForDomainNameProxyServiceRequest creates a request to invoke SaveBatchTaskForDomainNameProxyService API +func CreateSaveBatchTaskForDomainNameProxyServiceRequest() (request *SaveBatchTaskForDomainNameProxyServiceRequest) { + request = &SaveBatchTaskForDomainNameProxyServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveBatchTaskForDomainNameProxyService", "domain", "openAPI") + return +} + +// CreateSaveBatchTaskForDomainNameProxyServiceResponse creates a response to parse from SaveBatchTaskForDomainNameProxyService response +func CreateSaveBatchTaskForDomainNameProxyServiceResponse() (response *SaveBatchTaskForDomainNameProxyServiceResponse) { + response = &SaveBatchTaskForDomainNameProxyServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_modifying_domain_dns.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_modifying_domain_dns.go new file mode 100644 index 0000000..ea8638d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_modifying_domain_dns.go @@ -0,0 +1,108 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForModifyingDomainDns invokes the domain_intl.SaveBatchTaskForModifyingDomainDns API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskformodifyingdomaindns.html +func (client *Client) SaveBatchTaskForModifyingDomainDns(request *SaveBatchTaskForModifyingDomainDnsRequest) (response *SaveBatchTaskForModifyingDomainDnsResponse, err error) { + response = CreateSaveBatchTaskForModifyingDomainDnsResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForModifyingDomainDnsWithChan invokes the domain_intl.SaveBatchTaskForModifyingDomainDns API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskformodifyingdomaindns.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForModifyingDomainDnsWithChan(request *SaveBatchTaskForModifyingDomainDnsRequest) (<-chan *SaveBatchTaskForModifyingDomainDnsResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForModifyingDomainDnsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForModifyingDomainDns(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForModifyingDomainDnsWithCallback invokes the domain_intl.SaveBatchTaskForModifyingDomainDns API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskformodifyingdomaindns.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForModifyingDomainDnsWithCallback(request *SaveBatchTaskForModifyingDomainDnsRequest, callback func(response *SaveBatchTaskForModifyingDomainDnsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForModifyingDomainDnsResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForModifyingDomainDns(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForModifyingDomainDnsRequest is the request struct for api SaveBatchTaskForModifyingDomainDns +type SaveBatchTaskForModifyingDomainDnsRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + AliyunDns requests.Boolean `position:"Query" name:"AliyunDns"` + DomainNameServer *[]string `position:"Query" name:"DomainNameServer" type:"Repeated"` +} + +// SaveBatchTaskForModifyingDomainDnsResponse is the response struct for api SaveBatchTaskForModifyingDomainDns +type SaveBatchTaskForModifyingDomainDnsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForModifyingDomainDnsRequest creates a request to invoke SaveBatchTaskForModifyingDomainDns API +func CreateSaveBatchTaskForModifyingDomainDnsRequest() (request *SaveBatchTaskForModifyingDomainDnsRequest) { + request = &SaveBatchTaskForModifyingDomainDnsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveBatchTaskForModifyingDomainDns", "domain", "openAPI") + return +} + +// CreateSaveBatchTaskForModifyingDomainDnsResponse creates a response to parse from SaveBatchTaskForModifyingDomainDns response +func CreateSaveBatchTaskForModifyingDomainDnsResponse() (response *SaveBatchTaskForModifyingDomainDnsResponse) { + response = &SaveBatchTaskForModifyingDomainDnsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_transfer_prohibition_lock.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_transfer_prohibition_lock.go new file mode 100644 index 0000000..b372eef --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_transfer_prohibition_lock.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForTransferProhibitionLock invokes the domain_intl.SaveBatchTaskForTransferProhibitionLock API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskfortransferprohibitionlock.html +func (client *Client) SaveBatchTaskForTransferProhibitionLock(request *SaveBatchTaskForTransferProhibitionLockRequest) (response *SaveBatchTaskForTransferProhibitionLockResponse, err error) { + response = CreateSaveBatchTaskForTransferProhibitionLockResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForTransferProhibitionLockWithChan invokes the domain_intl.SaveBatchTaskForTransferProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskfortransferprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForTransferProhibitionLockWithChan(request *SaveBatchTaskForTransferProhibitionLockRequest) (<-chan *SaveBatchTaskForTransferProhibitionLockResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForTransferProhibitionLockResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForTransferProhibitionLock(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForTransferProhibitionLockWithCallback invokes the domain_intl.SaveBatchTaskForTransferProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskfortransferprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForTransferProhibitionLockWithCallback(request *SaveBatchTaskForTransferProhibitionLockRequest, callback func(response *SaveBatchTaskForTransferProhibitionLockResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForTransferProhibitionLockResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForTransferProhibitionLock(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForTransferProhibitionLockRequest is the request struct for api SaveBatchTaskForTransferProhibitionLock +type SaveBatchTaskForTransferProhibitionLockRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveBatchTaskForTransferProhibitionLockResponse is the response struct for api SaveBatchTaskForTransferProhibitionLock +type SaveBatchTaskForTransferProhibitionLockResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForTransferProhibitionLockRequest creates a request to invoke SaveBatchTaskForTransferProhibitionLock API +func CreateSaveBatchTaskForTransferProhibitionLockRequest() (request *SaveBatchTaskForTransferProhibitionLockRequest) { + request = &SaveBatchTaskForTransferProhibitionLockRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveBatchTaskForTransferProhibitionLock", "domain", "openAPI") + return +} + +// CreateSaveBatchTaskForTransferProhibitionLockResponse creates a response to parse from SaveBatchTaskForTransferProhibitionLock response +func CreateSaveBatchTaskForTransferProhibitionLockResponse() (response *SaveBatchTaskForTransferProhibitionLockResponse) { + response = &SaveBatchTaskForTransferProhibitionLockResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_update_prohibition_lock.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_update_prohibition_lock.go new file mode 100644 index 0000000..2c44d29 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_update_prohibition_lock.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForUpdateProhibitionLock invokes the domain_intl.SaveBatchTaskForUpdateProhibitionLock API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforupdateprohibitionlock.html +func (client *Client) SaveBatchTaskForUpdateProhibitionLock(request *SaveBatchTaskForUpdateProhibitionLockRequest) (response *SaveBatchTaskForUpdateProhibitionLockResponse, err error) { + response = CreateSaveBatchTaskForUpdateProhibitionLockResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForUpdateProhibitionLockWithChan invokes the domain_intl.SaveBatchTaskForUpdateProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforupdateprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForUpdateProhibitionLockWithChan(request *SaveBatchTaskForUpdateProhibitionLockRequest) (<-chan *SaveBatchTaskForUpdateProhibitionLockResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForUpdateProhibitionLockResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForUpdateProhibitionLock(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForUpdateProhibitionLockWithCallback invokes the domain_intl.SaveBatchTaskForUpdateProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforupdateprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForUpdateProhibitionLockWithCallback(request *SaveBatchTaskForUpdateProhibitionLockRequest, callback func(response *SaveBatchTaskForUpdateProhibitionLockResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForUpdateProhibitionLockResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForUpdateProhibitionLock(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForUpdateProhibitionLockRequest is the request struct for api SaveBatchTaskForUpdateProhibitionLock +type SaveBatchTaskForUpdateProhibitionLockRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveBatchTaskForUpdateProhibitionLockResponse is the response struct for api SaveBatchTaskForUpdateProhibitionLock +type SaveBatchTaskForUpdateProhibitionLockResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForUpdateProhibitionLockRequest creates a request to invoke SaveBatchTaskForUpdateProhibitionLock API +func CreateSaveBatchTaskForUpdateProhibitionLockRequest() (request *SaveBatchTaskForUpdateProhibitionLockRequest) { + request = &SaveBatchTaskForUpdateProhibitionLockRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveBatchTaskForUpdateProhibitionLock", "domain", "openAPI") + return +} + +// CreateSaveBatchTaskForUpdateProhibitionLockResponse creates a response to parse from SaveBatchTaskForUpdateProhibitionLock response +func CreateSaveBatchTaskForUpdateProhibitionLockResponse() (response *SaveBatchTaskForUpdateProhibitionLockResponse) { + response = &SaveBatchTaskForUpdateProhibitionLockResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_updating_contact_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_updating_contact_info.go new file mode 100644 index 0000000..ff1d498 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_updating_contact_info.go @@ -0,0 +1,109 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForUpdatingContactInfo invokes the domain_intl.SaveBatchTaskForUpdatingContactInfo API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforupdatingcontactinfo.html +func (client *Client) SaveBatchTaskForUpdatingContactInfo(request *SaveBatchTaskForUpdatingContactInfoRequest) (response *SaveBatchTaskForUpdatingContactInfoResponse, err error) { + response = CreateSaveBatchTaskForUpdatingContactInfoResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForUpdatingContactInfoWithChan invokes the domain_intl.SaveBatchTaskForUpdatingContactInfo API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforupdatingcontactinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForUpdatingContactInfoWithChan(request *SaveBatchTaskForUpdatingContactInfoRequest) (<-chan *SaveBatchTaskForUpdatingContactInfoResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForUpdatingContactInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForUpdatingContactInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForUpdatingContactInfoWithCallback invokes the domain_intl.SaveBatchTaskForUpdatingContactInfo API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforupdatingcontactinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForUpdatingContactInfoWithCallback(request *SaveBatchTaskForUpdatingContactInfoRequest, callback func(response *SaveBatchTaskForUpdatingContactInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForUpdatingContactInfoResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForUpdatingContactInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForUpdatingContactInfoRequest is the request struct for api SaveBatchTaskForUpdatingContactInfo +type SaveBatchTaskForUpdatingContactInfoRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + ContactType string `position:"Query" name:"ContactType"` + AddTransferLock requests.Boolean `position:"Query" name:"AddTransferLock"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` +} + +// SaveBatchTaskForUpdatingContactInfoResponse is the response struct for api SaveBatchTaskForUpdatingContactInfo +type SaveBatchTaskForUpdatingContactInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForUpdatingContactInfoRequest creates a request to invoke SaveBatchTaskForUpdatingContactInfo API +func CreateSaveBatchTaskForUpdatingContactInfoRequest() (request *SaveBatchTaskForUpdatingContactInfoRequest) { + request = &SaveBatchTaskForUpdatingContactInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveBatchTaskForUpdatingContactInfo", "domain", "openAPI") + return +} + +// CreateSaveBatchTaskForUpdatingContactInfoResponse creates a response to parse from SaveBatchTaskForUpdatingContactInfo response +func CreateSaveBatchTaskForUpdatingContactInfoResponse() (response *SaveBatchTaskForUpdatingContactInfoResponse) { + response = &SaveBatchTaskForUpdatingContactInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_updating_contact_info_by_new_contact.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_updating_contact_info_by_new_contact.go new file mode 100644 index 0000000..9d4c46f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_batch_task_for_updating_contact_info_by_new_contact.go @@ -0,0 +1,119 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForUpdatingContactInfoByNewContact invokes the domain_intl.SaveBatchTaskForUpdatingContactInfoByNewContact API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforupdatingcontactinfobynewcontact.html +func (client *Client) SaveBatchTaskForUpdatingContactInfoByNewContact(request *SaveBatchTaskForUpdatingContactInfoByNewContactRequest) (response *SaveBatchTaskForUpdatingContactInfoByNewContactResponse, err error) { + response = CreateSaveBatchTaskForUpdatingContactInfoByNewContactResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForUpdatingContactInfoByNewContactWithChan invokes the domain_intl.SaveBatchTaskForUpdatingContactInfoByNewContact API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforupdatingcontactinfobynewcontact.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForUpdatingContactInfoByNewContactWithChan(request *SaveBatchTaskForUpdatingContactInfoByNewContactRequest) (<-chan *SaveBatchTaskForUpdatingContactInfoByNewContactResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForUpdatingContactInfoByNewContactResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForUpdatingContactInfoByNewContact(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForUpdatingContactInfoByNewContactWithCallback invokes the domain_intl.SaveBatchTaskForUpdatingContactInfoByNewContact API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforupdatingcontactinfobynewcontact.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForUpdatingContactInfoByNewContactWithCallback(request *SaveBatchTaskForUpdatingContactInfoByNewContactRequest, callback func(response *SaveBatchTaskForUpdatingContactInfoByNewContactResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForUpdatingContactInfoByNewContactResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForUpdatingContactInfoByNewContact(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForUpdatingContactInfoByNewContactRequest is the request struct for api SaveBatchTaskForUpdatingContactInfoByNewContact +type SaveBatchTaskForUpdatingContactInfoByNewContactRequest struct { + *requests.RpcRequest + RegistrantName string `position:"Query" name:"RegistrantName"` + Address string `position:"Query" name:"Address"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + City string `position:"Query" name:"City"` + RegistrantOrganization string `position:"Query" name:"RegistrantOrganization"` + Email string `position:"Query" name:"Email"` + Province string `position:"Query" name:"Province"` + Country string `position:"Query" name:"Country"` + PostalCode string `position:"Query" name:"PostalCode"` + TelArea string `position:"Query" name:"TelArea"` + Telephone string `position:"Query" name:"Telephone"` + TelExt string `position:"Query" name:"TelExt"` + ContactType string `position:"Query" name:"ContactType"` + TransferOutProhibited requests.Boolean `position:"Query" name:"TransferOutProhibited"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` +} + +// SaveBatchTaskForUpdatingContactInfoByNewContactResponse is the response struct for api SaveBatchTaskForUpdatingContactInfoByNewContact +type SaveBatchTaskForUpdatingContactInfoByNewContactResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForUpdatingContactInfoByNewContactRequest creates a request to invoke SaveBatchTaskForUpdatingContactInfoByNewContact API +func CreateSaveBatchTaskForUpdatingContactInfoByNewContactRequest() (request *SaveBatchTaskForUpdatingContactInfoByNewContactRequest) { + request = &SaveBatchTaskForUpdatingContactInfoByNewContactRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveBatchTaskForUpdatingContactInfoByNewContact", "domain", "openAPI") + return +} + +// CreateSaveBatchTaskForUpdatingContactInfoByNewContactResponse creates a response to parse from SaveBatchTaskForUpdatingContactInfoByNewContact response +func CreateSaveBatchTaskForUpdatingContactInfoByNewContactResponse() (response *SaveBatchTaskForUpdatingContactInfoByNewContactResponse) { + response = &SaveBatchTaskForUpdatingContactInfoByNewContactResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_registrant_profile.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_registrant_profile.go new file mode 100644 index 0000000..d3f2a38 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_registrant_profile.go @@ -0,0 +1,118 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveRegistrantProfile invokes the domain_intl.SaveRegistrantProfile API synchronously +// api document: https://help.aliyun.com/api/domain-intl/saveregistrantprofile.html +func (client *Client) SaveRegistrantProfile(request *SaveRegistrantProfileRequest) (response *SaveRegistrantProfileResponse, err error) { + response = CreateSaveRegistrantProfileResponse() + err = client.DoAction(request, response) + return +} + +// SaveRegistrantProfileWithChan invokes the domain_intl.SaveRegistrantProfile API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/saveregistrantprofile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveRegistrantProfileWithChan(request *SaveRegistrantProfileRequest) (<-chan *SaveRegistrantProfileResponse, <-chan error) { + responseChan := make(chan *SaveRegistrantProfileResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveRegistrantProfile(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveRegistrantProfileWithCallback invokes the domain_intl.SaveRegistrantProfile API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/saveregistrantprofile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveRegistrantProfileWithCallback(request *SaveRegistrantProfileRequest, callback func(response *SaveRegistrantProfileResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveRegistrantProfileResponse + var err error + defer close(result) + response, err = client.SaveRegistrantProfile(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveRegistrantProfileRequest is the request struct for api SaveRegistrantProfile +type SaveRegistrantProfileRequest struct { + *requests.RpcRequest + Country string `position:"Query" name:"Country"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + DefaultRegistrantProfile requests.Boolean `position:"Query" name:"DefaultRegistrantProfile"` + City string `position:"Query" name:"City"` + RegistrantOrganization string `position:"Query" name:"RegistrantOrganization"` + RegistrantName string `position:"Query" name:"RegistrantName"` + Province string `position:"Query" name:"Province"` + Address string `position:"Query" name:"Address"` + Email string `position:"Query" name:"Email"` + PostalCode string `position:"Query" name:"PostalCode"` + TelArea string `position:"Query" name:"TelArea"` + Telephone string `position:"Query" name:"Telephone"` + TelExt string `position:"Query" name:"TelExt"` +} + +// SaveRegistrantProfileResponse is the response struct for api SaveRegistrantProfile +type SaveRegistrantProfileResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegistrantProfileId int `json:"RegistrantProfileId" xml:"RegistrantProfileId"` +} + +// CreateSaveRegistrantProfileRequest creates a request to invoke SaveRegistrantProfile API +func CreateSaveRegistrantProfileRequest() (request *SaveRegistrantProfileRequest) { + request = &SaveRegistrantProfileRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveRegistrantProfile", "domain", "openAPI") + return +} + +// CreateSaveRegistrantProfileResponse creates a response to parse from SaveRegistrantProfile response +func CreateSaveRegistrantProfileResponse() (response *SaveRegistrantProfileResponse) { + response = &SaveRegistrantProfileResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_approving_transfer_out.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_approving_transfer_out.go new file mode 100644 index 0000000..fc63df0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_approving_transfer_out.go @@ -0,0 +1,106 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForApprovingTransferOut invokes the domain_intl.SaveSingleTaskForApprovingTransferOut API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforapprovingtransferout.html +func (client *Client) SaveSingleTaskForApprovingTransferOut(request *SaveSingleTaskForApprovingTransferOutRequest) (response *SaveSingleTaskForApprovingTransferOutResponse, err error) { + response = CreateSaveSingleTaskForApprovingTransferOutResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForApprovingTransferOutWithChan invokes the domain_intl.SaveSingleTaskForApprovingTransferOut API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforapprovingtransferout.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForApprovingTransferOutWithChan(request *SaveSingleTaskForApprovingTransferOutRequest) (<-chan *SaveSingleTaskForApprovingTransferOutResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForApprovingTransferOutResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForApprovingTransferOut(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForApprovingTransferOutWithCallback invokes the domain_intl.SaveSingleTaskForApprovingTransferOut API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforapprovingtransferout.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForApprovingTransferOutWithCallback(request *SaveSingleTaskForApprovingTransferOutRequest, callback func(response *SaveSingleTaskForApprovingTransferOutResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForApprovingTransferOutResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForApprovingTransferOut(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForApprovingTransferOutRequest is the request struct for api SaveSingleTaskForApprovingTransferOut +type SaveSingleTaskForApprovingTransferOutRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// SaveSingleTaskForApprovingTransferOutResponse is the response struct for api SaveSingleTaskForApprovingTransferOut +type SaveSingleTaskForApprovingTransferOutResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForApprovingTransferOutRequest creates a request to invoke SaveSingleTaskForApprovingTransferOut API +func CreateSaveSingleTaskForApprovingTransferOutRequest() (request *SaveSingleTaskForApprovingTransferOutRequest) { + request = &SaveSingleTaskForApprovingTransferOutRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForApprovingTransferOut", "domain", "openAPI") + return +} + +// CreateSaveSingleTaskForApprovingTransferOutResponse creates a response to parse from SaveSingleTaskForApprovingTransferOut response +func CreateSaveSingleTaskForApprovingTransferOutResponse() (response *SaveSingleTaskForApprovingTransferOutResponse) { + response = &SaveSingleTaskForApprovingTransferOutResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_canceling_transfer_in.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_canceling_transfer_in.go new file mode 100644 index 0000000..afb7f94 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_canceling_transfer_in.go @@ -0,0 +1,106 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCancelingTransferIn invokes the domain_intl.SaveSingleTaskForCancelingTransferIn API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcancelingtransferin.html +func (client *Client) SaveSingleTaskForCancelingTransferIn(request *SaveSingleTaskForCancelingTransferInRequest) (response *SaveSingleTaskForCancelingTransferInResponse, err error) { + response = CreateSaveSingleTaskForCancelingTransferInResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCancelingTransferInWithChan invokes the domain_intl.SaveSingleTaskForCancelingTransferIn API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcancelingtransferin.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCancelingTransferInWithChan(request *SaveSingleTaskForCancelingTransferInRequest) (<-chan *SaveSingleTaskForCancelingTransferInResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCancelingTransferInResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCancelingTransferIn(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCancelingTransferInWithCallback invokes the domain_intl.SaveSingleTaskForCancelingTransferIn API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcancelingtransferin.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCancelingTransferInWithCallback(request *SaveSingleTaskForCancelingTransferInRequest, callback func(response *SaveSingleTaskForCancelingTransferInResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCancelingTransferInResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCancelingTransferIn(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCancelingTransferInRequest is the request struct for api SaveSingleTaskForCancelingTransferIn +type SaveSingleTaskForCancelingTransferInRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// SaveSingleTaskForCancelingTransferInResponse is the response struct for api SaveSingleTaskForCancelingTransferIn +type SaveSingleTaskForCancelingTransferInResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCancelingTransferInRequest creates a request to invoke SaveSingleTaskForCancelingTransferIn API +func CreateSaveSingleTaskForCancelingTransferInRequest() (request *SaveSingleTaskForCancelingTransferInRequest) { + request = &SaveSingleTaskForCancelingTransferInRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForCancelingTransferIn", "domain", "openAPI") + return +} + +// CreateSaveSingleTaskForCancelingTransferInResponse creates a response to parse from SaveSingleTaskForCancelingTransferIn response +func CreateSaveSingleTaskForCancelingTransferInResponse() (response *SaveSingleTaskForCancelingTransferInResponse) { + response = &SaveSingleTaskForCancelingTransferInResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_canceling_transfer_out.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_canceling_transfer_out.go new file mode 100644 index 0000000..f51498e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_canceling_transfer_out.go @@ -0,0 +1,106 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCancelingTransferOut invokes the domain_intl.SaveSingleTaskForCancelingTransferOut API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcancelingtransferout.html +func (client *Client) SaveSingleTaskForCancelingTransferOut(request *SaveSingleTaskForCancelingTransferOutRequest) (response *SaveSingleTaskForCancelingTransferOutResponse, err error) { + response = CreateSaveSingleTaskForCancelingTransferOutResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCancelingTransferOutWithChan invokes the domain_intl.SaveSingleTaskForCancelingTransferOut API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcancelingtransferout.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCancelingTransferOutWithChan(request *SaveSingleTaskForCancelingTransferOutRequest) (<-chan *SaveSingleTaskForCancelingTransferOutResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCancelingTransferOutResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCancelingTransferOut(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCancelingTransferOutWithCallback invokes the domain_intl.SaveSingleTaskForCancelingTransferOut API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcancelingtransferout.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCancelingTransferOutWithCallback(request *SaveSingleTaskForCancelingTransferOutRequest, callback func(response *SaveSingleTaskForCancelingTransferOutResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCancelingTransferOutResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCancelingTransferOut(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCancelingTransferOutRequest is the request struct for api SaveSingleTaskForCancelingTransferOut +type SaveSingleTaskForCancelingTransferOutRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// SaveSingleTaskForCancelingTransferOutResponse is the response struct for api SaveSingleTaskForCancelingTransferOut +type SaveSingleTaskForCancelingTransferOutResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCancelingTransferOutRequest creates a request to invoke SaveSingleTaskForCancelingTransferOut API +func CreateSaveSingleTaskForCancelingTransferOutRequest() (request *SaveSingleTaskForCancelingTransferOutRequest) { + request = &SaveSingleTaskForCancelingTransferOutRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForCancelingTransferOut", "domain", "openAPI") + return +} + +// CreateSaveSingleTaskForCancelingTransferOutResponse creates a response to parse from SaveSingleTaskForCancelingTransferOut response +func CreateSaveSingleTaskForCancelingTransferOutResponse() (response *SaveSingleTaskForCancelingTransferOutResponse) { + response = &SaveSingleTaskForCancelingTransferOutResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_creating_dns_host.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_creating_dns_host.go new file mode 100644 index 0000000..be30a38 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_creating_dns_host.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCreatingDnsHost invokes the domain_intl.SaveSingleTaskForCreatingDnsHost API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingdnshost.html +func (client *Client) SaveSingleTaskForCreatingDnsHost(request *SaveSingleTaskForCreatingDnsHostRequest) (response *SaveSingleTaskForCreatingDnsHostResponse, err error) { + response = CreateSaveSingleTaskForCreatingDnsHostResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCreatingDnsHostWithChan invokes the domain_intl.SaveSingleTaskForCreatingDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingdnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingDnsHostWithChan(request *SaveSingleTaskForCreatingDnsHostRequest) (<-chan *SaveSingleTaskForCreatingDnsHostResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCreatingDnsHostResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCreatingDnsHost(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCreatingDnsHostWithCallback invokes the domain_intl.SaveSingleTaskForCreatingDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingdnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingDnsHostWithCallback(request *SaveSingleTaskForCreatingDnsHostRequest, callback func(response *SaveSingleTaskForCreatingDnsHostResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCreatingDnsHostResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCreatingDnsHost(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCreatingDnsHostRequest is the request struct for api SaveSingleTaskForCreatingDnsHost +type SaveSingleTaskForCreatingDnsHostRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + Lang string `position:"Query" name:"Lang"` + DnsName string `position:"Query" name:"DnsName"` + Ip *[]string `position:"Query" name:"Ip" type:"Repeated"` +} + +// SaveSingleTaskForCreatingDnsHostResponse is the response struct for api SaveSingleTaskForCreatingDnsHost +type SaveSingleTaskForCreatingDnsHostResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCreatingDnsHostRequest creates a request to invoke SaveSingleTaskForCreatingDnsHost API +func CreateSaveSingleTaskForCreatingDnsHostRequest() (request *SaveSingleTaskForCreatingDnsHostRequest) { + request = &SaveSingleTaskForCreatingDnsHostRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForCreatingDnsHost", "domain", "openAPI") + return +} + +// CreateSaveSingleTaskForCreatingDnsHostResponse creates a response to parse from SaveSingleTaskForCreatingDnsHost response +func CreateSaveSingleTaskForCreatingDnsHostResponse() (response *SaveSingleTaskForCreatingDnsHostResponse) { + response = &SaveSingleTaskForCreatingDnsHostResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_creating_order_activate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_creating_order_activate.go new file mode 100644 index 0000000..4514a00 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_creating_order_activate.go @@ -0,0 +1,124 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCreatingOrderActivate invokes the domain_intl.SaveSingleTaskForCreatingOrderActivate API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingorderactivate.html +func (client *Client) SaveSingleTaskForCreatingOrderActivate(request *SaveSingleTaskForCreatingOrderActivateRequest) (response *SaveSingleTaskForCreatingOrderActivateResponse, err error) { + response = CreateSaveSingleTaskForCreatingOrderActivateResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCreatingOrderActivateWithChan invokes the domain_intl.SaveSingleTaskForCreatingOrderActivate API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingorderactivate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderActivateWithChan(request *SaveSingleTaskForCreatingOrderActivateRequest) (<-chan *SaveSingleTaskForCreatingOrderActivateResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCreatingOrderActivateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCreatingOrderActivate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCreatingOrderActivateWithCallback invokes the domain_intl.SaveSingleTaskForCreatingOrderActivate API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingorderactivate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderActivateWithCallback(request *SaveSingleTaskForCreatingOrderActivateRequest, callback func(response *SaveSingleTaskForCreatingOrderActivateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCreatingOrderActivateResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCreatingOrderActivate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCreatingOrderActivateRequest is the request struct for api SaveSingleTaskForCreatingOrderActivate +type SaveSingleTaskForCreatingOrderActivateRequest struct { + *requests.RpcRequest + Dns2 string `position:"Query" name:"Dns2"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + SubscriptionDuration requests.Integer `position:"Query" name:"SubscriptionDuration"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + EnableDomainProxy requests.Boolean `position:"Query" name:"EnableDomainProxy"` + PermitPremiumActivation requests.Boolean `position:"Query" name:"PermitPremiumActivation"` + AliyunDns requests.Boolean `position:"Query" name:"AliyunDns"` + Dns1 string `position:"Query" name:"Dns1"` + Country string `position:"Query" name:"Country"` + City string `position:"Query" name:"City"` + RegistrantOrganization string `position:"Query" name:"RegistrantOrganization"` + RegistrantName string `position:"Query" name:"RegistrantName"` + Province string `position:"Query" name:"Province"` + Address string `position:"Query" name:"Address"` + Email string `position:"Query" name:"Email"` + PostalCode string `position:"Query" name:"PostalCode"` + TelArea string `position:"Query" name:"TelArea"` + Telephone string `position:"Query" name:"Telephone"` + TelExt string `position:"Query" name:"TelExt"` +} + +// SaveSingleTaskForCreatingOrderActivateResponse is the response struct for api SaveSingleTaskForCreatingOrderActivate +type SaveSingleTaskForCreatingOrderActivateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCreatingOrderActivateRequest creates a request to invoke SaveSingleTaskForCreatingOrderActivate API +func CreateSaveSingleTaskForCreatingOrderActivateRequest() (request *SaveSingleTaskForCreatingOrderActivateRequest) { + request = &SaveSingleTaskForCreatingOrderActivateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForCreatingOrderActivate", "domain", "openAPI") + return +} + +// CreateSaveSingleTaskForCreatingOrderActivateResponse creates a response to parse from SaveSingleTaskForCreatingOrderActivate response +func CreateSaveSingleTaskForCreatingOrderActivateResponse() (response *SaveSingleTaskForCreatingOrderActivateResponse) { + response = &SaveSingleTaskForCreatingOrderActivateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_creating_order_redeem.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_creating_order_redeem.go new file mode 100644 index 0000000..5e127c0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_creating_order_redeem.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCreatingOrderRedeem invokes the domain_intl.SaveSingleTaskForCreatingOrderRedeem API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingorderredeem.html +func (client *Client) SaveSingleTaskForCreatingOrderRedeem(request *SaveSingleTaskForCreatingOrderRedeemRequest) (response *SaveSingleTaskForCreatingOrderRedeemResponse, err error) { + response = CreateSaveSingleTaskForCreatingOrderRedeemResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCreatingOrderRedeemWithChan invokes the domain_intl.SaveSingleTaskForCreatingOrderRedeem API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingorderredeem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderRedeemWithChan(request *SaveSingleTaskForCreatingOrderRedeemRequest) (<-chan *SaveSingleTaskForCreatingOrderRedeemResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCreatingOrderRedeemResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCreatingOrderRedeem(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCreatingOrderRedeemWithCallback invokes the domain_intl.SaveSingleTaskForCreatingOrderRedeem API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingorderredeem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderRedeemWithCallback(request *SaveSingleTaskForCreatingOrderRedeemRequest, callback func(response *SaveSingleTaskForCreatingOrderRedeemResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCreatingOrderRedeemResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCreatingOrderRedeem(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCreatingOrderRedeemRequest is the request struct for api SaveSingleTaskForCreatingOrderRedeem +type SaveSingleTaskForCreatingOrderRedeemRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + CurrentExpirationDate requests.Integer `position:"Query" name:"CurrentExpirationDate"` +} + +// SaveSingleTaskForCreatingOrderRedeemResponse is the response struct for api SaveSingleTaskForCreatingOrderRedeem +type SaveSingleTaskForCreatingOrderRedeemResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCreatingOrderRedeemRequest creates a request to invoke SaveSingleTaskForCreatingOrderRedeem API +func CreateSaveSingleTaskForCreatingOrderRedeemRequest() (request *SaveSingleTaskForCreatingOrderRedeemRequest) { + request = &SaveSingleTaskForCreatingOrderRedeemRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForCreatingOrderRedeem", "domain", "openAPI") + return +} + +// CreateSaveSingleTaskForCreatingOrderRedeemResponse creates a response to parse from SaveSingleTaskForCreatingOrderRedeem response +func CreateSaveSingleTaskForCreatingOrderRedeemResponse() (response *SaveSingleTaskForCreatingOrderRedeemResponse) { + response = &SaveSingleTaskForCreatingOrderRedeemResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_creating_order_renew.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_creating_order_renew.go new file mode 100644 index 0000000..08fcf09 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_creating_order_renew.go @@ -0,0 +1,108 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCreatingOrderRenew invokes the domain_intl.SaveSingleTaskForCreatingOrderRenew API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingorderrenew.html +func (client *Client) SaveSingleTaskForCreatingOrderRenew(request *SaveSingleTaskForCreatingOrderRenewRequest) (response *SaveSingleTaskForCreatingOrderRenewResponse, err error) { + response = CreateSaveSingleTaskForCreatingOrderRenewResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCreatingOrderRenewWithChan invokes the domain_intl.SaveSingleTaskForCreatingOrderRenew API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingorderrenew.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderRenewWithChan(request *SaveSingleTaskForCreatingOrderRenewRequest) (<-chan *SaveSingleTaskForCreatingOrderRenewResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCreatingOrderRenewResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCreatingOrderRenew(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCreatingOrderRenewWithCallback invokes the domain_intl.SaveSingleTaskForCreatingOrderRenew API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingorderrenew.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderRenewWithCallback(request *SaveSingleTaskForCreatingOrderRenewRequest, callback func(response *SaveSingleTaskForCreatingOrderRenewResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCreatingOrderRenewResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCreatingOrderRenew(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCreatingOrderRenewRequest is the request struct for api SaveSingleTaskForCreatingOrderRenew +type SaveSingleTaskForCreatingOrderRenewRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + SubscriptionDuration requests.Integer `position:"Query" name:"SubscriptionDuration"` + CurrentExpirationDate requests.Integer `position:"Query" name:"CurrentExpirationDate"` +} + +// SaveSingleTaskForCreatingOrderRenewResponse is the response struct for api SaveSingleTaskForCreatingOrderRenew +type SaveSingleTaskForCreatingOrderRenewResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCreatingOrderRenewRequest creates a request to invoke SaveSingleTaskForCreatingOrderRenew API +func CreateSaveSingleTaskForCreatingOrderRenewRequest() (request *SaveSingleTaskForCreatingOrderRenewRequest) { + request = &SaveSingleTaskForCreatingOrderRenewRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForCreatingOrderRenew", "domain", "openAPI") + return +} + +// CreateSaveSingleTaskForCreatingOrderRenewResponse creates a response to parse from SaveSingleTaskForCreatingOrderRenew response +func CreateSaveSingleTaskForCreatingOrderRenewResponse() (response *SaveSingleTaskForCreatingOrderRenewResponse) { + response = &SaveSingleTaskForCreatingOrderRenewResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_creating_order_transfer.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_creating_order_transfer.go new file mode 100644 index 0000000..c6f492b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_creating_order_transfer.go @@ -0,0 +1,109 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCreatingOrderTransfer invokes the domain_intl.SaveSingleTaskForCreatingOrderTransfer API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingordertransfer.html +func (client *Client) SaveSingleTaskForCreatingOrderTransfer(request *SaveSingleTaskForCreatingOrderTransferRequest) (response *SaveSingleTaskForCreatingOrderTransferResponse, err error) { + response = CreateSaveSingleTaskForCreatingOrderTransferResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCreatingOrderTransferWithChan invokes the domain_intl.SaveSingleTaskForCreatingOrderTransfer API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingordertransfer.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderTransferWithChan(request *SaveSingleTaskForCreatingOrderTransferRequest) (<-chan *SaveSingleTaskForCreatingOrderTransferResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCreatingOrderTransferResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCreatingOrderTransfer(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCreatingOrderTransferWithCallback invokes the domain_intl.SaveSingleTaskForCreatingOrderTransfer API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingordertransfer.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderTransferWithCallback(request *SaveSingleTaskForCreatingOrderTransferRequest, callback func(response *SaveSingleTaskForCreatingOrderTransferResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCreatingOrderTransferResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCreatingOrderTransfer(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCreatingOrderTransferRequest is the request struct for api SaveSingleTaskForCreatingOrderTransfer +type SaveSingleTaskForCreatingOrderTransferRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + AuthorizationCode string `position:"Query" name:"AuthorizationCode"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + PermitPremiumTransfer requests.Boolean `position:"Query" name:"PermitPremiumTransfer"` +} + +// SaveSingleTaskForCreatingOrderTransferResponse is the response struct for api SaveSingleTaskForCreatingOrderTransfer +type SaveSingleTaskForCreatingOrderTransferResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCreatingOrderTransferRequest creates a request to invoke SaveSingleTaskForCreatingOrderTransfer API +func CreateSaveSingleTaskForCreatingOrderTransferRequest() (request *SaveSingleTaskForCreatingOrderTransferRequest) { + request = &SaveSingleTaskForCreatingOrderTransferRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForCreatingOrderTransfer", "domain", "openAPI") + return +} + +// CreateSaveSingleTaskForCreatingOrderTransferResponse creates a response to parse from SaveSingleTaskForCreatingOrderTransfer response +func CreateSaveSingleTaskForCreatingOrderTransferResponse() (response *SaveSingleTaskForCreatingOrderTransferResponse) { + response = &SaveSingleTaskForCreatingOrderTransferResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_domain_name_proxy_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_domain_name_proxy_service.go new file mode 100644 index 0000000..eece4a1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_domain_name_proxy_service.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForDomainNameProxyService invokes the domain_intl.SaveSingleTaskForDomainNameProxyService API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskfordomainnameproxyservice.html +func (client *Client) SaveSingleTaskForDomainNameProxyService(request *SaveSingleTaskForDomainNameProxyServiceRequest) (response *SaveSingleTaskForDomainNameProxyServiceResponse, err error) { + response = CreateSaveSingleTaskForDomainNameProxyServiceResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForDomainNameProxyServiceWithChan invokes the domain_intl.SaveSingleTaskForDomainNameProxyService API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskfordomainnameproxyservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForDomainNameProxyServiceWithChan(request *SaveSingleTaskForDomainNameProxyServiceRequest) (<-chan *SaveSingleTaskForDomainNameProxyServiceResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForDomainNameProxyServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForDomainNameProxyService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForDomainNameProxyServiceWithCallback invokes the domain_intl.SaveSingleTaskForDomainNameProxyService API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskfordomainnameproxyservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForDomainNameProxyServiceWithCallback(request *SaveSingleTaskForDomainNameProxyServiceRequest, callback func(response *SaveSingleTaskForDomainNameProxyServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForDomainNameProxyServiceResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForDomainNameProxyService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForDomainNameProxyServiceRequest is the request struct for api SaveSingleTaskForDomainNameProxyService +type SaveSingleTaskForDomainNameProxyServiceRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveSingleTaskForDomainNameProxyServiceResponse is the response struct for api SaveSingleTaskForDomainNameProxyService +type SaveSingleTaskForDomainNameProxyServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForDomainNameProxyServiceRequest creates a request to invoke SaveSingleTaskForDomainNameProxyService API +func CreateSaveSingleTaskForDomainNameProxyServiceRequest() (request *SaveSingleTaskForDomainNameProxyServiceRequest) { + request = &SaveSingleTaskForDomainNameProxyServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForDomainNameProxyService", "domain", "openAPI") + return +} + +// CreateSaveSingleTaskForDomainNameProxyServiceResponse creates a response to parse from SaveSingleTaskForDomainNameProxyService response +func CreateSaveSingleTaskForDomainNameProxyServiceResponse() (response *SaveSingleTaskForDomainNameProxyServiceResponse) { + response = &SaveSingleTaskForDomainNameProxyServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_modifying_dns_host.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_modifying_dns_host.go new file mode 100644 index 0000000..f47d2b0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_modifying_dns_host.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForModifyingDnsHost invokes the domain_intl.SaveSingleTaskForModifyingDnsHost API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskformodifyingdnshost.html +func (client *Client) SaveSingleTaskForModifyingDnsHost(request *SaveSingleTaskForModifyingDnsHostRequest) (response *SaveSingleTaskForModifyingDnsHostResponse, err error) { + response = CreateSaveSingleTaskForModifyingDnsHostResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForModifyingDnsHostWithChan invokes the domain_intl.SaveSingleTaskForModifyingDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskformodifyingdnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForModifyingDnsHostWithChan(request *SaveSingleTaskForModifyingDnsHostRequest) (<-chan *SaveSingleTaskForModifyingDnsHostResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForModifyingDnsHostResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForModifyingDnsHost(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForModifyingDnsHostWithCallback invokes the domain_intl.SaveSingleTaskForModifyingDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskformodifyingdnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForModifyingDnsHostWithCallback(request *SaveSingleTaskForModifyingDnsHostRequest, callback func(response *SaveSingleTaskForModifyingDnsHostResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForModifyingDnsHostResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForModifyingDnsHost(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForModifyingDnsHostRequest is the request struct for api SaveSingleTaskForModifyingDnsHost +type SaveSingleTaskForModifyingDnsHostRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + Lang string `position:"Query" name:"Lang"` + DnsName string `position:"Query" name:"DnsName"` + Ip *[]string `position:"Query" name:"Ip" type:"Repeated"` +} + +// SaveSingleTaskForModifyingDnsHostResponse is the response struct for api SaveSingleTaskForModifyingDnsHost +type SaveSingleTaskForModifyingDnsHostResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForModifyingDnsHostRequest creates a request to invoke SaveSingleTaskForModifyingDnsHost API +func CreateSaveSingleTaskForModifyingDnsHostRequest() (request *SaveSingleTaskForModifyingDnsHostRequest) { + request = &SaveSingleTaskForModifyingDnsHostRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForModifyingDnsHost", "domain", "openAPI") + return +} + +// CreateSaveSingleTaskForModifyingDnsHostResponse creates a response to parse from SaveSingleTaskForModifyingDnsHost response +func CreateSaveSingleTaskForModifyingDnsHostResponse() (response *SaveSingleTaskForModifyingDnsHostResponse) { + response = &SaveSingleTaskForModifyingDnsHostResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_querying_transfer_authorization_code.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_querying_transfer_authorization_code.go new file mode 100644 index 0000000..68f622f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_querying_transfer_authorization_code.go @@ -0,0 +1,106 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForQueryingTransferAuthorizationCode invokes the domain_intl.SaveSingleTaskForQueryingTransferAuthorizationCode API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforqueryingtransferauthorizationcode.html +func (client *Client) SaveSingleTaskForQueryingTransferAuthorizationCode(request *SaveSingleTaskForQueryingTransferAuthorizationCodeRequest) (response *SaveSingleTaskForQueryingTransferAuthorizationCodeResponse, err error) { + response = CreateSaveSingleTaskForQueryingTransferAuthorizationCodeResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForQueryingTransferAuthorizationCodeWithChan invokes the domain_intl.SaveSingleTaskForQueryingTransferAuthorizationCode API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforqueryingtransferauthorizationcode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForQueryingTransferAuthorizationCodeWithChan(request *SaveSingleTaskForQueryingTransferAuthorizationCodeRequest) (<-chan *SaveSingleTaskForQueryingTransferAuthorizationCodeResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForQueryingTransferAuthorizationCodeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForQueryingTransferAuthorizationCode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForQueryingTransferAuthorizationCodeWithCallback invokes the domain_intl.SaveSingleTaskForQueryingTransferAuthorizationCode API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforqueryingtransferauthorizationcode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForQueryingTransferAuthorizationCodeWithCallback(request *SaveSingleTaskForQueryingTransferAuthorizationCodeRequest, callback func(response *SaveSingleTaskForQueryingTransferAuthorizationCodeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForQueryingTransferAuthorizationCodeResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForQueryingTransferAuthorizationCode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForQueryingTransferAuthorizationCodeRequest is the request struct for api SaveSingleTaskForQueryingTransferAuthorizationCode +type SaveSingleTaskForQueryingTransferAuthorizationCodeRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// SaveSingleTaskForQueryingTransferAuthorizationCodeResponse is the response struct for api SaveSingleTaskForQueryingTransferAuthorizationCode +type SaveSingleTaskForQueryingTransferAuthorizationCodeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForQueryingTransferAuthorizationCodeRequest creates a request to invoke SaveSingleTaskForQueryingTransferAuthorizationCode API +func CreateSaveSingleTaskForQueryingTransferAuthorizationCodeRequest() (request *SaveSingleTaskForQueryingTransferAuthorizationCodeRequest) { + request = &SaveSingleTaskForQueryingTransferAuthorizationCodeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForQueryingTransferAuthorizationCode", "domain", "openAPI") + return +} + +// CreateSaveSingleTaskForQueryingTransferAuthorizationCodeResponse creates a response to parse from SaveSingleTaskForQueryingTransferAuthorizationCode response +func CreateSaveSingleTaskForQueryingTransferAuthorizationCodeResponse() (response *SaveSingleTaskForQueryingTransferAuthorizationCodeResponse) { + response = &SaveSingleTaskForQueryingTransferAuthorizationCodeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_synchronizing_dns_host.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_synchronizing_dns_host.go new file mode 100644 index 0000000..6a3663a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_synchronizing_dns_host.go @@ -0,0 +1,105 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForSynchronizingDnsHost invokes the domain_intl.SaveSingleTaskForSynchronizingDnsHost API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforsynchronizingdnshost.html +func (client *Client) SaveSingleTaskForSynchronizingDnsHost(request *SaveSingleTaskForSynchronizingDnsHostRequest) (response *SaveSingleTaskForSynchronizingDnsHostResponse, err error) { + response = CreateSaveSingleTaskForSynchronizingDnsHostResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForSynchronizingDnsHostWithChan invokes the domain_intl.SaveSingleTaskForSynchronizingDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforsynchronizingdnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForSynchronizingDnsHostWithChan(request *SaveSingleTaskForSynchronizingDnsHostRequest) (<-chan *SaveSingleTaskForSynchronizingDnsHostResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForSynchronizingDnsHostResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForSynchronizingDnsHost(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForSynchronizingDnsHostWithCallback invokes the domain_intl.SaveSingleTaskForSynchronizingDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforsynchronizingdnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForSynchronizingDnsHostWithCallback(request *SaveSingleTaskForSynchronizingDnsHostRequest, callback func(response *SaveSingleTaskForSynchronizingDnsHostResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForSynchronizingDnsHostResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForSynchronizingDnsHost(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForSynchronizingDnsHostRequest is the request struct for api SaveSingleTaskForSynchronizingDnsHost +type SaveSingleTaskForSynchronizingDnsHostRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForSynchronizingDnsHostResponse is the response struct for api SaveSingleTaskForSynchronizingDnsHost +type SaveSingleTaskForSynchronizingDnsHostResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForSynchronizingDnsHostRequest creates a request to invoke SaveSingleTaskForSynchronizingDnsHost API +func CreateSaveSingleTaskForSynchronizingDnsHostRequest() (request *SaveSingleTaskForSynchronizingDnsHostRequest) { + request = &SaveSingleTaskForSynchronizingDnsHostRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForSynchronizingDnsHost", "domain", "openAPI") + return +} + +// CreateSaveSingleTaskForSynchronizingDnsHostResponse creates a response to parse from SaveSingleTaskForSynchronizingDnsHost response +func CreateSaveSingleTaskForSynchronizingDnsHostResponse() (response *SaveSingleTaskForSynchronizingDnsHostResponse) { + response = &SaveSingleTaskForSynchronizingDnsHostResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_transfer_prohibition_lock.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_transfer_prohibition_lock.go new file mode 100644 index 0000000..1953ddb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_transfer_prohibition_lock.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForTransferProhibitionLock invokes the domain_intl.SaveSingleTaskForTransferProhibitionLock API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskfortransferprohibitionlock.html +func (client *Client) SaveSingleTaskForTransferProhibitionLock(request *SaveSingleTaskForTransferProhibitionLockRequest) (response *SaveSingleTaskForTransferProhibitionLockResponse, err error) { + response = CreateSaveSingleTaskForTransferProhibitionLockResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForTransferProhibitionLockWithChan invokes the domain_intl.SaveSingleTaskForTransferProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskfortransferprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForTransferProhibitionLockWithChan(request *SaveSingleTaskForTransferProhibitionLockRequest) (<-chan *SaveSingleTaskForTransferProhibitionLockResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForTransferProhibitionLockResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForTransferProhibitionLock(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForTransferProhibitionLockWithCallback invokes the domain_intl.SaveSingleTaskForTransferProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskfortransferprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForTransferProhibitionLockWithCallback(request *SaveSingleTaskForTransferProhibitionLockRequest, callback func(response *SaveSingleTaskForTransferProhibitionLockResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForTransferProhibitionLockResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForTransferProhibitionLock(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForTransferProhibitionLockRequest is the request struct for api SaveSingleTaskForTransferProhibitionLock +type SaveSingleTaskForTransferProhibitionLockRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveSingleTaskForTransferProhibitionLockResponse is the response struct for api SaveSingleTaskForTransferProhibitionLock +type SaveSingleTaskForTransferProhibitionLockResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForTransferProhibitionLockRequest creates a request to invoke SaveSingleTaskForTransferProhibitionLock API +func CreateSaveSingleTaskForTransferProhibitionLockRequest() (request *SaveSingleTaskForTransferProhibitionLockRequest) { + request = &SaveSingleTaskForTransferProhibitionLockRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForTransferProhibitionLock", "domain", "openAPI") + return +} + +// CreateSaveSingleTaskForTransferProhibitionLockResponse creates a response to parse from SaveSingleTaskForTransferProhibitionLock response +func CreateSaveSingleTaskForTransferProhibitionLockResponse() (response *SaveSingleTaskForTransferProhibitionLockResponse) { + response = &SaveSingleTaskForTransferProhibitionLockResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_update_prohibition_lock.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_update_prohibition_lock.go new file mode 100644 index 0000000..80336e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_update_prohibition_lock.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForUpdateProhibitionLock invokes the domain_intl.SaveSingleTaskForUpdateProhibitionLock API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforupdateprohibitionlock.html +func (client *Client) SaveSingleTaskForUpdateProhibitionLock(request *SaveSingleTaskForUpdateProhibitionLockRequest) (response *SaveSingleTaskForUpdateProhibitionLockResponse, err error) { + response = CreateSaveSingleTaskForUpdateProhibitionLockResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForUpdateProhibitionLockWithChan invokes the domain_intl.SaveSingleTaskForUpdateProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforupdateprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForUpdateProhibitionLockWithChan(request *SaveSingleTaskForUpdateProhibitionLockRequest) (<-chan *SaveSingleTaskForUpdateProhibitionLockResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForUpdateProhibitionLockResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForUpdateProhibitionLock(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForUpdateProhibitionLockWithCallback invokes the domain_intl.SaveSingleTaskForUpdateProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforupdateprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForUpdateProhibitionLockWithCallback(request *SaveSingleTaskForUpdateProhibitionLockRequest, callback func(response *SaveSingleTaskForUpdateProhibitionLockResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForUpdateProhibitionLockResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForUpdateProhibitionLock(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForUpdateProhibitionLockRequest is the request struct for api SaveSingleTaskForUpdateProhibitionLock +type SaveSingleTaskForUpdateProhibitionLockRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveSingleTaskForUpdateProhibitionLockResponse is the response struct for api SaveSingleTaskForUpdateProhibitionLock +type SaveSingleTaskForUpdateProhibitionLockResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForUpdateProhibitionLockRequest creates a request to invoke SaveSingleTaskForUpdateProhibitionLock API +func CreateSaveSingleTaskForUpdateProhibitionLockRequest() (request *SaveSingleTaskForUpdateProhibitionLockRequest) { + request = &SaveSingleTaskForUpdateProhibitionLockRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForUpdateProhibitionLock", "domain", "openAPI") + return +} + +// CreateSaveSingleTaskForUpdateProhibitionLockResponse creates a response to parse from SaveSingleTaskForUpdateProhibitionLock response +func CreateSaveSingleTaskForUpdateProhibitionLockResponse() (response *SaveSingleTaskForUpdateProhibitionLockResponse) { + response = &SaveSingleTaskForUpdateProhibitionLockResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_updating_contact_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_updating_contact_info.go new file mode 100644 index 0000000..d710136 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_single_task_for_updating_contact_info.go @@ -0,0 +1,110 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForUpdatingContactInfo invokes the domain_intl.SaveSingleTaskForUpdatingContactInfo API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforupdatingcontactinfo.html +func (client *Client) SaveSingleTaskForUpdatingContactInfo(request *SaveSingleTaskForUpdatingContactInfoRequest) (response *SaveSingleTaskForUpdatingContactInfoResponse, err error) { + response = CreateSaveSingleTaskForUpdatingContactInfoResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForUpdatingContactInfoWithChan invokes the domain_intl.SaveSingleTaskForUpdatingContactInfo API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforupdatingcontactinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForUpdatingContactInfoWithChan(request *SaveSingleTaskForUpdatingContactInfoRequest) (<-chan *SaveSingleTaskForUpdatingContactInfoResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForUpdatingContactInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForUpdatingContactInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForUpdatingContactInfoWithCallback invokes the domain_intl.SaveSingleTaskForUpdatingContactInfo API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforupdatingcontactinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForUpdatingContactInfoWithCallback(request *SaveSingleTaskForUpdatingContactInfoRequest, callback func(response *SaveSingleTaskForUpdatingContactInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForUpdatingContactInfoResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForUpdatingContactInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForUpdatingContactInfoRequest is the request struct for api SaveSingleTaskForUpdatingContactInfo +type SaveSingleTaskForUpdatingContactInfoRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + InstanceId string `position:"Query" name:"InstanceId"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + ContactType string `position:"Query" name:"ContactType"` + AddTransferLock requests.Boolean `position:"Query" name:"AddTransferLock"` +} + +// SaveSingleTaskForUpdatingContactInfoResponse is the response struct for api SaveSingleTaskForUpdatingContactInfo +type SaveSingleTaskForUpdatingContactInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForUpdatingContactInfoRequest creates a request to invoke SaveSingleTaskForUpdatingContactInfo API +func CreateSaveSingleTaskForUpdatingContactInfoRequest() (request *SaveSingleTaskForUpdatingContactInfoRequest) { + request = &SaveSingleTaskForUpdatingContactInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForUpdatingContactInfo", "domain", "openAPI") + return +} + +// CreateSaveSingleTaskForUpdatingContactInfoResponse creates a response to parse from SaveSingleTaskForUpdatingContactInfo response +func CreateSaveSingleTaskForUpdatingContactInfoResponse() (response *SaveSingleTaskForUpdatingContactInfoResponse) { + response = &SaveSingleTaskForUpdatingContactInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_task_for_submitting_domain_delete.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_task_for_submitting_domain_delete.go new file mode 100644 index 0000000..83725ab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/save_task_for_submitting_domain_delete.go @@ -0,0 +1,106 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveTaskForSubmittingDomainDelete invokes the domain_intl.SaveTaskForSubmittingDomainDelete API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savetaskforsubmittingdomaindelete.html +func (client *Client) SaveTaskForSubmittingDomainDelete(request *SaveTaskForSubmittingDomainDeleteRequest) (response *SaveTaskForSubmittingDomainDeleteResponse, err error) { + response = CreateSaveTaskForSubmittingDomainDeleteResponse() + err = client.DoAction(request, response) + return +} + +// SaveTaskForSubmittingDomainDeleteWithChan invokes the domain_intl.SaveTaskForSubmittingDomainDelete API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savetaskforsubmittingdomaindelete.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveTaskForSubmittingDomainDeleteWithChan(request *SaveTaskForSubmittingDomainDeleteRequest) (<-chan *SaveTaskForSubmittingDomainDeleteResponse, <-chan error) { + responseChan := make(chan *SaveTaskForSubmittingDomainDeleteResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveTaskForSubmittingDomainDelete(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveTaskForSubmittingDomainDeleteWithCallback invokes the domain_intl.SaveTaskForSubmittingDomainDelete API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savetaskforsubmittingdomaindelete.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveTaskForSubmittingDomainDeleteWithCallback(request *SaveTaskForSubmittingDomainDeleteRequest, callback func(response *SaveTaskForSubmittingDomainDeleteResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveTaskForSubmittingDomainDeleteResponse + var err error + defer close(result) + response, err = client.SaveTaskForSubmittingDomainDelete(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveTaskForSubmittingDomainDeleteRequest is the request struct for api SaveTaskForSubmittingDomainDelete +type SaveTaskForSubmittingDomainDeleteRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// SaveTaskForSubmittingDomainDeleteResponse is the response struct for api SaveTaskForSubmittingDomainDelete +type SaveTaskForSubmittingDomainDeleteResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveTaskForSubmittingDomainDeleteRequest creates a request to invoke SaveTaskForSubmittingDomainDelete API +func CreateSaveTaskForSubmittingDomainDeleteRequest() (request *SaveTaskForSubmittingDomainDeleteRequest) { + request = &SaveTaskForSubmittingDomainDeleteRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveTaskForSubmittingDomainDelete", "domain", "openAPI") + return +} + +// CreateSaveTaskForSubmittingDomainDeleteResponse creates a response to parse from SaveTaskForSubmittingDomainDelete response +func CreateSaveTaskForSubmittingDomainDeleteResponse() (response *SaveTaskForSubmittingDomainDeleteResponse) { + response = &SaveTaskForSubmittingDomainDeleteResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_change_log.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_change_log.go new file mode 100644 index 0000000..a434ee8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_change_log.go @@ -0,0 +1,26 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ChangeLog is a nested struct in domain_intl response +type ChangeLog struct { + DomainName string `json:"DomainName" xml:"DomainName"` + Result string `json:"Result" xml:"Result"` + Operation string `json:"Operation" xml:"Operation"` + OperationIPAddress string `json:"OperationIPAddress" xml:"OperationIPAddress"` + Details string `json:"Details" xml:"Details"` + Time string `json:"Time" xml:"Time"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_current_page_cursor.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_current_page_cursor.go new file mode 100644 index 0000000..e222726 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_current_page_cursor.go @@ -0,0 +1,35 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CurrentPageCursor is a nested struct in domain_intl response +type CurrentPageCursor struct { + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + TaskDetailNo string `json:"TaskDetailNo" xml:"TaskDetailNo"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + CreateTimeLong int `json:"CreateTimeLong" xml:"CreateTimeLong"` + TaskStatusCode int `json:"TaskStatusCode" xml:"TaskStatusCode"` + DomainName string `json:"DomainName" xml:"DomainName"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TaskTypeDescription string `json:"TaskTypeDescription" xml:"TaskTypeDescription"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + TaskNum int `json:"TaskNum" xml:"TaskNum"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Clientip string `json:"Clientip" xml:"Clientip"` + TryCount int `json:"TryCount" xml:"TryCount"` + TaskType string `json:"TaskType" xml:"TaskType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_list_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_list_email_verification.go new file mode 100644 index 0000000..bc40bf0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_list_email_verification.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInListEmailVerification is a nested struct in domain_intl response +type DataInListEmailVerification struct { + EmailVerification []EmailVerification `json:"EmailVerification" xml:"EmailVerification"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_poll_task_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_poll_task_result.go new file mode 100644 index 0000000..309acb5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_poll_task_result.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInPollTaskResult is a nested struct in domain_intl response +type DataInPollTaskResult struct { + TaskDetail []TaskDetail `json:"TaskDetail" xml:"TaskDetail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_query_change_log_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_query_change_log_list.go new file mode 100644 index 0000000..eba6c16 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_query_change_log_list.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryChangeLogList is a nested struct in domain_intl response +type DataInQueryChangeLogList struct { + ChangeLog []ChangeLog `json:"ChangeLog" xml:"ChangeLog"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_query_domain_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_query_domain_list.go new file mode 100644 index 0000000..428706c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_query_domain_list.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryDomainList is a nested struct in domain_intl response +type DataInQueryDomainList struct { + Domain []Domain `json:"Domain" xml:"Domain"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_query_task_detail_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_query_task_detail_list.go new file mode 100644 index 0000000..bd75b34 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_query_task_detail_list.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryTaskDetailList is a nested struct in domain_intl response +type DataInQueryTaskDetailList struct { + TaskDetail []TaskDetail `json:"TaskDetail" xml:"TaskDetail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_query_task_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_query_task_list.go new file mode 100644 index 0000000..27039f3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_query_task_list.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryTaskList is a nested struct in domain_intl response +type DataInQueryTaskList struct { + TaskInfo []TaskInfo `json:"TaskInfo" xml:"TaskInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_query_transfer_in_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_query_transfer_in_list.go new file mode 100644 index 0000000..55fbad8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_data_in_query_transfer_in_list.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryTransferInList is a nested struct in domain_intl response +type DataInQueryTransferInList struct { + TransferInInfo []TransferInInfo `json:"TransferInInfo" xml:"TransferInInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_dns_host.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_dns_host.go new file mode 100644 index 0000000..5d1beb9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_dns_host.go @@ -0,0 +1,22 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DnsHost is a nested struct in domain_intl response +type DnsHost struct { + DnsName string `json:"DnsName" xml:"DnsName"` + IpList []string `json:"IpList" xml:"IpList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_dns_host_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_dns_host_list.go new file mode 100644 index 0000000..dd4da3d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_dns_host_list.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DnsHostList is a nested struct in domain_intl response +type DnsHostList struct { + DnsHost []DnsHost `json:"DnsHost" xml:"DnsHost"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_dns_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_dns_list.go new file mode 100644 index 0000000..73e604d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_dns_list.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DnsList is a nested struct in domain_intl response +type DnsList struct { + Dns []string `json:"Dns" xml:"Dns"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_domain.go new file mode 100644 index 0000000..06fc9ec --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_domain.go @@ -0,0 +1,30 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Domain is a nested struct in domain_intl response +type Domain struct { + DomainName string `json:"DomainName" xml:"DomainName"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + ExpirationDate string `json:"ExpirationDate" xml:"ExpirationDate"` + RegistrationDate string `json:"RegistrationDate" xml:"RegistrationDate"` + DomainType string `json:"DomainType" xml:"DomainType"` + DomainStatus string `json:"DomainStatus" xml:"DomainStatus"` + ProductId string `json:"ProductId" xml:"ProductId"` + ExpirationDateLong int `json:"ExpirationDateLong" xml:"ExpirationDateLong"` + RegistrationDateLong int `json:"RegistrationDateLong" xml:"RegistrationDateLong"` + Premium bool `json:"Premium" xml:"Premium"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_email_verification.go new file mode 100644 index 0000000..45efe6c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_email_verification.go @@ -0,0 +1,30 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EmailVerification is a nested struct in domain_intl response +type EmailVerification struct { + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + Email string `json:"Email" xml:"Email"` + UserId string `json:"UserId" xml:"UserId"` + EmailVerificationNo string `json:"EmailVerificationNo" xml:"EmailVerificationNo"` + TokenSendTime string `json:"TokenSendTime" xml:"TokenSendTime"` + VerificationStatus int `json:"VerificationStatus" xml:"VerificationStatus"` + VerificationTime string `json:"VerificationTime" xml:"VerificationTime"` + SendIp string `json:"SendIp" xml:"SendIp"` + ConfirmIp string `json:"ConfirmIp" xml:"ConfirmIp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_exist_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_exist_list.go new file mode 100644 index 0000000..4209020 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_exist_list.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ExistList is a nested struct in domain_intl response +type ExistList struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_fail_list_in_confirm_transfer_in_email.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_fail_list_in_confirm_transfer_in_email.go new file mode 100644 index 0000000..ef57c12 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_fail_list_in_confirm_transfer_in_email.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailListInConfirmTransferInEmail is a nested struct in domain_intl response +type FailListInConfirmTransferInEmail struct { + FailDomain []string `json:"FailDomain" xml:"FailDomain"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_fail_list_in_delete_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_fail_list_in_delete_email_verification.go new file mode 100644 index 0000000..46d462d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_fail_list_in_delete_email_verification.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailListInDeleteEmailVerification is a nested struct in domain_intl response +type FailListInDeleteEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_fail_list_in_resend_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_fail_list_in_resend_email_verification.go new file mode 100644 index 0000000..7fe38cc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_fail_list_in_resend_email_verification.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailListInResendEmailVerification is a nested struct in domain_intl response +type FailListInResendEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_fail_list_in_submit_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_fail_list_in_submit_email_verification.go new file mode 100644 index 0000000..0e69744 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_fail_list_in_submit_email_verification.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailListInSubmitEmailVerification is a nested struct in domain_intl response +type FailListInSubmitEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_fail_list_in_transfer_in_check_mail_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_fail_list_in_transfer_in_check_mail_token.go new file mode 100644 index 0000000..a1f493f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_fail_list_in_transfer_in_check_mail_token.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailListInTransferInCheckMailToken is a nested struct in domain_intl response +type FailListInTransferInCheckMailToken struct { + FailDomain []string `json:"FailDomain" xml:"FailDomain"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_ip_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_ip_list.go new file mode 100644 index 0000000..6a7436f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_ip_list.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IpList is a nested struct in domain_intl response +type IpList struct { + Ip []string `json:"ip" xml:"ip"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_next_page_cursor.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_next_page_cursor.go new file mode 100644 index 0000000..39afedd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_next_page_cursor.go @@ -0,0 +1,35 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NextPageCursor is a nested struct in domain_intl response +type NextPageCursor struct { + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + TaskDetailNo string `json:"TaskDetailNo" xml:"TaskDetailNo"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + CreateTimeLong int `json:"CreateTimeLong" xml:"CreateTimeLong"` + TaskStatusCode int `json:"TaskStatusCode" xml:"TaskStatusCode"` + DomainName string `json:"DomainName" xml:"DomainName"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TaskTypeDescription string `json:"TaskTypeDescription" xml:"TaskTypeDescription"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + TaskNum int `json:"TaskNum" xml:"TaskNum"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Clientip string `json:"Clientip" xml:"Clientip"` + TryCount int `json:"TryCount" xml:"TryCount"` + TaskType string `json:"TaskType" xml:"TaskType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_objects_in_query_task_detail_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_objects_in_query_task_detail_history.go new file mode 100644 index 0000000..545644a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_objects_in_query_task_detail_history.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ObjectsInQueryTaskDetailHistory is a nested struct in domain_intl response +type ObjectsInQueryTaskDetailHistory struct { + TaskDetailHistory []TaskDetailHistory `json:"TaskDetailHistory" xml:"TaskDetailHistory"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_objects_in_query_task_info_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_objects_in_query_task_info_history.go new file mode 100644 index 0000000..f6fabc5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_objects_in_query_task_info_history.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ObjectsInQueryTaskInfoHistory is a nested struct in domain_intl response +type ObjectsInQueryTaskInfoHistory struct { + TaskInfoHistory []TaskInfoHistory `json:"TaskInfoHistory" xml:"TaskInfoHistory"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_pre_page_cursor.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_pre_page_cursor.go new file mode 100644 index 0000000..3dd4acf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_pre_page_cursor.go @@ -0,0 +1,35 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PrePageCursor is a nested struct in domain_intl response +type PrePageCursor struct { + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + TaskDetailNo string `json:"TaskDetailNo" xml:"TaskDetailNo"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + CreateTimeLong int `json:"CreateTimeLong" xml:"CreateTimeLong"` + TaskStatusCode int `json:"TaskStatusCode" xml:"TaskStatusCode"` + DomainName string `json:"DomainName" xml:"DomainName"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TaskTypeDescription string `json:"TaskTypeDescription" xml:"TaskTypeDescription"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + TaskNum int `json:"TaskNum" xml:"TaskNum"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Clientip string `json:"Clientip" xml:"Clientip"` + TryCount int `json:"TryCount" xml:"TryCount"` + TaskType string `json:"TaskType" xml:"TaskType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_registrant_profile.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_registrant_profile.go new file mode 100644 index 0000000..5cf9817 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_registrant_profile.go @@ -0,0 +1,36 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RegistrantProfile is a nested struct in domain_intl response +type RegistrantProfile struct { + RegistrantProfileId int `json:"RegistrantProfileId" xml:"RegistrantProfileId"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + DefaultRegistrantProfile bool `json:"DefaultRegistrantProfile" xml:"DefaultRegistrantProfile"` + RegistrantName string `json:"RegistrantName" xml:"RegistrantName"` + RegistrantOrganization string `json:"RegistrantOrganization" xml:"RegistrantOrganization"` + Country string `json:"Country" xml:"Country"` + Province string `json:"Province" xml:"Province"` + City string `json:"City" xml:"City"` + Address string `json:"Address" xml:"Address"` + Email string `json:"Email" xml:"Email"` + PostalCode string `json:"PostalCode" xml:"PostalCode"` + TelArea string `json:"TelArea" xml:"TelArea"` + Telephone string `json:"Telephone" xml:"Telephone"` + TelExt string `json:"TelExt" xml:"TelExt"` + EmailVerificationStatus int `json:"EmailVerificationStatus" xml:"EmailVerificationStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_registrant_profiles.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_registrant_profiles.go new file mode 100644 index 0000000..4679bf2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_registrant_profiles.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RegistrantProfiles is a nested struct in domain_intl response +type RegistrantProfiles struct { + RegistrantProfile []RegistrantProfile `json:"RegistrantProfile" xml:"RegistrantProfile"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_send_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_send_result.go new file mode 100644 index 0000000..987dcb2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_send_result.go @@ -0,0 +1,23 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SendResult is a nested struct in domain_intl response +type SendResult struct { + Message string `json:"Message" xml:"Message"` + Email string `json:"Email" xml:"Email"` + Code string `json:"Code" xml:"Code"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_success_list_in_confirm_transfer_in_email.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_success_list_in_confirm_transfer_in_email.go new file mode 100644 index 0000000..0f9c38e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_success_list_in_confirm_transfer_in_email.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SuccessListInConfirmTransferInEmail is a nested struct in domain_intl response +type SuccessListInConfirmTransferInEmail struct { + SuccessDomain []string `json:"SuccessDomain" xml:"SuccessDomain"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_success_list_in_delete_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_success_list_in_delete_email_verification.go new file mode 100644 index 0000000..5268711 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_success_list_in_delete_email_verification.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SuccessListInDeleteEmailVerification is a nested struct in domain_intl response +type SuccessListInDeleteEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_success_list_in_resend_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_success_list_in_resend_email_verification.go new file mode 100644 index 0000000..3ce77ab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_success_list_in_resend_email_verification.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SuccessListInResendEmailVerification is a nested struct in domain_intl response +type SuccessListInResendEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_success_list_in_submit_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_success_list_in_submit_email_verification.go new file mode 100644 index 0000000..a3da9de --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_success_list_in_submit_email_verification.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SuccessListInSubmitEmailVerification is a nested struct in domain_intl response +type SuccessListInSubmitEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_success_list_in_transfer_in_check_mail_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_success_list_in_transfer_in_check_mail_token.go new file mode 100644 index 0000000..7fa02ed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_success_list_in_transfer_in_check_mail_token.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SuccessListInTransferInCheckMailToken is a nested struct in domain_intl response +type SuccessListInTransferInCheckMailToken struct { + SuccessDomain []string `json:"SuccessDomain" xml:"SuccessDomain"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_task_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_task_detail.go new file mode 100644 index 0000000..b14a315 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_task_detail.go @@ -0,0 +1,33 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TaskDetail is a nested struct in domain_intl response +type TaskDetail struct { + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + TaskDetailNo string `json:"TaskDetailNo" xml:"TaskDetailNo"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + DomainName string `json:"DomainName" xml:"DomainName"` + TaskStatusCode int `json:"TaskStatusCode" xml:"TaskStatusCode"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TaskTypeDescription string `json:"TaskTypeDescription" xml:"TaskTypeDescription"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + TryCount int `json:"TryCount" xml:"TryCount"` + TaskType string `json:"TaskType" xml:"TaskType"` + TaskResult string `json:"TaskResult" xml:"TaskResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_task_detail_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_task_detail_history.go new file mode 100644 index 0000000..1f1dca3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_task_detail_history.go @@ -0,0 +1,32 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TaskDetailHistory is a nested struct in domain_intl response +type TaskDetailHistory struct { + TaskNo string `json:"TaskNo" xml:"TaskNo"` + TaskDetailNo string `json:"TaskDetailNo" xml:"TaskDetailNo"` + TaskType string `json:"TaskType" xml:"TaskType"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + DomainName string `json:"DomainName" xml:"DomainName"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TryCount int `json:"TryCount" xml:"TryCount"` + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + TaskStatusCode int `json:"TaskStatusCode" xml:"TaskStatusCode"` + TaskTypeDescription string `json:"TaskTypeDescription" xml:"TaskTypeDescription"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_task_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_task_info.go new file mode 100644 index 0000000..f706859 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_task_info.go @@ -0,0 +1,28 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TaskInfo is a nested struct in domain_intl response +type TaskInfo struct { + TaskType string `json:"TaskType" xml:"TaskType"` + TaskNum int `json:"TaskNum" xml:"TaskNum"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Clientip string `json:"Clientip" xml:"Clientip"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + TaskTypeDescription string `json:"TaskTypeDescription" xml:"TaskTypeDescription"` + TaskStatusCode int `json:"TaskStatusCode" xml:"TaskStatusCode"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_task_info_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_task_info_history.go new file mode 100644 index 0000000..83d19a1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_task_info_history.go @@ -0,0 +1,29 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TaskInfoHistory is a nested struct in domain_intl response +type TaskInfoHistory struct { + TaskType string `json:"TaskType" xml:"TaskType"` + TaskNum int `json:"TaskNum" xml:"TaskNum"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Clientip string `json:"Clientip" xml:"Clientip"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + CreateTimeLong int `json:"CreateTimeLong" xml:"CreateTimeLong"` + TaskStatusCode int `json:"TaskStatusCode" xml:"TaskStatusCode"` + TaskTypeDescription string `json:"TaskTypeDescription" xml:"TaskTypeDescription"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_transfer_in_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_transfer_in_info.go new file mode 100644 index 0000000..ef5a6fb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/struct_transfer_in_info.go @@ -0,0 +1,41 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TransferInInfo is a nested struct in domain_intl response +type TransferInInfo struct { + SubmissionDate string `json:"SubmissionDate" xml:"SubmissionDate"` + ModificationDate string `json:"ModificationDate" xml:"ModificationDate"` + UserId string `json:"UserId" xml:"UserId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + DomainName string `json:"DomainName" xml:"DomainName"` + Status int `json:"Status" xml:"Status"` + SimpleTransferInStatus string `json:"SimpleTransferInStatus" xml:"SimpleTransferInStatus"` + ResultCode string `json:"ResultCode" xml:"ResultCode"` + ResultDate string `json:"ResultDate" xml:"ResultDate"` + ResultMsg string `json:"ResultMsg" xml:"ResultMsg"` + TransferAuthorizationCodeSubmissionDate string `json:"TransferAuthorizationCodeSubmissionDate" xml:"TransferAuthorizationCodeSubmissionDate"` + NeedMailCheck bool `json:"NeedMailCheck" xml:"NeedMailCheck"` + Email string `json:"Email" xml:"Email"` + WhoisMailStatus bool `json:"WhoisMailStatus" xml:"WhoisMailStatus"` + ExpirationDate string `json:"ExpirationDate" xml:"ExpirationDate"` + ProgressBarType int `json:"ProgressBarType" xml:"ProgressBarType"` + SubmissionDateLong int `json:"SubmissionDateLong" xml:"SubmissionDateLong"` + ModificationDateLong int `json:"ModificationDateLong" xml:"ModificationDateLong"` + ResultDateLong int `json:"ResultDateLong" xml:"ResultDateLong"` + ExpirationDateLong int `json:"ExpirationDateLong" xml:"ExpirationDateLong"` + TransferAuthorizationCodeSubmissionDateLong int `json:"TransferAuthorizationCodeSubmissionDateLong" xml:"TransferAuthorizationCodeSubmissionDateLong"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/submit_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/submit_email_verification.go new file mode 100644 index 0000000..b562675 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/submit_email_verification.go @@ -0,0 +1,109 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitEmailVerification invokes the domain_intl.SubmitEmailVerification API synchronously +// api document: https://help.aliyun.com/api/domain-intl/submitemailverification.html +func (client *Client) SubmitEmailVerification(request *SubmitEmailVerificationRequest) (response *SubmitEmailVerificationResponse, err error) { + response = CreateSubmitEmailVerificationResponse() + err = client.DoAction(request, response) + return +} + +// SubmitEmailVerificationWithChan invokes the domain_intl.SubmitEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/submitemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitEmailVerificationWithChan(request *SubmitEmailVerificationRequest) (<-chan *SubmitEmailVerificationResponse, <-chan error) { + responseChan := make(chan *SubmitEmailVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitEmailVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitEmailVerificationWithCallback invokes the domain_intl.SubmitEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/submitemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitEmailVerificationWithCallback(request *SubmitEmailVerificationRequest, callback func(response *SubmitEmailVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitEmailVerificationResponse + var err error + defer close(result) + response, err = client.SubmitEmailVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitEmailVerificationRequest is the request struct for api SubmitEmailVerification +type SubmitEmailVerificationRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` + SendIfExist requests.Boolean `position:"Query" name:"SendIfExist"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// SubmitEmailVerificationResponse is the response struct for api SubmitEmailVerification +type SubmitEmailVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SuccessList []SendResult `json:"SuccessList" xml:"SuccessList"` + FailList []SendResult `json:"FailList" xml:"FailList"` + ExistList []SendResult `json:"ExistList" xml:"ExistList"` +} + +// CreateSubmitEmailVerificationRequest creates a request to invoke SubmitEmailVerification API +func CreateSubmitEmailVerificationRequest() (request *SubmitEmailVerificationRequest) { + request = &SubmitEmailVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SubmitEmailVerification", "domain", "openAPI") + return +} + +// CreateSubmitEmailVerificationResponse creates a response to parse from SubmitEmailVerification response +func CreateSubmitEmailVerificationResponse() (response *SubmitEmailVerificationResponse) { + response = &SubmitEmailVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/transfer_in_check_mail_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/transfer_in_check_mail_token.go new file mode 100644 index 0000000..c436315 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/transfer_in_check_mail_token.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TransferInCheckMailToken invokes the domain_intl.TransferInCheckMailToken API synchronously +// api document: https://help.aliyun.com/api/domain-intl/transferincheckmailtoken.html +func (client *Client) TransferInCheckMailToken(request *TransferInCheckMailTokenRequest) (response *TransferInCheckMailTokenResponse, err error) { + response = CreateTransferInCheckMailTokenResponse() + err = client.DoAction(request, response) + return +} + +// TransferInCheckMailTokenWithChan invokes the domain_intl.TransferInCheckMailToken API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/transferincheckmailtoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TransferInCheckMailTokenWithChan(request *TransferInCheckMailTokenRequest) (<-chan *TransferInCheckMailTokenResponse, <-chan error) { + responseChan := make(chan *TransferInCheckMailTokenResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TransferInCheckMailToken(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TransferInCheckMailTokenWithCallback invokes the domain_intl.TransferInCheckMailToken API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/transferincheckmailtoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TransferInCheckMailTokenWithCallback(request *TransferInCheckMailTokenRequest, callback func(response *TransferInCheckMailTokenResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TransferInCheckMailTokenResponse + var err error + defer close(result) + response, err = client.TransferInCheckMailToken(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TransferInCheckMailTokenRequest is the request struct for api TransferInCheckMailToken +type TransferInCheckMailTokenRequest struct { + *requests.RpcRequest + Token string `position:"Query" name:"Token"` + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// TransferInCheckMailTokenResponse is the response struct for api TransferInCheckMailToken +type TransferInCheckMailTokenResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SuccessList SuccessListInTransferInCheckMailToken `json:"SuccessList" xml:"SuccessList"` + FailList FailListInTransferInCheckMailToken `json:"FailList" xml:"FailList"` +} + +// CreateTransferInCheckMailTokenRequest creates a request to invoke TransferInCheckMailToken API +func CreateTransferInCheckMailTokenRequest() (request *TransferInCheckMailTokenRequest) { + request = &TransferInCheckMailTokenRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "TransferInCheckMailToken", "domain", "openAPI") + return +} + +// CreateTransferInCheckMailTokenResponse creates a response to parse from TransferInCheckMailToken response +func CreateTransferInCheckMailTokenResponse() (response *TransferInCheckMailTokenResponse) { + response = &TransferInCheckMailTokenResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/transfer_in_reenter_transfer_authorization_code.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/transfer_in_reenter_transfer_authorization_code.go new file mode 100644 index 0000000..d52f0e7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/transfer_in_reenter_transfer_authorization_code.go @@ -0,0 +1,106 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TransferInReenterTransferAuthorizationCode invokes the domain_intl.TransferInReenterTransferAuthorizationCode API synchronously +// api document: https://help.aliyun.com/api/domain-intl/transferinreentertransferauthorizationcode.html +func (client *Client) TransferInReenterTransferAuthorizationCode(request *TransferInReenterTransferAuthorizationCodeRequest) (response *TransferInReenterTransferAuthorizationCodeResponse, err error) { + response = CreateTransferInReenterTransferAuthorizationCodeResponse() + err = client.DoAction(request, response) + return +} + +// TransferInReenterTransferAuthorizationCodeWithChan invokes the domain_intl.TransferInReenterTransferAuthorizationCode API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/transferinreentertransferauthorizationcode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TransferInReenterTransferAuthorizationCodeWithChan(request *TransferInReenterTransferAuthorizationCodeRequest) (<-chan *TransferInReenterTransferAuthorizationCodeResponse, <-chan error) { + responseChan := make(chan *TransferInReenterTransferAuthorizationCodeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TransferInReenterTransferAuthorizationCode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TransferInReenterTransferAuthorizationCodeWithCallback invokes the domain_intl.TransferInReenterTransferAuthorizationCode API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/transferinreentertransferauthorizationcode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TransferInReenterTransferAuthorizationCodeWithCallback(request *TransferInReenterTransferAuthorizationCodeRequest, callback func(response *TransferInReenterTransferAuthorizationCodeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TransferInReenterTransferAuthorizationCodeResponse + var err error + defer close(result) + response, err = client.TransferInReenterTransferAuthorizationCode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TransferInReenterTransferAuthorizationCodeRequest is the request struct for api TransferInReenterTransferAuthorizationCode +type TransferInReenterTransferAuthorizationCodeRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + TransferAuthorizationCode string `position:"Query" name:"TransferAuthorizationCode"` +} + +// TransferInReenterTransferAuthorizationCodeResponse is the response struct for api TransferInReenterTransferAuthorizationCode +type TransferInReenterTransferAuthorizationCodeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateTransferInReenterTransferAuthorizationCodeRequest creates a request to invoke TransferInReenterTransferAuthorizationCode API +func CreateTransferInReenterTransferAuthorizationCodeRequest() (request *TransferInReenterTransferAuthorizationCodeRequest) { + request = &TransferInReenterTransferAuthorizationCodeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "TransferInReenterTransferAuthorizationCode", "domain", "openAPI") + return +} + +// CreateTransferInReenterTransferAuthorizationCodeResponse creates a response to parse from TransferInReenterTransferAuthorizationCode response +func CreateTransferInReenterTransferAuthorizationCodeResponse() (response *TransferInReenterTransferAuthorizationCodeResponse) { + response = &TransferInReenterTransferAuthorizationCodeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/transfer_in_refetch_whois_email.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/transfer_in_refetch_whois_email.go new file mode 100644 index 0000000..eca55b0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/transfer_in_refetch_whois_email.go @@ -0,0 +1,105 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TransferInRefetchWhoisEmail invokes the domain_intl.TransferInRefetchWhoisEmail API synchronously +// api document: https://help.aliyun.com/api/domain-intl/transferinrefetchwhoisemail.html +func (client *Client) TransferInRefetchWhoisEmail(request *TransferInRefetchWhoisEmailRequest) (response *TransferInRefetchWhoisEmailResponse, err error) { + response = CreateTransferInRefetchWhoisEmailResponse() + err = client.DoAction(request, response) + return +} + +// TransferInRefetchWhoisEmailWithChan invokes the domain_intl.TransferInRefetchWhoisEmail API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/transferinrefetchwhoisemail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TransferInRefetchWhoisEmailWithChan(request *TransferInRefetchWhoisEmailRequest) (<-chan *TransferInRefetchWhoisEmailResponse, <-chan error) { + responseChan := make(chan *TransferInRefetchWhoisEmailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TransferInRefetchWhoisEmail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TransferInRefetchWhoisEmailWithCallback invokes the domain_intl.TransferInRefetchWhoisEmail API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/transferinrefetchwhoisemail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TransferInRefetchWhoisEmailWithCallback(request *TransferInRefetchWhoisEmailRequest, callback func(response *TransferInRefetchWhoisEmailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TransferInRefetchWhoisEmailResponse + var err error + defer close(result) + response, err = client.TransferInRefetchWhoisEmail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TransferInRefetchWhoisEmailRequest is the request struct for api TransferInRefetchWhoisEmail +type TransferInRefetchWhoisEmailRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// TransferInRefetchWhoisEmailResponse is the response struct for api TransferInRefetchWhoisEmail +type TransferInRefetchWhoisEmailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateTransferInRefetchWhoisEmailRequest creates a request to invoke TransferInRefetchWhoisEmail API +func CreateTransferInRefetchWhoisEmailRequest() (request *TransferInRefetchWhoisEmailRequest) { + request = &TransferInRefetchWhoisEmailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "TransferInRefetchWhoisEmail", "domain", "openAPI") + return +} + +// CreateTransferInRefetchWhoisEmailResponse creates a response to parse from TransferInRefetchWhoisEmail response +func CreateTransferInRefetchWhoisEmailResponse() (response *TransferInRefetchWhoisEmailResponse) { + response = &TransferInRefetchWhoisEmailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/transfer_in_resend_mail_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/transfer_in_resend_mail_token.go new file mode 100644 index 0000000..1662849 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/transfer_in_resend_mail_token.go @@ -0,0 +1,105 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TransferInResendMailToken invokes the domain_intl.TransferInResendMailToken API synchronously +// api document: https://help.aliyun.com/api/domain-intl/transferinresendmailtoken.html +func (client *Client) TransferInResendMailToken(request *TransferInResendMailTokenRequest) (response *TransferInResendMailTokenResponse, err error) { + response = CreateTransferInResendMailTokenResponse() + err = client.DoAction(request, response) + return +} + +// TransferInResendMailTokenWithChan invokes the domain_intl.TransferInResendMailToken API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/transferinresendmailtoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TransferInResendMailTokenWithChan(request *TransferInResendMailTokenRequest) (<-chan *TransferInResendMailTokenResponse, <-chan error) { + responseChan := make(chan *TransferInResendMailTokenResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TransferInResendMailToken(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TransferInResendMailTokenWithCallback invokes the domain_intl.TransferInResendMailToken API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/transferinresendmailtoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TransferInResendMailTokenWithCallback(request *TransferInResendMailTokenRequest, callback func(response *TransferInResendMailTokenResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TransferInResendMailTokenResponse + var err error + defer close(result) + response, err = client.TransferInResendMailToken(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TransferInResendMailTokenRequest is the request struct for api TransferInResendMailToken +type TransferInResendMailTokenRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// TransferInResendMailTokenResponse is the response struct for api TransferInResendMailToken +type TransferInResendMailTokenResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateTransferInResendMailTokenRequest creates a request to invoke TransferInResendMailToken API +func CreateTransferInResendMailTokenRequest() (request *TransferInResendMailTokenRequest) { + request = &TransferInResendMailTokenRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "TransferInResendMailToken", "domain", "openAPI") + return +} + +// CreateTransferInResendMailTokenResponse creates a response to parse from TransferInResendMailToken response +func CreateTransferInResendMailTokenResponse() (response *TransferInResendMailTokenResponse) { + response = &TransferInResendMailTokenResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/verify_contact_field.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/verify_contact_field.go new file mode 100644 index 0000000..4307ec1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/verify_contact_field.go @@ -0,0 +1,115 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// VerifyContactField invokes the domain_intl.VerifyContactField API synchronously +// api document: https://help.aliyun.com/api/domain-intl/verifycontactfield.html +func (client *Client) VerifyContactField(request *VerifyContactFieldRequest) (response *VerifyContactFieldResponse, err error) { + response = CreateVerifyContactFieldResponse() + err = client.DoAction(request, response) + return +} + +// VerifyContactFieldWithChan invokes the domain_intl.VerifyContactField API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/verifycontactfield.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VerifyContactFieldWithChan(request *VerifyContactFieldRequest) (<-chan *VerifyContactFieldResponse, <-chan error) { + responseChan := make(chan *VerifyContactFieldResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.VerifyContactField(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// VerifyContactFieldWithCallback invokes the domain_intl.VerifyContactField API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/verifycontactfield.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VerifyContactFieldWithCallback(request *VerifyContactFieldRequest, callback func(response *VerifyContactFieldResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *VerifyContactFieldResponse + var err error + defer close(result) + response, err = client.VerifyContactField(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// VerifyContactFieldRequest is the request struct for api VerifyContactField +type VerifyContactFieldRequest struct { + *requests.RpcRequest + RegistrantName string `position:"Query" name:"RegistrantName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + City string `position:"Query" name:"City"` + RegistrantOrganization string `position:"Query" name:"RegistrantOrganization"` + Country string `position:"Query" name:"Country"` + Province string `position:"Query" name:"Province"` + Address string `position:"Query" name:"Address"` + Email string `position:"Query" name:"Email"` + PostalCode string `position:"Query" name:"PostalCode"` + TelArea string `position:"Query" name:"TelArea"` + Telephone string `position:"Query" name:"Telephone"` + TelExt string `position:"Query" name:"TelExt"` +} + +// VerifyContactFieldResponse is the response struct for api VerifyContactField +type VerifyContactFieldResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateVerifyContactFieldRequest creates a request to invoke VerifyContactField API +func CreateVerifyContactFieldRequest() (request *VerifyContactFieldRequest) { + request = &VerifyContactFieldRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "VerifyContactField", "domain", "openAPI") + return +} + +// CreateVerifyContactFieldResponse creates a response to parse from VerifyContactField response +func CreateVerifyContactFieldResponse() (response *VerifyContactFieldResponse) { + response = &VerifyContactFieldResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/verify_email.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/verify_email.go new file mode 100644 index 0000000..63b7d44 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain-intl/verify_email.go @@ -0,0 +1,105 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// VerifyEmail invokes the domain_intl.VerifyEmail API synchronously +// api document: https://help.aliyun.com/api/domain-intl/verifyemail.html +func (client *Client) VerifyEmail(request *VerifyEmailRequest) (response *VerifyEmailResponse, err error) { + response = CreateVerifyEmailResponse() + err = client.DoAction(request, response) + return +} + +// VerifyEmailWithChan invokes the domain_intl.VerifyEmail API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/verifyemail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VerifyEmailWithChan(request *VerifyEmailRequest) (<-chan *VerifyEmailResponse, <-chan error) { + responseChan := make(chan *VerifyEmailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.VerifyEmail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// VerifyEmailWithCallback invokes the domain_intl.VerifyEmail API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/verifyemail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VerifyEmailWithCallback(request *VerifyEmailRequest, callback func(response *VerifyEmailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *VerifyEmailResponse + var err error + defer close(result) + response, err = client.VerifyEmail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// VerifyEmailRequest is the request struct for api VerifyEmail +type VerifyEmailRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + Token string `position:"Query" name:"Token"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// VerifyEmailResponse is the response struct for api VerifyEmail +type VerifyEmailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateVerifyEmailRequest creates a request to invoke VerifyEmail API +func CreateVerifyEmailRequest() (request *VerifyEmailRequest) { + request = &VerifyEmailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "VerifyEmail", "domain", "openAPI") + return +} + +// CreateVerifyEmailResponse creates a response to parse from VerifyEmail response +func CreateVerifyEmailResponse() (response *VerifyEmailResponse) { + response = &VerifyEmailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/accept_demand.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/accept_demand.go new file mode 100644 index 0000000..8f09bf9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/accept_demand.go @@ -0,0 +1,104 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AcceptDemand invokes the domain.AcceptDemand API synchronously +// api document: https://help.aliyun.com/api/domain/acceptdemand.html +func (client *Client) AcceptDemand(request *AcceptDemandRequest) (response *AcceptDemandResponse, err error) { + response = CreateAcceptDemandResponse() + err = client.DoAction(request, response) + return +} + +// AcceptDemandWithChan invokes the domain.AcceptDemand API asynchronously +// api document: https://help.aliyun.com/api/domain/acceptdemand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AcceptDemandWithChan(request *AcceptDemandRequest) (<-chan *AcceptDemandResponse, <-chan error) { + responseChan := make(chan *AcceptDemandResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AcceptDemand(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AcceptDemandWithCallback invokes the domain.AcceptDemand API asynchronously +// api document: https://help.aliyun.com/api/domain/acceptdemand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AcceptDemandWithCallback(request *AcceptDemandRequest, callback func(response *AcceptDemandResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AcceptDemandResponse + var err error + defer close(result) + response, err = client.AcceptDemand(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AcceptDemandRequest is the request struct for api AcceptDemand +type AcceptDemandRequest struct { + *requests.RpcRequest + BizId string `position:"Query" name:"BizId"` + Message string `position:"Query" name:"Message"` +} + +// AcceptDemandResponse is the response struct for api AcceptDemand +type AcceptDemandResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAcceptDemandRequest creates a request to invoke AcceptDemand API +func CreateAcceptDemandRequest() (request *AcceptDemandRequest) { + request = &AcceptDemandRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-02-08", "AcceptDemand", "", "") + return +} + +// CreateAcceptDemandResponse creates a response to parse from AcceptDemand response +func CreateAcceptDemandResponse() (response *AcceptDemandResponse) { + response = &AcceptDemandResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/acknowledge_task_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/acknowledge_task_result.go new file mode 100644 index 0000000..ed0dd54 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/acknowledge_task_result.go @@ -0,0 +1,106 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AcknowledgeTaskResult invokes the domain.AcknowledgeTaskResult API synchronously +// api document: https://help.aliyun.com/api/domain/acknowledgetaskresult.html +func (client *Client) AcknowledgeTaskResult(request *AcknowledgeTaskResultRequest) (response *AcknowledgeTaskResultResponse, err error) { + response = CreateAcknowledgeTaskResultResponse() + err = client.DoAction(request, response) + return +} + +// AcknowledgeTaskResultWithChan invokes the domain.AcknowledgeTaskResult API asynchronously +// api document: https://help.aliyun.com/api/domain/acknowledgetaskresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AcknowledgeTaskResultWithChan(request *AcknowledgeTaskResultRequest) (<-chan *AcknowledgeTaskResultResponse, <-chan error) { + responseChan := make(chan *AcknowledgeTaskResultResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AcknowledgeTaskResult(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AcknowledgeTaskResultWithCallback invokes the domain.AcknowledgeTaskResult API asynchronously +// api document: https://help.aliyun.com/api/domain/acknowledgetaskresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AcknowledgeTaskResultWithCallback(request *AcknowledgeTaskResultRequest, callback func(response *AcknowledgeTaskResultResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AcknowledgeTaskResultResponse + var err error + defer close(result) + response, err = client.AcknowledgeTaskResult(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AcknowledgeTaskResultRequest is the request struct for api AcknowledgeTaskResult +type AcknowledgeTaskResultRequest struct { + *requests.RpcRequest + TaskDetailNo *[]string `position:"Query" name:"TaskDetailNo" type:"Repeated"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// AcknowledgeTaskResultResponse is the response struct for api AcknowledgeTaskResult +type AcknowledgeTaskResultResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Result int `json:"Result" xml:"Result"` +} + +// CreateAcknowledgeTaskResultRequest creates a request to invoke AcknowledgeTaskResult API +func CreateAcknowledgeTaskResultRequest() (request *AcknowledgeTaskResultRequest) { + request = &AcknowledgeTaskResultRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "AcknowledgeTaskResult", "", "") + return +} + +// CreateAcknowledgeTaskResultResponse creates a response to parse from AcknowledgeTaskResult response +func CreateAcknowledgeTaskResultResponse() (response *AcknowledgeTaskResultResponse) { + response = &AcknowledgeTaskResultResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/bid_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/bid_domain.go new file mode 100644 index 0000000..d34e6ae --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/bid_domain.go @@ -0,0 +1,106 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// BidDomain invokes the domain.BidDomain API synchronously +// api document: https://help.aliyun.com/api/domain/biddomain.html +func (client *Client) BidDomain(request *BidDomainRequest) (response *BidDomainResponse, err error) { + response = CreateBidDomainResponse() + err = client.DoAction(request, response) + return +} + +// BidDomainWithChan invokes the domain.BidDomain API asynchronously +// api document: https://help.aliyun.com/api/domain/biddomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BidDomainWithChan(request *BidDomainRequest) (<-chan *BidDomainResponse, <-chan error) { + responseChan := make(chan *BidDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BidDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BidDomainWithCallback invokes the domain.BidDomain API asynchronously +// api document: https://help.aliyun.com/api/domain/biddomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BidDomainWithCallback(request *BidDomainRequest, callback func(response *BidDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BidDomainResponse + var err error + defer close(result) + response, err = client.BidDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BidDomainRequest is the request struct for api BidDomain +type BidDomainRequest struct { + *requests.RpcRequest + AuctionId string `position:"Body" name:"AuctionId"` + MaxBid requests.Float `position:"Body" name:"MaxBid"` + Currency string `position:"Body" name:"Currency"` +} + +// BidDomainResponse is the response struct for api BidDomain +type BidDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AuctionId string `json:"AuctionId" xml:"AuctionId"` +} + +// CreateBidDomainRequest creates a request to invoke BidDomain API +func CreateBidDomainRequest() (request *BidDomainRequest) { + request = &BidDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-02-08", "BidDomain", "", "") + return +} + +// CreateBidDomainResponse creates a response to parse from BidDomain response +func CreateBidDomainResponse() (response *BidDomainResponse) { + response = &BidDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/cancel_domain_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/cancel_domain_verification.go new file mode 100644 index 0000000..fa025e0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/cancel_domain_verification.go @@ -0,0 +1,106 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CancelDomainVerification invokes the domain.CancelDomainVerification API synchronously +// api document: https://help.aliyun.com/api/domain/canceldomainverification.html +func (client *Client) CancelDomainVerification(request *CancelDomainVerificationRequest) (response *CancelDomainVerificationResponse, err error) { + response = CreateCancelDomainVerificationResponse() + err = client.DoAction(request, response) + return +} + +// CancelDomainVerificationWithChan invokes the domain.CancelDomainVerification API asynchronously +// api document: https://help.aliyun.com/api/domain/canceldomainverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelDomainVerificationWithChan(request *CancelDomainVerificationRequest) (<-chan *CancelDomainVerificationResponse, <-chan error) { + responseChan := make(chan *CancelDomainVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CancelDomainVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CancelDomainVerificationWithCallback invokes the domain.CancelDomainVerification API asynchronously +// api document: https://help.aliyun.com/api/domain/canceldomainverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelDomainVerificationWithCallback(request *CancelDomainVerificationRequest, callback func(response *CancelDomainVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CancelDomainVerificationResponse + var err error + defer close(result) + response, err = client.CancelDomainVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CancelDomainVerificationRequest is the request struct for api CancelDomainVerification +type CancelDomainVerificationRequest struct { + *requests.RpcRequest + ActionType string `position:"Query" name:"ActionType"` + InstanceId string `position:"Query" name:"InstanceId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// CancelDomainVerificationResponse is the response struct for api CancelDomainVerification +type CancelDomainVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCancelDomainVerificationRequest creates a request to invoke CancelDomainVerification API +func CreateCancelDomainVerificationRequest() (request *CancelDomainVerificationRequest) { + request = &CancelDomainVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "CancelDomainVerification", "", "") + return +} + +// CreateCancelDomainVerificationResponse creates a response to parse from CancelDomainVerification response +func CreateCancelDomainVerificationResponse() (response *CancelDomainVerificationResponse) { + response = &CancelDomainVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/check_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/check_domain.go new file mode 100644 index 0000000..518f59e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/check_domain.go @@ -0,0 +1,111 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckDomain invokes the domain.CheckDomain API synchronously +// api document: https://help.aliyun.com/api/domain/checkdomain.html +func (client *Client) CheckDomain(request *CheckDomainRequest) (response *CheckDomainResponse, err error) { + response = CreateCheckDomainResponse() + err = client.DoAction(request, response) + return +} + +// CheckDomainWithChan invokes the domain.CheckDomain API asynchronously +// api document: https://help.aliyun.com/api/domain/checkdomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckDomainWithChan(request *CheckDomainRequest) (<-chan *CheckDomainResponse, <-chan error) { + responseChan := make(chan *CheckDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckDomainWithCallback invokes the domain.CheckDomain API asynchronously +// api document: https://help.aliyun.com/api/domain/checkdomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckDomainWithCallback(request *CheckDomainRequest, callback func(response *CheckDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckDomainResponse + var err error + defer close(result) + response, err = client.CheckDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckDomainRequest is the request struct for api CheckDomain +type CheckDomainRequest struct { + *requests.RpcRequest + FeeCurrency string `position:"Query" name:"FeeCurrency"` + FeePeriod requests.Integer `position:"Query" name:"FeePeriod"` + DomainName string `position:"Query" name:"DomainName"` + FeeCommand string `position:"Query" name:"FeeCommand"` +} + +// CheckDomainResponse is the response struct for api CheckDomain +type CheckDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + Avail string `json:"Avail" xml:"Avail"` + Premium string `json:"Premium" xml:"Premium"` + Reason string `json:"Reason" xml:"Reason"` + Price int `json:"Price" xml:"Price"` +} + +// CreateCheckDomainRequest creates a request to invoke CheckDomain API +func CreateCheckDomainRequest() (request *CheckDomainRequest) { + request = &CheckDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "CheckDomain", "", "") + return +} + +// CreateCheckDomainResponse creates a response to parse from CheckDomain response +func CreateCheckDomainResponse() (response *CheckDomainResponse) { + response = &CheckDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/check_transfer_in_feasibility.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/check_transfer_in_feasibility.go new file mode 100644 index 0000000..e8567d3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/check_transfer_in_feasibility.go @@ -0,0 +1,110 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckTransferInFeasibility invokes the domain.CheckTransferInFeasibility API synchronously +// api document: https://help.aliyun.com/api/domain/checktransferinfeasibility.html +func (client *Client) CheckTransferInFeasibility(request *CheckTransferInFeasibilityRequest) (response *CheckTransferInFeasibilityResponse, err error) { + response = CreateCheckTransferInFeasibilityResponse() + err = client.DoAction(request, response) + return +} + +// CheckTransferInFeasibilityWithChan invokes the domain.CheckTransferInFeasibility API asynchronously +// api document: https://help.aliyun.com/api/domain/checktransferinfeasibility.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckTransferInFeasibilityWithChan(request *CheckTransferInFeasibilityRequest) (<-chan *CheckTransferInFeasibilityResponse, <-chan error) { + responseChan := make(chan *CheckTransferInFeasibilityResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckTransferInFeasibility(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckTransferInFeasibilityWithCallback invokes the domain.CheckTransferInFeasibility API asynchronously +// api document: https://help.aliyun.com/api/domain/checktransferinfeasibility.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckTransferInFeasibilityWithCallback(request *CheckTransferInFeasibilityRequest, callback func(response *CheckTransferInFeasibilityResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckTransferInFeasibilityResponse + var err error + defer close(result) + response, err = client.CheckTransferInFeasibility(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckTransferInFeasibilityRequest is the request struct for api CheckTransferInFeasibility +type CheckTransferInFeasibilityRequest struct { + *requests.RpcRequest + TransferAuthorizationCode string `position:"Query" name:"TransferAuthorizationCode"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + Lang string `position:"Query" name:"Lang"` +} + +// CheckTransferInFeasibilityResponse is the response struct for api CheckTransferInFeasibility +type CheckTransferInFeasibilityResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CanTransfer bool `json:"CanTransfer" xml:"CanTransfer"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + ProductId string `json:"ProductId" xml:"ProductId"` +} + +// CreateCheckTransferInFeasibilityRequest creates a request to invoke CheckTransferInFeasibility API +func CreateCheckTransferInFeasibilityRequest() (request *CheckTransferInFeasibilityRequest) { + request = &CheckTransferInFeasibilityRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "CheckTransferInFeasibility", "", "") + return +} + +// CreateCheckTransferInFeasibilityResponse creates a response to parse from CheckTransferInFeasibility response +func CreateCheckTransferInFeasibilityResponse() (response *CheckTransferInFeasibilityResponse) { + response = &CheckTransferInFeasibilityResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/client.go new file mode 100644 index 0000000..6099055 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/client.go @@ -0,0 +1,81 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/confirm_transfer_in_email.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/confirm_transfer_in_email.go new file mode 100644 index 0000000..bca73d1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/confirm_transfer_in_email.go @@ -0,0 +1,108 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ConfirmTransferInEmail invokes the domain.ConfirmTransferInEmail API synchronously +// api document: https://help.aliyun.com/api/domain/confirmtransferinemail.html +func (client *Client) ConfirmTransferInEmail(request *ConfirmTransferInEmailRequest) (response *ConfirmTransferInEmailResponse, err error) { + response = CreateConfirmTransferInEmailResponse() + err = client.DoAction(request, response) + return +} + +// ConfirmTransferInEmailWithChan invokes the domain.ConfirmTransferInEmail API asynchronously +// api document: https://help.aliyun.com/api/domain/confirmtransferinemail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ConfirmTransferInEmailWithChan(request *ConfirmTransferInEmailRequest) (<-chan *ConfirmTransferInEmailResponse, <-chan error) { + responseChan := make(chan *ConfirmTransferInEmailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ConfirmTransferInEmail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ConfirmTransferInEmailWithCallback invokes the domain.ConfirmTransferInEmail API asynchronously +// api document: https://help.aliyun.com/api/domain/confirmtransferinemail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ConfirmTransferInEmailWithCallback(request *ConfirmTransferInEmailRequest, callback func(response *ConfirmTransferInEmailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ConfirmTransferInEmailResponse + var err error + defer close(result) + response, err = client.ConfirmTransferInEmail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ConfirmTransferInEmailRequest is the request struct for api ConfirmTransferInEmail +type ConfirmTransferInEmailRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` +} + +// ConfirmTransferInEmailResponse is the response struct for api ConfirmTransferInEmail +type ConfirmTransferInEmailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SuccessList SuccessListInConfirmTransferInEmail `json:"SuccessList" xml:"SuccessList"` + FailList FailListInConfirmTransferInEmail `json:"FailList" xml:"FailList"` +} + +// CreateConfirmTransferInEmailRequest creates a request to invoke ConfirmTransferInEmail API +func CreateConfirmTransferInEmailRequest() (request *ConfirmTransferInEmailRequest) { + request = &ConfirmTransferInEmailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "ConfirmTransferInEmail", "", "") + return +} + +// CreateConfirmTransferInEmailResponse creates a response to parse from ConfirmTransferInEmail response +func CreateConfirmTransferInEmailResponse() (response *ConfirmTransferInEmailResponse) { + response = &ConfirmTransferInEmailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/delete_domain_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/delete_domain_group.go new file mode 100644 index 0000000..d8c1ffb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/delete_domain_group.go @@ -0,0 +1,105 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteDomainGroup invokes the domain.DeleteDomainGroup API synchronously +// api document: https://help.aliyun.com/api/domain/deletedomaingroup.html +func (client *Client) DeleteDomainGroup(request *DeleteDomainGroupRequest) (response *DeleteDomainGroupResponse, err error) { + response = CreateDeleteDomainGroupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteDomainGroupWithChan invokes the domain.DeleteDomainGroup API asynchronously +// api document: https://help.aliyun.com/api/domain/deletedomaingroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteDomainGroupWithChan(request *DeleteDomainGroupRequest) (<-chan *DeleteDomainGroupResponse, <-chan error) { + responseChan := make(chan *DeleteDomainGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteDomainGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteDomainGroupWithCallback invokes the domain.DeleteDomainGroup API asynchronously +// api document: https://help.aliyun.com/api/domain/deletedomaingroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainGroupId requests.Integer `position:"Query" name:"DomainGroupId"` +} + +// DeleteDomainGroupResponse is the response struct for api DeleteDomainGroup +type DeleteDomainGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteDomainGroupRequest creates a request to invoke DeleteDomainGroup API +func CreateDeleteDomainGroupRequest() (request *DeleteDomainGroupRequest) { + request = &DeleteDomainGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "DeleteDomainGroup", "", "") + 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/domain/delete_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/delete_email_verification.go new file mode 100644 index 0000000..893ff16 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/delete_email_verification.go @@ -0,0 +1,107 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteEmailVerification invokes the domain.DeleteEmailVerification API synchronously +// api document: https://help.aliyun.com/api/domain/deleteemailverification.html +func (client *Client) DeleteEmailVerification(request *DeleteEmailVerificationRequest) (response *DeleteEmailVerificationResponse, err error) { + response = CreateDeleteEmailVerificationResponse() + err = client.DoAction(request, response) + return +} + +// DeleteEmailVerificationWithChan invokes the domain.DeleteEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain/deleteemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteEmailVerificationWithChan(request *DeleteEmailVerificationRequest) (<-chan *DeleteEmailVerificationResponse, <-chan error) { + responseChan := make(chan *DeleteEmailVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteEmailVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteEmailVerificationWithCallback invokes the domain.DeleteEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain/deleteemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteEmailVerificationWithCallback(request *DeleteEmailVerificationRequest, callback func(response *DeleteEmailVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteEmailVerificationResponse + var err error + defer close(result) + response, err = client.DeleteEmailVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteEmailVerificationRequest is the request struct for api DeleteEmailVerification +type DeleteEmailVerificationRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` +} + +// DeleteEmailVerificationResponse is the response struct for api DeleteEmailVerification +type DeleteEmailVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SuccessList []SendResult `json:"SuccessList" xml:"SuccessList"` + FailList []SendResult `json:"FailList" xml:"FailList"` +} + +// CreateDeleteEmailVerificationRequest creates a request to invoke DeleteEmailVerification API +func CreateDeleteEmailVerificationRequest() (request *DeleteEmailVerificationRequest) { + request = &DeleteEmailVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "DeleteEmailVerification", "", "") + return +} + +// CreateDeleteEmailVerificationResponse creates a response to parse from DeleteEmailVerification response +func CreateDeleteEmailVerificationResponse() (response *DeleteEmailVerificationResponse) { + response = &DeleteEmailVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/delete_registrant_profile.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/delete_registrant_profile.go new file mode 100644 index 0000000..d179e67 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/delete_registrant_profile.go @@ -0,0 +1,105 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteRegistrantProfile invokes the domain.DeleteRegistrantProfile API synchronously +// api document: https://help.aliyun.com/api/domain/deleteregistrantprofile.html +func (client *Client) DeleteRegistrantProfile(request *DeleteRegistrantProfileRequest) (response *DeleteRegistrantProfileResponse, err error) { + response = CreateDeleteRegistrantProfileResponse() + err = client.DoAction(request, response) + return +} + +// DeleteRegistrantProfileWithChan invokes the domain.DeleteRegistrantProfile API asynchronously +// api document: https://help.aliyun.com/api/domain/deleteregistrantprofile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteRegistrantProfileWithChan(request *DeleteRegistrantProfileRequest) (<-chan *DeleteRegistrantProfileResponse, <-chan error) { + responseChan := make(chan *DeleteRegistrantProfileResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteRegistrantProfile(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteRegistrantProfileWithCallback invokes the domain.DeleteRegistrantProfile API asynchronously +// api document: https://help.aliyun.com/api/domain/deleteregistrantprofile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteRegistrantProfileWithCallback(request *DeleteRegistrantProfileRequest, callback func(response *DeleteRegistrantProfileResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteRegistrantProfileResponse + var err error + defer close(result) + response, err = client.DeleteRegistrantProfile(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteRegistrantProfileRequest is the request struct for api DeleteRegistrantProfile +type DeleteRegistrantProfileRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + Lang string `position:"Query" name:"Lang"` +} + +// DeleteRegistrantProfileResponse is the response struct for api DeleteRegistrantProfile +type DeleteRegistrantProfileResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteRegistrantProfileRequest creates a request to invoke DeleteRegistrantProfile API +func CreateDeleteRegistrantProfileRequest() (request *DeleteRegistrantProfileRequest) { + request = &DeleteRegistrantProfileRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "DeleteRegistrantProfile", "", "") + return +} + +// CreateDeleteRegistrantProfileResponse creates a response to parse from DeleteRegistrantProfile response +func CreateDeleteRegistrantProfileResponse() (response *DeleteRegistrantProfileResponse) { + response = &DeleteRegistrantProfileResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/email_verified.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/email_verified.go new file mode 100644 index 0000000..6565343 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/email_verified.go @@ -0,0 +1,105 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EmailVerified invokes the domain.EmailVerified API synchronously +// api document: https://help.aliyun.com/api/domain/emailverified.html +func (client *Client) EmailVerified(request *EmailVerifiedRequest) (response *EmailVerifiedResponse, err error) { + response = CreateEmailVerifiedResponse() + err = client.DoAction(request, response) + return +} + +// EmailVerifiedWithChan invokes the domain.EmailVerified API asynchronously +// api document: https://help.aliyun.com/api/domain/emailverified.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EmailVerifiedWithChan(request *EmailVerifiedRequest) (<-chan *EmailVerifiedResponse, <-chan error) { + responseChan := make(chan *EmailVerifiedResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EmailVerified(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EmailVerifiedWithCallback invokes the domain.EmailVerified API asynchronously +// api document: https://help.aliyun.com/api/domain/emailverified.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EmailVerifiedWithCallback(request *EmailVerifiedRequest, callback func(response *EmailVerifiedResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EmailVerifiedResponse + var err error + defer close(result) + response, err = client.EmailVerified(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EmailVerifiedRequest is the request struct for api EmailVerified +type EmailVerifiedRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` +} + +// EmailVerifiedResponse is the response struct for api EmailVerified +type EmailVerifiedResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateEmailVerifiedRequest creates a request to invoke EmailVerified API +func CreateEmailVerifiedRequest() (request *EmailVerifiedRequest) { + request = &EmailVerifiedRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "EmailVerified", "", "") + return +} + +// CreateEmailVerifiedResponse creates a response to parse from EmailVerified response +func CreateEmailVerifiedResponse() (response *EmailVerifiedResponse) { + response = &EmailVerifiedResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/fail_demand.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/fail_demand.go new file mode 100644 index 0000000..dfd9093 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/fail_demand.go @@ -0,0 +1,104 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// FailDemand invokes the domain.FailDemand API synchronously +// api document: https://help.aliyun.com/api/domain/faildemand.html +func (client *Client) FailDemand(request *FailDemandRequest) (response *FailDemandResponse, err error) { + response = CreateFailDemandResponse() + err = client.DoAction(request, response) + return +} + +// FailDemandWithChan invokes the domain.FailDemand API asynchronously +// api document: https://help.aliyun.com/api/domain/faildemand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FailDemandWithChan(request *FailDemandRequest) (<-chan *FailDemandResponse, <-chan error) { + responseChan := make(chan *FailDemandResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.FailDemand(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// FailDemandWithCallback invokes the domain.FailDemand API asynchronously +// api document: https://help.aliyun.com/api/domain/faildemand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FailDemandWithCallback(request *FailDemandRequest, callback func(response *FailDemandResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *FailDemandResponse + var err error + defer close(result) + response, err = client.FailDemand(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// FailDemandRequest is the request struct for api FailDemand +type FailDemandRequest struct { + *requests.RpcRequest + BizId string `position:"Query" name:"BizId"` + Message string `position:"Query" name:"Message"` +} + +// FailDemandResponse is the response struct for api FailDemand +type FailDemandResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateFailDemandRequest creates a request to invoke FailDemand API +func CreateFailDemandRequest() (request *FailDemandRequest) { + request = &FailDemandRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-02-08", "FailDemand", "", "") + return +} + +// CreateFailDemandResponse creates a response to parse from FailDemand response +func CreateFailDemandResponse() (response *FailDemandResponse) { + response = &FailDemandResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/finish_demand.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/finish_demand.go new file mode 100644 index 0000000..1fe0943 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/finish_demand.go @@ -0,0 +1,104 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// FinishDemand invokes the domain.FinishDemand API synchronously +// api document: https://help.aliyun.com/api/domain/finishdemand.html +func (client *Client) FinishDemand(request *FinishDemandRequest) (response *FinishDemandResponse, err error) { + response = CreateFinishDemandResponse() + err = client.DoAction(request, response) + return +} + +// FinishDemandWithChan invokes the domain.FinishDemand API asynchronously +// api document: https://help.aliyun.com/api/domain/finishdemand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FinishDemandWithChan(request *FinishDemandRequest) (<-chan *FinishDemandResponse, <-chan error) { + responseChan := make(chan *FinishDemandResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.FinishDemand(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// FinishDemandWithCallback invokes the domain.FinishDemand API asynchronously +// api document: https://help.aliyun.com/api/domain/finishdemand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FinishDemandWithCallback(request *FinishDemandRequest, callback func(response *FinishDemandResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *FinishDemandResponse + var err error + defer close(result) + response, err = client.FinishDemand(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// FinishDemandRequest is the request struct for api FinishDemand +type FinishDemandRequest struct { + *requests.RpcRequest + BizId string `position:"Query" name:"BizId"` + Message string `position:"Query" name:"Message"` +} + +// FinishDemandResponse is the response struct for api FinishDemand +type FinishDemandResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateFinishDemandRequest creates a request to invoke FinishDemand API +func CreateFinishDemandRequest() (request *FinishDemandRequest) { + request = &FinishDemandRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-02-08", "FinishDemand", "", "") + return +} + +// CreateFinishDemandResponse creates a response to parse from FinishDemand response +func CreateFinishDemandResponse() (response *FinishDemandResponse) { + response = &FinishDemandResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/get_reserve_domain_url.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/get_reserve_domain_url.go new file mode 100644 index 0000000..ae33177 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/get_reserve_domain_url.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetReserveDomainUrl invokes the domain.GetReserveDomainUrl API synchronously +// api document: https://help.aliyun.com/api/domain/getreservedomainurl.html +func (client *Client) GetReserveDomainUrl(request *GetReserveDomainUrlRequest) (response *GetReserveDomainUrlResponse, err error) { + response = CreateGetReserveDomainUrlResponse() + err = client.DoAction(request, response) + return +} + +// GetReserveDomainUrlWithChan invokes the domain.GetReserveDomainUrl API asynchronously +// api document: https://help.aliyun.com/api/domain/getreservedomainurl.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetReserveDomainUrlWithChan(request *GetReserveDomainUrlRequest) (<-chan *GetReserveDomainUrlResponse, <-chan error) { + responseChan := make(chan *GetReserveDomainUrlResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetReserveDomainUrl(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetReserveDomainUrlWithCallback invokes the domain.GetReserveDomainUrl API asynchronously +// api document: https://help.aliyun.com/api/domain/getreservedomainurl.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetReserveDomainUrlWithCallback(request *GetReserveDomainUrlRequest, callback func(response *GetReserveDomainUrlResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetReserveDomainUrlResponse + var err error + defer close(result) + response, err = client.GetReserveDomainUrl(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetReserveDomainUrlRequest is the request struct for api GetReserveDomainUrl +type GetReserveDomainUrlRequest struct { + *requests.RpcRequest +} + +// GetReserveDomainUrlResponse is the response struct for api GetReserveDomainUrl +type GetReserveDomainUrlResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Url string `json:"Url" xml:"Url"` +} + +// CreateGetReserveDomainUrlRequest creates a request to invoke GetReserveDomainUrl API +func CreateGetReserveDomainUrlRequest() (request *GetReserveDomainUrlRequest) { + request = &GetReserveDomainUrlRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-02-08", "GetReserveDomainUrl", "", "") + return +} + +// CreateGetReserveDomainUrlResponse creates a response to parse from GetReserveDomainUrl response +func CreateGetReserveDomainUrlResponse() (response *GetReserveDomainUrlResponse) { + response = &GetReserveDomainUrlResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/list_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/list_email_verification.go new file mode 100644 index 0000000..f14e4b6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/list_email_verification.go @@ -0,0 +1,116 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListEmailVerification invokes the domain.ListEmailVerification API synchronously +// api document: https://help.aliyun.com/api/domain/listemailverification.html +func (client *Client) ListEmailVerification(request *ListEmailVerificationRequest) (response *ListEmailVerificationResponse, err error) { + response = CreateListEmailVerificationResponse() + err = client.DoAction(request, response) + return +} + +// ListEmailVerificationWithChan invokes the domain.ListEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain/listemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListEmailVerificationWithChan(request *ListEmailVerificationRequest) (<-chan *ListEmailVerificationResponse, <-chan error) { + responseChan := make(chan *ListEmailVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListEmailVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListEmailVerificationWithCallback invokes the domain.ListEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain/listemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListEmailVerificationWithCallback(request *ListEmailVerificationRequest, callback func(response *ListEmailVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListEmailVerificationResponse + var err error + defer close(result) + response, err = client.ListEmailVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListEmailVerificationRequest is the request struct for api ListEmailVerification +type ListEmailVerificationRequest struct { + *requests.RpcRequest + BeginCreateTime requests.Integer `position:"Query" name:"BeginCreateTime"` + EndCreateTime requests.Integer `position:"Query" name:"EndCreateTime"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Lang string `position:"Query" name:"Lang"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + Email string `position:"Query" name:"Email"` + VerificationStatus requests.Integer `position:"Query" name:"VerificationStatus"` +} + +// ListEmailVerificationResponse is the response struct for api ListEmailVerification +type ListEmailVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data []EmailVerification `json:"Data" xml:"Data"` +} + +// CreateListEmailVerificationRequest creates a request to invoke ListEmailVerification API +func CreateListEmailVerificationRequest() (request *ListEmailVerificationRequest) { + request = &ListEmailVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "ListEmailVerification", "", "") + return +} + +// CreateListEmailVerificationResponse creates a response to parse from ListEmailVerification response +func CreateListEmailVerificationResponse() (response *ListEmailVerificationResponse) { + response = &ListEmailVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/poll_task_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/poll_task_result.go new file mode 100644 index 0000000..c917e7d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/poll_task_result.go @@ -0,0 +1,117 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PollTaskResult invokes the domain.PollTaskResult API synchronously +// api document: https://help.aliyun.com/api/domain/polltaskresult.html +func (client *Client) PollTaskResult(request *PollTaskResultRequest) (response *PollTaskResultResponse, err error) { + response = CreatePollTaskResultResponse() + err = client.DoAction(request, response) + return +} + +// PollTaskResultWithChan invokes the domain.PollTaskResult API asynchronously +// api document: https://help.aliyun.com/api/domain/polltaskresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PollTaskResultWithChan(request *PollTaskResultRequest) (<-chan *PollTaskResultResponse, <-chan error) { + responseChan := make(chan *PollTaskResultResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PollTaskResult(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PollTaskResultWithCallback invokes the domain.PollTaskResult API asynchronously +// api document: https://help.aliyun.com/api/domain/polltaskresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PollTaskResultWithCallback(request *PollTaskResultRequest, callback func(response *PollTaskResultResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PollTaskResultResponse + var err error + defer close(result) + response, err = client.PollTaskResult(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PollTaskResultRequest is the request struct for api PollTaskResult +type PollTaskResultRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + TaskNo string `position:"Query" name:"TaskNo"` + DomainName string `position:"Query" name:"DomainName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Lang string `position:"Query" name:"Lang"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + TaskResultStatus requests.Integer `position:"Query" name:"TaskResultStatus"` +} + +// PollTaskResultResponse is the response struct for api PollTaskResult +type PollTaskResultResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data DataInPollTaskResult `json:"Data" xml:"Data"` +} + +// CreatePollTaskResultRequest creates a request to invoke PollTaskResult API +func CreatePollTaskResultRequest() (request *PollTaskResultRequest) { + request = &PollTaskResultRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "PollTaskResult", "", "") + return +} + +// CreatePollTaskResultResponse creates a response to parse from PollTaskResult response +func CreatePollTaskResultResponse() (response *PollTaskResultResponse) { + response = &PollTaskResultResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_advanced_domain_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_advanced_domain_list.go new file mode 100644 index 0000000..846d656 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_advanced_domain_list.go @@ -0,0 +1,135 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryAdvancedDomainList invokes the domain.QueryAdvancedDomainList API synchronously +// api document: https://help.aliyun.com/api/domain/queryadvanceddomainlist.html +func (client *Client) QueryAdvancedDomainList(request *QueryAdvancedDomainListRequest) (response *QueryAdvancedDomainListResponse, err error) { + response = CreateQueryAdvancedDomainListResponse() + err = client.DoAction(request, response) + return +} + +// QueryAdvancedDomainListWithChan invokes the domain.QueryAdvancedDomainList API asynchronously +// api document: https://help.aliyun.com/api/domain/queryadvanceddomainlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryAdvancedDomainListWithChan(request *QueryAdvancedDomainListRequest) (<-chan *QueryAdvancedDomainListResponse, <-chan error) { + responseChan := make(chan *QueryAdvancedDomainListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryAdvancedDomainList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryAdvancedDomainListWithCallback invokes the domain.QueryAdvancedDomainList API asynchronously +// api document: https://help.aliyun.com/api/domain/queryadvanceddomainlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryAdvancedDomainListWithCallback(request *QueryAdvancedDomainListRequest, callback func(response *QueryAdvancedDomainListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryAdvancedDomainListResponse + var err error + defer close(result) + response, err = client.QueryAdvancedDomainList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryAdvancedDomainListRequest is the request struct for api QueryAdvancedDomainList +type QueryAdvancedDomainListRequest struct { + *requests.RpcRequest + ProductDomainType string `position:"Query" name:"ProductDomainType"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + Excluded string `position:"Query" name:"Excluded"` + StartLength requests.Integer `position:"Query" name:"StartLength"` + ExcludedSuffix requests.Boolean `position:"Query" name:"ExcludedSuffix"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Lang string `position:"Query" name:"Lang"` + ExcludedPrefix requests.Boolean `position:"Query" name:"ExcludedPrefix"` + KeyWord string `position:"Query" name:"KeyWord"` + ProductDomainTypeSort requests.Boolean `position:"Query" name:"ProductDomainTypeSort"` + EndExpirationDate requests.Integer `position:"Query" name:"EndExpirationDate"` + Suffixs string `position:"Query" name:"Suffixs"` + DomainNameSort requests.Boolean `position:"Query" name:"DomainNameSort"` + ExpirationDateSort requests.Boolean `position:"Query" name:"ExpirationDateSort"` + StartExpirationDate requests.Integer `position:"Query" name:"StartExpirationDate"` + DomainStatus requests.Integer `position:"Query" name:"DomainStatus"` + DomainGroupId requests.Integer `position:"Query" name:"DomainGroupId"` + KeyWordSuffix requests.Boolean `position:"Query" name:"KeyWordSuffix"` + KeyWordPrefix requests.Boolean `position:"Query" name:"KeyWordPrefix"` + TradeType requests.Integer `position:"Query" name:"TradeType"` + EndRegistrationDate requests.Integer `position:"Query" name:"EndRegistrationDate"` + Form requests.Integer `position:"Query" name:"Form"` + UserClientIp string `position:"Query" name:"UserClientIp"` + RegistrationDateSort requests.Boolean `position:"Query" name:"RegistrationDateSort"` + StartRegistrationDate requests.Integer `position:"Query" name:"StartRegistrationDate"` + EndLength requests.Integer `position:"Query" name:"EndLength"` +} + +// QueryAdvancedDomainListResponse is the response struct for api QueryAdvancedDomainList +type QueryAdvancedDomainListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data DataInQueryAdvancedDomainList `json:"Data" xml:"Data"` +} + +// CreateQueryAdvancedDomainListRequest creates a request to invoke QueryAdvancedDomainList API +func CreateQueryAdvancedDomainListRequest() (request *QueryAdvancedDomainListRequest) { + request = &QueryAdvancedDomainListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryAdvancedDomainList", "", "") + return +} + +// CreateQueryAdvancedDomainListResponse creates a response to parse from QueryAdvancedDomainList response +func CreateQueryAdvancedDomainListResponse() (response *QueryAdvancedDomainListResponse) { + response = &QueryAdvancedDomainListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_auction_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_auction_detail.go new file mode 100644 index 0000000..c14ed05 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_auction_detail.go @@ -0,0 +1,125 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryAuctionDetail invokes the domain.QueryAuctionDetail API synchronously +// api document: https://help.aliyun.com/api/domain/queryauctiondetail.html +func (client *Client) QueryAuctionDetail(request *QueryAuctionDetailRequest) (response *QueryAuctionDetailResponse, err error) { + response = CreateQueryAuctionDetailResponse() + err = client.DoAction(request, response) + return +} + +// QueryAuctionDetailWithChan invokes the domain.QueryAuctionDetail API asynchronously +// api document: https://help.aliyun.com/api/domain/queryauctiondetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryAuctionDetailWithChan(request *QueryAuctionDetailRequest) (<-chan *QueryAuctionDetailResponse, <-chan error) { + responseChan := make(chan *QueryAuctionDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryAuctionDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryAuctionDetailWithCallback invokes the domain.QueryAuctionDetail API asynchronously +// api document: https://help.aliyun.com/api/domain/queryauctiondetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryAuctionDetailWithCallback(request *QueryAuctionDetailRequest, callback func(response *QueryAuctionDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryAuctionDetailResponse + var err error + defer close(result) + response, err = client.QueryAuctionDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryAuctionDetailRequest is the request struct for api QueryAuctionDetail +type QueryAuctionDetailRequest struct { + *requests.RpcRequest + AuctionId string `position:"Body" name:"AuctionId"` +} + +// QueryAuctionDetailResponse is the response struct for api QueryAuctionDetail +type QueryAuctionDetailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + AuctionId string `json:"AuctionId" xml:"AuctionId"` + DomainType string `json:"DomainType" xml:"DomainType"` + BookedPartner string `json:"BookedPartner" xml:"BookedPartner"` + PartnerType string `json:"PartnerType" xml:"PartnerType"` + Currency string `json:"Currency" xml:"Currency"` + YourCurrentBid float64 `json:"YourCurrentBid" xml:"YourCurrentBid"` + YourMaxBid float64 `json:"YourMaxBid" xml:"YourMaxBid"` + HighBid float64 `json:"HighBid" xml:"HighBid"` + NextValidBid float64 `json:"NextValidBid" xml:"NextValidBid"` + ReserveMet bool `json:"ReserveMet" xml:"ReserveMet"` + TransferInPrice float64 `json:"TransferInPrice" xml:"TransferInPrice"` + PayPrice float64 `json:"PayPrice" xml:"PayPrice"` + HighBidder string `json:"HighBidder" xml:"HighBidder"` + Status string `json:"Status" xml:"Status"` + PayStatus string `json:"PayStatus" xml:"PayStatus"` + ProduceStatus string `json:"ProduceStatus" xml:"ProduceStatus"` + AuctionEndTime int `json:"AuctionEndTime" xml:"AuctionEndTime"` + BookEndTime int `json:"BookEndTime" xml:"BookEndTime"` + PayEndTime int `json:"PayEndTime" xml:"PayEndTime"` + DeliveryTime int `json:"DeliveryTime" xml:"DeliveryTime"` + FailCode string `json:"FailCode" xml:"FailCode"` +} + +// CreateQueryAuctionDetailRequest creates a request to invoke QueryAuctionDetail API +func CreateQueryAuctionDetailRequest() (request *QueryAuctionDetailRequest) { + request = &QueryAuctionDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-02-08", "QueryAuctionDetail", "", "") + return +} + +// CreateQueryAuctionDetailResponse creates a response to parse from QueryAuctionDetail response +func CreateQueryAuctionDetailResponse() (response *QueryAuctionDetailResponse) { + response = &QueryAuctionDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_auctions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_auctions.go new file mode 100644 index 0000000..d744ec1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_auctions.go @@ -0,0 +1,110 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryAuctions invokes the domain.QueryAuctions API synchronously +// api document: https://help.aliyun.com/api/domain/queryauctions.html +func (client *Client) QueryAuctions(request *QueryAuctionsRequest) (response *QueryAuctionsResponse, err error) { + response = CreateQueryAuctionsResponse() + err = client.DoAction(request, response) + return +} + +// QueryAuctionsWithChan invokes the domain.QueryAuctions API asynchronously +// api document: https://help.aliyun.com/api/domain/queryauctions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryAuctionsWithChan(request *QueryAuctionsRequest) (<-chan *QueryAuctionsResponse, <-chan error) { + responseChan := make(chan *QueryAuctionsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryAuctions(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryAuctionsWithCallback invokes the domain.QueryAuctions API asynchronously +// api document: https://help.aliyun.com/api/domain/queryauctions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryAuctionsWithCallback(request *QueryAuctionsRequest, callback func(response *QueryAuctionsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryAuctionsResponse + var err error + defer close(result) + response, err = client.QueryAuctions(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryAuctionsRequest is the request struct for api QueryAuctions +type QueryAuctionsRequest struct { + *requests.RpcRequest + PageSize requests.Integer `position:"Body" name:"PageSize"` + CurrentPage requests.Integer `position:"Body" name:"CurrentPage"` + Status string `position:"Body" name:"Status"` +} + +// QueryAuctionsResponse is the response struct for api QueryAuctions +type QueryAuctionsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + Data []AuctionDetail `json:"Data" xml:"Data"` +} + +// CreateQueryAuctionsRequest creates a request to invoke QueryAuctions API +func CreateQueryAuctionsRequest() (request *QueryAuctionsRequest) { + request = &QueryAuctionsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-02-08", "QueryAuctions", "", "") + return +} + +// CreateQueryAuctionsResponse creates a response to parse from QueryAuctions response +func CreateQueryAuctionsResponse() (response *QueryAuctionsResponse) { + response = &QueryAuctionsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_bid_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_bid_records.go new file mode 100644 index 0000000..1948c8c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_bid_records.go @@ -0,0 +1,110 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryBidRecords invokes the domain.QueryBidRecords API synchronously +// api document: https://help.aliyun.com/api/domain/querybidrecords.html +func (client *Client) QueryBidRecords(request *QueryBidRecordsRequest) (response *QueryBidRecordsResponse, err error) { + response = CreateQueryBidRecordsResponse() + err = client.DoAction(request, response) + return +} + +// QueryBidRecordsWithChan invokes the domain.QueryBidRecords API asynchronously +// api document: https://help.aliyun.com/api/domain/querybidrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryBidRecordsWithChan(request *QueryBidRecordsRequest) (<-chan *QueryBidRecordsResponse, <-chan error) { + responseChan := make(chan *QueryBidRecordsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryBidRecords(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryBidRecordsWithCallback invokes the domain.QueryBidRecords API asynchronously +// api document: https://help.aliyun.com/api/domain/querybidrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryBidRecordsWithCallback(request *QueryBidRecordsRequest, callback func(response *QueryBidRecordsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryBidRecordsResponse + var err error + defer close(result) + response, err = client.QueryBidRecords(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryBidRecordsRequest is the request struct for api QueryBidRecords +type QueryBidRecordsRequest struct { + *requests.RpcRequest + AuctionId string `position:"Body" name:"AuctionId"` + PageSize requests.Integer `position:"Body" name:"PageSize"` + CurrentPage requests.Integer `position:"Body" name:"CurrentPage"` +} + +// QueryBidRecordsResponse is the response struct for api QueryBidRecords +type QueryBidRecordsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + Data []BidRecord `json:"Data" xml:"Data"` +} + +// CreateQueryBidRecordsRequest creates a request to invoke QueryBidRecords API +func CreateQueryBidRecordsRequest() (request *QueryBidRecordsRequest) { + request = &QueryBidRecordsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-02-08", "QueryBidRecords", "", "") + return +} + +// CreateQueryBidRecordsResponse creates a response to parse from QueryBidRecords response +func CreateQueryBidRecordsResponse() (response *QueryBidRecordsResponse) { + response = &QueryBidRecordsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_booking_domain_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_booking_domain_info.go new file mode 100644 index 0000000..b2d2c84 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_booking_domain_info.go @@ -0,0 +1,109 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryBookingDomainInfo invokes the domain.QueryBookingDomainInfo API synchronously +// api document: https://help.aliyun.com/api/domain/querybookingdomaininfo.html +func (client *Client) QueryBookingDomainInfo(request *QueryBookingDomainInfoRequest) (response *QueryBookingDomainInfoResponse, err error) { + response = CreateQueryBookingDomainInfoResponse() + err = client.DoAction(request, response) + return +} + +// QueryBookingDomainInfoWithChan invokes the domain.QueryBookingDomainInfo API asynchronously +// api document: https://help.aliyun.com/api/domain/querybookingdomaininfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryBookingDomainInfoWithChan(request *QueryBookingDomainInfoRequest) (<-chan *QueryBookingDomainInfoResponse, <-chan error) { + responseChan := make(chan *QueryBookingDomainInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryBookingDomainInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryBookingDomainInfoWithCallback invokes the domain.QueryBookingDomainInfo API asynchronously +// api document: https://help.aliyun.com/api/domain/querybookingdomaininfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryBookingDomainInfoWithCallback(request *QueryBookingDomainInfoRequest, callback func(response *QueryBookingDomainInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryBookingDomainInfoResponse + var err error + defer close(result) + response, err = client.QueryBookingDomainInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryBookingDomainInfoRequest is the request struct for api QueryBookingDomainInfo +type QueryBookingDomainInfoRequest struct { + *requests.RpcRequest + DomainName string `position:"Body" name:"DomainName"` +} + +// QueryBookingDomainInfoResponse is the response struct for api QueryBookingDomainInfo +type QueryBookingDomainInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AuctionId int `json:"AuctionId" xml:"AuctionId"` + PartnerType string `json:"PartnerType" xml:"PartnerType"` + MaxBid float64 `json:"MaxBid" xml:"MaxBid"` + TransferInPrice float64 `json:"TransferInPrice" xml:"TransferInPrice"` + Currency string `json:"Currency" xml:"Currency"` + BookEndTime int `json:"BookEndTime" xml:"BookEndTime"` +} + +// CreateQueryBookingDomainInfoRequest creates a request to invoke QueryBookingDomainInfo API +func CreateQueryBookingDomainInfoRequest() (request *QueryBookingDomainInfoRequest) { + request = &QueryBookingDomainInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-02-08", "QueryBookingDomainInfo", "", "") + return +} + +// CreateQueryBookingDomainInfoResponse creates a response to parse from QueryBookingDomainInfo response +func CreateQueryBookingDomainInfoResponse() (response *QueryBookingDomainInfoResponse) { + response = &QueryBookingDomainInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_broker_demand.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_broker_demand.go new file mode 100644 index 0000000..f946b65 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_broker_demand.go @@ -0,0 +1,111 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryBrokerDemand invokes the domain.QueryBrokerDemand API synchronously +// api document: https://help.aliyun.com/api/domain/querybrokerdemand.html +func (client *Client) QueryBrokerDemand(request *QueryBrokerDemandRequest) (response *QueryBrokerDemandResponse, err error) { + response = CreateQueryBrokerDemandResponse() + err = client.DoAction(request, response) + return +} + +// QueryBrokerDemandWithChan invokes the domain.QueryBrokerDemand API asynchronously +// api document: https://help.aliyun.com/api/domain/querybrokerdemand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryBrokerDemandWithChan(request *QueryBrokerDemandRequest) (<-chan *QueryBrokerDemandResponse, <-chan error) { + responseChan := make(chan *QueryBrokerDemandResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryBrokerDemand(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryBrokerDemandWithCallback invokes the domain.QueryBrokerDemand API asynchronously +// api document: https://help.aliyun.com/api/domain/querybrokerdemand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryBrokerDemandWithCallback(request *QueryBrokerDemandRequest, callback func(response *QueryBrokerDemandResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryBrokerDemandResponse + var err error + defer close(result) + response, err = client.QueryBrokerDemand(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryBrokerDemandRequest is the request struct for api QueryBrokerDemand +type QueryBrokerDemandRequest struct { + *requests.RpcRequest + PageSize requests.Integer `position:"Query" name:"PageSize"` + BizId string `position:"Query" name:"BizId"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + Status string `position:"Query" name:"Status"` +} + +// QueryBrokerDemandResponse is the response struct for api QueryBrokerDemand +type QueryBrokerDemandResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + Data []Demand `json:"Data" xml:"Data"` +} + +// CreateQueryBrokerDemandRequest creates a request to invoke QueryBrokerDemand API +func CreateQueryBrokerDemandRequest() (request *QueryBrokerDemandRequest) { + request = &QueryBrokerDemandRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-02-08", "QueryBrokerDemand", "", "") + return +} + +// CreateQueryBrokerDemandResponse creates a response to parse from QueryBrokerDemand response +func CreateQueryBrokerDemandResponse() (response *QueryBrokerDemandResponse) { + response = &QueryBrokerDemandResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_broker_demand_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_broker_demand_record.go new file mode 100644 index 0000000..b8c2885 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_broker_demand_record.go @@ -0,0 +1,110 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryBrokerDemandRecord invokes the domain.QueryBrokerDemandRecord API synchronously +// api document: https://help.aliyun.com/api/domain/querybrokerdemandrecord.html +func (client *Client) QueryBrokerDemandRecord(request *QueryBrokerDemandRecordRequest) (response *QueryBrokerDemandRecordResponse, err error) { + response = CreateQueryBrokerDemandRecordResponse() + err = client.DoAction(request, response) + return +} + +// QueryBrokerDemandRecordWithChan invokes the domain.QueryBrokerDemandRecord API asynchronously +// api document: https://help.aliyun.com/api/domain/querybrokerdemandrecord.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryBrokerDemandRecordWithChan(request *QueryBrokerDemandRecordRequest) (<-chan *QueryBrokerDemandRecordResponse, <-chan error) { + responseChan := make(chan *QueryBrokerDemandRecordResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryBrokerDemandRecord(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryBrokerDemandRecordWithCallback invokes the domain.QueryBrokerDemandRecord API asynchronously +// api document: https://help.aliyun.com/api/domain/querybrokerdemandrecord.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryBrokerDemandRecordWithCallback(request *QueryBrokerDemandRecordRequest, callback func(response *QueryBrokerDemandRecordResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryBrokerDemandRecordResponse + var err error + defer close(result) + response, err = client.QueryBrokerDemandRecord(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryBrokerDemandRecordRequest is the request struct for api QueryBrokerDemandRecord +type QueryBrokerDemandRecordRequest struct { + *requests.RpcRequest + PageSize requests.Integer `position:"Query" name:"PageSize"` + BizId string `position:"Query" name:"BizId"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` +} + +// QueryBrokerDemandRecordResponse is the response struct for api QueryBrokerDemandRecord +type QueryBrokerDemandRecordResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + Data DataInQueryBrokerDemandRecord `json:"Data" xml:"Data"` +} + +// CreateQueryBrokerDemandRecordRequest creates a request to invoke QueryBrokerDemandRecord API +func CreateQueryBrokerDemandRecordRequest() (request *QueryBrokerDemandRecordRequest) { + request = &QueryBrokerDemandRecordRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-02-08", "QueryBrokerDemandRecord", "", "") + return +} + +// CreateQueryBrokerDemandRecordResponse creates a response to parse from QueryBrokerDemandRecord response +func CreateQueryBrokerDemandRecordResponse() (response *QueryBrokerDemandRecordResponse) { + response = &QueryBrokerDemandRecordResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_change_log_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_change_log_list.go new file mode 100644 index 0000000..0bc3027 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_change_log_list.go @@ -0,0 +1,117 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryChangeLogList invokes the domain.QueryChangeLogList API synchronously +// api document: https://help.aliyun.com/api/domain/querychangeloglist.html +func (client *Client) QueryChangeLogList(request *QueryChangeLogListRequest) (response *QueryChangeLogListResponse, err error) { + response = CreateQueryChangeLogListResponse() + err = client.DoAction(request, response) + return +} + +// QueryChangeLogListWithChan invokes the domain.QueryChangeLogList API asynchronously +// api document: https://help.aliyun.com/api/domain/querychangeloglist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryChangeLogListWithChan(request *QueryChangeLogListRequest) (<-chan *QueryChangeLogListResponse, <-chan error) { + responseChan := make(chan *QueryChangeLogListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryChangeLogList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryChangeLogListWithCallback invokes the domain.QueryChangeLogList API asynchronously +// api document: https://help.aliyun.com/api/domain/querychangeloglist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryChangeLogListWithCallback(request *QueryChangeLogListRequest, callback func(response *QueryChangeLogListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryChangeLogListResponse + var err error + defer close(result) + response, err = client.QueryChangeLogList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryChangeLogListRequest is the request struct for api QueryChangeLogList +type QueryChangeLogListRequest struct { + *requests.RpcRequest + EndDate requests.Integer `position:"Query" name:"EndDate"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Lang string `position:"Query" name:"Lang"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + StartDate requests.Integer `position:"Query" name:"StartDate"` +} + +// QueryChangeLogListResponse is the response struct for api QueryChangeLogList +type QueryChangeLogListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + ResultLimit bool `json:"ResultLimit" xml:"ResultLimit"` + Data DataInQueryChangeLogList `json:"Data" xml:"Data"` +} + +// CreateQueryChangeLogListRequest creates a request to invoke QueryChangeLogList API +func CreateQueryChangeLogListRequest() (request *QueryChangeLogListRequest) { + request = &QueryChangeLogListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryChangeLogList", "", "") + return +} + +// CreateQueryChangeLogListResponse creates a response to parse from QueryChangeLogList response +func CreateQueryChangeLogListResponse() (response *QueryChangeLogListResponse) { + response = &QueryChangeLogListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_contact_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_contact_info.go new file mode 100644 index 0000000..d9e0df8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_contact_info.go @@ -0,0 +1,123 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryContactInfo invokes the domain.QueryContactInfo API synchronously +// api document: https://help.aliyun.com/api/domain/querycontactinfo.html +func (client *Client) QueryContactInfo(request *QueryContactInfoRequest) (response *QueryContactInfoResponse, err error) { + response = CreateQueryContactInfoResponse() + err = client.DoAction(request, response) + return +} + +// QueryContactInfoWithChan invokes the domain.QueryContactInfo API asynchronously +// api document: https://help.aliyun.com/api/domain/querycontactinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryContactInfoWithChan(request *QueryContactInfoRequest) (<-chan *QueryContactInfoResponse, <-chan error) { + responseChan := make(chan *QueryContactInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryContactInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryContactInfoWithCallback invokes the domain.QueryContactInfo API asynchronously +// api document: https://help.aliyun.com/api/domain/querycontactinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryContactInfoWithCallback(request *QueryContactInfoRequest, callback func(response *QueryContactInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryContactInfoResponse + var err error + defer close(result) + response, err = client.QueryContactInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryContactInfoRequest is the request struct for api QueryContactInfo +type QueryContactInfoRequest struct { + *requests.RpcRequest + ContactType string `position:"Query" name:"ContactType"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryContactInfoResponse is the response struct for api QueryContactInfo +type QueryContactInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CreateDate string `json:"CreateDate" xml:"CreateDate"` + RegistrantName string `json:"RegistrantName" xml:"RegistrantName"` + RegistrantOrganization string `json:"RegistrantOrganization" xml:"RegistrantOrganization"` + Country string `json:"Country" xml:"Country"` + Province string `json:"Province" xml:"Province"` + City string `json:"City" xml:"City"` + Address string `json:"Address" xml:"Address"` + Email string `json:"Email" xml:"Email"` + PostalCode string `json:"PostalCode" xml:"PostalCode"` + TelArea string `json:"TelArea" xml:"TelArea"` + Telephone string `json:"Telephone" xml:"Telephone"` + TelExt string `json:"TelExt" xml:"TelExt"` + ZhRegistrantName string `json:"ZhRegistrantName" xml:"ZhRegistrantName"` + ZhRegistrantOrganization string `json:"ZhRegistrantOrganization" xml:"ZhRegistrantOrganization"` + ZhProvince string `json:"ZhProvince" xml:"ZhProvince"` + ZhCity string `json:"ZhCity" xml:"ZhCity"` + ZhAddress string `json:"ZhAddress" xml:"ZhAddress"` +} + +// CreateQueryContactInfoRequest creates a request to invoke QueryContactInfo API +func CreateQueryContactInfoRequest() (request *QueryContactInfoRequest) { + request = &QueryContactInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryContactInfo", "", "") + return +} + +// CreateQueryContactInfoResponse creates a response to parse from QueryContactInfo response +func CreateQueryContactInfoResponse() (response *QueryContactInfoResponse) { + response = &QueryContactInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_dns_host.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_dns_host.go new file mode 100644 index 0000000..2fd66b9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_dns_host.go @@ -0,0 +1,105 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDnsHost invokes the domain.QueryDnsHost API synchronously +// api document: https://help.aliyun.com/api/domain/querydnshost.html +func (client *Client) QueryDnsHost(request *QueryDnsHostRequest) (response *QueryDnsHostResponse, err error) { + response = CreateQueryDnsHostResponse() + err = client.DoAction(request, response) + return +} + +// QueryDnsHostWithChan invokes the domain.QueryDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain/querydnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDnsHostWithChan(request *QueryDnsHostRequest) (<-chan *QueryDnsHostResponse, <-chan error) { + responseChan := make(chan *QueryDnsHostResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDnsHost(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDnsHostWithCallback invokes the domain.QueryDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain/querydnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDnsHostWithCallback(request *QueryDnsHostRequest, callback func(response *QueryDnsHostResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDnsHostResponse + var err error + defer close(result) + response, err = client.QueryDnsHost(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDnsHostRequest is the request struct for api QueryDnsHost +type QueryDnsHostRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryDnsHostResponse is the response struct for api QueryDnsHost +type QueryDnsHostResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DnsHostList []DnsHost `json:"DnsHostList" xml:"DnsHostList"` +} + +// CreateQueryDnsHostRequest creates a request to invoke QueryDnsHost API +func CreateQueryDnsHostRequest() (request *QueryDnsHostRequest) { + request = &QueryDnsHostRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryDnsHost", "", "") + return +} + +// CreateQueryDnsHostResponse creates a response to parse from QueryDnsHost response +func CreateQueryDnsHostResponse() (response *QueryDnsHostResponse) { + response = &QueryDnsHostResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_domain_by_instance_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_domain_by_instance_id.go new file mode 100644 index 0000000..3ed50ca --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_domain_by_instance_id.go @@ -0,0 +1,129 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDomainByInstanceId invokes the domain.QueryDomainByInstanceId API synchronously +// api document: https://help.aliyun.com/api/domain/querydomainbyinstanceid.html +func (client *Client) QueryDomainByInstanceId(request *QueryDomainByInstanceIdRequest) (response *QueryDomainByInstanceIdResponse, err error) { + response = CreateQueryDomainByInstanceIdResponse() + err = client.DoAction(request, response) + return +} + +// QueryDomainByInstanceIdWithChan invokes the domain.QueryDomainByInstanceId API asynchronously +// api document: https://help.aliyun.com/api/domain/querydomainbyinstanceid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDomainByInstanceIdWithChan(request *QueryDomainByInstanceIdRequest) (<-chan *QueryDomainByInstanceIdResponse, <-chan error) { + responseChan := make(chan *QueryDomainByInstanceIdResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDomainByInstanceId(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDomainByInstanceIdWithCallback invokes the domain.QueryDomainByInstanceId API asynchronously +// api document: https://help.aliyun.com/api/domain/querydomainbyinstanceid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDomainByInstanceIdWithCallback(request *QueryDomainByInstanceIdRequest, callback func(response *QueryDomainByInstanceIdResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDomainByInstanceIdResponse + var err error + defer close(result) + response, err = client.QueryDomainByInstanceId(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDomainByInstanceIdRequest is the request struct for api QueryDomainByInstanceId +type QueryDomainByInstanceIdRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryDomainByInstanceIdResponse is the response struct for api QueryDomainByInstanceId +type QueryDomainByInstanceIdResponse struct { + *responses.BaseResponse + UserId string `json:"UserId" xml:"UserId"` + DomainName string `json:"DomainName" xml:"DomainName"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + RegistrationDate string `json:"RegistrationDate" xml:"RegistrationDate"` + ExpirationDate string `json:"ExpirationDate" xml:"ExpirationDate"` + RegistrantOrganization string `json:"RegistrantOrganization" xml:"RegistrantOrganization"` + RegistrantName string `json:"RegistrantName" xml:"RegistrantName"` + Email string `json:"Email" xml:"Email"` + UpdateProhibitionLock string `json:"UpdateProhibitionLock" xml:"UpdateProhibitionLock"` + TransferProhibitionLock string `json:"TransferProhibitionLock" xml:"TransferProhibitionLock"` + DomainNameProxyService bool `json:"DomainNameProxyService" xml:"DomainNameProxyService"` + Premium bool `json:"Premium" xml:"Premium"` + EmailVerificationStatus int `json:"EmailVerificationStatus" xml:"EmailVerificationStatus"` + EmailVerificationClientHold bool `json:"EmailVerificationClientHold" xml:"EmailVerificationClientHold"` + RealNameStatus string `json:"RealNameStatus" xml:"RealNameStatus"` + RegistrantUpdatingStatus string `json:"RegistrantUpdatingStatus" xml:"RegistrantUpdatingStatus"` + TransferOutStatus string `json:"TransferOutStatus" xml:"TransferOutStatus"` + RegistrantType string `json:"RegistrantType" xml:"RegistrantType"` + DomainNameVerificationStatus string `json:"DomainNameVerificationStatus" xml:"DomainNameVerificationStatus"` + RequestId string `json:"RequestId" xml:"RequestId"` + ZhRegistrantOrganization string `json:"ZhRegistrantOrganization" xml:"ZhRegistrantOrganization"` + ZhRegistrantName string `json:"ZhRegistrantName" xml:"ZhRegistrantName"` + RegistrationDateLong int `json:"RegistrationDateLong" xml:"RegistrationDateLong"` + ExpirationDateLong int `json:"ExpirationDateLong" xml:"ExpirationDateLong"` + DnsList DnsList `json:"DnsList" xml:"DnsList"` +} + +// CreateQueryDomainByInstanceIdRequest creates a request to invoke QueryDomainByInstanceId API +func CreateQueryDomainByInstanceIdRequest() (request *QueryDomainByInstanceIdRequest) { + request = &QueryDomainByInstanceIdRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryDomainByInstanceId", "", "") + return +} + +// CreateQueryDomainByInstanceIdResponse creates a response to parse from QueryDomainByInstanceId response +func CreateQueryDomainByInstanceIdResponse() (response *QueryDomainByInstanceIdResponse) { + response = &QueryDomainByInstanceIdResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_domain_group_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_domain_group_list.go new file mode 100644 index 0000000..6aae7f3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_domain_group_list.go @@ -0,0 +1,107 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDomainGroupList invokes the domain.QueryDomainGroupList API synchronously +// api document: https://help.aliyun.com/api/domain/querydomaingrouplist.html +func (client *Client) QueryDomainGroupList(request *QueryDomainGroupListRequest) (response *QueryDomainGroupListResponse, err error) { + response = CreateQueryDomainGroupListResponse() + err = client.DoAction(request, response) + return +} + +// QueryDomainGroupListWithChan invokes the domain.QueryDomainGroupList API asynchronously +// api document: https://help.aliyun.com/api/domain/querydomaingrouplist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDomainGroupListWithChan(request *QueryDomainGroupListRequest) (<-chan *QueryDomainGroupListResponse, <-chan error) { + responseChan := make(chan *QueryDomainGroupListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDomainGroupList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDomainGroupListWithCallback invokes the domain.QueryDomainGroupList API asynchronously +// api document: https://help.aliyun.com/api/domain/querydomaingrouplist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDomainGroupListWithCallback(request *QueryDomainGroupListRequest, callback func(response *QueryDomainGroupListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDomainGroupListResponse + var err error + defer close(result) + response, err = client.QueryDomainGroupList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDomainGroupListRequest is the request struct for api QueryDomainGroupList +type QueryDomainGroupListRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainGroupName string `position:"Query" name:"DomainGroupName"` + Lang string `position:"Query" name:"Lang"` + ShowDeletingGroup requests.Boolean `position:"Query" name:"ShowDeletingGroup"` +} + +// QueryDomainGroupListResponse is the response struct for api QueryDomainGroupList +type QueryDomainGroupListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data DataInQueryDomainGroupList `json:"Data" xml:"Data"` +} + +// CreateQueryDomainGroupListRequest creates a request to invoke QueryDomainGroupList API +func CreateQueryDomainGroupListRequest() (request *QueryDomainGroupListRequest) { + request = &QueryDomainGroupListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryDomainGroupList", "", "") + return +} + +// CreateQueryDomainGroupListResponse creates a response to parse from QueryDomainGroupList response +func CreateQueryDomainGroupListResponse() (response *QueryDomainGroupListResponse) { + response = &QueryDomainGroupListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_domain_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_domain_list.go new file mode 100644 index 0000000..4551904 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_domain_list.go @@ -0,0 +1,123 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDomainList invokes the domain.QueryDomainList API synchronously +// api document: https://help.aliyun.com/api/domain/querydomainlist.html +func (client *Client) QueryDomainList(request *QueryDomainListRequest) (response *QueryDomainListResponse, err error) { + response = CreateQueryDomainListResponse() + err = client.DoAction(request, response) + return +} + +// QueryDomainListWithChan invokes the domain.QueryDomainList API asynchronously +// api document: https://help.aliyun.com/api/domain/querydomainlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDomainListWithChan(request *QueryDomainListRequest) (<-chan *QueryDomainListResponse, <-chan error) { + responseChan := make(chan *QueryDomainListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDomainList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDomainListWithCallback invokes the domain.QueryDomainList API asynchronously +// api document: https://help.aliyun.com/api/domain/querydomainlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDomainListWithCallback(request *QueryDomainListRequest, callback func(response *QueryDomainListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDomainListResponse + var err error + defer close(result) + response, err = client.QueryDomainList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDomainListRequest is the request struct for api QueryDomainList +type QueryDomainListRequest struct { + *requests.RpcRequest + EndExpirationDate requests.Integer `position:"Query" name:"EndExpirationDate"` + ProductDomainType string `position:"Query" name:"ProductDomainType"` + OrderKeyType string `position:"Query" name:"OrderKeyType"` + DomainName string `position:"Query" name:"DomainName"` + StartExpirationDate requests.Integer `position:"Query" name:"StartExpirationDate"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + OrderByType string `position:"Query" name:"OrderByType"` + DomainGroupId string `position:"Query" name:"DomainGroupId"` + EndRegistrationDate requests.Integer `position:"Query" name:"EndRegistrationDate"` + UserClientIp string `position:"Query" name:"UserClientIp"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Lang string `position:"Query" name:"Lang"` + QueryType string `position:"Query" name:"QueryType"` + StartRegistrationDate requests.Integer `position:"Query" name:"StartRegistrationDate"` +} + +// QueryDomainListResponse is the response struct for api QueryDomainList +type QueryDomainListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data DataInQueryDomainList `json:"Data" xml:"Data"` +} + +// CreateQueryDomainListRequest creates a request to invoke QueryDomainList API +func CreateQueryDomainListRequest() (request *QueryDomainListRequest) { + request = &QueryDomainListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryDomainList", "", "") + return +} + +// CreateQueryDomainListResponse creates a response to parse from QueryDomainList response +func CreateQueryDomainListResponse() (response *QueryDomainListResponse) { + response = &QueryDomainListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_domain_real_name_verification_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_domain_real_name_verification_info.go new file mode 100644 index 0000000..498ac5b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_domain_real_name_verification_info.go @@ -0,0 +1,113 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDomainRealNameVerificationInfo invokes the domain.QueryDomainRealNameVerificationInfo API synchronously +// api document: https://help.aliyun.com/api/domain/querydomainrealnameverificationinfo.html +func (client *Client) QueryDomainRealNameVerificationInfo(request *QueryDomainRealNameVerificationInfoRequest) (response *QueryDomainRealNameVerificationInfoResponse, err error) { + response = CreateQueryDomainRealNameVerificationInfoResponse() + err = client.DoAction(request, response) + return +} + +// QueryDomainRealNameVerificationInfoWithChan invokes the domain.QueryDomainRealNameVerificationInfo API asynchronously +// api document: https://help.aliyun.com/api/domain/querydomainrealnameverificationinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDomainRealNameVerificationInfoWithChan(request *QueryDomainRealNameVerificationInfoRequest) (<-chan *QueryDomainRealNameVerificationInfoResponse, <-chan error) { + responseChan := make(chan *QueryDomainRealNameVerificationInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDomainRealNameVerificationInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDomainRealNameVerificationInfoWithCallback invokes the domain.QueryDomainRealNameVerificationInfo API asynchronously +// api document: https://help.aliyun.com/api/domain/querydomainrealnameverificationinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDomainRealNameVerificationInfoWithCallback(request *QueryDomainRealNameVerificationInfoRequest, callback func(response *QueryDomainRealNameVerificationInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDomainRealNameVerificationInfoResponse + var err error + defer close(result) + response, err = client.QueryDomainRealNameVerificationInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDomainRealNameVerificationInfoRequest is the request struct for api QueryDomainRealNameVerificationInfo +type QueryDomainRealNameVerificationInfoRequest struct { + *requests.RpcRequest + FetchImage requests.Boolean `position:"Query" name:"FetchImage"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryDomainRealNameVerificationInfoResponse is the response struct for api QueryDomainRealNameVerificationInfo +type QueryDomainRealNameVerificationInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SubmissionDate string `json:"SubmissionDate" xml:"SubmissionDate"` + IdentityCredential string `json:"IdentityCredential" xml:"IdentityCredential"` + IdentityCredentialNo string `json:"IdentityCredentialNo" xml:"IdentityCredentialNo"` + IdentityCredentialType string `json:"IdentityCredentialType" xml:"IdentityCredentialType"` + DomainName string `json:"DomainName" xml:"DomainName"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + IdentityCredentialUrl string `json:"IdentityCredentialUrl" xml:"IdentityCredentialUrl"` +} + +// CreateQueryDomainRealNameVerificationInfoRequest creates a request to invoke QueryDomainRealNameVerificationInfo API +func CreateQueryDomainRealNameVerificationInfoRequest() (request *QueryDomainRealNameVerificationInfoRequest) { + request = &QueryDomainRealNameVerificationInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryDomainRealNameVerificationInfo", "", "") + return +} + +// CreateQueryDomainRealNameVerificationInfoResponse creates a response to parse from QueryDomainRealNameVerificationInfo response +func CreateQueryDomainRealNameVerificationInfoResponse() (response *QueryDomainRealNameVerificationInfoResponse) { + response = &QueryDomainRealNameVerificationInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_domain_suffix.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_domain_suffix.go new file mode 100644 index 0000000..42f9ff8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_domain_suffix.go @@ -0,0 +1,104 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDomainSuffix invokes the domain.QueryDomainSuffix API synchronously +// api document: https://help.aliyun.com/api/domain/querydomainsuffix.html +func (client *Client) QueryDomainSuffix(request *QueryDomainSuffixRequest) (response *QueryDomainSuffixResponse, err error) { + response = CreateQueryDomainSuffixResponse() + err = client.DoAction(request, response) + return +} + +// QueryDomainSuffixWithChan invokes the domain.QueryDomainSuffix API asynchronously +// api document: https://help.aliyun.com/api/domain/querydomainsuffix.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDomainSuffixWithChan(request *QueryDomainSuffixRequest) (<-chan *QueryDomainSuffixResponse, <-chan error) { + responseChan := make(chan *QueryDomainSuffixResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDomainSuffix(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDomainSuffixWithCallback invokes the domain.QueryDomainSuffix API asynchronously +// api document: https://help.aliyun.com/api/domain/querydomainsuffix.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDomainSuffixWithCallback(request *QueryDomainSuffixRequest, callback func(response *QueryDomainSuffixResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDomainSuffixResponse + var err error + defer close(result) + response, err = client.QueryDomainSuffix(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDomainSuffixRequest is the request struct for api QueryDomainSuffix +type QueryDomainSuffixRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` +} + +// QueryDomainSuffixResponse is the response struct for api QueryDomainSuffix +type QueryDomainSuffixResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SuffixList SuffixList `json:"SuffixList" xml:"SuffixList"` +} + +// CreateQueryDomainSuffixRequest creates a request to invoke QueryDomainSuffix API +func CreateQueryDomainSuffixRequest() (request *QueryDomainSuffixRequest) { + request = &QueryDomainSuffixRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryDomainSuffix", "", "") + return +} + +// CreateQueryDomainSuffixResponse creates a response to parse from QueryDomainSuffix response +func CreateQueryDomainSuffixResponse() (response *QueryDomainSuffixResponse) { + response = &QueryDomainSuffixResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_email_verification.go new file mode 100644 index 0000000..37e6fde --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_email_verification.go @@ -0,0 +1,114 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryEmailVerification invokes the domain.QueryEmailVerification API synchronously +// api document: https://help.aliyun.com/api/domain/queryemailverification.html +func (client *Client) QueryEmailVerification(request *QueryEmailVerificationRequest) (response *QueryEmailVerificationResponse, err error) { + response = CreateQueryEmailVerificationResponse() + err = client.DoAction(request, response) + return +} + +// QueryEmailVerificationWithChan invokes the domain.QueryEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain/queryemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryEmailVerificationWithChan(request *QueryEmailVerificationRequest) (<-chan *QueryEmailVerificationResponse, <-chan error) { + responseChan := make(chan *QueryEmailVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryEmailVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryEmailVerificationWithCallback invokes the domain.QueryEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain/queryemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryEmailVerificationWithCallback(request *QueryEmailVerificationRequest, callback func(response *QueryEmailVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryEmailVerificationResponse + var err error + defer close(result) + response, err = client.QueryEmailVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryEmailVerificationRequest is the request struct for api QueryEmailVerification +type QueryEmailVerificationRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` +} + +// QueryEmailVerificationResponse is the response struct for api QueryEmailVerification +type QueryEmailVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + Email string `json:"Email" xml:"Email"` + UserId string `json:"UserId" xml:"UserId"` + EmailVerificationNo string `json:"EmailVerificationNo" xml:"EmailVerificationNo"` + TokenSendTime string `json:"TokenSendTime" xml:"TokenSendTime"` + VerificationStatus int `json:"VerificationStatus" xml:"VerificationStatus"` + VerificationTime string `json:"VerificationTime" xml:"VerificationTime"` + SendIp string `json:"SendIp" xml:"SendIp"` + ConfirmIp string `json:"ConfirmIp" xml:"ConfirmIp"` +} + +// CreateQueryEmailVerificationRequest creates a request to invoke QueryEmailVerification API +func CreateQueryEmailVerificationRequest() (request *QueryEmailVerificationRequest) { + request = &QueryEmailVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryEmailVerification", "", "") + return +} + +// CreateQueryEmailVerificationResponse creates a response to parse from QueryEmailVerification response +func CreateQueryEmailVerificationResponse() (response *QueryEmailVerificationResponse) { + response = &QueryEmailVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_fail_reason_for_domain_real_name_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_fail_reason_for_domain_real_name_verification.go new file mode 100644 index 0000000..e609388 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_fail_reason_for_domain_real_name_verification.go @@ -0,0 +1,107 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryFailReasonForDomainRealNameVerification invokes the domain.QueryFailReasonForDomainRealNameVerification API synchronously +// api document: https://help.aliyun.com/api/domain/queryfailreasonfordomainrealnameverification.html +func (client *Client) QueryFailReasonForDomainRealNameVerification(request *QueryFailReasonForDomainRealNameVerificationRequest) (response *QueryFailReasonForDomainRealNameVerificationResponse, err error) { + response = CreateQueryFailReasonForDomainRealNameVerificationResponse() + err = client.DoAction(request, response) + return +} + +// QueryFailReasonForDomainRealNameVerificationWithChan invokes the domain.QueryFailReasonForDomainRealNameVerification API asynchronously +// api document: https://help.aliyun.com/api/domain/queryfailreasonfordomainrealnameverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryFailReasonForDomainRealNameVerificationWithChan(request *QueryFailReasonForDomainRealNameVerificationRequest) (<-chan *QueryFailReasonForDomainRealNameVerificationResponse, <-chan error) { + responseChan := make(chan *QueryFailReasonForDomainRealNameVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryFailReasonForDomainRealNameVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryFailReasonForDomainRealNameVerificationWithCallback invokes the domain.QueryFailReasonForDomainRealNameVerification API asynchronously +// api document: https://help.aliyun.com/api/domain/queryfailreasonfordomainrealnameverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryFailReasonForDomainRealNameVerificationWithCallback(request *QueryFailReasonForDomainRealNameVerificationRequest, callback func(response *QueryFailReasonForDomainRealNameVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryFailReasonForDomainRealNameVerificationResponse + var err error + defer close(result) + response, err = client.QueryFailReasonForDomainRealNameVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryFailReasonForDomainRealNameVerificationRequest is the request struct for api QueryFailReasonForDomainRealNameVerification +type QueryFailReasonForDomainRealNameVerificationRequest struct { + *requests.RpcRequest + RealNameVerificationAction string `position:"Query" name:"RealNameVerificationAction"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryFailReasonForDomainRealNameVerificationResponse is the response struct for api QueryFailReasonForDomainRealNameVerification +type QueryFailReasonForDomainRealNameVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data []FailRecord `json:"Data" xml:"Data"` +} + +// CreateQueryFailReasonForDomainRealNameVerificationRequest creates a request to invoke QueryFailReasonForDomainRealNameVerification API +func CreateQueryFailReasonForDomainRealNameVerificationRequest() (request *QueryFailReasonForDomainRealNameVerificationRequest) { + request = &QueryFailReasonForDomainRealNameVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryFailReasonForDomainRealNameVerification", "", "") + return +} + +// CreateQueryFailReasonForDomainRealNameVerificationResponse creates a response to parse from QueryFailReasonForDomainRealNameVerification response +func CreateQueryFailReasonForDomainRealNameVerificationResponse() (response *QueryFailReasonForDomainRealNameVerificationResponse) { + response = &QueryFailReasonForDomainRealNameVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_fail_reason_for_registrant_profile_real_name_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_fail_reason_for_registrant_profile_real_name_verification.go new file mode 100644 index 0000000..fb3ab84 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_fail_reason_for_registrant_profile_real_name_verification.go @@ -0,0 +1,106 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryFailReasonForRegistrantProfileRealNameVerification invokes the domain.QueryFailReasonForRegistrantProfileRealNameVerification API synchronously +// api document: https://help.aliyun.com/api/domain/queryfailreasonforregistrantprofilerealnameverification.html +func (client *Client) QueryFailReasonForRegistrantProfileRealNameVerification(request *QueryFailReasonForRegistrantProfileRealNameVerificationRequest) (response *QueryFailReasonForRegistrantProfileRealNameVerificationResponse, err error) { + response = CreateQueryFailReasonForRegistrantProfileRealNameVerificationResponse() + err = client.DoAction(request, response) + return +} + +// QueryFailReasonForRegistrantProfileRealNameVerificationWithChan invokes the domain.QueryFailReasonForRegistrantProfileRealNameVerification API asynchronously +// api document: https://help.aliyun.com/api/domain/queryfailreasonforregistrantprofilerealnameverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryFailReasonForRegistrantProfileRealNameVerificationWithChan(request *QueryFailReasonForRegistrantProfileRealNameVerificationRequest) (<-chan *QueryFailReasonForRegistrantProfileRealNameVerificationResponse, <-chan error) { + responseChan := make(chan *QueryFailReasonForRegistrantProfileRealNameVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryFailReasonForRegistrantProfileRealNameVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryFailReasonForRegistrantProfileRealNameVerificationWithCallback invokes the domain.QueryFailReasonForRegistrantProfileRealNameVerification API asynchronously +// api document: https://help.aliyun.com/api/domain/queryfailreasonforregistrantprofilerealnameverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryFailReasonForRegistrantProfileRealNameVerificationWithCallback(request *QueryFailReasonForRegistrantProfileRealNameVerificationRequest, callback func(response *QueryFailReasonForRegistrantProfileRealNameVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryFailReasonForRegistrantProfileRealNameVerificationResponse + var err error + defer close(result) + response, err = client.QueryFailReasonForRegistrantProfileRealNameVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryFailReasonForRegistrantProfileRealNameVerificationRequest is the request struct for api QueryFailReasonForRegistrantProfileRealNameVerification +type QueryFailReasonForRegistrantProfileRealNameVerificationRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + RegistrantProfileID requests.Integer `position:"Query" name:"RegistrantProfileID"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryFailReasonForRegistrantProfileRealNameVerificationResponse is the response struct for api QueryFailReasonForRegistrantProfileRealNameVerification +type QueryFailReasonForRegistrantProfileRealNameVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data []FailRecord `json:"Data" xml:"Data"` +} + +// CreateQueryFailReasonForRegistrantProfileRealNameVerificationRequest creates a request to invoke QueryFailReasonForRegistrantProfileRealNameVerification API +func CreateQueryFailReasonForRegistrantProfileRealNameVerificationRequest() (request *QueryFailReasonForRegistrantProfileRealNameVerificationRequest) { + request = &QueryFailReasonForRegistrantProfileRealNameVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryFailReasonForRegistrantProfileRealNameVerification", "", "") + return +} + +// CreateQueryFailReasonForRegistrantProfileRealNameVerificationResponse creates a response to parse from QueryFailReasonForRegistrantProfileRealNameVerification response +func CreateQueryFailReasonForRegistrantProfileRealNameVerificationResponse() (response *QueryFailReasonForRegistrantProfileRealNameVerificationResponse) { + response = &QueryFailReasonForRegistrantProfileRealNameVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_registrant_profile_real_name_verification_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_registrant_profile_real_name_verification_info.go new file mode 100644 index 0000000..bdfe893 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_registrant_profile_real_name_verification_info.go @@ -0,0 +1,113 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryRegistrantProfileRealNameVerificationInfo invokes the domain.QueryRegistrantProfileRealNameVerificationInfo API synchronously +// api document: https://help.aliyun.com/api/domain/queryregistrantprofilerealnameverificationinfo.html +func (client *Client) QueryRegistrantProfileRealNameVerificationInfo(request *QueryRegistrantProfileRealNameVerificationInfoRequest) (response *QueryRegistrantProfileRealNameVerificationInfoResponse, err error) { + response = CreateQueryRegistrantProfileRealNameVerificationInfoResponse() + err = client.DoAction(request, response) + return +} + +// QueryRegistrantProfileRealNameVerificationInfoWithChan invokes the domain.QueryRegistrantProfileRealNameVerificationInfo API asynchronously +// api document: https://help.aliyun.com/api/domain/queryregistrantprofilerealnameverificationinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryRegistrantProfileRealNameVerificationInfoWithChan(request *QueryRegistrantProfileRealNameVerificationInfoRequest) (<-chan *QueryRegistrantProfileRealNameVerificationInfoResponse, <-chan error) { + responseChan := make(chan *QueryRegistrantProfileRealNameVerificationInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryRegistrantProfileRealNameVerificationInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryRegistrantProfileRealNameVerificationInfoWithCallback invokes the domain.QueryRegistrantProfileRealNameVerificationInfo API asynchronously +// api document: https://help.aliyun.com/api/domain/queryregistrantprofilerealnameverificationinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryRegistrantProfileRealNameVerificationInfoWithCallback(request *QueryRegistrantProfileRealNameVerificationInfoRequest, callback func(response *QueryRegistrantProfileRealNameVerificationInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryRegistrantProfileRealNameVerificationInfoResponse + var err error + defer close(result) + response, err = client.QueryRegistrantProfileRealNameVerificationInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryRegistrantProfileRealNameVerificationInfoRequest is the request struct for api QueryRegistrantProfileRealNameVerificationInfo +type QueryRegistrantProfileRealNameVerificationInfoRequest struct { + *requests.RpcRequest + FetchImage requests.Boolean `position:"Query" name:"FetchImage"` + UserClientIp string `position:"Query" name:"UserClientIp"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryRegistrantProfileRealNameVerificationInfoResponse is the response struct for api QueryRegistrantProfileRealNameVerificationInfo +type QueryRegistrantProfileRealNameVerificationInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SubmissionDate string `json:"SubmissionDate" xml:"SubmissionDate"` + ModificationDate string `json:"ModificationDate" xml:"ModificationDate"` + IdentityCredential string `json:"IdentityCredential" xml:"IdentityCredential"` + RegistrantProfileId int `json:"RegistrantProfileId" xml:"RegistrantProfileId"` + IdentityCredentialNo string `json:"IdentityCredentialNo" xml:"IdentityCredentialNo"` + IdentityCredentialType string `json:"IdentityCredentialType" xml:"IdentityCredentialType"` + IdentityCredentialUrl string `json:"IdentityCredentialUrl" xml:"IdentityCredentialUrl"` +} + +// CreateQueryRegistrantProfileRealNameVerificationInfoRequest creates a request to invoke QueryRegistrantProfileRealNameVerificationInfo API +func CreateQueryRegistrantProfileRealNameVerificationInfoRequest() (request *QueryRegistrantProfileRealNameVerificationInfoRequest) { + request = &QueryRegistrantProfileRealNameVerificationInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryRegistrantProfileRealNameVerificationInfo", "", "") + return +} + +// CreateQueryRegistrantProfileRealNameVerificationInfoResponse creates a response to parse from QueryRegistrantProfileRealNameVerificationInfo response +func CreateQueryRegistrantProfileRealNameVerificationInfoResponse() (response *QueryRegistrantProfileRealNameVerificationInfoResponse) { + response = &QueryRegistrantProfileRealNameVerificationInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_registrant_profiles.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_registrant_profiles.go new file mode 100644 index 0000000..18d3f7b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_registrant_profiles.go @@ -0,0 +1,119 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryRegistrantProfiles invokes the domain.QueryRegistrantProfiles API synchronously +// api document: https://help.aliyun.com/api/domain/queryregistrantprofiles.html +func (client *Client) QueryRegistrantProfiles(request *QueryRegistrantProfilesRequest) (response *QueryRegistrantProfilesResponse, err error) { + response = CreateQueryRegistrantProfilesResponse() + err = client.DoAction(request, response) + return +} + +// QueryRegistrantProfilesWithChan invokes the domain.QueryRegistrantProfiles API asynchronously +// api document: https://help.aliyun.com/api/domain/queryregistrantprofiles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryRegistrantProfilesWithChan(request *QueryRegistrantProfilesRequest) (<-chan *QueryRegistrantProfilesResponse, <-chan error) { + responseChan := make(chan *QueryRegistrantProfilesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryRegistrantProfiles(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryRegistrantProfilesWithCallback invokes the domain.QueryRegistrantProfiles API asynchronously +// api document: https://help.aliyun.com/api/domain/queryregistrantprofiles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryRegistrantProfilesWithCallback(request *QueryRegistrantProfilesRequest, callback func(response *QueryRegistrantProfilesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryRegistrantProfilesResponse + var err error + defer close(result) + response, err = client.QueryRegistrantProfiles(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryRegistrantProfilesRequest is the request struct for api QueryRegistrantProfiles +type QueryRegistrantProfilesRequest struct { + *requests.RpcRequest + RegistrantOrganization string `position:"Query" name:"RegistrantOrganization"` + UserClientIp string `position:"Query" name:"UserClientIp"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + RegistrantType string `position:"Query" name:"RegistrantType"` + RealNameStatus string `position:"Query" name:"RealNameStatus"` + Lang string `position:"Query" name:"Lang"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + DefaultRegistrantProfile requests.Boolean `position:"Query" name:"DefaultRegistrantProfile"` + ZhRegistrantOrganization string `position:"Query" name:"ZhRegistrantOrganization"` +} + +// QueryRegistrantProfilesResponse is the response struct for api QueryRegistrantProfiles +type QueryRegistrantProfilesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + RegistrantProfiles RegistrantProfiles `json:"RegistrantProfiles" xml:"RegistrantProfiles"` +} + +// CreateQueryRegistrantProfilesRequest creates a request to invoke QueryRegistrantProfiles API +func CreateQueryRegistrantProfilesRequest() (request *QueryRegistrantProfilesRequest) { + request = &QueryRegistrantProfilesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryRegistrantProfiles", "", "") + return +} + +// CreateQueryRegistrantProfilesResponse creates a response to parse from QueryRegistrantProfiles response +func CreateQueryRegistrantProfilesResponse() (response *QueryRegistrantProfilesResponse) { + response = &QueryRegistrantProfilesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_task_detail_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_task_detail_history.go new file mode 100644 index 0000000..a38e69c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_task_detail_history.go @@ -0,0 +1,115 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTaskDetailHistory invokes the domain.QueryTaskDetailHistory API synchronously +// api document: https://help.aliyun.com/api/domain/querytaskdetailhistory.html +func (client *Client) QueryTaskDetailHistory(request *QueryTaskDetailHistoryRequest) (response *QueryTaskDetailHistoryResponse, err error) { + response = CreateQueryTaskDetailHistoryResponse() + err = client.DoAction(request, response) + return +} + +// QueryTaskDetailHistoryWithChan invokes the domain.QueryTaskDetailHistory API asynchronously +// api document: https://help.aliyun.com/api/domain/querytaskdetailhistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskDetailHistoryWithChan(request *QueryTaskDetailHistoryRequest) (<-chan *QueryTaskDetailHistoryResponse, <-chan error) { + responseChan := make(chan *QueryTaskDetailHistoryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTaskDetailHistory(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTaskDetailHistoryWithCallback invokes the domain.QueryTaskDetailHistory API asynchronously +// api document: https://help.aliyun.com/api/domain/querytaskdetailhistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskDetailHistoryWithCallback(request *QueryTaskDetailHistoryRequest, callback func(response *QueryTaskDetailHistoryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTaskDetailHistoryResponse + var err error + defer close(result) + response, err = client.QueryTaskDetailHistory(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTaskDetailHistoryRequest is the request struct for api QueryTaskDetailHistory +type QueryTaskDetailHistoryRequest struct { + *requests.RpcRequest + TaskStatus requests.Integer `position:"Query" name:"TaskStatus"` + UserClientIp string `position:"Query" name:"UserClientIp"` + TaskNo string `position:"Query" name:"TaskNo"` + DomainName string `position:"Query" name:"DomainName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + TaskDetailNoCursor string `position:"Query" name:"TaskDetailNoCursor"` + Lang string `position:"Query" name:"Lang"` + DomainNameCursor string `position:"Query" name:"DomainNameCursor"` +} + +// QueryTaskDetailHistoryResponse is the response struct for api QueryTaskDetailHistory +type QueryTaskDetailHistoryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + CurrentPageCursor CurrentPageCursor `json:"CurrentPageCursor" xml:"CurrentPageCursor"` + NextPageCursor NextPageCursor `json:"NextPageCursor" xml:"NextPageCursor"` + PrePageCursor PrePageCursor `json:"PrePageCursor" xml:"PrePageCursor"` + Objects []TaskDetailHistory `json:"Objects" xml:"Objects"` +} + +// CreateQueryTaskDetailHistoryRequest creates a request to invoke QueryTaskDetailHistory API +func CreateQueryTaskDetailHistoryRequest() (request *QueryTaskDetailHistoryRequest) { + request = &QueryTaskDetailHistoryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryTaskDetailHistory", "", "") + return +} + +// CreateQueryTaskDetailHistoryResponse creates a response to parse from QueryTaskDetailHistory response +func CreateQueryTaskDetailHistoryResponse() (response *QueryTaskDetailHistoryResponse) { + response = &QueryTaskDetailHistoryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_task_detail_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_task_detail_list.go new file mode 100644 index 0000000..f8506c8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_task_detail_list.go @@ -0,0 +1,117 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTaskDetailList invokes the domain.QueryTaskDetailList API synchronously +// api document: https://help.aliyun.com/api/domain/querytaskdetaillist.html +func (client *Client) QueryTaskDetailList(request *QueryTaskDetailListRequest) (response *QueryTaskDetailListResponse, err error) { + response = CreateQueryTaskDetailListResponse() + err = client.DoAction(request, response) + return +} + +// QueryTaskDetailListWithChan invokes the domain.QueryTaskDetailList API asynchronously +// api document: https://help.aliyun.com/api/domain/querytaskdetaillist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskDetailListWithChan(request *QueryTaskDetailListRequest) (<-chan *QueryTaskDetailListResponse, <-chan error) { + responseChan := make(chan *QueryTaskDetailListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTaskDetailList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTaskDetailListWithCallback invokes the domain.QueryTaskDetailList API asynchronously +// api document: https://help.aliyun.com/api/domain/querytaskdetaillist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskDetailListWithCallback(request *QueryTaskDetailListRequest, callback func(response *QueryTaskDetailListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTaskDetailListResponse + var err error + defer close(result) + response, err = client.QueryTaskDetailList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTaskDetailListRequest is the request struct for api QueryTaskDetailList +type QueryTaskDetailListRequest struct { + *requests.RpcRequest + TaskStatus requests.Integer `position:"Query" name:"TaskStatus"` + InstanceId string `position:"Query" name:"InstanceId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + TaskNo string `position:"Query" name:"TaskNo"` + DomainName string `position:"Query" name:"DomainName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Lang string `position:"Query" name:"Lang"` + PageNum requests.Integer `position:"Query" name:"PageNum"` +} + +// QueryTaskDetailListResponse is the response struct for api QueryTaskDetailList +type QueryTaskDetailListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data DataInQueryTaskDetailList `json:"Data" xml:"Data"` +} + +// CreateQueryTaskDetailListRequest creates a request to invoke QueryTaskDetailList API +func CreateQueryTaskDetailListRequest() (request *QueryTaskDetailListRequest) { + request = &QueryTaskDetailListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryTaskDetailList", "", "") + return +} + +// CreateQueryTaskDetailListResponse creates a response to parse from QueryTaskDetailList response +func CreateQueryTaskDetailListResponse() (response *QueryTaskDetailListResponse) { + response = &QueryTaskDetailListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_task_info_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_task_info_history.go new file mode 100644 index 0000000..1c6d8ab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_task_info_history.go @@ -0,0 +1,114 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTaskInfoHistory invokes the domain.QueryTaskInfoHistory API synchronously +// api document: https://help.aliyun.com/api/domain/querytaskinfohistory.html +func (client *Client) QueryTaskInfoHistory(request *QueryTaskInfoHistoryRequest) (response *QueryTaskInfoHistoryResponse, err error) { + response = CreateQueryTaskInfoHistoryResponse() + err = client.DoAction(request, response) + return +} + +// QueryTaskInfoHistoryWithChan invokes the domain.QueryTaskInfoHistory API asynchronously +// api document: https://help.aliyun.com/api/domain/querytaskinfohistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskInfoHistoryWithChan(request *QueryTaskInfoHistoryRequest) (<-chan *QueryTaskInfoHistoryResponse, <-chan error) { + responseChan := make(chan *QueryTaskInfoHistoryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTaskInfoHistory(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTaskInfoHistoryWithCallback invokes the domain.QueryTaskInfoHistory API asynchronously +// api document: https://help.aliyun.com/api/domain/querytaskinfohistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskInfoHistoryWithCallback(request *QueryTaskInfoHistoryRequest, callback func(response *QueryTaskInfoHistoryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTaskInfoHistoryResponse + var err error + defer close(result) + response, err = client.QueryTaskInfoHistory(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTaskInfoHistoryRequest is the request struct for api QueryTaskInfoHistory +type QueryTaskInfoHistoryRequest struct { + *requests.RpcRequest + BeginCreateTime requests.Integer `position:"Query" name:"BeginCreateTime"` + EndCreateTime requests.Integer `position:"Query" name:"EndCreateTime"` + TaskNoCursor string `position:"Query" name:"TaskNoCursor"` + UserClientIp string `position:"Query" name:"UserClientIp"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Lang string `position:"Query" name:"Lang"` + CreateTimeCursor requests.Integer `position:"Query" name:"CreateTimeCursor"` +} + +// QueryTaskInfoHistoryResponse is the response struct for api QueryTaskInfoHistory +type QueryTaskInfoHistoryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + CurrentPageCursor CurrentPageCursor `json:"CurrentPageCursor" xml:"CurrentPageCursor"` + NextPageCursor NextPageCursor `json:"NextPageCursor" xml:"NextPageCursor"` + PrePageCursor PrePageCursor `json:"PrePageCursor" xml:"PrePageCursor"` + Objects []TaskInfoHistory `json:"Objects" xml:"Objects"` +} + +// CreateQueryTaskInfoHistoryRequest creates a request to invoke QueryTaskInfoHistory API +func CreateQueryTaskInfoHistoryRequest() (request *QueryTaskInfoHistoryRequest) { + request = &QueryTaskInfoHistoryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryTaskInfoHistory", "", "") + return +} + +// CreateQueryTaskInfoHistoryResponse creates a response to parse from QueryTaskInfoHistory response +func CreateQueryTaskInfoHistoryResponse() (response *QueryTaskInfoHistoryResponse) { + response = &QueryTaskInfoHistoryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_task_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_task_list.go new file mode 100644 index 0000000..9da337c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_task_list.go @@ -0,0 +1,115 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTaskList invokes the domain.QueryTaskList API synchronously +// api document: https://help.aliyun.com/api/domain/querytasklist.html +func (client *Client) QueryTaskList(request *QueryTaskListRequest) (response *QueryTaskListResponse, err error) { + response = CreateQueryTaskListResponse() + err = client.DoAction(request, response) + return +} + +// QueryTaskListWithChan invokes the domain.QueryTaskList API asynchronously +// api document: https://help.aliyun.com/api/domain/querytasklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskListWithChan(request *QueryTaskListRequest) (<-chan *QueryTaskListResponse, <-chan error) { + responseChan := make(chan *QueryTaskListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTaskList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTaskListWithCallback invokes the domain.QueryTaskList API asynchronously +// api document: https://help.aliyun.com/api/domain/querytasklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskListWithCallback(request *QueryTaskListRequest, callback func(response *QueryTaskListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTaskListResponse + var err error + defer close(result) + response, err = client.QueryTaskList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTaskListRequest is the request struct for api QueryTaskList +type QueryTaskListRequest struct { + *requests.RpcRequest + BeginCreateTime requests.Integer `position:"Query" name:"BeginCreateTime"` + EndCreateTime requests.Integer `position:"Query" name:"EndCreateTime"` + UserClientIp string `position:"Query" name:"UserClientIp"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Lang string `position:"Query" name:"Lang"` + PageNum requests.Integer `position:"Query" name:"PageNum"` +} + +// QueryTaskListResponse is the response struct for api QueryTaskList +type QueryTaskListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data DataInQueryTaskList `json:"Data" xml:"Data"` +} + +// CreateQueryTaskListRequest creates a request to invoke QueryTaskList API +func CreateQueryTaskListRequest() (request *QueryTaskListRequest) { + request = &QueryTaskListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryTaskList", "", "") + return +} + +// CreateQueryTaskListResponse creates a response to parse from QueryTaskList response +func CreateQueryTaskListResponse() (response *QueryTaskListResponse) { + response = &QueryTaskListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_transfer_in_by_instance_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_transfer_in_by_instance_id.go new file mode 100644 index 0000000..c22f800 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_transfer_in_by_instance_id.go @@ -0,0 +1,126 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTransferInByInstanceId invokes the domain.QueryTransferInByInstanceId API synchronously +// api document: https://help.aliyun.com/api/domain/querytransferinbyinstanceid.html +func (client *Client) QueryTransferInByInstanceId(request *QueryTransferInByInstanceIdRequest) (response *QueryTransferInByInstanceIdResponse, err error) { + response = CreateQueryTransferInByInstanceIdResponse() + err = client.DoAction(request, response) + return +} + +// QueryTransferInByInstanceIdWithChan invokes the domain.QueryTransferInByInstanceId API asynchronously +// api document: https://help.aliyun.com/api/domain/querytransferinbyinstanceid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTransferInByInstanceIdWithChan(request *QueryTransferInByInstanceIdRequest) (<-chan *QueryTransferInByInstanceIdResponse, <-chan error) { + responseChan := make(chan *QueryTransferInByInstanceIdResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTransferInByInstanceId(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTransferInByInstanceIdWithCallback invokes the domain.QueryTransferInByInstanceId API asynchronously +// api document: https://help.aliyun.com/api/domain/querytransferinbyinstanceid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTransferInByInstanceIdWithCallback(request *QueryTransferInByInstanceIdRequest, callback func(response *QueryTransferInByInstanceIdResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTransferInByInstanceIdResponse + var err error + defer close(result) + response, err = client.QueryTransferInByInstanceId(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTransferInByInstanceIdRequest is the request struct for api QueryTransferInByInstanceId +type QueryTransferInByInstanceIdRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryTransferInByInstanceIdResponse is the response struct for api QueryTransferInByInstanceId +type QueryTransferInByInstanceIdResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SubmissionDate string `json:"SubmissionDate" xml:"SubmissionDate"` + ModificationDate string `json:"ModificationDate" xml:"ModificationDate"` + UserId string `json:"UserId" xml:"UserId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + DomainName string `json:"DomainName" xml:"DomainName"` + Status int `json:"Status" xml:"Status"` + SimpleTransferInStatus string `json:"SimpleTransferInStatus" xml:"SimpleTransferInStatus"` + ResultCode string `json:"ResultCode" xml:"ResultCode"` + ResultDate string `json:"ResultDate" xml:"ResultDate"` + ResultMsg string `json:"ResultMsg" xml:"ResultMsg"` + TransferAuthorizationCodeSubmissionDate string `json:"TransferAuthorizationCodeSubmissionDate" xml:"TransferAuthorizationCodeSubmissionDate"` + NeedMailCheck bool `json:"NeedMailCheck" xml:"NeedMailCheck"` + Email string `json:"Email" xml:"Email"` + WhoisMailStatus bool `json:"WhoisMailStatus" xml:"WhoisMailStatus"` + ExpirationDate string `json:"ExpirationDate" xml:"ExpirationDate"` + ProgressBarType int `json:"ProgressBarType" xml:"ProgressBarType"` + SubmissionDateLong int `json:"SubmissionDateLong" xml:"SubmissionDateLong"` + ModificationDateLong int `json:"ModificationDateLong" xml:"ModificationDateLong"` + ResultDateLong int `json:"ResultDateLong" xml:"ResultDateLong"` + ExpirationDateLong int `json:"ExpirationDateLong" xml:"ExpirationDateLong"` + TransferAuthorizationCodeSubmissionDateLong int `json:"TransferAuthorizationCodeSubmissionDateLong" xml:"TransferAuthorizationCodeSubmissionDateLong"` +} + +// CreateQueryTransferInByInstanceIdRequest creates a request to invoke QueryTransferInByInstanceId API +func CreateQueryTransferInByInstanceIdRequest() (request *QueryTransferInByInstanceIdRequest) { + request = &QueryTransferInByInstanceIdRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryTransferInByInstanceId", "", "") + return +} + +// CreateQueryTransferInByInstanceIdResponse creates a response to parse from QueryTransferInByInstanceId response +func CreateQueryTransferInByInstanceIdResponse() (response *QueryTransferInByInstanceIdResponse) { + response = &QueryTransferInByInstanceIdResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_transfer_in_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_transfer_in_list.go new file mode 100644 index 0000000..528bc07 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_transfer_in_list.go @@ -0,0 +1,117 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTransferInList invokes the domain.QueryTransferInList API synchronously +// api document: https://help.aliyun.com/api/domain/querytransferinlist.html +func (client *Client) QueryTransferInList(request *QueryTransferInListRequest) (response *QueryTransferInListResponse, err error) { + response = CreateQueryTransferInListResponse() + err = client.DoAction(request, response) + return +} + +// QueryTransferInListWithChan invokes the domain.QueryTransferInList API asynchronously +// api document: https://help.aliyun.com/api/domain/querytransferinlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTransferInListWithChan(request *QueryTransferInListRequest) (<-chan *QueryTransferInListResponse, <-chan error) { + responseChan := make(chan *QueryTransferInListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTransferInList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTransferInListWithCallback invokes the domain.QueryTransferInList API asynchronously +// api document: https://help.aliyun.com/api/domain/querytransferinlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTransferInListWithCallback(request *QueryTransferInListRequest, callback func(response *QueryTransferInListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTransferInListResponse + var err error + defer close(result) + response, err = client.QueryTransferInList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTransferInListRequest is the request struct for api QueryTransferInList +type QueryTransferInListRequest struct { + *requests.RpcRequest + SubmissionStartDate requests.Integer `position:"Query" name:"SubmissionStartDate"` + UserClientIp string `position:"Query" name:"UserClientIp"` + SubmissionEndDate requests.Integer `position:"Query" name:"SubmissionEndDate"` + DomainName string `position:"Query" name:"DomainName"` + SimpleTransferInStatus string `position:"Query" name:"SimpleTransferInStatus"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Lang string `position:"Query" name:"Lang"` + PageNum requests.Integer `position:"Query" name:"PageNum"` +} + +// QueryTransferInListResponse is the response struct for api QueryTransferInList +type QueryTransferInListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data DataInQueryTransferInList `json:"Data" xml:"Data"` +} + +// CreateQueryTransferInListRequest creates a request to invoke QueryTransferInList API +func CreateQueryTransferInListRequest() (request *QueryTransferInListRequest) { + request = &QueryTransferInListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryTransferInList", "", "") + return +} + +// CreateQueryTransferInListResponse creates a response to parse from QueryTransferInList response +func CreateQueryTransferInListResponse() (response *QueryTransferInListResponse) { + response = &QueryTransferInListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_transfer_out_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_transfer_out_info.go new file mode 100644 index 0000000..74bbd4a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/query_transfer_out_info.go @@ -0,0 +1,112 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTransferOutInfo invokes the domain.QueryTransferOutInfo API synchronously +// api document: https://help.aliyun.com/api/domain/querytransferoutinfo.html +func (client *Client) QueryTransferOutInfo(request *QueryTransferOutInfoRequest) (response *QueryTransferOutInfoResponse, err error) { + response = CreateQueryTransferOutInfoResponse() + err = client.DoAction(request, response) + return +} + +// QueryTransferOutInfoWithChan invokes the domain.QueryTransferOutInfo API asynchronously +// api document: https://help.aliyun.com/api/domain/querytransferoutinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTransferOutInfoWithChan(request *QueryTransferOutInfoRequest) (<-chan *QueryTransferOutInfoResponse, <-chan error) { + responseChan := make(chan *QueryTransferOutInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTransferOutInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTransferOutInfoWithCallback invokes the domain.QueryTransferOutInfo API asynchronously +// api document: https://help.aliyun.com/api/domain/querytransferoutinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTransferOutInfoWithCallback(request *QueryTransferOutInfoRequest, callback func(response *QueryTransferOutInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTransferOutInfoResponse + var err error + defer close(result) + response, err = client.QueryTransferOutInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTransferOutInfoRequest is the request struct for api QueryTransferOutInfo +type QueryTransferOutInfoRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryTransferOutInfoResponse is the response struct for api QueryTransferOutInfo +type QueryTransferOutInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Status int `json:"Status" xml:"Status"` + Email string `json:"Email" xml:"Email"` + TransferAuthorizationCodeSendDate string `json:"TransferAuthorizationCodeSendDate" xml:"TransferAuthorizationCodeSendDate"` + ExpirationDate string `json:"ExpirationDate" xml:"ExpirationDate"` + PendingRequestDate string `json:"PendingRequestDate" xml:"PendingRequestDate"` + ResultCode string `json:"ResultCode" xml:"ResultCode"` + ResultMsg string `json:"ResultMsg" xml:"ResultMsg"` +} + +// CreateQueryTransferOutInfoRequest creates a request to invoke QueryTransferOutInfo API +func CreateQueryTransferOutInfoRequest() (request *QueryTransferOutInfoRequest) { + request = &QueryTransferOutInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryTransferOutInfo", "", "") + return +} + +// CreateQueryTransferOutInfoResponse creates a response to parse from QueryTransferOutInfo response +func CreateQueryTransferOutInfoResponse() (response *QueryTransferOutInfoResponse) { + response = &QueryTransferOutInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/record_demand.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/record_demand.go new file mode 100644 index 0000000..469e46c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/record_demand.go @@ -0,0 +1,104 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RecordDemand invokes the domain.RecordDemand API synchronously +// api document: https://help.aliyun.com/api/domain/recorddemand.html +func (client *Client) RecordDemand(request *RecordDemandRequest) (response *RecordDemandResponse, err error) { + response = CreateRecordDemandResponse() + err = client.DoAction(request, response) + return +} + +// RecordDemandWithChan invokes the domain.RecordDemand API asynchronously +// api document: https://help.aliyun.com/api/domain/recorddemand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RecordDemandWithChan(request *RecordDemandRequest) (<-chan *RecordDemandResponse, <-chan error) { + responseChan := make(chan *RecordDemandResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RecordDemand(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RecordDemandWithCallback invokes the domain.RecordDemand API asynchronously +// api document: https://help.aliyun.com/api/domain/recorddemand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RecordDemandWithCallback(request *RecordDemandRequest, callback func(response *RecordDemandResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RecordDemandResponse + var err error + defer close(result) + response, err = client.RecordDemand(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RecordDemandRequest is the request struct for api RecordDemand +type RecordDemandRequest struct { + *requests.RpcRequest + BizId string `position:"Query" name:"BizId"` + Message string `position:"Query" name:"Message"` +} + +// RecordDemandResponse is the response struct for api RecordDemand +type RecordDemandResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRecordDemandRequest creates a request to invoke RecordDemand API +func CreateRecordDemandRequest() (request *RecordDemandRequest) { + request = &RecordDemandRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-02-08", "RecordDemand", "", "") + return +} + +// CreateRecordDemandResponse creates a response to parse from RecordDemand response +func CreateRecordDemandResponse() (response *RecordDemandResponse) { + response = &RecordDemandResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/refuse_demand.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/refuse_demand.go new file mode 100644 index 0000000..8238243 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/refuse_demand.go @@ -0,0 +1,104 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RefuseDemand invokes the domain.RefuseDemand API synchronously +// api document: https://help.aliyun.com/api/domain/refusedemand.html +func (client *Client) RefuseDemand(request *RefuseDemandRequest) (response *RefuseDemandResponse, err error) { + response = CreateRefuseDemandResponse() + err = client.DoAction(request, response) + return +} + +// RefuseDemandWithChan invokes the domain.RefuseDemand API asynchronously +// api document: https://help.aliyun.com/api/domain/refusedemand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RefuseDemandWithChan(request *RefuseDemandRequest) (<-chan *RefuseDemandResponse, <-chan error) { + responseChan := make(chan *RefuseDemandResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RefuseDemand(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RefuseDemandWithCallback invokes the domain.RefuseDemand API asynchronously +// api document: https://help.aliyun.com/api/domain/refusedemand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RefuseDemandWithCallback(request *RefuseDemandRequest, callback func(response *RefuseDemandResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RefuseDemandResponse + var err error + defer close(result) + response, err = client.RefuseDemand(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RefuseDemandRequest is the request struct for api RefuseDemand +type RefuseDemandRequest struct { + *requests.RpcRequest + BizId string `position:"Query" name:"BizId"` + Message string `position:"Query" name:"Message"` +} + +// RefuseDemandResponse is the response struct for api RefuseDemand +type RefuseDemandResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRefuseDemandRequest creates a request to invoke RefuseDemand API +func CreateRefuseDemandRequest() (request *RefuseDemandRequest) { + request = &RefuseDemandRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-02-08", "RefuseDemand", "", "") + return +} + +// CreateRefuseDemandResponse creates a response to parse from RefuseDemand response +func CreateRefuseDemandResponse() (response *RefuseDemandResponse) { + response = &RefuseDemandResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/registrant_profile_real_name_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/registrant_profile_real_name_verification.go new file mode 100644 index 0000000..d1f8885 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/registrant_profile_real_name_verification.go @@ -0,0 +1,108 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RegistrantProfileRealNameVerification invokes the domain.RegistrantProfileRealNameVerification API synchronously +// api document: https://help.aliyun.com/api/domain/registrantprofilerealnameverification.html +func (client *Client) RegistrantProfileRealNameVerification(request *RegistrantProfileRealNameVerificationRequest) (response *RegistrantProfileRealNameVerificationResponse, err error) { + response = CreateRegistrantProfileRealNameVerificationResponse() + err = client.DoAction(request, response) + return +} + +// RegistrantProfileRealNameVerificationWithChan invokes the domain.RegistrantProfileRealNameVerification API asynchronously +// api document: https://help.aliyun.com/api/domain/registrantprofilerealnameverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RegistrantProfileRealNameVerificationWithChan(request *RegistrantProfileRealNameVerificationRequest) (<-chan *RegistrantProfileRealNameVerificationResponse, <-chan error) { + responseChan := make(chan *RegistrantProfileRealNameVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RegistrantProfileRealNameVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RegistrantProfileRealNameVerificationWithCallback invokes the domain.RegistrantProfileRealNameVerification API asynchronously +// api document: https://help.aliyun.com/api/domain/registrantprofilerealnameverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RegistrantProfileRealNameVerificationWithCallback(request *RegistrantProfileRealNameVerificationRequest, callback func(response *RegistrantProfileRealNameVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RegistrantProfileRealNameVerificationResponse + var err error + defer close(result) + response, err = client.RegistrantProfileRealNameVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RegistrantProfileRealNameVerificationRequest is the request struct for api RegistrantProfileRealNameVerification +type RegistrantProfileRealNameVerificationRequest struct { + *requests.RpcRequest + IdentityCredentialType string `position:"Query" name:"IdentityCredentialType"` + UserClientIp string `position:"Query" name:"UserClientIp"` + RegistrantProfileID requests.Integer `position:"Query" name:"RegistrantProfileID"` + IdentityCredential string `position:"Body" name:"IdentityCredential"` + Lang string `position:"Query" name:"Lang"` + IdentityCredentialNo string `position:"Query" name:"IdentityCredentialNo"` +} + +// RegistrantProfileRealNameVerificationResponse is the response struct for api RegistrantProfileRealNameVerification +type RegistrantProfileRealNameVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRegistrantProfileRealNameVerificationRequest creates a request to invoke RegistrantProfileRealNameVerification API +func CreateRegistrantProfileRealNameVerificationRequest() (request *RegistrantProfileRealNameVerificationRequest) { + request = &RegistrantProfileRealNameVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "RegistrantProfileRealNameVerification", "", "") + return +} + +// CreateRegistrantProfileRealNameVerificationResponse creates a response to parse from RegistrantProfileRealNameVerification response +func CreateRegistrantProfileRealNameVerificationResponse() (response *RegistrantProfileRealNameVerificationResponse) { + response = &RegistrantProfileRealNameVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/request_pay_demand.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/request_pay_demand.go new file mode 100644 index 0000000..00ea019 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/request_pay_demand.go @@ -0,0 +1,107 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RequestPayDemand invokes the domain.RequestPayDemand API synchronously +// api document: https://help.aliyun.com/api/domain/requestpaydemand.html +func (client *Client) RequestPayDemand(request *RequestPayDemandRequest) (response *RequestPayDemandResponse, err error) { + response = CreateRequestPayDemandResponse() + err = client.DoAction(request, response) + return +} + +// RequestPayDemandWithChan invokes the domain.RequestPayDemand API asynchronously +// api document: https://help.aliyun.com/api/domain/requestpaydemand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RequestPayDemandWithChan(request *RequestPayDemandRequest) (<-chan *RequestPayDemandResponse, <-chan error) { + responseChan := make(chan *RequestPayDemandResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RequestPayDemand(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RequestPayDemandWithCallback invokes the domain.RequestPayDemand API asynchronously +// api document: https://help.aliyun.com/api/domain/requestpaydemand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RequestPayDemandWithCallback(request *RequestPayDemandRequest, callback func(response *RequestPayDemandResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RequestPayDemandResponse + var err error + defer close(result) + response, err = client.RequestPayDemand(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RequestPayDemandRequest is the request struct for api RequestPayDemand +type RequestPayDemandRequest struct { + *requests.RpcRequest + Price requests.Float `position:"Query" name:"Price"` + BizId string `position:"Query" name:"BizId"` + DomainName string `position:"Query" name:"DomainName"` + ProduceType requests.Integer `position:"Query" name:"ProduceType"` + Message string `position:"Query" name:"Message"` +} + +// RequestPayDemandResponse is the response struct for api RequestPayDemand +type RequestPayDemandResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRequestPayDemandRequest creates a request to invoke RequestPayDemand API +func CreateRequestPayDemandRequest() (request *RequestPayDemandRequest) { + request = &RequestPayDemandRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-02-08", "RequestPayDemand", "", "") + return +} + +// CreateRequestPayDemandResponse creates a response to parse from RequestPayDemand response +func CreateRequestPayDemandResponse() (response *RequestPayDemandResponse) { + response = &RequestPayDemandResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/resend_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/resend_email_verification.go new file mode 100644 index 0000000..1344a7f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/resend_email_verification.go @@ -0,0 +1,107 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ResendEmailVerification invokes the domain.ResendEmailVerification API synchronously +// api document: https://help.aliyun.com/api/domain/resendemailverification.html +func (client *Client) ResendEmailVerification(request *ResendEmailVerificationRequest) (response *ResendEmailVerificationResponse, err error) { + response = CreateResendEmailVerificationResponse() + err = client.DoAction(request, response) + return +} + +// ResendEmailVerificationWithChan invokes the domain.ResendEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain/resendemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResendEmailVerificationWithChan(request *ResendEmailVerificationRequest) (<-chan *ResendEmailVerificationResponse, <-chan error) { + responseChan := make(chan *ResendEmailVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ResendEmailVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ResendEmailVerificationWithCallback invokes the domain.ResendEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain/resendemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResendEmailVerificationWithCallback(request *ResendEmailVerificationRequest, callback func(response *ResendEmailVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ResendEmailVerificationResponse + var err error + defer close(result) + response, err = client.ResendEmailVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ResendEmailVerificationRequest is the request struct for api ResendEmailVerification +type ResendEmailVerificationRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` +} + +// ResendEmailVerificationResponse is the response struct for api ResendEmailVerification +type ResendEmailVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SuccessList []SendResult `json:"SuccessList" xml:"SuccessList"` + FailList []SendResult `json:"FailList" xml:"FailList"` +} + +// CreateResendEmailVerificationRequest creates a request to invoke ResendEmailVerification API +func CreateResendEmailVerificationRequest() (request *ResendEmailVerificationRequest) { + request = &ResendEmailVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "ResendEmailVerification", "", "") + return +} + +// CreateResendEmailVerificationResponse creates a response to parse from ResendEmailVerification response +func CreateResendEmailVerificationResponse() (response *ResendEmailVerificationResponse) { + response = &ResendEmailVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/reserve_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/reserve_domain.go new file mode 100644 index 0000000..b937413 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/reserve_domain.go @@ -0,0 +1,105 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReserveDomain invokes the domain.ReserveDomain API synchronously +// api document: https://help.aliyun.com/api/domain/reservedomain.html +func (client *Client) ReserveDomain(request *ReserveDomainRequest) (response *ReserveDomainResponse, err error) { + response = CreateReserveDomainResponse() + err = client.DoAction(request, response) + return +} + +// ReserveDomainWithChan invokes the domain.ReserveDomain API asynchronously +// api document: https://help.aliyun.com/api/domain/reservedomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReserveDomainWithChan(request *ReserveDomainRequest) (<-chan *ReserveDomainResponse, <-chan error) { + responseChan := make(chan *ReserveDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReserveDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReserveDomainWithCallback invokes the domain.ReserveDomain API asynchronously +// api document: https://help.aliyun.com/api/domain/reservedomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReserveDomainWithCallback(request *ReserveDomainRequest, callback func(response *ReserveDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReserveDomainResponse + var err error + defer close(result) + response, err = client.ReserveDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReserveDomainRequest is the request struct for api ReserveDomain +type ReserveDomainRequest struct { + *requests.RpcRequest + Channels *[]string `position:"Body" name:"Channels" type:"Repeated"` + DomainName string `position:"Body" name:"DomainName"` +} + +// ReserveDomainResponse is the response struct for api ReserveDomain +type ReserveDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AuctionId string `json:"AuctionId" xml:"AuctionId"` +} + +// CreateReserveDomainRequest creates a request to invoke ReserveDomain API +func CreateReserveDomainRequest() (request *ReserveDomainRequest) { + request = &ReserveDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-02-08", "ReserveDomain", "", "") + return +} + +// CreateReserveDomainResponse creates a response to parse from ReserveDomain response +func CreateReserveDomainResponse() (response *ReserveDomainResponse) { + response = &ReserveDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_domain_remark.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_domain_remark.go new file mode 100644 index 0000000..13b083c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_domain_remark.go @@ -0,0 +1,105 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchDomainRemark invokes the domain.SaveBatchDomainRemark API synchronously +// api document: https://help.aliyun.com/api/domain/savebatchdomainremark.html +func (client *Client) SaveBatchDomainRemark(request *SaveBatchDomainRemarkRequest) (response *SaveBatchDomainRemarkResponse, err error) { + response = CreateSaveBatchDomainRemarkResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchDomainRemarkWithChan invokes the domain.SaveBatchDomainRemark API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchdomainremark.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchDomainRemarkWithChan(request *SaveBatchDomainRemarkRequest) (<-chan *SaveBatchDomainRemarkResponse, <-chan error) { + responseChan := make(chan *SaveBatchDomainRemarkResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchDomainRemark(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchDomainRemarkWithCallback invokes the domain.SaveBatchDomainRemark API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchdomainremark.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchDomainRemarkWithCallback(request *SaveBatchDomainRemarkRequest, callback func(response *SaveBatchDomainRemarkResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchDomainRemarkResponse + var err error + defer close(result) + response, err = client.SaveBatchDomainRemark(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchDomainRemarkRequest is the request struct for api SaveBatchDomainRemark +type SaveBatchDomainRemarkRequest struct { + *requests.RpcRequest + InstanceIds string `position:"Query" name:"InstanceIds"` + Remark string `position:"Query" name:"Remark"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveBatchDomainRemarkResponse is the response struct for api SaveBatchDomainRemark +type SaveBatchDomainRemarkResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSaveBatchDomainRemarkRequest creates a request to invoke SaveBatchDomainRemark API +func CreateSaveBatchDomainRemarkRequest() (request *SaveBatchDomainRemarkRequest) { + request = &SaveBatchDomainRemarkRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchDomainRemark", "", "") + return +} + +// CreateSaveBatchDomainRemarkResponse creates a response to parse from SaveBatchDomainRemark response +func CreateSaveBatchDomainRemarkResponse() (response *SaveBatchDomainRemarkResponse) { + response = &SaveBatchDomainRemarkResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_creating_order_activate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_creating_order_activate.go new file mode 100644 index 0000000..be2f60d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_creating_order_activate.go @@ -0,0 +1,135 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForCreatingOrderActivate invokes the domain.SaveBatchTaskForCreatingOrderActivate API synchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskforcreatingorderactivate.html +func (client *Client) SaveBatchTaskForCreatingOrderActivate(request *SaveBatchTaskForCreatingOrderActivateRequest) (response *SaveBatchTaskForCreatingOrderActivateResponse, err error) { + response = CreateSaveBatchTaskForCreatingOrderActivateResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForCreatingOrderActivateWithChan invokes the domain.SaveBatchTaskForCreatingOrderActivate API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskforcreatingorderactivate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderActivateWithChan(request *SaveBatchTaskForCreatingOrderActivateRequest) (<-chan *SaveBatchTaskForCreatingOrderActivateResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForCreatingOrderActivateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForCreatingOrderActivate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForCreatingOrderActivateWithCallback invokes the domain.SaveBatchTaskForCreatingOrderActivate API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskforcreatingorderactivate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderActivateWithCallback(request *SaveBatchTaskForCreatingOrderActivateRequest, callback func(response *SaveBatchTaskForCreatingOrderActivateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForCreatingOrderActivateResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForCreatingOrderActivate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForCreatingOrderActivateRequest is the request struct for api SaveBatchTaskForCreatingOrderActivate +type SaveBatchTaskForCreatingOrderActivateRequest struct { + *requests.RpcRequest + OrderActivateParam *[]SaveBatchTaskForCreatingOrderActivateOrderActivateParam `position:"Query" name:"OrderActivateParam" type:"Repeated"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveBatchTaskForCreatingOrderActivateOrderActivateParam is a repeated param struct in SaveBatchTaskForCreatingOrderActivateRequest +type SaveBatchTaskForCreatingOrderActivateOrderActivateParam struct { + DomainName string `name:"DomainName"` + SubscriptionDuration string `name:"SubscriptionDuration"` + RegistrantProfileId string `name:"RegistrantProfileId"` + EnableDomainProxy string `name:"EnableDomainProxy"` + PermitPremiumActivation string `name:"PermitPremiumActivation"` + AliyunDns string `name:"AliyunDns"` + Dns1 string `name:"Dns1"` + Dns2 string `name:"Dns2"` + ZhCity string `name:"ZhCity"` + ZhRegistrantOrganization string `name:"ZhRegistrantOrganization"` + Country string `name:"Country"` + ZhRegistrantName string `name:"ZhRegistrantName"` + ZhProvince string `name:"ZhProvince"` + ZhAddress string `name:"ZhAddress"` + City string `name:"City"` + RegistrantOrganization string `name:"RegistrantOrganization"` + RegistrantName string `name:"RegistrantName"` + Province string `name:"Province"` + Address string `name:"Address"` + Email string `name:"Email"` + PostalCode string `name:"PostalCode"` + TelArea string `name:"TelArea"` + Telephone string `name:"Telephone"` + TelExt string `name:"TelExt"` + RegistrantType string `name:"RegistrantType"` +} + +// SaveBatchTaskForCreatingOrderActivateResponse is the response struct for api SaveBatchTaskForCreatingOrderActivate +type SaveBatchTaskForCreatingOrderActivateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForCreatingOrderActivateRequest creates a request to invoke SaveBatchTaskForCreatingOrderActivate API +func CreateSaveBatchTaskForCreatingOrderActivateRequest() (request *SaveBatchTaskForCreatingOrderActivateRequest) { + request = &SaveBatchTaskForCreatingOrderActivateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForCreatingOrderActivate", "", "") + return +} + +// CreateSaveBatchTaskForCreatingOrderActivateResponse creates a response to parse from SaveBatchTaskForCreatingOrderActivate response +func CreateSaveBatchTaskForCreatingOrderActivateResponse() (response *SaveBatchTaskForCreatingOrderActivateResponse) { + response = &SaveBatchTaskForCreatingOrderActivateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_creating_order_redeem.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_creating_order_redeem.go new file mode 100644 index 0000000..d9e2817 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_creating_order_redeem.go @@ -0,0 +1,112 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForCreatingOrderRedeem invokes the domain.SaveBatchTaskForCreatingOrderRedeem API synchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskforcreatingorderredeem.html +func (client *Client) SaveBatchTaskForCreatingOrderRedeem(request *SaveBatchTaskForCreatingOrderRedeemRequest) (response *SaveBatchTaskForCreatingOrderRedeemResponse, err error) { + response = CreateSaveBatchTaskForCreatingOrderRedeemResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForCreatingOrderRedeemWithChan invokes the domain.SaveBatchTaskForCreatingOrderRedeem API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskforcreatingorderredeem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderRedeemWithChan(request *SaveBatchTaskForCreatingOrderRedeemRequest) (<-chan *SaveBatchTaskForCreatingOrderRedeemResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForCreatingOrderRedeemResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForCreatingOrderRedeem(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForCreatingOrderRedeemWithCallback invokes the domain.SaveBatchTaskForCreatingOrderRedeem API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskforcreatingorderredeem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderRedeemWithCallback(request *SaveBatchTaskForCreatingOrderRedeemRequest, callback func(response *SaveBatchTaskForCreatingOrderRedeemResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForCreatingOrderRedeemResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForCreatingOrderRedeem(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForCreatingOrderRedeemRequest is the request struct for api SaveBatchTaskForCreatingOrderRedeem +type SaveBatchTaskForCreatingOrderRedeemRequest struct { + *requests.RpcRequest + OrderRedeemParam *[]SaveBatchTaskForCreatingOrderRedeemOrderRedeemParam `position:"Query" name:"OrderRedeemParam" type:"Repeated"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveBatchTaskForCreatingOrderRedeemOrderRedeemParam is a repeated param struct in SaveBatchTaskForCreatingOrderRedeemRequest +type SaveBatchTaskForCreatingOrderRedeemOrderRedeemParam struct { + DomainName string `name:"DomainName"` + CurrentExpirationDate string `name:"CurrentExpirationDate"` +} + +// SaveBatchTaskForCreatingOrderRedeemResponse is the response struct for api SaveBatchTaskForCreatingOrderRedeem +type SaveBatchTaskForCreatingOrderRedeemResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForCreatingOrderRedeemRequest creates a request to invoke SaveBatchTaskForCreatingOrderRedeem API +func CreateSaveBatchTaskForCreatingOrderRedeemRequest() (request *SaveBatchTaskForCreatingOrderRedeemRequest) { + request = &SaveBatchTaskForCreatingOrderRedeemRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForCreatingOrderRedeem", "", "") + return +} + +// CreateSaveBatchTaskForCreatingOrderRedeemResponse creates a response to parse from SaveBatchTaskForCreatingOrderRedeem response +func CreateSaveBatchTaskForCreatingOrderRedeemResponse() (response *SaveBatchTaskForCreatingOrderRedeemResponse) { + response = &SaveBatchTaskForCreatingOrderRedeemResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_creating_order_renew.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_creating_order_renew.go new file mode 100644 index 0000000..2be5868 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_creating_order_renew.go @@ -0,0 +1,113 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForCreatingOrderRenew invokes the domain.SaveBatchTaskForCreatingOrderRenew API synchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskforcreatingorderrenew.html +func (client *Client) SaveBatchTaskForCreatingOrderRenew(request *SaveBatchTaskForCreatingOrderRenewRequest) (response *SaveBatchTaskForCreatingOrderRenewResponse, err error) { + response = CreateSaveBatchTaskForCreatingOrderRenewResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForCreatingOrderRenewWithChan invokes the domain.SaveBatchTaskForCreatingOrderRenew API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskforcreatingorderrenew.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderRenewWithChan(request *SaveBatchTaskForCreatingOrderRenewRequest) (<-chan *SaveBatchTaskForCreatingOrderRenewResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForCreatingOrderRenewResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForCreatingOrderRenew(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForCreatingOrderRenewWithCallback invokes the domain.SaveBatchTaskForCreatingOrderRenew API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskforcreatingorderrenew.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderRenewWithCallback(request *SaveBatchTaskForCreatingOrderRenewRequest, callback func(response *SaveBatchTaskForCreatingOrderRenewResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForCreatingOrderRenewResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForCreatingOrderRenew(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForCreatingOrderRenewRequest is the request struct for api SaveBatchTaskForCreatingOrderRenew +type SaveBatchTaskForCreatingOrderRenewRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + OrderRenewParam *[]SaveBatchTaskForCreatingOrderRenewOrderRenewParam `position:"Query" name:"OrderRenewParam" type:"Repeated"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveBatchTaskForCreatingOrderRenewOrderRenewParam is a repeated param struct in SaveBatchTaskForCreatingOrderRenewRequest +type SaveBatchTaskForCreatingOrderRenewOrderRenewParam struct { + DomainName string `name:"DomainName"` + CurrentExpirationDate string `name:"CurrentExpirationDate"` + SubscriptionDuration string `name:"SubscriptionDuration"` +} + +// SaveBatchTaskForCreatingOrderRenewResponse is the response struct for api SaveBatchTaskForCreatingOrderRenew +type SaveBatchTaskForCreatingOrderRenewResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForCreatingOrderRenewRequest creates a request to invoke SaveBatchTaskForCreatingOrderRenew API +func CreateSaveBatchTaskForCreatingOrderRenewRequest() (request *SaveBatchTaskForCreatingOrderRenewRequest) { + request = &SaveBatchTaskForCreatingOrderRenewRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForCreatingOrderRenew", "", "") + return +} + +// CreateSaveBatchTaskForCreatingOrderRenewResponse creates a response to parse from SaveBatchTaskForCreatingOrderRenew response +func CreateSaveBatchTaskForCreatingOrderRenewResponse() (response *SaveBatchTaskForCreatingOrderRenewResponse) { + response = &SaveBatchTaskForCreatingOrderRenewResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_creating_order_transfer.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_creating_order_transfer.go new file mode 100644 index 0000000..c299c4c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_creating_order_transfer.go @@ -0,0 +1,114 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForCreatingOrderTransfer invokes the domain.SaveBatchTaskForCreatingOrderTransfer API synchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskforcreatingordertransfer.html +func (client *Client) SaveBatchTaskForCreatingOrderTransfer(request *SaveBatchTaskForCreatingOrderTransferRequest) (response *SaveBatchTaskForCreatingOrderTransferResponse, err error) { + response = CreateSaveBatchTaskForCreatingOrderTransferResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForCreatingOrderTransferWithChan invokes the domain.SaveBatchTaskForCreatingOrderTransfer API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskforcreatingordertransfer.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderTransferWithChan(request *SaveBatchTaskForCreatingOrderTransferRequest) (<-chan *SaveBatchTaskForCreatingOrderTransferResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForCreatingOrderTransferResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForCreatingOrderTransfer(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForCreatingOrderTransferWithCallback invokes the domain.SaveBatchTaskForCreatingOrderTransfer API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskforcreatingordertransfer.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderTransferWithCallback(request *SaveBatchTaskForCreatingOrderTransferRequest, callback func(response *SaveBatchTaskForCreatingOrderTransferResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForCreatingOrderTransferResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForCreatingOrderTransfer(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForCreatingOrderTransferRequest is the request struct for api SaveBatchTaskForCreatingOrderTransfer +type SaveBatchTaskForCreatingOrderTransferRequest struct { + *requests.RpcRequest + OrderTransferParam *[]SaveBatchTaskForCreatingOrderTransferOrderTransferParam `position:"Query" name:"OrderTransferParam" type:"Repeated"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveBatchTaskForCreatingOrderTransferOrderTransferParam is a repeated param struct in SaveBatchTaskForCreatingOrderTransferRequest +type SaveBatchTaskForCreatingOrderTransferOrderTransferParam struct { + DomainName string `name:"DomainName"` + AuthorizationCode string `name:"AuthorizationCode"` + RegistrantProfileId string `name:"RegistrantProfileId"` + PermitPremiumTransfer string `name:"PermitPremiumTransfer"` +} + +// SaveBatchTaskForCreatingOrderTransferResponse is the response struct for api SaveBatchTaskForCreatingOrderTransfer +type SaveBatchTaskForCreatingOrderTransferResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForCreatingOrderTransferRequest creates a request to invoke SaveBatchTaskForCreatingOrderTransfer API +func CreateSaveBatchTaskForCreatingOrderTransferRequest() (request *SaveBatchTaskForCreatingOrderTransferRequest) { + request = &SaveBatchTaskForCreatingOrderTransferRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForCreatingOrderTransfer", "", "") + return +} + +// CreateSaveBatchTaskForCreatingOrderTransferResponse creates a response to parse from SaveBatchTaskForCreatingOrderTransfer response +func CreateSaveBatchTaskForCreatingOrderTransferResponse() (response *SaveBatchTaskForCreatingOrderTransferResponse) { + response = &SaveBatchTaskForCreatingOrderTransferResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_domain_name_proxy_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_domain_name_proxy_service.go new file mode 100644 index 0000000..313afcc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_domain_name_proxy_service.go @@ -0,0 +1,107 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForDomainNameProxyService invokes the domain.SaveBatchTaskForDomainNameProxyService API synchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskfordomainnameproxyservice.html +func (client *Client) SaveBatchTaskForDomainNameProxyService(request *SaveBatchTaskForDomainNameProxyServiceRequest) (response *SaveBatchTaskForDomainNameProxyServiceResponse, err error) { + response = CreateSaveBatchTaskForDomainNameProxyServiceResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForDomainNameProxyServiceWithChan invokes the domain.SaveBatchTaskForDomainNameProxyService API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskfordomainnameproxyservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForDomainNameProxyServiceWithChan(request *SaveBatchTaskForDomainNameProxyServiceRequest) (<-chan *SaveBatchTaskForDomainNameProxyServiceResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForDomainNameProxyServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForDomainNameProxyService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForDomainNameProxyServiceWithCallback invokes the domain.SaveBatchTaskForDomainNameProxyService API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskfordomainnameproxyservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForDomainNameProxyServiceWithCallback(request *SaveBatchTaskForDomainNameProxyServiceRequest, callback func(response *SaveBatchTaskForDomainNameProxyServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForDomainNameProxyServiceResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForDomainNameProxyService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForDomainNameProxyServiceRequest is the request struct for api SaveBatchTaskForDomainNameProxyService +type SaveBatchTaskForDomainNameProxyServiceRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + Lang string `position:"Query" name:"Lang"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveBatchTaskForDomainNameProxyServiceResponse is the response struct for api SaveBatchTaskForDomainNameProxyService +type SaveBatchTaskForDomainNameProxyServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForDomainNameProxyServiceRequest creates a request to invoke SaveBatchTaskForDomainNameProxyService API +func CreateSaveBatchTaskForDomainNameProxyServiceRequest() (request *SaveBatchTaskForDomainNameProxyServiceRequest) { + request = &SaveBatchTaskForDomainNameProxyServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForDomainNameProxyService", "", "") + return +} + +// CreateSaveBatchTaskForDomainNameProxyServiceResponse creates a response to parse from SaveBatchTaskForDomainNameProxyService response +func CreateSaveBatchTaskForDomainNameProxyServiceResponse() (response *SaveBatchTaskForDomainNameProxyServiceResponse) { + response = &SaveBatchTaskForDomainNameProxyServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_modifying_domain_dns.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_modifying_domain_dns.go new file mode 100644 index 0000000..7d94138 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_modifying_domain_dns.go @@ -0,0 +1,108 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForModifyingDomainDns invokes the domain.SaveBatchTaskForModifyingDomainDns API synchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskformodifyingdomaindns.html +func (client *Client) SaveBatchTaskForModifyingDomainDns(request *SaveBatchTaskForModifyingDomainDnsRequest) (response *SaveBatchTaskForModifyingDomainDnsResponse, err error) { + response = CreateSaveBatchTaskForModifyingDomainDnsResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForModifyingDomainDnsWithChan invokes the domain.SaveBatchTaskForModifyingDomainDns API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskformodifyingdomaindns.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForModifyingDomainDnsWithChan(request *SaveBatchTaskForModifyingDomainDnsRequest) (<-chan *SaveBatchTaskForModifyingDomainDnsResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForModifyingDomainDnsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForModifyingDomainDns(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForModifyingDomainDnsWithCallback invokes the domain.SaveBatchTaskForModifyingDomainDns API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskformodifyingdomaindns.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForModifyingDomainDnsWithCallback(request *SaveBatchTaskForModifyingDomainDnsRequest, callback func(response *SaveBatchTaskForModifyingDomainDnsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForModifyingDomainDnsResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForModifyingDomainDns(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForModifyingDomainDnsRequest is the request struct for api SaveBatchTaskForModifyingDomainDns +type SaveBatchTaskForModifyingDomainDnsRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + DomainNameServer *[]string `position:"Query" name:"DomainNameServer" type:"Repeated"` + Lang string `position:"Query" name:"Lang"` + AliyunDns requests.Boolean `position:"Query" name:"AliyunDns"` +} + +// SaveBatchTaskForModifyingDomainDnsResponse is the response struct for api SaveBatchTaskForModifyingDomainDns +type SaveBatchTaskForModifyingDomainDnsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForModifyingDomainDnsRequest creates a request to invoke SaveBatchTaskForModifyingDomainDns API +func CreateSaveBatchTaskForModifyingDomainDnsRequest() (request *SaveBatchTaskForModifyingDomainDnsRequest) { + request = &SaveBatchTaskForModifyingDomainDnsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForModifyingDomainDns", "", "") + return +} + +// CreateSaveBatchTaskForModifyingDomainDnsResponse creates a response to parse from SaveBatchTaskForModifyingDomainDns response +func CreateSaveBatchTaskForModifyingDomainDnsResponse() (response *SaveBatchTaskForModifyingDomainDnsResponse) { + response = &SaveBatchTaskForModifyingDomainDnsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_transfer_prohibition_lock.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_transfer_prohibition_lock.go new file mode 100644 index 0000000..a41613d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_transfer_prohibition_lock.go @@ -0,0 +1,107 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForTransferProhibitionLock invokes the domain.SaveBatchTaskForTransferProhibitionLock API synchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskfortransferprohibitionlock.html +func (client *Client) SaveBatchTaskForTransferProhibitionLock(request *SaveBatchTaskForTransferProhibitionLockRequest) (response *SaveBatchTaskForTransferProhibitionLockResponse, err error) { + response = CreateSaveBatchTaskForTransferProhibitionLockResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForTransferProhibitionLockWithChan invokes the domain.SaveBatchTaskForTransferProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskfortransferprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForTransferProhibitionLockWithChan(request *SaveBatchTaskForTransferProhibitionLockRequest) (<-chan *SaveBatchTaskForTransferProhibitionLockResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForTransferProhibitionLockResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForTransferProhibitionLock(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForTransferProhibitionLockWithCallback invokes the domain.SaveBatchTaskForTransferProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskfortransferprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForTransferProhibitionLockWithCallback(request *SaveBatchTaskForTransferProhibitionLockRequest, callback func(response *SaveBatchTaskForTransferProhibitionLockResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForTransferProhibitionLockResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForTransferProhibitionLock(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForTransferProhibitionLockRequest is the request struct for api SaveBatchTaskForTransferProhibitionLock +type SaveBatchTaskForTransferProhibitionLockRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + Lang string `position:"Query" name:"Lang"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveBatchTaskForTransferProhibitionLockResponse is the response struct for api SaveBatchTaskForTransferProhibitionLock +type SaveBatchTaskForTransferProhibitionLockResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForTransferProhibitionLockRequest creates a request to invoke SaveBatchTaskForTransferProhibitionLock API +func CreateSaveBatchTaskForTransferProhibitionLockRequest() (request *SaveBatchTaskForTransferProhibitionLockRequest) { + request = &SaveBatchTaskForTransferProhibitionLockRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForTransferProhibitionLock", "", "") + return +} + +// CreateSaveBatchTaskForTransferProhibitionLockResponse creates a response to parse from SaveBatchTaskForTransferProhibitionLock response +func CreateSaveBatchTaskForTransferProhibitionLockResponse() (response *SaveBatchTaskForTransferProhibitionLockResponse) { + response = &SaveBatchTaskForTransferProhibitionLockResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_update_prohibition_lock.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_update_prohibition_lock.go new file mode 100644 index 0000000..c7d71f2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_update_prohibition_lock.go @@ -0,0 +1,107 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForUpdateProhibitionLock invokes the domain.SaveBatchTaskForUpdateProhibitionLock API synchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskforupdateprohibitionlock.html +func (client *Client) SaveBatchTaskForUpdateProhibitionLock(request *SaveBatchTaskForUpdateProhibitionLockRequest) (response *SaveBatchTaskForUpdateProhibitionLockResponse, err error) { + response = CreateSaveBatchTaskForUpdateProhibitionLockResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForUpdateProhibitionLockWithChan invokes the domain.SaveBatchTaskForUpdateProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskforupdateprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForUpdateProhibitionLockWithChan(request *SaveBatchTaskForUpdateProhibitionLockRequest) (<-chan *SaveBatchTaskForUpdateProhibitionLockResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForUpdateProhibitionLockResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForUpdateProhibitionLock(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForUpdateProhibitionLockWithCallback invokes the domain.SaveBatchTaskForUpdateProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskforupdateprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForUpdateProhibitionLockWithCallback(request *SaveBatchTaskForUpdateProhibitionLockRequest, callback func(response *SaveBatchTaskForUpdateProhibitionLockResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForUpdateProhibitionLockResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForUpdateProhibitionLock(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForUpdateProhibitionLockRequest is the request struct for api SaveBatchTaskForUpdateProhibitionLock +type SaveBatchTaskForUpdateProhibitionLockRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + Lang string `position:"Query" name:"Lang"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveBatchTaskForUpdateProhibitionLockResponse is the response struct for api SaveBatchTaskForUpdateProhibitionLock +type SaveBatchTaskForUpdateProhibitionLockResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForUpdateProhibitionLockRequest creates a request to invoke SaveBatchTaskForUpdateProhibitionLock API +func CreateSaveBatchTaskForUpdateProhibitionLockRequest() (request *SaveBatchTaskForUpdateProhibitionLockRequest) { + request = &SaveBatchTaskForUpdateProhibitionLockRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForUpdateProhibitionLock", "", "") + return +} + +// CreateSaveBatchTaskForUpdateProhibitionLockResponse creates a response to parse from SaveBatchTaskForUpdateProhibitionLock response +func CreateSaveBatchTaskForUpdateProhibitionLockResponse() (response *SaveBatchTaskForUpdateProhibitionLockResponse) { + response = &SaveBatchTaskForUpdateProhibitionLockResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_updating_contact_info_by_new_contact.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_updating_contact_info_by_new_contact.go new file mode 100644 index 0000000..a5837d0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_updating_contact_info_by_new_contact.go @@ -0,0 +1,125 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForUpdatingContactInfoByNewContact invokes the domain.SaveBatchTaskForUpdatingContactInfoByNewContact API synchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskforupdatingcontactinfobynewcontact.html +func (client *Client) SaveBatchTaskForUpdatingContactInfoByNewContact(request *SaveBatchTaskForUpdatingContactInfoByNewContactRequest) (response *SaveBatchTaskForUpdatingContactInfoByNewContactResponse, err error) { + response = CreateSaveBatchTaskForUpdatingContactInfoByNewContactResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForUpdatingContactInfoByNewContactWithChan invokes the domain.SaveBatchTaskForUpdatingContactInfoByNewContact API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskforupdatingcontactinfobynewcontact.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForUpdatingContactInfoByNewContactWithChan(request *SaveBatchTaskForUpdatingContactInfoByNewContactRequest) (<-chan *SaveBatchTaskForUpdatingContactInfoByNewContactResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForUpdatingContactInfoByNewContactResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForUpdatingContactInfoByNewContact(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForUpdatingContactInfoByNewContactWithCallback invokes the domain.SaveBatchTaskForUpdatingContactInfoByNewContact API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskforupdatingcontactinfobynewcontact.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForUpdatingContactInfoByNewContactWithCallback(request *SaveBatchTaskForUpdatingContactInfoByNewContactRequest, callback func(response *SaveBatchTaskForUpdatingContactInfoByNewContactResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForUpdatingContactInfoByNewContactResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForUpdatingContactInfoByNewContact(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForUpdatingContactInfoByNewContactRequest is the request struct for api SaveBatchTaskForUpdatingContactInfoByNewContact +type SaveBatchTaskForUpdatingContactInfoByNewContactRequest struct { + *requests.RpcRequest + Country string `position:"Query" name:"Country"` + Address string `position:"Query" name:"Address"` + TelArea string `position:"Query" name:"TelArea"` + ContactType string `position:"Query" name:"ContactType"` + City string `position:"Query" name:"City"` + ZhAddress string `position:"Query" name:"ZhAddress"` + RegistrantType string `position:"Query" name:"RegistrantType"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + Telephone string `position:"Query" name:"Telephone"` + TransferOutProhibited requests.Boolean `position:"Query" name:"TransferOutProhibited"` + ZhCity string `position:"Query" name:"ZhCity"` + ZhProvince string `position:"Query" name:"ZhProvince"` + RegistrantOrganization string `position:"Query" name:"RegistrantOrganization"` + TelExt string `position:"Query" name:"TelExt"` + Province string `position:"Query" name:"Province"` + ZhRegistrantName string `position:"Query" name:"ZhRegistrantName"` + PostalCode string `position:"Query" name:"PostalCode"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` + RegistrantName string `position:"Query" name:"RegistrantName"` + ZhRegistrantOrganization string `position:"Query" name:"ZhRegistrantOrganization"` +} + +// SaveBatchTaskForUpdatingContactInfoByNewContactResponse is the response struct for api SaveBatchTaskForUpdatingContactInfoByNewContact +type SaveBatchTaskForUpdatingContactInfoByNewContactResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForUpdatingContactInfoByNewContactRequest creates a request to invoke SaveBatchTaskForUpdatingContactInfoByNewContact API +func CreateSaveBatchTaskForUpdatingContactInfoByNewContactRequest() (request *SaveBatchTaskForUpdatingContactInfoByNewContactRequest) { + request = &SaveBatchTaskForUpdatingContactInfoByNewContactRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForUpdatingContactInfoByNewContact", "", "") + return +} + +// CreateSaveBatchTaskForUpdatingContactInfoByNewContactResponse creates a response to parse from SaveBatchTaskForUpdatingContactInfoByNewContact response +func CreateSaveBatchTaskForUpdatingContactInfoByNewContactResponse() (response *SaveBatchTaskForUpdatingContactInfoByNewContactResponse) { + response = &SaveBatchTaskForUpdatingContactInfoByNewContactResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_updating_contact_info_by_registrant_profile_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_updating_contact_info_by_registrant_profile_id.go new file mode 100644 index 0000000..5a858a3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_batch_task_for_updating_contact_info_by_registrant_profile_id.go @@ -0,0 +1,109 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId invokes the domain.SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId API synchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskforupdatingcontactinfobyregistrantprofileid.html +func (client *Client) SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId(request *SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest) (response *SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse, err error) { + response = CreateSaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdWithChan invokes the domain.SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskforupdatingcontactinfobyregistrantprofileid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdWithChan(request *SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest) (<-chan *SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdWithCallback invokes the domain.SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId API asynchronously +// api document: https://help.aliyun.com/api/domain/savebatchtaskforupdatingcontactinfobyregistrantprofileid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdWithCallback(request *SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest, callback func(response *SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest is the request struct for api SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId +type SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest struct { + *requests.RpcRequest + ContactType string `position:"Query" name:"ContactType"` + UserClientIp string `position:"Query" name:"UserClientIp"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + TransferOutProhibited requests.Boolean `position:"Query" name:"TransferOutProhibited"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse is the response struct for api SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId +type SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest creates a request to invoke SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId API +func CreateSaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest() (request *SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest) { + request = &SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId", "", "") + return +} + +// CreateSaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse creates a response to parse from SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId response +func CreateSaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse() (response *SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse) { + response = &SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_domain_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_domain_group.go new file mode 100644 index 0000000..1334ad9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_domain_group.go @@ -0,0 +1,113 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveDomainGroup invokes the domain.SaveDomainGroup API synchronously +// api document: https://help.aliyun.com/api/domain/savedomaingroup.html +func (client *Client) SaveDomainGroup(request *SaveDomainGroupRequest) (response *SaveDomainGroupResponse, err error) { + response = CreateSaveDomainGroupResponse() + err = client.DoAction(request, response) + return +} + +// SaveDomainGroupWithChan invokes the domain.SaveDomainGroup API asynchronously +// api document: https://help.aliyun.com/api/domain/savedomaingroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveDomainGroupWithChan(request *SaveDomainGroupRequest) (<-chan *SaveDomainGroupResponse, <-chan error) { + responseChan := make(chan *SaveDomainGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveDomainGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveDomainGroupWithCallback invokes the domain.SaveDomainGroup API asynchronously +// api document: https://help.aliyun.com/api/domain/savedomaingroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveDomainGroupWithCallback(request *SaveDomainGroupRequest, callback func(response *SaveDomainGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveDomainGroupResponse + var err error + defer close(result) + response, err = client.SaveDomainGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveDomainGroupRequest is the request struct for api SaveDomainGroup +type SaveDomainGroupRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainGroupName string `position:"Query" name:"DomainGroupName"` + Lang string `position:"Query" name:"Lang"` + DomainGroupId requests.Integer `position:"Query" name:"DomainGroupId"` +} + +// SaveDomainGroupResponse is the response struct for api SaveDomainGroup +type SaveDomainGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainGroupId int `json:"DomainGroupId" xml:"DomainGroupId"` + DomainGroupName string `json:"DomainGroupName" xml:"DomainGroupName"` + TotalNumber int `json:"TotalNumber" xml:"TotalNumber"` + CreationDate string `json:"CreationDate" xml:"CreationDate"` + ModificationDate string `json:"ModificationDate" xml:"ModificationDate"` + DomainGroupStatus string `json:"DomainGroupStatus" xml:"DomainGroupStatus"` + BeingDeleted bool `json:"BeingDeleted" xml:"BeingDeleted"` +} + +// CreateSaveDomainGroupRequest creates a request to invoke SaveDomainGroup API +func CreateSaveDomainGroupRequest() (request *SaveDomainGroupRequest) { + request = &SaveDomainGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveDomainGroup", "", "") + return +} + +// CreateSaveDomainGroupResponse creates a response to parse from SaveDomainGroup response +func CreateSaveDomainGroupResponse() (response *SaveDomainGroupResponse) { + response = &SaveDomainGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_registrant_profile.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_registrant_profile.go new file mode 100644 index 0000000..b842f85 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_registrant_profile.go @@ -0,0 +1,124 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveRegistrantProfile invokes the domain.SaveRegistrantProfile API synchronously +// api document: https://help.aliyun.com/api/domain/saveregistrantprofile.html +func (client *Client) SaveRegistrantProfile(request *SaveRegistrantProfileRequest) (response *SaveRegistrantProfileResponse, err error) { + response = CreateSaveRegistrantProfileResponse() + err = client.DoAction(request, response) + return +} + +// SaveRegistrantProfileWithChan invokes the domain.SaveRegistrantProfile API asynchronously +// api document: https://help.aliyun.com/api/domain/saveregistrantprofile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveRegistrantProfileWithChan(request *SaveRegistrantProfileRequest) (<-chan *SaveRegistrantProfileResponse, <-chan error) { + responseChan := make(chan *SaveRegistrantProfileResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveRegistrantProfile(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveRegistrantProfileWithCallback invokes the domain.SaveRegistrantProfile API asynchronously +// api document: https://help.aliyun.com/api/domain/saveregistrantprofile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveRegistrantProfileWithCallback(request *SaveRegistrantProfileRequest, callback func(response *SaveRegistrantProfileResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveRegistrantProfileResponse + var err error + defer close(result) + response, err = client.SaveRegistrantProfile(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveRegistrantProfileRequest is the request struct for api SaveRegistrantProfile +type SaveRegistrantProfileRequest struct { + *requests.RpcRequest + Country string `position:"Query" name:"Country"` + Address string `position:"Query" name:"Address"` + TelArea string `position:"Query" name:"TelArea"` + City string `position:"Query" name:"City"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + ZhAddress string `position:"Query" name:"ZhAddress"` + RegistrantType string `position:"Query" name:"RegistrantType"` + Telephone string `position:"Query" name:"Telephone"` + DefaultRegistrantProfile requests.Boolean `position:"Query" name:"DefaultRegistrantProfile"` + ZhCity string `position:"Query" name:"ZhCity"` + ZhProvince string `position:"Query" name:"ZhProvince"` + RegistrantOrganization string `position:"Query" name:"RegistrantOrganization"` + TelExt string `position:"Query" name:"TelExt"` + Province string `position:"Query" name:"Province"` + ZhRegistrantName string `position:"Query" name:"ZhRegistrantName"` + PostalCode string `position:"Query" name:"PostalCode"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` + RegistrantName string `position:"Query" name:"RegistrantName"` + ZhRegistrantOrganization string `position:"Query" name:"ZhRegistrantOrganization"` +} + +// SaveRegistrantProfileResponse is the response struct for api SaveRegistrantProfile +type SaveRegistrantProfileResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegistrantProfileId int `json:"RegistrantProfileId" xml:"RegistrantProfileId"` +} + +// CreateSaveRegistrantProfileRequest creates a request to invoke SaveRegistrantProfile API +func CreateSaveRegistrantProfileRequest() (request *SaveRegistrantProfileRequest) { + request = &SaveRegistrantProfileRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveRegistrantProfile", "", "") + return +} + +// CreateSaveRegistrantProfileResponse creates a response to parse from SaveRegistrantProfile response +func CreateSaveRegistrantProfileResponse() (response *SaveRegistrantProfileResponse) { + response = &SaveRegistrantProfileResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_approving_transfer_out.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_approving_transfer_out.go new file mode 100644 index 0000000..b995a9b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_approving_transfer_out.go @@ -0,0 +1,106 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForApprovingTransferOut invokes the domain.SaveSingleTaskForApprovingTransferOut API synchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforapprovingtransferout.html +func (client *Client) SaveSingleTaskForApprovingTransferOut(request *SaveSingleTaskForApprovingTransferOutRequest) (response *SaveSingleTaskForApprovingTransferOutResponse, err error) { + response = CreateSaveSingleTaskForApprovingTransferOutResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForApprovingTransferOutWithChan invokes the domain.SaveSingleTaskForApprovingTransferOut API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforapprovingtransferout.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForApprovingTransferOutWithChan(request *SaveSingleTaskForApprovingTransferOutRequest) (<-chan *SaveSingleTaskForApprovingTransferOutResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForApprovingTransferOutResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForApprovingTransferOut(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForApprovingTransferOutWithCallback invokes the domain.SaveSingleTaskForApprovingTransferOut API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforapprovingtransferout.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForApprovingTransferOutWithCallback(request *SaveSingleTaskForApprovingTransferOutRequest, callback func(response *SaveSingleTaskForApprovingTransferOutResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForApprovingTransferOutResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForApprovingTransferOut(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForApprovingTransferOutRequest is the request struct for api SaveSingleTaskForApprovingTransferOut +type SaveSingleTaskForApprovingTransferOutRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForApprovingTransferOutResponse is the response struct for api SaveSingleTaskForApprovingTransferOut +type SaveSingleTaskForApprovingTransferOutResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForApprovingTransferOutRequest creates a request to invoke SaveSingleTaskForApprovingTransferOut API +func CreateSaveSingleTaskForApprovingTransferOutRequest() (request *SaveSingleTaskForApprovingTransferOutRequest) { + request = &SaveSingleTaskForApprovingTransferOutRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForApprovingTransferOut", "", "") + return +} + +// CreateSaveSingleTaskForApprovingTransferOutResponse creates a response to parse from SaveSingleTaskForApprovingTransferOut response +func CreateSaveSingleTaskForApprovingTransferOutResponse() (response *SaveSingleTaskForApprovingTransferOutResponse) { + response = &SaveSingleTaskForApprovingTransferOutResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_canceling_transfer_in.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_canceling_transfer_in.go new file mode 100644 index 0000000..393f93c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_canceling_transfer_in.go @@ -0,0 +1,106 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCancelingTransferIn invokes the domain.SaveSingleTaskForCancelingTransferIn API synchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforcancelingtransferin.html +func (client *Client) SaveSingleTaskForCancelingTransferIn(request *SaveSingleTaskForCancelingTransferInRequest) (response *SaveSingleTaskForCancelingTransferInResponse, err error) { + response = CreateSaveSingleTaskForCancelingTransferInResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCancelingTransferInWithChan invokes the domain.SaveSingleTaskForCancelingTransferIn API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforcancelingtransferin.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCancelingTransferInWithChan(request *SaveSingleTaskForCancelingTransferInRequest) (<-chan *SaveSingleTaskForCancelingTransferInResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCancelingTransferInResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCancelingTransferIn(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCancelingTransferInWithCallback invokes the domain.SaveSingleTaskForCancelingTransferIn API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforcancelingtransferin.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCancelingTransferInWithCallback(request *SaveSingleTaskForCancelingTransferInRequest, callback func(response *SaveSingleTaskForCancelingTransferInResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCancelingTransferInResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCancelingTransferIn(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCancelingTransferInRequest is the request struct for api SaveSingleTaskForCancelingTransferIn +type SaveSingleTaskForCancelingTransferInRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForCancelingTransferInResponse is the response struct for api SaveSingleTaskForCancelingTransferIn +type SaveSingleTaskForCancelingTransferInResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCancelingTransferInRequest creates a request to invoke SaveSingleTaskForCancelingTransferIn API +func CreateSaveSingleTaskForCancelingTransferInRequest() (request *SaveSingleTaskForCancelingTransferInRequest) { + request = &SaveSingleTaskForCancelingTransferInRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForCancelingTransferIn", "", "") + return +} + +// CreateSaveSingleTaskForCancelingTransferInResponse creates a response to parse from SaveSingleTaskForCancelingTransferIn response +func CreateSaveSingleTaskForCancelingTransferInResponse() (response *SaveSingleTaskForCancelingTransferInResponse) { + response = &SaveSingleTaskForCancelingTransferInResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_canceling_transfer_out.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_canceling_transfer_out.go new file mode 100644 index 0000000..6c4fe19 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_canceling_transfer_out.go @@ -0,0 +1,106 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCancelingTransferOut invokes the domain.SaveSingleTaskForCancelingTransferOut API synchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforcancelingtransferout.html +func (client *Client) SaveSingleTaskForCancelingTransferOut(request *SaveSingleTaskForCancelingTransferOutRequest) (response *SaveSingleTaskForCancelingTransferOutResponse, err error) { + response = CreateSaveSingleTaskForCancelingTransferOutResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCancelingTransferOutWithChan invokes the domain.SaveSingleTaskForCancelingTransferOut API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforcancelingtransferout.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCancelingTransferOutWithChan(request *SaveSingleTaskForCancelingTransferOutRequest) (<-chan *SaveSingleTaskForCancelingTransferOutResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCancelingTransferOutResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCancelingTransferOut(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCancelingTransferOutWithCallback invokes the domain.SaveSingleTaskForCancelingTransferOut API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforcancelingtransferout.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCancelingTransferOutWithCallback(request *SaveSingleTaskForCancelingTransferOutRequest, callback func(response *SaveSingleTaskForCancelingTransferOutResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCancelingTransferOutResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCancelingTransferOut(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCancelingTransferOutRequest is the request struct for api SaveSingleTaskForCancelingTransferOut +type SaveSingleTaskForCancelingTransferOutRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForCancelingTransferOutResponse is the response struct for api SaveSingleTaskForCancelingTransferOut +type SaveSingleTaskForCancelingTransferOutResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCancelingTransferOutRequest creates a request to invoke SaveSingleTaskForCancelingTransferOut API +func CreateSaveSingleTaskForCancelingTransferOutRequest() (request *SaveSingleTaskForCancelingTransferOutRequest) { + request = &SaveSingleTaskForCancelingTransferOutRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForCancelingTransferOut", "", "") + return +} + +// CreateSaveSingleTaskForCancelingTransferOutResponse creates a response to parse from SaveSingleTaskForCancelingTransferOut response +func CreateSaveSingleTaskForCancelingTransferOutResponse() (response *SaveSingleTaskForCancelingTransferOutResponse) { + response = &SaveSingleTaskForCancelingTransferOutResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_creating_dns_host.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_creating_dns_host.go new file mode 100644 index 0000000..fc5006f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_creating_dns_host.go @@ -0,0 +1,107 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCreatingDnsHost invokes the domain.SaveSingleTaskForCreatingDnsHost API synchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforcreatingdnshost.html +func (client *Client) SaveSingleTaskForCreatingDnsHost(request *SaveSingleTaskForCreatingDnsHostRequest) (response *SaveSingleTaskForCreatingDnsHostResponse, err error) { + response = CreateSaveSingleTaskForCreatingDnsHostResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCreatingDnsHostWithChan invokes the domain.SaveSingleTaskForCreatingDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforcreatingdnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingDnsHostWithChan(request *SaveSingleTaskForCreatingDnsHostRequest) (<-chan *SaveSingleTaskForCreatingDnsHostResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCreatingDnsHostResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCreatingDnsHost(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCreatingDnsHostWithCallback invokes the domain.SaveSingleTaskForCreatingDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforcreatingdnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingDnsHostWithCallback(request *SaveSingleTaskForCreatingDnsHostRequest, callback func(response *SaveSingleTaskForCreatingDnsHostResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCreatingDnsHostResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCreatingDnsHost(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCreatingDnsHostRequest is the request struct for api SaveSingleTaskForCreatingDnsHost +type SaveSingleTaskForCreatingDnsHostRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + Ip *[]string `position:"Query" name:"Ip" type:"Repeated"` + DnsName string `position:"Query" name:"DnsName"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForCreatingDnsHostResponse is the response struct for api SaveSingleTaskForCreatingDnsHost +type SaveSingleTaskForCreatingDnsHostResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCreatingDnsHostRequest creates a request to invoke SaveSingleTaskForCreatingDnsHost API +func CreateSaveSingleTaskForCreatingDnsHostRequest() (request *SaveSingleTaskForCreatingDnsHostRequest) { + request = &SaveSingleTaskForCreatingDnsHostRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForCreatingDnsHost", "", "") + return +} + +// CreateSaveSingleTaskForCreatingDnsHostResponse creates a response to parse from SaveSingleTaskForCreatingDnsHost response +func CreateSaveSingleTaskForCreatingDnsHostResponse() (response *SaveSingleTaskForCreatingDnsHostResponse) { + response = &SaveSingleTaskForCreatingDnsHostResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_creating_order_activate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_creating_order_activate.go new file mode 100644 index 0000000..d5ad3b7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_creating_order_activate.go @@ -0,0 +1,130 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCreatingOrderActivate invokes the domain.SaveSingleTaskForCreatingOrderActivate API synchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforcreatingorderactivate.html +func (client *Client) SaveSingleTaskForCreatingOrderActivate(request *SaveSingleTaskForCreatingOrderActivateRequest) (response *SaveSingleTaskForCreatingOrderActivateResponse, err error) { + response = CreateSaveSingleTaskForCreatingOrderActivateResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCreatingOrderActivateWithChan invokes the domain.SaveSingleTaskForCreatingOrderActivate API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforcreatingorderactivate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderActivateWithChan(request *SaveSingleTaskForCreatingOrderActivateRequest) (<-chan *SaveSingleTaskForCreatingOrderActivateResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCreatingOrderActivateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCreatingOrderActivate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCreatingOrderActivateWithCallback invokes the domain.SaveSingleTaskForCreatingOrderActivate API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforcreatingorderactivate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderActivateWithCallback(request *SaveSingleTaskForCreatingOrderActivateRequest, callback func(response *SaveSingleTaskForCreatingOrderActivateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCreatingOrderActivateResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCreatingOrderActivate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCreatingOrderActivateRequest is the request struct for api SaveSingleTaskForCreatingOrderActivate +type SaveSingleTaskForCreatingOrderActivateRequest struct { + *requests.RpcRequest + Country string `position:"Query" name:"Country"` + SubscriptionDuration requests.Integer `position:"Query" name:"SubscriptionDuration"` + PermitPremiumActivation requests.Boolean `position:"Query" name:"PermitPremiumActivation"` + City string `position:"Query" name:"City"` + Dns2 string `position:"Query" name:"Dns2"` + Dns1 string `position:"Query" name:"Dns1"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + AliyunDns requests.Boolean `position:"Query" name:"AliyunDns"` + ZhCity string `position:"Query" name:"ZhCity"` + TelExt string `position:"Query" name:"TelExt"` + ZhRegistrantName string `position:"Query" name:"ZhRegistrantName"` + Province string `position:"Query" name:"Province"` + PostalCode string `position:"Query" name:"PostalCode"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` + ZhRegistrantOrganization string `position:"Query" name:"ZhRegistrantOrganization"` + Address string `position:"Query" name:"Address"` + TelArea string `position:"Query" name:"TelArea"` + DomainName string `position:"Query" name:"DomainName"` + ZhAddress string `position:"Query" name:"ZhAddress"` + RegistrantType string `position:"Query" name:"RegistrantType"` + Telephone string `position:"Query" name:"Telephone"` + ZhProvince string `position:"Query" name:"ZhProvince"` + RegistrantOrganization string `position:"Query" name:"RegistrantOrganization"` + EnableDomainProxy requests.Boolean `position:"Query" name:"EnableDomainProxy"` + UserClientIp string `position:"Query" name:"UserClientIp"` + RegistrantName string `position:"Query" name:"RegistrantName"` +} + +// SaveSingleTaskForCreatingOrderActivateResponse is the response struct for api SaveSingleTaskForCreatingOrderActivate +type SaveSingleTaskForCreatingOrderActivateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCreatingOrderActivateRequest creates a request to invoke SaveSingleTaskForCreatingOrderActivate API +func CreateSaveSingleTaskForCreatingOrderActivateRequest() (request *SaveSingleTaskForCreatingOrderActivateRequest) { + request = &SaveSingleTaskForCreatingOrderActivateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForCreatingOrderActivate", "", "") + return +} + +// CreateSaveSingleTaskForCreatingOrderActivateResponse creates a response to parse from SaveSingleTaskForCreatingOrderActivate response +func CreateSaveSingleTaskForCreatingOrderActivateResponse() (response *SaveSingleTaskForCreatingOrderActivateResponse) { + response = &SaveSingleTaskForCreatingOrderActivateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_creating_order_redeem.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_creating_order_redeem.go new file mode 100644 index 0000000..c18493a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_creating_order_redeem.go @@ -0,0 +1,107 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCreatingOrderRedeem invokes the domain.SaveSingleTaskForCreatingOrderRedeem API synchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforcreatingorderredeem.html +func (client *Client) SaveSingleTaskForCreatingOrderRedeem(request *SaveSingleTaskForCreatingOrderRedeemRequest) (response *SaveSingleTaskForCreatingOrderRedeemResponse, err error) { + response = CreateSaveSingleTaskForCreatingOrderRedeemResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCreatingOrderRedeemWithChan invokes the domain.SaveSingleTaskForCreatingOrderRedeem API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforcreatingorderredeem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderRedeemWithChan(request *SaveSingleTaskForCreatingOrderRedeemRequest) (<-chan *SaveSingleTaskForCreatingOrderRedeemResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCreatingOrderRedeemResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCreatingOrderRedeem(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCreatingOrderRedeemWithCallback invokes the domain.SaveSingleTaskForCreatingOrderRedeem API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforcreatingorderredeem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderRedeemWithCallback(request *SaveSingleTaskForCreatingOrderRedeemRequest, callback func(response *SaveSingleTaskForCreatingOrderRedeemResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCreatingOrderRedeemResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCreatingOrderRedeem(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCreatingOrderRedeemRequest is the request struct for api SaveSingleTaskForCreatingOrderRedeem +type SaveSingleTaskForCreatingOrderRedeemRequest struct { + *requests.RpcRequest + CurrentExpirationDate requests.Integer `position:"Query" name:"CurrentExpirationDate"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForCreatingOrderRedeemResponse is the response struct for api SaveSingleTaskForCreatingOrderRedeem +type SaveSingleTaskForCreatingOrderRedeemResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCreatingOrderRedeemRequest creates a request to invoke SaveSingleTaskForCreatingOrderRedeem API +func CreateSaveSingleTaskForCreatingOrderRedeemRequest() (request *SaveSingleTaskForCreatingOrderRedeemRequest) { + request = &SaveSingleTaskForCreatingOrderRedeemRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForCreatingOrderRedeem", "", "") + return +} + +// CreateSaveSingleTaskForCreatingOrderRedeemResponse creates a response to parse from SaveSingleTaskForCreatingOrderRedeem response +func CreateSaveSingleTaskForCreatingOrderRedeemResponse() (response *SaveSingleTaskForCreatingOrderRedeemResponse) { + response = &SaveSingleTaskForCreatingOrderRedeemResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_creating_order_renew.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_creating_order_renew.go new file mode 100644 index 0000000..a35d298 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_creating_order_renew.go @@ -0,0 +1,108 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCreatingOrderRenew invokes the domain.SaveSingleTaskForCreatingOrderRenew API synchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforcreatingorderrenew.html +func (client *Client) SaveSingleTaskForCreatingOrderRenew(request *SaveSingleTaskForCreatingOrderRenewRequest) (response *SaveSingleTaskForCreatingOrderRenewResponse, err error) { + response = CreateSaveSingleTaskForCreatingOrderRenewResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCreatingOrderRenewWithChan invokes the domain.SaveSingleTaskForCreatingOrderRenew API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforcreatingorderrenew.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderRenewWithChan(request *SaveSingleTaskForCreatingOrderRenewRequest) (<-chan *SaveSingleTaskForCreatingOrderRenewResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCreatingOrderRenewResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCreatingOrderRenew(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCreatingOrderRenewWithCallback invokes the domain.SaveSingleTaskForCreatingOrderRenew API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforcreatingorderrenew.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderRenewWithCallback(request *SaveSingleTaskForCreatingOrderRenewRequest, callback func(response *SaveSingleTaskForCreatingOrderRenewResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCreatingOrderRenewResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCreatingOrderRenew(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCreatingOrderRenewRequest is the request struct for api SaveSingleTaskForCreatingOrderRenew +type SaveSingleTaskForCreatingOrderRenewRequest struct { + *requests.RpcRequest + SubscriptionDuration requests.Integer `position:"Query" name:"SubscriptionDuration"` + CurrentExpirationDate requests.Integer `position:"Query" name:"CurrentExpirationDate"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForCreatingOrderRenewResponse is the response struct for api SaveSingleTaskForCreatingOrderRenew +type SaveSingleTaskForCreatingOrderRenewResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCreatingOrderRenewRequest creates a request to invoke SaveSingleTaskForCreatingOrderRenew API +func CreateSaveSingleTaskForCreatingOrderRenewRequest() (request *SaveSingleTaskForCreatingOrderRenewRequest) { + request = &SaveSingleTaskForCreatingOrderRenewRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForCreatingOrderRenew", "", "") + return +} + +// CreateSaveSingleTaskForCreatingOrderRenewResponse creates a response to parse from SaveSingleTaskForCreatingOrderRenew response +func CreateSaveSingleTaskForCreatingOrderRenewResponse() (response *SaveSingleTaskForCreatingOrderRenewResponse) { + response = &SaveSingleTaskForCreatingOrderRenewResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_creating_order_transfer.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_creating_order_transfer.go new file mode 100644 index 0000000..377e5d8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_creating_order_transfer.go @@ -0,0 +1,109 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCreatingOrderTransfer invokes the domain.SaveSingleTaskForCreatingOrderTransfer API synchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforcreatingordertransfer.html +func (client *Client) SaveSingleTaskForCreatingOrderTransfer(request *SaveSingleTaskForCreatingOrderTransferRequest) (response *SaveSingleTaskForCreatingOrderTransferResponse, err error) { + response = CreateSaveSingleTaskForCreatingOrderTransferResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCreatingOrderTransferWithChan invokes the domain.SaveSingleTaskForCreatingOrderTransfer API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforcreatingordertransfer.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderTransferWithChan(request *SaveSingleTaskForCreatingOrderTransferRequest) (<-chan *SaveSingleTaskForCreatingOrderTransferResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCreatingOrderTransferResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCreatingOrderTransfer(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCreatingOrderTransferWithCallback invokes the domain.SaveSingleTaskForCreatingOrderTransfer API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforcreatingordertransfer.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderTransferWithCallback(request *SaveSingleTaskForCreatingOrderTransferRequest, callback func(response *SaveSingleTaskForCreatingOrderTransferResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCreatingOrderTransferResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCreatingOrderTransfer(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCreatingOrderTransferRequest is the request struct for api SaveSingleTaskForCreatingOrderTransfer +type SaveSingleTaskForCreatingOrderTransferRequest struct { + *requests.RpcRequest + PermitPremiumTransfer requests.Boolean `position:"Query" name:"PermitPremiumTransfer"` + AuthorizationCode string `position:"Query" name:"AuthorizationCode"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForCreatingOrderTransferResponse is the response struct for api SaveSingleTaskForCreatingOrderTransfer +type SaveSingleTaskForCreatingOrderTransferResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCreatingOrderTransferRequest creates a request to invoke SaveSingleTaskForCreatingOrderTransfer API +func CreateSaveSingleTaskForCreatingOrderTransferRequest() (request *SaveSingleTaskForCreatingOrderTransferRequest) { + request = &SaveSingleTaskForCreatingOrderTransferRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForCreatingOrderTransfer", "", "") + return +} + +// CreateSaveSingleTaskForCreatingOrderTransferResponse creates a response to parse from SaveSingleTaskForCreatingOrderTransfer response +func CreateSaveSingleTaskForCreatingOrderTransferResponse() (response *SaveSingleTaskForCreatingOrderTransferResponse) { + response = &SaveSingleTaskForCreatingOrderTransferResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_deleting_dns_host.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_deleting_dns_host.go new file mode 100644 index 0000000..e26cfc4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_deleting_dns_host.go @@ -0,0 +1,106 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForDeletingDnsHost invokes the domain.SaveSingleTaskForDeletingDnsHost API synchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskfordeletingdnshost.html +func (client *Client) SaveSingleTaskForDeletingDnsHost(request *SaveSingleTaskForDeletingDnsHostRequest) (response *SaveSingleTaskForDeletingDnsHostResponse, err error) { + response = CreateSaveSingleTaskForDeletingDnsHostResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForDeletingDnsHostWithChan invokes the domain.SaveSingleTaskForDeletingDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskfordeletingdnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForDeletingDnsHostWithChan(request *SaveSingleTaskForDeletingDnsHostRequest) (<-chan *SaveSingleTaskForDeletingDnsHostResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForDeletingDnsHostResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForDeletingDnsHost(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForDeletingDnsHostWithCallback invokes the domain.SaveSingleTaskForDeletingDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskfordeletingdnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForDeletingDnsHostWithCallback(request *SaveSingleTaskForDeletingDnsHostRequest, callback func(response *SaveSingleTaskForDeletingDnsHostResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForDeletingDnsHostResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForDeletingDnsHost(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForDeletingDnsHostRequest is the request struct for api SaveSingleTaskForDeletingDnsHost +type SaveSingleTaskForDeletingDnsHostRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + DnsName string `position:"Query" name:"DnsName"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForDeletingDnsHostResponse is the response struct for api SaveSingleTaskForDeletingDnsHost +type SaveSingleTaskForDeletingDnsHostResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForDeletingDnsHostRequest creates a request to invoke SaveSingleTaskForDeletingDnsHost API +func CreateSaveSingleTaskForDeletingDnsHostRequest() (request *SaveSingleTaskForDeletingDnsHostRequest) { + request = &SaveSingleTaskForDeletingDnsHostRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForDeletingDnsHost", "", "") + return +} + +// CreateSaveSingleTaskForDeletingDnsHostResponse creates a response to parse from SaveSingleTaskForDeletingDnsHost response +func CreateSaveSingleTaskForDeletingDnsHostResponse() (response *SaveSingleTaskForDeletingDnsHostResponse) { + response = &SaveSingleTaskForDeletingDnsHostResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_domain_name_proxy_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_domain_name_proxy_service.go new file mode 100644 index 0000000..68e6897 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_domain_name_proxy_service.go @@ -0,0 +1,107 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForDomainNameProxyService invokes the domain.SaveSingleTaskForDomainNameProxyService API synchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskfordomainnameproxyservice.html +func (client *Client) SaveSingleTaskForDomainNameProxyService(request *SaveSingleTaskForDomainNameProxyServiceRequest) (response *SaveSingleTaskForDomainNameProxyServiceResponse, err error) { + response = CreateSaveSingleTaskForDomainNameProxyServiceResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForDomainNameProxyServiceWithChan invokes the domain.SaveSingleTaskForDomainNameProxyService API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskfordomainnameproxyservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForDomainNameProxyServiceWithChan(request *SaveSingleTaskForDomainNameProxyServiceRequest) (<-chan *SaveSingleTaskForDomainNameProxyServiceResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForDomainNameProxyServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForDomainNameProxyService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForDomainNameProxyServiceWithCallback invokes the domain.SaveSingleTaskForDomainNameProxyService API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskfordomainnameproxyservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForDomainNameProxyServiceWithCallback(request *SaveSingleTaskForDomainNameProxyServiceRequest, callback func(response *SaveSingleTaskForDomainNameProxyServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForDomainNameProxyServiceResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForDomainNameProxyService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForDomainNameProxyServiceRequest is the request struct for api SaveSingleTaskForDomainNameProxyService +type SaveSingleTaskForDomainNameProxyServiceRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + Lang string `position:"Query" name:"Lang"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveSingleTaskForDomainNameProxyServiceResponse is the response struct for api SaveSingleTaskForDomainNameProxyService +type SaveSingleTaskForDomainNameProxyServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForDomainNameProxyServiceRequest creates a request to invoke SaveSingleTaskForDomainNameProxyService API +func CreateSaveSingleTaskForDomainNameProxyServiceRequest() (request *SaveSingleTaskForDomainNameProxyServiceRequest) { + request = &SaveSingleTaskForDomainNameProxyServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForDomainNameProxyService", "", "") + return +} + +// CreateSaveSingleTaskForDomainNameProxyServiceResponse creates a response to parse from SaveSingleTaskForDomainNameProxyService response +func CreateSaveSingleTaskForDomainNameProxyServiceResponse() (response *SaveSingleTaskForDomainNameProxyServiceResponse) { + response = &SaveSingleTaskForDomainNameProxyServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_modifying_dns_host.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_modifying_dns_host.go new file mode 100644 index 0000000..2de64e0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_modifying_dns_host.go @@ -0,0 +1,107 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForModifyingDnsHost invokes the domain.SaveSingleTaskForModifyingDnsHost API synchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskformodifyingdnshost.html +func (client *Client) SaveSingleTaskForModifyingDnsHost(request *SaveSingleTaskForModifyingDnsHostRequest) (response *SaveSingleTaskForModifyingDnsHostResponse, err error) { + response = CreateSaveSingleTaskForModifyingDnsHostResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForModifyingDnsHostWithChan invokes the domain.SaveSingleTaskForModifyingDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskformodifyingdnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForModifyingDnsHostWithChan(request *SaveSingleTaskForModifyingDnsHostRequest) (<-chan *SaveSingleTaskForModifyingDnsHostResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForModifyingDnsHostResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForModifyingDnsHost(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForModifyingDnsHostWithCallback invokes the domain.SaveSingleTaskForModifyingDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskformodifyingdnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForModifyingDnsHostWithCallback(request *SaveSingleTaskForModifyingDnsHostRequest, callback func(response *SaveSingleTaskForModifyingDnsHostResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForModifyingDnsHostResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForModifyingDnsHost(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForModifyingDnsHostRequest is the request struct for api SaveSingleTaskForModifyingDnsHost +type SaveSingleTaskForModifyingDnsHostRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + Ip *[]string `position:"Query" name:"Ip" type:"Repeated"` + DnsName string `position:"Query" name:"DnsName"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForModifyingDnsHostResponse is the response struct for api SaveSingleTaskForModifyingDnsHost +type SaveSingleTaskForModifyingDnsHostResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForModifyingDnsHostRequest creates a request to invoke SaveSingleTaskForModifyingDnsHost API +func CreateSaveSingleTaskForModifyingDnsHostRequest() (request *SaveSingleTaskForModifyingDnsHostRequest) { + request = &SaveSingleTaskForModifyingDnsHostRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForModifyingDnsHost", "", "") + return +} + +// CreateSaveSingleTaskForModifyingDnsHostResponse creates a response to parse from SaveSingleTaskForModifyingDnsHost response +func CreateSaveSingleTaskForModifyingDnsHostResponse() (response *SaveSingleTaskForModifyingDnsHostResponse) { + response = &SaveSingleTaskForModifyingDnsHostResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_querying_transfer_authorization_code.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_querying_transfer_authorization_code.go new file mode 100644 index 0000000..e6f71f7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_querying_transfer_authorization_code.go @@ -0,0 +1,106 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForQueryingTransferAuthorizationCode invokes the domain.SaveSingleTaskForQueryingTransferAuthorizationCode API synchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforqueryingtransferauthorizationcode.html +func (client *Client) SaveSingleTaskForQueryingTransferAuthorizationCode(request *SaveSingleTaskForQueryingTransferAuthorizationCodeRequest) (response *SaveSingleTaskForQueryingTransferAuthorizationCodeResponse, err error) { + response = CreateSaveSingleTaskForQueryingTransferAuthorizationCodeResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForQueryingTransferAuthorizationCodeWithChan invokes the domain.SaveSingleTaskForQueryingTransferAuthorizationCode API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforqueryingtransferauthorizationcode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForQueryingTransferAuthorizationCodeWithChan(request *SaveSingleTaskForQueryingTransferAuthorizationCodeRequest) (<-chan *SaveSingleTaskForQueryingTransferAuthorizationCodeResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForQueryingTransferAuthorizationCodeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForQueryingTransferAuthorizationCode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForQueryingTransferAuthorizationCodeWithCallback invokes the domain.SaveSingleTaskForQueryingTransferAuthorizationCode API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforqueryingtransferauthorizationcode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForQueryingTransferAuthorizationCodeWithCallback(request *SaveSingleTaskForQueryingTransferAuthorizationCodeRequest, callback func(response *SaveSingleTaskForQueryingTransferAuthorizationCodeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForQueryingTransferAuthorizationCodeResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForQueryingTransferAuthorizationCode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForQueryingTransferAuthorizationCodeRequest is the request struct for api SaveSingleTaskForQueryingTransferAuthorizationCode +type SaveSingleTaskForQueryingTransferAuthorizationCodeRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForQueryingTransferAuthorizationCodeResponse is the response struct for api SaveSingleTaskForQueryingTransferAuthorizationCode +type SaveSingleTaskForQueryingTransferAuthorizationCodeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForQueryingTransferAuthorizationCodeRequest creates a request to invoke SaveSingleTaskForQueryingTransferAuthorizationCode API +func CreateSaveSingleTaskForQueryingTransferAuthorizationCodeRequest() (request *SaveSingleTaskForQueryingTransferAuthorizationCodeRequest) { + request = &SaveSingleTaskForQueryingTransferAuthorizationCodeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForQueryingTransferAuthorizationCode", "", "") + return +} + +// CreateSaveSingleTaskForQueryingTransferAuthorizationCodeResponse creates a response to parse from SaveSingleTaskForQueryingTransferAuthorizationCode response +func CreateSaveSingleTaskForQueryingTransferAuthorizationCodeResponse() (response *SaveSingleTaskForQueryingTransferAuthorizationCodeResponse) { + response = &SaveSingleTaskForQueryingTransferAuthorizationCodeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_synchronizing_dns_host.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_synchronizing_dns_host.go new file mode 100644 index 0000000..16cec76 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_synchronizing_dns_host.go @@ -0,0 +1,105 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForSynchronizingDnsHost invokes the domain.SaveSingleTaskForSynchronizingDnsHost API synchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforsynchronizingdnshost.html +func (client *Client) SaveSingleTaskForSynchronizingDnsHost(request *SaveSingleTaskForSynchronizingDnsHostRequest) (response *SaveSingleTaskForSynchronizingDnsHostResponse, err error) { + response = CreateSaveSingleTaskForSynchronizingDnsHostResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForSynchronizingDnsHostWithChan invokes the domain.SaveSingleTaskForSynchronizingDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforsynchronizingdnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForSynchronizingDnsHostWithChan(request *SaveSingleTaskForSynchronizingDnsHostRequest) (<-chan *SaveSingleTaskForSynchronizingDnsHostResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForSynchronizingDnsHostResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForSynchronizingDnsHost(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForSynchronizingDnsHostWithCallback invokes the domain.SaveSingleTaskForSynchronizingDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforsynchronizingdnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForSynchronizingDnsHostWithCallback(request *SaveSingleTaskForSynchronizingDnsHostRequest, callback func(response *SaveSingleTaskForSynchronizingDnsHostResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForSynchronizingDnsHostResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForSynchronizingDnsHost(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForSynchronizingDnsHostRequest is the request struct for api SaveSingleTaskForSynchronizingDnsHost +type SaveSingleTaskForSynchronizingDnsHostRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForSynchronizingDnsHostResponse is the response struct for api SaveSingleTaskForSynchronizingDnsHost +type SaveSingleTaskForSynchronizingDnsHostResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForSynchronizingDnsHostRequest creates a request to invoke SaveSingleTaskForSynchronizingDnsHost API +func CreateSaveSingleTaskForSynchronizingDnsHostRequest() (request *SaveSingleTaskForSynchronizingDnsHostRequest) { + request = &SaveSingleTaskForSynchronizingDnsHostRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForSynchronizingDnsHost", "", "") + return +} + +// CreateSaveSingleTaskForSynchronizingDnsHostResponse creates a response to parse from SaveSingleTaskForSynchronizingDnsHost response +func CreateSaveSingleTaskForSynchronizingDnsHostResponse() (response *SaveSingleTaskForSynchronizingDnsHostResponse) { + response = &SaveSingleTaskForSynchronizingDnsHostResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_transfer_prohibition_lock.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_transfer_prohibition_lock.go new file mode 100644 index 0000000..cfdb018 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_transfer_prohibition_lock.go @@ -0,0 +1,107 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForTransferProhibitionLock invokes the domain.SaveSingleTaskForTransferProhibitionLock API synchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskfortransferprohibitionlock.html +func (client *Client) SaveSingleTaskForTransferProhibitionLock(request *SaveSingleTaskForTransferProhibitionLockRequest) (response *SaveSingleTaskForTransferProhibitionLockResponse, err error) { + response = CreateSaveSingleTaskForTransferProhibitionLockResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForTransferProhibitionLockWithChan invokes the domain.SaveSingleTaskForTransferProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskfortransferprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForTransferProhibitionLockWithChan(request *SaveSingleTaskForTransferProhibitionLockRequest) (<-chan *SaveSingleTaskForTransferProhibitionLockResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForTransferProhibitionLockResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForTransferProhibitionLock(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForTransferProhibitionLockWithCallback invokes the domain.SaveSingleTaskForTransferProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskfortransferprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForTransferProhibitionLockWithCallback(request *SaveSingleTaskForTransferProhibitionLockRequest, callback func(response *SaveSingleTaskForTransferProhibitionLockResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForTransferProhibitionLockResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForTransferProhibitionLock(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForTransferProhibitionLockRequest is the request struct for api SaveSingleTaskForTransferProhibitionLock +type SaveSingleTaskForTransferProhibitionLockRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + Lang string `position:"Query" name:"Lang"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveSingleTaskForTransferProhibitionLockResponse is the response struct for api SaveSingleTaskForTransferProhibitionLock +type SaveSingleTaskForTransferProhibitionLockResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForTransferProhibitionLockRequest creates a request to invoke SaveSingleTaskForTransferProhibitionLock API +func CreateSaveSingleTaskForTransferProhibitionLockRequest() (request *SaveSingleTaskForTransferProhibitionLockRequest) { + request = &SaveSingleTaskForTransferProhibitionLockRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForTransferProhibitionLock", "", "") + return +} + +// CreateSaveSingleTaskForTransferProhibitionLockResponse creates a response to parse from SaveSingleTaskForTransferProhibitionLock response +func CreateSaveSingleTaskForTransferProhibitionLockResponse() (response *SaveSingleTaskForTransferProhibitionLockResponse) { + response = &SaveSingleTaskForTransferProhibitionLockResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_update_prohibition_lock.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_update_prohibition_lock.go new file mode 100644 index 0000000..23ac6d5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_update_prohibition_lock.go @@ -0,0 +1,107 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForUpdateProhibitionLock invokes the domain.SaveSingleTaskForUpdateProhibitionLock API synchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforupdateprohibitionlock.html +func (client *Client) SaveSingleTaskForUpdateProhibitionLock(request *SaveSingleTaskForUpdateProhibitionLockRequest) (response *SaveSingleTaskForUpdateProhibitionLockResponse, err error) { + response = CreateSaveSingleTaskForUpdateProhibitionLockResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForUpdateProhibitionLockWithChan invokes the domain.SaveSingleTaskForUpdateProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforupdateprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForUpdateProhibitionLockWithChan(request *SaveSingleTaskForUpdateProhibitionLockRequest) (<-chan *SaveSingleTaskForUpdateProhibitionLockResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForUpdateProhibitionLockResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForUpdateProhibitionLock(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForUpdateProhibitionLockWithCallback invokes the domain.SaveSingleTaskForUpdateProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforupdateprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForUpdateProhibitionLockWithCallback(request *SaveSingleTaskForUpdateProhibitionLockRequest, callback func(response *SaveSingleTaskForUpdateProhibitionLockResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForUpdateProhibitionLockResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForUpdateProhibitionLock(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForUpdateProhibitionLockRequest is the request struct for api SaveSingleTaskForUpdateProhibitionLock +type SaveSingleTaskForUpdateProhibitionLockRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + Lang string `position:"Query" name:"Lang"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveSingleTaskForUpdateProhibitionLockResponse is the response struct for api SaveSingleTaskForUpdateProhibitionLock +type SaveSingleTaskForUpdateProhibitionLockResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForUpdateProhibitionLockRequest creates a request to invoke SaveSingleTaskForUpdateProhibitionLock API +func CreateSaveSingleTaskForUpdateProhibitionLockRequest() (request *SaveSingleTaskForUpdateProhibitionLockRequest) { + request = &SaveSingleTaskForUpdateProhibitionLockRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForUpdateProhibitionLock", "", "") + return +} + +// CreateSaveSingleTaskForUpdateProhibitionLockResponse creates a response to parse from SaveSingleTaskForUpdateProhibitionLock response +func CreateSaveSingleTaskForUpdateProhibitionLockResponse() (response *SaveSingleTaskForUpdateProhibitionLockResponse) { + response = &SaveSingleTaskForUpdateProhibitionLockResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_updating_contact_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_updating_contact_info.go new file mode 100644 index 0000000..a48ac7e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_single_task_for_updating_contact_info.go @@ -0,0 +1,110 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForUpdatingContactInfo invokes the domain.SaveSingleTaskForUpdatingContactInfo API synchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforupdatingcontactinfo.html +func (client *Client) SaveSingleTaskForUpdatingContactInfo(request *SaveSingleTaskForUpdatingContactInfoRequest) (response *SaveSingleTaskForUpdatingContactInfoResponse, err error) { + response = CreateSaveSingleTaskForUpdatingContactInfoResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForUpdatingContactInfoWithChan invokes the domain.SaveSingleTaskForUpdatingContactInfo API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforupdatingcontactinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForUpdatingContactInfoWithChan(request *SaveSingleTaskForUpdatingContactInfoRequest) (<-chan *SaveSingleTaskForUpdatingContactInfoResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForUpdatingContactInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForUpdatingContactInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForUpdatingContactInfoWithCallback invokes the domain.SaveSingleTaskForUpdatingContactInfo API asynchronously +// api document: https://help.aliyun.com/api/domain/savesingletaskforupdatingcontactinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForUpdatingContactInfoWithCallback(request *SaveSingleTaskForUpdatingContactInfoRequest, callback func(response *SaveSingleTaskForUpdatingContactInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForUpdatingContactInfoResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForUpdatingContactInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForUpdatingContactInfoRequest is the request struct for api SaveSingleTaskForUpdatingContactInfo +type SaveSingleTaskForUpdatingContactInfoRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + ContactType string `position:"Query" name:"ContactType"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + AddTransferLock requests.Boolean `position:"Query" name:"AddTransferLock"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForUpdatingContactInfoResponse is the response struct for api SaveSingleTaskForUpdatingContactInfo +type SaveSingleTaskForUpdatingContactInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForUpdatingContactInfoRequest creates a request to invoke SaveSingleTaskForUpdatingContactInfo API +func CreateSaveSingleTaskForUpdatingContactInfoRequest() (request *SaveSingleTaskForUpdatingContactInfoRequest) { + request = &SaveSingleTaskForUpdatingContactInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForUpdatingContactInfo", "", "") + return +} + +// CreateSaveSingleTaskForUpdatingContactInfoResponse creates a response to parse from SaveSingleTaskForUpdatingContactInfo response +func CreateSaveSingleTaskForUpdatingContactInfoResponse() (response *SaveSingleTaskForUpdatingContactInfoResponse) { + response = &SaveSingleTaskForUpdatingContactInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_task_for_submitting_domain_delete.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_task_for_submitting_domain_delete.go new file mode 100644 index 0000000..6e176d3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_task_for_submitting_domain_delete.go @@ -0,0 +1,106 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveTaskForSubmittingDomainDelete invokes the domain.SaveTaskForSubmittingDomainDelete API synchronously +// api document: https://help.aliyun.com/api/domain/savetaskforsubmittingdomaindelete.html +func (client *Client) SaveTaskForSubmittingDomainDelete(request *SaveTaskForSubmittingDomainDeleteRequest) (response *SaveTaskForSubmittingDomainDeleteResponse, err error) { + response = CreateSaveTaskForSubmittingDomainDeleteResponse() + err = client.DoAction(request, response) + return +} + +// SaveTaskForSubmittingDomainDeleteWithChan invokes the domain.SaveTaskForSubmittingDomainDelete API asynchronously +// api document: https://help.aliyun.com/api/domain/savetaskforsubmittingdomaindelete.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveTaskForSubmittingDomainDeleteWithChan(request *SaveTaskForSubmittingDomainDeleteRequest) (<-chan *SaveTaskForSubmittingDomainDeleteResponse, <-chan error) { + responseChan := make(chan *SaveTaskForSubmittingDomainDeleteResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveTaskForSubmittingDomainDelete(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveTaskForSubmittingDomainDeleteWithCallback invokes the domain.SaveTaskForSubmittingDomainDelete API asynchronously +// api document: https://help.aliyun.com/api/domain/savetaskforsubmittingdomaindelete.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveTaskForSubmittingDomainDeleteWithCallback(request *SaveTaskForSubmittingDomainDeleteRequest, callback func(response *SaveTaskForSubmittingDomainDeleteResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveTaskForSubmittingDomainDeleteResponse + var err error + defer close(result) + response, err = client.SaveTaskForSubmittingDomainDelete(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveTaskForSubmittingDomainDeleteRequest is the request struct for api SaveTaskForSubmittingDomainDelete +type SaveTaskForSubmittingDomainDeleteRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveTaskForSubmittingDomainDeleteResponse is the response struct for api SaveTaskForSubmittingDomainDelete +type SaveTaskForSubmittingDomainDeleteResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveTaskForSubmittingDomainDeleteRequest creates a request to invoke SaveTaskForSubmittingDomainDelete API +func CreateSaveTaskForSubmittingDomainDeleteRequest() (request *SaveTaskForSubmittingDomainDeleteRequest) { + request = &SaveTaskForSubmittingDomainDeleteRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveTaskForSubmittingDomainDelete", "", "") + return +} + +// CreateSaveTaskForSubmittingDomainDeleteResponse creates a response to parse from SaveTaskForSubmittingDomainDelete response +func CreateSaveTaskForSubmittingDomainDeleteResponse() (response *SaveTaskForSubmittingDomainDeleteResponse) { + response = &SaveTaskForSubmittingDomainDeleteResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_task_for_submitting_domain_real_name_verification_by_identity_credential.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_task_for_submitting_domain_real_name_verification_by_identity_credential.go new file mode 100644 index 0000000..5b3332c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_task_for_submitting_domain_real_name_verification_by_identity_credential.go @@ -0,0 +1,109 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential invokes the domain.SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential API synchronously +// api document: https://help.aliyun.com/api/domain/savetaskforsubmittingdomainrealnameverificationbyidentitycredential.html +func (client *Client) SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential(request *SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest) (response *SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse, err error) { + response = CreateSaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse() + err = client.DoAction(request, response) + return +} + +// SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialWithChan invokes the domain.SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential API asynchronously +// api document: https://help.aliyun.com/api/domain/savetaskforsubmittingdomainrealnameverificationbyidentitycredential.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialWithChan(request *SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest) (<-chan *SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse, <-chan error) { + responseChan := make(chan *SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialWithCallback invokes the domain.SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential API asynchronously +// api document: https://help.aliyun.com/api/domain/savetaskforsubmittingdomainrealnameverificationbyidentitycredential.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialWithCallback(request *SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest, callback func(response *SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse + var err error + defer close(result) + response, err = client.SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest is the request struct for api SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential +type SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest struct { + *requests.RpcRequest + IdentityCredentialType string `position:"Query" name:"IdentityCredentialType"` + UserClientIp string `position:"Query" name:"UserClientIp"` + IdentityCredential string `position:"Body" name:"IdentityCredential"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + Lang string `position:"Query" name:"Lang"` + IdentityCredentialNo string `position:"Query" name:"IdentityCredentialNo"` +} + +// SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse is the response struct for api SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential +type SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest creates a request to invoke SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential API +func CreateSaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest() (request *SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest) { + request = &SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential", "", "") + return +} + +// CreateSaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse creates a response to parse from SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential response +func CreateSaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse() (response *SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse) { + response = &SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_task_for_submitting_domain_real_name_verification_by_registrant_profile_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_task_for_submitting_domain_real_name_verification_by_registrant_profile_id.go new file mode 100644 index 0000000..b07458f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_task_for_submitting_domain_real_name_verification_by_registrant_profile_id.go @@ -0,0 +1,108 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID invokes the domain.SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID API synchronously +// api document: https://help.aliyun.com/api/domain/savetaskforsubmittingdomainrealnameverificationbyregistrantprofileid.html +func (client *Client) SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID(request *SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest) (response *SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse, err error) { + response = CreateSaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse() + err = client.DoAction(request, response) + return +} + +// SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDWithChan invokes the domain.SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID API asynchronously +// api document: https://help.aliyun.com/api/domain/savetaskforsubmittingdomainrealnameverificationbyregistrantprofileid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDWithChan(request *SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest) (<-chan *SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse, <-chan error) { + responseChan := make(chan *SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDWithCallback invokes the domain.SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID API asynchronously +// api document: https://help.aliyun.com/api/domain/savetaskforsubmittingdomainrealnameverificationbyregistrantprofileid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDWithCallback(request *SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest, callback func(response *SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse + var err error + defer close(result) + response, err = client.SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest is the request struct for api SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID +type SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainName string `position:"Query" name:"DomainName"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse is the response struct for api SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID +type SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest creates a request to invoke SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID API +func CreateSaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest() (request *SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest) { + request = &SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID", "", "") + return +} + +// CreateSaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse creates a response to parse from SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID response +func CreateSaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse() (response *SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse) { + response = &SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_task_for_updating_registrant_info_by_identity_credential.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_task_for_updating_registrant_info_by_identity_credential.go new file mode 100644 index 0000000..7f247d2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_task_for_updating_registrant_info_by_identity_credential.go @@ -0,0 +1,127 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveTaskForUpdatingRegistrantInfoByIdentityCredential invokes the domain.SaveTaskForUpdatingRegistrantInfoByIdentityCredential API synchronously +// api document: https://help.aliyun.com/api/domain/savetaskforupdatingregistrantinfobyidentitycredential.html +func (client *Client) SaveTaskForUpdatingRegistrantInfoByIdentityCredential(request *SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest) (response *SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse, err error) { + response = CreateSaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse() + err = client.DoAction(request, response) + return +} + +// SaveTaskForUpdatingRegistrantInfoByIdentityCredentialWithChan invokes the domain.SaveTaskForUpdatingRegistrantInfoByIdentityCredential API asynchronously +// api document: https://help.aliyun.com/api/domain/savetaskforupdatingregistrantinfobyidentitycredential.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveTaskForUpdatingRegistrantInfoByIdentityCredentialWithChan(request *SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest) (<-chan *SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse, <-chan error) { + responseChan := make(chan *SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveTaskForUpdatingRegistrantInfoByIdentityCredential(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveTaskForUpdatingRegistrantInfoByIdentityCredentialWithCallback invokes the domain.SaveTaskForUpdatingRegistrantInfoByIdentityCredential API asynchronously +// api document: https://help.aliyun.com/api/domain/savetaskforupdatingregistrantinfobyidentitycredential.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveTaskForUpdatingRegistrantInfoByIdentityCredentialWithCallback(request *SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest, callback func(response *SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse + var err error + defer close(result) + response, err = client.SaveTaskForUpdatingRegistrantInfoByIdentityCredential(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest is the request struct for api SaveTaskForUpdatingRegistrantInfoByIdentityCredential +type SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest struct { + *requests.RpcRequest + Country string `position:"Query" name:"Country"` + IdentityCredentialType string `position:"Query" name:"IdentityCredentialType"` + Address string `position:"Query" name:"Address"` + TelArea string `position:"Query" name:"TelArea"` + City string `position:"Query" name:"City"` + ZhAddress string `position:"Query" name:"ZhAddress"` + RegistrantType string `position:"Query" name:"RegistrantType"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + IdentityCredential string `position:"Body" name:"IdentityCredential"` + Telephone string `position:"Query" name:"Telephone"` + TransferOutProhibited requests.Boolean `position:"Query" name:"TransferOutProhibited"` + ZhCity string `position:"Query" name:"ZhCity"` + ZhProvince string `position:"Query" name:"ZhProvince"` + RegistrantOrganization string `position:"Query" name:"RegistrantOrganization"` + TelExt string `position:"Query" name:"TelExt"` + Province string `position:"Query" name:"Province"` + ZhRegistrantName string `position:"Query" name:"ZhRegistrantName"` + PostalCode string `position:"Query" name:"PostalCode"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + IdentityCredentialNo string `position:"Query" name:"IdentityCredentialNo"` + Email string `position:"Query" name:"Email"` + RegistrantName string `position:"Query" name:"RegistrantName"` + ZhRegistrantOrganization string `position:"Query" name:"ZhRegistrantOrganization"` +} + +// SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse is the response struct for api SaveTaskForUpdatingRegistrantInfoByIdentityCredential +type SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest creates a request to invoke SaveTaskForUpdatingRegistrantInfoByIdentityCredential API +func CreateSaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest() (request *SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest) { + request = &SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveTaskForUpdatingRegistrantInfoByIdentityCredential", "", "") + return +} + +// CreateSaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse creates a response to parse from SaveTaskForUpdatingRegistrantInfoByIdentityCredential response +func CreateSaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse() (response *SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse) { + response = &SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_task_for_updating_registrant_info_by_registrant_profile_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_task_for_updating_registrant_info_by_registrant_profile_id.go new file mode 100644 index 0000000..aeed02f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/save_task_for_updating_registrant_info_by_registrant_profile_id.go @@ -0,0 +1,108 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID invokes the domain.SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID API synchronously +// api document: https://help.aliyun.com/api/domain/savetaskforupdatingregistrantinfobyregistrantprofileid.html +func (client *Client) SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID(request *SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest) (response *SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse, err error) { + response = CreateSaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse() + err = client.DoAction(request, response) + return +} + +// SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDWithChan invokes the domain.SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID API asynchronously +// api document: https://help.aliyun.com/api/domain/savetaskforupdatingregistrantinfobyregistrantprofileid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDWithChan(request *SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest) (<-chan *SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse, <-chan error) { + responseChan := make(chan *SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDWithCallback invokes the domain.SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID API asynchronously +// api document: https://help.aliyun.com/api/domain/savetaskforupdatingregistrantinfobyregistrantprofileid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDWithCallback(request *SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest, callback func(response *SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse + var err error + defer close(result) + response, err = client.SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest is the request struct for api SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID +type SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + TransferOutProhibited requests.Boolean `position:"Query" name:"TransferOutProhibited"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse is the response struct for api SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID +type SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest creates a request to invoke SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID API +func CreateSaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest() (request *SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest) { + request = &SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID", "", "") + return +} + +// CreateSaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse creates a response to parse from SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID response +func CreateSaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse() (response *SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse) { + response = &SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_auction_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_auction_detail.go new file mode 100644 index 0000000..2c03dd7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_auction_detail.go @@ -0,0 +1,42 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AuctionDetail is a nested struct in domain response +type AuctionDetail struct { + DomainName string `json:"DomainName" xml:"DomainName"` + AuctionId string `json:"AuctionId" xml:"AuctionId"` + DomainType string `json:"DomainType" xml:"DomainType"` + BookedPartner string `json:"BookedPartner" xml:"BookedPartner"` + PartnerType string `json:"PartnerType" xml:"PartnerType"` + Currency string `json:"Currency" xml:"Currency"` + YourCurrentBid float64 `json:"YourCurrentBid" xml:"YourCurrentBid"` + YourMaxBid float64 `json:"YourMaxBid" xml:"YourMaxBid"` + HighBid float64 `json:"HighBid" xml:"HighBid"` + NextValidBid float64 `json:"NextValidBid" xml:"NextValidBid"` + ReserveMet bool `json:"ReserveMet" xml:"ReserveMet"` + TransferInPrice float64 `json:"TransferInPrice" xml:"TransferInPrice"` + PayPrice float64 `json:"PayPrice" xml:"PayPrice"` + HighBidder string `json:"HighBidder" xml:"HighBidder"` + Status string `json:"Status" xml:"Status"` + PayStatus string `json:"PayStatus" xml:"PayStatus"` + ProduceStatus string `json:"ProduceStatus" xml:"ProduceStatus"` + AuctionEndTime int `json:"AuctionEndTime" xml:"AuctionEndTime"` + BookEndTime int `json:"BookEndTime" xml:"BookEndTime"` + PayEndTime int `json:"PayEndTime" xml:"PayEndTime"` + DeliveryTime int `json:"DeliveryTime" xml:"DeliveryTime"` + FailCode string `json:"FailCode" xml:"FailCode"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_bid_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_bid_record.go new file mode 100644 index 0000000..be67e1f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_bid_record.go @@ -0,0 +1,25 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BidRecord is a nested struct in domain response +type BidRecord struct { + DomainName string `json:"DomainName" xml:"DomainName"` + Currency string `json:"Currency" xml:"Currency"` + Bid float64 `json:"Bid" xml:"Bid"` + BidTime int `json:"BidTime" xml:"BidTime"` + Bidder string `json:"Bidder" xml:"Bidder"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_broker_demand_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_broker_demand_record.go new file mode 100644 index 0000000..af3c500 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_broker_demand_record.go @@ -0,0 +1,23 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BrokerDemandRecord is a nested struct in domain response +type BrokerDemandRecord struct { + BizId string `json:"BizId" xml:"BizId"` + Description string `json:"Description" xml:"Description"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_change_log.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_change_log.go new file mode 100644 index 0000000..8111b0d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_change_log.go @@ -0,0 +1,26 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ChangeLog is a nested struct in domain response +type ChangeLog struct { + DomainName string `json:"DomainName" xml:"DomainName"` + Result string `json:"Result" xml:"Result"` + Operation string `json:"Operation" xml:"Operation"` + OperationIPAddress string `json:"OperationIPAddress" xml:"OperationIPAddress"` + Details string `json:"Details" xml:"Details"` + Time string `json:"Time" xml:"Time"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_current_page_cursor.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_current_page_cursor.go new file mode 100644 index 0000000..5f31e13 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_current_page_cursor.go @@ -0,0 +1,35 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CurrentPageCursor is a nested struct in domain response +type CurrentPageCursor struct { + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + TaskDetailNo string `json:"TaskDetailNo" xml:"TaskDetailNo"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + CreateTimeLong int `json:"CreateTimeLong" xml:"CreateTimeLong"` + TaskStatusCode int `json:"TaskStatusCode" xml:"TaskStatusCode"` + DomainName string `json:"DomainName" xml:"DomainName"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TaskTypeDescription string `json:"TaskTypeDescription" xml:"TaskTypeDescription"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + TaskNum int `json:"TaskNum" xml:"TaskNum"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Clientip string `json:"Clientip" xml:"Clientip"` + TryCount int `json:"TryCount" xml:"TryCount"` + TaskType string `json:"TaskType" xml:"TaskType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_list_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_list_email_verification.go new file mode 100644 index 0000000..e0610b6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_list_email_verification.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInListEmailVerification is a nested struct in domain response +type DataInListEmailVerification struct { + EmailVerification []EmailVerification `json:"EmailVerification" xml:"EmailVerification"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_poll_task_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_poll_task_result.go new file mode 100644 index 0000000..993b532 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_poll_task_result.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInPollTaskResult is a nested struct in domain response +type DataInPollTaskResult struct { + TaskDetail []TaskDetail `json:"TaskDetail" xml:"TaskDetail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_advanced_domain_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_advanced_domain_list.go new file mode 100644 index 0000000..a57c73b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_advanced_domain_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryAdvancedDomainList is a nested struct in domain response +type DataInQueryAdvancedDomainList struct { + Domain []Domain `json:"Domain" xml:"Domain"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_auctions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_auctions.go new file mode 100644 index 0000000..a43b276 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_auctions.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryAuctions is a nested struct in domain response +type DataInQueryAuctions struct { + AuctionDetail []AuctionDetail `json:"AuctionDetail" xml:"AuctionDetail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_bid_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_bid_records.go new file mode 100644 index 0000000..0d83c0b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_bid_records.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryBidRecords is a nested struct in domain response +type DataInQueryBidRecords struct { + BidRecord []BidRecord `json:"BidRecord" xml:"BidRecord"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_broker_demand.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_broker_demand.go new file mode 100644 index 0000000..3e5a390 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_broker_demand.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryBrokerDemand is a nested struct in domain response +type DataInQueryBrokerDemand struct { + Demand []Demand `json:"Demand" xml:"Demand"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_broker_demand_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_broker_demand_record.go new file mode 100644 index 0000000..767514b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_broker_demand_record.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryBrokerDemandRecord is a nested struct in domain response +type DataInQueryBrokerDemandRecord struct { + BrokerDemandRecord []BrokerDemandRecord `json:"BrokerDemandRecord" xml:"BrokerDemandRecord"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_change_log_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_change_log_list.go new file mode 100644 index 0000000..e2f7d91 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_change_log_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryChangeLogList is a nested struct in domain response +type DataInQueryChangeLogList struct { + ChangeLog []ChangeLog `json:"ChangeLog" xml:"ChangeLog"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_domain_group_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_domain_group_list.go new file mode 100644 index 0000000..3b5afe3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_domain_group_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryDomainGroupList is a nested struct in domain response +type DataInQueryDomainGroupList struct { + DomainGroup []DomainGroup `json:"DomainGroup" xml:"DomainGroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_domain_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_domain_list.go new file mode 100644 index 0000000..245c749 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_domain_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryDomainList is a nested struct in domain response +type DataInQueryDomainList struct { + Domain []Domain `json:"Domain" xml:"Domain"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_fail_reason_for_domain_real_name_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_fail_reason_for_domain_real_name_verification.go new file mode 100644 index 0000000..87be5e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_fail_reason_for_domain_real_name_verification.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryFailReasonForDomainRealNameVerification is a nested struct in domain response +type DataInQueryFailReasonForDomainRealNameVerification struct { + FailRecord []FailRecord `json:"FailRecord" xml:"FailRecord"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_fail_reason_for_registrant_profile_real_name_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_fail_reason_for_registrant_profile_real_name_verification.go new file mode 100644 index 0000000..f9e3279 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_fail_reason_for_registrant_profile_real_name_verification.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryFailReasonForRegistrantProfileRealNameVerification is a nested struct in domain response +type DataInQueryFailReasonForRegistrantProfileRealNameVerification struct { + FailRecord []FailRecord `json:"FailRecord" xml:"FailRecord"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_task_detail_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_task_detail_list.go new file mode 100644 index 0000000..ed5fd36 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_task_detail_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryTaskDetailList is a nested struct in domain response +type DataInQueryTaskDetailList struct { + TaskDetail []TaskDetail `json:"TaskDetail" xml:"TaskDetail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_task_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_task_list.go new file mode 100644 index 0000000..e2d549a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_task_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryTaskList is a nested struct in domain response +type DataInQueryTaskList struct { + TaskInfo []TaskInfo `json:"TaskInfo" xml:"TaskInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_transfer_in_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_transfer_in_list.go new file mode 100644 index 0000000..4414cb3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_data_in_query_transfer_in_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryTransferInList is a nested struct in domain response +type DataInQueryTransferInList struct { + TransferInInfo []TransferInInfo `json:"TransferInInfo" xml:"TransferInInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_demand.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_demand.go new file mode 100644 index 0000000..a5f1062 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_demand.go @@ -0,0 +1,31 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Demand is a nested struct in domain response +type Demand struct { + BizId string `json:"BizId" xml:"BizId"` + Status string `json:"Status" xml:"Status"` + DemandDomain string `json:"DemandDomain" xml:"DemandDomain"` + DemandPrice float64 `json:"DemandPrice" xml:"DemandPrice"` + Mobile string `json:"Mobile" xml:"Mobile"` + Description string `json:"Description" xml:"Description"` + PublishTime int `json:"PublishTime" xml:"PublishTime"` + PayDomain string `json:"PayDomain" xml:"PayDomain"` + PayPrice float64 `json:"PayPrice" xml:"PayPrice"` + PayTime int `json:"PayTime" xml:"PayTime"` + ProduceType int `json:"ProduceType" xml:"ProduceType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_dns_host.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_dns_host.go new file mode 100644 index 0000000..7bc80fa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_dns_host.go @@ -0,0 +1,22 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DnsHost is a nested struct in domain response +type DnsHost struct { + DnsName string `json:"DnsName" xml:"DnsName"` + IpList []string `json:"IpList" xml:"IpList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_dns_host_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_dns_host_list.go new file mode 100644 index 0000000..ad71f94 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_dns_host_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DnsHostList is a nested struct in domain response +type DnsHostList struct { + DnsHost []DnsHost `json:"DnsHost" xml:"DnsHost"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_dns_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_dns_list.go new file mode 100644 index 0000000..2dd3fdc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_dns_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DnsList is a nested struct in domain response +type DnsList struct { + Dns []string `json:"Dns" xml:"Dns"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_domain.go new file mode 100644 index 0000000..af8f1d4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_domain.go @@ -0,0 +1,37 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Domain is a nested struct in domain response +type Domain struct { + RegistrationDate string `json:"RegistrationDate" xml:"RegistrationDate"` + RegistrationDateLong int `json:"RegistrationDateLong" xml:"RegistrationDateLong"` + DomainStatus string `json:"DomainStatus" xml:"DomainStatus"` + DomainType string `json:"DomainType" xml:"DomainType"` + Remark string `json:"Remark" xml:"Remark"` + DomainName string `json:"DomainName" xml:"DomainName"` + ProductId string `json:"ProductId" xml:"ProductId"` + ExpirationDateStatus string `json:"ExpirationDateStatus" xml:"ExpirationDateStatus"` + ExpirationDateLong int `json:"ExpirationDateLong" xml:"ExpirationDateLong"` + RegistrantType string `json:"RegistrantType" xml:"RegistrantType"` + ExpirationDate string `json:"ExpirationDate" xml:"ExpirationDate"` + Premium bool `json:"Premium" xml:"Premium"` + DomainAuditStatus string `json:"DomainAuditStatus" xml:"DomainAuditStatus"` + DomainGroupName string `json:"DomainGroupName" xml:"DomainGroupName"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + ExpirationCurrDateDiff int `json:"ExpirationCurrDateDiff" xml:"ExpirationCurrDateDiff"` + DomainGroupId string `json:"DomainGroupId" xml:"DomainGroupId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_domain_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_domain_group.go new file mode 100644 index 0000000..85e6dcc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_domain_group.go @@ -0,0 +1,27 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainGroup is a nested struct in domain response +type DomainGroup struct { + DomainGroupId string `json:"DomainGroupId" xml:"DomainGroupId"` + DomainGroupName string `json:"DomainGroupName" xml:"DomainGroupName"` + TotalNumber int `json:"TotalNumber" xml:"TotalNumber"` + CreationDate string `json:"CreationDate" xml:"CreationDate"` + ModificationDate string `json:"ModificationDate" xml:"ModificationDate"` + DomainGroupStatus string `json:"DomainGroupStatus" xml:"DomainGroupStatus"` + BeingDeleted bool `json:"BeingDeleted" xml:"BeingDeleted"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_email_verification.go new file mode 100644 index 0000000..62628bc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_email_verification.go @@ -0,0 +1,30 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EmailVerification is a nested struct in domain response +type EmailVerification struct { + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + Email string `json:"Email" xml:"Email"` + UserId string `json:"UserId" xml:"UserId"` + EmailVerificationNo string `json:"EmailVerificationNo" xml:"EmailVerificationNo"` + TokenSendTime string `json:"TokenSendTime" xml:"TokenSendTime"` + VerificationStatus int `json:"VerificationStatus" xml:"VerificationStatus"` + VerificationTime string `json:"VerificationTime" xml:"VerificationTime"` + SendIp string `json:"SendIp" xml:"SendIp"` + ConfirmIp string `json:"ConfirmIp" xml:"ConfirmIp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_exist_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_exist_list.go new file mode 100644 index 0000000..b98e747 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_exist_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ExistList is a nested struct in domain response +type ExistList struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_list_in_confirm_transfer_in_email.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_list_in_confirm_transfer_in_email.go new file mode 100644 index 0000000..836a7d4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_list_in_confirm_transfer_in_email.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailListInConfirmTransferInEmail is a nested struct in domain response +type FailListInConfirmTransferInEmail struct { + FailDomain []string `json:"FailDomain" xml:"FailDomain"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_list_in_delete_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_list_in_delete_email_verification.go new file mode 100644 index 0000000..44970cf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_list_in_delete_email_verification.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailListInDeleteEmailVerification is a nested struct in domain response +type FailListInDeleteEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_list_in_resend_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_list_in_resend_email_verification.go new file mode 100644 index 0000000..0272a6a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_list_in_resend_email_verification.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailListInResendEmailVerification is a nested struct in domain response +type FailListInResendEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_list_in_submit_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_list_in_submit_email_verification.go new file mode 100644 index 0000000..0d1a234 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_list_in_submit_email_verification.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailListInSubmitEmailVerification is a nested struct in domain response +type FailListInSubmitEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_list_in_transfer_in_check_mail_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_list_in_transfer_in_check_mail_token.go new file mode 100644 index 0000000..8d3f76d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_list_in_transfer_in_check_mail_token.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailListInTransferInCheckMailToken is a nested struct in domain response +type FailListInTransferInCheckMailToken struct { + FailDomain []string `json:"FailDomain" xml:"FailDomain"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_record.go new file mode 100644 index 0000000..808bb1b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_fail_record.go @@ -0,0 +1,23 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailRecord is a nested struct in domain response +type FailRecord struct { + Date string `json:"Date" xml:"Date"` + FailReason string `json:"FailReason" xml:"FailReason"` + DomainNameVerificationStatus string `json:"DomainNameVerificationStatus" xml:"DomainNameVerificationStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_ip_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_ip_list.go new file mode 100644 index 0000000..91903ab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_ip_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IpList is a nested struct in domain response +type IpList struct { + Ip []string `json:"ip" xml:"ip"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_next_page_cursor.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_next_page_cursor.go new file mode 100644 index 0000000..f346723 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_next_page_cursor.go @@ -0,0 +1,35 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NextPageCursor is a nested struct in domain response +type NextPageCursor struct { + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + TaskDetailNo string `json:"TaskDetailNo" xml:"TaskDetailNo"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + CreateTimeLong int `json:"CreateTimeLong" xml:"CreateTimeLong"` + TaskStatusCode int `json:"TaskStatusCode" xml:"TaskStatusCode"` + DomainName string `json:"DomainName" xml:"DomainName"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TaskTypeDescription string `json:"TaskTypeDescription" xml:"TaskTypeDescription"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + TaskNum int `json:"TaskNum" xml:"TaskNum"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Clientip string `json:"Clientip" xml:"Clientip"` + TryCount int `json:"TryCount" xml:"TryCount"` + TaskType string `json:"TaskType" xml:"TaskType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_objects_in_query_task_detail_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_objects_in_query_task_detail_history.go new file mode 100644 index 0000000..807e20b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_objects_in_query_task_detail_history.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ObjectsInQueryTaskDetailHistory is a nested struct in domain response +type ObjectsInQueryTaskDetailHistory struct { + TaskDetailHistory []TaskDetailHistory `json:"TaskDetailHistory" xml:"TaskDetailHistory"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_objects_in_query_task_info_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_objects_in_query_task_info_history.go new file mode 100644 index 0000000..f47ca39 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_objects_in_query_task_info_history.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ObjectsInQueryTaskInfoHistory is a nested struct in domain response +type ObjectsInQueryTaskInfoHistory struct { + TaskInfoHistory []TaskInfoHistory `json:"TaskInfoHistory" xml:"TaskInfoHistory"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_pre_page_cursor.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_pre_page_cursor.go new file mode 100644 index 0000000..56e159f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_pre_page_cursor.go @@ -0,0 +1,35 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PrePageCursor is a nested struct in domain response +type PrePageCursor struct { + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + TaskDetailNo string `json:"TaskDetailNo" xml:"TaskDetailNo"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + CreateTimeLong int `json:"CreateTimeLong" xml:"CreateTimeLong"` + TaskStatusCode int `json:"TaskStatusCode" xml:"TaskStatusCode"` + DomainName string `json:"DomainName" xml:"DomainName"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TaskTypeDescription string `json:"TaskTypeDescription" xml:"TaskTypeDescription"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + TaskNum int `json:"TaskNum" xml:"TaskNum"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Clientip string `json:"Clientip" xml:"Clientip"` + TryCount int `json:"TryCount" xml:"TryCount"` + TaskType string `json:"TaskType" xml:"TaskType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_registrant_profile.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_registrant_profile.go new file mode 100644 index 0000000..58c7824 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_registrant_profile.go @@ -0,0 +1,43 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RegistrantProfile is a nested struct in domain response +type RegistrantProfile struct { + RegistrantProfileId int `json:"RegistrantProfileId" xml:"RegistrantProfileId"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + DefaultRegistrantProfile bool `json:"DefaultRegistrantProfile" xml:"DefaultRegistrantProfile"` + RegistrantName string `json:"RegistrantName" xml:"RegistrantName"` + RegistrantOrganization string `json:"RegistrantOrganization" xml:"RegistrantOrganization"` + Country string `json:"Country" xml:"Country"` + Province string `json:"Province" xml:"Province"` + City string `json:"City" xml:"City"` + Address string `json:"Address" xml:"Address"` + Email string `json:"Email" xml:"Email"` + PostalCode string `json:"PostalCode" xml:"PostalCode"` + TelArea string `json:"TelArea" xml:"TelArea"` + Telephone string `json:"Telephone" xml:"Telephone"` + TelExt string `json:"TelExt" xml:"TelExt"` + EmailVerificationStatus int `json:"EmailVerificationStatus" xml:"EmailVerificationStatus"` + ZhRegistrantName string `json:"ZhRegistrantName" xml:"ZhRegistrantName"` + ZhRegistrantOrganization string `json:"ZhRegistrantOrganization" xml:"ZhRegistrantOrganization"` + ZhProvince string `json:"ZhProvince" xml:"ZhProvince"` + ZhCity string `json:"ZhCity" xml:"ZhCity"` + ZhAddress string `json:"ZhAddress" xml:"ZhAddress"` + RegistrantType string `json:"RegistrantType" xml:"RegistrantType"` + RealNameStatus string `json:"RealNameStatus" xml:"RealNameStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_registrant_profiles.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_registrant_profiles.go new file mode 100644 index 0000000..f030252 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_registrant_profiles.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RegistrantProfiles is a nested struct in domain response +type RegistrantProfiles struct { + RegistrantProfile []RegistrantProfile `json:"RegistrantProfile" xml:"RegistrantProfile"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_send_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_send_result.go new file mode 100644 index 0000000..3cf6826 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_send_result.go @@ -0,0 +1,23 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SendResult is a nested struct in domain response +type SendResult struct { + Message string `json:"Message" xml:"Message"` + Email string `json:"Email" xml:"Email"` + Code string `json:"Code" xml:"Code"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_success_list_in_confirm_transfer_in_email.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_success_list_in_confirm_transfer_in_email.go new file mode 100644 index 0000000..3ecd85d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_success_list_in_confirm_transfer_in_email.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SuccessListInConfirmTransferInEmail is a nested struct in domain response +type SuccessListInConfirmTransferInEmail struct { + SuccessDomain []string `json:"SuccessDomain" xml:"SuccessDomain"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_success_list_in_delete_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_success_list_in_delete_email_verification.go new file mode 100644 index 0000000..e8a0320 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_success_list_in_delete_email_verification.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SuccessListInDeleteEmailVerification is a nested struct in domain response +type SuccessListInDeleteEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_success_list_in_resend_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_success_list_in_resend_email_verification.go new file mode 100644 index 0000000..231dec1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_success_list_in_resend_email_verification.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SuccessListInResendEmailVerification is a nested struct in domain response +type SuccessListInResendEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_success_list_in_submit_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_success_list_in_submit_email_verification.go new file mode 100644 index 0000000..2be4b6b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_success_list_in_submit_email_verification.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SuccessListInSubmitEmailVerification is a nested struct in domain response +type SuccessListInSubmitEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_success_list_in_transfer_in_check_mail_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_success_list_in_transfer_in_check_mail_token.go new file mode 100644 index 0000000..b81ca5a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_success_list_in_transfer_in_check_mail_token.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SuccessListInTransferInCheckMailToken is a nested struct in domain response +type SuccessListInTransferInCheckMailToken struct { + SuccessDomain []string `json:"SuccessDomain" xml:"SuccessDomain"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_suffix_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_suffix_list.go new file mode 100644 index 0000000..9232c5d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_suffix_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SuffixList is a nested struct in domain response +type SuffixList struct { + Suffix []string `json:"Suffix" xml:"Suffix"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_task_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_task_detail.go new file mode 100644 index 0000000..47eb62b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_task_detail.go @@ -0,0 +1,33 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TaskDetail is a nested struct in domain response +type TaskDetail struct { + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + TaskDetailNo string `json:"TaskDetailNo" xml:"TaskDetailNo"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + DomainName string `json:"DomainName" xml:"DomainName"` + TaskStatusCode int `json:"TaskStatusCode" xml:"TaskStatusCode"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TaskTypeDescription string `json:"TaskTypeDescription" xml:"TaskTypeDescription"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + TryCount int `json:"TryCount" xml:"TryCount"` + TaskType string `json:"TaskType" xml:"TaskType"` + TaskResult string `json:"TaskResult" xml:"TaskResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_task_detail_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_task_detail_history.go new file mode 100644 index 0000000..1107190 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_task_detail_history.go @@ -0,0 +1,32 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TaskDetailHistory is a nested struct in domain response +type TaskDetailHistory struct { + TaskNo string `json:"TaskNo" xml:"TaskNo"` + TaskDetailNo string `json:"TaskDetailNo" xml:"TaskDetailNo"` + TaskType string `json:"TaskType" xml:"TaskType"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + DomainName string `json:"DomainName" xml:"DomainName"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TryCount int `json:"TryCount" xml:"TryCount"` + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + TaskStatusCode int `json:"TaskStatusCode" xml:"TaskStatusCode"` + TaskTypeDescription string `json:"TaskTypeDescription" xml:"TaskTypeDescription"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_task_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_task_info.go new file mode 100644 index 0000000..cf167a0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_task_info.go @@ -0,0 +1,28 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TaskInfo is a nested struct in domain response +type TaskInfo struct { + TaskType string `json:"TaskType" xml:"TaskType"` + TaskNum int `json:"TaskNum" xml:"TaskNum"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Clientip string `json:"Clientip" xml:"Clientip"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + TaskStatusCode int `json:"TaskStatusCode" xml:"TaskStatusCode"` + TaskTypeDescription string `json:"TaskTypeDescription" xml:"TaskTypeDescription"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_task_info_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_task_info_history.go new file mode 100644 index 0000000..b396613 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_task_info_history.go @@ -0,0 +1,29 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TaskInfoHistory is a nested struct in domain response +type TaskInfoHistory struct { + TaskType string `json:"TaskType" xml:"TaskType"` + TaskNum int `json:"TaskNum" xml:"TaskNum"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Clientip string `json:"Clientip" xml:"Clientip"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + CreateTimeLong int `json:"CreateTimeLong" xml:"CreateTimeLong"` + TaskStatusCode int `json:"TaskStatusCode" xml:"TaskStatusCode"` + TaskTypeDescription string `json:"TaskTypeDescription" xml:"TaskTypeDescription"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_transfer_in_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_transfer_in_info.go new file mode 100644 index 0000000..6aa9ac8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/struct_transfer_in_info.go @@ -0,0 +1,41 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TransferInInfo is a nested struct in domain response +type TransferInInfo struct { + SubmissionDate string `json:"SubmissionDate" xml:"SubmissionDate"` + ModificationDate string `json:"ModificationDate" xml:"ModificationDate"` + UserId string `json:"UserId" xml:"UserId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + DomainName string `json:"DomainName" xml:"DomainName"` + Status int `json:"Status" xml:"Status"` + SimpleTransferInStatus string `json:"SimpleTransferInStatus" xml:"SimpleTransferInStatus"` + ResultCode string `json:"ResultCode" xml:"ResultCode"` + ResultDate string `json:"ResultDate" xml:"ResultDate"` + ResultMsg string `json:"ResultMsg" xml:"ResultMsg"` + TransferAuthorizationCodeSubmissionDate string `json:"TransferAuthorizationCodeSubmissionDate" xml:"TransferAuthorizationCodeSubmissionDate"` + NeedMailCheck bool `json:"NeedMailCheck" xml:"NeedMailCheck"` + Email string `json:"Email" xml:"Email"` + WhoisMailStatus bool `json:"WhoisMailStatus" xml:"WhoisMailStatus"` + ExpirationDate string `json:"ExpirationDate" xml:"ExpirationDate"` + ProgressBarType int `json:"ProgressBarType" xml:"ProgressBarType"` + SubmissionDateLong int `json:"SubmissionDateLong" xml:"SubmissionDateLong"` + ModificationDateLong int `json:"ModificationDateLong" xml:"ModificationDateLong"` + ResultDateLong int `json:"ResultDateLong" xml:"ResultDateLong"` + ExpirationDateLong int `json:"ExpirationDateLong" xml:"ExpirationDateLong"` + TransferAuthorizationCodeSubmissionDateLong int `json:"TransferAuthorizationCodeSubmissionDateLong" xml:"TransferAuthorizationCodeSubmissionDateLong"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/submit_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/submit_email_verification.go new file mode 100644 index 0000000..e2c6005 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/submit_email_verification.go @@ -0,0 +1,109 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitEmailVerification invokes the domain.SubmitEmailVerification API synchronously +// api document: https://help.aliyun.com/api/domain/submitemailverification.html +func (client *Client) SubmitEmailVerification(request *SubmitEmailVerificationRequest) (response *SubmitEmailVerificationResponse, err error) { + response = CreateSubmitEmailVerificationResponse() + err = client.DoAction(request, response) + return +} + +// SubmitEmailVerificationWithChan invokes the domain.SubmitEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain/submitemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitEmailVerificationWithChan(request *SubmitEmailVerificationRequest) (<-chan *SubmitEmailVerificationResponse, <-chan error) { + responseChan := make(chan *SubmitEmailVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitEmailVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitEmailVerificationWithCallback invokes the domain.SubmitEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain/submitemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitEmailVerificationWithCallback(request *SubmitEmailVerificationRequest, callback func(response *SubmitEmailVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitEmailVerificationResponse + var err error + defer close(result) + response, err = client.SubmitEmailVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitEmailVerificationRequest is the request struct for api SubmitEmailVerification +type SubmitEmailVerificationRequest struct { + *requests.RpcRequest + SendIfExist requests.Boolean `position:"Query" name:"SendIfExist"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` +} + +// SubmitEmailVerificationResponse is the response struct for api SubmitEmailVerification +type SubmitEmailVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SuccessList []SendResult `json:"SuccessList" xml:"SuccessList"` + FailList []SendResult `json:"FailList" xml:"FailList"` + ExistList []SendResult `json:"ExistList" xml:"ExistList"` +} + +// CreateSubmitEmailVerificationRequest creates a request to invoke SubmitEmailVerification API +func CreateSubmitEmailVerificationRequest() (request *SubmitEmailVerificationRequest) { + request = &SubmitEmailVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SubmitEmailVerification", "", "") + return +} + +// CreateSubmitEmailVerificationResponse creates a response to parse from SubmitEmailVerification response +func CreateSubmitEmailVerificationResponse() (response *SubmitEmailVerificationResponse) { + response = &SubmitEmailVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/transfer_in_check_mail_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/transfer_in_check_mail_token.go new file mode 100644 index 0000000..0e5b00e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/transfer_in_check_mail_token.go @@ -0,0 +1,107 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TransferInCheckMailToken invokes the domain.TransferInCheckMailToken API synchronously +// api document: https://help.aliyun.com/api/domain/transferincheckmailtoken.html +func (client *Client) TransferInCheckMailToken(request *TransferInCheckMailTokenRequest) (response *TransferInCheckMailTokenResponse, err error) { + response = CreateTransferInCheckMailTokenResponse() + err = client.DoAction(request, response) + return +} + +// TransferInCheckMailTokenWithChan invokes the domain.TransferInCheckMailToken API asynchronously +// api document: https://help.aliyun.com/api/domain/transferincheckmailtoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TransferInCheckMailTokenWithChan(request *TransferInCheckMailTokenRequest) (<-chan *TransferInCheckMailTokenResponse, <-chan error) { + responseChan := make(chan *TransferInCheckMailTokenResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TransferInCheckMailToken(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TransferInCheckMailTokenWithCallback invokes the domain.TransferInCheckMailToken API asynchronously +// api document: https://help.aliyun.com/api/domain/transferincheckmailtoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TransferInCheckMailTokenWithCallback(request *TransferInCheckMailTokenRequest, callback func(response *TransferInCheckMailTokenResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TransferInCheckMailTokenResponse + var err error + defer close(result) + response, err = client.TransferInCheckMailToken(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TransferInCheckMailTokenRequest is the request struct for api TransferInCheckMailToken +type TransferInCheckMailTokenRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Token string `position:"Query" name:"Token"` +} + +// TransferInCheckMailTokenResponse is the response struct for api TransferInCheckMailToken +type TransferInCheckMailTokenResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SuccessList SuccessListInTransferInCheckMailToken `json:"SuccessList" xml:"SuccessList"` + FailList FailListInTransferInCheckMailToken `json:"FailList" xml:"FailList"` +} + +// CreateTransferInCheckMailTokenRequest creates a request to invoke TransferInCheckMailToken API +func CreateTransferInCheckMailTokenRequest() (request *TransferInCheckMailTokenRequest) { + request = &TransferInCheckMailTokenRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "TransferInCheckMailToken", "", "") + return +} + +// CreateTransferInCheckMailTokenResponse creates a response to parse from TransferInCheckMailToken response +func CreateTransferInCheckMailTokenResponse() (response *TransferInCheckMailTokenResponse) { + response = &TransferInCheckMailTokenResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/transfer_in_reenter_transfer_authorization_code.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/transfer_in_reenter_transfer_authorization_code.go new file mode 100644 index 0000000..0836d7e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/transfer_in_reenter_transfer_authorization_code.go @@ -0,0 +1,106 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TransferInReenterTransferAuthorizationCode invokes the domain.TransferInReenterTransferAuthorizationCode API synchronously +// api document: https://help.aliyun.com/api/domain/transferinreentertransferauthorizationcode.html +func (client *Client) TransferInReenterTransferAuthorizationCode(request *TransferInReenterTransferAuthorizationCodeRequest) (response *TransferInReenterTransferAuthorizationCodeResponse, err error) { + response = CreateTransferInReenterTransferAuthorizationCodeResponse() + err = client.DoAction(request, response) + return +} + +// TransferInReenterTransferAuthorizationCodeWithChan invokes the domain.TransferInReenterTransferAuthorizationCode API asynchronously +// api document: https://help.aliyun.com/api/domain/transferinreentertransferauthorizationcode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TransferInReenterTransferAuthorizationCodeWithChan(request *TransferInReenterTransferAuthorizationCodeRequest) (<-chan *TransferInReenterTransferAuthorizationCodeResponse, <-chan error) { + responseChan := make(chan *TransferInReenterTransferAuthorizationCodeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TransferInReenterTransferAuthorizationCode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TransferInReenterTransferAuthorizationCodeWithCallback invokes the domain.TransferInReenterTransferAuthorizationCode API asynchronously +// api document: https://help.aliyun.com/api/domain/transferinreentertransferauthorizationcode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TransferInReenterTransferAuthorizationCodeWithCallback(request *TransferInReenterTransferAuthorizationCodeRequest, callback func(response *TransferInReenterTransferAuthorizationCodeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TransferInReenterTransferAuthorizationCodeResponse + var err error + defer close(result) + response, err = client.TransferInReenterTransferAuthorizationCode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TransferInReenterTransferAuthorizationCodeRequest is the request struct for api TransferInReenterTransferAuthorizationCode +type TransferInReenterTransferAuthorizationCodeRequest struct { + *requests.RpcRequest + TransferAuthorizationCode string `position:"Query" name:"TransferAuthorizationCode"` + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// TransferInReenterTransferAuthorizationCodeResponse is the response struct for api TransferInReenterTransferAuthorizationCode +type TransferInReenterTransferAuthorizationCodeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateTransferInReenterTransferAuthorizationCodeRequest creates a request to invoke TransferInReenterTransferAuthorizationCode API +func CreateTransferInReenterTransferAuthorizationCodeRequest() (request *TransferInReenterTransferAuthorizationCodeRequest) { + request = &TransferInReenterTransferAuthorizationCodeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "TransferInReenterTransferAuthorizationCode", "", "") + return +} + +// CreateTransferInReenterTransferAuthorizationCodeResponse creates a response to parse from TransferInReenterTransferAuthorizationCode response +func CreateTransferInReenterTransferAuthorizationCodeResponse() (response *TransferInReenterTransferAuthorizationCodeResponse) { + response = &TransferInReenterTransferAuthorizationCodeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/transfer_in_refetch_whois_email.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/transfer_in_refetch_whois_email.go new file mode 100644 index 0000000..2a9d220 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/transfer_in_refetch_whois_email.go @@ -0,0 +1,105 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TransferInRefetchWhoisEmail invokes the domain.TransferInRefetchWhoisEmail API synchronously +// api document: https://help.aliyun.com/api/domain/transferinrefetchwhoisemail.html +func (client *Client) TransferInRefetchWhoisEmail(request *TransferInRefetchWhoisEmailRequest) (response *TransferInRefetchWhoisEmailResponse, err error) { + response = CreateTransferInRefetchWhoisEmailResponse() + err = client.DoAction(request, response) + return +} + +// TransferInRefetchWhoisEmailWithChan invokes the domain.TransferInRefetchWhoisEmail API asynchronously +// api document: https://help.aliyun.com/api/domain/transferinrefetchwhoisemail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TransferInRefetchWhoisEmailWithChan(request *TransferInRefetchWhoisEmailRequest) (<-chan *TransferInRefetchWhoisEmailResponse, <-chan error) { + responseChan := make(chan *TransferInRefetchWhoisEmailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TransferInRefetchWhoisEmail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TransferInRefetchWhoisEmailWithCallback invokes the domain.TransferInRefetchWhoisEmail API asynchronously +// api document: https://help.aliyun.com/api/domain/transferinrefetchwhoisemail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TransferInRefetchWhoisEmailWithCallback(request *TransferInRefetchWhoisEmailRequest, callback func(response *TransferInRefetchWhoisEmailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TransferInRefetchWhoisEmailResponse + var err error + defer close(result) + response, err = client.TransferInRefetchWhoisEmail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TransferInRefetchWhoisEmailRequest is the request struct for api TransferInRefetchWhoisEmail +type TransferInRefetchWhoisEmailRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// TransferInRefetchWhoisEmailResponse is the response struct for api TransferInRefetchWhoisEmail +type TransferInRefetchWhoisEmailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateTransferInRefetchWhoisEmailRequest creates a request to invoke TransferInRefetchWhoisEmail API +func CreateTransferInRefetchWhoisEmailRequest() (request *TransferInRefetchWhoisEmailRequest) { + request = &TransferInRefetchWhoisEmailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "TransferInRefetchWhoisEmail", "", "") + return +} + +// CreateTransferInRefetchWhoisEmailResponse creates a response to parse from TransferInRefetchWhoisEmail response +func CreateTransferInRefetchWhoisEmailResponse() (response *TransferInRefetchWhoisEmailResponse) { + response = &TransferInRefetchWhoisEmailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/transfer_in_resend_mail_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/transfer_in_resend_mail_token.go new file mode 100644 index 0000000..1d5ecfa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/transfer_in_resend_mail_token.go @@ -0,0 +1,105 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TransferInResendMailToken invokes the domain.TransferInResendMailToken API synchronously +// api document: https://help.aliyun.com/api/domain/transferinresendmailtoken.html +func (client *Client) TransferInResendMailToken(request *TransferInResendMailTokenRequest) (response *TransferInResendMailTokenResponse, err error) { + response = CreateTransferInResendMailTokenResponse() + err = client.DoAction(request, response) + return +} + +// TransferInResendMailTokenWithChan invokes the domain.TransferInResendMailToken API asynchronously +// api document: https://help.aliyun.com/api/domain/transferinresendmailtoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TransferInResendMailTokenWithChan(request *TransferInResendMailTokenRequest) (<-chan *TransferInResendMailTokenResponse, <-chan error) { + responseChan := make(chan *TransferInResendMailTokenResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TransferInResendMailToken(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TransferInResendMailTokenWithCallback invokes the domain.TransferInResendMailToken API asynchronously +// api document: https://help.aliyun.com/api/domain/transferinresendmailtoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TransferInResendMailTokenWithCallback(request *TransferInResendMailTokenRequest, callback func(response *TransferInResendMailTokenResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TransferInResendMailTokenResponse + var err error + defer close(result) + response, err = client.TransferInResendMailToken(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TransferInResendMailTokenRequest is the request struct for api TransferInResendMailToken +type TransferInResendMailTokenRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// TransferInResendMailTokenResponse is the response struct for api TransferInResendMailToken +type TransferInResendMailTokenResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateTransferInResendMailTokenRequest creates a request to invoke TransferInResendMailToken API +func CreateTransferInResendMailTokenRequest() (request *TransferInResendMailTokenRequest) { + request = &TransferInResendMailTokenRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "TransferInResendMailToken", "", "") + return +} + +// CreateTransferInResendMailTokenResponse creates a response to parse from TransferInResendMailToken response +func CreateTransferInResendMailTokenResponse() (response *TransferInResendMailTokenResponse) { + response = &TransferInResendMailTokenResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/update_domain_to_domain_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/update_domain_to_domain_group.go new file mode 100644 index 0000000..7ce80e8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/update_domain_to_domain_group.go @@ -0,0 +1,109 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateDomainToDomainGroup invokes the domain.UpdateDomainToDomainGroup API synchronously +// api document: https://help.aliyun.com/api/domain/updatedomaintodomaingroup.html +func (client *Client) UpdateDomainToDomainGroup(request *UpdateDomainToDomainGroupRequest) (response *UpdateDomainToDomainGroupResponse, err error) { + response = CreateUpdateDomainToDomainGroupResponse() + err = client.DoAction(request, response) + return +} + +// UpdateDomainToDomainGroupWithChan invokes the domain.UpdateDomainToDomainGroup API asynchronously +// api document: https://help.aliyun.com/api/domain/updatedomaintodomaingroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateDomainToDomainGroupWithChan(request *UpdateDomainToDomainGroupRequest) (<-chan *UpdateDomainToDomainGroupResponse, <-chan error) { + responseChan := make(chan *UpdateDomainToDomainGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateDomainToDomainGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateDomainToDomainGroupWithCallback invokes the domain.UpdateDomainToDomainGroup API asynchronously +// api document: https://help.aliyun.com/api/domain/updatedomaintodomaingroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateDomainToDomainGroupWithCallback(request *UpdateDomainToDomainGroupRequest, callback func(response *UpdateDomainToDomainGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateDomainToDomainGroupResponse + var err error + defer close(result) + response, err = client.UpdateDomainToDomainGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateDomainToDomainGroupRequest is the request struct for api UpdateDomainToDomainGroup +type UpdateDomainToDomainGroupRequest struct { + *requests.RpcRequest + DataSource requests.Integer `position:"Query" name:"DataSource"` + UserClientIp string `position:"Query" name:"UserClientIp"` + FileToUpload string `position:"Body" name:"FileToUpload"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + Replace requests.Boolean `position:"Query" name:"Replace"` + Lang string `position:"Query" name:"Lang"` + DomainGroupId requests.Integer `position:"Query" name:"DomainGroupId"` +} + +// UpdateDomainToDomainGroupResponse is the response struct for api UpdateDomainToDomainGroup +type UpdateDomainToDomainGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateDomainToDomainGroupRequest creates a request to invoke UpdateDomainToDomainGroup API +func CreateUpdateDomainToDomainGroupRequest() (request *UpdateDomainToDomainGroupRequest) { + request = &UpdateDomainToDomainGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "UpdateDomainToDomainGroup", "", "") + return +} + +// CreateUpdateDomainToDomainGroupResponse creates a response to parse from UpdateDomainToDomainGroup response +func CreateUpdateDomainToDomainGroupResponse() (response *UpdateDomainToDomainGroupResponse) { + response = &UpdateDomainToDomainGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/verify_contact_field.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/verify_contact_field.go new file mode 100644 index 0000000..cb07191 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/verify_contact_field.go @@ -0,0 +1,121 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// VerifyContactField invokes the domain.VerifyContactField API synchronously +// api document: https://help.aliyun.com/api/domain/verifycontactfield.html +func (client *Client) VerifyContactField(request *VerifyContactFieldRequest) (response *VerifyContactFieldResponse, err error) { + response = CreateVerifyContactFieldResponse() + err = client.DoAction(request, response) + return +} + +// VerifyContactFieldWithChan invokes the domain.VerifyContactField API asynchronously +// api document: https://help.aliyun.com/api/domain/verifycontactfield.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VerifyContactFieldWithChan(request *VerifyContactFieldRequest) (<-chan *VerifyContactFieldResponse, <-chan error) { + responseChan := make(chan *VerifyContactFieldResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.VerifyContactField(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// VerifyContactFieldWithCallback invokes the domain.VerifyContactField API asynchronously +// api document: https://help.aliyun.com/api/domain/verifycontactfield.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VerifyContactFieldWithCallback(request *VerifyContactFieldRequest, callback func(response *VerifyContactFieldResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *VerifyContactFieldResponse + var err error + defer close(result) + response, err = client.VerifyContactField(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// VerifyContactFieldRequest is the request struct for api VerifyContactField +type VerifyContactFieldRequest struct { + *requests.RpcRequest + Country string `position:"Query" name:"Country"` + Address string `position:"Query" name:"Address"` + TelArea string `position:"Query" name:"TelArea"` + City string `position:"Query" name:"City"` + ZhAddress string `position:"Query" name:"ZhAddress"` + RegistrantType string `position:"Query" name:"RegistrantType"` + Telephone string `position:"Query" name:"Telephone"` + ZhCity string `position:"Query" name:"ZhCity"` + ZhProvince string `position:"Query" name:"ZhProvince"` + RegistrantOrganization string `position:"Query" name:"RegistrantOrganization"` + TelExt string `position:"Query" name:"TelExt"` + Province string `position:"Query" name:"Province"` + ZhRegistrantName string `position:"Query" name:"ZhRegistrantName"` + PostalCode string `position:"Query" name:"PostalCode"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` + RegistrantName string `position:"Query" name:"RegistrantName"` + ZhRegistrantOrganization string `position:"Query" name:"ZhRegistrantOrganization"` +} + +// VerifyContactFieldResponse is the response struct for api VerifyContactField +type VerifyContactFieldResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateVerifyContactFieldRequest creates a request to invoke VerifyContactField API +func CreateVerifyContactFieldRequest() (request *VerifyContactFieldRequest) { + request = &VerifyContactFieldRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "VerifyContactField", "", "") + return +} + +// CreateVerifyContactFieldResponse creates a response to parse from VerifyContactField response +func CreateVerifyContactFieldResponse() (response *VerifyContactFieldResponse) { + response = &VerifyContactFieldResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/verify_email.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/verify_email.go new file mode 100644 index 0000000..6eb975e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain/verify_email.go @@ -0,0 +1,105 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// VerifyEmail invokes the domain.VerifyEmail API synchronously +// api document: https://help.aliyun.com/api/domain/verifyemail.html +func (client *Client) VerifyEmail(request *VerifyEmailRequest) (response *VerifyEmailResponse, err error) { + response = CreateVerifyEmailResponse() + err = client.DoAction(request, response) + return +} + +// VerifyEmailWithChan invokes the domain.VerifyEmail API asynchronously +// api document: https://help.aliyun.com/api/domain/verifyemail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VerifyEmailWithChan(request *VerifyEmailRequest) (<-chan *VerifyEmailResponse, <-chan error) { + responseChan := make(chan *VerifyEmailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.VerifyEmail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// VerifyEmailWithCallback invokes the domain.VerifyEmail API asynchronously +// api document: https://help.aliyun.com/api/domain/verifyemail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VerifyEmailWithCallback(request *VerifyEmailRequest, callback func(response *VerifyEmailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *VerifyEmailResponse + var err error + defer close(result) + response, err = client.VerifyEmail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// VerifyEmailRequest is the request struct for api VerifyEmail +type VerifyEmailRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Token string `position:"Query" name:"Token"` +} + +// VerifyEmailResponse is the response struct for api VerifyEmail +type VerifyEmailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateVerifyEmailRequest creates a request to invoke VerifyEmail API +func CreateVerifyEmailRequest() (request *VerifyEmailRequest) { + request = &VerifyEmailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "VerifyEmail", "", "") + return +} + +// CreateVerifyEmailResponse creates a response to parse from VerifyEmail response +func CreateVerifyEmailResponse() (response *VerifyEmailResponse) { + response = &VerifyEmailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/check_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/check_domain.go new file mode 100644 index 0000000..4d832c4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/check_domain.go @@ -0,0 +1,106 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckDomain invokes the domain_intl.CheckDomain API synchronously +// api document: https://help.aliyun.com/api/domain-intl/checkdomain.html +func (client *Client) CheckDomain(request *CheckDomainRequest) (response *CheckDomainResponse, err error) { + response = CreateCheckDomainResponse() + err = client.DoAction(request, response) + return +} + +// CheckDomainWithChan invokes the domain_intl.CheckDomain API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/checkdomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckDomainWithChan(request *CheckDomainRequest) (<-chan *CheckDomainResponse, <-chan error) { + responseChan := make(chan *CheckDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckDomainWithCallback invokes the domain_intl.CheckDomain API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/checkdomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckDomainWithCallback(request *CheckDomainRequest, callback func(response *CheckDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckDomainResponse + var err error + defer close(result) + response, err = client.CheckDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckDomainRequest is the request struct for api CheckDomain +type CheckDomainRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` +} + +// CheckDomainResponse is the response struct for api CheckDomain +type CheckDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + Avail string `json:"Avail" xml:"Avail"` + Premium string `json:"Premium" xml:"Premium"` +} + +// CreateCheckDomainRequest creates a request to invoke CheckDomain API +func CreateCheckDomainRequest() (request *CheckDomainRequest) { + request = &CheckDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "CheckDomain", "", "") + return +} + +// CreateCheckDomainResponse creates a response to parse from CheckDomain response +func CreateCheckDomainResponse() (response *CheckDomainResponse) { + response = &CheckDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/client.go new file mode 100644 index 0000000..72d2e3f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/client.go @@ -0,0 +1,81 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/delete_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/delete_email_verification.go new file mode 100644 index 0000000..2a9a6c3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/delete_email_verification.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteEmailVerification invokes the domain_intl.DeleteEmailVerification API synchronously +// api document: https://help.aliyun.com/api/domain-intl/deleteemailverification.html +func (client *Client) DeleteEmailVerification(request *DeleteEmailVerificationRequest) (response *DeleteEmailVerificationResponse, err error) { + response = CreateDeleteEmailVerificationResponse() + err = client.DoAction(request, response) + return +} + +// DeleteEmailVerificationWithChan invokes the domain_intl.DeleteEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/deleteemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteEmailVerificationWithChan(request *DeleteEmailVerificationRequest) (<-chan *DeleteEmailVerificationResponse, <-chan error) { + responseChan := make(chan *DeleteEmailVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteEmailVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteEmailVerificationWithCallback invokes the domain_intl.DeleteEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/deleteemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteEmailVerificationWithCallback(request *DeleteEmailVerificationRequest, callback func(response *DeleteEmailVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteEmailVerificationResponse + var err error + defer close(result) + response, err = client.DeleteEmailVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteEmailVerificationRequest is the request struct for api DeleteEmailVerification +type DeleteEmailVerificationRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// DeleteEmailVerificationResponse is the response struct for api DeleteEmailVerification +type DeleteEmailVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SuccessList []SendResult `json:"SuccessList" xml:"SuccessList"` + FailList []SendResult `json:"FailList" xml:"FailList"` +} + +// CreateDeleteEmailVerificationRequest creates a request to invoke DeleteEmailVerification API +func CreateDeleteEmailVerificationRequest() (request *DeleteEmailVerificationRequest) { + request = &DeleteEmailVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "DeleteEmailVerification", "", "") + return +} + +// CreateDeleteEmailVerificationResponse creates a response to parse from DeleteEmailVerification response +func CreateDeleteEmailVerificationResponse() (response *DeleteEmailVerificationResponse) { + response = &DeleteEmailVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/delete_registrant_profile.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/delete_registrant_profile.go new file mode 100644 index 0000000..0518644 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/delete_registrant_profile.go @@ -0,0 +1,105 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteRegistrantProfile invokes the domain_intl.DeleteRegistrantProfile API synchronously +// api document: https://help.aliyun.com/api/domain-intl/deleteregistrantprofile.html +func (client *Client) DeleteRegistrantProfile(request *DeleteRegistrantProfileRequest) (response *DeleteRegistrantProfileResponse, err error) { + response = CreateDeleteRegistrantProfileResponse() + err = client.DoAction(request, response) + return +} + +// DeleteRegistrantProfileWithChan invokes the domain_intl.DeleteRegistrantProfile API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/deleteregistrantprofile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteRegistrantProfileWithChan(request *DeleteRegistrantProfileRequest) (<-chan *DeleteRegistrantProfileResponse, <-chan error) { + responseChan := make(chan *DeleteRegistrantProfileResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteRegistrantProfile(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteRegistrantProfileWithCallback invokes the domain_intl.DeleteRegistrantProfile API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/deleteregistrantprofile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteRegistrantProfileWithCallback(request *DeleteRegistrantProfileRequest, callback func(response *DeleteRegistrantProfileResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteRegistrantProfileResponse + var err error + defer close(result) + response, err = client.DeleteRegistrantProfile(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteRegistrantProfileRequest is the request struct for api DeleteRegistrantProfile +type DeleteRegistrantProfileRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` +} + +// DeleteRegistrantProfileResponse is the response struct for api DeleteRegistrantProfile +type DeleteRegistrantProfileResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteRegistrantProfileRequest creates a request to invoke DeleteRegistrantProfile API +func CreateDeleteRegistrantProfileRequest() (request *DeleteRegistrantProfileRequest) { + request = &DeleteRegistrantProfileRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "DeleteRegistrantProfile", "", "") + return +} + +// CreateDeleteRegistrantProfileResponse creates a response to parse from DeleteRegistrantProfile response +func CreateDeleteRegistrantProfileResponse() (response *DeleteRegistrantProfileResponse) { + response = &DeleteRegistrantProfileResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/email_verified.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/email_verified.go new file mode 100644 index 0000000..34adda6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/email_verified.go @@ -0,0 +1,105 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EmailVerified invokes the domain_intl.EmailVerified API synchronously +// api document: https://help.aliyun.com/api/domain-intl/emailverified.html +func (client *Client) EmailVerified(request *EmailVerifiedRequest) (response *EmailVerifiedResponse, err error) { + response = CreateEmailVerifiedResponse() + err = client.DoAction(request, response) + return +} + +// EmailVerifiedWithChan invokes the domain_intl.EmailVerified API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/emailverified.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EmailVerifiedWithChan(request *EmailVerifiedRequest) (<-chan *EmailVerifiedResponse, <-chan error) { + responseChan := make(chan *EmailVerifiedResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EmailVerified(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EmailVerifiedWithCallback invokes the domain_intl.EmailVerified API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/emailverified.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EmailVerifiedWithCallback(request *EmailVerifiedRequest, callback func(response *EmailVerifiedResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EmailVerifiedResponse + var err error + defer close(result) + response, err = client.EmailVerified(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EmailVerifiedRequest is the request struct for api EmailVerified +type EmailVerifiedRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Email string `position:"Query" name:"Email"` +} + +// EmailVerifiedResponse is the response struct for api EmailVerified +type EmailVerifiedResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateEmailVerifiedRequest creates a request to invoke EmailVerified API +func CreateEmailVerifiedRequest() (request *EmailVerifiedRequest) { + request = &EmailVerifiedRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "EmailVerified", "", "") + return +} + +// CreateEmailVerifiedResponse creates a response to parse from EmailVerified response +func CreateEmailVerifiedResponse() (response *EmailVerifiedResponse) { + response = &EmailVerifiedResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/list_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/list_email_verification.go new file mode 100644 index 0000000..3bf349d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/list_email_verification.go @@ -0,0 +1,116 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListEmailVerification invokes the domain_intl.ListEmailVerification API synchronously +// api document: https://help.aliyun.com/api/domain-intl/listemailverification.html +func (client *Client) ListEmailVerification(request *ListEmailVerificationRequest) (response *ListEmailVerificationResponse, err error) { + response = CreateListEmailVerificationResponse() + err = client.DoAction(request, response) + return +} + +// ListEmailVerificationWithChan invokes the domain_intl.ListEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/listemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListEmailVerificationWithChan(request *ListEmailVerificationRequest) (<-chan *ListEmailVerificationResponse, <-chan error) { + responseChan := make(chan *ListEmailVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListEmailVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListEmailVerificationWithCallback invokes the domain_intl.ListEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/listemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListEmailVerificationWithCallback(request *ListEmailVerificationRequest, callback func(response *ListEmailVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListEmailVerificationResponse + var err error + defer close(result) + response, err = client.ListEmailVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListEmailVerificationRequest is the request struct for api ListEmailVerification +type ListEmailVerificationRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + BeginCreateTime requests.Integer `position:"Query" name:"BeginCreateTime"` + EndCreateTime requests.Integer `position:"Query" name:"EndCreateTime"` + Email string `position:"Query" name:"Email"` + VerificationStatus requests.Integer `position:"Query" name:"VerificationStatus"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// ListEmailVerificationResponse is the response struct for api ListEmailVerification +type ListEmailVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data []EmailVerification `json:"Data" xml:"Data"` +} + +// CreateListEmailVerificationRequest creates a request to invoke ListEmailVerification API +func CreateListEmailVerificationRequest() (request *ListEmailVerificationRequest) { + request = &ListEmailVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "ListEmailVerification", "", "") + return +} + +// CreateListEmailVerificationResponse creates a response to parse from ListEmailVerification response +func CreateListEmailVerificationResponse() (response *ListEmailVerificationResponse) { + response = &ListEmailVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_change_log_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_change_log_list.go new file mode 100644 index 0000000..b34c697 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_change_log_list.go @@ -0,0 +1,117 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryChangeLogList invokes the domain_intl.QueryChangeLogList API synchronously +// api document: https://help.aliyun.com/api/domain-intl/querychangeloglist.html +func (client *Client) QueryChangeLogList(request *QueryChangeLogListRequest) (response *QueryChangeLogListResponse, err error) { + response = CreateQueryChangeLogListResponse() + err = client.DoAction(request, response) + return +} + +// QueryChangeLogListWithChan invokes the domain_intl.QueryChangeLogList API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querychangeloglist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryChangeLogListWithChan(request *QueryChangeLogListRequest) (<-chan *QueryChangeLogListResponse, <-chan error) { + responseChan := make(chan *QueryChangeLogListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryChangeLogList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryChangeLogListWithCallback invokes the domain_intl.QueryChangeLogList API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querychangeloglist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryChangeLogListWithCallback(request *QueryChangeLogListRequest, callback func(response *QueryChangeLogListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryChangeLogListResponse + var err error + defer close(result) + response, err = client.QueryChangeLogList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryChangeLogListRequest is the request struct for api QueryChangeLogList +type QueryChangeLogListRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + StartDate requests.Integer `position:"Query" name:"StartDate"` + EndDate requests.Integer `position:"Query" name:"EndDate"` +} + +// QueryChangeLogListResponse is the response struct for api QueryChangeLogList +type QueryChangeLogListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + ResultLimit bool `json:"ResultLimit" xml:"ResultLimit"` + Data DataInQueryChangeLogList `json:"Data" xml:"Data"` +} + +// CreateQueryChangeLogListRequest creates a request to invoke QueryChangeLogList API +func CreateQueryChangeLogListRequest() (request *QueryChangeLogListRequest) { + request = &QueryChangeLogListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryChangeLogList", "", "") + return +} + +// CreateQueryChangeLogListResponse creates a response to parse from QueryChangeLogList response +func CreateQueryChangeLogListResponse() (response *QueryChangeLogListResponse) { + response = &QueryChangeLogListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_contact_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_contact_info.go new file mode 100644 index 0000000..95d718d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_contact_info.go @@ -0,0 +1,118 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryContactInfo invokes the domain_intl.QueryContactInfo API synchronously +// api document: https://help.aliyun.com/api/domain-intl/querycontactinfo.html +func (client *Client) QueryContactInfo(request *QueryContactInfoRequest) (response *QueryContactInfoResponse, err error) { + response = CreateQueryContactInfoResponse() + err = client.DoAction(request, response) + return +} + +// QueryContactInfoWithChan invokes the domain_intl.QueryContactInfo API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querycontactinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryContactInfoWithChan(request *QueryContactInfoRequest) (<-chan *QueryContactInfoResponse, <-chan error) { + responseChan := make(chan *QueryContactInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryContactInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryContactInfoWithCallback invokes the domain_intl.QueryContactInfo API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querycontactinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryContactInfoWithCallback(request *QueryContactInfoRequest, callback func(response *QueryContactInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryContactInfoResponse + var err error + defer close(result) + response, err = client.QueryContactInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryContactInfoRequest is the request struct for api QueryContactInfo +type QueryContactInfoRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + ContactType string `position:"Query" name:"ContactType"` +} + +// QueryContactInfoResponse is the response struct for api QueryContactInfo +type QueryContactInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CreateDate string `json:"CreateDate" xml:"CreateDate"` + RegistrantName string `json:"RegistrantName" xml:"RegistrantName"` + RegistrantOrganization string `json:"RegistrantOrganization" xml:"RegistrantOrganization"` + Country string `json:"Country" xml:"Country"` + Province string `json:"Province" xml:"Province"` + City string `json:"City" xml:"City"` + Address string `json:"Address" xml:"Address"` + Email string `json:"Email" xml:"Email"` + PostalCode string `json:"PostalCode" xml:"PostalCode"` + TelArea string `json:"TelArea" xml:"TelArea"` + Telephone string `json:"Telephone" xml:"Telephone"` + TelExt string `json:"TelExt" xml:"TelExt"` +} + +// CreateQueryContactInfoRequest creates a request to invoke QueryContactInfo API +func CreateQueryContactInfoRequest() (request *QueryContactInfoRequest) { + request = &QueryContactInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryContactInfo", "", "") + return +} + +// CreateQueryContactInfoResponse creates a response to parse from QueryContactInfo response +func CreateQueryContactInfoResponse() (response *QueryContactInfoResponse) { + response = &QueryContactInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_dns_host.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_dns_host.go new file mode 100644 index 0000000..8559a38 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_dns_host.go @@ -0,0 +1,105 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDnsHost invokes the domain_intl.QueryDnsHost API synchronously +// api document: https://help.aliyun.com/api/domain-intl/querydnshost.html +func (client *Client) QueryDnsHost(request *QueryDnsHostRequest) (response *QueryDnsHostResponse, err error) { + response = CreateQueryDnsHostResponse() + err = client.DoAction(request, response) + return +} + +// QueryDnsHostWithChan invokes the domain_intl.QueryDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querydnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDnsHostWithChan(request *QueryDnsHostRequest) (<-chan *QueryDnsHostResponse, <-chan error) { + responseChan := make(chan *QueryDnsHostResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDnsHost(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDnsHostWithCallback invokes the domain_intl.QueryDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querydnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDnsHostWithCallback(request *QueryDnsHostRequest, callback func(response *QueryDnsHostResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDnsHostResponse + var err error + defer close(result) + response, err = client.QueryDnsHost(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDnsHostRequest is the request struct for api QueryDnsHost +type QueryDnsHostRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryDnsHostResponse is the response struct for api QueryDnsHost +type QueryDnsHostResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DnsHostList []DnsHost `json:"DnsHostList" xml:"DnsHostList"` +} + +// CreateQueryDnsHostRequest creates a request to invoke QueryDnsHost API +func CreateQueryDnsHostRequest() (request *QueryDnsHostRequest) { + request = &QueryDnsHostRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryDnsHost", "", "") + return +} + +// CreateQueryDnsHostResponse creates a response to parse from QueryDnsHost response +func CreateQueryDnsHostResponse() (response *QueryDnsHostResponse) { + response = &QueryDnsHostResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_domain_by_instance_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_domain_by_instance_id.go new file mode 100644 index 0000000..7b949e3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_domain_by_instance_id.go @@ -0,0 +1,119 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDomainByInstanceId invokes the domain_intl.QueryDomainByInstanceId API synchronously +// api document: https://help.aliyun.com/api/domain-intl/querydomainbyinstanceid.html +func (client *Client) QueryDomainByInstanceId(request *QueryDomainByInstanceIdRequest) (response *QueryDomainByInstanceIdResponse, err error) { + response = CreateQueryDomainByInstanceIdResponse() + err = client.DoAction(request, response) + return +} + +// QueryDomainByInstanceIdWithChan invokes the domain_intl.QueryDomainByInstanceId API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querydomainbyinstanceid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDomainByInstanceIdWithChan(request *QueryDomainByInstanceIdRequest) (<-chan *QueryDomainByInstanceIdResponse, <-chan error) { + responseChan := make(chan *QueryDomainByInstanceIdResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDomainByInstanceId(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDomainByInstanceIdWithCallback invokes the domain_intl.QueryDomainByInstanceId API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querydomainbyinstanceid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDomainByInstanceIdWithCallback(request *QueryDomainByInstanceIdRequest, callback func(response *QueryDomainByInstanceIdResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDomainByInstanceIdResponse + var err error + defer close(result) + response, err = client.QueryDomainByInstanceId(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDomainByInstanceIdRequest is the request struct for api QueryDomainByInstanceId +type QueryDomainByInstanceIdRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// QueryDomainByInstanceIdResponse is the response struct for api QueryDomainByInstanceId +type QueryDomainByInstanceIdResponse struct { + *responses.BaseResponse + UserId string `json:"UserId" xml:"UserId"` + DomainName string `json:"DomainName" xml:"DomainName"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + RegistrationDate string `json:"RegistrationDate" xml:"RegistrationDate"` + ExpirationDate string `json:"ExpirationDate" xml:"ExpirationDate"` + RegistrantOrganization string `json:"RegistrantOrganization" xml:"RegistrantOrganization"` + RegistrantName string `json:"RegistrantName" xml:"RegistrantName"` + Email string `json:"Email" xml:"Email"` + UpdateProhibitionLock string `json:"UpdateProhibitionLock" xml:"UpdateProhibitionLock"` + TransferProhibitionLock string `json:"TransferProhibitionLock" xml:"TransferProhibitionLock"` + DomainNameProxyService bool `json:"DomainNameProxyService" xml:"DomainNameProxyService"` + Premium bool `json:"Premium" xml:"Premium"` + EmailVerificationStatus int `json:"EmailVerificationStatus" xml:"EmailVerificationStatus"` + EmailVerificationClientHold bool `json:"EmailVerificationClientHold" xml:"EmailVerificationClientHold"` + DnsList DnsList `json:"DnsList" xml:"DnsList"` +} + +// CreateQueryDomainByInstanceIdRequest creates a request to invoke QueryDomainByInstanceId API +func CreateQueryDomainByInstanceIdRequest() (request *QueryDomainByInstanceIdRequest) { + request = &QueryDomainByInstanceIdRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryDomainByInstanceId", "", "") + return +} + +// CreateQueryDomainByInstanceIdResponse creates a response to parse from QueryDomainByInstanceId response +func CreateQueryDomainByInstanceIdResponse() (response *QueryDomainByInstanceIdResponse) { + response = &QueryDomainByInstanceIdResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_domain_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_domain_list.go new file mode 100644 index 0000000..1bd9c6f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_domain_list.go @@ -0,0 +1,122 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDomainList invokes the domain_intl.QueryDomainList API synchronously +// api document: https://help.aliyun.com/api/domain-intl/querydomainlist.html +func (client *Client) QueryDomainList(request *QueryDomainListRequest) (response *QueryDomainListResponse, err error) { + response = CreateQueryDomainListResponse() + err = client.DoAction(request, response) + return +} + +// QueryDomainListWithChan invokes the domain_intl.QueryDomainList API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querydomainlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDomainListWithChan(request *QueryDomainListRequest) (<-chan *QueryDomainListResponse, <-chan error) { + responseChan := make(chan *QueryDomainListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDomainList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDomainListWithCallback invokes the domain_intl.QueryDomainList API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querydomainlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDomainListWithCallback(request *QueryDomainListRequest, callback func(response *QueryDomainListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDomainListResponse + var err error + defer close(result) + response, err = client.QueryDomainList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDomainListRequest is the request struct for api QueryDomainList +type QueryDomainListRequest struct { + *requests.RpcRequest + StartExpirationDate requests.Integer `position:"Query" name:"StartExpirationDate"` + QueryType string `position:"Query" name:"QueryType"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + EndExpirationDate requests.Integer `position:"Query" name:"EndExpirationDate"` + StartRegistrationDate requests.Integer `position:"Query" name:"StartRegistrationDate"` + EndRegistrationDate requests.Integer `position:"Query" name:"EndRegistrationDate"` + DomainName string `position:"Query" name:"DomainName"` + OrderByType string `position:"Query" name:"OrderByType"` + OrderKeyType string `position:"Query" name:"OrderKeyType"` + ProductDomainType string `position:"Query" name:"ProductDomainType"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// QueryDomainListResponse is the response struct for api QueryDomainList +type QueryDomainListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data DataInQueryDomainList `json:"Data" xml:"Data"` +} + +// CreateQueryDomainListRequest creates a request to invoke QueryDomainList API +func CreateQueryDomainListRequest() (request *QueryDomainListRequest) { + request = &QueryDomainListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryDomainList", "", "") + return +} + +// CreateQueryDomainListResponse creates a response to parse from QueryDomainList response +func CreateQueryDomainListResponse() (response *QueryDomainListResponse) { + response = &QueryDomainListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_registrant_profiles.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_registrant_profiles.go new file mode 100644 index 0000000..9ea6af1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_registrant_profiles.go @@ -0,0 +1,116 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryRegistrantProfiles invokes the domain_intl.QueryRegistrantProfiles API synchronously +// api document: https://help.aliyun.com/api/domain-intl/queryregistrantprofiles.html +func (client *Client) QueryRegistrantProfiles(request *QueryRegistrantProfilesRequest) (response *QueryRegistrantProfilesResponse, err error) { + response = CreateQueryRegistrantProfilesResponse() + err = client.DoAction(request, response) + return +} + +// QueryRegistrantProfilesWithChan invokes the domain_intl.QueryRegistrantProfiles API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/queryregistrantprofiles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryRegistrantProfilesWithChan(request *QueryRegistrantProfilesRequest) (<-chan *QueryRegistrantProfilesResponse, <-chan error) { + responseChan := make(chan *QueryRegistrantProfilesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryRegistrantProfiles(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryRegistrantProfilesWithCallback invokes the domain_intl.QueryRegistrantProfiles API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/queryregistrantprofiles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryRegistrantProfilesWithCallback(request *QueryRegistrantProfilesRequest, callback func(response *QueryRegistrantProfilesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryRegistrantProfilesResponse + var err error + defer close(result) + response, err = client.QueryRegistrantProfiles(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryRegistrantProfilesRequest is the request struct for api QueryRegistrantProfiles +type QueryRegistrantProfilesRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + RegistrantOrganization string `position:"Query" name:"RegistrantOrganization"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + DefaultRegistrantProfile requests.Boolean `position:"Query" name:"DefaultRegistrantProfile"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// QueryRegistrantProfilesResponse is the response struct for api QueryRegistrantProfiles +type QueryRegistrantProfilesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + RegistrantProfiles RegistrantProfiles `json:"RegistrantProfiles" xml:"RegistrantProfiles"` +} + +// CreateQueryRegistrantProfilesRequest creates a request to invoke QueryRegistrantProfiles API +func CreateQueryRegistrantProfilesRequest() (request *QueryRegistrantProfilesRequest) { + request = &QueryRegistrantProfilesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryRegistrantProfiles", "", "") + return +} + +// CreateQueryRegistrantProfilesResponse creates a response to parse from QueryRegistrantProfiles response +func CreateQueryRegistrantProfilesResponse() (response *QueryRegistrantProfilesResponse) { + response = &QueryRegistrantProfilesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_task_detail_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_task_detail_history.go new file mode 100644 index 0000000..b6fac97 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_task_detail_history.go @@ -0,0 +1,115 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTaskDetailHistory invokes the domain_intl.QueryTaskDetailHistory API synchronously +// api document: https://help.aliyun.com/api/domain-intl/querytaskdetailhistory.html +func (client *Client) QueryTaskDetailHistory(request *QueryTaskDetailHistoryRequest) (response *QueryTaskDetailHistoryResponse, err error) { + response = CreateQueryTaskDetailHistoryResponse() + err = client.DoAction(request, response) + return +} + +// QueryTaskDetailHistoryWithChan invokes the domain_intl.QueryTaskDetailHistory API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytaskdetailhistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskDetailHistoryWithChan(request *QueryTaskDetailHistoryRequest) (<-chan *QueryTaskDetailHistoryResponse, <-chan error) { + responseChan := make(chan *QueryTaskDetailHistoryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTaskDetailHistory(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTaskDetailHistoryWithCallback invokes the domain_intl.QueryTaskDetailHistory API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytaskdetailhistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskDetailHistoryWithCallback(request *QueryTaskDetailHistoryRequest, callback func(response *QueryTaskDetailHistoryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTaskDetailHistoryResponse + var err error + defer close(result) + response, err = client.QueryTaskDetailHistory(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTaskDetailHistoryRequest is the request struct for api QueryTaskDetailHistory +type QueryTaskDetailHistoryRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + TaskNo string `position:"Query" name:"TaskNo"` + DomainName string `position:"Query" name:"DomainName"` + DomainNameCursor string `position:"Query" name:"DomainNameCursor"` + TaskStatus requests.Integer `position:"Query" name:"TaskStatus"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + TaskDetailNoCursor string `position:"Query" name:"TaskDetailNoCursor"` +} + +// QueryTaskDetailHistoryResponse is the response struct for api QueryTaskDetailHistory +type QueryTaskDetailHistoryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + CurrentPageCursor CurrentPageCursor `json:"CurrentPageCursor" xml:"CurrentPageCursor"` + NextPageCursor NextPageCursor `json:"NextPageCursor" xml:"NextPageCursor"` + PrePageCursor PrePageCursor `json:"PrePageCursor" xml:"PrePageCursor"` + Objects []TaskDetailHistory `json:"Objects" xml:"Objects"` +} + +// CreateQueryTaskDetailHistoryRequest creates a request to invoke QueryTaskDetailHistory API +func CreateQueryTaskDetailHistoryRequest() (request *QueryTaskDetailHistoryRequest) { + request = &QueryTaskDetailHistoryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryTaskDetailHistory", "", "") + return +} + +// CreateQueryTaskDetailHistoryResponse creates a response to parse from QueryTaskDetailHistory response +func CreateQueryTaskDetailHistoryResponse() (response *QueryTaskDetailHistoryResponse) { + response = &QueryTaskDetailHistoryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_task_detail_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_task_detail_list.go new file mode 100644 index 0000000..4411e62 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_task_detail_list.go @@ -0,0 +1,117 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTaskDetailList invokes the domain_intl.QueryTaskDetailList API synchronously +// api document: https://help.aliyun.com/api/domain-intl/querytaskdetaillist.html +func (client *Client) QueryTaskDetailList(request *QueryTaskDetailListRequest) (response *QueryTaskDetailListResponse, err error) { + response = CreateQueryTaskDetailListResponse() + err = client.DoAction(request, response) + return +} + +// QueryTaskDetailListWithChan invokes the domain_intl.QueryTaskDetailList API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytaskdetaillist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskDetailListWithChan(request *QueryTaskDetailListRequest) (<-chan *QueryTaskDetailListResponse, <-chan error) { + responseChan := make(chan *QueryTaskDetailListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTaskDetailList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTaskDetailListWithCallback invokes the domain_intl.QueryTaskDetailList API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytaskdetaillist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskDetailListWithCallback(request *QueryTaskDetailListRequest, callback func(response *QueryTaskDetailListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTaskDetailListResponse + var err error + defer close(result) + response, err = client.QueryTaskDetailList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTaskDetailListRequest is the request struct for api QueryTaskDetailList +type QueryTaskDetailListRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + TaskNo string `position:"Query" name:"TaskNo"` + DomainName string `position:"Query" name:"DomainName"` + InstanceId string `position:"Query" name:"InstanceId"` + TaskStatus requests.Integer `position:"Query" name:"TaskStatus"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// QueryTaskDetailListResponse is the response struct for api QueryTaskDetailList +type QueryTaskDetailListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data DataInQueryTaskDetailList `json:"Data" xml:"Data"` +} + +// CreateQueryTaskDetailListRequest creates a request to invoke QueryTaskDetailList API +func CreateQueryTaskDetailListRequest() (request *QueryTaskDetailListRequest) { + request = &QueryTaskDetailListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryTaskDetailList", "", "") + return +} + +// CreateQueryTaskDetailListResponse creates a response to parse from QueryTaskDetailList response +func CreateQueryTaskDetailListResponse() (response *QueryTaskDetailListResponse) { + response = &QueryTaskDetailListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_task_info_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_task_info_history.go new file mode 100644 index 0000000..84484b4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_task_info_history.go @@ -0,0 +1,114 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTaskInfoHistory invokes the domain_intl.QueryTaskInfoHistory API synchronously +// api document: https://help.aliyun.com/api/domain-intl/querytaskinfohistory.html +func (client *Client) QueryTaskInfoHistory(request *QueryTaskInfoHistoryRequest) (response *QueryTaskInfoHistoryResponse, err error) { + response = CreateQueryTaskInfoHistoryResponse() + err = client.DoAction(request, response) + return +} + +// QueryTaskInfoHistoryWithChan invokes the domain_intl.QueryTaskInfoHistory API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytaskinfohistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskInfoHistoryWithChan(request *QueryTaskInfoHistoryRequest) (<-chan *QueryTaskInfoHistoryResponse, <-chan error) { + responseChan := make(chan *QueryTaskInfoHistoryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTaskInfoHistory(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTaskInfoHistoryWithCallback invokes the domain_intl.QueryTaskInfoHistory API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytaskinfohistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskInfoHistoryWithCallback(request *QueryTaskInfoHistoryRequest, callback func(response *QueryTaskInfoHistoryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTaskInfoHistoryResponse + var err error + defer close(result) + response, err = client.QueryTaskInfoHistory(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTaskInfoHistoryRequest is the request struct for api QueryTaskInfoHistory +type QueryTaskInfoHistoryRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + BeginCreateTime requests.Integer `position:"Query" name:"BeginCreateTime"` + EndCreateTime requests.Integer `position:"Query" name:"EndCreateTime"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + CreateTimeCursor requests.Integer `position:"Query" name:"CreateTimeCursor"` + TaskNoCursor string `position:"Query" name:"TaskNoCursor"` +} + +// QueryTaskInfoHistoryResponse is the response struct for api QueryTaskInfoHistory +type QueryTaskInfoHistoryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + CurrentPageCursor CurrentPageCursor `json:"CurrentPageCursor" xml:"CurrentPageCursor"` + NextPageCursor NextPageCursor `json:"NextPageCursor" xml:"NextPageCursor"` + PrePageCursor PrePageCursor `json:"PrePageCursor" xml:"PrePageCursor"` + Objects []TaskInfoHistory `json:"Objects" xml:"Objects"` +} + +// CreateQueryTaskInfoHistoryRequest creates a request to invoke QueryTaskInfoHistory API +func CreateQueryTaskInfoHistoryRequest() (request *QueryTaskInfoHistoryRequest) { + request = &QueryTaskInfoHistoryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryTaskInfoHistory", "", "") + return +} + +// CreateQueryTaskInfoHistoryResponse creates a response to parse from QueryTaskInfoHistory response +func CreateQueryTaskInfoHistoryResponse() (response *QueryTaskInfoHistoryResponse) { + response = &QueryTaskInfoHistoryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_task_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_task_list.go new file mode 100644 index 0000000..cfd8e9f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/query_task_list.go @@ -0,0 +1,115 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTaskList invokes the domain_intl.QueryTaskList API synchronously +// api document: https://help.aliyun.com/api/domain-intl/querytasklist.html +func (client *Client) QueryTaskList(request *QueryTaskListRequest) (response *QueryTaskListResponse, err error) { + response = CreateQueryTaskListResponse() + err = client.DoAction(request, response) + return +} + +// QueryTaskListWithChan invokes the domain_intl.QueryTaskList API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytasklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskListWithChan(request *QueryTaskListRequest) (<-chan *QueryTaskListResponse, <-chan error) { + responseChan := make(chan *QueryTaskListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTaskList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTaskListWithCallback invokes the domain_intl.QueryTaskList API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/querytasklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskListWithCallback(request *QueryTaskListRequest, callback func(response *QueryTaskListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTaskListResponse + var err error + defer close(result) + response, err = client.QueryTaskList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTaskListRequest is the request struct for api QueryTaskList +type QueryTaskListRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + BeginCreateTime requests.Integer `position:"Query" name:"BeginCreateTime"` + EndCreateTime requests.Integer `position:"Query" name:"EndCreateTime"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// QueryTaskListResponse is the response struct for api QueryTaskList +type QueryTaskListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + PrePage bool `json:"PrePage" xml:"PrePage"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data DataInQueryTaskList `json:"Data" xml:"Data"` +} + +// CreateQueryTaskListRequest creates a request to invoke QueryTaskList API +func CreateQueryTaskListRequest() (request *QueryTaskListRequest) { + request = &QueryTaskListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "QueryTaskList", "", "") + return +} + +// CreateQueryTaskListResponse creates a response to parse from QueryTaskList response +func CreateQueryTaskListResponse() (response *QueryTaskListResponse) { + response = &QueryTaskListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/resend_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/resend_email_verification.go new file mode 100644 index 0000000..6a80aee --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/resend_email_verification.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ResendEmailVerification invokes the domain_intl.ResendEmailVerification API synchronously +// api document: https://help.aliyun.com/api/domain-intl/resendemailverification.html +func (client *Client) ResendEmailVerification(request *ResendEmailVerificationRequest) (response *ResendEmailVerificationResponse, err error) { + response = CreateResendEmailVerificationResponse() + err = client.DoAction(request, response) + return +} + +// ResendEmailVerificationWithChan invokes the domain_intl.ResendEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/resendemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResendEmailVerificationWithChan(request *ResendEmailVerificationRequest) (<-chan *ResendEmailVerificationResponse, <-chan error) { + responseChan := make(chan *ResendEmailVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ResendEmailVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ResendEmailVerificationWithCallback invokes the domain_intl.ResendEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/resendemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResendEmailVerificationWithCallback(request *ResendEmailVerificationRequest, callback func(response *ResendEmailVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ResendEmailVerificationResponse + var err error + defer close(result) + response, err = client.ResendEmailVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ResendEmailVerificationRequest is the request struct for api ResendEmailVerification +type ResendEmailVerificationRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// ResendEmailVerificationResponse is the response struct for api ResendEmailVerification +type ResendEmailVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SuccessList []SendResult `json:"SuccessList" xml:"SuccessList"` + FailList []SendResult `json:"FailList" xml:"FailList"` +} + +// CreateResendEmailVerificationRequest creates a request to invoke ResendEmailVerification API +func CreateResendEmailVerificationRequest() (request *ResendEmailVerificationRequest) { + request = &ResendEmailVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "ResendEmailVerification", "", "") + return +} + +// CreateResendEmailVerificationResponse creates a response to parse from ResendEmailVerification response +func CreateResendEmailVerificationResponse() (response *ResendEmailVerificationResponse) { + response = &ResendEmailVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_creating_order_activate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_creating_order_activate.go new file mode 100644 index 0000000..587afbf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_creating_order_activate.go @@ -0,0 +1,115 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForCreatingOrderActivate invokes the domain_intl.SaveBatchTaskForCreatingOrderActivate API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforcreatingorderactivate.html +func (client *Client) SaveBatchTaskForCreatingOrderActivate(request *SaveBatchTaskForCreatingOrderActivateRequest) (response *SaveBatchTaskForCreatingOrderActivateResponse, err error) { + response = CreateSaveBatchTaskForCreatingOrderActivateResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForCreatingOrderActivateWithChan invokes the domain_intl.SaveBatchTaskForCreatingOrderActivate API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforcreatingorderactivate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderActivateWithChan(request *SaveBatchTaskForCreatingOrderActivateRequest) (<-chan *SaveBatchTaskForCreatingOrderActivateResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForCreatingOrderActivateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForCreatingOrderActivate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForCreatingOrderActivateWithCallback invokes the domain_intl.SaveBatchTaskForCreatingOrderActivate API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforcreatingorderactivate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderActivateWithCallback(request *SaveBatchTaskForCreatingOrderActivateRequest, callback func(response *SaveBatchTaskForCreatingOrderActivateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForCreatingOrderActivateResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForCreatingOrderActivate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForCreatingOrderActivateRequest is the request struct for api SaveBatchTaskForCreatingOrderActivate +type SaveBatchTaskForCreatingOrderActivateRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + OrderActivateParam *[]SaveBatchTaskForCreatingOrderActivateOrderActivateParam `position:"Query" name:"OrderActivateParam" type:"Repeated"` +} + +// SaveBatchTaskForCreatingOrderActivateOrderActivateParam is a repeated param struct in SaveBatchTaskForCreatingOrderActivateRequest +type SaveBatchTaskForCreatingOrderActivateOrderActivateParam struct { + DomainName string `name:"DomainName"` + SubscriptionDuration string `name:"SubscriptionDuration"` + RegistrantProfileId string `name:"RegistrantProfileId"` + EnableDomainProxy string `name:"EnableDomainProxy"` + PermitPremiumActivation string `name:"PermitPremiumActivation"` +} + +// SaveBatchTaskForCreatingOrderActivateResponse is the response struct for api SaveBatchTaskForCreatingOrderActivate +type SaveBatchTaskForCreatingOrderActivateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForCreatingOrderActivateRequest creates a request to invoke SaveBatchTaskForCreatingOrderActivate API +func CreateSaveBatchTaskForCreatingOrderActivateRequest() (request *SaveBatchTaskForCreatingOrderActivateRequest) { + request = &SaveBatchTaskForCreatingOrderActivateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveBatchTaskForCreatingOrderActivate", "", "") + return +} + +// CreateSaveBatchTaskForCreatingOrderActivateResponse creates a response to parse from SaveBatchTaskForCreatingOrderActivate response +func CreateSaveBatchTaskForCreatingOrderActivateResponse() (response *SaveBatchTaskForCreatingOrderActivateResponse) { + response = &SaveBatchTaskForCreatingOrderActivateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_creating_order_redeem.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_creating_order_redeem.go new file mode 100644 index 0000000..ed9c28d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_creating_order_redeem.go @@ -0,0 +1,112 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForCreatingOrderRedeem invokes the domain_intl.SaveBatchTaskForCreatingOrderRedeem API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforcreatingorderredeem.html +func (client *Client) SaveBatchTaskForCreatingOrderRedeem(request *SaveBatchTaskForCreatingOrderRedeemRequest) (response *SaveBatchTaskForCreatingOrderRedeemResponse, err error) { + response = CreateSaveBatchTaskForCreatingOrderRedeemResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForCreatingOrderRedeemWithChan invokes the domain_intl.SaveBatchTaskForCreatingOrderRedeem API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforcreatingorderredeem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderRedeemWithChan(request *SaveBatchTaskForCreatingOrderRedeemRequest) (<-chan *SaveBatchTaskForCreatingOrderRedeemResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForCreatingOrderRedeemResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForCreatingOrderRedeem(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForCreatingOrderRedeemWithCallback invokes the domain_intl.SaveBatchTaskForCreatingOrderRedeem API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforcreatingorderredeem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderRedeemWithCallback(request *SaveBatchTaskForCreatingOrderRedeemRequest, callback func(response *SaveBatchTaskForCreatingOrderRedeemResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForCreatingOrderRedeemResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForCreatingOrderRedeem(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForCreatingOrderRedeemRequest is the request struct for api SaveBatchTaskForCreatingOrderRedeem +type SaveBatchTaskForCreatingOrderRedeemRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + OrderRedeemParam *[]SaveBatchTaskForCreatingOrderRedeemOrderRedeemParam `position:"Query" name:"OrderRedeemParam" type:"Repeated"` +} + +// SaveBatchTaskForCreatingOrderRedeemOrderRedeemParam is a repeated param struct in SaveBatchTaskForCreatingOrderRedeemRequest +type SaveBatchTaskForCreatingOrderRedeemOrderRedeemParam struct { + DomainName string `name:"DomainName"` + CurrentExpirationDate string `name:"CurrentExpirationDate"` +} + +// SaveBatchTaskForCreatingOrderRedeemResponse is the response struct for api SaveBatchTaskForCreatingOrderRedeem +type SaveBatchTaskForCreatingOrderRedeemResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForCreatingOrderRedeemRequest creates a request to invoke SaveBatchTaskForCreatingOrderRedeem API +func CreateSaveBatchTaskForCreatingOrderRedeemRequest() (request *SaveBatchTaskForCreatingOrderRedeemRequest) { + request = &SaveBatchTaskForCreatingOrderRedeemRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveBatchTaskForCreatingOrderRedeem", "", "") + return +} + +// CreateSaveBatchTaskForCreatingOrderRedeemResponse creates a response to parse from SaveBatchTaskForCreatingOrderRedeem response +func CreateSaveBatchTaskForCreatingOrderRedeemResponse() (response *SaveBatchTaskForCreatingOrderRedeemResponse) { + response = &SaveBatchTaskForCreatingOrderRedeemResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_creating_order_renew.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_creating_order_renew.go new file mode 100644 index 0000000..296aea6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_creating_order_renew.go @@ -0,0 +1,113 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForCreatingOrderRenew invokes the domain_intl.SaveBatchTaskForCreatingOrderRenew API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforcreatingorderrenew.html +func (client *Client) SaveBatchTaskForCreatingOrderRenew(request *SaveBatchTaskForCreatingOrderRenewRequest) (response *SaveBatchTaskForCreatingOrderRenewResponse, err error) { + response = CreateSaveBatchTaskForCreatingOrderRenewResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForCreatingOrderRenewWithChan invokes the domain_intl.SaveBatchTaskForCreatingOrderRenew API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforcreatingorderrenew.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderRenewWithChan(request *SaveBatchTaskForCreatingOrderRenewRequest) (<-chan *SaveBatchTaskForCreatingOrderRenewResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForCreatingOrderRenewResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForCreatingOrderRenew(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForCreatingOrderRenewWithCallback invokes the domain_intl.SaveBatchTaskForCreatingOrderRenew API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforcreatingorderrenew.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForCreatingOrderRenewWithCallback(request *SaveBatchTaskForCreatingOrderRenewRequest, callback func(response *SaveBatchTaskForCreatingOrderRenewResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForCreatingOrderRenewResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForCreatingOrderRenew(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForCreatingOrderRenewRequest is the request struct for api SaveBatchTaskForCreatingOrderRenew +type SaveBatchTaskForCreatingOrderRenewRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + OrderRenewParam *[]SaveBatchTaskForCreatingOrderRenewOrderRenewParam `position:"Query" name:"OrderRenewParam" type:"Repeated"` +} + +// SaveBatchTaskForCreatingOrderRenewOrderRenewParam is a repeated param struct in SaveBatchTaskForCreatingOrderRenewRequest +type SaveBatchTaskForCreatingOrderRenewOrderRenewParam struct { + DomainName string `name:"DomainName"` + CurrentExpirationDate string `name:"CurrentExpirationDate"` + SubscriptionDuration string `name:"SubscriptionDuration"` +} + +// SaveBatchTaskForCreatingOrderRenewResponse is the response struct for api SaveBatchTaskForCreatingOrderRenew +type SaveBatchTaskForCreatingOrderRenewResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForCreatingOrderRenewRequest creates a request to invoke SaveBatchTaskForCreatingOrderRenew API +func CreateSaveBatchTaskForCreatingOrderRenewRequest() (request *SaveBatchTaskForCreatingOrderRenewRequest) { + request = &SaveBatchTaskForCreatingOrderRenewRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveBatchTaskForCreatingOrderRenew", "", "") + return +} + +// CreateSaveBatchTaskForCreatingOrderRenewResponse creates a response to parse from SaveBatchTaskForCreatingOrderRenew response +func CreateSaveBatchTaskForCreatingOrderRenewResponse() (response *SaveBatchTaskForCreatingOrderRenewResponse) { + response = &SaveBatchTaskForCreatingOrderRenewResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_domain_name_proxy_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_domain_name_proxy_service.go new file mode 100644 index 0000000..3f63c1c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_domain_name_proxy_service.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForDomainNameProxyService invokes the domain_intl.SaveBatchTaskForDomainNameProxyService API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskfordomainnameproxyservice.html +func (client *Client) SaveBatchTaskForDomainNameProxyService(request *SaveBatchTaskForDomainNameProxyServiceRequest) (response *SaveBatchTaskForDomainNameProxyServiceResponse, err error) { + response = CreateSaveBatchTaskForDomainNameProxyServiceResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForDomainNameProxyServiceWithChan invokes the domain_intl.SaveBatchTaskForDomainNameProxyService API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskfordomainnameproxyservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForDomainNameProxyServiceWithChan(request *SaveBatchTaskForDomainNameProxyServiceRequest) (<-chan *SaveBatchTaskForDomainNameProxyServiceResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForDomainNameProxyServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForDomainNameProxyService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForDomainNameProxyServiceWithCallback invokes the domain_intl.SaveBatchTaskForDomainNameProxyService API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskfordomainnameproxyservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForDomainNameProxyServiceWithCallback(request *SaveBatchTaskForDomainNameProxyServiceRequest, callback func(response *SaveBatchTaskForDomainNameProxyServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForDomainNameProxyServiceResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForDomainNameProxyService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForDomainNameProxyServiceRequest is the request struct for api SaveBatchTaskForDomainNameProxyService +type SaveBatchTaskForDomainNameProxyServiceRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + Status requests.Boolean `position:"Query" name:"status"` +} + +// SaveBatchTaskForDomainNameProxyServiceResponse is the response struct for api SaveBatchTaskForDomainNameProxyService +type SaveBatchTaskForDomainNameProxyServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForDomainNameProxyServiceRequest creates a request to invoke SaveBatchTaskForDomainNameProxyService API +func CreateSaveBatchTaskForDomainNameProxyServiceRequest() (request *SaveBatchTaskForDomainNameProxyServiceRequest) { + request = &SaveBatchTaskForDomainNameProxyServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveBatchTaskForDomainNameProxyService", "", "") + return +} + +// CreateSaveBatchTaskForDomainNameProxyServiceResponse creates a response to parse from SaveBatchTaskForDomainNameProxyService response +func CreateSaveBatchTaskForDomainNameProxyServiceResponse() (response *SaveBatchTaskForDomainNameProxyServiceResponse) { + response = &SaveBatchTaskForDomainNameProxyServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_modifying_domain_dns.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_modifying_domain_dns.go new file mode 100644 index 0000000..2df7746 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_modifying_domain_dns.go @@ -0,0 +1,108 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForModifyingDomainDns invokes the domain_intl.SaveBatchTaskForModifyingDomainDns API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskformodifyingdomaindns.html +func (client *Client) SaveBatchTaskForModifyingDomainDns(request *SaveBatchTaskForModifyingDomainDnsRequest) (response *SaveBatchTaskForModifyingDomainDnsResponse, err error) { + response = CreateSaveBatchTaskForModifyingDomainDnsResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForModifyingDomainDnsWithChan invokes the domain_intl.SaveBatchTaskForModifyingDomainDns API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskformodifyingdomaindns.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForModifyingDomainDnsWithChan(request *SaveBatchTaskForModifyingDomainDnsRequest) (<-chan *SaveBatchTaskForModifyingDomainDnsResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForModifyingDomainDnsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForModifyingDomainDns(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForModifyingDomainDnsWithCallback invokes the domain_intl.SaveBatchTaskForModifyingDomainDns API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskformodifyingdomaindns.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForModifyingDomainDnsWithCallback(request *SaveBatchTaskForModifyingDomainDnsRequest, callback func(response *SaveBatchTaskForModifyingDomainDnsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForModifyingDomainDnsResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForModifyingDomainDns(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForModifyingDomainDnsRequest is the request struct for api SaveBatchTaskForModifyingDomainDns +type SaveBatchTaskForModifyingDomainDnsRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + AliyunDns requests.Boolean `position:"Query" name:"AliyunDns"` + DomainNameServer *[]string `position:"Query" name:"DomainNameServer" type:"Repeated"` +} + +// SaveBatchTaskForModifyingDomainDnsResponse is the response struct for api SaveBatchTaskForModifyingDomainDns +type SaveBatchTaskForModifyingDomainDnsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForModifyingDomainDnsRequest creates a request to invoke SaveBatchTaskForModifyingDomainDns API +func CreateSaveBatchTaskForModifyingDomainDnsRequest() (request *SaveBatchTaskForModifyingDomainDnsRequest) { + request = &SaveBatchTaskForModifyingDomainDnsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveBatchTaskForModifyingDomainDns", "", "") + return +} + +// CreateSaveBatchTaskForModifyingDomainDnsResponse creates a response to parse from SaveBatchTaskForModifyingDomainDns response +func CreateSaveBatchTaskForModifyingDomainDnsResponse() (response *SaveBatchTaskForModifyingDomainDnsResponse) { + response = &SaveBatchTaskForModifyingDomainDnsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_transfer_prohibition_lock.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_transfer_prohibition_lock.go new file mode 100644 index 0000000..f50d187 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_transfer_prohibition_lock.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForTransferProhibitionLock invokes the domain_intl.SaveBatchTaskForTransferProhibitionLock API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskfortransferprohibitionlock.html +func (client *Client) SaveBatchTaskForTransferProhibitionLock(request *SaveBatchTaskForTransferProhibitionLockRequest) (response *SaveBatchTaskForTransferProhibitionLockResponse, err error) { + response = CreateSaveBatchTaskForTransferProhibitionLockResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForTransferProhibitionLockWithChan invokes the domain_intl.SaveBatchTaskForTransferProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskfortransferprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForTransferProhibitionLockWithChan(request *SaveBatchTaskForTransferProhibitionLockRequest) (<-chan *SaveBatchTaskForTransferProhibitionLockResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForTransferProhibitionLockResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForTransferProhibitionLock(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForTransferProhibitionLockWithCallback invokes the domain_intl.SaveBatchTaskForTransferProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskfortransferprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForTransferProhibitionLockWithCallback(request *SaveBatchTaskForTransferProhibitionLockRequest, callback func(response *SaveBatchTaskForTransferProhibitionLockResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForTransferProhibitionLockResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForTransferProhibitionLock(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForTransferProhibitionLockRequest is the request struct for api SaveBatchTaskForTransferProhibitionLock +type SaveBatchTaskForTransferProhibitionLockRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveBatchTaskForTransferProhibitionLockResponse is the response struct for api SaveBatchTaskForTransferProhibitionLock +type SaveBatchTaskForTransferProhibitionLockResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForTransferProhibitionLockRequest creates a request to invoke SaveBatchTaskForTransferProhibitionLock API +func CreateSaveBatchTaskForTransferProhibitionLockRequest() (request *SaveBatchTaskForTransferProhibitionLockRequest) { + request = &SaveBatchTaskForTransferProhibitionLockRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveBatchTaskForTransferProhibitionLock", "", "") + return +} + +// CreateSaveBatchTaskForTransferProhibitionLockResponse creates a response to parse from SaveBatchTaskForTransferProhibitionLock response +func CreateSaveBatchTaskForTransferProhibitionLockResponse() (response *SaveBatchTaskForTransferProhibitionLockResponse) { + response = &SaveBatchTaskForTransferProhibitionLockResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_update_prohibition_lock.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_update_prohibition_lock.go new file mode 100644 index 0000000..8be27b5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_update_prohibition_lock.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForUpdateProhibitionLock invokes the domain_intl.SaveBatchTaskForUpdateProhibitionLock API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforupdateprohibitionlock.html +func (client *Client) SaveBatchTaskForUpdateProhibitionLock(request *SaveBatchTaskForUpdateProhibitionLockRequest) (response *SaveBatchTaskForUpdateProhibitionLockResponse, err error) { + response = CreateSaveBatchTaskForUpdateProhibitionLockResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForUpdateProhibitionLockWithChan invokes the domain_intl.SaveBatchTaskForUpdateProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforupdateprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForUpdateProhibitionLockWithChan(request *SaveBatchTaskForUpdateProhibitionLockRequest) (<-chan *SaveBatchTaskForUpdateProhibitionLockResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForUpdateProhibitionLockResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForUpdateProhibitionLock(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForUpdateProhibitionLockWithCallback invokes the domain_intl.SaveBatchTaskForUpdateProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforupdateprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForUpdateProhibitionLockWithCallback(request *SaveBatchTaskForUpdateProhibitionLockRequest, callback func(response *SaveBatchTaskForUpdateProhibitionLockResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForUpdateProhibitionLockResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForUpdateProhibitionLock(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForUpdateProhibitionLockRequest is the request struct for api SaveBatchTaskForUpdateProhibitionLock +type SaveBatchTaskForUpdateProhibitionLockRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveBatchTaskForUpdateProhibitionLockResponse is the response struct for api SaveBatchTaskForUpdateProhibitionLock +type SaveBatchTaskForUpdateProhibitionLockResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForUpdateProhibitionLockRequest creates a request to invoke SaveBatchTaskForUpdateProhibitionLock API +func CreateSaveBatchTaskForUpdateProhibitionLockRequest() (request *SaveBatchTaskForUpdateProhibitionLockRequest) { + request = &SaveBatchTaskForUpdateProhibitionLockRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveBatchTaskForUpdateProhibitionLock", "", "") + return +} + +// CreateSaveBatchTaskForUpdateProhibitionLockResponse creates a response to parse from SaveBatchTaskForUpdateProhibitionLock response +func CreateSaveBatchTaskForUpdateProhibitionLockResponse() (response *SaveBatchTaskForUpdateProhibitionLockResponse) { + response = &SaveBatchTaskForUpdateProhibitionLockResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_updating_contact_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_updating_contact_info.go new file mode 100644 index 0000000..150cdf2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_batch_task_for_updating_contact_info.go @@ -0,0 +1,109 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForUpdatingContactInfo invokes the domain_intl.SaveBatchTaskForUpdatingContactInfo API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforupdatingcontactinfo.html +func (client *Client) SaveBatchTaskForUpdatingContactInfo(request *SaveBatchTaskForUpdatingContactInfoRequest) (response *SaveBatchTaskForUpdatingContactInfoResponse, err error) { + response = CreateSaveBatchTaskForUpdatingContactInfoResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForUpdatingContactInfoWithChan invokes the domain_intl.SaveBatchTaskForUpdatingContactInfo API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforupdatingcontactinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForUpdatingContactInfoWithChan(request *SaveBatchTaskForUpdatingContactInfoRequest) (<-chan *SaveBatchTaskForUpdatingContactInfoResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForUpdatingContactInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForUpdatingContactInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForUpdatingContactInfoWithCallback invokes the domain_intl.SaveBatchTaskForUpdatingContactInfo API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savebatchtaskforupdatingcontactinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveBatchTaskForUpdatingContactInfoWithCallback(request *SaveBatchTaskForUpdatingContactInfoRequest, callback func(response *SaveBatchTaskForUpdatingContactInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForUpdatingContactInfoResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForUpdatingContactInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForUpdatingContactInfoRequest is the request struct for api SaveBatchTaskForUpdatingContactInfo +type SaveBatchTaskForUpdatingContactInfoRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + ContactType string `position:"Query" name:"ContactType"` + AddTransferLock requests.Boolean `position:"Query" name:"AddTransferLock"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` +} + +// SaveBatchTaskForUpdatingContactInfoResponse is the response struct for api SaveBatchTaskForUpdatingContactInfo +type SaveBatchTaskForUpdatingContactInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForUpdatingContactInfoRequest creates a request to invoke SaveBatchTaskForUpdatingContactInfo API +func CreateSaveBatchTaskForUpdatingContactInfoRequest() (request *SaveBatchTaskForUpdatingContactInfoRequest) { + request = &SaveBatchTaskForUpdatingContactInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveBatchTaskForUpdatingContactInfo", "", "") + return +} + +// CreateSaveBatchTaskForUpdatingContactInfoResponse creates a response to parse from SaveBatchTaskForUpdatingContactInfo response +func CreateSaveBatchTaskForUpdatingContactInfoResponse() (response *SaveBatchTaskForUpdatingContactInfoResponse) { + response = &SaveBatchTaskForUpdatingContactInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_registrant_profile.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_registrant_profile.go new file mode 100644 index 0000000..9108936 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_registrant_profile.go @@ -0,0 +1,118 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveRegistrantProfile invokes the domain_intl.SaveRegistrantProfile API synchronously +// api document: https://help.aliyun.com/api/domain-intl/saveregistrantprofile.html +func (client *Client) SaveRegistrantProfile(request *SaveRegistrantProfileRequest) (response *SaveRegistrantProfileResponse, err error) { + response = CreateSaveRegistrantProfileResponse() + err = client.DoAction(request, response) + return +} + +// SaveRegistrantProfileWithChan invokes the domain_intl.SaveRegistrantProfile API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/saveregistrantprofile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveRegistrantProfileWithChan(request *SaveRegistrantProfileRequest) (<-chan *SaveRegistrantProfileResponse, <-chan error) { + responseChan := make(chan *SaveRegistrantProfileResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveRegistrantProfile(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveRegistrantProfileWithCallback invokes the domain_intl.SaveRegistrantProfile API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/saveregistrantprofile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveRegistrantProfileWithCallback(request *SaveRegistrantProfileRequest, callback func(response *SaveRegistrantProfileResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveRegistrantProfileResponse + var err error + defer close(result) + response, err = client.SaveRegistrantProfile(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveRegistrantProfileRequest is the request struct for api SaveRegistrantProfile +type SaveRegistrantProfileRequest struct { + *requests.RpcRequest + Country string `position:"Query" name:"Country"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + DefaultRegistrantProfile requests.Boolean `position:"Query" name:"DefaultRegistrantProfile"` + City string `position:"Query" name:"City"` + RegistrantOrganization string `position:"Query" name:"RegistrantOrganization"` + RegistrantName string `position:"Query" name:"RegistrantName"` + Province string `position:"Query" name:"Province"` + Address string `position:"Query" name:"Address"` + Email string `position:"Query" name:"Email"` + PostalCode string `position:"Query" name:"PostalCode"` + TelArea string `position:"Query" name:"TelArea"` + Telephone string `position:"Query" name:"Telephone"` + TelExt string `position:"Query" name:"TelExt"` +} + +// SaveRegistrantProfileResponse is the response struct for api SaveRegistrantProfile +type SaveRegistrantProfileResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegistrantProfileId int `json:"RegistrantProfileId" xml:"RegistrantProfileId"` +} + +// CreateSaveRegistrantProfileRequest creates a request to invoke SaveRegistrantProfile API +func CreateSaveRegistrantProfileRequest() (request *SaveRegistrantProfileRequest) { + request = &SaveRegistrantProfileRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveRegistrantProfile", "", "") + return +} + +// CreateSaveRegistrantProfileResponse creates a response to parse from SaveRegistrantProfile response +func CreateSaveRegistrantProfileResponse() (response *SaveRegistrantProfileResponse) { + response = &SaveRegistrantProfileResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_creating_dns_host.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_creating_dns_host.go new file mode 100644 index 0000000..9f9ea1c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_creating_dns_host.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCreatingDnsHost invokes the domain_intl.SaveSingleTaskForCreatingDnsHost API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingdnshost.html +func (client *Client) SaveSingleTaskForCreatingDnsHost(request *SaveSingleTaskForCreatingDnsHostRequest) (response *SaveSingleTaskForCreatingDnsHostResponse, err error) { + response = CreateSaveSingleTaskForCreatingDnsHostResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCreatingDnsHostWithChan invokes the domain_intl.SaveSingleTaskForCreatingDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingdnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingDnsHostWithChan(request *SaveSingleTaskForCreatingDnsHostRequest) (<-chan *SaveSingleTaskForCreatingDnsHostResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCreatingDnsHostResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCreatingDnsHost(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCreatingDnsHostWithCallback invokes the domain_intl.SaveSingleTaskForCreatingDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingdnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingDnsHostWithCallback(request *SaveSingleTaskForCreatingDnsHostRequest, callback func(response *SaveSingleTaskForCreatingDnsHostResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCreatingDnsHostResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCreatingDnsHost(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCreatingDnsHostRequest is the request struct for api SaveSingleTaskForCreatingDnsHost +type SaveSingleTaskForCreatingDnsHostRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + Lang string `position:"Query" name:"Lang"` + DnsName string `position:"Query" name:"DnsName"` + Ip *[]string `position:"Query" name:"Ip" type:"Repeated"` +} + +// SaveSingleTaskForCreatingDnsHostResponse is the response struct for api SaveSingleTaskForCreatingDnsHost +type SaveSingleTaskForCreatingDnsHostResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCreatingDnsHostRequest creates a request to invoke SaveSingleTaskForCreatingDnsHost API +func CreateSaveSingleTaskForCreatingDnsHostRequest() (request *SaveSingleTaskForCreatingDnsHostRequest) { + request = &SaveSingleTaskForCreatingDnsHostRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForCreatingDnsHost", "", "") + return +} + +// CreateSaveSingleTaskForCreatingDnsHostResponse creates a response to parse from SaveSingleTaskForCreatingDnsHost response +func CreateSaveSingleTaskForCreatingDnsHostResponse() (response *SaveSingleTaskForCreatingDnsHostResponse) { + response = &SaveSingleTaskForCreatingDnsHostResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_creating_order_activate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_creating_order_activate.go new file mode 100644 index 0000000..3dae0a1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_creating_order_activate.go @@ -0,0 +1,110 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCreatingOrderActivate invokes the domain_intl.SaveSingleTaskForCreatingOrderActivate API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingorderactivate.html +func (client *Client) SaveSingleTaskForCreatingOrderActivate(request *SaveSingleTaskForCreatingOrderActivateRequest) (response *SaveSingleTaskForCreatingOrderActivateResponse, err error) { + response = CreateSaveSingleTaskForCreatingOrderActivateResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCreatingOrderActivateWithChan invokes the domain_intl.SaveSingleTaskForCreatingOrderActivate API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingorderactivate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderActivateWithChan(request *SaveSingleTaskForCreatingOrderActivateRequest) (<-chan *SaveSingleTaskForCreatingOrderActivateResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCreatingOrderActivateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCreatingOrderActivate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCreatingOrderActivateWithCallback invokes the domain_intl.SaveSingleTaskForCreatingOrderActivate API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingorderactivate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderActivateWithCallback(request *SaveSingleTaskForCreatingOrderActivateRequest, callback func(response *SaveSingleTaskForCreatingOrderActivateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCreatingOrderActivateResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCreatingOrderActivate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCreatingOrderActivateRequest is the request struct for api SaveSingleTaskForCreatingOrderActivate +type SaveSingleTaskForCreatingOrderActivateRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + SubscriptionDuration requests.Integer `position:"Query" name:"SubscriptionDuration"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + EnableDomainProxy requests.Boolean `position:"Query" name:"EnableDomainProxy"` + PermitPremiumActivation requests.Boolean `position:"Query" name:"PermitPremiumActivation"` +} + +// SaveSingleTaskForCreatingOrderActivateResponse is the response struct for api SaveSingleTaskForCreatingOrderActivate +type SaveSingleTaskForCreatingOrderActivateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCreatingOrderActivateRequest creates a request to invoke SaveSingleTaskForCreatingOrderActivate API +func CreateSaveSingleTaskForCreatingOrderActivateRequest() (request *SaveSingleTaskForCreatingOrderActivateRequest) { + request = &SaveSingleTaskForCreatingOrderActivateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForCreatingOrderActivate", "", "") + return +} + +// CreateSaveSingleTaskForCreatingOrderActivateResponse creates a response to parse from SaveSingleTaskForCreatingOrderActivate response +func CreateSaveSingleTaskForCreatingOrderActivateResponse() (response *SaveSingleTaskForCreatingOrderActivateResponse) { + response = &SaveSingleTaskForCreatingOrderActivateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_creating_order_redeem.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_creating_order_redeem.go new file mode 100644 index 0000000..c44f1ad --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_creating_order_redeem.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCreatingOrderRedeem invokes the domain_intl.SaveSingleTaskForCreatingOrderRedeem API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingorderredeem.html +func (client *Client) SaveSingleTaskForCreatingOrderRedeem(request *SaveSingleTaskForCreatingOrderRedeemRequest) (response *SaveSingleTaskForCreatingOrderRedeemResponse, err error) { + response = CreateSaveSingleTaskForCreatingOrderRedeemResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCreatingOrderRedeemWithChan invokes the domain_intl.SaveSingleTaskForCreatingOrderRedeem API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingorderredeem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderRedeemWithChan(request *SaveSingleTaskForCreatingOrderRedeemRequest) (<-chan *SaveSingleTaskForCreatingOrderRedeemResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCreatingOrderRedeemResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCreatingOrderRedeem(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCreatingOrderRedeemWithCallback invokes the domain_intl.SaveSingleTaskForCreatingOrderRedeem API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingorderredeem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderRedeemWithCallback(request *SaveSingleTaskForCreatingOrderRedeemRequest, callback func(response *SaveSingleTaskForCreatingOrderRedeemResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCreatingOrderRedeemResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCreatingOrderRedeem(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCreatingOrderRedeemRequest is the request struct for api SaveSingleTaskForCreatingOrderRedeem +type SaveSingleTaskForCreatingOrderRedeemRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + CurrentExpirationDate requests.Integer `position:"Query" name:"CurrentExpirationDate"` +} + +// SaveSingleTaskForCreatingOrderRedeemResponse is the response struct for api SaveSingleTaskForCreatingOrderRedeem +type SaveSingleTaskForCreatingOrderRedeemResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCreatingOrderRedeemRequest creates a request to invoke SaveSingleTaskForCreatingOrderRedeem API +func CreateSaveSingleTaskForCreatingOrderRedeemRequest() (request *SaveSingleTaskForCreatingOrderRedeemRequest) { + request = &SaveSingleTaskForCreatingOrderRedeemRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForCreatingOrderRedeem", "", "") + return +} + +// CreateSaveSingleTaskForCreatingOrderRedeemResponse creates a response to parse from SaveSingleTaskForCreatingOrderRedeem response +func CreateSaveSingleTaskForCreatingOrderRedeemResponse() (response *SaveSingleTaskForCreatingOrderRedeemResponse) { + response = &SaveSingleTaskForCreatingOrderRedeemResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_creating_order_renew.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_creating_order_renew.go new file mode 100644 index 0000000..9664c00 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_creating_order_renew.go @@ -0,0 +1,108 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCreatingOrderRenew invokes the domain_intl.SaveSingleTaskForCreatingOrderRenew API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingorderrenew.html +func (client *Client) SaveSingleTaskForCreatingOrderRenew(request *SaveSingleTaskForCreatingOrderRenewRequest) (response *SaveSingleTaskForCreatingOrderRenewResponse, err error) { + response = CreateSaveSingleTaskForCreatingOrderRenewResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCreatingOrderRenewWithChan invokes the domain_intl.SaveSingleTaskForCreatingOrderRenew API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingorderrenew.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderRenewWithChan(request *SaveSingleTaskForCreatingOrderRenewRequest) (<-chan *SaveSingleTaskForCreatingOrderRenewResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCreatingOrderRenewResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCreatingOrderRenew(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCreatingOrderRenewWithCallback invokes the domain_intl.SaveSingleTaskForCreatingOrderRenew API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforcreatingorderrenew.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForCreatingOrderRenewWithCallback(request *SaveSingleTaskForCreatingOrderRenewRequest, callback func(response *SaveSingleTaskForCreatingOrderRenewResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCreatingOrderRenewResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCreatingOrderRenew(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCreatingOrderRenewRequest is the request struct for api SaveSingleTaskForCreatingOrderRenew +type SaveSingleTaskForCreatingOrderRenewRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + SubscriptionDuration requests.Integer `position:"Query" name:"SubscriptionDuration"` + CurrentExpirationDate requests.Integer `position:"Query" name:"CurrentExpirationDate"` +} + +// SaveSingleTaskForCreatingOrderRenewResponse is the response struct for api SaveSingleTaskForCreatingOrderRenew +type SaveSingleTaskForCreatingOrderRenewResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCreatingOrderRenewRequest creates a request to invoke SaveSingleTaskForCreatingOrderRenew API +func CreateSaveSingleTaskForCreatingOrderRenewRequest() (request *SaveSingleTaskForCreatingOrderRenewRequest) { + request = &SaveSingleTaskForCreatingOrderRenewRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForCreatingOrderRenew", "", "") + return +} + +// CreateSaveSingleTaskForCreatingOrderRenewResponse creates a response to parse from SaveSingleTaskForCreatingOrderRenew response +func CreateSaveSingleTaskForCreatingOrderRenewResponse() (response *SaveSingleTaskForCreatingOrderRenewResponse) { + response = &SaveSingleTaskForCreatingOrderRenewResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_domain_name_proxy_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_domain_name_proxy_service.go new file mode 100644 index 0000000..8e3a717 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_domain_name_proxy_service.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForDomainNameProxyService invokes the domain_intl.SaveSingleTaskForDomainNameProxyService API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskfordomainnameproxyservice.html +func (client *Client) SaveSingleTaskForDomainNameProxyService(request *SaveSingleTaskForDomainNameProxyServiceRequest) (response *SaveSingleTaskForDomainNameProxyServiceResponse, err error) { + response = CreateSaveSingleTaskForDomainNameProxyServiceResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForDomainNameProxyServiceWithChan invokes the domain_intl.SaveSingleTaskForDomainNameProxyService API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskfordomainnameproxyservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForDomainNameProxyServiceWithChan(request *SaveSingleTaskForDomainNameProxyServiceRequest) (<-chan *SaveSingleTaskForDomainNameProxyServiceResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForDomainNameProxyServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForDomainNameProxyService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForDomainNameProxyServiceWithCallback invokes the domain_intl.SaveSingleTaskForDomainNameProxyService API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskfordomainnameproxyservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForDomainNameProxyServiceWithCallback(request *SaveSingleTaskForDomainNameProxyServiceRequest, callback func(response *SaveSingleTaskForDomainNameProxyServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForDomainNameProxyServiceResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForDomainNameProxyService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForDomainNameProxyServiceRequest is the request struct for api SaveSingleTaskForDomainNameProxyService +type SaveSingleTaskForDomainNameProxyServiceRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveSingleTaskForDomainNameProxyServiceResponse is the response struct for api SaveSingleTaskForDomainNameProxyService +type SaveSingleTaskForDomainNameProxyServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForDomainNameProxyServiceRequest creates a request to invoke SaveSingleTaskForDomainNameProxyService API +func CreateSaveSingleTaskForDomainNameProxyServiceRequest() (request *SaveSingleTaskForDomainNameProxyServiceRequest) { + request = &SaveSingleTaskForDomainNameProxyServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForDomainNameProxyService", "", "") + return +} + +// CreateSaveSingleTaskForDomainNameProxyServiceResponse creates a response to parse from SaveSingleTaskForDomainNameProxyService response +func CreateSaveSingleTaskForDomainNameProxyServiceResponse() (response *SaveSingleTaskForDomainNameProxyServiceResponse) { + response = &SaveSingleTaskForDomainNameProxyServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_modifying_dns_host.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_modifying_dns_host.go new file mode 100644 index 0000000..da4db6e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_modifying_dns_host.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForModifyingDnsHost invokes the domain_intl.SaveSingleTaskForModifyingDnsHost API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskformodifyingdnshost.html +func (client *Client) SaveSingleTaskForModifyingDnsHost(request *SaveSingleTaskForModifyingDnsHostRequest) (response *SaveSingleTaskForModifyingDnsHostResponse, err error) { + response = CreateSaveSingleTaskForModifyingDnsHostResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForModifyingDnsHostWithChan invokes the domain_intl.SaveSingleTaskForModifyingDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskformodifyingdnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForModifyingDnsHostWithChan(request *SaveSingleTaskForModifyingDnsHostRequest) (<-chan *SaveSingleTaskForModifyingDnsHostResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForModifyingDnsHostResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForModifyingDnsHost(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForModifyingDnsHostWithCallback invokes the domain_intl.SaveSingleTaskForModifyingDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskformodifyingdnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForModifyingDnsHostWithCallback(request *SaveSingleTaskForModifyingDnsHostRequest, callback func(response *SaveSingleTaskForModifyingDnsHostResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForModifyingDnsHostResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForModifyingDnsHost(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForModifyingDnsHostRequest is the request struct for api SaveSingleTaskForModifyingDnsHost +type SaveSingleTaskForModifyingDnsHostRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + Lang string `position:"Query" name:"Lang"` + DnsName string `position:"Query" name:"DnsName"` + Ip *[]string `position:"Query" name:"Ip" type:"Repeated"` +} + +// SaveSingleTaskForModifyingDnsHostResponse is the response struct for api SaveSingleTaskForModifyingDnsHost +type SaveSingleTaskForModifyingDnsHostResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForModifyingDnsHostRequest creates a request to invoke SaveSingleTaskForModifyingDnsHost API +func CreateSaveSingleTaskForModifyingDnsHostRequest() (request *SaveSingleTaskForModifyingDnsHostRequest) { + request = &SaveSingleTaskForModifyingDnsHostRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForModifyingDnsHost", "", "") + return +} + +// CreateSaveSingleTaskForModifyingDnsHostResponse creates a response to parse from SaveSingleTaskForModifyingDnsHost response +func CreateSaveSingleTaskForModifyingDnsHostResponse() (response *SaveSingleTaskForModifyingDnsHostResponse) { + response = &SaveSingleTaskForModifyingDnsHostResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_synchronizing_dns_host.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_synchronizing_dns_host.go new file mode 100644 index 0000000..99fb3b1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_synchronizing_dns_host.go @@ -0,0 +1,105 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForSynchronizingDnsHost invokes the domain_intl.SaveSingleTaskForSynchronizingDnsHost API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforsynchronizingdnshost.html +func (client *Client) SaveSingleTaskForSynchronizingDnsHost(request *SaveSingleTaskForSynchronizingDnsHostRequest) (response *SaveSingleTaskForSynchronizingDnsHostResponse, err error) { + response = CreateSaveSingleTaskForSynchronizingDnsHostResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForSynchronizingDnsHostWithChan invokes the domain_intl.SaveSingleTaskForSynchronizingDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforsynchronizingdnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForSynchronizingDnsHostWithChan(request *SaveSingleTaskForSynchronizingDnsHostRequest) (<-chan *SaveSingleTaskForSynchronizingDnsHostResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForSynchronizingDnsHostResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForSynchronizingDnsHost(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForSynchronizingDnsHostWithCallback invokes the domain_intl.SaveSingleTaskForSynchronizingDnsHost API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforsynchronizingdnshost.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForSynchronizingDnsHostWithCallback(request *SaveSingleTaskForSynchronizingDnsHostRequest, callback func(response *SaveSingleTaskForSynchronizingDnsHostResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForSynchronizingDnsHostResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForSynchronizingDnsHost(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForSynchronizingDnsHostRequest is the request struct for api SaveSingleTaskForSynchronizingDnsHost +type SaveSingleTaskForSynchronizingDnsHostRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForSynchronizingDnsHostResponse is the response struct for api SaveSingleTaskForSynchronizingDnsHost +type SaveSingleTaskForSynchronizingDnsHostResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForSynchronizingDnsHostRequest creates a request to invoke SaveSingleTaskForSynchronizingDnsHost API +func CreateSaveSingleTaskForSynchronizingDnsHostRequest() (request *SaveSingleTaskForSynchronizingDnsHostRequest) { + request = &SaveSingleTaskForSynchronizingDnsHostRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForSynchronizingDnsHost", "", "") + return +} + +// CreateSaveSingleTaskForSynchronizingDnsHostResponse creates a response to parse from SaveSingleTaskForSynchronizingDnsHost response +func CreateSaveSingleTaskForSynchronizingDnsHostResponse() (response *SaveSingleTaskForSynchronizingDnsHostResponse) { + response = &SaveSingleTaskForSynchronizingDnsHostResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_transfer_prohibition_lock.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_transfer_prohibition_lock.go new file mode 100644 index 0000000..dd5be7e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_transfer_prohibition_lock.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForTransferProhibitionLock invokes the domain_intl.SaveSingleTaskForTransferProhibitionLock API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskfortransferprohibitionlock.html +func (client *Client) SaveSingleTaskForTransferProhibitionLock(request *SaveSingleTaskForTransferProhibitionLockRequest) (response *SaveSingleTaskForTransferProhibitionLockResponse, err error) { + response = CreateSaveSingleTaskForTransferProhibitionLockResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForTransferProhibitionLockWithChan invokes the domain_intl.SaveSingleTaskForTransferProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskfortransferprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForTransferProhibitionLockWithChan(request *SaveSingleTaskForTransferProhibitionLockRequest) (<-chan *SaveSingleTaskForTransferProhibitionLockResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForTransferProhibitionLockResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForTransferProhibitionLock(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForTransferProhibitionLockWithCallback invokes the domain_intl.SaveSingleTaskForTransferProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskfortransferprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForTransferProhibitionLockWithCallback(request *SaveSingleTaskForTransferProhibitionLockRequest, callback func(response *SaveSingleTaskForTransferProhibitionLockResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForTransferProhibitionLockResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForTransferProhibitionLock(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForTransferProhibitionLockRequest is the request struct for api SaveSingleTaskForTransferProhibitionLock +type SaveSingleTaskForTransferProhibitionLockRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveSingleTaskForTransferProhibitionLockResponse is the response struct for api SaveSingleTaskForTransferProhibitionLock +type SaveSingleTaskForTransferProhibitionLockResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForTransferProhibitionLockRequest creates a request to invoke SaveSingleTaskForTransferProhibitionLock API +func CreateSaveSingleTaskForTransferProhibitionLockRequest() (request *SaveSingleTaskForTransferProhibitionLockRequest) { + request = &SaveSingleTaskForTransferProhibitionLockRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForTransferProhibitionLock", "", "") + return +} + +// CreateSaveSingleTaskForTransferProhibitionLockResponse creates a response to parse from SaveSingleTaskForTransferProhibitionLock response +func CreateSaveSingleTaskForTransferProhibitionLockResponse() (response *SaveSingleTaskForTransferProhibitionLockResponse) { + response = &SaveSingleTaskForTransferProhibitionLockResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_update_prohibition_lock.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_update_prohibition_lock.go new file mode 100644 index 0000000..bc759eb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_update_prohibition_lock.go @@ -0,0 +1,107 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForUpdateProhibitionLock invokes the domain_intl.SaveSingleTaskForUpdateProhibitionLock API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforupdateprohibitionlock.html +func (client *Client) SaveSingleTaskForUpdateProhibitionLock(request *SaveSingleTaskForUpdateProhibitionLockRequest) (response *SaveSingleTaskForUpdateProhibitionLockResponse, err error) { + response = CreateSaveSingleTaskForUpdateProhibitionLockResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForUpdateProhibitionLockWithChan invokes the domain_intl.SaveSingleTaskForUpdateProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforupdateprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForUpdateProhibitionLockWithChan(request *SaveSingleTaskForUpdateProhibitionLockRequest) (<-chan *SaveSingleTaskForUpdateProhibitionLockResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForUpdateProhibitionLockResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForUpdateProhibitionLock(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForUpdateProhibitionLockWithCallback invokes the domain_intl.SaveSingleTaskForUpdateProhibitionLock API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforupdateprohibitionlock.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForUpdateProhibitionLockWithCallback(request *SaveSingleTaskForUpdateProhibitionLockRequest, callback func(response *SaveSingleTaskForUpdateProhibitionLockResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForUpdateProhibitionLockResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForUpdateProhibitionLock(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForUpdateProhibitionLockRequest is the request struct for api SaveSingleTaskForUpdateProhibitionLock +type SaveSingleTaskForUpdateProhibitionLockRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveSingleTaskForUpdateProhibitionLockResponse is the response struct for api SaveSingleTaskForUpdateProhibitionLock +type SaveSingleTaskForUpdateProhibitionLockResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForUpdateProhibitionLockRequest creates a request to invoke SaveSingleTaskForUpdateProhibitionLock API +func CreateSaveSingleTaskForUpdateProhibitionLockRequest() (request *SaveSingleTaskForUpdateProhibitionLockRequest) { + request = &SaveSingleTaskForUpdateProhibitionLockRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForUpdateProhibitionLock", "", "") + return +} + +// CreateSaveSingleTaskForUpdateProhibitionLockResponse creates a response to parse from SaveSingleTaskForUpdateProhibitionLock response +func CreateSaveSingleTaskForUpdateProhibitionLockResponse() (response *SaveSingleTaskForUpdateProhibitionLockResponse) { + response = &SaveSingleTaskForUpdateProhibitionLockResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_updating_contact_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_updating_contact_info.go new file mode 100644 index 0000000..8d29297 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/save_single_task_for_updating_contact_info.go @@ -0,0 +1,110 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForUpdatingContactInfo invokes the domain_intl.SaveSingleTaskForUpdatingContactInfo API synchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforupdatingcontactinfo.html +func (client *Client) SaveSingleTaskForUpdatingContactInfo(request *SaveSingleTaskForUpdatingContactInfoRequest) (response *SaveSingleTaskForUpdatingContactInfoResponse, err error) { + response = CreateSaveSingleTaskForUpdatingContactInfoResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForUpdatingContactInfoWithChan invokes the domain_intl.SaveSingleTaskForUpdatingContactInfo API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforupdatingcontactinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForUpdatingContactInfoWithChan(request *SaveSingleTaskForUpdatingContactInfoRequest) (<-chan *SaveSingleTaskForUpdatingContactInfoResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForUpdatingContactInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForUpdatingContactInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForUpdatingContactInfoWithCallback invokes the domain_intl.SaveSingleTaskForUpdatingContactInfo API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/savesingletaskforupdatingcontactinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SaveSingleTaskForUpdatingContactInfoWithCallback(request *SaveSingleTaskForUpdatingContactInfoRequest, callback func(response *SaveSingleTaskForUpdatingContactInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForUpdatingContactInfoResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForUpdatingContactInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForUpdatingContactInfoRequest is the request struct for api SaveSingleTaskForUpdatingContactInfo +type SaveSingleTaskForUpdatingContactInfoRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + InstanceId string `position:"Query" name:"InstanceId"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + ContactType string `position:"Query" name:"ContactType"` + AddTransferLock requests.Boolean `position:"Query" name:"AddTransferLock"` +} + +// SaveSingleTaskForUpdatingContactInfoResponse is the response struct for api SaveSingleTaskForUpdatingContactInfo +type SaveSingleTaskForUpdatingContactInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForUpdatingContactInfoRequest creates a request to invoke SaveSingleTaskForUpdatingContactInfo API +func CreateSaveSingleTaskForUpdatingContactInfoRequest() (request *SaveSingleTaskForUpdatingContactInfoRequest) { + request = &SaveSingleTaskForUpdatingContactInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SaveSingleTaskForUpdatingContactInfo", "", "") + return +} + +// CreateSaveSingleTaskForUpdatingContactInfoResponse creates a response to parse from SaveSingleTaskForUpdatingContactInfo response +func CreateSaveSingleTaskForUpdatingContactInfoResponse() (response *SaveSingleTaskForUpdatingContactInfoResponse) { + response = &SaveSingleTaskForUpdatingContactInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_change_log.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_change_log.go new file mode 100644 index 0000000..a434ee8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_change_log.go @@ -0,0 +1,26 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ChangeLog is a nested struct in domain_intl response +type ChangeLog struct { + DomainName string `json:"DomainName" xml:"DomainName"` + Result string `json:"Result" xml:"Result"` + Operation string `json:"Operation" xml:"Operation"` + OperationIPAddress string `json:"OperationIPAddress" xml:"OperationIPAddress"` + Details string `json:"Details" xml:"Details"` + Time string `json:"Time" xml:"Time"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_current_page_cursor.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_current_page_cursor.go new file mode 100644 index 0000000..536a755 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_current_page_cursor.go @@ -0,0 +1,33 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CurrentPageCursor is a nested struct in domain_intl response +type CurrentPageCursor struct { + Clientip string `json:"Clientip" xml:"Clientip"` + TaskDetailNo string `json:"TaskDetailNo" xml:"TaskDetailNo"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + TaskType string `json:"TaskType" xml:"TaskType"` + TaskNum int `json:"TaskNum" xml:"TaskNum"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + CreateTimeLong int `json:"CreateTimeLong" xml:"CreateTimeLong"` + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + TryCount int `json:"TryCount" xml:"TryCount"` + DomainName string `json:"DomainName" xml:"DomainName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_data_in_list_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_data_in_list_email_verification.go new file mode 100644 index 0000000..bc40bf0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_data_in_list_email_verification.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInListEmailVerification is a nested struct in domain_intl response +type DataInListEmailVerification struct { + EmailVerification []EmailVerification `json:"EmailVerification" xml:"EmailVerification"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_data_in_query_change_log_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_data_in_query_change_log_list.go new file mode 100644 index 0000000..eba6c16 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_data_in_query_change_log_list.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryChangeLogList is a nested struct in domain_intl response +type DataInQueryChangeLogList struct { + ChangeLog []ChangeLog `json:"ChangeLog" xml:"ChangeLog"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_data_in_query_domain_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_data_in_query_domain_list.go new file mode 100644 index 0000000..428706c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_data_in_query_domain_list.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryDomainList is a nested struct in domain_intl response +type DataInQueryDomainList struct { + Domain []Domain `json:"Domain" xml:"Domain"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_data_in_query_task_detail_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_data_in_query_task_detail_list.go new file mode 100644 index 0000000..bd75b34 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_data_in_query_task_detail_list.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryTaskDetailList is a nested struct in domain_intl response +type DataInQueryTaskDetailList struct { + TaskDetail []TaskDetail `json:"TaskDetail" xml:"TaskDetail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_data_in_query_task_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_data_in_query_task_list.go new file mode 100644 index 0000000..27039f3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_data_in_query_task_list.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryTaskList is a nested struct in domain_intl response +type DataInQueryTaskList struct { + TaskInfo []TaskInfo `json:"TaskInfo" xml:"TaskInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_dns_host.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_dns_host.go new file mode 100644 index 0000000..5d1beb9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_dns_host.go @@ -0,0 +1,22 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DnsHost is a nested struct in domain_intl response +type DnsHost struct { + DnsName string `json:"DnsName" xml:"DnsName"` + IpList []string `json:"IpList" xml:"IpList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_dns_host_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_dns_host_list.go new file mode 100644 index 0000000..dd4da3d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_dns_host_list.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DnsHostList is a nested struct in domain_intl response +type DnsHostList struct { + DnsHost []DnsHost `json:"DnsHost" xml:"DnsHost"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_dns_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_dns_list.go new file mode 100644 index 0000000..73e604d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_dns_list.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DnsList is a nested struct in domain_intl response +type DnsList struct { + Dns []string `json:"Dns" xml:"Dns"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_domain.go new file mode 100644 index 0000000..06fc9ec --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_domain.go @@ -0,0 +1,30 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Domain is a nested struct in domain_intl response +type Domain struct { + DomainName string `json:"DomainName" xml:"DomainName"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + ExpirationDate string `json:"ExpirationDate" xml:"ExpirationDate"` + RegistrationDate string `json:"RegistrationDate" xml:"RegistrationDate"` + DomainType string `json:"DomainType" xml:"DomainType"` + DomainStatus string `json:"DomainStatus" xml:"DomainStatus"` + ProductId string `json:"ProductId" xml:"ProductId"` + ExpirationDateLong int `json:"ExpirationDateLong" xml:"ExpirationDateLong"` + RegistrationDateLong int `json:"RegistrationDateLong" xml:"RegistrationDateLong"` + Premium bool `json:"Premium" xml:"Premium"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_email_verification.go new file mode 100644 index 0000000..45efe6c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_email_verification.go @@ -0,0 +1,30 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EmailVerification is a nested struct in domain_intl response +type EmailVerification struct { + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + Email string `json:"Email" xml:"Email"` + UserId string `json:"UserId" xml:"UserId"` + EmailVerificationNo string `json:"EmailVerificationNo" xml:"EmailVerificationNo"` + TokenSendTime string `json:"TokenSendTime" xml:"TokenSendTime"` + VerificationStatus int `json:"VerificationStatus" xml:"VerificationStatus"` + VerificationTime string `json:"VerificationTime" xml:"VerificationTime"` + SendIp string `json:"SendIp" xml:"SendIp"` + ConfirmIp string `json:"ConfirmIp" xml:"ConfirmIp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_exist_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_exist_list.go new file mode 100644 index 0000000..4209020 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_exist_list.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ExistList is a nested struct in domain_intl response +type ExistList struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_fail_list_in_delete_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_fail_list_in_delete_email_verification.go new file mode 100644 index 0000000..46d462d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_fail_list_in_delete_email_verification.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailListInDeleteEmailVerification is a nested struct in domain_intl response +type FailListInDeleteEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_fail_list_in_resend_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_fail_list_in_resend_email_verification.go new file mode 100644 index 0000000..7fe38cc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_fail_list_in_resend_email_verification.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailListInResendEmailVerification is a nested struct in domain_intl response +type FailListInResendEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_fail_list_in_submit_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_fail_list_in_submit_email_verification.go new file mode 100644 index 0000000..0e69744 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_fail_list_in_submit_email_verification.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailListInSubmitEmailVerification is a nested struct in domain_intl response +type FailListInSubmitEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_ip_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_ip_list.go new file mode 100644 index 0000000..6a7436f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_ip_list.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IpList is a nested struct in domain_intl response +type IpList struct { + Ip []string `json:"ip" xml:"ip"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_next_page_cursor.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_next_page_cursor.go new file mode 100644 index 0000000..789f882 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_next_page_cursor.go @@ -0,0 +1,33 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NextPageCursor is a nested struct in domain_intl response +type NextPageCursor struct { + Clientip string `json:"Clientip" xml:"Clientip"` + TaskDetailNo string `json:"TaskDetailNo" xml:"TaskDetailNo"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + TaskType string `json:"TaskType" xml:"TaskType"` + TaskNum int `json:"TaskNum" xml:"TaskNum"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + CreateTimeLong int `json:"CreateTimeLong" xml:"CreateTimeLong"` + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + TryCount int `json:"TryCount" xml:"TryCount"` + DomainName string `json:"DomainName" xml:"DomainName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_objects_in_query_task_detail_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_objects_in_query_task_detail_history.go new file mode 100644 index 0000000..545644a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_objects_in_query_task_detail_history.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ObjectsInQueryTaskDetailHistory is a nested struct in domain_intl response +type ObjectsInQueryTaskDetailHistory struct { + TaskDetailHistory []TaskDetailHistory `json:"TaskDetailHistory" xml:"TaskDetailHistory"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_objects_in_query_task_info_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_objects_in_query_task_info_history.go new file mode 100644 index 0000000..f6fabc5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_objects_in_query_task_info_history.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ObjectsInQueryTaskInfoHistory is a nested struct in domain_intl response +type ObjectsInQueryTaskInfoHistory struct { + TaskInfoHistory []TaskInfoHistory `json:"TaskInfoHistory" xml:"TaskInfoHistory"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_pre_page_cursor.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_pre_page_cursor.go new file mode 100644 index 0000000..b9229a3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_pre_page_cursor.go @@ -0,0 +1,33 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PrePageCursor is a nested struct in domain_intl response +type PrePageCursor struct { + Clientip string `json:"Clientip" xml:"Clientip"` + TaskDetailNo string `json:"TaskDetailNo" xml:"TaskDetailNo"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + TaskType string `json:"TaskType" xml:"TaskType"` + TaskNum int `json:"TaskNum" xml:"TaskNum"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + CreateTimeLong int `json:"CreateTimeLong" xml:"CreateTimeLong"` + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + TryCount int `json:"TryCount" xml:"TryCount"` + DomainName string `json:"DomainName" xml:"DomainName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_registrant_profile.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_registrant_profile.go new file mode 100644 index 0000000..5cf9817 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_registrant_profile.go @@ -0,0 +1,36 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RegistrantProfile is a nested struct in domain_intl response +type RegistrantProfile struct { + RegistrantProfileId int `json:"RegistrantProfileId" xml:"RegistrantProfileId"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + DefaultRegistrantProfile bool `json:"DefaultRegistrantProfile" xml:"DefaultRegistrantProfile"` + RegistrantName string `json:"RegistrantName" xml:"RegistrantName"` + RegistrantOrganization string `json:"RegistrantOrganization" xml:"RegistrantOrganization"` + Country string `json:"Country" xml:"Country"` + Province string `json:"Province" xml:"Province"` + City string `json:"City" xml:"City"` + Address string `json:"Address" xml:"Address"` + Email string `json:"Email" xml:"Email"` + PostalCode string `json:"PostalCode" xml:"PostalCode"` + TelArea string `json:"TelArea" xml:"TelArea"` + Telephone string `json:"Telephone" xml:"Telephone"` + TelExt string `json:"TelExt" xml:"TelExt"` + EmailVerificationStatus int `json:"EmailVerificationStatus" xml:"EmailVerificationStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_registrant_profiles.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_registrant_profiles.go new file mode 100644 index 0000000..4679bf2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_registrant_profiles.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RegistrantProfiles is a nested struct in domain_intl response +type RegistrantProfiles struct { + RegistrantProfile []RegistrantProfile `json:"RegistrantProfile" xml:"RegistrantProfile"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_send_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_send_result.go new file mode 100644 index 0000000..92ce20c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_send_result.go @@ -0,0 +1,23 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SendResult is a nested struct in domain_intl response +type SendResult struct { + Email string `json:"Email" xml:"Email"` + Message string `json:"Message" xml:"Message"` + Code string `json:"Code" xml:"Code"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_success_list_in_delete_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_success_list_in_delete_email_verification.go new file mode 100644 index 0000000..5268711 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_success_list_in_delete_email_verification.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SuccessListInDeleteEmailVerification is a nested struct in domain_intl response +type SuccessListInDeleteEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_success_list_in_resend_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_success_list_in_resend_email_verification.go new file mode 100644 index 0000000..3ce77ab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_success_list_in_resend_email_verification.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SuccessListInResendEmailVerification is a nested struct in domain_intl response +type SuccessListInResendEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_success_list_in_submit_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_success_list_in_submit_email_verification.go new file mode 100644 index 0000000..a3da9de --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_success_list_in_submit_email_verification.go @@ -0,0 +1,21 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SuccessListInSubmitEmailVerification is a nested struct in domain_intl response +type SuccessListInSubmitEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_task_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_task_detail.go new file mode 100644 index 0000000..7164aa1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_task_detail.go @@ -0,0 +1,30 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TaskDetail is a nested struct in domain_intl response +type TaskDetail struct { + TaskNo string `json:"TaskNo" xml:"TaskNo"` + TaskDetailNo string `json:"TaskDetailNo" xml:"TaskDetailNo"` + TaskType string `json:"TaskType" xml:"TaskType"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + DomainName string `json:"DomainName" xml:"DomainName"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TryCount int `json:"TryCount" xml:"TryCount"` + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_task_detail_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_task_detail_history.go new file mode 100644 index 0000000..47f9a1a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_task_detail_history.go @@ -0,0 +1,30 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TaskDetailHistory is a nested struct in domain_intl response +type TaskDetailHistory struct { + TaskNo string `json:"TaskNo" xml:"TaskNo"` + TaskDetailNo string `json:"TaskDetailNo" xml:"TaskDetailNo"` + TaskType string `json:"TaskType" xml:"TaskType"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + DomainName string `json:"DomainName" xml:"DomainName"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TryCount int `json:"TryCount" xml:"TryCount"` + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_task_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_task_info.go new file mode 100644 index 0000000..2394492 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_task_info.go @@ -0,0 +1,26 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TaskInfo is a nested struct in domain_intl response +type TaskInfo struct { + TaskType string `json:"TaskType" xml:"TaskType"` + TaskNum int `json:"TaskNum" xml:"TaskNum"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Clientip string `json:"Clientip" xml:"Clientip"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_task_info_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_task_info_history.go new file mode 100644 index 0000000..e56e445 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/struct_task_info_history.go @@ -0,0 +1,27 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TaskInfoHistory is a nested struct in domain_intl response +type TaskInfoHistory struct { + TaskType string `json:"TaskType" xml:"TaskType"` + TaskNum int `json:"TaskNum" xml:"TaskNum"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Clientip string `json:"Clientip" xml:"Clientip"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + CreateTimeLong int `json:"CreateTimeLong" xml:"CreateTimeLong"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/submit_email_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/submit_email_verification.go new file mode 100644 index 0000000..8ad32f2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/submit_email_verification.go @@ -0,0 +1,109 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitEmailVerification invokes the domain_intl.SubmitEmailVerification API synchronously +// api document: https://help.aliyun.com/api/domain-intl/submitemailverification.html +func (client *Client) SubmitEmailVerification(request *SubmitEmailVerificationRequest) (response *SubmitEmailVerificationResponse, err error) { + response = CreateSubmitEmailVerificationResponse() + err = client.DoAction(request, response) + return +} + +// SubmitEmailVerificationWithChan invokes the domain_intl.SubmitEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/submitemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitEmailVerificationWithChan(request *SubmitEmailVerificationRequest) (<-chan *SubmitEmailVerificationResponse, <-chan error) { + responseChan := make(chan *SubmitEmailVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitEmailVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitEmailVerificationWithCallback invokes the domain_intl.SubmitEmailVerification API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/submitemailverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitEmailVerificationWithCallback(request *SubmitEmailVerificationRequest, callback func(response *SubmitEmailVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitEmailVerificationResponse + var err error + defer close(result) + response, err = client.SubmitEmailVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitEmailVerificationRequest is the request struct for api SubmitEmailVerification +type SubmitEmailVerificationRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` + SendIfExist requests.Boolean `position:"Query" name:"SendIfExist"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// SubmitEmailVerificationResponse is the response struct for api SubmitEmailVerification +type SubmitEmailVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SuccessList []SendResult `json:"SuccessList" xml:"SuccessList"` + FailList []SendResult `json:"FailList" xml:"FailList"` + ExistList []SendResult `json:"ExistList" xml:"ExistList"` +} + +// CreateSubmitEmailVerificationRequest creates a request to invoke SubmitEmailVerification API +func CreateSubmitEmailVerificationRequest() (request *SubmitEmailVerificationRequest) { + request = &SubmitEmailVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "SubmitEmailVerification", "", "") + return +} + +// CreateSubmitEmailVerificationResponse creates a response to parse from SubmitEmailVerification response +func CreateSubmitEmailVerificationResponse() (response *SubmitEmailVerificationResponse) { + response = &SubmitEmailVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/verify_email.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/verify_email.go new file mode 100644 index 0000000..166515f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/domain_intl/verify_email.go @@ -0,0 +1,105 @@ +package domain_intl + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// VerifyEmail invokes the domain_intl.VerifyEmail API synchronously +// api document: https://help.aliyun.com/api/domain-intl/verifyemail.html +func (client *Client) VerifyEmail(request *VerifyEmailRequest) (response *VerifyEmailResponse, err error) { + response = CreateVerifyEmailResponse() + err = client.DoAction(request, response) + return +} + +// VerifyEmailWithChan invokes the domain_intl.VerifyEmail API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/verifyemail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VerifyEmailWithChan(request *VerifyEmailRequest) (<-chan *VerifyEmailResponse, <-chan error) { + responseChan := make(chan *VerifyEmailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.VerifyEmail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// VerifyEmailWithCallback invokes the domain_intl.VerifyEmail API asynchronously +// api document: https://help.aliyun.com/api/domain-intl/verifyemail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VerifyEmailWithCallback(request *VerifyEmailRequest, callback func(response *VerifyEmailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *VerifyEmailResponse + var err error + defer close(result) + response, err = client.VerifyEmail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// VerifyEmailRequest is the request struct for api VerifyEmail +type VerifyEmailRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + Token string `position:"Query" name:"Token"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// VerifyEmailResponse is the response struct for api VerifyEmail +type VerifyEmailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateVerifyEmailRequest creates a request to invoke VerifyEmail API +func CreateVerifyEmailRequest() (request *VerifyEmailRequest) { + request = &VerifyEmailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain-intl", "2017-12-18", "VerifyEmail", "", "") + return +} + +// CreateVerifyEmailResponse creates a response to parse from VerifyEmail response +func CreateVerifyEmailResponse() (response *VerifyEmailResponse) { + response = &VerifyEmailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/client.go new file mode 100644 index 0000000..ceaba8c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/client.go @@ -0,0 +1,81 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/create_drds_account.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/create_drds_account.go new file mode 100644 index 0000000..9a9a668 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/create_drds_account.go @@ -0,0 +1,107 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateDrdsAccount invokes the drds.CreateDrdsAccount API synchronously +// api document: https://help.aliyun.com/api/drds/createdrdsaccount.html +func (client *Client) CreateDrdsAccount(request *CreateDrdsAccountRequest) (response *CreateDrdsAccountResponse, err error) { + response = CreateCreateDrdsAccountResponse() + err = client.DoAction(request, response) + return +} + +// CreateDrdsAccountWithChan invokes the drds.CreateDrdsAccount API asynchronously +// api document: https://help.aliyun.com/api/drds/createdrdsaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDrdsAccountWithChan(request *CreateDrdsAccountRequest) (<-chan *CreateDrdsAccountResponse, <-chan error) { + responseChan := make(chan *CreateDrdsAccountResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateDrdsAccount(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateDrdsAccountWithCallback invokes the drds.CreateDrdsAccount API asynchronously +// api document: https://help.aliyun.com/api/drds/createdrdsaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDrdsAccountWithCallback(request *CreateDrdsAccountRequest, callback func(response *CreateDrdsAccountResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateDrdsAccountResponse + var err error + defer close(result) + response, err = client.CreateDrdsAccount(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateDrdsAccountRequest is the request struct for api CreateDrdsAccount +type CreateDrdsAccountRequest struct { + *requests.RpcRequest + Password string `position:"Query" name:"Password"` + DbName string `position:"Query" name:"DbName"` + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` + UserName string `position:"Query" name:"UserName"` +} + +// CreateDrdsAccountResponse is the response struct for api CreateDrdsAccount +type CreateDrdsAccountResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` +} + +// CreateCreateDrdsAccountRequest creates a request to invoke CreateDrdsAccount API +func CreateCreateDrdsAccountRequest() (request *CreateDrdsAccountRequest) { + request = &CreateDrdsAccountRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "CreateDrdsAccount", "", "") + return +} + +// CreateCreateDrdsAccountResponse creates a response to parse from CreateDrdsAccount response +func CreateCreateDrdsAccountResponse() (response *CreateDrdsAccountResponse) { + response = &CreateDrdsAccountResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/create_drds_db.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/create_drds_db.go new file mode 100644 index 0000000..a7249a4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/create_drds_db.go @@ -0,0 +1,108 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateDrdsDB invokes the drds.CreateDrdsDB API synchronously +// api document: https://help.aliyun.com/api/drds/createdrdsdb.html +func (client *Client) CreateDrdsDB(request *CreateDrdsDBRequest) (response *CreateDrdsDBResponse, err error) { + response = CreateCreateDrdsDBResponse() + err = client.DoAction(request, response) + return +} + +// CreateDrdsDBWithChan invokes the drds.CreateDrdsDB API asynchronously +// api document: https://help.aliyun.com/api/drds/createdrdsdb.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDrdsDBWithChan(request *CreateDrdsDBRequest) (<-chan *CreateDrdsDBResponse, <-chan error) { + responseChan := make(chan *CreateDrdsDBResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateDrdsDB(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateDrdsDBWithCallback invokes the drds.CreateDrdsDB API asynchronously +// api document: https://help.aliyun.com/api/drds/createdrdsdb.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDrdsDBWithCallback(request *CreateDrdsDBRequest, callback func(response *CreateDrdsDBResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateDrdsDBResponse + var err error + defer close(result) + response, err = client.CreateDrdsDB(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateDrdsDBRequest is the request struct for api CreateDrdsDB +type CreateDrdsDBRequest struct { + *requests.RpcRequest + Encode string `position:"Query" name:"Encode"` + Password string `position:"Query" name:"Password"` + DbName string `position:"Query" name:"DbName"` + RdsInstances string `position:"Query" name:"RdsInstances"` + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` +} + +// CreateDrdsDBResponse is the response struct for api CreateDrdsDB +type CreateDrdsDBResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` +} + +// CreateCreateDrdsDBRequest creates a request to invoke CreateDrdsDB API +func CreateCreateDrdsDBRequest() (request *CreateDrdsDBRequest) { + request = &CreateDrdsDBRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "CreateDrdsDB", "", "") + return +} + +// CreateCreateDrdsDBResponse creates a response to parse from CreateDrdsDB response +func CreateCreateDrdsDBResponse() (response *CreateDrdsDBResponse) { + response = &CreateDrdsDBResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/create_drds_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/create_drds_instance.go new file mode 100644 index 0000000..b662d1b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/create_drds_instance.go @@ -0,0 +1,114 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateDrdsInstance invokes the drds.CreateDrdsInstance API synchronously +// api document: https://help.aliyun.com/api/drds/createdrdsinstance.html +func (client *Client) CreateDrdsInstance(request *CreateDrdsInstanceRequest) (response *CreateDrdsInstanceResponse, err error) { + response = CreateCreateDrdsInstanceResponse() + err = client.DoAction(request, response) + return +} + +// CreateDrdsInstanceWithChan invokes the drds.CreateDrdsInstance API asynchronously +// api document: https://help.aliyun.com/api/drds/createdrdsinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDrdsInstanceWithChan(request *CreateDrdsInstanceRequest) (<-chan *CreateDrdsInstanceResponse, <-chan error) { + responseChan := make(chan *CreateDrdsInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateDrdsInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateDrdsInstanceWithCallback invokes the drds.CreateDrdsInstance API asynchronously +// api document: https://help.aliyun.com/api/drds/createdrdsinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDrdsInstanceWithCallback(request *CreateDrdsInstanceRequest, callback func(response *CreateDrdsInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateDrdsInstanceResponse + var err error + defer close(result) + response, err = client.CreateDrdsInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateDrdsInstanceRequest is the request struct for api CreateDrdsInstance +type CreateDrdsInstanceRequest struct { + *requests.RpcRequest + Quantity requests.Integer `position:"Query" name:"Quantity"` + Description string `position:"Query" name:"Description"` + Specification string `position:"Query" name:"Specification"` + Type string `position:"Query" name:"Type"` + VswitchId string `position:"Query" name:"VswitchId"` + IsHa requests.Boolean `position:"Query" name:"isHa"` + InstanceSeries string `position:"Query" name:"instanceSeries"` + VpcId string `position:"Query" name:"VpcId"` + ZoneId string `position:"Query" name:"ZoneId"` + PayType string `position:"Query" name:"PayType"` +} + +// CreateDrdsInstanceResponse is the response struct for api CreateDrdsInstance +type CreateDrdsInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateCreateDrdsInstanceRequest creates a request to invoke CreateDrdsInstance API +func CreateCreateDrdsInstanceRequest() (request *CreateDrdsInstanceRequest) { + request = &CreateDrdsInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "CreateDrdsInstance", "", "") + return +} + +// CreateCreateDrdsInstanceResponse creates a response to parse from CreateDrdsInstance response +func CreateCreateDrdsInstanceResponse() (response *CreateDrdsInstanceResponse) { + response = &CreateDrdsInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/create_read_only_account.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/create_read_only_account.go new file mode 100644 index 0000000..95bde6c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/create_read_only_account.go @@ -0,0 +1,107 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateReadOnlyAccount invokes the drds.CreateReadOnlyAccount API synchronously +// api document: https://help.aliyun.com/api/drds/createreadonlyaccount.html +func (client *Client) CreateReadOnlyAccount(request *CreateReadOnlyAccountRequest) (response *CreateReadOnlyAccountResponse, err error) { + response = CreateCreateReadOnlyAccountResponse() + err = client.DoAction(request, response) + return +} + +// CreateReadOnlyAccountWithChan invokes the drds.CreateReadOnlyAccount API asynchronously +// api document: https://help.aliyun.com/api/drds/createreadonlyaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateReadOnlyAccountWithChan(request *CreateReadOnlyAccountRequest) (<-chan *CreateReadOnlyAccountResponse, <-chan error) { + responseChan := make(chan *CreateReadOnlyAccountResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateReadOnlyAccount(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateReadOnlyAccountWithCallback invokes the drds.CreateReadOnlyAccount API asynchronously +// api document: https://help.aliyun.com/api/drds/createreadonlyaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateReadOnlyAccountWithCallback(request *CreateReadOnlyAccountRequest, callback func(response *CreateReadOnlyAccountResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateReadOnlyAccountResponse + var err error + defer close(result) + response, err = client.CreateReadOnlyAccount(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateReadOnlyAccountRequest is the request struct for api CreateReadOnlyAccount +type CreateReadOnlyAccountRequest struct { + *requests.RpcRequest + Password string `position:"Query" name:"password"` + DbName string `position:"Query" name:"DbName"` + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` +} + +// CreateReadOnlyAccountResponse is the response struct for api CreateReadOnlyAccount +type CreateReadOnlyAccountResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateCreateReadOnlyAccountRequest creates a request to invoke CreateReadOnlyAccount API +func CreateCreateReadOnlyAccountRequest() (request *CreateReadOnlyAccountRequest) { + request = &CreateReadOnlyAccountRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "CreateReadOnlyAccount", "", "") + return +} + +// CreateCreateReadOnlyAccountResponse creates a response to parse from CreateReadOnlyAccount response +func CreateCreateReadOnlyAccountResponse() (response *CreateReadOnlyAccountResponse) { + response = &CreateReadOnlyAccountResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/delete_drds_db.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/delete_drds_db.go new file mode 100644 index 0000000..7150169 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/delete_drds_db.go @@ -0,0 +1,105 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteDrdsDB invokes the drds.DeleteDrdsDB API synchronously +// api document: https://help.aliyun.com/api/drds/deletedrdsdb.html +func (client *Client) DeleteDrdsDB(request *DeleteDrdsDBRequest) (response *DeleteDrdsDBResponse, err error) { + response = CreateDeleteDrdsDBResponse() + err = client.DoAction(request, response) + return +} + +// DeleteDrdsDBWithChan invokes the drds.DeleteDrdsDB API asynchronously +// api document: https://help.aliyun.com/api/drds/deletedrdsdb.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteDrdsDBWithChan(request *DeleteDrdsDBRequest) (<-chan *DeleteDrdsDBResponse, <-chan error) { + responseChan := make(chan *DeleteDrdsDBResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteDrdsDB(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteDrdsDBWithCallback invokes the drds.DeleteDrdsDB API asynchronously +// api document: https://help.aliyun.com/api/drds/deletedrdsdb.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteDrdsDBWithCallback(request *DeleteDrdsDBRequest, callback func(response *DeleteDrdsDBResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteDrdsDBResponse + var err error + defer close(result) + response, err = client.DeleteDrdsDB(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteDrdsDBRequest is the request struct for api DeleteDrdsDB +type DeleteDrdsDBRequest struct { + *requests.RpcRequest + DbName string `position:"Query" name:"DbName"` + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` +} + +// DeleteDrdsDBResponse is the response struct for api DeleteDrdsDB +type DeleteDrdsDBResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` +} + +// CreateDeleteDrdsDBRequest creates a request to invoke DeleteDrdsDB API +func CreateDeleteDrdsDBRequest() (request *DeleteDrdsDBRequest) { + request = &DeleteDrdsDBRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "DeleteDrdsDB", "", "") + return +} + +// CreateDeleteDrdsDBResponse creates a response to parse from DeleteDrdsDB response +func CreateDeleteDrdsDBResponse() (response *DeleteDrdsDBResponse) { + response = &DeleteDrdsDBResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/delete_failed_drds_db.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/delete_failed_drds_db.go new file mode 100644 index 0000000..c1da5b3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/delete_failed_drds_db.go @@ -0,0 +1,105 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteFailedDrdsDB invokes the drds.DeleteFailedDrdsDB API synchronously +// api document: https://help.aliyun.com/api/drds/deletefaileddrdsdb.html +func (client *Client) DeleteFailedDrdsDB(request *DeleteFailedDrdsDBRequest) (response *DeleteFailedDrdsDBResponse, err error) { + response = CreateDeleteFailedDrdsDBResponse() + err = client.DoAction(request, response) + return +} + +// DeleteFailedDrdsDBWithChan invokes the drds.DeleteFailedDrdsDB API asynchronously +// api document: https://help.aliyun.com/api/drds/deletefaileddrdsdb.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteFailedDrdsDBWithChan(request *DeleteFailedDrdsDBRequest) (<-chan *DeleteFailedDrdsDBResponse, <-chan error) { + responseChan := make(chan *DeleteFailedDrdsDBResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteFailedDrdsDB(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteFailedDrdsDBWithCallback invokes the drds.DeleteFailedDrdsDB API asynchronously +// api document: https://help.aliyun.com/api/drds/deletefaileddrdsdb.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteFailedDrdsDBWithCallback(request *DeleteFailedDrdsDBRequest, callback func(response *DeleteFailedDrdsDBResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteFailedDrdsDBResponse + var err error + defer close(result) + response, err = client.DeleteFailedDrdsDB(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteFailedDrdsDBRequest is the request struct for api DeleteFailedDrdsDB +type DeleteFailedDrdsDBRequest struct { + *requests.RpcRequest + DbName string `position:"Query" name:"DbName"` + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` +} + +// DeleteFailedDrdsDBResponse is the response struct for api DeleteFailedDrdsDB +type DeleteFailedDrdsDBResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` +} + +// CreateDeleteFailedDrdsDBRequest creates a request to invoke DeleteFailedDrdsDB API +func CreateDeleteFailedDrdsDBRequest() (request *DeleteFailedDrdsDBRequest) { + request = &DeleteFailedDrdsDBRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "DeleteFailedDrdsDB", "", "") + return +} + +// CreateDeleteFailedDrdsDBResponse creates a response to parse from DeleteFailedDrdsDB response +func CreateDeleteFailedDrdsDBResponse() (response *DeleteFailedDrdsDBResponse) { + response = &DeleteFailedDrdsDBResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_create_drds_instance_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_create_drds_instance_status.go new file mode 100644 index 0000000..1bf6b6b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_create_drds_instance_status.go @@ -0,0 +1,105 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCreateDrdsInstanceStatus invokes the drds.DescribeCreateDrdsInstanceStatus API synchronously +// api document: https://help.aliyun.com/api/drds/describecreatedrdsinstancestatus.html +func (client *Client) DescribeCreateDrdsInstanceStatus(request *DescribeCreateDrdsInstanceStatusRequest) (response *DescribeCreateDrdsInstanceStatusResponse, err error) { + response = CreateDescribeCreateDrdsInstanceStatusResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCreateDrdsInstanceStatusWithChan invokes the drds.DescribeCreateDrdsInstanceStatus API asynchronously +// api document: https://help.aliyun.com/api/drds/describecreatedrdsinstancestatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCreateDrdsInstanceStatusWithChan(request *DescribeCreateDrdsInstanceStatusRequest) (<-chan *DescribeCreateDrdsInstanceStatusResponse, <-chan error) { + responseChan := make(chan *DescribeCreateDrdsInstanceStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCreateDrdsInstanceStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCreateDrdsInstanceStatusWithCallback invokes the drds.DescribeCreateDrdsInstanceStatus API asynchronously +// api document: https://help.aliyun.com/api/drds/describecreatedrdsinstancestatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCreateDrdsInstanceStatusWithCallback(request *DescribeCreateDrdsInstanceStatusRequest, callback func(response *DescribeCreateDrdsInstanceStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCreateDrdsInstanceStatusResponse + var err error + defer close(result) + response, err = client.DescribeCreateDrdsInstanceStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCreateDrdsInstanceStatusRequest is the request struct for api DescribeCreateDrdsInstanceStatus +type DescribeCreateDrdsInstanceStatusRequest struct { + *requests.RpcRequest + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` +} + +// DescribeCreateDrdsInstanceStatusResponse is the response struct for api DescribeCreateDrdsInstanceStatus +type DescribeCreateDrdsInstanceStatusResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateDescribeCreateDrdsInstanceStatusRequest creates a request to invoke DescribeCreateDrdsInstanceStatus API +func CreateDescribeCreateDrdsInstanceStatusRequest() (request *DescribeCreateDrdsInstanceStatusRequest) { + request = &DescribeCreateDrdsInstanceStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "DescribeCreateDrdsInstanceStatus", "", "") + return +} + +// CreateDescribeCreateDrdsInstanceStatusResponse creates a response to parse from DescribeCreateDrdsInstanceStatus response +func CreateDescribeCreateDrdsInstanceStatusResponse() (response *DescribeCreateDrdsInstanceStatusResponse) { + response = &DescribeCreateDrdsInstanceStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_d_bs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_d_bs.go new file mode 100644 index 0000000..930695c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_d_bs.go @@ -0,0 +1,105 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDrdsDBs invokes the drds.DescribeDrdsDBs API synchronously +// api document: https://help.aliyun.com/api/drds/describedrdsdbs.html +func (client *Client) DescribeDrdsDBs(request *DescribeDrdsDBsRequest) (response *DescribeDrdsDBsResponse, err error) { + response = CreateDescribeDrdsDBsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDrdsDBsWithChan invokes the drds.DescribeDrdsDBs API asynchronously +// api document: https://help.aliyun.com/api/drds/describedrdsdbs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDrdsDBsWithChan(request *DescribeDrdsDBsRequest) (<-chan *DescribeDrdsDBsResponse, <-chan error) { + responseChan := make(chan *DescribeDrdsDBsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDrdsDBs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDrdsDBsWithCallback invokes the drds.DescribeDrdsDBs API asynchronously +// api document: https://help.aliyun.com/api/drds/describedrdsdbs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDrdsDBsWithCallback(request *DescribeDrdsDBsRequest, callback func(response *DescribeDrdsDBsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDrdsDBsResponse + var err error + defer close(result) + response, err = client.DescribeDrdsDBs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDrdsDBsRequest is the request struct for api DescribeDrdsDBs +type DescribeDrdsDBsRequest struct { + *requests.RpcRequest + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` +} + +// DescribeDrdsDBsResponse is the response struct for api DescribeDrdsDBs +type DescribeDrdsDBsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Data DataInDescribeDrdsDBs `json:"Data" xml:"Data"` +} + +// CreateDescribeDrdsDBsRequest creates a request to invoke DescribeDrdsDBs API +func CreateDescribeDrdsDBsRequest() (request *DescribeDrdsDBsRequest) { + request = &DescribeDrdsDBsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "DescribeDrdsDBs", "", "") + return +} + +// CreateDescribeDrdsDBsResponse creates a response to parse from DescribeDrdsDBs response +func CreateDescribeDrdsDBsResponse() (response *DescribeDrdsDBsResponse) { + response = &DescribeDrdsDBsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_db.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_db.go new file mode 100644 index 0000000..d16bf00 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_db.go @@ -0,0 +1,106 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDrdsDB invokes the drds.DescribeDrdsDB API synchronously +// api document: https://help.aliyun.com/api/drds/describedrdsdb.html +func (client *Client) DescribeDrdsDB(request *DescribeDrdsDBRequest) (response *DescribeDrdsDBResponse, err error) { + response = CreateDescribeDrdsDBResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDrdsDBWithChan invokes the drds.DescribeDrdsDB API asynchronously +// api document: https://help.aliyun.com/api/drds/describedrdsdb.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDrdsDBWithChan(request *DescribeDrdsDBRequest) (<-chan *DescribeDrdsDBResponse, <-chan error) { + responseChan := make(chan *DescribeDrdsDBResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDrdsDB(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDrdsDBWithCallback invokes the drds.DescribeDrdsDB API asynchronously +// api document: https://help.aliyun.com/api/drds/describedrdsdb.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDrdsDBWithCallback(request *DescribeDrdsDBRequest, callback func(response *DescribeDrdsDBResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDrdsDBResponse + var err error + defer close(result) + response, err = client.DescribeDrdsDB(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDrdsDBRequest is the request struct for api DescribeDrdsDB +type DescribeDrdsDBRequest struct { + *requests.RpcRequest + DbName string `position:"Query" name:"DbName"` + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` +} + +// DescribeDrdsDBResponse is the response struct for api DescribeDrdsDB +type DescribeDrdsDBResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Data DataInDescribeDrdsDB `json:"Data" xml:"Data"` +} + +// CreateDescribeDrdsDBRequest creates a request to invoke DescribeDrdsDB API +func CreateDescribeDrdsDBRequest() (request *DescribeDrdsDBRequest) { + request = &DescribeDrdsDBRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "DescribeDrdsDB", "", "") + return +} + +// CreateDescribeDrdsDBResponse creates a response to parse from DescribeDrdsDB response +func CreateDescribeDrdsDBResponse() (response *DescribeDrdsDBResponse) { + response = &DescribeDrdsDBResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_db_ip_white_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_db_ip_white_list.go new file mode 100644 index 0000000..eadcbed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_db_ip_white_list.go @@ -0,0 +1,107 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDrdsDBIpWhiteList invokes the drds.DescribeDrdsDBIpWhiteList API synchronously +// api document: https://help.aliyun.com/api/drds/describedrdsdbipwhitelist.html +func (client *Client) DescribeDrdsDBIpWhiteList(request *DescribeDrdsDBIpWhiteListRequest) (response *DescribeDrdsDBIpWhiteListResponse, err error) { + response = CreateDescribeDrdsDBIpWhiteListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDrdsDBIpWhiteListWithChan invokes the drds.DescribeDrdsDBIpWhiteList API asynchronously +// api document: https://help.aliyun.com/api/drds/describedrdsdbipwhitelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDrdsDBIpWhiteListWithChan(request *DescribeDrdsDBIpWhiteListRequest) (<-chan *DescribeDrdsDBIpWhiteListResponse, <-chan error) { + responseChan := make(chan *DescribeDrdsDBIpWhiteListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDrdsDBIpWhiteList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDrdsDBIpWhiteListWithCallback invokes the drds.DescribeDrdsDBIpWhiteList API asynchronously +// api document: https://help.aliyun.com/api/drds/describedrdsdbipwhitelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDrdsDBIpWhiteListWithCallback(request *DescribeDrdsDBIpWhiteListRequest, callback func(response *DescribeDrdsDBIpWhiteListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDrdsDBIpWhiteListResponse + var err error + defer close(result) + response, err = client.DescribeDrdsDBIpWhiteList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDrdsDBIpWhiteListRequest is the request struct for api DescribeDrdsDBIpWhiteList +type DescribeDrdsDBIpWhiteListRequest struct { + *requests.RpcRequest + DbName string `position:"Query" name:"DbName"` + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` + GroupName string `position:"Query" name:"GroupName"` +} + +// DescribeDrdsDBIpWhiteListResponse is the response struct for api DescribeDrdsDBIpWhiteList +type DescribeDrdsDBIpWhiteListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateDescribeDrdsDBIpWhiteListRequest creates a request to invoke DescribeDrdsDBIpWhiteList API +func CreateDescribeDrdsDBIpWhiteListRequest() (request *DescribeDrdsDBIpWhiteListRequest) { + request = &DescribeDrdsDBIpWhiteListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "DescribeDrdsDBIpWhiteList", "", "") + return +} + +// CreateDescribeDrdsDBIpWhiteListResponse creates a response to parse from DescribeDrdsDBIpWhiteList response +func CreateDescribeDrdsDBIpWhiteListResponse() (response *DescribeDrdsDBIpWhiteListResponse) { + response = &DescribeDrdsDBIpWhiteListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_instance.go new file mode 100644 index 0000000..6e901d6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_instance.go @@ -0,0 +1,105 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDrdsInstance invokes the drds.DescribeDrdsInstance API synchronously +// api document: https://help.aliyun.com/api/drds/describedrdsinstance.html +func (client *Client) DescribeDrdsInstance(request *DescribeDrdsInstanceRequest) (response *DescribeDrdsInstanceResponse, err error) { + response = CreateDescribeDrdsInstanceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDrdsInstanceWithChan invokes the drds.DescribeDrdsInstance API asynchronously +// api document: https://help.aliyun.com/api/drds/describedrdsinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDrdsInstanceWithChan(request *DescribeDrdsInstanceRequest) (<-chan *DescribeDrdsInstanceResponse, <-chan error) { + responseChan := make(chan *DescribeDrdsInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDrdsInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDrdsInstanceWithCallback invokes the drds.DescribeDrdsInstance API asynchronously +// api document: https://help.aliyun.com/api/drds/describedrdsinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDrdsInstanceWithCallback(request *DescribeDrdsInstanceRequest, callback func(response *DescribeDrdsInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDrdsInstanceResponse + var err error + defer close(result) + response, err = client.DescribeDrdsInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDrdsInstanceRequest is the request struct for api DescribeDrdsInstance +type DescribeDrdsInstanceRequest struct { + *requests.RpcRequest + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` +} + +// DescribeDrdsInstanceResponse is the response struct for api DescribeDrdsInstance +type DescribeDrdsInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateDescribeDrdsInstanceRequest creates a request to invoke DescribeDrdsInstance API +func CreateDescribeDrdsInstanceRequest() (request *DescribeDrdsInstanceRequest) { + request = &DescribeDrdsInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "DescribeDrdsInstance", "", "") + return +} + +// CreateDescribeDrdsInstanceResponse creates a response to parse from DescribeDrdsInstance response +func CreateDescribeDrdsInstanceResponse() (response *DescribeDrdsInstanceResponse) { + response = &DescribeDrdsInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_instance_net_info_for_inner.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_instance_net_info_for_inner.go new file mode 100644 index 0000000..34cc100 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_instance_net_info_for_inner.go @@ -0,0 +1,107 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDrdsInstanceNetInfoForInner invokes the drds.DescribeDrdsInstanceNetInfoForInner API synchronously +// api document: https://help.aliyun.com/api/drds/describedrdsinstancenetinfoforinner.html +func (client *Client) DescribeDrdsInstanceNetInfoForInner(request *DescribeDrdsInstanceNetInfoForInnerRequest) (response *DescribeDrdsInstanceNetInfoForInnerResponse, err error) { + response = CreateDescribeDrdsInstanceNetInfoForInnerResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDrdsInstanceNetInfoForInnerWithChan invokes the drds.DescribeDrdsInstanceNetInfoForInner API asynchronously +// api document: https://help.aliyun.com/api/drds/describedrdsinstancenetinfoforinner.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDrdsInstanceNetInfoForInnerWithChan(request *DescribeDrdsInstanceNetInfoForInnerRequest) (<-chan *DescribeDrdsInstanceNetInfoForInnerResponse, <-chan error) { + responseChan := make(chan *DescribeDrdsInstanceNetInfoForInnerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDrdsInstanceNetInfoForInner(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDrdsInstanceNetInfoForInnerWithCallback invokes the drds.DescribeDrdsInstanceNetInfoForInner API asynchronously +// api document: https://help.aliyun.com/api/drds/describedrdsinstancenetinfoforinner.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDrdsInstanceNetInfoForInnerWithCallback(request *DescribeDrdsInstanceNetInfoForInnerRequest, callback func(response *DescribeDrdsInstanceNetInfoForInnerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDrdsInstanceNetInfoForInnerResponse + var err error + defer close(result) + response, err = client.DescribeDrdsInstanceNetInfoForInner(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDrdsInstanceNetInfoForInnerRequest is the request struct for api DescribeDrdsInstanceNetInfoForInner +type DescribeDrdsInstanceNetInfoForInnerRequest struct { + *requests.RpcRequest + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` +} + +// DescribeDrdsInstanceNetInfoForInnerResponse is the response struct for api DescribeDrdsInstanceNetInfoForInner +type DescribeDrdsInstanceNetInfoForInnerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + DrdsInstanceId string `json:"DrdsInstanceId" xml:"DrdsInstanceId"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + NetInfos NetInfos `json:"NetInfos" xml:"NetInfos"` +} + +// CreateDescribeDrdsInstanceNetInfoForInnerRequest creates a request to invoke DescribeDrdsInstanceNetInfoForInner API +func CreateDescribeDrdsInstanceNetInfoForInnerRequest() (request *DescribeDrdsInstanceNetInfoForInnerRequest) { + request = &DescribeDrdsInstanceNetInfoForInnerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "DescribeDrdsInstanceNetInfoForInner", "", "") + return +} + +// CreateDescribeDrdsInstanceNetInfoForInnerResponse creates a response to parse from DescribeDrdsInstanceNetInfoForInner response +func CreateDescribeDrdsInstanceNetInfoForInnerResponse() (response *DescribeDrdsInstanceNetInfoForInnerResponse) { + response = &DescribeDrdsInstanceNetInfoForInnerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_instances.go new file mode 100644 index 0000000..1a97067 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_drds_instances.go @@ -0,0 +1,105 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDrdsInstances invokes the drds.DescribeDrdsInstances API synchronously +// api document: https://help.aliyun.com/api/drds/describedrdsinstances.html +func (client *Client) DescribeDrdsInstances(request *DescribeDrdsInstancesRequest) (response *DescribeDrdsInstancesResponse, err error) { + response = CreateDescribeDrdsInstancesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDrdsInstancesWithChan invokes the drds.DescribeDrdsInstances API asynchronously +// api document: https://help.aliyun.com/api/drds/describedrdsinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDrdsInstancesWithChan(request *DescribeDrdsInstancesRequest) (<-chan *DescribeDrdsInstancesResponse, <-chan error) { + responseChan := make(chan *DescribeDrdsInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDrdsInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDrdsInstancesWithCallback invokes the drds.DescribeDrdsInstances API asynchronously +// api document: https://help.aliyun.com/api/drds/describedrdsinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDrdsInstancesWithCallback(request *DescribeDrdsInstancesRequest, callback func(response *DescribeDrdsInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDrdsInstancesResponse + var err error + defer close(result) + response, err = client.DescribeDrdsInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDrdsInstancesRequest is the request struct for api DescribeDrdsInstances +type DescribeDrdsInstancesRequest struct { + *requests.RpcRequest + Type string `position:"Query" name:"Type"` +} + +// DescribeDrdsInstancesResponse is the response struct for api DescribeDrdsInstances +type DescribeDrdsInstancesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Data DataInDescribeDrdsInstances `json:"Data" xml:"Data"` +} + +// CreateDescribeDrdsInstancesRequest creates a request to invoke DescribeDrdsInstances API +func CreateDescribeDrdsInstancesRequest() (request *DescribeDrdsInstancesRequest) { + request = &DescribeDrdsInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "DescribeDrdsInstances", "", "") + return +} + +// CreateDescribeDrdsInstancesResponse creates a response to parse from DescribeDrdsInstances response +func CreateDescribeDrdsInstancesResponse() (response *DescribeDrdsInstancesResponse) { + response = &DescribeDrdsInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_rds_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_rds_list.go new file mode 100644 index 0000000..15999ee --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_rds_list.go @@ -0,0 +1,106 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRdsList invokes the drds.DescribeRdsList API synchronously +// api document: https://help.aliyun.com/api/drds/describerdslist.html +func (client *Client) DescribeRdsList(request *DescribeRdsListRequest) (response *DescribeRdsListResponse, err error) { + response = CreateDescribeRdsListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRdsListWithChan invokes the drds.DescribeRdsList API asynchronously +// api document: https://help.aliyun.com/api/drds/describerdslist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRdsListWithChan(request *DescribeRdsListRequest) (<-chan *DescribeRdsListResponse, <-chan error) { + responseChan := make(chan *DescribeRdsListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRdsList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRdsListWithCallback invokes the drds.DescribeRdsList API asynchronously +// api document: https://help.aliyun.com/api/drds/describerdslist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRdsListWithCallback(request *DescribeRdsListRequest, callback func(response *DescribeRdsListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRdsListResponse + var err error + defer close(result) + response, err = client.DescribeRdsList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRdsListRequest is the request struct for api DescribeRdsList +type DescribeRdsListRequest struct { + *requests.RpcRequest + DbName string `position:"Query" name:"DbName"` + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` +} + +// DescribeRdsListResponse is the response struct for api DescribeRdsList +type DescribeRdsListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Data DataInDescribeRdsList `json:"Data" xml:"Data"` +} + +// CreateDescribeRdsListRequest creates a request to invoke DescribeRdsList API +func CreateDescribeRdsListRequest() (request *DescribeRdsListRequest) { + request = &DescribeRdsListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "DescribeRdsList", "", "") + return +} + +// CreateDescribeRdsListResponse creates a response to parse from DescribeRdsList response +func CreateDescribeRdsListResponse() (response *DescribeRdsListResponse) { + response = &DescribeRdsListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_read_only_account.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_read_only_account.go new file mode 100644 index 0000000..59f612d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_read_only_account.go @@ -0,0 +1,106 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeReadOnlyAccount invokes the drds.DescribeReadOnlyAccount API synchronously +// api document: https://help.aliyun.com/api/drds/describereadonlyaccount.html +func (client *Client) DescribeReadOnlyAccount(request *DescribeReadOnlyAccountRequest) (response *DescribeReadOnlyAccountResponse, err error) { + response = CreateDescribeReadOnlyAccountResponse() + err = client.DoAction(request, response) + return +} + +// DescribeReadOnlyAccountWithChan invokes the drds.DescribeReadOnlyAccount API asynchronously +// api document: https://help.aliyun.com/api/drds/describereadonlyaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReadOnlyAccountWithChan(request *DescribeReadOnlyAccountRequest) (<-chan *DescribeReadOnlyAccountResponse, <-chan error) { + responseChan := make(chan *DescribeReadOnlyAccountResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeReadOnlyAccount(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeReadOnlyAccountWithCallback invokes the drds.DescribeReadOnlyAccount API asynchronously +// api document: https://help.aliyun.com/api/drds/describereadonlyaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReadOnlyAccountWithCallback(request *DescribeReadOnlyAccountRequest, callback func(response *DescribeReadOnlyAccountResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeReadOnlyAccountResponse + var err error + defer close(result) + response, err = client.DescribeReadOnlyAccount(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeReadOnlyAccountRequest is the request struct for api DescribeReadOnlyAccount +type DescribeReadOnlyAccountRequest struct { + *requests.RpcRequest + DbName string `position:"Query" name:"DbName"` + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` +} + +// DescribeReadOnlyAccountResponse is the response struct for api DescribeReadOnlyAccount +type DescribeReadOnlyAccountResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateDescribeReadOnlyAccountRequest creates a request to invoke DescribeReadOnlyAccount API +func CreateDescribeReadOnlyAccountRequest() (request *DescribeReadOnlyAccountRequest) { + request = &DescribeReadOnlyAccountRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "DescribeReadOnlyAccount", "", "") + return +} + +// CreateDescribeReadOnlyAccountResponse creates a response to parse from DescribeReadOnlyAccount response +func CreateDescribeReadOnlyAccountResponse() (response *DescribeReadOnlyAccountResponse) { + response = &DescribeReadOnlyAccountResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_regions.go new file mode 100644 index 0000000..6454549 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_regions.go @@ -0,0 +1,104 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 drds.DescribeRegions API synchronously +// api document: https://help.aliyun.com/api/drds/describeregions.html +func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) { + response = CreateDescribeRegionsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRegionsWithChan invokes the drds.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/drds/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 drds.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/drds/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +} + +// DescribeRegionsResponse is the response struct for api DescribeRegions +type DescribeRegionsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + DrdsRegions DrdsRegions `json:"DrdsRegions" xml:"DrdsRegions"` +} + +// CreateDescribeRegionsRequest creates a request to invoke DescribeRegions API +func CreateDescribeRegionsRequest() (request *DescribeRegionsRequest) { + request = &DescribeRegionsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "DescribeRegions", "", "") + 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/drds/describe_shard_d_bs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_shard_d_bs.go new file mode 100644 index 0000000..77ee263 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_shard_d_bs.go @@ -0,0 +1,106 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeShardDBs invokes the drds.DescribeShardDBs API synchronously +// api document: https://help.aliyun.com/api/drds/describesharddbs.html +func (client *Client) DescribeShardDBs(request *DescribeShardDBsRequest) (response *DescribeShardDBsResponse, err error) { + response = CreateDescribeShardDBsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeShardDBsWithChan invokes the drds.DescribeShardDBs API asynchronously +// api document: https://help.aliyun.com/api/drds/describesharddbs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeShardDBsWithChan(request *DescribeShardDBsRequest) (<-chan *DescribeShardDBsResponse, <-chan error) { + responseChan := make(chan *DescribeShardDBsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeShardDBs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeShardDBsWithCallback invokes the drds.DescribeShardDBs API asynchronously +// api document: https://help.aliyun.com/api/drds/describesharddbs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeShardDBsWithCallback(request *DescribeShardDBsRequest, callback func(response *DescribeShardDBsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeShardDBsResponse + var err error + defer close(result) + response, err = client.DescribeShardDBs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeShardDBsRequest is the request struct for api DescribeShardDBs +type DescribeShardDBsRequest struct { + *requests.RpcRequest + DbName string `position:"Query" name:"DbName"` + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` +} + +// DescribeShardDBsResponse is the response struct for api DescribeShardDBs +type DescribeShardDBsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Data DataInDescribeShardDBs `json:"Data" xml:"Data"` +} + +// CreateDescribeShardDBsRequest creates a request to invoke DescribeShardDBs API +func CreateDescribeShardDBsRequest() (request *DescribeShardDBsRequest) { + request = &DescribeShardDBsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "DescribeShardDBs", "", "") + return +} + +// CreateDescribeShardDBsResponse creates a response to parse from DescribeShardDBs response +func CreateDescribeShardDBsResponse() (response *DescribeShardDBsResponse) { + response = &DescribeShardDBsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_shard_db_connection_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_shard_db_connection_info.go new file mode 100644 index 0000000..78904a4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/describe_shard_db_connection_info.go @@ -0,0 +1,107 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeShardDbConnectionInfo invokes the drds.DescribeShardDbConnectionInfo API synchronously +// api document: https://help.aliyun.com/api/drds/describesharddbconnectioninfo.html +func (client *Client) DescribeShardDbConnectionInfo(request *DescribeShardDbConnectionInfoRequest) (response *DescribeShardDbConnectionInfoResponse, err error) { + response = CreateDescribeShardDbConnectionInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeShardDbConnectionInfoWithChan invokes the drds.DescribeShardDbConnectionInfo API asynchronously +// api document: https://help.aliyun.com/api/drds/describesharddbconnectioninfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeShardDbConnectionInfoWithChan(request *DescribeShardDbConnectionInfoRequest) (<-chan *DescribeShardDbConnectionInfoResponse, <-chan error) { + responseChan := make(chan *DescribeShardDbConnectionInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeShardDbConnectionInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeShardDbConnectionInfoWithCallback invokes the drds.DescribeShardDbConnectionInfo API asynchronously +// api document: https://help.aliyun.com/api/drds/describesharddbconnectioninfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeShardDbConnectionInfoWithCallback(request *DescribeShardDbConnectionInfoRequest, callback func(response *DescribeShardDbConnectionInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeShardDbConnectionInfoResponse + var err error + defer close(result) + response, err = client.DescribeShardDbConnectionInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeShardDbConnectionInfoRequest is the request struct for api DescribeShardDbConnectionInfo +type DescribeShardDbConnectionInfoRequest struct { + *requests.RpcRequest + DbName string `position:"Query" name:"DbName"` + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` + SubDbName string `position:"Query" name:"SubDbName"` +} + +// DescribeShardDbConnectionInfoResponse is the response struct for api DescribeShardDbConnectionInfo +type DescribeShardDbConnectionInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + ConnectionInfo ConnectionInfo `json:"ConnectionInfo" xml:"ConnectionInfo"` +} + +// CreateDescribeShardDbConnectionInfoRequest creates a request to invoke DescribeShardDbConnectionInfo API +func CreateDescribeShardDbConnectionInfoRequest() (request *DescribeShardDbConnectionInfoRequest) { + request = &DescribeShardDbConnectionInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "DescribeShardDbConnectionInfo", "", "") + return +} + +// CreateDescribeShardDbConnectionInfoResponse creates a response to parse from DescribeShardDbConnectionInfo response +func CreateDescribeShardDbConnectionInfoResponse() (response *DescribeShardDbConnectionInfoResponse) { + response = &DescribeShardDbConnectionInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_drds_db_passwd.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_drds_db_passwd.go new file mode 100644 index 0000000..174d2ab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_drds_db_passwd.go @@ -0,0 +1,106 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDrdsDBPasswd invokes the drds.ModifyDrdsDBPasswd API synchronously +// api document: https://help.aliyun.com/api/drds/modifydrdsdbpasswd.html +func (client *Client) ModifyDrdsDBPasswd(request *ModifyDrdsDBPasswdRequest) (response *ModifyDrdsDBPasswdResponse, err error) { + response = CreateModifyDrdsDBPasswdResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDrdsDBPasswdWithChan invokes the drds.ModifyDrdsDBPasswd API asynchronously +// api document: https://help.aliyun.com/api/drds/modifydrdsdbpasswd.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDrdsDBPasswdWithChan(request *ModifyDrdsDBPasswdRequest) (<-chan *ModifyDrdsDBPasswdResponse, <-chan error) { + responseChan := make(chan *ModifyDrdsDBPasswdResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDrdsDBPasswd(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDrdsDBPasswdWithCallback invokes the drds.ModifyDrdsDBPasswd API asynchronously +// api document: https://help.aliyun.com/api/drds/modifydrdsdbpasswd.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDrdsDBPasswdWithCallback(request *ModifyDrdsDBPasswdRequest, callback func(response *ModifyDrdsDBPasswdResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDrdsDBPasswdResponse + var err error + defer close(result) + response, err = client.ModifyDrdsDBPasswd(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDrdsDBPasswdRequest is the request struct for api ModifyDrdsDBPasswd +type ModifyDrdsDBPasswdRequest struct { + *requests.RpcRequest + NewPasswd string `position:"Query" name:"NewPasswd"` + DbName string `position:"Query" name:"DbName"` + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` +} + +// ModifyDrdsDBPasswdResponse is the response struct for api ModifyDrdsDBPasswd +type ModifyDrdsDBPasswdResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` +} + +// CreateModifyDrdsDBPasswdRequest creates a request to invoke ModifyDrdsDBPasswd API +func CreateModifyDrdsDBPasswdRequest() (request *ModifyDrdsDBPasswdRequest) { + request = &ModifyDrdsDBPasswdRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "ModifyDrdsDBPasswd", "", "") + return +} + +// CreateModifyDrdsDBPasswdResponse creates a response to parse from ModifyDrdsDBPasswd response +func CreateModifyDrdsDBPasswdResponse() (response *ModifyDrdsDBPasswdResponse) { + response = &ModifyDrdsDBPasswdResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_drds_instance_description.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_drds_instance_description.go new file mode 100644 index 0000000..eb79fec --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_drds_instance_description.go @@ -0,0 +1,105 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDrdsInstanceDescription invokes the drds.ModifyDrdsInstanceDescription API synchronously +// api document: https://help.aliyun.com/api/drds/modifydrdsinstancedescription.html +func (client *Client) ModifyDrdsInstanceDescription(request *ModifyDrdsInstanceDescriptionRequest) (response *ModifyDrdsInstanceDescriptionResponse, err error) { + response = CreateModifyDrdsInstanceDescriptionResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDrdsInstanceDescriptionWithChan invokes the drds.ModifyDrdsInstanceDescription API asynchronously +// api document: https://help.aliyun.com/api/drds/modifydrdsinstancedescription.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDrdsInstanceDescriptionWithChan(request *ModifyDrdsInstanceDescriptionRequest) (<-chan *ModifyDrdsInstanceDescriptionResponse, <-chan error) { + responseChan := make(chan *ModifyDrdsInstanceDescriptionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDrdsInstanceDescription(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDrdsInstanceDescriptionWithCallback invokes the drds.ModifyDrdsInstanceDescription API asynchronously +// api document: https://help.aliyun.com/api/drds/modifydrdsinstancedescription.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDrdsInstanceDescriptionWithCallback(request *ModifyDrdsInstanceDescriptionRequest, callback func(response *ModifyDrdsInstanceDescriptionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDrdsInstanceDescriptionResponse + var err error + defer close(result) + response, err = client.ModifyDrdsInstanceDescription(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDrdsInstanceDescriptionRequest is the request struct for api ModifyDrdsInstanceDescription +type ModifyDrdsInstanceDescriptionRequest struct { + *requests.RpcRequest + Description string `position:"Query" name:"Description"` + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` +} + +// ModifyDrdsInstanceDescriptionResponse is the response struct for api ModifyDrdsInstanceDescription +type ModifyDrdsInstanceDescriptionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` +} + +// CreateModifyDrdsInstanceDescriptionRequest creates a request to invoke ModifyDrdsInstanceDescription API +func CreateModifyDrdsInstanceDescriptionRequest() (request *ModifyDrdsInstanceDescriptionRequest) { + request = &ModifyDrdsInstanceDescriptionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "ModifyDrdsInstanceDescription", "", "") + return +} + +// CreateModifyDrdsInstanceDescriptionResponse creates a response to parse from ModifyDrdsInstanceDescription response +func CreateModifyDrdsInstanceDescriptionResponse() (response *ModifyDrdsInstanceDescriptionResponse) { + response = &ModifyDrdsInstanceDescriptionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_drds_ip_white_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_drds_ip_white_list.go new file mode 100644 index 0000000..d625bdf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_drds_ip_white_list.go @@ -0,0 +1,109 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDrdsIpWhiteList invokes the drds.ModifyDrdsIpWhiteList API synchronously +// api document: https://help.aliyun.com/api/drds/modifydrdsipwhitelist.html +func (client *Client) ModifyDrdsIpWhiteList(request *ModifyDrdsIpWhiteListRequest) (response *ModifyDrdsIpWhiteListResponse, err error) { + response = CreateModifyDrdsIpWhiteListResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDrdsIpWhiteListWithChan invokes the drds.ModifyDrdsIpWhiteList API asynchronously +// api document: https://help.aliyun.com/api/drds/modifydrdsipwhitelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDrdsIpWhiteListWithChan(request *ModifyDrdsIpWhiteListRequest) (<-chan *ModifyDrdsIpWhiteListResponse, <-chan error) { + responseChan := make(chan *ModifyDrdsIpWhiteListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDrdsIpWhiteList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDrdsIpWhiteListWithCallback invokes the drds.ModifyDrdsIpWhiteList API asynchronously +// api document: https://help.aliyun.com/api/drds/modifydrdsipwhitelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDrdsIpWhiteListWithCallback(request *ModifyDrdsIpWhiteListRequest, callback func(response *ModifyDrdsIpWhiteListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDrdsIpWhiteListResponse + var err error + defer close(result) + response, err = client.ModifyDrdsIpWhiteList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDrdsIpWhiteListRequest is the request struct for api ModifyDrdsIpWhiteList +type ModifyDrdsIpWhiteListRequest struct { + *requests.RpcRequest + Mode requests.Boolean `position:"Query" name:"Mode"` + DbName string `position:"Query" name:"DbName"` + GroupAttribute string `position:"Query" name:"GroupAttribute"` + IpWhiteList string `position:"Query" name:"IpWhiteList"` + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` + GroupName string `position:"Query" name:"GroupName"` +} + +// ModifyDrdsIpWhiteListResponse is the response struct for api ModifyDrdsIpWhiteList +type ModifyDrdsIpWhiteListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` +} + +// CreateModifyDrdsIpWhiteListRequest creates a request to invoke ModifyDrdsIpWhiteList API +func CreateModifyDrdsIpWhiteListRequest() (request *ModifyDrdsIpWhiteListRequest) { + request = &ModifyDrdsIpWhiteListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "ModifyDrdsIpWhiteList", "", "") + return +} + +// CreateModifyDrdsIpWhiteListResponse creates a response to parse from ModifyDrdsIpWhiteList response +func CreateModifyDrdsIpWhiteListResponse() (response *ModifyDrdsIpWhiteListResponse) { + response = &ModifyDrdsIpWhiteListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_full_table_scan.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_full_table_scan.go new file mode 100644 index 0000000..86b12b9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_full_table_scan.go @@ -0,0 +1,107 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyFullTableScan invokes the drds.ModifyFullTableScan API synchronously +// api document: https://help.aliyun.com/api/drds/modifyfulltablescan.html +func (client *Client) ModifyFullTableScan(request *ModifyFullTableScanRequest) (response *ModifyFullTableScanResponse, err error) { + response = CreateModifyFullTableScanResponse() + err = client.DoAction(request, response) + return +} + +// ModifyFullTableScanWithChan invokes the drds.ModifyFullTableScan API asynchronously +// api document: https://help.aliyun.com/api/drds/modifyfulltablescan.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyFullTableScanWithChan(request *ModifyFullTableScanRequest) (<-chan *ModifyFullTableScanResponse, <-chan error) { + responseChan := make(chan *ModifyFullTableScanResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyFullTableScan(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyFullTableScanWithCallback invokes the drds.ModifyFullTableScan API asynchronously +// api document: https://help.aliyun.com/api/drds/modifyfulltablescan.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyFullTableScanWithCallback(request *ModifyFullTableScanRequest, callback func(response *ModifyFullTableScanResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyFullTableScanResponse + var err error + defer close(result) + response, err = client.ModifyFullTableScan(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyFullTableScanRequest is the request struct for api ModifyFullTableScan +type ModifyFullTableScanRequest struct { + *requests.RpcRequest + DbName string `position:"Query" name:"DbName"` + TableNames string `position:"Query" name:"TableNames"` + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` + FullTableScan requests.Boolean `position:"Query" name:"FullTableScan"` +} + +// ModifyFullTableScanResponse is the response struct for api ModifyFullTableScan +type ModifyFullTableScanResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` +} + +// CreateModifyFullTableScanRequest creates a request to invoke ModifyFullTableScan API +func CreateModifyFullTableScanRequest() (request *ModifyFullTableScanRequest) { + request = &ModifyFullTableScanRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "ModifyFullTableScan", "", "") + return +} + +// CreateModifyFullTableScanResponse creates a response to parse from ModifyFullTableScan response +func CreateModifyFullTableScanResponse() (response *ModifyFullTableScanResponse) { + response = &ModifyFullTableScanResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_rds_read_weight.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_rds_read_weight.go new file mode 100644 index 0000000..f152993 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_rds_read_weight.go @@ -0,0 +1,107 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyRdsReadWeight invokes the drds.ModifyRdsReadWeight API synchronously +// api document: https://help.aliyun.com/api/drds/modifyrdsreadweight.html +func (client *Client) ModifyRdsReadWeight(request *ModifyRdsReadWeightRequest) (response *ModifyRdsReadWeightResponse, err error) { + response = CreateModifyRdsReadWeightResponse() + err = client.DoAction(request, response) + return +} + +// ModifyRdsReadWeightWithChan invokes the drds.ModifyRdsReadWeight API asynchronously +// api document: https://help.aliyun.com/api/drds/modifyrdsreadweight.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyRdsReadWeightWithChan(request *ModifyRdsReadWeightRequest) (<-chan *ModifyRdsReadWeightResponse, <-chan error) { + responseChan := make(chan *ModifyRdsReadWeightResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyRdsReadWeight(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyRdsReadWeightWithCallback invokes the drds.ModifyRdsReadWeight API asynchronously +// api document: https://help.aliyun.com/api/drds/modifyrdsreadweight.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyRdsReadWeightWithCallback(request *ModifyRdsReadWeightRequest, callback func(response *ModifyRdsReadWeightResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyRdsReadWeightResponse + var err error + defer close(result) + response, err = client.ModifyRdsReadWeight(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyRdsReadWeightRequest is the request struct for api ModifyRdsReadWeight +type ModifyRdsReadWeightRequest struct { + *requests.RpcRequest + InstanceNames string `position:"Query" name:"InstanceNames"` + DbName string `position:"Query" name:"DbName"` + Weights string `position:"Query" name:"Weights"` + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` +} + +// ModifyRdsReadWeightResponse is the response struct for api ModifyRdsReadWeight +type ModifyRdsReadWeightResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` +} + +// CreateModifyRdsReadWeightRequest creates a request to invoke ModifyRdsReadWeight API +func CreateModifyRdsReadWeightRequest() (request *ModifyRdsReadWeightRequest) { + request = &ModifyRdsReadWeightRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "ModifyRdsReadWeight", "", "") + return +} + +// CreateModifyRdsReadWeightResponse creates a response to parse from ModifyRdsReadWeight response +func CreateModifyRdsReadWeightResponse() (response *ModifyRdsReadWeightResponse) { + response = &ModifyRdsReadWeightResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_read_only_account_password.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_read_only_account_password.go new file mode 100644 index 0000000..89934b2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/modify_read_only_account_password.go @@ -0,0 +1,108 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyReadOnlyAccountPassword invokes the drds.ModifyReadOnlyAccountPassword API synchronously +// api document: https://help.aliyun.com/api/drds/modifyreadonlyaccountpassword.html +func (client *Client) ModifyReadOnlyAccountPassword(request *ModifyReadOnlyAccountPasswordRequest) (response *ModifyReadOnlyAccountPasswordResponse, err error) { + response = CreateModifyReadOnlyAccountPasswordResponse() + err = client.DoAction(request, response) + return +} + +// ModifyReadOnlyAccountPasswordWithChan invokes the drds.ModifyReadOnlyAccountPassword API asynchronously +// api document: https://help.aliyun.com/api/drds/modifyreadonlyaccountpassword.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReadOnlyAccountPasswordWithChan(request *ModifyReadOnlyAccountPasswordRequest) (<-chan *ModifyReadOnlyAccountPasswordResponse, <-chan error) { + responseChan := make(chan *ModifyReadOnlyAccountPasswordResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyReadOnlyAccountPassword(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyReadOnlyAccountPasswordWithCallback invokes the drds.ModifyReadOnlyAccountPassword API asynchronously +// api document: https://help.aliyun.com/api/drds/modifyreadonlyaccountpassword.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReadOnlyAccountPasswordWithCallback(request *ModifyReadOnlyAccountPasswordRequest, callback func(response *ModifyReadOnlyAccountPasswordResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyReadOnlyAccountPasswordResponse + var err error + defer close(result) + response, err = client.ModifyReadOnlyAccountPassword(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyReadOnlyAccountPasswordRequest is the request struct for api ModifyReadOnlyAccountPassword +type ModifyReadOnlyAccountPasswordRequest struct { + *requests.RpcRequest + NewPasswd string `position:"Query" name:"NewPasswd"` + DbName string `position:"Query" name:"DbName"` + AccountName string `position:"Query" name:"AccountName"` + OriginPassword string `position:"Query" name:"OriginPassword"` + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` +} + +// ModifyReadOnlyAccountPasswordResponse is the response struct for api ModifyReadOnlyAccountPassword +type ModifyReadOnlyAccountPasswordResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` +} + +// CreateModifyReadOnlyAccountPasswordRequest creates a request to invoke ModifyReadOnlyAccountPassword API +func CreateModifyReadOnlyAccountPasswordRequest() (request *ModifyReadOnlyAccountPasswordRequest) { + request = &ModifyReadOnlyAccountPasswordRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "ModifyReadOnlyAccountPassword", "", "") + return +} + +// CreateModifyReadOnlyAccountPasswordResponse creates a response to parse from ModifyReadOnlyAccountPassword response +func CreateModifyReadOnlyAccountPasswordResponse() (response *ModifyReadOnlyAccountPasswordResponse) { + response = &ModifyReadOnlyAccountPasswordResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/query_instance_info_by_conn.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/query_instance_info_by_conn.go new file mode 100644 index 0000000..1116f3e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/query_instance_info_by_conn.go @@ -0,0 +1,107 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryInstanceInfoByConn invokes the drds.QueryInstanceInfoByConn API synchronously +// api document: https://help.aliyun.com/api/drds/queryinstanceinfobyconn.html +func (client *Client) QueryInstanceInfoByConn(request *QueryInstanceInfoByConnRequest) (response *QueryInstanceInfoByConnResponse, err error) { + response = CreateQueryInstanceInfoByConnResponse() + err = client.DoAction(request, response) + return +} + +// QueryInstanceInfoByConnWithChan invokes the drds.QueryInstanceInfoByConn API asynchronously +// api document: https://help.aliyun.com/api/drds/queryinstanceinfobyconn.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryInstanceInfoByConnWithChan(request *QueryInstanceInfoByConnRequest) (<-chan *QueryInstanceInfoByConnResponse, <-chan error) { + responseChan := make(chan *QueryInstanceInfoByConnResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryInstanceInfoByConn(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryInstanceInfoByConnWithCallback invokes the drds.QueryInstanceInfoByConn API asynchronously +// api document: https://help.aliyun.com/api/drds/queryinstanceinfobyconn.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryInstanceInfoByConnWithCallback(request *QueryInstanceInfoByConnRequest, callback func(response *QueryInstanceInfoByConnResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryInstanceInfoByConnResponse + var err error + defer close(result) + response, err = client.QueryInstanceInfoByConn(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryInstanceInfoByConnRequest is the request struct for api QueryInstanceInfoByConn +type QueryInstanceInfoByConnRequest struct { + *requests.RpcRequest + Port requests.Integer `position:"Query" name:"Port"` + Host string `position:"Query" name:"Host"` + UserName string `position:"Query" name:"UserName"` +} + +// QueryInstanceInfoByConnResponse is the response struct for api QueryInstanceInfoByConn +type QueryInstanceInfoByConnResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateQueryInstanceInfoByConnRequest creates a request to invoke QueryInstanceInfoByConn API +func CreateQueryInstanceInfoByConnRequest() (request *QueryInstanceInfoByConnRequest) { + request = &QueryInstanceInfoByConnRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "QueryInstanceInfoByConn", "", "") + return +} + +// CreateQueryInstanceInfoByConnResponse creates a response to parse from QueryInstanceInfoByConn response +func CreateQueryInstanceInfoByConnResponse() (response *QueryInstanceInfoByConnResponse) { + response = &QueryInstanceInfoByConnResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/remove_drds_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/remove_drds_instance.go new file mode 100644 index 0000000..34ea98b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/remove_drds_instance.go @@ -0,0 +1,104 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveDrdsInstance invokes the drds.RemoveDrdsInstance API synchronously +// api document: https://help.aliyun.com/api/drds/removedrdsinstance.html +func (client *Client) RemoveDrdsInstance(request *RemoveDrdsInstanceRequest) (response *RemoveDrdsInstanceResponse, err error) { + response = CreateRemoveDrdsInstanceResponse() + err = client.DoAction(request, response) + return +} + +// RemoveDrdsInstanceWithChan invokes the drds.RemoveDrdsInstance API asynchronously +// api document: https://help.aliyun.com/api/drds/removedrdsinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveDrdsInstanceWithChan(request *RemoveDrdsInstanceRequest) (<-chan *RemoveDrdsInstanceResponse, <-chan error) { + responseChan := make(chan *RemoveDrdsInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveDrdsInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveDrdsInstanceWithCallback invokes the drds.RemoveDrdsInstance API asynchronously +// api document: https://help.aliyun.com/api/drds/removedrdsinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveDrdsInstanceWithCallback(request *RemoveDrdsInstanceRequest, callback func(response *RemoveDrdsInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveDrdsInstanceResponse + var err error + defer close(result) + response, err = client.RemoveDrdsInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveDrdsInstanceRequest is the request struct for api RemoveDrdsInstance +type RemoveDrdsInstanceRequest struct { + *requests.RpcRequest + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` +} + +// RemoveDrdsInstanceResponse is the response struct for api RemoveDrdsInstance +type RemoveDrdsInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` +} + +// CreateRemoveDrdsInstanceRequest creates a request to invoke RemoveDrdsInstance API +func CreateRemoveDrdsInstanceRequest() (request *RemoveDrdsInstanceRequest) { + request = &RemoveDrdsInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "RemoveDrdsInstance", "", "") + return +} + +// CreateRemoveDrdsInstanceResponse creates a response to parse from RemoveDrdsInstance response +func CreateRemoveDrdsInstanceResponse() (response *RemoveDrdsInstanceResponse) { + response = &RemoveDrdsInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/remove_read_only_account.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/remove_read_only_account.go new file mode 100644 index 0000000..c42fa3e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/remove_read_only_account.go @@ -0,0 +1,106 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveReadOnlyAccount invokes the drds.RemoveReadOnlyAccount API synchronously +// api document: https://help.aliyun.com/api/drds/removereadonlyaccount.html +func (client *Client) RemoveReadOnlyAccount(request *RemoveReadOnlyAccountRequest) (response *RemoveReadOnlyAccountResponse, err error) { + response = CreateRemoveReadOnlyAccountResponse() + err = client.DoAction(request, response) + return +} + +// RemoveReadOnlyAccountWithChan invokes the drds.RemoveReadOnlyAccount API asynchronously +// api document: https://help.aliyun.com/api/drds/removereadonlyaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveReadOnlyAccountWithChan(request *RemoveReadOnlyAccountRequest) (<-chan *RemoveReadOnlyAccountResponse, <-chan error) { + responseChan := make(chan *RemoveReadOnlyAccountResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveReadOnlyAccount(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveReadOnlyAccountWithCallback invokes the drds.RemoveReadOnlyAccount API asynchronously +// api document: https://help.aliyun.com/api/drds/removereadonlyaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveReadOnlyAccountWithCallback(request *RemoveReadOnlyAccountRequest, callback func(response *RemoveReadOnlyAccountResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveReadOnlyAccountResponse + var err error + defer close(result) + response, err = client.RemoveReadOnlyAccount(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveReadOnlyAccountRequest is the request struct for api RemoveReadOnlyAccount +type RemoveReadOnlyAccountRequest struct { + *requests.RpcRequest + DbName string `position:"Query" name:"DbName"` + AccountName string `position:"Query" name:"AccountName"` + DrdsInstanceId string `position:"Query" name:"DrdsInstanceId"` +} + +// RemoveReadOnlyAccountResponse is the response struct for api RemoveReadOnlyAccount +type RemoveReadOnlyAccountResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` +} + +// CreateRemoveReadOnlyAccountRequest creates a request to invoke RemoveReadOnlyAccount API +func CreateRemoveReadOnlyAccountRequest() (request *RemoveReadOnlyAccountRequest) { + request = &RemoveReadOnlyAccountRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Drds", "2017-10-16", "RemoveReadOnlyAccount", "", "") + return +} + +// CreateRemoveReadOnlyAccountResponse creates a response to parse from RemoveReadOnlyAccount response +func CreateRemoveReadOnlyAccountResponse() (response *RemoveReadOnlyAccountResponse) { + response = &RemoveReadOnlyAccountResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_child.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_child.go new file mode 100644 index 0000000..d11ad2a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_child.go @@ -0,0 +1,27 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Child is a nested struct in drds response +type Child struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + ConnectUrl string `json:"ConnectUrl" xml:"ConnectUrl"` + Port int `json:"port" xml:"port"` + InstanceStatus string `json:"InstanceStatus" xml:"InstanceStatus"` + DbType string `json:"DbType" xml:"DbType"` + ReadWeight int `json:"ReadWeight" xml:"ReadWeight"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_connection_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_connection_info.go new file mode 100644 index 0000000..acc0116 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_connection_info.go @@ -0,0 +1,32 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ConnectionInfo is a nested struct in drds response +type ConnectionInfo struct { + InstanceName string `json:"InstanceName" xml:"InstanceName"` + InstanceUrl string `json:"InstanceUrl" xml:"InstanceUrl"` + SubDbName string `json:"subDbName" xml:"subDbName"` + DbStatus string `json:"dbStatus" xml:"dbStatus"` + DbType string `json:"dbType" xml:"dbType"` + MinPoolSize int `json:"minPoolSize" xml:"minPoolSize"` + MaxPoolSize int `json:"maxPoolSize" xml:"maxPoolSize"` + IdleTimeOut int `json:"idleTimeOut" xml:"idleTimeOut"` + BlockingTimeout int `json:"blockingTimeout" xml:"blockingTimeout"` + ConnectionProperties string `json:"connectionProperties" xml:"connectionProperties"` + PreparedStatementCacheSize int `json:"preparedStatementCacheSize" xml:"preparedStatementCacheSize"` + UserName string `json:"userName" xml:"userName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data.go new file mode 100644 index 0000000..b3e31a2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data.go @@ -0,0 +1,39 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 drds response +type Data struct { + Version int `json:"Version" xml:"Version"` + SpecTypeName string `json:"SpecTypeName" xml:"SpecTypeName"` + OrderId int `json:"OrderId" xml:"OrderId"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` + DrdsInstanceId string `json:"DrdsInstanceId" xml:"DrdsInstanceId"` + DbName string `json:"DbName" xml:"DbName"` + VpcCloudInstanceId string `json:"VpcCloudInstanceId" xml:"VpcCloudInstanceId"` + RegionId string `json:"RegionId" xml:"RegionId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + AccountName string `json:"AccountName" xml:"AccountName"` + SpecTypeId string `json:"SpecTypeId" xml:"SpecTypeId"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + Status string `json:"Status" xml:"Status"` + Description string `json:"Description" xml:"Description"` + Specification string `json:"Specification" xml:"Specification"` + Type string `json:"Type" xml:"Type"` + DrdsInstanceIdList DrdsInstanceIdList `json:"DrdsInstanceIdList" xml:"DrdsInstanceIdList"` + IpWhiteList IpWhiteList `json:"IpWhiteList" xml:"IpWhiteList"` + Vips VipsInQueryInstanceInfoByConn `json:"Vips" xml:"Vips"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data_in_describe_drds_d_bs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data_in_describe_drds_d_bs.go new file mode 100644 index 0000000..29e13da --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data_in_describe_drds_d_bs.go @@ -0,0 +1,21 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInDescribeDrdsDBs is a nested struct in drds response +type DataInDescribeDrdsDBs struct { + Db []Db `json:"Db" xml:"Db"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data_in_describe_drds_db.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data_in_describe_drds_db.go new file mode 100644 index 0000000..8f9de73 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data_in_describe_drds_db.go @@ -0,0 +1,25 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInDescribeDrdsDB is a nested struct in drds response +type DataInDescribeDrdsDB struct { + DbName string `json:"DbName" xml:"DbName"` + Status int `json:"Status" xml:"Status"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Msg string `json:"Msg" xml:"Msg"` + Mode string `json:"Mode" xml:"Mode"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data_in_describe_drds_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data_in_describe_drds_instances.go new file mode 100644 index 0000000..f26b27b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data_in_describe_drds_instances.go @@ -0,0 +1,21 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInDescribeDrdsInstances is a nested struct in drds response +type DataInDescribeDrdsInstances struct { + Instance []Instance `json:"Instance" xml:"Instance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data_in_describe_rds_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data_in_describe_rds_list.go new file mode 100644 index 0000000..601dc3f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data_in_describe_rds_list.go @@ -0,0 +1,21 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInDescribeRdsList is a nested struct in drds response +type DataInDescribeRdsList struct { + RdsInstance []RdsInstance `json:"RdsInstance" xml:"RdsInstance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data_in_describe_shard_d_bs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data_in_describe_shard_d_bs.go new file mode 100644 index 0000000..3c0045b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_data_in_describe_shard_d_bs.go @@ -0,0 +1,21 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInDescribeShardDBs is a nested struct in drds response +type DataInDescribeShardDBs struct { + DbIntancePair []DbIntancePair `json:"DbIntancePair" xml:"DbIntancePair"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_db.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_db.go new file mode 100644 index 0000000..24dfd37 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_db.go @@ -0,0 +1,25 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Db is a nested struct in drds response +type Db struct { + DbName string `json:"DbName" xml:"DbName"` + Status int `json:"Status" xml:"Status"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Msg string `json:"Msg" xml:"Msg"` + Mode string `json:"Mode" xml:"Mode"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_db_intance_pair.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_db_intance_pair.go new file mode 100644 index 0000000..0e03655 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_db_intance_pair.go @@ -0,0 +1,22 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DbIntancePair is a nested struct in drds response +type DbIntancePair struct { + SubDbName string `json:"SubDbName" xml:"SubDbName"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_drds_instance_id_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_drds_instance_id_list.go new file mode 100644 index 0000000..2eaf97c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_drds_instance_id_list.go @@ -0,0 +1,21 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DrdsInstanceIdList is a nested struct in drds response +type DrdsInstanceIdList struct { + DrdsInstanceId []string `json:"DrdsInstanceId" xml:"DrdsInstanceId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_drds_region.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_drds_region.go new file mode 100644 index 0000000..a401224 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_drds_region.go @@ -0,0 +1,25 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DrdsRegion is a nested struct in drds response +type DrdsRegion struct { + RegionId string `json:"RegionId" xml:"RegionId"` + RegionName string `json:"RegionName" xml:"RegionName"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + ZoneName string `json:"ZoneName" xml:"ZoneName"` + InstanceSeriesList InstanceSeriesList `json:"InstanceSeriesList" xml:"InstanceSeriesList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_drds_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_drds_regions.go new file mode 100644 index 0000000..2984086 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_drds_regions.go @@ -0,0 +1,21 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DrdsRegions is a nested struct in drds response +type DrdsRegions struct { + DrdsRegion []DrdsRegion `json:"DrdsRegion" xml:"DrdsRegion"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_instance.go new file mode 100644 index 0000000..c4300a2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_instance.go @@ -0,0 +1,31 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 drds response +type Instance struct { + DrdsInstanceId string `json:"DrdsInstanceId" xml:"DrdsInstanceId"` + Type string `json:"Type" xml:"Type"` + RegionId string `json:"RegionId" xml:"RegionId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + Description string `json:"Description" xml:"Description"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + Status string `json:"Status" xml:"Status"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` + Version int `json:"Version" xml:"Version"` + VpcCloudInstanceId string `json:"VpcCloudInstanceId" xml:"VpcCloudInstanceId"` + Vips VipsInDescribeDrdsInstances `json:"Vips" xml:"Vips"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_instance_series.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_instance_series.go new file mode 100644 index 0000000..1b9496b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_instance_series.go @@ -0,0 +1,23 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceSeries is a nested struct in drds response +type InstanceSeries struct { + SeriesId string `json:"SeriesId" xml:"SeriesId"` + SeriesName string `json:"SeriesName" xml:"SeriesName"` + SpecList SpecList `json:"SpecList" xml:"SpecList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_instance_series_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_instance_series_list.go new file mode 100644 index 0000000..2c13f90 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_instance_series_list.go @@ -0,0 +1,21 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceSeriesList is a nested struct in drds response +type InstanceSeriesList struct { + InstanceSeries []InstanceSeries `json:"InstanceSeries" xml:"InstanceSeries"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_ip_white_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_ip_white_list.go new file mode 100644 index 0000000..101f796 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_ip_white_list.go @@ -0,0 +1,21 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IpWhiteList is a nested struct in drds response +type IpWhiteList struct { + Ip []string `json:"Ip" xml:"Ip"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_net_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_net_info.go new file mode 100644 index 0000000..241a511 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_net_info.go @@ -0,0 +1,24 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NetInfo is a nested struct in drds response +type NetInfo struct { + IP string `json:"IP" xml:"IP"` + Port string `json:"Port" xml:"Port"` + Type string `json:"Type" xml:"Type"` + IsForVpc bool `json:"IsForVpc" xml:"IsForVpc"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_net_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_net_infos.go new file mode 100644 index 0000000..1a63e81 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_net_infos.go @@ -0,0 +1,21 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NetInfos is a nested struct in drds response +type NetInfos struct { + NetInfo []NetInfo `json:"NetInfo" xml:"NetInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_rds_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_rds_instance.go new file mode 100644 index 0000000..eb6072f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_rds_instance.go @@ -0,0 +1,28 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RdsInstance is a nested struct in drds response +type RdsInstance struct { + InstanceId int `json:"InstanceId" xml:"InstanceId"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + ConnectUrl string `json:"ConnectUrl" xml:"ConnectUrl"` + Port int `json:"Port" xml:"Port"` + InstanceStatus string `json:"InstanceStatus" xml:"InstanceStatus"` + DbType string `json:"DbType" xml:"DbType"` + ReadWeight int `json:"ReadWeight" xml:"ReadWeight"` + ReadOnlyChildren ReadOnlyChildren `json:"ReadOnlyChildren" xml:"ReadOnlyChildren"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_read_only_children.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_read_only_children.go new file mode 100644 index 0000000..d9b9754 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_read_only_children.go @@ -0,0 +1,21 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ReadOnlyChildren is a nested struct in drds response +type ReadOnlyChildren struct { + Child []Child `json:"Child" xml:"Child"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_spec.go new file mode 100644 index 0000000..aa8c28e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_spec.go @@ -0,0 +1,22 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Spec is a nested struct in drds response +type Spec struct { + SpecId string `json:"SpecId" xml:"SpecId"` + SpecName string `json:"SpecName" xml:"SpecName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_spec_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_spec_list.go new file mode 100644 index 0000000..c4b7492 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_spec_list.go @@ -0,0 +1,21 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SpecList is a nested struct in drds response +type SpecList struct { + Spec []Spec `json:"Spec" xml:"Spec"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_vip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_vip.go new file mode 100644 index 0000000..3fe4f09 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_vip.go @@ -0,0 +1,25 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Vip is a nested struct in drds response +type Vip struct { + Port string `json:"Port" xml:"Port"` + IP string `json:"IP" xml:"IP"` + VswitchId string `json:"VswitchId" xml:"VswitchId"` + VpcId string `json:"VpcId" xml:"VpcId"` + Type string `json:"Type" xml:"Type"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_vips_in_describe_drds_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_vips_in_describe_drds_instance.go new file mode 100644 index 0000000..3afe522 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_vips_in_describe_drds_instance.go @@ -0,0 +1,21 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VipsInDescribeDrdsInstance is a nested struct in drds response +type VipsInDescribeDrdsInstance struct { + Vip []Vip `json:"Vip" xml:"Vip"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_vips_in_describe_drds_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_vips_in_describe_drds_instances.go new file mode 100644 index 0000000..f6b4bd0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_vips_in_describe_drds_instances.go @@ -0,0 +1,21 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VipsInDescribeDrdsInstances is a nested struct in drds response +type VipsInDescribeDrdsInstances struct { + Vip []Vip `json:"Vip" xml:"Vip"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_vips_in_query_instance_info_by_conn.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_vips_in_query_instance_info_by_conn.go new file mode 100644 index 0000000..63cd156 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/drds/struct_vips_in_query_instance_info_by_conn.go @@ -0,0 +1,21 @@ +package drds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VipsInQueryInstanceInfoByConn is a nested struct in drds response +type VipsInQueryInstanceInfoByConn struct { + Vip []Vip `json:"Vip" xml:"Vip"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/cancel_call.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/cancel_call.go new file mode 100644 index 0000000..ae9cb0f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/cancel_call.go @@ -0,0 +1,109 @@ +package dyvmsapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CancelCall invokes the dyvmsapi.CancelCall API synchronously +// api document: https://help.aliyun.com/api/dyvmsapi/cancelcall.html +func (client *Client) CancelCall(request *CancelCallRequest) (response *CancelCallResponse, err error) { + response = CreateCancelCallResponse() + err = client.DoAction(request, response) + return +} + +// CancelCallWithChan invokes the dyvmsapi.CancelCall API asynchronously +// api document: https://help.aliyun.com/api/dyvmsapi/cancelcall.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelCallWithChan(request *CancelCallRequest) (<-chan *CancelCallResponse, <-chan error) { + responseChan := make(chan *CancelCallResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CancelCall(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CancelCallWithCallback invokes the dyvmsapi.CancelCall API asynchronously +// api document: https://help.aliyun.com/api/dyvmsapi/cancelcall.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelCallWithCallback(request *CancelCallRequest, callback func(response *CancelCallResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CancelCallResponse + var err error + defer close(result) + response, err = client.CancelCall(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CancelCallRequest is the request struct for api CancelCall +type CancelCallRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CallId string `position:"Query" name:"CallId"` +} + +// CancelCallResponse is the response struct for api CancelCall +type CancelCallResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Status bool `json:"Status" xml:"Status"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` +} + +// CreateCancelCallRequest creates a request to invoke CancelCall API +func CreateCancelCallRequest() (request *CancelCallRequest) { + request = &CancelCallRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "CancelCall", "", "") + return +} + +// CreateCancelCallResponse creates a response to parse from CancelCall response +func CreateCancelCallResponse() (response *CancelCallResponse) { + response = &CancelCallResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/click_to_dial.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/click_to_dial.go new file mode 100644 index 0000000..fd80963 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/click_to_dial.go @@ -0,0 +1,117 @@ +package dyvmsapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ClickToDial invokes the dyvmsapi.ClickToDial API synchronously +// api document: https://help.aliyun.com/api/dyvmsapi/clicktodial.html +func (client *Client) ClickToDial(request *ClickToDialRequest) (response *ClickToDialResponse, err error) { + response = CreateClickToDialResponse() + err = client.DoAction(request, response) + return +} + +// ClickToDialWithChan invokes the dyvmsapi.ClickToDial API asynchronously +// api document: https://help.aliyun.com/api/dyvmsapi/clicktodial.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ClickToDialWithChan(request *ClickToDialRequest) (<-chan *ClickToDialResponse, <-chan error) { + responseChan := make(chan *ClickToDialResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ClickToDial(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ClickToDialWithCallback invokes the dyvmsapi.ClickToDial API asynchronously +// api document: https://help.aliyun.com/api/dyvmsapi/clicktodial.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ClickToDialWithCallback(request *ClickToDialRequest, callback func(response *ClickToDialResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ClickToDialResponse + var err error + defer close(result) + response, err = client.ClickToDial(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ClickToDialRequest is the request struct for api ClickToDial +type ClickToDialRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CallerShowNumber string `position:"Query" name:"CallerShowNumber"` + CallerNumber string `position:"Query" name:"CallerNumber"` + CalledShowNumber string `position:"Query" name:"CalledShowNumber"` + CalledNumber string `position:"Query" name:"CalledNumber"` + RecordFlag requests.Boolean `position:"Query" name:"RecordFlag"` + AsrFlag requests.Boolean `position:"Query" name:"AsrFlag"` + SessionTimeout requests.Integer `position:"Query" name:"SessionTimeout"` + AsrModelId string `position:"Query" name:"AsrModelId"` + OutId string `position:"Query" name:"OutId"` +} + +// ClickToDialResponse is the response struct for api ClickToDial +type ClickToDialResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CallId string `json:"CallId" xml:"CallId"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` +} + +// CreateClickToDialRequest creates a request to invoke ClickToDial API +func CreateClickToDialRequest() (request *ClickToDialRequest) { + request = &ClickToDialRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "ClickToDial", "", "") + return +} + +// CreateClickToDialResponse creates a response to parse from ClickToDial response +func CreateClickToDialResponse() (response *ClickToDialResponse) { + response = &ClickToDialResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/client.go new file mode 100644 index 0000000..7365c08 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/client.go @@ -0,0 +1,81 @@ +package dyvmsapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/ivr_call.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/ivr_call.go new file mode 100644 index 0000000..157b487 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/ivr_call.go @@ -0,0 +1,125 @@ +package dyvmsapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// IvrCall invokes the dyvmsapi.IvrCall API synchronously +// api document: https://help.aliyun.com/api/dyvmsapi/ivrcall.html +func (client *Client) IvrCall(request *IvrCallRequest) (response *IvrCallResponse, err error) { + response = CreateIvrCallResponse() + err = client.DoAction(request, response) + return +} + +// IvrCallWithChan invokes the dyvmsapi.IvrCall API asynchronously +// api document: https://help.aliyun.com/api/dyvmsapi/ivrcall.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) IvrCallWithChan(request *IvrCallRequest) (<-chan *IvrCallResponse, <-chan error) { + responseChan := make(chan *IvrCallResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.IvrCall(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// IvrCallWithCallback invokes the dyvmsapi.IvrCall API asynchronously +// api document: https://help.aliyun.com/api/dyvmsapi/ivrcall.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) IvrCallWithCallback(request *IvrCallRequest, callback func(response *IvrCallResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *IvrCallResponse + var err error + defer close(result) + response, err = client.IvrCall(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// IvrCallRequest is the request struct for api IvrCall +type IvrCallRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CalledShowNumber string `position:"Query" name:"CalledShowNumber"` + CalledNumber string `position:"Query" name:"CalledNumber"` + StartCode string `position:"Query" name:"StartCode"` + StartTtsParams string `position:"Query" name:"StartTtsParams"` + MenuKeyMap *[]IvrCallMenuKeyMap `position:"Query" name:"MenuKeyMap" type:"Repeated"` + PlayTimes requests.Integer `position:"Query" name:"PlayTimes"` + ByeCode string `position:"Query" name:"ByeCode"` + ByeTtsParams string `position:"Query" name:"ByeTtsParams"` + Timeout requests.Integer `position:"Query" name:"Timeout"` + OutId string `position:"Query" name:"OutId"` +} + +// IvrCallMenuKeyMap is a repeated param struct in IvrCallRequest +type IvrCallMenuKeyMap struct { + Key string `name:"Key"` + Code string `name:"Code"` + TtsParams string `name:"TtsParams"` +} + +// IvrCallResponse is the response struct for api IvrCall +type IvrCallResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CallId string `json:"CallId" xml:"CallId"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` +} + +// CreateIvrCallRequest creates a request to invoke IvrCall API +func CreateIvrCallRequest() (request *IvrCallRequest) { + request = &IvrCallRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "IvrCall", "", "") + return +} + +// CreateIvrCallResponse creates a response to parse from IvrCall response +func CreateIvrCallResponse() (response *IvrCallResponse) { + response = &IvrCallResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/query_call_detail_by_call_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/query_call_detail_by_call_id.go new file mode 100644 index 0000000..ca7fdfc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/query_call_detail_by_call_id.go @@ -0,0 +1,111 @@ +package dyvmsapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryCallDetailByCallId invokes the dyvmsapi.QueryCallDetailByCallId API synchronously +// api document: https://help.aliyun.com/api/dyvmsapi/querycalldetailbycallid.html +func (client *Client) QueryCallDetailByCallId(request *QueryCallDetailByCallIdRequest) (response *QueryCallDetailByCallIdResponse, err error) { + response = CreateQueryCallDetailByCallIdResponse() + err = client.DoAction(request, response) + return +} + +// QueryCallDetailByCallIdWithChan invokes the dyvmsapi.QueryCallDetailByCallId API asynchronously +// api document: https://help.aliyun.com/api/dyvmsapi/querycalldetailbycallid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCallDetailByCallIdWithChan(request *QueryCallDetailByCallIdRequest) (<-chan *QueryCallDetailByCallIdResponse, <-chan error) { + responseChan := make(chan *QueryCallDetailByCallIdResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryCallDetailByCallId(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryCallDetailByCallIdWithCallback invokes the dyvmsapi.QueryCallDetailByCallId API asynchronously +// api document: https://help.aliyun.com/api/dyvmsapi/querycalldetailbycallid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCallDetailByCallIdWithCallback(request *QueryCallDetailByCallIdRequest, callback func(response *QueryCallDetailByCallIdResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryCallDetailByCallIdResponse + var err error + defer close(result) + response, err = client.QueryCallDetailByCallId(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryCallDetailByCallIdRequest is the request struct for api QueryCallDetailByCallId +type QueryCallDetailByCallIdRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CallId string `position:"Query" name:"CallId"` + ProdId requests.Integer `position:"Query" name:"ProdId"` + QueryDate requests.Integer `position:"Query" name:"QueryDate"` +} + +// QueryCallDetailByCallIdResponse is the response struct for api QueryCallDetailByCallId +type QueryCallDetailByCallIdResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data string `json:"Data" xml:"Data"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` +} + +// CreateQueryCallDetailByCallIdRequest creates a request to invoke QueryCallDetailByCallId API +func CreateQueryCallDetailByCallIdRequest() (request *QueryCallDetailByCallIdRequest) { + request = &QueryCallDetailByCallIdRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "QueryCallDetailByCallId", "", "") + return +} + +// CreateQueryCallDetailByCallIdResponse creates a response to parse from QueryCallDetailByCallId response +func CreateQueryCallDetailByCallIdResponse() (response *QueryCallDetailByCallIdResponse) { + response = &QueryCallDetailByCallIdResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/single_call_by_tts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/single_call_by_tts.go new file mode 100644 index 0000000..23cbc00 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/single_call_by_tts.go @@ -0,0 +1,116 @@ +package dyvmsapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SingleCallByTts invokes the dyvmsapi.SingleCallByTts API synchronously +// api document: https://help.aliyun.com/api/dyvmsapi/singlecallbytts.html +func (client *Client) SingleCallByTts(request *SingleCallByTtsRequest) (response *SingleCallByTtsResponse, err error) { + response = CreateSingleCallByTtsResponse() + err = client.DoAction(request, response) + return +} + +// SingleCallByTtsWithChan invokes the dyvmsapi.SingleCallByTts API asynchronously +// api document: https://help.aliyun.com/api/dyvmsapi/singlecallbytts.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SingleCallByTtsWithChan(request *SingleCallByTtsRequest) (<-chan *SingleCallByTtsResponse, <-chan error) { + responseChan := make(chan *SingleCallByTtsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SingleCallByTts(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SingleCallByTtsWithCallback invokes the dyvmsapi.SingleCallByTts API asynchronously +// api document: https://help.aliyun.com/api/dyvmsapi/singlecallbytts.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SingleCallByTtsWithCallback(request *SingleCallByTtsRequest, callback func(response *SingleCallByTtsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SingleCallByTtsResponse + var err error + defer close(result) + response, err = client.SingleCallByTts(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SingleCallByTtsRequest is the request struct for api SingleCallByTts +type SingleCallByTtsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CalledShowNumber string `position:"Query" name:"CalledShowNumber"` + CalledNumber string `position:"Query" name:"CalledNumber"` + TtsCode string `position:"Query" name:"TtsCode"` + TtsParam string `position:"Query" name:"TtsParam"` + PlayTimes requests.Integer `position:"Query" name:"PlayTimes"` + Volume requests.Integer `position:"Query" name:"Volume"` + Speed requests.Integer `position:"Query" name:"Speed"` + OutId string `position:"Query" name:"OutId"` +} + +// SingleCallByTtsResponse is the response struct for api SingleCallByTts +type SingleCallByTtsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CallId string `json:"CallId" xml:"CallId"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` +} + +// CreateSingleCallByTtsRequest creates a request to invoke SingleCallByTts API +func CreateSingleCallByTtsRequest() (request *SingleCallByTtsRequest) { + request = &SingleCallByTtsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "SingleCallByTts", "", "") + return +} + +// CreateSingleCallByTtsResponse creates a response to parse from SingleCallByTts response +func CreateSingleCallByTtsResponse() (response *SingleCallByTtsResponse) { + response = &SingleCallByTtsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/single_call_by_voice.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/single_call_by_voice.go new file mode 100644 index 0000000..110250f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/single_call_by_voice.go @@ -0,0 +1,115 @@ +package dyvmsapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SingleCallByVoice invokes the dyvmsapi.SingleCallByVoice API synchronously +// api document: https://help.aliyun.com/api/dyvmsapi/singlecallbyvoice.html +func (client *Client) SingleCallByVoice(request *SingleCallByVoiceRequest) (response *SingleCallByVoiceResponse, err error) { + response = CreateSingleCallByVoiceResponse() + err = client.DoAction(request, response) + return +} + +// SingleCallByVoiceWithChan invokes the dyvmsapi.SingleCallByVoice API asynchronously +// api document: https://help.aliyun.com/api/dyvmsapi/singlecallbyvoice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SingleCallByVoiceWithChan(request *SingleCallByVoiceRequest) (<-chan *SingleCallByVoiceResponse, <-chan error) { + responseChan := make(chan *SingleCallByVoiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SingleCallByVoice(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SingleCallByVoiceWithCallback invokes the dyvmsapi.SingleCallByVoice API asynchronously +// api document: https://help.aliyun.com/api/dyvmsapi/singlecallbyvoice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SingleCallByVoiceWithCallback(request *SingleCallByVoiceRequest, callback func(response *SingleCallByVoiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SingleCallByVoiceResponse + var err error + defer close(result) + response, err = client.SingleCallByVoice(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SingleCallByVoiceRequest is the request struct for api SingleCallByVoice +type SingleCallByVoiceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CalledShowNumber string `position:"Query" name:"CalledShowNumber"` + CalledNumber string `position:"Query" name:"CalledNumber"` + VoiceCode string `position:"Query" name:"VoiceCode"` + PlayTimes requests.Integer `position:"Query" name:"PlayTimes"` + Volume requests.Integer `position:"Query" name:"Volume"` + Speed requests.Integer `position:"Query" name:"Speed"` + OutId string `position:"Query" name:"OutId"` +} + +// SingleCallByVoiceResponse is the response struct for api SingleCallByVoice +type SingleCallByVoiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CallId string `json:"CallId" xml:"CallId"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` +} + +// CreateSingleCallByVoiceRequest creates a request to invoke SingleCallByVoice API +func CreateSingleCallByVoiceRequest() (request *SingleCallByVoiceRequest) { + request = &SingleCallByVoiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "SingleCallByVoice", "", "") + return +} + +// CreateSingleCallByVoiceResponse creates a response to parse from SingleCallByVoice response +func CreateSingleCallByVoiceResponse() (response *SingleCallByVoiceResponse) { + response = &SingleCallByVoiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/smart_call.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/smart_call.go new file mode 100644 index 0000000..0d25ab2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/smart_call.go @@ -0,0 +1,120 @@ +package dyvmsapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SmartCall invokes the dyvmsapi.SmartCall API synchronously +// api document: https://help.aliyun.com/api/dyvmsapi/smartcall.html +func (client *Client) SmartCall(request *SmartCallRequest) (response *SmartCallResponse, err error) { + response = CreateSmartCallResponse() + err = client.DoAction(request, response) + return +} + +// SmartCallWithChan invokes the dyvmsapi.SmartCall API asynchronously +// api document: https://help.aliyun.com/api/dyvmsapi/smartcall.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SmartCallWithChan(request *SmartCallRequest) (<-chan *SmartCallResponse, <-chan error) { + responseChan := make(chan *SmartCallResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SmartCall(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SmartCallWithCallback invokes the dyvmsapi.SmartCall API asynchronously +// api document: https://help.aliyun.com/api/dyvmsapi/smartcall.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SmartCallWithCallback(request *SmartCallRequest, callback func(response *SmartCallResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SmartCallResponse + var err error + defer close(result) + response, err = client.SmartCall(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SmartCallRequest is the request struct for api SmartCall +type SmartCallRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CalledShowNumber string `position:"Query" name:"CalledShowNumber"` + CalledNumber string `position:"Query" name:"CalledNumber"` + VoiceCode string `position:"Query" name:"VoiceCode"` + RecordFlag requests.Boolean `position:"Query" name:"RecordFlag"` + Volume requests.Integer `position:"Query" name:"Volume"` + Speed requests.Integer `position:"Query" name:"Speed"` + AsrModelId string `position:"Query" name:"AsrModelId"` + PauseTime requests.Integer `position:"Query" name:"PauseTime"` + MuteTime requests.Integer `position:"Query" name:"MuteTime"` + ActionCodeBreak requests.Boolean `position:"Query" name:"ActionCodeBreak"` + OutId string `position:"Query" name:"OutId"` + DynamicId string `position:"Query" name:"DynamicId"` +} + +// SmartCallResponse is the response struct for api SmartCall +type SmartCallResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CallId string `json:"CallId" xml:"CallId"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` +} + +// CreateSmartCallRequest creates a request to invoke SmartCall API +func CreateSmartCallRequest() (request *SmartCallRequest) { + request = &SmartCallRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "SmartCall", "", "") + return +} + +// CreateSmartCallResponse creates a response to parse from SmartCall response +func CreateSmartCallResponse() (response *SmartCallResponse) { + response = &SmartCallResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/voip_add_account.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/voip_add_account.go new file mode 100644 index 0000000..b5071b0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/voip_add_account.go @@ -0,0 +1,109 @@ +package dyvmsapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// VoipAddAccount invokes the dyvmsapi.VoipAddAccount API synchronously +// api document: https://help.aliyun.com/api/dyvmsapi/voipaddaccount.html +func (client *Client) VoipAddAccount(request *VoipAddAccountRequest) (response *VoipAddAccountResponse, err error) { + response = CreateVoipAddAccountResponse() + err = client.DoAction(request, response) + return +} + +// VoipAddAccountWithChan invokes the dyvmsapi.VoipAddAccount API asynchronously +// api document: https://help.aliyun.com/api/dyvmsapi/voipaddaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VoipAddAccountWithChan(request *VoipAddAccountRequest) (<-chan *VoipAddAccountResponse, <-chan error) { + responseChan := make(chan *VoipAddAccountResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.VoipAddAccount(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// VoipAddAccountWithCallback invokes the dyvmsapi.VoipAddAccount API asynchronously +// api document: https://help.aliyun.com/api/dyvmsapi/voipaddaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VoipAddAccountWithCallback(request *VoipAddAccountRequest, callback func(response *VoipAddAccountResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *VoipAddAccountResponse + var err error + defer close(result) + response, err = client.VoipAddAccount(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// VoipAddAccountRequest is the request struct for api VoipAddAccount +type VoipAddAccountRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DeviceId string `position:"Query" name:"DeviceId"` +} + +// VoipAddAccountResponse is the response struct for api VoipAddAccount +type VoipAddAccountResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module string `json:"Module" xml:"Module"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` +} + +// CreateVoipAddAccountRequest creates a request to invoke VoipAddAccount API +func CreateVoipAddAccountRequest() (request *VoipAddAccountRequest) { + request = &VoipAddAccountRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "VoipAddAccount", "", "") + return +} + +// CreateVoipAddAccountResponse creates a response to parse from VoipAddAccount response +func CreateVoipAddAccountResponse() (response *VoipAddAccountResponse) { + response = &VoipAddAccountResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/voip_get_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/voip_get_token.go new file mode 100644 index 0000000..53e128e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/dyvmsapi/voip_get_token.go @@ -0,0 +1,110 @@ +package dyvmsapi + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// VoipGetToken invokes the dyvmsapi.VoipGetToken API synchronously +// api document: https://help.aliyun.com/api/dyvmsapi/voipgettoken.html +func (client *Client) VoipGetToken(request *VoipGetTokenRequest) (response *VoipGetTokenResponse, err error) { + response = CreateVoipGetTokenResponse() + err = client.DoAction(request, response) + return +} + +// VoipGetTokenWithChan invokes the dyvmsapi.VoipGetToken API asynchronously +// api document: https://help.aliyun.com/api/dyvmsapi/voipgettoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VoipGetTokenWithChan(request *VoipGetTokenRequest) (<-chan *VoipGetTokenResponse, <-chan error) { + responseChan := make(chan *VoipGetTokenResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.VoipGetToken(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// VoipGetTokenWithCallback invokes the dyvmsapi.VoipGetToken API asynchronously +// api document: https://help.aliyun.com/api/dyvmsapi/voipgettoken.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VoipGetTokenWithCallback(request *VoipGetTokenRequest, callback func(response *VoipGetTokenResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *VoipGetTokenResponse + var err error + defer close(result) + response, err = client.VoipGetToken(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// VoipGetTokenRequest is the request struct for api VoipGetToken +type VoipGetTokenRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VoipId string `position:"Query" name:"VoipId"` + DeviceId string `position:"Query" name:"DeviceId"` +} + +// VoipGetTokenResponse is the response struct for api VoipGetToken +type VoipGetTokenResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module string `json:"Module" xml:"Module"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` +} + +// CreateVoipGetTokenRequest creates a request to invoke VoipGetToken API +func CreateVoipGetTokenRequest() (request *VoipGetTokenRequest) { + request = &VoipGetTokenRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "VoipGetToken", "", "") + return +} + +// CreateVoipGetTokenResponse creates a response to parse from VoipGetToken response +func CreateVoipGetTokenResponse() (response *VoipGetTokenResponse) { + response = &VoipGetTokenResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/activate_router_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/activate_router_interface.go new file mode 100644 index 0000000..31e54c5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/activate_router_interface.go @@ -0,0 +1,106 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ActivateRouterInterface invokes the ecs.ActivateRouterInterface API synchronously +// api document: https://help.aliyun.com/api/ecs/activaterouterinterface.html +func (client *Client) ActivateRouterInterface(request *ActivateRouterInterfaceRequest) (response *ActivateRouterInterfaceResponse, err error) { + response = CreateActivateRouterInterfaceResponse() + err = client.DoAction(request, response) + return +} + +// ActivateRouterInterfaceWithChan invokes the ecs.ActivateRouterInterface API asynchronously +// api document: https://help.aliyun.com/api/ecs/activaterouterinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ActivateRouterInterfaceWithChan(request *ActivateRouterInterfaceRequest) (<-chan *ActivateRouterInterfaceResponse, <-chan error) { + responseChan := make(chan *ActivateRouterInterfaceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ActivateRouterInterface(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ActivateRouterInterfaceWithCallback invokes the ecs.ActivateRouterInterface API asynchronously +// api document: https://help.aliyun.com/api/ecs/activaterouterinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ActivateRouterInterfaceWithCallback(request *ActivateRouterInterfaceRequest, callback func(response *ActivateRouterInterfaceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ActivateRouterInterfaceResponse + var err error + defer close(result) + response, err = client.ActivateRouterInterface(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ActivateRouterInterfaceRequest is the request struct for api ActivateRouterInterface +type ActivateRouterInterfaceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + RouterInterfaceId string `position:"Query" name:"RouterInterfaceId"` +} + +// ActivateRouterInterfaceResponse is the response struct for api ActivateRouterInterface +type ActivateRouterInterfaceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateActivateRouterInterfaceRequest creates a request to invoke ActivateRouterInterface API +func CreateActivateRouterInterfaceRequest() (request *ActivateRouterInterfaceRequest) { + request = &ActivateRouterInterfaceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ActivateRouterInterface", "ecs", "openAPI") + return +} + +// CreateActivateRouterInterfaceResponse creates a response to parse from ActivateRouterInterface response +func CreateActivateRouterInterfaceResponse() (response *ActivateRouterInterfaceResponse) { + response = &ActivateRouterInterfaceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_bandwidth_package_ips.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_bandwidth_package_ips.go new file mode 100644 index 0000000..f8ed2b0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_bandwidth_package_ips.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddBandwidthPackageIps invokes the ecs.AddBandwidthPackageIps API synchronously +// api document: https://help.aliyun.com/api/ecs/addbandwidthpackageips.html +func (client *Client) AddBandwidthPackageIps(request *AddBandwidthPackageIpsRequest) (response *AddBandwidthPackageIpsResponse, err error) { + response = CreateAddBandwidthPackageIpsResponse() + err = client.DoAction(request, response) + return +} + +// AddBandwidthPackageIpsWithChan invokes the ecs.AddBandwidthPackageIps API asynchronously +// api document: https://help.aliyun.com/api/ecs/addbandwidthpackageips.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddBandwidthPackageIpsWithChan(request *AddBandwidthPackageIpsRequest) (<-chan *AddBandwidthPackageIpsResponse, <-chan error) { + responseChan := make(chan *AddBandwidthPackageIpsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddBandwidthPackageIps(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddBandwidthPackageIpsWithCallback invokes the ecs.AddBandwidthPackageIps API asynchronously +// api document: https://help.aliyun.com/api/ecs/addbandwidthpackageips.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddBandwidthPackageIpsWithCallback(request *AddBandwidthPackageIpsRequest, callback func(response *AddBandwidthPackageIpsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddBandwidthPackageIpsResponse + var err error + defer close(result) + response, err = client.AddBandwidthPackageIps(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddBandwidthPackageIpsRequest is the request struct for api AddBandwidthPackageIps +type AddBandwidthPackageIpsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + IpCount string `position:"Query" name:"IpCount"` +} + +// AddBandwidthPackageIpsResponse is the response struct for api AddBandwidthPackageIps +type AddBandwidthPackageIpsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddBandwidthPackageIpsRequest creates a request to invoke AddBandwidthPackageIps API +func CreateAddBandwidthPackageIpsRequest() (request *AddBandwidthPackageIpsRequest) { + request = &AddBandwidthPackageIpsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "AddBandwidthPackageIps", "ecs", "openAPI") + return +} + +// CreateAddBandwidthPackageIpsResponse creates a response to parse from AddBandwidthPackageIps response +func CreateAddBandwidthPackageIpsResponse() (response *AddBandwidthPackageIpsResponse) { + response = &AddBandwidthPackageIpsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_ip_range.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_ip_range.go new file mode 100644 index 0000000..d4f7dd1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_ip_range.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddIpRange invokes the ecs.AddIpRange API synchronously +// api document: https://help.aliyun.com/api/ecs/addiprange.html +func (client *Client) AddIpRange(request *AddIpRangeRequest) (response *AddIpRangeResponse, err error) { + response = CreateAddIpRangeResponse() + err = client.DoAction(request, response) + return +} + +// AddIpRangeWithChan invokes the ecs.AddIpRange API asynchronously +// api document: https://help.aliyun.com/api/ecs/addiprange.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddIpRangeWithChan(request *AddIpRangeRequest) (<-chan *AddIpRangeResponse, <-chan error) { + responseChan := make(chan *AddIpRangeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddIpRange(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddIpRangeWithCallback invokes the ecs.AddIpRange API asynchronously +// api document: https://help.aliyun.com/api/ecs/addiprange.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddIpRangeWithCallback(request *AddIpRangeRequest, callback func(response *AddIpRangeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddIpRangeResponse + var err error + defer close(result) + response, err = client.AddIpRange(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddIpRangeRequest is the request struct for api AddIpRange +type AddIpRangeRequest struct { + *requests.RpcRequest + IpAddress string `position:"Query" name:"IpAddress"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ZoneId string `position:"Query" name:"ZoneId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AddIpRangeResponse is the response struct for api AddIpRange +type AddIpRangeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddIpRangeRequest creates a request to invoke AddIpRange API +func CreateAddIpRangeRequest() (request *AddIpRangeRequest) { + request = &AddIpRangeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "AddIpRange", "ecs", "openAPI") + return +} + +// CreateAddIpRangeResponse creates a response to parse from AddIpRange response +func CreateAddIpRangeResponse() (response *AddIpRangeResponse) { + response = &AddIpRangeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_tags.go new file mode 100644 index 0000000..62e6248 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_tags.go @@ -0,0 +1,117 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddTags invokes the ecs.AddTags API synchronously +// api document: https://help.aliyun.com/api/ecs/addtags.html +func (client *Client) AddTags(request *AddTagsRequest) (response *AddTagsResponse, err error) { + response = CreateAddTagsResponse() + err = client.DoAction(request, response) + return +} + +// AddTagsWithChan invokes the ecs.AddTags API asynchronously +// api document: https://help.aliyun.com/api/ecs/addtags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddTagsWithChan(request *AddTagsRequest) (<-chan *AddTagsResponse, <-chan error) { + responseChan := make(chan *AddTagsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddTags(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddTagsWithCallback invokes the ecs.AddTags API asynchronously +// api document: https://help.aliyun.com/api/ecs/addtags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddTagsWithCallback(request *AddTagsRequest, callback func(response *AddTagsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddTagsResponse + var err error + defer close(result) + response, err = client.AddTags(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddTagsRequest is the request struct for api AddTags +type AddTagsRequest struct { + *requests.RpcRequest + Tag4Value string `position:"Query" name:"Tag.4.Value"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceId string `position:"Query" name:"ResourceId"` + Tag2Key string `position:"Query" name:"Tag.2.Key"` + Tag5Key string `position:"Query" name:"Tag.5.Key"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Tag3Key string `position:"Query" name:"Tag.3.Key"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` + Tag5Value string `position:"Query" name:"Tag.5.Value"` + Tag1Key string `position:"Query" name:"Tag.1.Key"` + Tag1Value string `position:"Query" name:"Tag.1.Value"` + Tag2Value string `position:"Query" name:"Tag.2.Value"` + Tag4Key string `position:"Query" name:"Tag.4.Key"` + Tag3Value string `position:"Query" name:"Tag.3.Value"` +} + +// AddTagsResponse is the response struct for api AddTags +type AddTagsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddTagsRequest creates a request to invoke AddTags API +func CreateAddTagsRequest() (request *AddTagsRequest) { + request = &AddTagsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "AddTags", "ecs", "openAPI") + return +} + +// CreateAddTagsResponse creates a response to parse from AddTags response +func CreateAddTagsResponse() (response *AddTagsResponse) { + response = &AddTagsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_eip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_eip_address.go new file mode 100644 index 0000000..a3fa5df --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_eip_address.go @@ -0,0 +1,111 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AllocateEipAddress invokes the ecs.AllocateEipAddress API synchronously +// api document: https://help.aliyun.com/api/ecs/allocateeipaddress.html +func (client *Client) AllocateEipAddress(request *AllocateEipAddressRequest) (response *AllocateEipAddressResponse, err error) { + response = CreateAllocateEipAddressResponse() + err = client.DoAction(request, response) + return +} + +// AllocateEipAddressWithChan invokes the ecs.AllocateEipAddress API asynchronously +// api document: https://help.aliyun.com/api/ecs/allocateeipaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AllocateEipAddressWithChan(request *AllocateEipAddressRequest) (<-chan *AllocateEipAddressResponse, <-chan error) { + responseChan := make(chan *AllocateEipAddressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AllocateEipAddress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AllocateEipAddressWithCallback invokes the ecs.AllocateEipAddress API asynchronously +// api document: https://help.aliyun.com/api/ecs/allocateeipaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AllocateEipAddressWithCallback(request *AllocateEipAddressRequest, callback func(response *AllocateEipAddressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AllocateEipAddressResponse + var err error + defer close(result) + response, err = client.AllocateEipAddress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AllocateEipAddressRequest is the request struct for api AllocateEipAddress +type AllocateEipAddressRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Bandwidth string `position:"Query" name:"Bandwidth"` + ClientToken string `position:"Query" name:"ClientToken"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AllocateEipAddressResponse is the response struct for api AllocateEipAddress +type AllocateEipAddressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AllocationId string `json:"AllocationId" xml:"AllocationId"` + EipAddress string `json:"EipAddress" xml:"EipAddress"` +} + +// CreateAllocateEipAddressRequest creates a request to invoke AllocateEipAddress API +func CreateAllocateEipAddressRequest() (request *AllocateEipAddressRequest) { + request = &AllocateEipAddressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "AllocateEipAddress", "ecs", "openAPI") + return +} + +// CreateAllocateEipAddressResponse creates a response to parse from AllocateEipAddress response +func CreateAllocateEipAddressResponse() (response *AllocateEipAddressResponse) { + response = &AllocateEipAddressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_public_ip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_public_ip_address.go new file mode 100644 index 0000000..0e6f34e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_public_ip_address.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AllocatePublicIpAddress invokes the ecs.AllocatePublicIpAddress API synchronously +// api document: https://help.aliyun.com/api/ecs/allocatepublicipaddress.html +func (client *Client) AllocatePublicIpAddress(request *AllocatePublicIpAddressRequest) (response *AllocatePublicIpAddressResponse, err error) { + response = CreateAllocatePublicIpAddressResponse() + err = client.DoAction(request, response) + return +} + +// AllocatePublicIpAddressWithChan invokes the ecs.AllocatePublicIpAddress API asynchronously +// api document: https://help.aliyun.com/api/ecs/allocatepublicipaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AllocatePublicIpAddressWithChan(request *AllocatePublicIpAddressRequest) (<-chan *AllocatePublicIpAddressResponse, <-chan error) { + responseChan := make(chan *AllocatePublicIpAddressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AllocatePublicIpAddress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AllocatePublicIpAddressWithCallback invokes the ecs.AllocatePublicIpAddress API asynchronously +// api document: https://help.aliyun.com/api/ecs/allocatepublicipaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AllocatePublicIpAddressWithCallback(request *AllocatePublicIpAddressRequest, callback func(response *AllocatePublicIpAddressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AllocatePublicIpAddressResponse + var err error + defer close(result) + response, err = client.AllocatePublicIpAddress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AllocatePublicIpAddressRequest is the request struct for api AllocatePublicIpAddress +type AllocatePublicIpAddressRequest struct { + *requests.RpcRequest + IpAddress string `position:"Query" name:"IpAddress"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + VlanId string `position:"Query" name:"VlanId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AllocatePublicIpAddressResponse is the response struct for api AllocatePublicIpAddress +type AllocatePublicIpAddressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + IpAddress string `json:"IpAddress" xml:"IpAddress"` +} + +// CreateAllocatePublicIpAddressRequest creates a request to invoke AllocatePublicIpAddress API +func CreateAllocatePublicIpAddressRequest() (request *AllocatePublicIpAddressRequest) { + request = &AllocatePublicIpAddressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "AllocatePublicIpAddress", "ecs", "openAPI") + return +} + +// CreateAllocatePublicIpAddressResponse creates a response to parse from AllocatePublicIpAddress response +func CreateAllocatePublicIpAddressResponse() (response *AllocatePublicIpAddressResponse) { + response = &AllocatePublicIpAddressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/apply_auto_snapshot_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/apply_auto_snapshot_policy.go new file mode 100644 index 0000000..ab2af4b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/apply_auto_snapshot_policy.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ApplyAutoSnapshotPolicy invokes the ecs.ApplyAutoSnapshotPolicy API synchronously +// api document: https://help.aliyun.com/api/ecs/applyautosnapshotpolicy.html +func (client *Client) ApplyAutoSnapshotPolicy(request *ApplyAutoSnapshotPolicyRequest) (response *ApplyAutoSnapshotPolicyResponse, err error) { + response = CreateApplyAutoSnapshotPolicyResponse() + err = client.DoAction(request, response) + return +} + +// ApplyAutoSnapshotPolicyWithChan invokes the ecs.ApplyAutoSnapshotPolicy API asynchronously +// api document: https://help.aliyun.com/api/ecs/applyautosnapshotpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ApplyAutoSnapshotPolicyWithChan(request *ApplyAutoSnapshotPolicyRequest) (<-chan *ApplyAutoSnapshotPolicyResponse, <-chan error) { + responseChan := make(chan *ApplyAutoSnapshotPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ApplyAutoSnapshotPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ApplyAutoSnapshotPolicyWithCallback invokes the ecs.ApplyAutoSnapshotPolicy API asynchronously +// api document: https://help.aliyun.com/api/ecs/applyautosnapshotpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ApplyAutoSnapshotPolicyWithCallback(request *ApplyAutoSnapshotPolicyRequest, callback func(response *ApplyAutoSnapshotPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ApplyAutoSnapshotPolicyResponse + var err error + defer close(result) + response, err = client.ApplyAutoSnapshotPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ApplyAutoSnapshotPolicyRequest is the request struct for api ApplyAutoSnapshotPolicy +type ApplyAutoSnapshotPolicyRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + AutoSnapshotPolicyId string `position:"Query" name:"autoSnapshotPolicyId"` + DiskIds string `position:"Query" name:"diskIds"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ApplyAutoSnapshotPolicyResponse is the response struct for api ApplyAutoSnapshotPolicy +type ApplyAutoSnapshotPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateApplyAutoSnapshotPolicyRequest creates a request to invoke ApplyAutoSnapshotPolicy API +func CreateApplyAutoSnapshotPolicyRequest() (request *ApplyAutoSnapshotPolicyRequest) { + request = &ApplyAutoSnapshotPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ApplyAutoSnapshotPolicy", "ecs", "openAPI") + return +} + +// CreateApplyAutoSnapshotPolicyResponse creates a response to parse from ApplyAutoSnapshotPolicy response +func CreateApplyAutoSnapshotPolicyResponse() (response *ApplyAutoSnapshotPolicyResponse) { + response = &ApplyAutoSnapshotPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/assign_private_ip_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/assign_private_ip_addresses.go new file mode 100644 index 0000000..b26f7ee --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/assign_private_ip_addresses.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AssignPrivateIpAddresses invokes the ecs.AssignPrivateIpAddresses API synchronously +// api document: https://help.aliyun.com/api/ecs/assignprivateipaddresses.html +func (client *Client) AssignPrivateIpAddresses(request *AssignPrivateIpAddressesRequest) (response *AssignPrivateIpAddressesResponse, err error) { + response = CreateAssignPrivateIpAddressesResponse() + err = client.DoAction(request, response) + return +} + +// AssignPrivateIpAddressesWithChan invokes the ecs.AssignPrivateIpAddresses API asynchronously +// api document: https://help.aliyun.com/api/ecs/assignprivateipaddresses.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AssignPrivateIpAddressesWithChan(request *AssignPrivateIpAddressesRequest) (<-chan *AssignPrivateIpAddressesResponse, <-chan error) { + responseChan := make(chan *AssignPrivateIpAddressesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AssignPrivateIpAddresses(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AssignPrivateIpAddressesWithCallback invokes the ecs.AssignPrivateIpAddresses API asynchronously +// api document: https://help.aliyun.com/api/ecs/assignprivateipaddresses.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AssignPrivateIpAddressesWithCallback(request *AssignPrivateIpAddressesRequest, callback func(response *AssignPrivateIpAddressesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AssignPrivateIpAddressesResponse + var err error + defer close(result) + response, err = client.AssignPrivateIpAddresses(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AssignPrivateIpAddressesRequest is the request struct for api AssignPrivateIpAddresses +type AssignPrivateIpAddressesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecondaryPrivateIpAddressCount requests.Integer `position:"Query" name:"SecondaryPrivateIpAddressCount"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PrivateIpAddress *[]string `position:"Query" name:"PrivateIpAddress" type:"Repeated"` + NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` +} + +// AssignPrivateIpAddressesResponse is the response struct for api AssignPrivateIpAddresses +type AssignPrivateIpAddressesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAssignPrivateIpAddressesRequest creates a request to invoke AssignPrivateIpAddresses API +func CreateAssignPrivateIpAddressesRequest() (request *AssignPrivateIpAddressesRequest) { + request = &AssignPrivateIpAddressesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "AssignPrivateIpAddresses", "ecs", "openAPI") + return +} + +// CreateAssignPrivateIpAddressesResponse creates a response to parse from AssignPrivateIpAddresses response +func CreateAssignPrivateIpAddressesResponse() (response *AssignPrivateIpAddressesResponse) { + response = &AssignPrivateIpAddressesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_eip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_eip_address.go new file mode 100644 index 0000000..cf7e997 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_eip_address.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AssociateEipAddress invokes the ecs.AssociateEipAddress API synchronously +// api document: https://help.aliyun.com/api/ecs/associateeipaddress.html +func (client *Client) AssociateEipAddress(request *AssociateEipAddressRequest) (response *AssociateEipAddressResponse, err error) { + response = CreateAssociateEipAddressResponse() + err = client.DoAction(request, response) + return +} + +// AssociateEipAddressWithChan invokes the ecs.AssociateEipAddress API asynchronously +// api document: https://help.aliyun.com/api/ecs/associateeipaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AssociateEipAddressWithChan(request *AssociateEipAddressRequest) (<-chan *AssociateEipAddressResponse, <-chan error) { + responseChan := make(chan *AssociateEipAddressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AssociateEipAddress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AssociateEipAddressWithCallback invokes the ecs.AssociateEipAddress API asynchronously +// api document: https://help.aliyun.com/api/ecs/associateeipaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AssociateEipAddressWithCallback(request *AssociateEipAddressRequest, callback func(response *AssociateEipAddressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AssociateEipAddressResponse + var err error + defer close(result) + response, err = client.AssociateEipAddress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AssociateEipAddressRequest is the request struct for api AssociateEipAddress +type AssociateEipAddressRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + InstanceType string `position:"Query" name:"InstanceType"` + AllocationId string `position:"Query" name:"AllocationId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AssociateEipAddressResponse is the response struct for api AssociateEipAddress +type AssociateEipAddressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAssociateEipAddressRequest creates a request to invoke AssociateEipAddress API +func CreateAssociateEipAddressRequest() (request *AssociateEipAddressRequest) { + request = &AssociateEipAddressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "AssociateEipAddress", "ecs", "openAPI") + return +} + +// CreateAssociateEipAddressResponse creates a response to parse from AssociateEipAddress response +func CreateAssociateEipAddressResponse() (response *AssociateEipAddressResponse) { + response = &AssociateEipAddressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_ha_vip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_ha_vip.go new file mode 100644 index 0000000..b153aa8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_ha_vip.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AssociateHaVip invokes the ecs.AssociateHaVip API synchronously +// api document: https://help.aliyun.com/api/ecs/associatehavip.html +func (client *Client) AssociateHaVip(request *AssociateHaVipRequest) (response *AssociateHaVipResponse, err error) { + response = CreateAssociateHaVipResponse() + err = client.DoAction(request, response) + return +} + +// AssociateHaVipWithChan invokes the ecs.AssociateHaVip API asynchronously +// api document: https://help.aliyun.com/api/ecs/associatehavip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AssociateHaVipWithChan(request *AssociateHaVipRequest) (<-chan *AssociateHaVipResponse, <-chan error) { + responseChan := make(chan *AssociateHaVipResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AssociateHaVip(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AssociateHaVipWithCallback invokes the ecs.AssociateHaVip API asynchronously +// api document: https://help.aliyun.com/api/ecs/associatehavip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AssociateHaVipWithCallback(request *AssociateHaVipRequest, callback func(response *AssociateHaVipResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AssociateHaVipResponse + var err error + defer close(result) + response, err = client.AssociateHaVip(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AssociateHaVipRequest is the request struct for api AssociateHaVip +type AssociateHaVipRequest struct { + *requests.RpcRequest + HaVipId string `position:"Query" name:"HaVipId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AssociateHaVipResponse is the response struct for api AssociateHaVip +type AssociateHaVipResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAssociateHaVipRequest creates a request to invoke AssociateHaVip API +func CreateAssociateHaVipRequest() (request *AssociateHaVipRequest) { + request = &AssociateHaVipRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "AssociateHaVip", "ecs", "openAPI") + return +} + +// CreateAssociateHaVipResponse creates a response to parse from AssociateHaVip response +func CreateAssociateHaVipResponse() (response *AssociateHaVipResponse) { + response = &AssociateHaVipResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_classic_link_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_classic_link_vpc.go new file mode 100644 index 0000000..d07a415 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_classic_link_vpc.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AttachClassicLinkVpc invokes the ecs.AttachClassicLinkVpc API synchronously +// api document: https://help.aliyun.com/api/ecs/attachclassiclinkvpc.html +func (client *Client) AttachClassicLinkVpc(request *AttachClassicLinkVpcRequest) (response *AttachClassicLinkVpcResponse, err error) { + response = CreateAttachClassicLinkVpcResponse() + err = client.DoAction(request, response) + return +} + +// AttachClassicLinkVpcWithChan invokes the ecs.AttachClassicLinkVpc API asynchronously +// api document: https://help.aliyun.com/api/ecs/attachclassiclinkvpc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachClassicLinkVpcWithChan(request *AttachClassicLinkVpcRequest) (<-chan *AttachClassicLinkVpcResponse, <-chan error) { + responseChan := make(chan *AttachClassicLinkVpcResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AttachClassicLinkVpc(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AttachClassicLinkVpcWithCallback invokes the ecs.AttachClassicLinkVpc API asynchronously +// api document: https://help.aliyun.com/api/ecs/attachclassiclinkvpc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachClassicLinkVpcWithCallback(request *AttachClassicLinkVpcRequest, callback func(response *AttachClassicLinkVpcResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AttachClassicLinkVpcResponse + var err error + defer close(result) + response, err = client.AttachClassicLinkVpc(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AttachClassicLinkVpcRequest is the request struct for api AttachClassicLinkVpc +type AttachClassicLinkVpcRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + VpcId string `position:"Query" name:"VpcId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AttachClassicLinkVpcResponse is the response struct for api AttachClassicLinkVpc +type AttachClassicLinkVpcResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAttachClassicLinkVpcRequest creates a request to invoke AttachClassicLinkVpc API +func CreateAttachClassicLinkVpcRequest() (request *AttachClassicLinkVpcRequest) { + request = &AttachClassicLinkVpcRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "AttachClassicLinkVpc", "ecs", "openAPI") + return +} + +// CreateAttachClassicLinkVpcResponse creates a response to parse from AttachClassicLinkVpc response +func CreateAttachClassicLinkVpcResponse() (response *AttachClassicLinkVpcResponse) { + response = &AttachClassicLinkVpcResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_disk.go new file mode 100644 index 0000000..452f73f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_disk.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AttachDisk invokes the ecs.AttachDisk API synchronously +// api document: https://help.aliyun.com/api/ecs/attachdisk.html +func (client *Client) AttachDisk(request *AttachDiskRequest) (response *AttachDiskResponse, err error) { + response = CreateAttachDiskResponse() + err = client.DoAction(request, response) + return +} + +// AttachDiskWithChan invokes the ecs.AttachDisk API asynchronously +// api document: https://help.aliyun.com/api/ecs/attachdisk.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachDiskWithChan(request *AttachDiskRequest) (<-chan *AttachDiskResponse, <-chan error) { + responseChan := make(chan *AttachDiskResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AttachDisk(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AttachDiskWithCallback invokes the ecs.AttachDisk API asynchronously +// api document: https://help.aliyun.com/api/ecs/attachdisk.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachDiskWithCallback(request *AttachDiskRequest, callback func(response *AttachDiskResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AttachDiskResponse + var err error + defer close(result) + response, err = client.AttachDisk(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AttachDiskRequest is the request struct for api AttachDisk +type AttachDiskRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DiskId string `position:"Query" name:"DiskId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Device string `position:"Query" name:"Device"` + DeleteWithInstance requests.Boolean `position:"Query" name:"DeleteWithInstance"` +} + +// AttachDiskResponse is the response struct for api AttachDisk +type AttachDiskResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAttachDiskRequest creates a request to invoke AttachDisk API +func CreateAttachDiskRequest() (request *AttachDiskRequest) { + request = &AttachDiskRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "AttachDisk", "ecs", "openAPI") + return +} + +// CreateAttachDiskResponse creates a response to parse from AttachDisk response +func CreateAttachDiskResponse() (response *AttachDiskResponse) { + response = &AttachDiskResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_instance_ram_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_instance_ram_role.go new file mode 100644 index 0000000..7a697f5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_instance_ram_role.go @@ -0,0 +1,111 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AttachInstanceRamRole invokes the ecs.AttachInstanceRamRole API synchronously +// api document: https://help.aliyun.com/api/ecs/attachinstanceramrole.html +func (client *Client) AttachInstanceRamRole(request *AttachInstanceRamRoleRequest) (response *AttachInstanceRamRoleResponse, err error) { + response = CreateAttachInstanceRamRoleResponse() + err = client.DoAction(request, response) + return +} + +// AttachInstanceRamRoleWithChan invokes the ecs.AttachInstanceRamRole API asynchronously +// api document: https://help.aliyun.com/api/ecs/attachinstanceramrole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachInstanceRamRoleWithChan(request *AttachInstanceRamRoleRequest) (<-chan *AttachInstanceRamRoleResponse, <-chan error) { + responseChan := make(chan *AttachInstanceRamRoleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AttachInstanceRamRole(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AttachInstanceRamRoleWithCallback invokes the ecs.AttachInstanceRamRole API asynchronously +// api document: https://help.aliyun.com/api/ecs/attachinstanceramrole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachInstanceRamRoleWithCallback(request *AttachInstanceRamRoleRequest, callback func(response *AttachInstanceRamRoleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AttachInstanceRamRoleResponse + var err error + defer close(result) + response, err = client.AttachInstanceRamRole(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AttachInstanceRamRoleRequest is the request struct for api AttachInstanceRamRole +type AttachInstanceRamRoleRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + InstanceIds string `position:"Query" name:"InstanceIds"` + RamRoleName string `position:"Query" name:"RamRoleName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AttachInstanceRamRoleResponse is the response struct for api AttachInstanceRamRole +type AttachInstanceRamRoleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + FailCount int `json:"FailCount" xml:"FailCount"` + RamRoleName string `json:"RamRoleName" xml:"RamRoleName"` + AttachInstanceRamRoleResults AttachInstanceRamRoleResults `json:"AttachInstanceRamRoleResults" xml:"AttachInstanceRamRoleResults"` +} + +// CreateAttachInstanceRamRoleRequest creates a request to invoke AttachInstanceRamRole API +func CreateAttachInstanceRamRoleRequest() (request *AttachInstanceRamRoleRequest) { + request = &AttachInstanceRamRoleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "AttachInstanceRamRole", "ecs", "openAPI") + return +} + +// CreateAttachInstanceRamRoleResponse creates a response to parse from AttachInstanceRamRole response +func CreateAttachInstanceRamRoleResponse() (response *AttachInstanceRamRoleResponse) { + response = &AttachInstanceRamRoleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_key_pair.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_key_pair.go new file mode 100644 index 0000000..275410f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_key_pair.go @@ -0,0 +1,111 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AttachKeyPair invokes the ecs.AttachKeyPair API synchronously +// api document: https://help.aliyun.com/api/ecs/attachkeypair.html +func (client *Client) AttachKeyPair(request *AttachKeyPairRequest) (response *AttachKeyPairResponse, err error) { + response = CreateAttachKeyPairResponse() + err = client.DoAction(request, response) + return +} + +// AttachKeyPairWithChan invokes the ecs.AttachKeyPair API asynchronously +// api document: https://help.aliyun.com/api/ecs/attachkeypair.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachKeyPairWithChan(request *AttachKeyPairRequest) (<-chan *AttachKeyPairResponse, <-chan error) { + responseChan := make(chan *AttachKeyPairResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AttachKeyPair(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AttachKeyPairWithCallback invokes the ecs.AttachKeyPair API asynchronously +// api document: https://help.aliyun.com/api/ecs/attachkeypair.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachKeyPairWithCallback(request *AttachKeyPairRequest, callback func(response *AttachKeyPairResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AttachKeyPairResponse + var err error + defer close(result) + response, err = client.AttachKeyPair(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AttachKeyPairRequest is the request struct for api AttachKeyPair +type AttachKeyPairRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + InstanceIds string `position:"Query" name:"InstanceIds"` + KeyPairName string `position:"Query" name:"KeyPairName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AttachKeyPairResponse is the response struct for api AttachKeyPair +type AttachKeyPairResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount string `json:"TotalCount" xml:"TotalCount"` + FailCount string `json:"FailCount" xml:"FailCount"` + KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` + Results ResultsInAttachKeyPair `json:"Results" xml:"Results"` +} + +// CreateAttachKeyPairRequest creates a request to invoke AttachKeyPair API +func CreateAttachKeyPairRequest() (request *AttachKeyPairRequest) { + request = &AttachKeyPairRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "AttachKeyPair", "ecs", "openAPI") + return +} + +// CreateAttachKeyPairResponse creates a response to parse from AttachKeyPair response +func CreateAttachKeyPairResponse() (response *AttachKeyPairResponse) { + response = &AttachKeyPairResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_network_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_network_interface.go new file mode 100644 index 0000000..a65ec4e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_network_interface.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AttachNetworkInterface invokes the ecs.AttachNetworkInterface API synchronously +// api document: https://help.aliyun.com/api/ecs/attachnetworkinterface.html +func (client *Client) AttachNetworkInterface(request *AttachNetworkInterfaceRequest) (response *AttachNetworkInterfaceResponse, err error) { + response = CreateAttachNetworkInterfaceResponse() + err = client.DoAction(request, response) + return +} + +// AttachNetworkInterfaceWithChan invokes the ecs.AttachNetworkInterface API asynchronously +// api document: https://help.aliyun.com/api/ecs/attachnetworkinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachNetworkInterfaceWithChan(request *AttachNetworkInterfaceRequest) (<-chan *AttachNetworkInterfaceResponse, <-chan error) { + responseChan := make(chan *AttachNetworkInterfaceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AttachNetworkInterface(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AttachNetworkInterfaceWithCallback invokes the ecs.AttachNetworkInterface API asynchronously +// api document: https://help.aliyun.com/api/ecs/attachnetworkinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachNetworkInterfaceWithCallback(request *AttachNetworkInterfaceRequest, callback func(response *AttachNetworkInterfaceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AttachNetworkInterfaceResponse + var err error + defer close(result) + response, err = client.AttachNetworkInterface(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AttachNetworkInterfaceRequest is the request struct for api AttachNetworkInterface +type AttachNetworkInterfaceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` +} + +// AttachNetworkInterfaceResponse is the response struct for api AttachNetworkInterface +type AttachNetworkInterfaceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAttachNetworkInterfaceRequest creates a request to invoke AttachNetworkInterface API +func CreateAttachNetworkInterfaceRequest() (request *AttachNetworkInterfaceRequest) { + request = &AttachNetworkInterfaceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "AttachNetworkInterface", "ecs", "openAPI") + return +} + +// CreateAttachNetworkInterfaceResponse creates a response to parse from AttachNetworkInterface response +func CreateAttachNetworkInterfaceResponse() (response *AttachNetworkInterfaceResponse) { + response = &AttachNetworkInterfaceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group.go new file mode 100644 index 0000000..5888e2a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group.go @@ -0,0 +1,120 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AuthorizeSecurityGroup invokes the ecs.AuthorizeSecurityGroup API synchronously +// api document: https://help.aliyun.com/api/ecs/authorizesecuritygroup.html +func (client *Client) AuthorizeSecurityGroup(request *AuthorizeSecurityGroupRequest) (response *AuthorizeSecurityGroupResponse, err error) { + response = CreateAuthorizeSecurityGroupResponse() + err = client.DoAction(request, response) + return +} + +// AuthorizeSecurityGroupWithChan invokes the ecs.AuthorizeSecurityGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/authorizesecuritygroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AuthorizeSecurityGroupWithChan(request *AuthorizeSecurityGroupRequest) (<-chan *AuthorizeSecurityGroupResponse, <-chan error) { + responseChan := make(chan *AuthorizeSecurityGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AuthorizeSecurityGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AuthorizeSecurityGroupWithCallback invokes the ecs.AuthorizeSecurityGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/authorizesecuritygroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AuthorizeSecurityGroupWithCallback(request *AuthorizeSecurityGroupRequest, callback func(response *AuthorizeSecurityGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AuthorizeSecurityGroupResponse + var err error + defer close(result) + response, err = client.AuthorizeSecurityGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AuthorizeSecurityGroupRequest is the request struct for api AuthorizeSecurityGroup +type AuthorizeSecurityGroupRequest struct { + *requests.RpcRequest + NicType string `position:"Query" name:"NicType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SourcePortRange string `position:"Query" name:"SourcePortRange"` + ClientToken string `position:"Query" name:"ClientToken"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Description string `position:"Query" name:"Description"` + SourceGroupOwnerId requests.Integer `position:"Query" name:"SourceGroupOwnerId"` + SourceGroupOwnerAccount string `position:"Query" name:"SourceGroupOwnerAccount"` + Policy string `position:"Query" name:"Policy"` + PortRange string `position:"Query" name:"PortRange"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + IpProtocol string `position:"Query" name:"IpProtocol"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SourceCidrIp string `position:"Query" name:"SourceCidrIp"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Priority string `position:"Query" name:"Priority"` + DestCidrIp string `position:"Query" name:"DestCidrIp"` + SourceGroupId string `position:"Query" name:"SourceGroupId"` +} + +// AuthorizeSecurityGroupResponse is the response struct for api AuthorizeSecurityGroup +type AuthorizeSecurityGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAuthorizeSecurityGroupRequest creates a request to invoke AuthorizeSecurityGroup API +func CreateAuthorizeSecurityGroupRequest() (request *AuthorizeSecurityGroupRequest) { + request = &AuthorizeSecurityGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "AuthorizeSecurityGroup", "ecs", "openAPI") + return +} + +// CreateAuthorizeSecurityGroupResponse creates a response to parse from AuthorizeSecurityGroup response +func CreateAuthorizeSecurityGroupResponse() (response *AuthorizeSecurityGroupResponse) { + response = &AuthorizeSecurityGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group_egress.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group_egress.go new file mode 100644 index 0000000..bd4d860 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group_egress.go @@ -0,0 +1,120 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AuthorizeSecurityGroupEgress invokes the ecs.AuthorizeSecurityGroupEgress API synchronously +// api document: https://help.aliyun.com/api/ecs/authorizesecuritygroupegress.html +func (client *Client) AuthorizeSecurityGroupEgress(request *AuthorizeSecurityGroupEgressRequest) (response *AuthorizeSecurityGroupEgressResponse, err error) { + response = CreateAuthorizeSecurityGroupEgressResponse() + err = client.DoAction(request, response) + return +} + +// AuthorizeSecurityGroupEgressWithChan invokes the ecs.AuthorizeSecurityGroupEgress API asynchronously +// api document: https://help.aliyun.com/api/ecs/authorizesecuritygroupegress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AuthorizeSecurityGroupEgressWithChan(request *AuthorizeSecurityGroupEgressRequest) (<-chan *AuthorizeSecurityGroupEgressResponse, <-chan error) { + responseChan := make(chan *AuthorizeSecurityGroupEgressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AuthorizeSecurityGroupEgress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AuthorizeSecurityGroupEgressWithCallback invokes the ecs.AuthorizeSecurityGroupEgress API asynchronously +// api document: https://help.aliyun.com/api/ecs/authorizesecuritygroupegress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AuthorizeSecurityGroupEgressWithCallback(request *AuthorizeSecurityGroupEgressRequest, callback func(response *AuthorizeSecurityGroupEgressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AuthorizeSecurityGroupEgressResponse + var err error + defer close(result) + response, err = client.AuthorizeSecurityGroupEgress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AuthorizeSecurityGroupEgressRequest is the request struct for api AuthorizeSecurityGroupEgress +type AuthorizeSecurityGroupEgressRequest struct { + *requests.RpcRequest + NicType string `position:"Query" name:"NicType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SourcePortRange string `position:"Query" name:"SourcePortRange"` + ClientToken string `position:"Query" name:"ClientToken"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Description string `position:"Query" name:"Description"` + Policy string `position:"Query" name:"Policy"` + PortRange string `position:"Query" name:"PortRange"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + IpProtocol string `position:"Query" name:"IpProtocol"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SourceCidrIp string `position:"Query" name:"SourceCidrIp"` + DestGroupId string `position:"Query" name:"DestGroupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + DestGroupOwnerAccount string `position:"Query" name:"DestGroupOwnerAccount"` + Priority string `position:"Query" name:"Priority"` + DestCidrIp string `position:"Query" name:"DestCidrIp"` + DestGroupOwnerId requests.Integer `position:"Query" name:"DestGroupOwnerId"` +} + +// AuthorizeSecurityGroupEgressResponse is the response struct for api AuthorizeSecurityGroupEgress +type AuthorizeSecurityGroupEgressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAuthorizeSecurityGroupEgressRequest creates a request to invoke AuthorizeSecurityGroupEgress API +func CreateAuthorizeSecurityGroupEgressRequest() (request *AuthorizeSecurityGroupEgressRequest) { + request = &AuthorizeSecurityGroupEgressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "AuthorizeSecurityGroupEgress", "ecs", "openAPI") + return +} + +// CreateAuthorizeSecurityGroupEgressResponse creates a response to parse from AuthorizeSecurityGroupEgress response +func CreateAuthorizeSecurityGroupEgressResponse() (response *AuthorizeSecurityGroupEgressResponse) { + response = &AuthorizeSecurityGroupEgressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/bind_ip_range.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/bind_ip_range.go new file mode 100644 index 0000000..b87c6fb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/bind_ip_range.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// BindIpRange invokes the ecs.BindIpRange API synchronously +// api document: https://help.aliyun.com/api/ecs/bindiprange.html +func (client *Client) BindIpRange(request *BindIpRangeRequest) (response *BindIpRangeResponse, err error) { + response = CreateBindIpRangeResponse() + err = client.DoAction(request, response) + return +} + +// BindIpRangeWithChan invokes the ecs.BindIpRange API asynchronously +// api document: https://help.aliyun.com/api/ecs/bindiprange.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BindIpRangeWithChan(request *BindIpRangeRequest) (<-chan *BindIpRangeResponse, <-chan error) { + responseChan := make(chan *BindIpRangeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BindIpRange(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BindIpRangeWithCallback invokes the ecs.BindIpRange API asynchronously +// api document: https://help.aliyun.com/api/ecs/bindiprange.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BindIpRangeWithCallback(request *BindIpRangeRequest, callback func(response *BindIpRangeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BindIpRangeResponse + var err error + defer close(result) + response, err = client.BindIpRange(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BindIpRangeRequest is the request struct for api BindIpRange +type BindIpRangeRequest struct { + *requests.RpcRequest + IpAddress string `position:"Query" name:"IpAddress"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// BindIpRangeResponse is the response struct for api BindIpRange +type BindIpRangeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateBindIpRangeRequest creates a request to invoke BindIpRange API +func CreateBindIpRangeRequest() (request *BindIpRangeRequest) { + request = &BindIpRangeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "BindIpRange", "ecs", "openAPI") + return +} + +// CreateBindIpRangeResponse creates a response to parse from BindIpRange response +func CreateBindIpRangeResponse() (response *BindIpRangeResponse) { + response = &BindIpRangeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_agreement.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_agreement.go new file mode 100644 index 0000000..e48515d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_agreement.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CancelAgreement invokes the ecs.CancelAgreement API synchronously +// api document: https://help.aliyun.com/api/ecs/cancelagreement.html +func (client *Client) CancelAgreement(request *CancelAgreementRequest) (response *CancelAgreementResponse, err error) { + response = CreateCancelAgreementResponse() + err = client.DoAction(request, response) + return +} + +// CancelAgreementWithChan invokes the ecs.CancelAgreement API asynchronously +// api document: https://help.aliyun.com/api/ecs/cancelagreement.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelAgreementWithChan(request *CancelAgreementRequest) (<-chan *CancelAgreementResponse, <-chan error) { + responseChan := make(chan *CancelAgreementResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CancelAgreement(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CancelAgreementWithCallback invokes the ecs.CancelAgreement API asynchronously +// api document: https://help.aliyun.com/api/ecs/cancelagreement.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelAgreementWithCallback(request *CancelAgreementRequest, callback func(response *CancelAgreementResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CancelAgreementResponse + var err error + defer close(result) + response, err = client.CancelAgreement(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CancelAgreementRequest is the request struct for api CancelAgreement +type CancelAgreementRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AgreementType string `position:"Query" name:"AgreementType"` +} + +// CancelAgreementResponse is the response struct for api CancelAgreement +type CancelAgreementResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCancelAgreementRequest creates a request to invoke CancelAgreement API +func CreateCancelAgreementRequest() (request *CancelAgreementRequest) { + request = &CancelAgreementRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CancelAgreement", "ecs", "openAPI") + return +} + +// CreateCancelAgreementResponse creates a response to parse from CancelAgreement response +func CreateCancelAgreementResponse() (response *CancelAgreementResponse) { + response = &CancelAgreementResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_auto_snapshot_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_auto_snapshot_policy.go new file mode 100644 index 0000000..46fa771 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_auto_snapshot_policy.go @@ -0,0 +1,106 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CancelAutoSnapshotPolicy invokes the ecs.CancelAutoSnapshotPolicy API synchronously +// api document: https://help.aliyun.com/api/ecs/cancelautosnapshotpolicy.html +func (client *Client) CancelAutoSnapshotPolicy(request *CancelAutoSnapshotPolicyRequest) (response *CancelAutoSnapshotPolicyResponse, err error) { + response = CreateCancelAutoSnapshotPolicyResponse() + err = client.DoAction(request, response) + return +} + +// CancelAutoSnapshotPolicyWithChan invokes the ecs.CancelAutoSnapshotPolicy API asynchronously +// api document: https://help.aliyun.com/api/ecs/cancelautosnapshotpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelAutoSnapshotPolicyWithChan(request *CancelAutoSnapshotPolicyRequest) (<-chan *CancelAutoSnapshotPolicyResponse, <-chan error) { + responseChan := make(chan *CancelAutoSnapshotPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CancelAutoSnapshotPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CancelAutoSnapshotPolicyWithCallback invokes the ecs.CancelAutoSnapshotPolicy API asynchronously +// api document: https://help.aliyun.com/api/ecs/cancelautosnapshotpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelAutoSnapshotPolicyWithCallback(request *CancelAutoSnapshotPolicyRequest, callback func(response *CancelAutoSnapshotPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CancelAutoSnapshotPolicyResponse + var err error + defer close(result) + response, err = client.CancelAutoSnapshotPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CancelAutoSnapshotPolicyRequest is the request struct for api CancelAutoSnapshotPolicy +type CancelAutoSnapshotPolicyRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + DiskIds string `position:"Query" name:"diskIds"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// CancelAutoSnapshotPolicyResponse is the response struct for api CancelAutoSnapshotPolicy +type CancelAutoSnapshotPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCancelAutoSnapshotPolicyRequest creates a request to invoke CancelAutoSnapshotPolicy API +func CreateCancelAutoSnapshotPolicyRequest() (request *CancelAutoSnapshotPolicyRequest) { + request = &CancelAutoSnapshotPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CancelAutoSnapshotPolicy", "ecs", "openAPI") + return +} + +// CreateCancelAutoSnapshotPolicyResponse creates a response to parse from CancelAutoSnapshotPolicy response +func CreateCancelAutoSnapshotPolicyResponse() (response *CancelAutoSnapshotPolicyResponse) { + response = &CancelAutoSnapshotPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_copy_image.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_copy_image.go new file mode 100644 index 0000000..c004214 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_copy_image.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CancelCopyImage invokes the ecs.CancelCopyImage API synchronously +// api document: https://help.aliyun.com/api/ecs/cancelcopyimage.html +func (client *Client) CancelCopyImage(request *CancelCopyImageRequest) (response *CancelCopyImageResponse, err error) { + response = CreateCancelCopyImageResponse() + err = client.DoAction(request, response) + return +} + +// CancelCopyImageWithChan invokes the ecs.CancelCopyImage API asynchronously +// api document: https://help.aliyun.com/api/ecs/cancelcopyimage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelCopyImageWithChan(request *CancelCopyImageRequest) (<-chan *CancelCopyImageResponse, <-chan error) { + responseChan := make(chan *CancelCopyImageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CancelCopyImage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CancelCopyImageWithCallback invokes the ecs.CancelCopyImage API asynchronously +// api document: https://help.aliyun.com/api/ecs/cancelcopyimage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelCopyImageWithCallback(request *CancelCopyImageRequest, callback func(response *CancelCopyImageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CancelCopyImageResponse + var err error + defer close(result) + response, err = client.CancelCopyImage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CancelCopyImageRequest is the request struct for api CancelCopyImage +type CancelCopyImageRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ImageId string `position:"Query" name:"ImageId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// CancelCopyImageResponse is the response struct for api CancelCopyImage +type CancelCopyImageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCancelCopyImageRequest creates a request to invoke CancelCopyImage API +func CreateCancelCopyImageRequest() (request *CancelCopyImageRequest) { + request = &CancelCopyImageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CancelCopyImage", "ecs", "openAPI") + return +} + +// CreateCancelCopyImageResponse creates a response to parse from CancelCopyImage response +func CreateCancelCopyImageResponse() (response *CancelCopyImageResponse) { + response = &CancelCopyImageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_physical_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_physical_connection.go new file mode 100644 index 0000000..df2beb5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_physical_connection.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CancelPhysicalConnection invokes the ecs.CancelPhysicalConnection API synchronously +// api document: https://help.aliyun.com/api/ecs/cancelphysicalconnection.html +func (client *Client) CancelPhysicalConnection(request *CancelPhysicalConnectionRequest) (response *CancelPhysicalConnectionResponse, err error) { + response = CreateCancelPhysicalConnectionResponse() + err = client.DoAction(request, response) + return +} + +// CancelPhysicalConnectionWithChan invokes the ecs.CancelPhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/ecs/cancelphysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelPhysicalConnectionWithChan(request *CancelPhysicalConnectionRequest) (<-chan *CancelPhysicalConnectionResponse, <-chan error) { + responseChan := make(chan *CancelPhysicalConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CancelPhysicalConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CancelPhysicalConnectionWithCallback invokes the ecs.CancelPhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/ecs/cancelphysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelPhysicalConnectionWithCallback(request *CancelPhysicalConnectionRequest, callback func(response *CancelPhysicalConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CancelPhysicalConnectionResponse + var err error + defer close(result) + response, err = client.CancelPhysicalConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CancelPhysicalConnectionRequest is the request struct for api CancelPhysicalConnection +type CancelPhysicalConnectionRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + UserCidr string `position:"Query" name:"UserCidr"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// CancelPhysicalConnectionResponse is the response struct for api CancelPhysicalConnection +type CancelPhysicalConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCancelPhysicalConnectionRequest creates a request to invoke CancelPhysicalConnection API +func CreateCancelPhysicalConnectionRequest() (request *CancelPhysicalConnectionRequest) { + request = &CancelPhysicalConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CancelPhysicalConnection", "ecs", "openAPI") + return +} + +// CreateCancelPhysicalConnectionResponse creates a response to parse from CancelPhysicalConnection response +func CreateCancelPhysicalConnectionResponse() (response *CancelPhysicalConnectionResponse) { + response = &CancelPhysicalConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_task.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_task.go new file mode 100644 index 0000000..1f83b02 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_task.go @@ -0,0 +1,106 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CancelTask invokes the ecs.CancelTask API synchronously +// api document: https://help.aliyun.com/api/ecs/canceltask.html +func (client *Client) CancelTask(request *CancelTaskRequest) (response *CancelTaskResponse, err error) { + response = CreateCancelTaskResponse() + err = client.DoAction(request, response) + return +} + +// CancelTaskWithChan invokes the ecs.CancelTask API asynchronously +// api document: https://help.aliyun.com/api/ecs/canceltask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelTaskWithChan(request *CancelTaskRequest) (<-chan *CancelTaskResponse, <-chan error) { + responseChan := make(chan *CancelTaskResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CancelTask(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CancelTaskWithCallback invokes the ecs.CancelTask API asynchronously +// api document: https://help.aliyun.com/api/ecs/canceltask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelTaskWithCallback(request *CancelTaskRequest, callback func(response *CancelTaskResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CancelTaskResponse + var err error + defer close(result) + response, err = client.CancelTask(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CancelTaskRequest is the request struct for api CancelTask +type CancelTaskRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + TaskId string `position:"Query" name:"TaskId"` +} + +// CancelTaskResponse is the response struct for api CancelTask +type CancelTaskResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCancelTaskRequest creates a request to invoke CancelTask API +func CreateCancelTaskRequest() (request *CancelTaskRequest) { + request = &CancelTaskRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CancelTask", "ecs", "openAPI") + return +} + +// CreateCancelTaskResponse creates a response to parse from CancelTask response +func CreateCancelTaskResponse() (response *CancelTaskResponse) { + response = &CancelTaskResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/check_auto_snapshot_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/check_auto_snapshot_policy.go new file mode 100644 index 0000000..ee65b41 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/check_auto_snapshot_policy.go @@ -0,0 +1,116 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckAutoSnapshotPolicy invokes the ecs.CheckAutoSnapshotPolicy API synchronously +// api document: https://help.aliyun.com/api/ecs/checkautosnapshotpolicy.html +func (client *Client) CheckAutoSnapshotPolicy(request *CheckAutoSnapshotPolicyRequest) (response *CheckAutoSnapshotPolicyResponse, err error) { + response = CreateCheckAutoSnapshotPolicyResponse() + err = client.DoAction(request, response) + return +} + +// CheckAutoSnapshotPolicyWithChan invokes the ecs.CheckAutoSnapshotPolicy API asynchronously +// api document: https://help.aliyun.com/api/ecs/checkautosnapshotpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckAutoSnapshotPolicyWithChan(request *CheckAutoSnapshotPolicyRequest) (<-chan *CheckAutoSnapshotPolicyResponse, <-chan error) { + responseChan := make(chan *CheckAutoSnapshotPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckAutoSnapshotPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckAutoSnapshotPolicyWithCallback invokes the ecs.CheckAutoSnapshotPolicy API asynchronously +// api document: https://help.aliyun.com/api/ecs/checkautosnapshotpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckAutoSnapshotPolicyWithCallback(request *CheckAutoSnapshotPolicyRequest, callback func(response *CheckAutoSnapshotPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckAutoSnapshotPolicyResponse + var err error + defer close(result) + response, err = client.CheckAutoSnapshotPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckAutoSnapshotPolicyRequest is the request struct for api CheckAutoSnapshotPolicy +type CheckAutoSnapshotPolicyRequest struct { + *requests.RpcRequest + DataDiskPolicyEnabled requests.Boolean `position:"Query" name:"DataDiskPolicyEnabled"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DataDiskPolicyRetentionDays requests.Integer `position:"Query" name:"DataDiskPolicyRetentionDays"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + SystemDiskPolicyRetentionLastWeek requests.Boolean `position:"Query" name:"SystemDiskPolicyRetentionLastWeek"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SystemDiskPolicyTimePeriod requests.Integer `position:"Query" name:"SystemDiskPolicyTimePeriod"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + DataDiskPolicyRetentionLastWeek requests.Boolean `position:"Query" name:"DataDiskPolicyRetentionLastWeek"` + SystemDiskPolicyRetentionDays requests.Integer `position:"Query" name:"SystemDiskPolicyRetentionDays"` + DataDiskPolicyTimePeriod requests.Integer `position:"Query" name:"DataDiskPolicyTimePeriod"` + SystemDiskPolicyEnabled requests.Boolean `position:"Query" name:"SystemDiskPolicyEnabled"` +} + +// CheckAutoSnapshotPolicyResponse is the response struct for api CheckAutoSnapshotPolicy +type CheckAutoSnapshotPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AutoSnapshotOccupation int `json:"AutoSnapshotOccupation" xml:"AutoSnapshotOccupation"` + IsPermittedModify string `json:"IsPermittedModify" xml:"IsPermittedModify"` +} + +// CreateCheckAutoSnapshotPolicyRequest creates a request to invoke CheckAutoSnapshotPolicy API +func CreateCheckAutoSnapshotPolicyRequest() (request *CheckAutoSnapshotPolicyRequest) { + request = &CheckAutoSnapshotPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CheckAutoSnapshotPolicy", "ecs", "openAPI") + return +} + +// CreateCheckAutoSnapshotPolicyResponse creates a response to parse from CheckAutoSnapshotPolicy response +func CreateCheckAutoSnapshotPolicyResponse() (response *CheckAutoSnapshotPolicyResponse) { + response = &CheckAutoSnapshotPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/check_disk_enable_auto_snapshot_validation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/check_disk_enable_auto_snapshot_validation.go new file mode 100644 index 0000000..34c6026 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/check_disk_enable_auto_snapshot_validation.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckDiskEnableAutoSnapshotValidation invokes the ecs.CheckDiskEnableAutoSnapshotValidation API synchronously +// api document: https://help.aliyun.com/api/ecs/checkdiskenableautosnapshotvalidation.html +func (client *Client) CheckDiskEnableAutoSnapshotValidation(request *CheckDiskEnableAutoSnapshotValidationRequest) (response *CheckDiskEnableAutoSnapshotValidationResponse, err error) { + response = CreateCheckDiskEnableAutoSnapshotValidationResponse() + err = client.DoAction(request, response) + return +} + +// CheckDiskEnableAutoSnapshotValidationWithChan invokes the ecs.CheckDiskEnableAutoSnapshotValidation API asynchronously +// api document: https://help.aliyun.com/api/ecs/checkdiskenableautosnapshotvalidation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckDiskEnableAutoSnapshotValidationWithChan(request *CheckDiskEnableAutoSnapshotValidationRequest) (<-chan *CheckDiskEnableAutoSnapshotValidationResponse, <-chan error) { + responseChan := make(chan *CheckDiskEnableAutoSnapshotValidationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckDiskEnableAutoSnapshotValidation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckDiskEnableAutoSnapshotValidationWithCallback invokes the ecs.CheckDiskEnableAutoSnapshotValidation API asynchronously +// api document: https://help.aliyun.com/api/ecs/checkdiskenableautosnapshotvalidation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckDiskEnableAutoSnapshotValidationWithCallback(request *CheckDiskEnableAutoSnapshotValidationRequest, callback func(response *CheckDiskEnableAutoSnapshotValidationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckDiskEnableAutoSnapshotValidationResponse + var err error + defer close(result) + response, err = client.CheckDiskEnableAutoSnapshotValidation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckDiskEnableAutoSnapshotValidationRequest is the request struct for api CheckDiskEnableAutoSnapshotValidation +type CheckDiskEnableAutoSnapshotValidationRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DiskIds string `position:"Query" name:"DiskIds"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// CheckDiskEnableAutoSnapshotValidationResponse is the response struct for api CheckDiskEnableAutoSnapshotValidation +type CheckDiskEnableAutoSnapshotValidationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + IsPermitted string `json:"IsPermitted" xml:"IsPermitted"` + AutoSnapshotOccupation int `json:"AutoSnapshotOccupation" xml:"AutoSnapshotOccupation"` +} + +// CreateCheckDiskEnableAutoSnapshotValidationRequest creates a request to invoke CheckDiskEnableAutoSnapshotValidation API +func CreateCheckDiskEnableAutoSnapshotValidationRequest() (request *CheckDiskEnableAutoSnapshotValidationRequest) { + request = &CheckDiskEnableAutoSnapshotValidationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CheckDiskEnableAutoSnapshotValidation", "ecs", "openAPI") + return +} + +// CreateCheckDiskEnableAutoSnapshotValidationResponse creates a response to parse from CheckDiskEnableAutoSnapshotValidation response +func CreateCheckDiskEnableAutoSnapshotValidationResponse() (response *CheckDiskEnableAutoSnapshotValidationResponse) { + response = &CheckDiskEnableAutoSnapshotValidationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/client.go new file mode 100644 index 0000000..f2a10a3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/client.go @@ -0,0 +1,81 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/connect_router_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/connect_router_interface.go new file mode 100644 index 0000000..46adafc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/connect_router_interface.go @@ -0,0 +1,106 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ConnectRouterInterface invokes the ecs.ConnectRouterInterface API synchronously +// api document: https://help.aliyun.com/api/ecs/connectrouterinterface.html +func (client *Client) ConnectRouterInterface(request *ConnectRouterInterfaceRequest) (response *ConnectRouterInterfaceResponse, err error) { + response = CreateConnectRouterInterfaceResponse() + err = client.DoAction(request, response) + return +} + +// ConnectRouterInterfaceWithChan invokes the ecs.ConnectRouterInterface API asynchronously +// api document: https://help.aliyun.com/api/ecs/connectrouterinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ConnectRouterInterfaceWithChan(request *ConnectRouterInterfaceRequest) (<-chan *ConnectRouterInterfaceResponse, <-chan error) { + responseChan := make(chan *ConnectRouterInterfaceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ConnectRouterInterface(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ConnectRouterInterfaceWithCallback invokes the ecs.ConnectRouterInterface API asynchronously +// api document: https://help.aliyun.com/api/ecs/connectrouterinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ConnectRouterInterfaceWithCallback(request *ConnectRouterInterfaceRequest, callback func(response *ConnectRouterInterfaceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ConnectRouterInterfaceResponse + var err error + defer close(result) + response, err = client.ConnectRouterInterface(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ConnectRouterInterfaceRequest is the request struct for api ConnectRouterInterface +type ConnectRouterInterfaceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + RouterInterfaceId string `position:"Query" name:"RouterInterfaceId"` +} + +// ConnectRouterInterfaceResponse is the response struct for api ConnectRouterInterface +type ConnectRouterInterfaceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateConnectRouterInterfaceRequest creates a request to invoke ConnectRouterInterface API +func CreateConnectRouterInterfaceRequest() (request *ConnectRouterInterfaceRequest) { + request = &ConnectRouterInterfaceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ConnectRouterInterface", "ecs", "openAPI") + return +} + +// CreateConnectRouterInterfaceResponse creates a response to parse from ConnectRouterInterface response +func CreateConnectRouterInterfaceResponse() (response *ConnectRouterInterfaceResponse) { + response = &ConnectRouterInterfaceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/convert_nat_public_ip_to_eip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/convert_nat_public_ip_to_eip.go new file mode 100644 index 0000000..1934e16 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/convert_nat_public_ip_to_eip.go @@ -0,0 +1,106 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ConvertNatPublicIpToEip invokes the ecs.ConvertNatPublicIpToEip API synchronously +// api document: https://help.aliyun.com/api/ecs/convertnatpubliciptoeip.html +func (client *Client) ConvertNatPublicIpToEip(request *ConvertNatPublicIpToEipRequest) (response *ConvertNatPublicIpToEipResponse, err error) { + response = CreateConvertNatPublicIpToEipResponse() + err = client.DoAction(request, response) + return +} + +// ConvertNatPublicIpToEipWithChan invokes the ecs.ConvertNatPublicIpToEip API asynchronously +// api document: https://help.aliyun.com/api/ecs/convertnatpubliciptoeip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ConvertNatPublicIpToEipWithChan(request *ConvertNatPublicIpToEipRequest) (<-chan *ConvertNatPublicIpToEipResponse, <-chan error) { + responseChan := make(chan *ConvertNatPublicIpToEipResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ConvertNatPublicIpToEip(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ConvertNatPublicIpToEipWithCallback invokes the ecs.ConvertNatPublicIpToEip API asynchronously +// api document: https://help.aliyun.com/api/ecs/convertnatpubliciptoeip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ConvertNatPublicIpToEipWithCallback(request *ConvertNatPublicIpToEipRequest, callback func(response *ConvertNatPublicIpToEipResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ConvertNatPublicIpToEipResponse + var err error + defer close(result) + response, err = client.ConvertNatPublicIpToEip(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ConvertNatPublicIpToEipRequest is the request struct for api ConvertNatPublicIpToEip +type ConvertNatPublicIpToEipRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// ConvertNatPublicIpToEipResponse is the response struct for api ConvertNatPublicIpToEip +type ConvertNatPublicIpToEipResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateConvertNatPublicIpToEipRequest creates a request to invoke ConvertNatPublicIpToEip API +func CreateConvertNatPublicIpToEipRequest() (request *ConvertNatPublicIpToEipRequest) { + request = &ConvertNatPublicIpToEipRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ConvertNatPublicIpToEip", "ecs", "openAPI") + return +} + +// CreateConvertNatPublicIpToEipResponse creates a response to parse from ConvertNatPublicIpToEip response +func CreateConvertNatPublicIpToEipResponse() (response *ConvertNatPublicIpToEipResponse) { + response = &ConvertNatPublicIpToEipResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/copy_image.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/copy_image.go new file mode 100644 index 0000000..a37197d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/copy_image.go @@ -0,0 +1,122 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CopyImage invokes the ecs.CopyImage API synchronously +// api document: https://help.aliyun.com/api/ecs/copyimage.html +func (client *Client) CopyImage(request *CopyImageRequest) (response *CopyImageResponse, err error) { + response = CreateCopyImageResponse() + err = client.DoAction(request, response) + return +} + +// CopyImageWithChan invokes the ecs.CopyImage API asynchronously +// api document: https://help.aliyun.com/api/ecs/copyimage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CopyImageWithChan(request *CopyImageRequest) (<-chan *CopyImageResponse, <-chan error) { + responseChan := make(chan *CopyImageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CopyImage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CopyImageWithCallback invokes the ecs.CopyImage API asynchronously +// api document: https://help.aliyun.com/api/ecs/copyimage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CopyImageWithCallback(request *CopyImageRequest, callback func(response *CopyImageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CopyImageResponse + var err error + defer close(result) + response, err = client.CopyImage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CopyImageRequest is the request struct for api CopyImage +type CopyImageRequest struct { + *requests.RpcRequest + Tag4Value string `position:"Query" name:"Tag.4.Value"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ImageId string `position:"Query" name:"ImageId"` + Tag2Key string `position:"Query" name:"Tag.2.Key"` + Tag5Key string `position:"Query" name:"Tag.5.Key"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + DestinationImageName string `position:"Query" name:"DestinationImageName"` + DestinationRegionId string `position:"Query" name:"DestinationRegionId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Tag3Key string `position:"Query" name:"Tag.3.Key"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tag5Value string `position:"Query" name:"Tag.5.Value"` + Tag1Key string `position:"Query" name:"Tag.1.Key"` + Tag1Value string `position:"Query" name:"Tag.1.Value"` + Encrypted requests.Boolean `position:"Query" name:"Encrypted"` + Tag2Value string `position:"Query" name:"Tag.2.Value"` + Tag4Key string `position:"Query" name:"Tag.4.Key"` + DestinationDescription string `position:"Query" name:"DestinationDescription"` + Tag3Value string `position:"Query" name:"Tag.3.Value"` +} + +// CopyImageResponse is the response struct for api CopyImage +type CopyImageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ImageId string `json:"ImageId" xml:"ImageId"` +} + +// CreateCopyImageRequest creates a request to invoke CopyImage API +func CreateCopyImageRequest() (request *CopyImageRequest) { + request = &CopyImageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CopyImage", "ecs", "openAPI") + return +} + +// CreateCopyImageResponse creates a response to parse from CopyImage response +func CreateCopyImageResponse() (response *CopyImageResponse) { + response = &CopyImageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_auto_snapshot_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_auto_snapshot_policy.go new file mode 100644 index 0000000..0110270 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_auto_snapshot_policy.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateAutoSnapshotPolicy invokes the ecs.CreateAutoSnapshotPolicy API synchronously +// api document: https://help.aliyun.com/api/ecs/createautosnapshotpolicy.html +func (client *Client) CreateAutoSnapshotPolicy(request *CreateAutoSnapshotPolicyRequest) (response *CreateAutoSnapshotPolicyResponse, err error) { + response = CreateCreateAutoSnapshotPolicyResponse() + err = client.DoAction(request, response) + return +} + +// CreateAutoSnapshotPolicyWithChan invokes the ecs.CreateAutoSnapshotPolicy API asynchronously +// api document: https://help.aliyun.com/api/ecs/createautosnapshotpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateAutoSnapshotPolicyWithChan(request *CreateAutoSnapshotPolicyRequest) (<-chan *CreateAutoSnapshotPolicyResponse, <-chan error) { + responseChan := make(chan *CreateAutoSnapshotPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateAutoSnapshotPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateAutoSnapshotPolicyWithCallback invokes the ecs.CreateAutoSnapshotPolicy API asynchronously +// api document: https://help.aliyun.com/api/ecs/createautosnapshotpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateAutoSnapshotPolicyWithCallback(request *CreateAutoSnapshotPolicyRequest, callback func(response *CreateAutoSnapshotPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateAutoSnapshotPolicyResponse + var err error + defer close(result) + response, err = client.CreateAutoSnapshotPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateAutoSnapshotPolicyRequest is the request struct for api CreateAutoSnapshotPolicy +type CreateAutoSnapshotPolicyRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + TimePoints string `position:"Query" name:"timePoints"` + RetentionDays requests.Integer `position:"Query" name:"retentionDays"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + RepeatWeekdays string `position:"Query" name:"repeatWeekdays"` + AutoSnapshotPolicyName string `position:"Query" name:"autoSnapshotPolicyName"` +} + +// CreateAutoSnapshotPolicyResponse is the response struct for api CreateAutoSnapshotPolicy +type CreateAutoSnapshotPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AutoSnapshotPolicyId string `json:"AutoSnapshotPolicyId" xml:"AutoSnapshotPolicyId"` +} + +// CreateCreateAutoSnapshotPolicyRequest creates a request to invoke CreateAutoSnapshotPolicy API +func CreateCreateAutoSnapshotPolicyRequest() (request *CreateAutoSnapshotPolicyRequest) { + request = &CreateAutoSnapshotPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateAutoSnapshotPolicy", "ecs", "openAPI") + return +} + +// CreateCreateAutoSnapshotPolicyResponse creates a response to parse from CreateAutoSnapshotPolicy response +func CreateCreateAutoSnapshotPolicyResponse() (response *CreateAutoSnapshotPolicyResponse) { + response = &CreateAutoSnapshotPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_command.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_command.go new file mode 100644 index 0000000..1f4d0e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_command.go @@ -0,0 +1,113 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateCommand invokes the ecs.CreateCommand API synchronously +// api document: https://help.aliyun.com/api/ecs/createcommand.html +func (client *Client) CreateCommand(request *CreateCommandRequest) (response *CreateCommandResponse, err error) { + response = CreateCreateCommandResponse() + err = client.DoAction(request, response) + return +} + +// CreateCommandWithChan invokes the ecs.CreateCommand API asynchronously +// api document: https://help.aliyun.com/api/ecs/createcommand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateCommandWithChan(request *CreateCommandRequest) (<-chan *CreateCommandResponse, <-chan error) { + responseChan := make(chan *CreateCommandResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateCommand(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateCommandWithCallback invokes the ecs.CreateCommand API asynchronously +// api document: https://help.aliyun.com/api/ecs/createcommand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateCommandWithCallback(request *CreateCommandRequest, callback func(response *CreateCommandResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateCommandResponse + var err error + defer close(result) + response, err = client.CreateCommand(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateCommandRequest is the request struct for api CreateCommand +type CreateCommandRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + WorkingDir string `position:"Query" name:"WorkingDir"` + Description string `position:"Query" name:"Description"` + Type string `position:"Query" name:"Type"` + CommandContent string `position:"Query" name:"CommandContent"` + Timeout requests.Integer `position:"Query" name:"Timeout"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Name string `position:"Query" name:"Name"` +} + +// CreateCommandResponse is the response struct for api CreateCommand +type CreateCommandResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CommandId string `json:"CommandId" xml:"CommandId"` +} + +// CreateCreateCommandRequest creates a request to invoke CreateCommand API +func CreateCreateCommandRequest() (request *CreateCommandRequest) { + request = &CreateCommandRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateCommand", "ecs", "openAPI") + return +} + +// CreateCreateCommandResponse creates a response to parse from CreateCommand response +func CreateCreateCommandResponse() (response *CreateCommandResponse) { + response = &CreateCommandResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_deployment_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_deployment_set.go new file mode 100644 index 0000000..961ef98 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_deployment_set.go @@ -0,0 +1,114 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateDeploymentSet invokes the ecs.CreateDeploymentSet API synchronously +// api document: https://help.aliyun.com/api/ecs/createdeploymentset.html +func (client *Client) CreateDeploymentSet(request *CreateDeploymentSetRequest) (response *CreateDeploymentSetResponse, err error) { + response = CreateCreateDeploymentSetResponse() + err = client.DoAction(request, response) + return +} + +// CreateDeploymentSetWithChan invokes the ecs.CreateDeploymentSet API asynchronously +// api document: https://help.aliyun.com/api/ecs/createdeploymentset.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDeploymentSetWithChan(request *CreateDeploymentSetRequest) (<-chan *CreateDeploymentSetResponse, <-chan error) { + responseChan := make(chan *CreateDeploymentSetResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateDeploymentSet(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateDeploymentSetWithCallback invokes the ecs.CreateDeploymentSet API asynchronously +// api document: https://help.aliyun.com/api/ecs/createdeploymentset.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDeploymentSetWithCallback(request *CreateDeploymentSetRequest, callback func(response *CreateDeploymentSetResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateDeploymentSetResponse + var err error + defer close(result) + response, err = client.CreateDeploymentSet(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateDeploymentSetRequest is the request struct for api CreateDeploymentSet +type CreateDeploymentSetRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Description string `position:"Query" name:"Description"` + DeploymentSetName string `position:"Query" name:"DeploymentSetName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Granularity string `position:"Query" name:"Granularity"` + Domain string `position:"Query" name:"Domain"` + ZoneId string `position:"Query" name:"ZoneId"` + Strategy string `position:"Query" name:"Strategy"` +} + +// CreateDeploymentSetResponse is the response struct for api CreateDeploymentSet +type CreateDeploymentSetResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DeploymentSetId string `json:"DeploymentSetId" xml:"DeploymentSetId"` +} + +// CreateCreateDeploymentSetRequest creates a request to invoke CreateDeploymentSet API +func CreateCreateDeploymentSetRequest() (request *CreateDeploymentSetRequest) { + request = &CreateDeploymentSetRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateDeploymentSet", "ecs", "openAPI") + return +} + +// CreateCreateDeploymentSetResponse creates a response to parse from CreateDeploymentSet response +func CreateCreateDeploymentSetResponse() (response *CreateDeploymentSetResponse) { + response = &CreateDeploymentSetResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_disk.go new file mode 100644 index 0000000..1d6e071 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_disk.go @@ -0,0 +1,126 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateDisk invokes the ecs.CreateDisk API synchronously +// api document: https://help.aliyun.com/api/ecs/createdisk.html +func (client *Client) CreateDisk(request *CreateDiskRequest) (response *CreateDiskResponse, err error) { + response = CreateCreateDiskResponse() + err = client.DoAction(request, response) + return +} + +// CreateDiskWithChan invokes the ecs.CreateDisk API asynchronously +// api document: https://help.aliyun.com/api/ecs/createdisk.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDiskWithChan(request *CreateDiskRequest) (<-chan *CreateDiskResponse, <-chan error) { + responseChan := make(chan *CreateDiskResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateDisk(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateDiskWithCallback invokes the ecs.CreateDisk API asynchronously +// api document: https://help.aliyun.com/api/ecs/createdisk.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDiskWithCallback(request *CreateDiskRequest, callback func(response *CreateDiskResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateDiskResponse + var err error + defer close(result) + response, err = client.CreateDisk(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateDiskRequest is the request struct for api CreateDisk +type CreateDiskRequest struct { + *requests.RpcRequest + Tag4Value string `position:"Query" name:"Tag.4.Value"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SnapshotId string `position:"Query" name:"SnapshotId"` + Tag2Key string `position:"Query" name:"Tag.2.Key"` + ClientToken string `position:"Query" name:"ClientToken"` + Description string `position:"Query" name:"Description"` + Tag3Key string `position:"Query" name:"Tag.3.Key"` + DiskName string `position:"Query" name:"DiskName"` + Tag1Value string `position:"Query" name:"Tag.1.Value"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + DiskCategory string `position:"Query" name:"DiskCategory"` + Tag3Value string `position:"Query" name:"Tag.3.Value"` + Tag5Key string `position:"Query" name:"Tag.5.Key"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tag5Value string `position:"Query" name:"Tag.5.Value"` + Tag1Key string `position:"Query" name:"Tag.1.Key"` + Size requests.Integer `position:"Query" name:"Size"` + Encrypted requests.Boolean `position:"Query" name:"Encrypted"` + Tag2Value string `position:"Query" name:"Tag.2.Value"` + ZoneId string `position:"Query" name:"ZoneId"` + Tag4Key string `position:"Query" name:"Tag.4.Key"` +} + +// CreateDiskResponse is the response struct for api CreateDisk +type CreateDiskResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DiskId string `json:"DiskId" xml:"DiskId"` +} + +// CreateCreateDiskRequest creates a request to invoke CreateDisk API +func CreateCreateDiskRequest() (request *CreateDiskRequest) { + request = &CreateDiskRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateDisk", "ecs", "openAPI") + return +} + +// CreateCreateDiskResponse creates a response to parse from CreateDisk response +func CreateCreateDiskResponse() (response *CreateDiskResponse) { + response = &CreateDiskResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_forward_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_forward_entry.go new file mode 100644 index 0000000..e74f67b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_forward_entry.go @@ -0,0 +1,113 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateForwardEntry invokes the ecs.CreateForwardEntry API synchronously +// api document: https://help.aliyun.com/api/ecs/createforwardentry.html +func (client *Client) CreateForwardEntry(request *CreateForwardEntryRequest) (response *CreateForwardEntryResponse, err error) { + response = CreateCreateForwardEntryResponse() + err = client.DoAction(request, response) + return +} + +// CreateForwardEntryWithChan invokes the ecs.CreateForwardEntry API asynchronously +// api document: https://help.aliyun.com/api/ecs/createforwardentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateForwardEntryWithChan(request *CreateForwardEntryRequest) (<-chan *CreateForwardEntryResponse, <-chan error) { + responseChan := make(chan *CreateForwardEntryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateForwardEntry(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateForwardEntryWithCallback invokes the ecs.CreateForwardEntry API asynchronously +// api document: https://help.aliyun.com/api/ecs/createforwardentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateForwardEntryWithCallback(request *CreateForwardEntryRequest, callback func(response *CreateForwardEntryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateForwardEntryResponse + var err error + defer close(result) + response, err = client.CreateForwardEntry(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateForwardEntryRequest is the request struct for api CreateForwardEntry +type CreateForwardEntryRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + IpProtocol string `position:"Query" name:"IpProtocol"` + InternalPort string `position:"Query" name:"InternalPort"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ForwardTableId string `position:"Query" name:"ForwardTableId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ExternalIp string `position:"Query" name:"ExternalIp"` + ExternalPort string `position:"Query" name:"ExternalPort"` + InternalIp string `position:"Query" name:"InternalIp"` +} + +// CreateForwardEntryResponse is the response struct for api CreateForwardEntry +type CreateForwardEntryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ForwardEntryId string `json:"ForwardEntryId" xml:"ForwardEntryId"` +} + +// CreateCreateForwardEntryRequest creates a request to invoke CreateForwardEntry API +func CreateCreateForwardEntryRequest() (request *CreateForwardEntryRequest) { + request = &CreateForwardEntryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateForwardEntry", "ecs", "openAPI") + return +} + +// CreateCreateForwardEntryResponse creates a response to parse from CreateForwardEntry response +func CreateCreateForwardEntryResponse() (response *CreateForwardEntryResponse) { + response = &CreateForwardEntryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_ha_vip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_ha_vip.go new file mode 100644 index 0000000..2ff08c3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_ha_vip.go @@ -0,0 +1,111 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateHaVip invokes the ecs.CreateHaVip API synchronously +// api document: https://help.aliyun.com/api/ecs/createhavip.html +func (client *Client) CreateHaVip(request *CreateHaVipRequest) (response *CreateHaVipResponse, err error) { + response = CreateCreateHaVipResponse() + err = client.DoAction(request, response) + return +} + +// CreateHaVipWithChan invokes the ecs.CreateHaVip API asynchronously +// api document: https://help.aliyun.com/api/ecs/createhavip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateHaVipWithChan(request *CreateHaVipRequest) (<-chan *CreateHaVipResponse, <-chan error) { + responseChan := make(chan *CreateHaVipResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateHaVip(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateHaVipWithCallback invokes the ecs.CreateHaVip API asynchronously +// api document: https://help.aliyun.com/api/ecs/createhavip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateHaVipWithCallback(request *CreateHaVipRequest, callback func(response *CreateHaVipResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateHaVipResponse + var err error + defer close(result) + response, err = client.CreateHaVip(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateHaVipRequest is the request struct for api CreateHaVip +type CreateHaVipRequest struct { + *requests.RpcRequest + VSwitchId string `position:"Query" name:"VSwitchId"` + IpAddress string `position:"Query" name:"IpAddress"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Description string `position:"Query" name:"Description"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// CreateHaVipResponse is the response struct for api CreateHaVip +type CreateHaVipResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + HaVipId string `json:"HaVipId" xml:"HaVipId"` +} + +// CreateCreateHaVipRequest creates a request to invoke CreateHaVip API +func CreateCreateHaVipRequest() (request *CreateHaVipRequest) { + request = &CreateHaVipRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateHaVip", "ecs", "openAPI") + return +} + +// CreateCreateHaVipResponse creates a response to parse from CreateHaVip response +func CreateCreateHaVipResponse() (response *CreateHaVipResponse) { + response = &CreateHaVipResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_hpc_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_hpc_cluster.go new file mode 100644 index 0000000..a1f479d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_hpc_cluster.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateHpcCluster invokes the ecs.CreateHpcCluster API synchronously +// api document: https://help.aliyun.com/api/ecs/createhpccluster.html +func (client *Client) CreateHpcCluster(request *CreateHpcClusterRequest) (response *CreateHpcClusterResponse, err error) { + response = CreateCreateHpcClusterResponse() + err = client.DoAction(request, response) + return +} + +// CreateHpcClusterWithChan invokes the ecs.CreateHpcCluster API asynchronously +// api document: https://help.aliyun.com/api/ecs/createhpccluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateHpcClusterWithChan(request *CreateHpcClusterRequest) (<-chan *CreateHpcClusterResponse, <-chan error) { + responseChan := make(chan *CreateHpcClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateHpcCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateHpcClusterWithCallback invokes the ecs.CreateHpcCluster API asynchronously +// api document: https://help.aliyun.com/api/ecs/createhpccluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateHpcClusterWithCallback(request *CreateHpcClusterRequest, callback func(response *CreateHpcClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateHpcClusterResponse + var err error + defer close(result) + response, err = client.CreateHpcCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateHpcClusterRequest is the request struct for api CreateHpcCluster +type CreateHpcClusterRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + Description string `position:"Query" name:"Description"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Name string `position:"Query" name:"Name"` +} + +// CreateHpcClusterResponse is the response struct for api CreateHpcCluster +type CreateHpcClusterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + HpcClusterId string `json:"HpcClusterId" xml:"HpcClusterId"` +} + +// CreateCreateHpcClusterRequest creates a request to invoke CreateHpcCluster API +func CreateCreateHpcClusterRequest() (request *CreateHpcClusterRequest) { + request = &CreateHpcClusterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateHpcCluster", "ecs", "openAPI") + return +} + +// CreateCreateHpcClusterResponse creates a response to parse from CreateHpcCluster response +func CreateCreateHpcClusterResponse() (response *CreateHpcClusterResponse) { + response = &CreateHpcClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image.go new file mode 100644 index 0000000..c1b42b6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image.go @@ -0,0 +1,135 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateImage invokes the ecs.CreateImage API synchronously +// api document: https://help.aliyun.com/api/ecs/createimage.html +func (client *Client) CreateImage(request *CreateImageRequest) (response *CreateImageResponse, err error) { + response = CreateCreateImageResponse() + err = client.DoAction(request, response) + return +} + +// CreateImageWithChan invokes the ecs.CreateImage API asynchronously +// api document: https://help.aliyun.com/api/ecs/createimage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateImageWithChan(request *CreateImageRequest) (<-chan *CreateImageResponse, <-chan error) { + responseChan := make(chan *CreateImageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateImage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateImageWithCallback invokes the ecs.CreateImage API asynchronously +// api document: https://help.aliyun.com/api/ecs/createimage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateImageWithCallback(request *CreateImageRequest, callback func(response *CreateImageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateImageResponse + var err error + defer close(result) + response, err = client.CreateImage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateImageRequest is the request struct for api CreateImage +type CreateImageRequest struct { + *requests.RpcRequest + DiskDeviceMapping *[]CreateImageDiskDeviceMapping `position:"Query" name:"DiskDeviceMapping" type:"Repeated"` + Tag4Value string `position:"Query" name:"Tag.4.Value"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SnapshotId string `position:"Query" name:"SnapshotId"` + Tag2Key string `position:"Query" name:"Tag.2.Key"` + ClientToken string `position:"Query" name:"ClientToken"` + Description string `position:"Query" name:"Description"` + Tag3Key string `position:"Query" name:"Tag.3.Key"` + Platform string `position:"Query" name:"Platform"` + Tag1Value string `position:"Query" name:"Tag.1.Value"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + ImageName string `position:"Query" name:"ImageName"` + Tag3Value string `position:"Query" name:"Tag.3.Value"` + Architecture string `position:"Query" name:"Architecture"` + Tag5Key string `position:"Query" name:"Tag.5.Key"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tag5Value string `position:"Query" name:"Tag.5.Value"` + Tag1Key string `position:"Query" name:"Tag.1.Key"` + InstanceId string `position:"Query" name:"InstanceId"` + Tag2Value string `position:"Query" name:"Tag.2.Value"` + ImageVersion string `position:"Query" name:"ImageVersion"` + Tag4Key string `position:"Query" name:"Tag.4.Key"` +} + +// CreateImageDiskDeviceMapping is a repeated param struct in CreateImageRequest +type CreateImageDiskDeviceMapping struct { + Size string `name:"Size"` + SnapshotId string `name:"SnapshotId"` + Device string `name:"Device"` + DiskType string `name:"DiskType"` +} + +// CreateImageResponse is the response struct for api CreateImage +type CreateImageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ImageId string `json:"ImageId" xml:"ImageId"` +} + +// CreateCreateImageRequest creates a request to invoke CreateImage API +func CreateCreateImageRequest() (request *CreateImageRequest) { + request = &CreateImageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateImage", "ecs", "openAPI") + return +} + +// CreateCreateImageResponse creates a response to parse from CreateImage response +func CreateCreateImageResponse() (response *CreateImageResponse) { + response = &CreateImageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_instance.go new file mode 100644 index 0000000..ad3700e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_instance.go @@ -0,0 +1,172 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateInstance invokes the ecs.CreateInstance API synchronously +// api document: https://help.aliyun.com/api/ecs/createinstance.html +func (client *Client) CreateInstance(request *CreateInstanceRequest) (response *CreateInstanceResponse, err error) { + response = CreateCreateInstanceResponse() + err = client.DoAction(request, response) + return +} + +// CreateInstanceWithChan invokes the ecs.CreateInstance API asynchronously +// api document: https://help.aliyun.com/api/ecs/createinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateInstanceWithChan(request *CreateInstanceRequest) (<-chan *CreateInstanceResponse, <-chan error) { + responseChan := make(chan *CreateInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateInstanceWithCallback invokes the ecs.CreateInstance API asynchronously +// api document: https://help.aliyun.com/api/ecs/createinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateInstanceWithCallback(request *CreateInstanceRequest, callback func(response *CreateInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateInstanceResponse + var err error + defer close(result) + response, err = client.CreateInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateInstanceRequest is the request struct for api CreateInstance +type CreateInstanceRequest struct { + *requests.RpcRequest + Tag4Value string `position:"Query" name:"Tag.4.Value"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Tag2Key string `position:"Query" name:"Tag.2.Key"` + HpcClusterId string `position:"Query" name:"HpcClusterId"` + Tag3Key string `position:"Query" name:"Tag.3.Key"` + SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` + KeyPairName string `position:"Query" name:"KeyPairName"` + SpotPriceLimit requests.Float `position:"Query" name:"SpotPriceLimit"` + Tag1Value string `position:"Query" name:"Tag.1.Value"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + HostName string `position:"Query" name:"HostName"` + Password string `position:"Query" name:"Password"` + AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` + NodeControllerId string `position:"Query" name:"NodeControllerId"` + Period requests.Integer `position:"Query" name:"Period"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + Tag5Key string `position:"Query" name:"Tag.5.Key"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` + SpotStrategy string `position:"Query" name:"SpotStrategy"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + InstanceName string `position:"Query" name:"InstanceName"` + AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + ZoneId string `position:"Query" name:"ZoneId"` + Tag4Key string `position:"Query" name:"Tag.4.Key"` + InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` + UseAdditionalService requests.Boolean `position:"Query" name:"UseAdditionalService"` + ImageId string `position:"Query" name:"ImageId"` + ClientToken string `position:"Query" name:"ClientToken"` + VlanId string `position:"Query" name:"VlanId"` + SpotInterruptionBehavior string `position:"Query" name:"SpotInterruptionBehavior"` + IoOptimized string `position:"Query" name:"IoOptimized"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` + Description string `position:"Query" name:"Description"` + SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` + UserData string `position:"Query" name:"UserData"` + PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` + InstanceType string `position:"Query" name:"InstanceType"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + Tag3Value string `position:"Query" name:"Tag.3.Value"` + DeploymentSetId string `position:"Query" name:"DeploymentSetId"` + InnerIpAddress string `position:"Query" name:"InnerIpAddress"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SystemDiskDiskName string `position:"Query" name:"SystemDisk.DiskName"` + RamRoleName string `position:"Query" name:"RamRoleName"` + DedicatedHostId string `position:"Query" name:"DedicatedHostId"` + ClusterId string `position:"Query" name:"ClusterId"` + DataDisk *[]CreateInstanceDataDisk `position:"Query" name:"DataDisk" type:"Repeated"` + Tag5Value string `position:"Query" name:"Tag.5.Value"` + Tag1Key string `position:"Query" name:"Tag.1.Key"` + SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` + Tag2Value string `position:"Query" name:"Tag.2.Value"` + SystemDiskDescription string `position:"Query" name:"SystemDisk.Description"` +} + +// CreateInstanceDataDisk is a repeated param struct in CreateInstanceRequest +type CreateInstanceDataDisk struct { + Size string `name:"Size"` + SnapshotId string `name:"SnapshotId"` + Category string `name:"Category"` + DiskName string `name:"DiskName"` + Description string `name:"Description"` + Device string `name:"Device"` + DeleteWithInstance string `name:"DeleteWithInstance"` + Encrypted string `name:"Encrypted"` +} + +// CreateInstanceResponse is the response struct for api CreateInstance +type CreateInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` +} + +// CreateCreateInstanceRequest creates a request to invoke CreateInstance API +func CreateCreateInstanceRequest() (request *CreateInstanceRequest) { + request = &CreateInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateInstance", "ecs", "openAPI") + return +} + +// CreateCreateInstanceResponse creates a response to parse from CreateInstance response +func CreateCreateInstanceResponse() (response *CreateInstanceResponse) { + response = &CreateInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_key_pair.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_key_pair.go new file mode 100644 index 0000000..93c005e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_key_pair.go @@ -0,0 +1,120 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateKeyPair invokes the ecs.CreateKeyPair API synchronously +// api document: https://help.aliyun.com/api/ecs/createkeypair.html +func (client *Client) CreateKeyPair(request *CreateKeyPairRequest) (response *CreateKeyPairResponse, err error) { + response = CreateCreateKeyPairResponse() + err = client.DoAction(request, response) + return +} + +// CreateKeyPairWithChan invokes the ecs.CreateKeyPair API asynchronously +// api document: https://help.aliyun.com/api/ecs/createkeypair.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateKeyPairWithChan(request *CreateKeyPairRequest) (<-chan *CreateKeyPairResponse, <-chan error) { + responseChan := make(chan *CreateKeyPairResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateKeyPair(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateKeyPairWithCallback invokes the ecs.CreateKeyPair API asynchronously +// api document: https://help.aliyun.com/api/ecs/createkeypair.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateKeyPairWithCallback(request *CreateKeyPairRequest, callback func(response *CreateKeyPairResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateKeyPairResponse + var err error + defer close(result) + response, err = client.CreateKeyPair(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateKeyPairRequest is the request struct for api CreateKeyPair +type CreateKeyPairRequest struct { + *requests.RpcRequest + Tag4Value string `position:"Query" name:"Tag.4.Value"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Tag2Key string `position:"Query" name:"Tag.2.Key"` + Tag5Key string `position:"Query" name:"Tag.5.Key"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Tag3Key string `position:"Query" name:"Tag.3.Key"` + KeyPairName string `position:"Query" name:"KeyPairName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tag5Value string `position:"Query" name:"Tag.5.Value"` + Tag1Key string `position:"Query" name:"Tag.1.Key"` + Tag1Value string `position:"Query" name:"Tag.1.Value"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Tag2Value string `position:"Query" name:"Tag.2.Value"` + Tag4Key string `position:"Query" name:"Tag.4.Key"` + Tag3Value string `position:"Query" name:"Tag.3.Value"` +} + +// CreateKeyPairResponse is the response struct for api CreateKeyPair +type CreateKeyPairResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` + KeyPairFingerPrint string `json:"KeyPairFingerPrint" xml:"KeyPairFingerPrint"` + PrivateKeyBody string `json:"PrivateKeyBody" xml:"PrivateKeyBody"` +} + +// CreateCreateKeyPairRequest creates a request to invoke CreateKeyPair API +func CreateCreateKeyPairRequest() (request *CreateKeyPairRequest) { + request = &CreateKeyPairRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateKeyPair", "ecs", "openAPI") + return +} + +// CreateCreateKeyPairResponse creates a response to parse from CreateKeyPair response +func CreateCreateKeyPairResponse() (response *CreateKeyPairResponse) { + response = &CreateKeyPairResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template.go new file mode 100644 index 0000000..31febb2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template.go @@ -0,0 +1,181 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateLaunchTemplate invokes the ecs.CreateLaunchTemplate API synchronously +// api document: https://help.aliyun.com/api/ecs/createlaunchtemplate.html +func (client *Client) CreateLaunchTemplate(request *CreateLaunchTemplateRequest) (response *CreateLaunchTemplateResponse, err error) { + response = CreateCreateLaunchTemplateResponse() + err = client.DoAction(request, response) + return +} + +// CreateLaunchTemplateWithChan invokes the ecs.CreateLaunchTemplate API asynchronously +// api document: https://help.aliyun.com/api/ecs/createlaunchtemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLaunchTemplateWithChan(request *CreateLaunchTemplateRequest) (<-chan *CreateLaunchTemplateResponse, <-chan error) { + responseChan := make(chan *CreateLaunchTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateLaunchTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateLaunchTemplateWithCallback invokes the ecs.CreateLaunchTemplate API asynchronously +// api document: https://help.aliyun.com/api/ecs/createlaunchtemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLaunchTemplateWithCallback(request *CreateLaunchTemplateRequest, callback func(response *CreateLaunchTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateLaunchTemplateResponse + var err error + defer close(result) + response, err = client.CreateLaunchTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateLaunchTemplateRequest is the request struct for api CreateLaunchTemplate +type CreateLaunchTemplateRequest struct { + *requests.RpcRequest + LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TemplateTag4Key string `position:"Query" name:"TemplateTag.4.Key"` + SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` + NetworkType string `position:"Query" name:"NetworkType"` + KeyPairName string `position:"Query" name:"KeyPairName"` + SpotPriceLimit requests.Float `position:"Query" name:"SpotPriceLimit"` + ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + TemplateTag3Key string `position:"Query" name:"TemplateTag.3.Key"` + HostName string `position:"Query" name:"HostName"` + SystemDiskIops requests.Integer `position:"Query" name:"SystemDisk.Iops"` + TemplateTag3Value string `position:"Query" name:"TemplateTag.3.Value"` + Tag *[]CreateLaunchTemplateTag `position:"Query" name:"Tag" type:"Repeated"` + Period requests.Integer `position:"Query" name:"Period"` + TemplateResourceGroupId string `position:"Query" name:"TemplateResourceGroupId"` + TemplateTag2Value string `position:"Query" name:"TemplateTag.2.Value"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + SpotStrategy string `position:"Query" name:"SpotStrategy"` + InstanceName string `position:"Query" name:"InstanceName"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + TemplateTag5Key string `position:"Query" name:"TemplateTag.5.Key"` + ZoneId string `position:"Query" name:"ZoneId"` + InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` + VersionDescription string `position:"Query" name:"VersionDescription"` + TemplateTag1Value string `position:"Query" name:"TemplateTag.1.Value"` + ImageId string `position:"Query" name:"ImageId"` + IoOptimized string `position:"Query" name:"IoOptimized"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` + Description string `position:"Query" name:"Description"` + SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` + UserData string `position:"Query" name:"UserData"` + TemplateTag5Value string `position:"Query" name:"TemplateTag.5.Value"` + InstanceType string `position:"Query" name:"InstanceType"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + EnableVmOsConfig requests.Boolean `position:"Query" name:"EnableVmOsConfig"` + NetworkInterface *[]CreateLaunchTemplateNetworkInterface `position:"Query" name:"NetworkInterface" type:"Repeated"` + TemplateTag2Key string `position:"Query" name:"TemplateTag.2.Key"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SystemDiskDiskName string `position:"Query" name:"SystemDisk.DiskName"` + RamRoleName string `position:"Query" name:"RamRoleName"` + AutoReleaseTime string `position:"Query" name:"AutoReleaseTime"` + SpotDuration requests.Integer `position:"Query" name:"SpotDuration"` + DataDisk *[]CreateLaunchTemplateDataDisk `position:"Query" name:"DataDisk" type:"Repeated"` + TemplateTag4Value string `position:"Query" name:"TemplateTag.4.Value"` + SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` + VpcId string `position:"Query" name:"VpcId"` + TemplateTag1Key string `position:"Query" name:"TemplateTag.1.Key"` + SystemDiskDescription string `position:"Query" name:"SystemDisk.Description"` +} + +// CreateLaunchTemplateTag is a repeated param struct in CreateLaunchTemplateRequest +type CreateLaunchTemplateTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// CreateLaunchTemplateNetworkInterface is a repeated param struct in CreateLaunchTemplateRequest +type CreateLaunchTemplateNetworkInterface struct { + PrimaryIpAddress string `name:"PrimaryIpAddress"` + VSwitchId string `name:"VSwitchId"` + SecurityGroupId string `name:"SecurityGroupId"` + NetworkInterfaceName string `name:"NetworkInterfaceName"` + Description string `name:"Description"` +} + +// CreateLaunchTemplateDataDisk is a repeated param struct in CreateLaunchTemplateRequest +type CreateLaunchTemplateDataDisk struct { + Size string `name:"Size"` + SnapshotId string `name:"SnapshotId"` + Category string `name:"Category"` + Encrypted string `name:"Encrypted"` + DiskName string `name:"DiskName"` + Description string `name:"Description"` + DeleteWithInstance string `name:"DeleteWithInstance"` +} + +// CreateLaunchTemplateResponse is the response struct for api CreateLaunchTemplate +type CreateLaunchTemplateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` +} + +// CreateCreateLaunchTemplateRequest creates a request to invoke CreateLaunchTemplate API +func CreateCreateLaunchTemplateRequest() (request *CreateLaunchTemplateRequest) { + request = &CreateLaunchTemplateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateLaunchTemplate", "ecs", "openAPI") + return +} + +// CreateCreateLaunchTemplateResponse creates a response to parse from CreateLaunchTemplate response +func CreateCreateLaunchTemplateResponse() (response *CreateLaunchTemplateResponse) { + response = &CreateLaunchTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template_version.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template_version.go new file mode 100644 index 0000000..d36e910 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template_version.go @@ -0,0 +1,171 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateLaunchTemplateVersion invokes the ecs.CreateLaunchTemplateVersion API synchronously +// api document: https://help.aliyun.com/api/ecs/createlaunchtemplateversion.html +func (client *Client) CreateLaunchTemplateVersion(request *CreateLaunchTemplateVersionRequest) (response *CreateLaunchTemplateVersionResponse, err error) { + response = CreateCreateLaunchTemplateVersionResponse() + err = client.DoAction(request, response) + return +} + +// CreateLaunchTemplateVersionWithChan invokes the ecs.CreateLaunchTemplateVersion API asynchronously +// api document: https://help.aliyun.com/api/ecs/createlaunchtemplateversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLaunchTemplateVersionWithChan(request *CreateLaunchTemplateVersionRequest) (<-chan *CreateLaunchTemplateVersionResponse, <-chan error) { + responseChan := make(chan *CreateLaunchTemplateVersionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateLaunchTemplateVersion(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateLaunchTemplateVersionWithCallback invokes the ecs.CreateLaunchTemplateVersion API asynchronously +// api document: https://help.aliyun.com/api/ecs/createlaunchtemplateversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLaunchTemplateVersionWithCallback(request *CreateLaunchTemplateVersionRequest, callback func(response *CreateLaunchTemplateVersionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateLaunchTemplateVersionResponse + var err error + defer close(result) + response, err = client.CreateLaunchTemplateVersion(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateLaunchTemplateVersionRequest is the request struct for api CreateLaunchTemplateVersion +type CreateLaunchTemplateVersionRequest struct { + *requests.RpcRequest + LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` + NetworkType string `position:"Query" name:"NetworkType"` + KeyPairName string `position:"Query" name:"KeyPairName"` + SpotPriceLimit requests.Float `position:"Query" name:"SpotPriceLimit"` + ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + HostName string `position:"Query" name:"HostName"` + SystemDiskIops requests.Integer `position:"Query" name:"SystemDisk.Iops"` + Tag *[]CreateLaunchTemplateVersionTag `position:"Query" name:"Tag" type:"Repeated"` + Period requests.Integer `position:"Query" name:"Period"` + LaunchTemplateId string `position:"Query" name:"LaunchTemplateId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + SpotStrategy string `position:"Query" name:"SpotStrategy"` + InstanceName string `position:"Query" name:"InstanceName"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + ZoneId string `position:"Query" name:"ZoneId"` + InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` + VersionDescription string `position:"Query" name:"VersionDescription"` + ImageId string `position:"Query" name:"ImageId"` + IoOptimized string `position:"Query" name:"IoOptimized"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` + Description string `position:"Query" name:"Description"` + SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` + UserData string `position:"Query" name:"UserData"` + InstanceType string `position:"Query" name:"InstanceType"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + EnableVmOsConfig requests.Boolean `position:"Query" name:"EnableVmOsConfig"` + NetworkInterface *[]CreateLaunchTemplateVersionNetworkInterface `position:"Query" name:"NetworkInterface" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SystemDiskDiskName string `position:"Query" name:"SystemDisk.DiskName"` + RamRoleName string `position:"Query" name:"RamRoleName"` + AutoReleaseTime string `position:"Query" name:"AutoReleaseTime"` + SpotDuration requests.Integer `position:"Query" name:"SpotDuration"` + DataDisk *[]CreateLaunchTemplateVersionDataDisk `position:"Query" name:"DataDisk" type:"Repeated"` + SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` + VpcId string `position:"Query" name:"VpcId"` + SystemDiskDescription string `position:"Query" name:"SystemDisk.Description"` +} + +// CreateLaunchTemplateVersionTag is a repeated param struct in CreateLaunchTemplateVersionRequest +type CreateLaunchTemplateVersionTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// CreateLaunchTemplateVersionNetworkInterface is a repeated param struct in CreateLaunchTemplateVersionRequest +type CreateLaunchTemplateVersionNetworkInterface struct { + PrimaryIpAddress string `name:"PrimaryIpAddress"` + VSwitchId string `name:"VSwitchId"` + SecurityGroupId string `name:"SecurityGroupId"` + NetworkInterfaceName string `name:"NetworkInterfaceName"` + Description string `name:"Description"` +} + +// CreateLaunchTemplateVersionDataDisk is a repeated param struct in CreateLaunchTemplateVersionRequest +type CreateLaunchTemplateVersionDataDisk struct { + Size string `name:"Size"` + SnapshotId string `name:"SnapshotId"` + Category string `name:"Category"` + Encrypted string `name:"Encrypted"` + DiskName string `name:"DiskName"` + Description string `name:"Description"` + DeleteWithInstance string `name:"DeleteWithInstance"` +} + +// CreateLaunchTemplateVersionResponse is the response struct for api CreateLaunchTemplateVersion +type CreateLaunchTemplateVersionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LaunchTemplateVersionNumber int `json:"LaunchTemplateVersionNumber" xml:"LaunchTemplateVersionNumber"` +} + +// CreateCreateLaunchTemplateVersionRequest creates a request to invoke CreateLaunchTemplateVersion API +func CreateCreateLaunchTemplateVersionRequest() (request *CreateLaunchTemplateVersionRequest) { + request = &CreateLaunchTemplateVersionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateLaunchTemplateVersion", "ecs", "openAPI") + return +} + +// CreateCreateLaunchTemplateVersionResponse creates a response to parse from CreateLaunchTemplateVersion response +func CreateCreateLaunchTemplateVersionResponse() (response *CreateLaunchTemplateVersionResponse) { + response = &CreateLaunchTemplateVersionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_nat_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_nat_gateway.go new file mode 100644 index 0000000..ce01b81 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_nat_gateway.go @@ -0,0 +1,121 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateNatGateway invokes the ecs.CreateNatGateway API synchronously +// api document: https://help.aliyun.com/api/ecs/createnatgateway.html +func (client *Client) CreateNatGateway(request *CreateNatGatewayRequest) (response *CreateNatGatewayResponse, err error) { + response = CreateCreateNatGatewayResponse() + err = client.DoAction(request, response) + return +} + +// CreateNatGatewayWithChan invokes the ecs.CreateNatGateway API asynchronously +// api document: https://help.aliyun.com/api/ecs/createnatgateway.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateNatGatewayWithChan(request *CreateNatGatewayRequest) (<-chan *CreateNatGatewayResponse, <-chan error) { + responseChan := make(chan *CreateNatGatewayResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateNatGateway(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateNatGatewayWithCallback invokes the ecs.CreateNatGateway API asynchronously +// api document: https://help.aliyun.com/api/ecs/createnatgateway.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateNatGatewayWithCallback(request *CreateNatGatewayRequest, callback func(response *CreateNatGatewayResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateNatGatewayResponse + var err error + defer close(result) + response, err = client.CreateNatGateway(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateNatGatewayRequest is the request struct for api CreateNatGateway +type CreateNatGatewayRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + VpcId string `position:"Query" name:"VpcId"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + BandwidthPackage *[]CreateNatGatewayBandwidthPackage `position:"Query" name:"BandwidthPackage" type:"Repeated"` +} + +// CreateNatGatewayBandwidthPackage is a repeated param struct in CreateNatGatewayRequest +type CreateNatGatewayBandwidthPackage struct { + IpCount string `name:"IpCount"` + Bandwidth string `name:"Bandwidth"` + Zone string `name:"Zone"` +} + +// CreateNatGatewayResponse is the response struct for api CreateNatGateway +type CreateNatGatewayResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` + ForwardTableIds ForwardTableIdsInCreateNatGateway `json:"ForwardTableIds" xml:"ForwardTableIds"` + BandwidthPackageIds BandwidthPackageIdsInCreateNatGateway `json:"BandwidthPackageIds" xml:"BandwidthPackageIds"` +} + +// CreateCreateNatGatewayRequest creates a request to invoke CreateNatGateway API +func CreateCreateNatGatewayRequest() (request *CreateNatGatewayRequest) { + request = &CreateNatGatewayRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateNatGateway", "ecs", "openAPI") + return +} + +// CreateCreateNatGatewayResponse creates a response to parse from CreateNatGateway response +func CreateCreateNatGatewayResponse() (response *CreateNatGatewayResponse) { + response = &CreateNatGatewayResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface.go new file mode 100644 index 0000000..f13f177 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface.go @@ -0,0 +1,124 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateNetworkInterface invokes the ecs.CreateNetworkInterface API synchronously +// api document: https://help.aliyun.com/api/ecs/createnetworkinterface.html +func (client *Client) CreateNetworkInterface(request *CreateNetworkInterfaceRequest) (response *CreateNetworkInterfaceResponse, err error) { + response = CreateCreateNetworkInterfaceResponse() + err = client.DoAction(request, response) + return +} + +// CreateNetworkInterfaceWithChan invokes the ecs.CreateNetworkInterface API asynchronously +// api document: https://help.aliyun.com/api/ecs/createnetworkinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateNetworkInterfaceWithChan(request *CreateNetworkInterfaceRequest) (<-chan *CreateNetworkInterfaceResponse, <-chan error) { + responseChan := make(chan *CreateNetworkInterfaceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateNetworkInterface(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateNetworkInterfaceWithCallback invokes the ecs.CreateNetworkInterface API asynchronously +// api document: https://help.aliyun.com/api/ecs/createnetworkinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateNetworkInterfaceWithCallback(request *CreateNetworkInterfaceRequest, callback func(response *CreateNetworkInterfaceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateNetworkInterfaceResponse + var err error + defer close(result) + response, err = client.CreateNetworkInterface(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateNetworkInterfaceRequest is the request struct for api CreateNetworkInterface +type CreateNetworkInterfaceRequest struct { + *requests.RpcRequest + Tag4Value string `position:"Query" name:"Tag.4.Value"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Tag2Key string `position:"Query" name:"Tag.2.Key"` + ClientToken string `position:"Query" name:"ClientToken"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Description string `position:"Query" name:"Description"` + Tag3Key string `position:"Query" name:"Tag.3.Key"` + Tag1Value string `position:"Query" name:"Tag.1.Value"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Tag3Value string `position:"Query" name:"Tag.3.Value"` + NetworkInterfaceName string `position:"Query" name:"NetworkInterfaceName"` + Tag5Key string `position:"Query" name:"Tag.5.Key"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tag5Value string `position:"Query" name:"Tag.5.Value"` + Tag1Key string `position:"Query" name:"Tag.1.Key"` + VSwitchId string `position:"Query" name:"VSwitchId"` + Tag2Value string `position:"Query" name:"Tag.2.Value"` + Tag4Key string `position:"Query" name:"Tag.4.Key"` + PrimaryIpAddress string `position:"Query" name:"PrimaryIpAddress"` +} + +// CreateNetworkInterfaceResponse is the response struct for api CreateNetworkInterface +type CreateNetworkInterfaceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` +} + +// CreateCreateNetworkInterfaceRequest creates a request to invoke CreateNetworkInterface API +func CreateCreateNetworkInterfaceRequest() (request *CreateNetworkInterfaceRequest) { + request = &CreateNetworkInterfaceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateNetworkInterface", "ecs", "openAPI") + return +} + +// CreateCreateNetworkInterfaceResponse creates a response to parse from CreateNetworkInterface response +func CreateCreateNetworkInterfaceResponse() (response *CreateNetworkInterfaceResponse) { + response = &CreateNetworkInterfaceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface_permission.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface_permission.go new file mode 100644 index 0000000..27e1e84 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface_permission.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateNetworkInterfacePermission invokes the ecs.CreateNetworkInterfacePermission API synchronously +// api document: https://help.aliyun.com/api/ecs/createnetworkinterfacepermission.html +func (client *Client) CreateNetworkInterfacePermission(request *CreateNetworkInterfacePermissionRequest) (response *CreateNetworkInterfacePermissionResponse, err error) { + response = CreateCreateNetworkInterfacePermissionResponse() + err = client.DoAction(request, response) + return +} + +// CreateNetworkInterfacePermissionWithChan invokes the ecs.CreateNetworkInterfacePermission API asynchronously +// api document: https://help.aliyun.com/api/ecs/createnetworkinterfacepermission.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateNetworkInterfacePermissionWithChan(request *CreateNetworkInterfacePermissionRequest) (<-chan *CreateNetworkInterfacePermissionResponse, <-chan error) { + responseChan := make(chan *CreateNetworkInterfacePermissionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateNetworkInterfacePermission(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateNetworkInterfacePermissionWithCallback invokes the ecs.CreateNetworkInterfacePermission API asynchronously +// api document: https://help.aliyun.com/api/ecs/createnetworkinterfacepermission.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateNetworkInterfacePermissionWithCallback(request *CreateNetworkInterfacePermissionRequest, callback func(response *CreateNetworkInterfacePermissionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateNetworkInterfacePermissionResponse + var err error + defer close(result) + response, err = client.CreateNetworkInterfacePermission(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateNetworkInterfacePermissionRequest is the request struct for api CreateNetworkInterfacePermission +type CreateNetworkInterfacePermissionRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AccountId requests.Integer `position:"Query" name:"AccountId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Permission string `position:"Query" name:"Permission"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` +} + +// CreateNetworkInterfacePermissionResponse is the response struct for api CreateNetworkInterfacePermission +type CreateNetworkInterfacePermissionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NetworkInterfacePermission NetworkInterfacePermission `json:"NetworkInterfacePermission" xml:"NetworkInterfacePermission"` +} + +// CreateCreateNetworkInterfacePermissionRequest creates a request to invoke CreateNetworkInterfacePermission API +func CreateCreateNetworkInterfacePermissionRequest() (request *CreateNetworkInterfacePermissionRequest) { + request = &CreateNetworkInterfacePermissionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateNetworkInterfacePermission", "ecs", "openAPI") + return +} + +// CreateCreateNetworkInterfacePermissionResponse creates a response to parse from CreateNetworkInterfacePermission response +func CreateCreateNetworkInterfacePermissionResponse() (response *CreateNetworkInterfacePermissionResponse) { + response = &CreateNetworkInterfacePermissionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_physical_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_physical_connection.go new file mode 100644 index 0000000..e160ca2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_physical_connection.go @@ -0,0 +1,119 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreatePhysicalConnection invokes the ecs.CreatePhysicalConnection API synchronously +// api document: https://help.aliyun.com/api/ecs/createphysicalconnection.html +func (client *Client) CreatePhysicalConnection(request *CreatePhysicalConnectionRequest) (response *CreatePhysicalConnectionResponse, err error) { + response = CreateCreatePhysicalConnectionResponse() + err = client.DoAction(request, response) + return +} + +// CreatePhysicalConnectionWithChan invokes the ecs.CreatePhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/ecs/createphysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreatePhysicalConnectionWithChan(request *CreatePhysicalConnectionRequest) (<-chan *CreatePhysicalConnectionResponse, <-chan error) { + responseChan := make(chan *CreatePhysicalConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreatePhysicalConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreatePhysicalConnectionWithCallback invokes the ecs.CreatePhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/ecs/createphysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreatePhysicalConnectionWithCallback(request *CreatePhysicalConnectionRequest, callback func(response *CreatePhysicalConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreatePhysicalConnectionResponse + var err error + defer close(result) + response, err = client.CreatePhysicalConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreatePhysicalConnectionRequest is the request struct for api CreatePhysicalConnection +type CreatePhysicalConnectionRequest struct { + *requests.RpcRequest + AccessPointId string `position:"Query" name:"AccessPointId"` + RedundantPhysicalConnectionId string `position:"Query" name:"RedundantPhysicalConnectionId"` + PeerLocation string `position:"Query" name:"PeerLocation"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PortType string `position:"Query" name:"PortType"` + CircuitCode string `position:"Query" name:"CircuitCode"` + Bandwidth requests.Integer `position:"Query" name:"bandwidth"` + ClientToken string `position:"Query" name:"ClientToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Description string `position:"Query" name:"Description"` + Type string `position:"Query" name:"Type"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + LineOperator string `position:"Query" name:"LineOperator"` + Name string `position:"Query" name:"Name"` + UserCidr string `position:"Query" name:"UserCidr"` +} + +// CreatePhysicalConnectionResponse is the response struct for api CreatePhysicalConnection +type CreatePhysicalConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` +} + +// CreateCreatePhysicalConnectionRequest creates a request to invoke CreatePhysicalConnection API +func CreateCreatePhysicalConnectionRequest() (request *CreatePhysicalConnectionRequest) { + request = &CreatePhysicalConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreatePhysicalConnection", "ecs", "openAPI") + return +} + +// CreateCreatePhysicalConnectionResponse creates a response to parse from CreatePhysicalConnection response +func CreateCreatePhysicalConnectionResponse() (response *CreatePhysicalConnectionResponse) { + response = &CreatePhysicalConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_route_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_route_entry.go new file mode 100644 index 0000000..d0e1046 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_route_entry.go @@ -0,0 +1,118 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateRouteEntry invokes the ecs.CreateRouteEntry API synchronously +// api document: https://help.aliyun.com/api/ecs/createrouteentry.html +func (client *Client) CreateRouteEntry(request *CreateRouteEntryRequest) (response *CreateRouteEntryResponse, err error) { + response = CreateCreateRouteEntryResponse() + err = client.DoAction(request, response) + return +} + +// CreateRouteEntryWithChan invokes the ecs.CreateRouteEntry API asynchronously +// api document: https://help.aliyun.com/api/ecs/createrouteentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateRouteEntryWithChan(request *CreateRouteEntryRequest) (<-chan *CreateRouteEntryResponse, <-chan error) { + responseChan := make(chan *CreateRouteEntryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateRouteEntry(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateRouteEntryWithCallback invokes the ecs.CreateRouteEntry API asynchronously +// api document: https://help.aliyun.com/api/ecs/createrouteentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateRouteEntryWithCallback(request *CreateRouteEntryRequest, callback func(response *CreateRouteEntryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateRouteEntryResponse + var err error + defer close(result) + response, err = client.CreateRouteEntry(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateRouteEntryRequest is the request struct for api CreateRouteEntry +type CreateRouteEntryRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + DestinationCidrBlock string `position:"Query" name:"DestinationCidrBlock"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + NextHopId string `position:"Query" name:"NextHopId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + NextHopType string `position:"Query" name:"NextHopType"` + NextHopList *[]CreateRouteEntryNextHopList `position:"Query" name:"NextHopList" type:"Repeated"` + RouteTableId string `position:"Query" name:"RouteTableId"` +} + +// CreateRouteEntryNextHopList is a repeated param struct in CreateRouteEntryRequest +type CreateRouteEntryNextHopList struct { + NextHopType string `name:"NextHopType"` + NextHopId string `name:"NextHopId"` +} + +// CreateRouteEntryResponse is the response struct for api CreateRouteEntry +type CreateRouteEntryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateRouteEntryRequest creates a request to invoke CreateRouteEntry API +func CreateCreateRouteEntryRequest() (request *CreateRouteEntryRequest) { + request = &CreateRouteEntryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateRouteEntry", "ecs", "openAPI") + return +} + +// CreateCreateRouteEntryResponse creates a response to parse from CreateRouteEntry response +func CreateCreateRouteEntryResponse() (response *CreateRouteEntryResponse) { + response = &CreateRouteEntryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_router_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_router_interface.go new file mode 100644 index 0000000..5aef7f4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_router_interface.go @@ -0,0 +1,129 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateRouterInterface invokes the ecs.CreateRouterInterface API synchronously +// api document: https://help.aliyun.com/api/ecs/createrouterinterface.html +func (client *Client) CreateRouterInterface(request *CreateRouterInterfaceRequest) (response *CreateRouterInterfaceResponse, err error) { + response = CreateCreateRouterInterfaceResponse() + err = client.DoAction(request, response) + return +} + +// CreateRouterInterfaceWithChan invokes the ecs.CreateRouterInterface API asynchronously +// api document: https://help.aliyun.com/api/ecs/createrouterinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateRouterInterfaceWithChan(request *CreateRouterInterfaceRequest) (<-chan *CreateRouterInterfaceResponse, <-chan error) { + responseChan := make(chan *CreateRouterInterfaceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateRouterInterface(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateRouterInterfaceWithCallback invokes the ecs.CreateRouterInterface API asynchronously +// api document: https://help.aliyun.com/api/ecs/createrouterinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateRouterInterfaceWithCallback(request *CreateRouterInterfaceRequest, callback func(response *CreateRouterInterfaceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateRouterInterfaceResponse + var err error + defer close(result) + response, err = client.CreateRouterInterface(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateRouterInterfaceRequest is the request struct for api CreateRouterInterface +type CreateRouterInterfaceRequest struct { + *requests.RpcRequest + AccessPointId string `position:"Query" name:"AccessPointId"` + OppositeRouterId string `position:"Query" name:"OppositeRouterId"` + OppositeAccessPointId string `position:"Query" name:"OppositeAccessPointId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Role string `position:"Query" name:"Role"` + ClientToken string `position:"Query" name:"ClientToken"` + HealthCheckTargetIp string `position:"Query" name:"HealthCheckTargetIp"` + Description string `position:"Query" name:"Description"` + Spec string `position:"Query" name:"Spec"` + UserCidr string `position:"Query" name:"UserCidr"` + OppositeInterfaceId string `position:"Query" name:"OppositeInterfaceId"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + Period requests.Integer `position:"Query" name:"Period"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OppositeRegionId string `position:"Query" name:"OppositeRegionId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + OppositeInterfaceOwnerId string `position:"Query" name:"OppositeInterfaceOwnerId"` + RouterType string `position:"Query" name:"RouterType"` + HealthCheckSourceIp string `position:"Query" name:"HealthCheckSourceIp"` + RouterId string `position:"Query" name:"RouterId"` + OppositeRouterType string `position:"Query" name:"OppositeRouterType"` + Name string `position:"Query" name:"Name"` + PricingCycle string `position:"Query" name:"PricingCycle"` +} + +// CreateRouterInterfaceResponse is the response struct for api CreateRouterInterface +type CreateRouterInterfaceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RouterInterfaceId string `json:"RouterInterfaceId" xml:"RouterInterfaceId"` + OrderId int `json:"OrderId" xml:"OrderId"` +} + +// CreateCreateRouterInterfaceRequest creates a request to invoke CreateRouterInterface API +func CreateCreateRouterInterfaceRequest() (request *CreateRouterInterfaceRequest) { + request = &CreateRouterInterfaceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateRouterInterface", "ecs", "openAPI") + return +} + +// CreateCreateRouterInterfaceResponse creates a response to parse from CreateRouterInterface response +func CreateCreateRouterInterfaceResponse() (response *CreateRouterInterfaceResponse) { + response = &CreateRouterInterfaceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_security_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_security_group.go new file mode 100644 index 0000000..e6994fb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_security_group.go @@ -0,0 +1,122 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateSecurityGroup invokes the ecs.CreateSecurityGroup API synchronously +// api document: https://help.aliyun.com/api/ecs/createsecuritygroup.html +func (client *Client) CreateSecurityGroup(request *CreateSecurityGroupRequest) (response *CreateSecurityGroupResponse, err error) { + response = CreateCreateSecurityGroupResponse() + err = client.DoAction(request, response) + return +} + +// CreateSecurityGroupWithChan invokes the ecs.CreateSecurityGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/createsecuritygroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSecurityGroupWithChan(request *CreateSecurityGroupRequest) (<-chan *CreateSecurityGroupResponse, <-chan error) { + responseChan := make(chan *CreateSecurityGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateSecurityGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateSecurityGroupWithCallback invokes the ecs.CreateSecurityGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/createsecuritygroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSecurityGroupWithCallback(request *CreateSecurityGroupRequest, callback func(response *CreateSecurityGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateSecurityGroupResponse + var err error + defer close(result) + response, err = client.CreateSecurityGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateSecurityGroupRequest is the request struct for api CreateSecurityGroup +type CreateSecurityGroupRequest struct { + *requests.RpcRequest + Tag4Value string `position:"Query" name:"Tag.4.Value"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Tag2Key string `position:"Query" name:"Tag.2.Key"` + Tag5Key string `position:"Query" name:"Tag.5.Key"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Description string `position:"Query" name:"Description"` + Tag3Key string `position:"Query" name:"Tag.3.Key"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityGroupName string `position:"Query" name:"SecurityGroupName"` + Tag5Value string `position:"Query" name:"Tag.5.Value"` + Tag1Key string `position:"Query" name:"Tag.1.Key"` + Tag1Value string `position:"Query" name:"Tag.1.Value"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + VpcId string `position:"Query" name:"VpcId"` + Tag2Value string `position:"Query" name:"Tag.2.Value"` + Tag4Key string `position:"Query" name:"Tag.4.Key"` + Tag3Value string `position:"Query" name:"Tag.3.Value"` +} + +// CreateSecurityGroupResponse is the response struct for api CreateSecurityGroup +type CreateSecurityGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` +} + +// CreateCreateSecurityGroupRequest creates a request to invoke CreateSecurityGroup API +func CreateCreateSecurityGroupRequest() (request *CreateSecurityGroupRequest) { + request = &CreateSecurityGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateSecurityGroup", "ecs", "openAPI") + return +} + +// CreateCreateSecurityGroupResponse creates a response to parse from CreateSecurityGroup response +func CreateCreateSecurityGroupResponse() (response *CreateSecurityGroupResponse) { + response = &CreateSecurityGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_snapshot.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_snapshot.go new file mode 100644 index 0000000..49203c8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_snapshot.go @@ -0,0 +1,121 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateSnapshot invokes the ecs.CreateSnapshot API synchronously +// api document: https://help.aliyun.com/api/ecs/createsnapshot.html +func (client *Client) CreateSnapshot(request *CreateSnapshotRequest) (response *CreateSnapshotResponse, err error) { + response = CreateCreateSnapshotResponse() + err = client.DoAction(request, response) + return +} + +// CreateSnapshotWithChan invokes the ecs.CreateSnapshot API asynchronously +// api document: https://help.aliyun.com/api/ecs/createsnapshot.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSnapshotWithChan(request *CreateSnapshotRequest) (<-chan *CreateSnapshotResponse, <-chan error) { + responseChan := make(chan *CreateSnapshotResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateSnapshot(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateSnapshotWithCallback invokes the ecs.CreateSnapshot API asynchronously +// api document: https://help.aliyun.com/api/ecs/createsnapshot.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSnapshotWithCallback(request *CreateSnapshotRequest, callback func(response *CreateSnapshotResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateSnapshotResponse + var err error + defer close(result) + response, err = client.CreateSnapshot(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateSnapshotRequest is the request struct for api CreateSnapshot +type CreateSnapshotRequest struct { + *requests.RpcRequest + Tag4Value string `position:"Query" name:"Tag.4.Value"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Tag2Key string `position:"Query" name:"Tag.2.Key"` + Tag5Key string `position:"Query" name:"Tag.5.Key"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Description string `position:"Query" name:"Description"` + SnapshotName string `position:"Query" name:"SnapshotName"` + Tag3Key string `position:"Query" name:"Tag.3.Key"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tag5Value string `position:"Query" name:"Tag.5.Value"` + Tag1Key string `position:"Query" name:"Tag.1.Key"` + Tag1Value string `position:"Query" name:"Tag.1.Value"` + Tag2Value string `position:"Query" name:"Tag.2.Value"` + Tag4Key string `position:"Query" name:"Tag.4.Key"` + DiskId string `position:"Query" name:"DiskId"` + Tag3Value string `position:"Query" name:"Tag.3.Value"` +} + +// CreateSnapshotResponse is the response struct for api CreateSnapshot +type CreateSnapshotResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` +} + +// CreateCreateSnapshotRequest creates a request to invoke CreateSnapshot API +func CreateCreateSnapshotRequest() (request *CreateSnapshotRequest) { + request = &CreateSnapshotRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateSnapshot", "ecs", "openAPI") + return +} + +// CreateCreateSnapshotResponse creates a response to parse from CreateSnapshot response +func CreateCreateSnapshotResponse() (response *CreateSnapshotResponse) { + response = &CreateSnapshotResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_v_switch.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_v_switch.go new file mode 100644 index 0000000..718c1a5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_v_switch.go @@ -0,0 +1,113 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateVSwitch invokes the ecs.CreateVSwitch API synchronously +// api document: https://help.aliyun.com/api/ecs/createvswitch.html +func (client *Client) CreateVSwitch(request *CreateVSwitchRequest) (response *CreateVSwitchResponse, err error) { + response = CreateCreateVSwitchResponse() + err = client.DoAction(request, response) + return +} + +// CreateVSwitchWithChan invokes the ecs.CreateVSwitch API asynchronously +// api document: https://help.aliyun.com/api/ecs/createvswitch.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVSwitchWithChan(request *CreateVSwitchRequest) (<-chan *CreateVSwitchResponse, <-chan error) { + responseChan := make(chan *CreateVSwitchResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateVSwitch(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateVSwitchWithCallback invokes the ecs.CreateVSwitch API asynchronously +// api document: https://help.aliyun.com/api/ecs/createvswitch.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVSwitchWithCallback(request *CreateVSwitchRequest, callback func(response *CreateVSwitchResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateVSwitchResponse + var err error + defer close(result) + response, err = client.CreateVSwitch(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateVSwitchRequest is the request struct for api CreateVSwitch +type CreateVSwitchRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + VpcId string `position:"Query" name:"VpcId"` + VSwitchName string `position:"Query" name:"VSwitchName"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + CidrBlock string `position:"Query" name:"CidrBlock"` + ZoneId string `position:"Query" name:"ZoneId"` + Description string `position:"Query" name:"Description"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// CreateVSwitchResponse is the response struct for api CreateVSwitch +type CreateVSwitchResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` +} + +// CreateCreateVSwitchRequest creates a request to invoke CreateVSwitch API +func CreateCreateVSwitchRequest() (request *CreateVSwitchRequest) { + request = &CreateVSwitchRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateVSwitch", "ecs", "openAPI") + return +} + +// CreateCreateVSwitchResponse creates a response to parse from CreateVSwitch response +func CreateCreateVSwitchResponse() (response *CreateVSwitchResponse) { + response = &CreateVSwitchResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_virtual_border_router.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_virtual_border_router.go new file mode 100644 index 0000000..887da2b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_virtual_border_router.go @@ -0,0 +1,118 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateVirtualBorderRouter invokes the ecs.CreateVirtualBorderRouter API synchronously +// api document: https://help.aliyun.com/api/ecs/createvirtualborderrouter.html +func (client *Client) CreateVirtualBorderRouter(request *CreateVirtualBorderRouterRequest) (response *CreateVirtualBorderRouterResponse, err error) { + response = CreateCreateVirtualBorderRouterResponse() + err = client.DoAction(request, response) + return +} + +// CreateVirtualBorderRouterWithChan invokes the ecs.CreateVirtualBorderRouter API asynchronously +// api document: https://help.aliyun.com/api/ecs/createvirtualborderrouter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVirtualBorderRouterWithChan(request *CreateVirtualBorderRouterRequest) (<-chan *CreateVirtualBorderRouterResponse, <-chan error) { + responseChan := make(chan *CreateVirtualBorderRouterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateVirtualBorderRouter(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateVirtualBorderRouterWithCallback invokes the ecs.CreateVirtualBorderRouter API asynchronously +// api document: https://help.aliyun.com/api/ecs/createvirtualborderrouter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVirtualBorderRouterWithCallback(request *CreateVirtualBorderRouterRequest, callback func(response *CreateVirtualBorderRouterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateVirtualBorderRouterResponse + var err error + defer close(result) + response, err = client.CreateVirtualBorderRouter(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateVirtualBorderRouterRequest is the request struct for api CreateVirtualBorderRouter +type CreateVirtualBorderRouterRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CircuitCode string `position:"Query" name:"CircuitCode"` + VlanId requests.Integer `position:"Query" name:"VlanId"` + ClientToken string `position:"Query" name:"ClientToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Description string `position:"Query" name:"Description"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PeerGatewayIp string `position:"Query" name:"PeerGatewayIp"` + PeeringSubnetMask string `position:"Query" name:"PeeringSubnetMask"` + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` + Name string `position:"Query" name:"Name"` + LocalGatewayIp string `position:"Query" name:"LocalGatewayIp"` + UserCidr string `position:"Query" name:"UserCidr"` + VbrOwnerId requests.Integer `position:"Query" name:"VbrOwnerId"` +} + +// CreateVirtualBorderRouterResponse is the response struct for api CreateVirtualBorderRouter +type CreateVirtualBorderRouterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VbrId string `json:"VbrId" xml:"VbrId"` +} + +// CreateCreateVirtualBorderRouterRequest creates a request to invoke CreateVirtualBorderRouter API +func CreateCreateVirtualBorderRouterRequest() (request *CreateVirtualBorderRouterRequest) { + request = &CreateVirtualBorderRouterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateVirtualBorderRouter", "ecs", "openAPI") + return +} + +// CreateCreateVirtualBorderRouterResponse creates a response to parse from CreateVirtualBorderRouter response +func CreateCreateVirtualBorderRouterResponse() (response *CreateVirtualBorderRouterResponse) { + response = &CreateVirtualBorderRouterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_vpc.go new file mode 100644 index 0000000..25eefd7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_vpc.go @@ -0,0 +1,114 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateVpc invokes the ecs.CreateVpc API synchronously +// api document: https://help.aliyun.com/api/ecs/createvpc.html +func (client *Client) CreateVpc(request *CreateVpcRequest) (response *CreateVpcResponse, err error) { + response = CreateCreateVpcResponse() + err = client.DoAction(request, response) + return +} + +// CreateVpcWithChan invokes the ecs.CreateVpc API asynchronously +// api document: https://help.aliyun.com/api/ecs/createvpc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVpcWithChan(request *CreateVpcRequest) (<-chan *CreateVpcResponse, <-chan error) { + responseChan := make(chan *CreateVpcResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateVpc(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateVpcWithCallback invokes the ecs.CreateVpc API asynchronously +// api document: https://help.aliyun.com/api/ecs/createvpc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVpcWithCallback(request *CreateVpcRequest, callback func(response *CreateVpcResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateVpcResponse + var err error + defer close(result) + response, err = client.CreateVpc(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateVpcRequest is the request struct for api CreateVpc +type CreateVpcRequest struct { + *requests.RpcRequest + VpcName string `position:"Query" name:"VpcName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + CidrBlock string `position:"Query" name:"CidrBlock"` + Description string `position:"Query" name:"Description"` + UserCidr string `position:"Query" name:"UserCidr"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// CreateVpcResponse is the response struct for api CreateVpc +type CreateVpcResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VpcId string `json:"VpcId" xml:"VpcId"` + VRouterId string `json:"VRouterId" xml:"VRouterId"` + RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` +} + +// CreateCreateVpcRequest creates a request to invoke CreateVpc API +func CreateCreateVpcRequest() (request *CreateVpcRequest) { + request = &CreateVpcRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateVpc", "ecs", "openAPI") + return +} + +// CreateCreateVpcResponse creates a response to parse from CreateVpc response +func CreateCreateVpcResponse() (response *CreateVpcResponse) { + response = &CreateVpcResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/deactivate_router_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/deactivate_router_interface.go new file mode 100644 index 0000000..4652f3a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/deactivate_router_interface.go @@ -0,0 +1,106 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeactivateRouterInterface invokes the ecs.DeactivateRouterInterface API synchronously +// api document: https://help.aliyun.com/api/ecs/deactivaterouterinterface.html +func (client *Client) DeactivateRouterInterface(request *DeactivateRouterInterfaceRequest) (response *DeactivateRouterInterfaceResponse, err error) { + response = CreateDeactivateRouterInterfaceResponse() + err = client.DoAction(request, response) + return +} + +// DeactivateRouterInterfaceWithChan invokes the ecs.DeactivateRouterInterface API asynchronously +// api document: https://help.aliyun.com/api/ecs/deactivaterouterinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeactivateRouterInterfaceWithChan(request *DeactivateRouterInterfaceRequest) (<-chan *DeactivateRouterInterfaceResponse, <-chan error) { + responseChan := make(chan *DeactivateRouterInterfaceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeactivateRouterInterface(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeactivateRouterInterfaceWithCallback invokes the ecs.DeactivateRouterInterface API asynchronously +// api document: https://help.aliyun.com/api/ecs/deactivaterouterinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeactivateRouterInterfaceWithCallback(request *DeactivateRouterInterfaceRequest, callback func(response *DeactivateRouterInterfaceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeactivateRouterInterfaceResponse + var err error + defer close(result) + response, err = client.DeactivateRouterInterface(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeactivateRouterInterfaceRequest is the request struct for api DeactivateRouterInterface +type DeactivateRouterInterfaceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + RouterInterfaceId string `position:"Query" name:"RouterInterfaceId"` +} + +// DeactivateRouterInterfaceResponse is the response struct for api DeactivateRouterInterface +type DeactivateRouterInterfaceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeactivateRouterInterfaceRequest creates a request to invoke DeactivateRouterInterface API +func CreateDeactivateRouterInterfaceRequest() (request *DeactivateRouterInterfaceRequest) { + request = &DeactivateRouterInterfaceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeactivateRouterInterface", "ecs", "openAPI") + return +} + +// CreateDeactivateRouterInterfaceResponse creates a response to parse from DeactivateRouterInterface response +func CreateDeactivateRouterInterfaceResponse() (response *DeactivateRouterInterfaceResponse) { + response = &DeactivateRouterInterfaceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_auto_snapshot_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_auto_snapshot_policy.go new file mode 100644 index 0000000..17ced5d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_auto_snapshot_policy.go @@ -0,0 +1,106 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteAutoSnapshotPolicy invokes the ecs.DeleteAutoSnapshotPolicy API synchronously +// api document: https://help.aliyun.com/api/ecs/deleteautosnapshotpolicy.html +func (client *Client) DeleteAutoSnapshotPolicy(request *DeleteAutoSnapshotPolicyRequest) (response *DeleteAutoSnapshotPolicyResponse, err error) { + response = CreateDeleteAutoSnapshotPolicyResponse() + err = client.DoAction(request, response) + return +} + +// DeleteAutoSnapshotPolicyWithChan invokes the ecs.DeleteAutoSnapshotPolicy API asynchronously +// api document: https://help.aliyun.com/api/ecs/deleteautosnapshotpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAutoSnapshotPolicyWithChan(request *DeleteAutoSnapshotPolicyRequest) (<-chan *DeleteAutoSnapshotPolicyResponse, <-chan error) { + responseChan := make(chan *DeleteAutoSnapshotPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteAutoSnapshotPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteAutoSnapshotPolicyWithCallback invokes the ecs.DeleteAutoSnapshotPolicy API asynchronously +// api document: https://help.aliyun.com/api/ecs/deleteautosnapshotpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAutoSnapshotPolicyWithCallback(request *DeleteAutoSnapshotPolicyRequest, callback func(response *DeleteAutoSnapshotPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteAutoSnapshotPolicyResponse + var err error + defer close(result) + response, err = client.DeleteAutoSnapshotPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteAutoSnapshotPolicyRequest is the request struct for api DeleteAutoSnapshotPolicy +type DeleteAutoSnapshotPolicyRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + AutoSnapshotPolicyId string `position:"Query" name:"autoSnapshotPolicyId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteAutoSnapshotPolicyResponse is the response struct for api DeleteAutoSnapshotPolicy +type DeleteAutoSnapshotPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteAutoSnapshotPolicyRequest creates a request to invoke DeleteAutoSnapshotPolicy API +func CreateDeleteAutoSnapshotPolicyRequest() (request *DeleteAutoSnapshotPolicyRequest) { + request = &DeleteAutoSnapshotPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteAutoSnapshotPolicy", "ecs", "openAPI") + return +} + +// CreateDeleteAutoSnapshotPolicyResponse creates a response to parse from DeleteAutoSnapshotPolicy response +func CreateDeleteAutoSnapshotPolicyResponse() (response *DeleteAutoSnapshotPolicyResponse) { + response = &DeleteAutoSnapshotPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_bandwidth_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_bandwidth_package.go new file mode 100644 index 0000000..1e91f61 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_bandwidth_package.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteBandwidthPackage invokes the ecs.DeleteBandwidthPackage API synchronously +// api document: https://help.aliyun.com/api/ecs/deletebandwidthpackage.html +func (client *Client) DeleteBandwidthPackage(request *DeleteBandwidthPackageRequest) (response *DeleteBandwidthPackageResponse, err error) { + response = CreateDeleteBandwidthPackageResponse() + err = client.DoAction(request, response) + return +} + +// DeleteBandwidthPackageWithChan invokes the ecs.DeleteBandwidthPackage API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletebandwidthpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteBandwidthPackageWithChan(request *DeleteBandwidthPackageRequest) (<-chan *DeleteBandwidthPackageResponse, <-chan error) { + responseChan := make(chan *DeleteBandwidthPackageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteBandwidthPackage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteBandwidthPackageWithCallback invokes the ecs.DeleteBandwidthPackage API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletebandwidthpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteBandwidthPackageWithCallback(request *DeleteBandwidthPackageRequest, callback func(response *DeleteBandwidthPackageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteBandwidthPackageResponse + var err error + defer close(result) + response, err = client.DeleteBandwidthPackage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteBandwidthPackageRequest is the request struct for api DeleteBandwidthPackage +type DeleteBandwidthPackageRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteBandwidthPackageResponse is the response struct for api DeleteBandwidthPackage +type DeleteBandwidthPackageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteBandwidthPackageRequest creates a request to invoke DeleteBandwidthPackage API +func CreateDeleteBandwidthPackageRequest() (request *DeleteBandwidthPackageRequest) { + request = &DeleteBandwidthPackageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteBandwidthPackage", "ecs", "openAPI") + return +} + +// CreateDeleteBandwidthPackageResponse creates a response to parse from DeleteBandwidthPackage response +func CreateDeleteBandwidthPackageResponse() (response *DeleteBandwidthPackageResponse) { + response = &DeleteBandwidthPackageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_command.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_command.go new file mode 100644 index 0000000..4bdf6e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_command.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCommand invokes the ecs.DeleteCommand API synchronously +// api document: https://help.aliyun.com/api/ecs/deletecommand.html +func (client *Client) DeleteCommand(request *DeleteCommandRequest) (response *DeleteCommandResponse, err error) { + response = CreateDeleteCommandResponse() + err = client.DoAction(request, response) + return +} + +// DeleteCommandWithChan invokes the ecs.DeleteCommand API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletecommand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCommandWithChan(request *DeleteCommandRequest) (<-chan *DeleteCommandResponse, <-chan error) { + responseChan := make(chan *DeleteCommandResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCommand(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteCommandWithCallback invokes the ecs.DeleteCommand API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletecommand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCommandWithCallback(request *DeleteCommandRequest, callback func(response *DeleteCommandResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteCommandResponse + var err error + defer close(result) + response, err = client.DeleteCommand(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteCommandRequest is the request struct for api DeleteCommand +type DeleteCommandRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CommandId string `position:"Query" name:"CommandId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteCommandResponse is the response struct for api DeleteCommand +type DeleteCommandResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteCommandRequest creates a request to invoke DeleteCommand API +func CreateDeleteCommandRequest() (request *DeleteCommandRequest) { + request = &DeleteCommandRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteCommand", "ecs", "openAPI") + return +} + +// CreateDeleteCommandResponse creates a response to parse from DeleteCommand response +func CreateDeleteCommandResponse() (response *DeleteCommandResponse) { + response = &DeleteCommandResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_deployment_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_deployment_set.go new file mode 100644 index 0000000..7cdfab3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_deployment_set.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteDeploymentSet invokes the ecs.DeleteDeploymentSet API synchronously +// api document: https://help.aliyun.com/api/ecs/deletedeploymentset.html +func (client *Client) DeleteDeploymentSet(request *DeleteDeploymentSetRequest) (response *DeleteDeploymentSetResponse, err error) { + response = CreateDeleteDeploymentSetResponse() + err = client.DoAction(request, response) + return +} + +// DeleteDeploymentSetWithChan invokes the ecs.DeleteDeploymentSet API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletedeploymentset.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteDeploymentSetWithChan(request *DeleteDeploymentSetRequest) (<-chan *DeleteDeploymentSetResponse, <-chan error) { + responseChan := make(chan *DeleteDeploymentSetResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteDeploymentSet(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteDeploymentSetWithCallback invokes the ecs.DeleteDeploymentSet API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletedeploymentset.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteDeploymentSetWithCallback(request *DeleteDeploymentSetRequest, callback func(response *DeleteDeploymentSetResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteDeploymentSetResponse + var err error + defer close(result) + response, err = client.DeleteDeploymentSet(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteDeploymentSetRequest is the request struct for api DeleteDeploymentSet +type DeleteDeploymentSetRequest struct { + *requests.RpcRequest + DeploymentSetId string `position:"Query" name:"DeploymentSetId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteDeploymentSetResponse is the response struct for api DeleteDeploymentSet +type DeleteDeploymentSetResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteDeploymentSetRequest creates a request to invoke DeleteDeploymentSet API +func CreateDeleteDeploymentSetRequest() (request *DeleteDeploymentSetRequest) { + request = &DeleteDeploymentSetRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteDeploymentSet", "ecs", "openAPI") + return +} + +// CreateDeleteDeploymentSetResponse creates a response to parse from DeleteDeploymentSet response +func CreateDeleteDeploymentSetResponse() (response *DeleteDeploymentSetResponse) { + response = &DeleteDeploymentSetResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_disk.go new file mode 100644 index 0000000..06e62e8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_disk.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteDisk invokes the ecs.DeleteDisk API synchronously +// api document: https://help.aliyun.com/api/ecs/deletedisk.html +func (client *Client) DeleteDisk(request *DeleteDiskRequest) (response *DeleteDiskResponse, err error) { + response = CreateDeleteDiskResponse() + err = client.DoAction(request, response) + return +} + +// DeleteDiskWithChan invokes the ecs.DeleteDisk API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletedisk.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteDiskWithChan(request *DeleteDiskRequest) (<-chan *DeleteDiskResponse, <-chan error) { + responseChan := make(chan *DeleteDiskResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteDisk(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteDiskWithCallback invokes the ecs.DeleteDisk API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletedisk.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteDiskWithCallback(request *DeleteDiskRequest, callback func(response *DeleteDiskResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteDiskResponse + var err error + defer close(result) + response, err = client.DeleteDisk(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteDiskRequest is the request struct for api DeleteDisk +type DeleteDiskRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DiskId string `position:"Query" name:"DiskId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteDiskResponse is the response struct for api DeleteDisk +type DeleteDiskResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteDiskRequest creates a request to invoke DeleteDisk API +func CreateDeleteDiskRequest() (request *DeleteDiskRequest) { + request = &DeleteDiskRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteDisk", "ecs", "openAPI") + return +} + +// CreateDeleteDiskResponse creates a response to parse from DeleteDisk response +func CreateDeleteDiskResponse() (response *DeleteDiskResponse) { + response = &DeleteDiskResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_forward_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_forward_entry.go new file mode 100644 index 0000000..6d6a270 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_forward_entry.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteForwardEntry invokes the ecs.DeleteForwardEntry API synchronously +// api document: https://help.aliyun.com/api/ecs/deleteforwardentry.html +func (client *Client) DeleteForwardEntry(request *DeleteForwardEntryRequest) (response *DeleteForwardEntryResponse, err error) { + response = CreateDeleteForwardEntryResponse() + err = client.DoAction(request, response) + return +} + +// DeleteForwardEntryWithChan invokes the ecs.DeleteForwardEntry API asynchronously +// api document: https://help.aliyun.com/api/ecs/deleteforwardentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteForwardEntryWithChan(request *DeleteForwardEntryRequest) (<-chan *DeleteForwardEntryResponse, <-chan error) { + responseChan := make(chan *DeleteForwardEntryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteForwardEntry(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteForwardEntryWithCallback invokes the ecs.DeleteForwardEntry API asynchronously +// api document: https://help.aliyun.com/api/ecs/deleteforwardentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteForwardEntryWithCallback(request *DeleteForwardEntryRequest, callback func(response *DeleteForwardEntryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteForwardEntryResponse + var err error + defer close(result) + response, err = client.DeleteForwardEntry(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteForwardEntryRequest is the request struct for api DeleteForwardEntry +type DeleteForwardEntryRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ForwardEntryId string `position:"Query" name:"ForwardEntryId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ForwardTableId string `position:"Query" name:"ForwardTableId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteForwardEntryResponse is the response struct for api DeleteForwardEntry +type DeleteForwardEntryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteForwardEntryRequest creates a request to invoke DeleteForwardEntry API +func CreateDeleteForwardEntryRequest() (request *DeleteForwardEntryRequest) { + request = &DeleteForwardEntryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteForwardEntry", "ecs", "openAPI") + return +} + +// CreateDeleteForwardEntryResponse creates a response to parse from DeleteForwardEntry response +func CreateDeleteForwardEntryResponse() (response *DeleteForwardEntryResponse) { + response = &DeleteForwardEntryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_ha_vip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_ha_vip.go new file mode 100644 index 0000000..e09fcb8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_ha_vip.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteHaVip invokes the ecs.DeleteHaVip API synchronously +// api document: https://help.aliyun.com/api/ecs/deletehavip.html +func (client *Client) DeleteHaVip(request *DeleteHaVipRequest) (response *DeleteHaVipResponse, err error) { + response = CreateDeleteHaVipResponse() + err = client.DoAction(request, response) + return +} + +// DeleteHaVipWithChan invokes the ecs.DeleteHaVip API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletehavip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteHaVipWithChan(request *DeleteHaVipRequest) (<-chan *DeleteHaVipResponse, <-chan error) { + responseChan := make(chan *DeleteHaVipResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteHaVip(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteHaVipWithCallback invokes the ecs.DeleteHaVip API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletehavip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteHaVipWithCallback(request *DeleteHaVipRequest, callback func(response *DeleteHaVipResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteHaVipResponse + var err error + defer close(result) + response, err = client.DeleteHaVip(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteHaVipRequest is the request struct for api DeleteHaVip +type DeleteHaVipRequest struct { + *requests.RpcRequest + HaVipId string `position:"Query" name:"HaVipId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteHaVipResponse is the response struct for api DeleteHaVip +type DeleteHaVipResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteHaVipRequest creates a request to invoke DeleteHaVip API +func CreateDeleteHaVipRequest() (request *DeleteHaVipRequest) { + request = &DeleteHaVipRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteHaVip", "ecs", "openAPI") + return +} + +// CreateDeleteHaVipResponse creates a response to parse from DeleteHaVip response +func CreateDeleteHaVipResponse() (response *DeleteHaVipResponse) { + response = &DeleteHaVipResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_hpc_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_hpc_cluster.go new file mode 100644 index 0000000..50394a5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_hpc_cluster.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteHpcCluster invokes the ecs.DeleteHpcCluster API synchronously +// api document: https://help.aliyun.com/api/ecs/deletehpccluster.html +func (client *Client) DeleteHpcCluster(request *DeleteHpcClusterRequest) (response *DeleteHpcClusterResponse, err error) { + response = CreateDeleteHpcClusterResponse() + err = client.DoAction(request, response) + return +} + +// DeleteHpcClusterWithChan invokes the ecs.DeleteHpcCluster API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletehpccluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteHpcClusterWithChan(request *DeleteHpcClusterRequest) (<-chan *DeleteHpcClusterResponse, <-chan error) { + responseChan := make(chan *DeleteHpcClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteHpcCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteHpcClusterWithCallback invokes the ecs.DeleteHpcCluster API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletehpccluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteHpcClusterWithCallback(request *DeleteHpcClusterRequest, callback func(response *DeleteHpcClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteHpcClusterResponse + var err error + defer close(result) + response, err = client.DeleteHpcCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteHpcClusterRequest is the request struct for api DeleteHpcCluster +type DeleteHpcClusterRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + HpcClusterId string `position:"Query" name:"HpcClusterId"` + ClientToken string `position:"Query" name:"ClientToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteHpcClusterResponse is the response struct for api DeleteHpcCluster +type DeleteHpcClusterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteHpcClusterRequest creates a request to invoke DeleteHpcCluster API +func CreateDeleteHpcClusterRequest() (request *DeleteHpcClusterRequest) { + request = &DeleteHpcClusterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteHpcCluster", "ecs", "openAPI") + return +} + +// CreateDeleteHpcClusterResponse creates a response to parse from DeleteHpcCluster response +func CreateDeleteHpcClusterResponse() (response *DeleteHpcClusterResponse) { + response = &DeleteHpcClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image.go new file mode 100644 index 0000000..37196a5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteImage invokes the ecs.DeleteImage API synchronously +// api document: https://help.aliyun.com/api/ecs/deleteimage.html +func (client *Client) DeleteImage(request *DeleteImageRequest) (response *DeleteImageResponse, err error) { + response = CreateDeleteImageResponse() + err = client.DoAction(request, response) + return +} + +// DeleteImageWithChan invokes the ecs.DeleteImage API asynchronously +// api document: https://help.aliyun.com/api/ecs/deleteimage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteImageWithChan(request *DeleteImageRequest) (<-chan *DeleteImageResponse, <-chan error) { + responseChan := make(chan *DeleteImageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteImage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteImageWithCallback invokes the ecs.DeleteImage API asynchronously +// api document: https://help.aliyun.com/api/ecs/deleteimage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteImageWithCallback(request *DeleteImageRequest, callback func(response *DeleteImageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteImageResponse + var err error + defer close(result) + response, err = client.DeleteImage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteImageRequest is the request struct for api DeleteImage +type DeleteImageRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ImageId string `position:"Query" name:"ImageId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Force requests.Boolean `position:"Query" name:"Force"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteImageResponse is the response struct for api DeleteImage +type DeleteImageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteImageRequest creates a request to invoke DeleteImage API +func CreateDeleteImageRequest() (request *DeleteImageRequest) { + request = &DeleteImageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteImage", "ecs", "openAPI") + return +} + +// CreateDeleteImageResponse creates a response to parse from DeleteImage response +func CreateDeleteImageResponse() (response *DeleteImageResponse) { + response = &DeleteImageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_instance.go new file mode 100644 index 0000000..c761400 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_instance.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteInstance invokes the ecs.DeleteInstance API synchronously +// api document: https://help.aliyun.com/api/ecs/deleteinstance.html +func (client *Client) DeleteInstance(request *DeleteInstanceRequest) (response *DeleteInstanceResponse, err error) { + response = CreateDeleteInstanceResponse() + err = client.DoAction(request, response) + return +} + +// DeleteInstanceWithChan invokes the ecs.DeleteInstance API asynchronously +// api document: https://help.aliyun.com/api/ecs/deleteinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteInstanceWithChan(request *DeleteInstanceRequest) (<-chan *DeleteInstanceResponse, <-chan error) { + responseChan := make(chan *DeleteInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteInstanceWithCallback invokes the ecs.DeleteInstance API asynchronously +// api document: https://help.aliyun.com/api/ecs/deleteinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteInstanceWithCallback(request *DeleteInstanceRequest, callback func(response *DeleteInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteInstanceResponse + var err error + defer close(result) + response, err = client.DeleteInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteInstanceRequest is the request struct for api DeleteInstance +type DeleteInstanceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + TerminateSubscription requests.Boolean `position:"Query" name:"TerminateSubscription"` + Force requests.Boolean `position:"Query" name:"Force"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteInstanceResponse is the response struct for api DeleteInstance +type DeleteInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteInstanceRequest creates a request to invoke DeleteInstance API +func CreateDeleteInstanceRequest() (request *DeleteInstanceRequest) { + request = &DeleteInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteInstance", "ecs", "openAPI") + return +} + +// CreateDeleteInstanceResponse creates a response to parse from DeleteInstance response +func CreateDeleteInstanceResponse() (response *DeleteInstanceResponse) { + response = &DeleteInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_key_pairs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_key_pairs.go new file mode 100644 index 0000000..114de0d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_key_pairs.go @@ -0,0 +1,106 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteKeyPairs invokes the ecs.DeleteKeyPairs API synchronously +// api document: https://help.aliyun.com/api/ecs/deletekeypairs.html +func (client *Client) DeleteKeyPairs(request *DeleteKeyPairsRequest) (response *DeleteKeyPairsResponse, err error) { + response = CreateDeleteKeyPairsResponse() + err = client.DoAction(request, response) + return +} + +// DeleteKeyPairsWithChan invokes the ecs.DeleteKeyPairs API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletekeypairs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteKeyPairsWithChan(request *DeleteKeyPairsRequest) (<-chan *DeleteKeyPairsResponse, <-chan error) { + responseChan := make(chan *DeleteKeyPairsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteKeyPairs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteKeyPairsWithCallback invokes the ecs.DeleteKeyPairs API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletekeypairs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteKeyPairsWithCallback(request *DeleteKeyPairsRequest, callback func(response *DeleteKeyPairsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteKeyPairsResponse + var err error + defer close(result) + response, err = client.DeleteKeyPairs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteKeyPairsRequest is the request struct for api DeleteKeyPairs +type DeleteKeyPairsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + KeyPairNames string `position:"Query" name:"KeyPairNames"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteKeyPairsResponse is the response struct for api DeleteKeyPairs +type DeleteKeyPairsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteKeyPairsRequest creates a request to invoke DeleteKeyPairs API +func CreateDeleteKeyPairsRequest() (request *DeleteKeyPairsRequest) { + request = &DeleteKeyPairsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteKeyPairs", "ecs", "openAPI") + return +} + +// CreateDeleteKeyPairsResponse creates a response to parse from DeleteKeyPairs response +func CreateDeleteKeyPairsResponse() (response *DeleteKeyPairsResponse) { + response = &DeleteKeyPairsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template.go new file mode 100644 index 0000000..8e18188 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLaunchTemplate invokes the ecs.DeleteLaunchTemplate API synchronously +// api document: https://help.aliyun.com/api/ecs/deletelaunchtemplate.html +func (client *Client) DeleteLaunchTemplate(request *DeleteLaunchTemplateRequest) (response *DeleteLaunchTemplateResponse, err error) { + response = CreateDeleteLaunchTemplateResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLaunchTemplateWithChan invokes the ecs.DeleteLaunchTemplate API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletelaunchtemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLaunchTemplateWithChan(request *DeleteLaunchTemplateRequest) (<-chan *DeleteLaunchTemplateResponse, <-chan error) { + responseChan := make(chan *DeleteLaunchTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLaunchTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLaunchTemplateWithCallback invokes the ecs.DeleteLaunchTemplate API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletelaunchtemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLaunchTemplateWithCallback(request *DeleteLaunchTemplateRequest, callback func(response *DeleteLaunchTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLaunchTemplateResponse + var err error + defer close(result) + response, err = client.DeleteLaunchTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLaunchTemplateRequest is the request struct for api DeleteLaunchTemplate +type DeleteLaunchTemplateRequest struct { + *requests.RpcRequest + LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LaunchTemplateId string `position:"Query" name:"LaunchTemplateId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteLaunchTemplateResponse is the response struct for api DeleteLaunchTemplate +type DeleteLaunchTemplateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLaunchTemplateRequest creates a request to invoke DeleteLaunchTemplate API +func CreateDeleteLaunchTemplateRequest() (request *DeleteLaunchTemplateRequest) { + request = &DeleteLaunchTemplateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteLaunchTemplate", "ecs", "openAPI") + return +} + +// CreateDeleteLaunchTemplateResponse creates a response to parse from DeleteLaunchTemplate response +func CreateDeleteLaunchTemplateResponse() (response *DeleteLaunchTemplateResponse) { + response = &DeleteLaunchTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template_version.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template_version.go new file mode 100644 index 0000000..546f6c1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template_version.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLaunchTemplateVersion invokes the ecs.DeleteLaunchTemplateVersion API synchronously +// api document: https://help.aliyun.com/api/ecs/deletelaunchtemplateversion.html +func (client *Client) DeleteLaunchTemplateVersion(request *DeleteLaunchTemplateVersionRequest) (response *DeleteLaunchTemplateVersionResponse, err error) { + response = CreateDeleteLaunchTemplateVersionResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLaunchTemplateVersionWithChan invokes the ecs.DeleteLaunchTemplateVersion API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletelaunchtemplateversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLaunchTemplateVersionWithChan(request *DeleteLaunchTemplateVersionRequest) (<-chan *DeleteLaunchTemplateVersionResponse, <-chan error) { + responseChan := make(chan *DeleteLaunchTemplateVersionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLaunchTemplateVersion(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLaunchTemplateVersionWithCallback invokes the ecs.DeleteLaunchTemplateVersion API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletelaunchtemplateversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLaunchTemplateVersionWithCallback(request *DeleteLaunchTemplateVersionRequest, callback func(response *DeleteLaunchTemplateVersionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLaunchTemplateVersionResponse + var err error + defer close(result) + response, err = client.DeleteLaunchTemplateVersion(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLaunchTemplateVersionRequest is the request struct for api DeleteLaunchTemplateVersion +type DeleteLaunchTemplateVersionRequest struct { + *requests.RpcRequest + LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DeleteVersion *[]string `position:"Query" name:"DeleteVersion" type:"Repeated"` + LaunchTemplateId string `position:"Query" name:"LaunchTemplateId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteLaunchTemplateVersionResponse is the response struct for api DeleteLaunchTemplateVersion +type DeleteLaunchTemplateVersionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLaunchTemplateVersionRequest creates a request to invoke DeleteLaunchTemplateVersion API +func CreateDeleteLaunchTemplateVersionRequest() (request *DeleteLaunchTemplateVersionRequest) { + request = &DeleteLaunchTemplateVersionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteLaunchTemplateVersion", "ecs", "openAPI") + return +} + +// CreateDeleteLaunchTemplateVersionResponse creates a response to parse from DeleteLaunchTemplateVersion response +func CreateDeleteLaunchTemplateVersionResponse() (response *DeleteLaunchTemplateVersionResponse) { + response = &DeleteLaunchTemplateVersionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_nat_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_nat_gateway.go new file mode 100644 index 0000000..c468c85 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_nat_gateway.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteNatGateway invokes the ecs.DeleteNatGateway API synchronously +// api document: https://help.aliyun.com/api/ecs/deletenatgateway.html +func (client *Client) DeleteNatGateway(request *DeleteNatGatewayRequest) (response *DeleteNatGatewayResponse, err error) { + response = CreateDeleteNatGatewayResponse() + err = client.DoAction(request, response) + return +} + +// DeleteNatGatewayWithChan invokes the ecs.DeleteNatGateway API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletenatgateway.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteNatGatewayWithChan(request *DeleteNatGatewayRequest) (<-chan *DeleteNatGatewayResponse, <-chan error) { + responseChan := make(chan *DeleteNatGatewayResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteNatGateway(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteNatGatewayWithCallback invokes the ecs.DeleteNatGateway API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletenatgateway.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteNatGatewayWithCallback(request *DeleteNatGatewayRequest, callback func(response *DeleteNatGatewayResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteNatGatewayResponse + var err error + defer close(result) + response, err = client.DeleteNatGateway(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteNatGatewayRequest is the request struct for api DeleteNatGateway +type DeleteNatGatewayRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + NatGatewayId string `position:"Query" name:"NatGatewayId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteNatGatewayResponse is the response struct for api DeleteNatGateway +type DeleteNatGatewayResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteNatGatewayRequest creates a request to invoke DeleteNatGateway API +func CreateDeleteNatGatewayRequest() (request *DeleteNatGatewayRequest) { + request = &DeleteNatGatewayRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteNatGateway", "ecs", "openAPI") + return +} + +// CreateDeleteNatGatewayResponse creates a response to parse from DeleteNatGateway response +func CreateDeleteNatGatewayResponse() (response *DeleteNatGatewayResponse) { + response = &DeleteNatGatewayResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface.go new file mode 100644 index 0000000..2649458 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteNetworkInterface invokes the ecs.DeleteNetworkInterface API synchronously +// api document: https://help.aliyun.com/api/ecs/deletenetworkinterface.html +func (client *Client) DeleteNetworkInterface(request *DeleteNetworkInterfaceRequest) (response *DeleteNetworkInterfaceResponse, err error) { + response = CreateDeleteNetworkInterfaceResponse() + err = client.DoAction(request, response) + return +} + +// DeleteNetworkInterfaceWithChan invokes the ecs.DeleteNetworkInterface API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletenetworkinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteNetworkInterfaceWithChan(request *DeleteNetworkInterfaceRequest) (<-chan *DeleteNetworkInterfaceResponse, <-chan error) { + responseChan := make(chan *DeleteNetworkInterfaceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteNetworkInterface(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteNetworkInterfaceWithCallback invokes the ecs.DeleteNetworkInterface API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletenetworkinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteNetworkInterfaceWithCallback(request *DeleteNetworkInterfaceRequest, callback func(response *DeleteNetworkInterfaceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteNetworkInterfaceResponse + var err error + defer close(result) + response, err = client.DeleteNetworkInterface(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteNetworkInterfaceRequest is the request struct for api DeleteNetworkInterface +type DeleteNetworkInterfaceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` +} + +// DeleteNetworkInterfaceResponse is the response struct for api DeleteNetworkInterface +type DeleteNetworkInterfaceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteNetworkInterfaceRequest creates a request to invoke DeleteNetworkInterface API +func CreateDeleteNetworkInterfaceRequest() (request *DeleteNetworkInterfaceRequest) { + request = &DeleteNetworkInterfaceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteNetworkInterface", "ecs", "openAPI") + return +} + +// CreateDeleteNetworkInterfaceResponse creates a response to parse from DeleteNetworkInterface response +func CreateDeleteNetworkInterfaceResponse() (response *DeleteNetworkInterfaceResponse) { + response = &DeleteNetworkInterfaceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface_permission.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface_permission.go new file mode 100644 index 0000000..eaf566d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface_permission.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteNetworkInterfacePermission invokes the ecs.DeleteNetworkInterfacePermission API synchronously +// api document: https://help.aliyun.com/api/ecs/deletenetworkinterfacepermission.html +func (client *Client) DeleteNetworkInterfacePermission(request *DeleteNetworkInterfacePermissionRequest) (response *DeleteNetworkInterfacePermissionResponse, err error) { + response = CreateDeleteNetworkInterfacePermissionResponse() + err = client.DoAction(request, response) + return +} + +// DeleteNetworkInterfacePermissionWithChan invokes the ecs.DeleteNetworkInterfacePermission API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletenetworkinterfacepermission.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteNetworkInterfacePermissionWithChan(request *DeleteNetworkInterfacePermissionRequest) (<-chan *DeleteNetworkInterfacePermissionResponse, <-chan error) { + responseChan := make(chan *DeleteNetworkInterfacePermissionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteNetworkInterfacePermission(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteNetworkInterfacePermissionWithCallback invokes the ecs.DeleteNetworkInterfacePermission API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletenetworkinterfacepermission.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteNetworkInterfacePermissionWithCallback(request *DeleteNetworkInterfacePermissionRequest, callback func(response *DeleteNetworkInterfacePermissionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteNetworkInterfacePermissionResponse + var err error + defer close(result) + response, err = client.DeleteNetworkInterfacePermission(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteNetworkInterfacePermissionRequest is the request struct for api DeleteNetworkInterfacePermission +type DeleteNetworkInterfacePermissionRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + NetworkInterfacePermissionId string `position:"Query" name:"NetworkInterfacePermissionId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Force requests.Boolean `position:"Query" name:"Force"` +} + +// DeleteNetworkInterfacePermissionResponse is the response struct for api DeleteNetworkInterfacePermission +type DeleteNetworkInterfacePermissionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteNetworkInterfacePermissionRequest creates a request to invoke DeleteNetworkInterfacePermission API +func CreateDeleteNetworkInterfacePermissionRequest() (request *DeleteNetworkInterfacePermissionRequest) { + request = &DeleteNetworkInterfacePermissionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteNetworkInterfacePermission", "ecs", "openAPI") + return +} + +// CreateDeleteNetworkInterfacePermissionResponse creates a response to parse from DeleteNetworkInterfacePermission response +func CreateDeleteNetworkInterfacePermissionResponse() (response *DeleteNetworkInterfacePermissionResponse) { + response = &DeleteNetworkInterfacePermissionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_physical_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_physical_connection.go new file mode 100644 index 0000000..122c46d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_physical_connection.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeletePhysicalConnection invokes the ecs.DeletePhysicalConnection API synchronously +// api document: https://help.aliyun.com/api/ecs/deletephysicalconnection.html +func (client *Client) DeletePhysicalConnection(request *DeletePhysicalConnectionRequest) (response *DeletePhysicalConnectionResponse, err error) { + response = CreateDeletePhysicalConnectionResponse() + err = client.DoAction(request, response) + return +} + +// DeletePhysicalConnectionWithChan invokes the ecs.DeletePhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletephysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeletePhysicalConnectionWithChan(request *DeletePhysicalConnectionRequest) (<-chan *DeletePhysicalConnectionResponse, <-chan error) { + responseChan := make(chan *DeletePhysicalConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeletePhysicalConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeletePhysicalConnectionWithCallback invokes the ecs.DeletePhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletephysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeletePhysicalConnectionWithCallback(request *DeletePhysicalConnectionRequest, callback func(response *DeletePhysicalConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeletePhysicalConnectionResponse + var err error + defer close(result) + response, err = client.DeletePhysicalConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeletePhysicalConnectionRequest is the request struct for api DeletePhysicalConnection +type DeletePhysicalConnectionRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + UserCidr string `position:"Query" name:"UserCidr"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeletePhysicalConnectionResponse is the response struct for api DeletePhysicalConnection +type DeletePhysicalConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeletePhysicalConnectionRequest creates a request to invoke DeletePhysicalConnection API +func CreateDeletePhysicalConnectionRequest() (request *DeletePhysicalConnectionRequest) { + request = &DeletePhysicalConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeletePhysicalConnection", "ecs", "openAPI") + return +} + +// CreateDeletePhysicalConnectionResponse creates a response to parse from DeletePhysicalConnection response +func CreateDeletePhysicalConnectionResponse() (response *DeletePhysicalConnectionResponse) { + response = &DeletePhysicalConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_recycle_bin.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_recycle_bin.go new file mode 100644 index 0000000..ae1378a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_recycle_bin.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteRecycleBin invokes the ecs.DeleteRecycleBin API synchronously +// api document: https://help.aliyun.com/api/ecs/deleterecyclebin.html +func (client *Client) DeleteRecycleBin(request *DeleteRecycleBinRequest) (response *DeleteRecycleBinResponse, err error) { + response = CreateDeleteRecycleBinResponse() + err = client.DoAction(request, response) + return +} + +// DeleteRecycleBinWithChan invokes the ecs.DeleteRecycleBin API asynchronously +// api document: https://help.aliyun.com/api/ecs/deleterecyclebin.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteRecycleBinWithChan(request *DeleteRecycleBinRequest) (<-chan *DeleteRecycleBinResponse, <-chan error) { + responseChan := make(chan *DeleteRecycleBinResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteRecycleBin(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteRecycleBinWithCallback invokes the ecs.DeleteRecycleBin API asynchronously +// api document: https://help.aliyun.com/api/ecs/deleterecyclebin.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteRecycleBinWithCallback(request *DeleteRecycleBinRequest, callback func(response *DeleteRecycleBinResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteRecycleBinResponse + var err error + defer close(result) + response, err = client.DeleteRecycleBin(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteRecycleBinRequest is the request struct for api DeleteRecycleBin +type DeleteRecycleBinRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceIds string `position:"Query" name:"resourceIds"` +} + +// DeleteRecycleBinResponse is the response struct for api DeleteRecycleBin +type DeleteRecycleBinResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteRecycleBinRequest creates a request to invoke DeleteRecycleBin API +func CreateDeleteRecycleBinRequest() (request *DeleteRecycleBinRequest) { + request = &DeleteRecycleBinRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteRecycleBin", "ecs", "openAPI") + return +} + +// CreateDeleteRecycleBinResponse creates a response to parse from DeleteRecycleBin response +func CreateDeleteRecycleBinResponse() (response *DeleteRecycleBinResponse) { + response = &DeleteRecycleBinResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_route_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_route_entry.go new file mode 100644 index 0000000..89d6dae --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_route_entry.go @@ -0,0 +1,116 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteRouteEntry invokes the ecs.DeleteRouteEntry API synchronously +// api document: https://help.aliyun.com/api/ecs/deleterouteentry.html +func (client *Client) DeleteRouteEntry(request *DeleteRouteEntryRequest) (response *DeleteRouteEntryResponse, err error) { + response = CreateDeleteRouteEntryResponse() + err = client.DoAction(request, response) + return +} + +// DeleteRouteEntryWithChan invokes the ecs.DeleteRouteEntry API asynchronously +// api document: https://help.aliyun.com/api/ecs/deleterouteentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteRouteEntryWithChan(request *DeleteRouteEntryRequest) (<-chan *DeleteRouteEntryResponse, <-chan error) { + responseChan := make(chan *DeleteRouteEntryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteRouteEntry(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteRouteEntryWithCallback invokes the ecs.DeleteRouteEntry API asynchronously +// api document: https://help.aliyun.com/api/ecs/deleterouteentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteRouteEntryWithCallback(request *DeleteRouteEntryRequest, callback func(response *DeleteRouteEntryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteRouteEntryResponse + var err error + defer close(result) + response, err = client.DeleteRouteEntry(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteRouteEntryRequest is the request struct for api DeleteRouteEntry +type DeleteRouteEntryRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + DestinationCidrBlock string `position:"Query" name:"DestinationCidrBlock"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + NextHopId string `position:"Query" name:"NextHopId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + NextHopList *[]DeleteRouteEntryNextHopList `position:"Query" name:"NextHopList" type:"Repeated"` + RouteTableId string `position:"Query" name:"RouteTableId"` +} + +// DeleteRouteEntryNextHopList is a repeated param struct in DeleteRouteEntryRequest +type DeleteRouteEntryNextHopList struct { + NextHopType string `name:"NextHopType"` + NextHopId string `name:"NextHopId"` +} + +// DeleteRouteEntryResponse is the response struct for api DeleteRouteEntry +type DeleteRouteEntryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteRouteEntryRequest creates a request to invoke DeleteRouteEntry API +func CreateDeleteRouteEntryRequest() (request *DeleteRouteEntryRequest) { + request = &DeleteRouteEntryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteRouteEntry", "ecs", "openAPI") + return +} + +// CreateDeleteRouteEntryResponse creates a response to parse from DeleteRouteEntry response +func CreateDeleteRouteEntryResponse() (response *DeleteRouteEntryResponse) { + response = &DeleteRouteEntryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_router_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_router_interface.go new file mode 100644 index 0000000..d889de5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_router_interface.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteRouterInterface invokes the ecs.DeleteRouterInterface API synchronously +// api document: https://help.aliyun.com/api/ecs/deleterouterinterface.html +func (client *Client) DeleteRouterInterface(request *DeleteRouterInterfaceRequest) (response *DeleteRouterInterfaceResponse, err error) { + response = CreateDeleteRouterInterfaceResponse() + err = client.DoAction(request, response) + return +} + +// DeleteRouterInterfaceWithChan invokes the ecs.DeleteRouterInterface API asynchronously +// api document: https://help.aliyun.com/api/ecs/deleterouterinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteRouterInterfaceWithChan(request *DeleteRouterInterfaceRequest) (<-chan *DeleteRouterInterfaceResponse, <-chan error) { + responseChan := make(chan *DeleteRouterInterfaceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteRouterInterface(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteRouterInterfaceWithCallback invokes the ecs.DeleteRouterInterface API asynchronously +// api document: https://help.aliyun.com/api/ecs/deleterouterinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteRouterInterfaceWithCallback(request *DeleteRouterInterfaceRequest, callback func(response *DeleteRouterInterfaceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteRouterInterfaceResponse + var err error + defer close(result) + response, err = client.DeleteRouterInterface(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteRouterInterfaceRequest is the request struct for api DeleteRouterInterface +type DeleteRouterInterfaceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + UserCidr string `position:"Query" name:"UserCidr"` + RouterInterfaceId string `position:"Query" name:"RouterInterfaceId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteRouterInterfaceResponse is the response struct for api DeleteRouterInterface +type DeleteRouterInterfaceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteRouterInterfaceRequest creates a request to invoke DeleteRouterInterface API +func CreateDeleteRouterInterfaceRequest() (request *DeleteRouterInterfaceRequest) { + request = &DeleteRouterInterfaceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteRouterInterface", "ecs", "openAPI") + return +} + +// CreateDeleteRouterInterfaceResponse creates a response to parse from DeleteRouterInterface response +func CreateDeleteRouterInterfaceResponse() (response *DeleteRouterInterfaceResponse) { + response = &DeleteRouterInterfaceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_security_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_security_group.go new file mode 100644 index 0000000..cea9e97 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_security_group.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteSecurityGroup invokes the ecs.DeleteSecurityGroup API synchronously +// api document: https://help.aliyun.com/api/ecs/deletesecuritygroup.html +func (client *Client) DeleteSecurityGroup(request *DeleteSecurityGroupRequest) (response *DeleteSecurityGroupResponse, err error) { + response = CreateDeleteSecurityGroupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteSecurityGroupWithChan invokes the ecs.DeleteSecurityGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletesecuritygroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSecurityGroupWithChan(request *DeleteSecurityGroupRequest) (<-chan *DeleteSecurityGroupResponse, <-chan error) { + responseChan := make(chan *DeleteSecurityGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteSecurityGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteSecurityGroupWithCallback invokes the ecs.DeleteSecurityGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletesecuritygroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSecurityGroupWithCallback(request *DeleteSecurityGroupRequest, callback func(response *DeleteSecurityGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteSecurityGroupResponse + var err error + defer close(result) + response, err = client.DeleteSecurityGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteSecurityGroupRequest is the request struct for api DeleteSecurityGroup +type DeleteSecurityGroupRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteSecurityGroupResponse is the response struct for api DeleteSecurityGroup +type DeleteSecurityGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteSecurityGroupRequest creates a request to invoke DeleteSecurityGroup API +func CreateDeleteSecurityGroupRequest() (request *DeleteSecurityGroupRequest) { + request = &DeleteSecurityGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteSecurityGroup", "ecs", "openAPI") + return +} + +// CreateDeleteSecurityGroupResponse creates a response to parse from DeleteSecurityGroup response +func CreateDeleteSecurityGroupResponse() (response *DeleteSecurityGroupResponse) { + response = &DeleteSecurityGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_snapshot.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_snapshot.go new file mode 100644 index 0000000..54dd0c2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_snapshot.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteSnapshot invokes the ecs.DeleteSnapshot API synchronously +// api document: https://help.aliyun.com/api/ecs/deletesnapshot.html +func (client *Client) DeleteSnapshot(request *DeleteSnapshotRequest) (response *DeleteSnapshotResponse, err error) { + response = CreateDeleteSnapshotResponse() + err = client.DoAction(request, response) + return +} + +// DeleteSnapshotWithChan invokes the ecs.DeleteSnapshot API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletesnapshot.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSnapshotWithChan(request *DeleteSnapshotRequest) (<-chan *DeleteSnapshotResponse, <-chan error) { + responseChan := make(chan *DeleteSnapshotResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteSnapshot(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteSnapshotWithCallback invokes the ecs.DeleteSnapshot API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletesnapshot.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSnapshotWithCallback(request *DeleteSnapshotRequest, callback func(response *DeleteSnapshotResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteSnapshotResponse + var err error + defer close(result) + response, err = client.DeleteSnapshot(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteSnapshotRequest is the request struct for api DeleteSnapshot +type DeleteSnapshotRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SnapshotId string `position:"Query" name:"SnapshotId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Force requests.Boolean `position:"Query" name:"Force"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteSnapshotResponse is the response struct for api DeleteSnapshot +type DeleteSnapshotResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteSnapshotRequest creates a request to invoke DeleteSnapshot API +func CreateDeleteSnapshotRequest() (request *DeleteSnapshotRequest) { + request = &DeleteSnapshotRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteSnapshot", "ecs", "openAPI") + return +} + +// CreateDeleteSnapshotResponse creates a response to parse from DeleteSnapshot response +func CreateDeleteSnapshotResponse() (response *DeleteSnapshotResponse) { + response = &DeleteSnapshotResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_v_switch.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_v_switch.go new file mode 100644 index 0000000..e59305e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_v_switch.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteVSwitch invokes the ecs.DeleteVSwitch API synchronously +// api document: https://help.aliyun.com/api/ecs/deletevswitch.html +func (client *Client) DeleteVSwitch(request *DeleteVSwitchRequest) (response *DeleteVSwitchResponse, err error) { + response = CreateDeleteVSwitchResponse() + err = client.DoAction(request, response) + return +} + +// DeleteVSwitchWithChan invokes the ecs.DeleteVSwitch API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletevswitch.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteVSwitchWithChan(request *DeleteVSwitchRequest) (<-chan *DeleteVSwitchResponse, <-chan error) { + responseChan := make(chan *DeleteVSwitchResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteVSwitch(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteVSwitchWithCallback invokes the ecs.DeleteVSwitch API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletevswitch.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteVSwitchWithCallback(request *DeleteVSwitchRequest, callback func(response *DeleteVSwitchResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteVSwitchResponse + var err error + defer close(result) + response, err = client.DeleteVSwitch(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteVSwitchRequest is the request struct for api DeleteVSwitch +type DeleteVSwitchRequest struct { + *requests.RpcRequest + VSwitchId string `position:"Query" name:"VSwitchId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteVSwitchResponse is the response struct for api DeleteVSwitch +type DeleteVSwitchResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteVSwitchRequest creates a request to invoke DeleteVSwitch API +func CreateDeleteVSwitchRequest() (request *DeleteVSwitchRequest) { + request = &DeleteVSwitchRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteVSwitch", "ecs", "openAPI") + return +} + +// CreateDeleteVSwitchResponse creates a response to parse from DeleteVSwitch response +func CreateDeleteVSwitchResponse() (response *DeleteVSwitchResponse) { + response = &DeleteVSwitchResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_virtual_border_router.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_virtual_border_router.go new file mode 100644 index 0000000..eba1b78 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_virtual_border_router.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteVirtualBorderRouter invokes the ecs.DeleteVirtualBorderRouter API synchronously +// api document: https://help.aliyun.com/api/ecs/deletevirtualborderrouter.html +func (client *Client) DeleteVirtualBorderRouter(request *DeleteVirtualBorderRouterRequest) (response *DeleteVirtualBorderRouterResponse, err error) { + response = CreateDeleteVirtualBorderRouterResponse() + err = client.DoAction(request, response) + return +} + +// DeleteVirtualBorderRouterWithChan invokes the ecs.DeleteVirtualBorderRouter API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletevirtualborderrouter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteVirtualBorderRouterWithChan(request *DeleteVirtualBorderRouterRequest) (<-chan *DeleteVirtualBorderRouterResponse, <-chan error) { + responseChan := make(chan *DeleteVirtualBorderRouterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteVirtualBorderRouter(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteVirtualBorderRouterWithCallback invokes the ecs.DeleteVirtualBorderRouter API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletevirtualborderrouter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteVirtualBorderRouterWithCallback(request *DeleteVirtualBorderRouterRequest, callback func(response *DeleteVirtualBorderRouterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteVirtualBorderRouterResponse + var err error + defer close(result) + response, err = client.DeleteVirtualBorderRouter(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteVirtualBorderRouterRequest is the request struct for api DeleteVirtualBorderRouter +type DeleteVirtualBorderRouterRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + UserCidr string `position:"Query" name:"UserCidr"` + VbrId string `position:"Query" name:"VbrId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteVirtualBorderRouterResponse is the response struct for api DeleteVirtualBorderRouter +type DeleteVirtualBorderRouterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteVirtualBorderRouterRequest creates a request to invoke DeleteVirtualBorderRouter API +func CreateDeleteVirtualBorderRouterRequest() (request *DeleteVirtualBorderRouterRequest) { + request = &DeleteVirtualBorderRouterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteVirtualBorderRouter", "ecs", "openAPI") + return +} + +// CreateDeleteVirtualBorderRouterResponse creates a response to parse from DeleteVirtualBorderRouter response +func CreateDeleteVirtualBorderRouterResponse() (response *DeleteVirtualBorderRouterResponse) { + response = &DeleteVirtualBorderRouterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_vpc.go new file mode 100644 index 0000000..1537868 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_vpc.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteVpc invokes the ecs.DeleteVpc API synchronously +// api document: https://help.aliyun.com/api/ecs/deletevpc.html +func (client *Client) DeleteVpc(request *DeleteVpcRequest) (response *DeleteVpcResponse, err error) { + response = CreateDeleteVpcResponse() + err = client.DoAction(request, response) + return +} + +// DeleteVpcWithChan invokes the ecs.DeleteVpc API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletevpc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteVpcWithChan(request *DeleteVpcRequest) (<-chan *DeleteVpcResponse, <-chan error) { + responseChan := make(chan *DeleteVpcResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteVpc(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteVpcWithCallback invokes the ecs.DeleteVpc API asynchronously +// api document: https://help.aliyun.com/api/ecs/deletevpc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteVpcWithCallback(request *DeleteVpcRequest, callback func(response *DeleteVpcResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteVpcResponse + var err error + defer close(result) + response, err = client.DeleteVpc(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteVpcRequest is the request struct for api DeleteVpc +type DeleteVpcRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + VpcId string `position:"Query" name:"VpcId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteVpcResponse is the response struct for api DeleteVpc +type DeleteVpcResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteVpcRequest creates a request to invoke DeleteVpc API +func CreateDeleteVpcRequest() (request *DeleteVpcRequest) { + request = &DeleteVpcRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteVpc", "ecs", "openAPI") + return +} + +// CreateDeleteVpcResponse creates a response to parse from DeleteVpc response +func CreateDeleteVpcResponse() (response *DeleteVpcResponse) { + response = &DeleteVpcResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_access_points.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_access_points.go new file mode 100644 index 0000000..ef512eb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_access_points.go @@ -0,0 +1,119 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAccessPoints invokes the ecs.DescribeAccessPoints API synchronously +// api document: https://help.aliyun.com/api/ecs/describeaccesspoints.html +func (client *Client) DescribeAccessPoints(request *DescribeAccessPointsRequest) (response *DescribeAccessPointsResponse, err error) { + response = CreateDescribeAccessPointsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAccessPointsWithChan invokes the ecs.DescribeAccessPoints API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeaccesspoints.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccessPointsWithChan(request *DescribeAccessPointsRequest) (<-chan *DescribeAccessPointsResponse, <-chan error) { + responseChan := make(chan *DescribeAccessPointsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAccessPoints(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAccessPointsWithCallback invokes the ecs.DescribeAccessPoints API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeaccesspoints.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccessPointsWithCallback(request *DescribeAccessPointsRequest, callback func(response *DescribeAccessPointsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAccessPointsResponse + var err error + defer close(result) + response, err = client.DescribeAccessPoints(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAccessPointsRequest is the request struct for api DescribeAccessPoints +type DescribeAccessPointsRequest struct { + *requests.RpcRequest + Filter *[]DescribeAccessPointsFilter `position:"Query" name:"Filter" type:"Repeated"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Type string `position:"Query" name:"Type"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeAccessPointsFilter is a repeated param struct in DescribeAccessPointsRequest +type DescribeAccessPointsFilter struct { + Key string `name:"Key"` + Value *[]string `name:"Value" type:"Repeated"` +} + +// DescribeAccessPointsResponse is the response struct for api DescribeAccessPoints +type DescribeAccessPointsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + AccessPointSet AccessPointSet `json:"AccessPointSet" xml:"AccessPointSet"` +} + +// CreateDescribeAccessPointsRequest creates a request to invoke DescribeAccessPoints API +func CreateDescribeAccessPointsRequest() (request *DescribeAccessPointsRequest) { + request = &DescribeAccessPointsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeAccessPoints", "ecs", "openAPI") + return +} + +// CreateDescribeAccessPointsResponse creates a response to parse from DescribeAccessPoints response +func CreateDescribeAccessPointsResponse() (response *DescribeAccessPointsResponse) { + response = &DescribeAccessPointsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_snapshot_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_snapshot_policy.go new file mode 100644 index 0000000..2e6f710 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_snapshot_policy.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAutoSnapshotPolicy invokes the ecs.DescribeAutoSnapshotPolicy API synchronously +// api document: https://help.aliyun.com/api/ecs/describeautosnapshotpolicy.html +func (client *Client) DescribeAutoSnapshotPolicy(request *DescribeAutoSnapshotPolicyRequest) (response *DescribeAutoSnapshotPolicyResponse, err error) { + response = CreateDescribeAutoSnapshotPolicyResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAutoSnapshotPolicyWithChan invokes the ecs.DescribeAutoSnapshotPolicy API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeautosnapshotpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAutoSnapshotPolicyWithChan(request *DescribeAutoSnapshotPolicyRequest) (<-chan *DescribeAutoSnapshotPolicyResponse, <-chan error) { + responseChan := make(chan *DescribeAutoSnapshotPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAutoSnapshotPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAutoSnapshotPolicyWithCallback invokes the ecs.DescribeAutoSnapshotPolicy API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeautosnapshotpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAutoSnapshotPolicyWithCallback(request *DescribeAutoSnapshotPolicyRequest, callback func(response *DescribeAutoSnapshotPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAutoSnapshotPolicyResponse + var err error + defer close(result) + response, err = client.DescribeAutoSnapshotPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAutoSnapshotPolicyRequest is the request struct for api DescribeAutoSnapshotPolicy +type DescribeAutoSnapshotPolicyRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeAutoSnapshotPolicyResponse is the response struct for api DescribeAutoSnapshotPolicy +type DescribeAutoSnapshotPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AutoSnapshotOccupation int `json:"AutoSnapshotOccupation" xml:"AutoSnapshotOccupation"` + AutoSnapshotPolicy AutoSnapshotPolicy `json:"AutoSnapshotPolicy" xml:"AutoSnapshotPolicy"` + AutoSnapshotExcutionStatus AutoSnapshotExcutionStatus `json:"AutoSnapshotExcutionStatus" xml:"AutoSnapshotExcutionStatus"` +} + +// CreateDescribeAutoSnapshotPolicyRequest creates a request to invoke DescribeAutoSnapshotPolicy API +func CreateDescribeAutoSnapshotPolicyRequest() (request *DescribeAutoSnapshotPolicyRequest) { + request = &DescribeAutoSnapshotPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeAutoSnapshotPolicy", "ecs", "openAPI") + return +} + +// CreateDescribeAutoSnapshotPolicyResponse creates a response to parse from DescribeAutoSnapshotPolicy response +func CreateDescribeAutoSnapshotPolicyResponse() (response *DescribeAutoSnapshotPolicyResponse) { + response = &DescribeAutoSnapshotPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_snapshot_policy_ex.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_snapshot_policy_ex.go new file mode 100644 index 0000000..fd1d652 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_snapshot_policy_ex.go @@ -0,0 +1,113 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAutoSnapshotPolicyEx invokes the ecs.DescribeAutoSnapshotPolicyEx API synchronously +// api document: https://help.aliyun.com/api/ecs/describeautosnapshotpolicyex.html +func (client *Client) DescribeAutoSnapshotPolicyEx(request *DescribeAutoSnapshotPolicyExRequest) (response *DescribeAutoSnapshotPolicyExResponse, err error) { + response = CreateDescribeAutoSnapshotPolicyExResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAutoSnapshotPolicyExWithChan invokes the ecs.DescribeAutoSnapshotPolicyEx API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeautosnapshotpolicyex.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAutoSnapshotPolicyExWithChan(request *DescribeAutoSnapshotPolicyExRequest) (<-chan *DescribeAutoSnapshotPolicyExResponse, <-chan error) { + responseChan := make(chan *DescribeAutoSnapshotPolicyExResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAutoSnapshotPolicyEx(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAutoSnapshotPolicyExWithCallback invokes the ecs.DescribeAutoSnapshotPolicyEx API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeautosnapshotpolicyex.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAutoSnapshotPolicyExWithCallback(request *DescribeAutoSnapshotPolicyExRequest, callback func(response *DescribeAutoSnapshotPolicyExResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAutoSnapshotPolicyExResponse + var err error + defer close(result) + response, err = client.DescribeAutoSnapshotPolicyEx(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAutoSnapshotPolicyExRequest is the request struct for api DescribeAutoSnapshotPolicyEx +type DescribeAutoSnapshotPolicyExRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + AutoSnapshotPolicyId string `position:"Query" name:"AutoSnapshotPolicyId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeAutoSnapshotPolicyExResponse is the response struct for api DescribeAutoSnapshotPolicyEx +type DescribeAutoSnapshotPolicyExResponse 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"` + AutoSnapshotPolicies AutoSnapshotPolicies `json:"AutoSnapshotPolicies" xml:"AutoSnapshotPolicies"` +} + +// CreateDescribeAutoSnapshotPolicyExRequest creates a request to invoke DescribeAutoSnapshotPolicyEx API +func CreateDescribeAutoSnapshotPolicyExRequest() (request *DescribeAutoSnapshotPolicyExRequest) { + request = &DescribeAutoSnapshotPolicyExRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeAutoSnapshotPolicyEx", "ecs", "openAPI") + return +} + +// CreateDescribeAutoSnapshotPolicyExResponse creates a response to parse from DescribeAutoSnapshotPolicyEx response +func CreateDescribeAutoSnapshotPolicyExResponse() (response *DescribeAutoSnapshotPolicyExResponse) { + response = &DescribeAutoSnapshotPolicyExResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_available_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_available_resource.go new file mode 100644 index 0000000..c8b70de --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_available_resource.go @@ -0,0 +1,117 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAvailableResource invokes the ecs.DescribeAvailableResource API synchronously +// api document: https://help.aliyun.com/api/ecs/describeavailableresource.html +func (client *Client) DescribeAvailableResource(request *DescribeAvailableResourceRequest) (response *DescribeAvailableResourceResponse, err error) { + response = CreateDescribeAvailableResourceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAvailableResourceWithChan invokes the ecs.DescribeAvailableResource API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeavailableresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAvailableResourceWithChan(request *DescribeAvailableResourceRequest) (<-chan *DescribeAvailableResourceResponse, <-chan error) { + responseChan := make(chan *DescribeAvailableResourceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAvailableResource(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAvailableResourceWithCallback invokes the ecs.DescribeAvailableResource API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeavailableresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAvailableResourceWithCallback(request *DescribeAvailableResourceRequest, callback func(response *DescribeAvailableResourceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAvailableResourceResponse + var err error + defer close(result) + response, err = client.DescribeAvailableResource(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAvailableResourceRequest is the request struct for api DescribeAvailableResource +type DescribeAvailableResourceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + IoOptimized string `position:"Query" name:"IoOptimized"` + DataDiskCategory string `position:"Query" name:"DataDiskCategory"` + SystemDiskCategory string `position:"Query" name:"SystemDiskCategory"` + InstanceType string `position:"Query" name:"InstanceType"` + NetworkCategory string `position:"Query" name:"NetworkCategory"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DedicatedHostId string `position:"Query" name:"DedicatedHostId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SpotStrategy string `position:"Query" name:"SpotStrategy"` + DestinationResource string `position:"Query" name:"DestinationResource"` + ZoneId string `position:"Query" name:"ZoneId"` +} + +// DescribeAvailableResourceResponse is the response struct for api DescribeAvailableResource +type DescribeAvailableResourceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AvailableZones AvailableZonesInDescribeAvailableResource `json:"AvailableZones" xml:"AvailableZones"` +} + +// CreateDescribeAvailableResourceRequest creates a request to invoke DescribeAvailableResource API +func CreateDescribeAvailableResourceRequest() (request *DescribeAvailableResourceRequest) { + request = &DescribeAvailableResourceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeAvailableResource", "ecs", "openAPI") + return +} + +// CreateDescribeAvailableResourceResponse creates a response to parse from DescribeAvailableResource response +func CreateDescribeAvailableResourceResponse() (response *DescribeAvailableResourceResponse) { + response = &DescribeAvailableResourceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_limitation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_limitation.go new file mode 100644 index 0000000..4fc98a4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_limitation.go @@ -0,0 +1,112 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeBandwidthLimitation invokes the ecs.DescribeBandwidthLimitation API synchronously +// api document: https://help.aliyun.com/api/ecs/describebandwidthlimitation.html +func (client *Client) DescribeBandwidthLimitation(request *DescribeBandwidthLimitationRequest) (response *DescribeBandwidthLimitationResponse, err error) { + response = CreateDescribeBandwidthLimitationResponse() + err = client.DoAction(request, response) + return +} + +// DescribeBandwidthLimitationWithChan invokes the ecs.DescribeBandwidthLimitation API asynchronously +// api document: https://help.aliyun.com/api/ecs/describebandwidthlimitation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBandwidthLimitationWithChan(request *DescribeBandwidthLimitationRequest) (<-chan *DescribeBandwidthLimitationResponse, <-chan error) { + responseChan := make(chan *DescribeBandwidthLimitationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeBandwidthLimitation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeBandwidthLimitationWithCallback invokes the ecs.DescribeBandwidthLimitation API asynchronously +// api document: https://help.aliyun.com/api/ecs/describebandwidthlimitation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBandwidthLimitationWithCallback(request *DescribeBandwidthLimitationRequest, callback func(response *DescribeBandwidthLimitationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeBandwidthLimitationResponse + var err error + defer close(result) + response, err = client.DescribeBandwidthLimitation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeBandwidthLimitationRequest is the request struct for api DescribeBandwidthLimitation +type DescribeBandwidthLimitationRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceType string `position:"Query" name:"InstanceType"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + ResourceId string `position:"Query" name:"ResourceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OperationType string `position:"Query" name:"OperationType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SpotStrategy string `position:"Query" name:"SpotStrategy"` +} + +// DescribeBandwidthLimitationResponse is the response struct for api DescribeBandwidthLimitation +type DescribeBandwidthLimitationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Bandwidths Bandwidths `json:"Bandwidths" xml:"Bandwidths"` +} + +// CreateDescribeBandwidthLimitationRequest creates a request to invoke DescribeBandwidthLimitation API +func CreateDescribeBandwidthLimitationRequest() (request *DescribeBandwidthLimitationRequest) { + request = &DescribeBandwidthLimitationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeBandwidthLimitation", "ecs", "openAPI") + return +} + +// CreateDescribeBandwidthLimitationResponse creates a response to parse from DescribeBandwidthLimitation response +func CreateDescribeBandwidthLimitationResponse() (response *DescribeBandwidthLimitationResponse) { + response = &DescribeBandwidthLimitationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_packages.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_packages.go new file mode 100644 index 0000000..b42218d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_packages.go @@ -0,0 +1,114 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeBandwidthPackages invokes the ecs.DescribeBandwidthPackages API synchronously +// api document: https://help.aliyun.com/api/ecs/describebandwidthpackages.html +func (client *Client) DescribeBandwidthPackages(request *DescribeBandwidthPackagesRequest) (response *DescribeBandwidthPackagesResponse, err error) { + response = CreateDescribeBandwidthPackagesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeBandwidthPackagesWithChan invokes the ecs.DescribeBandwidthPackages API asynchronously +// api document: https://help.aliyun.com/api/ecs/describebandwidthpackages.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBandwidthPackagesWithChan(request *DescribeBandwidthPackagesRequest) (<-chan *DescribeBandwidthPackagesResponse, <-chan error) { + responseChan := make(chan *DescribeBandwidthPackagesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeBandwidthPackages(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeBandwidthPackagesWithCallback invokes the ecs.DescribeBandwidthPackages API asynchronously +// api document: https://help.aliyun.com/api/ecs/describebandwidthpackages.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBandwidthPackagesWithCallback(request *DescribeBandwidthPackagesRequest, callback func(response *DescribeBandwidthPackagesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeBandwidthPackagesResponse + var err error + defer close(result) + response, err = client.DescribeBandwidthPackages(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeBandwidthPackagesRequest is the request struct for api DescribeBandwidthPackages +type DescribeBandwidthPackagesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + NatGatewayId string `position:"Query" name:"NatGatewayId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeBandwidthPackagesResponse is the response struct for api DescribeBandwidthPackages +type DescribeBandwidthPackagesResponse 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"` + BandwidthPackages BandwidthPackages `json:"BandwidthPackages" xml:"BandwidthPackages"` +} + +// CreateDescribeBandwidthPackagesRequest creates a request to invoke DescribeBandwidthPackages API +func CreateDescribeBandwidthPackagesRequest() (request *DescribeBandwidthPackagesRequest) { + request = &DescribeBandwidthPackagesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeBandwidthPackages", "ecs", "openAPI") + return +} + +// CreateDescribeBandwidthPackagesResponse creates a response to parse from DescribeBandwidthPackages response +func CreateDescribeBandwidthPackagesResponse() (response *DescribeBandwidthPackagesResponse) { + response = &DescribeBandwidthPackagesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_classic_link_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_classic_link_instances.go new file mode 100644 index 0000000..ac277cd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_classic_link_instances.go @@ -0,0 +1,113 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeClassicLinkInstances invokes the ecs.DescribeClassicLinkInstances API synchronously +// api document: https://help.aliyun.com/api/ecs/describeclassiclinkinstances.html +func (client *Client) DescribeClassicLinkInstances(request *DescribeClassicLinkInstancesRequest) (response *DescribeClassicLinkInstancesResponse, err error) { + response = CreateDescribeClassicLinkInstancesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeClassicLinkInstancesWithChan invokes the ecs.DescribeClassicLinkInstances API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeclassiclinkinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClassicLinkInstancesWithChan(request *DescribeClassicLinkInstancesRequest) (<-chan *DescribeClassicLinkInstancesResponse, <-chan error) { + responseChan := make(chan *DescribeClassicLinkInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeClassicLinkInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeClassicLinkInstancesWithCallback invokes the ecs.DescribeClassicLinkInstances API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeclassiclinkinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClassicLinkInstancesWithCallback(request *DescribeClassicLinkInstancesRequest, callback func(response *DescribeClassicLinkInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeClassicLinkInstancesResponse + var err error + defer close(result) + response, err = client.DescribeClassicLinkInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeClassicLinkInstancesRequest is the request struct for api DescribeClassicLinkInstances +type DescribeClassicLinkInstancesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + VpcId string `position:"Query" name:"VpcId"` + PageSize string `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber string `position:"Query" name:"PageNumber"` +} + +// DescribeClassicLinkInstancesResponse is the response struct for api DescribeClassicLinkInstances +type DescribeClassicLinkInstancesResponse 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"` + Links Links `json:"Links" xml:"Links"` +} + +// CreateDescribeClassicLinkInstancesRequest creates a request to invoke DescribeClassicLinkInstances API +func CreateDescribeClassicLinkInstancesRequest() (request *DescribeClassicLinkInstancesRequest) { + request = &DescribeClassicLinkInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeClassicLinkInstances", "ecs", "openAPI") + return +} + +// CreateDescribeClassicLinkInstancesResponse creates a response to parse from DescribeClassicLinkInstances response +func CreateDescribeClassicLinkInstancesResponse() (response *DescribeClassicLinkInstancesResponse) { + response = &DescribeClassicLinkInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_cloud_assistant_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_cloud_assistant_status.go new file mode 100644 index 0000000..94f60a9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_cloud_assistant_status.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCloudAssistantStatus invokes the ecs.DescribeCloudAssistantStatus API synchronously +// api document: https://help.aliyun.com/api/ecs/describecloudassistantstatus.html +func (client *Client) DescribeCloudAssistantStatus(request *DescribeCloudAssistantStatusRequest) (response *DescribeCloudAssistantStatusResponse, err error) { + response = CreateDescribeCloudAssistantStatusResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCloudAssistantStatusWithChan invokes the ecs.DescribeCloudAssistantStatus API asynchronously +// api document: https://help.aliyun.com/api/ecs/describecloudassistantstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCloudAssistantStatusWithChan(request *DescribeCloudAssistantStatusRequest) (<-chan *DescribeCloudAssistantStatusResponse, <-chan error) { + responseChan := make(chan *DescribeCloudAssistantStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCloudAssistantStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCloudAssistantStatusWithCallback invokes the ecs.DescribeCloudAssistantStatus API asynchronously +// api document: https://help.aliyun.com/api/ecs/describecloudassistantstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCloudAssistantStatusWithCallback(request *DescribeCloudAssistantStatusRequest, callback func(response *DescribeCloudAssistantStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCloudAssistantStatusResponse + var err error + defer close(result) + response, err = client.DescribeCloudAssistantStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCloudAssistantStatusRequest is the request struct for api DescribeCloudAssistantStatus +type DescribeCloudAssistantStatusRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` +} + +// DescribeCloudAssistantStatusResponse is the response struct for api DescribeCloudAssistantStatus +type DescribeCloudAssistantStatusResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceCloudAssistantStatusSet InstanceCloudAssistantStatusSet `json:"InstanceCloudAssistantStatusSet" xml:"InstanceCloudAssistantStatusSet"` +} + +// CreateDescribeCloudAssistantStatusRequest creates a request to invoke DescribeCloudAssistantStatus API +func CreateDescribeCloudAssistantStatusRequest() (request *DescribeCloudAssistantStatusRequest) { + request = &DescribeCloudAssistantStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeCloudAssistantStatus", "ecs", "openAPI") + return +} + +// CreateDescribeCloudAssistantStatusResponse creates a response to parse from DescribeCloudAssistantStatus response +func CreateDescribeCloudAssistantStatusResponse() (response *DescribeCloudAssistantStatusResponse) { + response = &DescribeCloudAssistantStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_clusters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_clusters.go new file mode 100644 index 0000000..e6307d9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_clusters.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeClusters invokes the ecs.DescribeClusters API synchronously +// api document: https://help.aliyun.com/api/ecs/describeclusters.html +func (client *Client) DescribeClusters(request *DescribeClustersRequest) (response *DescribeClustersResponse, err error) { + response = CreateDescribeClustersResponse() + err = client.DoAction(request, response) + return +} + +// DescribeClustersWithChan invokes the ecs.DescribeClusters API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeclusters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClustersWithChan(request *DescribeClustersRequest) (<-chan *DescribeClustersResponse, <-chan error) { + responseChan := make(chan *DescribeClustersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeClusters(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeClustersWithCallback invokes the ecs.DescribeClusters API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeclusters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClustersWithCallback(request *DescribeClustersRequest, callback func(response *DescribeClustersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeClustersResponse + var err error + defer close(result) + response, err = client.DescribeClusters(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeClustersRequest is the request struct for api DescribeClusters +type DescribeClustersRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeClustersResponse is the response struct for api DescribeClusters +type DescribeClustersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Clusters Clusters `json:"Clusters" xml:"Clusters"` +} + +// CreateDescribeClustersRequest creates a request to invoke DescribeClusters API +func CreateDescribeClustersRequest() (request *DescribeClustersRequest) { + request = &DescribeClustersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeClusters", "ecs", "openAPI") + return +} + +// CreateDescribeClustersResponse creates a response to parse from DescribeClusters response +func CreateDescribeClustersResponse() (response *DescribeClustersResponse) { + response = &DescribeClustersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_commands.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_commands.go new file mode 100644 index 0000000..bddf8f4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_commands.go @@ -0,0 +1,116 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCommands invokes the ecs.DescribeCommands API synchronously +// api document: https://help.aliyun.com/api/ecs/describecommands.html +func (client *Client) DescribeCommands(request *DescribeCommandsRequest) (response *DescribeCommandsResponse, err error) { + response = CreateDescribeCommandsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCommandsWithChan invokes the ecs.DescribeCommands API asynchronously +// api document: https://help.aliyun.com/api/ecs/describecommands.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCommandsWithChan(request *DescribeCommandsRequest) (<-chan *DescribeCommandsResponse, <-chan error) { + responseChan := make(chan *DescribeCommandsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCommands(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCommandsWithCallback invokes the ecs.DescribeCommands API asynchronously +// api document: https://help.aliyun.com/api/ecs/describecommands.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCommandsWithCallback(request *DescribeCommandsRequest, callback func(response *DescribeCommandsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCommandsResponse + var err error + defer close(result) + response, err = client.DescribeCommands(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCommandsRequest is the request struct for api DescribeCommands +type DescribeCommandsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Description string `position:"Query" name:"Description"` + Type string `position:"Query" name:"Type"` + CommandId string `position:"Query" name:"CommandId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Name string `position:"Query" name:"Name"` +} + +// DescribeCommandsResponse is the response struct for api DescribeCommands +type DescribeCommandsResponse 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"` + Commands Commands `json:"Commands" xml:"Commands"` +} + +// CreateDescribeCommandsRequest creates a request to invoke DescribeCommands API +func CreateDescribeCommandsRequest() (request *DescribeCommandsRequest) { + request = &DescribeCommandsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeCommands", "ecs", "openAPI") + return +} + +// CreateDescribeCommandsResponse creates a response to parse from DescribeCommands response +func CreateDescribeCommandsResponse() (response *DescribeCommandsResponse) { + response = &DescribeCommandsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_set_topology.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_set_topology.go new file mode 100644 index 0000000..7775180 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_set_topology.go @@ -0,0 +1,113 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDeploymentSetTopology invokes the ecs.DescribeDeploymentSetTopology API synchronously +// api document: https://help.aliyun.com/api/ecs/describedeploymentsettopology.html +func (client *Client) DescribeDeploymentSetTopology(request *DescribeDeploymentSetTopologyRequest) (response *DescribeDeploymentSetTopologyResponse, err error) { + response = CreateDescribeDeploymentSetTopologyResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDeploymentSetTopologyWithChan invokes the ecs.DescribeDeploymentSetTopology API asynchronously +// api document: https://help.aliyun.com/api/ecs/describedeploymentsettopology.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDeploymentSetTopologyWithChan(request *DescribeDeploymentSetTopologyRequest) (<-chan *DescribeDeploymentSetTopologyResponse, <-chan error) { + responseChan := make(chan *DescribeDeploymentSetTopologyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDeploymentSetTopology(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDeploymentSetTopologyWithCallback invokes the ecs.DescribeDeploymentSetTopology API asynchronously +// api document: https://help.aliyun.com/api/ecs/describedeploymentsettopology.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDeploymentSetTopologyWithCallback(request *DescribeDeploymentSetTopologyRequest, callback func(response *DescribeDeploymentSetTopologyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDeploymentSetTopologyResponse + var err error + defer close(result) + response, err = client.DescribeDeploymentSetTopology(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDeploymentSetTopologyRequest is the request struct for api DescribeDeploymentSetTopology +type DescribeDeploymentSetTopologyRequest struct { + *requests.RpcRequest + DeploymentSetId string `position:"Query" name:"DeploymentSetId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Granularity string `position:"Query" name:"Granularity"` + Domain string `position:"Query" name:"Domain"` + NetworkType string `position:"Query" name:"NetworkType"` + DeploymentSetName string `position:"Query" name:"DeploymentSetName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Strategy string `position:"Query" name:"Strategy"` +} + +// DescribeDeploymentSetTopologyResponse is the response struct for api DescribeDeploymentSetTopology +type DescribeDeploymentSetTopologyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Switchs Switchs `json:"Switchs" xml:"Switchs"` + Racks Racks `json:"Racks" xml:"Racks"` +} + +// CreateDescribeDeploymentSetTopologyRequest creates a request to invoke DescribeDeploymentSetTopology API +func CreateDescribeDeploymentSetTopologyRequest() (request *DescribeDeploymentSetTopologyRequest) { + request = &DescribeDeploymentSetTopologyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDeploymentSetTopology", "ecs", "openAPI") + return +} + +// CreateDescribeDeploymentSetTopologyResponse creates a response to parse from DescribeDeploymentSetTopology response +func CreateDescribeDeploymentSetTopologyResponse() (response *DescribeDeploymentSetTopologyResponse) { + response = &DescribeDeploymentSetTopologyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_sets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_sets.go new file mode 100644 index 0000000..05ed0b5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_sets.go @@ -0,0 +1,119 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDeploymentSets invokes the ecs.DescribeDeploymentSets API synchronously +// api document: https://help.aliyun.com/api/ecs/describedeploymentsets.html +func (client *Client) DescribeDeploymentSets(request *DescribeDeploymentSetsRequest) (response *DescribeDeploymentSetsResponse, err error) { + response = CreateDescribeDeploymentSetsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDeploymentSetsWithChan invokes the ecs.DescribeDeploymentSets API asynchronously +// api document: https://help.aliyun.com/api/ecs/describedeploymentsets.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDeploymentSetsWithChan(request *DescribeDeploymentSetsRequest) (<-chan *DescribeDeploymentSetsResponse, <-chan error) { + responseChan := make(chan *DescribeDeploymentSetsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDeploymentSets(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDeploymentSetsWithCallback invokes the ecs.DescribeDeploymentSets API asynchronously +// api document: https://help.aliyun.com/api/ecs/describedeploymentsets.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDeploymentSetsWithCallback(request *DescribeDeploymentSetsRequest, callback func(response *DescribeDeploymentSetsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDeploymentSetsResponse + var err error + defer close(result) + response, err = client.DescribeDeploymentSets(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDeploymentSetsRequest is the request struct for api DescribeDeploymentSets +type DescribeDeploymentSetsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + NetworkType string `position:"Query" name:"NetworkType"` + DeploymentSetName string `position:"Query" name:"DeploymentSetName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + DeploymentSetIds string `position:"Query" name:"DeploymentSetIds"` + Granularity string `position:"Query" name:"Granularity"` + Domain string `position:"Query" name:"Domain"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Strategy string `position:"Query" name:"Strategy"` +} + +// DescribeDeploymentSetsResponse is the response struct for api DescribeDeploymentSets +type DescribeDeploymentSetsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegionId string `json:"RegionId" xml:"RegionId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + DeploymentSets DeploymentSets `json:"DeploymentSets" xml:"DeploymentSets"` +} + +// CreateDescribeDeploymentSetsRequest creates a request to invoke DescribeDeploymentSets API +func CreateDescribeDeploymentSetsRequest() (request *DescribeDeploymentSetsRequest) { + request = &DescribeDeploymentSetsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDeploymentSets", "ecs", "openAPI") + return +} + +// CreateDescribeDeploymentSetsResponse creates a response to parse from DescribeDeploymentSets response +func CreateDescribeDeploymentSetsResponse() (response *DescribeDeploymentSetsResponse) { + response = &DescribeDeploymentSetsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disk_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disk_monitor_data.go new file mode 100644 index 0000000..6b7a61e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disk_monitor_data.go @@ -0,0 +1,112 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDiskMonitorData invokes the ecs.DescribeDiskMonitorData API synchronously +// api document: https://help.aliyun.com/api/ecs/describediskmonitordata.html +func (client *Client) DescribeDiskMonitorData(request *DescribeDiskMonitorDataRequest) (response *DescribeDiskMonitorDataResponse, err error) { + response = CreateDescribeDiskMonitorDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDiskMonitorDataWithChan invokes the ecs.DescribeDiskMonitorData API asynchronously +// api document: https://help.aliyun.com/api/ecs/describediskmonitordata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDiskMonitorDataWithChan(request *DescribeDiskMonitorDataRequest) (<-chan *DescribeDiskMonitorDataResponse, <-chan error) { + responseChan := make(chan *DescribeDiskMonitorDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDiskMonitorData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDiskMonitorDataWithCallback invokes the ecs.DescribeDiskMonitorData API asynchronously +// api document: https://help.aliyun.com/api/ecs/describediskmonitordata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDiskMonitorDataWithCallback(request *DescribeDiskMonitorDataRequest, callback func(response *DescribeDiskMonitorDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDiskMonitorDataResponse + var err error + defer close(result) + response, err = client.DescribeDiskMonitorData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDiskMonitorDataRequest is the request struct for api DescribeDiskMonitorData +type DescribeDiskMonitorDataRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Period requests.Integer `position:"Query" name:"Period"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EndTime string `position:"Query" name:"EndTime"` + DiskId string `position:"Query" name:"DiskId"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDiskMonitorDataResponse is the response struct for api DescribeDiskMonitorData +type DescribeDiskMonitorDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + MonitorData MonitorDataInDescribeDiskMonitorData `json:"MonitorData" xml:"MonitorData"` +} + +// CreateDescribeDiskMonitorDataRequest creates a request to invoke DescribeDiskMonitorData API +func CreateDescribeDiskMonitorDataRequest() (request *DescribeDiskMonitorDataRequest) { + request = &DescribeDiskMonitorDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDiskMonitorData", "ecs", "openAPI") + return +} + +// CreateDescribeDiskMonitorDataResponse creates a response to parse from DescribeDiskMonitorData response +func CreateDescribeDiskMonitorDataResponse() (response *DescribeDiskMonitorDataResponse) { + response = &DescribeDiskMonitorDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks.go new file mode 100644 index 0000000..967ecd1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks.go @@ -0,0 +1,147 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDisks invokes the ecs.DescribeDisks API synchronously +// api document: https://help.aliyun.com/api/ecs/describedisks.html +func (client *Client) DescribeDisks(request *DescribeDisksRequest) (response *DescribeDisksResponse, err error) { + response = CreateDescribeDisksResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDisksWithChan invokes the ecs.DescribeDisks API asynchronously +// api document: https://help.aliyun.com/api/ecs/describedisks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDisksWithChan(request *DescribeDisksRequest) (<-chan *DescribeDisksResponse, <-chan error) { + responseChan := make(chan *DescribeDisksResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDisks(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDisksWithCallback invokes the ecs.DescribeDisks API asynchronously +// api document: https://help.aliyun.com/api/ecs/describedisks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDisksWithCallback(request *DescribeDisksRequest, callback func(response *DescribeDisksResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDisksResponse + var err error + defer close(result) + response, err = client.DescribeDisks(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDisksRequest is the request struct for api DescribeDisks +type DescribeDisksRequest struct { + *requests.RpcRequest + Tag4Value string `position:"Query" name:"Tag.4.Value"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SnapshotId string `position:"Query" name:"SnapshotId"` + Tag2Key string `position:"Query" name:"Tag.2.Key"` + Filter2Value string `position:"Query" name:"Filter.2.Value"` + AutoSnapshotPolicyId string `position:"Query" name:"AutoSnapshotPolicyId"` + Tag3Key string `position:"Query" name:"Tag.3.Key"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + DiskName string `position:"Query" name:"DiskName"` + Tag1Value string `position:"Query" name:"Tag.1.Value"` + DeleteAutoSnapshot requests.Boolean `position:"Query" name:"DeleteAutoSnapshot"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + DiskChargeType string `position:"Query" name:"DiskChargeType"` + LockReason string `position:"Query" name:"LockReason"` + Filter1Key string `position:"Query" name:"Filter.1.Key"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + DiskIds string `position:"Query" name:"DiskIds"` + DeleteWithInstance requests.Boolean `position:"Query" name:"DeleteWithInstance"` + Tag3Value string `position:"Query" name:"Tag.3.Value"` + EnableAutoSnapshot requests.Boolean `position:"Query" name:"EnableAutoSnapshot"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + Tag5Key string `position:"Query" name:"Tag.5.Key"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Filter1Value string `position:"Query" name:"Filter.1.Value"` + Portable requests.Boolean `position:"Query" name:"Portable"` + EnableAutomatedSnapshotPolicy requests.Boolean `position:"Query" name:"EnableAutomatedSnapshotPolicy"` + Filter2Key string `position:"Query" name:"Filter.2.Key"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + DiskType string `position:"Query" name:"DiskType"` + Tag5Value string `position:"Query" name:"Tag.5.Value"` + Tag1Key string `position:"Query" name:"Tag.1.Key"` + AdditionalAttributes *[]string `position:"Query" name:"AdditionalAttributes" type:"Repeated"` + EnableShared requests.Boolean `position:"Query" name:"EnableShared"` + InstanceId string `position:"Query" name:"InstanceId"` + Encrypted requests.Boolean `position:"Query" name:"Encrypted"` + Tag2Value string `position:"Query" name:"Tag.2.Value"` + ZoneId string `position:"Query" name:"ZoneId"` + Tag4Key string `position:"Query" name:"Tag.4.Key"` + Category string `position:"Query" name:"Category"` + Status string `position:"Query" name:"Status"` +} + +// DescribeDisksResponse is the response struct for api DescribeDisks +type DescribeDisksResponse 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"` + Disks Disks `json:"Disks" xml:"Disks"` +} + +// CreateDescribeDisksRequest creates a request to invoke DescribeDisks API +func CreateDescribeDisksRequest() (request *DescribeDisksRequest) { + request = &DescribeDisksRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDisks", "ecs", "openAPI") + return +} + +// CreateDescribeDisksResponse creates a response to parse from DescribeDisks response +func CreateDescribeDisksResponse() (response *DescribeDisksResponse) { + response = &DescribeDisksResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks_full_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks_full_status.go new file mode 100644 index 0000000..d9ec70e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks_full_status.go @@ -0,0 +1,119 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDisksFullStatus invokes the ecs.DescribeDisksFullStatus API synchronously +// api document: https://help.aliyun.com/api/ecs/describedisksfullstatus.html +func (client *Client) DescribeDisksFullStatus(request *DescribeDisksFullStatusRequest) (response *DescribeDisksFullStatusResponse, err error) { + response = CreateDescribeDisksFullStatusResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDisksFullStatusWithChan invokes the ecs.DescribeDisksFullStatus API asynchronously +// api document: https://help.aliyun.com/api/ecs/describedisksfullstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDisksFullStatusWithChan(request *DescribeDisksFullStatusRequest) (<-chan *DescribeDisksFullStatusResponse, <-chan error) { + responseChan := make(chan *DescribeDisksFullStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDisksFullStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDisksFullStatusWithCallback invokes the ecs.DescribeDisksFullStatus API asynchronously +// api document: https://help.aliyun.com/api/ecs/describedisksfullstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDisksFullStatusWithCallback(request *DescribeDisksFullStatusRequest, callback func(response *DescribeDisksFullStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDisksFullStatusResponse + var err error + defer close(result) + response, err = client.DescribeDisksFullStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDisksFullStatusRequest is the request struct for api DescribeDisksFullStatus +type DescribeDisksFullStatusRequest struct { + *requests.RpcRequest + EventId *[]string `position:"Query" name:"EventId" type:"Repeated"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + EventTimeStart string `position:"Query" name:"EventTime.Start"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + DiskId *[]string `position:"Query" name:"DiskId" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + EventTimeEnd string `position:"Query" name:"EventTime.End"` + HealthStatus string `position:"Query" name:"HealthStatus"` + EventType string `position:"Query" name:"EventType"` + Status string `position:"Query" name:"Status"` +} + +// DescribeDisksFullStatusResponse is the response struct for api DescribeDisksFullStatus +type DescribeDisksFullStatusResponse 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"` + DiskFullStatusSet DiskFullStatusSet `json:"DiskFullStatusSet" xml:"DiskFullStatusSet"` +} + +// CreateDescribeDisksFullStatusRequest creates a request to invoke DescribeDisksFullStatus API +func CreateDescribeDisksFullStatusRequest() (request *DescribeDisksFullStatusRequest) { + request = &DescribeDisksFullStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDisksFullStatus", "ecs", "openAPI") + return +} + +// CreateDescribeDisksFullStatusResponse creates a response to parse from DescribeDisksFullStatus response +func CreateDescribeDisksFullStatusResponse() (response *DescribeDisksFullStatusResponse) { + response = &DescribeDisksFullStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_addresses.go new file mode 100644 index 0000000..7bd6916 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_addresses.go @@ -0,0 +1,123 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeEipAddresses invokes the ecs.DescribeEipAddresses API synchronously +// api document: https://help.aliyun.com/api/ecs/describeeipaddresses.html +func (client *Client) DescribeEipAddresses(request *DescribeEipAddressesRequest) (response *DescribeEipAddressesResponse, err error) { + response = CreateDescribeEipAddressesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeEipAddressesWithChan invokes the ecs.DescribeEipAddresses API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeeipaddresses.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeEipAddressesWithChan(request *DescribeEipAddressesRequest) (<-chan *DescribeEipAddressesResponse, <-chan error) { + responseChan := make(chan *DescribeEipAddressesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeEipAddresses(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeEipAddressesWithCallback invokes the ecs.DescribeEipAddresses API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeeipaddresses.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeEipAddressesWithCallback(request *DescribeEipAddressesRequest, callback func(response *DescribeEipAddressesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeEipAddressesResponse + var err error + defer close(result) + response, err = client.DescribeEipAddresses(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeEipAddressesRequest is the request struct for api DescribeEipAddresses +type DescribeEipAddressesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Filter2Value string `position:"Query" name:"Filter.2.Value"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AllocationId string `position:"Query" name:"AllocationId"` + Filter1Value string `position:"Query" name:"Filter.1.Value"` + Filter2Key string `position:"Query" name:"Filter.2.Key"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + EipAddress string `position:"Query" name:"EipAddress"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + LockReason string `position:"Query" name:"LockReason"` + Filter1Key string `position:"Query" name:"Filter.1.Key"` + AssociatedInstanceType string `position:"Query" name:"AssociatedInstanceType"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ChargeType string `position:"Query" name:"ChargeType"` + AssociatedInstanceId string `position:"Query" name:"AssociatedInstanceId"` + Status string `position:"Query" name:"Status"` +} + +// DescribeEipAddressesResponse is the response struct for api DescribeEipAddresses +type DescribeEipAddressesResponse 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"` + EipAddresses EipAddresses `json:"EipAddresses" xml:"EipAddresses"` +} + +// CreateDescribeEipAddressesRequest creates a request to invoke DescribeEipAddresses API +func CreateDescribeEipAddressesRequest() (request *DescribeEipAddressesRequest) { + request = &DescribeEipAddressesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeEipAddresses", "ecs", "openAPI") + return +} + +// CreateDescribeEipAddressesResponse creates a response to parse from DescribeEipAddresses response +func CreateDescribeEipAddressesResponse() (response *DescribeEipAddressesResponse) { + response = &DescribeEipAddressesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_monitor_data.go new file mode 100644 index 0000000..4efa1d8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_monitor_data.go @@ -0,0 +1,111 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeEipMonitorData invokes the ecs.DescribeEipMonitorData API synchronously +// api document: https://help.aliyun.com/api/ecs/describeeipmonitordata.html +func (client *Client) DescribeEipMonitorData(request *DescribeEipMonitorDataRequest) (response *DescribeEipMonitorDataResponse, err error) { + response = CreateDescribeEipMonitorDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeEipMonitorDataWithChan invokes the ecs.DescribeEipMonitorData API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeeipmonitordata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeEipMonitorDataWithChan(request *DescribeEipMonitorDataRequest) (<-chan *DescribeEipMonitorDataResponse, <-chan error) { + responseChan := make(chan *DescribeEipMonitorDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeEipMonitorData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeEipMonitorDataWithCallback invokes the ecs.DescribeEipMonitorData API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeeipmonitordata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeEipMonitorDataWithCallback(request *DescribeEipMonitorDataRequest, callback func(response *DescribeEipMonitorDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeEipMonitorDataResponse + var err error + defer close(result) + response, err = client.DescribeEipMonitorData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeEipMonitorDataRequest is the request struct for api DescribeEipMonitorData +type DescribeEipMonitorDataRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Period requests.Integer `position:"Query" name:"Period"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EndTime string `position:"Query" name:"EndTime"` + AllocationId string `position:"Query" name:"AllocationId"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeEipMonitorDataResponse is the response struct for api DescribeEipMonitorData +type DescribeEipMonitorDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + EipMonitorDatas EipMonitorDatasInDescribeEipMonitorData `json:"EipMonitorDatas" xml:"EipMonitorDatas"` +} + +// CreateDescribeEipMonitorDataRequest creates a request to invoke DescribeEipMonitorData API +func CreateDescribeEipMonitorDataRequest() (request *DescribeEipMonitorDataRequest) { + request = &DescribeEipMonitorDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeEipMonitorData", "ecs", "openAPI") + return +} + +// CreateDescribeEipMonitorDataResponse creates a response to parse from DescribeEipMonitorData response +func CreateDescribeEipMonitorDataResponse() (response *DescribeEipMonitorDataResponse) { + response = &DescribeEipMonitorDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_event_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_event_detail.go new file mode 100644 index 0000000..561b16e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_event_detail.go @@ -0,0 +1,119 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeEventDetail invokes the ecs.DescribeEventDetail API synchronously +// api document: https://help.aliyun.com/api/ecs/describeeventdetail.html +func (client *Client) DescribeEventDetail(request *DescribeEventDetailRequest) (response *DescribeEventDetailResponse, err error) { + response = CreateDescribeEventDetailResponse() + err = client.DoAction(request, response) + return +} + +// DescribeEventDetailWithChan invokes the ecs.DescribeEventDetail API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeeventdetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeEventDetailWithChan(request *DescribeEventDetailRequest) (<-chan *DescribeEventDetailResponse, <-chan error) { + responseChan := make(chan *DescribeEventDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeEventDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeEventDetailWithCallback invokes the ecs.DescribeEventDetail API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeeventdetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeEventDetailWithCallback(request *DescribeEventDetailRequest, callback func(response *DescribeEventDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeEventDetailResponse + var err error + defer close(result) + response, err = client.DescribeEventDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeEventDetailRequest is the request struct for api DescribeEventDetail +type DescribeEventDetailRequest struct { + *requests.RpcRequest + EventId string `position:"Query" name:"EventId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeEventDetailResponse is the response struct for api DescribeEventDetail +type DescribeEventDetailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ResourceId string `json:"ResourceId" xml:"ResourceId"` + EventType string `json:"EventType" xml:"EventType"` + EventCategory string `json:"EventCategory" xml:"EventCategory"` + Status string `json:"Status" xml:"Status"` + SupportModify string `json:"SupportModify" xml:"SupportModify"` + PlanTime string `json:"PlanTime" xml:"PlanTime"` + ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` + EventId string `json:"EventId" xml:"EventId"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + EffectTime string `json:"EffectTime" xml:"EffectTime"` + LimitTime string `json:"LimitTime" xml:"LimitTime"` + Mark string `json:"Mark" xml:"Mark"` +} + +// CreateDescribeEventDetailRequest creates a request to invoke DescribeEventDetail API +func CreateDescribeEventDetailRequest() (request *DescribeEventDetailRequest) { + request = &DescribeEventDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeEventDetail", "ecs", "openAPI") + return +} + +// CreateDescribeEventDetailResponse creates a response to parse from DescribeEventDetail response +func CreateDescribeEventDetailResponse() (response *DescribeEventDetailResponse) { + response = &DescribeEventDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_forward_table_entries.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_forward_table_entries.go new file mode 100644 index 0000000..674c929 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_forward_table_entries.go @@ -0,0 +1,114 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeForwardTableEntries invokes the ecs.DescribeForwardTableEntries API synchronously +// api document: https://help.aliyun.com/api/ecs/describeforwardtableentries.html +func (client *Client) DescribeForwardTableEntries(request *DescribeForwardTableEntriesRequest) (response *DescribeForwardTableEntriesResponse, err error) { + response = CreateDescribeForwardTableEntriesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeForwardTableEntriesWithChan invokes the ecs.DescribeForwardTableEntries API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeforwardtableentries.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeForwardTableEntriesWithChan(request *DescribeForwardTableEntriesRequest) (<-chan *DescribeForwardTableEntriesResponse, <-chan error) { + responseChan := make(chan *DescribeForwardTableEntriesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeForwardTableEntries(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeForwardTableEntriesWithCallback invokes the ecs.DescribeForwardTableEntries API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeforwardtableentries.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeForwardTableEntriesWithCallback(request *DescribeForwardTableEntriesRequest, callback func(response *DescribeForwardTableEntriesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeForwardTableEntriesResponse + var err error + defer close(result) + response, err = client.DescribeForwardTableEntries(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeForwardTableEntriesRequest is the request struct for api DescribeForwardTableEntries +type DescribeForwardTableEntriesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ForwardEntryId string `position:"Query" name:"ForwardEntryId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ForwardTableId string `position:"Query" name:"ForwardTableId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeForwardTableEntriesResponse is the response struct for api DescribeForwardTableEntries +type DescribeForwardTableEntriesResponse 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"` + ForwardTableEntries ForwardTableEntries `json:"ForwardTableEntries" xml:"ForwardTableEntries"` +} + +// CreateDescribeForwardTableEntriesRequest creates a request to invoke DescribeForwardTableEntries API +func CreateDescribeForwardTableEntriesRequest() (request *DescribeForwardTableEntriesRequest) { + request = &DescribeForwardTableEntriesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeForwardTableEntries", "ecs", "openAPI") + return +} + +// CreateDescribeForwardTableEntriesResponse creates a response to parse from DescribeForwardTableEntries response +func CreateDescribeForwardTableEntriesResponse() (response *DescribeForwardTableEntriesResponse) { + response = &DescribeForwardTableEntriesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_ha_vips.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_ha_vips.go new file mode 100644 index 0000000..c9e87a0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_ha_vips.go @@ -0,0 +1,119 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeHaVips invokes the ecs.DescribeHaVips API synchronously +// api document: https://help.aliyun.com/api/ecs/describehavips.html +func (client *Client) DescribeHaVips(request *DescribeHaVipsRequest) (response *DescribeHaVipsResponse, err error) { + response = CreateDescribeHaVipsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeHaVipsWithChan invokes the ecs.DescribeHaVips API asynchronously +// api document: https://help.aliyun.com/api/ecs/describehavips.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeHaVipsWithChan(request *DescribeHaVipsRequest) (<-chan *DescribeHaVipsResponse, <-chan error) { + responseChan := make(chan *DescribeHaVipsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeHaVips(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeHaVipsWithCallback invokes the ecs.DescribeHaVips API asynchronously +// api document: https://help.aliyun.com/api/ecs/describehavips.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeHaVipsWithCallback(request *DescribeHaVipsRequest, callback func(response *DescribeHaVipsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeHaVipsResponse + var err error + defer close(result) + response, err = client.DescribeHaVips(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeHaVipsRequest is the request struct for api DescribeHaVips +type DescribeHaVipsRequest struct { + *requests.RpcRequest + Filter *[]DescribeHaVipsFilter `position:"Query" name:"Filter" type:"Repeated"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeHaVipsFilter is a repeated param struct in DescribeHaVipsRequest +type DescribeHaVipsFilter struct { + Key string `name:"Key"` + Value *[]string `name:"Value" type:"Repeated"` +} + +// DescribeHaVipsResponse is the response struct for api DescribeHaVips +type DescribeHaVipsResponse 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"` + HaVips HaVips `json:"HaVips" xml:"HaVips"` +} + +// CreateDescribeHaVipsRequest creates a request to invoke DescribeHaVips API +func CreateDescribeHaVipsRequest() (request *DescribeHaVipsRequest) { + request = &DescribeHaVipsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeHaVips", "ecs", "openAPI") + return +} + +// CreateDescribeHaVipsResponse creates a response to parse from DescribeHaVips response +func CreateDescribeHaVipsResponse() (response *DescribeHaVipsResponse) { + response = &DescribeHaVipsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_hpc_clusters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_hpc_clusters.go new file mode 100644 index 0000000..637ddc0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_hpc_clusters.go @@ -0,0 +1,114 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeHpcClusters invokes the ecs.DescribeHpcClusters API synchronously +// api document: https://help.aliyun.com/api/ecs/describehpcclusters.html +func (client *Client) DescribeHpcClusters(request *DescribeHpcClustersRequest) (response *DescribeHpcClustersResponse, err error) { + response = CreateDescribeHpcClustersResponse() + err = client.DoAction(request, response) + return +} + +// DescribeHpcClustersWithChan invokes the ecs.DescribeHpcClusters API asynchronously +// api document: https://help.aliyun.com/api/ecs/describehpcclusters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeHpcClustersWithChan(request *DescribeHpcClustersRequest) (<-chan *DescribeHpcClustersResponse, <-chan error) { + responseChan := make(chan *DescribeHpcClustersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeHpcClusters(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeHpcClustersWithCallback invokes the ecs.DescribeHpcClusters API asynchronously +// api document: https://help.aliyun.com/api/ecs/describehpcclusters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeHpcClustersWithCallback(request *DescribeHpcClustersRequest, callback func(response *DescribeHpcClustersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeHpcClustersResponse + var err error + defer close(result) + response, err = client.DescribeHpcClusters(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeHpcClustersRequest is the request struct for api DescribeHpcClusters +type DescribeHpcClustersRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + HpcClusterIds string `position:"Query" name:"HpcClusterIds"` +} + +// DescribeHpcClustersResponse is the response struct for api DescribeHpcClusters +type DescribeHpcClustersResponse 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"` + HpcClusters HpcClusters `json:"HpcClusters" xml:"HpcClusters"` +} + +// CreateDescribeHpcClustersRequest creates a request to invoke DescribeHpcClusters API +func CreateDescribeHpcClustersRequest() (request *DescribeHpcClustersRequest) { + request = &DescribeHpcClustersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeHpcClusters", "ecs", "openAPI") + return +} + +// CreateDescribeHpcClustersResponse creates a response to parse from DescribeHpcClusters response +func CreateDescribeHpcClustersResponse() (response *DescribeHpcClustersResponse) { + response = &DescribeHpcClustersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_share_permission.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_share_permission.go new file mode 100644 index 0000000..ff10b8d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_share_permission.go @@ -0,0 +1,116 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeImageSharePermission invokes the ecs.DescribeImageSharePermission API synchronously +// api document: https://help.aliyun.com/api/ecs/describeimagesharepermission.html +func (client *Client) DescribeImageSharePermission(request *DescribeImageSharePermissionRequest) (response *DescribeImageSharePermissionResponse, err error) { + response = CreateDescribeImageSharePermissionResponse() + err = client.DoAction(request, response) + return +} + +// DescribeImageSharePermissionWithChan invokes the ecs.DescribeImageSharePermission API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeimagesharepermission.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeImageSharePermissionWithChan(request *DescribeImageSharePermissionRequest) (<-chan *DescribeImageSharePermissionResponse, <-chan error) { + responseChan := make(chan *DescribeImageSharePermissionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeImageSharePermission(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeImageSharePermissionWithCallback invokes the ecs.DescribeImageSharePermission API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeimagesharepermission.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeImageSharePermissionWithCallback(request *DescribeImageSharePermissionRequest, callback func(response *DescribeImageSharePermissionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeImageSharePermissionResponse + var err error + defer close(result) + response, err = client.DescribeImageSharePermission(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeImageSharePermissionRequest is the request struct for api DescribeImageSharePermission +type DescribeImageSharePermissionRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ImageId string `position:"Query" name:"ImageId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeImageSharePermissionResponse is the response struct for api DescribeImageSharePermission +type DescribeImageSharePermissionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegionId string `json:"RegionId" xml:"RegionId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + ImageId string `json:"ImageId" xml:"ImageId"` + ShareGroups ShareGroups `json:"ShareGroups" xml:"ShareGroups"` + Accounts Accounts `json:"Accounts" xml:"Accounts"` +} + +// CreateDescribeImageSharePermissionRequest creates a request to invoke DescribeImageSharePermission API +func CreateDescribeImageSharePermissionRequest() (request *DescribeImageSharePermissionRequest) { + request = &DescribeImageSharePermissionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeImageSharePermission", "ecs", "openAPI") + return +} + +// CreateDescribeImageSharePermissionResponse creates a response to parse from DescribeImageSharePermission response +func CreateDescribeImageSharePermissionResponse() (response *DescribeImageSharePermissionResponse) { + response = &DescribeImageSharePermissionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_support_instance_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_support_instance_types.go new file mode 100644 index 0000000..b37e576 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_support_instance_types.go @@ -0,0 +1,117 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeImageSupportInstanceTypes invokes the ecs.DescribeImageSupportInstanceTypes API synchronously +// api document: https://help.aliyun.com/api/ecs/describeimagesupportinstancetypes.html +func (client *Client) DescribeImageSupportInstanceTypes(request *DescribeImageSupportInstanceTypesRequest) (response *DescribeImageSupportInstanceTypesResponse, err error) { + response = CreateDescribeImageSupportInstanceTypesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeImageSupportInstanceTypesWithChan invokes the ecs.DescribeImageSupportInstanceTypes API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeimagesupportinstancetypes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeImageSupportInstanceTypesWithChan(request *DescribeImageSupportInstanceTypesRequest) (<-chan *DescribeImageSupportInstanceTypesResponse, <-chan error) { + responseChan := make(chan *DescribeImageSupportInstanceTypesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeImageSupportInstanceTypes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeImageSupportInstanceTypesWithCallback invokes the ecs.DescribeImageSupportInstanceTypes API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeimagesupportinstancetypes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeImageSupportInstanceTypesWithCallback(request *DescribeImageSupportInstanceTypesRequest, callback func(response *DescribeImageSupportInstanceTypesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeImageSupportInstanceTypesResponse + var err error + defer close(result) + response, err = client.DescribeImageSupportInstanceTypes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeImageSupportInstanceTypesRequest is the request struct for api DescribeImageSupportInstanceTypes +type DescribeImageSupportInstanceTypesRequest struct { + *requests.RpcRequest + ActionType string `position:"Query" name:"ActionType"` + Filter *[]DescribeImageSupportInstanceTypesFilter `position:"Query" name:"Filter" type:"Repeated"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ImageId string `position:"Query" name:"ImageId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeImageSupportInstanceTypesFilter is a repeated param struct in DescribeImageSupportInstanceTypesRequest +type DescribeImageSupportInstanceTypesFilter struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// DescribeImageSupportInstanceTypesResponse is the response struct for api DescribeImageSupportInstanceTypes +type DescribeImageSupportInstanceTypesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegionId string `json:"RegionId" xml:"RegionId"` + ImageId string `json:"ImageId" xml:"ImageId"` + InstanceTypes InstanceTypesInDescribeImageSupportInstanceTypes `json:"InstanceTypes" xml:"InstanceTypes"` +} + +// CreateDescribeImageSupportInstanceTypesRequest creates a request to invoke DescribeImageSupportInstanceTypes API +func CreateDescribeImageSupportInstanceTypesRequest() (request *DescribeImageSupportInstanceTypesRequest) { + request = &DescribeImageSupportInstanceTypesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeImageSupportInstanceTypes", "ecs", "openAPI") + return +} + +// CreateDescribeImageSupportInstanceTypesResponse creates a response to parse from DescribeImageSupportInstanceTypes response +func CreateDescribeImageSupportInstanceTypesResponse() (response *DescribeImageSupportInstanceTypesResponse) { + response = &DescribeImageSupportInstanceTypesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_images.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_images.go new file mode 100644 index 0000000..522ba4d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_images.go @@ -0,0 +1,145 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeImages invokes the ecs.DescribeImages API synchronously +// api document: https://help.aliyun.com/api/ecs/describeimages.html +func (client *Client) DescribeImages(request *DescribeImagesRequest) (response *DescribeImagesResponse, err error) { + response = CreateDescribeImagesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeImagesWithChan invokes the ecs.DescribeImages API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeimages.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeImagesWithChan(request *DescribeImagesRequest) (<-chan *DescribeImagesResponse, <-chan error) { + responseChan := make(chan *DescribeImagesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeImages(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeImagesWithCallback invokes the ecs.DescribeImages API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeimages.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeImagesWithCallback(request *DescribeImagesRequest, callback func(response *DescribeImagesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeImagesResponse + var err error + defer close(result) + response, err = client.DescribeImages(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeImagesRequest is the request struct for api DescribeImages +type DescribeImagesRequest struct { + *requests.RpcRequest + Tag4Value string `position:"Query" name:"Tag.4.Value"` + ActionType string `position:"Query" name:"ActionType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ImageId string `position:"Query" name:"ImageId"` + SnapshotId string `position:"Query" name:"SnapshotId"` + Tag2Key string `position:"Query" name:"Tag.2.Key"` + Usage string `position:"Query" name:"Usage"` + Tag3Key string `position:"Query" name:"Tag.3.Key"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"` + Tag1Value string `position:"Query" name:"Tag.1.Value"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + IsSupportIoOptimized requests.Boolean `position:"Query" name:"IsSupportIoOptimized"` + ImageName string `position:"Query" name:"ImageName"` + IsSupportCloudinit requests.Boolean `position:"Query" name:"IsSupportCloudinit"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + InstanceType string `position:"Query" name:"InstanceType"` + Tag3Value string `position:"Query" name:"Tag.3.Value"` + Architecture string `position:"Query" name:"Architecture"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + Tag5Key string `position:"Query" name:"Tag.5.Key"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ShowExpired requests.Boolean `position:"Query" name:"ShowExpired"` + OSType string `position:"Query" name:"OSType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tag5Value string `position:"Query" name:"Tag.5.Value"` + Tag1Key string `position:"Query" name:"Tag.1.Key"` + Filter *[]DescribeImagesFilter `position:"Query" name:"Filter" type:"Repeated"` + Tag2Value string `position:"Query" name:"Tag.2.Value"` + Tag4Key string `position:"Query" name:"Tag.4.Key"` + Status string `position:"Query" name:"Status"` +} + +// DescribeImagesFilter is a repeated param struct in DescribeImagesRequest +type DescribeImagesFilter struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// DescribeImagesResponse is the response struct for api DescribeImages +type DescribeImagesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegionId string `json:"RegionId" xml:"RegionId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + Images Images `json:"Images" xml:"Images"` +} + +// CreateDescribeImagesRequest creates a request to invoke DescribeImages API +func CreateDescribeImagesRequest() (request *DescribeImagesRequest) { + request = &DescribeImagesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeImages", "ecs", "openAPI") + return +} + +// CreateDescribeImagesResponse creates a response to parse from DescribeImages response +func CreateDescribeImagesResponse() (response *DescribeImagesResponse) { + response = &DescribeImagesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_attribute.go new file mode 100644 index 0000000..3d885f7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_attribute.go @@ -0,0 +1,137 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstanceAttribute invokes the ecs.DescribeInstanceAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/describeinstanceattribute.html +func (client *Client) DescribeInstanceAttribute(request *DescribeInstanceAttributeRequest) (response *DescribeInstanceAttributeResponse, err error) { + response = CreateDescribeInstanceAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstanceAttributeWithChan invokes the ecs.DescribeInstanceAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstanceattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceAttributeWithChan(request *DescribeInstanceAttributeRequest) (<-chan *DescribeInstanceAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeInstanceAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstanceAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstanceAttributeWithCallback invokes the ecs.DescribeInstanceAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstanceattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceAttributeWithCallback(request *DescribeInstanceAttributeRequest, callback func(response *DescribeInstanceAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstanceAttributeResponse + var err error + defer close(result) + response, err = client.DescribeInstanceAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstanceAttributeRequest is the request struct for api DescribeInstanceAttribute +type DescribeInstanceAttributeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeInstanceAttributeResponse is the response struct for api DescribeInstanceAttribute +type DescribeInstanceAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + ImageId string `json:"ImageId" xml:"ImageId"` + RegionId string `json:"RegionId" xml:"RegionId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + ClusterId string `json:"ClusterId" xml:"ClusterId"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + Cpu int `json:"Cpu" xml:"Cpu"` + Memory int `json:"Memory" xml:"Memory"` + HostName string `json:"HostName" xml:"HostName"` + Status string `json:"Status" xml:"Status"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + InternetMaxBandwidthIn int `json:"InternetMaxBandwidthIn" xml:"InternetMaxBandwidthIn"` + InternetMaxBandwidthOut int `json:"InternetMaxBandwidthOut" xml:"InternetMaxBandwidthOut"` + VlanId string `json:"VlanId" xml:"VlanId"` + SerialNumber string `json:"SerialNumber" xml:"SerialNumber"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Description string `json:"Description" xml:"Description"` + InstanceNetworkType string `json:"InstanceNetworkType" xml:"InstanceNetworkType"` + IoOptimized string `json:"IoOptimized" xml:"IoOptimized"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` + StoppedMode string `json:"StoppedMode" xml:"StoppedMode"` + SecurityGroupIds SecurityGroupIdsInDescribeInstanceAttribute `json:"SecurityGroupIds" xml:"SecurityGroupIds"` + PublicIpAddress PublicIpAddressInDescribeInstanceAttribute `json:"PublicIpAddress" xml:"PublicIpAddress"` + InnerIpAddress InnerIpAddressInDescribeInstanceAttribute `json:"InnerIpAddress" xml:"InnerIpAddress"` + VpcAttributes VpcAttributes `json:"VpcAttributes" xml:"VpcAttributes"` + EipAddress EipAddress `json:"EipAddress" xml:"EipAddress"` + DedicatedHostAttribute DedicatedHostAttribute `json:"DedicatedHostAttribute" xml:"DedicatedHostAttribute"` + OperationLocks OperationLocksInDescribeInstanceAttribute `json:"OperationLocks" xml:"OperationLocks"` +} + +// CreateDescribeInstanceAttributeRequest creates a request to invoke DescribeInstanceAttribute API +func CreateDescribeInstanceAttributeRequest() (request *DescribeInstanceAttributeRequest) { + request = &DescribeInstanceAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceAttribute", "ecs", "openAPI") + return +} + +// CreateDescribeInstanceAttributeResponse creates a response to parse from DescribeInstanceAttribute response +func CreateDescribeInstanceAttributeResponse() (response *DescribeInstanceAttributeResponse) { + response = &DescribeInstanceAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_auto_renew_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_auto_renew_attribute.go new file mode 100644 index 0000000..2a4a17e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_auto_renew_attribute.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstanceAutoRenewAttribute invokes the ecs.DescribeInstanceAutoRenewAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/describeinstanceautorenewattribute.html +func (client *Client) DescribeInstanceAutoRenewAttribute(request *DescribeInstanceAutoRenewAttributeRequest) (response *DescribeInstanceAutoRenewAttributeResponse, err error) { + response = CreateDescribeInstanceAutoRenewAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstanceAutoRenewAttributeWithChan invokes the ecs.DescribeInstanceAutoRenewAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstanceautorenewattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceAutoRenewAttributeWithChan(request *DescribeInstanceAutoRenewAttributeRequest) (<-chan *DescribeInstanceAutoRenewAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeInstanceAutoRenewAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstanceAutoRenewAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstanceAutoRenewAttributeWithCallback invokes the ecs.DescribeInstanceAutoRenewAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstanceautorenewattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceAutoRenewAttributeWithCallback(request *DescribeInstanceAutoRenewAttributeRequest, callback func(response *DescribeInstanceAutoRenewAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstanceAutoRenewAttributeResponse + var err error + defer close(result) + response, err = client.DescribeInstanceAutoRenewAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstanceAutoRenewAttributeRequest is the request struct for api DescribeInstanceAutoRenewAttribute +type DescribeInstanceAutoRenewAttributeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeInstanceAutoRenewAttributeResponse is the response struct for api DescribeInstanceAutoRenewAttribute +type DescribeInstanceAutoRenewAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceRenewAttributes InstanceRenewAttributes `json:"InstanceRenewAttributes" xml:"InstanceRenewAttributes"` +} + +// CreateDescribeInstanceAutoRenewAttributeRequest creates a request to invoke DescribeInstanceAutoRenewAttribute API +func CreateDescribeInstanceAutoRenewAttributeRequest() (request *DescribeInstanceAutoRenewAttributeRequest) { + request = &DescribeInstanceAutoRenewAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceAutoRenewAttribute", "ecs", "openAPI") + return +} + +// CreateDescribeInstanceAutoRenewAttributeResponse creates a response to parse from DescribeInstanceAutoRenewAttribute response +func CreateDescribeInstanceAutoRenewAttributeResponse() (response *DescribeInstanceAutoRenewAttributeResponse) { + response = &DescribeInstanceAutoRenewAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_history_events.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_history_events.go new file mode 100644 index 0000000..b4ab9f0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_history_events.go @@ -0,0 +1,122 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstanceHistoryEvents invokes the ecs.DescribeInstanceHistoryEvents API synchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancehistoryevents.html +func (client *Client) DescribeInstanceHistoryEvents(request *DescribeInstanceHistoryEventsRequest) (response *DescribeInstanceHistoryEventsResponse, err error) { + response = CreateDescribeInstanceHistoryEventsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstanceHistoryEventsWithChan invokes the ecs.DescribeInstanceHistoryEvents API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancehistoryevents.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceHistoryEventsWithChan(request *DescribeInstanceHistoryEventsRequest) (<-chan *DescribeInstanceHistoryEventsResponse, <-chan error) { + responseChan := make(chan *DescribeInstanceHistoryEventsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstanceHistoryEvents(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstanceHistoryEventsWithCallback invokes the ecs.DescribeInstanceHistoryEvents API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancehistoryevents.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceHistoryEventsWithCallback(request *DescribeInstanceHistoryEventsRequest, callback func(response *DescribeInstanceHistoryEventsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstanceHistoryEventsResponse + var err error + defer close(result) + response, err = client.DescribeInstanceHistoryEvents(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstanceHistoryEventsRequest is the request struct for api DescribeInstanceHistoryEvents +type DescribeInstanceHistoryEventsRequest struct { + *requests.RpcRequest + EventId *[]string `position:"Query" name:"EventId" type:"Repeated"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + EventCycleStatus string `position:"Query" name:"EventCycleStatus"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + InstanceEventCycleStatus *[]string `position:"Query" name:"InstanceEventCycleStatus" type:"Repeated"` + EventPublishTimeEnd string `position:"Query" name:"EventPublishTime.End"` + InstanceEventType *[]string `position:"Query" name:"InstanceEventType" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + NotBeforeStart string `position:"Query" name:"NotBefore.Start"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + EventPublishTimeStart string `position:"Query" name:"EventPublishTime.Start"` + InstanceId string `position:"Query" name:"InstanceId"` + NotBeforeEnd string `position:"Query" name:"NotBefore.End"` + EventType string `position:"Query" name:"EventType"` +} + +// DescribeInstanceHistoryEventsResponse is the response struct for api DescribeInstanceHistoryEvents +type DescribeInstanceHistoryEventsResponse 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"` + InstanceSystemEventSet InstanceSystemEventSet `json:"InstanceSystemEventSet" xml:"InstanceSystemEventSet"` +} + +// CreateDescribeInstanceHistoryEventsRequest creates a request to invoke DescribeInstanceHistoryEvents API +func CreateDescribeInstanceHistoryEventsRequest() (request *DescribeInstanceHistoryEventsRequest) { + request = &DescribeInstanceHistoryEventsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceHistoryEvents", "ecs", "openAPI") + return +} + +// CreateDescribeInstanceHistoryEventsResponse creates a response to parse from DescribeInstanceHistoryEvents response +func CreateDescribeInstanceHistoryEventsResponse() (response *DescribeInstanceHistoryEventsResponse) { + response = &DescribeInstanceHistoryEventsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_monitor_data.go new file mode 100644 index 0000000..a18b969 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_monitor_data.go @@ -0,0 +1,111 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstanceMonitorData invokes the ecs.DescribeInstanceMonitorData API synchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancemonitordata.html +func (client *Client) DescribeInstanceMonitorData(request *DescribeInstanceMonitorDataRequest) (response *DescribeInstanceMonitorDataResponse, err error) { + response = CreateDescribeInstanceMonitorDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstanceMonitorDataWithChan invokes the ecs.DescribeInstanceMonitorData API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancemonitordata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceMonitorDataWithChan(request *DescribeInstanceMonitorDataRequest) (<-chan *DescribeInstanceMonitorDataResponse, <-chan error) { + responseChan := make(chan *DescribeInstanceMonitorDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstanceMonitorData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstanceMonitorDataWithCallback invokes the ecs.DescribeInstanceMonitorData API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancemonitordata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceMonitorDataWithCallback(request *DescribeInstanceMonitorDataRequest, callback func(response *DescribeInstanceMonitorDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstanceMonitorDataResponse + var err error + defer close(result) + response, err = client.DescribeInstanceMonitorData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstanceMonitorDataRequest is the request struct for api DescribeInstanceMonitorData +type DescribeInstanceMonitorDataRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Period requests.Integer `position:"Query" name:"Period"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeInstanceMonitorDataResponse is the response struct for api DescribeInstanceMonitorData +type DescribeInstanceMonitorDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MonitorData MonitorDataInDescribeInstanceMonitorData `json:"MonitorData" xml:"MonitorData"` +} + +// CreateDescribeInstanceMonitorDataRequest creates a request to invoke DescribeInstanceMonitorData API +func CreateDescribeInstanceMonitorDataRequest() (request *DescribeInstanceMonitorDataRequest) { + request = &DescribeInstanceMonitorDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceMonitorData", "ecs", "openAPI") + return +} + +// CreateDescribeInstanceMonitorDataResponse creates a response to parse from DescribeInstanceMonitorData response +func CreateDescribeInstanceMonitorDataResponse() (response *DescribeInstanceMonitorDataResponse) { + response = &DescribeInstanceMonitorDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_physical_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_physical_attribute.go new file mode 100644 index 0000000..b5299bb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_physical_attribute.go @@ -0,0 +1,111 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstancePhysicalAttribute invokes the ecs.DescribeInstancePhysicalAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancephysicalattribute.html +func (client *Client) DescribeInstancePhysicalAttribute(request *DescribeInstancePhysicalAttributeRequest) (response *DescribeInstancePhysicalAttributeResponse, err error) { + response = CreateDescribeInstancePhysicalAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstancePhysicalAttributeWithChan invokes the ecs.DescribeInstancePhysicalAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancephysicalattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstancePhysicalAttributeWithChan(request *DescribeInstancePhysicalAttributeRequest) (<-chan *DescribeInstancePhysicalAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeInstancePhysicalAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstancePhysicalAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstancePhysicalAttributeWithCallback invokes the ecs.DescribeInstancePhysicalAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancephysicalattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstancePhysicalAttributeWithCallback(request *DescribeInstancePhysicalAttributeRequest, callback func(response *DescribeInstancePhysicalAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstancePhysicalAttributeResponse + var err error + defer close(result) + response, err = client.DescribeInstancePhysicalAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstancePhysicalAttributeRequest is the request struct for api DescribeInstancePhysicalAttribute +type DescribeInstancePhysicalAttributeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeInstancePhysicalAttributeResponse is the response struct for api DescribeInstancePhysicalAttribute +type DescribeInstancePhysicalAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + VlanId string `json:"VlanId" xml:"VlanId"` + NodeControllerId string `json:"NodeControllerId" xml:"NodeControllerId"` + RackId string `json:"RackId" xml:"RackId"` +} + +// CreateDescribeInstancePhysicalAttributeRequest creates a request to invoke DescribeInstancePhysicalAttribute API +func CreateDescribeInstancePhysicalAttributeRequest() (request *DescribeInstancePhysicalAttributeRequest) { + request = &DescribeInstancePhysicalAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstancePhysicalAttribute", "ecs", "openAPI") + return +} + +// CreateDescribeInstancePhysicalAttributeResponse creates a response to parse from DescribeInstancePhysicalAttribute response +func CreateDescribeInstancePhysicalAttributeResponse() (response *DescribeInstancePhysicalAttributeResponse) { + response = &DescribeInstancePhysicalAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_ram_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_ram_role.go new file mode 100644 index 0000000..19257b8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_ram_role.go @@ -0,0 +1,112 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstanceRamRole invokes the ecs.DescribeInstanceRamRole API synchronously +// api document: https://help.aliyun.com/api/ecs/describeinstanceramrole.html +func (client *Client) DescribeInstanceRamRole(request *DescribeInstanceRamRoleRequest) (response *DescribeInstanceRamRoleResponse, err error) { + response = CreateDescribeInstanceRamRoleResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstanceRamRoleWithChan invokes the ecs.DescribeInstanceRamRole API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstanceramrole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceRamRoleWithChan(request *DescribeInstanceRamRoleRequest) (<-chan *DescribeInstanceRamRoleResponse, <-chan error) { + responseChan := make(chan *DescribeInstanceRamRoleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstanceRamRole(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstanceRamRoleWithCallback invokes the ecs.DescribeInstanceRamRole API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstanceramrole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceRamRoleWithCallback(request *DescribeInstanceRamRoleRequest, callback func(response *DescribeInstanceRamRoleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstanceRamRoleResponse + var err error + defer close(result) + response, err = client.DescribeInstanceRamRole(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstanceRamRoleRequest is the request struct for api DescribeInstanceRamRole +type DescribeInstanceRamRoleRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + InstanceIds string `position:"Query" name:"InstanceIds"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + RamRoleName string `position:"Query" name:"RamRoleName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeInstanceRamRoleResponse is the response struct for api DescribeInstanceRamRole +type DescribeInstanceRamRoleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegionId string `json:"RegionId" xml:"RegionId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + InstanceRamRoleSets InstanceRamRoleSetsInDescribeInstanceRamRole `json:"InstanceRamRoleSets" xml:"InstanceRamRoleSets"` +} + +// CreateDescribeInstanceRamRoleRequest creates a request to invoke DescribeInstanceRamRole API +func CreateDescribeInstanceRamRoleRequest() (request *DescribeInstanceRamRoleRequest) { + request = &DescribeInstanceRamRoleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceRamRole", "ecs", "openAPI") + return +} + +// CreateDescribeInstanceRamRoleResponse creates a response to parse from DescribeInstanceRamRole response +func CreateDescribeInstanceRamRoleResponse() (response *DescribeInstanceRamRoleResponse) { + response = &DescribeInstanceRamRoleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_status.go new file mode 100644 index 0000000..6e759dc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_status.go @@ -0,0 +1,114 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstanceStatus invokes the ecs.DescribeInstanceStatus API synchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancestatus.html +func (client *Client) DescribeInstanceStatus(request *DescribeInstanceStatusRequest) (response *DescribeInstanceStatusResponse, err error) { + response = CreateDescribeInstanceStatusResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstanceStatusWithChan invokes the ecs.DescribeInstanceStatus API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancestatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceStatusWithChan(request *DescribeInstanceStatusRequest) (<-chan *DescribeInstanceStatusResponse, <-chan error) { + responseChan := make(chan *DescribeInstanceStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstanceStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstanceStatusWithCallback invokes the ecs.DescribeInstanceStatus API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancestatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceStatusWithCallback(request *DescribeInstanceStatusRequest, callback func(response *DescribeInstanceStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstanceStatusResponse + var err error + defer close(result) + response, err = client.DescribeInstanceStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstanceStatusRequest is the request struct for api DescribeInstanceStatus +type DescribeInstanceStatusRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ZoneId string `position:"Query" name:"ZoneId"` + ClusterId string `position:"Query" name:"ClusterId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeInstanceStatusResponse is the response struct for api DescribeInstanceStatus +type DescribeInstanceStatusResponse 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"` + InstanceStatuses InstanceStatuses `json:"InstanceStatuses" xml:"InstanceStatuses"` +} + +// CreateDescribeInstanceStatusRequest creates a request to invoke DescribeInstanceStatus API +func CreateDescribeInstanceStatusRequest() (request *DescribeInstanceStatusRequest) { + request = &DescribeInstanceStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceStatus", "ecs", "openAPI") + return +} + +// CreateDescribeInstanceStatusResponse creates a response to parse from DescribeInstanceStatus response +func CreateDescribeInstanceStatusResponse() (response *DescribeInstanceStatusResponse) { + response = &DescribeInstanceStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_type_families.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_type_families.go new file mode 100644 index 0000000..672eb23 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_type_families.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstanceTypeFamilies invokes the ecs.DescribeInstanceTypeFamilies API synchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancetypefamilies.html +func (client *Client) DescribeInstanceTypeFamilies(request *DescribeInstanceTypeFamiliesRequest) (response *DescribeInstanceTypeFamiliesResponse, err error) { + response = CreateDescribeInstanceTypeFamiliesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstanceTypeFamiliesWithChan invokes the ecs.DescribeInstanceTypeFamilies API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancetypefamilies.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceTypeFamiliesWithChan(request *DescribeInstanceTypeFamiliesRequest) (<-chan *DescribeInstanceTypeFamiliesResponse, <-chan error) { + responseChan := make(chan *DescribeInstanceTypeFamiliesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstanceTypeFamilies(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstanceTypeFamiliesWithCallback invokes the ecs.DescribeInstanceTypeFamilies API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancetypefamilies.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceTypeFamiliesWithCallback(request *DescribeInstanceTypeFamiliesRequest, callback func(response *DescribeInstanceTypeFamiliesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstanceTypeFamiliesResponse + var err error + defer close(result) + response, err = client.DescribeInstanceTypeFamilies(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstanceTypeFamiliesRequest is the request struct for api DescribeInstanceTypeFamilies +type DescribeInstanceTypeFamiliesRequest struct { + *requests.RpcRequest + Generation string `position:"Query" name:"Generation"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeInstanceTypeFamiliesResponse is the response struct for api DescribeInstanceTypeFamilies +type DescribeInstanceTypeFamiliesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceTypeFamilies InstanceTypeFamiliesInDescribeInstanceTypeFamilies `json:"InstanceTypeFamilies" xml:"InstanceTypeFamilies"` +} + +// CreateDescribeInstanceTypeFamiliesRequest creates a request to invoke DescribeInstanceTypeFamilies API +func CreateDescribeInstanceTypeFamiliesRequest() (request *DescribeInstanceTypeFamiliesRequest) { + request = &DescribeInstanceTypeFamiliesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceTypeFamilies", "ecs", "openAPI") + return +} + +// CreateDescribeInstanceTypeFamiliesResponse creates a response to parse from DescribeInstanceTypeFamilies response +func CreateDescribeInstanceTypeFamiliesResponse() (response *DescribeInstanceTypeFamiliesResponse) { + response = &DescribeInstanceTypeFamiliesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_types.go new file mode 100644 index 0000000..fbfdc8f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_types.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstanceTypes invokes the ecs.DescribeInstanceTypes API synchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancetypes.html +func (client *Client) DescribeInstanceTypes(request *DescribeInstanceTypesRequest) (response *DescribeInstanceTypesResponse, err error) { + response = CreateDescribeInstanceTypesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstanceTypesWithChan invokes the ecs.DescribeInstanceTypes API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancetypes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceTypesWithChan(request *DescribeInstanceTypesRequest) (<-chan *DescribeInstanceTypesResponse, <-chan error) { + responseChan := make(chan *DescribeInstanceTypesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstanceTypes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstanceTypesWithCallback invokes the ecs.DescribeInstanceTypes API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancetypes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceTypesWithCallback(request *DescribeInstanceTypesRequest, callback func(response *DescribeInstanceTypesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstanceTypesResponse + var err error + defer close(result) + response, err = client.DescribeInstanceTypes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstanceTypesRequest is the request struct for api DescribeInstanceTypes +type DescribeInstanceTypesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeInstanceTypesResponse is the response struct for api DescribeInstanceTypes +type DescribeInstanceTypesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceTypes InstanceTypesInDescribeInstanceTypes `json:"InstanceTypes" xml:"InstanceTypes"` +} + +// CreateDescribeInstanceTypesRequest creates a request to invoke DescribeInstanceTypes API +func CreateDescribeInstanceTypesRequest() (request *DescribeInstanceTypesRequest) { + request = &DescribeInstanceTypesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceTypes", "ecs", "openAPI") + return +} + +// CreateDescribeInstanceTypesResponse creates a response to parse from DescribeInstanceTypes response +func CreateDescribeInstanceTypesResponse() (response *DescribeInstanceTypesResponse) { + response = &DescribeInstanceTypesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_vnc_passwd.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_vnc_passwd.go new file mode 100644 index 0000000..cfc19b2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_vnc_passwd.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstanceVncPasswd invokes the ecs.DescribeInstanceVncPasswd API synchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancevncpasswd.html +func (client *Client) DescribeInstanceVncPasswd(request *DescribeInstanceVncPasswdRequest) (response *DescribeInstanceVncPasswdResponse, err error) { + response = CreateDescribeInstanceVncPasswdResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstanceVncPasswdWithChan invokes the ecs.DescribeInstanceVncPasswd API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancevncpasswd.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceVncPasswdWithChan(request *DescribeInstanceVncPasswdRequest) (<-chan *DescribeInstanceVncPasswdResponse, <-chan error) { + responseChan := make(chan *DescribeInstanceVncPasswdResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstanceVncPasswd(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstanceVncPasswdWithCallback invokes the ecs.DescribeInstanceVncPasswd API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancevncpasswd.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceVncPasswdWithCallback(request *DescribeInstanceVncPasswdRequest, callback func(response *DescribeInstanceVncPasswdResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstanceVncPasswdResponse + var err error + defer close(result) + response, err = client.DescribeInstanceVncPasswd(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstanceVncPasswdRequest is the request struct for api DescribeInstanceVncPasswd +type DescribeInstanceVncPasswdRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeInstanceVncPasswdResponse is the response struct for api DescribeInstanceVncPasswd +type DescribeInstanceVncPasswdResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VncPasswd string `json:"VncPasswd" xml:"VncPasswd"` +} + +// CreateDescribeInstanceVncPasswdRequest creates a request to invoke DescribeInstanceVncPasswd API +func CreateDescribeInstanceVncPasswdRequest() (request *DescribeInstanceVncPasswdRequest) { + request = &DescribeInstanceVncPasswdRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceVncPasswd", "ecs", "openAPI") + return +} + +// CreateDescribeInstanceVncPasswdResponse creates a response to parse from DescribeInstanceVncPasswd response +func CreateDescribeInstanceVncPasswdResponse() (response *DescribeInstanceVncPasswdResponse) { + response = &DescribeInstanceVncPasswdResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_vnc_url.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_vnc_url.go new file mode 100644 index 0000000..d1b483d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_vnc_url.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstanceVncUrl invokes the ecs.DescribeInstanceVncUrl API synchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancevncurl.html +func (client *Client) DescribeInstanceVncUrl(request *DescribeInstanceVncUrlRequest) (response *DescribeInstanceVncUrlResponse, err error) { + response = CreateDescribeInstanceVncUrlResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstanceVncUrlWithChan invokes the ecs.DescribeInstanceVncUrl API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancevncurl.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceVncUrlWithChan(request *DescribeInstanceVncUrlRequest) (<-chan *DescribeInstanceVncUrlResponse, <-chan error) { + responseChan := make(chan *DescribeInstanceVncUrlResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstanceVncUrl(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstanceVncUrlWithCallback invokes the ecs.DescribeInstanceVncUrl API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancevncurl.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceVncUrlWithCallback(request *DescribeInstanceVncUrlRequest, callback func(response *DescribeInstanceVncUrlResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstanceVncUrlResponse + var err error + defer close(result) + response, err = client.DescribeInstanceVncUrl(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstanceVncUrlRequest is the request struct for api DescribeInstanceVncUrl +type DescribeInstanceVncUrlRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeInstanceVncUrlResponse is the response struct for api DescribeInstanceVncUrl +type DescribeInstanceVncUrlResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VncUrl string `json:"VncUrl" xml:"VncUrl"` +} + +// CreateDescribeInstanceVncUrlRequest creates a request to invoke DescribeInstanceVncUrl API +func CreateDescribeInstanceVncUrlRequest() (request *DescribeInstanceVncUrlRequest) { + request = &DescribeInstanceVncUrlRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceVncUrl", "ecs", "openAPI") + return +} + +// CreateDescribeInstanceVncUrlResponse creates a response to parse from DescribeInstanceVncUrl response +func CreateDescribeInstanceVncUrlResponse() (response *DescribeInstanceVncUrlResponse) { + response = &DescribeInstanceVncUrlResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances.go new file mode 100644 index 0000000..faf376c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances.go @@ -0,0 +1,155 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstances invokes the ecs.DescribeInstances API synchronously +// api document: https://help.aliyun.com/api/ecs/describeinstances.html +func (client *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error) { + response = CreateDescribeInstancesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstancesWithChan invokes the ecs.DescribeInstances API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstancesWithChan(request *DescribeInstancesRequest) (<-chan *DescribeInstancesResponse, <-chan error) { + responseChan := make(chan *DescribeInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstancesWithCallback invokes the ecs.DescribeInstances API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstancesWithCallback(request *DescribeInstancesRequest, callback func(response *DescribeInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstancesResponse + var err error + defer close(result) + response, err = client.DescribeInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstancesRequest is the request struct for api DescribeInstances +type DescribeInstancesRequest struct { + *requests.RpcRequest + Tag4Value string `position:"Query" name:"Tag.4.Value"` + InnerIpAddresses string `position:"Query" name:"InnerIpAddresses"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Tag2Key string `position:"Query" name:"Tag.2.Key"` + PrivateIpAddresses string `position:"Query" name:"PrivateIpAddresses"` + HpcClusterId string `position:"Query" name:"HpcClusterId"` + Filter2Value string `position:"Query" name:"Filter.2.Value"` + Tag3Key string `position:"Query" name:"Tag.3.Key"` + KeyPairName string `position:"Query" name:"KeyPairName"` + Tag1Value string `position:"Query" name:"Tag.1.Value"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + LockReason string `position:"Query" name:"LockReason"` + Filter1Key string `position:"Query" name:"Filter.1.Key"` + DeviceAvailable requests.Boolean `position:"Query" name:"DeviceAvailable"` + Filter3Value string `position:"Query" name:"Filter.3.Value"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + Tag5Key string `position:"Query" name:"Tag.5.Key"` + Filter1Value string `position:"Query" name:"Filter.1.Value"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + InstanceName string `position:"Query" name:"InstanceName"` + InstanceIds string `position:"Query" name:"InstanceIds"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + ZoneId string `position:"Query" name:"ZoneId"` + Tag4Key string `position:"Query" name:"Tag.4.Key"` + InstanceNetworkType string `position:"Query" name:"InstanceNetworkType"` + Status string `position:"Query" name:"Status"` + ImageId string `position:"Query" name:"ImageId"` + Filter4Value string `position:"Query" name:"Filter.4.Value"` + IoOptimized requests.Boolean `position:"Query" name:"IoOptimized"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Filter4Key string `position:"Query" name:"Filter.4.Key"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + RdmaIpAddresses string `position:"Query" name:"RdmaIpAddresses"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PublicIpAddresses string `position:"Query" name:"PublicIpAddresses"` + InstanceType string `position:"Query" name:"InstanceType"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + Tag3Value string `position:"Query" name:"Tag.3.Value"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` + Filter2Key string `position:"Query" name:"Filter.2.Key"` + Tag5Value string `position:"Query" name:"Tag.5.Value"` + Tag1Key string `position:"Query" name:"Tag.1.Key"` + EipAddresses string `position:"Query" name:"EipAddresses"` + VpcId string `position:"Query" name:"VpcId"` + Tag2Value string `position:"Query" name:"Tag.2.Value"` + Filter3Key string `position:"Query" name:"Filter.3.Key"` +} + +// DescribeInstancesResponse is the response struct for api DescribeInstances +type DescribeInstancesResponse 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"` + Instances Instances `json:"Instances" xml:"Instances"` +} + +// CreateDescribeInstancesRequest creates a request to invoke DescribeInstances API +func CreateDescribeInstancesRequest() (request *DescribeInstancesRequest) { + request = &DescribeInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstances", "ecs", "openAPI") + return +} + +// CreateDescribeInstancesResponse creates a response to parse from DescribeInstances response +func CreateDescribeInstancesResponse() (response *DescribeInstancesResponse) { + response = &DescribeInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances_full_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances_full_status.go new file mode 100644 index 0000000..136907a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances_full_status.go @@ -0,0 +1,122 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstancesFullStatus invokes the ecs.DescribeInstancesFullStatus API synchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancesfullstatus.html +func (client *Client) DescribeInstancesFullStatus(request *DescribeInstancesFullStatusRequest) (response *DescribeInstancesFullStatusResponse, err error) { + response = CreateDescribeInstancesFullStatusResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstancesFullStatusWithChan invokes the ecs.DescribeInstancesFullStatus API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancesfullstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstancesFullStatusWithChan(request *DescribeInstancesFullStatusRequest) (<-chan *DescribeInstancesFullStatusResponse, <-chan error) { + responseChan := make(chan *DescribeInstancesFullStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstancesFullStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstancesFullStatusWithCallback invokes the ecs.DescribeInstancesFullStatus API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstancesfullstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstancesFullStatusWithCallback(request *DescribeInstancesFullStatusRequest, callback func(response *DescribeInstancesFullStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstancesFullStatusResponse + var err error + defer close(result) + response, err = client.DescribeInstancesFullStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstancesFullStatusRequest is the request struct for api DescribeInstancesFullStatus +type DescribeInstancesFullStatusRequest struct { + *requests.RpcRequest + EventId *[]string `position:"Query" name:"EventId" type:"Repeated"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + EventPublishTimeEnd string `position:"Query" name:"EventPublishTime.End"` + InstanceEventType *[]string `position:"Query" name:"InstanceEventType" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + NotBeforeStart string `position:"Query" name:"NotBefore.Start"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + EventPublishTimeStart string `position:"Query" name:"EventPublishTime.Start"` + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` + NotBeforeEnd string `position:"Query" name:"NotBefore.End"` + HealthStatus string `position:"Query" name:"HealthStatus"` + EventType string `position:"Query" name:"EventType"` + Status string `position:"Query" name:"Status"` +} + +// DescribeInstancesFullStatusResponse is the response struct for api DescribeInstancesFullStatus +type DescribeInstancesFullStatusResponse 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"` + InstanceFullStatusSet InstanceFullStatusSet `json:"InstanceFullStatusSet" xml:"InstanceFullStatusSet"` +} + +// CreateDescribeInstancesFullStatusRequest creates a request to invoke DescribeInstancesFullStatus API +func CreateDescribeInstancesFullStatusRequest() (request *DescribeInstancesFullStatusRequest) { + request = &DescribeInstancesFullStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstancesFullStatus", "ecs", "openAPI") + return +} + +// CreateDescribeInstancesFullStatusResponse creates a response to parse from DescribeInstancesFullStatus response +func CreateDescribeInstancesFullStatusResponse() (response *DescribeInstancesFullStatusResponse) { + response = &DescribeInstancesFullStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_intranet_attribute_kb.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_intranet_attribute_kb.go new file mode 100644 index 0000000..5aeef8c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_intranet_attribute_kb.go @@ -0,0 +1,112 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeIntranetAttributeKb invokes the ecs.DescribeIntranetAttributeKb API synchronously +// api document: https://help.aliyun.com/api/ecs/describeintranetattributekb.html +func (client *Client) DescribeIntranetAttributeKb(request *DescribeIntranetAttributeKbRequest) (response *DescribeIntranetAttributeKbResponse, err error) { + response = CreateDescribeIntranetAttributeKbResponse() + err = client.DoAction(request, response) + return +} + +// DescribeIntranetAttributeKbWithChan invokes the ecs.DescribeIntranetAttributeKb API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeintranetattributekb.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeIntranetAttributeKbWithChan(request *DescribeIntranetAttributeKbRequest) (<-chan *DescribeIntranetAttributeKbResponse, <-chan error) { + responseChan := make(chan *DescribeIntranetAttributeKbResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeIntranetAttributeKb(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeIntranetAttributeKbWithCallback invokes the ecs.DescribeIntranetAttributeKb API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeintranetattributekb.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeIntranetAttributeKbWithCallback(request *DescribeIntranetAttributeKbRequest, callback func(response *DescribeIntranetAttributeKbResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeIntranetAttributeKbResponse + var err error + defer close(result) + response, err = client.DescribeIntranetAttributeKb(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeIntranetAttributeKbRequest is the request struct for api DescribeIntranetAttributeKb +type DescribeIntranetAttributeKbRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeIntranetAttributeKbResponse is the response struct for api DescribeIntranetAttributeKb +type DescribeIntranetAttributeKbResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + VlanId string `json:"VlanId" xml:"VlanId"` + IntranetIpAddress string `json:"IntranetIpAddress" xml:"IntranetIpAddress"` + IntranetMaxBandwidthIn int `json:"IntranetMaxBandwidthIn" xml:"IntranetMaxBandwidthIn"` + IntranetMaxBandwidthOut int `json:"IntranetMaxBandwidthOut" xml:"IntranetMaxBandwidthOut"` +} + +// CreateDescribeIntranetAttributeKbRequest creates a request to invoke DescribeIntranetAttributeKb API +func CreateDescribeIntranetAttributeKbRequest() (request *DescribeIntranetAttributeKbRequest) { + request = &DescribeIntranetAttributeKbRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeIntranetAttributeKb", "ecs", "openAPI") + return +} + +// CreateDescribeIntranetAttributeKbResponse creates a response to parse from DescribeIntranetAttributeKb response +func CreateDescribeIntranetAttributeKbResponse() (response *DescribeIntranetAttributeKbResponse) { + response = &DescribeIntranetAttributeKbResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocation_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocation_results.go new file mode 100644 index 0000000..6a108d7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocation_results.go @@ -0,0 +1,113 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInvocationResults invokes the ecs.DescribeInvocationResults API synchronously +// api document: https://help.aliyun.com/api/ecs/describeinvocationresults.html +func (client *Client) DescribeInvocationResults(request *DescribeInvocationResultsRequest) (response *DescribeInvocationResultsResponse, err error) { + response = CreateDescribeInvocationResultsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInvocationResultsWithChan invokes the ecs.DescribeInvocationResults API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinvocationresults.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInvocationResultsWithChan(request *DescribeInvocationResultsRequest) (<-chan *DescribeInvocationResultsResponse, <-chan error) { + responseChan := make(chan *DescribeInvocationResultsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInvocationResults(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInvocationResultsWithCallback invokes the ecs.DescribeInvocationResults API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinvocationresults.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInvocationResultsWithCallback(request *DescribeInvocationResultsRequest, callback func(response *DescribeInvocationResultsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInvocationResultsResponse + var err error + defer close(result) + response, err = client.DescribeInvocationResults(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInvocationResultsRequest is the request struct for api DescribeInvocationResults +type DescribeInvocationResultsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CommandId string `position:"Query" name:"CommandId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + InvokeId string `position:"Query" name:"InvokeId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + InvokeRecordStatus string `position:"Query" name:"InvokeRecordStatus"` +} + +// DescribeInvocationResultsResponse is the response struct for api DescribeInvocationResults +type DescribeInvocationResultsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Invocation Invocation `json:"Invocation" xml:"Invocation"` +} + +// CreateDescribeInvocationResultsRequest creates a request to invoke DescribeInvocationResults API +func CreateDescribeInvocationResultsRequest() (request *DescribeInvocationResultsRequest) { + request = &DescribeInvocationResultsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInvocationResults", "ecs", "openAPI") + return +} + +// CreateDescribeInvocationResultsResponse creates a response to parse from DescribeInvocationResults response +func CreateDescribeInvocationResultsResponse() (response *DescribeInvocationResultsResponse) { + response = &DescribeInvocationResultsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocations.go new file mode 100644 index 0000000..027c80f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocations.go @@ -0,0 +1,119 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInvocations invokes the ecs.DescribeInvocations API synchronously +// api document: https://help.aliyun.com/api/ecs/describeinvocations.html +func (client *Client) DescribeInvocations(request *DescribeInvocationsRequest) (response *DescribeInvocationsResponse, err error) { + response = CreateDescribeInvocationsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInvocationsWithChan invokes the ecs.DescribeInvocations API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinvocations.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInvocationsWithChan(request *DescribeInvocationsRequest) (<-chan *DescribeInvocationsResponse, <-chan error) { + responseChan := make(chan *DescribeInvocationsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInvocations(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInvocationsWithCallback invokes the ecs.DescribeInvocations API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinvocations.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInvocationsWithCallback(request *DescribeInvocationsRequest, callback func(response *DescribeInvocationsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInvocationsResponse + var err error + defer close(result) + response, err = client.DescribeInvocations(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInvocationsRequest is the request struct for api DescribeInvocations +type DescribeInvocationsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InvokeStatus string `position:"Query" name:"InvokeStatus"` + CommandId string `position:"Query" name:"CommandId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + InvokeId string `position:"Query" name:"InvokeId"` + Timed requests.Boolean `position:"Query" name:"Timed"` + CommandName string `position:"Query" name:"CommandName"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + CommandType string `position:"Query" name:"CommandType"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// DescribeInvocationsResponse is the response struct for api DescribeInvocations +type DescribeInvocationsResponse 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"` + Invocations Invocations `json:"Invocations" xml:"Invocations"` +} + +// CreateDescribeInvocationsRequest creates a request to invoke DescribeInvocations API +func CreateDescribeInvocationsRequest() (request *DescribeInvocationsRequest) { + request = &DescribeInvocationsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInvocations", "ecs", "openAPI") + return +} + +// CreateDescribeInvocationsResponse creates a response to parse from DescribeInvocations response +func CreateDescribeInvocationsResponse() (response *DescribeInvocationsResponse) { + response = &DescribeInvocationsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_ip_ranges.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_ip_ranges.go new file mode 100644 index 0000000..0a0a54f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_ip_ranges.go @@ -0,0 +1,116 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeIpRanges invokes the ecs.DescribeIpRanges API synchronously +// api document: https://help.aliyun.com/api/ecs/describeipranges.html +func (client *Client) DescribeIpRanges(request *DescribeIpRangesRequest) (response *DescribeIpRangesResponse, err error) { + response = CreateDescribeIpRangesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeIpRangesWithChan invokes the ecs.DescribeIpRanges API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeipranges.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeIpRangesWithChan(request *DescribeIpRangesRequest) (<-chan *DescribeIpRangesResponse, <-chan error) { + responseChan := make(chan *DescribeIpRangesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeIpRanges(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeIpRangesWithCallback invokes the ecs.DescribeIpRanges API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeipranges.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeIpRangesWithCallback(request *DescribeIpRangesRequest, callback func(response *DescribeIpRangesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeIpRangesResponse + var err error + defer close(result) + response, err = client.DescribeIpRanges(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeIpRangesRequest is the request struct for api DescribeIpRanges +type DescribeIpRangesRequest struct { + *requests.RpcRequest + NicType string `position:"Query" name:"NicType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ClusterId string `position:"Query" name:"ClusterId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeIpRangesResponse is the response struct for api DescribeIpRanges +type DescribeIpRangesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegionId string `json:"RegionId" xml:"RegionId"` + ClusterId string `json:"ClusterId" xml:"ClusterId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + IpRanges IpRanges `json:"IpRanges" xml:"IpRanges"` +} + +// CreateDescribeIpRangesRequest creates a request to invoke DescribeIpRanges API +func CreateDescribeIpRangesRequest() (request *DescribeIpRangesRequest) { + request = &DescribeIpRangesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeIpRanges", "ecs", "openAPI") + return +} + +// CreateDescribeIpRangesResponse creates a response to parse from DescribeIpRanges response +func CreateDescribeIpRangesResponse() (response *DescribeIpRangesResponse) { + response = &DescribeIpRangesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_key_pairs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_key_pairs.go new file mode 100644 index 0000000..3aa57ea --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_key_pairs.go @@ -0,0 +1,124 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeKeyPairs invokes the ecs.DescribeKeyPairs API synchronously +// api document: https://help.aliyun.com/api/ecs/describekeypairs.html +func (client *Client) DescribeKeyPairs(request *DescribeKeyPairsRequest) (response *DescribeKeyPairsResponse, err error) { + response = CreateDescribeKeyPairsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeKeyPairsWithChan invokes the ecs.DescribeKeyPairs API asynchronously +// api document: https://help.aliyun.com/api/ecs/describekeypairs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeKeyPairsWithChan(request *DescribeKeyPairsRequest) (<-chan *DescribeKeyPairsResponse, <-chan error) { + responseChan := make(chan *DescribeKeyPairsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeKeyPairs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeKeyPairsWithCallback invokes the ecs.DescribeKeyPairs API asynchronously +// api document: https://help.aliyun.com/api/ecs/describekeypairs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeKeyPairsWithCallback(request *DescribeKeyPairsRequest, callback func(response *DescribeKeyPairsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeKeyPairsResponse + var err error + defer close(result) + response, err = client.DescribeKeyPairs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeKeyPairsRequest is the request struct for api DescribeKeyPairs +type DescribeKeyPairsRequest struct { + *requests.RpcRequest + Tag4Value string `position:"Query" name:"Tag.4.Value"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Tag2Key string `position:"Query" name:"Tag.2.Key"` + Tag5Key string `position:"Query" name:"Tag.5.Key"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + KeyPairFingerPrint string `position:"Query" name:"KeyPairFingerPrint"` + Tag3Key string `position:"Query" name:"Tag.3.Key"` + KeyPairName string `position:"Query" name:"KeyPairName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tag5Value string `position:"Query" name:"Tag.5.Value"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + Tag1Key string `position:"Query" name:"Tag.1.Key"` + Tag1Value string `position:"Query" name:"Tag.1.Value"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Tag2Value string `position:"Query" name:"Tag.2.Value"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Tag4Key string `position:"Query" name:"Tag.4.Key"` + Tag3Value string `position:"Query" name:"Tag.3.Value"` +} + +// DescribeKeyPairsResponse is the response struct for api DescribeKeyPairs +type DescribeKeyPairsResponse 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"` + KeyPairs KeyPairs `json:"KeyPairs" xml:"KeyPairs"` +} + +// CreateDescribeKeyPairsRequest creates a request to invoke DescribeKeyPairs API +func CreateDescribeKeyPairsRequest() (request *DescribeKeyPairsRequest) { + request = &DescribeKeyPairsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeKeyPairs", "ecs", "openAPI") + return +} + +// CreateDescribeKeyPairsResponse creates a response to parse from DescribeKeyPairs response +func CreateDescribeKeyPairsResponse() (response *DescribeKeyPairsResponse) { + response = &DescribeKeyPairsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_template_versions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_template_versions.go new file mode 100644 index 0000000..4082a2b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_template_versions.go @@ -0,0 +1,119 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLaunchTemplateVersions invokes the ecs.DescribeLaunchTemplateVersions API synchronously +// api document: https://help.aliyun.com/api/ecs/describelaunchtemplateversions.html +func (client *Client) DescribeLaunchTemplateVersions(request *DescribeLaunchTemplateVersionsRequest) (response *DescribeLaunchTemplateVersionsResponse, err error) { + response = CreateDescribeLaunchTemplateVersionsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLaunchTemplateVersionsWithChan invokes the ecs.DescribeLaunchTemplateVersions API asynchronously +// api document: https://help.aliyun.com/api/ecs/describelaunchtemplateversions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLaunchTemplateVersionsWithChan(request *DescribeLaunchTemplateVersionsRequest) (<-chan *DescribeLaunchTemplateVersionsResponse, <-chan error) { + responseChan := make(chan *DescribeLaunchTemplateVersionsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLaunchTemplateVersions(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLaunchTemplateVersionsWithCallback invokes the ecs.DescribeLaunchTemplateVersions API asynchronously +// api document: https://help.aliyun.com/api/ecs/describelaunchtemplateversions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLaunchTemplateVersionsWithCallback(request *DescribeLaunchTemplateVersionsRequest, callback func(response *DescribeLaunchTemplateVersionsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLaunchTemplateVersionsResponse + var err error + defer close(result) + response, err = client.DescribeLaunchTemplateVersions(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLaunchTemplateVersionsRequest is the request struct for api DescribeLaunchTemplateVersions +type DescribeLaunchTemplateVersionsRequest struct { + *requests.RpcRequest + LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` + MaxVersion requests.Integer `position:"Query" name:"MaxVersion"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DefaultVersion requests.Boolean `position:"Query" name:"DefaultVersion"` + MinVersion requests.Integer `position:"Query" name:"MinVersion"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + LaunchTemplateId string `position:"Query" name:"LaunchTemplateId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + LaunchTemplateVersion *[]string `position:"Query" name:"LaunchTemplateVersion" type:"Repeated"` + DetailFlag requests.Boolean `position:"Query" name:"DetailFlag"` +} + +// DescribeLaunchTemplateVersionsResponse is the response struct for api DescribeLaunchTemplateVersions +type DescribeLaunchTemplateVersionsResponse 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"` + LaunchTemplateVersionSets LaunchTemplateVersionSets `json:"LaunchTemplateVersionSets" xml:"LaunchTemplateVersionSets"` +} + +// CreateDescribeLaunchTemplateVersionsRequest creates a request to invoke DescribeLaunchTemplateVersions API +func CreateDescribeLaunchTemplateVersionsRequest() (request *DescribeLaunchTemplateVersionsRequest) { + request = &DescribeLaunchTemplateVersionsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeLaunchTemplateVersions", "ecs", "openAPI") + return +} + +// CreateDescribeLaunchTemplateVersionsResponse creates a response to parse from DescribeLaunchTemplateVersions response +func CreateDescribeLaunchTemplateVersionsResponse() (response *DescribeLaunchTemplateVersionsResponse) { + response = &DescribeLaunchTemplateVersionsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_templates.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_templates.go new file mode 100644 index 0000000..ee5bac6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_templates.go @@ -0,0 +1,125 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLaunchTemplates invokes the ecs.DescribeLaunchTemplates API synchronously +// api document: https://help.aliyun.com/api/ecs/describelaunchtemplates.html +func (client *Client) DescribeLaunchTemplates(request *DescribeLaunchTemplatesRequest) (response *DescribeLaunchTemplatesResponse, err error) { + response = CreateDescribeLaunchTemplatesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLaunchTemplatesWithChan invokes the ecs.DescribeLaunchTemplates API asynchronously +// api document: https://help.aliyun.com/api/ecs/describelaunchtemplates.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLaunchTemplatesWithChan(request *DescribeLaunchTemplatesRequest) (<-chan *DescribeLaunchTemplatesResponse, <-chan error) { + responseChan := make(chan *DescribeLaunchTemplatesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLaunchTemplates(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLaunchTemplatesWithCallback invokes the ecs.DescribeLaunchTemplates API asynchronously +// api document: https://help.aliyun.com/api/ecs/describelaunchtemplates.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLaunchTemplatesWithCallback(request *DescribeLaunchTemplatesRequest, callback func(response *DescribeLaunchTemplatesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLaunchTemplatesResponse + var err error + defer close(result) + response, err = client.DescribeLaunchTemplates(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLaunchTemplatesRequest is the request struct for api DescribeLaunchTemplates +type DescribeLaunchTemplatesRequest struct { + *requests.RpcRequest + TemplateTag1Value string `position:"Query" name:"TemplateTag.1.Value"` + LaunchTemplateName *[]string `position:"Query" name:"LaunchTemplateName" type:"Repeated"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TemplateTag4Key string `position:"Query" name:"TemplateTag.4.Key"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + TemplateTag3Key string `position:"Query" name:"TemplateTag.3.Key"` + TemplateTag5Value string `position:"Query" name:"TemplateTag.5.Value"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + TemplateTag3Value string `position:"Query" name:"TemplateTag.3.Value"` + TemplateTag2Key string `position:"Query" name:"TemplateTag.2.Key"` + LaunchTemplateId *[]string `position:"Query" name:"LaunchTemplateId" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + TemplateResourceGroupId string `position:"Query" name:"TemplateResourceGroupId"` + TemplateTag2Value string `position:"Query" name:"TemplateTag.2.Value"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + TemplateTag4Value string `position:"Query" name:"TemplateTag.4.Value"` + TemplateTag5Key string `position:"Query" name:"TemplateTag.5.Key"` + TemplateTag1Key string `position:"Query" name:"TemplateTag.1.Key"` +} + +// DescribeLaunchTemplatesResponse is the response struct for api DescribeLaunchTemplates +type DescribeLaunchTemplatesResponse 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"` + LaunchTemplateSets LaunchTemplateSets `json:"LaunchTemplateSets" xml:"LaunchTemplateSets"` +} + +// CreateDescribeLaunchTemplatesRequest creates a request to invoke DescribeLaunchTemplates API +func CreateDescribeLaunchTemplatesRequest() (request *DescribeLaunchTemplatesRequest) { + request = &DescribeLaunchTemplatesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeLaunchTemplates", "ecs", "openAPI") + return +} + +// CreateDescribeLaunchTemplatesResponse creates a response to parse from DescribeLaunchTemplates response +func CreateDescribeLaunchTemplatesResponse() (response *DescribeLaunchTemplatesResponse) { + response = &DescribeLaunchTemplatesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_limitation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_limitation.go new file mode 100644 index 0000000..592776b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_limitation.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLimitation invokes the ecs.DescribeLimitation API synchronously +// api document: https://help.aliyun.com/api/ecs/describelimitation.html +func (client *Client) DescribeLimitation(request *DescribeLimitationRequest) (response *DescribeLimitationResponse, err error) { + response = CreateDescribeLimitationResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLimitationWithChan invokes the ecs.DescribeLimitation API asynchronously +// api document: https://help.aliyun.com/api/ecs/describelimitation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLimitationWithChan(request *DescribeLimitationRequest) (<-chan *DescribeLimitationResponse, <-chan error) { + responseChan := make(chan *DescribeLimitationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLimitation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLimitationWithCallback invokes the ecs.DescribeLimitation API asynchronously +// api document: https://help.aliyun.com/api/ecs/describelimitation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLimitationWithCallback(request *DescribeLimitationRequest, callback func(response *DescribeLimitationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLimitationResponse + var err error + defer close(result) + response, err = client.DescribeLimitation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLimitationRequest is the request struct for api DescribeLimitation +type DescribeLimitationRequest struct { + *requests.RpcRequest + Limitation string `position:"Query" name:"Limitation"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLimitationResponse is the response struct for api DescribeLimitation +type DescribeLimitationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Limitation string `json:"Limitation" xml:"Limitation"` + Value string `json:"Value" xml:"Value"` +} + +// CreateDescribeLimitationRequest creates a request to invoke DescribeLimitation API +func CreateDescribeLimitationRequest() (request *DescribeLimitationRequest) { + request = &DescribeLimitationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeLimitation", "ecs", "openAPI") + return +} + +// CreateDescribeLimitationResponse creates a response to parse from DescribeLimitation response +func CreateDescribeLimitationResponse() (response *DescribeLimitationResponse) { + response = &DescribeLimitationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_nat_gateways.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_nat_gateways.go new file mode 100644 index 0000000..306108a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_nat_gateways.go @@ -0,0 +1,114 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeNatGateways invokes the ecs.DescribeNatGateways API synchronously +// api document: https://help.aliyun.com/api/ecs/describenatgateways.html +func (client *Client) DescribeNatGateways(request *DescribeNatGatewaysRequest) (response *DescribeNatGatewaysResponse, err error) { + response = CreateDescribeNatGatewaysResponse() + err = client.DoAction(request, response) + return +} + +// DescribeNatGatewaysWithChan invokes the ecs.DescribeNatGateways API asynchronously +// api document: https://help.aliyun.com/api/ecs/describenatgateways.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeNatGatewaysWithChan(request *DescribeNatGatewaysRequest) (<-chan *DescribeNatGatewaysResponse, <-chan error) { + responseChan := make(chan *DescribeNatGatewaysResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeNatGateways(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeNatGatewaysWithCallback invokes the ecs.DescribeNatGateways API asynchronously +// api document: https://help.aliyun.com/api/ecs/describenatgateways.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeNatGatewaysWithCallback(request *DescribeNatGatewaysRequest, callback func(response *DescribeNatGatewaysResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeNatGatewaysResponse + var err error + defer close(result) + response, err = client.DescribeNatGateways(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeNatGatewaysRequest is the request struct for api DescribeNatGateways +type DescribeNatGatewaysRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + VpcId string `position:"Query" name:"VpcId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + NatGatewayId string `position:"Query" name:"NatGatewayId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeNatGatewaysResponse is the response struct for api DescribeNatGateways +type DescribeNatGatewaysResponse 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"` + NatGateways NatGateways `json:"NatGateways" xml:"NatGateways"` +} + +// CreateDescribeNatGatewaysRequest creates a request to invoke DescribeNatGateways API +func CreateDescribeNatGatewaysRequest() (request *DescribeNatGatewaysRequest) { + request = &DescribeNatGatewaysRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeNatGateways", "ecs", "openAPI") + return +} + +// CreateDescribeNatGatewaysResponse creates a response to parse from DescribeNatGateways response +func CreateDescribeNatGatewaysResponse() (response *DescribeNatGatewaysResponse) { + response = &DescribeNatGatewaysResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interface_permissions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interface_permissions.go new file mode 100644 index 0000000..15ad33d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interface_permissions.go @@ -0,0 +1,114 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeNetworkInterfacePermissions invokes the ecs.DescribeNetworkInterfacePermissions API synchronously +// api document: https://help.aliyun.com/api/ecs/describenetworkinterfacepermissions.html +func (client *Client) DescribeNetworkInterfacePermissions(request *DescribeNetworkInterfacePermissionsRequest) (response *DescribeNetworkInterfacePermissionsResponse, err error) { + response = CreateDescribeNetworkInterfacePermissionsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeNetworkInterfacePermissionsWithChan invokes the ecs.DescribeNetworkInterfacePermissions API asynchronously +// api document: https://help.aliyun.com/api/ecs/describenetworkinterfacepermissions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeNetworkInterfacePermissionsWithChan(request *DescribeNetworkInterfacePermissionsRequest) (<-chan *DescribeNetworkInterfacePermissionsResponse, <-chan error) { + responseChan := make(chan *DescribeNetworkInterfacePermissionsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeNetworkInterfacePermissions(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeNetworkInterfacePermissionsWithCallback invokes the ecs.DescribeNetworkInterfacePermissions API asynchronously +// api document: https://help.aliyun.com/api/ecs/describenetworkinterfacepermissions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeNetworkInterfacePermissionsWithCallback(request *DescribeNetworkInterfacePermissionsRequest, callback func(response *DescribeNetworkInterfacePermissionsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeNetworkInterfacePermissionsResponse + var err error + defer close(result) + response, err = client.DescribeNetworkInterfacePermissions(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeNetworkInterfacePermissionsRequest is the request struct for api DescribeNetworkInterfacePermissions +type DescribeNetworkInterfacePermissionsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + NetworkInterfacePermissionId *[]string `position:"Query" name:"NetworkInterfacePermissionId" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` +} + +// DescribeNetworkInterfacePermissionsResponse is the response struct for api DescribeNetworkInterfacePermissions +type DescribeNetworkInterfacePermissionsResponse 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"` + NetworkInterfacePermissions NetworkInterfacePermissions `json:"NetworkInterfacePermissions" xml:"NetworkInterfacePermissions"` +} + +// CreateDescribeNetworkInterfacePermissionsRequest creates a request to invoke DescribeNetworkInterfacePermissions API +func CreateDescribeNetworkInterfacePermissionsRequest() (request *DescribeNetworkInterfacePermissionsRequest) { + request = &DescribeNetworkInterfacePermissionsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeNetworkInterfacePermissions", "ecs", "openAPI") + return +} + +// CreateDescribeNetworkInterfacePermissionsResponse creates a response to parse from DescribeNetworkInterfacePermissions response +func CreateDescribeNetworkInterfacePermissionsResponse() (response *DescribeNetworkInterfacePermissionsResponse) { + response = &DescribeNetworkInterfacePermissionsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interfaces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interfaces.go new file mode 100644 index 0000000..7ba68e7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interfaces.go @@ -0,0 +1,131 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeNetworkInterfaces invokes the ecs.DescribeNetworkInterfaces API synchronously +// api document: https://help.aliyun.com/api/ecs/describenetworkinterfaces.html +func (client *Client) DescribeNetworkInterfaces(request *DescribeNetworkInterfacesRequest) (response *DescribeNetworkInterfacesResponse, err error) { + response = CreateDescribeNetworkInterfacesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeNetworkInterfacesWithChan invokes the ecs.DescribeNetworkInterfaces API asynchronously +// api document: https://help.aliyun.com/api/ecs/describenetworkinterfaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeNetworkInterfacesWithChan(request *DescribeNetworkInterfacesRequest) (<-chan *DescribeNetworkInterfacesResponse, <-chan error) { + responseChan := make(chan *DescribeNetworkInterfacesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeNetworkInterfaces(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeNetworkInterfacesWithCallback invokes the ecs.DescribeNetworkInterfaces API asynchronously +// api document: https://help.aliyun.com/api/ecs/describenetworkinterfaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeNetworkInterfacesWithCallback(request *DescribeNetworkInterfacesRequest, callback func(response *DescribeNetworkInterfacesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeNetworkInterfacesResponse + var err error + defer close(result) + response, err = client.DescribeNetworkInterfaces(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeNetworkInterfacesRequest is the request struct for api DescribeNetworkInterfaces +type DescribeNetworkInterfacesRequest struct { + *requests.RpcRequest + Tag4Value string `position:"Query" name:"Tag.4.Value"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Tag2Key string `position:"Query" name:"Tag.2.Key"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Tag3Key string `position:"Query" name:"Tag.3.Key"` + Type string `position:"Query" name:"Type"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + Tag1Value string `position:"Query" name:"Tag.1.Value"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Tag3Value string `position:"Query" name:"Tag.3.Value"` + NetworkInterfaceName string `position:"Query" name:"NetworkInterfaceName"` + Tag5Key string `position:"Query" name:"Tag.5.Key"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tag5Value string `position:"Query" name:"Tag.5.Value"` + Tag1Key string `position:"Query" name:"Tag.1.Key"` + VSwitchId string `position:"Query" name:"VSwitchId"` + InstanceId string `position:"Query" name:"InstanceId"` + Tag2Value string `position:"Query" name:"Tag.2.Value"` + VpcId string `position:"Query" name:"VpcId"` + Tag4Key string `position:"Query" name:"Tag.4.Key"` + PrimaryIpAddress string `position:"Query" name:"PrimaryIpAddress"` + NetworkInterfaceId *[]string `position:"Query" name:"NetworkInterfaceId" type:"Repeated"` +} + +// DescribeNetworkInterfacesResponse is the response struct for api DescribeNetworkInterfaces +type DescribeNetworkInterfacesResponse 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"` + NetworkInterfaceSets NetworkInterfaceSets `json:"NetworkInterfaceSets" xml:"NetworkInterfaceSets"` +} + +// CreateDescribeNetworkInterfacesRequest creates a request to invoke DescribeNetworkInterfaces API +func CreateDescribeNetworkInterfacesRequest() (request *DescribeNetworkInterfacesRequest) { + request = &DescribeNetworkInterfacesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeNetworkInterfaces", "ecs", "openAPI") + return +} + +// CreateDescribeNetworkInterfacesResponse creates a response to parse from DescribeNetworkInterfaces response +func CreateDescribeNetworkInterfacesResponse() (response *DescribeNetworkInterfacesResponse) { + response = &DescribeNetworkInterfacesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_new_project_eip_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_new_project_eip_monitor_data.go new file mode 100644 index 0000000..71377c0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_new_project_eip_monitor_data.go @@ -0,0 +1,111 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeNewProjectEipMonitorData invokes the ecs.DescribeNewProjectEipMonitorData API synchronously +// api document: https://help.aliyun.com/api/ecs/describenewprojecteipmonitordata.html +func (client *Client) DescribeNewProjectEipMonitorData(request *DescribeNewProjectEipMonitorDataRequest) (response *DescribeNewProjectEipMonitorDataResponse, err error) { + response = CreateDescribeNewProjectEipMonitorDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeNewProjectEipMonitorDataWithChan invokes the ecs.DescribeNewProjectEipMonitorData API asynchronously +// api document: https://help.aliyun.com/api/ecs/describenewprojecteipmonitordata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeNewProjectEipMonitorDataWithChan(request *DescribeNewProjectEipMonitorDataRequest) (<-chan *DescribeNewProjectEipMonitorDataResponse, <-chan error) { + responseChan := make(chan *DescribeNewProjectEipMonitorDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeNewProjectEipMonitorData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeNewProjectEipMonitorDataWithCallback invokes the ecs.DescribeNewProjectEipMonitorData API asynchronously +// api document: https://help.aliyun.com/api/ecs/describenewprojecteipmonitordata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeNewProjectEipMonitorDataWithCallback(request *DescribeNewProjectEipMonitorDataRequest, callback func(response *DescribeNewProjectEipMonitorDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeNewProjectEipMonitorDataResponse + var err error + defer close(result) + response, err = client.DescribeNewProjectEipMonitorData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeNewProjectEipMonitorDataRequest is the request struct for api DescribeNewProjectEipMonitorData +type DescribeNewProjectEipMonitorDataRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Period requests.Integer `position:"Query" name:"Period"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EndTime string `position:"Query" name:"EndTime"` + AllocationId string `position:"Query" name:"AllocationId"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeNewProjectEipMonitorDataResponse is the response struct for api DescribeNewProjectEipMonitorData +type DescribeNewProjectEipMonitorDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + EipMonitorDatas EipMonitorDatasInDescribeNewProjectEipMonitorData `json:"EipMonitorDatas" xml:"EipMonitorDatas"` +} + +// CreateDescribeNewProjectEipMonitorDataRequest creates a request to invoke DescribeNewProjectEipMonitorData API +func CreateDescribeNewProjectEipMonitorDataRequest() (request *DescribeNewProjectEipMonitorDataRequest) { + request = &DescribeNewProjectEipMonitorDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeNewProjectEipMonitorData", "ecs", "openAPI") + return +} + +// CreateDescribeNewProjectEipMonitorDataResponse creates a response to parse from DescribeNewProjectEipMonitorData response +func CreateDescribeNewProjectEipMonitorDataResponse() (response *DescribeNewProjectEipMonitorDataResponse) { + response = &DescribeNewProjectEipMonitorDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_physical_connections.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_physical_connections.go new file mode 100644 index 0000000..e3d27b4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_physical_connections.go @@ -0,0 +1,121 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribePhysicalConnections invokes the ecs.DescribePhysicalConnections API synchronously +// api document: https://help.aliyun.com/api/ecs/describephysicalconnections.html +func (client *Client) DescribePhysicalConnections(request *DescribePhysicalConnectionsRequest) (response *DescribePhysicalConnectionsResponse, err error) { + response = CreateDescribePhysicalConnectionsResponse() + err = client.DoAction(request, response) + return +} + +// DescribePhysicalConnectionsWithChan invokes the ecs.DescribePhysicalConnections API asynchronously +// api document: https://help.aliyun.com/api/ecs/describephysicalconnections.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePhysicalConnectionsWithChan(request *DescribePhysicalConnectionsRequest) (<-chan *DescribePhysicalConnectionsResponse, <-chan error) { + responseChan := make(chan *DescribePhysicalConnectionsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribePhysicalConnections(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribePhysicalConnectionsWithCallback invokes the ecs.DescribePhysicalConnections API asynchronously +// api document: https://help.aliyun.com/api/ecs/describephysicalconnections.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePhysicalConnectionsWithCallback(request *DescribePhysicalConnectionsRequest, callback func(response *DescribePhysicalConnectionsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribePhysicalConnectionsResponse + var err error + defer close(result) + response, err = client.DescribePhysicalConnections(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribePhysicalConnectionsRequest is the request struct for api DescribePhysicalConnections +type DescribePhysicalConnectionsRequest struct { + *requests.RpcRequest + Filter *[]DescribePhysicalConnectionsFilter `position:"Query" name:"Filter" type:"Repeated"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + UserCidr string `position:"Query" name:"UserCidr"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribePhysicalConnectionsFilter is a repeated param struct in DescribePhysicalConnectionsRequest +type DescribePhysicalConnectionsFilter struct { + Key string `name:"Key"` + Value *[]string `name:"Value" type:"Repeated"` +} + +// DescribePhysicalConnectionsResponse is the response struct for api DescribePhysicalConnections +type DescribePhysicalConnectionsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PhysicalConnectionSet PhysicalConnectionSet `json:"PhysicalConnectionSet" xml:"PhysicalConnectionSet"` +} + +// CreateDescribePhysicalConnectionsRequest creates a request to invoke DescribePhysicalConnections API +func CreateDescribePhysicalConnectionsRequest() (request *DescribePhysicalConnectionsRequest) { + request = &DescribePhysicalConnectionsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribePhysicalConnections", "ecs", "openAPI") + return +} + +// CreateDescribePhysicalConnectionsResponse creates a response to parse from DescribePhysicalConnections response +func CreateDescribePhysicalConnectionsResponse() (response *DescribePhysicalConnectionsResponse) { + response = &DescribePhysicalConnectionsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_price.go new file mode 100644 index 0000000..e1cf62d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_price.go @@ -0,0 +1,127 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribePrice invokes the ecs.DescribePrice API synchronously +// api document: https://help.aliyun.com/api/ecs/describeprice.html +func (client *Client) DescribePrice(request *DescribePriceRequest) (response *DescribePriceResponse, err error) { + response = CreateDescribePriceResponse() + err = client.DoAction(request, response) + return +} + +// DescribePriceWithChan invokes the ecs.DescribePrice API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeprice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePriceWithChan(request *DescribePriceRequest) (<-chan *DescribePriceResponse, <-chan error) { + responseChan := make(chan *DescribePriceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribePrice(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribePriceWithCallback invokes the ecs.DescribePrice API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeprice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePriceWithCallback(request *DescribePriceRequest, callback func(response *DescribePriceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribePriceResponse + var err error + defer close(result) + response, err = client.DescribePrice(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribePriceRequest is the request struct for api DescribePrice +type DescribePriceRequest struct { + *requests.RpcRequest + DataDisk3Size requests.Integer `position:"Query" name:"DataDisk.3.Size"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ImageId string `position:"Query" name:"ImageId"` + DataDisk3Category string `position:"Query" name:"DataDisk.3.Category"` + IoOptimized string `position:"Query" name:"IoOptimized"` + InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` + SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` + DataDisk4Category string `position:"Query" name:"DataDisk.4.Category"` + DataDisk4Size requests.Integer `position:"Query" name:"DataDisk.4.Size"` + PriceUnit string `position:"Query" name:"PriceUnit"` + InstanceType string `position:"Query" name:"InstanceType"` + DataDisk2Category string `position:"Query" name:"DataDisk.2.Category"` + DataDisk1Size requests.Integer `position:"Query" name:"DataDisk.1.Size"` + Period requests.Integer `position:"Query" name:"Period"` + Amount requests.Integer `position:"Query" name:"Amount"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DataDisk2Size requests.Integer `position:"Query" name:"DataDisk.2.Size"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` + DataDisk1Category string `position:"Query" name:"DataDisk.1.Category"` + SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + InstanceNetworkType string `position:"Query" name:"InstanceNetworkType"` +} + +// DescribePriceResponse is the response struct for api DescribePrice +type DescribePriceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PriceInfo PriceInfo `json:"PriceInfo" xml:"PriceInfo"` +} + +// CreateDescribePriceRequest creates a request to invoke DescribePrice API +func CreateDescribePriceRequest() (request *DescribePriceRequest) { + request = &DescribePriceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribePrice", "ecs", "openAPI") + return +} + +// CreateDescribePriceResponse creates a response to parse from DescribePrice response +func CreateDescribePriceResponse() (response *DescribePriceResponse) { + response = &DescribePriceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_recommend_instance_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_recommend_instance_type.go new file mode 100644 index 0000000..3e09ef4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_recommend_instance_type.go @@ -0,0 +1,114 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRecommendInstanceType invokes the ecs.DescribeRecommendInstanceType API synchronously +// api document: https://help.aliyun.com/api/ecs/describerecommendinstancetype.html +func (client *Client) DescribeRecommendInstanceType(request *DescribeRecommendInstanceTypeRequest) (response *DescribeRecommendInstanceTypeResponse, err error) { + response = CreateDescribeRecommendInstanceTypeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRecommendInstanceTypeWithChan invokes the ecs.DescribeRecommendInstanceType API asynchronously +// api document: https://help.aliyun.com/api/ecs/describerecommendinstancetype.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRecommendInstanceTypeWithChan(request *DescribeRecommendInstanceTypeRequest) (<-chan *DescribeRecommendInstanceTypeResponse, <-chan error) { + responseChan := make(chan *DescribeRecommendInstanceTypeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRecommendInstanceType(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRecommendInstanceTypeWithCallback invokes the ecs.DescribeRecommendInstanceType API asynchronously +// api document: https://help.aliyun.com/api/ecs/describerecommendinstancetype.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRecommendInstanceTypeWithCallback(request *DescribeRecommendInstanceTypeRequest, callback func(response *DescribeRecommendInstanceTypeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRecommendInstanceTypeResponse + var err error + defer close(result) + response, err = client.DescribeRecommendInstanceType(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRecommendInstanceTypeRequest is the request struct for api DescribeRecommendInstanceType +type DescribeRecommendInstanceTypeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Channel string `position:"Query" name:"channel"` + NetworkType string `position:"Query" name:"NetworkType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Operator string `position:"Query" name:"operator"` + Token string `position:"Query" name:"token"` + Scene string `position:"Query" name:"Scene"` + InstanceType string `position:"Query" name:"InstanceType"` + ProxyId string `position:"Query" name:"proxyId"` +} + +// DescribeRecommendInstanceTypeResponse is the response struct for api DescribeRecommendInstanceType +type DescribeRecommendInstanceTypeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateDescribeRecommendInstanceTypeRequest creates a request to invoke DescribeRecommendInstanceType API +func CreateDescribeRecommendInstanceTypeRequest() (request *DescribeRecommendInstanceTypeRequest) { + request = &DescribeRecommendInstanceTypeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeRecommendInstanceType", "ecs", "openAPI") + return +} + +// CreateDescribeRecommendInstanceTypeResponse creates a response to parse from DescribeRecommendInstanceType response +func CreateDescribeRecommendInstanceTypeResponse() (response *DescribeRecommendInstanceTypeResponse) { + response = &DescribeRecommendInstanceTypeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_recycle_bin.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_recycle_bin.go new file mode 100644 index 0000000..20f841e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_recycle_bin.go @@ -0,0 +1,112 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRecycleBin invokes the ecs.DescribeRecycleBin API synchronously +// api document: https://help.aliyun.com/api/ecs/describerecyclebin.html +func (client *Client) DescribeRecycleBin(request *DescribeRecycleBinRequest) (response *DescribeRecycleBinResponse, err error) { + response = CreateDescribeRecycleBinResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRecycleBinWithChan invokes the ecs.DescribeRecycleBin API asynchronously +// api document: https://help.aliyun.com/api/ecs/describerecyclebin.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRecycleBinWithChan(request *DescribeRecycleBinRequest) (<-chan *DescribeRecycleBinResponse, <-chan error) { + responseChan := make(chan *DescribeRecycleBinResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRecycleBin(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRecycleBinWithCallback invokes the ecs.DescribeRecycleBin API asynchronously +// api document: https://help.aliyun.com/api/ecs/describerecyclebin.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRecycleBinWithCallback(request *DescribeRecycleBinRequest, callback func(response *DescribeRecycleBinResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRecycleBinResponse + var err error + defer close(result) + response, err = client.DescribeRecycleBin(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRecycleBinRequest is the request struct for api DescribeRecycleBin +type DescribeRecycleBinRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceId string `position:"Query" name:"ResourceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + Status string `position:"Query" name:"Status"` +} + +// DescribeRecycleBinResponse is the response struct for api DescribeRecycleBin +type DescribeRecycleBinResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RecycleBinModels RecycleBinModels `json:"RecycleBinModels" xml:"RecycleBinModels"` +} + +// CreateDescribeRecycleBinRequest creates a request to invoke DescribeRecycleBin API +func CreateDescribeRecycleBinRequest() (request *DescribeRecycleBinRequest) { + request = &DescribeRecycleBinRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeRecycleBin", "ecs", "openAPI") + return +} + +// CreateDescribeRecycleBinResponse creates a response to parse from DescribeRecycleBin response +func CreateDescribeRecycleBinResponse() (response *DescribeRecycleBinResponse) { + response = &DescribeRecycleBinResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_regions.go new file mode 100644 index 0000000..89637c7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_regions.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 ecs.DescribeRegions API synchronously +// api document: https://help.aliyun.com/api/ecs/describeregions.html +func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) { + response = CreateDescribeRegionsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRegionsWithChan invokes the ecs.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 ecs.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + ResourceType string `position:"Query" name:"ResourceType"` +} + +// 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("Ecs", "2014-05-26", "DescribeRegions", "ecs", "openAPI") + 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/ecs/describe_renewal_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_renewal_price.go new file mode 100644 index 0000000..5fc0767 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_renewal_price.go @@ -0,0 +1,111 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRenewalPrice invokes the ecs.DescribeRenewalPrice API synchronously +// api document: https://help.aliyun.com/api/ecs/describerenewalprice.html +func (client *Client) DescribeRenewalPrice(request *DescribeRenewalPriceRequest) (response *DescribeRenewalPriceResponse, err error) { + response = CreateDescribeRenewalPriceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRenewalPriceWithChan invokes the ecs.DescribeRenewalPrice API asynchronously +// api document: https://help.aliyun.com/api/ecs/describerenewalprice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRenewalPriceWithChan(request *DescribeRenewalPriceRequest) (<-chan *DescribeRenewalPriceResponse, <-chan error) { + responseChan := make(chan *DescribeRenewalPriceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRenewalPrice(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRenewalPriceWithCallback invokes the ecs.DescribeRenewalPrice API asynchronously +// api document: https://help.aliyun.com/api/ecs/describerenewalprice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRenewalPriceWithCallback(request *DescribeRenewalPriceRequest, callback func(response *DescribeRenewalPriceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRenewalPriceResponse + var err error + defer close(result) + response, err = client.DescribeRenewalPrice(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRenewalPriceRequest is the request struct for api DescribeRenewalPrice +type DescribeRenewalPriceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceId string `position:"Query" name:"ResourceId"` + Period requests.Integer `position:"Query" name:"Period"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + PriceUnit string `position:"Query" name:"PriceUnit"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` +} + +// DescribeRenewalPriceResponse is the response struct for api DescribeRenewalPrice +type DescribeRenewalPriceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PriceInfo PriceInfo `json:"PriceInfo" xml:"PriceInfo"` +} + +// CreateDescribeRenewalPriceRequest creates a request to invoke DescribeRenewalPrice API +func CreateDescribeRenewalPriceRequest() (request *DescribeRenewalPriceRequest) { + request = &DescribeRenewalPriceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeRenewalPrice", "ecs", "openAPI") + return +} + +// CreateDescribeRenewalPriceResponse creates a response to parse from DescribeRenewalPrice response +func CreateDescribeRenewalPriceResponse() (response *DescribeRenewalPriceResponse) { + response = &DescribeRenewalPriceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resource_by_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resource_by_tags.go new file mode 100644 index 0000000..1b0e0b4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resource_by_tags.go @@ -0,0 +1,122 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeResourceByTags invokes the ecs.DescribeResourceByTags API synchronously +// api document: https://help.aliyun.com/api/ecs/describeresourcebytags.html +func (client *Client) DescribeResourceByTags(request *DescribeResourceByTagsRequest) (response *DescribeResourceByTagsResponse, err error) { + response = CreateDescribeResourceByTagsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeResourceByTagsWithChan invokes the ecs.DescribeResourceByTags API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeresourcebytags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeResourceByTagsWithChan(request *DescribeResourceByTagsRequest) (<-chan *DescribeResourceByTagsResponse, <-chan error) { + responseChan := make(chan *DescribeResourceByTagsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeResourceByTags(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeResourceByTagsWithCallback invokes the ecs.DescribeResourceByTags API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeresourcebytags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeResourceByTagsWithCallback(request *DescribeResourceByTagsRequest, callback func(response *DescribeResourceByTagsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeResourceByTagsResponse + var err error + defer close(result) + response, err = client.DescribeResourceByTags(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeResourceByTagsRequest is the request struct for api DescribeResourceByTags +type DescribeResourceByTagsRequest struct { + *requests.RpcRequest + Tag4Value string `position:"Query" name:"Tag.4.Value"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Tag2Key string `position:"Query" name:"Tag.2.Key"` + Tag5Key string `position:"Query" name:"Tag.5.Key"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Tag3Key string `position:"Query" name:"Tag.3.Key"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` + Tag5Value string `position:"Query" name:"Tag.5.Value"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + Tag1Key string `position:"Query" name:"Tag.1.Key"` + Tag1Value string `position:"Query" name:"Tag.1.Value"` + Tag2Value string `position:"Query" name:"Tag.2.Value"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Tag4Key string `position:"Query" name:"Tag.4.Key"` + Tag3Value string `position:"Query" name:"Tag.3.Value"` +} + +// DescribeResourceByTagsResponse is the response struct for api DescribeResourceByTags +type DescribeResourceByTagsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Resources Resources `json:"Resources" xml:"Resources"` +} + +// CreateDescribeResourceByTagsRequest creates a request to invoke DescribeResourceByTags API +func CreateDescribeResourceByTagsRequest() (request *DescribeResourceByTagsRequest) { + request = &DescribeResourceByTagsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeResourceByTags", "ecs", "openAPI") + return +} + +// CreateDescribeResourceByTagsResponse creates a response to parse from DescribeResourceByTags response +func CreateDescribeResourceByTagsResponse() (response *DescribeResourceByTagsResponse) { + response = &DescribeResourceByTagsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resources_modification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resources_modification.go new file mode 100644 index 0000000..876b822 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resources_modification.go @@ -0,0 +1,112 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeResourcesModification invokes the ecs.DescribeResourcesModification API synchronously +// api document: https://help.aliyun.com/api/ecs/describeresourcesmodification.html +func (client *Client) DescribeResourcesModification(request *DescribeResourcesModificationRequest) (response *DescribeResourcesModificationResponse, err error) { + response = CreateDescribeResourcesModificationResponse() + err = client.DoAction(request, response) + return +} + +// DescribeResourcesModificationWithChan invokes the ecs.DescribeResourcesModification API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeresourcesmodification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeResourcesModificationWithChan(request *DescribeResourcesModificationRequest) (<-chan *DescribeResourcesModificationResponse, <-chan error) { + responseChan := make(chan *DescribeResourcesModificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeResourcesModification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeResourcesModificationWithCallback invokes the ecs.DescribeResourcesModification API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeresourcesmodification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeResourcesModificationWithCallback(request *DescribeResourcesModificationRequest, callback func(response *DescribeResourcesModificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeResourcesModificationResponse + var err error + defer close(result) + response, err = client.DescribeResourcesModification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeResourcesModificationRequest is the request struct for api DescribeResourcesModification +type DescribeResourcesModificationRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MigrateAcrossZone requests.Boolean `position:"Query" name:"MigrateAcrossZone"` + InstanceType string `position:"Query" name:"InstanceType"` + ResourceId string `position:"Query" name:"ResourceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OperationType string `position:"Query" name:"OperationType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + DestinationResource string `position:"Query" name:"DestinationResource"` +} + +// DescribeResourcesModificationResponse is the response struct for api DescribeResourcesModification +type DescribeResourcesModificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AvailableZones AvailableZonesInDescribeResourcesModification `json:"AvailableZones" xml:"AvailableZones"` +} + +// CreateDescribeResourcesModificationRequest creates a request to invoke DescribeResourcesModification API +func CreateDescribeResourcesModificationRequest() (request *DescribeResourcesModificationRequest) { + request = &DescribeResourcesModificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeResourcesModification", "ecs", "openAPI") + return +} + +// CreateDescribeResourcesModificationResponse creates a response to parse from DescribeResourcesModification response +func CreateDescribeResourcesModificationResponse() (response *DescribeResourcesModificationResponse) { + response = &DescribeResourcesModificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_route_tables.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_route_tables.go new file mode 100644 index 0000000..b3b8d93 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_route_tables.go @@ -0,0 +1,117 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRouteTables invokes the ecs.DescribeRouteTables API synchronously +// api document: https://help.aliyun.com/api/ecs/describeroutetables.html +func (client *Client) DescribeRouteTables(request *DescribeRouteTablesRequest) (response *DescribeRouteTablesResponse, err error) { + response = CreateDescribeRouteTablesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRouteTablesWithChan invokes the ecs.DescribeRouteTables API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeroutetables.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRouteTablesWithChan(request *DescribeRouteTablesRequest) (<-chan *DescribeRouteTablesResponse, <-chan error) { + responseChan := make(chan *DescribeRouteTablesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRouteTables(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRouteTablesWithCallback invokes the ecs.DescribeRouteTables API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeroutetables.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRouteTablesWithCallback(request *DescribeRouteTablesRequest, callback func(response *DescribeRouteTablesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRouteTablesResponse + var err error + defer close(result) + response, err = client.DescribeRouteTables(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRouteTablesRequest is the request struct for api DescribeRouteTables +type DescribeRouteTablesRequest struct { + *requests.RpcRequest + RouterType string `position:"Query" name:"RouterType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + RouteTableName string `position:"Query" name:"RouteTableName"` + VRouterId string `position:"Query" name:"VRouterId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + RouterId string `position:"Query" name:"RouterId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + RouteTableId string `position:"Query" name:"RouteTableId"` +} + +// DescribeRouteTablesResponse is the response struct for api DescribeRouteTables +type DescribeRouteTablesResponse 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"` + RouteTables RouteTables `json:"RouteTables" xml:"RouteTables"` +} + +// CreateDescribeRouteTablesRequest creates a request to invoke DescribeRouteTables API +func CreateDescribeRouteTablesRequest() (request *DescribeRouteTablesRequest) { + request = &DescribeRouteTablesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeRouteTables", "ecs", "openAPI") + return +} + +// CreateDescribeRouteTablesResponse creates a response to parse from DescribeRouteTables response +func CreateDescribeRouteTablesResponse() (response *DescribeRouteTablesResponse) { + response = &DescribeRouteTablesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_router_interfaces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_router_interfaces.go new file mode 100644 index 0000000..012edf8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_router_interfaces.go @@ -0,0 +1,118 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRouterInterfaces invokes the ecs.DescribeRouterInterfaces API synchronously +// api document: https://help.aliyun.com/api/ecs/describerouterinterfaces.html +func (client *Client) DescribeRouterInterfaces(request *DescribeRouterInterfacesRequest) (response *DescribeRouterInterfacesResponse, err error) { + response = CreateDescribeRouterInterfacesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRouterInterfacesWithChan invokes the ecs.DescribeRouterInterfaces API asynchronously +// api document: https://help.aliyun.com/api/ecs/describerouterinterfaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRouterInterfacesWithChan(request *DescribeRouterInterfacesRequest) (<-chan *DescribeRouterInterfacesResponse, <-chan error) { + responseChan := make(chan *DescribeRouterInterfacesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRouterInterfaces(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRouterInterfacesWithCallback invokes the ecs.DescribeRouterInterfaces API asynchronously +// api document: https://help.aliyun.com/api/ecs/describerouterinterfaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRouterInterfacesWithCallback(request *DescribeRouterInterfacesRequest, callback func(response *DescribeRouterInterfacesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRouterInterfacesResponse + var err error + defer close(result) + response, err = client.DescribeRouterInterfaces(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRouterInterfacesRequest is the request struct for api DescribeRouterInterfaces +type DescribeRouterInterfacesRequest struct { + *requests.RpcRequest + Filter *[]DescribeRouterInterfacesFilter `position:"Query" name:"Filter" type:"Repeated"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeRouterInterfacesFilter is a repeated param struct in DescribeRouterInterfacesRequest +type DescribeRouterInterfacesFilter struct { + Key string `name:"Key"` + Value *[]string `name:"Value" type:"Repeated"` +} + +// DescribeRouterInterfacesResponse is the response struct for api DescribeRouterInterfaces +type DescribeRouterInterfacesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RouterInterfaceSet RouterInterfaceSet `json:"RouterInterfaceSet" xml:"RouterInterfaceSet"` +} + +// CreateDescribeRouterInterfacesRequest creates a request to invoke DescribeRouterInterfaces API +func CreateDescribeRouterInterfacesRequest() (request *DescribeRouterInterfacesRequest) { + request = &DescribeRouterInterfacesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeRouterInterfaces", "ecs", "openAPI") + return +} + +// CreateDescribeRouterInterfacesResponse creates a response to parse from DescribeRouterInterfaces response +func CreateDescribeRouterInterfacesResponse() (response *DescribeRouterInterfacesResponse) { + response = &DescribeRouterInterfacesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_attribute.go new file mode 100644 index 0000000..7400602 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_attribute.go @@ -0,0 +1,116 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSecurityGroupAttribute invokes the ecs.DescribeSecurityGroupAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/describesecuritygroupattribute.html +func (client *Client) DescribeSecurityGroupAttribute(request *DescribeSecurityGroupAttributeRequest) (response *DescribeSecurityGroupAttributeResponse, err error) { + response = CreateDescribeSecurityGroupAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSecurityGroupAttributeWithChan invokes the ecs.DescribeSecurityGroupAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/describesecuritygroupattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSecurityGroupAttributeWithChan(request *DescribeSecurityGroupAttributeRequest) (<-chan *DescribeSecurityGroupAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeSecurityGroupAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSecurityGroupAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSecurityGroupAttributeWithCallback invokes the ecs.DescribeSecurityGroupAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/describesecuritygroupattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSecurityGroupAttributeWithCallback(request *DescribeSecurityGroupAttributeRequest, callback func(response *DescribeSecurityGroupAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSecurityGroupAttributeResponse + var err error + defer close(result) + response, err = client.DescribeSecurityGroupAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSecurityGroupAttributeRequest is the request struct for api DescribeSecurityGroupAttribute +type DescribeSecurityGroupAttributeRequest struct { + *requests.RpcRequest + NicType string `position:"Query" name:"NicType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Direction string `position:"Query" name:"Direction"` +} + +// DescribeSecurityGroupAttributeResponse is the response struct for api DescribeSecurityGroupAttribute +type DescribeSecurityGroupAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegionId string `json:"RegionId" xml:"RegionId"` + SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` + Description string `json:"Description" xml:"Description"` + SecurityGroupName string `json:"SecurityGroupName" xml:"SecurityGroupName"` + VpcId string `json:"VpcId" xml:"VpcId"` + InnerAccessPolicy string `json:"InnerAccessPolicy" xml:"InnerAccessPolicy"` + Permissions Permissions `json:"Permissions" xml:"Permissions"` +} + +// CreateDescribeSecurityGroupAttributeRequest creates a request to invoke DescribeSecurityGroupAttribute API +func CreateDescribeSecurityGroupAttributeRequest() (request *DescribeSecurityGroupAttributeRequest) { + request = &DescribeSecurityGroupAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSecurityGroupAttribute", "ecs", "openAPI") + return +} + +// CreateDescribeSecurityGroupAttributeResponse creates a response to parse from DescribeSecurityGroupAttribute response +func CreateDescribeSecurityGroupAttributeResponse() (response *DescribeSecurityGroupAttributeResponse) { + response = &DescribeSecurityGroupAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_references.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_references.go new file mode 100644 index 0000000..74a0c86 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_references.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSecurityGroupReferences invokes the ecs.DescribeSecurityGroupReferences API synchronously +// api document: https://help.aliyun.com/api/ecs/describesecuritygroupreferences.html +func (client *Client) DescribeSecurityGroupReferences(request *DescribeSecurityGroupReferencesRequest) (response *DescribeSecurityGroupReferencesResponse, err error) { + response = CreateDescribeSecurityGroupReferencesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSecurityGroupReferencesWithChan invokes the ecs.DescribeSecurityGroupReferences API asynchronously +// api document: https://help.aliyun.com/api/ecs/describesecuritygroupreferences.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSecurityGroupReferencesWithChan(request *DescribeSecurityGroupReferencesRequest) (<-chan *DescribeSecurityGroupReferencesResponse, <-chan error) { + responseChan := make(chan *DescribeSecurityGroupReferencesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSecurityGroupReferences(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSecurityGroupReferencesWithCallback invokes the ecs.DescribeSecurityGroupReferences API asynchronously +// api document: https://help.aliyun.com/api/ecs/describesecuritygroupreferences.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSecurityGroupReferencesWithCallback(request *DescribeSecurityGroupReferencesRequest, callback func(response *DescribeSecurityGroupReferencesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSecurityGroupReferencesResponse + var err error + defer close(result) + response, err = client.DescribeSecurityGroupReferences(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSecurityGroupReferencesRequest is the request struct for api DescribeSecurityGroupReferences +type DescribeSecurityGroupReferencesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SecurityGroupId *[]string `position:"Query" name:"SecurityGroupId" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeSecurityGroupReferencesResponse is the response struct for api DescribeSecurityGroupReferences +type DescribeSecurityGroupReferencesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SecurityGroupReferences SecurityGroupReferences `json:"SecurityGroupReferences" xml:"SecurityGroupReferences"` +} + +// CreateDescribeSecurityGroupReferencesRequest creates a request to invoke DescribeSecurityGroupReferences API +func CreateDescribeSecurityGroupReferencesRequest() (request *DescribeSecurityGroupReferencesRequest) { + request = &DescribeSecurityGroupReferencesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSecurityGroupReferences", "ecs", "openAPI") + return +} + +// CreateDescribeSecurityGroupReferencesResponse creates a response to parse from DescribeSecurityGroupReferences response +func CreateDescribeSecurityGroupReferencesResponse() (response *DescribeSecurityGroupReferencesResponse) { + response = &DescribeSecurityGroupReferencesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_groups.go new file mode 100644 index 0000000..2402954 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_groups.go @@ -0,0 +1,132 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSecurityGroups invokes the ecs.DescribeSecurityGroups API synchronously +// api document: https://help.aliyun.com/api/ecs/describesecuritygroups.html +func (client *Client) DescribeSecurityGroups(request *DescribeSecurityGroupsRequest) (response *DescribeSecurityGroupsResponse, err error) { + response = CreateDescribeSecurityGroupsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSecurityGroupsWithChan invokes the ecs.DescribeSecurityGroups API asynchronously +// api document: https://help.aliyun.com/api/ecs/describesecuritygroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSecurityGroupsWithChan(request *DescribeSecurityGroupsRequest) (<-chan *DescribeSecurityGroupsResponse, <-chan error) { + responseChan := make(chan *DescribeSecurityGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSecurityGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSecurityGroupsWithCallback invokes the ecs.DescribeSecurityGroups API asynchronously +// api document: https://help.aliyun.com/api/ecs/describesecuritygroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSecurityGroupsWithCallback(request *DescribeSecurityGroupsRequest, callback func(response *DescribeSecurityGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSecurityGroupsResponse + var err error + defer close(result) + response, err = client.DescribeSecurityGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSecurityGroupsRequest is the request struct for api DescribeSecurityGroups +type DescribeSecurityGroupsRequest struct { + *requests.RpcRequest + Tag4Value string `position:"Query" name:"Tag.4.Value"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Tag2Key string `position:"Query" name:"Tag.2.Key"` + FuzzyQuery requests.Boolean `position:"Query" name:"FuzzyQuery"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Tag3Key string `position:"Query" name:"Tag.3.Key"` + IsQueryEcsCount requests.Boolean `position:"Query" name:"IsQueryEcsCount"` + NetworkType string `position:"Query" name:"NetworkType"` + SecurityGroupName string `position:"Query" name:"SecurityGroupName"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + Tag1Value string `position:"Query" name:"Tag.1.Value"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Tag3Value string `position:"Query" name:"Tag.3.Value"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + Tag5Key string `position:"Query" name:"Tag.5.Key"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityGroupIds string `position:"Query" name:"SecurityGroupIds"` + Tag5Value string `position:"Query" name:"Tag.5.Value"` + Tag1Key string `position:"Query" name:"Tag.1.Key"` + VpcId string `position:"Query" name:"VpcId"` + Tag2Value string `position:"Query" name:"Tag.2.Value"` + Tag4Key string `position:"Query" name:"Tag.4.Key"` +} + +// DescribeSecurityGroupsResponse is the response struct for api DescribeSecurityGroups +type DescribeSecurityGroupsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegionId string `json:"RegionId" xml:"RegionId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + SecurityGroups SecurityGroups `json:"SecurityGroups" xml:"SecurityGroups"` +} + +// CreateDescribeSecurityGroupsRequest creates a request to invoke DescribeSecurityGroups API +func CreateDescribeSecurityGroupsRequest() (request *DescribeSecurityGroupsRequest) { + request = &DescribeSecurityGroupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSecurityGroups", "ecs", "openAPI") + return +} + +// CreateDescribeSecurityGroupsResponse creates a response to parse from DescribeSecurityGroups response +func CreateDescribeSecurityGroupsResponse() (response *DescribeSecurityGroupsResponse) { + response = &DescribeSecurityGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_links.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_links.go new file mode 100644 index 0000000..322f4ef --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_links.go @@ -0,0 +1,115 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSnapshotLinks invokes the ecs.DescribeSnapshotLinks API synchronously +// api document: https://help.aliyun.com/api/ecs/describesnapshotlinks.html +func (client *Client) DescribeSnapshotLinks(request *DescribeSnapshotLinksRequest) (response *DescribeSnapshotLinksResponse, err error) { + response = CreateDescribeSnapshotLinksResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSnapshotLinksWithChan invokes the ecs.DescribeSnapshotLinks API asynchronously +// api document: https://help.aliyun.com/api/ecs/describesnapshotlinks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSnapshotLinksWithChan(request *DescribeSnapshotLinksRequest) (<-chan *DescribeSnapshotLinksResponse, <-chan error) { + responseChan := make(chan *DescribeSnapshotLinksResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSnapshotLinks(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSnapshotLinksWithCallback invokes the ecs.DescribeSnapshotLinks API asynchronously +// api document: https://help.aliyun.com/api/ecs/describesnapshotlinks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSnapshotLinksWithCallback(request *DescribeSnapshotLinksRequest, callback func(response *DescribeSnapshotLinksResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSnapshotLinksResponse + var err error + defer close(result) + response, err = client.DescribeSnapshotLinks(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSnapshotLinksRequest is the request struct for api DescribeSnapshotLinks +type DescribeSnapshotLinksRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + DiskIds string `position:"Query" name:"DiskIds"` + SnapshotLinkIds string `position:"Query" name:"SnapshotLinkIds"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeSnapshotLinksResponse is the response struct for api DescribeSnapshotLinks +type DescribeSnapshotLinksResponse 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"` + SnapshotLinks SnapshotLinks `json:"SnapshotLinks" xml:"SnapshotLinks"` +} + +// CreateDescribeSnapshotLinksRequest creates a request to invoke DescribeSnapshotLinks API +func CreateDescribeSnapshotLinksRequest() (request *DescribeSnapshotLinksRequest) { + request = &DescribeSnapshotLinksRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSnapshotLinks", "ecs", "openAPI") + return +} + +// CreateDescribeSnapshotLinksResponse creates a response to parse from DescribeSnapshotLinks response +func CreateDescribeSnapshotLinksResponse() (response *DescribeSnapshotLinksResponse) { + response = &DescribeSnapshotLinksResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_monitor_data.go new file mode 100644 index 0000000..cd42e3a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_monitor_data.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSnapshotMonitorData invokes the ecs.DescribeSnapshotMonitorData API synchronously +// api document: https://help.aliyun.com/api/ecs/describesnapshotmonitordata.html +func (client *Client) DescribeSnapshotMonitorData(request *DescribeSnapshotMonitorDataRequest) (response *DescribeSnapshotMonitorDataResponse, err error) { + response = CreateDescribeSnapshotMonitorDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSnapshotMonitorDataWithChan invokes the ecs.DescribeSnapshotMonitorData API asynchronously +// api document: https://help.aliyun.com/api/ecs/describesnapshotmonitordata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSnapshotMonitorDataWithChan(request *DescribeSnapshotMonitorDataRequest) (<-chan *DescribeSnapshotMonitorDataResponse, <-chan error) { + responseChan := make(chan *DescribeSnapshotMonitorDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSnapshotMonitorData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSnapshotMonitorDataWithCallback invokes the ecs.DescribeSnapshotMonitorData API asynchronously +// api document: https://help.aliyun.com/api/ecs/describesnapshotmonitordata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSnapshotMonitorDataWithCallback(request *DescribeSnapshotMonitorDataRequest, callback func(response *DescribeSnapshotMonitorDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSnapshotMonitorDataResponse + var err error + defer close(result) + response, err = client.DescribeSnapshotMonitorData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSnapshotMonitorDataRequest is the request struct for api DescribeSnapshotMonitorData +type DescribeSnapshotMonitorDataRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Period requests.Integer `position:"Query" name:"Period"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeSnapshotMonitorDataResponse is the response struct for api DescribeSnapshotMonitorData +type DescribeSnapshotMonitorDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MonitorData MonitorDataInDescribeSnapshotMonitorData `json:"MonitorData" xml:"MonitorData"` +} + +// CreateDescribeSnapshotMonitorDataRequest creates a request to invoke DescribeSnapshotMonitorData API +func CreateDescribeSnapshotMonitorDataRequest() (request *DescribeSnapshotMonitorDataRequest) { + request = &DescribeSnapshotMonitorDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSnapshotMonitorData", "ecs", "openAPI") + return +} + +// CreateDescribeSnapshotMonitorDataResponse creates a response to parse from DescribeSnapshotMonitorData response +func CreateDescribeSnapshotMonitorDataResponse() (response *DescribeSnapshotMonitorDataResponse) { + response = &DescribeSnapshotMonitorDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_package.go new file mode 100644 index 0000000..b4fefc3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_package.go @@ -0,0 +1,112 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSnapshotPackage invokes the ecs.DescribeSnapshotPackage API synchronously +// api document: https://help.aliyun.com/api/ecs/describesnapshotpackage.html +func (client *Client) DescribeSnapshotPackage(request *DescribeSnapshotPackageRequest) (response *DescribeSnapshotPackageResponse, err error) { + response = CreateDescribeSnapshotPackageResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSnapshotPackageWithChan invokes the ecs.DescribeSnapshotPackage API asynchronously +// api document: https://help.aliyun.com/api/ecs/describesnapshotpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSnapshotPackageWithChan(request *DescribeSnapshotPackageRequest) (<-chan *DescribeSnapshotPackageResponse, <-chan error) { + responseChan := make(chan *DescribeSnapshotPackageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSnapshotPackage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSnapshotPackageWithCallback invokes the ecs.DescribeSnapshotPackage API asynchronously +// api document: https://help.aliyun.com/api/ecs/describesnapshotpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSnapshotPackageWithCallback(request *DescribeSnapshotPackageRequest, callback func(response *DescribeSnapshotPackageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSnapshotPackageResponse + var err error + defer close(result) + response, err = client.DescribeSnapshotPackage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSnapshotPackageRequest is the request struct for api DescribeSnapshotPackage +type DescribeSnapshotPackageRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeSnapshotPackageResponse is the response struct for api DescribeSnapshotPackage +type DescribeSnapshotPackageResponse 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"` + SnapshotPackages SnapshotPackages `json:"SnapshotPackages" xml:"SnapshotPackages"` +} + +// CreateDescribeSnapshotPackageRequest creates a request to invoke DescribeSnapshotPackage API +func CreateDescribeSnapshotPackageRequest() (request *DescribeSnapshotPackageRequest) { + request = &DescribeSnapshotPackageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSnapshotPackage", "ecs", "openAPI") + return +} + +// CreateDescribeSnapshotPackageResponse creates a response to parse from DescribeSnapshotPackage response +func CreateDescribeSnapshotPackageResponse() (response *DescribeSnapshotPackageResponse) { + response = &DescribeSnapshotPackageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots.go new file mode 100644 index 0000000..fd7ba8e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots.go @@ -0,0 +1,137 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSnapshots invokes the ecs.DescribeSnapshots API synchronously +// api document: https://help.aliyun.com/api/ecs/describesnapshots.html +func (client *Client) DescribeSnapshots(request *DescribeSnapshotsRequest) (response *DescribeSnapshotsResponse, err error) { + response = CreateDescribeSnapshotsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSnapshotsWithChan invokes the ecs.DescribeSnapshots API asynchronously +// api document: https://help.aliyun.com/api/ecs/describesnapshots.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSnapshotsWithChan(request *DescribeSnapshotsRequest) (<-chan *DescribeSnapshotsResponse, <-chan error) { + responseChan := make(chan *DescribeSnapshotsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSnapshots(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSnapshotsWithCallback invokes the ecs.DescribeSnapshots API asynchronously +// api document: https://help.aliyun.com/api/ecs/describesnapshots.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSnapshotsWithCallback(request *DescribeSnapshotsRequest, callback func(response *DescribeSnapshotsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSnapshotsResponse + var err error + defer close(result) + response, err = client.DescribeSnapshots(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSnapshotsRequest is the request struct for api DescribeSnapshots +type DescribeSnapshotsRequest struct { + *requests.RpcRequest + Tag4Value string `position:"Query" name:"Tag.4.Value"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Tag2Key string `position:"Query" name:"Tag.2.Key"` + Filter2Value string `position:"Query" name:"Filter.2.Value"` + SnapshotIds string `position:"Query" name:"SnapshotIds"` + Usage string `position:"Query" name:"Usage"` + SnapshotLinkId string `position:"Query" name:"SnapshotLinkId"` + SnapshotName string `position:"Query" name:"SnapshotName"` + Tag3Key string `position:"Query" name:"Tag.3.Key"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + Tag1Value string `position:"Query" name:"Tag.1.Value"` + Filter1Key string `position:"Query" name:"Filter.1.Key"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + DiskId string `position:"Query" name:"DiskId"` + Tag3Value string `position:"Query" name:"Tag.3.Value"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + Tag5Key string `position:"Query" name:"Tag.5.Key"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SourceDiskType string `position:"Query" name:"SourceDiskType"` + Filter1Value string `position:"Query" name:"Filter.1.Value"` + Filter2Key string `position:"Query" name:"Filter.2.Key"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tag5Value string `position:"Query" name:"Tag.5.Value"` + Tag1Key string `position:"Query" name:"Tag.1.Key"` + InstanceId string `position:"Query" name:"InstanceId"` + Encrypted requests.Boolean `position:"Query" name:"Encrypted"` + SnapshotType string `position:"Query" name:"SnapshotType"` + Tag2Value string `position:"Query" name:"Tag.2.Value"` + Tag4Key string `position:"Query" name:"Tag.4.Key"` + Status string `position:"Query" name:"Status"` +} + +// DescribeSnapshotsResponse is the response struct for api DescribeSnapshots +type DescribeSnapshotsResponse 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"` + Snapshots Snapshots `json:"Snapshots" xml:"Snapshots"` +} + +// CreateDescribeSnapshotsRequest creates a request to invoke DescribeSnapshots API +func CreateDescribeSnapshotsRequest() (request *DescribeSnapshotsRequest) { + request = &DescribeSnapshotsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSnapshots", "ecs", "openAPI") + return +} + +// CreateDescribeSnapshotsResponse creates a response to parse from DescribeSnapshots response +func CreateDescribeSnapshotsResponse() (response *DescribeSnapshotsResponse) { + response = &DescribeSnapshotsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots_usage.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots_usage.go new file mode 100644 index 0000000..769579c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots_usage.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSnapshotsUsage invokes the ecs.DescribeSnapshotsUsage API synchronously +// api document: https://help.aliyun.com/api/ecs/describesnapshotsusage.html +func (client *Client) DescribeSnapshotsUsage(request *DescribeSnapshotsUsageRequest) (response *DescribeSnapshotsUsageResponse, err error) { + response = CreateDescribeSnapshotsUsageResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSnapshotsUsageWithChan invokes the ecs.DescribeSnapshotsUsage API asynchronously +// api document: https://help.aliyun.com/api/ecs/describesnapshotsusage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSnapshotsUsageWithChan(request *DescribeSnapshotsUsageRequest) (<-chan *DescribeSnapshotsUsageResponse, <-chan error) { + responseChan := make(chan *DescribeSnapshotsUsageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSnapshotsUsage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSnapshotsUsageWithCallback invokes the ecs.DescribeSnapshotsUsage API asynchronously +// api document: https://help.aliyun.com/api/ecs/describesnapshotsusage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSnapshotsUsageWithCallback(request *DescribeSnapshotsUsageRequest, callback func(response *DescribeSnapshotsUsageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSnapshotsUsageResponse + var err error + defer close(result) + response, err = client.DescribeSnapshotsUsage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSnapshotsUsageRequest is the request struct for api DescribeSnapshotsUsage +type DescribeSnapshotsUsageRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeSnapshotsUsageResponse is the response struct for api DescribeSnapshotsUsage +type DescribeSnapshotsUsageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SnapshotCount int `json:"SnapshotCount" xml:"SnapshotCount"` + SnapshotSize int `json:"SnapshotSize" xml:"SnapshotSize"` +} + +// CreateDescribeSnapshotsUsageRequest creates a request to invoke DescribeSnapshotsUsage API +func CreateDescribeSnapshotsUsageRequest() (request *DescribeSnapshotsUsageRequest) { + request = &DescribeSnapshotsUsageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSnapshotsUsage", "ecs", "openAPI") + return +} + +// CreateDescribeSnapshotsUsageResponse creates a response to parse from DescribeSnapshotsUsage response +func CreateDescribeSnapshotsUsageResponse() (response *DescribeSnapshotsUsageResponse) { + response = &DescribeSnapshotsUsageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_spot_price_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_spot_price_history.go new file mode 100644 index 0000000..b8cdc63 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_spot_price_history.go @@ -0,0 +1,117 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSpotPriceHistory invokes the ecs.DescribeSpotPriceHistory API synchronously +// api document: https://help.aliyun.com/api/ecs/describespotpricehistory.html +func (client *Client) DescribeSpotPriceHistory(request *DescribeSpotPriceHistoryRequest) (response *DescribeSpotPriceHistoryResponse, err error) { + response = CreateDescribeSpotPriceHistoryResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSpotPriceHistoryWithChan invokes the ecs.DescribeSpotPriceHistory API asynchronously +// api document: https://help.aliyun.com/api/ecs/describespotpricehistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSpotPriceHistoryWithChan(request *DescribeSpotPriceHistoryRequest) (<-chan *DescribeSpotPriceHistoryResponse, <-chan error) { + responseChan := make(chan *DescribeSpotPriceHistoryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSpotPriceHistory(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSpotPriceHistoryWithCallback invokes the ecs.DescribeSpotPriceHistory API asynchronously +// api document: https://help.aliyun.com/api/ecs/describespotpricehistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSpotPriceHistoryWithCallback(request *DescribeSpotPriceHistoryRequest, callback func(response *DescribeSpotPriceHistoryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSpotPriceHistoryResponse + var err error + defer close(result) + response, err = client.DescribeSpotPriceHistory(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSpotPriceHistoryRequest is the request struct for api DescribeSpotPriceHistory +type DescribeSpotPriceHistoryRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + IoOptimized string `position:"Query" name:"IoOptimized"` + NetworkType string `position:"Query" name:"NetworkType"` + StartTime string `position:"Query" name:"StartTime"` + InstanceType string `position:"Query" name:"InstanceType"` + Offset requests.Integer `position:"Query" name:"Offset"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EndTime string `position:"Query" name:"EndTime"` + OSType string `position:"Query" name:"OSType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ZoneId string `position:"Query" name:"ZoneId"` +} + +// DescribeSpotPriceHistoryResponse is the response struct for api DescribeSpotPriceHistory +type DescribeSpotPriceHistoryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NextOffset int `json:"NextOffset" xml:"NextOffset"` + Currency string `json:"Currency" xml:"Currency"` + SpotPrices SpotPrices `json:"SpotPrices" xml:"SpotPrices"` +} + +// CreateDescribeSpotPriceHistoryRequest creates a request to invoke DescribeSpotPriceHistory API +func CreateDescribeSpotPriceHistoryRequest() (request *DescribeSpotPriceHistoryRequest) { + request = &DescribeSpotPriceHistoryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSpotPriceHistory", "ecs", "openAPI") + return +} + +// CreateDescribeSpotPriceHistoryResponse creates a response to parse from DescribeSpotPriceHistory response +func CreateDescribeSpotPriceHistoryResponse() (response *DescribeSpotPriceHistoryResponse) { + response = &DescribeSpotPriceHistoryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tag_keys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tag_keys.go new file mode 100644 index 0000000..839fc14 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tag_keys.go @@ -0,0 +1,113 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeTagKeys invokes the ecs.DescribeTagKeys API synchronously +// api document: https://help.aliyun.com/api/ecs/describetagkeys.html +func (client *Client) DescribeTagKeys(request *DescribeTagKeysRequest) (response *DescribeTagKeysResponse, err error) { + response = CreateDescribeTagKeysResponse() + err = client.DoAction(request, response) + return +} + +// DescribeTagKeysWithChan invokes the ecs.DescribeTagKeys API asynchronously +// api document: https://help.aliyun.com/api/ecs/describetagkeys.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTagKeysWithChan(request *DescribeTagKeysRequest) (<-chan *DescribeTagKeysResponse, <-chan error) { + responseChan := make(chan *DescribeTagKeysResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeTagKeys(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeTagKeysWithCallback invokes the ecs.DescribeTagKeys API asynchronously +// api document: https://help.aliyun.com/api/ecs/describetagkeys.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTagKeysWithCallback(request *DescribeTagKeysRequest, callback func(response *DescribeTagKeysResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeTagKeysResponse + var err error + defer close(result) + response, err = client.DescribeTagKeys(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeTagKeysRequest is the request struct for api DescribeTagKeys +type DescribeTagKeysRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceId string `position:"Query" name:"ResourceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeTagKeysResponse is the response struct for api DescribeTagKeys +type DescribeTagKeysResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + TagKeys TagKeys `json:"TagKeys" xml:"TagKeys"` +} + +// CreateDescribeTagKeysRequest creates a request to invoke DescribeTagKeys API +func CreateDescribeTagKeysRequest() (request *DescribeTagKeysRequest) { + request = &DescribeTagKeysRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeTagKeys", "ecs", "openAPI") + return +} + +// CreateDescribeTagKeysResponse creates a response to parse from DescribeTagKeys response +func CreateDescribeTagKeysResponse() (response *DescribeTagKeysResponse) { + response = &DescribeTagKeysResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tags.go new file mode 100644 index 0000000..12d31c1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tags.go @@ -0,0 +1,123 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 ecs.DescribeTags API synchronously +// api document: https://help.aliyun.com/api/ecs/describetags.html +func (client *Client) DescribeTags(request *DescribeTagsRequest) (response *DescribeTagsResponse, err error) { + response = CreateDescribeTagsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeTagsWithChan invokes the ecs.DescribeTags API asynchronously +// api document: https://help.aliyun.com/api/ecs/describetags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 ecs.DescribeTags API asynchronously +// api document: https://help.aliyun.com/api/ecs/describetags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Tag4Value string `position:"Query" name:"Tag.4.Value"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceId string `position:"Query" name:"ResourceId"` + Tag2Key string `position:"Query" name:"Tag.2.Key"` + Tag5Key string `position:"Query" name:"Tag.5.Key"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Tag3Key string `position:"Query" name:"Tag.3.Key"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` + Tag5Value string `position:"Query" name:"Tag.5.Value"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + Tag1Key string `position:"Query" name:"Tag.1.Key"` + Tag1Value string `position:"Query" name:"Tag.1.Value"` + Tag2Value string `position:"Query" name:"Tag.2.Value"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Tag4Key string `position:"Query" name:"Tag.4.Key"` + Tag3Value string `position:"Query" name:"Tag.3.Value"` +} + +// DescribeTagsResponse is the response struct for api DescribeTags +type DescribeTagsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Tags TagsInDescribeTags `json:"Tags" xml:"Tags"` +} + +// CreateDescribeTagsRequest creates a request to invoke DescribeTags API +func CreateDescribeTagsRequest() (request *DescribeTagsRequest) { + request = &DescribeTagsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeTags", "ecs", "openAPI") + 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/ecs/describe_task_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_task_attribute.go new file mode 100644 index 0000000..ccfbf54 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_task_attribute.go @@ -0,0 +1,118 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeTaskAttribute invokes the ecs.DescribeTaskAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/describetaskattribute.html +func (client *Client) DescribeTaskAttribute(request *DescribeTaskAttributeRequest) (response *DescribeTaskAttributeResponse, err error) { + response = CreateDescribeTaskAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeTaskAttributeWithChan invokes the ecs.DescribeTaskAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/describetaskattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTaskAttributeWithChan(request *DescribeTaskAttributeRequest) (<-chan *DescribeTaskAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeTaskAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeTaskAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeTaskAttributeWithCallback invokes the ecs.DescribeTaskAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/describetaskattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTaskAttributeWithCallback(request *DescribeTaskAttributeRequest, callback func(response *DescribeTaskAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeTaskAttributeResponse + var err error + defer close(result) + response, err = client.DescribeTaskAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeTaskAttributeRequest is the request struct for api DescribeTaskAttribute +type DescribeTaskAttributeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + TaskId string `position:"Query" name:"TaskId"` +} + +// DescribeTaskAttributeResponse is the response struct for api DescribeTaskAttribute +type DescribeTaskAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskId string `json:"TaskId" xml:"TaskId"` + RegionId string `json:"RegionId" xml:"RegionId"` + TaskAction string `json:"TaskAction" xml:"TaskAction"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + TaskProcess string `json:"TaskProcess" xml:"TaskProcess"` + SupportCancel string `json:"SupportCancel" xml:"SupportCancel"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + SuccessCount int `json:"SuccessCount" xml:"SuccessCount"` + FailedCount int `json:"FailedCount" xml:"FailedCount"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + FinishedTime string `json:"FinishedTime" xml:"FinishedTime"` + OperationProgressSet OperationProgressSet `json:"OperationProgressSet" xml:"OperationProgressSet"` +} + +// CreateDescribeTaskAttributeRequest creates a request to invoke DescribeTaskAttribute API +func CreateDescribeTaskAttributeRequest() (request *DescribeTaskAttributeRequest) { + request = &DescribeTaskAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeTaskAttribute", "ecs", "openAPI") + return +} + +// CreateDescribeTaskAttributeResponse creates a response to parse from DescribeTaskAttribute response +func CreateDescribeTaskAttributeResponse() (response *DescribeTaskAttributeResponse) { + response = &DescribeTaskAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tasks.go new file mode 100644 index 0000000..b59c3c5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tasks.go @@ -0,0 +1,118 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeTasks invokes the ecs.DescribeTasks API synchronously +// api document: https://help.aliyun.com/api/ecs/describetasks.html +func (client *Client) DescribeTasks(request *DescribeTasksRequest) (response *DescribeTasksResponse, err error) { + response = CreateDescribeTasksResponse() + err = client.DoAction(request, response) + return +} + +// DescribeTasksWithChan invokes the ecs.DescribeTasks API asynchronously +// api document: https://help.aliyun.com/api/ecs/describetasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTasksWithChan(request *DescribeTasksRequest) (<-chan *DescribeTasksResponse, <-chan error) { + responseChan := make(chan *DescribeTasksResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeTasks(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeTasksWithCallback invokes the ecs.DescribeTasks API asynchronously +// api document: https://help.aliyun.com/api/ecs/describetasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTasksWithCallback(request *DescribeTasksRequest, callback func(response *DescribeTasksResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeTasksResponse + var err error + defer close(result) + response, err = client.DescribeTasks(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeTasksRequest is the request struct for api DescribeTasks +type DescribeTasksRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + TaskIds string `position:"Query" name:"TaskIds"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + TaskStatus string `position:"Query" name:"TaskStatus"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + TaskAction string `position:"Query" name:"TaskAction"` +} + +// DescribeTasksResponse is the response struct for api DescribeTasks +type DescribeTasksResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegionId string `json:"RegionId" xml:"RegionId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TaskSet TaskSet `json:"TaskSet" xml:"TaskSet"` +} + +// CreateDescribeTasksRequest creates a request to invoke DescribeTasks API +func CreateDescribeTasksRequest() (request *DescribeTasksRequest) { + request = &DescribeTasksRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeTasks", "ecs", "openAPI") + return +} + +// CreateDescribeTasksResponse creates a response to parse from DescribeTasks response +func CreateDescribeTasksResponse() (response *DescribeTasksResponse) { + response = &DescribeTasksResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_business_behavior.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_business_behavior.go new file mode 100644 index 0000000..0070a58 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_business_behavior.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeUserBusinessBehavior invokes the ecs.DescribeUserBusinessBehavior API synchronously +// api document: https://help.aliyun.com/api/ecs/describeuserbusinessbehavior.html +func (client *Client) DescribeUserBusinessBehavior(request *DescribeUserBusinessBehaviorRequest) (response *DescribeUserBusinessBehaviorResponse, err error) { + response = CreateDescribeUserBusinessBehaviorResponse() + err = client.DoAction(request, response) + return +} + +// DescribeUserBusinessBehaviorWithChan invokes the ecs.DescribeUserBusinessBehavior API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeuserbusinessbehavior.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserBusinessBehaviorWithChan(request *DescribeUserBusinessBehaviorRequest) (<-chan *DescribeUserBusinessBehaviorResponse, <-chan error) { + responseChan := make(chan *DescribeUserBusinessBehaviorResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeUserBusinessBehavior(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeUserBusinessBehaviorWithCallback invokes the ecs.DescribeUserBusinessBehavior API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeuserbusinessbehavior.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserBusinessBehaviorWithCallback(request *DescribeUserBusinessBehaviorRequest, callback func(response *DescribeUserBusinessBehaviorResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeUserBusinessBehaviorResponse + var err error + defer close(result) + response, err = client.DescribeUserBusinessBehavior(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeUserBusinessBehaviorRequest is the request struct for api DescribeUserBusinessBehavior +type DescribeUserBusinessBehaviorRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StatusKey string `position:"Query" name:"statusKey"` +} + +// DescribeUserBusinessBehaviorResponse is the response struct for api DescribeUserBusinessBehavior +type DescribeUserBusinessBehaviorResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + StatusValue string `json:"StatusValue" xml:"StatusValue"` +} + +// CreateDescribeUserBusinessBehaviorRequest creates a request to invoke DescribeUserBusinessBehavior API +func CreateDescribeUserBusinessBehaviorRequest() (request *DescribeUserBusinessBehaviorRequest) { + request = &DescribeUserBusinessBehaviorRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeUserBusinessBehavior", "ecs", "openAPI") + return +} + +// CreateDescribeUserBusinessBehaviorResponse creates a response to parse from DescribeUserBusinessBehavior response +func CreateDescribeUserBusinessBehaviorResponse() (response *DescribeUserBusinessBehaviorResponse) { + response = &DescribeUserBusinessBehaviorResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_data.go new file mode 100644 index 0000000..63e80e1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_data.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeUserData invokes the ecs.DescribeUserData API synchronously +// api document: https://help.aliyun.com/api/ecs/describeuserdata.html +func (client *Client) DescribeUserData(request *DescribeUserDataRequest) (response *DescribeUserDataResponse, err error) { + response = CreateDescribeUserDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeUserDataWithChan invokes the ecs.DescribeUserData API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeuserdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserDataWithChan(request *DescribeUserDataRequest) (<-chan *DescribeUserDataResponse, <-chan error) { + responseChan := make(chan *DescribeUserDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeUserData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeUserDataWithCallback invokes the ecs.DescribeUserData API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeuserdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserDataWithCallback(request *DescribeUserDataRequest, callback func(response *DescribeUserDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeUserDataResponse + var err error + defer close(result) + response, err = client.DescribeUserData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeUserDataRequest is the request struct for api DescribeUserData +type DescribeUserDataRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeUserDataResponse is the response struct for api DescribeUserData +type DescribeUserDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegionId string `json:"RegionId" xml:"RegionId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + UserData string `json:"UserData" xml:"UserData"` +} + +// CreateDescribeUserDataRequest creates a request to invoke DescribeUserData API +func CreateDescribeUserDataRequest() (request *DescribeUserDataRequest) { + request = &DescribeUserDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeUserData", "ecs", "openAPI") + return +} + +// CreateDescribeUserDataResponse creates a response to parse from DescribeUserData response +func CreateDescribeUserDataResponse() (response *DescribeUserDataResponse) { + response = &DescribeUserDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_routers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_routers.go new file mode 100644 index 0000000..110d0f7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_routers.go @@ -0,0 +1,113 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVRouters invokes the ecs.DescribeVRouters API synchronously +// api document: https://help.aliyun.com/api/ecs/describevrouters.html +func (client *Client) DescribeVRouters(request *DescribeVRoutersRequest) (response *DescribeVRoutersResponse, err error) { + response = CreateDescribeVRoutersResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVRoutersWithChan invokes the ecs.DescribeVRouters API asynchronously +// api document: https://help.aliyun.com/api/ecs/describevrouters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVRoutersWithChan(request *DescribeVRoutersRequest) (<-chan *DescribeVRoutersResponse, <-chan error) { + responseChan := make(chan *DescribeVRoutersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVRouters(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVRoutersWithCallback invokes the ecs.DescribeVRouters API asynchronously +// api document: https://help.aliyun.com/api/ecs/describevrouters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVRoutersWithCallback(request *DescribeVRoutersRequest, callback func(response *DescribeVRoutersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVRoutersResponse + var err error + defer close(result) + response, err = client.DescribeVRouters(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVRoutersRequest is the request struct for api DescribeVRouters +type DescribeVRoutersRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VRouterId string `position:"Query" name:"VRouterId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeVRoutersResponse is the response struct for api DescribeVRouters +type DescribeVRoutersResponse 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"` + VRouters VRouters `json:"VRouters" xml:"VRouters"` +} + +// CreateDescribeVRoutersRequest creates a request to invoke DescribeVRouters API +func CreateDescribeVRoutersRequest() (request *DescribeVRoutersRequest) { + request = &DescribeVRoutersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeVRouters", "ecs", "openAPI") + return +} + +// CreateDescribeVRoutersResponse creates a response to parse from DescribeVRouters response +func CreateDescribeVRoutersResponse() (response *DescribeVRoutersResponse) { + response = &DescribeVRoutersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_switches.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_switches.go new file mode 100644 index 0000000..26c77f2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_switches.go @@ -0,0 +1,116 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVSwitches invokes the ecs.DescribeVSwitches API synchronously +// api document: https://help.aliyun.com/api/ecs/describevswitches.html +func (client *Client) DescribeVSwitches(request *DescribeVSwitchesRequest) (response *DescribeVSwitchesResponse, err error) { + response = CreateDescribeVSwitchesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVSwitchesWithChan invokes the ecs.DescribeVSwitches API asynchronously +// api document: https://help.aliyun.com/api/ecs/describevswitches.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVSwitchesWithChan(request *DescribeVSwitchesRequest) (<-chan *DescribeVSwitchesResponse, <-chan error) { + responseChan := make(chan *DescribeVSwitchesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVSwitches(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVSwitchesWithCallback invokes the ecs.DescribeVSwitches API asynchronously +// api document: https://help.aliyun.com/api/ecs/describevswitches.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVSwitchesWithCallback(request *DescribeVSwitchesRequest, callback func(response *DescribeVSwitchesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVSwitchesResponse + var err error + defer close(result) + response, err = client.DescribeVSwitches(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVSwitchesRequest is the request struct for api DescribeVSwitches +type DescribeVSwitchesRequest struct { + *requests.RpcRequest + VSwitchId string `position:"Query" name:"VSwitchId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + VpcId string `position:"Query" name:"VpcId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ZoneId string `position:"Query" name:"ZoneId"` + IsDefault requests.Boolean `position:"Query" name:"IsDefault"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeVSwitchesResponse is the response struct for api DescribeVSwitches +type DescribeVSwitchesResponse 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"` + VSwitches VSwitches `json:"VSwitches" xml:"VSwitches"` +} + +// CreateDescribeVSwitchesRequest creates a request to invoke DescribeVSwitches API +func CreateDescribeVSwitchesRequest() (request *DescribeVSwitchesRequest) { + request = &DescribeVSwitchesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeVSwitches", "ecs", "openAPI") + return +} + +// CreateDescribeVSwitchesResponse creates a response to parse from DescribeVSwitches response +func CreateDescribeVSwitchesResponse() (response *DescribeVSwitchesResponse) { + response = &DescribeVSwitchesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers.go new file mode 100644 index 0000000..2da53ab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers.go @@ -0,0 +1,118 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVirtualBorderRouters invokes the ecs.DescribeVirtualBorderRouters API synchronously +// api document: https://help.aliyun.com/api/ecs/describevirtualborderrouters.html +func (client *Client) DescribeVirtualBorderRouters(request *DescribeVirtualBorderRoutersRequest) (response *DescribeVirtualBorderRoutersResponse, err error) { + response = CreateDescribeVirtualBorderRoutersResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVirtualBorderRoutersWithChan invokes the ecs.DescribeVirtualBorderRouters API asynchronously +// api document: https://help.aliyun.com/api/ecs/describevirtualborderrouters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVirtualBorderRoutersWithChan(request *DescribeVirtualBorderRoutersRequest) (<-chan *DescribeVirtualBorderRoutersResponse, <-chan error) { + responseChan := make(chan *DescribeVirtualBorderRoutersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVirtualBorderRouters(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVirtualBorderRoutersWithCallback invokes the ecs.DescribeVirtualBorderRouters API asynchronously +// api document: https://help.aliyun.com/api/ecs/describevirtualborderrouters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVirtualBorderRoutersWithCallback(request *DescribeVirtualBorderRoutersRequest, callback func(response *DescribeVirtualBorderRoutersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVirtualBorderRoutersResponse + var err error + defer close(result) + response, err = client.DescribeVirtualBorderRouters(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVirtualBorderRoutersRequest is the request struct for api DescribeVirtualBorderRouters +type DescribeVirtualBorderRoutersRequest struct { + *requests.RpcRequest + Filter *[]DescribeVirtualBorderRoutersFilter `position:"Query" name:"Filter" type:"Repeated"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeVirtualBorderRoutersFilter is a repeated param struct in DescribeVirtualBorderRoutersRequest +type DescribeVirtualBorderRoutersFilter struct { + Key string `name:"Key"` + Value *[]string `name:"Value" type:"Repeated"` +} + +// DescribeVirtualBorderRoutersResponse is the response struct for api DescribeVirtualBorderRouters +type DescribeVirtualBorderRoutersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + VirtualBorderRouterSet VirtualBorderRouterSet `json:"VirtualBorderRouterSet" xml:"VirtualBorderRouterSet"` +} + +// CreateDescribeVirtualBorderRoutersRequest creates a request to invoke DescribeVirtualBorderRouters API +func CreateDescribeVirtualBorderRoutersRequest() (request *DescribeVirtualBorderRoutersRequest) { + request = &DescribeVirtualBorderRoutersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeVirtualBorderRouters", "ecs", "openAPI") + return +} + +// CreateDescribeVirtualBorderRoutersResponse creates a response to parse from DescribeVirtualBorderRouters response +func CreateDescribeVirtualBorderRoutersResponse() (response *DescribeVirtualBorderRoutersResponse) { + response = &DescribeVirtualBorderRoutersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers_for_physical_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers_for_physical_connection.go new file mode 100644 index 0000000..5d2af7a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers_for_physical_connection.go @@ -0,0 +1,119 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVirtualBorderRoutersForPhysicalConnection invokes the ecs.DescribeVirtualBorderRoutersForPhysicalConnection API synchronously +// api document: https://help.aliyun.com/api/ecs/describevirtualborderroutersforphysicalconnection.html +func (client *Client) DescribeVirtualBorderRoutersForPhysicalConnection(request *DescribeVirtualBorderRoutersForPhysicalConnectionRequest) (response *DescribeVirtualBorderRoutersForPhysicalConnectionResponse, err error) { + response = CreateDescribeVirtualBorderRoutersForPhysicalConnectionResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVirtualBorderRoutersForPhysicalConnectionWithChan invokes the ecs.DescribeVirtualBorderRoutersForPhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/ecs/describevirtualborderroutersforphysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVirtualBorderRoutersForPhysicalConnectionWithChan(request *DescribeVirtualBorderRoutersForPhysicalConnectionRequest) (<-chan *DescribeVirtualBorderRoutersForPhysicalConnectionResponse, <-chan error) { + responseChan := make(chan *DescribeVirtualBorderRoutersForPhysicalConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVirtualBorderRoutersForPhysicalConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVirtualBorderRoutersForPhysicalConnectionWithCallback invokes the ecs.DescribeVirtualBorderRoutersForPhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/ecs/describevirtualborderroutersforphysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVirtualBorderRoutersForPhysicalConnectionWithCallback(request *DescribeVirtualBorderRoutersForPhysicalConnectionRequest, callback func(response *DescribeVirtualBorderRoutersForPhysicalConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVirtualBorderRoutersForPhysicalConnectionResponse + var err error + defer close(result) + response, err = client.DescribeVirtualBorderRoutersForPhysicalConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVirtualBorderRoutersForPhysicalConnectionRequest is the request struct for api DescribeVirtualBorderRoutersForPhysicalConnection +type DescribeVirtualBorderRoutersForPhysicalConnectionRequest struct { + *requests.RpcRequest + Filter *[]DescribeVirtualBorderRoutersForPhysicalConnectionFilter `position:"Query" name:"Filter" type:"Repeated"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeVirtualBorderRoutersForPhysicalConnectionFilter is a repeated param struct in DescribeVirtualBorderRoutersForPhysicalConnectionRequest +type DescribeVirtualBorderRoutersForPhysicalConnectionFilter struct { + Key string `name:"Key"` + Value *[]string `name:"Value" type:"Repeated"` +} + +// DescribeVirtualBorderRoutersForPhysicalConnectionResponse is the response struct for api DescribeVirtualBorderRoutersForPhysicalConnection +type DescribeVirtualBorderRoutersForPhysicalConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + VirtualBorderRouterForPhysicalConnectionSet VirtualBorderRouterForPhysicalConnectionSet `json:"VirtualBorderRouterForPhysicalConnectionSet" xml:"VirtualBorderRouterForPhysicalConnectionSet"` +} + +// CreateDescribeVirtualBorderRoutersForPhysicalConnectionRequest creates a request to invoke DescribeVirtualBorderRoutersForPhysicalConnection API +func CreateDescribeVirtualBorderRoutersForPhysicalConnectionRequest() (request *DescribeVirtualBorderRoutersForPhysicalConnectionRequest) { + request = &DescribeVirtualBorderRoutersForPhysicalConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeVirtualBorderRoutersForPhysicalConnection", "ecs", "openAPI") + return +} + +// CreateDescribeVirtualBorderRoutersForPhysicalConnectionResponse creates a response to parse from DescribeVirtualBorderRoutersForPhysicalConnection response +func CreateDescribeVirtualBorderRoutersForPhysicalConnectionResponse() (response *DescribeVirtualBorderRoutersForPhysicalConnectionResponse) { + response = &DescribeVirtualBorderRoutersForPhysicalConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_vpcs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_vpcs.go new file mode 100644 index 0000000..097da60 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_vpcs.go @@ -0,0 +1,114 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVpcs invokes the ecs.DescribeVpcs API synchronously +// api document: https://help.aliyun.com/api/ecs/describevpcs.html +func (client *Client) DescribeVpcs(request *DescribeVpcsRequest) (response *DescribeVpcsResponse, err error) { + response = CreateDescribeVpcsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVpcsWithChan invokes the ecs.DescribeVpcs API asynchronously +// api document: https://help.aliyun.com/api/ecs/describevpcs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVpcsWithChan(request *DescribeVpcsRequest) (<-chan *DescribeVpcsResponse, <-chan error) { + responseChan := make(chan *DescribeVpcsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVpcs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVpcsWithCallback invokes the ecs.DescribeVpcs API asynchronously +// api document: https://help.aliyun.com/api/ecs/describevpcs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVpcsWithCallback(request *DescribeVpcsRequest, callback func(response *DescribeVpcsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVpcsResponse + var err error + defer close(result) + response, err = client.DescribeVpcs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVpcsRequest is the request struct for api DescribeVpcs +type DescribeVpcsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + VpcId string `position:"Query" name:"VpcId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + IsDefault requests.Boolean `position:"Query" name:"IsDefault"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeVpcsResponse is the response struct for api DescribeVpcs +type DescribeVpcsResponse 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"` + Vpcs Vpcs `json:"Vpcs" xml:"Vpcs"` +} + +// CreateDescribeVpcsRequest creates a request to invoke DescribeVpcs API +func CreateDescribeVpcsRequest() (request *DescribeVpcsRequest) { + request = &DescribeVpcsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeVpcs", "ecs", "openAPI") + return +} + +// CreateDescribeVpcsResponse creates a response to parse from DescribeVpcs response +func CreateDescribeVpcsResponse() (response *DescribeVpcsResponse) { + response = &DescribeVpcsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_zones.go new file mode 100644 index 0000000..9b2b2b3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_zones.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 ecs.DescribeZones API synchronously +// api document: https://help.aliyun.com/api/ecs/describezones.html +func (client *Client) DescribeZones(request *DescribeZonesRequest) (response *DescribeZonesResponse, err error) { + response = CreateDescribeZonesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeZonesWithChan invokes the ecs.DescribeZones API asynchronously +// api document: https://help.aliyun.com/api/ecs/describezones.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 ecs.DescribeZones API asynchronously +// api document: https://help.aliyun.com/api/ecs/describezones.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + SpotStrategy string `position:"Query" name:"SpotStrategy"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + Verbose requests.Boolean `position:"Query" name:"Verbose"` +} + +// DescribeZonesResponse is the response struct for api DescribeZones +type DescribeZonesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + 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("Ecs", "2014-05-26", "DescribeZones", "ecs", "openAPI") + 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/ecs/detach_classic_link_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_classic_link_vpc.go new file mode 100644 index 0000000..7b06137 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_classic_link_vpc.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DetachClassicLinkVpc invokes the ecs.DetachClassicLinkVpc API synchronously +// api document: https://help.aliyun.com/api/ecs/detachclassiclinkvpc.html +func (client *Client) DetachClassicLinkVpc(request *DetachClassicLinkVpcRequest) (response *DetachClassicLinkVpcResponse, err error) { + response = CreateDetachClassicLinkVpcResponse() + err = client.DoAction(request, response) + return +} + +// DetachClassicLinkVpcWithChan invokes the ecs.DetachClassicLinkVpc API asynchronously +// api document: https://help.aliyun.com/api/ecs/detachclassiclinkvpc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachClassicLinkVpcWithChan(request *DetachClassicLinkVpcRequest) (<-chan *DetachClassicLinkVpcResponse, <-chan error) { + responseChan := make(chan *DetachClassicLinkVpcResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DetachClassicLinkVpc(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DetachClassicLinkVpcWithCallback invokes the ecs.DetachClassicLinkVpc API asynchronously +// api document: https://help.aliyun.com/api/ecs/detachclassiclinkvpc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachClassicLinkVpcWithCallback(request *DetachClassicLinkVpcRequest, callback func(response *DetachClassicLinkVpcResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DetachClassicLinkVpcResponse + var err error + defer close(result) + response, err = client.DetachClassicLinkVpc(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DetachClassicLinkVpcRequest is the request struct for api DetachClassicLinkVpc +type DetachClassicLinkVpcRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + VpcId string `position:"Query" name:"VpcId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DetachClassicLinkVpcResponse is the response struct for api DetachClassicLinkVpc +type DetachClassicLinkVpcResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDetachClassicLinkVpcRequest creates a request to invoke DetachClassicLinkVpc API +func CreateDetachClassicLinkVpcRequest() (request *DetachClassicLinkVpcRequest) { + request = &DetachClassicLinkVpcRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DetachClassicLinkVpc", "ecs", "openAPI") + return +} + +// CreateDetachClassicLinkVpcResponse creates a response to parse from DetachClassicLinkVpc response +func CreateDetachClassicLinkVpcResponse() (response *DetachClassicLinkVpcResponse) { + response = &DetachClassicLinkVpcResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_disk.go new file mode 100644 index 0000000..ae3f8a7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_disk.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DetachDisk invokes the ecs.DetachDisk API synchronously +// api document: https://help.aliyun.com/api/ecs/detachdisk.html +func (client *Client) DetachDisk(request *DetachDiskRequest) (response *DetachDiskResponse, err error) { + response = CreateDetachDiskResponse() + err = client.DoAction(request, response) + return +} + +// DetachDiskWithChan invokes the ecs.DetachDisk API asynchronously +// api document: https://help.aliyun.com/api/ecs/detachdisk.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachDiskWithChan(request *DetachDiskRequest) (<-chan *DetachDiskResponse, <-chan error) { + responseChan := make(chan *DetachDiskResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DetachDisk(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DetachDiskWithCallback invokes the ecs.DetachDisk API asynchronously +// api document: https://help.aliyun.com/api/ecs/detachdisk.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachDiskWithCallback(request *DetachDiskRequest, callback func(response *DetachDiskResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DetachDiskResponse + var err error + defer close(result) + response, err = client.DetachDisk(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DetachDiskRequest is the request struct for api DetachDisk +type DetachDiskRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DiskId string `position:"Query" name:"DiskId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DetachDiskResponse is the response struct for api DetachDisk +type DetachDiskResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDetachDiskRequest creates a request to invoke DetachDisk API +func CreateDetachDiskRequest() (request *DetachDiskRequest) { + request = &DetachDiskRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DetachDisk", "ecs", "openAPI") + return +} + +// CreateDetachDiskResponse creates a response to parse from DetachDisk response +func CreateDetachDiskResponse() (response *DetachDiskResponse) { + response = &DetachDiskResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_instance_ram_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_instance_ram_role.go new file mode 100644 index 0000000..db5da10 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_instance_ram_role.go @@ -0,0 +1,111 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DetachInstanceRamRole invokes the ecs.DetachInstanceRamRole API synchronously +// api document: https://help.aliyun.com/api/ecs/detachinstanceramrole.html +func (client *Client) DetachInstanceRamRole(request *DetachInstanceRamRoleRequest) (response *DetachInstanceRamRoleResponse, err error) { + response = CreateDetachInstanceRamRoleResponse() + err = client.DoAction(request, response) + return +} + +// DetachInstanceRamRoleWithChan invokes the ecs.DetachInstanceRamRole API asynchronously +// api document: https://help.aliyun.com/api/ecs/detachinstanceramrole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachInstanceRamRoleWithChan(request *DetachInstanceRamRoleRequest) (<-chan *DetachInstanceRamRoleResponse, <-chan error) { + responseChan := make(chan *DetachInstanceRamRoleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DetachInstanceRamRole(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DetachInstanceRamRoleWithCallback invokes the ecs.DetachInstanceRamRole API asynchronously +// api document: https://help.aliyun.com/api/ecs/detachinstanceramrole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachInstanceRamRoleWithCallback(request *DetachInstanceRamRoleRequest, callback func(response *DetachInstanceRamRoleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DetachInstanceRamRoleResponse + var err error + defer close(result) + response, err = client.DetachInstanceRamRole(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DetachInstanceRamRoleRequest is the request struct for api DetachInstanceRamRole +type DetachInstanceRamRoleRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + InstanceIds string `position:"Query" name:"InstanceIds"` + RamRoleName string `position:"Query" name:"RamRoleName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DetachInstanceRamRoleResponse is the response struct for api DetachInstanceRamRole +type DetachInstanceRamRoleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + FailCount int `json:"FailCount" xml:"FailCount"` + RamRoleName string `json:"RamRoleName" xml:"RamRoleName"` + DetachInstanceRamRoleResults DetachInstanceRamRoleResults `json:"DetachInstanceRamRoleResults" xml:"DetachInstanceRamRoleResults"` +} + +// CreateDetachInstanceRamRoleRequest creates a request to invoke DetachInstanceRamRole API +func CreateDetachInstanceRamRoleRequest() (request *DetachInstanceRamRoleRequest) { + request = &DetachInstanceRamRoleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DetachInstanceRamRole", "ecs", "openAPI") + return +} + +// CreateDetachInstanceRamRoleResponse creates a response to parse from DetachInstanceRamRole response +func CreateDetachInstanceRamRoleResponse() (response *DetachInstanceRamRoleResponse) { + response = &DetachInstanceRamRoleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_key_pair.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_key_pair.go new file mode 100644 index 0000000..295a30b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_key_pair.go @@ -0,0 +1,111 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DetachKeyPair invokes the ecs.DetachKeyPair API synchronously +// api document: https://help.aliyun.com/api/ecs/detachkeypair.html +func (client *Client) DetachKeyPair(request *DetachKeyPairRequest) (response *DetachKeyPairResponse, err error) { + response = CreateDetachKeyPairResponse() + err = client.DoAction(request, response) + return +} + +// DetachKeyPairWithChan invokes the ecs.DetachKeyPair API asynchronously +// api document: https://help.aliyun.com/api/ecs/detachkeypair.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachKeyPairWithChan(request *DetachKeyPairRequest) (<-chan *DetachKeyPairResponse, <-chan error) { + responseChan := make(chan *DetachKeyPairResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DetachKeyPair(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DetachKeyPairWithCallback invokes the ecs.DetachKeyPair API asynchronously +// api document: https://help.aliyun.com/api/ecs/detachkeypair.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachKeyPairWithCallback(request *DetachKeyPairRequest, callback func(response *DetachKeyPairResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DetachKeyPairResponse + var err error + defer close(result) + response, err = client.DetachKeyPair(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DetachKeyPairRequest is the request struct for api DetachKeyPair +type DetachKeyPairRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + InstanceIds string `position:"Query" name:"InstanceIds"` + KeyPairName string `position:"Query" name:"KeyPairName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DetachKeyPairResponse is the response struct for api DetachKeyPair +type DetachKeyPairResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount string `json:"TotalCount" xml:"TotalCount"` + FailCount string `json:"FailCount" xml:"FailCount"` + KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` + Results ResultsInDetachKeyPair `json:"Results" xml:"Results"` +} + +// CreateDetachKeyPairRequest creates a request to invoke DetachKeyPair API +func CreateDetachKeyPairRequest() (request *DetachKeyPairRequest) { + request = &DetachKeyPairRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DetachKeyPair", "ecs", "openAPI") + return +} + +// CreateDetachKeyPairResponse creates a response to parse from DetachKeyPair response +func CreateDetachKeyPairResponse() (response *DetachKeyPairResponse) { + response = &DetachKeyPairResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_network_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_network_interface.go new file mode 100644 index 0000000..2da30db --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_network_interface.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DetachNetworkInterface invokes the ecs.DetachNetworkInterface API synchronously +// api document: https://help.aliyun.com/api/ecs/detachnetworkinterface.html +func (client *Client) DetachNetworkInterface(request *DetachNetworkInterfaceRequest) (response *DetachNetworkInterfaceResponse, err error) { + response = CreateDetachNetworkInterfaceResponse() + err = client.DoAction(request, response) + return +} + +// DetachNetworkInterfaceWithChan invokes the ecs.DetachNetworkInterface API asynchronously +// api document: https://help.aliyun.com/api/ecs/detachnetworkinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachNetworkInterfaceWithChan(request *DetachNetworkInterfaceRequest) (<-chan *DetachNetworkInterfaceResponse, <-chan error) { + responseChan := make(chan *DetachNetworkInterfaceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DetachNetworkInterface(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DetachNetworkInterfaceWithCallback invokes the ecs.DetachNetworkInterface API asynchronously +// api document: https://help.aliyun.com/api/ecs/detachnetworkinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachNetworkInterfaceWithCallback(request *DetachNetworkInterfaceRequest, callback func(response *DetachNetworkInterfaceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DetachNetworkInterfaceResponse + var err error + defer close(result) + response, err = client.DetachNetworkInterface(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DetachNetworkInterfaceRequest is the request struct for api DetachNetworkInterface +type DetachNetworkInterfaceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` +} + +// DetachNetworkInterfaceResponse is the response struct for api DetachNetworkInterface +type DetachNetworkInterfaceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDetachNetworkInterfaceRequest creates a request to invoke DetachNetworkInterface API +func CreateDetachNetworkInterfaceRequest() (request *DetachNetworkInterfaceRequest) { + request = &DetachNetworkInterfaceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DetachNetworkInterface", "ecs", "openAPI") + return +} + +// CreateDetachNetworkInterfaceResponse creates a response to parse from DetachNetworkInterface response +func CreateDetachNetworkInterfaceResponse() (response *DetachNetworkInterfaceResponse) { + response = &DetachNetworkInterfaceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_fill_params.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_fill_params.go new file mode 100644 index 0000000..fe512cb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_fill_params.go @@ -0,0 +1,113 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EipFillParams invokes the ecs.EipFillParams API synchronously +// api document: https://help.aliyun.com/api/ecs/eipfillparams.html +func (client *Client) EipFillParams(request *EipFillParamsRequest) (response *EipFillParamsResponse, err error) { + response = CreateEipFillParamsResponse() + err = client.DoAction(request, response) + return +} + +// EipFillParamsWithChan invokes the ecs.EipFillParams API asynchronously +// api document: https://help.aliyun.com/api/ecs/eipfillparams.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EipFillParamsWithChan(request *EipFillParamsRequest) (<-chan *EipFillParamsResponse, <-chan error) { + responseChan := make(chan *EipFillParamsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EipFillParams(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EipFillParamsWithCallback invokes the ecs.EipFillParams API asynchronously +// api document: https://help.aliyun.com/api/ecs/eipfillparams.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EipFillParamsWithCallback(request *EipFillParamsRequest, callback func(response *EipFillParamsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EipFillParamsResponse + var err error + defer close(result) + response, err = client.EipFillParams(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EipFillParamsRequest is the request struct for api EipFillParams +type EipFillParamsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Data string `position:"Query" name:"data"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + UserCidr string `position:"Query" name:"UserCidr"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// EipFillParamsResponse is the response struct for api EipFillParams +type EipFillParamsResponse struct { + *responses.BaseResponse + RequestId string `json:"requestId" xml:"requestId"` + Data string `json:"data" xml:"data"` + Code string `json:"code" xml:"code"` + Success bool `json:"success" xml:"success"` + Message string `json:"message" xml:"message"` +} + +// CreateEipFillParamsRequest creates a request to invoke EipFillParams API +func CreateEipFillParamsRequest() (request *EipFillParamsRequest) { + request = &EipFillParamsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "EipFillParams", "ecs", "openAPI") + return +} + +// CreateEipFillParamsResponse creates a response to parse from EipFillParams response +func CreateEipFillParamsResponse() (response *EipFillParamsResponse) { + response = &EipFillParamsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_fill_product.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_fill_product.go new file mode 100644 index 0000000..7a7fc41 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_fill_product.go @@ -0,0 +1,113 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EipFillProduct invokes the ecs.EipFillProduct API synchronously +// api document: https://help.aliyun.com/api/ecs/eipfillproduct.html +func (client *Client) EipFillProduct(request *EipFillProductRequest) (response *EipFillProductResponse, err error) { + response = CreateEipFillProductResponse() + err = client.DoAction(request, response) + return +} + +// EipFillProductWithChan invokes the ecs.EipFillProduct API asynchronously +// api document: https://help.aliyun.com/api/ecs/eipfillproduct.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EipFillProductWithChan(request *EipFillProductRequest) (<-chan *EipFillProductResponse, <-chan error) { + responseChan := make(chan *EipFillProductResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EipFillProduct(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EipFillProductWithCallback invokes the ecs.EipFillProduct API asynchronously +// api document: https://help.aliyun.com/api/ecs/eipfillproduct.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EipFillProductWithCallback(request *EipFillProductRequest, callback func(response *EipFillProductResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EipFillProductResponse + var err error + defer close(result) + response, err = client.EipFillProduct(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EipFillProductRequest is the request struct for api EipFillProduct +type EipFillProductRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Data string `position:"Query" name:"data"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + UserCidr string `position:"Query" name:"UserCidr"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// EipFillProductResponse is the response struct for api EipFillProduct +type EipFillProductResponse struct { + *responses.BaseResponse + RequestId string `json:"requestId" xml:"requestId"` + Data string `json:"data" xml:"data"` + Code string `json:"code" xml:"code"` + Success bool `json:"success" xml:"success"` + Message string `json:"message" xml:"message"` +} + +// CreateEipFillProductRequest creates a request to invoke EipFillProduct API +func CreateEipFillProductRequest() (request *EipFillProductRequest) { + request = &EipFillProductRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "EipFillProduct", "ecs", "openAPI") + return +} + +// CreateEipFillProductResponse creates a response to parse from EipFillProduct response +func CreateEipFillProductResponse() (response *EipFillProductResponse) { + response = &EipFillProductResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_notify_paid.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_notify_paid.go new file mode 100644 index 0000000..5b75dc8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_notify_paid.go @@ -0,0 +1,113 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EipNotifyPaid invokes the ecs.EipNotifyPaid API synchronously +// api document: https://help.aliyun.com/api/ecs/eipnotifypaid.html +func (client *Client) EipNotifyPaid(request *EipNotifyPaidRequest) (response *EipNotifyPaidResponse, err error) { + response = CreateEipNotifyPaidResponse() + err = client.DoAction(request, response) + return +} + +// EipNotifyPaidWithChan invokes the ecs.EipNotifyPaid API asynchronously +// api document: https://help.aliyun.com/api/ecs/eipnotifypaid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EipNotifyPaidWithChan(request *EipNotifyPaidRequest) (<-chan *EipNotifyPaidResponse, <-chan error) { + responseChan := make(chan *EipNotifyPaidResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EipNotifyPaid(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EipNotifyPaidWithCallback invokes the ecs.EipNotifyPaid API asynchronously +// api document: https://help.aliyun.com/api/ecs/eipnotifypaid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EipNotifyPaidWithCallback(request *EipNotifyPaidRequest, callback func(response *EipNotifyPaidResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EipNotifyPaidResponse + var err error + defer close(result) + response, err = client.EipNotifyPaid(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EipNotifyPaidRequest is the request struct for api EipNotifyPaid +type EipNotifyPaidRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Data string `position:"Query" name:"data"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + UserCidr string `position:"Query" name:"UserCidr"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// EipNotifyPaidResponse is the response struct for api EipNotifyPaid +type EipNotifyPaidResponse struct { + *responses.BaseResponse + RequestId string `json:"requestId" xml:"requestId"` + Data string `json:"data" xml:"data"` + Code string `json:"code" xml:"code"` + Message string `json:"message" xml:"message"` + Success bool `json:"success" xml:"success"` +} + +// CreateEipNotifyPaidRequest creates a request to invoke EipNotifyPaid API +func CreateEipNotifyPaidRequest() (request *EipNotifyPaidRequest) { + request = &EipNotifyPaidRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "EipNotifyPaid", "ecs", "openAPI") + return +} + +// CreateEipNotifyPaidResponse creates a response to parse from EipNotifyPaid response +func CreateEipNotifyPaidResponse() (response *EipNotifyPaidResponse) { + response = &EipNotifyPaidResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/enable_physical_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/enable_physical_connection.go new file mode 100644 index 0000000..0862f1c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/enable_physical_connection.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EnablePhysicalConnection invokes the ecs.EnablePhysicalConnection API synchronously +// api document: https://help.aliyun.com/api/ecs/enablephysicalconnection.html +func (client *Client) EnablePhysicalConnection(request *EnablePhysicalConnectionRequest) (response *EnablePhysicalConnectionResponse, err error) { + response = CreateEnablePhysicalConnectionResponse() + err = client.DoAction(request, response) + return +} + +// EnablePhysicalConnectionWithChan invokes the ecs.EnablePhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/ecs/enablephysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnablePhysicalConnectionWithChan(request *EnablePhysicalConnectionRequest) (<-chan *EnablePhysicalConnectionResponse, <-chan error) { + responseChan := make(chan *EnablePhysicalConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EnablePhysicalConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EnablePhysicalConnectionWithCallback invokes the ecs.EnablePhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/ecs/enablephysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnablePhysicalConnectionWithCallback(request *EnablePhysicalConnectionRequest, callback func(response *EnablePhysicalConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EnablePhysicalConnectionResponse + var err error + defer close(result) + response, err = client.EnablePhysicalConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EnablePhysicalConnectionRequest is the request struct for api EnablePhysicalConnection +type EnablePhysicalConnectionRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + UserCidr string `position:"Query" name:"UserCidr"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// EnablePhysicalConnectionResponse is the response struct for api EnablePhysicalConnection +type EnablePhysicalConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateEnablePhysicalConnectionRequest creates a request to invoke EnablePhysicalConnection API +func CreateEnablePhysicalConnectionRequest() (request *EnablePhysicalConnectionRequest) { + request = &EnablePhysicalConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "EnablePhysicalConnection", "ecs", "openAPI") + return +} + +// CreateEnablePhysicalConnectionResponse creates a response to parse from EnablePhysicalConnection response +func CreateEnablePhysicalConnectionResponse() (response *EnablePhysicalConnectionResponse) { + response = &EnablePhysicalConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/export_image.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/export_image.go new file mode 100644 index 0000000..eaf5431 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/export_image.go @@ -0,0 +1,112 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ExportImage invokes the ecs.ExportImage API synchronously +// api document: https://help.aliyun.com/api/ecs/exportimage.html +func (client *Client) ExportImage(request *ExportImageRequest) (response *ExportImageResponse, err error) { + response = CreateExportImageResponse() + err = client.DoAction(request, response) + return +} + +// ExportImageWithChan invokes the ecs.ExportImage API asynchronously +// api document: https://help.aliyun.com/api/ecs/exportimage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ExportImageWithChan(request *ExportImageRequest) (<-chan *ExportImageResponse, <-chan error) { + responseChan := make(chan *ExportImageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ExportImage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ExportImageWithCallback invokes the ecs.ExportImage API asynchronously +// api document: https://help.aliyun.com/api/ecs/exportimage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ExportImageWithCallback(request *ExportImageRequest, callback func(response *ExportImageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ExportImageResponse + var err error + defer close(result) + response, err = client.ExportImage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ExportImageRequest is the request struct for api ExportImage +type ExportImageRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ImageId string `position:"Query" name:"ImageId"` + OSSBucket string `position:"Query" name:"OSSBucket"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OSSPrefix string `position:"Query" name:"OSSPrefix"` + RoleName string `position:"Query" name:"RoleName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ImageFormat string `position:"Query" name:"ImageFormat"` +} + +// ExportImageResponse is the response struct for api ExportImage +type ExportImageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskId string `json:"TaskId" xml:"TaskId"` + RegionId string `json:"RegionId" xml:"RegionId"` +} + +// CreateExportImageRequest creates a request to invoke ExportImage API +func CreateExportImageRequest() (request *ExportImageRequest) { + request = &ExportImageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ExportImage", "ecs", "openAPI") + return +} + +// CreateExportImageResponse creates a response to parse from ExportImage response +func CreateExportImageResponse() (response *ExportImageResponse) { + response = &ExportImageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_console_output.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_console_output.go new file mode 100644 index 0000000..2e2891f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_console_output.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetInstanceConsoleOutput invokes the ecs.GetInstanceConsoleOutput API synchronously +// api document: https://help.aliyun.com/api/ecs/getinstanceconsoleoutput.html +func (client *Client) GetInstanceConsoleOutput(request *GetInstanceConsoleOutputRequest) (response *GetInstanceConsoleOutputResponse, err error) { + response = CreateGetInstanceConsoleOutputResponse() + err = client.DoAction(request, response) + return +} + +// GetInstanceConsoleOutputWithChan invokes the ecs.GetInstanceConsoleOutput API asynchronously +// api document: https://help.aliyun.com/api/ecs/getinstanceconsoleoutput.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetInstanceConsoleOutputWithChan(request *GetInstanceConsoleOutputRequest) (<-chan *GetInstanceConsoleOutputResponse, <-chan error) { + responseChan := make(chan *GetInstanceConsoleOutputResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetInstanceConsoleOutput(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetInstanceConsoleOutputWithCallback invokes the ecs.GetInstanceConsoleOutput API asynchronously +// api document: https://help.aliyun.com/api/ecs/getinstanceconsoleoutput.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetInstanceConsoleOutputWithCallback(request *GetInstanceConsoleOutputRequest, callback func(response *GetInstanceConsoleOutputResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetInstanceConsoleOutputResponse + var err error + defer close(result) + response, err = client.GetInstanceConsoleOutput(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetInstanceConsoleOutputRequest is the request struct for api GetInstanceConsoleOutput +type GetInstanceConsoleOutputRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// GetInstanceConsoleOutputResponse is the response struct for api GetInstanceConsoleOutput +type GetInstanceConsoleOutputResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + ConsoleOutput string `json:"ConsoleOutput" xml:"ConsoleOutput"` + LastUpdateTime string `json:"LastUpdateTime" xml:"LastUpdateTime"` +} + +// CreateGetInstanceConsoleOutputRequest creates a request to invoke GetInstanceConsoleOutput API +func CreateGetInstanceConsoleOutputRequest() (request *GetInstanceConsoleOutputRequest) { + request = &GetInstanceConsoleOutputRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "GetInstanceConsoleOutput", "ecs", "openAPI") + return +} + +// CreateGetInstanceConsoleOutputResponse creates a response to parse from GetInstanceConsoleOutput response +func CreateGetInstanceConsoleOutputResponse() (response *GetInstanceConsoleOutputResponse) { + response = &GetInstanceConsoleOutputResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_screenshot.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_screenshot.go new file mode 100644 index 0000000..13d8645 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_screenshot.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetInstanceScreenshot invokes the ecs.GetInstanceScreenshot API synchronously +// api document: https://help.aliyun.com/api/ecs/getinstancescreenshot.html +func (client *Client) GetInstanceScreenshot(request *GetInstanceScreenshotRequest) (response *GetInstanceScreenshotResponse, err error) { + response = CreateGetInstanceScreenshotResponse() + err = client.DoAction(request, response) + return +} + +// GetInstanceScreenshotWithChan invokes the ecs.GetInstanceScreenshot API asynchronously +// api document: https://help.aliyun.com/api/ecs/getinstancescreenshot.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetInstanceScreenshotWithChan(request *GetInstanceScreenshotRequest) (<-chan *GetInstanceScreenshotResponse, <-chan error) { + responseChan := make(chan *GetInstanceScreenshotResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetInstanceScreenshot(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetInstanceScreenshotWithCallback invokes the ecs.GetInstanceScreenshot API asynchronously +// api document: https://help.aliyun.com/api/ecs/getinstancescreenshot.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetInstanceScreenshotWithCallback(request *GetInstanceScreenshotRequest, callback func(response *GetInstanceScreenshotResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetInstanceScreenshotResponse + var err error + defer close(result) + response, err = client.GetInstanceScreenshot(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetInstanceScreenshotRequest is the request struct for api GetInstanceScreenshot +type GetInstanceScreenshotRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + WakeUp requests.Boolean `position:"Query" name:"WakeUp"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// GetInstanceScreenshotResponse is the response struct for api GetInstanceScreenshot +type GetInstanceScreenshotResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Screenshot string `json:"Screenshot" xml:"Screenshot"` +} + +// CreateGetInstanceScreenshotRequest creates a request to invoke GetInstanceScreenshot API +func CreateGetInstanceScreenshotRequest() (request *GetInstanceScreenshotRequest) { + request = &GetInstanceScreenshotRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "GetInstanceScreenshot", "ecs", "openAPI") + return +} + +// CreateGetInstanceScreenshotResponse creates a response to parse from GetInstanceScreenshot response +func CreateGetInstanceScreenshotResponse() (response *GetInstanceScreenshotResponse) { + response = &GetInstanceScreenshotResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_image.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_image.go new file mode 100644 index 0000000..566ef87 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_image.go @@ -0,0 +1,125 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ImportImage invokes the ecs.ImportImage API synchronously +// api document: https://help.aliyun.com/api/ecs/importimage.html +func (client *Client) ImportImage(request *ImportImageRequest) (response *ImportImageResponse, err error) { + response = CreateImportImageResponse() + err = client.DoAction(request, response) + return +} + +// ImportImageWithChan invokes the ecs.ImportImage API asynchronously +// api document: https://help.aliyun.com/api/ecs/importimage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImportImageWithChan(request *ImportImageRequest) (<-chan *ImportImageResponse, <-chan error) { + responseChan := make(chan *ImportImageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ImportImage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ImportImageWithCallback invokes the ecs.ImportImage API asynchronously +// api document: https://help.aliyun.com/api/ecs/importimage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImportImageWithCallback(request *ImportImageRequest, callback func(response *ImportImageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ImportImageResponse + var err error + defer close(result) + response, err = client.ImportImage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ImportImageRequest is the request struct for api ImportImage +type ImportImageRequest struct { + *requests.RpcRequest + DiskDeviceMapping *[]ImportImageDiskDeviceMapping `position:"Query" name:"DiskDeviceMapping" type:"Repeated"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ImageName string `position:"Query" name:"ImageName"` + RoleName string `position:"Query" name:"RoleName"` + Description string `position:"Query" name:"Description"` + OSType string `position:"Query" name:"OSType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Platform string `position:"Query" name:"Platform"` + Architecture string `position:"Query" name:"Architecture"` +} + +// ImportImageDiskDeviceMapping is a repeated param struct in ImportImageRequest +type ImportImageDiskDeviceMapping struct { + Format string `name:"Format"` + OSSBucket string `name:"OSSBucket"` + OSSObject string `name:"OSSObject"` + DiskImSize string `name:"DiskImSize"` + DiskImageSize string `name:"DiskImageSize"` + Device string `name:"Device"` +} + +// ImportImageResponse is the response struct for api ImportImage +type ImportImageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskId string `json:"TaskId" xml:"TaskId"` + RegionId string `json:"RegionId" xml:"RegionId"` + ImageId string `json:"ImageId" xml:"ImageId"` +} + +// CreateImportImageRequest creates a request to invoke ImportImage API +func CreateImportImageRequest() (request *ImportImageRequest) { + request = &ImportImageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ImportImage", "ecs", "openAPI") + return +} + +// CreateImportImageResponse creates a response to parse from ImportImage response +func CreateImportImageResponse() (response *ImportImageResponse) { + response = &ImportImageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_key_pair.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_key_pair.go new file mode 100644 index 0000000..30ba16e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_key_pair.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ImportKeyPair invokes the ecs.ImportKeyPair API synchronously +// api document: https://help.aliyun.com/api/ecs/importkeypair.html +func (client *Client) ImportKeyPair(request *ImportKeyPairRequest) (response *ImportKeyPairResponse, err error) { + response = CreateImportKeyPairResponse() + err = client.DoAction(request, response) + return +} + +// ImportKeyPairWithChan invokes the ecs.ImportKeyPair API asynchronously +// api document: https://help.aliyun.com/api/ecs/importkeypair.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImportKeyPairWithChan(request *ImportKeyPairRequest) (<-chan *ImportKeyPairResponse, <-chan error) { + responseChan := make(chan *ImportKeyPairResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ImportKeyPair(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ImportKeyPairWithCallback invokes the ecs.ImportKeyPair API asynchronously +// api document: https://help.aliyun.com/api/ecs/importkeypair.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImportKeyPairWithCallback(request *ImportKeyPairRequest, callback func(response *ImportKeyPairResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ImportKeyPairResponse + var err error + defer close(result) + response, err = client.ImportKeyPair(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ImportKeyPairRequest is the request struct for api ImportKeyPair +type ImportKeyPairRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + PublicKeyBody string `position:"Query" name:"PublicKeyBody"` + KeyPairName string `position:"Query" name:"KeyPairName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ImportKeyPairResponse is the response struct for api ImportKeyPair +type ImportKeyPairResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` + KeyPairFingerPrint string `json:"KeyPairFingerPrint" xml:"KeyPairFingerPrint"` +} + +// CreateImportKeyPairRequest creates a request to invoke ImportKeyPair API +func CreateImportKeyPairRequest() (request *ImportKeyPairRequest) { + request = &ImportKeyPairRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ImportKeyPair", "ecs", "openAPI") + return +} + +// CreateImportKeyPairResponse creates a response to parse from ImportKeyPair response +func CreateImportKeyPairResponse() (response *ImportKeyPairResponse) { + response = &ImportKeyPairResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/install_cloud_assistant.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/install_cloud_assistant.go new file mode 100644 index 0000000..89c4b9b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/install_cloud_assistant.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// InstallCloudAssistant invokes the ecs.InstallCloudAssistant API synchronously +// api document: https://help.aliyun.com/api/ecs/installcloudassistant.html +func (client *Client) InstallCloudAssistant(request *InstallCloudAssistantRequest) (response *InstallCloudAssistantResponse, err error) { + response = CreateInstallCloudAssistantResponse() + err = client.DoAction(request, response) + return +} + +// InstallCloudAssistantWithChan invokes the ecs.InstallCloudAssistant API asynchronously +// api document: https://help.aliyun.com/api/ecs/installcloudassistant.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) InstallCloudAssistantWithChan(request *InstallCloudAssistantRequest) (<-chan *InstallCloudAssistantResponse, <-chan error) { + responseChan := make(chan *InstallCloudAssistantResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.InstallCloudAssistant(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// InstallCloudAssistantWithCallback invokes the ecs.InstallCloudAssistant API asynchronously +// api document: https://help.aliyun.com/api/ecs/installcloudassistant.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) InstallCloudAssistantWithCallback(request *InstallCloudAssistantRequest, callback func(response *InstallCloudAssistantResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *InstallCloudAssistantResponse + var err error + defer close(result) + response, err = client.InstallCloudAssistant(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// InstallCloudAssistantRequest is the request struct for api InstallCloudAssistant +type InstallCloudAssistantRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` +} + +// InstallCloudAssistantResponse is the response struct for api InstallCloudAssistant +type InstallCloudAssistantResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateInstallCloudAssistantRequest creates a request to invoke InstallCloudAssistant API +func CreateInstallCloudAssistantRequest() (request *InstallCloudAssistantRequest) { + request = &InstallCloudAssistantRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "InstallCloudAssistant", "ecs", "openAPI") + return +} + +// CreateInstallCloudAssistantResponse creates a response to parse from InstallCloudAssistant response +func CreateInstallCloudAssistantResponse() (response *InstallCloudAssistantResponse) { + response = &InstallCloudAssistantResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/invoke_command.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/invoke_command.go new file mode 100644 index 0000000..0bb43c8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/invoke_command.go @@ -0,0 +1,111 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// InvokeCommand invokes the ecs.InvokeCommand API synchronously +// api document: https://help.aliyun.com/api/ecs/invokecommand.html +func (client *Client) InvokeCommand(request *InvokeCommandRequest) (response *InvokeCommandResponse, err error) { + response = CreateInvokeCommandResponse() + err = client.DoAction(request, response) + return +} + +// InvokeCommandWithChan invokes the ecs.InvokeCommand API asynchronously +// api document: https://help.aliyun.com/api/ecs/invokecommand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) InvokeCommandWithChan(request *InvokeCommandRequest) (<-chan *InvokeCommandResponse, <-chan error) { + responseChan := make(chan *InvokeCommandResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.InvokeCommand(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// InvokeCommandWithCallback invokes the ecs.InvokeCommand API asynchronously +// api document: https://help.aliyun.com/api/ecs/invokecommand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) InvokeCommandWithCallback(request *InvokeCommandRequest, callback func(response *InvokeCommandResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *InvokeCommandResponse + var err error + defer close(result) + response, err = client.InvokeCommand(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// InvokeCommandRequest is the request struct for api InvokeCommand +type InvokeCommandRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CommandId string `position:"Query" name:"CommandId"` + Frequency string `position:"Query" name:"Frequency"` + Timed requests.Boolean `position:"Query" name:"Timed"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` +} + +// InvokeCommandResponse is the response struct for api InvokeCommand +type InvokeCommandResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InvokeId string `json:"InvokeId" xml:"InvokeId"` +} + +// CreateInvokeCommandRequest creates a request to invoke InvokeCommand API +func CreateInvokeCommandRequest() (request *InvokeCommandRequest) { + request = &InvokeCommandRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "InvokeCommand", "ecs", "openAPI") + return +} + +// CreateInvokeCommandResponse creates a response to parse from InvokeCommand response +func CreateInvokeCommandResponse() (response *InvokeCommandResponse) { + response = &InvokeCommandResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_resource_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_resource_group.go new file mode 100644 index 0000000..9f3f7d2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_resource_group.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// JoinResourceGroup invokes the ecs.JoinResourceGroup API synchronously +// api document: https://help.aliyun.com/api/ecs/joinresourcegroup.html +func (client *Client) JoinResourceGroup(request *JoinResourceGroupRequest) (response *JoinResourceGroupResponse, err error) { + response = CreateJoinResourceGroupResponse() + err = client.DoAction(request, response) + return +} + +// JoinResourceGroupWithChan invokes the ecs.JoinResourceGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/joinresourcegroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) JoinResourceGroupWithChan(request *JoinResourceGroupRequest) (<-chan *JoinResourceGroupResponse, <-chan error) { + responseChan := make(chan *JoinResourceGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.JoinResourceGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// JoinResourceGroupWithCallback invokes the ecs.JoinResourceGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/joinresourcegroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) JoinResourceGroupWithCallback(request *JoinResourceGroupRequest, callback func(response *JoinResourceGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *JoinResourceGroupResponse + var err error + defer close(result) + response, err = client.JoinResourceGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// JoinResourceGroupRequest is the request struct for api JoinResourceGroup +type JoinResourceGroupRequest struct { + *requests.RpcRequest + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceId string `position:"Query" name:"ResourceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` +} + +// JoinResourceGroupResponse is the response struct for api JoinResourceGroup +type JoinResourceGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateJoinResourceGroupRequest creates a request to invoke JoinResourceGroup API +func CreateJoinResourceGroupRequest() (request *JoinResourceGroupRequest) { + request = &JoinResourceGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "JoinResourceGroup", "ecs", "openAPI") + return +} + +// CreateJoinResourceGroupResponse creates a response to parse from JoinResourceGroup response +func CreateJoinResourceGroupResponse() (response *JoinResourceGroupResponse) { + response = &JoinResourceGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_security_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_security_group.go new file mode 100644 index 0000000..fa6a2f8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_security_group.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// JoinSecurityGroup invokes the ecs.JoinSecurityGroup API synchronously +// api document: https://help.aliyun.com/api/ecs/joinsecuritygroup.html +func (client *Client) JoinSecurityGroup(request *JoinSecurityGroupRequest) (response *JoinSecurityGroupResponse, err error) { + response = CreateJoinSecurityGroupResponse() + err = client.DoAction(request, response) + return +} + +// JoinSecurityGroupWithChan invokes the ecs.JoinSecurityGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/joinsecuritygroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) JoinSecurityGroupWithChan(request *JoinSecurityGroupRequest) (<-chan *JoinSecurityGroupResponse, <-chan error) { + responseChan := make(chan *JoinSecurityGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.JoinSecurityGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// JoinSecurityGroupWithCallback invokes the ecs.JoinSecurityGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/joinsecuritygroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) JoinSecurityGroupWithCallback(request *JoinSecurityGroupRequest, callback func(response *JoinSecurityGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *JoinSecurityGroupResponse + var err error + defer close(result) + response, err = client.JoinSecurityGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// JoinSecurityGroupRequest is the request struct for api JoinSecurityGroup +type JoinSecurityGroupRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// JoinSecurityGroupResponse is the response struct for api JoinSecurityGroup +type JoinSecurityGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateJoinSecurityGroupRequest creates a request to invoke JoinSecurityGroup API +func CreateJoinSecurityGroupRequest() (request *JoinSecurityGroupRequest) { + request = &JoinSecurityGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "JoinSecurityGroup", "ecs", "openAPI") + return +} + +// CreateJoinSecurityGroupResponse creates a response to parse from JoinSecurityGroup response +func CreateJoinSecurityGroupResponse() (response *JoinSecurityGroupResponse) { + response = &JoinSecurityGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/leave_security_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/leave_security_group.go new file mode 100644 index 0000000..279d0fd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/leave_security_group.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// LeaveSecurityGroup invokes the ecs.LeaveSecurityGroup API synchronously +// api document: https://help.aliyun.com/api/ecs/leavesecuritygroup.html +func (client *Client) LeaveSecurityGroup(request *LeaveSecurityGroupRequest) (response *LeaveSecurityGroupResponse, err error) { + response = CreateLeaveSecurityGroupResponse() + err = client.DoAction(request, response) + return +} + +// LeaveSecurityGroupWithChan invokes the ecs.LeaveSecurityGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/leavesecuritygroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) LeaveSecurityGroupWithChan(request *LeaveSecurityGroupRequest) (<-chan *LeaveSecurityGroupResponse, <-chan error) { + responseChan := make(chan *LeaveSecurityGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.LeaveSecurityGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// LeaveSecurityGroupWithCallback invokes the ecs.LeaveSecurityGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/leavesecuritygroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) LeaveSecurityGroupWithCallback(request *LeaveSecurityGroupRequest, callback func(response *LeaveSecurityGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *LeaveSecurityGroupResponse + var err error + defer close(result) + response, err = client.LeaveSecurityGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// LeaveSecurityGroupRequest is the request struct for api LeaveSecurityGroup +type LeaveSecurityGroupRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// LeaveSecurityGroupResponse is the response struct for api LeaveSecurityGroup +type LeaveSecurityGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateLeaveSecurityGroupRequest creates a request to invoke LeaveSecurityGroup API +func CreateLeaveSecurityGroupRequest() (request *LeaveSecurityGroupRequest) { + request = &LeaveSecurityGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "LeaveSecurityGroup", "ecs", "openAPI") + return +} + +// CreateLeaveSecurityGroupResponse creates a response to parse from LeaveSecurityGroup response +func CreateLeaveSecurityGroupResponse() (response *LeaveSecurityGroupResponse) { + response = &LeaveSecurityGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_snapshot_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_snapshot_policy.go new file mode 100644 index 0000000..91eeb1b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_snapshot_policy.go @@ -0,0 +1,114 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyAutoSnapshotPolicy invokes the ecs.ModifyAutoSnapshotPolicy API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyautosnapshotpolicy.html +func (client *Client) ModifyAutoSnapshotPolicy(request *ModifyAutoSnapshotPolicyRequest) (response *ModifyAutoSnapshotPolicyResponse, err error) { + response = CreateModifyAutoSnapshotPolicyResponse() + err = client.DoAction(request, response) + return +} + +// ModifyAutoSnapshotPolicyWithChan invokes the ecs.ModifyAutoSnapshotPolicy API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyautosnapshotpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyAutoSnapshotPolicyWithChan(request *ModifyAutoSnapshotPolicyRequest) (<-chan *ModifyAutoSnapshotPolicyResponse, <-chan error) { + responseChan := make(chan *ModifyAutoSnapshotPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyAutoSnapshotPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyAutoSnapshotPolicyWithCallback invokes the ecs.ModifyAutoSnapshotPolicy API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyautosnapshotpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyAutoSnapshotPolicyWithCallback(request *ModifyAutoSnapshotPolicyRequest, callback func(response *ModifyAutoSnapshotPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyAutoSnapshotPolicyResponse + var err error + defer close(result) + response, err = client.ModifyAutoSnapshotPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyAutoSnapshotPolicyRequest is the request struct for api ModifyAutoSnapshotPolicy +type ModifyAutoSnapshotPolicyRequest struct { + *requests.RpcRequest + DataDiskPolicyEnabled requests.Boolean `position:"Query" name:"DataDiskPolicyEnabled"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DataDiskPolicyRetentionDays requests.Integer `position:"Query" name:"DataDiskPolicyRetentionDays"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + SystemDiskPolicyRetentionLastWeek requests.Boolean `position:"Query" name:"SystemDiskPolicyRetentionLastWeek"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SystemDiskPolicyTimePeriod requests.Integer `position:"Query" name:"SystemDiskPolicyTimePeriod"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + DataDiskPolicyRetentionLastWeek requests.Boolean `position:"Query" name:"DataDiskPolicyRetentionLastWeek"` + SystemDiskPolicyRetentionDays requests.Integer `position:"Query" name:"SystemDiskPolicyRetentionDays"` + DataDiskPolicyTimePeriod requests.Integer `position:"Query" name:"DataDiskPolicyTimePeriod"` + SystemDiskPolicyEnabled requests.Boolean `position:"Query" name:"SystemDiskPolicyEnabled"` +} + +// ModifyAutoSnapshotPolicyResponse is the response struct for api ModifyAutoSnapshotPolicy +type ModifyAutoSnapshotPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyAutoSnapshotPolicyRequest creates a request to invoke ModifyAutoSnapshotPolicy API +func CreateModifyAutoSnapshotPolicyRequest() (request *ModifyAutoSnapshotPolicyRequest) { + request = &ModifyAutoSnapshotPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyAutoSnapshotPolicy", "ecs", "openAPI") + return +} + +// CreateModifyAutoSnapshotPolicyResponse creates a response to parse from ModifyAutoSnapshotPolicy response +func CreateModifyAutoSnapshotPolicyResponse() (response *ModifyAutoSnapshotPolicyResponse) { + response = &ModifyAutoSnapshotPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_snapshot_policy_ex.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_snapshot_policy_ex.go new file mode 100644 index 0000000..13bbfb6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_snapshot_policy_ex.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyAutoSnapshotPolicyEx invokes the ecs.ModifyAutoSnapshotPolicyEx API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyautosnapshotpolicyex.html +func (client *Client) ModifyAutoSnapshotPolicyEx(request *ModifyAutoSnapshotPolicyExRequest) (response *ModifyAutoSnapshotPolicyExResponse, err error) { + response = CreateModifyAutoSnapshotPolicyExResponse() + err = client.DoAction(request, response) + return +} + +// ModifyAutoSnapshotPolicyExWithChan invokes the ecs.ModifyAutoSnapshotPolicyEx API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyautosnapshotpolicyex.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyAutoSnapshotPolicyExWithChan(request *ModifyAutoSnapshotPolicyExRequest) (<-chan *ModifyAutoSnapshotPolicyExResponse, <-chan error) { + responseChan := make(chan *ModifyAutoSnapshotPolicyExResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyAutoSnapshotPolicyEx(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyAutoSnapshotPolicyExWithCallback invokes the ecs.ModifyAutoSnapshotPolicyEx API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyautosnapshotpolicyex.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyAutoSnapshotPolicyExWithCallback(request *ModifyAutoSnapshotPolicyExRequest, callback func(response *ModifyAutoSnapshotPolicyExResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyAutoSnapshotPolicyExResponse + var err error + defer close(result) + response, err = client.ModifyAutoSnapshotPolicyEx(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyAutoSnapshotPolicyExRequest is the request struct for api ModifyAutoSnapshotPolicyEx +type ModifyAutoSnapshotPolicyExRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + AutoSnapshotPolicyId string `position:"Query" name:"autoSnapshotPolicyId"` + TimePoints string `position:"Query" name:"timePoints"` + RetentionDays requests.Integer `position:"Query" name:"retentionDays"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + RepeatWeekdays string `position:"Query" name:"repeatWeekdays"` + AutoSnapshotPolicyName string `position:"Query" name:"autoSnapshotPolicyName"` +} + +// ModifyAutoSnapshotPolicyExResponse is the response struct for api ModifyAutoSnapshotPolicyEx +type ModifyAutoSnapshotPolicyExResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyAutoSnapshotPolicyExRequest creates a request to invoke ModifyAutoSnapshotPolicyEx API +func CreateModifyAutoSnapshotPolicyExRequest() (request *ModifyAutoSnapshotPolicyExRequest) { + request = &ModifyAutoSnapshotPolicyExRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyAutoSnapshotPolicyEx", "ecs", "openAPI") + return +} + +// CreateModifyAutoSnapshotPolicyExResponse creates a response to parse from ModifyAutoSnapshotPolicyEx response +func CreateModifyAutoSnapshotPolicyExResponse() (response *ModifyAutoSnapshotPolicyExResponse) { + response = &ModifyAutoSnapshotPolicyExResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_bandwidth_package_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_bandwidth_package_spec.go new file mode 100644 index 0000000..c942616 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_bandwidth_package_spec.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyBandwidthPackageSpec invokes the ecs.ModifyBandwidthPackageSpec API synchronously +// api document: https://help.aliyun.com/api/ecs/modifybandwidthpackagespec.html +func (client *Client) ModifyBandwidthPackageSpec(request *ModifyBandwidthPackageSpecRequest) (response *ModifyBandwidthPackageSpecResponse, err error) { + response = CreateModifyBandwidthPackageSpecResponse() + err = client.DoAction(request, response) + return +} + +// ModifyBandwidthPackageSpecWithChan invokes the ecs.ModifyBandwidthPackageSpec API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifybandwidthpackagespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyBandwidthPackageSpecWithChan(request *ModifyBandwidthPackageSpecRequest) (<-chan *ModifyBandwidthPackageSpecResponse, <-chan error) { + responseChan := make(chan *ModifyBandwidthPackageSpecResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyBandwidthPackageSpec(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyBandwidthPackageSpecWithCallback invokes the ecs.ModifyBandwidthPackageSpec API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifybandwidthpackagespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyBandwidthPackageSpecWithCallback(request *ModifyBandwidthPackageSpecRequest, callback func(response *ModifyBandwidthPackageSpecResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyBandwidthPackageSpecResponse + var err error + defer close(result) + response, err = client.ModifyBandwidthPackageSpec(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyBandwidthPackageSpecRequest is the request struct for api ModifyBandwidthPackageSpec +type ModifyBandwidthPackageSpecRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Bandwidth string `position:"Query" name:"Bandwidth"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyBandwidthPackageSpecResponse is the response struct for api ModifyBandwidthPackageSpec +type ModifyBandwidthPackageSpecResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyBandwidthPackageSpecRequest creates a request to invoke ModifyBandwidthPackageSpec API +func CreateModifyBandwidthPackageSpecRequest() (request *ModifyBandwidthPackageSpecRequest) { + request = &ModifyBandwidthPackageSpecRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyBandwidthPackageSpec", "ecs", "openAPI") + return +} + +// CreateModifyBandwidthPackageSpecResponse creates a response to parse from ModifyBandwidthPackageSpec response +func CreateModifyBandwidthPackageSpecResponse() (response *ModifyBandwidthPackageSpecResponse) { + response = &ModifyBandwidthPackageSpecResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_command.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_command.go new file mode 100644 index 0000000..13347f5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_command.go @@ -0,0 +1,112 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyCommand invokes the ecs.ModifyCommand API synchronously +// api document: https://help.aliyun.com/api/ecs/modifycommand.html +func (client *Client) ModifyCommand(request *ModifyCommandRequest) (response *ModifyCommandResponse, err error) { + response = CreateModifyCommandResponse() + err = client.DoAction(request, response) + return +} + +// ModifyCommandWithChan invokes the ecs.ModifyCommand API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifycommand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCommandWithChan(request *ModifyCommandRequest) (<-chan *ModifyCommandResponse, <-chan error) { + responseChan := make(chan *ModifyCommandResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyCommand(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyCommandWithCallback invokes the ecs.ModifyCommand API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifycommand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCommandWithCallback(request *ModifyCommandRequest, callback func(response *ModifyCommandResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyCommandResponse + var err error + defer close(result) + response, err = client.ModifyCommand(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyCommandRequest is the request struct for api ModifyCommand +type ModifyCommandRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + WorkingDir string `position:"Query" name:"WorkingDir"` + Description string `position:"Query" name:"Description"` + CommandId string `position:"Query" name:"CommandId"` + CommandContent string `position:"Query" name:"CommandContent"` + Timeout requests.Integer `position:"Query" name:"Timeout"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Name string `position:"Query" name:"Name"` +} + +// ModifyCommandResponse is the response struct for api ModifyCommand +type ModifyCommandResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyCommandRequest creates a request to invoke ModifyCommand API +func CreateModifyCommandRequest() (request *ModifyCommandRequest) { + request = &ModifyCommandRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyCommand", "ecs", "openAPI") + return +} + +// CreateModifyCommandResponse creates a response to parse from ModifyCommand response +func CreateModifyCommandResponse() (response *ModifyCommandResponse) { + response = &ModifyCommandResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_deployment_set_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_deployment_set_attribute.go new file mode 100644 index 0000000..66b322b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_deployment_set_attribute.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDeploymentSetAttribute invokes the ecs.ModifyDeploymentSetAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/modifydeploymentsetattribute.html +func (client *Client) ModifyDeploymentSetAttribute(request *ModifyDeploymentSetAttributeRequest) (response *ModifyDeploymentSetAttributeResponse, err error) { + response = CreateModifyDeploymentSetAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDeploymentSetAttributeWithChan invokes the ecs.ModifyDeploymentSetAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifydeploymentsetattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDeploymentSetAttributeWithChan(request *ModifyDeploymentSetAttributeRequest) (<-chan *ModifyDeploymentSetAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyDeploymentSetAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDeploymentSetAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDeploymentSetAttributeWithCallback invokes the ecs.ModifyDeploymentSetAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifydeploymentsetattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDeploymentSetAttributeWithCallback(request *ModifyDeploymentSetAttributeRequest, callback func(response *ModifyDeploymentSetAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDeploymentSetAttributeResponse + var err error + defer close(result) + response, err = client.ModifyDeploymentSetAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDeploymentSetAttributeRequest is the request struct for api ModifyDeploymentSetAttribute +type ModifyDeploymentSetAttributeRequest struct { + *requests.RpcRequest + DeploymentSetId string `position:"Query" name:"DeploymentSetId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Description string `position:"Query" name:"Description"` + DeploymentSetName string `position:"Query" name:"DeploymentSetName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyDeploymentSetAttributeResponse is the response struct for api ModifyDeploymentSetAttribute +type ModifyDeploymentSetAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyDeploymentSetAttributeRequest creates a request to invoke ModifyDeploymentSetAttribute API +func CreateModifyDeploymentSetAttributeRequest() (request *ModifyDeploymentSetAttributeRequest) { + request = &ModifyDeploymentSetAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDeploymentSetAttribute", "ecs", "openAPI") + return +} + +// CreateModifyDeploymentSetAttributeResponse creates a response to parse from ModifyDeploymentSetAttribute response +func CreateModifyDeploymentSetAttributeResponse() (response *ModifyDeploymentSetAttributeResponse) { + response = &ModifyDeploymentSetAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_attribute.go new file mode 100644 index 0000000..a01013d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_attribute.go @@ -0,0 +1,112 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDiskAttribute invokes the ecs.ModifyDiskAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/modifydiskattribute.html +func (client *Client) ModifyDiskAttribute(request *ModifyDiskAttributeRequest) (response *ModifyDiskAttributeResponse, err error) { + response = CreateModifyDiskAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDiskAttributeWithChan invokes the ecs.ModifyDiskAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifydiskattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDiskAttributeWithChan(request *ModifyDiskAttributeRequest) (<-chan *ModifyDiskAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyDiskAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDiskAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDiskAttributeWithCallback invokes the ecs.ModifyDiskAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifydiskattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDiskAttributeWithCallback(request *ModifyDiskAttributeRequest, callback func(response *ModifyDiskAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDiskAttributeResponse + var err error + defer close(result) + response, err = client.ModifyDiskAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDiskAttributeRequest is the request struct for api ModifyDiskAttribute +type ModifyDiskAttributeRequest struct { + *requests.RpcRequest + DiskName string `position:"Query" name:"DiskName"` + DeleteAutoSnapshot requests.Boolean `position:"Query" name:"DeleteAutoSnapshot"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + EnableAutoSnapshot requests.Boolean `position:"Query" name:"EnableAutoSnapshot"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Description string `position:"Query" name:"Description"` + DiskId string `position:"Query" name:"DiskId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + DeleteWithInstance requests.Boolean `position:"Query" name:"DeleteWithInstance"` +} + +// ModifyDiskAttributeResponse is the response struct for api ModifyDiskAttribute +type ModifyDiskAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyDiskAttributeRequest creates a request to invoke ModifyDiskAttribute API +func CreateModifyDiskAttributeRequest() (request *ModifyDiskAttributeRequest) { + request = &ModifyDiskAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDiskAttribute", "ecs", "openAPI") + return +} + +// CreateModifyDiskAttributeResponse creates a response to parse from ModifyDiskAttribute response +func CreateModifyDiskAttributeResponse() (response *ModifyDiskAttributeResponse) { + response = &ModifyDiskAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_charge_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_charge_type.go new file mode 100644 index 0000000..5b9bba8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_charge_type.go @@ -0,0 +1,112 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDiskChargeType invokes the ecs.ModifyDiskChargeType API synchronously +// api document: https://help.aliyun.com/api/ecs/modifydiskchargetype.html +func (client *Client) ModifyDiskChargeType(request *ModifyDiskChargeTypeRequest) (response *ModifyDiskChargeTypeResponse, err error) { + response = CreateModifyDiskChargeTypeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDiskChargeTypeWithChan invokes the ecs.ModifyDiskChargeType API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifydiskchargetype.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDiskChargeTypeWithChan(request *ModifyDiskChargeTypeRequest) (<-chan *ModifyDiskChargeTypeResponse, <-chan error) { + responseChan := make(chan *ModifyDiskChargeTypeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDiskChargeType(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDiskChargeTypeWithCallback invokes the ecs.ModifyDiskChargeType API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifydiskchargetype.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDiskChargeTypeWithCallback(request *ModifyDiskChargeTypeRequest, callback func(response *ModifyDiskChargeTypeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDiskChargeTypeResponse + var err error + defer close(result) + response, err = client.ModifyDiskChargeType(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDiskChargeTypeRequest is the request struct for api ModifyDiskChargeType +type ModifyDiskChargeTypeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DiskChargeType string `position:"Query" name:"DiskChargeType"` + InstanceId string `position:"Query" name:"InstanceId"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DiskIds string `position:"Query" name:"DiskIds"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyDiskChargeTypeResponse is the response struct for api ModifyDiskChargeType +type ModifyDiskChargeTypeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + OrderId string `json:"OrderId" xml:"OrderId"` +} + +// CreateModifyDiskChargeTypeRequest creates a request to invoke ModifyDiskChargeType API +func CreateModifyDiskChargeTypeRequest() (request *ModifyDiskChargeTypeRequest) { + request = &ModifyDiskChargeTypeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDiskChargeType", "ecs", "openAPI") + return +} + +// CreateModifyDiskChargeTypeResponse creates a response to parse from ModifyDiskChargeType response +func CreateModifyDiskChargeTypeResponse() (response *ModifyDiskChargeTypeResponse) { + response = &ModifyDiskChargeTypeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_eip_address_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_eip_address_attribute.go new file mode 100644 index 0000000..cf46a85 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_eip_address_attribute.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyEipAddressAttribute invokes the ecs.ModifyEipAddressAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyeipaddressattribute.html +func (client *Client) ModifyEipAddressAttribute(request *ModifyEipAddressAttributeRequest) (response *ModifyEipAddressAttributeResponse, err error) { + response = CreateModifyEipAddressAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyEipAddressAttributeWithChan invokes the ecs.ModifyEipAddressAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyeipaddressattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyEipAddressAttributeWithChan(request *ModifyEipAddressAttributeRequest) (<-chan *ModifyEipAddressAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyEipAddressAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyEipAddressAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyEipAddressAttributeWithCallback invokes the ecs.ModifyEipAddressAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyeipaddressattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyEipAddressAttributeWithCallback(request *ModifyEipAddressAttributeRequest, callback func(response *ModifyEipAddressAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyEipAddressAttributeResponse + var err error + defer close(result) + response, err = client.ModifyEipAddressAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyEipAddressAttributeRequest is the request struct for api ModifyEipAddressAttribute +type ModifyEipAddressAttributeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Bandwidth string `position:"Query" name:"Bandwidth"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AllocationId string `position:"Query" name:"AllocationId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyEipAddressAttributeResponse is the response struct for api ModifyEipAddressAttribute +type ModifyEipAddressAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyEipAddressAttributeRequest creates a request to invoke ModifyEipAddressAttribute API +func CreateModifyEipAddressAttributeRequest() (request *ModifyEipAddressAttributeRequest) { + request = &ModifyEipAddressAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyEipAddressAttribute", "ecs", "openAPI") + return +} + +// CreateModifyEipAddressAttributeResponse creates a response to parse from ModifyEipAddressAttribute response +func CreateModifyEipAddressAttributeResponse() (response *ModifyEipAddressAttributeResponse) { + response = &ModifyEipAddressAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_forward_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_forward_entry.go new file mode 100644 index 0000000..d831c39 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_forward_entry.go @@ -0,0 +1,113 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyForwardEntry invokes the ecs.ModifyForwardEntry API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyforwardentry.html +func (client *Client) ModifyForwardEntry(request *ModifyForwardEntryRequest) (response *ModifyForwardEntryResponse, err error) { + response = CreateModifyForwardEntryResponse() + err = client.DoAction(request, response) + return +} + +// ModifyForwardEntryWithChan invokes the ecs.ModifyForwardEntry API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyforwardentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyForwardEntryWithChan(request *ModifyForwardEntryRequest) (<-chan *ModifyForwardEntryResponse, <-chan error) { + responseChan := make(chan *ModifyForwardEntryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyForwardEntry(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyForwardEntryWithCallback invokes the ecs.ModifyForwardEntry API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyforwardentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyForwardEntryWithCallback(request *ModifyForwardEntryRequest, callback func(response *ModifyForwardEntryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyForwardEntryResponse + var err error + defer close(result) + response, err = client.ModifyForwardEntry(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyForwardEntryRequest is the request struct for api ModifyForwardEntry +type ModifyForwardEntryRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + IpProtocol string `position:"Query" name:"IpProtocol"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ForwardTableId string `position:"Query" name:"ForwardTableId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InternalIp string `position:"Query" name:"InternalIp"` + ForwardEntryId string `position:"Query" name:"ForwardEntryId"` + InternalPort string `position:"Query" name:"InternalPort"` + ExternalIp string `position:"Query" name:"ExternalIp"` + ExternalPort string `position:"Query" name:"ExternalPort"` +} + +// ModifyForwardEntryResponse is the response struct for api ModifyForwardEntry +type ModifyForwardEntryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyForwardEntryRequest creates a request to invoke ModifyForwardEntry API +func CreateModifyForwardEntryRequest() (request *ModifyForwardEntryRequest) { + request = &ModifyForwardEntryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyForwardEntry", "ecs", "openAPI") + return +} + +// CreateModifyForwardEntryResponse creates a response to parse from ModifyForwardEntry response +func CreateModifyForwardEntryResponse() (response *ModifyForwardEntryResponse) { + response = &ModifyForwardEntryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_ha_vip_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_ha_vip_attribute.go new file mode 100644 index 0000000..034501a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_ha_vip_attribute.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyHaVipAttribute invokes the ecs.ModifyHaVipAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyhavipattribute.html +func (client *Client) ModifyHaVipAttribute(request *ModifyHaVipAttributeRequest) (response *ModifyHaVipAttributeResponse, err error) { + response = CreateModifyHaVipAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyHaVipAttributeWithChan invokes the ecs.ModifyHaVipAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyhavipattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyHaVipAttributeWithChan(request *ModifyHaVipAttributeRequest) (<-chan *ModifyHaVipAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyHaVipAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyHaVipAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyHaVipAttributeWithCallback invokes the ecs.ModifyHaVipAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyhavipattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyHaVipAttributeWithCallback(request *ModifyHaVipAttributeRequest, callback func(response *ModifyHaVipAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyHaVipAttributeResponse + var err error + defer close(result) + response, err = client.ModifyHaVipAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyHaVipAttributeRequest is the request struct for api ModifyHaVipAttribute +type ModifyHaVipAttributeRequest struct { + *requests.RpcRequest + HaVipId string `position:"Query" name:"HaVipId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Description string `position:"Query" name:"Description"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyHaVipAttributeResponse is the response struct for api ModifyHaVipAttribute +type ModifyHaVipAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyHaVipAttributeRequest creates a request to invoke ModifyHaVipAttribute API +func CreateModifyHaVipAttributeRequest() (request *ModifyHaVipAttributeRequest) { + request = &ModifyHaVipAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyHaVipAttribute", "ecs", "openAPI") + return +} + +// CreateModifyHaVipAttributeResponse creates a response to parse from ModifyHaVipAttribute response +func CreateModifyHaVipAttributeResponse() (response *ModifyHaVipAttributeResponse) { + response = &ModifyHaVipAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_hpc_cluster_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_hpc_cluster_attribute.go new file mode 100644 index 0000000..9df6f60 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_hpc_cluster_attribute.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyHpcClusterAttribute invokes the ecs.ModifyHpcClusterAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyhpcclusterattribute.html +func (client *Client) ModifyHpcClusterAttribute(request *ModifyHpcClusterAttributeRequest) (response *ModifyHpcClusterAttributeResponse, err error) { + response = CreateModifyHpcClusterAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyHpcClusterAttributeWithChan invokes the ecs.ModifyHpcClusterAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyhpcclusterattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyHpcClusterAttributeWithChan(request *ModifyHpcClusterAttributeRequest) (<-chan *ModifyHpcClusterAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyHpcClusterAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyHpcClusterAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyHpcClusterAttributeWithCallback invokes the ecs.ModifyHpcClusterAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyhpcclusterattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyHpcClusterAttributeWithCallback(request *ModifyHpcClusterAttributeRequest, callback func(response *ModifyHpcClusterAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyHpcClusterAttributeResponse + var err error + defer close(result) + response, err = client.ModifyHpcClusterAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyHpcClusterAttributeRequest is the request struct for api ModifyHpcClusterAttribute +type ModifyHpcClusterAttributeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + HpcClusterId string `position:"Query" name:"HpcClusterId"` + ClientToken string `position:"Query" name:"ClientToken"` + Description string `position:"Query" name:"Description"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Name string `position:"Query" name:"Name"` +} + +// ModifyHpcClusterAttributeResponse is the response struct for api ModifyHpcClusterAttribute +type ModifyHpcClusterAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyHpcClusterAttributeRequest creates a request to invoke ModifyHpcClusterAttribute API +func CreateModifyHpcClusterAttributeRequest() (request *ModifyHpcClusterAttributeRequest) { + request = &ModifyHpcClusterAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyHpcClusterAttribute", "ecs", "openAPI") + return +} + +// CreateModifyHpcClusterAttributeResponse creates a response to parse from ModifyHpcClusterAttribute response +func CreateModifyHpcClusterAttributeResponse() (response *ModifyHpcClusterAttributeResponse) { + response = &ModifyHpcClusterAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_attribute.go new file mode 100644 index 0000000..bed589a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_attribute.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyImageAttribute invokes the ecs.ModifyImageAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyimageattribute.html +func (client *Client) ModifyImageAttribute(request *ModifyImageAttributeRequest) (response *ModifyImageAttributeResponse, err error) { + response = CreateModifyImageAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyImageAttributeWithChan invokes the ecs.ModifyImageAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyimageattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyImageAttributeWithChan(request *ModifyImageAttributeRequest) (<-chan *ModifyImageAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyImageAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyImageAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyImageAttributeWithCallback invokes the ecs.ModifyImageAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyimageattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyImageAttributeWithCallback(request *ModifyImageAttributeRequest, callback func(response *ModifyImageAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyImageAttributeResponse + var err error + defer close(result) + response, err = client.ModifyImageAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyImageAttributeRequest is the request struct for api ModifyImageAttribute +type ModifyImageAttributeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ImageId string `position:"Query" name:"ImageId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ImageName string `position:"Query" name:"ImageName"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Description string `position:"Query" name:"Description"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyImageAttributeResponse is the response struct for api ModifyImageAttribute +type ModifyImageAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyImageAttributeRequest creates a request to invoke ModifyImageAttribute API +func CreateModifyImageAttributeRequest() (request *ModifyImageAttributeRequest) { + request = &ModifyImageAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyImageAttribute", "ecs", "openAPI") + return +} + +// CreateModifyImageAttributeResponse creates a response to parse from ModifyImageAttribute response +func CreateModifyImageAttributeResponse() (response *ModifyImageAttributeResponse) { + response = &ModifyImageAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_group_permission.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_group_permission.go new file mode 100644 index 0000000..fb3142a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_group_permission.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyImageShareGroupPermission invokes the ecs.ModifyImageShareGroupPermission API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyimagesharegrouppermission.html +func (client *Client) ModifyImageShareGroupPermission(request *ModifyImageShareGroupPermissionRequest) (response *ModifyImageShareGroupPermissionResponse, err error) { + response = CreateModifyImageShareGroupPermissionResponse() + err = client.DoAction(request, response) + return +} + +// ModifyImageShareGroupPermissionWithChan invokes the ecs.ModifyImageShareGroupPermission API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyimagesharegrouppermission.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyImageShareGroupPermissionWithChan(request *ModifyImageShareGroupPermissionRequest) (<-chan *ModifyImageShareGroupPermissionResponse, <-chan error) { + responseChan := make(chan *ModifyImageShareGroupPermissionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyImageShareGroupPermission(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyImageShareGroupPermissionWithCallback invokes the ecs.ModifyImageShareGroupPermission API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyimagesharegrouppermission.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyImageShareGroupPermissionWithCallback(request *ModifyImageShareGroupPermissionRequest, callback func(response *ModifyImageShareGroupPermissionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyImageShareGroupPermissionResponse + var err error + defer close(result) + response, err = client.ModifyImageShareGroupPermission(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyImageShareGroupPermissionRequest is the request struct for api ModifyImageShareGroupPermission +type ModifyImageShareGroupPermissionRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ImageId string `position:"Query" name:"ImageId"` + AddGroup1 string `position:"Query" name:"AddGroup.1"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + RemoveGroup1 string `position:"Query" name:"RemoveGroup.1"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyImageShareGroupPermissionResponse is the response struct for api ModifyImageShareGroupPermission +type ModifyImageShareGroupPermissionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyImageShareGroupPermissionRequest creates a request to invoke ModifyImageShareGroupPermission API +func CreateModifyImageShareGroupPermissionRequest() (request *ModifyImageShareGroupPermissionRequest) { + request = &ModifyImageShareGroupPermissionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyImageShareGroupPermission", "ecs", "openAPI") + return +} + +// CreateModifyImageShareGroupPermissionResponse creates a response to parse from ModifyImageShareGroupPermission response +func CreateModifyImageShareGroupPermissionResponse() (response *ModifyImageShareGroupPermissionResponse) { + response = &ModifyImageShareGroupPermissionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_permission.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_permission.go new file mode 100644 index 0000000..2ecda06 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_permission.go @@ -0,0 +1,127 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyImageSharePermission invokes the ecs.ModifyImageSharePermission API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyimagesharepermission.html +func (client *Client) ModifyImageSharePermission(request *ModifyImageSharePermissionRequest) (response *ModifyImageSharePermissionResponse, err error) { + response = CreateModifyImageSharePermissionResponse() + err = client.DoAction(request, response) + return +} + +// ModifyImageSharePermissionWithChan invokes the ecs.ModifyImageSharePermission API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyimagesharepermission.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyImageSharePermissionWithChan(request *ModifyImageSharePermissionRequest) (<-chan *ModifyImageSharePermissionResponse, <-chan error) { + responseChan := make(chan *ModifyImageSharePermissionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyImageSharePermission(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyImageSharePermissionWithCallback invokes the ecs.ModifyImageSharePermission API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyimagesharepermission.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyImageSharePermissionWithCallback(request *ModifyImageSharePermissionRequest, callback func(response *ModifyImageSharePermissionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyImageSharePermissionResponse + var err error + defer close(result) + response, err = client.ModifyImageSharePermission(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyImageSharePermissionRequest is the request struct for api ModifyImageSharePermission +type ModifyImageSharePermissionRequest struct { + *requests.RpcRequest + AddAccount1 string `position:"Query" name:"AddAccount.1"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ImageId string `position:"Query" name:"ImageId"` + AddAccount9 string `position:"Query" name:"AddAccount.9"` + AddAccount8 string `position:"Query" name:"AddAccount.8"` + AddAccount7 string `position:"Query" name:"AddAccount.7"` + AddAccount6 string `position:"Query" name:"AddAccount.6"` + AddAccount5 string `position:"Query" name:"AddAccount.5"` + AddAccount10 string `position:"Query" name:"AddAccount.10"` + AddAccount4 string `position:"Query" name:"AddAccount.4"` + AddAccount3 string `position:"Query" name:"AddAccount.3"` + AddAccount2 string `position:"Query" name:"AddAccount.2"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + RemoveAccount1 string `position:"Query" name:"RemoveAccount.1"` + RemoveAccount2 string `position:"Query" name:"RemoveAccount.2"` + RemoveAccount3 string `position:"Query" name:"RemoveAccount.3"` + RemoveAccount4 string `position:"Query" name:"RemoveAccount.4"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + RemoveAccount9 string `position:"Query" name:"RemoveAccount.9"` + RemoveAccount5 string `position:"Query" name:"RemoveAccount.5"` + RemoveAccount6 string `position:"Query" name:"RemoveAccount.6"` + RemoveAccount7 string `position:"Query" name:"RemoveAccount.7"` + RemoveAccount8 string `position:"Query" name:"RemoveAccount.8"` + RemoveAccount10 string `position:"Query" name:"RemoveAccount.10"` +} + +// ModifyImageSharePermissionResponse is the response struct for api ModifyImageSharePermission +type ModifyImageSharePermissionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyImageSharePermissionRequest creates a request to invoke ModifyImageSharePermission API +func CreateModifyImageSharePermissionRequest() (request *ModifyImageSharePermissionRequest) { + request = &ModifyImageSharePermissionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyImageSharePermission", "ecs", "openAPI") + return +} + +// CreateModifyImageSharePermissionResponse creates a response to parse from ModifyImageSharePermission response +func CreateModifyImageSharePermissionResponse() (response *ModifyImageSharePermissionResponse) { + response = &ModifyImageSharePermissionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_attribute.go new file mode 100644 index 0000000..fa933d6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_attribute.go @@ -0,0 +1,113 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyInstanceAttribute invokes the ecs.ModifyInstanceAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstanceattribute.html +func (client *Client) ModifyInstanceAttribute(request *ModifyInstanceAttributeRequest) (response *ModifyInstanceAttributeResponse, err error) { + response = CreateModifyInstanceAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyInstanceAttributeWithChan invokes the ecs.ModifyInstanceAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstanceattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceAttributeWithChan(request *ModifyInstanceAttributeRequest) (<-chan *ModifyInstanceAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyInstanceAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyInstanceAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyInstanceAttributeWithCallback invokes the ecs.ModifyInstanceAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstanceattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceAttributeWithCallback(request *ModifyInstanceAttributeRequest, callback func(response *ModifyInstanceAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyInstanceAttributeResponse + var err error + defer close(result) + response, err = client.ModifyInstanceAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyInstanceAttributeRequest is the request struct for api ModifyInstanceAttribute +type ModifyInstanceAttributeRequest struct { + *requests.RpcRequest + UserData string `position:"Query" name:"UserData"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Password string `position:"Query" name:"Password"` + HostName string `position:"Query" name:"HostName"` + InstanceId string `position:"Query" name:"InstanceId"` + InstanceName string `position:"Query" name:"InstanceName"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Recyclable requests.Boolean `position:"Query" name:"Recyclable"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Description string `position:"Query" name:"Description"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyInstanceAttributeResponse is the response struct for api ModifyInstanceAttribute +type ModifyInstanceAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyInstanceAttributeRequest creates a request to invoke ModifyInstanceAttribute API +func CreateModifyInstanceAttributeRequest() (request *ModifyInstanceAttributeRequest) { + request = &ModifyInstanceAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceAttribute", "ecs", "openAPI") + return +} + +// CreateModifyInstanceAttributeResponse creates a response to parse from ModifyInstanceAttribute response +func CreateModifyInstanceAttributeResponse() (response *ModifyInstanceAttributeResponse) { + response = &ModifyInstanceAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_release_time.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_release_time.go new file mode 100644 index 0000000..6e596d3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_release_time.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyInstanceAutoReleaseTime invokes the ecs.ModifyInstanceAutoReleaseTime API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstanceautoreleasetime.html +func (client *Client) ModifyInstanceAutoReleaseTime(request *ModifyInstanceAutoReleaseTimeRequest) (response *ModifyInstanceAutoReleaseTimeResponse, err error) { + response = CreateModifyInstanceAutoReleaseTimeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyInstanceAutoReleaseTimeWithChan invokes the ecs.ModifyInstanceAutoReleaseTime API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstanceautoreleasetime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceAutoReleaseTimeWithChan(request *ModifyInstanceAutoReleaseTimeRequest) (<-chan *ModifyInstanceAutoReleaseTimeResponse, <-chan error) { + responseChan := make(chan *ModifyInstanceAutoReleaseTimeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyInstanceAutoReleaseTime(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyInstanceAutoReleaseTimeWithCallback invokes the ecs.ModifyInstanceAutoReleaseTime API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstanceautoreleasetime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceAutoReleaseTimeWithCallback(request *ModifyInstanceAutoReleaseTimeRequest, callback func(response *ModifyInstanceAutoReleaseTimeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyInstanceAutoReleaseTimeResponse + var err error + defer close(result) + response, err = client.ModifyInstanceAutoReleaseTime(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyInstanceAutoReleaseTimeRequest is the request struct for api ModifyInstanceAutoReleaseTime +type ModifyInstanceAutoReleaseTimeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AutoReleaseTime string `position:"Query" name:"AutoReleaseTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyInstanceAutoReleaseTimeResponse is the response struct for api ModifyInstanceAutoReleaseTime +type ModifyInstanceAutoReleaseTimeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyInstanceAutoReleaseTimeRequest creates a request to invoke ModifyInstanceAutoReleaseTime API +func CreateModifyInstanceAutoReleaseTimeRequest() (request *ModifyInstanceAutoReleaseTimeRequest) { + request = &ModifyInstanceAutoReleaseTimeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceAutoReleaseTime", "ecs", "openAPI") + return +} + +// CreateModifyInstanceAutoReleaseTimeResponse creates a response to parse from ModifyInstanceAutoReleaseTime response +func CreateModifyInstanceAutoReleaseTimeResponse() (response *ModifyInstanceAutoReleaseTimeResponse) { + response = &ModifyInstanceAutoReleaseTimeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_renew_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_renew_attribute.go new file mode 100644 index 0000000..3df2c79 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_renew_attribute.go @@ -0,0 +1,111 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyInstanceAutoRenewAttribute invokes the ecs.ModifyInstanceAutoRenewAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstanceautorenewattribute.html +func (client *Client) ModifyInstanceAutoRenewAttribute(request *ModifyInstanceAutoRenewAttributeRequest) (response *ModifyInstanceAutoRenewAttributeResponse, err error) { + response = CreateModifyInstanceAutoRenewAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyInstanceAutoRenewAttributeWithChan invokes the ecs.ModifyInstanceAutoRenewAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstanceautorenewattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceAutoRenewAttributeWithChan(request *ModifyInstanceAutoRenewAttributeRequest) (<-chan *ModifyInstanceAutoRenewAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyInstanceAutoRenewAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyInstanceAutoRenewAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyInstanceAutoRenewAttributeWithCallback invokes the ecs.ModifyInstanceAutoRenewAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstanceautorenewattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceAutoRenewAttributeWithCallback(request *ModifyInstanceAutoRenewAttributeRequest, callback func(response *ModifyInstanceAutoRenewAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyInstanceAutoRenewAttributeResponse + var err error + defer close(result) + response, err = client.ModifyInstanceAutoRenewAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyInstanceAutoRenewAttributeRequest is the request struct for api ModifyInstanceAutoRenewAttribute +type ModifyInstanceAutoRenewAttributeRequest struct { + *requests.RpcRequest + Duration requests.Integer `position:"Query" name:"Duration"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + InstanceId string `position:"Query" name:"InstanceId"` + AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + RenewalStatus string `position:"Query" name:"RenewalStatus"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyInstanceAutoRenewAttributeResponse is the response struct for api ModifyInstanceAutoRenewAttribute +type ModifyInstanceAutoRenewAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyInstanceAutoRenewAttributeRequest creates a request to invoke ModifyInstanceAutoRenewAttribute API +func CreateModifyInstanceAutoRenewAttributeRequest() (request *ModifyInstanceAutoRenewAttributeRequest) { + request = &ModifyInstanceAutoRenewAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceAutoRenewAttribute", "ecs", "openAPI") + return +} + +// CreateModifyInstanceAutoRenewAttributeResponse creates a response to parse from ModifyInstanceAutoRenewAttribute response +func CreateModifyInstanceAutoRenewAttributeResponse() (response *ModifyInstanceAutoRenewAttributeResponse) { + response = &ModifyInstanceAutoRenewAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_charge_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_charge_type.go new file mode 100644 index 0000000..658fcdf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_charge_type.go @@ -0,0 +1,115 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyInstanceChargeType invokes the ecs.ModifyInstanceChargeType API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstancechargetype.html +func (client *Client) ModifyInstanceChargeType(request *ModifyInstanceChargeTypeRequest) (response *ModifyInstanceChargeTypeResponse, err error) { + response = CreateModifyInstanceChargeTypeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyInstanceChargeTypeWithChan invokes the ecs.ModifyInstanceChargeType API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstancechargetype.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceChargeTypeWithChan(request *ModifyInstanceChargeTypeRequest) (<-chan *ModifyInstanceChargeTypeResponse, <-chan error) { + responseChan := make(chan *ModifyInstanceChargeTypeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyInstanceChargeType(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyInstanceChargeTypeWithCallback invokes the ecs.ModifyInstanceChargeType API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstancechargetype.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceChargeTypeWithCallback(request *ModifyInstanceChargeTypeRequest, callback func(response *ModifyInstanceChargeTypeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyInstanceChargeTypeResponse + var err error + defer close(result) + response, err = client.ModifyInstanceChargeType(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyInstanceChargeTypeRequest is the request struct for api ModifyInstanceChargeType +type ModifyInstanceChargeTypeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Period requests.Integer `position:"Query" name:"Period"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` + IncludeDataDisks requests.Boolean `position:"Query" name:"IncludeDataDisks"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + InstanceIds string `position:"Query" name:"InstanceIds"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` +} + +// ModifyInstanceChargeTypeResponse is the response struct for api ModifyInstanceChargeType +type ModifyInstanceChargeTypeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + OrderId string `json:"OrderId" xml:"OrderId"` +} + +// CreateModifyInstanceChargeTypeRequest creates a request to invoke ModifyInstanceChargeType API +func CreateModifyInstanceChargeTypeRequest() (request *ModifyInstanceChargeTypeRequest) { + request = &ModifyInstanceChargeTypeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceChargeType", "ecs", "openAPI") + return +} + +// CreateModifyInstanceChargeTypeResponse creates a response to parse from ModifyInstanceChargeType response +func CreateModifyInstanceChargeTypeResponse() (response *ModifyInstanceChargeTypeResponse) { + response = &ModifyInstanceChargeTypeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_network_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_network_spec.go new file mode 100644 index 0000000..cf4c683 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_network_spec.go @@ -0,0 +1,116 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyInstanceNetworkSpec invokes the ecs.ModifyInstanceNetworkSpec API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstancenetworkspec.html +func (client *Client) ModifyInstanceNetworkSpec(request *ModifyInstanceNetworkSpecRequest) (response *ModifyInstanceNetworkSpecResponse, err error) { + response = CreateModifyInstanceNetworkSpecResponse() + err = client.DoAction(request, response) + return +} + +// ModifyInstanceNetworkSpecWithChan invokes the ecs.ModifyInstanceNetworkSpec API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstancenetworkspec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceNetworkSpecWithChan(request *ModifyInstanceNetworkSpecRequest) (<-chan *ModifyInstanceNetworkSpecResponse, <-chan error) { + responseChan := make(chan *ModifyInstanceNetworkSpecResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyInstanceNetworkSpec(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyInstanceNetworkSpecWithCallback invokes the ecs.ModifyInstanceNetworkSpec API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstancenetworkspec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceNetworkSpecWithCallback(request *ModifyInstanceNetworkSpecRequest, callback func(response *ModifyInstanceNetworkSpecResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyInstanceNetworkSpecResponse + var err error + defer close(result) + response, err = client.ModifyInstanceNetworkSpec(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyInstanceNetworkSpecRequest is the request struct for api ModifyInstanceNetworkSpec +type ModifyInstanceNetworkSpecRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + NetworkChargeType string `position:"Query" name:"NetworkChargeType"` + InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` + AllocatePublicIp requests.Boolean `position:"Query" name:"AllocatePublicIp"` +} + +// ModifyInstanceNetworkSpecResponse is the response struct for api ModifyInstanceNetworkSpec +type ModifyInstanceNetworkSpecResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + OrderId string `json:"OrderId" xml:"OrderId"` +} + +// CreateModifyInstanceNetworkSpecRequest creates a request to invoke ModifyInstanceNetworkSpec API +func CreateModifyInstanceNetworkSpecRequest() (request *ModifyInstanceNetworkSpecRequest) { + request = &ModifyInstanceNetworkSpecRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceNetworkSpec", "ecs", "openAPI") + return +} + +// CreateModifyInstanceNetworkSpecResponse creates a response to parse from ModifyInstanceNetworkSpec response +func CreateModifyInstanceNetworkSpecResponse() (response *ModifyInstanceNetworkSpecResponse) { + response = &ModifyInstanceNetworkSpecResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_spec.go new file mode 100644 index 0000000..b6d1e7b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_spec.go @@ -0,0 +1,117 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyInstanceSpec invokes the ecs.ModifyInstanceSpec API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstancespec.html +func (client *Client) ModifyInstanceSpec(request *ModifyInstanceSpecRequest) (response *ModifyInstanceSpecResponse, err error) { + response = CreateModifyInstanceSpecResponse() + err = client.DoAction(request, response) + return +} + +// ModifyInstanceSpecWithChan invokes the ecs.ModifyInstanceSpec API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstancespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceSpecWithChan(request *ModifyInstanceSpecRequest) (<-chan *ModifyInstanceSpecResponse, <-chan error) { + responseChan := make(chan *ModifyInstanceSpecResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyInstanceSpec(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyInstanceSpecWithCallback invokes the ecs.ModifyInstanceSpec API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstancespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceSpecWithCallback(request *ModifyInstanceSpecRequest, callback func(response *ModifyInstanceSpecResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyInstanceSpecResponse + var err error + defer close(result) + response, err = client.ModifyInstanceSpec(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyInstanceSpecRequest is the request struct for api ModifyInstanceSpec +type ModifyInstanceSpecRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + AllowMigrateAcrossZone requests.Boolean `position:"Query" name:"AllowMigrateAcrossZone"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + TemporaryInternetMaxBandwidthOut requests.Integer `position:"Query" name:"Temporary.InternetMaxBandwidthOut"` + SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` + TemporaryStartTime string `position:"Query" name:"Temporary.StartTime"` + Async requests.Boolean `position:"Query" name:"Async"` + InstanceId string `position:"Query" name:"InstanceId"` + InstanceType string `position:"Query" name:"InstanceType"` + TemporaryEndTime string `position:"Query" name:"Temporary.EndTime"` + InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` +} + +// ModifyInstanceSpecResponse is the response struct for api ModifyInstanceSpec +type ModifyInstanceSpecResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyInstanceSpecRequest creates a request to invoke ModifyInstanceSpec API +func CreateModifyInstanceSpecRequest() (request *ModifyInstanceSpecRequest) { + request = &ModifyInstanceSpecRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceSpec", "ecs", "openAPI") + return +} + +// CreateModifyInstanceSpecResponse creates a response to parse from ModifyInstanceSpec response +func CreateModifyInstanceSpecResponse() (response *ModifyInstanceSpecResponse) { + response = &ModifyInstanceSpecResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vnc_passwd.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vnc_passwd.go new file mode 100644 index 0000000..dcc971a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vnc_passwd.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyInstanceVncPasswd invokes the ecs.ModifyInstanceVncPasswd API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstancevncpasswd.html +func (client *Client) ModifyInstanceVncPasswd(request *ModifyInstanceVncPasswdRequest) (response *ModifyInstanceVncPasswdResponse, err error) { + response = CreateModifyInstanceVncPasswdResponse() + err = client.DoAction(request, response) + return +} + +// ModifyInstanceVncPasswdWithChan invokes the ecs.ModifyInstanceVncPasswd API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstancevncpasswd.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceVncPasswdWithChan(request *ModifyInstanceVncPasswdRequest) (<-chan *ModifyInstanceVncPasswdResponse, <-chan error) { + responseChan := make(chan *ModifyInstanceVncPasswdResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyInstanceVncPasswd(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyInstanceVncPasswdWithCallback invokes the ecs.ModifyInstanceVncPasswd API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstancevncpasswd.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceVncPasswdWithCallback(request *ModifyInstanceVncPasswdRequest, callback func(response *ModifyInstanceVncPasswdResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyInstanceVncPasswdResponse + var err error + defer close(result) + response, err = client.ModifyInstanceVncPasswd(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyInstanceVncPasswdRequest is the request struct for api ModifyInstanceVncPasswd +type ModifyInstanceVncPasswdRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VncPassword string `position:"Query" name:"VncPassword"` +} + +// ModifyInstanceVncPasswdResponse is the response struct for api ModifyInstanceVncPasswd +type ModifyInstanceVncPasswdResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyInstanceVncPasswdRequest creates a request to invoke ModifyInstanceVncPasswd API +func CreateModifyInstanceVncPasswdRequest() (request *ModifyInstanceVncPasswdRequest) { + request = &ModifyInstanceVncPasswdRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceVncPasswd", "ecs", "openAPI") + return +} + +// CreateModifyInstanceVncPasswdResponse creates a response to parse from ModifyInstanceVncPasswd response +func CreateModifyInstanceVncPasswdResponse() (response *ModifyInstanceVncPasswdResponse) { + response = &ModifyInstanceVncPasswdResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vpc_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vpc_attribute.go new file mode 100644 index 0000000..6c4e510 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vpc_attribute.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyInstanceVpcAttribute invokes the ecs.ModifyInstanceVpcAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstancevpcattribute.html +func (client *Client) ModifyInstanceVpcAttribute(request *ModifyInstanceVpcAttributeRequest) (response *ModifyInstanceVpcAttributeResponse, err error) { + response = CreateModifyInstanceVpcAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyInstanceVpcAttributeWithChan invokes the ecs.ModifyInstanceVpcAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstancevpcattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceVpcAttributeWithChan(request *ModifyInstanceVpcAttributeRequest) (<-chan *ModifyInstanceVpcAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyInstanceVpcAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyInstanceVpcAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyInstanceVpcAttributeWithCallback invokes the ecs.ModifyInstanceVpcAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstancevpcattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceVpcAttributeWithCallback(request *ModifyInstanceVpcAttributeRequest, callback func(response *ModifyInstanceVpcAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyInstanceVpcAttributeResponse + var err error + defer close(result) + response, err = client.ModifyInstanceVpcAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyInstanceVpcAttributeRequest is the request struct for api ModifyInstanceVpcAttribute +type ModifyInstanceVpcAttributeRequest struct { + *requests.RpcRequest + VSwitchId string `position:"Query" name:"VSwitchId"` + PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyInstanceVpcAttributeResponse is the response struct for api ModifyInstanceVpcAttribute +type ModifyInstanceVpcAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyInstanceVpcAttributeRequest creates a request to invoke ModifyInstanceVpcAttribute API +func CreateModifyInstanceVpcAttributeRequest() (request *ModifyInstanceVpcAttributeRequest) { + request = &ModifyInstanceVpcAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceVpcAttribute", "ecs", "openAPI") + return +} + +// CreateModifyInstanceVpcAttributeResponse creates a response to parse from ModifyInstanceVpcAttribute response +func CreateModifyInstanceVpcAttributeResponse() (response *ModifyInstanceVpcAttributeResponse) { + response = &ModifyInstanceVpcAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_intranet_bandwidth_kb.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_intranet_bandwidth_kb.go new file mode 100644 index 0000000..a9a1292 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_intranet_bandwidth_kb.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyIntranetBandwidthKb invokes the ecs.ModifyIntranetBandwidthKb API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyintranetbandwidthkb.html +func (client *Client) ModifyIntranetBandwidthKb(request *ModifyIntranetBandwidthKbRequest) (response *ModifyIntranetBandwidthKbResponse, err error) { + response = CreateModifyIntranetBandwidthKbResponse() + err = client.DoAction(request, response) + return +} + +// ModifyIntranetBandwidthKbWithChan invokes the ecs.ModifyIntranetBandwidthKb API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyintranetbandwidthkb.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyIntranetBandwidthKbWithChan(request *ModifyIntranetBandwidthKbRequest) (<-chan *ModifyIntranetBandwidthKbResponse, <-chan error) { + responseChan := make(chan *ModifyIntranetBandwidthKbResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyIntranetBandwidthKb(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyIntranetBandwidthKbWithCallback invokes the ecs.ModifyIntranetBandwidthKb API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyintranetbandwidthkb.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyIntranetBandwidthKbWithCallback(request *ModifyIntranetBandwidthKbRequest, callback func(response *ModifyIntranetBandwidthKbResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyIntranetBandwidthKbResponse + var err error + defer close(result) + response, err = client.ModifyIntranetBandwidthKb(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyIntranetBandwidthKbRequest is the request struct for api ModifyIntranetBandwidthKb +type ModifyIntranetBandwidthKbRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + IntranetMaxBandwidthOut requests.Integer `position:"Query" name:"IntranetMaxBandwidthOut"` + InstanceId string `position:"Query" name:"InstanceId"` + IntranetMaxBandwidthIn requests.Integer `position:"Query" name:"IntranetMaxBandwidthIn"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyIntranetBandwidthKbResponse is the response struct for api ModifyIntranetBandwidthKb +type ModifyIntranetBandwidthKbResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyIntranetBandwidthKbRequest creates a request to invoke ModifyIntranetBandwidthKb API +func CreateModifyIntranetBandwidthKbRequest() (request *ModifyIntranetBandwidthKbRequest) { + request = &ModifyIntranetBandwidthKbRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyIntranetBandwidthKb", "ecs", "openAPI") + return +} + +// CreateModifyIntranetBandwidthKbResponse creates a response to parse from ModifyIntranetBandwidthKb response +func CreateModifyIntranetBandwidthKbResponse() (response *ModifyIntranetBandwidthKbResponse) { + response = &ModifyIntranetBandwidthKbResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_launch_template_default_version.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_launch_template_default_version.go new file mode 100644 index 0000000..ddb4db4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_launch_template_default_version.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyLaunchTemplateDefaultVersion invokes the ecs.ModifyLaunchTemplateDefaultVersion API synchronously +// api document: https://help.aliyun.com/api/ecs/modifylaunchtemplatedefaultversion.html +func (client *Client) ModifyLaunchTemplateDefaultVersion(request *ModifyLaunchTemplateDefaultVersionRequest) (response *ModifyLaunchTemplateDefaultVersionResponse, err error) { + response = CreateModifyLaunchTemplateDefaultVersionResponse() + err = client.DoAction(request, response) + return +} + +// ModifyLaunchTemplateDefaultVersionWithChan invokes the ecs.ModifyLaunchTemplateDefaultVersion API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifylaunchtemplatedefaultversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyLaunchTemplateDefaultVersionWithChan(request *ModifyLaunchTemplateDefaultVersionRequest) (<-chan *ModifyLaunchTemplateDefaultVersionResponse, <-chan error) { + responseChan := make(chan *ModifyLaunchTemplateDefaultVersionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyLaunchTemplateDefaultVersion(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyLaunchTemplateDefaultVersionWithCallback invokes the ecs.ModifyLaunchTemplateDefaultVersion API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifylaunchtemplatedefaultversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyLaunchTemplateDefaultVersionWithCallback(request *ModifyLaunchTemplateDefaultVersionRequest, callback func(response *ModifyLaunchTemplateDefaultVersionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyLaunchTemplateDefaultVersionResponse + var err error + defer close(result) + response, err = client.ModifyLaunchTemplateDefaultVersion(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyLaunchTemplateDefaultVersionRequest is the request struct for api ModifyLaunchTemplateDefaultVersion +type ModifyLaunchTemplateDefaultVersionRequest struct { + *requests.RpcRequest + LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LaunchTemplateId string `position:"Query" name:"LaunchTemplateId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + DefaultVersionNumber requests.Integer `position:"Query" name:"DefaultVersionNumber"` +} + +// ModifyLaunchTemplateDefaultVersionResponse is the response struct for api ModifyLaunchTemplateDefaultVersion +type ModifyLaunchTemplateDefaultVersionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyLaunchTemplateDefaultVersionRequest creates a request to invoke ModifyLaunchTemplateDefaultVersion API +func CreateModifyLaunchTemplateDefaultVersionRequest() (request *ModifyLaunchTemplateDefaultVersionRequest) { + request = &ModifyLaunchTemplateDefaultVersionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyLaunchTemplateDefaultVersion", "ecs", "openAPI") + return +} + +// CreateModifyLaunchTemplateDefaultVersionResponse creates a response to parse from ModifyLaunchTemplateDefaultVersion response +func CreateModifyLaunchTemplateDefaultVersionResponse() (response *ModifyLaunchTemplateDefaultVersionResponse) { + response = &ModifyLaunchTemplateDefaultVersionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_network_interface_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_network_interface_attribute.go new file mode 100644 index 0000000..81620cc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_network_interface_attribute.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyNetworkInterfaceAttribute invokes the ecs.ModifyNetworkInterfaceAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/modifynetworkinterfaceattribute.html +func (client *Client) ModifyNetworkInterfaceAttribute(request *ModifyNetworkInterfaceAttributeRequest) (response *ModifyNetworkInterfaceAttributeResponse, err error) { + response = CreateModifyNetworkInterfaceAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyNetworkInterfaceAttributeWithChan invokes the ecs.ModifyNetworkInterfaceAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifynetworkinterfaceattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyNetworkInterfaceAttributeWithChan(request *ModifyNetworkInterfaceAttributeRequest) (<-chan *ModifyNetworkInterfaceAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyNetworkInterfaceAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyNetworkInterfaceAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyNetworkInterfaceAttributeWithCallback invokes the ecs.ModifyNetworkInterfaceAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifynetworkinterfaceattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyNetworkInterfaceAttributeWithCallback(request *ModifyNetworkInterfaceAttributeRequest, callback func(response *ModifyNetworkInterfaceAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyNetworkInterfaceAttributeResponse + var err error + defer close(result) + response, err = client.ModifyNetworkInterfaceAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyNetworkInterfaceAttributeRequest is the request struct for api ModifyNetworkInterfaceAttribute +type ModifyNetworkInterfaceAttributeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityGroupId *[]string `position:"Query" name:"SecurityGroupId" type:"Repeated"` + Description string `position:"Query" name:"Description"` + NetworkInterfaceName string `position:"Query" name:"NetworkInterfaceName"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` +} + +// ModifyNetworkInterfaceAttributeResponse is the response struct for api ModifyNetworkInterfaceAttribute +type ModifyNetworkInterfaceAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyNetworkInterfaceAttributeRequest creates a request to invoke ModifyNetworkInterfaceAttribute API +func CreateModifyNetworkInterfaceAttributeRequest() (request *ModifyNetworkInterfaceAttributeRequest) { + request = &ModifyNetworkInterfaceAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyNetworkInterfaceAttribute", "ecs", "openAPI") + return +} + +// CreateModifyNetworkInterfaceAttributeResponse creates a response to parse from ModifyNetworkInterfaceAttribute response +func CreateModifyNetworkInterfaceAttributeResponse() (response *ModifyNetworkInterfaceAttributeResponse) { + response = &ModifyNetworkInterfaceAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_physical_connection_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_physical_connection_attribute.go new file mode 100644 index 0000000..728bde2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_physical_connection_attribute.go @@ -0,0 +1,117 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyPhysicalConnectionAttribute invokes the ecs.ModifyPhysicalConnectionAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyphysicalconnectionattribute.html +func (client *Client) ModifyPhysicalConnectionAttribute(request *ModifyPhysicalConnectionAttributeRequest) (response *ModifyPhysicalConnectionAttributeResponse, err error) { + response = CreateModifyPhysicalConnectionAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyPhysicalConnectionAttributeWithChan invokes the ecs.ModifyPhysicalConnectionAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyphysicalconnectionattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyPhysicalConnectionAttributeWithChan(request *ModifyPhysicalConnectionAttributeRequest) (<-chan *ModifyPhysicalConnectionAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyPhysicalConnectionAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyPhysicalConnectionAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyPhysicalConnectionAttributeWithCallback invokes the ecs.ModifyPhysicalConnectionAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyphysicalconnectionattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyPhysicalConnectionAttributeWithCallback(request *ModifyPhysicalConnectionAttributeRequest, callback func(response *ModifyPhysicalConnectionAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyPhysicalConnectionAttributeResponse + var err error + defer close(result) + response, err = client.ModifyPhysicalConnectionAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyPhysicalConnectionAttributeRequest is the request struct for api ModifyPhysicalConnectionAttribute +type ModifyPhysicalConnectionAttributeRequest struct { + *requests.RpcRequest + RedundantPhysicalConnectionId string `position:"Query" name:"RedundantPhysicalConnectionId"` + PeerLocation string `position:"Query" name:"PeerLocation"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PortType string `position:"Query" name:"PortType"` + CircuitCode string `position:"Query" name:"CircuitCode"` + Bandwidth requests.Integer `position:"Query" name:"bandwidth"` + ClientToken string `position:"Query" name:"ClientToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Description string `position:"Query" name:"Description"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + LineOperator string `position:"Query" name:"LineOperator"` + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` + Name string `position:"Query" name:"Name"` + UserCidr string `position:"Query" name:"UserCidr"` +} + +// ModifyPhysicalConnectionAttributeResponse is the response struct for api ModifyPhysicalConnectionAttribute +type ModifyPhysicalConnectionAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyPhysicalConnectionAttributeRequest creates a request to invoke ModifyPhysicalConnectionAttribute API +func CreateModifyPhysicalConnectionAttributeRequest() (request *ModifyPhysicalConnectionAttributeRequest) { + request = &ModifyPhysicalConnectionAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyPhysicalConnectionAttribute", "ecs", "openAPI") + return +} + +// CreateModifyPhysicalConnectionAttributeResponse creates a response to parse from ModifyPhysicalConnectionAttribute response +func CreateModifyPhysicalConnectionAttributeResponse() (response *ModifyPhysicalConnectionAttributeResponse) { + response = &ModifyPhysicalConnectionAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_prepay_instance_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_prepay_instance_spec.go new file mode 100644 index 0000000..4bdf823 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_prepay_instance_spec.go @@ -0,0 +1,114 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyPrepayInstanceSpec invokes the ecs.ModifyPrepayInstanceSpec API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyprepayinstancespec.html +func (client *Client) ModifyPrepayInstanceSpec(request *ModifyPrepayInstanceSpecRequest) (response *ModifyPrepayInstanceSpecResponse, err error) { + response = CreateModifyPrepayInstanceSpecResponse() + err = client.DoAction(request, response) + return +} + +// ModifyPrepayInstanceSpecWithChan invokes the ecs.ModifyPrepayInstanceSpec API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyprepayinstancespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyPrepayInstanceSpecWithChan(request *ModifyPrepayInstanceSpecRequest) (<-chan *ModifyPrepayInstanceSpecResponse, <-chan error) { + responseChan := make(chan *ModifyPrepayInstanceSpecResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyPrepayInstanceSpec(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyPrepayInstanceSpecWithCallback invokes the ecs.ModifyPrepayInstanceSpec API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyprepayinstancespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyPrepayInstanceSpecWithCallback(request *ModifyPrepayInstanceSpecRequest, callback func(response *ModifyPrepayInstanceSpecResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyPrepayInstanceSpecResponse + var err error + defer close(result) + response, err = client.ModifyPrepayInstanceSpec(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyPrepayInstanceSpecRequest is the request struct for api ModifyPrepayInstanceSpec +type ModifyPrepayInstanceSpecRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + OperatorType string `position:"Query" name:"OperatorType"` + SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` + InstanceId string `position:"Query" name:"InstanceId"` + MigrateAcrossZone requests.Boolean `position:"Query" name:"MigrateAcrossZone"` + InstanceType string `position:"Query" name:"InstanceType"` +} + +// ModifyPrepayInstanceSpecResponse is the response struct for api ModifyPrepayInstanceSpec +type ModifyPrepayInstanceSpecResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + OrderId string `json:"OrderId" xml:"OrderId"` +} + +// CreateModifyPrepayInstanceSpecRequest creates a request to invoke ModifyPrepayInstanceSpec API +func CreateModifyPrepayInstanceSpecRequest() (request *ModifyPrepayInstanceSpecRequest) { + request = &ModifyPrepayInstanceSpecRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyPrepayInstanceSpec", "ecs", "openAPI") + return +} + +// CreateModifyPrepayInstanceSpecResponse creates a response to parse from ModifyPrepayInstanceSpec response +func CreateModifyPrepayInstanceSpecResponse() (response *ModifyPrepayInstanceSpecResponse) { + response = &ModifyPrepayInstanceSpecResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_attribute.go new file mode 100644 index 0000000..db09fb5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_attribute.go @@ -0,0 +1,114 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyRouterInterfaceAttribute invokes the ecs.ModifyRouterInterfaceAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyrouterinterfaceattribute.html +func (client *Client) ModifyRouterInterfaceAttribute(request *ModifyRouterInterfaceAttributeRequest) (response *ModifyRouterInterfaceAttributeResponse, err error) { + response = CreateModifyRouterInterfaceAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyRouterInterfaceAttributeWithChan invokes the ecs.ModifyRouterInterfaceAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyrouterinterfaceattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyRouterInterfaceAttributeWithChan(request *ModifyRouterInterfaceAttributeRequest) (<-chan *ModifyRouterInterfaceAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyRouterInterfaceAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyRouterInterfaceAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyRouterInterfaceAttributeWithCallback invokes the ecs.ModifyRouterInterfaceAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyrouterinterfaceattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyRouterInterfaceAttributeWithCallback(request *ModifyRouterInterfaceAttributeRequest, callback func(response *ModifyRouterInterfaceAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyRouterInterfaceAttributeResponse + var err error + defer close(result) + response, err = client.ModifyRouterInterfaceAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyRouterInterfaceAttributeRequest is the request struct for api ModifyRouterInterfaceAttribute +type ModifyRouterInterfaceAttributeRequest struct { + *requests.RpcRequest + OppositeRouterId string `position:"Query" name:"OppositeRouterId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Description string `position:"Query" name:"Description"` + HealthCheckTargetIp string `position:"Query" name:"HealthCheckTargetIp"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + RouterInterfaceId string `position:"Query" name:"RouterInterfaceId"` + OppositeInterfaceOwnerId requests.Integer `position:"Query" name:"OppositeInterfaceOwnerId"` + HealthCheckSourceIp string `position:"Query" name:"HealthCheckSourceIp"` + Name string `position:"Query" name:"Name"` + OppositeRouterType string `position:"Query" name:"OppositeRouterType"` + OppositeInterfaceId string `position:"Query" name:"OppositeInterfaceId"` +} + +// ModifyRouterInterfaceAttributeResponse is the response struct for api ModifyRouterInterfaceAttribute +type ModifyRouterInterfaceAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyRouterInterfaceAttributeRequest creates a request to invoke ModifyRouterInterfaceAttribute API +func CreateModifyRouterInterfaceAttributeRequest() (request *ModifyRouterInterfaceAttributeRequest) { + request = &ModifyRouterInterfaceAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyRouterInterfaceAttribute", "ecs", "openAPI") + return +} + +// CreateModifyRouterInterfaceAttributeResponse creates a response to parse from ModifyRouterInterfaceAttribute response +func CreateModifyRouterInterfaceAttributeResponse() (response *ModifyRouterInterfaceAttributeResponse) { + response = &ModifyRouterInterfaceAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_spec.go new file mode 100644 index 0000000..044e5e9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_spec.go @@ -0,0 +1,111 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyRouterInterfaceSpec invokes the ecs.ModifyRouterInterfaceSpec API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyrouterinterfacespec.html +func (client *Client) ModifyRouterInterfaceSpec(request *ModifyRouterInterfaceSpecRequest) (response *ModifyRouterInterfaceSpecResponse, err error) { + response = CreateModifyRouterInterfaceSpecResponse() + err = client.DoAction(request, response) + return +} + +// ModifyRouterInterfaceSpecWithChan invokes the ecs.ModifyRouterInterfaceSpec API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyrouterinterfacespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyRouterInterfaceSpecWithChan(request *ModifyRouterInterfaceSpecRequest) (<-chan *ModifyRouterInterfaceSpecResponse, <-chan error) { + responseChan := make(chan *ModifyRouterInterfaceSpecResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyRouterInterfaceSpec(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyRouterInterfaceSpecWithCallback invokes the ecs.ModifyRouterInterfaceSpec API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyrouterinterfacespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyRouterInterfaceSpecWithCallback(request *ModifyRouterInterfaceSpecRequest, callback func(response *ModifyRouterInterfaceSpecResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyRouterInterfaceSpecResponse + var err error + defer close(result) + response, err = client.ModifyRouterInterfaceSpec(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyRouterInterfaceSpecRequest is the request struct for api ModifyRouterInterfaceSpec +type ModifyRouterInterfaceSpecRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + UserCidr string `position:"Query" name:"UserCidr"` + RouterInterfaceId string `position:"Query" name:"RouterInterfaceId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Spec string `position:"Query" name:"Spec"` +} + +// ModifyRouterInterfaceSpecResponse is the response struct for api ModifyRouterInterfaceSpec +type ModifyRouterInterfaceSpecResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Spec string `json:"Spec" xml:"Spec"` +} + +// CreateModifyRouterInterfaceSpecRequest creates a request to invoke ModifyRouterInterfaceSpec API +func CreateModifyRouterInterfaceSpecRequest() (request *ModifyRouterInterfaceSpecRequest) { + request = &ModifyRouterInterfaceSpecRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyRouterInterfaceSpec", "ecs", "openAPI") + return +} + +// CreateModifyRouterInterfaceSpecResponse creates a response to parse from ModifyRouterInterfaceSpec response +func CreateModifyRouterInterfaceSpecResponse() (response *ModifyRouterInterfaceSpecResponse) { + response = &ModifyRouterInterfaceSpecResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_attribute.go new file mode 100644 index 0000000..4f01612 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_attribute.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifySecurityGroupAttribute invokes the ecs.ModifySecurityGroupAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/modifysecuritygroupattribute.html +func (client *Client) ModifySecurityGroupAttribute(request *ModifySecurityGroupAttributeRequest) (response *ModifySecurityGroupAttributeResponse, err error) { + response = CreateModifySecurityGroupAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifySecurityGroupAttributeWithChan invokes the ecs.ModifySecurityGroupAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifysecuritygroupattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySecurityGroupAttributeWithChan(request *ModifySecurityGroupAttributeRequest) (<-chan *ModifySecurityGroupAttributeResponse, <-chan error) { + responseChan := make(chan *ModifySecurityGroupAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifySecurityGroupAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifySecurityGroupAttributeWithCallback invokes the ecs.ModifySecurityGroupAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifysecuritygroupattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySecurityGroupAttributeWithCallback(request *ModifySecurityGroupAttributeRequest, callback func(response *ModifySecurityGroupAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifySecurityGroupAttributeResponse + var err error + defer close(result) + response, err = client.ModifySecurityGroupAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifySecurityGroupAttributeRequest is the request struct for api ModifySecurityGroupAttribute +type ModifySecurityGroupAttributeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Description string `position:"Query" name:"Description"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityGroupName string `position:"Query" name:"SecurityGroupName"` +} + +// ModifySecurityGroupAttributeResponse is the response struct for api ModifySecurityGroupAttribute +type ModifySecurityGroupAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifySecurityGroupAttributeRequest creates a request to invoke ModifySecurityGroupAttribute API +func CreateModifySecurityGroupAttributeRequest() (request *ModifySecurityGroupAttributeRequest) { + request = &ModifySecurityGroupAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifySecurityGroupAttribute", "ecs", "openAPI") + return +} + +// CreateModifySecurityGroupAttributeResponse creates a response to parse from ModifySecurityGroupAttribute response +func CreateModifySecurityGroupAttributeResponse() (response *ModifySecurityGroupAttributeResponse) { + response = &ModifySecurityGroupAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_egress_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_egress_rule.go new file mode 100644 index 0000000..9fa488b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_egress_rule.go @@ -0,0 +1,120 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifySecurityGroupEgressRule invokes the ecs.ModifySecurityGroupEgressRule API synchronously +// api document: https://help.aliyun.com/api/ecs/modifysecuritygroupegressrule.html +func (client *Client) ModifySecurityGroupEgressRule(request *ModifySecurityGroupEgressRuleRequest) (response *ModifySecurityGroupEgressRuleResponse, err error) { + response = CreateModifySecurityGroupEgressRuleResponse() + err = client.DoAction(request, response) + return +} + +// ModifySecurityGroupEgressRuleWithChan invokes the ecs.ModifySecurityGroupEgressRule API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifysecuritygroupegressrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySecurityGroupEgressRuleWithChan(request *ModifySecurityGroupEgressRuleRequest) (<-chan *ModifySecurityGroupEgressRuleResponse, <-chan error) { + responseChan := make(chan *ModifySecurityGroupEgressRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifySecurityGroupEgressRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifySecurityGroupEgressRuleWithCallback invokes the ecs.ModifySecurityGroupEgressRule API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifysecuritygroupegressrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySecurityGroupEgressRuleWithCallback(request *ModifySecurityGroupEgressRuleRequest, callback func(response *ModifySecurityGroupEgressRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifySecurityGroupEgressRuleResponse + var err error + defer close(result) + response, err = client.ModifySecurityGroupEgressRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifySecurityGroupEgressRuleRequest is the request struct for api ModifySecurityGroupEgressRule +type ModifySecurityGroupEgressRuleRequest struct { + *requests.RpcRequest + NicType string `position:"Query" name:"NicType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SourcePortRange string `position:"Query" name:"SourcePortRange"` + ClientToken string `position:"Query" name:"ClientToken"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Description string `position:"Query" name:"Description"` + Policy string `position:"Query" name:"Policy"` + PortRange string `position:"Query" name:"PortRange"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + IpProtocol string `position:"Query" name:"IpProtocol"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SourceCidrIp string `position:"Query" name:"SourceCidrIp"` + DestGroupId string `position:"Query" name:"DestGroupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + DestGroupOwnerAccount string `position:"Query" name:"DestGroupOwnerAccount"` + Priority string `position:"Query" name:"Priority"` + DestCidrIp string `position:"Query" name:"DestCidrIp"` + DestGroupOwnerId requests.Integer `position:"Query" name:"DestGroupOwnerId"` +} + +// ModifySecurityGroupEgressRuleResponse is the response struct for api ModifySecurityGroupEgressRule +type ModifySecurityGroupEgressRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifySecurityGroupEgressRuleRequest creates a request to invoke ModifySecurityGroupEgressRule API +func CreateModifySecurityGroupEgressRuleRequest() (request *ModifySecurityGroupEgressRuleRequest) { + request = &ModifySecurityGroupEgressRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifySecurityGroupEgressRule", "ecs", "openAPI") + return +} + +// CreateModifySecurityGroupEgressRuleResponse creates a response to parse from ModifySecurityGroupEgressRule response +func CreateModifySecurityGroupEgressRuleResponse() (response *ModifySecurityGroupEgressRuleResponse) { + response = &ModifySecurityGroupEgressRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_policy.go new file mode 100644 index 0000000..e9eeaed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_policy.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifySecurityGroupPolicy invokes the ecs.ModifySecurityGroupPolicy API synchronously +// api document: https://help.aliyun.com/api/ecs/modifysecuritygrouppolicy.html +func (client *Client) ModifySecurityGroupPolicy(request *ModifySecurityGroupPolicyRequest) (response *ModifySecurityGroupPolicyResponse, err error) { + response = CreateModifySecurityGroupPolicyResponse() + err = client.DoAction(request, response) + return +} + +// ModifySecurityGroupPolicyWithChan invokes the ecs.ModifySecurityGroupPolicy API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifysecuritygrouppolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySecurityGroupPolicyWithChan(request *ModifySecurityGroupPolicyRequest) (<-chan *ModifySecurityGroupPolicyResponse, <-chan error) { + responseChan := make(chan *ModifySecurityGroupPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifySecurityGroupPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifySecurityGroupPolicyWithCallback invokes the ecs.ModifySecurityGroupPolicy API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifysecuritygrouppolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySecurityGroupPolicyWithCallback(request *ModifySecurityGroupPolicyRequest, callback func(response *ModifySecurityGroupPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifySecurityGroupPolicyResponse + var err error + defer close(result) + response, err = client.ModifySecurityGroupPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifySecurityGroupPolicyRequest is the request struct for api ModifySecurityGroupPolicy +type ModifySecurityGroupPolicyRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InnerAccessPolicy string `position:"Query" name:"InnerAccessPolicy"` +} + +// ModifySecurityGroupPolicyResponse is the response struct for api ModifySecurityGroupPolicy +type ModifySecurityGroupPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifySecurityGroupPolicyRequest creates a request to invoke ModifySecurityGroupPolicy API +func CreateModifySecurityGroupPolicyRequest() (request *ModifySecurityGroupPolicyRequest) { + request = &ModifySecurityGroupPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifySecurityGroupPolicy", "ecs", "openAPI") + return +} + +// CreateModifySecurityGroupPolicyResponse creates a response to parse from ModifySecurityGroupPolicy response +func CreateModifySecurityGroupPolicyResponse() (response *ModifySecurityGroupPolicyResponse) { + response = &ModifySecurityGroupPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_rule.go new file mode 100644 index 0000000..7e8c171 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_rule.go @@ -0,0 +1,120 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifySecurityGroupRule invokes the ecs.ModifySecurityGroupRule API synchronously +// api document: https://help.aliyun.com/api/ecs/modifysecuritygrouprule.html +func (client *Client) ModifySecurityGroupRule(request *ModifySecurityGroupRuleRequest) (response *ModifySecurityGroupRuleResponse, err error) { + response = CreateModifySecurityGroupRuleResponse() + err = client.DoAction(request, response) + return +} + +// ModifySecurityGroupRuleWithChan invokes the ecs.ModifySecurityGroupRule API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifysecuritygrouprule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySecurityGroupRuleWithChan(request *ModifySecurityGroupRuleRequest) (<-chan *ModifySecurityGroupRuleResponse, <-chan error) { + responseChan := make(chan *ModifySecurityGroupRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifySecurityGroupRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifySecurityGroupRuleWithCallback invokes the ecs.ModifySecurityGroupRule API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifysecuritygrouprule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySecurityGroupRuleWithCallback(request *ModifySecurityGroupRuleRequest, callback func(response *ModifySecurityGroupRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifySecurityGroupRuleResponse + var err error + defer close(result) + response, err = client.ModifySecurityGroupRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifySecurityGroupRuleRequest is the request struct for api ModifySecurityGroupRule +type ModifySecurityGroupRuleRequest struct { + *requests.RpcRequest + NicType string `position:"Query" name:"NicType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SourcePortRange string `position:"Query" name:"SourcePortRange"` + ClientToken string `position:"Query" name:"ClientToken"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Description string `position:"Query" name:"Description"` + SourceGroupOwnerId requests.Integer `position:"Query" name:"SourceGroupOwnerId"` + SourceGroupOwnerAccount string `position:"Query" name:"SourceGroupOwnerAccount"` + Policy string `position:"Query" name:"Policy"` + PortRange string `position:"Query" name:"PortRange"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + IpProtocol string `position:"Query" name:"IpProtocol"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SourceCidrIp string `position:"Query" name:"SourceCidrIp"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Priority string `position:"Query" name:"Priority"` + DestCidrIp string `position:"Query" name:"DestCidrIp"` + SourceGroupId string `position:"Query" name:"SourceGroupId"` +} + +// ModifySecurityGroupRuleResponse is the response struct for api ModifySecurityGroupRule +type ModifySecurityGroupRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifySecurityGroupRuleRequest creates a request to invoke ModifySecurityGroupRule API +func CreateModifySecurityGroupRuleRequest() (request *ModifySecurityGroupRuleRequest) { + request = &ModifySecurityGroupRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifySecurityGroupRule", "ecs", "openAPI") + return +} + +// CreateModifySecurityGroupRuleResponse creates a response to parse from ModifySecurityGroupRule response +func CreateModifySecurityGroupRuleResponse() (response *ModifySecurityGroupRuleResponse) { + response = &ModifySecurityGroupRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_attribute.go new file mode 100644 index 0000000..3b17963 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_attribute.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifySnapshotAttribute invokes the ecs.ModifySnapshotAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/modifysnapshotattribute.html +func (client *Client) ModifySnapshotAttribute(request *ModifySnapshotAttributeRequest) (response *ModifySnapshotAttributeResponse, err error) { + response = CreateModifySnapshotAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifySnapshotAttributeWithChan invokes the ecs.ModifySnapshotAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifysnapshotattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySnapshotAttributeWithChan(request *ModifySnapshotAttributeRequest) (<-chan *ModifySnapshotAttributeResponse, <-chan error) { + responseChan := make(chan *ModifySnapshotAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifySnapshotAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifySnapshotAttributeWithCallback invokes the ecs.ModifySnapshotAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifysnapshotattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySnapshotAttributeWithCallback(request *ModifySnapshotAttributeRequest, callback func(response *ModifySnapshotAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifySnapshotAttributeResponse + var err error + defer close(result) + response, err = client.ModifySnapshotAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifySnapshotAttributeRequest is the request struct for api ModifySnapshotAttribute +type ModifySnapshotAttributeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SnapshotId string `position:"Query" name:"SnapshotId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Description string `position:"Query" name:"Description"` + SnapshotName string `position:"Query" name:"SnapshotName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifySnapshotAttributeResponse is the response struct for api ModifySnapshotAttribute +type ModifySnapshotAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifySnapshotAttributeRequest creates a request to invoke ModifySnapshotAttribute API +func CreateModifySnapshotAttributeRequest() (request *ModifySnapshotAttributeRequest) { + request = &ModifySnapshotAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifySnapshotAttribute", "ecs", "openAPI") + return +} + +// CreateModifySnapshotAttributeResponse creates a response to parse from ModifySnapshotAttribute response +func CreateModifySnapshotAttributeResponse() (response *ModifySnapshotAttributeResponse) { + response = &ModifySnapshotAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_user_business_behavior.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_user_business_behavior.go new file mode 100644 index 0000000..c30d0ac --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_user_business_behavior.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyUserBusinessBehavior invokes the ecs.ModifyUserBusinessBehavior API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyuserbusinessbehavior.html +func (client *Client) ModifyUserBusinessBehavior(request *ModifyUserBusinessBehaviorRequest) (response *ModifyUserBusinessBehaviorResponse, err error) { + response = CreateModifyUserBusinessBehaviorResponse() + err = client.DoAction(request, response) + return +} + +// ModifyUserBusinessBehaviorWithChan invokes the ecs.ModifyUserBusinessBehavior API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyuserbusinessbehavior.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyUserBusinessBehaviorWithChan(request *ModifyUserBusinessBehaviorRequest) (<-chan *ModifyUserBusinessBehaviorResponse, <-chan error) { + responseChan := make(chan *ModifyUserBusinessBehaviorResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyUserBusinessBehavior(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyUserBusinessBehaviorWithCallback invokes the ecs.ModifyUserBusinessBehavior API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyuserbusinessbehavior.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyUserBusinessBehaviorWithCallback(request *ModifyUserBusinessBehaviorRequest, callback func(response *ModifyUserBusinessBehaviorResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyUserBusinessBehaviorResponse + var err error + defer close(result) + response, err = client.ModifyUserBusinessBehavior(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyUserBusinessBehaviorRequest is the request struct for api ModifyUserBusinessBehavior +type ModifyUserBusinessBehaviorRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + StatusValue string `position:"Query" name:"statusValue"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StatusKey string `position:"Query" name:"statusKey"` +} + +// ModifyUserBusinessBehaviorResponse is the response struct for api ModifyUserBusinessBehavior +type ModifyUserBusinessBehaviorResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyUserBusinessBehaviorRequest creates a request to invoke ModifyUserBusinessBehavior API +func CreateModifyUserBusinessBehaviorRequest() (request *ModifyUserBusinessBehaviorRequest) { + request = &ModifyUserBusinessBehaviorRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyUserBusinessBehavior", "ecs", "openAPI") + return +} + +// CreateModifyUserBusinessBehaviorResponse creates a response to parse from ModifyUserBusinessBehavior response +func CreateModifyUserBusinessBehaviorResponse() (response *ModifyUserBusinessBehaviorResponse) { + response = &ModifyUserBusinessBehaviorResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_router_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_router_attribute.go new file mode 100644 index 0000000..5bcd9a8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_router_attribute.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyVRouterAttribute invokes the ecs.ModifyVRouterAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyvrouterattribute.html +func (client *Client) ModifyVRouterAttribute(request *ModifyVRouterAttributeRequest) (response *ModifyVRouterAttributeResponse, err error) { + response = CreateModifyVRouterAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyVRouterAttributeWithChan invokes the ecs.ModifyVRouterAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyvrouterattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVRouterAttributeWithChan(request *ModifyVRouterAttributeRequest) (<-chan *ModifyVRouterAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyVRouterAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyVRouterAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyVRouterAttributeWithCallback invokes the ecs.ModifyVRouterAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyvrouterattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVRouterAttributeWithCallback(request *ModifyVRouterAttributeRequest, callback func(response *ModifyVRouterAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyVRouterAttributeResponse + var err error + defer close(result) + response, err = client.ModifyVRouterAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyVRouterAttributeRequest is the request struct for api ModifyVRouterAttribute +type ModifyVRouterAttributeRequest struct { + *requests.RpcRequest + VRouterName string `position:"Query" name:"VRouterName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VRouterId string `position:"Query" name:"VRouterId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Description string `position:"Query" name:"Description"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyVRouterAttributeResponse is the response struct for api ModifyVRouterAttribute +type ModifyVRouterAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyVRouterAttributeRequest creates a request to invoke ModifyVRouterAttribute API +func CreateModifyVRouterAttributeRequest() (request *ModifyVRouterAttributeRequest) { + request = &ModifyVRouterAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyVRouterAttribute", "ecs", "openAPI") + return +} + +// CreateModifyVRouterAttributeResponse creates a response to parse from ModifyVRouterAttribute response +func CreateModifyVRouterAttributeResponse() (response *ModifyVRouterAttributeResponse) { + response = &ModifyVRouterAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_switch_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_switch_attribute.go new file mode 100644 index 0000000..c7cd18a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_switch_attribute.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyVSwitchAttribute invokes the ecs.ModifyVSwitchAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyvswitchattribute.html +func (client *Client) ModifyVSwitchAttribute(request *ModifyVSwitchAttributeRequest) (response *ModifyVSwitchAttributeResponse, err error) { + response = CreateModifyVSwitchAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyVSwitchAttributeWithChan invokes the ecs.ModifyVSwitchAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyvswitchattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVSwitchAttributeWithChan(request *ModifyVSwitchAttributeRequest) (<-chan *ModifyVSwitchAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyVSwitchAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyVSwitchAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyVSwitchAttributeWithCallback invokes the ecs.ModifyVSwitchAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyvswitchattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVSwitchAttributeWithCallback(request *ModifyVSwitchAttributeRequest, callback func(response *ModifyVSwitchAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyVSwitchAttributeResponse + var err error + defer close(result) + response, err = client.ModifyVSwitchAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyVSwitchAttributeRequest is the request struct for api ModifyVSwitchAttribute +type ModifyVSwitchAttributeRequest struct { + *requests.RpcRequest + VSwitchId string `position:"Query" name:"VSwitchId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + VSwitchName string `position:"Query" name:"VSwitchName"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Description string `position:"Query" name:"Description"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyVSwitchAttributeResponse is the response struct for api ModifyVSwitchAttribute +type ModifyVSwitchAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyVSwitchAttributeRequest creates a request to invoke ModifyVSwitchAttribute API +func CreateModifyVSwitchAttributeRequest() (request *ModifyVSwitchAttributeRequest) { + request = &ModifyVSwitchAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyVSwitchAttribute", "ecs", "openAPI") + return +} + +// CreateModifyVSwitchAttributeResponse creates a response to parse from ModifyVSwitchAttribute response +func CreateModifyVSwitchAttributeResponse() (response *ModifyVSwitchAttributeResponse) { + response = &ModifyVSwitchAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_virtual_border_router_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_virtual_border_router_attribute.go new file mode 100644 index 0000000..96fb049 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_virtual_border_router_attribute.go @@ -0,0 +1,116 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyVirtualBorderRouterAttribute invokes the ecs.ModifyVirtualBorderRouterAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyvirtualborderrouterattribute.html +func (client *Client) ModifyVirtualBorderRouterAttribute(request *ModifyVirtualBorderRouterAttributeRequest) (response *ModifyVirtualBorderRouterAttributeResponse, err error) { + response = CreateModifyVirtualBorderRouterAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyVirtualBorderRouterAttributeWithChan invokes the ecs.ModifyVirtualBorderRouterAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyvirtualborderrouterattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVirtualBorderRouterAttributeWithChan(request *ModifyVirtualBorderRouterAttributeRequest) (<-chan *ModifyVirtualBorderRouterAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyVirtualBorderRouterAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyVirtualBorderRouterAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyVirtualBorderRouterAttributeWithCallback invokes the ecs.ModifyVirtualBorderRouterAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyvirtualborderrouterattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVirtualBorderRouterAttributeWithCallback(request *ModifyVirtualBorderRouterAttributeRequest, callback func(response *ModifyVirtualBorderRouterAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyVirtualBorderRouterAttributeResponse + var err error + defer close(result) + response, err = client.ModifyVirtualBorderRouterAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyVirtualBorderRouterAttributeRequest is the request struct for api ModifyVirtualBorderRouterAttribute +type ModifyVirtualBorderRouterAttributeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CircuitCode string `position:"Query" name:"CircuitCode"` + VlanId requests.Integer `position:"Query" name:"VlanId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Description string `position:"Query" name:"Description"` + VbrId string `position:"Query" name:"VbrId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PeerGatewayIp string `position:"Query" name:"PeerGatewayIp"` + PeeringSubnetMask string `position:"Query" name:"PeeringSubnetMask"` + Name string `position:"Query" name:"Name"` + LocalGatewayIp string `position:"Query" name:"LocalGatewayIp"` + UserCidr string `position:"Query" name:"UserCidr"` +} + +// ModifyVirtualBorderRouterAttributeResponse is the response struct for api ModifyVirtualBorderRouterAttribute +type ModifyVirtualBorderRouterAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyVirtualBorderRouterAttributeRequest creates a request to invoke ModifyVirtualBorderRouterAttribute API +func CreateModifyVirtualBorderRouterAttributeRequest() (request *ModifyVirtualBorderRouterAttributeRequest) { + request = &ModifyVirtualBorderRouterAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyVirtualBorderRouterAttribute", "ecs", "openAPI") + return +} + +// CreateModifyVirtualBorderRouterAttributeResponse creates a response to parse from ModifyVirtualBorderRouterAttribute response +func CreateModifyVirtualBorderRouterAttributeResponse() (response *ModifyVirtualBorderRouterAttributeResponse) { + response = &ModifyVirtualBorderRouterAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_vpc_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_vpc_attribute.go new file mode 100644 index 0000000..29fe97c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_vpc_attribute.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyVpcAttribute invokes the ecs.ModifyVpcAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyvpcattribute.html +func (client *Client) ModifyVpcAttribute(request *ModifyVpcAttributeRequest) (response *ModifyVpcAttributeResponse, err error) { + response = CreateModifyVpcAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyVpcAttributeWithChan invokes the ecs.ModifyVpcAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyvpcattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVpcAttributeWithChan(request *ModifyVpcAttributeRequest) (<-chan *ModifyVpcAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyVpcAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyVpcAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyVpcAttributeWithCallback invokes the ecs.ModifyVpcAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyvpcattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVpcAttributeWithCallback(request *ModifyVpcAttributeRequest, callback func(response *ModifyVpcAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyVpcAttributeResponse + var err error + defer close(result) + response, err = client.ModifyVpcAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyVpcAttributeRequest is the request struct for api ModifyVpcAttribute +type ModifyVpcAttributeRequest struct { + *requests.RpcRequest + VpcName string `position:"Query" name:"VpcName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + VpcId string `position:"Query" name:"VpcId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Description string `position:"Query" name:"Description"` + UserCidr string `position:"Query" name:"UserCidr"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyVpcAttributeResponse is the response struct for api ModifyVpcAttribute +type ModifyVpcAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyVpcAttributeRequest creates a request to invoke ModifyVpcAttribute API +func CreateModifyVpcAttributeRequest() (request *ModifyVpcAttributeRequest) { + request = &ModifyVpcAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyVpcAttribute", "ecs", "openAPI") + return +} + +// CreateModifyVpcAttributeResponse creates a response to parse from ModifyVpcAttribute response +func CreateModifyVpcAttributeResponse() (response *ModifyVpcAttributeResponse) { + response = &ModifyVpcAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_activate_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_activate_instances.go new file mode 100644 index 0000000..155dcde --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_activate_instances.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReActivateInstances invokes the ecs.ReActivateInstances API synchronously +// api document: https://help.aliyun.com/api/ecs/reactivateinstances.html +func (client *Client) ReActivateInstances(request *ReActivateInstancesRequest) (response *ReActivateInstancesResponse, err error) { + response = CreateReActivateInstancesResponse() + err = client.DoAction(request, response) + return +} + +// ReActivateInstancesWithChan invokes the ecs.ReActivateInstances API asynchronously +// api document: https://help.aliyun.com/api/ecs/reactivateinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReActivateInstancesWithChan(request *ReActivateInstancesRequest) (<-chan *ReActivateInstancesResponse, <-chan error) { + responseChan := make(chan *ReActivateInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReActivateInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReActivateInstancesWithCallback invokes the ecs.ReActivateInstances API asynchronously +// api document: https://help.aliyun.com/api/ecs/reactivateinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReActivateInstancesWithCallback(request *ReActivateInstancesRequest, callback func(response *ReActivateInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReActivateInstancesResponse + var err error + defer close(result) + response, err = client.ReActivateInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReActivateInstancesRequest is the request struct for api ReActivateInstances +type ReActivateInstancesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ReActivateInstancesResponse is the response struct for api ReActivateInstances +type ReActivateInstancesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateReActivateInstancesRequest creates a request to invoke ReActivateInstances API +func CreateReActivateInstancesRequest() (request *ReActivateInstancesRequest) { + request = &ReActivateInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ReActivateInstances", "ecs", "openAPI") + return +} + +// CreateReActivateInstancesResponse creates a response to parse from ReActivateInstances response +func CreateReActivateInstancesResponse() (response *ReActivateInstancesResponse) { + response = &ReActivateInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_init_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_init_disk.go new file mode 100644 index 0000000..69f3256 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_init_disk.go @@ -0,0 +1,111 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReInitDisk invokes the ecs.ReInitDisk API synchronously +// api document: https://help.aliyun.com/api/ecs/reinitdisk.html +func (client *Client) ReInitDisk(request *ReInitDiskRequest) (response *ReInitDiskResponse, err error) { + response = CreateReInitDiskResponse() + err = client.DoAction(request, response) + return +} + +// ReInitDiskWithChan invokes the ecs.ReInitDisk API asynchronously +// api document: https://help.aliyun.com/api/ecs/reinitdisk.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReInitDiskWithChan(request *ReInitDiskRequest) (<-chan *ReInitDiskResponse, <-chan error) { + responseChan := make(chan *ReInitDiskResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReInitDisk(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReInitDiskWithCallback invokes the ecs.ReInitDisk API asynchronously +// api document: https://help.aliyun.com/api/ecs/reinitdisk.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReInitDiskWithCallback(request *ReInitDiskRequest, callback func(response *ReInitDiskResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReInitDiskResponse + var err error + defer close(result) + response, err = client.ReInitDisk(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReInitDiskRequest is the request struct for api ReInitDisk +type ReInitDiskRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Password string `position:"Query" name:"Password"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + AutoStartInstance requests.Boolean `position:"Query" name:"AutoStartInstance"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DiskId string `position:"Query" name:"DiskId"` + SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` + KeyPairName string `position:"Query" name:"KeyPairName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ReInitDiskResponse is the response struct for api ReInitDisk +type ReInitDiskResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateReInitDiskRequest creates a request to invoke ReInitDisk API +func CreateReInitDiskRequest() (request *ReInitDiskRequest) { + request = &ReInitDiskRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ReInitDisk", "ecs", "openAPI") + return +} + +// CreateReInitDiskResponse creates a response to parse from ReInitDisk response +func CreateReInitDiskResponse() (response *ReInitDiskResponse) { + response = &ReInitDiskResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reboot_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reboot_instance.go new file mode 100644 index 0000000..bbb42a7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reboot_instance.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RebootInstance invokes the ecs.RebootInstance API synchronously +// api document: https://help.aliyun.com/api/ecs/rebootinstance.html +func (client *Client) RebootInstance(request *RebootInstanceRequest) (response *RebootInstanceResponse, err error) { + response = CreateRebootInstanceResponse() + err = client.DoAction(request, response) + return +} + +// RebootInstanceWithChan invokes the ecs.RebootInstance API asynchronously +// api document: https://help.aliyun.com/api/ecs/rebootinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RebootInstanceWithChan(request *RebootInstanceRequest) (<-chan *RebootInstanceResponse, <-chan error) { + responseChan := make(chan *RebootInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RebootInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RebootInstanceWithCallback invokes the ecs.RebootInstance API asynchronously +// api document: https://help.aliyun.com/api/ecs/rebootinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RebootInstanceWithCallback(request *RebootInstanceRequest, callback func(response *RebootInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RebootInstanceResponse + var err error + defer close(result) + response, err = client.RebootInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RebootInstanceRequest is the request struct for api RebootInstance +type RebootInstanceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ForceStop requests.Boolean `position:"Query" name:"ForceStop"` +} + +// RebootInstanceResponse is the response struct for api RebootInstance +type RebootInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRebootInstanceRequest creates a request to invoke RebootInstance API +func CreateRebootInstanceRequest() (request *RebootInstanceRequest) { + request = &RebootInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "RebootInstance", "ecs", "openAPI") + return +} + +// CreateRebootInstanceResponse creates a response to parse from RebootInstance response +func CreateRebootInstanceResponse() (response *RebootInstanceResponse) { + response = &RebootInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/recover_virtual_border_router.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/recover_virtual_border_router.go new file mode 100644 index 0000000..dae7e69 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/recover_virtual_border_router.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RecoverVirtualBorderRouter invokes the ecs.RecoverVirtualBorderRouter API synchronously +// api document: https://help.aliyun.com/api/ecs/recovervirtualborderrouter.html +func (client *Client) RecoverVirtualBorderRouter(request *RecoverVirtualBorderRouterRequest) (response *RecoverVirtualBorderRouterResponse, err error) { + response = CreateRecoverVirtualBorderRouterResponse() + err = client.DoAction(request, response) + return +} + +// RecoverVirtualBorderRouterWithChan invokes the ecs.RecoverVirtualBorderRouter API asynchronously +// api document: https://help.aliyun.com/api/ecs/recovervirtualborderrouter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RecoverVirtualBorderRouterWithChan(request *RecoverVirtualBorderRouterRequest) (<-chan *RecoverVirtualBorderRouterResponse, <-chan error) { + responseChan := make(chan *RecoverVirtualBorderRouterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RecoverVirtualBorderRouter(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RecoverVirtualBorderRouterWithCallback invokes the ecs.RecoverVirtualBorderRouter API asynchronously +// api document: https://help.aliyun.com/api/ecs/recovervirtualborderrouter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RecoverVirtualBorderRouterWithCallback(request *RecoverVirtualBorderRouterRequest, callback func(response *RecoverVirtualBorderRouterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RecoverVirtualBorderRouterResponse + var err error + defer close(result) + response, err = client.RecoverVirtualBorderRouter(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RecoverVirtualBorderRouterRequest is the request struct for api RecoverVirtualBorderRouter +type RecoverVirtualBorderRouterRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + UserCidr string `position:"Query" name:"UserCidr"` + VbrId string `position:"Query" name:"VbrId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// RecoverVirtualBorderRouterResponse is the response struct for api RecoverVirtualBorderRouter +type RecoverVirtualBorderRouterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRecoverVirtualBorderRouterRequest creates a request to invoke RecoverVirtualBorderRouter API +func CreateRecoverVirtualBorderRouterRequest() (request *RecoverVirtualBorderRouterRequest) { + request = &RecoverVirtualBorderRouterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "RecoverVirtualBorderRouter", "ecs", "openAPI") + return +} + +// CreateRecoverVirtualBorderRouterResponse creates a response to parse from RecoverVirtualBorderRouter response +func CreateRecoverVirtualBorderRouterResponse() (response *RecoverVirtualBorderRouterResponse) { + response = &RecoverVirtualBorderRouterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_eip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_eip_address.go new file mode 100644 index 0000000..8d1217f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_eip_address.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReleaseEipAddress invokes the ecs.ReleaseEipAddress API synchronously +// api document: https://help.aliyun.com/api/ecs/releaseeipaddress.html +func (client *Client) ReleaseEipAddress(request *ReleaseEipAddressRequest) (response *ReleaseEipAddressResponse, err error) { + response = CreateReleaseEipAddressResponse() + err = client.DoAction(request, response) + return +} + +// ReleaseEipAddressWithChan invokes the ecs.ReleaseEipAddress API asynchronously +// api document: https://help.aliyun.com/api/ecs/releaseeipaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReleaseEipAddressWithChan(request *ReleaseEipAddressRequest) (<-chan *ReleaseEipAddressResponse, <-chan error) { + responseChan := make(chan *ReleaseEipAddressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReleaseEipAddress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReleaseEipAddressWithCallback invokes the ecs.ReleaseEipAddress API asynchronously +// api document: https://help.aliyun.com/api/ecs/releaseeipaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReleaseEipAddressWithCallback(request *ReleaseEipAddressRequest, callback func(response *ReleaseEipAddressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReleaseEipAddressResponse + var err error + defer close(result) + response, err = client.ReleaseEipAddress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReleaseEipAddressRequest is the request struct for api ReleaseEipAddress +type ReleaseEipAddressRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AllocationId string `position:"Query" name:"AllocationId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ReleaseEipAddressResponse is the response struct for api ReleaseEipAddress +type ReleaseEipAddressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateReleaseEipAddressRequest creates a request to invoke ReleaseEipAddress API +func CreateReleaseEipAddressRequest() (request *ReleaseEipAddressRequest) { + request = &ReleaseEipAddressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ReleaseEipAddress", "ecs", "openAPI") + return +} + +// CreateReleaseEipAddressResponse creates a response to parse from ReleaseEipAddress response +func CreateReleaseEipAddressResponse() (response *ReleaseEipAddressResponse) { + response = &ReleaseEipAddressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_public_ip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_public_ip_address.go new file mode 100644 index 0000000..819340e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_public_ip_address.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReleasePublicIpAddress invokes the ecs.ReleasePublicIpAddress API synchronously +// api document: https://help.aliyun.com/api/ecs/releasepublicipaddress.html +func (client *Client) ReleasePublicIpAddress(request *ReleasePublicIpAddressRequest) (response *ReleasePublicIpAddressResponse, err error) { + response = CreateReleasePublicIpAddressResponse() + err = client.DoAction(request, response) + return +} + +// ReleasePublicIpAddressWithChan invokes the ecs.ReleasePublicIpAddress API asynchronously +// api document: https://help.aliyun.com/api/ecs/releasepublicipaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReleasePublicIpAddressWithChan(request *ReleasePublicIpAddressRequest) (<-chan *ReleasePublicIpAddressResponse, <-chan error) { + responseChan := make(chan *ReleasePublicIpAddressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReleasePublicIpAddress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReleasePublicIpAddressWithCallback invokes the ecs.ReleasePublicIpAddress API asynchronously +// api document: https://help.aliyun.com/api/ecs/releasepublicipaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReleasePublicIpAddressWithCallback(request *ReleasePublicIpAddressRequest, callback func(response *ReleasePublicIpAddressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReleasePublicIpAddressResponse + var err error + defer close(result) + response, err = client.ReleasePublicIpAddress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReleasePublicIpAddressRequest is the request struct for api ReleasePublicIpAddress +type ReleasePublicIpAddressRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PublicIpAddress string `position:"Query" name:"PublicIpAddress"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ReleasePublicIpAddressResponse is the response struct for api ReleasePublicIpAddress +type ReleasePublicIpAddressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateReleasePublicIpAddressRequest creates a request to invoke ReleasePublicIpAddress API +func CreateReleasePublicIpAddressRequest() (request *ReleasePublicIpAddressRequest) { + request = &ReleasePublicIpAddressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ReleasePublicIpAddress", "ecs", "openAPI") + return +} + +// CreateReleasePublicIpAddressResponse creates a response to parse from ReleasePublicIpAddress response +func CreateReleasePublicIpAddressResponse() (response *ReleasePublicIpAddressResponse) { + response = &ReleasePublicIpAddressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_bandwidth_package_ips.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_bandwidth_package_ips.go new file mode 100644 index 0000000..4abb537 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_bandwidth_package_ips.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveBandwidthPackageIps invokes the ecs.RemoveBandwidthPackageIps API synchronously +// api document: https://help.aliyun.com/api/ecs/removebandwidthpackageips.html +func (client *Client) RemoveBandwidthPackageIps(request *RemoveBandwidthPackageIpsRequest) (response *RemoveBandwidthPackageIpsResponse, err error) { + response = CreateRemoveBandwidthPackageIpsResponse() + err = client.DoAction(request, response) + return +} + +// RemoveBandwidthPackageIpsWithChan invokes the ecs.RemoveBandwidthPackageIps API asynchronously +// api document: https://help.aliyun.com/api/ecs/removebandwidthpackageips.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveBandwidthPackageIpsWithChan(request *RemoveBandwidthPackageIpsRequest) (<-chan *RemoveBandwidthPackageIpsResponse, <-chan error) { + responseChan := make(chan *RemoveBandwidthPackageIpsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveBandwidthPackageIps(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveBandwidthPackageIpsWithCallback invokes the ecs.RemoveBandwidthPackageIps API asynchronously +// api document: https://help.aliyun.com/api/ecs/removebandwidthpackageips.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveBandwidthPackageIpsWithCallback(request *RemoveBandwidthPackageIpsRequest, callback func(response *RemoveBandwidthPackageIpsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveBandwidthPackageIpsResponse + var err error + defer close(result) + response, err = client.RemoveBandwidthPackageIps(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveBandwidthPackageIpsRequest is the request struct for api RemoveBandwidthPackageIps +type RemoveBandwidthPackageIpsRequest struct { + *requests.RpcRequest + RemovedIpAddresses *[]string `position:"Query" name:"RemovedIpAddresses" type:"Repeated"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// RemoveBandwidthPackageIpsResponse is the response struct for api RemoveBandwidthPackageIps +type RemoveBandwidthPackageIpsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveBandwidthPackageIpsRequest creates a request to invoke RemoveBandwidthPackageIps API +func CreateRemoveBandwidthPackageIpsRequest() (request *RemoveBandwidthPackageIpsRequest) { + request = &RemoveBandwidthPackageIpsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "RemoveBandwidthPackageIps", "ecs", "openAPI") + return +} + +// CreateRemoveBandwidthPackageIpsResponse creates a response to parse from RemoveBandwidthPackageIps response +func CreateRemoveBandwidthPackageIpsResponse() (response *RemoveBandwidthPackageIpsResponse) { + response = &RemoveBandwidthPackageIpsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_tags.go new file mode 100644 index 0000000..42e4af5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_tags.go @@ -0,0 +1,117 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveTags invokes the ecs.RemoveTags API synchronously +// api document: https://help.aliyun.com/api/ecs/removetags.html +func (client *Client) RemoveTags(request *RemoveTagsRequest) (response *RemoveTagsResponse, err error) { + response = CreateRemoveTagsResponse() + err = client.DoAction(request, response) + return +} + +// RemoveTagsWithChan invokes the ecs.RemoveTags API asynchronously +// api document: https://help.aliyun.com/api/ecs/removetags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveTagsWithChan(request *RemoveTagsRequest) (<-chan *RemoveTagsResponse, <-chan error) { + responseChan := make(chan *RemoveTagsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveTags(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveTagsWithCallback invokes the ecs.RemoveTags API asynchronously +// api document: https://help.aliyun.com/api/ecs/removetags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveTagsWithCallback(request *RemoveTagsRequest, callback func(response *RemoveTagsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveTagsResponse + var err error + defer close(result) + response, err = client.RemoveTags(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveTagsRequest is the request struct for api RemoveTags +type RemoveTagsRequest struct { + *requests.RpcRequest + Tag4Value string `position:"Query" name:"Tag.4.Value"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceId string `position:"Query" name:"ResourceId"` + Tag2Key string `position:"Query" name:"Tag.2.Key"` + Tag5Key string `position:"Query" name:"Tag.5.Key"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Tag3Key string `position:"Query" name:"Tag.3.Key"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` + Tag5Value string `position:"Query" name:"Tag.5.Value"` + Tag1Key string `position:"Query" name:"Tag.1.Key"` + Tag1Value string `position:"Query" name:"Tag.1.Value"` + Tag2Value string `position:"Query" name:"Tag.2.Value"` + Tag4Key string `position:"Query" name:"Tag.4.Key"` + Tag3Value string `position:"Query" name:"Tag.3.Value"` +} + +// RemoveTagsResponse is the response struct for api RemoveTags +type RemoveTagsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveTagsRequest creates a request to invoke RemoveTags API +func CreateRemoveTagsRequest() (request *RemoveTagsRequest) { + request = &RemoveTagsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "RemoveTags", "ecs", "openAPI") + return +} + +// CreateRemoveTagsResponse creates a response to parse from RemoveTags response +func CreateRemoveTagsResponse() (response *RemoveTagsResponse) { + response = &RemoveTagsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_instance.go new file mode 100644 index 0000000..928fc22 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_instance.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RenewInstance invokes the ecs.RenewInstance API synchronously +// api document: https://help.aliyun.com/api/ecs/renewinstance.html +func (client *Client) RenewInstance(request *RenewInstanceRequest) (response *RenewInstanceResponse, err error) { + response = CreateRenewInstanceResponse() + err = client.DoAction(request, response) + return +} + +// RenewInstanceWithChan invokes the ecs.RenewInstance API asynchronously +// api document: https://help.aliyun.com/api/ecs/renewinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RenewInstanceWithChan(request *RenewInstanceRequest) (<-chan *RenewInstanceResponse, <-chan error) { + responseChan := make(chan *RenewInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RenewInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RenewInstanceWithCallback invokes the ecs.RenewInstance API asynchronously +// api document: https://help.aliyun.com/api/ecs/renewinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RenewInstanceWithCallback(request *RenewInstanceRequest, callback func(response *RenewInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RenewInstanceResponse + var err error + defer close(result) + response, err = client.RenewInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RenewInstanceRequest is the request struct for api RenewInstance +type RenewInstanceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Period requests.Integer `position:"Query" name:"Period"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + InstanceId string `position:"Query" name:"InstanceId"` + ClientToken string `position:"Query" name:"ClientToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// RenewInstanceResponse is the response struct for api RenewInstance +type RenewInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRenewInstanceRequest creates a request to invoke RenewInstance API +func CreateRenewInstanceRequest() (request *RenewInstanceRequest) { + request = &RenewInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "RenewInstance", "ecs", "openAPI") + return +} + +// CreateRenewInstanceResponse creates a response to parse from RenewInstance response +func CreateRenewInstanceResponse() (response *RenewInstanceResponse) { + response = &RenewInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/replace_system_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/replace_system_disk.go new file mode 100644 index 0000000..cfcb513 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/replace_system_disk.go @@ -0,0 +1,119 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReplaceSystemDisk invokes the ecs.ReplaceSystemDisk API synchronously +// api document: https://help.aliyun.com/api/ecs/replacesystemdisk.html +func (client *Client) ReplaceSystemDisk(request *ReplaceSystemDiskRequest) (response *ReplaceSystemDiskResponse, err error) { + response = CreateReplaceSystemDiskResponse() + err = client.DoAction(request, response) + return +} + +// ReplaceSystemDiskWithChan invokes the ecs.ReplaceSystemDisk API asynchronously +// api document: https://help.aliyun.com/api/ecs/replacesystemdisk.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReplaceSystemDiskWithChan(request *ReplaceSystemDiskRequest) (<-chan *ReplaceSystemDiskResponse, <-chan error) { + responseChan := make(chan *ReplaceSystemDiskResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReplaceSystemDisk(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReplaceSystemDiskWithCallback invokes the ecs.ReplaceSystemDisk API asynchronously +// api document: https://help.aliyun.com/api/ecs/replacesystemdisk.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReplaceSystemDiskWithCallback(request *ReplaceSystemDiskRequest, callback func(response *ReplaceSystemDiskResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReplaceSystemDiskResponse + var err error + defer close(result) + response, err = client.ReplaceSystemDisk(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReplaceSystemDiskRequest is the request struct for api ReplaceSystemDisk +type ReplaceSystemDiskRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ImageId string `position:"Query" name:"ImageId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` + KeyPairName string `position:"Query" name:"KeyPairName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Platform string `position:"Query" name:"Platform"` + Password string `position:"Query" name:"Password"` + InstanceId string `position:"Query" name:"InstanceId"` + PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` + SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` + DiskId string `position:"Query" name:"DiskId"` + UseAdditionalService requests.Boolean `position:"Query" name:"UseAdditionalService"` + Architecture string `position:"Query" name:"Architecture"` +} + +// ReplaceSystemDiskResponse is the response struct for api ReplaceSystemDisk +type ReplaceSystemDiskResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DiskId string `json:"DiskId" xml:"DiskId"` +} + +// CreateReplaceSystemDiskRequest creates a request to invoke ReplaceSystemDisk API +func CreateReplaceSystemDiskRequest() (request *ReplaceSystemDiskRequest) { + request = &ReplaceSystemDiskRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ReplaceSystemDisk", "ecs", "openAPI") + return +} + +// CreateReplaceSystemDiskResponse creates a response to parse from ReplaceSystemDisk response +func CreateReplaceSystemDiskResponse() (response *ReplaceSystemDiskResponse) { + response = &ReplaceSystemDiskResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disk.go new file mode 100644 index 0000000..6a062f7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disk.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ResetDisk invokes the ecs.ResetDisk API synchronously +// api document: https://help.aliyun.com/api/ecs/resetdisk.html +func (client *Client) ResetDisk(request *ResetDiskRequest) (response *ResetDiskResponse, err error) { + response = CreateResetDiskResponse() + err = client.DoAction(request, response) + return +} + +// ResetDiskWithChan invokes the ecs.ResetDisk API asynchronously +// api document: https://help.aliyun.com/api/ecs/resetdisk.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResetDiskWithChan(request *ResetDiskRequest) (<-chan *ResetDiskResponse, <-chan error) { + responseChan := make(chan *ResetDiskResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ResetDisk(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ResetDiskWithCallback invokes the ecs.ResetDisk API asynchronously +// api document: https://help.aliyun.com/api/ecs/resetdisk.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResetDiskWithCallback(request *ResetDiskRequest, callback func(response *ResetDiskResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ResetDiskResponse + var err error + defer close(result) + response, err = client.ResetDisk(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ResetDiskRequest is the request struct for api ResetDisk +type ResetDiskRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SnapshotId string `position:"Query" name:"SnapshotId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DiskId string `position:"Query" name:"DiskId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ResetDiskResponse is the response struct for api ResetDisk +type ResetDiskResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateResetDiskRequest creates a request to invoke ResetDisk API +func CreateResetDiskRequest() (request *ResetDiskRequest) { + request = &ResetDiskRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ResetDisk", "ecs", "openAPI") + return +} + +// CreateResetDiskResponse creates a response to parse from ResetDisk response +func CreateResetDiskResponse() (response *ResetDiskResponse) { + response = &ResetDiskResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/resize_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/resize_disk.go new file mode 100644 index 0000000..9763c55 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/resize_disk.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ResizeDisk invokes the ecs.ResizeDisk API synchronously +// api document: https://help.aliyun.com/api/ecs/resizedisk.html +func (client *Client) ResizeDisk(request *ResizeDiskRequest) (response *ResizeDiskResponse, err error) { + response = CreateResizeDiskResponse() + err = client.DoAction(request, response) + return +} + +// ResizeDiskWithChan invokes the ecs.ResizeDisk API asynchronously +// api document: https://help.aliyun.com/api/ecs/resizedisk.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResizeDiskWithChan(request *ResizeDiskRequest) (<-chan *ResizeDiskResponse, <-chan error) { + responseChan := make(chan *ResizeDiskResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ResizeDisk(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ResizeDiskWithCallback invokes the ecs.ResizeDisk API asynchronously +// api document: https://help.aliyun.com/api/ecs/resizedisk.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResizeDiskWithCallback(request *ResizeDiskRequest, callback func(response *ResizeDiskResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ResizeDiskResponse + var err error + defer close(result) + response, err = client.ResizeDisk(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ResizeDiskRequest is the request struct for api ResizeDisk +type ResizeDiskRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + NewSize requests.Integer `position:"Query" name:"NewSize"` + DiskId string `position:"Query" name:"DiskId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ResizeDiskResponse is the response struct for api ResizeDisk +type ResizeDiskResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateResizeDiskRequest creates a request to invoke ResizeDisk API +func CreateResizeDiskRequest() (request *ResizeDiskRequest) { + request = &ResizeDiskRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ResizeDisk", "ecs", "openAPI") + return +} + +// CreateResizeDiskResponse creates a response to parse from ResizeDisk response +func CreateResizeDiskResponse() (response *ResizeDiskResponse) { + response = &ResizeDiskResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group.go new file mode 100644 index 0000000..f432a9f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group.go @@ -0,0 +1,120 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RevokeSecurityGroup invokes the ecs.RevokeSecurityGroup API synchronously +// api document: https://help.aliyun.com/api/ecs/revokesecuritygroup.html +func (client *Client) RevokeSecurityGroup(request *RevokeSecurityGroupRequest) (response *RevokeSecurityGroupResponse, err error) { + response = CreateRevokeSecurityGroupResponse() + err = client.DoAction(request, response) + return +} + +// RevokeSecurityGroupWithChan invokes the ecs.RevokeSecurityGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/revokesecuritygroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RevokeSecurityGroupWithChan(request *RevokeSecurityGroupRequest) (<-chan *RevokeSecurityGroupResponse, <-chan error) { + responseChan := make(chan *RevokeSecurityGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RevokeSecurityGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RevokeSecurityGroupWithCallback invokes the ecs.RevokeSecurityGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/revokesecuritygroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RevokeSecurityGroupWithCallback(request *RevokeSecurityGroupRequest, callback func(response *RevokeSecurityGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RevokeSecurityGroupResponse + var err error + defer close(result) + response, err = client.RevokeSecurityGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RevokeSecurityGroupRequest is the request struct for api RevokeSecurityGroup +type RevokeSecurityGroupRequest struct { + *requests.RpcRequest + NicType string `position:"Query" name:"NicType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SourcePortRange string `position:"Query" name:"SourcePortRange"` + ClientToken string `position:"Query" name:"ClientToken"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Description string `position:"Query" name:"Description"` + SourceGroupOwnerId requests.Integer `position:"Query" name:"SourceGroupOwnerId"` + SourceGroupOwnerAccount string `position:"Query" name:"SourceGroupOwnerAccount"` + Policy string `position:"Query" name:"Policy"` + PortRange string `position:"Query" name:"PortRange"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + IpProtocol string `position:"Query" name:"IpProtocol"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SourceCidrIp string `position:"Query" name:"SourceCidrIp"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Priority string `position:"Query" name:"Priority"` + DestCidrIp string `position:"Query" name:"DestCidrIp"` + SourceGroupId string `position:"Query" name:"SourceGroupId"` +} + +// RevokeSecurityGroupResponse is the response struct for api RevokeSecurityGroup +type RevokeSecurityGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRevokeSecurityGroupRequest creates a request to invoke RevokeSecurityGroup API +func CreateRevokeSecurityGroupRequest() (request *RevokeSecurityGroupRequest) { + request = &RevokeSecurityGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "RevokeSecurityGroup", "ecs", "openAPI") + return +} + +// CreateRevokeSecurityGroupResponse creates a response to parse from RevokeSecurityGroup response +func CreateRevokeSecurityGroupResponse() (response *RevokeSecurityGroupResponse) { + response = &RevokeSecurityGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group_egress.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group_egress.go new file mode 100644 index 0000000..41cded0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group_egress.go @@ -0,0 +1,120 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RevokeSecurityGroupEgress invokes the ecs.RevokeSecurityGroupEgress API synchronously +// api document: https://help.aliyun.com/api/ecs/revokesecuritygroupegress.html +func (client *Client) RevokeSecurityGroupEgress(request *RevokeSecurityGroupEgressRequest) (response *RevokeSecurityGroupEgressResponse, err error) { + response = CreateRevokeSecurityGroupEgressResponse() + err = client.DoAction(request, response) + return +} + +// RevokeSecurityGroupEgressWithChan invokes the ecs.RevokeSecurityGroupEgress API asynchronously +// api document: https://help.aliyun.com/api/ecs/revokesecuritygroupegress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RevokeSecurityGroupEgressWithChan(request *RevokeSecurityGroupEgressRequest) (<-chan *RevokeSecurityGroupEgressResponse, <-chan error) { + responseChan := make(chan *RevokeSecurityGroupEgressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RevokeSecurityGroupEgress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RevokeSecurityGroupEgressWithCallback invokes the ecs.RevokeSecurityGroupEgress API asynchronously +// api document: https://help.aliyun.com/api/ecs/revokesecuritygroupegress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RevokeSecurityGroupEgressWithCallback(request *RevokeSecurityGroupEgressRequest, callback func(response *RevokeSecurityGroupEgressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RevokeSecurityGroupEgressResponse + var err error + defer close(result) + response, err = client.RevokeSecurityGroupEgress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RevokeSecurityGroupEgressRequest is the request struct for api RevokeSecurityGroupEgress +type RevokeSecurityGroupEgressRequest struct { + *requests.RpcRequest + NicType string `position:"Query" name:"NicType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SourcePortRange string `position:"Query" name:"SourcePortRange"` + ClientToken string `position:"Query" name:"ClientToken"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Description string `position:"Query" name:"Description"` + Policy string `position:"Query" name:"Policy"` + PortRange string `position:"Query" name:"PortRange"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + IpProtocol string `position:"Query" name:"IpProtocol"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SourceCidrIp string `position:"Query" name:"SourceCidrIp"` + DestGroupId string `position:"Query" name:"DestGroupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + DestGroupOwnerAccount string `position:"Query" name:"DestGroupOwnerAccount"` + Priority string `position:"Query" name:"Priority"` + DestCidrIp string `position:"Query" name:"DestCidrIp"` + DestGroupOwnerId requests.Integer `position:"Query" name:"DestGroupOwnerId"` +} + +// RevokeSecurityGroupEgressResponse is the response struct for api RevokeSecurityGroupEgress +type RevokeSecurityGroupEgressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRevokeSecurityGroupEgressRequest creates a request to invoke RevokeSecurityGroupEgress API +func CreateRevokeSecurityGroupEgressRequest() (request *RevokeSecurityGroupEgressRequest) { + request = &RevokeSecurityGroupEgressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "RevokeSecurityGroupEgress", "ecs", "openAPI") + return +} + +// CreateRevokeSecurityGroupEgressResponse creates a response to parse from RevokeSecurityGroupEgress response +func CreateRevokeSecurityGroupEgressResponse() (response *RevokeSecurityGroupEgressResponse) { + response = &RevokeSecurityGroupEgressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/run_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/run_instances.go new file mode 100644 index 0000000..378ab11 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/run_instances.go @@ -0,0 +1,177 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RunInstances invokes the ecs.RunInstances API synchronously +// api document: https://help.aliyun.com/api/ecs/runinstances.html +func (client *Client) RunInstances(request *RunInstancesRequest) (response *RunInstancesResponse, err error) { + response = CreateRunInstancesResponse() + err = client.DoAction(request, response) + return +} + +// RunInstancesWithChan invokes the ecs.RunInstances API asynchronously +// api document: https://help.aliyun.com/api/ecs/runinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RunInstancesWithChan(request *RunInstancesRequest) (<-chan *RunInstancesResponse, <-chan error) { + responseChan := make(chan *RunInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RunInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RunInstancesWithCallback invokes the ecs.RunInstances API asynchronously +// api document: https://help.aliyun.com/api/ecs/runinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RunInstancesWithCallback(request *RunInstancesRequest, callback func(response *RunInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RunInstancesResponse + var err error + defer close(result) + response, err = client.RunInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RunInstancesRequest is the request struct for api RunInstances +type RunInstancesRequest struct { + *requests.RpcRequest + LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + HpcClusterId string `position:"Query" name:"HpcClusterId"` + SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` + KeyPairName string `position:"Query" name:"KeyPairName"` + SpotPriceLimit requests.Float `position:"Query" name:"SpotPriceLimit"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + HostName string `position:"Query" name:"HostName"` + Password string `position:"Query" name:"Password"` + Tag *[]RunInstancesTag `position:"Query" name:"Tag" type:"Repeated"` + AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` + Period requests.Integer `position:"Query" name:"Period"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + LaunchTemplateId string `position:"Query" name:"LaunchTemplateId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + SpotStrategy string `position:"Query" name:"SpotStrategy"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + InstanceName string `position:"Query" name:"InstanceName"` + AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + ZoneId string `position:"Query" name:"ZoneId"` + InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` + ImageId string `position:"Query" name:"ImageId"` + SpotInterruptionBehavior string `position:"Query" name:"SpotInterruptionBehavior"` + ClientToken string `position:"Query" name:"ClientToken"` + IoOptimized string `position:"Query" name:"IoOptimized"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` + Description string `position:"Query" name:"Description"` + SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` + UserData string `position:"Query" name:"UserData"` + PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` + InstanceType string `position:"Query" name:"InstanceType"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + NetworkInterface *[]RunInstancesNetworkInterface `position:"Query" name:"NetworkInterface" type:"Repeated"` + Amount requests.Integer `position:"Query" name:"Amount"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SystemDiskDiskName string `position:"Query" name:"SystemDisk.DiskName"` + RamRoleName string `position:"Query" name:"RamRoleName"` + AutoReleaseTime string `position:"Query" name:"AutoReleaseTime"` + DedicatedHostId string `position:"Query" name:"DedicatedHostId"` + DataDisk *[]RunInstancesDataDisk `position:"Query" name:"DataDisk" type:"Repeated"` + LaunchTemplateVersion requests.Integer `position:"Query" name:"LaunchTemplateVersion"` + SystemDiskSize string `position:"Query" name:"SystemDisk.Size"` + SystemDiskDescription string `position:"Query" name:"SystemDisk.Description"` +} + +// RunInstancesTag is a repeated param struct in RunInstancesRequest +type RunInstancesTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// RunInstancesNetworkInterface is a repeated param struct in RunInstancesRequest +type RunInstancesNetworkInterface struct { + PrimaryIpAddress string `name:"PrimaryIpAddress"` + VSwitchId string `name:"VSwitchId"` + SecurityGroupId string `name:"SecurityGroupId"` + NetworkInterfaceName string `name:"NetworkInterfaceName"` + Description string `name:"Description"` +} + +// RunInstancesDataDisk is a repeated param struct in RunInstancesRequest +type RunInstancesDataDisk struct { + Size string `name:"Size"` + SnapshotId string `name:"SnapshotId"` + Category string `name:"Category"` + Encrypted string `name:"Encrypted"` + DiskName string `name:"DiskName"` + Description string `name:"Description"` + Device string `name:"Device"` + DeleteWithInstance string `name:"DeleteWithInstance"` +} + +// RunInstancesResponse is the response struct for api RunInstances +type RunInstancesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceIdSets InstanceIdSets `json:"InstanceIdSets" xml:"InstanceIdSets"` +} + +// CreateRunInstancesRequest creates a request to invoke RunInstances API +func CreateRunInstancesRequest() (request *RunInstancesRequest) { + request = &RunInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "RunInstances", "ecs", "openAPI") + return +} + +// CreateRunInstancesResponse creates a response to parse from RunInstances response +func CreateRunInstancesResponse() (response *RunInstancesResponse) { + response = &RunInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/sign_agreement.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/sign_agreement.go new file mode 100644 index 0000000..6239b04 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/sign_agreement.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SignAgreement invokes the ecs.SignAgreement API synchronously +// api document: https://help.aliyun.com/api/ecs/signagreement.html +func (client *Client) SignAgreement(request *SignAgreementRequest) (response *SignAgreementResponse, err error) { + response = CreateSignAgreementResponse() + err = client.DoAction(request, response) + return +} + +// SignAgreementWithChan invokes the ecs.SignAgreement API asynchronously +// api document: https://help.aliyun.com/api/ecs/signagreement.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SignAgreementWithChan(request *SignAgreementRequest) (<-chan *SignAgreementResponse, <-chan error) { + responseChan := make(chan *SignAgreementResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SignAgreement(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SignAgreementWithCallback invokes the ecs.SignAgreement API asynchronously +// api document: https://help.aliyun.com/api/ecs/signagreement.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SignAgreementWithCallback(request *SignAgreementRequest, callback func(response *SignAgreementResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SignAgreementResponse + var err error + defer close(result) + response, err = client.SignAgreement(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SignAgreementRequest is the request struct for api SignAgreement +type SignAgreementRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AgreementType string `position:"Query" name:"AgreementType"` +} + +// SignAgreementResponse is the response struct for api SignAgreement +type SignAgreementResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSignAgreementRequest creates a request to invoke SignAgreement API +func CreateSignAgreementRequest() (request *SignAgreementRequest) { + request = &SignAgreementRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "SignAgreement", "ecs", "openAPI") + return +} + +// CreateSignAgreementResponse creates a response to parse from SignAgreement response +func CreateSignAgreementResponse() (response *SignAgreementResponse) { + response = &SignAgreementResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_instance.go new file mode 100644 index 0000000..f926977 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_instance.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StartInstance invokes the ecs.StartInstance API synchronously +// api document: https://help.aliyun.com/api/ecs/startinstance.html +func (client *Client) StartInstance(request *StartInstanceRequest) (response *StartInstanceResponse, err error) { + response = CreateStartInstanceResponse() + err = client.DoAction(request, response) + return +} + +// StartInstanceWithChan invokes the ecs.StartInstance API asynchronously +// api document: https://help.aliyun.com/api/ecs/startinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartInstanceWithChan(request *StartInstanceRequest) (<-chan *StartInstanceResponse, <-chan error) { + responseChan := make(chan *StartInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartInstanceWithCallback invokes the ecs.StartInstance API asynchronously +// api document: https://help.aliyun.com/api/ecs/startinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartInstanceWithCallback(request *StartInstanceRequest, callback func(response *StartInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartInstanceResponse + var err error + defer close(result) + response, err = client.StartInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartInstanceRequest is the request struct for api StartInstance +type StartInstanceRequest struct { + *requests.RpcRequest + InitLocalDisk requests.Boolean `position:"Query" name:"InitLocalDisk"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// StartInstanceResponse is the response struct for api StartInstance +type StartInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStartInstanceRequest creates a request to invoke StartInstance API +func CreateStartInstanceRequest() (request *StartInstanceRequest) { + request = &StartInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "StartInstance", "ecs", "openAPI") + return +} + +// CreateStartInstanceResponse creates a response to parse from StartInstance response +func CreateStartInstanceResponse() (response *StartInstanceResponse) { + response = &StartInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_instance.go new file mode 100644 index 0000000..20b3063 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_instance.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StopInstance invokes the ecs.StopInstance API synchronously +// api document: https://help.aliyun.com/api/ecs/stopinstance.html +func (client *Client) StopInstance(request *StopInstanceRequest) (response *StopInstanceResponse, err error) { + response = CreateStopInstanceResponse() + err = client.DoAction(request, response) + return +} + +// StopInstanceWithChan invokes the ecs.StopInstance API asynchronously +// api document: https://help.aliyun.com/api/ecs/stopinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopInstanceWithChan(request *StopInstanceRequest) (<-chan *StopInstanceResponse, <-chan error) { + responseChan := make(chan *StopInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopInstanceWithCallback invokes the ecs.StopInstance API asynchronously +// api document: https://help.aliyun.com/api/ecs/stopinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopInstanceWithCallback(request *StopInstanceRequest, callback func(response *StopInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopInstanceResponse + var err error + defer close(result) + response, err = client.StopInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopInstanceRequest is the request struct for api StopInstance +type StopInstanceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ConfirmStop requests.Boolean `position:"Query" name:"ConfirmStop"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + StoppedMode string `position:"Query" name:"StoppedMode"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ForceStop requests.Boolean `position:"Query" name:"ForceStop"` +} + +// StopInstanceResponse is the response struct for api StopInstance +type StopInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStopInstanceRequest creates a request to invoke StopInstance API +func CreateStopInstanceRequest() (request *StopInstanceRequest) { + request = &StopInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "StopInstance", "ecs", "openAPI") + return +} + +// CreateStopInstanceResponse creates a response to parse from StopInstance response +func CreateStopInstanceResponse() (response *StopInstanceResponse) { + response = &StopInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_invocation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_invocation.go new file mode 100644 index 0000000..c49dca5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_invocation.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StopInvocation invokes the ecs.StopInvocation API synchronously +// api document: https://help.aliyun.com/api/ecs/stopinvocation.html +func (client *Client) StopInvocation(request *StopInvocationRequest) (response *StopInvocationResponse, err error) { + response = CreateStopInvocationResponse() + err = client.DoAction(request, response) + return +} + +// StopInvocationWithChan invokes the ecs.StopInvocation API asynchronously +// api document: https://help.aliyun.com/api/ecs/stopinvocation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopInvocationWithChan(request *StopInvocationRequest) (<-chan *StopInvocationResponse, <-chan error) { + responseChan := make(chan *StopInvocationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopInvocation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopInvocationWithCallback invokes the ecs.StopInvocation API asynchronously +// api document: https://help.aliyun.com/api/ecs/stopinvocation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopInvocationWithCallback(request *StopInvocationRequest, callback func(response *StopInvocationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopInvocationResponse + var err error + defer close(result) + response, err = client.StopInvocation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopInvocationRequest is the request struct for api StopInvocation +type StopInvocationRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InvokeId string `position:"Query" name:"InvokeId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` +} + +// StopInvocationResponse is the response struct for api StopInvocation +type StopInvocationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStopInvocationRequest creates a request to invoke StopInvocation API +func CreateStopInvocationRequest() (request *StopInvocationRequest) { + request = &StopInvocationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "StopInvocation", "ecs", "openAPI") + return +} + +// CreateStopInvocationResponse creates a response to parse from StopInvocation response +func CreateStopInvocationResponse() (response *StopInvocationResponse) { + response = &StopInvocationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_access_point_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_access_point_set.go new file mode 100644 index 0000000..40c538f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_access_point_set.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AccessPointSet is a nested struct in ecs response +type AccessPointSet struct { + AccessPointType []AccessPointType `json:"AccessPointType" xml:"AccessPointType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_access_point_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_access_point_type.go new file mode 100644 index 0000000..4fb9e98 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_access_point_type.go @@ -0,0 +1,28 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AccessPointType is a nested struct in ecs response +type AccessPointType struct { + AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` + Status string `json:"Status" xml:"Status"` + Type string `json:"Type" xml:"Type"` + AttachedRegionNo string `json:"AttachedRegionNo" xml:"AttachedRegionNo"` + Location string `json:"Location" xml:"Location"` + HostOperator string `json:"HostOperator" xml:"HostOperator"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_account.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_account.go new file mode 100644 index 0000000..f542390 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_account.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Account is a nested struct in ecs response +type Account struct { + AliyunId string `json:"AliyunId" xml:"AliyunId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_accounts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_accounts.go new file mode 100644 index 0000000..f287e0e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_accounts.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Accounts is a nested struct in ecs response +type Accounts struct { + Account []Account `json:"Account" xml:"Account"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_eip_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_eip_addresses.go new file mode 100644 index 0000000..1adc3d0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_eip_addresses.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AssociatedEipAddresses is a nested struct in ecs response +type AssociatedEipAddresses struct { + AssociatedEipAddresse []string `json:"associatedEipAddresse" xml:"associatedEipAddresse"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_instances.go new file mode 100644 index 0000000..37331c3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_instances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AssociatedInstances is a nested struct in ecs response +type AssociatedInstances struct { + AssociatedInstance []string `json:"associatedInstance" xml:"associatedInstance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_public_ip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_public_ip.go new file mode 100644 index 0000000..4287bc3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_public_ip.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AssociatedPublicIp is a nested struct in ecs response +type AssociatedPublicIp struct { + PublicIpAddress string `json:"PublicIpAddress" xml:"PublicIpAddress"` + AllocationId string `json:"AllocationId" xml:"AllocationId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attach_instance_ram_role_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attach_instance_ram_role_result.go new file mode 100644 index 0000000..c2a206c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attach_instance_ram_role_result.go @@ -0,0 +1,24 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AttachInstanceRamRoleResult is a nested struct in ecs response +type AttachInstanceRamRoleResult struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attach_instance_ram_role_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attach_instance_ram_role_results.go new file mode 100644 index 0000000..b5d998c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attach_instance_ram_role_results.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AttachInstanceRamRoleResults is a nested struct in ecs response +type AttachInstanceRamRoleResults struct { + AttachInstanceRamRoleResult []AttachInstanceRamRoleResult `json:"AttachInstanceRamRoleResult" xml:"AttachInstanceRamRoleResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_excution_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_excution_status.go new file mode 100644 index 0000000..a5ac5c7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_excution_status.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AutoSnapshotExcutionStatus is a nested struct in ecs response +type AutoSnapshotExcutionStatus struct { + SystemDiskExcutionStatus string `json:"SystemDiskExcutionStatus" xml:"SystemDiskExcutionStatus"` + DataDiskExcutionStatus string `json:"DataDiskExcutionStatus" xml:"DataDiskExcutionStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_policies.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_policies.go new file mode 100644 index 0000000..8c3e62c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_policies.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AutoSnapshotPolicies is a nested struct in ecs response +type AutoSnapshotPolicies struct { + AutoSnapshotPolicy []AutoSnapshotPolicy `json:"AutoSnapshotPolicy" xml:"AutoSnapshotPolicy"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_policy.go new file mode 100644 index 0000000..950f88a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_policy.go @@ -0,0 +1,38 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AutoSnapshotPolicy is a nested struct in ecs response +type AutoSnapshotPolicy struct { + DataDiskPolicyEnabled string `json:"DataDiskPolicyEnabled" xml:"DataDiskPolicyEnabled"` + RepeatWeekdays string `json:"RepeatWeekdays" xml:"RepeatWeekdays"` + SystemDiskPolicyRetentionLastWeek string `json:"SystemDiskPolicyRetentionLastWeek" xml:"SystemDiskPolicyRetentionLastWeek"` + AutoSnapshotPolicyId string `json:"AutoSnapshotPolicyId" xml:"AutoSnapshotPolicyId"` + VolumeNums int `json:"VolumeNums" xml:"VolumeNums"` + DataDiskPolicyRetentionDays string `json:"DataDiskPolicyRetentionDays" xml:"DataDiskPolicyRetentionDays"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + DataDiskPolicyTimePeriod string `json:"DataDiskPolicyTimePeriod" xml:"DataDiskPolicyTimePeriod"` + SystemDiskPolicyTimePeriod string `json:"SystemDiskPolicyTimePeriod" xml:"SystemDiskPolicyTimePeriod"` + DiskNums int `json:"DiskNums" xml:"DiskNums"` + SystemDiskPolicyEnabled string `json:"SystemDiskPolicyEnabled" xml:"SystemDiskPolicyEnabled"` + RegionId string `json:"RegionId" xml:"RegionId"` + AutoSnapshotPolicyName string `json:"AutoSnapshotPolicyName" xml:"AutoSnapshotPolicyName"` + RetentionDays int `json:"RetentionDays" xml:"RetentionDays"` + TimePoints string `json:"TimePoints" xml:"TimePoints"` + SystemDiskPolicyRetentionDays string `json:"SystemDiskPolicyRetentionDays" xml:"SystemDiskPolicyRetentionDays"` + Status string `json:"Status" xml:"Status"` + DataDiskPolicyRetentionLastWeek string `json:"DataDiskPolicyRetentionLastWeek" xml:"DataDiskPolicyRetentionLastWeek"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_dedicated_host_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_dedicated_host_types.go new file mode 100644 index 0000000..86eaf0e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_dedicated_host_types.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AvailableDedicatedHostTypes is a nested struct in ecs response +type AvailableDedicatedHostTypes struct { + DedicatedHostType []string `json:"DedicatedHostType" xml:"DedicatedHostType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_disk_categories.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_disk_categories.go new file mode 100644 index 0000000..4de1059 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_disk_categories.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AvailableDiskCategories is a nested struct in ecs response +type AvailableDiskCategories struct { + DiskCategories []string `json:"DiskCategories" xml:"DiskCategories"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_types.go new file mode 100644 index 0000000..2953371 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_types.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AvailableInstanceTypes is a nested struct in ecs response +type AvailableInstanceTypes struct { + InstanceTypes []string `json:"InstanceTypes" xml:"InstanceTypes"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resource.go new file mode 100644 index 0000000..04d8e63 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resource.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AvailableResource is a nested struct in ecs response +type AvailableResource struct { + Type string `json:"Type" xml:"Type"` + SupportedResources SupportedResourcesInDescribeResourcesModification `json:"SupportedResources" xml:"SupportedResources"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resource_creation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resource_creation.go new file mode 100644 index 0000000..4a20f01 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resource_creation.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AvailableResourceCreation is a nested struct in ecs response +type AvailableResourceCreation struct { + ResourceTypes []string `json:"ResourceTypes" xml:"ResourceTypes"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_available_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_available_resource.go new file mode 100644 index 0000000..8638d99 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_available_resource.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AvailableResourcesInDescribeAvailableResource is a nested struct in ecs response +type AvailableResourcesInDescribeAvailableResource struct { + AvailableResource []AvailableResource `json:"AvailableResource" xml:"AvailableResource"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_resources_modification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_resources_modification.go new file mode 100644 index 0000000..73eb771 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_resources_modification.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AvailableResourcesInDescribeResourcesModification is a nested struct in ecs response +type AvailableResourcesInDescribeResourcesModification struct { + AvailableResource []AvailableResource `json:"AvailableResource" xml:"AvailableResource"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_zones.go new file mode 100644 index 0000000..4c2db7b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_zones.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AvailableResourcesInDescribeZones is a nested struct in ecs response +type AvailableResourcesInDescribeZones struct { + ResourcesInfo []ResourcesInfo `json:"ResourcesInfo" xml:"ResourcesInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_volume_categories.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_volume_categories.go new file mode 100644 index 0000000..97fdf0d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_volume_categories.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AvailableVolumeCategories is a nested struct in ecs response +type AvailableVolumeCategories struct { + VolumeCategories []string `json:"VolumeCategories" xml:"VolumeCategories"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zone.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zone.go new file mode 100644 index 0000000..df8e7e5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zone.go @@ -0,0 +1,24 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AvailableZone is a nested struct in ecs response +type AvailableZone struct { + RegionId string `json:"RegionId" xml:"RegionId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + Status string `json:"Status" xml:"Status"` + AvailableResources AvailableResourcesInDescribeResourcesModification `json:"AvailableResources" xml:"AvailableResources"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zones_in_describe_available_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zones_in_describe_available_resource.go new file mode 100644 index 0000000..c0947c3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zones_in_describe_available_resource.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AvailableZonesInDescribeAvailableResource is a nested struct in ecs response +type AvailableZonesInDescribeAvailableResource struct { + AvailableZone []AvailableZone `json:"AvailableZone" xml:"AvailableZone"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zones_in_describe_resources_modification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zones_in_describe_resources_modification.go new file mode 100644 index 0000000..9368019 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zones_in_describe_resources_modification.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AvailableZonesInDescribeResourcesModification is a nested struct in ecs response +type AvailableZonesInDescribeResourcesModification struct { + AvailableZone []AvailableZone `json:"AvailableZone" xml:"AvailableZone"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth.go new file mode 100644 index 0000000..2cabba1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth.go @@ -0,0 +1,24 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Bandwidth is a nested struct in ecs response +type Bandwidth struct { + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + Min int `json:"Min" xml:"Min"` + Max int `json:"Max" xml:"Max"` + Unit string `json:"Unit" xml:"Unit"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package.go new file mode 100644 index 0000000..ae88def --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package.go @@ -0,0 +1,34 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BandwidthPackage is a nested struct in ecs response +type BandwidthPackage struct { + BandwidthPackageId string `json:"BandwidthPackageId" xml:"BandwidthPackageId"` + RegionId string `json:"RegionId" xml:"RegionId"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` + Bandwidth string `json:"Bandwidth" xml:"Bandwidth"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + IpCount string `json:"IpCount" xml:"IpCount"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Status string `json:"Status" xml:"Status"` + PublicIpAddresses PublicIpAddresses `json:"PublicIpAddresses" xml:"PublicIpAddresses"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package_ids_in_create_nat_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package_ids_in_create_nat_gateway.go new file mode 100644 index 0000000..816324b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package_ids_in_create_nat_gateway.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BandwidthPackageIdsInCreateNatGateway is a nested struct in ecs response +type BandwidthPackageIdsInCreateNatGateway struct { + BandwidthPackageId []string `json:"BandwidthPackageId" xml:"BandwidthPackageId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package_ids_in_describe_nat_gateways.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package_ids_in_describe_nat_gateways.go new file mode 100644 index 0000000..f25820e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package_ids_in_describe_nat_gateways.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BandwidthPackageIdsInDescribeNatGateways is a nested struct in ecs response +type BandwidthPackageIdsInDescribeNatGateways struct { + BandwidthPackageId []string `json:"BandwidthPackageId" xml:"BandwidthPackageId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_packages.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_packages.go new file mode 100644 index 0000000..5654030 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_packages.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BandwidthPackages is a nested struct in ecs response +type BandwidthPackages struct { + BandwidthPackage []BandwidthPackage `json:"BandwidthPackage" xml:"BandwidthPackage"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidths.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidths.go new file mode 100644 index 0000000..84ecd4b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidths.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Bandwidths is a nested struct in ecs response +type Bandwidths struct { + Bandwidth []Bandwidth `json:"Bandwidth" xml:"Bandwidth"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_cluster.go new file mode 100644 index 0000000..7fe7b72 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_cluster.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Cluster is a nested struct in ecs response +type Cluster struct { + ClusterId string `json:"ClusterId" xml:"ClusterId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_clusters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_clusters.go new file mode 100644 index 0000000..a8a0b65 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_clusters.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Clusters is a nested struct in ecs response +type Clusters struct { + Cluster []Cluster `json:"Cluster" xml:"Cluster"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_command.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_command.go new file mode 100644 index 0000000..ce905a9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_command.go @@ -0,0 +1,27 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Command is a nested struct in ecs response +type Command struct { + CommandId string `json:"CommandId" xml:"CommandId"` + Name string `json:"Name" xml:"Name"` + Type string `json:"Type" xml:"Type"` + Description string `json:"Description" xml:"Description"` + CommandContent string `json:"CommandContent" xml:"CommandContent"` + WorkingDir string `json:"WorkingDir" xml:"WorkingDir"` + Timeout int `json:"Timeout" xml:"Timeout"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_commands.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_commands.go new file mode 100644 index 0000000..1843b1b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_commands.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Commands is a nested struct in ecs response +type Commands struct { + Command []Command `json:"Command" xml:"Command"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data.go new file mode 100644 index 0000000..4d6f9c8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 ecs response +type Data struct { + RecommendInstanceType []RecommendInstanceType `json:"RecommendInstanceType" xml:"RecommendInstanceType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disk.go new file mode 100644 index 0000000..93ac9c6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disk.go @@ -0,0 +1,27 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataDisk is a nested struct in ecs response +type DataDisk struct { + Size int `json:"Size" xml:"Size"` + SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` + Category string `json:"Category" xml:"Category"` + Encrypted string `json:"Encrypted" xml:"Encrypted"` + DiskName string `json:"DiskName" xml:"DiskName"` + Description string `json:"Description" xml:"Description"` + DeleteWithInstance bool `json:"DeleteWithInstance" xml:"DeleteWithInstance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disk_categories.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disk_categories.go new file mode 100644 index 0000000..16b26e1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disk_categories.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataDiskCategories is a nested struct in ecs response +type DataDiskCategories struct { + SupportedDataDiskCategory []string `json:"supportedDataDiskCategory" xml:"supportedDataDiskCategory"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disks.go new file mode 100644 index 0000000..c91ee49 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disks.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataDisks is a nested struct in ecs response +type DataDisks struct { + DataDisk []DataDisk `json:"DataDisk" xml:"DataDisk"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_point.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_point.go new file mode 100644 index 0000000..550541b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_point.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataPoint is a nested struct in ecs response +type DataPoint struct { + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` + Size int `json:"Size" xml:"Size"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_attribute.go new file mode 100644 index 0000000..98153a1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_attribute.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DedicatedHostAttribute is a nested struct in ecs response +type DedicatedHostAttribute struct { + DedicatedHostName string `json:"DedicatedHostName" xml:"DedicatedHostName"` + DedicatedHostId string `json:"DedicatedHostId" xml:"DedicatedHostId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_generations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_generations.go new file mode 100644 index 0000000..4637e13 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_generations.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DedicatedHostGenerations is a nested struct in ecs response +type DedicatedHostGenerations struct { + DedicatedHostGeneration []string `json:"DedicatedHostGeneration" xml:"DedicatedHostGeneration"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_deployment_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_deployment_set.go new file mode 100644 index 0000000..19fa473 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_deployment_set.go @@ -0,0 +1,28 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DeploymentSet is a nested struct in ecs response +type DeploymentSet struct { + DeploymentSetId string `json:"DeploymentSetId" xml:"DeploymentSetId"` + DeploymentSetDescription string `json:"DeploymentSetDescription" xml:"DeploymentSetDescription"` + DeploymentSetName string `json:"DeploymentSetName" xml:"DeploymentSetName"` + Strategy string `json:"Strategy" xml:"Strategy"` + Domain string `json:"Domain" xml:"Domain"` + Granularity string `json:"Granularity" xml:"Granularity"` + InstanceAmount int `json:"InstanceAmount" xml:"InstanceAmount"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_deployment_sets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_deployment_sets.go new file mode 100644 index 0000000..151d7b0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_deployment_sets.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DeploymentSets is a nested struct in ecs response +type DeploymentSets struct { + DeploymentSet []DeploymentSet `json:"DeploymentSet" xml:"DeploymentSet"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detach_instance_ram_role_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detach_instance_ram_role_result.go new file mode 100644 index 0000000..00c13a2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detach_instance_ram_role_result.go @@ -0,0 +1,25 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DetachInstanceRamRoleResult is a nested struct in ecs response +type DetachInstanceRamRoleResult struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Success bool `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + InstanceRamRoleSets InstanceRamRoleSetsInDetachInstanceRamRole `json:"InstanceRamRoleSets" xml:"InstanceRamRoleSets"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detach_instance_ram_role_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detach_instance_ram_role_results.go new file mode 100644 index 0000000..06c3b82 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detach_instance_ram_role_results.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DetachInstanceRamRoleResults is a nested struct in ecs response +type DetachInstanceRamRoleResults struct { + DetachInstanceRamRoleResult []DetachInstanceRamRoleResult `json:"DetachInstanceRamRoleResult" xml:"DetachInstanceRamRoleResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk.go new file mode 100644 index 0000000..3af49d6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk.go @@ -0,0 +1,54 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Disk is a nested struct in ecs response +type Disk struct { + DiskId string `json:"DiskId" xml:"DiskId"` + RegionId string `json:"RegionId" xml:"RegionId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + DiskName string `json:"DiskName" xml:"DiskName"` + Description string `json:"Description" xml:"Description"` + Type string `json:"Type" xml:"Type"` + Category string `json:"Category" xml:"Category"` + Size int `json:"Size" xml:"Size"` + ImageId string `json:"ImageId" xml:"ImageId"` + SourceSnapshotId string `json:"SourceSnapshotId" xml:"SourceSnapshotId"` + AutoSnapshotPolicyId string `json:"AutoSnapshotPolicyId" xml:"AutoSnapshotPolicyId"` + ProductCode string `json:"ProductCode" xml:"ProductCode"` + Portable bool `json:"Portable" xml:"Portable"` + Status string `json:"Status" xml:"Status"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Device string `json:"Device" xml:"Device"` + DeleteWithInstance bool `json:"DeleteWithInstance" xml:"DeleteWithInstance"` + DeleteAutoSnapshot bool `json:"DeleteAutoSnapshot" xml:"DeleteAutoSnapshot"` + EnableAutoSnapshot bool `json:"EnableAutoSnapshot" xml:"EnableAutoSnapshot"` + EnableAutomatedSnapshotPolicy bool `json:"EnableAutomatedSnapshotPolicy" xml:"EnableAutomatedSnapshotPolicy"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + AttachedTime string `json:"AttachedTime" xml:"AttachedTime"` + DetachedTime string `json:"DetachedTime" xml:"DetachedTime"` + DiskChargeType string `json:"DiskChargeType" xml:"DiskChargeType"` + ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + Encrypted bool `json:"Encrypted" xml:"Encrypted"` + MountInstanceNum int `json:"MountInstanceNum" xml:"MountInstanceNum"` + IOPS int `json:"IOPS" xml:"IOPS"` + IOPSRead int `json:"IOPSRead" xml:"IOPSRead"` + IOPSWrite int `json:"IOPSWrite" xml:"IOPSWrite"` + OperationLocks OperationLocksInDescribeDisks `json:"OperationLocks" xml:"OperationLocks"` + MountInstances MountInstances `json:"MountInstances" xml:"MountInstances"` + Tags TagsInDescribeDisks `json:"Tags" xml:"Tags"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mapping.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mapping.go new file mode 100644 index 0000000..50b7c18 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mapping.go @@ -0,0 +1,27 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DiskDeviceMapping is a nested struct in ecs response +type DiskDeviceMapping struct { + SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` + Size string `json:"Size" xml:"Size"` + Device string `json:"Device" xml:"Device"` + Type string `json:"Type" xml:"Type"` + Format string `json:"Format" xml:"Format"` + ImportOSSBucket string `json:"ImportOSSBucket" xml:"ImportOSSBucket"` + ImportOSSObject string `json:"ImportOSSObject" xml:"ImportOSSObject"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings.go new file mode 100644 index 0000000..9585dcf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DiskDeviceMappings is a nested struct in ecs response +type DiskDeviceMappings struct { + DiskDeviceMapping []DiskDeviceMapping `json:"DiskDeviceMapping" xml:"DiskDeviceMapping"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_event_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_event_set.go new file mode 100644 index 0000000..6b334e5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_event_set.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DiskEventSet is a nested struct in ecs response +type DiskEventSet struct { + DiskEventType []DiskEventType `json:"DiskEventType" xml:"DiskEventType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_event_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_event_type.go new file mode 100644 index 0000000..56f1324 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_event_type.go @@ -0,0 +1,24 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DiskEventType is a nested struct in ecs response +type DiskEventType struct { + EventId string `json:"EventId" xml:"EventId"` + EventTime string `json:"EventTime" xml:"EventTime"` + EventEndTime string `json:"EventEndTime" xml:"EventEndTime"` + EventType EventType `json:"EventType" xml:"EventType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_full_status_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_full_status_set.go new file mode 100644 index 0000000..fe46bf1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_full_status_set.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DiskFullStatusSet is a nested struct in ecs response +type DiskFullStatusSet struct { + DiskFullStatusType []DiskFullStatusType `json:"DiskFullStatusType" xml:"DiskFullStatusType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_full_status_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_full_status_type.go new file mode 100644 index 0000000..ee24310 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_full_status_type.go @@ -0,0 +1,24 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DiskFullStatusType is a nested struct in ecs response +type DiskFullStatusType struct { + DiskId string `json:"DiskId" xml:"DiskId"` + Status Status `json:"Status" xml:"Status"` + HealthStatus HealthStatus `json:"HealthStatus" xml:"HealthStatus"` + DiskEventSet DiskEventSet `json:"DiskEventSet" xml:"DiskEventSet"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_monitor_data.go new file mode 100644 index 0000000..3fb25e2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_monitor_data.go @@ -0,0 +1,30 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DiskMonitorData is a nested struct in ecs response +type DiskMonitorData struct { + DiskId string `json:"DiskId" xml:"DiskId"` + IOPSRead int `json:"IOPSRead" xml:"IOPSRead"` + IOPSWrite int `json:"IOPSWrite" xml:"IOPSWrite"` + IOPSTotal int `json:"IOPSTotal" xml:"IOPSTotal"` + BPSRead int `json:"BPSRead" xml:"BPSRead"` + BPSWrite int `json:"BPSWrite" xml:"BPSWrite"` + BPSTotal int `json:"BPSTotal" xml:"BPSTotal"` + LatencyRead int `json:"LatencyRead" xml:"LatencyRead"` + LatencyWrite int `json:"LatencyWrite" xml:"LatencyWrite"` + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disks.go new file mode 100644 index 0000000..789dd57 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disks.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Disks is a nested struct in ecs response +type Disks struct { + Disk []Disk `json:"Disk" xml:"Disk"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address.go new file mode 100644 index 0000000..52906ff --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address.go @@ -0,0 +1,25 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EipAddress is a nested struct in ecs response +type EipAddress struct { + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + IsSupportUnassociate bool `json:"IsSupportUnassociate" xml:"IsSupportUnassociate"` + IpAddress string `json:"IpAddress" xml:"IpAddress"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + AllocationId string `json:"AllocationId" xml:"AllocationId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address_in_describe_eip_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address_in_describe_eip_addresses.go new file mode 100644 index 0000000..6315d2b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address_in_describe_eip_addresses.go @@ -0,0 +1,33 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EipAddressInDescribeEipAddresses is a nested struct in ecs response +type EipAddressInDescribeEipAddresses struct { + RegionId string `json:"RegionId" xml:"RegionId"` + IpAddress string `json:"IpAddress" xml:"IpAddress"` + AllocationId string `json:"AllocationId" xml:"AllocationId"` + Status string `json:"Status" xml:"Status"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Bandwidth string `json:"Bandwidth" xml:"Bandwidth"` + EipBandwidth string `json:"EipBandwidth" xml:"EipBandwidth"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + AllocationTime string `json:"AllocationTime" xml:"AllocationTime"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` + OperationLocks OperationLocksInDescribeEipAddresses `json:"OperationLocks" xml:"OperationLocks"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_addresses.go new file mode 100644 index 0000000..bef9830 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_addresses.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EipAddresses is a nested struct in ecs response +type EipAddresses struct { + EipAddress []EipAddressInDescribeEipAddresses `json:"EipAddress" xml:"EipAddress"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_data.go new file mode 100644 index 0000000..4d559e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_data.go @@ -0,0 +1,26 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EipMonitorData is a nested struct in ecs response +type EipMonitorData struct { + EipPackets int `json:"EipPackets" xml:"EipPackets"` + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` + EipFlow int `json:"EipFlow" xml:"EipFlow"` + EipRX int `json:"EipRX" xml:"EipRX"` + EipBandwidth int `json:"EipBandwidth" xml:"EipBandwidth"` + EipTX int `json:"EipTX" xml:"EipTX"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_datas_in_describe_eip_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_datas_in_describe_eip_monitor_data.go new file mode 100644 index 0000000..04b66a9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_datas_in_describe_eip_monitor_data.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EipMonitorDatasInDescribeEipMonitorData is a nested struct in ecs response +type EipMonitorDatasInDescribeEipMonitorData struct { + EipMonitorData []EipMonitorData `json:"EipMonitorData" xml:"EipMonitorData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_datas_in_describe_new_project_eip_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_datas_in_describe_new_project_eip_monitor_data.go new file mode 100644 index 0000000..8beed79 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_datas_in_describe_new_project_eip_monitor_data.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EipMonitorDatasInDescribeNewProjectEipMonitorData is a nested struct in ecs response +type EipMonitorDatasInDescribeNewProjectEipMonitorData struct { + EipMonitorData []EipMonitorData `json:"EipMonitorData" xml:"EipMonitorData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_event_cycle_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_event_cycle_status.go new file mode 100644 index 0000000..e365079 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_event_cycle_status.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EventCycleStatus is a nested struct in ecs response +type EventCycleStatus struct { + Name string `json:"Name" xml:"Name"` + Code int `json:"Code" xml:"Code"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_event_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_event_type.go new file mode 100644 index 0000000..9121810 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_event_type.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EventType is a nested struct in ecs response +type EventType struct { + Name string `json:"Name" xml:"Name"` + Code int `json:"Code" xml:"Code"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_entries.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_entries.go new file mode 100644 index 0000000..07ef77a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_entries.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ForwardTableEntries is a nested struct in ecs response +type ForwardTableEntries struct { + ForwardTableEntry []ForwardTableEntry `json:"ForwardTableEntry" xml:"ForwardTableEntry"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_entry.go new file mode 100644 index 0000000..e7a1ed6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_entry.go @@ -0,0 +1,28 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ForwardTableEntry is a nested struct in ecs response +type ForwardTableEntry struct { + ForwardTableId string `json:"ForwardTableId" xml:"ForwardTableId"` + ForwardEntryId string `json:"ForwardEntryId" xml:"ForwardEntryId"` + ExternalIp string `json:"ExternalIp" xml:"ExternalIp"` + ExternalPort string `json:"ExternalPort" xml:"ExternalPort"` + IpProtocol string `json:"IpProtocol" xml:"IpProtocol"` + InternalIp string `json:"InternalIp" xml:"InternalIp"` + InternalPort string `json:"InternalPort" xml:"InternalPort"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_ids_in_create_nat_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_ids_in_create_nat_gateway.go new file mode 100644 index 0000000..fb9d919 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_ids_in_create_nat_gateway.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ForwardTableIdsInCreateNatGateway is a nested struct in ecs response +type ForwardTableIdsInCreateNatGateway struct { + ForwardTableId []string `json:"ForwardTableId" xml:"ForwardTableId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_ids_in_describe_nat_gateways.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_ids_in_describe_nat_gateways.go new file mode 100644 index 0000000..a28d7d5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_ids_in_describe_nat_gateways.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ForwardTableIdsInDescribeNatGateways is a nested struct in ecs response +type ForwardTableIdsInDescribeNatGateways struct { + ForwardTableId []string `json:"ForwardTableId" xml:"ForwardTableId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ha_vip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ha_vip.go new file mode 100644 index 0000000..6c75400 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ha_vip.go @@ -0,0 +1,31 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HaVip is a nested struct in ecs response +type HaVip struct { + HaVipId string `json:"HaVipId" xml:"HaVipId"` + RegionId string `json:"RegionId" xml:"RegionId"` + VpcId string `json:"VpcId" xml:"VpcId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + IpAddress string `json:"IpAddress" xml:"IpAddress"` + Status string `json:"Status" xml:"Status"` + MasterInstanceId string `json:"MasterInstanceId" xml:"MasterInstanceId"` + Description string `json:"Description" xml:"Description"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + AssociatedInstances AssociatedInstances `json:"AssociatedInstances" xml:"AssociatedInstances"` + AssociatedEipAddresses AssociatedEipAddresses `json:"AssociatedEipAddresses" xml:"AssociatedEipAddresses"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ha_vips.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ha_vips.go new file mode 100644 index 0000000..2585d4f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ha_vips.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HaVips is a nested struct in ecs response +type HaVips struct { + HaVip []HaVip `json:"HaVip" xml:"HaVip"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_health_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_health_status.go new file mode 100644 index 0000000..1528dc6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_health_status.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HealthStatus is a nested struct in ecs response +type HealthStatus struct { + Name string `json:"Name" xml:"Name"` + Code int `json:"Code" xml:"Code"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_host.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_host.go new file mode 100644 index 0000000..c7ac5cc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_host.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Host is a nested struct in ecs response +type Host struct { + HostId string `json:"HostId" xml:"HostId"` + InstanceIds InstanceIdsInDescribeDeploymentSetTopology `json:"InstanceIds" xml:"InstanceIds"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hosts_in_describe_deployment_set_topology.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hosts_in_describe_deployment_set_topology.go new file mode 100644 index 0000000..bb2b9ca --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hosts_in_describe_deployment_set_topology.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HostsInDescribeDeploymentSetTopology is a nested struct in ecs response +type HostsInDescribeDeploymentSetTopology struct { + Host []Host `json:"Host" xml:"Host"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hpc_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hpc_cluster.go new file mode 100644 index 0000000..16576fc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hpc_cluster.go @@ -0,0 +1,23 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HpcCluster is a nested struct in ecs response +type HpcCluster struct { + HpcClusterId string `json:"HpcClusterId" xml:"HpcClusterId"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hpc_clusters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hpc_clusters.go new file mode 100644 index 0000000..ca09c5b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hpc_clusters.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HpcClusters is a nested struct in ecs response +type HpcClusters struct { + HpcCluster []HpcCluster `json:"HpcCluster" xml:"HpcCluster"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image.go new file mode 100644 index 0000000..5419911 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image.go @@ -0,0 +1,42 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Image is a nested struct in ecs response +type Image struct { + Progress string `json:"Progress" xml:"Progress"` + ImageId string `json:"ImageId" xml:"ImageId"` + ImageName string `json:"ImageName" xml:"ImageName"` + ImageVersion string `json:"ImageVersion" xml:"ImageVersion"` + Description string `json:"Description" xml:"Description"` + Size int `json:"Size" xml:"Size"` + ImageOwnerAlias string `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"` + IsSupportIoOptimized bool `json:"IsSupportIoOptimized" xml:"IsSupportIoOptimized"` + IsSupportCloudinit bool `json:"IsSupportCloudinit" xml:"IsSupportCloudinit"` + OSName string `json:"OSName" xml:"OSName"` + Architecture string `json:"Architecture" xml:"Architecture"` + Status string `json:"Status" xml:"Status"` + ProductCode string `json:"ProductCode" xml:"ProductCode"` + IsSubscribed bool `json:"IsSubscribed" xml:"IsSubscribed"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + IsSelfShared string `json:"IsSelfShared" xml:"IsSelfShared"` + OSType string `json:"OSType" xml:"OSType"` + Platform string `json:"Platform" xml:"Platform"` + Usage string `json:"Usage" xml:"Usage"` + IsCopied bool `json:"IsCopied" xml:"IsCopied"` + DiskDeviceMappings DiskDeviceMappings `json:"DiskDeviceMappings" xml:"DiskDeviceMappings"` + Tags TagsInDescribeImages `json:"Tags" xml:"Tags"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_images.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_images.go new file mode 100644 index 0000000..f6bed39 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_images.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Images is a nested struct in ecs response +type Images struct { + Image []Image `json:"Image" xml:"Image"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inner_ip_address_in_describe_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inner_ip_address_in_describe_instance_attribute.go new file mode 100644 index 0000000..efc9e60 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inner_ip_address_in_describe_instance_attribute.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InnerIpAddressInDescribeInstanceAttribute is a nested struct in ecs response +type InnerIpAddressInDescribeInstanceAttribute struct { + IpAddress []string `json:"IpAddress" xml:"IpAddress"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inner_ip_address_in_describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inner_ip_address_in_describe_instances.go new file mode 100644 index 0000000..1f99dde --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inner_ip_address_in_describe_instances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InnerIpAddressInDescribeInstances is a nested struct in ecs response +type InnerIpAddressInDescribeInstances struct { + IpAddress []string `json:"IpAddress" xml:"IpAddress"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance.go new file mode 100644 index 0000000..531cd94 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance.go @@ -0,0 +1,70 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 ecs response +type Instance struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + Description string `json:"Description" xml:"Description"` + ImageId string `json:"ImageId" xml:"ImageId"` + OSName string `json:"OSName" xml:"OSName"` + OSType string `json:"OSType" xml:"OSType"` + RegionId string `json:"RegionId" xml:"RegionId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + ClusterId string `json:"ClusterId" xml:"ClusterId"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + Cpu int `json:"Cpu" xml:"Cpu"` + Memory int `json:"Memory" xml:"Memory"` + HostName string `json:"HostName" xml:"HostName"` + Status string `json:"Status" xml:"Status"` + SerialNumber string `json:"SerialNumber" xml:"SerialNumber"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + InternetMaxBandwidthIn int `json:"InternetMaxBandwidthIn" xml:"InternetMaxBandwidthIn"` + InternetMaxBandwidthOut int `json:"InternetMaxBandwidthOut" xml:"InternetMaxBandwidthOut"` + VlanId string `json:"VlanId" xml:"VlanId"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + StartTime string `json:"StartTime" xml:"StartTime"` + InstanceNetworkType string `json:"InstanceNetworkType" xml:"InstanceNetworkType"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + SaleCycle string `json:"SaleCycle" xml:"SaleCycle"` + ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` + AutoReleaseTime string `json:"AutoReleaseTime" xml:"AutoReleaseTime"` + IoOptimized bool `json:"IoOptimized" xml:"IoOptimized"` + DeviceAvailable bool `json:"DeviceAvailable" xml:"DeviceAvailable"` + InstanceTypeFamily string `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"` + LocalStorageCapacity int `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"` + LocalStorageAmount int `json:"LocalStorageAmount" xml:"LocalStorageAmount"` + GPUAmount int `json:"GPUAmount" xml:"GPUAmount"` + GPUSpec string `json:"GPUSpec" xml:"GPUSpec"` + SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` + SpotPriceLimit float64 `json:"SpotPriceLimit" xml:"SpotPriceLimit"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` + Recyclable bool `json:"Recyclable" xml:"Recyclable"` + HpcClusterId string `json:"HpcClusterId" xml:"HpcClusterId"` + StoppedMode string `json:"StoppedMode" xml:"StoppedMode"` + SecurityGroupIds SecurityGroupIdsInDescribeInstances `json:"SecurityGroupIds" xml:"SecurityGroupIds"` + PublicIpAddress PublicIpAddressInDescribeInstances `json:"PublicIpAddress" xml:"PublicIpAddress"` + InnerIpAddress InnerIpAddressInDescribeInstances `json:"InnerIpAddress" xml:"InnerIpAddress"` + RdmaIpAddress RdmaIpAddress `json:"RdmaIpAddress" xml:"RdmaIpAddress"` + VpcAttributes VpcAttributes `json:"VpcAttributes" xml:"VpcAttributes"` + EipAddress EipAddress `json:"EipAddress" xml:"EipAddress"` + DedicatedHostAttribute DedicatedHostAttribute `json:"DedicatedHostAttribute" xml:"DedicatedHostAttribute"` + NetworkInterfaces NetworkInterfacesInDescribeInstances `json:"NetworkInterfaces" xml:"NetworkInterfaces"` + OperationLocks OperationLocksInDescribeInstances `json:"OperationLocks" xml:"OperationLocks"` + Tags TagsInDescribeInstances `json:"Tags" xml:"Tags"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_cloud_assistant_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_cloud_assistant_status.go new file mode 100644 index 0000000..50d1aed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_cloud_assistant_status.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceCloudAssistantStatus is a nested struct in ecs response +type InstanceCloudAssistantStatus struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + CloudAssistantStatus string `json:"CloudAssistantStatus" xml:"CloudAssistantStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_cloud_assistant_status_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_cloud_assistant_status_set.go new file mode 100644 index 0000000..ce652ff --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_cloud_assistant_status_set.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceCloudAssistantStatusSet is a nested struct in ecs response +type InstanceCloudAssistantStatusSet struct { + InstanceCloudAssistantStatus []InstanceCloudAssistantStatus `json:"InstanceCloudAssistantStatus" xml:"InstanceCloudAssistantStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_full_status_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_full_status_set.go new file mode 100644 index 0000000..7e52409 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_full_status_set.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceFullStatusSet is a nested struct in ecs response +type InstanceFullStatusSet struct { + InstanceFullStatusType []InstanceFullStatusType `json:"InstanceFullStatusType" xml:"InstanceFullStatusType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_full_status_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_full_status_type.go new file mode 100644 index 0000000..8955446 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_full_status_type.go @@ -0,0 +1,24 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceFullStatusType is a nested struct in ecs response +type InstanceFullStatusType struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Status Status `json:"Status" xml:"Status"` + HealthStatus HealthStatus `json:"HealthStatus" xml:"HealthStatus"` + ScheduledSystemEventSet ScheduledSystemEventSet `json:"ScheduledSystemEventSet" xml:"ScheduledSystemEventSet"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_generations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_generations.go new file mode 100644 index 0000000..f09bc06 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_generations.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceGenerations is a nested struct in ecs response +type InstanceGenerations struct { + SupportedInstanceGeneration []string `json:"supportedInstanceGeneration" xml:"supportedInstanceGeneration"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_id_sets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_id_sets.go new file mode 100644 index 0000000..a825dc8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_id_sets.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceIdSets is a nested struct in ecs response +type InstanceIdSets struct { + InstanceIdSet []string `json:"InstanceIdSet" xml:"InstanceIdSet"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ids_in_describe_deployment_set_topology.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ids_in_describe_deployment_set_topology.go new file mode 100644 index 0000000..e0fc8ca --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ids_in_describe_deployment_set_topology.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceIdsInDescribeDeploymentSetTopology is a nested struct in ecs response +type InstanceIdsInDescribeDeploymentSetTopology struct { + InstanceId []string `json:"InstanceId" xml:"InstanceId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_monitor_data.go new file mode 100644 index 0000000..899132d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_monitor_data.go @@ -0,0 +1,37 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceMonitorData is a nested struct in ecs response +type InstanceMonitorData struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + CPU int `json:"CPU" xml:"CPU"` + IntranetRX int `json:"IntranetRX" xml:"IntranetRX"` + IntranetTX int `json:"IntranetTX" xml:"IntranetTX"` + IntranetBandwidth int `json:"IntranetBandwidth" xml:"IntranetBandwidth"` + InternetRX int `json:"InternetRX" xml:"InternetRX"` + InternetTX int `json:"InternetTX" xml:"InternetTX"` + InternetBandwidth int `json:"InternetBandwidth" xml:"InternetBandwidth"` + IOPSRead int `json:"IOPSRead" xml:"IOPSRead"` + IOPSWrite int `json:"IOPSWrite" xml:"IOPSWrite"` + BPSRead int `json:"BPSRead" xml:"BPSRead"` + BPSWrite int `json:"BPSWrite" xml:"BPSWrite"` + CPUCreditUsage float64 `json:"CPUCreditUsage" xml:"CPUCreditUsage"` + CPUCreditBalance float64 `json:"CPUCreditBalance" xml:"CPUCreditBalance"` + CPUAdvanceCreditBalance float64 `json:"CPUAdvanceCreditBalance" xml:"CPUAdvanceCreditBalance"` + CPUNotpaidSurplusCreditUsage float64 `json:"CPUNotpaidSurplusCreditUsage" xml:"CPUNotpaidSurplusCreditUsage"` + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_set.go new file mode 100644 index 0000000..430c7d4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_set.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceRamRoleSet is a nested struct in ecs response +type InstanceRamRoleSet struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + RamRoleName string `json:"RamRoleName" xml:"RamRoleName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_sets_in_describe_instance_ram_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_sets_in_describe_instance_ram_role.go new file mode 100644 index 0000000..6dba0a8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_sets_in_describe_instance_ram_role.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceRamRoleSetsInDescribeInstanceRamRole is a nested struct in ecs response +type InstanceRamRoleSetsInDescribeInstanceRamRole struct { + InstanceRamRoleSet []InstanceRamRoleSet `json:"InstanceRamRoleSet" xml:"InstanceRamRoleSet"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_sets_in_detach_instance_ram_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_sets_in_detach_instance_ram_role.go new file mode 100644 index 0000000..c115b7c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_sets_in_detach_instance_ram_role.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceRamRoleSetsInDetachInstanceRamRole is a nested struct in ecs response +type InstanceRamRoleSetsInDetachInstanceRamRole struct { + InstanceRamRoleSet []InstanceRamRoleSet `json:"InstanceRamRoleSet" xml:"InstanceRamRoleSet"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_renew_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_renew_attribute.go new file mode 100644 index 0000000..d275cb7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_renew_attribute.go @@ -0,0 +1,25 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceRenewAttribute is a nested struct in ecs response +type InstanceRenewAttribute struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + AutoRenewEnabled bool `json:"AutoRenewEnabled" xml:"AutoRenewEnabled"` + Duration int `json:"Duration" xml:"Duration"` + PeriodUnit string `json:"PeriodUnit" xml:"PeriodUnit"` + RenewalStatus string `json:"RenewalStatus" xml:"RenewalStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_renew_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_renew_attributes.go new file mode 100644 index 0000000..98accec --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_renew_attributes.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceRenewAttributes is a nested struct in ecs response +type InstanceRenewAttributes struct { + InstanceRenewAttribute []InstanceRenewAttribute `json:"InstanceRenewAttribute" xml:"InstanceRenewAttribute"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_status.go new file mode 100644 index 0000000..8f591c4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_status.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceStatus is a nested struct in ecs response +type InstanceStatus struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_statuses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_statuses.go new file mode 100644 index 0000000..15fd69b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_statuses.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceStatuses is a nested struct in ecs response +type InstanceStatuses struct { + InstanceStatus []InstanceStatus `json:"InstanceStatus" xml:"InstanceStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_system_event_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_system_event_set.go new file mode 100644 index 0000000..33d8b9e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_system_event_set.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceSystemEventSet is a nested struct in ecs response +type InstanceSystemEventSet struct { + InstanceSystemEventType []InstanceSystemEventType `json:"InstanceSystemEventType" xml:"InstanceSystemEventType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_system_event_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_system_event_type.go new file mode 100644 index 0000000..6d8385d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_system_event_type.go @@ -0,0 +1,27 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceSystemEventType is a nested struct in ecs response +type InstanceSystemEventType struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + EventId string `json:"EventId" xml:"EventId"` + EventPublishTime string `json:"EventPublishTime" xml:"EventPublishTime"` + NotBefore string `json:"NotBefore" xml:"NotBefore"` + EventFinishTime string `json:"EventFinishTime" xml:"EventFinishTime"` + EventType EventType `json:"EventType" xml:"EventType"` + EventCycleStatus EventCycleStatus `json:"EventCycleStatus" xml:"EventCycleStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_tag.go new file mode 100644 index 0000000..00804a6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_tag.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceTag is a nested struct in ecs response +type InstanceTag 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/ecs/struct_instance_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type.go new file mode 100644 index 0000000..ddf16c1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type.go @@ -0,0 +1,41 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceType is a nested struct in ecs response +type InstanceType struct { + MemorySize float64 `json:"MemorySize" xml:"MemorySize"` + InstancePpsRx int `json:"InstancePpsRx" xml:"InstancePpsRx"` + CpuCoreCount int `json:"CpuCoreCount" xml:"CpuCoreCount"` + Cores int `json:"Cores" xml:"Cores"` + Memory int `json:"Memory" xml:"Memory"` + InstanceTypeId string `json:"InstanceTypeId" xml:"InstanceTypeId"` + InstanceBandwidthRx int `json:"InstanceBandwidthRx" xml:"InstanceBandwidthRx"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + BaselineCredit int `json:"BaselineCredit" xml:"BaselineCredit"` + EniQuantity int `json:"EniQuantity" xml:"EniQuantity"` + Generation string `json:"Generation" xml:"Generation"` + GPUAmount int `json:"GPUAmount" xml:"GPUAmount"` + SupportIoOptimized string `json:"SupportIoOptimized" xml:"SupportIoOptimized"` + InstanceTypeFamily string `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"` + InitialCredit int `json:"InitialCredit" xml:"InitialCredit"` + InstancePpsTx int `json:"InstancePpsTx" xml:"InstancePpsTx"` + LocalStorageAmount int `json:"LocalStorageAmount" xml:"LocalStorageAmount"` + LocalStorageCapacity int `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"` + GPUSpec string `json:"GPUSpec" xml:"GPUSpec"` + LocalStorageCategory string `json:"LocalStorageCategory" xml:"LocalStorageCategory"` + InstanceBandwidthTx int `json:"InstanceBandwidthTx" xml:"InstanceBandwidthTx"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_families_in_describe_instance_type_families.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_families_in_describe_instance_type_families.go new file mode 100644 index 0000000..ed00ed4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_families_in_describe_instance_type_families.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceTypeFamiliesInDescribeInstanceTypeFamilies is a nested struct in ecs response +type InstanceTypeFamiliesInDescribeInstanceTypeFamilies struct { + InstanceTypeFamily []InstanceTypeFamily `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_families_in_describe_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_families_in_describe_zones.go new file mode 100644 index 0000000..ece8395 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_families_in_describe_zones.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceTypeFamiliesInDescribeZones is a nested struct in ecs response +type InstanceTypeFamiliesInDescribeZones struct { + SupportedInstanceTypeFamily []string `json:"supportedInstanceTypeFamily" xml:"supportedInstanceTypeFamily"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_family.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_family.go new file mode 100644 index 0000000..06c2797 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_family.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceTypeFamily is a nested struct in ecs response +type InstanceTypeFamily struct { + InstanceTypeFamilyId string `json:"InstanceTypeFamilyId" xml:"InstanceTypeFamilyId"` + Generation string `json:"Generation" xml:"Generation"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_image_support_instance_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_image_support_instance_types.go new file mode 100644 index 0000000..23dc524 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_image_support_instance_types.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceTypesInDescribeImageSupportInstanceTypes is a nested struct in ecs response +type InstanceTypesInDescribeImageSupportInstanceTypes struct { + InstanceType []InstanceType `json:"InstanceType" xml:"InstanceType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_instance_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_instance_types.go new file mode 100644 index 0000000..69012ea --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_instance_types.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceTypesInDescribeInstanceTypes is a nested struct in ecs response +type InstanceTypesInDescribeInstanceTypes struct { + InstanceType []InstanceType `json:"InstanceType" xml:"InstanceType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_zones.go new file mode 100644 index 0000000..250f80d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_zones.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceTypesInDescribeZones is a nested struct in ecs response +type InstanceTypesInDescribeZones struct { + SupportedInstanceType []string `json:"supportedInstanceType" xml:"supportedInstanceType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances.go new file mode 100644 index 0000000..2341912 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 ecs response +type Instances struct { + Instance []Instance `json:"Instance" xml:"Instance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation.go new file mode 100644 index 0000000..2eb8842 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation.go @@ -0,0 +1,32 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Invocation is a nested struct in ecs response +type Invocation struct { + CommandId string `json:"CommandId" xml:"CommandId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + CommandName string `json:"CommandName" xml:"CommandName"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + InvokeId string `json:"InvokeId" xml:"InvokeId"` + InvokeStatus string `json:"InvokeStatus" xml:"InvokeStatus"` + Timed bool `json:"Timed" xml:"Timed"` + Frequency string `json:"Frequency" xml:"Frequency"` + CommandType string `json:"CommandType" xml:"CommandType"` + InvocationResults InvocationResults `json:"InvocationResults" xml:"InvocationResults"` + InvokeInstances InvokeInstances `json:"InvokeInstances" xml:"InvokeInstances"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation_result.go new file mode 100644 index 0000000..86dc37c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation_result.go @@ -0,0 +1,27 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InvocationResult is a nested struct in ecs response +type InvocationResult struct { + CommandId string `json:"CommandId" xml:"CommandId"` + InvokeId string `json:"InvokeId" xml:"InvokeId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + FinishedTime string `json:"FinishedTime" xml:"FinishedTime"` + Output string `json:"Output" xml:"Output"` + InvokeRecordStatus string `json:"InvokeRecordStatus" xml:"InvokeRecordStatus"` + ExitCode int `json:"ExitCode" xml:"ExitCode"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation_results.go new file mode 100644 index 0000000..c2f0bb5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation_results.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InvocationResults is a nested struct in ecs response +type InvocationResults struct { + InvocationResult []InvocationResult `json:"InvocationResult" xml:"InvocationResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocations.go new file mode 100644 index 0000000..f7e1000 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocations.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Invocations is a nested struct in ecs response +type Invocations struct { + Invocation []Invocation `json:"Invocation" xml:"Invocation"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instance.go new file mode 100644 index 0000000..9c0b08e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instance.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InvokeInstance is a nested struct in ecs response +type InvokeInstance struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + InstanceInvokeStatus string `json:"InstanceInvokeStatus" xml:"InstanceInvokeStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instances.go new file mode 100644 index 0000000..2eb1790 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InvokeInstances is a nested struct in ecs response +type InvokeInstances struct { + InvokeInstance []InvokeInstance `json:"InvokeInstance" xml:"InvokeInstance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ip_range.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ip_range.go new file mode 100644 index 0000000..b7a4070 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ip_range.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IpRange is a nested struct in ecs response +type IpRange struct { + IpAddress string `json:"IpAddress" xml:"IpAddress"` + NicType string `json:"NicType" xml:"NicType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ip_ranges.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ip_ranges.go new file mode 100644 index 0000000..b0001af --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ip_ranges.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IpRanges is a nested struct in ecs response +type IpRanges struct { + IpRange []IpRange `json:"IpRange" xml:"IpRange"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_key_pair.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_key_pair.go new file mode 100644 index 0000000..6d55828 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_key_pair.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// KeyPair is a nested struct in ecs response +type KeyPair struct { + KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` + KeyPairFingerPrint string `json:"KeyPairFingerPrint" xml:"KeyPairFingerPrint"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_key_pairs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_key_pairs.go new file mode 100644 index 0000000..0c93a50 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_key_pairs.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// KeyPairs is a nested struct in ecs response +type KeyPairs struct { + KeyPair []KeyPair `json:"KeyPair" xml:"KeyPair"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_data.go new file mode 100644 index 0000000..55b94a5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_data.go @@ -0,0 +1,55 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LaunchTemplateData is a nested struct in ecs response +type LaunchTemplateData struct { + ImageId string `json:"ImageId" xml:"ImageId"` + ImageOwnerAlias string `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` + VpcId string `json:"VpcId" xml:"VpcId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + Description string `json:"Description" xml:"Description"` + InternetMaxBandwidthIn int `json:"InternetMaxBandwidthIn" xml:"InternetMaxBandwidthIn"` + InternetMaxBandwidthOut int `json:"InternetMaxBandwidthOut" xml:"InternetMaxBandwidthOut"` + HostName string `json:"HostName" xml:"HostName"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + SystemDiskSize int `json:"SystemDisk.Size" xml:"SystemDisk.Size"` + SystemDiskCategory string `json:"SystemDisk.Category" xml:"SystemDisk.Category"` + SystemDiskDiskName string `json:"SystemDisk.DiskName" xml:"SystemDisk.DiskName"` + SystemDiskDescription string `json:"SystemDisk.Description" xml:"SystemDisk.Description"` + SystemDiskIops int `json:"SystemDisk.Iops" xml:"SystemDisk.Iops"` + IoOptimized string `json:"IoOptimized" xml:"IoOptimized"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + Period int `json:"Period" xml:"Period"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + EnableVmOsConfig bool `json:"EnableVmOsConfig" xml:"EnableVmOsConfig"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + UserData string `json:"UserData" xml:"UserData"` + KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` + RamRoleName string `json:"RamRoleName" xml:"RamRoleName"` + AutoReleaseTime string `json:"AutoReleaseTime" xml:"AutoReleaseTime"` + SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` + SpotPriceLimit float64 `json:"SpotPriceLimit" xml:"SpotPriceLimit"` + SpotDuration int `json:"SpotDuration" xml:"SpotDuration"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + SecurityEnhancementStrategy bool `json:"SecurityEnhancementStrategy" xml:"SecurityEnhancementStrategy"` + DataDisks DataDisks `json:"DataDisks" xml:"DataDisks"` + NetworkInterfaces NetworkInterfacesInDescribeLaunchTemplateVersions `json:"NetworkInterfaces" xml:"NetworkInterfaces"` + Tags TagsInDescribeLaunchTemplateVersions `json:"Tags" xml:"Tags"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_set.go new file mode 100644 index 0000000..155e115 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_set.go @@ -0,0 +1,27 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LaunchTemplateSet is a nested struct in ecs response +type LaunchTemplateSet struct { + CreateTime string `json:"CreateTime" xml:"CreateTime"` + ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` + LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` + LaunchTemplateName string `json:"LaunchTemplateName" xml:"LaunchTemplateName"` + DefaultVersionNumber int `json:"DefaultVersionNumber" xml:"DefaultVersionNumber"` + LatestVersionNumber int `json:"LatestVersionNumber" xml:"LatestVersionNumber"` + CreatedBy string `json:"CreatedBy" xml:"CreatedBy"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_sets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_sets.go new file mode 100644 index 0000000..1ac4953 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_sets.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LaunchTemplateSets is a nested struct in ecs response +type LaunchTemplateSets struct { + LaunchTemplateSet []LaunchTemplateSet `json:"LaunchTemplateSet" xml:"LaunchTemplateSet"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_set.go new file mode 100644 index 0000000..46f53be --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_set.go @@ -0,0 +1,29 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LaunchTemplateVersionSet is a nested struct in ecs response +type LaunchTemplateVersionSet struct { + CreateTime string `json:"CreateTime" xml:"CreateTime"` + ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` + LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` + LaunchTemplateName string `json:"LaunchTemplateName" xml:"LaunchTemplateName"` + DefaultVersion bool `json:"DefaultVersion" xml:"DefaultVersion"` + VersionNumber int `json:"VersionNumber" xml:"VersionNumber"` + VersionDescription string `json:"VersionDescription" xml:"VersionDescription"` + CreatedBy string `json:"CreatedBy" xml:"CreatedBy"` + LaunchTemplateData LaunchTemplateData `json:"LaunchTemplateData" xml:"LaunchTemplateData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_sets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_sets.go new file mode 100644 index 0000000..2f2d1b3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_sets.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LaunchTemplateVersionSets is a nested struct in ecs response +type LaunchTemplateVersionSets struct { + LaunchTemplateVersionSet []LaunchTemplateVersionSet `json:"LaunchTemplateVersionSet" xml:"LaunchTemplateVersionSet"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_link.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_link.go new file mode 100644 index 0000000..f0afa50 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_link.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Link is a nested struct in ecs response +type Link struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + VpcId string `json:"VpcId" xml:"VpcId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_links.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_links.go new file mode 100644 index 0000000..bd64068 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_links.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Links is a nested struct in ecs response +type Links struct { + Link []Link `json:"Link" xml:"Link"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_lock_reason.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_lock_reason.go new file mode 100644 index 0000000..a4a3870 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_lock_reason.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LockReason is a nested struct in ecs response +type LockReason struct { + LockReason string `json:"LockReason" xml:"LockReason"` + LockMsg string `json:"LockMsg" xml:"LockMsg"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_disk_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_disk_monitor_data.go new file mode 100644 index 0000000..b4fb6b1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_disk_monitor_data.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MonitorDataInDescribeDiskMonitorData is a nested struct in ecs response +type MonitorDataInDescribeDiskMonitorData struct { + DiskMonitorData []DiskMonitorData `json:"DiskMonitorData" xml:"DiskMonitorData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_instance_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_instance_monitor_data.go new file mode 100644 index 0000000..3d57afe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_instance_monitor_data.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MonitorDataInDescribeInstanceMonitorData is a nested struct in ecs response +type MonitorDataInDescribeInstanceMonitorData struct { + InstanceMonitorData []InstanceMonitorData `json:"InstanceMonitorData" xml:"InstanceMonitorData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_snapshot_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_snapshot_monitor_data.go new file mode 100644 index 0000000..efec563 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_snapshot_monitor_data.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MonitorDataInDescribeSnapshotMonitorData is a nested struct in ecs response +type MonitorDataInDescribeSnapshotMonitorData struct { + DataPoint []DataPoint `json:"DataPoint" xml:"DataPoint"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_mount_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_mount_instance.go new file mode 100644 index 0000000..c3db980 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_mount_instance.go @@ -0,0 +1,23 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MountInstance is a nested struct in ecs response +type MountInstance struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Device string `json:"Device" xml:"Device"` + AttachedTime string `json:"AttachedTime" xml:"AttachedTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_mount_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_mount_instances.go new file mode 100644 index 0000000..bdbfe6c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_mount_instances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MountInstances is a nested struct in ecs response +type MountInstances struct { + MountInstance []MountInstance `json:"MountInstance" xml:"MountInstance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_nat_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_nat_gateway.go new file mode 100644 index 0000000..ac87f24 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_nat_gateway.go @@ -0,0 +1,32 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NatGateway is a nested struct in ecs response +type NatGateway struct { + NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` + RegionId string `json:"RegionId" xml:"RegionId"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + VpcId string `json:"VpcId" xml:"VpcId"` + Spec string `json:"Spec" xml:"Spec"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Status string `json:"Status" xml:"Status"` + ForwardTableIds ForwardTableIdsInDescribeNatGateways `json:"ForwardTableIds" xml:"ForwardTableIds"` + BandwidthPackageIds BandwidthPackageIdsInDescribeNatGateways `json:"BandwidthPackageIds" xml:"BandwidthPackageIds"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_nat_gateways.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_nat_gateways.go new file mode 100644 index 0000000..abaccb9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_nat_gateways.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NatGateways is a nested struct in ecs response +type NatGateways struct { + NatGateway []NatGateway `json:"NatGateway" xml:"NatGateway"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface.go new file mode 100644 index 0000000..908e723 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface.go @@ -0,0 +1,27 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NetworkInterface is a nested struct in ecs response +type NetworkInterface struct { + SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` + PrimaryIpAddress string `json:"PrimaryIpAddress" xml:"PrimaryIpAddress"` + MacAddress string `json:"MacAddress" xml:"MacAddress"` + Description string `json:"Description" xml:"Description"` + NetworkInterfaceName string `json:"NetworkInterfaceName" xml:"NetworkInterfaceName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_permission.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_permission.go new file mode 100644 index 0000000..4c2ac06 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_permission.go @@ -0,0 +1,26 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NetworkInterfacePermission is a nested struct in ecs response +type NetworkInterfacePermission struct { + Permission string `json:"Permission" xml:"Permission"` + AccountId int `json:"AccountId" xml:"AccountId"` + NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` + ServiceName string `json:"ServiceName" xml:"ServiceName"` + NetworkInterfacePermissionId string `json:"NetworkInterfacePermissionId" xml:"NetworkInterfacePermissionId"` + PermissionState string `json:"PermissionState" xml:"PermissionState"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_permissions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_permissions.go new file mode 100644 index 0000000..31c2326 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_permissions.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NetworkInterfacePermissions is a nested struct in ecs response +type NetworkInterfacePermissions struct { + NetworkInterfacePermission []NetworkInterfacePermission `json:"NetworkInterfacePermission" xml:"NetworkInterfacePermission"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_set.go new file mode 100644 index 0000000..a2bc8da --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_set.go @@ -0,0 +1,35 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NetworkInterfaceSet is a nested struct in ecs response +type NetworkInterfaceSet struct { + NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` + Status string `json:"Status" xml:"Status"` + Type string `json:"Type" xml:"Type"` + VpcId string `json:"VpcId" xml:"VpcId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + PrivateIpAddress string `json:"PrivateIpAddress" xml:"PrivateIpAddress"` + MacAddress string `json:"MacAddress" xml:"MacAddress"` + NetworkInterfaceName string `json:"NetworkInterfaceName" xml:"NetworkInterfaceName"` + Description string `json:"Description" xml:"Description"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + SecurityGroupIds SecurityGroupIdsInDescribeNetworkInterfaces `json:"SecurityGroupIds" xml:"SecurityGroupIds"` + AssociatedPublicIp AssociatedPublicIp `json:"AssociatedPublicIp" xml:"AssociatedPublicIp"` + PrivateIpSets PrivateIpSets `json:"PrivateIpSets" xml:"PrivateIpSets"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_sets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_sets.go new file mode 100644 index 0000000..e62c104 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_sets.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NetworkInterfaceSets is a nested struct in ecs response +type NetworkInterfaceSets struct { + NetworkInterfaceSet []NetworkInterfaceSet `json:"NetworkInterfaceSet" xml:"NetworkInterfaceSet"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interfaces_in_describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interfaces_in_describe_instances.go new file mode 100644 index 0000000..f506480 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interfaces_in_describe_instances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NetworkInterfacesInDescribeInstances is a nested struct in ecs response +type NetworkInterfacesInDescribeInstances struct { + NetworkInterface []NetworkInterface `json:"NetworkInterface" xml:"NetworkInterface"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interfaces_in_describe_launch_template_versions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interfaces_in_describe_launch_template_versions.go new file mode 100644 index 0000000..44e533a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interfaces_in_describe_launch_template_versions.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NetworkInterfacesInDescribeLaunchTemplateVersions is a nested struct in ecs response +type NetworkInterfacesInDescribeLaunchTemplateVersions struct { + NetworkInterface []NetworkInterface `json:"NetworkInterface" xml:"NetworkInterface"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_types_in_describe_recommend_instance_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_types_in_describe_recommend_instance_type.go new file mode 100644 index 0000000..519a9b6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_types_in_describe_recommend_instance_type.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NetworkTypesInDescribeRecommendInstanceType is a nested struct in ecs response +type NetworkTypesInDescribeRecommendInstanceType struct { + NetworkType []string `json:"NetworkType" xml:"NetworkType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_types_in_describe_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_types_in_describe_zones.go new file mode 100644 index 0000000..383cbf4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_types_in_describe_zones.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NetworkTypesInDescribeZones is a nested struct in ecs response +type NetworkTypesInDescribeZones struct { + SupportedNetworkCategory []string `json:"supportedNetworkCategory" xml:"supportedNetworkCategory"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_next_hop.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_next_hop.go new file mode 100644 index 0000000..3c20dc2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_next_hop.go @@ -0,0 +1,24 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NextHop is a nested struct in ecs response +type NextHop struct { + NextHopType string `json:"NextHopType" xml:"NextHopType"` + NextHopId string `json:"NextHopId" xml:"NextHopId"` + Enabled int `json:"Enabled" xml:"Enabled"` + Weight int `json:"Weight" xml:"Weight"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_next_hops.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_next_hops.go new file mode 100644 index 0000000..8c89647 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_next_hops.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NextHops is a nested struct in ecs response +type NextHops struct { + NextHop []NextHop `json:"NextHop" xml:"NextHop"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_lock.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_lock.go new file mode 100644 index 0000000..444bcf3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_lock.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OperationLock is a nested struct in ecs response +type OperationLock struct { + LockReason string `json:"LockReason" xml:"LockReason"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_disks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_disks.go new file mode 100644 index 0000000..a169803 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_disks.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OperationLocksInDescribeDisks is a nested struct in ecs response +type OperationLocksInDescribeDisks struct { + OperationLock []OperationLock `json:"OperationLock" xml:"OperationLock"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_eip_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_eip_addresses.go new file mode 100644 index 0000000..79c313c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_eip_addresses.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OperationLocksInDescribeEipAddresses is a nested struct in ecs response +type OperationLocksInDescribeEipAddresses struct { + LockReason []LockReason `json:"LockReason" xml:"LockReason"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_instance_attribute.go new file mode 100644 index 0000000..29fb777 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_instance_attribute.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OperationLocksInDescribeInstanceAttribute is a nested struct in ecs response +type OperationLocksInDescribeInstanceAttribute struct { + LockReason []LockReason `json:"LockReason" xml:"LockReason"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_instances.go new file mode 100644 index 0000000..b28abc2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_instances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OperationLocksInDescribeInstances is a nested struct in ecs response +type OperationLocksInDescribeInstances struct { + LockReason []LockReason `json:"LockReason" xml:"LockReason"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress.go new file mode 100644 index 0000000..61bb990 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress.go @@ -0,0 +1,24 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OperationProgress is a nested struct in ecs response +type OperationProgress struct { + OperationStatus string `json:"OperationStatus" xml:"OperationStatus"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + RelatedItemSet RelatedItemSet `json:"RelatedItemSet" xml:"RelatedItemSet"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set.go new file mode 100644 index 0000000..142ea4f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OperationProgressSet is a nested struct in ecs response +type OperationProgressSet struct { + OperationProgress []OperationProgress `json:"OperationProgress" xml:"OperationProgress"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_permission.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_permission.go new file mode 100644 index 0000000..9cfe2de --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_permission.go @@ -0,0 +1,36 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Permission is a nested struct in ecs response +type Permission struct { + IpProtocol string `json:"IpProtocol" xml:"IpProtocol"` + PortRange string `json:"PortRange" xml:"PortRange"` + SourceGroupId string `json:"SourceGroupId" xml:"SourceGroupId"` + SourceGroupName string `json:"SourceGroupName" xml:"SourceGroupName"` + SourceCidrIp string `json:"SourceCidrIp" xml:"SourceCidrIp"` + Policy string `json:"Policy" xml:"Policy"` + NicType string `json:"NicType" xml:"NicType"` + SourceGroupOwnerAccount string `json:"SourceGroupOwnerAccount" xml:"SourceGroupOwnerAccount"` + DestGroupId string `json:"DestGroupId" xml:"DestGroupId"` + DestGroupName string `json:"DestGroupName" xml:"DestGroupName"` + DestCidrIp string `json:"DestCidrIp" xml:"DestCidrIp"` + DestGroupOwnerAccount string `json:"DestGroupOwnerAccount" xml:"DestGroupOwnerAccount"` + Priority string `json:"Priority" xml:"Priority"` + Direction string `json:"Direction" xml:"Direction"` + Description string `json:"Description" xml:"Description"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_permissions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_permissions.go new file mode 100644 index 0000000..856f7b1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_permissions.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Permissions is a nested struct in ecs response +type Permissions struct { + Permission []Permission `json:"Permission" xml:"Permission"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_physical_connection_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_physical_connection_set.go new file mode 100644 index 0000000..91ec256 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_physical_connection_set.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PhysicalConnectionSet is a nested struct in ecs response +type PhysicalConnectionSet struct { + PhysicalConnectionType []PhysicalConnectionType `json:"PhysicalConnectionType" xml:"PhysicalConnectionType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_physical_connection_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_physical_connection_type.go new file mode 100644 index 0000000..5b79b0d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_physical_connection_type.go @@ -0,0 +1,38 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PhysicalConnectionType is a nested struct in ecs response +type PhysicalConnectionType struct { + PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` + AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` + Type string `json:"Type" xml:"Type"` + Status string `json:"Status" xml:"Status"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + EnabledTime string `json:"EnabledTime" xml:"EnabledTime"` + LineOperator string `json:"LineOperator" xml:"LineOperator"` + Spec string `json:"Spec" xml:"Spec"` + PeerLocation string `json:"PeerLocation" xml:"PeerLocation"` + PortType string `json:"PortType" xml:"PortType"` + RedundantPhysicalConnectionId string `json:"RedundantPhysicalConnectionId" xml:"RedundantPhysicalConnectionId"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + AdLocation string `json:"AdLocation" xml:"AdLocation"` + PortNumber string `json:"PortNumber" xml:"PortNumber"` + CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price.go new file mode 100644 index 0000000..21721a2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price.go @@ -0,0 +1,24 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Price is a nested struct in ecs response +type Price struct { + DiscountPrice float64 `json:"DiscountPrice" xml:"DiscountPrice"` + TradePrice float64 `json:"TradePrice" xml:"TradePrice"` + OriginalPrice float64 `json:"OriginalPrice" xml:"OriginalPrice"` + Currency string `json:"Currency" xml:"Currency"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_info.go new file mode 100644 index 0000000..3e02bfc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_info.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PriceInfo is a nested struct in ecs response +type PriceInfo struct { + Price Price `json:"Price" xml:"Price"` + Rules RulesInDescribeRenewalPrice `json:"Rules" xml:"Rules"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_address_in_describe_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_address_in_describe_instance_attribute.go new file mode 100644 index 0000000..3555471 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_address_in_describe_instance_attribute.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PrivateIpAddressInDescribeInstanceAttribute is a nested struct in ecs response +type PrivateIpAddressInDescribeInstanceAttribute struct { + IpAddress []string `json:"IpAddress" xml:"IpAddress"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_address_in_describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_address_in_describe_instances.go new file mode 100644 index 0000000..611be66 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_address_in_describe_instances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PrivateIpAddressInDescribeInstances is a nested struct in ecs response +type PrivateIpAddressInDescribeInstances struct { + IpAddress []string `json:"IpAddress" xml:"IpAddress"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_set.go new file mode 100644 index 0000000..9363951 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_set.go @@ -0,0 +1,23 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PrivateIpSet is a nested struct in ecs response +type PrivateIpSet struct { + PrivateIpAddress string `json:"PrivateIpAddress" xml:"PrivateIpAddress"` + Primary bool `json:"Primary" xml:"Primary"` + AssociatedPublicIp AssociatedPublicIp `json:"AssociatedPublicIp" xml:"AssociatedPublicIp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets.go new file mode 100644 index 0000000..412ab96 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PrivateIpSets is a nested struct in ecs response +type PrivateIpSets struct { + PrivateIpSet []PrivateIpSet `json:"PrivateIpSet" xml:"PrivateIpSet"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_address_in_describe_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_address_in_describe_instance_attribute.go new file mode 100644 index 0000000..22d4a8f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_address_in_describe_instance_attribute.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PublicIpAddressInDescribeInstanceAttribute is a nested struct in ecs response +type PublicIpAddressInDescribeInstanceAttribute struct { + IpAddress []string `json:"IpAddress" xml:"IpAddress"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_address_in_describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_address_in_describe_instances.go new file mode 100644 index 0000000..cba813a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_address_in_describe_instances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PublicIpAddressInDescribeInstances is a nested struct in ecs response +type PublicIpAddressInDescribeInstances struct { + IpAddress []string `json:"IpAddress" xml:"IpAddress"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_addresse.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_addresse.go new file mode 100644 index 0000000..ea2cd85 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_addresse.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PublicIpAddresse is a nested struct in ecs response +type PublicIpAddresse struct { + AllocationId string `json:"AllocationId" xml:"AllocationId"` + IpAddress string `json:"IpAddress" xml:"IpAddress"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_addresses.go new file mode 100644 index 0000000..b7e4c72 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_addresses.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PublicIpAddresses is a nested struct in ecs response +type PublicIpAddresses struct { + PublicIpAddresse []PublicIpAddresse `json:"PublicIpAddresse" xml:"PublicIpAddresse"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rack.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rack.go new file mode 100644 index 0000000..cf49a8b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rack.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Rack is a nested struct in ecs response +type Rack struct { + RackId string `json:"RackId" xml:"RackId"` + Hosts HostsInDescribeDeploymentSetTopology `json:"Hosts" xml:"Hosts"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_racks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_racks.go new file mode 100644 index 0000000..1adec04 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_racks.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Racks is a nested struct in ecs response +type Racks struct { + Rack []Rack `json:"Rack" xml:"Rack"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rdma_ip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rdma_ip_address.go new file mode 100644 index 0000000..0a08e7f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rdma_ip_address.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RdmaIpAddress is a nested struct in ecs response +type RdmaIpAddress struct { + IpAddress []string `json:"IpAddress" xml:"IpAddress"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recommend_instance_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recommend_instance_type.go new file mode 100644 index 0000000..d7f7c31 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recommend_instance_type.go @@ -0,0 +1,25 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecommendInstanceType is a nested struct in ecs response +type RecommendInstanceType struct { + RegionNo string `json:"RegionNo" xml:"RegionNo"` + CommodityCode string `json:"CommodityCode" xml:"CommodityCode"` + Scene string `json:"Scene" xml:"Scene"` + InstanceType InstanceType `json:"InstanceType" xml:"InstanceType"` + Zones ZonesInDescribeRecommendInstanceType `json:"Zones" xml:"Zones"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recycle_bin_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recycle_bin_model.go new file mode 100644 index 0000000..7b613df --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recycle_bin_model.go @@ -0,0 +1,26 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecycleBinModel is a nested struct in ecs response +type RecycleBinModel struct { + ResourceId string `json:"ResourceId" xml:"ResourceId"` + RegionId string `json:"RegionId" xml:"RegionId"` + ResourceType string `json:"ResourceType" xml:"ResourceType"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Status string `json:"Status" xml:"Status"` + RelationResources RelationResources `json:"RelationResources" xml:"RelationResources"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recycle_bin_models.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recycle_bin_models.go new file mode 100644 index 0000000..e701e9d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recycle_bin_models.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecycleBinModels is a nested struct in ecs response +type RecycleBinModels struct { + RecycleBinModel []RecycleBinModel `json:"RecycleBinModel" xml:"RecycleBinModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referencing_security_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referencing_security_group.go new file mode 100644 index 0000000..e57f98b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referencing_security_group.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ReferencingSecurityGroup is a nested struct in ecs response +type ReferencingSecurityGroup struct { + AliUid string `json:"AliUid" xml:"AliUid"` + SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referencing_security_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referencing_security_groups.go new file mode 100644 index 0000000..e73740f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referencing_security_groups.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ReferencingSecurityGroups is a nested struct in ecs response +type ReferencingSecurityGroups struct { + ReferencingSecurityGroup []ReferencingSecurityGroup `json:"ReferencingSecurityGroup" xml:"ReferencingSecurityGroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_region.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_region.go new file mode 100644 index 0000000..bc8163b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_region.go @@ -0,0 +1,24 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 ecs response +type Region struct { + RegionId string `json:"RegionId" xml:"RegionId"` + LocalName string `json:"LocalName" xml:"LocalName"` + RegionEndpoint string `json:"RegionEndpoint" xml:"RegionEndpoint"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_regions.go new file mode 100644 index 0000000..e3936d7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_regions.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 ecs response +type Regions struct { + Region []Region `json:"Region" xml:"Region"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item.go new file mode 100644 index 0000000..4f3b071 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RelatedItem is a nested struct in ecs response +type RelatedItem struct { + Name string `json:"Name" xml:"Name"` + Value string `json:"Value" xml:"Value"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set.go new file mode 100644 index 0000000..10018fd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RelatedItemSet is a nested struct in ecs response +type RelatedItemSet struct { + RelatedItem []RelatedItem `json:"RelatedItem" xml:"RelatedItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_relation_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_relation_resource.go new file mode 100644 index 0000000..8a7d799 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_relation_resource.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RelationResource is a nested struct in ecs response +type RelationResource struct { + RelationResourceId string `json:"RelationResourceId" xml:"RelationResourceId"` + RelationResourceType string `json:"RelationResourceType" xml:"RelationResourceType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_relation_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_relation_resources.go new file mode 100644 index 0000000..3903ff2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_relation_resources.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RelationResources is a nested struct in ecs response +type RelationResources struct { + RelationResource []RelationResource `json:"relationResource" xml:"relationResource"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource.go new file mode 100644 index 0000000..dc698a2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource.go @@ -0,0 +1,23 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Resource is a nested struct in ecs response +type Resource struct { + ResourceId string `json:"ResourceId" xml:"ResourceId"` + ResourceType string `json:"ResourceType" xml:"ResourceType"` + RegionId string `json:"RegionId" xml:"RegionId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource_type_count.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource_type_count.go new file mode 100644 index 0000000..88371e4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource_type_count.go @@ -0,0 +1,26 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResourceTypeCount is a nested struct in ecs response +type ResourceTypeCount struct { + Instance int `json:"Instance" xml:"Instance"` + Disk int `json:"Disk" xml:"Disk"` + Volume int `json:"Volume" xml:"Volume"` + Image int `json:"Image" xml:"Image"` + Snapshot int `json:"Snapshot" xml:"Snapshot"` + Securitygroup int `json:"Securitygroup" xml:"Securitygroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resources.go new file mode 100644 index 0000000..1c9913c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resources.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Resources is a nested struct in ecs response +type Resources struct { + Resource []Resource `json:"Resource" xml:"Resource"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resources_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resources_info.go new file mode 100644 index 0000000..e2b7511 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resources_info.go @@ -0,0 +1,27 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResourcesInfo is a nested struct in ecs response +type ResourcesInfo struct { + IoOptimized bool `json:"IoOptimized" xml:"IoOptimized"` + SystemDiskCategories SystemDiskCategories `json:"SystemDiskCategories" xml:"SystemDiskCategories"` + DataDiskCategories DataDiskCategories `json:"DataDiskCategories" xml:"DataDiskCategories"` + NetworkTypes NetworkTypesInDescribeZones `json:"NetworkTypes" xml:"NetworkTypes"` + InstanceTypes InstanceTypesInDescribeZones `json:"InstanceTypes" xml:"InstanceTypes"` + InstanceTypeFamilies InstanceTypeFamiliesInDescribeZones `json:"InstanceTypeFamilies" xml:"InstanceTypeFamilies"` + InstanceGenerations InstanceGenerations `json:"InstanceGenerations" xml:"InstanceGenerations"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_result.go new file mode 100644 index 0000000..24c1630 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_result.go @@ -0,0 +1,24 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Result is a nested struct in ecs response +type Result struct { + Message string `json:"Message" xml:"Message"` + Success string `json:"Success" xml:"Success"` + Code string `json:"Code" xml:"Code"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_results_in_attach_key_pair.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_results_in_attach_key_pair.go new file mode 100644 index 0000000..81c5724 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_results_in_attach_key_pair.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInAttachKeyPair is a nested struct in ecs response +type ResultsInAttachKeyPair struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_results_in_detach_key_pair.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_results_in_detach_key_pair.go new file mode 100644 index 0000000..bf35b8d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_results_in_detach_key_pair.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultsInDetachKeyPair is a nested struct in ecs response +type ResultsInDetachKeyPair struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_entry.go new file mode 100644 index 0000000..762a150 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_entry.go @@ -0,0 +1,27 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouteEntry is a nested struct in ecs response +type RouteEntry struct { + RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` + DestinationCidrBlock string `json:"DestinationCidrBlock" xml:"DestinationCidrBlock"` + Type string `json:"Type" xml:"Type"` + Status string `json:"Status" xml:"Status"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + NextHopType string `json:"NextHopType" xml:"NextHopType"` + NextHops NextHops `json:"NextHops" xml:"NextHops"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_entrys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_entrys.go new file mode 100644 index 0000000..28b4da2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_entrys.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouteEntrys is a nested struct in ecs response +type RouteEntrys struct { + RouteEntry []RouteEntry `json:"RouteEntry" xml:"RouteEntry"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_table.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_table.go new file mode 100644 index 0000000..c34d3f7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_table.go @@ -0,0 +1,25 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouteTable is a nested struct in ecs response +type RouteTable struct { + VRouterId string `json:"VRouterId" xml:"VRouterId"` + RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` + RouteTableType string `json:"RouteTableType" xml:"RouteTableType"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + RouteEntrys RouteEntrys `json:"RouteEntrys" xml:"RouteEntrys"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_table_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_table_ids.go new file mode 100644 index 0000000..1114be1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_table_ids.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouteTableIds is a nested struct in ecs response +type RouteTableIds struct { + RouteTableId []string `json:"RouteTableId" xml:"RouteTableId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_tables.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_tables.go new file mode 100644 index 0000000..bf350f2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_tables.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouteTables is a nested struct in ecs response +type RouteTables struct { + RouteTable []RouteTable `json:"RouteTable" xml:"RouteTable"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_router_interface_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_router_interface_set.go new file mode 100644 index 0000000..ef8db99 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_router_interface_set.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouterInterfaceSet is a nested struct in ecs response +type RouterInterfaceSet struct { + RouterInterfaceType []RouterInterfaceType `json:"RouterInterfaceType" xml:"RouterInterfaceType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_router_interface_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_router_interface_type.go new file mode 100644 index 0000000..7527601 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_router_interface_type.go @@ -0,0 +1,45 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouterInterfaceType is a nested struct in ecs response +type RouterInterfaceType struct { + RouterInterfaceId string `json:"RouterInterfaceId" xml:"RouterInterfaceId"` + OppositeRegionId string `json:"OppositeRegionId" xml:"OppositeRegionId"` + Role string `json:"Role" xml:"Role"` + Spec string `json:"Spec" xml:"Spec"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + RouterId string `json:"RouterId" xml:"RouterId"` + RouterType string `json:"RouterType" xml:"RouterType"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + Status string `json:"Status" xml:"Status"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + ConnectedTime string `json:"ConnectedTime" xml:"ConnectedTime"` + OppositeInterfaceId string `json:"OppositeInterfaceId" xml:"OppositeInterfaceId"` + OppositeInterfaceSpec string `json:"OppositeInterfaceSpec" xml:"OppositeInterfaceSpec"` + OppositeInterfaceStatus string `json:"OppositeInterfaceStatus" xml:"OppositeInterfaceStatus"` + OppositeInterfaceBusinessStatus string `json:"OppositeInterfaceBusinessStatus" xml:"OppositeInterfaceBusinessStatus"` + OppositeRouterId string `json:"OppositeRouterId" xml:"OppositeRouterId"` + OppositeRouterType string `json:"OppositeRouterType" xml:"OppositeRouterType"` + OppositeInterfaceOwnerId string `json:"OppositeInterfaceOwnerId" xml:"OppositeInterfaceOwnerId"` + AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` + OppositeAccessPointId string `json:"OppositeAccessPointId" xml:"OppositeAccessPointId"` + HealthCheckSourceIp string `json:"HealthCheckSourceIp" xml:"HealthCheckSourceIp"` + HealthCheckTargetIp string `json:"HealthCheckTargetIp" xml:"HealthCheckTargetIp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule.go new file mode 100644 index 0000000..7e373b4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Rule is a nested struct in ecs response +type Rule struct { + RuleId int `json:"RuleId" xml:"RuleId"` + Description string `json:"Description" xml:"Description"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_price.go new file mode 100644 index 0000000..7bba406 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_price.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RulesInDescribePrice is a nested struct in ecs response +type RulesInDescribePrice struct { + Rule []Rule `json:"Rule" xml:"Rule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_renewal_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_renewal_price.go new file mode 100644 index 0000000..d6dd4e4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_renewal_price.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RulesInDescribeRenewalPrice is a nested struct in ecs response +type RulesInDescribeRenewalPrice struct { + Rule []Rule `json:"Rule" xml:"Rule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_scheduled_system_event_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_scheduled_system_event_set.go new file mode 100644 index 0000000..6ca521d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_scheduled_system_event_set.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ScheduledSystemEventSet is a nested struct in ecs response +type ScheduledSystemEventSet struct { + ScheduledSystemEventType []ScheduledSystemEventType `json:"ScheduledSystemEventType" xml:"ScheduledSystemEventType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_scheduled_system_event_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_scheduled_system_event_type.go new file mode 100644 index 0000000..1735ca3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_scheduled_system_event_type.go @@ -0,0 +1,25 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ScheduledSystemEventType is a nested struct in ecs response +type ScheduledSystemEventType struct { + EventId string `json:"EventId" xml:"EventId"` + EventPublishTime string `json:"EventPublishTime" xml:"EventPublishTime"` + NotBefore string `json:"NotBefore" xml:"NotBefore"` + EventCycleStatus EventCycleStatus `json:"EventCycleStatus" xml:"EventCycleStatus"` + EventType EventType `json:"EventType" xml:"EventType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group.go new file mode 100644 index 0000000..dab7fed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group.go @@ -0,0 +1,28 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SecurityGroup is a nested struct in ecs response +type SecurityGroup struct { + SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` + Description string `json:"Description" xml:"Description"` + SecurityGroupName string `json:"SecurityGroupName" xml:"SecurityGroupName"` + VpcId string `json:"VpcId" xml:"VpcId"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + AvailableInstanceAmount int `json:"AvailableInstanceAmount" xml:"AvailableInstanceAmount"` + EcsCount int `json:"EcsCount" xml:"EcsCount"` + Tags TagsInDescribeSecurityGroups `json:"Tags" xml:"Tags"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_instance_attribute.go new file mode 100644 index 0000000..8e70419 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_instance_attribute.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SecurityGroupIdsInDescribeInstanceAttribute is a nested struct in ecs response +type SecurityGroupIdsInDescribeInstanceAttribute struct { + SecurityGroupId []string `json:"SecurityGroupId" xml:"SecurityGroupId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_instances.go new file mode 100644 index 0000000..6dd94ee --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_instances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SecurityGroupIdsInDescribeInstances is a nested struct in ecs response +type SecurityGroupIdsInDescribeInstances struct { + SecurityGroupId []string `json:"SecurityGroupId" xml:"SecurityGroupId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_network_interfaces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_network_interfaces.go new file mode 100644 index 0000000..9d8b4e8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_network_interfaces.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SecurityGroupIdsInDescribeNetworkInterfaces is a nested struct in ecs response +type SecurityGroupIdsInDescribeNetworkInterfaces struct { + SecurityGroupId []string `json:"SecurityGroupId" xml:"SecurityGroupId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_reference.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_reference.go new file mode 100644 index 0000000..0f850ae --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_reference.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SecurityGroupReference is a nested struct in ecs response +type SecurityGroupReference struct { + SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` + ReferencingSecurityGroups ReferencingSecurityGroups `json:"ReferencingSecurityGroups" xml:"ReferencingSecurityGroups"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_references.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_references.go new file mode 100644 index 0000000..18b76b7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_references.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SecurityGroupReferences is a nested struct in ecs response +type SecurityGroupReferences struct { + SecurityGroupReference []SecurityGroupReference `json:"SecurityGroupReference" xml:"SecurityGroupReference"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_groups.go new file mode 100644 index 0000000..4580434 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_groups.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SecurityGroups is a nested struct in ecs response +type SecurityGroups struct { + SecurityGroup []SecurityGroup `json:"SecurityGroup" xml:"SecurityGroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_share_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_share_group.go new file mode 100644 index 0000000..c7b088c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_share_group.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ShareGroup is a nested struct in ecs response +type ShareGroup struct { + Group string `json:"Group" xml:"Group"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_share_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_share_groups.go new file mode 100644 index 0000000..e789954 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_share_groups.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ShareGroups is a nested struct in ecs response +type ShareGroups struct { + ShareGroup []ShareGroup `json:"ShareGroup" xml:"ShareGroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot.go new file mode 100644 index 0000000..39d95ed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot.go @@ -0,0 +1,36 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Snapshot is a nested struct in ecs response +type Snapshot struct { + SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` + SnapshotName string `json:"SnapshotName" xml:"SnapshotName"` + Progress string `json:"Progress" xml:"Progress"` + ProductCode string `json:"ProductCode" xml:"ProductCode"` + SourceDiskId string `json:"SourceDiskId" xml:"SourceDiskId"` + SourceDiskType string `json:"SourceDiskType" xml:"SourceDiskType"` + RetentionDays int `json:"RetentionDays" xml:"RetentionDays"` + Encrypted bool `json:"Encrypted" xml:"Encrypted"` + SourceDiskSize string `json:"SourceDiskSize" xml:"SourceDiskSize"` + Description string `json:"Description" xml:"Description"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Status string `json:"Status" xml:"Status"` + Usage string `json:"Usage" xml:"Usage"` + SourceStorageType string `json:"SourceStorageType" xml:"SourceStorageType"` + RemainTime int `json:"RemainTime" xml:"RemainTime"` + Tags TagsInDescribeSnapshots `json:"Tags" xml:"Tags"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_link.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_link.go new file mode 100644 index 0000000..eddeb36 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_link.go @@ -0,0 +1,29 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SnapshotLink is a nested struct in ecs response +type SnapshotLink struct { + SnapshotLinkId string `json:"SnapshotLinkId" xml:"SnapshotLinkId"` + RegionId string `json:"RegionId" xml:"RegionId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + SourceDiskId string `json:"SourceDiskId" xml:"SourceDiskId"` + SourceDiskSize int `json:"SourceDiskSize" xml:"SourceDiskSize"` + SourceDiskType string `json:"SourceDiskType" xml:"SourceDiskType"` + TotalSize int `json:"TotalSize" xml:"TotalSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_links.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_links.go new file mode 100644 index 0000000..0c2e558 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_links.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SnapshotLinks is a nested struct in ecs response +type SnapshotLinks struct { + SnapshotLink []SnapshotLink `json:"SnapshotLink" xml:"SnapshotLink"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_package.go new file mode 100644 index 0000000..dfd78eb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_package.go @@ -0,0 +1,24 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SnapshotPackage is a nested struct in ecs response +type SnapshotPackage struct { + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + InitCapacity int `json:"InitCapacity" xml:"InitCapacity"` + DisplayName string `json:"DisplayName" xml:"DisplayName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_packages.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_packages.go new file mode 100644 index 0000000..35f485c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_packages.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SnapshotPackages is a nested struct in ecs response +type SnapshotPackages struct { + SnapshotPackage []SnapshotPackage `json:"SnapshotPackage" xml:"SnapshotPackage"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshots.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshots.go new file mode 100644 index 0000000..9f6f40b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshots.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Snapshots is a nested struct in ecs response +type Snapshots struct { + Snapshot []Snapshot `json:"Snapshot" xml:"Snapshot"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_price_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_price_type.go new file mode 100644 index 0000000..093c72a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_price_type.go @@ -0,0 +1,27 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SpotPriceType is a nested struct in ecs response +type SpotPriceType struct { + ZoneId string `json:"ZoneId" xml:"ZoneId"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + IoOptimized string `json:"IoOptimized" xml:"IoOptimized"` + Timestamp string `json:"Timestamp" xml:"Timestamp"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + SpotPrice float64 `json:"SpotPrice" xml:"SpotPrice"` + OriginPrice float64 `json:"OriginPrice" xml:"OriginPrice"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_prices.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_prices.go new file mode 100644 index 0000000..31353f5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_prices.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SpotPrices is a nested struct in ecs response +type SpotPrices struct { + SpotPriceType []SpotPriceType `json:"SpotPriceType" xml:"SpotPriceType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_status.go new file mode 100644 index 0000000..a7de485 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_status.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Status is a nested struct in ecs response +type Status struct { + Name string `json:"Name" xml:"Name"` + Code int `json:"Code" xml:"Code"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resource.go new file mode 100644 index 0000000..0c19681 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resource.go @@ -0,0 +1,25 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SupportedResource is a nested struct in ecs response +type SupportedResource struct { + Value string `json:"Value" xml:"Value"` + Max int `json:"Max" xml:"Max"` + Unit string `json:"Unit" xml:"Unit"` + Status string `json:"Status" xml:"Status"` + Min int `json:"Min" xml:"Min"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resources_in_describe_available_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resources_in_describe_available_resource.go new file mode 100644 index 0000000..e5f7668 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resources_in_describe_available_resource.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SupportedResourcesInDescribeAvailableResource is a nested struct in ecs response +type SupportedResourcesInDescribeAvailableResource struct { + SupportedResource []SupportedResource `json:"SupportedResource" xml:"SupportedResource"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resources_in_describe_resources_modification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resources_in_describe_resources_modification.go new file mode 100644 index 0000000..a5d5431 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resources_in_describe_resources_modification.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SupportedResourcesInDescribeResourcesModification is a nested struct in ecs response +type SupportedResourcesInDescribeResourcesModification struct { + SupportedResource []SupportedResource `json:"SupportedResource" xml:"SupportedResource"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_switch.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_switch.go new file mode 100644 index 0000000..eedf857 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_switch.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Switch is a nested struct in ecs response +type Switch struct { + SwitchId string `json:"SwitchId" xml:"SwitchId"` + Hosts HostsInDescribeDeploymentSetTopology `json:"Hosts" xml:"Hosts"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_switchs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_switchs.go new file mode 100644 index 0000000..5a7c4a3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_switchs.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Switchs is a nested struct in ecs response +type Switchs struct { + Switch []Switch `json:"Switch" xml:"Switch"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_system_disk_categories.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_system_disk_categories.go new file mode 100644 index 0000000..be22e69 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_system_disk_categories.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SystemDiskCategories is a nested struct in ecs response +type SystemDiskCategories struct { + SupportedSystemDiskCategory []string `json:"supportedSystemDiskCategory" xml:"supportedSystemDiskCategory"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag.go new file mode 100644 index 0000000..00d617b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag.go @@ -0,0 +1,23 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 ecs response +type Tag struct { + TagValue string `json:"TagValue" xml:"TagValue"` + TagKey string `json:"TagKey" xml:"TagKey"` + ResourceTypeCount ResourceTypeCount `json:"ResourceTypeCount" xml:"ResourceTypeCount"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag_keys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag_keys.go new file mode 100644 index 0000000..83678c8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag_keys.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagKeys is a nested struct in ecs response +type TagKeys struct { + TagKey []string `json:"TagKey" xml:"TagKey"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_disks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_disks.go new file mode 100644 index 0000000..c9acca8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_disks.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeDisks is a nested struct in ecs response +type TagsInDescribeDisks struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_images.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_images.go new file mode 100644 index 0000000..a06db5b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_images.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeImages is a nested struct in ecs response +type TagsInDescribeImages struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_instances.go new file mode 100644 index 0000000..7eeb27b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_instances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeInstances is a nested struct in ecs response +type TagsInDescribeInstances struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_launch_template_versions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_launch_template_versions.go new file mode 100644 index 0000000..87f733a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_launch_template_versions.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeLaunchTemplateVersions is a nested struct in ecs response +type TagsInDescribeLaunchTemplateVersions struct { + InstanceTag []InstanceTag `json:"InstanceTag" xml:"InstanceTag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_security_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_security_groups.go new file mode 100644 index 0000000..7182eed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_security_groups.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeSecurityGroups is a nested struct in ecs response +type TagsInDescribeSecurityGroups struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_snapshots.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_snapshots.go new file mode 100644 index 0000000..7843d93 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_snapshots.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeSnapshots is a nested struct in ecs response +type TagsInDescribeSnapshots struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_tags.go new file mode 100644 index 0000000..d7d898c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_tags.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 ecs response +type TagsInDescribeTags struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_task.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_task.go new file mode 100644 index 0000000..ff4fdb6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_task.go @@ -0,0 +1,26 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Task is a nested struct in ecs response +type Task struct { + TaskId string `json:"TaskId" xml:"TaskId"` + TaskAction string `json:"TaskAction" xml:"TaskAction"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + SupportCancel string `json:"SupportCancel" xml:"SupportCancel"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + FinishedTime string `json:"FinishedTime" xml:"FinishedTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_task_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_task_set.go new file mode 100644 index 0000000..8449f6a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_task_set.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TaskSet is a nested struct in ecs response +type TaskSet struct { + Task []Task `json:"Task" xml:"Task"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_triggered_group_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_triggered_group_rule.go new file mode 100644 index 0000000..3893465 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_triggered_group_rule.go @@ -0,0 +1,36 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TriggeredGroupRule is a nested struct in ecs response +type TriggeredGroupRule struct { + IpProtocol string `json:"IpProtocol" xml:"IpProtocol"` + PortRange string `json:"PortRange" xml:"PortRange"` + SourceGroupId string `json:"SourceGroupId" xml:"SourceGroupId"` + SourceGroupName string `json:"SourceGroupName" xml:"SourceGroupName"` + SourceCidrIp string `json:"SourceCidrIp" xml:"SourceCidrIp"` + Policy string `json:"Policy" xml:"Policy"` + NicType string `json:"NicType" xml:"NicType"` + SourceGroupOwnerAccount string `json:"SourceGroupOwnerAccount" xml:"SourceGroupOwnerAccount"` + DestGroupId string `json:"DestGroupId" xml:"DestGroupId"` + DestGroupName string `json:"DestGroupName" xml:"DestGroupName"` + DestCidrIp string `json:"DestCidrIp" xml:"DestCidrIp"` + DestGroupOwnerAccount string `json:"DestGroupOwnerAccount" xml:"DestGroupOwnerAccount"` + Priority string `json:"Priority" xml:"Priority"` + Direction string `json:"Direction" xml:"Direction"` + Description string `json:"Description" xml:"Description"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_user_cidrs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_user_cidrs.go new file mode 100644 index 0000000..2d79296 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_user_cidrs.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UserCidrs is a nested struct in ecs response +type UserCidrs struct { + UserCidr []string `json:"UserCidr" xml:"UserCidr"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_router.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_router.go new file mode 100644 index 0000000..383343e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_router.go @@ -0,0 +1,27 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VRouter is a nested struct in ecs response +type VRouter struct { + RegionId string `json:"RegionId" xml:"RegionId"` + VpcId string `json:"VpcId" xml:"VpcId"` + VRouterName string `json:"VRouterName" xml:"VRouterName"` + Description string `json:"Description" xml:"Description"` + VRouterId string `json:"VRouterId" xml:"VRouterId"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + RouteTableIds RouteTableIds `json:"RouteTableIds" xml:"RouteTableIds"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_routers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_routers.go new file mode 100644 index 0000000..fe48572 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_routers.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VRouters is a nested struct in ecs response +type VRouters struct { + VRouter []VRouter `json:"VRouter" xml:"VRouter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switch.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switch.go new file mode 100644 index 0000000..b68acdb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switch.go @@ -0,0 +1,30 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VSwitch is a nested struct in ecs response +type VSwitch struct { + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + VpcId string `json:"VpcId" xml:"VpcId"` + Status string `json:"Status" xml:"Status"` + CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + AvailableIpAddressCount int `json:"AvailableIpAddressCount" xml:"AvailableIpAddressCount"` + Description string `json:"Description" xml:"Description"` + VSwitchName string `json:"VSwitchName" xml:"VSwitchName"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + IsDefault bool `json:"IsDefault" xml:"IsDefault"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switch_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switch_ids.go new file mode 100644 index 0000000..5a2ab91 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switch_ids.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VSwitchIds is a nested struct in ecs response +type VSwitchIds struct { + VSwitchId []string `json:"VSwitchId" xml:"VSwitchId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switches.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switches.go new file mode 100644 index 0000000..b5e2d54 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switches.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VSwitches is a nested struct in ecs response +type VSwitches struct { + VSwitch []VSwitch `json:"VSwitch" xml:"VSwitch"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_for_physical_connection_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_for_physical_connection_set.go new file mode 100644 index 0000000..5b98c2b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_for_physical_connection_set.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VirtualBorderRouterForPhysicalConnectionSet is a nested struct in ecs response +type VirtualBorderRouterForPhysicalConnectionSet struct { + VirtualBorderRouterForPhysicalConnectionType []VirtualBorderRouterForPhysicalConnectionType `json:"VirtualBorderRouterForPhysicalConnectionType" xml:"VirtualBorderRouterForPhysicalConnectionType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_for_physical_connection_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_for_physical_connection_type.go new file mode 100644 index 0000000..d516e65 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_for_physical_connection_type.go @@ -0,0 +1,28 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VirtualBorderRouterForPhysicalConnectionType is a nested struct in ecs response +type VirtualBorderRouterForPhysicalConnectionType struct { + VbrId string `json:"VbrId" xml:"VbrId"` + VbrOwnerUid int `json:"VbrOwnerUid" xml:"VbrOwnerUid"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + ActivationTime string `json:"ActivationTime" xml:"ActivationTime"` + TerminationTime string `json:"TerminationTime" xml:"TerminationTime"` + RecoveryTime string `json:"RecoveryTime" xml:"RecoveryTime"` + VlanId int `json:"VlanId" xml:"VlanId"` + CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_set.go new file mode 100644 index 0000000..22a29cd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_set.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VirtualBorderRouterSet is a nested struct in ecs response +type VirtualBorderRouterSet struct { + VirtualBorderRouterType []VirtualBorderRouterType `json:"VirtualBorderRouterType" xml:"VirtualBorderRouterType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_type.go new file mode 100644 index 0000000..6ae2309 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_type.go @@ -0,0 +1,40 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VirtualBorderRouterType is a nested struct in ecs response +type VirtualBorderRouterType struct { + VbrId string `json:"VbrId" xml:"VbrId"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + ActivationTime string `json:"ActivationTime" xml:"ActivationTime"` + TerminationTime string `json:"TerminationTime" xml:"TerminationTime"` + RecoveryTime string `json:"RecoveryTime" xml:"RecoveryTime"` + Status string `json:"Status" xml:"Status"` + VlanId int `json:"VlanId" xml:"VlanId"` + CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` + RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` + VlanInterfaceId string `json:"VlanInterfaceId" xml:"VlanInterfaceId"` + LocalGatewayIp string `json:"LocalGatewayIp" xml:"LocalGatewayIp"` + PeerGatewayIp string `json:"PeerGatewayIp" xml:"PeerGatewayIp"` + PeeringSubnetMask string `json:"PeeringSubnetMask" xml:"PeeringSubnetMask"` + PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` + PhysicalConnectionStatus string `json:"PhysicalConnectionStatus" xml:"PhysicalConnectionStatus"` + PhysicalConnectionBusinessStatus string `json:"PhysicalConnectionBusinessStatus" xml:"PhysicalConnectionBusinessStatus"` + PhysicalConnectionOwnerUid string `json:"PhysicalConnectionOwnerUid" xml:"PhysicalConnectionOwnerUid"` + AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc.go new file mode 100644 index 0000000..d9cd890 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc.go @@ -0,0 +1,31 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 ecs response +type Vpc struct { + VpcId string `json:"VpcId" xml:"VpcId"` + RegionId string `json:"RegionId" xml:"RegionId"` + Status string `json:"Status" xml:"Status"` + VpcName string `json:"VpcName" xml:"VpcName"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` + VRouterId string `json:"VRouterId" xml:"VRouterId"` + Description string `json:"Description" xml:"Description"` + IsDefault bool `json:"IsDefault" xml:"IsDefault"` + VSwitchIds VSwitchIds `json:"VSwitchIds" xml:"VSwitchIds"` + UserCidrs UserCidrs `json:"UserCidrs" xml:"UserCidrs"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc_attributes.go new file mode 100644 index 0000000..73f611c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc_attributes.go @@ -0,0 +1,24 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VpcAttributes is a nested struct in ecs response +type VpcAttributes struct { + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + VpcId string `json:"VpcId" xml:"VpcId"` + NatIpAddress string `json:"NatIpAddress" xml:"NatIpAddress"` + PrivateIpAddress PrivateIpAddressInDescribeInstances `json:"PrivateIpAddress" xml:"PrivateIpAddress"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpcs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpcs.go new file mode 100644 index 0000000..f1fbd64 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpcs.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 ecs response +type Vpcs struct { + Vpc []Vpc `json:"Vpc" xml:"Vpc"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zone.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zone.go new file mode 100644 index 0000000..932afe4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zone.go @@ -0,0 +1,31 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 ecs response +type Zone struct { + ZoneNo string `json:"ZoneNo" xml:"ZoneNo"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + LocalName string `json:"LocalName" xml:"LocalName"` + AvailableResourceCreation AvailableResourceCreation `json:"AvailableResourceCreation" xml:"AvailableResourceCreation"` + AvailableVolumeCategories AvailableVolumeCategories `json:"AvailableVolumeCategories" xml:"AvailableVolumeCategories"` + AvailableInstanceTypes AvailableInstanceTypes `json:"AvailableInstanceTypes" xml:"AvailableInstanceTypes"` + AvailableDedicatedHostTypes AvailableDedicatedHostTypes `json:"AvailableDedicatedHostTypes" xml:"AvailableDedicatedHostTypes"` + NetworkTypes NetworkTypesInDescribeRecommendInstanceType `json:"NetworkTypes" xml:"NetworkTypes"` + AvailableDiskCategories AvailableDiskCategories `json:"AvailableDiskCategories" xml:"AvailableDiskCategories"` + DedicatedHostGenerations DedicatedHostGenerations `json:"DedicatedHostGenerations" xml:"DedicatedHostGenerations"` + AvailableResources AvailableResourcesInDescribeZones `json:"AvailableResources" xml:"AvailableResources"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zones_in_describe_recommend_instance_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zones_in_describe_recommend_instance_type.go new file mode 100644 index 0000000..aab4743 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zones_in_describe_recommend_instance_type.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ZonesInDescribeRecommendInstanceType is a nested struct in ecs response +type ZonesInDescribeRecommendInstanceType struct { + Zone []Zone `json:"zone" xml:"zone"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zones_in_describe_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zones_in_describe_zones.go new file mode 100644 index 0000000..1e749d8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zones_in_describe_zones.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 ecs response +type ZonesInDescribeZones struct { + Zone []Zone `json:"Zone" xml:"Zone"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_physical_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_physical_connection.go new file mode 100644 index 0000000..f9ea06f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_physical_connection.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TerminatePhysicalConnection invokes the ecs.TerminatePhysicalConnection API synchronously +// api document: https://help.aliyun.com/api/ecs/terminatephysicalconnection.html +func (client *Client) TerminatePhysicalConnection(request *TerminatePhysicalConnectionRequest) (response *TerminatePhysicalConnectionResponse, err error) { + response = CreateTerminatePhysicalConnectionResponse() + err = client.DoAction(request, response) + return +} + +// TerminatePhysicalConnectionWithChan invokes the ecs.TerminatePhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/ecs/terminatephysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TerminatePhysicalConnectionWithChan(request *TerminatePhysicalConnectionRequest) (<-chan *TerminatePhysicalConnectionResponse, <-chan error) { + responseChan := make(chan *TerminatePhysicalConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TerminatePhysicalConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TerminatePhysicalConnectionWithCallback invokes the ecs.TerminatePhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/ecs/terminatephysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TerminatePhysicalConnectionWithCallback(request *TerminatePhysicalConnectionRequest, callback func(response *TerminatePhysicalConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TerminatePhysicalConnectionResponse + var err error + defer close(result) + response, err = client.TerminatePhysicalConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TerminatePhysicalConnectionRequest is the request struct for api TerminatePhysicalConnection +type TerminatePhysicalConnectionRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + UserCidr string `position:"Query" name:"UserCidr"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// TerminatePhysicalConnectionResponse is the response struct for api TerminatePhysicalConnection +type TerminatePhysicalConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateTerminatePhysicalConnectionRequest creates a request to invoke TerminatePhysicalConnection API +func CreateTerminatePhysicalConnectionRequest() (request *TerminatePhysicalConnectionRequest) { + request = &TerminatePhysicalConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "TerminatePhysicalConnection", "ecs", "openAPI") + return +} + +// CreateTerminatePhysicalConnectionResponse creates a response to parse from TerminatePhysicalConnection response +func CreateTerminatePhysicalConnectionResponse() (response *TerminatePhysicalConnectionResponse) { + response = &TerminatePhysicalConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_virtual_border_router.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_virtual_border_router.go new file mode 100644 index 0000000..51dd360 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_virtual_border_router.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TerminateVirtualBorderRouter invokes the ecs.TerminateVirtualBorderRouter API synchronously +// api document: https://help.aliyun.com/api/ecs/terminatevirtualborderrouter.html +func (client *Client) TerminateVirtualBorderRouter(request *TerminateVirtualBorderRouterRequest) (response *TerminateVirtualBorderRouterResponse, err error) { + response = CreateTerminateVirtualBorderRouterResponse() + err = client.DoAction(request, response) + return +} + +// TerminateVirtualBorderRouterWithChan invokes the ecs.TerminateVirtualBorderRouter API asynchronously +// api document: https://help.aliyun.com/api/ecs/terminatevirtualborderrouter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TerminateVirtualBorderRouterWithChan(request *TerminateVirtualBorderRouterRequest) (<-chan *TerminateVirtualBorderRouterResponse, <-chan error) { + responseChan := make(chan *TerminateVirtualBorderRouterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TerminateVirtualBorderRouter(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TerminateVirtualBorderRouterWithCallback invokes the ecs.TerminateVirtualBorderRouter API asynchronously +// api document: https://help.aliyun.com/api/ecs/terminatevirtualborderrouter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TerminateVirtualBorderRouterWithCallback(request *TerminateVirtualBorderRouterRequest, callback func(response *TerminateVirtualBorderRouterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TerminateVirtualBorderRouterResponse + var err error + defer close(result) + response, err = client.TerminateVirtualBorderRouter(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TerminateVirtualBorderRouterRequest is the request struct for api TerminateVirtualBorderRouter +type TerminateVirtualBorderRouterRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + UserCidr string `position:"Query" name:"UserCidr"` + VbrId string `position:"Query" name:"VbrId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// TerminateVirtualBorderRouterResponse is the response struct for api TerminateVirtualBorderRouter +type TerminateVirtualBorderRouterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateTerminateVirtualBorderRouterRequest creates a request to invoke TerminateVirtualBorderRouter API +func CreateTerminateVirtualBorderRouterRequest() (request *TerminateVirtualBorderRouterRequest) { + request = &TerminateVirtualBorderRouterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "TerminateVirtualBorderRouter", "ecs", "openAPI") + return +} + +// CreateTerminateVirtualBorderRouterResponse creates a response to parse from TerminateVirtualBorderRouter response +func CreateTerminateVirtualBorderRouterResponse() (response *TerminateVirtualBorderRouterResponse) { + response = &TerminateVirtualBorderRouterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassign_private_ip_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassign_private_ip_addresses.go new file mode 100644 index 0000000..91f8a10 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassign_private_ip_addresses.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UnassignPrivateIpAddresses invokes the ecs.UnassignPrivateIpAddresses API synchronously +// api document: https://help.aliyun.com/api/ecs/unassignprivateipaddresses.html +func (client *Client) UnassignPrivateIpAddresses(request *UnassignPrivateIpAddressesRequest) (response *UnassignPrivateIpAddressesResponse, err error) { + response = CreateUnassignPrivateIpAddressesResponse() + err = client.DoAction(request, response) + return +} + +// UnassignPrivateIpAddressesWithChan invokes the ecs.UnassignPrivateIpAddresses API asynchronously +// api document: https://help.aliyun.com/api/ecs/unassignprivateipaddresses.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnassignPrivateIpAddressesWithChan(request *UnassignPrivateIpAddressesRequest) (<-chan *UnassignPrivateIpAddressesResponse, <-chan error) { + responseChan := make(chan *UnassignPrivateIpAddressesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UnassignPrivateIpAddresses(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UnassignPrivateIpAddressesWithCallback invokes the ecs.UnassignPrivateIpAddresses API asynchronously +// api document: https://help.aliyun.com/api/ecs/unassignprivateipaddresses.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnassignPrivateIpAddressesWithCallback(request *UnassignPrivateIpAddressesRequest, callback func(response *UnassignPrivateIpAddressesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UnassignPrivateIpAddressesResponse + var err error + defer close(result) + response, err = client.UnassignPrivateIpAddresses(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UnassignPrivateIpAddressesRequest is the request struct for api UnassignPrivateIpAddresses +type UnassignPrivateIpAddressesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PrivateIpAddress *[]string `position:"Query" name:"PrivateIpAddress" type:"Repeated"` + NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` +} + +// UnassignPrivateIpAddressesResponse is the response struct for api UnassignPrivateIpAddresses +type UnassignPrivateIpAddressesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUnassignPrivateIpAddressesRequest creates a request to invoke UnassignPrivateIpAddresses API +func CreateUnassignPrivateIpAddressesRequest() (request *UnassignPrivateIpAddressesRequest) { + request = &UnassignPrivateIpAddressesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "UnassignPrivateIpAddresses", "ecs", "openAPI") + return +} + +// CreateUnassignPrivateIpAddressesResponse creates a response to parse from UnassignPrivateIpAddresses response +func CreateUnassignPrivateIpAddressesResponse() (response *UnassignPrivateIpAddressesResponse) { + response = &UnassignPrivateIpAddressesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_eip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_eip_address.go new file mode 100644 index 0000000..f44a496 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_eip_address.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UnassociateEipAddress invokes the ecs.UnassociateEipAddress API synchronously +// api document: https://help.aliyun.com/api/ecs/unassociateeipaddress.html +func (client *Client) UnassociateEipAddress(request *UnassociateEipAddressRequest) (response *UnassociateEipAddressResponse, err error) { + response = CreateUnassociateEipAddressResponse() + err = client.DoAction(request, response) + return +} + +// UnassociateEipAddressWithChan invokes the ecs.UnassociateEipAddress API asynchronously +// api document: https://help.aliyun.com/api/ecs/unassociateeipaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnassociateEipAddressWithChan(request *UnassociateEipAddressRequest) (<-chan *UnassociateEipAddressResponse, <-chan error) { + responseChan := make(chan *UnassociateEipAddressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UnassociateEipAddress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UnassociateEipAddressWithCallback invokes the ecs.UnassociateEipAddress API asynchronously +// api document: https://help.aliyun.com/api/ecs/unassociateeipaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnassociateEipAddressWithCallback(request *UnassociateEipAddressRequest, callback func(response *UnassociateEipAddressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UnassociateEipAddressResponse + var err error + defer close(result) + response, err = client.UnassociateEipAddress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UnassociateEipAddressRequest is the request struct for api UnassociateEipAddress +type UnassociateEipAddressRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + InstanceType string `position:"Query" name:"InstanceType"` + AllocationId string `position:"Query" name:"AllocationId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// UnassociateEipAddressResponse is the response struct for api UnassociateEipAddress +type UnassociateEipAddressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUnassociateEipAddressRequest creates a request to invoke UnassociateEipAddress API +func CreateUnassociateEipAddressRequest() (request *UnassociateEipAddressRequest) { + request = &UnassociateEipAddressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "UnassociateEipAddress", "ecs", "openAPI") + return +} + +// CreateUnassociateEipAddressResponse creates a response to parse from UnassociateEipAddress response +func CreateUnassociateEipAddressResponse() (response *UnassociateEipAddressResponse) { + response = &UnassociateEipAddressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_ha_vip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_ha_vip.go new file mode 100644 index 0000000..cffa25a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_ha_vip.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UnassociateHaVip invokes the ecs.UnassociateHaVip API synchronously +// api document: https://help.aliyun.com/api/ecs/unassociatehavip.html +func (client *Client) UnassociateHaVip(request *UnassociateHaVipRequest) (response *UnassociateHaVipResponse, err error) { + response = CreateUnassociateHaVipResponse() + err = client.DoAction(request, response) + return +} + +// UnassociateHaVipWithChan invokes the ecs.UnassociateHaVip API asynchronously +// api document: https://help.aliyun.com/api/ecs/unassociatehavip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnassociateHaVipWithChan(request *UnassociateHaVipRequest) (<-chan *UnassociateHaVipResponse, <-chan error) { + responseChan := make(chan *UnassociateHaVipResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UnassociateHaVip(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UnassociateHaVipWithCallback invokes the ecs.UnassociateHaVip API asynchronously +// api document: https://help.aliyun.com/api/ecs/unassociatehavip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnassociateHaVipWithCallback(request *UnassociateHaVipRequest, callback func(response *UnassociateHaVipResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UnassociateHaVipResponse + var err error + defer close(result) + response, err = client.UnassociateHaVip(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UnassociateHaVipRequest is the request struct for api UnassociateHaVip +type UnassociateHaVipRequest struct { + *requests.RpcRequest + HaVipId string `position:"Query" name:"HaVipId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Force string `position:"Query" name:"Force"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// UnassociateHaVipResponse is the response struct for api UnassociateHaVip +type UnassociateHaVipResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUnassociateHaVipRequest creates a request to invoke UnassociateHaVip API +func CreateUnassociateHaVipRequest() (request *UnassociateHaVipRequest) { + request = &UnassociateHaVipRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "UnassociateHaVip", "ecs", "openAPI") + return +} + +// CreateUnassociateHaVipResponse creates a response to parse from UnassociateHaVip response +func CreateUnassociateHaVipResponse() (response *UnassociateHaVipResponse) { + response = &UnassociateHaVipResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unbind_ip_range.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unbind_ip_range.go new file mode 100644 index 0000000..a6261de --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unbind_ip_range.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UnbindIpRange invokes the ecs.UnbindIpRange API synchronously +// api document: https://help.aliyun.com/api/ecs/unbindiprange.html +func (client *Client) UnbindIpRange(request *UnbindIpRangeRequest) (response *UnbindIpRangeResponse, err error) { + response = CreateUnbindIpRangeResponse() + err = client.DoAction(request, response) + return +} + +// UnbindIpRangeWithChan invokes the ecs.UnbindIpRange API asynchronously +// api document: https://help.aliyun.com/api/ecs/unbindiprange.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnbindIpRangeWithChan(request *UnbindIpRangeRequest) (<-chan *UnbindIpRangeResponse, <-chan error) { + responseChan := make(chan *UnbindIpRangeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UnbindIpRange(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UnbindIpRangeWithCallback invokes the ecs.UnbindIpRange API asynchronously +// api document: https://help.aliyun.com/api/ecs/unbindiprange.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnbindIpRangeWithCallback(request *UnbindIpRangeRequest, callback func(response *UnbindIpRangeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UnbindIpRangeResponse + var err error + defer close(result) + response, err = client.UnbindIpRange(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UnbindIpRangeRequest is the request struct for api UnbindIpRange +type UnbindIpRangeRequest struct { + *requests.RpcRequest + IpAddress string `position:"Query" name:"IpAddress"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// UnbindIpRangeResponse is the response struct for api UnbindIpRange +type UnbindIpRangeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUnbindIpRangeRequest creates a request to invoke UnbindIpRange API +func CreateUnbindIpRangeRequest() (request *UnbindIpRangeRequest) { + request = &UnbindIpRangeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "UnbindIpRange", "ecs", "openAPI") + return +} + +// CreateUnbindIpRangeResponse creates a response to parse from UnbindIpRange response +func CreateUnbindIpRangeResponse() (response *UnbindIpRangeResponse) { + response = &UnbindIpRangeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/validate_security_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/validate_security_group.go new file mode 100644 index 0000000..426a9b8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/validate_security_group.go @@ -0,0 +1,116 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ValidateSecurityGroup invokes the ecs.ValidateSecurityGroup API synchronously +// api document: https://help.aliyun.com/api/ecs/validatesecuritygroup.html +func (client *Client) ValidateSecurityGroup(request *ValidateSecurityGroupRequest) (response *ValidateSecurityGroupResponse, err error) { + response = CreateValidateSecurityGroupResponse() + err = client.DoAction(request, response) + return +} + +// ValidateSecurityGroupWithChan invokes the ecs.ValidateSecurityGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/validatesecuritygroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ValidateSecurityGroupWithChan(request *ValidateSecurityGroupRequest) (<-chan *ValidateSecurityGroupResponse, <-chan error) { + responseChan := make(chan *ValidateSecurityGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ValidateSecurityGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ValidateSecurityGroupWithCallback invokes the ecs.ValidateSecurityGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/validatesecuritygroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ValidateSecurityGroupWithCallback(request *ValidateSecurityGroupRequest, callback func(response *ValidateSecurityGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ValidateSecurityGroupResponse + var err error + defer close(result) + response, err = client.ValidateSecurityGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ValidateSecurityGroupRequest is the request struct for api ValidateSecurityGroup +type ValidateSecurityGroupRequest struct { + *requests.RpcRequest + NicType string `position:"Query" name:"NicType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SourcePort requests.Integer `position:"Query" name:"SourcePort"` + SourceIp string `position:"Query" name:"SourceIp"` + Direction string `position:"Query" name:"Direction"` + DestIp string `position:"Query" name:"DestIp"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + IpProtocol string `position:"Query" name:"IpProtocol"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + DestPort requests.Integer `position:"Query" name:"DestPort"` +} + +// ValidateSecurityGroupResponse is the response struct for api ValidateSecurityGroup +type ValidateSecurityGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Policy string `json:"Policy" xml:"Policy"` + TriggeredGroupRule TriggeredGroupRule `json:"TriggeredGroupRule" xml:"TriggeredGroupRule"` +} + +// CreateValidateSecurityGroupRequest creates a request to invoke ValidateSecurityGroup API +func CreateValidateSecurityGroupRequest() (request *ValidateSecurityGroupRequest) { + request = &ValidateSecurityGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ValidateSecurityGroup", "ecs", "openAPI") + return +} + +// CreateValidateSecurityGroupResponse creates a response to parse from ValidateSecurityGroup response +func CreateValidateSecurityGroupResponse() (response *ValidateSecurityGroupResponse) { + response = &ValidateSecurityGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/add_container_app.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/add_container_app.go new file mode 100644 index 0000000..c5cd061 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/add_container_app.go @@ -0,0 +1,108 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddContainerApp invokes the ehpc.AddContainerApp API synchronously +// api document: https://help.aliyun.com/api/ehpc/addcontainerapp.html +func (client *Client) AddContainerApp(request *AddContainerAppRequest) (response *AddContainerAppResponse, err error) { + response = CreateAddContainerAppResponse() + err = client.DoAction(request, response) + return +} + +// AddContainerAppWithChan invokes the ehpc.AddContainerApp API asynchronously +// api document: https://help.aliyun.com/api/ehpc/addcontainerapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddContainerAppWithChan(request *AddContainerAppRequest) (<-chan *AddContainerAppResponse, <-chan error) { + responseChan := make(chan *AddContainerAppResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddContainerApp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddContainerAppWithCallback invokes the ehpc.AddContainerApp API asynchronously +// api document: https://help.aliyun.com/api/ehpc/addcontainerapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddContainerAppWithCallback(request *AddContainerAppRequest, callback func(response *AddContainerAppResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddContainerAppResponse + var err error + defer close(result) + response, err = client.AddContainerApp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddContainerAppRequest is the request struct for api AddContainerApp +type AddContainerAppRequest struct { + *requests.RpcRequest + ContainerType string `position:"Query" name:"ContainerType"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` + Repository string `position:"Query" name:"Repository"` + ImageTag string `position:"Query" name:"ImageTag"` +} + +// AddContainerAppResponse is the response struct for api AddContainerApp +type AddContainerAppResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ContainerId ContainerId `json:"ContainerId" xml:"ContainerId"` +} + +// CreateAddContainerAppRequest creates a request to invoke AddContainerApp API +func CreateAddContainerAppRequest() (request *AddContainerAppRequest) { + request = &AddContainerAppRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "AddContainerApp", "ehs", "openAPI") + return +} + +// CreateAddContainerAppResponse creates a response to parse from AddContainerApp response +func CreateAddContainerAppResponse() (response *AddContainerAppResponse) { + response = &AddContainerAppResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/add_nodes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/add_nodes.go new file mode 100644 index 0000000..20cd9b1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/add_nodes.go @@ -0,0 +1,115 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddNodes invokes the ehpc.AddNodes API synchronously +// api document: https://help.aliyun.com/api/ehpc/addnodes.html +func (client *Client) AddNodes(request *AddNodesRequest) (response *AddNodesResponse, err error) { + response = CreateAddNodesResponse() + err = client.DoAction(request, response) + return +} + +// AddNodesWithChan invokes the ehpc.AddNodes API asynchronously +// api document: https://help.aliyun.com/api/ehpc/addnodes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddNodesWithChan(request *AddNodesRequest) (<-chan *AddNodesResponse, <-chan error) { + responseChan := make(chan *AddNodesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddNodes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddNodesWithCallback invokes the ehpc.AddNodes API asynchronously +// api document: https://help.aliyun.com/api/ehpc/addnodes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddNodesWithCallback(request *AddNodesRequest, callback func(response *AddNodesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddNodesResponse + var err error + defer close(result) + response, err = client.AddNodes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddNodesRequest is the request struct for api AddNodes +type AddNodesRequest struct { + *requests.RpcRequest + AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` + Period requests.Integer `position:"Query" name:"Period"` + ImageId string `position:"Query" name:"ImageId"` + Count requests.Integer `position:"Query" name:"Count"` + ClusterId string `position:"Query" name:"ClusterId"` + ComputeSpotStrategy string `position:"Query" name:"ComputeSpotStrategy"` + ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + AutoRenew string `position:"Query" name:"AutoRenew"` + EcsChargeType string `position:"Query" name:"EcsChargeType"` + InstanceType string `position:"Query" name:"InstanceType"` + ComputeSpotPriceLimit string `position:"Query" name:"ComputeSpotPriceLimit"` +} + +// AddNodesResponse is the response struct for api AddNodes +type AddNodesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceIds InstanceIdsInAddNodes `json:"InstanceIds" xml:"InstanceIds"` +} + +// CreateAddNodesRequest creates a request to invoke AddNodes API +func CreateAddNodesRequest() (request *AddNodesRequest) { + request = &AddNodesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "AddNodes", "ehs", "openAPI") + return +} + +// CreateAddNodesResponse creates a response to parse from AddNodes response +func CreateAddNodesResponse() (response *AddNodesResponse) { + response = &AddNodesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/add_users.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/add_users.go new file mode 100644 index 0000000..a5bd3de --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/add_users.go @@ -0,0 +1,111 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddUsers invokes the ehpc.AddUsers API synchronously +// api document: https://help.aliyun.com/api/ehpc/addusers.html +func (client *Client) AddUsers(request *AddUsersRequest) (response *AddUsersResponse, err error) { + response = CreateAddUsersResponse() + err = client.DoAction(request, response) + return +} + +// AddUsersWithChan invokes the ehpc.AddUsers API asynchronously +// api document: https://help.aliyun.com/api/ehpc/addusers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddUsersWithChan(request *AddUsersRequest) (<-chan *AddUsersResponse, <-chan error) { + responseChan := make(chan *AddUsersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddUsers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddUsersWithCallback invokes the ehpc.AddUsers API asynchronously +// api document: https://help.aliyun.com/api/ehpc/addusers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddUsersWithCallback(request *AddUsersRequest, callback func(response *AddUsersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddUsersResponse + var err error + defer close(result) + response, err = client.AddUsers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddUsersRequest is the request struct for api AddUsers +type AddUsersRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + User *[]AddUsersUser `position:"Query" name:"User" type:"Repeated"` +} + +// AddUsersUser is a repeated param struct in AddUsersRequest +type AddUsersUser struct { + Name string `name:"Name"` + Group string `name:"Group"` + Password string `name:"Password"` +} + +// AddUsersResponse is the response struct for api AddUsers +type AddUsersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddUsersRequest creates a request to invoke AddUsers API +func CreateAddUsersRequest() (request *AddUsersRequest) { + request = &AddUsersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "AddUsers", "ehs", "openAPI") + return +} + +// CreateAddUsersResponse creates a response to parse from AddUsers response +func CreateAddUsersResponse() (response *AddUsersResponse) { + response = &AddUsersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/client.go new file mode 100644 index 0000000..8a91cd9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/client.go @@ -0,0 +1,81 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/create_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/create_cluster.go new file mode 100644 index 0000000..79fed10 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/create_cluster.go @@ -0,0 +1,152 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateCluster invokes the ehpc.CreateCluster API synchronously +// api document: https://help.aliyun.com/api/ehpc/createcluster.html +func (client *Client) CreateCluster(request *CreateClusterRequest) (response *CreateClusterResponse, err error) { + response = CreateCreateClusterResponse() + err = client.DoAction(request, response) + return +} + +// CreateClusterWithChan invokes the ehpc.CreateCluster API asynchronously +// api document: https://help.aliyun.com/api/ehpc/createcluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateClusterWithChan(request *CreateClusterRequest) (<-chan *CreateClusterResponse, <-chan error) { + responseChan := make(chan *CreateClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateClusterWithCallback invokes the ehpc.CreateCluster API asynchronously +// api document: https://help.aliyun.com/api/ehpc/createcluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateClusterWithCallback(request *CreateClusterRequest, callback func(response *CreateClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateClusterResponse + var err error + defer close(result) + response, err = client.CreateCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateClusterRequest is the request struct for api CreateCluster +type CreateClusterRequest struct { + *requests.RpcRequest + SccClusterId string `position:"Query" name:"SccClusterId"` + ImageId string `position:"Query" name:"ImageId"` + EcsOrderManagerInstanceType string `position:"Query" name:"EcsOrder.Manager.InstanceType"` + EhpcVersion string `position:"Query" name:"EhpcVersion"` + AccountType string `position:"Query" name:"AccountType"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Description string `position:"Query" name:"Description"` + KeyPairName string `position:"Query" name:"KeyPairName"` + SecurityGroupName string `position:"Query" name:"SecurityGroupName"` + EcsOrderComputeInstanceType string `position:"Query" name:"EcsOrder.Compute.InstanceType"` + ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"` + VolumeType string `position:"Query" name:"VolumeType"` + DeployMode string `position:"Query" name:"DeployMode"` + EcsOrderManagerCount requests.Integer `position:"Query" name:"EcsOrder.Manager.Count"` + Password string `position:"Query" name:"Password"` + EcsOrderLoginCount requests.Integer `position:"Query" name:"EcsOrder.Login.Count"` + ComputeSpotPriceLimit string `position:"Query" name:"ComputeSpotPriceLimit"` + AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` + Period requests.Integer `position:"Query" name:"Period"` + VolumeProtocol string `position:"Query" name:"VolumeProtocol"` + OsTag string `position:"Query" name:"OsTag"` + RemoteDirectory string `position:"Query" name:"RemoteDirectory"` + EcsOrderComputeCount requests.Integer `position:"Query" name:"EcsOrder.Compute.Count"` + ComputeSpotStrategy string `position:"Query" name:"ComputeSpotStrategy"` + PostInstallScript *[]CreateClusterPostInstallScript `position:"Query" name:"PostInstallScript" type:"Repeated"` + VSwitchId string `position:"Query" name:"VSwitchId"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + Application *[]CreateClusterApplication `position:"Query" name:"Application" type:"Repeated"` + AutoRenew string `position:"Query" name:"AutoRenew"` + EcsChargeType string `position:"Query" name:"EcsChargeType"` + VpcId string `position:"Query" name:"VpcId"` + HaEnable requests.Boolean `position:"Query" name:"HaEnable"` + Name string `position:"Query" name:"Name"` + SchedulerType string `position:"Query" name:"SchedulerType"` + VolumeId string `position:"Query" name:"VolumeId"` + VolumeMountpoint string `position:"Query" name:"VolumeMountpoint"` + EcsOrderLoginInstanceType string `position:"Query" name:"EcsOrder.Login.InstanceType"` + ZoneId string `position:"Query" name:"ZoneId"` +} + +// CreateClusterPostInstallScript is a repeated param struct in CreateClusterRequest +type CreateClusterPostInstallScript struct { + Url string `name:"Url"` + Args string `name:"Args"` +} + +// CreateClusterApplication is a repeated param struct in CreateClusterRequest +type CreateClusterApplication struct { + Tag string `name:"Tag"` +} + +// CreateClusterResponse is the response struct for api CreateCluster +type CreateClusterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ClusterId string `json:"ClusterId" xml:"ClusterId"` +} + +// CreateCreateClusterRequest creates a request to invoke CreateCluster API +func CreateCreateClusterRequest() (request *CreateClusterRequest) { + request = &CreateClusterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "CreateCluster", "ehs", "openAPI") + return +} + +// CreateCreateClusterResponse creates a response to parse from CreateCluster response +func CreateCreateClusterResponse() (response *CreateClusterResponse) { + response = &CreateClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/create_hybrid_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/create_hybrid_cluster.go new file mode 100644 index 0000000..a8be01c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/create_hybrid_cluster.go @@ -0,0 +1,129 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateHybridCluster invokes the ehpc.CreateHybridCluster API synchronously +// api document: https://help.aliyun.com/api/ehpc/createhybridcluster.html +func (client *Client) CreateHybridCluster(request *CreateHybridClusterRequest) (response *CreateHybridClusterResponse, err error) { + response = CreateCreateHybridClusterResponse() + err = client.DoAction(request, response) + return +} + +// CreateHybridClusterWithChan invokes the ehpc.CreateHybridCluster API asynchronously +// api document: https://help.aliyun.com/api/ehpc/createhybridcluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateHybridClusterWithChan(request *CreateHybridClusterRequest) (<-chan *CreateHybridClusterResponse, <-chan error) { + responseChan := make(chan *CreateHybridClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateHybridCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateHybridClusterWithCallback invokes the ehpc.CreateHybridCluster API asynchronously +// api document: https://help.aliyun.com/api/ehpc/createhybridcluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateHybridClusterWithCallback(request *CreateHybridClusterRequest, callback func(response *CreateHybridClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateHybridClusterResponse + var err error + defer close(result) + response, err = client.CreateHybridCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateHybridClusterRequest is the request struct for api CreateHybridCluster +type CreateHybridClusterRequest struct { + *requests.RpcRequest + VolumeProtocol string `position:"Query" name:"VolumeProtocol"` + OsTag string `position:"Query" name:"OsTag"` + RemoteDirectory string `position:"Query" name:"RemoteDirectory"` + EhpcVersion string `position:"Query" name:"EhpcVersion"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Description string `position:"Query" name:"Description"` + KeyPairName string `position:"Query" name:"KeyPairName"` + SecurityGroupName string `position:"Query" name:"SecurityGroupName"` + EcsOrderComputeInstanceType string `position:"Query" name:"EcsOrder.Compute.InstanceType"` + VSwitchId string `position:"Query" name:"VSwitchId"` + VolumeType string `position:"Query" name:"VolumeType"` + Password string `position:"Query" name:"Password"` + Nodes string `position:"Query" name:"Nodes"` + Application *[]CreateHybridClusterApplication `position:"Query" name:"Application" type:"Repeated"` + Domain string `position:"Query" name:"Domain"` + VpcId string `position:"Query" name:"VpcId"` + Name string `position:"Query" name:"Name"` + VolumeId string `position:"Query" name:"VolumeId"` + VolumeMountpoint string `position:"Query" name:"VolumeMountpoint"` + ZoneId string `position:"Query" name:"ZoneId"` + Location string `position:"Query" name:"Location"` +} + +// CreateHybridClusterApplication is a repeated param struct in CreateHybridClusterRequest +type CreateHybridClusterApplication struct { + Tag string `name:"Tag"` +} + +// CreateHybridClusterResponse is the response struct for api CreateHybridCluster +type CreateHybridClusterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ClusterId string `json:"ClusterId" xml:"ClusterId"` +} + +// CreateCreateHybridClusterRequest creates a request to invoke CreateHybridCluster API +func CreateCreateHybridClusterRequest() (request *CreateHybridClusterRequest) { + request = &CreateHybridClusterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "CreateHybridCluster", "ehs", "openAPI") + return +} + +// CreateCreateHybridClusterResponse creates a response to parse from CreateHybridCluster response +func CreateCreateHybridClusterResponse() (response *CreateHybridClusterResponse) { + response = &CreateHybridClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/create_job_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/create_job_template.go new file mode 100644 index 0000000..36f7612 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/create_job_template.go @@ -0,0 +1,113 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateJobTemplate invokes the ehpc.CreateJobTemplate API synchronously +// api document: https://help.aliyun.com/api/ehpc/createjobtemplate.html +func (client *Client) CreateJobTemplate(request *CreateJobTemplateRequest) (response *CreateJobTemplateResponse, err error) { + response = CreateCreateJobTemplateResponse() + err = client.DoAction(request, response) + return +} + +// CreateJobTemplateWithChan invokes the ehpc.CreateJobTemplate API asynchronously +// api document: https://help.aliyun.com/api/ehpc/createjobtemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateJobTemplateWithChan(request *CreateJobTemplateRequest) (<-chan *CreateJobTemplateResponse, <-chan error) { + responseChan := make(chan *CreateJobTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateJobTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateJobTemplateWithCallback invokes the ehpc.CreateJobTemplate API asynchronously +// api document: https://help.aliyun.com/api/ehpc/createjobtemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateJobTemplateWithCallback(request *CreateJobTemplateRequest, callback func(response *CreateJobTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateJobTemplateResponse + var err error + defer close(result) + response, err = client.CreateJobTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateJobTemplateRequest is the request struct for api CreateJobTemplate +type CreateJobTemplateRequest struct { + *requests.RpcRequest + StderrRedirectPath string `position:"Query" name:"StderrRedirectPath"` + ArrayRequest string `position:"Query" name:"ArrayRequest"` + PackagePath string `position:"Query" name:"PackagePath"` + Variables string `position:"Query" name:"Variables"` + Name string `position:"Query" name:"Name"` + RunasUser string `position:"Query" name:"RunasUser"` + StdoutRedirectPath string `position:"Query" name:"StdoutRedirectPath"` + ReRunable requests.Boolean `position:"Query" name:"ReRunable"` + Priority requests.Integer `position:"Query" name:"Priority"` + CommandLine string `position:"Query" name:"CommandLine"` +} + +// CreateJobTemplateResponse is the response struct for api CreateJobTemplate +type CreateJobTemplateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TemplateId string `json:"TemplateId" xml:"TemplateId"` +} + +// CreateCreateJobTemplateRequest creates a request to invoke CreateJobTemplate API +func CreateCreateJobTemplateRequest() (request *CreateJobTemplateRequest) { + request = &CreateJobTemplateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "CreateJobTemplate", "ehs", "openAPI") + return +} + +// CreateCreateJobTemplateResponse creates a response to parse from CreateJobTemplate response +func CreateCreateJobTemplateResponse() (response *CreateJobTemplateResponse) { + response = &CreateJobTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_cluster.go new file mode 100644 index 0000000..95b671a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_cluster.go @@ -0,0 +1,104 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCluster invokes the ehpc.DeleteCluster API synchronously +// api document: https://help.aliyun.com/api/ehpc/deletecluster.html +func (client *Client) DeleteCluster(request *DeleteClusterRequest) (response *DeleteClusterResponse, err error) { + response = CreateDeleteClusterResponse() + err = client.DoAction(request, response) + return +} + +// DeleteClusterWithChan invokes the ehpc.DeleteCluster API asynchronously +// api document: https://help.aliyun.com/api/ehpc/deletecluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteClusterWithChan(request *DeleteClusterRequest) (<-chan *DeleteClusterResponse, <-chan error) { + responseChan := make(chan *DeleteClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteClusterWithCallback invokes the ehpc.DeleteCluster API asynchronously +// api document: https://help.aliyun.com/api/ehpc/deletecluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteClusterWithCallback(request *DeleteClusterRequest, callback func(response *DeleteClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteClusterResponse + var err error + defer close(result) + response, err = client.DeleteCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteClusterRequest is the request struct for api DeleteCluster +type DeleteClusterRequest struct { + *requests.RpcRequest + ReleaseInstance string `position:"Query" name:"ReleaseInstance"` + ClusterId string `position:"Query" name:"ClusterId"` +} + +// DeleteClusterResponse is the response struct for api DeleteCluster +type DeleteClusterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteClusterRequest creates a request to invoke DeleteCluster API +func CreateDeleteClusterRequest() (request *DeleteClusterRequest) { + request = &DeleteClusterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DeleteCluster", "ehs", "openAPI") + return +} + +// CreateDeleteClusterResponse creates a response to parse from DeleteCluster response +func CreateDeleteClusterResponse() (response *DeleteClusterResponse) { + response = &DeleteClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_container_apps.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_container_apps.go new file mode 100644 index 0000000..0d0b9b1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_container_apps.go @@ -0,0 +1,108 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteContainerApps invokes the ehpc.DeleteContainerApps API synchronously +// api document: https://help.aliyun.com/api/ehpc/deletecontainerapps.html +func (client *Client) DeleteContainerApps(request *DeleteContainerAppsRequest) (response *DeleteContainerAppsResponse, err error) { + response = CreateDeleteContainerAppsResponse() + err = client.DoAction(request, response) + return +} + +// DeleteContainerAppsWithChan invokes the ehpc.DeleteContainerApps API asynchronously +// api document: https://help.aliyun.com/api/ehpc/deletecontainerapps.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteContainerAppsWithChan(request *DeleteContainerAppsRequest) (<-chan *DeleteContainerAppsResponse, <-chan error) { + responseChan := make(chan *DeleteContainerAppsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteContainerApps(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteContainerAppsWithCallback invokes the ehpc.DeleteContainerApps API asynchronously +// api document: https://help.aliyun.com/api/ehpc/deletecontainerapps.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteContainerAppsWithCallback(request *DeleteContainerAppsRequest, callback func(response *DeleteContainerAppsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteContainerAppsResponse + var err error + defer close(result) + response, err = client.DeleteContainerApps(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteContainerAppsRequest is the request struct for api DeleteContainerApps +type DeleteContainerAppsRequest struct { + *requests.RpcRequest + ContainerApp *[]DeleteContainerAppsContainerApp `position:"Query" name:"ContainerApp" type:"Repeated"` +} + +// DeleteContainerAppsContainerApp is a repeated param struct in DeleteContainerAppsRequest +type DeleteContainerAppsContainerApp struct { + Id string `name:"Id"` +} + +// DeleteContainerAppsResponse is the response struct for api DeleteContainerApps +type DeleteContainerAppsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteContainerAppsRequest creates a request to invoke DeleteContainerApps API +func CreateDeleteContainerAppsRequest() (request *DeleteContainerAppsRequest) { + request = &DeleteContainerAppsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DeleteContainerApps", "ehs", "openAPI") + return +} + +// CreateDeleteContainerAppsResponse creates a response to parse from DeleteContainerApps response +func CreateDeleteContainerAppsResponse() (response *DeleteContainerAppsResponse) { + response = &DeleteContainerAppsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_job_templates.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_job_templates.go new file mode 100644 index 0000000..96c8cfb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_job_templates.go @@ -0,0 +1,103 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteJobTemplates invokes the ehpc.DeleteJobTemplates API synchronously +// api document: https://help.aliyun.com/api/ehpc/deletejobtemplates.html +func (client *Client) DeleteJobTemplates(request *DeleteJobTemplatesRequest) (response *DeleteJobTemplatesResponse, err error) { + response = CreateDeleteJobTemplatesResponse() + err = client.DoAction(request, response) + return +} + +// DeleteJobTemplatesWithChan invokes the ehpc.DeleteJobTemplates API asynchronously +// api document: https://help.aliyun.com/api/ehpc/deletejobtemplates.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteJobTemplatesWithChan(request *DeleteJobTemplatesRequest) (<-chan *DeleteJobTemplatesResponse, <-chan error) { + responseChan := make(chan *DeleteJobTemplatesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteJobTemplates(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteJobTemplatesWithCallback invokes the ehpc.DeleteJobTemplates API asynchronously +// api document: https://help.aliyun.com/api/ehpc/deletejobtemplates.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteJobTemplatesWithCallback(request *DeleteJobTemplatesRequest, callback func(response *DeleteJobTemplatesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteJobTemplatesResponse + var err error + defer close(result) + response, err = client.DeleteJobTemplates(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteJobTemplatesRequest is the request struct for api DeleteJobTemplates +type DeleteJobTemplatesRequest struct { + *requests.RpcRequest + Templates string `position:"Query" name:"Templates"` +} + +// DeleteJobTemplatesResponse is the response struct for api DeleteJobTemplates +type DeleteJobTemplatesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteJobTemplatesRequest creates a request to invoke DeleteJobTemplates API +func CreateDeleteJobTemplatesRequest() (request *DeleteJobTemplatesRequest) { + request = &DeleteJobTemplatesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DeleteJobTemplates", "ehs", "openAPI") + return +} + +// CreateDeleteJobTemplatesResponse creates a response to parse from DeleteJobTemplates response +func CreateDeleteJobTemplatesResponse() (response *DeleteJobTemplatesResponse) { + response = &DeleteJobTemplatesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_jobs.go new file mode 100644 index 0000000..a58659c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_jobs.go @@ -0,0 +1,104 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteJobs invokes the ehpc.DeleteJobs API synchronously +// api document: https://help.aliyun.com/api/ehpc/deletejobs.html +func (client *Client) DeleteJobs(request *DeleteJobsRequest) (response *DeleteJobsResponse, err error) { + response = CreateDeleteJobsResponse() + err = client.DoAction(request, response) + return +} + +// DeleteJobsWithChan invokes the ehpc.DeleteJobs API asynchronously +// api document: https://help.aliyun.com/api/ehpc/deletejobs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteJobsWithChan(request *DeleteJobsRequest) (<-chan *DeleteJobsResponse, <-chan error) { + responseChan := make(chan *DeleteJobsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteJobs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteJobsWithCallback invokes the ehpc.DeleteJobs API asynchronously +// api document: https://help.aliyun.com/api/ehpc/deletejobs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteJobsWithCallback(request *DeleteJobsRequest, callback func(response *DeleteJobsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteJobsResponse + var err error + defer close(result) + response, err = client.DeleteJobs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteJobsRequest is the request struct for api DeleteJobs +type DeleteJobsRequest struct { + *requests.RpcRequest + Jobs string `position:"Query" name:"Jobs"` + ClusterId string `position:"Query" name:"ClusterId"` +} + +// DeleteJobsResponse is the response struct for api DeleteJobs +type DeleteJobsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteJobsRequest creates a request to invoke DeleteJobs API +func CreateDeleteJobsRequest() (request *DeleteJobsRequest) { + request = &DeleteJobsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DeleteJobs", "ehs", "openAPI") + return +} + +// CreateDeleteJobsResponse creates a response to parse from DeleteJobs response +func CreateDeleteJobsResponse() (response *DeleteJobsResponse) { + response = &DeleteJobsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_nodes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_nodes.go new file mode 100644 index 0000000..4c3a203 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_nodes.go @@ -0,0 +1,110 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteNodes invokes the ehpc.DeleteNodes API synchronously +// api document: https://help.aliyun.com/api/ehpc/deletenodes.html +func (client *Client) DeleteNodes(request *DeleteNodesRequest) (response *DeleteNodesResponse, err error) { + response = CreateDeleteNodesResponse() + err = client.DoAction(request, response) + return +} + +// DeleteNodesWithChan invokes the ehpc.DeleteNodes API asynchronously +// api document: https://help.aliyun.com/api/ehpc/deletenodes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteNodesWithChan(request *DeleteNodesRequest) (<-chan *DeleteNodesResponse, <-chan error) { + responseChan := make(chan *DeleteNodesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteNodes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteNodesWithCallback invokes the ehpc.DeleteNodes API asynchronously +// api document: https://help.aliyun.com/api/ehpc/deletenodes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteNodesWithCallback(request *DeleteNodesRequest, callback func(response *DeleteNodesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteNodesResponse + var err error + defer close(result) + response, err = client.DeleteNodes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteNodesRequest is the request struct for api DeleteNodes +type DeleteNodesRequest struct { + *requests.RpcRequest + ReleaseInstance requests.Boolean `position:"Query" name:"ReleaseInstance"` + Instance *[]DeleteNodesInstance `position:"Query" name:"Instance" type:"Repeated"` + ClusterId string `position:"Query" name:"ClusterId"` +} + +// DeleteNodesInstance is a repeated param struct in DeleteNodesRequest +type DeleteNodesInstance struct { + Id string `name:"Id"` +} + +// DeleteNodesResponse is the response struct for api DeleteNodes +type DeleteNodesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteNodesRequest creates a request to invoke DeleteNodes API +func CreateDeleteNodesRequest() (request *DeleteNodesRequest) { + request = &DeleteNodesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DeleteNodes", "ehs", "openAPI") + return +} + +// CreateDeleteNodesResponse creates a response to parse from DeleteNodes response +func CreateDeleteNodesResponse() (response *DeleteNodesResponse) { + response = &DeleteNodesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_users.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_users.go new file mode 100644 index 0000000..975249b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/delete_users.go @@ -0,0 +1,109 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteUsers invokes the ehpc.DeleteUsers API synchronously +// api document: https://help.aliyun.com/api/ehpc/deleteusers.html +func (client *Client) DeleteUsers(request *DeleteUsersRequest) (response *DeleteUsersResponse, err error) { + response = CreateDeleteUsersResponse() + err = client.DoAction(request, response) + return +} + +// DeleteUsersWithChan invokes the ehpc.DeleteUsers API asynchronously +// api document: https://help.aliyun.com/api/ehpc/deleteusers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteUsersWithChan(request *DeleteUsersRequest) (<-chan *DeleteUsersResponse, <-chan error) { + responseChan := make(chan *DeleteUsersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteUsers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteUsersWithCallback invokes the ehpc.DeleteUsers API asynchronously +// api document: https://help.aliyun.com/api/ehpc/deleteusers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteUsersWithCallback(request *DeleteUsersRequest, callback func(response *DeleteUsersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteUsersResponse + var err error + defer close(result) + response, err = client.DeleteUsers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteUsersRequest is the request struct for api DeleteUsers +type DeleteUsersRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + User *[]DeleteUsersUser `position:"Query" name:"User" type:"Repeated"` +} + +// DeleteUsersUser is a repeated param struct in DeleteUsersRequest +type DeleteUsersUser struct { + Name string `name:"Name"` +} + +// DeleteUsersResponse is the response struct for api DeleteUsers +type DeleteUsersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteUsersRequest creates a request to invoke DeleteUsers API +func CreateDeleteUsersRequest() (request *DeleteUsersRequest) { + request = &DeleteUsersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DeleteUsers", "ehs", "openAPI") + return +} + +// CreateDeleteUsersResponse creates a response to parse from DeleteUsers response +func CreateDeleteUsersResponse() (response *DeleteUsersResponse) { + response = &DeleteUsersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/describe_auto_scale_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/describe_auto_scale_config.go new file mode 100644 index 0000000..c973abb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/describe_auto_scale_config.go @@ -0,0 +1,118 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAutoScaleConfig invokes the ehpc.DescribeAutoScaleConfig API synchronously +// api document: https://help.aliyun.com/api/ehpc/describeautoscaleconfig.html +func (client *Client) DescribeAutoScaleConfig(request *DescribeAutoScaleConfigRequest) (response *DescribeAutoScaleConfigResponse, err error) { + response = CreateDescribeAutoScaleConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAutoScaleConfigWithChan invokes the ehpc.DescribeAutoScaleConfig API asynchronously +// api document: https://help.aliyun.com/api/ehpc/describeautoscaleconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAutoScaleConfigWithChan(request *DescribeAutoScaleConfigRequest) (<-chan *DescribeAutoScaleConfigResponse, <-chan error) { + responseChan := make(chan *DescribeAutoScaleConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAutoScaleConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAutoScaleConfigWithCallback invokes the ehpc.DescribeAutoScaleConfig API asynchronously +// api document: https://help.aliyun.com/api/ehpc/describeautoscaleconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAutoScaleConfigWithCallback(request *DescribeAutoScaleConfigRequest, callback func(response *DescribeAutoScaleConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAutoScaleConfigResponse + var err error + defer close(result) + response, err = client.DescribeAutoScaleConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAutoScaleConfigRequest is the request struct for api DescribeAutoScaleConfig +type DescribeAutoScaleConfigRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` +} + +// DescribeAutoScaleConfigResponse is the response struct for api DescribeAutoScaleConfig +type DescribeAutoScaleConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Uid string `json:"Uid" xml:"Uid"` + ClusterId string `json:"ClusterId" xml:"ClusterId"` + ClusterType string `json:"ClusterType" xml:"ClusterType"` + EnableAutoGrow bool `json:"EnableAutoGrow" xml:"EnableAutoGrow"` + EnableAutoShrink bool `json:"EnableAutoShrink" xml:"EnableAutoShrink"` + GrowIntervalInMinutes int `json:"GrowIntervalInMinutes" xml:"GrowIntervalInMinutes"` + ShrinkIntervalInMinutes int `json:"ShrinkIntervalInMinutes" xml:"ShrinkIntervalInMinutes"` + ShrinkIdleTimes int `json:"ShrinkIdleTimes" xml:"ShrinkIdleTimes"` + GrowTimeoutInMinutes int `json:"GrowTimeoutInMinutes" xml:"GrowTimeoutInMinutes"` + ExtraNodesGrowRatio int `json:"ExtraNodesGrowRatio" xml:"ExtraNodesGrowRatio"` + GrowRatio int `json:"GrowRatio" xml:"GrowRatio"` + MaxNodesInCluster int `json:"MaxNodesInCluster" xml:"MaxNodesInCluster"` + ExcludeNodes string `json:"ExcludeNodes" xml:"ExcludeNodes"` + SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` + SpotPriceLimit string `json:"SpotPriceLimit" xml:"SpotPriceLimit"` +} + +// CreateDescribeAutoScaleConfigRequest creates a request to invoke DescribeAutoScaleConfig API +func CreateDescribeAutoScaleConfigRequest() (request *DescribeAutoScaleConfigRequest) { + request = &DescribeAutoScaleConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DescribeAutoScaleConfig", "ehs", "openAPI") + return +} + +// CreateDescribeAutoScaleConfigResponse creates a response to parse from DescribeAutoScaleConfig response +func CreateDescribeAutoScaleConfigResponse() (response *DescribeAutoScaleConfigResponse) { + response = &DescribeAutoScaleConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/describe_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/describe_cluster.go new file mode 100644 index 0000000..d5c402d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/describe_cluster.go @@ -0,0 +1,104 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCluster invokes the ehpc.DescribeCluster API synchronously +// api document: https://help.aliyun.com/api/ehpc/describecluster.html +func (client *Client) DescribeCluster(request *DescribeClusterRequest) (response *DescribeClusterResponse, err error) { + response = CreateDescribeClusterResponse() + err = client.DoAction(request, response) + return +} + +// DescribeClusterWithChan invokes the ehpc.DescribeCluster API asynchronously +// api document: https://help.aliyun.com/api/ehpc/describecluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterWithChan(request *DescribeClusterRequest) (<-chan *DescribeClusterResponse, <-chan error) { + responseChan := make(chan *DescribeClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeClusterWithCallback invokes the ehpc.DescribeCluster API asynchronously +// api document: https://help.aliyun.com/api/ehpc/describecluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeClusterWithCallback(request *DescribeClusterRequest, callback func(response *DescribeClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeClusterResponse + var err error + defer close(result) + response, err = client.DescribeCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeClusterRequest is the request struct for api DescribeCluster +type DescribeClusterRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` +} + +// DescribeClusterResponse is the response struct for api DescribeCluster +type DescribeClusterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ClusterInfo ClusterInfo `json:"ClusterInfo" xml:"ClusterInfo"` +} + +// CreateDescribeClusterRequest creates a request to invoke DescribeCluster API +func CreateDescribeClusterRequest() (request *DescribeClusterRequest) { + request = &DescribeClusterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DescribeCluster", "ehs", "openAPI") + return +} + +// CreateDescribeClusterResponse creates a response to parse from DescribeCluster response +func CreateDescribeClusterResponse() (response *DescribeClusterResponse) { + response = &DescribeClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/describe_container_app.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/describe_container_app.go new file mode 100644 index 0000000..ddbff12 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/describe_container_app.go @@ -0,0 +1,104 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeContainerApp invokes the ehpc.DescribeContainerApp API synchronously +// api document: https://help.aliyun.com/api/ehpc/describecontainerapp.html +func (client *Client) DescribeContainerApp(request *DescribeContainerAppRequest) (response *DescribeContainerAppResponse, err error) { + response = CreateDescribeContainerAppResponse() + err = client.DoAction(request, response) + return +} + +// DescribeContainerAppWithChan invokes the ehpc.DescribeContainerApp API asynchronously +// api document: https://help.aliyun.com/api/ehpc/describecontainerapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeContainerAppWithChan(request *DescribeContainerAppRequest) (<-chan *DescribeContainerAppResponse, <-chan error) { + responseChan := make(chan *DescribeContainerAppResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeContainerApp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeContainerAppWithCallback invokes the ehpc.DescribeContainerApp API asynchronously +// api document: https://help.aliyun.com/api/ehpc/describecontainerapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeContainerAppWithCallback(request *DescribeContainerAppRequest, callback func(response *DescribeContainerAppResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeContainerAppResponse + var err error + defer close(result) + response, err = client.DescribeContainerApp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeContainerAppRequest is the request struct for api DescribeContainerApp +type DescribeContainerAppRequest struct { + *requests.RpcRequest + ContainerId string `position:"Query" name:"ContainerId"` +} + +// DescribeContainerAppResponse is the response struct for api DescribeContainerApp +type DescribeContainerAppResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ContainerAppInfo ContainerAppInfo `json:"ContainerAppInfo" xml:"ContainerAppInfo"` +} + +// CreateDescribeContainerAppRequest creates a request to invoke DescribeContainerApp API +func CreateDescribeContainerAppRequest() (request *DescribeContainerAppRequest) { + request = &DescribeContainerAppRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DescribeContainerApp", "ehs", "openAPI") + return +} + +// CreateDescribeContainerAppResponse creates a response to parse from DescribeContainerApp response +func CreateDescribeContainerAppResponse() (response *DescribeContainerAppResponse) { + response = &DescribeContainerAppResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/edit_job_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/edit_job_template.go new file mode 100644 index 0000000..a47ab43 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/edit_job_template.go @@ -0,0 +1,114 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EditJobTemplate invokes the ehpc.EditJobTemplate API synchronously +// api document: https://help.aliyun.com/api/ehpc/editjobtemplate.html +func (client *Client) EditJobTemplate(request *EditJobTemplateRequest) (response *EditJobTemplateResponse, err error) { + response = CreateEditJobTemplateResponse() + err = client.DoAction(request, response) + return +} + +// EditJobTemplateWithChan invokes the ehpc.EditJobTemplate API asynchronously +// api document: https://help.aliyun.com/api/ehpc/editjobtemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EditJobTemplateWithChan(request *EditJobTemplateRequest) (<-chan *EditJobTemplateResponse, <-chan error) { + responseChan := make(chan *EditJobTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EditJobTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EditJobTemplateWithCallback invokes the ehpc.EditJobTemplate API asynchronously +// api document: https://help.aliyun.com/api/ehpc/editjobtemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EditJobTemplateWithCallback(request *EditJobTemplateRequest, callback func(response *EditJobTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EditJobTemplateResponse + var err error + defer close(result) + response, err = client.EditJobTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EditJobTemplateRequest is the request struct for api EditJobTemplate +type EditJobTemplateRequest struct { + *requests.RpcRequest + StderrRedirectPath string `position:"Query" name:"StderrRedirectPath"` + Variables string `position:"Query" name:"Variables"` + RunasUser string `position:"Query" name:"RunasUser"` + ReRunable requests.Boolean `position:"Query" name:"ReRunable"` + TemplateId string `position:"Query" name:"TemplateId"` + Priority requests.Integer `position:"Query" name:"Priority"` + CommandLine string `position:"Query" name:"CommandLine"` + ArrayRequest string `position:"Query" name:"ArrayRequest"` + PackagePath string `position:"Query" name:"PackagePath"` + Name string `position:"Query" name:"Name"` + StdoutRedirectPath string `position:"Query" name:"StdoutRedirectPath"` +} + +// EditJobTemplateResponse is the response struct for api EditJobTemplate +type EditJobTemplateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TemplateId string `json:"TemplateId" xml:"TemplateId"` +} + +// CreateEditJobTemplateRequest creates a request to invoke EditJobTemplate API +func CreateEditJobTemplateRequest() (request *EditJobTemplateRequest) { + request = &EditJobTemplateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "EditJobTemplate", "ehs", "openAPI") + return +} + +// CreateEditJobTemplateResponse creates a response to parse from EditJobTemplate response +func CreateEditJobTemplateResponse() (response *EditJobTemplateResponse) { + response = &EditJobTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/get_auto_scale_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/get_auto_scale_config.go new file mode 100644 index 0000000..9000881 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/get_auto_scale_config.go @@ -0,0 +1,116 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetAutoScaleConfig invokes the ehpc.GetAutoScaleConfig API synchronously +// api document: https://help.aliyun.com/api/ehpc/getautoscaleconfig.html +func (client *Client) GetAutoScaleConfig(request *GetAutoScaleConfigRequest) (response *GetAutoScaleConfigResponse, err error) { + response = CreateGetAutoScaleConfigResponse() + err = client.DoAction(request, response) + return +} + +// GetAutoScaleConfigWithChan invokes the ehpc.GetAutoScaleConfig API asynchronously +// api document: https://help.aliyun.com/api/ehpc/getautoscaleconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetAutoScaleConfigWithChan(request *GetAutoScaleConfigRequest) (<-chan *GetAutoScaleConfigResponse, <-chan error) { + responseChan := make(chan *GetAutoScaleConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetAutoScaleConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetAutoScaleConfigWithCallback invokes the ehpc.GetAutoScaleConfig API asynchronously +// api document: https://help.aliyun.com/api/ehpc/getautoscaleconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetAutoScaleConfigWithCallback(request *GetAutoScaleConfigRequest, callback func(response *GetAutoScaleConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetAutoScaleConfigResponse + var err error + defer close(result) + response, err = client.GetAutoScaleConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetAutoScaleConfigRequest is the request struct for api GetAutoScaleConfig +type GetAutoScaleConfigRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` +} + +// GetAutoScaleConfigResponse is the response struct for api GetAutoScaleConfig +type GetAutoScaleConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Uid string `json:"Uid" xml:"Uid"` + ClusterId string `json:"ClusterId" xml:"ClusterId"` + ClusterType string `json:"ClusterType" xml:"ClusterType"` + EnableAutoGrow bool `json:"EnableAutoGrow" xml:"EnableAutoGrow"` + EnableAutoShrink bool `json:"EnableAutoShrink" xml:"EnableAutoShrink"` + GrowIntervalInMinutes int `json:"GrowIntervalInMinutes" xml:"GrowIntervalInMinutes"` + ShrinkIntervalInMinutes int `json:"ShrinkIntervalInMinutes" xml:"ShrinkIntervalInMinutes"` + ShrinkIdleTimes int `json:"ShrinkIdleTimes" xml:"ShrinkIdleTimes"` + GrowTimeoutInMinutes int `json:"GrowTimeoutInMinutes" xml:"GrowTimeoutInMinutes"` + ExtraNodesGrowRatio int `json:"ExtraNodesGrowRatio" xml:"ExtraNodesGrowRatio"` + GrowRatio int `json:"GrowRatio" xml:"GrowRatio"` + MaxNodesInCluster int `json:"MaxNodesInCluster" xml:"MaxNodesInCluster"` + ExcludeNodes string `json:"ExcludeNodes" xml:"ExcludeNodes"` +} + +// CreateGetAutoScaleConfigRequest creates a request to invoke GetAutoScaleConfig API +func CreateGetAutoScaleConfigRequest() (request *GetAutoScaleConfigRequest) { + request = &GetAutoScaleConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "GetAutoScaleConfig", "ehs", "openAPI") + return +} + +// CreateGetAutoScaleConfigResponse creates a response to parse from GetAutoScaleConfig response +func CreateGetAutoScaleConfigResponse() (response *GetAutoScaleConfigResponse) { + response = &GetAutoScaleConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/get_hybrid_cluster_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/get_hybrid_cluster_config.go new file mode 100644 index 0000000..eebd049 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/get_hybrid_cluster_config.go @@ -0,0 +1,104 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetHybridClusterConfig invokes the ehpc.GetHybridClusterConfig API synchronously +// api document: https://help.aliyun.com/api/ehpc/gethybridclusterconfig.html +func (client *Client) GetHybridClusterConfig(request *GetHybridClusterConfigRequest) (response *GetHybridClusterConfigResponse, err error) { + response = CreateGetHybridClusterConfigResponse() + err = client.DoAction(request, response) + return +} + +// GetHybridClusterConfigWithChan invokes the ehpc.GetHybridClusterConfig API asynchronously +// api document: https://help.aliyun.com/api/ehpc/gethybridclusterconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetHybridClusterConfigWithChan(request *GetHybridClusterConfigRequest) (<-chan *GetHybridClusterConfigResponse, <-chan error) { + responseChan := make(chan *GetHybridClusterConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetHybridClusterConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetHybridClusterConfigWithCallback invokes the ehpc.GetHybridClusterConfig API asynchronously +// api document: https://help.aliyun.com/api/ehpc/gethybridclusterconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetHybridClusterConfigWithCallback(request *GetHybridClusterConfigRequest, callback func(response *GetHybridClusterConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetHybridClusterConfigResponse + var err error + defer close(result) + response, err = client.GetHybridClusterConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetHybridClusterConfigRequest is the request struct for api GetHybridClusterConfig +type GetHybridClusterConfigRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` +} + +// GetHybridClusterConfigResponse is the response struct for api GetHybridClusterConfig +type GetHybridClusterConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ClusterConfig string `json:"ClusterConfig" xml:"ClusterConfig"` +} + +// CreateGetHybridClusterConfigRequest creates a request to invoke GetHybridClusterConfig API +func CreateGetHybridClusterConfigRequest() (request *GetHybridClusterConfigRequest) { + request = &GetHybridClusterConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "GetHybridClusterConfig", "ehs", "openAPI") + return +} + +// CreateGetHybridClusterConfigResponse creates a response to parse from GetHybridClusterConfig response +func CreateGetHybridClusterConfigResponse() (response *GetHybridClusterConfigResponse) { + response = &GetHybridClusterConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/invoke_shell_command.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/invoke_shell_command.go new file mode 100644 index 0000000..ce8609b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/invoke_shell_command.go @@ -0,0 +1,114 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// InvokeShellCommand invokes the ehpc.InvokeShellCommand API synchronously +// api document: https://help.aliyun.com/api/ehpc/invokeshellcommand.html +func (client *Client) InvokeShellCommand(request *InvokeShellCommandRequest) (response *InvokeShellCommandResponse, err error) { + response = CreateInvokeShellCommandResponse() + err = client.DoAction(request, response) + return +} + +// InvokeShellCommandWithChan invokes the ehpc.InvokeShellCommand API asynchronously +// api document: https://help.aliyun.com/api/ehpc/invokeshellcommand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) InvokeShellCommandWithChan(request *InvokeShellCommandRequest) (<-chan *InvokeShellCommandResponse, <-chan error) { + responseChan := make(chan *InvokeShellCommandResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.InvokeShellCommand(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// InvokeShellCommandWithCallback invokes the ehpc.InvokeShellCommand API asynchronously +// api document: https://help.aliyun.com/api/ehpc/invokeshellcommand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) InvokeShellCommandWithCallback(request *InvokeShellCommandRequest, callback func(response *InvokeShellCommandResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *InvokeShellCommandResponse + var err error + defer close(result) + response, err = client.InvokeShellCommand(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// InvokeShellCommandRequest is the request struct for api InvokeShellCommand +type InvokeShellCommandRequest struct { + *requests.RpcRequest + Instance *[]InvokeShellCommandInstance `position:"Query" name:"Instance" type:"Repeated"` + WorkingDir string `position:"Query" name:"WorkingDir"` + ClusterId string `position:"Query" name:"ClusterId"` + Command string `position:"Query" name:"Command"` + Timeout requests.Integer `position:"Query" name:"Timeout"` +} + +// InvokeShellCommandInstance is a repeated param struct in InvokeShellCommandRequest +type InvokeShellCommandInstance struct { + Id string `name:"Id"` +} + +// InvokeShellCommandResponse is the response struct for api InvokeShellCommand +type InvokeShellCommandResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CommandId string `json:"CommandId" xml:"CommandId"` + InstanceIds InstanceIdsInInvokeShellCommand `json:"InstanceIds" xml:"InstanceIds"` +} + +// CreateInvokeShellCommandRequest creates a request to invoke InvokeShellCommand API +func CreateInvokeShellCommandRequest() (request *InvokeShellCommandRequest) { + request = &InvokeShellCommandRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "InvokeShellCommand", "ehs", "openAPI") + return +} + +// CreateInvokeShellCommandResponse creates a response to parse from InvokeShellCommand response +func CreateInvokeShellCommandResponse() (response *InvokeShellCommandResponse) { + response = &InvokeShellCommandResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_cluster_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_cluster_logs.go new file mode 100644 index 0000000..3b46128 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_cluster_logs.go @@ -0,0 +1,110 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListClusterLogs invokes the ehpc.ListClusterLogs API synchronously +// api document: https://help.aliyun.com/api/ehpc/listclusterlogs.html +func (client *Client) ListClusterLogs(request *ListClusterLogsRequest) (response *ListClusterLogsResponse, err error) { + response = CreateListClusterLogsResponse() + err = client.DoAction(request, response) + return +} + +// ListClusterLogsWithChan invokes the ehpc.ListClusterLogs API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listclusterlogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListClusterLogsWithChan(request *ListClusterLogsRequest) (<-chan *ListClusterLogsResponse, <-chan error) { + responseChan := make(chan *ListClusterLogsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListClusterLogs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListClusterLogsWithCallback invokes the ehpc.ListClusterLogs API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listclusterlogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListClusterLogsWithCallback(request *ListClusterLogsRequest, callback func(response *ListClusterLogsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListClusterLogsResponse + var err error + defer close(result) + response, err = client.ListClusterLogs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListClusterLogsRequest is the request struct for api ListClusterLogs +type ListClusterLogsRequest struct { + *requests.RpcRequest + PageSize requests.Integer `position:"Query" name:"PageSize"` + ClusterId string `position:"Query" name:"ClusterId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// ListClusterLogsResponse is the response struct for api ListClusterLogs +type ListClusterLogsResponse 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"` + ClusterId string `json:"ClusterId" xml:"ClusterId"` + Logs Logs `json:"Logs" xml:"Logs"` +} + +// CreateListClusterLogsRequest creates a request to invoke ListClusterLogs API +func CreateListClusterLogsRequest() (request *ListClusterLogsRequest) { + request = &ListClusterLogsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListClusterLogs", "ehs", "openAPI") + return +} + +// CreateListClusterLogsResponse creates a response to parse from ListClusterLogs response +func CreateListClusterLogsResponse() (response *ListClusterLogsResponse) { + response = &ListClusterLogsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_clusters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_clusters.go new file mode 100644 index 0000000..4bebf80 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_clusters.go @@ -0,0 +1,108 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListClusters invokes the ehpc.ListClusters API synchronously +// api document: https://help.aliyun.com/api/ehpc/listclusters.html +func (client *Client) ListClusters(request *ListClustersRequest) (response *ListClustersResponse, err error) { + response = CreateListClustersResponse() + err = client.DoAction(request, response) + return +} + +// ListClustersWithChan invokes the ehpc.ListClusters API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listclusters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListClustersWithChan(request *ListClustersRequest) (<-chan *ListClustersResponse, <-chan error) { + responseChan := make(chan *ListClustersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListClusters(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListClustersWithCallback invokes the ehpc.ListClusters API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listclusters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListClustersWithCallback(request *ListClustersRequest, callback func(response *ListClustersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListClustersResponse + var err error + defer close(result) + response, err = client.ListClusters(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListClustersRequest is the request struct for api ListClusters +type ListClustersRequest struct { + *requests.RpcRequest + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// ListClustersResponse is the response struct for api ListClusters +type ListClustersResponse 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"` + Clusters Clusters `json:"Clusters" xml:"Clusters"` +} + +// CreateListClustersRequest creates a request to invoke ListClusters API +func CreateListClustersRequest() (request *ListClustersRequest) { + request = &ListClustersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListClusters", "ehs", "openAPI") + return +} + +// CreateListClustersResponse creates a response to parse from ListClusters response +func CreateListClustersResponse() (response *ListClustersResponse) { + response = &ListClustersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_commands.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_commands.go new file mode 100644 index 0000000..35834b1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_commands.go @@ -0,0 +1,110 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListCommands invokes the ehpc.ListCommands API synchronously +// api document: https://help.aliyun.com/api/ehpc/listcommands.html +func (client *Client) ListCommands(request *ListCommandsRequest) (response *ListCommandsResponse, err error) { + response = CreateListCommandsResponse() + err = client.DoAction(request, response) + return +} + +// ListCommandsWithChan invokes the ehpc.ListCommands API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listcommands.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListCommandsWithChan(request *ListCommandsRequest) (<-chan *ListCommandsResponse, <-chan error) { + responseChan := make(chan *ListCommandsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListCommands(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListCommandsWithCallback invokes the ehpc.ListCommands API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listcommands.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListCommandsWithCallback(request *ListCommandsRequest, callback func(response *ListCommandsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListCommandsResponse + var err error + defer close(result) + response, err = client.ListCommands(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListCommandsRequest is the request struct for api ListCommands +type ListCommandsRequest struct { + *requests.RpcRequest + PageSize requests.Integer `position:"Query" name:"PageSize"` + ClusterId string `position:"Query" name:"ClusterId"` + CommandId string `position:"Query" name:"CommandId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// ListCommandsResponse is the response struct for api ListCommands +type ListCommandsResponse 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"` + Commands Commands `json:"Commands" xml:"Commands"` +} + +// CreateListCommandsRequest creates a request to invoke ListCommands API +func CreateListCommandsRequest() (request *ListCommandsRequest) { + request = &ListCommandsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListCommands", "ehs", "openAPI") + return +} + +// CreateListCommandsResponse creates a response to parse from ListCommands response +func CreateListCommandsResponse() (response *ListCommandsResponse) { + response = &ListCommandsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_container_apps.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_container_apps.go new file mode 100644 index 0000000..f662317 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_container_apps.go @@ -0,0 +1,108 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListContainerApps invokes the ehpc.ListContainerApps API synchronously +// api document: https://help.aliyun.com/api/ehpc/listcontainerapps.html +func (client *Client) ListContainerApps(request *ListContainerAppsRequest) (response *ListContainerAppsResponse, err error) { + response = CreateListContainerAppsResponse() + err = client.DoAction(request, response) + return +} + +// ListContainerAppsWithChan invokes the ehpc.ListContainerApps API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listcontainerapps.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListContainerAppsWithChan(request *ListContainerAppsRequest) (<-chan *ListContainerAppsResponse, <-chan error) { + responseChan := make(chan *ListContainerAppsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListContainerApps(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListContainerAppsWithCallback invokes the ehpc.ListContainerApps API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listcontainerapps.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListContainerAppsWithCallback(request *ListContainerAppsRequest, callback func(response *ListContainerAppsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListContainerAppsResponse + var err error + defer close(result) + response, err = client.ListContainerApps(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListContainerAppsRequest is the request struct for api ListContainerApps +type ListContainerAppsRequest struct { + *requests.RpcRequest + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// ListContainerAppsResponse is the response struct for api ListContainerApps +type ListContainerAppsResponse 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"` + ContainerApps ContainerApps `json:"ContainerApps" xml:"ContainerApps"` +} + +// CreateListContainerAppsRequest creates a request to invoke ListContainerApps API +func CreateListContainerAppsRequest() (request *ListContainerAppsRequest) { + request = &ListContainerAppsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListContainerApps", "ehs", "openAPI") + return +} + +// CreateListContainerAppsResponse creates a response to parse from ListContainerApps response +func CreateListContainerAppsResponse() (response *ListContainerAppsResponse) { + response = &ListContainerAppsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_container_images.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_container_images.go new file mode 100644 index 0000000..763d003 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_container_images.go @@ -0,0 +1,111 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListContainerImages invokes the ehpc.ListContainerImages API synchronously +// api document: https://help.aliyun.com/api/ehpc/listcontainerimages.html +func (client *Client) ListContainerImages(request *ListContainerImagesRequest) (response *ListContainerImagesResponse, err error) { + response = CreateListContainerImagesResponse() + err = client.DoAction(request, response) + return +} + +// ListContainerImagesWithChan invokes the ehpc.ListContainerImages API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listcontainerimages.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListContainerImagesWithChan(request *ListContainerImagesRequest) (<-chan *ListContainerImagesResponse, <-chan error) { + responseChan := make(chan *ListContainerImagesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListContainerImages(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListContainerImagesWithCallback invokes the ehpc.ListContainerImages API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listcontainerimages.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListContainerImagesWithCallback(request *ListContainerImagesRequest, callback func(response *ListContainerImagesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListContainerImagesResponse + var err error + defer close(result) + response, err = client.ListContainerImages(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListContainerImagesRequest is the request struct for api ListContainerImages +type ListContainerImagesRequest struct { + *requests.RpcRequest + ContainerType string `position:"Query" name:"ContainerType"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ClusterId string `position:"Query" name:"ClusterId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// ListContainerImagesResponse is the response struct for api ListContainerImages +type ListContainerImagesResponse 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"` + DBInfo string `json:"DBInfo" xml:"DBInfo"` + Images ImagesInListContainerImages `json:"Images" xml:"Images"` +} + +// CreateListContainerImagesRequest creates a request to invoke ListContainerImages API +func CreateListContainerImagesRequest() (request *ListContainerImagesRequest) { + request = &ListContainerImagesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListContainerImages", "ehs", "openAPI") + return +} + +// CreateListContainerImagesResponse creates a response to parse from ListContainerImages response +func CreateListContainerImagesResponse() (response *ListContainerImagesResponse) { + response = &ListContainerImagesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_current_client_version.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_current_client_version.go new file mode 100644 index 0000000..91800a7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_current_client_version.go @@ -0,0 +1,103 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListCurrentClientVersion invokes the ehpc.ListCurrentClientVersion API synchronously +// api document: https://help.aliyun.com/api/ehpc/listcurrentclientversion.html +func (client *Client) ListCurrentClientVersion(request *ListCurrentClientVersionRequest) (response *ListCurrentClientVersionResponse, err error) { + response = CreateListCurrentClientVersionResponse() + err = client.DoAction(request, response) + return +} + +// ListCurrentClientVersionWithChan invokes the ehpc.ListCurrentClientVersion API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listcurrentclientversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListCurrentClientVersionWithChan(request *ListCurrentClientVersionRequest) (<-chan *ListCurrentClientVersionResponse, <-chan error) { + responseChan := make(chan *ListCurrentClientVersionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListCurrentClientVersion(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListCurrentClientVersionWithCallback invokes the ehpc.ListCurrentClientVersion API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listcurrentclientversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListCurrentClientVersionWithCallback(request *ListCurrentClientVersionRequest, callback func(response *ListCurrentClientVersionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListCurrentClientVersionResponse + var err error + defer close(result) + response, err = client.ListCurrentClientVersion(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListCurrentClientVersionRequest is the request struct for api ListCurrentClientVersion +type ListCurrentClientVersionRequest struct { + *requests.RpcRequest +} + +// ListCurrentClientVersionResponse is the response struct for api ListCurrentClientVersion +type ListCurrentClientVersionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ClientVersion string `json:"ClientVersion" xml:"ClientVersion"` +} + +// CreateListCurrentClientVersionRequest creates a request to invoke ListCurrentClientVersion API +func CreateListCurrentClientVersionRequest() (request *ListCurrentClientVersionRequest) { + request = &ListCurrentClientVersionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListCurrentClientVersion", "ehs", "openAPI") + return +} + +// CreateListCurrentClientVersionResponse creates a response to parse from ListCurrentClientVersion response +func CreateListCurrentClientVersionResponse() (response *ListCurrentClientVersionResponse) { + response = &ListCurrentClientVersionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_custom_images.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_custom_images.go new file mode 100644 index 0000000..7120f57 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_custom_images.go @@ -0,0 +1,105 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListCustomImages invokes the ehpc.ListCustomImages API synchronously +// api document: https://help.aliyun.com/api/ehpc/listcustomimages.html +func (client *Client) ListCustomImages(request *ListCustomImagesRequest) (response *ListCustomImagesResponse, err error) { + response = CreateListCustomImagesResponse() + err = client.DoAction(request, response) + return +} + +// ListCustomImagesWithChan invokes the ehpc.ListCustomImages API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listcustomimages.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListCustomImagesWithChan(request *ListCustomImagesRequest) (<-chan *ListCustomImagesResponse, <-chan error) { + responseChan := make(chan *ListCustomImagesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListCustomImages(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListCustomImagesWithCallback invokes the ehpc.ListCustomImages API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listcustomimages.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListCustomImagesWithCallback(request *ListCustomImagesRequest, callback func(response *ListCustomImagesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListCustomImagesResponse + var err error + defer close(result) + response, err = client.ListCustomImages(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListCustomImagesRequest is the request struct for api ListCustomImages +type ListCustomImagesRequest struct { + *requests.RpcRequest + BaseOsTag string `position:"Query" name:"BaseOsTag"` + ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"` +} + +// ListCustomImagesResponse is the response struct for api ListCustomImages +type ListCustomImagesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Images ImagesInListCustomImages `json:"Images" xml:"Images"` +} + +// CreateListCustomImagesRequest creates a request to invoke ListCustomImages API +func CreateListCustomImagesRequest() (request *ListCustomImagesRequest) { + request = &ListCustomImagesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListCustomImages", "ehs", "openAPI") + return +} + +// CreateListCustomImagesResponse creates a response to parse from ListCustomImages response +func CreateListCustomImagesResponse() (response *ListCustomImagesResponse) { + response = &ListCustomImagesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_images.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_images.go new file mode 100644 index 0000000..5974636 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_images.go @@ -0,0 +1,103 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListImages invokes the ehpc.ListImages API synchronously +// api document: https://help.aliyun.com/api/ehpc/listimages.html +func (client *Client) ListImages(request *ListImagesRequest) (response *ListImagesResponse, err error) { + response = CreateListImagesResponse() + err = client.DoAction(request, response) + return +} + +// ListImagesWithChan invokes the ehpc.ListImages API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listimages.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListImagesWithChan(request *ListImagesRequest) (<-chan *ListImagesResponse, <-chan error) { + responseChan := make(chan *ListImagesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListImages(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListImagesWithCallback invokes the ehpc.ListImages API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listimages.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListImagesWithCallback(request *ListImagesRequest, callback func(response *ListImagesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListImagesResponse + var err error + defer close(result) + response, err = client.ListImages(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListImagesRequest is the request struct for api ListImages +type ListImagesRequest struct { + *requests.RpcRequest +} + +// ListImagesResponse is the response struct for api ListImages +type ListImagesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + OsTags OsTags `json:"OsTags" xml:"OsTags"` +} + +// CreateListImagesRequest creates a request to invoke ListImages API +func CreateListImagesRequest() (request *ListImagesRequest) { + request = &ListImagesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListImages", "ehs", "openAPI") + return +} + +// CreateListImagesResponse creates a response to parse from ListImages response +func CreateListImagesResponse() (response *ListImagesResponse) { + response = &ListImagesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_invocation_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_invocation_results.go new file mode 100644 index 0000000..8bb5ab9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_invocation_results.go @@ -0,0 +1,117 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListInvocationResults invokes the ehpc.ListInvocationResults API synchronously +// api document: https://help.aliyun.com/api/ehpc/listinvocationresults.html +func (client *Client) ListInvocationResults(request *ListInvocationResultsRequest) (response *ListInvocationResultsResponse, err error) { + response = CreateListInvocationResultsResponse() + err = client.DoAction(request, response) + return +} + +// ListInvocationResultsWithChan invokes the ehpc.ListInvocationResults API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listinvocationresults.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListInvocationResultsWithChan(request *ListInvocationResultsRequest) (<-chan *ListInvocationResultsResponse, <-chan error) { + responseChan := make(chan *ListInvocationResultsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListInvocationResults(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListInvocationResultsWithCallback invokes the ehpc.ListInvocationResults API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listinvocationresults.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListInvocationResultsWithCallback(request *ListInvocationResultsRequest, callback func(response *ListInvocationResultsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListInvocationResultsResponse + var err error + defer close(result) + response, err = client.ListInvocationResults(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListInvocationResultsRequest is the request struct for api ListInvocationResults +type ListInvocationResultsRequest struct { + *requests.RpcRequest + Instance *[]ListInvocationResultsInstance `position:"Query" name:"Instance" type:"Repeated"` + InvokeRecordStatus string `position:"Query" name:"InvokeRecordStatus"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ClusterId string `position:"Query" name:"ClusterId"` + CommandId string `position:"Query" name:"CommandId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// ListInvocationResultsInstance is a repeated param struct in ListInvocationResultsRequest +type ListInvocationResultsInstance struct { + Id string `name:"Id"` +} + +// ListInvocationResultsResponse is the response struct for api ListInvocationResults +type ListInvocationResultsResponse 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"` + InvocationResults InvocationResults `json:"InvocationResults" xml:"InvocationResults"` +} + +// CreateListInvocationResultsRequest creates a request to invoke ListInvocationResults API +func CreateListInvocationResultsRequest() (request *ListInvocationResultsRequest) { + request = &ListInvocationResultsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListInvocationResults", "ehs", "openAPI") + return +} + +// CreateListInvocationResultsResponse creates a response to parse from ListInvocationResults response +func CreateListInvocationResultsResponse() (response *ListInvocationResultsResponse) { + response = &ListInvocationResultsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_invocation_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_invocation_status.go new file mode 100644 index 0000000..bc5d387 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_invocation_status.go @@ -0,0 +1,107 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListInvocationStatus invokes the ehpc.ListInvocationStatus API synchronously +// api document: https://help.aliyun.com/api/ehpc/listinvocationstatus.html +func (client *Client) ListInvocationStatus(request *ListInvocationStatusRequest) (response *ListInvocationStatusResponse, err error) { + response = CreateListInvocationStatusResponse() + err = client.DoAction(request, response) + return +} + +// ListInvocationStatusWithChan invokes the ehpc.ListInvocationStatus API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listinvocationstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListInvocationStatusWithChan(request *ListInvocationStatusRequest) (<-chan *ListInvocationStatusResponse, <-chan error) { + responseChan := make(chan *ListInvocationStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListInvocationStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListInvocationStatusWithCallback invokes the ehpc.ListInvocationStatus API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listinvocationstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListInvocationStatusWithCallback(request *ListInvocationStatusRequest, callback func(response *ListInvocationStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListInvocationStatusResponse + var err error + defer close(result) + response, err = client.ListInvocationStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListInvocationStatusRequest is the request struct for api ListInvocationStatus +type ListInvocationStatusRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + CommandId string `position:"Query" name:"CommandId"` +} + +// ListInvocationStatusResponse is the response struct for api ListInvocationStatus +type ListInvocationStatusResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CommandId string `json:"CommandId" xml:"CommandId"` + InvokeStatus string `json:"InvokeStatus" xml:"InvokeStatus"` + InvokeInstances InvokeInstances `json:"InvokeInstances" xml:"InvokeInstances"` +} + +// CreateListInvocationStatusRequest creates a request to invoke ListInvocationStatus API +func CreateListInvocationStatusRequest() (request *ListInvocationStatusRequest) { + request = &ListInvocationStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListInvocationStatus", "ehs", "openAPI") + return +} + +// CreateListInvocationStatusResponse creates a response to parse from ListInvocationStatus response +func CreateListInvocationStatusResponse() (response *ListInvocationStatusResponse) { + response = &ListInvocationStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_job_templates.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_job_templates.go new file mode 100644 index 0000000..7991d78 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_job_templates.go @@ -0,0 +1,109 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListJobTemplates invokes the ehpc.ListJobTemplates API synchronously +// api document: https://help.aliyun.com/api/ehpc/listjobtemplates.html +func (client *Client) ListJobTemplates(request *ListJobTemplatesRequest) (response *ListJobTemplatesResponse, err error) { + response = CreateListJobTemplatesResponse() + err = client.DoAction(request, response) + return +} + +// ListJobTemplatesWithChan invokes the ehpc.ListJobTemplates API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listjobtemplates.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListJobTemplatesWithChan(request *ListJobTemplatesRequest) (<-chan *ListJobTemplatesResponse, <-chan error) { + responseChan := make(chan *ListJobTemplatesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListJobTemplates(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListJobTemplatesWithCallback invokes the ehpc.ListJobTemplates API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listjobtemplates.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListJobTemplatesWithCallback(request *ListJobTemplatesRequest, callback func(response *ListJobTemplatesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListJobTemplatesResponse + var err error + defer close(result) + response, err = client.ListJobTemplates(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListJobTemplatesRequest is the request struct for api ListJobTemplates +type ListJobTemplatesRequest struct { + *requests.RpcRequest + Name string `position:"Query" name:"Name"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// ListJobTemplatesResponse is the response struct for api ListJobTemplates +type ListJobTemplatesResponse 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"` + Templates Templates `json:"Templates" xml:"Templates"` +} + +// CreateListJobTemplatesRequest creates a request to invoke ListJobTemplates API +func CreateListJobTemplatesRequest() (request *ListJobTemplatesRequest) { + request = &ListJobTemplatesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListJobTemplates", "ehs", "openAPI") + return +} + +// CreateListJobTemplatesResponse creates a response to parse from ListJobTemplates response +func CreateListJobTemplatesResponse() (response *ListJobTemplatesResponse) { + response = &ListJobTemplatesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_jobs.go new file mode 100644 index 0000000..5602228 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_jobs.go @@ -0,0 +1,112 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListJobs invokes the ehpc.ListJobs API synchronously +// api document: https://help.aliyun.com/api/ehpc/listjobs.html +func (client *Client) ListJobs(request *ListJobsRequest) (response *ListJobsResponse, err error) { + response = CreateListJobsResponse() + err = client.DoAction(request, response) + return +} + +// ListJobsWithChan invokes the ehpc.ListJobs API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listjobs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListJobsWithChan(request *ListJobsRequest) (<-chan *ListJobsResponse, <-chan error) { + responseChan := make(chan *ListJobsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListJobs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListJobsWithCallback invokes the ehpc.ListJobs API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listjobs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListJobsWithCallback(request *ListJobsRequest, callback func(response *ListJobsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListJobsResponse + var err error + defer close(result) + response, err = client.ListJobs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListJobsRequest is the request struct for api ListJobs +type ListJobsRequest struct { + *requests.RpcRequest + Owner string `position:"Query" name:"Owner"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ClusterId string `position:"Query" name:"ClusterId"` + State string `position:"Query" name:"State"` + Rerunable string `position:"Query" name:"Rerunable"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// ListJobsResponse is the response struct for api ListJobs +type ListJobsResponse 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"` + Jobs Jobs `json:"Jobs" xml:"Jobs"` +} + +// CreateListJobsRequest creates a request to invoke ListJobs API +func CreateListJobsRequest() (request *ListJobsRequest) { + request = &ListJobsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListJobs", "ehs", "openAPI") + return +} + +// CreateListJobsResponse creates a response to parse from ListJobs response +func CreateListJobsResponse() (response *ListJobsResponse) { + response = &ListJobsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_nodes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_nodes.go new file mode 100644 index 0000000..e172324 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_nodes.go @@ -0,0 +1,111 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListNodes invokes the ehpc.ListNodes API synchronously +// api document: https://help.aliyun.com/api/ehpc/listnodes.html +func (client *Client) ListNodes(request *ListNodesRequest) (response *ListNodesResponse, err error) { + response = CreateListNodesResponse() + err = client.DoAction(request, response) + return +} + +// ListNodesWithChan invokes the ehpc.ListNodes API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listnodes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListNodesWithChan(request *ListNodesRequest) (<-chan *ListNodesResponse, <-chan error) { + responseChan := make(chan *ListNodesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListNodes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListNodesWithCallback invokes the ehpc.ListNodes API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listnodes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListNodesWithCallback(request *ListNodesRequest, callback func(response *ListNodesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListNodesResponse + var err error + defer close(result) + response, err = client.ListNodes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListNodesRequest is the request struct for api ListNodes +type ListNodesRequest struct { + *requests.RpcRequest + HostName string `position:"Query" name:"HostName"` + Role string `position:"Query" name:"Role"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ClusterId string `position:"Query" name:"ClusterId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// ListNodesResponse is the response struct for api ListNodes +type ListNodesResponse 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"` + Nodes NodesInListNodes `json:"Nodes" xml:"Nodes"` +} + +// CreateListNodesRequest creates a request to invoke ListNodes API +func CreateListNodesRequest() (request *ListNodesRequest) { + request = &ListNodesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListNodes", "ehs", "openAPI") + return +} + +// CreateListNodesResponse creates a response to parse from ListNodes response +func CreateListNodesResponse() (response *ListNodesResponse) { + response = &ListNodesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_nodes_no_paging.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_nodes_no_paging.go new file mode 100644 index 0000000..eabaa28 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_nodes_no_paging.go @@ -0,0 +1,110 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListNodesNoPaging invokes the ehpc.ListNodesNoPaging API synchronously +// api document: https://help.aliyun.com/api/ehpc/listnodesnopaging.html +func (client *Client) ListNodesNoPaging(request *ListNodesNoPagingRequest) (response *ListNodesNoPagingResponse, err error) { + response = CreateListNodesNoPagingResponse() + err = client.DoAction(request, response) + return +} + +// ListNodesNoPagingWithChan invokes the ehpc.ListNodesNoPaging API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listnodesnopaging.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListNodesNoPagingWithChan(request *ListNodesNoPagingRequest) (<-chan *ListNodesNoPagingResponse, <-chan error) { + responseChan := make(chan *ListNodesNoPagingResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListNodesNoPaging(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListNodesNoPagingWithCallback invokes the ehpc.ListNodesNoPaging API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listnodesnopaging.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListNodesNoPagingWithCallback(request *ListNodesNoPagingRequest, callback func(response *ListNodesNoPagingResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListNodesNoPagingResponse + var err error + defer close(result) + response, err = client.ListNodesNoPaging(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListNodesNoPagingRequest is the request struct for api ListNodesNoPaging +type ListNodesNoPagingRequest struct { + *requests.RpcRequest + HostName string `position:"Query" name:"HostName"` + Role string `position:"Query" name:"Role"` + ClusterId string `position:"Query" name:"ClusterId"` + OnlyDetached requests.Boolean `position:"Query" name:"OnlyDetached"` +} + +// ListNodesNoPagingResponse is the response struct for api ListNodesNoPaging +type ListNodesNoPagingResponse 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"` + Nodes NodesInListNodesNoPaging `json:"Nodes" xml:"Nodes"` +} + +// CreateListNodesNoPagingRequest creates a request to invoke ListNodesNoPaging API +func CreateListNodesNoPagingRequest() (request *ListNodesNoPagingRequest) { + request = &ListNodesNoPagingRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListNodesNoPaging", "ehs", "openAPI") + return +} + +// CreateListNodesNoPagingResponse creates a response to parse from ListNodesNoPaging response +func CreateListNodesNoPagingResponse() (response *ListNodesNoPagingResponse) { + response = &ListNodesNoPagingResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_preferred_ecs_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_preferred_ecs_types.go new file mode 100644 index 0000000..aeebc5e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_preferred_ecs_types.go @@ -0,0 +1,107 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListPreferredEcsTypes invokes the ehpc.ListPreferredEcsTypes API synchronously +// api document: https://help.aliyun.com/api/ehpc/listpreferredecstypes.html +func (client *Client) ListPreferredEcsTypes(request *ListPreferredEcsTypesRequest) (response *ListPreferredEcsTypesResponse, err error) { + response = CreateListPreferredEcsTypesResponse() + err = client.DoAction(request, response) + return +} + +// ListPreferredEcsTypesWithChan invokes the ehpc.ListPreferredEcsTypes API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listpreferredecstypes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPreferredEcsTypesWithChan(request *ListPreferredEcsTypesRequest) (<-chan *ListPreferredEcsTypesResponse, <-chan error) { + responseChan := make(chan *ListPreferredEcsTypesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPreferredEcsTypes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPreferredEcsTypesWithCallback invokes the ehpc.ListPreferredEcsTypes API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listpreferredecstypes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPreferredEcsTypesWithCallback(request *ListPreferredEcsTypesRequest, callback func(response *ListPreferredEcsTypesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPreferredEcsTypesResponse + var err error + defer close(result) + response, err = client.ListPreferredEcsTypes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPreferredEcsTypesRequest is the request struct for api ListPreferredEcsTypes +type ListPreferredEcsTypesRequest struct { + *requests.RpcRequest + SpotStrategy string `position:"Query" name:"SpotStrategy"` + ZoneId string `position:"Query" name:"ZoneId"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` +} + +// ListPreferredEcsTypesResponse is the response struct for api ListPreferredEcsTypes +type ListPreferredEcsTypesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SupportSpotInstance bool `json:"SupportSpotInstance" xml:"SupportSpotInstance"` + Series Series `json:"Series" xml:"Series"` +} + +// CreateListPreferredEcsTypesRequest creates a request to invoke ListPreferredEcsTypes API +func CreateListPreferredEcsTypesRequest() (request *ListPreferredEcsTypesRequest) { + request = &ListPreferredEcsTypesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListPreferredEcsTypes", "ehs", "openAPI") + return +} + +// CreateListPreferredEcsTypesResponse creates a response to parse from ListPreferredEcsTypes response +func CreateListPreferredEcsTypesResponse() (response *ListPreferredEcsTypesResponse) { + response = &ListPreferredEcsTypesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_regions.go new file mode 100644 index 0000000..b806d2a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_regions.go @@ -0,0 +1,103 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListRegions invokes the ehpc.ListRegions API synchronously +// api document: https://help.aliyun.com/api/ehpc/listregions.html +func (client *Client) ListRegions(request *ListRegionsRequest) (response *ListRegionsResponse, err error) { + response = CreateListRegionsResponse() + err = client.DoAction(request, response) + return +} + +// ListRegionsWithChan invokes the ehpc.ListRegions API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListRegionsWithChan(request *ListRegionsRequest) (<-chan *ListRegionsResponse, <-chan error) { + responseChan := make(chan *ListRegionsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListRegions(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListRegionsWithCallback invokes the ehpc.ListRegions API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListRegionsWithCallback(request *ListRegionsRequest, callback func(response *ListRegionsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListRegionsResponse + var err error + defer close(result) + response, err = client.ListRegions(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListRegionsRequest is the request struct for api ListRegions +type ListRegionsRequest struct { + *requests.RpcRequest +} + +// ListRegionsResponse is the response struct for api ListRegions +type ListRegionsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Regions Regions `json:"Regions" xml:"Regions"` +} + +// CreateListRegionsRequest creates a request to invoke ListRegions API +func CreateListRegionsRequest() (request *ListRegionsRequest) { + request = &ListRegionsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListRegions", "ehs", "openAPI") + return +} + +// CreateListRegionsResponse creates a response to parse from ListRegions response +func CreateListRegionsResponse() (response *ListRegionsResponse) { + response = &ListRegionsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_softwares.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_softwares.go new file mode 100644 index 0000000..7144d43 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_softwares.go @@ -0,0 +1,104 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListSoftwares invokes the ehpc.ListSoftwares API synchronously +// api document: https://help.aliyun.com/api/ehpc/listsoftwares.html +func (client *Client) ListSoftwares(request *ListSoftwaresRequest) (response *ListSoftwaresResponse, err error) { + response = CreateListSoftwaresResponse() + err = client.DoAction(request, response) + return +} + +// ListSoftwaresWithChan invokes the ehpc.ListSoftwares API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listsoftwares.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListSoftwaresWithChan(request *ListSoftwaresRequest) (<-chan *ListSoftwaresResponse, <-chan error) { + responseChan := make(chan *ListSoftwaresResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListSoftwares(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListSoftwaresWithCallback invokes the ehpc.ListSoftwares API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listsoftwares.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListSoftwaresWithCallback(request *ListSoftwaresRequest, callback func(response *ListSoftwaresResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListSoftwaresResponse + var err error + defer close(result) + response, err = client.ListSoftwares(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListSoftwaresRequest is the request struct for api ListSoftwares +type ListSoftwaresRequest struct { + *requests.RpcRequest + EhpcVersion string `position:"Query" name:"EhpcVersion"` +} + +// ListSoftwaresResponse is the response struct for api ListSoftwares +type ListSoftwaresResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Softwares Softwares `json:"Softwares" xml:"Softwares"` +} + +// CreateListSoftwaresRequest creates a request to invoke ListSoftwares API +func CreateListSoftwaresRequest() (request *ListSoftwaresRequest) { + request = &ListSoftwaresRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListSoftwares", "ehs", "openAPI") + return +} + +// CreateListSoftwaresResponse creates a response to parse from ListSoftwares response +func CreateListSoftwaresResponse() (response *ListSoftwaresResponse) { + response = &ListSoftwaresResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_users.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_users.go new file mode 100644 index 0000000..888f524 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_users.go @@ -0,0 +1,109 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListUsers invokes the ehpc.ListUsers API synchronously +// api document: https://help.aliyun.com/api/ehpc/listusers.html +func (client *Client) ListUsers(request *ListUsersRequest) (response *ListUsersResponse, err error) { + response = CreateListUsersResponse() + err = client.DoAction(request, response) + return +} + +// ListUsersWithChan invokes the ehpc.ListUsers API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listusers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListUsersWithChan(request *ListUsersRequest) (<-chan *ListUsersResponse, <-chan error) { + responseChan := make(chan *ListUsersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListUsers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListUsersWithCallback invokes the ehpc.ListUsers API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listusers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListUsersWithCallback(request *ListUsersRequest, callback func(response *ListUsersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListUsersResponse + var err error + defer close(result) + response, err = client.ListUsers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListUsersRequest is the request struct for api ListUsers +type ListUsersRequest struct { + *requests.RpcRequest + PageSize requests.Integer `position:"Query" name:"PageSize"` + ClusterId string `position:"Query" name:"ClusterId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// ListUsersResponse is the response struct for api ListUsers +type ListUsersResponse 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"` + Users Users `json:"Users" xml:"Users"` +} + +// CreateListUsersRequest creates a request to invoke ListUsers API +func CreateListUsersRequest() (request *ListUsersRequest) { + request = &ListUsersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListUsers", "ehs", "openAPI") + return +} + +// CreateListUsersResponse creates a response to parse from ListUsers response +func CreateListUsersResponse() (response *ListUsersResponse) { + response = &ListUsersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_volumes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_volumes.go new file mode 100644 index 0000000..33c9aa5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/list_volumes.go @@ -0,0 +1,108 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListVolumes invokes the ehpc.ListVolumes API synchronously +// api document: https://help.aliyun.com/api/ehpc/listvolumes.html +func (client *Client) ListVolumes(request *ListVolumesRequest) (response *ListVolumesResponse, err error) { + response = CreateListVolumesResponse() + err = client.DoAction(request, response) + return +} + +// ListVolumesWithChan invokes the ehpc.ListVolumes API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listvolumes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListVolumesWithChan(request *ListVolumesRequest) (<-chan *ListVolumesResponse, <-chan error) { + responseChan := make(chan *ListVolumesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListVolumes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListVolumesWithCallback invokes the ehpc.ListVolumes API asynchronously +// api document: https://help.aliyun.com/api/ehpc/listvolumes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListVolumesWithCallback(request *ListVolumesRequest, callback func(response *ListVolumesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListVolumesResponse + var err error + defer close(result) + response, err = client.ListVolumes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListVolumesRequest is the request struct for api ListVolumes +type ListVolumesRequest struct { + *requests.RpcRequest + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// ListVolumesResponse is the response struct for api ListVolumes +type ListVolumesResponse 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"` + Volumes Volumes `json:"Volumes" xml:"Volumes"` +} + +// CreateListVolumesRequest creates a request to invoke ListVolumes API +func CreateListVolumesRequest() (request *ListVolumesRequest) { + request = &ListVolumesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListVolumes", "ehs", "openAPI") + return +} + +// CreateListVolumesResponse creates a response to parse from ListVolumes response +func CreateListVolumesResponse() (response *ListVolumesResponse) { + response = &ListVolumesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/modify_cluster_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/modify_cluster_attributes.go new file mode 100644 index 0000000..8016f80 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/modify_cluster_attributes.go @@ -0,0 +1,105 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyClusterAttributes invokes the ehpc.ModifyClusterAttributes API synchronously +// api document: https://help.aliyun.com/api/ehpc/modifyclusterattributes.html +func (client *Client) ModifyClusterAttributes(request *ModifyClusterAttributesRequest) (response *ModifyClusterAttributesResponse, err error) { + response = CreateModifyClusterAttributesResponse() + err = client.DoAction(request, response) + return +} + +// ModifyClusterAttributesWithChan invokes the ehpc.ModifyClusterAttributes API asynchronously +// api document: https://help.aliyun.com/api/ehpc/modifyclusterattributes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyClusterAttributesWithChan(request *ModifyClusterAttributesRequest) (<-chan *ModifyClusterAttributesResponse, <-chan error) { + responseChan := make(chan *ModifyClusterAttributesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyClusterAttributes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyClusterAttributesWithCallback invokes the ehpc.ModifyClusterAttributes API asynchronously +// api document: https://help.aliyun.com/api/ehpc/modifyclusterattributes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyClusterAttributesWithCallback(request *ModifyClusterAttributesRequest, callback func(response *ModifyClusterAttributesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyClusterAttributesResponse + var err error + defer close(result) + response, err = client.ModifyClusterAttributes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyClusterAttributesRequest is the request struct for api ModifyClusterAttributes +type ModifyClusterAttributesRequest struct { + *requests.RpcRequest + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` + ClusterId string `position:"Query" name:"ClusterId"` +} + +// ModifyClusterAttributesResponse is the response struct for api ModifyClusterAttributes +type ModifyClusterAttributesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyClusterAttributesRequest creates a request to invoke ModifyClusterAttributes API +func CreateModifyClusterAttributesRequest() (request *ModifyClusterAttributesRequest) { + request = &ModifyClusterAttributesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ModifyClusterAttributes", "ehs", "openAPI") + return +} + +// CreateModifyClusterAttributesResponse creates a response to parse from ModifyClusterAttributes response +func CreateModifyClusterAttributesResponse() (response *ModifyClusterAttributesResponse) { + response = &ModifyClusterAttributesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/modify_container_app_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/modify_container_app_attributes.go new file mode 100644 index 0000000..49e5262 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/modify_container_app_attributes.go @@ -0,0 +1,104 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyContainerAppAttributes invokes the ehpc.ModifyContainerAppAttributes API synchronously +// api document: https://help.aliyun.com/api/ehpc/modifycontainerappattributes.html +func (client *Client) ModifyContainerAppAttributes(request *ModifyContainerAppAttributesRequest) (response *ModifyContainerAppAttributesResponse, err error) { + response = CreateModifyContainerAppAttributesResponse() + err = client.DoAction(request, response) + return +} + +// ModifyContainerAppAttributesWithChan invokes the ehpc.ModifyContainerAppAttributes API asynchronously +// api document: https://help.aliyun.com/api/ehpc/modifycontainerappattributes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyContainerAppAttributesWithChan(request *ModifyContainerAppAttributesRequest) (<-chan *ModifyContainerAppAttributesResponse, <-chan error) { + responseChan := make(chan *ModifyContainerAppAttributesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyContainerAppAttributes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyContainerAppAttributesWithCallback invokes the ehpc.ModifyContainerAppAttributes API asynchronously +// api document: https://help.aliyun.com/api/ehpc/modifycontainerappattributes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyContainerAppAttributesWithCallback(request *ModifyContainerAppAttributesRequest, callback func(response *ModifyContainerAppAttributesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyContainerAppAttributesResponse + var err error + defer close(result) + response, err = client.ModifyContainerAppAttributes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyContainerAppAttributesRequest is the request struct for api ModifyContainerAppAttributes +type ModifyContainerAppAttributesRequest struct { + *requests.RpcRequest + Description string `position:"Query" name:"Description"` + ContainerId string `position:"Query" name:"ContainerId"` +} + +// ModifyContainerAppAttributesResponse is the response struct for api ModifyContainerAppAttributes +type ModifyContainerAppAttributesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyContainerAppAttributesRequest creates a request to invoke ModifyContainerAppAttributes API +func CreateModifyContainerAppAttributesRequest() (request *ModifyContainerAppAttributesRequest) { + request = &ModifyContainerAppAttributesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ModifyContainerAppAttributes", "ehs", "openAPI") + return +} + +// CreateModifyContainerAppAttributesResponse creates a response to parse from ModifyContainerAppAttributes response +func CreateModifyContainerAppAttributesResponse() (response *ModifyContainerAppAttributesResponse) { + response = &ModifyContainerAppAttributesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/modify_user_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/modify_user_groups.go new file mode 100644 index 0000000..2960af1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/modify_user_groups.go @@ -0,0 +1,110 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyUserGroups invokes the ehpc.ModifyUserGroups API synchronously +// api document: https://help.aliyun.com/api/ehpc/modifyusergroups.html +func (client *Client) ModifyUserGroups(request *ModifyUserGroupsRequest) (response *ModifyUserGroupsResponse, err error) { + response = CreateModifyUserGroupsResponse() + err = client.DoAction(request, response) + return +} + +// ModifyUserGroupsWithChan invokes the ehpc.ModifyUserGroups API asynchronously +// api document: https://help.aliyun.com/api/ehpc/modifyusergroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyUserGroupsWithChan(request *ModifyUserGroupsRequest) (<-chan *ModifyUserGroupsResponse, <-chan error) { + responseChan := make(chan *ModifyUserGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyUserGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyUserGroupsWithCallback invokes the ehpc.ModifyUserGroups API asynchronously +// api document: https://help.aliyun.com/api/ehpc/modifyusergroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyUserGroupsWithCallback(request *ModifyUserGroupsRequest, callback func(response *ModifyUserGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyUserGroupsResponse + var err error + defer close(result) + response, err = client.ModifyUserGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyUserGroupsRequest is the request struct for api ModifyUserGroups +type ModifyUserGroupsRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + User *[]ModifyUserGroupsUser `position:"Query" name:"User" type:"Repeated"` +} + +// ModifyUserGroupsUser is a repeated param struct in ModifyUserGroupsRequest +type ModifyUserGroupsUser struct { + Name string `name:"Name"` + Group string `name:"Group"` +} + +// ModifyUserGroupsResponse is the response struct for api ModifyUserGroups +type ModifyUserGroupsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyUserGroupsRequest creates a request to invoke ModifyUserGroups API +func CreateModifyUserGroupsRequest() (request *ModifyUserGroupsRequest) { + request = &ModifyUserGroupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ModifyUserGroups", "ehs", "openAPI") + return +} + +// CreateModifyUserGroupsResponse creates a response to parse from ModifyUserGroups response +func CreateModifyUserGroupsResponse() (response *ModifyUserGroupsResponse) { + response = &ModifyUserGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/modify_user_passwords.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/modify_user_passwords.go new file mode 100644 index 0000000..026d66d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/modify_user_passwords.go @@ -0,0 +1,110 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyUserPasswords invokes the ehpc.ModifyUserPasswords API synchronously +// api document: https://help.aliyun.com/api/ehpc/modifyuserpasswords.html +func (client *Client) ModifyUserPasswords(request *ModifyUserPasswordsRequest) (response *ModifyUserPasswordsResponse, err error) { + response = CreateModifyUserPasswordsResponse() + err = client.DoAction(request, response) + return +} + +// ModifyUserPasswordsWithChan invokes the ehpc.ModifyUserPasswords API asynchronously +// api document: https://help.aliyun.com/api/ehpc/modifyuserpasswords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyUserPasswordsWithChan(request *ModifyUserPasswordsRequest) (<-chan *ModifyUserPasswordsResponse, <-chan error) { + responseChan := make(chan *ModifyUserPasswordsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyUserPasswords(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyUserPasswordsWithCallback invokes the ehpc.ModifyUserPasswords API asynchronously +// api document: https://help.aliyun.com/api/ehpc/modifyuserpasswords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyUserPasswordsWithCallback(request *ModifyUserPasswordsRequest, callback func(response *ModifyUserPasswordsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyUserPasswordsResponse + var err error + defer close(result) + response, err = client.ModifyUserPasswords(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyUserPasswordsRequest is the request struct for api ModifyUserPasswords +type ModifyUserPasswordsRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + User *[]ModifyUserPasswordsUser `position:"Query" name:"User" type:"Repeated"` +} + +// ModifyUserPasswordsUser is a repeated param struct in ModifyUserPasswordsRequest +type ModifyUserPasswordsUser struct { + Name string `name:"Name"` + Password string `name:"Password"` +} + +// ModifyUserPasswordsResponse is the response struct for api ModifyUserPasswords +type ModifyUserPasswordsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyUserPasswordsRequest creates a request to invoke ModifyUserPasswords API +func CreateModifyUserPasswordsRequest() (request *ModifyUserPasswordsRequest) { + request = &ModifyUserPasswordsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ModifyUserPasswords", "ehs", "openAPI") + return +} + +// CreateModifyUserPasswordsResponse creates a response to parse from ModifyUserPasswords response +func CreateModifyUserPasswordsResponse() (response *ModifyUserPasswordsResponse) { + response = &ModifyUserPasswordsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/pull_image.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/pull_image.go new file mode 100644 index 0000000..4a2db0c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/pull_image.go @@ -0,0 +1,106 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PullImage invokes the ehpc.PullImage API synchronously +// api document: https://help.aliyun.com/api/ehpc/pullimage.html +func (client *Client) PullImage(request *PullImageRequest) (response *PullImageResponse, err error) { + response = CreatePullImageResponse() + err = client.DoAction(request, response) + return +} + +// PullImageWithChan invokes the ehpc.PullImage API asynchronously +// api document: https://help.aliyun.com/api/ehpc/pullimage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PullImageWithChan(request *PullImageRequest) (<-chan *PullImageResponse, <-chan error) { + responseChan := make(chan *PullImageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PullImage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PullImageWithCallback invokes the ehpc.PullImage API asynchronously +// api document: https://help.aliyun.com/api/ehpc/pullimage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PullImageWithCallback(request *PullImageRequest, callback func(response *PullImageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PullImageResponse + var err error + defer close(result) + response, err = client.PullImage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PullImageRequest is the request struct for api PullImage +type PullImageRequest struct { + *requests.RpcRequest + ContainerType string `position:"Query" name:"ContainerType"` + ClusterId string `position:"Query" name:"ClusterId"` + Repository string `position:"Query" name:"Repository"` + ImageTag string `position:"Query" name:"ImageTag"` +} + +// PullImageResponse is the response struct for api PullImage +type PullImageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreatePullImageRequest creates a request to invoke PullImage API +func CreatePullImageRequest() (request *PullImageRequest) { + request = &PullImageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "PullImage", "ehs", "openAPI") + return +} + +// CreatePullImageResponse creates a response to parse from PullImage response +func CreatePullImageResponse() (response *PullImageResponse) { + response = &PullImageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/recover_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/recover_cluster.go new file mode 100644 index 0000000..02e8456 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/recover_cluster.go @@ -0,0 +1,103 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RecoverCluster invokes the ehpc.RecoverCluster API synchronously +// api document: https://help.aliyun.com/api/ehpc/recovercluster.html +func (client *Client) RecoverCluster(request *RecoverClusterRequest) (response *RecoverClusterResponse, err error) { + response = CreateRecoverClusterResponse() + err = client.DoAction(request, response) + return +} + +// RecoverClusterWithChan invokes the ehpc.RecoverCluster API asynchronously +// api document: https://help.aliyun.com/api/ehpc/recovercluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RecoverClusterWithChan(request *RecoverClusterRequest) (<-chan *RecoverClusterResponse, <-chan error) { + responseChan := make(chan *RecoverClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RecoverCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RecoverClusterWithCallback invokes the ehpc.RecoverCluster API asynchronously +// api document: https://help.aliyun.com/api/ehpc/recovercluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RecoverClusterWithCallback(request *RecoverClusterRequest, callback func(response *RecoverClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RecoverClusterResponse + var err error + defer close(result) + response, err = client.RecoverCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RecoverClusterRequest is the request struct for api RecoverCluster +type RecoverClusterRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` +} + +// RecoverClusterResponse is the response struct for api RecoverCluster +type RecoverClusterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRecoverClusterRequest creates a request to invoke RecoverCluster API +func CreateRecoverClusterRequest() (request *RecoverClusterRequest) { + request = &RecoverClusterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "RecoverCluster", "ehs", "openAPI") + return +} + +// CreateRecoverClusterResponse creates a response to parse from RecoverCluster response +func CreateRecoverClusterResponse() (response *RecoverClusterResponse) { + response = &RecoverClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/rerun_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/rerun_jobs.go new file mode 100644 index 0000000..4c07a72 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/rerun_jobs.go @@ -0,0 +1,104 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RerunJobs invokes the ehpc.RerunJobs API synchronously +// api document: https://help.aliyun.com/api/ehpc/rerunjobs.html +func (client *Client) RerunJobs(request *RerunJobsRequest) (response *RerunJobsResponse, err error) { + response = CreateRerunJobsResponse() + err = client.DoAction(request, response) + return +} + +// RerunJobsWithChan invokes the ehpc.RerunJobs API asynchronously +// api document: https://help.aliyun.com/api/ehpc/rerunjobs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RerunJobsWithChan(request *RerunJobsRequest) (<-chan *RerunJobsResponse, <-chan error) { + responseChan := make(chan *RerunJobsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RerunJobs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RerunJobsWithCallback invokes the ehpc.RerunJobs API asynchronously +// api document: https://help.aliyun.com/api/ehpc/rerunjobs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RerunJobsWithCallback(request *RerunJobsRequest, callback func(response *RerunJobsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RerunJobsResponse + var err error + defer close(result) + response, err = client.RerunJobs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RerunJobsRequest is the request struct for api RerunJobs +type RerunJobsRequest struct { + *requests.RpcRequest + Jobs string `position:"Query" name:"Jobs"` + ClusterId string `position:"Query" name:"ClusterId"` +} + +// RerunJobsResponse is the response struct for api RerunJobs +type RerunJobsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRerunJobsRequest creates a request to invoke RerunJobs API +func CreateRerunJobsRequest() (request *RerunJobsRequest) { + request = &RerunJobsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "RerunJobs", "ehs", "openAPI") + return +} + +// CreateRerunJobsResponse creates a response to parse from RerunJobs response +func CreateRerunJobsResponse() (response *RerunJobsResponse) { + response = &RerunJobsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/reset_nodes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/reset_nodes.go new file mode 100644 index 0000000..d021d93 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/reset_nodes.go @@ -0,0 +1,109 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ResetNodes invokes the ehpc.ResetNodes API synchronously +// api document: https://help.aliyun.com/api/ehpc/resetnodes.html +func (client *Client) ResetNodes(request *ResetNodesRequest) (response *ResetNodesResponse, err error) { + response = CreateResetNodesResponse() + err = client.DoAction(request, response) + return +} + +// ResetNodesWithChan invokes the ehpc.ResetNodes API asynchronously +// api document: https://help.aliyun.com/api/ehpc/resetnodes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResetNodesWithChan(request *ResetNodesRequest) (<-chan *ResetNodesResponse, <-chan error) { + responseChan := make(chan *ResetNodesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ResetNodes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ResetNodesWithCallback invokes the ehpc.ResetNodes API asynchronously +// api document: https://help.aliyun.com/api/ehpc/resetnodes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResetNodesWithCallback(request *ResetNodesRequest, callback func(response *ResetNodesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ResetNodesResponse + var err error + defer close(result) + response, err = client.ResetNodes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ResetNodesRequest is the request struct for api ResetNodes +type ResetNodesRequest struct { + *requests.RpcRequest + Instance *[]ResetNodesInstance `position:"Query" name:"Instance" type:"Repeated"` + ClusterId string `position:"Query" name:"ClusterId"` +} + +// ResetNodesInstance is a repeated param struct in ResetNodesRequest +type ResetNodesInstance struct { + Id string `name:"Id"` +} + +// ResetNodesResponse is the response struct for api ResetNodes +type ResetNodesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateResetNodesRequest creates a request to invoke ResetNodes API +func CreateResetNodesRequest() (request *ResetNodesRequest) { + request = &ResetNodesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ResetNodes", "ehs", "openAPI") + return +} + +// CreateResetNodesResponse creates a response to parse from ResetNodes response +func CreateResetNodesResponse() (response *ResetNodesResponse) { + response = &ResetNodesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/set_auto_scale_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/set_auto_scale_config.go new file mode 100644 index 0000000..71002fe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/set_auto_scale_config.go @@ -0,0 +1,113 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetAutoScaleConfig invokes the ehpc.SetAutoScaleConfig API synchronously +// api document: https://help.aliyun.com/api/ehpc/setautoscaleconfig.html +func (client *Client) SetAutoScaleConfig(request *SetAutoScaleConfigRequest) (response *SetAutoScaleConfigResponse, err error) { + response = CreateSetAutoScaleConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetAutoScaleConfigWithChan invokes the ehpc.SetAutoScaleConfig API asynchronously +// api document: https://help.aliyun.com/api/ehpc/setautoscaleconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetAutoScaleConfigWithChan(request *SetAutoScaleConfigRequest) (<-chan *SetAutoScaleConfigResponse, <-chan error) { + responseChan := make(chan *SetAutoScaleConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetAutoScaleConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetAutoScaleConfigWithCallback invokes the ehpc.SetAutoScaleConfig API asynchronously +// api document: https://help.aliyun.com/api/ehpc/setautoscaleconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetAutoScaleConfigWithCallback(request *SetAutoScaleConfigRequest, callback func(response *SetAutoScaleConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetAutoScaleConfigResponse + var err error + defer close(result) + response, err = client.SetAutoScaleConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetAutoScaleConfigRequest is the request struct for api SetAutoScaleConfig +type SetAutoScaleConfigRequest struct { + *requests.RpcRequest + ShrinkIdleTimes requests.Integer `position:"Query" name:"ShrinkIdleTimes"` + GrowTimeoutInMinutes requests.Integer `position:"Query" name:"GrowTimeoutInMinutes"` + ClusterId string `position:"Query" name:"ClusterId"` + EnableAutoGrow requests.Boolean `position:"Query" name:"EnableAutoGrow"` + EnableAutoShrink requests.Boolean `position:"Query" name:"EnableAutoShrink"` + MaxNodesInCluster requests.Integer `position:"Query" name:"MaxNodesInCluster"` + ExcludeNodes string `position:"Query" name:"ExcludeNodes"` + ShrinkIntervalInMinutes requests.Integer `position:"Query" name:"ShrinkIntervalInMinutes"` + ExtraNodesGrowRatio requests.Integer `position:"Query" name:"ExtraNodesGrowRatio"` + GrowIntervalInMinutes requests.Integer `position:"Query" name:"GrowIntervalInMinutes"` + GrowRatio requests.Integer `position:"Query" name:"GrowRatio"` +} + +// SetAutoScaleConfigResponse is the response struct for api SetAutoScaleConfig +type SetAutoScaleConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetAutoScaleConfigRequest creates a request to invoke SetAutoScaleConfig API +func CreateSetAutoScaleConfigRequest() (request *SetAutoScaleConfigRequest) { + request = &SetAutoScaleConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "SetAutoScaleConfig", "ehs", "openAPI") + return +} + +// CreateSetAutoScaleConfigResponse creates a response to parse from SetAutoScaleConfig response +func CreateSetAutoScaleConfigResponse() (response *SetAutoScaleConfigResponse) { + response = &SetAutoScaleConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/set_job_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/set_job_user.go new file mode 100644 index 0000000..212f955 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/set_job_user.go @@ -0,0 +1,105 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetJobUser invokes the ehpc.SetJobUser API synchronously +// api document: https://help.aliyun.com/api/ehpc/setjobuser.html +func (client *Client) SetJobUser(request *SetJobUserRequest) (response *SetJobUserResponse, err error) { + response = CreateSetJobUserResponse() + err = client.DoAction(request, response) + return +} + +// SetJobUserWithChan invokes the ehpc.SetJobUser API asynchronously +// api document: https://help.aliyun.com/api/ehpc/setjobuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetJobUserWithChan(request *SetJobUserRequest) (<-chan *SetJobUserResponse, <-chan error) { + responseChan := make(chan *SetJobUserResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetJobUser(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetJobUserWithCallback invokes the ehpc.SetJobUser API asynchronously +// api document: https://help.aliyun.com/api/ehpc/setjobuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetJobUserWithCallback(request *SetJobUserRequest, callback func(response *SetJobUserResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetJobUserResponse + var err error + defer close(result) + response, err = client.SetJobUser(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetJobUserRequest is the request struct for api SetJobUser +type SetJobUserRequest struct { + *requests.RpcRequest + RunasUserPassword string `position:"Query" name:"RunasUserPassword"` + RunasUser string `position:"Query" name:"RunasUser"` + ClusterId string `position:"Query" name:"ClusterId"` +} + +// SetJobUserResponse is the response struct for api SetJobUser +type SetJobUserResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetJobUserRequest creates a request to invoke SetJobUser API +func CreateSetJobUserRequest() (request *SetJobUserRequest) { + request = &SetJobUserRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "SetJobUser", "ehs", "openAPI") + return +} + +// CreateSetJobUserResponse creates a response to parse from SetJobUser response +func CreateSetJobUserResponse() (response *SetJobUserResponse) { + response = &SetJobUserResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/start_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/start_cluster.go new file mode 100644 index 0000000..6181e70 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/start_cluster.go @@ -0,0 +1,103 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StartCluster invokes the ehpc.StartCluster API synchronously +// api document: https://help.aliyun.com/api/ehpc/startcluster.html +func (client *Client) StartCluster(request *StartClusterRequest) (response *StartClusterResponse, err error) { + response = CreateStartClusterResponse() + err = client.DoAction(request, response) + return +} + +// StartClusterWithChan invokes the ehpc.StartCluster API asynchronously +// api document: https://help.aliyun.com/api/ehpc/startcluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartClusterWithChan(request *StartClusterRequest) (<-chan *StartClusterResponse, <-chan error) { + responseChan := make(chan *StartClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartClusterWithCallback invokes the ehpc.StartCluster API asynchronously +// api document: https://help.aliyun.com/api/ehpc/startcluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartClusterWithCallback(request *StartClusterRequest, callback func(response *StartClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartClusterResponse + var err error + defer close(result) + response, err = client.StartCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartClusterRequest is the request struct for api StartCluster +type StartClusterRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` +} + +// StartClusterResponse is the response struct for api StartCluster +type StartClusterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStartClusterRequest creates a request to invoke StartCluster API +func CreateStartClusterRequest() (request *StartClusterRequest) { + request = &StartClusterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "StartCluster", "ehs", "openAPI") + return +} + +// CreateStartClusterResponse creates a response to parse from StartCluster response +func CreateStartClusterResponse() (response *StartClusterResponse) { + response = &StartClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/start_nodes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/start_nodes.go new file mode 100644 index 0000000..6b95049 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/start_nodes.go @@ -0,0 +1,110 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StartNodes invokes the ehpc.StartNodes API synchronously +// api document: https://help.aliyun.com/api/ehpc/startnodes.html +func (client *Client) StartNodes(request *StartNodesRequest) (response *StartNodesResponse, err error) { + response = CreateStartNodesResponse() + err = client.DoAction(request, response) + return +} + +// StartNodesWithChan invokes the ehpc.StartNodes API asynchronously +// api document: https://help.aliyun.com/api/ehpc/startnodes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartNodesWithChan(request *StartNodesRequest) (<-chan *StartNodesResponse, <-chan error) { + responseChan := make(chan *StartNodesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartNodes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartNodesWithCallback invokes the ehpc.StartNodes API asynchronously +// api document: https://help.aliyun.com/api/ehpc/startnodes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartNodesWithCallback(request *StartNodesRequest, callback func(response *StartNodesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartNodesResponse + var err error + defer close(result) + response, err = client.StartNodes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartNodesRequest is the request struct for api StartNodes +type StartNodesRequest struct { + *requests.RpcRequest + Role string `position:"Query" name:"Role"` + Instance *[]StartNodesInstance `position:"Query" name:"Instance" type:"Repeated"` + ClusterId string `position:"Query" name:"ClusterId"` +} + +// StartNodesInstance is a repeated param struct in StartNodesRequest +type StartNodesInstance struct { + Id string `name:"Id"` +} + +// StartNodesResponse is the response struct for api StartNodes +type StartNodesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStartNodesRequest creates a request to invoke StartNodes API +func CreateStartNodesRequest() (request *StartNodesRequest) { + request = &StartNodesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "StartNodes", "ehs", "openAPI") + return +} + +// CreateStartNodesResponse creates a response to parse from StartNodes response +func CreateStartNodesResponse() (response *StartNodesResponse) { + response = &StartNodesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/stop_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/stop_cluster.go new file mode 100644 index 0000000..e4d880a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/stop_cluster.go @@ -0,0 +1,103 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StopCluster invokes the ehpc.StopCluster API synchronously +// api document: https://help.aliyun.com/api/ehpc/stopcluster.html +func (client *Client) StopCluster(request *StopClusterRequest) (response *StopClusterResponse, err error) { + response = CreateStopClusterResponse() + err = client.DoAction(request, response) + return +} + +// StopClusterWithChan invokes the ehpc.StopCluster API asynchronously +// api document: https://help.aliyun.com/api/ehpc/stopcluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopClusterWithChan(request *StopClusterRequest) (<-chan *StopClusterResponse, <-chan error) { + responseChan := make(chan *StopClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopClusterWithCallback invokes the ehpc.StopCluster API asynchronously +// api document: https://help.aliyun.com/api/ehpc/stopcluster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopClusterWithCallback(request *StopClusterRequest, callback func(response *StopClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopClusterResponse + var err error + defer close(result) + response, err = client.StopCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopClusterRequest is the request struct for api StopCluster +type StopClusterRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` +} + +// StopClusterResponse is the response struct for api StopCluster +type StopClusterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStopClusterRequest creates a request to invoke StopCluster API +func CreateStopClusterRequest() (request *StopClusterRequest) { + request = &StopClusterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "StopCluster", "ehs", "openAPI") + return +} + +// CreateStopClusterResponse creates a response to parse from StopCluster response +func CreateStopClusterResponse() (response *StopClusterResponse) { + response = &StopClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/stop_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/stop_jobs.go new file mode 100644 index 0000000..d0cb916 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/stop_jobs.go @@ -0,0 +1,104 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StopJobs invokes the ehpc.StopJobs API synchronously +// api document: https://help.aliyun.com/api/ehpc/stopjobs.html +func (client *Client) StopJobs(request *StopJobsRequest) (response *StopJobsResponse, err error) { + response = CreateStopJobsResponse() + err = client.DoAction(request, response) + return +} + +// StopJobsWithChan invokes the ehpc.StopJobs API asynchronously +// api document: https://help.aliyun.com/api/ehpc/stopjobs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopJobsWithChan(request *StopJobsRequest) (<-chan *StopJobsResponse, <-chan error) { + responseChan := make(chan *StopJobsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopJobs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopJobsWithCallback invokes the ehpc.StopJobs API asynchronously +// api document: https://help.aliyun.com/api/ehpc/stopjobs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopJobsWithCallback(request *StopJobsRequest, callback func(response *StopJobsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopJobsResponse + var err error + defer close(result) + response, err = client.StopJobs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopJobsRequest is the request struct for api StopJobs +type StopJobsRequest struct { + *requests.RpcRequest + Jobs string `position:"Query" name:"Jobs"` + ClusterId string `position:"Query" name:"ClusterId"` +} + +// StopJobsResponse is the response struct for api StopJobs +type StopJobsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStopJobsRequest creates a request to invoke StopJobs API +func CreateStopJobsRequest() (request *StopJobsRequest) { + request = &StopJobsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "StopJobs", "ehs", "openAPI") + return +} + +// CreateStopJobsResponse creates a response to parse from StopJobs response +func CreateStopJobsResponse() (response *StopJobsResponse) { + response = &StopJobsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/stop_nodes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/stop_nodes.go new file mode 100644 index 0000000..d652180 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/stop_nodes.go @@ -0,0 +1,110 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StopNodes invokes the ehpc.StopNodes API synchronously +// api document: https://help.aliyun.com/api/ehpc/stopnodes.html +func (client *Client) StopNodes(request *StopNodesRequest) (response *StopNodesResponse, err error) { + response = CreateStopNodesResponse() + err = client.DoAction(request, response) + return +} + +// StopNodesWithChan invokes the ehpc.StopNodes API asynchronously +// api document: https://help.aliyun.com/api/ehpc/stopnodes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopNodesWithChan(request *StopNodesRequest) (<-chan *StopNodesResponse, <-chan error) { + responseChan := make(chan *StopNodesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopNodes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopNodesWithCallback invokes the ehpc.StopNodes API asynchronously +// api document: https://help.aliyun.com/api/ehpc/stopnodes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopNodesWithCallback(request *StopNodesRequest, callback func(response *StopNodesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopNodesResponse + var err error + defer close(result) + response, err = client.StopNodes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopNodesRequest is the request struct for api StopNodes +type StopNodesRequest struct { + *requests.RpcRequest + Role string `position:"Query" name:"Role"` + Instance *[]StopNodesInstance `position:"Query" name:"Instance" type:"Repeated"` + ClusterId string `position:"Query" name:"ClusterId"` +} + +// StopNodesInstance is a repeated param struct in StopNodesRequest +type StopNodesInstance struct { + Id string `name:"Id"` +} + +// StopNodesResponse is the response struct for api StopNodes +type StopNodesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStopNodesRequest creates a request to invoke StopNodes API +func CreateStopNodesRequest() (request *StopNodesRequest) { + request = &StopNodesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "StopNodes", "ehs", "openAPI") + return +} + +// CreateStopNodesResponse creates a response to parse from StopNodes response +func CreateStopNodesResponse() (response *StopNodesResponse) { + response = &StopNodesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_application_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_application_info.go new file mode 100644 index 0000000..f39b6d0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_application_info.go @@ -0,0 +1,24 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ApplicationInfo is a nested struct in ehpc response +type ApplicationInfo struct { + Name string `json:"Name" xml:"Name"` + Tag string `json:"Tag" xml:"Tag"` + Version string `json:"Version" xml:"Version"` + Required bool `json:"Required" xml:"Required"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_applications_in_describe_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_applications_in_describe_cluster.go new file mode 100644 index 0000000..63ef94b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_applications_in_describe_cluster.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ApplicationsInDescribeCluster is a nested struct in ehpc response +type ApplicationsInDescribeCluster struct { + ApplicationInfo []ApplicationInfo `json:"ApplicationInfo" xml:"ApplicationInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_applications_in_list_softwares.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_applications_in_list_softwares.go new file mode 100644 index 0000000..8de429c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_applications_in_list_softwares.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ApplicationsInListSoftwares is a nested struct in ehpc response +type ApplicationsInListSoftwares struct { + ApplicationInfo []ApplicationInfo `json:"ApplicationInfo" xml:"ApplicationInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_base_os_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_base_os_tag.go new file mode 100644 index 0000000..a0404a3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_base_os_tag.go @@ -0,0 +1,24 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BaseOsTag is a nested struct in ehpc response +type BaseOsTag struct { + OsTag string `json:"OsTag" xml:"OsTag"` + Platform string `json:"Platform" xml:"Platform"` + Version string `json:"Version" xml:"Version"` + Architecture string `json:"Architecture" xml:"Architecture"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_cluster_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_cluster_info.go new file mode 100644 index 0000000..0395b6c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_cluster_info.go @@ -0,0 +1,48 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ClusterInfo is a nested struct in ehpc response +type ClusterInfo struct { + Id string `json:"Id" xml:"Id"` + RegionId string `json:"RegionId" xml:"RegionId"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + Status string `json:"Status" xml:"Status"` + OsTag string `json:"OsTag" xml:"OsTag"` + AccountType string `json:"AccountType" xml:"AccountType"` + SchedulerType string `json:"SchedulerType" xml:"SchedulerType"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` + VpcId string `json:"VpcId" xml:"VpcId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + VolumeType string `json:"VolumeType" xml:"VolumeType"` + VolumeId string `json:"VolumeId" xml:"VolumeId"` + VolumeProtocol string `json:"VolumeProtocol" xml:"VolumeProtocol"` + VolumeMountpoint string `json:"VolumeMountpoint" xml:"VolumeMountpoint"` + RemoteDirectory string `json:"RemoteDirectory" xml:"RemoteDirectory"` + DeployMode string `json:"DeployMode" xml:"DeployMode"` + HaEnable bool `json:"HaEnable" xml:"HaEnable"` + EcsChargeType string `json:"EcsChargeType" xml:"EcsChargeType"` + KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` + SccClusterId string `json:"SccClusterId" xml:"SccClusterId"` + ClientVersion string `json:"ClientVersion" xml:"ClientVersion"` + ImageOwnerAlias string `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"` + ImageId string `json:"ImageId" xml:"ImageId"` + Location string `json:"Location" xml:"Location"` + EcsInfo EcsInfo `json:"EcsInfo" xml:"EcsInfo"` + Applications ApplicationsInDescribeCluster `json:"Applications" xml:"Applications"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_cluster_info_simple.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_cluster_info_simple.go new file mode 100644 index 0000000..48a1e3f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_cluster_info_simple.go @@ -0,0 +1,41 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ClusterInfoSimple is a nested struct in ehpc response +type ClusterInfoSimple struct { + Id string `json:"Id" xml:"Id"` + RegionId string `json:"RegionId" xml:"RegionId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + Status string `json:"Status" xml:"Status"` + OsTag string `json:"OsTag" xml:"OsTag"` + AccountType string `json:"AccountType" xml:"AccountType"` + SchedulerType string `json:"SchedulerType" xml:"SchedulerType"` + DeployMode string `json:"DeployMode" xml:"DeployMode"` + Count int `json:"Count" xml:"Count"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + LoginNodes string `json:"LoginNodes" xml:"LoginNodes"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + ImageOwnerAlias string `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"` + ImageId string `json:"ImageId" xml:"ImageId"` + Location string `json:"Location" xml:"Location"` + Managers Managers `json:"Managers" xml:"Managers"` + Computes Computes `json:"Computes" xml:"Computes"` + TotalResources TotalResources `json:"TotalResources" xml:"TotalResources"` + UsedResources UsedResources `json:"UsedResources" xml:"UsedResources"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_clusters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_clusters.go new file mode 100644 index 0000000..f39df6a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_clusters.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Clusters is a nested struct in ehpc response +type Clusters struct { + ClusterInfoSimple []ClusterInfoSimple `json:"ClusterInfoSimple" xml:"ClusterInfoSimple"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_command.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_command.go new file mode 100644 index 0000000..c07ecc8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_command.go @@ -0,0 +1,24 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Command is a nested struct in ehpc response +type Command struct { + CommandId string `json:"CommandId" xml:"CommandId"` + CommandContent string `json:"CommandContent" xml:"CommandContent"` + WorkingDir string `json:"WorkingDir" xml:"WorkingDir"` + Timeout string `json:"Timeout" xml:"Timeout"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_commands.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_commands.go new file mode 100644 index 0000000..41aeb42 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_commands.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Commands is a nested struct in ehpc response +type Commands struct { + Command []Command `json:"Command" xml:"Command"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_compute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_compute.go new file mode 100644 index 0000000..2abedc2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_compute.go @@ -0,0 +1,22 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Compute is a nested struct in ehpc response +type Compute struct { + Count int `json:"Count" xml:"Count"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_compute_in_list_preferred_ecs_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_compute_in_list_preferred_ecs_types.go new file mode 100644 index 0000000..515c5a4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_compute_in_list_preferred_ecs_types.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ComputeInListPreferredEcsTypes is a nested struct in ehpc response +type ComputeInListPreferredEcsTypes struct { + InstanceTypeId []string `json:"InstanceTypeId" xml:"InstanceTypeId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_computes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_computes.go new file mode 100644 index 0000000..5cfff7e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_computes.go @@ -0,0 +1,25 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Computes is a nested struct in ehpc response +type Computes struct { + Total int `json:"Total" xml:"Total"` + NormalCount int `json:"NormalCount" xml:"NormalCount"` + OperatingCount int `json:"OperatingCount" xml:"OperatingCount"` + StoppedCount int `json:"StoppedCount" xml:"StoppedCount"` + ExceptionCount int `json:"ExceptionCount" xml:"ExceptionCount"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_container_app_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_container_app_info.go new file mode 100644 index 0000000..0612dba --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_container_app_info.go @@ -0,0 +1,27 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContainerAppInfo is a nested struct in ehpc response +type ContainerAppInfo struct { + Id string `json:"Id" xml:"Id"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + Repository string `json:"Repository" xml:"Repository"` + ImageTag string `json:"ImageTag" xml:"ImageTag"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Type string `json:"Type" xml:"Type"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_container_apps.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_container_apps.go new file mode 100644 index 0000000..0ebe85e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_container_apps.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContainerApps is a nested struct in ehpc response +type ContainerApps struct { + ContainerAppsItem []ContainerAppsItem `json:"ContainerAppsItem" xml:"ContainerAppsItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_container_apps_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_container_apps_item.go new file mode 100644 index 0000000..c7d5b1e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_container_apps_item.go @@ -0,0 +1,27 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContainerAppsItem is a nested struct in ehpc response +type ContainerAppsItem struct { + Id string `json:"Id" xml:"Id"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + Repository string `json:"Repository" xml:"Repository"` + ImageTag string `json:"ImageTag" xml:"ImageTag"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Type string `json:"Type" xml:"Type"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_container_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_container_id.go new file mode 100644 index 0000000..7d91dd5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_container_id.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ContainerId is a nested struct in ehpc response +type ContainerId struct { + ContainerId []string `json:"ContainerId" xml:"ContainerId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_ecs_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_ecs_info.go new file mode 100644 index 0000000..362bbd1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_ecs_info.go @@ -0,0 +1,23 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EcsInfo is a nested struct in ehpc response +type EcsInfo struct { + Manager Manager `json:"Manager" xml:"Manager"` + Compute Compute `json:"Compute" xml:"Compute"` + Login Login `json:"Login" xml:"Login"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_image_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_image_info.go new file mode 100644 index 0000000..ed6ce0c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_image_info.go @@ -0,0 +1,31 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ImageInfo is a nested struct in ehpc response +type ImageInfo struct { + Uid string `json:"Uid" xml:"Uid"` + ImageId string `json:"ImageId" xml:"ImageId"` + ImageName string `json:"ImageName" xml:"ImageName"` + ImageOwnerAlias string `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"` + Description string `json:"Description" xml:"Description"` + Status string `json:"Status" xml:"Status"` + ProductCode string `json:"ProductCode" xml:"ProductCode"` + SkuCode string `json:"SkuCode" xml:"SkuCode"` + PricingCycle string `json:"PricingCycle" xml:"PricingCycle"` + PostInstallScript string `json:"PostInstallScript" xml:"PostInstallScript"` + BaseOsTag BaseOsTag `json:"BaseOsTag" xml:"BaseOsTag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_images_in_list_container_images.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_images_in_list_container_images.go new file mode 100644 index 0000000..7ccec8d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_images_in_list_container_images.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ImagesInListContainerImages is a nested struct in ehpc response +type ImagesInListContainerImages struct { + ImagesItem []ImagesItem `json:"ImagesItem" xml:"ImagesItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_images_in_list_custom_images.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_images_in_list_custom_images.go new file mode 100644 index 0000000..fe42bdf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_images_in_list_custom_images.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ImagesInListCustomImages is a nested struct in ehpc response +type ImagesInListCustomImages struct { + ImageInfo []ImageInfo `json:"ImageInfo" xml:"ImageInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_images_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_images_item.go new file mode 100644 index 0000000..73c919a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_images_item.go @@ -0,0 +1,27 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ImagesItem is a nested struct in ehpc response +type ImagesItem struct { + System string `json:"System" xml:"System"` + Type string `json:"Type" xml:"Type"` + Status string `json:"Status" xml:"Status"` + ImageId string `json:"ImageId" xml:"ImageId"` + UpdateDateTime string `json:"UpdateDateTime" xml:"UpdateDateTime"` + Repository string `json:"Repository" xml:"Repository"` + Tag string `json:"Tag" xml:"Tag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_instance_ids_in_add_nodes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_instance_ids_in_add_nodes.go new file mode 100644 index 0000000..51d0c9b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_instance_ids_in_add_nodes.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceIdsInAddNodes is a nested struct in ehpc response +type InstanceIdsInAddNodes struct { + InstanceId []string `json:"InstanceId" xml:"InstanceId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_instance_ids_in_invoke_shell_command.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_instance_ids_in_invoke_shell_command.go new file mode 100644 index 0000000..6cda756 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_instance_ids_in_invoke_shell_command.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceIdsInInvokeShellCommand is a nested struct in ehpc response +type InstanceIdsInInvokeShellCommand struct { + InstanceId []string `json:"InstanceId" xml:"InstanceId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_invocation_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_invocation_result.go new file mode 100644 index 0000000..0d3f2a9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_invocation_result.go @@ -0,0 +1,27 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InvocationResult is a nested struct in ehpc response +type InvocationResult struct { + Success bool `json:"Success" xml:"Success"` + CommandId string `json:"CommandId" xml:"CommandId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + InvokeRecordStatus string `json:"InvokeRecordStatus" xml:"InvokeRecordStatus"` + FinishedTime string `json:"FinishedTime" xml:"FinishedTime"` + ExitCode int `json:"ExitCode" xml:"ExitCode"` + Message string `json:"Message" xml:"Message"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_invocation_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_invocation_results.go new file mode 100644 index 0000000..f0eeb2e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_invocation_results.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InvocationResults is a nested struct in ehpc response +type InvocationResults struct { + InvocationResult []InvocationResult `json:"InvocationResult" xml:"InvocationResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_invoke_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_invoke_instance.go new file mode 100644 index 0000000..ee3baf1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_invoke_instance.go @@ -0,0 +1,22 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InvokeInstance is a nested struct in ehpc response +type InvokeInstance struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + InstanceInvokeStatus string `json:"InstanceInvokeStatus" xml:"InstanceInvokeStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_invoke_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_invoke_instances.go new file mode 100644 index 0000000..7ce29a6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_invoke_instances.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InvokeInstances is a nested struct in ehpc response +type InvokeInstances struct { + InvokeInstance []InvokeInstance `json:"InvokeInstance" xml:"InvokeInstance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_job_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_job_info.go new file mode 100644 index 0000000..efa2c52 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_job_info.go @@ -0,0 +1,34 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// JobInfo is a nested struct in ehpc response +type JobInfo struct { + Id string `json:"Id" xml:"Id"` + Name string `json:"Name" xml:"Name"` + Owner string `json:"Owner" xml:"Owner"` + Priority int `json:"Priority" xml:"Priority"` + State string `json:"State" xml:"State"` + SubmitTime string `json:"SubmitTime" xml:"SubmitTime"` + StartTime string `json:"StartTime" xml:"StartTime"` + LastModifyTime string `json:"LastModifyTime" xml:"LastModifyTime"` + Stdout string `json:"Stdout" xml:"Stdout"` + Stderr string `json:"Stderr" xml:"Stderr"` + ShellPath string `json:"ShellPath" xml:"ShellPath"` + Comment string `json:"Comment" xml:"Comment"` + ArrayRequest string `json:"ArrayRequest" xml:"ArrayRequest"` + Resources Resources `json:"Resources" xml:"Resources"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_job_templates.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_job_templates.go new file mode 100644 index 0000000..dcb08b2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_job_templates.go @@ -0,0 +1,31 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// JobTemplates is a nested struct in ehpc response +type JobTemplates struct { + Id string `json:"Id" xml:"Id"` + Name string `json:"Name" xml:"Name"` + CommandLine string `json:"CommandLine" xml:"CommandLine"` + RunasUser string `json:"RunasUser" xml:"RunasUser"` + Priority int `json:"Priority" xml:"Priority"` + PackagePath string `json:"PackagePath" xml:"PackagePath"` + StdoutRedirectPath string `json:"StdoutRedirectPath" xml:"StdoutRedirectPath"` + StderrRedirectPath string `json:"StderrRedirectPath" xml:"StderrRedirectPath"` + ReRunable bool `json:"ReRunable" xml:"ReRunable"` + ArrayRequest string `json:"ArrayRequest" xml:"ArrayRequest"` + Variables string `json:"Variables" xml:"Variables"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_jobs.go new file mode 100644 index 0000000..0f93e6b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_jobs.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Jobs is a nested struct in ehpc response +type Jobs struct { + JobInfo []JobInfo `json:"JobInfo" xml:"JobInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_log_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_log_info.go new file mode 100644 index 0000000..514cebb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_log_info.go @@ -0,0 +1,24 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LogInfo is a nested struct in ehpc response +type LogInfo struct { + Operation string `json:"Operation" xml:"Operation"` + Level string `json:"Level" xml:"Level"` + Message string `json:"Message" xml:"Message"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_login.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_login.go new file mode 100644 index 0000000..129c00d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_login.go @@ -0,0 +1,22 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Login is a nested struct in ehpc response +type Login struct { + Count int `json:"Count" xml:"Count"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_login_in_list_preferred_ecs_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_login_in_list_preferred_ecs_types.go new file mode 100644 index 0000000..9676f00 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_login_in_list_preferred_ecs_types.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LoginInListPreferredEcsTypes is a nested struct in ehpc response +type LoginInListPreferredEcsTypes struct { + InstanceTypeId []string `json:"InstanceTypeId" xml:"InstanceTypeId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_logs.go new file mode 100644 index 0000000..5a8f3e7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_logs.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Logs is a nested struct in ehpc response +type Logs struct { + LogInfo []LogInfo `json:"LogInfo" xml:"LogInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_manager.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_manager.go new file mode 100644 index 0000000..51a2a05 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_manager.go @@ -0,0 +1,22 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Manager is a nested struct in ehpc response +type Manager struct { + Count int `json:"Count" xml:"Count"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_manager_in_list_preferred_ecs_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_manager_in_list_preferred_ecs_types.go new file mode 100644 index 0000000..9dadfa2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_manager_in_list_preferred_ecs_types.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ManagerInListPreferredEcsTypes is a nested struct in ehpc response +type ManagerInListPreferredEcsTypes struct { + InstanceTypeId []string `json:"InstanceTypeId" xml:"InstanceTypeId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_managers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_managers.go new file mode 100644 index 0000000..ccdeb4e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_managers.go @@ -0,0 +1,25 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Managers is a nested struct in ehpc response +type Managers struct { + Total int `json:"Total" xml:"Total"` + NormalCount int `json:"NormalCount" xml:"NormalCount"` + OperatingCount int `json:"OperatingCount" xml:"OperatingCount"` + StoppedCount int `json:"StoppedCount" xml:"StoppedCount"` + ExceptionCount int `json:"ExceptionCount" xml:"ExceptionCount"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_node_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_node_info.go new file mode 100644 index 0000000..1c6ffe0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_node_info.go @@ -0,0 +1,35 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NodeInfo is a nested struct in ehpc response +type NodeInfo struct { + LockReason string `json:"LockReason" xml:"LockReason"` + Expired bool `json:"Expired" xml:"Expired"` + ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` + ImageId string `json:"ImageId" xml:"ImageId"` + ImageOwnerAlias string `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"` + Location string `json:"Location" xml:"Location"` + RegionId string `json:"RegionId" xml:"RegionId"` + CreatedByEhpc bool `json:"CreatedByEhpc" xml:"CreatedByEhpc"` + Id string `json:"Id" xml:"Id"` + Status string `json:"Status" xml:"Status"` + AddTime string `json:"AddTime" xml:"AddTime"` + SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` + Roles RolesInListNodesNoPaging `json:"Roles" xml:"Roles"` + TotalResources TotalResources `json:"TotalResources" xml:"TotalResources"` + UsedResources UsedResources `json:"UsedResources" xml:"UsedResources"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_nodes_in_list_nodes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_nodes_in_list_nodes.go new file mode 100644 index 0000000..4a5fa7d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_nodes_in_list_nodes.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NodesInListNodes is a nested struct in ehpc response +type NodesInListNodes struct { + NodeInfo []NodeInfo `json:"NodeInfo" xml:"NodeInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_nodes_in_list_nodes_no_paging.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_nodes_in_list_nodes_no_paging.go new file mode 100644 index 0000000..36a4bab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_nodes_in_list_nodes_no_paging.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NodesInListNodesNoPaging is a nested struct in ehpc response +type NodesInListNodesNoPaging struct { + NodeInfo []NodeInfo `json:"NodeInfo" xml:"NodeInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_os_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_os_info.go new file mode 100644 index 0000000..3c1e69d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_os_info.go @@ -0,0 +1,24 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OsInfo is a nested struct in ehpc response +type OsInfo struct { + OsTag string `json:"OsTag" xml:"OsTag"` + Platform string `json:"Platform" xml:"Platform"` + Version string `json:"Version" xml:"Version"` + Architecture string `json:"Architecture" xml:"Architecture"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_os_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_os_tags.go new file mode 100644 index 0000000..cb1a15b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_os_tags.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OsTags is a nested struct in ehpc response +type OsTags struct { + OsInfo []OsInfo `json:"OsInfo" xml:"OsInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_region_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_region_info.go new file mode 100644 index 0000000..99b9694 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_region_info.go @@ -0,0 +1,22 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RegionInfo is a nested struct in ehpc response +type RegionInfo struct { + RegionId string `json:"RegionId" xml:"RegionId"` + LocalName string `json:"LocalName" xml:"LocalName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_regions.go new file mode 100644 index 0000000..3b0545b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_regions.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 ehpc response +type Regions struct { + RegionInfo []RegionInfo `json:"RegionInfo" xml:"RegionInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_resources.go new file mode 100644 index 0000000..e0779fc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_resources.go @@ -0,0 +1,22 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Resources is a nested struct in ehpc response +type Resources struct { + Nodes int `json:"Nodes" xml:"Nodes"` + Cores int `json:"Cores" xml:"Cores"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_roles.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_roles.go new file mode 100644 index 0000000..1072bae --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_roles.go @@ -0,0 +1,23 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Roles is a nested struct in ehpc response +type Roles struct { + Manager ManagerInListPreferredEcsTypes `json:"Manager" xml:"Manager"` + Login LoginInListPreferredEcsTypes `json:"Login" xml:"Login"` + Compute ComputeInListPreferredEcsTypes `json:"Compute" xml:"Compute"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_roles_in_list_nodes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_roles_in_list_nodes.go new file mode 100644 index 0000000..ac18590 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_roles_in_list_nodes.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RolesInListNodes is a nested struct in ehpc response +type RolesInListNodes struct { + Role []string `json:"Role" xml:"Role"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_roles_in_list_nodes_no_paging.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_roles_in_list_nodes_no_paging.go new file mode 100644 index 0000000..cf07c90 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_roles_in_list_nodes_no_paging.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RolesInListNodesNoPaging is a nested struct in ehpc response +type RolesInListNodesNoPaging struct { + Role []string `json:"Role" xml:"Role"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_series.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_series.go new file mode 100644 index 0000000..efb47c8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_series.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Series is a nested struct in ehpc response +type Series struct { + SeriesInfo []SeriesInfo `json:"SeriesInfo" xml:"SeriesInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_series_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_series_info.go new file mode 100644 index 0000000..d7b3c13 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_series_info.go @@ -0,0 +1,23 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SeriesInfo is a nested struct in ehpc response +type SeriesInfo struct { + SeriesId string `json:"SeriesId" xml:"SeriesId"` + SeriesName string `json:"SeriesName" xml:"SeriesName"` + Roles Roles `json:"Roles" xml:"Roles"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_software_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_software_info.go new file mode 100644 index 0000000..f7d47d1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_software_info.go @@ -0,0 +1,27 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SoftwareInfo is a nested struct in ehpc response +type SoftwareInfo struct { + EhpcVersion string `json:"EhpcVersion" xml:"EhpcVersion"` + OsTag string `json:"OsTag" xml:"OsTag"` + SchedulerType string `json:"SchedulerType" xml:"SchedulerType"` + SchedulerVersion string `json:"SchedulerVersion" xml:"SchedulerVersion"` + AccountType string `json:"AccountType" xml:"AccountType"` + AccountVersion string `json:"AccountVersion" xml:"AccountVersion"` + Applications ApplicationsInListSoftwares `json:"Applications" xml:"Applications"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_softwares.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_softwares.go new file mode 100644 index 0000000..75b3093 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_softwares.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Softwares is a nested struct in ehpc response +type Softwares struct { + SoftwareInfo []SoftwareInfo `json:"SoftwareInfo" xml:"SoftwareInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_templates.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_templates.go new file mode 100644 index 0000000..96d8262 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_templates.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Templates is a nested struct in ehpc response +type Templates struct { + JobTemplates []JobTemplates `json:"JobTemplates" xml:"JobTemplates"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_total_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_total_resources.go new file mode 100644 index 0000000..8198bc6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_total_resources.go @@ -0,0 +1,23 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TotalResources is a nested struct in ehpc response +type TotalResources struct { + Gpu int `json:"Gpu" xml:"Gpu"` + Memory int `json:"Memory" xml:"Memory"` + Cpu int `json:"Cpu" xml:"Cpu"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_used_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_used_resources.go new file mode 100644 index 0000000..e97b8ba --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_used_resources.go @@ -0,0 +1,23 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UsedResources is a nested struct in ehpc response +type UsedResources struct { + Gpu int `json:"Gpu" xml:"Gpu"` + Memory int `json:"Memory" xml:"Memory"` + Cpu int `json:"Cpu" xml:"Cpu"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_user_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_user_info.go new file mode 100644 index 0000000..65608cb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_user_info.go @@ -0,0 +1,23 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 ehpc response +type UserInfo struct { + Name string `json:"Name" xml:"Name"` + Group string `json:"Group" xml:"Group"` + AddTime string `json:"AddTime" xml:"AddTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_users.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_users.go new file mode 100644 index 0000000..3281dda --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_users.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Users is a nested struct in ehpc response +type Users struct { + UserInfo []UserInfo `json:"UserInfo" xml:"UserInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_volume_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_volume_info.go new file mode 100644 index 0000000..8cea4c1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_volume_info.go @@ -0,0 +1,28 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VolumeInfo is a nested struct in ehpc response +type VolumeInfo struct { + RegionId string `json:"RegionId" xml:"RegionId"` + ClusterId string `json:"ClusterId" xml:"ClusterId"` + ClusterName string `json:"ClusterName" xml:"ClusterName"` + VolumeId string `json:"VolumeId" xml:"VolumeId"` + VolumeType string `json:"VolumeType" xml:"VolumeType"` + VolumeProtocol string `json:"VolumeProtocol" xml:"VolumeProtocol"` + VolumeMountpoint string `json:"VolumeMountpoint" xml:"VolumeMountpoint"` + RemoteDirectory string `json:"RemoteDirectory" xml:"RemoteDirectory"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_volumes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_volumes.go new file mode 100644 index 0000000..470b217 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/struct_volumes.go @@ -0,0 +1,21 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Volumes is a nested struct in ehpc response +type Volumes struct { + VolumeInfo []VolumeInfo `json:"VolumeInfo" xml:"VolumeInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/submit_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/submit_job.go new file mode 100644 index 0000000..2156cbc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/submit_job.go @@ -0,0 +1,119 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitJob invokes the ehpc.SubmitJob API synchronously +// api document: https://help.aliyun.com/api/ehpc/submitjob.html +func (client *Client) SubmitJob(request *SubmitJobRequest) (response *SubmitJobResponse, err error) { + response = CreateSubmitJobResponse() + err = client.DoAction(request, response) + return +} + +// SubmitJobWithChan invokes the ehpc.SubmitJob API asynchronously +// api document: https://help.aliyun.com/api/ehpc/submitjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitJobWithChan(request *SubmitJobRequest) (<-chan *SubmitJobResponse, <-chan error) { + responseChan := make(chan *SubmitJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitJobWithCallback invokes the ehpc.SubmitJob API asynchronously +// api document: https://help.aliyun.com/api/ehpc/submitjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitJobWithCallback(request *SubmitJobRequest, callback func(response *SubmitJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitJobResponse + var err error + defer close(result) + response, err = client.SubmitJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitJobRequest is the request struct for api SubmitJob +type SubmitJobRequest struct { + *requests.RpcRequest + StderrRedirectPath string `position:"Query" name:"StderrRedirectPath"` + Variables string `position:"Query" name:"Variables"` + RunasUserPassword string `position:"Query" name:"RunasUserPassword"` + PostCmdLine string `position:"Query" name:"PostCmdLine"` + RunasUser string `position:"Query" name:"RunasUser"` + ClusterId string `position:"Query" name:"ClusterId"` + ReRunable requests.Boolean `position:"Query" name:"ReRunable"` + Priority requests.Integer `position:"Query" name:"Priority"` + CommandLine string `position:"Query" name:"CommandLine"` + ArrayRequest string `position:"Query" name:"ArrayRequest"` + UnzipCmd string `position:"Query" name:"UnzipCmd"` + PackagePath string `position:"Query" name:"PackagePath"` + InputFileUrl string `position:"Query" name:"InputFileUrl"` + Name string `position:"Query" name:"Name"` + StdoutRedirectPath string `position:"Query" name:"StdoutRedirectPath"` + ContainerId string `position:"Query" name:"ContainerId"` +} + +// SubmitJobResponse is the response struct for api SubmitJob +type SubmitJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateSubmitJobRequest creates a request to invoke SubmitJob API +func CreateSubmitJobRequest() (request *SubmitJobRequest) { + request = &SubmitJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "SubmitJob", "ehs", "openAPI") + return +} + +// CreateSubmitJobResponse creates a response to parse from SubmitJob response +func CreateSubmitJobResponse() (response *SubmitJobResponse) { + response = &SubmitJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/upgrade_client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/upgrade_client.go new file mode 100644 index 0000000..0a89fc8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ehpc/upgrade_client.go @@ -0,0 +1,104 @@ +package ehpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpgradeClient invokes the ehpc.UpgradeClient API synchronously +// api document: https://help.aliyun.com/api/ehpc/upgradeclient.html +func (client *Client) UpgradeClient(request *UpgradeClientRequest) (response *UpgradeClientResponse, err error) { + response = CreateUpgradeClientResponse() + err = client.DoAction(request, response) + return +} + +// UpgradeClientWithChan invokes the ehpc.UpgradeClient API asynchronously +// api document: https://help.aliyun.com/api/ehpc/upgradeclient.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpgradeClientWithChan(request *UpgradeClientRequest) (<-chan *UpgradeClientResponse, <-chan error) { + responseChan := make(chan *UpgradeClientResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpgradeClient(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpgradeClientWithCallback invokes the ehpc.UpgradeClient API asynchronously +// api document: https://help.aliyun.com/api/ehpc/upgradeclient.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpgradeClientWithCallback(request *UpgradeClientRequest, callback func(response *UpgradeClientResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpgradeClientResponse + var err error + defer close(result) + response, err = client.UpgradeClient(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpgradeClientRequest is the request struct for api UpgradeClient +type UpgradeClientRequest struct { + *requests.RpcRequest + ClientVersion string `position:"Query" name:"ClientVersion"` + ClusterId string `position:"Query" name:"ClusterId"` +} + +// UpgradeClientResponse is the response struct for api UpgradeClient +type UpgradeClientResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpgradeClientRequest creates a request to invoke UpgradeClient API +func CreateUpgradeClientRequest() (request *UpgradeClientRequest) { + request = &UpgradeClientRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "UpgradeClient", "ehs", "openAPI") + return +} + +// CreateUpgradeClientResponse creates a response to parse from UpgradeClient response +func CreateUpgradeClientResponse() (response *UpgradeClientResponse) { + response = &UpgradeClientResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/attach_db_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/attach_db_instances.go new file mode 100755 index 0000000..ddcb1b7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/attach_db_instances.go @@ -0,0 +1,107 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AttachDBInstances invokes the ess.AttachDBInstances API synchronously +// api document: https://help.aliyun.com/api/ess/attachdbinstances.html +func (client *Client) AttachDBInstances(request *AttachDBInstancesRequest) (response *AttachDBInstancesResponse, err error) { + response = CreateAttachDBInstancesResponse() + err = client.DoAction(request, response) + return +} + +// AttachDBInstancesWithChan invokes the ess.AttachDBInstances API asynchronously +// api document: https://help.aliyun.com/api/ess/attachdbinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachDBInstancesWithChan(request *AttachDBInstancesRequest) (<-chan *AttachDBInstancesResponse, <-chan error) { + responseChan := make(chan *AttachDBInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AttachDBInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AttachDBInstancesWithCallback invokes the ess.AttachDBInstances API asynchronously +// api document: https://help.aliyun.com/api/ess/attachdbinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachDBInstancesWithCallback(request *AttachDBInstancesRequest, callback func(response *AttachDBInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AttachDBInstancesResponse + var err error + defer close(result) + response, err = client.AttachDBInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AttachDBInstancesRequest is the request struct for api AttachDBInstances +type AttachDBInstancesRequest struct { + *requests.RpcRequest + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + ForceAttach requests.Boolean `position:"Query" name:"ForceAttach"` + DBInstance *[]string `position:"Query" name:"DBInstance" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AttachDBInstancesResponse is the response struct for api AttachDBInstances +type AttachDBInstancesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAttachDBInstancesRequest creates a request to invoke AttachDBInstances API +func CreateAttachDBInstancesRequest() (request *AttachDBInstancesRequest) { + request = &AttachDBInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "AttachDBInstances", "ess", "openAPI") + return +} + +// CreateAttachDBInstancesResponse creates a response to parse from AttachDBInstances response +func CreateAttachDBInstancesResponse() (response *AttachDBInstancesResponse) { + response = &AttachDBInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/attach_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/attach_instances.go new file mode 100755 index 0000000..3bdee44 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/attach_instances.go @@ -0,0 +1,148 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AttachInstances invokes the ess.AttachInstances API synchronously +// api document: https://help.aliyun.com/api/ess/attachinstances.html +func (client *Client) AttachInstances(request *AttachInstancesRequest) (response *AttachInstancesResponse, err error) { + response = CreateAttachInstancesResponse() + err = client.DoAction(request, response) + return +} + +// AttachInstancesWithChan invokes the ess.AttachInstances API asynchronously +// api document: https://help.aliyun.com/api/ess/attachinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachInstancesWithChan(request *AttachInstancesRequest) (<-chan *AttachInstancesResponse, <-chan error) { + responseChan := make(chan *AttachInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AttachInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AttachInstancesWithCallback invokes the ess.AttachInstances API asynchronously +// api document: https://help.aliyun.com/api/ess/attachinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachInstancesWithCallback(request *AttachInstancesRequest, callback func(response *AttachInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AttachInstancesResponse + var err error + defer close(result) + response, err = client.AttachInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AttachInstancesRequest is the request struct for api AttachInstances +type AttachInstancesRequest struct { + *requests.RpcRequest + InstanceId10 string `position:"Query" name:"InstanceId.10"` + LoadBalancerWeight6 requests.Integer `position:"Query" name:"LoadBalancerWeight.6"` + LoadBalancerWeight11 requests.Integer `position:"Query" name:"LoadBalancerWeight.11"` + LoadBalancerWeight7 requests.Integer `position:"Query" name:"LoadBalancerWeight.7"` + LoadBalancerWeight12 requests.Integer `position:"Query" name:"LoadBalancerWeight.12"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId12 string `position:"Query" name:"InstanceId.12"` + LoadBalancerWeight8 requests.Integer `position:"Query" name:"LoadBalancerWeight.8"` + InstanceId11 string `position:"Query" name:"InstanceId.11"` + LoadBalancerWeight9 requests.Integer `position:"Query" name:"LoadBalancerWeight.9"` + LoadBalancerWeight10 requests.Integer `position:"Query" name:"LoadBalancerWeight.10"` + LoadBalancerWeight2 requests.Integer `position:"Query" name:"LoadBalancerWeight.2"` + LoadBalancerWeight15 requests.Integer `position:"Query" name:"LoadBalancerWeight.15"` + LoadBalancerWeight3 requests.Integer `position:"Query" name:"LoadBalancerWeight.3"` + LoadBalancerWeight16 requests.Integer `position:"Query" name:"LoadBalancerWeight.16"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + LoadBalancerWeight4 requests.Integer `position:"Query" name:"LoadBalancerWeight.4"` + LoadBalancerWeight13 requests.Integer `position:"Query" name:"LoadBalancerWeight.13"` + LoadBalancerWeight5 requests.Integer `position:"Query" name:"LoadBalancerWeight.5"` + LoadBalancerWeight14 requests.Integer `position:"Query" name:"LoadBalancerWeight.14"` + LoadBalancerWeight1 requests.Integer `position:"Query" name:"LoadBalancerWeight.1"` + InstanceId20 string `position:"Query" name:"InstanceId.20"` + InstanceId1 string `position:"Query" name:"InstanceId.1"` + LoadBalancerWeight20 requests.Integer `position:"Query" name:"LoadBalancerWeight.20"` + InstanceId3 string `position:"Query" name:"InstanceId.3"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + InstanceId2 string `position:"Query" name:"InstanceId.2"` + InstanceId5 string `position:"Query" name:"InstanceId.5"` + InstanceId4 string `position:"Query" name:"InstanceId.4"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + InstanceId7 string `position:"Query" name:"InstanceId.7"` + InstanceId6 string `position:"Query" name:"InstanceId.6"` + InstanceId9 string `position:"Query" name:"InstanceId.9"` + InstanceId8 string `position:"Query" name:"InstanceId.8"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId18 string `position:"Query" name:"InstanceId.18"` + LoadBalancerWeight19 requests.Integer `position:"Query" name:"LoadBalancerWeight.19"` + InstanceId17 string `position:"Query" name:"InstanceId.17"` + LoadBalancerWeight17 requests.Integer `position:"Query" name:"LoadBalancerWeight.17"` + InstanceId19 string `position:"Query" name:"InstanceId.19"` + LoadBalancerWeight18 requests.Integer `position:"Query" name:"LoadBalancerWeight.18"` + InstanceId14 string `position:"Query" name:"InstanceId.14"` + InstanceId13 string `position:"Query" name:"InstanceId.13"` + InstanceId16 string `position:"Query" name:"InstanceId.16"` + InstanceId15 string `position:"Query" name:"InstanceId.15"` +} + +// AttachInstancesResponse is the response struct for api AttachInstances +type AttachInstancesResponse struct { + *responses.BaseResponse + ScalingActivityId string `json:"ScalingActivityId" xml:"ScalingActivityId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAttachInstancesRequest creates a request to invoke AttachInstances API +func CreateAttachInstancesRequest() (request *AttachInstancesRequest) { + request = &AttachInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "AttachInstances", "ess", "openAPI") + return +} + +// CreateAttachInstancesResponse creates a response to parse from AttachInstances response +func CreateAttachInstancesResponse() (response *AttachInstancesResponse) { + response = &AttachInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/attach_load_balancers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/attach_load_balancers.go new file mode 100755 index 0000000..57ef02e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/attach_load_balancers.go @@ -0,0 +1,107 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AttachLoadBalancers invokes the ess.AttachLoadBalancers API synchronously +// api document: https://help.aliyun.com/api/ess/attachloadbalancers.html +func (client *Client) AttachLoadBalancers(request *AttachLoadBalancersRequest) (response *AttachLoadBalancersResponse, err error) { + response = CreateAttachLoadBalancersResponse() + err = client.DoAction(request, response) + return +} + +// AttachLoadBalancersWithChan invokes the ess.AttachLoadBalancers API asynchronously +// api document: https://help.aliyun.com/api/ess/attachloadbalancers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachLoadBalancersWithChan(request *AttachLoadBalancersRequest) (<-chan *AttachLoadBalancersResponse, <-chan error) { + responseChan := make(chan *AttachLoadBalancersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AttachLoadBalancers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AttachLoadBalancersWithCallback invokes the ess.AttachLoadBalancers API asynchronously +// api document: https://help.aliyun.com/api/ess/attachloadbalancers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachLoadBalancersWithCallback(request *AttachLoadBalancersRequest, callback func(response *AttachLoadBalancersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AttachLoadBalancersResponse + var err error + defer close(result) + response, err = client.AttachLoadBalancers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AttachLoadBalancersRequest is the request struct for api AttachLoadBalancers +type AttachLoadBalancersRequest struct { + *requests.RpcRequest + LoadBalancer *[]string `position:"Query" name:"LoadBalancer" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + ForceAttach requests.Boolean `position:"Query" name:"ForceAttach"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AttachLoadBalancersResponse is the response struct for api AttachLoadBalancers +type AttachLoadBalancersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAttachLoadBalancersRequest creates a request to invoke AttachLoadBalancers API +func CreateAttachLoadBalancersRequest() (request *AttachLoadBalancersRequest) { + request = &AttachLoadBalancersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "AttachLoadBalancers", "ess", "openAPI") + return +} + +// CreateAttachLoadBalancersResponse creates a response to parse from AttachLoadBalancers response +func CreateAttachLoadBalancersResponse() (response *AttachLoadBalancersResponse) { + response = &AttachLoadBalancersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/client.go new file mode 100755 index 0000000..9915687 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/client.go @@ -0,0 +1,81 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/complete_lifecycle_action.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/complete_lifecycle_action.go new file mode 100755 index 0000000..3393948 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/complete_lifecycle_action.go @@ -0,0 +1,108 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CompleteLifecycleAction invokes the ess.CompleteLifecycleAction API synchronously +// api document: https://help.aliyun.com/api/ess/completelifecycleaction.html +func (client *Client) CompleteLifecycleAction(request *CompleteLifecycleActionRequest) (response *CompleteLifecycleActionResponse, err error) { + response = CreateCompleteLifecycleActionResponse() + err = client.DoAction(request, response) + return +} + +// CompleteLifecycleActionWithChan invokes the ess.CompleteLifecycleAction API asynchronously +// api document: https://help.aliyun.com/api/ess/completelifecycleaction.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CompleteLifecycleActionWithChan(request *CompleteLifecycleActionRequest) (<-chan *CompleteLifecycleActionResponse, <-chan error) { + responseChan := make(chan *CompleteLifecycleActionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CompleteLifecycleAction(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CompleteLifecycleActionWithCallback invokes the ess.CompleteLifecycleAction API asynchronously +// api document: https://help.aliyun.com/api/ess/completelifecycleaction.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CompleteLifecycleActionWithCallback(request *CompleteLifecycleActionRequest, callback func(response *CompleteLifecycleActionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CompleteLifecycleActionResponse + var err error + defer close(result) + response, err = client.CompleteLifecycleAction(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CompleteLifecycleActionRequest is the request struct for api CompleteLifecycleAction +type CompleteLifecycleActionRequest struct { + *requests.RpcRequest + LifecycleActionToken string `position:"Query" name:"LifecycleActionToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + LifecycleHookId string `position:"Query" name:"LifecycleHookId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + LifecycleActionResult string `position:"Query" name:"LifecycleActionResult"` +} + +// CompleteLifecycleActionResponse is the response struct for api CompleteLifecycleAction +type CompleteLifecycleActionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCompleteLifecycleActionRequest creates a request to invoke CompleteLifecycleAction API +func CreateCompleteLifecycleActionRequest() (request *CompleteLifecycleActionRequest) { + request = &CompleteLifecycleActionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "CompleteLifecycleAction", "ess", "openAPI") + return +} + +// CreateCompleteLifecycleActionResponse creates a response to parse from CompleteLifecycleAction response +func CreateCompleteLifecycleActionResponse() (response *CompleteLifecycleActionResponse) { + response = &CompleteLifecycleActionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_lifecycle_hook.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_lifecycle_hook.go new file mode 100755 index 0000000..aa5eded --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_lifecycle_hook.go @@ -0,0 +1,124 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateLifecycleHook invokes the ess.CreateLifecycleHook API synchronously +// api document: https://help.aliyun.com/api/ess/createlifecyclehook.html +func (client *Client) CreateLifecycleHook(request *CreateLifecycleHookRequest) (response *CreateLifecycleHookResponse, err error) { + response = CreateCreateLifecycleHookResponse() + err = client.DoAction(request, response) + return +} + +// CreateLifecycleHookWithChan invokes the ess.CreateLifecycleHook API asynchronously +// api document: https://help.aliyun.com/api/ess/createlifecyclehook.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLifecycleHookWithChan(request *CreateLifecycleHookRequest) (<-chan *CreateLifecycleHookResponse, <-chan error) { + responseChan := make(chan *CreateLifecycleHookResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateLifecycleHook(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateLifecycleHookWithCallback invokes the ess.CreateLifecycleHook API asynchronously +// api document: https://help.aliyun.com/api/ess/createlifecyclehook.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLifecycleHookWithCallback(request *CreateLifecycleHookRequest, callback func(response *CreateLifecycleHookResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateLifecycleHookResponse + var err error + defer close(result) + response, err = client.CreateLifecycleHook(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateLifecycleHookRequest is the request struct for api CreateLifecycleHook +type CreateLifecycleHookRequest struct { + *requests.RpcRequest + DefaultResult string `position:"Query" name:"DefaultResult"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + HeartbeatTimeout requests.Integer `position:"Query" name:"HeartbeatTimeout"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + NotificationMetadata string `position:"Query" name:"NotificationMetadata"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + LifecycleTransition string `position:"Query" name:"LifecycleTransition"` + LifecycleHookName string `position:"Query" name:"LifecycleHookName"` + NotificationArn string `position:"Query" name:"NotificationArn"` + LifecycleHook *[]CreateLifecycleHookLifecycleHook `position:"Query" name:"LifecycleHook" type:"Repeated"` +} + +// CreateLifecycleHookLifecycleHook is a repeated param struct in CreateLifecycleHookRequest +type CreateLifecycleHookLifecycleHook struct { + LifecycleHookName string `name:"LifecycleHookName"` + LifecycleTransition string `name:"LifecycleTransition"` + DefaultResult string `name:"DefaultResult"` + HeartbeatTimeout string `name:"HeartbeatTimeout"` + NotificationMetadata string `name:"NotificationMetadata"` + NotificationArn string `name:"NotificationArn"` +} + +// CreateLifecycleHookResponse is the response struct for api CreateLifecycleHook +type CreateLifecycleHookResponse struct { + *responses.BaseResponse + LifecycleHookId string `json:"LifecycleHookId" xml:"LifecycleHookId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateLifecycleHookRequest creates a request to invoke CreateLifecycleHook API +func CreateCreateLifecycleHookRequest() (request *CreateLifecycleHookRequest) { + request = &CreateLifecycleHookRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "CreateLifecycleHook", "ess", "openAPI") + return +} + +// CreateCreateLifecycleHookResponse creates a response to parse from CreateLifecycleHook response +func CreateCreateLifecycleHookResponse() (response *CreateLifecycleHookResponse) { + response = &CreateLifecycleHookResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_notification_configuration.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_notification_configuration.go new file mode 100755 index 0000000..778f43c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_notification_configuration.go @@ -0,0 +1,107 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateNotificationConfiguration invokes the ess.CreateNotificationConfiguration API synchronously +// api document: https://help.aliyun.com/api/ess/createnotificationconfiguration.html +func (client *Client) CreateNotificationConfiguration(request *CreateNotificationConfigurationRequest) (response *CreateNotificationConfigurationResponse, err error) { + response = CreateCreateNotificationConfigurationResponse() + err = client.DoAction(request, response) + return +} + +// CreateNotificationConfigurationWithChan invokes the ess.CreateNotificationConfiguration API asynchronously +// api document: https://help.aliyun.com/api/ess/createnotificationconfiguration.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateNotificationConfigurationWithChan(request *CreateNotificationConfigurationRequest) (<-chan *CreateNotificationConfigurationResponse, <-chan error) { + responseChan := make(chan *CreateNotificationConfigurationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateNotificationConfiguration(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateNotificationConfigurationWithCallback invokes the ess.CreateNotificationConfiguration API asynchronously +// api document: https://help.aliyun.com/api/ess/createnotificationconfiguration.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateNotificationConfigurationWithCallback(request *CreateNotificationConfigurationRequest, callback func(response *CreateNotificationConfigurationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateNotificationConfigurationResponse + var err error + defer close(result) + response, err = client.CreateNotificationConfiguration(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateNotificationConfigurationRequest is the request struct for api CreateNotificationConfiguration +type CreateNotificationConfigurationRequest struct { + *requests.RpcRequest + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + NotificationArn string `position:"Query" name:"NotificationArn"` + NotificationType *[]string `position:"Query" name:"NotificationType" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// CreateNotificationConfigurationResponse is the response struct for api CreateNotificationConfiguration +type CreateNotificationConfigurationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateNotificationConfigurationRequest creates a request to invoke CreateNotificationConfiguration API +func CreateCreateNotificationConfigurationRequest() (request *CreateNotificationConfigurationRequest) { + request = &CreateNotificationConfigurationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "CreateNotificationConfiguration", "ess", "openAPI") + return +} + +// CreateCreateNotificationConfigurationResponse creates a response to parse from CreateNotificationConfiguration response +func CreateCreateNotificationConfigurationResponse() (response *CreateNotificationConfigurationResponse) { + response = &CreateNotificationConfigurationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_scaling_configuration.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_scaling_configuration.go new file mode 100755 index 0000000..2e28464 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_scaling_configuration.go @@ -0,0 +1,155 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateScalingConfiguration invokes the ess.CreateScalingConfiguration API synchronously +// api document: https://help.aliyun.com/api/ess/createscalingconfiguration.html +func (client *Client) CreateScalingConfiguration(request *CreateScalingConfigurationRequest) (response *CreateScalingConfigurationResponse, err error) { + response = CreateCreateScalingConfigurationResponse() + err = client.DoAction(request, response) + return +} + +// CreateScalingConfigurationWithChan invokes the ess.CreateScalingConfiguration API asynchronously +// api document: https://help.aliyun.com/api/ess/createscalingconfiguration.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateScalingConfigurationWithChan(request *CreateScalingConfigurationRequest) (<-chan *CreateScalingConfigurationResponse, <-chan error) { + responseChan := make(chan *CreateScalingConfigurationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateScalingConfiguration(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateScalingConfigurationWithCallback invokes the ess.CreateScalingConfiguration API asynchronously +// api document: https://help.aliyun.com/api/ess/createscalingconfiguration.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateScalingConfigurationWithCallback(request *CreateScalingConfigurationRequest, callback func(response *CreateScalingConfigurationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateScalingConfigurationResponse + var err error + defer close(result) + response, err = client.CreateScalingConfiguration(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateScalingConfigurationRequest is the request struct for api CreateScalingConfiguration +type CreateScalingConfigurationRequest struct { + *requests.RpcRequest + DataDisk3Size requests.Integer `position:"Query" name:"DataDisk.3.Size"` + ImageId string `position:"Query" name:"ImageId"` + DataDisk1SnapshotId string `position:"Query" name:"DataDisk.1.SnapshotId"` + DataDisk3Category string `position:"Query" name:"DataDisk.3.Category"` + DataDisk1Device string `position:"Query" name:"DataDisk.1.Device"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + DataDisk2Device string `position:"Query" name:"DataDisk.2.Device"` + InstanceTypes *[]string `position:"Query" name:"InstanceTypes" type:"Repeated"` + IoOptimized string `position:"Query" name:"IoOptimized"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` + SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` + KeyPairName string `position:"Query" name:"KeyPairName"` + SpotPriceLimit *[]CreateScalingConfigurationSpotPriceLimit `position:"Query" name:"SpotPriceLimit" type:"Repeated"` + SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` + UserData string `position:"Query" name:"UserData"` + DataDisk4Category string `position:"Query" name:"DataDisk.4.Category"` + HostName string `position:"Query" name:"HostName"` + DataDisk2SnapshotId string `position:"Query" name:"DataDisk.2.SnapshotId"` + PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` + DataDisk4Size requests.Integer `position:"Query" name:"DataDisk.4.Size"` + InstanceType string `position:"Query" name:"InstanceType"` + DataDisk2Category string `position:"Query" name:"DataDisk.2.Category"` + DataDisk1Size requests.Integer `position:"Query" name:"DataDisk.1.Size"` + DataDisk3SnapshotId string `position:"Query" name:"DataDisk.3.SnapshotId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DataDisk2Size requests.Integer `position:"Query" name:"DataDisk.2.Size"` + RamRoleName string `position:"Query" name:"RamRoleName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ScalingConfigurationName string `position:"Query" name:"ScalingConfigurationName"` + Tags string `position:"Query" name:"Tags"` + DataDisk2DeleteWithInstance string `position:"Query" name:"DataDisk.2.DeleteWithInstance"` + SpotStrategy string `position:"Query" name:"SpotStrategy"` + DataDisk1Category string `position:"Query" name:"DataDisk.1.Category"` + DataDisk3DeleteWithInstance string `position:"Query" name:"DataDisk.3.DeleteWithInstance"` + LoadBalancerWeight requests.Integer `position:"Query" name:"LoadBalancerWeight"` + InstanceName string `position:"Query" name:"InstanceName"` + SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` + DataDisk4SnapshotId string `position:"Query" name:"DataDisk.4.SnapshotId"` + DataDisk4Device string `position:"Query" name:"DataDisk.4.Device"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + DataDisk3Device string `position:"Query" name:"DataDisk.3.Device"` + DataDisk4DeleteWithInstance string `position:"Query" name:"DataDisk.4.DeleteWithInstance"` + InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` + DataDisk1DeleteWithInstance string `position:"Query" name:"DataDisk.1.DeleteWithInstance"` +} + +// CreateScalingConfigurationSpotPriceLimit is a repeated param struct in CreateScalingConfigurationRequest +type CreateScalingConfigurationSpotPriceLimit struct { + InstanceType string `name:"InstanceType"` + PriceLimit string `name:"PriceLimit"` +} + +// CreateScalingConfigurationResponse is the response struct for api CreateScalingConfiguration +type CreateScalingConfigurationResponse struct { + *responses.BaseResponse + ScalingConfigurationId string `json:"ScalingConfigurationId" xml:"ScalingConfigurationId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateScalingConfigurationRequest creates a request to invoke CreateScalingConfiguration API +func CreateCreateScalingConfigurationRequest() (request *CreateScalingConfigurationRequest) { + request = &CreateScalingConfigurationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "CreateScalingConfiguration", "ess", "openAPI") + return +} + +// CreateCreateScalingConfigurationResponse creates a response to parse from CreateScalingConfiguration response +func CreateCreateScalingConfigurationResponse() (response *CreateScalingConfigurationResponse) { + response = &CreateScalingConfigurationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_scaling_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_scaling_group.go new file mode 100755 index 0000000..4ae3fda --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_scaling_group.go @@ -0,0 +1,129 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateScalingGroup invokes the ess.CreateScalingGroup API synchronously +// api document: https://help.aliyun.com/api/ess/createscalinggroup.html +func (client *Client) CreateScalingGroup(request *CreateScalingGroupRequest) (response *CreateScalingGroupResponse, err error) { + response = CreateCreateScalingGroupResponse() + err = client.DoAction(request, response) + return +} + +// CreateScalingGroupWithChan invokes the ess.CreateScalingGroup API asynchronously +// api document: https://help.aliyun.com/api/ess/createscalinggroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateScalingGroupWithChan(request *CreateScalingGroupRequest) (<-chan *CreateScalingGroupResponse, <-chan error) { + responseChan := make(chan *CreateScalingGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateScalingGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateScalingGroupWithCallback invokes the ess.CreateScalingGroup API asynchronously +// api document: https://help.aliyun.com/api/ess/createscalinggroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateScalingGroupWithCallback(request *CreateScalingGroupRequest, callback func(response *CreateScalingGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateScalingGroupResponse + var err error + defer close(result) + response, err = client.CreateScalingGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateScalingGroupRequest is the request struct for api CreateScalingGroup +type CreateScalingGroupRequest struct { + *requests.RpcRequest + MultiAZPolicy string `position:"Query" name:"MultiAZPolicy"` + DBInstanceIds string `position:"Query" name:"DBInstanceIds"` + LoadBalancerIds string `position:"Query" name:"LoadBalancerIds"` + HealthCheckType string `position:"Query" name:"HealthCheckType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupName string `position:"Query" name:"ScalingGroupName"` + VSwitchIds *[]string `position:"Query" name:"VSwitchIds" type:"Repeated"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + MinSize requests.Integer `position:"Query" name:"MinSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + MaxSize requests.Integer `position:"Query" name:"MaxSize"` + LifecycleHook *[]CreateScalingGroupLifecycleHook `position:"Query" name:"LifecycleHook" type:"Repeated"` + DefaultCooldown requests.Integer `position:"Query" name:"DefaultCooldown"` + RemovalPolicy1 string `position:"Query" name:"RemovalPolicy.1"` + RemovalPolicy2 string `position:"Query" name:"RemovalPolicy.2"` +} + +// CreateScalingGroupLifecycleHook is a repeated param struct in CreateScalingGroupRequest +type CreateScalingGroupLifecycleHook struct { + LifecycleHookName string `name:"LifecycleHookName"` + LifecycleTransition string `name:"LifecycleTransition"` + DefaultResult string `name:"DefaultResult"` + HeartbeatTimeout string `name:"HeartbeatTimeout"` + NotificationMetadata string `name:"NotificationMetadata"` + NotificationArn string `name:"NotificationArn"` +} + +// CreateScalingGroupResponse is the response struct for api CreateScalingGroup +type CreateScalingGroupResponse struct { + *responses.BaseResponse + ScalingGroupId string `json:"ScalingGroupId" xml:"ScalingGroupId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateScalingGroupRequest creates a request to invoke CreateScalingGroup API +func CreateCreateScalingGroupRequest() (request *CreateScalingGroupRequest) { + request = &CreateScalingGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "CreateScalingGroup", "ess", "openAPI") + return +} + +// CreateCreateScalingGroupResponse creates a response to parse from CreateScalingGroup response +func CreateCreateScalingGroupResponse() (response *CreateScalingGroupResponse) { + response = &CreateScalingGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_scaling_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_scaling_rule.go new file mode 100755 index 0000000..2a3749d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_scaling_rule.go @@ -0,0 +1,112 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateScalingRule invokes the ess.CreateScalingRule API synchronously +// api document: https://help.aliyun.com/api/ess/createscalingrule.html +func (client *Client) CreateScalingRule(request *CreateScalingRuleRequest) (response *CreateScalingRuleResponse, err error) { + response = CreateCreateScalingRuleResponse() + err = client.DoAction(request, response) + return +} + +// CreateScalingRuleWithChan invokes the ess.CreateScalingRule API asynchronously +// api document: https://help.aliyun.com/api/ess/createscalingrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateScalingRuleWithChan(request *CreateScalingRuleRequest) (<-chan *CreateScalingRuleResponse, <-chan error) { + responseChan := make(chan *CreateScalingRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateScalingRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateScalingRuleWithCallback invokes the ess.CreateScalingRule API asynchronously +// api document: https://help.aliyun.com/api/ess/createscalingrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateScalingRuleWithCallback(request *CreateScalingRuleRequest, callback func(response *CreateScalingRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateScalingRuleResponse + var err error + defer close(result) + response, err = client.CreateScalingRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateScalingRuleRequest is the request struct for api CreateScalingRule +type CreateScalingRuleRequest struct { + *requests.RpcRequest + ScalingRuleName string `position:"Query" name:"ScalingRuleName"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + AdjustmentValue requests.Integer `position:"Query" name:"AdjustmentValue"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Cooldown requests.Integer `position:"Query" name:"Cooldown"` + AdjustmentType string `position:"Query" name:"AdjustmentType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// CreateScalingRuleResponse is the response struct for api CreateScalingRule +type CreateScalingRuleResponse struct { + *responses.BaseResponse + ScalingRuleId string `json:"ScalingRuleId" xml:"ScalingRuleId"` + ScalingRuleAri string `json:"ScalingRuleAri" xml:"ScalingRuleAri"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateScalingRuleRequest creates a request to invoke CreateScalingRule API +func CreateCreateScalingRuleRequest() (request *CreateScalingRuleRequest) { + request = &CreateScalingRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "CreateScalingRule", "ess", "openAPI") + return +} + +// CreateCreateScalingRuleResponse creates a response to parse from CreateScalingRule response +func CreateCreateScalingRuleResponse() (response *CreateScalingRuleResponse) { + response = &CreateScalingRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_scheduled_task.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_scheduled_task.go new file mode 100755 index 0000000..cfd2d03 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/create_scheduled_task.go @@ -0,0 +1,115 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateScheduledTask invokes the ess.CreateScheduledTask API synchronously +// api document: https://help.aliyun.com/api/ess/createscheduledtask.html +func (client *Client) CreateScheduledTask(request *CreateScheduledTaskRequest) (response *CreateScheduledTaskResponse, err error) { + response = CreateCreateScheduledTaskResponse() + err = client.DoAction(request, response) + return +} + +// CreateScheduledTaskWithChan invokes the ess.CreateScheduledTask API asynchronously +// api document: https://help.aliyun.com/api/ess/createscheduledtask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateScheduledTaskWithChan(request *CreateScheduledTaskRequest) (<-chan *CreateScheduledTaskResponse, <-chan error) { + responseChan := make(chan *CreateScheduledTaskResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateScheduledTask(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateScheduledTaskWithCallback invokes the ess.CreateScheduledTask API asynchronously +// api document: https://help.aliyun.com/api/ess/createscheduledtask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateScheduledTaskWithCallback(request *CreateScheduledTaskRequest, callback func(response *CreateScheduledTaskResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateScheduledTaskResponse + var err error + defer close(result) + response, err = client.CreateScheduledTask(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateScheduledTaskRequest is the request struct for api CreateScheduledTask +type CreateScheduledTaskRequest struct { + *requests.RpcRequest + LaunchTime string `position:"Query" name:"LaunchTime"` + ScheduledAction string `position:"Query" name:"ScheduledAction"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Description string `position:"Query" name:"Description"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + RecurrenceValue string `position:"Query" name:"RecurrenceValue"` + LaunchExpirationTime requests.Integer `position:"Query" name:"LaunchExpirationTime"` + RecurrenceEndTime string `position:"Query" name:"RecurrenceEndTime"` + ScheduledTaskName string `position:"Query" name:"ScheduledTaskName"` + TaskEnabled requests.Boolean `position:"Query" name:"TaskEnabled"` + RecurrenceType string `position:"Query" name:"RecurrenceType"` +} + +// CreateScheduledTaskResponse is the response struct for api CreateScheduledTask +type CreateScheduledTaskResponse struct { + *responses.BaseResponse + ScheduledTaskId string `json:"ScheduledTaskId" xml:"ScheduledTaskId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateScheduledTaskRequest creates a request to invoke CreateScheduledTask API +func CreateCreateScheduledTaskRequest() (request *CreateScheduledTaskRequest) { + request = &CreateScheduledTaskRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "CreateScheduledTask", "ess", "openAPI") + return +} + +// CreateCreateScheduledTaskResponse creates a response to parse from CreateScheduledTask response +func CreateCreateScheduledTaskResponse() (response *CreateScheduledTaskResponse) { + response = &CreateScheduledTaskResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/deactivate_scaling_configuration.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/deactivate_scaling_configuration.go new file mode 100755 index 0000000..704a4a6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/deactivate_scaling_configuration.go @@ -0,0 +1,106 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeactivateScalingConfiguration invokes the ess.DeactivateScalingConfiguration API synchronously +// api document: https://help.aliyun.com/api/ess/deactivatescalingconfiguration.html +func (client *Client) DeactivateScalingConfiguration(request *DeactivateScalingConfigurationRequest) (response *DeactivateScalingConfigurationResponse, err error) { + response = CreateDeactivateScalingConfigurationResponse() + err = client.DoAction(request, response) + return +} + +// DeactivateScalingConfigurationWithChan invokes the ess.DeactivateScalingConfiguration API asynchronously +// api document: https://help.aliyun.com/api/ess/deactivatescalingconfiguration.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeactivateScalingConfigurationWithChan(request *DeactivateScalingConfigurationRequest) (<-chan *DeactivateScalingConfigurationResponse, <-chan error) { + responseChan := make(chan *DeactivateScalingConfigurationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeactivateScalingConfiguration(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeactivateScalingConfigurationWithCallback invokes the ess.DeactivateScalingConfiguration API asynchronously +// api document: https://help.aliyun.com/api/ess/deactivatescalingconfiguration.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeactivateScalingConfigurationWithCallback(request *DeactivateScalingConfigurationRequest, callback func(response *DeactivateScalingConfigurationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeactivateScalingConfigurationResponse + var err error + defer close(result) + response, err = client.DeactivateScalingConfiguration(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeactivateScalingConfigurationRequest is the request struct for api DeactivateScalingConfiguration +type DeactivateScalingConfigurationRequest struct { + *requests.RpcRequest + ScalingConfigurationId string `position:"Query" name:"ScalingConfigurationId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeactivateScalingConfigurationResponse is the response struct for api DeactivateScalingConfiguration +type DeactivateScalingConfigurationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeactivateScalingConfigurationRequest creates a request to invoke DeactivateScalingConfiguration API +func CreateDeactivateScalingConfigurationRequest() (request *DeactivateScalingConfigurationRequest) { + request = &DeactivateScalingConfigurationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DeactivateScalingConfiguration", "ess", "openAPI") + return +} + +// CreateDeactivateScalingConfigurationResponse creates a response to parse from DeactivateScalingConfiguration response +func CreateDeactivateScalingConfigurationResponse() (response *DeactivateScalingConfigurationResponse) { + response = &DeactivateScalingConfigurationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_lifecycle_hook.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_lifecycle_hook.go new file mode 100755 index 0000000..03df344 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_lifecycle_hook.go @@ -0,0 +1,108 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLifecycleHook invokes the ess.DeleteLifecycleHook API synchronously +// api document: https://help.aliyun.com/api/ess/deletelifecyclehook.html +func (client *Client) DeleteLifecycleHook(request *DeleteLifecycleHookRequest) (response *DeleteLifecycleHookResponse, err error) { + response = CreateDeleteLifecycleHookResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLifecycleHookWithChan invokes the ess.DeleteLifecycleHook API asynchronously +// api document: https://help.aliyun.com/api/ess/deletelifecyclehook.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLifecycleHookWithChan(request *DeleteLifecycleHookRequest) (<-chan *DeleteLifecycleHookResponse, <-chan error) { + responseChan := make(chan *DeleteLifecycleHookResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLifecycleHook(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLifecycleHookWithCallback invokes the ess.DeleteLifecycleHook API asynchronously +// api document: https://help.aliyun.com/api/ess/deletelifecyclehook.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLifecycleHookWithCallback(request *DeleteLifecycleHookRequest, callback func(response *DeleteLifecycleHookResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLifecycleHookResponse + var err error + defer close(result) + response, err = client.DeleteLifecycleHook(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLifecycleHookRequest is the request struct for api DeleteLifecycleHook +type DeleteLifecycleHookRequest struct { + *requests.RpcRequest + LifecycleHookName string `position:"Query" name:"LifecycleHookName"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + LifecycleHookId string `position:"Query" name:"LifecycleHookId"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteLifecycleHookResponse is the response struct for api DeleteLifecycleHook +type DeleteLifecycleHookResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLifecycleHookRequest creates a request to invoke DeleteLifecycleHook API +func CreateDeleteLifecycleHookRequest() (request *DeleteLifecycleHookRequest) { + request = &DeleteLifecycleHookRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DeleteLifecycleHook", "ess", "openAPI") + return +} + +// CreateDeleteLifecycleHookResponse creates a response to parse from DeleteLifecycleHook response +func CreateDeleteLifecycleHookResponse() (response *DeleteLifecycleHookResponse) { + response = &DeleteLifecycleHookResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_notification_configuration.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_notification_configuration.go new file mode 100755 index 0000000..f896c9b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_notification_configuration.go @@ -0,0 +1,106 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteNotificationConfiguration invokes the ess.DeleteNotificationConfiguration API synchronously +// api document: https://help.aliyun.com/api/ess/deletenotificationconfiguration.html +func (client *Client) DeleteNotificationConfiguration(request *DeleteNotificationConfigurationRequest) (response *DeleteNotificationConfigurationResponse, err error) { + response = CreateDeleteNotificationConfigurationResponse() + err = client.DoAction(request, response) + return +} + +// DeleteNotificationConfigurationWithChan invokes the ess.DeleteNotificationConfiguration API asynchronously +// api document: https://help.aliyun.com/api/ess/deletenotificationconfiguration.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteNotificationConfigurationWithChan(request *DeleteNotificationConfigurationRequest) (<-chan *DeleteNotificationConfigurationResponse, <-chan error) { + responseChan := make(chan *DeleteNotificationConfigurationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteNotificationConfiguration(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteNotificationConfigurationWithCallback invokes the ess.DeleteNotificationConfiguration API asynchronously +// api document: https://help.aliyun.com/api/ess/deletenotificationconfiguration.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteNotificationConfigurationWithCallback(request *DeleteNotificationConfigurationRequest, callback func(response *DeleteNotificationConfigurationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteNotificationConfigurationResponse + var err error + defer close(result) + response, err = client.DeleteNotificationConfiguration(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteNotificationConfigurationRequest is the request struct for api DeleteNotificationConfiguration +type DeleteNotificationConfigurationRequest struct { + *requests.RpcRequest + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + NotificationArn string `position:"Query" name:"NotificationArn"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteNotificationConfigurationResponse is the response struct for api DeleteNotificationConfiguration +type DeleteNotificationConfigurationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteNotificationConfigurationRequest creates a request to invoke DeleteNotificationConfiguration API +func CreateDeleteNotificationConfigurationRequest() (request *DeleteNotificationConfigurationRequest) { + request = &DeleteNotificationConfigurationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DeleteNotificationConfiguration", "ess", "openAPI") + return +} + +// CreateDeleteNotificationConfigurationResponse creates a response to parse from DeleteNotificationConfiguration response +func CreateDeleteNotificationConfigurationResponse() (response *DeleteNotificationConfigurationResponse) { + response = &DeleteNotificationConfigurationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_scaling_configuration.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_scaling_configuration.go new file mode 100755 index 0000000..8a88512 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_scaling_configuration.go @@ -0,0 +1,106 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteScalingConfiguration invokes the ess.DeleteScalingConfiguration API synchronously +// api document: https://help.aliyun.com/api/ess/deletescalingconfiguration.html +func (client *Client) DeleteScalingConfiguration(request *DeleteScalingConfigurationRequest) (response *DeleteScalingConfigurationResponse, err error) { + response = CreateDeleteScalingConfigurationResponse() + err = client.DoAction(request, response) + return +} + +// DeleteScalingConfigurationWithChan invokes the ess.DeleteScalingConfiguration API asynchronously +// api document: https://help.aliyun.com/api/ess/deletescalingconfiguration.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteScalingConfigurationWithChan(request *DeleteScalingConfigurationRequest) (<-chan *DeleteScalingConfigurationResponse, <-chan error) { + responseChan := make(chan *DeleteScalingConfigurationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteScalingConfiguration(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteScalingConfigurationWithCallback invokes the ess.DeleteScalingConfiguration API asynchronously +// api document: https://help.aliyun.com/api/ess/deletescalingconfiguration.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteScalingConfigurationWithCallback(request *DeleteScalingConfigurationRequest, callback func(response *DeleteScalingConfigurationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteScalingConfigurationResponse + var err error + defer close(result) + response, err = client.DeleteScalingConfiguration(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteScalingConfigurationRequest is the request struct for api DeleteScalingConfiguration +type DeleteScalingConfigurationRequest struct { + *requests.RpcRequest + ScalingConfigurationId string `position:"Query" name:"ScalingConfigurationId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteScalingConfigurationResponse is the response struct for api DeleteScalingConfiguration +type DeleteScalingConfigurationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteScalingConfigurationRequest creates a request to invoke DeleteScalingConfiguration API +func CreateDeleteScalingConfigurationRequest() (request *DeleteScalingConfigurationRequest) { + request = &DeleteScalingConfigurationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DeleteScalingConfiguration", "ess", "openAPI") + return +} + +// CreateDeleteScalingConfigurationResponse creates a response to parse from DeleteScalingConfiguration response +func CreateDeleteScalingConfigurationResponse() (response *DeleteScalingConfigurationResponse) { + response = &DeleteScalingConfigurationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_scaling_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_scaling_group.go new file mode 100755 index 0000000..9436051 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_scaling_group.go @@ -0,0 +1,107 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteScalingGroup invokes the ess.DeleteScalingGroup API synchronously +// api document: https://help.aliyun.com/api/ess/deletescalinggroup.html +func (client *Client) DeleteScalingGroup(request *DeleteScalingGroupRequest) (response *DeleteScalingGroupResponse, err error) { + response = CreateDeleteScalingGroupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteScalingGroupWithChan invokes the ess.DeleteScalingGroup API asynchronously +// api document: https://help.aliyun.com/api/ess/deletescalinggroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteScalingGroupWithChan(request *DeleteScalingGroupRequest) (<-chan *DeleteScalingGroupResponse, <-chan error) { + responseChan := make(chan *DeleteScalingGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteScalingGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteScalingGroupWithCallback invokes the ess.DeleteScalingGroup API asynchronously +// api document: https://help.aliyun.com/api/ess/deletescalinggroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteScalingGroupWithCallback(request *DeleteScalingGroupRequest, callback func(response *DeleteScalingGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteScalingGroupResponse + var err error + defer close(result) + response, err = client.DeleteScalingGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteScalingGroupRequest is the request struct for api DeleteScalingGroup +type DeleteScalingGroupRequest struct { + *requests.RpcRequest + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + ForceDelete requests.Boolean `position:"Query" name:"ForceDelete"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteScalingGroupResponse is the response struct for api DeleteScalingGroup +type DeleteScalingGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteScalingGroupRequest creates a request to invoke DeleteScalingGroup API +func CreateDeleteScalingGroupRequest() (request *DeleteScalingGroupRequest) { + request = &DeleteScalingGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DeleteScalingGroup", "ess", "openAPI") + return +} + +// CreateDeleteScalingGroupResponse creates a response to parse from DeleteScalingGroup response +func CreateDeleteScalingGroupResponse() (response *DeleteScalingGroupResponse) { + response = &DeleteScalingGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_scaling_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_scaling_rule.go new file mode 100755 index 0000000..7ebd9e2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_scaling_rule.go @@ -0,0 +1,106 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteScalingRule invokes the ess.DeleteScalingRule API synchronously +// api document: https://help.aliyun.com/api/ess/deletescalingrule.html +func (client *Client) DeleteScalingRule(request *DeleteScalingRuleRequest) (response *DeleteScalingRuleResponse, err error) { + response = CreateDeleteScalingRuleResponse() + err = client.DoAction(request, response) + return +} + +// DeleteScalingRuleWithChan invokes the ess.DeleteScalingRule API asynchronously +// api document: https://help.aliyun.com/api/ess/deletescalingrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteScalingRuleWithChan(request *DeleteScalingRuleRequest) (<-chan *DeleteScalingRuleResponse, <-chan error) { + responseChan := make(chan *DeleteScalingRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteScalingRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteScalingRuleWithCallback invokes the ess.DeleteScalingRule API asynchronously +// api document: https://help.aliyun.com/api/ess/deletescalingrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteScalingRuleWithCallback(request *DeleteScalingRuleRequest, callback func(response *DeleteScalingRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteScalingRuleResponse + var err error + defer close(result) + response, err = client.DeleteScalingRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteScalingRuleRequest is the request struct for api DeleteScalingRule +type DeleteScalingRuleRequest struct { + *requests.RpcRequest + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ScalingRuleId string `position:"Query" name:"ScalingRuleId"` +} + +// DeleteScalingRuleResponse is the response struct for api DeleteScalingRule +type DeleteScalingRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteScalingRuleRequest creates a request to invoke DeleteScalingRule API +func CreateDeleteScalingRuleRequest() (request *DeleteScalingRuleRequest) { + request = &DeleteScalingRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DeleteScalingRule", "ess", "openAPI") + return +} + +// CreateDeleteScalingRuleResponse creates a response to parse from DeleteScalingRule response +func CreateDeleteScalingRuleResponse() (response *DeleteScalingRuleResponse) { + response = &DeleteScalingRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_scheduled_task.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_scheduled_task.go new file mode 100755 index 0000000..17e37f2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/delete_scheduled_task.go @@ -0,0 +1,106 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteScheduledTask invokes the ess.DeleteScheduledTask API synchronously +// api document: https://help.aliyun.com/api/ess/deletescheduledtask.html +func (client *Client) DeleteScheduledTask(request *DeleteScheduledTaskRequest) (response *DeleteScheduledTaskResponse, err error) { + response = CreateDeleteScheduledTaskResponse() + err = client.DoAction(request, response) + return +} + +// DeleteScheduledTaskWithChan invokes the ess.DeleteScheduledTask API asynchronously +// api document: https://help.aliyun.com/api/ess/deletescheduledtask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteScheduledTaskWithChan(request *DeleteScheduledTaskRequest) (<-chan *DeleteScheduledTaskResponse, <-chan error) { + responseChan := make(chan *DeleteScheduledTaskResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteScheduledTask(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteScheduledTaskWithCallback invokes the ess.DeleteScheduledTask API asynchronously +// api document: https://help.aliyun.com/api/ess/deletescheduledtask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteScheduledTaskWithCallback(request *DeleteScheduledTaskRequest, callback func(response *DeleteScheduledTaskResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteScheduledTaskResponse + var err error + defer close(result) + response, err = client.DeleteScheduledTask(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteScheduledTaskRequest is the request struct for api DeleteScheduledTask +type DeleteScheduledTaskRequest struct { + *requests.RpcRequest + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ScheduledTaskId string `position:"Query" name:"ScheduledTaskId"` +} + +// DeleteScheduledTaskResponse is the response struct for api DeleteScheduledTask +type DeleteScheduledTaskResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteScheduledTaskRequest creates a request to invoke DeleteScheduledTask API +func CreateDeleteScheduledTaskRequest() (request *DeleteScheduledTaskRequest) { + request = &DeleteScheduledTaskRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DeleteScheduledTask", "ess", "openAPI") + return +} + +// CreateDeleteScheduledTaskResponse creates a response to parse from DeleteScheduledTask response +func CreateDeleteScheduledTaskResponse() (response *DeleteScheduledTaskResponse) { + response = &DeleteScheduledTaskResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_account_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_account_attributes.go new file mode 100755 index 0000000..02094df --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_account_attributes.go @@ -0,0 +1,112 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAccountAttributes invokes the ess.DescribeAccountAttributes API synchronously +// api document: https://help.aliyun.com/api/ess/describeaccountattributes.html +func (client *Client) DescribeAccountAttributes(request *DescribeAccountAttributesRequest) (response *DescribeAccountAttributesResponse, err error) { + response = CreateDescribeAccountAttributesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAccountAttributesWithChan invokes the ess.DescribeAccountAttributes API asynchronously +// api document: https://help.aliyun.com/api/ess/describeaccountattributes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccountAttributesWithChan(request *DescribeAccountAttributesRequest) (<-chan *DescribeAccountAttributesResponse, <-chan error) { + responseChan := make(chan *DescribeAccountAttributesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAccountAttributes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAccountAttributesWithCallback invokes the ess.DescribeAccountAttributes API asynchronously +// api document: https://help.aliyun.com/api/ess/describeaccountattributes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccountAttributesWithCallback(request *DescribeAccountAttributesRequest, callback func(response *DescribeAccountAttributesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAccountAttributesResponse + var err error + defer close(result) + response, err = client.DescribeAccountAttributes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAccountAttributesRequest is the request struct for api DescribeAccountAttributes +type DescribeAccountAttributesRequest struct { + *requests.RpcRequest + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeAccountAttributesResponse is the response struct for api DescribeAccountAttributes +type DescribeAccountAttributesResponse struct { + *responses.BaseResponse + MaxNumberOfScalingGroups int `json:"MaxNumberOfScalingGroups" xml:"MaxNumberOfScalingGroups"` + MaxNumberOfScalingConfigurations int `json:"MaxNumberOfScalingConfigurations" xml:"MaxNumberOfScalingConfigurations"` + MaxNumberOfScalingRules int `json:"MaxNumberOfScalingRules" xml:"MaxNumberOfScalingRules"` + MaxNumberOfScheduledTasks int `json:"MaxNumberOfScheduledTasks" xml:"MaxNumberOfScheduledTasks"` + MaxNumberOfScalingInstances int `json:"MaxNumberOfScalingInstances" xml:"MaxNumberOfScalingInstances"` + MaxNumberOfDBInstances int `json:"MaxNumberOfDBInstances" xml:"MaxNumberOfDBInstances"` + MaxNumberOfLoadBalancers int `json:"MaxNumberOfLoadBalancers" xml:"MaxNumberOfLoadBalancers"` + MaxNumberOfMinSize int `json:"MaxNumberOfMinSize" xml:"MaxNumberOfMinSize"` + MaxNumberOfMaxSize int `json:"MaxNumberOfMaxSize" xml:"MaxNumberOfMaxSize"` +} + +// CreateDescribeAccountAttributesRequest creates a request to invoke DescribeAccountAttributes API +func CreateDescribeAccountAttributesRequest() (request *DescribeAccountAttributesRequest) { + request = &DescribeAccountAttributesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DescribeAccountAttributes", "ess", "openAPI") + return +} + +// CreateDescribeAccountAttributesResponse creates a response to parse from DescribeAccountAttributes response +func CreateDescribeAccountAttributesResponse() (response *DescribeAccountAttributesResponse) { + response = &DescribeAccountAttributesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_alert_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_alert_config.go new file mode 100755 index 0000000..3ff35dc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_alert_config.go @@ -0,0 +1,108 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAlertConfig invokes the ess.DescribeAlertConfig API synchronously +// api document: https://help.aliyun.com/api/ess/describealertconfig.html +func (client *Client) DescribeAlertConfig(request *DescribeAlertConfigRequest) (response *DescribeAlertConfigResponse, err error) { + response = CreateDescribeAlertConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAlertConfigWithChan invokes the ess.DescribeAlertConfig API asynchronously +// api document: https://help.aliyun.com/api/ess/describealertconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAlertConfigWithChan(request *DescribeAlertConfigRequest) (<-chan *DescribeAlertConfigResponse, <-chan error) { + responseChan := make(chan *DescribeAlertConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAlertConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAlertConfigWithCallback invokes the ess.DescribeAlertConfig API asynchronously +// api document: https://help.aliyun.com/api/ess/describealertconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAlertConfigWithCallback(request *DescribeAlertConfigRequest, callback func(response *DescribeAlertConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAlertConfigResponse + var err error + defer close(result) + response, err = client.DescribeAlertConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAlertConfigRequest is the request struct for api DescribeAlertConfig +type DescribeAlertConfigRequest struct { + *requests.RpcRequest + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeAlertConfigResponse is the response struct for api DescribeAlertConfig +type DescribeAlertConfigResponse struct { + *responses.BaseResponse + SuccessConfig int `json:"SuccessConfig" xml:"SuccessConfig"` + FailConfig int `json:"FailConfig" xml:"FailConfig"` + RejectConfig int `json:"RejectConfig" xml:"RejectConfig"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDescribeAlertConfigRequest creates a request to invoke DescribeAlertConfig API +func CreateDescribeAlertConfigRequest() (request *DescribeAlertConfigRequest) { + request = &DescribeAlertConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DescribeAlertConfig", "ess", "openAPI") + return +} + +// CreateDescribeAlertConfigResponse creates a response to parse from DescribeAlertConfig response +func CreateDescribeAlertConfigResponse() (response *DescribeAlertConfigResponse) { + response = &DescribeAlertConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_capacity_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_capacity_history.go new file mode 100755 index 0000000..eb3ed15 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_capacity_history.go @@ -0,0 +1,113 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCapacityHistory invokes the ess.DescribeCapacityHistory API synchronously +// api document: https://help.aliyun.com/api/ess/describecapacityhistory.html +func (client *Client) DescribeCapacityHistory(request *DescribeCapacityHistoryRequest) (response *DescribeCapacityHistoryResponse, err error) { + response = CreateDescribeCapacityHistoryResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCapacityHistoryWithChan invokes the ess.DescribeCapacityHistory API asynchronously +// api document: https://help.aliyun.com/api/ess/describecapacityhistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCapacityHistoryWithChan(request *DescribeCapacityHistoryRequest) (<-chan *DescribeCapacityHistoryResponse, <-chan error) { + responseChan := make(chan *DescribeCapacityHistoryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCapacityHistory(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCapacityHistoryWithCallback invokes the ess.DescribeCapacityHistory API asynchronously +// api document: https://help.aliyun.com/api/ess/describecapacityhistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCapacityHistoryWithCallback(request *DescribeCapacityHistoryRequest, callback func(response *DescribeCapacityHistoryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCapacityHistoryResponse + var err error + defer close(result) + response, err = client.DescribeCapacityHistory(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCapacityHistoryRequest is the request struct for api DescribeCapacityHistory +type DescribeCapacityHistoryRequest struct { + *requests.RpcRequest + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeCapacityHistoryResponse is the response struct for api DescribeCapacityHistory +type DescribeCapacityHistoryResponse 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"` + CapacityHistoryItems CapacityHistoryItems `json:"CapacityHistoryItems" xml:"CapacityHistoryItems"` +} + +// CreateDescribeCapacityHistoryRequest creates a request to invoke DescribeCapacityHistory API +func CreateDescribeCapacityHistoryRequest() (request *DescribeCapacityHistoryRequest) { + request = &DescribeCapacityHistoryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DescribeCapacityHistory", "ess", "openAPI") + return +} + +// CreateDescribeCapacityHistoryResponse creates a response to parse from DescribeCapacityHistory response +func CreateDescribeCapacityHistoryResponse() (response *DescribeCapacityHistoryResponse) { + response = &DescribeCapacityHistoryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_lifecycle_hooks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_lifecycle_hooks.go new file mode 100755 index 0000000..484ebe8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_lifecycle_hooks.go @@ -0,0 +1,114 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLifecycleHooks invokes the ess.DescribeLifecycleHooks API synchronously +// api document: https://help.aliyun.com/api/ess/describelifecyclehooks.html +func (client *Client) DescribeLifecycleHooks(request *DescribeLifecycleHooksRequest) (response *DescribeLifecycleHooksResponse, err error) { + response = CreateDescribeLifecycleHooksResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLifecycleHooksWithChan invokes the ess.DescribeLifecycleHooks API asynchronously +// api document: https://help.aliyun.com/api/ess/describelifecyclehooks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLifecycleHooksWithChan(request *DescribeLifecycleHooksRequest) (<-chan *DescribeLifecycleHooksResponse, <-chan error) { + responseChan := make(chan *DescribeLifecycleHooksResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLifecycleHooks(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLifecycleHooksWithCallback invokes the ess.DescribeLifecycleHooks API asynchronously +// api document: https://help.aliyun.com/api/ess/describelifecyclehooks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLifecycleHooksWithCallback(request *DescribeLifecycleHooksRequest, callback func(response *DescribeLifecycleHooksResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLifecycleHooksResponse + var err error + defer close(result) + response, err = client.DescribeLifecycleHooks(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLifecycleHooksRequest is the request struct for api DescribeLifecycleHooks +type DescribeLifecycleHooksRequest struct { + *requests.RpcRequest + LifecycleHookName string `position:"Query" name:"LifecycleHookName"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + LifecycleHookId *[]string `position:"Query" name:"LifecycleHookId" type:"Repeated"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeLifecycleHooksResponse is the response struct for api DescribeLifecycleHooks +type DescribeLifecycleHooksResponse struct { + *responses.BaseResponse + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + LifecycleHooks LifecycleHooks `json:"LifecycleHooks" xml:"LifecycleHooks"` +} + +// CreateDescribeLifecycleHooksRequest creates a request to invoke DescribeLifecycleHooks API +func CreateDescribeLifecycleHooksRequest() (request *DescribeLifecycleHooksRequest) { + request = &DescribeLifecycleHooksRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DescribeLifecycleHooks", "ess", "openAPI") + return +} + +// CreateDescribeLifecycleHooksResponse creates a response to parse from DescribeLifecycleHooks response +func CreateDescribeLifecycleHooksResponse() (response *DescribeLifecycleHooksResponse) { + response = &DescribeLifecycleHooksResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_limitation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_limitation.go new file mode 100755 index 0000000..d246f71 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_limitation.go @@ -0,0 +1,112 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLimitation invokes the ess.DescribeLimitation API synchronously +// api document: https://help.aliyun.com/api/ess/describelimitation.html +func (client *Client) DescribeLimitation(request *DescribeLimitationRequest) (response *DescribeLimitationResponse, err error) { + response = CreateDescribeLimitationResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLimitationWithChan invokes the ess.DescribeLimitation API asynchronously +// api document: https://help.aliyun.com/api/ess/describelimitation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLimitationWithChan(request *DescribeLimitationRequest) (<-chan *DescribeLimitationResponse, <-chan error) { + responseChan := make(chan *DescribeLimitationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLimitation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLimitationWithCallback invokes the ess.DescribeLimitation API asynchronously +// api document: https://help.aliyun.com/api/ess/describelimitation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLimitationWithCallback(request *DescribeLimitationRequest, callback func(response *DescribeLimitationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLimitationResponse + var err error + defer close(result) + response, err = client.DescribeLimitation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLimitationRequest is the request struct for api DescribeLimitation +type DescribeLimitationRequest struct { + *requests.RpcRequest + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLimitationResponse is the response struct for api DescribeLimitation +type DescribeLimitationResponse struct { + *responses.BaseResponse + MaxNumberOfScalingGroups int `json:"MaxNumberOfScalingGroups" xml:"MaxNumberOfScalingGroups"` + MaxNumberOfScalingConfigurations int `json:"MaxNumberOfScalingConfigurations" xml:"MaxNumberOfScalingConfigurations"` + MaxNumberOfScalingRules int `json:"MaxNumberOfScalingRules" xml:"MaxNumberOfScalingRules"` + MaxNumberOfScheduledTasks int `json:"MaxNumberOfScheduledTasks" xml:"MaxNumberOfScheduledTasks"` + MaxNumberOfScalingInstances int `json:"MaxNumberOfScalingInstances" xml:"MaxNumberOfScalingInstances"` + MaxNumberOfDBInstances int `json:"MaxNumberOfDBInstances" xml:"MaxNumberOfDBInstances"` + MaxNumberOfLoadBalancers int `json:"MaxNumberOfLoadBalancers" xml:"MaxNumberOfLoadBalancers"` + MaxNumberOfMinSize int `json:"MaxNumberOfMinSize" xml:"MaxNumberOfMinSize"` + MaxNumberOfMaxSize int `json:"MaxNumberOfMaxSize" xml:"MaxNumberOfMaxSize"` +} + +// CreateDescribeLimitationRequest creates a request to invoke DescribeLimitation API +func CreateDescribeLimitationRequest() (request *DescribeLimitationRequest) { + request = &DescribeLimitationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DescribeLimitation", "ess", "openAPI") + return +} + +// CreateDescribeLimitationResponse creates a response to parse from DescribeLimitation response +func CreateDescribeLimitationResponse() (response *DescribeLimitationResponse) { + response = &DescribeLimitationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_notification_configurations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_notification_configurations.go new file mode 100755 index 0000000..cbb68b0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_notification_configurations.go @@ -0,0 +1,106 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeNotificationConfigurations invokes the ess.DescribeNotificationConfigurations API synchronously +// api document: https://help.aliyun.com/api/ess/describenotificationconfigurations.html +func (client *Client) DescribeNotificationConfigurations(request *DescribeNotificationConfigurationsRequest) (response *DescribeNotificationConfigurationsResponse, err error) { + response = CreateDescribeNotificationConfigurationsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeNotificationConfigurationsWithChan invokes the ess.DescribeNotificationConfigurations API asynchronously +// api document: https://help.aliyun.com/api/ess/describenotificationconfigurations.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeNotificationConfigurationsWithChan(request *DescribeNotificationConfigurationsRequest) (<-chan *DescribeNotificationConfigurationsResponse, <-chan error) { + responseChan := make(chan *DescribeNotificationConfigurationsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeNotificationConfigurations(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeNotificationConfigurationsWithCallback invokes the ess.DescribeNotificationConfigurations API asynchronously +// api document: https://help.aliyun.com/api/ess/describenotificationconfigurations.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeNotificationConfigurationsWithCallback(request *DescribeNotificationConfigurationsRequest, callback func(response *DescribeNotificationConfigurationsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeNotificationConfigurationsResponse + var err error + defer close(result) + response, err = client.DescribeNotificationConfigurations(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeNotificationConfigurationsRequest is the request struct for api DescribeNotificationConfigurations +type DescribeNotificationConfigurationsRequest struct { + *requests.RpcRequest + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeNotificationConfigurationsResponse is the response struct for api DescribeNotificationConfigurations +type DescribeNotificationConfigurationsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NotificationConfigurationModels NotificationConfigurationModels `json:"NotificationConfigurationModels" xml:"NotificationConfigurationModels"` +} + +// CreateDescribeNotificationConfigurationsRequest creates a request to invoke DescribeNotificationConfigurations API +func CreateDescribeNotificationConfigurationsRequest() (request *DescribeNotificationConfigurationsRequest) { + request = &DescribeNotificationConfigurationsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DescribeNotificationConfigurations", "ess", "openAPI") + return +} + +// CreateDescribeNotificationConfigurationsResponse creates a response to parse from DescribeNotificationConfigurations response +func CreateDescribeNotificationConfigurationsResponse() (response *DescribeNotificationConfigurationsResponse) { + response = &DescribeNotificationConfigurationsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_notification_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_notification_types.go new file mode 100755 index 0000000..0bb8bad --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_notification_types.go @@ -0,0 +1,105 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeNotificationTypes invokes the ess.DescribeNotificationTypes API synchronously +// api document: https://help.aliyun.com/api/ess/describenotificationtypes.html +func (client *Client) DescribeNotificationTypes(request *DescribeNotificationTypesRequest) (response *DescribeNotificationTypesResponse, err error) { + response = CreateDescribeNotificationTypesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeNotificationTypesWithChan invokes the ess.DescribeNotificationTypes API asynchronously +// api document: https://help.aliyun.com/api/ess/describenotificationtypes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeNotificationTypesWithChan(request *DescribeNotificationTypesRequest) (<-chan *DescribeNotificationTypesResponse, <-chan error) { + responseChan := make(chan *DescribeNotificationTypesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeNotificationTypes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeNotificationTypesWithCallback invokes the ess.DescribeNotificationTypes API asynchronously +// api document: https://help.aliyun.com/api/ess/describenotificationtypes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeNotificationTypesWithCallback(request *DescribeNotificationTypesRequest, callback func(response *DescribeNotificationTypesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeNotificationTypesResponse + var err error + defer close(result) + response, err = client.DescribeNotificationTypes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeNotificationTypesRequest is the request struct for api DescribeNotificationTypes +type DescribeNotificationTypesRequest struct { + *requests.RpcRequest + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeNotificationTypesResponse is the response struct for api DescribeNotificationTypes +type DescribeNotificationTypesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NotificationTypes NotificationTypesInDescribeNotificationTypes `json:"NotificationTypes" xml:"NotificationTypes"` +} + +// CreateDescribeNotificationTypesRequest creates a request to invoke DescribeNotificationTypes API +func CreateDescribeNotificationTypesRequest() (request *DescribeNotificationTypesRequest) { + request = &DescribeNotificationTypesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DescribeNotificationTypes", "ess", "openAPI") + return +} + +// CreateDescribeNotificationTypesResponse creates a response to parse from DescribeNotificationTypes response +func CreateDescribeNotificationTypesResponse() (response *DescribeNotificationTypesResponse) { + response = &DescribeNotificationTypesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_regions.go new file mode 100755 index 0000000..96174d3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_regions.go @@ -0,0 +1,105 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 ess.DescribeRegions API synchronously +// api document: https://help.aliyun.com/api/ess/describeregions.html +func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) { + response = CreateDescribeRegionsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRegionsWithChan invokes the ess.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/ess/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 ess.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/ess/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeRegionsResponse is the response struct for api DescribeRegions +type DescribeRegionsResponse struct { + *responses.BaseResponse + 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("Ess", "2014-08-28", "DescribeRegions", "ess", "openAPI") + 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/ess/describe_scaling_activities.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_activities.go new file mode 100755 index 0000000..2b26b5f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_activities.go @@ -0,0 +1,134 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScalingActivities invokes the ess.DescribeScalingActivities API synchronously +// api document: https://help.aliyun.com/api/ess/describescalingactivities.html +func (client *Client) DescribeScalingActivities(request *DescribeScalingActivitiesRequest) (response *DescribeScalingActivitiesResponse, err error) { + response = CreateDescribeScalingActivitiesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScalingActivitiesWithChan invokes the ess.DescribeScalingActivities API asynchronously +// api document: https://help.aliyun.com/api/ess/describescalingactivities.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScalingActivitiesWithChan(request *DescribeScalingActivitiesRequest) (<-chan *DescribeScalingActivitiesResponse, <-chan error) { + responseChan := make(chan *DescribeScalingActivitiesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScalingActivities(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScalingActivitiesWithCallback invokes the ess.DescribeScalingActivities API asynchronously +// api document: https://help.aliyun.com/api/ess/describescalingactivities.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScalingActivitiesWithCallback(request *DescribeScalingActivitiesRequest, callback func(response *DescribeScalingActivitiesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScalingActivitiesResponse + var err error + defer close(result) + response, err = client.DescribeScalingActivities(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScalingActivitiesRequest is the request struct for api DescribeScalingActivities +type DescribeScalingActivitiesRequest struct { + *requests.RpcRequest + ScalingActivityId9 string `position:"Query" name:"ScalingActivityId.9"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ScalingActivityId5 string `position:"Query" name:"ScalingActivityId.5"` + ScalingActivityId6 string `position:"Query" name:"ScalingActivityId.6"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + ScalingActivityId7 string `position:"Query" name:"ScalingActivityId.7"` + ScalingActivityId8 string `position:"Query" name:"ScalingActivityId.8"` + ScalingActivityId1 string `position:"Query" name:"ScalingActivityId.1"` + ScalingActivityId2 string `position:"Query" name:"ScalingActivityId.2"` + ScalingActivityId3 string `position:"Query" name:"ScalingActivityId.3"` + ScalingActivityId4 string `position:"Query" name:"ScalingActivityId.4"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + StatusCode string `position:"Query" name:"StatusCode"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ScalingActivityId11 string `position:"Query" name:"ScalingActivityId.11"` + ScalingActivityId10 string `position:"Query" name:"ScalingActivityId.10"` + ScalingActivityId13 string `position:"Query" name:"ScalingActivityId.13"` + ScalingActivityId12 string `position:"Query" name:"ScalingActivityId.12"` + ScalingActivityId15 string `position:"Query" name:"ScalingActivityId.15"` + ScalingActivityId14 string `position:"Query" name:"ScalingActivityId.14"` + ScalingActivityId17 string `position:"Query" name:"ScalingActivityId.17"` + ScalingActivityId16 string `position:"Query" name:"ScalingActivityId.16"` + ScalingActivityId19 string `position:"Query" name:"ScalingActivityId.19"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingActivityId18 string `position:"Query" name:"ScalingActivityId.18"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ScalingActivityId20 string `position:"Query" name:"ScalingActivityId.20"` +} + +// DescribeScalingActivitiesResponse is the response struct for api DescribeScalingActivities +type DescribeScalingActivitiesResponse struct { + *responses.BaseResponse + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + ScalingActivities ScalingActivities `json:"ScalingActivities" xml:"ScalingActivities"` +} + +// CreateDescribeScalingActivitiesRequest creates a request to invoke DescribeScalingActivities API +func CreateDescribeScalingActivitiesRequest() (request *DescribeScalingActivitiesRequest) { + request = &DescribeScalingActivitiesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DescribeScalingActivities", "ess", "openAPI") + return +} + +// CreateDescribeScalingActivitiesResponse creates a response to parse from DescribeScalingActivities response +func CreateDescribeScalingActivitiesResponse() (response *DescribeScalingActivitiesResponse) { + response = &DescribeScalingActivitiesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_activity_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_activity_detail.go new file mode 100755 index 0000000..a5715d9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_activity_detail.go @@ -0,0 +1,107 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScalingActivityDetail invokes the ess.DescribeScalingActivityDetail API synchronously +// api document: https://help.aliyun.com/api/ess/describescalingactivitydetail.html +func (client *Client) DescribeScalingActivityDetail(request *DescribeScalingActivityDetailRequest) (response *DescribeScalingActivityDetailResponse, err error) { + response = CreateDescribeScalingActivityDetailResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScalingActivityDetailWithChan invokes the ess.DescribeScalingActivityDetail API asynchronously +// api document: https://help.aliyun.com/api/ess/describescalingactivitydetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScalingActivityDetailWithChan(request *DescribeScalingActivityDetailRequest) (<-chan *DescribeScalingActivityDetailResponse, <-chan error) { + responseChan := make(chan *DescribeScalingActivityDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScalingActivityDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScalingActivityDetailWithCallback invokes the ess.DescribeScalingActivityDetail API asynchronously +// api document: https://help.aliyun.com/api/ess/describescalingactivitydetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScalingActivityDetailWithCallback(request *DescribeScalingActivityDetailRequest, callback func(response *DescribeScalingActivityDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScalingActivityDetailResponse + var err error + defer close(result) + response, err = client.DescribeScalingActivityDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScalingActivityDetailRequest is the request struct for api DescribeScalingActivityDetail +type DescribeScalingActivityDetailRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ScalingActivityId string `position:"Query" name:"ScalingActivityId"` +} + +// DescribeScalingActivityDetailResponse is the response struct for api DescribeScalingActivityDetail +type DescribeScalingActivityDetailResponse struct { + *responses.BaseResponse + ScalingActivityId string `json:"ScalingActivityId" xml:"ScalingActivityId"` + Detail string `json:"Detail" xml:"Detail"` +} + +// CreateDescribeScalingActivityDetailRequest creates a request to invoke DescribeScalingActivityDetail API +func CreateDescribeScalingActivityDetailRequest() (request *DescribeScalingActivityDetailRequest) { + request = &DescribeScalingActivityDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DescribeScalingActivityDetail", "ess", "openAPI") + return +} + +// CreateDescribeScalingActivityDetailResponse creates a response to parse from DescribeScalingActivityDetail response +func CreateDescribeScalingActivityDetailResponse() (response *DescribeScalingActivityDetailResponse) { + response = &DescribeScalingActivityDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_configurations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_configurations.go new file mode 100755 index 0000000..bb20bd5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_configurations.go @@ -0,0 +1,133 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScalingConfigurations invokes the ess.DescribeScalingConfigurations API synchronously +// api document: https://help.aliyun.com/api/ess/describescalingconfigurations.html +func (client *Client) DescribeScalingConfigurations(request *DescribeScalingConfigurationsRequest) (response *DescribeScalingConfigurationsResponse, err error) { + response = CreateDescribeScalingConfigurationsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScalingConfigurationsWithChan invokes the ess.DescribeScalingConfigurations API asynchronously +// api document: https://help.aliyun.com/api/ess/describescalingconfigurations.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScalingConfigurationsWithChan(request *DescribeScalingConfigurationsRequest) (<-chan *DescribeScalingConfigurationsResponse, <-chan error) { + responseChan := make(chan *DescribeScalingConfigurationsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScalingConfigurations(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScalingConfigurationsWithCallback invokes the ess.DescribeScalingConfigurations API asynchronously +// api document: https://help.aliyun.com/api/ess/describescalingconfigurations.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScalingConfigurationsWithCallback(request *DescribeScalingConfigurationsRequest, callback func(response *DescribeScalingConfigurationsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScalingConfigurationsResponse + var err error + defer close(result) + response, err = client.DescribeScalingConfigurations(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScalingConfigurationsRequest is the request struct for api DescribeScalingConfigurations +type DescribeScalingConfigurationsRequest struct { + *requests.RpcRequest + ScalingConfigurationId6 string `position:"Query" name:"ScalingConfigurationId.6"` + ScalingConfigurationId7 string `position:"Query" name:"ScalingConfigurationId.7"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ScalingConfigurationId4 string `position:"Query" name:"ScalingConfigurationId.4"` + ScalingConfigurationId5 string `position:"Query" name:"ScalingConfigurationId.5"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + ScalingConfigurationId8 string `position:"Query" name:"ScalingConfigurationId.8"` + ScalingConfigurationId9 string `position:"Query" name:"ScalingConfigurationId.9"` + ScalingConfigurationId10 string `position:"Query" name:"ScalingConfigurationId.10"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ScalingConfigurationName2 string `position:"Query" name:"ScalingConfigurationName.2"` + ScalingConfigurationName3 string `position:"Query" name:"ScalingConfigurationName.3"` + ScalingConfigurationName1 string `position:"Query" name:"ScalingConfigurationName.1"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ScalingConfigurationId2 string `position:"Query" name:"ScalingConfigurationId.2"` + ScalingConfigurationId3 string `position:"Query" name:"ScalingConfigurationId.3"` + ScalingConfigurationId1 string `position:"Query" name:"ScalingConfigurationId.1"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ScalingConfigurationName6 string `position:"Query" name:"ScalingConfigurationName.6"` + ScalingConfigurationName7 string `position:"Query" name:"ScalingConfigurationName.7"` + ScalingConfigurationName4 string `position:"Query" name:"ScalingConfigurationName.4"` + ScalingConfigurationName5 string `position:"Query" name:"ScalingConfigurationName.5"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ScalingConfigurationName8 string `position:"Query" name:"ScalingConfigurationName.8"` + ScalingConfigurationName9 string `position:"Query" name:"ScalingConfigurationName.9"` + ScalingConfigurationName10 string `position:"Query" name:"ScalingConfigurationName.10"` +} + +// DescribeScalingConfigurationsResponse is the response struct for api DescribeScalingConfigurations +type DescribeScalingConfigurationsResponse struct { + *responses.BaseResponse + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + ScalingConfigurations ScalingConfigurations `json:"ScalingConfigurations" xml:"ScalingConfigurations"` +} + +// CreateDescribeScalingConfigurationsRequest creates a request to invoke DescribeScalingConfigurations API +func CreateDescribeScalingConfigurationsRequest() (request *DescribeScalingConfigurationsRequest) { + request = &DescribeScalingConfigurationsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DescribeScalingConfigurations", "ess", "openAPI") + return +} + +// CreateDescribeScalingConfigurationsResponse creates a response to parse from DescribeScalingConfigurations response +func CreateDescribeScalingConfigurationsResponse() (response *DescribeScalingConfigurationsResponse) { + response = &DescribeScalingConfigurationsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_groups.go new file mode 100755 index 0000000..9c2f6fd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_groups.go @@ -0,0 +1,152 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScalingGroups invokes the ess.DescribeScalingGroups API synchronously +// api document: https://help.aliyun.com/api/ess/describescalinggroups.html +func (client *Client) DescribeScalingGroups(request *DescribeScalingGroupsRequest) (response *DescribeScalingGroupsResponse, err error) { + response = CreateDescribeScalingGroupsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScalingGroupsWithChan invokes the ess.DescribeScalingGroups API asynchronously +// api document: https://help.aliyun.com/api/ess/describescalinggroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScalingGroupsWithChan(request *DescribeScalingGroupsRequest) (<-chan *DescribeScalingGroupsResponse, <-chan error) { + responseChan := make(chan *DescribeScalingGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScalingGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScalingGroupsWithCallback invokes the ess.DescribeScalingGroups API asynchronously +// api document: https://help.aliyun.com/api/ess/describescalinggroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScalingGroupsWithCallback(request *DescribeScalingGroupsRequest, callback func(response *DescribeScalingGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScalingGroupsResponse + var err error + defer close(result) + response, err = client.DescribeScalingGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScalingGroupsRequest is the request struct for api DescribeScalingGroups +type DescribeScalingGroupsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ScalingGroupId10 string `position:"Query" name:"ScalingGroupId.10"` + ScalingGroupId12 string `position:"Query" name:"ScalingGroupId.12"` + ScalingGroupId13 string `position:"Query" name:"ScalingGroupId.13"` + ScalingGroupId14 string `position:"Query" name:"ScalingGroupId.14"` + ScalingGroupId15 string `position:"Query" name:"ScalingGroupId.15"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ScalingGroupName20 string `position:"Query" name:"ScalingGroupName.20"` + ScalingGroupName19 string `position:"Query" name:"ScalingGroupName.19"` + ScalingGroupId20 string `position:"Query" name:"ScalingGroupId.20"` + ScalingGroupName18 string `position:"Query" name:"ScalingGroupName.18"` + ScalingGroupName17 string `position:"Query" name:"ScalingGroupName.17"` + ScalingGroupName16 string `position:"Query" name:"ScalingGroupName.16"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupName string `position:"Query" name:"ScalingGroupName"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ScalingGroupName1 string `position:"Query" name:"ScalingGroupName.1"` + ScalingGroupName2 string `position:"Query" name:"ScalingGroupName.2"` + ScalingGroupId2 string `position:"Query" name:"ScalingGroupId.2"` + ScalingGroupId1 string `position:"Query" name:"ScalingGroupId.1"` + ScalingGroupId6 string `position:"Query" name:"ScalingGroupId.6"` + ScalingGroupId16 string `position:"Query" name:"ScalingGroupId.16"` + ScalingGroupName7 string `position:"Query" name:"ScalingGroupName.7"` + ScalingGroupName11 string `position:"Query" name:"ScalingGroupName.11"` + ScalingGroupId5 string `position:"Query" name:"ScalingGroupId.5"` + ScalingGroupId17 string `position:"Query" name:"ScalingGroupId.17"` + ScalingGroupName8 string `position:"Query" name:"ScalingGroupName.8"` + ScalingGroupName10 string `position:"Query" name:"ScalingGroupName.10"` + ScalingGroupId4 string `position:"Query" name:"ScalingGroupId.4"` + ScalingGroupId18 string `position:"Query" name:"ScalingGroupId.18"` + ScalingGroupName9 string `position:"Query" name:"ScalingGroupName.9"` + ScalingGroupId3 string `position:"Query" name:"ScalingGroupId.3"` + ScalingGroupId19 string `position:"Query" name:"ScalingGroupId.19"` + ScalingGroupName3 string `position:"Query" name:"ScalingGroupName.3"` + ScalingGroupName15 string `position:"Query" name:"ScalingGroupName.15"` + ScalingGroupId9 string `position:"Query" name:"ScalingGroupId.9"` + ScalingGroupName4 string `position:"Query" name:"ScalingGroupName.4"` + ScalingGroupName14 string `position:"Query" name:"ScalingGroupName.14"` + ScalingGroupId8 string `position:"Query" name:"ScalingGroupId.8"` + ScalingGroupName5 string `position:"Query" name:"ScalingGroupName.5"` + ScalingGroupName13 string `position:"Query" name:"ScalingGroupName.13"` + ScalingGroupId7 string `position:"Query" name:"ScalingGroupId.7"` + ScalingGroupName6 string `position:"Query" name:"ScalingGroupName.6"` + ScalingGroupName12 string `position:"Query" name:"ScalingGroupName.12"` +} + +// DescribeScalingGroupsResponse is the response struct for api DescribeScalingGroups +type DescribeScalingGroupsResponse struct { + *responses.BaseResponse + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + ScalingGroups ScalingGroups `json:"ScalingGroups" xml:"ScalingGroups"` +} + +// CreateDescribeScalingGroupsRequest creates a request to invoke DescribeScalingGroups API +func CreateDescribeScalingGroupsRequest() (request *DescribeScalingGroupsRequest) { + request = &DescribeScalingGroupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DescribeScalingGroups", "ess", "openAPI") + return +} + +// CreateDescribeScalingGroupsResponse creates a response to parse from DescribeScalingGroups response +func CreateDescribeScalingGroupsResponse() (response *DescribeScalingGroupsResponse) { + response = &DescribeScalingGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_instances.go new file mode 100755 index 0000000..3f7ee3f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_instances.go @@ -0,0 +1,137 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScalingInstances invokes the ess.DescribeScalingInstances API synchronously +// api document: https://help.aliyun.com/api/ess/describescalinginstances.html +func (client *Client) DescribeScalingInstances(request *DescribeScalingInstancesRequest) (response *DescribeScalingInstancesResponse, err error) { + response = CreateDescribeScalingInstancesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScalingInstancesWithChan invokes the ess.DescribeScalingInstances API asynchronously +// api document: https://help.aliyun.com/api/ess/describescalinginstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScalingInstancesWithChan(request *DescribeScalingInstancesRequest) (<-chan *DescribeScalingInstancesResponse, <-chan error) { + responseChan := make(chan *DescribeScalingInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScalingInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScalingInstancesWithCallback invokes the ess.DescribeScalingInstances API asynchronously +// api document: https://help.aliyun.com/api/ess/describescalinginstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScalingInstancesWithCallback(request *DescribeScalingInstancesRequest, callback func(response *DescribeScalingInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScalingInstancesResponse + var err error + defer close(result) + response, err = client.DescribeScalingInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScalingInstancesRequest is the request struct for api DescribeScalingInstances +type DescribeScalingInstancesRequest struct { + *requests.RpcRequest + InstanceId10 string `position:"Query" name:"InstanceId.10"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId12 string `position:"Query" name:"InstanceId.12"` + InstanceId11 string `position:"Query" name:"InstanceId.11"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + LifecycleState string `position:"Query" name:"LifecycleState"` + CreationType string `position:"Query" name:"CreationType"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + InstanceId20 string `position:"Query" name:"InstanceId.20"` + InstanceId1 string `position:"Query" name:"InstanceId.1"` + InstanceId3 string `position:"Query" name:"InstanceId.3"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + InstanceId2 string `position:"Query" name:"InstanceId.2"` + InstanceId5 string `position:"Query" name:"InstanceId.5"` + InstanceId4 string `position:"Query" name:"InstanceId.4"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + InstanceId7 string `position:"Query" name:"InstanceId.7"` + InstanceId6 string `position:"Query" name:"InstanceId.6"` + InstanceId9 string `position:"Query" name:"InstanceId.9"` + InstanceId8 string `position:"Query" name:"InstanceId.8"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ScalingConfigurationId string `position:"Query" name:"ScalingConfigurationId"` + HealthStatus string `position:"Query" name:"HealthStatus"` + InstanceId18 string `position:"Query" name:"InstanceId.18"` + InstanceId17 string `position:"Query" name:"InstanceId.17"` + InstanceId19 string `position:"Query" name:"InstanceId.19"` + InstanceId14 string `position:"Query" name:"InstanceId.14"` + InstanceId13 string `position:"Query" name:"InstanceId.13"` + InstanceId16 string `position:"Query" name:"InstanceId.16"` + InstanceId15 string `position:"Query" name:"InstanceId.15"` +} + +// DescribeScalingInstancesResponse is the response struct for api DescribeScalingInstances +type DescribeScalingInstancesResponse struct { + *responses.BaseResponse + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + ScalingInstances ScalingInstances `json:"ScalingInstances" xml:"ScalingInstances"` +} + +// CreateDescribeScalingInstancesRequest creates a request to invoke DescribeScalingInstances API +func CreateDescribeScalingInstancesRequest() (request *DescribeScalingInstancesRequest) { + request = &DescribeScalingInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DescribeScalingInstances", "ess", "openAPI") + return +} + +// CreateDescribeScalingInstancesResponse creates a response to parse from DescribeScalingInstances response +func CreateDescribeScalingInstancesResponse() (response *DescribeScalingInstancesResponse) { + response = &DescribeScalingInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_rules.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_rules.go new file mode 100755 index 0000000..b3bc2f2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scaling_rules.go @@ -0,0 +1,143 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScalingRules invokes the ess.DescribeScalingRules API synchronously +// api document: https://help.aliyun.com/api/ess/describescalingrules.html +func (client *Client) DescribeScalingRules(request *DescribeScalingRulesRequest) (response *DescribeScalingRulesResponse, err error) { + response = CreateDescribeScalingRulesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScalingRulesWithChan invokes the ess.DescribeScalingRules API asynchronously +// api document: https://help.aliyun.com/api/ess/describescalingrules.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScalingRulesWithChan(request *DescribeScalingRulesRequest) (<-chan *DescribeScalingRulesResponse, <-chan error) { + responseChan := make(chan *DescribeScalingRulesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScalingRules(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScalingRulesWithCallback invokes the ess.DescribeScalingRules API asynchronously +// api document: https://help.aliyun.com/api/ess/describescalingrules.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScalingRulesWithCallback(request *DescribeScalingRulesRequest, callback func(response *DescribeScalingRulesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScalingRulesResponse + var err error + defer close(result) + response, err = client.DescribeScalingRules(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScalingRulesRequest is the request struct for api DescribeScalingRules +type DescribeScalingRulesRequest struct { + *requests.RpcRequest + ScalingRuleName1 string `position:"Query" name:"ScalingRuleName.1"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ScalingRuleName2 string `position:"Query" name:"ScalingRuleName.2"` + ScalingRuleName3 string `position:"Query" name:"ScalingRuleName.3"` + ScalingRuleName4 string `position:"Query" name:"ScalingRuleName.4"` + ScalingRuleName5 string `position:"Query" name:"ScalingRuleName.5"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + ScalingRuleName6 string `position:"Query" name:"ScalingRuleName.6"` + ScalingRuleName7 string `position:"Query" name:"ScalingRuleName.7"` + ScalingRuleName8 string `position:"Query" name:"ScalingRuleName.8"` + ScalingRuleAri9 string `position:"Query" name:"ScalingRuleAri.9"` + ScalingRuleName9 string `position:"Query" name:"ScalingRuleName.9"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ScalingRuleId10 string `position:"Query" name:"ScalingRuleId.10"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ScalingRuleAri1 string `position:"Query" name:"ScalingRuleAri.1"` + ScalingRuleAri2 string `position:"Query" name:"ScalingRuleAri.2"` + ScalingRuleName10 string `position:"Query" name:"ScalingRuleName.10"` + ScalingRuleAri3 string `position:"Query" name:"ScalingRuleAri.3"` + ScalingRuleAri4 string `position:"Query" name:"ScalingRuleAri.4"` + ScalingRuleId8 string `position:"Query" name:"ScalingRuleId.8"` + ScalingRuleAri5 string `position:"Query" name:"ScalingRuleAri.5"` + ScalingRuleId9 string `position:"Query" name:"ScalingRuleId.9"` + ScalingRuleAri6 string `position:"Query" name:"ScalingRuleAri.6"` + ScalingRuleAri7 string `position:"Query" name:"ScalingRuleAri.7"` + ScalingRuleAri10 string `position:"Query" name:"ScalingRuleAri.10"` + ScalingRuleAri8 string `position:"Query" name:"ScalingRuleAri.8"` + ScalingRuleId4 string `position:"Query" name:"ScalingRuleId.4"` + ScalingRuleId5 string `position:"Query" name:"ScalingRuleId.5"` + ScalingRuleId6 string `position:"Query" name:"ScalingRuleId.6"` + ScalingRuleId7 string `position:"Query" name:"ScalingRuleId.7"` + ScalingRuleId1 string `position:"Query" name:"ScalingRuleId.1"` + ScalingRuleId2 string `position:"Query" name:"ScalingRuleId.2"` + ScalingRuleId3 string `position:"Query" name:"ScalingRuleId.3"` +} + +// DescribeScalingRulesResponse is the response struct for api DescribeScalingRules +type DescribeScalingRulesResponse struct { + *responses.BaseResponse + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + ScalingRules ScalingRules `json:"ScalingRules" xml:"ScalingRules"` +} + +// CreateDescribeScalingRulesRequest creates a request to invoke DescribeScalingRules API +func CreateDescribeScalingRulesRequest() (request *DescribeScalingRulesRequest) { + request = &DescribeScalingRulesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DescribeScalingRules", "ess", "openAPI") + return +} + +// CreateDescribeScalingRulesResponse creates a response to parse from DescribeScalingRules response +func CreateDescribeScalingRulesResponse() (response *DescribeScalingRulesResponse) { + response = &DescribeScalingRulesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scheduled_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scheduled_tasks.go new file mode 100755 index 0000000..dfb2f03 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/describe_scheduled_tasks.go @@ -0,0 +1,172 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScheduledTasks invokes the ess.DescribeScheduledTasks API synchronously +// api document: https://help.aliyun.com/api/ess/describescheduledtasks.html +func (client *Client) DescribeScheduledTasks(request *DescribeScheduledTasksRequest) (response *DescribeScheduledTasksResponse, err error) { + response = CreateDescribeScheduledTasksResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScheduledTasksWithChan invokes the ess.DescribeScheduledTasks API asynchronously +// api document: https://help.aliyun.com/api/ess/describescheduledtasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScheduledTasksWithChan(request *DescribeScheduledTasksRequest) (<-chan *DescribeScheduledTasksResponse, <-chan error) { + responseChan := make(chan *DescribeScheduledTasksResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScheduledTasks(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScheduledTasksWithCallback invokes the ess.DescribeScheduledTasks API asynchronously +// api document: https://help.aliyun.com/api/ess/describescheduledtasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScheduledTasksWithCallback(request *DescribeScheduledTasksRequest, callback func(response *DescribeScheduledTasksResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScheduledTasksResponse + var err error + defer close(result) + response, err = client.DescribeScheduledTasks(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScheduledTasksRequest is the request struct for api DescribeScheduledTasks +type DescribeScheduledTasksRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ScheduledAction2 string `position:"Query" name:"ScheduledAction.2"` + ScheduledAction1 string `position:"Query" name:"ScheduledAction.1"` + ScheduledAction6 string `position:"Query" name:"ScheduledAction.6"` + ScheduledAction5 string `position:"Query" name:"ScheduledAction.5"` + ScheduledAction4 string `position:"Query" name:"ScheduledAction.4"` + ScheduledAction3 string `position:"Query" name:"ScheduledAction.3"` + ScheduledAction9 string `position:"Query" name:"ScheduledAction.9"` + ScheduledAction8 string `position:"Query" name:"ScheduledAction.8"` + ScheduledAction7 string `position:"Query" name:"ScheduledAction.7"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ScheduledTaskName20 string `position:"Query" name:"ScheduledTaskName.20"` + ScheduledTaskName19 string `position:"Query" name:"ScheduledTaskName.19"` + ScheduledTaskName18 string `position:"Query" name:"ScheduledTaskName.18"` + ScheduledTaskId20 string `position:"Query" name:"ScheduledTaskId.20"` + ScheduledTaskName13 string `position:"Query" name:"ScheduledTaskName.13"` + ScheduledTaskName12 string `position:"Query" name:"ScheduledTaskName.12"` + ScheduledTaskName11 string `position:"Query" name:"ScheduledTaskName.11"` + ScheduledTaskName10 string `position:"Query" name:"ScheduledTaskName.10"` + ScheduledTaskName17 string `position:"Query" name:"ScheduledTaskName.17"` + ScheduledTaskName16 string `position:"Query" name:"ScheduledTaskName.16"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ScheduledTaskName15 string `position:"Query" name:"ScheduledTaskName.15"` + ScheduledTaskName14 string `position:"Query" name:"ScheduledTaskName.14"` + ScheduledTaskId2 string `position:"Query" name:"ScheduledTaskId.2"` + ScheduledTaskId1 string `position:"Query" name:"ScheduledTaskId.1"` + ScheduledTaskId4 string `position:"Query" name:"ScheduledTaskId.4"` + ScheduledTaskId18 string `position:"Query" name:"ScheduledTaskId.18"` + ScheduledTaskId3 string `position:"Query" name:"ScheduledTaskId.3"` + ScheduledTaskId19 string `position:"Query" name:"ScheduledTaskId.19"` + ScheduledTaskId6 string `position:"Query" name:"ScheduledTaskId.6"` + ScheduledTaskId5 string `position:"Query" name:"ScheduledTaskId.5"` + ScheduledTaskId8 string `position:"Query" name:"ScheduledTaskId.8"` + ScheduledTaskName9 string `position:"Query" name:"ScheduledTaskName.9"` + ScheduledAction20 string `position:"Query" name:"ScheduledAction.20"` + ScheduledTaskId7 string `position:"Query" name:"ScheduledTaskId.7"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ScheduledTaskId12 string `position:"Query" name:"ScheduledTaskId.12"` + ScheduledTaskName7 string `position:"Query" name:"ScheduledTaskName.7"` + ScheduledTaskId9 string `position:"Query" name:"ScheduledTaskId.9"` + ScheduledTaskId13 string `position:"Query" name:"ScheduledTaskId.13"` + ScheduledTaskName8 string `position:"Query" name:"ScheduledTaskName.8"` + ScheduledTaskId10 string `position:"Query" name:"ScheduledTaskId.10"` + ScheduledTaskName5 string `position:"Query" name:"ScheduledTaskName.5"` + ScheduledTaskId11 string `position:"Query" name:"ScheduledTaskId.11"` + ScheduledTaskName6 string `position:"Query" name:"ScheduledTaskName.6"` + ScheduledTaskId16 string `position:"Query" name:"ScheduledTaskId.16"` + ScheduledTaskName3 string `position:"Query" name:"ScheduledTaskName.3"` + ScheduledTaskId17 string `position:"Query" name:"ScheduledTaskId.17"` + ScheduledTaskName4 string `position:"Query" name:"ScheduledTaskName.4"` + ScheduledTaskId14 string `position:"Query" name:"ScheduledTaskId.14"` + ScheduledTaskName1 string `position:"Query" name:"ScheduledTaskName.1"` + ScheduledTaskId15 string `position:"Query" name:"ScheduledTaskId.15"` + ScheduledTaskName2 string `position:"Query" name:"ScheduledTaskName.2"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ScheduledAction18 string `position:"Query" name:"ScheduledAction.18"` + ScheduledAction19 string `position:"Query" name:"ScheduledAction.19"` + ScheduledAction16 string `position:"Query" name:"ScheduledAction.16"` + ScheduledAction17 string `position:"Query" name:"ScheduledAction.17"` + ScheduledAction14 string `position:"Query" name:"ScheduledAction.14"` + ScheduledAction15 string `position:"Query" name:"ScheduledAction.15"` + ScheduledAction12 string `position:"Query" name:"ScheduledAction.12"` + ScheduledAction13 string `position:"Query" name:"ScheduledAction.13"` + ScheduledAction10 string `position:"Query" name:"ScheduledAction.10"` + ScheduledAction11 string `position:"Query" name:"ScheduledAction.11"` +} + +// DescribeScheduledTasksResponse is the response struct for api DescribeScheduledTasks +type DescribeScheduledTasksResponse struct { + *responses.BaseResponse + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + ScheduledTasks ScheduledTasks `json:"ScheduledTasks" xml:"ScheduledTasks"` +} + +// CreateDescribeScheduledTasksRequest creates a request to invoke DescribeScheduledTasks API +func CreateDescribeScheduledTasksRequest() (request *DescribeScheduledTasksRequest) { + request = &DescribeScheduledTasksRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DescribeScheduledTasks", "ess", "openAPI") + return +} + +// CreateDescribeScheduledTasksResponse creates a response to parse from DescribeScheduledTasks response +func CreateDescribeScheduledTasksResponse() (response *DescribeScheduledTasksResponse) { + response = &DescribeScheduledTasksResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/detach_db_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/detach_db_instances.go new file mode 100755 index 0000000..a3b4345 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/detach_db_instances.go @@ -0,0 +1,107 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DetachDBInstances invokes the ess.DetachDBInstances API synchronously +// api document: https://help.aliyun.com/api/ess/detachdbinstances.html +func (client *Client) DetachDBInstances(request *DetachDBInstancesRequest) (response *DetachDBInstancesResponse, err error) { + response = CreateDetachDBInstancesResponse() + err = client.DoAction(request, response) + return +} + +// DetachDBInstancesWithChan invokes the ess.DetachDBInstances API asynchronously +// api document: https://help.aliyun.com/api/ess/detachdbinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachDBInstancesWithChan(request *DetachDBInstancesRequest) (<-chan *DetachDBInstancesResponse, <-chan error) { + responseChan := make(chan *DetachDBInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DetachDBInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DetachDBInstancesWithCallback invokes the ess.DetachDBInstances API asynchronously +// api document: https://help.aliyun.com/api/ess/detachdbinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachDBInstancesWithCallback(request *DetachDBInstancesRequest, callback func(response *DetachDBInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DetachDBInstancesResponse + var err error + defer close(result) + response, err = client.DetachDBInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DetachDBInstancesRequest is the request struct for api DetachDBInstances +type DetachDBInstancesRequest struct { + *requests.RpcRequest + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + DBInstance *[]string `position:"Query" name:"DBInstance" type:"Repeated"` + ForceDetach requests.Boolean `position:"Query" name:"ForceDetach"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DetachDBInstancesResponse is the response struct for api DetachDBInstances +type DetachDBInstancesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDetachDBInstancesRequest creates a request to invoke DetachDBInstances API +func CreateDetachDBInstancesRequest() (request *DetachDBInstancesRequest) { + request = &DetachDBInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DetachDBInstances", "ess", "openAPI") + return +} + +// CreateDetachDBInstancesResponse creates a response to parse from DetachDBInstances response +func CreateDetachDBInstancesResponse() (response *DetachDBInstancesResponse) { + response = &DetachDBInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/detach_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/detach_instances.go new file mode 100755 index 0000000..458b0e9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/detach_instances.go @@ -0,0 +1,109 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DetachInstances invokes the ess.DetachInstances API synchronously +// api document: https://help.aliyun.com/api/ess/detachinstances.html +func (client *Client) DetachInstances(request *DetachInstancesRequest) (response *DetachInstancesResponse, err error) { + response = CreateDetachInstancesResponse() + err = client.DoAction(request, response) + return +} + +// DetachInstancesWithChan invokes the ess.DetachInstances API asynchronously +// api document: https://help.aliyun.com/api/ess/detachinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachInstancesWithChan(request *DetachInstancesRequest) (<-chan *DetachInstancesResponse, <-chan error) { + responseChan := make(chan *DetachInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DetachInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DetachInstancesWithCallback invokes the ess.DetachInstances API asynchronously +// api document: https://help.aliyun.com/api/ess/detachinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachInstancesWithCallback(request *DetachInstancesRequest, callback func(response *DetachInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DetachInstancesResponse + var err error + defer close(result) + response, err = client.DetachInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DetachInstancesRequest is the request struct for api DetachInstances +type DetachInstancesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DetachInstancesResponse is the response struct for api DetachInstances +type DetachInstancesResponse struct { + *responses.BaseResponse + ScalingActivityId string `json:"ScalingActivityId" xml:"ScalingActivityId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDetachInstancesRequest creates a request to invoke DetachInstances API +func CreateDetachInstancesRequest() (request *DetachInstancesRequest) { + request = &DetachInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DetachInstances", "ess", "openAPI") + return +} + +// CreateDetachInstancesResponse creates a response to parse from DetachInstances response +func CreateDetachInstancesResponse() (response *DetachInstancesResponse) { + response = &DetachInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/detach_load_balancers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/detach_load_balancers.go new file mode 100755 index 0000000..463bb16 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/detach_load_balancers.go @@ -0,0 +1,107 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DetachLoadBalancers invokes the ess.DetachLoadBalancers API synchronously +// api document: https://help.aliyun.com/api/ess/detachloadbalancers.html +func (client *Client) DetachLoadBalancers(request *DetachLoadBalancersRequest) (response *DetachLoadBalancersResponse, err error) { + response = CreateDetachLoadBalancersResponse() + err = client.DoAction(request, response) + return +} + +// DetachLoadBalancersWithChan invokes the ess.DetachLoadBalancers API asynchronously +// api document: https://help.aliyun.com/api/ess/detachloadbalancers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachLoadBalancersWithChan(request *DetachLoadBalancersRequest) (<-chan *DetachLoadBalancersResponse, <-chan error) { + responseChan := make(chan *DetachLoadBalancersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DetachLoadBalancers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DetachLoadBalancersWithCallback invokes the ess.DetachLoadBalancers API asynchronously +// api document: https://help.aliyun.com/api/ess/detachloadbalancers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachLoadBalancersWithCallback(request *DetachLoadBalancersRequest, callback func(response *DetachLoadBalancersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DetachLoadBalancersResponse + var err error + defer close(result) + response, err = client.DetachLoadBalancers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DetachLoadBalancersRequest is the request struct for api DetachLoadBalancers +type DetachLoadBalancersRequest struct { + *requests.RpcRequest + LoadBalancer *[]string `position:"Query" name:"LoadBalancer" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + ForceDetach requests.Boolean `position:"Query" name:"ForceDetach"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DetachLoadBalancersResponse is the response struct for api DetachLoadBalancers +type DetachLoadBalancersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDetachLoadBalancersRequest creates a request to invoke DetachLoadBalancers API +func CreateDetachLoadBalancersRequest() (request *DetachLoadBalancersRequest) { + request = &DetachLoadBalancersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DetachLoadBalancers", "ess", "openAPI") + return +} + +// CreateDetachLoadBalancersResponse creates a response to parse from DetachLoadBalancers response +func CreateDetachLoadBalancersResponse() (response *DetachLoadBalancersResponse) { + response = &DetachLoadBalancersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/disable_scaling_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/disable_scaling_group.go new file mode 100755 index 0000000..81f20c4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/disable_scaling_group.go @@ -0,0 +1,107 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DisableScalingGroup invokes the ess.DisableScalingGroup API synchronously +// api document: https://help.aliyun.com/api/ess/disablescalinggroup.html +func (client *Client) DisableScalingGroup(request *DisableScalingGroupRequest) (response *DisableScalingGroupResponse, err error) { + response = CreateDisableScalingGroupResponse() + err = client.DoAction(request, response) + return +} + +// DisableScalingGroupWithChan invokes the ess.DisableScalingGroup API asynchronously +// api document: https://help.aliyun.com/api/ess/disablescalinggroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DisableScalingGroupWithChan(request *DisableScalingGroupRequest) (<-chan *DisableScalingGroupResponse, <-chan error) { + responseChan := make(chan *DisableScalingGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DisableScalingGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DisableScalingGroupWithCallback invokes the ess.DisableScalingGroup API asynchronously +// api document: https://help.aliyun.com/api/ess/disablescalinggroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DisableScalingGroupWithCallback(request *DisableScalingGroupRequest, callback func(response *DisableScalingGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DisableScalingGroupResponse + var err error + defer close(result) + response, err = client.DisableScalingGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DisableScalingGroupRequest is the request struct for api DisableScalingGroup +type DisableScalingGroupRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DisableScalingGroupResponse is the response struct for api DisableScalingGroup +type DisableScalingGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDisableScalingGroupRequest creates a request to invoke DisableScalingGroup API +func CreateDisableScalingGroupRequest() (request *DisableScalingGroupRequest) { + request = &DisableScalingGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "DisableScalingGroup", "ess", "openAPI") + return +} + +// CreateDisableScalingGroupResponse creates a response to parse from DisableScalingGroup response +func CreateDisableScalingGroupResponse() (response *DisableScalingGroupResponse) { + response = &DisableScalingGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/enable_scaling_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/enable_scaling_group.go new file mode 100755 index 0000000..0d9a8e1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/enable_scaling_group.go @@ -0,0 +1,148 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EnableScalingGroup invokes the ess.EnableScalingGroup API synchronously +// api document: https://help.aliyun.com/api/ess/enablescalinggroup.html +func (client *Client) EnableScalingGroup(request *EnableScalingGroupRequest) (response *EnableScalingGroupResponse, err error) { + response = CreateEnableScalingGroupResponse() + err = client.DoAction(request, response) + return +} + +// EnableScalingGroupWithChan invokes the ess.EnableScalingGroup API asynchronously +// api document: https://help.aliyun.com/api/ess/enablescalinggroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnableScalingGroupWithChan(request *EnableScalingGroupRequest) (<-chan *EnableScalingGroupResponse, <-chan error) { + responseChan := make(chan *EnableScalingGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EnableScalingGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EnableScalingGroupWithCallback invokes the ess.EnableScalingGroup API asynchronously +// api document: https://help.aliyun.com/api/ess/enablescalinggroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnableScalingGroupWithCallback(request *EnableScalingGroupRequest, callback func(response *EnableScalingGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EnableScalingGroupResponse + var err error + defer close(result) + response, err = client.EnableScalingGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EnableScalingGroupRequest is the request struct for api EnableScalingGroup +type EnableScalingGroupRequest struct { + *requests.RpcRequest + InstanceId10 string `position:"Query" name:"InstanceId.10"` + LoadBalancerWeight6 requests.Integer `position:"Query" name:"LoadBalancerWeight.6"` + LoadBalancerWeight11 requests.Integer `position:"Query" name:"LoadBalancerWeight.11"` + LoadBalancerWeight7 requests.Integer `position:"Query" name:"LoadBalancerWeight.7"` + LoadBalancerWeight12 requests.Integer `position:"Query" name:"LoadBalancerWeight.12"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId12 string `position:"Query" name:"InstanceId.12"` + LoadBalancerWeight8 requests.Integer `position:"Query" name:"LoadBalancerWeight.8"` + InstanceId11 string `position:"Query" name:"InstanceId.11"` + LoadBalancerWeight9 requests.Integer `position:"Query" name:"LoadBalancerWeight.9"` + LoadBalancerWeight10 requests.Integer `position:"Query" name:"LoadBalancerWeight.10"` + LoadBalancerWeight2 requests.Integer `position:"Query" name:"LoadBalancerWeight.2"` + LoadBalancerWeight15 requests.Integer `position:"Query" name:"LoadBalancerWeight.15"` + LoadBalancerWeight3 requests.Integer `position:"Query" name:"LoadBalancerWeight.3"` + LoadBalancerWeight16 requests.Integer `position:"Query" name:"LoadBalancerWeight.16"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + LoadBalancerWeight4 requests.Integer `position:"Query" name:"LoadBalancerWeight.4"` + LoadBalancerWeight13 requests.Integer `position:"Query" name:"LoadBalancerWeight.13"` + LoadBalancerWeight5 requests.Integer `position:"Query" name:"LoadBalancerWeight.5"` + LoadBalancerWeight14 requests.Integer `position:"Query" name:"LoadBalancerWeight.14"` + ActiveScalingConfigurationId string `position:"Query" name:"ActiveScalingConfigurationId"` + LoadBalancerWeight1 requests.Integer `position:"Query" name:"LoadBalancerWeight.1"` + InstanceId20 string `position:"Query" name:"InstanceId.20"` + InstanceId1 string `position:"Query" name:"InstanceId.1"` + LoadBalancerWeight20 requests.Integer `position:"Query" name:"LoadBalancerWeight.20"` + InstanceId3 string `position:"Query" name:"InstanceId.3"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + InstanceId2 string `position:"Query" name:"InstanceId.2"` + InstanceId5 string `position:"Query" name:"InstanceId.5"` + InstanceId4 string `position:"Query" name:"InstanceId.4"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + InstanceId7 string `position:"Query" name:"InstanceId.7"` + InstanceId6 string `position:"Query" name:"InstanceId.6"` + InstanceId9 string `position:"Query" name:"InstanceId.9"` + InstanceId8 string `position:"Query" name:"InstanceId.8"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId18 string `position:"Query" name:"InstanceId.18"` + LoadBalancerWeight19 requests.Integer `position:"Query" name:"LoadBalancerWeight.19"` + InstanceId17 string `position:"Query" name:"InstanceId.17"` + LoadBalancerWeight17 requests.Integer `position:"Query" name:"LoadBalancerWeight.17"` + InstanceId19 string `position:"Query" name:"InstanceId.19"` + LoadBalancerWeight18 requests.Integer `position:"Query" name:"LoadBalancerWeight.18"` + InstanceId14 string `position:"Query" name:"InstanceId.14"` + InstanceId13 string `position:"Query" name:"InstanceId.13"` + InstanceId16 string `position:"Query" name:"InstanceId.16"` + InstanceId15 string `position:"Query" name:"InstanceId.15"` +} + +// EnableScalingGroupResponse is the response struct for api EnableScalingGroup +type EnableScalingGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateEnableScalingGroupRequest creates a request to invoke EnableScalingGroup API +func CreateEnableScalingGroupRequest() (request *EnableScalingGroupRequest) { + request = &EnableScalingGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "EnableScalingGroup", "ess", "openAPI") + return +} + +// CreateEnableScalingGroupResponse creates a response to parse from EnableScalingGroup response +func CreateEnableScalingGroupResponse() (response *EnableScalingGroupResponse) { + response = &EnableScalingGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/enter_standby.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/enter_standby.go new file mode 100755 index 0000000..46b9bc9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/enter_standby.go @@ -0,0 +1,106 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EnterStandby invokes the ess.EnterStandby API synchronously +// api document: https://help.aliyun.com/api/ess/enterstandby.html +func (client *Client) EnterStandby(request *EnterStandbyRequest) (response *EnterStandbyResponse, err error) { + response = CreateEnterStandbyResponse() + err = client.DoAction(request, response) + return +} + +// EnterStandbyWithChan invokes the ess.EnterStandby API asynchronously +// api document: https://help.aliyun.com/api/ess/enterstandby.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnterStandbyWithChan(request *EnterStandbyRequest) (<-chan *EnterStandbyResponse, <-chan error) { + responseChan := make(chan *EnterStandbyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EnterStandby(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EnterStandbyWithCallback invokes the ess.EnterStandby API asynchronously +// api document: https://help.aliyun.com/api/ess/enterstandby.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnterStandbyWithCallback(request *EnterStandbyRequest, callback func(response *EnterStandbyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EnterStandbyResponse + var err error + defer close(result) + response, err = client.EnterStandby(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EnterStandbyRequest is the request struct for api EnterStandby +type EnterStandbyRequest struct { + *requests.RpcRequest + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// EnterStandbyResponse is the response struct for api EnterStandby +type EnterStandbyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateEnterStandbyRequest creates a request to invoke EnterStandby API +func CreateEnterStandbyRequest() (request *EnterStandbyRequest) { + request = &EnterStandbyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "EnterStandby", "ess", "openAPI") + return +} + +// CreateEnterStandbyResponse creates a response to parse from EnterStandby response +func CreateEnterStandbyResponse() (response *EnterStandbyResponse) { + response = &EnterStandbyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/execute_scaling_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/execute_scaling_rule.go new file mode 100755 index 0000000..953dd29 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/execute_scaling_rule.go @@ -0,0 +1,109 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ExecuteScalingRule invokes the ess.ExecuteScalingRule API synchronously +// api document: https://help.aliyun.com/api/ess/executescalingrule.html +func (client *Client) ExecuteScalingRule(request *ExecuteScalingRuleRequest) (response *ExecuteScalingRuleResponse, err error) { + response = CreateExecuteScalingRuleResponse() + err = client.DoAction(request, response) + return +} + +// ExecuteScalingRuleWithChan invokes the ess.ExecuteScalingRule API asynchronously +// api document: https://help.aliyun.com/api/ess/executescalingrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ExecuteScalingRuleWithChan(request *ExecuteScalingRuleRequest) (<-chan *ExecuteScalingRuleResponse, <-chan error) { + responseChan := make(chan *ExecuteScalingRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ExecuteScalingRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ExecuteScalingRuleWithCallback invokes the ess.ExecuteScalingRule API asynchronously +// api document: https://help.aliyun.com/api/ess/executescalingrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ExecuteScalingRuleWithCallback(request *ExecuteScalingRuleRequest, callback func(response *ExecuteScalingRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ExecuteScalingRuleResponse + var err error + defer close(result) + response, err = client.ExecuteScalingRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ExecuteScalingRuleRequest is the request struct for api ExecuteScalingRule +type ExecuteScalingRuleRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ScalingRuleAri string `position:"Query" name:"ScalingRuleAri"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ExecuteScalingRuleResponse is the response struct for api ExecuteScalingRule +type ExecuteScalingRuleResponse struct { + *responses.BaseResponse + ScalingActivityId string `json:"ScalingActivityId" xml:"ScalingActivityId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateExecuteScalingRuleRequest creates a request to invoke ExecuteScalingRule API +func CreateExecuteScalingRuleRequest() (request *ExecuteScalingRuleRequest) { + request = &ExecuteScalingRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "ExecuteScalingRule", "ess", "openAPI") + return +} + +// CreateExecuteScalingRuleResponse creates a response to parse from ExecuteScalingRule response +func CreateExecuteScalingRuleResponse() (response *ExecuteScalingRuleResponse) { + response = &ExecuteScalingRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/exit_standby.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/exit_standby.go new file mode 100755 index 0000000..fd00a4b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/exit_standby.go @@ -0,0 +1,106 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ExitStandby invokes the ess.ExitStandby API synchronously +// api document: https://help.aliyun.com/api/ess/exitstandby.html +func (client *Client) ExitStandby(request *ExitStandbyRequest) (response *ExitStandbyResponse, err error) { + response = CreateExitStandbyResponse() + err = client.DoAction(request, response) + return +} + +// ExitStandbyWithChan invokes the ess.ExitStandby API asynchronously +// api document: https://help.aliyun.com/api/ess/exitstandby.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ExitStandbyWithChan(request *ExitStandbyRequest) (<-chan *ExitStandbyResponse, <-chan error) { + responseChan := make(chan *ExitStandbyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ExitStandby(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ExitStandbyWithCallback invokes the ess.ExitStandby API asynchronously +// api document: https://help.aliyun.com/api/ess/exitstandby.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ExitStandbyWithCallback(request *ExitStandbyRequest, callback func(response *ExitStandbyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ExitStandbyResponse + var err error + defer close(result) + response, err = client.ExitStandby(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ExitStandbyRequest is the request struct for api ExitStandby +type ExitStandbyRequest struct { + *requests.RpcRequest + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ExitStandbyResponse is the response struct for api ExitStandby +type ExitStandbyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateExitStandbyRequest creates a request to invoke ExitStandby API +func CreateExitStandbyRequest() (request *ExitStandbyRequest) { + request = &ExitStandbyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "ExitStandby", "ess", "openAPI") + return +} + +// CreateExitStandbyResponse creates a response to parse from ExitStandby response +func CreateExitStandbyResponse() (response *ExitStandbyResponse) { + response = &ExitStandbyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_alert_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_alert_config.go new file mode 100755 index 0000000..b16e236 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_alert_config.go @@ -0,0 +1,108 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyAlertConfig invokes the ess.ModifyAlertConfig API synchronously +// api document: https://help.aliyun.com/api/ess/modifyalertconfig.html +func (client *Client) ModifyAlertConfig(request *ModifyAlertConfigRequest) (response *ModifyAlertConfigResponse, err error) { + response = CreateModifyAlertConfigResponse() + err = client.DoAction(request, response) + return +} + +// ModifyAlertConfigWithChan invokes the ess.ModifyAlertConfig API asynchronously +// api document: https://help.aliyun.com/api/ess/modifyalertconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyAlertConfigWithChan(request *ModifyAlertConfigRequest) (<-chan *ModifyAlertConfigResponse, <-chan error) { + responseChan := make(chan *ModifyAlertConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyAlertConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyAlertConfigWithCallback invokes the ess.ModifyAlertConfig API asynchronously +// api document: https://help.aliyun.com/api/ess/modifyalertconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyAlertConfigWithCallback(request *ModifyAlertConfigRequest, callback func(response *ModifyAlertConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyAlertConfigResponse + var err error + defer close(result) + response, err = client.ModifyAlertConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyAlertConfigRequest is the request struct for api ModifyAlertConfig +type ModifyAlertConfigRequest struct { + *requests.RpcRequest + SuccessConfig requests.Integer `position:"Query" name:"SuccessConfig"` + RejectConfig requests.Integer `position:"Query" name:"RejectConfig"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + FailConfig requests.Integer `position:"Query" name:"FailConfig"` +} + +// ModifyAlertConfigResponse is the response struct for api ModifyAlertConfig +type ModifyAlertConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyAlertConfigRequest creates a request to invoke ModifyAlertConfig API +func CreateModifyAlertConfigRequest() (request *ModifyAlertConfigRequest) { + request = &ModifyAlertConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "ModifyAlertConfig", "ess", "openAPI") + return +} + +// CreateModifyAlertConfigResponse creates a response to parse from ModifyAlertConfig response +func CreateModifyAlertConfigResponse() (response *ModifyAlertConfigResponse) { + response = &ModifyAlertConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_lifecycle_hook.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_lifecycle_hook.go new file mode 100755 index 0000000..dcf5f21 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_lifecycle_hook.go @@ -0,0 +1,113 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyLifecycleHook invokes the ess.ModifyLifecycleHook API synchronously +// api document: https://help.aliyun.com/api/ess/modifylifecyclehook.html +func (client *Client) ModifyLifecycleHook(request *ModifyLifecycleHookRequest) (response *ModifyLifecycleHookResponse, err error) { + response = CreateModifyLifecycleHookResponse() + err = client.DoAction(request, response) + return +} + +// ModifyLifecycleHookWithChan invokes the ess.ModifyLifecycleHook API asynchronously +// api document: https://help.aliyun.com/api/ess/modifylifecyclehook.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyLifecycleHookWithChan(request *ModifyLifecycleHookRequest) (<-chan *ModifyLifecycleHookResponse, <-chan error) { + responseChan := make(chan *ModifyLifecycleHookResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyLifecycleHook(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyLifecycleHookWithCallback invokes the ess.ModifyLifecycleHook API asynchronously +// api document: https://help.aliyun.com/api/ess/modifylifecyclehook.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyLifecycleHookWithCallback(request *ModifyLifecycleHookRequest, callback func(response *ModifyLifecycleHookResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyLifecycleHookResponse + var err error + defer close(result) + response, err = client.ModifyLifecycleHook(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyLifecycleHookRequest is the request struct for api ModifyLifecycleHook +type ModifyLifecycleHookRequest struct { + *requests.RpcRequest + DefaultResult string `position:"Query" name:"DefaultResult"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + HeartbeatTimeout requests.Integer `position:"Query" name:"HeartbeatTimeout"` + LifecycleHookId string `position:"Query" name:"LifecycleHookId"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + NotificationMetadata string `position:"Query" name:"NotificationMetadata"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + LifecycleTransition string `position:"Query" name:"LifecycleTransition"` + LifecycleHookName string `position:"Query" name:"LifecycleHookName"` + NotificationArn string `position:"Query" name:"NotificationArn"` +} + +// ModifyLifecycleHookResponse is the response struct for api ModifyLifecycleHook +type ModifyLifecycleHookResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyLifecycleHookRequest creates a request to invoke ModifyLifecycleHook API +func CreateModifyLifecycleHookRequest() (request *ModifyLifecycleHookRequest) { + request = &ModifyLifecycleHookRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "ModifyLifecycleHook", "ess", "openAPI") + return +} + +// CreateModifyLifecycleHookResponse creates a response to parse from ModifyLifecycleHook response +func CreateModifyLifecycleHookResponse() (response *ModifyLifecycleHookResponse) { + response = &ModifyLifecycleHookResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_notification_configuration.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_notification_configuration.go new file mode 100755 index 0000000..76ba1fe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_notification_configuration.go @@ -0,0 +1,107 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyNotificationConfiguration invokes the ess.ModifyNotificationConfiguration API synchronously +// api document: https://help.aliyun.com/api/ess/modifynotificationconfiguration.html +func (client *Client) ModifyNotificationConfiguration(request *ModifyNotificationConfigurationRequest) (response *ModifyNotificationConfigurationResponse, err error) { + response = CreateModifyNotificationConfigurationResponse() + err = client.DoAction(request, response) + return +} + +// ModifyNotificationConfigurationWithChan invokes the ess.ModifyNotificationConfiguration API asynchronously +// api document: https://help.aliyun.com/api/ess/modifynotificationconfiguration.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyNotificationConfigurationWithChan(request *ModifyNotificationConfigurationRequest) (<-chan *ModifyNotificationConfigurationResponse, <-chan error) { + responseChan := make(chan *ModifyNotificationConfigurationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyNotificationConfiguration(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyNotificationConfigurationWithCallback invokes the ess.ModifyNotificationConfiguration API asynchronously +// api document: https://help.aliyun.com/api/ess/modifynotificationconfiguration.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyNotificationConfigurationWithCallback(request *ModifyNotificationConfigurationRequest, callback func(response *ModifyNotificationConfigurationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyNotificationConfigurationResponse + var err error + defer close(result) + response, err = client.ModifyNotificationConfiguration(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyNotificationConfigurationRequest is the request struct for api ModifyNotificationConfiguration +type ModifyNotificationConfigurationRequest struct { + *requests.RpcRequest + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + NotificationArn string `position:"Query" name:"NotificationArn"` + NotificationType *[]string `position:"Query" name:"NotificationType" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyNotificationConfigurationResponse is the response struct for api ModifyNotificationConfiguration +type ModifyNotificationConfigurationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyNotificationConfigurationRequest creates a request to invoke ModifyNotificationConfiguration API +func CreateModifyNotificationConfigurationRequest() (request *ModifyNotificationConfigurationRequest) { + request = &ModifyNotificationConfigurationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "ModifyNotificationConfiguration", "ess", "openAPI") + return +} + +// CreateModifyNotificationConfigurationResponse creates a response to parse from ModifyNotificationConfiguration response +func CreateModifyNotificationConfigurationResponse() (response *ModifyNotificationConfigurationResponse) { + response = &ModifyNotificationConfigurationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_scaling_configuration.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_scaling_configuration.go new file mode 100755 index 0000000..4f958f3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_scaling_configuration.go @@ -0,0 +1,121 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyScalingConfiguration invokes the ess.ModifyScalingConfiguration API synchronously +// api document: https://help.aliyun.com/api/ess/modifyscalingconfiguration.html +func (client *Client) ModifyScalingConfiguration(request *ModifyScalingConfigurationRequest) (response *ModifyScalingConfigurationResponse, err error) { + response = CreateModifyScalingConfigurationResponse() + err = client.DoAction(request, response) + return +} + +// ModifyScalingConfigurationWithChan invokes the ess.ModifyScalingConfiguration API asynchronously +// api document: https://help.aliyun.com/api/ess/modifyscalingconfiguration.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyScalingConfigurationWithChan(request *ModifyScalingConfigurationRequest) (<-chan *ModifyScalingConfigurationResponse, <-chan error) { + responseChan := make(chan *ModifyScalingConfigurationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyScalingConfiguration(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyScalingConfigurationWithCallback invokes the ess.ModifyScalingConfiguration API asynchronously +// api document: https://help.aliyun.com/api/ess/modifyscalingconfiguration.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyScalingConfigurationWithCallback(request *ModifyScalingConfigurationRequest, callback func(response *ModifyScalingConfigurationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyScalingConfigurationResponse + var err error + defer close(result) + response, err = client.ModifyScalingConfiguration(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyScalingConfigurationRequest is the request struct for api ModifyScalingConfiguration +type ModifyScalingConfigurationRequest struct { + *requests.RpcRequest + ImageId string `position:"Query" name:"ImageId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + InstanceTypes *[]string `position:"Query" name:"InstanceTypes" type:"Repeated"` + InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` + RamRoleName string `position:"Query" name:"RamRoleName"` + KeyPairName string `position:"Query" name:"KeyPairName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` + ScalingConfigurationName string `position:"Query" name:"ScalingConfigurationName"` + Tags string `position:"Query" name:"Tags"` + ScalingConfigurationId string `position:"Query" name:"ScalingConfigurationId"` + UserData string `position:"Query" name:"UserData"` + HostName string `position:"Query" name:"HostName"` + InstanceName string `position:"Query" name:"InstanceName"` + LoadBalancerWeight requests.Integer `position:"Query" name:"LoadBalancerWeight"` + PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` + SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` +} + +// ModifyScalingConfigurationResponse is the response struct for api ModifyScalingConfiguration +type ModifyScalingConfigurationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyScalingConfigurationRequest creates a request to invoke ModifyScalingConfiguration API +func CreateModifyScalingConfigurationRequest() (request *ModifyScalingConfigurationRequest) { + request = &ModifyScalingConfigurationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "ModifyScalingConfiguration", "ess", "openAPI") + return +} + +// CreateModifyScalingConfigurationResponse creates a response to parse from ModifyScalingConfiguration response +func CreateModifyScalingConfigurationResponse() (response *ModifyScalingConfigurationResponse) { + response = &ModifyScalingConfigurationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_scaling_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_scaling_group.go new file mode 100755 index 0000000..76745a6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_scaling_group.go @@ -0,0 +1,115 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyScalingGroup invokes the ess.ModifyScalingGroup API synchronously +// api document: https://help.aliyun.com/api/ess/modifyscalinggroup.html +func (client *Client) ModifyScalingGroup(request *ModifyScalingGroupRequest) (response *ModifyScalingGroupResponse, err error) { + response = CreateModifyScalingGroupResponse() + err = client.DoAction(request, response) + return +} + +// ModifyScalingGroupWithChan invokes the ess.ModifyScalingGroup API asynchronously +// api document: https://help.aliyun.com/api/ess/modifyscalinggroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyScalingGroupWithChan(request *ModifyScalingGroupRequest) (<-chan *ModifyScalingGroupResponse, <-chan error) { + responseChan := make(chan *ModifyScalingGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyScalingGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyScalingGroupWithCallback invokes the ess.ModifyScalingGroup API asynchronously +// api document: https://help.aliyun.com/api/ess/modifyscalinggroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyScalingGroupWithCallback(request *ModifyScalingGroupRequest, callback func(response *ModifyScalingGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyScalingGroupResponse + var err error + defer close(result) + response, err = client.ModifyScalingGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyScalingGroupRequest is the request struct for api ModifyScalingGroup +type ModifyScalingGroupRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + HealthCheckType string `position:"Query" name:"HealthCheckType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupName string `position:"Query" name:"ScalingGroupName"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ActiveScalingConfigurationId string `position:"Query" name:"ActiveScalingConfigurationId"` + MinSize requests.Integer `position:"Query" name:"MinSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + MaxSize requests.Integer `position:"Query" name:"MaxSize"` + DefaultCooldown requests.Integer `position:"Query" name:"DefaultCooldown"` + RemovalPolicy1 string `position:"Query" name:"RemovalPolicy.1"` + RemovalPolicy2 string `position:"Query" name:"RemovalPolicy.2"` +} + +// ModifyScalingGroupResponse is the response struct for api ModifyScalingGroup +type ModifyScalingGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyScalingGroupRequest creates a request to invoke ModifyScalingGroup API +func CreateModifyScalingGroupRequest() (request *ModifyScalingGroupRequest) { + request = &ModifyScalingGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "ModifyScalingGroup", "ess", "openAPI") + return +} + +// CreateModifyScalingGroupResponse creates a response to parse from ModifyScalingGroup response +func CreateModifyScalingGroupResponse() (response *ModifyScalingGroupResponse) { + response = &ModifyScalingGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_scaling_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_scaling_rule.go new file mode 100755 index 0000000..055cb34 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_scaling_rule.go @@ -0,0 +1,111 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyScalingRule invokes the ess.ModifyScalingRule API synchronously +// api document: https://help.aliyun.com/api/ess/modifyscalingrule.html +func (client *Client) ModifyScalingRule(request *ModifyScalingRuleRequest) (response *ModifyScalingRuleResponse, err error) { + response = CreateModifyScalingRuleResponse() + err = client.DoAction(request, response) + return +} + +// ModifyScalingRuleWithChan invokes the ess.ModifyScalingRule API asynchronously +// api document: https://help.aliyun.com/api/ess/modifyscalingrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyScalingRuleWithChan(request *ModifyScalingRuleRequest) (<-chan *ModifyScalingRuleResponse, <-chan error) { + responseChan := make(chan *ModifyScalingRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyScalingRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyScalingRuleWithCallback invokes the ess.ModifyScalingRule API asynchronously +// api document: https://help.aliyun.com/api/ess/modifyscalingrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyScalingRuleWithCallback(request *ModifyScalingRuleRequest, callback func(response *ModifyScalingRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyScalingRuleResponse + var err error + defer close(result) + response, err = client.ModifyScalingRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyScalingRuleRequest is the request struct for api ModifyScalingRule +type ModifyScalingRuleRequest struct { + *requests.RpcRequest + ScalingRuleName string `position:"Query" name:"ScalingRuleName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + AdjustmentValue requests.Integer `position:"Query" name:"AdjustmentValue"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Cooldown requests.Integer `position:"Query" name:"Cooldown"` + AdjustmentType string `position:"Query" name:"AdjustmentType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ScalingRuleId string `position:"Query" name:"ScalingRuleId"` +} + +// ModifyScalingRuleResponse is the response struct for api ModifyScalingRule +type ModifyScalingRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyScalingRuleRequest creates a request to invoke ModifyScalingRule API +func CreateModifyScalingRuleRequest() (request *ModifyScalingRuleRequest) { + request = &ModifyScalingRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "ModifyScalingRule", "ess", "openAPI") + return +} + +// CreateModifyScalingRuleResponse creates a response to parse from ModifyScalingRule response +func CreateModifyScalingRuleResponse() (response *ModifyScalingRuleResponse) { + response = &ModifyScalingRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_scheduled_task.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_scheduled_task.go new file mode 100755 index 0000000..4eb2cbd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/modify_scheduled_task.go @@ -0,0 +1,116 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyScheduledTask invokes the ess.ModifyScheduledTask API synchronously +// api document: https://help.aliyun.com/api/ess/modifyscheduledtask.html +func (client *Client) ModifyScheduledTask(request *ModifyScheduledTaskRequest) (response *ModifyScheduledTaskResponse, err error) { + response = CreateModifyScheduledTaskResponse() + err = client.DoAction(request, response) + return +} + +// ModifyScheduledTaskWithChan invokes the ess.ModifyScheduledTask API asynchronously +// api document: https://help.aliyun.com/api/ess/modifyscheduledtask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyScheduledTaskWithChan(request *ModifyScheduledTaskRequest) (<-chan *ModifyScheduledTaskResponse, <-chan error) { + responseChan := make(chan *ModifyScheduledTaskResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyScheduledTask(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyScheduledTaskWithCallback invokes the ess.ModifyScheduledTask API asynchronously +// api document: https://help.aliyun.com/api/ess/modifyscheduledtask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyScheduledTaskWithCallback(request *ModifyScheduledTaskRequest, callback func(response *ModifyScheduledTaskResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyScheduledTaskResponse + var err error + defer close(result) + response, err = client.ModifyScheduledTask(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyScheduledTaskRequest is the request struct for api ModifyScheduledTask +type ModifyScheduledTaskRequest struct { + *requests.RpcRequest + LaunchTime string `position:"Query" name:"LaunchTime"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ScheduledAction string `position:"Query" name:"ScheduledAction"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Description string `position:"Query" name:"Description"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + RecurrenceValue string `position:"Query" name:"RecurrenceValue"` + LaunchExpirationTime requests.Integer `position:"Query" name:"LaunchExpirationTime"` + RecurrenceEndTime string `position:"Query" name:"RecurrenceEndTime"` + ScheduledTaskName string `position:"Query" name:"ScheduledTaskName"` + TaskEnabled requests.Boolean `position:"Query" name:"TaskEnabled"` + ScheduledTaskId string `position:"Query" name:"ScheduledTaskId"` + RecurrenceType string `position:"Query" name:"RecurrenceType"` +} + +// ModifyScheduledTaskResponse is the response struct for api ModifyScheduledTask +type ModifyScheduledTaskResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyScheduledTaskRequest creates a request to invoke ModifyScheduledTask API +func CreateModifyScheduledTaskRequest() (request *ModifyScheduledTaskRequest) { + request = &ModifyScheduledTaskRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "ModifyScheduledTask", "ess", "openAPI") + return +} + +// CreateModifyScheduledTaskResponse creates a response to parse from ModifyScheduledTask response +func CreateModifyScheduledTaskResponse() (response *ModifyScheduledTaskResponse) { + response = &ModifyScheduledTaskResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/rebalance_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/rebalance_instances.go new file mode 100755 index 0000000..bd96e4e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/rebalance_instances.go @@ -0,0 +1,108 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RebalanceInstances invokes the ess.RebalanceInstances API synchronously +// api document: https://help.aliyun.com/api/ess/rebalanceinstances.html +func (client *Client) RebalanceInstances(request *RebalanceInstancesRequest) (response *RebalanceInstancesResponse, err error) { + response = CreateRebalanceInstancesResponse() + err = client.DoAction(request, response) + return +} + +// RebalanceInstancesWithChan invokes the ess.RebalanceInstances API asynchronously +// api document: https://help.aliyun.com/api/ess/rebalanceinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RebalanceInstancesWithChan(request *RebalanceInstancesRequest) (<-chan *RebalanceInstancesResponse, <-chan error) { + responseChan := make(chan *RebalanceInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RebalanceInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RebalanceInstancesWithCallback invokes the ess.RebalanceInstances API asynchronously +// api document: https://help.aliyun.com/api/ess/rebalanceinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RebalanceInstancesWithCallback(request *RebalanceInstancesRequest, callback func(response *RebalanceInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RebalanceInstancesResponse + var err error + defer close(result) + response, err = client.RebalanceInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RebalanceInstancesRequest is the request struct for api RebalanceInstances +type RebalanceInstancesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// RebalanceInstancesResponse is the response struct for api RebalanceInstances +type RebalanceInstancesResponse struct { + *responses.BaseResponse + ScalingActivityId string `json:"ScalingActivityId" xml:"ScalingActivityId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRebalanceInstancesRequest creates a request to invoke RebalanceInstances API +func CreateRebalanceInstancesRequest() (request *RebalanceInstancesRequest) { + request = &RebalanceInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "RebalanceInstances", "ess", "openAPI") + return +} + +// CreateRebalanceInstancesResponse creates a response to parse from RebalanceInstances response +func CreateRebalanceInstancesResponse() (response *RebalanceInstancesResponse) { + response = &RebalanceInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/record_lifecycle_action_heartbeat.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/record_lifecycle_action_heartbeat.go new file mode 100755 index 0000000..7cb1f74 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/record_lifecycle_action_heartbeat.go @@ -0,0 +1,108 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RecordLifecycleActionHeartbeat invokes the ess.RecordLifecycleActionHeartbeat API synchronously +// api document: https://help.aliyun.com/api/ess/recordlifecycleactionheartbeat.html +func (client *Client) RecordLifecycleActionHeartbeat(request *RecordLifecycleActionHeartbeatRequest) (response *RecordLifecycleActionHeartbeatResponse, err error) { + response = CreateRecordLifecycleActionHeartbeatResponse() + err = client.DoAction(request, response) + return +} + +// RecordLifecycleActionHeartbeatWithChan invokes the ess.RecordLifecycleActionHeartbeat API asynchronously +// api document: https://help.aliyun.com/api/ess/recordlifecycleactionheartbeat.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RecordLifecycleActionHeartbeatWithChan(request *RecordLifecycleActionHeartbeatRequest) (<-chan *RecordLifecycleActionHeartbeatResponse, <-chan error) { + responseChan := make(chan *RecordLifecycleActionHeartbeatResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RecordLifecycleActionHeartbeat(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RecordLifecycleActionHeartbeatWithCallback invokes the ess.RecordLifecycleActionHeartbeat API asynchronously +// api document: https://help.aliyun.com/api/ess/recordlifecycleactionheartbeat.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RecordLifecycleActionHeartbeatWithCallback(request *RecordLifecycleActionHeartbeatRequest, callback func(response *RecordLifecycleActionHeartbeatResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RecordLifecycleActionHeartbeatResponse + var err error + defer close(result) + response, err = client.RecordLifecycleActionHeartbeat(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RecordLifecycleActionHeartbeatRequest is the request struct for api RecordLifecycleActionHeartbeat +type RecordLifecycleActionHeartbeatRequest struct { + *requests.RpcRequest + LifecycleActionToken string `position:"Query" name:"lifecycleActionToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + HeartbeatTimeout requests.Integer `position:"Query" name:"heartbeatTimeout"` + LifecycleHookId string `position:"Query" name:"lifecycleHookId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// RecordLifecycleActionHeartbeatResponse is the response struct for api RecordLifecycleActionHeartbeat +type RecordLifecycleActionHeartbeatResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRecordLifecycleActionHeartbeatRequest creates a request to invoke RecordLifecycleActionHeartbeat API +func CreateRecordLifecycleActionHeartbeatRequest() (request *RecordLifecycleActionHeartbeatRequest) { + request = &RecordLifecycleActionHeartbeatRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "RecordLifecycleActionHeartbeat", "ess", "openAPI") + return +} + +// CreateRecordLifecycleActionHeartbeatResponse creates a response to parse from RecordLifecycleActionHeartbeat response +func CreateRecordLifecycleActionHeartbeatResponse() (response *RecordLifecycleActionHeartbeatResponse) { + response = &RecordLifecycleActionHeartbeatResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/remove_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/remove_instances.go new file mode 100755 index 0000000..28d3b07 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/remove_instances.go @@ -0,0 +1,128 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveInstances invokes the ess.RemoveInstances API synchronously +// api document: https://help.aliyun.com/api/ess/removeinstances.html +func (client *Client) RemoveInstances(request *RemoveInstancesRequest) (response *RemoveInstancesResponse, err error) { + response = CreateRemoveInstancesResponse() + err = client.DoAction(request, response) + return +} + +// RemoveInstancesWithChan invokes the ess.RemoveInstances API asynchronously +// api document: https://help.aliyun.com/api/ess/removeinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveInstancesWithChan(request *RemoveInstancesRequest) (<-chan *RemoveInstancesResponse, <-chan error) { + responseChan := make(chan *RemoveInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveInstancesWithCallback invokes the ess.RemoveInstances API asynchronously +// api document: https://help.aliyun.com/api/ess/removeinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveInstancesWithCallback(request *RemoveInstancesRequest, callback func(response *RemoveInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveInstancesResponse + var err error + defer close(result) + response, err = client.RemoveInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveInstancesRequest is the request struct for api RemoveInstances +type RemoveInstancesRequest struct { + *requests.RpcRequest + InstanceId10 string `position:"Query" name:"InstanceId.10"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId12 string `position:"Query" name:"InstanceId.12"` + InstanceId11 string `position:"Query" name:"InstanceId.11"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + InstanceId20 string `position:"Query" name:"InstanceId.20"` + InstanceId1 string `position:"Query" name:"InstanceId.1"` + InstanceId3 string `position:"Query" name:"InstanceId.3"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + InstanceId2 string `position:"Query" name:"InstanceId.2"` + InstanceId5 string `position:"Query" name:"InstanceId.5"` + InstanceId4 string `position:"Query" name:"InstanceId.4"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + InstanceId7 string `position:"Query" name:"InstanceId.7"` + InstanceId6 string `position:"Query" name:"InstanceId.6"` + InstanceId9 string `position:"Query" name:"InstanceId.9"` + InstanceId8 string `position:"Query" name:"InstanceId.8"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId18 string `position:"Query" name:"InstanceId.18"` + InstanceId17 string `position:"Query" name:"InstanceId.17"` + InstanceId19 string `position:"Query" name:"InstanceId.19"` + InstanceId14 string `position:"Query" name:"InstanceId.14"` + InstanceId13 string `position:"Query" name:"InstanceId.13"` + InstanceId16 string `position:"Query" name:"InstanceId.16"` + InstanceId15 string `position:"Query" name:"InstanceId.15"` +} + +// RemoveInstancesResponse is the response struct for api RemoveInstances +type RemoveInstancesResponse struct { + *responses.BaseResponse + ScalingActivityId string `json:"ScalingActivityId" xml:"ScalingActivityId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveInstancesRequest creates a request to invoke RemoveInstances API +func CreateRemoveInstancesRequest() (request *RemoveInstancesRequest) { + request = &RemoveInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "RemoveInstances", "ess", "openAPI") + return +} + +// CreateRemoveInstancesResponse creates a response to parse from RemoveInstances response +func CreateRemoveInstancesResponse() (response *RemoveInstancesResponse) { + response = &RemoveInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/set_instances_protection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/set_instances_protection.go new file mode 100755 index 0000000..cf8d1a7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/set_instances_protection.go @@ -0,0 +1,107 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetInstancesProtection invokes the ess.SetInstancesProtection API synchronously +// api document: https://help.aliyun.com/api/ess/setinstancesprotection.html +func (client *Client) SetInstancesProtection(request *SetInstancesProtectionRequest) (response *SetInstancesProtectionResponse, err error) { + response = CreateSetInstancesProtectionResponse() + err = client.DoAction(request, response) + return +} + +// SetInstancesProtectionWithChan invokes the ess.SetInstancesProtection API asynchronously +// api document: https://help.aliyun.com/api/ess/setinstancesprotection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetInstancesProtectionWithChan(request *SetInstancesProtectionRequest) (<-chan *SetInstancesProtectionResponse, <-chan error) { + responseChan := make(chan *SetInstancesProtectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetInstancesProtection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetInstancesProtectionWithCallback invokes the ess.SetInstancesProtection API asynchronously +// api document: https://help.aliyun.com/api/ess/setinstancesprotection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetInstancesProtectionWithCallback(request *SetInstancesProtectionRequest, callback func(response *SetInstancesProtectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetInstancesProtectionResponse + var err error + defer close(result) + response, err = client.SetInstancesProtection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetInstancesProtectionRequest is the request struct for api SetInstancesProtection +type SetInstancesProtectionRequest struct { + *requests.RpcRequest + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ScalingGroupId string `position:"Query" name:"ScalingGroupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ProtectedFromScaleIn requests.Boolean `position:"Query" name:"ProtectedFromScaleIn"` +} + +// SetInstancesProtectionResponse is the response struct for api SetInstancesProtection +type SetInstancesProtectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetInstancesProtectionRequest creates a request to invoke SetInstancesProtection API +func CreateSetInstancesProtectionRequest() (request *SetInstancesProtectionRequest) { + request = &SetInstancesProtectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "SetInstancesProtection", "ess", "openAPI") + return +} + +// CreateSetInstancesProtectionResponse creates a response to parse from SetInstancesProtection response +func CreateSetInstancesProtectionResponse() (response *SetInstancesProtectionResponse) { + response = &SetInstancesProtectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_capacity_history_items.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_capacity_history_items.go new file mode 100755 index 0000000..6bd1911 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_capacity_history_items.go @@ -0,0 +1,21 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CapacityHistoryItems is a nested struct in ess response +type CapacityHistoryItems struct { + CapacityHistoryModel []CapacityHistoryModel `json:"CapacityHistoryModel" xml:"CapacityHistoryModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_capacity_history_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_capacity_history_model.go new file mode 100755 index 0000000..b840196 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_capacity_history_model.go @@ -0,0 +1,25 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CapacityHistoryModel is a nested struct in ess response +type CapacityHistoryModel struct { + ScalingGroupId string `json:"ScalingGroupId" xml:"ScalingGroupId"` + TotalCapacity int `json:"TotalCapacity" xml:"TotalCapacity"` + AttachedCapacity int `json:"AttachedCapacity" xml:"AttachedCapacity"` + AutoCreatedCapacity int `json:"AutoCreatedCapacity" xml:"AutoCreatedCapacity"` + Timestamp string `json:"Timestamp" xml:"Timestamp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_data_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_data_disk.go new file mode 100755 index 0000000..608a75b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_data_disk.go @@ -0,0 +1,24 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataDisk is a nested struct in ess response +type DataDisk struct { + Size int `json:"Size" xml:"Size"` + Category string `json:"Category" xml:"Category"` + SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` + Device string `json:"Device" xml:"Device"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_data_disks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_data_disks.go new file mode 100755 index 0000000..7ad480b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_data_disks.go @@ -0,0 +1,21 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataDisks is a nested struct in ess response +type DataDisks struct { + DataDisk []DataDisk `json:"DataDisk" xml:"DataDisk"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_db_instance_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_db_instance_ids.go new file mode 100755 index 0000000..71e29ed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_db_instance_ids.go @@ -0,0 +1,21 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DBInstanceIds is a nested struct in ess response +type DBInstanceIds struct { + DBInstanceId []string `json:"DBInstanceId" xml:"DBInstanceId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_instance_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_instance_types.go new file mode 100755 index 0000000..ae99ace --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_instance_types.go @@ -0,0 +1,21 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceTypes is a nested struct in ess response +type InstanceTypes struct { + InstanceType []string `json:"InstanceType" xml:"InstanceType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_lifecycle_hook.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_lifecycle_hook.go new file mode 100755 index 0000000..d423e79 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_lifecycle_hook.go @@ -0,0 +1,28 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LifecycleHook is a nested struct in ess response +type LifecycleHook struct { + ScalingGroupId string `json:"ScalingGroupId" xml:"ScalingGroupId"` + LifecycleHookId string `json:"LifecycleHookId" xml:"LifecycleHookId"` + LifecycleHookName string `json:"LifecycleHookName" xml:"LifecycleHookName"` + DefaultResult string `json:"DefaultResult" xml:"DefaultResult"` + HeartbeatTimeout int `json:"HeartbeatTimeout" xml:"HeartbeatTimeout"` + LifecycleTransition string `json:"LifecycleTransition" xml:"LifecycleTransition"` + NotificationMetadata string `json:"NotificationMetadata" xml:"NotificationMetadata"` + NotificationArn string `json:"NotificationArn" xml:"NotificationArn"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_lifecycle_hooks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_lifecycle_hooks.go new file mode 100755 index 0000000..9b4f5ea --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_lifecycle_hooks.go @@ -0,0 +1,21 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LifecycleHooks is a nested struct in ess response +type LifecycleHooks struct { + LifecycleHook []LifecycleHook `json:"LifecycleHook" xml:"LifecycleHook"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_load_balancer_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_load_balancer_ids.go new file mode 100755 index 0000000..7d79084 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_load_balancer_ids.go @@ -0,0 +1,21 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LoadBalancerIds is a nested struct in ess response +type LoadBalancerIds struct { + LoadBalancerId []string `json:"LoadBalancerId" xml:"LoadBalancerId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_notification_configuration_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_notification_configuration_model.go new file mode 100755 index 0000000..da81730 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_notification_configuration_model.go @@ -0,0 +1,23 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NotificationConfigurationModel is a nested struct in ess response +type NotificationConfigurationModel struct { + ScalingGroupId string `json:"ScalingGroupId" xml:"ScalingGroupId"` + NotificationArn string `json:"NotificationArn" xml:"NotificationArn"` + NotificationTypes NotificationTypesInDescribeNotificationConfigurations `json:"NotificationTypes" xml:"NotificationTypes"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_notification_configuration_models.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_notification_configuration_models.go new file mode 100755 index 0000000..0df5b63 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_notification_configuration_models.go @@ -0,0 +1,21 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NotificationConfigurationModels is a nested struct in ess response +type NotificationConfigurationModels struct { + NotificationConfigurationModel []NotificationConfigurationModel `json:"NotificationConfigurationModel" xml:"NotificationConfigurationModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_notification_types_in_describe_notification_configurations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_notification_types_in_describe_notification_configurations.go new file mode 100755 index 0000000..e7ce7af --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_notification_types_in_describe_notification_configurations.go @@ -0,0 +1,21 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NotificationTypesInDescribeNotificationConfigurations is a nested struct in ess response +type NotificationTypesInDescribeNotificationConfigurations struct { + NotificationType []string `json:"NotificationType" xml:"NotificationType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_notification_types_in_describe_notification_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_notification_types_in_describe_notification_types.go new file mode 100755 index 0000000..88a317b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_notification_types_in_describe_notification_types.go @@ -0,0 +1,21 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NotificationTypesInDescribeNotificationTypes is a nested struct in ess response +type NotificationTypesInDescribeNotificationTypes struct { + NotificationType []string `json:"NotificationType" xml:"NotificationType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_region.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_region.go new file mode 100755 index 0000000..69cbe99 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_region.go @@ -0,0 +1,23 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 ess response +type Region struct { + RegionId string `json:"RegionId" xml:"RegionId"` + ClassicUnavailable bool `json:"ClassicUnavailable" xml:"ClassicUnavailable"` + VpcUnavailable bool `json:"VpcUnavailable" xml:"VpcUnavailable"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_regions.go new file mode 100755 index 0000000..96836e1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_regions.go @@ -0,0 +1,21 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 ess response +type Regions struct { + Region []Region `json:"Region" xml:"Region"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_removal_policies.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_removal_policies.go new file mode 100755 index 0000000..8894b3c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_removal_policies.go @@ -0,0 +1,21 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RemovalPolicies is a nested struct in ess response +type RemovalPolicies struct { + RemovalPolicy []string `json:"RemovalPolicy" xml:"RemovalPolicy"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_activities.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_activities.go new file mode 100755 index 0000000..d99a871 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_activities.go @@ -0,0 +1,21 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ScalingActivities is a nested struct in ess response +type ScalingActivities struct { + ScalingActivity []ScalingActivity `json:"ScalingActivity" xml:"ScalingActivity"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_activity.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_activity.go new file mode 100755 index 0000000..d4d3699 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_activity.go @@ -0,0 +1,32 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ScalingActivity is a nested struct in ess response +type ScalingActivity struct { + ScalingActivityId string `json:"ScalingActivityId" xml:"ScalingActivityId"` + ScalingGroupId string `json:"ScalingGroupId" xml:"ScalingGroupId"` + Description string `json:"Description" xml:"Description"` + Cause string `json:"Cause" xml:"Cause"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + Progress int `json:"Progress" xml:"Progress"` + StatusCode string `json:"StatusCode" xml:"StatusCode"` + StatusMessage string `json:"StatusMessage" xml:"StatusMessage"` + TotalCapacity string `json:"TotalCapacity" xml:"TotalCapacity"` + AttachedCapacity string `json:"AttachedCapacity" xml:"AttachedCapacity"` + AutoCreatedCapacity string `json:"AutoCreatedCapacity" xml:"AutoCreatedCapacity"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_configuration.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_configuration.go new file mode 100755 index 0000000..d49127d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_configuration.go @@ -0,0 +1,49 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ScalingConfiguration is a nested struct in ess response +type ScalingConfiguration struct { + ScalingConfigurationId string `json:"ScalingConfigurationId" xml:"ScalingConfigurationId"` + ScalingConfigurationName string `json:"ScalingConfigurationName" xml:"ScalingConfigurationName"` + ScalingGroupId string `json:"ScalingGroupId" xml:"ScalingGroupId"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + ImageId string `json:"ImageId" xml:"ImageId"` + HostName string `json:"HostName" xml:"HostName"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + InstanceGeneration string `json:"InstanceGeneration" xml:"InstanceGeneration"` + SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` + IoOptimized string `json:"IoOptimized" xml:"IoOptimized"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + InternetMaxBandwidthIn int `json:"InternetMaxBandwidthIn" xml:"InternetMaxBandwidthIn"` + InternetMaxBandwidthOut int `json:"InternetMaxBandwidthOut" xml:"InternetMaxBandwidthOut"` + SystemDiskCategory string `json:"SystemDiskCategory" xml:"SystemDiskCategory"` + SystemDiskSize int `json:"SystemDiskSize" xml:"SystemDiskSize"` + LifecycleState string `json:"LifecycleState" xml:"LifecycleState"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + LoadBalancerWeight int `json:"LoadBalancerWeight" xml:"LoadBalancerWeight"` + UserData string `json:"UserData" xml:"UserData"` + KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` + RamRoleName string `json:"RamRoleName" xml:"RamRoleName"` + DeploymentSetId string `json:"DeploymentSetId" xml:"DeploymentSetId"` + SecurityEnhancementStrategy string `json:"SecurityEnhancementStrategy" xml:"SecurityEnhancementStrategy"` + SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` + PasswordInherit bool `json:"PasswordInherit" xml:"PasswordInherit"` + InstanceTypes InstanceTypes `json:"InstanceTypes" xml:"InstanceTypes"` + DataDisks DataDisks `json:"DataDisks" xml:"DataDisks"` + Tags Tags `json:"Tags" xml:"Tags"` + SpotPriceLimit SpotPriceLimit `json:"SpotPriceLimit" xml:"SpotPriceLimit"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_configurations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_configurations.go new file mode 100755 index 0000000..22cf3a1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_configurations.go @@ -0,0 +1,21 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ScalingConfigurations is a nested struct in ess response +type ScalingConfigurations struct { + ScalingConfiguration []ScalingConfiguration `json:"ScalingConfiguration" xml:"ScalingConfiguration"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_group.go new file mode 100755 index 0000000..b5dbf77 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_group.go @@ -0,0 +1,46 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ScalingGroup is a nested struct in ess response +type ScalingGroup struct { + DefaultCooldown int `json:"DefaultCooldown" xml:"DefaultCooldown"` + MaxSize int `json:"MaxSize" xml:"MaxSize"` + PendingWaitCapacity int `json:"PendingWaitCapacity" xml:"PendingWaitCapacity"` + RemovingWaitCapacity int `json:"RemovingWaitCapacity" xml:"RemovingWaitCapacity"` + PendingCapacity int `json:"PendingCapacity" xml:"PendingCapacity"` + RemovingCapacity int `json:"RemovingCapacity" xml:"RemovingCapacity"` + ScalingGroupName string `json:"ScalingGroupName" xml:"ScalingGroupName"` + ActiveCapacity int `json:"ActiveCapacity" xml:"ActiveCapacity"` + StandbyCapacity int `json:"StandbyCapacity" xml:"StandbyCapacity"` + ProtectedCapacity int `json:"ProtectedCapacity" xml:"ProtectedCapacity"` + ActiveScalingConfigurationId string `json:"ActiveScalingConfigurationId" xml:"ActiveScalingConfigurationId"` + ScalingGroupId string `json:"ScalingGroupId" xml:"ScalingGroupId"` + RegionId string `json:"RegionId" xml:"RegionId"` + TotalCapacity int `json:"TotalCapacity" xml:"TotalCapacity"` + MinSize int `json:"MinSize" xml:"MinSize"` + LifecycleState string `json:"LifecycleState" xml:"LifecycleState"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + ModificationTime string `json:"ModificationTime" xml:"ModificationTime"` + VpcId string `json:"VpcId" xml:"VpcId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + MultiAZPolicy string `json:"MultiAZPolicy" xml:"MultiAZPolicy"` + HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` + VSwitchIds VSwitchIds `json:"VSwitchIds" xml:"VSwitchIds"` + RemovalPolicies RemovalPolicies `json:"RemovalPolicies" xml:"RemovalPolicies"` + DBInstanceIds DBInstanceIds `json:"DBInstanceIds" xml:"DBInstanceIds"` + LoadBalancerIds LoadBalancerIds `json:"LoadBalancerIds" xml:"LoadBalancerIds"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_groups.go new file mode 100755 index 0000000..e96b8b1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_groups.go @@ -0,0 +1,21 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ScalingGroups is a nested struct in ess response +type ScalingGroups struct { + ScalingGroup []ScalingGroup `json:"ScalingGroup" xml:"ScalingGroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_instance.go new file mode 100755 index 0000000..75181f7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_instance.go @@ -0,0 +1,28 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ScalingInstance is a nested struct in ess response +type ScalingInstance struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + ScalingConfigurationId string `json:"ScalingConfigurationId" xml:"ScalingConfigurationId"` + ScalingGroupId string `json:"ScalingGroupId" xml:"ScalingGroupId"` + HealthStatus string `json:"HealthStatus" xml:"HealthStatus"` + LoadBalancerWeight int `json:"LoadBalancerWeight" xml:"LoadBalancerWeight"` + LifecycleState string `json:"LifecycleState" xml:"LifecycleState"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + CreationType string `json:"CreationType" xml:"CreationType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_instances.go new file mode 100755 index 0000000..17efeee --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_instances.go @@ -0,0 +1,21 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ScalingInstances is a nested struct in ess response +type ScalingInstances struct { + ScalingInstance []ScalingInstance `json:"ScalingInstance" xml:"ScalingInstance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_rule.go new file mode 100755 index 0000000..cd3a555 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_rule.go @@ -0,0 +1,29 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ScalingRule is a nested struct in ess response +type ScalingRule struct { + ScalingRuleId string `json:"ScalingRuleId" xml:"ScalingRuleId"` + ScalingGroupId string `json:"ScalingGroupId" xml:"ScalingGroupId"` + ScalingRuleName string `json:"ScalingRuleName" xml:"ScalingRuleName"` + Cooldown int `json:"Cooldown" xml:"Cooldown"` + AdjustmentType string `json:"AdjustmentType" xml:"AdjustmentType"` + AdjustmentValue int `json:"AdjustmentValue" xml:"AdjustmentValue"` + MinSize int `json:"MinSize" xml:"MinSize"` + MaxSize int `json:"MaxSize" xml:"MaxSize"` + ScalingRuleAri string `json:"ScalingRuleAri" xml:"ScalingRuleAri"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_rules.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_rules.go new file mode 100755 index 0000000..782c768 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scaling_rules.go @@ -0,0 +1,21 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ScalingRules is a nested struct in ess response +type ScalingRules struct { + ScalingRule []ScalingRule `json:"ScalingRule" xml:"ScalingRule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scheduled_task.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scheduled_task.go new file mode 100755 index 0000000..945e830 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scheduled_task.go @@ -0,0 +1,30 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ScheduledTask is a nested struct in ess response +type ScheduledTask struct { + ScheduledTaskId string `json:"ScheduledTaskId" xml:"ScheduledTaskId"` + ScheduledTaskName string `json:"ScheduledTaskName" xml:"ScheduledTaskName"` + Description string `json:"Description" xml:"Description"` + ScheduledAction string `json:"ScheduledAction" xml:"ScheduledAction"` + RecurrenceEndTime string `json:"RecurrenceEndTime" xml:"RecurrenceEndTime"` + LaunchTime string `json:"LaunchTime" xml:"LaunchTime"` + RecurrenceType string `json:"RecurrenceType" xml:"RecurrenceType"` + RecurrenceValue string `json:"RecurrenceValue" xml:"RecurrenceValue"` + LaunchExpirationTime int `json:"LaunchExpirationTime" xml:"LaunchExpirationTime"` + TaskEnabled bool `json:"TaskEnabled" xml:"TaskEnabled"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scheduled_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scheduled_tasks.go new file mode 100755 index 0000000..7baafdc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_scheduled_tasks.go @@ -0,0 +1,21 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ScheduledTasks is a nested struct in ess response +type ScheduledTasks struct { + ScheduledTask []ScheduledTask `json:"ScheduledTask" xml:"ScheduledTask"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_spot_price_limit.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_spot_price_limit.go new file mode 100755 index 0000000..f73290b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_spot_price_limit.go @@ -0,0 +1,21 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SpotPriceLimit is a nested struct in ess response +type SpotPriceLimit struct { + SpotPriceModel []SpotPriceModel `json:"SpotPriceModel" xml:"SpotPriceModel"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_spot_price_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_spot_price_model.go new file mode 100755 index 0000000..0bcb169 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_spot_price_model.go @@ -0,0 +1,22 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SpotPriceModel is a nested struct in ess response +type SpotPriceModel struct { + InstanceType string `json:"InstanceType" xml:"InstanceType"` + PriceLimit float64 `json:"PriceLimit" xml:"PriceLimit"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_tag.go new file mode 100755 index 0000000..5fd68fa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_tag.go @@ -0,0 +1,22 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 ess response +type Tag 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/ess/struct_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_tags.go new file mode 100755 index 0000000..5585fa1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_tags.go @@ -0,0 +1,21 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 ess response +type Tags struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_v_switch_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_v_switch_ids.go new file mode 100755 index 0000000..f802a29 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/struct_v_switch_ids.go @@ -0,0 +1,21 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VSwitchIds is a nested struct in ess response +type VSwitchIds struct { + VSwitchId []string `json:"VSwitchId" xml:"VSwitchId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/verify_authentication.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/verify_authentication.go new file mode 100755 index 0000000..61a5f6c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/verify_authentication.go @@ -0,0 +1,106 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// VerifyAuthentication invokes the ess.VerifyAuthentication API synchronously +// api document: https://help.aliyun.com/api/ess/verifyauthentication.html +func (client *Client) VerifyAuthentication(request *VerifyAuthenticationRequest) (response *VerifyAuthenticationResponse, err error) { + response = CreateVerifyAuthenticationResponse() + err = client.DoAction(request, response) + return +} + +// VerifyAuthenticationWithChan invokes the ess.VerifyAuthentication API asynchronously +// api document: https://help.aliyun.com/api/ess/verifyauthentication.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VerifyAuthenticationWithChan(request *VerifyAuthenticationRequest) (<-chan *VerifyAuthenticationResponse, <-chan error) { + responseChan := make(chan *VerifyAuthenticationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.VerifyAuthentication(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// VerifyAuthenticationWithCallback invokes the ess.VerifyAuthentication API asynchronously +// api document: https://help.aliyun.com/api/ess/verifyauthentication.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VerifyAuthenticationWithCallback(request *VerifyAuthenticationRequest, callback func(response *VerifyAuthenticationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *VerifyAuthenticationResponse + var err error + defer close(result) + response, err = client.VerifyAuthentication(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// VerifyAuthenticationRequest is the request struct for api VerifyAuthentication +type VerifyAuthenticationRequest struct { + *requests.RpcRequest + Uid requests.Integer `position:"Query" name:"Uid"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// VerifyAuthenticationResponse is the response struct for api VerifyAuthentication +type VerifyAuthenticationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateVerifyAuthenticationRequest creates a request to invoke VerifyAuthentication API +func CreateVerifyAuthenticationRequest() (request *VerifyAuthenticationRequest) { + request = &VerifyAuthenticationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "VerifyAuthentication", "ess", "openAPI") + return +} + +// CreateVerifyAuthenticationResponse creates a response to parse from VerifyAuthentication response +func CreateVerifyAuthenticationResponse() (response *VerifyAuthenticationResponse) { + response = &VerifyAuthenticationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/verify_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/verify_user.go new file mode 100755 index 0000000..1296b42 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ess/verify_user.go @@ -0,0 +1,104 @@ +package ess + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// VerifyUser invokes the ess.VerifyUser API synchronously +// api document: https://help.aliyun.com/api/ess/verifyuser.html +func (client *Client) VerifyUser(request *VerifyUserRequest) (response *VerifyUserResponse, err error) { + response = CreateVerifyUserResponse() + err = client.DoAction(request, response) + return +} + +// VerifyUserWithChan invokes the ess.VerifyUser API asynchronously +// api document: https://help.aliyun.com/api/ess/verifyuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VerifyUserWithChan(request *VerifyUserRequest) (<-chan *VerifyUserResponse, <-chan error) { + responseChan := make(chan *VerifyUserResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.VerifyUser(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// VerifyUserWithCallback invokes the ess.VerifyUser API asynchronously +// api document: https://help.aliyun.com/api/ess/verifyuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VerifyUserWithCallback(request *VerifyUserRequest, callback func(response *VerifyUserResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *VerifyUserResponse + var err error + defer close(result) + response, err = client.VerifyUser(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// VerifyUserRequest is the request struct for api VerifyUser +type VerifyUserRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// VerifyUserResponse is the response struct for api VerifyUser +type VerifyUserResponse struct { + *responses.BaseResponse +} + +// CreateVerifyUserRequest creates a request to invoke VerifyUser API +func CreateVerifyUserRequest() (request *VerifyUserRequest) { + request = &VerifyUserRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ess", "2014-08-28", "VerifyUser", "ess", "openAPI") + return +} + +// CreateVerifyUserResponse creates a response to parse from VerifyUser response +func CreateVerifyUserResponse() (response *VerifyUserResponse) { + response = &VerifyUserResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/add_faces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/add_faces.go new file mode 100644 index 0000000..c0d27a8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/add_faces.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddFaces invokes the green.AddFaces API synchronously +// api document: https://help.aliyun.com/api/green/addfaces.html +func (client *Client) AddFaces(request *AddFacesRequest) (response *AddFacesResponse, err error) { + response = CreateAddFacesResponse() + err = client.DoAction(request, response) + return +} + +// AddFacesWithChan invokes the green.AddFaces API asynchronously +// api document: https://help.aliyun.com/api/green/addfaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddFacesWithChan(request *AddFacesRequest) (<-chan *AddFacesResponse, <-chan error) { + responseChan := make(chan *AddFacesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddFaces(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddFacesWithCallback invokes the green.AddFaces API asynchronously +// api document: https://help.aliyun.com/api/green/addfaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddFacesWithCallback(request *AddFacesRequest, callback func(response *AddFacesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddFacesResponse + var err error + defer close(result) + response, err = client.AddFaces(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddFacesRequest is the request struct for api AddFaces +type AddFacesRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// AddFacesResponse is the response struct for api AddFaces +type AddFacesResponse struct { + *responses.BaseResponse +} + +// CreateAddFacesRequest creates a request to invoke AddFaces API +func CreateAddFacesRequest() (request *AddFacesRequest) { + request = &AddFacesRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "AddFaces", "/green/sface/face/add", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateAddFacesResponse creates a response to parse from AddFaces response +func CreateAddFacesResponse() (response *AddFacesResponse) { + response = &AddFacesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/add_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/add_groups.go new file mode 100644 index 0000000..cc6b5f4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/add_groups.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddGroups invokes the green.AddGroups API synchronously +// api document: https://help.aliyun.com/api/green/addgroups.html +func (client *Client) AddGroups(request *AddGroupsRequest) (response *AddGroupsResponse, err error) { + response = CreateAddGroupsResponse() + err = client.DoAction(request, response) + return +} + +// AddGroupsWithChan invokes the green.AddGroups API asynchronously +// api document: https://help.aliyun.com/api/green/addgroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddGroupsWithChan(request *AddGroupsRequest) (<-chan *AddGroupsResponse, <-chan error) { + responseChan := make(chan *AddGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddGroupsWithCallback invokes the green.AddGroups API asynchronously +// api document: https://help.aliyun.com/api/green/addgroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddGroupsWithCallback(request *AddGroupsRequest, callback func(response *AddGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddGroupsResponse + var err error + defer close(result) + response, err = client.AddGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddGroupsRequest is the request struct for api AddGroups +type AddGroupsRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// AddGroupsResponse is the response struct for api AddGroups +type AddGroupsResponse struct { + *responses.BaseResponse +} + +// CreateAddGroupsRequest creates a request to invoke AddGroups API +func CreateAddGroupsRequest() (request *AddGroupsRequest) { + request = &AddGroupsRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "AddGroups", "/green/sface/person/groups/add", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateAddGroupsResponse creates a response to parse from AddGroups response +func CreateAddGroupsResponse() (response *AddGroupsResponse) { + response = &AddGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/add_person.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/add_person.go new file mode 100644 index 0000000..e6bff25 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/add_person.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddPerson invokes the green.AddPerson API synchronously +// api document: https://help.aliyun.com/api/green/addperson.html +func (client *Client) AddPerson(request *AddPersonRequest) (response *AddPersonResponse, err error) { + response = CreateAddPersonResponse() + err = client.DoAction(request, response) + return +} + +// AddPersonWithChan invokes the green.AddPerson API asynchronously +// api document: https://help.aliyun.com/api/green/addperson.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddPersonWithChan(request *AddPersonRequest) (<-chan *AddPersonResponse, <-chan error) { + responseChan := make(chan *AddPersonResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddPerson(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddPersonWithCallback invokes the green.AddPerson API asynchronously +// api document: https://help.aliyun.com/api/green/addperson.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddPersonWithCallback(request *AddPersonRequest, callback func(response *AddPersonResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddPersonResponse + var err error + defer close(result) + response, err = client.AddPerson(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddPersonRequest is the request struct for api AddPerson +type AddPersonRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// AddPersonResponse is the response struct for api AddPerson +type AddPersonResponse struct { + *responses.BaseResponse +} + +// CreateAddPersonRequest creates a request to invoke AddPerson API +func CreateAddPersonRequest() (request *AddPersonRequest) { + request = &AddPersonRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "AddPerson", "/green/sface/person/add", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateAddPersonResponse creates a response to parse from AddPerson response +func CreateAddPersonResponse() (response *AddPersonResponse) { + response = &AddPersonResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/add_similarity_image.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/add_similarity_image.go new file mode 100644 index 0000000..b57ba83 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/add_similarity_image.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddSimilarityImage invokes the green.AddSimilarityImage API synchronously +// api document: https://help.aliyun.com/api/green/addsimilarityimage.html +func (client *Client) AddSimilarityImage(request *AddSimilarityImageRequest) (response *AddSimilarityImageResponse, err error) { + response = CreateAddSimilarityImageResponse() + err = client.DoAction(request, response) + return +} + +// AddSimilarityImageWithChan invokes the green.AddSimilarityImage API asynchronously +// api document: https://help.aliyun.com/api/green/addsimilarityimage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddSimilarityImageWithChan(request *AddSimilarityImageRequest) (<-chan *AddSimilarityImageResponse, <-chan error) { + responseChan := make(chan *AddSimilarityImageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddSimilarityImage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddSimilarityImageWithCallback invokes the green.AddSimilarityImage API asynchronously +// api document: https://help.aliyun.com/api/green/addsimilarityimage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddSimilarityImageWithCallback(request *AddSimilarityImageRequest, callback func(response *AddSimilarityImageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddSimilarityImageResponse + var err error + defer close(result) + response, err = client.AddSimilarityImage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddSimilarityImageRequest is the request struct for api AddSimilarityImage +type AddSimilarityImageRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// AddSimilarityImageResponse is the response struct for api AddSimilarityImage +type AddSimilarityImageResponse struct { + *responses.BaseResponse +} + +// CreateAddSimilarityImageRequest creates a request to invoke AddSimilarityImage API +func CreateAddSimilarityImageRequest() (request *AddSimilarityImageRequest) { + request = &AddSimilarityImageRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "AddSimilarityImage", "/green/similarity/image/add", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateAddSimilarityImageResponse creates a response to parse from AddSimilarityImage response +func CreateAddSimilarityImageResponse() (response *AddSimilarityImageResponse) { + response = &AddSimilarityImageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/client.go new file mode 100644 index 0000000..88fc2d1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/client.go @@ -0,0 +1,81 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/delete_faces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/delete_faces.go new file mode 100644 index 0000000..b22e912 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/delete_faces.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteFaces invokes the green.DeleteFaces API synchronously +// api document: https://help.aliyun.com/api/green/deletefaces.html +func (client *Client) DeleteFaces(request *DeleteFacesRequest) (response *DeleteFacesResponse, err error) { + response = CreateDeleteFacesResponse() + err = client.DoAction(request, response) + return +} + +// DeleteFacesWithChan invokes the green.DeleteFaces API asynchronously +// api document: https://help.aliyun.com/api/green/deletefaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteFacesWithChan(request *DeleteFacesRequest) (<-chan *DeleteFacesResponse, <-chan error) { + responseChan := make(chan *DeleteFacesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteFaces(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteFacesWithCallback invokes the green.DeleteFaces API asynchronously +// api document: https://help.aliyun.com/api/green/deletefaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteFacesWithCallback(request *DeleteFacesRequest, callback func(response *DeleteFacesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteFacesResponse + var err error + defer close(result) + response, err = client.DeleteFaces(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteFacesRequest is the request struct for api DeleteFaces +type DeleteFacesRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// DeleteFacesResponse is the response struct for api DeleteFaces +type DeleteFacesResponse struct { + *responses.BaseResponse +} + +// CreateDeleteFacesRequest creates a request to invoke DeleteFaces API +func CreateDeleteFacesRequest() (request *DeleteFacesRequest) { + request = &DeleteFacesRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "DeleteFaces", "/green/sface/face/delete", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteFacesResponse creates a response to parse from DeleteFaces response +func CreateDeleteFacesResponse() (response *DeleteFacesResponse) { + response = &DeleteFacesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/delete_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/delete_groups.go new file mode 100644 index 0000000..91bc374 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/delete_groups.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteGroups invokes the green.DeleteGroups API synchronously +// api document: https://help.aliyun.com/api/green/deletegroups.html +func (client *Client) DeleteGroups(request *DeleteGroupsRequest) (response *DeleteGroupsResponse, err error) { + response = CreateDeleteGroupsResponse() + err = client.DoAction(request, response) + return +} + +// DeleteGroupsWithChan invokes the green.DeleteGroups API asynchronously +// api document: https://help.aliyun.com/api/green/deletegroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteGroupsWithChan(request *DeleteGroupsRequest) (<-chan *DeleteGroupsResponse, <-chan error) { + responseChan := make(chan *DeleteGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteGroupsWithCallback invokes the green.DeleteGroups API asynchronously +// api document: https://help.aliyun.com/api/green/deletegroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteGroupsWithCallback(request *DeleteGroupsRequest, callback func(response *DeleteGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteGroupsResponse + var err error + defer close(result) + response, err = client.DeleteGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteGroupsRequest is the request struct for api DeleteGroups +type DeleteGroupsRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// DeleteGroupsResponse is the response struct for api DeleteGroups +type DeleteGroupsResponse struct { + *responses.BaseResponse +} + +// CreateDeleteGroupsRequest creates a request to invoke DeleteGroups API +func CreateDeleteGroupsRequest() (request *DeleteGroupsRequest) { + request = &DeleteGroupsRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "DeleteGroups", "/green/sface/person/groups/delete", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteGroupsResponse creates a response to parse from DeleteGroups response +func CreateDeleteGroupsResponse() (response *DeleteGroupsResponse) { + response = &DeleteGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/delete_person.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/delete_person.go new file mode 100644 index 0000000..df4330b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/delete_person.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeletePerson invokes the green.DeletePerson API synchronously +// api document: https://help.aliyun.com/api/green/deleteperson.html +func (client *Client) DeletePerson(request *DeletePersonRequest) (response *DeletePersonResponse, err error) { + response = CreateDeletePersonResponse() + err = client.DoAction(request, response) + return +} + +// DeletePersonWithChan invokes the green.DeletePerson API asynchronously +// api document: https://help.aliyun.com/api/green/deleteperson.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeletePersonWithChan(request *DeletePersonRequest) (<-chan *DeletePersonResponse, <-chan error) { + responseChan := make(chan *DeletePersonResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeletePerson(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeletePersonWithCallback invokes the green.DeletePerson API asynchronously +// api document: https://help.aliyun.com/api/green/deleteperson.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeletePersonWithCallback(request *DeletePersonRequest, callback func(response *DeletePersonResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeletePersonResponse + var err error + defer close(result) + response, err = client.DeletePerson(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeletePersonRequest is the request struct for api DeletePerson +type DeletePersonRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// DeletePersonResponse is the response struct for api DeletePerson +type DeletePersonResponse struct { + *responses.BaseResponse +} + +// CreateDeletePersonRequest creates a request to invoke DeletePerson API +func CreateDeletePersonRequest() (request *DeletePersonRequest) { + request = &DeletePersonRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "DeletePerson", "/green/sface/person/delete", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeletePersonResponse creates a response to parse from DeletePerson response +func CreateDeletePersonResponse() (response *DeletePersonResponse) { + response = &DeletePersonResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/delete_similarity_image.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/delete_similarity_image.go new file mode 100644 index 0000000..2c6f3bc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/delete_similarity_image.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteSimilarityImage invokes the green.DeleteSimilarityImage API synchronously +// api document: https://help.aliyun.com/api/green/deletesimilarityimage.html +func (client *Client) DeleteSimilarityImage(request *DeleteSimilarityImageRequest) (response *DeleteSimilarityImageResponse, err error) { + response = CreateDeleteSimilarityImageResponse() + err = client.DoAction(request, response) + return +} + +// DeleteSimilarityImageWithChan invokes the green.DeleteSimilarityImage API asynchronously +// api document: https://help.aliyun.com/api/green/deletesimilarityimage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSimilarityImageWithChan(request *DeleteSimilarityImageRequest) (<-chan *DeleteSimilarityImageResponse, <-chan error) { + responseChan := make(chan *DeleteSimilarityImageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteSimilarityImage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteSimilarityImageWithCallback invokes the green.DeleteSimilarityImage API asynchronously +// api document: https://help.aliyun.com/api/green/deletesimilarityimage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSimilarityImageWithCallback(request *DeleteSimilarityImageRequest, callback func(response *DeleteSimilarityImageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteSimilarityImageResponse + var err error + defer close(result) + response, err = client.DeleteSimilarityImage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteSimilarityImageRequest is the request struct for api DeleteSimilarityImage +type DeleteSimilarityImageRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// DeleteSimilarityImageResponse is the response struct for api DeleteSimilarityImage +type DeleteSimilarityImageResponse struct { + *responses.BaseResponse +} + +// CreateDeleteSimilarityImageRequest creates a request to invoke DeleteSimilarityImage API +func CreateDeleteSimilarityImageRequest() (request *DeleteSimilarityImageRequest) { + request = &DeleteSimilarityImageRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "DeleteSimilarityImage", "/green/similarity/image/delete", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteSimilarityImageResponse creates a response to parse from DeleteSimilarityImage response +func CreateDeleteSimilarityImageResponse() (response *DeleteSimilarityImageResponse) { + response = &DeleteSimilarityImageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/file_async_scan.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/file_async_scan.go new file mode 100644 index 0000000..34231e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/file_async_scan.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// FileAsyncScan invokes the green.FileAsyncScan API synchronously +// api document: https://help.aliyun.com/api/green/fileasyncscan.html +func (client *Client) FileAsyncScan(request *FileAsyncScanRequest) (response *FileAsyncScanResponse, err error) { + response = CreateFileAsyncScanResponse() + err = client.DoAction(request, response) + return +} + +// FileAsyncScanWithChan invokes the green.FileAsyncScan API asynchronously +// api document: https://help.aliyun.com/api/green/fileasyncscan.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FileAsyncScanWithChan(request *FileAsyncScanRequest) (<-chan *FileAsyncScanResponse, <-chan error) { + responseChan := make(chan *FileAsyncScanResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.FileAsyncScan(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// FileAsyncScanWithCallback invokes the green.FileAsyncScan API asynchronously +// api document: https://help.aliyun.com/api/green/fileasyncscan.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FileAsyncScanWithCallback(request *FileAsyncScanRequest, callback func(response *FileAsyncScanResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *FileAsyncScanResponse + var err error + defer close(result) + response, err = client.FileAsyncScan(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// FileAsyncScanRequest is the request struct for api FileAsyncScan +type FileAsyncScanRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// FileAsyncScanResponse is the response struct for api FileAsyncScan +type FileAsyncScanResponse struct { + *responses.BaseResponse +} + +// CreateFileAsyncScanRequest creates a request to invoke FileAsyncScan API +func CreateFileAsyncScanRequest() (request *FileAsyncScanRequest) { + request = &FileAsyncScanRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "FileAsyncScan", "/green/file/asyncscan", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateFileAsyncScanResponse creates a response to parse from FileAsyncScan response +func CreateFileAsyncScanResponse() (response *FileAsyncScanResponse) { + response = &FileAsyncScanResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/file_async_scan_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/file_async_scan_results.go new file mode 100644 index 0000000..107e017 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/file_async_scan_results.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// FileAsyncScanResults invokes the green.FileAsyncScanResults API synchronously +// api document: https://help.aliyun.com/api/green/fileasyncscanresults.html +func (client *Client) FileAsyncScanResults(request *FileAsyncScanResultsRequest) (response *FileAsyncScanResultsResponse, err error) { + response = CreateFileAsyncScanResultsResponse() + err = client.DoAction(request, response) + return +} + +// FileAsyncScanResultsWithChan invokes the green.FileAsyncScanResults API asynchronously +// api document: https://help.aliyun.com/api/green/fileasyncscanresults.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FileAsyncScanResultsWithChan(request *FileAsyncScanResultsRequest) (<-chan *FileAsyncScanResultsResponse, <-chan error) { + responseChan := make(chan *FileAsyncScanResultsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.FileAsyncScanResults(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// FileAsyncScanResultsWithCallback invokes the green.FileAsyncScanResults API asynchronously +// api document: https://help.aliyun.com/api/green/fileasyncscanresults.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FileAsyncScanResultsWithCallback(request *FileAsyncScanResultsRequest, callback func(response *FileAsyncScanResultsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *FileAsyncScanResultsResponse + var err error + defer close(result) + response, err = client.FileAsyncScanResults(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// FileAsyncScanResultsRequest is the request struct for api FileAsyncScanResults +type FileAsyncScanResultsRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// FileAsyncScanResultsResponse is the response struct for api FileAsyncScanResults +type FileAsyncScanResultsResponse struct { + *responses.BaseResponse +} + +// CreateFileAsyncScanResultsRequest creates a request to invoke FileAsyncScanResults API +func CreateFileAsyncScanResultsRequest() (request *FileAsyncScanResultsRequest) { + request = &FileAsyncScanResultsRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "FileAsyncScanResults", "/green/file/results", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateFileAsyncScanResultsResponse creates a response to parse from FileAsyncScanResults response +func CreateFileAsyncScanResultsResponse() (response *FileAsyncScanResultsResponse) { + response = &FileAsyncScanResultsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/get_faces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/get_faces.go new file mode 100644 index 0000000..ddbdae3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/get_faces.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetFaces invokes the green.GetFaces API synchronously +// api document: https://help.aliyun.com/api/green/getfaces.html +func (client *Client) GetFaces(request *GetFacesRequest) (response *GetFacesResponse, err error) { + response = CreateGetFacesResponse() + err = client.DoAction(request, response) + return +} + +// GetFacesWithChan invokes the green.GetFaces API asynchronously +// api document: https://help.aliyun.com/api/green/getfaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetFacesWithChan(request *GetFacesRequest) (<-chan *GetFacesResponse, <-chan error) { + responseChan := make(chan *GetFacesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetFaces(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetFacesWithCallback invokes the green.GetFaces API asynchronously +// api document: https://help.aliyun.com/api/green/getfaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetFacesWithCallback(request *GetFacesRequest, callback func(response *GetFacesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetFacesResponse + var err error + defer close(result) + response, err = client.GetFaces(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetFacesRequest is the request struct for api GetFaces +type GetFacesRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// GetFacesResponse is the response struct for api GetFaces +type GetFacesResponse struct { + *responses.BaseResponse +} + +// CreateGetFacesRequest creates a request to invoke GetFaces API +func CreateGetFacesRequest() (request *GetFacesRequest) { + request = &GetFacesRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "GetFaces", "/green/sface/getFaces", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateGetFacesResponse creates a response to parse from GetFaces response +func CreateGetFacesResponse() (response *GetFacesResponse) { + response = &GetFacesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/get_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/get_groups.go new file mode 100644 index 0000000..4f291ef --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/get_groups.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetGroups invokes the green.GetGroups API synchronously +// api document: https://help.aliyun.com/api/green/getgroups.html +func (client *Client) GetGroups(request *GetGroupsRequest) (response *GetGroupsResponse, err error) { + response = CreateGetGroupsResponse() + err = client.DoAction(request, response) + return +} + +// GetGroupsWithChan invokes the green.GetGroups API asynchronously +// api document: https://help.aliyun.com/api/green/getgroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetGroupsWithChan(request *GetGroupsRequest) (<-chan *GetGroupsResponse, <-chan error) { + responseChan := make(chan *GetGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetGroupsWithCallback invokes the green.GetGroups API asynchronously +// api document: https://help.aliyun.com/api/green/getgroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetGroupsWithCallback(request *GetGroupsRequest, callback func(response *GetGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetGroupsResponse + var err error + defer close(result) + response, err = client.GetGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetGroupsRequest is the request struct for api GetGroups +type GetGroupsRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// GetGroupsResponse is the response struct for api GetGroups +type GetGroupsResponse struct { + *responses.BaseResponse +} + +// CreateGetGroupsRequest creates a request to invoke GetGroups API +func CreateGetGroupsRequest() (request *GetGroupsRequest) { + request = &GetGroupsRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "GetGroups", "/green/sface/groups", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateGetGroupsResponse creates a response to parse from GetGroups response +func CreateGetGroupsResponse() (response *GetGroupsResponse) { + response = &GetGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/get_person.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/get_person.go new file mode 100644 index 0000000..a81af15 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/get_person.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetPerson invokes the green.GetPerson API synchronously +// api document: https://help.aliyun.com/api/green/getperson.html +func (client *Client) GetPerson(request *GetPersonRequest) (response *GetPersonResponse, err error) { + response = CreateGetPersonResponse() + err = client.DoAction(request, response) + return +} + +// GetPersonWithChan invokes the green.GetPerson API asynchronously +// api document: https://help.aliyun.com/api/green/getperson.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPersonWithChan(request *GetPersonRequest) (<-chan *GetPersonResponse, <-chan error) { + responseChan := make(chan *GetPersonResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetPerson(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetPersonWithCallback invokes the green.GetPerson API asynchronously +// api document: https://help.aliyun.com/api/green/getperson.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPersonWithCallback(request *GetPersonRequest, callback func(response *GetPersonResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetPersonResponse + var err error + defer close(result) + response, err = client.GetPerson(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetPersonRequest is the request struct for api GetPerson +type GetPersonRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// GetPersonResponse is the response struct for api GetPerson +type GetPersonResponse struct { + *responses.BaseResponse +} + +// CreateGetPersonRequest creates a request to invoke GetPerson API +func CreateGetPersonRequest() (request *GetPersonRequest) { + request = &GetPersonRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "GetPerson", "/green/sface/person", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateGetPersonResponse creates a response to parse from GetPerson response +func CreateGetPersonResponse() (response *GetPersonResponse) { + response = &GetPersonResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/get_persons.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/get_persons.go new file mode 100644 index 0000000..2bdf6f8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/get_persons.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetPersons invokes the green.GetPersons API synchronously +// api document: https://help.aliyun.com/api/green/getpersons.html +func (client *Client) GetPersons(request *GetPersonsRequest) (response *GetPersonsResponse, err error) { + response = CreateGetPersonsResponse() + err = client.DoAction(request, response) + return +} + +// GetPersonsWithChan invokes the green.GetPersons API asynchronously +// api document: https://help.aliyun.com/api/green/getpersons.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPersonsWithChan(request *GetPersonsRequest) (<-chan *GetPersonsResponse, <-chan error) { + responseChan := make(chan *GetPersonsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetPersons(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetPersonsWithCallback invokes the green.GetPersons API asynchronously +// api document: https://help.aliyun.com/api/green/getpersons.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPersonsWithCallback(request *GetPersonsRequest, callback func(response *GetPersonsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetPersonsResponse + var err error + defer close(result) + response, err = client.GetPersons(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetPersonsRequest is the request struct for api GetPersons +type GetPersonsRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// GetPersonsResponse is the response struct for api GetPersons +type GetPersonsResponse struct { + *responses.BaseResponse +} + +// CreateGetPersonsRequest creates a request to invoke GetPersons API +func CreateGetPersonsRequest() (request *GetPersonsRequest) { + request = &GetPersonsRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "GetPersons", "/green/sface/group/persons", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateGetPersonsResponse creates a response to parse from GetPersons response +func CreateGetPersonsResponse() (response *GetPersonsResponse) { + response = &GetPersonsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/image_async_scan.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/image_async_scan.go new file mode 100644 index 0000000..0042f31 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/image_async_scan.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ImageAsyncScan invokes the green.ImageAsyncScan API synchronously +// api document: https://help.aliyun.com/api/green/imageasyncscan.html +func (client *Client) ImageAsyncScan(request *ImageAsyncScanRequest) (response *ImageAsyncScanResponse, err error) { + response = CreateImageAsyncScanResponse() + err = client.DoAction(request, response) + return +} + +// ImageAsyncScanWithChan invokes the green.ImageAsyncScan API asynchronously +// api document: https://help.aliyun.com/api/green/imageasyncscan.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImageAsyncScanWithChan(request *ImageAsyncScanRequest) (<-chan *ImageAsyncScanResponse, <-chan error) { + responseChan := make(chan *ImageAsyncScanResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ImageAsyncScan(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ImageAsyncScanWithCallback invokes the green.ImageAsyncScan API asynchronously +// api document: https://help.aliyun.com/api/green/imageasyncscan.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImageAsyncScanWithCallback(request *ImageAsyncScanRequest, callback func(response *ImageAsyncScanResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ImageAsyncScanResponse + var err error + defer close(result) + response, err = client.ImageAsyncScan(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ImageAsyncScanRequest is the request struct for api ImageAsyncScan +type ImageAsyncScanRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// ImageAsyncScanResponse is the response struct for api ImageAsyncScan +type ImageAsyncScanResponse struct { + *responses.BaseResponse +} + +// CreateImageAsyncScanRequest creates a request to invoke ImageAsyncScan API +func CreateImageAsyncScanRequest() (request *ImageAsyncScanRequest) { + request = &ImageAsyncScanRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "ImageAsyncScan", "/green/image/asyncscan", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateImageAsyncScanResponse creates a response to parse from ImageAsyncScan response +func CreateImageAsyncScanResponse() (response *ImageAsyncScanResponse) { + response = &ImageAsyncScanResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/image_async_scan_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/image_async_scan_results.go new file mode 100644 index 0000000..0badf55 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/image_async_scan_results.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ImageAsyncScanResults invokes the green.ImageAsyncScanResults API synchronously +// api document: https://help.aliyun.com/api/green/imageasyncscanresults.html +func (client *Client) ImageAsyncScanResults(request *ImageAsyncScanResultsRequest) (response *ImageAsyncScanResultsResponse, err error) { + response = CreateImageAsyncScanResultsResponse() + err = client.DoAction(request, response) + return +} + +// ImageAsyncScanResultsWithChan invokes the green.ImageAsyncScanResults API asynchronously +// api document: https://help.aliyun.com/api/green/imageasyncscanresults.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImageAsyncScanResultsWithChan(request *ImageAsyncScanResultsRequest) (<-chan *ImageAsyncScanResultsResponse, <-chan error) { + responseChan := make(chan *ImageAsyncScanResultsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ImageAsyncScanResults(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ImageAsyncScanResultsWithCallback invokes the green.ImageAsyncScanResults API asynchronously +// api document: https://help.aliyun.com/api/green/imageasyncscanresults.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImageAsyncScanResultsWithCallback(request *ImageAsyncScanResultsRequest, callback func(response *ImageAsyncScanResultsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ImageAsyncScanResultsResponse + var err error + defer close(result) + response, err = client.ImageAsyncScanResults(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ImageAsyncScanResultsRequest is the request struct for api ImageAsyncScanResults +type ImageAsyncScanResultsRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// ImageAsyncScanResultsResponse is the response struct for api ImageAsyncScanResults +type ImageAsyncScanResultsResponse struct { + *responses.BaseResponse +} + +// CreateImageAsyncScanResultsRequest creates a request to invoke ImageAsyncScanResults API +func CreateImageAsyncScanResultsRequest() (request *ImageAsyncScanResultsRequest) { + request = &ImageAsyncScanResultsRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "ImageAsyncScanResults", "/green/image/results", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateImageAsyncScanResultsResponse creates a response to parse from ImageAsyncScanResults response +func CreateImageAsyncScanResultsResponse() (response *ImageAsyncScanResultsResponse) { + response = &ImageAsyncScanResultsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/image_scan_feedback.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/image_scan_feedback.go new file mode 100644 index 0000000..db07069 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/image_scan_feedback.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ImageScanFeedback invokes the green.ImageScanFeedback API synchronously +// api document: https://help.aliyun.com/api/green/imagescanfeedback.html +func (client *Client) ImageScanFeedback(request *ImageScanFeedbackRequest) (response *ImageScanFeedbackResponse, err error) { + response = CreateImageScanFeedbackResponse() + err = client.DoAction(request, response) + return +} + +// ImageScanFeedbackWithChan invokes the green.ImageScanFeedback API asynchronously +// api document: https://help.aliyun.com/api/green/imagescanfeedback.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImageScanFeedbackWithChan(request *ImageScanFeedbackRequest) (<-chan *ImageScanFeedbackResponse, <-chan error) { + responseChan := make(chan *ImageScanFeedbackResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ImageScanFeedback(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ImageScanFeedbackWithCallback invokes the green.ImageScanFeedback API asynchronously +// api document: https://help.aliyun.com/api/green/imagescanfeedback.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImageScanFeedbackWithCallback(request *ImageScanFeedbackRequest, callback func(response *ImageScanFeedbackResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ImageScanFeedbackResponse + var err error + defer close(result) + response, err = client.ImageScanFeedback(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ImageScanFeedbackRequest is the request struct for api ImageScanFeedback +type ImageScanFeedbackRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// ImageScanFeedbackResponse is the response struct for api ImageScanFeedback +type ImageScanFeedbackResponse struct { + *responses.BaseResponse +} + +// CreateImageScanFeedbackRequest creates a request to invoke ImageScanFeedback API +func CreateImageScanFeedbackRequest() (request *ImageScanFeedbackRequest) { + request = &ImageScanFeedbackRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "ImageScanFeedback", "/green/image/feedback", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateImageScanFeedbackResponse creates a response to parse from ImageScanFeedback response +func CreateImageScanFeedbackResponse() (response *ImageScanFeedbackResponse) { + response = &ImageScanFeedbackResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/image_sync_scan.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/image_sync_scan.go new file mode 100644 index 0000000..753bda8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/image_sync_scan.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ImageSyncScan invokes the green.ImageSyncScan API synchronously +// api document: https://help.aliyun.com/api/green/imagesyncscan.html +func (client *Client) ImageSyncScan(request *ImageSyncScanRequest) (response *ImageSyncScanResponse, err error) { + response = CreateImageSyncScanResponse() + err = client.DoAction(request, response) + return +} + +// ImageSyncScanWithChan invokes the green.ImageSyncScan API asynchronously +// api document: https://help.aliyun.com/api/green/imagesyncscan.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImageSyncScanWithChan(request *ImageSyncScanRequest) (<-chan *ImageSyncScanResponse, <-chan error) { + responseChan := make(chan *ImageSyncScanResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ImageSyncScan(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ImageSyncScanWithCallback invokes the green.ImageSyncScan API asynchronously +// api document: https://help.aliyun.com/api/green/imagesyncscan.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImageSyncScanWithCallback(request *ImageSyncScanRequest, callback func(response *ImageSyncScanResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ImageSyncScanResponse + var err error + defer close(result) + response, err = client.ImageSyncScan(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ImageSyncScanRequest is the request struct for api ImageSyncScan +type ImageSyncScanRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// ImageSyncScanResponse is the response struct for api ImageSyncScan +type ImageSyncScanResponse struct { + *responses.BaseResponse +} + +// CreateImageSyncScanRequest creates a request to invoke ImageSyncScan API +func CreateImageSyncScanRequest() (request *ImageSyncScanRequest) { + request = &ImageSyncScanRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "ImageSyncScan", "/green/image/scan", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateImageSyncScanResponse creates a response to parse from ImageSyncScan response +func CreateImageSyncScanResponse() (response *ImageSyncScanResponse) { + response = &ImageSyncScanResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/search_person.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/search_person.go new file mode 100644 index 0000000..7b997f0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/search_person.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SearchPerson invokes the green.SearchPerson API synchronously +// api document: https://help.aliyun.com/api/green/searchperson.html +func (client *Client) SearchPerson(request *SearchPersonRequest) (response *SearchPersonResponse, err error) { + response = CreateSearchPersonResponse() + err = client.DoAction(request, response) + return +} + +// SearchPersonWithChan invokes the green.SearchPerson API asynchronously +// api document: https://help.aliyun.com/api/green/searchperson.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SearchPersonWithChan(request *SearchPersonRequest) (<-chan *SearchPersonResponse, <-chan error) { + responseChan := make(chan *SearchPersonResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SearchPerson(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SearchPersonWithCallback invokes the green.SearchPerson API asynchronously +// api document: https://help.aliyun.com/api/green/searchperson.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SearchPersonWithCallback(request *SearchPersonRequest, callback func(response *SearchPersonResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SearchPersonResponse + var err error + defer close(result) + response, err = client.SearchPerson(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SearchPersonRequest is the request struct for api SearchPerson +type SearchPersonRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// SearchPersonResponse is the response struct for api SearchPerson +type SearchPersonResponse struct { + *responses.BaseResponse +} + +// CreateSearchPersonRequest creates a request to invoke SearchPerson API +func CreateSearchPersonRequest() (request *SearchPersonRequest) { + request = &SearchPersonRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "SearchPerson", "/green/sface/search", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateSearchPersonResponse creates a response to parse from SearchPerson response +func CreateSearchPersonResponse() (response *SearchPersonResponse) { + response = &SearchPersonResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/set_person.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/set_person.go new file mode 100644 index 0000000..9282015 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/set_person.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetPerson invokes the green.SetPerson API synchronously +// api document: https://help.aliyun.com/api/green/setperson.html +func (client *Client) SetPerson(request *SetPersonRequest) (response *SetPersonResponse, err error) { + response = CreateSetPersonResponse() + err = client.DoAction(request, response) + return +} + +// SetPersonWithChan invokes the green.SetPerson API asynchronously +// api document: https://help.aliyun.com/api/green/setperson.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetPersonWithChan(request *SetPersonRequest) (<-chan *SetPersonResponse, <-chan error) { + responseChan := make(chan *SetPersonResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetPerson(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetPersonWithCallback invokes the green.SetPerson API asynchronously +// api document: https://help.aliyun.com/api/green/setperson.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetPersonWithCallback(request *SetPersonRequest, callback func(response *SetPersonResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetPersonResponse + var err error + defer close(result) + response, err = client.SetPerson(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetPersonRequest is the request struct for api SetPerson +type SetPersonRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// SetPersonResponse is the response struct for api SetPerson +type SetPersonResponse struct { + *responses.BaseResponse +} + +// CreateSetPersonRequest creates a request to invoke SetPerson API +func CreateSetPersonRequest() (request *SetPersonRequest) { + request = &SetPersonRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "SetPerson", "/green/sface/person/update", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateSetPersonResponse creates a response to parse from SetPerson response +func CreateSetPersonResponse() (response *SetPersonResponse) { + response = &SetPersonResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/text_feedback.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/text_feedback.go new file mode 100644 index 0000000..9721146 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/text_feedback.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TextFeedback invokes the green.TextFeedback API synchronously +// api document: https://help.aliyun.com/api/green/textfeedback.html +func (client *Client) TextFeedback(request *TextFeedbackRequest) (response *TextFeedbackResponse, err error) { + response = CreateTextFeedbackResponse() + err = client.DoAction(request, response) + return +} + +// TextFeedbackWithChan invokes the green.TextFeedback API asynchronously +// api document: https://help.aliyun.com/api/green/textfeedback.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TextFeedbackWithChan(request *TextFeedbackRequest) (<-chan *TextFeedbackResponse, <-chan error) { + responseChan := make(chan *TextFeedbackResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TextFeedback(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TextFeedbackWithCallback invokes the green.TextFeedback API asynchronously +// api document: https://help.aliyun.com/api/green/textfeedback.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TextFeedbackWithCallback(request *TextFeedbackRequest, callback func(response *TextFeedbackResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TextFeedbackResponse + var err error + defer close(result) + response, err = client.TextFeedback(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TextFeedbackRequest is the request struct for api TextFeedback +type TextFeedbackRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// TextFeedbackResponse is the response struct for api TextFeedback +type TextFeedbackResponse struct { + *responses.BaseResponse +} + +// CreateTextFeedbackRequest creates a request to invoke TextFeedback API +func CreateTextFeedbackRequest() (request *TextFeedbackRequest) { + request = &TextFeedbackRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "TextFeedback", "/green/text/feedback", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateTextFeedbackResponse creates a response to parse from TextFeedback response +func CreateTextFeedbackResponse() (response *TextFeedbackResponse) { + response = &TextFeedbackResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/text_scan.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/text_scan.go new file mode 100644 index 0000000..f21f30c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/text_scan.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TextScan invokes the green.TextScan API synchronously +// api document: https://help.aliyun.com/api/green/textscan.html +func (client *Client) TextScan(request *TextScanRequest) (response *TextScanResponse, err error) { + response = CreateTextScanResponse() + err = client.DoAction(request, response) + return +} + +// TextScanWithChan invokes the green.TextScan API asynchronously +// api document: https://help.aliyun.com/api/green/textscan.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TextScanWithChan(request *TextScanRequest) (<-chan *TextScanResponse, <-chan error) { + responseChan := make(chan *TextScanResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TextScan(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TextScanWithCallback invokes the green.TextScan API asynchronously +// api document: https://help.aliyun.com/api/green/textscan.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TextScanWithCallback(request *TextScanRequest, callback func(response *TextScanResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TextScanResponse + var err error + defer close(result) + response, err = client.TextScan(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TextScanRequest is the request struct for api TextScan +type TextScanRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// TextScanResponse is the response struct for api TextScan +type TextScanResponse struct { + *responses.BaseResponse +} + +// CreateTextScanRequest creates a request to invoke TextScan API +func CreateTextScanRequest() (request *TextScanRequest) { + request = &TextScanRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "TextScan", "/green/text/scan", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateTextScanResponse creates a response to parse from TextScan response +func CreateTextScanResponse() (response *TextScanResponse) { + response = &TextScanResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/video_async_scan.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/video_async_scan.go new file mode 100644 index 0000000..87618c4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/video_async_scan.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// VideoAsyncScan invokes the green.VideoAsyncScan API synchronously +// api document: https://help.aliyun.com/api/green/videoasyncscan.html +func (client *Client) VideoAsyncScan(request *VideoAsyncScanRequest) (response *VideoAsyncScanResponse, err error) { + response = CreateVideoAsyncScanResponse() + err = client.DoAction(request, response) + return +} + +// VideoAsyncScanWithChan invokes the green.VideoAsyncScan API asynchronously +// api document: https://help.aliyun.com/api/green/videoasyncscan.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VideoAsyncScanWithChan(request *VideoAsyncScanRequest) (<-chan *VideoAsyncScanResponse, <-chan error) { + responseChan := make(chan *VideoAsyncScanResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.VideoAsyncScan(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// VideoAsyncScanWithCallback invokes the green.VideoAsyncScan API asynchronously +// api document: https://help.aliyun.com/api/green/videoasyncscan.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VideoAsyncScanWithCallback(request *VideoAsyncScanRequest, callback func(response *VideoAsyncScanResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *VideoAsyncScanResponse + var err error + defer close(result) + response, err = client.VideoAsyncScan(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// VideoAsyncScanRequest is the request struct for api VideoAsyncScan +type VideoAsyncScanRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// VideoAsyncScanResponse is the response struct for api VideoAsyncScan +type VideoAsyncScanResponse struct { + *responses.BaseResponse +} + +// CreateVideoAsyncScanRequest creates a request to invoke VideoAsyncScan API +func CreateVideoAsyncScanRequest() (request *VideoAsyncScanRequest) { + request = &VideoAsyncScanRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "VideoAsyncScan", "/green/video/asyncscan", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateVideoAsyncScanResponse creates a response to parse from VideoAsyncScan response +func CreateVideoAsyncScanResponse() (response *VideoAsyncScanResponse) { + response = &VideoAsyncScanResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/video_async_scan_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/video_async_scan_results.go new file mode 100644 index 0000000..cfb30fb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/video_async_scan_results.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// VideoAsyncScanResults invokes the green.VideoAsyncScanResults API synchronously +// api document: https://help.aliyun.com/api/green/videoasyncscanresults.html +func (client *Client) VideoAsyncScanResults(request *VideoAsyncScanResultsRequest) (response *VideoAsyncScanResultsResponse, err error) { + response = CreateVideoAsyncScanResultsResponse() + err = client.DoAction(request, response) + return +} + +// VideoAsyncScanResultsWithChan invokes the green.VideoAsyncScanResults API asynchronously +// api document: https://help.aliyun.com/api/green/videoasyncscanresults.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VideoAsyncScanResultsWithChan(request *VideoAsyncScanResultsRequest) (<-chan *VideoAsyncScanResultsResponse, <-chan error) { + responseChan := make(chan *VideoAsyncScanResultsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.VideoAsyncScanResults(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// VideoAsyncScanResultsWithCallback invokes the green.VideoAsyncScanResults API asynchronously +// api document: https://help.aliyun.com/api/green/videoasyncscanresults.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VideoAsyncScanResultsWithCallback(request *VideoAsyncScanResultsRequest, callback func(response *VideoAsyncScanResultsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *VideoAsyncScanResultsResponse + var err error + defer close(result) + response, err = client.VideoAsyncScanResults(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// VideoAsyncScanResultsRequest is the request struct for api VideoAsyncScanResults +type VideoAsyncScanResultsRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// VideoAsyncScanResultsResponse is the response struct for api VideoAsyncScanResults +type VideoAsyncScanResultsResponse struct { + *responses.BaseResponse +} + +// CreateVideoAsyncScanResultsRequest creates a request to invoke VideoAsyncScanResults API +func CreateVideoAsyncScanResultsRequest() (request *VideoAsyncScanResultsRequest) { + request = &VideoAsyncScanResultsRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "VideoAsyncScanResults", "/green/video/results", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateVideoAsyncScanResultsResponse creates a response to parse from VideoAsyncScanResults response +func CreateVideoAsyncScanResultsResponse() (response *VideoAsyncScanResultsResponse) { + response = &VideoAsyncScanResultsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/video_feedback.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/video_feedback.go new file mode 100644 index 0000000..ed7f132 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/video_feedback.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// VideoFeedback invokes the green.VideoFeedback API synchronously +// api document: https://help.aliyun.com/api/green/videofeedback.html +func (client *Client) VideoFeedback(request *VideoFeedbackRequest) (response *VideoFeedbackResponse, err error) { + response = CreateVideoFeedbackResponse() + err = client.DoAction(request, response) + return +} + +// VideoFeedbackWithChan invokes the green.VideoFeedback API asynchronously +// api document: https://help.aliyun.com/api/green/videofeedback.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VideoFeedbackWithChan(request *VideoFeedbackRequest) (<-chan *VideoFeedbackResponse, <-chan error) { + responseChan := make(chan *VideoFeedbackResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.VideoFeedback(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// VideoFeedbackWithCallback invokes the green.VideoFeedback API asynchronously +// api document: https://help.aliyun.com/api/green/videofeedback.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VideoFeedbackWithCallback(request *VideoFeedbackRequest, callback func(response *VideoFeedbackResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *VideoFeedbackResponse + var err error + defer close(result) + response, err = client.VideoFeedback(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// VideoFeedbackRequest is the request struct for api VideoFeedback +type VideoFeedbackRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// VideoFeedbackResponse is the response struct for api VideoFeedback +type VideoFeedbackResponse struct { + *responses.BaseResponse +} + +// CreateVideoFeedbackRequest creates a request to invoke VideoFeedback API +func CreateVideoFeedbackRequest() (request *VideoFeedbackRequest) { + request = &VideoFeedbackRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "VideoFeedback", "/green/video/feedback", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateVideoFeedbackResponse creates a response to parse from VideoFeedback response +func CreateVideoFeedbackResponse() (response *VideoFeedbackResponse) { + response = &VideoFeedbackResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/video_sync_scan.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/video_sync_scan.go new file mode 100644 index 0000000..57efa83 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/video_sync_scan.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// VideoSyncScan invokes the green.VideoSyncScan API synchronously +// api document: https://help.aliyun.com/api/green/videosyncscan.html +func (client *Client) VideoSyncScan(request *VideoSyncScanRequest) (response *VideoSyncScanResponse, err error) { + response = CreateVideoSyncScanResponse() + err = client.DoAction(request, response) + return +} + +// VideoSyncScanWithChan invokes the green.VideoSyncScan API asynchronously +// api document: https://help.aliyun.com/api/green/videosyncscan.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VideoSyncScanWithChan(request *VideoSyncScanRequest) (<-chan *VideoSyncScanResponse, <-chan error) { + responseChan := make(chan *VideoSyncScanResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.VideoSyncScan(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// VideoSyncScanWithCallback invokes the green.VideoSyncScan API asynchronously +// api document: https://help.aliyun.com/api/green/videosyncscan.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VideoSyncScanWithCallback(request *VideoSyncScanRequest, callback func(response *VideoSyncScanResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *VideoSyncScanResponse + var err error + defer close(result) + response, err = client.VideoSyncScan(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// VideoSyncScanRequest is the request struct for api VideoSyncScan +type VideoSyncScanRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// VideoSyncScanResponse is the response struct for api VideoSyncScan +type VideoSyncScanResponse struct { + *responses.BaseResponse +} + +// CreateVideoSyncScanRequest creates a request to invoke VideoSyncScan API +func CreateVideoSyncScanRequest() (request *VideoSyncScanRequest) { + request = &VideoSyncScanRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "VideoSyncScan", "/green/video/syncscan", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateVideoSyncScanResponse creates a response to parse from VideoSyncScan response +func CreateVideoSyncScanResponse() (response *VideoSyncScanResponse) { + response = &VideoSyncScanResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/voice_async_scan.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/voice_async_scan.go new file mode 100644 index 0000000..c70fb9e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/voice_async_scan.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// VoiceAsyncScan invokes the green.VoiceAsyncScan API synchronously +// api document: https://help.aliyun.com/api/green/voiceasyncscan.html +func (client *Client) VoiceAsyncScan(request *VoiceAsyncScanRequest) (response *VoiceAsyncScanResponse, err error) { + response = CreateVoiceAsyncScanResponse() + err = client.DoAction(request, response) + return +} + +// VoiceAsyncScanWithChan invokes the green.VoiceAsyncScan API asynchronously +// api document: https://help.aliyun.com/api/green/voiceasyncscan.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VoiceAsyncScanWithChan(request *VoiceAsyncScanRequest) (<-chan *VoiceAsyncScanResponse, <-chan error) { + responseChan := make(chan *VoiceAsyncScanResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.VoiceAsyncScan(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// VoiceAsyncScanWithCallback invokes the green.VoiceAsyncScan API asynchronously +// api document: https://help.aliyun.com/api/green/voiceasyncscan.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VoiceAsyncScanWithCallback(request *VoiceAsyncScanRequest, callback func(response *VoiceAsyncScanResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *VoiceAsyncScanResponse + var err error + defer close(result) + response, err = client.VoiceAsyncScan(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// VoiceAsyncScanRequest is the request struct for api VoiceAsyncScan +type VoiceAsyncScanRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// VoiceAsyncScanResponse is the response struct for api VoiceAsyncScan +type VoiceAsyncScanResponse struct { + *responses.BaseResponse +} + +// CreateVoiceAsyncScanRequest creates a request to invoke VoiceAsyncScan API +func CreateVoiceAsyncScanRequest() (request *VoiceAsyncScanRequest) { + request = &VoiceAsyncScanRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "VoiceAsyncScan", "/green/voice/asyncscan", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateVoiceAsyncScanResponse creates a response to parse from VoiceAsyncScan response +func CreateVoiceAsyncScanResponse() (response *VoiceAsyncScanResponse) { + response = &VoiceAsyncScanResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/voice_async_scan_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/voice_async_scan_results.go new file mode 100644 index 0000000..05d0439 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/green/voice_async_scan_results.go @@ -0,0 +1,103 @@ +package green + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// VoiceAsyncScanResults invokes the green.VoiceAsyncScanResults API synchronously +// api document: https://help.aliyun.com/api/green/voiceasyncscanresults.html +func (client *Client) VoiceAsyncScanResults(request *VoiceAsyncScanResultsRequest) (response *VoiceAsyncScanResultsResponse, err error) { + response = CreateVoiceAsyncScanResultsResponse() + err = client.DoAction(request, response) + return +} + +// VoiceAsyncScanResultsWithChan invokes the green.VoiceAsyncScanResults API asynchronously +// api document: https://help.aliyun.com/api/green/voiceasyncscanresults.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VoiceAsyncScanResultsWithChan(request *VoiceAsyncScanResultsRequest) (<-chan *VoiceAsyncScanResultsResponse, <-chan error) { + responseChan := make(chan *VoiceAsyncScanResultsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.VoiceAsyncScanResults(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// VoiceAsyncScanResultsWithCallback invokes the green.VoiceAsyncScanResults API asynchronously +// api document: https://help.aliyun.com/api/green/voiceasyncscanresults.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VoiceAsyncScanResultsWithCallback(request *VoiceAsyncScanResultsRequest, callback func(response *VoiceAsyncScanResultsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *VoiceAsyncScanResultsResponse + var err error + defer close(result) + response, err = client.VoiceAsyncScanResults(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// VoiceAsyncScanResultsRequest is the request struct for api VoiceAsyncScanResults +type VoiceAsyncScanResultsRequest struct { + *requests.RoaRequest + ClientInfo string `position:"Query" name:"ClientInfo"` +} + +// VoiceAsyncScanResultsResponse is the response struct for api VoiceAsyncScanResults +type VoiceAsyncScanResultsResponse struct { + *responses.BaseResponse +} + +// CreateVoiceAsyncScanResultsRequest creates a request to invoke VoiceAsyncScanResults API +func CreateVoiceAsyncScanResultsRequest() (request *VoiceAsyncScanResultsRequest) { + request = &VoiceAsyncScanResultsRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("Green", "2018-05-09", "VoiceAsyncScanResults", "/green/voice/results", "green", "openAPI") + request.Method = requests.POST + return +} + +// CreateVoiceAsyncScanResultsResponse creates a response to parse from VoiceAsyncScanResults response +func CreateVoiceAsyncScanResultsResponse() (response *VoiceAsyncScanResultsResponse) { + response = &VoiceAsyncScanResultsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/client.go new file mode 100644 index 0000000..72bd318 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/client.go @@ -0,0 +1,81 @@ +package hsm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/config_network.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/config_network.go new file mode 100644 index 0000000..702068e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/config_network.go @@ -0,0 +1,108 @@ +package hsm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ConfigNetwork invokes the hsm.ConfigNetwork API synchronously +// api document: https://help.aliyun.com/api/hsm/confignetwork.html +func (client *Client) ConfigNetwork(request *ConfigNetworkRequest) (response *ConfigNetworkResponse, err error) { + response = CreateConfigNetworkResponse() + err = client.DoAction(request, response) + return +} + +// ConfigNetworkWithChan invokes the hsm.ConfigNetwork API asynchronously +// api document: https://help.aliyun.com/api/hsm/confignetwork.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ConfigNetworkWithChan(request *ConfigNetworkRequest) (<-chan *ConfigNetworkResponse, <-chan error) { + responseChan := make(chan *ConfigNetworkResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ConfigNetwork(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ConfigNetworkWithCallback invokes the hsm.ConfigNetwork API asynchronously +// api document: https://help.aliyun.com/api/hsm/confignetwork.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ConfigNetworkWithCallback(request *ConfigNetworkRequest, callback func(response *ConfigNetworkResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ConfigNetworkResponse + var err error + defer close(result) + response, err = client.ConfigNetwork(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ConfigNetworkRequest is the request struct for api ConfigNetwork +type ConfigNetworkRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + VpcId string `position:"Query" name:"VpcId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + Ip string `position:"Query" name:"Ip"` +} + +// ConfigNetworkResponse is the response struct for api ConfigNetwork +type ConfigNetworkResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateConfigNetworkRequest creates a request to invoke ConfigNetwork API +func CreateConfigNetworkRequest() (request *ConfigNetworkRequest) { + request = &ConfigNetworkRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("hsm", "2018-01-11", "ConfigNetwork", "hsm", "openAPI") + return +} + +// CreateConfigNetworkResponse creates a response to parse from ConfigNetwork response +func CreateConfigNetworkResponse() (response *ConfigNetworkResponse) { + response = &ConfigNetworkResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/config_white_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/config_white_list.go new file mode 100644 index 0000000..22e9e90 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/config_white_list.go @@ -0,0 +1,106 @@ +package hsm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ConfigWhiteList invokes the hsm.ConfigWhiteList API synchronously +// api document: https://help.aliyun.com/api/hsm/configwhitelist.html +func (client *Client) ConfigWhiteList(request *ConfigWhiteListRequest) (response *ConfigWhiteListResponse, err error) { + response = CreateConfigWhiteListResponse() + err = client.DoAction(request, response) + return +} + +// ConfigWhiteListWithChan invokes the hsm.ConfigWhiteList API asynchronously +// api document: https://help.aliyun.com/api/hsm/configwhitelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ConfigWhiteListWithChan(request *ConfigWhiteListRequest) (<-chan *ConfigWhiteListResponse, <-chan error) { + responseChan := make(chan *ConfigWhiteListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ConfigWhiteList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ConfigWhiteListWithCallback invokes the hsm.ConfigWhiteList API asynchronously +// api document: https://help.aliyun.com/api/hsm/configwhitelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ConfigWhiteListWithCallback(request *ConfigWhiteListRequest, callback func(response *ConfigWhiteListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ConfigWhiteListResponse + var err error + defer close(result) + response, err = client.ConfigWhiteList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ConfigWhiteListRequest is the request struct for api ConfigWhiteList +type ConfigWhiteListRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + WhiteList string `position:"Query" name:"WhiteList"` +} + +// ConfigWhiteListResponse is the response struct for api ConfigWhiteList +type ConfigWhiteListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateConfigWhiteListRequest creates a request to invoke ConfigWhiteList API +func CreateConfigWhiteListRequest() (request *ConfigWhiteListRequest) { + request = &ConfigWhiteListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("hsm", "2018-01-11", "ConfigWhiteList", "hsm", "openAPI") + return +} + +// CreateConfigWhiteListResponse creates a response to parse from ConfigWhiteList response +func CreateConfigWhiteListResponse() (response *ConfigWhiteListResponse) { + response = &ConfigWhiteListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/create_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/create_instance.go new file mode 100644 index 0000000..bc21b0b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/create_instance.go @@ -0,0 +1,111 @@ +package hsm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateInstance invokes the hsm.CreateInstance API synchronously +// api document: https://help.aliyun.com/api/hsm/createinstance.html +func (client *Client) CreateInstance(request *CreateInstanceRequest) (response *CreateInstanceResponse, err error) { + response = CreateCreateInstanceResponse() + err = client.DoAction(request, response) + return +} + +// CreateInstanceWithChan invokes the hsm.CreateInstance API asynchronously +// api document: https://help.aliyun.com/api/hsm/createinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateInstanceWithChan(request *CreateInstanceRequest) (<-chan *CreateInstanceResponse, <-chan error) { + responseChan := make(chan *CreateInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateInstanceWithCallback invokes the hsm.CreateInstance API asynchronously +// api document: https://help.aliyun.com/api/hsm/createinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateInstanceWithCallback(request *CreateInstanceRequest, callback func(response *CreateInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateInstanceResponse + var err error + defer close(result) + response, err = client.CreateInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateInstanceRequest is the request struct for api CreateInstance +type CreateInstanceRequest struct { + *requests.RpcRequest + ClientToken string `position:"Query" name:"ClientToken"` + Period requests.Integer `position:"Query" name:"Period"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + HsmDeviceType string `position:"Query" name:"HsmDeviceType"` + HsmOem string `position:"Query" name:"HsmOem"` + ZoneId string `position:"Query" name:"ZoneId"` + Quantity requests.Integer `position:"Query" name:"Quantity"` + ResourceOwnerId string `position:"Query" name:"ResourceOwnerId"` +} + +// CreateInstanceResponse is the response struct for api CreateInstance +type CreateInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceIds []string `json:"InstanceIds" xml:"InstanceIds"` +} + +// CreateCreateInstanceRequest creates a request to invoke CreateInstance API +func CreateCreateInstanceRequest() (request *CreateInstanceRequest) { + request = &CreateInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("hsm", "2018-01-11", "CreateInstance", "hsm", "openAPI") + return +} + +// CreateCreateInstanceResponse creates a response to parse from CreateInstance response +func CreateCreateInstanceResponse() (response *CreateInstanceResponse) { + response = &CreateInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/describe_instances.go new file mode 100644 index 0000000..76958a2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/describe_instances.go @@ -0,0 +1,110 @@ +package hsm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstances invokes the hsm.DescribeInstances API synchronously +// api document: https://help.aliyun.com/api/hsm/describeinstances.html +func (client *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error) { + response = CreateDescribeInstancesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstancesWithChan invokes the hsm.DescribeInstances API asynchronously +// api document: https://help.aliyun.com/api/hsm/describeinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstancesWithChan(request *DescribeInstancesRequest) (<-chan *DescribeInstancesResponse, <-chan error) { + responseChan := make(chan *DescribeInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstancesWithCallback invokes the hsm.DescribeInstances API asynchronously +// api document: https://help.aliyun.com/api/hsm/describeinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstancesWithCallback(request *DescribeInstancesRequest, callback func(response *DescribeInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstancesResponse + var err error + defer close(result) + response, err = client.DescribeInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstancesRequest is the request struct for api DescribeInstances +type DescribeInstancesRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + HsmStatus requests.Integer `position:"Query" name:"HsmStatus"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// DescribeInstancesResponse is the response struct for api DescribeInstances +type DescribeInstancesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Instances []Instance `json:"Instances" xml:"Instances"` +} + +// CreateDescribeInstancesRequest creates a request to invoke DescribeInstances API +func CreateDescribeInstancesRequest() (request *DescribeInstancesRequest) { + request = &DescribeInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("hsm", "2018-01-11", "DescribeInstances", "hsm", "openAPI") + return +} + +// CreateDescribeInstancesResponse creates a response to parse from DescribeInstances response +func CreateDescribeInstancesResponse() (response *DescribeInstancesResponse) { + response = &DescribeInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/describe_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/describe_regions.go new file mode 100644 index 0000000..14d39f6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/describe_regions.go @@ -0,0 +1,105 @@ +package hsm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 hsm.DescribeRegions API synchronously +// api document: https://help.aliyun.com/api/hsm/describeregions.html +func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) { + response = CreateDescribeRegionsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRegionsWithChan invokes the hsm.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/hsm/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 hsm.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/hsm/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` +} + +// DescribeRegionsResponse is the response struct for api DescribeRegions +type DescribeRegionsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Regions []Region `json:"Regions" xml:"Regions"` +} + +// CreateDescribeRegionsRequest creates a request to invoke DescribeRegions API +func CreateDescribeRegionsRequest() (request *DescribeRegionsRequest) { + request = &DescribeRegionsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("hsm", "2018-01-11", "DescribeRegions", "hsm", "openAPI") + 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/hsm/modify_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/modify_instance.go new file mode 100644 index 0000000..352ddf6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/modify_instance.go @@ -0,0 +1,106 @@ +package hsm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyInstance invokes the hsm.ModifyInstance API synchronously +// api document: https://help.aliyun.com/api/hsm/modifyinstance.html +func (client *Client) ModifyInstance(request *ModifyInstanceRequest) (response *ModifyInstanceResponse, err error) { + response = CreateModifyInstanceResponse() + err = client.DoAction(request, response) + return +} + +// ModifyInstanceWithChan invokes the hsm.ModifyInstance API asynchronously +// api document: https://help.aliyun.com/api/hsm/modifyinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceWithChan(request *ModifyInstanceRequest) (<-chan *ModifyInstanceResponse, <-chan error) { + responseChan := make(chan *ModifyInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyInstanceWithCallback invokes the hsm.ModifyInstance API asynchronously +// api document: https://help.aliyun.com/api/hsm/modifyinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceWithCallback(request *ModifyInstanceRequest, callback func(response *ModifyInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyInstanceResponse + var err error + defer close(result) + response, err = client.ModifyInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyInstanceRequest is the request struct for api ModifyInstance +type ModifyInstanceRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + Remark string `position:"Query" name:"Remark"` +} + +// ModifyInstanceResponse is the response struct for api ModifyInstance +type ModifyInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyInstanceRequest creates a request to invoke ModifyInstance API +func CreateModifyInstanceRequest() (request *ModifyInstanceRequest) { + request = &ModifyInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("hsm", "2018-01-11", "ModifyInstance", "hsm", "openAPI") + return +} + +// CreateModifyInstanceResponse creates a response to parse from ModifyInstance response +func CreateModifyInstanceResponse() (response *ModifyInstanceResponse) { + response = &ModifyInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/release_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/release_instance.go new file mode 100644 index 0000000..7b89846 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/release_instance.go @@ -0,0 +1,104 @@ +package hsm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReleaseInstance invokes the hsm.ReleaseInstance API synchronously +// api document: https://help.aliyun.com/api/hsm/releaseinstance.html +func (client *Client) ReleaseInstance(request *ReleaseInstanceRequest) (response *ReleaseInstanceResponse, err error) { + response = CreateReleaseInstanceResponse() + err = client.DoAction(request, response) + return +} + +// ReleaseInstanceWithChan invokes the hsm.ReleaseInstance API asynchronously +// api document: https://help.aliyun.com/api/hsm/releaseinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReleaseInstanceWithChan(request *ReleaseInstanceRequest) (<-chan *ReleaseInstanceResponse, <-chan error) { + responseChan := make(chan *ReleaseInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReleaseInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReleaseInstanceWithCallback invokes the hsm.ReleaseInstance API asynchronously +// api document: https://help.aliyun.com/api/hsm/releaseinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReleaseInstanceWithCallback(request *ReleaseInstanceRequest, callback func(response *ReleaseInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReleaseInstanceResponse + var err error + defer close(result) + response, err = client.ReleaseInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReleaseInstanceRequest is the request struct for api ReleaseInstance +type ReleaseInstanceRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerId string `position:"Query" name:"ResourceOwnerId"` +} + +// ReleaseInstanceResponse is the response struct for api ReleaseInstance +type ReleaseInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateReleaseInstanceRequest creates a request to invoke ReleaseInstance API +func CreateReleaseInstanceRequest() (request *ReleaseInstanceRequest) { + request = &ReleaseInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("hsm", "2018-01-11", "ReleaseInstance", "hsm", "openAPI") + return +} + +// CreateReleaseInstanceResponse creates a response to parse from ReleaseInstance response +func CreateReleaseInstanceResponse() (response *ReleaseInstanceResponse) { + response = &ReleaseInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/renew_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/renew_instance.go new file mode 100644 index 0000000..8a85e9b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/renew_instance.go @@ -0,0 +1,107 @@ +package hsm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RenewInstance invokes the hsm.RenewInstance API synchronously +// api document: https://help.aliyun.com/api/hsm/renewinstance.html +func (client *Client) RenewInstance(request *RenewInstanceRequest) (response *RenewInstanceResponse, err error) { + response = CreateRenewInstanceResponse() + err = client.DoAction(request, response) + return +} + +// RenewInstanceWithChan invokes the hsm.RenewInstance API asynchronously +// api document: https://help.aliyun.com/api/hsm/renewinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RenewInstanceWithChan(request *RenewInstanceRequest) (<-chan *RenewInstanceResponse, <-chan error) { + responseChan := make(chan *RenewInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RenewInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RenewInstanceWithCallback invokes the hsm.RenewInstance API asynchronously +// api document: https://help.aliyun.com/api/hsm/renewinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RenewInstanceWithCallback(request *RenewInstanceRequest, callback func(response *RenewInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RenewInstanceResponse + var err error + defer close(result) + response, err = client.RenewInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RenewInstanceRequest is the request struct for api RenewInstance +type RenewInstanceRequest struct { + *requests.RpcRequest + ClientToken string `position:"Query" name:"ClientToken"` + Period requests.Integer `position:"Query" name:"Period"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerId string `position:"Query" name:"ResourceOwnerId"` +} + +// RenewInstanceResponse is the response struct for api RenewInstance +type RenewInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRenewInstanceRequest creates a request to invoke RenewInstance API +func CreateRenewInstanceRequest() (request *RenewInstanceRequest) { + request = &RenewInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("hsm", "2018-01-11", "RenewInstance", "hsm", "openAPI") + return +} + +// CreateRenewInstanceResponse creates a response to parse from RenewInstance response +func CreateRenewInstanceResponse() (response *RenewInstanceResponse) { + response = &RenewInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_instance.go new file mode 100644 index 0000000..9af400a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_instance.go @@ -0,0 +1,33 @@ +package hsm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 hsm response +type Instance struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + RegionId string `json:"RegionId" xml:"RegionId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + HsmStatus int `json:"HsmStatus" xml:"HsmStatus"` + HsmOem string `json:"HsmOem" xml:"HsmOem"` + HsmDeviceType string `json:"HsmDeviceType" xml:"HsmDeviceType"` + VpcId string `json:"VpcId" xml:"VpcId"` + VswitchId string `json:"VswitchId" xml:"VswitchId"` + Ip string `json:"Ip" xml:"Ip"` + Remark string `json:"Remark" xml:"Remark"` + ExpiredTime int `json:"ExpiredTime" xml:"ExpiredTime"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` + WhiteList []string `json:"WhiteList" xml:"WhiteList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_instance_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_instance_ids.go new file mode 100644 index 0000000..0e1a228 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_instance_ids.go @@ -0,0 +1,21 @@ +package hsm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceIds is a nested struct in hsm response +type InstanceIds struct { + InstanceId []string `json:"InstanceId" xml:"InstanceId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_instances.go new file mode 100644 index 0000000..62e9bfc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_instances.go @@ -0,0 +1,21 @@ +package hsm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 hsm response +type Instances struct { + Instance []Instance `json:"Instance" xml:"Instance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_region.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_region.go new file mode 100644 index 0000000..6a0b3d6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_region.go @@ -0,0 +1,22 @@ +package hsm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 hsm response +type Region struct { + RegionId string `json:"RegionId" xml:"RegionId"` + Zones []Zone `json:"Zones" xml:"Zones"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_regions.go new file mode 100644 index 0000000..384c482 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_regions.go @@ -0,0 +1,21 @@ +package hsm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 hsm response +type Regions struct { + Region []Region `json:"Region" xml:"Region"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_white_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_white_list.go new file mode 100644 index 0000000..d42d1ea --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_white_list.go @@ -0,0 +1,21 @@ +package hsm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// WhiteList is a nested struct in hsm response +type WhiteList struct { + WhiteListItem []string `json:"WhiteListItem" xml:"WhiteListItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_zone.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_zone.go new file mode 100644 index 0000000..f362f67 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_zone.go @@ -0,0 +1,21 @@ +package hsm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 hsm response +type Zone struct { + ZoneId string `json:"ZoneId" xml:"ZoneId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_zones.go new file mode 100644 index 0000000..21b2fbb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/hsm/struct_zones.go @@ -0,0 +1,21 @@ +package hsm + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Zones is a nested struct in hsm response +type Zones struct { + Zone []Zone `json:"Zone" xml:"Zone"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis-public/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis-public/client.go new file mode 100644 index 0000000..8ac97ed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis-public/client.go @@ -0,0 +1,81 @@ +package jarvis_public + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis-public/describe_phone_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis-public/describe_phone_info.go new file mode 100644 index 0000000..2586a2b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis-public/describe_phone_info.go @@ -0,0 +1,110 @@ +package jarvis_public + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribePhoneInfo invokes the jarvis_public.DescribePhoneInfo API synchronously +// api document: https://help.aliyun.com/api/jarvis-public/describephoneinfo.html +func (client *Client) DescribePhoneInfo(request *DescribePhoneInfoRequest) (response *DescribePhoneInfoResponse, err error) { + response = CreateDescribePhoneInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribePhoneInfoWithChan invokes the jarvis_public.DescribePhoneInfo API asynchronously +// api document: https://help.aliyun.com/api/jarvis-public/describephoneinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePhoneInfoWithChan(request *DescribePhoneInfoRequest) (<-chan *DescribePhoneInfoResponse, <-chan error) { + responseChan := make(chan *DescribePhoneInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribePhoneInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribePhoneInfoWithCallback invokes the jarvis_public.DescribePhoneInfo API asynchronously +// api document: https://help.aliyun.com/api/jarvis-public/describephoneinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePhoneInfoWithCallback(request *DescribePhoneInfoRequest, callback func(response *DescribePhoneInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribePhoneInfoResponse + var err error + defer close(result) + response, err = client.DescribePhoneInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribePhoneInfoRequest is the request struct for api DescribePhoneInfo +type DescribePhoneInfoRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + PhoneNum string `position:"Query" name:"phoneNum"` + Lang string `position:"Query" name:"Lang"` + SourceCode string `position:"Query" name:"sourceCode"` +} + +// DescribePhoneInfoResponse is the response struct for api DescribePhoneInfo +type DescribePhoneInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module string `json:"Module" xml:"Module"` + PhoneNum int `json:"phoneNum" xml:"phoneNum"` + RiskLevel int `json:"riskLevel" xml:"riskLevel"` + DetectTime string `json:"detectTime" xml:"detectTime"` +} + +// CreateDescribePhoneInfoRequest creates a request to invoke DescribePhoneInfo API +func CreateDescribePhoneInfoRequest() (request *DescribePhoneInfoRequest) { + request = &DescribePhoneInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis-public", "2018-06-21", "DescribePhoneInfo", "", "") + return +} + +// CreateDescribePhoneInfoResponse creates a response to parse from DescribePhoneInfo response +func CreateDescribePhoneInfoResponse() (response *DescribePhoneInfoResponse) { + response = &DescribePhoneInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/client.go new file mode 100644 index 0000000..fc2eaf5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/client.go @@ -0,0 +1,81 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/create_access_white_list_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/create_access_white_list_group.go new file mode 100644 index 0000000..bfc6633 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/create_access_white_list_group.go @@ -0,0 +1,114 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateAccessWhiteListGroup invokes the jarvis.CreateAccessWhiteListGroup API synchronously +// api document: https://help.aliyun.com/api/jarvis/createaccesswhitelistgroup.html +func (client *Client) CreateAccessWhiteListGroup(request *CreateAccessWhiteListGroupRequest) (response *CreateAccessWhiteListGroupResponse, err error) { + response = CreateCreateAccessWhiteListGroupResponse() + err = client.DoAction(request, response) + return +} + +// CreateAccessWhiteListGroupWithChan invokes the jarvis.CreateAccessWhiteListGroup API asynchronously +// api document: https://help.aliyun.com/api/jarvis/createaccesswhitelistgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateAccessWhiteListGroupWithChan(request *CreateAccessWhiteListGroupRequest) (<-chan *CreateAccessWhiteListGroupResponse, <-chan error) { + responseChan := make(chan *CreateAccessWhiteListGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateAccessWhiteListGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateAccessWhiteListGroupWithCallback invokes the jarvis.CreateAccessWhiteListGroup API asynchronously +// api document: https://help.aliyun.com/api/jarvis/createaccesswhitelistgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateAccessWhiteListGroupWithCallback(request *CreateAccessWhiteListGroupRequest, callback func(response *CreateAccessWhiteListGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateAccessWhiteListGroupResponse + var err error + defer close(result) + response, err = client.CreateAccessWhiteListGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateAccessWhiteListGroupRequest is the request struct for api CreateAccessWhiteListGroup +type CreateAccessWhiteListGroupRequest struct { + *requests.RpcRequest + Note string `position:"Query" name:"Note"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SrcIP string `position:"Query" name:"SrcIP"` + SourceIp string `position:"Query" name:"SourceIp"` + DstPort requests.Integer `position:"Query" name:"DstPort"` + InstanceIdList string `position:"Query" name:"InstanceIdList"` + LiveTime requests.Integer `position:"Query" name:"LiveTime"` + ProductName string `position:"Query" name:"ProductName"` + WhiteListType requests.Integer `position:"Query" name:"WhiteListType"` + Lang string `position:"Query" name:"Lang"` + SourceCode string `position:"Query" name:"SourceCode"` +} + +// CreateAccessWhiteListGroupResponse is the response struct for api CreateAccessWhiteListGroup +type CreateAccessWhiteListGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module string `json:"Module" xml:"Module"` +} + +// CreateCreateAccessWhiteListGroupRequest creates a request to invoke CreateAccessWhiteListGroup API +func CreateCreateAccessWhiteListGroupRequest() (request *CreateAccessWhiteListGroupRequest) { + request = &CreateAccessWhiteListGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis", "2018-02-06", "CreateAccessWhiteListGroup", "", "") + return +} + +// CreateCreateAccessWhiteListGroupResponse creates a response to parse from CreateAccessWhiteListGroup response +func CreateCreateAccessWhiteListGroupResponse() (response *CreateAccessWhiteListGroupResponse) { + response = &CreateAccessWhiteListGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/create_cpmc_punish_feed_back.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/create_cpmc_punish_feed_back.go new file mode 100644 index 0000000..a13ea2e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/create_cpmc_punish_feed_back.go @@ -0,0 +1,114 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateCpmcPunishFeedBack invokes the jarvis.CreateCpmcPunishFeedBack API synchronously +// api document: https://help.aliyun.com/api/jarvis/createcpmcpunishfeedback.html +func (client *Client) CreateCpmcPunishFeedBack(request *CreateCpmcPunishFeedBackRequest) (response *CreateCpmcPunishFeedBackResponse, err error) { + response = CreateCreateCpmcPunishFeedBackResponse() + err = client.DoAction(request, response) + return +} + +// CreateCpmcPunishFeedBackWithChan invokes the jarvis.CreateCpmcPunishFeedBack API asynchronously +// api document: https://help.aliyun.com/api/jarvis/createcpmcpunishfeedback.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateCpmcPunishFeedBackWithChan(request *CreateCpmcPunishFeedBackRequest) (<-chan *CreateCpmcPunishFeedBackResponse, <-chan error) { + responseChan := make(chan *CreateCpmcPunishFeedBackResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateCpmcPunishFeedBack(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateCpmcPunishFeedBackWithCallback invokes the jarvis.CreateCpmcPunishFeedBack API asynchronously +// api document: https://help.aliyun.com/api/jarvis/createcpmcpunishfeedback.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateCpmcPunishFeedBackWithCallback(request *CreateCpmcPunishFeedBackRequest, callback func(response *CreateCpmcPunishFeedBackResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateCpmcPunishFeedBackResponse + var err error + defer close(result) + response, err = client.CreateCpmcPunishFeedBack(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateCpmcPunishFeedBackRequest is the request struct for api CreateCpmcPunishFeedBack +type CreateCpmcPunishFeedBackRequest struct { + *requests.RpcRequest + FeedBack requests.Integer `position:"Query" name:"FeedBack"` + SrcIP string `position:"Query" name:"SrcIP"` + SourceIp string `position:"Query" name:"SourceIp"` + DstPort requests.Integer `position:"Query" name:"DstPort"` + ProtocolName string `position:"Query" name:"ProtocolName"` + SrcPort requests.Integer `position:"Query" name:"SrcPort"` + PunishType string `position:"Query" name:"PunishType"` + GmtCreate string `position:"Query" name:"GmtCreate"` + DstIP string `position:"Query" name:"DstIP"` + Lang string `position:"Query" name:"Lang"` + SourceCode string `position:"Query" name:"SourceCode"` +} + +// CreateCpmcPunishFeedBackResponse is the response struct for api CreateCpmcPunishFeedBack +type CreateCpmcPunishFeedBackResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module string `json:"Module" xml:"Module"` +} + +// CreateCreateCpmcPunishFeedBackRequest creates a request to invoke CreateCpmcPunishFeedBack API +func CreateCreateCpmcPunishFeedBackRequest() (request *CreateCpmcPunishFeedBackRequest) { + request = &CreateCpmcPunishFeedBackRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis", "2018-02-06", "CreateCpmcPunishFeedBack", "", "") + return +} + +// CreateCreateCpmcPunishFeedBackResponse creates a response to parse from CreateCpmcPunishFeedBack response +func CreateCreateCpmcPunishFeedBackResponse() (response *CreateCpmcPunishFeedBackResponse) { + response = &CreateCpmcPunishFeedBackResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/create_uid_white_list_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/create_uid_white_list_group.go new file mode 100644 index 0000000..1dc3b9b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/create_uid_white_list_group.go @@ -0,0 +1,114 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateUidWhiteListGroup invokes the jarvis.CreateUidWhiteListGroup API synchronously +// api document: https://help.aliyun.com/api/jarvis/createuidwhitelistgroup.html +func (client *Client) CreateUidWhiteListGroup(request *CreateUidWhiteListGroupRequest) (response *CreateUidWhiteListGroupResponse, err error) { + response = CreateCreateUidWhiteListGroupResponse() + err = client.DoAction(request, response) + return +} + +// CreateUidWhiteListGroupWithChan invokes the jarvis.CreateUidWhiteListGroup API asynchronously +// api document: https://help.aliyun.com/api/jarvis/createuidwhitelistgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateUidWhiteListGroupWithChan(request *CreateUidWhiteListGroupRequest) (<-chan *CreateUidWhiteListGroupResponse, <-chan error) { + responseChan := make(chan *CreateUidWhiteListGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateUidWhiteListGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateUidWhiteListGroupWithCallback invokes the jarvis.CreateUidWhiteListGroup API asynchronously +// api document: https://help.aliyun.com/api/jarvis/createuidwhitelistgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateUidWhiteListGroupWithCallback(request *CreateUidWhiteListGroupRequest, callback func(response *CreateUidWhiteListGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateUidWhiteListGroupResponse + var err error + defer close(result) + response, err = client.CreateUidWhiteListGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateUidWhiteListGroupRequest is the request struct for api CreateUidWhiteListGroup +type CreateUidWhiteListGroupRequest struct { + *requests.RpcRequest + Note string `position:"Query" name:"Note"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SourceIp string `position:"Query" name:"SourceIp"` + DstPort requests.Integer `position:"Query" name:"DstPort"` + InstanceIdList string `position:"Query" name:"InstanceIdList"` + LiveTime requests.Integer `position:"Query" name:"LiveTime"` + ProductName string `position:"Query" name:"ProductName"` + WhiteListType requests.Integer `position:"Query" name:"WhiteListType"` + Lang string `position:"Query" name:"Lang"` + SrcUid string `position:"Query" name:"SrcUid"` + SourceCode string `position:"Query" name:"SourceCode"` +} + +// CreateUidWhiteListGroupResponse is the response struct for api CreateUidWhiteListGroup +type CreateUidWhiteListGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module string `json:"Module" xml:"Module"` +} + +// CreateCreateUidWhiteListGroupRequest creates a request to invoke CreateUidWhiteListGroup API +func CreateCreateUidWhiteListGroupRequest() (request *CreateUidWhiteListGroupRequest) { + request = &CreateUidWhiteListGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis", "2018-02-06", "CreateUidWhiteListGroup", "", "") + return +} + +// CreateCreateUidWhiteListGroupResponse creates a response to parse from CreateUidWhiteListGroup response +func CreateCreateUidWhiteListGroupResponse() (response *CreateUidWhiteListGroupResponse) { + response = &CreateUidWhiteListGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/delete_access_white_list_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/delete_access_white_list_group.go new file mode 100644 index 0000000..fde00c7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/delete_access_white_list_group.go @@ -0,0 +1,107 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteAccessWhiteListGroup invokes the jarvis.DeleteAccessWhiteListGroup API synchronously +// api document: https://help.aliyun.com/api/jarvis/deleteaccesswhitelistgroup.html +func (client *Client) DeleteAccessWhiteListGroup(request *DeleteAccessWhiteListGroupRequest) (response *DeleteAccessWhiteListGroupResponse, err error) { + response = CreateDeleteAccessWhiteListGroupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteAccessWhiteListGroupWithChan invokes the jarvis.DeleteAccessWhiteListGroup API asynchronously +// api document: https://help.aliyun.com/api/jarvis/deleteaccesswhitelistgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAccessWhiteListGroupWithChan(request *DeleteAccessWhiteListGroupRequest) (<-chan *DeleteAccessWhiteListGroupResponse, <-chan error) { + responseChan := make(chan *DeleteAccessWhiteListGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteAccessWhiteListGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteAccessWhiteListGroupWithCallback invokes the jarvis.DeleteAccessWhiteListGroup API asynchronously +// api document: https://help.aliyun.com/api/jarvis/deleteaccesswhitelistgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAccessWhiteListGroupWithCallback(request *DeleteAccessWhiteListGroupRequest, callback func(response *DeleteAccessWhiteListGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteAccessWhiteListGroupResponse + var err error + defer close(result) + response, err = client.DeleteAccessWhiteListGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteAccessWhiteListGroupRequest is the request struct for api DeleteAccessWhiteListGroup +type DeleteAccessWhiteListGroupRequest struct { + *requests.RpcRequest + GroupIdList string `position:"Query" name:"GroupIdList"` + SourceIp string `position:"Query" name:"SourceIp"` + Lang string `position:"Query" name:"Lang"` + SourceCode string `position:"Query" name:"SourceCode"` +} + +// DeleteAccessWhiteListGroupResponse is the response struct for api DeleteAccessWhiteListGroup +type DeleteAccessWhiteListGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module string `json:"Module" xml:"Module"` +} + +// CreateDeleteAccessWhiteListGroupRequest creates a request to invoke DeleteAccessWhiteListGroup API +func CreateDeleteAccessWhiteListGroupRequest() (request *DeleteAccessWhiteListGroupRequest) { + request = &DeleteAccessWhiteListGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis", "2018-02-06", "DeleteAccessWhiteListGroup", "", "") + return +} + +// CreateDeleteAccessWhiteListGroupResponse creates a response to parse from DeleteAccessWhiteListGroup response +func CreateDeleteAccessWhiteListGroupResponse() (response *DeleteAccessWhiteListGroupResponse) { + response = &DeleteAccessWhiteListGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/delete_uid_white_list_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/delete_uid_white_list_group.go new file mode 100644 index 0000000..1bf51e5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/delete_uid_white_list_group.go @@ -0,0 +1,107 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteUidWhiteListGroup invokes the jarvis.DeleteUidWhiteListGroup API synchronously +// api document: https://help.aliyun.com/api/jarvis/deleteuidwhitelistgroup.html +func (client *Client) DeleteUidWhiteListGroup(request *DeleteUidWhiteListGroupRequest) (response *DeleteUidWhiteListGroupResponse, err error) { + response = CreateDeleteUidWhiteListGroupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteUidWhiteListGroupWithChan invokes the jarvis.DeleteUidWhiteListGroup API asynchronously +// api document: https://help.aliyun.com/api/jarvis/deleteuidwhitelistgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteUidWhiteListGroupWithChan(request *DeleteUidWhiteListGroupRequest) (<-chan *DeleteUidWhiteListGroupResponse, <-chan error) { + responseChan := make(chan *DeleteUidWhiteListGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteUidWhiteListGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteUidWhiteListGroupWithCallback invokes the jarvis.DeleteUidWhiteListGroup API asynchronously +// api document: https://help.aliyun.com/api/jarvis/deleteuidwhitelistgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteUidWhiteListGroupWithCallback(request *DeleteUidWhiteListGroupRequest, callback func(response *DeleteUidWhiteListGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteUidWhiteListGroupResponse + var err error + defer close(result) + response, err = client.DeleteUidWhiteListGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteUidWhiteListGroupRequest is the request struct for api DeleteUidWhiteListGroup +type DeleteUidWhiteListGroupRequest struct { + *requests.RpcRequest + GroupIdList string `position:"Query" name:"GroupIdList"` + SourceIp string `position:"Query" name:"SourceIp"` + Lang string `position:"Query" name:"Lang"` + SourceCode string `position:"Query" name:"SourceCode"` +} + +// DeleteUidWhiteListGroupResponse is the response struct for api DeleteUidWhiteListGroup +type DeleteUidWhiteListGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module string `json:"Module" xml:"Module"` +} + +// CreateDeleteUidWhiteListGroupRequest creates a request to invoke DeleteUidWhiteListGroup API +func CreateDeleteUidWhiteListGroupRequest() (request *DeleteUidWhiteListGroupRequest) { + request = &DeleteUidWhiteListGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis", "2018-02-06", "DeleteUidWhiteListGroup", "", "") + return +} + +// CreateDeleteUidWhiteListGroupResponse creates a response to parse from DeleteUidWhiteListGroup response +func CreateDeleteUidWhiteListGroupResponse() (response *DeleteUidWhiteListGroupResponse) { + response = &DeleteUidWhiteListGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_access_white_list_eip_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_access_white_list_eip_list.go new file mode 100644 index 0000000..2c377e4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_access_white_list_eip_list.go @@ -0,0 +1,108 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAccessWhiteListEipList invokes the jarvis.DescribeAccessWhiteListEipList API synchronously +// api document: https://help.aliyun.com/api/jarvis/describeaccesswhitelisteiplist.html +func (client *Client) DescribeAccessWhiteListEipList(request *DescribeAccessWhiteListEipListRequest) (response *DescribeAccessWhiteListEipListResponse, err error) { + response = CreateDescribeAccessWhiteListEipListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAccessWhiteListEipListWithChan invokes the jarvis.DescribeAccessWhiteListEipList API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describeaccesswhitelisteiplist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccessWhiteListEipListWithChan(request *DescribeAccessWhiteListEipListRequest) (<-chan *DescribeAccessWhiteListEipListResponse, <-chan error) { + responseChan := make(chan *DescribeAccessWhiteListEipListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAccessWhiteListEipList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAccessWhiteListEipListWithCallback invokes the jarvis.DescribeAccessWhiteListEipList API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describeaccesswhitelisteiplist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccessWhiteListEipListWithCallback(request *DescribeAccessWhiteListEipListRequest, callback func(response *DescribeAccessWhiteListEipListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAccessWhiteListEipListResponse + var err error + defer close(result) + response, err = client.DescribeAccessWhiteListEipList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAccessWhiteListEipListRequest is the request struct for api DescribeAccessWhiteListEipList +type DescribeAccessWhiteListEipListRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + Lang string `position:"Query" name:"Lang"` + SourceCode string `position:"Query" name:"SourceCode"` +} + +// DescribeAccessWhiteListEipListResponse is the response struct for api DescribeAccessWhiteListEipList +type DescribeAccessWhiteListEipListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Module string `json:"module" xml:"module"` + EcsList []Ecs `json:"EcsList" xml:"EcsList"` +} + +// CreateDescribeAccessWhiteListEipListRequest creates a request to invoke DescribeAccessWhiteListEipList API +func CreateDescribeAccessWhiteListEipListRequest() (request *DescribeAccessWhiteListEipListRequest) { + request = &DescribeAccessWhiteListEipListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis", "2018-02-06", "DescribeAccessWhiteListEipList", "", "") + return +} + +// CreateDescribeAccessWhiteListEipListResponse creates a response to parse from DescribeAccessWhiteListEipList response +func CreateDescribeAccessWhiteListEipListResponse() (response *DescribeAccessWhiteListEipListResponse) { + response = &DescribeAccessWhiteListEipListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_access_white_list_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_access_white_list_group.go new file mode 100644 index 0000000..b522efe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_access_white_list_group.go @@ -0,0 +1,114 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAccessWhiteListGroup invokes the jarvis.DescribeAccessWhiteListGroup API synchronously +// api document: https://help.aliyun.com/api/jarvis/describeaccesswhitelistgroup.html +func (client *Client) DescribeAccessWhiteListGroup(request *DescribeAccessWhiteListGroupRequest) (response *DescribeAccessWhiteListGroupResponse, err error) { + response = CreateDescribeAccessWhiteListGroupResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAccessWhiteListGroupWithChan invokes the jarvis.DescribeAccessWhiteListGroup API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describeaccesswhitelistgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccessWhiteListGroupWithChan(request *DescribeAccessWhiteListGroupRequest) (<-chan *DescribeAccessWhiteListGroupResponse, <-chan error) { + responseChan := make(chan *DescribeAccessWhiteListGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAccessWhiteListGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAccessWhiteListGroupWithCallback invokes the jarvis.DescribeAccessWhiteListGroup API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describeaccesswhitelistgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccessWhiteListGroupWithCallback(request *DescribeAccessWhiteListGroupRequest, callback func(response *DescribeAccessWhiteListGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAccessWhiteListGroupResponse + var err error + defer close(result) + response, err = client.DescribeAccessWhiteListGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAccessWhiteListGroupRequest is the request struct for api DescribeAccessWhiteListGroup +type DescribeAccessWhiteListGroupRequest struct { + *requests.RpcRequest + SrcIP string `position:"Query" name:"SrcIP"` + SourceIp string `position:"Query" name:"SourceIp"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + WhiteListType requests.Integer `position:"Query" name:"WhiteListType"` + DstIP string `position:"Query" name:"DstIP"` + Lang string `position:"Query" name:"Lang"` + Status string `position:"Query" name:"Status"` + SourceCode string `position:"Query" name:"SourceCode"` +} + +// DescribeAccessWhiteListGroupResponse is the response struct for api DescribeAccessWhiteListGroup +type DescribeAccessWhiteListGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module string `json:"module" xml:"module"` + PageInfo PageInfo `json:"PageInfo" xml:"PageInfo"` + DataList []Data `json:"DataList" xml:"DataList"` +} + +// CreateDescribeAccessWhiteListGroupRequest creates a request to invoke DescribeAccessWhiteListGroup API +func CreateDescribeAccessWhiteListGroupRequest() (request *DescribeAccessWhiteListGroupRequest) { + request = &DescribeAccessWhiteListGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis", "2018-02-06", "DescribeAccessWhiteListGroup", "", "") + return +} + +// CreateDescribeAccessWhiteListGroupResponse creates a response to parse from DescribeAccessWhiteListGroup response +func CreateDescribeAccessWhiteListGroupResponse() (response *DescribeAccessWhiteListGroupResponse) { + response = &DescribeAccessWhiteListGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_access_white_list_slb_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_access_white_list_slb_list.go new file mode 100644 index 0000000..bf98e5b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_access_white_list_slb_list.go @@ -0,0 +1,108 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAccessWhiteListSlbList invokes the jarvis.DescribeAccessWhiteListSlbList API synchronously +// api document: https://help.aliyun.com/api/jarvis/describeaccesswhitelistslblist.html +func (client *Client) DescribeAccessWhiteListSlbList(request *DescribeAccessWhiteListSlbListRequest) (response *DescribeAccessWhiteListSlbListResponse, err error) { + response = CreateDescribeAccessWhiteListSlbListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAccessWhiteListSlbListWithChan invokes the jarvis.DescribeAccessWhiteListSlbList API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describeaccesswhitelistslblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccessWhiteListSlbListWithChan(request *DescribeAccessWhiteListSlbListRequest) (<-chan *DescribeAccessWhiteListSlbListResponse, <-chan error) { + responseChan := make(chan *DescribeAccessWhiteListSlbListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAccessWhiteListSlbList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAccessWhiteListSlbListWithCallback invokes the jarvis.DescribeAccessWhiteListSlbList API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describeaccesswhitelistslblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccessWhiteListSlbListWithCallback(request *DescribeAccessWhiteListSlbListRequest, callback func(response *DescribeAccessWhiteListSlbListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAccessWhiteListSlbListResponse + var err error + defer close(result) + response, err = client.DescribeAccessWhiteListSlbList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAccessWhiteListSlbListRequest is the request struct for api DescribeAccessWhiteListSlbList +type DescribeAccessWhiteListSlbListRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + Lang string `position:"Query" name:"Lang"` + SourceCode string `position:"Query" name:"SourceCode"` +} + +// DescribeAccessWhiteListSlbListResponse is the response struct for api DescribeAccessWhiteListSlbList +type DescribeAccessWhiteListSlbListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Module string `json:"module" xml:"module"` + EcsList []Ecs `json:"EcsList" xml:"EcsList"` +} + +// CreateDescribeAccessWhiteListSlbListRequest creates a request to invoke DescribeAccessWhiteListSlbList API +func CreateDescribeAccessWhiteListSlbListRequest() (request *DescribeAccessWhiteListSlbListRequest) { + request = &DescribeAccessWhiteListSlbListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis", "2018-02-06", "DescribeAccessWhiteListSlbList", "", "") + return +} + +// CreateDescribeAccessWhiteListSlbListResponse creates a response to parse from DescribeAccessWhiteListSlbList response +func CreateDescribeAccessWhiteListSlbListResponse() (response *DescribeAccessWhiteListSlbListResponse) { + response = &DescribeAccessWhiteListSlbListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_access_whitelist_ecs_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_access_whitelist_ecs_list.go new file mode 100644 index 0000000..bc49ca8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_access_whitelist_ecs_list.go @@ -0,0 +1,108 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAccessWhitelistEcsList invokes the jarvis.DescribeAccessWhitelistEcsList API synchronously +// api document: https://help.aliyun.com/api/jarvis/describeaccesswhitelistecslist.html +func (client *Client) DescribeAccessWhitelistEcsList(request *DescribeAccessWhitelistEcsListRequest) (response *DescribeAccessWhitelistEcsListResponse, err error) { + response = CreateDescribeAccessWhitelistEcsListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAccessWhitelistEcsListWithChan invokes the jarvis.DescribeAccessWhitelistEcsList API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describeaccesswhitelistecslist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccessWhitelistEcsListWithChan(request *DescribeAccessWhitelistEcsListRequest) (<-chan *DescribeAccessWhitelistEcsListResponse, <-chan error) { + responseChan := make(chan *DescribeAccessWhitelistEcsListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAccessWhitelistEcsList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAccessWhitelistEcsListWithCallback invokes the jarvis.DescribeAccessWhitelistEcsList API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describeaccesswhitelistecslist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccessWhitelistEcsListWithCallback(request *DescribeAccessWhitelistEcsListRequest, callback func(response *DescribeAccessWhitelistEcsListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAccessWhitelistEcsListResponse + var err error + defer close(result) + response, err = client.DescribeAccessWhitelistEcsList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAccessWhitelistEcsListRequest is the request struct for api DescribeAccessWhitelistEcsList +type DescribeAccessWhitelistEcsListRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + Lang string `position:"Query" name:"Lang"` + SourceCode string `position:"Query" name:"SourceCode"` +} + +// DescribeAccessWhitelistEcsListResponse is the response struct for api DescribeAccessWhitelistEcsList +type DescribeAccessWhitelistEcsListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Module string `json:"module" xml:"module"` + EcsList []Ecs `json:"EcsList" xml:"EcsList"` +} + +// CreateDescribeAccessWhitelistEcsListRequest creates a request to invoke DescribeAccessWhitelistEcsList API +func CreateDescribeAccessWhitelistEcsListRequest() (request *DescribeAccessWhitelistEcsListRequest) { + request = &DescribeAccessWhitelistEcsListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis", "2018-02-06", "DescribeAccessWhitelistEcsList", "", "") + return +} + +// CreateDescribeAccessWhitelistEcsListResponse creates a response to parse from DescribeAccessWhitelistEcsList response +func CreateDescribeAccessWhitelistEcsListResponse() (response *DescribeAccessWhitelistEcsListResponse) { + response = &DescribeAccessWhitelistEcsListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_cpmc_punish_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_cpmc_punish_list.go new file mode 100644 index 0000000..b526867 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_cpmc_punish_list.go @@ -0,0 +1,112 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCpmcPunishList invokes the jarvis.DescribeCpmcPunishList API synchronously +// api document: https://help.aliyun.com/api/jarvis/describecpmcpunishlist.html +func (client *Client) DescribeCpmcPunishList(request *DescribeCpmcPunishListRequest) (response *DescribeCpmcPunishListResponse, err error) { + response = CreateDescribeCpmcPunishListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCpmcPunishListWithChan invokes the jarvis.DescribeCpmcPunishList API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describecpmcpunishlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCpmcPunishListWithChan(request *DescribeCpmcPunishListRequest) (<-chan *DescribeCpmcPunishListResponse, <-chan error) { + responseChan := make(chan *DescribeCpmcPunishListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCpmcPunishList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCpmcPunishListWithCallback invokes the jarvis.DescribeCpmcPunishList API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describecpmcpunishlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCpmcPunishListWithCallback(request *DescribeCpmcPunishListRequest, callback func(response *DescribeCpmcPunishListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCpmcPunishListResponse + var err error + defer close(result) + response, err = client.DescribeCpmcPunishList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCpmcPunishListRequest is the request struct for api DescribeCpmcPunishList +type DescribeCpmcPunishListRequest struct { + *requests.RpcRequest + SrcIP string `position:"Query" name:"SrcIP"` + SourceIp string `position:"Query" name:"SourceIp"` + PageSize requests.Integer `position:"Query" name:"pageSize"` + CurrentPage requests.Integer `position:"Query" name:"currentPage"` + PunishStatus string `position:"Query" name:"PunishStatus"` + Lang string `position:"Query" name:"Lang"` + SourceCode string `position:"Query" name:"SourceCode"` +} + +// DescribeCpmcPunishListResponse is the response struct for api DescribeCpmcPunishList +type DescribeCpmcPunishListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module string `json:"Module" xml:"Module"` + PageInfo PageInfo `json:"PageInfo" xml:"PageInfo"` + DataList []Data `json:"DataList" xml:"DataList"` +} + +// CreateDescribeCpmcPunishListRequest creates a request to invoke DescribeCpmcPunishList API +func CreateDescribeCpmcPunishListRequest() (request *DescribeCpmcPunishListRequest) { + request = &DescribeCpmcPunishListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis", "2018-02-06", "DescribeCpmcPunishList", "", "") + return +} + +// CreateDescribeCpmcPunishListResponse creates a response to parse from DescribeCpmcPunishList response +func CreateDescribeCpmcPunishListResponse() (response *DescribeCpmcPunishListResponse) { + response = &DescribeCpmcPunishListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_ddos_defense_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_ddos_defense_info.go new file mode 100644 index 0000000..1e3bb4c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_ddos_defense_info.go @@ -0,0 +1,111 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDdosDefenseInfo invokes the jarvis.DescribeDdosDefenseInfo API synchronously +// api document: https://help.aliyun.com/api/jarvis/describeddosdefenseinfo.html +func (client *Client) DescribeDdosDefenseInfo(request *DescribeDdosDefenseInfoRequest) (response *DescribeDdosDefenseInfoResponse, err error) { + response = CreateDescribeDdosDefenseInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDdosDefenseInfoWithChan invokes the jarvis.DescribeDdosDefenseInfo API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describeddosdefenseinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDdosDefenseInfoWithChan(request *DescribeDdosDefenseInfoRequest) (<-chan *DescribeDdosDefenseInfoResponse, <-chan error) { + responseChan := make(chan *DescribeDdosDefenseInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDdosDefenseInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDdosDefenseInfoWithCallback invokes the jarvis.DescribeDdosDefenseInfo API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describeddosdefenseinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDdosDefenseInfoWithCallback(request *DescribeDdosDefenseInfoRequest, callback func(response *DescribeDdosDefenseInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDdosDefenseInfoResponse + var err error + defer close(result) + response, err = client.DescribeDdosDefenseInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDdosDefenseInfoRequest is the request struct for api DescribeDdosDefenseInfo +type DescribeDdosDefenseInfoRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + Lang string `position:"Query" name:"Lang"` + SrcUid requests.Integer `position:"Query" name:"srcUid"` + SourceCode string `position:"Query" name:"sourceCode"` +} + +// DescribeDdosDefenseInfoResponse is the response struct for api DescribeDdosDefenseInfo +type DescribeDdosDefenseInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module string `json:"Module" xml:"Module"` + BlackTimes int `json:"BlackTimes" xml:"BlackTimes"` + Duration int `json:"Duration" xml:"Duration"` + BgpPkgState string `json:"BgpPkgState" xml:"BgpPkgState"` + DdosDefenseThreshold []DdosDefenseThresholdItem `json:"DdosDefenseThreshold" xml:"DdosDefenseThreshold"` +} + +// CreateDescribeDdosDefenseInfoRequest creates a request to invoke DescribeDdosDefenseInfo API +func CreateDescribeDdosDefenseInfoRequest() (request *DescribeDdosDefenseInfoRequest) { + request = &DescribeDdosDefenseInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis", "2018-02-06", "DescribeDdosDefenseInfo", "", "") + return +} + +// CreateDescribeDdosDefenseInfoResponse creates a response to parse from DescribeDdosDefenseInfo response +func CreateDescribeDdosDefenseInfoResponse() (response *DescribeDdosDefenseInfoResponse) { + response = &DescribeDdosDefenseInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_phone_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_phone_info.go new file mode 100644 index 0000000..0e61aa6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_phone_info.go @@ -0,0 +1,110 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribePhoneInfo invokes the jarvis.DescribePhoneInfo API synchronously +// api document: https://help.aliyun.com/api/jarvis/describephoneinfo.html +func (client *Client) DescribePhoneInfo(request *DescribePhoneInfoRequest) (response *DescribePhoneInfoResponse, err error) { + response = CreateDescribePhoneInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribePhoneInfoWithChan invokes the jarvis.DescribePhoneInfo API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describephoneinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePhoneInfoWithChan(request *DescribePhoneInfoRequest) (<-chan *DescribePhoneInfoResponse, <-chan error) { + responseChan := make(chan *DescribePhoneInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribePhoneInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribePhoneInfoWithCallback invokes the jarvis.DescribePhoneInfo API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describephoneinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePhoneInfoWithCallback(request *DescribePhoneInfoRequest, callback func(response *DescribePhoneInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribePhoneInfoResponse + var err error + defer close(result) + response, err = client.DescribePhoneInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribePhoneInfoRequest is the request struct for api DescribePhoneInfo +type DescribePhoneInfoRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + PhoneNum string `position:"Query" name:"phoneNum"` + Lang string `position:"Query" name:"Lang"` + SourceCode string `position:"Query" name:"sourceCode"` +} + +// DescribePhoneInfoResponse is the response struct for api DescribePhoneInfo +type DescribePhoneInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module string `json:"Module" xml:"Module"` + PhoneNum int `json:"phoneNum" xml:"phoneNum"` + RiskLevel int `json:"riskLevel" xml:"riskLevel"` + DetectTime string `json:"detectTime" xml:"detectTime"` +} + +// CreateDescribePhoneInfoRequest creates a request to invoke DescribePhoneInfo API +func CreateDescribePhoneInfoRequest() (request *DescribePhoneInfoRequest) { + request = &DescribePhoneInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis", "2018-02-06", "DescribePhoneInfo", "", "") + return +} + +// CreateDescribePhoneInfoResponse creates a response to parse from DescribePhoneInfo response +func CreateDescribePhoneInfoResponse() (response *DescribePhoneInfoResponse) { + response = &DescribePhoneInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_punish_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_punish_list.go new file mode 100644 index 0000000..38e4302 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_punish_list.go @@ -0,0 +1,113 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribePunishList invokes the jarvis.DescribePunishList API synchronously +// api document: https://help.aliyun.com/api/jarvis/describepunishlist.html +func (client *Client) DescribePunishList(request *DescribePunishListRequest) (response *DescribePunishListResponse, err error) { + response = CreateDescribePunishListResponse() + err = client.DoAction(request, response) + return +} + +// DescribePunishListWithChan invokes the jarvis.DescribePunishList API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describepunishlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePunishListWithChan(request *DescribePunishListRequest) (<-chan *DescribePunishListResponse, <-chan error) { + responseChan := make(chan *DescribePunishListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribePunishList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribePunishListWithCallback invokes the jarvis.DescribePunishList API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describepunishlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePunishListWithCallback(request *DescribePunishListRequest, callback func(response *DescribePunishListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribePunishListResponse + var err error + defer close(result) + response, err = client.DescribePunishList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribePunishListRequest is the request struct for api DescribePunishList +type DescribePunishListRequest struct { + *requests.RpcRequest + SrcIP string `position:"Query" name:"SrcIP"` + SourceIp string `position:"Query" name:"SourceIp"` + PageSize requests.Integer `position:"Query" name:"pageSize"` + CurrentPage requests.Integer `position:"Query" name:"currentPage"` + PunishStatus string `position:"Query" name:"PunishStatus"` + Lang string `position:"Query" name:"Lang"` + SrcUid requests.Integer `position:"Query" name:"srcUid"` + SourceCode string `position:"Query" name:"sourceCode"` +} + +// DescribePunishListResponse is the response struct for api DescribePunishList +type DescribePunishListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module string `json:"Module" xml:"Module"` + PageInfo PageInfo `json:"PageInfo" xml:"PageInfo"` + DataList []Data `json:"DataList" xml:"DataList"` +} + +// CreateDescribePunishListRequest creates a request to invoke DescribePunishList API +func CreateDescribePunishListRequest() (request *DescribePunishListRequest) { + request = &DescribePunishListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis", "2018-02-06", "DescribePunishList", "", "") + return +} + +// CreateDescribePunishListResponse creates a response to parse from DescribePunishList response +func CreateDescribePunishListResponse() (response *DescribePunishListResponse) { + response = &DescribePunishListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_reset_record_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_reset_record_list.go new file mode 100644 index 0000000..6849c40 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_reset_record_list.go @@ -0,0 +1,114 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeResetRecordList invokes the jarvis.DescribeResetRecordList API synchronously +// api document: https://help.aliyun.com/api/jarvis/describeresetrecordlist.html +func (client *Client) DescribeResetRecordList(request *DescribeResetRecordListRequest) (response *DescribeResetRecordListResponse, err error) { + response = CreateDescribeResetRecordListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeResetRecordListWithChan invokes the jarvis.DescribeResetRecordList API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describeresetrecordlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeResetRecordListWithChan(request *DescribeResetRecordListRequest) (<-chan *DescribeResetRecordListResponse, <-chan error) { + responseChan := make(chan *DescribeResetRecordListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeResetRecordList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeResetRecordListWithCallback invokes the jarvis.DescribeResetRecordList API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describeresetrecordlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeResetRecordListWithCallback(request *DescribeResetRecordListRequest, callback func(response *DescribeResetRecordListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeResetRecordListResponse + var err error + defer close(result) + response, err = client.DescribeResetRecordList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeResetRecordListRequest is the request struct for api DescribeResetRecordList +type DescribeResetRecordListRequest struct { + *requests.RpcRequest + SrcIP string `position:"Query" name:"SrcIP"` + Period string `position:"Query" name:"Period"` + SourceIp string `position:"Query" name:"SourceIp"` + PageSize requests.Integer `position:"Query" name:"pageSize"` + CurrentPage requests.Integer `position:"Query" name:"currentPage"` + DstIP string `position:"Query" name:"DstIP"` + Region string `position:"Query" name:"Region"` + Lang string `position:"Query" name:"Lang"` + SourceCode string `position:"Query" name:"SourceCode"` +} + +// DescribeResetRecordListResponse is the response struct for api DescribeResetRecordList +type DescribeResetRecordListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module string `json:"Module" xml:"Module"` + PageInfo PageInfo `json:"PageInfo" xml:"PageInfo"` + DataList []Data `json:"DataList" xml:"DataList"` +} + +// CreateDescribeResetRecordListRequest creates a request to invoke DescribeResetRecordList API +func CreateDescribeResetRecordListRequest() (request *DescribeResetRecordListRequest) { + request = &DescribeResetRecordListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis", "2018-02-06", "DescribeResetRecordList", "", "") + return +} + +// CreateDescribeResetRecordListResponse creates a response to parse from DescribeResetRecordList response +func CreateDescribeResetRecordListResponse() (response *DescribeResetRecordListResponse) { + response = &DescribeResetRecordListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_reset_record_query_count.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_reset_record_query_count.go new file mode 100644 index 0000000..28019fc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_reset_record_query_count.go @@ -0,0 +1,108 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeResetRecordQueryCount invokes the jarvis.DescribeResetRecordQueryCount API synchronously +// api document: https://help.aliyun.com/api/jarvis/describeresetrecordquerycount.html +func (client *Client) DescribeResetRecordQueryCount(request *DescribeResetRecordQueryCountRequest) (response *DescribeResetRecordQueryCountResponse, err error) { + response = CreateDescribeResetRecordQueryCountResponse() + err = client.DoAction(request, response) + return +} + +// DescribeResetRecordQueryCountWithChan invokes the jarvis.DescribeResetRecordQueryCount API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describeresetrecordquerycount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeResetRecordQueryCountWithChan(request *DescribeResetRecordQueryCountRequest) (<-chan *DescribeResetRecordQueryCountResponse, <-chan error) { + responseChan := make(chan *DescribeResetRecordQueryCountResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeResetRecordQueryCount(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeResetRecordQueryCountWithCallback invokes the jarvis.DescribeResetRecordQueryCount API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describeresetrecordquerycount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeResetRecordQueryCountWithCallback(request *DescribeResetRecordQueryCountRequest, callback func(response *DescribeResetRecordQueryCountResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeResetRecordQueryCountResponse + var err error + defer close(result) + response, err = client.DescribeResetRecordQueryCount(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeResetRecordQueryCountRequest is the request struct for api DescribeResetRecordQueryCount +type DescribeResetRecordQueryCountRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + Lang string `position:"Query" name:"Lang"` + SourceCode string `position:"Query" name:"SourceCode"` +} + +// DescribeResetRecordQueryCountResponse is the response struct for api DescribeResetRecordQueryCount +type DescribeResetRecordQueryCountResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + QueryCount int `json:"QueryCount" xml:"QueryCount"` + Module string `json:"Module" xml:"Module"` +} + +// CreateDescribeResetRecordQueryCountRequest creates a request to invoke DescribeResetRecordQueryCount API +func CreateDescribeResetRecordQueryCountRequest() (request *DescribeResetRecordQueryCountRequest) { + request = &DescribeResetRecordQueryCountRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis", "2018-02-06", "DescribeResetRecordQueryCount", "", "") + return +} + +// CreateDescribeResetRecordQueryCountResponse creates a response to parse from DescribeResetRecordQueryCount response +func CreateDescribeResetRecordQueryCountResponse() (response *DescribeResetRecordQueryCountResponse) { + response = &DescribeResetRecordQueryCountResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_risk_list_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_risk_list_detail.go new file mode 100644 index 0000000..650ed80 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_risk_list_detail.go @@ -0,0 +1,116 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRiskListDetail invokes the jarvis.DescribeRiskListDetail API synchronously +// api document: https://help.aliyun.com/api/jarvis/describerisklistdetail.html +func (client *Client) DescribeRiskListDetail(request *DescribeRiskListDetailRequest) (response *DescribeRiskListDetailResponse, err error) { + response = CreateDescribeRiskListDetailResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRiskListDetailWithChan invokes the jarvis.DescribeRiskListDetail API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describerisklistdetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRiskListDetailWithChan(request *DescribeRiskListDetailRequest) (<-chan *DescribeRiskListDetailResponse, <-chan error) { + responseChan := make(chan *DescribeRiskListDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRiskListDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRiskListDetailWithCallback invokes the jarvis.DescribeRiskListDetail API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describerisklistdetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRiskListDetailWithCallback(request *DescribeRiskListDetailRequest, callback func(response *DescribeRiskListDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRiskListDetailResponse + var err error + defer close(result) + response, err = client.DescribeRiskListDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRiskListDetailRequest is the request struct for api DescribeRiskListDetail +type DescribeRiskListDetailRequest struct { + *requests.RpcRequest + RiskType string `position:"Query" name:"riskType"` + SourceIp string `position:"Query" name:"SourceIp"` + PageSize requests.Integer `position:"Query" name:"pageSize"` + QueryProduct string `position:"Query" name:"queryProduct"` + CurrentPage requests.Integer `position:"Query" name:"currentPage"` + RiskDescribe string `position:"Query" name:"riskDescribe"` + Lang string `position:"Query" name:"Lang"` + SrcUid requests.Integer `position:"Query" name:"srcUid"` + SourceCode string `position:"Query" name:"sourceCode"` + QueryRegionId string `position:"Query" name:"queryRegionId"` + Status string `position:"Query" name:"status"` +} + +// DescribeRiskListDetailResponse is the response struct for api DescribeRiskListDetail +type DescribeRiskListDetailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module string `json:"Module" xml:"Module"` + PageInfo PageInfo `json:"PageInfo" xml:"PageInfo"` + DataList []Data `json:"DataList" xml:"DataList"` +} + +// CreateDescribeRiskListDetailRequest creates a request to invoke DescribeRiskListDetail API +func CreateDescribeRiskListDetailRequest() (request *DescribeRiskListDetailRequest) { + request = &DescribeRiskListDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis", "2018-02-06", "DescribeRiskListDetail", "", "") + return +} + +// CreateDescribeRiskListDetailResponse creates a response to parse from DescribeRiskListDetail response +func CreateDescribeRiskListDetailResponse() (response *DescribeRiskListDetailResponse) { + response = &DescribeRiskListDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_risk_trend.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_risk_trend.go new file mode 100644 index 0000000..7da8ed1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_risk_trend.go @@ -0,0 +1,111 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRiskTrend invokes the jarvis.DescribeRiskTrend API synchronously +// api document: https://help.aliyun.com/api/jarvis/describerisktrend.html +func (client *Client) DescribeRiskTrend(request *DescribeRiskTrendRequest) (response *DescribeRiskTrendResponse, err error) { + response = CreateDescribeRiskTrendResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRiskTrendWithChan invokes the jarvis.DescribeRiskTrend API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describerisktrend.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRiskTrendWithChan(request *DescribeRiskTrendRequest) (<-chan *DescribeRiskTrendResponse, <-chan error) { + responseChan := make(chan *DescribeRiskTrendResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRiskTrend(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRiskTrendWithCallback invokes the jarvis.DescribeRiskTrend API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describerisktrend.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRiskTrendWithCallback(request *DescribeRiskTrendRequest, callback func(response *DescribeRiskTrendResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRiskTrendResponse + var err error + defer close(result) + response, err = client.DescribeRiskTrend(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRiskTrendRequest is the request struct for api DescribeRiskTrend +type DescribeRiskTrendRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + QueryProduct string `position:"Query" name:"QueryProduct"` + Lang string `position:"Query" name:"Lang"` + Peroid string `position:"Query" name:"Peroid"` + SourceCode string `position:"Query" name:"SourceCode"` + QueryRegionId string `position:"Query" name:"QueryRegionId"` +} + +// DescribeRiskTrendResponse is the response struct for api DescribeRiskTrend +type DescribeRiskTrendResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount string `json:"TotalCount" xml:"TotalCount"` + Module string `json:"Module" xml:"Module"` + DataList []DataItem `json:"DataList" xml:"DataList"` +} + +// CreateDescribeRiskTrendRequest creates a request to invoke DescribeRiskTrend API +func CreateDescribeRiskTrendRequest() (request *DescribeRiskTrendRequest) { + request = &DescribeRiskTrendRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis", "2018-02-06", "DescribeRiskTrend", "", "") + return +} + +// CreateDescribeRiskTrendResponse creates a response to parse from DescribeRiskTrend response +func CreateDescribeRiskTrendResponse() (response *DescribeRiskTrendResponse) { + response = &DescribeRiskTrendResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_uid_gc_level.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_uid_gc_level.go new file mode 100644 index 0000000..835868a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_uid_gc_level.go @@ -0,0 +1,107 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeUidGcLevel invokes the jarvis.DescribeUidGcLevel API synchronously +// api document: https://help.aliyun.com/api/jarvis/describeuidgclevel.html +func (client *Client) DescribeUidGcLevel(request *DescribeUidGcLevelRequest) (response *DescribeUidGcLevelResponse, err error) { + response = CreateDescribeUidGcLevelResponse() + err = client.DoAction(request, response) + return +} + +// DescribeUidGcLevelWithChan invokes the jarvis.DescribeUidGcLevel API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describeuidgclevel.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUidGcLevelWithChan(request *DescribeUidGcLevelRequest) (<-chan *DescribeUidGcLevelResponse, <-chan error) { + responseChan := make(chan *DescribeUidGcLevelResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeUidGcLevel(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeUidGcLevelWithCallback invokes the jarvis.DescribeUidGcLevel API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describeuidgclevel.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUidGcLevelWithCallback(request *DescribeUidGcLevelRequest, callback func(response *DescribeUidGcLevelResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeUidGcLevelResponse + var err error + defer close(result) + response, err = client.DescribeUidGcLevel(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeUidGcLevelRequest is the request struct for api DescribeUidGcLevel +type DescribeUidGcLevelRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + Lang string `position:"Query" name:"Lang"` + SourceCode string `position:"Query" name:"SourceCode"` +} + +// DescribeUidGcLevelResponse is the response struct for api DescribeUidGcLevel +type DescribeUidGcLevelResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module string `json:"Module" xml:"Module"` + Gclevel string `json:"Gclevel" xml:"Gclevel"` +} + +// CreateDescribeUidGcLevelRequest creates a request to invoke DescribeUidGcLevel API +func CreateDescribeUidGcLevelRequest() (request *DescribeUidGcLevelRequest) { + request = &DescribeUidGcLevelRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis", "2018-02-06", "DescribeUidGcLevel", "", "") + return +} + +// CreateDescribeUidGcLevelResponse creates a response to parse from DescribeUidGcLevel response +func CreateDescribeUidGcLevelResponse() (response *DescribeUidGcLevelResponse) { + response = &DescribeUidGcLevelResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_uid_white_list_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_uid_white_list_group.go new file mode 100644 index 0000000..972d36d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/describe_uid_white_list_group.go @@ -0,0 +1,115 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeUidWhiteListGroup invokes the jarvis.DescribeUidWhiteListGroup API synchronously +// api document: https://help.aliyun.com/api/jarvis/describeuidwhitelistgroup.html +func (client *Client) DescribeUidWhiteListGroup(request *DescribeUidWhiteListGroupRequest) (response *DescribeUidWhiteListGroupResponse, err error) { + response = CreateDescribeUidWhiteListGroupResponse() + err = client.DoAction(request, response) + return +} + +// DescribeUidWhiteListGroupWithChan invokes the jarvis.DescribeUidWhiteListGroup API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describeuidwhitelistgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUidWhiteListGroupWithChan(request *DescribeUidWhiteListGroupRequest) (<-chan *DescribeUidWhiteListGroupResponse, <-chan error) { + responseChan := make(chan *DescribeUidWhiteListGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeUidWhiteListGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeUidWhiteListGroupWithCallback invokes the jarvis.DescribeUidWhiteListGroup API asynchronously +// api document: https://help.aliyun.com/api/jarvis/describeuidwhitelistgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUidWhiteListGroupWithCallback(request *DescribeUidWhiteListGroupRequest, callback func(response *DescribeUidWhiteListGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeUidWhiteListGroupResponse + var err error + defer close(result) + response, err = client.DescribeUidWhiteListGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeUidWhiteListGroupRequest is the request struct for api DescribeUidWhiteListGroup +type DescribeUidWhiteListGroupRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + WhiteListType requests.Integer `position:"Query" name:"WhiteListType"` + DstIP string `position:"Query" name:"DstIP"` + Lang string `position:"Query" name:"Lang"` + SrcUid string `position:"Query" name:"SrcUid"` + Status string `position:"Query" name:"Status"` + SourceCode string `position:"Query" name:"SourceCode"` +} + +// DescribeUidWhiteListGroupResponse is the response struct for api DescribeUidWhiteListGroup +type DescribeUidWhiteListGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module string `json:"module" xml:"module"` + ProductList []string `json:"ProductList" xml:"ProductList"` + PageInfo PageInfo `json:"PageInfo" xml:"PageInfo"` + DataList []Data `json:"DataList" xml:"DataList"` +} + +// CreateDescribeUidWhiteListGroupRequest creates a request to invoke DescribeUidWhiteListGroup API +func CreateDescribeUidWhiteListGroupRequest() (request *DescribeUidWhiteListGroupRequest) { + request = &DescribeUidWhiteListGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis", "2018-02-06", "DescribeUidWhiteListGroup", "", "") + return +} + +// CreateDescribeUidWhiteListGroupResponse creates a response to parse from DescribeUidWhiteListGroup response +func CreateDescribeUidWhiteListGroupResponse() (response *DescribeUidWhiteListGroupResponse) { + response = &DescribeUidWhiteListGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/modify_access_white_list_auto_share.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/modify_access_white_list_auto_share.go new file mode 100644 index 0000000..5dbeab4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/modify_access_white_list_auto_share.go @@ -0,0 +1,110 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyAccessWhiteListAutoShare invokes the jarvis.ModifyAccessWhiteListAutoShare API synchronously +// api document: https://help.aliyun.com/api/jarvis/modifyaccesswhitelistautoshare.html +func (client *Client) ModifyAccessWhiteListAutoShare(request *ModifyAccessWhiteListAutoShareRequest) (response *ModifyAccessWhiteListAutoShareResponse, err error) { + response = CreateModifyAccessWhiteListAutoShareResponse() + err = client.DoAction(request, response) + return +} + +// ModifyAccessWhiteListAutoShareWithChan invokes the jarvis.ModifyAccessWhiteListAutoShare API asynchronously +// api document: https://help.aliyun.com/api/jarvis/modifyaccesswhitelistautoshare.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyAccessWhiteListAutoShareWithChan(request *ModifyAccessWhiteListAutoShareRequest) (<-chan *ModifyAccessWhiteListAutoShareResponse, <-chan error) { + responseChan := make(chan *ModifyAccessWhiteListAutoShareResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyAccessWhiteListAutoShare(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyAccessWhiteListAutoShareWithCallback invokes the jarvis.ModifyAccessWhiteListAutoShare API asynchronously +// api document: https://help.aliyun.com/api/jarvis/modifyaccesswhitelistautoshare.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyAccessWhiteListAutoShareWithCallback(request *ModifyAccessWhiteListAutoShareRequest, callback func(response *ModifyAccessWhiteListAutoShareResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyAccessWhiteListAutoShareResponse + var err error + defer close(result) + response, err = client.ModifyAccessWhiteListAutoShare(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyAccessWhiteListAutoShareRequest is the request struct for api ModifyAccessWhiteListAutoShare +type ModifyAccessWhiteListAutoShareRequest struct { + *requests.RpcRequest + SrcIP string `position:"Query" name:"SrcIP"` + SourceIp string `position:"Query" name:"SourceIp"` + AutoConfig requests.Integer `position:"Query" name:"AutoConfig"` + ProductName string `position:"Query" name:"ProductName"` + WhiteListType requests.Integer `position:"Query" name:"WhiteListType"` + Lang string `position:"Query" name:"Lang"` + SourceCode string `position:"Query" name:"SourceCode"` +} + +// ModifyAccessWhiteListAutoShareResponse is the response struct for api ModifyAccessWhiteListAutoShare +type ModifyAccessWhiteListAutoShareResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module string `json:"Module" xml:"Module"` +} + +// CreateModifyAccessWhiteListAutoShareRequest creates a request to invoke ModifyAccessWhiteListAutoShare API +func CreateModifyAccessWhiteListAutoShareRequest() (request *ModifyAccessWhiteListAutoShareRequest) { + request = &ModifyAccessWhiteListAutoShareRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis", "2018-02-06", "ModifyAccessWhiteListAutoShare", "", "") + return +} + +// CreateModifyAccessWhiteListAutoShareResponse creates a response to parse from ModifyAccessWhiteListAutoShare response +func CreateModifyAccessWhiteListAutoShareResponse() (response *ModifyAccessWhiteListAutoShareResponse) { + response = &ModifyAccessWhiteListAutoShareResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/modify_uid_white_list_auto_share.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/modify_uid_white_list_auto_share.go new file mode 100644 index 0000000..8ed323d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/modify_uid_white_list_auto_share.go @@ -0,0 +1,110 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyUidWhiteListAutoShare invokes the jarvis.ModifyUidWhiteListAutoShare API synchronously +// api document: https://help.aliyun.com/api/jarvis/modifyuidwhitelistautoshare.html +func (client *Client) ModifyUidWhiteListAutoShare(request *ModifyUidWhiteListAutoShareRequest) (response *ModifyUidWhiteListAutoShareResponse, err error) { + response = CreateModifyUidWhiteListAutoShareResponse() + err = client.DoAction(request, response) + return +} + +// ModifyUidWhiteListAutoShareWithChan invokes the jarvis.ModifyUidWhiteListAutoShare API asynchronously +// api document: https://help.aliyun.com/api/jarvis/modifyuidwhitelistautoshare.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyUidWhiteListAutoShareWithChan(request *ModifyUidWhiteListAutoShareRequest) (<-chan *ModifyUidWhiteListAutoShareResponse, <-chan error) { + responseChan := make(chan *ModifyUidWhiteListAutoShareResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyUidWhiteListAutoShare(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyUidWhiteListAutoShareWithCallback invokes the jarvis.ModifyUidWhiteListAutoShare API asynchronously +// api document: https://help.aliyun.com/api/jarvis/modifyuidwhitelistautoshare.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyUidWhiteListAutoShareWithCallback(request *ModifyUidWhiteListAutoShareRequest, callback func(response *ModifyUidWhiteListAutoShareResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyUidWhiteListAutoShareResponse + var err error + defer close(result) + response, err = client.ModifyUidWhiteListAutoShare(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyUidWhiteListAutoShareRequest is the request struct for api ModifyUidWhiteListAutoShare +type ModifyUidWhiteListAutoShareRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + AutoConfig requests.Integer `position:"Query" name:"AutoConfig"` + ProductName string `position:"Query" name:"ProductName"` + WhiteListType requests.Integer `position:"Query" name:"WhiteListType"` + Lang string `position:"Query" name:"Lang"` + SrcUid string `position:"Query" name:"SrcUid"` + SourceCode string `position:"Query" name:"SourceCode"` +} + +// ModifyUidWhiteListAutoShareResponse is the response struct for api ModifyUidWhiteListAutoShare +type ModifyUidWhiteListAutoShareResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module string `json:"Module" xml:"Module"` +} + +// CreateModifyUidWhiteListAutoShareRequest creates a request to invoke ModifyUidWhiteListAutoShare API +func CreateModifyUidWhiteListAutoShareRequest() (request *ModifyUidWhiteListAutoShareRequest) { + request = &ModifyUidWhiteListAutoShareRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("jarvis", "2018-02-06", "ModifyUidWhiteListAutoShare", "", "") + return +} + +// CreateModifyUidWhiteListAutoShareResponse creates a response to parse from ModifyUidWhiteListAutoShare response +func CreateModifyUidWhiteListAutoShareResponse() (response *ModifyUidWhiteListAutoShareResponse) { + response = &ModifyUidWhiteListAutoShareResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data.go new file mode 100644 index 0000000..6199e52 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data.go @@ -0,0 +1,50 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 jarvis response +type Data struct { + GmtExpire string `json:"GmtExpire" xml:"GmtExpire"` + TacticsName string `json:"TacticsName" xml:"TacticsName"` + SrcPort int `json:"SrcPort" xml:"SrcPort"` + RiskType string `json:"RiskType" xml:"RiskType"` + FeedBack int `json:"FeedBack" xml:"FeedBack"` + Reason string `json:"Reason" xml:"Reason"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + RegionId string `json:"RegionId" xml:"RegionId"` + RiskInstance string `json:"RiskInstance" xml:"RiskInstance"` + IgnoreTime string `json:"IgnoreTime" xml:"IgnoreTime"` + DstIP string `json:"DstIP" xml:"DstIP"` + Product string `json:"Product" xml:"Product"` + Protocol string `json:"Protocol" xml:"Protocol"` + PunishCount int `json:"PunishCount" xml:"PunishCount"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + SrcIP string `json:"SrcIP" xml:"SrcIP"` + DstPort int `json:"DstPort" xml:"DstPort"` + AutoConfig int `json:"AutoConfig" xml:"AutoConfig"` + PunishType string `json:"PunishType" xml:"PunishType"` + GroupId int `json:"GroupId" xml:"GroupId"` + PunishResult string `json:"PunishResult" xml:"PunishResult"` + RiskDescribe string `json:"RiskDescribe" xml:"RiskDescribe"` + RiskId int `json:"RiskId" xml:"RiskId"` + Status string `json:"Status" xml:"Status"` + GmtRealExpire string `json:"GmtRealExpire" xml:"GmtRealExpire"` + SrcUid string `json:"SrcUid" xml:"SrcUid"` + InstanceList []string `json:"InstanceList" xml:"InstanceList"` + Items []Item `json:"Items" xml:"Items"` + RdsWhitelistRisk []RdsWhitelistRiskItem `json:"RdsWhitelistRisk" xml:"RdsWhitelistRisk"` + EcsSecGroupRisk []EcsSecGroupRiskItem `json:"EcsSecGroupRisk" xml:"EcsSecGroupRisk"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_item.go new file mode 100644 index 0000000..95c77d5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_item.go @@ -0,0 +1,23 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataItem is a nested struct in jarvis response +type DataItem struct { + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + NewRiskCount int `json:"NewRiskCount" xml:"NewRiskCount"` + TotalRiskCount int `json:"TotalRiskCount" xml:"TotalRiskCount"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_access_white_list_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_access_white_list_group.go new file mode 100644 index 0000000..28ef4c4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_access_white_list_group.go @@ -0,0 +1,21 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataListInDescribeAccessWhiteListGroup is a nested struct in jarvis response +type DataListInDescribeAccessWhiteListGroup struct { + Data []Data `json:"Data" xml:"Data"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_cpmc_punish_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_cpmc_punish_list.go new file mode 100644 index 0000000..00ab1de --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_cpmc_punish_list.go @@ -0,0 +1,21 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataListInDescribeCpmcPunishList is a nested struct in jarvis response +type DataListInDescribeCpmcPunishList struct { + Data []Data `json:"Data" xml:"Data"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_punish_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_punish_list.go new file mode 100644 index 0000000..5023c58 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_punish_list.go @@ -0,0 +1,21 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataListInDescribePunishList is a nested struct in jarvis response +type DataListInDescribePunishList struct { + Data []Data `json:"Data" xml:"Data"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_reset_record_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_reset_record_list.go new file mode 100644 index 0000000..a6c8fe1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_reset_record_list.go @@ -0,0 +1,21 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataListInDescribeResetRecordList is a nested struct in jarvis response +type DataListInDescribeResetRecordList struct { + Data []Data `json:"Data" xml:"Data"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_risk_list_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_risk_list_detail.go new file mode 100644 index 0000000..c41378a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_risk_list_detail.go @@ -0,0 +1,21 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataListInDescribeRiskListDetail is a nested struct in jarvis response +type DataListInDescribeRiskListDetail struct { + Data []Data `json:"Data" xml:"Data"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_risk_trend.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_risk_trend.go new file mode 100644 index 0000000..b7c0835 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_risk_trend.go @@ -0,0 +1,21 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataListInDescribeRiskTrend is a nested struct in jarvis response +type DataListInDescribeRiskTrend struct { + DataItem []DataItem `json:"DataItem" xml:"DataItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_uid_white_list_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_uid_white_list_group.go new file mode 100644 index 0000000..121bc59 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_data_list_in_describe_uid_white_list_group.go @@ -0,0 +1,21 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataListInDescribeUidWhiteListGroup is a nested struct in jarvis response +type DataListInDescribeUidWhiteListGroup struct { + Data []Data `json:"Data" xml:"Data"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ddos_defense_threshold.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ddos_defense_threshold.go new file mode 100644 index 0000000..a840961 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ddos_defense_threshold.go @@ -0,0 +1,21 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DdosDefenseThreshold is a nested struct in jarvis response +type DdosDefenseThreshold struct { + DdosDefenseThresholdItem []DdosDefenseThresholdItem `json:"DdosDefenseThresholdItem" xml:"DdosDefenseThresholdItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ddos_defense_threshold_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ddos_defense_threshold_item.go new file mode 100644 index 0000000..b435a36 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ddos_defense_threshold_item.go @@ -0,0 +1,23 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DdosDefenseThresholdItem is a nested struct in jarvis response +type DdosDefenseThresholdItem struct { + RegionId string `json:"RegionId" xml:"RegionId"` + CurrThreshold int `json:"CurrThreshold" xml:"CurrThreshold"` + RecommendThreshold int `json:"RecommendThreshold" xml:"RecommendThreshold"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs.go new file mode 100644 index 0000000..36db057 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs.go @@ -0,0 +1,23 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ecs is a nested struct in jarvis response +type Ecs struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + IP string `json:"IP" xml:"IP"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs_list_in_describe_access_white_list_eip_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs_list_in_describe_access_white_list_eip_list.go new file mode 100644 index 0000000..2651f74 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs_list_in_describe_access_white_list_eip_list.go @@ -0,0 +1,21 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EcsListInDescribeAccessWhiteListEipList is a nested struct in jarvis response +type EcsListInDescribeAccessWhiteListEipList struct { + Ecs []Ecs `json:"Ecs" xml:"Ecs"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs_list_in_describe_access_white_list_slb_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs_list_in_describe_access_white_list_slb_list.go new file mode 100644 index 0000000..34af469 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs_list_in_describe_access_white_list_slb_list.go @@ -0,0 +1,21 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EcsListInDescribeAccessWhiteListSlbList is a nested struct in jarvis response +type EcsListInDescribeAccessWhiteListSlbList struct { + Ecs []Ecs `json:"Ecs" xml:"Ecs"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs_list_in_describe_access_whitelist_ecs_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs_list_in_describe_access_whitelist_ecs_list.go new file mode 100644 index 0000000..d58b846 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs_list_in_describe_access_whitelist_ecs_list.go @@ -0,0 +1,21 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EcsListInDescribeAccessWhitelistEcsList is a nested struct in jarvis response +type EcsListInDescribeAccessWhitelistEcsList struct { + Ecs []Ecs `json:"Ecs" xml:"Ecs"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs_sec_group_risk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs_sec_group_risk.go new file mode 100644 index 0000000..5c08eb0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs_sec_group_risk.go @@ -0,0 +1,21 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EcsSecGroupRisk is a nested struct in jarvis response +type EcsSecGroupRisk struct { + EcsSecGroupRiskItem []EcsSecGroupRiskItem `json:"EcsSecGroupRiskItem" xml:"EcsSecGroupRiskItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs_sec_group_risk_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs_sec_group_risk_item.go new file mode 100644 index 0000000..569a6d1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_ecs_sec_group_risk_item.go @@ -0,0 +1,24 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EcsSecGroupRiskItem is a nested struct in jarvis response +type EcsSecGroupRiskItem struct { + NetType string `json:"NetType" xml:"NetType"` + Direction string `json:"Direction" xml:"Direction"` + DstPortRange string `json:"DstPortRange" xml:"DstPortRange"` + SrcIpRange string `json:"SrcIpRange" xml:"SrcIpRange"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_instance_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_instance_list.go new file mode 100644 index 0000000..bbbb062 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_instance_list.go @@ -0,0 +1,21 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceList is a nested struct in jarvis response +type InstanceList struct { + InstanceList []string `json:"InstanceList" xml:"InstanceList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_item.go new file mode 100644 index 0000000..c1442be --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_item.go @@ -0,0 +1,22 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Item is a nested struct in jarvis response +type Item struct { + RegionId string `json:"RegionId" xml:"RegionId"` + IP string `json:"IP" xml:"IP"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_items_in_describe_access_white_list_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_items_in_describe_access_white_list_group.go new file mode 100644 index 0000000..b2a3ff4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_items_in_describe_access_white_list_group.go @@ -0,0 +1,21 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeAccessWhiteListGroup is a nested struct in jarvis response +type ItemsInDescribeAccessWhiteListGroup struct { + Item []Item `json:"Item" xml:"Item"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_items_in_describe_uid_white_list_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_items_in_describe_uid_white_list_group.go new file mode 100644 index 0000000..81fd9fd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_items_in_describe_uid_white_list_group.go @@ -0,0 +1,21 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeUidWhiteListGroup is a nested struct in jarvis response +type ItemsInDescribeUidWhiteListGroup struct { + Item []Item `json:"Item" xml:"Item"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_page_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_page_info.go new file mode 100644 index 0000000..846725d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_page_info.go @@ -0,0 +1,23 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PageInfo is a nested struct in jarvis response +type PageInfo struct { + CurrentPage int `json:"currentPage" xml:"currentPage"` + Total int `json:"total" xml:"total"` + PageSize int `json:"pageSize" xml:"pageSize"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_product_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_product_list.go new file mode 100644 index 0000000..394fc72 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_product_list.go @@ -0,0 +1,21 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ProductList is a nested struct in jarvis response +type ProductList struct { + ProductList []string `json:"ProductList" xml:"ProductList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_rds_whitelist_risk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_rds_whitelist_risk.go new file mode 100644 index 0000000..30018cf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_rds_whitelist_risk.go @@ -0,0 +1,21 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RdsWhitelistRisk is a nested struct in jarvis response +type RdsWhitelistRisk struct { + RdsWhitelistRiskItem []RdsWhitelistRiskItem `json:"RdsWhitelistRiskItem" xml:"RdsWhitelistRiskItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_rds_whitelist_risk_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_rds_whitelist_risk_item.go new file mode 100644 index 0000000..6e698be --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/jarvis/struct_rds_whitelist_risk_item.go @@ -0,0 +1,22 @@ +package jarvis + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RdsWhitelistRiskItem is a nested struct in jarvis response +type RdsWhitelistRiskItem struct { + RdsWhitelistGroup string `json:"RdsWhitelistGroup" xml:"RdsWhitelistGroup"` + RiskDetail string `json:"RiskDetail" xml:"RiskDetail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/cancel_key_deletion.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/cancel_key_deletion.go new file mode 100755 index 0000000..cf77ab3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/cancel_key_deletion.go @@ -0,0 +1,104 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CancelKeyDeletion invokes the kms.CancelKeyDeletion API synchronously +// api document: https://help.aliyun.com/api/kms/cancelkeydeletion.html +func (client *Client) CancelKeyDeletion(request *CancelKeyDeletionRequest) (response *CancelKeyDeletionResponse, err error) { + response = CreateCancelKeyDeletionResponse() + err = client.DoAction(request, response) + return +} + +// CancelKeyDeletionWithChan invokes the kms.CancelKeyDeletion API asynchronously +// api document: https://help.aliyun.com/api/kms/cancelkeydeletion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelKeyDeletionWithChan(request *CancelKeyDeletionRequest) (<-chan *CancelKeyDeletionResponse, <-chan error) { + responseChan := make(chan *CancelKeyDeletionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CancelKeyDeletion(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CancelKeyDeletionWithCallback invokes the kms.CancelKeyDeletion API asynchronously +// api document: https://help.aliyun.com/api/kms/cancelkeydeletion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelKeyDeletionWithCallback(request *CancelKeyDeletionRequest, callback func(response *CancelKeyDeletionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CancelKeyDeletionResponse + var err error + defer close(result) + response, err = client.CancelKeyDeletion(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CancelKeyDeletionRequest is the request struct for api CancelKeyDeletion +type CancelKeyDeletionRequest struct { + *requests.RpcRequest + KeyId string `position:"Query" name:"KeyId"` + STSToken string `position:"Query" name:"STSToken"` +} + +// CancelKeyDeletionResponse is the response struct for api CancelKeyDeletion +type CancelKeyDeletionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCancelKeyDeletionRequest creates a request to invoke CancelKeyDeletion API +func CreateCancelKeyDeletionRequest() (request *CancelKeyDeletionRequest) { + request = &CancelKeyDeletionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Kms", "2016-01-20", "CancelKeyDeletion", "kms", "openAPI") + return +} + +// CreateCancelKeyDeletionResponse creates a response to parse from CancelKeyDeletion response +func CreateCancelKeyDeletionResponse() (response *CancelKeyDeletionResponse) { + response = &CancelKeyDeletionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/client.go new file mode 100755 index 0000000..27631c1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/client.go @@ -0,0 +1,81 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/create_alias.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/create_alias.go new file mode 100755 index 0000000..df71821 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/create_alias.go @@ -0,0 +1,105 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateAlias invokes the kms.CreateAlias API synchronously +// api document: https://help.aliyun.com/api/kms/createalias.html +func (client *Client) CreateAlias(request *CreateAliasRequest) (response *CreateAliasResponse, err error) { + response = CreateCreateAliasResponse() + err = client.DoAction(request, response) + return +} + +// CreateAliasWithChan invokes the kms.CreateAlias API asynchronously +// api document: https://help.aliyun.com/api/kms/createalias.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateAliasWithChan(request *CreateAliasRequest) (<-chan *CreateAliasResponse, <-chan error) { + responseChan := make(chan *CreateAliasResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateAlias(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateAliasWithCallback invokes the kms.CreateAlias API asynchronously +// api document: https://help.aliyun.com/api/kms/createalias.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateAliasWithCallback(request *CreateAliasRequest, callback func(response *CreateAliasResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateAliasResponse + var err error + defer close(result) + response, err = client.CreateAlias(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateAliasRequest is the request struct for api CreateAlias +type CreateAliasRequest struct { + *requests.RpcRequest + KeyId string `position:"Query" name:"KeyId"` + AliasName string `position:"Query" name:"AliasName"` + STSToken string `position:"Query" name:"STSToken"` +} + +// CreateAliasResponse is the response struct for api CreateAlias +type CreateAliasResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateAliasRequest creates a request to invoke CreateAlias API +func CreateCreateAliasRequest() (request *CreateAliasRequest) { + request = &CreateAliasRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Kms", "2016-01-20", "CreateAlias", "kms", "openAPI") + return +} + +// CreateCreateAliasResponse creates a response to parse from CreateAlias response +func CreateCreateAliasResponse() (response *CreateAliasResponse) { + response = &CreateAliasResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/create_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/create_key.go new file mode 100755 index 0000000..8a2a66f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/create_key.go @@ -0,0 +1,107 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateKey invokes the kms.CreateKey API synchronously +// api document: https://help.aliyun.com/api/kms/createkey.html +func (client *Client) CreateKey(request *CreateKeyRequest) (response *CreateKeyResponse, err error) { + response = CreateCreateKeyResponse() + err = client.DoAction(request, response) + return +} + +// CreateKeyWithChan invokes the kms.CreateKey API asynchronously +// api document: https://help.aliyun.com/api/kms/createkey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateKeyWithChan(request *CreateKeyRequest) (<-chan *CreateKeyResponse, <-chan error) { + responseChan := make(chan *CreateKeyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateKey(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateKeyWithCallback invokes the kms.CreateKey API asynchronously +// api document: https://help.aliyun.com/api/kms/createkey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateKeyWithCallback(request *CreateKeyRequest, callback func(response *CreateKeyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateKeyResponse + var err error + defer close(result) + response, err = client.CreateKey(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateKeyRequest is the request struct for api CreateKey +type CreateKeyRequest struct { + *requests.RpcRequest + Description string `position:"Query" name:"Description"` + KeyUsage string `position:"Query" name:"KeyUsage"` + STSToken string `position:"Query" name:"STSToken"` + Origin string `position:"Query" name:"Origin"` +} + +// CreateKeyResponse is the response struct for api CreateKey +type CreateKeyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + KeyMetadata KeyMetadata `json:"KeyMetadata" xml:"KeyMetadata"` +} + +// CreateCreateKeyRequest creates a request to invoke CreateKey API +func CreateCreateKeyRequest() (request *CreateKeyRequest) { + request = &CreateKeyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Kms", "2016-01-20", "CreateKey", "kms", "openAPI") + return +} + +// CreateCreateKeyResponse creates a response to parse from CreateKey response +func CreateCreateKeyResponse() (response *CreateKeyResponse) { + response = &CreateKeyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/decrypt.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/decrypt.go new file mode 100755 index 0000000..a956aa3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/decrypt.go @@ -0,0 +1,107 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// Decrypt invokes the kms.Decrypt API synchronously +// api document: https://help.aliyun.com/api/kms/decrypt.html +func (client *Client) Decrypt(request *DecryptRequest) (response *DecryptResponse, err error) { + response = CreateDecryptResponse() + err = client.DoAction(request, response) + return +} + +// DecryptWithChan invokes the kms.Decrypt API asynchronously +// api document: https://help.aliyun.com/api/kms/decrypt.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DecryptWithChan(request *DecryptRequest) (<-chan *DecryptResponse, <-chan error) { + responseChan := make(chan *DecryptResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.Decrypt(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DecryptWithCallback invokes the kms.Decrypt API asynchronously +// api document: https://help.aliyun.com/api/kms/decrypt.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DecryptWithCallback(request *DecryptRequest, callback func(response *DecryptResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DecryptResponse + var err error + defer close(result) + response, err = client.Decrypt(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DecryptRequest is the request struct for api Decrypt +type DecryptRequest struct { + *requests.RpcRequest + CiphertextBlob string `position:"Query" name:"CiphertextBlob"` + STSToken string `position:"Query" name:"STSToken"` + EncryptionContext string `position:"Query" name:"EncryptionContext"` +} + +// DecryptResponse is the response struct for api Decrypt +type DecryptResponse struct { + *responses.BaseResponse + Plaintext string `json:"Plaintext" xml:"Plaintext"` + KeyId string `json:"KeyId" xml:"KeyId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDecryptRequest creates a request to invoke Decrypt API +func CreateDecryptRequest() (request *DecryptRequest) { + request = &DecryptRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Kms", "2016-01-20", "Decrypt", "kms", "openAPI") + return +} + +// CreateDecryptResponse creates a response to parse from Decrypt response +func CreateDecryptResponse() (response *DecryptResponse) { + response = &DecryptResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/delete_alias.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/delete_alias.go new file mode 100755 index 0000000..88dfecf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/delete_alias.go @@ -0,0 +1,104 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteAlias invokes the kms.DeleteAlias API synchronously +// api document: https://help.aliyun.com/api/kms/deletealias.html +func (client *Client) DeleteAlias(request *DeleteAliasRequest) (response *DeleteAliasResponse, err error) { + response = CreateDeleteAliasResponse() + err = client.DoAction(request, response) + return +} + +// DeleteAliasWithChan invokes the kms.DeleteAlias API asynchronously +// api document: https://help.aliyun.com/api/kms/deletealias.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAliasWithChan(request *DeleteAliasRequest) (<-chan *DeleteAliasResponse, <-chan error) { + responseChan := make(chan *DeleteAliasResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteAlias(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteAliasWithCallback invokes the kms.DeleteAlias API asynchronously +// api document: https://help.aliyun.com/api/kms/deletealias.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAliasWithCallback(request *DeleteAliasRequest, callback func(response *DeleteAliasResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteAliasResponse + var err error + defer close(result) + response, err = client.DeleteAlias(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteAliasRequest is the request struct for api DeleteAlias +type DeleteAliasRequest struct { + *requests.RpcRequest + AliasName string `position:"Query" name:"AliasName"` + STSToken string `position:"Query" name:"STSToken"` +} + +// DeleteAliasResponse is the response struct for api DeleteAlias +type DeleteAliasResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteAliasRequest creates a request to invoke DeleteAlias API +func CreateDeleteAliasRequest() (request *DeleteAliasRequest) { + request = &DeleteAliasRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Kms", "2016-01-20", "DeleteAlias", "kms", "openAPI") + return +} + +// CreateDeleteAliasResponse creates a response to parse from DeleteAlias response +func CreateDeleteAliasResponse() (response *DeleteAliasResponse) { + response = &DeleteAliasResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/delete_key_material.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/delete_key_material.go new file mode 100755 index 0000000..5f9049d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/delete_key_material.go @@ -0,0 +1,104 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteKeyMaterial invokes the kms.DeleteKeyMaterial API synchronously +// api document: https://help.aliyun.com/api/kms/deletekeymaterial.html +func (client *Client) DeleteKeyMaterial(request *DeleteKeyMaterialRequest) (response *DeleteKeyMaterialResponse, err error) { + response = CreateDeleteKeyMaterialResponse() + err = client.DoAction(request, response) + return +} + +// DeleteKeyMaterialWithChan invokes the kms.DeleteKeyMaterial API asynchronously +// api document: https://help.aliyun.com/api/kms/deletekeymaterial.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteKeyMaterialWithChan(request *DeleteKeyMaterialRequest) (<-chan *DeleteKeyMaterialResponse, <-chan error) { + responseChan := make(chan *DeleteKeyMaterialResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteKeyMaterial(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteKeyMaterialWithCallback invokes the kms.DeleteKeyMaterial API asynchronously +// api document: https://help.aliyun.com/api/kms/deletekeymaterial.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteKeyMaterialWithCallback(request *DeleteKeyMaterialRequest, callback func(response *DeleteKeyMaterialResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteKeyMaterialResponse + var err error + defer close(result) + response, err = client.DeleteKeyMaterial(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteKeyMaterialRequest is the request struct for api DeleteKeyMaterial +type DeleteKeyMaterialRequest struct { + *requests.RpcRequest + KeyId string `position:"Query" name:"KeyId"` + STSToken string `position:"Query" name:"STSToken"` +} + +// DeleteKeyMaterialResponse is the response struct for api DeleteKeyMaterial +type DeleteKeyMaterialResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteKeyMaterialRequest creates a request to invoke DeleteKeyMaterial API +func CreateDeleteKeyMaterialRequest() (request *DeleteKeyMaterialRequest) { + request = &DeleteKeyMaterialRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Kms", "2016-01-20", "DeleteKeyMaterial", "kms", "openAPI") + return +} + +// CreateDeleteKeyMaterialResponse creates a response to parse from DeleteKeyMaterial response +func CreateDeleteKeyMaterialResponse() (response *DeleteKeyMaterialResponse) { + response = &DeleteKeyMaterialResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/describe_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/describe_key.go new file mode 100755 index 0000000..d78ef56 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/describe_key.go @@ -0,0 +1,105 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeKey invokes the kms.DescribeKey API synchronously +// api document: https://help.aliyun.com/api/kms/describekey.html +func (client *Client) DescribeKey(request *DescribeKeyRequest) (response *DescribeKeyResponse, err error) { + response = CreateDescribeKeyResponse() + err = client.DoAction(request, response) + return +} + +// DescribeKeyWithChan invokes the kms.DescribeKey API asynchronously +// api document: https://help.aliyun.com/api/kms/describekey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeKeyWithChan(request *DescribeKeyRequest) (<-chan *DescribeKeyResponse, <-chan error) { + responseChan := make(chan *DescribeKeyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeKey(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeKeyWithCallback invokes the kms.DescribeKey API asynchronously +// api document: https://help.aliyun.com/api/kms/describekey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeKeyWithCallback(request *DescribeKeyRequest, callback func(response *DescribeKeyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeKeyResponse + var err error + defer close(result) + response, err = client.DescribeKey(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeKeyRequest is the request struct for api DescribeKey +type DescribeKeyRequest struct { + *requests.RpcRequest + KeyId string `position:"Query" name:"KeyId"` + STSToken string `position:"Query" name:"STSToken"` +} + +// DescribeKeyResponse is the response struct for api DescribeKey +type DescribeKeyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + KeyMetadata KeyMetadata `json:"KeyMetadata" xml:"KeyMetadata"` +} + +// CreateDescribeKeyRequest creates a request to invoke DescribeKey API +func CreateDescribeKeyRequest() (request *DescribeKeyRequest) { + request = &DescribeKeyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Kms", "2016-01-20", "DescribeKey", "kms", "openAPI") + return +} + +// CreateDescribeKeyResponse creates a response to parse from DescribeKey response +func CreateDescribeKeyResponse() (response *DescribeKeyResponse) { + response = &DescribeKeyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/describe_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/describe_regions.go new file mode 100755 index 0000000..ec2d123 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/describe_regions.go @@ -0,0 +1,104 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 kms.DescribeRegions API synchronously +// api document: https://help.aliyun.com/api/kms/describeregions.html +func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) { + response = CreateDescribeRegionsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRegionsWithChan invokes the kms.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/kms/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 kms.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/kms/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + STSToken string `position:"Query" name:"STSToken"` +} + +// 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("Kms", "2016-01-20", "DescribeRegions", "kms", "openAPI") + 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/kms/disable_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/disable_key.go new file mode 100755 index 0000000..8018e6d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/disable_key.go @@ -0,0 +1,104 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DisableKey invokes the kms.DisableKey API synchronously +// api document: https://help.aliyun.com/api/kms/disablekey.html +func (client *Client) DisableKey(request *DisableKeyRequest) (response *DisableKeyResponse, err error) { + response = CreateDisableKeyResponse() + err = client.DoAction(request, response) + return +} + +// DisableKeyWithChan invokes the kms.DisableKey API asynchronously +// api document: https://help.aliyun.com/api/kms/disablekey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DisableKeyWithChan(request *DisableKeyRequest) (<-chan *DisableKeyResponse, <-chan error) { + responseChan := make(chan *DisableKeyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DisableKey(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DisableKeyWithCallback invokes the kms.DisableKey API asynchronously +// api document: https://help.aliyun.com/api/kms/disablekey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DisableKeyWithCallback(request *DisableKeyRequest, callback func(response *DisableKeyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DisableKeyResponse + var err error + defer close(result) + response, err = client.DisableKey(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DisableKeyRequest is the request struct for api DisableKey +type DisableKeyRequest struct { + *requests.RpcRequest + KeyId string `position:"Query" name:"KeyId"` + STSToken string `position:"Query" name:"STSToken"` +} + +// DisableKeyResponse is the response struct for api DisableKey +type DisableKeyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDisableKeyRequest creates a request to invoke DisableKey API +func CreateDisableKeyRequest() (request *DisableKeyRequest) { + request = &DisableKeyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Kms", "2016-01-20", "DisableKey", "kms", "openAPI") + return +} + +// CreateDisableKeyResponse creates a response to parse from DisableKey response +func CreateDisableKeyResponse() (response *DisableKeyResponse) { + response = &DisableKeyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/enable_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/enable_key.go new file mode 100755 index 0000000..cf64227 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/enable_key.go @@ -0,0 +1,104 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EnableKey invokes the kms.EnableKey API synchronously +// api document: https://help.aliyun.com/api/kms/enablekey.html +func (client *Client) EnableKey(request *EnableKeyRequest) (response *EnableKeyResponse, err error) { + response = CreateEnableKeyResponse() + err = client.DoAction(request, response) + return +} + +// EnableKeyWithChan invokes the kms.EnableKey API asynchronously +// api document: https://help.aliyun.com/api/kms/enablekey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnableKeyWithChan(request *EnableKeyRequest) (<-chan *EnableKeyResponse, <-chan error) { + responseChan := make(chan *EnableKeyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EnableKey(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EnableKeyWithCallback invokes the kms.EnableKey API asynchronously +// api document: https://help.aliyun.com/api/kms/enablekey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnableKeyWithCallback(request *EnableKeyRequest, callback func(response *EnableKeyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EnableKeyResponse + var err error + defer close(result) + response, err = client.EnableKey(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EnableKeyRequest is the request struct for api EnableKey +type EnableKeyRequest struct { + *requests.RpcRequest + KeyId string `position:"Query" name:"KeyId"` + STSToken string `position:"Query" name:"STSToken"` +} + +// EnableKeyResponse is the response struct for api EnableKey +type EnableKeyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateEnableKeyRequest creates a request to invoke EnableKey API +func CreateEnableKeyRequest() (request *EnableKeyRequest) { + request = &EnableKeyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Kms", "2016-01-20", "EnableKey", "kms", "openAPI") + return +} + +// CreateEnableKeyResponse creates a response to parse from EnableKey response +func CreateEnableKeyResponse() (response *EnableKeyResponse) { + response = &EnableKeyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/encrypt.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/encrypt.go new file mode 100755 index 0000000..dfc7e82 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/encrypt.go @@ -0,0 +1,108 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// Encrypt invokes the kms.Encrypt API synchronously +// api document: https://help.aliyun.com/api/kms/encrypt.html +func (client *Client) Encrypt(request *EncryptRequest) (response *EncryptResponse, err error) { + response = CreateEncryptResponse() + err = client.DoAction(request, response) + return +} + +// EncryptWithChan invokes the kms.Encrypt API asynchronously +// api document: https://help.aliyun.com/api/kms/encrypt.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EncryptWithChan(request *EncryptRequest) (<-chan *EncryptResponse, <-chan error) { + responseChan := make(chan *EncryptResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.Encrypt(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EncryptWithCallback invokes the kms.Encrypt API asynchronously +// api document: https://help.aliyun.com/api/kms/encrypt.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EncryptWithCallback(request *EncryptRequest, callback func(response *EncryptResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EncryptResponse + var err error + defer close(result) + response, err = client.Encrypt(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EncryptRequest is the request struct for api Encrypt +type EncryptRequest struct { + *requests.RpcRequest + KeyId string `position:"Query" name:"KeyId"` + Plaintext string `position:"Query" name:"Plaintext"` + STSToken string `position:"Query" name:"STSToken"` + EncryptionContext string `position:"Query" name:"EncryptionContext"` +} + +// EncryptResponse is the response struct for api Encrypt +type EncryptResponse struct { + *responses.BaseResponse + CiphertextBlob string `json:"CiphertextBlob" xml:"CiphertextBlob"` + KeyId string `json:"KeyId" xml:"KeyId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateEncryptRequest creates a request to invoke Encrypt API +func CreateEncryptRequest() (request *EncryptRequest) { + request = &EncryptRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Kms", "2016-01-20", "Encrypt", "kms", "openAPI") + return +} + +// CreateEncryptResponse creates a response to parse from Encrypt response +func CreateEncryptResponse() (response *EncryptResponse) { + response = &EncryptResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/generate_data_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/generate_data_key.go new file mode 100755 index 0000000..e7ccca9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/generate_data_key.go @@ -0,0 +1,110 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GenerateDataKey invokes the kms.GenerateDataKey API synchronously +// api document: https://help.aliyun.com/api/kms/generatedatakey.html +func (client *Client) GenerateDataKey(request *GenerateDataKeyRequest) (response *GenerateDataKeyResponse, err error) { + response = CreateGenerateDataKeyResponse() + err = client.DoAction(request, response) + return +} + +// GenerateDataKeyWithChan invokes the kms.GenerateDataKey API asynchronously +// api document: https://help.aliyun.com/api/kms/generatedatakey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GenerateDataKeyWithChan(request *GenerateDataKeyRequest) (<-chan *GenerateDataKeyResponse, <-chan error) { + responseChan := make(chan *GenerateDataKeyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GenerateDataKey(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GenerateDataKeyWithCallback invokes the kms.GenerateDataKey API asynchronously +// api document: https://help.aliyun.com/api/kms/generatedatakey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GenerateDataKeyWithCallback(request *GenerateDataKeyRequest, callback func(response *GenerateDataKeyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GenerateDataKeyResponse + var err error + defer close(result) + response, err = client.GenerateDataKey(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GenerateDataKeyRequest is the request struct for api GenerateDataKey +type GenerateDataKeyRequest struct { + *requests.RpcRequest + KeyId string `position:"Query" name:"KeyId"` + KeySpec string `position:"Query" name:"KeySpec"` + NumberOfBytes requests.Integer `position:"Query" name:"NumberOfBytes"` + STSToken string `position:"Query" name:"STSToken"` + EncryptionContext string `position:"Query" name:"EncryptionContext"` +} + +// GenerateDataKeyResponse is the response struct for api GenerateDataKey +type GenerateDataKeyResponse struct { + *responses.BaseResponse + CiphertextBlob string `json:"CiphertextBlob" xml:"CiphertextBlob"` + KeyId string `json:"KeyId" xml:"KeyId"` + Plaintext string `json:"Plaintext" xml:"Plaintext"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateGenerateDataKeyRequest creates a request to invoke GenerateDataKey API +func CreateGenerateDataKeyRequest() (request *GenerateDataKeyRequest) { + request = &GenerateDataKeyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Kms", "2016-01-20", "GenerateDataKey", "kms", "openAPI") + return +} + +// CreateGenerateDataKeyResponse creates a response to parse from GenerateDataKey response +func CreateGenerateDataKeyResponse() (response *GenerateDataKeyResponse) { + response = &GenerateDataKeyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/get_parameters_for_import.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/get_parameters_for_import.go new file mode 100755 index 0000000..b8c4519 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/get_parameters_for_import.go @@ -0,0 +1,110 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetParametersForImport invokes the kms.GetParametersForImport API synchronously +// api document: https://help.aliyun.com/api/kms/getparametersforimport.html +func (client *Client) GetParametersForImport(request *GetParametersForImportRequest) (response *GetParametersForImportResponse, err error) { + response = CreateGetParametersForImportResponse() + err = client.DoAction(request, response) + return +} + +// GetParametersForImportWithChan invokes the kms.GetParametersForImport API asynchronously +// api document: https://help.aliyun.com/api/kms/getparametersforimport.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetParametersForImportWithChan(request *GetParametersForImportRequest) (<-chan *GetParametersForImportResponse, <-chan error) { + responseChan := make(chan *GetParametersForImportResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetParametersForImport(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetParametersForImportWithCallback invokes the kms.GetParametersForImport API asynchronously +// api document: https://help.aliyun.com/api/kms/getparametersforimport.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetParametersForImportWithCallback(request *GetParametersForImportRequest, callback func(response *GetParametersForImportResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetParametersForImportResponse + var err error + defer close(result) + response, err = client.GetParametersForImport(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetParametersForImportRequest is the request struct for api GetParametersForImport +type GetParametersForImportRequest struct { + *requests.RpcRequest + KeyId string `position:"Query" name:"KeyId"` + STSToken string `position:"Query" name:"STSToken"` + WrappingAlgorithm string `position:"Query" name:"WrappingAlgorithm"` + WrappingKeySpec string `position:"Query" name:"WrappingKeySpec"` +} + +// GetParametersForImportResponse is the response struct for api GetParametersForImport +type GetParametersForImportResponse struct { + *responses.BaseResponse + KeyId string `json:"KeyId" xml:"KeyId"` + RequestId string `json:"RequestId" xml:"RequestId"` + ImportToken string `json:"ImportToken" xml:"ImportToken"` + PublicKey string `json:"PublicKey" xml:"PublicKey"` + TokenExpireTime string `json:"TokenExpireTime" xml:"TokenExpireTime"` +} + +// CreateGetParametersForImportRequest creates a request to invoke GetParametersForImport API +func CreateGetParametersForImportRequest() (request *GetParametersForImportRequest) { + request = &GetParametersForImportRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Kms", "2016-01-20", "GetParametersForImport", "kms", "openAPI") + return +} + +// CreateGetParametersForImportResponse creates a response to parse from GetParametersForImport response +func CreateGetParametersForImportResponse() (response *GetParametersForImportResponse) { + response = &GetParametersForImportResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/import_key_material.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/import_key_material.go new file mode 100755 index 0000000..f0c1844 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/import_key_material.go @@ -0,0 +1,107 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ImportKeyMaterial invokes the kms.ImportKeyMaterial API synchronously +// api document: https://help.aliyun.com/api/kms/importkeymaterial.html +func (client *Client) ImportKeyMaterial(request *ImportKeyMaterialRequest) (response *ImportKeyMaterialResponse, err error) { + response = CreateImportKeyMaterialResponse() + err = client.DoAction(request, response) + return +} + +// ImportKeyMaterialWithChan invokes the kms.ImportKeyMaterial API asynchronously +// api document: https://help.aliyun.com/api/kms/importkeymaterial.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImportKeyMaterialWithChan(request *ImportKeyMaterialRequest) (<-chan *ImportKeyMaterialResponse, <-chan error) { + responseChan := make(chan *ImportKeyMaterialResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ImportKeyMaterial(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ImportKeyMaterialWithCallback invokes the kms.ImportKeyMaterial API asynchronously +// api document: https://help.aliyun.com/api/kms/importkeymaterial.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImportKeyMaterialWithCallback(request *ImportKeyMaterialRequest, callback func(response *ImportKeyMaterialResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ImportKeyMaterialResponse + var err error + defer close(result) + response, err = client.ImportKeyMaterial(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ImportKeyMaterialRequest is the request struct for api ImportKeyMaterial +type ImportKeyMaterialRequest struct { + *requests.RpcRequest + KeyId string `position:"Query" name:"KeyId"` + STSToken string `position:"Query" name:"STSToken"` + EncryptedKeyMaterial string `position:"Query" name:"EncryptedKeyMaterial"` + ImportToken string `position:"Query" name:"ImportToken"` + KeyMaterialExpireUnix requests.Integer `position:"Query" name:"KeyMaterialExpireUnix"` +} + +// ImportKeyMaterialResponse is the response struct for api ImportKeyMaterial +type ImportKeyMaterialResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateImportKeyMaterialRequest creates a request to invoke ImportKeyMaterial API +func CreateImportKeyMaterialRequest() (request *ImportKeyMaterialRequest) { + request = &ImportKeyMaterialRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Kms", "2016-01-20", "ImportKeyMaterial", "kms", "openAPI") + return +} + +// CreateImportKeyMaterialResponse creates a response to parse from ImportKeyMaterial response +func CreateImportKeyMaterialResponse() (response *ImportKeyMaterialResponse) { + response = &ImportKeyMaterialResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/list_aliases.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/list_aliases.go new file mode 100755 index 0000000..7abc0d4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/list_aliases.go @@ -0,0 +1,109 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListAliases invokes the kms.ListAliases API synchronously +// api document: https://help.aliyun.com/api/kms/listaliases.html +func (client *Client) ListAliases(request *ListAliasesRequest) (response *ListAliasesResponse, err error) { + response = CreateListAliasesResponse() + err = client.DoAction(request, response) + return +} + +// ListAliasesWithChan invokes the kms.ListAliases API asynchronously +// api document: https://help.aliyun.com/api/kms/listaliases.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListAliasesWithChan(request *ListAliasesRequest) (<-chan *ListAliasesResponse, <-chan error) { + responseChan := make(chan *ListAliasesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListAliases(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListAliasesWithCallback invokes the kms.ListAliases API asynchronously +// api document: https://help.aliyun.com/api/kms/listaliases.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListAliasesWithCallback(request *ListAliasesRequest, callback func(response *ListAliasesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListAliasesResponse + var err error + defer close(result) + response, err = client.ListAliases(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListAliasesRequest is the request struct for api ListAliases +type ListAliasesRequest struct { + *requests.RpcRequest + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + STSToken string `position:"Query" name:"STSToken"` +} + +// ListAliasesResponse is the response struct for api ListAliases +type ListAliasesResponse struct { + *responses.BaseResponse + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + Aliases AliasesInListAliases `json:"Aliases" xml:"Aliases"` +} + +// CreateListAliasesRequest creates a request to invoke ListAliases API +func CreateListAliasesRequest() (request *ListAliasesRequest) { + request = &ListAliasesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Kms", "2016-01-20", "ListAliases", "kms", "openAPI") + return +} + +// CreateListAliasesResponse creates a response to parse from ListAliases response +func CreateListAliasesResponse() (response *ListAliasesResponse) { + response = &ListAliasesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/list_aliases_by_key_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/list_aliases_by_key_id.go new file mode 100755 index 0000000..0e64ae9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/list_aliases_by_key_id.go @@ -0,0 +1,110 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListAliasesByKeyId invokes the kms.ListAliasesByKeyId API synchronously +// api document: https://help.aliyun.com/api/kms/listaliasesbykeyid.html +func (client *Client) ListAliasesByKeyId(request *ListAliasesByKeyIdRequest) (response *ListAliasesByKeyIdResponse, err error) { + response = CreateListAliasesByKeyIdResponse() + err = client.DoAction(request, response) + return +} + +// ListAliasesByKeyIdWithChan invokes the kms.ListAliasesByKeyId API asynchronously +// api document: https://help.aliyun.com/api/kms/listaliasesbykeyid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListAliasesByKeyIdWithChan(request *ListAliasesByKeyIdRequest) (<-chan *ListAliasesByKeyIdResponse, <-chan error) { + responseChan := make(chan *ListAliasesByKeyIdResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListAliasesByKeyId(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListAliasesByKeyIdWithCallback invokes the kms.ListAliasesByKeyId API asynchronously +// api document: https://help.aliyun.com/api/kms/listaliasesbykeyid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListAliasesByKeyIdWithCallback(request *ListAliasesByKeyIdRequest, callback func(response *ListAliasesByKeyIdResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListAliasesByKeyIdResponse + var err error + defer close(result) + response, err = client.ListAliasesByKeyId(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListAliasesByKeyIdRequest is the request struct for api ListAliasesByKeyId +type ListAliasesByKeyIdRequest struct { + *requests.RpcRequest + KeyId string `position:"Query" name:"KeyId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + STSToken string `position:"Query" name:"STSToken"` +} + +// ListAliasesByKeyIdResponse is the response struct for api ListAliasesByKeyId +type ListAliasesByKeyIdResponse struct { + *responses.BaseResponse + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + Aliases AliasesInListAliasesByKeyId `json:"Aliases" xml:"Aliases"` +} + +// CreateListAliasesByKeyIdRequest creates a request to invoke ListAliasesByKeyId API +func CreateListAliasesByKeyIdRequest() (request *ListAliasesByKeyIdRequest) { + request = &ListAliasesByKeyIdRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Kms", "2016-01-20", "ListAliasesByKeyId", "kms", "openAPI") + return +} + +// CreateListAliasesByKeyIdResponse creates a response to parse from ListAliasesByKeyId response +func CreateListAliasesByKeyIdResponse() (response *ListAliasesByKeyIdResponse) { + response = &ListAliasesByKeyIdResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/list_keys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/list_keys.go new file mode 100755 index 0000000..2f2c809 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/list_keys.go @@ -0,0 +1,109 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListKeys invokes the kms.ListKeys API synchronously +// api document: https://help.aliyun.com/api/kms/listkeys.html +func (client *Client) ListKeys(request *ListKeysRequest) (response *ListKeysResponse, err error) { + response = CreateListKeysResponse() + err = client.DoAction(request, response) + return +} + +// ListKeysWithChan invokes the kms.ListKeys API asynchronously +// api document: https://help.aliyun.com/api/kms/listkeys.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListKeysWithChan(request *ListKeysRequest) (<-chan *ListKeysResponse, <-chan error) { + responseChan := make(chan *ListKeysResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListKeys(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListKeysWithCallback invokes the kms.ListKeys API asynchronously +// api document: https://help.aliyun.com/api/kms/listkeys.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListKeysWithCallback(request *ListKeysRequest, callback func(response *ListKeysResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListKeysResponse + var err error + defer close(result) + response, err = client.ListKeys(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListKeysRequest is the request struct for api ListKeys +type ListKeysRequest struct { + *requests.RpcRequest + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + STSToken string `position:"Query" name:"STSToken"` +} + +// ListKeysResponse is the response struct for api ListKeys +type ListKeysResponse struct { + *responses.BaseResponse + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + Keys Keys `json:"Keys" xml:"Keys"` +} + +// CreateListKeysRequest creates a request to invoke ListKeys API +func CreateListKeysRequest() (request *ListKeysRequest) { + request = &ListKeysRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Kms", "2016-01-20", "ListKeys", "kms", "openAPI") + return +} + +// CreateListKeysResponse creates a response to parse from ListKeys response +func CreateListKeysResponse() (response *ListKeysResponse) { + response = &ListKeysResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/schedule_key_deletion.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/schedule_key_deletion.go new file mode 100755 index 0000000..26c6f1c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/schedule_key_deletion.go @@ -0,0 +1,105 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ScheduleKeyDeletion invokes the kms.ScheduleKeyDeletion API synchronously +// api document: https://help.aliyun.com/api/kms/schedulekeydeletion.html +func (client *Client) ScheduleKeyDeletion(request *ScheduleKeyDeletionRequest) (response *ScheduleKeyDeletionResponse, err error) { + response = CreateScheduleKeyDeletionResponse() + err = client.DoAction(request, response) + return +} + +// ScheduleKeyDeletionWithChan invokes the kms.ScheduleKeyDeletion API asynchronously +// api document: https://help.aliyun.com/api/kms/schedulekeydeletion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ScheduleKeyDeletionWithChan(request *ScheduleKeyDeletionRequest) (<-chan *ScheduleKeyDeletionResponse, <-chan error) { + responseChan := make(chan *ScheduleKeyDeletionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ScheduleKeyDeletion(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ScheduleKeyDeletionWithCallback invokes the kms.ScheduleKeyDeletion API asynchronously +// api document: https://help.aliyun.com/api/kms/schedulekeydeletion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ScheduleKeyDeletionWithCallback(request *ScheduleKeyDeletionRequest, callback func(response *ScheduleKeyDeletionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ScheduleKeyDeletionResponse + var err error + defer close(result) + response, err = client.ScheduleKeyDeletion(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ScheduleKeyDeletionRequest is the request struct for api ScheduleKeyDeletion +type ScheduleKeyDeletionRequest struct { + *requests.RpcRequest + KeyId string `position:"Query" name:"KeyId"` + PendingWindowInDays requests.Integer `position:"Query" name:"PendingWindowInDays"` + STSToken string `position:"Query" name:"STSToken"` +} + +// ScheduleKeyDeletionResponse is the response struct for api ScheduleKeyDeletion +type ScheduleKeyDeletionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateScheduleKeyDeletionRequest creates a request to invoke ScheduleKeyDeletion API +func CreateScheduleKeyDeletionRequest() (request *ScheduleKeyDeletionRequest) { + request = &ScheduleKeyDeletionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Kms", "2016-01-20", "ScheduleKeyDeletion", "kms", "openAPI") + return +} + +// CreateScheduleKeyDeletionResponse creates a response to parse from ScheduleKeyDeletion response +func CreateScheduleKeyDeletionResponse() (response *ScheduleKeyDeletionResponse) { + response = &ScheduleKeyDeletionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_alias.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_alias.go new file mode 100755 index 0000000..56b5984 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_alias.go @@ -0,0 +1,23 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Alias is a nested struct in kms response +type Alias struct { + AliasArn string `json:"AliasArn" xml:"AliasArn"` + AliasName string `json:"AliasName" xml:"AliasName"` + KeyId string `json:"KeyId" xml:"KeyId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_aliases_in_list_aliases.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_aliases_in_list_aliases.go new file mode 100755 index 0000000..a08047f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_aliases_in_list_aliases.go @@ -0,0 +1,21 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AliasesInListAliases is a nested struct in kms response +type AliasesInListAliases struct { + Alias []Alias `json:"Alias" xml:"Alias"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_aliases_in_list_aliases_by_key_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_aliases_in_list_aliases_by_key_id.go new file mode 100755 index 0000000..8f52f42 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_aliases_in_list_aliases_by_key_id.go @@ -0,0 +1,21 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AliasesInListAliasesByKeyId is a nested struct in kms response +type AliasesInListAliasesByKeyId struct { + Alias []Alias `json:"Alias" xml:"Alias"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_key.go new file mode 100755 index 0000000..8e6f508 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_key.go @@ -0,0 +1,22 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Key is a nested struct in kms response +type Key struct { + KeyId string `json:"KeyId" xml:"KeyId"` + KeyArn string `json:"KeyArn" xml:"KeyArn"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_key_metadata.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_key_metadata.go new file mode 100755 index 0000000..5432b8c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_key_metadata.go @@ -0,0 +1,30 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// KeyMetadata is a nested struct in kms response +type KeyMetadata struct { + Arn string `json:"Arn" xml:"Arn"` + KeyState string `json:"KeyState" xml:"KeyState"` + CreationDate string `json:"CreationDate" xml:"CreationDate"` + KeyUsage string `json:"KeyUsage" xml:"KeyUsage"` + DeleteDate string `json:"DeleteDate" xml:"DeleteDate"` + Creator string `json:"Creator" xml:"Creator"` + Origin string `json:"Origin" xml:"Origin"` + Description string `json:"Description" xml:"Description"` + KeyId string `json:"KeyId" xml:"KeyId"` + MaterialExpireTime string `json:"MaterialExpireTime" xml:"MaterialExpireTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_keys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_keys.go new file mode 100755 index 0000000..5e36d49 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_keys.go @@ -0,0 +1,21 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Keys is a nested struct in kms response +type Keys struct { + Key []Key `json:"Key" xml:"Key"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_region.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_region.go new file mode 100755 index 0000000..d54b0e5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_region.go @@ -0,0 +1,21 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 kms response +type Region struct { + RegionId string `json:"RegionId" xml:"RegionId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_regions.go new file mode 100755 index 0000000..4c87936 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/struct_regions.go @@ -0,0 +1,21 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 kms response +type Regions struct { + Region []Region `json:"Region" xml:"Region"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/update_alias.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/update_alias.go new file mode 100755 index 0000000..4208b23 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/kms/update_alias.go @@ -0,0 +1,105 @@ +package kms + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateAlias invokes the kms.UpdateAlias API synchronously +// api document: https://help.aliyun.com/api/kms/updatealias.html +func (client *Client) UpdateAlias(request *UpdateAliasRequest) (response *UpdateAliasResponse, err error) { + response = CreateUpdateAliasResponse() + err = client.DoAction(request, response) + return +} + +// UpdateAliasWithChan invokes the kms.UpdateAlias API asynchronously +// api document: https://help.aliyun.com/api/kms/updatealias.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateAliasWithChan(request *UpdateAliasRequest) (<-chan *UpdateAliasResponse, <-chan error) { + responseChan := make(chan *UpdateAliasResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateAlias(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateAliasWithCallback invokes the kms.UpdateAlias API asynchronously +// api document: https://help.aliyun.com/api/kms/updatealias.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateAliasWithCallback(request *UpdateAliasRequest, callback func(response *UpdateAliasResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateAliasResponse + var err error + defer close(result) + response, err = client.UpdateAlias(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateAliasRequest is the request struct for api UpdateAlias +type UpdateAliasRequest struct { + *requests.RpcRequest + KeyId string `position:"Query" name:"KeyId"` + AliasName string `position:"Query" name:"AliasName"` + STSToken string `position:"Query" name:"STSToken"` +} + +// UpdateAliasResponse is the response struct for api UpdateAlias +type UpdateAliasResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateAliasRequest creates a request to invoke UpdateAlias API +func CreateUpdateAliasRequest() (request *UpdateAliasRequest) { + request = &UpdateAliasRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Kms", "2016-01-20", "UpdateAlias", "kms", "openAPI") + return +} + +// CreateUpdateAliasResponse creates a response to parse from UpdateAlias response +func CreateUpdateAliasResponse() (response *UpdateAliasResponse) { + response = &UpdateAliasResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_component.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_component.go new file mode 100644 index 0000000..56e913e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_component.go @@ -0,0 +1,113 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddCasterComponent invokes the live.AddCasterComponent API synchronously +// api document: https://help.aliyun.com/api/live/addcastercomponent.html +func (client *Client) AddCasterComponent(request *AddCasterComponentRequest) (response *AddCasterComponentResponse, err error) { + response = CreateAddCasterComponentResponse() + err = client.DoAction(request, response) + return +} + +// AddCasterComponentWithChan invokes the live.AddCasterComponent API asynchronously +// api document: https://help.aliyun.com/api/live/addcastercomponent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCasterComponentWithChan(request *AddCasterComponentRequest) (<-chan *AddCasterComponentResponse, <-chan error) { + responseChan := make(chan *AddCasterComponentResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddCasterComponent(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddCasterComponentWithCallback invokes the live.AddCasterComponent API asynchronously +// api document: https://help.aliyun.com/api/live/addcastercomponent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCasterComponentWithCallback(request *AddCasterComponentRequest, callback func(response *AddCasterComponentResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddCasterComponentResponse + var err error + defer close(result) + response, err = client.AddCasterComponent(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddCasterComponentRequest is the request struct for api AddCasterComponent +type AddCasterComponentRequest struct { + *requests.RpcRequest + ComponentType string `position:"Query" name:"ComponentType"` + LocationId string `position:"Query" name:"LocationId"` + ImageLayerContent string `position:"Query" name:"ImageLayerContent"` + CasterId string `position:"Query" name:"CasterId"` + Effect string `position:"Query" name:"Effect"` + ComponentLayer string `position:"Query" name:"ComponentLayer"` + CaptionLayerContent string `position:"Query" name:"CaptionLayerContent"` + ComponentName string `position:"Query" name:"ComponentName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + TextLayerContent string `position:"Query" name:"TextLayerContent"` +} + +// AddCasterComponentResponse is the response struct for api AddCasterComponent +type AddCasterComponentResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ComponentId string `json:"ComponentId" xml:"ComponentId"` +} + +// CreateAddCasterComponentRequest creates a request to invoke AddCasterComponent API +func CreateAddCasterComponentRequest() (request *AddCasterComponentRequest) { + request = &AddCasterComponentRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddCasterComponent", "live", "openAPI") + return +} + +// CreateAddCasterComponentResponse creates a response to parse from AddCasterComponent response +func CreateAddCasterComponentResponse() (response *AddCasterComponentResponse) { + response = &AddCasterComponentResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_episode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_episode.go new file mode 100644 index 0000000..e5b6115 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_episode.go @@ -0,0 +1,112 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddCasterEpisode invokes the live.AddCasterEpisode API synchronously +// api document: https://help.aliyun.com/api/live/addcasterepisode.html +func (client *Client) AddCasterEpisode(request *AddCasterEpisodeRequest) (response *AddCasterEpisodeResponse, err error) { + response = CreateAddCasterEpisodeResponse() + err = client.DoAction(request, response) + return +} + +// AddCasterEpisodeWithChan invokes the live.AddCasterEpisode API asynchronously +// api document: https://help.aliyun.com/api/live/addcasterepisode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCasterEpisodeWithChan(request *AddCasterEpisodeRequest) (<-chan *AddCasterEpisodeResponse, <-chan error) { + responseChan := make(chan *AddCasterEpisodeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddCasterEpisode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddCasterEpisodeWithCallback invokes the live.AddCasterEpisode API asynchronously +// api document: https://help.aliyun.com/api/live/addcasterepisode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCasterEpisodeWithCallback(request *AddCasterEpisodeRequest, callback func(response *AddCasterEpisodeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddCasterEpisodeResponse + var err error + defer close(result) + response, err = client.AddCasterEpisode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddCasterEpisodeRequest is the request struct for api AddCasterEpisode +type AddCasterEpisodeRequest struct { + *requests.RpcRequest + ResourceId string `position:"Query" name:"ResourceId"` + ComponentId *[]string `position:"Query" name:"ComponentId" type:"Repeated"` + SwitchType string `position:"Query" name:"SwitchType"` + CasterId string `position:"Query" name:"CasterId"` + EpisodeType string `position:"Query" name:"EpisodeType"` + EpisodeName string `position:"Query" name:"EpisodeName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AddCasterEpisodeResponse is the response struct for api AddCasterEpisode +type AddCasterEpisodeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + EpisodeId string `json:"EpisodeId" xml:"EpisodeId"` +} + +// CreateAddCasterEpisodeRequest creates a request to invoke AddCasterEpisode API +func CreateAddCasterEpisodeRequest() (request *AddCasterEpisodeRequest) { + request = &AddCasterEpisodeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddCasterEpisode", "live", "openAPI") + return +} + +// CreateAddCasterEpisodeResponse creates a response to parse from AddCasterEpisode response +func CreateAddCasterEpisodeResponse() (response *AddCasterEpisodeResponse) { + response = &AddCasterEpisodeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_episode_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_episode_group.go new file mode 100644 index 0000000..23dfe85 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_episode_group.go @@ -0,0 +1,118 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddCasterEpisodeGroup invokes the live.AddCasterEpisodeGroup API synchronously +// api document: https://help.aliyun.com/api/live/addcasterepisodegroup.html +func (client *Client) AddCasterEpisodeGroup(request *AddCasterEpisodeGroupRequest) (response *AddCasterEpisodeGroupResponse, err error) { + response = CreateAddCasterEpisodeGroupResponse() + err = client.DoAction(request, response) + return +} + +// AddCasterEpisodeGroupWithChan invokes the live.AddCasterEpisodeGroup API asynchronously +// api document: https://help.aliyun.com/api/live/addcasterepisodegroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCasterEpisodeGroupWithChan(request *AddCasterEpisodeGroupRequest) (<-chan *AddCasterEpisodeGroupResponse, <-chan error) { + responseChan := make(chan *AddCasterEpisodeGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddCasterEpisodeGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddCasterEpisodeGroupWithCallback invokes the live.AddCasterEpisodeGroup API asynchronously +// api document: https://help.aliyun.com/api/live/addcasterepisodegroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCasterEpisodeGroupWithCallback(request *AddCasterEpisodeGroupRequest, callback func(response *AddCasterEpisodeGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddCasterEpisodeGroupResponse + var err error + defer close(result) + response, err = client.AddCasterEpisodeGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddCasterEpisodeGroupRequest is the request struct for api AddCasterEpisodeGroup +type AddCasterEpisodeGroupRequest struct { + *requests.RpcRequest + SideOutputUrl string `position:"Query" name:"SideOutputUrl"` + Item *[]AddCasterEpisodeGroupItem `position:"Query" name:"Item" type:"Repeated"` + ClientToken string `position:"Query" name:"ClientToken"` + DomainName string `position:"Query" name:"DomainName"` + StartTime string `position:"Query" name:"StartTime"` + RepeatNum requests.Integer `position:"Query" name:"RepeatNum"` + CallbackUrl string `position:"Query" name:"CallbackUrl"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AddCasterEpisodeGroupItem is a repeated param struct in AddCasterEpisodeGroupRequest +type AddCasterEpisodeGroupItem struct { + ItemName string `name:"ItemName"` + VodUrl string `name:"VodUrl"` +} + +// AddCasterEpisodeGroupResponse is the response struct for api AddCasterEpisodeGroup +type AddCasterEpisodeGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ProgramId string `json:"ProgramId" xml:"ProgramId"` + ItemIds ItemIdsInAddCasterEpisodeGroup `json:"ItemIds" xml:"ItemIds"` +} + +// CreateAddCasterEpisodeGroupRequest creates a request to invoke AddCasterEpisodeGroup API +func CreateAddCasterEpisodeGroupRequest() (request *AddCasterEpisodeGroupRequest) { + request = &AddCasterEpisodeGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddCasterEpisodeGroup", "live", "openAPI") + return +} + +// CreateAddCasterEpisodeGroupResponse creates a response to parse from AddCasterEpisodeGroup response +func CreateAddCasterEpisodeGroupResponse() (response *AddCasterEpisodeGroupResponse) { + response = &AddCasterEpisodeGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_episode_group_content.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_episode_group_content.go new file mode 100644 index 0000000..908c6c5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_episode_group_content.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddCasterEpisodeGroupContent invokes the live.AddCasterEpisodeGroupContent API synchronously +// api document: https://help.aliyun.com/api/live/addcasterepisodegroupcontent.html +func (client *Client) AddCasterEpisodeGroupContent(request *AddCasterEpisodeGroupContentRequest) (response *AddCasterEpisodeGroupContentResponse, err error) { + response = CreateAddCasterEpisodeGroupContentResponse() + err = client.DoAction(request, response) + return +} + +// AddCasterEpisodeGroupContentWithChan invokes the live.AddCasterEpisodeGroupContent API asynchronously +// api document: https://help.aliyun.com/api/live/addcasterepisodegroupcontent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCasterEpisodeGroupContentWithChan(request *AddCasterEpisodeGroupContentRequest) (<-chan *AddCasterEpisodeGroupContentResponse, <-chan error) { + responseChan := make(chan *AddCasterEpisodeGroupContentResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddCasterEpisodeGroupContent(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddCasterEpisodeGroupContentWithCallback invokes the live.AddCasterEpisodeGroupContent API asynchronously +// api document: https://help.aliyun.com/api/live/addcasterepisodegroupcontent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCasterEpisodeGroupContentWithCallback(request *AddCasterEpisodeGroupContentRequest, callback func(response *AddCasterEpisodeGroupContentResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddCasterEpisodeGroupContentResponse + var err error + defer close(result) + response, err = client.AddCasterEpisodeGroupContent(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddCasterEpisodeGroupContentRequest is the request struct for api AddCasterEpisodeGroupContent +type AddCasterEpisodeGroupContentRequest struct { + *requests.RpcRequest + ClientToken string `position:"Query" name:"ClientToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Content string `position:"Query" name:"Content"` +} + +// AddCasterEpisodeGroupContentResponse is the response struct for api AddCasterEpisodeGroupContent +type AddCasterEpisodeGroupContentResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ProgramId string `json:"ProgramId" xml:"ProgramId"` + ItemIds ItemIdsInAddCasterEpisodeGroupContent `json:"ItemIds" xml:"ItemIds"` +} + +// CreateAddCasterEpisodeGroupContentRequest creates a request to invoke AddCasterEpisodeGroupContent API +func CreateAddCasterEpisodeGroupContentRequest() (request *AddCasterEpisodeGroupContentRequest) { + request = &AddCasterEpisodeGroupContentRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddCasterEpisodeGroupContent", "live", "openAPI") + return +} + +// CreateAddCasterEpisodeGroupContentResponse creates a response to parse from AddCasterEpisodeGroupContent response +func CreateAddCasterEpisodeGroupContentResponse() (response *AddCasterEpisodeGroupContentResponse) { + response = &AddCasterEpisodeGroupContentResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_layout.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_layout.go new file mode 100644 index 0000000..935f0c1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_layout.go @@ -0,0 +1,126 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddCasterLayout invokes the live.AddCasterLayout API synchronously +// api document: https://help.aliyun.com/api/live/addcasterlayout.html +func (client *Client) AddCasterLayout(request *AddCasterLayoutRequest) (response *AddCasterLayoutResponse, err error) { + response = CreateAddCasterLayoutResponse() + err = client.DoAction(request, response) + return +} + +// AddCasterLayoutWithChan invokes the live.AddCasterLayout API asynchronously +// api document: https://help.aliyun.com/api/live/addcasterlayout.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCasterLayoutWithChan(request *AddCasterLayoutRequest) (<-chan *AddCasterLayoutResponse, <-chan error) { + responseChan := make(chan *AddCasterLayoutResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddCasterLayout(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddCasterLayoutWithCallback invokes the live.AddCasterLayout API asynchronously +// api document: https://help.aliyun.com/api/live/addcasterlayout.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCasterLayoutWithCallback(request *AddCasterLayoutRequest, callback func(response *AddCasterLayoutResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddCasterLayoutResponse + var err error + defer close(result) + response, err = client.AddCasterLayout(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddCasterLayoutRequest is the request struct for api AddCasterLayout +type AddCasterLayoutRequest struct { + *requests.RpcRequest + BlendList *[]string `position:"Query" name:"BlendList" type:"Repeated"` + AudioLayer *[]AddCasterLayoutAudioLayer `position:"Query" name:"AudioLayer" type:"Repeated"` + VideoLayer *[]AddCasterLayoutVideoLayer `position:"Query" name:"VideoLayer" type:"Repeated"` + CasterId string `position:"Query" name:"CasterId"` + MixList *[]string `position:"Query" name:"MixList" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AddCasterLayoutAudioLayer is a repeated param struct in AddCasterLayoutRequest +type AddCasterLayoutAudioLayer struct { + VolumeRate string `name:"VolumeRate"` + ValidChannel string `name:"ValidChannel"` + FixedDelayDuration string `name:"FixedDelayDuration"` +} + +// AddCasterLayoutVideoLayer is a repeated param struct in AddCasterLayoutRequest +type AddCasterLayoutVideoLayer struct { + FillMode string `name:"FillMode"` + HeightNormalized string `name:"HeightNormalized"` + WidthNormalized string `name:"WidthNormalized"` + PositionRefer string `name:"PositionRefer"` + PositionNormalized *[]requests.Float `name:"PositionNormalized" type:"Repeated"` + FixedDelayDuration string `name:"FixedDelayDuration"` +} + +// AddCasterLayoutResponse is the response struct for api AddCasterLayout +type AddCasterLayoutResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LayoutId string `json:"LayoutId" xml:"LayoutId"` +} + +// CreateAddCasterLayoutRequest creates a request to invoke AddCasterLayout API +func CreateAddCasterLayoutRequest() (request *AddCasterLayoutRequest) { + request = &AddCasterLayoutRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddCasterLayout", "live", "openAPI") + return +} + +// CreateAddCasterLayoutResponse creates a response to parse from AddCasterLayout response +func CreateAddCasterLayoutResponse() (response *AddCasterLayoutResponse) { + response = &AddCasterLayoutResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_program.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_program.go new file mode 100644 index 0000000..79ae108 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_program.go @@ -0,0 +1,117 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddCasterProgram invokes the live.AddCasterProgram API synchronously +// api document: https://help.aliyun.com/api/live/addcasterprogram.html +func (client *Client) AddCasterProgram(request *AddCasterProgramRequest) (response *AddCasterProgramResponse, err error) { + response = CreateAddCasterProgramResponse() + err = client.DoAction(request, response) + return +} + +// AddCasterProgramWithChan invokes the live.AddCasterProgram API asynchronously +// api document: https://help.aliyun.com/api/live/addcasterprogram.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCasterProgramWithChan(request *AddCasterProgramRequest) (<-chan *AddCasterProgramResponse, <-chan error) { + responseChan := make(chan *AddCasterProgramResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddCasterProgram(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddCasterProgramWithCallback invokes the live.AddCasterProgram API asynchronously +// api document: https://help.aliyun.com/api/live/addcasterprogram.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCasterProgramWithCallback(request *AddCasterProgramRequest, callback func(response *AddCasterProgramResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddCasterProgramResponse + var err error + defer close(result) + response, err = client.AddCasterProgram(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddCasterProgramRequest is the request struct for api AddCasterProgram +type AddCasterProgramRequest struct { + *requests.RpcRequest + CasterId string `position:"Query" name:"CasterId"` + Episode *[]AddCasterProgramEpisode `position:"Query" name:"Episode" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AddCasterProgramEpisode is a repeated param struct in AddCasterProgramRequest +type AddCasterProgramEpisode struct { + EpisodeType string `name:"EpisodeType"` + EpisodeName string `name:"EpisodeName"` + ResourceId string `name:"ResourceId"` + ComponentId *[]string `name:"ComponentId" type:"Repeated"` + StartTime string `name:"StartTime"` + EndTime string `name:"EndTime"` + SwitchType string `name:"SwitchType"` +} + +// AddCasterProgramResponse is the response struct for api AddCasterProgram +type AddCasterProgramResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + EpisodeIds EpisodeIds `json:"EpisodeIds" xml:"EpisodeIds"` +} + +// CreateAddCasterProgramRequest creates a request to invoke AddCasterProgram API +func CreateAddCasterProgramRequest() (request *AddCasterProgramRequest) { + request = &AddCasterProgramRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddCasterProgram", "live", "openAPI") + return +} + +// CreateAddCasterProgramResponse creates a response to parse from AddCasterProgram response +func CreateAddCasterProgramResponse() (response *AddCasterProgramResponse) { + response = &AddCasterProgramResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_video_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_video_resource.go new file mode 100644 index 0000000..b5debc1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_caster_video_resource.go @@ -0,0 +1,113 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddCasterVideoResource invokes the live.AddCasterVideoResource API synchronously +// api document: https://help.aliyun.com/api/live/addcastervideoresource.html +func (client *Client) AddCasterVideoResource(request *AddCasterVideoResourceRequest) (response *AddCasterVideoResourceResponse, err error) { + response = CreateAddCasterVideoResourceResponse() + err = client.DoAction(request, response) + return +} + +// AddCasterVideoResourceWithChan invokes the live.AddCasterVideoResource API asynchronously +// api document: https://help.aliyun.com/api/live/addcastervideoresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCasterVideoResourceWithChan(request *AddCasterVideoResourceRequest) (<-chan *AddCasterVideoResourceResponse, <-chan error) { + responseChan := make(chan *AddCasterVideoResourceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddCasterVideoResource(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddCasterVideoResourceWithCallback invokes the live.AddCasterVideoResource API asynchronously +// api document: https://help.aliyun.com/api/live/addcastervideoresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCasterVideoResourceWithCallback(request *AddCasterVideoResourceRequest, callback func(response *AddCasterVideoResourceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddCasterVideoResourceResponse + var err error + defer close(result) + response, err = client.AddCasterVideoResource(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddCasterVideoResourceRequest is the request struct for api AddCasterVideoResource +type AddCasterVideoResourceRequest struct { + *requests.RpcRequest + BeginOffset requests.Integer `position:"Query" name:"BeginOffset"` + VodUrl string `position:"Query" name:"VodUrl"` + LiveStreamUrl string `position:"Query" name:"LiveStreamUrl"` + LocationId string `position:"Query" name:"LocationId"` + CasterId string `position:"Query" name:"CasterId"` + EndOffset requests.Integer `position:"Query" name:"EndOffset"` + ResourceName string `position:"Query" name:"ResourceName"` + RepeatNum requests.Integer `position:"Query" name:"RepeatNum"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + MaterialId string `position:"Query" name:"MaterialId"` +} + +// AddCasterVideoResourceResponse is the response struct for api AddCasterVideoResource +type AddCasterVideoResourceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ResourceId string `json:"ResourceId" xml:"ResourceId"` +} + +// CreateAddCasterVideoResourceRequest creates a request to invoke AddCasterVideoResource API +func CreateAddCasterVideoResourceRequest() (request *AddCasterVideoResourceRequest) { + request = &AddCasterVideoResourceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddCasterVideoResource", "live", "openAPI") + return +} + +// CreateAddCasterVideoResourceResponse creates a response to parse from AddCasterVideoResource response +func CreateAddCasterVideoResourceResponse() (response *AddCasterVideoResourceResponse) { + response = &AddCasterVideoResourceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_custom_live_stream_transcode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_custom_live_stream_transcode.go new file mode 100644 index 0000000..58206e9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_custom_live_stream_transcode.go @@ -0,0 +1,113 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddCustomLiveStreamTranscode invokes the live.AddCustomLiveStreamTranscode API synchronously +// api document: https://help.aliyun.com/api/live/addcustomlivestreamtranscode.html +func (client *Client) AddCustomLiveStreamTranscode(request *AddCustomLiveStreamTranscodeRequest) (response *AddCustomLiveStreamTranscodeResponse, err error) { + response = CreateAddCustomLiveStreamTranscodeResponse() + err = client.DoAction(request, response) + return +} + +// AddCustomLiveStreamTranscodeWithChan invokes the live.AddCustomLiveStreamTranscode API asynchronously +// api document: https://help.aliyun.com/api/live/addcustomlivestreamtranscode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCustomLiveStreamTranscodeWithChan(request *AddCustomLiveStreamTranscodeRequest) (<-chan *AddCustomLiveStreamTranscodeResponse, <-chan error) { + responseChan := make(chan *AddCustomLiveStreamTranscodeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddCustomLiveStreamTranscode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddCustomLiveStreamTranscodeWithCallback invokes the live.AddCustomLiveStreamTranscode API asynchronously +// api document: https://help.aliyun.com/api/live/addcustomlivestreamtranscode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCustomLiveStreamTranscodeWithCallback(request *AddCustomLiveStreamTranscodeRequest, callback func(response *AddCustomLiveStreamTranscodeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddCustomLiveStreamTranscodeResponse + var err error + defer close(result) + response, err = client.AddCustomLiveStreamTranscode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddCustomLiveStreamTranscodeRequest is the request struct for api AddCustomLiveStreamTranscode +type AddCustomLiveStreamTranscodeRequest struct { + *requests.RpcRequest + App string `position:"Query" name:"App"` + Template string `position:"Query" name:"Template"` + FPS requests.Integer `position:"Query" name:"FPS"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Version string `position:"Query" name:"Version"` + SecurityToken string `position:"Query" name:"SecurityToken"` + TemplateType string `position:"Query" name:"TemplateType"` + Domain string `position:"Query" name:"Domain"` + Width requests.Integer `position:"Query" name:"Width"` + VideoBitrate requests.Integer `position:"Query" name:"VideoBitrate"` + Height requests.Integer `position:"Query" name:"Height"` +} + +// AddCustomLiveStreamTranscodeResponse is the response struct for api AddCustomLiveStreamTranscode +type AddCustomLiveStreamTranscodeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddCustomLiveStreamTranscodeRequest creates a request to invoke AddCustomLiveStreamTranscode API +func CreateAddCustomLiveStreamTranscodeRequest() (request *AddCustomLiveStreamTranscodeRequest) { + request = &AddCustomLiveStreamTranscodeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddCustomLiveStreamTranscode", "live", "openAPI") + return +} + +// CreateAddCustomLiveStreamTranscodeResponse creates a response to parse from AddCustomLiveStreamTranscode response +func CreateAddCustomLiveStreamTranscodeResponse() (response *AddCustomLiveStreamTranscodeResponse) { + response = &AddCustomLiveStreamTranscodeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_app_record_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_app_record_config.go new file mode 100644 index 0000000..1e73290 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_app_record_config.go @@ -0,0 +1,121 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddLiveAppRecordConfig invokes the live.AddLiveAppRecordConfig API synchronously +// api document: https://help.aliyun.com/api/live/addliveapprecordconfig.html +func (client *Client) AddLiveAppRecordConfig(request *AddLiveAppRecordConfigRequest) (response *AddLiveAppRecordConfigResponse, err error) { + response = CreateAddLiveAppRecordConfigResponse() + err = client.DoAction(request, response) + return +} + +// AddLiveAppRecordConfigWithChan invokes the live.AddLiveAppRecordConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addliveapprecordconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveAppRecordConfigWithChan(request *AddLiveAppRecordConfigRequest) (<-chan *AddLiveAppRecordConfigResponse, <-chan error) { + responseChan := make(chan *AddLiveAppRecordConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddLiveAppRecordConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddLiveAppRecordConfigWithCallback invokes the live.AddLiveAppRecordConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addliveapprecordconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveAppRecordConfigWithCallback(request *AddLiveAppRecordConfigRequest, callback func(response *AddLiveAppRecordConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddLiveAppRecordConfigResponse + var err error + defer close(result) + response, err = client.AddLiveAppRecordConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddLiveAppRecordConfigRequest is the request struct for api AddLiveAppRecordConfig +type AddLiveAppRecordConfigRequest struct { + *requests.RpcRequest + OssBucket string `position:"Query" name:"OssBucket"` + DomainName string `position:"Query" name:"DomainName"` + OssEndpoint string `position:"Query" name:"OssEndpoint"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + RecordFormat *[]AddLiveAppRecordConfigRecordFormat `position:"Query" name:"RecordFormat" type:"Repeated"` + OnDemand requests.Integer `position:"Query" name:"OnDemand"` + StreamName string `position:"Query" name:"StreamName"` +} + +// AddLiveAppRecordConfigRecordFormat is a repeated param struct in AddLiveAppRecordConfigRequest +type AddLiveAppRecordConfigRecordFormat struct { + Format string `name:"Format"` + OssObjectPrefix string `name:"OssObjectPrefix"` + SliceOssObjectPrefix string `name:"SliceOssObjectPrefix"` + CycleDuration string `name:"CycleDuration"` +} + +// AddLiveAppRecordConfigResponse is the response struct for api AddLiveAppRecordConfig +type AddLiveAppRecordConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddLiveAppRecordConfigRequest creates a request to invoke AddLiveAppRecordConfig API +func CreateAddLiveAppRecordConfigRequest() (request *AddLiveAppRecordConfigRequest) { + request = &AddLiveAppRecordConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddLiveAppRecordConfig", "live", "openAPI") + return +} + +// CreateAddLiveAppRecordConfigResponse creates a response to parse from AddLiveAppRecordConfig response +func CreateAddLiveAppRecordConfigResponse() (response *AddLiveAppRecordConfigResponse) { + response = &AddLiveAppRecordConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_app_snapshot_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_app_snapshot_config.go new file mode 100644 index 0000000..777cbe4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_app_snapshot_config.go @@ -0,0 +1,111 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddLiveAppSnapshotConfig invokes the live.AddLiveAppSnapshotConfig API synchronously +// api document: https://help.aliyun.com/api/live/addliveappsnapshotconfig.html +func (client *Client) AddLiveAppSnapshotConfig(request *AddLiveAppSnapshotConfigRequest) (response *AddLiveAppSnapshotConfigResponse, err error) { + response = CreateAddLiveAppSnapshotConfigResponse() + err = client.DoAction(request, response) + return +} + +// AddLiveAppSnapshotConfigWithChan invokes the live.AddLiveAppSnapshotConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addliveappsnapshotconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveAppSnapshotConfigWithChan(request *AddLiveAppSnapshotConfigRequest) (<-chan *AddLiveAppSnapshotConfigResponse, <-chan error) { + responseChan := make(chan *AddLiveAppSnapshotConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddLiveAppSnapshotConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddLiveAppSnapshotConfigWithCallback invokes the live.AddLiveAppSnapshotConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addliveappsnapshotconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveAppSnapshotConfigWithCallback(request *AddLiveAppSnapshotConfigRequest, callback func(response *AddLiveAppSnapshotConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddLiveAppSnapshotConfigResponse + var err error + defer close(result) + response, err = client.AddLiveAppSnapshotConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddLiveAppSnapshotConfigRequest is the request struct for api AddLiveAppSnapshotConfig +type AddLiveAppSnapshotConfigRequest struct { + *requests.RpcRequest + TimeInterval requests.Integer `position:"Query" name:"TimeInterval"` + OssBucket string `position:"Query" name:"OssBucket"` + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OssEndpoint string `position:"Query" name:"OssEndpoint"` + SequenceOssObject string `position:"Query" name:"SequenceOssObject"` + OverwriteOssObject string `position:"Query" name:"OverwriteOssObject"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AddLiveAppSnapshotConfigResponse is the response struct for api AddLiveAppSnapshotConfig +type AddLiveAppSnapshotConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddLiveAppSnapshotConfigRequest creates a request to invoke AddLiveAppSnapshotConfig API +func CreateAddLiveAppSnapshotConfigRequest() (request *AddLiveAppSnapshotConfigRequest) { + request = &AddLiveAppSnapshotConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddLiveAppSnapshotConfig", "live", "openAPI") + return +} + +// CreateAddLiveAppSnapshotConfigResponse creates a response to parse from AddLiveAppSnapshotConfig response +func CreateAddLiveAppSnapshotConfigResponse() (response *AddLiveAppSnapshotConfigResponse) { + response = &AddLiveAppSnapshotConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_detect_notify_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_detect_notify_config.go new file mode 100644 index 0000000..6d357b1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_detect_notify_config.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddLiveDetectNotifyConfig invokes the live.AddLiveDetectNotifyConfig API synchronously +// api document: https://help.aliyun.com/api/live/addlivedetectnotifyconfig.html +func (client *Client) AddLiveDetectNotifyConfig(request *AddLiveDetectNotifyConfigRequest) (response *AddLiveDetectNotifyConfigResponse, err error) { + response = CreateAddLiveDetectNotifyConfigResponse() + err = client.DoAction(request, response) + return +} + +// AddLiveDetectNotifyConfigWithChan invokes the live.AddLiveDetectNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addlivedetectnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveDetectNotifyConfigWithChan(request *AddLiveDetectNotifyConfigRequest) (<-chan *AddLiveDetectNotifyConfigResponse, <-chan error) { + responseChan := make(chan *AddLiveDetectNotifyConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddLiveDetectNotifyConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddLiveDetectNotifyConfigWithCallback invokes the live.AddLiveDetectNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addlivedetectnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveDetectNotifyConfigWithCallback(request *AddLiveDetectNotifyConfigRequest, callback func(response *AddLiveDetectNotifyConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddLiveDetectNotifyConfigResponse + var err error + defer close(result) + response, err = client.AddLiveDetectNotifyConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddLiveDetectNotifyConfigRequest is the request struct for api AddLiveDetectNotifyConfig +type AddLiveDetectNotifyConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + NotifyUrl string `position:"Query" name:"NotifyUrl"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AddLiveDetectNotifyConfigResponse is the response struct for api AddLiveDetectNotifyConfig +type AddLiveDetectNotifyConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddLiveDetectNotifyConfigRequest creates a request to invoke AddLiveDetectNotifyConfig API +func CreateAddLiveDetectNotifyConfigRequest() (request *AddLiveDetectNotifyConfigRequest) { + request = &AddLiveDetectNotifyConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddLiveDetectNotifyConfig", "live", "openAPI") + return +} + +// CreateAddLiveDetectNotifyConfigResponse creates a response to parse from AddLiveDetectNotifyConfig response +func CreateAddLiveDetectNotifyConfigResponse() (response *AddLiveDetectNotifyConfigResponse) { + response = &AddLiveDetectNotifyConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_mix_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_mix_config.go new file mode 100644 index 0000000..9b71c61 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_mix_config.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddLiveMixConfig invokes the live.AddLiveMixConfig API synchronously +// api document: https://help.aliyun.com/api/live/addlivemixconfig.html +func (client *Client) AddLiveMixConfig(request *AddLiveMixConfigRequest) (response *AddLiveMixConfigResponse, err error) { + response = CreateAddLiveMixConfigResponse() + err = client.DoAction(request, response) + return +} + +// AddLiveMixConfigWithChan invokes the live.AddLiveMixConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addlivemixconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveMixConfigWithChan(request *AddLiveMixConfigRequest) (<-chan *AddLiveMixConfigResponse, <-chan error) { + responseChan := make(chan *AddLiveMixConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddLiveMixConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddLiveMixConfigWithCallback invokes the live.AddLiveMixConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addlivemixconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveMixConfigWithCallback(request *AddLiveMixConfigRequest, callback func(response *AddLiveMixConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddLiveMixConfigResponse + var err error + defer close(result) + response, err = client.AddLiveMixConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddLiveMixConfigRequest is the request struct for api AddLiveMixConfig +type AddLiveMixConfigRequest struct { + *requests.RpcRequest + Template string `position:"Query" name:"Template"` + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AddLiveMixConfigResponse is the response struct for api AddLiveMixConfig +type AddLiveMixConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddLiveMixConfigRequest creates a request to invoke AddLiveMixConfig API +func CreateAddLiveMixConfigRequest() (request *AddLiveMixConfigRequest) { + request = &AddLiveMixConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddLiveMixConfig", "live", "openAPI") + return +} + +// CreateAddLiveMixConfigResponse creates a response to parse from AddLiveMixConfig response +func CreateAddLiveMixConfigResponse() (response *AddLiveMixConfigResponse) { + response = &AddLiveMixConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_mix_notify_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_mix_notify_config.go new file mode 100644 index 0000000..1b92ed0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_mix_notify_config.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddLiveMixNotifyConfig invokes the live.AddLiveMixNotifyConfig API synchronously +// api document: https://help.aliyun.com/api/live/addlivemixnotifyconfig.html +func (client *Client) AddLiveMixNotifyConfig(request *AddLiveMixNotifyConfigRequest) (response *AddLiveMixNotifyConfigResponse, err error) { + response = CreateAddLiveMixNotifyConfigResponse() + err = client.DoAction(request, response) + return +} + +// AddLiveMixNotifyConfigWithChan invokes the live.AddLiveMixNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addlivemixnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveMixNotifyConfigWithChan(request *AddLiveMixNotifyConfigRequest) (<-chan *AddLiveMixNotifyConfigResponse, <-chan error) { + responseChan := make(chan *AddLiveMixNotifyConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddLiveMixNotifyConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddLiveMixNotifyConfigWithCallback invokes the live.AddLiveMixNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addlivemixnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveMixNotifyConfigWithCallback(request *AddLiveMixNotifyConfigRequest, callback func(response *AddLiveMixNotifyConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddLiveMixNotifyConfigResponse + var err error + defer close(result) + response, err = client.AddLiveMixNotifyConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddLiveMixNotifyConfigRequest is the request struct for api AddLiveMixNotifyConfig +type AddLiveMixNotifyConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + NotifyUrl string `position:"Query" name:"NotifyUrl"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AddLiveMixNotifyConfigResponse is the response struct for api AddLiveMixNotifyConfig +type AddLiveMixNotifyConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddLiveMixNotifyConfigRequest creates a request to invoke AddLiveMixNotifyConfig API +func CreateAddLiveMixNotifyConfigRequest() (request *AddLiveMixNotifyConfigRequest) { + request = &AddLiveMixNotifyConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddLiveMixNotifyConfig", "live", "openAPI") + return +} + +// CreateAddLiveMixNotifyConfigResponse creates a response to parse from AddLiveMixNotifyConfig response +func CreateAddLiveMixNotifyConfigResponse() (response *AddLiveMixNotifyConfigResponse) { + response = &AddLiveMixNotifyConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_pull_stream_info_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_pull_stream_info_config.go new file mode 100644 index 0000000..1012a4b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_pull_stream_info_config.go @@ -0,0 +1,110 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddLivePullStreamInfoConfig invokes the live.AddLivePullStreamInfoConfig API synchronously +// api document: https://help.aliyun.com/api/live/addlivepullstreaminfoconfig.html +func (client *Client) AddLivePullStreamInfoConfig(request *AddLivePullStreamInfoConfigRequest) (response *AddLivePullStreamInfoConfigResponse, err error) { + response = CreateAddLivePullStreamInfoConfigResponse() + err = client.DoAction(request, response) + return +} + +// AddLivePullStreamInfoConfigWithChan invokes the live.AddLivePullStreamInfoConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addlivepullstreaminfoconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLivePullStreamInfoConfigWithChan(request *AddLivePullStreamInfoConfigRequest) (<-chan *AddLivePullStreamInfoConfigResponse, <-chan error) { + responseChan := make(chan *AddLivePullStreamInfoConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddLivePullStreamInfoConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddLivePullStreamInfoConfigWithCallback invokes the live.AddLivePullStreamInfoConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addlivepullstreaminfoconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLivePullStreamInfoConfigWithCallback(request *AddLivePullStreamInfoConfigRequest, callback func(response *AddLivePullStreamInfoConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddLivePullStreamInfoConfigResponse + var err error + defer close(result) + response, err = client.AddLivePullStreamInfoConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddLivePullStreamInfoConfigRequest is the request struct for api AddLivePullStreamInfoConfig +type AddLivePullStreamInfoConfigRequest struct { + *requests.RpcRequest + SourceUrl string `position:"Query" name:"SourceUrl"` + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// AddLivePullStreamInfoConfigResponse is the response struct for api AddLivePullStreamInfoConfig +type AddLivePullStreamInfoConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddLivePullStreamInfoConfigRequest creates a request to invoke AddLivePullStreamInfoConfig API +func CreateAddLivePullStreamInfoConfigRequest() (request *AddLivePullStreamInfoConfigRequest) { + request = &AddLivePullStreamInfoConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddLivePullStreamInfoConfig", "live", "openAPI") + return +} + +// CreateAddLivePullStreamInfoConfigResponse creates a response to parse from AddLivePullStreamInfoConfig response +func CreateAddLivePullStreamInfoConfigResponse() (response *AddLivePullStreamInfoConfigResponse) { + response = &AddLivePullStreamInfoConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_record_notify_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_record_notify_config.go new file mode 100644 index 0000000..b13cf15 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_record_notify_config.go @@ -0,0 +1,108 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddLiveRecordNotifyConfig invokes the live.AddLiveRecordNotifyConfig API synchronously +// api document: https://help.aliyun.com/api/live/addliverecordnotifyconfig.html +func (client *Client) AddLiveRecordNotifyConfig(request *AddLiveRecordNotifyConfigRequest) (response *AddLiveRecordNotifyConfigResponse, err error) { + response = CreateAddLiveRecordNotifyConfigResponse() + err = client.DoAction(request, response) + return +} + +// AddLiveRecordNotifyConfigWithChan invokes the live.AddLiveRecordNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addliverecordnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveRecordNotifyConfigWithChan(request *AddLiveRecordNotifyConfigRequest) (<-chan *AddLiveRecordNotifyConfigResponse, <-chan error) { + responseChan := make(chan *AddLiveRecordNotifyConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddLiveRecordNotifyConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddLiveRecordNotifyConfigWithCallback invokes the live.AddLiveRecordNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addliverecordnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveRecordNotifyConfigWithCallback(request *AddLiveRecordNotifyConfigRequest, callback func(response *AddLiveRecordNotifyConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddLiveRecordNotifyConfigResponse + var err error + defer close(result) + response, err = client.AddLiveRecordNotifyConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddLiveRecordNotifyConfigRequest is the request struct for api AddLiveRecordNotifyConfig +type AddLiveRecordNotifyConfigRequest struct { + *requests.RpcRequest + OnDemandUrl string `position:"Query" name:"OnDemandUrl"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + NotifyUrl string `position:"Query" name:"NotifyUrl"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + NeedStatusNotify requests.Boolean `position:"Query" name:"NeedStatusNotify"` +} + +// AddLiveRecordNotifyConfigResponse is the response struct for api AddLiveRecordNotifyConfig +type AddLiveRecordNotifyConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddLiveRecordNotifyConfigRequest creates a request to invoke AddLiveRecordNotifyConfig API +func CreateAddLiveRecordNotifyConfigRequest() (request *AddLiveRecordNotifyConfigRequest) { + request = &AddLiveRecordNotifyConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddLiveRecordNotifyConfig", "live", "openAPI") + return +} + +// CreateAddLiveRecordNotifyConfigResponse creates a response to parse from AddLiveRecordNotifyConfig response +func CreateAddLiveRecordNotifyConfigResponse() (response *AddLiveRecordNotifyConfigResponse) { + response = &AddLiveRecordNotifyConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_record_vod_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_record_vod_config.go new file mode 100644 index 0000000..4649593 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_record_vod_config.go @@ -0,0 +1,110 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddLiveRecordVodConfig invokes the live.AddLiveRecordVodConfig API synchronously +// api document: https://help.aliyun.com/api/live/addliverecordvodconfig.html +func (client *Client) AddLiveRecordVodConfig(request *AddLiveRecordVodConfigRequest) (response *AddLiveRecordVodConfigResponse, err error) { + response = CreateAddLiveRecordVodConfigResponse() + err = client.DoAction(request, response) + return +} + +// AddLiveRecordVodConfigWithChan invokes the live.AddLiveRecordVodConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addliverecordvodconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveRecordVodConfigWithChan(request *AddLiveRecordVodConfigRequest) (<-chan *AddLiveRecordVodConfigResponse, <-chan error) { + responseChan := make(chan *AddLiveRecordVodConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddLiveRecordVodConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddLiveRecordVodConfigWithCallback invokes the live.AddLiveRecordVodConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addliverecordvodconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveRecordVodConfigWithCallback(request *AddLiveRecordVodConfigRequest, callback func(response *AddLiveRecordVodConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddLiveRecordVodConfigResponse + var err error + defer close(result) + response, err = client.AddLiveRecordVodConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddLiveRecordVodConfigRequest is the request struct for api AddLiveRecordVodConfig +type AddLiveRecordVodConfigRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + AutoCompose string `position:"Query" name:"AutoCompose"` + DomainName string `position:"Query" name:"DomainName"` + CycleDuration requests.Integer `position:"Query" name:"CycleDuration"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ComposeVodTranscodeGroupId string `position:"Query" name:"ComposeVodTranscodeGroupId"` + StreamName string `position:"Query" name:"StreamName"` + VodTranscodeGroupId string `position:"Query" name:"VodTranscodeGroupId"` +} + +// AddLiveRecordVodConfigResponse is the response struct for api AddLiveRecordVodConfig +type AddLiveRecordVodConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddLiveRecordVodConfigRequest creates a request to invoke AddLiveRecordVodConfig API +func CreateAddLiveRecordVodConfigRequest() (request *AddLiveRecordVodConfigRequest) { + request = &AddLiveRecordVodConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddLiveRecordVodConfig", "live", "openAPI") + return +} + +// CreateAddLiveRecordVodConfigResponse creates a response to parse from AddLiveRecordVodConfig response +func CreateAddLiveRecordVodConfigResponse() (response *AddLiveRecordVodConfigResponse) { + response = &AddLiveRecordVodConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_snapshot_detect_porn_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_snapshot_detect_porn_config.go new file mode 100644 index 0000000..f4721d6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_snapshot_detect_porn_config.go @@ -0,0 +1,111 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddLiveSnapshotDetectPornConfig invokes the live.AddLiveSnapshotDetectPornConfig API synchronously +// api document: https://help.aliyun.com/api/live/addlivesnapshotdetectpornconfig.html +func (client *Client) AddLiveSnapshotDetectPornConfig(request *AddLiveSnapshotDetectPornConfigRequest) (response *AddLiveSnapshotDetectPornConfigResponse, err error) { + response = CreateAddLiveSnapshotDetectPornConfigResponse() + err = client.DoAction(request, response) + return +} + +// AddLiveSnapshotDetectPornConfigWithChan invokes the live.AddLiveSnapshotDetectPornConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addlivesnapshotdetectpornconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveSnapshotDetectPornConfigWithChan(request *AddLiveSnapshotDetectPornConfigRequest) (<-chan *AddLiveSnapshotDetectPornConfigResponse, <-chan error) { + responseChan := make(chan *AddLiveSnapshotDetectPornConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddLiveSnapshotDetectPornConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddLiveSnapshotDetectPornConfigWithCallback invokes the live.AddLiveSnapshotDetectPornConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addlivesnapshotdetectpornconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveSnapshotDetectPornConfigWithCallback(request *AddLiveSnapshotDetectPornConfigRequest, callback func(response *AddLiveSnapshotDetectPornConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddLiveSnapshotDetectPornConfigResponse + var err error + defer close(result) + response, err = client.AddLiveSnapshotDetectPornConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddLiveSnapshotDetectPornConfigRequest is the request struct for api AddLiveSnapshotDetectPornConfig +type AddLiveSnapshotDetectPornConfigRequest struct { + *requests.RpcRequest + OssBucket string `position:"Query" name:"OssBucket"` + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OssEndpoint string `position:"Query" name:"OssEndpoint"` + Interval requests.Integer `position:"Query" name:"Interval"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + OssObject string `position:"Query" name:"OssObject"` + Scene *[]string `position:"Query" name:"Scene" type:"Repeated"` +} + +// AddLiveSnapshotDetectPornConfigResponse is the response struct for api AddLiveSnapshotDetectPornConfig +type AddLiveSnapshotDetectPornConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddLiveSnapshotDetectPornConfigRequest creates a request to invoke AddLiveSnapshotDetectPornConfig API +func CreateAddLiveSnapshotDetectPornConfigRequest() (request *AddLiveSnapshotDetectPornConfigRequest) { + request = &AddLiveSnapshotDetectPornConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddLiveSnapshotDetectPornConfig", "live", "openAPI") + return +} + +// CreateAddLiveSnapshotDetectPornConfigResponse creates a response to parse from AddLiveSnapshotDetectPornConfig response +func CreateAddLiveSnapshotDetectPornConfigResponse() (response *AddLiveSnapshotDetectPornConfigResponse) { + response = &AddLiveSnapshotDetectPornConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_stream_transcode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_stream_transcode.go new file mode 100644 index 0000000..68ac59f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_live_stream_transcode.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddLiveStreamTranscode invokes the live.AddLiveStreamTranscode API synchronously +// api document: https://help.aliyun.com/api/live/addlivestreamtranscode.html +func (client *Client) AddLiveStreamTranscode(request *AddLiveStreamTranscodeRequest) (response *AddLiveStreamTranscodeResponse, err error) { + response = CreateAddLiveStreamTranscodeResponse() + err = client.DoAction(request, response) + return +} + +// AddLiveStreamTranscodeWithChan invokes the live.AddLiveStreamTranscode API asynchronously +// api document: https://help.aliyun.com/api/live/addlivestreamtranscode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveStreamTranscodeWithChan(request *AddLiveStreamTranscodeRequest) (<-chan *AddLiveStreamTranscodeResponse, <-chan error) { + responseChan := make(chan *AddLiveStreamTranscodeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddLiveStreamTranscode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddLiveStreamTranscodeWithCallback invokes the live.AddLiveStreamTranscode API asynchronously +// api document: https://help.aliyun.com/api/live/addlivestreamtranscode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveStreamTranscodeWithCallback(request *AddLiveStreamTranscodeRequest, callback func(response *AddLiveStreamTranscodeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddLiveStreamTranscodeResponse + var err error + defer close(result) + response, err = client.AddLiveStreamTranscode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddLiveStreamTranscodeRequest is the request struct for api AddLiveStreamTranscode +type AddLiveStreamTranscodeRequest struct { + *requests.RpcRequest + App string `position:"Query" name:"App"` + Template string `position:"Query" name:"Template"` + SecurityToken string `position:"Query" name:"SecurityToken"` + Domain string `position:"Query" name:"Domain"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AddLiveStreamTranscodeResponse is the response struct for api AddLiveStreamTranscode +type AddLiveStreamTranscodeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddLiveStreamTranscodeRequest creates a request to invoke AddLiveStreamTranscode API +func CreateAddLiveStreamTranscodeRequest() (request *AddLiveStreamTranscodeRequest) { + request = &AddLiveStreamTranscodeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddLiveStreamTranscode", "live", "openAPI") + return +} + +// CreateAddLiveStreamTranscodeResponse creates a response to parse from AddLiveStreamTranscode response +func CreateAddLiveStreamTranscodeResponse() (response *AddLiveStreamTranscodeResponse) { + response = &AddLiveStreamTranscodeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_multiple_stream_mix_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_multiple_stream_mix_service.go new file mode 100644 index 0000000..33d8076 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_multiple_stream_mix_service.go @@ -0,0 +1,110 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddMultipleStreamMixService invokes the live.AddMultipleStreamMixService API synchronously +// api document: https://help.aliyun.com/api/live/addmultiplestreammixservice.html +func (client *Client) AddMultipleStreamMixService(request *AddMultipleStreamMixServiceRequest) (response *AddMultipleStreamMixServiceResponse, err error) { + response = CreateAddMultipleStreamMixServiceResponse() + err = client.DoAction(request, response) + return +} + +// AddMultipleStreamMixServiceWithChan invokes the live.AddMultipleStreamMixService API asynchronously +// api document: https://help.aliyun.com/api/live/addmultiplestreammixservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddMultipleStreamMixServiceWithChan(request *AddMultipleStreamMixServiceRequest) (<-chan *AddMultipleStreamMixServiceResponse, <-chan error) { + responseChan := make(chan *AddMultipleStreamMixServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddMultipleStreamMixService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddMultipleStreamMixServiceWithCallback invokes the live.AddMultipleStreamMixService API asynchronously +// api document: https://help.aliyun.com/api/live/addmultiplestreammixservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddMultipleStreamMixServiceWithCallback(request *AddMultipleStreamMixServiceRequest, callback func(response *AddMultipleStreamMixServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddMultipleStreamMixServiceResponse + var err error + defer close(result) + response, err = client.AddMultipleStreamMixService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddMultipleStreamMixServiceRequest is the request struct for api AddMultipleStreamMixService +type AddMultipleStreamMixServiceRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + MixStreamName string `position:"Query" name:"MixStreamName"` + MixDomainName string `position:"Query" name:"MixDomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + MixAppName string `position:"Query" name:"MixAppName"` + StreamName string `position:"Query" name:"StreamName"` +} + +// AddMultipleStreamMixServiceResponse is the response struct for api AddMultipleStreamMixService +type AddMultipleStreamMixServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddMultipleStreamMixServiceRequest creates a request to invoke AddMultipleStreamMixService API +func CreateAddMultipleStreamMixServiceRequest() (request *AddMultipleStreamMixServiceRequest) { + request = &AddMultipleStreamMixServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddMultipleStreamMixService", "live", "openAPI") + return +} + +// CreateAddMultipleStreamMixServiceResponse creates a response to parse from AddMultipleStreamMixService response +func CreateAddMultipleStreamMixServiceResponse() (response *AddMultipleStreamMixServiceResponse) { + response = &AddMultipleStreamMixServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_trancode_sei.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_trancode_sei.go new file mode 100644 index 0000000..d28011c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/add_trancode_sei.go @@ -0,0 +1,110 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddTrancodeSEI invokes the live.AddTrancodeSEI API synchronously +// api document: https://help.aliyun.com/api/live/addtrancodesei.html +func (client *Client) AddTrancodeSEI(request *AddTrancodeSEIRequest) (response *AddTrancodeSEIResponse, err error) { + response = CreateAddTrancodeSEIResponse() + err = client.DoAction(request, response) + return +} + +// AddTrancodeSEIWithChan invokes the live.AddTrancodeSEI API asynchronously +// api document: https://help.aliyun.com/api/live/addtrancodesei.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddTrancodeSEIWithChan(request *AddTrancodeSEIRequest) (<-chan *AddTrancodeSEIResponse, <-chan error) { + responseChan := make(chan *AddTrancodeSEIResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddTrancodeSEI(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddTrancodeSEIWithCallback invokes the live.AddTrancodeSEI API asynchronously +// api document: https://help.aliyun.com/api/live/addtrancodesei.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddTrancodeSEIWithCallback(request *AddTrancodeSEIRequest, callback func(response *AddTrancodeSEIResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddTrancodeSEIResponse + var err error + defer close(result) + response, err = client.AddTrancodeSEI(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddTrancodeSEIRequest is the request struct for api AddTrancodeSEI +type AddTrancodeSEIRequest struct { + *requests.RpcRequest + Delay requests.Integer `position:"Query" name:"Delay"` + AppName string `position:"Query" name:"AppName"` + Repeat requests.Integer `position:"Query" name:"Repeat"` + DomainName string `position:"Query" name:"DomainName"` + Pattern string `position:"Query" name:"Pattern"` + Text string `position:"Query" name:"Text"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// AddTrancodeSEIResponse is the response struct for api AddTrancodeSEI +type AddTrancodeSEIResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddTrancodeSEIRequest creates a request to invoke AddTrancodeSEI API +func CreateAddTrancodeSEIRequest() (request *AddTrancodeSEIRequest) { + request = &AddTrancodeSEIRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddTrancodeSEI", "live", "openAPI") + return +} + +// CreateAddTrancodeSEIResponse creates a response to parse from AddTrancodeSEI response +func CreateAddTrancodeSEIResponse() (response *AddTrancodeSEIResponse) { + response = &AddTrancodeSEIResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/client.go new file mode 100644 index 0000000..6a73439 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/client.go @@ -0,0 +1,81 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/copy_caster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/copy_caster.go new file mode 100644 index 0000000..7f527f7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/copy_caster.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CopyCaster invokes the live.CopyCaster API synchronously +// api document: https://help.aliyun.com/api/live/copycaster.html +func (client *Client) CopyCaster(request *CopyCasterRequest) (response *CopyCasterResponse, err error) { + response = CreateCopyCasterResponse() + err = client.DoAction(request, response) + return +} + +// CopyCasterWithChan invokes the live.CopyCaster API asynchronously +// api document: https://help.aliyun.com/api/live/copycaster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CopyCasterWithChan(request *CopyCasterRequest) (<-chan *CopyCasterResponse, <-chan error) { + responseChan := make(chan *CopyCasterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CopyCaster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CopyCasterWithCallback invokes the live.CopyCaster API asynchronously +// api document: https://help.aliyun.com/api/live/copycaster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CopyCasterWithCallback(request *CopyCasterRequest, callback func(response *CopyCasterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CopyCasterResponse + var err error + defer close(result) + response, err = client.CopyCaster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CopyCasterRequest is the request struct for api CopyCaster +type CopyCasterRequest struct { + *requests.RpcRequest + SrcCasterId string `position:"Query" name:"SrcCasterId"` + CasterName string `position:"Query" name:"CasterName"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// CopyCasterResponse is the response struct for api CopyCaster +type CopyCasterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CasterId string `json:"CasterId" xml:"CasterId"` +} + +// CreateCopyCasterRequest creates a request to invoke CopyCaster API +func CreateCopyCasterRequest() (request *CopyCasterRequest) { + request = &CopyCasterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "CopyCaster", "live", "openAPI") + return +} + +// CreateCopyCasterResponse creates a response to parse from CopyCaster response +func CreateCopyCasterResponse() (response *CopyCasterResponse) { + response = &CopyCasterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/copy_caster_scene_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/copy_caster_scene_config.go new file mode 100644 index 0000000..1e176d0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/copy_caster_scene_config.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CopyCasterSceneConfig invokes the live.CopyCasterSceneConfig API synchronously +// api document: https://help.aliyun.com/api/live/copycastersceneconfig.html +func (client *Client) CopyCasterSceneConfig(request *CopyCasterSceneConfigRequest) (response *CopyCasterSceneConfigResponse, err error) { + response = CreateCopyCasterSceneConfigResponse() + err = client.DoAction(request, response) + return +} + +// CopyCasterSceneConfigWithChan invokes the live.CopyCasterSceneConfig API asynchronously +// api document: https://help.aliyun.com/api/live/copycastersceneconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CopyCasterSceneConfigWithChan(request *CopyCasterSceneConfigRequest) (<-chan *CopyCasterSceneConfigResponse, <-chan error) { + responseChan := make(chan *CopyCasterSceneConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CopyCasterSceneConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CopyCasterSceneConfigWithCallback invokes the live.CopyCasterSceneConfig API asynchronously +// api document: https://help.aliyun.com/api/live/copycastersceneconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CopyCasterSceneConfigWithCallback(request *CopyCasterSceneConfigRequest, callback func(response *CopyCasterSceneConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CopyCasterSceneConfigResponse + var err error + defer close(result) + response, err = client.CopyCasterSceneConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CopyCasterSceneConfigRequest is the request struct for api CopyCasterSceneConfig +type CopyCasterSceneConfigRequest struct { + *requests.RpcRequest + FromSceneId string `position:"Query" name:"FromSceneId"` + CasterId string `position:"Query" name:"CasterId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ToSceneId string `position:"Query" name:"ToSceneId"` +} + +// CopyCasterSceneConfigResponse is the response struct for api CopyCasterSceneConfig +type CopyCasterSceneConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCopyCasterSceneConfigRequest creates a request to invoke CopyCasterSceneConfig API +func CreateCopyCasterSceneConfigRequest() (request *CopyCasterSceneConfigRequest) { + request = &CopyCasterSceneConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "CopyCasterSceneConfig", "live", "openAPI") + return +} + +// CreateCopyCasterSceneConfigResponse creates a response to parse from CopyCasterSceneConfig response +func CreateCopyCasterSceneConfigResponse() (response *CopyCasterSceneConfigResponse) { + response = &CopyCasterSceneConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/create_caster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/create_caster.go new file mode 100644 index 0000000..a14a3f0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/create_caster.go @@ -0,0 +1,111 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateCaster invokes the live.CreateCaster API synchronously +// api document: https://help.aliyun.com/api/live/createcaster.html +func (client *Client) CreateCaster(request *CreateCasterRequest) (response *CreateCasterResponse, err error) { + response = CreateCreateCasterResponse() + err = client.DoAction(request, response) + return +} + +// CreateCasterWithChan invokes the live.CreateCaster API asynchronously +// api document: https://help.aliyun.com/api/live/createcaster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateCasterWithChan(request *CreateCasterRequest) (<-chan *CreateCasterResponse, <-chan error) { + responseChan := make(chan *CreateCasterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateCaster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateCasterWithCallback invokes the live.CreateCaster API asynchronously +// api document: https://help.aliyun.com/api/live/createcaster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateCasterWithCallback(request *CreateCasterRequest, callback func(response *CreateCasterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateCasterResponse + var err error + defer close(result) + response, err = client.CreateCaster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateCasterRequest is the request struct for api CreateCaster +type CreateCasterRequest struct { + *requests.RpcRequest + CasterTemplate string `position:"Query" name:"CasterTemplate"` + ExpireTime string `position:"Query" name:"ExpireTime"` + NormType requests.Integer `position:"Query" name:"NormType"` + CasterName string `position:"Query" name:"CasterName"` + ClientToken string `position:"Query" name:"ClientToken"` + ChargeType string `position:"Query" name:"ChargeType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PurchaseTime string `position:"Query" name:"PurchaseTime"` +} + +// CreateCasterResponse is the response struct for api CreateCaster +type CreateCasterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CasterId string `json:"CasterId" xml:"CasterId"` +} + +// CreateCreateCasterRequest creates a request to invoke CreateCaster API +func CreateCreateCasterRequest() (request *CreateCasterRequest) { + request = &CreateCasterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "CreateCaster", "live", "openAPI") + return +} + +// CreateCreateCasterResponse creates a response to parse from CreateCaster response +func CreateCreateCasterResponse() (response *CreateCasterResponse) { + response = &CreateCasterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/create_live_stream_record_index_files.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/create_live_stream_record_index_files.go new file mode 100644 index 0000000..bebcf01 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/create_live_stream_record_index_files.go @@ -0,0 +1,113 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateLiveStreamRecordIndexFiles invokes the live.CreateLiveStreamRecordIndexFiles API synchronously +// api document: https://help.aliyun.com/api/live/createlivestreamrecordindexfiles.html +func (client *Client) CreateLiveStreamRecordIndexFiles(request *CreateLiveStreamRecordIndexFilesRequest) (response *CreateLiveStreamRecordIndexFilesResponse, err error) { + response = CreateCreateLiveStreamRecordIndexFilesResponse() + err = client.DoAction(request, response) + return +} + +// CreateLiveStreamRecordIndexFilesWithChan invokes the live.CreateLiveStreamRecordIndexFiles API asynchronously +// api document: https://help.aliyun.com/api/live/createlivestreamrecordindexfiles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLiveStreamRecordIndexFilesWithChan(request *CreateLiveStreamRecordIndexFilesRequest) (<-chan *CreateLiveStreamRecordIndexFilesResponse, <-chan error) { + responseChan := make(chan *CreateLiveStreamRecordIndexFilesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateLiveStreamRecordIndexFiles(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateLiveStreamRecordIndexFilesWithCallback invokes the live.CreateLiveStreamRecordIndexFiles API asynchronously +// api document: https://help.aliyun.com/api/live/createlivestreamrecordindexfiles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLiveStreamRecordIndexFilesWithCallback(request *CreateLiveStreamRecordIndexFilesRequest, callback func(response *CreateLiveStreamRecordIndexFilesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateLiveStreamRecordIndexFilesResponse + var err error + defer close(result) + response, err = client.CreateLiveStreamRecordIndexFiles(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateLiveStreamRecordIndexFilesRequest is the request struct for api CreateLiveStreamRecordIndexFiles +type CreateLiveStreamRecordIndexFilesRequest struct { + *requests.RpcRequest + OssBucket string `position:"Query" name:"OssBucket"` + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OssEndpoint string `position:"Query" name:"OssEndpoint"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` + OssObject string `position:"Query" name:"OssObject"` +} + +// CreateLiveStreamRecordIndexFilesResponse is the response struct for api CreateLiveStreamRecordIndexFiles +type CreateLiveStreamRecordIndexFilesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RecordInfo RecordInfo `json:"RecordInfo" xml:"RecordInfo"` +} + +// CreateCreateLiveStreamRecordIndexFilesRequest creates a request to invoke CreateLiveStreamRecordIndexFiles API +func CreateCreateLiveStreamRecordIndexFilesRequest() (request *CreateLiveStreamRecordIndexFilesRequest) { + request = &CreateLiveStreamRecordIndexFilesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "CreateLiveStreamRecordIndexFiles", "live", "openAPI") + return +} + +// CreateCreateLiveStreamRecordIndexFilesResponse creates a response to parse from CreateLiveStreamRecordIndexFiles response +func CreateCreateLiveStreamRecordIndexFilesResponse() (response *CreateLiveStreamRecordIndexFilesResponse) { + response = &CreateLiveStreamRecordIndexFilesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster.go new file mode 100644 index 0000000..97de780 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster.go @@ -0,0 +1,105 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCaster invokes the live.DeleteCaster API synchronously +// api document: https://help.aliyun.com/api/live/deletecaster.html +func (client *Client) DeleteCaster(request *DeleteCasterRequest) (response *DeleteCasterResponse, err error) { + response = CreateDeleteCasterResponse() + err = client.DoAction(request, response) + return +} + +// DeleteCasterWithChan invokes the live.DeleteCaster API asynchronously +// api document: https://help.aliyun.com/api/live/deletecaster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCasterWithChan(request *DeleteCasterRequest) (<-chan *DeleteCasterResponse, <-chan error) { + responseChan := make(chan *DeleteCasterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCaster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteCasterWithCallback invokes the live.DeleteCaster API asynchronously +// api document: https://help.aliyun.com/api/live/deletecaster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCasterWithCallback(request *DeleteCasterRequest, callback func(response *DeleteCasterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteCasterResponse + var err error + defer close(result) + response, err = client.DeleteCaster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteCasterRequest is the request struct for api DeleteCaster +type DeleteCasterRequest struct { + *requests.RpcRequest + CasterId string `position:"Query" name:"CasterId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteCasterResponse is the response struct for api DeleteCaster +type DeleteCasterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CasterId string `json:"CasterId" xml:"CasterId"` +} + +// CreateDeleteCasterRequest creates a request to invoke DeleteCaster API +func CreateDeleteCasterRequest() (request *DeleteCasterRequest) { + request = &DeleteCasterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteCaster", "live", "openAPI") + return +} + +// CreateDeleteCasterResponse creates a response to parse from DeleteCaster response +func CreateDeleteCasterResponse() (response *DeleteCasterResponse) { + response = &DeleteCasterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_component.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_component.go new file mode 100644 index 0000000..5261b23 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_component.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCasterComponent invokes the live.DeleteCasterComponent API synchronously +// api document: https://help.aliyun.com/api/live/deletecastercomponent.html +func (client *Client) DeleteCasterComponent(request *DeleteCasterComponentRequest) (response *DeleteCasterComponentResponse, err error) { + response = CreateDeleteCasterComponentResponse() + err = client.DoAction(request, response) + return +} + +// DeleteCasterComponentWithChan invokes the live.DeleteCasterComponent API asynchronously +// api document: https://help.aliyun.com/api/live/deletecastercomponent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCasterComponentWithChan(request *DeleteCasterComponentRequest) (<-chan *DeleteCasterComponentResponse, <-chan error) { + responseChan := make(chan *DeleteCasterComponentResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCasterComponent(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteCasterComponentWithCallback invokes the live.DeleteCasterComponent API asynchronously +// api document: https://help.aliyun.com/api/live/deletecastercomponent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCasterComponentWithCallback(request *DeleteCasterComponentRequest, callback func(response *DeleteCasterComponentResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteCasterComponentResponse + var err error + defer close(result) + response, err = client.DeleteCasterComponent(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteCasterComponentRequest is the request struct for api DeleteCasterComponent +type DeleteCasterComponentRequest struct { + *requests.RpcRequest + ComponentId string `position:"Query" name:"ComponentId"` + CasterId string `position:"Query" name:"CasterId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteCasterComponentResponse is the response struct for api DeleteCasterComponent +type DeleteCasterComponentResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CasterId string `json:"CasterId" xml:"CasterId"` + ComponentId string `json:"ComponentId" xml:"ComponentId"` +} + +// CreateDeleteCasterComponentRequest creates a request to invoke DeleteCasterComponent API +func CreateDeleteCasterComponentRequest() (request *DeleteCasterComponentRequest) { + request = &DeleteCasterComponentRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteCasterComponent", "live", "openAPI") + return +} + +// CreateDeleteCasterComponentResponse creates a response to parse from DeleteCasterComponent response +func CreateDeleteCasterComponentResponse() (response *DeleteCasterComponentResponse) { + response = &DeleteCasterComponentResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_episode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_episode.go new file mode 100644 index 0000000..f165217 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_episode.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCasterEpisode invokes the live.DeleteCasterEpisode API synchronously +// api document: https://help.aliyun.com/api/live/deletecasterepisode.html +func (client *Client) DeleteCasterEpisode(request *DeleteCasterEpisodeRequest) (response *DeleteCasterEpisodeResponse, err error) { + response = CreateDeleteCasterEpisodeResponse() + err = client.DoAction(request, response) + return +} + +// DeleteCasterEpisodeWithChan invokes the live.DeleteCasterEpisode API asynchronously +// api document: https://help.aliyun.com/api/live/deletecasterepisode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCasterEpisodeWithChan(request *DeleteCasterEpisodeRequest) (<-chan *DeleteCasterEpisodeResponse, <-chan error) { + responseChan := make(chan *DeleteCasterEpisodeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCasterEpisode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteCasterEpisodeWithCallback invokes the live.DeleteCasterEpisode API asynchronously +// api document: https://help.aliyun.com/api/live/deletecasterepisode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCasterEpisodeWithCallback(request *DeleteCasterEpisodeRequest, callback func(response *DeleteCasterEpisodeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteCasterEpisodeResponse + var err error + defer close(result) + response, err = client.DeleteCasterEpisode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteCasterEpisodeRequest is the request struct for api DeleteCasterEpisode +type DeleteCasterEpisodeRequest struct { + *requests.RpcRequest + CasterId string `position:"Query" name:"CasterId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + EpisodeId string `position:"Query" name:"EpisodeId"` +} + +// DeleteCasterEpisodeResponse is the response struct for api DeleteCasterEpisode +type DeleteCasterEpisodeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CasterId string `json:"CasterId" xml:"CasterId"` + EpisodeId string `json:"EpisodeId" xml:"EpisodeId"` +} + +// CreateDeleteCasterEpisodeRequest creates a request to invoke DeleteCasterEpisode API +func CreateDeleteCasterEpisodeRequest() (request *DeleteCasterEpisodeRequest) { + request = &DeleteCasterEpisodeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteCasterEpisode", "live", "openAPI") + return +} + +// CreateDeleteCasterEpisodeResponse creates a response to parse from DeleteCasterEpisode response +func CreateDeleteCasterEpisodeResponse() (response *DeleteCasterEpisodeResponse) { + response = &DeleteCasterEpisodeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_episode_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_episode_group.go new file mode 100644 index 0000000..6624ce9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_episode_group.go @@ -0,0 +1,104 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCasterEpisodeGroup invokes the live.DeleteCasterEpisodeGroup API synchronously +// api document: https://help.aliyun.com/api/live/deletecasterepisodegroup.html +func (client *Client) DeleteCasterEpisodeGroup(request *DeleteCasterEpisodeGroupRequest) (response *DeleteCasterEpisodeGroupResponse, err error) { + response = CreateDeleteCasterEpisodeGroupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteCasterEpisodeGroupWithChan invokes the live.DeleteCasterEpisodeGroup API asynchronously +// api document: https://help.aliyun.com/api/live/deletecasterepisodegroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCasterEpisodeGroupWithChan(request *DeleteCasterEpisodeGroupRequest) (<-chan *DeleteCasterEpisodeGroupResponse, <-chan error) { + responseChan := make(chan *DeleteCasterEpisodeGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCasterEpisodeGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteCasterEpisodeGroupWithCallback invokes the live.DeleteCasterEpisodeGroup API asynchronously +// api document: https://help.aliyun.com/api/live/deletecasterepisodegroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCasterEpisodeGroupWithCallback(request *DeleteCasterEpisodeGroupRequest, callback func(response *DeleteCasterEpisodeGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteCasterEpisodeGroupResponse + var err error + defer close(result) + response, err = client.DeleteCasterEpisodeGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteCasterEpisodeGroupRequest is the request struct for api DeleteCasterEpisodeGroup +type DeleteCasterEpisodeGroupRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ProgramId string `position:"Query" name:"ProgramId"` +} + +// DeleteCasterEpisodeGroupResponse is the response struct for api DeleteCasterEpisodeGroup +type DeleteCasterEpisodeGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteCasterEpisodeGroupRequest creates a request to invoke DeleteCasterEpisodeGroup API +func CreateDeleteCasterEpisodeGroupRequest() (request *DeleteCasterEpisodeGroupRequest) { + request = &DeleteCasterEpisodeGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteCasterEpisodeGroup", "live", "openAPI") + return +} + +// CreateDeleteCasterEpisodeGroupResponse creates a response to parse from DeleteCasterEpisodeGroup response +func CreateDeleteCasterEpisodeGroupResponse() (response *DeleteCasterEpisodeGroupResponse) { + response = &DeleteCasterEpisodeGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_layout.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_layout.go new file mode 100644 index 0000000..d6358f5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_layout.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCasterLayout invokes the live.DeleteCasterLayout API synchronously +// api document: https://help.aliyun.com/api/live/deletecasterlayout.html +func (client *Client) DeleteCasterLayout(request *DeleteCasterLayoutRequest) (response *DeleteCasterLayoutResponse, err error) { + response = CreateDeleteCasterLayoutResponse() + err = client.DoAction(request, response) + return +} + +// DeleteCasterLayoutWithChan invokes the live.DeleteCasterLayout API asynchronously +// api document: https://help.aliyun.com/api/live/deletecasterlayout.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCasterLayoutWithChan(request *DeleteCasterLayoutRequest) (<-chan *DeleteCasterLayoutResponse, <-chan error) { + responseChan := make(chan *DeleteCasterLayoutResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCasterLayout(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteCasterLayoutWithCallback invokes the live.DeleteCasterLayout API asynchronously +// api document: https://help.aliyun.com/api/live/deletecasterlayout.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCasterLayoutWithCallback(request *DeleteCasterLayoutRequest, callback func(response *DeleteCasterLayoutResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteCasterLayoutResponse + var err error + defer close(result) + response, err = client.DeleteCasterLayout(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteCasterLayoutRequest is the request struct for api DeleteCasterLayout +type DeleteCasterLayoutRequest struct { + *requests.RpcRequest + CasterId string `position:"Query" name:"CasterId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + LayoutId string `position:"Query" name:"LayoutId"` +} + +// DeleteCasterLayoutResponse is the response struct for api DeleteCasterLayout +type DeleteCasterLayoutResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CasterId string `json:"CasterId" xml:"CasterId"` + LayoutId string `json:"LayoutId" xml:"LayoutId"` +} + +// CreateDeleteCasterLayoutRequest creates a request to invoke DeleteCasterLayout API +func CreateDeleteCasterLayoutRequest() (request *DeleteCasterLayoutRequest) { + request = &DeleteCasterLayoutRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteCasterLayout", "live", "openAPI") + return +} + +// CreateDeleteCasterLayoutResponse creates a response to parse from DeleteCasterLayout response +func CreateDeleteCasterLayoutResponse() (response *DeleteCasterLayoutResponse) { + response = &DeleteCasterLayoutResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_program.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_program.go new file mode 100644 index 0000000..445622c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_program.go @@ -0,0 +1,105 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCasterProgram invokes the live.DeleteCasterProgram API synchronously +// api document: https://help.aliyun.com/api/live/deletecasterprogram.html +func (client *Client) DeleteCasterProgram(request *DeleteCasterProgramRequest) (response *DeleteCasterProgramResponse, err error) { + response = CreateDeleteCasterProgramResponse() + err = client.DoAction(request, response) + return +} + +// DeleteCasterProgramWithChan invokes the live.DeleteCasterProgram API asynchronously +// api document: https://help.aliyun.com/api/live/deletecasterprogram.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCasterProgramWithChan(request *DeleteCasterProgramRequest) (<-chan *DeleteCasterProgramResponse, <-chan error) { + responseChan := make(chan *DeleteCasterProgramResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCasterProgram(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteCasterProgramWithCallback invokes the live.DeleteCasterProgram API asynchronously +// api document: https://help.aliyun.com/api/live/deletecasterprogram.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCasterProgramWithCallback(request *DeleteCasterProgramRequest, callback func(response *DeleteCasterProgramResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteCasterProgramResponse + var err error + defer close(result) + response, err = client.DeleteCasterProgram(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteCasterProgramRequest is the request struct for api DeleteCasterProgram +type DeleteCasterProgramRequest struct { + *requests.RpcRequest + CasterId string `position:"Query" name:"CasterId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteCasterProgramResponse is the response struct for api DeleteCasterProgram +type DeleteCasterProgramResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CasterId string `json:"CasterId" xml:"CasterId"` +} + +// CreateDeleteCasterProgramRequest creates a request to invoke DeleteCasterProgram API +func CreateDeleteCasterProgramRequest() (request *DeleteCasterProgramRequest) { + request = &DeleteCasterProgramRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteCasterProgram", "live", "openAPI") + return +} + +// CreateDeleteCasterProgramResponse creates a response to parse from DeleteCasterProgram response +func CreateDeleteCasterProgramResponse() (response *DeleteCasterProgramResponse) { + response = &DeleteCasterProgramResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_scene_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_scene_config.go new file mode 100644 index 0000000..ccbe3e1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_scene_config.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCasterSceneConfig invokes the live.DeleteCasterSceneConfig API synchronously +// api document: https://help.aliyun.com/api/live/deletecastersceneconfig.html +func (client *Client) DeleteCasterSceneConfig(request *DeleteCasterSceneConfigRequest) (response *DeleteCasterSceneConfigResponse, err error) { + response = CreateDeleteCasterSceneConfigResponse() + err = client.DoAction(request, response) + return +} + +// DeleteCasterSceneConfigWithChan invokes the live.DeleteCasterSceneConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deletecastersceneconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCasterSceneConfigWithChan(request *DeleteCasterSceneConfigRequest) (<-chan *DeleteCasterSceneConfigResponse, <-chan error) { + responseChan := make(chan *DeleteCasterSceneConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCasterSceneConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteCasterSceneConfigWithCallback invokes the live.DeleteCasterSceneConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deletecastersceneconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCasterSceneConfigWithCallback(request *DeleteCasterSceneConfigRequest, callback func(response *DeleteCasterSceneConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteCasterSceneConfigResponse + var err error + defer close(result) + response, err = client.DeleteCasterSceneConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteCasterSceneConfigRequest is the request struct for api DeleteCasterSceneConfig +type DeleteCasterSceneConfigRequest struct { + *requests.RpcRequest + CasterId string `position:"Query" name:"CasterId"` + SceneId string `position:"Query" name:"SceneId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Type string `position:"Query" name:"Type"` +} + +// DeleteCasterSceneConfigResponse is the response struct for api DeleteCasterSceneConfig +type DeleteCasterSceneConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteCasterSceneConfigRequest creates a request to invoke DeleteCasterSceneConfig API +func CreateDeleteCasterSceneConfigRequest() (request *DeleteCasterSceneConfigRequest) { + request = &DeleteCasterSceneConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteCasterSceneConfig", "live", "openAPI") + return +} + +// CreateDeleteCasterSceneConfigResponse creates a response to parse from DeleteCasterSceneConfig response +func CreateDeleteCasterSceneConfigResponse() (response *DeleteCasterSceneConfigResponse) { + response = &DeleteCasterSceneConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_video_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_video_resource.go new file mode 100644 index 0000000..6d9cf0d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_caster_video_resource.go @@ -0,0 +1,105 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCasterVideoResource invokes the live.DeleteCasterVideoResource API synchronously +// api document: https://help.aliyun.com/api/live/deletecastervideoresource.html +func (client *Client) DeleteCasterVideoResource(request *DeleteCasterVideoResourceRequest) (response *DeleteCasterVideoResourceResponse, err error) { + response = CreateDeleteCasterVideoResourceResponse() + err = client.DoAction(request, response) + return +} + +// DeleteCasterVideoResourceWithChan invokes the live.DeleteCasterVideoResource API asynchronously +// api document: https://help.aliyun.com/api/live/deletecastervideoresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCasterVideoResourceWithChan(request *DeleteCasterVideoResourceRequest) (<-chan *DeleteCasterVideoResourceResponse, <-chan error) { + responseChan := make(chan *DeleteCasterVideoResourceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCasterVideoResource(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteCasterVideoResourceWithCallback invokes the live.DeleteCasterVideoResource API asynchronously +// api document: https://help.aliyun.com/api/live/deletecastervideoresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCasterVideoResourceWithCallback(request *DeleteCasterVideoResourceRequest, callback func(response *DeleteCasterVideoResourceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteCasterVideoResourceResponse + var err error + defer close(result) + response, err = client.DeleteCasterVideoResource(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteCasterVideoResourceRequest is the request struct for api DeleteCasterVideoResource +type DeleteCasterVideoResourceRequest struct { + *requests.RpcRequest + ResourceId string `position:"Query" name:"ResourceId"` + CasterId string `position:"Query" name:"CasterId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteCasterVideoResourceResponse is the response struct for api DeleteCasterVideoResource +type DeleteCasterVideoResourceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteCasterVideoResourceRequest creates a request to invoke DeleteCasterVideoResource API +func CreateDeleteCasterVideoResourceRequest() (request *DeleteCasterVideoResourceRequest) { + request = &DeleteCasterVideoResourceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteCasterVideoResource", "live", "openAPI") + return +} + +// CreateDeleteCasterVideoResourceResponse creates a response to parse from DeleteCasterVideoResource response +func CreateDeleteCasterVideoResourceResponse() (response *DeleteCasterVideoResourceResponse) { + response = &DeleteCasterVideoResourceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_app_record_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_app_record_config.go new file mode 100644 index 0000000..b668290 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_app_record_config.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLiveAppRecordConfig invokes the live.DeleteLiveAppRecordConfig API synchronously +// api document: https://help.aliyun.com/api/live/deleteliveapprecordconfig.html +func (client *Client) DeleteLiveAppRecordConfig(request *DeleteLiveAppRecordConfigRequest) (response *DeleteLiveAppRecordConfigResponse, err error) { + response = CreateDeleteLiveAppRecordConfigResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLiveAppRecordConfigWithChan invokes the live.DeleteLiveAppRecordConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deleteliveapprecordconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveAppRecordConfigWithChan(request *DeleteLiveAppRecordConfigRequest) (<-chan *DeleteLiveAppRecordConfigResponse, <-chan error) { + responseChan := make(chan *DeleteLiveAppRecordConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLiveAppRecordConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLiveAppRecordConfigWithCallback invokes the live.DeleteLiveAppRecordConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deleteliveapprecordconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveAppRecordConfigWithCallback(request *DeleteLiveAppRecordConfigRequest, callback func(response *DeleteLiveAppRecordConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLiveAppRecordConfigResponse + var err error + defer close(result) + response, err = client.DeleteLiveAppRecordConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLiveAppRecordConfigRequest is the request struct for api DeleteLiveAppRecordConfig +type DeleteLiveAppRecordConfigRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DeleteLiveAppRecordConfigResponse is the response struct for api DeleteLiveAppRecordConfig +type DeleteLiveAppRecordConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLiveAppRecordConfigRequest creates a request to invoke DeleteLiveAppRecordConfig API +func CreateDeleteLiveAppRecordConfigRequest() (request *DeleteLiveAppRecordConfigRequest) { + request = &DeleteLiveAppRecordConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteLiveAppRecordConfig", "live", "openAPI") + return +} + +// CreateDeleteLiveAppRecordConfigResponse creates a response to parse from DeleteLiveAppRecordConfig response +func CreateDeleteLiveAppRecordConfigResponse() (response *DeleteLiveAppRecordConfigResponse) { + response = &DeleteLiveAppRecordConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_app_snapshot_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_app_snapshot_config.go new file mode 100644 index 0000000..cb4ceb4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_app_snapshot_config.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLiveAppSnapshotConfig invokes the live.DeleteLiveAppSnapshotConfig API synchronously +// api document: https://help.aliyun.com/api/live/deleteliveappsnapshotconfig.html +func (client *Client) DeleteLiveAppSnapshotConfig(request *DeleteLiveAppSnapshotConfigRequest) (response *DeleteLiveAppSnapshotConfigResponse, err error) { + response = CreateDeleteLiveAppSnapshotConfigResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLiveAppSnapshotConfigWithChan invokes the live.DeleteLiveAppSnapshotConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deleteliveappsnapshotconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveAppSnapshotConfigWithChan(request *DeleteLiveAppSnapshotConfigRequest) (<-chan *DeleteLiveAppSnapshotConfigResponse, <-chan error) { + responseChan := make(chan *DeleteLiveAppSnapshotConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLiveAppSnapshotConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLiveAppSnapshotConfigWithCallback invokes the live.DeleteLiveAppSnapshotConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deleteliveappsnapshotconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveAppSnapshotConfigWithCallback(request *DeleteLiveAppSnapshotConfigRequest, callback func(response *DeleteLiveAppSnapshotConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLiveAppSnapshotConfigResponse + var err error + defer close(result) + response, err = client.DeleteLiveAppSnapshotConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLiveAppSnapshotConfigRequest is the request struct for api DeleteLiveAppSnapshotConfig +type DeleteLiveAppSnapshotConfigRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteLiveAppSnapshotConfigResponse is the response struct for api DeleteLiveAppSnapshotConfig +type DeleteLiveAppSnapshotConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLiveAppSnapshotConfigRequest creates a request to invoke DeleteLiveAppSnapshotConfig API +func CreateDeleteLiveAppSnapshotConfigRequest() (request *DeleteLiveAppSnapshotConfigRequest) { + request = &DeleteLiveAppSnapshotConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteLiveAppSnapshotConfig", "live", "openAPI") + return +} + +// CreateDeleteLiveAppSnapshotConfigResponse creates a response to parse from DeleteLiveAppSnapshotConfig response +func CreateDeleteLiveAppSnapshotConfigResponse() (response *DeleteLiveAppSnapshotConfigResponse) { + response = &DeleteLiveAppSnapshotConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_detect_notify_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_detect_notify_config.go new file mode 100644 index 0000000..e319a63 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_detect_notify_config.go @@ -0,0 +1,105 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLiveDetectNotifyConfig invokes the live.DeleteLiveDetectNotifyConfig API synchronously +// api document: https://help.aliyun.com/api/live/deletelivedetectnotifyconfig.html +func (client *Client) DeleteLiveDetectNotifyConfig(request *DeleteLiveDetectNotifyConfigRequest) (response *DeleteLiveDetectNotifyConfigResponse, err error) { + response = CreateDeleteLiveDetectNotifyConfigResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLiveDetectNotifyConfigWithChan invokes the live.DeleteLiveDetectNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deletelivedetectnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveDetectNotifyConfigWithChan(request *DeleteLiveDetectNotifyConfigRequest) (<-chan *DeleteLiveDetectNotifyConfigResponse, <-chan error) { + responseChan := make(chan *DeleteLiveDetectNotifyConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLiveDetectNotifyConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLiveDetectNotifyConfigWithCallback invokes the live.DeleteLiveDetectNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deletelivedetectnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveDetectNotifyConfigWithCallback(request *DeleteLiveDetectNotifyConfigRequest, callback func(response *DeleteLiveDetectNotifyConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLiveDetectNotifyConfigResponse + var err error + defer close(result) + response, err = client.DeleteLiveDetectNotifyConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLiveDetectNotifyConfigRequest is the request struct for api DeleteLiveDetectNotifyConfig +type DeleteLiveDetectNotifyConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteLiveDetectNotifyConfigResponse is the response struct for api DeleteLiveDetectNotifyConfig +type DeleteLiveDetectNotifyConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLiveDetectNotifyConfigRequest creates a request to invoke DeleteLiveDetectNotifyConfig API +func CreateDeleteLiveDetectNotifyConfigRequest() (request *DeleteLiveDetectNotifyConfigRequest) { + request = &DeleteLiveDetectNotifyConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteLiveDetectNotifyConfig", "live", "openAPI") + return +} + +// CreateDeleteLiveDetectNotifyConfigResponse creates a response to parse from DeleteLiveDetectNotifyConfig response +func CreateDeleteLiveDetectNotifyConfigResponse() (response *DeleteLiveDetectNotifyConfigResponse) { + response = &DeleteLiveDetectNotifyConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_mix_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_mix_config.go new file mode 100644 index 0000000..ac5591b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_mix_config.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLiveMixConfig invokes the live.DeleteLiveMixConfig API synchronously +// api document: https://help.aliyun.com/api/live/deletelivemixconfig.html +func (client *Client) DeleteLiveMixConfig(request *DeleteLiveMixConfigRequest) (response *DeleteLiveMixConfigResponse, err error) { + response = CreateDeleteLiveMixConfigResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLiveMixConfigWithChan invokes the live.DeleteLiveMixConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deletelivemixconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveMixConfigWithChan(request *DeleteLiveMixConfigRequest) (<-chan *DeleteLiveMixConfigResponse, <-chan error) { + responseChan := make(chan *DeleteLiveMixConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLiveMixConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLiveMixConfigWithCallback invokes the live.DeleteLiveMixConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deletelivemixconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveMixConfigWithCallback(request *DeleteLiveMixConfigRequest, callback func(response *DeleteLiveMixConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLiveMixConfigResponse + var err error + defer close(result) + response, err = client.DeleteLiveMixConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLiveMixConfigRequest is the request struct for api DeleteLiveMixConfig +type DeleteLiveMixConfigRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteLiveMixConfigResponse is the response struct for api DeleteLiveMixConfig +type DeleteLiveMixConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLiveMixConfigRequest creates a request to invoke DeleteLiveMixConfig API +func CreateDeleteLiveMixConfigRequest() (request *DeleteLiveMixConfigRequest) { + request = &DeleteLiveMixConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteLiveMixConfig", "live", "openAPI") + return +} + +// CreateDeleteLiveMixConfigResponse creates a response to parse from DeleteLiveMixConfig response +func CreateDeleteLiveMixConfigResponse() (response *DeleteLiveMixConfigResponse) { + response = &DeleteLiveMixConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_mix_notify_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_mix_notify_config.go new file mode 100644 index 0000000..90fac27 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_mix_notify_config.go @@ -0,0 +1,105 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLiveMixNotifyConfig invokes the live.DeleteLiveMixNotifyConfig API synchronously +// api document: https://help.aliyun.com/api/live/deletelivemixnotifyconfig.html +func (client *Client) DeleteLiveMixNotifyConfig(request *DeleteLiveMixNotifyConfigRequest) (response *DeleteLiveMixNotifyConfigResponse, err error) { + response = CreateDeleteLiveMixNotifyConfigResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLiveMixNotifyConfigWithChan invokes the live.DeleteLiveMixNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deletelivemixnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveMixNotifyConfigWithChan(request *DeleteLiveMixNotifyConfigRequest) (<-chan *DeleteLiveMixNotifyConfigResponse, <-chan error) { + responseChan := make(chan *DeleteLiveMixNotifyConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLiveMixNotifyConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLiveMixNotifyConfigWithCallback invokes the live.DeleteLiveMixNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deletelivemixnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveMixNotifyConfigWithCallback(request *DeleteLiveMixNotifyConfigRequest, callback func(response *DeleteLiveMixNotifyConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLiveMixNotifyConfigResponse + var err error + defer close(result) + response, err = client.DeleteLiveMixNotifyConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLiveMixNotifyConfigRequest is the request struct for api DeleteLiveMixNotifyConfig +type DeleteLiveMixNotifyConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteLiveMixNotifyConfigResponse is the response struct for api DeleteLiveMixNotifyConfig +type DeleteLiveMixNotifyConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLiveMixNotifyConfigRequest creates a request to invoke DeleteLiveMixNotifyConfig API +func CreateDeleteLiveMixNotifyConfigRequest() (request *DeleteLiveMixNotifyConfigRequest) { + request = &DeleteLiveMixNotifyConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteLiveMixNotifyConfig", "live", "openAPI") + return +} + +// CreateDeleteLiveMixNotifyConfigResponse creates a response to parse from DeleteLiveMixNotifyConfig response +func CreateDeleteLiveMixNotifyConfigResponse() (response *DeleteLiveMixNotifyConfigResponse) { + response = &DeleteLiveMixNotifyConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_pull_stream_info_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_pull_stream_info_config.go new file mode 100644 index 0000000..f166f9c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_pull_stream_info_config.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLivePullStreamInfoConfig invokes the live.DeleteLivePullStreamInfoConfig API synchronously +// api document: https://help.aliyun.com/api/live/deletelivepullstreaminfoconfig.html +func (client *Client) DeleteLivePullStreamInfoConfig(request *DeleteLivePullStreamInfoConfigRequest) (response *DeleteLivePullStreamInfoConfigResponse, err error) { + response = CreateDeleteLivePullStreamInfoConfigResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLivePullStreamInfoConfigWithChan invokes the live.DeleteLivePullStreamInfoConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deletelivepullstreaminfoconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLivePullStreamInfoConfigWithChan(request *DeleteLivePullStreamInfoConfigRequest) (<-chan *DeleteLivePullStreamInfoConfigResponse, <-chan error) { + responseChan := make(chan *DeleteLivePullStreamInfoConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLivePullStreamInfoConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLivePullStreamInfoConfigWithCallback invokes the live.DeleteLivePullStreamInfoConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deletelivepullstreaminfoconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLivePullStreamInfoConfigWithCallback(request *DeleteLivePullStreamInfoConfigRequest, callback func(response *DeleteLivePullStreamInfoConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLivePullStreamInfoConfigResponse + var err error + defer close(result) + response, err = client.DeleteLivePullStreamInfoConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLivePullStreamInfoConfigRequest is the request struct for api DeleteLivePullStreamInfoConfig +type DeleteLivePullStreamInfoConfigRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DeleteLivePullStreamInfoConfigResponse is the response struct for api DeleteLivePullStreamInfoConfig +type DeleteLivePullStreamInfoConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLivePullStreamInfoConfigRequest creates a request to invoke DeleteLivePullStreamInfoConfig API +func CreateDeleteLivePullStreamInfoConfigRequest() (request *DeleteLivePullStreamInfoConfigRequest) { + request = &DeleteLivePullStreamInfoConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteLivePullStreamInfoConfig", "live", "openAPI") + return +} + +// CreateDeleteLivePullStreamInfoConfigResponse creates a response to parse from DeleteLivePullStreamInfoConfig response +func CreateDeleteLivePullStreamInfoConfigResponse() (response *DeleteLivePullStreamInfoConfigResponse) { + response = &DeleteLivePullStreamInfoConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_record_notify_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_record_notify_config.go new file mode 100644 index 0000000..616d649 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_record_notify_config.go @@ -0,0 +1,105 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLiveRecordNotifyConfig invokes the live.DeleteLiveRecordNotifyConfig API synchronously +// api document: https://help.aliyun.com/api/live/deleteliverecordnotifyconfig.html +func (client *Client) DeleteLiveRecordNotifyConfig(request *DeleteLiveRecordNotifyConfigRequest) (response *DeleteLiveRecordNotifyConfigResponse, err error) { + response = CreateDeleteLiveRecordNotifyConfigResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLiveRecordNotifyConfigWithChan invokes the live.DeleteLiveRecordNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deleteliverecordnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveRecordNotifyConfigWithChan(request *DeleteLiveRecordNotifyConfigRequest) (<-chan *DeleteLiveRecordNotifyConfigResponse, <-chan error) { + responseChan := make(chan *DeleteLiveRecordNotifyConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLiveRecordNotifyConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLiveRecordNotifyConfigWithCallback invokes the live.DeleteLiveRecordNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deleteliverecordnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveRecordNotifyConfigWithCallback(request *DeleteLiveRecordNotifyConfigRequest, callback func(response *DeleteLiveRecordNotifyConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLiveRecordNotifyConfigResponse + var err error + defer close(result) + response, err = client.DeleteLiveRecordNotifyConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLiveRecordNotifyConfigRequest is the request struct for api DeleteLiveRecordNotifyConfig +type DeleteLiveRecordNotifyConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteLiveRecordNotifyConfigResponse is the response struct for api DeleteLiveRecordNotifyConfig +type DeleteLiveRecordNotifyConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLiveRecordNotifyConfigRequest creates a request to invoke DeleteLiveRecordNotifyConfig API +func CreateDeleteLiveRecordNotifyConfigRequest() (request *DeleteLiveRecordNotifyConfigRequest) { + request = &DeleteLiveRecordNotifyConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteLiveRecordNotifyConfig", "live", "openAPI") + return +} + +// CreateDeleteLiveRecordNotifyConfigResponse creates a response to parse from DeleteLiveRecordNotifyConfig response +func CreateDeleteLiveRecordNotifyConfigResponse() (response *DeleteLiveRecordNotifyConfigResponse) { + response = &DeleteLiveRecordNotifyConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_record_vod_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_record_vod_config.go new file mode 100644 index 0000000..f800dd7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_record_vod_config.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLiveRecordVodConfig invokes the live.DeleteLiveRecordVodConfig API synchronously +// api document: https://help.aliyun.com/api/live/deleteliverecordvodconfig.html +func (client *Client) DeleteLiveRecordVodConfig(request *DeleteLiveRecordVodConfigRequest) (response *DeleteLiveRecordVodConfigResponse, err error) { + response = CreateDeleteLiveRecordVodConfigResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLiveRecordVodConfigWithChan invokes the live.DeleteLiveRecordVodConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deleteliverecordvodconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveRecordVodConfigWithChan(request *DeleteLiveRecordVodConfigRequest) (<-chan *DeleteLiveRecordVodConfigResponse, <-chan error) { + responseChan := make(chan *DeleteLiveRecordVodConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLiveRecordVodConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLiveRecordVodConfigWithCallback invokes the live.DeleteLiveRecordVodConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deleteliverecordvodconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveRecordVodConfigWithCallback(request *DeleteLiveRecordVodConfigRequest, callback func(response *DeleteLiveRecordVodConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLiveRecordVodConfigResponse + var err error + defer close(result) + response, err = client.DeleteLiveRecordVodConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLiveRecordVodConfigRequest is the request struct for api DeleteLiveRecordVodConfig +type DeleteLiveRecordVodConfigRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DeleteLiveRecordVodConfigResponse is the response struct for api DeleteLiveRecordVodConfig +type DeleteLiveRecordVodConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLiveRecordVodConfigRequest creates a request to invoke DeleteLiveRecordVodConfig API +func CreateDeleteLiveRecordVodConfigRequest() (request *DeleteLiveRecordVodConfigRequest) { + request = &DeleteLiveRecordVodConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteLiveRecordVodConfig", "live", "openAPI") + return +} + +// CreateDeleteLiveRecordVodConfigResponse creates a response to parse from DeleteLiveRecordVodConfig response +func CreateDeleteLiveRecordVodConfigResponse() (response *DeleteLiveRecordVodConfigResponse) { + response = &DeleteLiveRecordVodConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_snapshot_detect_porn_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_snapshot_detect_porn_config.go new file mode 100644 index 0000000..d992166 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_snapshot_detect_porn_config.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLiveSnapshotDetectPornConfig invokes the live.DeleteLiveSnapshotDetectPornConfig API synchronously +// api document: https://help.aliyun.com/api/live/deletelivesnapshotdetectpornconfig.html +func (client *Client) DeleteLiveSnapshotDetectPornConfig(request *DeleteLiveSnapshotDetectPornConfigRequest) (response *DeleteLiveSnapshotDetectPornConfigResponse, err error) { + response = CreateDeleteLiveSnapshotDetectPornConfigResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLiveSnapshotDetectPornConfigWithChan invokes the live.DeleteLiveSnapshotDetectPornConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deletelivesnapshotdetectpornconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveSnapshotDetectPornConfigWithChan(request *DeleteLiveSnapshotDetectPornConfigRequest) (<-chan *DeleteLiveSnapshotDetectPornConfigResponse, <-chan error) { + responseChan := make(chan *DeleteLiveSnapshotDetectPornConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLiveSnapshotDetectPornConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLiveSnapshotDetectPornConfigWithCallback invokes the live.DeleteLiveSnapshotDetectPornConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deletelivesnapshotdetectpornconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveSnapshotDetectPornConfigWithCallback(request *DeleteLiveSnapshotDetectPornConfigRequest, callback func(response *DeleteLiveSnapshotDetectPornConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLiveSnapshotDetectPornConfigResponse + var err error + defer close(result) + response, err = client.DeleteLiveSnapshotDetectPornConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLiveSnapshotDetectPornConfigRequest is the request struct for api DeleteLiveSnapshotDetectPornConfig +type DeleteLiveSnapshotDetectPornConfigRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteLiveSnapshotDetectPornConfigResponse is the response struct for api DeleteLiveSnapshotDetectPornConfig +type DeleteLiveSnapshotDetectPornConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLiveSnapshotDetectPornConfigRequest creates a request to invoke DeleteLiveSnapshotDetectPornConfig API +func CreateDeleteLiveSnapshotDetectPornConfigRequest() (request *DeleteLiveSnapshotDetectPornConfigRequest) { + request = &DeleteLiveSnapshotDetectPornConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteLiveSnapshotDetectPornConfig", "live", "openAPI") + return +} + +// CreateDeleteLiveSnapshotDetectPornConfigResponse creates a response to parse from DeleteLiveSnapshotDetectPornConfig response +func CreateDeleteLiveSnapshotDetectPornConfigResponse() (response *DeleteLiveSnapshotDetectPornConfigResponse) { + response = &DeleteLiveSnapshotDetectPornConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_stream_transcode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_stream_transcode.go new file mode 100644 index 0000000..9ea619e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_stream_transcode.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLiveStreamTranscode invokes the live.DeleteLiveStreamTranscode API synchronously +// api document: https://help.aliyun.com/api/live/deletelivestreamtranscode.html +func (client *Client) DeleteLiveStreamTranscode(request *DeleteLiveStreamTranscodeRequest) (response *DeleteLiveStreamTranscodeResponse, err error) { + response = CreateDeleteLiveStreamTranscodeResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLiveStreamTranscodeWithChan invokes the live.DeleteLiveStreamTranscode API asynchronously +// api document: https://help.aliyun.com/api/live/deletelivestreamtranscode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveStreamTranscodeWithChan(request *DeleteLiveStreamTranscodeRequest) (<-chan *DeleteLiveStreamTranscodeResponse, <-chan error) { + responseChan := make(chan *DeleteLiveStreamTranscodeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLiveStreamTranscode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLiveStreamTranscodeWithCallback invokes the live.DeleteLiveStreamTranscode API asynchronously +// api document: https://help.aliyun.com/api/live/deletelivestreamtranscode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveStreamTranscodeWithCallback(request *DeleteLiveStreamTranscodeRequest, callback func(response *DeleteLiveStreamTranscodeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLiveStreamTranscodeResponse + var err error + defer close(result) + response, err = client.DeleteLiveStreamTranscode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLiveStreamTranscodeRequest is the request struct for api DeleteLiveStreamTranscode +type DeleteLiveStreamTranscodeRequest struct { + *requests.RpcRequest + App string `position:"Query" name:"App"` + Template string `position:"Query" name:"Template"` + SecurityToken string `position:"Query" name:"SecurityToken"` + Domain string `position:"Query" name:"Domain"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteLiveStreamTranscodeResponse is the response struct for api DeleteLiveStreamTranscode +type DeleteLiveStreamTranscodeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLiveStreamTranscodeRequest creates a request to invoke DeleteLiveStreamTranscode API +func CreateDeleteLiveStreamTranscodeRequest() (request *DeleteLiveStreamTranscodeRequest) { + request = &DeleteLiveStreamTranscodeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteLiveStreamTranscode", "live", "openAPI") + return +} + +// CreateDeleteLiveStreamTranscodeResponse creates a response to parse from DeleteLiveStreamTranscode response +func CreateDeleteLiveStreamTranscodeResponse() (response *DeleteLiveStreamTranscodeResponse) { + response = &DeleteLiveStreamTranscodeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_streams_notify_url_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_streams_notify_url_config.go new file mode 100644 index 0000000..f7fc4b4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/delete_live_streams_notify_url_config.go @@ -0,0 +1,105 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLiveStreamsNotifyUrlConfig invokes the live.DeleteLiveStreamsNotifyUrlConfig API synchronously +// api document: https://help.aliyun.com/api/live/deletelivestreamsnotifyurlconfig.html +func (client *Client) DeleteLiveStreamsNotifyUrlConfig(request *DeleteLiveStreamsNotifyUrlConfigRequest) (response *DeleteLiveStreamsNotifyUrlConfigResponse, err error) { + response = CreateDeleteLiveStreamsNotifyUrlConfigResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLiveStreamsNotifyUrlConfigWithChan invokes the live.DeleteLiveStreamsNotifyUrlConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deletelivestreamsnotifyurlconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveStreamsNotifyUrlConfigWithChan(request *DeleteLiveStreamsNotifyUrlConfigRequest) (<-chan *DeleteLiveStreamsNotifyUrlConfigResponse, <-chan error) { + responseChan := make(chan *DeleteLiveStreamsNotifyUrlConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLiveStreamsNotifyUrlConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLiveStreamsNotifyUrlConfigWithCallback invokes the live.DeleteLiveStreamsNotifyUrlConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deletelivestreamsnotifyurlconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveStreamsNotifyUrlConfigWithCallback(request *DeleteLiveStreamsNotifyUrlConfigRequest, callback func(response *DeleteLiveStreamsNotifyUrlConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLiveStreamsNotifyUrlConfigResponse + var err error + defer close(result) + response, err = client.DeleteLiveStreamsNotifyUrlConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLiveStreamsNotifyUrlConfigRequest is the request struct for api DeleteLiveStreamsNotifyUrlConfig +type DeleteLiveStreamsNotifyUrlConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteLiveStreamsNotifyUrlConfigResponse is the response struct for api DeleteLiveStreamsNotifyUrlConfig +type DeleteLiveStreamsNotifyUrlConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLiveStreamsNotifyUrlConfigRequest creates a request to invoke DeleteLiveStreamsNotifyUrlConfig API +func CreateDeleteLiveStreamsNotifyUrlConfigRequest() (request *DeleteLiveStreamsNotifyUrlConfigRequest) { + request = &DeleteLiveStreamsNotifyUrlConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteLiveStreamsNotifyUrlConfig", "live", "openAPI") + return +} + +// CreateDeleteLiveStreamsNotifyUrlConfigResponse creates a response to parse from DeleteLiveStreamsNotifyUrlConfig response +func CreateDeleteLiveStreamsNotifyUrlConfigResponse() (response *DeleteLiveStreamsNotifyUrlConfigResponse) { + response = &DeleteLiveStreamsNotifyUrlConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_components.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_components.go new file mode 100644 index 0000000..607154b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_components.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCasterComponents invokes the live.DescribeCasterComponents API synchronously +// api document: https://help.aliyun.com/api/live/describecastercomponents.html +func (client *Client) DescribeCasterComponents(request *DescribeCasterComponentsRequest) (response *DescribeCasterComponentsResponse, err error) { + response = CreateDescribeCasterComponentsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCasterComponentsWithChan invokes the live.DescribeCasterComponents API asynchronously +// api document: https://help.aliyun.com/api/live/describecastercomponents.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCasterComponentsWithChan(request *DescribeCasterComponentsRequest) (<-chan *DescribeCasterComponentsResponse, <-chan error) { + responseChan := make(chan *DescribeCasterComponentsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCasterComponents(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCasterComponentsWithCallback invokes the live.DescribeCasterComponents API asynchronously +// api document: https://help.aliyun.com/api/live/describecastercomponents.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCasterComponentsWithCallback(request *DescribeCasterComponentsRequest, callback func(response *DescribeCasterComponentsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCasterComponentsResponse + var err error + defer close(result) + response, err = client.DescribeCasterComponents(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCasterComponentsRequest is the request struct for api DescribeCasterComponents +type DescribeCasterComponentsRequest struct { + *requests.RpcRequest + ComponentId string `position:"Query" name:"ComponentId"` + CasterId string `position:"Query" name:"CasterId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeCasterComponentsResponse is the response struct for api DescribeCasterComponents +type DescribeCasterComponentsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Total int `json:"Total" xml:"Total"` + Components Components `json:"Components" xml:"Components"` +} + +// CreateDescribeCasterComponentsRequest creates a request to invoke DescribeCasterComponents API +func CreateDescribeCasterComponentsRequest() (request *DescribeCasterComponentsRequest) { + request = &DescribeCasterComponentsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeCasterComponents", "live", "openAPI") + return +} + +// CreateDescribeCasterComponentsResponse creates a response to parse from DescribeCasterComponents response +func CreateDescribeCasterComponentsResponse() (response *DescribeCasterComponentsResponse) { + response = &DescribeCasterComponentsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_config.go new file mode 100644 index 0000000..c64a869 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_config.go @@ -0,0 +1,115 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCasterConfig invokes the live.DescribeCasterConfig API synchronously +// api document: https://help.aliyun.com/api/live/describecasterconfig.html +func (client *Client) DescribeCasterConfig(request *DescribeCasterConfigRequest) (response *DescribeCasterConfigResponse, err error) { + response = CreateDescribeCasterConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCasterConfigWithChan invokes the live.DescribeCasterConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describecasterconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCasterConfigWithChan(request *DescribeCasterConfigRequest) (<-chan *DescribeCasterConfigResponse, <-chan error) { + responseChan := make(chan *DescribeCasterConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCasterConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCasterConfigWithCallback invokes the live.DescribeCasterConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describecasterconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCasterConfigWithCallback(request *DescribeCasterConfigRequest, callback func(response *DescribeCasterConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCasterConfigResponse + var err error + defer close(result) + response, err = client.DescribeCasterConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCasterConfigRequest is the request struct for api DescribeCasterConfig +type DescribeCasterConfigRequest struct { + *requests.RpcRequest + CasterId string `position:"Query" name:"CasterId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeCasterConfigResponse is the response struct for api DescribeCasterConfig +type DescribeCasterConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CasterId string `json:"CasterId" xml:"CasterId"` + CasterName string `json:"CasterName" xml:"CasterName"` + DomainName string `json:"DomainName" xml:"DomainName"` + Delay float64 `json:"Delay" xml:"Delay"` + UrgentMaterialId string `json:"UrgentMaterialId" xml:"UrgentMaterialId"` + SideOutputUrl string `json:"SideOutputUrl" xml:"SideOutputUrl"` + CallbackUrl string `json:"CallbackUrl" xml:"CallbackUrl"` + ProgramName string `json:"ProgramName" xml:"ProgramName"` + ProgramEffect int `json:"ProgramEffect" xml:"ProgramEffect"` + TranscodeConfig TranscodeConfig `json:"TranscodeConfig" xml:"TranscodeConfig"` + RecordConfig RecordConfig `json:"RecordConfig" xml:"RecordConfig"` +} + +// CreateDescribeCasterConfigRequest creates a request to invoke DescribeCasterConfig API +func CreateDescribeCasterConfigRequest() (request *DescribeCasterConfigRequest) { + request = &DescribeCasterConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeCasterConfig", "live", "openAPI") + return +} + +// CreateDescribeCasterConfigResponse creates a response to parse from DescribeCasterConfig response +func CreateDescribeCasterConfigResponse() (response *DescribeCasterConfigResponse) { + response = &DescribeCasterConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_layouts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_layouts.go new file mode 100644 index 0000000..2a47826 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_layouts.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCasterLayouts invokes the live.DescribeCasterLayouts API synchronously +// api document: https://help.aliyun.com/api/live/describecasterlayouts.html +func (client *Client) DescribeCasterLayouts(request *DescribeCasterLayoutsRequest) (response *DescribeCasterLayoutsResponse, err error) { + response = CreateDescribeCasterLayoutsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCasterLayoutsWithChan invokes the live.DescribeCasterLayouts API asynchronously +// api document: https://help.aliyun.com/api/live/describecasterlayouts.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCasterLayoutsWithChan(request *DescribeCasterLayoutsRequest) (<-chan *DescribeCasterLayoutsResponse, <-chan error) { + responseChan := make(chan *DescribeCasterLayoutsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCasterLayouts(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCasterLayoutsWithCallback invokes the live.DescribeCasterLayouts API asynchronously +// api document: https://help.aliyun.com/api/live/describecasterlayouts.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCasterLayoutsWithCallback(request *DescribeCasterLayoutsRequest, callback func(response *DescribeCasterLayoutsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCasterLayoutsResponse + var err error + defer close(result) + response, err = client.DescribeCasterLayouts(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCasterLayoutsRequest is the request struct for api DescribeCasterLayouts +type DescribeCasterLayoutsRequest struct { + *requests.RpcRequest + CasterId string `position:"Query" name:"CasterId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + LayoutId string `position:"Query" name:"LayoutId"` +} + +// DescribeCasterLayoutsResponse is the response struct for api DescribeCasterLayouts +type DescribeCasterLayoutsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Total int `json:"Total" xml:"Total"` + Layouts Layouts `json:"Layouts" xml:"Layouts"` +} + +// CreateDescribeCasterLayoutsRequest creates a request to invoke DescribeCasterLayouts API +func CreateDescribeCasterLayoutsRequest() (request *DescribeCasterLayoutsRequest) { + request = &DescribeCasterLayoutsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeCasterLayouts", "live", "openAPI") + return +} + +// CreateDescribeCasterLayoutsResponse creates a response to parse from DescribeCasterLayouts response +func CreateDescribeCasterLayoutsResponse() (response *DescribeCasterLayoutsResponse) { + response = &DescribeCasterLayoutsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_program.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_program.go new file mode 100644 index 0000000..ac5c995 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_program.go @@ -0,0 +1,116 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCasterProgram invokes the live.DescribeCasterProgram API synchronously +// api document: https://help.aliyun.com/api/live/describecasterprogram.html +func (client *Client) DescribeCasterProgram(request *DescribeCasterProgramRequest) (response *DescribeCasterProgramResponse, err error) { + response = CreateDescribeCasterProgramResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCasterProgramWithChan invokes the live.DescribeCasterProgram API asynchronously +// api document: https://help.aliyun.com/api/live/describecasterprogram.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCasterProgramWithChan(request *DescribeCasterProgramRequest) (<-chan *DescribeCasterProgramResponse, <-chan error) { + responseChan := make(chan *DescribeCasterProgramResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCasterProgram(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCasterProgramWithCallback invokes the live.DescribeCasterProgram API asynchronously +// api document: https://help.aliyun.com/api/live/describecasterprogram.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCasterProgramWithCallback(request *DescribeCasterProgramRequest, callback func(response *DescribeCasterProgramResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCasterProgramResponse + var err error + defer close(result) + response, err = client.DescribeCasterProgram(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCasterProgramRequest is the request struct for api DescribeCasterProgram +type DescribeCasterProgramRequest struct { + *requests.RpcRequest + CasterId string `position:"Query" name:"CasterId"` + EpisodeType string `position:"Query" name:"EpisodeType"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + EpisodeId string `position:"Query" name:"EpisodeId"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + Status requests.Integer `position:"Query" name:"Status"` +} + +// DescribeCasterProgramResponse is the response struct for api DescribeCasterProgram +type DescribeCasterProgramResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CasterId string `json:"CasterId" xml:"CasterId"` + ProgramName string `json:"ProgramName" xml:"ProgramName"` + ProgramEffect int `json:"ProgramEffect" xml:"ProgramEffect"` + Total int `json:"Total" xml:"Total"` + Episodes Episodes `json:"Episodes" xml:"Episodes"` +} + +// CreateDescribeCasterProgramRequest creates a request to invoke DescribeCasterProgram API +func CreateDescribeCasterProgramRequest() (request *DescribeCasterProgramRequest) { + request = &DescribeCasterProgramRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeCasterProgram", "live", "openAPI") + return +} + +// CreateDescribeCasterProgramResponse creates a response to parse from DescribeCasterProgram response +func CreateDescribeCasterProgramResponse() (response *DescribeCasterProgramResponse) { + response = &DescribeCasterProgramResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_rtc_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_rtc_info.go new file mode 100644 index 0000000..2a3b950 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_rtc_info.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCasterRtcInfo invokes the live.DescribeCasterRtcInfo API synchronously +// api document: https://help.aliyun.com/api/live/describecasterrtcinfo.html +func (client *Client) DescribeCasterRtcInfo(request *DescribeCasterRtcInfoRequest) (response *DescribeCasterRtcInfoResponse, err error) { + response = CreateDescribeCasterRtcInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCasterRtcInfoWithChan invokes the live.DescribeCasterRtcInfo API asynchronously +// api document: https://help.aliyun.com/api/live/describecasterrtcinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCasterRtcInfoWithChan(request *DescribeCasterRtcInfoRequest) (<-chan *DescribeCasterRtcInfoResponse, <-chan error) { + responseChan := make(chan *DescribeCasterRtcInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCasterRtcInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCasterRtcInfoWithCallback invokes the live.DescribeCasterRtcInfo API asynchronously +// api document: https://help.aliyun.com/api/live/describecasterrtcinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCasterRtcInfoWithCallback(request *DescribeCasterRtcInfoRequest, callback func(response *DescribeCasterRtcInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCasterRtcInfoResponse + var err error + defer close(result) + response, err = client.DescribeCasterRtcInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCasterRtcInfoRequest is the request struct for api DescribeCasterRtcInfo +type DescribeCasterRtcInfoRequest struct { + *requests.RpcRequest + CasterId string `position:"Query" name:"CasterId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeCasterRtcInfoResponse is the response struct for api DescribeCasterRtcInfo +type DescribeCasterRtcInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CasterId string `json:"CasterId" xml:"CasterId"` + AuthToken string `json:"AuthToken" xml:"AuthToken"` +} + +// CreateDescribeCasterRtcInfoRequest creates a request to invoke DescribeCasterRtcInfo API +func CreateDescribeCasterRtcInfoRequest() (request *DescribeCasterRtcInfoRequest) { + request = &DescribeCasterRtcInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeCasterRtcInfo", "live", "openAPI") + return +} + +// CreateDescribeCasterRtcInfoResponse creates a response to parse from DescribeCasterRtcInfo response +func CreateDescribeCasterRtcInfoResponse() (response *DescribeCasterRtcInfoResponse) { + response = &DescribeCasterRtcInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_scenes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_scenes.go new file mode 100644 index 0000000..3decf41 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_scenes.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCasterScenes invokes the live.DescribeCasterScenes API synchronously +// api document: https://help.aliyun.com/api/live/describecasterscenes.html +func (client *Client) DescribeCasterScenes(request *DescribeCasterScenesRequest) (response *DescribeCasterScenesResponse, err error) { + response = CreateDescribeCasterScenesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCasterScenesWithChan invokes the live.DescribeCasterScenes API asynchronously +// api document: https://help.aliyun.com/api/live/describecasterscenes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCasterScenesWithChan(request *DescribeCasterScenesRequest) (<-chan *DescribeCasterScenesResponse, <-chan error) { + responseChan := make(chan *DescribeCasterScenesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCasterScenes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCasterScenesWithCallback invokes the live.DescribeCasterScenes API asynchronously +// api document: https://help.aliyun.com/api/live/describecasterscenes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCasterScenesWithCallback(request *DescribeCasterScenesRequest, callback func(response *DescribeCasterScenesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCasterScenesResponse + var err error + defer close(result) + response, err = client.DescribeCasterScenes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCasterScenesRequest is the request struct for api DescribeCasterScenes +type DescribeCasterScenesRequest struct { + *requests.RpcRequest + CasterId string `position:"Query" name:"CasterId"` + SceneId string `position:"Query" name:"SceneId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeCasterScenesResponse is the response struct for api DescribeCasterScenes +type DescribeCasterScenesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Total int `json:"Total" xml:"Total"` + SceneList SceneList `json:"SceneList" xml:"SceneList"` +} + +// CreateDescribeCasterScenesRequest creates a request to invoke DescribeCasterScenes API +func CreateDescribeCasterScenesRequest() (request *DescribeCasterScenesRequest) { + request = &DescribeCasterScenesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeCasterScenes", "live", "openAPI") + return +} + +// CreateDescribeCasterScenesResponse creates a response to parse from DescribeCasterScenes response +func CreateDescribeCasterScenesResponse() (response *DescribeCasterScenesResponse) { + response = &DescribeCasterScenesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_stream_url.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_stream_url.go new file mode 100644 index 0000000..f73b574 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_stream_url.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCasterStreamUrl invokes the live.DescribeCasterStreamUrl API synchronously +// api document: https://help.aliyun.com/api/live/describecasterstreamurl.html +func (client *Client) DescribeCasterStreamUrl(request *DescribeCasterStreamUrlRequest) (response *DescribeCasterStreamUrlResponse, err error) { + response = CreateDescribeCasterStreamUrlResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCasterStreamUrlWithChan invokes the live.DescribeCasterStreamUrl API asynchronously +// api document: https://help.aliyun.com/api/live/describecasterstreamurl.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCasterStreamUrlWithChan(request *DescribeCasterStreamUrlRequest) (<-chan *DescribeCasterStreamUrlResponse, <-chan error) { + responseChan := make(chan *DescribeCasterStreamUrlResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCasterStreamUrl(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCasterStreamUrlWithCallback invokes the live.DescribeCasterStreamUrl API asynchronously +// api document: https://help.aliyun.com/api/live/describecasterstreamurl.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCasterStreamUrlWithCallback(request *DescribeCasterStreamUrlRequest, callback func(response *DescribeCasterStreamUrlResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCasterStreamUrlResponse + var err error + defer close(result) + response, err = client.DescribeCasterStreamUrl(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCasterStreamUrlRequest is the request struct for api DescribeCasterStreamUrl +type DescribeCasterStreamUrlRequest struct { + *requests.RpcRequest + CasterId string `position:"Query" name:"CasterId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeCasterStreamUrlResponse is the response struct for api DescribeCasterStreamUrl +type DescribeCasterStreamUrlResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CasterId string `json:"CasterId" xml:"CasterId"` + Total int `json:"Total" xml:"Total"` + CasterStreams CasterStreams `json:"CasterStreams" xml:"CasterStreams"` +} + +// CreateDescribeCasterStreamUrlRequest creates a request to invoke DescribeCasterStreamUrl API +func CreateDescribeCasterStreamUrlRequest() (request *DescribeCasterStreamUrlRequest) { + request = &DescribeCasterStreamUrlRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeCasterStreamUrl", "live", "openAPI") + return +} + +// CreateDescribeCasterStreamUrlResponse creates a response to parse from DescribeCasterStreamUrl response +func CreateDescribeCasterStreamUrlResponse() (response *DescribeCasterStreamUrlResponse) { + response = &DescribeCasterStreamUrlResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_video_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_video_resources.go new file mode 100644 index 0000000..b619192 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_caster_video_resources.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCasterVideoResources invokes the live.DescribeCasterVideoResources API synchronously +// api document: https://help.aliyun.com/api/live/describecastervideoresources.html +func (client *Client) DescribeCasterVideoResources(request *DescribeCasterVideoResourcesRequest) (response *DescribeCasterVideoResourcesResponse, err error) { + response = CreateDescribeCasterVideoResourcesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCasterVideoResourcesWithChan invokes the live.DescribeCasterVideoResources API asynchronously +// api document: https://help.aliyun.com/api/live/describecastervideoresources.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCasterVideoResourcesWithChan(request *DescribeCasterVideoResourcesRequest) (<-chan *DescribeCasterVideoResourcesResponse, <-chan error) { + responseChan := make(chan *DescribeCasterVideoResourcesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCasterVideoResources(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCasterVideoResourcesWithCallback invokes the live.DescribeCasterVideoResources API asynchronously +// api document: https://help.aliyun.com/api/live/describecastervideoresources.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCasterVideoResourcesWithCallback(request *DescribeCasterVideoResourcesRequest, callback func(response *DescribeCasterVideoResourcesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCasterVideoResourcesResponse + var err error + defer close(result) + response, err = client.DescribeCasterVideoResources(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCasterVideoResourcesRequest is the request struct for api DescribeCasterVideoResources +type DescribeCasterVideoResourcesRequest struct { + *requests.RpcRequest + CasterId string `position:"Query" name:"CasterId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeCasterVideoResourcesResponse is the response struct for api DescribeCasterVideoResources +type DescribeCasterVideoResourcesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Total int `json:"Total" xml:"Total"` + VideoResources VideoResources `json:"VideoResources" xml:"VideoResources"` +} + +// CreateDescribeCasterVideoResourcesRequest creates a request to invoke DescribeCasterVideoResources API +func CreateDescribeCasterVideoResourcesRequest() (request *DescribeCasterVideoResourcesRequest) { + request = &DescribeCasterVideoResourcesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeCasterVideoResources", "live", "openAPI") + return +} + +// CreateDescribeCasterVideoResourcesResponse creates a response to parse from DescribeCasterVideoResources response +func CreateDescribeCasterVideoResourcesResponse() (response *DescribeCasterVideoResourcesResponse) { + response = &DescribeCasterVideoResourcesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_casters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_casters.go new file mode 100644 index 0000000..dd73c7c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_casters.go @@ -0,0 +1,112 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCasters invokes the live.DescribeCasters API synchronously +// api document: https://help.aliyun.com/api/live/describecasters.html +func (client *Client) DescribeCasters(request *DescribeCastersRequest) (response *DescribeCastersResponse, err error) { + response = CreateDescribeCastersResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCastersWithChan invokes the live.DescribeCasters API asynchronously +// api document: https://help.aliyun.com/api/live/describecasters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCastersWithChan(request *DescribeCastersRequest) (<-chan *DescribeCastersResponse, <-chan error) { + responseChan := make(chan *DescribeCastersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCasters(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCastersWithCallback invokes the live.DescribeCasters API asynchronously +// api document: https://help.aliyun.com/api/live/describecasters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCastersWithCallback(request *DescribeCastersRequest, callback func(response *DescribeCastersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCastersResponse + var err error + defer close(result) + response, err = client.DescribeCasters(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCastersRequest is the request struct for api DescribeCasters +type DescribeCastersRequest struct { + *requests.RpcRequest + CasterName string `position:"Query" name:"CasterName"` + CasterId string `position:"Query" name:"CasterId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + Status requests.Integer `position:"Query" name:"Status"` +} + +// DescribeCastersResponse is the response struct for api DescribeCasters +type DescribeCastersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Total int `json:"Total" xml:"Total"` + CasterList CasterList `json:"CasterList" xml:"CasterList"` +} + +// CreateDescribeCastersRequest creates a request to invoke DescribeCasters API +func CreateDescribeCastersRequest() (request *DescribeCastersRequest) { + request = &DescribeCastersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeCasters", "live", "openAPI") + return +} + +// CreateDescribeCastersResponse creates a response to parse from DescribeCasters response +func CreateDescribeCastersResponse() (response *DescribeCastersResponse) { + response = &DescribeCastersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_detect_notify_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_detect_notify_config.go new file mode 100644 index 0000000..766c067 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_detect_notify_config.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveDetectNotifyConfig invokes the live.DescribeLiveDetectNotifyConfig API synchronously +// api document: https://help.aliyun.com/api/live/describelivedetectnotifyconfig.html +func (client *Client) DescribeLiveDetectNotifyConfig(request *DescribeLiveDetectNotifyConfigRequest) (response *DescribeLiveDetectNotifyConfigResponse, err error) { + response = CreateDescribeLiveDetectNotifyConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveDetectNotifyConfigWithChan invokes the live.DescribeLiveDetectNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describelivedetectnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveDetectNotifyConfigWithChan(request *DescribeLiveDetectNotifyConfigRequest) (<-chan *DescribeLiveDetectNotifyConfigResponse, <-chan error) { + responseChan := make(chan *DescribeLiveDetectNotifyConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveDetectNotifyConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveDetectNotifyConfigWithCallback invokes the live.DescribeLiveDetectNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describelivedetectnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveDetectNotifyConfigWithCallback(request *DescribeLiveDetectNotifyConfigRequest, callback func(response *DescribeLiveDetectNotifyConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveDetectNotifyConfigResponse + var err error + defer close(result) + response, err = client.DescribeLiveDetectNotifyConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveDetectNotifyConfigRequest is the request struct for api DescribeLiveDetectNotifyConfig +type DescribeLiveDetectNotifyConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveDetectNotifyConfigResponse is the response struct for api DescribeLiveDetectNotifyConfig +type DescribeLiveDetectNotifyConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LiveDetectNotifyConfig LiveDetectNotifyConfig `json:"LiveDetectNotifyConfig" xml:"LiveDetectNotifyConfig"` +} + +// CreateDescribeLiveDetectNotifyConfigRequest creates a request to invoke DescribeLiveDetectNotifyConfig API +func CreateDescribeLiveDetectNotifyConfigRequest() (request *DescribeLiveDetectNotifyConfigRequest) { + request = &DescribeLiveDetectNotifyConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveDetectNotifyConfig", "live", "openAPI") + return +} + +// CreateDescribeLiveDetectNotifyConfigResponse creates a response to parse from DescribeLiveDetectNotifyConfig response +func CreateDescribeLiveDetectNotifyConfigResponse() (response *DescribeLiveDetectNotifyConfigResponse) { + response = &DescribeLiveDetectNotifyConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_domain_record_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_domain_record_data.go new file mode 100644 index 0000000..3da7d45 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_domain_record_data.go @@ -0,0 +1,108 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveDomainRecordData invokes the live.DescribeLiveDomainRecordData API synchronously +// api document: https://help.aliyun.com/api/live/describelivedomainrecorddata.html +func (client *Client) DescribeLiveDomainRecordData(request *DescribeLiveDomainRecordDataRequest) (response *DescribeLiveDomainRecordDataResponse, err error) { + response = CreateDescribeLiveDomainRecordDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveDomainRecordDataWithChan invokes the live.DescribeLiveDomainRecordData API asynchronously +// api document: https://help.aliyun.com/api/live/describelivedomainrecorddata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveDomainRecordDataWithChan(request *DescribeLiveDomainRecordDataRequest) (<-chan *DescribeLiveDomainRecordDataResponse, <-chan error) { + responseChan := make(chan *DescribeLiveDomainRecordDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveDomainRecordData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveDomainRecordDataWithCallback invokes the live.DescribeLiveDomainRecordData API asynchronously +// api document: https://help.aliyun.com/api/live/describelivedomainrecorddata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveDomainRecordDataWithCallback(request *DescribeLiveDomainRecordDataRequest, callback func(response *DescribeLiveDomainRecordDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveDomainRecordDataResponse + var err error + defer close(result) + response, err = client.DescribeLiveDomainRecordData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveDomainRecordDataRequest is the request struct for api DescribeLiveDomainRecordData +type DescribeLiveDomainRecordDataRequest struct { + *requests.RpcRequest + RecordType string `position:"Query" name:"RecordType"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveDomainRecordDataResponse is the response struct for api DescribeLiveDomainRecordData +type DescribeLiveDomainRecordDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RecordDataInfos RecordDataInfos `json:"RecordDataInfos" xml:"RecordDataInfos"` +} + +// CreateDescribeLiveDomainRecordDataRequest creates a request to invoke DescribeLiveDomainRecordData API +func CreateDescribeLiveDomainRecordDataRequest() (request *DescribeLiveDomainRecordDataRequest) { + request = &DescribeLiveDomainRecordDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveDomainRecordData", "live", "openAPI") + return +} + +// CreateDescribeLiveDomainRecordDataResponse creates a response to parse from DescribeLiveDomainRecordData response +func CreateDescribeLiveDomainRecordDataResponse() (response *DescribeLiveDomainRecordDataResponse) { + response = &DescribeLiveDomainRecordDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_domain_snapshot_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_domain_snapshot_data.go new file mode 100644 index 0000000..8ec34eb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_domain_snapshot_data.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveDomainSnapshotData invokes the live.DescribeLiveDomainSnapshotData API synchronously +// api document: https://help.aliyun.com/api/live/describelivedomainsnapshotdata.html +func (client *Client) DescribeLiveDomainSnapshotData(request *DescribeLiveDomainSnapshotDataRequest) (response *DescribeLiveDomainSnapshotDataResponse, err error) { + response = CreateDescribeLiveDomainSnapshotDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveDomainSnapshotDataWithChan invokes the live.DescribeLiveDomainSnapshotData API asynchronously +// api document: https://help.aliyun.com/api/live/describelivedomainsnapshotdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveDomainSnapshotDataWithChan(request *DescribeLiveDomainSnapshotDataRequest) (<-chan *DescribeLiveDomainSnapshotDataResponse, <-chan error) { + responseChan := make(chan *DescribeLiveDomainSnapshotDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveDomainSnapshotData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveDomainSnapshotDataWithCallback invokes the live.DescribeLiveDomainSnapshotData API asynchronously +// api document: https://help.aliyun.com/api/live/describelivedomainsnapshotdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveDomainSnapshotDataWithCallback(request *DescribeLiveDomainSnapshotDataRequest, callback func(response *DescribeLiveDomainSnapshotDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveDomainSnapshotDataResponse + var err error + defer close(result) + response, err = client.DescribeLiveDomainSnapshotData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveDomainSnapshotDataRequest is the request struct for api DescribeLiveDomainSnapshotData +type DescribeLiveDomainSnapshotDataRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveDomainSnapshotDataResponse is the response struct for api DescribeLiveDomainSnapshotData +type DescribeLiveDomainSnapshotDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SnapshotDataInfos SnapshotDataInfos `json:"SnapshotDataInfos" xml:"SnapshotDataInfos"` +} + +// CreateDescribeLiveDomainSnapshotDataRequest creates a request to invoke DescribeLiveDomainSnapshotData API +func CreateDescribeLiveDomainSnapshotDataRequest() (request *DescribeLiveDomainSnapshotDataRequest) { + request = &DescribeLiveDomainSnapshotDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveDomainSnapshotData", "live", "openAPI") + return +} + +// CreateDescribeLiveDomainSnapshotDataResponse creates a response to parse from DescribeLiveDomainSnapshotData response +func CreateDescribeLiveDomainSnapshotDataResponse() (response *DescribeLiveDomainSnapshotDataResponse) { + response = &DescribeLiveDomainSnapshotDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_domain_transcode_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_domain_transcode_data.go new file mode 100644 index 0000000..c459dcb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_domain_transcode_data.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveDomainTranscodeData invokes the live.DescribeLiveDomainTranscodeData API synchronously +// api document: https://help.aliyun.com/api/live/describelivedomaintranscodedata.html +func (client *Client) DescribeLiveDomainTranscodeData(request *DescribeLiveDomainTranscodeDataRequest) (response *DescribeLiveDomainTranscodeDataResponse, err error) { + response = CreateDescribeLiveDomainTranscodeDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveDomainTranscodeDataWithChan invokes the live.DescribeLiveDomainTranscodeData API asynchronously +// api document: https://help.aliyun.com/api/live/describelivedomaintranscodedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveDomainTranscodeDataWithChan(request *DescribeLiveDomainTranscodeDataRequest) (<-chan *DescribeLiveDomainTranscodeDataResponse, <-chan error) { + responseChan := make(chan *DescribeLiveDomainTranscodeDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveDomainTranscodeData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveDomainTranscodeDataWithCallback invokes the live.DescribeLiveDomainTranscodeData API asynchronously +// api document: https://help.aliyun.com/api/live/describelivedomaintranscodedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveDomainTranscodeDataWithCallback(request *DescribeLiveDomainTranscodeDataRequest, callback func(response *DescribeLiveDomainTranscodeDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveDomainTranscodeDataResponse + var err error + defer close(result) + response, err = client.DescribeLiveDomainTranscodeData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveDomainTranscodeDataRequest is the request struct for api DescribeLiveDomainTranscodeData +type DescribeLiveDomainTranscodeDataRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveDomainTranscodeDataResponse is the response struct for api DescribeLiveDomainTranscodeData +type DescribeLiveDomainTranscodeDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TranscodeDataInfos TranscodeDataInfos `json:"TranscodeDataInfos" xml:"TranscodeDataInfos"` +} + +// CreateDescribeLiveDomainTranscodeDataRequest creates a request to invoke DescribeLiveDomainTranscodeData API +func CreateDescribeLiveDomainTranscodeDataRequest() (request *DescribeLiveDomainTranscodeDataRequest) { + request = &DescribeLiveDomainTranscodeDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveDomainTranscodeData", "live", "openAPI") + return +} + +// CreateDescribeLiveDomainTranscodeDataResponse creates a response to parse from DescribeLiveDomainTranscodeData response +func CreateDescribeLiveDomainTranscodeDataResponse() (response *DescribeLiveDomainTranscodeDataResponse) { + response = &DescribeLiveDomainTranscodeDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_mix_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_mix_config.go new file mode 100644 index 0000000..7cb1693 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_mix_config.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveMixConfig invokes the live.DescribeLiveMixConfig API synchronously +// api document: https://help.aliyun.com/api/live/describelivemixconfig.html +func (client *Client) DescribeLiveMixConfig(request *DescribeLiveMixConfigRequest) (response *DescribeLiveMixConfigResponse, err error) { + response = CreateDescribeLiveMixConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveMixConfigWithChan invokes the live.DescribeLiveMixConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describelivemixconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveMixConfigWithChan(request *DescribeLiveMixConfigRequest) (<-chan *DescribeLiveMixConfigResponse, <-chan error) { + responseChan := make(chan *DescribeLiveMixConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveMixConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveMixConfigWithCallback invokes the live.DescribeLiveMixConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describelivemixconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveMixConfigWithCallback(request *DescribeLiveMixConfigRequest, callback func(response *DescribeLiveMixConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveMixConfigResponse + var err error + defer close(result) + response, err = client.DescribeLiveMixConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveMixConfigRequest is the request struct for api DescribeLiveMixConfig +type DescribeLiveMixConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveMixConfigResponse is the response struct for api DescribeLiveMixConfig +type DescribeLiveMixConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MixConfigList MixConfigList `json:"MixConfigList" xml:"MixConfigList"` +} + +// CreateDescribeLiveMixConfigRequest creates a request to invoke DescribeLiveMixConfig API +func CreateDescribeLiveMixConfigRequest() (request *DescribeLiveMixConfigRequest) { + request = &DescribeLiveMixConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveMixConfig", "live", "openAPI") + return +} + +// CreateDescribeLiveMixConfigResponse creates a response to parse from DescribeLiveMixConfig response +func CreateDescribeLiveMixConfigResponse() (response *DescribeLiveMixConfigResponse) { + response = &DescribeLiveMixConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_mix_notify_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_mix_notify_config.go new file mode 100644 index 0000000..f878024 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_mix_notify_config.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveMixNotifyConfig invokes the live.DescribeLiveMixNotifyConfig API synchronously +// api document: https://help.aliyun.com/api/live/describelivemixnotifyconfig.html +func (client *Client) DescribeLiveMixNotifyConfig(request *DescribeLiveMixNotifyConfigRequest) (response *DescribeLiveMixNotifyConfigResponse, err error) { + response = CreateDescribeLiveMixNotifyConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveMixNotifyConfigWithChan invokes the live.DescribeLiveMixNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describelivemixnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveMixNotifyConfigWithChan(request *DescribeLiveMixNotifyConfigRequest) (<-chan *DescribeLiveMixNotifyConfigResponse, <-chan error) { + responseChan := make(chan *DescribeLiveMixNotifyConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveMixNotifyConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveMixNotifyConfigWithCallback invokes the live.DescribeLiveMixNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describelivemixnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveMixNotifyConfigWithCallback(request *DescribeLiveMixNotifyConfigRequest, callback func(response *DescribeLiveMixNotifyConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveMixNotifyConfigResponse + var err error + defer close(result) + response, err = client.DescribeLiveMixNotifyConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveMixNotifyConfigRequest is the request struct for api DescribeLiveMixNotifyConfig +type DescribeLiveMixNotifyConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveMixNotifyConfigResponse is the response struct for api DescribeLiveMixNotifyConfig +type DescribeLiveMixNotifyConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NotifyUrl string `json:"NotifyUrl" xml:"NotifyUrl"` +} + +// CreateDescribeLiveMixNotifyConfigRequest creates a request to invoke DescribeLiveMixNotifyConfig API +func CreateDescribeLiveMixNotifyConfigRequest() (request *DescribeLiveMixNotifyConfigRequest) { + request = &DescribeLiveMixNotifyConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveMixNotifyConfig", "live", "openAPI") + return +} + +// CreateDescribeLiveMixNotifyConfigResponse creates a response to parse from DescribeLiveMixNotifyConfig response +func CreateDescribeLiveMixNotifyConfigResponse() (response *DescribeLiveMixNotifyConfigResponse) { + response = &DescribeLiveMixNotifyConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_pull_stream_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_pull_stream_config.go new file mode 100644 index 0000000..ecaf9f6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_pull_stream_config.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLivePullStreamConfig invokes the live.DescribeLivePullStreamConfig API synchronously +// api document: https://help.aliyun.com/api/live/describelivepullstreamconfig.html +func (client *Client) DescribeLivePullStreamConfig(request *DescribeLivePullStreamConfigRequest) (response *DescribeLivePullStreamConfigResponse, err error) { + response = CreateDescribeLivePullStreamConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLivePullStreamConfigWithChan invokes the live.DescribeLivePullStreamConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describelivepullstreamconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLivePullStreamConfigWithChan(request *DescribeLivePullStreamConfigRequest) (<-chan *DescribeLivePullStreamConfigResponse, <-chan error) { + responseChan := make(chan *DescribeLivePullStreamConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLivePullStreamConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLivePullStreamConfigWithCallback invokes the live.DescribeLivePullStreamConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describelivepullstreamconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLivePullStreamConfigWithCallback(request *DescribeLivePullStreamConfigRequest, callback func(response *DescribeLivePullStreamConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLivePullStreamConfigResponse + var err error + defer close(result) + response, err = client.DescribeLivePullStreamConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLivePullStreamConfigRequest is the request struct for api DescribeLivePullStreamConfig +type DescribeLivePullStreamConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLivePullStreamConfigResponse is the response struct for api DescribeLivePullStreamConfig +type DescribeLivePullStreamConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LiveAppRecordList LiveAppRecordListInDescribeLivePullStreamConfig `json:"LiveAppRecordList" xml:"LiveAppRecordList"` +} + +// CreateDescribeLivePullStreamConfigRequest creates a request to invoke DescribeLivePullStreamConfig API +func CreateDescribeLivePullStreamConfigRequest() (request *DescribeLivePullStreamConfigRequest) { + request = &DescribeLivePullStreamConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLivePullStreamConfig", "live", "openAPI") + return +} + +// CreateDescribeLivePullStreamConfigResponse creates a response to parse from DescribeLivePullStreamConfig response +func CreateDescribeLivePullStreamConfigResponse() (response *DescribeLivePullStreamConfigResponse) { + response = &DescribeLivePullStreamConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_record_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_record_config.go new file mode 100644 index 0000000..c35f1e5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_record_config.go @@ -0,0 +1,116 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveRecordConfig invokes the live.DescribeLiveRecordConfig API synchronously +// api document: https://help.aliyun.com/api/live/describeliverecordconfig.html +func (client *Client) DescribeLiveRecordConfig(request *DescribeLiveRecordConfigRequest) (response *DescribeLiveRecordConfigResponse, err error) { + response = CreateDescribeLiveRecordConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveRecordConfigWithChan invokes the live.DescribeLiveRecordConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describeliverecordconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveRecordConfigWithChan(request *DescribeLiveRecordConfigRequest) (<-chan *DescribeLiveRecordConfigResponse, <-chan error) { + responseChan := make(chan *DescribeLiveRecordConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveRecordConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveRecordConfigWithCallback invokes the live.DescribeLiveRecordConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describeliverecordconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveRecordConfigWithCallback(request *DescribeLiveRecordConfigRequest, callback func(response *DescribeLiveRecordConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveRecordConfigResponse + var err error + defer close(result) + response, err = client.DescribeLiveRecordConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveRecordConfigRequest is the request struct for api DescribeLiveRecordConfig +type DescribeLiveRecordConfigRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + StreamName string `position:"Query" name:"StreamName"` + Order string `position:"Query" name:"Order"` +} + +// DescribeLiveRecordConfigResponse is the response struct for api DescribeLiveRecordConfig +type DescribeLiveRecordConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNum int `json:"PageNum" xml:"PageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + Order string `json:"Order" xml:"Order"` + TotalNum int `json:"TotalNum" xml:"TotalNum"` + TotalPage int `json:"TotalPage" xml:"TotalPage"` + LiveAppRecordList LiveAppRecordListInDescribeLiveRecordConfig `json:"LiveAppRecordList" xml:"LiveAppRecordList"` +} + +// CreateDescribeLiveRecordConfigRequest creates a request to invoke DescribeLiveRecordConfig API +func CreateDescribeLiveRecordConfigRequest() (request *DescribeLiveRecordConfigRequest) { + request = &DescribeLiveRecordConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveRecordConfig", "live", "openAPI") + return +} + +// CreateDescribeLiveRecordConfigResponse creates a response to parse from DescribeLiveRecordConfig response +func CreateDescribeLiveRecordConfigResponse() (response *DescribeLiveRecordConfigResponse) { + response = &DescribeLiveRecordConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_record_notify_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_record_notify_config.go new file mode 100644 index 0000000..c6ba241 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_record_notify_config.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveRecordNotifyConfig invokes the live.DescribeLiveRecordNotifyConfig API synchronously +// api document: https://help.aliyun.com/api/live/describeliverecordnotifyconfig.html +func (client *Client) DescribeLiveRecordNotifyConfig(request *DescribeLiveRecordNotifyConfigRequest) (response *DescribeLiveRecordNotifyConfigResponse, err error) { + response = CreateDescribeLiveRecordNotifyConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveRecordNotifyConfigWithChan invokes the live.DescribeLiveRecordNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describeliverecordnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveRecordNotifyConfigWithChan(request *DescribeLiveRecordNotifyConfigRequest) (<-chan *DescribeLiveRecordNotifyConfigResponse, <-chan error) { + responseChan := make(chan *DescribeLiveRecordNotifyConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveRecordNotifyConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveRecordNotifyConfigWithCallback invokes the live.DescribeLiveRecordNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describeliverecordnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveRecordNotifyConfigWithCallback(request *DescribeLiveRecordNotifyConfigRequest, callback func(response *DescribeLiveRecordNotifyConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveRecordNotifyConfigResponse + var err error + defer close(result) + response, err = client.DescribeLiveRecordNotifyConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveRecordNotifyConfigRequest is the request struct for api DescribeLiveRecordNotifyConfig +type DescribeLiveRecordNotifyConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveRecordNotifyConfigResponse is the response struct for api DescribeLiveRecordNotifyConfig +type DescribeLiveRecordNotifyConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LiveRecordNotifyConfig LiveRecordNotifyConfig `json:"LiveRecordNotifyConfig" xml:"LiveRecordNotifyConfig"` +} + +// CreateDescribeLiveRecordNotifyConfigRequest creates a request to invoke DescribeLiveRecordNotifyConfig API +func CreateDescribeLiveRecordNotifyConfigRequest() (request *DescribeLiveRecordNotifyConfigRequest) { + request = &DescribeLiveRecordNotifyConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveRecordNotifyConfig", "live", "openAPI") + return +} + +// CreateDescribeLiveRecordNotifyConfigResponse creates a response to parse from DescribeLiveRecordNotifyConfig response +func CreateDescribeLiveRecordNotifyConfigResponse() (response *DescribeLiveRecordNotifyConfigResponse) { + response = &DescribeLiveRecordNotifyConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_record_vod_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_record_vod_configs.go new file mode 100644 index 0000000..1d3a5af --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_record_vod_configs.go @@ -0,0 +1,112 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveRecordVodConfigs invokes the live.DescribeLiveRecordVodConfigs API synchronously +// api document: https://help.aliyun.com/api/live/describeliverecordvodconfigs.html +func (client *Client) DescribeLiveRecordVodConfigs(request *DescribeLiveRecordVodConfigsRequest) (response *DescribeLiveRecordVodConfigsResponse, err error) { + response = CreateDescribeLiveRecordVodConfigsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveRecordVodConfigsWithChan invokes the live.DescribeLiveRecordVodConfigs API asynchronously +// api document: https://help.aliyun.com/api/live/describeliverecordvodconfigs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveRecordVodConfigsWithChan(request *DescribeLiveRecordVodConfigsRequest) (<-chan *DescribeLiveRecordVodConfigsResponse, <-chan error) { + responseChan := make(chan *DescribeLiveRecordVodConfigsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveRecordVodConfigs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveRecordVodConfigsWithCallback invokes the live.DescribeLiveRecordVodConfigs API asynchronously +// api document: https://help.aliyun.com/api/live/describeliverecordvodconfigs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveRecordVodConfigsWithCallback(request *DescribeLiveRecordVodConfigsRequest, callback func(response *DescribeLiveRecordVodConfigsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveRecordVodConfigsResponse + var err error + defer close(result) + response, err = client.DescribeLiveRecordVodConfigs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveRecordVodConfigsRequest is the request struct for api DescribeLiveRecordVodConfigs +type DescribeLiveRecordVodConfigsRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + DomainName string `position:"Query" name:"DomainName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveRecordVodConfigsResponse is the response struct for api DescribeLiveRecordVodConfigs +type DescribeLiveRecordVodConfigsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNum int `json:"PageNum" xml:"PageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + Total string `json:"Total" xml:"Total"` + LiveRecordVodConfigs LiveRecordVodConfigs `json:"LiveRecordVodConfigs" xml:"LiveRecordVodConfigs"` +} + +// CreateDescribeLiveRecordVodConfigsRequest creates a request to invoke DescribeLiveRecordVodConfigs API +func CreateDescribeLiveRecordVodConfigsRequest() (request *DescribeLiveRecordVodConfigsRequest) { + request = &DescribeLiveRecordVodConfigsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveRecordVodConfigs", "live", "openAPI") + return +} + +// CreateDescribeLiveRecordVodConfigsResponse creates a response to parse from DescribeLiveRecordVodConfigs response +func CreateDescribeLiveRecordVodConfigsResponse() (response *DescribeLiveRecordVodConfigsResponse) { + response = &DescribeLiveRecordVodConfigsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_snapshot_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_snapshot_config.go new file mode 100644 index 0000000..65a08aa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_snapshot_config.go @@ -0,0 +1,115 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveSnapshotConfig invokes the live.DescribeLiveSnapshotConfig API synchronously +// api document: https://help.aliyun.com/api/live/describelivesnapshotconfig.html +func (client *Client) DescribeLiveSnapshotConfig(request *DescribeLiveSnapshotConfigRequest) (response *DescribeLiveSnapshotConfigResponse, err error) { + response = CreateDescribeLiveSnapshotConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveSnapshotConfigWithChan invokes the live.DescribeLiveSnapshotConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describelivesnapshotconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveSnapshotConfigWithChan(request *DescribeLiveSnapshotConfigRequest) (<-chan *DescribeLiveSnapshotConfigResponse, <-chan error) { + responseChan := make(chan *DescribeLiveSnapshotConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveSnapshotConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveSnapshotConfigWithCallback invokes the live.DescribeLiveSnapshotConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describelivesnapshotconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveSnapshotConfigWithCallback(request *DescribeLiveSnapshotConfigRequest, callback func(response *DescribeLiveSnapshotConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveSnapshotConfigResponse + var err error + defer close(result) + response, err = client.DescribeLiveSnapshotConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveSnapshotConfigRequest is the request struct for api DescribeLiveSnapshotConfig +type DescribeLiveSnapshotConfigRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + Order string `position:"Query" name:"Order"` +} + +// DescribeLiveSnapshotConfigResponse is the response struct for api DescribeLiveSnapshotConfig +type DescribeLiveSnapshotConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNum int `json:"PageNum" xml:"PageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + Order string `json:"Order" xml:"Order"` + TotalNum int `json:"TotalNum" xml:"TotalNum"` + TotalPage int `json:"TotalPage" xml:"TotalPage"` + LiveStreamSnapshotConfigList LiveStreamSnapshotConfigList `json:"LiveStreamSnapshotConfigList" xml:"LiveStreamSnapshotConfigList"` +} + +// CreateDescribeLiveSnapshotConfigRequest creates a request to invoke DescribeLiveSnapshotConfig API +func CreateDescribeLiveSnapshotConfigRequest() (request *DescribeLiveSnapshotConfigRequest) { + request = &DescribeLiveSnapshotConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveSnapshotConfig", "live", "openAPI") + return +} + +// CreateDescribeLiveSnapshotConfigResponse creates a response to parse from DescribeLiveSnapshotConfig response +func CreateDescribeLiveSnapshotConfigResponse() (response *DescribeLiveSnapshotConfigResponse) { + response = &DescribeLiveSnapshotConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_snapshot_detect_porn_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_snapshot_detect_porn_config.go new file mode 100644 index 0000000..9ef8822 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_snapshot_detect_porn_config.go @@ -0,0 +1,115 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveSnapshotDetectPornConfig invokes the live.DescribeLiveSnapshotDetectPornConfig API synchronously +// api document: https://help.aliyun.com/api/live/describelivesnapshotdetectpornconfig.html +func (client *Client) DescribeLiveSnapshotDetectPornConfig(request *DescribeLiveSnapshotDetectPornConfigRequest) (response *DescribeLiveSnapshotDetectPornConfigResponse, err error) { + response = CreateDescribeLiveSnapshotDetectPornConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveSnapshotDetectPornConfigWithChan invokes the live.DescribeLiveSnapshotDetectPornConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describelivesnapshotdetectpornconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveSnapshotDetectPornConfigWithChan(request *DescribeLiveSnapshotDetectPornConfigRequest) (<-chan *DescribeLiveSnapshotDetectPornConfigResponse, <-chan error) { + responseChan := make(chan *DescribeLiveSnapshotDetectPornConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveSnapshotDetectPornConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveSnapshotDetectPornConfigWithCallback invokes the live.DescribeLiveSnapshotDetectPornConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describelivesnapshotdetectpornconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveSnapshotDetectPornConfigWithCallback(request *DescribeLiveSnapshotDetectPornConfigRequest, callback func(response *DescribeLiveSnapshotDetectPornConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveSnapshotDetectPornConfigResponse + var err error + defer close(result) + response, err = client.DescribeLiveSnapshotDetectPornConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveSnapshotDetectPornConfigRequest is the request struct for api DescribeLiveSnapshotDetectPornConfig +type DescribeLiveSnapshotDetectPornConfigRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + Order string `position:"Query" name:"Order"` +} + +// DescribeLiveSnapshotDetectPornConfigResponse is the response struct for api DescribeLiveSnapshotDetectPornConfig +type DescribeLiveSnapshotDetectPornConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNum int `json:"PageNum" xml:"PageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + Order string `json:"Order" xml:"Order"` + TotalNum int `json:"TotalNum" xml:"TotalNum"` + TotalPage int `json:"TotalPage" xml:"TotalPage"` + LiveSnapshotDetectPornConfigList LiveSnapshotDetectPornConfigList `json:"LiveSnapshotDetectPornConfigList" xml:"LiveSnapshotDetectPornConfigList"` +} + +// CreateDescribeLiveSnapshotDetectPornConfigRequest creates a request to invoke DescribeLiveSnapshotDetectPornConfig API +func CreateDescribeLiveSnapshotDetectPornConfigRequest() (request *DescribeLiveSnapshotDetectPornConfigRequest) { + request = &DescribeLiveSnapshotDetectPornConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveSnapshotDetectPornConfig", "live", "openAPI") + return +} + +// CreateDescribeLiveSnapshotDetectPornConfigResponse creates a response to parse from DescribeLiveSnapshotDetectPornConfig response +func CreateDescribeLiveSnapshotDetectPornConfigResponse() (response *DescribeLiveSnapshotDetectPornConfigResponse) { + response = &DescribeLiveSnapshotDetectPornConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_bit_rate_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_bit_rate_data.go new file mode 100644 index 0000000..26c3884 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_bit_rate_data.go @@ -0,0 +1,110 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamBitRateData invokes the live.DescribeLiveStreamBitRateData API synchronously +// api document: https://help.aliyun.com/api/live/describelivestreambitratedata.html +func (client *Client) DescribeLiveStreamBitRateData(request *DescribeLiveStreamBitRateDataRequest) (response *DescribeLiveStreamBitRateDataResponse, err error) { + response = CreateDescribeLiveStreamBitRateDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamBitRateDataWithChan invokes the live.DescribeLiveStreamBitRateData API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreambitratedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamBitRateDataWithChan(request *DescribeLiveStreamBitRateDataRequest) (<-chan *DescribeLiveStreamBitRateDataResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamBitRateDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamBitRateData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamBitRateDataWithCallback invokes the live.DescribeLiveStreamBitRateData API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreambitratedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamBitRateDataWithCallback(request *DescribeLiveStreamBitRateDataRequest, callback func(response *DescribeLiveStreamBitRateDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamBitRateDataResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamBitRateData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamBitRateDataRequest is the request struct for api DescribeLiveStreamBitRateData +type DescribeLiveStreamBitRateDataRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveStreamBitRateDataResponse is the response struct for api DescribeLiveStreamBitRateData +type DescribeLiveStreamBitRateDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + FrameRateAndBitRateInfos FrameRateAndBitRateInfosInDescribeLiveStreamBitRateData `json:"FrameRateAndBitRateInfos" xml:"FrameRateAndBitRateInfos"` +} + +// CreateDescribeLiveStreamBitRateDataRequest creates a request to invoke DescribeLiveStreamBitRateData API +func CreateDescribeLiveStreamBitRateDataRequest() (request *DescribeLiveStreamBitRateDataRequest) { + request = &DescribeLiveStreamBitRateDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveStreamBitRateData", "live", "openAPI") + return +} + +// CreateDescribeLiveStreamBitRateDataResponse creates a response to parse from DescribeLiveStreamBitRateData response +func CreateDescribeLiveStreamBitRateDataResponse() (response *DescribeLiveStreamBitRateDataResponse) { + response = &DescribeLiveStreamBitRateDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_history_user_num.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_history_user_num.go new file mode 100644 index 0000000..dc31ca9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_history_user_num.go @@ -0,0 +1,110 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamHistoryUserNum invokes the live.DescribeLiveStreamHistoryUserNum API synchronously +// api document: https://help.aliyun.com/api/live/describelivestreamhistoryusernum.html +func (client *Client) DescribeLiveStreamHistoryUserNum(request *DescribeLiveStreamHistoryUserNumRequest) (response *DescribeLiveStreamHistoryUserNumResponse, err error) { + response = CreateDescribeLiveStreamHistoryUserNumResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamHistoryUserNumWithChan invokes the live.DescribeLiveStreamHistoryUserNum API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamhistoryusernum.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamHistoryUserNumWithChan(request *DescribeLiveStreamHistoryUserNumRequest) (<-chan *DescribeLiveStreamHistoryUserNumResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamHistoryUserNumResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamHistoryUserNum(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamHistoryUserNumWithCallback invokes the live.DescribeLiveStreamHistoryUserNum API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamhistoryusernum.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamHistoryUserNumWithCallback(request *DescribeLiveStreamHistoryUserNumRequest, callback func(response *DescribeLiveStreamHistoryUserNumResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamHistoryUserNumResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamHistoryUserNum(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamHistoryUserNumRequest is the request struct for api DescribeLiveStreamHistoryUserNum +type DescribeLiveStreamHistoryUserNumRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveStreamHistoryUserNumResponse is the response struct for api DescribeLiveStreamHistoryUserNum +type DescribeLiveStreamHistoryUserNumResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LiveStreamUserNumInfos LiveStreamUserNumInfos `json:"LiveStreamUserNumInfos" xml:"LiveStreamUserNumInfos"` +} + +// CreateDescribeLiveStreamHistoryUserNumRequest creates a request to invoke DescribeLiveStreamHistoryUserNum API +func CreateDescribeLiveStreamHistoryUserNumRequest() (request *DescribeLiveStreamHistoryUserNumRequest) { + request = &DescribeLiveStreamHistoryUserNumRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveStreamHistoryUserNum", "live", "openAPI") + return +} + +// CreateDescribeLiveStreamHistoryUserNumResponse creates a response to parse from DescribeLiveStreamHistoryUserNum response +func CreateDescribeLiveStreamHistoryUserNumResponse() (response *DescribeLiveStreamHistoryUserNumResponse) { + response = &DescribeLiveStreamHistoryUserNumResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_online_user_num.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_online_user_num.go new file mode 100644 index 0000000..79169e9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_online_user_num.go @@ -0,0 +1,112 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamOnlineUserNum invokes the live.DescribeLiveStreamOnlineUserNum API synchronously +// api document: https://help.aliyun.com/api/live/describelivestreamonlineusernum.html +func (client *Client) DescribeLiveStreamOnlineUserNum(request *DescribeLiveStreamOnlineUserNumRequest) (response *DescribeLiveStreamOnlineUserNumResponse, err error) { + response = CreateDescribeLiveStreamOnlineUserNumResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamOnlineUserNumWithChan invokes the live.DescribeLiveStreamOnlineUserNum API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamonlineusernum.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamOnlineUserNumWithChan(request *DescribeLiveStreamOnlineUserNumRequest) (<-chan *DescribeLiveStreamOnlineUserNumResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamOnlineUserNumResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamOnlineUserNum(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamOnlineUserNumWithCallback invokes the live.DescribeLiveStreamOnlineUserNum API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamonlineusernum.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamOnlineUserNumWithCallback(request *DescribeLiveStreamOnlineUserNumRequest, callback func(response *DescribeLiveStreamOnlineUserNumResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamOnlineUserNumResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamOnlineUserNum(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamOnlineUserNumRequest is the request struct for api DescribeLiveStreamOnlineUserNum +type DescribeLiveStreamOnlineUserNumRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + HlsSwitch string `position:"Query" name:"HlsSwitch"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveStreamOnlineUserNumResponse is the response struct for api DescribeLiveStreamOnlineUserNum +type DescribeLiveStreamOnlineUserNumResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalUserNumber int `json:"TotalUserNumber" xml:"TotalUserNumber"` + OnlineUserInfo OnlineUserInfo `json:"OnlineUserInfo" xml:"OnlineUserInfo"` +} + +// CreateDescribeLiveStreamOnlineUserNumRequest creates a request to invoke DescribeLiveStreamOnlineUserNum API +func CreateDescribeLiveStreamOnlineUserNumRequest() (request *DescribeLiveStreamOnlineUserNumRequest) { + request = &DescribeLiveStreamOnlineUserNumRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveStreamOnlineUserNum", "live", "openAPI") + return +} + +// CreateDescribeLiveStreamOnlineUserNumResponse creates a response to parse from DescribeLiveStreamOnlineUserNum response +func CreateDescribeLiveStreamOnlineUserNumResponse() (response *DescribeLiveStreamOnlineUserNumResponse) { + response = &DescribeLiveStreamOnlineUserNumResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_record_content.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_record_content.go new file mode 100644 index 0000000..d77c231 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_record_content.go @@ -0,0 +1,110 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamRecordContent invokes the live.DescribeLiveStreamRecordContent API synchronously +// api document: https://help.aliyun.com/api/live/describelivestreamrecordcontent.html +func (client *Client) DescribeLiveStreamRecordContent(request *DescribeLiveStreamRecordContentRequest) (response *DescribeLiveStreamRecordContentResponse, err error) { + response = CreateDescribeLiveStreamRecordContentResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamRecordContentWithChan invokes the live.DescribeLiveStreamRecordContent API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamrecordcontent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRecordContentWithChan(request *DescribeLiveStreamRecordContentRequest) (<-chan *DescribeLiveStreamRecordContentResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamRecordContentResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamRecordContent(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamRecordContentWithCallback invokes the live.DescribeLiveStreamRecordContent API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamrecordcontent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRecordContentWithCallback(request *DescribeLiveStreamRecordContentRequest, callback func(response *DescribeLiveStreamRecordContentResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamRecordContentResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamRecordContent(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamRecordContentRequest is the request struct for api DescribeLiveStreamRecordContent +type DescribeLiveStreamRecordContentRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveStreamRecordContentResponse is the response struct for api DescribeLiveStreamRecordContent +type DescribeLiveStreamRecordContentResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RecordContentInfoList RecordContentInfoList `json:"RecordContentInfoList" xml:"RecordContentInfoList"` +} + +// CreateDescribeLiveStreamRecordContentRequest creates a request to invoke DescribeLiveStreamRecordContent API +func CreateDescribeLiveStreamRecordContentRequest() (request *DescribeLiveStreamRecordContentRequest) { + request = &DescribeLiveStreamRecordContentRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveStreamRecordContent", "live", "openAPI") + return +} + +// CreateDescribeLiveStreamRecordContentResponse creates a response to parse from DescribeLiveStreamRecordContent response +func CreateDescribeLiveStreamRecordContentResponse() (response *DescribeLiveStreamRecordContentResponse) { + response = &DescribeLiveStreamRecordContentResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_record_index_file.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_record_index_file.go new file mode 100644 index 0000000..31abe33 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_record_index_file.go @@ -0,0 +1,109 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamRecordIndexFile invokes the live.DescribeLiveStreamRecordIndexFile API synchronously +// api document: https://help.aliyun.com/api/live/describelivestreamrecordindexfile.html +func (client *Client) DescribeLiveStreamRecordIndexFile(request *DescribeLiveStreamRecordIndexFileRequest) (response *DescribeLiveStreamRecordIndexFileResponse, err error) { + response = CreateDescribeLiveStreamRecordIndexFileResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamRecordIndexFileWithChan invokes the live.DescribeLiveStreamRecordIndexFile API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamrecordindexfile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRecordIndexFileWithChan(request *DescribeLiveStreamRecordIndexFileRequest) (<-chan *DescribeLiveStreamRecordIndexFileResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamRecordIndexFileResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamRecordIndexFile(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamRecordIndexFileWithCallback invokes the live.DescribeLiveStreamRecordIndexFile API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamrecordindexfile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRecordIndexFileWithCallback(request *DescribeLiveStreamRecordIndexFileRequest, callback func(response *DescribeLiveStreamRecordIndexFileResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamRecordIndexFileResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamRecordIndexFile(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamRecordIndexFileRequest is the request struct for api DescribeLiveStreamRecordIndexFile +type DescribeLiveStreamRecordIndexFileRequest struct { + *requests.RpcRequest + RecordId string `position:"Query" name:"RecordId"` + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveStreamRecordIndexFileResponse is the response struct for api DescribeLiveStreamRecordIndexFile +type DescribeLiveStreamRecordIndexFileResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RecordIndexInfo RecordIndexInfo `json:"RecordIndexInfo" xml:"RecordIndexInfo"` +} + +// CreateDescribeLiveStreamRecordIndexFileRequest creates a request to invoke DescribeLiveStreamRecordIndexFile API +func CreateDescribeLiveStreamRecordIndexFileRequest() (request *DescribeLiveStreamRecordIndexFileRequest) { + request = &DescribeLiveStreamRecordIndexFileRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveStreamRecordIndexFile", "live", "openAPI") + return +} + +// CreateDescribeLiveStreamRecordIndexFileResponse creates a response to parse from DescribeLiveStreamRecordIndexFile response +func CreateDescribeLiveStreamRecordIndexFileResponse() (response *DescribeLiveStreamRecordIndexFileResponse) { + response = &DescribeLiveStreamRecordIndexFileResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_record_index_files.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_record_index_files.go new file mode 100644 index 0000000..80b0e8d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_record_index_files.go @@ -0,0 +1,118 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamRecordIndexFiles invokes the live.DescribeLiveStreamRecordIndexFiles API synchronously +// api document: https://help.aliyun.com/api/live/describelivestreamrecordindexfiles.html +func (client *Client) DescribeLiveStreamRecordIndexFiles(request *DescribeLiveStreamRecordIndexFilesRequest) (response *DescribeLiveStreamRecordIndexFilesResponse, err error) { + response = CreateDescribeLiveStreamRecordIndexFilesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamRecordIndexFilesWithChan invokes the live.DescribeLiveStreamRecordIndexFiles API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamrecordindexfiles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRecordIndexFilesWithChan(request *DescribeLiveStreamRecordIndexFilesRequest) (<-chan *DescribeLiveStreamRecordIndexFilesResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamRecordIndexFilesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamRecordIndexFiles(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamRecordIndexFilesWithCallback invokes the live.DescribeLiveStreamRecordIndexFiles API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamrecordindexfiles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamRecordIndexFilesWithCallback(request *DescribeLiveStreamRecordIndexFilesRequest, callback func(response *DescribeLiveStreamRecordIndexFilesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamRecordIndexFilesResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamRecordIndexFiles(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamRecordIndexFilesRequest is the request struct for api DescribeLiveStreamRecordIndexFiles +type DescribeLiveStreamRecordIndexFilesRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + StreamName string `position:"Query" name:"StreamName"` + Order string `position:"Query" name:"Order"` +} + +// DescribeLiveStreamRecordIndexFilesResponse is the response struct for api DescribeLiveStreamRecordIndexFiles +type DescribeLiveStreamRecordIndexFilesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNum int `json:"PageNum" xml:"PageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + Order string `json:"Order" xml:"Order"` + TotalNum int `json:"TotalNum" xml:"TotalNum"` + TotalPage int `json:"TotalPage" xml:"TotalPage"` + RecordIndexInfoList RecordIndexInfoList `json:"RecordIndexInfoList" xml:"RecordIndexInfoList"` +} + +// CreateDescribeLiveStreamRecordIndexFilesRequest creates a request to invoke DescribeLiveStreamRecordIndexFiles API +func CreateDescribeLiveStreamRecordIndexFilesRequest() (request *DescribeLiveStreamRecordIndexFilesRequest) { + request = &DescribeLiveStreamRecordIndexFilesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveStreamRecordIndexFiles", "live", "openAPI") + return +} + +// CreateDescribeLiveStreamRecordIndexFilesResponse creates a response to parse from DescribeLiveStreamRecordIndexFiles response +func CreateDescribeLiveStreamRecordIndexFilesResponse() (response *DescribeLiveStreamRecordIndexFilesResponse) { + response = &DescribeLiveStreamRecordIndexFilesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_snapshot_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_snapshot_info.go new file mode 100644 index 0000000..e0de427 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_snapshot_info.go @@ -0,0 +1,113 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamSnapshotInfo invokes the live.DescribeLiveStreamSnapshotInfo API synchronously +// api document: https://help.aliyun.com/api/live/describelivestreamsnapshotinfo.html +func (client *Client) DescribeLiveStreamSnapshotInfo(request *DescribeLiveStreamSnapshotInfoRequest) (response *DescribeLiveStreamSnapshotInfoResponse, err error) { + response = CreateDescribeLiveStreamSnapshotInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamSnapshotInfoWithChan invokes the live.DescribeLiveStreamSnapshotInfo API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamsnapshotinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamSnapshotInfoWithChan(request *DescribeLiveStreamSnapshotInfoRequest) (<-chan *DescribeLiveStreamSnapshotInfoResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamSnapshotInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamSnapshotInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamSnapshotInfoWithCallback invokes the live.DescribeLiveStreamSnapshotInfo API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamsnapshotinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamSnapshotInfoWithCallback(request *DescribeLiveStreamSnapshotInfoRequest, callback func(response *DescribeLiveStreamSnapshotInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamSnapshotInfoResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamSnapshotInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamSnapshotInfoRequest is the request struct for api DescribeLiveStreamSnapshotInfo +type DescribeLiveStreamSnapshotInfoRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + Limit requests.Integer `position:"Query" name:"Limit"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` + Order string `position:"Query" name:"Order"` +} + +// DescribeLiveStreamSnapshotInfoResponse is the response struct for api DescribeLiveStreamSnapshotInfo +type DescribeLiveStreamSnapshotInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NextStartTime string `json:"NextStartTime" xml:"NextStartTime"` + LiveStreamSnapshotInfoList LiveStreamSnapshotInfoList `json:"LiveStreamSnapshotInfoList" xml:"LiveStreamSnapshotInfoList"` +} + +// CreateDescribeLiveStreamSnapshotInfoRequest creates a request to invoke DescribeLiveStreamSnapshotInfo API +func CreateDescribeLiveStreamSnapshotInfoRequest() (request *DescribeLiveStreamSnapshotInfoRequest) { + request = &DescribeLiveStreamSnapshotInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveStreamSnapshotInfo", "live", "openAPI") + return +} + +// CreateDescribeLiveStreamSnapshotInfoResponse creates a response to parse from DescribeLiveStreamSnapshotInfo response +func CreateDescribeLiveStreamSnapshotInfoResponse() (response *DescribeLiveStreamSnapshotInfoResponse) { + response = &DescribeLiveStreamSnapshotInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_transcode_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_transcode_info.go new file mode 100644 index 0000000..8989277 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_stream_transcode_info.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamTranscodeInfo invokes the live.DescribeLiveStreamTranscodeInfo API synchronously +// api document: https://help.aliyun.com/api/live/describelivestreamtranscodeinfo.html +func (client *Client) DescribeLiveStreamTranscodeInfo(request *DescribeLiveStreamTranscodeInfoRequest) (response *DescribeLiveStreamTranscodeInfoResponse, err error) { + response = CreateDescribeLiveStreamTranscodeInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamTranscodeInfoWithChan invokes the live.DescribeLiveStreamTranscodeInfo API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamtranscodeinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamTranscodeInfoWithChan(request *DescribeLiveStreamTranscodeInfoRequest) (<-chan *DescribeLiveStreamTranscodeInfoResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamTranscodeInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamTranscodeInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamTranscodeInfoWithCallback invokes the live.DescribeLiveStreamTranscodeInfo API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamtranscodeinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamTranscodeInfoWithCallback(request *DescribeLiveStreamTranscodeInfoRequest, callback func(response *DescribeLiveStreamTranscodeInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamTranscodeInfoResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamTranscodeInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamTranscodeInfoRequest is the request struct for api DescribeLiveStreamTranscodeInfo +type DescribeLiveStreamTranscodeInfoRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + DomainTranscodeName string `position:"Query" name:"DomainTranscodeName"` +} + +// DescribeLiveStreamTranscodeInfoResponse is the response struct for api DescribeLiveStreamTranscodeInfo +type DescribeLiveStreamTranscodeInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainTranscodeList DomainTranscodeList `json:"DomainTranscodeList" xml:"DomainTranscodeList"` +} + +// CreateDescribeLiveStreamTranscodeInfoRequest creates a request to invoke DescribeLiveStreamTranscodeInfo API +func CreateDescribeLiveStreamTranscodeInfoRequest() (request *DescribeLiveStreamTranscodeInfoRequest) { + request = &DescribeLiveStreamTranscodeInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveStreamTranscodeInfo", "live", "openAPI") + return +} + +// CreateDescribeLiveStreamTranscodeInfoResponse creates a response to parse from DescribeLiveStreamTranscodeInfo response +func CreateDescribeLiveStreamTranscodeInfoResponse() (response *DescribeLiveStreamTranscodeInfoResponse) { + response = &DescribeLiveStreamTranscodeInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_block_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_block_list.go new file mode 100644 index 0000000..cc2ba01 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_block_list.go @@ -0,0 +1,113 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamsBlockList invokes the live.DescribeLiveStreamsBlockList API synchronously +// api document: https://help.aliyun.com/api/live/describelivestreamsblocklist.html +func (client *Client) DescribeLiveStreamsBlockList(request *DescribeLiveStreamsBlockListRequest) (response *DescribeLiveStreamsBlockListResponse, err error) { + response = CreateDescribeLiveStreamsBlockListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamsBlockListWithChan invokes the live.DescribeLiveStreamsBlockList API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamsblocklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsBlockListWithChan(request *DescribeLiveStreamsBlockListRequest) (<-chan *DescribeLiveStreamsBlockListResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamsBlockListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamsBlockList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamsBlockListWithCallback invokes the live.DescribeLiveStreamsBlockList API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamsblocklist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsBlockListWithCallback(request *DescribeLiveStreamsBlockListRequest, callback func(response *DescribeLiveStreamsBlockListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamsBlockListResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamsBlockList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamsBlockListRequest is the request struct for api DescribeLiveStreamsBlockList +type DescribeLiveStreamsBlockListRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNum requests.Integer `position:"Query" name:"PageNum"` +} + +// DescribeLiveStreamsBlockListResponse is the response struct for api DescribeLiveStreamsBlockList +type DescribeLiveStreamsBlockListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + PageNum int `json:"PageNum" xml:"PageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalNum int `json:"TotalNum" xml:"TotalNum"` + TotalPage int `json:"TotalPage" xml:"TotalPage"` + StreamUrls StreamUrls `json:"StreamUrls" xml:"StreamUrls"` +} + +// CreateDescribeLiveStreamsBlockListRequest creates a request to invoke DescribeLiveStreamsBlockList API +func CreateDescribeLiveStreamsBlockListRequest() (request *DescribeLiveStreamsBlockListRequest) { + request = &DescribeLiveStreamsBlockListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveStreamsBlockList", "live", "openAPI") + return +} + +// CreateDescribeLiveStreamsBlockListResponse creates a response to parse from DescribeLiveStreamsBlockList response +func CreateDescribeLiveStreamsBlockListResponse() (response *DescribeLiveStreamsBlockListResponse) { + response = &DescribeLiveStreamsBlockListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_control_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_control_history.go new file mode 100644 index 0000000..63ccbff --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_control_history.go @@ -0,0 +1,109 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamsControlHistory invokes the live.DescribeLiveStreamsControlHistory API synchronously +// api document: https://help.aliyun.com/api/live/describelivestreamscontrolhistory.html +func (client *Client) DescribeLiveStreamsControlHistory(request *DescribeLiveStreamsControlHistoryRequest) (response *DescribeLiveStreamsControlHistoryResponse, err error) { + response = CreateDescribeLiveStreamsControlHistoryResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamsControlHistoryWithChan invokes the live.DescribeLiveStreamsControlHistory API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamscontrolhistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsControlHistoryWithChan(request *DescribeLiveStreamsControlHistoryRequest) (<-chan *DescribeLiveStreamsControlHistoryResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamsControlHistoryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamsControlHistory(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamsControlHistoryWithCallback invokes the live.DescribeLiveStreamsControlHistory API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamscontrolhistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsControlHistoryWithCallback(request *DescribeLiveStreamsControlHistoryRequest, callback func(response *DescribeLiveStreamsControlHistoryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamsControlHistoryResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamsControlHistory(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamsControlHistoryRequest is the request struct for api DescribeLiveStreamsControlHistory +type DescribeLiveStreamsControlHistoryRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveStreamsControlHistoryResponse is the response struct for api DescribeLiveStreamsControlHistory +type DescribeLiveStreamsControlHistoryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ControlInfo ControlInfo `json:"ControlInfo" xml:"ControlInfo"` +} + +// CreateDescribeLiveStreamsControlHistoryRequest creates a request to invoke DescribeLiveStreamsControlHistory API +func CreateDescribeLiveStreamsControlHistoryRequest() (request *DescribeLiveStreamsControlHistoryRequest) { + request = &DescribeLiveStreamsControlHistoryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveStreamsControlHistory", "live", "openAPI") + return +} + +// CreateDescribeLiveStreamsControlHistoryResponse creates a response to parse from DescribeLiveStreamsControlHistory response +func CreateDescribeLiveStreamsControlHistoryResponse() (response *DescribeLiveStreamsControlHistoryResponse) { + response = &DescribeLiveStreamsControlHistoryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_frame_rate_and_bit_rate_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_frame_rate_and_bit_rate_data.go new file mode 100644 index 0000000..f5150e7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_frame_rate_and_bit_rate_data.go @@ -0,0 +1,110 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamsFrameRateAndBitRateData invokes the live.DescribeLiveStreamsFrameRateAndBitRateData API synchronously +// api document: https://help.aliyun.com/api/live/describelivestreamsframerateandbitratedata.html +func (client *Client) DescribeLiveStreamsFrameRateAndBitRateData(request *DescribeLiveStreamsFrameRateAndBitRateDataRequest) (response *DescribeLiveStreamsFrameRateAndBitRateDataResponse, err error) { + response = CreateDescribeLiveStreamsFrameRateAndBitRateDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamsFrameRateAndBitRateDataWithChan invokes the live.DescribeLiveStreamsFrameRateAndBitRateData API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamsframerateandbitratedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsFrameRateAndBitRateDataWithChan(request *DescribeLiveStreamsFrameRateAndBitRateDataRequest) (<-chan *DescribeLiveStreamsFrameRateAndBitRateDataResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamsFrameRateAndBitRateDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamsFrameRateAndBitRateData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamsFrameRateAndBitRateDataWithCallback invokes the live.DescribeLiveStreamsFrameRateAndBitRateData API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamsframerateandbitratedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsFrameRateAndBitRateDataWithCallback(request *DescribeLiveStreamsFrameRateAndBitRateDataRequest, callback func(response *DescribeLiveStreamsFrameRateAndBitRateDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamsFrameRateAndBitRateDataResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamsFrameRateAndBitRateData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamsFrameRateAndBitRateDataRequest is the request struct for api DescribeLiveStreamsFrameRateAndBitRateData +type DescribeLiveStreamsFrameRateAndBitRateDataRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// DescribeLiveStreamsFrameRateAndBitRateDataResponse is the response struct for api DescribeLiveStreamsFrameRateAndBitRateData +type DescribeLiveStreamsFrameRateAndBitRateDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + FrameRateAndBitRateInfos FrameRateAndBitRateInfosInDescribeLiveStreamsFrameRateAndBitRateData `json:"FrameRateAndBitRateInfos" xml:"FrameRateAndBitRateInfos"` +} + +// CreateDescribeLiveStreamsFrameRateAndBitRateDataRequest creates a request to invoke DescribeLiveStreamsFrameRateAndBitRateData API +func CreateDescribeLiveStreamsFrameRateAndBitRateDataRequest() (request *DescribeLiveStreamsFrameRateAndBitRateDataRequest) { + request = &DescribeLiveStreamsFrameRateAndBitRateDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveStreamsFrameRateAndBitRateData", "live", "openAPI") + return +} + +// CreateDescribeLiveStreamsFrameRateAndBitRateDataResponse creates a response to parse from DescribeLiveStreamsFrameRateAndBitRateData response +func CreateDescribeLiveStreamsFrameRateAndBitRateDataResponse() (response *DescribeLiveStreamsFrameRateAndBitRateDataResponse) { + response = &DescribeLiveStreamsFrameRateAndBitRateDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_notify_url_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_notify_url_config.go new file mode 100644 index 0000000..f122537 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_notify_url_config.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamsNotifyUrlConfig invokes the live.DescribeLiveStreamsNotifyUrlConfig API synchronously +// api document: https://help.aliyun.com/api/live/describelivestreamsnotifyurlconfig.html +func (client *Client) DescribeLiveStreamsNotifyUrlConfig(request *DescribeLiveStreamsNotifyUrlConfigRequest) (response *DescribeLiveStreamsNotifyUrlConfigResponse, err error) { + response = CreateDescribeLiveStreamsNotifyUrlConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamsNotifyUrlConfigWithChan invokes the live.DescribeLiveStreamsNotifyUrlConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamsnotifyurlconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsNotifyUrlConfigWithChan(request *DescribeLiveStreamsNotifyUrlConfigRequest) (<-chan *DescribeLiveStreamsNotifyUrlConfigResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamsNotifyUrlConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamsNotifyUrlConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamsNotifyUrlConfigWithCallback invokes the live.DescribeLiveStreamsNotifyUrlConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamsnotifyurlconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsNotifyUrlConfigWithCallback(request *DescribeLiveStreamsNotifyUrlConfigRequest, callback func(response *DescribeLiveStreamsNotifyUrlConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamsNotifyUrlConfigResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamsNotifyUrlConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamsNotifyUrlConfigRequest is the request struct for api DescribeLiveStreamsNotifyUrlConfig +type DescribeLiveStreamsNotifyUrlConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveStreamsNotifyUrlConfigResponse is the response struct for api DescribeLiveStreamsNotifyUrlConfig +type DescribeLiveStreamsNotifyUrlConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LiveStreamsNotifyConfig LiveStreamsNotifyConfig `json:"LiveStreamsNotifyConfig" xml:"LiveStreamsNotifyConfig"` +} + +// CreateDescribeLiveStreamsNotifyUrlConfigRequest creates a request to invoke DescribeLiveStreamsNotifyUrlConfig API +func CreateDescribeLiveStreamsNotifyUrlConfigRequest() (request *DescribeLiveStreamsNotifyUrlConfigRequest) { + request = &DescribeLiveStreamsNotifyUrlConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveStreamsNotifyUrlConfig", "live", "openAPI") + return +} + +// CreateDescribeLiveStreamsNotifyUrlConfigResponse creates a response to parse from DescribeLiveStreamsNotifyUrlConfig response +func CreateDescribeLiveStreamsNotifyUrlConfigResponse() (response *DescribeLiveStreamsNotifyUrlConfigResponse) { + response = &DescribeLiveStreamsNotifyUrlConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_online_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_online_list.go new file mode 100644 index 0000000..5b46679 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_online_list.go @@ -0,0 +1,117 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamsOnlineList invokes the live.DescribeLiveStreamsOnlineList API synchronously +// api document: https://help.aliyun.com/api/live/describelivestreamsonlinelist.html +func (client *Client) DescribeLiveStreamsOnlineList(request *DescribeLiveStreamsOnlineListRequest) (response *DescribeLiveStreamsOnlineListResponse, err error) { + response = CreateDescribeLiveStreamsOnlineListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamsOnlineListWithChan invokes the live.DescribeLiveStreamsOnlineList API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamsonlinelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsOnlineListWithChan(request *DescribeLiveStreamsOnlineListRequest) (<-chan *DescribeLiveStreamsOnlineListResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamsOnlineListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamsOnlineList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamsOnlineListWithCallback invokes the live.DescribeLiveStreamsOnlineList API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamsonlinelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsOnlineListWithCallback(request *DescribeLiveStreamsOnlineListRequest, callback func(response *DescribeLiveStreamsOnlineListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamsOnlineListResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamsOnlineList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamsOnlineListRequest is the request struct for api DescribeLiveStreamsOnlineList +type DescribeLiveStreamsOnlineListRequest struct { + *requests.RpcRequest + StreamType string `position:"Query" name:"StreamType"` + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + QueryType string `position:"Query" name:"QueryType"` +} + +// DescribeLiveStreamsOnlineListResponse is the response struct for api DescribeLiveStreamsOnlineList +type DescribeLiveStreamsOnlineListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNum int `json:"PageNum" xml:"PageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalNum int `json:"TotalNum" xml:"TotalNum"` + TotalPage int `json:"TotalPage" xml:"TotalPage"` + OnlineInfo OnlineInfo `json:"OnlineInfo" xml:"OnlineInfo"` +} + +// CreateDescribeLiveStreamsOnlineListRequest creates a request to invoke DescribeLiveStreamsOnlineList API +func CreateDescribeLiveStreamsOnlineListRequest() (request *DescribeLiveStreamsOnlineListRequest) { + request = &DescribeLiveStreamsOnlineListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveStreamsOnlineList", "live", "openAPI") + return +} + +// CreateDescribeLiveStreamsOnlineListResponse creates a response to parse from DescribeLiveStreamsOnlineList response +func CreateDescribeLiveStreamsOnlineListResponse() (response *DescribeLiveStreamsOnlineListResponse) { + response = &DescribeLiveStreamsOnlineListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_publish_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_publish_list.go new file mode 100644 index 0000000..833abe1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/describe_live_streams_publish_list.go @@ -0,0 +1,118 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveStreamsPublishList invokes the live.DescribeLiveStreamsPublishList API synchronously +// api document: https://help.aliyun.com/api/live/describelivestreamspublishlist.html +func (client *Client) DescribeLiveStreamsPublishList(request *DescribeLiveStreamsPublishListRequest) (response *DescribeLiveStreamsPublishListResponse, err error) { + response = CreateDescribeLiveStreamsPublishListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveStreamsPublishListWithChan invokes the live.DescribeLiveStreamsPublishList API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamspublishlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsPublishListWithChan(request *DescribeLiveStreamsPublishListRequest) (<-chan *DescribeLiveStreamsPublishListResponse, <-chan error) { + responseChan := make(chan *DescribeLiveStreamsPublishListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveStreamsPublishList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveStreamsPublishListWithCallback invokes the live.DescribeLiveStreamsPublishList API asynchronously +// api document: https://help.aliyun.com/api/live/describelivestreamspublishlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveStreamsPublishListWithCallback(request *DescribeLiveStreamsPublishListRequest, callback func(response *DescribeLiveStreamsPublishListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveStreamsPublishListResponse + var err error + defer close(result) + response, err = client.DescribeLiveStreamsPublishList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveStreamsPublishListRequest is the request struct for api DescribeLiveStreamsPublishList +type DescribeLiveStreamsPublishListRequest struct { + *requests.RpcRequest + StreamType string `position:"Query" name:"StreamType"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + StreamName string `position:"Query" name:"StreamName"` + QueryType string `position:"Query" name:"QueryType"` +} + +// DescribeLiveStreamsPublishListResponse is the response struct for api DescribeLiveStreamsPublishList +type DescribeLiveStreamsPublishListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNum int `json:"PageNum" xml:"PageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalNum int `json:"TotalNum" xml:"TotalNum"` + TotalPage int `json:"TotalPage" xml:"TotalPage"` + PublishInfo PublishInfo `json:"PublishInfo" xml:"PublishInfo"` +} + +// CreateDescribeLiveStreamsPublishListRequest creates a request to invoke DescribeLiveStreamsPublishList API +func CreateDescribeLiveStreamsPublishListRequest() (request *DescribeLiveStreamsPublishListRequest) { + request = &DescribeLiveStreamsPublishListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveStreamsPublishList", "live", "openAPI") + return +} + +// CreateDescribeLiveStreamsPublishListResponse creates a response to parse from DescribeLiveStreamsPublishList response +func CreateDescribeLiveStreamsPublishListResponse() (response *DescribeLiveStreamsPublishListResponse) { + response = &DescribeLiveStreamsPublishListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/effect_caster_urgent.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/effect_caster_urgent.go new file mode 100644 index 0000000..02dd627 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/effect_caster_urgent.go @@ -0,0 +1,105 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EffectCasterUrgent invokes the live.EffectCasterUrgent API synchronously +// api document: https://help.aliyun.com/api/live/effectcasterurgent.html +func (client *Client) EffectCasterUrgent(request *EffectCasterUrgentRequest) (response *EffectCasterUrgentResponse, err error) { + response = CreateEffectCasterUrgentResponse() + err = client.DoAction(request, response) + return +} + +// EffectCasterUrgentWithChan invokes the live.EffectCasterUrgent API asynchronously +// api document: https://help.aliyun.com/api/live/effectcasterurgent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EffectCasterUrgentWithChan(request *EffectCasterUrgentRequest) (<-chan *EffectCasterUrgentResponse, <-chan error) { + responseChan := make(chan *EffectCasterUrgentResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EffectCasterUrgent(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EffectCasterUrgentWithCallback invokes the live.EffectCasterUrgent API asynchronously +// api document: https://help.aliyun.com/api/live/effectcasterurgent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EffectCasterUrgentWithCallback(request *EffectCasterUrgentRequest, callback func(response *EffectCasterUrgentResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EffectCasterUrgentResponse + var err error + defer close(result) + response, err = client.EffectCasterUrgent(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EffectCasterUrgentRequest is the request struct for api EffectCasterUrgent +type EffectCasterUrgentRequest struct { + *requests.RpcRequest + CasterId string `position:"Query" name:"CasterId"` + SceneId string `position:"Query" name:"SceneId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// EffectCasterUrgentResponse is the response struct for api EffectCasterUrgent +type EffectCasterUrgentResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateEffectCasterUrgentRequest creates a request to invoke EffectCasterUrgent API +func CreateEffectCasterUrgentRequest() (request *EffectCasterUrgentRequest) { + request = &EffectCasterUrgentRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "EffectCasterUrgent", "live", "openAPI") + return +} + +// CreateEffectCasterUrgentResponse creates a response to parse from EffectCasterUrgent response +func CreateEffectCasterUrgentResponse() (response *EffectCasterUrgentResponse) { + response = &EffectCasterUrgentResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/effect_caster_video_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/effect_caster_video_resource.go new file mode 100644 index 0000000..7892fd3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/effect_caster_video_resource.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EffectCasterVideoResource invokes the live.EffectCasterVideoResource API synchronously +// api document: https://help.aliyun.com/api/live/effectcastervideoresource.html +func (client *Client) EffectCasterVideoResource(request *EffectCasterVideoResourceRequest) (response *EffectCasterVideoResourceResponse, err error) { + response = CreateEffectCasterVideoResourceResponse() + err = client.DoAction(request, response) + return +} + +// EffectCasterVideoResourceWithChan invokes the live.EffectCasterVideoResource API asynchronously +// api document: https://help.aliyun.com/api/live/effectcastervideoresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EffectCasterVideoResourceWithChan(request *EffectCasterVideoResourceRequest) (<-chan *EffectCasterVideoResourceResponse, <-chan error) { + responseChan := make(chan *EffectCasterVideoResourceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EffectCasterVideoResource(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EffectCasterVideoResourceWithCallback invokes the live.EffectCasterVideoResource API asynchronously +// api document: https://help.aliyun.com/api/live/effectcastervideoresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EffectCasterVideoResourceWithCallback(request *EffectCasterVideoResourceRequest, callback func(response *EffectCasterVideoResourceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EffectCasterVideoResourceResponse + var err error + defer close(result) + response, err = client.EffectCasterVideoResource(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EffectCasterVideoResourceRequest is the request struct for api EffectCasterVideoResource +type EffectCasterVideoResourceRequest struct { + *requests.RpcRequest + ResourceId string `position:"Query" name:"ResourceId"` + CasterId string `position:"Query" name:"CasterId"` + SceneId string `position:"Query" name:"SceneId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// EffectCasterVideoResourceResponse is the response struct for api EffectCasterVideoResource +type EffectCasterVideoResourceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateEffectCasterVideoResourceRequest creates a request to invoke EffectCasterVideoResource API +func CreateEffectCasterVideoResourceRequest() (request *EffectCasterVideoResourceRequest) { + request = &EffectCasterVideoResourceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "EffectCasterVideoResource", "live", "openAPI") + return +} + +// CreateEffectCasterVideoResourceResponse creates a response to parse from EffectCasterVideoResource response +func CreateEffectCasterVideoResourceResponse() (response *EffectCasterVideoResourceResponse) { + response = &EffectCasterVideoResourceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/forbid_live_stream.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/forbid_live_stream.go new file mode 100644 index 0000000..6d1c9b5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/forbid_live_stream.go @@ -0,0 +1,109 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ForbidLiveStream invokes the live.ForbidLiveStream API synchronously +// api document: https://help.aliyun.com/api/live/forbidlivestream.html +func (client *Client) ForbidLiveStream(request *ForbidLiveStreamRequest) (response *ForbidLiveStreamResponse, err error) { + response = CreateForbidLiveStreamResponse() + err = client.DoAction(request, response) + return +} + +// ForbidLiveStreamWithChan invokes the live.ForbidLiveStream API asynchronously +// api document: https://help.aliyun.com/api/live/forbidlivestream.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ForbidLiveStreamWithChan(request *ForbidLiveStreamRequest) (<-chan *ForbidLiveStreamResponse, <-chan error) { + responseChan := make(chan *ForbidLiveStreamResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ForbidLiveStream(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ForbidLiveStreamWithCallback invokes the live.ForbidLiveStream API asynchronously +// api document: https://help.aliyun.com/api/live/forbidlivestream.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ForbidLiveStreamWithCallback(request *ForbidLiveStreamRequest, callback func(response *ForbidLiveStreamResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ForbidLiveStreamResponse + var err error + defer close(result) + response, err = client.ForbidLiveStream(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ForbidLiveStreamRequest is the request struct for api ForbidLiveStream +type ForbidLiveStreamRequest struct { + *requests.RpcRequest + ResumeTime string `position:"Query" name:"ResumeTime"` + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + LiveStreamType string `position:"Query" name:"LiveStreamType"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// ForbidLiveStreamResponse is the response struct for api ForbidLiveStream +type ForbidLiveStreamResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateForbidLiveStreamRequest creates a request to invoke ForbidLiveStream API +func CreateForbidLiveStreamRequest() (request *ForbidLiveStreamRequest) { + request = &ForbidLiveStreamRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "ForbidLiveStream", "live", "openAPI") + return +} + +// CreateForbidLiveStreamResponse creates a response to parse from ForbidLiveStream response +func CreateForbidLiveStreamResponse() (response *ForbidLiveStreamResponse) { + response = &ForbidLiveStreamResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/image_porn_detection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/image_porn_detection.go new file mode 100644 index 0000000..37eea7c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/image_porn_detection.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ImagePornDetection invokes the live.ImagePornDetection API synchronously +// api document: https://help.aliyun.com/api/live/imageporndetection.html +func (client *Client) ImagePornDetection(request *ImagePornDetectionRequest) (response *ImagePornDetectionResponse, err error) { + response = CreateImagePornDetectionResponse() + err = client.DoAction(request, response) + return +} + +// ImagePornDetectionWithChan invokes the live.ImagePornDetection API asynchronously +// api document: https://help.aliyun.com/api/live/imageporndetection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImagePornDetectionWithChan(request *ImagePornDetectionRequest) (<-chan *ImagePornDetectionResponse, <-chan error) { + responseChan := make(chan *ImagePornDetectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ImagePornDetection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ImagePornDetectionWithCallback invokes the live.ImagePornDetection API asynchronously +// api document: https://help.aliyun.com/api/live/imageporndetection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImagePornDetectionWithCallback(request *ImagePornDetectionRequest, callback func(response *ImagePornDetectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ImagePornDetectionResponse + var err error + defer close(result) + response, err = client.ImagePornDetection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ImagePornDetectionRequest is the request struct for api ImagePornDetection +type ImagePornDetectionRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + ImageUrl string `position:"Query" name:"ImageUrl"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ImagePornDetectionResponse is the response struct for api ImagePornDetection +type ImagePornDetectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Label string `json:"Label" xml:"Label"` + Rate float64 `json:"Rate" xml:"Rate"` +} + +// CreateImagePornDetectionRequest creates a request to invoke ImagePornDetection API +func CreateImagePornDetectionRequest() (request *ImagePornDetectionRequest) { + request = &ImagePornDetectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "ImagePornDetection", "live", "openAPI") + return +} + +// CreateImagePornDetectionResponse creates a response to parse from ImagePornDetection response +func CreateImagePornDetectionResponse() (response *ImagePornDetectionResponse) { + response = &ImagePornDetectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/modify_caster_component.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/modify_caster_component.go new file mode 100644 index 0000000..4986e3d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/modify_caster_component.go @@ -0,0 +1,113 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyCasterComponent invokes the live.ModifyCasterComponent API synchronously +// api document: https://help.aliyun.com/api/live/modifycastercomponent.html +func (client *Client) ModifyCasterComponent(request *ModifyCasterComponentRequest) (response *ModifyCasterComponentResponse, err error) { + response = CreateModifyCasterComponentResponse() + err = client.DoAction(request, response) + return +} + +// ModifyCasterComponentWithChan invokes the live.ModifyCasterComponent API asynchronously +// api document: https://help.aliyun.com/api/live/modifycastercomponent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCasterComponentWithChan(request *ModifyCasterComponentRequest) (<-chan *ModifyCasterComponentResponse, <-chan error) { + responseChan := make(chan *ModifyCasterComponentResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyCasterComponent(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyCasterComponentWithCallback invokes the live.ModifyCasterComponent API asynchronously +// api document: https://help.aliyun.com/api/live/modifycastercomponent.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCasterComponentWithCallback(request *ModifyCasterComponentRequest, callback func(response *ModifyCasterComponentResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyCasterComponentResponse + var err error + defer close(result) + response, err = client.ModifyCasterComponent(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyCasterComponentRequest is the request struct for api ModifyCasterComponent +type ModifyCasterComponentRequest struct { + *requests.RpcRequest + ComponentId string `position:"Query" name:"ComponentId"` + ComponentType string `position:"Query" name:"ComponentType"` + ImageLayerContent string `position:"Query" name:"ImageLayerContent"` + CasterId string `position:"Query" name:"CasterId"` + Effect string `position:"Query" name:"Effect"` + ComponentLayer string `position:"Query" name:"ComponentLayer"` + CaptionLayerContent string `position:"Query" name:"CaptionLayerContent"` + ComponentName string `position:"Query" name:"ComponentName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + TextLayerContent string `position:"Query" name:"TextLayerContent"` +} + +// ModifyCasterComponentResponse is the response struct for api ModifyCasterComponent +type ModifyCasterComponentResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ComponentId string `json:"ComponentId" xml:"ComponentId"` +} + +// CreateModifyCasterComponentRequest creates a request to invoke ModifyCasterComponent API +func CreateModifyCasterComponentRequest() (request *ModifyCasterComponentRequest) { + request = &ModifyCasterComponentRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "ModifyCasterComponent", "live", "openAPI") + return +} + +// CreateModifyCasterComponentResponse creates a response to parse from ModifyCasterComponent response +func CreateModifyCasterComponentResponse() (response *ModifyCasterComponentResponse) { + response = &ModifyCasterComponentResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/modify_caster_episode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/modify_caster_episode.go new file mode 100644 index 0000000..6b31446 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/modify_caster_episode.go @@ -0,0 +1,113 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyCasterEpisode invokes the live.ModifyCasterEpisode API synchronously +// api document: https://help.aliyun.com/api/live/modifycasterepisode.html +func (client *Client) ModifyCasterEpisode(request *ModifyCasterEpisodeRequest) (response *ModifyCasterEpisodeResponse, err error) { + response = CreateModifyCasterEpisodeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyCasterEpisodeWithChan invokes the live.ModifyCasterEpisode API asynchronously +// api document: https://help.aliyun.com/api/live/modifycasterepisode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCasterEpisodeWithChan(request *ModifyCasterEpisodeRequest) (<-chan *ModifyCasterEpisodeResponse, <-chan error) { + responseChan := make(chan *ModifyCasterEpisodeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyCasterEpisode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyCasterEpisodeWithCallback invokes the live.ModifyCasterEpisode API asynchronously +// api document: https://help.aliyun.com/api/live/modifycasterepisode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCasterEpisodeWithCallback(request *ModifyCasterEpisodeRequest, callback func(response *ModifyCasterEpisodeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyCasterEpisodeResponse + var err error + defer close(result) + response, err = client.ModifyCasterEpisode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyCasterEpisodeRequest is the request struct for api ModifyCasterEpisode +type ModifyCasterEpisodeRequest struct { + *requests.RpcRequest + ResourceId string `position:"Query" name:"ResourceId"` + ComponentId *[]string `position:"Query" name:"ComponentId" type:"Repeated"` + SwitchType string `position:"Query" name:"SwitchType"` + CasterId string `position:"Query" name:"CasterId"` + EpisodeName string `position:"Query" name:"EpisodeName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + EpisodeId string `position:"Query" name:"EpisodeId"` +} + +// ModifyCasterEpisodeResponse is the response struct for api ModifyCasterEpisode +type ModifyCasterEpisodeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CasterId string `json:"CasterId" xml:"CasterId"` + EpisodeId string `json:"EpisodeId" xml:"EpisodeId"` +} + +// CreateModifyCasterEpisodeRequest creates a request to invoke ModifyCasterEpisode API +func CreateModifyCasterEpisodeRequest() (request *ModifyCasterEpisodeRequest) { + request = &ModifyCasterEpisodeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "ModifyCasterEpisode", "live", "openAPI") + return +} + +// CreateModifyCasterEpisodeResponse creates a response to parse from ModifyCasterEpisode response +func CreateModifyCasterEpisodeResponse() (response *ModifyCasterEpisodeResponse) { + response = &ModifyCasterEpisodeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/modify_caster_layout.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/modify_caster_layout.go new file mode 100644 index 0000000..df87e55 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/modify_caster_layout.go @@ -0,0 +1,127 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyCasterLayout invokes the live.ModifyCasterLayout API synchronously +// api document: https://help.aliyun.com/api/live/modifycasterlayout.html +func (client *Client) ModifyCasterLayout(request *ModifyCasterLayoutRequest) (response *ModifyCasterLayoutResponse, err error) { + response = CreateModifyCasterLayoutResponse() + err = client.DoAction(request, response) + return +} + +// ModifyCasterLayoutWithChan invokes the live.ModifyCasterLayout API asynchronously +// api document: https://help.aliyun.com/api/live/modifycasterlayout.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCasterLayoutWithChan(request *ModifyCasterLayoutRequest) (<-chan *ModifyCasterLayoutResponse, <-chan error) { + responseChan := make(chan *ModifyCasterLayoutResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyCasterLayout(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyCasterLayoutWithCallback invokes the live.ModifyCasterLayout API asynchronously +// api document: https://help.aliyun.com/api/live/modifycasterlayout.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCasterLayoutWithCallback(request *ModifyCasterLayoutRequest, callback func(response *ModifyCasterLayoutResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyCasterLayoutResponse + var err error + defer close(result) + response, err = client.ModifyCasterLayout(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyCasterLayoutRequest is the request struct for api ModifyCasterLayout +type ModifyCasterLayoutRequest struct { + *requests.RpcRequest + BlendList *[]string `position:"Query" name:"BlendList" type:"Repeated"` + AudioLayer *[]ModifyCasterLayoutAudioLayer `position:"Query" name:"AudioLayer" type:"Repeated"` + VideoLayer *[]ModifyCasterLayoutVideoLayer `position:"Query" name:"VideoLayer" type:"Repeated"` + CasterId string `position:"Query" name:"CasterId"` + MixList *[]string `position:"Query" name:"MixList" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + LayoutId string `position:"Query" name:"LayoutId"` +} + +// ModifyCasterLayoutAudioLayer is a repeated param struct in ModifyCasterLayoutRequest +type ModifyCasterLayoutAudioLayer struct { + VolumeRate string `name:"VolumeRate"` + ValidChannel string `name:"ValidChannel"` + FixedDelayDuration string `name:"FixedDelayDuration"` +} + +// ModifyCasterLayoutVideoLayer is a repeated param struct in ModifyCasterLayoutRequest +type ModifyCasterLayoutVideoLayer struct { + FillMode string `name:"FillMode"` + HeightNormalized string `name:"HeightNormalized"` + WidthNormalized string `name:"WidthNormalized"` + PositionRefer string `name:"PositionRefer"` + PositionNormalized *[]requests.Float `name:"PositionNormalized" type:"Repeated"` + FixedDelayDuration string `name:"FixedDelayDuration"` +} + +// ModifyCasterLayoutResponse is the response struct for api ModifyCasterLayout +type ModifyCasterLayoutResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LayoutId string `json:"LayoutId" xml:"LayoutId"` +} + +// CreateModifyCasterLayoutRequest creates a request to invoke ModifyCasterLayout API +func CreateModifyCasterLayoutRequest() (request *ModifyCasterLayoutRequest) { + request = &ModifyCasterLayoutRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "ModifyCasterLayout", "live", "openAPI") + return +} + +// CreateModifyCasterLayoutResponse creates a response to parse from ModifyCasterLayout response +func CreateModifyCasterLayoutResponse() (response *ModifyCasterLayoutResponse) { + response = &ModifyCasterLayoutResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/modify_caster_program.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/modify_caster_program.go new file mode 100644 index 0000000..440ae48 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/modify_caster_program.go @@ -0,0 +1,118 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyCasterProgram invokes the live.ModifyCasterProgram API synchronously +// api document: https://help.aliyun.com/api/live/modifycasterprogram.html +func (client *Client) ModifyCasterProgram(request *ModifyCasterProgramRequest) (response *ModifyCasterProgramResponse, err error) { + response = CreateModifyCasterProgramResponse() + err = client.DoAction(request, response) + return +} + +// ModifyCasterProgramWithChan invokes the live.ModifyCasterProgram API asynchronously +// api document: https://help.aliyun.com/api/live/modifycasterprogram.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCasterProgramWithChan(request *ModifyCasterProgramRequest) (<-chan *ModifyCasterProgramResponse, <-chan error) { + responseChan := make(chan *ModifyCasterProgramResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyCasterProgram(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyCasterProgramWithCallback invokes the live.ModifyCasterProgram API asynchronously +// api document: https://help.aliyun.com/api/live/modifycasterprogram.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCasterProgramWithCallback(request *ModifyCasterProgramRequest, callback func(response *ModifyCasterProgramResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyCasterProgramResponse + var err error + defer close(result) + response, err = client.ModifyCasterProgram(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyCasterProgramRequest is the request struct for api ModifyCasterProgram +type ModifyCasterProgramRequest struct { + *requests.RpcRequest + CasterId string `position:"Query" name:"CasterId"` + Episode *[]ModifyCasterProgramEpisode `position:"Query" name:"Episode" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyCasterProgramEpisode is a repeated param struct in ModifyCasterProgramRequest +type ModifyCasterProgramEpisode struct { + EpisodeId string `name:"EpisodeId"` + EpisodeType string `name:"EpisodeType"` + EpisodeName string `name:"EpisodeName"` + ResourceId string `name:"ResourceId"` + ComponentId *[]string `name:"ComponentId" type:"Repeated"` + StartTime string `name:"StartTime"` + EndTime string `name:"EndTime"` + SwitchType string `name:"SwitchType"` +} + +// ModifyCasterProgramResponse is the response struct for api ModifyCasterProgram +type ModifyCasterProgramResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CasterId string `json:"CasterId" xml:"CasterId"` +} + +// CreateModifyCasterProgramRequest creates a request to invoke ModifyCasterProgram API +func CreateModifyCasterProgramRequest() (request *ModifyCasterProgramRequest) { + request = &ModifyCasterProgramRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "ModifyCasterProgram", "live", "openAPI") + return +} + +// CreateModifyCasterProgramResponse creates a response to parse from ModifyCasterProgram response +func CreateModifyCasterProgramResponse() (response *ModifyCasterProgramResponse) { + response = &ModifyCasterProgramResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/modify_caster_video_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/modify_caster_video_resource.go new file mode 100644 index 0000000..400601f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/modify_caster_video_resource.go @@ -0,0 +1,114 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyCasterVideoResource invokes the live.ModifyCasterVideoResource API synchronously +// api document: https://help.aliyun.com/api/live/modifycastervideoresource.html +func (client *Client) ModifyCasterVideoResource(request *ModifyCasterVideoResourceRequest) (response *ModifyCasterVideoResourceResponse, err error) { + response = CreateModifyCasterVideoResourceResponse() + err = client.DoAction(request, response) + return +} + +// ModifyCasterVideoResourceWithChan invokes the live.ModifyCasterVideoResource API asynchronously +// api document: https://help.aliyun.com/api/live/modifycastervideoresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCasterVideoResourceWithChan(request *ModifyCasterVideoResourceRequest) (<-chan *ModifyCasterVideoResourceResponse, <-chan error) { + responseChan := make(chan *ModifyCasterVideoResourceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyCasterVideoResource(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyCasterVideoResourceWithCallback invokes the live.ModifyCasterVideoResource API asynchronously +// api document: https://help.aliyun.com/api/live/modifycastervideoresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCasterVideoResourceWithCallback(request *ModifyCasterVideoResourceRequest, callback func(response *ModifyCasterVideoResourceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyCasterVideoResourceResponse + var err error + defer close(result) + response, err = client.ModifyCasterVideoResource(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyCasterVideoResourceRequest is the request struct for api ModifyCasterVideoResource +type ModifyCasterVideoResourceRequest struct { + *requests.RpcRequest + ResourceId string `position:"Query" name:"ResourceId"` + BeginOffset requests.Integer `position:"Query" name:"BeginOffset"` + VodUrl string `position:"Query" name:"VodUrl"` + LiveStreamUrl string `position:"Query" name:"LiveStreamUrl"` + CasterId string `position:"Query" name:"CasterId"` + EndOffset requests.Integer `position:"Query" name:"EndOffset"` + ResourceName string `position:"Query" name:"ResourceName"` + RepeatNum requests.Integer `position:"Query" name:"RepeatNum"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + MaterialId string `position:"Query" name:"MaterialId"` +} + +// ModifyCasterVideoResourceResponse is the response struct for api ModifyCasterVideoResource +type ModifyCasterVideoResourceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CasterId string `json:"CasterId" xml:"CasterId"` + ResourceId string `json:"ResourceId" xml:"ResourceId"` +} + +// CreateModifyCasterVideoResourceRequest creates a request to invoke ModifyCasterVideoResource API +func CreateModifyCasterVideoResourceRequest() (request *ModifyCasterVideoResourceRequest) { + request = &ModifyCasterVideoResourceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "ModifyCasterVideoResource", "live", "openAPI") + return +} + +// CreateModifyCasterVideoResourceResponse creates a response to parse from ModifyCasterVideoResource response +func CreateModifyCasterVideoResourceResponse() (response *ModifyCasterVideoResourceResponse) { + response = &ModifyCasterVideoResourceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/real_time_record_command.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/real_time_record_command.go new file mode 100644 index 0000000..8fd58fe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/real_time_record_command.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RealTimeRecordCommand invokes the live.RealTimeRecordCommand API synchronously +// api document: https://help.aliyun.com/api/live/realtimerecordcommand.html +func (client *Client) RealTimeRecordCommand(request *RealTimeRecordCommandRequest) (response *RealTimeRecordCommandResponse, err error) { + response = CreateRealTimeRecordCommandResponse() + err = client.DoAction(request, response) + return +} + +// RealTimeRecordCommandWithChan invokes the live.RealTimeRecordCommand API asynchronously +// api document: https://help.aliyun.com/api/live/realtimerecordcommand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RealTimeRecordCommandWithChan(request *RealTimeRecordCommandRequest) (<-chan *RealTimeRecordCommandResponse, <-chan error) { + responseChan := make(chan *RealTimeRecordCommandResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RealTimeRecordCommand(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RealTimeRecordCommandWithCallback invokes the live.RealTimeRecordCommand API asynchronously +// api document: https://help.aliyun.com/api/live/realtimerecordcommand.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RealTimeRecordCommandWithCallback(request *RealTimeRecordCommandRequest, callback func(response *RealTimeRecordCommandResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RealTimeRecordCommandResponse + var err error + defer close(result) + response, err = client.RealTimeRecordCommand(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RealTimeRecordCommandRequest is the request struct for api RealTimeRecordCommand +type RealTimeRecordCommandRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Command string `position:"Query" name:"Command"` + StreamName string `position:"Query" name:"StreamName"` +} + +// RealTimeRecordCommandResponse is the response struct for api RealTimeRecordCommand +type RealTimeRecordCommandResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRealTimeRecordCommandRequest creates a request to invoke RealTimeRecordCommand API +func CreateRealTimeRecordCommandRequest() (request *RealTimeRecordCommandRequest) { + request = &RealTimeRecordCommandRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "RealTimeRecordCommand", "live", "openAPI") + return +} + +// CreateRealTimeRecordCommandResponse creates a response to parse from RealTimeRecordCommand response +func CreateRealTimeRecordCommandResponse() (response *RealTimeRecordCommandResponse) { + response = &RealTimeRecordCommandResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/remove_multiple_stream_mix_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/remove_multiple_stream_mix_service.go new file mode 100644 index 0000000..bdc973b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/remove_multiple_stream_mix_service.go @@ -0,0 +1,110 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveMultipleStreamMixService invokes the live.RemoveMultipleStreamMixService API synchronously +// api document: https://help.aliyun.com/api/live/removemultiplestreammixservice.html +func (client *Client) RemoveMultipleStreamMixService(request *RemoveMultipleStreamMixServiceRequest) (response *RemoveMultipleStreamMixServiceResponse, err error) { + response = CreateRemoveMultipleStreamMixServiceResponse() + err = client.DoAction(request, response) + return +} + +// RemoveMultipleStreamMixServiceWithChan invokes the live.RemoveMultipleStreamMixService API asynchronously +// api document: https://help.aliyun.com/api/live/removemultiplestreammixservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveMultipleStreamMixServiceWithChan(request *RemoveMultipleStreamMixServiceRequest) (<-chan *RemoveMultipleStreamMixServiceResponse, <-chan error) { + responseChan := make(chan *RemoveMultipleStreamMixServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveMultipleStreamMixService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveMultipleStreamMixServiceWithCallback invokes the live.RemoveMultipleStreamMixService API asynchronously +// api document: https://help.aliyun.com/api/live/removemultiplestreammixservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveMultipleStreamMixServiceWithCallback(request *RemoveMultipleStreamMixServiceRequest, callback func(response *RemoveMultipleStreamMixServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveMultipleStreamMixServiceResponse + var err error + defer close(result) + response, err = client.RemoveMultipleStreamMixService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveMultipleStreamMixServiceRequest is the request struct for api RemoveMultipleStreamMixService +type RemoveMultipleStreamMixServiceRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + MixStreamName string `position:"Query" name:"MixStreamName"` + MixDomainName string `position:"Query" name:"MixDomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + MixAppName string `position:"Query" name:"MixAppName"` + StreamName string `position:"Query" name:"StreamName"` +} + +// RemoveMultipleStreamMixServiceResponse is the response struct for api RemoveMultipleStreamMixService +type RemoveMultipleStreamMixServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveMultipleStreamMixServiceRequest creates a request to invoke RemoveMultipleStreamMixService API +func CreateRemoveMultipleStreamMixServiceRequest() (request *RemoveMultipleStreamMixServiceRequest) { + request = &RemoveMultipleStreamMixServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "RemoveMultipleStreamMixService", "live", "openAPI") + return +} + +// CreateRemoveMultipleStreamMixServiceResponse creates a response to parse from RemoveMultipleStreamMixService response +func CreateRemoveMultipleStreamMixServiceResponse() (response *RemoveMultipleStreamMixServiceResponse) { + response = &RemoveMultipleStreamMixServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/resume_live_stream.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/resume_live_stream.go new file mode 100644 index 0000000..d82d8cb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/resume_live_stream.go @@ -0,0 +1,108 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ResumeLiveStream invokes the live.ResumeLiveStream API synchronously +// api document: https://help.aliyun.com/api/live/resumelivestream.html +func (client *Client) ResumeLiveStream(request *ResumeLiveStreamRequest) (response *ResumeLiveStreamResponse, err error) { + response = CreateResumeLiveStreamResponse() + err = client.DoAction(request, response) + return +} + +// ResumeLiveStreamWithChan invokes the live.ResumeLiveStream API asynchronously +// api document: https://help.aliyun.com/api/live/resumelivestream.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResumeLiveStreamWithChan(request *ResumeLiveStreamRequest) (<-chan *ResumeLiveStreamResponse, <-chan error) { + responseChan := make(chan *ResumeLiveStreamResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ResumeLiveStream(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ResumeLiveStreamWithCallback invokes the live.ResumeLiveStream API asynchronously +// api document: https://help.aliyun.com/api/live/resumelivestream.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResumeLiveStreamWithCallback(request *ResumeLiveStreamRequest, callback func(response *ResumeLiveStreamResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ResumeLiveStreamResponse + var err error + defer close(result) + response, err = client.ResumeLiveStream(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ResumeLiveStreamRequest is the request struct for api ResumeLiveStream +type ResumeLiveStreamRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + LiveStreamType string `position:"Query" name:"LiveStreamType"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// ResumeLiveStreamResponse is the response struct for api ResumeLiveStream +type ResumeLiveStreamResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateResumeLiveStreamRequest creates a request to invoke ResumeLiveStream API +func CreateResumeLiveStreamRequest() (request *ResumeLiveStreamRequest) { + request = &ResumeLiveStreamRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "ResumeLiveStream", "live", "openAPI") + return +} + +// CreateResumeLiveStreamResponse creates a response to parse from ResumeLiveStream response +func CreateResumeLiveStreamResponse() (response *ResumeLiveStreamResponse) { + response = &ResumeLiveStreamResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/set_caster_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/set_caster_config.go new file mode 100644 index 0000000..41edeed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/set_caster_config.go @@ -0,0 +1,115 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetCasterConfig invokes the live.SetCasterConfig API synchronously +// api document: https://help.aliyun.com/api/live/setcasterconfig.html +func (client *Client) SetCasterConfig(request *SetCasterConfigRequest) (response *SetCasterConfigResponse, err error) { + response = CreateSetCasterConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetCasterConfigWithChan invokes the live.SetCasterConfig API asynchronously +// api document: https://help.aliyun.com/api/live/setcasterconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetCasterConfigWithChan(request *SetCasterConfigRequest) (<-chan *SetCasterConfigResponse, <-chan error) { + responseChan := make(chan *SetCasterConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetCasterConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetCasterConfigWithCallback invokes the live.SetCasterConfig API asynchronously +// api document: https://help.aliyun.com/api/live/setcasterconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetCasterConfigWithCallback(request *SetCasterConfigRequest, callback func(response *SetCasterConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetCasterConfigResponse + var err error + defer close(result) + response, err = client.SetCasterConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetCasterConfigRequest is the request struct for api SetCasterConfig +type SetCasterConfigRequest struct { + *requests.RpcRequest + SideOutputUrl string `position:"Query" name:"SideOutputUrl"` + CasterId string `position:"Query" name:"CasterId"` + DomainName string `position:"Query" name:"DomainName"` + ProgramEffect requests.Integer `position:"Query" name:"ProgramEffect"` + ProgramName string `position:"Query" name:"ProgramName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + RecordConfig string `position:"Query" name:"RecordConfig"` + UrgentMaterialId string `position:"Query" name:"UrgentMaterialId"` + TranscodeConfig string `position:"Query" name:"TranscodeConfig"` + Delay requests.Float `position:"Query" name:"Delay"` + CasterName string `position:"Query" name:"CasterName"` + CallbackUrl string `position:"Query" name:"CallbackUrl"` +} + +// SetCasterConfigResponse is the response struct for api SetCasterConfig +type SetCasterConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CasterId string `json:"CasterId" xml:"CasterId"` +} + +// CreateSetCasterConfigRequest creates a request to invoke SetCasterConfig API +func CreateSetCasterConfigRequest() (request *SetCasterConfigRequest) { + request = &SetCasterConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "SetCasterConfig", "live", "openAPI") + return +} + +// CreateSetCasterConfigResponse creates a response to parse from SetCasterConfig response +func CreateSetCasterConfigResponse() (response *SetCasterConfigResponse) { + response = &SetCasterConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/set_caster_scene_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/set_caster_scene_config.go new file mode 100644 index 0000000..f26cedf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/set_caster_scene_config.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetCasterSceneConfig invokes the live.SetCasterSceneConfig API synchronously +// api document: https://help.aliyun.com/api/live/setcastersceneconfig.html +func (client *Client) SetCasterSceneConfig(request *SetCasterSceneConfigRequest) (response *SetCasterSceneConfigResponse, err error) { + response = CreateSetCasterSceneConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetCasterSceneConfigWithChan invokes the live.SetCasterSceneConfig API asynchronously +// api document: https://help.aliyun.com/api/live/setcastersceneconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetCasterSceneConfigWithChan(request *SetCasterSceneConfigRequest) (<-chan *SetCasterSceneConfigResponse, <-chan error) { + responseChan := make(chan *SetCasterSceneConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetCasterSceneConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetCasterSceneConfigWithCallback invokes the live.SetCasterSceneConfig API asynchronously +// api document: https://help.aliyun.com/api/live/setcastersceneconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetCasterSceneConfigWithCallback(request *SetCasterSceneConfigRequest, callback func(response *SetCasterSceneConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetCasterSceneConfigResponse + var err error + defer close(result) + response, err = client.SetCasterSceneConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetCasterSceneConfigRequest is the request struct for api SetCasterSceneConfig +type SetCasterSceneConfigRequest struct { + *requests.RpcRequest + ComponentId *[]string `position:"Query" name:"ComponentId" type:"Repeated"` + CasterId string `position:"Query" name:"CasterId"` + SceneId string `position:"Query" name:"SceneId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + LayoutId string `position:"Query" name:"LayoutId"` +} + +// SetCasterSceneConfigResponse is the response struct for api SetCasterSceneConfig +type SetCasterSceneConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetCasterSceneConfigRequest creates a request to invoke SetCasterSceneConfig API +func CreateSetCasterSceneConfigRequest() (request *SetCasterSceneConfigRequest) { + request = &SetCasterSceneConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "SetCasterSceneConfig", "live", "openAPI") + return +} + +// CreateSetCasterSceneConfigResponse creates a response to parse from SetCasterSceneConfig response +func CreateSetCasterSceneConfigResponse() (response *SetCasterSceneConfigResponse) { + response = &SetCasterSceneConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/set_live_streams_notify_url_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/set_live_streams_notify_url_config.go new file mode 100644 index 0000000..81293cf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/set_live_streams_notify_url_config.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetLiveStreamsNotifyUrlConfig invokes the live.SetLiveStreamsNotifyUrlConfig API synchronously +// api document: https://help.aliyun.com/api/live/setlivestreamsnotifyurlconfig.html +func (client *Client) SetLiveStreamsNotifyUrlConfig(request *SetLiveStreamsNotifyUrlConfigRequest) (response *SetLiveStreamsNotifyUrlConfigResponse, err error) { + response = CreateSetLiveStreamsNotifyUrlConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetLiveStreamsNotifyUrlConfigWithChan invokes the live.SetLiveStreamsNotifyUrlConfig API asynchronously +// api document: https://help.aliyun.com/api/live/setlivestreamsnotifyurlconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetLiveStreamsNotifyUrlConfigWithChan(request *SetLiveStreamsNotifyUrlConfigRequest) (<-chan *SetLiveStreamsNotifyUrlConfigResponse, <-chan error) { + responseChan := make(chan *SetLiveStreamsNotifyUrlConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetLiveStreamsNotifyUrlConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetLiveStreamsNotifyUrlConfigWithCallback invokes the live.SetLiveStreamsNotifyUrlConfig API asynchronously +// api document: https://help.aliyun.com/api/live/setlivestreamsnotifyurlconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetLiveStreamsNotifyUrlConfigWithCallback(request *SetLiveStreamsNotifyUrlConfigRequest, callback func(response *SetLiveStreamsNotifyUrlConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetLiveStreamsNotifyUrlConfigResponse + var err error + defer close(result) + response, err = client.SetLiveStreamsNotifyUrlConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetLiveStreamsNotifyUrlConfigRequest is the request struct for api SetLiveStreamsNotifyUrlConfig +type SetLiveStreamsNotifyUrlConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + NotifyUrl string `position:"Query" name:"NotifyUrl"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetLiveStreamsNotifyUrlConfigResponse is the response struct for api SetLiveStreamsNotifyUrlConfig +type SetLiveStreamsNotifyUrlConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetLiveStreamsNotifyUrlConfigRequest creates a request to invoke SetLiveStreamsNotifyUrlConfig API +func CreateSetLiveStreamsNotifyUrlConfigRequest() (request *SetLiveStreamsNotifyUrlConfigRequest) { + request = &SetLiveStreamsNotifyUrlConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "SetLiveStreamsNotifyUrlConfig", "live", "openAPI") + return +} + +// CreateSetLiveStreamsNotifyUrlConfigResponse creates a response to parse from SetLiveStreamsNotifyUrlConfig response +func CreateSetLiveStreamsNotifyUrlConfigResponse() (response *SetLiveStreamsNotifyUrlConfigResponse) { + response = &SetLiveStreamsNotifyUrlConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/start_caster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/start_caster.go new file mode 100644 index 0000000..b0087fd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/start_caster.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StartCaster invokes the live.StartCaster API synchronously +// api document: https://help.aliyun.com/api/live/startcaster.html +func (client *Client) StartCaster(request *StartCasterRequest) (response *StartCasterResponse, err error) { + response = CreateStartCasterResponse() + err = client.DoAction(request, response) + return +} + +// StartCasterWithChan invokes the live.StartCaster API asynchronously +// api document: https://help.aliyun.com/api/live/startcaster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartCasterWithChan(request *StartCasterRequest) (<-chan *StartCasterResponse, <-chan error) { + responseChan := make(chan *StartCasterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartCaster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartCasterWithCallback invokes the live.StartCaster API asynchronously +// api document: https://help.aliyun.com/api/live/startcaster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartCasterWithCallback(request *StartCasterRequest, callback func(response *StartCasterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartCasterResponse + var err error + defer close(result) + response, err = client.StartCaster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartCasterRequest is the request struct for api StartCaster +type StartCasterRequest struct { + *requests.RpcRequest + CasterId string `position:"Query" name:"CasterId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// StartCasterResponse is the response struct for api StartCaster +type StartCasterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PvwSceneInfos PvwSceneInfos `json:"PvwSceneInfos" xml:"PvwSceneInfos"` + PgmSceneInfos PgmSceneInfos `json:"PgmSceneInfos" xml:"PgmSceneInfos"` +} + +// CreateStartCasterRequest creates a request to invoke StartCaster API +func CreateStartCasterRequest() (request *StartCasterRequest) { + request = &StartCasterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "StartCaster", "live", "openAPI") + return +} + +// CreateStartCasterResponse creates a response to parse from StartCaster response +func CreateStartCasterResponse() (response *StartCasterResponse) { + response = &StartCasterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/start_caster_scene.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/start_caster_scene.go new file mode 100644 index 0000000..0f42359 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/start_caster_scene.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StartCasterScene invokes the live.StartCasterScene API synchronously +// api document: https://help.aliyun.com/api/live/startcasterscene.html +func (client *Client) StartCasterScene(request *StartCasterSceneRequest) (response *StartCasterSceneResponse, err error) { + response = CreateStartCasterSceneResponse() + err = client.DoAction(request, response) + return +} + +// StartCasterSceneWithChan invokes the live.StartCasterScene API asynchronously +// api document: https://help.aliyun.com/api/live/startcasterscene.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartCasterSceneWithChan(request *StartCasterSceneRequest) (<-chan *StartCasterSceneResponse, <-chan error) { + responseChan := make(chan *StartCasterSceneResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartCasterScene(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartCasterSceneWithCallback invokes the live.StartCasterScene API asynchronously +// api document: https://help.aliyun.com/api/live/startcasterscene.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartCasterSceneWithCallback(request *StartCasterSceneRequest, callback func(response *StartCasterSceneResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartCasterSceneResponse + var err error + defer close(result) + response, err = client.StartCasterScene(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartCasterSceneRequest is the request struct for api StartCasterScene +type StartCasterSceneRequest struct { + *requests.RpcRequest + CasterId string `position:"Query" name:"CasterId"` + SceneId string `position:"Query" name:"SceneId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// StartCasterSceneResponse is the response struct for api StartCasterScene +type StartCasterSceneResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + StreamUrl string `json:"StreamUrl" xml:"StreamUrl"` +} + +// CreateStartCasterSceneRequest creates a request to invoke StartCasterScene API +func CreateStartCasterSceneRequest() (request *StartCasterSceneRequest) { + request = &StartCasterSceneRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "StartCasterScene", "live", "openAPI") + return +} + +// CreateStartCasterSceneResponse creates a response to parse from StartCasterScene response +func CreateStartCasterSceneResponse() (response *StartCasterSceneResponse) { + response = &StartCasterSceneResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/start_mix_streams_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/start_mix_streams_service.go new file mode 100644 index 0000000..89bae79 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/start_mix_streams_service.go @@ -0,0 +1,113 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StartMixStreamsService invokes the live.StartMixStreamsService API synchronously +// api document: https://help.aliyun.com/api/live/startmixstreamsservice.html +func (client *Client) StartMixStreamsService(request *StartMixStreamsServiceRequest) (response *StartMixStreamsServiceResponse, err error) { + response = CreateStartMixStreamsServiceResponse() + err = client.DoAction(request, response) + return +} + +// StartMixStreamsServiceWithChan invokes the live.StartMixStreamsService API asynchronously +// api document: https://help.aliyun.com/api/live/startmixstreamsservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartMixStreamsServiceWithChan(request *StartMixStreamsServiceRequest) (<-chan *StartMixStreamsServiceResponse, <-chan error) { + responseChan := make(chan *StartMixStreamsServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartMixStreamsService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartMixStreamsServiceWithCallback invokes the live.StartMixStreamsService API asynchronously +// api document: https://help.aliyun.com/api/live/startmixstreamsservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartMixStreamsServiceWithCallback(request *StartMixStreamsServiceRequest, callback func(response *StartMixStreamsServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartMixStreamsServiceResponse + var err error + defer close(result) + response, err = client.StartMixStreamsService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartMixStreamsServiceRequest is the request struct for api StartMixStreamsService +type StartMixStreamsServiceRequest struct { + *requests.RpcRequest + MixType string `position:"Query" name:"MixType"` + SecurityToken string `position:"Query" name:"SecurityToken"` + MainDomainName string `position:"Query" name:"MainDomainName"` + MixStreamName string `position:"Query" name:"MixStreamName"` + MixTemplate string `position:"Query" name:"MixTemplate"` + MixDomainName string `position:"Query" name:"MixDomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + MainAppName string `position:"Query" name:"MainAppName"` + MixAppName string `position:"Query" name:"MixAppName"` + MainStreamName string `position:"Query" name:"MainStreamName"` +} + +// StartMixStreamsServiceResponse is the response struct for api StartMixStreamsService +type StartMixStreamsServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MixStreamsInfoList MixStreamsInfoListInStartMixStreamsService `json:"MixStreamsInfoList" xml:"MixStreamsInfoList"` +} + +// CreateStartMixStreamsServiceRequest creates a request to invoke StartMixStreamsService API +func CreateStartMixStreamsServiceRequest() (request *StartMixStreamsServiceRequest) { + request = &StartMixStreamsServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "StartMixStreamsService", "live", "openAPI") + return +} + +// CreateStartMixStreamsServiceResponse creates a response to parse from StartMixStreamsService response +func CreateStartMixStreamsServiceResponse() (response *StartMixStreamsServiceResponse) { + response = &StartMixStreamsServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/start_multiple_stream_mix_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/start_multiple_stream_mix_service.go new file mode 100644 index 0000000..d22f752 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/start_multiple_stream_mix_service.go @@ -0,0 +1,108 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StartMultipleStreamMixService invokes the live.StartMultipleStreamMixService API synchronously +// api document: https://help.aliyun.com/api/live/startmultiplestreammixservice.html +func (client *Client) StartMultipleStreamMixService(request *StartMultipleStreamMixServiceRequest) (response *StartMultipleStreamMixServiceResponse, err error) { + response = CreateStartMultipleStreamMixServiceResponse() + err = client.DoAction(request, response) + return +} + +// StartMultipleStreamMixServiceWithChan invokes the live.StartMultipleStreamMixService API asynchronously +// api document: https://help.aliyun.com/api/live/startmultiplestreammixservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartMultipleStreamMixServiceWithChan(request *StartMultipleStreamMixServiceRequest) (<-chan *StartMultipleStreamMixServiceResponse, <-chan error) { + responseChan := make(chan *StartMultipleStreamMixServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartMultipleStreamMixService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartMultipleStreamMixServiceWithCallback invokes the live.StartMultipleStreamMixService API asynchronously +// api document: https://help.aliyun.com/api/live/startmultiplestreammixservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartMultipleStreamMixServiceWithCallback(request *StartMultipleStreamMixServiceRequest, callback func(response *StartMultipleStreamMixServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartMultipleStreamMixServiceResponse + var err error + defer close(result) + response, err = client.StartMultipleStreamMixService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartMultipleStreamMixServiceRequest is the request struct for api StartMultipleStreamMixService +type StartMultipleStreamMixServiceRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + MixTemplate string `position:"Query" name:"MixTemplate"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// StartMultipleStreamMixServiceResponse is the response struct for api StartMultipleStreamMixService +type StartMultipleStreamMixServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStartMultipleStreamMixServiceRequest creates a request to invoke StartMultipleStreamMixService API +func CreateStartMultipleStreamMixServiceRequest() (request *StartMultipleStreamMixServiceRequest) { + request = &StartMultipleStreamMixServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "StartMultipleStreamMixService", "live", "openAPI") + return +} + +// CreateStartMultipleStreamMixServiceResponse creates a response to parse from StartMultipleStreamMixService response +func CreateStartMultipleStreamMixServiceResponse() (response *StartMultipleStreamMixServiceResponse) { + response = &StartMultipleStreamMixServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/stop_caster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/stop_caster.go new file mode 100644 index 0000000..a73966b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/stop_caster.go @@ -0,0 +1,104 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StopCaster invokes the live.StopCaster API synchronously +// api document: https://help.aliyun.com/api/live/stopcaster.html +func (client *Client) StopCaster(request *StopCasterRequest) (response *StopCasterResponse, err error) { + response = CreateStopCasterResponse() + err = client.DoAction(request, response) + return +} + +// StopCasterWithChan invokes the live.StopCaster API asynchronously +// api document: https://help.aliyun.com/api/live/stopcaster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopCasterWithChan(request *StopCasterRequest) (<-chan *StopCasterResponse, <-chan error) { + responseChan := make(chan *StopCasterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopCaster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopCasterWithCallback invokes the live.StopCaster API asynchronously +// api document: https://help.aliyun.com/api/live/stopcaster.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopCasterWithCallback(request *StopCasterRequest, callback func(response *StopCasterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopCasterResponse + var err error + defer close(result) + response, err = client.StopCaster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopCasterRequest is the request struct for api StopCaster +type StopCasterRequest struct { + *requests.RpcRequest + CasterId string `position:"Query" name:"CasterId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// StopCasterResponse is the response struct for api StopCaster +type StopCasterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStopCasterRequest creates a request to invoke StopCaster API +func CreateStopCasterRequest() (request *StopCasterRequest) { + request = &StopCasterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "StopCaster", "live", "openAPI") + return +} + +// CreateStopCasterResponse creates a response to parse from StopCaster response +func CreateStopCasterResponse() (response *StopCasterResponse) { + response = &StopCasterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/stop_caster_scene.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/stop_caster_scene.go new file mode 100644 index 0000000..c489021 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/stop_caster_scene.go @@ -0,0 +1,105 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StopCasterScene invokes the live.StopCasterScene API synchronously +// api document: https://help.aliyun.com/api/live/stopcasterscene.html +func (client *Client) StopCasterScene(request *StopCasterSceneRequest) (response *StopCasterSceneResponse, err error) { + response = CreateStopCasterSceneResponse() + err = client.DoAction(request, response) + return +} + +// StopCasterSceneWithChan invokes the live.StopCasterScene API asynchronously +// api document: https://help.aliyun.com/api/live/stopcasterscene.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopCasterSceneWithChan(request *StopCasterSceneRequest) (<-chan *StopCasterSceneResponse, <-chan error) { + responseChan := make(chan *StopCasterSceneResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopCasterScene(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopCasterSceneWithCallback invokes the live.StopCasterScene API asynchronously +// api document: https://help.aliyun.com/api/live/stopcasterscene.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopCasterSceneWithCallback(request *StopCasterSceneRequest, callback func(response *StopCasterSceneResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopCasterSceneResponse + var err error + defer close(result) + response, err = client.StopCasterScene(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopCasterSceneRequest is the request struct for api StopCasterScene +type StopCasterSceneRequest struct { + *requests.RpcRequest + CasterId string `position:"Query" name:"CasterId"` + SceneId string `position:"Query" name:"SceneId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// StopCasterSceneResponse is the response struct for api StopCasterScene +type StopCasterSceneResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStopCasterSceneRequest creates a request to invoke StopCasterScene API +func CreateStopCasterSceneRequest() (request *StopCasterSceneRequest) { + request = &StopCasterSceneRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "StopCasterScene", "live", "openAPI") + return +} + +// CreateStopCasterSceneResponse creates a response to parse from StopCasterScene response +func CreateStopCasterSceneResponse() (response *StopCasterSceneResponse) { + response = &StopCasterSceneResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/stop_mix_streams_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/stop_mix_streams_service.go new file mode 100644 index 0000000..d15ac81 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/stop_mix_streams_service.go @@ -0,0 +1,111 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StopMixStreamsService invokes the live.StopMixStreamsService API synchronously +// api document: https://help.aliyun.com/api/live/stopmixstreamsservice.html +func (client *Client) StopMixStreamsService(request *StopMixStreamsServiceRequest) (response *StopMixStreamsServiceResponse, err error) { + response = CreateStopMixStreamsServiceResponse() + err = client.DoAction(request, response) + return +} + +// StopMixStreamsServiceWithChan invokes the live.StopMixStreamsService API asynchronously +// api document: https://help.aliyun.com/api/live/stopmixstreamsservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopMixStreamsServiceWithChan(request *StopMixStreamsServiceRequest) (<-chan *StopMixStreamsServiceResponse, <-chan error) { + responseChan := make(chan *StopMixStreamsServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopMixStreamsService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopMixStreamsServiceWithCallback invokes the live.StopMixStreamsService API asynchronously +// api document: https://help.aliyun.com/api/live/stopmixstreamsservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopMixStreamsServiceWithCallback(request *StopMixStreamsServiceRequest, callback func(response *StopMixStreamsServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopMixStreamsServiceResponse + var err error + defer close(result) + response, err = client.StopMixStreamsService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopMixStreamsServiceRequest is the request struct for api StopMixStreamsService +type StopMixStreamsServiceRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + MainDomainName string `position:"Query" name:"MainDomainName"` + MixStreamName string `position:"Query" name:"MixStreamName"` + MixDomainName string `position:"Query" name:"MixDomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + MainAppName string `position:"Query" name:"MainAppName"` + MixAppName string `position:"Query" name:"MixAppName"` + MainStreamName string `position:"Query" name:"MainStreamName"` +} + +// StopMixStreamsServiceResponse is the response struct for api StopMixStreamsService +type StopMixStreamsServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MixStreamsInfoList MixStreamsInfoListInStopMixStreamsService `json:"MixStreamsInfoList" xml:"MixStreamsInfoList"` +} + +// CreateStopMixStreamsServiceRequest creates a request to invoke StopMixStreamsService API +func CreateStopMixStreamsServiceRequest() (request *StopMixStreamsServiceRequest) { + request = &StopMixStreamsServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "StopMixStreamsService", "live", "openAPI") + return +} + +// CreateStopMixStreamsServiceResponse creates a response to parse from StopMixStreamsService response +func CreateStopMixStreamsServiceResponse() (response *StopMixStreamsServiceResponse) { + response = &StopMixStreamsServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/stop_multiple_stream_mix_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/stop_multiple_stream_mix_service.go new file mode 100644 index 0000000..20e410e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/stop_multiple_stream_mix_service.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StopMultipleStreamMixService invokes the live.StopMultipleStreamMixService API synchronously +// api document: https://help.aliyun.com/api/live/stopmultiplestreammixservice.html +func (client *Client) StopMultipleStreamMixService(request *StopMultipleStreamMixServiceRequest) (response *StopMultipleStreamMixServiceResponse, err error) { + response = CreateStopMultipleStreamMixServiceResponse() + err = client.DoAction(request, response) + return +} + +// StopMultipleStreamMixServiceWithChan invokes the live.StopMultipleStreamMixService API asynchronously +// api document: https://help.aliyun.com/api/live/stopmultiplestreammixservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopMultipleStreamMixServiceWithChan(request *StopMultipleStreamMixServiceRequest) (<-chan *StopMultipleStreamMixServiceResponse, <-chan error) { + responseChan := make(chan *StopMultipleStreamMixServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopMultipleStreamMixService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopMultipleStreamMixServiceWithCallback invokes the live.StopMultipleStreamMixService API asynchronously +// api document: https://help.aliyun.com/api/live/stopmultiplestreammixservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopMultipleStreamMixServiceWithCallback(request *StopMultipleStreamMixServiceRequest, callback func(response *StopMultipleStreamMixServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopMultipleStreamMixServiceResponse + var err error + defer close(result) + response, err = client.StopMultipleStreamMixService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopMultipleStreamMixServiceRequest is the request struct for api StopMultipleStreamMixService +type StopMultipleStreamMixServiceRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StreamName string `position:"Query" name:"StreamName"` +} + +// StopMultipleStreamMixServiceResponse is the response struct for api StopMultipleStreamMixService +type StopMultipleStreamMixServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStopMultipleStreamMixServiceRequest creates a request to invoke StopMultipleStreamMixService API +func CreateStopMultipleStreamMixServiceRequest() (request *StopMultipleStreamMixServiceRequest) { + request = &StopMultipleStreamMixServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "StopMultipleStreamMixService", "live", "openAPI") + return +} + +// CreateStopMultipleStreamMixServiceResponse creates a response to parse from StopMultipleStreamMixService response +func CreateStopMultipleStreamMixServiceResponse() (response *StopMultipleStreamMixServiceResponse) { + response = &StopMultipleStreamMixServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_audio_layer.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_audio_layer.go new file mode 100644 index 0000000..c40a976 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_audio_layer.go @@ -0,0 +1,23 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AudioLayer is a nested struct in live response +type AudioLayer struct { + VolumeRate float64 `json:"VolumeRate" xml:"VolumeRate"` + ValidChannel string `json:"ValidChannel" xml:"ValidChannel"` + FixedDelayDuration int `json:"FixedDelayDuration" xml:"FixedDelayDuration"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_audio_layers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_audio_layers.go new file mode 100644 index 0000000..1e551ee --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_audio_layers.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AudioLayers is a nested struct in live response +type AudioLayers struct { + AudioLayer []AudioLayer `json:"AudioLayer" xml:"AudioLayer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_blend_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_blend_list.go new file mode 100644 index 0000000..80dc00e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_blend_list.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BlendList is a nested struct in live response +type BlendList struct { + LocationId []string `json:"LocationId" xml:"LocationId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_caption_layer_content.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_caption_layer_content.go new file mode 100644 index 0000000..f5195b0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_caption_layer_content.go @@ -0,0 +1,28 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CaptionLayerContent is a nested struct in live response +type CaptionLayerContent struct { + LocationId string `json:"LocationId" xml:"LocationId"` + PtsOffset int `json:"PtsOffset" xml:"PtsOffset"` + WordsCount int `json:"WordsCount" xml:"WordsCount"` + Color string `json:"Color" xml:"Color"` + FontName string `json:"FontName" xml:"FontName"` + SizeNormalized float64 `json:"SizeNormalized" xml:"SizeNormalized"` + BorderWidthNormalized float64 `json:"BorderWidthNormalized" xml:"BorderWidthNormalized"` + BorderColor string `json:"BorderColor" xml:"BorderColor"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_caster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_caster.go new file mode 100644 index 0000000..0761c4d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_caster.go @@ -0,0 +1,30 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Caster is a nested struct in live response +type Caster struct { + Status int `json:"Status" xml:"Status"` + NormType int `json:"NormType" xml:"NormType"` + CasterId string `json:"CasterId" xml:"CasterId"` + CasterName string `json:"CasterName" xml:"CasterName"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + StartTime string `json:"StartTime" xml:"StartTime"` + PurchaseTime string `json:"PurchaseTime" xml:"PurchaseTime"` + ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + CasterTemplate string `json:"CasterTemplate" xml:"CasterTemplate"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_caster_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_caster_list.go new file mode 100644 index 0000000..d1282b4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_caster_list.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CasterList is a nested struct in live response +type CasterList struct { + Caster []Caster `json:"Caster" xml:"Caster"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_caster_stream.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_caster_stream.go new file mode 100644 index 0000000..a601d07 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_caster_stream.go @@ -0,0 +1,24 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CasterStream is a nested struct in live response +type CasterStream struct { + SceneId string `json:"SceneId" xml:"SceneId"` + StreamUrl string `json:"StreamUrl" xml:"StreamUrl"` + OutputType int `json:"OutputType" xml:"OutputType"` + StreamInfos StreamInfosInDescribeCasterStreamUrl `json:"StreamInfos" xml:"StreamInfos"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_caster_streams.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_caster_streams.go new file mode 100644 index 0000000..16d1458 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_caster_streams.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CasterStreams is a nested struct in live response +type CasterStreams struct { + CasterStream []CasterStream `json:"CasterStream" xml:"CasterStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_component.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_component.go new file mode 100644 index 0000000..647bc25 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_component.go @@ -0,0 +1,29 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Component is a nested struct in live response +type Component struct { + ComponentId string `json:"ComponentId" xml:"ComponentId"` + ComponentName string `json:"ComponentName" xml:"ComponentName"` + LocationId string `json:"LocationId" xml:"LocationId"` + ComponentType string `json:"ComponentType" xml:"ComponentType"` + Effect string `json:"Effect" xml:"Effect"` + ComponentLayer ComponentLayer `json:"ComponentLayer" xml:"ComponentLayer"` + TextLayerContent TextLayerContent `json:"TextLayerContent" xml:"TextLayerContent"` + ImageLayerContent ImageLayerContent `json:"ImageLayerContent" xml:"ImageLayerContent"` + CaptionLayerContent CaptionLayerContent `json:"CaptionLayerContent" xml:"CaptionLayerContent"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_component_ids_in_describe_caster_program.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_component_ids_in_describe_caster_program.go new file mode 100644 index 0000000..43843bb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_component_ids_in_describe_caster_program.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ComponentIdsInDescribeCasterProgram is a nested struct in live response +type ComponentIdsInDescribeCasterProgram struct { + ComponentId []string `json:"ComponentId" xml:"ComponentId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_component_ids_in_describe_caster_scenes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_component_ids_in_describe_caster_scenes.go new file mode 100644 index 0000000..8d5cd43 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_component_ids_in_describe_caster_scenes.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ComponentIdsInDescribeCasterScenes is a nested struct in live response +type ComponentIdsInDescribeCasterScenes struct { + ComponentId []string `json:"componentId" xml:"componentId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_component_layer.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_component_layer.go new file mode 100644 index 0000000..772632c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_component_layer.go @@ -0,0 +1,24 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ComponentLayer is a nested struct in live response +type ComponentLayer struct { + HeightNormalized float64 `json:"HeightNormalized" xml:"HeightNormalized"` + WidthNormalized float64 `json:"WidthNormalized" xml:"WidthNormalized"` + PositionRefer string `json:"PositionRefer" xml:"PositionRefer"` + PositionNormalizeds PositionNormalizedsInDescribeCasterComponents `json:"PositionNormalizeds" xml:"PositionNormalizeds"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_components.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_components.go new file mode 100644 index 0000000..8998be3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_components.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Components is a nested struct in live response +type Components struct { + Component []Component `json:"Component" xml:"Component"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_control_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_control_info.go new file mode 100644 index 0000000..d97a8c0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_control_info.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ControlInfo is a nested struct in live response +type ControlInfo struct { + LiveStreamControlInfo []LiveStreamControlInfo `json:"LiveStreamControlInfo" xml:"LiveStreamControlInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_custom_transcode_parameters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_custom_transcode_parameters.go new file mode 100644 index 0000000..4b81d93 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_custom_transcode_parameters.go @@ -0,0 +1,25 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CustomTranscodeParameters is a nested struct in live response +type CustomTranscodeParameters struct { + VideoBitrate int `json:"VideoBitrate" xml:"VideoBitrate"` + FPS int `json:"FPS" xml:"FPS"` + Height int `json:"Height" xml:"Height"` + Width int `json:"Width" xml:"Width"` + TemplateType string `json:"TemplateType" xml:"TemplateType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_detail.go new file mode 100644 index 0000000..4a63801 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_detail.go @@ -0,0 +1,23 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Detail is a nested struct in live response +type Detail struct { + MP4 int `json:"MP4" xml:"MP4"` + FLV int `json:"FLV" xml:"FLV"` + TS int `json:"TS" xml:"TS"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_domain_transcode_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_domain_transcode_info.go new file mode 100644 index 0000000..2e315a0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_domain_transcode_info.go @@ -0,0 +1,24 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainTranscodeInfo is a nested struct in live response +type DomainTranscodeInfo struct { + TranscodeApp string `json:"TranscodeApp" xml:"TranscodeApp"` + TranscodeName string `json:"TranscodeName" xml:"TranscodeName"` + TranscodeTemplate string `json:"TranscodeTemplate" xml:"TranscodeTemplate"` + CustomTranscodeParameters CustomTranscodeParameters `json:"CustomTranscodeParameters" xml:"CustomTranscodeParameters"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_domain_transcode_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_domain_transcode_list.go new file mode 100644 index 0000000..ecb52f7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_domain_transcode_list.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainTranscodeList is a nested struct in live response +type DomainTranscodeList struct { + DomainTranscodeInfo []DomainTranscodeInfo `json:"DomainTranscodeInfo" xml:"DomainTranscodeInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_episode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_episode.go new file mode 100644 index 0000000..21d70b1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_episode.go @@ -0,0 +1,29 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Episode is a nested struct in live response +type Episode struct { + EpisodeId string `json:"EpisodeId" xml:"EpisodeId"` + EpisodeType string `json:"EpisodeType" xml:"EpisodeType"` + EpisodeName string `json:"EpisodeName" xml:"EpisodeName"` + ResourceId string `json:"ResourceId" xml:"ResourceId"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + SwitchType string `json:"SwitchType" xml:"SwitchType"` + Status int `json:"Status" xml:"Status"` + ComponentIds ComponentIdsInDescribeCasterProgram `json:"ComponentIds" xml:"ComponentIds"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_episode_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_episode_id.go new file mode 100644 index 0000000..23e845a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_episode_id.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EpisodeId is a nested struct in live response +type EpisodeId struct { + EpisodeId string `json:"EpisodeId" xml:"EpisodeId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_episode_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_episode_ids.go new file mode 100644 index 0000000..d8e0136 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_episode_ids.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EpisodeIds is a nested struct in live response +type EpisodeIds struct { + EpisodeId []EpisodeId `json:"EpisodeId" xml:"EpisodeId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_episodes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_episodes.go new file mode 100644 index 0000000..2c7393c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_episodes.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Episodes is a nested struct in live response +type Episodes struct { + Episode []Episode `json:"Episode" xml:"Episode"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_frame_rate_and_bit_rate_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_frame_rate_and_bit_rate_info.go new file mode 100644 index 0000000..ef395a1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_frame_rate_and_bit_rate_info.go @@ -0,0 +1,25 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FrameRateAndBitRateInfo is a nested struct in live response +type FrameRateAndBitRateInfo struct { + BitRate float64 `json:"BitRate" xml:"BitRate"` + Time string `json:"Time" xml:"Time"` + VideoFrameRate float64 `json:"VideoFrameRate" xml:"VideoFrameRate"` + AudioFrameRate float64 `json:"AudioFrameRate" xml:"AudioFrameRate"` + StreamUrl string `json:"StreamUrl" xml:"StreamUrl"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_frame_rate_and_bit_rate_infos_in_describe_live_stream_bit_rate_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_frame_rate_and_bit_rate_infos_in_describe_live_stream_bit_rate_data.go new file mode 100644 index 0000000..8cbce89 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_frame_rate_and_bit_rate_infos_in_describe_live_stream_bit_rate_data.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FrameRateAndBitRateInfosInDescribeLiveStreamBitRateData is a nested struct in live response +type FrameRateAndBitRateInfosInDescribeLiveStreamBitRateData struct { + FrameRateAndBitRateInfo []FrameRateAndBitRateInfo `json:"FrameRateAndBitRateInfo" xml:"FrameRateAndBitRateInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_frame_rate_and_bit_rate_infos_in_describe_live_streams_frame_rate_and_bit_rate_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_frame_rate_and_bit_rate_infos_in_describe_live_streams_frame_rate_and_bit_rate_data.go new file mode 100644 index 0000000..a0d7e9a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_frame_rate_and_bit_rate_infos_in_describe_live_streams_frame_rate_and_bit_rate_data.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FrameRateAndBitRateInfosInDescribeLiveStreamsFrameRateAndBitRateData is a nested struct in live response +type FrameRateAndBitRateInfosInDescribeLiveStreamsFrameRateAndBitRateData struct { + FrameRateAndBitRateInfo []FrameRateAndBitRateInfo `json:"FrameRateAndBitRateInfo" xml:"FrameRateAndBitRateInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_image_layer_content.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_image_layer_content.go new file mode 100644 index 0000000..e1ae20c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_image_layer_content.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ImageLayerContent is a nested struct in live response +type ImageLayerContent struct { + MaterialId string `json:"MaterialId" xml:"MaterialId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_item_ids_in_add_caster_episode_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_item_ids_in_add_caster_episode_group.go new file mode 100644 index 0000000..fce8386 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_item_ids_in_add_caster_episode_group.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemIdsInAddCasterEpisodeGroup is a nested struct in live response +type ItemIdsInAddCasterEpisodeGroup struct { + ItemId []string `json:"ItemId" xml:"ItemId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_item_ids_in_add_caster_episode_group_content.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_item_ids_in_add_caster_episode_group_content.go new file mode 100644 index 0000000..4dfa209 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_item_ids_in_add_caster_episode_group_content.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemIdsInAddCasterEpisodeGroupContent is a nested struct in live response +type ItemIdsInAddCasterEpisodeGroupContent struct { + ItemId []string `json:"ItemId" xml:"ItemId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_layout.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_layout.go new file mode 100644 index 0000000..d83ba31 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_layout.go @@ -0,0 +1,25 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Layout is a nested struct in live response +type Layout struct { + LayoutId string `json:"LayoutId" xml:"LayoutId"` + BlendList BlendList `json:"BlendList" xml:"BlendList"` + MixList MixList `json:"MixList" xml:"MixList"` + VideoLayers VideoLayers `json:"VideoLayers" xml:"VideoLayers"` + AudioLayers AudioLayers `json:"AudioLayers" xml:"AudioLayers"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_layouts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_layouts.go new file mode 100644 index 0000000..02bc5da --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_layouts.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Layouts is a nested struct in live response +type Layouts struct { + Layout []Layout `json:"Layout" xml:"Layout"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_app_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_app_record.go new file mode 100644 index 0000000..ec8c8f7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_app_record.go @@ -0,0 +1,31 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveAppRecord is a nested struct in live response +type LiveAppRecord struct { + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DomainName string `json:"DomainName" xml:"DomainName"` + OnDemond int `json:"OnDemond" xml:"OnDemond"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + OssEndpoint string `json:"OssEndpoint" xml:"OssEndpoint"` + AppName string `json:"AppName" xml:"AppName"` + SourceUrl string `json:"SourceUrl" xml:"SourceUrl"` + StreamName string `json:"StreamName" xml:"StreamName"` + OssBucket string `json:"OssBucket" xml:"OssBucket"` + RecordFormatList RecordFormatList `json:"RecordFormatList" xml:"RecordFormatList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_app_record_list_in_describe_live_pull_stream_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_app_record_list_in_describe_live_pull_stream_config.go new file mode 100644 index 0000000..315b1b8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_app_record_list_in_describe_live_pull_stream_config.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveAppRecordListInDescribeLivePullStreamConfig is a nested struct in live response +type LiveAppRecordListInDescribeLivePullStreamConfig struct { + LiveAppRecord []LiveAppRecord `json:"LiveAppRecord" xml:"LiveAppRecord"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_app_record_list_in_describe_live_record_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_app_record_list_in_describe_live_record_config.go new file mode 100644 index 0000000..ef8dc44 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_app_record_list_in_describe_live_record_config.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveAppRecordListInDescribeLiveRecordConfig is a nested struct in live response +type LiveAppRecordListInDescribeLiveRecordConfig struct { + LiveAppRecord []LiveAppRecord `json:"LiveAppRecord" xml:"LiveAppRecord"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_detect_notify_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_detect_notify_config.go new file mode 100644 index 0000000..aee0850 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_detect_notify_config.go @@ -0,0 +1,22 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveDetectNotifyConfig is a nested struct in live response +type LiveDetectNotifyConfig struct { + DomainName string `json:"DomainName" xml:"DomainName"` + NotifyUrl string `json:"NotifyUrl" xml:"NotifyUrl"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_record_notify_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_record_notify_config.go new file mode 100644 index 0000000..e7ad1a7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_record_notify_config.go @@ -0,0 +1,24 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveRecordNotifyConfig is a nested struct in live response +type LiveRecordNotifyConfig struct { + DomainName string `json:"DomainName" xml:"DomainName"` + NotifyUrl string `json:"NotifyUrl" xml:"NotifyUrl"` + OnDemandUrl string `json:"OnDemandUrl" xml:"OnDemandUrl"` + NeedStatusNotify bool `json:"NeedStatusNotify" xml:"NeedStatusNotify"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_record_vod_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_record_vod_config.go new file mode 100644 index 0000000..7918727 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_record_vod_config.go @@ -0,0 +1,28 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveRecordVodConfig is a nested struct in live response +type LiveRecordVodConfig struct { + CreateTime string `json:"CreateTime" xml:"CreateTime"` + DomainName string `json:"DomainName" xml:"DomainName"` + AppName string `json:"AppName" xml:"AppName"` + StreamName string `json:"StreamName" xml:"StreamName"` + VodTranscodeGroupId string `json:"VodTranscodeGroupId" xml:"VodTranscodeGroupId"` + CycleDuration int `json:"CycleDuration" xml:"CycleDuration"` + AutoCompose string `json:"AutoCompose" xml:"AutoCompose"` + ComposeVodTranscodeGroupId string `json:"ComposeVodTranscodeGroupId" xml:"ComposeVodTranscodeGroupId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_record_vod_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_record_vod_configs.go new file mode 100644 index 0000000..21e32de --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_record_vod_configs.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveRecordVodConfigs is a nested struct in live response +type LiveRecordVodConfigs struct { + LiveRecordVodConfig []LiveRecordVodConfig `json:"LiveRecordVodConfig" xml:"LiveRecordVodConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_snapshot_detect_porn_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_snapshot_detect_porn_config.go new file mode 100644 index 0000000..2adc748 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_snapshot_detect_porn_config.go @@ -0,0 +1,27 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveSnapshotDetectPornConfig is a nested struct in live response +type LiveSnapshotDetectPornConfig struct { + DomainName string `json:"DomainName" xml:"DomainName"` + AppName string `json:"AppName" xml:"AppName"` + OssEndpoint string `json:"OssEndpoint" xml:"OssEndpoint"` + OssBucket string `json:"OssBucket" xml:"OssBucket"` + OssObject string `json:"OssObject" xml:"OssObject"` + Interval int `json:"Interval" xml:"Interval"` + Scenes Scenes `json:"Scenes" xml:"Scenes"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_snapshot_detect_porn_config_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_snapshot_detect_porn_config_list.go new file mode 100644 index 0000000..2d28d77 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_snapshot_detect_porn_config_list.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveSnapshotDetectPornConfigList is a nested struct in live response +type LiveSnapshotDetectPornConfigList struct { + LiveSnapshotDetectPornConfig []LiveSnapshotDetectPornConfig `json:"LiveSnapshotDetectPornConfig" xml:"LiveSnapshotDetectPornConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_control_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_control_info.go new file mode 100644 index 0000000..2e43abb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_control_info.go @@ -0,0 +1,24 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamControlInfo is a nested struct in live response +type LiveStreamControlInfo struct { + StreamName string `json:"StreamName" xml:"StreamName"` + ClientIP string `json:"ClientIP" xml:"ClientIP"` + Action string `json:"Action" xml:"Action"` + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_online_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_online_info.go new file mode 100644 index 0000000..1ababa5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_online_info.go @@ -0,0 +1,29 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamOnlineInfo is a nested struct in live response +type LiveStreamOnlineInfo struct { + DomainName string `json:"DomainName" xml:"DomainName"` + AppName string `json:"AppName" xml:"AppName"` + StreamName string `json:"StreamName" xml:"StreamName"` + PublishTime string `json:"PublishTime" xml:"PublishTime"` + PublishUrl string `json:"PublishUrl" xml:"PublishUrl"` + PublishDomain string `json:"PublishDomain" xml:"PublishDomain"` + PublishType string `json:"PublishType" xml:"PublishType"` + Transcoded string `json:"Transcoded" xml:"Transcoded"` + TranscodeId string `json:"TranscodeId" xml:"TranscodeId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_online_user_num_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_online_user_num_info.go new file mode 100644 index 0000000..61dd7c6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_online_user_num_info.go @@ -0,0 +1,23 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamOnlineUserNumInfo is a nested struct in live response +type LiveStreamOnlineUserNumInfo struct { + StreamUrl string `json:"StreamUrl" xml:"StreamUrl"` + UserNumber int `json:"UserNumber" xml:"UserNumber"` + Time string `json:"Time" xml:"Time"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_publish_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_publish_info.go new file mode 100644 index 0000000..f5a01a2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_publish_info.go @@ -0,0 +1,33 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamPublishInfo is a nested struct in live response +type LiveStreamPublishInfo struct { + DomainName string `json:"DomainName" xml:"DomainName"` + AppName string `json:"AppName" xml:"AppName"` + StreamName string `json:"StreamName" xml:"StreamName"` + StreamUrl string `json:"StreamUrl" xml:"StreamUrl"` + PublishTime string `json:"PublishTime" xml:"PublishTime"` + StopTime string `json:"StopTime" xml:"StopTime"` + PublishUrl string `json:"PublishUrl" xml:"PublishUrl"` + ClientAddr string `json:"ClientAddr" xml:"ClientAddr"` + EdgeNodeAddr string `json:"EdgeNodeAddr" xml:"EdgeNodeAddr"` + PublishDomain string `json:"PublishDomain" xml:"PublishDomain"` + PublishType string `json:"PublishType" xml:"PublishType"` + Transcoded string `json:"Transcoded" xml:"Transcoded"` + TranscodeId string `json:"TranscodeId" xml:"TranscodeId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_snapshot_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_snapshot_config.go new file mode 100644 index 0000000..1bb12a2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_snapshot_config.go @@ -0,0 +1,28 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamSnapshotConfig is a nested struct in live response +type LiveStreamSnapshotConfig struct { + DomainName string `json:"DomainName" xml:"DomainName"` + AppName string `json:"AppName" xml:"AppName"` + TimeInterval int `json:"TimeInterval" xml:"TimeInterval"` + OssEndpoint string `json:"OssEndpoint" xml:"OssEndpoint"` + OssBucket string `json:"OssBucket" xml:"OssBucket"` + OverwriteOssObject string `json:"OverwriteOssObject" xml:"OverwriteOssObject"` + SequenceOssObject string `json:"SequenceOssObject" xml:"SequenceOssObject"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_snapshot_config_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_snapshot_config_list.go new file mode 100644 index 0000000..ac7668f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_snapshot_config_list.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamSnapshotConfigList is a nested struct in live response +type LiveStreamSnapshotConfigList struct { + LiveStreamSnapshotConfig []LiveStreamSnapshotConfig `json:"LiveStreamSnapshotConfig" xml:"LiveStreamSnapshotConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_snapshot_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_snapshot_info.go new file mode 100644 index 0000000..639208f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_snapshot_info.go @@ -0,0 +1,24 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamSnapshotInfo is a nested struct in live response +type LiveStreamSnapshotInfo struct { + OssEndpoint string `json:"OssEndpoint" xml:"OssEndpoint"` + OssBucket string `json:"OssBucket" xml:"OssBucket"` + OssObject string `json:"OssObject" xml:"OssObject"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_snapshot_info_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_snapshot_info_list.go new file mode 100644 index 0000000..b44f779 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_snapshot_info_list.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamSnapshotInfoList is a nested struct in live response +type LiveStreamSnapshotInfoList struct { + LiveStreamSnapshotInfo []LiveStreamSnapshotInfo `json:"LiveStreamSnapshotInfo" xml:"LiveStreamSnapshotInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_user_num_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_user_num_info.go new file mode 100644 index 0000000..eab3e42 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_user_num_info.go @@ -0,0 +1,22 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamUserNumInfo is a nested struct in live response +type LiveStreamUserNumInfo struct { + StreamTime string `json:"StreamTime" xml:"StreamTime"` + UserNum string `json:"UserNum" xml:"UserNum"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_user_num_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_user_num_infos.go new file mode 100644 index 0000000..1181863 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_stream_user_num_infos.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamUserNumInfos is a nested struct in live response +type LiveStreamUserNumInfos struct { + LiveStreamUserNumInfo []LiveStreamUserNumInfo `json:"LiveStreamUserNumInfo" xml:"LiveStreamUserNumInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_streams_notify_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_streams_notify_config.go new file mode 100644 index 0000000..9c524d5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_streams_notify_config.go @@ -0,0 +1,22 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveStreamsNotifyConfig is a nested struct in live response +type LiveStreamsNotifyConfig struct { + DomainName string `json:"DomainName" xml:"DomainName"` + NotifyUrl string `json:"NotifyUrl" xml:"NotifyUrl"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_template_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_template_ids.go new file mode 100644 index 0000000..b2d750e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_live_template_ids.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LiveTemplateIds is a nested struct in live response +type LiveTemplateIds struct { + LocationId []string `json:"LocationId" xml:"LocationId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_config.go new file mode 100644 index 0000000..d546706 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_config.go @@ -0,0 +1,23 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MixConfig is a nested struct in live response +type MixConfig struct { + DomainName string `json:"DomainName" xml:"DomainName"` + AppName string `json:"AppName" xml:"AppName"` + Template string `json:"Template" xml:"Template"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_config_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_config_list.go new file mode 100644 index 0000000..80a8cb7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_config_list.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MixConfigList is a nested struct in live response +type MixConfigList struct { + MixConfig []MixConfig `json:"MixConfig" xml:"MixConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_list.go new file mode 100644 index 0000000..de50a1d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_list.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MixList is a nested struct in live response +type MixList struct { + LocationId []string `json:"LocationId" xml:"LocationId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_streams_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_streams_info.go new file mode 100644 index 0000000..6379254 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_streams_info.go @@ -0,0 +1,23 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MixStreamsInfo is a nested struct in live response +type MixStreamsInfo struct { + DomainName string `json:"DomainName" xml:"DomainName"` + AppName string `json:"AppName" xml:"AppName"` + StreamName string `json:"StreamName" xml:"StreamName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_streams_info_list_in_start_mix_streams_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_streams_info_list_in_start_mix_streams_service.go new file mode 100644 index 0000000..cc6b0f9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_streams_info_list_in_start_mix_streams_service.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MixStreamsInfoListInStartMixStreamsService is a nested struct in live response +type MixStreamsInfoListInStartMixStreamsService struct { + MixStreamsInfo []MixStreamsInfo `json:"MixStreamsInfo" xml:"MixStreamsInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_streams_info_list_in_stop_mix_streams_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_streams_info_list_in_stop_mix_streams_service.go new file mode 100644 index 0000000..df2b93a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_mix_streams_info_list_in_stop_mix_streams_service.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MixStreamsInfoListInStopMixStreamsService is a nested struct in live response +type MixStreamsInfoListInStopMixStreamsService struct { + MixStreamsInfo []MixStreamsInfo `json:"MixStreamsInfo" xml:"MixStreamsInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_online_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_online_info.go new file mode 100644 index 0000000..c6ff0b5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_online_info.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OnlineInfo is a nested struct in live response +type OnlineInfo struct { + LiveStreamOnlineInfo []LiveStreamOnlineInfo `json:"LiveStreamOnlineInfo" xml:"LiveStreamOnlineInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_online_user_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_online_user_info.go new file mode 100644 index 0000000..e164856 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_online_user_info.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OnlineUserInfo is a nested struct in live response +type OnlineUserInfo struct { + LiveStreamOnlineUserNumInfo []LiveStreamOnlineUserNumInfo `json:"LiveStreamOnlineUserNumInfo" xml:"LiveStreamOnlineUserNumInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_pgm_scene_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_pgm_scene_infos.go new file mode 100644 index 0000000..0b56222 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_pgm_scene_infos.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PgmSceneInfos is a nested struct in live response +type PgmSceneInfos struct { + SceneInfo []SceneInfo `json:"SceneInfo" xml:"SceneInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_position_normalizeds_in_describe_caster_components.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_position_normalizeds_in_describe_caster_components.go new file mode 100644 index 0000000..8993bc4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_position_normalizeds_in_describe_caster_components.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PositionNormalizedsInDescribeCasterComponents is a nested struct in live response +type PositionNormalizedsInDescribeCasterComponents struct { + Position []string `json:"Position" xml:"Position"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_position_normalizeds_in_describe_caster_layouts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_position_normalizeds_in_describe_caster_layouts.go new file mode 100644 index 0000000..bd6b0bd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_position_normalizeds_in_describe_caster_layouts.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PositionNormalizedsInDescribeCasterLayouts is a nested struct in live response +type PositionNormalizedsInDescribeCasterLayouts struct { + Position []string `json:"Position" xml:"Position"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_publish_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_publish_info.go new file mode 100644 index 0000000..3d910e7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_publish_info.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PublishInfo is a nested struct in live response +type PublishInfo struct { + LiveStreamPublishInfo []LiveStreamPublishInfo `json:"LiveStreamPublishInfo" xml:"LiveStreamPublishInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_pvw_scene_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_pvw_scene_infos.go new file mode 100644 index 0000000..ac05806 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_pvw_scene_infos.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PvwSceneInfos is a nested struct in live response +type PvwSceneInfos struct { + SceneInfo []SceneInfo `json:"SceneInfo" xml:"SceneInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_config.go new file mode 100644 index 0000000..2866d36 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_config.go @@ -0,0 +1,23 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordConfig is a nested struct in live response +type RecordConfig struct { + OssEndpoint string `json:"OssEndpoint" xml:"OssEndpoint"` + OssBucket string `json:"OssBucket" xml:"OssBucket"` + RecordFormat RecordFormatInDescribeCasterConfig `json:"RecordFormat" xml:"RecordFormat"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_content_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_content_info.go new file mode 100644 index 0000000..5cde634 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_content_info.go @@ -0,0 +1,26 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordContentInfo is a nested struct in live response +type RecordContentInfo struct { + OssEndpoint string `json:"OssEndpoint" xml:"OssEndpoint"` + OssBucket string `json:"OssBucket" xml:"OssBucket"` + OssObjectPrefix string `json:"OssObjectPrefix" xml:"OssObjectPrefix"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + Duration float64 `json:"Duration" xml:"Duration"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_content_info_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_content_info_list.go new file mode 100644 index 0000000..c8eaad8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_content_info_list.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordContentInfoList is a nested struct in live response +type RecordContentInfoList struct { + RecordContentInfo []RecordContentInfo `json:"RecordContentInfo" xml:"RecordContentInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_data_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_data_info.go new file mode 100644 index 0000000..10252a6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_data_info.go @@ -0,0 +1,23 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordDataInfo is a nested struct in live response +type RecordDataInfo struct { + Date string `json:"Date" xml:"Date"` + Total int `json:"Total" xml:"Total"` + Detail Detail `json:"Detail" xml:"Detail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_data_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_data_infos.go new file mode 100644 index 0000000..e423a6a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_data_infos.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordDataInfos is a nested struct in live response +type RecordDataInfos struct { + RecordDataInfo []RecordDataInfo `json:"RecordDataInfo" xml:"RecordDataInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_format.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_format.go new file mode 100644 index 0000000..3b7e085 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_format.go @@ -0,0 +1,24 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordFormat is a nested struct in live response +type RecordFormat struct { + Format string `json:"Format" xml:"Format"` + OssObjectPrefix string `json:"OssObjectPrefix" xml:"OssObjectPrefix"` + SliceOssObjectPrefix string `json:"SliceOssObjectPrefix" xml:"SliceOssObjectPrefix"` + CycleDuration int `json:"CycleDuration" xml:"CycleDuration"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_format_in_describe_caster_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_format_in_describe_caster_config.go new file mode 100644 index 0000000..7df7dd8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_format_in_describe_caster_config.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordFormatInDescribeCasterConfig is a nested struct in live response +type RecordFormatInDescribeCasterConfig struct { + RecordFormatItem []RecordFormatItem `json:"RecordFormatItem" xml:"RecordFormatItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_format_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_format_item.go new file mode 100644 index 0000000..97af824 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_format_item.go @@ -0,0 +1,24 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordFormatItem is a nested struct in live response +type RecordFormatItem struct { + Format string `json:"Format" xml:"Format"` + OssObjectPrefix string `json:"OssObjectPrefix" xml:"OssObjectPrefix"` + SliceOssObjectPrefix string `json:"SliceOssObjectPrefix" xml:"SliceOssObjectPrefix"` + CycleDuration int `json:"CycleDuration" xml:"CycleDuration"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_format_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_format_list.go new file mode 100644 index 0000000..5879e59 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_format_list.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordFormatList is a nested struct in live response +type RecordFormatList struct { + RecordFormat []RecordFormat `json:"RecordFormat" xml:"RecordFormat"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_index_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_index_info.go new file mode 100644 index 0000000..b409cd7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_index_info.go @@ -0,0 +1,34 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordIndexInfo is a nested struct in live response +type RecordIndexInfo struct { + OssObject string `json:"OssObject" xml:"OssObject"` + DomainName string `json:"DomainName" xml:"DomainName"` + RecordUrl string `json:"RecordUrl" xml:"RecordUrl"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + StreamName string `json:"StreamName" xml:"StreamName"` + OssBucket string `json:"OssBucket" xml:"OssBucket"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + Duration float64 `json:"Duration" xml:"Duration"` + RecordId string `json:"RecordId" xml:"RecordId"` + OssEndpoint string `json:"OssEndpoint" xml:"OssEndpoint"` + Height int `json:"Height" xml:"Height"` + Width int `json:"Width" xml:"Width"` + AppName string `json:"AppName" xml:"AppName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_index_info_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_index_info_list.go new file mode 100644 index 0000000..5f07d69 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_index_info_list.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordIndexInfoList is a nested struct in live response +type RecordIndexInfoList struct { + RecordIndexInfo []RecordIndexInfo `json:"RecordIndexInfo" xml:"RecordIndexInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_info.go new file mode 100644 index 0000000..5627ff2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_record_info.go @@ -0,0 +1,34 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordInfo is a nested struct in live response +type RecordInfo struct { + RecordId string `json:"RecordId" xml:"RecordId"` + RecordUrl string `json:"RecordUrl" xml:"RecordUrl"` + DomainName string `json:"DomainName" xml:"DomainName"` + AppName string `json:"AppName" xml:"AppName"` + StreamName string `json:"StreamName" xml:"StreamName"` + OssBucket string `json:"OssBucket" xml:"OssBucket"` + OssEndpoint string `json:"OssEndpoint" xml:"OssEndpoint"` + OssObject string `json:"OssObject" xml:"OssObject"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + Duration float64 `json:"Duration" xml:"Duration"` + Height int `json:"Height" xml:"Height"` + Width int `json:"Width" xml:"Width"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_scene.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_scene.go new file mode 100644 index 0000000..2b6d89f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_scene.go @@ -0,0 +1,28 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Scene is a nested struct in live response +type Scene struct { + SceneId string `json:"SceneId" xml:"SceneId"` + SceneName string `json:"SceneName" xml:"SceneName"` + OutputType string `json:"OutputType" xml:"OutputType"` + LayoutId string `json:"LayoutId" xml:"LayoutId"` + StreamUrl string `json:"StreamUrl" xml:"StreamUrl"` + Status int `json:"Status" xml:"Status"` + ComponentIds ComponentIdsInDescribeCasterScenes `json:"ComponentIds" xml:"ComponentIds"` + StreamInfos StreamInfosInDescribeCasterScenes `json:"StreamInfos" xml:"StreamInfos"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_scene_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_scene_info.go new file mode 100644 index 0000000..81d769d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_scene_info.go @@ -0,0 +1,23 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SceneInfo is a nested struct in live response +type SceneInfo struct { + SceneId string `json:"SceneId" xml:"SceneId"` + StreamUrl string `json:"StreamUrl" xml:"StreamUrl"` + StreamInfos StreamInfosInStartCaster `json:"StreamInfos" xml:"StreamInfos"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_scene_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_scene_list.go new file mode 100644 index 0000000..c490b5d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_scene_list.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SceneList is a nested struct in live response +type SceneList struct { + Scene []Scene `json:"Scene" xml:"Scene"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_scenes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_scenes.go new file mode 100644 index 0000000..c7cfde2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_scenes.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Scenes is a nested struct in live response +type Scenes struct { + Scene []string `json:"scene" xml:"scene"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_snapshot_data_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_snapshot_data_info.go new file mode 100644 index 0000000..7027320 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_snapshot_data_info.go @@ -0,0 +1,22 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SnapshotDataInfo is a nested struct in live response +type SnapshotDataInfo struct { + Date string `json:"Date" xml:"Date"` + Total int `json:"Total" xml:"Total"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_snapshot_data_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_snapshot_data_infos.go new file mode 100644 index 0000000..abfcece --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_snapshot_data_infos.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SnapshotDataInfos is a nested struct in live response +type SnapshotDataInfos struct { + SnapshotDataInfo []SnapshotDataInfo `json:"SnapshotDataInfo" xml:"SnapshotDataInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_stream_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_stream_info.go new file mode 100644 index 0000000..3cfd310 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_stream_info.go @@ -0,0 +1,23 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StreamInfo is a nested struct in live response +type StreamInfo struct { + VideoFormat string `json:"VideoFormat" xml:"VideoFormat"` + TranscodeConfig string `json:"TranscodeConfig" xml:"TranscodeConfig"` + OutputStreamUrl string `json:"OutputStreamUrl" xml:"OutputStreamUrl"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_stream_infos_in_describe_caster_scenes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_stream_infos_in_describe_caster_scenes.go new file mode 100644 index 0000000..e0ac1d0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_stream_infos_in_describe_caster_scenes.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StreamInfosInDescribeCasterScenes is a nested struct in live response +type StreamInfosInDescribeCasterScenes struct { + StreamInfo []StreamInfo `json:"StreamInfo" xml:"StreamInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_stream_infos_in_describe_caster_stream_url.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_stream_infos_in_describe_caster_stream_url.go new file mode 100644 index 0000000..6dbaa18 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_stream_infos_in_describe_caster_stream_url.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StreamInfosInDescribeCasterStreamUrl is a nested struct in live response +type StreamInfosInDescribeCasterStreamUrl struct { + StreamInfo []StreamInfo `json:"StreamInfo" xml:"StreamInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_stream_infos_in_start_caster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_stream_infos_in_start_caster.go new file mode 100644 index 0000000..56e7364 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_stream_infos_in_start_caster.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StreamInfosInStartCaster is a nested struct in live response +type StreamInfosInStartCaster struct { + StreamInfo []StreamInfo `json:"StreamInfo" xml:"StreamInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_stream_urls.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_stream_urls.go new file mode 100644 index 0000000..d75550e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_stream_urls.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StreamUrls is a nested struct in live response +type StreamUrls struct { + StreamUrl []string `json:"StreamUrl" xml:"StreamUrl"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_text_layer_content.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_text_layer_content.go new file mode 100644 index 0000000..dfb8f3a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_text_layer_content.go @@ -0,0 +1,26 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TextLayerContent is a nested struct in live response +type TextLayerContent struct { + Text string `json:"Text" xml:"Text"` + Color string `json:"Color" xml:"Color"` + FontName string `json:"FontName" xml:"FontName"` + SizeNormalized float64 `json:"SizeNormalized" xml:"SizeNormalized"` + BorderWidthNormalized float64 `json:"BorderWidthNormalized" xml:"BorderWidthNormalized"` + BorderColor string `json:"BorderColor" xml:"BorderColor"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_transcode_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_transcode_config.go new file mode 100644 index 0000000..75ad829 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_transcode_config.go @@ -0,0 +1,22 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TranscodeConfig is a nested struct in live response +type TranscodeConfig struct { + CasterTemplate string `json:"CasterTemplate" xml:"CasterTemplate"` + LiveTemplateIds LiveTemplateIds `json:"LiveTemplateIds" xml:"LiveTemplateIds"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_transcode_data_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_transcode_data_info.go new file mode 100644 index 0000000..f142d3c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_transcode_data_info.go @@ -0,0 +1,23 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TranscodeDataInfo is a nested struct in live response +type TranscodeDataInfo struct { + Date string `json:"Date" xml:"Date"` + Total int `json:"Total" xml:"Total"` + Detail string `json:"Detail" xml:"Detail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_transcode_data_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_transcode_data_infos.go new file mode 100644 index 0000000..d8f6744 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_transcode_data_infos.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TranscodeDataInfos is a nested struct in live response +type TranscodeDataInfos struct { + TranscodeDataInfo []TranscodeDataInfo `json:"TranscodeDataInfo" xml:"TranscodeDataInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_video_layer.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_video_layer.go new file mode 100644 index 0000000..338801c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_video_layer.go @@ -0,0 +1,26 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoLayer is a nested struct in live response +type VideoLayer struct { + FillMode string `json:"FillMode" xml:"FillMode"` + HeightNormalized float64 `json:"HeightNormalized" xml:"HeightNormalized"` + WidthNormalized float64 `json:"WidthNormalized" xml:"WidthNormalized"` + PositionRefer string `json:"PositionRefer" xml:"PositionRefer"` + FixedDelayDuration int `json:"FixedDelayDuration" xml:"FixedDelayDuration"` + PositionNormalizeds PositionNormalizedsInDescribeCasterLayouts `json:"PositionNormalizeds" xml:"PositionNormalizeds"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_video_layers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_video_layers.go new file mode 100644 index 0000000..bfc32bd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_video_layers.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoLayers is a nested struct in live response +type VideoLayers struct { + VideoLayer []VideoLayer `json:"VideoLayer" xml:"VideoLayer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_video_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_video_resource.go new file mode 100644 index 0000000..1f9f447 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_video_resource.go @@ -0,0 +1,29 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoResource is a nested struct in live response +type VideoResource struct { + MaterialId string `json:"MaterialId" xml:"MaterialId"` + ResourceId string `json:"ResourceId" xml:"ResourceId"` + ResourceName string `json:"ResourceName" xml:"ResourceName"` + LocationId string `json:"LocationId" xml:"LocationId"` + LiveStreamUrl string `json:"LiveStreamUrl" xml:"LiveStreamUrl"` + RepeatNum int `json:"RepeatNum" xml:"RepeatNum"` + VodUrl string `json:"VodUrl" xml:"VodUrl"` + BeginOffset int `json:"BeginOffset" xml:"BeginOffset"` + EndOffset int `json:"EndOffset" xml:"EndOffset"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_video_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_video_resources.go new file mode 100644 index 0000000..67c66b6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/struct_video_resources.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoResources is a nested struct in live response +type VideoResources struct { + VideoResource []VideoResource `json:"VideoResource" xml:"VideoResource"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_caster_scene_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_caster_scene_config.go new file mode 100644 index 0000000..a7b68f3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_caster_scene_config.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateCasterSceneConfig invokes the live.UpdateCasterSceneConfig API synchronously +// api document: https://help.aliyun.com/api/live/updatecastersceneconfig.html +func (client *Client) UpdateCasterSceneConfig(request *UpdateCasterSceneConfigRequest) (response *UpdateCasterSceneConfigResponse, err error) { + response = CreateUpdateCasterSceneConfigResponse() + err = client.DoAction(request, response) + return +} + +// UpdateCasterSceneConfigWithChan invokes the live.UpdateCasterSceneConfig API asynchronously +// api document: https://help.aliyun.com/api/live/updatecastersceneconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateCasterSceneConfigWithChan(request *UpdateCasterSceneConfigRequest) (<-chan *UpdateCasterSceneConfigResponse, <-chan error) { + responseChan := make(chan *UpdateCasterSceneConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateCasterSceneConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateCasterSceneConfigWithCallback invokes the live.UpdateCasterSceneConfig API asynchronously +// api document: https://help.aliyun.com/api/live/updatecastersceneconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateCasterSceneConfigWithCallback(request *UpdateCasterSceneConfigRequest, callback func(response *UpdateCasterSceneConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateCasterSceneConfigResponse + var err error + defer close(result) + response, err = client.UpdateCasterSceneConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateCasterSceneConfigRequest is the request struct for api UpdateCasterSceneConfig +type UpdateCasterSceneConfigRequest struct { + *requests.RpcRequest + ComponentId *[]string `position:"Query" name:"ComponentId" type:"Repeated"` + CasterId string `position:"Query" name:"CasterId"` + SceneId string `position:"Query" name:"SceneId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + LayoutId string `position:"Query" name:"LayoutId"` +} + +// UpdateCasterSceneConfigResponse is the response struct for api UpdateCasterSceneConfig +type UpdateCasterSceneConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateCasterSceneConfigRequest creates a request to invoke UpdateCasterSceneConfig API +func CreateUpdateCasterSceneConfigRequest() (request *UpdateCasterSceneConfigRequest) { + request = &UpdateCasterSceneConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "UpdateCasterSceneConfig", "live", "openAPI") + return +} + +// CreateUpdateCasterSceneConfigResponse creates a response to parse from UpdateCasterSceneConfig response +func CreateUpdateCasterSceneConfigResponse() (response *UpdateCasterSceneConfigResponse) { + response = &UpdateCasterSceneConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_live_app_snapshot_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_live_app_snapshot_config.go new file mode 100644 index 0000000..e51355c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_live_app_snapshot_config.go @@ -0,0 +1,111 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateLiveAppSnapshotConfig invokes the live.UpdateLiveAppSnapshotConfig API synchronously +// api document: https://help.aliyun.com/api/live/updateliveappsnapshotconfig.html +func (client *Client) UpdateLiveAppSnapshotConfig(request *UpdateLiveAppSnapshotConfigRequest) (response *UpdateLiveAppSnapshotConfigResponse, err error) { + response = CreateUpdateLiveAppSnapshotConfigResponse() + err = client.DoAction(request, response) + return +} + +// UpdateLiveAppSnapshotConfigWithChan invokes the live.UpdateLiveAppSnapshotConfig API asynchronously +// api document: https://help.aliyun.com/api/live/updateliveappsnapshotconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateLiveAppSnapshotConfigWithChan(request *UpdateLiveAppSnapshotConfigRequest) (<-chan *UpdateLiveAppSnapshotConfigResponse, <-chan error) { + responseChan := make(chan *UpdateLiveAppSnapshotConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateLiveAppSnapshotConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateLiveAppSnapshotConfigWithCallback invokes the live.UpdateLiveAppSnapshotConfig API asynchronously +// api document: https://help.aliyun.com/api/live/updateliveappsnapshotconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateLiveAppSnapshotConfigWithCallback(request *UpdateLiveAppSnapshotConfigRequest, callback func(response *UpdateLiveAppSnapshotConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateLiveAppSnapshotConfigResponse + var err error + defer close(result) + response, err = client.UpdateLiveAppSnapshotConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateLiveAppSnapshotConfigRequest is the request struct for api UpdateLiveAppSnapshotConfig +type UpdateLiveAppSnapshotConfigRequest struct { + *requests.RpcRequest + TimeInterval requests.Integer `position:"Query" name:"TimeInterval"` + OssBucket string `position:"Query" name:"OssBucket"` + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OssEndpoint string `position:"Query" name:"OssEndpoint"` + SequenceOssObject string `position:"Query" name:"SequenceOssObject"` + OverwriteOssObject string `position:"Query" name:"OverwriteOssObject"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// UpdateLiveAppSnapshotConfigResponse is the response struct for api UpdateLiveAppSnapshotConfig +type UpdateLiveAppSnapshotConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateLiveAppSnapshotConfigRequest creates a request to invoke UpdateLiveAppSnapshotConfig API +func CreateUpdateLiveAppSnapshotConfigRequest() (request *UpdateLiveAppSnapshotConfigRequest) { + request = &UpdateLiveAppSnapshotConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "UpdateLiveAppSnapshotConfig", "live", "openAPI") + return +} + +// CreateUpdateLiveAppSnapshotConfigResponse creates a response to parse from UpdateLiveAppSnapshotConfig response +func CreateUpdateLiveAppSnapshotConfigResponse() (response *UpdateLiveAppSnapshotConfigResponse) { + response = &UpdateLiveAppSnapshotConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_live_detect_notify_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_live_detect_notify_config.go new file mode 100644 index 0000000..9c1513c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_live_detect_notify_config.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateLiveDetectNotifyConfig invokes the live.UpdateLiveDetectNotifyConfig API synchronously +// api document: https://help.aliyun.com/api/live/updatelivedetectnotifyconfig.html +func (client *Client) UpdateLiveDetectNotifyConfig(request *UpdateLiveDetectNotifyConfigRequest) (response *UpdateLiveDetectNotifyConfigResponse, err error) { + response = CreateUpdateLiveDetectNotifyConfigResponse() + err = client.DoAction(request, response) + return +} + +// UpdateLiveDetectNotifyConfigWithChan invokes the live.UpdateLiveDetectNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/updatelivedetectnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateLiveDetectNotifyConfigWithChan(request *UpdateLiveDetectNotifyConfigRequest) (<-chan *UpdateLiveDetectNotifyConfigResponse, <-chan error) { + responseChan := make(chan *UpdateLiveDetectNotifyConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateLiveDetectNotifyConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateLiveDetectNotifyConfigWithCallback invokes the live.UpdateLiveDetectNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/updatelivedetectnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateLiveDetectNotifyConfigWithCallback(request *UpdateLiveDetectNotifyConfigRequest, callback func(response *UpdateLiveDetectNotifyConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateLiveDetectNotifyConfigResponse + var err error + defer close(result) + response, err = client.UpdateLiveDetectNotifyConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateLiveDetectNotifyConfigRequest is the request struct for api UpdateLiveDetectNotifyConfig +type UpdateLiveDetectNotifyConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + NotifyUrl string `position:"Query" name:"NotifyUrl"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// UpdateLiveDetectNotifyConfigResponse is the response struct for api UpdateLiveDetectNotifyConfig +type UpdateLiveDetectNotifyConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateLiveDetectNotifyConfigRequest creates a request to invoke UpdateLiveDetectNotifyConfig API +func CreateUpdateLiveDetectNotifyConfigRequest() (request *UpdateLiveDetectNotifyConfigRequest) { + request = &UpdateLiveDetectNotifyConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "UpdateLiveDetectNotifyConfig", "live", "openAPI") + return +} + +// CreateUpdateLiveDetectNotifyConfigResponse creates a response to parse from UpdateLiveDetectNotifyConfig response +func CreateUpdateLiveDetectNotifyConfigResponse() (response *UpdateLiveDetectNotifyConfigResponse) { + response = &UpdateLiveDetectNotifyConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_live_mix_notify_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_live_mix_notify_config.go new file mode 100644 index 0000000..fad98a4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_live_mix_notify_config.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateLiveMixNotifyConfig invokes the live.UpdateLiveMixNotifyConfig API synchronously +// api document: https://help.aliyun.com/api/live/updatelivemixnotifyconfig.html +func (client *Client) UpdateLiveMixNotifyConfig(request *UpdateLiveMixNotifyConfigRequest) (response *UpdateLiveMixNotifyConfigResponse, err error) { + response = CreateUpdateLiveMixNotifyConfigResponse() + err = client.DoAction(request, response) + return +} + +// UpdateLiveMixNotifyConfigWithChan invokes the live.UpdateLiveMixNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/updatelivemixnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateLiveMixNotifyConfigWithChan(request *UpdateLiveMixNotifyConfigRequest) (<-chan *UpdateLiveMixNotifyConfigResponse, <-chan error) { + responseChan := make(chan *UpdateLiveMixNotifyConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateLiveMixNotifyConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateLiveMixNotifyConfigWithCallback invokes the live.UpdateLiveMixNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/updatelivemixnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateLiveMixNotifyConfigWithCallback(request *UpdateLiveMixNotifyConfigRequest, callback func(response *UpdateLiveMixNotifyConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateLiveMixNotifyConfigResponse + var err error + defer close(result) + response, err = client.UpdateLiveMixNotifyConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateLiveMixNotifyConfigRequest is the request struct for api UpdateLiveMixNotifyConfig +type UpdateLiveMixNotifyConfigRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + NotifyUrl string `position:"Query" name:"NotifyUrl"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// UpdateLiveMixNotifyConfigResponse is the response struct for api UpdateLiveMixNotifyConfig +type UpdateLiveMixNotifyConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateLiveMixNotifyConfigRequest creates a request to invoke UpdateLiveMixNotifyConfig API +func CreateUpdateLiveMixNotifyConfigRequest() (request *UpdateLiveMixNotifyConfigRequest) { + request = &UpdateLiveMixNotifyConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "UpdateLiveMixNotifyConfig", "live", "openAPI") + return +} + +// CreateUpdateLiveMixNotifyConfigResponse creates a response to parse from UpdateLiveMixNotifyConfig response +func CreateUpdateLiveMixNotifyConfigResponse() (response *UpdateLiveMixNotifyConfigResponse) { + response = &UpdateLiveMixNotifyConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_live_record_notify_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_live_record_notify_config.go new file mode 100644 index 0000000..9ec54c6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_live_record_notify_config.go @@ -0,0 +1,108 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateLiveRecordNotifyConfig invokes the live.UpdateLiveRecordNotifyConfig API synchronously +// api document: https://help.aliyun.com/api/live/updateliverecordnotifyconfig.html +func (client *Client) UpdateLiveRecordNotifyConfig(request *UpdateLiveRecordNotifyConfigRequest) (response *UpdateLiveRecordNotifyConfigResponse, err error) { + response = CreateUpdateLiveRecordNotifyConfigResponse() + err = client.DoAction(request, response) + return +} + +// UpdateLiveRecordNotifyConfigWithChan invokes the live.UpdateLiveRecordNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/updateliverecordnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateLiveRecordNotifyConfigWithChan(request *UpdateLiveRecordNotifyConfigRequest) (<-chan *UpdateLiveRecordNotifyConfigResponse, <-chan error) { + responseChan := make(chan *UpdateLiveRecordNotifyConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateLiveRecordNotifyConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateLiveRecordNotifyConfigWithCallback invokes the live.UpdateLiveRecordNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/updateliverecordnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateLiveRecordNotifyConfigWithCallback(request *UpdateLiveRecordNotifyConfigRequest, callback func(response *UpdateLiveRecordNotifyConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateLiveRecordNotifyConfigResponse + var err error + defer close(result) + response, err = client.UpdateLiveRecordNotifyConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateLiveRecordNotifyConfigRequest is the request struct for api UpdateLiveRecordNotifyConfig +type UpdateLiveRecordNotifyConfigRequest struct { + *requests.RpcRequest + OnDemandUrl string `position:"Query" name:"OnDemandUrl"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + NotifyUrl string `position:"Query" name:"NotifyUrl"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + NeedStatusNotify requests.Boolean `position:"Query" name:"NeedStatusNotify"` +} + +// UpdateLiveRecordNotifyConfigResponse is the response struct for api UpdateLiveRecordNotifyConfig +type UpdateLiveRecordNotifyConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateLiveRecordNotifyConfigRequest creates a request to invoke UpdateLiveRecordNotifyConfig API +func CreateUpdateLiveRecordNotifyConfigRequest() (request *UpdateLiveRecordNotifyConfigRequest) { + request = &UpdateLiveRecordNotifyConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "UpdateLiveRecordNotifyConfig", "live", "openAPI") + return +} + +// CreateUpdateLiveRecordNotifyConfigResponse creates a response to parse from UpdateLiveRecordNotifyConfig response +func CreateUpdateLiveRecordNotifyConfigResponse() (response *UpdateLiveRecordNotifyConfigResponse) { + response = &UpdateLiveRecordNotifyConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_live_snapshot_detect_porn_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_live_snapshot_detect_porn_config.go new file mode 100644 index 0000000..4b8975e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/live/update_live_snapshot_detect_porn_config.go @@ -0,0 +1,111 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateLiveSnapshotDetectPornConfig invokes the live.UpdateLiveSnapshotDetectPornConfig API synchronously +// api document: https://help.aliyun.com/api/live/updatelivesnapshotdetectpornconfig.html +func (client *Client) UpdateLiveSnapshotDetectPornConfig(request *UpdateLiveSnapshotDetectPornConfigRequest) (response *UpdateLiveSnapshotDetectPornConfigResponse, err error) { + response = CreateUpdateLiveSnapshotDetectPornConfigResponse() + err = client.DoAction(request, response) + return +} + +// UpdateLiveSnapshotDetectPornConfigWithChan invokes the live.UpdateLiveSnapshotDetectPornConfig API asynchronously +// api document: https://help.aliyun.com/api/live/updatelivesnapshotdetectpornconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateLiveSnapshotDetectPornConfigWithChan(request *UpdateLiveSnapshotDetectPornConfigRequest) (<-chan *UpdateLiveSnapshotDetectPornConfigResponse, <-chan error) { + responseChan := make(chan *UpdateLiveSnapshotDetectPornConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateLiveSnapshotDetectPornConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateLiveSnapshotDetectPornConfigWithCallback invokes the live.UpdateLiveSnapshotDetectPornConfig API asynchronously +// api document: https://help.aliyun.com/api/live/updatelivesnapshotdetectpornconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateLiveSnapshotDetectPornConfigWithCallback(request *UpdateLiveSnapshotDetectPornConfigRequest, callback func(response *UpdateLiveSnapshotDetectPornConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateLiveSnapshotDetectPornConfigResponse + var err error + defer close(result) + response, err = client.UpdateLiveSnapshotDetectPornConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateLiveSnapshotDetectPornConfigRequest is the request struct for api UpdateLiveSnapshotDetectPornConfig +type UpdateLiveSnapshotDetectPornConfigRequest struct { + *requests.RpcRequest + OssBucket string `position:"Query" name:"OssBucket"` + AppName string `position:"Query" name:"AppName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OssEndpoint string `position:"Query" name:"OssEndpoint"` + Interval requests.Integer `position:"Query" name:"Interval"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + OssObject string `position:"Query" name:"OssObject"` + Scene *[]string `position:"Query" name:"Scene" type:"Repeated"` +} + +// UpdateLiveSnapshotDetectPornConfigResponse is the response struct for api UpdateLiveSnapshotDetectPornConfig +type UpdateLiveSnapshotDetectPornConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateLiveSnapshotDetectPornConfigRequest creates a request to invoke UpdateLiveSnapshotDetectPornConfig API +func CreateUpdateLiveSnapshotDetectPornConfigRequest() (request *UpdateLiveSnapshotDetectPornConfigRequest) { + request = &UpdateLiveSnapshotDetectPornConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "UpdateLiveSnapshotDetectPornConfig", "live", "openAPI") + return +} + +// CreateUpdateLiveSnapshotDetectPornConfigResponse creates a response to parse from UpdateLiveSnapshotDetectPornConfig response +func CreateUpdateLiveSnapshotDetectPornConfigResponse() (response *UpdateLiveSnapshotDetectPornConfigResponse) { + response = &UpdateLiveSnapshotDetectPornConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/activate_media_workflow.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/activate_media_workflow.go new file mode 100644 index 0000000..4db57aa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/activate_media_workflow.go @@ -0,0 +1,108 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ActivateMediaWorkflow invokes the mts.ActivateMediaWorkflow API synchronously +// api document: https://help.aliyun.com/api/mts/activatemediaworkflow.html +func (client *Client) ActivateMediaWorkflow(request *ActivateMediaWorkflowRequest) (response *ActivateMediaWorkflowResponse, err error) { + response = CreateActivateMediaWorkflowResponse() + err = client.DoAction(request, response) + return +} + +// ActivateMediaWorkflowWithChan invokes the mts.ActivateMediaWorkflow API asynchronously +// api document: https://help.aliyun.com/api/mts/activatemediaworkflow.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ActivateMediaWorkflowWithChan(request *ActivateMediaWorkflowRequest) (<-chan *ActivateMediaWorkflowResponse, <-chan error) { + responseChan := make(chan *ActivateMediaWorkflowResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ActivateMediaWorkflow(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ActivateMediaWorkflowWithCallback invokes the mts.ActivateMediaWorkflow API asynchronously +// api document: https://help.aliyun.com/api/mts/activatemediaworkflow.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ActivateMediaWorkflowWithCallback(request *ActivateMediaWorkflowRequest, callback func(response *ActivateMediaWorkflowResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ActivateMediaWorkflowResponse + var err error + defer close(result) + response, err = client.ActivateMediaWorkflow(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ActivateMediaWorkflowRequest is the request struct for api ActivateMediaWorkflow +type ActivateMediaWorkflowRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MediaWorkflowId string `position:"Query" name:"MediaWorkflowId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ActivateMediaWorkflowResponse is the response struct for api ActivateMediaWorkflow +type ActivateMediaWorkflowResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MediaWorkflow MediaWorkflow `json:"MediaWorkflow" xml:"MediaWorkflow"` +} + +// CreateActivateMediaWorkflowRequest creates a request to invoke ActivateMediaWorkflow API +func CreateActivateMediaWorkflowRequest() (request *ActivateMediaWorkflowRequest) { + request = &ActivateMediaWorkflowRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "ActivateMediaWorkflow", "mts", "openAPI") + return +} + +// CreateActivateMediaWorkflowResponse creates a response to parse from ActivateMediaWorkflow response +func CreateActivateMediaWorkflowResponse() (response *ActivateMediaWorkflowResponse) { + response = &ActivateMediaWorkflowResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_asr_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_asr_pipeline.go new file mode 100644 index 0000000..440c9f6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_asr_pipeline.go @@ -0,0 +1,110 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddAsrPipeline invokes the mts.AddAsrPipeline API synchronously +// api document: https://help.aliyun.com/api/mts/addasrpipeline.html +func (client *Client) AddAsrPipeline(request *AddAsrPipelineRequest) (response *AddAsrPipelineResponse, err error) { + response = CreateAddAsrPipelineResponse() + err = client.DoAction(request, response) + return +} + +// AddAsrPipelineWithChan invokes the mts.AddAsrPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/addasrpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddAsrPipelineWithChan(request *AddAsrPipelineRequest) (<-chan *AddAsrPipelineResponse, <-chan error) { + responseChan := make(chan *AddAsrPipelineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddAsrPipeline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddAsrPipelineWithCallback invokes the mts.AddAsrPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/addasrpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddAsrPipelineWithCallback(request *AddAsrPipelineRequest, callback func(response *AddAsrPipelineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddAsrPipelineResponse + var err error + defer close(result) + response, err = client.AddAsrPipeline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddAsrPipelineRequest is the request struct for api AddAsrPipeline +type AddAsrPipelineRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Name string `position:"Query" name:"Name"` + Priority requests.Integer `position:"Query" name:"Priority"` + NotifyConfig string `position:"Query" name:"NotifyConfig"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// AddAsrPipelineResponse is the response struct for api AddAsrPipeline +type AddAsrPipelineResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Pipeline Pipeline `json:"Pipeline" xml:"Pipeline"` +} + +// CreateAddAsrPipelineRequest creates a request to invoke AddAsrPipeline API +func CreateAddAsrPipelineRequest() (request *AddAsrPipelineRequest) { + request = &AddAsrPipelineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "AddAsrPipeline", "mts", "openAPI") + return +} + +// CreateAddAsrPipelineResponse creates a response to parse from AddAsrPipeline response +func CreateAddAsrPipelineResponse() (response *AddAsrPipelineResponse) { + response = &AddAsrPipelineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_category.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_category.go new file mode 100644 index 0000000..1808b57 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_category.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddCategory invokes the mts.AddCategory API synchronously +// api document: https://help.aliyun.com/api/mts/addcategory.html +func (client *Client) AddCategory(request *AddCategoryRequest) (response *AddCategoryResponse, err error) { + response = CreateAddCategoryResponse() + err = client.DoAction(request, response) + return +} + +// AddCategoryWithChan invokes the mts.AddCategory API asynchronously +// api document: https://help.aliyun.com/api/mts/addcategory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCategoryWithChan(request *AddCategoryRequest) (<-chan *AddCategoryResponse, <-chan error) { + responseChan := make(chan *AddCategoryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddCategory(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddCategoryWithCallback invokes the mts.AddCategory API asynchronously +// api document: https://help.aliyun.com/api/mts/addcategory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCategoryWithCallback(request *AddCategoryRequest, callback func(response *AddCategoryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddCategoryResponse + var err error + defer close(result) + response, err = client.AddCategory(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddCategoryRequest is the request struct for api AddCategory +type AddCategoryRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CateName string `position:"Query" name:"CateName"` + ParentId requests.Integer `position:"Query" name:"ParentId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// AddCategoryResponse is the response struct for api AddCategory +type AddCategoryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Category Category `json:"Category" xml:"Category"` +} + +// CreateAddCategoryRequest creates a request to invoke AddCategory API +func CreateAddCategoryRequest() (request *AddCategoryRequest) { + request = &AddCategoryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "AddCategory", "mts", "openAPI") + return +} + +// CreateAddCategoryResponse creates a response to parse from AddCategory response +func CreateAddCategoryResponse() (response *AddCategoryResponse) { + response = &AddCategoryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_censor_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_censor_pipeline.go new file mode 100644 index 0000000..619b12a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_censor_pipeline.go @@ -0,0 +1,110 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddCensorPipeline invokes the mts.AddCensorPipeline API synchronously +// api document: https://help.aliyun.com/api/mts/addcensorpipeline.html +func (client *Client) AddCensorPipeline(request *AddCensorPipelineRequest) (response *AddCensorPipelineResponse, err error) { + response = CreateAddCensorPipelineResponse() + err = client.DoAction(request, response) + return +} + +// AddCensorPipelineWithChan invokes the mts.AddCensorPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/addcensorpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCensorPipelineWithChan(request *AddCensorPipelineRequest) (<-chan *AddCensorPipelineResponse, <-chan error) { + responseChan := make(chan *AddCensorPipelineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddCensorPipeline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddCensorPipelineWithCallback invokes the mts.AddCensorPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/addcensorpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCensorPipelineWithCallback(request *AddCensorPipelineRequest, callback func(response *AddCensorPipelineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddCensorPipelineResponse + var err error + defer close(result) + response, err = client.AddCensorPipeline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddCensorPipelineRequest is the request struct for api AddCensorPipeline +type AddCensorPipelineRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Name string `position:"Query" name:"Name"` + Priority requests.Integer `position:"Query" name:"Priority"` + NotifyConfig string `position:"Query" name:"NotifyConfig"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// AddCensorPipelineResponse is the response struct for api AddCensorPipeline +type AddCensorPipelineResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Pipeline Pipeline `json:"Pipeline" xml:"Pipeline"` +} + +// CreateAddCensorPipelineRequest creates a request to invoke AddCensorPipeline API +func CreateAddCensorPipelineRequest() (request *AddCensorPipelineRequest) { + request = &AddCensorPipelineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "AddCensorPipeline", "mts", "openAPI") + return +} + +// CreateAddCensorPipelineResponse creates a response to parse from AddCensorPipeline response +func CreateAddCensorPipelineResponse() (response *AddCensorPipelineResponse) { + response = &AddCensorPipelineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_cover_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_cover_pipeline.go new file mode 100644 index 0000000..c49e131 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_cover_pipeline.go @@ -0,0 +1,111 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddCoverPipeline invokes the mts.AddCoverPipeline API synchronously +// api document: https://help.aliyun.com/api/mts/addcoverpipeline.html +func (client *Client) AddCoverPipeline(request *AddCoverPipelineRequest) (response *AddCoverPipelineResponse, err error) { + response = CreateAddCoverPipelineResponse() + err = client.DoAction(request, response) + return +} + +// AddCoverPipelineWithChan invokes the mts.AddCoverPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/addcoverpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCoverPipelineWithChan(request *AddCoverPipelineRequest) (<-chan *AddCoverPipelineResponse, <-chan error) { + responseChan := make(chan *AddCoverPipelineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddCoverPipeline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddCoverPipelineWithCallback invokes the mts.AddCoverPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/addcoverpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCoverPipelineWithCallback(request *AddCoverPipelineRequest, callback func(response *AddCoverPipelineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddCoverPipelineResponse + var err error + defer close(result) + response, err = client.AddCoverPipeline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddCoverPipelineRequest is the request struct for api AddCoverPipeline +type AddCoverPipelineRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Name string `position:"Query" name:"Name"` + Priority string `position:"Query" name:"Priority"` + NotifyConfig string `position:"Query" name:"NotifyConfig"` + Role string `position:"Query" name:"Role"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// AddCoverPipelineResponse is the response struct for api AddCoverPipeline +type AddCoverPipelineResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Pipeline PipelineInAddCoverPipeline `json:"Pipeline" xml:"Pipeline"` +} + +// CreateAddCoverPipelineRequest creates a request to invoke AddCoverPipeline API +func CreateAddCoverPipelineRequest() (request *AddCoverPipelineRequest) { + request = &AddCoverPipelineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "AddCoverPipeline", "mts", "openAPI") + return +} + +// CreateAddCoverPipelineResponse creates a response to parse from AddCoverPipeline response +func CreateAddCoverPipelineResponse() (response *AddCoverPipelineResponse) { + response = &AddCoverPipelineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_media.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_media.go new file mode 100644 index 0000000..6799e9d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_media.go @@ -0,0 +1,115 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddMedia invokes the mts.AddMedia API synchronously +// api document: https://help.aliyun.com/api/mts/addmedia.html +func (client *Client) AddMedia(request *AddMediaRequest) (response *AddMediaResponse, err error) { + response = CreateAddMediaResponse() + err = client.DoAction(request, response) + return +} + +// AddMediaWithChan invokes the mts.AddMedia API asynchronously +// api document: https://help.aliyun.com/api/mts/addmedia.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddMediaWithChan(request *AddMediaRequest) (<-chan *AddMediaResponse, <-chan error) { + responseChan := make(chan *AddMediaResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddMedia(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddMediaWithCallback invokes the mts.AddMedia API asynchronously +// api document: https://help.aliyun.com/api/mts/addmedia.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddMediaWithCallback(request *AddMediaRequest, callback func(response *AddMediaResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddMediaResponse + var err error + defer close(result) + response, err = client.AddMedia(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddMediaRequest is the request struct for api AddMedia +type AddMediaRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + FileURL string `position:"Query" name:"FileURL"` + Title string `position:"Query" name:"Title"` + Description string `position:"Query" name:"Description"` + CoverURL string `position:"Query" name:"CoverURL"` + Tags string `position:"Query" name:"Tags"` + MediaWorkflowId string `position:"Query" name:"MediaWorkflowId"` + MediaWorkflowUserData string `position:"Query" name:"MediaWorkflowUserData"` + CateId requests.Integer `position:"Query" name:"CateId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// AddMediaResponse is the response struct for api AddMedia +type AddMediaResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Media Media `json:"Media" xml:"Media"` +} + +// CreateAddMediaRequest creates a request to invoke AddMedia API +func CreateAddMediaRequest() (request *AddMediaRequest) { + request = &AddMediaRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "AddMedia", "mts", "openAPI") + return +} + +// CreateAddMediaResponse creates a response to parse from AddMedia response +func CreateAddMediaResponse() (response *AddMediaResponse) { + response = &AddMediaResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_media_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_media_tag.go new file mode 100644 index 0000000..a808931 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_media_tag.go @@ -0,0 +1,108 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddMediaTag invokes the mts.AddMediaTag API synchronously +// api document: https://help.aliyun.com/api/mts/addmediatag.html +func (client *Client) AddMediaTag(request *AddMediaTagRequest) (response *AddMediaTagResponse, err error) { + response = CreateAddMediaTagResponse() + err = client.DoAction(request, response) + return +} + +// AddMediaTagWithChan invokes the mts.AddMediaTag API asynchronously +// api document: https://help.aliyun.com/api/mts/addmediatag.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddMediaTagWithChan(request *AddMediaTagRequest) (<-chan *AddMediaTagResponse, <-chan error) { + responseChan := make(chan *AddMediaTagResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddMediaTag(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddMediaTagWithCallback invokes the mts.AddMediaTag API asynchronously +// api document: https://help.aliyun.com/api/mts/addmediatag.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddMediaTagWithCallback(request *AddMediaTagRequest, callback func(response *AddMediaTagResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddMediaTagResponse + var err error + defer close(result) + response, err = client.AddMediaTag(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddMediaTagRequest is the request struct for api AddMediaTag +type AddMediaTagRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MediaId string `position:"Query" name:"MediaId"` + Tag string `position:"Query" name:"Tag"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// AddMediaTagResponse is the response struct for api AddMediaTag +type AddMediaTagResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddMediaTagRequest creates a request to invoke AddMediaTag API +func CreateAddMediaTagRequest() (request *AddMediaTagRequest) { + request = &AddMediaTagRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "AddMediaTag", "mts", "openAPI") + return +} + +// CreateAddMediaTagResponse creates a response to parse from AddMediaTag response +func CreateAddMediaTagResponse() (response *AddMediaTagResponse) { + response = &AddMediaTagResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_media_workflow.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_media_workflow.go new file mode 100644 index 0000000..764be69 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_media_workflow.go @@ -0,0 +1,110 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddMediaWorkflow invokes the mts.AddMediaWorkflow API synchronously +// api document: https://help.aliyun.com/api/mts/addmediaworkflow.html +func (client *Client) AddMediaWorkflow(request *AddMediaWorkflowRequest) (response *AddMediaWorkflowResponse, err error) { + response = CreateAddMediaWorkflowResponse() + err = client.DoAction(request, response) + return +} + +// AddMediaWorkflowWithChan invokes the mts.AddMediaWorkflow API asynchronously +// api document: https://help.aliyun.com/api/mts/addmediaworkflow.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddMediaWorkflowWithChan(request *AddMediaWorkflowRequest) (<-chan *AddMediaWorkflowResponse, <-chan error) { + responseChan := make(chan *AddMediaWorkflowResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddMediaWorkflow(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddMediaWorkflowWithCallback invokes the mts.AddMediaWorkflow API asynchronously +// api document: https://help.aliyun.com/api/mts/addmediaworkflow.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddMediaWorkflowWithCallback(request *AddMediaWorkflowRequest, callback func(response *AddMediaWorkflowResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddMediaWorkflowResponse + var err error + defer close(result) + response, err = client.AddMediaWorkflow(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddMediaWorkflowRequest is the request struct for api AddMediaWorkflow +type AddMediaWorkflowRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Name string `position:"Query" name:"Name"` + Topology string `position:"Query" name:"Topology"` + TriggerMode string `position:"Query" name:"TriggerMode"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// AddMediaWorkflowResponse is the response struct for api AddMediaWorkflow +type AddMediaWorkflowResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MediaWorkflow MediaWorkflow `json:"MediaWorkflow" xml:"MediaWorkflow"` +} + +// CreateAddMediaWorkflowRequest creates a request to invoke AddMediaWorkflow API +func CreateAddMediaWorkflowRequest() (request *AddMediaWorkflowRequest) { + request = &AddMediaWorkflowRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "AddMediaWorkflow", "mts", "openAPI") + return +} + +// CreateAddMediaWorkflowResponse creates a response to parse from AddMediaWorkflow response +func CreateAddMediaWorkflowResponse() (response *AddMediaWorkflowResponse) { + response = &AddMediaWorkflowResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_pipeline.go new file mode 100644 index 0000000..21cdd77 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_pipeline.go @@ -0,0 +1,112 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddPipeline invokes the mts.AddPipeline API synchronously +// api document: https://help.aliyun.com/api/mts/addpipeline.html +func (client *Client) AddPipeline(request *AddPipelineRequest) (response *AddPipelineResponse, err error) { + response = CreateAddPipelineResponse() + err = client.DoAction(request, response) + return +} + +// AddPipelineWithChan invokes the mts.AddPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/addpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddPipelineWithChan(request *AddPipelineRequest) (<-chan *AddPipelineResponse, <-chan error) { + responseChan := make(chan *AddPipelineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddPipeline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddPipelineWithCallback invokes the mts.AddPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/addpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddPipelineWithCallback(request *AddPipelineRequest, callback func(response *AddPipelineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddPipelineResponse + var err error + defer close(result) + response, err = client.AddPipeline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddPipelineRequest is the request struct for api AddPipeline +type AddPipelineRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Name string `position:"Query" name:"Name"` + Speed string `position:"Query" name:"Speed"` + SpeedLevel requests.Integer `position:"Query" name:"SpeedLevel"` + NotifyConfig string `position:"Query" name:"NotifyConfig"` + Role string `position:"Query" name:"Role"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// AddPipelineResponse is the response struct for api AddPipeline +type AddPipelineResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Pipeline Pipeline `json:"Pipeline" xml:"Pipeline"` +} + +// CreateAddPipelineRequest creates a request to invoke AddPipeline API +func CreateAddPipelineRequest() (request *AddPipelineRequest) { + request = &AddPipelineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "AddPipeline", "mts", "openAPI") + return +} + +// CreateAddPipelineResponse creates a response to parse from AddPipeline response +func CreateAddPipelineResponse() (response *AddPipelineResponse) { + response = &AddPipelineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_porn_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_porn_pipeline.go new file mode 100644 index 0000000..371cbba --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_porn_pipeline.go @@ -0,0 +1,110 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddPornPipeline invokes the mts.AddPornPipeline API synchronously +// api document: https://help.aliyun.com/api/mts/addpornpipeline.html +func (client *Client) AddPornPipeline(request *AddPornPipelineRequest) (response *AddPornPipelineResponse, err error) { + response = CreateAddPornPipelineResponse() + err = client.DoAction(request, response) + return +} + +// AddPornPipelineWithChan invokes the mts.AddPornPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/addpornpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddPornPipelineWithChan(request *AddPornPipelineRequest) (<-chan *AddPornPipelineResponse, <-chan error) { + responseChan := make(chan *AddPornPipelineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddPornPipeline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddPornPipelineWithCallback invokes the mts.AddPornPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/addpornpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddPornPipelineWithCallback(request *AddPornPipelineRequest, callback func(response *AddPornPipelineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddPornPipelineResponse + var err error + defer close(result) + response, err = client.AddPornPipeline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddPornPipelineRequest is the request struct for api AddPornPipeline +type AddPornPipelineRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Name string `position:"Query" name:"Name"` + Priority requests.Integer `position:"Query" name:"Priority"` + NotifyConfig string `position:"Query" name:"NotifyConfig"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// AddPornPipelineResponse is the response struct for api AddPornPipeline +type AddPornPipelineResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Pipeline Pipeline `json:"Pipeline" xml:"Pipeline"` +} + +// CreateAddPornPipelineRequest creates a request to invoke AddPornPipeline API +func CreateAddPornPipelineRequest() (request *AddPornPipelineRequest) { + request = &AddPornPipelineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "AddPornPipeline", "mts", "openAPI") + return +} + +// CreateAddPornPipelineResponse creates a response to parse from AddPornPipeline response +func CreateAddPornPipelineResponse() (response *AddPornPipelineResponse) { + response = &AddPornPipelineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_template.go new file mode 100644 index 0000000..ba1bc5c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_template.go @@ -0,0 +1,113 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddTemplate invokes the mts.AddTemplate API synchronously +// api document: https://help.aliyun.com/api/mts/addtemplate.html +func (client *Client) AddTemplate(request *AddTemplateRequest) (response *AddTemplateResponse, err error) { + response = CreateAddTemplateResponse() + err = client.DoAction(request, response) + return +} + +// AddTemplateWithChan invokes the mts.AddTemplate API asynchronously +// api document: https://help.aliyun.com/api/mts/addtemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddTemplateWithChan(request *AddTemplateRequest) (<-chan *AddTemplateResponse, <-chan error) { + responseChan := make(chan *AddTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddTemplateWithCallback invokes the mts.AddTemplate API asynchronously +// api document: https://help.aliyun.com/api/mts/addtemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddTemplateWithCallback(request *AddTemplateRequest, callback func(response *AddTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddTemplateResponse + var err error + defer close(result) + response, err = client.AddTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddTemplateRequest is the request struct for api AddTemplate +type AddTemplateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Name string `position:"Query" name:"Name"` + Container string `position:"Query" name:"Container"` + Video string `position:"Query" name:"Video"` + Audio string `position:"Query" name:"Audio"` + TransConfig string `position:"Query" name:"TransConfig"` + MuxConfig string `position:"Query" name:"MuxConfig"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// AddTemplateResponse is the response struct for api AddTemplate +type AddTemplateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Template Template `json:"Template" xml:"Template"` +} + +// CreateAddTemplateRequest creates a request to invoke AddTemplate API +func CreateAddTemplateRequest() (request *AddTemplateRequest) { + request = &AddTemplateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "AddTemplate", "mts", "openAPI") + return +} + +// CreateAddTemplateResponse creates a response to parse from AddTemplate response +func CreateAddTemplateResponse() (response *AddTemplateResponse) { + response = &AddTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_terrorism_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_terrorism_pipeline.go new file mode 100644 index 0000000..338844b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_terrorism_pipeline.go @@ -0,0 +1,110 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddTerrorismPipeline invokes the mts.AddTerrorismPipeline API synchronously +// api document: https://help.aliyun.com/api/mts/addterrorismpipeline.html +func (client *Client) AddTerrorismPipeline(request *AddTerrorismPipelineRequest) (response *AddTerrorismPipelineResponse, err error) { + response = CreateAddTerrorismPipelineResponse() + err = client.DoAction(request, response) + return +} + +// AddTerrorismPipelineWithChan invokes the mts.AddTerrorismPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/addterrorismpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddTerrorismPipelineWithChan(request *AddTerrorismPipelineRequest) (<-chan *AddTerrorismPipelineResponse, <-chan error) { + responseChan := make(chan *AddTerrorismPipelineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddTerrorismPipeline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddTerrorismPipelineWithCallback invokes the mts.AddTerrorismPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/addterrorismpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddTerrorismPipelineWithCallback(request *AddTerrorismPipelineRequest, callback func(response *AddTerrorismPipelineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddTerrorismPipelineResponse + var err error + defer close(result) + response, err = client.AddTerrorismPipeline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddTerrorismPipelineRequest is the request struct for api AddTerrorismPipeline +type AddTerrorismPipelineRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Name string `position:"Query" name:"Name"` + Priority requests.Integer `position:"Query" name:"Priority"` + NotifyConfig string `position:"Query" name:"NotifyConfig"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// AddTerrorismPipelineResponse is the response struct for api AddTerrorismPipeline +type AddTerrorismPipelineResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Pipeline Pipeline `json:"Pipeline" xml:"Pipeline"` +} + +// CreateAddTerrorismPipelineRequest creates a request to invoke AddTerrorismPipeline API +func CreateAddTerrorismPipelineRequest() (request *AddTerrorismPipelineRequest) { + request = &AddTerrorismPipelineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "AddTerrorismPipeline", "mts", "openAPI") + return +} + +// CreateAddTerrorismPipelineResponse creates a response to parse from AddTerrorismPipeline response +func CreateAddTerrorismPipelineResponse() (response *AddTerrorismPipelineResponse) { + response = &AddTerrorismPipelineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_water_mark_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_water_mark_template.go new file mode 100644 index 0000000..ceb57a7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/add_water_mark_template.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddWaterMarkTemplate invokes the mts.AddWaterMarkTemplate API synchronously +// api document: https://help.aliyun.com/api/mts/addwatermarktemplate.html +func (client *Client) AddWaterMarkTemplate(request *AddWaterMarkTemplateRequest) (response *AddWaterMarkTemplateResponse, err error) { + response = CreateAddWaterMarkTemplateResponse() + err = client.DoAction(request, response) + return +} + +// AddWaterMarkTemplateWithChan invokes the mts.AddWaterMarkTemplate API asynchronously +// api document: https://help.aliyun.com/api/mts/addwatermarktemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddWaterMarkTemplateWithChan(request *AddWaterMarkTemplateRequest) (<-chan *AddWaterMarkTemplateResponse, <-chan error) { + responseChan := make(chan *AddWaterMarkTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddWaterMarkTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddWaterMarkTemplateWithCallback invokes the mts.AddWaterMarkTemplate API asynchronously +// api document: https://help.aliyun.com/api/mts/addwatermarktemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddWaterMarkTemplateWithCallback(request *AddWaterMarkTemplateRequest, callback func(response *AddWaterMarkTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddWaterMarkTemplateResponse + var err error + defer close(result) + response, err = client.AddWaterMarkTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddWaterMarkTemplateRequest is the request struct for api AddWaterMarkTemplate +type AddWaterMarkTemplateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Name string `position:"Query" name:"Name"` + Config string `position:"Query" name:"Config"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// AddWaterMarkTemplateResponse is the response struct for api AddWaterMarkTemplate +type AddWaterMarkTemplateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + WaterMarkTemplate WaterMarkTemplate `json:"WaterMarkTemplate" xml:"WaterMarkTemplate"` +} + +// CreateAddWaterMarkTemplateRequest creates a request to invoke AddWaterMarkTemplate API +func CreateAddWaterMarkTemplateRequest() (request *AddWaterMarkTemplateRequest) { + request = &AddWaterMarkTemplateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "AddWaterMarkTemplate", "mts", "openAPI") + return +} + +// CreateAddWaterMarkTemplateResponse creates a response to parse from AddWaterMarkTemplate response +func CreateAddWaterMarkTemplateResponse() (response *AddWaterMarkTemplateResponse) { + response = &AddWaterMarkTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/bind_input_bucket.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/bind_input_bucket.go new file mode 100644 index 0000000..806f06a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/bind_input_bucket.go @@ -0,0 +1,108 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// BindInputBucket invokes the mts.BindInputBucket API synchronously +// api document: https://help.aliyun.com/api/mts/bindinputbucket.html +func (client *Client) BindInputBucket(request *BindInputBucketRequest) (response *BindInputBucketResponse, err error) { + response = CreateBindInputBucketResponse() + err = client.DoAction(request, response) + return +} + +// BindInputBucketWithChan invokes the mts.BindInputBucket API asynchronously +// api document: https://help.aliyun.com/api/mts/bindinputbucket.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BindInputBucketWithChan(request *BindInputBucketRequest) (<-chan *BindInputBucketResponse, <-chan error) { + responseChan := make(chan *BindInputBucketResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BindInputBucket(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BindInputBucketWithCallback invokes the mts.BindInputBucket API asynchronously +// api document: https://help.aliyun.com/api/mts/bindinputbucket.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BindInputBucketWithCallback(request *BindInputBucketRequest, callback func(response *BindInputBucketResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BindInputBucketResponse + var err error + defer close(result) + response, err = client.BindInputBucket(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BindInputBucketRequest is the request struct for api BindInputBucket +type BindInputBucketRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Bucket string `position:"Query" name:"Bucket"` + RoleArn string `position:"Query" name:"RoleArn"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// BindInputBucketResponse is the response struct for api BindInputBucket +type BindInputBucketResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateBindInputBucketRequest creates a request to invoke BindInputBucket API +func CreateBindInputBucketRequest() (request *BindInputBucketRequest) { + request = &BindInputBucketRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "BindInputBucket", "mts", "openAPI") + return +} + +// CreateBindInputBucketResponse creates a response to parse from BindInputBucket response +func CreateBindInputBucketResponse() (response *BindInputBucketResponse) { + response = &BindInputBucketResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/bind_output_bucket.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/bind_output_bucket.go new file mode 100644 index 0000000..e8c59b9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/bind_output_bucket.go @@ -0,0 +1,108 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// BindOutputBucket invokes the mts.BindOutputBucket API synchronously +// api document: https://help.aliyun.com/api/mts/bindoutputbucket.html +func (client *Client) BindOutputBucket(request *BindOutputBucketRequest) (response *BindOutputBucketResponse, err error) { + response = CreateBindOutputBucketResponse() + err = client.DoAction(request, response) + return +} + +// BindOutputBucketWithChan invokes the mts.BindOutputBucket API asynchronously +// api document: https://help.aliyun.com/api/mts/bindoutputbucket.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BindOutputBucketWithChan(request *BindOutputBucketRequest) (<-chan *BindOutputBucketResponse, <-chan error) { + responseChan := make(chan *BindOutputBucketResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BindOutputBucket(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BindOutputBucketWithCallback invokes the mts.BindOutputBucket API asynchronously +// api document: https://help.aliyun.com/api/mts/bindoutputbucket.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BindOutputBucketWithCallback(request *BindOutputBucketRequest, callback func(response *BindOutputBucketResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BindOutputBucketResponse + var err error + defer close(result) + response, err = client.BindOutputBucket(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BindOutputBucketRequest is the request struct for api BindOutputBucket +type BindOutputBucketRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Bucket string `position:"Query" name:"Bucket"` + RoleArn string `position:"Query" name:"RoleArn"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// BindOutputBucketResponse is the response struct for api BindOutputBucket +type BindOutputBucketResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateBindOutputBucketRequest creates a request to invoke BindOutputBucket API +func CreateBindOutputBucketRequest() (request *BindOutputBucketRequest) { + request = &BindOutputBucketRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "BindOutputBucket", "mts", "openAPI") + return +} + +// CreateBindOutputBucketResponse creates a response to parse from BindOutputBucket response +func CreateBindOutputBucketResponse() (response *BindOutputBucketResponse) { + response = &BindOutputBucketResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/cancel_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/cancel_job.go new file mode 100644 index 0000000..cf31e73 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/cancel_job.go @@ -0,0 +1,108 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CancelJob invokes the mts.CancelJob API synchronously +// api document: https://help.aliyun.com/api/mts/canceljob.html +func (client *Client) CancelJob(request *CancelJobRequest) (response *CancelJobResponse, err error) { + response = CreateCancelJobResponse() + err = client.DoAction(request, response) + return +} + +// CancelJobWithChan invokes the mts.CancelJob API asynchronously +// api document: https://help.aliyun.com/api/mts/canceljob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelJobWithChan(request *CancelJobRequest) (<-chan *CancelJobResponse, <-chan error) { + responseChan := make(chan *CancelJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CancelJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CancelJobWithCallback invokes the mts.CancelJob API asynchronously +// api document: https://help.aliyun.com/api/mts/canceljob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelJobWithCallback(request *CancelJobRequest, callback func(response *CancelJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CancelJobResponse + var err error + defer close(result) + response, err = client.CancelJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CancelJobRequest is the request struct for api CancelJob +type CancelJobRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobId string `position:"Query" name:"JobId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// CancelJobResponse is the response struct for api CancelJob +type CancelJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateCancelJobRequest creates a request to invoke CancelJob API +func CreateCancelJobRequest() (request *CancelJobRequest) { + request = &CancelJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "CancelJob", "mts", "openAPI") + return +} + +// CreateCancelJobResponse creates a response to parse from CancelJob response +func CreateCancelJobResponse() (response *CancelJobResponse) { + response = &CancelJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/category_tree.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/category_tree.go new file mode 100644 index 0000000..308d425 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/category_tree.go @@ -0,0 +1,107 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CategoryTree invokes the mts.CategoryTree API synchronously +// api document: https://help.aliyun.com/api/mts/categorytree.html +func (client *Client) CategoryTree(request *CategoryTreeRequest) (response *CategoryTreeResponse, err error) { + response = CreateCategoryTreeResponse() + err = client.DoAction(request, response) + return +} + +// CategoryTreeWithChan invokes the mts.CategoryTree API asynchronously +// api document: https://help.aliyun.com/api/mts/categorytree.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CategoryTreeWithChan(request *CategoryTreeRequest) (<-chan *CategoryTreeResponse, <-chan error) { + responseChan := make(chan *CategoryTreeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CategoryTree(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CategoryTreeWithCallback invokes the mts.CategoryTree API asynchronously +// api document: https://help.aliyun.com/api/mts/categorytree.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CategoryTreeWithCallback(request *CategoryTreeRequest, callback func(response *CategoryTreeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CategoryTreeResponse + var err error + defer close(result) + response, err = client.CategoryTree(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CategoryTreeRequest is the request struct for api CategoryTree +type CategoryTreeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// CategoryTreeResponse is the response struct for api CategoryTree +type CategoryTreeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CategoryTree string `json:"CategoryTree" xml:"CategoryTree"` +} + +// CreateCategoryTreeRequest creates a request to invoke CategoryTree API +func CreateCategoryTreeRequest() (request *CategoryTreeRequest) { + request = &CategoryTreeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "CategoryTree", "mts", "openAPI") + return +} + +// CreateCategoryTreeResponse creates a response to parse from CategoryTree response +func CreateCategoryTreeResponse() (response *CategoryTreeResponse) { + response = &CategoryTreeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/client.go new file mode 100644 index 0000000..027a5c2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/client.go @@ -0,0 +1,81 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/create_session.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/create_session.go new file mode 100644 index 0000000..4e57d53 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/create_session.go @@ -0,0 +1,111 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateSession invokes the mts.CreateSession API synchronously +// api document: https://help.aliyun.com/api/mts/createsession.html +func (client *Client) CreateSession(request *CreateSessionRequest) (response *CreateSessionResponse, err error) { + response = CreateCreateSessionResponse() + err = client.DoAction(request, response) + return +} + +// CreateSessionWithChan invokes the mts.CreateSession API asynchronously +// api document: https://help.aliyun.com/api/mts/createsession.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSessionWithChan(request *CreateSessionRequest) (<-chan *CreateSessionResponse, <-chan error) { + responseChan := make(chan *CreateSessionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateSession(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateSessionWithCallback invokes the mts.CreateSession API asynchronously +// api document: https://help.aliyun.com/api/mts/createsession.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSessionWithCallback(request *CreateSessionRequest, callback func(response *CreateSessionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateSessionResponse + var err error + defer close(result) + response, err = client.CreateSession(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateSessionRequest is the request struct for api CreateSession +type CreateSessionRequest struct { + *requests.RpcRequest + OwnerId string `position:"Query" name:"OwnerId"` + ResourceOwnerId string `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EndUserId string `position:"Query" name:"EndUserId"` + SessionTime requests.Integer `position:"Query" name:"SessionTime"` + MediaId string `position:"Query" name:"MediaId"` +} + +// CreateSessionResponse is the response struct for api CreateSession +type CreateSessionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SessionId string `json:"SessionId" xml:"SessionId"` + Ticket string `json:"Ticket" xml:"Ticket"` +} + +// CreateCreateSessionRequest creates a request to invoke CreateSession API +func CreateCreateSessionRequest() (request *CreateSessionRequest) { + request = &CreateSessionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "CreateSession", "mts", "openAPI") + return +} + +// CreateCreateSessionResponse creates a response to parse from CreateSession response +func CreateCreateSessionResponse() (response *CreateSessionResponse) { + response = &CreateSessionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/deactivate_media_workflow.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/deactivate_media_workflow.go new file mode 100644 index 0000000..9bec7e8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/deactivate_media_workflow.go @@ -0,0 +1,108 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeactivateMediaWorkflow invokes the mts.DeactivateMediaWorkflow API synchronously +// api document: https://help.aliyun.com/api/mts/deactivatemediaworkflow.html +func (client *Client) DeactivateMediaWorkflow(request *DeactivateMediaWorkflowRequest) (response *DeactivateMediaWorkflowResponse, err error) { + response = CreateDeactivateMediaWorkflowResponse() + err = client.DoAction(request, response) + return +} + +// DeactivateMediaWorkflowWithChan invokes the mts.DeactivateMediaWorkflow API asynchronously +// api document: https://help.aliyun.com/api/mts/deactivatemediaworkflow.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeactivateMediaWorkflowWithChan(request *DeactivateMediaWorkflowRequest) (<-chan *DeactivateMediaWorkflowResponse, <-chan error) { + responseChan := make(chan *DeactivateMediaWorkflowResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeactivateMediaWorkflow(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeactivateMediaWorkflowWithCallback invokes the mts.DeactivateMediaWorkflow API asynchronously +// api document: https://help.aliyun.com/api/mts/deactivatemediaworkflow.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeactivateMediaWorkflowWithCallback(request *DeactivateMediaWorkflowRequest, callback func(response *DeactivateMediaWorkflowResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeactivateMediaWorkflowResponse + var err error + defer close(result) + response, err = client.DeactivateMediaWorkflow(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeactivateMediaWorkflowRequest is the request struct for api DeactivateMediaWorkflow +type DeactivateMediaWorkflowRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MediaWorkflowId string `position:"Query" name:"MediaWorkflowId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DeactivateMediaWorkflowResponse is the response struct for api DeactivateMediaWorkflow +type DeactivateMediaWorkflowResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MediaWorkflow MediaWorkflow `json:"MediaWorkflow" xml:"MediaWorkflow"` +} + +// CreateDeactivateMediaWorkflowRequest creates a request to invoke DeactivateMediaWorkflow API +func CreateDeactivateMediaWorkflowRequest() (request *DeactivateMediaWorkflowRequest) { + request = &DeactivateMediaWorkflowRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "DeactivateMediaWorkflow", "mts", "openAPI") + return +} + +// CreateDeactivateMediaWorkflowResponse creates a response to parse from DeactivateMediaWorkflow response +func CreateDeactivateMediaWorkflowResponse() (response *DeactivateMediaWorkflowResponse) { + response = &DeactivateMediaWorkflowResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/decrypt_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/decrypt_key.go new file mode 100644 index 0000000..9615671 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/decrypt_key.go @@ -0,0 +1,110 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DecryptKey invokes the mts.DecryptKey API synchronously +// api document: https://help.aliyun.com/api/mts/decryptkey.html +func (client *Client) DecryptKey(request *DecryptKeyRequest) (response *DecryptKeyResponse, err error) { + response = CreateDecryptKeyResponse() + err = client.DoAction(request, response) + return +} + +// DecryptKeyWithChan invokes the mts.DecryptKey API asynchronously +// api document: https://help.aliyun.com/api/mts/decryptkey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DecryptKeyWithChan(request *DecryptKeyRequest) (<-chan *DecryptKeyResponse, <-chan error) { + responseChan := make(chan *DecryptKeyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DecryptKey(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DecryptKeyWithCallback invokes the mts.DecryptKey API asynchronously +// api document: https://help.aliyun.com/api/mts/decryptkey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DecryptKeyWithCallback(request *DecryptKeyRequest, callback func(response *DecryptKeyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DecryptKeyResponse + var err error + defer close(result) + response, err = client.DecryptKey(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DecryptKeyRequest is the request struct for api DecryptKey +type DecryptKeyRequest struct { + *requests.RpcRequest + OwnerId string `position:"Query" name:"OwnerId"` + ResourceOwnerId string `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + CiphertextBlob string `position:"Query" name:"CiphertextBlob"` + Rand string `position:"Query" name:"Rand"` +} + +// DecryptKeyResponse is the response struct for api DecryptKey +type DecryptKeyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Plaintext string `json:"Plaintext" xml:"Plaintext"` + Rand string `json:"Rand" xml:"Rand"` +} + +// CreateDecryptKeyRequest creates a request to invoke DecryptKey API +func CreateDecryptKeyRequest() (request *DecryptKeyRequest) { + request = &DecryptKeyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "DecryptKey", "mts", "openAPI") + return +} + +// CreateDecryptKeyResponse creates a response to parse from DecryptKey response +func CreateDecryptKeyResponse() (response *DecryptKeyResponse) { + response = &DecryptKeyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_category.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_category.go new file mode 100644 index 0000000..4394159 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_category.go @@ -0,0 +1,107 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCategory invokes the mts.DeleteCategory API synchronously +// api document: https://help.aliyun.com/api/mts/deletecategory.html +func (client *Client) DeleteCategory(request *DeleteCategoryRequest) (response *DeleteCategoryResponse, err error) { + response = CreateDeleteCategoryResponse() + err = client.DoAction(request, response) + return +} + +// DeleteCategoryWithChan invokes the mts.DeleteCategory API asynchronously +// api document: https://help.aliyun.com/api/mts/deletecategory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCategoryWithChan(request *DeleteCategoryRequest) (<-chan *DeleteCategoryResponse, <-chan error) { + responseChan := make(chan *DeleteCategoryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCategory(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteCategoryWithCallback invokes the mts.DeleteCategory API asynchronously +// api document: https://help.aliyun.com/api/mts/deletecategory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCategoryWithCallback(request *DeleteCategoryRequest, callback func(response *DeleteCategoryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteCategoryResponse + var err error + defer close(result) + response, err = client.DeleteCategory(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteCategoryRequest is the request struct for api DeleteCategory +type DeleteCategoryRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CateId requests.Integer `position:"Query" name:"CateId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DeleteCategoryResponse is the response struct for api DeleteCategory +type DeleteCategoryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteCategoryRequest creates a request to invoke DeleteCategory API +func CreateDeleteCategoryRequest() (request *DeleteCategoryRequest) { + request = &DeleteCategoryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "DeleteCategory", "mts", "openAPI") + return +} + +// CreateDeleteCategoryResponse creates a response to parse from DeleteCategory response +func CreateDeleteCategoryResponse() (response *DeleteCategoryResponse) { + response = &DeleteCategoryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_media.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_media.go new file mode 100644 index 0000000..83a63b7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_media.go @@ -0,0 +1,107 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteMedia invokes the mts.DeleteMedia API synchronously +// api document: https://help.aliyun.com/api/mts/deletemedia.html +func (client *Client) DeleteMedia(request *DeleteMediaRequest) (response *DeleteMediaResponse, err error) { + response = CreateDeleteMediaResponse() + err = client.DoAction(request, response) + return +} + +// DeleteMediaWithChan invokes the mts.DeleteMedia API asynchronously +// api document: https://help.aliyun.com/api/mts/deletemedia.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteMediaWithChan(request *DeleteMediaRequest) (<-chan *DeleteMediaResponse, <-chan error) { + responseChan := make(chan *DeleteMediaResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteMedia(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteMediaWithCallback invokes the mts.DeleteMedia API asynchronously +// api document: https://help.aliyun.com/api/mts/deletemedia.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteMediaWithCallback(request *DeleteMediaRequest, callback func(response *DeleteMediaResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteMediaResponse + var err error + defer close(result) + response, err = client.DeleteMedia(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteMediaRequest is the request struct for api DeleteMedia +type DeleteMediaRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MediaIds string `position:"Query" name:"MediaIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DeleteMediaResponse is the response struct for api DeleteMedia +type DeleteMediaResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteMediaRequest creates a request to invoke DeleteMedia API +func CreateDeleteMediaRequest() (request *DeleteMediaRequest) { + request = &DeleteMediaRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "DeleteMedia", "mts", "openAPI") + return +} + +// CreateDeleteMediaResponse creates a response to parse from DeleteMedia response +func CreateDeleteMediaResponse() (response *DeleteMediaResponse) { + response = &DeleteMediaResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_media_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_media_tag.go new file mode 100644 index 0000000..bac3e86 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_media_tag.go @@ -0,0 +1,108 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteMediaTag invokes the mts.DeleteMediaTag API synchronously +// api document: https://help.aliyun.com/api/mts/deletemediatag.html +func (client *Client) DeleteMediaTag(request *DeleteMediaTagRequest) (response *DeleteMediaTagResponse, err error) { + response = CreateDeleteMediaTagResponse() + err = client.DoAction(request, response) + return +} + +// DeleteMediaTagWithChan invokes the mts.DeleteMediaTag API asynchronously +// api document: https://help.aliyun.com/api/mts/deletemediatag.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteMediaTagWithChan(request *DeleteMediaTagRequest) (<-chan *DeleteMediaTagResponse, <-chan error) { + responseChan := make(chan *DeleteMediaTagResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteMediaTag(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteMediaTagWithCallback invokes the mts.DeleteMediaTag API asynchronously +// api document: https://help.aliyun.com/api/mts/deletemediatag.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteMediaTagWithCallback(request *DeleteMediaTagRequest, callback func(response *DeleteMediaTagResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteMediaTagResponse + var err error + defer close(result) + response, err = client.DeleteMediaTag(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteMediaTagRequest is the request struct for api DeleteMediaTag +type DeleteMediaTagRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MediaId string `position:"Query" name:"MediaId"` + Tag string `position:"Query" name:"Tag"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DeleteMediaTagResponse is the response struct for api DeleteMediaTag +type DeleteMediaTagResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteMediaTagRequest creates a request to invoke DeleteMediaTag API +func CreateDeleteMediaTagRequest() (request *DeleteMediaTagRequest) { + request = &DeleteMediaTagRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "DeleteMediaTag", "mts", "openAPI") + return +} + +// CreateDeleteMediaTagResponse creates a response to parse from DeleteMediaTag response +func CreateDeleteMediaTagResponse() (response *DeleteMediaTagResponse) { + response = &DeleteMediaTagResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_media_workflow.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_media_workflow.go new file mode 100644 index 0000000..06b410c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_media_workflow.go @@ -0,0 +1,108 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteMediaWorkflow invokes the mts.DeleteMediaWorkflow API synchronously +// api document: https://help.aliyun.com/api/mts/deletemediaworkflow.html +func (client *Client) DeleteMediaWorkflow(request *DeleteMediaWorkflowRequest) (response *DeleteMediaWorkflowResponse, err error) { + response = CreateDeleteMediaWorkflowResponse() + err = client.DoAction(request, response) + return +} + +// DeleteMediaWorkflowWithChan invokes the mts.DeleteMediaWorkflow API asynchronously +// api document: https://help.aliyun.com/api/mts/deletemediaworkflow.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteMediaWorkflowWithChan(request *DeleteMediaWorkflowRequest) (<-chan *DeleteMediaWorkflowResponse, <-chan error) { + responseChan := make(chan *DeleteMediaWorkflowResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteMediaWorkflow(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteMediaWorkflowWithCallback invokes the mts.DeleteMediaWorkflow API asynchronously +// api document: https://help.aliyun.com/api/mts/deletemediaworkflow.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteMediaWorkflowWithCallback(request *DeleteMediaWorkflowRequest, callback func(response *DeleteMediaWorkflowResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteMediaWorkflowResponse + var err error + defer close(result) + response, err = client.DeleteMediaWorkflow(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteMediaWorkflowRequest is the request struct for api DeleteMediaWorkflow +type DeleteMediaWorkflowRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MediaWorkflowId string `position:"Query" name:"MediaWorkflowId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DeleteMediaWorkflowResponse is the response struct for api DeleteMediaWorkflow +type DeleteMediaWorkflowResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MediaWorkflow MediaWorkflow `json:"MediaWorkflow" xml:"MediaWorkflow"` +} + +// CreateDeleteMediaWorkflowRequest creates a request to invoke DeleteMediaWorkflow API +func CreateDeleteMediaWorkflowRequest() (request *DeleteMediaWorkflowRequest) { + request = &DeleteMediaWorkflowRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "DeleteMediaWorkflow", "mts", "openAPI") + return +} + +// CreateDeleteMediaWorkflowResponse creates a response to parse from DeleteMediaWorkflow response +func CreateDeleteMediaWorkflowResponse() (response *DeleteMediaWorkflowResponse) { + response = &DeleteMediaWorkflowResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_pipeline.go new file mode 100644 index 0000000..585d585 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_pipeline.go @@ -0,0 +1,108 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeletePipeline invokes the mts.DeletePipeline API synchronously +// api document: https://help.aliyun.com/api/mts/deletepipeline.html +func (client *Client) DeletePipeline(request *DeletePipelineRequest) (response *DeletePipelineResponse, err error) { + response = CreateDeletePipelineResponse() + err = client.DoAction(request, response) + return +} + +// DeletePipelineWithChan invokes the mts.DeletePipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/deletepipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeletePipelineWithChan(request *DeletePipelineRequest) (<-chan *DeletePipelineResponse, <-chan error) { + responseChan := make(chan *DeletePipelineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeletePipeline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeletePipelineWithCallback invokes the mts.DeletePipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/deletepipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeletePipelineWithCallback(request *DeletePipelineRequest, callback func(response *DeletePipelineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeletePipelineResponse + var err error + defer close(result) + response, err = client.DeletePipeline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeletePipelineRequest is the request struct for api DeletePipeline +type DeletePipelineRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PipelineId string `position:"Query" name:"PipelineId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DeletePipelineResponse is the response struct for api DeletePipeline +type DeletePipelineResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PipelineId string `json:"PipelineId" xml:"PipelineId"` +} + +// CreateDeletePipelineRequest creates a request to invoke DeletePipeline API +func CreateDeletePipelineRequest() (request *DeletePipelineRequest) { + request = &DeletePipelineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "DeletePipeline", "mts", "openAPI") + return +} + +// CreateDeletePipelineResponse creates a response to parse from DeletePipeline response +func CreateDeletePipelineResponse() (response *DeletePipelineResponse) { + response = &DeletePipelineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_template.go new file mode 100644 index 0000000..51d628a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_template.go @@ -0,0 +1,108 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteTemplate invokes the mts.DeleteTemplate API synchronously +// api document: https://help.aliyun.com/api/mts/deletetemplate.html +func (client *Client) DeleteTemplate(request *DeleteTemplateRequest) (response *DeleteTemplateResponse, err error) { + response = CreateDeleteTemplateResponse() + err = client.DoAction(request, response) + return +} + +// DeleteTemplateWithChan invokes the mts.DeleteTemplate API asynchronously +// api document: https://help.aliyun.com/api/mts/deletetemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteTemplateWithChan(request *DeleteTemplateRequest) (<-chan *DeleteTemplateResponse, <-chan error) { + responseChan := make(chan *DeleteTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteTemplateWithCallback invokes the mts.DeleteTemplate API asynchronously +// api document: https://help.aliyun.com/api/mts/deletetemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteTemplateWithCallback(request *DeleteTemplateRequest, callback func(response *DeleteTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteTemplateResponse + var err error + defer close(result) + response, err = client.DeleteTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteTemplateRequest is the request struct for api DeleteTemplate +type DeleteTemplateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TemplateId string `position:"Query" name:"TemplateId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DeleteTemplateResponse is the response struct for api DeleteTemplate +type DeleteTemplateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TemplateId string `json:"TemplateId" xml:"TemplateId"` +} + +// CreateDeleteTemplateRequest creates a request to invoke DeleteTemplate API +func CreateDeleteTemplateRequest() (request *DeleteTemplateRequest) { + request = &DeleteTemplateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "DeleteTemplate", "mts", "openAPI") + return +} + +// CreateDeleteTemplateResponse creates a response to parse from DeleteTemplate response +func CreateDeleteTemplateResponse() (response *DeleteTemplateResponse) { + response = &DeleteTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_water_mark_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_water_mark_template.go new file mode 100644 index 0000000..a7d310f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/delete_water_mark_template.go @@ -0,0 +1,108 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteWaterMarkTemplate invokes the mts.DeleteWaterMarkTemplate API synchronously +// api document: https://help.aliyun.com/api/mts/deletewatermarktemplate.html +func (client *Client) DeleteWaterMarkTemplate(request *DeleteWaterMarkTemplateRequest) (response *DeleteWaterMarkTemplateResponse, err error) { + response = CreateDeleteWaterMarkTemplateResponse() + err = client.DoAction(request, response) + return +} + +// DeleteWaterMarkTemplateWithChan invokes the mts.DeleteWaterMarkTemplate API asynchronously +// api document: https://help.aliyun.com/api/mts/deletewatermarktemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteWaterMarkTemplateWithChan(request *DeleteWaterMarkTemplateRequest) (<-chan *DeleteWaterMarkTemplateResponse, <-chan error) { + responseChan := make(chan *DeleteWaterMarkTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteWaterMarkTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteWaterMarkTemplateWithCallback invokes the mts.DeleteWaterMarkTemplate API asynchronously +// api document: https://help.aliyun.com/api/mts/deletewatermarktemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteWaterMarkTemplateWithCallback(request *DeleteWaterMarkTemplateRequest, callback func(response *DeleteWaterMarkTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteWaterMarkTemplateResponse + var err error + defer close(result) + response, err = client.DeleteWaterMarkTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteWaterMarkTemplateRequest is the request struct for api DeleteWaterMarkTemplate +type DeleteWaterMarkTemplateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + WaterMarkTemplateId string `position:"Query" name:"WaterMarkTemplateId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DeleteWaterMarkTemplateResponse is the response struct for api DeleteWaterMarkTemplate +type DeleteWaterMarkTemplateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + WaterMarkTemplateId string `json:"WaterMarkTemplateId" xml:"WaterMarkTemplateId"` +} + +// CreateDeleteWaterMarkTemplateRequest creates a request to invoke DeleteWaterMarkTemplate API +func CreateDeleteWaterMarkTemplateRequest() (request *DeleteWaterMarkTemplateRequest) { + request = &DeleteWaterMarkTemplateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "DeleteWaterMarkTemplate", "mts", "openAPI") + return +} + +// CreateDeleteWaterMarkTemplateResponse creates a response to parse from DeleteWaterMarkTemplate response +func CreateDeleteWaterMarkTemplateResponse() (response *DeleteWaterMarkTemplateResponse) { + response = &DeleteWaterMarkTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/get_license.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/get_license.go new file mode 100644 index 0000000..78dd053 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/get_license.go @@ -0,0 +1,110 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetLicense invokes the mts.GetLicense API synchronously +// api document: https://help.aliyun.com/api/mts/getlicense.html +func (client *Client) GetLicense(request *GetLicenseRequest) (response *GetLicenseResponse, err error) { + response = CreateGetLicenseResponse() + err = client.DoAction(request, response) + return +} + +// GetLicenseWithChan invokes the mts.GetLicense API asynchronously +// api document: https://help.aliyun.com/api/mts/getlicense.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetLicenseWithChan(request *GetLicenseRequest) (<-chan *GetLicenseResponse, <-chan error) { + responseChan := make(chan *GetLicenseResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetLicense(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetLicenseWithCallback invokes the mts.GetLicense API asynchronously +// api document: https://help.aliyun.com/api/mts/getlicense.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetLicenseWithCallback(request *GetLicenseRequest, callback func(response *GetLicenseResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetLicenseResponse + var err error + defer close(result) + response, err = client.GetLicense(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetLicenseRequest is the request struct for api GetLicense +type GetLicenseRequest struct { + *requests.RpcRequest + OwnerId string `position:"Query" name:"OwnerId"` + ResourceOwnerId string `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + LicenseUrl string `position:"Query" name:"LicenseUrl"` + Data string `position:"Query" name:"Data"` + MediaId string `position:"Query" name:"MediaId"` +} + +// GetLicenseResponse is the response struct for api GetLicense +type GetLicenseResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + License string `json:"License" xml:"License"` +} + +// CreateGetLicenseRequest creates a request to invoke GetLicense API +func CreateGetLicenseRequest() (request *GetLicenseRequest) { + request = &GetLicenseRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "GetLicense", "mts", "openAPI") + return +} + +// CreateGetLicenseResponse creates a response to parse from GetLicense response +func CreateGetLicenseResponse() (response *GetLicenseResponse) { + response = &GetLicenseResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/get_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/get_package.go new file mode 100644 index 0000000..95646a6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/get_package.go @@ -0,0 +1,108 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetPackage invokes the mts.GetPackage API synchronously +// api document: https://help.aliyun.com/api/mts/getpackage.html +func (client *Client) GetPackage(request *GetPackageRequest) (response *GetPackageResponse, err error) { + response = CreateGetPackageResponse() + err = client.DoAction(request, response) + return +} + +// GetPackageWithChan invokes the mts.GetPackage API asynchronously +// api document: https://help.aliyun.com/api/mts/getpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPackageWithChan(request *GetPackageRequest) (<-chan *GetPackageResponse, <-chan error) { + responseChan := make(chan *GetPackageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetPackage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetPackageWithCallback invokes the mts.GetPackage API asynchronously +// api document: https://help.aliyun.com/api/mts/getpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPackageWithCallback(request *GetPackageRequest, callback func(response *GetPackageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetPackageResponse + var err error + defer close(result) + response, err = client.GetPackage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetPackageRequest is the request struct for api GetPackage +type GetPackageRequest struct { + *requests.RpcRequest + OwnerId string `position:"Query" name:"OwnerId"` + ResourceOwnerId string `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Data string `position:"Query" name:"Data"` +} + +// GetPackageResponse is the response struct for api GetPackage +type GetPackageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CertPackage string `json:"CertPackage" xml:"CertPackage"` +} + +// CreateGetPackageRequest creates a request to invoke GetPackage API +func CreateGetPackageRequest() (request *GetPackageRequest) { + request = &GetPackageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "GetPackage", "mts", "openAPI") + return +} + +// CreateGetPackageResponse creates a response to parse from GetPackage response +func CreateGetPackageResponse() (response *GetPackageResponse) { + response = &GetPackageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_all_category.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_all_category.go new file mode 100644 index 0000000..8a70d1f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_all_category.go @@ -0,0 +1,107 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListAllCategory invokes the mts.ListAllCategory API synchronously +// api document: https://help.aliyun.com/api/mts/listallcategory.html +func (client *Client) ListAllCategory(request *ListAllCategoryRequest) (response *ListAllCategoryResponse, err error) { + response = CreateListAllCategoryResponse() + err = client.DoAction(request, response) + return +} + +// ListAllCategoryWithChan invokes the mts.ListAllCategory API asynchronously +// api document: https://help.aliyun.com/api/mts/listallcategory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListAllCategoryWithChan(request *ListAllCategoryRequest) (<-chan *ListAllCategoryResponse, <-chan error) { + responseChan := make(chan *ListAllCategoryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListAllCategory(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListAllCategoryWithCallback invokes the mts.ListAllCategory API asynchronously +// api document: https://help.aliyun.com/api/mts/listallcategory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListAllCategoryWithCallback(request *ListAllCategoryRequest, callback func(response *ListAllCategoryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListAllCategoryResponse + var err error + defer close(result) + response, err = client.ListAllCategory(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListAllCategoryRequest is the request struct for api ListAllCategory +type ListAllCategoryRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ListAllCategoryResponse is the response struct for api ListAllCategory +type ListAllCategoryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CategoryList CategoryList `json:"CategoryList" xml:"CategoryList"` +} + +// CreateListAllCategoryRequest creates a request to invoke ListAllCategory API +func CreateListAllCategoryRequest() (request *ListAllCategoryRequest) { + request = &ListAllCategoryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "ListAllCategory", "mts", "openAPI") + return +} + +// CreateListAllCategoryResponse creates a response to parse from ListAllCategory response +func CreateListAllCategoryResponse() (response *ListAllCategoryResponse) { + response = &ListAllCategoryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_all_media_bucket.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_all_media_bucket.go new file mode 100644 index 0000000..3b10125 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_all_media_bucket.go @@ -0,0 +1,107 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListAllMediaBucket invokes the mts.ListAllMediaBucket API synchronously +// api document: https://help.aliyun.com/api/mts/listallmediabucket.html +func (client *Client) ListAllMediaBucket(request *ListAllMediaBucketRequest) (response *ListAllMediaBucketResponse, err error) { + response = CreateListAllMediaBucketResponse() + err = client.DoAction(request, response) + return +} + +// ListAllMediaBucketWithChan invokes the mts.ListAllMediaBucket API asynchronously +// api document: https://help.aliyun.com/api/mts/listallmediabucket.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListAllMediaBucketWithChan(request *ListAllMediaBucketRequest) (<-chan *ListAllMediaBucketResponse, <-chan error) { + responseChan := make(chan *ListAllMediaBucketResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListAllMediaBucket(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListAllMediaBucketWithCallback invokes the mts.ListAllMediaBucket API asynchronously +// api document: https://help.aliyun.com/api/mts/listallmediabucket.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListAllMediaBucketWithCallback(request *ListAllMediaBucketRequest, callback func(response *ListAllMediaBucketResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListAllMediaBucketResponse + var err error + defer close(result) + response, err = client.ListAllMediaBucket(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListAllMediaBucketRequest is the request struct for api ListAllMediaBucket +type ListAllMediaBucketRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ListAllMediaBucketResponse is the response struct for api ListAllMediaBucket +type ListAllMediaBucketResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MediaBucketList MediaBucketList `json:"MediaBucketList" xml:"MediaBucketList"` +} + +// CreateListAllMediaBucketRequest creates a request to invoke ListAllMediaBucket API +func CreateListAllMediaBucketRequest() (request *ListAllMediaBucketRequest) { + request = &ListAllMediaBucketRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "ListAllMediaBucket", "mts", "openAPI") + return +} + +// CreateListAllMediaBucketResponse creates a response to parse from ListAllMediaBucket response +func CreateListAllMediaBucketResponse() (response *ListAllMediaBucketResponse) { + response = &ListAllMediaBucketResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_asr_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_asr_pipeline.go new file mode 100644 index 0000000..76f0531 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_asr_pipeline.go @@ -0,0 +1,113 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListAsrPipeline invokes the mts.ListAsrPipeline API synchronously +// api document: https://help.aliyun.com/api/mts/listasrpipeline.html +func (client *Client) ListAsrPipeline(request *ListAsrPipelineRequest) (response *ListAsrPipelineResponse, err error) { + response = CreateListAsrPipelineResponse() + err = client.DoAction(request, response) + return +} + +// ListAsrPipelineWithChan invokes the mts.ListAsrPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/listasrpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListAsrPipelineWithChan(request *ListAsrPipelineRequest) (<-chan *ListAsrPipelineResponse, <-chan error) { + responseChan := make(chan *ListAsrPipelineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListAsrPipeline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListAsrPipelineWithCallback invokes the mts.ListAsrPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/listasrpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListAsrPipelineWithCallback(request *ListAsrPipelineRequest, callback func(response *ListAsrPipelineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListAsrPipelineResponse + var err error + defer close(result) + response, err = client.ListAsrPipeline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListAsrPipelineRequest is the request struct for api ListAsrPipeline +type ListAsrPipelineRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + State string `position:"Query" name:"State"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ListAsrPipelineResponse is the response struct for api ListAsrPipeline +type ListAsrPipelineResponse 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"` + PipelineList PipelineListInListAsrPipeline `json:"PipelineList" xml:"PipelineList"` +} + +// CreateListAsrPipelineRequest creates a request to invoke ListAsrPipeline API +func CreateListAsrPipelineRequest() (request *ListAsrPipelineRequest) { + request = &ListAsrPipelineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "ListAsrPipeline", "mts", "openAPI") + return +} + +// CreateListAsrPipelineResponse creates a response to parse from ListAsrPipeline response +func CreateListAsrPipelineResponse() (response *ListAsrPipelineResponse) { + response = &ListAsrPipelineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_censor_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_censor_pipeline.go new file mode 100644 index 0000000..15adbf2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_censor_pipeline.go @@ -0,0 +1,113 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListCensorPipeline invokes the mts.ListCensorPipeline API synchronously +// api document: https://help.aliyun.com/api/mts/listcensorpipeline.html +func (client *Client) ListCensorPipeline(request *ListCensorPipelineRequest) (response *ListCensorPipelineResponse, err error) { + response = CreateListCensorPipelineResponse() + err = client.DoAction(request, response) + return +} + +// ListCensorPipelineWithChan invokes the mts.ListCensorPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/listcensorpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListCensorPipelineWithChan(request *ListCensorPipelineRequest) (<-chan *ListCensorPipelineResponse, <-chan error) { + responseChan := make(chan *ListCensorPipelineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListCensorPipeline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListCensorPipelineWithCallback invokes the mts.ListCensorPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/listcensorpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListCensorPipelineWithCallback(request *ListCensorPipelineRequest, callback func(response *ListCensorPipelineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListCensorPipelineResponse + var err error + defer close(result) + response, err = client.ListCensorPipeline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListCensorPipelineRequest is the request struct for api ListCensorPipeline +type ListCensorPipelineRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + State string `position:"Query" name:"State"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ListCensorPipelineResponse is the response struct for api ListCensorPipeline +type ListCensorPipelineResponse 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"` + PipelineList PipelineListInListCensorPipeline `json:"PipelineList" xml:"PipelineList"` +} + +// CreateListCensorPipelineRequest creates a request to invoke ListCensorPipeline API +func CreateListCensorPipelineRequest() (request *ListCensorPipelineRequest) { + request = &ListCensorPipelineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "ListCensorPipeline", "mts", "openAPI") + return +} + +// CreateListCensorPipelineResponse creates a response to parse from ListCensorPipeline response +func CreateListCensorPipelineResponse() (response *ListCensorPipelineResponse) { + response = &ListCensorPipelineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_cover_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_cover_pipeline.go new file mode 100644 index 0000000..38f8a51 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_cover_pipeline.go @@ -0,0 +1,113 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListCoverPipeline invokes the mts.ListCoverPipeline API synchronously +// api document: https://help.aliyun.com/api/mts/listcoverpipeline.html +func (client *Client) ListCoverPipeline(request *ListCoverPipelineRequest) (response *ListCoverPipelineResponse, err error) { + response = CreateListCoverPipelineResponse() + err = client.DoAction(request, response) + return +} + +// ListCoverPipelineWithChan invokes the mts.ListCoverPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/listcoverpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListCoverPipelineWithChan(request *ListCoverPipelineRequest) (<-chan *ListCoverPipelineResponse, <-chan error) { + responseChan := make(chan *ListCoverPipelineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListCoverPipeline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListCoverPipelineWithCallback invokes the mts.ListCoverPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/listcoverpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListCoverPipelineWithCallback(request *ListCoverPipelineRequest, callback func(response *ListCoverPipelineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListCoverPipelineResponse + var err error + defer close(result) + response, err = client.ListCoverPipeline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListCoverPipelineRequest is the request struct for api ListCoverPipeline +type ListCoverPipelineRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + State string `position:"Query" name:"State"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ListCoverPipelineResponse is the response struct for api ListCoverPipeline +type ListCoverPipelineResponse 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"` + PipelineList PipelineListInListCoverPipeline `json:"PipelineList" xml:"PipelineList"` +} + +// CreateListCoverPipelineRequest creates a request to invoke ListCoverPipeline API +func CreateListCoverPipelineRequest() (request *ListCoverPipelineRequest) { + request = &ListCoverPipelineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "ListCoverPipeline", "mts", "openAPI") + return +} + +// CreateListCoverPipelineResponse creates a response to parse from ListCoverPipeline response +func CreateListCoverPipelineResponse() (response *ListCoverPipelineResponse) { + response = &ListCoverPipelineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_job.go new file mode 100644 index 0000000..3c8973b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_job.go @@ -0,0 +1,114 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListJob invokes the mts.ListJob API synchronously +// api document: https://help.aliyun.com/api/mts/listjob.html +func (client *Client) ListJob(request *ListJobRequest) (response *ListJobResponse, err error) { + response = CreateListJobResponse() + err = client.DoAction(request, response) + return +} + +// ListJobWithChan invokes the mts.ListJob API asynchronously +// api document: https://help.aliyun.com/api/mts/listjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListJobWithChan(request *ListJobRequest) (<-chan *ListJobResponse, <-chan error) { + responseChan := make(chan *ListJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListJobWithCallback invokes the mts.ListJob API asynchronously +// api document: https://help.aliyun.com/api/mts/listjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListJobWithCallback(request *ListJobRequest, callback func(response *ListJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListJobResponse + var err error + defer close(result) + response, err = client.ListJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListJobRequest is the request struct for api ListJob +type ListJobRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + NextPageToken string `position:"Query" name:"NextPageToken"` + MaximumPageSize requests.Integer `position:"Query" name:"MaximumPageSize"` + State string `position:"Query" name:"State"` + StartOfJobCreatedTimeRange string `position:"Query" name:"StartOfJobCreatedTimeRange"` + EndOfJobCreatedTimeRange string `position:"Query" name:"EndOfJobCreatedTimeRange"` + PipelineId string `position:"Query" name:"PipelineId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ListJobResponse is the response struct for api ListJob +type ListJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NextPageToken string `json:"NextPageToken" xml:"NextPageToken"` + JobList JobListInListJob `json:"JobList" xml:"JobList"` +} + +// CreateListJobRequest creates a request to invoke ListJob API +func CreateListJobRequest() (request *ListJobRequest) { + request = &ListJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "ListJob", "mts", "openAPI") + return +} + +// CreateListJobResponse creates a response to parse from ListJob response +func CreateListJobResponse() (response *ListJobResponse) { + response = &ListJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_media.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_media.go new file mode 100644 index 0000000..00dbaeb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_media.go @@ -0,0 +1,112 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListMedia invokes the mts.ListMedia API synchronously +// api document: https://help.aliyun.com/api/mts/listmedia.html +func (client *Client) ListMedia(request *ListMediaRequest) (response *ListMediaResponse, err error) { + response = CreateListMediaResponse() + err = client.DoAction(request, response) + return +} + +// ListMediaWithChan invokes the mts.ListMedia API asynchronously +// api document: https://help.aliyun.com/api/mts/listmedia.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListMediaWithChan(request *ListMediaRequest) (<-chan *ListMediaResponse, <-chan error) { + responseChan := make(chan *ListMediaResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListMedia(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListMediaWithCallback invokes the mts.ListMedia API asynchronously +// api document: https://help.aliyun.com/api/mts/listmedia.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListMediaWithCallback(request *ListMediaRequest, callback func(response *ListMediaResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListMediaResponse + var err error + defer close(result) + response, err = client.ListMedia(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListMediaRequest is the request struct for api ListMedia +type ListMediaRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + NextPageToken string `position:"Query" name:"NextPageToken"` + MaximumPageSize requests.Integer `position:"Query" name:"MaximumPageSize"` + From string `position:"Query" name:"From"` + To string `position:"Query" name:"To"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ListMediaResponse is the response struct for api ListMedia +type ListMediaResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NextPageToken string `json:"NextPageToken" xml:"NextPageToken"` + MediaList MediaListInListMedia `json:"MediaList" xml:"MediaList"` +} + +// CreateListMediaRequest creates a request to invoke ListMedia API +func CreateListMediaRequest() (request *ListMediaRequest) { + request = &ListMediaRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "ListMedia", "mts", "openAPI") + return +} + +// CreateListMediaResponse creates a response to parse from ListMedia response +func CreateListMediaResponse() (response *ListMediaResponse) { + response = &ListMediaResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_media_workflow_executions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_media_workflow_executions.go new file mode 100644 index 0000000..034db65 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_media_workflow_executions.go @@ -0,0 +1,113 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListMediaWorkflowExecutions invokes the mts.ListMediaWorkflowExecutions API synchronously +// api document: https://help.aliyun.com/api/mts/listmediaworkflowexecutions.html +func (client *Client) ListMediaWorkflowExecutions(request *ListMediaWorkflowExecutionsRequest) (response *ListMediaWorkflowExecutionsResponse, err error) { + response = CreateListMediaWorkflowExecutionsResponse() + err = client.DoAction(request, response) + return +} + +// ListMediaWorkflowExecutionsWithChan invokes the mts.ListMediaWorkflowExecutions API asynchronously +// api document: https://help.aliyun.com/api/mts/listmediaworkflowexecutions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListMediaWorkflowExecutionsWithChan(request *ListMediaWorkflowExecutionsRequest) (<-chan *ListMediaWorkflowExecutionsResponse, <-chan error) { + responseChan := make(chan *ListMediaWorkflowExecutionsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListMediaWorkflowExecutions(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListMediaWorkflowExecutionsWithCallback invokes the mts.ListMediaWorkflowExecutions API asynchronously +// api document: https://help.aliyun.com/api/mts/listmediaworkflowexecutions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListMediaWorkflowExecutionsWithCallback(request *ListMediaWorkflowExecutionsRequest, callback func(response *ListMediaWorkflowExecutionsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListMediaWorkflowExecutionsResponse + var err error + defer close(result) + response, err = client.ListMediaWorkflowExecutions(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListMediaWorkflowExecutionsRequest is the request struct for api ListMediaWorkflowExecutions +type ListMediaWorkflowExecutionsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MediaWorkflowId string `position:"Query" name:"MediaWorkflowId"` + MediaWorkflowName string `position:"Query" name:"MediaWorkflowName"` + InputFileURL string `position:"Query" name:"InputFileURL"` + NextPageToken string `position:"Query" name:"NextPageToken"` + MaximumPageSize requests.Integer `position:"Query" name:"MaximumPageSize"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ListMediaWorkflowExecutionsResponse is the response struct for api ListMediaWorkflowExecutions +type ListMediaWorkflowExecutionsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NextPageToken string `json:"NextPageToken" xml:"NextPageToken"` + MediaWorkflowExecutionList MediaWorkflowExecutionListInListMediaWorkflowExecutions `json:"MediaWorkflowExecutionList" xml:"MediaWorkflowExecutionList"` +} + +// CreateListMediaWorkflowExecutionsRequest creates a request to invoke ListMediaWorkflowExecutions API +func CreateListMediaWorkflowExecutionsRequest() (request *ListMediaWorkflowExecutionsRequest) { + request = &ListMediaWorkflowExecutionsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "ListMediaWorkflowExecutions", "mts", "openAPI") + return +} + +// CreateListMediaWorkflowExecutionsResponse creates a response to parse from ListMediaWorkflowExecutions response +func CreateListMediaWorkflowExecutionsResponse() (response *ListMediaWorkflowExecutionsResponse) { + response = &ListMediaWorkflowExecutionsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_porn_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_porn_pipeline.go new file mode 100644 index 0000000..7418465 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_porn_pipeline.go @@ -0,0 +1,113 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListPornPipeline invokes the mts.ListPornPipeline API synchronously +// api document: https://help.aliyun.com/api/mts/listpornpipeline.html +func (client *Client) ListPornPipeline(request *ListPornPipelineRequest) (response *ListPornPipelineResponse, err error) { + response = CreateListPornPipelineResponse() + err = client.DoAction(request, response) + return +} + +// ListPornPipelineWithChan invokes the mts.ListPornPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/listpornpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPornPipelineWithChan(request *ListPornPipelineRequest) (<-chan *ListPornPipelineResponse, <-chan error) { + responseChan := make(chan *ListPornPipelineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPornPipeline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPornPipelineWithCallback invokes the mts.ListPornPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/listpornpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPornPipelineWithCallback(request *ListPornPipelineRequest, callback func(response *ListPornPipelineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPornPipelineResponse + var err error + defer close(result) + response, err = client.ListPornPipeline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPornPipelineRequest is the request struct for api ListPornPipeline +type ListPornPipelineRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + State string `position:"Query" name:"State"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ListPornPipelineResponse is the response struct for api ListPornPipeline +type ListPornPipelineResponse 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"` + PipelineList PipelineListInListPornPipeline `json:"PipelineList" xml:"PipelineList"` +} + +// CreateListPornPipelineRequest creates a request to invoke ListPornPipeline API +func CreateListPornPipelineRequest() (request *ListPornPipelineRequest) { + request = &ListPornPipelineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "ListPornPipeline", "mts", "openAPI") + return +} + +// CreateListPornPipelineResponse creates a response to parse from ListPornPipeline response +func CreateListPornPipelineResponse() (response *ListPornPipelineResponse) { + response = &ListPornPipelineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_terrorism_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_terrorism_pipeline.go new file mode 100644 index 0000000..476817e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/list_terrorism_pipeline.go @@ -0,0 +1,113 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListTerrorismPipeline invokes the mts.ListTerrorismPipeline API synchronously +// api document: https://help.aliyun.com/api/mts/listterrorismpipeline.html +func (client *Client) ListTerrorismPipeline(request *ListTerrorismPipelineRequest) (response *ListTerrorismPipelineResponse, err error) { + response = CreateListTerrorismPipelineResponse() + err = client.DoAction(request, response) + return +} + +// ListTerrorismPipelineWithChan invokes the mts.ListTerrorismPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/listterrorismpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListTerrorismPipelineWithChan(request *ListTerrorismPipelineRequest) (<-chan *ListTerrorismPipelineResponse, <-chan error) { + responseChan := make(chan *ListTerrorismPipelineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListTerrorismPipeline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListTerrorismPipelineWithCallback invokes the mts.ListTerrorismPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/listterrorismpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListTerrorismPipelineWithCallback(request *ListTerrorismPipelineRequest, callback func(response *ListTerrorismPipelineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListTerrorismPipelineResponse + var err error + defer close(result) + response, err = client.ListTerrorismPipeline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListTerrorismPipelineRequest is the request struct for api ListTerrorismPipeline +type ListTerrorismPipelineRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + State string `position:"Query" name:"State"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ListTerrorismPipelineResponse is the response struct for api ListTerrorismPipeline +type ListTerrorismPipelineResponse 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"` + PipelineList PipelineListInListTerrorismPipeline `json:"PipelineList" xml:"PipelineList"` +} + +// CreateListTerrorismPipelineRequest creates a request to invoke ListTerrorismPipeline API +func CreateListTerrorismPipelineRequest() (request *ListTerrorismPipelineRequest) { + request = &ListTerrorismPipelineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "ListTerrorismPipeline", "mts", "openAPI") + return +} + +// CreateListTerrorismPipelineResponse creates a response to parse from ListTerrorismPipeline response +func CreateListTerrorismPipelineResponse() (response *ListTerrorismPipelineResponse) { + response = &ListTerrorismPipelineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/play_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/play_info.go new file mode 100644 index 0000000..004790a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/play_info.go @@ -0,0 +1,115 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PlayInfo invokes the mts.PlayInfo API synchronously +// api document: https://help.aliyun.com/api/mts/playinfo.html +func (client *Client) PlayInfo(request *PlayInfoRequest) (response *PlayInfoResponse, err error) { + response = CreatePlayInfoResponse() + err = client.DoAction(request, response) + return +} + +// PlayInfoWithChan invokes the mts.PlayInfo API asynchronously +// api document: https://help.aliyun.com/api/mts/playinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PlayInfoWithChan(request *PlayInfoRequest) (<-chan *PlayInfoResponse, <-chan error) { + responseChan := make(chan *PlayInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PlayInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PlayInfoWithCallback invokes the mts.PlayInfo API asynchronously +// api document: https://help.aliyun.com/api/mts/playinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PlayInfoWithCallback(request *PlayInfoRequest, callback func(response *PlayInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PlayInfoResponse + var err error + defer close(result) + response, err = client.PlayInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PlayInfoRequest is the request struct for api PlayInfo +type PlayInfoRequest struct { + *requests.RpcRequest + OwnerId string `position:"Query" name:"OwnerId"` + ResourceOwnerId string `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + MediaId string `position:"Query" name:"MediaId"` + Formats string `position:"Query" name:"Formats"` + AuthInfo string `position:"Query" name:"AuthInfo"` + AuthTimeout requests.Integer `position:"Query" name:"AuthTimeout"` + Rand string `position:"Query" name:"Rand"` + PlayDomain string `position:"Query" name:"PlayDomain"` + HlsUriToken string `position:"Query" name:"HlsUriToken"` +} + +// PlayInfoResponse is the response struct for api PlayInfo +type PlayInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NotFoundCDNDomain NotFoundCDNDomain `json:"NotFoundCDNDomain" xml:"NotFoundCDNDomain"` + PlayInfoList PlayInfoList `json:"PlayInfoList" xml:"PlayInfoList"` +} + +// CreatePlayInfoRequest creates a request to invoke PlayInfo API +func CreatePlayInfoRequest() (request *PlayInfoRequest) { + request = &PlayInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "PlayInfo", "mts", "openAPI") + return +} + +// CreatePlayInfoResponse creates a response to parse from PlayInfo response +func CreatePlayInfoResponse() (response *PlayInfoResponse) { + response = &PlayInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/player_auth.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/player_auth.go new file mode 100644 index 0000000..43f7767 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/player_auth.go @@ -0,0 +1,108 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PlayerAuth invokes the mts.PlayerAuth API synchronously +// api document: https://help.aliyun.com/api/mts/playerauth.html +func (client *Client) PlayerAuth(request *PlayerAuthRequest) (response *PlayerAuthResponse, err error) { + response = CreatePlayerAuthResponse() + err = client.DoAction(request, response) + return +} + +// PlayerAuthWithChan invokes the mts.PlayerAuth API asynchronously +// api document: https://help.aliyun.com/api/mts/playerauth.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PlayerAuthWithChan(request *PlayerAuthRequest) (<-chan *PlayerAuthResponse, <-chan error) { + responseChan := make(chan *PlayerAuthResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PlayerAuth(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PlayerAuthWithCallback invokes the mts.PlayerAuth API asynchronously +// api document: https://help.aliyun.com/api/mts/playerauth.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PlayerAuthWithCallback(request *PlayerAuthRequest, callback func(response *PlayerAuthResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PlayerAuthResponse + var err error + defer close(result) + response, err = client.PlayerAuth(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PlayerAuthRequest is the request struct for api PlayerAuth +type PlayerAuthRequest struct { + *requests.RpcRequest + OwnerId string `position:"Query" name:"OwnerId"` + ResourceOwnerId string `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// PlayerAuthResponse is the response struct for api PlayerAuth +type PlayerAuthResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LogURL string `json:"LogURL" xml:"LogURL"` + SwitchList SwitchList `json:"SwitchList" xml:"SwitchList"` +} + +// CreatePlayerAuthRequest creates a request to invoke PlayerAuth API +func CreatePlayerAuthRequest() (request *PlayerAuthRequest) { + request = &PlayerAuthRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "PlayerAuth", "mts", "openAPI") + return +} + +// CreatePlayerAuthResponse creates a response to parse from PlayerAuth response +func CreatePlayerAuthResponse() (response *PlayerAuthResponse) { + response = &PlayerAuthResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_analysis_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_analysis_job_list.go new file mode 100644 index 0000000..670988b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_analysis_job_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryAnalysisJobList invokes the mts.QueryAnalysisJobList API synchronously +// api document: https://help.aliyun.com/api/mts/queryanalysisjoblist.html +func (client *Client) QueryAnalysisJobList(request *QueryAnalysisJobListRequest) (response *QueryAnalysisJobListResponse, err error) { + response = CreateQueryAnalysisJobListResponse() + err = client.DoAction(request, response) + return +} + +// QueryAnalysisJobListWithChan invokes the mts.QueryAnalysisJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryanalysisjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryAnalysisJobListWithChan(request *QueryAnalysisJobListRequest) (<-chan *QueryAnalysisJobListResponse, <-chan error) { + responseChan := make(chan *QueryAnalysisJobListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryAnalysisJobList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryAnalysisJobListWithCallback invokes the mts.QueryAnalysisJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryanalysisjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryAnalysisJobListWithCallback(request *QueryAnalysisJobListRequest, callback func(response *QueryAnalysisJobListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryAnalysisJobListResponse + var err error + defer close(result) + response, err = client.QueryAnalysisJobList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryAnalysisJobListRequest is the request struct for api QueryAnalysisJobList +type QueryAnalysisJobListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AnalysisJobIds string `position:"Query" name:"AnalysisJobIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryAnalysisJobListResponse is the response struct for api QueryAnalysisJobList +type QueryAnalysisJobListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistAnalysisJobIds NonExistAnalysisJobIds `json:"NonExistAnalysisJobIds" xml:"NonExistAnalysisJobIds"` + AnalysisJobList AnalysisJobList `json:"AnalysisJobList" xml:"AnalysisJobList"` +} + +// CreateQueryAnalysisJobListRequest creates a request to invoke QueryAnalysisJobList API +func CreateQueryAnalysisJobListRequest() (request *QueryAnalysisJobListRequest) { + request = &QueryAnalysisJobListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryAnalysisJobList", "mts", "openAPI") + return +} + +// CreateQueryAnalysisJobListResponse creates a response to parse from QueryAnalysisJobList response +func CreateQueryAnalysisJobListResponse() (response *QueryAnalysisJobListResponse) { + response = &QueryAnalysisJobListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_annotation_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_annotation_job_list.go new file mode 100644 index 0000000..be7c2d5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_annotation_job_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryAnnotationJobList invokes the mts.QueryAnnotationJobList API synchronously +// api document: https://help.aliyun.com/api/mts/queryannotationjoblist.html +func (client *Client) QueryAnnotationJobList(request *QueryAnnotationJobListRequest) (response *QueryAnnotationJobListResponse, err error) { + response = CreateQueryAnnotationJobListResponse() + err = client.DoAction(request, response) + return +} + +// QueryAnnotationJobListWithChan invokes the mts.QueryAnnotationJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryannotationjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryAnnotationJobListWithChan(request *QueryAnnotationJobListRequest) (<-chan *QueryAnnotationJobListResponse, <-chan error) { + responseChan := make(chan *QueryAnnotationJobListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryAnnotationJobList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryAnnotationJobListWithCallback invokes the mts.QueryAnnotationJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryannotationjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryAnnotationJobListWithCallback(request *QueryAnnotationJobListRequest, callback func(response *QueryAnnotationJobListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryAnnotationJobListResponse + var err error + defer close(result) + response, err = client.QueryAnnotationJobList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryAnnotationJobListRequest is the request struct for api QueryAnnotationJobList +type QueryAnnotationJobListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AnnotationJobIds string `position:"Query" name:"AnnotationJobIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryAnnotationJobListResponse is the response struct for api QueryAnnotationJobList +type QueryAnnotationJobListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistIds NonExistIdsInQueryAnnotationJobList `json:"NonExistIds" xml:"NonExistIds"` + AnnotationJobList AnnotationJobList `json:"AnnotationJobList" xml:"AnnotationJobList"` +} + +// CreateQueryAnnotationJobListRequest creates a request to invoke QueryAnnotationJobList API +func CreateQueryAnnotationJobListRequest() (request *QueryAnnotationJobListRequest) { + request = &QueryAnnotationJobListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryAnnotationJobList", "mts", "openAPI") + return +} + +// CreateQueryAnnotationJobListResponse creates a response to parse from QueryAnnotationJobList response +func CreateQueryAnnotationJobListResponse() (response *QueryAnnotationJobListResponse) { + response = &QueryAnnotationJobListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_asr_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_asr_job_list.go new file mode 100644 index 0000000..986e2aa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_asr_job_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryAsrJobList invokes the mts.QueryAsrJobList API synchronously +// api document: https://help.aliyun.com/api/mts/queryasrjoblist.html +func (client *Client) QueryAsrJobList(request *QueryAsrJobListRequest) (response *QueryAsrJobListResponse, err error) { + response = CreateQueryAsrJobListResponse() + err = client.DoAction(request, response) + return +} + +// QueryAsrJobListWithChan invokes the mts.QueryAsrJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryasrjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryAsrJobListWithChan(request *QueryAsrJobListRequest) (<-chan *QueryAsrJobListResponse, <-chan error) { + responseChan := make(chan *QueryAsrJobListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryAsrJobList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryAsrJobListWithCallback invokes the mts.QueryAsrJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryasrjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryAsrJobListWithCallback(request *QueryAsrJobListRequest, callback func(response *QueryAsrJobListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryAsrJobListResponse + var err error + defer close(result) + response, err = client.QueryAsrJobList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryAsrJobListRequest is the request struct for api QueryAsrJobList +type QueryAsrJobListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobIds string `position:"Query" name:"JobIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryAsrJobListResponse is the response struct for api QueryAsrJobList +type QueryAsrJobListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistIds NonExistIdsInQueryAsrJobList `json:"NonExistIds" xml:"NonExistIds"` + JobList JobListInQueryAsrJobList `json:"JobList" xml:"JobList"` +} + +// CreateQueryAsrJobListRequest creates a request to invoke QueryAsrJobList API +func CreateQueryAsrJobListRequest() (request *QueryAsrJobListRequest) { + request = &QueryAsrJobListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryAsrJobList", "mts", "openAPI") + return +} + +// CreateQueryAsrJobListResponse creates a response to parse from QueryAsrJobList response +func CreateQueryAsrJobListResponse() (response *QueryAsrJobListResponse) { + response = &QueryAsrJobListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_asr_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_asr_pipeline_list.go new file mode 100644 index 0000000..b9e4cf4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_asr_pipeline_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryAsrPipelineList invokes the mts.QueryAsrPipelineList API synchronously +// api document: https://help.aliyun.com/api/mts/queryasrpipelinelist.html +func (client *Client) QueryAsrPipelineList(request *QueryAsrPipelineListRequest) (response *QueryAsrPipelineListResponse, err error) { + response = CreateQueryAsrPipelineListResponse() + err = client.DoAction(request, response) + return +} + +// QueryAsrPipelineListWithChan invokes the mts.QueryAsrPipelineList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryasrpipelinelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryAsrPipelineListWithChan(request *QueryAsrPipelineListRequest) (<-chan *QueryAsrPipelineListResponse, <-chan error) { + responseChan := make(chan *QueryAsrPipelineListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryAsrPipelineList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryAsrPipelineListWithCallback invokes the mts.QueryAsrPipelineList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryasrpipelinelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryAsrPipelineListWithCallback(request *QueryAsrPipelineListRequest, callback func(response *QueryAsrPipelineListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryAsrPipelineListResponse + var err error + defer close(result) + response, err = client.QueryAsrPipelineList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryAsrPipelineListRequest is the request struct for api QueryAsrPipelineList +type QueryAsrPipelineListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PipelineIds string `position:"Query" name:"PipelineIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryAsrPipelineListResponse is the response struct for api QueryAsrPipelineList +type QueryAsrPipelineListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistIds NonExistIdsInQueryAsrPipelineList `json:"NonExistIds" xml:"NonExistIds"` + PipelineList PipelineListInQueryAsrPipelineList `json:"PipelineList" xml:"PipelineList"` +} + +// CreateQueryAsrPipelineListRequest creates a request to invoke QueryAsrPipelineList API +func CreateQueryAsrPipelineListRequest() (request *QueryAsrPipelineListRequest) { + request = &QueryAsrPipelineListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryAsrPipelineList", "mts", "openAPI") + return +} + +// CreateQueryAsrPipelineListResponse creates a response to parse from QueryAsrPipelineList response +func CreateQueryAsrPipelineListResponse() (response *QueryAsrPipelineListResponse) { + response = &QueryAsrPipelineListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_auth_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_auth_config.go new file mode 100644 index 0000000..a7963f0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_auth_config.go @@ -0,0 +1,108 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryAuthConfig invokes the mts.QueryAuthConfig API synchronously +// api document: https://help.aliyun.com/api/mts/queryauthconfig.html +func (client *Client) QueryAuthConfig(request *QueryAuthConfigRequest) (response *QueryAuthConfigResponse, err error) { + response = CreateQueryAuthConfigResponse() + err = client.DoAction(request, response) + return +} + +// QueryAuthConfigWithChan invokes the mts.QueryAuthConfig API asynchronously +// api document: https://help.aliyun.com/api/mts/queryauthconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryAuthConfigWithChan(request *QueryAuthConfigRequest) (<-chan *QueryAuthConfigResponse, <-chan error) { + responseChan := make(chan *QueryAuthConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryAuthConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryAuthConfigWithCallback invokes the mts.QueryAuthConfig API asynchronously +// api document: https://help.aliyun.com/api/mts/queryauthconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryAuthConfigWithCallback(request *QueryAuthConfigRequest, callback func(response *QueryAuthConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryAuthConfigResponse + var err error + defer close(result) + response, err = client.QueryAuthConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryAuthConfigRequest is the request struct for api QueryAuthConfig +type QueryAuthConfigRequest struct { + *requests.RpcRequest + OwnerId string `position:"Query" name:"OwnerId"` + ResourceOwnerId string `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryAuthConfigResponse is the response struct for api QueryAuthConfig +type QueryAuthConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Key1 string `json:"Key1" xml:"Key1"` + Key2 string `json:"Key2" xml:"Key2"` +} + +// CreateQueryAuthConfigRequest creates a request to invoke QueryAuthConfig API +func CreateQueryAuthConfigRequest() (request *QueryAuthConfigRequest) { + request = &QueryAuthConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryAuthConfig", "mts", "openAPI") + return +} + +// CreateQueryAuthConfigResponse creates a response to parse from QueryAuthConfig response +func CreateQueryAuthConfigResponse() (response *QueryAuthConfigResponse) { + response = &QueryAuthConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_censor_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_censor_job_list.go new file mode 100644 index 0000000..7f353fe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_censor_job_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryCensorJobList invokes the mts.QueryCensorJobList API synchronously +// api document: https://help.aliyun.com/api/mts/querycensorjoblist.html +func (client *Client) QueryCensorJobList(request *QueryCensorJobListRequest) (response *QueryCensorJobListResponse, err error) { + response = CreateQueryCensorJobListResponse() + err = client.DoAction(request, response) + return +} + +// QueryCensorJobListWithChan invokes the mts.QueryCensorJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/querycensorjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCensorJobListWithChan(request *QueryCensorJobListRequest) (<-chan *QueryCensorJobListResponse, <-chan error) { + responseChan := make(chan *QueryCensorJobListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryCensorJobList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryCensorJobListWithCallback invokes the mts.QueryCensorJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/querycensorjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCensorJobListWithCallback(request *QueryCensorJobListRequest, callback func(response *QueryCensorJobListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryCensorJobListResponse + var err error + defer close(result) + response, err = client.QueryCensorJobList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryCensorJobListRequest is the request struct for api QueryCensorJobList +type QueryCensorJobListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobIds string `position:"Query" name:"JobIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryCensorJobListResponse is the response struct for api QueryCensorJobList +type QueryCensorJobListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistIds NonExistIdsInQueryCensorJobList `json:"NonExistIds" xml:"NonExistIds"` + CensorJobList CensorJobList `json:"CensorJobList" xml:"CensorJobList"` +} + +// CreateQueryCensorJobListRequest creates a request to invoke QueryCensorJobList API +func CreateQueryCensorJobListRequest() (request *QueryCensorJobListRequest) { + request = &QueryCensorJobListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryCensorJobList", "mts", "openAPI") + return +} + +// CreateQueryCensorJobListResponse creates a response to parse from QueryCensorJobList response +func CreateQueryCensorJobListResponse() (response *QueryCensorJobListResponse) { + response = &QueryCensorJobListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_censor_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_censor_pipeline_list.go new file mode 100644 index 0000000..06a6f13 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_censor_pipeline_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryCensorPipelineList invokes the mts.QueryCensorPipelineList API synchronously +// api document: https://help.aliyun.com/api/mts/querycensorpipelinelist.html +func (client *Client) QueryCensorPipelineList(request *QueryCensorPipelineListRequest) (response *QueryCensorPipelineListResponse, err error) { + response = CreateQueryCensorPipelineListResponse() + err = client.DoAction(request, response) + return +} + +// QueryCensorPipelineListWithChan invokes the mts.QueryCensorPipelineList API asynchronously +// api document: https://help.aliyun.com/api/mts/querycensorpipelinelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCensorPipelineListWithChan(request *QueryCensorPipelineListRequest) (<-chan *QueryCensorPipelineListResponse, <-chan error) { + responseChan := make(chan *QueryCensorPipelineListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryCensorPipelineList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryCensorPipelineListWithCallback invokes the mts.QueryCensorPipelineList API asynchronously +// api document: https://help.aliyun.com/api/mts/querycensorpipelinelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCensorPipelineListWithCallback(request *QueryCensorPipelineListRequest, callback func(response *QueryCensorPipelineListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryCensorPipelineListResponse + var err error + defer close(result) + response, err = client.QueryCensorPipelineList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryCensorPipelineListRequest is the request struct for api QueryCensorPipelineList +type QueryCensorPipelineListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PipelineIds string `position:"Query" name:"PipelineIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryCensorPipelineListResponse is the response struct for api QueryCensorPipelineList +type QueryCensorPipelineListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistIds NonExistIdsInQueryCensorPipelineList `json:"NonExistIds" xml:"NonExistIds"` + PipelineList PipelineListInQueryCensorPipelineList `json:"PipelineList" xml:"PipelineList"` +} + +// CreateQueryCensorPipelineListRequest creates a request to invoke QueryCensorPipelineList API +func CreateQueryCensorPipelineListRequest() (request *QueryCensorPipelineListRequest) { + request = &QueryCensorPipelineListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryCensorPipelineList", "mts", "openAPI") + return +} + +// CreateQueryCensorPipelineListResponse creates a response to parse from QueryCensorPipelineList response +func CreateQueryCensorPipelineListResponse() (response *QueryCensorPipelineListResponse) { + response = &QueryCensorPipelineListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_cover_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_cover_job_list.go new file mode 100644 index 0000000..9ba37b4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_cover_job_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryCoverJobList invokes the mts.QueryCoverJobList API synchronously +// api document: https://help.aliyun.com/api/mts/querycoverjoblist.html +func (client *Client) QueryCoverJobList(request *QueryCoverJobListRequest) (response *QueryCoverJobListResponse, err error) { + response = CreateQueryCoverJobListResponse() + err = client.DoAction(request, response) + return +} + +// QueryCoverJobListWithChan invokes the mts.QueryCoverJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/querycoverjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCoverJobListWithChan(request *QueryCoverJobListRequest) (<-chan *QueryCoverJobListResponse, <-chan error) { + responseChan := make(chan *QueryCoverJobListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryCoverJobList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryCoverJobListWithCallback invokes the mts.QueryCoverJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/querycoverjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCoverJobListWithCallback(request *QueryCoverJobListRequest, callback func(response *QueryCoverJobListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryCoverJobListResponse + var err error + defer close(result) + response, err = client.QueryCoverJobList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryCoverJobListRequest is the request struct for api QueryCoverJobList +type QueryCoverJobListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CoverJobIds string `position:"Query" name:"CoverJobIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryCoverJobListResponse is the response struct for api QueryCoverJobList +type QueryCoverJobListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistIds NonExistIdsInQueryCoverJobList `json:"NonExistIds" xml:"NonExistIds"` + CoverJobList CoverJobList `json:"CoverJobList" xml:"CoverJobList"` +} + +// CreateQueryCoverJobListRequest creates a request to invoke QueryCoverJobList API +func CreateQueryCoverJobListRequest() (request *QueryCoverJobListRequest) { + request = &QueryCoverJobListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryCoverJobList", "mts", "openAPI") + return +} + +// CreateQueryCoverJobListResponse creates a response to parse from QueryCoverJobList response +func CreateQueryCoverJobListResponse() (response *QueryCoverJobListResponse) { + response = &QueryCoverJobListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_cover_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_cover_pipeline_list.go new file mode 100644 index 0000000..9f21890 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_cover_pipeline_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryCoverPipelineList invokes the mts.QueryCoverPipelineList API synchronously +// api document: https://help.aliyun.com/api/mts/querycoverpipelinelist.html +func (client *Client) QueryCoverPipelineList(request *QueryCoverPipelineListRequest) (response *QueryCoverPipelineListResponse, err error) { + response = CreateQueryCoverPipelineListResponse() + err = client.DoAction(request, response) + return +} + +// QueryCoverPipelineListWithChan invokes the mts.QueryCoverPipelineList API asynchronously +// api document: https://help.aliyun.com/api/mts/querycoverpipelinelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCoverPipelineListWithChan(request *QueryCoverPipelineListRequest) (<-chan *QueryCoverPipelineListResponse, <-chan error) { + responseChan := make(chan *QueryCoverPipelineListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryCoverPipelineList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryCoverPipelineListWithCallback invokes the mts.QueryCoverPipelineList API asynchronously +// api document: https://help.aliyun.com/api/mts/querycoverpipelinelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCoverPipelineListWithCallback(request *QueryCoverPipelineListRequest, callback func(response *QueryCoverPipelineListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryCoverPipelineListResponse + var err error + defer close(result) + response, err = client.QueryCoverPipelineList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryCoverPipelineListRequest is the request struct for api QueryCoverPipelineList +type QueryCoverPipelineListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PipelineIds string `position:"Query" name:"PipelineIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryCoverPipelineListResponse is the response struct for api QueryCoverPipelineList +type QueryCoverPipelineListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistIds NonExistIdsInQueryCoverPipelineList `json:"NonExistIds" xml:"NonExistIds"` + PipelineList PipelineListInQueryCoverPipelineList `json:"PipelineList" xml:"PipelineList"` +} + +// CreateQueryCoverPipelineListRequest creates a request to invoke QueryCoverPipelineList API +func CreateQueryCoverPipelineListRequest() (request *QueryCoverPipelineListRequest) { + request = &QueryCoverPipelineListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryCoverPipelineList", "mts", "openAPI") + return +} + +// CreateQueryCoverPipelineListResponse creates a response to parse from QueryCoverPipelineList response +func CreateQueryCoverPipelineListResponse() (response *QueryCoverPipelineListResponse) { + response = &QueryCoverPipelineListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_editing_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_editing_job_list.go new file mode 100644 index 0000000..f62ab82 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_editing_job_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryEditingJobList invokes the mts.QueryEditingJobList API synchronously +// api document: https://help.aliyun.com/api/mts/queryeditingjoblist.html +func (client *Client) QueryEditingJobList(request *QueryEditingJobListRequest) (response *QueryEditingJobListResponse, err error) { + response = CreateQueryEditingJobListResponse() + err = client.DoAction(request, response) + return +} + +// QueryEditingJobListWithChan invokes the mts.QueryEditingJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryeditingjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryEditingJobListWithChan(request *QueryEditingJobListRequest) (<-chan *QueryEditingJobListResponse, <-chan error) { + responseChan := make(chan *QueryEditingJobListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryEditingJobList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryEditingJobListWithCallback invokes the mts.QueryEditingJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryeditingjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryEditingJobListWithCallback(request *QueryEditingJobListRequest, callback func(response *QueryEditingJobListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryEditingJobListResponse + var err error + defer close(result) + response, err = client.QueryEditingJobList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryEditingJobListRequest is the request struct for api QueryEditingJobList +type QueryEditingJobListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobIds string `position:"Query" name:"JobIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryEditingJobListResponse is the response struct for api QueryEditingJobList +type QueryEditingJobListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistJobIds NonExistJobIdsInQueryEditingJobList `json:"NonExistJobIds" xml:"NonExistJobIds"` + JobList JobListInQueryEditingJobList `json:"JobList" xml:"JobList"` +} + +// CreateQueryEditingJobListRequest creates a request to invoke QueryEditingJobList API +func CreateQueryEditingJobListRequest() (request *QueryEditingJobListRequest) { + request = &QueryEditingJobListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryEditingJobList", "mts", "openAPI") + return +} + +// CreateQueryEditingJobListResponse creates a response to parse from QueryEditingJobList response +func CreateQueryEditingJobListResponse() (response *QueryEditingJobListResponse) { + response = &QueryEditingJobListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_facerecog_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_facerecog_job_list.go new file mode 100644 index 0000000..81aa2be --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_facerecog_job_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryFacerecogJobList invokes the mts.QueryFacerecogJobList API synchronously +// api document: https://help.aliyun.com/api/mts/queryfacerecogjoblist.html +func (client *Client) QueryFacerecogJobList(request *QueryFacerecogJobListRequest) (response *QueryFacerecogJobListResponse, err error) { + response = CreateQueryFacerecogJobListResponse() + err = client.DoAction(request, response) + return +} + +// QueryFacerecogJobListWithChan invokes the mts.QueryFacerecogJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryfacerecogjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryFacerecogJobListWithChan(request *QueryFacerecogJobListRequest) (<-chan *QueryFacerecogJobListResponse, <-chan error) { + responseChan := make(chan *QueryFacerecogJobListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryFacerecogJobList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryFacerecogJobListWithCallback invokes the mts.QueryFacerecogJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryfacerecogjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryFacerecogJobListWithCallback(request *QueryFacerecogJobListRequest, callback func(response *QueryFacerecogJobListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryFacerecogJobListResponse + var err error + defer close(result) + response, err = client.QueryFacerecogJobList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryFacerecogJobListRequest is the request struct for api QueryFacerecogJobList +type QueryFacerecogJobListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + FacerecogJobIds string `position:"Query" name:"FacerecogJobIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryFacerecogJobListResponse is the response struct for api QueryFacerecogJobList +type QueryFacerecogJobListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistIds NonExistIdsInQueryFacerecogJobList `json:"NonExistIds" xml:"NonExistIds"` + FacerecogJobList FacerecogJobList `json:"FacerecogJobList" xml:"FacerecogJobList"` +} + +// CreateQueryFacerecogJobListRequest creates a request to invoke QueryFacerecogJobList API +func CreateQueryFacerecogJobListRequest() (request *QueryFacerecogJobListRequest) { + request = &QueryFacerecogJobListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryFacerecogJobList", "mts", "openAPI") + return +} + +// CreateQueryFacerecogJobListResponse creates a response to parse from QueryFacerecogJobList response +func CreateQueryFacerecogJobListResponse() (response *QueryFacerecogJobListResponse) { + response = &QueryFacerecogJobListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_fp_shot_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_fp_shot_job_list.go new file mode 100644 index 0000000..aab10cd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_fp_shot_job_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryFpShotJobList invokes the mts.QueryFpShotJobList API synchronously +// api document: https://help.aliyun.com/api/mts/queryfpshotjoblist.html +func (client *Client) QueryFpShotJobList(request *QueryFpShotJobListRequest) (response *QueryFpShotJobListResponse, err error) { + response = CreateQueryFpShotJobListResponse() + err = client.DoAction(request, response) + return +} + +// QueryFpShotJobListWithChan invokes the mts.QueryFpShotJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryfpshotjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryFpShotJobListWithChan(request *QueryFpShotJobListRequest) (<-chan *QueryFpShotJobListResponse, <-chan error) { + responseChan := make(chan *QueryFpShotJobListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryFpShotJobList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryFpShotJobListWithCallback invokes the mts.QueryFpShotJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryfpshotjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryFpShotJobListWithCallback(request *QueryFpShotJobListRequest, callback func(response *QueryFpShotJobListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryFpShotJobListResponse + var err error + defer close(result) + response, err = client.QueryFpShotJobList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryFpShotJobListRequest is the request struct for api QueryFpShotJobList +type QueryFpShotJobListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobIds string `position:"Query" name:"JobIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryFpShotJobListResponse is the response struct for api QueryFpShotJobList +type QueryFpShotJobListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistIds NonExistIdsInQueryFpShotJobList `json:"NonExistIds" xml:"NonExistIds"` + FpShotJobList FpShotJobList `json:"FpShotJobList" xml:"FpShotJobList"` +} + +// CreateQueryFpShotJobListRequest creates a request to invoke QueryFpShotJobList API +func CreateQueryFpShotJobListRequest() (request *QueryFpShotJobListRequest) { + request = &QueryFpShotJobListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryFpShotJobList", "mts", "openAPI") + return +} + +// CreateQueryFpShotJobListResponse creates a response to parse from QueryFpShotJobList response +func CreateQueryFpShotJobListResponse() (response *QueryFpShotJobListResponse) { + response = &QueryFpShotJobListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_job_list.go new file mode 100644 index 0000000..aa299e2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_job_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryJobList invokes the mts.QueryJobList API synchronously +// api document: https://help.aliyun.com/api/mts/queryjoblist.html +func (client *Client) QueryJobList(request *QueryJobListRequest) (response *QueryJobListResponse, err error) { + response = CreateQueryJobListResponse() + err = client.DoAction(request, response) + return +} + +// QueryJobListWithChan invokes the mts.QueryJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryJobListWithChan(request *QueryJobListRequest) (<-chan *QueryJobListResponse, <-chan error) { + responseChan := make(chan *QueryJobListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryJobList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryJobListWithCallback invokes the mts.QueryJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryJobListWithCallback(request *QueryJobListRequest, callback func(response *QueryJobListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryJobListResponse + var err error + defer close(result) + response, err = client.QueryJobList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryJobListRequest is the request struct for api QueryJobList +type QueryJobListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobIds string `position:"Query" name:"JobIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryJobListResponse is the response struct for api QueryJobList +type QueryJobListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistJobIds NonExistJobIdsInQueryJobList `json:"NonExistJobIds" xml:"NonExistJobIds"` + JobList JobListInQueryJobList `json:"JobList" xml:"JobList"` +} + +// CreateQueryJobListRequest creates a request to invoke QueryJobList API +func CreateQueryJobListRequest() (request *QueryJobListRequest) { + request = &QueryJobListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryJobList", "mts", "openAPI") + return +} + +// CreateQueryJobListResponse creates a response to parse from QueryJobList response +func CreateQueryJobListResponse() (response *QueryJobListResponse) { + response = &QueryJobListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_detail_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_detail_job_list.go new file mode 100644 index 0000000..bcd5c6d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_detail_job_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryMediaDetailJobList invokes the mts.QueryMediaDetailJobList API synchronously +// api document: https://help.aliyun.com/api/mts/querymediadetailjoblist.html +func (client *Client) QueryMediaDetailJobList(request *QueryMediaDetailJobListRequest) (response *QueryMediaDetailJobListResponse, err error) { + response = CreateQueryMediaDetailJobListResponse() + err = client.DoAction(request, response) + return +} + +// QueryMediaDetailJobListWithChan invokes the mts.QueryMediaDetailJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/querymediadetailjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMediaDetailJobListWithChan(request *QueryMediaDetailJobListRequest) (<-chan *QueryMediaDetailJobListResponse, <-chan error) { + responseChan := make(chan *QueryMediaDetailJobListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryMediaDetailJobList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryMediaDetailJobListWithCallback invokes the mts.QueryMediaDetailJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/querymediadetailjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMediaDetailJobListWithCallback(request *QueryMediaDetailJobListRequest, callback func(response *QueryMediaDetailJobListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryMediaDetailJobListResponse + var err error + defer close(result) + response, err = client.QueryMediaDetailJobList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryMediaDetailJobListRequest is the request struct for api QueryMediaDetailJobList +type QueryMediaDetailJobListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobIds string `position:"Query" name:"JobIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryMediaDetailJobListResponse is the response struct for api QueryMediaDetailJobList +type QueryMediaDetailJobListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistIds NonExistIdsInQueryMediaDetailJobList `json:"NonExistIds" xml:"NonExistIds"` + JobList JobListInQueryMediaDetailJobList `json:"JobList" xml:"JobList"` +} + +// CreateQueryMediaDetailJobListRequest creates a request to invoke QueryMediaDetailJobList API +func CreateQueryMediaDetailJobListRequest() (request *QueryMediaDetailJobListRequest) { + request = &QueryMediaDetailJobListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryMediaDetailJobList", "mts", "openAPI") + return +} + +// CreateQueryMediaDetailJobListResponse creates a response to parse from QueryMediaDetailJobList response +func CreateQueryMediaDetailJobListResponse() (response *QueryMediaDetailJobListResponse) { + response = &QueryMediaDetailJobListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_info_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_info_job_list.go new file mode 100644 index 0000000..38db0a6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_info_job_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryMediaInfoJobList invokes the mts.QueryMediaInfoJobList API synchronously +// api document: https://help.aliyun.com/api/mts/querymediainfojoblist.html +func (client *Client) QueryMediaInfoJobList(request *QueryMediaInfoJobListRequest) (response *QueryMediaInfoJobListResponse, err error) { + response = CreateQueryMediaInfoJobListResponse() + err = client.DoAction(request, response) + return +} + +// QueryMediaInfoJobListWithChan invokes the mts.QueryMediaInfoJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/querymediainfojoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMediaInfoJobListWithChan(request *QueryMediaInfoJobListRequest) (<-chan *QueryMediaInfoJobListResponse, <-chan error) { + responseChan := make(chan *QueryMediaInfoJobListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryMediaInfoJobList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryMediaInfoJobListWithCallback invokes the mts.QueryMediaInfoJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/querymediainfojoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMediaInfoJobListWithCallback(request *QueryMediaInfoJobListRequest, callback func(response *QueryMediaInfoJobListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryMediaInfoJobListResponse + var err error + defer close(result) + response, err = client.QueryMediaInfoJobList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryMediaInfoJobListRequest is the request struct for api QueryMediaInfoJobList +type QueryMediaInfoJobListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MediaInfoJobIds string `position:"Query" name:"MediaInfoJobIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryMediaInfoJobListResponse is the response struct for api QueryMediaInfoJobList +type QueryMediaInfoJobListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistMediaInfoJobIds NonExistMediaInfoJobIds `json:"NonExistMediaInfoJobIds" xml:"NonExistMediaInfoJobIds"` + MediaInfoJobList MediaInfoJobList `json:"MediaInfoJobList" xml:"MediaInfoJobList"` +} + +// CreateQueryMediaInfoJobListRequest creates a request to invoke QueryMediaInfoJobList API +func CreateQueryMediaInfoJobListRequest() (request *QueryMediaInfoJobListRequest) { + request = &QueryMediaInfoJobListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryMediaInfoJobList", "mts", "openAPI") + return +} + +// CreateQueryMediaInfoJobListResponse creates a response to parse from QueryMediaInfoJobList response +func CreateQueryMediaInfoJobListResponse() (response *QueryMediaInfoJobListResponse) { + response = &QueryMediaInfoJobListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_list.go new file mode 100644 index 0000000..ca3cb0f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_list.go @@ -0,0 +1,113 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryMediaList invokes the mts.QueryMediaList API synchronously +// api document: https://help.aliyun.com/api/mts/querymedialist.html +func (client *Client) QueryMediaList(request *QueryMediaListRequest) (response *QueryMediaListResponse, err error) { + response = CreateQueryMediaListResponse() + err = client.DoAction(request, response) + return +} + +// QueryMediaListWithChan invokes the mts.QueryMediaList API asynchronously +// api document: https://help.aliyun.com/api/mts/querymedialist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMediaListWithChan(request *QueryMediaListRequest) (<-chan *QueryMediaListResponse, <-chan error) { + responseChan := make(chan *QueryMediaListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryMediaList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryMediaListWithCallback invokes the mts.QueryMediaList API asynchronously +// api document: https://help.aliyun.com/api/mts/querymedialist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMediaListWithCallback(request *QueryMediaListRequest, callback func(response *QueryMediaListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryMediaListResponse + var err error + defer close(result) + response, err = client.QueryMediaList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryMediaListRequest is the request struct for api QueryMediaList +type QueryMediaListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MediaIds string `position:"Query" name:"MediaIds"` + IncludePlayList requests.Boolean `position:"Query" name:"IncludePlayList"` + IncludeSnapshotList requests.Boolean `position:"Query" name:"IncludeSnapshotList"` + IncludeMediaInfo requests.Boolean `position:"Query" name:"IncludeMediaInfo"` + IncludeSummaryList requests.Boolean `position:"Query" name:"IncludeSummaryList"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryMediaListResponse is the response struct for api QueryMediaList +type QueryMediaListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistMediaIds NonExistMediaIds `json:"NonExistMediaIds" xml:"NonExistMediaIds"` + MediaList MediaListInQueryMediaList `json:"MediaList" xml:"MediaList"` +} + +// CreateQueryMediaListRequest creates a request to invoke QueryMediaList API +func CreateQueryMediaListRequest() (request *QueryMediaListRequest) { + request = &QueryMediaListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryMediaList", "mts", "openAPI") + return +} + +// CreateQueryMediaListResponse creates a response to parse from QueryMediaList response +func CreateQueryMediaListResponse() (response *QueryMediaListResponse) { + response = &QueryMediaListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_list_by_url.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_list_by_url.go new file mode 100644 index 0000000..368e68e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_list_by_url.go @@ -0,0 +1,113 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryMediaListByURL invokes the mts.QueryMediaListByURL API synchronously +// api document: https://help.aliyun.com/api/mts/querymedialistbyurl.html +func (client *Client) QueryMediaListByURL(request *QueryMediaListByURLRequest) (response *QueryMediaListByURLResponse, err error) { + response = CreateQueryMediaListByURLResponse() + err = client.DoAction(request, response) + return +} + +// QueryMediaListByURLWithChan invokes the mts.QueryMediaListByURL API asynchronously +// api document: https://help.aliyun.com/api/mts/querymedialistbyurl.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMediaListByURLWithChan(request *QueryMediaListByURLRequest) (<-chan *QueryMediaListByURLResponse, <-chan error) { + responseChan := make(chan *QueryMediaListByURLResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryMediaListByURL(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryMediaListByURLWithCallback invokes the mts.QueryMediaListByURL API asynchronously +// api document: https://help.aliyun.com/api/mts/querymedialistbyurl.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMediaListByURLWithCallback(request *QueryMediaListByURLRequest, callback func(response *QueryMediaListByURLResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryMediaListByURLResponse + var err error + defer close(result) + response, err = client.QueryMediaListByURL(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryMediaListByURLRequest is the request struct for api QueryMediaListByURL +type QueryMediaListByURLRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + FileURLs string `position:"Query" name:"FileURLs"` + IncludePlayList requests.Boolean `position:"Query" name:"IncludePlayList"` + IncludeSnapshotList requests.Boolean `position:"Query" name:"IncludeSnapshotList"` + IncludeMediaInfo requests.Boolean `position:"Query" name:"IncludeMediaInfo"` + IncludeSummaryList requests.Boolean `position:"Query" name:"IncludeSummaryList"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryMediaListByURLResponse is the response struct for api QueryMediaListByURL +type QueryMediaListByURLResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistFileURLs NonExistFileURLs `json:"NonExistFileURLs" xml:"NonExistFileURLs"` + MediaList MediaListInQueryMediaListByURL `json:"MediaList" xml:"MediaList"` +} + +// CreateQueryMediaListByURLRequest creates a request to invoke QueryMediaListByURL API +func CreateQueryMediaListByURLRequest() (request *QueryMediaListByURLRequest) { + request = &QueryMediaListByURLRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryMediaListByURL", "mts", "openAPI") + return +} + +// CreateQueryMediaListByURLResponse creates a response to parse from QueryMediaListByURL response +func CreateQueryMediaListByURLResponse() (response *QueryMediaListByURLResponse) { + response = &QueryMediaListByURLResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_workflow_execution_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_workflow_execution_list.go new file mode 100644 index 0000000..abd4b47 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_workflow_execution_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryMediaWorkflowExecutionList invokes the mts.QueryMediaWorkflowExecutionList API synchronously +// api document: https://help.aliyun.com/api/mts/querymediaworkflowexecutionlist.html +func (client *Client) QueryMediaWorkflowExecutionList(request *QueryMediaWorkflowExecutionListRequest) (response *QueryMediaWorkflowExecutionListResponse, err error) { + response = CreateQueryMediaWorkflowExecutionListResponse() + err = client.DoAction(request, response) + return +} + +// QueryMediaWorkflowExecutionListWithChan invokes the mts.QueryMediaWorkflowExecutionList API asynchronously +// api document: https://help.aliyun.com/api/mts/querymediaworkflowexecutionlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMediaWorkflowExecutionListWithChan(request *QueryMediaWorkflowExecutionListRequest) (<-chan *QueryMediaWorkflowExecutionListResponse, <-chan error) { + responseChan := make(chan *QueryMediaWorkflowExecutionListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryMediaWorkflowExecutionList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryMediaWorkflowExecutionListWithCallback invokes the mts.QueryMediaWorkflowExecutionList API asynchronously +// api document: https://help.aliyun.com/api/mts/querymediaworkflowexecutionlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMediaWorkflowExecutionListWithCallback(request *QueryMediaWorkflowExecutionListRequest, callback func(response *QueryMediaWorkflowExecutionListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryMediaWorkflowExecutionListResponse + var err error + defer close(result) + response, err = client.QueryMediaWorkflowExecutionList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryMediaWorkflowExecutionListRequest is the request struct for api QueryMediaWorkflowExecutionList +type QueryMediaWorkflowExecutionListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + RunIds string `position:"Query" name:"RunIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryMediaWorkflowExecutionListResponse is the response struct for api QueryMediaWorkflowExecutionList +type QueryMediaWorkflowExecutionListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistRunIds NonExistRunIds `json:"NonExistRunIds" xml:"NonExistRunIds"` + MediaWorkflowExecutionList MediaWorkflowExecutionListInQueryMediaWorkflowExecutionList `json:"MediaWorkflowExecutionList" xml:"MediaWorkflowExecutionList"` +} + +// CreateQueryMediaWorkflowExecutionListRequest creates a request to invoke QueryMediaWorkflowExecutionList API +func CreateQueryMediaWorkflowExecutionListRequest() (request *QueryMediaWorkflowExecutionListRequest) { + request = &QueryMediaWorkflowExecutionListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryMediaWorkflowExecutionList", "mts", "openAPI") + return +} + +// CreateQueryMediaWorkflowExecutionListResponse creates a response to parse from QueryMediaWorkflowExecutionList response +func CreateQueryMediaWorkflowExecutionListResponse() (response *QueryMediaWorkflowExecutionListResponse) { + response = &QueryMediaWorkflowExecutionListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_workflow_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_workflow_list.go new file mode 100644 index 0000000..0fbcc1e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_media_workflow_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryMediaWorkflowList invokes the mts.QueryMediaWorkflowList API synchronously +// api document: https://help.aliyun.com/api/mts/querymediaworkflowlist.html +func (client *Client) QueryMediaWorkflowList(request *QueryMediaWorkflowListRequest) (response *QueryMediaWorkflowListResponse, err error) { + response = CreateQueryMediaWorkflowListResponse() + err = client.DoAction(request, response) + return +} + +// QueryMediaWorkflowListWithChan invokes the mts.QueryMediaWorkflowList API asynchronously +// api document: https://help.aliyun.com/api/mts/querymediaworkflowlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMediaWorkflowListWithChan(request *QueryMediaWorkflowListRequest) (<-chan *QueryMediaWorkflowListResponse, <-chan error) { + responseChan := make(chan *QueryMediaWorkflowListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryMediaWorkflowList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryMediaWorkflowListWithCallback invokes the mts.QueryMediaWorkflowList API asynchronously +// api document: https://help.aliyun.com/api/mts/querymediaworkflowlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryMediaWorkflowListWithCallback(request *QueryMediaWorkflowListRequest, callback func(response *QueryMediaWorkflowListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryMediaWorkflowListResponse + var err error + defer close(result) + response, err = client.QueryMediaWorkflowList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryMediaWorkflowListRequest is the request struct for api QueryMediaWorkflowList +type QueryMediaWorkflowListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MediaWorkflowIds string `position:"Query" name:"MediaWorkflowIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryMediaWorkflowListResponse is the response struct for api QueryMediaWorkflowList +type QueryMediaWorkflowListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistMediaWorkflowIds NonExistMediaWorkflowIds `json:"NonExistMediaWorkflowIds" xml:"NonExistMediaWorkflowIds"` + MediaWorkflowList MediaWorkflowListInQueryMediaWorkflowList `json:"MediaWorkflowList" xml:"MediaWorkflowList"` +} + +// CreateQueryMediaWorkflowListRequest creates a request to invoke QueryMediaWorkflowList API +func CreateQueryMediaWorkflowListRequest() (request *QueryMediaWorkflowListRequest) { + request = &QueryMediaWorkflowListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryMediaWorkflowList", "mts", "openAPI") + return +} + +// CreateQueryMediaWorkflowListResponse creates a response to parse from QueryMediaWorkflowList response +func CreateQueryMediaWorkflowListResponse() (response *QueryMediaWorkflowListResponse) { + response = &QueryMediaWorkflowListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_pipeline_list.go new file mode 100644 index 0000000..5690ef6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_pipeline_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryPipelineList invokes the mts.QueryPipelineList API synchronously +// api document: https://help.aliyun.com/api/mts/querypipelinelist.html +func (client *Client) QueryPipelineList(request *QueryPipelineListRequest) (response *QueryPipelineListResponse, err error) { + response = CreateQueryPipelineListResponse() + err = client.DoAction(request, response) + return +} + +// QueryPipelineListWithChan invokes the mts.QueryPipelineList API asynchronously +// api document: https://help.aliyun.com/api/mts/querypipelinelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryPipelineListWithChan(request *QueryPipelineListRequest) (<-chan *QueryPipelineListResponse, <-chan error) { + responseChan := make(chan *QueryPipelineListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryPipelineList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryPipelineListWithCallback invokes the mts.QueryPipelineList API asynchronously +// api document: https://help.aliyun.com/api/mts/querypipelinelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryPipelineListWithCallback(request *QueryPipelineListRequest, callback func(response *QueryPipelineListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryPipelineListResponse + var err error + defer close(result) + response, err = client.QueryPipelineList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryPipelineListRequest is the request struct for api QueryPipelineList +type QueryPipelineListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PipelineIds string `position:"Query" name:"PipelineIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryPipelineListResponse is the response struct for api QueryPipelineList +type QueryPipelineListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistPids NonExistPids `json:"NonExistPids" xml:"NonExistPids"` + PipelineList PipelineListInQueryPipelineList `json:"PipelineList" xml:"PipelineList"` +} + +// CreateQueryPipelineListRequest creates a request to invoke QueryPipelineList API +func CreateQueryPipelineListRequest() (request *QueryPipelineListRequest) { + request = &QueryPipelineListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryPipelineList", "mts", "openAPI") + return +} + +// CreateQueryPipelineListResponse creates a response to parse from QueryPipelineList response +func CreateQueryPipelineListResponse() (response *QueryPipelineListResponse) { + response = &QueryPipelineListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_porn_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_porn_job_list.go new file mode 100644 index 0000000..c65901d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_porn_job_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryPornJobList invokes the mts.QueryPornJobList API synchronously +// api document: https://help.aliyun.com/api/mts/querypornjoblist.html +func (client *Client) QueryPornJobList(request *QueryPornJobListRequest) (response *QueryPornJobListResponse, err error) { + response = CreateQueryPornJobListResponse() + err = client.DoAction(request, response) + return +} + +// QueryPornJobListWithChan invokes the mts.QueryPornJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/querypornjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryPornJobListWithChan(request *QueryPornJobListRequest) (<-chan *QueryPornJobListResponse, <-chan error) { + responseChan := make(chan *QueryPornJobListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryPornJobList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryPornJobListWithCallback invokes the mts.QueryPornJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/querypornjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryPornJobListWithCallback(request *QueryPornJobListRequest, callback func(response *QueryPornJobListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryPornJobListResponse + var err error + defer close(result) + response, err = client.QueryPornJobList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryPornJobListRequest is the request struct for api QueryPornJobList +type QueryPornJobListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobIds string `position:"Query" name:"JobIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryPornJobListResponse is the response struct for api QueryPornJobList +type QueryPornJobListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistIds NonExistIdsInQueryPornJobList `json:"NonExistIds" xml:"NonExistIds"` + PornJobList PornJobList `json:"PornJobList" xml:"PornJobList"` +} + +// CreateQueryPornJobListRequest creates a request to invoke QueryPornJobList API +func CreateQueryPornJobListRequest() (request *QueryPornJobListRequest) { + request = &QueryPornJobListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryPornJobList", "mts", "openAPI") + return +} + +// CreateQueryPornJobListResponse creates a response to parse from QueryPornJobList response +func CreateQueryPornJobListResponse() (response *QueryPornJobListResponse) { + response = &QueryPornJobListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_porn_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_porn_pipeline_list.go new file mode 100644 index 0000000..22c64da --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_porn_pipeline_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryPornPipelineList invokes the mts.QueryPornPipelineList API synchronously +// api document: https://help.aliyun.com/api/mts/querypornpipelinelist.html +func (client *Client) QueryPornPipelineList(request *QueryPornPipelineListRequest) (response *QueryPornPipelineListResponse, err error) { + response = CreateQueryPornPipelineListResponse() + err = client.DoAction(request, response) + return +} + +// QueryPornPipelineListWithChan invokes the mts.QueryPornPipelineList API asynchronously +// api document: https://help.aliyun.com/api/mts/querypornpipelinelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryPornPipelineListWithChan(request *QueryPornPipelineListRequest) (<-chan *QueryPornPipelineListResponse, <-chan error) { + responseChan := make(chan *QueryPornPipelineListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryPornPipelineList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryPornPipelineListWithCallback invokes the mts.QueryPornPipelineList API asynchronously +// api document: https://help.aliyun.com/api/mts/querypornpipelinelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryPornPipelineListWithCallback(request *QueryPornPipelineListRequest, callback func(response *QueryPornPipelineListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryPornPipelineListResponse + var err error + defer close(result) + response, err = client.QueryPornPipelineList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryPornPipelineListRequest is the request struct for api QueryPornPipelineList +type QueryPornPipelineListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PipelineIds string `position:"Query" name:"PipelineIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryPornPipelineListResponse is the response struct for api QueryPornPipelineList +type QueryPornPipelineListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistIds NonExistIdsInQueryPornPipelineList `json:"NonExistIds" xml:"NonExistIds"` + PipelineList PipelineListInQueryPornPipelineList `json:"PipelineList" xml:"PipelineList"` +} + +// CreateQueryPornPipelineListRequest creates a request to invoke QueryPornPipelineList API +func CreateQueryPornPipelineListRequest() (request *QueryPornPipelineListRequest) { + request = &QueryPornPipelineListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryPornPipelineList", "mts", "openAPI") + return +} + +// CreateQueryPornPipelineListResponse creates a response to parse from QueryPornPipelineList response +func CreateQueryPornPipelineListResponse() (response *QueryPornPipelineListResponse) { + response = &QueryPornPipelineListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_snapshot_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_snapshot_job_list.go new file mode 100644 index 0000000..970dcde --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_snapshot_job_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QuerySnapshotJobList invokes the mts.QuerySnapshotJobList API synchronously +// api document: https://help.aliyun.com/api/mts/querysnapshotjoblist.html +func (client *Client) QuerySnapshotJobList(request *QuerySnapshotJobListRequest) (response *QuerySnapshotJobListResponse, err error) { + response = CreateQuerySnapshotJobListResponse() + err = client.DoAction(request, response) + return +} + +// QuerySnapshotJobListWithChan invokes the mts.QuerySnapshotJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/querysnapshotjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QuerySnapshotJobListWithChan(request *QuerySnapshotJobListRequest) (<-chan *QuerySnapshotJobListResponse, <-chan error) { + responseChan := make(chan *QuerySnapshotJobListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QuerySnapshotJobList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QuerySnapshotJobListWithCallback invokes the mts.QuerySnapshotJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/querysnapshotjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QuerySnapshotJobListWithCallback(request *QuerySnapshotJobListRequest, callback func(response *QuerySnapshotJobListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QuerySnapshotJobListResponse + var err error + defer close(result) + response, err = client.QuerySnapshotJobList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QuerySnapshotJobListRequest is the request struct for api QuerySnapshotJobList +type QuerySnapshotJobListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SnapshotJobIds string `position:"Query" name:"SnapshotJobIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QuerySnapshotJobListResponse is the response struct for api QuerySnapshotJobList +type QuerySnapshotJobListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistSnapshotJobIds NonExistSnapshotJobIds `json:"NonExistSnapshotJobIds" xml:"NonExistSnapshotJobIds"` + SnapshotJobList SnapshotJobList `json:"SnapshotJobList" xml:"SnapshotJobList"` +} + +// CreateQuerySnapshotJobListRequest creates a request to invoke QuerySnapshotJobList API +func CreateQuerySnapshotJobListRequest() (request *QuerySnapshotJobListRequest) { + request = &QuerySnapshotJobListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QuerySnapshotJobList", "mts", "openAPI") + return +} + +// CreateQuerySnapshotJobListResponse creates a response to parse from QuerySnapshotJobList response +func CreateQuerySnapshotJobListResponse() (response *QuerySnapshotJobListResponse) { + response = &QuerySnapshotJobListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_tag_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_tag_job_list.go new file mode 100644 index 0000000..2ba301a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_tag_job_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTagJobList invokes the mts.QueryTagJobList API synchronously +// api document: https://help.aliyun.com/api/mts/querytagjoblist.html +func (client *Client) QueryTagJobList(request *QueryTagJobListRequest) (response *QueryTagJobListResponse, err error) { + response = CreateQueryTagJobListResponse() + err = client.DoAction(request, response) + return +} + +// QueryTagJobListWithChan invokes the mts.QueryTagJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/querytagjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTagJobListWithChan(request *QueryTagJobListRequest) (<-chan *QueryTagJobListResponse, <-chan error) { + responseChan := make(chan *QueryTagJobListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTagJobList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTagJobListWithCallback invokes the mts.QueryTagJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/querytagjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTagJobListWithCallback(request *QueryTagJobListRequest, callback func(response *QueryTagJobListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTagJobListResponse + var err error + defer close(result) + response, err = client.QueryTagJobList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTagJobListRequest is the request struct for api QueryTagJobList +type QueryTagJobListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TagJobIds string `position:"Query" name:"TagJobIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryTagJobListResponse is the response struct for api QueryTagJobList +type QueryTagJobListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistIds NonExistIdsInQueryTagJobList `json:"NonExistIds" xml:"NonExistIds"` + TagJobList TagJobList `json:"TagJobList" xml:"TagJobList"` +} + +// CreateQueryTagJobListRequest creates a request to invoke QueryTagJobList API +func CreateQueryTagJobListRequest() (request *QueryTagJobListRequest) { + request = &QueryTagJobListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryTagJobList", "mts", "openAPI") + return +} + +// CreateQueryTagJobListResponse creates a response to parse from QueryTagJobList response +func CreateQueryTagJobListResponse() (response *QueryTagJobListResponse) { + response = &QueryTagJobListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_template_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_template_list.go new file mode 100644 index 0000000..0810d16 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_template_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTemplateList invokes the mts.QueryTemplateList API synchronously +// api document: https://help.aliyun.com/api/mts/querytemplatelist.html +func (client *Client) QueryTemplateList(request *QueryTemplateListRequest) (response *QueryTemplateListResponse, err error) { + response = CreateQueryTemplateListResponse() + err = client.DoAction(request, response) + return +} + +// QueryTemplateListWithChan invokes the mts.QueryTemplateList API asynchronously +// api document: https://help.aliyun.com/api/mts/querytemplatelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTemplateListWithChan(request *QueryTemplateListRequest) (<-chan *QueryTemplateListResponse, <-chan error) { + responseChan := make(chan *QueryTemplateListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTemplateList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTemplateListWithCallback invokes the mts.QueryTemplateList API asynchronously +// api document: https://help.aliyun.com/api/mts/querytemplatelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTemplateListWithCallback(request *QueryTemplateListRequest, callback func(response *QueryTemplateListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTemplateListResponse + var err error + defer close(result) + response, err = client.QueryTemplateList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTemplateListRequest is the request struct for api QueryTemplateList +type QueryTemplateListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TemplateIds string `position:"Query" name:"TemplateIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryTemplateListResponse is the response struct for api QueryTemplateList +type QueryTemplateListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistTids NonExistTids `json:"NonExistTids" xml:"NonExistTids"` + TemplateList TemplateListInQueryTemplateList `json:"TemplateList" xml:"TemplateList"` +} + +// CreateQueryTemplateListRequest creates a request to invoke QueryTemplateList API +func CreateQueryTemplateListRequest() (request *QueryTemplateListRequest) { + request = &QueryTemplateListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryTemplateList", "mts", "openAPI") + return +} + +// CreateQueryTemplateListResponse creates a response to parse from QueryTemplateList response +func CreateQueryTemplateListResponse() (response *QueryTemplateListResponse) { + response = &QueryTemplateListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_terrorism_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_terrorism_job_list.go new file mode 100644 index 0000000..8b4d5d0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_terrorism_job_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTerrorismJobList invokes the mts.QueryTerrorismJobList API synchronously +// api document: https://help.aliyun.com/api/mts/queryterrorismjoblist.html +func (client *Client) QueryTerrorismJobList(request *QueryTerrorismJobListRequest) (response *QueryTerrorismJobListResponse, err error) { + response = CreateQueryTerrorismJobListResponse() + err = client.DoAction(request, response) + return +} + +// QueryTerrorismJobListWithChan invokes the mts.QueryTerrorismJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryterrorismjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTerrorismJobListWithChan(request *QueryTerrorismJobListRequest) (<-chan *QueryTerrorismJobListResponse, <-chan error) { + responseChan := make(chan *QueryTerrorismJobListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTerrorismJobList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTerrorismJobListWithCallback invokes the mts.QueryTerrorismJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryterrorismjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTerrorismJobListWithCallback(request *QueryTerrorismJobListRequest, callback func(response *QueryTerrorismJobListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTerrorismJobListResponse + var err error + defer close(result) + response, err = client.QueryTerrorismJobList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTerrorismJobListRequest is the request struct for api QueryTerrorismJobList +type QueryTerrorismJobListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobIds string `position:"Query" name:"JobIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryTerrorismJobListResponse is the response struct for api QueryTerrorismJobList +type QueryTerrorismJobListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistIds NonExistIdsInQueryTerrorismJobList `json:"NonExistIds" xml:"NonExistIds"` + TerrorismJobList TerrorismJobList `json:"TerrorismJobList" xml:"TerrorismJobList"` +} + +// CreateQueryTerrorismJobListRequest creates a request to invoke QueryTerrorismJobList API +func CreateQueryTerrorismJobListRequest() (request *QueryTerrorismJobListRequest) { + request = &QueryTerrorismJobListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryTerrorismJobList", "mts", "openAPI") + return +} + +// CreateQueryTerrorismJobListResponse creates a response to parse from QueryTerrorismJobList response +func CreateQueryTerrorismJobListResponse() (response *QueryTerrorismJobListResponse) { + response = &QueryTerrorismJobListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_terrorism_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_terrorism_pipeline_list.go new file mode 100644 index 0000000..830bfed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_terrorism_pipeline_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTerrorismPipelineList invokes the mts.QueryTerrorismPipelineList API synchronously +// api document: https://help.aliyun.com/api/mts/queryterrorismpipelinelist.html +func (client *Client) QueryTerrorismPipelineList(request *QueryTerrorismPipelineListRequest) (response *QueryTerrorismPipelineListResponse, err error) { + response = CreateQueryTerrorismPipelineListResponse() + err = client.DoAction(request, response) + return +} + +// QueryTerrorismPipelineListWithChan invokes the mts.QueryTerrorismPipelineList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryterrorismpipelinelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTerrorismPipelineListWithChan(request *QueryTerrorismPipelineListRequest) (<-chan *QueryTerrorismPipelineListResponse, <-chan error) { + responseChan := make(chan *QueryTerrorismPipelineListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTerrorismPipelineList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTerrorismPipelineListWithCallback invokes the mts.QueryTerrorismPipelineList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryterrorismpipelinelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTerrorismPipelineListWithCallback(request *QueryTerrorismPipelineListRequest, callback func(response *QueryTerrorismPipelineListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTerrorismPipelineListResponse + var err error + defer close(result) + response, err = client.QueryTerrorismPipelineList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTerrorismPipelineListRequest is the request struct for api QueryTerrorismPipelineList +type QueryTerrorismPipelineListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PipelineIds string `position:"Query" name:"PipelineIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryTerrorismPipelineListResponse is the response struct for api QueryTerrorismPipelineList +type QueryTerrorismPipelineListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistIds NonExistIdsInQueryTerrorismPipelineList `json:"NonExistIds" xml:"NonExistIds"` + PipelineList PipelineListInQueryTerrorismPipelineList `json:"PipelineList" xml:"PipelineList"` +} + +// CreateQueryTerrorismPipelineListRequest creates a request to invoke QueryTerrorismPipelineList API +func CreateQueryTerrorismPipelineListRequest() (request *QueryTerrorismPipelineListRequest) { + request = &QueryTerrorismPipelineListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryTerrorismPipelineList", "mts", "openAPI") + return +} + +// CreateQueryTerrorismPipelineListResponse creates a response to parse from QueryTerrorismPipelineList response +func CreateQueryTerrorismPipelineListResponse() (response *QueryTerrorismPipelineListResponse) { + response = &QueryTerrorismPipelineListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_video_gif_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_video_gif_job_list.go new file mode 100644 index 0000000..d6e8352 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_video_gif_job_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryVideoGifJobList invokes the mts.QueryVideoGifJobList API synchronously +// api document: https://help.aliyun.com/api/mts/queryvideogifjoblist.html +func (client *Client) QueryVideoGifJobList(request *QueryVideoGifJobListRequest) (response *QueryVideoGifJobListResponse, err error) { + response = CreateQueryVideoGifJobListResponse() + err = client.DoAction(request, response) + return +} + +// QueryVideoGifJobListWithChan invokes the mts.QueryVideoGifJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryvideogifjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryVideoGifJobListWithChan(request *QueryVideoGifJobListRequest) (<-chan *QueryVideoGifJobListResponse, <-chan error) { + responseChan := make(chan *QueryVideoGifJobListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryVideoGifJobList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryVideoGifJobListWithCallback invokes the mts.QueryVideoGifJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryvideogifjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryVideoGifJobListWithCallback(request *QueryVideoGifJobListRequest, callback func(response *QueryVideoGifJobListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryVideoGifJobListResponse + var err error + defer close(result) + response, err = client.QueryVideoGifJobList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryVideoGifJobListRequest is the request struct for api QueryVideoGifJobList +type QueryVideoGifJobListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobIds string `position:"Query" name:"JobIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryVideoGifJobListResponse is the response struct for api QueryVideoGifJobList +type QueryVideoGifJobListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistIds NonExistIdsInQueryVideoGifJobList `json:"NonExistIds" xml:"NonExistIds"` + JobList JobListInQueryVideoGifJobList `json:"JobList" xml:"JobList"` +} + +// CreateQueryVideoGifJobListRequest creates a request to invoke QueryVideoGifJobList API +func CreateQueryVideoGifJobListRequest() (request *QueryVideoGifJobListRequest) { + request = &QueryVideoGifJobListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryVideoGifJobList", "mts", "openAPI") + return +} + +// CreateQueryVideoGifJobListResponse creates a response to parse from QueryVideoGifJobList response +func CreateQueryVideoGifJobListResponse() (response *QueryVideoGifJobListResponse) { + response = &QueryVideoGifJobListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_video_split_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_video_split_job_list.go new file mode 100644 index 0000000..34bc873 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_video_split_job_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryVideoSplitJobList invokes the mts.QueryVideoSplitJobList API synchronously +// api document: https://help.aliyun.com/api/mts/queryvideosplitjoblist.html +func (client *Client) QueryVideoSplitJobList(request *QueryVideoSplitJobListRequest) (response *QueryVideoSplitJobListResponse, err error) { + response = CreateQueryVideoSplitJobListResponse() + err = client.DoAction(request, response) + return +} + +// QueryVideoSplitJobListWithChan invokes the mts.QueryVideoSplitJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryvideosplitjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryVideoSplitJobListWithChan(request *QueryVideoSplitJobListRequest) (<-chan *QueryVideoSplitJobListResponse, <-chan error) { + responseChan := make(chan *QueryVideoSplitJobListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryVideoSplitJobList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryVideoSplitJobListWithCallback invokes the mts.QueryVideoSplitJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryvideosplitjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryVideoSplitJobListWithCallback(request *QueryVideoSplitJobListRequest, callback func(response *QueryVideoSplitJobListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryVideoSplitJobListResponse + var err error + defer close(result) + response, err = client.QueryVideoSplitJobList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryVideoSplitJobListRequest is the request struct for api QueryVideoSplitJobList +type QueryVideoSplitJobListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobIds string `position:"Query" name:"JobIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryVideoSplitJobListResponse is the response struct for api QueryVideoSplitJobList +type QueryVideoSplitJobListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistIds NonExistIdsInQueryVideoSplitJobList `json:"NonExistIds" xml:"NonExistIds"` + JobList JobListInQueryVideoSplitJobList `json:"JobList" xml:"JobList"` +} + +// CreateQueryVideoSplitJobListRequest creates a request to invoke QueryVideoSplitJobList API +func CreateQueryVideoSplitJobListRequest() (request *QueryVideoSplitJobListRequest) { + request = &QueryVideoSplitJobListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryVideoSplitJobList", "mts", "openAPI") + return +} + +// CreateQueryVideoSplitJobListResponse creates a response to parse from QueryVideoSplitJobList response +func CreateQueryVideoSplitJobListResponse() (response *QueryVideoSplitJobListResponse) { + response = &QueryVideoSplitJobListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_video_summary_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_video_summary_job_list.go new file mode 100644 index 0000000..0e87d59 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_video_summary_job_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryVideoSummaryJobList invokes the mts.QueryVideoSummaryJobList API synchronously +// api document: https://help.aliyun.com/api/mts/queryvideosummaryjoblist.html +func (client *Client) QueryVideoSummaryJobList(request *QueryVideoSummaryJobListRequest) (response *QueryVideoSummaryJobListResponse, err error) { + response = CreateQueryVideoSummaryJobListResponse() + err = client.DoAction(request, response) + return +} + +// QueryVideoSummaryJobListWithChan invokes the mts.QueryVideoSummaryJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryvideosummaryjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryVideoSummaryJobListWithChan(request *QueryVideoSummaryJobListRequest) (<-chan *QueryVideoSummaryJobListResponse, <-chan error) { + responseChan := make(chan *QueryVideoSummaryJobListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryVideoSummaryJobList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryVideoSummaryJobListWithCallback invokes the mts.QueryVideoSummaryJobList API asynchronously +// api document: https://help.aliyun.com/api/mts/queryvideosummaryjoblist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryVideoSummaryJobListWithCallback(request *QueryVideoSummaryJobListRequest, callback func(response *QueryVideoSummaryJobListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryVideoSummaryJobListResponse + var err error + defer close(result) + response, err = client.QueryVideoSummaryJobList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryVideoSummaryJobListRequest is the request struct for api QueryVideoSummaryJobList +type QueryVideoSummaryJobListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobIds string `position:"Query" name:"JobIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryVideoSummaryJobListResponse is the response struct for api QueryVideoSummaryJobList +type QueryVideoSummaryJobListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistIds NonExistIdsInQueryVideoSummaryJobList `json:"NonExistIds" xml:"NonExistIds"` + JobList JobListInQueryVideoSummaryJobList `json:"JobList" xml:"JobList"` +} + +// CreateQueryVideoSummaryJobListRequest creates a request to invoke QueryVideoSummaryJobList API +func CreateQueryVideoSummaryJobListRequest() (request *QueryVideoSummaryJobListRequest) { + request = &QueryVideoSummaryJobListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryVideoSummaryJobList", "mts", "openAPI") + return +} + +// CreateQueryVideoSummaryJobListResponse creates a response to parse from QueryVideoSummaryJobList response +func CreateQueryVideoSummaryJobListResponse() (response *QueryVideoSummaryJobListResponse) { + response = &QueryVideoSummaryJobListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_water_mark_template_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_water_mark_template_list.go new file mode 100644 index 0000000..ee4b4cf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/query_water_mark_template_list.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryWaterMarkTemplateList invokes the mts.QueryWaterMarkTemplateList API synchronously +// api document: https://help.aliyun.com/api/mts/querywatermarktemplatelist.html +func (client *Client) QueryWaterMarkTemplateList(request *QueryWaterMarkTemplateListRequest) (response *QueryWaterMarkTemplateListResponse, err error) { + response = CreateQueryWaterMarkTemplateListResponse() + err = client.DoAction(request, response) + return +} + +// QueryWaterMarkTemplateListWithChan invokes the mts.QueryWaterMarkTemplateList API asynchronously +// api document: https://help.aliyun.com/api/mts/querywatermarktemplatelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryWaterMarkTemplateListWithChan(request *QueryWaterMarkTemplateListRequest) (<-chan *QueryWaterMarkTemplateListResponse, <-chan error) { + responseChan := make(chan *QueryWaterMarkTemplateListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryWaterMarkTemplateList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryWaterMarkTemplateListWithCallback invokes the mts.QueryWaterMarkTemplateList API asynchronously +// api document: https://help.aliyun.com/api/mts/querywatermarktemplatelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryWaterMarkTemplateListWithCallback(request *QueryWaterMarkTemplateListRequest, callback func(response *QueryWaterMarkTemplateListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryWaterMarkTemplateListResponse + var err error + defer close(result) + response, err = client.QueryWaterMarkTemplateList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryWaterMarkTemplateListRequest is the request struct for api QueryWaterMarkTemplateList +type QueryWaterMarkTemplateListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + WaterMarkTemplateIds string `position:"Query" name:"WaterMarkTemplateIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// QueryWaterMarkTemplateListResponse is the response struct for api QueryWaterMarkTemplateList +type QueryWaterMarkTemplateListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistWids NonExistWids `json:"NonExistWids" xml:"NonExistWids"` + WaterMarkTemplateList WaterMarkTemplateListInQueryWaterMarkTemplateList `json:"WaterMarkTemplateList" xml:"WaterMarkTemplateList"` +} + +// CreateQueryWaterMarkTemplateListRequest creates a request to invoke QueryWaterMarkTemplateList API +func CreateQueryWaterMarkTemplateListRequest() (request *QueryWaterMarkTemplateListRequest) { + request = &QueryWaterMarkTemplateListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "QueryWaterMarkTemplateList", "mts", "openAPI") + return +} + +// CreateQueryWaterMarkTemplateListResponse creates a response to parse from QueryWaterMarkTemplateList response +func CreateQueryWaterMarkTemplateListResponse() (response *QueryWaterMarkTemplateListResponse) { + response = &QueryWaterMarkTemplateListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/refresh_cdn_domain_configs_cache.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/refresh_cdn_domain_configs_cache.go new file mode 100644 index 0000000..87d690f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/refresh_cdn_domain_configs_cache.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RefreshCdnDomainConfigsCache invokes the mts.RefreshCdnDomainConfigsCache API synchronously +// api document: https://help.aliyun.com/api/mts/refreshcdndomainconfigscache.html +func (client *Client) RefreshCdnDomainConfigsCache(request *RefreshCdnDomainConfigsCacheRequest) (response *RefreshCdnDomainConfigsCacheResponse, err error) { + response = CreateRefreshCdnDomainConfigsCacheResponse() + err = client.DoAction(request, response) + return +} + +// RefreshCdnDomainConfigsCacheWithChan invokes the mts.RefreshCdnDomainConfigsCache API asynchronously +// api document: https://help.aliyun.com/api/mts/refreshcdndomainconfigscache.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RefreshCdnDomainConfigsCacheWithChan(request *RefreshCdnDomainConfigsCacheRequest) (<-chan *RefreshCdnDomainConfigsCacheResponse, <-chan error) { + responseChan := make(chan *RefreshCdnDomainConfigsCacheResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RefreshCdnDomainConfigsCache(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RefreshCdnDomainConfigsCacheWithCallback invokes the mts.RefreshCdnDomainConfigsCache API asynchronously +// api document: https://help.aliyun.com/api/mts/refreshcdndomainconfigscache.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RefreshCdnDomainConfigsCacheWithCallback(request *RefreshCdnDomainConfigsCacheRequest, callback func(response *RefreshCdnDomainConfigsCacheResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RefreshCdnDomainConfigsCacheResponse + var err error + defer close(result) + response, err = client.RefreshCdnDomainConfigsCache(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RefreshCdnDomainConfigsCacheRequest is the request struct for api RefreshCdnDomainConfigsCache +type RefreshCdnDomainConfigsCacheRequest struct { + *requests.RpcRequest + OwnerId string `position:"Query" name:"OwnerId"` + ResourceOwnerId string `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Domains string `position:"Query" name:"Domains"` +} + +// RefreshCdnDomainConfigsCacheResponse is the response struct for api RefreshCdnDomainConfigsCache +type RefreshCdnDomainConfigsCacheResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SucessDomains SucessDomains `json:"SucessDomains" xml:"SucessDomains"` + FailedDomains FailedDomains `json:"FailedDomains" xml:"FailedDomains"` +} + +// CreateRefreshCdnDomainConfigsCacheRequest creates a request to invoke RefreshCdnDomainConfigsCache API +func CreateRefreshCdnDomainConfigsCacheRequest() (request *RefreshCdnDomainConfigsCacheRequest) { + request = &RefreshCdnDomainConfigsCacheRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "RefreshCdnDomainConfigsCache", "mts", "openAPI") + return +} + +// CreateRefreshCdnDomainConfigsCacheResponse creates a response to parse from RefreshCdnDomainConfigsCache response +func CreateRefreshCdnDomainConfigsCacheResponse() (response *RefreshCdnDomainConfigsCacheResponse) { + response = &RefreshCdnDomainConfigsCacheResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/register_media_detail_person.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/register_media_detail_person.go new file mode 100644 index 0000000..55028e7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/register_media_detail_person.go @@ -0,0 +1,111 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RegisterMediaDetailPerson invokes the mts.RegisterMediaDetailPerson API synchronously +// api document: https://help.aliyun.com/api/mts/registermediadetailperson.html +func (client *Client) RegisterMediaDetailPerson(request *RegisterMediaDetailPersonRequest) (response *RegisterMediaDetailPersonResponse, err error) { + response = CreateRegisterMediaDetailPersonResponse() + err = client.DoAction(request, response) + return +} + +// RegisterMediaDetailPersonWithChan invokes the mts.RegisterMediaDetailPerson API asynchronously +// api document: https://help.aliyun.com/api/mts/registermediadetailperson.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RegisterMediaDetailPersonWithChan(request *RegisterMediaDetailPersonRequest) (<-chan *RegisterMediaDetailPersonResponse, <-chan error) { + responseChan := make(chan *RegisterMediaDetailPersonResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RegisterMediaDetailPerson(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RegisterMediaDetailPersonWithCallback invokes the mts.RegisterMediaDetailPerson API asynchronously +// api document: https://help.aliyun.com/api/mts/registermediadetailperson.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RegisterMediaDetailPersonWithCallback(request *RegisterMediaDetailPersonRequest, callback func(response *RegisterMediaDetailPersonResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RegisterMediaDetailPersonResponse + var err error + defer close(result) + response, err = client.RegisterMediaDetailPerson(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RegisterMediaDetailPersonRequest is the request struct for api RegisterMediaDetailPerson +type RegisterMediaDetailPersonRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Category string `position:"Query" name:"Category"` + PersonName string `position:"Query" name:"PersonName"` + Images string `position:"Query" name:"Images"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// RegisterMediaDetailPersonResponse is the response struct for api RegisterMediaDetailPerson +type RegisterMediaDetailPersonResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegisteredPersonages RegisteredPersonages `json:"RegisteredPersonages" xml:"RegisteredPersonages"` + FailedImages FailedImages `json:"FailedImages" xml:"FailedImages"` +} + +// CreateRegisterMediaDetailPersonRequest creates a request to invoke RegisterMediaDetailPerson API +func CreateRegisterMediaDetailPersonRequest() (request *RegisterMediaDetailPersonRequest) { + request = &RegisterMediaDetailPersonRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "RegisterMediaDetailPerson", "mts", "openAPI") + return +} + +// CreateRegisterMediaDetailPersonResponse creates a response to parse from RegisterMediaDetailPerson response +func CreateRegisterMediaDetailPersonResponse() (response *RegisterMediaDetailPersonResponse) { + response = &RegisterMediaDetailPersonResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/register_media_detail_scenario.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/register_media_detail_scenario.go new file mode 100644 index 0000000..b0e1ebe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/register_media_detail_scenario.go @@ -0,0 +1,110 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RegisterMediaDetailScenario invokes the mts.RegisterMediaDetailScenario API synchronously +// api document: https://help.aliyun.com/api/mts/registermediadetailscenario.html +func (client *Client) RegisterMediaDetailScenario(request *RegisterMediaDetailScenarioRequest) (response *RegisterMediaDetailScenarioResponse, err error) { + response = CreateRegisterMediaDetailScenarioResponse() + err = client.DoAction(request, response) + return +} + +// RegisterMediaDetailScenarioWithChan invokes the mts.RegisterMediaDetailScenario API asynchronously +// api document: https://help.aliyun.com/api/mts/registermediadetailscenario.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RegisterMediaDetailScenarioWithChan(request *RegisterMediaDetailScenarioRequest) (<-chan *RegisterMediaDetailScenarioResponse, <-chan error) { + responseChan := make(chan *RegisterMediaDetailScenarioResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RegisterMediaDetailScenario(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RegisterMediaDetailScenarioWithCallback invokes the mts.RegisterMediaDetailScenario API asynchronously +// api document: https://help.aliyun.com/api/mts/registermediadetailscenario.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RegisterMediaDetailScenarioWithCallback(request *RegisterMediaDetailScenarioRequest, callback func(response *RegisterMediaDetailScenarioResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RegisterMediaDetailScenarioResponse + var err error + defer close(result) + response, err = client.RegisterMediaDetailScenario(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RegisterMediaDetailScenarioRequest is the request struct for api RegisterMediaDetailScenario +type RegisterMediaDetailScenarioRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobId string `position:"Query" name:"JobId"` + Scenario string `position:"Query" name:"Scenario"` + Description string `position:"Query" name:"Description"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// RegisterMediaDetailScenarioResponse is the response struct for api RegisterMediaDetailScenario +type RegisterMediaDetailScenarioResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ScenarioId string `json:"ScenarioId" xml:"ScenarioId"` +} + +// CreateRegisterMediaDetailScenarioRequest creates a request to invoke RegisterMediaDetailScenario API +func CreateRegisterMediaDetailScenarioRequest() (request *RegisterMediaDetailScenarioRequest) { + request = &RegisterMediaDetailScenarioRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "RegisterMediaDetailScenario", "mts", "openAPI") + return +} + +// CreateRegisterMediaDetailScenarioResponse creates a response to parse from RegisterMediaDetailScenario response +func CreateRegisterMediaDetailScenarioResponse() (response *RegisterMediaDetailScenarioResponse) { + response = &RegisterMediaDetailScenarioResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_annotation_job_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_annotation_job_result.go new file mode 100644 index 0000000..228680d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_annotation_job_result.go @@ -0,0 +1,110 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReportAnnotationJobResult invokes the mts.ReportAnnotationJobResult API synchronously +// api document: https://help.aliyun.com/api/mts/reportannotationjobresult.html +func (client *Client) ReportAnnotationJobResult(request *ReportAnnotationJobResultRequest) (response *ReportAnnotationJobResultResponse, err error) { + response = CreateReportAnnotationJobResultResponse() + err = client.DoAction(request, response) + return +} + +// ReportAnnotationJobResultWithChan invokes the mts.ReportAnnotationJobResult API asynchronously +// api document: https://help.aliyun.com/api/mts/reportannotationjobresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReportAnnotationJobResultWithChan(request *ReportAnnotationJobResultRequest) (<-chan *ReportAnnotationJobResultResponse, <-chan error) { + responseChan := make(chan *ReportAnnotationJobResultResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReportAnnotationJobResult(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReportAnnotationJobResultWithCallback invokes the mts.ReportAnnotationJobResult API asynchronously +// api document: https://help.aliyun.com/api/mts/reportannotationjobresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReportAnnotationJobResultWithCallback(request *ReportAnnotationJobResultRequest, callback func(response *ReportAnnotationJobResultResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReportAnnotationJobResultResponse + var err error + defer close(result) + response, err = client.ReportAnnotationJobResult(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReportAnnotationJobResultRequest is the request struct for api ReportAnnotationJobResult +type ReportAnnotationJobResultRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobId string `position:"Query" name:"JobId"` + Annotation string `position:"Query" name:"Annotation"` + Details string `position:"Query" name:"Details"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ReportAnnotationJobResultResponse is the response struct for api ReportAnnotationJobResult +type ReportAnnotationJobResultResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateReportAnnotationJobResultRequest creates a request to invoke ReportAnnotationJobResult API +func CreateReportAnnotationJobResultRequest() (request *ReportAnnotationJobResultRequest) { + request = &ReportAnnotationJobResultRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "ReportAnnotationJobResult", "mts", "openAPI") + return +} + +// CreateReportAnnotationJobResultResponse creates a response to parse from ReportAnnotationJobResult response +func CreateReportAnnotationJobResultResponse() (response *ReportAnnotationJobResultResponse) { + response = &ReportAnnotationJobResultResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_censor_job_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_censor_job_result.go new file mode 100644 index 0000000..5baab5a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_censor_job_result.go @@ -0,0 +1,110 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReportCensorJobResult invokes the mts.ReportCensorJobResult API synchronously +// api document: https://help.aliyun.com/api/mts/reportcensorjobresult.html +func (client *Client) ReportCensorJobResult(request *ReportCensorJobResultRequest) (response *ReportCensorJobResultResponse, err error) { + response = CreateReportCensorJobResultResponse() + err = client.DoAction(request, response) + return +} + +// ReportCensorJobResultWithChan invokes the mts.ReportCensorJobResult API asynchronously +// api document: https://help.aliyun.com/api/mts/reportcensorjobresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReportCensorJobResultWithChan(request *ReportCensorJobResultRequest) (<-chan *ReportCensorJobResultResponse, <-chan error) { + responseChan := make(chan *ReportCensorJobResultResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReportCensorJobResult(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReportCensorJobResultWithCallback invokes the mts.ReportCensorJobResult API asynchronously +// api document: https://help.aliyun.com/api/mts/reportcensorjobresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReportCensorJobResultWithCallback(request *ReportCensorJobResultRequest, callback func(response *ReportCensorJobResultResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReportCensorJobResultResponse + var err error + defer close(result) + response, err = client.ReportCensorJobResult(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReportCensorJobResultRequest is the request struct for api ReportCensorJobResult +type ReportCensorJobResultRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobId string `position:"Query" name:"JobId"` + Label string `position:"Query" name:"Label"` + Detail string `position:"Query" name:"Detail"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ReportCensorJobResultResponse is the response struct for api ReportCensorJobResult +type ReportCensorJobResultResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateReportCensorJobResultRequest creates a request to invoke ReportCensorJobResult API +func CreateReportCensorJobResultRequest() (request *ReportCensorJobResultRequest) { + request = &ReportCensorJobResultRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "ReportCensorJobResult", "mts", "openAPI") + return +} + +// CreateReportCensorJobResultResponse creates a response to parse from ReportCensorJobResult response +func CreateReportCensorJobResultResponse() (response *ReportCensorJobResultResponse) { + response = &ReportCensorJobResultResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_cover_job_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_cover_job_result.go new file mode 100644 index 0000000..6bbd8d9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_cover_job_result.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReportCoverJobResult invokes the mts.ReportCoverJobResult API synchronously +// api document: https://help.aliyun.com/api/mts/reportcoverjobresult.html +func (client *Client) ReportCoverJobResult(request *ReportCoverJobResultRequest) (response *ReportCoverJobResultResponse, err error) { + response = CreateReportCoverJobResultResponse() + err = client.DoAction(request, response) + return +} + +// ReportCoverJobResultWithChan invokes the mts.ReportCoverJobResult API asynchronously +// api document: https://help.aliyun.com/api/mts/reportcoverjobresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReportCoverJobResultWithChan(request *ReportCoverJobResultRequest) (<-chan *ReportCoverJobResultResponse, <-chan error) { + responseChan := make(chan *ReportCoverJobResultResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReportCoverJobResult(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReportCoverJobResultWithCallback invokes the mts.ReportCoverJobResult API asynchronously +// api document: https://help.aliyun.com/api/mts/reportcoverjobresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReportCoverJobResultWithCallback(request *ReportCoverJobResultRequest, callback func(response *ReportCoverJobResultResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReportCoverJobResultResponse + var err error + defer close(result) + response, err = client.ReportCoverJobResult(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReportCoverJobResultRequest is the request struct for api ReportCoverJobResult +type ReportCoverJobResultRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobId string `position:"Query" name:"JobId"` + Result string `position:"Query" name:"Result"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ReportCoverJobResultResponse is the response struct for api ReportCoverJobResult +type ReportCoverJobResultResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateReportCoverJobResultRequest creates a request to invoke ReportCoverJobResult API +func CreateReportCoverJobResultRequest() (request *ReportCoverJobResultRequest) { + request = &ReportCoverJobResultRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "ReportCoverJobResult", "mts", "openAPI") + return +} + +// CreateReportCoverJobResultResponse creates a response to parse from ReportCoverJobResult response +func CreateReportCoverJobResultResponse() (response *ReportCoverJobResultResponse) { + response = &ReportCoverJobResultResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_facerecog_job_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_facerecog_job_result.go new file mode 100644 index 0000000..dd79583 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_facerecog_job_result.go @@ -0,0 +1,110 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReportFacerecogJobResult invokes the mts.ReportFacerecogJobResult API synchronously +// api document: https://help.aliyun.com/api/mts/reportfacerecogjobresult.html +func (client *Client) ReportFacerecogJobResult(request *ReportFacerecogJobResultRequest) (response *ReportFacerecogJobResultResponse, err error) { + response = CreateReportFacerecogJobResultResponse() + err = client.DoAction(request, response) + return +} + +// ReportFacerecogJobResultWithChan invokes the mts.ReportFacerecogJobResult API asynchronously +// api document: https://help.aliyun.com/api/mts/reportfacerecogjobresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReportFacerecogJobResultWithChan(request *ReportFacerecogJobResultRequest) (<-chan *ReportFacerecogJobResultResponse, <-chan error) { + responseChan := make(chan *ReportFacerecogJobResultResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReportFacerecogJobResult(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReportFacerecogJobResultWithCallback invokes the mts.ReportFacerecogJobResult API asynchronously +// api document: https://help.aliyun.com/api/mts/reportfacerecogjobresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReportFacerecogJobResultWithCallback(request *ReportFacerecogJobResultRequest, callback func(response *ReportFacerecogJobResultResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReportFacerecogJobResultResponse + var err error + defer close(result) + response, err = client.ReportFacerecogJobResult(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReportFacerecogJobResultRequest is the request struct for api ReportFacerecogJobResult +type ReportFacerecogJobResultRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobId string `position:"Query" name:"JobId"` + Facerecog string `position:"Query" name:"Facerecog"` + Details string `position:"Query" name:"Details"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ReportFacerecogJobResultResponse is the response struct for api ReportFacerecogJobResult +type ReportFacerecogJobResultResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateReportFacerecogJobResultRequest creates a request to invoke ReportFacerecogJobResult API +func CreateReportFacerecogJobResultRequest() (request *ReportFacerecogJobResultRequest) { + request = &ReportFacerecogJobResultRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "ReportFacerecogJobResult", "mts", "openAPI") + return +} + +// CreateReportFacerecogJobResultResponse creates a response to parse from ReportFacerecogJobResult response +func CreateReportFacerecogJobResultResponse() (response *ReportFacerecogJobResultResponse) { + response = &ReportFacerecogJobResultResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_fp_shot_job_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_fp_shot_job_result.go new file mode 100644 index 0000000..3a0295e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_fp_shot_job_result.go @@ -0,0 +1,110 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReportFpShotJobResult invokes the mts.ReportFpShotJobResult API synchronously +// api document: https://help.aliyun.com/api/mts/reportfpshotjobresult.html +func (client *Client) ReportFpShotJobResult(request *ReportFpShotJobResultRequest) (response *ReportFpShotJobResultResponse, err error) { + response = CreateReportFpShotJobResultResponse() + err = client.DoAction(request, response) + return +} + +// ReportFpShotJobResultWithChan invokes the mts.ReportFpShotJobResult API asynchronously +// api document: https://help.aliyun.com/api/mts/reportfpshotjobresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReportFpShotJobResultWithChan(request *ReportFpShotJobResultRequest) (<-chan *ReportFpShotJobResultResponse, <-chan error) { + responseChan := make(chan *ReportFpShotJobResultResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReportFpShotJobResult(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReportFpShotJobResultWithCallback invokes the mts.ReportFpShotJobResult API asynchronously +// api document: https://help.aliyun.com/api/mts/reportfpshotjobresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReportFpShotJobResultWithCallback(request *ReportFpShotJobResultRequest, callback func(response *ReportFpShotJobResultResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReportFpShotJobResultResponse + var err error + defer close(result) + response, err = client.ReportFpShotJobResult(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReportFpShotJobResultRequest is the request struct for api ReportFpShotJobResult +type ReportFpShotJobResultRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobId string `position:"Query" name:"JobId"` + Result string `position:"Query" name:"Result"` + Details string `position:"Query" name:"Details"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ReportFpShotJobResultResponse is the response struct for api ReportFpShotJobResult +type ReportFpShotJobResultResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateReportFpShotJobResultRequest creates a request to invoke ReportFpShotJobResult API +func CreateReportFpShotJobResultRequest() (request *ReportFpShotJobResultRequest) { + request = &ReportFpShotJobResultRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "ReportFpShotJobResult", "mts", "openAPI") + return +} + +// CreateReportFpShotJobResultResponse creates a response to parse from ReportFpShotJobResult response +func CreateReportFpShotJobResultResponse() (response *ReportFpShotJobResultResponse) { + response = &ReportFpShotJobResultResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_media_detail_job_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_media_detail_job_result.go new file mode 100644 index 0000000..6c41b1c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_media_detail_job_result.go @@ -0,0 +1,110 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReportMediaDetailJobResult invokes the mts.ReportMediaDetailJobResult API synchronously +// api document: https://help.aliyun.com/api/mts/reportmediadetailjobresult.html +func (client *Client) ReportMediaDetailJobResult(request *ReportMediaDetailJobResultRequest) (response *ReportMediaDetailJobResultResponse, err error) { + response = CreateReportMediaDetailJobResultResponse() + err = client.DoAction(request, response) + return +} + +// ReportMediaDetailJobResultWithChan invokes the mts.ReportMediaDetailJobResult API asynchronously +// api document: https://help.aliyun.com/api/mts/reportmediadetailjobresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReportMediaDetailJobResultWithChan(request *ReportMediaDetailJobResultRequest) (<-chan *ReportMediaDetailJobResultResponse, <-chan error) { + responseChan := make(chan *ReportMediaDetailJobResultResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReportMediaDetailJobResult(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReportMediaDetailJobResultWithCallback invokes the mts.ReportMediaDetailJobResult API asynchronously +// api document: https://help.aliyun.com/api/mts/reportmediadetailjobresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReportMediaDetailJobResultWithCallback(request *ReportMediaDetailJobResultRequest, callback func(response *ReportMediaDetailJobResultResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReportMediaDetailJobResultResponse + var err error + defer close(result) + response, err = client.ReportMediaDetailJobResult(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReportMediaDetailJobResultRequest is the request struct for api ReportMediaDetailJobResult +type ReportMediaDetailJobResultRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobId string `position:"Query" name:"JobId"` + Tag string `position:"Query" name:"Tag"` + Results string `position:"Query" name:"Results"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ReportMediaDetailJobResultResponse is the response struct for api ReportMediaDetailJobResult +type ReportMediaDetailJobResultResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateReportMediaDetailJobResultRequest creates a request to invoke ReportMediaDetailJobResult API +func CreateReportMediaDetailJobResultRequest() (request *ReportMediaDetailJobResultRequest) { + request = &ReportMediaDetailJobResultRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "ReportMediaDetailJobResult", "mts", "openAPI") + return +} + +// CreateReportMediaDetailJobResultResponse creates a response to parse from ReportMediaDetailJobResult response +func CreateReportMediaDetailJobResultResponse() (response *ReportMediaDetailJobResultResponse) { + response = &ReportMediaDetailJobResultResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_porn_job_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_porn_job_result.go new file mode 100644 index 0000000..0b8f0c2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_porn_job_result.go @@ -0,0 +1,110 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReportPornJobResult invokes the mts.ReportPornJobResult API synchronously +// api document: https://help.aliyun.com/api/mts/reportpornjobresult.html +func (client *Client) ReportPornJobResult(request *ReportPornJobResultRequest) (response *ReportPornJobResultResponse, err error) { + response = CreateReportPornJobResultResponse() + err = client.DoAction(request, response) + return +} + +// ReportPornJobResultWithChan invokes the mts.ReportPornJobResult API asynchronously +// api document: https://help.aliyun.com/api/mts/reportpornjobresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReportPornJobResultWithChan(request *ReportPornJobResultRequest) (<-chan *ReportPornJobResultResponse, <-chan error) { + responseChan := make(chan *ReportPornJobResultResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReportPornJobResult(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReportPornJobResultWithCallback invokes the mts.ReportPornJobResult API asynchronously +// api document: https://help.aliyun.com/api/mts/reportpornjobresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReportPornJobResultWithCallback(request *ReportPornJobResultRequest, callback func(response *ReportPornJobResultResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReportPornJobResultResponse + var err error + defer close(result) + response, err = client.ReportPornJobResult(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReportPornJobResultRequest is the request struct for api ReportPornJobResult +type ReportPornJobResultRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobId string `position:"Query" name:"JobId"` + Label string `position:"Query" name:"Label"` + Detail string `position:"Query" name:"Detail"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ReportPornJobResultResponse is the response struct for api ReportPornJobResult +type ReportPornJobResultResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateReportPornJobResultRequest creates a request to invoke ReportPornJobResult API +func CreateReportPornJobResultRequest() (request *ReportPornJobResultRequest) { + request = &ReportPornJobResultRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "ReportPornJobResult", "mts", "openAPI") + return +} + +// CreateReportPornJobResultResponse creates a response to parse from ReportPornJobResult response +func CreateReportPornJobResultResponse() (response *ReportPornJobResultResponse) { + response = &ReportPornJobResultResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_tag_job_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_tag_job_result.go new file mode 100644 index 0000000..c2b4b76 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_tag_job_result.go @@ -0,0 +1,110 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReportTagJobResult invokes the mts.ReportTagJobResult API synchronously +// api document: https://help.aliyun.com/api/mts/reporttagjobresult.html +func (client *Client) ReportTagJobResult(request *ReportTagJobResultRequest) (response *ReportTagJobResultResponse, err error) { + response = CreateReportTagJobResultResponse() + err = client.DoAction(request, response) + return +} + +// ReportTagJobResultWithChan invokes the mts.ReportTagJobResult API asynchronously +// api document: https://help.aliyun.com/api/mts/reporttagjobresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReportTagJobResultWithChan(request *ReportTagJobResultRequest) (<-chan *ReportTagJobResultResponse, <-chan error) { + responseChan := make(chan *ReportTagJobResultResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReportTagJobResult(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReportTagJobResultWithCallback invokes the mts.ReportTagJobResult API asynchronously +// api document: https://help.aliyun.com/api/mts/reporttagjobresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReportTagJobResultWithCallback(request *ReportTagJobResultRequest, callback func(response *ReportTagJobResultResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReportTagJobResultResponse + var err error + defer close(result) + response, err = client.ReportTagJobResult(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReportTagJobResultRequest is the request struct for api ReportTagJobResult +type ReportTagJobResultRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobId string `position:"Query" name:"JobId"` + Tag string `position:"Query" name:"Tag"` + Result string `position:"Query" name:"Result"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ReportTagJobResultResponse is the response struct for api ReportTagJobResult +type ReportTagJobResultResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateReportTagJobResultRequest creates a request to invoke ReportTagJobResult API +func CreateReportTagJobResultRequest() (request *ReportTagJobResultRequest) { + request = &ReportTagJobResultRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "ReportTagJobResult", "mts", "openAPI") + return +} + +// CreateReportTagJobResultResponse creates a response to parse from ReportTagJobResult response +func CreateReportTagJobResultResponse() (response *ReportTagJobResultResponse) { + response = &ReportTagJobResultResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_terrorism_job_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_terrorism_job_result.go new file mode 100644 index 0000000..66cfd22 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_terrorism_job_result.go @@ -0,0 +1,110 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReportTerrorismJobResult invokes the mts.ReportTerrorismJobResult API synchronously +// api document: https://help.aliyun.com/api/mts/reportterrorismjobresult.html +func (client *Client) ReportTerrorismJobResult(request *ReportTerrorismJobResultRequest) (response *ReportTerrorismJobResultResponse, err error) { + response = CreateReportTerrorismJobResultResponse() + err = client.DoAction(request, response) + return +} + +// ReportTerrorismJobResultWithChan invokes the mts.ReportTerrorismJobResult API asynchronously +// api document: https://help.aliyun.com/api/mts/reportterrorismjobresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReportTerrorismJobResultWithChan(request *ReportTerrorismJobResultRequest) (<-chan *ReportTerrorismJobResultResponse, <-chan error) { + responseChan := make(chan *ReportTerrorismJobResultResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReportTerrorismJobResult(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReportTerrorismJobResultWithCallback invokes the mts.ReportTerrorismJobResult API asynchronously +// api document: https://help.aliyun.com/api/mts/reportterrorismjobresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReportTerrorismJobResultWithCallback(request *ReportTerrorismJobResultRequest, callback func(response *ReportTerrorismJobResultResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReportTerrorismJobResultResponse + var err error + defer close(result) + response, err = client.ReportTerrorismJobResult(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReportTerrorismJobResultRequest is the request struct for api ReportTerrorismJobResult +type ReportTerrorismJobResultRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobId string `position:"Query" name:"JobId"` + Label string `position:"Query" name:"Label"` + Detail string `position:"Query" name:"Detail"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ReportTerrorismJobResultResponse is the response struct for api ReportTerrorismJobResult +type ReportTerrorismJobResultResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateReportTerrorismJobResultRequest creates a request to invoke ReportTerrorismJobResult API +func CreateReportTerrorismJobResultRequest() (request *ReportTerrorismJobResultRequest) { + request = &ReportTerrorismJobResultRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "ReportTerrorismJobResult", "mts", "openAPI") + return +} + +// CreateReportTerrorismJobResultResponse creates a response to parse from ReportTerrorismJobResult response +func CreateReportTerrorismJobResultResponse() (response *ReportTerrorismJobResultResponse) { + response = &ReportTerrorismJobResultResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_video_split_job_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_video_split_job_result.go new file mode 100644 index 0000000..09f9735 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/report_video_split_job_result.go @@ -0,0 +1,110 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReportVideoSplitJobResult invokes the mts.ReportVideoSplitJobResult API synchronously +// api document: https://help.aliyun.com/api/mts/reportvideosplitjobresult.html +func (client *Client) ReportVideoSplitJobResult(request *ReportVideoSplitJobResultRequest) (response *ReportVideoSplitJobResultResponse, err error) { + response = CreateReportVideoSplitJobResultResponse() + err = client.DoAction(request, response) + return +} + +// ReportVideoSplitJobResultWithChan invokes the mts.ReportVideoSplitJobResult API asynchronously +// api document: https://help.aliyun.com/api/mts/reportvideosplitjobresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReportVideoSplitJobResultWithChan(request *ReportVideoSplitJobResultRequest) (<-chan *ReportVideoSplitJobResultResponse, <-chan error) { + responseChan := make(chan *ReportVideoSplitJobResultResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReportVideoSplitJobResult(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReportVideoSplitJobResultWithCallback invokes the mts.ReportVideoSplitJobResult API asynchronously +// api document: https://help.aliyun.com/api/mts/reportvideosplitjobresult.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReportVideoSplitJobResultWithCallback(request *ReportVideoSplitJobResultRequest, callback func(response *ReportVideoSplitJobResultResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReportVideoSplitJobResultResponse + var err error + defer close(result) + response, err = client.ReportVideoSplitJobResult(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReportVideoSplitJobResultRequest is the request struct for api ReportVideoSplitJobResult +type ReportVideoSplitJobResultRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + JobId string `position:"Query" name:"JobId"` + Result string `position:"Query" name:"Result"` + Details string `position:"Query" name:"Details"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ReportVideoSplitJobResultResponse is the response struct for api ReportVideoSplitJobResult +type ReportVideoSplitJobResultResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateReportVideoSplitJobResultRequest creates a request to invoke ReportVideoSplitJobResult API +func CreateReportVideoSplitJobResultRequest() (request *ReportVideoSplitJobResultRequest) { + request = &ReportVideoSplitJobResultRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "ReportVideoSplitJobResult", "mts", "openAPI") + return +} + +// CreateReportVideoSplitJobResultResponse creates a response to parse from ReportVideoSplitJobResult response +func CreateReportVideoSplitJobResultResponse() (response *ReportVideoSplitJobResultResponse) { + response = &ReportVideoSplitJobResultResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/search_media.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/search_media.go new file mode 100644 index 0000000..5d80487 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/search_media.go @@ -0,0 +1,120 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SearchMedia invokes the mts.SearchMedia API synchronously +// api document: https://help.aliyun.com/api/mts/searchmedia.html +func (client *Client) SearchMedia(request *SearchMediaRequest) (response *SearchMediaResponse, err error) { + response = CreateSearchMediaResponse() + err = client.DoAction(request, response) + return +} + +// SearchMediaWithChan invokes the mts.SearchMedia API asynchronously +// api document: https://help.aliyun.com/api/mts/searchmedia.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SearchMediaWithChan(request *SearchMediaRequest) (<-chan *SearchMediaResponse, <-chan error) { + responseChan := make(chan *SearchMediaResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SearchMedia(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SearchMediaWithCallback invokes the mts.SearchMedia API asynchronously +// api document: https://help.aliyun.com/api/mts/searchmedia.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SearchMediaWithCallback(request *SearchMediaRequest, callback func(response *SearchMediaResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SearchMediaResponse + var err error + defer close(result) + response, err = client.SearchMedia(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SearchMediaRequest is the request struct for api SearchMedia +type SearchMediaRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + From string `position:"Query" name:"From"` + To string `position:"Query" name:"To"` + KeyWord string `position:"Query" name:"KeyWord"` + Title string `position:"Query" name:"Title"` + Description string `position:"Query" name:"Description"` + Tag string `position:"Query" name:"Tag"` + CateId string `position:"Query" name:"CateId"` + SortBy string `position:"Query" name:"SortBy"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SearchMediaResponse is the response struct for api SearchMedia +type SearchMediaResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalNum int `json:"TotalNum" xml:"TotalNum"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + MediaList MediaListInSearchMedia `json:"MediaList" xml:"MediaList"` +} + +// CreateSearchMediaRequest creates a request to invoke SearchMedia API +func CreateSearchMediaRequest() (request *SearchMediaRequest) { + request = &SearchMediaRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SearchMedia", "mts", "openAPI") + return +} + +// CreateSearchMediaResponse creates a response to parse from SearchMedia response +func CreateSearchMediaResponse() (response *SearchMediaResponse) { + response = &SearchMediaResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/search_media_workflow.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/search_media_workflow.go new file mode 100644 index 0000000..bc0cfa0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/search_media_workflow.go @@ -0,0 +1,113 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SearchMediaWorkflow invokes the mts.SearchMediaWorkflow API synchronously +// api document: https://help.aliyun.com/api/mts/searchmediaworkflow.html +func (client *Client) SearchMediaWorkflow(request *SearchMediaWorkflowRequest) (response *SearchMediaWorkflowResponse, err error) { + response = CreateSearchMediaWorkflowResponse() + err = client.DoAction(request, response) + return +} + +// SearchMediaWorkflowWithChan invokes the mts.SearchMediaWorkflow API asynchronously +// api document: https://help.aliyun.com/api/mts/searchmediaworkflow.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SearchMediaWorkflowWithChan(request *SearchMediaWorkflowRequest) (<-chan *SearchMediaWorkflowResponse, <-chan error) { + responseChan := make(chan *SearchMediaWorkflowResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SearchMediaWorkflow(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SearchMediaWorkflowWithCallback invokes the mts.SearchMediaWorkflow API asynchronously +// api document: https://help.aliyun.com/api/mts/searchmediaworkflow.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SearchMediaWorkflowWithCallback(request *SearchMediaWorkflowRequest, callback func(response *SearchMediaWorkflowResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SearchMediaWorkflowResponse + var err error + defer close(result) + response, err = client.SearchMediaWorkflow(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SearchMediaWorkflowRequest is the request struct for api SearchMediaWorkflow +type SearchMediaWorkflowRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + StateList string `position:"Query" name:"StateList"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SearchMediaWorkflowResponse is the response struct for api SearchMediaWorkflow +type SearchMediaWorkflowResponse 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"` + MediaWorkflowList MediaWorkflowListInSearchMediaWorkflow `json:"MediaWorkflowList" xml:"MediaWorkflowList"` +} + +// CreateSearchMediaWorkflowRequest creates a request to invoke SearchMediaWorkflow API +func CreateSearchMediaWorkflowRequest() (request *SearchMediaWorkflowRequest) { + request = &SearchMediaWorkflowRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SearchMediaWorkflow", "mts", "openAPI") + return +} + +// CreateSearchMediaWorkflowResponse creates a response to parse from SearchMediaWorkflow response +func CreateSearchMediaWorkflowResponse() (response *SearchMediaWorkflowResponse) { + response = &SearchMediaWorkflowResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/search_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/search_pipeline.go new file mode 100644 index 0000000..614801f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/search_pipeline.go @@ -0,0 +1,113 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SearchPipeline invokes the mts.SearchPipeline API synchronously +// api document: https://help.aliyun.com/api/mts/searchpipeline.html +func (client *Client) SearchPipeline(request *SearchPipelineRequest) (response *SearchPipelineResponse, err error) { + response = CreateSearchPipelineResponse() + err = client.DoAction(request, response) + return +} + +// SearchPipelineWithChan invokes the mts.SearchPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/searchpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SearchPipelineWithChan(request *SearchPipelineRequest) (<-chan *SearchPipelineResponse, <-chan error) { + responseChan := make(chan *SearchPipelineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SearchPipeline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SearchPipelineWithCallback invokes the mts.SearchPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/searchpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SearchPipelineWithCallback(request *SearchPipelineRequest, callback func(response *SearchPipelineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SearchPipelineResponse + var err error + defer close(result) + response, err = client.SearchPipeline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SearchPipelineRequest is the request struct for api SearchPipeline +type SearchPipelineRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + State string `position:"Query" name:"State"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SearchPipelineResponse is the response struct for api SearchPipeline +type SearchPipelineResponse 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"` + PipelineList PipelineListInSearchPipeline `json:"PipelineList" xml:"PipelineList"` +} + +// CreateSearchPipelineRequest creates a request to invoke SearchPipeline API +func CreateSearchPipelineRequest() (request *SearchPipelineRequest) { + request = &SearchPipelineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SearchPipeline", "mts", "openAPI") + return +} + +// CreateSearchPipelineResponse creates a response to parse from SearchPipeline response +func CreateSearchPipelineResponse() (response *SearchPipelineResponse) { + response = &SearchPipelineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/search_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/search_template.go new file mode 100644 index 0000000..f787b48 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/search_template.go @@ -0,0 +1,113 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SearchTemplate invokes the mts.SearchTemplate API synchronously +// api document: https://help.aliyun.com/api/mts/searchtemplate.html +func (client *Client) SearchTemplate(request *SearchTemplateRequest) (response *SearchTemplateResponse, err error) { + response = CreateSearchTemplateResponse() + err = client.DoAction(request, response) + return +} + +// SearchTemplateWithChan invokes the mts.SearchTemplate API asynchronously +// api document: https://help.aliyun.com/api/mts/searchtemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SearchTemplateWithChan(request *SearchTemplateRequest) (<-chan *SearchTemplateResponse, <-chan error) { + responseChan := make(chan *SearchTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SearchTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SearchTemplateWithCallback invokes the mts.SearchTemplate API asynchronously +// api document: https://help.aliyun.com/api/mts/searchtemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SearchTemplateWithCallback(request *SearchTemplateRequest, callback func(response *SearchTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SearchTemplateResponse + var err error + defer close(result) + response, err = client.SearchTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SearchTemplateRequest is the request struct for api SearchTemplate +type SearchTemplateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + State string `position:"Query" name:"State"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SearchTemplateResponse is the response struct for api SearchTemplate +type SearchTemplateResponse 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"` + TemplateList TemplateListInSearchTemplate `json:"TemplateList" xml:"TemplateList"` +} + +// CreateSearchTemplateRequest creates a request to invoke SearchTemplate API +func CreateSearchTemplateRequest() (request *SearchTemplateRequest) { + request = &SearchTemplateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SearchTemplate", "mts", "openAPI") + return +} + +// CreateSearchTemplateResponse creates a response to parse from SearchTemplate response +func CreateSearchTemplateResponse() (response *SearchTemplateResponse) { + response = &SearchTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/search_water_mark_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/search_water_mark_template.go new file mode 100644 index 0000000..447215b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/search_water_mark_template.go @@ -0,0 +1,113 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SearchWaterMarkTemplate invokes the mts.SearchWaterMarkTemplate API synchronously +// api document: https://help.aliyun.com/api/mts/searchwatermarktemplate.html +func (client *Client) SearchWaterMarkTemplate(request *SearchWaterMarkTemplateRequest) (response *SearchWaterMarkTemplateResponse, err error) { + response = CreateSearchWaterMarkTemplateResponse() + err = client.DoAction(request, response) + return +} + +// SearchWaterMarkTemplateWithChan invokes the mts.SearchWaterMarkTemplate API asynchronously +// api document: https://help.aliyun.com/api/mts/searchwatermarktemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SearchWaterMarkTemplateWithChan(request *SearchWaterMarkTemplateRequest) (<-chan *SearchWaterMarkTemplateResponse, <-chan error) { + responseChan := make(chan *SearchWaterMarkTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SearchWaterMarkTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SearchWaterMarkTemplateWithCallback invokes the mts.SearchWaterMarkTemplate API asynchronously +// api document: https://help.aliyun.com/api/mts/searchwatermarktemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SearchWaterMarkTemplateWithCallback(request *SearchWaterMarkTemplateRequest, callback func(response *SearchWaterMarkTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SearchWaterMarkTemplateResponse + var err error + defer close(result) + response, err = client.SearchWaterMarkTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SearchWaterMarkTemplateRequest is the request struct for api SearchWaterMarkTemplate +type SearchWaterMarkTemplateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + State string `position:"Query" name:"State"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SearchWaterMarkTemplateResponse is the response struct for api SearchWaterMarkTemplate +type SearchWaterMarkTemplateResponse 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"` + WaterMarkTemplateList WaterMarkTemplateListInSearchWaterMarkTemplate `json:"WaterMarkTemplateList" xml:"WaterMarkTemplateList"` +} + +// CreateSearchWaterMarkTemplateRequest creates a request to invoke SearchWaterMarkTemplate API +func CreateSearchWaterMarkTemplateRequest() (request *SearchWaterMarkTemplateRequest) { + request = &SearchWaterMarkTemplateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SearchWaterMarkTemplate", "mts", "openAPI") + return +} + +// CreateSearchWaterMarkTemplateResponse creates a response to parse from SearchWaterMarkTemplate response +func CreateSearchWaterMarkTemplateResponse() (response *SearchWaterMarkTemplateResponse) { + response = &SearchWaterMarkTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/set_auth_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/set_auth_config.go new file mode 100644 index 0000000..7338476 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/set_auth_config.go @@ -0,0 +1,110 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetAuthConfig invokes the mts.SetAuthConfig API synchronously +// api document: https://help.aliyun.com/api/mts/setauthconfig.html +func (client *Client) SetAuthConfig(request *SetAuthConfigRequest) (response *SetAuthConfigResponse, err error) { + response = CreateSetAuthConfigResponse() + err = client.DoAction(request, response) + return +} + +// SetAuthConfigWithChan invokes the mts.SetAuthConfig API asynchronously +// api document: https://help.aliyun.com/api/mts/setauthconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetAuthConfigWithChan(request *SetAuthConfigRequest) (<-chan *SetAuthConfigResponse, <-chan error) { + responseChan := make(chan *SetAuthConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetAuthConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetAuthConfigWithCallback invokes the mts.SetAuthConfig API asynchronously +// api document: https://help.aliyun.com/api/mts/setauthconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetAuthConfigWithCallback(request *SetAuthConfigRequest, callback func(response *SetAuthConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetAuthConfigResponse + var err error + defer close(result) + response, err = client.SetAuthConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetAuthConfigRequest is the request struct for api SetAuthConfig +type SetAuthConfigRequest struct { + *requests.RpcRequest + OwnerId string `position:"Query" name:"OwnerId"` + ResourceOwnerId string `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Key1 string `position:"Query" name:"Key1"` + Key2 string `position:"Query" name:"Key2"` +} + +// SetAuthConfigResponse is the response struct for api SetAuthConfig +type SetAuthConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Key1 string `json:"Key1" xml:"Key1"` + Key2 string `json:"Key2" xml:"Key2"` +} + +// CreateSetAuthConfigRequest creates a request to invoke SetAuthConfig API +func CreateSetAuthConfigRequest() (request *SetAuthConfigRequest) { + request = &SetAuthConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SetAuthConfig", "mts", "openAPI") + return +} + +// CreateSetAuthConfigResponse creates a response to parse from SetAuthConfig response +func CreateSetAuthConfigResponse() (response *SetAuthConfigResponse) { + response = &SetAuthConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_activity.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_activity.go new file mode 100644 index 0000000..3fb2279 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_activity.go @@ -0,0 +1,29 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Activity is a nested struct in mts response +type Activity struct { + Type string `json:"Type" xml:"Type"` + Message string `json:"Message" xml:"Message"` + Name string `json:"Name" xml:"Name"` + StartTime string `json:"StartTime" xml:"StartTime"` + State string `json:"State" xml:"State"` + Code string `json:"Code" xml:"Code"` + JobId string `json:"JobId" xml:"JobId"` + EndTime string `json:"EndTime" xml:"EndTime"` + MNSMessageResult MNSMessageResult `json:"MNSMessageResult" xml:"MNSMessageResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_activity_list_in_list_media_workflow_executions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_activity_list_in_list_media_workflow_executions.go new file mode 100644 index 0000000..0d8698b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_activity_list_in_list_media_workflow_executions.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ActivityListInListMediaWorkflowExecutions is a nested struct in mts response +type ActivityListInListMediaWorkflowExecutions struct { + Activity []Activity `json:"Activity" xml:"Activity"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_activity_list_in_query_media_workflow_execution_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_activity_list_in_query_media_workflow_execution_list.go new file mode 100644 index 0000000..4eea38e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_activity_list_in_query_media_workflow_execution_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ActivityListInQueryMediaWorkflowExecutionList is a nested struct in mts response +type ActivityListInQueryMediaWorkflowExecutionList struct { + Activity []Activity `json:"Activity" xml:"Activity"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_analysis_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_analysis_config.go new file mode 100644 index 0000000..7d70ea8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_analysis_config.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AnalysisConfig is a nested struct in mts response +type AnalysisConfig struct { + QualityControl QualityControl `json:"QualityControl" xml:"QualityControl"` + PropertiesControl PropertiesControl `json:"PropertiesControl" xml:"PropertiesControl"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_analysis_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_analysis_job.go new file mode 100644 index 0000000..15a5443 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_analysis_job.go @@ -0,0 +1,33 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AnalysisJob is a nested struct in mts response +type AnalysisJob struct { + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Message string `json:"Message" xml:"Message"` + PipelineId string `json:"PipelineId" xml:"PipelineId"` + State string `json:"State" xml:"State"` + Code string `json:"Code" xml:"Code"` + UserData string `json:"UserData" xml:"UserData"` + Priority string `json:"Priority" xml:"Priority"` + Id string `json:"Id" xml:"Id"` + Percent int `json:"Percent" xml:"Percent"` + MNSMessageResult MNSMessageResult `json:"MNSMessageResult" xml:"MNSMessageResult"` + InputFile InputFile `json:"InputFile" xml:"InputFile"` + AnalysisConfig AnalysisConfig `json:"AnalysisConfig" xml:"AnalysisConfig"` + TemplateList TemplateListInQueryAnalysisJobList `json:"TemplateList" xml:"TemplateList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_analysis_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_analysis_job_list.go new file mode 100644 index 0000000..4f76582 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_analysis_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AnalysisJobList is a nested struct in mts response +type AnalysisJobList struct { + AnalysisJob []AnalysisJob `json:"AnalysisJob" xml:"AnalysisJob"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_annotation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_annotation.go new file mode 100644 index 0000000..d89feb1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_annotation.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Annotation is a nested struct in mts response +type Annotation struct { + Label string `json:"Label" xml:"Label"` + Score string `json:"Score" xml:"Score"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_annotation_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_annotation_job.go new file mode 100644 index 0000000..ff05e87 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_annotation_job.go @@ -0,0 +1,29 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AnnotationJob is a nested struct in mts response +type AnnotationJob struct { + Id string `json:"Id" xml:"Id"` + UserData string `json:"UserData" xml:"UserData"` + PipelineId string `json:"PipelineId" xml:"PipelineId"` + State string `json:"State" xml:"State"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Input Input `json:"Input" xml:"Input"` + VideoAnnotationResult VideoAnnotationResult `json:"VideoAnnotationResult" xml:"VideoAnnotationResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_annotation_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_annotation_job_list.go new file mode 100644 index 0000000..07318c0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_annotation_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AnnotationJobList is a nested struct in mts response +type AnnotationJobList struct { + AnnotationJob []AnnotationJob `json:"AnnotationJob" xml:"AnnotationJob"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_annotations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_annotations.go new file mode 100644 index 0000000..b4f9fd5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_annotations.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Annotations is a nested struct in mts response +type Annotations struct { + Annotation []Annotation `json:"Annotation" xml:"Annotation"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_asr_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_asr_config.go new file mode 100644 index 0000000..ba6cd6f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_asr_config.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AsrConfig is a nested struct in mts response +type AsrConfig struct { + Scene string `json:"Scene" xml:"Scene"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_asr_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_asr_result.go new file mode 100644 index 0000000..d0bc7e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_asr_result.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AsrResult is a nested struct in mts response +type AsrResult struct { + Duration string `json:"Duration" xml:"Duration"` + AsrTextList AsrTextList `json:"AsrTextList" xml:"AsrTextList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_asr_text.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_asr_text.go new file mode 100644 index 0000000..d0e72ca --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_asr_text.go @@ -0,0 +1,25 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AsrText is a nested struct in mts response +type AsrText struct { + StartTime int `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + ChannelId string `json:"ChannelId" xml:"ChannelId"` + SpeechRate string `json:"SpeechRate" xml:"SpeechRate"` + Text string `json:"Text" xml:"Text"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_asr_text_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_asr_text_list.go new file mode 100644 index 0000000..a13661e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_asr_text_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AsrTextList is a nested struct in mts response +type AsrTextList struct { + AsrText []AsrText `json:"AsrText" xml:"AsrText"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio.go new file mode 100644 index 0000000..baed6a5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio.go @@ -0,0 +1,28 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Audio is a nested struct in mts response +type Audio struct { + Remove string `json:"Remove" xml:"Remove"` + Samplerate string `json:"Samplerate" xml:"Samplerate"` + Channels string `json:"Channels" xml:"Channels"` + Qscale string `json:"Qscale" xml:"Qscale"` + Profile string `json:"Profile" xml:"Profile"` + Codec string `json:"Codec" xml:"Codec"` + Bitrate string `json:"Bitrate" xml:"Bitrate"` + Volume Volume `json:"Volume" xml:"Volume"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream.go new file mode 100644 index 0000000..6b1f90a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream.go @@ -0,0 +1,36 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AudioStream is a nested struct in mts response +type AudioStream struct { + Timebase string `json:"Timebase" xml:"Timebase"` + CodecTimeBase string `json:"CodecTimeBase" xml:"CodecTimeBase"` + Samplerate string `json:"Samplerate" xml:"Samplerate"` + CodecLongName string `json:"CodecLongName" xml:"CodecLongName"` + Channels string `json:"Channels" xml:"Channels"` + StartTime string `json:"StartTime" xml:"StartTime"` + Index string `json:"Index" xml:"Index"` + NumFrames string `json:"NumFrames" xml:"NumFrames"` + SampleFmt string `json:"SampleFmt" xml:"SampleFmt"` + Bitrate string `json:"Bitrate" xml:"Bitrate"` + ChannelLayout string `json:"ChannelLayout" xml:"ChannelLayout"` + CodecName string `json:"CodecName" xml:"CodecName"` + Duration string `json:"Duration" xml:"Duration"` + CodecTagString string `json:"CodecTagString" xml:"CodecTagString"` + Lang string `json:"Lang" xml:"Lang"` + CodecTag string `json:"CodecTag" xml:"CodecTag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_list_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_list_job.go new file mode 100644 index 0000000..2eb05a3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_list_job.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AudioStreamListInListJob is a nested struct in mts response +type AudioStreamListInListJob struct { + AudioStream []AudioStream `json:"AudioStream" xml:"AudioStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_query_editing_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_query_editing_job_list.go new file mode 100644 index 0000000..8f4f190 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_query_editing_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AudioStreamListInQueryEditingJobList is a nested struct in mts response +type AudioStreamListInQueryEditingJobList struct { + AudioStream []AudioStream `json:"AudioStream" xml:"AudioStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_query_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_query_job_list.go new file mode 100644 index 0000000..05d5af6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_query_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AudioStreamListInQueryJobList is a nested struct in mts response +type AudioStreamListInQueryJobList struct { + AudioStream []AudioStream `json:"AudioStream" xml:"AudioStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_query_media_info_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_query_media_info_job_list.go new file mode 100644 index 0000000..640c926 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_query_media_info_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AudioStreamListInQueryMediaInfoJobList is a nested struct in mts response +type AudioStreamListInQueryMediaInfoJobList struct { + AudioStream []AudioStream `json:"AudioStream" xml:"AudioStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_query_media_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_query_media_list.go new file mode 100644 index 0000000..86b5014 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_query_media_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AudioStreamListInQueryMediaList is a nested struct in mts response +type AudioStreamListInQueryMediaList struct { + AudioStream []AudioStream `json:"AudioStream" xml:"AudioStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_query_media_list_by_url.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_query_media_list_by_url.go new file mode 100644 index 0000000..7e40466 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_query_media_list_by_url.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AudioStreamListInQueryMediaListByURL is a nested struct in mts response +type AudioStreamListInQueryMediaListByURL struct { + AudioStream []AudioStream `json:"AudioStream" xml:"AudioStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_submit_editing_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_submit_editing_jobs.go new file mode 100644 index 0000000..923b05f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_submit_editing_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AudioStreamListInSubmitEditingJobs is a nested struct in mts response +type AudioStreamListInSubmitEditingJobs struct { + AudioStream []AudioStream `json:"AudioStream" xml:"AudioStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_submit_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_submit_jobs.go new file mode 100644 index 0000000..7c01d0d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_submit_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AudioStreamListInSubmitJobs is a nested struct in mts response +type AudioStreamListInSubmitJobs struct { + AudioStream []AudioStream `json:"AudioStream" xml:"AudioStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_submit_media_info_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_submit_media_info_job.go new file mode 100644 index 0000000..46e37ca --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_audio_stream_list_in_submit_media_info_job.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AudioStreamListInSubmitMediaInfoJob is a nested struct in mts response +type AudioStreamListInSubmitMediaInfoJob struct { + AudioStream []AudioStream `json:"AudioStream" xml:"AudioStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_bitrate_bnd.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_bitrate_bnd.go new file mode 100644 index 0000000..94d62a4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_bitrate_bnd.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BitrateBnd is a nested struct in mts response +type BitrateBnd struct { + Min string `json:"Min" xml:"Min"` + Max string `json:"Max" xml:"Max"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_category.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_category.go new file mode 100644 index 0000000..19aa775 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_category.go @@ -0,0 +1,24 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Category is a nested struct in mts response +type Category struct { + Level string `json:"Level" xml:"Level"` + CateId string `json:"CateId" xml:"CateId"` + CateName string `json:"CateName" xml:"CateName"` + ParentId string `json:"ParentId" xml:"ParentId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_category_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_category_list.go new file mode 100644 index 0000000..7218277 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_category_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CategoryList is a nested struct in mts response +type CategoryList struct { + Category []Category `json:"Category" xml:"Category"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_celebrities.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_celebrities.go new file mode 100644 index 0000000..67e53de --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_celebrities.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Celebrities is a nested struct in mts response +type Celebrities struct { + Celebrity []Celebrity `json:"Celebrity" xml:"Celebrity"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_celebrity.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_celebrity.go new file mode 100644 index 0000000..9595a14 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_celebrity.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Celebrity is a nested struct in mts response +type Celebrity struct { + Name string `json:"Name" xml:"Name"` + Score string `json:"Score" xml:"Score"` + Target string `json:"Target" xml:"Target"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_censor_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_censor_config.go new file mode 100644 index 0000000..0cbed1d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_censor_config.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CensorConfig is a nested struct in mts response +type CensorConfig struct { + Interval string `json:"Interval" xml:"Interval"` + BizType string `json:"BizType" xml:"BizType"` + OutputFile OutputFile `json:"OutputFile" xml:"OutputFile"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_censor_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_censor_job.go new file mode 100644 index 0000000..2e31b63 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_censor_job.go @@ -0,0 +1,31 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CensorJob is a nested struct in mts response +type CensorJob struct { + Id string `json:"Id" xml:"Id"` + UserData string `json:"UserData" xml:"UserData"` + PipelineId string `json:"PipelineId" xml:"PipelineId"` + State string `json:"State" xml:"State"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Input Input `json:"Input" xml:"Input"` + CensorConfig CensorConfig `json:"CensorConfig" xml:"CensorConfig"` + CensorPornResult CensorPornResult `json:"CensorPornResult" xml:"CensorPornResult"` + CensorTerrorismResult CensorTerrorismResult `json:"CensorTerrorismResult" xml:"CensorTerrorismResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_censor_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_censor_job_list.go new file mode 100644 index 0000000..39628cc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_censor_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CensorJobList is a nested struct in mts response +type CensorJobList struct { + CensorJob []CensorJob `json:"CensorJob" xml:"CensorJob"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_censor_porn_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_censor_porn_result.go new file mode 100644 index 0000000..52b51cf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_censor_porn_result.go @@ -0,0 +1,26 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CensorPornResult is a nested struct in mts response +type CensorPornResult struct { + Label string `json:"Label" xml:"Label"` + Suggestion string `json:"Suggestion" xml:"Suggestion"` + AverageScore string `json:"AverageScore" xml:"AverageScore"` + MaxScore string `json:"MaxScore" xml:"MaxScore"` + PornCounterList PornCounterListInQueryCensorJobList `json:"PornCounterList" xml:"PornCounterList"` + PornTopList PornTopListInQueryCensorJobList `json:"PornTopList" xml:"PornTopList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_censor_terrorism_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_censor_terrorism_result.go new file mode 100644 index 0000000..78e7e79 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_censor_terrorism_result.go @@ -0,0 +1,26 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CensorTerrorismResult is a nested struct in mts response +type CensorTerrorismResult struct { + Label string `json:"Label" xml:"Label"` + Suggestion string `json:"Suggestion" xml:"Suggestion"` + AverageScore string `json:"AverageScore" xml:"AverageScore"` + MaxScore string `json:"MaxScore" xml:"MaxScore"` + TerrorismTopList TerrorismTopListInQueryTerrorismJobList `json:"TerrorismTopList" xml:"TerrorismTopList"` + TerrorismCounterList TerrorismCounterListInQueryTerrorismJobList `json:"TerrorismCounterList" xml:"TerrorismCounterList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clip.go new file mode 100644 index 0000000..7982419 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clip.go @@ -0,0 +1,31 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Clip is a nested struct in mts response +type Clip struct { + SourceType string `json:"SourceType" xml:"SourceType"` + Type string `json:"Type" xml:"Type"` + Id string `json:"Id" xml:"Id"` + SourceStrmMap string `json:"SourceStrmMap" xml:"SourceStrmMap"` + ClipID string `json:"clipID" xml:"clipID"` + In string `json:"In" xml:"In"` + SourceID string `json:"SourceID" xml:"SourceID"` + Out string `json:"Out" xml:"Out"` + TimeSpan TimeSpan `json:"TimeSpan" xml:"TimeSpan"` + ClipsConfig ClipsConfig `json:"ClipsConfig" xml:"ClipsConfig"` + Effects EffectsInQueryEditingJobList `json:"Effects" xml:"Effects"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clip_list_in_query_editing_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clip_list_in_query_editing_job_list.go new file mode 100644 index 0000000..87d89da --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clip_list_in_query_editing_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ClipListInQueryEditingJobList is a nested struct in mts response +type ClipListInQueryEditingJobList struct { + Clip []Clip `json:"Clip" xml:"Clip"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clip_list_in_submit_editing_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clip_list_in_submit_editing_jobs.go new file mode 100644 index 0000000..b8d7037 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clip_list_in_submit_editing_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ClipListInSubmitEditingJobs is a nested struct in mts response +type ClipListInSubmitEditingJobs struct { + Clip []Clip `json:"Clip" xml:"Clip"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clips_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clips_config.go new file mode 100644 index 0000000..ca4369d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clips_config.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ClipsConfig is a nested struct in mts response +type ClipsConfig struct { + ClipsConfigVideo ClipsConfigVideo `json:"ClipsConfigVideo" xml:"ClipsConfigVideo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clips_config_video.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clips_config_video.go new file mode 100644 index 0000000..7800f4b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clips_config_video.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ClipsConfigVideo is a nested struct in mts response +type ClipsConfigVideo struct { + L string `json:"L" xml:"L"` + T string `json:"T" xml:"T"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clips_in_query_editing_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clips_in_query_editing_job_list.go new file mode 100644 index 0000000..628bdfd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clips_in_query_editing_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ClipsInQueryEditingJobList is a nested struct in mts response +type ClipsInQueryEditingJobList struct { + Clip []Clip `json:"Clip" xml:"Clip"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clips_in_submit_editing_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clips_in_submit_editing_jobs.go new file mode 100644 index 0000000..d5968f9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_clips_in_submit_editing_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ClipsInSubmitEditingJobs is a nested struct in mts response +type ClipsInSubmitEditingJobs struct { + Clip []Clip `json:"Clip" xml:"Clip"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_container.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_container.go new file mode 100644 index 0000000..a69037f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_container.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Container is a nested struct in mts response +type Container struct { + Format string `json:"Format" xml:"Format"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_counter.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_counter.go new file mode 100644 index 0000000..6e39752 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_counter.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Counter is a nested struct in mts response +type Counter struct { + Label string `json:"Label" xml:"Label"` + Count int `json:"Count" xml:"Count"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_cover_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_cover_config.go new file mode 100644 index 0000000..9bbb1c9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_cover_config.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CoverConfig is a nested struct in mts response +type CoverConfig struct { + OutputFile OutputFile `json:"OutputFile" xml:"OutputFile"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_cover_image.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_cover_image.go new file mode 100644 index 0000000..ad1f464 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_cover_image.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CoverImage is a nested struct in mts response +type CoverImage struct { + Score string `json:"Score" xml:"Score"` + Url string `json:"Url" xml:"Url"` + Time string `json:"Time" xml:"Time"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_cover_image_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_cover_image_list.go new file mode 100644 index 0000000..368c686 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_cover_image_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CoverImageList is a nested struct in mts response +type CoverImageList struct { + CoverImage []CoverImage `json:"CoverImage" xml:"CoverImage"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_cover_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_cover_job.go new file mode 100644 index 0000000..2dd7aac --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_cover_job.go @@ -0,0 +1,30 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CoverJob is a nested struct in mts response +type CoverJob struct { + Id string `json:"Id" xml:"Id"` + UserData string `json:"UserData" xml:"UserData"` + PipelineId string `json:"PipelineId" xml:"PipelineId"` + State string `json:"State" xml:"State"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Input Input `json:"Input" xml:"Input"` + CoverConfig CoverConfig `json:"CoverConfig" xml:"CoverConfig"` + CoverImageList CoverImageList `json:"CoverImageList" xml:"CoverImageList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_cover_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_cover_job_list.go new file mode 100644 index 0000000..c946327 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_cover_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CoverJobList is a nested struct in mts response +type CoverJobList struct { + CoverJob []CoverJob `json:"CoverJob" xml:"CoverJob"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_crop.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_crop.go new file mode 100644 index 0000000..b1d612b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_crop.go @@ -0,0 +1,25 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Crop is a nested struct in mts response +type Crop struct { + Height string `json:"Height" xml:"Height"` + Width string `json:"Width" xml:"Width"` + Left string `json:"Left" xml:"Left"` + Top string `json:"Top" xml:"Top"` + Mode string `json:"Mode" xml:"Mode"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_digi_water_mark.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_digi_water_mark.go new file mode 100644 index 0000000..4753325 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_digi_water_mark.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DigiWaterMark is a nested struct in mts response +type DigiWaterMark struct { + Type string `json:"Type" xml:"Type"` + Alpha string `json:"Alpha" xml:"Alpha"` + InputFile InputFile `json:"InputFile" xml:"InputFile"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_duplication.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_duplication.go new file mode 100644 index 0000000..6931ea4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_duplication.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Duplication is a nested struct in mts response +type Duplication struct { + Start string `json:"Start" xml:"Start"` + Duration string `json:"Duration" xml:"Duration"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_editing.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_editing.go new file mode 100644 index 0000000..12a8256 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_editing.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Editing is a nested struct in mts response +type Editing struct { + Timeline Timeline `json:"Timeline" xml:"Timeline"` + ClipList ClipListInQueryEditingJobList `json:"ClipList" xml:"ClipList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_editing_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_editing_config.go new file mode 100644 index 0000000..a161c3d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_editing_config.go @@ -0,0 +1,45 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EditingConfig is a nested struct in mts response +type EditingConfig struct { + UserData string `json:"UserData" xml:"UserData"` + Priority string `json:"Priority" xml:"Priority"` + TemplateId string `json:"TemplateId" xml:"TemplateId"` + MergeConfigUrl string `json:"MergeConfigUrl" xml:"MergeConfigUrl"` + Rotate string `json:"Rotate" xml:"Rotate"` + DeWatermark string `json:"DeWatermark" xml:"DeWatermark"` + WaterMarkConfigUrl string `json:"WaterMarkConfigUrl" xml:"WaterMarkConfigUrl"` + VideoStreamMap string `json:"VideoStreamMap" xml:"VideoStreamMap"` + AudioStreamMap string `json:"AudioStreamMap" xml:"AudioStreamMap"` + Editing Editing `json:"Editing" xml:"Editing"` + Encryption Encryption `json:"Encryption" xml:"Encryption"` + MuxConfig MuxConfig `json:"MuxConfig" xml:"MuxConfig"` + OutputFile OutputFile `json:"OutputFile" xml:"OutputFile"` + Container Container `json:"Container" xml:"Container"` + Properties Properties `json:"Properties" xml:"Properties"` + Clip Clip `json:"Clip" xml:"Clip"` + SuperReso SuperReso `json:"SuperReso" xml:"SuperReso"` + Audio Audio `json:"Audio" xml:"Audio"` + SubtitleConfig SubtitleConfig `json:"SubtitleConfig" xml:"SubtitleConfig"` + TransConfig TransConfig `json:"TransConfig" xml:"TransConfig"` + DigiWaterMark DigiWaterMark `json:"DigiWaterMark" xml:"DigiWaterMark"` + Video Video `json:"Video" xml:"Video"` + M3U8NonStandardSupport M3U8NonStandardSupport `json:"M3U8NonStandardSupport" xml:"M3U8NonStandardSupport"` + MergeList MergeListInQueryEditingJobList `json:"MergeList" xml:"MergeList"` + WaterMarkList WaterMarkListInQueryEditingJobList `json:"WaterMarkList" xml:"WaterMarkList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_editing_input.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_editing_input.go new file mode 100644 index 0000000..ab69365 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_editing_input.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EditingInput is a nested struct in mts response +type EditingInput struct { + Id string `json:"Id" xml:"Id"` + InputConfig InputConfig `json:"InputConfig" xml:"InputConfig"` + InputFile InputFile `json:"InputFile" xml:"InputFile"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_editing_inputs_in_query_editing_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_editing_inputs_in_query_editing_job_list.go new file mode 100644 index 0000000..b42fe7f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_editing_inputs_in_query_editing_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EditingInputsInQueryEditingJobList is a nested struct in mts response +type EditingInputsInQueryEditingJobList struct { + EditingInput []EditingInput `json:"EditingInput" xml:"EditingInput"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_editing_inputs_in_submit_editing_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_editing_inputs_in_submit_editing_jobs.go new file mode 100644 index 0000000..f1aefc1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_editing_inputs_in_submit_editing_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EditingInputsInSubmitEditingJobs is a nested struct in mts response +type EditingInputsInSubmitEditingJobs struct { + EditingInput []EditingInput `json:"EditingInput" xml:"EditingInput"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_effect.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_effect.go new file mode 100644 index 0000000..06236ac --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_effect.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Effect is a nested struct in mts response +type Effect struct { + EffectConfig string `json:"EffectConfig" xml:"EffectConfig"` + Effect string `json:"Effect" xml:"Effect"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_effects_in_query_editing_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_effects_in_query_editing_job_list.go new file mode 100644 index 0000000..a9447e0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_effects_in_query_editing_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EffectsInQueryEditingJobList is a nested struct in mts response +type EffectsInQueryEditingJobList struct { + Effect []Effect `json:"Effect" xml:"Effect"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_effects_in_submit_editing_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_effects_in_submit_editing_jobs.go new file mode 100644 index 0000000..1484e06 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_effects_in_submit_editing_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EffectsInSubmitEditingJobs is a nested struct in mts response +type EffectsInSubmitEditingJobs struct { + Effect []Effect `json:"Effect" xml:"Effect"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_encryption.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_encryption.go new file mode 100644 index 0000000..465835c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_encryption.go @@ -0,0 +1,26 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Encryption is a nested struct in mts response +type Encryption struct { + Key string `json:"Key" xml:"Key"` + Type string `json:"Type" xml:"Type"` + Id string `json:"Id" xml:"Id"` + SkipCnt string `json:"SkipCnt" xml:"SkipCnt"` + KeyType string `json:"KeyType" xml:"KeyType"` + KeyUri string `json:"KeyUri" xml:"KeyUri"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle.go new file mode 100644 index 0000000..b2c9d2e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ExtSubtitle is a nested struct in mts response +type ExtSubtitle struct { + FontName string `json:"FontName" xml:"FontName"` + CharEnc string `json:"CharEnc" xml:"CharEnc"` + Input Input `json:"Input" xml:"Input"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle_list_in_list_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle_list_in_list_job.go new file mode 100644 index 0000000..1ab3b99 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle_list_in_list_job.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ExtSubtitleListInListJob is a nested struct in mts response +type ExtSubtitleListInListJob struct { + ExtSubtitle []ExtSubtitle `json:"ExtSubtitle" xml:"ExtSubtitle"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle_list_in_query_editing_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle_list_in_query_editing_job_list.go new file mode 100644 index 0000000..8c4b220 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle_list_in_query_editing_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ExtSubtitleListInQueryEditingJobList is a nested struct in mts response +type ExtSubtitleListInQueryEditingJobList struct { + ExtSubtitle []ExtSubtitle `json:"ExtSubtitle" xml:"ExtSubtitle"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle_list_in_query_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle_list_in_query_job_list.go new file mode 100644 index 0000000..bebdfcd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle_list_in_query_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ExtSubtitleListInQueryJobList is a nested struct in mts response +type ExtSubtitleListInQueryJobList struct { + ExtSubtitle []ExtSubtitle `json:"ExtSubtitle" xml:"ExtSubtitle"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle_list_in_submit_editing_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle_list_in_submit_editing_jobs.go new file mode 100644 index 0000000..002e9d4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle_list_in_submit_editing_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ExtSubtitleListInSubmitEditingJobs is a nested struct in mts response +type ExtSubtitleListInSubmitEditingJobs struct { + ExtSubtitle []ExtSubtitle `json:"ExtSubtitle" xml:"ExtSubtitle"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle_list_in_submit_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle_list_in_submit_jobs.go new file mode 100644 index 0000000..26426fd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ext_subtitle_list_in_submit_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ExtSubtitleListInSubmitJobs is a nested struct in mts response +type ExtSubtitleListInSubmitJobs struct { + ExtSubtitle []ExtSubtitle `json:"ExtSubtitle" xml:"ExtSubtitle"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_face.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_face.go new file mode 100644 index 0000000..9e5713c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_face.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Face is a nested struct in mts response +type Face struct { + Name string `json:"Name" xml:"Name"` + Score string `json:"Score" xml:"Score"` + Target string `json:"Target" xml:"Target"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_facerecog.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_facerecog.go new file mode 100644 index 0000000..1ec7250 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_facerecog.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Facerecog is a nested struct in mts response +type Facerecog struct { + Time string `json:"Time" xml:"Time"` + Faces Faces `json:"Faces" xml:"Faces"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_facerecog_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_facerecog_job.go new file mode 100644 index 0000000..18e083c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_facerecog_job.go @@ -0,0 +1,29 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FacerecogJob is a nested struct in mts response +type FacerecogJob struct { + Id string `json:"Id" xml:"Id"` + UserData string `json:"UserData" xml:"UserData"` + PipelineId string `json:"PipelineId" xml:"PipelineId"` + State string `json:"State" xml:"State"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Input Input `json:"Input" xml:"Input"` + VideoFacerecogResult VideoFacerecogResult `json:"VideoFacerecogResult" xml:"VideoFacerecogResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_facerecog_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_facerecog_job_list.go new file mode 100644 index 0000000..c10cf74 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_facerecog_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FacerecogJobList is a nested struct in mts response +type FacerecogJobList struct { + FacerecogJob []FacerecogJob `json:"FacerecogJob" xml:"FacerecogJob"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_facerecogs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_facerecogs.go new file mode 100644 index 0000000..3bddb77 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_facerecogs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Facerecogs is a nested struct in mts response +type Facerecogs struct { + Facerecog []Facerecog `json:"Facerecog" xml:"Facerecog"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_faces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_faces.go new file mode 100644 index 0000000..ae21652 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_faces.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Faces is a nested struct in mts response +type Faces struct { + Face []Face `json:"Face" xml:"Face"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_failed_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_failed_domains.go new file mode 100644 index 0000000..c84529d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_failed_domains.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailedDomains is a nested struct in mts response +type FailedDomains struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_failed_image.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_failed_image.go new file mode 100644 index 0000000..c06b6f2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_failed_image.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailedImage is a nested struct in mts response +type FailedImage struct { + Code string `json:"Code" xml:"Code"` + Success string `json:"Success" xml:"Success"` + ImageFile ImageFile `json:"ImageFile" xml:"ImageFile"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_failed_images.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_failed_images.go new file mode 100644 index 0000000..0aab9ea --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_failed_images.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailedImages is a nested struct in mts response +type FailedImages struct { + FailedImage []FailedImage `json:"FailedImage" xml:"FailedImage"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_file.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_file.go new file mode 100644 index 0000000..b5d276a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_file.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// File is a nested struct in mts response +type File struct { + URL string `json:"URL" xml:"URL"` + State string `json:"State" xml:"State"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_format.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_format.go new file mode 100644 index 0000000..d08ed93 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_format.go @@ -0,0 +1,28 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Format is a nested struct in mts response +type Format struct { + FormatLongName string `json:"FormatLongName" xml:"FormatLongName"` + NumPrograms string `json:"NumPrograms" xml:"NumPrograms"` + NumStreams string `json:"NumStreams" xml:"NumStreams"` + Size string `json:"Size" xml:"Size"` + Duration string `json:"Duration" xml:"Duration"` + StartTime string `json:"StartTime" xml:"StartTime"` + FormatName string `json:"FormatName" xml:"FormatName"` + Bitrate string `json:"Bitrate" xml:"Bitrate"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot.go new file mode 100644 index 0000000..60f6404 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FpShot is a nested struct in mts response +type FpShot struct { + PrimaryKey string `json:"PrimaryKey" xml:"PrimaryKey"` + Similarity string `json:"Similarity" xml:"Similarity"` + FpShotSlices FpShotSlices `json:"FpShotSlices" xml:"FpShotSlices"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot_job.go new file mode 100644 index 0000000..76fb0ca --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot_job.go @@ -0,0 +1,29 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FpShotJob is a nested struct in mts response +type FpShotJob struct { + Id string `json:"Id" xml:"Id"` + UserData string `json:"UserData" xml:"UserData"` + PipelineId string `json:"PipelineId" xml:"PipelineId"` + State string `json:"State" xml:"State"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + InputFile InputFile `json:"InputFile" xml:"InputFile"` + FpShotResult FpShotResult `json:"FpShotResult" xml:"FpShotResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot_job_list.go new file mode 100644 index 0000000..941b6cd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FpShotJobList is a nested struct in mts response +type FpShotJobList struct { + FpShotJob []FpShotJob `json:"FpShotJob" xml:"FpShotJob"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot_result.go new file mode 100644 index 0000000..33ce098 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot_result.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FpShotResult is a nested struct in mts response +type FpShotResult struct { + FpShots FpShots `json:"FpShots" xml:"FpShots"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot_slice.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot_slice.go new file mode 100644 index 0000000..c56ceac --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot_slice.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FpShotSlice is a nested struct in mts response +type FpShotSlice struct { + Input Input `json:"Input" xml:"Input"` + Duplication Duplication `json:"Duplication" xml:"Duplication"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot_slices.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot_slices.go new file mode 100644 index 0000000..89f0836 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shot_slices.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FpShotSlices is a nested struct in mts response +type FpShotSlices struct { + FpShotSlice []FpShotSlice `json:"FpShotSlice" xml:"FpShotSlice"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shots.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shots.go new file mode 100644 index 0000000..90972e3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_fp_shots.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FpShots is a nested struct in mts response +type FpShots struct { + FpShot []FpShot `json:"FpShot" xml:"FpShot"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_frame_tag_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_frame_tag_info.go new file mode 100644 index 0000000..ea4c120 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_frame_tag_info.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FrameTagInfo is a nested struct in mts response +type FrameTagInfo struct { + Tag string `json:"Tag" xml:"Tag"` + Score string `json:"Score" xml:"Score"` + Category string `json:"Category" xml:"Category"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_frame_tag_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_frame_tag_infos.go new file mode 100644 index 0000000..e6cf3a4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_frame_tag_infos.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FrameTagInfos is a nested struct in mts response +type FrameTagInfos struct { + FrameTagInfo []FrameTagInfo `json:"FrameTagInfo" xml:"FrameTagInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_frame_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_frame_tags.go new file mode 100644 index 0000000..2acf9e7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_frame_tags.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FrameTags is a nested struct in mts response +type FrameTags struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_gif.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_gif.go new file mode 100644 index 0000000..0446c08 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_gif.go @@ -0,0 +1,24 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Gif is a nested struct in mts response +type Gif struct { + IsCustomPalette string `json:"IsCustomPalette" xml:"IsCustomPalette"` + DitherMode string `json:"DitherMode" xml:"DitherMode"` + Loop string `json:"Loop" xml:"Loop"` + FinalDelay string `json:"FinalDelay" xml:"FinalDelay"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_image_file.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_image_file.go new file mode 100644 index 0000000..969f48b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_image_file.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ImageFile is a nested struct in mts response +type ImageFile struct { + Location string `json:"Location" xml:"Location"` + Bucket string `json:"Bucket" xml:"Bucket"` + Object string `json:"Object" xml:"Object"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_input.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_input.go new file mode 100644 index 0000000..5116b82 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_input.go @@ -0,0 +1,28 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Input is a nested struct in mts response +type Input struct { + Start string `json:"Start" xml:"Start"` + Location string `json:"Location" xml:"Location"` + Duration string `json:"Duration" xml:"Duration"` + RoleArn string `json:"RoleArn" xml:"RoleArn"` + Bucket string `json:"Bucket" xml:"Bucket"` + UserData string `json:"UserData" xml:"UserData"` + Object string `json:"Object" xml:"Object"` + InputFile InputFile `json:"InputFile" xml:"InputFile"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_input_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_input_config.go new file mode 100644 index 0000000..25821b5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_input_config.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InputConfig is a nested struct in mts response +type InputConfig struct { + DeinterlaceMethod string `json:"DeinterlaceMethod" xml:"DeinterlaceMethod"` + IsNormalSar string `json:"IsNormalSar" xml:"IsNormalSar"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_input_file.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_input_file.go new file mode 100644 index 0000000..6ffe471 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_input_file.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InputFile is a nested struct in mts response +type InputFile struct { + Location string `json:"Location" xml:"Location"` + Bucket string `json:"Bucket" xml:"Bucket"` + Object string `json:"Object" xml:"Object"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job.go new file mode 100644 index 0000000..018b95a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job.go @@ -0,0 +1,42 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Job is a nested struct in mts response +type Job struct { + CreationTime string `json:"CreationTime" xml:"CreationTime"` + PipelineId string `json:"PipelineId" xml:"PipelineId"` + Message string `json:"Message" xml:"Message"` + State string `json:"State" xml:"State"` + Code string `json:"Code" xml:"Code"` + UserData string `json:"UserData" xml:"UserData"` + FinishTime string `json:"FinishTime" xml:"FinishTime"` + Id string `json:"Id" xml:"Id"` + Percent int `json:"Percent" xml:"Percent"` + JobId string `json:"JobId" xml:"JobId"` + MediaDetailResult MediaDetailResult `json:"MediaDetailResult" xml:"MediaDetailResult"` + VideoGifResult VideoGifResult `json:"VideoGifResult" xml:"VideoGifResult"` + AsrConfig AsrConfig `json:"AsrConfig" xml:"AsrConfig"` + MNSMessageResult MNSMessageResult `json:"MNSMessageResult" xml:"MNSMessageResult"` + AsrResult AsrResult `json:"AsrResult" xml:"AsrResult"` + Input Input `json:"Input" xml:"Input"` + Output Output `json:"Output" xml:"Output"` + MediaDetailConfig MediaDetailConfig `json:"MediaDetailConfig" xml:"MediaDetailConfig"` + EditingConfig EditingConfig `json:"EditingConfig" xml:"EditingConfig"` + VideoSummaryResult VideoSummaryResult `json:"VideoSummaryResult" xml:"VideoSummaryResult"` + VideoSplitResult VideoSplitResult `json:"VideoSplitResult" xml:"VideoSplitResult"` + EditingInputs EditingInputsInQueryEditingJobList `json:"EditingInputs" xml:"EditingInputs"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_list_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_list_job.go new file mode 100644 index 0000000..b2608e0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_list_job.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// JobListInListJob is a nested struct in mts response +type JobListInListJob struct { + Job []Job `json:"Job" xml:"Job"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_asr_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_asr_job_list.go new file mode 100644 index 0000000..7bc156e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_asr_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// JobListInQueryAsrJobList is a nested struct in mts response +type JobListInQueryAsrJobList struct { + Job []Job `json:"Job" xml:"Job"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_editing_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_editing_job_list.go new file mode 100644 index 0000000..5f65bf5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_editing_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// JobListInQueryEditingJobList is a nested struct in mts response +type JobListInQueryEditingJobList struct { + Job []Job `json:"Job" xml:"Job"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_job_list.go new file mode 100644 index 0000000..f493ba2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// JobListInQueryJobList is a nested struct in mts response +type JobListInQueryJobList struct { + Job []Job `json:"Job" xml:"Job"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_media_detail_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_media_detail_job_list.go new file mode 100644 index 0000000..28cd036 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_media_detail_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// JobListInQueryMediaDetailJobList is a nested struct in mts response +type JobListInQueryMediaDetailJobList struct { + Job []Job `json:"Job" xml:"Job"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_video_gif_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_video_gif_job_list.go new file mode 100644 index 0000000..ffd0a59 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_video_gif_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// JobListInQueryVideoGifJobList is a nested struct in mts response +type JobListInQueryVideoGifJobList struct { + Job []Job `json:"Job" xml:"Job"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_video_split_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_video_split_job_list.go new file mode 100644 index 0000000..17d7d05 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_video_split_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// JobListInQueryVideoSplitJobList is a nested struct in mts response +type JobListInQueryVideoSplitJobList struct { + Job []Job `json:"Job" xml:"Job"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_video_summary_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_video_summary_job_list.go new file mode 100644 index 0000000..4de5272 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_list_in_query_video_summary_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// JobListInQueryVideoSummaryJobList is a nested struct in mts response +type JobListInQueryVideoSummaryJobList struct { + Job []Job `json:"Job" xml:"Job"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_result.go new file mode 100644 index 0000000..7e7a340 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_result.go @@ -0,0 +1,24 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// JobResult is a nested struct in mts response +type JobResult struct { + Success bool `json:"Success" xml:"Success"` + Message string `json:"Message" xml:"Message"` + Code string `json:"Code" xml:"Code"` + Job Job `json:"Job" xml:"Job"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_result_list_in_submit_editing_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_result_list_in_submit_editing_jobs.go new file mode 100644 index 0000000..ddb1994 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_result_list_in_submit_editing_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// JobResultListInSubmitEditingJobs is a nested struct in mts response +type JobResultListInSubmitEditingJobs struct { + JobResult []JobResult `json:"JobResult" xml:"JobResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_result_list_in_submit_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_result_list_in_submit_jobs.go new file mode 100644 index 0000000..cf9c883 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_job_result_list_in_submit_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// JobResultListInSubmitJobs is a nested struct in mts response +type JobResultListInSubmitJobs struct { + JobResult []JobResult `json:"JobResult" xml:"JobResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_m3_u8_non_standard_support.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_m3_u8_non_standard_support.go new file mode 100644 index 0000000..05682bf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_m3_u8_non_standard_support.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// M3U8NonStandardSupport is a nested struct in mts response +type M3U8NonStandardSupport struct { + TS TS `json:"TS" xml:"TS"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media.go new file mode 100644 index 0000000..92b0ca0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media.go @@ -0,0 +1,42 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Media is a nested struct in mts response +type Media struct { + CreationTime string `json:"CreationTime" xml:"CreationTime"` + CensorState string `json:"CensorState" xml:"CensorState"` + Size string `json:"Size" xml:"Size"` + Height string `json:"Height" xml:"Height"` + PublishState string `json:"PublishState" xml:"PublishState"` + CoverURL string `json:"CoverURL" xml:"CoverURL"` + Description string `json:"Description" xml:"Description"` + CateId int `json:"CateId" xml:"CateId"` + Width string `json:"Width" xml:"Width"` + Title string `json:"Title" xml:"Title"` + Bitrate string `json:"Bitrate" xml:"Bitrate"` + MediaId string `json:"MediaId" xml:"MediaId"` + Fps string `json:"Fps" xml:"Fps"` + Duration string `json:"Duration" xml:"Duration"` + Format string `json:"Format" xml:"Format"` + Tags TagsInListMedia `json:"Tags" xml:"Tags"` + RunIdList RunIdListInListMedia `json:"RunIdList" xml:"RunIdList"` + File File `json:"File" xml:"File"` + MediaInfo MediaInfo `json:"MediaInfo" xml:"MediaInfo"` + SnapshotList SnapshotListInQueryMediaListByURL `json:"SnapshotList" xml:"SnapshotList"` + PlayList PlayListInQueryMediaListByURL `json:"PlayList" xml:"PlayList"` + SummaryList SummaryListInQueryMediaListByURL `json:"SummaryList" xml:"SummaryList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_bucket.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_bucket.go new file mode 100644 index 0000000..01ff638 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_bucket.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MediaBucket is a nested struct in mts response +type MediaBucket struct { + Bucket string `json:"Bucket" xml:"Bucket"` + Type string `json:"Type" xml:"Type"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_bucket_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_bucket_list.go new file mode 100644 index 0000000..993d5d6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_bucket_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MediaBucketList is a nested struct in mts response +type MediaBucketList struct { + MediaBucket []MediaBucket `json:"MediaBucket" xml:"MediaBucket"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_detail_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_detail_config.go new file mode 100644 index 0000000..e8e7526 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_detail_config.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MediaDetailConfig is a nested struct in mts response +type MediaDetailConfig struct { + Scenario string `json:"Scenario" xml:"Scenario"` + DetailType string `json:"DetailType" xml:"DetailType"` + OutputFile OutputFile `json:"OutputFile" xml:"OutputFile"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_detail_recg_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_detail_recg_result.go new file mode 100644 index 0000000..db53973 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_detail_recg_result.go @@ -0,0 +1,28 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MediaDetailRecgResult is a nested struct in mts response +type MediaDetailRecgResult struct { + ImageUrl string `json:"ImageUrl" xml:"ImageUrl"` + Time string `json:"Time" xml:"Time"` + OcrText string `json:"OcrText" xml:"OcrText"` + FrameTags FrameTags `json:"FrameTags" xml:"FrameTags"` + Celebrities Celebrities `json:"Celebrities" xml:"Celebrities"` + Sensitives Sensitives `json:"Sensitives" xml:"Sensitives"` + Politicians Politicians `json:"Politicians" xml:"Politicians"` + FrameTagInfos FrameTagInfos `json:"FrameTagInfos" xml:"FrameTagInfos"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_detail_recg_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_detail_recg_results.go new file mode 100644 index 0000000..f67f5a8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_detail_recg_results.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MediaDetailRecgResults is a nested struct in mts response +type MediaDetailRecgResults struct { + MediaDetailRecgResult []MediaDetailRecgResult `json:"MediaDetailRecgResult" xml:"MediaDetailRecgResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_detail_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_detail_result.go new file mode 100644 index 0000000..98f2341 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_detail_result.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MediaDetailResult is a nested struct in mts response +type MediaDetailResult struct { + Status string `json:"Status" xml:"Status"` + Tags TagsInQueryMediaDetailJobList `json:"Tags" xml:"Tags"` + MediaDetailRecgResults MediaDetailRecgResults `json:"MediaDetailRecgResults" xml:"MediaDetailRecgResults"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_info.go new file mode 100644 index 0000000..359735f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_info.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MediaInfo is a nested struct in mts response +type MediaInfo struct { + Streams Streams `json:"Streams" xml:"Streams"` + Format Format `json:"Format" xml:"Format"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_info_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_info_job.go new file mode 100644 index 0000000..3f7a6da --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_info_job.go @@ -0,0 +1,30 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MediaInfoJob is a nested struct in mts response +type MediaInfoJob struct { + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Message string `json:"Message" xml:"Message"` + PipelineId string `json:"PipelineId" xml:"PipelineId"` + State string `json:"State" xml:"State"` + Code string `json:"Code" xml:"Code"` + UserData string `json:"UserData" xml:"UserData"` + JobId string `json:"JobId" xml:"JobId"` + MNSMessageResult MNSMessageResult `json:"MNSMessageResult" xml:"MNSMessageResult"` + Input Input `json:"Input" xml:"Input"` + Properties Properties `json:"Properties" xml:"Properties"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_info_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_info_job_list.go new file mode 100644 index 0000000..e654093 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_info_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MediaInfoJobList is a nested struct in mts response +type MediaInfoJobList struct { + MediaInfoJob []MediaInfoJob `json:"MediaInfoJob" xml:"MediaInfoJob"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_list_in_list_media.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_list_in_list_media.go new file mode 100644 index 0000000..0e41cad --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_list_in_list_media.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MediaListInListMedia is a nested struct in mts response +type MediaListInListMedia struct { + Media []Media `json:"Media" xml:"Media"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_list_in_query_media_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_list_in_query_media_list.go new file mode 100644 index 0000000..78606ee --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_list_in_query_media_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MediaListInQueryMediaList is a nested struct in mts response +type MediaListInQueryMediaList struct { + Media []Media `json:"Media" xml:"Media"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_list_in_query_media_list_by_url.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_list_in_query_media_list_by_url.go new file mode 100644 index 0000000..7effa24 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_list_in_query_media_list_by_url.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MediaListInQueryMediaListByURL is a nested struct in mts response +type MediaListInQueryMediaListByURL struct { + Media []Media `json:"Media" xml:"Media"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_list_in_search_media.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_list_in_search_media.go new file mode 100644 index 0000000..b2af001 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_list_in_search_media.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MediaListInSearchMedia is a nested struct in mts response +type MediaListInSearchMedia struct { + Media []Media `json:"Media" xml:"Media"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow.go new file mode 100644 index 0000000..1b6ac9d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow.go @@ -0,0 +1,26 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MediaWorkflow is a nested struct in mts response +type MediaWorkflow struct { + CreationTime string `json:"CreationTime" xml:"CreationTime"` + TriggerMode string `json:"TriggerMode" xml:"TriggerMode"` + Name string `json:"Name" xml:"Name"` + State string `json:"State" xml:"State"` + MediaWorkflowId string `json:"MediaWorkflowId" xml:"MediaWorkflowId"` + Topology string `json:"Topology" xml:"Topology"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow_execution.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow_execution.go new file mode 100644 index 0000000..90d04e5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow_execution.go @@ -0,0 +1,28 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MediaWorkflowExecution is a nested struct in mts response +type MediaWorkflowExecution struct { + CreationTime string `json:"CreationTime" xml:"CreationTime"` + MediaId string `json:"MediaId" xml:"MediaId"` + RunId string `json:"RunId" xml:"RunId"` + Name string `json:"Name" xml:"Name"` + State string `json:"State" xml:"State"` + MediaWorkflowId string `json:"MediaWorkflowId" xml:"MediaWorkflowId"` + Input Input `json:"Input" xml:"Input"` + ActivityList ActivityListInQueryMediaWorkflowExecutionList `json:"ActivityList" xml:"ActivityList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow_execution_list_in_list_media_workflow_executions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow_execution_list_in_list_media_workflow_executions.go new file mode 100644 index 0000000..9e212b3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow_execution_list_in_list_media_workflow_executions.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MediaWorkflowExecutionListInListMediaWorkflowExecutions is a nested struct in mts response +type MediaWorkflowExecutionListInListMediaWorkflowExecutions struct { + MediaWorkflowExecution []MediaWorkflowExecution `json:"MediaWorkflowExecution" xml:"MediaWorkflowExecution"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow_execution_list_in_query_media_workflow_execution_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow_execution_list_in_query_media_workflow_execution_list.go new file mode 100644 index 0000000..10c8721 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow_execution_list_in_query_media_workflow_execution_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MediaWorkflowExecutionListInQueryMediaWorkflowExecutionList is a nested struct in mts response +type MediaWorkflowExecutionListInQueryMediaWorkflowExecutionList struct { + MediaWorkflowExecution []MediaWorkflowExecution `json:"MediaWorkflowExecution" xml:"MediaWorkflowExecution"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow_list_in_query_media_workflow_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow_list_in_query_media_workflow_list.go new file mode 100644 index 0000000..bcb21e3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow_list_in_query_media_workflow_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MediaWorkflowListInQueryMediaWorkflowList is a nested struct in mts response +type MediaWorkflowListInQueryMediaWorkflowList struct { + MediaWorkflow []MediaWorkflow `json:"MediaWorkflow" xml:"MediaWorkflow"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow_list_in_search_media_workflow.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow_list_in_search_media_workflow.go new file mode 100644 index 0000000..fd2cf82 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_media_workflow_list_in_search_media_workflow.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MediaWorkflowListInSearchMediaWorkflow is a nested struct in mts response +type MediaWorkflowListInSearchMediaWorkflow struct { + MediaWorkflow []MediaWorkflow `json:"MediaWorkflow" xml:"MediaWorkflow"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge.go new file mode 100644 index 0000000..a022508 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge.go @@ -0,0 +1,24 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Merge is a nested struct in mts response +type Merge struct { + Start string `json:"Start" xml:"Start"` + Duration string `json:"Duration" xml:"Duration"` + RoleArn string `json:"RoleArn" xml:"RoleArn"` + MergeURL string `json:"MergeURL" xml:"MergeURL"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge_list_in_list_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge_list_in_list_job.go new file mode 100644 index 0000000..f1a64d3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge_list_in_list_job.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MergeListInListJob is a nested struct in mts response +type MergeListInListJob struct { + Merge []Merge `json:"Merge" xml:"Merge"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge_list_in_query_editing_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge_list_in_query_editing_job_list.go new file mode 100644 index 0000000..9129dd5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge_list_in_query_editing_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MergeListInQueryEditingJobList is a nested struct in mts response +type MergeListInQueryEditingJobList struct { + Merge []Merge `json:"Merge" xml:"Merge"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge_list_in_query_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge_list_in_query_job_list.go new file mode 100644 index 0000000..570d6b2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge_list_in_query_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MergeListInQueryJobList is a nested struct in mts response +type MergeListInQueryJobList struct { + Merge []Merge `json:"Merge" xml:"Merge"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge_list_in_submit_editing_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge_list_in_submit_editing_jobs.go new file mode 100644 index 0000000..8262e59 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge_list_in_submit_editing_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MergeListInSubmitEditingJobs is a nested struct in mts response +type MergeListInSubmitEditingJobs struct { + Merge []Merge `json:"Merge" xml:"Merge"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge_list_in_submit_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge_list_in_submit_jobs.go new file mode 100644 index 0000000..196b926 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_merge_list_in_submit_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MergeListInSubmitJobs is a nested struct in mts response +type MergeListInSubmitJobs struct { + Merge []Merge `json:"Merge" xml:"Merge"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_mns_message_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_mns_message_result.go new file mode 100644 index 0000000..3eef06c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_mns_message_result.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MNSMessageResult is a nested struct in mts response +type MNSMessageResult struct { + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + MessageId string `json:"MessageId" xml:"MessageId"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_mux_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_mux_config.go new file mode 100644 index 0000000..8de48ff --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_mux_config.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MuxConfig is a nested struct in mts response +type MuxConfig struct { + Segment Segment `json:"Segment" xml:"Segment"` + Gif Gif `json:"Gif" xml:"Gif"` + Webp Webp `json:"Webp" xml:"Webp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_network_cost.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_network_cost.go new file mode 100644 index 0000000..776a9f1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_network_cost.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NetworkCost is a nested struct in mts response +type NetworkCost struct { + CostBandwidth string `json:"CostBandwidth" xml:"CostBandwidth"` + PreloadTime string `json:"PreloadTime" xml:"PreloadTime"` + AvgBitrate string `json:"AvgBitrate" xml:"AvgBitrate"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_analysis_job_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_analysis_job_ids.go new file mode 100644 index 0000000..c759b6f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_analysis_job_ids.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistAnalysisJobIds is a nested struct in mts response +type NonExistAnalysisJobIds struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_file_ur_ls.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_file_ur_ls.go new file mode 100644 index 0000000..deb83ac --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_file_ur_ls.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistFileURLs is a nested struct in mts response +type NonExistFileURLs struct { + FileURL []string `json:"FileURL" xml:"FileURL"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_annotation_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_annotation_job_list.go new file mode 100644 index 0000000..eb6fa30 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_annotation_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistIdsInQueryAnnotationJobList is a nested struct in mts response +type NonExistIdsInQueryAnnotationJobList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_asr_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_asr_job_list.go new file mode 100644 index 0000000..bf901fa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_asr_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistIdsInQueryAsrJobList is a nested struct in mts response +type NonExistIdsInQueryAsrJobList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_asr_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_asr_pipeline_list.go new file mode 100644 index 0000000..a772492 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_asr_pipeline_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistIdsInQueryAsrPipelineList is a nested struct in mts response +type NonExistIdsInQueryAsrPipelineList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_censor_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_censor_job_list.go new file mode 100644 index 0000000..5ee6c8a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_censor_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistIdsInQueryCensorJobList is a nested struct in mts response +type NonExistIdsInQueryCensorJobList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_censor_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_censor_pipeline_list.go new file mode 100644 index 0000000..ba0f972 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_censor_pipeline_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistIdsInQueryCensorPipelineList is a nested struct in mts response +type NonExistIdsInQueryCensorPipelineList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_cover_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_cover_job_list.go new file mode 100644 index 0000000..c481ea4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_cover_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistIdsInQueryCoverJobList is a nested struct in mts response +type NonExistIdsInQueryCoverJobList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_cover_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_cover_pipeline_list.go new file mode 100644 index 0000000..6aa647e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_cover_pipeline_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistIdsInQueryCoverPipelineList is a nested struct in mts response +type NonExistIdsInQueryCoverPipelineList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_facerecog_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_facerecog_job_list.go new file mode 100644 index 0000000..3bbd351 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_facerecog_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistIdsInQueryFacerecogJobList is a nested struct in mts response +type NonExistIdsInQueryFacerecogJobList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_fp_shot_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_fp_shot_job_list.go new file mode 100644 index 0000000..48b55b1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_fp_shot_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistIdsInQueryFpShotJobList is a nested struct in mts response +type NonExistIdsInQueryFpShotJobList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_media_detail_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_media_detail_job_list.go new file mode 100644 index 0000000..3134b0f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_media_detail_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistIdsInQueryMediaDetailJobList is a nested struct in mts response +type NonExistIdsInQueryMediaDetailJobList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_porn_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_porn_job_list.go new file mode 100644 index 0000000..937afad --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_porn_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistIdsInQueryPornJobList is a nested struct in mts response +type NonExistIdsInQueryPornJobList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_porn_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_porn_pipeline_list.go new file mode 100644 index 0000000..e404dd7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_porn_pipeline_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistIdsInQueryPornPipelineList is a nested struct in mts response +type NonExistIdsInQueryPornPipelineList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_tag_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_tag_job_list.go new file mode 100644 index 0000000..4a77a65 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_tag_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistIdsInQueryTagJobList is a nested struct in mts response +type NonExistIdsInQueryTagJobList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_terrorism_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_terrorism_job_list.go new file mode 100644 index 0000000..9c0d4c2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_terrorism_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistIdsInQueryTerrorismJobList is a nested struct in mts response +type NonExistIdsInQueryTerrorismJobList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_terrorism_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_terrorism_pipeline_list.go new file mode 100644 index 0000000..88f9d08 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_terrorism_pipeline_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistIdsInQueryTerrorismPipelineList is a nested struct in mts response +type NonExistIdsInQueryTerrorismPipelineList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_video_gif_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_video_gif_job_list.go new file mode 100644 index 0000000..101af30 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_video_gif_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistIdsInQueryVideoGifJobList is a nested struct in mts response +type NonExistIdsInQueryVideoGifJobList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_video_split_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_video_split_job_list.go new file mode 100644 index 0000000..38f887e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_video_split_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistIdsInQueryVideoSplitJobList is a nested struct in mts response +type NonExistIdsInQueryVideoSplitJobList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_video_summary_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_video_summary_job_list.go new file mode 100644 index 0000000..2278968 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_ids_in_query_video_summary_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistIdsInQueryVideoSummaryJobList is a nested struct in mts response +type NonExistIdsInQueryVideoSummaryJobList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_job_ids_in_query_editing_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_job_ids_in_query_editing_job_list.go new file mode 100644 index 0000000..dd5fe92 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_job_ids_in_query_editing_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistJobIdsInQueryEditingJobList is a nested struct in mts response +type NonExistJobIdsInQueryEditingJobList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_job_ids_in_query_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_job_ids_in_query_job_list.go new file mode 100644 index 0000000..65d65b1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_job_ids_in_query_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistJobIdsInQueryJobList is a nested struct in mts response +type NonExistJobIdsInQueryJobList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_media_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_media_ids.go new file mode 100644 index 0000000..9fc3e10 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_media_ids.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistMediaIds is a nested struct in mts response +type NonExistMediaIds struct { + MediaId []string `json:"MediaId" xml:"MediaId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_media_info_job_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_media_info_job_ids.go new file mode 100644 index 0000000..9c75739 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_media_info_job_ids.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistMediaInfoJobIds is a nested struct in mts response +type NonExistMediaInfoJobIds struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_media_workflow_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_media_workflow_ids.go new file mode 100644 index 0000000..babe29e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_media_workflow_ids.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistMediaWorkflowIds is a nested struct in mts response +type NonExistMediaWorkflowIds struct { + MediaWorkflowId []string `json:"MediaWorkflowId" xml:"MediaWorkflowId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_pids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_pids.go new file mode 100644 index 0000000..12bbd61 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_pids.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistPids is a nested struct in mts response +type NonExistPids struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_run_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_run_ids.go new file mode 100644 index 0000000..654dd3b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_run_ids.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistRunIds is a nested struct in mts response +type NonExistRunIds struct { + RunId []string `json:"RunId" xml:"RunId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_snapshot_job_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_snapshot_job_ids.go new file mode 100644 index 0000000..8bd058f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_snapshot_job_ids.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistSnapshotJobIds is a nested struct in mts response +type NonExistSnapshotJobIds struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_tids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_tids.go new file mode 100644 index 0000000..71059e0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_tids.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistTids is a nested struct in mts response +type NonExistTids struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_wids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_wids.go new file mode 100644 index 0000000..0643d9d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_non_exist_wids.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NonExistWids is a nested struct in mts response +type NonExistWids struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_not_found_cdn_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_not_found_cdn_domain.go new file mode 100644 index 0000000..a1af0ba --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_not_found_cdn_domain.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NotFoundCDNDomain is a nested struct in mts response +type NotFoundCDNDomain struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_notify_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_notify_config.go new file mode 100644 index 0000000..21b7cb6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_notify_config.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NotifyConfig is a nested struct in mts response +type NotifyConfig struct { + QueueName string `json:"QueueName" xml:"QueueName"` + Queue string `json:"Queue" xml:"Queue"` + Topic string `json:"Topic" xml:"Topic"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_opening.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_opening.go new file mode 100644 index 0000000..cb552c3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_opening.go @@ -0,0 +1,24 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Opening is a nested struct in mts response +type Opening struct { + Start string `json:"Start" xml:"Start"` + Height string `json:"Height" xml:"Height"` + Width string `json:"Width" xml:"Width"` + OpenUrl string `json:"openUrl" xml:"openUrl"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_opening_list_in_list_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_opening_list_in_list_job.go new file mode 100644 index 0000000..48f979f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_opening_list_in_list_job.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OpeningListInListJob is a nested struct in mts response +type OpeningListInListJob struct { + Opening []Opening `json:"Opening" xml:"Opening"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_opening_list_in_query_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_opening_list_in_query_job_list.go new file mode 100644 index 0000000..6ecf1b0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_opening_list_in_query_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OpeningListInQueryJobList is a nested struct in mts response +type OpeningListInQueryJobList struct { + Opening []Opening `json:"Opening" xml:"Opening"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_opening_list_in_submit_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_opening_list_in_submit_jobs.go new file mode 100644 index 0000000..21b9011 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_opening_list_in_submit_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OpeningListInSubmitJobs is a nested struct in mts response +type OpeningListInSubmitJobs struct { + Opening []Opening `json:"Opening" xml:"Opening"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_out_subtitle.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_out_subtitle.go new file mode 100644 index 0000000..030aae4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_out_subtitle.go @@ -0,0 +1,24 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OutSubtitle is a nested struct in mts response +type OutSubtitle struct { + Success bool `json:"Success" xml:"Success"` + Map string `json:"Map" xml:"Map"` + Message string `json:"Message" xml:"Message"` + OutSubtitleFile OutSubtitleFile `json:"OutSubtitleFile" xml:"OutSubtitleFile"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_out_subtitle_file.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_out_subtitle_file.go new file mode 100644 index 0000000..f7b6901 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_out_subtitle_file.go @@ -0,0 +1,24 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OutSubtitleFile is a nested struct in mts response +type OutSubtitleFile struct { + Location string `json:"Location" xml:"Location"` + RoleArn string `json:"RoleArn" xml:"RoleArn"` + Bucket string `json:"Bucket" xml:"Bucket"` + Object string `json:"Object" xml:"Object"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_out_subtitle_list_in_list_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_out_subtitle_list_in_list_job.go new file mode 100644 index 0000000..0a418f1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_out_subtitle_list_in_list_job.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OutSubtitleListInListJob is a nested struct in mts response +type OutSubtitleListInListJob struct { + OutSubtitle []OutSubtitle `json:"OutSubtitle" xml:"OutSubtitle"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_out_subtitle_list_in_query_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_out_subtitle_list_in_query_job_list.go new file mode 100644 index 0000000..97266e1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_out_subtitle_list_in_query_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OutSubtitleListInQueryJobList is a nested struct in mts response +type OutSubtitleListInQueryJobList struct { + OutSubtitle []OutSubtitle `json:"OutSubtitle" xml:"OutSubtitle"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_out_subtitle_list_in_submit_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_out_subtitle_list_in_submit_jobs.go new file mode 100644 index 0000000..5dc9b43 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_out_subtitle_list_in_submit_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OutSubtitleListInSubmitJobs is a nested struct in mts response +type OutSubtitleListInSubmitJobs struct { + OutSubtitle []OutSubtitle `json:"OutSubtitle" xml:"OutSubtitle"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_output.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_output.go new file mode 100644 index 0000000..d70c67a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_output.go @@ -0,0 +1,47 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Output is a nested struct in mts response +type Output struct { + UserData string `json:"UserData" xml:"UserData"` + Priority string `json:"Priority" xml:"Priority"` + TemplateId string `json:"TemplateId" xml:"TemplateId"` + MergeConfigUrl string `json:"MergeConfigUrl" xml:"MergeConfigUrl"` + Rotate string `json:"Rotate" xml:"Rotate"` + DeWatermark string `json:"DeWatermark" xml:"DeWatermark"` + WaterMarkConfigUrl string `json:"WaterMarkConfigUrl" xml:"WaterMarkConfigUrl"` + VideoStreamMap string `json:"VideoStreamMap" xml:"VideoStreamMap"` + AudioStreamMap string `json:"AudioStreamMap" xml:"AudioStreamMap"` + TransConfig TransConfig `json:"TransConfig" xml:"TransConfig"` + Encryption Encryption `json:"Encryption" xml:"Encryption"` + MuxConfig MuxConfig `json:"MuxConfig" xml:"MuxConfig"` + Properties Properties `json:"Properties" xml:"Properties"` + OutputFile OutputFile `json:"OutputFile" xml:"OutputFile"` + Video Video `json:"Video" xml:"Video"` + Container Container `json:"Container" xml:"Container"` + Clip Clip `json:"Clip" xml:"Clip"` + SuperReso SuperReso `json:"SuperReso" xml:"SuperReso"` + Audio Audio `json:"Audio" xml:"Audio"` + SubtitleConfig SubtitleConfig `json:"SubtitleConfig" xml:"SubtitleConfig"` + DigiWaterMark DigiWaterMark `json:"DigiWaterMark" xml:"DigiWaterMark"` + M3U8NonStandardSupport M3U8NonStandardSupport `json:"M3U8NonStandardSupport" xml:"M3U8NonStandardSupport"` + OutSubtitleList OutSubtitleListInListJob `json:"OutSubtitleList" xml:"OutSubtitleList"` + TailSlateList TailSlateListInListJob `json:"TailSlateList" xml:"TailSlateList"` + MergeList MergeListInListJob `json:"MergeList" xml:"MergeList"` + OpeningList OpeningListInListJob `json:"OpeningList" xml:"OpeningList"` + WaterMarkList WaterMarkListInListJob `json:"WaterMarkList" xml:"WaterMarkList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_output_file.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_output_file.go new file mode 100644 index 0000000..3af3085 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_output_file.go @@ -0,0 +1,24 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OutputFile is a nested struct in mts response +type OutputFile struct { + Location string `json:"Location" xml:"Location"` + RoleArn string `json:"RoleArn" xml:"RoleArn"` + Bucket string `json:"Bucket" xml:"Bucket"` + Object string `json:"Object" xml:"Object"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline.go new file mode 100644 index 0000000..a39361e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline.go @@ -0,0 +1,28 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Pipeline is a nested struct in mts response +type Pipeline struct { + Speed string `json:"Speed" xml:"Speed"` + SpeedLevel int `json:"SpeedLevel" xml:"SpeedLevel"` + Id string `json:"Id" xml:"Id"` + Role string `json:"Role" xml:"Role"` + Name string `json:"Name" xml:"Name"` + State string `json:"State" xml:"State"` + Priority int `json:"Priority" xml:"Priority"` + NotifyConfig NotifyConfig `json:"NotifyConfig" xml:"NotifyConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_add_cover_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_add_cover_pipeline.go new file mode 100644 index 0000000..76dcb57 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_add_cover_pipeline.go @@ -0,0 +1,26 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineInAddCoverPipeline is a nested struct in mts response +type PipelineInAddCoverPipeline struct { + Id string `json:"Id" xml:"Id"` + Name string `json:"Name" xml:"Name"` + Priority string `json:"Priority" xml:"Priority"` + State string `json:"State" xml:"State"` + Role string `json:"Role" xml:"Role"` + NotifyConfig NotifyConfig `json:"NotifyConfig" xml:"NotifyConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_list_asr_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_list_asr_pipeline.go new file mode 100644 index 0000000..52b4759 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_list_asr_pipeline.go @@ -0,0 +1,25 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineInListAsrPipeline is a nested struct in mts response +type PipelineInListAsrPipeline struct { + Id string `json:"Id" xml:"Id"` + Name string `json:"Name" xml:"Name"` + State string `json:"State" xml:"State"` + Priority string `json:"Priority" xml:"Priority"` + NotifyConfig NotifyConfig `json:"NotifyConfig" xml:"NotifyConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_list_censor_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_list_censor_pipeline.go new file mode 100644 index 0000000..487186c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_list_censor_pipeline.go @@ -0,0 +1,25 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineInListCensorPipeline is a nested struct in mts response +type PipelineInListCensorPipeline struct { + Id string `json:"Id" xml:"Id"` + Name string `json:"Name" xml:"Name"` + State string `json:"State" xml:"State"` + Priority string `json:"Priority" xml:"Priority"` + NotifyConfig NotifyConfig `json:"NotifyConfig" xml:"NotifyConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_list_cover_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_list_cover_pipeline.go new file mode 100644 index 0000000..ebf2bbc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_list_cover_pipeline.go @@ -0,0 +1,30 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineInListCoverPipeline is a nested struct in mts response +type PipelineInListCoverPipeline struct { + UserId int `json:"UserId" xml:"UserId"` + PipelineId string `json:"PipelineId" xml:"PipelineId"` + Name string `json:"Name" xml:"Name"` + State string `json:"State" xml:"State"` + Priority string `json:"Priority" xml:"Priority"` + QuotaNum int `json:"quotaNum" xml:"quotaNum"` + QuotaUsed int `json:"quotaUsed" xml:"quotaUsed"` + NotifyConfig string `json:"NotifyConfig" xml:"NotifyConfig"` + Role string `json:"Role" xml:"Role"` + ExtendConfig string `json:"ExtendConfig" xml:"ExtendConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_list_porn_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_list_porn_pipeline.go new file mode 100644 index 0000000..74e6678 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_list_porn_pipeline.go @@ -0,0 +1,25 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineInListPornPipeline is a nested struct in mts response +type PipelineInListPornPipeline struct { + Id string `json:"Id" xml:"Id"` + Name string `json:"Name" xml:"Name"` + State string `json:"State" xml:"State"` + Priority string `json:"Priority" xml:"Priority"` + NotifyConfig NotifyConfig `json:"NotifyConfig" xml:"NotifyConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_list_terrorism_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_list_terrorism_pipeline.go new file mode 100644 index 0000000..d0f9242 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_list_terrorism_pipeline.go @@ -0,0 +1,25 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineInListTerrorismPipeline is a nested struct in mts response +type PipelineInListTerrorismPipeline struct { + Id string `json:"Id" xml:"Id"` + Name string `json:"Name" xml:"Name"` + State string `json:"State" xml:"State"` + Priority string `json:"Priority" xml:"Priority"` + NotifyConfig NotifyConfig `json:"NotifyConfig" xml:"NotifyConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_query_asr_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_query_asr_pipeline_list.go new file mode 100644 index 0000000..56bb3d9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_query_asr_pipeline_list.go @@ -0,0 +1,25 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineInQueryAsrPipelineList is a nested struct in mts response +type PipelineInQueryAsrPipelineList struct { + Id string `json:"Id" xml:"Id"` + Name string `json:"Name" xml:"Name"` + State string `json:"State" xml:"State"` + Priority string `json:"Priority" xml:"Priority"` + NotifyConfig NotifyConfig `json:"NotifyConfig" xml:"NotifyConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_query_censor_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_query_censor_pipeline_list.go new file mode 100644 index 0000000..0eb27ef --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_query_censor_pipeline_list.go @@ -0,0 +1,25 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineInQueryCensorPipelineList is a nested struct in mts response +type PipelineInQueryCensorPipelineList struct { + Id string `json:"Id" xml:"Id"` + Name string `json:"Name" xml:"Name"` + State string `json:"State" xml:"State"` + Priority string `json:"Priority" xml:"Priority"` + NotifyConfig NotifyConfig `json:"NotifyConfig" xml:"NotifyConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_query_cover_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_query_cover_pipeline_list.go new file mode 100644 index 0000000..c61e851 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_query_cover_pipeline_list.go @@ -0,0 +1,26 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineInQueryCoverPipelineList is a nested struct in mts response +type PipelineInQueryCoverPipelineList struct { + Id string `json:"Id" xml:"Id"` + Name string `json:"Name" xml:"Name"` + State string `json:"State" xml:"State"` + Priority string `json:"Priority" xml:"Priority"` + Role string `json:"Role" xml:"Role"` + NotifyConfig NotifyConfig `json:"NotifyConfig" xml:"NotifyConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_query_porn_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_query_porn_pipeline_list.go new file mode 100644 index 0000000..dd8127b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_query_porn_pipeline_list.go @@ -0,0 +1,25 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineInQueryPornPipelineList is a nested struct in mts response +type PipelineInQueryPornPipelineList struct { + Id string `json:"Id" xml:"Id"` + Name string `json:"Name" xml:"Name"` + State string `json:"State" xml:"State"` + Priority string `json:"Priority" xml:"Priority"` + NotifyConfig NotifyConfig `json:"NotifyConfig" xml:"NotifyConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_query_terrorism_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_query_terrorism_pipeline_list.go new file mode 100644 index 0000000..5657c6c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_in_query_terrorism_pipeline_list.go @@ -0,0 +1,25 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineInQueryTerrorismPipelineList is a nested struct in mts response +type PipelineInQueryTerrorismPipelineList struct { + Id string `json:"Id" xml:"Id"` + Name string `json:"Name" xml:"Name"` + State string `json:"State" xml:"State"` + Priority string `json:"Priority" xml:"Priority"` + NotifyConfig NotifyConfig `json:"NotifyConfig" xml:"NotifyConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_list_asr_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_list_asr_pipeline.go new file mode 100644 index 0000000..6c29a80 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_list_asr_pipeline.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineListInListAsrPipeline is a nested struct in mts response +type PipelineListInListAsrPipeline struct { + Pipeline []PipelineInListAsrPipeline `json:"Pipeline" xml:"Pipeline"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_list_censor_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_list_censor_pipeline.go new file mode 100644 index 0000000..66cae3b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_list_censor_pipeline.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineListInListCensorPipeline is a nested struct in mts response +type PipelineListInListCensorPipeline struct { + Pipeline []PipelineInListCensorPipeline `json:"Pipeline" xml:"Pipeline"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_list_cover_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_list_cover_pipeline.go new file mode 100644 index 0000000..be48219 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_list_cover_pipeline.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineListInListCoverPipeline is a nested struct in mts response +type PipelineListInListCoverPipeline struct { + Pipeline []PipelineInListCoverPipeline `json:"Pipeline" xml:"Pipeline"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_list_porn_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_list_porn_pipeline.go new file mode 100644 index 0000000..953f789 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_list_porn_pipeline.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineListInListPornPipeline is a nested struct in mts response +type PipelineListInListPornPipeline struct { + Pipeline []PipelineInListPornPipeline `json:"Pipeline" xml:"Pipeline"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_list_terrorism_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_list_terrorism_pipeline.go new file mode 100644 index 0000000..ef4794f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_list_terrorism_pipeline.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineListInListTerrorismPipeline is a nested struct in mts response +type PipelineListInListTerrorismPipeline struct { + Pipeline []PipelineInListTerrorismPipeline `json:"Pipeline" xml:"Pipeline"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_asr_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_asr_pipeline_list.go new file mode 100644 index 0000000..6f28903 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_asr_pipeline_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineListInQueryAsrPipelineList is a nested struct in mts response +type PipelineListInQueryAsrPipelineList struct { + Pipeline []PipelineInQueryAsrPipelineList `json:"Pipeline" xml:"Pipeline"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_censor_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_censor_pipeline_list.go new file mode 100644 index 0000000..5b940a0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_censor_pipeline_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineListInQueryCensorPipelineList is a nested struct in mts response +type PipelineListInQueryCensorPipelineList struct { + Pipeline []PipelineInQueryCensorPipelineList `json:"Pipeline" xml:"Pipeline"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_cover_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_cover_pipeline_list.go new file mode 100644 index 0000000..2fd6022 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_cover_pipeline_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineListInQueryCoverPipelineList is a nested struct in mts response +type PipelineListInQueryCoverPipelineList struct { + Pipeline []PipelineInQueryCoverPipelineList `json:"Pipeline" xml:"Pipeline"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_pipeline_list.go new file mode 100644 index 0000000..527e9c0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_pipeline_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineListInQueryPipelineList is a nested struct in mts response +type PipelineListInQueryPipelineList struct { + Pipeline []Pipeline `json:"Pipeline" xml:"Pipeline"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_porn_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_porn_pipeline_list.go new file mode 100644 index 0000000..3b617bc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_porn_pipeline_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineListInQueryPornPipelineList is a nested struct in mts response +type PipelineListInQueryPornPipelineList struct { + Pipeline []PipelineInQueryPornPipelineList `json:"Pipeline" xml:"Pipeline"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_terrorism_pipeline_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_terrorism_pipeline_list.go new file mode 100644 index 0000000..184ca08 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_query_terrorism_pipeline_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineListInQueryTerrorismPipelineList is a nested struct in mts response +type PipelineListInQueryTerrorismPipelineList struct { + Pipeline []PipelineInQueryTerrorismPipelineList `json:"Pipeline" xml:"Pipeline"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_search_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_search_pipeline.go new file mode 100644 index 0000000..871433e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_pipeline_list_in_search_pipeline.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PipelineListInSearchPipeline is a nested struct in mts response +type PipelineListInSearchPipeline struct { + Pipeline []Pipeline `json:"Pipeline" xml:"Pipeline"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_play.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_play.go new file mode 100644 index 0000000..86228ee --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_play.go @@ -0,0 +1,32 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Play is a nested struct in mts response +type Play struct { + Fps string `json:"Fps" xml:"Fps"` + Size string `json:"Size" xml:"Size"` + Height string `json:"Height" xml:"Height"` + Duration string `json:"Duration" xml:"Duration"` + Encryption string `json:"Encryption" xml:"Encryption"` + Width string `json:"Width" xml:"Width"` + Format string `json:"Format" xml:"Format"` + MediaWorkflowName string `json:"MediaWorkflowName" xml:"MediaWorkflowName"` + MediaWorkflowId string `json:"MediaWorkflowId" xml:"MediaWorkflowId"` + ActivityName string `json:"ActivityName" xml:"ActivityName"` + Bitrate string `json:"Bitrate" xml:"Bitrate"` + File File `json:"File" xml:"File"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_play_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_play_info.go new file mode 100644 index 0000000..ffc7e44 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_play_info.go @@ -0,0 +1,36 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PlayInfo is a nested struct in mts response +type PlayInfo struct { + Url string `json:"Url" xml:"Url"` + Duration string `json:"duration" xml:"duration"` + Size string `json:"size" xml:"size"` + Width string `json:"width" xml:"width"` + Height string `json:"height" xml:"height"` + Bitrate string `json:"bitrate" xml:"bitrate"` + Fps string `json:"fps" xml:"fps"` + Format string `json:"format" xml:"format"` + Definition string `json:"definition" xml:"definition"` + Encryption string `json:"encryption" xml:"encryption"` + Rand string `json:"rand" xml:"rand"` + Plaintext string `json:"plaintext" xml:"plaintext"` + Complexity string `json:"complexity" xml:"complexity"` + ActivityName string `json:"activityName" xml:"activityName"` + EncryptionType string `json:"encryptionType" xml:"encryptionType"` + DownloadType string `json:"downloadType" xml:"downloadType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_play_info_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_play_info_list.go new file mode 100644 index 0000000..13f4e3b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_play_info_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PlayInfoList is a nested struct in mts response +type PlayInfoList struct { + PlayInfo []PlayInfo `json:"PlayInfo" xml:"PlayInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_play_list_in_query_media_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_play_list_in_query_media_list.go new file mode 100644 index 0000000..a9702c6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_play_list_in_query_media_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PlayListInQueryMediaList is a nested struct in mts response +type PlayListInQueryMediaList struct { + Play []Play `json:"Play" xml:"Play"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_play_list_in_query_media_list_by_url.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_play_list_in_query_media_list_by_url.go new file mode 100644 index 0000000..5246eb1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_play_list_in_query_media_list_by_url.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PlayListInQueryMediaListByURL is a nested struct in mts response +type PlayListInQueryMediaListByURL struct { + Play []Play `json:"Play" xml:"Play"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_politician.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_politician.go new file mode 100644 index 0000000..96df909 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_politician.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Politician is a nested struct in mts response +type Politician struct { + Name string `json:"Name" xml:"Name"` + Score string `json:"Score" xml:"Score"` + Target string `json:"Target" xml:"Target"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_politicians.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_politicians.go new file mode 100644 index 0000000..f0e919b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_politicians.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Politicians is a nested struct in mts response +type Politicians struct { + Politician []Politician `json:"Politician" xml:"Politician"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_config.go new file mode 100644 index 0000000..c9b129e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_config.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PornConfig is a nested struct in mts response +type PornConfig struct { + Interval string `json:"Interval" xml:"Interval"` + BizType string `json:"BizType" xml:"BizType"` + OutputFile OutputFile `json:"OutputFile" xml:"OutputFile"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_counter_list_in_query_censor_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_counter_list_in_query_censor_job_list.go new file mode 100644 index 0000000..a2349aa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_counter_list_in_query_censor_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PornCounterListInQueryCensorJobList is a nested struct in mts response +type PornCounterListInQueryCensorJobList struct { + Counter []Counter `json:"Counter" xml:"Counter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_counter_list_in_query_porn_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_counter_list_in_query_porn_job_list.go new file mode 100644 index 0000000..c1a12d1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_counter_list_in_query_porn_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PornCounterListInQueryPornJobList is a nested struct in mts response +type PornCounterListInQueryPornJobList struct { + Counter []Counter `json:"Counter" xml:"Counter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_job.go new file mode 100644 index 0000000..36f41f7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_job.go @@ -0,0 +1,30 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PornJob is a nested struct in mts response +type PornJob struct { + Id string `json:"Id" xml:"Id"` + UserData string `json:"UserData" xml:"UserData"` + PipelineId string `json:"PipelineId" xml:"PipelineId"` + State string `json:"State" xml:"State"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Input Input `json:"Input" xml:"Input"` + PornConfig PornConfig `json:"PornConfig" xml:"PornConfig"` + CensorPornResult CensorPornResult `json:"CensorPornResult" xml:"CensorPornResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_job_list.go new file mode 100644 index 0000000..39a55be --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PornJobList is a nested struct in mts response +type PornJobList struct { + PornJob []PornJob `json:"PornJob" xml:"PornJob"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_top_list_in_query_censor_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_top_list_in_query_censor_job_list.go new file mode 100644 index 0000000..9ea502e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_top_list_in_query_censor_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PornTopListInQueryCensorJobList is a nested struct in mts response +type PornTopListInQueryCensorJobList struct { + Top []Top `json:"Top" xml:"Top"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_top_list_in_query_porn_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_top_list_in_query_porn_job_list.go new file mode 100644 index 0000000..dc44a50 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_porn_top_list_in_query_porn_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PornTopListInQueryPornJobList is a nested struct in mts response +type PornTopListInQueryPornJobList struct { + Top []Top `json:"Top" xml:"Top"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_properties.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_properties.go new file mode 100644 index 0000000..deee27c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_properties.go @@ -0,0 +1,30 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Properties is a nested struct in mts response +type Properties struct { + Fps string `json:"Fps" xml:"Fps"` + Height string `json:"Height" xml:"Height"` + Duration string `json:"Duration" xml:"Duration"` + Width string `json:"Width" xml:"Width"` + FileSize string `json:"FileSize" xml:"FileSize"` + FileFormat string `json:"FileFormat" xml:"FileFormat"` + Bitrate string `json:"Bitrate" xml:"Bitrate"` + Streams Streams `json:"Streams" xml:"Streams"` + Format Format `json:"Format" xml:"Format"` + SourceLogos SourceLogos `json:"SourceLogos" xml:"SourceLogos"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_properties_control.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_properties_control.go new file mode 100644 index 0000000..2272d90 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_properties_control.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PropertiesControl is a nested struct in mts response +type PropertiesControl struct { + Deinterlace string `json:"Deinterlace" xml:"Deinterlace"` + Crop Crop `json:"Crop" xml:"Crop"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_quality_control.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_quality_control.go new file mode 100644 index 0000000..26aec2a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_quality_control.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// QualityControl is a nested struct in mts response +type QualityControl struct { + RateQuality string `json:"RateQuality" xml:"RateQuality"` + MethodStreaming string `json:"MethodStreaming" xml:"MethodStreaming"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ratio_refer.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ratio_refer.go new file mode 100644 index 0000000..8278247 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ratio_refer.go @@ -0,0 +1,24 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RatioRefer is a nested struct in mts response +type RatioRefer struct { + Height string `json:"Height" xml:"Height"` + Dy string `json:"Dy" xml:"Dy"` + Width string `json:"Width" xml:"Width"` + Dx string `json:"Dx" xml:"Dx"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_registered_personage.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_registered_personage.go new file mode 100644 index 0000000..85d3fdd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_registered_personage.go @@ -0,0 +1,27 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RegisteredPersonage is a nested struct in mts response +type RegisteredPersonage struct { + PersonName string `json:"PersonName" xml:"PersonName"` + FaceId string `json:"FaceId" xml:"FaceId"` + Target string `json:"Target" xml:"Target"` + Quality string `json:"Quality" xml:"Quality"` + Gender string `json:"Gender" xml:"Gender"` + ImageId string `json:"ImageId" xml:"ImageId"` + ImageFile ImageFile `json:"ImageFile" xml:"ImageFile"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_registered_personages.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_registered_personages.go new file mode 100644 index 0000000..4e8e3ea --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_registered_personages.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RegisteredPersonages is a nested struct in mts response +type RegisteredPersonages struct { + RegisteredPersonage []RegisteredPersonage `json:"RegisteredPersonage" xml:"RegisteredPersonage"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_add_media.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_add_media.go new file mode 100644 index 0000000..69ae30c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_add_media.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RunIdListInAddMedia is a nested struct in mts response +type RunIdListInAddMedia struct { + RunId []string `json:"RunId" xml:"RunId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_list_media.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_list_media.go new file mode 100644 index 0000000..0ac7f87 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_list_media.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RunIdListInListMedia is a nested struct in mts response +type RunIdListInListMedia struct { + RunId []string `json:"RunId" xml:"RunId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_query_media_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_query_media_list.go new file mode 100644 index 0000000..6bd41f6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_query_media_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RunIdListInQueryMediaList is a nested struct in mts response +type RunIdListInQueryMediaList struct { + RunId []string `json:"RunId" xml:"RunId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_query_media_list_by_url.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_query_media_list_by_url.go new file mode 100644 index 0000000..2521853 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_query_media_list_by_url.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RunIdListInQueryMediaListByURL is a nested struct in mts response +type RunIdListInQueryMediaListByURL struct { + RunId []string `json:"RunId" xml:"RunId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_search_media.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_search_media.go new file mode 100644 index 0000000..89a7313 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_search_media.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RunIdListInSearchMedia is a nested struct in mts response +type RunIdListInSearchMedia struct { + RunId []string `json:"RunId" xml:"RunId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_update_media.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_update_media.go new file mode 100644 index 0000000..01017a3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_run_id_list_in_update_media.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RunIdListInUpdateMedia is a nested struct in mts response +type RunIdListInUpdateMedia struct { + RunId []string `json:"RunId" xml:"RunId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_segment.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_segment.go new file mode 100644 index 0000000..3490ae4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_segment.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Segment is a nested struct in mts response +type Segment struct { + Duration string `json:"Duration" xml:"Duration"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_sensitive.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_sensitive.go new file mode 100644 index 0000000..4e9d5b2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_sensitive.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Sensitive is a nested struct in mts response +type Sensitive struct { + Name string `json:"Name" xml:"Name"` + Score string `json:"Score" xml:"Score"` + Target string `json:"Target" xml:"Target"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_sensitives.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_sensitives.go new file mode 100644 index 0000000..4a4adea --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_sensitives.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Sensitives is a nested struct in mts response +type Sensitives struct { + Sensitive []Sensitive `json:"Sensitive" xml:"Sensitive"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot.go new file mode 100644 index 0000000..eed6151 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot.go @@ -0,0 +1,26 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Snapshot is a nested struct in mts response +type Snapshot struct { + Type string `json:"Type" xml:"Type"` + MediaWorkflowName string `json:"MediaWorkflowName" xml:"MediaWorkflowName"` + MediaWorkflowId string `json:"MediaWorkflowId" xml:"MediaWorkflowId"` + ActivityName string `json:"ActivityName" xml:"ActivityName"` + Count string `json:"Count" xml:"Count"` + File File `json:"File" xml:"File"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot_config.go new file mode 100644 index 0000000..1acf78f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot_config.go @@ -0,0 +1,29 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SnapshotConfig is a nested struct in mts response +type SnapshotConfig struct { + FrameType string `json:"FrameType" xml:"FrameType"` + Height string `json:"Height" xml:"Height"` + Width string `json:"Width" xml:"Width"` + Num string `json:"Num" xml:"Num"` + Time string `json:"Time" xml:"Time"` + Interval string `json:"Interval" xml:"Interval"` + OutputFile OutputFile `json:"OutputFile" xml:"OutputFile"` + TileOutputFile TileOutputFile `json:"TileOutputFile" xml:"TileOutputFile"` + TileOut TileOut `json:"TileOut" xml:"TileOut"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot_job.go new file mode 100644 index 0000000..78f4bb4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot_job.go @@ -0,0 +1,32 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SnapshotJob is a nested struct in mts response +type SnapshotJob struct { + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Id string `json:"Id" xml:"Id"` + Message string `json:"Message" xml:"Message"` + PipelineId string `json:"PipelineId" xml:"PipelineId"` + TileCount string `json:"TileCount" xml:"TileCount"` + State string `json:"State" xml:"State"` + Code string `json:"Code" xml:"Code"` + UserData string `json:"UserData" xml:"UserData"` + Count string `json:"Count" xml:"Count"` + SnapshotConfig SnapshotConfig `json:"SnapshotConfig" xml:"SnapshotConfig"` + MNSMessageResult MNSMessageResult `json:"MNSMessageResult" xml:"MNSMessageResult"` + Input Input `json:"Input" xml:"Input"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot_job_list.go new file mode 100644 index 0000000..6ec6c9b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SnapshotJobList is a nested struct in mts response +type SnapshotJobList struct { + SnapshotJob []SnapshotJob `json:"SnapshotJob" xml:"SnapshotJob"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot_list_in_query_media_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot_list_in_query_media_list.go new file mode 100644 index 0000000..76bac7f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot_list_in_query_media_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SnapshotListInQueryMediaList is a nested struct in mts response +type SnapshotListInQueryMediaList struct { + Snapshot []Snapshot `json:"Snapshot" xml:"Snapshot"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot_list_in_query_media_list_by_url.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot_list_in_query_media_list_by_url.go new file mode 100644 index 0000000..98bd7f2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_snapshot_list_in_query_media_list_by_url.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SnapshotListInQueryMediaListByURL is a nested struct in mts response +type SnapshotListInQueryMediaListByURL struct { + Snapshot []Snapshot `json:"Snapshot" xml:"Snapshot"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_source_logo.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_source_logo.go new file mode 100644 index 0000000..eb033fe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_source_logo.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SourceLogo is a nested struct in mts response +type SourceLogo struct { + Source string `json:"Source" xml:"Source"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_source_logos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_source_logos.go new file mode 100644 index 0000000..7a878bf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_source_logos.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SourceLogos is a nested struct in mts response +type SourceLogos struct { + SourceLogo []SourceLogo `json:"SourceLogo" xml:"SourceLogo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_streams.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_streams.go new file mode 100644 index 0000000..f3ca6c0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_streams.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Streams is a nested struct in mts response +type Streams struct { + AudioStreamList AudioStreamListInQueryEditingJobList `json:"AudioStreamList" xml:"AudioStreamList"` + SubtitleStreamList SubtitleStreamListInQueryEditingJobList `json:"SubtitleStreamList" xml:"SubtitleStreamList"` + VideoStreamList VideoStreamListInQueryEditingJobList `json:"VideoStreamList" xml:"VideoStreamList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle.go new file mode 100644 index 0000000..37ab989 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Subtitle is a nested struct in mts response +type Subtitle struct { + Map string `json:"Map" xml:"Map"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_config.go new file mode 100644 index 0000000..fdddda5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_config.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SubtitleConfig is a nested struct in mts response +type SubtitleConfig struct { + ExtSubtitleList ExtSubtitleListInQueryEditingJobList `json:"ExtSubtitleList" xml:"ExtSubtitleList"` + SubtitleList SubtitleListInQueryEditingJobList `json:"SubtitleList" xml:"SubtitleList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_list_in_list_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_list_in_list_job.go new file mode 100644 index 0000000..1da125e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_list_in_list_job.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SubtitleListInListJob is a nested struct in mts response +type SubtitleListInListJob struct { + Subtitle []Subtitle `json:"Subtitle" xml:"Subtitle"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_list_in_query_editing_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_list_in_query_editing_job_list.go new file mode 100644 index 0000000..08df2fe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_list_in_query_editing_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SubtitleListInQueryEditingJobList is a nested struct in mts response +type SubtitleListInQueryEditingJobList struct { + Subtitle []Subtitle `json:"Subtitle" xml:"Subtitle"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_list_in_query_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_list_in_query_job_list.go new file mode 100644 index 0000000..48c094e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_list_in_query_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SubtitleListInQueryJobList is a nested struct in mts response +type SubtitleListInQueryJobList struct { + Subtitle []Subtitle `json:"Subtitle" xml:"Subtitle"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_list_in_submit_editing_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_list_in_submit_editing_jobs.go new file mode 100644 index 0000000..56c37e9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_list_in_submit_editing_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SubtitleListInSubmitEditingJobs is a nested struct in mts response +type SubtitleListInSubmitEditingJobs struct { + Subtitle []Subtitle `json:"Subtitle" xml:"Subtitle"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_list_in_submit_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_list_in_submit_jobs.go new file mode 100644 index 0000000..bf25811 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_list_in_submit_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SubtitleListInSubmitJobs is a nested struct in mts response +type SubtitleListInSubmitJobs struct { + Subtitle []Subtitle `json:"Subtitle" xml:"Subtitle"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream.go new file mode 100644 index 0000000..bfbfd6c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SubtitleStream is a nested struct in mts response +type SubtitleStream struct { + Index string `json:"Index" xml:"Index"` + Lang string `json:"Lang" xml:"Lang"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_list_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_list_job.go new file mode 100644 index 0000000..616f376 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_list_job.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SubtitleStreamListInListJob is a nested struct in mts response +type SubtitleStreamListInListJob struct { + SubtitleStream []SubtitleStream `json:"SubtitleStream" xml:"SubtitleStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_query_editing_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_query_editing_job_list.go new file mode 100644 index 0000000..e458576 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_query_editing_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SubtitleStreamListInQueryEditingJobList is a nested struct in mts response +type SubtitleStreamListInQueryEditingJobList struct { + SubtitleStream []SubtitleStream `json:"SubtitleStream" xml:"SubtitleStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_query_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_query_job_list.go new file mode 100644 index 0000000..8d2af68 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_query_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SubtitleStreamListInQueryJobList is a nested struct in mts response +type SubtitleStreamListInQueryJobList struct { + SubtitleStream []SubtitleStream `json:"SubtitleStream" xml:"SubtitleStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_query_media_info_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_query_media_info_job_list.go new file mode 100644 index 0000000..74645c4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_query_media_info_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SubtitleStreamListInQueryMediaInfoJobList is a nested struct in mts response +type SubtitleStreamListInQueryMediaInfoJobList struct { + SubtitleStream []SubtitleStream `json:"SubtitleStream" xml:"SubtitleStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_query_media_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_query_media_list.go new file mode 100644 index 0000000..361a825 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_query_media_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SubtitleStreamListInQueryMediaList is a nested struct in mts response +type SubtitleStreamListInQueryMediaList struct { + SubtitleStream []SubtitleStream `json:"SubtitleStream" xml:"SubtitleStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_query_media_list_by_url.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_query_media_list_by_url.go new file mode 100644 index 0000000..6e97802 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_query_media_list_by_url.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SubtitleStreamListInQueryMediaListByURL is a nested struct in mts response +type SubtitleStreamListInQueryMediaListByURL struct { + SubtitleStream []SubtitleStream `json:"SubtitleStream" xml:"SubtitleStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_submit_editing_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_submit_editing_jobs.go new file mode 100644 index 0000000..f0693a4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_submit_editing_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SubtitleStreamListInSubmitEditingJobs is a nested struct in mts response +type SubtitleStreamListInSubmitEditingJobs struct { + SubtitleStream []SubtitleStream `json:"SubtitleStream" xml:"SubtitleStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_submit_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_submit_jobs.go new file mode 100644 index 0000000..cfac860 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_submit_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SubtitleStreamListInSubmitJobs is a nested struct in mts response +type SubtitleStreamListInSubmitJobs struct { + SubtitleStream []SubtitleStream `json:"SubtitleStream" xml:"SubtitleStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_submit_media_info_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_submit_media_info_job.go new file mode 100644 index 0000000..8dc9e3f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_subtitle_stream_list_in_submit_media_info_job.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SubtitleStreamListInSubmitMediaInfoJob is a nested struct in mts response +type SubtitleStreamListInSubmitMediaInfoJob struct { + SubtitleStream []SubtitleStream `json:"SubtitleStream" xml:"SubtitleStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_sucess_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_sucess_domains.go new file mode 100644 index 0000000..d556a18 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_sucess_domains.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SucessDomains is a nested struct in mts response +type SucessDomains struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_summary.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_summary.go new file mode 100644 index 0000000..ef2288f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_summary.go @@ -0,0 +1,25 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Summary is a nested struct in mts response +type Summary struct { + Type string `json:"Type" xml:"Type"` + MediaWorkflowName string `json:"MediaWorkflowName" xml:"MediaWorkflowName"` + MediaWorkflowId string `json:"MediaWorkflowId" xml:"MediaWorkflowId"` + ActivityName string `json:"ActivityName" xml:"ActivityName"` + File File `json:"File" xml:"File"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_summary_list_in_query_media_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_summary_list_in_query_media_list.go new file mode 100644 index 0000000..8f00ca3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_summary_list_in_query_media_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SummaryListInQueryMediaList is a nested struct in mts response +type SummaryListInQueryMediaList struct { + Summary []Summary `json:"Summary" xml:"Summary"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_summary_list_in_query_media_list_by_url.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_summary_list_in_query_media_list_by_url.go new file mode 100644 index 0000000..b83d158 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_summary_list_in_query_media_list_by_url.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SummaryListInQueryMediaListByURL is a nested struct in mts response +type SummaryListInQueryMediaListByURL struct { + Summary []Summary `json:"Summary" xml:"Summary"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_super_reso.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_super_reso.go new file mode 100644 index 0000000..1034679 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_super_reso.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SuperReso is a nested struct in mts response +type SuperReso struct { + IsHalfSample string `json:"IsHalfSample" xml:"IsHalfSample"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_switch.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_switch.go new file mode 100644 index 0000000..b8c9615 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_switch.go @@ -0,0 +1,24 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Switch is a nested struct in mts response +type Switch struct { + State string `json:"State" xml:"State"` + FunctionId string `json:"FunctionId" xml:"FunctionId"` + SwitchId string `json:"SwitchId" xml:"SwitchId"` + FunctionName string `json:"FunctionName" xml:"FunctionName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_switch_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_switch_list.go new file mode 100644 index 0000000..f6b2b36 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_switch_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SwitchList is a nested struct in mts response +type SwitchList struct { + Switch []Switch `json:"Switch" xml:"Switch"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_an_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_an_result.go new file mode 100644 index 0000000..2b0a2b0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_an_result.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagAnResult is a nested struct in mts response +type TagAnResult struct { + Label string `json:"Label" xml:"Label"` + Score string `json:"Score" xml:"Score"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_an_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_an_results.go new file mode 100644 index 0000000..3372440 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_an_results.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagAnResults is a nested struct in mts response +type TagAnResults struct { + TagAnResult []TagAnResult `json:"TagAnResult" xml:"TagAnResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_face.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_face.go new file mode 100644 index 0000000..bc76cee --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_face.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagFace is a nested struct in mts response +type TagFace struct { + Name string `json:"Name" xml:"Name"` + Score string `json:"Score" xml:"Score"` + Target string `json:"Target" xml:"Target"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_faces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_faces.go new file mode 100644 index 0000000..027fea8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_faces.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagFaces is a nested struct in mts response +type TagFaces struct { + TagFace []TagFace `json:"TagFace" xml:"TagFace"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_fr_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_fr_result.go new file mode 100644 index 0000000..31063c0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_fr_result.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagFrResult is a nested struct in mts response +type TagFrResult struct { + Time string `json:"Time" xml:"Time"` + TagFaces TagFaces `json:"TagFaces" xml:"TagFaces"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_fr_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_fr_results.go new file mode 100644 index 0000000..ed79db5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_fr_results.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagFrResults is a nested struct in mts response +type TagFrResults struct { + TagFrResult []TagFrResult `json:"TagFrResult" xml:"TagFrResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_job.go new file mode 100644 index 0000000..572c256 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_job.go @@ -0,0 +1,29 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagJob is a nested struct in mts response +type TagJob struct { + Id string `json:"Id" xml:"Id"` + UserData string `json:"UserData" xml:"UserData"` + PipelineId string `json:"PipelineId" xml:"PipelineId"` + State string `json:"State" xml:"State"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Input Input `json:"Input" xml:"Input"` + VideoTagResult VideoTagResult `json:"VideoTagResult" xml:"VideoTagResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_job_list.go new file mode 100644 index 0000000..4959e98 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tag_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagJobList is a nested struct in mts response +type TagJobList struct { + TagJob []TagJob `json:"TagJob" xml:"TagJob"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_add_media.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_add_media.go new file mode 100644 index 0000000..5e99fef --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_add_media.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInAddMedia is a nested struct in mts response +type TagsInAddMedia struct { + Tag []string `json:"Tag" xml:"Tag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_list_media.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_list_media.go new file mode 100644 index 0000000..eb81971 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_list_media.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInListMedia is a nested struct in mts response +type TagsInListMedia struct { + Tag []string `json:"Tag" xml:"Tag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_query_media_detail_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_query_media_detail_job_list.go new file mode 100644 index 0000000..9d8de03 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_query_media_detail_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInQueryMediaDetailJobList is a nested struct in mts response +type TagsInQueryMediaDetailJobList struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_query_media_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_query_media_list.go new file mode 100644 index 0000000..21acbfd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_query_media_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInQueryMediaList is a nested struct in mts response +type TagsInQueryMediaList struct { + Tag []string `json:"Tag" xml:"Tag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_query_media_list_by_url.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_query_media_list_by_url.go new file mode 100644 index 0000000..b04da25 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_query_media_list_by_url.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInQueryMediaListByURL is a nested struct in mts response +type TagsInQueryMediaListByURL struct { + Tag []string `json:"Tag" xml:"Tag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_search_media.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_search_media.go new file mode 100644 index 0000000..de0d7ee --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_search_media.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInSearchMedia is a nested struct in mts response +type TagsInSearchMedia struct { + Tag []string `json:"Tag" xml:"Tag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_update_media.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_update_media.go new file mode 100644 index 0000000..047229b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tags_in_update_media.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInUpdateMedia is a nested struct in mts response +type TagsInUpdateMedia struct { + Tag []string `json:"Tag" xml:"Tag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tail_slate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tail_slate.go new file mode 100644 index 0000000..cb0cadf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tail_slate.go @@ -0,0 +1,27 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TailSlate is a nested struct in mts response +type TailSlate struct { + Start string `json:"Start" xml:"Start"` + TailUrl string `json:"TailUrl" xml:"TailUrl"` + Height string `json:"Height" xml:"Height"` + BlendDuration string `json:"BlendDuration" xml:"BlendDuration"` + Width string `json:"Width" xml:"Width"` + IsMergeAudio bool `json:"IsMergeAudio" xml:"IsMergeAudio"` + BgColor string `json:"BgColor" xml:"BgColor"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tail_slate_list_in_list_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tail_slate_list_in_list_job.go new file mode 100644 index 0000000..b969c26 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tail_slate_list_in_list_job.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TailSlateListInListJob is a nested struct in mts response +type TailSlateListInListJob struct { + TailSlate []TailSlate `json:"TailSlate" xml:"TailSlate"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tail_slate_list_in_query_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tail_slate_list_in_query_job_list.go new file mode 100644 index 0000000..e422a96 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tail_slate_list_in_query_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TailSlateListInQueryJobList is a nested struct in mts response +type TailSlateListInQueryJobList struct { + TailSlate []TailSlate `json:"TailSlate" xml:"TailSlate"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tail_slate_list_in_submit_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tail_slate_list_in_submit_jobs.go new file mode 100644 index 0000000..f6d0637 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tail_slate_list_in_submit_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TailSlateListInSubmitJobs is a nested struct in mts response +type TailSlateListInSubmitJobs struct { + TailSlate []TailSlate `json:"TailSlate" xml:"TailSlate"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_template.go new file mode 100644 index 0000000..7423b27 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_template.go @@ -0,0 +1,28 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Template is a nested struct in mts response +type Template struct { + Id string `json:"Id" xml:"Id"` + Name string `json:"Name" xml:"Name"` + State string `json:"State" xml:"State"` + Audio Audio `json:"Audio" xml:"Audio"` + TransConfig TransConfig `json:"TransConfig" xml:"TransConfig"` + Container Container `json:"Container" xml:"Container"` + MuxConfig MuxConfig `json:"MuxConfig" xml:"MuxConfig"` + Video Video `json:"Video" xml:"Video"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_template_list_in_query_analysis_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_template_list_in_query_analysis_job_list.go new file mode 100644 index 0000000..7391cd1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_template_list_in_query_analysis_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TemplateListInQueryAnalysisJobList is a nested struct in mts response +type TemplateListInQueryAnalysisJobList struct { + Template []Template `json:"Template" xml:"Template"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_template_list_in_query_template_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_template_list_in_query_template_list.go new file mode 100644 index 0000000..05b6e34 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_template_list_in_query_template_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TemplateListInQueryTemplateList is a nested struct in mts response +type TemplateListInQueryTemplateList struct { + Template []Template `json:"Template" xml:"Template"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_template_list_in_search_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_template_list_in_search_template.go new file mode 100644 index 0000000..eaba7eb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_template_list_in_search_template.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TemplateListInSearchTemplate is a nested struct in mts response +type TemplateListInSearchTemplate struct { + Template []Template `json:"Template" xml:"Template"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_template_list_in_submit_analysis_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_template_list_in_submit_analysis_job.go new file mode 100644 index 0000000..64495ff --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_template_list_in_submit_analysis_job.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TemplateListInSubmitAnalysisJob is a nested struct in mts response +type TemplateListInSubmitAnalysisJob struct { + Template []Template `json:"Template" xml:"Template"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_config.go new file mode 100644 index 0000000..bc4c985 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_config.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TerrorismConfig is a nested struct in mts response +type TerrorismConfig struct { + Interval string `json:"Interval" xml:"Interval"` + BizType string `json:"BizType" xml:"BizType"` + OutputFile OutputFile `json:"OutputFile" xml:"OutputFile"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_counter_list_in_query_censor_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_counter_list_in_query_censor_job_list.go new file mode 100644 index 0000000..8ce2129 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_counter_list_in_query_censor_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TerrorismCounterListInQueryCensorJobList is a nested struct in mts response +type TerrorismCounterListInQueryCensorJobList struct { + Counter []Counter `json:"Counter" xml:"Counter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_counter_list_in_query_terrorism_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_counter_list_in_query_terrorism_job_list.go new file mode 100644 index 0000000..715d147 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_counter_list_in_query_terrorism_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TerrorismCounterListInQueryTerrorismJobList is a nested struct in mts response +type TerrorismCounterListInQueryTerrorismJobList struct { + Counter []Counter `json:"Counter" xml:"Counter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_job.go new file mode 100644 index 0000000..4b1703a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_job.go @@ -0,0 +1,30 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TerrorismJob is a nested struct in mts response +type TerrorismJob struct { + Id string `json:"Id" xml:"Id"` + UserData string `json:"UserData" xml:"UserData"` + PipelineId string `json:"PipelineId" xml:"PipelineId"` + State string `json:"State" xml:"State"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Input Input `json:"Input" xml:"Input"` + TerrorismConfig TerrorismConfig `json:"TerrorismConfig" xml:"TerrorismConfig"` + CensorTerrorismResult CensorTerrorismResult `json:"CensorTerrorismResult" xml:"CensorTerrorismResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_job_list.go new file mode 100644 index 0000000..fc8e8d8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TerrorismJobList is a nested struct in mts response +type TerrorismJobList struct { + TerrorismJob []TerrorismJob `json:"TerrorismJob" xml:"TerrorismJob"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_top_list_in_query_censor_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_top_list_in_query_censor_job_list.go new file mode 100644 index 0000000..6eaabdb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_top_list_in_query_censor_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TerrorismTopListInQueryCensorJobList is a nested struct in mts response +type TerrorismTopListInQueryCensorJobList struct { + Top []Top `json:"Top" xml:"Top"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_top_list_in_query_terrorism_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_top_list_in_query_terrorism_job_list.go new file mode 100644 index 0000000..a4863b5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_terrorism_top_list_in_query_terrorism_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TerrorismTopListInQueryTerrorismJobList is a nested struct in mts response +type TerrorismTopListInQueryTerrorismJobList struct { + Top []Top `json:"Top" xml:"Top"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tile_out.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tile_out.go new file mode 100644 index 0000000..7a68348 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tile_out.go @@ -0,0 +1,29 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TileOut is a nested struct in mts response +type TileOut struct { + IsKeepCellPic string `json:"IsKeepCellPic" xml:"IsKeepCellPic"` + CellHeight string `json:"CellHeight" xml:"CellHeight"` + Lines string `json:"Lines" xml:"Lines"` + Columns string `json:"Columns" xml:"Columns"` + CellSelStep string `json:"CellSelStep" xml:"CellSelStep"` + Padding string `json:"Padding" xml:"Padding"` + CellWidth string `json:"CellWidth" xml:"CellWidth"` + Color string `json:"Color" xml:"Color"` + Margin string `json:"Margin" xml:"Margin"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tile_output_file.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tile_output_file.go new file mode 100644 index 0000000..21a58f1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_tile_output_file.go @@ -0,0 +1,24 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TileOutputFile is a nested struct in mts response +type TileOutputFile struct { + Location string `json:"Location" xml:"Location"` + RoleArn string `json:"RoleArn" xml:"RoleArn"` + Bucket string `json:"Bucket" xml:"Bucket"` + Object string `json:"Object" xml:"Object"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_time_span.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_time_span.go new file mode 100644 index 0000000..0df948d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_time_span.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TimeSpan is a nested struct in mts response +type TimeSpan struct { + Duration string `json:"Duration" xml:"Duration"` + Seek string `json:"Seek" xml:"Seek"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_timeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_timeline.go new file mode 100644 index 0000000..625ac61 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_timeline.go @@ -0,0 +1,24 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Timeline is a nested struct in mts response +type Timeline struct { + Start string `json:"Start" xml:"Start"` + Duration string `json:"Duration" xml:"Duration"` + TimelineConfig TimelineConfig `json:"TimelineConfig" xml:"TimelineConfig"` + TrackList TrackListInQueryEditingJobList `json:"TrackList" xml:"TrackList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_timeline_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_timeline_config.go new file mode 100644 index 0000000..bb0725a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_timeline_config.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TimelineConfig is a nested struct in mts response +type TimelineConfig struct { + TimelineConfigAudio TimelineConfigAudio `json:"TimelineConfigAudio" xml:"TimelineConfigAudio"` + TimelineConfigVideo TimelineConfigVideo `json:"TimelineConfigVideo" xml:"TimelineConfigVideo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_timeline_config_audio.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_timeline_config_audio.go new file mode 100644 index 0000000..ffbdc9e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_timeline_config_audio.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TimelineConfigAudio is a nested struct in mts response +type TimelineConfigAudio struct { + ChannelLayout string `json:"ChannelLayout" xml:"ChannelLayout"` + Samplerate string `json:"Samplerate" xml:"Samplerate"` + Channels string `json:"Channels" xml:"Channels"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_timeline_config_video.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_timeline_config_video.go new file mode 100644 index 0000000..2e3ee4d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_timeline_config_video.go @@ -0,0 +1,25 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TimelineConfigVideo is a nested struct in mts response +type TimelineConfigVideo struct { + Fps string `json:"Fps" xml:"Fps"` + Height string `json:"Height" xml:"Height"` + Width string `json:"Width" xml:"Width"` + BgColor string `json:"BgColor" xml:"BgColor"` + RenderRatio string `json:"RenderRatio" xml:"RenderRatio"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_top.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_top.go new file mode 100644 index 0000000..86dd9e9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_top.go @@ -0,0 +1,25 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Top is a nested struct in mts response +type Top struct { + Score string `json:"Score" xml:"Score"` + Label string `json:"Label" xml:"Label"` + Index string `json:"Index" xml:"Index"` + Object string `json:"Object" xml:"Object"` + Timestamp string `json:"Timestamp" xml:"Timestamp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_track.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_track.go new file mode 100644 index 0000000..d61e8dc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_track.go @@ -0,0 +1,24 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Track is a nested struct in mts response +type Track struct { + Type string `json:"Type" xml:"Type"` + Id string `json:"Id" xml:"Id"` + Order string `json:"Order" xml:"Order"` + Clips ClipsInQueryEditingJobList `json:"Clips" xml:"Clips"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_track_list_in_query_editing_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_track_list_in_query_editing_job_list.go new file mode 100644 index 0000000..c068770 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_track_list_in_query_editing_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TrackListInQueryEditingJobList is a nested struct in mts response +type TrackListInQueryEditingJobList struct { + Track []Track `json:"Track" xml:"Track"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_track_list_in_submit_editing_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_track_list_in_submit_editing_jobs.go new file mode 100644 index 0000000..429b735 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_track_list_in_submit_editing_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TrackListInSubmitEditingJobs is a nested struct in mts response +type TrackListInSubmitEditingJobs struct { + Track []Track `json:"Track" xml:"Track"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_trans_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_trans_config.go new file mode 100644 index 0000000..6b4d9d8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_trans_config.go @@ -0,0 +1,29 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TransConfig is a nested struct in mts response +type TransConfig struct { + IsCheckAudioBitrateFail string `json:"IsCheckAudioBitrateFail" xml:"IsCheckAudioBitrateFail"` + IsCheckVideoBitrate string `json:"IsCheckVideoBitrate" xml:"IsCheckVideoBitrate"` + Duration string `json:"Duration" xml:"Duration"` + IsCheckVideoBitrateFail string `json:"IsCheckVideoBitrateFail" xml:"IsCheckVideoBitrateFail"` + IsCheckResoFail string `json:"IsCheckResoFail" xml:"IsCheckResoFail"` + IsCheckReso string `json:"IsCheckReso" xml:"IsCheckReso"` + AdjDarMethod string `json:"AdjDarMethod" xml:"AdjDarMethod"` + IsCheckAudioBitrate string `json:"IsCheckAudioBitrate" xml:"IsCheckAudioBitrate"` + TransMode string `json:"TransMode" xml:"TransMode"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ts.go new file mode 100644 index 0000000..8a13cff --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_ts.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TS is a nested struct in mts response +type TS struct { + SizeSupport bool `json:"SizeSupport" xml:"SizeSupport"` + Md5Support bool `json:"Md5Support" xml:"Md5Support"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video.go new file mode 100644 index 0000000..28db1c1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video.go @@ -0,0 +1,41 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Video is a nested struct in mts response +type Video struct { + Crop string `json:"Crop" xml:"Crop"` + Gop string `json:"Gop" xml:"Gop"` + Bufsize string `json:"Bufsize" xml:"Bufsize"` + Remove string `json:"Remove" xml:"Remove"` + Height string `json:"Height" xml:"Height"` + Degrain string `json:"Degrain" xml:"Degrain"` + Crf string `json:"Crf" xml:"Crf"` + Width string `json:"Width" xml:"Width"` + MaxFps string `json:"MaxFps" xml:"MaxFps"` + Pad string `json:"Pad" xml:"Pad"` + Bitrate string `json:"Bitrate" xml:"Bitrate"` + ResoPriority string `json:"ResoPriority" xml:"ResoPriority"` + Fps string `json:"Fps" xml:"Fps"` + Preset string `json:"Preset" xml:"Preset"` + ScanMode string `json:"ScanMode" xml:"ScanMode"` + Qscale string `json:"Qscale" xml:"Qscale"` + PixFmt string `json:"PixFmt" xml:"PixFmt"` + Profile string `json:"Profile" xml:"Profile"` + Codec string `json:"Codec" xml:"Codec"` + Maxrate string `json:"Maxrate" xml:"Maxrate"` + BitrateBnd BitrateBnd `json:"BitrateBnd" xml:"BitrateBnd"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_annotation_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_annotation_result.go new file mode 100644 index 0000000..88b701c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_annotation_result.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoAnnotationResult is a nested struct in mts response +type VideoAnnotationResult struct { + Details string `json:"Details" xml:"Details"` + Annotations Annotations `json:"Annotations" xml:"Annotations"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_facerecog_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_facerecog_result.go new file mode 100644 index 0000000..0fa9d0b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_facerecog_result.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoFacerecogResult is a nested struct in mts response +type VideoFacerecogResult struct { + Facerecogs Facerecogs `json:"Facerecogs" xml:"Facerecogs"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_gif_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_gif_result.go new file mode 100644 index 0000000..ba44ec9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_gif_result.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoGifResult is a nested struct in mts response +type VideoGifResult struct { + OutputFile OutputFile `json:"OutputFile" xml:"OutputFile"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_split.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_split.go new file mode 100644 index 0000000..ab49a42 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_split.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoSplit is a nested struct in mts response +type VideoSplit struct { + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + Path string `json:"Path" xml:"Path"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_split_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_split_list.go new file mode 100644 index 0000000..f51f531 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_split_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoSplitList is a nested struct in mts response +type VideoSplitList struct { + VideoSplit []VideoSplit `json:"VideoSplit" xml:"VideoSplit"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_split_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_split_result.go new file mode 100644 index 0000000..844bada --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_split_result.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoSplitResult is a nested struct in mts response +type VideoSplitResult struct { + VideoSplitList VideoSplitList `json:"VideoSplitList" xml:"VideoSplitList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream.go new file mode 100644 index 0000000..5cb2976 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream.go @@ -0,0 +1,44 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoStream is a nested struct in mts response +type VideoStream struct { + Timebase string `json:"Timebase" xml:"Timebase"` + Height string `json:"Height" xml:"Height"` + CodecTimeBase string `json:"CodecTimeBase" xml:"CodecTimeBase"` + StartTime string `json:"StartTime" xml:"StartTime"` + CodecLongName string `json:"CodecLongName" xml:"CodecLongName"` + Width string `json:"Width" xml:"Width"` + Index string `json:"Index" xml:"Index"` + NumFrames string `json:"NumFrames" xml:"NumFrames"` + HasBFrames string `json:"HasBFrames" xml:"HasBFrames"` + Bitrate string `json:"Bitrate" xml:"Bitrate"` + Level string `json:"Level" xml:"Level"` + Fps string `json:"Fps" xml:"Fps"` + Rotate string `json:"Rotate" xml:"Rotate"` + CodecName string `json:"CodecName" xml:"CodecName"` + Dar string `json:"Dar" xml:"Dar"` + Duration string `json:"Duration" xml:"Duration"` + CodecTagString string `json:"CodecTagString" xml:"CodecTagString"` + Lang string `json:"Lang" xml:"Lang"` + PixFmt string `json:"PixFmt" xml:"PixFmt"` + Profile string `json:"Profile" xml:"Profile"` + AvgFPS string `json:"AvgFPS" xml:"AvgFPS"` + CodecTag string `json:"CodecTag" xml:"CodecTag"` + Sar string `json:"Sar" xml:"Sar"` + NetworkCost NetworkCost `json:"NetworkCost" xml:"NetworkCost"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_list_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_list_job.go new file mode 100644 index 0000000..2f2947b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_list_job.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoStreamListInListJob is a nested struct in mts response +type VideoStreamListInListJob struct { + VideoStream []VideoStream `json:"VideoStream" xml:"VideoStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_query_editing_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_query_editing_job_list.go new file mode 100644 index 0000000..a6c1637 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_query_editing_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoStreamListInQueryEditingJobList is a nested struct in mts response +type VideoStreamListInQueryEditingJobList struct { + VideoStream []VideoStream `json:"VideoStream" xml:"VideoStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_query_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_query_job_list.go new file mode 100644 index 0000000..1a9e2e9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_query_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoStreamListInQueryJobList is a nested struct in mts response +type VideoStreamListInQueryJobList struct { + VideoStream []VideoStream `json:"VideoStream" xml:"VideoStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_query_media_info_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_query_media_info_job_list.go new file mode 100644 index 0000000..3242125 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_query_media_info_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoStreamListInQueryMediaInfoJobList is a nested struct in mts response +type VideoStreamListInQueryMediaInfoJobList struct { + VideoStream []VideoStream `json:"VideoStream" xml:"VideoStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_query_media_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_query_media_list.go new file mode 100644 index 0000000..ea405aa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_query_media_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoStreamListInQueryMediaList is a nested struct in mts response +type VideoStreamListInQueryMediaList struct { + VideoStream []VideoStream `json:"VideoStream" xml:"VideoStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_query_media_list_by_url.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_query_media_list_by_url.go new file mode 100644 index 0000000..19f09c4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_query_media_list_by_url.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoStreamListInQueryMediaListByURL is a nested struct in mts response +type VideoStreamListInQueryMediaListByURL struct { + VideoStream []VideoStream `json:"VideoStream" xml:"VideoStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_submit_editing_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_submit_editing_jobs.go new file mode 100644 index 0000000..ea7a2af --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_submit_editing_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoStreamListInSubmitEditingJobs is a nested struct in mts response +type VideoStreamListInSubmitEditingJobs struct { + VideoStream []VideoStream `json:"VideoStream" xml:"VideoStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_submit_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_submit_jobs.go new file mode 100644 index 0000000..51bd884 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_submit_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoStreamListInSubmitJobs is a nested struct in mts response +type VideoStreamListInSubmitJobs struct { + VideoStream []VideoStream `json:"VideoStream" xml:"VideoStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_submit_media_info_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_submit_media_info_job.go new file mode 100644 index 0000000..5ad4a0e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_stream_list_in_submit_media_info_job.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoStreamListInSubmitMediaInfoJob is a nested struct in mts response +type VideoStreamListInSubmitMediaInfoJob struct { + VideoStream []VideoStream `json:"VideoStream" xml:"VideoStream"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_summary.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_summary.go new file mode 100644 index 0000000..250c8eb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_summary.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoSummary is a nested struct in mts response +type VideoSummary struct { + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_summary_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_summary_list.go new file mode 100644 index 0000000..2b901a4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_summary_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoSummaryList is a nested struct in mts response +type VideoSummaryList struct { + VideoSummary []VideoSummary `json:"VideoSummary" xml:"VideoSummary"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_summary_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_summary_result.go new file mode 100644 index 0000000..c0f2236 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_summary_result.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoSummaryResult is a nested struct in mts response +type VideoSummaryResult struct { + OutputFile OutputFile `json:"OutputFile" xml:"OutputFile"` + VideoSummaryList VideoSummaryList `json:"VideoSummaryList" xml:"VideoSummaryList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_tag_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_tag_result.go new file mode 100644 index 0000000..aed2f72 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_video_tag_result.go @@ -0,0 +1,23 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VideoTagResult is a nested struct in mts response +type VideoTagResult struct { + Details string `json:"Details" xml:"Details"` + TagAnResults TagAnResults `json:"TagAnResults" xml:"TagAnResults"` + TagFrResults TagFrResults `json:"TagFrResults" xml:"TagFrResults"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_volume.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_volume.go new file mode 100644 index 0000000..0be7755 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_volume.go @@ -0,0 +1,22 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Volume is a nested struct in mts response +type Volume struct { + Level string `json:"Level" xml:"Level"` + Method string `json:"Method" xml:"Method"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark.go new file mode 100644 index 0000000..567a974 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark.go @@ -0,0 +1,28 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// WaterMark is a nested struct in mts response +type WaterMark struct { + Dy string `json:"Dy" xml:"Dy"` + Height string `json:"Height" xml:"Height"` + Type string `json:"Type" xml:"Type"` + WaterMarkTemplateId string `json:"WaterMarkTemplateId" xml:"WaterMarkTemplateId"` + Width string `json:"Width" xml:"Width"` + Dx string `json:"Dx" xml:"Dx"` + ReferPos string `json:"ReferPos" xml:"ReferPos"` + InputFile InputFile `json:"InputFile" xml:"InputFile"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_list_in_list_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_list_in_list_job.go new file mode 100644 index 0000000..77060e4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_list_in_list_job.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// WaterMarkListInListJob is a nested struct in mts response +type WaterMarkListInListJob struct { + WaterMark []WaterMark `json:"WaterMark" xml:"WaterMark"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_list_in_query_editing_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_list_in_query_editing_job_list.go new file mode 100644 index 0000000..605df48 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_list_in_query_editing_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// WaterMarkListInQueryEditingJobList is a nested struct in mts response +type WaterMarkListInQueryEditingJobList struct { + WaterMark []WaterMark `json:"WaterMark" xml:"WaterMark"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_list_in_query_job_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_list_in_query_job_list.go new file mode 100644 index 0000000..f12a493 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_list_in_query_job_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// WaterMarkListInQueryJobList is a nested struct in mts response +type WaterMarkListInQueryJobList struct { + WaterMark []WaterMark `json:"WaterMark" xml:"WaterMark"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_list_in_submit_editing_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_list_in_submit_editing_jobs.go new file mode 100644 index 0000000..ea3074f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_list_in_submit_editing_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// WaterMarkListInSubmitEditingJobs is a nested struct in mts response +type WaterMarkListInSubmitEditingJobs struct { + WaterMark []WaterMark `json:"WaterMark" xml:"WaterMark"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_list_in_submit_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_list_in_submit_jobs.go new file mode 100644 index 0000000..24d99c0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_list_in_submit_jobs.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// WaterMarkListInSubmitJobs is a nested struct in mts response +type WaterMarkListInSubmitJobs struct { + WaterMark []WaterMark `json:"WaterMark" xml:"WaterMark"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_template.go new file mode 100644 index 0000000..ea7841c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_template.go @@ -0,0 +1,31 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// WaterMarkTemplate is a nested struct in mts response +type WaterMarkTemplate struct { + Dy string `json:"Dy" xml:"Dy"` + Height string `json:"Height" xml:"Height"` + Type string `json:"Type" xml:"Type"` + Id string `json:"Id" xml:"Id"` + Name string `json:"Name" xml:"Name"` + Width string `json:"Width" xml:"Width"` + State string `json:"State" xml:"State"` + Dx string `json:"Dx" xml:"Dx"` + ReferPos string `json:"ReferPos" xml:"ReferPos"` + RatioRefer RatioRefer `json:"RatioRefer" xml:"RatioRefer"` + Timeline Timeline `json:"Timeline" xml:"Timeline"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_template_list_in_query_water_mark_template_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_template_list_in_query_water_mark_template_list.go new file mode 100644 index 0000000..806a9b3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_template_list_in_query_water_mark_template_list.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// WaterMarkTemplateListInQueryWaterMarkTemplateList is a nested struct in mts response +type WaterMarkTemplateListInQueryWaterMarkTemplateList struct { + WaterMarkTemplate []WaterMarkTemplate `json:"WaterMarkTemplate" xml:"WaterMarkTemplate"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_template_list_in_search_water_mark_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_template_list_in_search_water_mark_template.go new file mode 100644 index 0000000..a4a8d96 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_water_mark_template_list_in_search_water_mark_template.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// WaterMarkTemplateListInSearchWaterMarkTemplate is a nested struct in mts response +type WaterMarkTemplateListInSearchWaterMarkTemplate struct { + WaterMarkTemplate []WaterMarkTemplate `json:"WaterMarkTemplate" xml:"WaterMarkTemplate"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_webp.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_webp.go new file mode 100644 index 0000000..1720282 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/struct_webp.go @@ -0,0 +1,21 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Webp is a nested struct in mts response +type Webp struct { + Loop string `json:"Loop" xml:"Loop"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_analysis_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_analysis_job.go new file mode 100644 index 0000000..1412672 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_analysis_job.go @@ -0,0 +1,112 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitAnalysisJob invokes the mts.SubmitAnalysisJob API synchronously +// api document: https://help.aliyun.com/api/mts/submitanalysisjob.html +func (client *Client) SubmitAnalysisJob(request *SubmitAnalysisJobRequest) (response *SubmitAnalysisJobResponse, err error) { + response = CreateSubmitAnalysisJobResponse() + err = client.DoAction(request, response) + return +} + +// SubmitAnalysisJobWithChan invokes the mts.SubmitAnalysisJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitanalysisjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitAnalysisJobWithChan(request *SubmitAnalysisJobRequest) (<-chan *SubmitAnalysisJobResponse, <-chan error) { + responseChan := make(chan *SubmitAnalysisJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitAnalysisJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitAnalysisJobWithCallback invokes the mts.SubmitAnalysisJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitanalysisjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitAnalysisJobWithCallback(request *SubmitAnalysisJobRequest, callback func(response *SubmitAnalysisJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitAnalysisJobResponse + var err error + defer close(result) + response, err = client.SubmitAnalysisJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitAnalysisJobRequest is the request struct for api SubmitAnalysisJob +type SubmitAnalysisJobRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Input string `position:"Query" name:"Input"` + AnalysisConfig string `position:"Query" name:"AnalysisConfig"` + UserData string `position:"Query" name:"UserData"` + PipelineId string `position:"Query" name:"PipelineId"` + Priority string `position:"Query" name:"Priority"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SubmitAnalysisJobResponse is the response struct for api SubmitAnalysisJob +type SubmitAnalysisJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AnalysisJob AnalysisJob `json:"AnalysisJob" xml:"AnalysisJob"` +} + +// CreateSubmitAnalysisJobRequest creates a request to invoke SubmitAnalysisJob API +func CreateSubmitAnalysisJobRequest() (request *SubmitAnalysisJobRequest) { + request = &SubmitAnalysisJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SubmitAnalysisJob", "mts", "openAPI") + return +} + +// CreateSubmitAnalysisJobResponse creates a response to parse from SubmitAnalysisJob response +func CreateSubmitAnalysisJobResponse() (response *SubmitAnalysisJobResponse) { + response = &SubmitAnalysisJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_annotation_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_annotation_job.go new file mode 100644 index 0000000..12a6e45 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_annotation_job.go @@ -0,0 +1,111 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitAnnotationJob invokes the mts.SubmitAnnotationJob API synchronously +// api document: https://help.aliyun.com/api/mts/submitannotationjob.html +func (client *Client) SubmitAnnotationJob(request *SubmitAnnotationJobRequest) (response *SubmitAnnotationJobResponse, err error) { + response = CreateSubmitAnnotationJobResponse() + err = client.DoAction(request, response) + return +} + +// SubmitAnnotationJobWithChan invokes the mts.SubmitAnnotationJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitannotationjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitAnnotationJobWithChan(request *SubmitAnnotationJobRequest) (<-chan *SubmitAnnotationJobResponse, <-chan error) { + responseChan := make(chan *SubmitAnnotationJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitAnnotationJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitAnnotationJobWithCallback invokes the mts.SubmitAnnotationJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitannotationjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitAnnotationJobWithCallback(request *SubmitAnnotationJobRequest, callback func(response *SubmitAnnotationJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitAnnotationJobResponse + var err error + defer close(result) + response, err = client.SubmitAnnotationJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitAnnotationJobRequest is the request struct for api SubmitAnnotationJob +type SubmitAnnotationJobRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Input string `position:"Query" name:"Input"` + AnnotationConfig string `position:"Query" name:"AnnotationConfig"` + UserData string `position:"Query" name:"UserData"` + PipelineId string `position:"Query" name:"PipelineId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SubmitAnnotationJobResponse is the response struct for api SubmitAnnotationJob +type SubmitAnnotationJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateSubmitAnnotationJobRequest creates a request to invoke SubmitAnnotationJob API +func CreateSubmitAnnotationJobRequest() (request *SubmitAnnotationJobRequest) { + request = &SubmitAnnotationJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SubmitAnnotationJob", "mts", "openAPI") + return +} + +// CreateSubmitAnnotationJobResponse creates a response to parse from SubmitAnnotationJob response +func CreateSubmitAnnotationJobResponse() (response *SubmitAnnotationJobResponse) { + response = &SubmitAnnotationJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_asr_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_asr_job.go new file mode 100644 index 0000000..7d76348 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_asr_job.go @@ -0,0 +1,111 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitAsrJob invokes the mts.SubmitAsrJob API synchronously +// api document: https://help.aliyun.com/api/mts/submitasrjob.html +func (client *Client) SubmitAsrJob(request *SubmitAsrJobRequest) (response *SubmitAsrJobResponse, err error) { + response = CreateSubmitAsrJobResponse() + err = client.DoAction(request, response) + return +} + +// SubmitAsrJobWithChan invokes the mts.SubmitAsrJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitasrjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitAsrJobWithChan(request *SubmitAsrJobRequest) (<-chan *SubmitAsrJobResponse, <-chan error) { + responseChan := make(chan *SubmitAsrJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitAsrJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitAsrJobWithCallback invokes the mts.SubmitAsrJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitasrjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitAsrJobWithCallback(request *SubmitAsrJobRequest, callback func(response *SubmitAsrJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitAsrJobResponse + var err error + defer close(result) + response, err = client.SubmitAsrJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitAsrJobRequest is the request struct for api SubmitAsrJob +type SubmitAsrJobRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Input string `position:"Query" name:"Input"` + PipelineId string `position:"Query" name:"PipelineId"` + AsrConfig string `position:"Query" name:"AsrConfig"` + UserData string `position:"Query" name:"UserData"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SubmitAsrJobResponse is the response struct for api SubmitAsrJob +type SubmitAsrJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateSubmitAsrJobRequest creates a request to invoke SubmitAsrJob API +func CreateSubmitAsrJobRequest() (request *SubmitAsrJobRequest) { + request = &SubmitAsrJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SubmitAsrJob", "mts", "openAPI") + return +} + +// CreateSubmitAsrJobResponse creates a response to parse from SubmitAsrJob response +func CreateSubmitAsrJobResponse() (response *SubmitAsrJobResponse) { + response = &SubmitAsrJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_censor_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_censor_job.go new file mode 100644 index 0000000..1de435c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_censor_job.go @@ -0,0 +1,111 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitCensorJob invokes the mts.SubmitCensorJob API synchronously +// api document: https://help.aliyun.com/api/mts/submitcensorjob.html +func (client *Client) SubmitCensorJob(request *SubmitCensorJobRequest) (response *SubmitCensorJobResponse, err error) { + response = CreateSubmitCensorJobResponse() + err = client.DoAction(request, response) + return +} + +// SubmitCensorJobWithChan invokes the mts.SubmitCensorJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitcensorjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitCensorJobWithChan(request *SubmitCensorJobRequest) (<-chan *SubmitCensorJobResponse, <-chan error) { + responseChan := make(chan *SubmitCensorJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitCensorJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitCensorJobWithCallback invokes the mts.SubmitCensorJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitcensorjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitCensorJobWithCallback(request *SubmitCensorJobRequest, callback func(response *SubmitCensorJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitCensorJobResponse + var err error + defer close(result) + response, err = client.SubmitCensorJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitCensorJobRequest is the request struct for api SubmitCensorJob +type SubmitCensorJobRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Input string `position:"Query" name:"Input"` + PipelineId string `position:"Query" name:"PipelineId"` + CensorConfig string `position:"Query" name:"CensorConfig"` + UserData string `position:"Query" name:"UserData"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SubmitCensorJobResponse is the response struct for api SubmitCensorJob +type SubmitCensorJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateSubmitCensorJobRequest creates a request to invoke SubmitCensorJob API +func CreateSubmitCensorJobRequest() (request *SubmitCensorJobRequest) { + request = &SubmitCensorJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SubmitCensorJob", "mts", "openAPI") + return +} + +// CreateSubmitCensorJobResponse creates a response to parse from SubmitCensorJob response +func CreateSubmitCensorJobResponse() (response *SubmitCensorJobResponse) { + response = &SubmitCensorJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_cover_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_cover_job.go new file mode 100644 index 0000000..5cc346f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_cover_job.go @@ -0,0 +1,111 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitCoverJob invokes the mts.SubmitCoverJob API synchronously +// api document: https://help.aliyun.com/api/mts/submitcoverjob.html +func (client *Client) SubmitCoverJob(request *SubmitCoverJobRequest) (response *SubmitCoverJobResponse, err error) { + response = CreateSubmitCoverJobResponse() + err = client.DoAction(request, response) + return +} + +// SubmitCoverJobWithChan invokes the mts.SubmitCoverJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitcoverjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitCoverJobWithChan(request *SubmitCoverJobRequest) (<-chan *SubmitCoverJobResponse, <-chan error) { + responseChan := make(chan *SubmitCoverJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitCoverJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitCoverJobWithCallback invokes the mts.SubmitCoverJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitcoverjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitCoverJobWithCallback(request *SubmitCoverJobRequest, callback func(response *SubmitCoverJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitCoverJobResponse + var err error + defer close(result) + response, err = client.SubmitCoverJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitCoverJobRequest is the request struct for api SubmitCoverJob +type SubmitCoverJobRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Input string `position:"Query" name:"Input"` + CoverConfig string `position:"Query" name:"CoverConfig"` + UserData string `position:"Query" name:"UserData"` + PipelineId string `position:"Query" name:"PipelineId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SubmitCoverJobResponse is the response struct for api SubmitCoverJob +type SubmitCoverJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateSubmitCoverJobRequest creates a request to invoke SubmitCoverJob API +func CreateSubmitCoverJobRequest() (request *SubmitCoverJobRequest) { + request = &SubmitCoverJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SubmitCoverJob", "mts", "openAPI") + return +} + +// CreateSubmitCoverJobResponse creates a response to parse from SubmitCoverJob response +func CreateSubmitCoverJobResponse() (response *SubmitCoverJobResponse) { + response = &SubmitCoverJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_editing_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_editing_jobs.go new file mode 100644 index 0000000..07eee75 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_editing_jobs.go @@ -0,0 +1,112 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitEditingJobs invokes the mts.SubmitEditingJobs API synchronously +// api document: https://help.aliyun.com/api/mts/submiteditingjobs.html +func (client *Client) SubmitEditingJobs(request *SubmitEditingJobsRequest) (response *SubmitEditingJobsResponse, err error) { + response = CreateSubmitEditingJobsResponse() + err = client.DoAction(request, response) + return +} + +// SubmitEditingJobsWithChan invokes the mts.SubmitEditingJobs API asynchronously +// api document: https://help.aliyun.com/api/mts/submiteditingjobs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitEditingJobsWithChan(request *SubmitEditingJobsRequest) (<-chan *SubmitEditingJobsResponse, <-chan error) { + responseChan := make(chan *SubmitEditingJobsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitEditingJobs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitEditingJobsWithCallback invokes the mts.SubmitEditingJobs API asynchronously +// api document: https://help.aliyun.com/api/mts/submiteditingjobs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitEditingJobsWithCallback(request *SubmitEditingJobsRequest, callback func(response *SubmitEditingJobsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitEditingJobsResponse + var err error + defer close(result) + response, err = client.SubmitEditingJobs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitEditingJobsRequest is the request struct for api SubmitEditingJobs +type SubmitEditingJobsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + EditingInputs string `position:"Query" name:"EditingInputs"` + EditingJobOutputs string `position:"Query" name:"EditingJobOutputs"` + OutputBucket string `position:"Query" name:"OutputBucket"` + OutputLocation string `position:"Query" name:"OutputLocation"` + PipelineId string `position:"Query" name:"PipelineId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SubmitEditingJobsResponse is the response struct for api SubmitEditingJobs +type SubmitEditingJobsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobResultList JobResultListInSubmitEditingJobs `json:"JobResultList" xml:"JobResultList"` +} + +// CreateSubmitEditingJobsRequest creates a request to invoke SubmitEditingJobs API +func CreateSubmitEditingJobsRequest() (request *SubmitEditingJobsRequest) { + request = &SubmitEditingJobsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SubmitEditingJobs", "mts", "openAPI") + return +} + +// CreateSubmitEditingJobsResponse creates a response to parse from SubmitEditingJobs response +func CreateSubmitEditingJobsResponse() (response *SubmitEditingJobsResponse) { + response = &SubmitEditingJobsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_facerecog_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_facerecog_job.go new file mode 100644 index 0000000..ebebd60 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_facerecog_job.go @@ -0,0 +1,111 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitFacerecogJob invokes the mts.SubmitFacerecogJob API synchronously +// api document: https://help.aliyun.com/api/mts/submitfacerecogjob.html +func (client *Client) SubmitFacerecogJob(request *SubmitFacerecogJobRequest) (response *SubmitFacerecogJobResponse, err error) { + response = CreateSubmitFacerecogJobResponse() + err = client.DoAction(request, response) + return +} + +// SubmitFacerecogJobWithChan invokes the mts.SubmitFacerecogJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitfacerecogjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitFacerecogJobWithChan(request *SubmitFacerecogJobRequest) (<-chan *SubmitFacerecogJobResponse, <-chan error) { + responseChan := make(chan *SubmitFacerecogJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitFacerecogJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitFacerecogJobWithCallback invokes the mts.SubmitFacerecogJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitfacerecogjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitFacerecogJobWithCallback(request *SubmitFacerecogJobRequest, callback func(response *SubmitFacerecogJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitFacerecogJobResponse + var err error + defer close(result) + response, err = client.SubmitFacerecogJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitFacerecogJobRequest is the request struct for api SubmitFacerecogJob +type SubmitFacerecogJobRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Input string `position:"Query" name:"Input"` + FacerecogConfig string `position:"Query" name:"FacerecogConfig"` + UserData string `position:"Query" name:"UserData"` + PipelineId string `position:"Query" name:"PipelineId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SubmitFacerecogJobResponse is the response struct for api SubmitFacerecogJob +type SubmitFacerecogJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateSubmitFacerecogJobRequest creates a request to invoke SubmitFacerecogJob API +func CreateSubmitFacerecogJobRequest() (request *SubmitFacerecogJobRequest) { + request = &SubmitFacerecogJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SubmitFacerecogJob", "mts", "openAPI") + return +} + +// CreateSubmitFacerecogJobResponse creates a response to parse from SubmitFacerecogJob response +func CreateSubmitFacerecogJobResponse() (response *SubmitFacerecogJobResponse) { + response = &SubmitFacerecogJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_fp_shot_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_fp_shot_job.go new file mode 100644 index 0000000..cce5c68 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_fp_shot_job.go @@ -0,0 +1,111 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitFpShotJob invokes the mts.SubmitFpShotJob API synchronously +// api document: https://help.aliyun.com/api/mts/submitfpshotjob.html +func (client *Client) SubmitFpShotJob(request *SubmitFpShotJobRequest) (response *SubmitFpShotJobResponse, err error) { + response = CreateSubmitFpShotJobResponse() + err = client.DoAction(request, response) + return +} + +// SubmitFpShotJobWithChan invokes the mts.SubmitFpShotJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitfpshotjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitFpShotJobWithChan(request *SubmitFpShotJobRequest) (<-chan *SubmitFpShotJobResponse, <-chan error) { + responseChan := make(chan *SubmitFpShotJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitFpShotJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitFpShotJobWithCallback invokes the mts.SubmitFpShotJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitfpshotjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitFpShotJobWithCallback(request *SubmitFpShotJobRequest, callback func(response *SubmitFpShotJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitFpShotJobResponse + var err error + defer close(result) + response, err = client.SubmitFpShotJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitFpShotJobRequest is the request struct for api SubmitFpShotJob +type SubmitFpShotJobRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Input string `position:"Query" name:"Input"` + PipelineId string `position:"Query" name:"PipelineId"` + FpShotConfig string `position:"Query" name:"FpShotConfig"` + UserData string `position:"Query" name:"UserData"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SubmitFpShotJobResponse is the response struct for api SubmitFpShotJob +type SubmitFpShotJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateSubmitFpShotJobRequest creates a request to invoke SubmitFpShotJob API +func CreateSubmitFpShotJobRequest() (request *SubmitFpShotJobRequest) { + request = &SubmitFpShotJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SubmitFpShotJob", "mts", "openAPI") + return +} + +// CreateSubmitFpShotJobResponse creates a response to parse from SubmitFpShotJob response +func CreateSubmitFpShotJobResponse() (response *SubmitFpShotJobResponse) { + response = &SubmitFpShotJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_jobs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_jobs.go new file mode 100644 index 0000000..b8f2f31 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_jobs.go @@ -0,0 +1,112 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitJobs invokes the mts.SubmitJobs API synchronously +// api document: https://help.aliyun.com/api/mts/submitjobs.html +func (client *Client) SubmitJobs(request *SubmitJobsRequest) (response *SubmitJobsResponse, err error) { + response = CreateSubmitJobsResponse() + err = client.DoAction(request, response) + return +} + +// SubmitJobsWithChan invokes the mts.SubmitJobs API asynchronously +// api document: https://help.aliyun.com/api/mts/submitjobs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitJobsWithChan(request *SubmitJobsRequest) (<-chan *SubmitJobsResponse, <-chan error) { + responseChan := make(chan *SubmitJobsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitJobs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitJobsWithCallback invokes the mts.SubmitJobs API asynchronously +// api document: https://help.aliyun.com/api/mts/submitjobs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitJobsWithCallback(request *SubmitJobsRequest, callback func(response *SubmitJobsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitJobsResponse + var err error + defer close(result) + response, err = client.SubmitJobs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitJobsRequest is the request struct for api SubmitJobs +type SubmitJobsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Input string `position:"Query" name:"Input"` + Outputs string `position:"Query" name:"Outputs"` + OutputBucket string `position:"Query" name:"OutputBucket"` + OutputLocation string `position:"Query" name:"OutputLocation"` + PipelineId string `position:"Query" name:"PipelineId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SubmitJobsResponse is the response struct for api SubmitJobs +type SubmitJobsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobResultList JobResultListInSubmitJobs `json:"JobResultList" xml:"JobResultList"` +} + +// CreateSubmitJobsRequest creates a request to invoke SubmitJobs API +func CreateSubmitJobsRequest() (request *SubmitJobsRequest) { + request = &SubmitJobsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SubmitJobs", "mts", "openAPI") + return +} + +// CreateSubmitJobsResponse creates a response to parse from SubmitJobs response +func CreateSubmitJobsResponse() (response *SubmitJobsResponse) { + response = &SubmitJobsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_media_detail_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_media_detail_job.go new file mode 100644 index 0000000..b02bea7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_media_detail_job.go @@ -0,0 +1,111 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitMediaDetailJob invokes the mts.SubmitMediaDetailJob API synchronously +// api document: https://help.aliyun.com/api/mts/submitmediadetailjob.html +func (client *Client) SubmitMediaDetailJob(request *SubmitMediaDetailJobRequest) (response *SubmitMediaDetailJobResponse, err error) { + response = CreateSubmitMediaDetailJobResponse() + err = client.DoAction(request, response) + return +} + +// SubmitMediaDetailJobWithChan invokes the mts.SubmitMediaDetailJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitmediadetailjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitMediaDetailJobWithChan(request *SubmitMediaDetailJobRequest) (<-chan *SubmitMediaDetailJobResponse, <-chan error) { + responseChan := make(chan *SubmitMediaDetailJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitMediaDetailJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitMediaDetailJobWithCallback invokes the mts.SubmitMediaDetailJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitmediadetailjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitMediaDetailJobWithCallback(request *SubmitMediaDetailJobRequest, callback func(response *SubmitMediaDetailJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitMediaDetailJobResponse + var err error + defer close(result) + response, err = client.SubmitMediaDetailJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitMediaDetailJobRequest is the request struct for api SubmitMediaDetailJob +type SubmitMediaDetailJobRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Input string `position:"Query" name:"Input"` + PipelineId string `position:"Query" name:"PipelineId"` + MediaDetailConfig string `position:"Query" name:"MediaDetailConfig"` + UserData string `position:"Query" name:"UserData"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SubmitMediaDetailJobResponse is the response struct for api SubmitMediaDetailJob +type SubmitMediaDetailJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateSubmitMediaDetailJobRequest creates a request to invoke SubmitMediaDetailJob API +func CreateSubmitMediaDetailJobRequest() (request *SubmitMediaDetailJobRequest) { + request = &SubmitMediaDetailJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SubmitMediaDetailJob", "mts", "openAPI") + return +} + +// CreateSubmitMediaDetailJobResponse creates a response to parse from SubmitMediaDetailJob response +func CreateSubmitMediaDetailJobResponse() (response *SubmitMediaDetailJobResponse) { + response = &SubmitMediaDetailJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_media_info_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_media_info_job.go new file mode 100644 index 0000000..8c61ab5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_media_info_job.go @@ -0,0 +1,110 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitMediaInfoJob invokes the mts.SubmitMediaInfoJob API synchronously +// api document: https://help.aliyun.com/api/mts/submitmediainfojob.html +func (client *Client) SubmitMediaInfoJob(request *SubmitMediaInfoJobRequest) (response *SubmitMediaInfoJobResponse, err error) { + response = CreateSubmitMediaInfoJobResponse() + err = client.DoAction(request, response) + return +} + +// SubmitMediaInfoJobWithChan invokes the mts.SubmitMediaInfoJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitmediainfojob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitMediaInfoJobWithChan(request *SubmitMediaInfoJobRequest) (<-chan *SubmitMediaInfoJobResponse, <-chan error) { + responseChan := make(chan *SubmitMediaInfoJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitMediaInfoJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitMediaInfoJobWithCallback invokes the mts.SubmitMediaInfoJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitmediainfojob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitMediaInfoJobWithCallback(request *SubmitMediaInfoJobRequest, callback func(response *SubmitMediaInfoJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitMediaInfoJobResponse + var err error + defer close(result) + response, err = client.SubmitMediaInfoJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitMediaInfoJobRequest is the request struct for api SubmitMediaInfoJob +type SubmitMediaInfoJobRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Input string `position:"Query" name:"Input"` + UserData string `position:"Query" name:"UserData"` + PipelineId string `position:"Query" name:"PipelineId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SubmitMediaInfoJobResponse is the response struct for api SubmitMediaInfoJob +type SubmitMediaInfoJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MediaInfoJob MediaInfoJob `json:"MediaInfoJob" xml:"MediaInfoJob"` +} + +// CreateSubmitMediaInfoJobRequest creates a request to invoke SubmitMediaInfoJob API +func CreateSubmitMediaInfoJobRequest() (request *SubmitMediaInfoJobRequest) { + request = &SubmitMediaInfoJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SubmitMediaInfoJob", "mts", "openAPI") + return +} + +// CreateSubmitMediaInfoJobResponse creates a response to parse from SubmitMediaInfoJob response +func CreateSubmitMediaInfoJobResponse() (response *SubmitMediaInfoJobResponse) { + response = &SubmitMediaInfoJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_porn_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_porn_job.go new file mode 100644 index 0000000..5272035 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_porn_job.go @@ -0,0 +1,111 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitPornJob invokes the mts.SubmitPornJob API synchronously +// api document: https://help.aliyun.com/api/mts/submitpornjob.html +func (client *Client) SubmitPornJob(request *SubmitPornJobRequest) (response *SubmitPornJobResponse, err error) { + response = CreateSubmitPornJobResponse() + err = client.DoAction(request, response) + return +} + +// SubmitPornJobWithChan invokes the mts.SubmitPornJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitpornjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitPornJobWithChan(request *SubmitPornJobRequest) (<-chan *SubmitPornJobResponse, <-chan error) { + responseChan := make(chan *SubmitPornJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitPornJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitPornJobWithCallback invokes the mts.SubmitPornJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitpornjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitPornJobWithCallback(request *SubmitPornJobRequest, callback func(response *SubmitPornJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitPornJobResponse + var err error + defer close(result) + response, err = client.SubmitPornJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitPornJobRequest is the request struct for api SubmitPornJob +type SubmitPornJobRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Input string `position:"Query" name:"Input"` + PipelineId string `position:"Query" name:"PipelineId"` + PornConfig string `position:"Query" name:"PornConfig"` + UserData string `position:"Query" name:"UserData"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SubmitPornJobResponse is the response struct for api SubmitPornJob +type SubmitPornJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateSubmitPornJobRequest creates a request to invoke SubmitPornJob API +func CreateSubmitPornJobRequest() (request *SubmitPornJobRequest) { + request = &SubmitPornJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SubmitPornJob", "mts", "openAPI") + return +} + +// CreateSubmitPornJobResponse creates a response to parse from SubmitPornJob response +func CreateSubmitPornJobResponse() (response *SubmitPornJobResponse) { + response = &SubmitPornJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_snapshot_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_snapshot_job.go new file mode 100644 index 0000000..c1b61e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_snapshot_job.go @@ -0,0 +1,111 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitSnapshotJob invokes the mts.SubmitSnapshotJob API synchronously +// api document: https://help.aliyun.com/api/mts/submitsnapshotjob.html +func (client *Client) SubmitSnapshotJob(request *SubmitSnapshotJobRequest) (response *SubmitSnapshotJobResponse, err error) { + response = CreateSubmitSnapshotJobResponse() + err = client.DoAction(request, response) + return +} + +// SubmitSnapshotJobWithChan invokes the mts.SubmitSnapshotJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitsnapshotjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitSnapshotJobWithChan(request *SubmitSnapshotJobRequest) (<-chan *SubmitSnapshotJobResponse, <-chan error) { + responseChan := make(chan *SubmitSnapshotJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitSnapshotJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitSnapshotJobWithCallback invokes the mts.SubmitSnapshotJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitsnapshotjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitSnapshotJobWithCallback(request *SubmitSnapshotJobRequest, callback func(response *SubmitSnapshotJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitSnapshotJobResponse + var err error + defer close(result) + response, err = client.SubmitSnapshotJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitSnapshotJobRequest is the request struct for api SubmitSnapshotJob +type SubmitSnapshotJobRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Input string `position:"Query" name:"Input"` + SnapshotConfig string `position:"Query" name:"SnapshotConfig"` + UserData string `position:"Query" name:"UserData"` + PipelineId string `position:"Query" name:"PipelineId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SubmitSnapshotJobResponse is the response struct for api SubmitSnapshotJob +type SubmitSnapshotJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SnapshotJob SnapshotJob `json:"SnapshotJob" xml:"SnapshotJob"` +} + +// CreateSubmitSnapshotJobRequest creates a request to invoke SubmitSnapshotJob API +func CreateSubmitSnapshotJobRequest() (request *SubmitSnapshotJobRequest) { + request = &SubmitSnapshotJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SubmitSnapshotJob", "mts", "openAPI") + return +} + +// CreateSubmitSnapshotJobResponse creates a response to parse from SubmitSnapshotJob response +func CreateSubmitSnapshotJobResponse() (response *SubmitSnapshotJobResponse) { + response = &SubmitSnapshotJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_tag_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_tag_job.go new file mode 100644 index 0000000..435442a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_tag_job.go @@ -0,0 +1,111 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitTagJob invokes the mts.SubmitTagJob API synchronously +// api document: https://help.aliyun.com/api/mts/submittagjob.html +func (client *Client) SubmitTagJob(request *SubmitTagJobRequest) (response *SubmitTagJobResponse, err error) { + response = CreateSubmitTagJobResponse() + err = client.DoAction(request, response) + return +} + +// SubmitTagJobWithChan invokes the mts.SubmitTagJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submittagjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitTagJobWithChan(request *SubmitTagJobRequest) (<-chan *SubmitTagJobResponse, <-chan error) { + responseChan := make(chan *SubmitTagJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitTagJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitTagJobWithCallback invokes the mts.SubmitTagJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submittagjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitTagJobWithCallback(request *SubmitTagJobRequest, callback func(response *SubmitTagJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitTagJobResponse + var err error + defer close(result) + response, err = client.SubmitTagJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitTagJobRequest is the request struct for api SubmitTagJob +type SubmitTagJobRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Input string `position:"Query" name:"Input"` + TagConfig string `position:"Query" name:"TagConfig"` + UserData string `position:"Query" name:"UserData"` + PipelineId string `position:"Query" name:"PipelineId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SubmitTagJobResponse is the response struct for api SubmitTagJob +type SubmitTagJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateSubmitTagJobRequest creates a request to invoke SubmitTagJob API +func CreateSubmitTagJobRequest() (request *SubmitTagJobRequest) { + request = &SubmitTagJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SubmitTagJob", "mts", "openAPI") + return +} + +// CreateSubmitTagJobResponse creates a response to parse from SubmitTagJob response +func CreateSubmitTagJobResponse() (response *SubmitTagJobResponse) { + response = &SubmitTagJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_terrorism_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_terrorism_job.go new file mode 100644 index 0000000..bd2e96f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_terrorism_job.go @@ -0,0 +1,111 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitTerrorismJob invokes the mts.SubmitTerrorismJob API synchronously +// api document: https://help.aliyun.com/api/mts/submitterrorismjob.html +func (client *Client) SubmitTerrorismJob(request *SubmitTerrorismJobRequest) (response *SubmitTerrorismJobResponse, err error) { + response = CreateSubmitTerrorismJobResponse() + err = client.DoAction(request, response) + return +} + +// SubmitTerrorismJobWithChan invokes the mts.SubmitTerrorismJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitterrorismjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitTerrorismJobWithChan(request *SubmitTerrorismJobRequest) (<-chan *SubmitTerrorismJobResponse, <-chan error) { + responseChan := make(chan *SubmitTerrorismJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitTerrorismJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitTerrorismJobWithCallback invokes the mts.SubmitTerrorismJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitterrorismjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitTerrorismJobWithCallback(request *SubmitTerrorismJobRequest, callback func(response *SubmitTerrorismJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitTerrorismJobResponse + var err error + defer close(result) + response, err = client.SubmitTerrorismJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitTerrorismJobRequest is the request struct for api SubmitTerrorismJob +type SubmitTerrorismJobRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Input string `position:"Query" name:"Input"` + PipelineId string `position:"Query" name:"PipelineId"` + TerrorismConfig string `position:"Query" name:"TerrorismConfig"` + UserData string `position:"Query" name:"UserData"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SubmitTerrorismJobResponse is the response struct for api SubmitTerrorismJob +type SubmitTerrorismJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateSubmitTerrorismJobRequest creates a request to invoke SubmitTerrorismJob API +func CreateSubmitTerrorismJobRequest() (request *SubmitTerrorismJobRequest) { + request = &SubmitTerrorismJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SubmitTerrorismJob", "mts", "openAPI") + return +} + +// CreateSubmitTerrorismJobResponse creates a response to parse from SubmitTerrorismJob response +func CreateSubmitTerrorismJobResponse() (response *SubmitTerrorismJobResponse) { + response = &SubmitTerrorismJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_video_gif_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_video_gif_job.go new file mode 100644 index 0000000..c7cc633 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_video_gif_job.go @@ -0,0 +1,111 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitVideoGifJob invokes the mts.SubmitVideoGifJob API synchronously +// api document: https://help.aliyun.com/api/mts/submitvideogifjob.html +func (client *Client) SubmitVideoGifJob(request *SubmitVideoGifJobRequest) (response *SubmitVideoGifJobResponse, err error) { + response = CreateSubmitVideoGifJobResponse() + err = client.DoAction(request, response) + return +} + +// SubmitVideoGifJobWithChan invokes the mts.SubmitVideoGifJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitvideogifjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitVideoGifJobWithChan(request *SubmitVideoGifJobRequest) (<-chan *SubmitVideoGifJobResponse, <-chan error) { + responseChan := make(chan *SubmitVideoGifJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitVideoGifJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitVideoGifJobWithCallback invokes the mts.SubmitVideoGifJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitvideogifjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitVideoGifJobWithCallback(request *SubmitVideoGifJobRequest, callback func(response *SubmitVideoGifJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitVideoGifJobResponse + var err error + defer close(result) + response, err = client.SubmitVideoGifJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitVideoGifJobRequest is the request struct for api SubmitVideoGifJob +type SubmitVideoGifJobRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Input string `position:"Query" name:"Input"` + PipelineId string `position:"Query" name:"PipelineId"` + VideoGifConfig string `position:"Query" name:"VideoGifConfig"` + UserData string `position:"Query" name:"UserData"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SubmitVideoGifJobResponse is the response struct for api SubmitVideoGifJob +type SubmitVideoGifJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateSubmitVideoGifJobRequest creates a request to invoke SubmitVideoGifJob API +func CreateSubmitVideoGifJobRequest() (request *SubmitVideoGifJobRequest) { + request = &SubmitVideoGifJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SubmitVideoGifJob", "mts", "openAPI") + return +} + +// CreateSubmitVideoGifJobResponse creates a response to parse from SubmitVideoGifJob response +func CreateSubmitVideoGifJobResponse() (response *SubmitVideoGifJobResponse) { + response = &SubmitVideoGifJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_video_split_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_video_split_job.go new file mode 100644 index 0000000..5cf3771 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_video_split_job.go @@ -0,0 +1,111 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitVideoSplitJob invokes the mts.SubmitVideoSplitJob API synchronously +// api document: https://help.aliyun.com/api/mts/submitvideosplitjob.html +func (client *Client) SubmitVideoSplitJob(request *SubmitVideoSplitJobRequest) (response *SubmitVideoSplitJobResponse, err error) { + response = CreateSubmitVideoSplitJobResponse() + err = client.DoAction(request, response) + return +} + +// SubmitVideoSplitJobWithChan invokes the mts.SubmitVideoSplitJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitvideosplitjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitVideoSplitJobWithChan(request *SubmitVideoSplitJobRequest) (<-chan *SubmitVideoSplitJobResponse, <-chan error) { + responseChan := make(chan *SubmitVideoSplitJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitVideoSplitJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitVideoSplitJobWithCallback invokes the mts.SubmitVideoSplitJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitvideosplitjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitVideoSplitJobWithCallback(request *SubmitVideoSplitJobRequest, callback func(response *SubmitVideoSplitJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitVideoSplitJobResponse + var err error + defer close(result) + response, err = client.SubmitVideoSplitJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitVideoSplitJobRequest is the request struct for api SubmitVideoSplitJob +type SubmitVideoSplitJobRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Input string `position:"Query" name:"Input"` + PipelineId string `position:"Query" name:"PipelineId"` + VideoSplitConfig string `position:"Query" name:"VideoSplitConfig"` + UserData string `position:"Query" name:"UserData"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SubmitVideoSplitJobResponse is the response struct for api SubmitVideoSplitJob +type SubmitVideoSplitJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateSubmitVideoSplitJobRequest creates a request to invoke SubmitVideoSplitJob API +func CreateSubmitVideoSplitJobRequest() (request *SubmitVideoSplitJobRequest) { + request = &SubmitVideoSplitJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SubmitVideoSplitJob", "mts", "openAPI") + return +} + +// CreateSubmitVideoSplitJobResponse creates a response to parse from SubmitVideoSplitJob response +func CreateSubmitVideoSplitJobResponse() (response *SubmitVideoSplitJobResponse) { + response = &SubmitVideoSplitJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_video_summary_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_video_summary_job.go new file mode 100644 index 0000000..a597b60 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/submit_video_summary_job.go @@ -0,0 +1,111 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitVideoSummaryJob invokes the mts.SubmitVideoSummaryJob API synchronously +// api document: https://help.aliyun.com/api/mts/submitvideosummaryjob.html +func (client *Client) SubmitVideoSummaryJob(request *SubmitVideoSummaryJobRequest) (response *SubmitVideoSummaryJobResponse, err error) { + response = CreateSubmitVideoSummaryJobResponse() + err = client.DoAction(request, response) + return +} + +// SubmitVideoSummaryJobWithChan invokes the mts.SubmitVideoSummaryJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitvideosummaryjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitVideoSummaryJobWithChan(request *SubmitVideoSummaryJobRequest) (<-chan *SubmitVideoSummaryJobResponse, <-chan error) { + responseChan := make(chan *SubmitVideoSummaryJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitVideoSummaryJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitVideoSummaryJobWithCallback invokes the mts.SubmitVideoSummaryJob API asynchronously +// api document: https://help.aliyun.com/api/mts/submitvideosummaryjob.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SubmitVideoSummaryJobWithCallback(request *SubmitVideoSummaryJobRequest, callback func(response *SubmitVideoSummaryJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitVideoSummaryJobResponse + var err error + defer close(result) + response, err = client.SubmitVideoSummaryJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitVideoSummaryJobRequest is the request struct for api SubmitVideoSummaryJob +type SubmitVideoSummaryJobRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Input string `position:"Query" name:"Input"` + PipelineId string `position:"Query" name:"PipelineId"` + VideoSummaryConfig string `position:"Query" name:"VideoSummaryConfig"` + UserData string `position:"Query" name:"UserData"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SubmitVideoSummaryJobResponse is the response struct for api SubmitVideoSummaryJob +type SubmitVideoSummaryJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateSubmitVideoSummaryJobRequest creates a request to invoke SubmitVideoSummaryJob API +func CreateSubmitVideoSummaryJobRequest() (request *SubmitVideoSummaryJobRequest) { + request = &SubmitVideoSummaryJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "SubmitVideoSummaryJob", "mts", "openAPI") + return +} + +// CreateSubmitVideoSummaryJobResponse creates a response to parse from SubmitVideoSummaryJob response +func CreateSubmitVideoSummaryJobResponse() (response *SubmitVideoSummaryJobResponse) { + response = &SubmitVideoSummaryJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/unbind_input_bucket.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/unbind_input_bucket.go new file mode 100644 index 0000000..bc1cb04 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/unbind_input_bucket.go @@ -0,0 +1,108 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UnbindInputBucket invokes the mts.UnbindInputBucket API synchronously +// api document: https://help.aliyun.com/api/mts/unbindinputbucket.html +func (client *Client) UnbindInputBucket(request *UnbindInputBucketRequest) (response *UnbindInputBucketResponse, err error) { + response = CreateUnbindInputBucketResponse() + err = client.DoAction(request, response) + return +} + +// UnbindInputBucketWithChan invokes the mts.UnbindInputBucket API asynchronously +// api document: https://help.aliyun.com/api/mts/unbindinputbucket.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnbindInputBucketWithChan(request *UnbindInputBucketRequest) (<-chan *UnbindInputBucketResponse, <-chan error) { + responseChan := make(chan *UnbindInputBucketResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UnbindInputBucket(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UnbindInputBucketWithCallback invokes the mts.UnbindInputBucket API asynchronously +// api document: https://help.aliyun.com/api/mts/unbindinputbucket.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnbindInputBucketWithCallback(request *UnbindInputBucketRequest, callback func(response *UnbindInputBucketResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UnbindInputBucketResponse + var err error + defer close(result) + response, err = client.UnbindInputBucket(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UnbindInputBucketRequest is the request struct for api UnbindInputBucket +type UnbindInputBucketRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Bucket string `position:"Query" name:"Bucket"` + RoleArn string `position:"Query" name:"RoleArn"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// UnbindInputBucketResponse is the response struct for api UnbindInputBucket +type UnbindInputBucketResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUnbindInputBucketRequest creates a request to invoke UnbindInputBucket API +func CreateUnbindInputBucketRequest() (request *UnbindInputBucketRequest) { + request = &UnbindInputBucketRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "UnbindInputBucket", "mts", "openAPI") + return +} + +// CreateUnbindInputBucketResponse creates a response to parse from UnbindInputBucket response +func CreateUnbindInputBucketResponse() (response *UnbindInputBucketResponse) { + response = &UnbindInputBucketResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/unbind_output_bucket.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/unbind_output_bucket.go new file mode 100644 index 0000000..8335e47 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/unbind_output_bucket.go @@ -0,0 +1,107 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UnbindOutputBucket invokes the mts.UnbindOutputBucket API synchronously +// api document: https://help.aliyun.com/api/mts/unbindoutputbucket.html +func (client *Client) UnbindOutputBucket(request *UnbindOutputBucketRequest) (response *UnbindOutputBucketResponse, err error) { + response = CreateUnbindOutputBucketResponse() + err = client.DoAction(request, response) + return +} + +// UnbindOutputBucketWithChan invokes the mts.UnbindOutputBucket API asynchronously +// api document: https://help.aliyun.com/api/mts/unbindoutputbucket.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnbindOutputBucketWithChan(request *UnbindOutputBucketRequest) (<-chan *UnbindOutputBucketResponse, <-chan error) { + responseChan := make(chan *UnbindOutputBucketResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UnbindOutputBucket(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UnbindOutputBucketWithCallback invokes the mts.UnbindOutputBucket API asynchronously +// api document: https://help.aliyun.com/api/mts/unbindoutputbucket.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnbindOutputBucketWithCallback(request *UnbindOutputBucketRequest, callback func(response *UnbindOutputBucketResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UnbindOutputBucketResponse + var err error + defer close(result) + response, err = client.UnbindOutputBucket(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UnbindOutputBucketRequest is the request struct for api UnbindOutputBucket +type UnbindOutputBucketRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Bucket string `position:"Query" name:"Bucket"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// UnbindOutputBucketResponse is the response struct for api UnbindOutputBucket +type UnbindOutputBucketResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUnbindOutputBucketRequest creates a request to invoke UnbindOutputBucket API +func CreateUnbindOutputBucketRequest() (request *UnbindOutputBucketRequest) { + request = &UnbindOutputBucketRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "UnbindOutputBucket", "mts", "openAPI") + return +} + +// CreateUnbindOutputBucketResponse creates a response to parse from UnbindOutputBucket response +func CreateUnbindOutputBucketResponse() (response *UnbindOutputBucketResponse) { + response = &UnbindOutputBucketResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_asr_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_asr_pipeline.go new file mode 100644 index 0000000..065b7ef --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_asr_pipeline.go @@ -0,0 +1,112 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateAsrPipeline invokes the mts.UpdateAsrPipeline API synchronously +// api document: https://help.aliyun.com/api/mts/updateasrpipeline.html +func (client *Client) UpdateAsrPipeline(request *UpdateAsrPipelineRequest) (response *UpdateAsrPipelineResponse, err error) { + response = CreateUpdateAsrPipelineResponse() + err = client.DoAction(request, response) + return +} + +// UpdateAsrPipelineWithChan invokes the mts.UpdateAsrPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/updateasrpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateAsrPipelineWithChan(request *UpdateAsrPipelineRequest) (<-chan *UpdateAsrPipelineResponse, <-chan error) { + responseChan := make(chan *UpdateAsrPipelineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateAsrPipeline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateAsrPipelineWithCallback invokes the mts.UpdateAsrPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/updateasrpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateAsrPipelineWithCallback(request *UpdateAsrPipelineRequest, callback func(response *UpdateAsrPipelineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateAsrPipelineResponse + var err error + defer close(result) + response, err = client.UpdateAsrPipeline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateAsrPipelineRequest is the request struct for api UpdateAsrPipeline +type UpdateAsrPipelineRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PipelineId string `position:"Query" name:"PipelineId"` + Name string `position:"Query" name:"Name"` + State string `position:"Query" name:"State"` + Priority requests.Integer `position:"Query" name:"Priority"` + NotifyConfig string `position:"Query" name:"NotifyConfig"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// UpdateAsrPipelineResponse is the response struct for api UpdateAsrPipeline +type UpdateAsrPipelineResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Pipeline Pipeline `json:"Pipeline" xml:"Pipeline"` +} + +// CreateUpdateAsrPipelineRequest creates a request to invoke UpdateAsrPipeline API +func CreateUpdateAsrPipelineRequest() (request *UpdateAsrPipelineRequest) { + request = &UpdateAsrPipelineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "UpdateAsrPipeline", "mts", "openAPI") + return +} + +// CreateUpdateAsrPipelineResponse creates a response to parse from UpdateAsrPipeline response +func CreateUpdateAsrPipelineResponse() (response *UpdateAsrPipelineResponse) { + response = &UpdateAsrPipelineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_category_name.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_category_name.go new file mode 100644 index 0000000..c30c085 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_category_name.go @@ -0,0 +1,108 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateCategoryName invokes the mts.UpdateCategoryName API synchronously +// api document: https://help.aliyun.com/api/mts/updatecategoryname.html +func (client *Client) UpdateCategoryName(request *UpdateCategoryNameRequest) (response *UpdateCategoryNameResponse, err error) { + response = CreateUpdateCategoryNameResponse() + err = client.DoAction(request, response) + return +} + +// UpdateCategoryNameWithChan invokes the mts.UpdateCategoryName API asynchronously +// api document: https://help.aliyun.com/api/mts/updatecategoryname.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateCategoryNameWithChan(request *UpdateCategoryNameRequest) (<-chan *UpdateCategoryNameResponse, <-chan error) { + responseChan := make(chan *UpdateCategoryNameResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateCategoryName(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateCategoryNameWithCallback invokes the mts.UpdateCategoryName API asynchronously +// api document: https://help.aliyun.com/api/mts/updatecategoryname.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateCategoryNameWithCallback(request *UpdateCategoryNameRequest, callback func(response *UpdateCategoryNameResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateCategoryNameResponse + var err error + defer close(result) + response, err = client.UpdateCategoryName(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateCategoryNameRequest is the request struct for api UpdateCategoryName +type UpdateCategoryNameRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CateId string `position:"Query" name:"CateId"` + CateName string `position:"Query" name:"CateName"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// UpdateCategoryNameResponse is the response struct for api UpdateCategoryName +type UpdateCategoryNameResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateCategoryNameRequest creates a request to invoke UpdateCategoryName API +func CreateUpdateCategoryNameRequest() (request *UpdateCategoryNameRequest) { + request = &UpdateCategoryNameRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "UpdateCategoryName", "mts", "openAPI") + return +} + +// CreateUpdateCategoryNameResponse creates a response to parse from UpdateCategoryName response +func CreateUpdateCategoryNameResponse() (response *UpdateCategoryNameResponse) { + response = &UpdateCategoryNameResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_censor_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_censor_pipeline.go new file mode 100644 index 0000000..14b7e5b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_censor_pipeline.go @@ -0,0 +1,112 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateCensorPipeline invokes the mts.UpdateCensorPipeline API synchronously +// api document: https://help.aliyun.com/api/mts/updatecensorpipeline.html +func (client *Client) UpdateCensorPipeline(request *UpdateCensorPipelineRequest) (response *UpdateCensorPipelineResponse, err error) { + response = CreateUpdateCensorPipelineResponse() + err = client.DoAction(request, response) + return +} + +// UpdateCensorPipelineWithChan invokes the mts.UpdateCensorPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/updatecensorpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateCensorPipelineWithChan(request *UpdateCensorPipelineRequest) (<-chan *UpdateCensorPipelineResponse, <-chan error) { + responseChan := make(chan *UpdateCensorPipelineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateCensorPipeline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateCensorPipelineWithCallback invokes the mts.UpdateCensorPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/updatecensorpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateCensorPipelineWithCallback(request *UpdateCensorPipelineRequest, callback func(response *UpdateCensorPipelineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateCensorPipelineResponse + var err error + defer close(result) + response, err = client.UpdateCensorPipeline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateCensorPipelineRequest is the request struct for api UpdateCensorPipeline +type UpdateCensorPipelineRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PipelineId string `position:"Query" name:"PipelineId"` + Name string `position:"Query" name:"Name"` + State string `position:"Query" name:"State"` + Priority requests.Integer `position:"Query" name:"Priority"` + NotifyConfig string `position:"Query" name:"NotifyConfig"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// UpdateCensorPipelineResponse is the response struct for api UpdateCensorPipeline +type UpdateCensorPipelineResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Pipeline Pipeline `json:"Pipeline" xml:"Pipeline"` +} + +// CreateUpdateCensorPipelineRequest creates a request to invoke UpdateCensorPipeline API +func CreateUpdateCensorPipelineRequest() (request *UpdateCensorPipelineRequest) { + request = &UpdateCensorPipelineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "UpdateCensorPipeline", "mts", "openAPI") + return +} + +// CreateUpdateCensorPipelineResponse creates a response to parse from UpdateCensorPipeline response +func CreateUpdateCensorPipelineResponse() (response *UpdateCensorPipelineResponse) { + response = &UpdateCensorPipelineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_cover_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_cover_pipeline.go new file mode 100644 index 0000000..0fbc663 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_cover_pipeline.go @@ -0,0 +1,113 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateCoverPipeline invokes the mts.UpdateCoverPipeline API synchronously +// api document: https://help.aliyun.com/api/mts/updatecoverpipeline.html +func (client *Client) UpdateCoverPipeline(request *UpdateCoverPipelineRequest) (response *UpdateCoverPipelineResponse, err error) { + response = CreateUpdateCoverPipelineResponse() + err = client.DoAction(request, response) + return +} + +// UpdateCoverPipelineWithChan invokes the mts.UpdateCoverPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/updatecoverpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateCoverPipelineWithChan(request *UpdateCoverPipelineRequest) (<-chan *UpdateCoverPipelineResponse, <-chan error) { + responseChan := make(chan *UpdateCoverPipelineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateCoverPipeline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateCoverPipelineWithCallback invokes the mts.UpdateCoverPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/updatecoverpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateCoverPipelineWithCallback(request *UpdateCoverPipelineRequest, callback func(response *UpdateCoverPipelineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateCoverPipelineResponse + var err error + defer close(result) + response, err = client.UpdateCoverPipeline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateCoverPipelineRequest is the request struct for api UpdateCoverPipeline +type UpdateCoverPipelineRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PipelineId string `position:"Query" name:"PipelineId"` + Name string `position:"Query" name:"Name"` + State string `position:"Query" name:"State"` + Priority requests.Integer `position:"Query" name:"Priority"` + NotifyConfig string `position:"Query" name:"NotifyConfig"` + Role string `position:"Query" name:"Role"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// UpdateCoverPipelineResponse is the response struct for api UpdateCoverPipeline +type UpdateCoverPipelineResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Pipeline Pipeline `json:"Pipeline" xml:"Pipeline"` +} + +// CreateUpdateCoverPipelineRequest creates a request to invoke UpdateCoverPipeline API +func CreateUpdateCoverPipelineRequest() (request *UpdateCoverPipelineRequest) { + request = &UpdateCoverPipelineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "UpdateCoverPipeline", "mts", "openAPI") + return +} + +// CreateUpdateCoverPipelineResponse creates a response to parse from UpdateCoverPipeline response +func CreateUpdateCoverPipelineResponse() (response *UpdateCoverPipelineResponse) { + response = &UpdateCoverPipelineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media.go new file mode 100644 index 0000000..7b9ac38 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media.go @@ -0,0 +1,113 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateMedia invokes the mts.UpdateMedia API synchronously +// api document: https://help.aliyun.com/api/mts/updatemedia.html +func (client *Client) UpdateMedia(request *UpdateMediaRequest) (response *UpdateMediaResponse, err error) { + response = CreateUpdateMediaResponse() + err = client.DoAction(request, response) + return +} + +// UpdateMediaWithChan invokes the mts.UpdateMedia API asynchronously +// api document: https://help.aliyun.com/api/mts/updatemedia.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateMediaWithChan(request *UpdateMediaRequest) (<-chan *UpdateMediaResponse, <-chan error) { + responseChan := make(chan *UpdateMediaResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateMedia(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateMediaWithCallback invokes the mts.UpdateMedia API asynchronously +// api document: https://help.aliyun.com/api/mts/updatemedia.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateMediaWithCallback(request *UpdateMediaRequest, callback func(response *UpdateMediaResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateMediaResponse + var err error + defer close(result) + response, err = client.UpdateMedia(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateMediaRequest is the request struct for api UpdateMedia +type UpdateMediaRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MediaId string `position:"Query" name:"MediaId"` + Title string `position:"Query" name:"Title"` + Description string `position:"Query" name:"Description"` + CoverURL string `position:"Query" name:"CoverURL"` + CateId requests.Integer `position:"Query" name:"CateId"` + Tags string `position:"Query" name:"Tags"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// UpdateMediaResponse is the response struct for api UpdateMedia +type UpdateMediaResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Media Media `json:"Media" xml:"Media"` +} + +// CreateUpdateMediaRequest creates a request to invoke UpdateMedia API +func CreateUpdateMediaRequest() (request *UpdateMediaRequest) { + request = &UpdateMediaRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "UpdateMedia", "mts", "openAPI") + return +} + +// CreateUpdateMediaResponse creates a response to parse from UpdateMedia response +func CreateUpdateMediaResponse() (response *UpdateMediaResponse) { + response = &UpdateMediaResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media_category.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media_category.go new file mode 100644 index 0000000..47bb236 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media_category.go @@ -0,0 +1,108 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateMediaCategory invokes the mts.UpdateMediaCategory API synchronously +// api document: https://help.aliyun.com/api/mts/updatemediacategory.html +func (client *Client) UpdateMediaCategory(request *UpdateMediaCategoryRequest) (response *UpdateMediaCategoryResponse, err error) { + response = CreateUpdateMediaCategoryResponse() + err = client.DoAction(request, response) + return +} + +// UpdateMediaCategoryWithChan invokes the mts.UpdateMediaCategory API asynchronously +// api document: https://help.aliyun.com/api/mts/updatemediacategory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateMediaCategoryWithChan(request *UpdateMediaCategoryRequest) (<-chan *UpdateMediaCategoryResponse, <-chan error) { + responseChan := make(chan *UpdateMediaCategoryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateMediaCategory(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateMediaCategoryWithCallback invokes the mts.UpdateMediaCategory API asynchronously +// api document: https://help.aliyun.com/api/mts/updatemediacategory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateMediaCategoryWithCallback(request *UpdateMediaCategoryRequest, callback func(response *UpdateMediaCategoryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateMediaCategoryResponse + var err error + defer close(result) + response, err = client.UpdateMediaCategory(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateMediaCategoryRequest is the request struct for api UpdateMediaCategory +type UpdateMediaCategoryRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MediaId string `position:"Query" name:"MediaId"` + CateId requests.Integer `position:"Query" name:"CateId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// UpdateMediaCategoryResponse is the response struct for api UpdateMediaCategory +type UpdateMediaCategoryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateMediaCategoryRequest creates a request to invoke UpdateMediaCategory API +func CreateUpdateMediaCategoryRequest() (request *UpdateMediaCategoryRequest) { + request = &UpdateMediaCategoryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "UpdateMediaCategory", "mts", "openAPI") + return +} + +// CreateUpdateMediaCategoryResponse creates a response to parse from UpdateMediaCategory response +func CreateUpdateMediaCategoryResponse() (response *UpdateMediaCategoryResponse) { + response = &UpdateMediaCategoryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media_cover.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media_cover.go new file mode 100644 index 0000000..291c6d9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media_cover.go @@ -0,0 +1,108 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateMediaCover invokes the mts.UpdateMediaCover API synchronously +// api document: https://help.aliyun.com/api/mts/updatemediacover.html +func (client *Client) UpdateMediaCover(request *UpdateMediaCoverRequest) (response *UpdateMediaCoverResponse, err error) { + response = CreateUpdateMediaCoverResponse() + err = client.DoAction(request, response) + return +} + +// UpdateMediaCoverWithChan invokes the mts.UpdateMediaCover API asynchronously +// api document: https://help.aliyun.com/api/mts/updatemediacover.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateMediaCoverWithChan(request *UpdateMediaCoverRequest) (<-chan *UpdateMediaCoverResponse, <-chan error) { + responseChan := make(chan *UpdateMediaCoverResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateMediaCover(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateMediaCoverWithCallback invokes the mts.UpdateMediaCover API asynchronously +// api document: https://help.aliyun.com/api/mts/updatemediacover.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateMediaCoverWithCallback(request *UpdateMediaCoverRequest, callback func(response *UpdateMediaCoverResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateMediaCoverResponse + var err error + defer close(result) + response, err = client.UpdateMediaCover(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateMediaCoverRequest is the request struct for api UpdateMediaCover +type UpdateMediaCoverRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MediaId string `position:"Query" name:"MediaId"` + CoverURL string `position:"Query" name:"CoverURL"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// UpdateMediaCoverResponse is the response struct for api UpdateMediaCover +type UpdateMediaCoverResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateMediaCoverRequest creates a request to invoke UpdateMediaCover API +func CreateUpdateMediaCoverRequest() (request *UpdateMediaCoverRequest) { + request = &UpdateMediaCoverRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "UpdateMediaCover", "mts", "openAPI") + return +} + +// CreateUpdateMediaCoverResponse creates a response to parse from UpdateMediaCover response +func CreateUpdateMediaCoverResponse() (response *UpdateMediaCoverResponse) { + response = &UpdateMediaCoverResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media_publish_state.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media_publish_state.go new file mode 100644 index 0000000..8462444 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media_publish_state.go @@ -0,0 +1,108 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateMediaPublishState invokes the mts.UpdateMediaPublishState API synchronously +// api document: https://help.aliyun.com/api/mts/updatemediapublishstate.html +func (client *Client) UpdateMediaPublishState(request *UpdateMediaPublishStateRequest) (response *UpdateMediaPublishStateResponse, err error) { + response = CreateUpdateMediaPublishStateResponse() + err = client.DoAction(request, response) + return +} + +// UpdateMediaPublishStateWithChan invokes the mts.UpdateMediaPublishState API asynchronously +// api document: https://help.aliyun.com/api/mts/updatemediapublishstate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateMediaPublishStateWithChan(request *UpdateMediaPublishStateRequest) (<-chan *UpdateMediaPublishStateResponse, <-chan error) { + responseChan := make(chan *UpdateMediaPublishStateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateMediaPublishState(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateMediaPublishStateWithCallback invokes the mts.UpdateMediaPublishState API asynchronously +// api document: https://help.aliyun.com/api/mts/updatemediapublishstate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateMediaPublishStateWithCallback(request *UpdateMediaPublishStateRequest, callback func(response *UpdateMediaPublishStateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateMediaPublishStateResponse + var err error + defer close(result) + response, err = client.UpdateMediaPublishState(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateMediaPublishStateRequest is the request struct for api UpdateMediaPublishState +type UpdateMediaPublishStateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MediaId string `position:"Query" name:"MediaId"` + Publish requests.Boolean `position:"Query" name:"Publish"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// UpdateMediaPublishStateResponse is the response struct for api UpdateMediaPublishState +type UpdateMediaPublishStateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateMediaPublishStateRequest creates a request to invoke UpdateMediaPublishState API +func CreateUpdateMediaPublishStateRequest() (request *UpdateMediaPublishStateRequest) { + request = &UpdateMediaPublishStateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "UpdateMediaPublishState", "mts", "openAPI") + return +} + +// CreateUpdateMediaPublishStateResponse creates a response to parse from UpdateMediaPublishState response +func CreateUpdateMediaPublishStateResponse() (response *UpdateMediaPublishStateResponse) { + response = &UpdateMediaPublishStateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media_workflow.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media_workflow.go new file mode 100644 index 0000000..b198454 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media_workflow.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateMediaWorkflow invokes the mts.UpdateMediaWorkflow API synchronously +// api document: https://help.aliyun.com/api/mts/updatemediaworkflow.html +func (client *Client) UpdateMediaWorkflow(request *UpdateMediaWorkflowRequest) (response *UpdateMediaWorkflowResponse, err error) { + response = CreateUpdateMediaWorkflowResponse() + err = client.DoAction(request, response) + return +} + +// UpdateMediaWorkflowWithChan invokes the mts.UpdateMediaWorkflow API asynchronously +// api document: https://help.aliyun.com/api/mts/updatemediaworkflow.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateMediaWorkflowWithChan(request *UpdateMediaWorkflowRequest) (<-chan *UpdateMediaWorkflowResponse, <-chan error) { + responseChan := make(chan *UpdateMediaWorkflowResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateMediaWorkflow(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateMediaWorkflowWithCallback invokes the mts.UpdateMediaWorkflow API asynchronously +// api document: https://help.aliyun.com/api/mts/updatemediaworkflow.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateMediaWorkflowWithCallback(request *UpdateMediaWorkflowRequest, callback func(response *UpdateMediaWorkflowResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateMediaWorkflowResponse + var err error + defer close(result) + response, err = client.UpdateMediaWorkflow(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateMediaWorkflowRequest is the request struct for api UpdateMediaWorkflow +type UpdateMediaWorkflowRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MediaWorkflowId string `position:"Query" name:"MediaWorkflowId"` + Topology string `position:"Query" name:"Topology"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// UpdateMediaWorkflowResponse is the response struct for api UpdateMediaWorkflow +type UpdateMediaWorkflowResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MediaWorkflow MediaWorkflow `json:"MediaWorkflow" xml:"MediaWorkflow"` +} + +// CreateUpdateMediaWorkflowRequest creates a request to invoke UpdateMediaWorkflow API +func CreateUpdateMediaWorkflowRequest() (request *UpdateMediaWorkflowRequest) { + request = &UpdateMediaWorkflowRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "UpdateMediaWorkflow", "mts", "openAPI") + return +} + +// CreateUpdateMediaWorkflowResponse creates a response to parse from UpdateMediaWorkflow response +func CreateUpdateMediaWorkflowResponse() (response *UpdateMediaWorkflowResponse) { + response = &UpdateMediaWorkflowResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media_workflow_trigger_mode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media_workflow_trigger_mode.go new file mode 100644 index 0000000..bbf68e2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_media_workflow_trigger_mode.go @@ -0,0 +1,109 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateMediaWorkflowTriggerMode invokes the mts.UpdateMediaWorkflowTriggerMode API synchronously +// api document: https://help.aliyun.com/api/mts/updatemediaworkflowtriggermode.html +func (client *Client) UpdateMediaWorkflowTriggerMode(request *UpdateMediaWorkflowTriggerModeRequest) (response *UpdateMediaWorkflowTriggerModeResponse, err error) { + response = CreateUpdateMediaWorkflowTriggerModeResponse() + err = client.DoAction(request, response) + return +} + +// UpdateMediaWorkflowTriggerModeWithChan invokes the mts.UpdateMediaWorkflowTriggerMode API asynchronously +// api document: https://help.aliyun.com/api/mts/updatemediaworkflowtriggermode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateMediaWorkflowTriggerModeWithChan(request *UpdateMediaWorkflowTriggerModeRequest) (<-chan *UpdateMediaWorkflowTriggerModeResponse, <-chan error) { + responseChan := make(chan *UpdateMediaWorkflowTriggerModeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateMediaWorkflowTriggerMode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateMediaWorkflowTriggerModeWithCallback invokes the mts.UpdateMediaWorkflowTriggerMode API asynchronously +// api document: https://help.aliyun.com/api/mts/updatemediaworkflowtriggermode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateMediaWorkflowTriggerModeWithCallback(request *UpdateMediaWorkflowTriggerModeRequest, callback func(response *UpdateMediaWorkflowTriggerModeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateMediaWorkflowTriggerModeResponse + var err error + defer close(result) + response, err = client.UpdateMediaWorkflowTriggerMode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateMediaWorkflowTriggerModeRequest is the request struct for api UpdateMediaWorkflowTriggerMode +type UpdateMediaWorkflowTriggerModeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MediaWorkflowId string `position:"Query" name:"MediaWorkflowId"` + TriggerMode string `position:"Query" name:"TriggerMode"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// UpdateMediaWorkflowTriggerModeResponse is the response struct for api UpdateMediaWorkflowTriggerMode +type UpdateMediaWorkflowTriggerModeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MediaWorkflow MediaWorkflow `json:"MediaWorkflow" xml:"MediaWorkflow"` +} + +// CreateUpdateMediaWorkflowTriggerModeRequest creates a request to invoke UpdateMediaWorkflowTriggerMode API +func CreateUpdateMediaWorkflowTriggerModeRequest() (request *UpdateMediaWorkflowTriggerModeRequest) { + request = &UpdateMediaWorkflowTriggerModeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "UpdateMediaWorkflowTriggerMode", "mts", "openAPI") + return +} + +// CreateUpdateMediaWorkflowTriggerModeResponse creates a response to parse from UpdateMediaWorkflowTriggerMode response +func CreateUpdateMediaWorkflowTriggerModeResponse() (response *UpdateMediaWorkflowTriggerModeResponse) { + response = &UpdateMediaWorkflowTriggerModeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_pipeline.go new file mode 100644 index 0000000..f52bbe9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_pipeline.go @@ -0,0 +1,112 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdatePipeline invokes the mts.UpdatePipeline API synchronously +// api document: https://help.aliyun.com/api/mts/updatepipeline.html +func (client *Client) UpdatePipeline(request *UpdatePipelineRequest) (response *UpdatePipelineResponse, err error) { + response = CreateUpdatePipelineResponse() + err = client.DoAction(request, response) + return +} + +// UpdatePipelineWithChan invokes the mts.UpdatePipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/updatepipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdatePipelineWithChan(request *UpdatePipelineRequest) (<-chan *UpdatePipelineResponse, <-chan error) { + responseChan := make(chan *UpdatePipelineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdatePipeline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdatePipelineWithCallback invokes the mts.UpdatePipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/updatepipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdatePipelineWithCallback(request *UpdatePipelineRequest, callback func(response *UpdatePipelineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdatePipelineResponse + var err error + defer close(result) + response, err = client.UpdatePipeline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdatePipelineRequest is the request struct for api UpdatePipeline +type UpdatePipelineRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PipelineId string `position:"Query" name:"PipelineId"` + Name string `position:"Query" name:"Name"` + State string `position:"Query" name:"State"` + NotifyConfig string `position:"Query" name:"NotifyConfig"` + Role string `position:"Query" name:"Role"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// UpdatePipelineResponse is the response struct for api UpdatePipeline +type UpdatePipelineResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Pipeline Pipeline `json:"Pipeline" xml:"Pipeline"` +} + +// CreateUpdatePipelineRequest creates a request to invoke UpdatePipeline API +func CreateUpdatePipelineRequest() (request *UpdatePipelineRequest) { + request = &UpdatePipelineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "UpdatePipeline", "mts", "openAPI") + return +} + +// CreateUpdatePipelineResponse creates a response to parse from UpdatePipeline response +func CreateUpdatePipelineResponse() (response *UpdatePipelineResponse) { + response = &UpdatePipelineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_porn_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_porn_pipeline.go new file mode 100644 index 0000000..9f785ef --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_porn_pipeline.go @@ -0,0 +1,112 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdatePornPipeline invokes the mts.UpdatePornPipeline API synchronously +// api document: https://help.aliyun.com/api/mts/updatepornpipeline.html +func (client *Client) UpdatePornPipeline(request *UpdatePornPipelineRequest) (response *UpdatePornPipelineResponse, err error) { + response = CreateUpdatePornPipelineResponse() + err = client.DoAction(request, response) + return +} + +// UpdatePornPipelineWithChan invokes the mts.UpdatePornPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/updatepornpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdatePornPipelineWithChan(request *UpdatePornPipelineRequest) (<-chan *UpdatePornPipelineResponse, <-chan error) { + responseChan := make(chan *UpdatePornPipelineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdatePornPipeline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdatePornPipelineWithCallback invokes the mts.UpdatePornPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/updatepornpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdatePornPipelineWithCallback(request *UpdatePornPipelineRequest, callback func(response *UpdatePornPipelineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdatePornPipelineResponse + var err error + defer close(result) + response, err = client.UpdatePornPipeline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdatePornPipelineRequest is the request struct for api UpdatePornPipeline +type UpdatePornPipelineRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PipelineId string `position:"Query" name:"PipelineId"` + Name string `position:"Query" name:"Name"` + State string `position:"Query" name:"State"` + Priority requests.Integer `position:"Query" name:"Priority"` + NotifyConfig string `position:"Query" name:"NotifyConfig"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// UpdatePornPipelineResponse is the response struct for api UpdatePornPipeline +type UpdatePornPipelineResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Pipeline Pipeline `json:"Pipeline" xml:"Pipeline"` +} + +// CreateUpdatePornPipelineRequest creates a request to invoke UpdatePornPipeline API +func CreateUpdatePornPipelineRequest() (request *UpdatePornPipelineRequest) { + request = &UpdatePornPipelineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "UpdatePornPipeline", "mts", "openAPI") + return +} + +// CreateUpdatePornPipelineResponse creates a response to parse from UpdatePornPipeline response +func CreateUpdatePornPipelineResponse() (response *UpdatePornPipelineResponse) { + response = &UpdatePornPipelineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_template.go new file mode 100644 index 0000000..546e306 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_template.go @@ -0,0 +1,114 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateTemplate invokes the mts.UpdateTemplate API synchronously +// api document: https://help.aliyun.com/api/mts/updatetemplate.html +func (client *Client) UpdateTemplate(request *UpdateTemplateRequest) (response *UpdateTemplateResponse, err error) { + response = CreateUpdateTemplateResponse() + err = client.DoAction(request, response) + return +} + +// UpdateTemplateWithChan invokes the mts.UpdateTemplate API asynchronously +// api document: https://help.aliyun.com/api/mts/updatetemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateTemplateWithChan(request *UpdateTemplateRequest) (<-chan *UpdateTemplateResponse, <-chan error) { + responseChan := make(chan *UpdateTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateTemplateWithCallback invokes the mts.UpdateTemplate API asynchronously +// api document: https://help.aliyun.com/api/mts/updatetemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateTemplateWithCallback(request *UpdateTemplateRequest, callback func(response *UpdateTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateTemplateResponse + var err error + defer close(result) + response, err = client.UpdateTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateTemplateRequest is the request struct for api UpdateTemplate +type UpdateTemplateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TemplateId string `position:"Query" name:"TemplateId"` + Name string `position:"Query" name:"Name"` + Container string `position:"Query" name:"Container"` + Video string `position:"Query" name:"Video"` + Audio string `position:"Query" name:"Audio"` + MuxConfig string `position:"Query" name:"MuxConfig"` + TransConfig string `position:"Query" name:"TransConfig"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// UpdateTemplateResponse is the response struct for api UpdateTemplate +type UpdateTemplateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Template Template `json:"Template" xml:"Template"` +} + +// CreateUpdateTemplateRequest creates a request to invoke UpdateTemplate API +func CreateUpdateTemplateRequest() (request *UpdateTemplateRequest) { + request = &UpdateTemplateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "UpdateTemplate", "mts", "openAPI") + return +} + +// CreateUpdateTemplateResponse creates a response to parse from UpdateTemplate response +func CreateUpdateTemplateResponse() (response *UpdateTemplateResponse) { + response = &UpdateTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_terrorism_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_terrorism_pipeline.go new file mode 100644 index 0000000..5535a3a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_terrorism_pipeline.go @@ -0,0 +1,112 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateTerrorismPipeline invokes the mts.UpdateTerrorismPipeline API synchronously +// api document: https://help.aliyun.com/api/mts/updateterrorismpipeline.html +func (client *Client) UpdateTerrorismPipeline(request *UpdateTerrorismPipelineRequest) (response *UpdateTerrorismPipelineResponse, err error) { + response = CreateUpdateTerrorismPipelineResponse() + err = client.DoAction(request, response) + return +} + +// UpdateTerrorismPipelineWithChan invokes the mts.UpdateTerrorismPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/updateterrorismpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateTerrorismPipelineWithChan(request *UpdateTerrorismPipelineRequest) (<-chan *UpdateTerrorismPipelineResponse, <-chan error) { + responseChan := make(chan *UpdateTerrorismPipelineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateTerrorismPipeline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateTerrorismPipelineWithCallback invokes the mts.UpdateTerrorismPipeline API asynchronously +// api document: https://help.aliyun.com/api/mts/updateterrorismpipeline.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateTerrorismPipelineWithCallback(request *UpdateTerrorismPipelineRequest, callback func(response *UpdateTerrorismPipelineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateTerrorismPipelineResponse + var err error + defer close(result) + response, err = client.UpdateTerrorismPipeline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateTerrorismPipelineRequest is the request struct for api UpdateTerrorismPipeline +type UpdateTerrorismPipelineRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PipelineId string `position:"Query" name:"PipelineId"` + Name string `position:"Query" name:"Name"` + State string `position:"Query" name:"State"` + Priority requests.Integer `position:"Query" name:"Priority"` + NotifyConfig string `position:"Query" name:"NotifyConfig"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// UpdateTerrorismPipelineResponse is the response struct for api UpdateTerrorismPipeline +type UpdateTerrorismPipelineResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Pipeline Pipeline `json:"Pipeline" xml:"Pipeline"` +} + +// CreateUpdateTerrorismPipelineRequest creates a request to invoke UpdateTerrorismPipeline API +func CreateUpdateTerrorismPipelineRequest() (request *UpdateTerrorismPipelineRequest) { + request = &UpdateTerrorismPipelineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "UpdateTerrorismPipeline", "mts", "openAPI") + return +} + +// CreateUpdateTerrorismPipelineResponse creates a response to parse from UpdateTerrorismPipeline response +func CreateUpdateTerrorismPipelineResponse() (response *UpdateTerrorismPipelineResponse) { + response = &UpdateTerrorismPipelineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_water_mark_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_water_mark_template.go new file mode 100644 index 0000000..592d36f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/mts/update_water_mark_template.go @@ -0,0 +1,110 @@ +package mts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateWaterMarkTemplate invokes the mts.UpdateWaterMarkTemplate API synchronously +// api document: https://help.aliyun.com/api/mts/updatewatermarktemplate.html +func (client *Client) UpdateWaterMarkTemplate(request *UpdateWaterMarkTemplateRequest) (response *UpdateWaterMarkTemplateResponse, err error) { + response = CreateUpdateWaterMarkTemplateResponse() + err = client.DoAction(request, response) + return +} + +// UpdateWaterMarkTemplateWithChan invokes the mts.UpdateWaterMarkTemplate API asynchronously +// api document: https://help.aliyun.com/api/mts/updatewatermarktemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateWaterMarkTemplateWithChan(request *UpdateWaterMarkTemplateRequest) (<-chan *UpdateWaterMarkTemplateResponse, <-chan error) { + responseChan := make(chan *UpdateWaterMarkTemplateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateWaterMarkTemplate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateWaterMarkTemplateWithCallback invokes the mts.UpdateWaterMarkTemplate API asynchronously +// api document: https://help.aliyun.com/api/mts/updatewatermarktemplate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateWaterMarkTemplateWithCallback(request *UpdateWaterMarkTemplateRequest, callback func(response *UpdateWaterMarkTemplateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateWaterMarkTemplateResponse + var err error + defer close(result) + response, err = client.UpdateWaterMarkTemplate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateWaterMarkTemplateRequest is the request struct for api UpdateWaterMarkTemplate +type UpdateWaterMarkTemplateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + WaterMarkTemplateId string `position:"Query" name:"WaterMarkTemplateId"` + Name string `position:"Query" name:"Name"` + Config string `position:"Query" name:"Config"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// UpdateWaterMarkTemplateResponse is the response struct for api UpdateWaterMarkTemplate +type UpdateWaterMarkTemplateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + WaterMarkTemplate WaterMarkTemplate `json:"WaterMarkTemplate" xml:"WaterMarkTemplate"` +} + +// CreateUpdateWaterMarkTemplateRequest creates a request to invoke UpdateWaterMarkTemplate API +func CreateUpdateWaterMarkTemplateRequest() (request *UpdateWaterMarkTemplateRequest) { + request = &UpdateWaterMarkTemplateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Mts", "2014-06-18", "UpdateWaterMarkTemplate", "mts", "openAPI") + return +} + +// CreateUpdateWaterMarkTemplateResponse creates a response to parse from UpdateWaterMarkTemplate response +func CreateUpdateWaterMarkTemplateResponse() (response *UpdateWaterMarkTemplateResponse) { + response = &UpdateWaterMarkTemplateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/client.go new file mode 100644 index 0000000..4d4f478 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/client.go @@ -0,0 +1,81 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/create_access_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/create_access_group.go new file mode 100644 index 0000000..ae9e4be --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/create_access_group.go @@ -0,0 +1,106 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateAccessGroup invokes the nas.CreateAccessGroup API synchronously +// api document: https://help.aliyun.com/api/nas/createaccessgroup.html +func (client *Client) CreateAccessGroup(request *CreateAccessGroupRequest) (response *CreateAccessGroupResponse, err error) { + response = CreateCreateAccessGroupResponse() + err = client.DoAction(request, response) + return +} + +// CreateAccessGroupWithChan invokes the nas.CreateAccessGroup API asynchronously +// api document: https://help.aliyun.com/api/nas/createaccessgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateAccessGroupWithChan(request *CreateAccessGroupRequest) (<-chan *CreateAccessGroupResponse, <-chan error) { + responseChan := make(chan *CreateAccessGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateAccessGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateAccessGroupWithCallback invokes the nas.CreateAccessGroup API asynchronously +// api document: https://help.aliyun.com/api/nas/createaccessgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateAccessGroupWithCallback(request *CreateAccessGroupRequest, callback func(response *CreateAccessGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateAccessGroupResponse + var err error + defer close(result) + response, err = client.CreateAccessGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateAccessGroupRequest is the request struct for api CreateAccessGroup +type CreateAccessGroupRequest struct { + *requests.RpcRequest + AccessGroupName string `position:"Query" name:"AccessGroupName"` + AccessGroupType string `position:"Query" name:"AccessGroupType"` + Description string `position:"Query" name:"Description"` +} + +// CreateAccessGroupResponse is the response struct for api CreateAccessGroup +type CreateAccessGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AccessGroupName string `json:"AccessGroupName" xml:"AccessGroupName"` +} + +// CreateCreateAccessGroupRequest creates a request to invoke CreateAccessGroup API +func CreateCreateAccessGroupRequest() (request *CreateAccessGroupRequest) { + request = &CreateAccessGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("NAS", "2017-06-26", "CreateAccessGroup", "nas", "openAPI") + return +} + +// CreateCreateAccessGroupResponse creates a response to parse from CreateAccessGroup response +func CreateCreateAccessGroupResponse() (response *CreateAccessGroupResponse) { + response = &CreateAccessGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/create_access_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/create_access_rule.go new file mode 100644 index 0000000..1a44228 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/create_access_rule.go @@ -0,0 +1,108 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateAccessRule invokes the nas.CreateAccessRule API synchronously +// api document: https://help.aliyun.com/api/nas/createaccessrule.html +func (client *Client) CreateAccessRule(request *CreateAccessRuleRequest) (response *CreateAccessRuleResponse, err error) { + response = CreateCreateAccessRuleResponse() + err = client.DoAction(request, response) + return +} + +// CreateAccessRuleWithChan invokes the nas.CreateAccessRule API asynchronously +// api document: https://help.aliyun.com/api/nas/createaccessrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateAccessRuleWithChan(request *CreateAccessRuleRequest) (<-chan *CreateAccessRuleResponse, <-chan error) { + responseChan := make(chan *CreateAccessRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateAccessRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateAccessRuleWithCallback invokes the nas.CreateAccessRule API asynchronously +// api document: https://help.aliyun.com/api/nas/createaccessrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateAccessRuleWithCallback(request *CreateAccessRuleRequest, callback func(response *CreateAccessRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateAccessRuleResponse + var err error + defer close(result) + response, err = client.CreateAccessRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateAccessRuleRequest is the request struct for api CreateAccessRule +type CreateAccessRuleRequest struct { + *requests.RpcRequest + AccessGroupName string `position:"Query" name:"AccessGroupName"` + SourceCidrIp string `position:"Query" name:"SourceCidrIp"` + RWAccessType string `position:"Query" name:"RWAccessType"` + UserAccessType string `position:"Query" name:"UserAccessType"` + Priority requests.Integer `position:"Query" name:"Priority"` +} + +// CreateAccessRuleResponse is the response struct for api CreateAccessRule +type CreateAccessRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AccessRuleId string `json:"AccessRuleId" xml:"AccessRuleId"` +} + +// CreateCreateAccessRuleRequest creates a request to invoke CreateAccessRule API +func CreateCreateAccessRuleRequest() (request *CreateAccessRuleRequest) { + request = &CreateAccessRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("NAS", "2017-06-26", "CreateAccessRule", "nas", "openAPI") + return +} + +// CreateCreateAccessRuleResponse creates a response to parse from CreateAccessRule response +func CreateCreateAccessRuleResponse() (response *CreateAccessRuleResponse) { + response = &CreateAccessRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/create_file_system.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/create_file_system.go new file mode 100644 index 0000000..bc2f14d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/create_file_system.go @@ -0,0 +1,106 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateFileSystem invokes the nas.CreateFileSystem API synchronously +// api document: https://help.aliyun.com/api/nas/createfilesystem.html +func (client *Client) CreateFileSystem(request *CreateFileSystemRequest) (response *CreateFileSystemResponse, err error) { + response = CreateCreateFileSystemResponse() + err = client.DoAction(request, response) + return +} + +// CreateFileSystemWithChan invokes the nas.CreateFileSystem API asynchronously +// api document: https://help.aliyun.com/api/nas/createfilesystem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateFileSystemWithChan(request *CreateFileSystemRequest) (<-chan *CreateFileSystemResponse, <-chan error) { + responseChan := make(chan *CreateFileSystemResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateFileSystem(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateFileSystemWithCallback invokes the nas.CreateFileSystem API asynchronously +// api document: https://help.aliyun.com/api/nas/createfilesystem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateFileSystemWithCallback(request *CreateFileSystemRequest, callback func(response *CreateFileSystemResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateFileSystemResponse + var err error + defer close(result) + response, err = client.CreateFileSystem(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateFileSystemRequest is the request struct for api CreateFileSystem +type CreateFileSystemRequest struct { + *requests.RpcRequest + StorageType string `position:"Query" name:"StorageType"` + ProtocolType string `position:"Query" name:"ProtocolType"` + Description string `position:"Query" name:"Description"` +} + +// CreateFileSystemResponse is the response struct for api CreateFileSystem +type CreateFileSystemResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + FileSystemId string `json:"FileSystemId" xml:"FileSystemId"` +} + +// CreateCreateFileSystemRequest creates a request to invoke CreateFileSystem API +func CreateCreateFileSystemRequest() (request *CreateFileSystemRequest) { + request = &CreateFileSystemRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("NAS", "2017-06-26", "CreateFileSystem", "nas", "openAPI") + return +} + +// CreateCreateFileSystemResponse creates a response to parse from CreateFileSystem response +func CreateCreateFileSystemResponse() (response *CreateFileSystemResponse) { + response = &CreateFileSystemResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/create_mount_target.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/create_mount_target.go new file mode 100644 index 0000000..e41314e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/create_mount_target.go @@ -0,0 +1,108 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateMountTarget invokes the nas.CreateMountTarget API synchronously +// api document: https://help.aliyun.com/api/nas/createmounttarget.html +func (client *Client) CreateMountTarget(request *CreateMountTargetRequest) (response *CreateMountTargetResponse, err error) { + response = CreateCreateMountTargetResponse() + err = client.DoAction(request, response) + return +} + +// CreateMountTargetWithChan invokes the nas.CreateMountTarget API asynchronously +// api document: https://help.aliyun.com/api/nas/createmounttarget.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateMountTargetWithChan(request *CreateMountTargetRequest) (<-chan *CreateMountTargetResponse, <-chan error) { + responseChan := make(chan *CreateMountTargetResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateMountTarget(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateMountTargetWithCallback invokes the nas.CreateMountTarget API asynchronously +// api document: https://help.aliyun.com/api/nas/createmounttarget.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateMountTargetWithCallback(request *CreateMountTargetRequest, callback func(response *CreateMountTargetResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateMountTargetResponse + var err error + defer close(result) + response, err = client.CreateMountTarget(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateMountTargetRequest is the request struct for api CreateMountTarget +type CreateMountTargetRequest struct { + *requests.RpcRequest + FileSystemId string `position:"Query" name:"FileSystemId"` + AccessGroupName string `position:"Query" name:"AccessGroupName"` + NetworkType string `position:"Query" name:"NetworkType"` + VpcId string `position:"Query" name:"VpcId"` + VSwitchId string `position:"Query" name:"VSwitchId"` +} + +// CreateMountTargetResponse is the response struct for api CreateMountTarget +type CreateMountTargetResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MountTargetDomain string `json:"MountTargetDomain" xml:"MountTargetDomain"` +} + +// CreateCreateMountTargetRequest creates a request to invoke CreateMountTarget API +func CreateCreateMountTargetRequest() (request *CreateMountTargetRequest) { + request = &CreateMountTargetRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("NAS", "2017-06-26", "CreateMountTarget", "nas", "openAPI") + return +} + +// CreateCreateMountTargetResponse creates a response to parse from CreateMountTarget response +func CreateCreateMountTargetResponse() (response *CreateMountTargetResponse) { + response = &CreateMountTargetResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/delete_access_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/delete_access_group.go new file mode 100644 index 0000000..edb6b48 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/delete_access_group.go @@ -0,0 +1,103 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteAccessGroup invokes the nas.DeleteAccessGroup API synchronously +// api document: https://help.aliyun.com/api/nas/deleteaccessgroup.html +func (client *Client) DeleteAccessGroup(request *DeleteAccessGroupRequest) (response *DeleteAccessGroupResponse, err error) { + response = CreateDeleteAccessGroupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteAccessGroupWithChan invokes the nas.DeleteAccessGroup API asynchronously +// api document: https://help.aliyun.com/api/nas/deleteaccessgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAccessGroupWithChan(request *DeleteAccessGroupRequest) (<-chan *DeleteAccessGroupResponse, <-chan error) { + responseChan := make(chan *DeleteAccessGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteAccessGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteAccessGroupWithCallback invokes the nas.DeleteAccessGroup API asynchronously +// api document: https://help.aliyun.com/api/nas/deleteaccessgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAccessGroupWithCallback(request *DeleteAccessGroupRequest, callback func(response *DeleteAccessGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteAccessGroupResponse + var err error + defer close(result) + response, err = client.DeleteAccessGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteAccessGroupRequest is the request struct for api DeleteAccessGroup +type DeleteAccessGroupRequest struct { + *requests.RpcRequest + AccessGroupName string `position:"Query" name:"AccessGroupName"` +} + +// DeleteAccessGroupResponse is the response struct for api DeleteAccessGroup +type DeleteAccessGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteAccessGroupRequest creates a request to invoke DeleteAccessGroup API +func CreateDeleteAccessGroupRequest() (request *DeleteAccessGroupRequest) { + request = &DeleteAccessGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("NAS", "2017-06-26", "DeleteAccessGroup", "nas", "openAPI") + return +} + +// CreateDeleteAccessGroupResponse creates a response to parse from DeleteAccessGroup response +func CreateDeleteAccessGroupResponse() (response *DeleteAccessGroupResponse) { + response = &DeleteAccessGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/delete_access_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/delete_access_rule.go new file mode 100644 index 0000000..4417088 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/delete_access_rule.go @@ -0,0 +1,104 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteAccessRule invokes the nas.DeleteAccessRule API synchronously +// api document: https://help.aliyun.com/api/nas/deleteaccessrule.html +func (client *Client) DeleteAccessRule(request *DeleteAccessRuleRequest) (response *DeleteAccessRuleResponse, err error) { + response = CreateDeleteAccessRuleResponse() + err = client.DoAction(request, response) + return +} + +// DeleteAccessRuleWithChan invokes the nas.DeleteAccessRule API asynchronously +// api document: https://help.aliyun.com/api/nas/deleteaccessrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAccessRuleWithChan(request *DeleteAccessRuleRequest) (<-chan *DeleteAccessRuleResponse, <-chan error) { + responseChan := make(chan *DeleteAccessRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteAccessRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteAccessRuleWithCallback invokes the nas.DeleteAccessRule API asynchronously +// api document: https://help.aliyun.com/api/nas/deleteaccessrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAccessRuleWithCallback(request *DeleteAccessRuleRequest, callback func(response *DeleteAccessRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteAccessRuleResponse + var err error + defer close(result) + response, err = client.DeleteAccessRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteAccessRuleRequest is the request struct for api DeleteAccessRule +type DeleteAccessRuleRequest struct { + *requests.RpcRequest + AccessGroupName string `position:"Query" name:"AccessGroupName"` + AccessRuleId string `position:"Query" name:"AccessRuleId"` +} + +// DeleteAccessRuleResponse is the response struct for api DeleteAccessRule +type DeleteAccessRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteAccessRuleRequest creates a request to invoke DeleteAccessRule API +func CreateDeleteAccessRuleRequest() (request *DeleteAccessRuleRequest) { + request = &DeleteAccessRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("NAS", "2017-06-26", "DeleteAccessRule", "nas", "openAPI") + return +} + +// CreateDeleteAccessRuleResponse creates a response to parse from DeleteAccessRule response +func CreateDeleteAccessRuleResponse() (response *DeleteAccessRuleResponse) { + response = &DeleteAccessRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/delete_file_system.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/delete_file_system.go new file mode 100644 index 0000000..7b2c68e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/delete_file_system.go @@ -0,0 +1,103 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteFileSystem invokes the nas.DeleteFileSystem API synchronously +// api document: https://help.aliyun.com/api/nas/deletefilesystem.html +func (client *Client) DeleteFileSystem(request *DeleteFileSystemRequest) (response *DeleteFileSystemResponse, err error) { + response = CreateDeleteFileSystemResponse() + err = client.DoAction(request, response) + return +} + +// DeleteFileSystemWithChan invokes the nas.DeleteFileSystem API asynchronously +// api document: https://help.aliyun.com/api/nas/deletefilesystem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteFileSystemWithChan(request *DeleteFileSystemRequest) (<-chan *DeleteFileSystemResponse, <-chan error) { + responseChan := make(chan *DeleteFileSystemResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteFileSystem(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteFileSystemWithCallback invokes the nas.DeleteFileSystem API asynchronously +// api document: https://help.aliyun.com/api/nas/deletefilesystem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteFileSystemWithCallback(request *DeleteFileSystemRequest, callback func(response *DeleteFileSystemResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteFileSystemResponse + var err error + defer close(result) + response, err = client.DeleteFileSystem(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteFileSystemRequest is the request struct for api DeleteFileSystem +type DeleteFileSystemRequest struct { + *requests.RpcRequest + FileSystemId string `position:"Query" name:"FileSystemId"` +} + +// DeleteFileSystemResponse is the response struct for api DeleteFileSystem +type DeleteFileSystemResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteFileSystemRequest creates a request to invoke DeleteFileSystem API +func CreateDeleteFileSystemRequest() (request *DeleteFileSystemRequest) { + request = &DeleteFileSystemRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("NAS", "2017-06-26", "DeleteFileSystem", "nas", "openAPI") + return +} + +// CreateDeleteFileSystemResponse creates a response to parse from DeleteFileSystem response +func CreateDeleteFileSystemResponse() (response *DeleteFileSystemResponse) { + response = &DeleteFileSystemResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/delete_mount_target.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/delete_mount_target.go new file mode 100644 index 0000000..8bf6d57 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/delete_mount_target.go @@ -0,0 +1,104 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteMountTarget invokes the nas.DeleteMountTarget API synchronously +// api document: https://help.aliyun.com/api/nas/deletemounttarget.html +func (client *Client) DeleteMountTarget(request *DeleteMountTargetRequest) (response *DeleteMountTargetResponse, err error) { + response = CreateDeleteMountTargetResponse() + err = client.DoAction(request, response) + return +} + +// DeleteMountTargetWithChan invokes the nas.DeleteMountTarget API asynchronously +// api document: https://help.aliyun.com/api/nas/deletemounttarget.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteMountTargetWithChan(request *DeleteMountTargetRequest) (<-chan *DeleteMountTargetResponse, <-chan error) { + responseChan := make(chan *DeleteMountTargetResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteMountTarget(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteMountTargetWithCallback invokes the nas.DeleteMountTarget API asynchronously +// api document: https://help.aliyun.com/api/nas/deletemounttarget.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteMountTargetWithCallback(request *DeleteMountTargetRequest, callback func(response *DeleteMountTargetResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteMountTargetResponse + var err error + defer close(result) + response, err = client.DeleteMountTarget(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteMountTargetRequest is the request struct for api DeleteMountTarget +type DeleteMountTargetRequest struct { + *requests.RpcRequest + FileSystemId string `position:"Query" name:"FileSystemId"` + MountTargetDomain string `position:"Query" name:"MountTargetDomain"` +} + +// DeleteMountTargetResponse is the response struct for api DeleteMountTarget +type DeleteMountTargetResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteMountTargetRequest creates a request to invoke DeleteMountTarget API +func CreateDeleteMountTargetRequest() (request *DeleteMountTargetRequest) { + request = &DeleteMountTargetRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("NAS", "2017-06-26", "DeleteMountTarget", "nas", "openAPI") + return +} + +// CreateDeleteMountTargetResponse creates a response to parse from DeleteMountTarget response +func CreateDeleteMountTargetResponse() (response *DeleteMountTargetResponse) { + response = &DeleteMountTargetResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/describe_access_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/describe_access_groups.go new file mode 100644 index 0000000..7d1f071 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/describe_access_groups.go @@ -0,0 +1,109 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAccessGroups invokes the nas.DescribeAccessGroups API synchronously +// api document: https://help.aliyun.com/api/nas/describeaccessgroups.html +func (client *Client) DescribeAccessGroups(request *DescribeAccessGroupsRequest) (response *DescribeAccessGroupsResponse, err error) { + response = CreateDescribeAccessGroupsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAccessGroupsWithChan invokes the nas.DescribeAccessGroups API asynchronously +// api document: https://help.aliyun.com/api/nas/describeaccessgroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccessGroupsWithChan(request *DescribeAccessGroupsRequest) (<-chan *DescribeAccessGroupsResponse, <-chan error) { + responseChan := make(chan *DescribeAccessGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAccessGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAccessGroupsWithCallback invokes the nas.DescribeAccessGroups API asynchronously +// api document: https://help.aliyun.com/api/nas/describeaccessgroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccessGroupsWithCallback(request *DescribeAccessGroupsRequest, callback func(response *DescribeAccessGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAccessGroupsResponse + var err error + defer close(result) + response, err = client.DescribeAccessGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAccessGroupsRequest is the request struct for api DescribeAccessGroups +type DescribeAccessGroupsRequest struct { + *requests.RpcRequest + AccessGroupName string `position:"Query" name:"AccessGroupName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeAccessGroupsResponse is the response struct for api DescribeAccessGroups +type DescribeAccessGroupsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + AccessGroups AccessGroups `json:"AccessGroups" xml:"AccessGroups"` +} + +// CreateDescribeAccessGroupsRequest creates a request to invoke DescribeAccessGroups API +func CreateDescribeAccessGroupsRequest() (request *DescribeAccessGroupsRequest) { + request = &DescribeAccessGroupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("NAS", "2017-06-26", "DescribeAccessGroups", "nas", "openAPI") + return +} + +// CreateDescribeAccessGroupsResponse creates a response to parse from DescribeAccessGroups response +func CreateDescribeAccessGroupsResponse() (response *DescribeAccessGroupsResponse) { + response = &DescribeAccessGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/describe_access_rules.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/describe_access_rules.go new file mode 100644 index 0000000..3b28562 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/describe_access_rules.go @@ -0,0 +1,110 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAccessRules invokes the nas.DescribeAccessRules API synchronously +// api document: https://help.aliyun.com/api/nas/describeaccessrules.html +func (client *Client) DescribeAccessRules(request *DescribeAccessRulesRequest) (response *DescribeAccessRulesResponse, err error) { + response = CreateDescribeAccessRulesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAccessRulesWithChan invokes the nas.DescribeAccessRules API asynchronously +// api document: https://help.aliyun.com/api/nas/describeaccessrules.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccessRulesWithChan(request *DescribeAccessRulesRequest) (<-chan *DescribeAccessRulesResponse, <-chan error) { + responseChan := make(chan *DescribeAccessRulesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAccessRules(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAccessRulesWithCallback invokes the nas.DescribeAccessRules API asynchronously +// api document: https://help.aliyun.com/api/nas/describeaccessrules.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccessRulesWithCallback(request *DescribeAccessRulesRequest, callback func(response *DescribeAccessRulesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAccessRulesResponse + var err error + defer close(result) + response, err = client.DescribeAccessRules(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAccessRulesRequest is the request struct for api DescribeAccessRules +type DescribeAccessRulesRequest struct { + *requests.RpcRequest + AccessGroupName string `position:"Query" name:"AccessGroupName"` + AccessRuleId string `position:"Query" name:"AccessRuleId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeAccessRulesResponse is the response struct for api DescribeAccessRules +type DescribeAccessRulesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + AccessRules AccessRules `json:"AccessRules" xml:"AccessRules"` +} + +// CreateDescribeAccessRulesRequest creates a request to invoke DescribeAccessRules API +func CreateDescribeAccessRulesRequest() (request *DescribeAccessRulesRequest) { + request = &DescribeAccessRulesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("NAS", "2017-06-26", "DescribeAccessRules", "nas", "openAPI") + return +} + +// CreateDescribeAccessRulesResponse creates a response to parse from DescribeAccessRules response +func CreateDescribeAccessRulesResponse() (response *DescribeAccessRulesResponse) { + response = &DescribeAccessRulesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/describe_file_systems.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/describe_file_systems.go new file mode 100644 index 0000000..1eb8846 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/describe_file_systems.go @@ -0,0 +1,109 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeFileSystems invokes the nas.DescribeFileSystems API synchronously +// api document: https://help.aliyun.com/api/nas/describefilesystems.html +func (client *Client) DescribeFileSystems(request *DescribeFileSystemsRequest) (response *DescribeFileSystemsResponse, err error) { + response = CreateDescribeFileSystemsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeFileSystemsWithChan invokes the nas.DescribeFileSystems API asynchronously +// api document: https://help.aliyun.com/api/nas/describefilesystems.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeFileSystemsWithChan(request *DescribeFileSystemsRequest) (<-chan *DescribeFileSystemsResponse, <-chan error) { + responseChan := make(chan *DescribeFileSystemsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeFileSystems(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeFileSystemsWithCallback invokes the nas.DescribeFileSystems API asynchronously +// api document: https://help.aliyun.com/api/nas/describefilesystems.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeFileSystemsWithCallback(request *DescribeFileSystemsRequest, callback func(response *DescribeFileSystemsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeFileSystemsResponse + var err error + defer close(result) + response, err = client.DescribeFileSystems(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeFileSystemsRequest is the request struct for api DescribeFileSystems +type DescribeFileSystemsRequest struct { + *requests.RpcRequest + FileSystemId string `position:"Query" name:"FileSystemId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeFileSystemsResponse is the response struct for api DescribeFileSystems +type DescribeFileSystemsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + FileSystems FileSystems `json:"FileSystems" xml:"FileSystems"` +} + +// CreateDescribeFileSystemsRequest creates a request to invoke DescribeFileSystems API +func CreateDescribeFileSystemsRequest() (request *DescribeFileSystemsRequest) { + request = &DescribeFileSystemsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("NAS", "2017-06-26", "DescribeFileSystems", "nas", "openAPI") + return +} + +// CreateDescribeFileSystemsResponse creates a response to parse from DescribeFileSystems response +func CreateDescribeFileSystemsResponse() (response *DescribeFileSystemsResponse) { + response = &DescribeFileSystemsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/describe_mount_targets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/describe_mount_targets.go new file mode 100644 index 0000000..c488572 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/describe_mount_targets.go @@ -0,0 +1,110 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeMountTargets invokes the nas.DescribeMountTargets API synchronously +// api document: https://help.aliyun.com/api/nas/describemounttargets.html +func (client *Client) DescribeMountTargets(request *DescribeMountTargetsRequest) (response *DescribeMountTargetsResponse, err error) { + response = CreateDescribeMountTargetsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeMountTargetsWithChan invokes the nas.DescribeMountTargets API asynchronously +// api document: https://help.aliyun.com/api/nas/describemounttargets.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMountTargetsWithChan(request *DescribeMountTargetsRequest) (<-chan *DescribeMountTargetsResponse, <-chan error) { + responseChan := make(chan *DescribeMountTargetsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeMountTargets(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeMountTargetsWithCallback invokes the nas.DescribeMountTargets API asynchronously +// api document: https://help.aliyun.com/api/nas/describemounttargets.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMountTargetsWithCallback(request *DescribeMountTargetsRequest, callback func(response *DescribeMountTargetsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeMountTargetsResponse + var err error + defer close(result) + response, err = client.DescribeMountTargets(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeMountTargetsRequest is the request struct for api DescribeMountTargets +type DescribeMountTargetsRequest struct { + *requests.RpcRequest + FileSystemId string `position:"Query" name:"FileSystemId"` + MountTargetDomain string `position:"Query" name:"MountTargetDomain"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeMountTargetsResponse is the response struct for api DescribeMountTargets +type DescribeMountTargetsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + MountTargets MountTargetsInDescribeMountTargets `json:"MountTargets" xml:"MountTargets"` +} + +// CreateDescribeMountTargetsRequest creates a request to invoke DescribeMountTargets API +func CreateDescribeMountTargetsRequest() (request *DescribeMountTargetsRequest) { + request = &DescribeMountTargetsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("NAS", "2017-06-26", "DescribeMountTargets", "nas", "openAPI") + return +} + +// CreateDescribeMountTargetsResponse creates a response to parse from DescribeMountTargets response +func CreateDescribeMountTargetsResponse() (response *DescribeMountTargetsResponse) { + response = &DescribeMountTargetsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/describe_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/describe_regions.go new file mode 100644 index 0000000..4fd931c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/describe_regions.go @@ -0,0 +1,108 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 nas.DescribeRegions API synchronously +// api document: https://help.aliyun.com/api/nas/describeregions.html +func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) { + response = CreateDescribeRegionsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRegionsWithChan invokes the nas.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/nas/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 nas.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/nas/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeRegionsResponse is the response struct for api DescribeRegions +type DescribeRegionsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + 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("NAS", "2017-06-26", "DescribeRegions", "nas", "openAPI") + 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/nas/modify_access_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/modify_access_group.go new file mode 100644 index 0000000..6adcedd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/modify_access_group.go @@ -0,0 +1,104 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyAccessGroup invokes the nas.ModifyAccessGroup API synchronously +// api document: https://help.aliyun.com/api/nas/modifyaccessgroup.html +func (client *Client) ModifyAccessGroup(request *ModifyAccessGroupRequest) (response *ModifyAccessGroupResponse, err error) { + response = CreateModifyAccessGroupResponse() + err = client.DoAction(request, response) + return +} + +// ModifyAccessGroupWithChan invokes the nas.ModifyAccessGroup API asynchronously +// api document: https://help.aliyun.com/api/nas/modifyaccessgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyAccessGroupWithChan(request *ModifyAccessGroupRequest) (<-chan *ModifyAccessGroupResponse, <-chan error) { + responseChan := make(chan *ModifyAccessGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyAccessGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyAccessGroupWithCallback invokes the nas.ModifyAccessGroup API asynchronously +// api document: https://help.aliyun.com/api/nas/modifyaccessgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyAccessGroupWithCallback(request *ModifyAccessGroupRequest, callback func(response *ModifyAccessGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyAccessGroupResponse + var err error + defer close(result) + response, err = client.ModifyAccessGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyAccessGroupRequest is the request struct for api ModifyAccessGroup +type ModifyAccessGroupRequest struct { + *requests.RpcRequest + AccessGroupName string `position:"Query" name:"AccessGroupName"` + Description string `position:"Query" name:"Description"` +} + +// ModifyAccessGroupResponse is the response struct for api ModifyAccessGroup +type ModifyAccessGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyAccessGroupRequest creates a request to invoke ModifyAccessGroup API +func CreateModifyAccessGroupRequest() (request *ModifyAccessGroupRequest) { + request = &ModifyAccessGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("NAS", "2017-06-26", "ModifyAccessGroup", "nas", "openAPI") + return +} + +// CreateModifyAccessGroupResponse creates a response to parse from ModifyAccessGroup response +func CreateModifyAccessGroupResponse() (response *ModifyAccessGroupResponse) { + response = &ModifyAccessGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/modify_access_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/modify_access_rule.go new file mode 100644 index 0000000..ce74402 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/modify_access_rule.go @@ -0,0 +1,108 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyAccessRule invokes the nas.ModifyAccessRule API synchronously +// api document: https://help.aliyun.com/api/nas/modifyaccessrule.html +func (client *Client) ModifyAccessRule(request *ModifyAccessRuleRequest) (response *ModifyAccessRuleResponse, err error) { + response = CreateModifyAccessRuleResponse() + err = client.DoAction(request, response) + return +} + +// ModifyAccessRuleWithChan invokes the nas.ModifyAccessRule API asynchronously +// api document: https://help.aliyun.com/api/nas/modifyaccessrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyAccessRuleWithChan(request *ModifyAccessRuleRequest) (<-chan *ModifyAccessRuleResponse, <-chan error) { + responseChan := make(chan *ModifyAccessRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyAccessRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyAccessRuleWithCallback invokes the nas.ModifyAccessRule API asynchronously +// api document: https://help.aliyun.com/api/nas/modifyaccessrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyAccessRuleWithCallback(request *ModifyAccessRuleRequest, callback func(response *ModifyAccessRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyAccessRuleResponse + var err error + defer close(result) + response, err = client.ModifyAccessRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyAccessRuleRequest is the request struct for api ModifyAccessRule +type ModifyAccessRuleRequest struct { + *requests.RpcRequest + AccessGroupName string `position:"Query" name:"AccessGroupName"` + AccessRuleId string `position:"Query" name:"AccessRuleId"` + SourceCidrIp string `position:"Query" name:"SourceCidrIp"` + RWAccessType string `position:"Query" name:"RWAccessType"` + UserAccessType string `position:"Query" name:"UserAccessType"` + Priority requests.Integer `position:"Query" name:"Priority"` +} + +// ModifyAccessRuleResponse is the response struct for api ModifyAccessRule +type ModifyAccessRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyAccessRuleRequest creates a request to invoke ModifyAccessRule API +func CreateModifyAccessRuleRequest() (request *ModifyAccessRuleRequest) { + request = &ModifyAccessRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("NAS", "2017-06-26", "ModifyAccessRule", "nas", "openAPI") + return +} + +// CreateModifyAccessRuleResponse creates a response to parse from ModifyAccessRule response +func CreateModifyAccessRuleResponse() (response *ModifyAccessRuleResponse) { + response = &ModifyAccessRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/modify_file_system.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/modify_file_system.go new file mode 100644 index 0000000..641403e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/modify_file_system.go @@ -0,0 +1,104 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyFileSystem invokes the nas.ModifyFileSystem API synchronously +// api document: https://help.aliyun.com/api/nas/modifyfilesystem.html +func (client *Client) ModifyFileSystem(request *ModifyFileSystemRequest) (response *ModifyFileSystemResponse, err error) { + response = CreateModifyFileSystemResponse() + err = client.DoAction(request, response) + return +} + +// ModifyFileSystemWithChan invokes the nas.ModifyFileSystem API asynchronously +// api document: https://help.aliyun.com/api/nas/modifyfilesystem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyFileSystemWithChan(request *ModifyFileSystemRequest) (<-chan *ModifyFileSystemResponse, <-chan error) { + responseChan := make(chan *ModifyFileSystemResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyFileSystem(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyFileSystemWithCallback invokes the nas.ModifyFileSystem API asynchronously +// api document: https://help.aliyun.com/api/nas/modifyfilesystem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyFileSystemWithCallback(request *ModifyFileSystemRequest, callback func(response *ModifyFileSystemResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyFileSystemResponse + var err error + defer close(result) + response, err = client.ModifyFileSystem(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyFileSystemRequest is the request struct for api ModifyFileSystem +type ModifyFileSystemRequest struct { + *requests.RpcRequest + FileSystemId string `position:"Query" name:"FileSystemId"` + Description string `position:"Query" name:"Description"` +} + +// ModifyFileSystemResponse is the response struct for api ModifyFileSystem +type ModifyFileSystemResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyFileSystemRequest creates a request to invoke ModifyFileSystem API +func CreateModifyFileSystemRequest() (request *ModifyFileSystemRequest) { + request = &ModifyFileSystemRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("NAS", "2017-06-26", "ModifyFileSystem", "nas", "openAPI") + return +} + +// CreateModifyFileSystemResponse creates a response to parse from ModifyFileSystem response +func CreateModifyFileSystemResponse() (response *ModifyFileSystemResponse) { + response = &ModifyFileSystemResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/modify_mount_target.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/modify_mount_target.go new file mode 100644 index 0000000..ec27c8f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/modify_mount_target.go @@ -0,0 +1,106 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyMountTarget invokes the nas.ModifyMountTarget API synchronously +// api document: https://help.aliyun.com/api/nas/modifymounttarget.html +func (client *Client) ModifyMountTarget(request *ModifyMountTargetRequest) (response *ModifyMountTargetResponse, err error) { + response = CreateModifyMountTargetResponse() + err = client.DoAction(request, response) + return +} + +// ModifyMountTargetWithChan invokes the nas.ModifyMountTarget API asynchronously +// api document: https://help.aliyun.com/api/nas/modifymounttarget.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyMountTargetWithChan(request *ModifyMountTargetRequest) (<-chan *ModifyMountTargetResponse, <-chan error) { + responseChan := make(chan *ModifyMountTargetResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyMountTarget(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyMountTargetWithCallback invokes the nas.ModifyMountTarget API asynchronously +// api document: https://help.aliyun.com/api/nas/modifymounttarget.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyMountTargetWithCallback(request *ModifyMountTargetRequest, callback func(response *ModifyMountTargetResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyMountTargetResponse + var err error + defer close(result) + response, err = client.ModifyMountTarget(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyMountTargetRequest is the request struct for api ModifyMountTarget +type ModifyMountTargetRequest struct { + *requests.RpcRequest + FileSystemId string `position:"Query" name:"FileSystemId"` + MountTargetDomain string `position:"Query" name:"MountTargetDomain"` + AccessGroupName string `position:"Query" name:"AccessGroupName"` + Status string `position:"Query" name:"Status"` +} + +// ModifyMountTargetResponse is the response struct for api ModifyMountTarget +type ModifyMountTargetResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyMountTargetRequest creates a request to invoke ModifyMountTarget API +func CreateModifyMountTargetRequest() (request *ModifyMountTargetRequest) { + request = &ModifyMountTargetRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("NAS", "2017-06-26", "ModifyMountTarget", "nas", "openAPI") + return +} + +// CreateModifyMountTargetResponse creates a response to parse from ModifyMountTarget response +func CreateModifyMountTargetResponse() (response *ModifyMountTargetResponse) { + response = &ModifyMountTargetResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_access_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_access_group.go new file mode 100644 index 0000000..47f7a03 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_access_group.go @@ -0,0 +1,25 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AccessGroup is a nested struct in nas response +type AccessGroup struct { + AccessGroupName string `json:"AccessGroupName" xml:"AccessGroupName"` + AccessGroupType string `json:"AccessGroupType" xml:"AccessGroupType"` + RuleCount int `json:"RuleCount" xml:"RuleCount"` + MountTargetCount int `json:"MountTargetCount" xml:"MountTargetCount"` + Description string `json:"Description" xml:"Description"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_access_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_access_groups.go new file mode 100644 index 0000000..ba79472 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_access_groups.go @@ -0,0 +1,21 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AccessGroups is a nested struct in nas response +type AccessGroups struct { + AccessGroup []AccessGroup `json:"AccessGroup" xml:"AccessGroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_access_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_access_rule.go new file mode 100644 index 0000000..3dd6940 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_access_rule.go @@ -0,0 +1,25 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AccessRule is a nested struct in nas response +type AccessRule struct { + SourceCidrIp string `json:"SourceCidrIp" xml:"SourceCidrIp"` + Priority int `json:"Priority" xml:"Priority"` + AccessRuleId string `json:"AccessRuleId" xml:"AccessRuleId"` + RWAccess string `json:"RWAccess" xml:"RWAccess"` + UserAccess string `json:"UserAccess" xml:"UserAccess"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_access_rules.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_access_rules.go new file mode 100644 index 0000000..8f7f39a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_access_rules.go @@ -0,0 +1,21 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AccessRules is a nested struct in nas response +type AccessRules struct { + AccessRule []AccessRule `json:"AccessRule" xml:"AccessRule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_file_system.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_file_system.go new file mode 100644 index 0000000..90a8107 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_file_system.go @@ -0,0 +1,29 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FileSystem is a nested struct in nas response +type FileSystem struct { + FileSystemId string `json:"FileSystemId" xml:"FileSystemId"` + Destription string `json:"Destription" xml:"Destription"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + RegionId string `json:"RegionId" xml:"RegionId"` + ProtocolType string `json:"ProtocolType" xml:"ProtocolType"` + StorageType string `json:"StorageType" xml:"StorageType"` + MeteredSize int `json:"MeteredSize" xml:"MeteredSize"` + MountTargets MountTargetsInDescribeFileSystems `json:"MountTargets" xml:"MountTargets"` + Packages Packages `json:"Packages" xml:"Packages"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_file_systems.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_file_systems.go new file mode 100644 index 0000000..82b81c4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_file_systems.go @@ -0,0 +1,21 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FileSystems is a nested struct in nas response +type FileSystems struct { + FileSystem []FileSystem `json:"FileSystem" xml:"FileSystem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_mount_target.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_mount_target.go new file mode 100644 index 0000000..ea22109 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_mount_target.go @@ -0,0 +1,26 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MountTarget is a nested struct in nas response +type MountTarget struct { + VpcId string `json:"VpcId" xml:"VpcId"` + VswId string `json:"VswId" xml:"VswId"` + AccessGroup string `json:"AccessGroup" xml:"AccessGroup"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + MountTargetDomain string `json:"MountTargetDomain" xml:"MountTargetDomain"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_mount_targets_in_describe_file_systems.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_mount_targets_in_describe_file_systems.go new file mode 100644 index 0000000..0850b25 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_mount_targets_in_describe_file_systems.go @@ -0,0 +1,21 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MountTargetsInDescribeFileSystems is a nested struct in nas response +type MountTargetsInDescribeFileSystems struct { + MountTarget []MountTarget `json:"MountTarget" xml:"MountTarget"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_mount_targets_in_describe_mount_targets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_mount_targets_in_describe_mount_targets.go new file mode 100644 index 0000000..d8d6ab6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_mount_targets_in_describe_mount_targets.go @@ -0,0 +1,21 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MountTargetsInDescribeMountTargets is a nested struct in nas response +type MountTargetsInDescribeMountTargets struct { + MountTarget []MountTarget `json:"MountTarget" xml:"MountTarget"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_package.go new file mode 100644 index 0000000..56f473a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_package.go @@ -0,0 +1,21 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Package is a nested struct in nas response +type Package struct { + PackageId string `json:"PackageId" xml:"PackageId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_packages.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_packages.go new file mode 100644 index 0000000..cdbd0f6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_packages.go @@ -0,0 +1,21 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Packages is a nested struct in nas response +type Packages struct { + Package []Package `json:"Package" xml:"Package"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_region.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_region.go new file mode 100644 index 0000000..88b617d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_region.go @@ -0,0 +1,22 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 nas response +type Region struct { + RegionId string `json:"RegionId" xml:"RegionId"` + LocalName string `json:"LocalName" xml:"LocalName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_regions.go new file mode 100644 index 0000000..99f760b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/nas/struct_regions.go @@ -0,0 +1,21 @@ +package nas + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 nas response +type Regions struct { + Region []Region `json:"Region" xml:"Region"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/bind_instance2_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/bind_instance2_vpc.go new file mode 100644 index 0000000..b56a644 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/bind_instance2_vpc.go @@ -0,0 +1,112 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// BindInstance2Vpc invokes the ots.BindInstance2Vpc API synchronously +// api document: https://help.aliyun.com/api/ots/bindinstance2vpc.html +func (client *Client) BindInstance2Vpc(request *BindInstance2VpcRequest) (response *BindInstance2VpcResponse, err error) { + response = CreateBindInstance2VpcResponse() + err = client.DoAction(request, response) + return +} + +// BindInstance2VpcWithChan invokes the ots.BindInstance2Vpc API asynchronously +// api document: https://help.aliyun.com/api/ots/bindinstance2vpc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BindInstance2VpcWithChan(request *BindInstance2VpcRequest) (<-chan *BindInstance2VpcResponse, <-chan error) { + responseChan := make(chan *BindInstance2VpcResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BindInstance2Vpc(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BindInstance2VpcWithCallback invokes the ots.BindInstance2Vpc API asynchronously +// api document: https://help.aliyun.com/api/ots/bindinstance2vpc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BindInstance2VpcWithCallback(request *BindInstance2VpcRequest, callback func(response *BindInstance2VpcResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BindInstance2VpcResponse + var err error + defer close(result) + response, err = client.BindInstance2Vpc(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BindInstance2VpcRequest is the request struct for api BindInstance2Vpc +type BindInstance2VpcRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + InstanceVpcName string `position:"Query" name:"InstanceVpcName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceName string `position:"Query" name:"InstanceName"` + VpcId string `position:"Query" name:"VpcId"` + VirtualSwitchId string `position:"Query" name:"VirtualSwitchId"` + RegionNo string `position:"Query" name:"RegionNo"` + Network string `position:"Query" name:"Network"` +} + +// BindInstance2VpcResponse is the response struct for api BindInstance2Vpc +type BindInstance2VpcResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Endpoint string `json:"Endpoint" xml:"Endpoint"` + Domain string `json:"Domain" xml:"Domain"` +} + +// CreateBindInstance2VpcRequest creates a request to invoke BindInstance2Vpc API +func CreateBindInstance2VpcRequest() (request *BindInstance2VpcRequest) { + request = &BindInstance2VpcRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ots", "2016-06-20", "BindInstance2Vpc", "ots", "openAPI") + return +} + +// CreateBindInstance2VpcResponse creates a response to parse from BindInstance2Vpc response +func CreateBindInstance2VpcResponse() (response *BindInstance2VpcResponse) { + response = &BindInstance2VpcResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/client.go new file mode 100644 index 0000000..c906e43 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/client.go @@ -0,0 +1,81 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/delete_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/delete_instance.go new file mode 100644 index 0000000..727773b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/delete_instance.go @@ -0,0 +1,105 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteInstance invokes the ots.DeleteInstance API synchronously +// api document: https://help.aliyun.com/api/ots/deleteinstance.html +func (client *Client) DeleteInstance(request *DeleteInstanceRequest) (response *DeleteInstanceResponse, err error) { + response = CreateDeleteInstanceResponse() + err = client.DoAction(request, response) + return +} + +// DeleteInstanceWithChan invokes the ots.DeleteInstance API asynchronously +// api document: https://help.aliyun.com/api/ots/deleteinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteInstanceWithChan(request *DeleteInstanceRequest) (<-chan *DeleteInstanceResponse, <-chan error) { + responseChan := make(chan *DeleteInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteInstanceWithCallback invokes the ots.DeleteInstance API asynchronously +// api document: https://help.aliyun.com/api/ots/deleteinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteInstanceWithCallback(request *DeleteInstanceRequest, callback func(response *DeleteInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteInstanceResponse + var err error + defer close(result) + response, err = client.DeleteInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteInstanceRequest is the request struct for api DeleteInstance +type DeleteInstanceRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceName string `position:"Query" name:"InstanceName"` +} + +// DeleteInstanceResponse is the response struct for api DeleteInstance +type DeleteInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteInstanceRequest creates a request to invoke DeleteInstance API +func CreateDeleteInstanceRequest() (request *DeleteInstanceRequest) { + request = &DeleteInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ots", "2016-06-20", "DeleteInstance", "ots", "openAPI") + return +} + +// CreateDeleteInstanceResponse creates a response to parse from DeleteInstance response +func CreateDeleteInstanceResponse() (response *DeleteInstanceResponse) { + response = &DeleteInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/delete_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/delete_tags.go new file mode 100644 index 0000000..11c2696 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/delete_tags.go @@ -0,0 +1,112 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteTags invokes the ots.DeleteTags API synchronously +// api document: https://help.aliyun.com/api/ots/deletetags.html +func (client *Client) DeleteTags(request *DeleteTagsRequest) (response *DeleteTagsResponse, err error) { + response = CreateDeleteTagsResponse() + err = client.DoAction(request, response) + return +} + +// DeleteTagsWithChan invokes the ots.DeleteTags API asynchronously +// api document: https://help.aliyun.com/api/ots/deletetags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteTagsWithChan(request *DeleteTagsRequest) (<-chan *DeleteTagsResponse, <-chan error) { + responseChan := make(chan *DeleteTagsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteTags(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteTagsWithCallback invokes the ots.DeleteTags API asynchronously +// api document: https://help.aliyun.com/api/ots/deletetags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteTagsWithCallback(request *DeleteTagsRequest, callback func(response *DeleteTagsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteTagsResponse + var err error + defer close(result) + response, err = client.DeleteTags(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteTagsRequest is the request struct for api DeleteTags +type DeleteTagsRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceName string `position:"Query" name:"InstanceName"` + TagInfo *[]DeleteTagsTagInfo `position:"Query" name:"TagInfo" type:"Repeated"` +} + +// DeleteTagsTagInfo is a repeated param struct in DeleteTagsRequest +type DeleteTagsTagInfo struct { + TagKey string `name:"TagKey"` + TagValue string `name:"TagValue"` +} + +// DeleteTagsResponse is the response struct for api DeleteTags +type DeleteTagsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteTagsRequest creates a request to invoke DeleteTags API +func CreateDeleteTagsRequest() (request *DeleteTagsRequest) { + request = &DeleteTagsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ots", "2016-06-20", "DeleteTags", "ots", "openAPI") + return +} + +// CreateDeleteTagsResponse creates a response to parse from DeleteTags response +func CreateDeleteTagsResponse() (response *DeleteTagsResponse) { + response = &DeleteTagsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/get_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/get_instance.go new file mode 100644 index 0000000..f925db8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/get_instance.go @@ -0,0 +1,106 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetInstance invokes the ots.GetInstance API synchronously +// api document: https://help.aliyun.com/api/ots/getinstance.html +func (client *Client) GetInstance(request *GetInstanceRequest) (response *GetInstanceResponse, err error) { + response = CreateGetInstanceResponse() + err = client.DoAction(request, response) + return +} + +// GetInstanceWithChan invokes the ots.GetInstance API asynchronously +// api document: https://help.aliyun.com/api/ots/getinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetInstanceWithChan(request *GetInstanceRequest) (<-chan *GetInstanceResponse, <-chan error) { + responseChan := make(chan *GetInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetInstanceWithCallback invokes the ots.GetInstance API asynchronously +// api document: https://help.aliyun.com/api/ots/getinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetInstanceWithCallback(request *GetInstanceRequest, callback func(response *GetInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetInstanceResponse + var err error + defer close(result) + response, err = client.GetInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetInstanceRequest is the request struct for api GetInstance +type GetInstanceRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceName string `position:"Query" name:"InstanceName"` +} + +// GetInstanceResponse is the response struct for api GetInstance +type GetInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceInfo InstanceInfo `json:"InstanceInfo" xml:"InstanceInfo"` +} + +// CreateGetInstanceRequest creates a request to invoke GetInstance API +func CreateGetInstanceRequest() (request *GetInstanceRequest) { + request = &GetInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ots", "2016-06-20", "GetInstance", "ots", "openAPI") + return +} + +// CreateGetInstanceResponse creates a response to parse from GetInstance response +func CreateGetInstanceResponse() (response *GetInstanceResponse) { + response = &GetInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/insert_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/insert_instance.go new file mode 100644 index 0000000..0f39b66 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/insert_instance.go @@ -0,0 +1,115 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// InsertInstance invokes the ots.InsertInstance API synchronously +// api document: https://help.aliyun.com/api/ots/insertinstance.html +func (client *Client) InsertInstance(request *InsertInstanceRequest) (response *InsertInstanceResponse, err error) { + response = CreateInsertInstanceResponse() + err = client.DoAction(request, response) + return +} + +// InsertInstanceWithChan invokes the ots.InsertInstance API asynchronously +// api document: https://help.aliyun.com/api/ots/insertinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) InsertInstanceWithChan(request *InsertInstanceRequest) (<-chan *InsertInstanceResponse, <-chan error) { + responseChan := make(chan *InsertInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.InsertInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// InsertInstanceWithCallback invokes the ots.InsertInstance API asynchronously +// api document: https://help.aliyun.com/api/ots/insertinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) InsertInstanceWithCallback(request *InsertInstanceRequest, callback func(response *InsertInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *InsertInstanceResponse + var err error + defer close(result) + response, err = client.InsertInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// InsertInstanceRequest is the request struct for api InsertInstance +type InsertInstanceRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ClusterType string `position:"Query" name:"ClusterType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceName string `position:"Query" name:"InstanceName"` + Description string `position:"Query" name:"Description"` + TagInfo *[]InsertInstanceTagInfo `position:"Query" name:"TagInfo" type:"Repeated"` + Network string `position:"Query" name:"Network"` +} + +// InsertInstanceTagInfo is a repeated param struct in InsertInstanceRequest +type InsertInstanceTagInfo struct { + TagKey string `name:"TagKey"` + TagValue string `name:"TagValue"` +} + +// InsertInstanceResponse is the response struct for api InsertInstance +type InsertInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateInsertInstanceRequest creates a request to invoke InsertInstance API +func CreateInsertInstanceRequest() (request *InsertInstanceRequest) { + request = &InsertInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ots", "2016-06-20", "InsertInstance", "ots", "openAPI") + return +} + +// CreateInsertInstanceResponse creates a response to parse from InsertInstance response +func CreateInsertInstanceResponse() (response *InsertInstanceResponse) { + response = &InsertInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/insert_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/insert_tags.go new file mode 100644 index 0000000..3e06830 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/insert_tags.go @@ -0,0 +1,112 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// InsertTags invokes the ots.InsertTags API synchronously +// api document: https://help.aliyun.com/api/ots/inserttags.html +func (client *Client) InsertTags(request *InsertTagsRequest) (response *InsertTagsResponse, err error) { + response = CreateInsertTagsResponse() + err = client.DoAction(request, response) + return +} + +// InsertTagsWithChan invokes the ots.InsertTags API asynchronously +// api document: https://help.aliyun.com/api/ots/inserttags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) InsertTagsWithChan(request *InsertTagsRequest) (<-chan *InsertTagsResponse, <-chan error) { + responseChan := make(chan *InsertTagsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.InsertTags(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// InsertTagsWithCallback invokes the ots.InsertTags API asynchronously +// api document: https://help.aliyun.com/api/ots/inserttags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) InsertTagsWithCallback(request *InsertTagsRequest, callback func(response *InsertTagsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *InsertTagsResponse + var err error + defer close(result) + response, err = client.InsertTags(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// InsertTagsRequest is the request struct for api InsertTags +type InsertTagsRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceName string `position:"Query" name:"InstanceName"` + TagInfo *[]InsertTagsTagInfo `position:"Query" name:"TagInfo" type:"Repeated"` +} + +// InsertTagsTagInfo is a repeated param struct in InsertTagsRequest +type InsertTagsTagInfo struct { + TagKey string `name:"TagKey"` + TagValue string `name:"TagValue"` +} + +// InsertTagsResponse is the response struct for api InsertTags +type InsertTagsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateInsertTagsRequest creates a request to invoke InsertTags API +func CreateInsertTagsRequest() (request *InsertTagsRequest) { + request = &InsertTagsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ots", "2016-06-20", "InsertTags", "ots", "openAPI") + return +} + +// CreateInsertTagsResponse creates a response to parse from InsertTags response +func CreateInsertTagsResponse() (response *InsertTagsResponse) { + response = &InsertTagsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/list_cluster_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/list_cluster_type.go new file mode 100644 index 0000000..b7245e0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/list_cluster_type.go @@ -0,0 +1,105 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListClusterType invokes the ots.ListClusterType API synchronously +// api document: https://help.aliyun.com/api/ots/listclustertype.html +func (client *Client) ListClusterType(request *ListClusterTypeRequest) (response *ListClusterTypeResponse, err error) { + response = CreateListClusterTypeResponse() + err = client.DoAction(request, response) + return +} + +// ListClusterTypeWithChan invokes the ots.ListClusterType API asynchronously +// api document: https://help.aliyun.com/api/ots/listclustertype.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListClusterTypeWithChan(request *ListClusterTypeRequest) (<-chan *ListClusterTypeResponse, <-chan error) { + responseChan := make(chan *ListClusterTypeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListClusterType(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListClusterTypeWithCallback invokes the ots.ListClusterType API asynchronously +// api document: https://help.aliyun.com/api/ots/listclustertype.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListClusterTypeWithCallback(request *ListClusterTypeRequest, callback func(response *ListClusterTypeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListClusterTypeResponse + var err error + defer close(result) + response, err = client.ListClusterType(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListClusterTypeRequest is the request struct for api ListClusterType +type ListClusterTypeRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` +} + +// ListClusterTypeResponse is the response struct for api ListClusterType +type ListClusterTypeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ClusterTypeInfos ClusterTypeInfos `json:"ClusterTypeInfos" xml:"ClusterTypeInfos"` +} + +// CreateListClusterTypeRequest creates a request to invoke ListClusterType API +func CreateListClusterTypeRequest() (request *ListClusterTypeRequest) { + request = &ListClusterTypeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ots", "2016-06-20", "ListClusterType", "ots", "openAPI") + return +} + +// CreateListClusterTypeResponse creates a response to parse from ListClusterType response +func CreateListClusterTypeResponse() (response *ListClusterTypeResponse) { + response = &ListClusterTypeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/list_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/list_instance.go new file mode 100644 index 0000000..172a33d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/list_instance.go @@ -0,0 +1,117 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListInstance invokes the ots.ListInstance API synchronously +// api document: https://help.aliyun.com/api/ots/listinstance.html +func (client *Client) ListInstance(request *ListInstanceRequest) (response *ListInstanceResponse, err error) { + response = CreateListInstanceResponse() + err = client.DoAction(request, response) + return +} + +// ListInstanceWithChan invokes the ots.ListInstance API asynchronously +// api document: https://help.aliyun.com/api/ots/listinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListInstanceWithChan(request *ListInstanceRequest) (<-chan *ListInstanceResponse, <-chan error) { + responseChan := make(chan *ListInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListInstanceWithCallback invokes the ots.ListInstance API asynchronously +// api document: https://help.aliyun.com/api/ots/listinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListInstanceWithCallback(request *ListInstanceRequest, callback func(response *ListInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListInstanceResponse + var err error + defer close(result) + response, err = client.ListInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListInstanceRequest is the request struct for api ListInstance +type ListInstanceRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + TagInfo *[]ListInstanceTagInfo `position:"Query" name:"TagInfo" type:"Repeated"` +} + +// ListInstanceTagInfo is a repeated param struct in ListInstanceRequest +type ListInstanceTagInfo struct { + TagKey string `name:"TagKey"` + TagValue string `name:"TagValue"` +} + +// ListInstanceResponse is the response struct for api ListInstance +type ListInstanceResponse struct { + *responses.BaseResponse + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNum int `json:"PageNum" xml:"PageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceInfos InstanceInfos `json:"InstanceInfos" xml:"InstanceInfos"` +} + +// CreateListInstanceRequest creates a request to invoke ListInstance API +func CreateListInstanceRequest() (request *ListInstanceRequest) { + request = &ListInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ots", "2016-06-20", "ListInstance", "ots", "openAPI") + return +} + +// CreateListInstanceResponse creates a response to parse from ListInstance response +func CreateListInstanceResponse() (response *ListInstanceResponse) { + response = &ListInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/list_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/list_tags.go new file mode 100644 index 0000000..ed61c73 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/list_tags.go @@ -0,0 +1,118 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListTags invokes the ots.ListTags API synchronously +// api document: https://help.aliyun.com/api/ots/listtags.html +func (client *Client) ListTags(request *ListTagsRequest) (response *ListTagsResponse, err error) { + response = CreateListTagsResponse() + err = client.DoAction(request, response) + return +} + +// ListTagsWithChan invokes the ots.ListTags API asynchronously +// api document: https://help.aliyun.com/api/ots/listtags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListTagsWithChan(request *ListTagsRequest) (<-chan *ListTagsResponse, <-chan error) { + responseChan := make(chan *ListTagsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListTags(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListTagsWithCallback invokes the ots.ListTags API asynchronously +// api document: https://help.aliyun.com/api/ots/listtags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListTagsWithCallback(request *ListTagsRequest, callback func(response *ListTagsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListTagsResponse + var err error + defer close(result) + response, err = client.ListTags(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListTagsRequest is the request struct for api ListTags +type ListTagsRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceName string `position:"Query" name:"InstanceName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + TagInfo *[]ListTagsTagInfo `position:"Query" name:"TagInfo" type:"Repeated"` +} + +// ListTagsTagInfo is a repeated param struct in ListTagsRequest +type ListTagsTagInfo struct { + TagKey string `name:"TagKey"` + TagValue string `name:"TagValue"` +} + +// ListTagsResponse is the response struct for api ListTags +type ListTagsResponse struct { + *responses.BaseResponse + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNum int `json:"PageNum" xml:"PageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + TagInfos TagInfosInListTags `json:"TagInfos" xml:"TagInfos"` +} + +// CreateListTagsRequest creates a request to invoke ListTags API +func CreateListTagsRequest() (request *ListTagsRequest) { + request = &ListTagsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ots", "2016-06-20", "ListTags", "ots", "openAPI") + return +} + +// CreateListTagsResponse creates a response to parse from ListTags response +func CreateListTagsResponse() (response *ListTagsResponse) { + response = &ListTagsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/list_vpc_info_by_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/list_vpc_info_by_instance.go new file mode 100644 index 0000000..2b8076d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/list_vpc_info_by_instance.go @@ -0,0 +1,112 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListVpcInfoByInstance invokes the ots.ListVpcInfoByInstance API synchronously +// api document: https://help.aliyun.com/api/ots/listvpcinfobyinstance.html +func (client *Client) ListVpcInfoByInstance(request *ListVpcInfoByInstanceRequest) (response *ListVpcInfoByInstanceResponse, err error) { + response = CreateListVpcInfoByInstanceResponse() + err = client.DoAction(request, response) + return +} + +// ListVpcInfoByInstanceWithChan invokes the ots.ListVpcInfoByInstance API asynchronously +// api document: https://help.aliyun.com/api/ots/listvpcinfobyinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListVpcInfoByInstanceWithChan(request *ListVpcInfoByInstanceRequest) (<-chan *ListVpcInfoByInstanceResponse, <-chan error) { + responseChan := make(chan *ListVpcInfoByInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListVpcInfoByInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListVpcInfoByInstanceWithCallback invokes the ots.ListVpcInfoByInstance API asynchronously +// api document: https://help.aliyun.com/api/ots/listvpcinfobyinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListVpcInfoByInstanceWithCallback(request *ListVpcInfoByInstanceRequest, callback func(response *ListVpcInfoByInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListVpcInfoByInstanceResponse + var err error + defer close(result) + response, err = client.ListVpcInfoByInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListVpcInfoByInstanceRequest is the request struct for api ListVpcInfoByInstance +type ListVpcInfoByInstanceRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceName string `position:"Query" name:"InstanceName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNum requests.Integer `position:"Query" name:"PageNum"` +} + +// ListVpcInfoByInstanceResponse is the response struct for api ListVpcInfoByInstance +type ListVpcInfoByInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNum int `json:"PageNum" xml:"PageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + VpcInfos VpcInfosInListVpcInfoByInstance `json:"VpcInfos" xml:"VpcInfos"` +} + +// CreateListVpcInfoByInstanceRequest creates a request to invoke ListVpcInfoByInstance API +func CreateListVpcInfoByInstanceRequest() (request *ListVpcInfoByInstanceRequest) { + request = &ListVpcInfoByInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ots", "2016-06-20", "ListVpcInfoByInstance", "ots", "openAPI") + return +} + +// CreateListVpcInfoByInstanceResponse creates a response to parse from ListVpcInfoByInstance response +func CreateListVpcInfoByInstanceResponse() (response *ListVpcInfoByInstanceResponse) { + response = &ListVpcInfoByInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/list_vpc_info_by_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/list_vpc_info_by_vpc.go new file mode 100644 index 0000000..296b268 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/list_vpc_info_by_vpc.go @@ -0,0 +1,119 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListVpcInfoByVpc invokes the ots.ListVpcInfoByVpc API synchronously +// api document: https://help.aliyun.com/api/ots/listvpcinfobyvpc.html +func (client *Client) ListVpcInfoByVpc(request *ListVpcInfoByVpcRequest) (response *ListVpcInfoByVpcResponse, err error) { + response = CreateListVpcInfoByVpcResponse() + err = client.DoAction(request, response) + return +} + +// ListVpcInfoByVpcWithChan invokes the ots.ListVpcInfoByVpc API asynchronously +// api document: https://help.aliyun.com/api/ots/listvpcinfobyvpc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListVpcInfoByVpcWithChan(request *ListVpcInfoByVpcRequest) (<-chan *ListVpcInfoByVpcResponse, <-chan error) { + responseChan := make(chan *ListVpcInfoByVpcResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListVpcInfoByVpc(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListVpcInfoByVpcWithCallback invokes the ots.ListVpcInfoByVpc API asynchronously +// api document: https://help.aliyun.com/api/ots/listvpcinfobyvpc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListVpcInfoByVpcWithCallback(request *ListVpcInfoByVpcRequest, callback func(response *ListVpcInfoByVpcResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListVpcInfoByVpcResponse + var err error + defer close(result) + response, err = client.ListVpcInfoByVpc(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListVpcInfoByVpcRequest is the request struct for api ListVpcInfoByVpc +type ListVpcInfoByVpcRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VpcId string `position:"Query" name:"VpcId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + TagInfo *[]ListVpcInfoByVpcTagInfo `position:"Query" name:"TagInfo" type:"Repeated"` +} + +// ListVpcInfoByVpcTagInfo is a repeated param struct in ListVpcInfoByVpcRequest +type ListVpcInfoByVpcTagInfo struct { + TagKey string `name:"TagKey"` + TagValue string `name:"TagValue"` +} + +// ListVpcInfoByVpcResponse is the response struct for api ListVpcInfoByVpc +type ListVpcInfoByVpcResponse struct { + *responses.BaseResponse + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNum int `json:"PageNum" xml:"PageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + VpcId string `json:"VpcId" xml:"VpcId"` + VpcInfos VpcInfosInListVpcInfoByVpc `json:"VpcInfos" xml:"VpcInfos"` +} + +// CreateListVpcInfoByVpcRequest creates a request to invoke ListVpcInfoByVpc API +func CreateListVpcInfoByVpcRequest() (request *ListVpcInfoByVpcRequest) { + request = &ListVpcInfoByVpcRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ots", "2016-06-20", "ListVpcInfoByVpc", "ots", "openAPI") + return +} + +// CreateListVpcInfoByVpcResponse creates a response to parse from ListVpcInfoByVpc response +func CreateListVpcInfoByVpcResponse() (response *ListVpcInfoByVpcResponse) { + response = &ListVpcInfoByVpcResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_cluster_type_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_cluster_type_infos.go new file mode 100644 index 0000000..de8281e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_cluster_type_infos.go @@ -0,0 +1,21 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ClusterTypeInfos is a nested struct in ots response +type ClusterTypeInfos struct { + ClusterType []string `json:"ClusterType" xml:"ClusterType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_instance_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_instance_info.go new file mode 100644 index 0000000..8be0d76 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_instance_info.go @@ -0,0 +1,32 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceInfo is a nested struct in ots response +type InstanceInfo struct { + Status int `json:"Status" xml:"Status"` + WriteCapacity int `json:"WriteCapacity" xml:"WriteCapacity"` + ReadCapacity int `json:"ReadCapacity" xml:"ReadCapacity"` + ClusterType string `json:"ClusterType" xml:"ClusterType"` + Timestamp string `json:"Timestamp" xml:"Timestamp"` + UserId string `json:"UserId" xml:"UserId"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Network string `json:"Network" xml:"Network"` + Description string `json:"Description" xml:"Description"` + Quota Quota `json:"Quota" xml:"Quota"` + TagInfos TagInfosInGetInstance `json:"TagInfos" xml:"TagInfos"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_instance_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_instance_infos.go new file mode 100644 index 0000000..d730404 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_instance_infos.go @@ -0,0 +1,21 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceInfos is a nested struct in ots response +type InstanceInfos struct { + InstanceInfo []InstanceInfo `json:"InstanceInfo" xml:"InstanceInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_quota.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_quota.go new file mode 100644 index 0000000..e1d7183 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_quota.go @@ -0,0 +1,21 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Quota is a nested struct in ots response +type Quota struct { + EntityQuota int `json:"EntityQuota" xml:"EntityQuota"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_tag_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_tag_info.go new file mode 100644 index 0000000..66df290 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_tag_info.go @@ -0,0 +1,22 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagInfo is a nested struct in ots response +type TagInfo struct { + TagValue string `json:"TagValue" xml:"TagValue"` + TagKey string `json:"TagKey" xml:"TagKey"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_tag_infos_in_get_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_tag_infos_in_get_instance.go new file mode 100644 index 0000000..2a372e3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_tag_infos_in_get_instance.go @@ -0,0 +1,21 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagInfosInGetInstance is a nested struct in ots response +type TagInfosInGetInstance struct { + TagInfo []TagInfo `json:"TagInfo" xml:"TagInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_tag_infos_in_list_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_tag_infos_in_list_tags.go new file mode 100644 index 0000000..6cf0bcf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_tag_infos_in_list_tags.go @@ -0,0 +1,21 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagInfosInListTags is a nested struct in ots response +type TagInfosInListTags struct { + TagInfo []TagInfo `json:"TagInfo" xml:"TagInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_vpc_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_vpc_info.go new file mode 100644 index 0000000..f77dd71 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_vpc_info.go @@ -0,0 +1,26 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VpcInfo is a nested struct in ots response +type VpcInfo struct { + Domain string `json:"Domain" xml:"Domain"` + Endpoint string `json:"Endpoint" xml:"Endpoint"` + RegionNo string `json:"RegionNo" xml:"RegionNo"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + InstanceVpcName string `json:"InstanceVpcName" xml:"InstanceVpcName"` + VpcId string `json:"VpcId" xml:"VpcId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_vpc_infos_in_list_vpc_info_by_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_vpc_infos_in_list_vpc_info_by_instance.go new file mode 100644 index 0000000..e6990f0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_vpc_infos_in_list_vpc_info_by_instance.go @@ -0,0 +1,21 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VpcInfosInListVpcInfoByInstance is a nested struct in ots response +type VpcInfosInListVpcInfoByInstance struct { + VpcInfo []VpcInfo `json:"VpcInfo" xml:"VpcInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_vpc_infos_in_list_vpc_info_by_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_vpc_infos_in_list_vpc_info_by_vpc.go new file mode 100644 index 0000000..0df223e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/struct_vpc_infos_in_list_vpc_info_by_vpc.go @@ -0,0 +1,21 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VpcInfosInListVpcInfoByVpc is a nested struct in ots response +type VpcInfosInListVpcInfoByVpc struct { + VpcInfo []VpcInfo `json:"VpcInfo" xml:"VpcInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/unbind_instance2_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/unbind_instance2_vpc.go new file mode 100644 index 0000000..b6fd245 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/unbind_instance2_vpc.go @@ -0,0 +1,107 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UnbindInstance2Vpc invokes the ots.UnbindInstance2Vpc API synchronously +// api document: https://help.aliyun.com/api/ots/unbindinstance2vpc.html +func (client *Client) UnbindInstance2Vpc(request *UnbindInstance2VpcRequest) (response *UnbindInstance2VpcResponse, err error) { + response = CreateUnbindInstance2VpcResponse() + err = client.DoAction(request, response) + return +} + +// UnbindInstance2VpcWithChan invokes the ots.UnbindInstance2Vpc API asynchronously +// api document: https://help.aliyun.com/api/ots/unbindinstance2vpc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnbindInstance2VpcWithChan(request *UnbindInstance2VpcRequest) (<-chan *UnbindInstance2VpcResponse, <-chan error) { + responseChan := make(chan *UnbindInstance2VpcResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UnbindInstance2Vpc(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UnbindInstance2VpcWithCallback invokes the ots.UnbindInstance2Vpc API asynchronously +// api document: https://help.aliyun.com/api/ots/unbindinstance2vpc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnbindInstance2VpcWithCallback(request *UnbindInstance2VpcRequest, callback func(response *UnbindInstance2VpcResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UnbindInstance2VpcResponse + var err error + defer close(result) + response, err = client.UnbindInstance2Vpc(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UnbindInstance2VpcRequest is the request struct for api UnbindInstance2Vpc +type UnbindInstance2VpcRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + InstanceVpcName string `position:"Query" name:"InstanceVpcName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceName string `position:"Query" name:"InstanceName"` + RegionNo string `position:"Query" name:"RegionNo"` +} + +// UnbindInstance2VpcResponse is the response struct for api UnbindInstance2Vpc +type UnbindInstance2VpcResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUnbindInstance2VpcRequest creates a request to invoke UnbindInstance2Vpc API +func CreateUnbindInstance2VpcRequest() (request *UnbindInstance2VpcRequest) { + request = &UnbindInstance2VpcRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ots", "2016-06-20", "UnbindInstance2Vpc", "ots", "openAPI") + return +} + +// CreateUnbindInstance2VpcResponse creates a response to parse from UnbindInstance2Vpc response +func CreateUnbindInstance2VpcResponse() (response *UnbindInstance2VpcResponse) { + response = &UnbindInstance2VpcResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/update_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/update_instance.go new file mode 100644 index 0000000..01b0246 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ots/update_instance.go @@ -0,0 +1,106 @@ +package ots + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateInstance invokes the ots.UpdateInstance API synchronously +// api document: https://help.aliyun.com/api/ots/updateinstance.html +func (client *Client) UpdateInstance(request *UpdateInstanceRequest) (response *UpdateInstanceResponse, err error) { + response = CreateUpdateInstanceResponse() + err = client.DoAction(request, response) + return +} + +// UpdateInstanceWithChan invokes the ots.UpdateInstance API asynchronously +// api document: https://help.aliyun.com/api/ots/updateinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateInstanceWithChan(request *UpdateInstanceRequest) (<-chan *UpdateInstanceResponse, <-chan error) { + responseChan := make(chan *UpdateInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateInstanceWithCallback invokes the ots.UpdateInstance API asynchronously +// api document: https://help.aliyun.com/api/ots/updateinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateInstanceWithCallback(request *UpdateInstanceRequest, callback func(response *UpdateInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateInstanceResponse + var err error + defer close(result) + response, err = client.UpdateInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateInstanceRequest is the request struct for api UpdateInstance +type UpdateInstanceRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceName string `position:"Query" name:"InstanceName"` + Network string `position:"Query" name:"Network"` +} + +// UpdateInstanceResponse is the response struct for api UpdateInstance +type UpdateInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateInstanceRequest creates a request to invoke UpdateInstance API +func CreateUpdateInstanceRequest() (request *UpdateInstanceRequest) { + request = &UpdateInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ots", "2016-06-20", "UpdateInstance", "ots", "openAPI") + return +} + +// CreateUpdateInstanceResponse creates a response to parse from UpdateInstance response +func CreateUpdateInstanceResponse() (response *UpdateInstanceResponse) { + response = &UpdateInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/bind_alias.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/bind_alias.go new file mode 100644 index 0000000..a19c6b1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/bind_alias.go @@ -0,0 +1,105 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// BindAlias invokes the push.BindAlias API synchronously +// api document: https://help.aliyun.com/api/push/bindalias.html +func (client *Client) BindAlias(request *BindAliasRequest) (response *BindAliasResponse, err error) { + response = CreateBindAliasResponse() + err = client.DoAction(request, response) + return +} + +// BindAliasWithChan invokes the push.BindAlias API asynchronously +// api document: https://help.aliyun.com/api/push/bindalias.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BindAliasWithChan(request *BindAliasRequest) (<-chan *BindAliasResponse, <-chan error) { + responseChan := make(chan *BindAliasResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BindAlias(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BindAliasWithCallback invokes the push.BindAlias API asynchronously +// api document: https://help.aliyun.com/api/push/bindalias.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BindAliasWithCallback(request *BindAliasRequest, callback func(response *BindAliasResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BindAliasResponse + var err error + defer close(result) + response, err = client.BindAlias(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BindAliasRequest is the request struct for api BindAlias +type BindAliasRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + DeviceId string `position:"Query" name:"DeviceId"` + AliasName string `position:"Query" name:"AliasName"` +} + +// BindAliasResponse is the response struct for api BindAlias +type BindAliasResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateBindAliasRequest creates a request to invoke BindAlias API +func CreateBindAliasRequest() (request *BindAliasRequest) { + request = &BindAliasRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "BindAlias", "", "") + return +} + +// CreateBindAliasResponse creates a response to parse from BindAlias response +func CreateBindAliasResponse() (response *BindAliasResponse) { + response = &BindAliasResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/bind_phone.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/bind_phone.go new file mode 100644 index 0000000..d5bdeda --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/bind_phone.go @@ -0,0 +1,105 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// BindPhone invokes the push.BindPhone API synchronously +// api document: https://help.aliyun.com/api/push/bindphone.html +func (client *Client) BindPhone(request *BindPhoneRequest) (response *BindPhoneResponse, err error) { + response = CreateBindPhoneResponse() + err = client.DoAction(request, response) + return +} + +// BindPhoneWithChan invokes the push.BindPhone API asynchronously +// api document: https://help.aliyun.com/api/push/bindphone.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BindPhoneWithChan(request *BindPhoneRequest) (<-chan *BindPhoneResponse, <-chan error) { + responseChan := make(chan *BindPhoneResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BindPhone(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BindPhoneWithCallback invokes the push.BindPhone API asynchronously +// api document: https://help.aliyun.com/api/push/bindphone.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BindPhoneWithCallback(request *BindPhoneRequest, callback func(response *BindPhoneResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BindPhoneResponse + var err error + defer close(result) + response, err = client.BindPhone(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BindPhoneRequest is the request struct for api BindPhone +type BindPhoneRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + DeviceId string `position:"Query" name:"DeviceId"` + PhoneNumber string `position:"Query" name:"PhoneNumber"` +} + +// BindPhoneResponse is the response struct for api BindPhone +type BindPhoneResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateBindPhoneRequest creates a request to invoke BindPhone API +func CreateBindPhoneRequest() (request *BindPhoneRequest) { + request = &BindPhoneRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "BindPhone", "", "") + return +} + +// CreateBindPhoneResponse creates a response to parse from BindPhone response +func CreateBindPhoneResponse() (response *BindPhoneResponse) { + response = &BindPhoneResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/bind_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/bind_tag.go new file mode 100644 index 0000000..cb02dab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/bind_tag.go @@ -0,0 +1,106 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// BindTag invokes the push.BindTag API synchronously +// api document: https://help.aliyun.com/api/push/bindtag.html +func (client *Client) BindTag(request *BindTagRequest) (response *BindTagResponse, err error) { + response = CreateBindTagResponse() + err = client.DoAction(request, response) + return +} + +// BindTagWithChan invokes the push.BindTag API asynchronously +// api document: https://help.aliyun.com/api/push/bindtag.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BindTagWithChan(request *BindTagRequest) (<-chan *BindTagResponse, <-chan error) { + responseChan := make(chan *BindTagResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BindTag(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BindTagWithCallback invokes the push.BindTag API asynchronously +// api document: https://help.aliyun.com/api/push/bindtag.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BindTagWithCallback(request *BindTagRequest, callback func(response *BindTagResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BindTagResponse + var err error + defer close(result) + response, err = client.BindTag(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BindTagRequest is the request struct for api BindTag +type BindTagRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + ClientKey string `position:"Query" name:"ClientKey"` + KeyType string `position:"Query" name:"KeyType"` + TagName string `position:"Query" name:"TagName"` +} + +// BindTagResponse is the response struct for api BindTag +type BindTagResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateBindTagRequest creates a request to invoke BindTag API +func CreateBindTagRequest() (request *BindTagRequest) { + request = &BindTagRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "BindTag", "", "") + return +} + +// CreateBindTagResponse creates a response to parse from BindTag response +func CreateBindTagResponse() (response *BindTagResponse) { + response = &BindTagResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/cancel_push.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/cancel_push.go new file mode 100644 index 0000000..5b71c91 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/cancel_push.go @@ -0,0 +1,104 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CancelPush invokes the push.CancelPush API synchronously +// api document: https://help.aliyun.com/api/push/cancelpush.html +func (client *Client) CancelPush(request *CancelPushRequest) (response *CancelPushResponse, err error) { + response = CreateCancelPushResponse() + err = client.DoAction(request, response) + return +} + +// CancelPushWithChan invokes the push.CancelPush API asynchronously +// api document: https://help.aliyun.com/api/push/cancelpush.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelPushWithChan(request *CancelPushRequest) (<-chan *CancelPushResponse, <-chan error) { + responseChan := make(chan *CancelPushResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CancelPush(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CancelPushWithCallback invokes the push.CancelPush API asynchronously +// api document: https://help.aliyun.com/api/push/cancelpush.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelPushWithCallback(request *CancelPushRequest, callback func(response *CancelPushResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CancelPushResponse + var err error + defer close(result) + response, err = client.CancelPush(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CancelPushRequest is the request struct for api CancelPush +type CancelPushRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + MessageId requests.Integer `position:"Query" name:"MessageId"` +} + +// CancelPushResponse is the response struct for api CancelPush +type CancelPushResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCancelPushRequest creates a request to invoke CancelPush API +func CreateCancelPushRequest() (request *CancelPushRequest) { + request = &CancelPushRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "CancelPush", "", "") + return +} + +// CreateCancelPushResponse creates a response to parse from CancelPush response +func CreateCancelPushResponse() (response *CancelPushResponse) { + response = &CancelPushResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/check_device.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/check_device.go new file mode 100644 index 0000000..7a9a2ae --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/check_device.go @@ -0,0 +1,105 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckDevice invokes the push.CheckDevice API synchronously +// api document: https://help.aliyun.com/api/push/checkdevice.html +func (client *Client) CheckDevice(request *CheckDeviceRequest) (response *CheckDeviceResponse, err error) { + response = CreateCheckDeviceResponse() + err = client.DoAction(request, response) + return +} + +// CheckDeviceWithChan invokes the push.CheckDevice API asynchronously +// api document: https://help.aliyun.com/api/push/checkdevice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckDeviceWithChan(request *CheckDeviceRequest) (<-chan *CheckDeviceResponse, <-chan error) { + responseChan := make(chan *CheckDeviceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckDevice(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckDeviceWithCallback invokes the push.CheckDevice API asynchronously +// api document: https://help.aliyun.com/api/push/checkdevice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckDeviceWithCallback(request *CheckDeviceRequest, callback func(response *CheckDeviceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckDeviceResponse + var err error + defer close(result) + response, err = client.CheckDevice(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckDeviceRequest is the request struct for api CheckDevice +type CheckDeviceRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + DeviceId string `position:"Query" name:"DeviceId"` +} + +// CheckDeviceResponse is the response struct for api CheckDevice +type CheckDeviceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Available bool `json:"Available" xml:"Available"` +} + +// CreateCheckDeviceRequest creates a request to invoke CheckDevice API +func CreateCheckDeviceRequest() (request *CheckDeviceRequest) { + request = &CheckDeviceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "CheckDevice", "", "") + return +} + +// CreateCheckDeviceResponse creates a response to parse from CheckDevice response +func CreateCheckDeviceResponse() (response *CheckDeviceResponse) { + response = &CheckDeviceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/check_devices.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/check_devices.go new file mode 100644 index 0000000..bcd5ca2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/check_devices.go @@ -0,0 +1,105 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckDevices invokes the push.CheckDevices API synchronously +// api document: https://help.aliyun.com/api/push/checkdevices.html +func (client *Client) CheckDevices(request *CheckDevicesRequest) (response *CheckDevicesResponse, err error) { + response = CreateCheckDevicesResponse() + err = client.DoAction(request, response) + return +} + +// CheckDevicesWithChan invokes the push.CheckDevices API asynchronously +// api document: https://help.aliyun.com/api/push/checkdevices.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckDevicesWithChan(request *CheckDevicesRequest) (<-chan *CheckDevicesResponse, <-chan error) { + responseChan := make(chan *CheckDevicesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckDevices(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckDevicesWithCallback invokes the push.CheckDevices API asynchronously +// api document: https://help.aliyun.com/api/push/checkdevices.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckDevicesWithCallback(request *CheckDevicesRequest, callback func(response *CheckDevicesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckDevicesResponse + var err error + defer close(result) + response, err = client.CheckDevices(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckDevicesRequest is the request struct for api CheckDevices +type CheckDevicesRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + DeviceIds string `position:"Query" name:"DeviceIds"` +} + +// CheckDevicesResponse is the response struct for api CheckDevices +type CheckDevicesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DeviceCheckInfos DeviceCheckInfos `json:"DeviceCheckInfos" xml:"DeviceCheckInfos"` +} + +// CreateCheckDevicesRequest creates a request to invoke CheckDevices API +func CreateCheckDevicesRequest() (request *CheckDevicesRequest) { + request = &CheckDevicesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "CheckDevices", "", "") + return +} + +// CreateCheckDevicesResponse creates a response to parse from CheckDevices response +func CreateCheckDevicesResponse() (response *CheckDevicesResponse) { + response = &CheckDevicesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/client.go new file mode 100644 index 0000000..cbb7d4c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/client.go @@ -0,0 +1,81 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/list_push_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/list_push_records.go new file mode 100644 index 0000000..672e97f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/list_push_records.go @@ -0,0 +1,112 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListPushRecords invokes the push.ListPushRecords API synchronously +// api document: https://help.aliyun.com/api/push/listpushrecords.html +func (client *Client) ListPushRecords(request *ListPushRecordsRequest) (response *ListPushRecordsResponse, err error) { + response = CreateListPushRecordsResponse() + err = client.DoAction(request, response) + return +} + +// ListPushRecordsWithChan invokes the push.ListPushRecords API asynchronously +// api document: https://help.aliyun.com/api/push/listpushrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPushRecordsWithChan(request *ListPushRecordsRequest) (<-chan *ListPushRecordsResponse, <-chan error) { + responseChan := make(chan *ListPushRecordsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPushRecords(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPushRecordsWithCallback invokes the push.ListPushRecords API asynchronously +// api document: https://help.aliyun.com/api/push/listpushrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPushRecordsWithCallback(request *ListPushRecordsRequest, callback func(response *ListPushRecordsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPushRecordsResponse + var err error + defer close(result) + response, err = client.ListPushRecords(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPushRecordsRequest is the request struct for api ListPushRecords +type ListPushRecordsRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + PushType string `position:"Query" name:"PushType"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + Page requests.Integer `position:"Query" name:"Page"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// ListPushRecordsResponse is the response struct for api ListPushRecords +type ListPushRecordsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Total int `json:"Total" xml:"Total"` + Page int `json:"Page" xml:"Page"` + PageSize int `json:"PageSize" xml:"PageSize"` + PushMessageInfos PushMessageInfosInListPushRecords `json:"PushMessageInfos" xml:"PushMessageInfos"` +} + +// CreateListPushRecordsRequest creates a request to invoke ListPushRecords API +func CreateListPushRecordsRequest() (request *ListPushRecordsRequest) { + request = &ListPushRecordsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "ListPushRecords", "", "") + return +} + +// CreateListPushRecordsResponse creates a response to parse from ListPushRecords response +func CreateListPushRecordsResponse() (response *ListPushRecordsResponse) { + response = &ListPushRecordsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/list_summary_apps.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/list_summary_apps.go new file mode 100644 index 0000000..6a3eea1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/list_summary_apps.go @@ -0,0 +1,103 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListSummaryApps invokes the push.ListSummaryApps API synchronously +// api document: https://help.aliyun.com/api/push/listsummaryapps.html +func (client *Client) ListSummaryApps(request *ListSummaryAppsRequest) (response *ListSummaryAppsResponse, err error) { + response = CreateListSummaryAppsResponse() + err = client.DoAction(request, response) + return +} + +// ListSummaryAppsWithChan invokes the push.ListSummaryApps API asynchronously +// api document: https://help.aliyun.com/api/push/listsummaryapps.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListSummaryAppsWithChan(request *ListSummaryAppsRequest) (<-chan *ListSummaryAppsResponse, <-chan error) { + responseChan := make(chan *ListSummaryAppsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListSummaryApps(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListSummaryAppsWithCallback invokes the push.ListSummaryApps API asynchronously +// api document: https://help.aliyun.com/api/push/listsummaryapps.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListSummaryAppsWithCallback(request *ListSummaryAppsRequest, callback func(response *ListSummaryAppsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListSummaryAppsResponse + var err error + defer close(result) + response, err = client.ListSummaryApps(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListSummaryAppsRequest is the request struct for api ListSummaryApps +type ListSummaryAppsRequest struct { + *requests.RpcRequest +} + +// ListSummaryAppsResponse is the response struct for api ListSummaryApps +type ListSummaryAppsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SummaryAppInfos SummaryAppInfos `json:"SummaryAppInfos" xml:"SummaryAppInfos"` +} + +// CreateListSummaryAppsRequest creates a request to invoke ListSummaryApps API +func CreateListSummaryAppsRequest() (request *ListSummaryAppsRequest) { + request = &ListSummaryAppsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "ListSummaryApps", "", "") + return +} + +// CreateListSummaryAppsResponse creates a response to parse from ListSummaryApps response +func CreateListSummaryAppsResponse() (response *ListSummaryAppsResponse) { + response = &ListSummaryAppsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/list_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/list_tags.go new file mode 100644 index 0000000..b9c8dc9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/list_tags.go @@ -0,0 +1,104 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListTags invokes the push.ListTags API synchronously +// api document: https://help.aliyun.com/api/push/listtags.html +func (client *Client) ListTags(request *ListTagsRequest) (response *ListTagsResponse, err error) { + response = CreateListTagsResponse() + err = client.DoAction(request, response) + return +} + +// ListTagsWithChan invokes the push.ListTags API asynchronously +// api document: https://help.aliyun.com/api/push/listtags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListTagsWithChan(request *ListTagsRequest) (<-chan *ListTagsResponse, <-chan error) { + responseChan := make(chan *ListTagsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListTags(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListTagsWithCallback invokes the push.ListTags API asynchronously +// api document: https://help.aliyun.com/api/push/listtags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListTagsWithCallback(request *ListTagsRequest, callback func(response *ListTagsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListTagsResponse + var err error + defer close(result) + response, err = client.ListTags(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListTagsRequest is the request struct for api ListTags +type ListTagsRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` +} + +// ListTagsResponse is the response struct for api ListTags +type ListTagsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TagInfos TagInfosInListTags `json:"TagInfos" xml:"TagInfos"` +} + +// CreateListTagsRequest creates a request to invoke ListTags API +func CreateListTagsRequest() (request *ListTagsRequest) { + request = &ListTagsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "ListTags", "", "") + return +} + +// CreateListTagsResponse creates a response to parse from ListTags response +func CreateListTagsResponse() (response *ListTagsResponse) { + response = &ListTagsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/push.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/push.go new file mode 100644 index 0000000..09faa96 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/push.go @@ -0,0 +1,147 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// Push invokes the push.Push API synchronously +// api document: https://help.aliyun.com/api/push/push.html +func (client *Client) Push(request *PushRequest) (response *PushResponse, err error) { + response = CreatePushResponse() + err = client.DoAction(request, response) + return +} + +// PushWithChan invokes the push.Push API asynchronously +// api document: https://help.aliyun.com/api/push/push.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PushWithChan(request *PushRequest) (<-chan *PushResponse, <-chan error) { + responseChan := make(chan *PushResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.Push(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PushWithCallback invokes the push.Push API asynchronously +// api document: https://help.aliyun.com/api/push/push.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PushWithCallback(request *PushRequest, callback func(response *PushResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PushResponse + var err error + defer close(result) + response, err = client.Push(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PushRequest is the request struct for api Push +type PushRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + PushType string `position:"Query" name:"PushType"` + DeviceType string `position:"Query" name:"DeviceType"` + Target string `position:"Query" name:"Target"` + TargetValue string `position:"Query" name:"TargetValue"` + Title string `position:"Query" name:"Title"` + Body string `position:"Query" name:"Body"` + JobKey string `position:"Query" name:"JobKey"` + SendSpeed requests.Integer `position:"Query" name:"SendSpeed"` + StoreOffline requests.Boolean `position:"Query" name:"StoreOffline"` + PushTime string `position:"Query" name:"PushTime"` + ExpireTime string `position:"Query" name:"ExpireTime"` + IOSApnsEnv string `position:"Query" name:"iOSApnsEnv"` + IOSRemind requests.Boolean `position:"Query" name:"iOSRemind"` + IOSRemindBody string `position:"Query" name:"iOSRemindBody"` + IOSBadge requests.Integer `position:"Query" name:"iOSBadge"` + IOSBadgeAutoIncrement requests.Boolean `position:"Query" name:"iOSBadgeAutoIncrement"` + IOSSilentNotification requests.Boolean `position:"Query" name:"iOSSilentNotification"` + IOSMusic string `position:"Query" name:"iOSMusic"` + IOSSubtitle string `position:"Query" name:"iOSSubtitle"` + IOSNotificationCategory string `position:"Query" name:"iOSNotificationCategory"` + IOSMutableContent requests.Boolean `position:"Query" name:"iOSMutableContent"` + IOSExtParameters string `position:"Query" name:"iOSExtParameters"` + AndroidNotifyType string `position:"Query" name:"AndroidNotifyType"` + AndroidOpenType string `position:"Query" name:"AndroidOpenType"` + AndroidActivity string `position:"Query" name:"AndroidActivity"` + AndroidMusic string `position:"Query" name:"AndroidMusic"` + AndroidOpenUrl string `position:"Query" name:"AndroidOpenUrl"` + AndroidXiaoMiActivity string `position:"Query" name:"AndroidXiaoMiActivity"` + AndroidXiaoMiNotifyTitle string `position:"Query" name:"AndroidXiaoMiNotifyTitle"` + AndroidXiaoMiNotifyBody string `position:"Query" name:"AndroidXiaoMiNotifyBody"` + AndroidPopupActivity string `position:"Query" name:"AndroidPopupActivity"` + AndroidPopupTitle string `position:"Query" name:"AndroidPopupTitle"` + AndroidPopupBody string `position:"Query" name:"AndroidPopupBody"` + AndroidNotificationBarType requests.Integer `position:"Query" name:"AndroidNotificationBarType"` + AndroidNotificationBarPriority requests.Integer `position:"Query" name:"AndroidNotificationBarPriority"` + AndroidExtParameters string `position:"Query" name:"AndroidExtParameters"` + AndroidRemind requests.Boolean `position:"Query" name:"AndroidRemind"` + AndroidNotificationChannel string `position:"Query" name:"AndroidNotificationChannel"` + SmsTemplateName string `position:"Query" name:"SmsTemplateName"` + SmsSignName string `position:"Query" name:"SmsSignName"` + SmsParams string `position:"Query" name:"SmsParams"` + SmsDelaySecs requests.Integer `position:"Query" name:"SmsDelaySecs"` + SmsSendPolicy requests.Integer `position:"Query" name:"SmsSendPolicy"` +} + +// PushResponse is the response struct for api Push +type PushResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MessageId string `json:"MessageId" xml:"MessageId"` +} + +// CreatePushRequest creates a request to invoke Push API +func CreatePushRequest() (request *PushRequest) { + request = &PushRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "Push", "", "") + return +} + +// CreatePushResponse creates a response to parse from Push response +func CreatePushResponse() (response *PushResponse) { + response = &PushResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/push_message_to_android.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/push_message_to_android.go new file mode 100644 index 0000000..a0434d8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/push_message_to_android.go @@ -0,0 +1,109 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PushMessageToAndroid invokes the push.PushMessageToAndroid API synchronously +// api document: https://help.aliyun.com/api/push/pushmessagetoandroid.html +func (client *Client) PushMessageToAndroid(request *PushMessageToAndroidRequest) (response *PushMessageToAndroidResponse, err error) { + response = CreatePushMessageToAndroidResponse() + err = client.DoAction(request, response) + return +} + +// PushMessageToAndroidWithChan invokes the push.PushMessageToAndroid API asynchronously +// api document: https://help.aliyun.com/api/push/pushmessagetoandroid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PushMessageToAndroidWithChan(request *PushMessageToAndroidRequest) (<-chan *PushMessageToAndroidResponse, <-chan error) { + responseChan := make(chan *PushMessageToAndroidResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PushMessageToAndroid(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PushMessageToAndroidWithCallback invokes the push.PushMessageToAndroid API asynchronously +// api document: https://help.aliyun.com/api/push/pushmessagetoandroid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PushMessageToAndroidWithCallback(request *PushMessageToAndroidRequest, callback func(response *PushMessageToAndroidResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PushMessageToAndroidResponse + var err error + defer close(result) + response, err = client.PushMessageToAndroid(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PushMessageToAndroidRequest is the request struct for api PushMessageToAndroid +type PushMessageToAndroidRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + Target string `position:"Query" name:"Target"` + TargetValue string `position:"Query" name:"TargetValue"` + Title string `position:"Query" name:"Title"` + Body string `position:"Query" name:"Body"` + JobKey string `position:"Query" name:"JobKey"` +} + +// PushMessageToAndroidResponse is the response struct for api PushMessageToAndroid +type PushMessageToAndroidResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MessageId string `json:"MessageId" xml:"MessageId"` +} + +// CreatePushMessageToAndroidRequest creates a request to invoke PushMessageToAndroid API +func CreatePushMessageToAndroidRequest() (request *PushMessageToAndroidRequest) { + request = &PushMessageToAndroidRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "PushMessageToAndroid", "", "") + return +} + +// CreatePushMessageToAndroidResponse creates a response to parse from PushMessageToAndroid response +func CreatePushMessageToAndroidResponse() (response *PushMessageToAndroidResponse) { + response = &PushMessageToAndroidResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/push_message_toi_os.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/push_message_toi_os.go new file mode 100644 index 0000000..00bbc48 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/push_message_toi_os.go @@ -0,0 +1,109 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PushMessageToiOS invokes the push.PushMessageToiOS API synchronously +// api document: https://help.aliyun.com/api/push/pushmessagetoios.html +func (client *Client) PushMessageToiOS(request *PushMessageToiOSRequest) (response *PushMessageToiOSResponse, err error) { + response = CreatePushMessageToiOSResponse() + err = client.DoAction(request, response) + return +} + +// PushMessageToiOSWithChan invokes the push.PushMessageToiOS API asynchronously +// api document: https://help.aliyun.com/api/push/pushmessagetoios.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PushMessageToiOSWithChan(request *PushMessageToiOSRequest) (<-chan *PushMessageToiOSResponse, <-chan error) { + responseChan := make(chan *PushMessageToiOSResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PushMessageToiOS(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PushMessageToiOSWithCallback invokes the push.PushMessageToiOS API asynchronously +// api document: https://help.aliyun.com/api/push/pushmessagetoios.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PushMessageToiOSWithCallback(request *PushMessageToiOSRequest, callback func(response *PushMessageToiOSResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PushMessageToiOSResponse + var err error + defer close(result) + response, err = client.PushMessageToiOS(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PushMessageToiOSRequest is the request struct for api PushMessageToiOS +type PushMessageToiOSRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + Target string `position:"Query" name:"Target"` + TargetValue string `position:"Query" name:"TargetValue"` + Title string `position:"Query" name:"Title"` + Body string `position:"Query" name:"Body"` + JobKey string `position:"Query" name:"JobKey"` +} + +// PushMessageToiOSResponse is the response struct for api PushMessageToiOS +type PushMessageToiOSResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MessageId string `json:"MessageId" xml:"MessageId"` +} + +// CreatePushMessageToiOSRequest creates a request to invoke PushMessageToiOS API +func CreatePushMessageToiOSRequest() (request *PushMessageToiOSRequest) { + request = &PushMessageToiOSRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "PushMessageToiOS", "", "") + return +} + +// CreatePushMessageToiOSResponse creates a response to parse from PushMessageToiOS response +func CreatePushMessageToiOSResponse() (response *PushMessageToiOSResponse) { + response = &PushMessageToiOSResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/push_notice_to_android.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/push_notice_to_android.go new file mode 100644 index 0000000..ef385f3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/push_notice_to_android.go @@ -0,0 +1,110 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PushNoticeToAndroid invokes the push.PushNoticeToAndroid API synchronously +// api document: https://help.aliyun.com/api/push/pushnoticetoandroid.html +func (client *Client) PushNoticeToAndroid(request *PushNoticeToAndroidRequest) (response *PushNoticeToAndroidResponse, err error) { + response = CreatePushNoticeToAndroidResponse() + err = client.DoAction(request, response) + return +} + +// PushNoticeToAndroidWithChan invokes the push.PushNoticeToAndroid API asynchronously +// api document: https://help.aliyun.com/api/push/pushnoticetoandroid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PushNoticeToAndroidWithChan(request *PushNoticeToAndroidRequest) (<-chan *PushNoticeToAndroidResponse, <-chan error) { + responseChan := make(chan *PushNoticeToAndroidResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PushNoticeToAndroid(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PushNoticeToAndroidWithCallback invokes the push.PushNoticeToAndroid API asynchronously +// api document: https://help.aliyun.com/api/push/pushnoticetoandroid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PushNoticeToAndroidWithCallback(request *PushNoticeToAndroidRequest, callback func(response *PushNoticeToAndroidResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PushNoticeToAndroidResponse + var err error + defer close(result) + response, err = client.PushNoticeToAndroid(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PushNoticeToAndroidRequest is the request struct for api PushNoticeToAndroid +type PushNoticeToAndroidRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + Target string `position:"Query" name:"Target"` + TargetValue string `position:"Query" name:"TargetValue"` + Title string `position:"Query" name:"Title"` + Body string `position:"Query" name:"Body"` + JobKey string `position:"Query" name:"JobKey"` + ExtParameters string `position:"Query" name:"ExtParameters"` +} + +// PushNoticeToAndroidResponse is the response struct for api PushNoticeToAndroid +type PushNoticeToAndroidResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MessageId string `json:"MessageId" xml:"MessageId"` +} + +// CreatePushNoticeToAndroidRequest creates a request to invoke PushNoticeToAndroid API +func CreatePushNoticeToAndroidRequest() (request *PushNoticeToAndroidRequest) { + request = &PushNoticeToAndroidRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "PushNoticeToAndroid", "", "") + return +} + +// CreatePushNoticeToAndroidResponse creates a response to parse from PushNoticeToAndroid response +func CreatePushNoticeToAndroidResponse() (response *PushNoticeToAndroidResponse) { + response = &PushNoticeToAndroidResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/push_notice_toi_os.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/push_notice_toi_os.go new file mode 100644 index 0000000..73d1a58 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/push_notice_toi_os.go @@ -0,0 +1,111 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PushNoticeToiOS invokes the push.PushNoticeToiOS API synchronously +// api document: https://help.aliyun.com/api/push/pushnoticetoios.html +func (client *Client) PushNoticeToiOS(request *PushNoticeToiOSRequest) (response *PushNoticeToiOSResponse, err error) { + response = CreatePushNoticeToiOSResponse() + err = client.DoAction(request, response) + return +} + +// PushNoticeToiOSWithChan invokes the push.PushNoticeToiOS API asynchronously +// api document: https://help.aliyun.com/api/push/pushnoticetoios.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PushNoticeToiOSWithChan(request *PushNoticeToiOSRequest) (<-chan *PushNoticeToiOSResponse, <-chan error) { + responseChan := make(chan *PushNoticeToiOSResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PushNoticeToiOS(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PushNoticeToiOSWithCallback invokes the push.PushNoticeToiOS API asynchronously +// api document: https://help.aliyun.com/api/push/pushnoticetoios.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PushNoticeToiOSWithCallback(request *PushNoticeToiOSRequest, callback func(response *PushNoticeToiOSResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PushNoticeToiOSResponse + var err error + defer close(result) + response, err = client.PushNoticeToiOS(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PushNoticeToiOSRequest is the request struct for api PushNoticeToiOS +type PushNoticeToiOSRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + Target string `position:"Query" name:"Target"` + TargetValue string `position:"Query" name:"TargetValue"` + ApnsEnv string `position:"Query" name:"ApnsEnv"` + Title string `position:"Query" name:"Title"` + Body string `position:"Query" name:"Body"` + JobKey string `position:"Query" name:"JobKey"` + ExtParameters string `position:"Query" name:"ExtParameters"` +} + +// PushNoticeToiOSResponse is the response struct for api PushNoticeToiOS +type PushNoticeToiOSResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MessageId string `json:"MessageId" xml:"MessageId"` +} + +// CreatePushNoticeToiOSRequest creates a request to invoke PushNoticeToiOS API +func CreatePushNoticeToiOSRequest() (request *PushNoticeToiOSRequest) { + request = &PushNoticeToiOSRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "PushNoticeToiOS", "", "") + return +} + +// CreatePushNoticeToiOSResponse creates a response to parse from PushNoticeToiOS response +func CreatePushNoticeToiOSResponse() (response *PushNoticeToiOSResponse) { + response = &PushNoticeToiOSResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_aliases.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_aliases.go new file mode 100644 index 0000000..ead4662 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_aliases.go @@ -0,0 +1,105 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryAliases invokes the push.QueryAliases API synchronously +// api document: https://help.aliyun.com/api/push/queryaliases.html +func (client *Client) QueryAliases(request *QueryAliasesRequest) (response *QueryAliasesResponse, err error) { + response = CreateQueryAliasesResponse() + err = client.DoAction(request, response) + return +} + +// QueryAliasesWithChan invokes the push.QueryAliases API asynchronously +// api document: https://help.aliyun.com/api/push/queryaliases.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryAliasesWithChan(request *QueryAliasesRequest) (<-chan *QueryAliasesResponse, <-chan error) { + responseChan := make(chan *QueryAliasesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryAliases(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryAliasesWithCallback invokes the push.QueryAliases API asynchronously +// api document: https://help.aliyun.com/api/push/queryaliases.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryAliasesWithCallback(request *QueryAliasesRequest, callback func(response *QueryAliasesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryAliasesResponse + var err error + defer close(result) + response, err = client.QueryAliases(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryAliasesRequest is the request struct for api QueryAliases +type QueryAliasesRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + DeviceId string `position:"Query" name:"DeviceId"` +} + +// QueryAliasesResponse is the response struct for api QueryAliases +type QueryAliasesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AliasInfos AliasInfos `json:"AliasInfos" xml:"AliasInfos"` +} + +// CreateQueryAliasesRequest creates a request to invoke QueryAliases API +func CreateQueryAliasesRequest() (request *QueryAliasesRequest) { + request = &QueryAliasesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "QueryAliases", "", "") + return +} + +// CreateQueryAliasesResponse creates a response to parse from QueryAliases response +func CreateQueryAliasesResponse() (response *QueryAliasesResponse) { + response = &QueryAliasesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_device_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_device_info.go new file mode 100644 index 0000000..dd46f37 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_device_info.go @@ -0,0 +1,105 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDeviceInfo invokes the push.QueryDeviceInfo API synchronously +// api document: https://help.aliyun.com/api/push/querydeviceinfo.html +func (client *Client) QueryDeviceInfo(request *QueryDeviceInfoRequest) (response *QueryDeviceInfoResponse, err error) { + response = CreateQueryDeviceInfoResponse() + err = client.DoAction(request, response) + return +} + +// QueryDeviceInfoWithChan invokes the push.QueryDeviceInfo API asynchronously +// api document: https://help.aliyun.com/api/push/querydeviceinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDeviceInfoWithChan(request *QueryDeviceInfoRequest) (<-chan *QueryDeviceInfoResponse, <-chan error) { + responseChan := make(chan *QueryDeviceInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDeviceInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDeviceInfoWithCallback invokes the push.QueryDeviceInfo API asynchronously +// api document: https://help.aliyun.com/api/push/querydeviceinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDeviceInfoWithCallback(request *QueryDeviceInfoRequest, callback func(response *QueryDeviceInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDeviceInfoResponse + var err error + defer close(result) + response, err = client.QueryDeviceInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDeviceInfoRequest is the request struct for api QueryDeviceInfo +type QueryDeviceInfoRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + DeviceId string `position:"Query" name:"DeviceId"` +} + +// QueryDeviceInfoResponse is the response struct for api QueryDeviceInfo +type QueryDeviceInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DeviceInfo DeviceInfo `json:"DeviceInfo" xml:"DeviceInfo"` +} + +// CreateQueryDeviceInfoRequest creates a request to invoke QueryDeviceInfo API +func CreateQueryDeviceInfoRequest() (request *QueryDeviceInfoRequest) { + request = &QueryDeviceInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "QueryDeviceInfo", "", "") + return +} + +// CreateQueryDeviceInfoResponse creates a response to parse from QueryDeviceInfo response +func CreateQueryDeviceInfoResponse() (response *QueryDeviceInfoResponse) { + response = &QueryDeviceInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_device_stat.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_device_stat.go new file mode 100644 index 0000000..2cbf062 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_device_stat.go @@ -0,0 +1,108 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDeviceStat invokes the push.QueryDeviceStat API synchronously +// api document: https://help.aliyun.com/api/push/querydevicestat.html +func (client *Client) QueryDeviceStat(request *QueryDeviceStatRequest) (response *QueryDeviceStatResponse, err error) { + response = CreateQueryDeviceStatResponse() + err = client.DoAction(request, response) + return +} + +// QueryDeviceStatWithChan invokes the push.QueryDeviceStat API asynchronously +// api document: https://help.aliyun.com/api/push/querydevicestat.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDeviceStatWithChan(request *QueryDeviceStatRequest) (<-chan *QueryDeviceStatResponse, <-chan error) { + responseChan := make(chan *QueryDeviceStatResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDeviceStat(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDeviceStatWithCallback invokes the push.QueryDeviceStat API asynchronously +// api document: https://help.aliyun.com/api/push/querydevicestat.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDeviceStatWithCallback(request *QueryDeviceStatRequest, callback func(response *QueryDeviceStatResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDeviceStatResponse + var err error + defer close(result) + response, err = client.QueryDeviceStat(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDeviceStatRequest is the request struct for api QueryDeviceStat +type QueryDeviceStatRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + DeviceType string `position:"Query" name:"DeviceType"` + QueryType string `position:"Query" name:"QueryType"` +} + +// QueryDeviceStatResponse is the response struct for api QueryDeviceStat +type QueryDeviceStatResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AppDeviceStats AppDeviceStatsInQueryDeviceStat `json:"AppDeviceStats" xml:"AppDeviceStats"` +} + +// CreateQueryDeviceStatRequest creates a request to invoke QueryDeviceStat API +func CreateQueryDeviceStatRequest() (request *QueryDeviceStatRequest) { + request = &QueryDeviceStatRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "QueryDeviceStat", "", "") + return +} + +// CreateQueryDeviceStatResponse creates a response to parse from QueryDeviceStat response +func CreateQueryDeviceStatResponse() (response *QueryDeviceStatResponse) { + response = &QueryDeviceStatResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_devices_by_account.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_devices_by_account.go new file mode 100644 index 0000000..c1c80b0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_devices_by_account.go @@ -0,0 +1,105 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDevicesByAccount invokes the push.QueryDevicesByAccount API synchronously +// api document: https://help.aliyun.com/api/push/querydevicesbyaccount.html +func (client *Client) QueryDevicesByAccount(request *QueryDevicesByAccountRequest) (response *QueryDevicesByAccountResponse, err error) { + response = CreateQueryDevicesByAccountResponse() + err = client.DoAction(request, response) + return +} + +// QueryDevicesByAccountWithChan invokes the push.QueryDevicesByAccount API asynchronously +// api document: https://help.aliyun.com/api/push/querydevicesbyaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDevicesByAccountWithChan(request *QueryDevicesByAccountRequest) (<-chan *QueryDevicesByAccountResponse, <-chan error) { + responseChan := make(chan *QueryDevicesByAccountResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDevicesByAccount(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDevicesByAccountWithCallback invokes the push.QueryDevicesByAccount API asynchronously +// api document: https://help.aliyun.com/api/push/querydevicesbyaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDevicesByAccountWithCallback(request *QueryDevicesByAccountRequest, callback func(response *QueryDevicesByAccountResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDevicesByAccountResponse + var err error + defer close(result) + response, err = client.QueryDevicesByAccount(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDevicesByAccountRequest is the request struct for api QueryDevicesByAccount +type QueryDevicesByAccountRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + Account string `position:"Query" name:"Account"` +} + +// QueryDevicesByAccountResponse is the response struct for api QueryDevicesByAccount +type QueryDevicesByAccountResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DeviceIds DeviceIdsInQueryDevicesByAccount `json:"DeviceIds" xml:"DeviceIds"` +} + +// CreateQueryDevicesByAccountRequest creates a request to invoke QueryDevicesByAccount API +func CreateQueryDevicesByAccountRequest() (request *QueryDevicesByAccountRequest) { + request = &QueryDevicesByAccountRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "QueryDevicesByAccount", "", "") + return +} + +// CreateQueryDevicesByAccountResponse creates a response to parse from QueryDevicesByAccount response +func CreateQueryDevicesByAccountResponse() (response *QueryDevicesByAccountResponse) { + response = &QueryDevicesByAccountResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_devices_by_alias.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_devices_by_alias.go new file mode 100644 index 0000000..a7d6a70 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_devices_by_alias.go @@ -0,0 +1,105 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDevicesByAlias invokes the push.QueryDevicesByAlias API synchronously +// api document: https://help.aliyun.com/api/push/querydevicesbyalias.html +func (client *Client) QueryDevicesByAlias(request *QueryDevicesByAliasRequest) (response *QueryDevicesByAliasResponse, err error) { + response = CreateQueryDevicesByAliasResponse() + err = client.DoAction(request, response) + return +} + +// QueryDevicesByAliasWithChan invokes the push.QueryDevicesByAlias API asynchronously +// api document: https://help.aliyun.com/api/push/querydevicesbyalias.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDevicesByAliasWithChan(request *QueryDevicesByAliasRequest) (<-chan *QueryDevicesByAliasResponse, <-chan error) { + responseChan := make(chan *QueryDevicesByAliasResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDevicesByAlias(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDevicesByAliasWithCallback invokes the push.QueryDevicesByAlias API asynchronously +// api document: https://help.aliyun.com/api/push/querydevicesbyalias.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryDevicesByAliasWithCallback(request *QueryDevicesByAliasRequest, callback func(response *QueryDevicesByAliasResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDevicesByAliasResponse + var err error + defer close(result) + response, err = client.QueryDevicesByAlias(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDevicesByAliasRequest is the request struct for api QueryDevicesByAlias +type QueryDevicesByAliasRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + Alias string `position:"Query" name:"Alias"` +} + +// QueryDevicesByAliasResponse is the response struct for api QueryDevicesByAlias +type QueryDevicesByAliasResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DeviceIds DeviceIdsInQueryDevicesByAlias `json:"DeviceIds" xml:"DeviceIds"` +} + +// CreateQueryDevicesByAliasRequest creates a request to invoke QueryDevicesByAlias API +func CreateQueryDevicesByAliasRequest() (request *QueryDevicesByAliasRequest) { + request = &QueryDevicesByAliasRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "QueryDevicesByAlias", "", "") + return +} + +// CreateQueryDevicesByAliasResponse creates a response to parse from QueryDevicesByAlias response +func CreateQueryDevicesByAliasResponse() (response *QueryDevicesByAliasResponse) { + response = &QueryDevicesByAliasResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_push_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_push_list.go new file mode 100644 index 0000000..cea3710 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_push_list.go @@ -0,0 +1,112 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryPushList invokes the push.QueryPushList API synchronously +// api document: https://help.aliyun.com/api/push/querypushlist.html +func (client *Client) QueryPushList(request *QueryPushListRequest) (response *QueryPushListResponse, err error) { + response = CreateQueryPushListResponse() + err = client.DoAction(request, response) + return +} + +// QueryPushListWithChan invokes the push.QueryPushList API asynchronously +// api document: https://help.aliyun.com/api/push/querypushlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryPushListWithChan(request *QueryPushListRequest) (<-chan *QueryPushListResponse, <-chan error) { + responseChan := make(chan *QueryPushListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryPushList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryPushListWithCallback invokes the push.QueryPushList API asynchronously +// api document: https://help.aliyun.com/api/push/querypushlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryPushListWithCallback(request *QueryPushListRequest, callback func(response *QueryPushListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryPushListResponse + var err error + defer close(result) + response, err = client.QueryPushList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryPushListRequest is the request struct for api QueryPushList +type QueryPushListRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + PushType string `position:"Query" name:"PushType"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + Page requests.Integer `position:"Query" name:"Page"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// QueryPushListResponse is the response struct for api QueryPushList +type QueryPushListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + HasNext bool `json:"HasNext" xml:"HasNext"` + Page int `json:"Page" xml:"Page"` + PageSize int `json:"PageSize" xml:"PageSize"` + PushMessageInfos PushMessageInfosInQueryPushList `json:"PushMessageInfos" xml:"PushMessageInfos"` +} + +// CreateQueryPushListRequest creates a request to invoke QueryPushList API +func CreateQueryPushListRequest() (request *QueryPushListRequest) { + request = &QueryPushListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "QueryPushList", "", "") + return +} + +// CreateQueryPushListResponse creates a response to parse from QueryPushList response +func CreateQueryPushListResponse() (response *QueryPushListResponse) { + response = &QueryPushListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_push_stat_by_app.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_push_stat_by_app.go new file mode 100644 index 0000000..fc79f3d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_push_stat_by_app.go @@ -0,0 +1,107 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryPushStatByApp invokes the push.QueryPushStatByApp API synchronously +// api document: https://help.aliyun.com/api/push/querypushstatbyapp.html +func (client *Client) QueryPushStatByApp(request *QueryPushStatByAppRequest) (response *QueryPushStatByAppResponse, err error) { + response = CreateQueryPushStatByAppResponse() + err = client.DoAction(request, response) + return +} + +// QueryPushStatByAppWithChan invokes the push.QueryPushStatByApp API asynchronously +// api document: https://help.aliyun.com/api/push/querypushstatbyapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryPushStatByAppWithChan(request *QueryPushStatByAppRequest) (<-chan *QueryPushStatByAppResponse, <-chan error) { + responseChan := make(chan *QueryPushStatByAppResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryPushStatByApp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryPushStatByAppWithCallback invokes the push.QueryPushStatByApp API asynchronously +// api document: https://help.aliyun.com/api/push/querypushstatbyapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryPushStatByAppWithCallback(request *QueryPushStatByAppRequest, callback func(response *QueryPushStatByAppResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryPushStatByAppResponse + var err error + defer close(result) + response, err = client.QueryPushStatByApp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryPushStatByAppRequest is the request struct for api QueryPushStatByApp +type QueryPushStatByAppRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + Granularity string `position:"Query" name:"Granularity"` +} + +// QueryPushStatByAppResponse is the response struct for api QueryPushStatByApp +type QueryPushStatByAppResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AppPushStats AppPushStats `json:"AppPushStats" xml:"AppPushStats"` +} + +// CreateQueryPushStatByAppRequest creates a request to invoke QueryPushStatByApp API +func CreateQueryPushStatByAppRequest() (request *QueryPushStatByAppRequest) { + request = &QueryPushStatByAppRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "QueryPushStatByApp", "", "") + return +} + +// CreateQueryPushStatByAppResponse creates a response to parse from QueryPushStatByApp response +func CreateQueryPushStatByAppResponse() (response *QueryPushStatByAppResponse) { + response = &QueryPushStatByAppResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_push_stat_by_msg.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_push_stat_by_msg.go new file mode 100644 index 0000000..a0b890f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_push_stat_by_msg.go @@ -0,0 +1,105 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryPushStatByMsg invokes the push.QueryPushStatByMsg API synchronously +// api document: https://help.aliyun.com/api/push/querypushstatbymsg.html +func (client *Client) QueryPushStatByMsg(request *QueryPushStatByMsgRequest) (response *QueryPushStatByMsgResponse, err error) { + response = CreateQueryPushStatByMsgResponse() + err = client.DoAction(request, response) + return +} + +// QueryPushStatByMsgWithChan invokes the push.QueryPushStatByMsg API asynchronously +// api document: https://help.aliyun.com/api/push/querypushstatbymsg.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryPushStatByMsgWithChan(request *QueryPushStatByMsgRequest) (<-chan *QueryPushStatByMsgResponse, <-chan error) { + responseChan := make(chan *QueryPushStatByMsgResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryPushStatByMsg(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryPushStatByMsgWithCallback invokes the push.QueryPushStatByMsg API asynchronously +// api document: https://help.aliyun.com/api/push/querypushstatbymsg.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryPushStatByMsgWithCallback(request *QueryPushStatByMsgRequest, callback func(response *QueryPushStatByMsgResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryPushStatByMsgResponse + var err error + defer close(result) + response, err = client.QueryPushStatByMsg(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryPushStatByMsgRequest is the request struct for api QueryPushStatByMsg +type QueryPushStatByMsgRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + MessageId requests.Integer `position:"Query" name:"MessageId"` +} + +// QueryPushStatByMsgResponse is the response struct for api QueryPushStatByMsg +type QueryPushStatByMsgResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PushStats PushStats `json:"PushStats" xml:"PushStats"` +} + +// CreateQueryPushStatByMsgRequest creates a request to invoke QueryPushStatByMsg API +func CreateQueryPushStatByMsgRequest() (request *QueryPushStatByMsgRequest) { + request = &QueryPushStatByMsgRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "QueryPushStatByMsg", "", "") + return +} + +// CreateQueryPushStatByMsgResponse creates a response to parse from QueryPushStatByMsg response +func CreateQueryPushStatByMsgResponse() (response *QueryPushStatByMsgResponse) { + response = &QueryPushStatByMsgResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_tags.go new file mode 100644 index 0000000..1bee17f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_tags.go @@ -0,0 +1,106 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTags invokes the push.QueryTags API synchronously +// api document: https://help.aliyun.com/api/push/querytags.html +func (client *Client) QueryTags(request *QueryTagsRequest) (response *QueryTagsResponse, err error) { + response = CreateQueryTagsResponse() + err = client.DoAction(request, response) + return +} + +// QueryTagsWithChan invokes the push.QueryTags API asynchronously +// api document: https://help.aliyun.com/api/push/querytags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTagsWithChan(request *QueryTagsRequest) (<-chan *QueryTagsResponse, <-chan error) { + responseChan := make(chan *QueryTagsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTags(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTagsWithCallback invokes the push.QueryTags API asynchronously +// api document: https://help.aliyun.com/api/push/querytags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTagsWithCallback(request *QueryTagsRequest, callback func(response *QueryTagsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTagsResponse + var err error + defer close(result) + response, err = client.QueryTags(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTagsRequest is the request struct for api QueryTags +type QueryTagsRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + ClientKey string `position:"Query" name:"ClientKey"` + KeyType string `position:"Query" name:"KeyType"` +} + +// QueryTagsResponse is the response struct for api QueryTags +type QueryTagsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TagInfos TagInfosInQueryTags `json:"TagInfos" xml:"TagInfos"` +} + +// CreateQueryTagsRequest creates a request to invoke QueryTags API +func CreateQueryTagsRequest() (request *QueryTagsRequest) { + request = &QueryTagsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "QueryTags", "", "") + return +} + +// CreateQueryTagsResponse creates a response to parse from QueryTags response +func CreateQueryTagsResponse() (response *QueryTagsResponse) { + response = &QueryTagsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_unique_device_stat.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_unique_device_stat.go new file mode 100644 index 0000000..f1e5438 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/query_unique_device_stat.go @@ -0,0 +1,107 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryUniqueDeviceStat invokes the push.QueryUniqueDeviceStat API synchronously +// api document: https://help.aliyun.com/api/push/queryuniquedevicestat.html +func (client *Client) QueryUniqueDeviceStat(request *QueryUniqueDeviceStatRequest) (response *QueryUniqueDeviceStatResponse, err error) { + response = CreateQueryUniqueDeviceStatResponse() + err = client.DoAction(request, response) + return +} + +// QueryUniqueDeviceStatWithChan invokes the push.QueryUniqueDeviceStat API asynchronously +// api document: https://help.aliyun.com/api/push/queryuniquedevicestat.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryUniqueDeviceStatWithChan(request *QueryUniqueDeviceStatRequest) (<-chan *QueryUniqueDeviceStatResponse, <-chan error) { + responseChan := make(chan *QueryUniqueDeviceStatResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryUniqueDeviceStat(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryUniqueDeviceStatWithCallback invokes the push.QueryUniqueDeviceStat API asynchronously +// api document: https://help.aliyun.com/api/push/queryuniquedevicestat.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryUniqueDeviceStatWithCallback(request *QueryUniqueDeviceStatRequest, callback func(response *QueryUniqueDeviceStatResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryUniqueDeviceStatResponse + var err error + defer close(result) + response, err = client.QueryUniqueDeviceStat(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryUniqueDeviceStatRequest is the request struct for api QueryUniqueDeviceStat +type QueryUniqueDeviceStatRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + Granularity string `position:"Query" name:"Granularity"` +} + +// QueryUniqueDeviceStatResponse is the response struct for api QueryUniqueDeviceStat +type QueryUniqueDeviceStatResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AppDeviceStats AppDeviceStatsInQueryUniqueDeviceStat `json:"AppDeviceStats" xml:"AppDeviceStats"` +} + +// CreateQueryUniqueDeviceStatRequest creates a request to invoke QueryUniqueDeviceStat API +func CreateQueryUniqueDeviceStatRequest() (request *QueryUniqueDeviceStatRequest) { + request = &QueryUniqueDeviceStatRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "QueryUniqueDeviceStat", "", "") + return +} + +// CreateQueryUniqueDeviceStatResponse creates a response to parse from QueryUniqueDeviceStat response +func CreateQueryUniqueDeviceStatResponse() (response *QueryUniqueDeviceStatResponse) { + response = &QueryUniqueDeviceStatResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/remove_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/remove_tag.go new file mode 100644 index 0000000..477af7b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/remove_tag.go @@ -0,0 +1,104 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveTag invokes the push.RemoveTag API synchronously +// api document: https://help.aliyun.com/api/push/removetag.html +func (client *Client) RemoveTag(request *RemoveTagRequest) (response *RemoveTagResponse, err error) { + response = CreateRemoveTagResponse() + err = client.DoAction(request, response) + return +} + +// RemoveTagWithChan invokes the push.RemoveTag API asynchronously +// api document: https://help.aliyun.com/api/push/removetag.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveTagWithChan(request *RemoveTagRequest) (<-chan *RemoveTagResponse, <-chan error) { + responseChan := make(chan *RemoveTagResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveTag(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveTagWithCallback invokes the push.RemoveTag API asynchronously +// api document: https://help.aliyun.com/api/push/removetag.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveTagWithCallback(request *RemoveTagRequest, callback func(response *RemoveTagResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveTagResponse + var err error + defer close(result) + response, err = client.RemoveTag(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveTagRequest is the request struct for api RemoveTag +type RemoveTagRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + TagName string `position:"Query" name:"TagName"` +} + +// RemoveTagResponse is the response struct for api RemoveTag +type RemoveTagResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveTagRequest creates a request to invoke RemoveTag API +func CreateRemoveTagRequest() (request *RemoveTagRequest) { + request = &RemoveTagRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "RemoveTag", "", "") + return +} + +// CreateRemoveTagResponse creates a response to parse from RemoveTag response +func CreateRemoveTagResponse() (response *RemoveTagResponse) { + response = &RemoveTagResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_alias_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_alias_info.go new file mode 100644 index 0000000..88ecde6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_alias_info.go @@ -0,0 +1,21 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AliasInfo is a nested struct in push response +type AliasInfo struct { + AliasName string `json:"AliasName" xml:"AliasName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_alias_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_alias_infos.go new file mode 100644 index 0000000..53adc1d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_alias_infos.go @@ -0,0 +1,21 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AliasInfos is a nested struct in push response +type AliasInfos struct { + AliasInfo []AliasInfo `json:"AliasInfo" xml:"AliasInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_app_device_stat.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_app_device_stat.go new file mode 100644 index 0000000..d42143b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_app_device_stat.go @@ -0,0 +1,23 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AppDeviceStat is a nested struct in push response +type AppDeviceStat struct { + Time string `json:"Time" xml:"Time"` + Count int `json:"Count" xml:"Count"` + DeviceType string `json:"DeviceType" xml:"DeviceType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_app_device_stats_in_query_device_stat.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_app_device_stats_in_query_device_stat.go new file mode 100644 index 0000000..41d3aa7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_app_device_stats_in_query_device_stat.go @@ -0,0 +1,21 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AppDeviceStatsInQueryDeviceStat is a nested struct in push response +type AppDeviceStatsInQueryDeviceStat struct { + AppDeviceStat []AppDeviceStat `json:"AppDeviceStat" xml:"AppDeviceStat"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_app_device_stats_in_query_unique_device_stat.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_app_device_stats_in_query_unique_device_stat.go new file mode 100644 index 0000000..359d92f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_app_device_stats_in_query_unique_device_stat.go @@ -0,0 +1,21 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AppDeviceStatsInQueryUniqueDeviceStat is a nested struct in push response +type AppDeviceStatsInQueryUniqueDeviceStat struct { + AppDeviceStat []AppDeviceStat `json:"AppDeviceStat" xml:"AppDeviceStat"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_app_push_stat.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_app_push_stat.go new file mode 100644 index 0000000..21e65fa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_app_push_stat.go @@ -0,0 +1,31 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AppPushStat is a nested struct in push response +type AppPushStat struct { + Time string `json:"Time" xml:"Time"` + AcceptCount int `json:"AcceptCount" xml:"AcceptCount"` + SentCount int `json:"SentCount" xml:"SentCount"` + ReceivedCount int `json:"ReceivedCount" xml:"ReceivedCount"` + OpenedCount int `json:"OpenedCount" xml:"OpenedCount"` + DeletedCount int `json:"DeletedCount" xml:"DeletedCount"` + SmsSentCount int `json:"SmsSentCount" xml:"SmsSentCount"` + SmsSkipCount int `json:"SmsSkipCount" xml:"SmsSkipCount"` + SmsFailedCount int `json:"SmsFailedCount" xml:"SmsFailedCount"` + SmsReceiveSuccessCount int `json:"SmsReceiveSuccessCount" xml:"SmsReceiveSuccessCount"` + SmsReceiveFailedCount int `json:"SmsReceiveFailedCount" xml:"SmsReceiveFailedCount"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_app_push_stats.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_app_push_stats.go new file mode 100644 index 0000000..e389ffc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_app_push_stats.go @@ -0,0 +1,21 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AppPushStats is a nested struct in push response +type AppPushStats struct { + AppPushStat []AppPushStat `json:"AppPushStat" xml:"AppPushStat"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_device_check_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_device_check_info.go new file mode 100644 index 0000000..cd7a3e0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_device_check_info.go @@ -0,0 +1,22 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DeviceCheckInfo is a nested struct in push response +type DeviceCheckInfo struct { + DeviceId string `json:"DeviceId" xml:"DeviceId"` + Available bool `json:"Available" xml:"Available"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_device_check_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_device_check_infos.go new file mode 100644 index 0000000..ae4b44c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_device_check_infos.go @@ -0,0 +1,21 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DeviceCheckInfos is a nested struct in push response +type DeviceCheckInfos struct { + DeviceCheckInfo []DeviceCheckInfo `json:"DeviceCheckInfo" xml:"DeviceCheckInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_device_ids_in_query_devices_by_account.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_device_ids_in_query_devices_by_account.go new file mode 100644 index 0000000..17a04c7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_device_ids_in_query_devices_by_account.go @@ -0,0 +1,21 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DeviceIdsInQueryDevicesByAccount is a nested struct in push response +type DeviceIdsInQueryDevicesByAccount struct { + DeviceId []string `json:"DeviceId" xml:"DeviceId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_device_ids_in_query_devices_by_alias.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_device_ids_in_query_devices_by_alias.go new file mode 100644 index 0000000..06ae736 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_device_ids_in_query_devices_by_alias.go @@ -0,0 +1,21 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DeviceIdsInQueryDevicesByAlias is a nested struct in push response +type DeviceIdsInQueryDevicesByAlias struct { + DeviceId []string `json:"DeviceId" xml:"DeviceId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_device_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_device_info.go new file mode 100644 index 0000000..cee7862 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_device_info.go @@ -0,0 +1,30 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DeviceInfo is a nested struct in push response +type DeviceInfo struct { + DeviceId string `json:"DeviceId" xml:"DeviceId"` + DeviceType string `json:"DeviceType" xml:"DeviceType"` + Account string `json:"Account" xml:"Account"` + DeviceToken string `json:"DeviceToken" xml:"DeviceToken"` + Tags string `json:"Tags" xml:"Tags"` + Alias string `json:"Alias" xml:"Alias"` + LastOnlineTime string `json:"LastOnlineTime" xml:"LastOnlineTime"` + Online bool `json:"Online" xml:"Online"` + PhoneNumber string `json:"PhoneNumber" xml:"PhoneNumber"` + PushEnabled bool `json:"PushEnabled" xml:"PushEnabled"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_push_message_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_push_message_info.go new file mode 100644 index 0000000..005b1da --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_push_message_info.go @@ -0,0 +1,28 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PushMessageInfo is a nested struct in push response +type PushMessageInfo struct { + MessageId string `json:"MessageId" xml:"MessageId"` + PushTime string `json:"PushTime" xml:"PushTime"` + Title string `json:"Title" xml:"Title"` + AppKey int `json:"AppKey" xml:"AppKey"` + DeviceType string `json:"DeviceType" xml:"DeviceType"` + Body string `json:"Body" xml:"Body"` + AppName string `json:"AppName" xml:"AppName"` + Type string `json:"Type" xml:"Type"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_push_message_infos_in_list_push_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_push_message_infos_in_list_push_records.go new file mode 100644 index 0000000..2cb4cc8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_push_message_infos_in_list_push_records.go @@ -0,0 +1,21 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PushMessageInfosInListPushRecords is a nested struct in push response +type PushMessageInfosInListPushRecords struct { + PushMessageInfo []PushMessageInfo `json:"PushMessageInfo" xml:"PushMessageInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_push_message_infos_in_query_push_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_push_message_infos_in_query_push_list.go new file mode 100644 index 0000000..ee11843 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_push_message_infos_in_query_push_list.go @@ -0,0 +1,21 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PushMessageInfosInQueryPushList is a nested struct in push response +type PushMessageInfosInQueryPushList struct { + PushMessageInfo []PushMessageInfo `json:"PushMessageInfo" xml:"PushMessageInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_push_stat.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_push_stat.go new file mode 100644 index 0000000..89c2db8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_push_stat.go @@ -0,0 +1,31 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PushStat is a nested struct in push response +type PushStat struct { + MessageId string `json:"MessageId" xml:"MessageId"` + AcceptCount int `json:"AcceptCount" xml:"AcceptCount"` + SentCount int `json:"SentCount" xml:"SentCount"` + ReceivedCount int `json:"ReceivedCount" xml:"ReceivedCount"` + OpenedCount int `json:"OpenedCount" xml:"OpenedCount"` + DeletedCount int `json:"DeletedCount" xml:"DeletedCount"` + SmsSentCount int `json:"SmsSentCount" xml:"SmsSentCount"` + SmsSkipCount int `json:"SmsSkipCount" xml:"SmsSkipCount"` + SmsFailedCount int `json:"SmsFailedCount" xml:"SmsFailedCount"` + SmsReceiveSuccessCount int `json:"SmsReceiveSuccessCount" xml:"SmsReceiveSuccessCount"` + SmsReceiveFailedCount int `json:"SmsReceiveFailedCount" xml:"SmsReceiveFailedCount"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_push_stats.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_push_stats.go new file mode 100644 index 0000000..b151ebc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_push_stats.go @@ -0,0 +1,21 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PushStats is a nested struct in push response +type PushStats struct { + PushStat []PushStat `json:"PushStat" xml:"PushStat"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_summary_app_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_summary_app_info.go new file mode 100644 index 0000000..943d640 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_summary_app_info.go @@ -0,0 +1,22 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SummaryAppInfo is a nested struct in push response +type SummaryAppInfo struct { + AppName string `json:"AppName" xml:"AppName"` + AppKey int `json:"AppKey" xml:"AppKey"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_summary_app_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_summary_app_infos.go new file mode 100644 index 0000000..8862b31 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_summary_app_infos.go @@ -0,0 +1,21 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SummaryAppInfos is a nested struct in push response +type SummaryAppInfos struct { + SummaryAppInfo []SummaryAppInfo `json:"SummaryAppInfo" xml:"SummaryAppInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_tag_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_tag_info.go new file mode 100644 index 0000000..c5e5114 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_tag_info.go @@ -0,0 +1,21 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagInfo is a nested struct in push response +type TagInfo struct { + TagName string `json:"TagName" xml:"TagName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_tag_infos_in_list_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_tag_infos_in_list_tags.go new file mode 100644 index 0000000..d07d15e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_tag_infos_in_list_tags.go @@ -0,0 +1,21 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagInfosInListTags is a nested struct in push response +type TagInfosInListTags struct { + TagInfo []TagInfo `json:"TagInfo" xml:"TagInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_tag_infos_in_query_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_tag_infos_in_query_tags.go new file mode 100644 index 0000000..e2efa75 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/struct_tag_infos_in_query_tags.go @@ -0,0 +1,21 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagInfosInQueryTags is a nested struct in push response +type TagInfosInQueryTags struct { + TagInfo []TagInfo `json:"TagInfo" xml:"TagInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/unbind_alias.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/unbind_alias.go new file mode 100644 index 0000000..de09bc5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/unbind_alias.go @@ -0,0 +1,106 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UnbindAlias invokes the push.UnbindAlias API synchronously +// api document: https://help.aliyun.com/api/push/unbindalias.html +func (client *Client) UnbindAlias(request *UnbindAliasRequest) (response *UnbindAliasResponse, err error) { + response = CreateUnbindAliasResponse() + err = client.DoAction(request, response) + return +} + +// UnbindAliasWithChan invokes the push.UnbindAlias API asynchronously +// api document: https://help.aliyun.com/api/push/unbindalias.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnbindAliasWithChan(request *UnbindAliasRequest) (<-chan *UnbindAliasResponse, <-chan error) { + responseChan := make(chan *UnbindAliasResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UnbindAlias(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UnbindAliasWithCallback invokes the push.UnbindAlias API asynchronously +// api document: https://help.aliyun.com/api/push/unbindalias.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnbindAliasWithCallback(request *UnbindAliasRequest, callback func(response *UnbindAliasResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UnbindAliasResponse + var err error + defer close(result) + response, err = client.UnbindAlias(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UnbindAliasRequest is the request struct for api UnbindAlias +type UnbindAliasRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + DeviceId string `position:"Query" name:"DeviceId"` + AliasName string `position:"Query" name:"AliasName"` + UnbindAll requests.Boolean `position:"Query" name:"UnbindAll"` +} + +// UnbindAliasResponse is the response struct for api UnbindAlias +type UnbindAliasResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUnbindAliasRequest creates a request to invoke UnbindAlias API +func CreateUnbindAliasRequest() (request *UnbindAliasRequest) { + request = &UnbindAliasRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "UnbindAlias", "", "") + return +} + +// CreateUnbindAliasResponse creates a response to parse from UnbindAlias response +func CreateUnbindAliasResponse() (response *UnbindAliasResponse) { + response = &UnbindAliasResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/unbind_phone.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/unbind_phone.go new file mode 100644 index 0000000..d2c489f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/unbind_phone.go @@ -0,0 +1,104 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UnbindPhone invokes the push.UnbindPhone API synchronously +// api document: https://help.aliyun.com/api/push/unbindphone.html +func (client *Client) UnbindPhone(request *UnbindPhoneRequest) (response *UnbindPhoneResponse, err error) { + response = CreateUnbindPhoneResponse() + err = client.DoAction(request, response) + return +} + +// UnbindPhoneWithChan invokes the push.UnbindPhone API asynchronously +// api document: https://help.aliyun.com/api/push/unbindphone.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnbindPhoneWithChan(request *UnbindPhoneRequest) (<-chan *UnbindPhoneResponse, <-chan error) { + responseChan := make(chan *UnbindPhoneResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UnbindPhone(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UnbindPhoneWithCallback invokes the push.UnbindPhone API asynchronously +// api document: https://help.aliyun.com/api/push/unbindphone.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnbindPhoneWithCallback(request *UnbindPhoneRequest, callback func(response *UnbindPhoneResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UnbindPhoneResponse + var err error + defer close(result) + response, err = client.UnbindPhone(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UnbindPhoneRequest is the request struct for api UnbindPhone +type UnbindPhoneRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + DeviceId string `position:"Query" name:"DeviceId"` +} + +// UnbindPhoneResponse is the response struct for api UnbindPhone +type UnbindPhoneResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUnbindPhoneRequest creates a request to invoke UnbindPhone API +func CreateUnbindPhoneRequest() (request *UnbindPhoneRequest) { + request = &UnbindPhoneRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "UnbindPhone", "", "") + return +} + +// CreateUnbindPhoneResponse creates a response to parse from UnbindPhone response +func CreateUnbindPhoneResponse() (response *UnbindPhoneResponse) { + response = &UnbindPhoneResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/unbind_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/unbind_tag.go new file mode 100644 index 0000000..99c499d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/push/unbind_tag.go @@ -0,0 +1,106 @@ +package push + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UnbindTag invokes the push.UnbindTag API synchronously +// api document: https://help.aliyun.com/api/push/unbindtag.html +func (client *Client) UnbindTag(request *UnbindTagRequest) (response *UnbindTagResponse, err error) { + response = CreateUnbindTagResponse() + err = client.DoAction(request, response) + return +} + +// UnbindTagWithChan invokes the push.UnbindTag API asynchronously +// api document: https://help.aliyun.com/api/push/unbindtag.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnbindTagWithChan(request *UnbindTagRequest) (<-chan *UnbindTagResponse, <-chan error) { + responseChan := make(chan *UnbindTagResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UnbindTag(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UnbindTagWithCallback invokes the push.UnbindTag API asynchronously +// api document: https://help.aliyun.com/api/push/unbindtag.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnbindTagWithCallback(request *UnbindTagRequest, callback func(response *UnbindTagResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UnbindTagResponse + var err error + defer close(result) + response, err = client.UnbindTag(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UnbindTagRequest is the request struct for api UnbindTag +type UnbindTagRequest struct { + *requests.RpcRequest + AppKey requests.Integer `position:"Query" name:"AppKey"` + ClientKey string `position:"Query" name:"ClientKey"` + KeyType string `position:"Query" name:"KeyType"` + TagName string `position:"Query" name:"TagName"` +} + +// UnbindTagResponse is the response struct for api UnbindTag +type UnbindTagResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUnbindTagRequest creates a request to invoke UnbindTag API +func CreateUnbindTagRequest() (request *UnbindTagRequest) { + request = &UnbindTagRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Push", "2016-08-01", "UnbindTag", "", "") + return +} + +// CreateUnbindTagResponse creates a response to parse from UnbindTag response +func CreateUnbindTagResponse() (response *UnbindTagResponse) { + response = &UnbindTagResponse{ + 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 new file mode 100644 index 0000000..5382cd1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/add_zone.go @@ -0,0 +1,108 @@ +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 +// api document: https://help.aliyun.com/api/pvtz/addzone.html +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 +// api document: https://help.aliyun.com/api/pvtz/addzone.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/pvtz/addzone.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + ZoneName string `position:"Query" name:"ZoneName"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// 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") + 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 new file mode 100644 index 0000000..dbf7a70 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/add_zone_record.go @@ -0,0 +1,112 @@ +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 +// api document: https://help.aliyun.com/api/pvtz/addzonerecord.html +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 +// api document: https://help.aliyun.com/api/pvtz/addzonerecord.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/pvtz/addzonerecord.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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"` + ZoneId string `position:"Query" name:"ZoneId"` + Lang string `position:"Query" name:"Lang"` + Type string `position:"Query" name:"Type"` + Ttl requests.Integer `position:"Query" name:"Ttl"` + Priority requests.Integer `position:"Query" name:"Priority"` + Value string `position:"Query" name:"Value"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// AddZoneRecordResponse is the response struct for api AddZoneRecord +type AddZoneRecordResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + RecordId int `json:"RecordId" xml:"RecordId"` +} + +// 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") + 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 new file mode 100644 index 0000000..a877c96 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/bind_zone_vpc.go @@ -0,0 +1,112 @@ +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 +// api document: https://help.aliyun.com/api/pvtz/bindzonevpc.html +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 +// api document: https://help.aliyun.com/api/pvtz/bindzonevpc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/pvtz/bindzonevpc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + ZoneId string `position:"Query" name:"ZoneId"` + Vpcs *[]BindZoneVpcVpcs `position:"Query" name:"Vpcs" type:"Repeated"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// 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") + 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 new file mode 100644 index 0000000..71bf3c6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/check_zone_name.go @@ -0,0 +1,107 @@ +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 +// api document: https://help.aliyun.com/api/pvtz/checkzonename.html +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 +// api document: https://help.aliyun.com/api/pvtz/checkzonename.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/pvtz/checkzonename.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + ZoneName string `position:"Query" name:"ZoneName"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// 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") + 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 new file mode 100644 index 0000000..a152bb0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/client.go @@ -0,0 +1,81 @@ +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" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + 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 new file mode 100644 index 0000000..daec48c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/delete_zone.go @@ -0,0 +1,106 @@ +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 +// api document: https://help.aliyun.com/api/pvtz/deletezone.html +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 +// api document: https://help.aliyun.com/api/pvtz/deletezone.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/pvtz/deletezone.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + ZoneId string `position:"Query" name:"ZoneId"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// 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") + 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 new file mode 100644 index 0000000..6b7cf5d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/delete_zone_record.go @@ -0,0 +1,106 @@ +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 +// api document: https://help.aliyun.com/api/pvtz/deletezonerecord.html +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 +// api document: https://help.aliyun.com/api/pvtz/deletezonerecord.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/pvtz/deletezonerecord.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + RecordId requests.Integer `position:"Query" name:"RecordId"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// DeleteZoneRecordResponse is the response struct for api DeleteZoneRecord +type DeleteZoneRecordResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RecordId int `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") + 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 new file mode 100644 index 0000000..f61cadb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_change_logs.go @@ -0,0 +1,116 @@ +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 +// api document: https://help.aliyun.com/api/pvtz/describechangelogs.html +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 +// api document: https://help.aliyun.com/api/pvtz/describechangelogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/pvtz/describechangelogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Keyword string `position:"Query" name:"Keyword"` + Lang string `position:"Query" name:"Lang"` + ZoneId string `position:"Query" name:"ZoneId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + StartTimestamp requests.Integer `position:"Query" name:"StartTimestamp"` + EndTimestamp requests.Integer `position:"Query" name:"EndTimestamp"` + EntityType string `position:"Query" name:"EntityType"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// 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") + 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 new file mode 100644 index 0000000..f315fb7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_regions.go @@ -0,0 +1,105 @@ +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 +// api document: https://help.aliyun.com/api/pvtz/describeregions.html +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 +// api document: https://help.aliyun.com/api/pvtz/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/pvtz/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// 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") + 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 new file mode 100644 index 0000000..070c079 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_request_graph.go @@ -0,0 +1,109 @@ +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 +// api document: https://help.aliyun.com/api/pvtz/describerequestgraph.html +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 +// api document: https://help.aliyun.com/api/pvtz/describerequestgraph.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/pvtz/describerequestgraph.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` + ZoneId string `position:"Query" name:"ZoneId"` + VpcId string `position:"Query" name:"VpcId"` + StartTimestamp requests.Integer `position:"Query" name:"StartTimestamp"` + EndTimestamp requests.Integer `position:"Query" name:"EndTimestamp"` +} + +// 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") + 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 new file mode 100644 index 0000000..e56617f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_statistic_summary.go @@ -0,0 +1,107 @@ +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 +// api document: https://help.aliyun.com/api/pvtz/describestatisticsummary.html +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 +// api document: https://help.aliyun.com/api/pvtz/describestatisticsummary.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/pvtz/describestatisticsummary.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// DescribeStatisticSummaryResponse is the response struct for api DescribeStatisticSummary +type DescribeStatisticSummaryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `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") + 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_user_service_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_user_service_status.go new file mode 100644 index 0000000..229f32d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_user_service_status.go @@ -0,0 +1,105 @@ +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" +) + +// DescribeUserServiceStatus invokes the pvtz.DescribeUserServiceStatus API synchronously +// api document: https://help.aliyun.com/api/pvtz/describeuserservicestatus.html +func (client *Client) DescribeUserServiceStatus(request *DescribeUserServiceStatusRequest) (response *DescribeUserServiceStatusResponse, err error) { + response = CreateDescribeUserServiceStatusResponse() + err = client.DoAction(request, response) + return +} + +// DescribeUserServiceStatusWithChan invokes the pvtz.DescribeUserServiceStatus API asynchronously +// api document: https://help.aliyun.com/api/pvtz/describeuserservicestatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserServiceStatusWithChan(request *DescribeUserServiceStatusRequest) (<-chan *DescribeUserServiceStatusResponse, <-chan error) { + responseChan := make(chan *DescribeUserServiceStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeUserServiceStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeUserServiceStatusWithCallback invokes the pvtz.DescribeUserServiceStatus API asynchronously +// api document: https://help.aliyun.com/api/pvtz/describeuserservicestatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeUserServiceStatusWithCallback(request *DescribeUserServiceStatusRequest, callback func(response *DescribeUserServiceStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeUserServiceStatusResponse + var err error + defer close(result) + response, err = client.DescribeUserServiceStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeUserServiceStatusRequest is the request struct for api DescribeUserServiceStatus +type DescribeUserServiceStatusRequest struct { + *requests.RpcRequest + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// DescribeUserServiceStatusResponse is the response struct for api DescribeUserServiceStatus +type DescribeUserServiceStatusResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Status string `json:"Status" xml:"Status"` +} + +// CreateDescribeUserServiceStatusRequest creates a request to invoke DescribeUserServiceStatus API +func CreateDescribeUserServiceStatusRequest() (request *DescribeUserServiceStatusRequest) { + request = &DescribeUserServiceStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("pvtz", "2018-01-01", "DescribeUserServiceStatus", "pvtz", "openAPI") + return +} + +// CreateDescribeUserServiceStatusResponse creates a response to parse from DescribeUserServiceStatus response +func CreateDescribeUserServiceStatusResponse() (response *DescribeUserServiceStatusResponse) { + response = &DescribeUserServiceStatusResponse{ + 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 new file mode 100644 index 0000000..0c2ddbf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zone_info.go @@ -0,0 +1,115 @@ +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 +// api document: https://help.aliyun.com/api/pvtz/describezoneinfo.html +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 +// api document: https://help.aliyun.com/api/pvtz/describezoneinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/pvtz/describezoneinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + ZoneId string `position:"Query" name:"ZoneId"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// 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 int `json:"CreateTimestamp" xml:"CreateTimestamp"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + UpdateTimestamp int `json:"UpdateTimestamp" xml:"UpdateTimestamp"` + IsPtr bool `json:"IsPtr" xml:"IsPtr"` + 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") + 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 new file mode 100644 index 0000000..7504f5c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zone_records.go @@ -0,0 +1,114 @@ +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 +// api document: https://help.aliyun.com/api/pvtz/describezonerecords.html +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 +// api document: https://help.aliyun.com/api/pvtz/describezonerecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/pvtz/describezonerecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Keyword string `position:"Query" name:"Keyword"` + Lang string `position:"Query" name:"Lang"` + ZoneId string `position:"Query" name:"ZoneId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Tag string `position:"Query" name:"Tag"` +} + +// 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") + 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 new file mode 100644 index 0000000..92b8253 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zone_vpc_tree.go @@ -0,0 +1,105 @@ +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 +// api document: https://help.aliyun.com/api/pvtz/describezonevpctree.html +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 +// api document: https://help.aliyun.com/api/pvtz/describezonevpctree.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/pvtz/describezonevpctree.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// 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") + 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 new file mode 100644 index 0000000..32bc83a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zones.go @@ -0,0 +1,112 @@ +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 +// api document: https://help.aliyun.com/api/pvtz/describezones.html +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 +// api document: https://help.aliyun.com/api/pvtz/describezones.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/pvtz/describezones.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Keyword string `position:"Query" name:"Keyword"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// 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") + 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/set_zone_record_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/set_zone_record_status.go new file mode 100644 index 0000000..9b679b5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/set_zone_record_status.go @@ -0,0 +1,108 @@ +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 +// api document: https://help.aliyun.com/api/pvtz/setzonerecordstatus.html +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 +// api document: https://help.aliyun.com/api/pvtz/setzonerecordstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/pvtz/setzonerecordstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + RecordId requests.Integer `position:"Query" name:"RecordId"` + Status string `position:"Query" name:"Status"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// SetZoneRecordStatusResponse is the response struct for api SetZoneRecordStatus +type SetZoneRecordStatusResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RecordId int `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") + 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 new file mode 100644 index 0000000..98109ee --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_bind_vpcs.go @@ -0,0 +1,21 @@ +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 new file mode 100644 index 0000000..97e6b91 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_change_log.go @@ -0,0 +1,29 @@ +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 int `json:"OperTimestamp" xml:"OperTimestamp"` + Id int `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 new file mode 100644 index 0000000..c2508b9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_change_logs.go @@ -0,0 +1,21 @@ +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 new file mode 100644 index 0000000..93c0dd3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_record.go @@ -0,0 +1,27 @@ +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 int `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"` +} 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 new file mode 100644 index 0000000..0d9e506 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_records.go @@ -0,0 +1,21 @@ +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 new file mode 100644 index 0000000..25727c8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_region.go @@ -0,0 +1,22 @@ +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"` +} 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 new file mode 100644 index 0000000..eaa1809 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_regions.go @@ -0,0 +1,21 @@ +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 new file mode 100644 index 0000000..0ac28d1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_request_details.go @@ -0,0 +1,21 @@ +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_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpc.go new file mode 100644 index 0000000..70a0176 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpc.go @@ -0,0 +1,25 @@ +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"` + VpcId string `json:"VpcId" xml:"VpcId"` + RegionName string `json:"RegionName" xml:"RegionName"` + ReionId string `json:"ReionId" xml:"ReionId"` +} 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 new file mode 100644 index 0000000..72afc64 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpc_request_top.go @@ -0,0 +1,25 @@ +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 int `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 new file mode 100644 index 0000000..57b6bc5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpc_request_tops.go @@ -0,0 +1,21 @@ +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 new file mode 100644 index 0000000..f84276c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpcs.go @@ -0,0 +1,21 @@ +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 new file mode 100644 index 0000000..dc64fd0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zone.go @@ -0,0 +1,30 @@ +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 { + ZoneId string `json:"ZoneId" xml:"ZoneId"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + Remark string `json:"Remark" xml:"Remark"` + CreateTimestamp int `json:"CreateTimestamp" xml:"CreateTimestamp"` + RecordCount int `json:"RecordCount" xml:"RecordCount"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + ZoneName string `json:"ZoneName" xml:"ZoneName"` + IsPtr bool `json:"IsPtr" xml:"IsPtr"` + UpdateTimestamp int `json:"UpdateTimestamp" xml:"UpdateTimestamp"` + 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 new file mode 100644 index 0000000..79d31d6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zone_request_top.go @@ -0,0 +1,24 @@ +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"` + RequestCount int `json:"RequestCount" xml:"RequestCount"` + Timestamp int `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 new file mode 100644 index 0000000..4d157dd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zone_request_tops.go @@ -0,0 +1,21 @@ +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 new file mode 100644 index 0000000..62d5d31 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zones_in_describe_zone_vpc_tree.go @@ -0,0 +1,21 @@ +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 new file mode 100644 index 0000000..4bcfca1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zones_in_describe_zones.go @@ -0,0 +1,21 @@ +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/update_zone_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/update_zone_record.go new file mode 100644 index 0000000..442d041 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/update_zone_record.go @@ -0,0 +1,111 @@ +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 +// api document: https://help.aliyun.com/api/pvtz/updatezonerecord.html +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 +// api document: https://help.aliyun.com/api/pvtz/updatezonerecord.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/pvtz/updatezonerecord.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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"` + Lang string `position:"Query" name:"Lang"` + RecordId requests.Integer `position:"Query" name:"RecordId"` + Type string `position:"Query" name:"Type"` + Ttl requests.Integer `position:"Query" name:"Ttl"` + Priority requests.Integer `position:"Query" name:"Priority"` + Value string `position:"Query" name:"Value"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// UpdateZoneRecordResponse is the response struct for api UpdateZoneRecord +type UpdateZoneRecordResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RecordId int `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") + 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 new file mode 100644 index 0000000..945ca13 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/update_zone_remark.go @@ -0,0 +1,107 @@ +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 +// api document: https://help.aliyun.com/api/pvtz/updatezoneremark.html +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 +// api document: https://help.aliyun.com/api/pvtz/updatezoneremark.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 +// api document: https://help.aliyun.com/api/pvtz/updatezoneremark.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + Lang string `position:"Query" name:"Lang"` + ZoneId string `position:"Query" name:"ZoneId"` + Remark string `position:"Query" name:"Remark"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// 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") + return +} + +// CreateUpdateZoneRemarkResponse creates a response to parse from UpdateZoneRemark response +func CreateUpdateZoneRemarkResponse() (response *UpdateZoneRemarkResponse) { + response = &UpdateZoneRemarkResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/client.go new file mode 100644 index 0000000..92ba9fe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/client.go @@ -0,0 +1,81 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/create_backup.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/create_backup.go new file mode 100644 index 0000000..032e415 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/create_backup.go @@ -0,0 +1,109 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateBackup invokes the r_kvstore.CreateBackup API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/createbackup.html +func (client *Client) CreateBackup(request *CreateBackupRequest) (response *CreateBackupResponse, err error) { + response = CreateCreateBackupResponse() + err = client.DoAction(request, response) + return +} + +// CreateBackupWithChan invokes the r_kvstore.CreateBackup API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/createbackup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateBackupWithChan(request *CreateBackupRequest) (<-chan *CreateBackupResponse, <-chan error) { + responseChan := make(chan *CreateBackupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateBackup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateBackupWithCallback invokes the r_kvstore.CreateBackup API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/createbackup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateBackupWithCallback(request *CreateBackupRequest, callback func(response *CreateBackupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateBackupResponse + var err error + defer close(result) + response, err = client.CreateBackup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateBackupRequest is the request struct for api CreateBackup +type CreateBackupRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// CreateBackupResponse is the response struct for api CreateBackup +type CreateBackupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + BackupJobID string `json:"BackupJobID" xml:"BackupJobID"` +} + +// CreateCreateBackupRequest creates a request to invoke CreateBackup API +func CreateCreateBackupRequest() (request *CreateBackupRequest) { + request = &CreateBackupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "CreateBackup", "redisa", "openAPI") + return +} + +// CreateCreateBackupResponse creates a response to parse from CreateBackup response +func CreateCreateBackupResponse() (response *CreateBackupResponse) { + response = &CreateBackupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/create_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/create_instance.go new file mode 100644 index 0000000..c84d2bb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/create_instance.go @@ -0,0 +1,146 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateInstance invokes the r_kvstore.CreateInstance API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/createinstance.html +func (client *Client) CreateInstance(request *CreateInstanceRequest) (response *CreateInstanceResponse, err error) { + response = CreateCreateInstanceResponse() + err = client.DoAction(request, response) + return +} + +// CreateInstanceWithChan invokes the r_kvstore.CreateInstance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/createinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateInstanceWithChan(request *CreateInstanceRequest) (<-chan *CreateInstanceResponse, <-chan error) { + responseChan := make(chan *CreateInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateInstanceWithCallback invokes the r_kvstore.CreateInstance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/createinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateInstanceWithCallback(request *CreateInstanceRequest, callback func(response *CreateInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateInstanceResponse + var err error + defer close(result) + response, err = client.CreateInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateInstanceRequest is the request struct for api CreateInstance +type CreateInstanceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + NodeType string `position:"Query" name:"NodeType"` + CouponNo string `position:"Query" name:"CouponNo"` + NetworkType string `position:"Query" name:"NetworkType"` + EngineVersion string `position:"Query" name:"EngineVersion"` + InstanceClass string `position:"Query" name:"InstanceClass"` + Capacity requests.Integer `position:"Query" name:"Capacity"` + Password string `position:"Query" name:"Password"` + SecurityToken string `position:"Query" name:"SecurityToken"` + InstanceType string `position:"Query" name:"InstanceType"` + BusinessInfo string `position:"Query" name:"BusinessInfo"` + Period string `position:"Query" name:"Period"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + SrcDBInstanceId string `position:"Query" name:"SrcDBInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + BackupId string `position:"Query" name:"BackupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Token string `position:"Query" name:"Token"` + VSwitchId string `position:"Query" name:"VSwitchId"` + InstanceName string `position:"Query" name:"InstanceName"` + VpcId string `position:"Query" name:"VpcId"` + ZoneId string `position:"Query" name:"ZoneId"` + ChargeType string `position:"Query" name:"ChargeType"` + Config string `position:"Query" name:"Config"` +} + +// CreateInstanceResponse is the response struct for api CreateInstance +type CreateInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + ConnectionDomain string `json:"ConnectionDomain" xml:"ConnectionDomain"` + Port int `json:"Port" xml:"Port"` + UserName string `json:"UserName" xml:"UserName"` + InstanceStatus string `json:"InstanceStatus" xml:"InstanceStatus"` + RegionId string `json:"RegionId" xml:"RegionId"` + Capacity int `json:"Capacity" xml:"Capacity"` + QPS int `json:"QPS" xml:"QPS"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + Connections int `json:"Connections" xml:"Connections"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + Config string `json:"Config" xml:"Config"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + EndTime string `json:"EndTime" xml:"EndTime"` + NodeType string `json:"NodeType" xml:"NodeType"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + VpcId string `json:"VpcId" xml:"VpcId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + PrivateIpAddr string `json:"PrivateIpAddr" xml:"PrivateIpAddr"` +} + +// CreateCreateInstanceRequest creates a request to invoke CreateInstance API +func CreateCreateInstanceRequest() (request *CreateInstanceRequest) { + request = &CreateInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "CreateInstance", "redisa", "openAPI") + return +} + +// CreateCreateInstanceResponse creates a response to parse from CreateInstance response +func CreateCreateInstanceResponse() (response *CreateInstanceResponse) { + response = &CreateInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/create_snapshot.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/create_snapshot.go new file mode 100644 index 0000000..a325a7b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/create_snapshot.go @@ -0,0 +1,108 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateSnapshot invokes the r_kvstore.CreateSnapshot API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/createsnapshot.html +func (client *Client) CreateSnapshot(request *CreateSnapshotRequest) (response *CreateSnapshotResponse, err error) { + response = CreateCreateSnapshotResponse() + err = client.DoAction(request, response) + return +} + +// CreateSnapshotWithChan invokes the r_kvstore.CreateSnapshot API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/createsnapshot.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSnapshotWithChan(request *CreateSnapshotRequest) (<-chan *CreateSnapshotResponse, <-chan error) { + responseChan := make(chan *CreateSnapshotResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateSnapshot(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateSnapshotWithCallback invokes the r_kvstore.CreateSnapshot API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/createsnapshot.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSnapshotWithCallback(request *CreateSnapshotRequest, callback func(response *CreateSnapshotResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateSnapshotResponse + var err error + defer close(result) + response, err = client.CreateSnapshot(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateSnapshotRequest is the request struct for api CreateSnapshot +type CreateSnapshotRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// CreateSnapshotResponse is the response struct for api CreateSnapshot +type CreateSnapshotResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` + Status string `json:"Status" xml:"Status"` +} + +// CreateCreateSnapshotRequest creates a request to invoke CreateSnapshot API +func CreateCreateSnapshotRequest() (request *CreateSnapshotRequest) { + request = &CreateSnapshotRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "CreateSnapshot", "redisa", "openAPI") + return +} + +// CreateCreateSnapshotResponse creates a response to parse from CreateSnapshot response +func CreateCreateSnapshotResponse() (response *CreateSnapshotResponse) { + response = &CreateSnapshotResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/create_static_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/create_static_verification.go new file mode 100644 index 0000000..5786ef2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/create_static_verification.go @@ -0,0 +1,110 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateStaticVerification invokes the r_kvstore.CreateStaticVerification API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/createstaticverification.html +func (client *Client) CreateStaticVerification(request *CreateStaticVerificationRequest) (response *CreateStaticVerificationResponse, err error) { + response = CreateCreateStaticVerificationResponse() + err = client.DoAction(request, response) + return +} + +// CreateStaticVerificationWithChan invokes the r_kvstore.CreateStaticVerification API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/createstaticverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateStaticVerificationWithChan(request *CreateStaticVerificationRequest) (<-chan *CreateStaticVerificationResponse, <-chan error) { + responseChan := make(chan *CreateStaticVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateStaticVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateStaticVerificationWithCallback invokes the r_kvstore.CreateStaticVerification API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/createstaticverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateStaticVerificationWithCallback(request *CreateStaticVerificationRequest, callback func(response *CreateStaticVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateStaticVerificationResponse + var err error + defer close(result) + response, err = client.CreateStaticVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateStaticVerificationRequest is the request struct for api CreateStaticVerification +type CreateStaticVerificationRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + DestinationInstanceId string `position:"Query" name:"DestinationInstanceId"` + SourceInstanceId string `position:"Query" name:"SourceInstanceId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// CreateStaticVerificationResponse is the response struct for api CreateStaticVerification +type CreateStaticVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateStaticVerificationRequest creates a request to invoke CreateStaticVerification API +func CreateCreateStaticVerificationRequest() (request *CreateStaticVerificationRequest) { + request = &CreateStaticVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "CreateStaticVerification", "redisa", "openAPI") + return +} + +// CreateCreateStaticVerificationResponse creates a response to parse from CreateStaticVerification response +func CreateCreateStaticVerificationResponse() (response *CreateStaticVerificationResponse) { + response = &CreateStaticVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/create_temp_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/create_temp_instance.go new file mode 100644 index 0000000..3d3c453 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/create_temp_instance.go @@ -0,0 +1,110 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateTempInstance invokes the r_kvstore.CreateTempInstance API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/createtempinstance.html +func (client *Client) CreateTempInstance(request *CreateTempInstanceRequest) (response *CreateTempInstanceResponse, err error) { + response = CreateCreateTempInstanceResponse() + err = client.DoAction(request, response) + return +} + +// CreateTempInstanceWithChan invokes the r_kvstore.CreateTempInstance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/createtempinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateTempInstanceWithChan(request *CreateTempInstanceRequest) (<-chan *CreateTempInstanceResponse, <-chan error) { + responseChan := make(chan *CreateTempInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateTempInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateTempInstanceWithCallback invokes the r_kvstore.CreateTempInstance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/createtempinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateTempInstanceWithCallback(request *CreateTempInstanceRequest, callback func(response *CreateTempInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateTempInstanceResponse + var err error + defer close(result) + response, err = client.CreateTempInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateTempInstanceRequest is the request struct for api CreateTempInstance +type CreateTempInstanceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// CreateTempInstanceResponse is the response struct for api CreateTempInstance +type CreateTempInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` + TempInstanceId string `json:"TempInstanceId" xml:"TempInstanceId"` + Status string `json:"Status" xml:"Status"` +} + +// CreateCreateTempInstanceRequest creates a request to invoke CreateTempInstance API +func CreateCreateTempInstanceRequest() (request *CreateTempInstanceRequest) { + request = &CreateTempInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "CreateTempInstance", "redisa", "openAPI") + return +} + +// CreateCreateTempInstanceResponse creates a response to parse from CreateTempInstance response +func CreateCreateTempInstanceResponse() (response *CreateTempInstanceResponse) { + response = &CreateTempInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/delete_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/delete_instance.go new file mode 100644 index 0000000..3f3897b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/delete_instance.go @@ -0,0 +1,108 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteInstance invokes the r_kvstore.DeleteInstance API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/deleteinstance.html +func (client *Client) DeleteInstance(request *DeleteInstanceRequest) (response *DeleteInstanceResponse, err error) { + response = CreateDeleteInstanceResponse() + err = client.DoAction(request, response) + return +} + +// DeleteInstanceWithChan invokes the r_kvstore.DeleteInstance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/deleteinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteInstanceWithChan(request *DeleteInstanceRequest) (<-chan *DeleteInstanceResponse, <-chan error) { + responseChan := make(chan *DeleteInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteInstanceWithCallback invokes the r_kvstore.DeleteInstance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/deleteinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteInstanceWithCallback(request *DeleteInstanceRequest, callback func(response *DeleteInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteInstanceResponse + var err error + defer close(result) + response, err = client.DeleteInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteInstanceRequest is the request struct for api DeleteInstance +type DeleteInstanceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteInstanceResponse is the response struct for api DeleteInstance +type DeleteInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteInstanceRequest creates a request to invoke DeleteInstance API +func CreateDeleteInstanceRequest() (request *DeleteInstanceRequest) { + request = &DeleteInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DeleteInstance", "redisa", "openAPI") + return +} + +// CreateDeleteInstanceResponse creates a response to parse from DeleteInstance response +func CreateDeleteInstanceResponse() (response *DeleteInstanceResponse) { + response = &DeleteInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/delete_snapshot.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/delete_snapshot.go new file mode 100644 index 0000000..143d7f2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/delete_snapshot.go @@ -0,0 +1,106 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteSnapshot invokes the r_kvstore.DeleteSnapshot API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/deletesnapshot.html +func (client *Client) DeleteSnapshot(request *DeleteSnapshotRequest) (response *DeleteSnapshotResponse, err error) { + response = CreateDeleteSnapshotResponse() + err = client.DoAction(request, response) + return +} + +// DeleteSnapshotWithChan invokes the r_kvstore.DeleteSnapshot API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/deletesnapshot.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSnapshotWithChan(request *DeleteSnapshotRequest) (<-chan *DeleteSnapshotResponse, <-chan error) { + responseChan := make(chan *DeleteSnapshotResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteSnapshot(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteSnapshotWithCallback invokes the r_kvstore.DeleteSnapshot API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/deletesnapshot.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSnapshotWithCallback(request *DeleteSnapshotRequest, callback func(response *DeleteSnapshotResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteSnapshotResponse + var err error + defer close(result) + response, err = client.DeleteSnapshot(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteSnapshotRequest is the request struct for api DeleteSnapshot +type DeleteSnapshotRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteSnapshotResponse is the response struct for api DeleteSnapshot +type DeleteSnapshotResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteSnapshotRequest creates a request to invoke DeleteSnapshot API +func CreateDeleteSnapshotRequest() (request *DeleteSnapshotRequest) { + request = &DeleteSnapshotRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DeleteSnapshot", "redisa", "openAPI") + return +} + +// CreateDeleteSnapshotResponse creates a response to parse from DeleteSnapshot response +func CreateDeleteSnapshotResponse() (response *DeleteSnapshotResponse) { + response = &DeleteSnapshotResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/delete_snapshot_settings.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/delete_snapshot_settings.go new file mode 100644 index 0000000..1cbf32c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/delete_snapshot_settings.go @@ -0,0 +1,106 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteSnapshotSettings invokes the r_kvstore.DeleteSnapshotSettings API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/deletesnapshotsettings.html +func (client *Client) DeleteSnapshotSettings(request *DeleteSnapshotSettingsRequest) (response *DeleteSnapshotSettingsResponse, err error) { + response = CreateDeleteSnapshotSettingsResponse() + err = client.DoAction(request, response) + return +} + +// DeleteSnapshotSettingsWithChan invokes the r_kvstore.DeleteSnapshotSettings API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/deletesnapshotsettings.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSnapshotSettingsWithChan(request *DeleteSnapshotSettingsRequest) (<-chan *DeleteSnapshotSettingsResponse, <-chan error) { + responseChan := make(chan *DeleteSnapshotSettingsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteSnapshotSettings(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteSnapshotSettingsWithCallback invokes the r_kvstore.DeleteSnapshotSettings API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/deletesnapshotsettings.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSnapshotSettingsWithCallback(request *DeleteSnapshotSettingsRequest, callback func(response *DeleteSnapshotSettingsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteSnapshotSettingsResponse + var err error + defer close(result) + response, err = client.DeleteSnapshotSettings(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteSnapshotSettingsRequest is the request struct for api DeleteSnapshotSettings +type DeleteSnapshotSettingsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteSnapshotSettingsResponse is the response struct for api DeleteSnapshotSettings +type DeleteSnapshotSettingsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteSnapshotSettingsRequest creates a request to invoke DeleteSnapshotSettings API +func CreateDeleteSnapshotSettingsRequest() (request *DeleteSnapshotSettingsRequest) { + request = &DeleteSnapshotSettingsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DeleteSnapshotSettings", "redisa", "openAPI") + return +} + +// CreateDeleteSnapshotSettingsResponse creates a response to parse from DeleteSnapshotSettings response +func CreateDeleteSnapshotSettingsResponse() (response *DeleteSnapshotSettingsResponse) { + response = &DeleteSnapshotSettingsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/delete_temp_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/delete_temp_instance.go new file mode 100644 index 0000000..79bba35 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/delete_temp_instance.go @@ -0,0 +1,106 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteTempInstance invokes the r_kvstore.DeleteTempInstance API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/deletetempinstance.html +func (client *Client) DeleteTempInstance(request *DeleteTempInstanceRequest) (response *DeleteTempInstanceResponse, err error) { + response = CreateDeleteTempInstanceResponse() + err = client.DoAction(request, response) + return +} + +// DeleteTempInstanceWithChan invokes the r_kvstore.DeleteTempInstance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/deletetempinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteTempInstanceWithChan(request *DeleteTempInstanceRequest) (<-chan *DeleteTempInstanceResponse, <-chan error) { + responseChan := make(chan *DeleteTempInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteTempInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteTempInstanceWithCallback invokes the r_kvstore.DeleteTempInstance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/deletetempinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteTempInstanceWithCallback(request *DeleteTempInstanceRequest, callback func(response *DeleteTempInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteTempInstanceResponse + var err error + defer close(result) + response, err = client.DeleteTempInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteTempInstanceRequest is the request struct for api DeleteTempInstance +type DeleteTempInstanceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteTempInstanceResponse is the response struct for api DeleteTempInstance +type DeleteTempInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteTempInstanceRequest creates a request to invoke DeleteTempInstance API +func CreateDeleteTempInstanceRequest() (request *DeleteTempInstanceRequest) { + request = &DeleteTempInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DeleteTempInstance", "redisa", "openAPI") + return +} + +// CreateDeleteTempInstanceResponse creates a response to parse from DeleteTempInstance response +func CreateDeleteTempInstanceResponse() (response *DeleteTempInstanceResponse) { + response = &DeleteTempInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_backup_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_backup_policy.go new file mode 100644 index 0000000..33cebe8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_backup_policy.go @@ -0,0 +1,112 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeBackupPolicy invokes the r_kvstore.DescribeBackupPolicy API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describebackuppolicy.html +func (client *Client) DescribeBackupPolicy(request *DescribeBackupPolicyRequest) (response *DescribeBackupPolicyResponse, err error) { + response = CreateDescribeBackupPolicyResponse() + err = client.DoAction(request, response) + return +} + +// DescribeBackupPolicyWithChan invokes the r_kvstore.DescribeBackupPolicy API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describebackuppolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBackupPolicyWithChan(request *DescribeBackupPolicyRequest) (<-chan *DescribeBackupPolicyResponse, <-chan error) { + responseChan := make(chan *DescribeBackupPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeBackupPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeBackupPolicyWithCallback invokes the r_kvstore.DescribeBackupPolicy API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describebackuppolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBackupPolicyWithCallback(request *DescribeBackupPolicyRequest, callback func(response *DescribeBackupPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeBackupPolicyResponse + var err error + defer close(result) + response, err = client.DescribeBackupPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeBackupPolicyRequest is the request struct for api DescribeBackupPolicy +type DescribeBackupPolicyRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeBackupPolicyResponse is the response struct for api DescribeBackupPolicy +type DescribeBackupPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + BackupRetentionPeriod string `json:"BackupRetentionPeriod" xml:"BackupRetentionPeriod"` + PreferredBackupTime string `json:"PreferredBackupTime" xml:"PreferredBackupTime"` + PreferredBackupPeriod string `json:"PreferredBackupPeriod" xml:"PreferredBackupPeriod"` + PreferredNextBackupTime string `json:"PreferredNextBackupTime" xml:"PreferredNextBackupTime"` +} + +// CreateDescribeBackupPolicyRequest creates a request to invoke DescribeBackupPolicy API +func CreateDescribeBackupPolicyRequest() (request *DescribeBackupPolicyRequest) { + request = &DescribeBackupPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeBackupPolicy", "redisa", "openAPI") + return +} + +// CreateDescribeBackupPolicyResponse creates a response to parse from DescribeBackupPolicy response +func CreateDescribeBackupPolicyResponse() (response *DescribeBackupPolicyResponse) { + response = &DescribeBackupPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_backups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_backups.go new file mode 100644 index 0000000..314f61b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_backups.go @@ -0,0 +1,117 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeBackups invokes the r_kvstore.DescribeBackups API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describebackups.html +func (client *Client) DescribeBackups(request *DescribeBackupsRequest) (response *DescribeBackupsResponse, err error) { + response = CreateDescribeBackupsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeBackupsWithChan invokes the r_kvstore.DescribeBackups API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describebackups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBackupsWithChan(request *DescribeBackupsRequest) (<-chan *DescribeBackupsResponse, <-chan error) { + responseChan := make(chan *DescribeBackupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeBackups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeBackupsWithCallback invokes the r_kvstore.DescribeBackups API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describebackups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBackupsWithCallback(request *DescribeBackupsRequest, callback func(response *DescribeBackupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeBackupsResponse + var err error + defer close(result) + response, err = client.DescribeBackups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeBackupsRequest is the request struct for api DescribeBackups +type DescribeBackupsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + BackupId requests.Integer `position:"Query" name:"BackupId"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeBackupsResponse is the response struct for api DescribeBackups +type DescribeBackupsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Backups Backups `json:"Backups" xml:"Backups"` +} + +// CreateDescribeBackupsRequest creates a request to invoke DescribeBackups API +func CreateDescribeBackupsRequest() (request *DescribeBackupsRequest) { + request = &DescribeBackupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeBackups", "redisa", "openAPI") + return +} + +// CreateDescribeBackupsResponse creates a response to parse from DescribeBackups response +func CreateDescribeBackupsResponse() (response *DescribeBackupsResponse) { + response = &DescribeBackupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_certification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_certification.go new file mode 100644 index 0000000..39052d8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_certification.go @@ -0,0 +1,110 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCertification invokes the r_kvstore.DescribeCertification API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describecertification.html +func (client *Client) DescribeCertification(request *DescribeCertificationRequest) (response *DescribeCertificationResponse, err error) { + response = CreateDescribeCertificationResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCertificationWithChan invokes the r_kvstore.DescribeCertification API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describecertification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCertificationWithChan(request *DescribeCertificationRequest) (<-chan *DescribeCertificationResponse, <-chan error) { + responseChan := make(chan *DescribeCertificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCertification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCertificationWithCallback invokes the r_kvstore.DescribeCertification API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describecertification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCertificationWithCallback(request *DescribeCertificationRequest, callback func(response *DescribeCertificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCertificationResponse + var err error + defer close(result) + response, err = client.DescribeCertification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCertificationRequest is the request struct for api DescribeCertification +type DescribeCertificationRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Parameters string `position:"Query" name:"Parameters"` +} + +// DescribeCertificationResponse is the response struct for api DescribeCertification +type DescribeCertificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NoCertification bool `json:"NoCertification" xml:"NoCertification"` +} + +// CreateDescribeCertificationRequest creates a request to invoke DescribeCertification API +func CreateDescribeCertificationRequest() (request *DescribeCertificationRequest) { + request = &DescribeCertificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeCertification", "redisa", "openAPI") + return +} + +// CreateDescribeCertificationResponse creates a response to parse from DescribeCertification response +func CreateDescribeCertificationResponse() (response *DescribeCertificationResponse) { + response = &DescribeCertificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_db_instance_net_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_db_instance_net_info.go new file mode 100644 index 0000000..20bc1d6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_db_instance_net_info.go @@ -0,0 +1,110 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDBInstanceNetInfo invokes the r_kvstore.DescribeDBInstanceNetInfo API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describedbinstancenetinfo.html +func (client *Client) DescribeDBInstanceNetInfo(request *DescribeDBInstanceNetInfoRequest) (response *DescribeDBInstanceNetInfoResponse, err error) { + response = CreateDescribeDBInstanceNetInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDBInstanceNetInfoWithChan invokes the r_kvstore.DescribeDBInstanceNetInfo API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describedbinstancenetinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceNetInfoWithChan(request *DescribeDBInstanceNetInfoRequest) (<-chan *DescribeDBInstanceNetInfoResponse, <-chan error) { + responseChan := make(chan *DescribeDBInstanceNetInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDBInstanceNetInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDBInstanceNetInfoWithCallback invokes the r_kvstore.DescribeDBInstanceNetInfo API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describedbinstancenetinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceNetInfoWithCallback(request *DescribeDBInstanceNetInfoRequest, callback func(response *DescribeDBInstanceNetInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDBInstanceNetInfoResponse + var err error + defer close(result) + response, err = client.DescribeDBInstanceNetInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDBInstanceNetInfoRequest is the request struct for api DescribeDBInstanceNetInfo +type DescribeDBInstanceNetInfoRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeDBInstanceNetInfoResponse is the response struct for api DescribeDBInstanceNetInfo +type DescribeDBInstanceNetInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceNetworkType string `json:"InstanceNetworkType" xml:"InstanceNetworkType"` + NetInfoItems NetInfoItemsInDescribeDBInstanceNetInfo `json:"NetInfoItems" xml:"NetInfoItems"` +} + +// CreateDescribeDBInstanceNetInfoRequest creates a request to invoke DescribeDBInstanceNetInfo API +func CreateDescribeDBInstanceNetInfoRequest() (request *DescribeDBInstanceNetInfoRequest) { + request = &DescribeDBInstanceNetInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeDBInstanceNetInfo", "redisa", "openAPI") + return +} + +// CreateDescribeDBInstanceNetInfoResponse creates a response to parse from DescribeDBInstanceNetInfo response +func CreateDescribeDBInstanceNetInfoResponse() (response *DescribeDBInstanceNetInfoResponse) { + response = &DescribeDBInstanceNetInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_history_monitor_values.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_history_monitor_values.go new file mode 100644 index 0000000..1c586c1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_history_monitor_values.go @@ -0,0 +1,114 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeHistoryMonitorValues invokes the r_kvstore.DescribeHistoryMonitorValues API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describehistorymonitorvalues.html +func (client *Client) DescribeHistoryMonitorValues(request *DescribeHistoryMonitorValuesRequest) (response *DescribeHistoryMonitorValuesResponse, err error) { + response = CreateDescribeHistoryMonitorValuesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeHistoryMonitorValuesWithChan invokes the r_kvstore.DescribeHistoryMonitorValues API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describehistorymonitorvalues.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeHistoryMonitorValuesWithChan(request *DescribeHistoryMonitorValuesRequest) (<-chan *DescribeHistoryMonitorValuesResponse, <-chan error) { + responseChan := make(chan *DescribeHistoryMonitorValuesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeHistoryMonitorValues(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeHistoryMonitorValuesWithCallback invokes the r_kvstore.DescribeHistoryMonitorValues API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describehistorymonitorvalues.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeHistoryMonitorValuesWithCallback(request *DescribeHistoryMonitorValuesRequest, callback func(response *DescribeHistoryMonitorValuesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeHistoryMonitorValuesResponse + var err error + defer close(result) + response, err = client.DescribeHistoryMonitorValues(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeHistoryMonitorValuesRequest is the request struct for api DescribeHistoryMonitorValues +type DescribeHistoryMonitorValuesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + IntervalForHistory string `position:"Query" name:"IntervalForHistory"` + NodeId string `position:"Query" name:"NodeId"` + MonitorKeys string `position:"Query" name:"MonitorKeys"` +} + +// DescribeHistoryMonitorValuesResponse is the response struct for api DescribeHistoryMonitorValues +type DescribeHistoryMonitorValuesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MonitorHistory string `json:"MonitorHistory" xml:"MonitorHistory"` +} + +// CreateDescribeHistoryMonitorValuesRequest creates a request to invoke DescribeHistoryMonitorValues API +func CreateDescribeHistoryMonitorValuesRequest() (request *DescribeHistoryMonitorValuesRequest) { + request = &DescribeHistoryMonitorValuesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeHistoryMonitorValues", "redisa", "openAPI") + return +} + +// CreateDescribeHistoryMonitorValuesResponse creates a response to parse from DescribeHistoryMonitorValues response +func CreateDescribeHistoryMonitorValuesResponse() (response *DescribeHistoryMonitorValuesResponse) { + response = &DescribeHistoryMonitorValuesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_instance_attribute.go new file mode 100644 index 0000000..127d041 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_instance_attribute.go @@ -0,0 +1,109 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstanceAttribute invokes the r_kvstore.DescribeInstanceAttribute API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describeinstanceattribute.html +func (client *Client) DescribeInstanceAttribute(request *DescribeInstanceAttributeRequest) (response *DescribeInstanceAttributeResponse, err error) { + response = CreateDescribeInstanceAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstanceAttributeWithChan invokes the r_kvstore.DescribeInstanceAttribute API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describeinstanceattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceAttributeWithChan(request *DescribeInstanceAttributeRequest) (<-chan *DescribeInstanceAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeInstanceAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstanceAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstanceAttributeWithCallback invokes the r_kvstore.DescribeInstanceAttribute API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describeinstanceattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceAttributeWithCallback(request *DescribeInstanceAttributeRequest, callback func(response *DescribeInstanceAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstanceAttributeResponse + var err error + defer close(result) + response, err = client.DescribeInstanceAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstanceAttributeRequest is the request struct for api DescribeInstanceAttribute +type DescribeInstanceAttributeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeInstanceAttributeResponse is the response struct for api DescribeInstanceAttribute +type DescribeInstanceAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Instances InstancesInDescribeInstanceAttribute `json:"Instances" xml:"Instances"` +} + +// CreateDescribeInstanceAttributeRequest creates a request to invoke DescribeInstanceAttribute API +func CreateDescribeInstanceAttributeRequest() (request *DescribeInstanceAttributeRequest) { + request = &DescribeInstanceAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeInstanceAttribute", "redisa", "openAPI") + return +} + +// CreateDescribeInstanceAttributeResponse creates a response to parse from DescribeInstanceAttribute response +func CreateDescribeInstanceAttributeResponse() (response *DescribeInstanceAttributeResponse) { + response = &DescribeInstanceAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_instance_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_instance_config.go new file mode 100644 index 0000000..200e606 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_instance_config.go @@ -0,0 +1,109 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstanceConfig invokes the r_kvstore.DescribeInstanceConfig API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describeinstanceconfig.html +func (client *Client) DescribeInstanceConfig(request *DescribeInstanceConfigRequest) (response *DescribeInstanceConfigResponse, err error) { + response = CreateDescribeInstanceConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstanceConfigWithChan invokes the r_kvstore.DescribeInstanceConfig API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describeinstanceconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceConfigWithChan(request *DescribeInstanceConfigRequest) (<-chan *DescribeInstanceConfigResponse, <-chan error) { + responseChan := make(chan *DescribeInstanceConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstanceConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstanceConfigWithCallback invokes the r_kvstore.DescribeInstanceConfig API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describeinstanceconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceConfigWithCallback(request *DescribeInstanceConfigRequest, callback func(response *DescribeInstanceConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstanceConfigResponse + var err error + defer close(result) + response, err = client.DescribeInstanceConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstanceConfigRequest is the request struct for api DescribeInstanceConfig +type DescribeInstanceConfigRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeInstanceConfigResponse is the response struct for api DescribeInstanceConfig +type DescribeInstanceConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Config string `json:"Config" xml:"Config"` +} + +// CreateDescribeInstanceConfigRequest creates a request to invoke DescribeInstanceConfig API +func CreateDescribeInstanceConfigRequest() (request *DescribeInstanceConfigRequest) { + request = &DescribeInstanceConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeInstanceConfig", "redisa", "openAPI") + return +} + +// CreateDescribeInstanceConfigResponse creates a response to parse from DescribeInstanceConfig response +func CreateDescribeInstanceConfigResponse() (response *DescribeInstanceConfigResponse) { + response = &DescribeInstanceConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_instance_ssl.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_instance_ssl.go new file mode 100644 index 0000000..c08575c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_instance_ssl.go @@ -0,0 +1,112 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstanceSSL invokes the r_kvstore.DescribeInstanceSSL API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describeinstancessl.html +func (client *Client) DescribeInstanceSSL(request *DescribeInstanceSSLRequest) (response *DescribeInstanceSSLResponse, err error) { + response = CreateDescribeInstanceSSLResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstanceSSLWithChan invokes the r_kvstore.DescribeInstanceSSL API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describeinstancessl.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceSSLWithChan(request *DescribeInstanceSSLRequest) (<-chan *DescribeInstanceSSLResponse, <-chan error) { + responseChan := make(chan *DescribeInstanceSSLResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstanceSSL(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstanceSSLWithCallback invokes the r_kvstore.DescribeInstanceSSL API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describeinstancessl.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceSSLWithCallback(request *DescribeInstanceSSLRequest, callback func(response *DescribeInstanceSSLResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstanceSSLResponse + var err error + defer close(result) + response, err = client.DescribeInstanceSSL(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstanceSSLRequest is the request struct for api DescribeInstanceSSL +type DescribeInstanceSSLRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeInstanceSSLResponse is the response struct for api DescribeInstanceSSL +type DescribeInstanceSSLResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + SSLEnabled string `json:"SSLEnabled" xml:"SSLEnabled"` + CertCommonName string `json:"CertCommonName" xml:"CertCommonName"` + SSLExpiredTime string `json:"SSLExpiredTime" xml:"SSLExpiredTime"` +} + +// CreateDescribeInstanceSSLRequest creates a request to invoke DescribeInstanceSSL API +func CreateDescribeInstanceSSLRequest() (request *DescribeInstanceSSLRequest) { + request = &DescribeInstanceSSLRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeInstanceSSL", "redisa", "openAPI") + return +} + +// CreateDescribeInstanceSSLResponse creates a response to parse from DescribeInstanceSSL response +func CreateDescribeInstanceSSLResponse() (response *DescribeInstanceSSLResponse) { + response = &DescribeInstanceSSLResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_instances.go new file mode 100644 index 0000000..c4f3aa6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_instances.go @@ -0,0 +1,121 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstances invokes the r_kvstore.DescribeInstances API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describeinstances.html +func (client *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error) { + response = CreateDescribeInstancesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstancesWithChan invokes the r_kvstore.DescribeInstances API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describeinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstancesWithChan(request *DescribeInstancesRequest) (<-chan *DescribeInstancesResponse, <-chan error) { + responseChan := make(chan *DescribeInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstancesWithCallback invokes the r_kvstore.DescribeInstances API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describeinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstancesWithCallback(request *DescribeInstancesRequest, callback func(response *DescribeInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstancesResponse + var err error + defer close(result) + response, err = client.DescribeInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstancesRequest is the request struct for api DescribeInstances +type DescribeInstancesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceStatus string `position:"Query" name:"InstanceStatus"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SearchKey string `position:"Query" name:"SearchKey"` + NetworkType string `position:"Query" name:"NetworkType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + VSwitchId string `position:"Query" name:"VSwitchId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + InstanceIds string `position:"Query" name:"InstanceIds"` + VpcId string `position:"Query" name:"VpcId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + InstanceType string `position:"Query" name:"InstanceType"` + ChargeType string `position:"Query" name:"ChargeType"` +} + +// DescribeInstancesResponse is the response struct for api DescribeInstances +type DescribeInstancesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Instances InstancesInDescribeInstances `json:"Instances" xml:"Instances"` +} + +// CreateDescribeInstancesRequest creates a request to invoke DescribeInstances API +func CreateDescribeInstancesRequest() (request *DescribeInstancesRequest) { + request = &DescribeInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeInstances", "redisa", "openAPI") + return +} + +// CreateDescribeInstancesResponse creates a response to parse from DescribeInstances response +func CreateDescribeInstancesResponse() (response *DescribeInstancesResponse) { + response = &DescribeInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_instances_by_expire_time.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_instances_by_expire_time.go new file mode 100644 index 0000000..cac7826 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_instances_by_expire_time.go @@ -0,0 +1,116 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstancesByExpireTime invokes the r_kvstore.DescribeInstancesByExpireTime API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describeinstancesbyexpiretime.html +func (client *Client) DescribeInstancesByExpireTime(request *DescribeInstancesByExpireTimeRequest) (response *DescribeInstancesByExpireTimeResponse, err error) { + response = CreateDescribeInstancesByExpireTimeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstancesByExpireTimeWithChan invokes the r_kvstore.DescribeInstancesByExpireTime API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describeinstancesbyexpiretime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstancesByExpireTimeWithChan(request *DescribeInstancesByExpireTimeRequest) (<-chan *DescribeInstancesByExpireTimeResponse, <-chan error) { + responseChan := make(chan *DescribeInstancesByExpireTimeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstancesByExpireTime(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstancesByExpireTimeWithCallback invokes the r_kvstore.DescribeInstancesByExpireTime API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describeinstancesbyexpiretime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstancesByExpireTimeWithCallback(request *DescribeInstancesByExpireTimeRequest, callback func(response *DescribeInstancesByExpireTimeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstancesByExpireTimeResponse + var err error + defer close(result) + response, err = client.DescribeInstancesByExpireTime(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstancesByExpireTimeRequest is the request struct for api DescribeInstancesByExpireTime +type DescribeInstancesByExpireTimeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + SecurityToken string `position:"Query" name:"SecurityToken"` + HasExpiredRes requests.Boolean `position:"Query" name:"HasExpiredRes"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + InstanceType string `position:"Query" name:"InstanceType"` + ExpirePeriod requests.Integer `position:"Query" name:"ExpirePeriod"` +} + +// DescribeInstancesByExpireTimeResponse is the response struct for api DescribeInstancesByExpireTime +type DescribeInstancesByExpireTimeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Instances InstancesInDescribeInstancesByExpireTime `json:"Instances" xml:"Instances"` +} + +// CreateDescribeInstancesByExpireTimeRequest creates a request to invoke DescribeInstancesByExpireTime API +func CreateDescribeInstancesByExpireTimeRequest() (request *DescribeInstancesByExpireTimeRequest) { + request = &DescribeInstancesByExpireTimeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeInstancesByExpireTime", "redisa", "openAPI") + return +} + +// CreateDescribeInstancesByExpireTimeResponse creates a response to parse from DescribeInstancesByExpireTime response +func CreateDescribeInstancesByExpireTimeResponse() (response *DescribeInstancesByExpireTimeResponse) { + response = &DescribeInstancesByExpireTimeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_logic_instance_topology.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_logic_instance_topology.go new file mode 100644 index 0000000..57d88e2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_logic_instance_topology.go @@ -0,0 +1,111 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLogicInstanceTopology invokes the r_kvstore.DescribeLogicInstanceTopology API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describelogicinstancetopology.html +func (client *Client) DescribeLogicInstanceTopology(request *DescribeLogicInstanceTopologyRequest) (response *DescribeLogicInstanceTopologyResponse, err error) { + response = CreateDescribeLogicInstanceTopologyResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLogicInstanceTopologyWithChan invokes the r_kvstore.DescribeLogicInstanceTopology API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describelogicinstancetopology.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLogicInstanceTopologyWithChan(request *DescribeLogicInstanceTopologyRequest) (<-chan *DescribeLogicInstanceTopologyResponse, <-chan error) { + responseChan := make(chan *DescribeLogicInstanceTopologyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLogicInstanceTopology(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLogicInstanceTopologyWithCallback invokes the r_kvstore.DescribeLogicInstanceTopology API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describelogicinstancetopology.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLogicInstanceTopologyWithCallback(request *DescribeLogicInstanceTopologyRequest, callback func(response *DescribeLogicInstanceTopologyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLogicInstanceTopologyResponse + var err error + defer close(result) + response, err = client.DescribeLogicInstanceTopology(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLogicInstanceTopologyRequest is the request struct for api DescribeLogicInstanceTopology +type DescribeLogicInstanceTopologyRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLogicInstanceTopologyResponse is the response struct for api DescribeLogicInstanceTopology +type DescribeLogicInstanceTopologyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + RedisProxyList RedisProxyList `json:"RedisProxyList" xml:"RedisProxyList"` + RedisShardList RedisShardList `json:"RedisShardList" xml:"RedisShardList"` +} + +// CreateDescribeLogicInstanceTopologyRequest creates a request to invoke DescribeLogicInstanceTopology API +func CreateDescribeLogicInstanceTopologyRequest() (request *DescribeLogicInstanceTopologyRequest) { + request = &DescribeLogicInstanceTopologyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeLogicInstanceTopology", "redisa", "openAPI") + return +} + +// CreateDescribeLogicInstanceTopologyResponse creates a response to parse from DescribeLogicInstanceTopology response +func CreateDescribeLogicInstanceTopologyResponse() (response *DescribeLogicInstanceTopologyResponse) { + response = &DescribeLogicInstanceTopologyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_monitor_items.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_monitor_items.go new file mode 100644 index 0000000..37bebfe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_monitor_items.go @@ -0,0 +1,108 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeMonitorItems invokes the r_kvstore.DescribeMonitorItems API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describemonitoritems.html +func (client *Client) DescribeMonitorItems(request *DescribeMonitorItemsRequest) (response *DescribeMonitorItemsResponse, err error) { + response = CreateDescribeMonitorItemsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeMonitorItemsWithChan invokes the r_kvstore.DescribeMonitorItems API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describemonitoritems.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMonitorItemsWithChan(request *DescribeMonitorItemsRequest) (<-chan *DescribeMonitorItemsResponse, <-chan error) { + responseChan := make(chan *DescribeMonitorItemsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeMonitorItems(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeMonitorItemsWithCallback invokes the r_kvstore.DescribeMonitorItems API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describemonitoritems.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMonitorItemsWithCallback(request *DescribeMonitorItemsRequest, callback func(response *DescribeMonitorItemsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeMonitorItemsResponse + var err error + defer close(result) + response, err = client.DescribeMonitorItems(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeMonitorItemsRequest is the request struct for api DescribeMonitorItems +type DescribeMonitorItemsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeMonitorItemsResponse is the response struct for api DescribeMonitorItems +type DescribeMonitorItemsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MonitorItems MonitorItems `json:"MonitorItems" xml:"MonitorItems"` +} + +// CreateDescribeMonitorItemsRequest creates a request to invoke DescribeMonitorItems API +func CreateDescribeMonitorItemsRequest() (request *DescribeMonitorItemsRequest) { + request = &DescribeMonitorItemsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeMonitorItems", "redisa", "openAPI") + return +} + +// CreateDescribeMonitorItemsResponse creates a response to parse from DescribeMonitorItems response +func CreateDescribeMonitorItemsResponse() (response *DescribeMonitorItemsResponse) { + response = &DescribeMonitorItemsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_monthly_service_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_monthly_service_status.go new file mode 100644 index 0000000..3c78163 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_monthly_service_status.go @@ -0,0 +1,111 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeMonthlyServiceStatus invokes the r_kvstore.DescribeMonthlyServiceStatus API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describemonthlyservicestatus.html +func (client *Client) DescribeMonthlyServiceStatus(request *DescribeMonthlyServiceStatusRequest) (response *DescribeMonthlyServiceStatusResponse, err error) { + response = CreateDescribeMonthlyServiceStatusResponse() + err = client.DoAction(request, response) + return +} + +// DescribeMonthlyServiceStatusWithChan invokes the r_kvstore.DescribeMonthlyServiceStatus API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describemonthlyservicestatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMonthlyServiceStatusWithChan(request *DescribeMonthlyServiceStatusRequest) (<-chan *DescribeMonthlyServiceStatusResponse, <-chan error) { + responseChan := make(chan *DescribeMonthlyServiceStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeMonthlyServiceStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeMonthlyServiceStatusWithCallback invokes the r_kvstore.DescribeMonthlyServiceStatus API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describemonthlyservicestatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMonthlyServiceStatusWithCallback(request *DescribeMonthlyServiceStatusRequest, callback func(response *DescribeMonthlyServiceStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeMonthlyServiceStatusResponse + var err error + defer close(result) + response, err = client.DescribeMonthlyServiceStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeMonthlyServiceStatusRequest is the request struct for api DescribeMonthlyServiceStatus +type DescribeMonthlyServiceStatusRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Month string `position:"Query" name:"Month"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + InstanceIds string `position:"Query" name:"InstanceIds"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeMonthlyServiceStatusResponse is the response struct for api DescribeMonthlyServiceStatus +type DescribeMonthlyServiceStatusResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + InstanceSLAInfos InstanceSLAInfos `json:"InstanceSLAInfos" xml:"InstanceSLAInfos"` +} + +// CreateDescribeMonthlyServiceStatusRequest creates a request to invoke DescribeMonthlyServiceStatus API +func CreateDescribeMonthlyServiceStatusRequest() (request *DescribeMonthlyServiceStatusRequest) { + request = &DescribeMonthlyServiceStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeMonthlyServiceStatus", "redisa", "openAPI") + return +} + +// CreateDescribeMonthlyServiceStatusResponse creates a response to parse from DescribeMonthlyServiceStatus response +func CreateDescribeMonthlyServiceStatusResponse() (response *DescribeMonthlyServiceStatusResponse) { + response = &DescribeMonthlyServiceStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_monthly_service_status_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_monthly_service_status_detail.go new file mode 100644 index 0000000..ba78afd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_monthly_service_status_detail.go @@ -0,0 +1,112 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeMonthlyServiceStatusDetail invokes the r_kvstore.DescribeMonthlyServiceStatusDetail API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describemonthlyservicestatusdetail.html +func (client *Client) DescribeMonthlyServiceStatusDetail(request *DescribeMonthlyServiceStatusDetailRequest) (response *DescribeMonthlyServiceStatusDetailResponse, err error) { + response = CreateDescribeMonthlyServiceStatusDetailResponse() + err = client.DoAction(request, response) + return +} + +// DescribeMonthlyServiceStatusDetailWithChan invokes the r_kvstore.DescribeMonthlyServiceStatusDetail API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describemonthlyservicestatusdetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMonthlyServiceStatusDetailWithChan(request *DescribeMonthlyServiceStatusDetailRequest) (<-chan *DescribeMonthlyServiceStatusDetailResponse, <-chan error) { + responseChan := make(chan *DescribeMonthlyServiceStatusDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeMonthlyServiceStatusDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeMonthlyServiceStatusDetailWithCallback invokes the r_kvstore.DescribeMonthlyServiceStatusDetail API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describemonthlyservicestatusdetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMonthlyServiceStatusDetailWithCallback(request *DescribeMonthlyServiceStatusDetailRequest, callback func(response *DescribeMonthlyServiceStatusDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeMonthlyServiceStatusDetailResponse + var err error + defer close(result) + response, err = client.DescribeMonthlyServiceStatusDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeMonthlyServiceStatusDetailRequest is the request struct for api DescribeMonthlyServiceStatusDetail +type DescribeMonthlyServiceStatusDetailRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + Month string `position:"Query" name:"Month"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeMonthlyServiceStatusDetailResponse is the response struct for api DescribeMonthlyServiceStatusDetail +type DescribeMonthlyServiceStatusDetailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + UptimePct float64 `json:"UptimePct" xml:"UptimePct"` + AffectedInfos AffectedInfos `json:"AffectedInfos" xml:"AffectedInfos"` +} + +// CreateDescribeMonthlyServiceStatusDetailRequest creates a request to invoke DescribeMonthlyServiceStatusDetail API +func CreateDescribeMonthlyServiceStatusDetailRequest() (request *DescribeMonthlyServiceStatusDetailRequest) { + request = &DescribeMonthlyServiceStatusDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeMonthlyServiceStatusDetail", "redisa", "openAPI") + return +} + +// CreateDescribeMonthlyServiceStatusDetailResponse creates a response to parse from DescribeMonthlyServiceStatusDetail response +func CreateDescribeMonthlyServiceStatusDetailResponse() (response *DescribeMonthlyServiceStatusDetailResponse) { + response = &DescribeMonthlyServiceStatusDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_rds_v_switchs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_rds_v_switchs.go new file mode 100644 index 0000000..d1b7cea --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_rds_v_switchs.go @@ -0,0 +1,110 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRdsVSwitchs invokes the r_kvstore.DescribeRdsVSwitchs API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describerdsvswitchs.html +func (client *Client) DescribeRdsVSwitchs(request *DescribeRdsVSwitchsRequest) (response *DescribeRdsVSwitchsResponse, err error) { + response = CreateDescribeRdsVSwitchsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRdsVSwitchsWithChan invokes the r_kvstore.DescribeRdsVSwitchs API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describerdsvswitchs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRdsVSwitchsWithChan(request *DescribeRdsVSwitchsRequest) (<-chan *DescribeRdsVSwitchsResponse, <-chan error) { + responseChan := make(chan *DescribeRdsVSwitchsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRdsVSwitchs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRdsVSwitchsWithCallback invokes the r_kvstore.DescribeRdsVSwitchs API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describerdsvswitchs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRdsVSwitchsWithCallback(request *DescribeRdsVSwitchsRequest, callback func(response *DescribeRdsVSwitchsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRdsVSwitchsResponse + var err error + defer close(result) + response, err = client.DescribeRdsVSwitchs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRdsVSwitchsRequest is the request struct for api DescribeRdsVSwitchs +type DescribeRdsVSwitchsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + VpcId string `position:"Query" name:"VpcId"` + ZoneId string `position:"Query" name:"ZoneId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeRdsVSwitchsResponse is the response struct for api DescribeRdsVSwitchs +type DescribeRdsVSwitchsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VSwitches VSwitches `json:"VSwitches" xml:"VSwitches"` +} + +// CreateDescribeRdsVSwitchsRequest creates a request to invoke DescribeRdsVSwitchs API +func CreateDescribeRdsVSwitchsRequest() (request *DescribeRdsVSwitchsRequest) { + request = &DescribeRdsVSwitchsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeRdsVSwitchs", "redisa", "openAPI") + return +} + +// CreateDescribeRdsVSwitchsResponse creates a response to parse from DescribeRdsVSwitchs response +func CreateDescribeRdsVSwitchsResponse() (response *DescribeRdsVSwitchsResponse) { + response = &DescribeRdsVSwitchsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_rds_vpcs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_rds_vpcs.go new file mode 100644 index 0000000..f7d8a27 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_rds_vpcs.go @@ -0,0 +1,109 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRdsVpcs invokes the r_kvstore.DescribeRdsVpcs API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describerdsvpcs.html +func (client *Client) DescribeRdsVpcs(request *DescribeRdsVpcsRequest) (response *DescribeRdsVpcsResponse, err error) { + response = CreateDescribeRdsVpcsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRdsVpcsWithChan invokes the r_kvstore.DescribeRdsVpcs API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describerdsvpcs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRdsVpcsWithChan(request *DescribeRdsVpcsRequest) (<-chan *DescribeRdsVpcsResponse, <-chan error) { + responseChan := make(chan *DescribeRdsVpcsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRdsVpcs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRdsVpcsWithCallback invokes the r_kvstore.DescribeRdsVpcs API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describerdsvpcs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRdsVpcsWithCallback(request *DescribeRdsVpcsRequest, callback func(response *DescribeRdsVpcsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRdsVpcsResponse + var err error + defer close(result) + response, err = client.DescribeRdsVpcs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRdsVpcsRequest is the request struct for api DescribeRdsVpcs +type DescribeRdsVpcsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ZoneId string `position:"Query" name:"ZoneId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeRdsVpcsResponse is the response struct for api DescribeRdsVpcs +type DescribeRdsVpcsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Vpcs Vpcs `json:"Vpcs" xml:"Vpcs"` +} + +// CreateDescribeRdsVpcsRequest creates a request to invoke DescribeRdsVpcs API +func CreateDescribeRdsVpcsRequest() (request *DescribeRdsVpcsRequest) { + request = &DescribeRdsVpcsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeRdsVpcs", "redisa", "openAPI") + return +} + +// CreateDescribeRdsVpcsResponse creates a response to parse from DescribeRdsVpcs response +func CreateDescribeRdsVpcsResponse() (response *DescribeRdsVpcsResponse) { + response = &DescribeRdsVpcsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_regions.go new file mode 100644 index 0000000..42fdda0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_regions.go @@ -0,0 +1,108 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 r_kvstore.DescribeRegions API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describeregions.html +func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) { + response = CreateDescribeRegionsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRegionsWithChan invokes the r_kvstore.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 r_kvstore.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeRegionsResponse is the response struct for api DescribeRegions +type DescribeRegionsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegionIds RegionIds `json:"RegionIds" xml:"RegionIds"` +} + +// CreateDescribeRegionsRequest creates a request to invoke DescribeRegions API +func CreateDescribeRegionsRequest() (request *DescribeRegionsRequest) { + request = &DescribeRegionsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeRegions", "redisa", "openAPI") + 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/r-kvstore/describe_replica_conflict_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_replica_conflict_info.go new file mode 100644 index 0000000..8598be2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_replica_conflict_info.go @@ -0,0 +1,117 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeReplicaConflictInfo invokes the r_kvstore.DescribeReplicaConflictInfo API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describereplicaconflictinfo.html +func (client *Client) DescribeReplicaConflictInfo(request *DescribeReplicaConflictInfoRequest) (response *DescribeReplicaConflictInfoResponse, err error) { + response = CreateDescribeReplicaConflictInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeReplicaConflictInfoWithChan invokes the r_kvstore.DescribeReplicaConflictInfo API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describereplicaconflictinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReplicaConflictInfoWithChan(request *DescribeReplicaConflictInfoRequest) (<-chan *DescribeReplicaConflictInfoResponse, <-chan error) { + responseChan := make(chan *DescribeReplicaConflictInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeReplicaConflictInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeReplicaConflictInfoWithCallback invokes the r_kvstore.DescribeReplicaConflictInfo API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describereplicaconflictinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReplicaConflictInfoWithCallback(request *DescribeReplicaConflictInfoRequest, callback func(response *DescribeReplicaConflictInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeReplicaConflictInfoResponse + var err error + defer close(result) + response, err = client.DescribeReplicaConflictInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeReplicaConflictInfoRequest is the request struct for api DescribeReplicaConflictInfo +type DescribeReplicaConflictInfoRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ReplicaId string `position:"Query" name:"ReplicaId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeReplicaConflictInfoResponse is the response struct for api DescribeReplicaConflictInfo +type DescribeReplicaConflictInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ReplicaId string `json:"ReplicaId" xml:"ReplicaId"` + PagNumber int `json:"PagNumber" xml:"PagNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + Items []ItemsItem `json:"Items" xml:"Items"` +} + +// CreateDescribeReplicaConflictInfoRequest creates a request to invoke DescribeReplicaConflictInfo API +func CreateDescribeReplicaConflictInfoRequest() (request *DescribeReplicaConflictInfoRequest) { + request = &DescribeReplicaConflictInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeReplicaConflictInfo", "redisa", "openAPI") + return +} + +// CreateDescribeReplicaConflictInfoResponse creates a response to parse from DescribeReplicaConflictInfo response +func CreateDescribeReplicaConflictInfoResponse() (response *DescribeReplicaConflictInfoResponse) { + response = &DescribeReplicaConflictInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_replica_initialize_progress.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_replica_initialize_progress.go new file mode 100644 index 0000000..592abf1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_replica_initialize_progress.go @@ -0,0 +1,109 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeReplicaInitializeProgress invokes the r_kvstore.DescribeReplicaInitializeProgress API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describereplicainitializeprogress.html +func (client *Client) DescribeReplicaInitializeProgress(request *DescribeReplicaInitializeProgressRequest) (response *DescribeReplicaInitializeProgressResponse, err error) { + response = CreateDescribeReplicaInitializeProgressResponse() + err = client.DoAction(request, response) + return +} + +// DescribeReplicaInitializeProgressWithChan invokes the r_kvstore.DescribeReplicaInitializeProgress API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describereplicainitializeprogress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReplicaInitializeProgressWithChan(request *DescribeReplicaInitializeProgressRequest) (<-chan *DescribeReplicaInitializeProgressResponse, <-chan error) { + responseChan := make(chan *DescribeReplicaInitializeProgressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeReplicaInitializeProgress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeReplicaInitializeProgressWithCallback invokes the r_kvstore.DescribeReplicaInitializeProgress API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describereplicainitializeprogress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReplicaInitializeProgressWithCallback(request *DescribeReplicaInitializeProgressRequest, callback func(response *DescribeReplicaInitializeProgressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeReplicaInitializeProgressResponse + var err error + defer close(result) + response, err = client.DescribeReplicaInitializeProgress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeReplicaInitializeProgressRequest is the request struct for api DescribeReplicaInitializeProgress +type DescribeReplicaInitializeProgressRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeReplicaInitializeProgressResponse is the response struct for api DescribeReplicaInitializeProgress +type DescribeReplicaInitializeProgressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Items []ItemsItem `json:"Items" xml:"Items"` +} + +// CreateDescribeReplicaInitializeProgressRequest creates a request to invoke DescribeReplicaInitializeProgress API +func CreateDescribeReplicaInitializeProgressRequest() (request *DescribeReplicaInitializeProgressRequest) { + request = &DescribeReplicaInitializeProgressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeReplicaInitializeProgress", "redisa", "openAPI") + return +} + +// CreateDescribeReplicaInitializeProgressResponse creates a response to parse from DescribeReplicaInitializeProgress response +func CreateDescribeReplicaInitializeProgressResponse() (response *DescribeReplicaInitializeProgressResponse) { + response = &DescribeReplicaInitializeProgressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_replica_performance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_replica_performance.go new file mode 100644 index 0000000..20391da --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_replica_performance.go @@ -0,0 +1,116 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeReplicaPerformance invokes the r_kvstore.DescribeReplicaPerformance API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describereplicaperformance.html +func (client *Client) DescribeReplicaPerformance(request *DescribeReplicaPerformanceRequest) (response *DescribeReplicaPerformanceResponse, err error) { + response = CreateDescribeReplicaPerformanceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeReplicaPerformanceWithChan invokes the r_kvstore.DescribeReplicaPerformance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describereplicaperformance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReplicaPerformanceWithChan(request *DescribeReplicaPerformanceRequest) (<-chan *DescribeReplicaPerformanceResponse, <-chan error) { + responseChan := make(chan *DescribeReplicaPerformanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeReplicaPerformance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeReplicaPerformanceWithCallback invokes the r_kvstore.DescribeReplicaPerformance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describereplicaperformance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReplicaPerformanceWithCallback(request *DescribeReplicaPerformanceRequest, callback func(response *DescribeReplicaPerformanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeReplicaPerformanceResponse + var err error + defer close(result) + response, err = client.DescribeReplicaPerformance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeReplicaPerformanceRequest is the request struct for api DescribeReplicaPerformance +type DescribeReplicaPerformanceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SourceDBInstanceId string `position:"Query" name:"SourceDBInstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ReplicaId string `position:"Query" name:"ReplicaId"` + Key string `position:"Query" name:"Key"` +} + +// DescribeReplicaPerformanceResponse is the response struct for api DescribeReplicaPerformance +type DescribeReplicaPerformanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + ReplicaId string `json:"ReplicaId" xml:"ReplicaId"` + PerformanceKeys PerformanceKeys `json:"PerformanceKeys" xml:"PerformanceKeys"` +} + +// CreateDescribeReplicaPerformanceRequest creates a request to invoke DescribeReplicaPerformance API +func CreateDescribeReplicaPerformanceRequest() (request *DescribeReplicaPerformanceRequest) { + request = &DescribeReplicaPerformanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeReplicaPerformance", "redisa", "openAPI") + return +} + +// CreateDescribeReplicaPerformanceResponse creates a response to parse from DescribeReplicaPerformance response +func CreateDescribeReplicaPerformanceResponse() (response *DescribeReplicaPerformanceResponse) { + response = &DescribeReplicaPerformanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_replica_usage.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_replica_usage.go new file mode 100644 index 0000000..111411a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_replica_usage.go @@ -0,0 +1,113 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeReplicaUsage invokes the r_kvstore.DescribeReplicaUsage API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describereplicausage.html +func (client *Client) DescribeReplicaUsage(request *DescribeReplicaUsageRequest) (response *DescribeReplicaUsageResponse, err error) { + response = CreateDescribeReplicaUsageResponse() + err = client.DoAction(request, response) + return +} + +// DescribeReplicaUsageWithChan invokes the r_kvstore.DescribeReplicaUsage API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describereplicausage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReplicaUsageWithChan(request *DescribeReplicaUsageRequest) (<-chan *DescribeReplicaUsageResponse, <-chan error) { + responseChan := make(chan *DescribeReplicaUsageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeReplicaUsage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeReplicaUsageWithCallback invokes the r_kvstore.DescribeReplicaUsage API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describereplicausage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReplicaUsageWithCallback(request *DescribeReplicaUsageRequest, callback func(response *DescribeReplicaUsageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeReplicaUsageResponse + var err error + defer close(result) + response, err = client.DescribeReplicaUsage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeReplicaUsageRequest is the request struct for api DescribeReplicaUsage +type DescribeReplicaUsageRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SourceDBInstanceId string `position:"Query" name:"SourceDBInstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeReplicaUsageResponse is the response struct for api DescribeReplicaUsage +type DescribeReplicaUsageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + ReplicaId string `json:"ReplicaId" xml:"ReplicaId"` + PerformanceKeys PerformanceKeys `json:"PerformanceKeys" xml:"PerformanceKeys"` +} + +// CreateDescribeReplicaUsageRequest creates a request to invoke DescribeReplicaUsage API +func CreateDescribeReplicaUsageRequest() (request *DescribeReplicaUsageRequest) { + request = &DescribeReplicaUsageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeReplicaUsage", "redisa", "openAPI") + return +} + +// CreateDescribeReplicaUsageResponse creates a response to parse from DescribeReplicaUsage response +func CreateDescribeReplicaUsageResponse() (response *DescribeReplicaUsageResponse) { + response = &DescribeReplicaUsageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_replicas.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_replicas.go new file mode 100644 index 0000000..6370dc2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_replicas.go @@ -0,0 +1,114 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeReplicas invokes the r_kvstore.DescribeReplicas API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describereplicas.html +func (client *Client) DescribeReplicas(request *DescribeReplicasRequest) (response *DescribeReplicasResponse, err error) { + response = CreateDescribeReplicasResponse() + err = client.DoAction(request, response) + return +} + +// DescribeReplicasWithChan invokes the r_kvstore.DescribeReplicas API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describereplicas.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReplicasWithChan(request *DescribeReplicasRequest) (<-chan *DescribeReplicasResponse, <-chan error) { + responseChan := make(chan *DescribeReplicasResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeReplicas(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeReplicasWithCallback invokes the r_kvstore.DescribeReplicas API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describereplicas.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReplicasWithCallback(request *DescribeReplicasRequest, callback func(response *DescribeReplicasResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeReplicasResponse + var err error + defer close(result) + response, err = client.DescribeReplicas(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeReplicasRequest is the request struct for api DescribeReplicas +type DescribeReplicasRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeReplicasResponse is the response struct for api DescribeReplicas +type DescribeReplicasResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber string `json:"PageNumber" xml:"PageNumber"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Replicas []Items `json:"Replicas" xml:"Replicas"` +} + +// CreateDescribeReplicasRequest creates a request to invoke DescribeReplicas API +func CreateDescribeReplicasRequest() (request *DescribeReplicasRequest) { + request = &DescribeReplicasRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeReplicas", "redisa", "openAPI") + return +} + +// CreateDescribeReplicasResponse creates a response to parse from DescribeReplicas response +func CreateDescribeReplicasResponse() (response *DescribeReplicasResponse) { + response = &DescribeReplicasResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_security_ips.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_security_ips.go new file mode 100644 index 0000000..2bea083 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_security_ips.go @@ -0,0 +1,109 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSecurityIps invokes the r_kvstore.DescribeSecurityIps API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describesecurityips.html +func (client *Client) DescribeSecurityIps(request *DescribeSecurityIpsRequest) (response *DescribeSecurityIpsResponse, err error) { + response = CreateDescribeSecurityIpsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSecurityIpsWithChan invokes the r_kvstore.DescribeSecurityIps API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describesecurityips.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSecurityIpsWithChan(request *DescribeSecurityIpsRequest) (<-chan *DescribeSecurityIpsResponse, <-chan error) { + responseChan := make(chan *DescribeSecurityIpsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSecurityIps(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSecurityIpsWithCallback invokes the r_kvstore.DescribeSecurityIps API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describesecurityips.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSecurityIpsWithCallback(request *DescribeSecurityIpsRequest, callback func(response *DescribeSecurityIpsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSecurityIpsResponse + var err error + defer close(result) + response, err = client.DescribeSecurityIps(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSecurityIpsRequest is the request struct for api DescribeSecurityIps +type DescribeSecurityIpsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeSecurityIpsResponse is the response struct for api DescribeSecurityIps +type DescribeSecurityIpsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SecurityIpGroups SecurityIpGroups `json:"SecurityIpGroups" xml:"SecurityIpGroups"` +} + +// CreateDescribeSecurityIpsRequest creates a request to invoke DescribeSecurityIps API +func CreateDescribeSecurityIpsRequest() (request *DescribeSecurityIpsRequest) { + request = &DescribeSecurityIpsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeSecurityIps", "redisa", "openAPI") + return +} + +// CreateDescribeSecurityIpsResponse creates a response to parse from DescribeSecurityIps response +func CreateDescribeSecurityIpsResponse() (response *DescribeSecurityIpsResponse) { + response = &DescribeSecurityIpsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_snapshots.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_snapshots.go new file mode 100644 index 0000000..c2ed2ad --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_snapshots.go @@ -0,0 +1,109 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSnapshots invokes the r_kvstore.DescribeSnapshots API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describesnapshots.html +func (client *Client) DescribeSnapshots(request *DescribeSnapshotsRequest) (response *DescribeSnapshotsResponse, err error) { + response = CreateDescribeSnapshotsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSnapshotsWithChan invokes the r_kvstore.DescribeSnapshots API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describesnapshots.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSnapshotsWithChan(request *DescribeSnapshotsRequest) (<-chan *DescribeSnapshotsResponse, <-chan error) { + responseChan := make(chan *DescribeSnapshotsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSnapshots(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSnapshotsWithCallback invokes the r_kvstore.DescribeSnapshots API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describesnapshots.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSnapshotsWithCallback(request *DescribeSnapshotsRequest, callback func(response *DescribeSnapshotsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSnapshotsResponse + var err error + defer close(result) + response, err = client.DescribeSnapshots(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSnapshotsRequest is the request struct for api DescribeSnapshots +type DescribeSnapshotsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EndTime string `position:"Query" name:"EndTime"` + BeginTime string `position:"Query" name:"BeginTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeSnapshotsResponse is the response struct for api DescribeSnapshots +type DescribeSnapshotsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Snapshots Snapshots `json:"Snapshots" xml:"Snapshots"` +} + +// CreateDescribeSnapshotsRequest creates a request to invoke DescribeSnapshots API +func CreateDescribeSnapshotsRequest() (request *DescribeSnapshotsRequest) { + request = &DescribeSnapshotsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeSnapshots", "redisa", "openAPI") + return +} + +// CreateDescribeSnapshotsResponse creates a response to parse from DescribeSnapshots response +func CreateDescribeSnapshotsResponse() (response *DescribeSnapshotsResponse) { + response = &DescribeSnapshotsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_static_verification_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_static_verification_list.go new file mode 100644 index 0000000..d73bfff --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_static_verification_list.go @@ -0,0 +1,123 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeStaticVerificationList invokes the r_kvstore.DescribeStaticVerificationList API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describestaticverificationlist.html +func (client *Client) DescribeStaticVerificationList(request *DescribeStaticVerificationListRequest) (response *DescribeStaticVerificationListResponse, err error) { + response = CreateDescribeStaticVerificationListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeStaticVerificationListWithChan invokes the r_kvstore.DescribeStaticVerificationList API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describestaticverificationlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeStaticVerificationListWithChan(request *DescribeStaticVerificationListRequest) (<-chan *DescribeStaticVerificationListResponse, <-chan error) { + responseChan := make(chan *DescribeStaticVerificationListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeStaticVerificationList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeStaticVerificationListWithCallback invokes the r_kvstore.DescribeStaticVerificationList API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describestaticverificationlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeStaticVerificationListWithCallback(request *DescribeStaticVerificationListRequest, callback func(response *DescribeStaticVerificationListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeStaticVerificationListResponse + var err error + defer close(result) + response, err = client.DescribeStaticVerificationList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeStaticVerificationListRequest is the request struct for api DescribeStaticVerificationList +type DescribeStaticVerificationListRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + DestinationInstanceId string `position:"Query" name:"DestinationInstanceId"` + SourceInstanceId string `position:"Query" name:"SourceInstanceId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeStaticVerificationListResponse is the response struct for api DescribeStaticVerificationList +type DescribeStaticVerificationListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ReplicaId string `json:"ReplicaId" xml:"ReplicaId"` + SourceInstanceId string `json:"SourceInstanceId" xml:"SourceInstanceId"` + SourceDBNumber int `json:"SourceDBNumber" xml:"SourceDBNumber"` + SourceTableNumber int `json:"SourceTableNumber" xml:"SourceTableNumber"` + SourceCountNumber int `json:"SourceCountNumber" xml:"SourceCountNumber"` + SourceDBSize int `json:"SourceDBSize" xml:"SourceDBSize"` + DestinationInstanceId string `json:"DestinationInstanceId" xml:"DestinationInstanceId"` + DestinationDBNumber int `json:"DestinationDBNumber" xml:"DestinationDBNumber"` + DestinationTableNumber int `json:"DestinationTableNumber" xml:"DestinationTableNumber"` + DestinationCountNumber int `json:"DestinationCountNumber" xml:"DestinationCountNumber"` + DestinationDBSize int `json:"DestinationDBSize" xml:"DestinationDBSize"` + ConsistencyPercent string `json:"ConsistencyPercent" xml:"ConsistencyPercent"` + Items []ItemsItem `json:"Items" xml:"Items"` +} + +// CreateDescribeStaticVerificationListRequest creates a request to invoke DescribeStaticVerificationList API +func CreateDescribeStaticVerificationListRequest() (request *DescribeStaticVerificationListRequest) { + request = &DescribeStaticVerificationListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeStaticVerificationList", "redisa", "openAPI") + return +} + +// CreateDescribeStaticVerificationListResponse creates a response to parse from DescribeStaticVerificationList response +func CreateDescribeStaticVerificationListResponse() (response *DescribeStaticVerificationListResponse) { + response = &DescribeStaticVerificationListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_strategy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_strategy.go new file mode 100644 index 0000000..8821758 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_strategy.go @@ -0,0 +1,111 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeStrategy invokes the r_kvstore.DescribeStrategy API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describestrategy.html +func (client *Client) DescribeStrategy(request *DescribeStrategyRequest) (response *DescribeStrategyResponse, err error) { + response = CreateDescribeStrategyResponse() + err = client.DoAction(request, response) + return +} + +// DescribeStrategyWithChan invokes the r_kvstore.DescribeStrategy API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describestrategy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeStrategyWithChan(request *DescribeStrategyRequest) (<-chan *DescribeStrategyResponse, <-chan error) { + responseChan := make(chan *DescribeStrategyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeStrategy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeStrategyWithCallback invokes the r_kvstore.DescribeStrategy API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describestrategy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeStrategyWithCallback(request *DescribeStrategyRequest, callback func(response *DescribeStrategyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeStrategyResponse + var err error + defer close(result) + response, err = client.DescribeStrategy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeStrategyRequest is the request struct for api DescribeStrategy +type DescribeStrategyRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeStrategyResponse is the response struct for api DescribeStrategy +type DescribeStrategyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ReplicaId string `json:"ReplicaId" xml:"ReplicaId"` + RecoveryMode string `json:"RecoveryMode" xml:"RecoveryMode"` + VerificationMode string `json:"VerificationMode" xml:"VerificationMode"` +} + +// CreateDescribeStrategyRequest creates a request to invoke DescribeStrategy API +func CreateDescribeStrategyRequest() (request *DescribeStrategyRequest) { + request = &DescribeStrategyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeStrategy", "redisa", "openAPI") + return +} + +// CreateDescribeStrategyResponse creates a response to parse from DescribeStrategy response +func CreateDescribeStrategyResponse() (response *DescribeStrategyResponse) { + response = &DescribeStrategyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_temp_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_temp_instance.go new file mode 100644 index 0000000..1642b52 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_temp_instance.go @@ -0,0 +1,107 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeTempInstance invokes the r_kvstore.DescribeTempInstance API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describetempinstance.html +func (client *Client) DescribeTempInstance(request *DescribeTempInstanceRequest) (response *DescribeTempInstanceResponse, err error) { + response = CreateDescribeTempInstanceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeTempInstanceWithChan invokes the r_kvstore.DescribeTempInstance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describetempinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTempInstanceWithChan(request *DescribeTempInstanceRequest) (<-chan *DescribeTempInstanceResponse, <-chan error) { + responseChan := make(chan *DescribeTempInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeTempInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeTempInstanceWithCallback invokes the r_kvstore.DescribeTempInstance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describetempinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTempInstanceWithCallback(request *DescribeTempInstanceRequest, callback func(response *DescribeTempInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeTempInstanceResponse + var err error + defer close(result) + response, err = client.DescribeTempInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeTempInstanceRequest is the request struct for api DescribeTempInstance +type DescribeTempInstanceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeTempInstanceResponse is the response struct for api DescribeTempInstance +type DescribeTempInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TempInstances TempInstances `json:"TempInstances" xml:"TempInstances"` +} + +// CreateDescribeTempInstanceRequest creates a request to invoke DescribeTempInstance API +func CreateDescribeTempInstanceRequest() (request *DescribeTempInstanceRequest) { + request = &DescribeTempInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeTempInstance", "redisa", "openAPI") + return +} + +// CreateDescribeTempInstanceResponse creates a response to parse from DescribeTempInstance response +func CreateDescribeTempInstanceResponse() (response *DescribeTempInstanceResponse) { + response = &DescribeTempInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_verification_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_verification_list.go new file mode 100644 index 0000000..a233170 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/describe_verification_list.go @@ -0,0 +1,117 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVerificationList invokes the r_kvstore.DescribeVerificationList API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/describeverificationlist.html +func (client *Client) DescribeVerificationList(request *DescribeVerificationListRequest) (response *DescribeVerificationListResponse, err error) { + response = CreateDescribeVerificationListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVerificationListWithChan invokes the r_kvstore.DescribeVerificationList API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describeverificationlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVerificationListWithChan(request *DescribeVerificationListRequest) (<-chan *DescribeVerificationListResponse, <-chan error) { + responseChan := make(chan *DescribeVerificationListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVerificationList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVerificationListWithCallback invokes the r_kvstore.DescribeVerificationList API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/describeverificationlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVerificationListWithCallback(request *DescribeVerificationListRequest, callback func(response *DescribeVerificationListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVerificationListResponse + var err error + defer close(result) + response, err = client.DescribeVerificationList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVerificationListRequest is the request struct for api DescribeVerificationList +type DescribeVerificationListRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ReplicaId string `position:"Query" name:"ReplicaId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeVerificationListResponse is the response struct for api DescribeVerificationList +type DescribeVerificationListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ReplicaId string `json:"ReplicaId" xml:"ReplicaId"` + PagNumber int `json:"PagNumber" xml:"PagNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + Items []ItemsItem `json:"Items" xml:"Items"` +} + +// CreateDescribeVerificationListRequest creates a request to invoke DescribeVerificationList API +func CreateDescribeVerificationListRequest() (request *DescribeVerificationListRequest) { + request = &DescribeVerificationListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "DescribeVerificationList", "redisa", "openAPI") + return +} + +// CreateDescribeVerificationListResponse creates a response to parse from DescribeVerificationList response +func CreateDescribeVerificationListResponse() (response *DescribeVerificationListResponse) { + response = &DescribeVerificationListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/flush_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/flush_instance.go new file mode 100644 index 0000000..51023a9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/flush_instance.go @@ -0,0 +1,108 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// FlushInstance invokes the r_kvstore.FlushInstance API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/flushinstance.html +func (client *Client) FlushInstance(request *FlushInstanceRequest) (response *FlushInstanceResponse, err error) { + response = CreateFlushInstanceResponse() + err = client.DoAction(request, response) + return +} + +// FlushInstanceWithChan invokes the r_kvstore.FlushInstance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/flushinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FlushInstanceWithChan(request *FlushInstanceRequest) (<-chan *FlushInstanceResponse, <-chan error) { + responseChan := make(chan *FlushInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.FlushInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// FlushInstanceWithCallback invokes the r_kvstore.FlushInstance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/flushinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) FlushInstanceWithCallback(request *FlushInstanceRequest, callback func(response *FlushInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *FlushInstanceResponse + var err error + defer close(result) + response, err = client.FlushInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// FlushInstanceRequest is the request struct for api FlushInstance +type FlushInstanceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// FlushInstanceResponse is the response struct for api FlushInstance +type FlushInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateFlushInstanceRequest creates a request to invoke FlushInstance API +func CreateFlushInstanceRequest() (request *FlushInstanceRequest) { + request = &FlushInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "FlushInstance", "redisa", "openAPI") + return +} + +// CreateFlushInstanceResponse creates a response to parse from FlushInstance response +func CreateFlushInstanceResponse() (response *FlushInstanceResponse) { + response = &FlushInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/get_snapshot_settings.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/get_snapshot_settings.go new file mode 100644 index 0000000..e5c565e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/get_snapshot_settings.go @@ -0,0 +1,115 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetSnapshotSettings invokes the r_kvstore.GetSnapshotSettings API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/getsnapshotsettings.html +func (client *Client) GetSnapshotSettings(request *GetSnapshotSettingsRequest) (response *GetSnapshotSettingsResponse, err error) { + response = CreateGetSnapshotSettingsResponse() + err = client.DoAction(request, response) + return +} + +// GetSnapshotSettingsWithChan invokes the r_kvstore.GetSnapshotSettings API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/getsnapshotsettings.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetSnapshotSettingsWithChan(request *GetSnapshotSettingsRequest) (<-chan *GetSnapshotSettingsResponse, <-chan error) { + responseChan := make(chan *GetSnapshotSettingsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetSnapshotSettings(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetSnapshotSettingsWithCallback invokes the r_kvstore.GetSnapshotSettings API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/getsnapshotsettings.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetSnapshotSettingsWithCallback(request *GetSnapshotSettingsRequest, callback func(response *GetSnapshotSettingsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetSnapshotSettingsResponse + var err error + defer close(result) + response, err = client.GetSnapshotSettings(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetSnapshotSettingsRequest is the request struct for api GetSnapshotSettings +type GetSnapshotSettingsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// GetSnapshotSettingsResponse is the response struct for api GetSnapshotSettings +type GetSnapshotSettingsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + BeginHour int `json:"BeginHour" xml:"BeginHour"` + EndHour int `json:"EndHour" xml:"EndHour"` + RetentionDay int `json:"RetentionDay" xml:"RetentionDay"` + MaxAutoSnapshots int `json:"MaxAutoSnapshots" xml:"MaxAutoSnapshots"` + MaxManualSnapshots int `json:"MaxManualSnapshots" xml:"MaxManualSnapshots"` + DayList int `json:"DayList" xml:"DayList"` + NextTime string `json:"NextTime" xml:"NextTime"` +} + +// CreateGetSnapshotSettingsRequest creates a request to invoke GetSnapshotSettings API +func CreateGetSnapshotSettingsRequest() (request *GetSnapshotSettingsRequest) { + request = &GetSnapshotSettingsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "GetSnapshotSettings", "redisa", "openAPI") + return +} + +// CreateGetSnapshotSettingsResponse creates a response to parse from GetSnapshotSettings response +func CreateGetSnapshotSettingsResponse() (response *GetSnapshotSettingsResponse) { + response = &GetSnapshotSettingsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_backup_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_backup_policy.go new file mode 100644 index 0000000..279ba8a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_backup_policy.go @@ -0,0 +1,110 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyBackupPolicy invokes the r_kvstore.ModifyBackupPolicy API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifybackuppolicy.html +func (client *Client) ModifyBackupPolicy(request *ModifyBackupPolicyRequest) (response *ModifyBackupPolicyResponse, err error) { + response = CreateModifyBackupPolicyResponse() + err = client.DoAction(request, response) + return +} + +// ModifyBackupPolicyWithChan invokes the r_kvstore.ModifyBackupPolicy API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifybackuppolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyBackupPolicyWithChan(request *ModifyBackupPolicyRequest) (<-chan *ModifyBackupPolicyResponse, <-chan error) { + responseChan := make(chan *ModifyBackupPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyBackupPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyBackupPolicyWithCallback invokes the r_kvstore.ModifyBackupPolicy API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifybackuppolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyBackupPolicyWithCallback(request *ModifyBackupPolicyRequest, callback func(response *ModifyBackupPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyBackupPolicyResponse + var err error + defer close(result) + response, err = client.ModifyBackupPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyBackupPolicyRequest is the request struct for api ModifyBackupPolicy +type ModifyBackupPolicyRequest struct { + *requests.RpcRequest + PreferredBackupTime string `position:"Query" name:"PreferredBackupTime"` + PreferredBackupPeriod string `position:"Query" name:"PreferredBackupPeriod"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyBackupPolicyResponse is the response struct for api ModifyBackupPolicy +type ModifyBackupPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyBackupPolicyRequest creates a request to invoke ModifyBackupPolicy API +func CreateModifyBackupPolicyRequest() (request *ModifyBackupPolicyRequest) { + request = &ModifyBackupPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "ModifyBackupPolicy", "redisa", "openAPI") + return +} + +// CreateModifyBackupPolicyResponse creates a response to parse from ModifyBackupPolicy response +func CreateModifyBackupPolicyResponse() (response *ModifyBackupPolicyResponse) { + response = &ModifyBackupPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_certification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_certification.go new file mode 100644 index 0000000..f001da6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_certification.go @@ -0,0 +1,109 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyCertification invokes the r_kvstore.ModifyCertification API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifycertification.html +func (client *Client) ModifyCertification(request *ModifyCertificationRequest) (response *ModifyCertificationResponse, err error) { + response = CreateModifyCertificationResponse() + err = client.DoAction(request, response) + return +} + +// ModifyCertificationWithChan invokes the r_kvstore.ModifyCertification API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifycertification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCertificationWithChan(request *ModifyCertificationRequest) (<-chan *ModifyCertificationResponse, <-chan error) { + responseChan := make(chan *ModifyCertificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyCertification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyCertificationWithCallback invokes the r_kvstore.ModifyCertification API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifycertification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCertificationWithCallback(request *ModifyCertificationRequest, callback func(response *ModifyCertificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyCertificationResponse + var err error + defer close(result) + response, err = client.ModifyCertification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyCertificationRequest is the request struct for api ModifyCertification +type ModifyCertificationRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + NoCertification requests.Boolean `position:"Query" name:"NoCertification"` +} + +// ModifyCertificationResponse is the response struct for api ModifyCertification +type ModifyCertificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyCertificationRequest creates a request to invoke ModifyCertification API +func CreateModifyCertificationRequest() (request *ModifyCertificationRequest) { + request = &ModifyCertificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "ModifyCertification", "redisa", "openAPI") + return +} + +// CreateModifyCertificationResponse creates a response to parse from ModifyCertification response +func CreateModifyCertificationResponse() (response *ModifyCertificationResponse) { + response = &ModifyCertificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_guard_domain_mode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_guard_domain_mode.go new file mode 100644 index 0000000..f61c3b2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_guard_domain_mode.go @@ -0,0 +1,109 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyGuardDomainMode invokes the r_kvstore.ModifyGuardDomainMode API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyguarddomainmode.html +func (client *Client) ModifyGuardDomainMode(request *ModifyGuardDomainModeRequest) (response *ModifyGuardDomainModeResponse, err error) { + response = CreateModifyGuardDomainModeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyGuardDomainModeWithChan invokes the r_kvstore.ModifyGuardDomainMode API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyguarddomainmode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyGuardDomainModeWithChan(request *ModifyGuardDomainModeRequest) (<-chan *ModifyGuardDomainModeResponse, <-chan error) { + responseChan := make(chan *ModifyGuardDomainModeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyGuardDomainMode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyGuardDomainModeWithCallback invokes the r_kvstore.ModifyGuardDomainMode API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyguarddomainmode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyGuardDomainModeWithCallback(request *ModifyGuardDomainModeRequest, callback func(response *ModifyGuardDomainModeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyGuardDomainModeResponse + var err error + defer close(result) + response, err = client.ModifyGuardDomainMode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyGuardDomainModeRequest is the request struct for api ModifyGuardDomainMode +type ModifyGuardDomainModeRequest struct { + *requests.RpcRequest + DomainMode string `position:"Query" name:"DomainMode"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyGuardDomainModeResponse is the response struct for api ModifyGuardDomainMode +type ModifyGuardDomainModeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyGuardDomainModeRequest creates a request to invoke ModifyGuardDomainMode API +func CreateModifyGuardDomainModeRequest() (request *ModifyGuardDomainModeRequest) { + request = &ModifyGuardDomainModeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "ModifyGuardDomainMode", "redisa", "openAPI") + return +} + +// CreateModifyGuardDomainModeResponse creates a response to parse from ModifyGuardDomainMode response +func CreateModifyGuardDomainModeResponse() (response *ModifyGuardDomainModeResponse) { + response = &ModifyGuardDomainModeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_attribute.go new file mode 100644 index 0000000..e41eb86 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_attribute.go @@ -0,0 +1,110 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyInstanceAttribute invokes the r_kvstore.ModifyInstanceAttribute API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstanceattribute.html +func (client *Client) ModifyInstanceAttribute(request *ModifyInstanceAttributeRequest) (response *ModifyInstanceAttributeResponse, err error) { + response = CreateModifyInstanceAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyInstanceAttributeWithChan invokes the r_kvstore.ModifyInstanceAttribute API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstanceattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceAttributeWithChan(request *ModifyInstanceAttributeRequest) (<-chan *ModifyInstanceAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyInstanceAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyInstanceAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyInstanceAttributeWithCallback invokes the r_kvstore.ModifyInstanceAttribute API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstanceattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceAttributeWithCallback(request *ModifyInstanceAttributeRequest, callback func(response *ModifyInstanceAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyInstanceAttributeResponse + var err error + defer close(result) + response, err = client.ModifyInstanceAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyInstanceAttributeRequest is the request struct for api ModifyInstanceAttribute +type ModifyInstanceAttributeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + InstanceName string `position:"Query" name:"InstanceName"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + NewPassword string `position:"Query" name:"NewPassword"` +} + +// ModifyInstanceAttributeResponse is the response struct for api ModifyInstanceAttribute +type ModifyInstanceAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyInstanceAttributeRequest creates a request to invoke ModifyInstanceAttribute API +func CreateModifyInstanceAttributeRequest() (request *ModifyInstanceAttributeRequest) { + request = &ModifyInstanceAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "ModifyInstanceAttribute", "redisa", "openAPI") + return +} + +// CreateModifyInstanceAttributeResponse creates a response to parse from ModifyInstanceAttribute response +func CreateModifyInstanceAttributeResponse() (response *ModifyInstanceAttributeResponse) { + response = &ModifyInstanceAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_config.go new file mode 100644 index 0000000..f113f32 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_config.go @@ -0,0 +1,109 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyInstanceConfig invokes the r_kvstore.ModifyInstanceConfig API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstanceconfig.html +func (client *Client) ModifyInstanceConfig(request *ModifyInstanceConfigRequest) (response *ModifyInstanceConfigResponse, err error) { + response = CreateModifyInstanceConfigResponse() + err = client.DoAction(request, response) + return +} + +// ModifyInstanceConfigWithChan invokes the r_kvstore.ModifyInstanceConfig API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstanceconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceConfigWithChan(request *ModifyInstanceConfigRequest) (<-chan *ModifyInstanceConfigResponse, <-chan error) { + responseChan := make(chan *ModifyInstanceConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyInstanceConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyInstanceConfigWithCallback invokes the r_kvstore.ModifyInstanceConfig API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstanceconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceConfigWithCallback(request *ModifyInstanceConfigRequest, callback func(response *ModifyInstanceConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyInstanceConfigResponse + var err error + defer close(result) + response, err = client.ModifyInstanceConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyInstanceConfigRequest is the request struct for api ModifyInstanceConfig +type ModifyInstanceConfigRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Config string `position:"Query" name:"Config"` +} + +// ModifyInstanceConfigResponse is the response struct for api ModifyInstanceConfig +type ModifyInstanceConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyInstanceConfigRequest creates a request to invoke ModifyInstanceConfig API +func CreateModifyInstanceConfigRequest() (request *ModifyInstanceConfigRequest) { + request = &ModifyInstanceConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "ModifyInstanceConfig", "redisa", "openAPI") + return +} + +// CreateModifyInstanceConfigResponse creates a response to parse from ModifyInstanceConfig response +func CreateModifyInstanceConfigResponse() (response *ModifyInstanceConfigResponse) { + response = &ModifyInstanceConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_maintain_time.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_maintain_time.go new file mode 100644 index 0000000..9a2c4f0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_maintain_time.go @@ -0,0 +1,110 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyInstanceMaintainTime invokes the r_kvstore.ModifyInstanceMaintainTime API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstancemaintaintime.html +func (client *Client) ModifyInstanceMaintainTime(request *ModifyInstanceMaintainTimeRequest) (response *ModifyInstanceMaintainTimeResponse, err error) { + response = CreateModifyInstanceMaintainTimeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyInstanceMaintainTimeWithChan invokes the r_kvstore.ModifyInstanceMaintainTime API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstancemaintaintime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceMaintainTimeWithChan(request *ModifyInstanceMaintainTimeRequest) (<-chan *ModifyInstanceMaintainTimeResponse, <-chan error) { + responseChan := make(chan *ModifyInstanceMaintainTimeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyInstanceMaintainTime(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyInstanceMaintainTimeWithCallback invokes the r_kvstore.ModifyInstanceMaintainTime API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstancemaintaintime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceMaintainTimeWithCallback(request *ModifyInstanceMaintainTimeRequest, callback func(response *ModifyInstanceMaintainTimeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyInstanceMaintainTimeResponse + var err error + defer close(result) + response, err = client.ModifyInstanceMaintainTime(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyInstanceMaintainTimeRequest is the request struct for api ModifyInstanceMaintainTime +type ModifyInstanceMaintainTimeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + MaintainStartTime string `position:"Query" name:"MaintainStartTime"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + MaintainEndTime string `position:"Query" name:"MaintainEndTime"` +} + +// ModifyInstanceMaintainTimeResponse is the response struct for api ModifyInstanceMaintainTime +type ModifyInstanceMaintainTimeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyInstanceMaintainTimeRequest creates a request to invoke ModifyInstanceMaintainTime API +func CreateModifyInstanceMaintainTimeRequest() (request *ModifyInstanceMaintainTimeRequest) { + request = &ModifyInstanceMaintainTimeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "ModifyInstanceMaintainTime", "redisa", "openAPI") + return +} + +// CreateModifyInstanceMaintainTimeResponse creates a response to parse from ModifyInstanceMaintainTime response +func CreateModifyInstanceMaintainTimeResponse() (response *ModifyInstanceMaintainTimeResponse) { + response = &ModifyInstanceMaintainTimeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_minor_version.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_minor_version.go new file mode 100644 index 0000000..c52fe2f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_minor_version.go @@ -0,0 +1,109 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyInstanceMinorVersion invokes the r_kvstore.ModifyInstanceMinorVersion API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstanceminorversion.html +func (client *Client) ModifyInstanceMinorVersion(request *ModifyInstanceMinorVersionRequest) (response *ModifyInstanceMinorVersionResponse, err error) { + response = CreateModifyInstanceMinorVersionResponse() + err = client.DoAction(request, response) + return +} + +// ModifyInstanceMinorVersionWithChan invokes the r_kvstore.ModifyInstanceMinorVersion API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstanceminorversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceMinorVersionWithChan(request *ModifyInstanceMinorVersionRequest) (<-chan *ModifyInstanceMinorVersionResponse, <-chan error) { + responseChan := make(chan *ModifyInstanceMinorVersionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyInstanceMinorVersion(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyInstanceMinorVersionWithCallback invokes the r_kvstore.ModifyInstanceMinorVersion API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstanceminorversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceMinorVersionWithCallback(request *ModifyInstanceMinorVersionRequest, callback func(response *ModifyInstanceMinorVersionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyInstanceMinorVersionResponse + var err error + defer close(result) + response, err = client.ModifyInstanceMinorVersion(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyInstanceMinorVersionRequest is the request struct for api ModifyInstanceMinorVersion +type ModifyInstanceMinorVersionRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Minorversion string `position:"Query" name:"Minorversion"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyInstanceMinorVersionResponse is the response struct for api ModifyInstanceMinorVersion +type ModifyInstanceMinorVersionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyInstanceMinorVersionRequest creates a request to invoke ModifyInstanceMinorVersion API +func CreateModifyInstanceMinorVersionRequest() (request *ModifyInstanceMinorVersionRequest) { + request = &ModifyInstanceMinorVersionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "ModifyInstanceMinorVersion", "redisa", "openAPI") + return +} + +// CreateModifyInstanceMinorVersionResponse creates a response to parse from ModifyInstanceMinorVersion response +func CreateModifyInstanceMinorVersionResponse() (response *ModifyInstanceMinorVersionResponse) { + response = &ModifyInstanceMinorVersionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_net_expire_time.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_net_expire_time.go new file mode 100644 index 0000000..5909df4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_net_expire_time.go @@ -0,0 +1,112 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyInstanceNetExpireTime invokes the r_kvstore.ModifyInstanceNetExpireTime API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstancenetexpiretime.html +func (client *Client) ModifyInstanceNetExpireTime(request *ModifyInstanceNetExpireTimeRequest) (response *ModifyInstanceNetExpireTimeResponse, err error) { + response = CreateModifyInstanceNetExpireTimeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyInstanceNetExpireTimeWithChan invokes the r_kvstore.ModifyInstanceNetExpireTime API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstancenetexpiretime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceNetExpireTimeWithChan(request *ModifyInstanceNetExpireTimeRequest) (<-chan *ModifyInstanceNetExpireTimeResponse, <-chan error) { + responseChan := make(chan *ModifyInstanceNetExpireTimeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyInstanceNetExpireTime(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyInstanceNetExpireTimeWithCallback invokes the r_kvstore.ModifyInstanceNetExpireTime API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstancenetexpiretime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceNetExpireTimeWithCallback(request *ModifyInstanceNetExpireTimeRequest, callback func(response *ModifyInstanceNetExpireTimeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyInstanceNetExpireTimeResponse + var err error + defer close(result) + response, err = client.ModifyInstanceNetExpireTime(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyInstanceNetExpireTimeRequest is the request struct for api ModifyInstanceNetExpireTime +type ModifyInstanceNetExpireTimeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ConnectionString string `position:"Query" name:"ConnectionString"` + ClassicExpiredDays requests.Integer `position:"Query" name:"ClassicExpiredDays"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyInstanceNetExpireTimeResponse is the response struct for api ModifyInstanceNetExpireTime +type ModifyInstanceNetExpireTimeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + NetInfoItems NetInfoItemsInModifyInstanceNetExpireTime `json:"NetInfoItems" xml:"NetInfoItems"` +} + +// CreateModifyInstanceNetExpireTimeRequest creates a request to invoke ModifyInstanceNetExpireTime API +func CreateModifyInstanceNetExpireTimeRequest() (request *ModifyInstanceNetExpireTimeRequest) { + request = &ModifyInstanceNetExpireTimeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "ModifyInstanceNetExpireTime", "redisa", "openAPI") + return +} + +// CreateModifyInstanceNetExpireTimeResponse creates a response to parse from ModifyInstanceNetExpireTime response +func CreateModifyInstanceNetExpireTimeResponse() (response *ModifyInstanceNetExpireTimeResponse) { + response = &ModifyInstanceNetExpireTimeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_spec.go new file mode 100644 index 0000000..47290c9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_spec.go @@ -0,0 +1,114 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyInstanceSpec invokes the r_kvstore.ModifyInstanceSpec API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstancespec.html +func (client *Client) ModifyInstanceSpec(request *ModifyInstanceSpecRequest) (response *ModifyInstanceSpecResponse, err error) { + response = CreateModifyInstanceSpecResponse() + err = client.DoAction(request, response) + return +} + +// ModifyInstanceSpecWithChan invokes the r_kvstore.ModifyInstanceSpec API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstancespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceSpecWithChan(request *ModifyInstanceSpecRequest) (<-chan *ModifyInstanceSpecResponse, <-chan error) { + responseChan := make(chan *ModifyInstanceSpecResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyInstanceSpec(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyInstanceSpecWithCallback invokes the r_kvstore.ModifyInstanceSpec API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstancespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceSpecWithCallback(request *ModifyInstanceSpecRequest, callback func(response *ModifyInstanceSpecResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyInstanceSpecResponse + var err error + defer close(result) + response, err = client.ModifyInstanceSpec(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyInstanceSpecRequest is the request struct for api ModifyInstanceSpec +type ModifyInstanceSpecRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + FromApp string `position:"Query" name:"FromApp"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + CouponNo string `position:"Query" name:"CouponNo"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceClass string `position:"Query" name:"InstanceClass"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ForceUpgrade requests.Boolean `position:"Query" name:"ForceUpgrade"` + BusinessInfo string `position:"Query" name:"BusinessInfo"` +} + +// ModifyInstanceSpecResponse is the response struct for api ModifyInstanceSpec +type ModifyInstanceSpecResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + OrderId string `json:"OrderId" xml:"OrderId"` +} + +// CreateModifyInstanceSpecRequest creates a request to invoke ModifyInstanceSpec API +func CreateModifyInstanceSpecRequest() (request *ModifyInstanceSpecRequest) { + request = &ModifyInstanceSpecRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "ModifyInstanceSpec", "redisa", "openAPI") + return +} + +// CreateModifyInstanceSpecResponse creates a response to parse from ModifyInstanceSpec response +func CreateModifyInstanceSpecResponse() (response *ModifyInstanceSpecResponse) { + response = &ModifyInstanceSpecResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_spec_pre_check.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_spec_pre_check.go new file mode 100644 index 0000000..6cedc10 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_spec_pre_check.go @@ -0,0 +1,111 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyInstanceSpecPreCheck invokes the r_kvstore.ModifyInstanceSpecPreCheck API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstancespecprecheck.html +func (client *Client) ModifyInstanceSpecPreCheck(request *ModifyInstanceSpecPreCheckRequest) (response *ModifyInstanceSpecPreCheckResponse, err error) { + response = CreateModifyInstanceSpecPreCheckResponse() + err = client.DoAction(request, response) + return +} + +// ModifyInstanceSpecPreCheckWithChan invokes the r_kvstore.ModifyInstanceSpecPreCheck API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstancespecprecheck.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceSpecPreCheckWithChan(request *ModifyInstanceSpecPreCheckRequest) (<-chan *ModifyInstanceSpecPreCheckResponse, <-chan error) { + responseChan := make(chan *ModifyInstanceSpecPreCheckResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyInstanceSpecPreCheck(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyInstanceSpecPreCheckWithCallback invokes the r_kvstore.ModifyInstanceSpecPreCheck API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstancespecprecheck.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceSpecPreCheckWithCallback(request *ModifyInstanceSpecPreCheckRequest, callback func(response *ModifyInstanceSpecPreCheckResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyInstanceSpecPreCheckResponse + var err error + defer close(result) + response, err = client.ModifyInstanceSpecPreCheck(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyInstanceSpecPreCheckRequest is the request struct for api ModifyInstanceSpecPreCheck +type ModifyInstanceSpecPreCheckRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + TargetInstanceClass string `position:"Query" name:"TargetInstanceClass"` +} + +// ModifyInstanceSpecPreCheckResponse is the response struct for api ModifyInstanceSpecPreCheck +type ModifyInstanceSpecPreCheckResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + IsAllowModify bool `json:"IsAllowModify" xml:"IsAllowModify"` + DisableCommands string `json:"DisableCommands" xml:"DisableCommands"` +} + +// CreateModifyInstanceSpecPreCheckRequest creates a request to invoke ModifyInstanceSpecPreCheck API +func CreateModifyInstanceSpecPreCheckRequest() (request *ModifyInstanceSpecPreCheckRequest) { + request = &ModifyInstanceSpecPreCheckRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "ModifyInstanceSpecPreCheck", "redisa", "openAPI") + return +} + +// CreateModifyInstanceSpecPreCheckResponse creates a response to parse from ModifyInstanceSpecPreCheck response +func CreateModifyInstanceSpecPreCheckResponse() (response *ModifyInstanceSpecPreCheckResponse) { + response = &ModifyInstanceSpecPreCheckResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_ssl.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_ssl.go new file mode 100644 index 0000000..c03c8ce --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_instance_ssl.go @@ -0,0 +1,111 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyInstanceSSL invokes the r_kvstore.ModifyInstanceSSL API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstancessl.html +func (client *Client) ModifyInstanceSSL(request *ModifyInstanceSSLRequest) (response *ModifyInstanceSSLResponse, err error) { + response = CreateModifyInstanceSSLResponse() + err = client.DoAction(request, response) + return +} + +// ModifyInstanceSSLWithChan invokes the r_kvstore.ModifyInstanceSSL API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstancessl.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceSSLWithChan(request *ModifyInstanceSSLRequest) (<-chan *ModifyInstanceSSLResponse, <-chan error) { + responseChan := make(chan *ModifyInstanceSSLResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyInstanceSSL(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyInstanceSSLWithCallback invokes the r_kvstore.ModifyInstanceSSL API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyinstancessl.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceSSLWithCallback(request *ModifyInstanceSSLRequest, callback func(response *ModifyInstanceSSLResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyInstanceSSLResponse + var err error + defer close(result) + response, err = client.ModifyInstanceSSL(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyInstanceSSLRequest is the request struct for api ModifyInstanceSSL +type ModifyInstanceSSLRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SSLEnabled string `position:"Query" name:"SSLEnabled"` +} + +// ModifyInstanceSSLResponse is the response struct for api ModifyInstanceSSL +type ModifyInstanceSSLResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + TaskId string `json:"TaskId" xml:"TaskId"` +} + +// CreateModifyInstanceSSLRequest creates a request to invoke ModifyInstanceSSL API +func CreateModifyInstanceSSLRequest() (request *ModifyInstanceSSLRequest) { + request = &ModifyInstanceSSLRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "ModifyInstanceSSL", "redisa", "openAPI") + return +} + +// CreateModifyInstanceSSLResponse creates a response to parse from ModifyInstanceSSL response +func CreateModifyInstanceSSLResponse() (response *ModifyInstanceSSLResponse) { + response = &ModifyInstanceSSLResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_replica_description.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_replica_description.go new file mode 100644 index 0000000..e5244fe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_replica_description.go @@ -0,0 +1,109 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyReplicaDescription invokes the r_kvstore.ModifyReplicaDescription API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyreplicadescription.html +func (client *Client) ModifyReplicaDescription(request *ModifyReplicaDescriptionRequest) (response *ModifyReplicaDescriptionResponse, err error) { + response = CreateModifyReplicaDescriptionResponse() + err = client.DoAction(request, response) + return +} + +// ModifyReplicaDescriptionWithChan invokes the r_kvstore.ModifyReplicaDescription API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyreplicadescription.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReplicaDescriptionWithChan(request *ModifyReplicaDescriptionRequest) (<-chan *ModifyReplicaDescriptionResponse, <-chan error) { + responseChan := make(chan *ModifyReplicaDescriptionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyReplicaDescription(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyReplicaDescriptionWithCallback invokes the r_kvstore.ModifyReplicaDescription API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyreplicadescription.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReplicaDescriptionWithCallback(request *ModifyReplicaDescriptionRequest, callback func(response *ModifyReplicaDescriptionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyReplicaDescriptionResponse + var err error + defer close(result) + response, err = client.ModifyReplicaDescription(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyReplicaDescriptionRequest is the request struct for api ModifyReplicaDescription +type ModifyReplicaDescriptionRequest struct { + *requests.RpcRequest + ReplicaDescription string `position:"Query" name:"ReplicaDescription"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyReplicaDescriptionResponse is the response struct for api ModifyReplicaDescription +type ModifyReplicaDescriptionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyReplicaDescriptionRequest creates a request to invoke ModifyReplicaDescription API +func CreateModifyReplicaDescriptionRequest() (request *ModifyReplicaDescriptionRequest) { + request = &ModifyReplicaDescriptionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "ModifyReplicaDescription", "redisa", "openAPI") + return +} + +// CreateModifyReplicaDescriptionResponse creates a response to parse from ModifyReplicaDescription response +func CreateModifyReplicaDescriptionResponse() (response *ModifyReplicaDescriptionResponse) { + response = &ModifyReplicaDescriptionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_replica_mode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_replica_mode.go new file mode 100644 index 0000000..d4793ee --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_replica_mode.go @@ -0,0 +1,111 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyReplicaMode invokes the r_kvstore.ModifyReplicaMode API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyreplicamode.html +func (client *Client) ModifyReplicaMode(request *ModifyReplicaModeRequest) (response *ModifyReplicaModeResponse, err error) { + response = CreateModifyReplicaModeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyReplicaModeWithChan invokes the r_kvstore.ModifyReplicaMode API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyreplicamode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReplicaModeWithChan(request *ModifyReplicaModeRequest) (<-chan *ModifyReplicaModeResponse, <-chan error) { + responseChan := make(chan *ModifyReplicaModeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyReplicaMode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyReplicaModeWithCallback invokes the r_kvstore.ModifyReplicaMode API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyreplicamode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReplicaModeWithCallback(request *ModifyReplicaModeRequest, callback func(response *ModifyReplicaModeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyReplicaModeResponse + var err error + defer close(result) + response, err = client.ModifyReplicaMode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyReplicaModeRequest is the request struct for api ModifyReplicaMode +type ModifyReplicaModeRequest struct { + *requests.RpcRequest + DomainMode string `position:"Query" name:"DomainMode"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PrimaryInstanceId string `position:"Query" name:"PrimaryInstanceId"` + ReplicaMode string `position:"Query" name:"ReplicaMode"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyReplicaModeResponse is the response struct for api ModifyReplicaMode +type ModifyReplicaModeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyReplicaModeRequest creates a request to invoke ModifyReplicaMode API +func CreateModifyReplicaModeRequest() (request *ModifyReplicaModeRequest) { + request = &ModifyReplicaModeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "ModifyReplicaMode", "redisa", "openAPI") + return +} + +// CreateModifyReplicaModeResponse creates a response to parse from ModifyReplicaMode response +func CreateModifyReplicaModeResponse() (response *ModifyReplicaModeResponse) { + response = &ModifyReplicaModeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_replica_recovery_mode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_replica_recovery_mode.go new file mode 100644 index 0000000..ee19150 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_replica_recovery_mode.go @@ -0,0 +1,109 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyReplicaRecoveryMode invokes the r_kvstore.ModifyReplicaRecoveryMode API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyreplicarecoverymode.html +func (client *Client) ModifyReplicaRecoveryMode(request *ModifyReplicaRecoveryModeRequest) (response *ModifyReplicaRecoveryModeResponse, err error) { + response = CreateModifyReplicaRecoveryModeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyReplicaRecoveryModeWithChan invokes the r_kvstore.ModifyReplicaRecoveryMode API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyreplicarecoverymode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReplicaRecoveryModeWithChan(request *ModifyReplicaRecoveryModeRequest) (<-chan *ModifyReplicaRecoveryModeResponse, <-chan error) { + responseChan := make(chan *ModifyReplicaRecoveryModeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyReplicaRecoveryMode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyReplicaRecoveryModeWithCallback invokes the r_kvstore.ModifyReplicaRecoveryMode API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyreplicarecoverymode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReplicaRecoveryModeWithCallback(request *ModifyReplicaRecoveryModeRequest, callback func(response *ModifyReplicaRecoveryModeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyReplicaRecoveryModeResponse + var err error + defer close(result) + response, err = client.ModifyReplicaRecoveryMode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyReplicaRecoveryModeRequest is the request struct for api ModifyReplicaRecoveryMode +type ModifyReplicaRecoveryModeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + RecoveryMode string `position:"Query" name:"RecoveryMode"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyReplicaRecoveryModeResponse is the response struct for api ModifyReplicaRecoveryMode +type ModifyReplicaRecoveryModeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyReplicaRecoveryModeRequest creates a request to invoke ModifyReplicaRecoveryMode API +func CreateModifyReplicaRecoveryModeRequest() (request *ModifyReplicaRecoveryModeRequest) { + request = &ModifyReplicaRecoveryModeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "ModifyReplicaRecoveryMode", "redisa", "openAPI") + return +} + +// CreateModifyReplicaRecoveryModeResponse creates a response to parse from ModifyReplicaRecoveryMode response +func CreateModifyReplicaRecoveryModeResponse() (response *ModifyReplicaRecoveryModeResponse) { + response = &ModifyReplicaRecoveryModeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_replica_relation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_replica_relation.go new file mode 100644 index 0000000..583c118 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_replica_relation.go @@ -0,0 +1,108 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyReplicaRelation invokes the r_kvstore.ModifyReplicaRelation API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyreplicarelation.html +func (client *Client) ModifyReplicaRelation(request *ModifyReplicaRelationRequest) (response *ModifyReplicaRelationResponse, err error) { + response = CreateModifyReplicaRelationResponse() + err = client.DoAction(request, response) + return +} + +// ModifyReplicaRelationWithChan invokes the r_kvstore.ModifyReplicaRelation API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyreplicarelation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReplicaRelationWithChan(request *ModifyReplicaRelationRequest) (<-chan *ModifyReplicaRelationResponse, <-chan error) { + responseChan := make(chan *ModifyReplicaRelationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyReplicaRelation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyReplicaRelationWithCallback invokes the r_kvstore.ModifyReplicaRelation API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyreplicarelation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReplicaRelationWithCallback(request *ModifyReplicaRelationRequest, callback func(response *ModifyReplicaRelationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyReplicaRelationResponse + var err error + defer close(result) + response, err = client.ModifyReplicaRelation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyReplicaRelationRequest is the request struct for api ModifyReplicaRelation +type ModifyReplicaRelationRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyReplicaRelationResponse is the response struct for api ModifyReplicaRelation +type ModifyReplicaRelationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyReplicaRelationRequest creates a request to invoke ModifyReplicaRelation API +func CreateModifyReplicaRelationRequest() (request *ModifyReplicaRelationRequest) { + request = &ModifyReplicaRelationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "ModifyReplicaRelation", "redisa", "openAPI") + return +} + +// CreateModifyReplicaRelationResponse creates a response to parse from ModifyReplicaRelation response +func CreateModifyReplicaRelationResponse() (response *ModifyReplicaRelationResponse) { + response = &ModifyReplicaRelationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_replica_verification_mode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_replica_verification_mode.go new file mode 100644 index 0000000..3e3fc71 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_replica_verification_mode.go @@ -0,0 +1,109 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyReplicaVerificationMode invokes the r_kvstore.ModifyReplicaVerificationMode API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyreplicaverificationmode.html +func (client *Client) ModifyReplicaVerificationMode(request *ModifyReplicaVerificationModeRequest) (response *ModifyReplicaVerificationModeResponse, err error) { + response = CreateModifyReplicaVerificationModeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyReplicaVerificationModeWithChan invokes the r_kvstore.ModifyReplicaVerificationMode API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyreplicaverificationmode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReplicaVerificationModeWithChan(request *ModifyReplicaVerificationModeRequest) (<-chan *ModifyReplicaVerificationModeResponse, <-chan error) { + responseChan := make(chan *ModifyReplicaVerificationModeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyReplicaVerificationMode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyReplicaVerificationModeWithCallback invokes the r_kvstore.ModifyReplicaVerificationMode API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifyreplicaverificationmode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReplicaVerificationModeWithCallback(request *ModifyReplicaVerificationModeRequest, callback func(response *ModifyReplicaVerificationModeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyReplicaVerificationModeResponse + var err error + defer close(result) + response, err = client.ModifyReplicaVerificationMode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyReplicaVerificationModeRequest is the request struct for api ModifyReplicaVerificationMode +type ModifyReplicaVerificationModeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VerificationMode string `position:"Query" name:"VerificationMode"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyReplicaVerificationModeResponse is the response struct for api ModifyReplicaVerificationMode +type ModifyReplicaVerificationModeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyReplicaVerificationModeRequest creates a request to invoke ModifyReplicaVerificationMode API +func CreateModifyReplicaVerificationModeRequest() (request *ModifyReplicaVerificationModeRequest) { + request = &ModifyReplicaVerificationModeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "ModifyReplicaVerificationMode", "redisa", "openAPI") + return +} + +// CreateModifyReplicaVerificationModeResponse creates a response to parse from ModifyReplicaVerificationMode response +func CreateModifyReplicaVerificationModeResponse() (response *ModifyReplicaVerificationModeResponse) { + response = &ModifyReplicaVerificationModeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_security_ips.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_security_ips.go new file mode 100644 index 0000000..5e99724 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/modify_security_ips.go @@ -0,0 +1,112 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifySecurityIps invokes the r_kvstore.ModifySecurityIps API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifysecurityips.html +func (client *Client) ModifySecurityIps(request *ModifySecurityIpsRequest) (response *ModifySecurityIpsResponse, err error) { + response = CreateModifySecurityIpsResponse() + err = client.DoAction(request, response) + return +} + +// ModifySecurityIpsWithChan invokes the r_kvstore.ModifySecurityIps API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifysecurityips.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySecurityIpsWithChan(request *ModifySecurityIpsRequest) (<-chan *ModifySecurityIpsResponse, <-chan error) { + responseChan := make(chan *ModifySecurityIpsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifySecurityIps(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifySecurityIpsWithCallback invokes the r_kvstore.ModifySecurityIps API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/modifysecurityips.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySecurityIpsWithCallback(request *ModifySecurityIpsRequest, callback func(response *ModifySecurityIpsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifySecurityIpsResponse + var err error + defer close(result) + response, err = client.ModifySecurityIps(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifySecurityIpsRequest is the request struct for api ModifySecurityIps +type ModifySecurityIpsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ModifyMode string `position:"Query" name:"ModifyMode"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SecurityIps string `position:"Query" name:"SecurityIps"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityIpGroupName string `position:"Query" name:"SecurityIpGroupName"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + SecurityIpGroupAttribute string `position:"Query" name:"SecurityIpGroupAttribute"` +} + +// ModifySecurityIpsResponse is the response struct for api ModifySecurityIps +type ModifySecurityIpsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifySecurityIpsRequest creates a request to invoke ModifySecurityIps API +func CreateModifySecurityIpsRequest() (request *ModifySecurityIpsRequest) { + request = &ModifySecurityIpsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "ModifySecurityIps", "redisa", "openAPI") + return +} + +// CreateModifySecurityIpsResponse creates a response to parse from ModifySecurityIps response +func CreateModifySecurityIpsResponse() (response *ModifySecurityIpsResponse) { + response = &ModifySecurityIpsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/query_task.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/query_task.go new file mode 100644 index 0000000..5d00246 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/query_task.go @@ -0,0 +1,108 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTask invokes the r_kvstore.QueryTask API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/querytask.html +func (client *Client) QueryTask(request *QueryTaskRequest) (response *QueryTaskResponse, err error) { + response = CreateQueryTaskResponse() + err = client.DoAction(request, response) + return +} + +// QueryTaskWithChan invokes the r_kvstore.QueryTask API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/querytask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskWithChan(request *QueryTaskRequest) (<-chan *QueryTaskResponse, <-chan error) { + responseChan := make(chan *QueryTaskResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTask(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTaskWithCallback invokes the r_kvstore.QueryTask API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/querytask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTaskWithCallback(request *QueryTaskRequest, callback func(response *QueryTaskResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTaskResponse + var err error + defer close(result) + response, err = client.QueryTask(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTaskRequest is the request struct for api QueryTask +type QueryTaskRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// QueryTaskResponse is the response struct for api QueryTask +type QueryTaskResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Action string `json:"Action" xml:"Action"` + Progress int `json:"Progress" xml:"Progress"` +} + +// CreateQueryTaskRequest creates a request to invoke QueryTask API +func CreateQueryTaskRequest() (request *QueryTaskRequest) { + request = &QueryTaskRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "QueryTask", "redisa", "openAPI") + return +} + +// CreateQueryTaskResponse creates a response to parse from QueryTask response +func CreateQueryTaskResponse() (response *QueryTaskResponse) { + response = &QueryTaskResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/release_replica.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/release_replica.go new file mode 100644 index 0000000..3514b81 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/release_replica.go @@ -0,0 +1,108 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReleaseReplica invokes the r_kvstore.ReleaseReplica API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/releasereplica.html +func (client *Client) ReleaseReplica(request *ReleaseReplicaRequest) (response *ReleaseReplicaResponse, err error) { + response = CreateReleaseReplicaResponse() + err = client.DoAction(request, response) + return +} + +// ReleaseReplicaWithChan invokes the r_kvstore.ReleaseReplica API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/releasereplica.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReleaseReplicaWithChan(request *ReleaseReplicaRequest) (<-chan *ReleaseReplicaResponse, <-chan error) { + responseChan := make(chan *ReleaseReplicaResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReleaseReplica(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReleaseReplicaWithCallback invokes the r_kvstore.ReleaseReplica API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/releasereplica.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReleaseReplicaWithCallback(request *ReleaseReplicaRequest, callback func(response *ReleaseReplicaResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReleaseReplicaResponse + var err error + defer close(result) + response, err = client.ReleaseReplica(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReleaseReplicaRequest is the request struct for api ReleaseReplica +type ReleaseReplicaRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ReleaseReplicaResponse is the response struct for api ReleaseReplica +type ReleaseReplicaResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateReleaseReplicaRequest creates a request to invoke ReleaseReplica API +func CreateReleaseReplicaRequest() (request *ReleaseReplicaRequest) { + request = &ReleaseReplicaRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "ReleaseReplica", "redisa", "openAPI") + return +} + +// CreateReleaseReplicaResponse creates a response to parse from ReleaseReplica response +func CreateReleaseReplicaResponse() (response *ReleaseReplicaResponse) { + response = &ReleaseReplicaResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/renew_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/renew_instance.go new file mode 100644 index 0000000..5a581da --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/renew_instance.go @@ -0,0 +1,118 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RenewInstance invokes the r_kvstore.RenewInstance API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/renewinstance.html +func (client *Client) RenewInstance(request *RenewInstanceRequest) (response *RenewInstanceResponse, err error) { + response = CreateRenewInstanceResponse() + err = client.DoAction(request, response) + return +} + +// RenewInstanceWithChan invokes the r_kvstore.RenewInstance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/renewinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RenewInstanceWithChan(request *RenewInstanceRequest) (<-chan *RenewInstanceResponse, <-chan error) { + responseChan := make(chan *RenewInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RenewInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RenewInstanceWithCallback invokes the r_kvstore.RenewInstance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/renewinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RenewInstanceWithCallback(request *RenewInstanceRequest, callback func(response *RenewInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RenewInstanceResponse + var err error + defer close(result) + response, err = client.RenewInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RenewInstanceRequest is the request struct for api RenewInstance +type RenewInstanceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Period requests.Integer `position:"Query" name:"Period"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` + FromApp string `position:"Query" name:"FromApp"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + CouponNo string `position:"Query" name:"CouponNo"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceClass string `position:"Query" name:"InstanceClass"` + Capacity string `position:"Query" name:"Capacity"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ForceUpgrade requests.Boolean `position:"Query" name:"ForceUpgrade"` + BusinessInfo string `position:"Query" name:"BusinessInfo"` +} + +// RenewInstanceResponse is the response struct for api RenewInstance +type RenewInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + OrderId string `json:"OrderId" xml:"OrderId"` + EndTime string `json:"EndTime" xml:"EndTime"` +} + +// CreateRenewInstanceRequest creates a request to invoke RenewInstance API +func CreateRenewInstanceRequest() (request *RenewInstanceRequest) { + request = &RenewInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "RenewInstance", "redisa", "openAPI") + return +} + +// CreateRenewInstanceResponse creates a response to parse from RenewInstance response +func CreateRenewInstanceResponse() (response *RenewInstanceResponse) { + response = &RenewInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/renew_multi_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/renew_multi_instance.go new file mode 100644 index 0000000..1d5e8a9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/renew_multi_instance.go @@ -0,0 +1,114 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RenewMultiInstance invokes the r_kvstore.RenewMultiInstance API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/renewmultiinstance.html +func (client *Client) RenewMultiInstance(request *RenewMultiInstanceRequest) (response *RenewMultiInstanceResponse, err error) { + response = CreateRenewMultiInstanceResponse() + err = client.DoAction(request, response) + return +} + +// RenewMultiInstanceWithChan invokes the r_kvstore.RenewMultiInstance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/renewmultiinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RenewMultiInstanceWithChan(request *RenewMultiInstanceRequest) (<-chan *RenewMultiInstanceResponse, <-chan error) { + responseChan := make(chan *RenewMultiInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RenewMultiInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RenewMultiInstanceWithCallback invokes the r_kvstore.RenewMultiInstance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/renewmultiinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RenewMultiInstanceWithCallback(request *RenewMultiInstanceRequest, callback func(response *RenewMultiInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RenewMultiInstanceResponse + var err error + defer close(result) + response, err = client.RenewMultiInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RenewMultiInstanceRequest is the request struct for api RenewMultiInstance +type RenewMultiInstanceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Period requests.Integer `position:"Query" name:"Period"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` + FromApp string `position:"Query" name:"FromApp"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + CouponNo string `position:"Query" name:"CouponNo"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + InstanceIds string `position:"Query" name:"InstanceIds"` + BusinessInfo string `position:"Query" name:"BusinessInfo"` +} + +// RenewMultiInstanceResponse is the response struct for api RenewMultiInstance +type RenewMultiInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + OrderId string `json:"OrderId" xml:"OrderId"` +} + +// CreateRenewMultiInstanceRequest creates a request to invoke RenewMultiInstance API +func CreateRenewMultiInstanceRequest() (request *RenewMultiInstanceRequest) { + request = &RenewMultiInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "RenewMultiInstance", "redisa", "openAPI") + return +} + +// CreateRenewMultiInstanceResponse creates a response to parse from RenewMultiInstance response +func CreateRenewMultiInstanceResponse() (response *RenewMultiInstanceResponse) { + response = &RenewMultiInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/restore_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/restore_instance.go new file mode 100644 index 0000000..ca7d6c3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/restore_instance.go @@ -0,0 +1,109 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RestoreInstance invokes the r_kvstore.RestoreInstance API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/restoreinstance.html +func (client *Client) RestoreInstance(request *RestoreInstanceRequest) (response *RestoreInstanceResponse, err error) { + response = CreateRestoreInstanceResponse() + err = client.DoAction(request, response) + return +} + +// RestoreInstanceWithChan invokes the r_kvstore.RestoreInstance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/restoreinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RestoreInstanceWithChan(request *RestoreInstanceRequest) (<-chan *RestoreInstanceResponse, <-chan error) { + responseChan := make(chan *RestoreInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RestoreInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RestoreInstanceWithCallback invokes the r_kvstore.RestoreInstance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/restoreinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RestoreInstanceWithCallback(request *RestoreInstanceRequest, callback func(response *RestoreInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RestoreInstanceResponse + var err error + defer close(result) + response, err = client.RestoreInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RestoreInstanceRequest is the request struct for api RestoreInstance +type RestoreInstanceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + BackupId string `position:"Query" name:"BackupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// RestoreInstanceResponse is the response struct for api RestoreInstance +type RestoreInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRestoreInstanceRequest creates a request to invoke RestoreInstance API +func CreateRestoreInstanceRequest() (request *RestoreInstanceRequest) { + request = &RestoreInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "RestoreInstance", "redisa", "openAPI") + return +} + +// CreateRestoreInstanceResponse creates a response to parse from RestoreInstance response +func CreateRestoreInstanceResponse() (response *RestoreInstanceResponse) { + response = &RestoreInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/restore_snapshot.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/restore_snapshot.go new file mode 100644 index 0000000..247ab75 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/restore_snapshot.go @@ -0,0 +1,106 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RestoreSnapshot invokes the r_kvstore.RestoreSnapshot API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/restoresnapshot.html +func (client *Client) RestoreSnapshot(request *RestoreSnapshotRequest) (response *RestoreSnapshotResponse, err error) { + response = CreateRestoreSnapshotResponse() + err = client.DoAction(request, response) + return +} + +// RestoreSnapshotWithChan invokes the r_kvstore.RestoreSnapshot API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/restoresnapshot.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RestoreSnapshotWithChan(request *RestoreSnapshotRequest) (<-chan *RestoreSnapshotResponse, <-chan error) { + responseChan := make(chan *RestoreSnapshotResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RestoreSnapshot(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RestoreSnapshotWithCallback invokes the r_kvstore.RestoreSnapshot API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/restoresnapshot.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RestoreSnapshotWithCallback(request *RestoreSnapshotRequest, callback func(response *RestoreSnapshotResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RestoreSnapshotResponse + var err error + defer close(result) + response, err = client.RestoreSnapshot(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RestoreSnapshotRequest is the request struct for api RestoreSnapshot +type RestoreSnapshotRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// RestoreSnapshotResponse is the response struct for api RestoreSnapshot +type RestoreSnapshotResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRestoreSnapshotRequest creates a request to invoke RestoreSnapshot API +func CreateRestoreSnapshotRequest() (request *RestoreSnapshotRequest) { + request = &RestoreSnapshotRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "RestoreSnapshot", "redisa", "openAPI") + return +} + +// CreateRestoreSnapshotResponse creates a response to parse from RestoreSnapshot response +func CreateRestoreSnapshotResponse() (response *RestoreSnapshotResponse) { + response = &RestoreSnapshotResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/set_snapshot_settings.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/set_snapshot_settings.go new file mode 100644 index 0000000..e0d7e1b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/set_snapshot_settings.go @@ -0,0 +1,106 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetSnapshotSettings invokes the r_kvstore.SetSnapshotSettings API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/setsnapshotsettings.html +func (client *Client) SetSnapshotSettings(request *SetSnapshotSettingsRequest) (response *SetSnapshotSettingsResponse, err error) { + response = CreateSetSnapshotSettingsResponse() + err = client.DoAction(request, response) + return +} + +// SetSnapshotSettingsWithChan invokes the r_kvstore.SetSnapshotSettings API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/setsnapshotsettings.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetSnapshotSettingsWithChan(request *SetSnapshotSettingsRequest) (<-chan *SetSnapshotSettingsResponse, <-chan error) { + responseChan := make(chan *SetSnapshotSettingsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetSnapshotSettings(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetSnapshotSettingsWithCallback invokes the r_kvstore.SetSnapshotSettings API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/setsnapshotsettings.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetSnapshotSettingsWithCallback(request *SetSnapshotSettingsRequest, callback func(response *SetSnapshotSettingsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetSnapshotSettingsResponse + var err error + defer close(result) + response, err = client.SetSnapshotSettings(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetSnapshotSettingsRequest is the request struct for api SetSnapshotSettings +type SetSnapshotSettingsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetSnapshotSettingsResponse is the response struct for api SetSnapshotSettings +type SetSnapshotSettingsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetSnapshotSettingsRequest creates a request to invoke SetSnapshotSettings API +func CreateSetSnapshotSettingsRequest() (request *SetSnapshotSettingsRequest) { + request = &SetSnapshotSettingsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "SetSnapshotSettings", "redisa", "openAPI") + return +} + +// CreateSetSnapshotSettingsResponse creates a response to parse from SetSnapshotSettings response +func CreateSetSnapshotSettingsResponse() (response *SetSnapshotSettingsResponse) { + response = &SetSnapshotSettingsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_affected_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_affected_info.go new file mode 100644 index 0000000..3471b6b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_affected_info.go @@ -0,0 +1,23 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AffectedInfo is a nested struct in r_kvstore response +type AffectedInfo struct { + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + Description string `json:"Description" xml:"Description"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_affected_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_affected_infos.go new file mode 100644 index 0000000..c28cfe4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_affected_infos.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AffectedInfos is a nested struct in r_kvstore response +type AffectedInfos struct { + AffectedInfo []AffectedInfo `json:"AffectedInfo" xml:"AffectedInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_backup.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_backup.go new file mode 100644 index 0000000..a873e0d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_backup.go @@ -0,0 +1,33 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Backup is a nested struct in r_kvstore response +type Backup struct { + BackupId int `json:"BackupId" xml:"BackupId"` + BackupDBNames string `json:"BackupDBNames" xml:"BackupDBNames"` + BackupStatus string `json:"BackupStatus" xml:"BackupStatus"` + BackupStartTime string `json:"BackupStartTime" xml:"BackupStartTime"` + BackupEndTime string `json:"BackupEndTime" xml:"BackupEndTime"` + BackupType string `json:"BackupType" xml:"BackupType"` + BackupMode string `json:"BackupMode" xml:"BackupMode"` + BackupMethod string `json:"BackupMethod" xml:"BackupMethod"` + BackupDownloadURL string `json:"BackupDownloadURL" xml:"BackupDownloadURL"` + BackupSize int `json:"BackupSize" xml:"BackupSize"` + EngineVersion string `json:"EngineVersion" xml:"EngineVersion"` + NodeInstanceId string `json:"NodeInstanceId" xml:"NodeInstanceId"` + BackupIntranetDownloadURL string `json:"BackupIntranetDownloadURL" xml:"BackupIntranetDownloadURL"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_backups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_backups.go new file mode 100644 index 0000000..c6c6883 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_backups.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Backups is a nested struct in r_kvstore response +type Backups struct { + Backup []Backup `json:"Backup" xml:"Backup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_db_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_db_instance_attribute.go new file mode 100644 index 0000000..b28648d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_db_instance_attribute.go @@ -0,0 +1,53 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DBInstanceAttribute is a nested struct in r_kvstore response +type DBInstanceAttribute struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + ConnectionDomain string `json:"ConnectionDomain" xml:"ConnectionDomain"` + Port int `json:"Port" xml:"Port"` + InstanceStatus string `json:"InstanceStatus" xml:"InstanceStatus"` + RegionId string `json:"RegionId" xml:"RegionId"` + Capacity int `json:"Capacity" xml:"Capacity"` + InstanceClass string `json:"InstanceClass" xml:"InstanceClass"` + QPS int `json:"QPS" xml:"QPS"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + Connections int `json:"Connections" xml:"Connections"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + Config string `json:"Config" xml:"Config"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + NodeType string `json:"NodeType" xml:"NodeType"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + VpcId string `json:"VpcId" xml:"VpcId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + PrivateIp string `json:"PrivateIp" xml:"PrivateIp"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + HasRenewChangeOrder string `json:"HasRenewChangeOrder" xml:"HasRenewChangeOrder"` + IsRds bool `json:"IsRds" xml:"IsRds"` + Engine string `json:"Engine" xml:"Engine"` + EngineVersion string `json:"EngineVersion" xml:"EngineVersion"` + MaintainStartTime string `json:"MaintainStartTime" xml:"MaintainStartTime"` + MaintainEndTime string `json:"MaintainEndTime" xml:"MaintainEndTime"` + AvailabilityValue string `json:"AvailabilityValue" xml:"AvailabilityValue"` + SecurityIPList string `json:"SecurityIPList" xml:"SecurityIPList"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + ArchitectureType string `json:"ArchitectureType" xml:"ArchitectureType"` + PackageType string `json:"PackageType" xml:"PackageType"` + ReplacateId string `json:"ReplacateId" xml:"ReplacateId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_db_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_db_instances.go new file mode 100644 index 0000000..88d4984 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_db_instances.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DBInstances is a nested struct in r_kvstore response +type DBInstances struct { + Items []Items `json:"Items" xml:"Items"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instance_net_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instance_net_info.go new file mode 100644 index 0000000..53bb68f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instance_net_info.go @@ -0,0 +1,29 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceNetInfo is a nested struct in r_kvstore response +type InstanceNetInfo struct { + ConnectionString string `json:"ConnectionString" xml:"ConnectionString"` + IPAddress string `json:"IPAddress" xml:"IPAddress"` + Port string `json:"Port" xml:"Port"` + VPCId string `json:"VPCId" xml:"VPCId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + DBInstanceNetType string `json:"DBInstanceNetType" xml:"DBInstanceNetType"` + IPType string `json:"IPType" xml:"IPType"` + ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` + Upgradeable string `json:"Upgradeable" xml:"Upgradeable"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instance_sla_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instance_sla_info.go new file mode 100644 index 0000000..b3d0516 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instance_sla_info.go @@ -0,0 +1,22 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceSLAInfo is a nested struct in r_kvstore response +type InstanceSLAInfo struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + UptimePct float64 `json:"UptimePct" xml:"UptimePct"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instance_sla_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instance_sla_infos.go new file mode 100644 index 0000000..33680a9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instance_sla_infos.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceSLAInfos is a nested struct in r_kvstore response +type InstanceSLAInfos struct { + InstanceSLAInfo []InstanceSLAInfo `json:"InstanceSLAInfo" xml:"InstanceSLAInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instances_in_describe_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instances_in_describe_instance_attribute.go new file mode 100644 index 0000000..38f0fdc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instances_in_describe_instance_attribute.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstancesInDescribeInstanceAttribute is a nested struct in r_kvstore response +type InstancesInDescribeInstanceAttribute struct { + DBInstanceAttribute []DBInstanceAttribute `json:"DBInstanceAttribute" xml:"DBInstanceAttribute"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instances_in_describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instances_in_describe_instances.go new file mode 100644 index 0000000..f0be33c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instances_in_describe_instances.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstancesInDescribeInstances is a nested struct in r_kvstore response +type InstancesInDescribeInstances struct { + KVStoreInstance []KVStoreInstance `json:"KVStoreInstance" xml:"KVStoreInstance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instances_in_describe_instances_by_expire_time.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instances_in_describe_instances_by_expire_time.go new file mode 100644 index 0000000..20506ea --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_instances_in_describe_instances_by_expire_time.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstancesInDescribeInstancesByExpireTime is a nested struct in r_kvstore response +type InstancesInDescribeInstancesByExpireTime struct { + KVStoreInstance []KVStoreInstance `json:"KVStoreInstance" xml:"KVStoreInstance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items.go new file mode 100644 index 0000000..7c3b081 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items.go @@ -0,0 +1,29 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Items is a nested struct in r_kvstore response +type Items struct { + ReplicaMode string `json:"ReplicaMode" xml:"ReplicaMode"` + Role string `json:"Role" xml:"Role"` + ReadWriteType string `json:"ReadWriteType" xml:"ReadWriteType"` + DomainMode string `json:"DomainMode" xml:"DomainMode"` + ReplicaDescription string `json:"ReplicaDescription" xml:"ReplicaDescription"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + ReplicaStatus string `json:"ReplicaStatus" xml:"ReplicaStatus"` + ReplicaId string `json:"ReplicaId" xml:"ReplicaId"` + DBInstances []Items `json:"DBInstances" xml:"DBInstances"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items_in_describe_replica_conflict_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items_in_describe_replica_conflict_info.go new file mode 100644 index 0000000..c3fbbd0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items_in_describe_replica_conflict_info.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeReplicaConflictInfo is a nested struct in r_kvstore response +type ItemsInDescribeReplicaConflictInfo struct { + ItemsItem []ItemsItem `json:"ItemsItem" xml:"ItemsItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items_in_describe_replica_initialize_progress.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items_in_describe_replica_initialize_progress.go new file mode 100644 index 0000000..091682e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items_in_describe_replica_initialize_progress.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeReplicaInitializeProgress is a nested struct in r_kvstore response +type ItemsInDescribeReplicaInitializeProgress struct { + ItemsItem []ItemsItem `json:"ItemsItem" xml:"ItemsItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items_in_describe_static_verification_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items_in_describe_static_verification_list.go new file mode 100644 index 0000000..c9a71af --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items_in_describe_static_verification_list.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeStaticVerificationList is a nested struct in r_kvstore response +type ItemsInDescribeStaticVerificationList struct { + ItemsItem []ItemsItem `json:"ItemsItem" xml:"ItemsItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items_in_describe_verification_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items_in_describe_verification_list.go new file mode 100644 index 0000000..142e629 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items_in_describe_verification_list.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeVerificationList is a nested struct in r_kvstore response +type ItemsInDescribeVerificationList struct { + ItemsItem []ItemsItem `json:"ItemsItem" xml:"ItemsItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items_item.go new file mode 100644 index 0000000..8676095 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_items_item.go @@ -0,0 +1,44 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsItem is a nested struct in r_kvstore response +type ItemsItem struct { + Schema string `json:"Schema" xml:"Schema"` + ConfictReason string `json:"ConfictReason" xml:"ConfictReason"` + SourceDetail string `json:"SourceDetail" xml:"SourceDetail"` + InconsistentFields string `json:"InconsistentFields" xml:"InconsistentFields"` + InstanceIdA string `json:"InstanceIdA" xml:"InstanceIdA"` + DestinationInstanceId string `json:"DestinationInstanceId" xml:"DestinationInstanceId"` + ConflictGtid string `json:"ConflictGtid" xml:"ConflictGtid"` + DestinationDetail string `json:"DestinationDetail" xml:"DestinationDetail"` + FinishTime string `json:"FinishTime" xml:"FinishTime"` + OccurTime string `json:"OccurTime" xml:"OccurTime"` + Key string `json:"Key" xml:"Key"` + Progress string `json:"Progress" xml:"Progress"` + InstanceIdB string `json:"InstanceIdB" xml:"InstanceIdB"` + CurrentStep string `json:"CurrentStep" xml:"CurrentStep"` + SourceInstanceId string `json:"SourceInstanceId" xml:"SourceInstanceId"` + RecoveryMode string `json:"RecoveryMode" xml:"RecoveryMode"` + AbnormalType string `json:"AbnormalType" xml:"AbnormalType"` + InconsistentType string `json:"InconsistentType" xml:"InconsistentType"` + ConfictKey string `json:"ConfictKey" xml:"ConfictKey"` + KeyType string `json:"KeyType" xml:"KeyType"` + Status string `json:"Status" xml:"Status"` + DatabaseName string `json:"DatabaseName" xml:"DatabaseName"` + ReplicaId string `json:"ReplicaId" xml:"ReplicaId"` + DetailInfo string `json:"DetailInfo" xml:"DetailInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_kv_store_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_kv_store_instance.go new file mode 100644 index 0000000..64c4821 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_kv_store_instance.go @@ -0,0 +1,49 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// KVStoreInstance is a nested struct in r_kvstore response +type KVStoreInstance struct { + InstanceClass string `json:"InstanceClass" xml:"InstanceClass"` + PackageType string `json:"PackageType" xml:"PackageType"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + ConnectionDomain string `json:"ConnectionDomain" xml:"ConnectionDomain"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + HasRenewChangeOrder string `json:"HasRenewChangeOrder" xml:"HasRenewChangeOrder"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + RegionId string `json:"RegionId" xml:"RegionId"` + PrivateIp string `json:"PrivateIp" xml:"PrivateIp"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + InstanceStatus string `json:"InstanceStatus" xml:"InstanceStatus"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + VpcId string `json:"VpcId" xml:"VpcId"` + NodeType string `json:"NodeType" xml:"NodeType"` + Connections int `json:"Connections" xml:"Connections"` + ArchitectureType string `json:"ArchitectureType" xml:"ArchitectureType"` + ReplacateId string `json:"ReplacateId" xml:"ReplacateId"` + EngineVersion string `json:"EngineVersion" xml:"EngineVersion"` + Capacity int `json:"Capacity" xml:"Capacity"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + Port int `json:"Port" xml:"Port"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + EndTime string `json:"EndTime" xml:"EndTime"` + QPS int `json:"QPS" xml:"QPS"` + UserName string `json:"UserName" xml:"UserName"` + Config string `json:"Config" xml:"Config"` + IsRds bool `json:"IsRds" xml:"IsRds"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_kv_store_monitor_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_kv_store_monitor_item.go new file mode 100644 index 0000000..d4013dc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_kv_store_monitor_item.go @@ -0,0 +1,22 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// KVStoreMonitorItem is a nested struct in r_kvstore response +type KVStoreMonitorItem struct { + MonitorKey string `json:"MonitorKey" xml:"MonitorKey"` + Unit string `json:"Unit" xml:"Unit"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_kv_store_region.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_kv_store_region.go new file mode 100644 index 0000000..e7a47ac --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_kv_store_region.go @@ -0,0 +1,23 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// KVStoreRegion is a nested struct in r_kvstore response +type KVStoreRegion struct { + RegionId string `json:"RegionId" xml:"RegionId"` + ZoneIds string `json:"ZoneIds" xml:"ZoneIds"` + LocalName string `json:"LocalName" xml:"LocalName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_monitor_items.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_monitor_items.go new file mode 100644 index 0000000..de659ae --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_monitor_items.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MonitorItems is a nested struct in r_kvstore response +type MonitorItems struct { + KVStoreMonitorItem []KVStoreMonitorItem `json:"KVStoreMonitorItem" xml:"KVStoreMonitorItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_net_info_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_net_info_item.go new file mode 100644 index 0000000..21e638a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_net_info_item.go @@ -0,0 +1,25 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NetInfoItem is a nested struct in r_kvstore response +type NetInfoItem struct { + DBInstanceNetType string `json:"DBInstanceNetType" xml:"DBInstanceNetType"` + Port string `json:"Port" xml:"Port"` + ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` + ConnectionString string `json:"ConnectionString" xml:"ConnectionString"` + IPAddress string `json:"IPAddress" xml:"IPAddress"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_net_info_items_in_describe_db_instance_net_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_net_info_items_in_describe_db_instance_net_info.go new file mode 100644 index 0000000..2fd546c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_net_info_items_in_describe_db_instance_net_info.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NetInfoItemsInDescribeDBInstanceNetInfo is a nested struct in r_kvstore response +type NetInfoItemsInDescribeDBInstanceNetInfo struct { + InstanceNetInfo []InstanceNetInfo `json:"InstanceNetInfo" xml:"InstanceNetInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_net_info_items_in_modify_instance_net_expire_time.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_net_info_items_in_modify_instance_net_expire_time.go new file mode 100644 index 0000000..50a7ab9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_net_info_items_in_modify_instance_net_expire_time.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NetInfoItemsInModifyInstanceNetExpireTime is a nested struct in r_kvstore response +type NetInfoItemsInModifyInstanceNetExpireTime struct { + NetInfoItem []NetInfoItem `json:"NetInfoItem" xml:"NetInfoItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_node_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_node_info.go new file mode 100644 index 0000000..25ad28b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_node_info.go @@ -0,0 +1,25 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NodeInfo is a nested struct in r_kvstore response +type NodeInfo struct { + NodeId string `json:"NodeId" xml:"NodeId"` + Connection string `json:"Connection" xml:"Connection"` + Bandwidth string `json:"Bandwidth" xml:"Bandwidth"` + Capacity string `json:"Capacity" xml:"Capacity"` + NodeType string `json:"NodeType" xml:"NodeType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_key_in_describe_replica_performance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_key_in_describe_replica_performance.go new file mode 100644 index 0000000..316ea98 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_key_in_describe_replica_performance.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PerformanceKeyInDescribeReplicaPerformance is a nested struct in r_kvstore response +type PerformanceKeyInDescribeReplicaPerformance struct { + PerformanceKeyItem []PerformanceKeyItem `json:"PerformanceKeyItem" xml:"PerformanceKeyItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_key_in_describe_replica_usage.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_key_in_describe_replica_usage.go new file mode 100644 index 0000000..8e63f0d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_key_in_describe_replica_usage.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PerformanceKeyInDescribeReplicaUsage is a nested struct in r_kvstore response +type PerformanceKeyInDescribeReplicaUsage struct { + PerformanceKeyItem []PerformanceKeyItem `json:"PerformanceKeyItem" xml:"PerformanceKeyItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_key_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_key_item.go new file mode 100644 index 0000000..244ef4e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_key_item.go @@ -0,0 +1,24 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PerformanceKeyItem is a nested struct in r_kvstore response +type PerformanceKeyItem struct { + Key string `json:"Key" xml:"Key"` + Unit string `json:"Unit" xml:"Unit"` + ValueFormat string `json:"ValueFormat" xml:"ValueFormat"` + PerformanceValues PerformanceValues `json:"PerformanceValues" xml:"PerformanceValues"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_keys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_keys.go new file mode 100644 index 0000000..f813292 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_keys.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PerformanceKeys is a nested struct in r_kvstore response +type PerformanceKeys struct { + PerformanceKey []PerformanceKeyItem `json:"PerformanceKey" xml:"PerformanceKey"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_value_in_describe_replica_performance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_value_in_describe_replica_performance.go new file mode 100644 index 0000000..70ae4bb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_value_in_describe_replica_performance.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PerformanceValueInDescribeReplicaPerformance is a nested struct in r_kvstore response +type PerformanceValueInDescribeReplicaPerformance struct { + PerformanceValueItem []PerformanceValueItem `json:"PerformanceValueItem" xml:"PerformanceValueItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_value_in_describe_replica_usage.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_value_in_describe_replica_usage.go new file mode 100644 index 0000000..67afe63 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_value_in_describe_replica_usage.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PerformanceValueInDescribeReplicaUsage is a nested struct in r_kvstore response +type PerformanceValueInDescribeReplicaUsage struct { + PerformanceValueItem []PerformanceValueItem `json:"PerformanceValueItem" xml:"PerformanceValueItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_value_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_value_item.go new file mode 100644 index 0000000..b53af29 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_value_item.go @@ -0,0 +1,22 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PerformanceValueItem is a nested struct in r_kvstore response +type PerformanceValueItem struct { + Value string `json:"Value" xml:"Value"` + Date string `json:"Date" xml:"Date"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_values.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_values.go new file mode 100644 index 0000000..34f00ae --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_performance_values.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PerformanceValues is a nested struct in r_kvstore response +type PerformanceValues struct { + PerformanceValue []PerformanceValueItem `json:"PerformanceValue" xml:"PerformanceValue"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_redis_proxy_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_redis_proxy_list.go new file mode 100644 index 0000000..8029a41 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_redis_proxy_list.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RedisProxyList is a nested struct in r_kvstore response +type RedisProxyList struct { + NodeInfo []NodeInfo `json:"NodeInfo" xml:"NodeInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_redis_shard_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_redis_shard_list.go new file mode 100644 index 0000000..962176f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_redis_shard_list.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RedisShardList is a nested struct in r_kvstore response +type RedisShardList struct { + NodeInfo []NodeInfo `json:"NodeInfo" xml:"NodeInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_region_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_region_ids.go new file mode 100644 index 0000000..fc495ee --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_region_ids.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RegionIds is a nested struct in r_kvstore response +type RegionIds struct { + KVStoreRegion []KVStoreRegion `json:"KVStoreRegion" xml:"KVStoreRegion"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_replicas.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_replicas.go new file mode 100644 index 0000000..2baf94b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_replicas.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Replicas is a nested struct in r_kvstore response +type Replicas struct { + Items []Items `json:"Items" xml:"Items"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_security_ip_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_security_ip_group.go new file mode 100644 index 0000000..9bfb322 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_security_ip_group.go @@ -0,0 +1,23 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SecurityIpGroup is a nested struct in r_kvstore response +type SecurityIpGroup struct { + SecurityIpGroupName string `json:"SecurityIpGroupName" xml:"SecurityIpGroupName"` + SecurityIpGroupAttribute string `json:"SecurityIpGroupAttribute" xml:"SecurityIpGroupAttribute"` + SecurityIpList string `json:"SecurityIpList" xml:"SecurityIpList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_security_ip_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_security_ip_groups.go new file mode 100644 index 0000000..65805c3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_security_ip_groups.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SecurityIpGroups is a nested struct in r_kvstore response +type SecurityIpGroups struct { + SecurityIpGroup []SecurityIpGroup `json:"SecurityIpGroup" xml:"SecurityIpGroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_snapshot.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_snapshot.go new file mode 100644 index 0000000..0827922 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_snapshot.go @@ -0,0 +1,30 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Snapshot is a nested struct in r_kvstore response +type Snapshot struct { + SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` + SnapshotName string `json:"SnapshotName" xml:"SnapshotName"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Memory int `json:"Memory" xml:"Memory"` + RdbSize int `json:"RdbSize" xml:"RdbSize"` + Status string `json:"Status" xml:"Status"` + Type string `json:"Type" xml:"Type"` + OssDownloadInPath string `json:"OssDownloadInPath" xml:"OssDownloadInPath"` + OssDownloadOutPath string `json:"OssDownloadOutPath" xml:"OssDownloadOutPath"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_snapshots.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_snapshots.go new file mode 100644 index 0000000..8b2c36d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_snapshots.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Snapshots is a nested struct in r_kvstore response +type Snapshots struct { + Snapshot []Snapshot `json:"Snapshot" xml:"Snapshot"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_temp_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_temp_instance.go new file mode 100644 index 0000000..d107d55 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_temp_instance.go @@ -0,0 +1,28 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TempInstance is a nested struct in r_kvstore response +type TempInstance struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + TempInstanceId string `json:"TempInstanceId" xml:"TempInstanceId"` + SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Domain string `json:"Domain" xml:"Domain"` + Status string `json:"Status" xml:"Status"` + Memory int `json:"Memory" xml:"Memory"` + ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_temp_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_temp_instances.go new file mode 100644 index 0000000..67ac9e0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_temp_instances.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TempInstances is a nested struct in r_kvstore response +type TempInstances struct { + TempInstance []TempInstance `json:"TempInstance" xml:"TempInstance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_v_switch.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_v_switch.go new file mode 100644 index 0000000..c4216fa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_v_switch.go @@ -0,0 +1,28 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VSwitch is a nested struct in r_kvstore response +type VSwitch struct { + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + IsDefault bool `json:"IsDefault" xml:"IsDefault"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + VSwitchName string `json:"VSwitchName" xml:"VSwitchName"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + Status string `json:"Status" xml:"Status"` + CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` + IzNo string `json:"IzNo" xml:"IzNo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_v_switch_in_describe_rds_v_switchs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_v_switch_in_describe_rds_v_switchs.go new file mode 100644 index 0000000..30529e0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_v_switch_in_describe_rds_v_switchs.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VSwitchInDescribeRdsVSwitchs is a nested struct in r_kvstore response +type VSwitchInDescribeRdsVSwitchs struct { + VSwitchItem []VSwitchItem `json:"VSwitchItem" xml:"VSwitchItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_v_switch_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_v_switch_item.go new file mode 100644 index 0000000..a2e3d7a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_v_switch_item.go @@ -0,0 +1,31 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VSwitchItem is a nested struct in r_kvstore response +type VSwitchItem struct { + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + VSwitchName string `json:"VSwitchName" xml:"VSwitchName"` + IzNo string `json:"IzNo" xml:"IzNo"` + Bid string `json:"Bid" xml:"Bid"` + AliUid string `json:"AliUid" xml:"AliUid"` + RegionNo string `json:"RegionNo" xml:"RegionNo"` + CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` + IsDefault bool `json:"IsDefault" xml:"IsDefault"` + Status string `json:"Status" xml:"Status"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_v_switches.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_v_switches.go new file mode 100644 index 0000000..98b4a0c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_v_switches.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VSwitches is a nested struct in r_kvstore response +type VSwitches struct { + VSwitch []VSwitchItem `json:"VSwitch" xml:"VSwitch"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_v_switchs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_v_switchs.go new file mode 100644 index 0000000..189654f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_v_switchs.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VSwitchs is a nested struct in r_kvstore response +type VSwitchs struct { + VSwitch []VSwitch `json:"VSwitch" xml:"VSwitch"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_vpc.go new file mode 100644 index 0000000..67a1576 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_vpc.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 r_kvstore response +type Vpc struct { + VpcItem []VpcItem `json:"VpcItem" xml:"VpcItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_vpc_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_vpc_item.go new file mode 100644 index 0000000..beeb8b1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_vpc_item.go @@ -0,0 +1,31 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VpcItem is a nested struct in r_kvstore response +type VpcItem struct { + VpcId string `json:"VpcId" xml:"VpcId"` + VpcName string `json:"VpcName" xml:"VpcName"` + Bid string `json:"Bid" xml:"Bid"` + AliUid string `json:"AliUid" xml:"AliUid"` + RegionNo string `json:"RegionNo" xml:"RegionNo"` + CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` + IsDefault bool `json:"IsDefault" xml:"IsDefault"` + Status string `json:"Status" xml:"Status"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + VSwitchs []VSwitch `json:"VSwitchs" xml:"VSwitchs"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_vpcs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_vpcs.go new file mode 100644 index 0000000..6ae8c41 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/struct_vpcs.go @@ -0,0 +1,21 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 r_kvstore response +type Vpcs struct { + Vpc []VpcItem `json:"Vpc" xml:"Vpc"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/switch_network.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/switch_network.go new file mode 100644 index 0000000..e6bba30 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/switch_network.go @@ -0,0 +1,114 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SwitchNetwork invokes the r_kvstore.SwitchNetwork API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/switchnetwork.html +func (client *Client) SwitchNetwork(request *SwitchNetworkRequest) (response *SwitchNetworkResponse, err error) { + response = CreateSwitchNetworkResponse() + err = client.DoAction(request, response) + return +} + +// SwitchNetworkWithChan invokes the r_kvstore.SwitchNetwork API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/switchnetwork.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SwitchNetworkWithChan(request *SwitchNetworkRequest) (<-chan *SwitchNetworkResponse, <-chan error) { + responseChan := make(chan *SwitchNetworkResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SwitchNetwork(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SwitchNetworkWithCallback invokes the r_kvstore.SwitchNetwork API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/switchnetwork.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SwitchNetworkWithCallback(request *SwitchNetworkRequest, callback func(response *SwitchNetworkResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SwitchNetworkResponse + var err error + defer close(result) + response, err = client.SwitchNetwork(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SwitchNetworkRequest is the request struct for api SwitchNetwork +type SwitchNetworkRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + TargetNetworkType string `position:"Query" name:"TargetNetworkType"` + RetainClassic string `position:"Query" name:"RetainClassic"` + ClassicExpiredDays string `position:"Query" name:"ClassicExpiredDays"` + VpcId string `position:"Query" name:"VpcId"` +} + +// SwitchNetworkResponse is the response struct for api SwitchNetwork +type SwitchNetworkResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskId string `json:"TaskId" xml:"TaskId"` +} + +// CreateSwitchNetworkRequest creates a request to invoke SwitchNetwork API +func CreateSwitchNetworkRequest() (request *SwitchNetworkRequest) { + request = &SwitchNetworkRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "SwitchNetwork", "redisa", "openAPI") + return +} + +// CreateSwitchNetworkResponse creates a response to parse from SwitchNetwork response +func CreateSwitchNetworkResponse() (response *SwitchNetworkResponse) { + response = &SwitchNetworkResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/switch_temp_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/switch_temp_instance.go new file mode 100644 index 0000000..fd016d2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/switch_temp_instance.go @@ -0,0 +1,106 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SwitchTempInstance invokes the r_kvstore.SwitchTempInstance API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/switchtempinstance.html +func (client *Client) SwitchTempInstance(request *SwitchTempInstanceRequest) (response *SwitchTempInstanceResponse, err error) { + response = CreateSwitchTempInstanceResponse() + err = client.DoAction(request, response) + return +} + +// SwitchTempInstanceWithChan invokes the r_kvstore.SwitchTempInstance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/switchtempinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SwitchTempInstanceWithChan(request *SwitchTempInstanceRequest) (<-chan *SwitchTempInstanceResponse, <-chan error) { + responseChan := make(chan *SwitchTempInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SwitchTempInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SwitchTempInstanceWithCallback invokes the r_kvstore.SwitchTempInstance API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/switchtempinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SwitchTempInstanceWithCallback(request *SwitchTempInstanceRequest, callback func(response *SwitchTempInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SwitchTempInstanceResponse + var err error + defer close(result) + response, err = client.SwitchTempInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SwitchTempInstanceRequest is the request struct for api SwitchTempInstance +type SwitchTempInstanceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SwitchTempInstanceResponse is the response struct for api SwitchTempInstance +type SwitchTempInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSwitchTempInstanceRequest creates a request to invoke SwitchTempInstance API +func CreateSwitchTempInstanceRequest() (request *SwitchTempInstanceRequest) { + request = &SwitchTempInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "SwitchTempInstance", "redisa", "openAPI") + return +} + +// CreateSwitchTempInstanceResponse creates a response to parse from SwitchTempInstance response +func CreateSwitchTempInstanceResponse() (response *SwitchTempInstanceResponse) { + response = &SwitchTempInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/transform_to_pre_paid.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/transform_to_pre_paid.go new file mode 100644 index 0000000..73e7e38 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/transform_to_pre_paid.go @@ -0,0 +1,113 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TransformToPrePaid invokes the r_kvstore.TransformToPrePaid API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/transformtoprepaid.html +func (client *Client) TransformToPrePaid(request *TransformToPrePaidRequest) (response *TransformToPrePaidResponse, err error) { + response = CreateTransformToPrePaidResponse() + err = client.DoAction(request, response) + return +} + +// TransformToPrePaidWithChan invokes the r_kvstore.TransformToPrePaid API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/transformtoprepaid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TransformToPrePaidWithChan(request *TransformToPrePaidRequest) (<-chan *TransformToPrePaidResponse, <-chan error) { + responseChan := make(chan *TransformToPrePaidResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TransformToPrePaid(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TransformToPrePaidWithCallback invokes the r_kvstore.TransformToPrePaid API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/transformtoprepaid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TransformToPrePaidWithCallback(request *TransformToPrePaidRequest, callback func(response *TransformToPrePaidResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TransformToPrePaidResponse + var err error + defer close(result) + response, err = client.TransformToPrePaid(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TransformToPrePaidRequest is the request struct for api TransformToPrePaid +type TransformToPrePaidRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Period requests.Integer `position:"Query" name:"Period"` + InstanceId string `position:"Query" name:"InstanceId"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` + FromApp string `position:"Query" name:"FromApp"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// TransformToPrePaidResponse is the response struct for api TransformToPrePaid +type TransformToPrePaidResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + OrderId string `json:"OrderId" xml:"OrderId"` + EndTime string `json:"EndTime" xml:"EndTime"` +} + +// CreateTransformToPrePaidRequest creates a request to invoke TransformToPrePaid API +func CreateTransformToPrePaidRequest() (request *TransformToPrePaidRequest) { + request = &TransformToPrePaidRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "TransformToPrePaid", "redisa", "openAPI") + return +} + +// CreateTransformToPrePaidResponse creates a response to parse from TransformToPrePaid response +func CreateTransformToPrePaidResponse() (response *TransformToPrePaidResponse) { + response = &TransformToPrePaidResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/verify_password.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/verify_password.go new file mode 100644 index 0000000..d07344b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore/verify_password.go @@ -0,0 +1,109 @@ +package r_kvstore + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// VerifyPassword invokes the r_kvstore.VerifyPassword API synchronously +// api document: https://help.aliyun.com/api/r-kvstore/verifypassword.html +func (client *Client) VerifyPassword(request *VerifyPasswordRequest) (response *VerifyPasswordResponse, err error) { + response = CreateVerifyPasswordResponse() + err = client.DoAction(request, response) + return +} + +// VerifyPasswordWithChan invokes the r_kvstore.VerifyPassword API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/verifypassword.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VerifyPasswordWithChan(request *VerifyPasswordRequest) (<-chan *VerifyPasswordResponse, <-chan error) { + responseChan := make(chan *VerifyPasswordResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.VerifyPassword(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// VerifyPasswordWithCallback invokes the r_kvstore.VerifyPassword API asynchronously +// api document: https://help.aliyun.com/api/r-kvstore/verifypassword.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) VerifyPasswordWithCallback(request *VerifyPasswordRequest, callback func(response *VerifyPasswordResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *VerifyPasswordResponse + var err error + defer close(result) + response, err = client.VerifyPassword(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// VerifyPasswordRequest is the request struct for api VerifyPassword +type VerifyPasswordRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Password string `position:"Query" name:"Password"` + InstanceId string `position:"Query" name:"InstanceId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// VerifyPasswordResponse is the response struct for api VerifyPassword +type VerifyPasswordResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateVerifyPasswordRequest creates a request to invoke VerifyPassword API +func CreateVerifyPasswordRequest() (request *VerifyPasswordRequest) { + request = &VerifyPasswordRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("R-kvstore", "2015-01-01", "VerifyPassword", "redisa", "openAPI") + return +} + +// CreateVerifyPasswordResponse creates a response to parse from VerifyPassword response +func CreateVerifyPasswordResponse() (response *VerifyPasswordResponse) { + response = &VerifyPasswordResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/add_user_to_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/add_user_to_group.go new file mode 100644 index 0000000..e4ef3cf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/add_user_to_group.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddUserToGroup invokes the ram.AddUserToGroup API synchronously +// api document: https://help.aliyun.com/api/ram/addusertogroup.html +func (client *Client) AddUserToGroup(request *AddUserToGroupRequest) (response *AddUserToGroupResponse, err error) { + response = CreateAddUserToGroupResponse() + err = client.DoAction(request, response) + return +} + +// AddUserToGroupWithChan invokes the ram.AddUserToGroup API asynchronously +// api document: https://help.aliyun.com/api/ram/addusertogroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddUserToGroupWithChan(request *AddUserToGroupRequest) (<-chan *AddUserToGroupResponse, <-chan error) { + responseChan := make(chan *AddUserToGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddUserToGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddUserToGroupWithCallback invokes the ram.AddUserToGroup API asynchronously +// api document: https://help.aliyun.com/api/ram/addusertogroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddUserToGroupWithCallback(request *AddUserToGroupRequest, callback func(response *AddUserToGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddUserToGroupResponse + var err error + defer close(result) + response, err = client.AddUserToGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddUserToGroupRequest is the request struct for api AddUserToGroup +type AddUserToGroupRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` + GroupName string `position:"Query" name:"GroupName"` +} + +// AddUserToGroupResponse is the response struct for api AddUserToGroup +type AddUserToGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddUserToGroupRequest creates a request to invoke AddUserToGroup API +func CreateAddUserToGroupRequest() (request *AddUserToGroupRequest) { + request = &AddUserToGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "AddUserToGroup", "", "") + return +} + +// CreateAddUserToGroupResponse creates a response to parse from AddUserToGroup response +func CreateAddUserToGroupResponse() (response *AddUserToGroupResponse) { + response = &AddUserToGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/attach_policy_to_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/attach_policy_to_group.go new file mode 100644 index 0000000..aa6f226 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/attach_policy_to_group.go @@ -0,0 +1,105 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AttachPolicyToGroup invokes the ram.AttachPolicyToGroup API synchronously +// api document: https://help.aliyun.com/api/ram/attachpolicytogroup.html +func (client *Client) AttachPolicyToGroup(request *AttachPolicyToGroupRequest) (response *AttachPolicyToGroupResponse, err error) { + response = CreateAttachPolicyToGroupResponse() + err = client.DoAction(request, response) + return +} + +// AttachPolicyToGroupWithChan invokes the ram.AttachPolicyToGroup API asynchronously +// api document: https://help.aliyun.com/api/ram/attachpolicytogroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachPolicyToGroupWithChan(request *AttachPolicyToGroupRequest) (<-chan *AttachPolicyToGroupResponse, <-chan error) { + responseChan := make(chan *AttachPolicyToGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AttachPolicyToGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AttachPolicyToGroupWithCallback invokes the ram.AttachPolicyToGroup API asynchronously +// api document: https://help.aliyun.com/api/ram/attachpolicytogroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachPolicyToGroupWithCallback(request *AttachPolicyToGroupRequest, callback func(response *AttachPolicyToGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AttachPolicyToGroupResponse + var err error + defer close(result) + response, err = client.AttachPolicyToGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AttachPolicyToGroupRequest is the request struct for api AttachPolicyToGroup +type AttachPolicyToGroupRequest struct { + *requests.RpcRequest + PolicyType string `position:"Query" name:"PolicyType"` + PolicyName string `position:"Query" name:"PolicyName"` + GroupName string `position:"Query" name:"GroupName"` +} + +// AttachPolicyToGroupResponse is the response struct for api AttachPolicyToGroup +type AttachPolicyToGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAttachPolicyToGroupRequest creates a request to invoke AttachPolicyToGroup API +func CreateAttachPolicyToGroupRequest() (request *AttachPolicyToGroupRequest) { + request = &AttachPolicyToGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "AttachPolicyToGroup", "", "") + return +} + +// CreateAttachPolicyToGroupResponse creates a response to parse from AttachPolicyToGroup response +func CreateAttachPolicyToGroupResponse() (response *AttachPolicyToGroupResponse) { + response = &AttachPolicyToGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/attach_policy_to_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/attach_policy_to_role.go new file mode 100644 index 0000000..0a1ca57 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/attach_policy_to_role.go @@ -0,0 +1,105 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AttachPolicyToRole invokes the ram.AttachPolicyToRole API synchronously +// api document: https://help.aliyun.com/api/ram/attachpolicytorole.html +func (client *Client) AttachPolicyToRole(request *AttachPolicyToRoleRequest) (response *AttachPolicyToRoleResponse, err error) { + response = CreateAttachPolicyToRoleResponse() + err = client.DoAction(request, response) + return +} + +// AttachPolicyToRoleWithChan invokes the ram.AttachPolicyToRole API asynchronously +// api document: https://help.aliyun.com/api/ram/attachpolicytorole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachPolicyToRoleWithChan(request *AttachPolicyToRoleRequest) (<-chan *AttachPolicyToRoleResponse, <-chan error) { + responseChan := make(chan *AttachPolicyToRoleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AttachPolicyToRole(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AttachPolicyToRoleWithCallback invokes the ram.AttachPolicyToRole API asynchronously +// api document: https://help.aliyun.com/api/ram/attachpolicytorole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachPolicyToRoleWithCallback(request *AttachPolicyToRoleRequest, callback func(response *AttachPolicyToRoleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AttachPolicyToRoleResponse + var err error + defer close(result) + response, err = client.AttachPolicyToRole(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AttachPolicyToRoleRequest is the request struct for api AttachPolicyToRole +type AttachPolicyToRoleRequest struct { + *requests.RpcRequest + PolicyType string `position:"Query" name:"PolicyType"` + PolicyName string `position:"Query" name:"PolicyName"` + RoleName string `position:"Query" name:"RoleName"` +} + +// AttachPolicyToRoleResponse is the response struct for api AttachPolicyToRole +type AttachPolicyToRoleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAttachPolicyToRoleRequest creates a request to invoke AttachPolicyToRole API +func CreateAttachPolicyToRoleRequest() (request *AttachPolicyToRoleRequest) { + request = &AttachPolicyToRoleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "AttachPolicyToRole", "", "") + return +} + +// CreateAttachPolicyToRoleResponse creates a response to parse from AttachPolicyToRole response +func CreateAttachPolicyToRoleResponse() (response *AttachPolicyToRoleResponse) { + response = &AttachPolicyToRoleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/attach_policy_to_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/attach_policy_to_user.go new file mode 100644 index 0000000..d50c039 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/attach_policy_to_user.go @@ -0,0 +1,105 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AttachPolicyToUser invokes the ram.AttachPolicyToUser API synchronously +// api document: https://help.aliyun.com/api/ram/attachpolicytouser.html +func (client *Client) AttachPolicyToUser(request *AttachPolicyToUserRequest) (response *AttachPolicyToUserResponse, err error) { + response = CreateAttachPolicyToUserResponse() + err = client.DoAction(request, response) + return +} + +// AttachPolicyToUserWithChan invokes the ram.AttachPolicyToUser API asynchronously +// api document: https://help.aliyun.com/api/ram/attachpolicytouser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachPolicyToUserWithChan(request *AttachPolicyToUserRequest) (<-chan *AttachPolicyToUserResponse, <-chan error) { + responseChan := make(chan *AttachPolicyToUserResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AttachPolicyToUser(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AttachPolicyToUserWithCallback invokes the ram.AttachPolicyToUser API asynchronously +// api document: https://help.aliyun.com/api/ram/attachpolicytouser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AttachPolicyToUserWithCallback(request *AttachPolicyToUserRequest, callback func(response *AttachPolicyToUserResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AttachPolicyToUserResponse + var err error + defer close(result) + response, err = client.AttachPolicyToUser(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AttachPolicyToUserRequest is the request struct for api AttachPolicyToUser +type AttachPolicyToUserRequest struct { + *requests.RpcRequest + PolicyType string `position:"Query" name:"PolicyType"` + PolicyName string `position:"Query" name:"PolicyName"` + UserName string `position:"Query" name:"UserName"` +} + +// AttachPolicyToUserResponse is the response struct for api AttachPolicyToUser +type AttachPolicyToUserResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAttachPolicyToUserRequest creates a request to invoke AttachPolicyToUser API +func CreateAttachPolicyToUserRequest() (request *AttachPolicyToUserRequest) { + request = &AttachPolicyToUserRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "AttachPolicyToUser", "", "") + return +} + +// CreateAttachPolicyToUserResponse creates a response to parse from AttachPolicyToUser response +func CreateAttachPolicyToUserResponse() (response *AttachPolicyToUserResponse) { + response = &AttachPolicyToUserResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/bind_mfa_device.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/bind_mfa_device.go new file mode 100644 index 0000000..b4913a7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/bind_mfa_device.go @@ -0,0 +1,106 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// BindMFADevice invokes the ram.BindMFADevice API synchronously +// api document: https://help.aliyun.com/api/ram/bindmfadevice.html +func (client *Client) BindMFADevice(request *BindMFADeviceRequest) (response *BindMFADeviceResponse, err error) { + response = CreateBindMFADeviceResponse() + err = client.DoAction(request, response) + return +} + +// BindMFADeviceWithChan invokes the ram.BindMFADevice API asynchronously +// api document: https://help.aliyun.com/api/ram/bindmfadevice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BindMFADeviceWithChan(request *BindMFADeviceRequest) (<-chan *BindMFADeviceResponse, <-chan error) { + responseChan := make(chan *BindMFADeviceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BindMFADevice(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BindMFADeviceWithCallback invokes the ram.BindMFADevice API asynchronously +// api document: https://help.aliyun.com/api/ram/bindmfadevice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BindMFADeviceWithCallback(request *BindMFADeviceRequest, callback func(response *BindMFADeviceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BindMFADeviceResponse + var err error + defer close(result) + response, err = client.BindMFADevice(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BindMFADeviceRequest is the request struct for api BindMFADevice +type BindMFADeviceRequest struct { + *requests.RpcRequest + SerialNumber string `position:"Query" name:"SerialNumber"` + UserName string `position:"Query" name:"UserName"` + AuthenticationCode1 string `position:"Query" name:"AuthenticationCode1"` + AuthenticationCode2 string `position:"Query" name:"AuthenticationCode2"` +} + +// BindMFADeviceResponse is the response struct for api BindMFADevice +type BindMFADeviceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateBindMFADeviceRequest creates a request to invoke BindMFADevice API +func CreateBindMFADeviceRequest() (request *BindMFADeviceRequest) { + request = &BindMFADeviceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "BindMFADevice", "", "") + return +} + +// CreateBindMFADeviceResponse creates a response to parse from BindMFADevice response +func CreateBindMFADeviceResponse() (response *BindMFADeviceResponse) { + response = &BindMFADeviceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/change_password.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/change_password.go new file mode 100644 index 0000000..ac0aff6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/change_password.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ChangePassword invokes the ram.ChangePassword API synchronously +// api document: https://help.aliyun.com/api/ram/changepassword.html +func (client *Client) ChangePassword(request *ChangePasswordRequest) (response *ChangePasswordResponse, err error) { + response = CreateChangePasswordResponse() + err = client.DoAction(request, response) + return +} + +// ChangePasswordWithChan invokes the ram.ChangePassword API asynchronously +// api document: https://help.aliyun.com/api/ram/changepassword.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ChangePasswordWithChan(request *ChangePasswordRequest) (<-chan *ChangePasswordResponse, <-chan error) { + responseChan := make(chan *ChangePasswordResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ChangePassword(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ChangePasswordWithCallback invokes the ram.ChangePassword API asynchronously +// api document: https://help.aliyun.com/api/ram/changepassword.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ChangePasswordWithCallback(request *ChangePasswordRequest, callback func(response *ChangePasswordResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ChangePasswordResponse + var err error + defer close(result) + response, err = client.ChangePassword(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ChangePasswordRequest is the request struct for api ChangePassword +type ChangePasswordRequest struct { + *requests.RpcRequest + OldPassword string `position:"Query" name:"OldPassword"` + NewPassword string `position:"Query" name:"NewPassword"` +} + +// ChangePasswordResponse is the response struct for api ChangePassword +type ChangePasswordResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateChangePasswordRequest creates a request to invoke ChangePassword API +func CreateChangePasswordRequest() (request *ChangePasswordRequest) { + request = &ChangePasswordRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "ChangePassword", "", "") + return +} + +// CreateChangePasswordResponse creates a response to parse from ChangePassword response +func CreateChangePasswordResponse() (response *ChangePasswordResponse) { + response = &ChangePasswordResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/clear_account_alias.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/clear_account_alias.go new file mode 100644 index 0000000..3cb6210 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/clear_account_alias.go @@ -0,0 +1,102 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ClearAccountAlias invokes the ram.ClearAccountAlias API synchronously +// api document: https://help.aliyun.com/api/ram/clearaccountalias.html +func (client *Client) ClearAccountAlias(request *ClearAccountAliasRequest) (response *ClearAccountAliasResponse, err error) { + response = CreateClearAccountAliasResponse() + err = client.DoAction(request, response) + return +} + +// ClearAccountAliasWithChan invokes the ram.ClearAccountAlias API asynchronously +// api document: https://help.aliyun.com/api/ram/clearaccountalias.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ClearAccountAliasWithChan(request *ClearAccountAliasRequest) (<-chan *ClearAccountAliasResponse, <-chan error) { + responseChan := make(chan *ClearAccountAliasResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ClearAccountAlias(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ClearAccountAliasWithCallback invokes the ram.ClearAccountAlias API asynchronously +// api document: https://help.aliyun.com/api/ram/clearaccountalias.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ClearAccountAliasWithCallback(request *ClearAccountAliasRequest, callback func(response *ClearAccountAliasResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ClearAccountAliasResponse + var err error + defer close(result) + response, err = client.ClearAccountAlias(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ClearAccountAliasRequest is the request struct for api ClearAccountAlias +type ClearAccountAliasRequest struct { + *requests.RpcRequest +} + +// ClearAccountAliasResponse is the response struct for api ClearAccountAlias +type ClearAccountAliasResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateClearAccountAliasRequest creates a request to invoke ClearAccountAlias API +func CreateClearAccountAliasRequest() (request *ClearAccountAliasRequest) { + request = &ClearAccountAliasRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "ClearAccountAlias", "", "") + return +} + +// CreateClearAccountAliasResponse creates a response to parse from ClearAccountAlias response +func CreateClearAccountAliasResponse() (response *ClearAccountAliasResponse) { + response = &ClearAccountAliasResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/client.go new file mode 100644 index 0000000..a277007 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/client.go @@ -0,0 +1,81 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_access_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_access_key.go new file mode 100644 index 0000000..1ef5b30 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_access_key.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateAccessKey invokes the ram.CreateAccessKey API synchronously +// api document: https://help.aliyun.com/api/ram/createaccesskey.html +func (client *Client) CreateAccessKey(request *CreateAccessKeyRequest) (response *CreateAccessKeyResponse, err error) { + response = CreateCreateAccessKeyResponse() + err = client.DoAction(request, response) + return +} + +// CreateAccessKeyWithChan invokes the ram.CreateAccessKey API asynchronously +// api document: https://help.aliyun.com/api/ram/createaccesskey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateAccessKeyWithChan(request *CreateAccessKeyRequest) (<-chan *CreateAccessKeyResponse, <-chan error) { + responseChan := make(chan *CreateAccessKeyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateAccessKey(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateAccessKeyWithCallback invokes the ram.CreateAccessKey API asynchronously +// api document: https://help.aliyun.com/api/ram/createaccesskey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateAccessKeyWithCallback(request *CreateAccessKeyRequest, callback func(response *CreateAccessKeyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateAccessKeyResponse + var err error + defer close(result) + response, err = client.CreateAccessKey(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateAccessKeyRequest is the request struct for api CreateAccessKey +type CreateAccessKeyRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` +} + +// CreateAccessKeyResponse is the response struct for api CreateAccessKey +type CreateAccessKeyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AccessKey AccessKey `json:"AccessKey" xml:"AccessKey"` +} + +// CreateCreateAccessKeyRequest creates a request to invoke CreateAccessKey API +func CreateCreateAccessKeyRequest() (request *CreateAccessKeyRequest) { + request = &CreateAccessKeyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "CreateAccessKey", "", "") + return +} + +// CreateCreateAccessKeyResponse creates a response to parse from CreateAccessKey response +func CreateCreateAccessKeyResponse() (response *CreateAccessKeyResponse) { + response = &CreateAccessKeyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_group.go new file mode 100644 index 0000000..02d1552 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_group.go @@ -0,0 +1,105 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateGroup invokes the ram.CreateGroup API synchronously +// api document: https://help.aliyun.com/api/ram/creategroup.html +func (client *Client) CreateGroup(request *CreateGroupRequest) (response *CreateGroupResponse, err error) { + response = CreateCreateGroupResponse() + err = client.DoAction(request, response) + return +} + +// CreateGroupWithChan invokes the ram.CreateGroup API asynchronously +// api document: https://help.aliyun.com/api/ram/creategroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateGroupWithChan(request *CreateGroupRequest) (<-chan *CreateGroupResponse, <-chan error) { + responseChan := make(chan *CreateGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateGroupWithCallback invokes the ram.CreateGroup API asynchronously +// api document: https://help.aliyun.com/api/ram/creategroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateGroupWithCallback(request *CreateGroupRequest, callback func(response *CreateGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateGroupResponse + var err error + defer close(result) + response, err = client.CreateGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateGroupRequest is the request struct for api CreateGroup +type CreateGroupRequest struct { + *requests.RpcRequest + GroupName string `position:"Query" name:"GroupName"` + Comments string `position:"Query" name:"Comments"` +} + +// CreateGroupResponse is the response struct for api CreateGroup +type CreateGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Group Group `json:"Group" xml:"Group"` +} + +// CreateCreateGroupRequest creates a request to invoke CreateGroup API +func CreateCreateGroupRequest() (request *CreateGroupRequest) { + request = &CreateGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "CreateGroup", "", "") + return +} + +// CreateCreateGroupResponse creates a response to parse from CreateGroup response +func CreateCreateGroupResponse() (response *CreateGroupResponse) { + response = &CreateGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_login_profile.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_login_profile.go new file mode 100644 index 0000000..f3f66f5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_login_profile.go @@ -0,0 +1,107 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateLoginProfile invokes the ram.CreateLoginProfile API synchronously +// api document: https://help.aliyun.com/api/ram/createloginprofile.html +func (client *Client) CreateLoginProfile(request *CreateLoginProfileRequest) (response *CreateLoginProfileResponse, err error) { + response = CreateCreateLoginProfileResponse() + err = client.DoAction(request, response) + return +} + +// CreateLoginProfileWithChan invokes the ram.CreateLoginProfile API asynchronously +// api document: https://help.aliyun.com/api/ram/createloginprofile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLoginProfileWithChan(request *CreateLoginProfileRequest) (<-chan *CreateLoginProfileResponse, <-chan error) { + responseChan := make(chan *CreateLoginProfileResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateLoginProfile(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateLoginProfileWithCallback invokes the ram.CreateLoginProfile API asynchronously +// api document: https://help.aliyun.com/api/ram/createloginprofile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLoginProfileWithCallback(request *CreateLoginProfileRequest, callback func(response *CreateLoginProfileResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateLoginProfileResponse + var err error + defer close(result) + response, err = client.CreateLoginProfile(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateLoginProfileRequest is the request struct for api CreateLoginProfile +type CreateLoginProfileRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` + Password string `position:"Query" name:"Password"` + PasswordResetRequired requests.Boolean `position:"Query" name:"PasswordResetRequired"` + MFABindRequired requests.Boolean `position:"Query" name:"MFABindRequired"` +} + +// CreateLoginProfileResponse is the response struct for api CreateLoginProfile +type CreateLoginProfileResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LoginProfile LoginProfile `json:"LoginProfile" xml:"LoginProfile"` +} + +// CreateCreateLoginProfileRequest creates a request to invoke CreateLoginProfile API +func CreateCreateLoginProfileRequest() (request *CreateLoginProfileRequest) { + request = &CreateLoginProfileRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "CreateLoginProfile", "", "") + return +} + +// CreateCreateLoginProfileResponse creates a response to parse from CreateLoginProfile response +func CreateCreateLoginProfileResponse() (response *CreateLoginProfileResponse) { + response = &CreateLoginProfileResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_policy.go new file mode 100644 index 0000000..c1680c9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_policy.go @@ -0,0 +1,106 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreatePolicy invokes the ram.CreatePolicy API synchronously +// api document: https://help.aliyun.com/api/ram/createpolicy.html +func (client *Client) CreatePolicy(request *CreatePolicyRequest) (response *CreatePolicyResponse, err error) { + response = CreateCreatePolicyResponse() + err = client.DoAction(request, response) + return +} + +// CreatePolicyWithChan invokes the ram.CreatePolicy API asynchronously +// api document: https://help.aliyun.com/api/ram/createpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreatePolicyWithChan(request *CreatePolicyRequest) (<-chan *CreatePolicyResponse, <-chan error) { + responseChan := make(chan *CreatePolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreatePolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreatePolicyWithCallback invokes the ram.CreatePolicy API asynchronously +// api document: https://help.aliyun.com/api/ram/createpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreatePolicyWithCallback(request *CreatePolicyRequest, callback func(response *CreatePolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreatePolicyResponse + var err error + defer close(result) + response, err = client.CreatePolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreatePolicyRequest is the request struct for api CreatePolicy +type CreatePolicyRequest struct { + *requests.RpcRequest + PolicyName string `position:"Query" name:"PolicyName"` + Description string `position:"Query" name:"Description"` + PolicyDocument string `position:"Query" name:"PolicyDocument"` +} + +// CreatePolicyResponse is the response struct for api CreatePolicy +type CreatePolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Policy Policy `json:"Policy" xml:"Policy"` +} + +// CreateCreatePolicyRequest creates a request to invoke CreatePolicy API +func CreateCreatePolicyRequest() (request *CreatePolicyRequest) { + request = &CreatePolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "CreatePolicy", "", "") + return +} + +// CreateCreatePolicyResponse creates a response to parse from CreatePolicy response +func CreateCreatePolicyResponse() (response *CreatePolicyResponse) { + response = &CreatePolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_policy_version.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_policy_version.go new file mode 100644 index 0000000..e34b23f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_policy_version.go @@ -0,0 +1,106 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreatePolicyVersion invokes the ram.CreatePolicyVersion API synchronously +// api document: https://help.aliyun.com/api/ram/createpolicyversion.html +func (client *Client) CreatePolicyVersion(request *CreatePolicyVersionRequest) (response *CreatePolicyVersionResponse, err error) { + response = CreateCreatePolicyVersionResponse() + err = client.DoAction(request, response) + return +} + +// CreatePolicyVersionWithChan invokes the ram.CreatePolicyVersion API asynchronously +// api document: https://help.aliyun.com/api/ram/createpolicyversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreatePolicyVersionWithChan(request *CreatePolicyVersionRequest) (<-chan *CreatePolicyVersionResponse, <-chan error) { + responseChan := make(chan *CreatePolicyVersionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreatePolicyVersion(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreatePolicyVersionWithCallback invokes the ram.CreatePolicyVersion API asynchronously +// api document: https://help.aliyun.com/api/ram/createpolicyversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreatePolicyVersionWithCallback(request *CreatePolicyVersionRequest, callback func(response *CreatePolicyVersionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreatePolicyVersionResponse + var err error + defer close(result) + response, err = client.CreatePolicyVersion(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreatePolicyVersionRequest is the request struct for api CreatePolicyVersion +type CreatePolicyVersionRequest struct { + *requests.RpcRequest + PolicyName string `position:"Query" name:"PolicyName"` + PolicyDocument string `position:"Query" name:"PolicyDocument"` + SetAsDefault requests.Boolean `position:"Query" name:"SetAsDefault"` +} + +// CreatePolicyVersionResponse is the response struct for api CreatePolicyVersion +type CreatePolicyVersionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PolicyVersion PolicyVersion `json:"PolicyVersion" xml:"PolicyVersion"` +} + +// CreateCreatePolicyVersionRequest creates a request to invoke CreatePolicyVersion API +func CreateCreatePolicyVersionRequest() (request *CreatePolicyVersionRequest) { + request = &CreatePolicyVersionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "CreatePolicyVersion", "", "") + return +} + +// CreateCreatePolicyVersionResponse creates a response to parse from CreatePolicyVersion response +func CreateCreatePolicyVersionResponse() (response *CreatePolicyVersionResponse) { + response = &CreatePolicyVersionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_role.go new file mode 100644 index 0000000..c32b11b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_role.go @@ -0,0 +1,106 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateRole invokes the ram.CreateRole API synchronously +// api document: https://help.aliyun.com/api/ram/createrole.html +func (client *Client) CreateRole(request *CreateRoleRequest) (response *CreateRoleResponse, err error) { + response = CreateCreateRoleResponse() + err = client.DoAction(request, response) + return +} + +// CreateRoleWithChan invokes the ram.CreateRole API asynchronously +// api document: https://help.aliyun.com/api/ram/createrole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateRoleWithChan(request *CreateRoleRequest) (<-chan *CreateRoleResponse, <-chan error) { + responseChan := make(chan *CreateRoleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateRole(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateRoleWithCallback invokes the ram.CreateRole API asynchronously +// api document: https://help.aliyun.com/api/ram/createrole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateRoleWithCallback(request *CreateRoleRequest, callback func(response *CreateRoleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateRoleResponse + var err error + defer close(result) + response, err = client.CreateRole(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateRoleRequest is the request struct for api CreateRole +type CreateRoleRequest struct { + *requests.RpcRequest + RoleName string `position:"Query" name:"RoleName"` + Description string `position:"Query" name:"Description"` + AssumeRolePolicyDocument string `position:"Query" name:"AssumeRolePolicyDocument"` +} + +// CreateRoleResponse is the response struct for api CreateRole +type CreateRoleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Role Role `json:"Role" xml:"Role"` +} + +// CreateCreateRoleRequest creates a request to invoke CreateRole API +func CreateCreateRoleRequest() (request *CreateRoleRequest) { + request = &CreateRoleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "CreateRole", "", "") + return +} + +// CreateCreateRoleResponse creates a response to parse from CreateRole response +func CreateCreateRoleResponse() (response *CreateRoleResponse) { + response = &CreateRoleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_user.go new file mode 100644 index 0000000..df6f408 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_user.go @@ -0,0 +1,108 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateUser invokes the ram.CreateUser API synchronously +// api document: https://help.aliyun.com/api/ram/createuser.html +func (client *Client) CreateUser(request *CreateUserRequest) (response *CreateUserResponse, err error) { + response = CreateCreateUserResponse() + err = client.DoAction(request, response) + return +} + +// CreateUserWithChan invokes the ram.CreateUser API asynchronously +// api document: https://help.aliyun.com/api/ram/createuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateUserWithChan(request *CreateUserRequest) (<-chan *CreateUserResponse, <-chan error) { + responseChan := make(chan *CreateUserResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateUser(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateUserWithCallback invokes the ram.CreateUser API asynchronously +// api document: https://help.aliyun.com/api/ram/createuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateUserWithCallback(request *CreateUserRequest, callback func(response *CreateUserResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateUserResponse + var err error + defer close(result) + response, err = client.CreateUser(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateUserRequest is the request struct for api CreateUser +type CreateUserRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` + DisplayName string `position:"Query" name:"DisplayName"` + MobilePhone string `position:"Query" name:"MobilePhone"` + Email string `position:"Query" name:"Email"` + Comments string `position:"Query" name:"Comments"` +} + +// CreateUserResponse is the response struct for api CreateUser +type CreateUserResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + User User `json:"User" xml:"User"` +} + +// CreateCreateUserRequest creates a request to invoke CreateUser API +func CreateCreateUserRequest() (request *CreateUserRequest) { + request = &CreateUserRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "CreateUser", "", "") + return +} + +// CreateCreateUserResponse creates a response to parse from CreateUser response +func CreateCreateUserResponse() (response *CreateUserResponse) { + response = &CreateUserResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_virtual_mfa_device.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_virtual_mfa_device.go new file mode 100644 index 0000000..f8f6702 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/create_virtual_mfa_device.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateVirtualMFADevice invokes the ram.CreateVirtualMFADevice API synchronously +// api document: https://help.aliyun.com/api/ram/createvirtualmfadevice.html +func (client *Client) CreateVirtualMFADevice(request *CreateVirtualMFADeviceRequest) (response *CreateVirtualMFADeviceResponse, err error) { + response = CreateCreateVirtualMFADeviceResponse() + err = client.DoAction(request, response) + return +} + +// CreateVirtualMFADeviceWithChan invokes the ram.CreateVirtualMFADevice API asynchronously +// api document: https://help.aliyun.com/api/ram/createvirtualmfadevice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVirtualMFADeviceWithChan(request *CreateVirtualMFADeviceRequest) (<-chan *CreateVirtualMFADeviceResponse, <-chan error) { + responseChan := make(chan *CreateVirtualMFADeviceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateVirtualMFADevice(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateVirtualMFADeviceWithCallback invokes the ram.CreateVirtualMFADevice API asynchronously +// api document: https://help.aliyun.com/api/ram/createvirtualmfadevice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVirtualMFADeviceWithCallback(request *CreateVirtualMFADeviceRequest, callback func(response *CreateVirtualMFADeviceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateVirtualMFADeviceResponse + var err error + defer close(result) + response, err = client.CreateVirtualMFADevice(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateVirtualMFADeviceRequest is the request struct for api CreateVirtualMFADevice +type CreateVirtualMFADeviceRequest struct { + *requests.RpcRequest + VirtualMFADeviceName string `position:"Query" name:"VirtualMFADeviceName"` +} + +// CreateVirtualMFADeviceResponse is the response struct for api CreateVirtualMFADevice +type CreateVirtualMFADeviceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VirtualMFADevice VirtualMFADevice `json:"VirtualMFADevice" xml:"VirtualMFADevice"` +} + +// CreateCreateVirtualMFADeviceRequest creates a request to invoke CreateVirtualMFADevice API +func CreateCreateVirtualMFADeviceRequest() (request *CreateVirtualMFADeviceRequest) { + request = &CreateVirtualMFADeviceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "CreateVirtualMFADevice", "", "") + return +} + +// CreateCreateVirtualMFADeviceResponse creates a response to parse from CreateVirtualMFADevice response +func CreateCreateVirtualMFADeviceResponse() (response *CreateVirtualMFADeviceResponse) { + response = &CreateVirtualMFADeviceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_access_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_access_key.go new file mode 100644 index 0000000..042fab3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_access_key.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteAccessKey invokes the ram.DeleteAccessKey API synchronously +// api document: https://help.aliyun.com/api/ram/deleteaccesskey.html +func (client *Client) DeleteAccessKey(request *DeleteAccessKeyRequest) (response *DeleteAccessKeyResponse, err error) { + response = CreateDeleteAccessKeyResponse() + err = client.DoAction(request, response) + return +} + +// DeleteAccessKeyWithChan invokes the ram.DeleteAccessKey API asynchronously +// api document: https://help.aliyun.com/api/ram/deleteaccesskey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAccessKeyWithChan(request *DeleteAccessKeyRequest) (<-chan *DeleteAccessKeyResponse, <-chan error) { + responseChan := make(chan *DeleteAccessKeyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteAccessKey(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteAccessKeyWithCallback invokes the ram.DeleteAccessKey API asynchronously +// api document: https://help.aliyun.com/api/ram/deleteaccesskey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAccessKeyWithCallback(request *DeleteAccessKeyRequest, callback func(response *DeleteAccessKeyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteAccessKeyResponse + var err error + defer close(result) + response, err = client.DeleteAccessKey(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteAccessKeyRequest is the request struct for api DeleteAccessKey +type DeleteAccessKeyRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` + UserAccessKeyId string `position:"Query" name:"UserAccessKeyId"` +} + +// DeleteAccessKeyResponse is the response struct for api DeleteAccessKey +type DeleteAccessKeyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteAccessKeyRequest creates a request to invoke DeleteAccessKey API +func CreateDeleteAccessKeyRequest() (request *DeleteAccessKeyRequest) { + request = &DeleteAccessKeyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "DeleteAccessKey", "", "") + return +} + +// CreateDeleteAccessKeyResponse creates a response to parse from DeleteAccessKey response +func CreateDeleteAccessKeyResponse() (response *DeleteAccessKeyResponse) { + response = &DeleteAccessKeyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_group.go new file mode 100644 index 0000000..0fbe51a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_group.go @@ -0,0 +1,103 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteGroup invokes the ram.DeleteGroup API synchronously +// api document: https://help.aliyun.com/api/ram/deletegroup.html +func (client *Client) DeleteGroup(request *DeleteGroupRequest) (response *DeleteGroupResponse, err error) { + response = CreateDeleteGroupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteGroupWithChan invokes the ram.DeleteGroup API asynchronously +// api document: https://help.aliyun.com/api/ram/deletegroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteGroupWithChan(request *DeleteGroupRequest) (<-chan *DeleteGroupResponse, <-chan error) { + responseChan := make(chan *DeleteGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteGroupWithCallback invokes the ram.DeleteGroup API asynchronously +// api document: https://help.aliyun.com/api/ram/deletegroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteGroupWithCallback(request *DeleteGroupRequest, callback func(response *DeleteGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteGroupResponse + var err error + defer close(result) + response, err = client.DeleteGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteGroupRequest is the request struct for api DeleteGroup +type DeleteGroupRequest struct { + *requests.RpcRequest + GroupName string `position:"Query" name:"GroupName"` +} + +// DeleteGroupResponse is the response struct for api DeleteGroup +type DeleteGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteGroupRequest creates a request to invoke DeleteGroup API +func CreateDeleteGroupRequest() (request *DeleteGroupRequest) { + request = &DeleteGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "DeleteGroup", "", "") + return +} + +// CreateDeleteGroupResponse creates a response to parse from DeleteGroup response +func CreateDeleteGroupResponse() (response *DeleteGroupResponse) { + response = &DeleteGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_login_profile.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_login_profile.go new file mode 100644 index 0000000..3ff5be9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_login_profile.go @@ -0,0 +1,103 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLoginProfile invokes the ram.DeleteLoginProfile API synchronously +// api document: https://help.aliyun.com/api/ram/deleteloginprofile.html +func (client *Client) DeleteLoginProfile(request *DeleteLoginProfileRequest) (response *DeleteLoginProfileResponse, err error) { + response = CreateDeleteLoginProfileResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLoginProfileWithChan invokes the ram.DeleteLoginProfile API asynchronously +// api document: https://help.aliyun.com/api/ram/deleteloginprofile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLoginProfileWithChan(request *DeleteLoginProfileRequest) (<-chan *DeleteLoginProfileResponse, <-chan error) { + responseChan := make(chan *DeleteLoginProfileResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLoginProfile(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLoginProfileWithCallback invokes the ram.DeleteLoginProfile API asynchronously +// api document: https://help.aliyun.com/api/ram/deleteloginprofile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLoginProfileWithCallback(request *DeleteLoginProfileRequest, callback func(response *DeleteLoginProfileResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLoginProfileResponse + var err error + defer close(result) + response, err = client.DeleteLoginProfile(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLoginProfileRequest is the request struct for api DeleteLoginProfile +type DeleteLoginProfileRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` +} + +// DeleteLoginProfileResponse is the response struct for api DeleteLoginProfile +type DeleteLoginProfileResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLoginProfileRequest creates a request to invoke DeleteLoginProfile API +func CreateDeleteLoginProfileRequest() (request *DeleteLoginProfileRequest) { + request = &DeleteLoginProfileRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "DeleteLoginProfile", "", "") + return +} + +// CreateDeleteLoginProfileResponse creates a response to parse from DeleteLoginProfile response +func CreateDeleteLoginProfileResponse() (response *DeleteLoginProfileResponse) { + response = &DeleteLoginProfileResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_policy.go new file mode 100644 index 0000000..d6ef4f9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_policy.go @@ -0,0 +1,103 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeletePolicy invokes the ram.DeletePolicy API synchronously +// api document: https://help.aliyun.com/api/ram/deletepolicy.html +func (client *Client) DeletePolicy(request *DeletePolicyRequest) (response *DeletePolicyResponse, err error) { + response = CreateDeletePolicyResponse() + err = client.DoAction(request, response) + return +} + +// DeletePolicyWithChan invokes the ram.DeletePolicy API asynchronously +// api document: https://help.aliyun.com/api/ram/deletepolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeletePolicyWithChan(request *DeletePolicyRequest) (<-chan *DeletePolicyResponse, <-chan error) { + responseChan := make(chan *DeletePolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeletePolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeletePolicyWithCallback invokes the ram.DeletePolicy API asynchronously +// api document: https://help.aliyun.com/api/ram/deletepolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeletePolicyWithCallback(request *DeletePolicyRequest, callback func(response *DeletePolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeletePolicyResponse + var err error + defer close(result) + response, err = client.DeletePolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeletePolicyRequest is the request struct for api DeletePolicy +type DeletePolicyRequest struct { + *requests.RpcRequest + PolicyName string `position:"Query" name:"PolicyName"` +} + +// DeletePolicyResponse is the response struct for api DeletePolicy +type DeletePolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeletePolicyRequest creates a request to invoke DeletePolicy API +func CreateDeletePolicyRequest() (request *DeletePolicyRequest) { + request = &DeletePolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "DeletePolicy", "", "") + return +} + +// CreateDeletePolicyResponse creates a response to parse from DeletePolicy response +func CreateDeletePolicyResponse() (response *DeletePolicyResponse) { + response = &DeletePolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_policy_version.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_policy_version.go new file mode 100644 index 0000000..9530529 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_policy_version.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeletePolicyVersion invokes the ram.DeletePolicyVersion API synchronously +// api document: https://help.aliyun.com/api/ram/deletepolicyversion.html +func (client *Client) DeletePolicyVersion(request *DeletePolicyVersionRequest) (response *DeletePolicyVersionResponse, err error) { + response = CreateDeletePolicyVersionResponse() + err = client.DoAction(request, response) + return +} + +// DeletePolicyVersionWithChan invokes the ram.DeletePolicyVersion API asynchronously +// api document: https://help.aliyun.com/api/ram/deletepolicyversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeletePolicyVersionWithChan(request *DeletePolicyVersionRequest) (<-chan *DeletePolicyVersionResponse, <-chan error) { + responseChan := make(chan *DeletePolicyVersionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeletePolicyVersion(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeletePolicyVersionWithCallback invokes the ram.DeletePolicyVersion API asynchronously +// api document: https://help.aliyun.com/api/ram/deletepolicyversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeletePolicyVersionWithCallback(request *DeletePolicyVersionRequest, callback func(response *DeletePolicyVersionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeletePolicyVersionResponse + var err error + defer close(result) + response, err = client.DeletePolicyVersion(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeletePolicyVersionRequest is the request struct for api DeletePolicyVersion +type DeletePolicyVersionRequest struct { + *requests.RpcRequest + PolicyName string `position:"Query" name:"PolicyName"` + VersionId string `position:"Query" name:"VersionId"` +} + +// DeletePolicyVersionResponse is the response struct for api DeletePolicyVersion +type DeletePolicyVersionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeletePolicyVersionRequest creates a request to invoke DeletePolicyVersion API +func CreateDeletePolicyVersionRequest() (request *DeletePolicyVersionRequest) { + request = &DeletePolicyVersionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "DeletePolicyVersion", "", "") + return +} + +// CreateDeletePolicyVersionResponse creates a response to parse from DeletePolicyVersion response +func CreateDeletePolicyVersionResponse() (response *DeletePolicyVersionResponse) { + response = &DeletePolicyVersionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_public_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_public_key.go new file mode 100644 index 0000000..efe2e94 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_public_key.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeletePublicKey invokes the ram.DeletePublicKey API synchronously +// api document: https://help.aliyun.com/api/ram/deletepublickey.html +func (client *Client) DeletePublicKey(request *DeletePublicKeyRequest) (response *DeletePublicKeyResponse, err error) { + response = CreateDeletePublicKeyResponse() + err = client.DoAction(request, response) + return +} + +// DeletePublicKeyWithChan invokes the ram.DeletePublicKey API asynchronously +// api document: https://help.aliyun.com/api/ram/deletepublickey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeletePublicKeyWithChan(request *DeletePublicKeyRequest) (<-chan *DeletePublicKeyResponse, <-chan error) { + responseChan := make(chan *DeletePublicKeyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeletePublicKey(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeletePublicKeyWithCallback invokes the ram.DeletePublicKey API asynchronously +// api document: https://help.aliyun.com/api/ram/deletepublickey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeletePublicKeyWithCallback(request *DeletePublicKeyRequest, callback func(response *DeletePublicKeyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeletePublicKeyResponse + var err error + defer close(result) + response, err = client.DeletePublicKey(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeletePublicKeyRequest is the request struct for api DeletePublicKey +type DeletePublicKeyRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` + UserPublicKeyId string `position:"Query" name:"UserPublicKeyId"` +} + +// DeletePublicKeyResponse is the response struct for api DeletePublicKey +type DeletePublicKeyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeletePublicKeyRequest creates a request to invoke DeletePublicKey API +func CreateDeletePublicKeyRequest() (request *DeletePublicKeyRequest) { + request = &DeletePublicKeyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "DeletePublicKey", "", "") + return +} + +// CreateDeletePublicKeyResponse creates a response to parse from DeletePublicKey response +func CreateDeletePublicKeyResponse() (response *DeletePublicKeyResponse) { + response = &DeletePublicKeyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_role.go new file mode 100644 index 0000000..798ce4f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_role.go @@ -0,0 +1,103 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteRole invokes the ram.DeleteRole API synchronously +// api document: https://help.aliyun.com/api/ram/deleterole.html +func (client *Client) DeleteRole(request *DeleteRoleRequest) (response *DeleteRoleResponse, err error) { + response = CreateDeleteRoleResponse() + err = client.DoAction(request, response) + return +} + +// DeleteRoleWithChan invokes the ram.DeleteRole API asynchronously +// api document: https://help.aliyun.com/api/ram/deleterole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteRoleWithChan(request *DeleteRoleRequest) (<-chan *DeleteRoleResponse, <-chan error) { + responseChan := make(chan *DeleteRoleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteRole(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteRoleWithCallback invokes the ram.DeleteRole API asynchronously +// api document: https://help.aliyun.com/api/ram/deleterole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteRoleWithCallback(request *DeleteRoleRequest, callback func(response *DeleteRoleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteRoleResponse + var err error + defer close(result) + response, err = client.DeleteRole(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteRoleRequest is the request struct for api DeleteRole +type DeleteRoleRequest struct { + *requests.RpcRequest + RoleName string `position:"Query" name:"RoleName"` +} + +// DeleteRoleResponse is the response struct for api DeleteRole +type DeleteRoleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteRoleRequest creates a request to invoke DeleteRole API +func CreateDeleteRoleRequest() (request *DeleteRoleRequest) { + request = &DeleteRoleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "DeleteRole", "", "") + return +} + +// CreateDeleteRoleResponse creates a response to parse from DeleteRole response +func CreateDeleteRoleResponse() (response *DeleteRoleResponse) { + response = &DeleteRoleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_user.go new file mode 100644 index 0000000..667d0fd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_user.go @@ -0,0 +1,103 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteUser invokes the ram.DeleteUser API synchronously +// api document: https://help.aliyun.com/api/ram/deleteuser.html +func (client *Client) DeleteUser(request *DeleteUserRequest) (response *DeleteUserResponse, err error) { + response = CreateDeleteUserResponse() + err = client.DoAction(request, response) + return +} + +// DeleteUserWithChan invokes the ram.DeleteUser API asynchronously +// api document: https://help.aliyun.com/api/ram/deleteuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteUserWithChan(request *DeleteUserRequest) (<-chan *DeleteUserResponse, <-chan error) { + responseChan := make(chan *DeleteUserResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteUser(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteUserWithCallback invokes the ram.DeleteUser API asynchronously +// api document: https://help.aliyun.com/api/ram/deleteuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteUserWithCallback(request *DeleteUserRequest, callback func(response *DeleteUserResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteUserResponse + var err error + defer close(result) + response, err = client.DeleteUser(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteUserRequest is the request struct for api DeleteUser +type DeleteUserRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` +} + +// DeleteUserResponse is the response struct for api DeleteUser +type DeleteUserResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteUserRequest creates a request to invoke DeleteUser API +func CreateDeleteUserRequest() (request *DeleteUserRequest) { + request = &DeleteUserRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "DeleteUser", "", "") + return +} + +// CreateDeleteUserResponse creates a response to parse from DeleteUser response +func CreateDeleteUserResponse() (response *DeleteUserResponse) { + response = &DeleteUserResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_virtual_mfa_device.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_virtual_mfa_device.go new file mode 100644 index 0000000..d9f6f26 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/delete_virtual_mfa_device.go @@ -0,0 +1,103 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteVirtualMFADevice invokes the ram.DeleteVirtualMFADevice API synchronously +// api document: https://help.aliyun.com/api/ram/deletevirtualmfadevice.html +func (client *Client) DeleteVirtualMFADevice(request *DeleteVirtualMFADeviceRequest) (response *DeleteVirtualMFADeviceResponse, err error) { + response = CreateDeleteVirtualMFADeviceResponse() + err = client.DoAction(request, response) + return +} + +// DeleteVirtualMFADeviceWithChan invokes the ram.DeleteVirtualMFADevice API asynchronously +// api document: https://help.aliyun.com/api/ram/deletevirtualmfadevice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteVirtualMFADeviceWithChan(request *DeleteVirtualMFADeviceRequest) (<-chan *DeleteVirtualMFADeviceResponse, <-chan error) { + responseChan := make(chan *DeleteVirtualMFADeviceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteVirtualMFADevice(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteVirtualMFADeviceWithCallback invokes the ram.DeleteVirtualMFADevice API asynchronously +// api document: https://help.aliyun.com/api/ram/deletevirtualmfadevice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteVirtualMFADeviceWithCallback(request *DeleteVirtualMFADeviceRequest, callback func(response *DeleteVirtualMFADeviceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteVirtualMFADeviceResponse + var err error + defer close(result) + response, err = client.DeleteVirtualMFADevice(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteVirtualMFADeviceRequest is the request struct for api DeleteVirtualMFADevice +type DeleteVirtualMFADeviceRequest struct { + *requests.RpcRequest + SerialNumber string `position:"Query" name:"SerialNumber"` +} + +// DeleteVirtualMFADeviceResponse is the response struct for api DeleteVirtualMFADevice +type DeleteVirtualMFADeviceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteVirtualMFADeviceRequest creates a request to invoke DeleteVirtualMFADevice API +func CreateDeleteVirtualMFADeviceRequest() (request *DeleteVirtualMFADeviceRequest) { + request = &DeleteVirtualMFADeviceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "DeleteVirtualMFADevice", "", "") + return +} + +// CreateDeleteVirtualMFADeviceResponse creates a response to parse from DeleteVirtualMFADevice response +func CreateDeleteVirtualMFADeviceResponse() (response *DeleteVirtualMFADeviceResponse) { + response = &DeleteVirtualMFADeviceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/detach_policy_from_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/detach_policy_from_group.go new file mode 100644 index 0000000..12e2351 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/detach_policy_from_group.go @@ -0,0 +1,105 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DetachPolicyFromGroup invokes the ram.DetachPolicyFromGroup API synchronously +// api document: https://help.aliyun.com/api/ram/detachpolicyfromgroup.html +func (client *Client) DetachPolicyFromGroup(request *DetachPolicyFromGroupRequest) (response *DetachPolicyFromGroupResponse, err error) { + response = CreateDetachPolicyFromGroupResponse() + err = client.DoAction(request, response) + return +} + +// DetachPolicyFromGroupWithChan invokes the ram.DetachPolicyFromGroup API asynchronously +// api document: https://help.aliyun.com/api/ram/detachpolicyfromgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachPolicyFromGroupWithChan(request *DetachPolicyFromGroupRequest) (<-chan *DetachPolicyFromGroupResponse, <-chan error) { + responseChan := make(chan *DetachPolicyFromGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DetachPolicyFromGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DetachPolicyFromGroupWithCallback invokes the ram.DetachPolicyFromGroup API asynchronously +// api document: https://help.aliyun.com/api/ram/detachpolicyfromgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachPolicyFromGroupWithCallback(request *DetachPolicyFromGroupRequest, callback func(response *DetachPolicyFromGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DetachPolicyFromGroupResponse + var err error + defer close(result) + response, err = client.DetachPolicyFromGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DetachPolicyFromGroupRequest is the request struct for api DetachPolicyFromGroup +type DetachPolicyFromGroupRequest struct { + *requests.RpcRequest + PolicyType string `position:"Query" name:"PolicyType"` + PolicyName string `position:"Query" name:"PolicyName"` + GroupName string `position:"Query" name:"GroupName"` +} + +// DetachPolicyFromGroupResponse is the response struct for api DetachPolicyFromGroup +type DetachPolicyFromGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDetachPolicyFromGroupRequest creates a request to invoke DetachPolicyFromGroup API +func CreateDetachPolicyFromGroupRequest() (request *DetachPolicyFromGroupRequest) { + request = &DetachPolicyFromGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "DetachPolicyFromGroup", "", "") + return +} + +// CreateDetachPolicyFromGroupResponse creates a response to parse from DetachPolicyFromGroup response +func CreateDetachPolicyFromGroupResponse() (response *DetachPolicyFromGroupResponse) { + response = &DetachPolicyFromGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/detach_policy_from_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/detach_policy_from_role.go new file mode 100644 index 0000000..132fa79 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/detach_policy_from_role.go @@ -0,0 +1,105 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DetachPolicyFromRole invokes the ram.DetachPolicyFromRole API synchronously +// api document: https://help.aliyun.com/api/ram/detachpolicyfromrole.html +func (client *Client) DetachPolicyFromRole(request *DetachPolicyFromRoleRequest) (response *DetachPolicyFromRoleResponse, err error) { + response = CreateDetachPolicyFromRoleResponse() + err = client.DoAction(request, response) + return +} + +// DetachPolicyFromRoleWithChan invokes the ram.DetachPolicyFromRole API asynchronously +// api document: https://help.aliyun.com/api/ram/detachpolicyfromrole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachPolicyFromRoleWithChan(request *DetachPolicyFromRoleRequest) (<-chan *DetachPolicyFromRoleResponse, <-chan error) { + responseChan := make(chan *DetachPolicyFromRoleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DetachPolicyFromRole(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DetachPolicyFromRoleWithCallback invokes the ram.DetachPolicyFromRole API asynchronously +// api document: https://help.aliyun.com/api/ram/detachpolicyfromrole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachPolicyFromRoleWithCallback(request *DetachPolicyFromRoleRequest, callback func(response *DetachPolicyFromRoleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DetachPolicyFromRoleResponse + var err error + defer close(result) + response, err = client.DetachPolicyFromRole(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DetachPolicyFromRoleRequest is the request struct for api DetachPolicyFromRole +type DetachPolicyFromRoleRequest struct { + *requests.RpcRequest + PolicyType string `position:"Query" name:"PolicyType"` + PolicyName string `position:"Query" name:"PolicyName"` + RoleName string `position:"Query" name:"RoleName"` +} + +// DetachPolicyFromRoleResponse is the response struct for api DetachPolicyFromRole +type DetachPolicyFromRoleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDetachPolicyFromRoleRequest creates a request to invoke DetachPolicyFromRole API +func CreateDetachPolicyFromRoleRequest() (request *DetachPolicyFromRoleRequest) { + request = &DetachPolicyFromRoleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "DetachPolicyFromRole", "", "") + return +} + +// CreateDetachPolicyFromRoleResponse creates a response to parse from DetachPolicyFromRole response +func CreateDetachPolicyFromRoleResponse() (response *DetachPolicyFromRoleResponse) { + response = &DetachPolicyFromRoleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/detach_policy_from_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/detach_policy_from_user.go new file mode 100644 index 0000000..4dbd58d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/detach_policy_from_user.go @@ -0,0 +1,105 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DetachPolicyFromUser invokes the ram.DetachPolicyFromUser API synchronously +// api document: https://help.aliyun.com/api/ram/detachpolicyfromuser.html +func (client *Client) DetachPolicyFromUser(request *DetachPolicyFromUserRequest) (response *DetachPolicyFromUserResponse, err error) { + response = CreateDetachPolicyFromUserResponse() + err = client.DoAction(request, response) + return +} + +// DetachPolicyFromUserWithChan invokes the ram.DetachPolicyFromUser API asynchronously +// api document: https://help.aliyun.com/api/ram/detachpolicyfromuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachPolicyFromUserWithChan(request *DetachPolicyFromUserRequest) (<-chan *DetachPolicyFromUserResponse, <-chan error) { + responseChan := make(chan *DetachPolicyFromUserResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DetachPolicyFromUser(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DetachPolicyFromUserWithCallback invokes the ram.DetachPolicyFromUser API asynchronously +// api document: https://help.aliyun.com/api/ram/detachpolicyfromuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DetachPolicyFromUserWithCallback(request *DetachPolicyFromUserRequest, callback func(response *DetachPolicyFromUserResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DetachPolicyFromUserResponse + var err error + defer close(result) + response, err = client.DetachPolicyFromUser(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DetachPolicyFromUserRequest is the request struct for api DetachPolicyFromUser +type DetachPolicyFromUserRequest struct { + *requests.RpcRequest + PolicyType string `position:"Query" name:"PolicyType"` + PolicyName string `position:"Query" name:"PolicyName"` + UserName string `position:"Query" name:"UserName"` +} + +// DetachPolicyFromUserResponse is the response struct for api DetachPolicyFromUser +type DetachPolicyFromUserResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDetachPolicyFromUserRequest creates a request to invoke DetachPolicyFromUser API +func CreateDetachPolicyFromUserRequest() (request *DetachPolicyFromUserRequest) { + request = &DetachPolicyFromUserRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "DetachPolicyFromUser", "", "") + return +} + +// CreateDetachPolicyFromUserResponse creates a response to parse from DetachPolicyFromUser response +func CreateDetachPolicyFromUserResponse() (response *DetachPolicyFromUserResponse) { + response = &DetachPolicyFromUserResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_account_alias.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_account_alias.go new file mode 100644 index 0000000..cb1ddee --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_account_alias.go @@ -0,0 +1,103 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetAccountAlias invokes the ram.GetAccountAlias API synchronously +// api document: https://help.aliyun.com/api/ram/getaccountalias.html +func (client *Client) GetAccountAlias(request *GetAccountAliasRequest) (response *GetAccountAliasResponse, err error) { + response = CreateGetAccountAliasResponse() + err = client.DoAction(request, response) + return +} + +// GetAccountAliasWithChan invokes the ram.GetAccountAlias API asynchronously +// api document: https://help.aliyun.com/api/ram/getaccountalias.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetAccountAliasWithChan(request *GetAccountAliasRequest) (<-chan *GetAccountAliasResponse, <-chan error) { + responseChan := make(chan *GetAccountAliasResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetAccountAlias(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetAccountAliasWithCallback invokes the ram.GetAccountAlias API asynchronously +// api document: https://help.aliyun.com/api/ram/getaccountalias.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetAccountAliasWithCallback(request *GetAccountAliasRequest, callback func(response *GetAccountAliasResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetAccountAliasResponse + var err error + defer close(result) + response, err = client.GetAccountAlias(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetAccountAliasRequest is the request struct for api GetAccountAlias +type GetAccountAliasRequest struct { + *requests.RpcRequest +} + +// GetAccountAliasResponse is the response struct for api GetAccountAlias +type GetAccountAliasResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AccountAlias string `json:"AccountAlias" xml:"AccountAlias"` +} + +// CreateGetAccountAliasRequest creates a request to invoke GetAccountAlias API +func CreateGetAccountAliasRequest() (request *GetAccountAliasRequest) { + request = &GetAccountAliasRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "GetAccountAlias", "", "") + return +} + +// CreateGetAccountAliasResponse creates a response to parse from GetAccountAlias response +func CreateGetAccountAliasResponse() (response *GetAccountAliasResponse) { + response = &GetAccountAliasResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_group.go new file mode 100644 index 0000000..0bca710 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_group.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetGroup invokes the ram.GetGroup API synchronously +// api document: https://help.aliyun.com/api/ram/getgroup.html +func (client *Client) GetGroup(request *GetGroupRequest) (response *GetGroupResponse, err error) { + response = CreateGetGroupResponse() + err = client.DoAction(request, response) + return +} + +// GetGroupWithChan invokes the ram.GetGroup API asynchronously +// api document: https://help.aliyun.com/api/ram/getgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetGroupWithChan(request *GetGroupRequest) (<-chan *GetGroupResponse, <-chan error) { + responseChan := make(chan *GetGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetGroupWithCallback invokes the ram.GetGroup API asynchronously +// api document: https://help.aliyun.com/api/ram/getgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetGroupWithCallback(request *GetGroupRequest, callback func(response *GetGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetGroupResponse + var err error + defer close(result) + response, err = client.GetGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetGroupRequest is the request struct for api GetGroup +type GetGroupRequest struct { + *requests.RpcRequest + GroupName string `position:"Query" name:"GroupName"` +} + +// GetGroupResponse is the response struct for api GetGroup +type GetGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Group Group `json:"Group" xml:"Group"` +} + +// CreateGetGroupRequest creates a request to invoke GetGroup API +func CreateGetGroupRequest() (request *GetGroupRequest) { + request = &GetGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "GetGroup", "", "") + return +} + +// CreateGetGroupResponse creates a response to parse from GetGroup response +func CreateGetGroupResponse() (response *GetGroupResponse) { + response = &GetGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_login_profile.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_login_profile.go new file mode 100644 index 0000000..46d3a02 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_login_profile.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetLoginProfile invokes the ram.GetLoginProfile API synchronously +// api document: https://help.aliyun.com/api/ram/getloginprofile.html +func (client *Client) GetLoginProfile(request *GetLoginProfileRequest) (response *GetLoginProfileResponse, err error) { + response = CreateGetLoginProfileResponse() + err = client.DoAction(request, response) + return +} + +// GetLoginProfileWithChan invokes the ram.GetLoginProfile API asynchronously +// api document: https://help.aliyun.com/api/ram/getloginprofile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetLoginProfileWithChan(request *GetLoginProfileRequest) (<-chan *GetLoginProfileResponse, <-chan error) { + responseChan := make(chan *GetLoginProfileResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetLoginProfile(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetLoginProfileWithCallback invokes the ram.GetLoginProfile API asynchronously +// api document: https://help.aliyun.com/api/ram/getloginprofile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetLoginProfileWithCallback(request *GetLoginProfileRequest, callback func(response *GetLoginProfileResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetLoginProfileResponse + var err error + defer close(result) + response, err = client.GetLoginProfile(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetLoginProfileRequest is the request struct for api GetLoginProfile +type GetLoginProfileRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` +} + +// GetLoginProfileResponse is the response struct for api GetLoginProfile +type GetLoginProfileResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LoginProfile LoginProfile `json:"LoginProfile" xml:"LoginProfile"` +} + +// CreateGetLoginProfileRequest creates a request to invoke GetLoginProfile API +func CreateGetLoginProfileRequest() (request *GetLoginProfileRequest) { + request = &GetLoginProfileRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "GetLoginProfile", "", "") + return +} + +// CreateGetLoginProfileResponse creates a response to parse from GetLoginProfile response +func CreateGetLoginProfileResponse() (response *GetLoginProfileResponse) { + response = &GetLoginProfileResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_password_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_password_policy.go new file mode 100644 index 0000000..7b42386 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_password_policy.go @@ -0,0 +1,103 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetPasswordPolicy invokes the ram.GetPasswordPolicy API synchronously +// api document: https://help.aliyun.com/api/ram/getpasswordpolicy.html +func (client *Client) GetPasswordPolicy(request *GetPasswordPolicyRequest) (response *GetPasswordPolicyResponse, err error) { + response = CreateGetPasswordPolicyResponse() + err = client.DoAction(request, response) + return +} + +// GetPasswordPolicyWithChan invokes the ram.GetPasswordPolicy API asynchronously +// api document: https://help.aliyun.com/api/ram/getpasswordpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPasswordPolicyWithChan(request *GetPasswordPolicyRequest) (<-chan *GetPasswordPolicyResponse, <-chan error) { + responseChan := make(chan *GetPasswordPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetPasswordPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetPasswordPolicyWithCallback invokes the ram.GetPasswordPolicy API asynchronously +// api document: https://help.aliyun.com/api/ram/getpasswordpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPasswordPolicyWithCallback(request *GetPasswordPolicyRequest, callback func(response *GetPasswordPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetPasswordPolicyResponse + var err error + defer close(result) + response, err = client.GetPasswordPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetPasswordPolicyRequest is the request struct for api GetPasswordPolicy +type GetPasswordPolicyRequest struct { + *requests.RpcRequest +} + +// GetPasswordPolicyResponse is the response struct for api GetPasswordPolicy +type GetPasswordPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PasswordPolicy PasswordPolicy `json:"PasswordPolicy" xml:"PasswordPolicy"` +} + +// CreateGetPasswordPolicyRequest creates a request to invoke GetPasswordPolicy API +func CreateGetPasswordPolicyRequest() (request *GetPasswordPolicyRequest) { + request = &GetPasswordPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "GetPasswordPolicy", "", "") + return +} + +// CreateGetPasswordPolicyResponse creates a response to parse from GetPasswordPolicy response +func CreateGetPasswordPolicyResponse() (response *GetPasswordPolicyResponse) { + response = &GetPasswordPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_policy.go new file mode 100644 index 0000000..714419d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_policy.go @@ -0,0 +1,105 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetPolicy invokes the ram.GetPolicy API synchronously +// api document: https://help.aliyun.com/api/ram/getpolicy.html +func (client *Client) GetPolicy(request *GetPolicyRequest) (response *GetPolicyResponse, err error) { + response = CreateGetPolicyResponse() + err = client.DoAction(request, response) + return +} + +// GetPolicyWithChan invokes the ram.GetPolicy API asynchronously +// api document: https://help.aliyun.com/api/ram/getpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPolicyWithChan(request *GetPolicyRequest) (<-chan *GetPolicyResponse, <-chan error) { + responseChan := make(chan *GetPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetPolicyWithCallback invokes the ram.GetPolicy API asynchronously +// api document: https://help.aliyun.com/api/ram/getpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPolicyWithCallback(request *GetPolicyRequest, callback func(response *GetPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetPolicyResponse + var err error + defer close(result) + response, err = client.GetPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetPolicyRequest is the request struct for api GetPolicy +type GetPolicyRequest struct { + *requests.RpcRequest + PolicyType string `position:"Query" name:"PolicyType"` + PolicyName string `position:"Query" name:"PolicyName"` +} + +// GetPolicyResponse is the response struct for api GetPolicy +type GetPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Policy Policy `json:"Policy" xml:"Policy"` +} + +// CreateGetPolicyRequest creates a request to invoke GetPolicy API +func CreateGetPolicyRequest() (request *GetPolicyRequest) { + request = &GetPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "GetPolicy", "", "") + return +} + +// CreateGetPolicyResponse creates a response to parse from GetPolicy response +func CreateGetPolicyResponse() (response *GetPolicyResponse) { + response = &GetPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_policy_version.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_policy_version.go new file mode 100644 index 0000000..f654fab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_policy_version.go @@ -0,0 +1,106 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetPolicyVersion invokes the ram.GetPolicyVersion API synchronously +// api document: https://help.aliyun.com/api/ram/getpolicyversion.html +func (client *Client) GetPolicyVersion(request *GetPolicyVersionRequest) (response *GetPolicyVersionResponse, err error) { + response = CreateGetPolicyVersionResponse() + err = client.DoAction(request, response) + return +} + +// GetPolicyVersionWithChan invokes the ram.GetPolicyVersion API asynchronously +// api document: https://help.aliyun.com/api/ram/getpolicyversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPolicyVersionWithChan(request *GetPolicyVersionRequest) (<-chan *GetPolicyVersionResponse, <-chan error) { + responseChan := make(chan *GetPolicyVersionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetPolicyVersion(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetPolicyVersionWithCallback invokes the ram.GetPolicyVersion API asynchronously +// api document: https://help.aliyun.com/api/ram/getpolicyversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPolicyVersionWithCallback(request *GetPolicyVersionRequest, callback func(response *GetPolicyVersionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetPolicyVersionResponse + var err error + defer close(result) + response, err = client.GetPolicyVersion(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetPolicyVersionRequest is the request struct for api GetPolicyVersion +type GetPolicyVersionRequest struct { + *requests.RpcRequest + PolicyType string `position:"Query" name:"PolicyType"` + PolicyName string `position:"Query" name:"PolicyName"` + VersionId string `position:"Query" name:"VersionId"` +} + +// GetPolicyVersionResponse is the response struct for api GetPolicyVersion +type GetPolicyVersionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PolicyVersion PolicyVersion `json:"PolicyVersion" xml:"PolicyVersion"` +} + +// CreateGetPolicyVersionRequest creates a request to invoke GetPolicyVersion API +func CreateGetPolicyVersionRequest() (request *GetPolicyVersionRequest) { + request = &GetPolicyVersionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "GetPolicyVersion", "", "") + return +} + +// CreateGetPolicyVersionResponse creates a response to parse from GetPolicyVersion response +func CreateGetPolicyVersionResponse() (response *GetPolicyVersionResponse) { + response = &GetPolicyVersionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_public_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_public_key.go new file mode 100644 index 0000000..d6f4887 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_public_key.go @@ -0,0 +1,105 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetPublicKey invokes the ram.GetPublicKey API synchronously +// api document: https://help.aliyun.com/api/ram/getpublickey.html +func (client *Client) GetPublicKey(request *GetPublicKeyRequest) (response *GetPublicKeyResponse, err error) { + response = CreateGetPublicKeyResponse() + err = client.DoAction(request, response) + return +} + +// GetPublicKeyWithChan invokes the ram.GetPublicKey API asynchronously +// api document: https://help.aliyun.com/api/ram/getpublickey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPublicKeyWithChan(request *GetPublicKeyRequest) (<-chan *GetPublicKeyResponse, <-chan error) { + responseChan := make(chan *GetPublicKeyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetPublicKey(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetPublicKeyWithCallback invokes the ram.GetPublicKey API asynchronously +// api document: https://help.aliyun.com/api/ram/getpublickey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetPublicKeyWithCallback(request *GetPublicKeyRequest, callback func(response *GetPublicKeyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetPublicKeyResponse + var err error + defer close(result) + response, err = client.GetPublicKey(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetPublicKeyRequest is the request struct for api GetPublicKey +type GetPublicKeyRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` + UserPublicKeyId string `position:"Query" name:"UserPublicKeyId"` +} + +// GetPublicKeyResponse is the response struct for api GetPublicKey +type GetPublicKeyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PublicKey PublicKey `json:"PublicKey" xml:"PublicKey"` +} + +// CreateGetPublicKeyRequest creates a request to invoke GetPublicKey API +func CreateGetPublicKeyRequest() (request *GetPublicKeyRequest) { + request = &GetPublicKeyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "GetPublicKey", "", "") + return +} + +// CreateGetPublicKeyResponse creates a response to parse from GetPublicKey response +func CreateGetPublicKeyResponse() (response *GetPublicKeyResponse) { + response = &GetPublicKeyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_role.go new file mode 100644 index 0000000..38d2922 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_role.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetRole invokes the ram.GetRole API synchronously +// api document: https://help.aliyun.com/api/ram/getrole.html +func (client *Client) GetRole(request *GetRoleRequest) (response *GetRoleResponse, err error) { + response = CreateGetRoleResponse() + err = client.DoAction(request, response) + return +} + +// GetRoleWithChan invokes the ram.GetRole API asynchronously +// api document: https://help.aliyun.com/api/ram/getrole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetRoleWithChan(request *GetRoleRequest) (<-chan *GetRoleResponse, <-chan error) { + responseChan := make(chan *GetRoleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetRole(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetRoleWithCallback invokes the ram.GetRole API asynchronously +// api document: https://help.aliyun.com/api/ram/getrole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetRoleWithCallback(request *GetRoleRequest, callback func(response *GetRoleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetRoleResponse + var err error + defer close(result) + response, err = client.GetRole(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetRoleRequest is the request struct for api GetRole +type GetRoleRequest struct { + *requests.RpcRequest + RoleName string `position:"Query" name:"RoleName"` +} + +// GetRoleResponse is the response struct for api GetRole +type GetRoleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Role Role `json:"Role" xml:"Role"` +} + +// CreateGetRoleRequest creates a request to invoke GetRole API +func CreateGetRoleRequest() (request *GetRoleRequest) { + request = &GetRoleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "GetRole", "", "") + return +} + +// CreateGetRoleResponse creates a response to parse from GetRole response +func CreateGetRoleResponse() (response *GetRoleResponse) { + response = &GetRoleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_security_preference.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_security_preference.go new file mode 100644 index 0000000..9ccbafd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_security_preference.go @@ -0,0 +1,103 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetSecurityPreference invokes the ram.GetSecurityPreference API synchronously +// api document: https://help.aliyun.com/api/ram/getsecuritypreference.html +func (client *Client) GetSecurityPreference(request *GetSecurityPreferenceRequest) (response *GetSecurityPreferenceResponse, err error) { + response = CreateGetSecurityPreferenceResponse() + err = client.DoAction(request, response) + return +} + +// GetSecurityPreferenceWithChan invokes the ram.GetSecurityPreference API asynchronously +// api document: https://help.aliyun.com/api/ram/getsecuritypreference.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetSecurityPreferenceWithChan(request *GetSecurityPreferenceRequest) (<-chan *GetSecurityPreferenceResponse, <-chan error) { + responseChan := make(chan *GetSecurityPreferenceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetSecurityPreference(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetSecurityPreferenceWithCallback invokes the ram.GetSecurityPreference API asynchronously +// api document: https://help.aliyun.com/api/ram/getsecuritypreference.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetSecurityPreferenceWithCallback(request *GetSecurityPreferenceRequest, callback func(response *GetSecurityPreferenceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetSecurityPreferenceResponse + var err error + defer close(result) + response, err = client.GetSecurityPreference(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetSecurityPreferenceRequest is the request struct for api GetSecurityPreference +type GetSecurityPreferenceRequest struct { + *requests.RpcRequest +} + +// GetSecurityPreferenceResponse is the response struct for api GetSecurityPreference +type GetSecurityPreferenceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SecurityPreference SecurityPreference `json:"SecurityPreference" xml:"SecurityPreference"` +} + +// CreateGetSecurityPreferenceRequest creates a request to invoke GetSecurityPreference API +func CreateGetSecurityPreferenceRequest() (request *GetSecurityPreferenceRequest) { + request = &GetSecurityPreferenceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "GetSecurityPreference", "", "") + return +} + +// CreateGetSecurityPreferenceResponse creates a response to parse from GetSecurityPreference response +func CreateGetSecurityPreferenceResponse() (response *GetSecurityPreferenceResponse) { + response = &GetSecurityPreferenceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_user.go new file mode 100644 index 0000000..79ece9b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_user.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetUser invokes the ram.GetUser API synchronously +// api document: https://help.aliyun.com/api/ram/getuser.html +func (client *Client) GetUser(request *GetUserRequest) (response *GetUserResponse, err error) { + response = CreateGetUserResponse() + err = client.DoAction(request, response) + return +} + +// GetUserWithChan invokes the ram.GetUser API asynchronously +// api document: https://help.aliyun.com/api/ram/getuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetUserWithChan(request *GetUserRequest) (<-chan *GetUserResponse, <-chan error) { + responseChan := make(chan *GetUserResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetUser(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetUserWithCallback invokes the ram.GetUser API asynchronously +// api document: https://help.aliyun.com/api/ram/getuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetUserWithCallback(request *GetUserRequest, callback func(response *GetUserResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetUserResponse + var err error + defer close(result) + response, err = client.GetUser(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetUserRequest is the request struct for api GetUser +type GetUserRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` +} + +// GetUserResponse is the response struct for api GetUser +type GetUserResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + User User `json:"User" xml:"User"` +} + +// CreateGetUserRequest creates a request to invoke GetUser API +func CreateGetUserRequest() (request *GetUserRequest) { + request = &GetUserRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "GetUser", "", "") + return +} + +// CreateGetUserResponse creates a response to parse from GetUser response +func CreateGetUserResponse() (response *GetUserResponse) { + response = &GetUserResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_user_mfa_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_user_mfa_info.go new file mode 100644 index 0000000..65603f6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_user_mfa_info.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetUserMFAInfo invokes the ram.GetUserMFAInfo API synchronously +// api document: https://help.aliyun.com/api/ram/getusermfainfo.html +func (client *Client) GetUserMFAInfo(request *GetUserMFAInfoRequest) (response *GetUserMFAInfoResponse, err error) { + response = CreateGetUserMFAInfoResponse() + err = client.DoAction(request, response) + return +} + +// GetUserMFAInfoWithChan invokes the ram.GetUserMFAInfo API asynchronously +// api document: https://help.aliyun.com/api/ram/getusermfainfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetUserMFAInfoWithChan(request *GetUserMFAInfoRequest) (<-chan *GetUserMFAInfoResponse, <-chan error) { + responseChan := make(chan *GetUserMFAInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetUserMFAInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetUserMFAInfoWithCallback invokes the ram.GetUserMFAInfo API asynchronously +// api document: https://help.aliyun.com/api/ram/getusermfainfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetUserMFAInfoWithCallback(request *GetUserMFAInfoRequest, callback func(response *GetUserMFAInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetUserMFAInfoResponse + var err error + defer close(result) + response, err = client.GetUserMFAInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetUserMFAInfoRequest is the request struct for api GetUserMFAInfo +type GetUserMFAInfoRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` +} + +// GetUserMFAInfoResponse is the response struct for api GetUserMFAInfo +type GetUserMFAInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MFADevice MFADevice `json:"MFADevice" xml:"MFADevice"` +} + +// CreateGetUserMFAInfoRequest creates a request to invoke GetUserMFAInfo API +func CreateGetUserMFAInfoRequest() (request *GetUserMFAInfoRequest) { + request = &GetUserMFAInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "GetUserMFAInfo", "", "") + return +} + +// CreateGetUserMFAInfoResponse creates a response to parse from GetUserMFAInfo response +func CreateGetUserMFAInfoResponse() (response *GetUserMFAInfoResponse) { + response = &GetUserMFAInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_access_keys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_access_keys.go new file mode 100644 index 0000000..e9ee0b9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_access_keys.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListAccessKeys invokes the ram.ListAccessKeys API synchronously +// api document: https://help.aliyun.com/api/ram/listaccesskeys.html +func (client *Client) ListAccessKeys(request *ListAccessKeysRequest) (response *ListAccessKeysResponse, err error) { + response = CreateListAccessKeysResponse() + err = client.DoAction(request, response) + return +} + +// ListAccessKeysWithChan invokes the ram.ListAccessKeys API asynchronously +// api document: https://help.aliyun.com/api/ram/listaccesskeys.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListAccessKeysWithChan(request *ListAccessKeysRequest) (<-chan *ListAccessKeysResponse, <-chan error) { + responseChan := make(chan *ListAccessKeysResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListAccessKeys(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListAccessKeysWithCallback invokes the ram.ListAccessKeys API asynchronously +// api document: https://help.aliyun.com/api/ram/listaccesskeys.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListAccessKeysWithCallback(request *ListAccessKeysRequest, callback func(response *ListAccessKeysResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListAccessKeysResponse + var err error + defer close(result) + response, err = client.ListAccessKeys(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListAccessKeysRequest is the request struct for api ListAccessKeys +type ListAccessKeysRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` +} + +// ListAccessKeysResponse is the response struct for api ListAccessKeys +type ListAccessKeysResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AccessKeys AccessKeys `json:"AccessKeys" xml:"AccessKeys"` +} + +// CreateListAccessKeysRequest creates a request to invoke ListAccessKeys API +func CreateListAccessKeysRequest() (request *ListAccessKeysRequest) { + request = &ListAccessKeysRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "ListAccessKeys", "", "") + return +} + +// CreateListAccessKeysResponse creates a response to parse from ListAccessKeys response +func CreateListAccessKeysResponse() (response *ListAccessKeysResponse) { + response = &ListAccessKeysResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_entities_for_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_entities_for_policy.go new file mode 100644 index 0000000..0906f84 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_entities_for_policy.go @@ -0,0 +1,107 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListEntitiesForPolicy invokes the ram.ListEntitiesForPolicy API synchronously +// api document: https://help.aliyun.com/api/ram/listentitiesforpolicy.html +func (client *Client) ListEntitiesForPolicy(request *ListEntitiesForPolicyRequest) (response *ListEntitiesForPolicyResponse, err error) { + response = CreateListEntitiesForPolicyResponse() + err = client.DoAction(request, response) + return +} + +// ListEntitiesForPolicyWithChan invokes the ram.ListEntitiesForPolicy API asynchronously +// api document: https://help.aliyun.com/api/ram/listentitiesforpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListEntitiesForPolicyWithChan(request *ListEntitiesForPolicyRequest) (<-chan *ListEntitiesForPolicyResponse, <-chan error) { + responseChan := make(chan *ListEntitiesForPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListEntitiesForPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListEntitiesForPolicyWithCallback invokes the ram.ListEntitiesForPolicy API asynchronously +// api document: https://help.aliyun.com/api/ram/listentitiesforpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListEntitiesForPolicyWithCallback(request *ListEntitiesForPolicyRequest, callback func(response *ListEntitiesForPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListEntitiesForPolicyResponse + var err error + defer close(result) + response, err = client.ListEntitiesForPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListEntitiesForPolicyRequest is the request struct for api ListEntitiesForPolicy +type ListEntitiesForPolicyRequest struct { + *requests.RpcRequest + PolicyType string `position:"Query" name:"PolicyType"` + PolicyName string `position:"Query" name:"PolicyName"` +} + +// ListEntitiesForPolicyResponse is the response struct for api ListEntitiesForPolicy +type ListEntitiesForPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Groups GroupsInListEntitiesForPolicy `json:"Groups" xml:"Groups"` + Users UsersInListEntitiesForPolicy `json:"Users" xml:"Users"` + Roles RolesInListEntitiesForPolicy `json:"Roles" xml:"Roles"` +} + +// CreateListEntitiesForPolicyRequest creates a request to invoke ListEntitiesForPolicy API +func CreateListEntitiesForPolicyRequest() (request *ListEntitiesForPolicyRequest) { + request = &ListEntitiesForPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "ListEntitiesForPolicy", "", "") + return +} + +// CreateListEntitiesForPolicyResponse creates a response to parse from ListEntitiesForPolicy response +func CreateListEntitiesForPolicyResponse() (response *ListEntitiesForPolicyResponse) { + response = &ListEntitiesForPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_groups.go new file mode 100644 index 0000000..6e78e99 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_groups.go @@ -0,0 +1,107 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListGroups invokes the ram.ListGroups API synchronously +// api document: https://help.aliyun.com/api/ram/listgroups.html +func (client *Client) ListGroups(request *ListGroupsRequest) (response *ListGroupsResponse, err error) { + response = CreateListGroupsResponse() + err = client.DoAction(request, response) + return +} + +// ListGroupsWithChan invokes the ram.ListGroups API asynchronously +// api document: https://help.aliyun.com/api/ram/listgroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListGroupsWithChan(request *ListGroupsRequest) (<-chan *ListGroupsResponse, <-chan error) { + responseChan := make(chan *ListGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListGroupsWithCallback invokes the ram.ListGroups API asynchronously +// api document: https://help.aliyun.com/api/ram/listgroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListGroupsWithCallback(request *ListGroupsRequest, callback func(response *ListGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListGroupsResponse + var err error + defer close(result) + response, err = client.ListGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListGroupsRequest is the request struct for api ListGroups +type ListGroupsRequest struct { + *requests.RpcRequest + Marker string `position:"Query" name:"Marker"` + MaxItems requests.Integer `position:"Query" name:"MaxItems"` +} + +// ListGroupsResponse is the response struct for api ListGroups +type ListGroupsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + IsTruncated bool `json:"IsTruncated" xml:"IsTruncated"` + Marker string `json:"Marker" xml:"Marker"` + Groups GroupsInListGroups `json:"Groups" xml:"Groups"` +} + +// CreateListGroupsRequest creates a request to invoke ListGroups API +func CreateListGroupsRequest() (request *ListGroupsRequest) { + request = &ListGroupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "ListGroups", "", "") + return +} + +// CreateListGroupsResponse creates a response to parse from ListGroups response +func CreateListGroupsResponse() (response *ListGroupsResponse) { + response = &ListGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_groups_for_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_groups_for_user.go new file mode 100644 index 0000000..add73a4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_groups_for_user.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListGroupsForUser invokes the ram.ListGroupsForUser API synchronously +// api document: https://help.aliyun.com/api/ram/listgroupsforuser.html +func (client *Client) ListGroupsForUser(request *ListGroupsForUserRequest) (response *ListGroupsForUserResponse, err error) { + response = CreateListGroupsForUserResponse() + err = client.DoAction(request, response) + return +} + +// ListGroupsForUserWithChan invokes the ram.ListGroupsForUser API asynchronously +// api document: https://help.aliyun.com/api/ram/listgroupsforuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListGroupsForUserWithChan(request *ListGroupsForUserRequest) (<-chan *ListGroupsForUserResponse, <-chan error) { + responseChan := make(chan *ListGroupsForUserResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListGroupsForUser(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListGroupsForUserWithCallback invokes the ram.ListGroupsForUser API asynchronously +// api document: https://help.aliyun.com/api/ram/listgroupsforuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListGroupsForUserWithCallback(request *ListGroupsForUserRequest, callback func(response *ListGroupsForUserResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListGroupsForUserResponse + var err error + defer close(result) + response, err = client.ListGroupsForUser(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListGroupsForUserRequest is the request struct for api ListGroupsForUser +type ListGroupsForUserRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` +} + +// ListGroupsForUserResponse is the response struct for api ListGroupsForUser +type ListGroupsForUserResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Groups GroupsInListGroupsForUser `json:"Groups" xml:"Groups"` +} + +// CreateListGroupsForUserRequest creates a request to invoke ListGroupsForUser API +func CreateListGroupsForUserRequest() (request *ListGroupsForUserRequest) { + request = &ListGroupsForUserRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "ListGroupsForUser", "", "") + return +} + +// CreateListGroupsForUserResponse creates a response to parse from ListGroupsForUser response +func CreateListGroupsForUserResponse() (response *ListGroupsForUserResponse) { + response = &ListGroupsForUserResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_policies.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_policies.go new file mode 100644 index 0000000..e1d0939 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_policies.go @@ -0,0 +1,108 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListPolicies invokes the ram.ListPolicies API synchronously +// api document: https://help.aliyun.com/api/ram/listpolicies.html +func (client *Client) ListPolicies(request *ListPoliciesRequest) (response *ListPoliciesResponse, err error) { + response = CreateListPoliciesResponse() + err = client.DoAction(request, response) + return +} + +// ListPoliciesWithChan invokes the ram.ListPolicies API asynchronously +// api document: https://help.aliyun.com/api/ram/listpolicies.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPoliciesWithChan(request *ListPoliciesRequest) (<-chan *ListPoliciesResponse, <-chan error) { + responseChan := make(chan *ListPoliciesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPolicies(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPoliciesWithCallback invokes the ram.ListPolicies API asynchronously +// api document: https://help.aliyun.com/api/ram/listpolicies.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPoliciesWithCallback(request *ListPoliciesRequest, callback func(response *ListPoliciesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPoliciesResponse + var err error + defer close(result) + response, err = client.ListPolicies(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPoliciesRequest is the request struct for api ListPolicies +type ListPoliciesRequest struct { + *requests.RpcRequest + PolicyType string `position:"Query" name:"PolicyType"` + Marker string `position:"Query" name:"Marker"` + MaxItems requests.Integer `position:"Query" name:"MaxItems"` +} + +// ListPoliciesResponse is the response struct for api ListPolicies +type ListPoliciesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + IsTruncated bool `json:"IsTruncated" xml:"IsTruncated"` + Marker string `json:"Marker" xml:"Marker"` + Policies PoliciesInListPolicies `json:"Policies" xml:"Policies"` +} + +// CreateListPoliciesRequest creates a request to invoke ListPolicies API +func CreateListPoliciesRequest() (request *ListPoliciesRequest) { + request = &ListPoliciesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "ListPolicies", "", "") + return +} + +// CreateListPoliciesResponse creates a response to parse from ListPolicies response +func CreateListPoliciesResponse() (response *ListPoliciesResponse) { + response = &ListPoliciesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_policies_for_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_policies_for_group.go new file mode 100644 index 0000000..e4993b5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_policies_for_group.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListPoliciesForGroup invokes the ram.ListPoliciesForGroup API synchronously +// api document: https://help.aliyun.com/api/ram/listpoliciesforgroup.html +func (client *Client) ListPoliciesForGroup(request *ListPoliciesForGroupRequest) (response *ListPoliciesForGroupResponse, err error) { + response = CreateListPoliciesForGroupResponse() + err = client.DoAction(request, response) + return +} + +// ListPoliciesForGroupWithChan invokes the ram.ListPoliciesForGroup API asynchronously +// api document: https://help.aliyun.com/api/ram/listpoliciesforgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPoliciesForGroupWithChan(request *ListPoliciesForGroupRequest) (<-chan *ListPoliciesForGroupResponse, <-chan error) { + responseChan := make(chan *ListPoliciesForGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPoliciesForGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPoliciesForGroupWithCallback invokes the ram.ListPoliciesForGroup API asynchronously +// api document: https://help.aliyun.com/api/ram/listpoliciesforgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPoliciesForGroupWithCallback(request *ListPoliciesForGroupRequest, callback func(response *ListPoliciesForGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPoliciesForGroupResponse + var err error + defer close(result) + response, err = client.ListPoliciesForGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPoliciesForGroupRequest is the request struct for api ListPoliciesForGroup +type ListPoliciesForGroupRequest struct { + *requests.RpcRequest + GroupName string `position:"Query" name:"GroupName"` +} + +// ListPoliciesForGroupResponse is the response struct for api ListPoliciesForGroup +type ListPoliciesForGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Policies PoliciesInListPoliciesForGroup `json:"Policies" xml:"Policies"` +} + +// CreateListPoliciesForGroupRequest creates a request to invoke ListPoliciesForGroup API +func CreateListPoliciesForGroupRequest() (request *ListPoliciesForGroupRequest) { + request = &ListPoliciesForGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "ListPoliciesForGroup", "", "") + return +} + +// CreateListPoliciesForGroupResponse creates a response to parse from ListPoliciesForGroup response +func CreateListPoliciesForGroupResponse() (response *ListPoliciesForGroupResponse) { + response = &ListPoliciesForGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_policies_for_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_policies_for_role.go new file mode 100644 index 0000000..d24d6c7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_policies_for_role.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListPoliciesForRole invokes the ram.ListPoliciesForRole API synchronously +// api document: https://help.aliyun.com/api/ram/listpoliciesforrole.html +func (client *Client) ListPoliciesForRole(request *ListPoliciesForRoleRequest) (response *ListPoliciesForRoleResponse, err error) { + response = CreateListPoliciesForRoleResponse() + err = client.DoAction(request, response) + return +} + +// ListPoliciesForRoleWithChan invokes the ram.ListPoliciesForRole API asynchronously +// api document: https://help.aliyun.com/api/ram/listpoliciesforrole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPoliciesForRoleWithChan(request *ListPoliciesForRoleRequest) (<-chan *ListPoliciesForRoleResponse, <-chan error) { + responseChan := make(chan *ListPoliciesForRoleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPoliciesForRole(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPoliciesForRoleWithCallback invokes the ram.ListPoliciesForRole API asynchronously +// api document: https://help.aliyun.com/api/ram/listpoliciesforrole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPoliciesForRoleWithCallback(request *ListPoliciesForRoleRequest, callback func(response *ListPoliciesForRoleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPoliciesForRoleResponse + var err error + defer close(result) + response, err = client.ListPoliciesForRole(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPoliciesForRoleRequest is the request struct for api ListPoliciesForRole +type ListPoliciesForRoleRequest struct { + *requests.RpcRequest + RoleName string `position:"Query" name:"RoleName"` +} + +// ListPoliciesForRoleResponse is the response struct for api ListPoliciesForRole +type ListPoliciesForRoleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Policies PoliciesInListPoliciesForRole `json:"Policies" xml:"Policies"` +} + +// CreateListPoliciesForRoleRequest creates a request to invoke ListPoliciesForRole API +func CreateListPoliciesForRoleRequest() (request *ListPoliciesForRoleRequest) { + request = &ListPoliciesForRoleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "ListPoliciesForRole", "", "") + return +} + +// CreateListPoliciesForRoleResponse creates a response to parse from ListPoliciesForRole response +func CreateListPoliciesForRoleResponse() (response *ListPoliciesForRoleResponse) { + response = &ListPoliciesForRoleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_policies_for_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_policies_for_user.go new file mode 100644 index 0000000..8dea66f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_policies_for_user.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListPoliciesForUser invokes the ram.ListPoliciesForUser API synchronously +// api document: https://help.aliyun.com/api/ram/listpoliciesforuser.html +func (client *Client) ListPoliciesForUser(request *ListPoliciesForUserRequest) (response *ListPoliciesForUserResponse, err error) { + response = CreateListPoliciesForUserResponse() + err = client.DoAction(request, response) + return +} + +// ListPoliciesForUserWithChan invokes the ram.ListPoliciesForUser API asynchronously +// api document: https://help.aliyun.com/api/ram/listpoliciesforuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPoliciesForUserWithChan(request *ListPoliciesForUserRequest) (<-chan *ListPoliciesForUserResponse, <-chan error) { + responseChan := make(chan *ListPoliciesForUserResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPoliciesForUser(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPoliciesForUserWithCallback invokes the ram.ListPoliciesForUser API asynchronously +// api document: https://help.aliyun.com/api/ram/listpoliciesforuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPoliciesForUserWithCallback(request *ListPoliciesForUserRequest, callback func(response *ListPoliciesForUserResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPoliciesForUserResponse + var err error + defer close(result) + response, err = client.ListPoliciesForUser(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPoliciesForUserRequest is the request struct for api ListPoliciesForUser +type ListPoliciesForUserRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` +} + +// ListPoliciesForUserResponse is the response struct for api ListPoliciesForUser +type ListPoliciesForUserResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Policies PoliciesInListPoliciesForUser `json:"Policies" xml:"Policies"` +} + +// CreateListPoliciesForUserRequest creates a request to invoke ListPoliciesForUser API +func CreateListPoliciesForUserRequest() (request *ListPoliciesForUserRequest) { + request = &ListPoliciesForUserRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "ListPoliciesForUser", "", "") + return +} + +// CreateListPoliciesForUserResponse creates a response to parse from ListPoliciesForUser response +func CreateListPoliciesForUserResponse() (response *ListPoliciesForUserResponse) { + response = &ListPoliciesForUserResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_policy_versions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_policy_versions.go new file mode 100644 index 0000000..c555350 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_policy_versions.go @@ -0,0 +1,105 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListPolicyVersions invokes the ram.ListPolicyVersions API synchronously +// api document: https://help.aliyun.com/api/ram/listpolicyversions.html +func (client *Client) ListPolicyVersions(request *ListPolicyVersionsRequest) (response *ListPolicyVersionsResponse, err error) { + response = CreateListPolicyVersionsResponse() + err = client.DoAction(request, response) + return +} + +// ListPolicyVersionsWithChan invokes the ram.ListPolicyVersions API asynchronously +// api document: https://help.aliyun.com/api/ram/listpolicyversions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPolicyVersionsWithChan(request *ListPolicyVersionsRequest) (<-chan *ListPolicyVersionsResponse, <-chan error) { + responseChan := make(chan *ListPolicyVersionsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPolicyVersions(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPolicyVersionsWithCallback invokes the ram.ListPolicyVersions API asynchronously +// api document: https://help.aliyun.com/api/ram/listpolicyversions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPolicyVersionsWithCallback(request *ListPolicyVersionsRequest, callback func(response *ListPolicyVersionsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPolicyVersionsResponse + var err error + defer close(result) + response, err = client.ListPolicyVersions(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPolicyVersionsRequest is the request struct for api ListPolicyVersions +type ListPolicyVersionsRequest struct { + *requests.RpcRequest + PolicyType string `position:"Query" name:"PolicyType"` + PolicyName string `position:"Query" name:"PolicyName"` +} + +// ListPolicyVersionsResponse is the response struct for api ListPolicyVersions +type ListPolicyVersionsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PolicyVersions PolicyVersions `json:"PolicyVersions" xml:"PolicyVersions"` +} + +// CreateListPolicyVersionsRequest creates a request to invoke ListPolicyVersions API +func CreateListPolicyVersionsRequest() (request *ListPolicyVersionsRequest) { + request = &ListPolicyVersionsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "ListPolicyVersions", "", "") + return +} + +// CreateListPolicyVersionsResponse creates a response to parse from ListPolicyVersions response +func CreateListPolicyVersionsResponse() (response *ListPolicyVersionsResponse) { + response = &ListPolicyVersionsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_public_keys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_public_keys.go new file mode 100644 index 0000000..b32cec8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_public_keys.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListPublicKeys invokes the ram.ListPublicKeys API synchronously +// api document: https://help.aliyun.com/api/ram/listpublickeys.html +func (client *Client) ListPublicKeys(request *ListPublicKeysRequest) (response *ListPublicKeysResponse, err error) { + response = CreateListPublicKeysResponse() + err = client.DoAction(request, response) + return +} + +// ListPublicKeysWithChan invokes the ram.ListPublicKeys API asynchronously +// api document: https://help.aliyun.com/api/ram/listpublickeys.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPublicKeysWithChan(request *ListPublicKeysRequest) (<-chan *ListPublicKeysResponse, <-chan error) { + responseChan := make(chan *ListPublicKeysResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPublicKeys(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPublicKeysWithCallback invokes the ram.ListPublicKeys API asynchronously +// api document: https://help.aliyun.com/api/ram/listpublickeys.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListPublicKeysWithCallback(request *ListPublicKeysRequest, callback func(response *ListPublicKeysResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPublicKeysResponse + var err error + defer close(result) + response, err = client.ListPublicKeys(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPublicKeysRequest is the request struct for api ListPublicKeys +type ListPublicKeysRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` +} + +// ListPublicKeysResponse is the response struct for api ListPublicKeys +type ListPublicKeysResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PublicKeys PublicKeys `json:"PublicKeys" xml:"PublicKeys"` +} + +// CreateListPublicKeysRequest creates a request to invoke ListPublicKeys API +func CreateListPublicKeysRequest() (request *ListPublicKeysRequest) { + request = &ListPublicKeysRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "ListPublicKeys", "", "") + return +} + +// CreateListPublicKeysResponse creates a response to parse from ListPublicKeys response +func CreateListPublicKeysResponse() (response *ListPublicKeysResponse) { + response = &ListPublicKeysResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_roles.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_roles.go new file mode 100644 index 0000000..a7da923 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_roles.go @@ -0,0 +1,107 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListRoles invokes the ram.ListRoles API synchronously +// api document: https://help.aliyun.com/api/ram/listroles.html +func (client *Client) ListRoles(request *ListRolesRequest) (response *ListRolesResponse, err error) { + response = CreateListRolesResponse() + err = client.DoAction(request, response) + return +} + +// ListRolesWithChan invokes the ram.ListRoles API asynchronously +// api document: https://help.aliyun.com/api/ram/listroles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListRolesWithChan(request *ListRolesRequest) (<-chan *ListRolesResponse, <-chan error) { + responseChan := make(chan *ListRolesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListRoles(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListRolesWithCallback invokes the ram.ListRoles API asynchronously +// api document: https://help.aliyun.com/api/ram/listroles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListRolesWithCallback(request *ListRolesRequest, callback func(response *ListRolesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListRolesResponse + var err error + defer close(result) + response, err = client.ListRoles(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListRolesRequest is the request struct for api ListRoles +type ListRolesRequest struct { + *requests.RpcRequest + Marker string `position:"Query" name:"Marker"` + MaxItems requests.Integer `position:"Query" name:"MaxItems"` +} + +// ListRolesResponse is the response struct for api ListRoles +type ListRolesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + IsTruncated bool `json:"IsTruncated" xml:"IsTruncated"` + Marker string `json:"Marker" xml:"Marker"` + Roles RolesInListRoles `json:"Roles" xml:"Roles"` +} + +// CreateListRolesRequest creates a request to invoke ListRoles API +func CreateListRolesRequest() (request *ListRolesRequest) { + request = &ListRolesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "ListRoles", "", "") + return +} + +// CreateListRolesResponse creates a response to parse from ListRoles response +func CreateListRolesResponse() (response *ListRolesResponse) { + response = &ListRolesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_users.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_users.go new file mode 100644 index 0000000..7d68190 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_users.go @@ -0,0 +1,107 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListUsers invokes the ram.ListUsers API synchronously +// api document: https://help.aliyun.com/api/ram/listusers.html +func (client *Client) ListUsers(request *ListUsersRequest) (response *ListUsersResponse, err error) { + response = CreateListUsersResponse() + err = client.DoAction(request, response) + return +} + +// ListUsersWithChan invokes the ram.ListUsers API asynchronously +// api document: https://help.aliyun.com/api/ram/listusers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListUsersWithChan(request *ListUsersRequest) (<-chan *ListUsersResponse, <-chan error) { + responseChan := make(chan *ListUsersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListUsers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListUsersWithCallback invokes the ram.ListUsers API asynchronously +// api document: https://help.aliyun.com/api/ram/listusers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListUsersWithCallback(request *ListUsersRequest, callback func(response *ListUsersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListUsersResponse + var err error + defer close(result) + response, err = client.ListUsers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListUsersRequest is the request struct for api ListUsers +type ListUsersRequest struct { + *requests.RpcRequest + Marker string `position:"Query" name:"Marker"` + MaxItems requests.Integer `position:"Query" name:"MaxItems"` +} + +// ListUsersResponse is the response struct for api ListUsers +type ListUsersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + IsTruncated bool `json:"IsTruncated" xml:"IsTruncated"` + Marker string `json:"Marker" xml:"Marker"` + Users UsersInListUsers `json:"Users" xml:"Users"` +} + +// CreateListUsersRequest creates a request to invoke ListUsers API +func CreateListUsersRequest() (request *ListUsersRequest) { + request = &ListUsersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "ListUsers", "", "") + return +} + +// CreateListUsersResponse creates a response to parse from ListUsers response +func CreateListUsersResponse() (response *ListUsersResponse) { + response = &ListUsersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_users_for_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_users_for_group.go new file mode 100644 index 0000000..b75a380 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_users_for_group.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListUsersForGroup invokes the ram.ListUsersForGroup API synchronously +// api document: https://help.aliyun.com/api/ram/listusersforgroup.html +func (client *Client) ListUsersForGroup(request *ListUsersForGroupRequest) (response *ListUsersForGroupResponse, err error) { + response = CreateListUsersForGroupResponse() + err = client.DoAction(request, response) + return +} + +// ListUsersForGroupWithChan invokes the ram.ListUsersForGroup API asynchronously +// api document: https://help.aliyun.com/api/ram/listusersforgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListUsersForGroupWithChan(request *ListUsersForGroupRequest) (<-chan *ListUsersForGroupResponse, <-chan error) { + responseChan := make(chan *ListUsersForGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListUsersForGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListUsersForGroupWithCallback invokes the ram.ListUsersForGroup API asynchronously +// api document: https://help.aliyun.com/api/ram/listusersforgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListUsersForGroupWithCallback(request *ListUsersForGroupRequest, callback func(response *ListUsersForGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListUsersForGroupResponse + var err error + defer close(result) + response, err = client.ListUsersForGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListUsersForGroupRequest is the request struct for api ListUsersForGroup +type ListUsersForGroupRequest struct { + *requests.RpcRequest + GroupName string `position:"Query" name:"GroupName"` +} + +// ListUsersForGroupResponse is the response struct for api ListUsersForGroup +type ListUsersForGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Users UsersInListUsersForGroup `json:"Users" xml:"Users"` +} + +// CreateListUsersForGroupRequest creates a request to invoke ListUsersForGroup API +func CreateListUsersForGroupRequest() (request *ListUsersForGroupRequest) { + request = &ListUsersForGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "ListUsersForGroup", "", "") + return +} + +// CreateListUsersForGroupResponse creates a response to parse from ListUsersForGroup response +func CreateListUsersForGroupResponse() (response *ListUsersForGroupResponse) { + response = &ListUsersForGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_virtual_mfa_devices.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_virtual_mfa_devices.go new file mode 100644 index 0000000..70041dc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/list_virtual_mfa_devices.go @@ -0,0 +1,103 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListVirtualMFADevices invokes the ram.ListVirtualMFADevices API synchronously +// api document: https://help.aliyun.com/api/ram/listvirtualmfadevices.html +func (client *Client) ListVirtualMFADevices(request *ListVirtualMFADevicesRequest) (response *ListVirtualMFADevicesResponse, err error) { + response = CreateListVirtualMFADevicesResponse() + err = client.DoAction(request, response) + return +} + +// ListVirtualMFADevicesWithChan invokes the ram.ListVirtualMFADevices API asynchronously +// api document: https://help.aliyun.com/api/ram/listvirtualmfadevices.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListVirtualMFADevicesWithChan(request *ListVirtualMFADevicesRequest) (<-chan *ListVirtualMFADevicesResponse, <-chan error) { + responseChan := make(chan *ListVirtualMFADevicesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListVirtualMFADevices(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListVirtualMFADevicesWithCallback invokes the ram.ListVirtualMFADevices API asynchronously +// api document: https://help.aliyun.com/api/ram/listvirtualmfadevices.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ListVirtualMFADevicesWithCallback(request *ListVirtualMFADevicesRequest, callback func(response *ListVirtualMFADevicesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListVirtualMFADevicesResponse + var err error + defer close(result) + response, err = client.ListVirtualMFADevices(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListVirtualMFADevicesRequest is the request struct for api ListVirtualMFADevices +type ListVirtualMFADevicesRequest struct { + *requests.RpcRequest +} + +// ListVirtualMFADevicesResponse is the response struct for api ListVirtualMFADevices +type ListVirtualMFADevicesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VirtualMFADevices VirtualMFADevices `json:"VirtualMFADevices" xml:"VirtualMFADevices"` +} + +// CreateListVirtualMFADevicesRequest creates a request to invoke ListVirtualMFADevices API +func CreateListVirtualMFADevicesRequest() (request *ListVirtualMFADevicesRequest) { + request = &ListVirtualMFADevicesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "ListVirtualMFADevices", "", "") + return +} + +// CreateListVirtualMFADevicesResponse creates a response to parse from ListVirtualMFADevices response +func CreateListVirtualMFADevicesResponse() (response *ListVirtualMFADevicesResponse) { + response = &ListVirtualMFADevicesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/remove_user_from_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/remove_user_from_group.go new file mode 100644 index 0000000..489306d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/remove_user_from_group.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveUserFromGroup invokes the ram.RemoveUserFromGroup API synchronously +// api document: https://help.aliyun.com/api/ram/removeuserfromgroup.html +func (client *Client) RemoveUserFromGroup(request *RemoveUserFromGroupRequest) (response *RemoveUserFromGroupResponse, err error) { + response = CreateRemoveUserFromGroupResponse() + err = client.DoAction(request, response) + return +} + +// RemoveUserFromGroupWithChan invokes the ram.RemoveUserFromGroup API asynchronously +// api document: https://help.aliyun.com/api/ram/removeuserfromgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveUserFromGroupWithChan(request *RemoveUserFromGroupRequest) (<-chan *RemoveUserFromGroupResponse, <-chan error) { + responseChan := make(chan *RemoveUserFromGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveUserFromGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveUserFromGroupWithCallback invokes the ram.RemoveUserFromGroup API asynchronously +// api document: https://help.aliyun.com/api/ram/removeuserfromgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveUserFromGroupWithCallback(request *RemoveUserFromGroupRequest, callback func(response *RemoveUserFromGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveUserFromGroupResponse + var err error + defer close(result) + response, err = client.RemoveUserFromGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveUserFromGroupRequest is the request struct for api RemoveUserFromGroup +type RemoveUserFromGroupRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` + GroupName string `position:"Query" name:"GroupName"` +} + +// RemoveUserFromGroupResponse is the response struct for api RemoveUserFromGroup +type RemoveUserFromGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveUserFromGroupRequest creates a request to invoke RemoveUserFromGroup API +func CreateRemoveUserFromGroupRequest() (request *RemoveUserFromGroupRequest) { + request = &RemoveUserFromGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "RemoveUserFromGroup", "", "") + return +} + +// CreateRemoveUserFromGroupResponse creates a response to parse from RemoveUserFromGroup response +func CreateRemoveUserFromGroupResponse() (response *RemoveUserFromGroupResponse) { + response = &RemoveUserFromGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/set_account_alias.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/set_account_alias.go new file mode 100644 index 0000000..472e918 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/set_account_alias.go @@ -0,0 +1,103 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetAccountAlias invokes the ram.SetAccountAlias API synchronously +// api document: https://help.aliyun.com/api/ram/setaccountalias.html +func (client *Client) SetAccountAlias(request *SetAccountAliasRequest) (response *SetAccountAliasResponse, err error) { + response = CreateSetAccountAliasResponse() + err = client.DoAction(request, response) + return +} + +// SetAccountAliasWithChan invokes the ram.SetAccountAlias API asynchronously +// api document: https://help.aliyun.com/api/ram/setaccountalias.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetAccountAliasWithChan(request *SetAccountAliasRequest) (<-chan *SetAccountAliasResponse, <-chan error) { + responseChan := make(chan *SetAccountAliasResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetAccountAlias(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetAccountAliasWithCallback invokes the ram.SetAccountAlias API asynchronously +// api document: https://help.aliyun.com/api/ram/setaccountalias.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetAccountAliasWithCallback(request *SetAccountAliasRequest, callback func(response *SetAccountAliasResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetAccountAliasResponse + var err error + defer close(result) + response, err = client.SetAccountAlias(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetAccountAliasRequest is the request struct for api SetAccountAlias +type SetAccountAliasRequest struct { + *requests.RpcRequest + AccountAlias string `position:"Query" name:"AccountAlias"` +} + +// SetAccountAliasResponse is the response struct for api SetAccountAlias +type SetAccountAliasResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetAccountAliasRequest creates a request to invoke SetAccountAlias API +func CreateSetAccountAliasRequest() (request *SetAccountAliasRequest) { + request = &SetAccountAliasRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "SetAccountAlias", "", "") + return +} + +// CreateSetAccountAliasResponse creates a response to parse from SetAccountAlias response +func CreateSetAccountAliasResponse() (response *SetAccountAliasResponse) { + response = &SetAccountAliasResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/set_default_policy_version.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/set_default_policy_version.go new file mode 100644 index 0000000..69eba33 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/set_default_policy_version.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetDefaultPolicyVersion invokes the ram.SetDefaultPolicyVersion API synchronously +// api document: https://help.aliyun.com/api/ram/setdefaultpolicyversion.html +func (client *Client) SetDefaultPolicyVersion(request *SetDefaultPolicyVersionRequest) (response *SetDefaultPolicyVersionResponse, err error) { + response = CreateSetDefaultPolicyVersionResponse() + err = client.DoAction(request, response) + return +} + +// SetDefaultPolicyVersionWithChan invokes the ram.SetDefaultPolicyVersion API asynchronously +// api document: https://help.aliyun.com/api/ram/setdefaultpolicyversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetDefaultPolicyVersionWithChan(request *SetDefaultPolicyVersionRequest) (<-chan *SetDefaultPolicyVersionResponse, <-chan error) { + responseChan := make(chan *SetDefaultPolicyVersionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetDefaultPolicyVersion(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetDefaultPolicyVersionWithCallback invokes the ram.SetDefaultPolicyVersion API asynchronously +// api document: https://help.aliyun.com/api/ram/setdefaultpolicyversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetDefaultPolicyVersionWithCallback(request *SetDefaultPolicyVersionRequest, callback func(response *SetDefaultPolicyVersionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetDefaultPolicyVersionResponse + var err error + defer close(result) + response, err = client.SetDefaultPolicyVersion(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetDefaultPolicyVersionRequest is the request struct for api SetDefaultPolicyVersion +type SetDefaultPolicyVersionRequest struct { + *requests.RpcRequest + PolicyName string `position:"Query" name:"PolicyName"` + VersionId string `position:"Query" name:"VersionId"` +} + +// SetDefaultPolicyVersionResponse is the response struct for api SetDefaultPolicyVersion +type SetDefaultPolicyVersionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetDefaultPolicyVersionRequest creates a request to invoke SetDefaultPolicyVersion API +func CreateSetDefaultPolicyVersionRequest() (request *SetDefaultPolicyVersionRequest) { + request = &SetDefaultPolicyVersionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "SetDefaultPolicyVersion", "", "") + return +} + +// CreateSetDefaultPolicyVersionResponse creates a response to parse from SetDefaultPolicyVersion response +func CreateSetDefaultPolicyVersionResponse() (response *SetDefaultPolicyVersionResponse) { + response = &SetDefaultPolicyVersionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/set_password_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/set_password_policy.go new file mode 100644 index 0000000..49719ed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/set_password_policy.go @@ -0,0 +1,112 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetPasswordPolicy invokes the ram.SetPasswordPolicy API synchronously +// api document: https://help.aliyun.com/api/ram/setpasswordpolicy.html +func (client *Client) SetPasswordPolicy(request *SetPasswordPolicyRequest) (response *SetPasswordPolicyResponse, err error) { + response = CreateSetPasswordPolicyResponse() + err = client.DoAction(request, response) + return +} + +// SetPasswordPolicyWithChan invokes the ram.SetPasswordPolicy API asynchronously +// api document: https://help.aliyun.com/api/ram/setpasswordpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetPasswordPolicyWithChan(request *SetPasswordPolicyRequest) (<-chan *SetPasswordPolicyResponse, <-chan error) { + responseChan := make(chan *SetPasswordPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetPasswordPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetPasswordPolicyWithCallback invokes the ram.SetPasswordPolicy API asynchronously +// api document: https://help.aliyun.com/api/ram/setpasswordpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetPasswordPolicyWithCallback(request *SetPasswordPolicyRequest, callback func(response *SetPasswordPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetPasswordPolicyResponse + var err error + defer close(result) + response, err = client.SetPasswordPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetPasswordPolicyRequest is the request struct for api SetPasswordPolicy +type SetPasswordPolicyRequest struct { + *requests.RpcRequest + MinimumPasswordLength requests.Integer `position:"Query" name:"MinimumPasswordLength"` + RequireLowercaseCharacters requests.Boolean `position:"Query" name:"RequireLowercaseCharacters"` + RequireUppercaseCharacters requests.Boolean `position:"Query" name:"RequireUppercaseCharacters"` + RequireNumbers requests.Boolean `position:"Query" name:"RequireNumbers"` + RequireSymbols requests.Boolean `position:"Query" name:"RequireSymbols"` + HardExpiry requests.Boolean `position:"Query" name:"HardExpiry"` + MaxPasswordAge requests.Integer `position:"Query" name:"MaxPasswordAge"` + PasswordReusePrevention requests.Integer `position:"Query" name:"PasswordReusePrevention"` + MaxLoginAttemps requests.Integer `position:"Query" name:"MaxLoginAttemps"` +} + +// SetPasswordPolicyResponse is the response struct for api SetPasswordPolicy +type SetPasswordPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PasswordPolicy PasswordPolicy `json:"PasswordPolicy" xml:"PasswordPolicy"` +} + +// CreateSetPasswordPolicyRequest creates a request to invoke SetPasswordPolicy API +func CreateSetPasswordPolicyRequest() (request *SetPasswordPolicyRequest) { + request = &SetPasswordPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "SetPasswordPolicy", "", "") + return +} + +// CreateSetPasswordPolicyResponse creates a response to parse from SetPasswordPolicy response +func CreateSetPasswordPolicyResponse() (response *SetPasswordPolicyResponse) { + response = &SetPasswordPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/set_security_preference.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/set_security_preference.go new file mode 100644 index 0000000..8b755ab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/set_security_preference.go @@ -0,0 +1,110 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetSecurityPreference invokes the ram.SetSecurityPreference API synchronously +// api document: https://help.aliyun.com/api/ram/setsecuritypreference.html +func (client *Client) SetSecurityPreference(request *SetSecurityPreferenceRequest) (response *SetSecurityPreferenceResponse, err error) { + response = CreateSetSecurityPreferenceResponse() + err = client.DoAction(request, response) + return +} + +// SetSecurityPreferenceWithChan invokes the ram.SetSecurityPreference API asynchronously +// api document: https://help.aliyun.com/api/ram/setsecuritypreference.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetSecurityPreferenceWithChan(request *SetSecurityPreferenceRequest) (<-chan *SetSecurityPreferenceResponse, <-chan error) { + responseChan := make(chan *SetSecurityPreferenceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetSecurityPreference(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetSecurityPreferenceWithCallback invokes the ram.SetSecurityPreference API asynchronously +// api document: https://help.aliyun.com/api/ram/setsecuritypreference.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetSecurityPreferenceWithCallback(request *SetSecurityPreferenceRequest, callback func(response *SetSecurityPreferenceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetSecurityPreferenceResponse + var err error + defer close(result) + response, err = client.SetSecurityPreference(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetSecurityPreferenceRequest is the request struct for api SetSecurityPreference +type SetSecurityPreferenceRequest struct { + *requests.RpcRequest + EnableSaveMFATicket requests.Boolean `position:"Query" name:"EnableSaveMFATicket"` + AllowUserToChangePassword requests.Boolean `position:"Query" name:"AllowUserToChangePassword"` + AllowUserToManageAccessKeys requests.Boolean `position:"Query" name:"AllowUserToManageAccessKeys"` + AllowUserToManagePublicKeys requests.Boolean `position:"Query" name:"AllowUserToManagePublicKeys"` + AllowUserToManageMFADevices requests.Boolean `position:"Query" name:"AllowUserToManageMFADevices"` + LoginSessionDuration requests.Integer `position:"Query" name:"LoginSessionDuration"` + LoginNetworkMasks string `position:"Query" name:"LoginNetworkMasks"` +} + +// SetSecurityPreferenceResponse is the response struct for api SetSecurityPreference +type SetSecurityPreferenceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SecurityPreference SecurityPreference `json:"SecurityPreference" xml:"SecurityPreference"` +} + +// CreateSetSecurityPreferenceRequest creates a request to invoke SetSecurityPreference API +func CreateSetSecurityPreferenceRequest() (request *SetSecurityPreferenceRequest) { + request = &SetSecurityPreferenceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "SetSecurityPreference", "", "") + return +} + +// CreateSetSecurityPreferenceResponse creates a response to parse from SetSecurityPreference response +func CreateSetSecurityPreferenceResponse() (response *SetSecurityPreferenceResponse) { + response = &SetSecurityPreferenceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_access_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_access_key.go new file mode 100644 index 0000000..41c9b52 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_access_key.go @@ -0,0 +1,24 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AccessKey is a nested struct in ram response +type AccessKey struct { + CreateDate string `json:"CreateDate" xml:"CreateDate"` + AccessKeyId string `json:"AccessKeyId" xml:"AccessKeyId"` + AccessKeySecret string `json:"AccessKeySecret" xml:"AccessKeySecret"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_access_key_preference.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_access_key_preference.go new file mode 100644 index 0000000..379d041 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_access_key_preference.go @@ -0,0 +1,21 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AccessKeyPreference is a nested struct in ram response +type AccessKeyPreference struct { + AllowUserToManageAccessKeys bool `json:"AllowUserToManageAccessKeys" xml:"AllowUserToManageAccessKeys"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_access_keys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_access_keys.go new file mode 100644 index 0000000..ecea1d7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_access_keys.go @@ -0,0 +1,21 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AccessKeys is a nested struct in ram response +type AccessKeys struct { + AccessKey []AccessKey `json:"AccessKey" xml:"AccessKey"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_group.go new file mode 100644 index 0000000..e3d8746 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_group.go @@ -0,0 +1,26 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Group is a nested struct in ram response +type Group struct { + CreateDate string `json:"CreateDate" xml:"CreateDate"` + Comments string `json:"Comments" xml:"Comments"` + AttachDate string `json:"AttachDate" xml:"AttachDate"` + GroupName string `json:"GroupName" xml:"GroupName"` + JoinDate string `json:"JoinDate" xml:"JoinDate"` + UpdateDate string `json:"UpdateDate" xml:"UpdateDate"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_groups_in_list_entities_for_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_groups_in_list_entities_for_policy.go new file mode 100644 index 0000000..ab33a29 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_groups_in_list_entities_for_policy.go @@ -0,0 +1,21 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// GroupsInListEntitiesForPolicy is a nested struct in ram response +type GroupsInListEntitiesForPolicy struct { + Group []Group `json:"Group" xml:"Group"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_groups_in_list_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_groups_in_list_groups.go new file mode 100644 index 0000000..7765486 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_groups_in_list_groups.go @@ -0,0 +1,21 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// GroupsInListGroups is a nested struct in ram response +type GroupsInListGroups struct { + Group []Group `json:"Group" xml:"Group"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_groups_in_list_groups_for_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_groups_in_list_groups_for_user.go new file mode 100644 index 0000000..c8596fb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_groups_in_list_groups_for_user.go @@ -0,0 +1,21 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// GroupsInListGroupsForUser is a nested struct in ram response +type GroupsInListGroupsForUser struct { + Group []Group `json:"Group" xml:"Group"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_login_profile.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_login_profile.go new file mode 100644 index 0000000..6b1d51b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_login_profile.go @@ -0,0 +1,24 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LoginProfile is a nested struct in ram response +type LoginProfile struct { + CreateDate string `json:"CreateDate" xml:"CreateDate"` + MFABindRequired bool `json:"MFABindRequired" xml:"MFABindRequired"` + UserName string `json:"UserName" xml:"UserName"` + PasswordResetRequired bool `json:"PasswordResetRequired" xml:"PasswordResetRequired"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_login_profile_preference.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_login_profile_preference.go new file mode 100644 index 0000000..22a7dc7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_login_profile_preference.go @@ -0,0 +1,24 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LoginProfilePreference is a nested struct in ram response +type LoginProfilePreference struct { + LoginSessionDuration int `json:"LoginSessionDuration" xml:"LoginSessionDuration"` + EnableSaveMFATicket bool `json:"EnableSaveMFATicket" xml:"EnableSaveMFATicket"` + LoginNetworkMasks string `json:"LoginNetworkMasks" xml:"LoginNetworkMasks"` + AllowUserToChangePassword bool `json:"AllowUserToChangePassword" xml:"AllowUserToChangePassword"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_mfa_device.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_mfa_device.go new file mode 100644 index 0000000..eea8969 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_mfa_device.go @@ -0,0 +1,21 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MFADevice is a nested struct in ram response +type MFADevice struct { + SerialNumber string `json:"SerialNumber" xml:"SerialNumber"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_mfa_preference.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_mfa_preference.go new file mode 100644 index 0000000..8fc3783 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_mfa_preference.go @@ -0,0 +1,21 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MFAPreference is a nested struct in ram response +type MFAPreference struct { + AllowUserToManageMFADevices bool `json:"AllowUserToManageMFADevices" xml:"AllowUserToManageMFADevices"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_password_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_password_policy.go new file mode 100644 index 0000000..16145e8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_password_policy.go @@ -0,0 +1,29 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PasswordPolicy is a nested struct in ram response +type PasswordPolicy struct { + MaxPasswordAge int `json:"MaxPasswordAge" xml:"MaxPasswordAge"` + RequireNumbers bool `json:"RequireNumbers" xml:"RequireNumbers"` + RequireLowercaseCharacters bool `json:"RequireLowercaseCharacters" xml:"RequireLowercaseCharacters"` + HardExpiry bool `json:"HardExpiry" xml:"HardExpiry"` + RequireSymbols bool `json:"RequireSymbols" xml:"RequireSymbols"` + RequireUppercaseCharacters bool `json:"RequireUppercaseCharacters" xml:"RequireUppercaseCharacters"` + MaxLoginAttemps int `json:"MaxLoginAttemps" xml:"MaxLoginAttemps"` + MinimumPasswordLength int `json:"MinimumPasswordLength" xml:"MinimumPasswordLength"` + PasswordReusePrevention int `json:"PasswordReusePrevention" xml:"PasswordReusePrevention"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policies_in_list_policies.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policies_in_list_policies.go new file mode 100644 index 0000000..b4f9e91 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policies_in_list_policies.go @@ -0,0 +1,21 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PoliciesInListPolicies is a nested struct in ram response +type PoliciesInListPolicies struct { + Policy []Policy `json:"Policy" xml:"Policy"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policies_in_list_policies_for_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policies_in_list_policies_for_group.go new file mode 100644 index 0000000..6046461 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policies_in_list_policies_for_group.go @@ -0,0 +1,21 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PoliciesInListPoliciesForGroup is a nested struct in ram response +type PoliciesInListPoliciesForGroup struct { + Policy []Policy `json:"Policy" xml:"Policy"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policies_in_list_policies_for_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policies_in_list_policies_for_role.go new file mode 100644 index 0000000..9bc518e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policies_in_list_policies_for_role.go @@ -0,0 +1,21 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PoliciesInListPoliciesForRole is a nested struct in ram response +type PoliciesInListPoliciesForRole struct { + Policy []Policy `json:"Policy" xml:"Policy"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policies_in_list_policies_for_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policies_in_list_policies_for_user.go new file mode 100644 index 0000000..1b60c9a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policies_in_list_policies_for_user.go @@ -0,0 +1,21 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PoliciesInListPoliciesForUser is a nested struct in ram response +type PoliciesInListPoliciesForUser struct { + Policy []Policy `json:"Policy" xml:"Policy"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policy.go new file mode 100644 index 0000000..539f475 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policy.go @@ -0,0 +1,29 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Policy is a nested struct in ram response +type Policy struct { + CreateDate string `json:"CreateDate" xml:"CreateDate"` + PolicyType string `json:"PolicyType" xml:"PolicyType"` + PolicyDocument string `json:"PolicyDocument" xml:"PolicyDocument"` + Description string `json:"Description" xml:"Description"` + AttachmentCount int `json:"AttachmentCount" xml:"AttachmentCount"` + AttachDate string `json:"AttachDate" xml:"AttachDate"` + DefaultVersion string `json:"DefaultVersion" xml:"DefaultVersion"` + PolicyName string `json:"PolicyName" xml:"PolicyName"` + UpdateDate string `json:"UpdateDate" xml:"UpdateDate"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policy_version.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policy_version.go new file mode 100644 index 0000000..ec99586 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policy_version.go @@ -0,0 +1,24 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PolicyVersion is a nested struct in ram response +type PolicyVersion struct { + CreateDate string `json:"CreateDate" xml:"CreateDate"` + PolicyDocument string `json:"PolicyDocument" xml:"PolicyDocument"` + VersionId string `json:"VersionId" xml:"VersionId"` + IsDefaultVersion bool `json:"IsDefaultVersion" xml:"IsDefaultVersion"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policy_versions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policy_versions.go new file mode 100644 index 0000000..41952d5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_policy_versions.go @@ -0,0 +1,21 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PolicyVersions is a nested struct in ram response +type PolicyVersions struct { + PolicyVersion []PolicyVersion `json:"PolicyVersion" xml:"PolicyVersion"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_public_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_public_key.go new file mode 100644 index 0000000..38288c1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_public_key.go @@ -0,0 +1,24 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PublicKey is a nested struct in ram response +type PublicKey struct { + CreateDate string `json:"CreateDate" xml:"CreateDate"` + PublicKeySpec string `json:"PublicKeySpec" xml:"PublicKeySpec"` + PublicKeyId string `json:"PublicKeyId" xml:"PublicKeyId"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_public_key_preference.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_public_key_preference.go new file mode 100644 index 0000000..52d215d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_public_key_preference.go @@ -0,0 +1,21 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PublicKeyPreference is a nested struct in ram response +type PublicKeyPreference struct { + AllowUserToManagePublicKeys bool `json:"AllowUserToManagePublicKeys" xml:"AllowUserToManagePublicKeys"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_public_keys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_public_keys.go new file mode 100644 index 0000000..c80e4ef --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_public_keys.go @@ -0,0 +1,21 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PublicKeys is a nested struct in ram response +type PublicKeys struct { + PublicKey []PublicKey `json:"PublicKey" xml:"PublicKey"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_role.go new file mode 100644 index 0000000..bac081a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_role.go @@ -0,0 +1,28 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Role is a nested struct in ram response +type Role struct { + CreateDate string `json:"CreateDate" xml:"CreateDate"` + AssumeRolePolicyDocument string `json:"AssumeRolePolicyDocument" xml:"AssumeRolePolicyDocument"` + RoleId string `json:"RoleId" xml:"RoleId"` + RoleName string `json:"RoleName" xml:"RoleName"` + Description string `json:"Description" xml:"Description"` + AttachDate string `json:"AttachDate" xml:"AttachDate"` + Arn string `json:"Arn" xml:"Arn"` + UpdateDate string `json:"UpdateDate" xml:"UpdateDate"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_roles_in_list_entities_for_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_roles_in_list_entities_for_policy.go new file mode 100644 index 0000000..d72583f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_roles_in_list_entities_for_policy.go @@ -0,0 +1,21 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RolesInListEntitiesForPolicy is a nested struct in ram response +type RolesInListEntitiesForPolicy struct { + Role []Role `json:"Role" xml:"Role"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_roles_in_list_roles.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_roles_in_list_roles.go new file mode 100644 index 0000000..ae81bc6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_roles_in_list_roles.go @@ -0,0 +1,21 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RolesInListRoles is a nested struct in ram response +type RolesInListRoles struct { + Role []Role `json:"Role" xml:"Role"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_security_preference.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_security_preference.go new file mode 100644 index 0000000..944369a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_security_preference.go @@ -0,0 +1,24 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SecurityPreference is a nested struct in ram response +type SecurityPreference struct { + LoginProfilePreference LoginProfilePreference `json:"LoginProfilePreference" xml:"LoginProfilePreference"` + PublicKeyPreference PublicKeyPreference `json:"PublicKeyPreference" xml:"PublicKeyPreference"` + MFAPreference MFAPreference `json:"MFAPreference" xml:"MFAPreference"` + AccessKeyPreference AccessKeyPreference `json:"AccessKeyPreference" xml:"AccessKeyPreference"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_user.go new file mode 100644 index 0000000..b8df852 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_user.go @@ -0,0 +1,31 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// User is a nested struct in ram response +type User struct { + CreateDate string `json:"CreateDate" xml:"CreateDate"` + Email string `json:"Email" xml:"Email"` + UserId string `json:"UserId" xml:"UserId"` + Comments string `json:"Comments" xml:"Comments"` + DisplayName string `json:"DisplayName" xml:"DisplayName"` + LastLoginDate string `json:"LastLoginDate" xml:"LastLoginDate"` + MobilePhone string `json:"MobilePhone" xml:"MobilePhone"` + UserName string `json:"UserName" xml:"UserName"` + AttachDate string `json:"AttachDate" xml:"AttachDate"` + JoinDate string `json:"JoinDate" xml:"JoinDate"` + UpdateDate string `json:"UpdateDate" xml:"UpdateDate"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_users_in_list_entities_for_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_users_in_list_entities_for_policy.go new file mode 100644 index 0000000..fa86436 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_users_in_list_entities_for_policy.go @@ -0,0 +1,21 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UsersInListEntitiesForPolicy is a nested struct in ram response +type UsersInListEntitiesForPolicy struct { + User []User `json:"User" xml:"User"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_users_in_list_users.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_users_in_list_users.go new file mode 100644 index 0000000..4859672 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_users_in_list_users.go @@ -0,0 +1,21 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UsersInListUsers is a nested struct in ram response +type UsersInListUsers struct { + User []User `json:"User" xml:"User"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_users_in_list_users_for_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_users_in_list_users_for_group.go new file mode 100644 index 0000000..7114845 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_users_in_list_users_for_group.go @@ -0,0 +1,21 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UsersInListUsersForGroup is a nested struct in ram response +type UsersInListUsersForGroup struct { + User []User `json:"User" xml:"User"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_virtual_mfa_device.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_virtual_mfa_device.go new file mode 100644 index 0000000..2b7ff88 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_virtual_mfa_device.go @@ -0,0 +1,25 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VirtualMFADevice is a nested struct in ram response +type VirtualMFADevice struct { + ActivateDate string `json:"ActivateDate" xml:"ActivateDate"` + SerialNumber string `json:"SerialNumber" xml:"SerialNumber"` + QRCodePNG string `json:"QRCodePNG" xml:"QRCodePNG"` + Base32StringSeed string `json:"Base32StringSeed" xml:"Base32StringSeed"` + User User `json:"User" xml:"User"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_virtual_mfa_devices.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_virtual_mfa_devices.go new file mode 100644 index 0000000..675148a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/struct_virtual_mfa_devices.go @@ -0,0 +1,21 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VirtualMFADevices is a nested struct in ram response +type VirtualMFADevices struct { + VirtualMFADevice []VirtualMFADevice `json:"VirtualMFADevice" xml:"VirtualMFADevice"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/unbind_mfa_device.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/unbind_mfa_device.go new file mode 100644 index 0000000..1327327 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/unbind_mfa_device.go @@ -0,0 +1,104 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UnbindMFADevice invokes the ram.UnbindMFADevice API synchronously +// api document: https://help.aliyun.com/api/ram/unbindmfadevice.html +func (client *Client) UnbindMFADevice(request *UnbindMFADeviceRequest) (response *UnbindMFADeviceResponse, err error) { + response = CreateUnbindMFADeviceResponse() + err = client.DoAction(request, response) + return +} + +// UnbindMFADeviceWithChan invokes the ram.UnbindMFADevice API asynchronously +// api document: https://help.aliyun.com/api/ram/unbindmfadevice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnbindMFADeviceWithChan(request *UnbindMFADeviceRequest) (<-chan *UnbindMFADeviceResponse, <-chan error) { + responseChan := make(chan *UnbindMFADeviceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UnbindMFADevice(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UnbindMFADeviceWithCallback invokes the ram.UnbindMFADevice API asynchronously +// api document: https://help.aliyun.com/api/ram/unbindmfadevice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnbindMFADeviceWithCallback(request *UnbindMFADeviceRequest, callback func(response *UnbindMFADeviceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UnbindMFADeviceResponse + var err error + defer close(result) + response, err = client.UnbindMFADevice(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UnbindMFADeviceRequest is the request struct for api UnbindMFADevice +type UnbindMFADeviceRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` +} + +// UnbindMFADeviceResponse is the response struct for api UnbindMFADevice +type UnbindMFADeviceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MFADevice MFADevice `json:"MFADevice" xml:"MFADevice"` +} + +// CreateUnbindMFADeviceRequest creates a request to invoke UnbindMFADevice API +func CreateUnbindMFADeviceRequest() (request *UnbindMFADeviceRequest) { + request = &UnbindMFADeviceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "UnbindMFADevice", "", "") + return +} + +// CreateUnbindMFADeviceResponse creates a response to parse from UnbindMFADevice response +func CreateUnbindMFADeviceResponse() (response *UnbindMFADeviceResponse) { + response = &UnbindMFADeviceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_access_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_access_key.go new file mode 100644 index 0000000..01c1847 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_access_key.go @@ -0,0 +1,105 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateAccessKey invokes the ram.UpdateAccessKey API synchronously +// api document: https://help.aliyun.com/api/ram/updateaccesskey.html +func (client *Client) UpdateAccessKey(request *UpdateAccessKeyRequest) (response *UpdateAccessKeyResponse, err error) { + response = CreateUpdateAccessKeyResponse() + err = client.DoAction(request, response) + return +} + +// UpdateAccessKeyWithChan invokes the ram.UpdateAccessKey API asynchronously +// api document: https://help.aliyun.com/api/ram/updateaccesskey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateAccessKeyWithChan(request *UpdateAccessKeyRequest) (<-chan *UpdateAccessKeyResponse, <-chan error) { + responseChan := make(chan *UpdateAccessKeyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateAccessKey(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateAccessKeyWithCallback invokes the ram.UpdateAccessKey API asynchronously +// api document: https://help.aliyun.com/api/ram/updateaccesskey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateAccessKeyWithCallback(request *UpdateAccessKeyRequest, callback func(response *UpdateAccessKeyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateAccessKeyResponse + var err error + defer close(result) + response, err = client.UpdateAccessKey(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateAccessKeyRequest is the request struct for api UpdateAccessKey +type UpdateAccessKeyRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` + UserAccessKeyId string `position:"Query" name:"UserAccessKeyId"` + Status string `position:"Query" name:"Status"` +} + +// UpdateAccessKeyResponse is the response struct for api UpdateAccessKey +type UpdateAccessKeyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateAccessKeyRequest creates a request to invoke UpdateAccessKey API +func CreateUpdateAccessKeyRequest() (request *UpdateAccessKeyRequest) { + request = &UpdateAccessKeyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "UpdateAccessKey", "", "") + return +} + +// CreateUpdateAccessKeyResponse creates a response to parse from UpdateAccessKey response +func CreateUpdateAccessKeyResponse() (response *UpdateAccessKeyResponse) { + response = &UpdateAccessKeyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_group.go new file mode 100644 index 0000000..7591fa1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_group.go @@ -0,0 +1,106 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateGroup invokes the ram.UpdateGroup API synchronously +// api document: https://help.aliyun.com/api/ram/updategroup.html +func (client *Client) UpdateGroup(request *UpdateGroupRequest) (response *UpdateGroupResponse, err error) { + response = CreateUpdateGroupResponse() + err = client.DoAction(request, response) + return +} + +// UpdateGroupWithChan invokes the ram.UpdateGroup API asynchronously +// api document: https://help.aliyun.com/api/ram/updategroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateGroupWithChan(request *UpdateGroupRequest) (<-chan *UpdateGroupResponse, <-chan error) { + responseChan := make(chan *UpdateGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateGroupWithCallback invokes the ram.UpdateGroup API asynchronously +// api document: https://help.aliyun.com/api/ram/updategroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateGroupWithCallback(request *UpdateGroupRequest, callback func(response *UpdateGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateGroupResponse + var err error + defer close(result) + response, err = client.UpdateGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateGroupRequest is the request struct for api UpdateGroup +type UpdateGroupRequest struct { + *requests.RpcRequest + GroupName string `position:"Query" name:"GroupName"` + NewGroupName string `position:"Query" name:"NewGroupName"` + NewComments string `position:"Query" name:"NewComments"` +} + +// UpdateGroupResponse is the response struct for api UpdateGroup +type UpdateGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Group Group `json:"Group" xml:"Group"` +} + +// CreateUpdateGroupRequest creates a request to invoke UpdateGroup API +func CreateUpdateGroupRequest() (request *UpdateGroupRequest) { + request = &UpdateGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "UpdateGroup", "", "") + return +} + +// CreateUpdateGroupResponse creates a response to parse from UpdateGroup response +func CreateUpdateGroupResponse() (response *UpdateGroupResponse) { + response = &UpdateGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_login_profile.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_login_profile.go new file mode 100644 index 0000000..5e8ab00 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_login_profile.go @@ -0,0 +1,106 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateLoginProfile invokes the ram.UpdateLoginProfile API synchronously +// api document: https://help.aliyun.com/api/ram/updateloginprofile.html +func (client *Client) UpdateLoginProfile(request *UpdateLoginProfileRequest) (response *UpdateLoginProfileResponse, err error) { + response = CreateUpdateLoginProfileResponse() + err = client.DoAction(request, response) + return +} + +// UpdateLoginProfileWithChan invokes the ram.UpdateLoginProfile API asynchronously +// api document: https://help.aliyun.com/api/ram/updateloginprofile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateLoginProfileWithChan(request *UpdateLoginProfileRequest) (<-chan *UpdateLoginProfileResponse, <-chan error) { + responseChan := make(chan *UpdateLoginProfileResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateLoginProfile(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateLoginProfileWithCallback invokes the ram.UpdateLoginProfile API asynchronously +// api document: https://help.aliyun.com/api/ram/updateloginprofile.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateLoginProfileWithCallback(request *UpdateLoginProfileRequest, callback func(response *UpdateLoginProfileResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateLoginProfileResponse + var err error + defer close(result) + response, err = client.UpdateLoginProfile(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateLoginProfileRequest is the request struct for api UpdateLoginProfile +type UpdateLoginProfileRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` + Password string `position:"Query" name:"Password"` + PasswordResetRequired requests.Boolean `position:"Query" name:"PasswordResetRequired"` + MFABindRequired requests.Boolean `position:"Query" name:"MFABindRequired"` +} + +// UpdateLoginProfileResponse is the response struct for api UpdateLoginProfile +type UpdateLoginProfileResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateLoginProfileRequest creates a request to invoke UpdateLoginProfile API +func CreateUpdateLoginProfileRequest() (request *UpdateLoginProfileRequest) { + request = &UpdateLoginProfileRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "UpdateLoginProfile", "", "") + return +} + +// CreateUpdateLoginProfileResponse creates a response to parse from UpdateLoginProfile response +func CreateUpdateLoginProfileResponse() (response *UpdateLoginProfileResponse) { + response = &UpdateLoginProfileResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_public_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_public_key.go new file mode 100644 index 0000000..c9961ca --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_public_key.go @@ -0,0 +1,105 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdatePublicKey invokes the ram.UpdatePublicKey API synchronously +// api document: https://help.aliyun.com/api/ram/updatepublickey.html +func (client *Client) UpdatePublicKey(request *UpdatePublicKeyRequest) (response *UpdatePublicKeyResponse, err error) { + response = CreateUpdatePublicKeyResponse() + err = client.DoAction(request, response) + return +} + +// UpdatePublicKeyWithChan invokes the ram.UpdatePublicKey API asynchronously +// api document: https://help.aliyun.com/api/ram/updatepublickey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdatePublicKeyWithChan(request *UpdatePublicKeyRequest) (<-chan *UpdatePublicKeyResponse, <-chan error) { + responseChan := make(chan *UpdatePublicKeyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdatePublicKey(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdatePublicKeyWithCallback invokes the ram.UpdatePublicKey API asynchronously +// api document: https://help.aliyun.com/api/ram/updatepublickey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdatePublicKeyWithCallback(request *UpdatePublicKeyRequest, callback func(response *UpdatePublicKeyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdatePublicKeyResponse + var err error + defer close(result) + response, err = client.UpdatePublicKey(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdatePublicKeyRequest is the request struct for api UpdatePublicKey +type UpdatePublicKeyRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` + UserPublicKeyId string `position:"Query" name:"UserPublicKeyId"` + Status string `position:"Query" name:"Status"` +} + +// UpdatePublicKeyResponse is the response struct for api UpdatePublicKey +type UpdatePublicKeyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdatePublicKeyRequest creates a request to invoke UpdatePublicKey API +func CreateUpdatePublicKeyRequest() (request *UpdatePublicKeyRequest) { + request = &UpdatePublicKeyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "UpdatePublicKey", "", "") + return +} + +// CreateUpdatePublicKeyResponse creates a response to parse from UpdatePublicKey response +func CreateUpdatePublicKeyResponse() (response *UpdatePublicKeyResponse) { + response = &UpdatePublicKeyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_role.go new file mode 100644 index 0000000..9df7da7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_role.go @@ -0,0 +1,105 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateRole invokes the ram.UpdateRole API synchronously +// api document: https://help.aliyun.com/api/ram/updaterole.html +func (client *Client) UpdateRole(request *UpdateRoleRequest) (response *UpdateRoleResponse, err error) { + response = CreateUpdateRoleResponse() + err = client.DoAction(request, response) + return +} + +// UpdateRoleWithChan invokes the ram.UpdateRole API asynchronously +// api document: https://help.aliyun.com/api/ram/updaterole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateRoleWithChan(request *UpdateRoleRequest) (<-chan *UpdateRoleResponse, <-chan error) { + responseChan := make(chan *UpdateRoleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateRole(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateRoleWithCallback invokes the ram.UpdateRole API asynchronously +// api document: https://help.aliyun.com/api/ram/updaterole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateRoleWithCallback(request *UpdateRoleRequest, callback func(response *UpdateRoleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateRoleResponse + var err error + defer close(result) + response, err = client.UpdateRole(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateRoleRequest is the request struct for api UpdateRole +type UpdateRoleRequest struct { + *requests.RpcRequest + RoleName string `position:"Query" name:"RoleName"` + NewAssumeRolePolicyDocument string `position:"Query" name:"NewAssumeRolePolicyDocument"` +} + +// UpdateRoleResponse is the response struct for api UpdateRole +type UpdateRoleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Role Role `json:"Role" xml:"Role"` +} + +// CreateUpdateRoleRequest creates a request to invoke UpdateRole API +func CreateUpdateRoleRequest() (request *UpdateRoleRequest) { + request = &UpdateRoleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "UpdateRole", "", "") + return +} + +// CreateUpdateRoleResponse creates a response to parse from UpdateRole response +func CreateUpdateRoleResponse() (response *UpdateRoleResponse) { + response = &UpdateRoleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_user.go new file mode 100644 index 0000000..27add0a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/update_user.go @@ -0,0 +1,109 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateUser invokes the ram.UpdateUser API synchronously +// api document: https://help.aliyun.com/api/ram/updateuser.html +func (client *Client) UpdateUser(request *UpdateUserRequest) (response *UpdateUserResponse, err error) { + response = CreateUpdateUserResponse() + err = client.DoAction(request, response) + return +} + +// UpdateUserWithChan invokes the ram.UpdateUser API asynchronously +// api document: https://help.aliyun.com/api/ram/updateuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateUserWithChan(request *UpdateUserRequest) (<-chan *UpdateUserResponse, <-chan error) { + responseChan := make(chan *UpdateUserResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateUser(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateUserWithCallback invokes the ram.UpdateUser API asynchronously +// api document: https://help.aliyun.com/api/ram/updateuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateUserWithCallback(request *UpdateUserRequest, callback func(response *UpdateUserResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateUserResponse + var err error + defer close(result) + response, err = client.UpdateUser(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateUserRequest is the request struct for api UpdateUser +type UpdateUserRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` + NewUserName string `position:"Query" name:"NewUserName"` + NewDisplayName string `position:"Query" name:"NewDisplayName"` + NewMobilePhone string `position:"Query" name:"NewMobilePhone"` + NewEmail string `position:"Query" name:"NewEmail"` + NewComments string `position:"Query" name:"NewComments"` +} + +// UpdateUserResponse is the response struct for api UpdateUser +type UpdateUserResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + User User `json:"User" xml:"User"` +} + +// CreateUpdateUserRequest creates a request to invoke UpdateUser API +func CreateUpdateUserRequest() (request *UpdateUserRequest) { + request = &UpdateUserRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "UpdateUser", "", "") + return +} + +// CreateUpdateUserResponse creates a response to parse from UpdateUser response +func CreateUpdateUserResponse() (response *UpdateUserResponse) { + response = &UpdateUserResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/upload_public_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/upload_public_key.go new file mode 100644 index 0000000..dcc468a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/upload_public_key.go @@ -0,0 +1,105 @@ +package ram + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UploadPublicKey invokes the ram.UploadPublicKey API synchronously +// api document: https://help.aliyun.com/api/ram/uploadpublickey.html +func (client *Client) UploadPublicKey(request *UploadPublicKeyRequest) (response *UploadPublicKeyResponse, err error) { + response = CreateUploadPublicKeyResponse() + err = client.DoAction(request, response) + return +} + +// UploadPublicKeyWithChan invokes the ram.UploadPublicKey API asynchronously +// api document: https://help.aliyun.com/api/ram/uploadpublickey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UploadPublicKeyWithChan(request *UploadPublicKeyRequest) (<-chan *UploadPublicKeyResponse, <-chan error) { + responseChan := make(chan *UploadPublicKeyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UploadPublicKey(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UploadPublicKeyWithCallback invokes the ram.UploadPublicKey API asynchronously +// api document: https://help.aliyun.com/api/ram/uploadpublickey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UploadPublicKeyWithCallback(request *UploadPublicKeyRequest, callback func(response *UploadPublicKeyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UploadPublicKeyResponse + var err error + defer close(result) + response, err = client.UploadPublicKey(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UploadPublicKeyRequest is the request struct for api UploadPublicKey +type UploadPublicKeyRequest struct { + *requests.RpcRequest + UserName string `position:"Query" name:"UserName"` + PublicKeySpec string `position:"Query" name:"PublicKeySpec"` +} + +// UploadPublicKeyResponse is the response struct for api UploadPublicKey +type UploadPublicKeyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PublicKey PublicKey `json:"PublicKey" xml:"PublicKey"` +} + +// CreateUploadPublicKeyRequest creates a request to invoke UploadPublicKey API +func CreateUploadPublicKeyRequest() (request *UploadPublicKeyRequest) { + request = &UploadPublicKeyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ram", "2015-05-01", "UploadPublicKey", "", "") + return +} + +// CreateUploadPublicKeyResponse creates a response to parse from UploadPublicKey response +func CreateUploadPublicKeyResponse() (response *UploadPublicKeyResponse) { + response = &UploadPublicKeyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/add_tags_to_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/add_tags_to_resource.go new file mode 100644 index 0000000..128a0c2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/add_tags_to_resource.go @@ -0,0 +1,120 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddTagsToResource invokes the rds.AddTagsToResource API synchronously +// api document: https://help.aliyun.com/api/rds/addtagstoresource.html +func (client *Client) AddTagsToResource(request *AddTagsToResourceRequest) (response *AddTagsToResourceResponse, err error) { + response = CreateAddTagsToResourceResponse() + err = client.DoAction(request, response) + return +} + +// AddTagsToResourceWithChan invokes the rds.AddTagsToResource API asynchronously +// api document: https://help.aliyun.com/api/rds/addtagstoresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddTagsToResourceWithChan(request *AddTagsToResourceRequest) (<-chan *AddTagsToResourceResponse, <-chan error) { + responseChan := make(chan *AddTagsToResourceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddTagsToResource(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddTagsToResourceWithCallback invokes the rds.AddTagsToResource API asynchronously +// api document: https://help.aliyun.com/api/rds/addtagstoresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddTagsToResourceWithCallback(request *AddTagsToResourceRequest, callback func(response *AddTagsToResourceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddTagsToResourceResponse + var err error + defer close(result) + response, err = client.AddTagsToResource(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddTagsToResourceRequest is the request struct for api AddTagsToResource +type AddTagsToResourceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + ProxyId string `position:"Query" name:"proxyId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + Tags string `position:"Query" name:"Tags"` + Tag1Key string `position:"Query" name:"Tag.1.key"` + Tag2Key string `position:"Query" name:"Tag.2.key"` + Tag3Key string `position:"Query" name:"Tag.3.key"` + Tag4Key string `position:"Query" name:"Tag.4.key"` + Tag5Key string `position:"Query" name:"Tag.5.key"` + Tag1Value string `position:"Query" name:"Tag.1.value"` + Tag2Value string `position:"Query" name:"Tag.2.value"` + Tag3Value string `position:"Query" name:"Tag.3.value"` + Tag4Value string `position:"Query" name:"Tag.4.value"` + Tag5Value string `position:"Query" name:"Tag.5.value"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// AddTagsToResourceResponse is the response struct for api AddTagsToResource +type AddTagsToResourceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddTagsToResourceRequest creates a request to invoke AddTagsToResource API +func CreateAddTagsToResourceRequest() (request *AddTagsToResourceRequest) { + request = &AddTagsToResourceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "AddTagsToResource", "rds", "openAPI") + return +} + +// CreateAddTagsToResourceResponse creates a response to parse from AddTagsToResource response +func CreateAddTagsToResourceResponse() (response *AddTagsToResourceResponse) { + response = &AddTagsToResourceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/allocate_instance_private_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/allocate_instance_private_connection.go new file mode 100644 index 0000000..c47f7f5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/allocate_instance_private_connection.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AllocateInstancePrivateConnection invokes the rds.AllocateInstancePrivateConnection API synchronously +// api document: https://help.aliyun.com/api/rds/allocateinstanceprivateconnection.html +func (client *Client) AllocateInstancePrivateConnection(request *AllocateInstancePrivateConnectionRequest) (response *AllocateInstancePrivateConnectionResponse, err error) { + response = CreateAllocateInstancePrivateConnectionResponse() + err = client.DoAction(request, response) + return +} + +// AllocateInstancePrivateConnectionWithChan invokes the rds.AllocateInstancePrivateConnection API asynchronously +// api document: https://help.aliyun.com/api/rds/allocateinstanceprivateconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AllocateInstancePrivateConnectionWithChan(request *AllocateInstancePrivateConnectionRequest) (<-chan *AllocateInstancePrivateConnectionResponse, <-chan error) { + responseChan := make(chan *AllocateInstancePrivateConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AllocateInstancePrivateConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AllocateInstancePrivateConnectionWithCallback invokes the rds.AllocateInstancePrivateConnection API asynchronously +// api document: https://help.aliyun.com/api/rds/allocateinstanceprivateconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AllocateInstancePrivateConnectionWithCallback(request *AllocateInstancePrivateConnectionRequest, callback func(response *AllocateInstancePrivateConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AllocateInstancePrivateConnectionResponse + var err error + defer close(result) + response, err = client.AllocateInstancePrivateConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AllocateInstancePrivateConnectionRequest is the request struct for api AllocateInstancePrivateConnection +type AllocateInstancePrivateConnectionRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + ConnectionStringPrefix string `position:"Query" name:"ConnectionStringPrefix"` + Port string `position:"Query" name:"Port"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// AllocateInstancePrivateConnectionResponse is the response struct for api AllocateInstancePrivateConnection +type AllocateInstancePrivateConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAllocateInstancePrivateConnectionRequest creates a request to invoke AllocateInstancePrivateConnection API +func CreateAllocateInstancePrivateConnectionRequest() (request *AllocateInstancePrivateConnectionRequest) { + request = &AllocateInstancePrivateConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "AllocateInstancePrivateConnection", "rds", "openAPI") + return +} + +// CreateAllocateInstancePrivateConnectionResponse creates a response to parse from AllocateInstancePrivateConnection response +func CreateAllocateInstancePrivateConnectionResponse() (response *AllocateInstancePrivateConnectionResponse) { + response = &AllocateInstancePrivateConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/allocate_instance_public_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/allocate_instance_public_connection.go new file mode 100644 index 0000000..bc0b233 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/allocate_instance_public_connection.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AllocateInstancePublicConnection invokes the rds.AllocateInstancePublicConnection API synchronously +// api document: https://help.aliyun.com/api/rds/allocateinstancepublicconnection.html +func (client *Client) AllocateInstancePublicConnection(request *AllocateInstancePublicConnectionRequest) (response *AllocateInstancePublicConnectionResponse, err error) { + response = CreateAllocateInstancePublicConnectionResponse() + err = client.DoAction(request, response) + return +} + +// AllocateInstancePublicConnectionWithChan invokes the rds.AllocateInstancePublicConnection API asynchronously +// api document: https://help.aliyun.com/api/rds/allocateinstancepublicconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AllocateInstancePublicConnectionWithChan(request *AllocateInstancePublicConnectionRequest) (<-chan *AllocateInstancePublicConnectionResponse, <-chan error) { + responseChan := make(chan *AllocateInstancePublicConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AllocateInstancePublicConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AllocateInstancePublicConnectionWithCallback invokes the rds.AllocateInstancePublicConnection API asynchronously +// api document: https://help.aliyun.com/api/rds/allocateinstancepublicconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AllocateInstancePublicConnectionWithCallback(request *AllocateInstancePublicConnectionRequest, callback func(response *AllocateInstancePublicConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AllocateInstancePublicConnectionResponse + var err error + defer close(result) + response, err = client.AllocateInstancePublicConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AllocateInstancePublicConnectionRequest is the request struct for api AllocateInstancePublicConnection +type AllocateInstancePublicConnectionRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + ConnectionStringPrefix string `position:"Query" name:"ConnectionStringPrefix"` + Port string `position:"Query" name:"Port"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// AllocateInstancePublicConnectionResponse is the response struct for api AllocateInstancePublicConnection +type AllocateInstancePublicConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAllocateInstancePublicConnectionRequest creates a request to invoke AllocateInstancePublicConnection API +func CreateAllocateInstancePublicConnectionRequest() (request *AllocateInstancePublicConnectionRequest) { + request = &AllocateInstancePublicConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "AllocateInstancePublicConnection", "rds", "openAPI") + return +} + +// CreateAllocateInstancePublicConnectionResponse creates a response to parse from AllocateInstancePublicConnection response +func CreateAllocateInstancePublicConnectionResponse() (response *AllocateInstancePublicConnectionResponse) { + response = &AllocateInstancePublicConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/allocate_read_write_splitting_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/allocate_read_write_splitting_connection.go new file mode 100644 index 0000000..342ef3f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/allocate_read_write_splitting_connection.go @@ -0,0 +1,113 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AllocateReadWriteSplittingConnection invokes the rds.AllocateReadWriteSplittingConnection API synchronously +// api document: https://help.aliyun.com/api/rds/allocatereadwritesplittingconnection.html +func (client *Client) AllocateReadWriteSplittingConnection(request *AllocateReadWriteSplittingConnectionRequest) (response *AllocateReadWriteSplittingConnectionResponse, err error) { + response = CreateAllocateReadWriteSplittingConnectionResponse() + err = client.DoAction(request, response) + return +} + +// AllocateReadWriteSplittingConnectionWithChan invokes the rds.AllocateReadWriteSplittingConnection API asynchronously +// api document: https://help.aliyun.com/api/rds/allocatereadwritesplittingconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AllocateReadWriteSplittingConnectionWithChan(request *AllocateReadWriteSplittingConnectionRequest) (<-chan *AllocateReadWriteSplittingConnectionResponse, <-chan error) { + responseChan := make(chan *AllocateReadWriteSplittingConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AllocateReadWriteSplittingConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AllocateReadWriteSplittingConnectionWithCallback invokes the rds.AllocateReadWriteSplittingConnection API asynchronously +// api document: https://help.aliyun.com/api/rds/allocatereadwritesplittingconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AllocateReadWriteSplittingConnectionWithCallback(request *AllocateReadWriteSplittingConnectionRequest, callback func(response *AllocateReadWriteSplittingConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AllocateReadWriteSplittingConnectionResponse + var err error + defer close(result) + response, err = client.AllocateReadWriteSplittingConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AllocateReadWriteSplittingConnectionRequest is the request struct for api AllocateReadWriteSplittingConnection +type AllocateReadWriteSplittingConnectionRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + ConnectionStringPrefix string `position:"Query" name:"ConnectionStringPrefix"` + Port string `position:"Query" name:"Port"` + MaxDelayTime string `position:"Query" name:"MaxDelayTime"` + IPType string `position:"Query" name:"IPType"` + DistributionType string `position:"Query" name:"DistributionType"` + Weight string `position:"Query" name:"Weight"` +} + +// AllocateReadWriteSplittingConnectionResponse is the response struct for api AllocateReadWriteSplittingConnection +type AllocateReadWriteSplittingConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAllocateReadWriteSplittingConnectionRequest creates a request to invoke AllocateReadWriteSplittingConnection API +func CreateAllocateReadWriteSplittingConnectionRequest() (request *AllocateReadWriteSplittingConnectionRequest) { + request = &AllocateReadWriteSplittingConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "AllocateReadWriteSplittingConnection", "rds", "openAPI") + return +} + +// CreateAllocateReadWriteSplittingConnectionResponse creates a response to parse from AllocateReadWriteSplittingConnection response +func CreateAllocateReadWriteSplittingConnectionResponse() (response *AllocateReadWriteSplittingConnectionResponse) { + response = &AllocateReadWriteSplittingConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/calculate_db_instance_weight.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/calculate_db_instance_weight.go new file mode 100644 index 0000000..fbecdeb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/calculate_db_instance_weight.go @@ -0,0 +1,108 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CalculateDBInstanceWeight invokes the rds.CalculateDBInstanceWeight API synchronously +// api document: https://help.aliyun.com/api/rds/calculatedbinstanceweight.html +func (client *Client) CalculateDBInstanceWeight(request *CalculateDBInstanceWeightRequest) (response *CalculateDBInstanceWeightResponse, err error) { + response = CreateCalculateDBInstanceWeightResponse() + err = client.DoAction(request, response) + return +} + +// CalculateDBInstanceWeightWithChan invokes the rds.CalculateDBInstanceWeight API asynchronously +// api document: https://help.aliyun.com/api/rds/calculatedbinstanceweight.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CalculateDBInstanceWeightWithChan(request *CalculateDBInstanceWeightRequest) (<-chan *CalculateDBInstanceWeightResponse, <-chan error) { + responseChan := make(chan *CalculateDBInstanceWeightResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CalculateDBInstanceWeight(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CalculateDBInstanceWeightWithCallback invokes the rds.CalculateDBInstanceWeight API asynchronously +// api document: https://help.aliyun.com/api/rds/calculatedbinstanceweight.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CalculateDBInstanceWeightWithCallback(request *CalculateDBInstanceWeightRequest, callback func(response *CalculateDBInstanceWeightResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CalculateDBInstanceWeightResponse + var err error + defer close(result) + response, err = client.CalculateDBInstanceWeight(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CalculateDBInstanceWeightRequest is the request struct for api CalculateDBInstanceWeight +type CalculateDBInstanceWeightRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` +} + +// CalculateDBInstanceWeightResponse is the response struct for api CalculateDBInstanceWeight +type CalculateDBInstanceWeightResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Items ItemsInCalculateDBInstanceWeight `json:"Items" xml:"Items"` +} + +// CreateCalculateDBInstanceWeightRequest creates a request to invoke CalculateDBInstanceWeight API +func CreateCalculateDBInstanceWeightRequest() (request *CalculateDBInstanceWeightRequest) { + request = &CalculateDBInstanceWeightRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CalculateDBInstanceWeight", "rds", "openAPI") + return +} + +// CreateCalculateDBInstanceWeightResponse creates a response to parse from CalculateDBInstanceWeight response +func CreateCalculateDBInstanceWeightResponse() (response *CalculateDBInstanceWeightResponse) { + response = &CalculateDBInstanceWeightResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/cancel_import.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/cancel_import.go new file mode 100644 index 0000000..9be7a83 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/cancel_import.go @@ -0,0 +1,108 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CancelImport invokes the rds.CancelImport API synchronously +// api document: https://help.aliyun.com/api/rds/cancelimport.html +func (client *Client) CancelImport(request *CancelImportRequest) (response *CancelImportResponse, err error) { + response = CreateCancelImportResponse() + err = client.DoAction(request, response) + return +} + +// CancelImportWithChan invokes the rds.CancelImport API asynchronously +// api document: https://help.aliyun.com/api/rds/cancelimport.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelImportWithChan(request *CancelImportRequest) (<-chan *CancelImportResponse, <-chan error) { + responseChan := make(chan *CancelImportResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CancelImport(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CancelImportWithCallback invokes the rds.CancelImport API asynchronously +// api document: https://help.aliyun.com/api/rds/cancelimport.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelImportWithCallback(request *CancelImportRequest, callback func(response *CancelImportResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CancelImportResponse + var err error + defer close(result) + response, err = client.CancelImport(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CancelImportRequest is the request struct for api CancelImport +type CancelImportRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + ImportId requests.Integer `position:"Query" name:"ImportId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// CancelImportResponse is the response struct for api CancelImport +type CancelImportResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCancelImportRequest creates a request to invoke CancelImport API +func CreateCancelImportRequest() (request *CancelImportRequest) { + request = &CancelImportRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CancelImport", "rds", "openAPI") + return +} + +// CreateCancelImportResponse creates a response to parse from CancelImport response +func CreateCancelImportResponse() (response *CancelImportResponse) { + response = &CancelImportResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/check_account_name_available.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/check_account_name_available.go new file mode 100644 index 0000000..78ad39e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/check_account_name_available.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckAccountNameAvailable invokes the rds.CheckAccountNameAvailable API synchronously +// api document: https://help.aliyun.com/api/rds/checkaccountnameavailable.html +func (client *Client) CheckAccountNameAvailable(request *CheckAccountNameAvailableRequest) (response *CheckAccountNameAvailableResponse, err error) { + response = CreateCheckAccountNameAvailableResponse() + err = client.DoAction(request, response) + return +} + +// CheckAccountNameAvailableWithChan invokes the rds.CheckAccountNameAvailable API asynchronously +// api document: https://help.aliyun.com/api/rds/checkaccountnameavailable.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckAccountNameAvailableWithChan(request *CheckAccountNameAvailableRequest) (<-chan *CheckAccountNameAvailableResponse, <-chan error) { + responseChan := make(chan *CheckAccountNameAvailableResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckAccountNameAvailable(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckAccountNameAvailableWithCallback invokes the rds.CheckAccountNameAvailable API asynchronously +// api document: https://help.aliyun.com/api/rds/checkaccountnameavailable.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckAccountNameAvailableWithCallback(request *CheckAccountNameAvailableRequest, callback func(response *CheckAccountNameAvailableResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckAccountNameAvailableResponse + var err error + defer close(result) + response, err = client.CheckAccountNameAvailable(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckAccountNameAvailableRequest is the request struct for api CheckAccountNameAvailable +type CheckAccountNameAvailableRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + AccountName string `position:"Query" name:"AccountName"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// CheckAccountNameAvailableResponse is the response struct for api CheckAccountNameAvailable +type CheckAccountNameAvailableResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCheckAccountNameAvailableRequest creates a request to invoke CheckAccountNameAvailable API +func CreateCheckAccountNameAvailableRequest() (request *CheckAccountNameAvailableRequest) { + request = &CheckAccountNameAvailableRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CheckAccountNameAvailable", "rds", "openAPI") + return +} + +// CreateCheckAccountNameAvailableResponse creates a response to parse from CheckAccountNameAvailable response +func CreateCheckAccountNameAvailableResponse() (response *CheckAccountNameAvailableResponse) { + response = &CheckAccountNameAvailableResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/check_db_name_available.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/check_db_name_available.go new file mode 100644 index 0000000..b8183d7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/check_db_name_available.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckDBNameAvailable invokes the rds.CheckDBNameAvailable API synchronously +// api document: https://help.aliyun.com/api/rds/checkdbnameavailable.html +func (client *Client) CheckDBNameAvailable(request *CheckDBNameAvailableRequest) (response *CheckDBNameAvailableResponse, err error) { + response = CreateCheckDBNameAvailableResponse() + err = client.DoAction(request, response) + return +} + +// CheckDBNameAvailableWithChan invokes the rds.CheckDBNameAvailable API asynchronously +// api document: https://help.aliyun.com/api/rds/checkdbnameavailable.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckDBNameAvailableWithChan(request *CheckDBNameAvailableRequest) (<-chan *CheckDBNameAvailableResponse, <-chan error) { + responseChan := make(chan *CheckDBNameAvailableResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckDBNameAvailable(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckDBNameAvailableWithCallback invokes the rds.CheckDBNameAvailable API asynchronously +// api document: https://help.aliyun.com/api/rds/checkdbnameavailable.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckDBNameAvailableWithCallback(request *CheckDBNameAvailableRequest, callback func(response *CheckDBNameAvailableResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckDBNameAvailableResponse + var err error + defer close(result) + response, err = client.CheckDBNameAvailable(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckDBNameAvailableRequest is the request struct for api CheckDBNameAvailable +type CheckDBNameAvailableRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + DBName string `position:"Query" name:"DBName"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// CheckDBNameAvailableResponse is the response struct for api CheckDBNameAvailable +type CheckDBNameAvailableResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCheckDBNameAvailableRequest creates a request to invoke CheckDBNameAvailable API +func CreateCheckDBNameAvailableRequest() (request *CheckDBNameAvailableRequest) { + request = &CheckDBNameAvailableRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CheckDBNameAvailable", "rds", "openAPI") + return +} + +// CreateCheckDBNameAvailableResponse creates a response to parse from CheckDBNameAvailable response +func CreateCheckDBNameAvailableResponse() (response *CheckDBNameAvailableResponse) { + response = &CheckDBNameAvailableResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/check_recovery_conditions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/check_recovery_conditions.go new file mode 100644 index 0000000..c07d06d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/check_recovery_conditions.go @@ -0,0 +1,112 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckRecoveryConditions invokes the rds.CheckRecoveryConditions API synchronously +// api document: https://help.aliyun.com/api/rds/checkrecoveryconditions.html +func (client *Client) CheckRecoveryConditions(request *CheckRecoveryConditionsRequest) (response *CheckRecoveryConditionsResponse, err error) { + response = CreateCheckRecoveryConditionsResponse() + err = client.DoAction(request, response) + return +} + +// CheckRecoveryConditionsWithChan invokes the rds.CheckRecoveryConditions API asynchronously +// api document: https://help.aliyun.com/api/rds/checkrecoveryconditions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckRecoveryConditionsWithChan(request *CheckRecoveryConditionsRequest) (<-chan *CheckRecoveryConditionsResponse, <-chan error) { + responseChan := make(chan *CheckRecoveryConditionsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckRecoveryConditions(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckRecoveryConditionsWithCallback invokes the rds.CheckRecoveryConditions API asynchronously +// api document: https://help.aliyun.com/api/rds/checkrecoveryconditions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckRecoveryConditionsWithCallback(request *CheckRecoveryConditionsRequest, callback func(response *CheckRecoveryConditionsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckRecoveryConditionsResponse + var err error + defer close(result) + response, err = client.CheckRecoveryConditions(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckRecoveryConditionsRequest is the request struct for api CheckRecoveryConditions +type CheckRecoveryConditionsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + BackupId string `position:"Query" name:"BackupId"` + BackupFile string `position:"Query" name:"BackupFile"` + RestoreTime string `position:"Query" name:"RestoreTime"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// CheckRecoveryConditionsResponse is the response struct for api CheckRecoveryConditions +type CheckRecoveryConditionsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + RecoveryStatus string `json:"RecoveryStatus" xml:"RecoveryStatus"` +} + +// CreateCheckRecoveryConditionsRequest creates a request to invoke CheckRecoveryConditions API +func CreateCheckRecoveryConditionsRequest() (request *CheckRecoveryConditionsRequest) { + request = &CheckRecoveryConditionsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CheckRecoveryConditions", "rds", "openAPI") + return +} + +// CreateCheckRecoveryConditionsResponse creates a response to parse from CheckRecoveryConditions response +func CreateCheckRecoveryConditionsResponse() (response *CheckRecoveryConditionsResponse) { + response = &CheckRecoveryConditionsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/check_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/check_resource.go new file mode 100644 index 0000000..1d0b306 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/check_resource.go @@ -0,0 +1,115 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckResource invokes the rds.CheckResource API synchronously +// api document: https://help.aliyun.com/api/rds/checkresource.html +func (client *Client) CheckResource(request *CheckResourceRequest) (response *CheckResourceResponse, err error) { + response = CreateCheckResourceResponse() + err = client.DoAction(request, response) + return +} + +// CheckResourceWithChan invokes the rds.CheckResource API asynchronously +// api document: https://help.aliyun.com/api/rds/checkresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckResourceWithChan(request *CheckResourceRequest) (<-chan *CheckResourceResponse, <-chan error) { + responseChan := make(chan *CheckResourceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckResource(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckResourceWithCallback invokes the rds.CheckResource API asynchronously +// api document: https://help.aliyun.com/api/rds/checkresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckResourceWithCallback(request *CheckResourceRequest, callback func(response *CheckResourceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckResourceResponse + var err error + defer close(result) + response, err = client.CheckResource(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckResourceRequest is the request struct for api CheckResource +type CheckResourceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Engine string `position:"Query" name:"Engine"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + EngineVersion string `position:"Query" name:"EngineVersion"` + DBInstanceClass string `position:"Query" name:"DBInstanceClass"` + ZoneId string `position:"Query" name:"ZoneId"` + DBInstanceUseType string `position:"Query" name:"DBInstanceUseType"` + SpecifyCount string `position:"Query" name:"SpecifyCount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// CheckResourceResponse is the response struct for api CheckResource +type CheckResourceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SpecifyCount string `json:"SpecifyCount" xml:"SpecifyCount"` + Resources Resources `json:"Resources" xml:"Resources"` +} + +// CreateCheckResourceRequest creates a request to invoke CheckResource API +func CreateCheckResourceRequest() (request *CheckResourceRequest) { + request = &CheckResourceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CheckResource", "rds", "openAPI") + return +} + +// CreateCheckResourceResponse creates a response to parse from CheckResource response +func CreateCheckResourceResponse() (response *CheckResourceResponse) { + response = &CheckResourceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/client.go new file mode 100644 index 0000000..c73e564 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/client.go @@ -0,0 +1,81 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/clone_db_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/clone_db_instance.go new file mode 100644 index 0000000..89f6c42 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/clone_db_instance.go @@ -0,0 +1,125 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CloneDBInstance invokes the rds.CloneDBInstance API synchronously +// api document: https://help.aliyun.com/api/rds/clonedbinstance.html +func (client *Client) CloneDBInstance(request *CloneDBInstanceRequest) (response *CloneDBInstanceResponse, err error) { + response = CreateCloneDBInstanceResponse() + err = client.DoAction(request, response) + return +} + +// CloneDBInstanceWithChan invokes the rds.CloneDBInstance API asynchronously +// api document: https://help.aliyun.com/api/rds/clonedbinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CloneDBInstanceWithChan(request *CloneDBInstanceRequest) (<-chan *CloneDBInstanceResponse, <-chan error) { + responseChan := make(chan *CloneDBInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CloneDBInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CloneDBInstanceWithCallback invokes the rds.CloneDBInstance API asynchronously +// api document: https://help.aliyun.com/api/rds/clonedbinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CloneDBInstanceWithCallback(request *CloneDBInstanceRequest, callback func(response *CloneDBInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CloneDBInstanceResponse + var err error + defer close(result) + response, err = client.CloneDBInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CloneDBInstanceRequest is the request struct for api CloneDBInstance +type CloneDBInstanceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceClass string `position:"Query" name:"DBInstanceClass"` + DBInstanceStorage requests.Integer `position:"Query" name:"DBInstanceStorage"` + DBInstanceDescription string `position:"Query" name:"DBInstanceDescription"` + PayType string `position:"Query" name:"PayType"` + InstanceNetworkType string `position:"Query" name:"InstanceNetworkType"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + BackupId string `position:"Query" name:"BackupId"` + RestoreTime string `position:"Query" name:"RestoreTime"` + VPCId string `position:"Query" name:"VPCId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + UsedTime string `position:"Query" name:"UsedTime"` + Period string `position:"Query" name:"Period"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` +} + +// CloneDBInstanceResponse is the response struct for api CloneDBInstance +type CloneDBInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + OrderId string `json:"OrderId" xml:"OrderId"` + ConnectionString string `json:"ConnectionString" xml:"ConnectionString"` + Port string `json:"Port" xml:"Port"` +} + +// CreateCloneDBInstanceRequest creates a request to invoke CloneDBInstance API +func CreateCloneDBInstanceRequest() (request *CloneDBInstanceRequest) { + request = &CloneDBInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CloneDBInstance", "rds", "openAPI") + return +} + +// CreateCloneDBInstanceResponse creates a response to parse from CloneDBInstance response +func CreateCloneDBInstanceResponse() (response *CloneDBInstanceResponse) { + response = &CloneDBInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/copy_database.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/copy_database.go new file mode 100644 index 0000000..f6ecbf2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/copy_database.go @@ -0,0 +1,107 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CopyDatabase invokes the rds.CopyDatabase API synchronously +// api document: https://help.aliyun.com/api/rds/copydatabase.html +func (client *Client) CopyDatabase(request *CopyDatabaseRequest) (response *CopyDatabaseResponse, err error) { + response = CreateCopyDatabaseResponse() + err = client.DoAction(request, response) + return +} + +// CopyDatabaseWithChan invokes the rds.CopyDatabase API asynchronously +// api document: https://help.aliyun.com/api/rds/copydatabase.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CopyDatabaseWithChan(request *CopyDatabaseRequest) (<-chan *CopyDatabaseResponse, <-chan error) { + responseChan := make(chan *CopyDatabaseResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CopyDatabase(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CopyDatabaseWithCallback invokes the rds.CopyDatabase API asynchronously +// api document: https://help.aliyun.com/api/rds/copydatabase.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CopyDatabaseWithCallback(request *CopyDatabaseRequest, callback func(response *CopyDatabaseResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CopyDatabaseResponse + var err error + defer close(result) + response, err = client.CopyDatabase(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CopyDatabaseRequest is the request struct for api CopyDatabase +type CopyDatabaseRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` +} + +// CopyDatabaseResponse is the response struct for api CopyDatabase +type CopyDatabaseResponse struct { + *responses.BaseResponse + DBName string `json:"DBName" xml:"DBName"` + DBStatus string `json:"DBStatus" xml:"DBStatus"` + TaskId string `json:"TaskId" xml:"TaskId"` +} + +// CreateCopyDatabaseRequest creates a request to invoke CopyDatabase API +func CreateCopyDatabaseRequest() (request *CopyDatabaseRequest) { + request = &CopyDatabaseRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CopyDatabase", "rds", "openAPI") + return +} + +// CreateCopyDatabaseResponse creates a response to parse from CopyDatabase response +func CreateCopyDatabaseResponse() (response *CopyDatabaseResponse) { + response = &CopyDatabaseResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_account.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_account.go new file mode 100644 index 0000000..95a9d99 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_account.go @@ -0,0 +1,111 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateAccount invokes the rds.CreateAccount API synchronously +// api document: https://help.aliyun.com/api/rds/createaccount.html +func (client *Client) CreateAccount(request *CreateAccountRequest) (response *CreateAccountResponse, err error) { + response = CreateCreateAccountResponse() + err = client.DoAction(request, response) + return +} + +// CreateAccountWithChan invokes the rds.CreateAccount API asynchronously +// api document: https://help.aliyun.com/api/rds/createaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateAccountWithChan(request *CreateAccountRequest) (<-chan *CreateAccountResponse, <-chan error) { + responseChan := make(chan *CreateAccountResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateAccount(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateAccountWithCallback invokes the rds.CreateAccount API asynchronously +// api document: https://help.aliyun.com/api/rds/createaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateAccountWithCallback(request *CreateAccountRequest, callback func(response *CreateAccountResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateAccountResponse + var err error + defer close(result) + response, err = client.CreateAccount(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateAccountRequest is the request struct for api CreateAccount +type CreateAccountRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + AccountName string `position:"Query" name:"AccountName"` + AccountPassword string `position:"Query" name:"AccountPassword"` + AccountDescription string `position:"Query" name:"AccountDescription"` + AccountType string `position:"Query" name:"AccountType"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// CreateAccountResponse is the response struct for api CreateAccount +type CreateAccountResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateAccountRequest creates a request to invoke CreateAccount API +func CreateCreateAccountRequest() (request *CreateAccountRequest) { + request = &CreateAccountRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CreateAccount", "rds", "openAPI") + return +} + +// CreateCreateAccountResponse creates a response to parse from CreateAccount response +func CreateCreateAccountResponse() (response *CreateAccountResponse) { + response = &CreateAccountResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_backup.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_backup.go new file mode 100644 index 0000000..6fa4da3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_backup.go @@ -0,0 +1,110 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateBackup invokes the rds.CreateBackup API synchronously +// api document: https://help.aliyun.com/api/rds/createbackup.html +func (client *Client) CreateBackup(request *CreateBackupRequest) (response *CreateBackupResponse, err error) { + response = CreateCreateBackupResponse() + err = client.DoAction(request, response) + return +} + +// CreateBackupWithChan invokes the rds.CreateBackup API asynchronously +// api document: https://help.aliyun.com/api/rds/createbackup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateBackupWithChan(request *CreateBackupRequest) (<-chan *CreateBackupResponse, <-chan error) { + responseChan := make(chan *CreateBackupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateBackup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateBackupWithCallback invokes the rds.CreateBackup API asynchronously +// api document: https://help.aliyun.com/api/rds/createbackup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateBackupWithCallback(request *CreateBackupRequest, callback func(response *CreateBackupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateBackupResponse + var err error + defer close(result) + response, err = client.CreateBackup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateBackupRequest is the request struct for api CreateBackup +type CreateBackupRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + DBName string `position:"Query" name:"DBName"` + BackupMethod string `position:"Query" name:"BackupMethod"` + BackupType string `position:"Query" name:"BackupType"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// CreateBackupResponse is the response struct for api CreateBackup +type CreateBackupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateBackupRequest creates a request to invoke CreateBackup API +func CreateCreateBackupRequest() (request *CreateBackupRequest) { + request = &CreateBackupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CreateBackup", "rds", "openAPI") + return +} + +// CreateCreateBackupResponse creates a response to parse from CreateBackup response +func CreateCreateBackupResponse() (response *CreateBackupResponse) { + response = &CreateBackupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_damp_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_damp_policy.go new file mode 100644 index 0000000..10075a3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_damp_policy.go @@ -0,0 +1,116 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateDampPolicy invokes the rds.CreateDampPolicy API synchronously +// api document: https://help.aliyun.com/api/rds/createdamppolicy.html +func (client *Client) CreateDampPolicy(request *CreateDampPolicyRequest) (response *CreateDampPolicyResponse, err error) { + response = CreateCreateDampPolicyResponse() + err = client.DoAction(request, response) + return +} + +// CreateDampPolicyWithChan invokes the rds.CreateDampPolicy API asynchronously +// api document: https://help.aliyun.com/api/rds/createdamppolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDampPolicyWithChan(request *CreateDampPolicyRequest) (<-chan *CreateDampPolicyResponse, <-chan error) { + responseChan := make(chan *CreateDampPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateDampPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateDampPolicyWithCallback invokes the rds.CreateDampPolicy API asynchronously +// api document: https://help.aliyun.com/api/rds/createdamppolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDampPolicyWithCallback(request *CreateDampPolicyRequest, callback func(response *CreateDampPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateDampPolicyResponse + var err error + defer close(result) + response, err = client.CreateDampPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateDampPolicyRequest is the request struct for api CreateDampPolicy +type CreateDampPolicyRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + PolicyName string `position:"Query" name:"PolicyName"` + Priority requests.Integer `position:"Query" name:"Priority"` + Handlers string `position:"Query" name:"Handlers"` + SourceRules string `position:"Query" name:"SourceRules"` + TimeRules string `position:"Query" name:"TimeRules"` + ActionRules string `position:"Query" name:"ActionRules"` +} + +// CreateDampPolicyResponse is the response struct for api CreateDampPolicy +type CreateDampPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PolicyId string `json:"PolicyId" xml:"PolicyId"` + PolicyName string `json:"PolicyName" xml:"PolicyName"` +} + +// CreateCreateDampPolicyRequest creates a request to invoke CreateDampPolicy API +func CreateCreateDampPolicyRequest() (request *CreateDampPolicyRequest) { + request = &CreateDampPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CreateDampPolicy", "rds", "openAPI") + return +} + +// CreateCreateDampPolicyResponse creates a response to parse from CreateDampPolicy response +func CreateCreateDampPolicyResponse() (response *CreateDampPolicyResponse) { + response = &CreateDampPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_database.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_database.go new file mode 100644 index 0000000..94accf9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_database.go @@ -0,0 +1,110 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateDatabase invokes the rds.CreateDatabase API synchronously +// api document: https://help.aliyun.com/api/rds/createdatabase.html +func (client *Client) CreateDatabase(request *CreateDatabaseRequest) (response *CreateDatabaseResponse, err error) { + response = CreateCreateDatabaseResponse() + err = client.DoAction(request, response) + return +} + +// CreateDatabaseWithChan invokes the rds.CreateDatabase API asynchronously +// api document: https://help.aliyun.com/api/rds/createdatabase.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDatabaseWithChan(request *CreateDatabaseRequest) (<-chan *CreateDatabaseResponse, <-chan error) { + responseChan := make(chan *CreateDatabaseResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateDatabase(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateDatabaseWithCallback invokes the rds.CreateDatabase API asynchronously +// api document: https://help.aliyun.com/api/rds/createdatabase.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDatabaseWithCallback(request *CreateDatabaseRequest, callback func(response *CreateDatabaseResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateDatabaseResponse + var err error + defer close(result) + response, err = client.CreateDatabase(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateDatabaseRequest is the request struct for api CreateDatabase +type CreateDatabaseRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + DBName string `position:"Query" name:"DBName"` + CharacterSetName string `position:"Query" name:"CharacterSetName"` + DBDescription string `position:"Query" name:"DBDescription"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// CreateDatabaseResponse is the response struct for api CreateDatabase +type CreateDatabaseResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateDatabaseRequest creates a request to invoke CreateDatabase API +func CreateCreateDatabaseRequest() (request *CreateDatabaseRequest) { + request = &CreateDatabaseRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CreateDatabase", "rds", "openAPI") + return +} + +// CreateCreateDatabaseResponse creates a response to parse from CreateDatabase response +func CreateCreateDatabaseResponse() (response *CreateDatabaseResponse) { + response = &CreateDatabaseResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_db_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_db_instance.go new file mode 100644 index 0000000..c47f329 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_db_instance.go @@ -0,0 +1,132 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateDBInstance invokes the rds.CreateDBInstance API synchronously +// api document: https://help.aliyun.com/api/rds/createdbinstance.html +func (client *Client) CreateDBInstance(request *CreateDBInstanceRequest) (response *CreateDBInstanceResponse, err error) { + response = CreateCreateDBInstanceResponse() + err = client.DoAction(request, response) + return +} + +// CreateDBInstanceWithChan invokes the rds.CreateDBInstance API asynchronously +// api document: https://help.aliyun.com/api/rds/createdbinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDBInstanceWithChan(request *CreateDBInstanceRequest) (<-chan *CreateDBInstanceResponse, <-chan error) { + responseChan := make(chan *CreateDBInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateDBInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateDBInstanceWithCallback invokes the rds.CreateDBInstance API asynchronously +// api document: https://help.aliyun.com/api/rds/createdbinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDBInstanceWithCallback(request *CreateDBInstanceRequest, callback func(response *CreateDBInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateDBInstanceResponse + var err error + defer close(result) + response, err = client.CreateDBInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateDBInstanceRequest is the request struct for api CreateDBInstance +type CreateDBInstanceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Engine string `position:"Query" name:"Engine"` + EngineVersion string `position:"Query" name:"EngineVersion"` + DBInstanceClass string `position:"Query" name:"DBInstanceClass"` + DBInstanceStorage requests.Integer `position:"Query" name:"DBInstanceStorage"` + SystemDBCharset string `position:"Query" name:"SystemDBCharset"` + DBInstanceNetType string `position:"Query" name:"DBInstanceNetType"` + DBInstanceDescription string `position:"Query" name:"DBInstanceDescription"` + SecurityIPList string `position:"Query" name:"SecurityIPList"` + ClientToken string `position:"Query" name:"ClientToken"` + PayType string `position:"Query" name:"PayType"` + ZoneId string `position:"Query" name:"ZoneId"` + InstanceNetworkType string `position:"Query" name:"InstanceNetworkType"` + ConnectionMode string `position:"Query" name:"ConnectionMode"` + VPCId string `position:"Query" name:"VPCId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + UsedTime string `position:"Query" name:"UsedTime"` + Period string `position:"Query" name:"Period"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + DBInstanceStorageType string `position:"Query" name:"DBInstanceStorageType"` + TunnelId string `position:"Query" name:"TunnelId"` + BusinessInfo string `position:"Query" name:"BusinessInfo"` +} + +// CreateDBInstanceResponse is the response struct for api CreateDBInstance +type CreateDBInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + OrderId string `json:"OrderId" xml:"OrderId"` + ConnectionString string `json:"ConnectionString" xml:"ConnectionString"` + Port string `json:"Port" xml:"Port"` +} + +// CreateCreateDBInstanceRequest creates a request to invoke CreateDBInstance API +func CreateCreateDBInstanceRequest() (request *CreateDBInstanceRequest) { + request = &CreateDBInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CreateDBInstance", "rds", "openAPI") + return +} + +// CreateCreateDBInstanceResponse creates a response to parse from CreateDBInstance response +func CreateCreateDBInstanceResponse() (response *CreateDBInstanceResponse) { + response = &CreateDBInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_db_instance_replica.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_db_instance_replica.go new file mode 100644 index 0000000..fd0c8a2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_db_instance_replica.go @@ -0,0 +1,132 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateDBInstanceReplica invokes the rds.CreateDBInstanceReplica API synchronously +// api document: https://help.aliyun.com/api/rds/createdbinstancereplica.html +func (client *Client) CreateDBInstanceReplica(request *CreateDBInstanceReplicaRequest) (response *CreateDBInstanceReplicaResponse, err error) { + response = CreateCreateDBInstanceReplicaResponse() + err = client.DoAction(request, response) + return +} + +// CreateDBInstanceReplicaWithChan invokes the rds.CreateDBInstanceReplica API asynchronously +// api document: https://help.aliyun.com/api/rds/createdbinstancereplica.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDBInstanceReplicaWithChan(request *CreateDBInstanceReplicaRequest) (<-chan *CreateDBInstanceReplicaResponse, <-chan error) { + responseChan := make(chan *CreateDBInstanceReplicaResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateDBInstanceReplica(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateDBInstanceReplicaWithCallback invokes the rds.CreateDBInstanceReplica API asynchronously +// api document: https://help.aliyun.com/api/rds/createdbinstancereplica.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDBInstanceReplicaWithCallback(request *CreateDBInstanceReplicaRequest, callback func(response *CreateDBInstanceReplicaResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateDBInstanceReplicaResponse + var err error + defer close(result) + response, err = client.CreateDBInstanceReplica(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateDBInstanceReplicaRequest is the request struct for api CreateDBInstanceReplica +type CreateDBInstanceReplicaRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SourceDBInstanceId string `position:"Query" name:"SourceDBInstanceId"` + Engine string `position:"Query" name:"Engine"` + EngineVersion string `position:"Query" name:"EngineVersion"` + DBInstanceClass string `position:"Query" name:"DBInstanceClass"` + DBInstanceStorage requests.Integer `position:"Query" name:"DBInstanceStorage"` + SystemDBCharset string `position:"Query" name:"SystemDBCharset"` + DBInstanceNetType string `position:"Query" name:"DBInstanceNetType"` + DBInstanceDescription string `position:"Query" name:"DBInstanceDescription"` + SecurityIPList string `position:"Query" name:"SecurityIPList"` + ClientToken string `position:"Query" name:"ClientToken"` + PayType string `position:"Query" name:"PayType"` + ZoneId string `position:"Query" name:"ZoneId"` + InstanceNetworkType string `position:"Query" name:"InstanceNetworkType"` + ConnectionMode string `position:"Query" name:"ConnectionMode"` + VPCId string `position:"Query" name:"VPCId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` + ReplicaDescription string `position:"Query" name:"ReplicaDescription"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + UsedTime string `position:"Query" name:"UsedTime"` + Period string `position:"Query" name:"Period"` + ReplicaMode string `position:"Query" name:"ReplicaMode"` + DomainMode string `position:"Query" name:"DomainMode"` +} + +// CreateDBInstanceReplicaResponse is the response struct for api CreateDBInstanceReplica +type CreateDBInstanceReplicaResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + OrderId int `json:"OrderId" xml:"OrderId"` + ReplicaId string `json:"ReplicaId" xml:"ReplicaId"` + WorkflowId string `json:"WorkflowId" xml:"WorkflowId"` +} + +// CreateCreateDBInstanceReplicaRequest creates a request to invoke CreateDBInstanceReplica API +func CreateCreateDBInstanceReplicaRequest() (request *CreateDBInstanceReplicaRequest) { + request = &CreateDBInstanceReplicaRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CreateDBInstanceReplica", "rds", "openAPI") + return +} + +// CreateCreateDBInstanceReplicaResponse creates a response to parse from CreateDBInstanceReplica response +func CreateCreateDBInstanceReplicaResponse() (response *CreateDBInstanceReplicaResponse) { + response = &CreateDBInstanceReplicaResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_diagnostic_report.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_diagnostic_report.go new file mode 100644 index 0000000..c180d6c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_diagnostic_report.go @@ -0,0 +1,106 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateDiagnosticReport invokes the rds.CreateDiagnosticReport API synchronously +// api document: https://help.aliyun.com/api/rds/creatediagnosticreport.html +func (client *Client) CreateDiagnosticReport(request *CreateDiagnosticReportRequest) (response *CreateDiagnosticReportResponse, err error) { + response = CreateCreateDiagnosticReportResponse() + err = client.DoAction(request, response) + return +} + +// CreateDiagnosticReportWithChan invokes the rds.CreateDiagnosticReport API asynchronously +// api document: https://help.aliyun.com/api/rds/creatediagnosticreport.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDiagnosticReportWithChan(request *CreateDiagnosticReportRequest) (<-chan *CreateDiagnosticReportResponse, <-chan error) { + responseChan := make(chan *CreateDiagnosticReportResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateDiagnosticReport(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateDiagnosticReportWithCallback invokes the rds.CreateDiagnosticReport API asynchronously +// api document: https://help.aliyun.com/api/rds/creatediagnosticreport.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDiagnosticReportWithCallback(request *CreateDiagnosticReportRequest, callback func(response *CreateDiagnosticReportResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateDiagnosticReportResponse + var err error + defer close(result) + response, err = client.CreateDiagnosticReport(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateDiagnosticReportRequest is the request struct for api CreateDiagnosticReport +type CreateDiagnosticReportRequest struct { + *requests.RpcRequest + DBInstanceId string `position:"Query" name:"DBInstanceId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` +} + +// CreateDiagnosticReportResponse is the response struct for api CreateDiagnosticReport +type CreateDiagnosticReportResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ReportId string `json:"ReportId" xml:"ReportId"` +} + +// CreateCreateDiagnosticReportRequest creates a request to invoke CreateDiagnosticReport API +func CreateCreateDiagnosticReportRequest() (request *CreateDiagnosticReportRequest) { + request = &CreateDiagnosticReportRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CreateDiagnosticReport", "rds", "openAPI") + return +} + +// CreateCreateDiagnosticReportResponse creates a response to parse from CreateDiagnosticReport response +func CreateCreateDiagnosticReportResponse() (response *CreateDiagnosticReportResponse) { + response = &CreateDiagnosticReportResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_migrate_task.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_migrate_task.go new file mode 100644 index 0000000..877113c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_migrate_task.go @@ -0,0 +1,118 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateMigrateTask invokes the rds.CreateMigrateTask API synchronously +// api document: https://help.aliyun.com/api/rds/createmigratetask.html +func (client *Client) CreateMigrateTask(request *CreateMigrateTaskRequest) (response *CreateMigrateTaskResponse, err error) { + response = CreateCreateMigrateTaskResponse() + err = client.DoAction(request, response) + return +} + +// CreateMigrateTaskWithChan invokes the rds.CreateMigrateTask API asynchronously +// api document: https://help.aliyun.com/api/rds/createmigratetask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateMigrateTaskWithChan(request *CreateMigrateTaskRequest) (<-chan *CreateMigrateTaskResponse, <-chan error) { + responseChan := make(chan *CreateMigrateTaskResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateMigrateTask(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateMigrateTaskWithCallback invokes the rds.CreateMigrateTask API asynchronously +// api document: https://help.aliyun.com/api/rds/createmigratetask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateMigrateTaskWithCallback(request *CreateMigrateTaskRequest, callback func(response *CreateMigrateTaskResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateMigrateTaskResponse + var err error + defer close(result) + response, err = client.CreateMigrateTask(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateMigrateTaskRequest is the request struct for api CreateMigrateTask +type CreateMigrateTaskRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + DBName string `position:"Query" name:"DBName"` + BackupMode string `position:"Query" name:"BackupMode"` + IsOnlineDB string `position:"Query" name:"IsOnlineDB"` + CheckDBMode string `position:"Query" name:"CheckDBMode"` + OssObjectPositions string `position:"Query" name:"OssObjectPositions"` + OSSUrls string `position:"Query" name:"OSSUrls"` + MigrateTaskId string `position:"Query" name:"MigrateTaskId"` +} + +// CreateMigrateTaskResponse is the response struct for api CreateMigrateTask +type CreateMigrateTaskResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + TaskId string `json:"TaskId" xml:"TaskId"` + DBName string `json:"DBName" xml:"DBName"` + MigrateTaskId string `json:"MigrateTaskId" xml:"MigrateTaskId"` + BackupMode string `json:"BackupMode" xml:"BackupMode"` +} + +// CreateCreateMigrateTaskRequest creates a request to invoke CreateMigrateTask API +func CreateCreateMigrateTaskRequest() (request *CreateMigrateTaskRequest) { + request = &CreateMigrateTaskRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CreateMigrateTask", "rds", "openAPI") + return +} + +// CreateCreateMigrateTaskResponse creates a response to parse from CreateMigrateTask response +func CreateCreateMigrateTaskResponse() (response *CreateMigrateTaskResponse) { + response = &CreateMigrateTaskResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_migrate_task_for_sql_server.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_migrate_task_for_sql_server.go new file mode 100644 index 0000000..6bb2273 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_migrate_task_for_sql_server.go @@ -0,0 +1,116 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateMigrateTaskForSQLServer invokes the rds.CreateMigrateTaskForSQLServer API synchronously +// api document: https://help.aliyun.com/api/rds/createmigratetaskforsqlserver.html +func (client *Client) CreateMigrateTaskForSQLServer(request *CreateMigrateTaskForSQLServerRequest) (response *CreateMigrateTaskForSQLServerResponse, err error) { + response = CreateCreateMigrateTaskForSQLServerResponse() + err = client.DoAction(request, response) + return +} + +// CreateMigrateTaskForSQLServerWithChan invokes the rds.CreateMigrateTaskForSQLServer API asynchronously +// api document: https://help.aliyun.com/api/rds/createmigratetaskforsqlserver.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateMigrateTaskForSQLServerWithChan(request *CreateMigrateTaskForSQLServerRequest) (<-chan *CreateMigrateTaskForSQLServerResponse, <-chan error) { + responseChan := make(chan *CreateMigrateTaskForSQLServerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateMigrateTaskForSQLServer(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateMigrateTaskForSQLServerWithCallback invokes the rds.CreateMigrateTaskForSQLServer API asynchronously +// api document: https://help.aliyun.com/api/rds/createmigratetaskforsqlserver.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateMigrateTaskForSQLServerWithCallback(request *CreateMigrateTaskForSQLServerRequest, callback func(response *CreateMigrateTaskForSQLServerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateMigrateTaskForSQLServerResponse + var err error + defer close(result) + response, err = client.CreateMigrateTaskForSQLServer(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateMigrateTaskForSQLServerRequest is the request struct for api CreateMigrateTaskForSQLServer +type CreateMigrateTaskForSQLServerRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + DBName string `position:"Query" name:"DBName"` + TaskType string `position:"Query" name:"TaskType"` + IsOnlineDB string `position:"Query" name:"IsOnlineDB"` + OSSUrls string `position:"Query" name:"OSSUrls"` +} + +// CreateMigrateTaskForSQLServerResponse is the response struct for api CreateMigrateTaskForSQLServer +type CreateMigrateTaskForSQLServerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + DBInstanceName string `json:"DBInstanceName" xml:"DBInstanceName"` + TaskId string `json:"TaskId" xml:"TaskId"` + DBName string `json:"DBName" xml:"DBName"` + MigrateIaskId string `json:"MigrateIaskId" xml:"MigrateIaskId"` + TaskType string `json:"TaskType" xml:"TaskType"` +} + +// CreateCreateMigrateTaskForSQLServerRequest creates a request to invoke CreateMigrateTaskForSQLServer API +func CreateCreateMigrateTaskForSQLServerRequest() (request *CreateMigrateTaskForSQLServerRequest) { + request = &CreateMigrateTaskForSQLServerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CreateMigrateTaskForSQLServer", "rds", "openAPI") + return +} + +// CreateCreateMigrateTaskForSQLServerResponse creates a response to parse from CreateMigrateTaskForSQLServer response +func CreateCreateMigrateTaskForSQLServerResponse() (response *CreateMigrateTaskForSQLServerResponse) { + response = &CreateMigrateTaskForSQLServerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_online_database_task.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_online_database_task.go new file mode 100644 index 0000000..8139ec5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_online_database_task.go @@ -0,0 +1,111 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateOnlineDatabaseTask invokes the rds.CreateOnlineDatabaseTask API synchronously +// api document: https://help.aliyun.com/api/rds/createonlinedatabasetask.html +func (client *Client) CreateOnlineDatabaseTask(request *CreateOnlineDatabaseTaskRequest) (response *CreateOnlineDatabaseTaskResponse, err error) { + response = CreateCreateOnlineDatabaseTaskResponse() + err = client.DoAction(request, response) + return +} + +// CreateOnlineDatabaseTaskWithChan invokes the rds.CreateOnlineDatabaseTask API asynchronously +// api document: https://help.aliyun.com/api/rds/createonlinedatabasetask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateOnlineDatabaseTaskWithChan(request *CreateOnlineDatabaseTaskRequest) (<-chan *CreateOnlineDatabaseTaskResponse, <-chan error) { + responseChan := make(chan *CreateOnlineDatabaseTaskResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateOnlineDatabaseTask(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateOnlineDatabaseTaskWithCallback invokes the rds.CreateOnlineDatabaseTask API asynchronously +// api document: https://help.aliyun.com/api/rds/createonlinedatabasetask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateOnlineDatabaseTaskWithCallback(request *CreateOnlineDatabaseTaskRequest, callback func(response *CreateOnlineDatabaseTaskResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateOnlineDatabaseTaskResponse + var err error + defer close(result) + response, err = client.CreateOnlineDatabaseTask(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateOnlineDatabaseTaskRequest is the request struct for api CreateOnlineDatabaseTask +type CreateOnlineDatabaseTaskRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + DBName string `position:"Query" name:"DBName"` + MigrateTaskId string `position:"Query" name:"MigrateTaskId"` + CheckDBMode string `position:"Query" name:"CheckDBMode"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// CreateOnlineDatabaseTaskResponse is the response struct for api CreateOnlineDatabaseTask +type CreateOnlineDatabaseTaskResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateOnlineDatabaseTaskRequest creates a request to invoke CreateOnlineDatabaseTask API +func CreateCreateOnlineDatabaseTaskRequest() (request *CreateOnlineDatabaseTaskRequest) { + request = &CreateOnlineDatabaseTaskRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CreateOnlineDatabaseTask", "rds", "openAPI") + return +} + +// CreateCreateOnlineDatabaseTaskResponse creates a response to parse from CreateOnlineDatabaseTask response +func CreateCreateOnlineDatabaseTaskResponse() (response *CreateOnlineDatabaseTaskResponse) { + response = &CreateOnlineDatabaseTaskResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_policy_with_specified_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_policy_with_specified_policy.go new file mode 100644 index 0000000..cb978e4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_policy_with_specified_policy.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreatePolicyWithSpecifiedPolicy invokes the rds.CreatePolicyWithSpecifiedPolicy API synchronously +// api document: https://help.aliyun.com/api/rds/createpolicywithspecifiedpolicy.html +func (client *Client) CreatePolicyWithSpecifiedPolicy(request *CreatePolicyWithSpecifiedPolicyRequest) (response *CreatePolicyWithSpecifiedPolicyResponse, err error) { + response = CreateCreatePolicyWithSpecifiedPolicyResponse() + err = client.DoAction(request, response) + return +} + +// CreatePolicyWithSpecifiedPolicyWithChan invokes the rds.CreatePolicyWithSpecifiedPolicy API asynchronously +// api document: https://help.aliyun.com/api/rds/createpolicywithspecifiedpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreatePolicyWithSpecifiedPolicyWithChan(request *CreatePolicyWithSpecifiedPolicyRequest) (<-chan *CreatePolicyWithSpecifiedPolicyResponse, <-chan error) { + responseChan := make(chan *CreatePolicyWithSpecifiedPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreatePolicyWithSpecifiedPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreatePolicyWithSpecifiedPolicyWithCallback invokes the rds.CreatePolicyWithSpecifiedPolicy API asynchronously +// api document: https://help.aliyun.com/api/rds/createpolicywithspecifiedpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreatePolicyWithSpecifiedPolicyWithCallback(request *CreatePolicyWithSpecifiedPolicyRequest, callback func(response *CreatePolicyWithSpecifiedPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreatePolicyWithSpecifiedPolicyResponse + var err error + defer close(result) + response, err = client.CreatePolicyWithSpecifiedPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreatePolicyWithSpecifiedPolicyRequest is the request struct for api CreatePolicyWithSpecifiedPolicy +type CreatePolicyWithSpecifiedPolicyRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + PolicyId string `position:"Query" name:"PolicyId"` +} + +// CreatePolicyWithSpecifiedPolicyResponse is the response struct for api CreatePolicyWithSpecifiedPolicy +type CreatePolicyWithSpecifiedPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreatePolicyWithSpecifiedPolicyRequest creates a request to invoke CreatePolicyWithSpecifiedPolicy API +func CreateCreatePolicyWithSpecifiedPolicyRequest() (request *CreatePolicyWithSpecifiedPolicyRequest) { + request = &CreatePolicyWithSpecifiedPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CreatePolicyWithSpecifiedPolicy", "rds", "openAPI") + return +} + +// CreateCreatePolicyWithSpecifiedPolicyResponse creates a response to parse from CreatePolicyWithSpecifiedPolicy response +func CreateCreatePolicyWithSpecifiedPolicyResponse() (response *CreatePolicyWithSpecifiedPolicyResponse) { + response = &CreatePolicyWithSpecifiedPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_read_only_db_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_read_only_db_instance.go new file mode 100644 index 0000000..f14c96d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_read_only_db_instance.go @@ -0,0 +1,123 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateReadOnlyDBInstance invokes the rds.CreateReadOnlyDBInstance API synchronously +// api document: https://help.aliyun.com/api/rds/createreadonlydbinstance.html +func (client *Client) CreateReadOnlyDBInstance(request *CreateReadOnlyDBInstanceRequest) (response *CreateReadOnlyDBInstanceResponse, err error) { + response = CreateCreateReadOnlyDBInstanceResponse() + err = client.DoAction(request, response) + return +} + +// CreateReadOnlyDBInstanceWithChan invokes the rds.CreateReadOnlyDBInstance API asynchronously +// api document: https://help.aliyun.com/api/rds/createreadonlydbinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateReadOnlyDBInstanceWithChan(request *CreateReadOnlyDBInstanceRequest) (<-chan *CreateReadOnlyDBInstanceResponse, <-chan error) { + responseChan := make(chan *CreateReadOnlyDBInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateReadOnlyDBInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateReadOnlyDBInstanceWithCallback invokes the rds.CreateReadOnlyDBInstance API asynchronously +// api document: https://help.aliyun.com/api/rds/createreadonlydbinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateReadOnlyDBInstanceWithCallback(request *CreateReadOnlyDBInstanceRequest, callback func(response *CreateReadOnlyDBInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateReadOnlyDBInstanceResponse + var err error + defer close(result) + response, err = client.CreateReadOnlyDBInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateReadOnlyDBInstanceRequest is the request struct for api CreateReadOnlyDBInstance +type CreateReadOnlyDBInstanceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + ZoneId string `position:"Query" name:"ZoneId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + DBInstanceClass string `position:"Query" name:"DBInstanceClass"` + DBInstanceStorage requests.Integer `position:"Query" name:"DBInstanceStorage"` + EngineVersion string `position:"Query" name:"EngineVersion"` + PayType string `position:"Query" name:"PayType"` + DBInstanceDescription string `position:"Query" name:"DBInstanceDescription"` + InstanceNetworkType string `position:"Query" name:"InstanceNetworkType"` + VPCId string `position:"Query" name:"VPCId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` +} + +// CreateReadOnlyDBInstanceResponse is the response struct for api CreateReadOnlyDBInstance +type CreateReadOnlyDBInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + OrderId string `json:"OrderId" xml:"OrderId"` + ConnectionString string `json:"ConnectionString" xml:"ConnectionString"` + Port string `json:"Port" xml:"Port"` +} + +// CreateCreateReadOnlyDBInstanceRequest creates a request to invoke CreateReadOnlyDBInstance API +func CreateCreateReadOnlyDBInstanceRequest() (request *CreateReadOnlyDBInstanceRequest) { + request = &CreateReadOnlyDBInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CreateReadOnlyDBInstance", "rds", "openAPI") + return +} + +// CreateCreateReadOnlyDBInstanceResponse creates a response to parse from CreateReadOnlyDBInstance response +func CreateCreateReadOnlyDBInstanceResponse() (response *CreateReadOnlyDBInstanceResponse) { + response = &CreateReadOnlyDBInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_sql_diagnosis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_sql_diagnosis.go new file mode 100644 index 0000000..8a5a08b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_sql_diagnosis.go @@ -0,0 +1,106 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateSQLDiagnosis invokes the rds.CreateSQLDiagnosis API synchronously +// api document: https://help.aliyun.com/api/rds/createsqldiagnosis.html +func (client *Client) CreateSQLDiagnosis(request *CreateSQLDiagnosisRequest) (response *CreateSQLDiagnosisResponse, err error) { + response = CreateCreateSQLDiagnosisResponse() + err = client.DoAction(request, response) + return +} + +// CreateSQLDiagnosisWithChan invokes the rds.CreateSQLDiagnosis API asynchronously +// api document: https://help.aliyun.com/api/rds/createsqldiagnosis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSQLDiagnosisWithChan(request *CreateSQLDiagnosisRequest) (<-chan *CreateSQLDiagnosisResponse, <-chan error) { + responseChan := make(chan *CreateSQLDiagnosisResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateSQLDiagnosis(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateSQLDiagnosisWithCallback invokes the rds.CreateSQLDiagnosis API asynchronously +// api document: https://help.aliyun.com/api/rds/createsqldiagnosis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSQLDiagnosisWithCallback(request *CreateSQLDiagnosisRequest, callback func(response *CreateSQLDiagnosisResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateSQLDiagnosisResponse + var err error + defer close(result) + response, err = client.CreateSQLDiagnosis(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateSQLDiagnosisRequest is the request struct for api CreateSQLDiagnosis +type CreateSQLDiagnosisRequest struct { + *requests.RpcRequest + DBInstanceId string `position:"Query" name:"DBInstanceId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` +} + +// CreateSQLDiagnosisResponse is the response struct for api CreateSQLDiagnosis +type CreateSQLDiagnosisResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SQLDiagId string `json:"SQLDiagId" xml:"SQLDiagId"` +} + +// CreateCreateSQLDiagnosisRequest creates a request to invoke CreateSQLDiagnosis API +func CreateCreateSQLDiagnosisRequest() (request *CreateSQLDiagnosisRequest) { + request = &CreateSQLDiagnosisRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CreateSQLDiagnosis", "rds", "openAPI") + return +} + +// CreateCreateSQLDiagnosisResponse creates a response to parse from CreateSQLDiagnosis response +func CreateCreateSQLDiagnosisResponse() (response *CreateSQLDiagnosisResponse) { + response = &CreateSQLDiagnosisResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_static_verification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_static_verification.go new file mode 100644 index 0000000..e1497ab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_static_verification.go @@ -0,0 +1,110 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateStaticVerification invokes the rds.CreateStaticVerification API synchronously +// api document: https://help.aliyun.com/api/rds/createstaticverification.html +func (client *Client) CreateStaticVerification(request *CreateStaticVerificationRequest) (response *CreateStaticVerificationResponse, err error) { + response = CreateCreateStaticVerificationResponse() + err = client.DoAction(request, response) + return +} + +// CreateStaticVerificationWithChan invokes the rds.CreateStaticVerification API asynchronously +// api document: https://help.aliyun.com/api/rds/createstaticverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateStaticVerificationWithChan(request *CreateStaticVerificationRequest) (<-chan *CreateStaticVerificationResponse, <-chan error) { + responseChan := make(chan *CreateStaticVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateStaticVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateStaticVerificationWithCallback invokes the rds.CreateStaticVerification API asynchronously +// api document: https://help.aliyun.com/api/rds/createstaticverification.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateStaticVerificationWithCallback(request *CreateStaticVerificationRequest, callback func(response *CreateStaticVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateStaticVerificationResponse + var err error + defer close(result) + response, err = client.CreateStaticVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateStaticVerificationRequest is the request struct for api CreateStaticVerification +type CreateStaticVerificationRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + SourceInstanceId string `position:"Query" name:"SourceInstanceId"` + DestinationInstanceId string `position:"Query" name:"DestinationInstanceId"` +} + +// CreateStaticVerificationResponse is the response struct for api CreateStaticVerification +type CreateStaticVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateStaticVerificationRequest creates a request to invoke CreateStaticVerification API +func CreateCreateStaticVerificationRequest() (request *CreateStaticVerificationRequest) { + request = &CreateStaticVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CreateStaticVerification", "rds", "openAPI") + return +} + +// CreateCreateStaticVerificationResponse creates a response to parse from CreateStaticVerification response +func CreateCreateStaticVerificationResponse() (response *CreateStaticVerificationResponse) { + response = &CreateStaticVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_temp_db_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_temp_db_instance.go new file mode 100644 index 0000000..5b6fada --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/create_temp_db_instance.go @@ -0,0 +1,110 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateTempDBInstance invokes the rds.CreateTempDBInstance API synchronously +// api document: https://help.aliyun.com/api/rds/createtempdbinstance.html +func (client *Client) CreateTempDBInstance(request *CreateTempDBInstanceRequest) (response *CreateTempDBInstanceResponse, err error) { + response = CreateCreateTempDBInstanceResponse() + err = client.DoAction(request, response) + return +} + +// CreateTempDBInstanceWithChan invokes the rds.CreateTempDBInstance API asynchronously +// api document: https://help.aliyun.com/api/rds/createtempdbinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateTempDBInstanceWithChan(request *CreateTempDBInstanceRequest) (<-chan *CreateTempDBInstanceResponse, <-chan error) { + responseChan := make(chan *CreateTempDBInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateTempDBInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateTempDBInstanceWithCallback invokes the rds.CreateTempDBInstance API asynchronously +// api document: https://help.aliyun.com/api/rds/createtempdbinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateTempDBInstanceWithCallback(request *CreateTempDBInstanceRequest, callback func(response *CreateTempDBInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateTempDBInstanceResponse + var err error + defer close(result) + response, err = client.CreateTempDBInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateTempDBInstanceRequest is the request struct for api CreateTempDBInstance +type CreateTempDBInstanceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + BackupId requests.Integer `position:"Query" name:"BackupId"` + RestoreTime string `position:"Query" name:"RestoreTime"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// CreateTempDBInstanceResponse is the response struct for api CreateTempDBInstance +type CreateTempDBInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TempDBInstanceId string `json:"TempDBInstanceId" xml:"TempDBInstanceId"` +} + +// CreateCreateTempDBInstanceRequest creates a request to invoke CreateTempDBInstance API +func CreateCreateTempDBInstanceRequest() (request *CreateTempDBInstanceRequest) { + request = &CreateTempDBInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "CreateTempDBInstance", "rds", "openAPI") + return +} + +// CreateCreateTempDBInstanceResponse creates a response to parse from CreateTempDBInstance response +func CreateCreateTempDBInstanceResponse() (response *CreateTempDBInstanceResponse) { + response = &CreateTempDBInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/degrade_db_instance_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/degrade_db_instance_spec.go new file mode 100644 index 0000000..1cc40e8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/degrade_db_instance_spec.go @@ -0,0 +1,110 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DegradeDBInstanceSpec invokes the rds.DegradeDBInstanceSpec API synchronously +// api document: https://help.aliyun.com/api/rds/degradedbinstancespec.html +func (client *Client) DegradeDBInstanceSpec(request *DegradeDBInstanceSpecRequest) (response *DegradeDBInstanceSpecResponse, err error) { + response = CreateDegradeDBInstanceSpecResponse() + err = client.DoAction(request, response) + return +} + +// DegradeDBInstanceSpecWithChan invokes the rds.DegradeDBInstanceSpec API asynchronously +// api document: https://help.aliyun.com/api/rds/degradedbinstancespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DegradeDBInstanceSpecWithChan(request *DegradeDBInstanceSpecRequest) (<-chan *DegradeDBInstanceSpecResponse, <-chan error) { + responseChan := make(chan *DegradeDBInstanceSpecResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DegradeDBInstanceSpec(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DegradeDBInstanceSpecWithCallback invokes the rds.DegradeDBInstanceSpec API asynchronously +// api document: https://help.aliyun.com/api/rds/degradedbinstancespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DegradeDBInstanceSpecWithCallback(request *DegradeDBInstanceSpecRequest, callback func(response *DegradeDBInstanceSpecResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DegradeDBInstanceSpecResponse + var err error + defer close(result) + response, err = client.DegradeDBInstanceSpec(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DegradeDBInstanceSpecRequest is the request struct for api DegradeDBInstanceSpec +type DegradeDBInstanceSpecRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + DBInstanceClass string `position:"Query" name:"DBInstanceClass"` + DBInstanceStorage requests.Integer `position:"Query" name:"DBInstanceStorage"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DegradeDBInstanceSpecResponse is the response struct for api DegradeDBInstanceSpec +type DegradeDBInstanceSpecResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDegradeDBInstanceSpecRequest creates a request to invoke DegradeDBInstanceSpec API +func CreateDegradeDBInstanceSpecRequest() (request *DegradeDBInstanceSpecRequest) { + request = &DegradeDBInstanceSpecRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DegradeDBInstanceSpec", "rds", "openAPI") + return +} + +// CreateDegradeDBInstanceSpecResponse creates a response to parse from DegradeDBInstanceSpec response +func CreateDegradeDBInstanceSpecResponse() (response *DegradeDBInstanceSpecResponse) { + response = &DegradeDBInstanceSpecResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/delete_account.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/delete_account.go new file mode 100644 index 0000000..fa4b3a9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/delete_account.go @@ -0,0 +1,108 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteAccount invokes the rds.DeleteAccount API synchronously +// api document: https://help.aliyun.com/api/rds/deleteaccount.html +func (client *Client) DeleteAccount(request *DeleteAccountRequest) (response *DeleteAccountResponse, err error) { + response = CreateDeleteAccountResponse() + err = client.DoAction(request, response) + return +} + +// DeleteAccountWithChan invokes the rds.DeleteAccount API asynchronously +// api document: https://help.aliyun.com/api/rds/deleteaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAccountWithChan(request *DeleteAccountRequest) (<-chan *DeleteAccountResponse, <-chan error) { + responseChan := make(chan *DeleteAccountResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteAccount(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteAccountWithCallback invokes the rds.DeleteAccount API asynchronously +// api document: https://help.aliyun.com/api/rds/deleteaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteAccountWithCallback(request *DeleteAccountRequest, callback func(response *DeleteAccountResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteAccountResponse + var err error + defer close(result) + response, err = client.DeleteAccount(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteAccountRequest is the request struct for api DeleteAccount +type DeleteAccountRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + AccountName string `position:"Query" name:"AccountName"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DeleteAccountResponse is the response struct for api DeleteAccount +type DeleteAccountResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteAccountRequest creates a request to invoke DeleteAccount API +func CreateDeleteAccountRequest() (request *DeleteAccountRequest) { + request = &DeleteAccountRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DeleteAccount", "rds", "openAPI") + return +} + +// CreateDeleteAccountResponse creates a response to parse from DeleteAccount response +func CreateDeleteAccountResponse() (response *DeleteAccountResponse) { + response = &DeleteAccountResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/delete_backup.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/delete_backup.go new file mode 100644 index 0000000..3989b69 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/delete_backup.go @@ -0,0 +1,108 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteBackup invokes the rds.DeleteBackup API synchronously +// api document: https://help.aliyun.com/api/rds/deletebackup.html +func (client *Client) DeleteBackup(request *DeleteBackupRequest) (response *DeleteBackupResponse, err error) { + response = CreateDeleteBackupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteBackupWithChan invokes the rds.DeleteBackup API asynchronously +// api document: https://help.aliyun.com/api/rds/deletebackup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteBackupWithChan(request *DeleteBackupRequest) (<-chan *DeleteBackupResponse, <-chan error) { + responseChan := make(chan *DeleteBackupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteBackup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteBackupWithCallback invokes the rds.DeleteBackup API asynchronously +// api document: https://help.aliyun.com/api/rds/deletebackup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteBackupWithCallback(request *DeleteBackupRequest, callback func(response *DeleteBackupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteBackupResponse + var err error + defer close(result) + response, err = client.DeleteBackup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteBackupRequest is the request struct for api DeleteBackup +type DeleteBackupRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + BackupId string `position:"Query" name:"BackupId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DeleteBackupResponse is the response struct for api DeleteBackup +type DeleteBackupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteBackupRequest creates a request to invoke DeleteBackup API +func CreateDeleteBackupRequest() (request *DeleteBackupRequest) { + request = &DeleteBackupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DeleteBackup", "rds", "openAPI") + return +} + +// CreateDeleteBackupResponse creates a response to parse from DeleteBackup response +func CreateDeleteBackupResponse() (response *DeleteBackupResponse) { + response = &DeleteBackupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/delete_damp_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/delete_damp_policy.go new file mode 100644 index 0000000..6d747a8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/delete_damp_policy.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteDampPolicy invokes the rds.DeleteDampPolicy API synchronously +// api document: https://help.aliyun.com/api/rds/deletedamppolicy.html +func (client *Client) DeleteDampPolicy(request *DeleteDampPolicyRequest) (response *DeleteDampPolicyResponse, err error) { + response = CreateDeleteDampPolicyResponse() + err = client.DoAction(request, response) + return +} + +// DeleteDampPolicyWithChan invokes the rds.DeleteDampPolicy API asynchronously +// api document: https://help.aliyun.com/api/rds/deletedamppolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteDampPolicyWithChan(request *DeleteDampPolicyRequest) (<-chan *DeleteDampPolicyResponse, <-chan error) { + responseChan := make(chan *DeleteDampPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteDampPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteDampPolicyWithCallback invokes the rds.DeleteDampPolicy API asynchronously +// api document: https://help.aliyun.com/api/rds/deletedamppolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteDampPolicyWithCallback(request *DeleteDampPolicyRequest, callback func(response *DeleteDampPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteDampPolicyResponse + var err error + defer close(result) + response, err = client.DeleteDampPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteDampPolicyRequest is the request struct for api DeleteDampPolicy +type DeleteDampPolicyRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + PolicyName string `position:"Query" name:"PolicyName"` +} + +// DeleteDampPolicyResponse is the response struct for api DeleteDampPolicy +type DeleteDampPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteDampPolicyRequest creates a request to invoke DeleteDampPolicy API +func CreateDeleteDampPolicyRequest() (request *DeleteDampPolicyRequest) { + request = &DeleteDampPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DeleteDampPolicy", "rds", "openAPI") + return +} + +// CreateDeleteDampPolicyResponse creates a response to parse from DeleteDampPolicy response +func CreateDeleteDampPolicyResponse() (response *DeleteDampPolicyResponse) { + response = &DeleteDampPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/delete_database.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/delete_database.go new file mode 100644 index 0000000..a6d9345 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/delete_database.go @@ -0,0 +1,108 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteDatabase invokes the rds.DeleteDatabase API synchronously +// api document: https://help.aliyun.com/api/rds/deletedatabase.html +func (client *Client) DeleteDatabase(request *DeleteDatabaseRequest) (response *DeleteDatabaseResponse, err error) { + response = CreateDeleteDatabaseResponse() + err = client.DoAction(request, response) + return +} + +// DeleteDatabaseWithChan invokes the rds.DeleteDatabase API asynchronously +// api document: https://help.aliyun.com/api/rds/deletedatabase.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteDatabaseWithChan(request *DeleteDatabaseRequest) (<-chan *DeleteDatabaseResponse, <-chan error) { + responseChan := make(chan *DeleteDatabaseResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteDatabase(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteDatabaseWithCallback invokes the rds.DeleteDatabase API asynchronously +// api document: https://help.aliyun.com/api/rds/deletedatabase.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteDatabaseWithCallback(request *DeleteDatabaseRequest, callback func(response *DeleteDatabaseResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteDatabaseResponse + var err error + defer close(result) + response, err = client.DeleteDatabase(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteDatabaseRequest is the request struct for api DeleteDatabase +type DeleteDatabaseRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + DBName string `position:"Query" name:"DBName"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DeleteDatabaseResponse is the response struct for api DeleteDatabase +type DeleteDatabaseResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteDatabaseRequest creates a request to invoke DeleteDatabase API +func CreateDeleteDatabaseRequest() (request *DeleteDatabaseRequest) { + request = &DeleteDatabaseRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DeleteDatabase", "rds", "openAPI") + return +} + +// CreateDeleteDatabaseResponse creates a response to parse from DeleteDatabase response +func CreateDeleteDatabaseResponse() (response *DeleteDatabaseResponse) { + response = &DeleteDatabaseResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/delete_db_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/delete_db_instance.go new file mode 100644 index 0000000..8d32fca --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/delete_db_instance.go @@ -0,0 +1,108 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteDBInstance invokes the rds.DeleteDBInstance API synchronously +// api document: https://help.aliyun.com/api/rds/deletedbinstance.html +func (client *Client) DeleteDBInstance(request *DeleteDBInstanceRequest) (response *DeleteDBInstanceResponse, err error) { + response = CreateDeleteDBInstanceResponse() + err = client.DoAction(request, response) + return +} + +// DeleteDBInstanceWithChan invokes the rds.DeleteDBInstance API asynchronously +// api document: https://help.aliyun.com/api/rds/deletedbinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteDBInstanceWithChan(request *DeleteDBInstanceRequest) (<-chan *DeleteDBInstanceResponse, <-chan error) { + responseChan := make(chan *DeleteDBInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteDBInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteDBInstanceWithCallback invokes the rds.DeleteDBInstance API asynchronously +// api document: https://help.aliyun.com/api/rds/deletedbinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteDBInstanceWithCallback(request *DeleteDBInstanceRequest, callback func(response *DeleteDBInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteDBInstanceResponse + var err error + defer close(result) + response, err = client.DeleteDBInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteDBInstanceRequest is the request struct for api DeleteDBInstance +type DeleteDBInstanceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DeleteDBInstanceResponse is the response struct for api DeleteDBInstance +type DeleteDBInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteDBInstanceRequest creates a request to invoke DeleteDBInstance API +func CreateDeleteDBInstanceRequest() (request *DeleteDBInstanceRequest) { + request = &DeleteDBInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DeleteDBInstance", "rds", "openAPI") + return +} + +// CreateDeleteDBInstanceResponse creates a response to parse from DeleteDBInstance response +func CreateDeleteDBInstanceResponse() (response *DeleteDBInstanceResponse) { + response = &DeleteDBInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/descibe_imports_from_database.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/descibe_imports_from_database.go new file mode 100644 index 0000000..624b066 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/descibe_imports_from_database.go @@ -0,0 +1,118 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescibeImportsFromDatabase invokes the rds.DescibeImportsFromDatabase API synchronously +// api document: https://help.aliyun.com/api/rds/descibeimportsfromdatabase.html +func (client *Client) DescibeImportsFromDatabase(request *DescibeImportsFromDatabaseRequest) (response *DescibeImportsFromDatabaseResponse, err error) { + response = CreateDescibeImportsFromDatabaseResponse() + err = client.DoAction(request, response) + return +} + +// DescibeImportsFromDatabaseWithChan invokes the rds.DescibeImportsFromDatabase API asynchronously +// api document: https://help.aliyun.com/api/rds/descibeimportsfromdatabase.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescibeImportsFromDatabaseWithChan(request *DescibeImportsFromDatabaseRequest) (<-chan *DescibeImportsFromDatabaseResponse, <-chan error) { + responseChan := make(chan *DescibeImportsFromDatabaseResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescibeImportsFromDatabase(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescibeImportsFromDatabaseWithCallback invokes the rds.DescibeImportsFromDatabase API asynchronously +// api document: https://help.aliyun.com/api/rds/descibeimportsfromdatabase.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescibeImportsFromDatabaseWithCallback(request *DescibeImportsFromDatabaseRequest, callback func(response *DescibeImportsFromDatabaseResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescibeImportsFromDatabaseResponse + var err error + defer close(result) + response, err = client.DescibeImportsFromDatabase(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescibeImportsFromDatabaseRequest is the request struct for api DescibeImportsFromDatabase +type DescibeImportsFromDatabaseRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + Engine string `position:"Query" name:"Engine"` + ImportId requests.Integer `position:"Query" name:"ImportId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescibeImportsFromDatabaseResponse is the response struct for api DescibeImportsFromDatabase +type DescibeImportsFromDatabaseResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescibeImportsFromDatabase `json:"Items" xml:"Items"` +} + +// CreateDescibeImportsFromDatabaseRequest creates a request to invoke DescibeImportsFromDatabase API +func CreateDescibeImportsFromDatabaseRequest() (request *DescibeImportsFromDatabaseRequest) { + request = &DescibeImportsFromDatabaseRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescibeImportsFromDatabase", "rds", "openAPI") + return +} + +// CreateDescibeImportsFromDatabaseResponse creates a response to parse from DescibeImportsFromDatabase response +func CreateDescibeImportsFromDatabaseResponse() (response *DescibeImportsFromDatabaseResponse) { + response = &DescibeImportsFromDatabaseResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_abnormal_db_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_abnormal_db_instances.go new file mode 100644 index 0000000..69bc1b0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_abnormal_db_instances.go @@ -0,0 +1,126 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAbnormalDBInstances invokes the rds.DescribeAbnormalDBInstances API synchronously +// api document: https://help.aliyun.com/api/rds/describeabnormaldbinstances.html +func (client *Client) DescribeAbnormalDBInstances(request *DescribeAbnormalDBInstancesRequest) (response *DescribeAbnormalDBInstancesResponse, err error) { + response = CreateDescribeAbnormalDBInstancesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAbnormalDBInstancesWithChan invokes the rds.DescribeAbnormalDBInstances API asynchronously +// api document: https://help.aliyun.com/api/rds/describeabnormaldbinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAbnormalDBInstancesWithChan(request *DescribeAbnormalDBInstancesRequest) (<-chan *DescribeAbnormalDBInstancesResponse, <-chan error) { + responseChan := make(chan *DescribeAbnormalDBInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAbnormalDBInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAbnormalDBInstancesWithCallback invokes the rds.DescribeAbnormalDBInstances API asynchronously +// api document: https://help.aliyun.com/api/rds/describeabnormaldbinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAbnormalDBInstancesWithCallback(request *DescribeAbnormalDBInstancesRequest, callback func(response *DescribeAbnormalDBInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAbnormalDBInstancesResponse + var err error + defer close(result) + response, err = client.DescribeAbnormalDBInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAbnormalDBInstancesRequest is the request struct for api DescribeAbnormalDBInstances +type DescribeAbnormalDBInstancesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + ProxyId string `position:"Query" name:"proxyId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + Tags string `position:"Query" name:"Tags"` + Tag1Key string `position:"Query" name:"Tag.1.key"` + Tag2Key string `position:"Query" name:"Tag.2.key"` + Tag3Key string `position:"Query" name:"Tag.3.key"` + Tag4Key string `position:"Query" name:"Tag.4.key"` + Tag5Key string `position:"Query" name:"Tag.5.key"` + Tag1Value string `position:"Query" name:"Tag.1.value"` + Tag2Value string `position:"Query" name:"Tag.2.value"` + Tag3Value string `position:"Query" name:"Tag.3.value"` + Tag4Value string `position:"Query" name:"Tag.4.value"` + Tag5Value string `position:"Query" name:"Tag.5.value"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeAbnormalDBInstancesResponse is the response struct for api DescribeAbnormalDBInstances +type DescribeAbnormalDBInstancesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeAbnormalDBInstances `json:"Items" xml:"Items"` +} + +// CreateDescribeAbnormalDBInstancesRequest creates a request to invoke DescribeAbnormalDBInstances API +func CreateDescribeAbnormalDBInstancesRequest() (request *DescribeAbnormalDBInstancesRequest) { + request = &DescribeAbnormalDBInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeAbnormalDBInstances", "rds", "openAPI") + return +} + +// CreateDescribeAbnormalDBInstancesResponse creates a response to parse from DescribeAbnormalDBInstances response +func CreateDescribeAbnormalDBInstancesResponse() (response *DescribeAbnormalDBInstancesResponse) { + response = &DescribeAbnormalDBInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_accounts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_accounts.go new file mode 100644 index 0000000..cbb2000 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_accounts.go @@ -0,0 +1,111 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAccounts invokes the rds.DescribeAccounts API synchronously +// api document: https://help.aliyun.com/api/rds/describeaccounts.html +func (client *Client) DescribeAccounts(request *DescribeAccountsRequest) (response *DescribeAccountsResponse, err error) { + response = CreateDescribeAccountsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAccountsWithChan invokes the rds.DescribeAccounts API asynchronously +// api document: https://help.aliyun.com/api/rds/describeaccounts.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccountsWithChan(request *DescribeAccountsRequest) (<-chan *DescribeAccountsResponse, <-chan error) { + responseChan := make(chan *DescribeAccountsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAccounts(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAccountsWithCallback invokes the rds.DescribeAccounts API asynchronously +// api document: https://help.aliyun.com/api/rds/describeaccounts.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccountsWithCallback(request *DescribeAccountsRequest, callback func(response *DescribeAccountsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAccountsResponse + var err error + defer close(result) + response, err = client.DescribeAccounts(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAccountsRequest is the request struct for api DescribeAccounts +type DescribeAccountsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + AccountName string `position:"Query" name:"AccountName"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeAccountsResponse is the response struct for api DescribeAccounts +type DescribeAccountsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Accounts AccountsInDescribeAccounts `json:"Accounts" xml:"Accounts"` +} + +// CreateDescribeAccountsRequest creates a request to invoke DescribeAccounts API +func CreateDescribeAccountsRequest() (request *DescribeAccountsRequest) { + request = &DescribeAccountsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeAccounts", "rds", "openAPI") + return +} + +// CreateDescribeAccountsResponse creates a response to parse from DescribeAccounts response +func CreateDescribeAccountsResponse() (response *DescribeAccountsResponse) { + response = &DescribeAccountsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_backup_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_backup_policy.go new file mode 100644 index 0000000..3863f4a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_backup_policy.go @@ -0,0 +1,113 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeBackupPolicy invokes the rds.DescribeBackupPolicy API synchronously +// api document: https://help.aliyun.com/api/rds/describebackuppolicy.html +func (client *Client) DescribeBackupPolicy(request *DescribeBackupPolicyRequest) (response *DescribeBackupPolicyResponse, err error) { + response = CreateDescribeBackupPolicyResponse() + err = client.DoAction(request, response) + return +} + +// DescribeBackupPolicyWithChan invokes the rds.DescribeBackupPolicy API asynchronously +// api document: https://help.aliyun.com/api/rds/describebackuppolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBackupPolicyWithChan(request *DescribeBackupPolicyRequest) (<-chan *DescribeBackupPolicyResponse, <-chan error) { + responseChan := make(chan *DescribeBackupPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeBackupPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeBackupPolicyWithCallback invokes the rds.DescribeBackupPolicy API asynchronously +// api document: https://help.aliyun.com/api/rds/describebackuppolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBackupPolicyWithCallback(request *DescribeBackupPolicyRequest, callback func(response *DescribeBackupPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeBackupPolicyResponse + var err error + defer close(result) + response, err = client.DescribeBackupPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeBackupPolicyRequest is the request struct for api DescribeBackupPolicy +type DescribeBackupPolicyRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeBackupPolicyResponse is the response struct for api DescribeBackupPolicy +type DescribeBackupPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + BackupRetentionPeriod int `json:"BackupRetentionPeriod" xml:"BackupRetentionPeriod"` + PreferredNextBackupTime string `json:"PreferredNextBackupTime" xml:"PreferredNextBackupTime"` + PreferredBackupTime string `json:"PreferredBackupTime" xml:"PreferredBackupTime"` + PreferredBackupPeriod string `json:"PreferredBackupPeriod" xml:"PreferredBackupPeriod"` + BackupLog string `json:"BackupLog" xml:"BackupLog"` + LogBackupRetentionPeriod int `json:"LogBackupRetentionPeriod" xml:"LogBackupRetentionPeriod"` +} + +// CreateDescribeBackupPolicyRequest creates a request to invoke DescribeBackupPolicy API +func CreateDescribeBackupPolicyRequest() (request *DescribeBackupPolicyRequest) { + request = &DescribeBackupPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeBackupPolicy", "rds", "openAPI") + return +} + +// CreateDescribeBackupPolicyResponse creates a response to parse from DescribeBackupPolicy response +func CreateDescribeBackupPolicyResponse() (response *DescribeBackupPolicyResponse) { + response = &DescribeBackupPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_backup_sets_for_security.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_backup_sets_for_security.go new file mode 100644 index 0000000..5f9efdb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_backup_sets_for_security.go @@ -0,0 +1,122 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeBackupSetsForSecurity invokes the rds.DescribeBackupSetsForSecurity API synchronously +// api document: https://help.aliyun.com/api/rds/describebackupsetsforsecurity.html +func (client *Client) DescribeBackupSetsForSecurity(request *DescribeBackupSetsForSecurityRequest) (response *DescribeBackupSetsForSecurityResponse, err error) { + response = CreateDescribeBackupSetsForSecurityResponse() + err = client.DoAction(request, response) + return +} + +// DescribeBackupSetsForSecurityWithChan invokes the rds.DescribeBackupSetsForSecurity API asynchronously +// api document: https://help.aliyun.com/api/rds/describebackupsetsforsecurity.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBackupSetsForSecurityWithChan(request *DescribeBackupSetsForSecurityRequest) (<-chan *DescribeBackupSetsForSecurityResponse, <-chan error) { + responseChan := make(chan *DescribeBackupSetsForSecurityResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeBackupSetsForSecurity(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeBackupSetsForSecurityWithCallback invokes the rds.DescribeBackupSetsForSecurity API asynchronously +// api document: https://help.aliyun.com/api/rds/describebackupsetsforsecurity.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBackupSetsForSecurityWithCallback(request *DescribeBackupSetsForSecurityRequest, callback func(response *DescribeBackupSetsForSecurityResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeBackupSetsForSecurityResponse + var err error + defer close(result) + response, err = client.DescribeBackupSetsForSecurity(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeBackupSetsForSecurityRequest is the request struct for api DescribeBackupSetsForSecurity +type DescribeBackupSetsForSecurityRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + TargetAliUid string `position:"Query" name:"TargetAliUid"` + TargetAliBid string `position:"Query" name:"TargetAliBid"` + BackupId string `position:"Query" name:"BackupId"` + BackupLocation string `position:"Query" name:"BackupLocation"` + BackupStatus string `position:"Query" name:"BackupStatus"` + BackupMode string `position:"Query" name:"BackupMode"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeBackupSetsForSecurityResponse is the response struct for api DescribeBackupSetsForSecurity +type DescribeBackupSetsForSecurityResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalRecordCount string `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageNumber string `json:"PageNumber" xml:"PageNumber"` + PageRecordCount string `json:"PageRecordCount" xml:"PageRecordCount"` + TotalBackupSize int `json:"TotalBackupSize" xml:"TotalBackupSize"` + Items ItemsInDescribeBackupSetsForSecurity `json:"Items" xml:"Items"` +} + +// CreateDescribeBackupSetsForSecurityRequest creates a request to invoke DescribeBackupSetsForSecurity API +func CreateDescribeBackupSetsForSecurityRequest() (request *DescribeBackupSetsForSecurityRequest) { + request = &DescribeBackupSetsForSecurityRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeBackupSetsForSecurity", "rds", "openAPI") + return +} + +// CreateDescribeBackupSetsForSecurityResponse creates a response to parse from DescribeBackupSetsForSecurity response +func CreateDescribeBackupSetsForSecurityResponse() (response *DescribeBackupSetsForSecurityResponse) { + response = &DescribeBackupSetsForSecurityResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_backup_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_backup_tasks.go new file mode 100644 index 0000000..f8575b2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_backup_tasks.go @@ -0,0 +1,113 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeBackupTasks invokes the rds.DescribeBackupTasks API synchronously +// api document: https://help.aliyun.com/api/rds/describebackuptasks.html +func (client *Client) DescribeBackupTasks(request *DescribeBackupTasksRequest) (response *DescribeBackupTasksResponse, err error) { + response = CreateDescribeBackupTasksResponse() + err = client.DoAction(request, response) + return +} + +// DescribeBackupTasksWithChan invokes the rds.DescribeBackupTasks API asynchronously +// api document: https://help.aliyun.com/api/rds/describebackuptasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBackupTasksWithChan(request *DescribeBackupTasksRequest) (<-chan *DescribeBackupTasksResponse, <-chan error) { + responseChan := make(chan *DescribeBackupTasksResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeBackupTasks(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeBackupTasksWithCallback invokes the rds.DescribeBackupTasks API asynchronously +// api document: https://help.aliyun.com/api/rds/describebackuptasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBackupTasksWithCallback(request *DescribeBackupTasksRequest, callback func(response *DescribeBackupTasksResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeBackupTasksResponse + var err error + defer close(result) + response, err = client.DescribeBackupTasks(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeBackupTasksRequest is the request struct for api DescribeBackupTasks +type DescribeBackupTasksRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + Flag string `position:"Query" name:"Flag"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + BackupJobId string `position:"Query" name:"BackupJobId"` + BackupMode string `position:"Query" name:"BackupMode"` + BackupJobStatus string `position:"Query" name:"BackupJobStatus"` +} + +// DescribeBackupTasksResponse is the response struct for api DescribeBackupTasks +type DescribeBackupTasksResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Items ItemsInDescribeBackupTasks `json:"Items" xml:"Items"` +} + +// CreateDescribeBackupTasksRequest creates a request to invoke DescribeBackupTasks API +func CreateDescribeBackupTasksRequest() (request *DescribeBackupTasksRequest) { + request = &DescribeBackupTasksRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeBackupTasks", "rds", "openAPI") + return +} + +// CreateDescribeBackupTasksResponse creates a response to parse from DescribeBackupTasks response +func CreateDescribeBackupTasksResponse() (response *DescribeBackupTasksResponse) { + response = &DescribeBackupTasksResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_backups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_backups.go new file mode 100644 index 0000000..61fcfe2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_backups.go @@ -0,0 +1,120 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeBackups invokes the rds.DescribeBackups API synchronously +// api document: https://help.aliyun.com/api/rds/describebackups.html +func (client *Client) DescribeBackups(request *DescribeBackupsRequest) (response *DescribeBackupsResponse, err error) { + response = CreateDescribeBackupsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeBackupsWithChan invokes the rds.DescribeBackups API asynchronously +// api document: https://help.aliyun.com/api/rds/describebackups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBackupsWithChan(request *DescribeBackupsRequest) (<-chan *DescribeBackupsResponse, <-chan error) { + responseChan := make(chan *DescribeBackupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeBackups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeBackupsWithCallback invokes the rds.DescribeBackups API asynchronously +// api document: https://help.aliyun.com/api/rds/describebackups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBackupsWithCallback(request *DescribeBackupsRequest, callback func(response *DescribeBackupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeBackupsResponse + var err error + defer close(result) + response, err = client.DescribeBackups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeBackupsRequest is the request struct for api DescribeBackups +type DescribeBackupsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + BackupId string `position:"Query" name:"BackupId"` + BackupLocation string `position:"Query" name:"BackupLocation"` + BackupStatus string `position:"Query" name:"BackupStatus"` + BackupMode string `position:"Query" name:"BackupMode"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeBackupsResponse is the response struct for api DescribeBackups +type DescribeBackupsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalRecordCount string `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageNumber string `json:"PageNumber" xml:"PageNumber"` + PageRecordCount string `json:"PageRecordCount" xml:"PageRecordCount"` + TotalBackupSize int `json:"TotalBackupSize" xml:"TotalBackupSize"` + Items ItemsInDescribeBackups `json:"Items" xml:"Items"` +} + +// CreateDescribeBackupsRequest creates a request to invoke DescribeBackups API +func CreateDescribeBackupsRequest() (request *DescribeBackupsRequest) { + request = &DescribeBackupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeBackups", "rds", "openAPI") + return +} + +// CreateDescribeBackupsResponse creates a response to parse from DescribeBackups response +func CreateDescribeBackupsResponse() (response *DescribeBackupsResponse) { + response = &DescribeBackupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_backups_for_security.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_backups_for_security.go new file mode 100644 index 0000000..01e4257 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_backups_for_security.go @@ -0,0 +1,122 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeBackupsForSecurity invokes the rds.DescribeBackupsForSecurity API synchronously +// api document: https://help.aliyun.com/api/rds/describebackupsforsecurity.html +func (client *Client) DescribeBackupsForSecurity(request *DescribeBackupsForSecurityRequest) (response *DescribeBackupsForSecurityResponse, err error) { + response = CreateDescribeBackupsForSecurityResponse() + err = client.DoAction(request, response) + return +} + +// DescribeBackupsForSecurityWithChan invokes the rds.DescribeBackupsForSecurity API asynchronously +// api document: https://help.aliyun.com/api/rds/describebackupsforsecurity.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBackupsForSecurityWithChan(request *DescribeBackupsForSecurityRequest) (<-chan *DescribeBackupsForSecurityResponse, <-chan error) { + responseChan := make(chan *DescribeBackupsForSecurityResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeBackupsForSecurity(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeBackupsForSecurityWithCallback invokes the rds.DescribeBackupsForSecurity API asynchronously +// api document: https://help.aliyun.com/api/rds/describebackupsforsecurity.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBackupsForSecurityWithCallback(request *DescribeBackupsForSecurityRequest, callback func(response *DescribeBackupsForSecurityResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeBackupsForSecurityResponse + var err error + defer close(result) + response, err = client.DescribeBackupsForSecurity(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeBackupsForSecurityRequest is the request struct for api DescribeBackupsForSecurity +type DescribeBackupsForSecurityRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + TargetAliUid string `position:"Query" name:"TargetAliUid"` + TargetAliBid string `position:"Query" name:"TargetAliBid"` + BackupId string `position:"Query" name:"BackupId"` + BackupLocation string `position:"Query" name:"BackupLocation"` + BackupStatus string `position:"Query" name:"BackupStatus"` + BackupMode string `position:"Query" name:"BackupMode"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeBackupsForSecurityResponse is the response struct for api DescribeBackupsForSecurity +type DescribeBackupsForSecurityResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalRecordCount string `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageNumber string `json:"PageNumber" xml:"PageNumber"` + PageRecordCount string `json:"PageRecordCount" xml:"PageRecordCount"` + TotalBackupSize int `json:"TotalBackupSize" xml:"TotalBackupSize"` + Items ItemsInDescribeBackupsForSecurity `json:"Items" xml:"Items"` +} + +// CreateDescribeBackupsForSecurityRequest creates a request to invoke DescribeBackupsForSecurity API +func CreateDescribeBackupsForSecurityRequest() (request *DescribeBackupsForSecurityRequest) { + request = &DescribeBackupsForSecurityRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeBackupsForSecurity", "rds", "openAPI") + return +} + +// CreateDescribeBackupsForSecurityResponse creates a response to parse from DescribeBackupsForSecurity response +func CreateDescribeBackupsForSecurityResponse() (response *DescribeBackupsForSecurityResponse) { + response = &DescribeBackupsForSecurityResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_binlog_files.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_binlog_files.go new file mode 100644 index 0000000..3e72b19 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_binlog_files.go @@ -0,0 +1,116 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeBinlogFiles invokes the rds.DescribeBinlogFiles API synchronously +// api document: https://help.aliyun.com/api/rds/describebinlogfiles.html +func (client *Client) DescribeBinlogFiles(request *DescribeBinlogFilesRequest) (response *DescribeBinlogFilesResponse, err error) { + response = CreateDescribeBinlogFilesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeBinlogFilesWithChan invokes the rds.DescribeBinlogFiles API asynchronously +// api document: https://help.aliyun.com/api/rds/describebinlogfiles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBinlogFilesWithChan(request *DescribeBinlogFilesRequest) (<-chan *DescribeBinlogFilesResponse, <-chan error) { + responseChan := make(chan *DescribeBinlogFilesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeBinlogFiles(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeBinlogFilesWithCallback invokes the rds.DescribeBinlogFiles API asynchronously +// api document: https://help.aliyun.com/api/rds/describebinlogfiles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBinlogFilesWithCallback(request *DescribeBinlogFilesRequest, callback func(response *DescribeBinlogFilesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeBinlogFilesResponse + var err error + defer close(result) + response, err = client.DescribeBinlogFiles(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeBinlogFilesRequest is the request struct for api DescribeBinlogFiles +type DescribeBinlogFilesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeBinlogFilesResponse is the response struct for api DescribeBinlogFiles +type DescribeBinlogFilesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + TotalFileSize int `json:"TotalFileSize" xml:"TotalFileSize"` + Items ItemsInDescribeBinlogFiles `json:"Items" xml:"Items"` +} + +// CreateDescribeBinlogFilesRequest creates a request to invoke DescribeBinlogFiles API +func CreateDescribeBinlogFilesRequest() (request *DescribeBinlogFilesRequest) { + request = &DescribeBinlogFilesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeBinlogFiles", "rds", "openAPI") + return +} + +// CreateDescribeBinlogFilesResponse creates a response to parse from DescribeBinlogFiles response +func CreateDescribeBinlogFilesResponse() (response *DescribeBinlogFilesResponse) { + response = &DescribeBinlogFilesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_character_set_name.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_character_set_name.go new file mode 100644 index 0000000..8617207 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_character_set_name.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCharacterSetName invokes the rds.DescribeCharacterSetName API synchronously +// api document: https://help.aliyun.com/api/rds/describecharactersetname.html +func (client *Client) DescribeCharacterSetName(request *DescribeCharacterSetNameRequest) (response *DescribeCharacterSetNameResponse, err error) { + response = CreateDescribeCharacterSetNameResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCharacterSetNameWithChan invokes the rds.DescribeCharacterSetName API asynchronously +// api document: https://help.aliyun.com/api/rds/describecharactersetname.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCharacterSetNameWithChan(request *DescribeCharacterSetNameRequest) (<-chan *DescribeCharacterSetNameResponse, <-chan error) { + responseChan := make(chan *DescribeCharacterSetNameResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCharacterSetName(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCharacterSetNameWithCallback invokes the rds.DescribeCharacterSetName API asynchronously +// api document: https://help.aliyun.com/api/rds/describecharactersetname.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCharacterSetNameWithCallback(request *DescribeCharacterSetNameRequest, callback func(response *DescribeCharacterSetNameResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCharacterSetNameResponse + var err error + defer close(result) + response, err = client.DescribeCharacterSetName(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCharacterSetNameRequest is the request struct for api DescribeCharacterSetName +type DescribeCharacterSetNameRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Engine string `position:"Query" name:"Engine"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeCharacterSetNameResponse is the response struct for api DescribeCharacterSetName +type DescribeCharacterSetNameResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Engine string `json:"Engine" xml:"Engine"` + CharacterSetNameItems CharacterSetNameItems `json:"CharacterSetNameItems" xml:"CharacterSetNameItems"` +} + +// CreateDescribeCharacterSetNameRequest creates a request to invoke DescribeCharacterSetName API +func CreateDescribeCharacterSetNameRequest() (request *DescribeCharacterSetNameRequest) { + request = &DescribeCharacterSetNameRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeCharacterSetName", "rds", "openAPI") + return +} + +// CreateDescribeCharacterSetNameResponse creates a response to parse from DescribeCharacterSetName response +func CreateDescribeCharacterSetNameResponse() (response *DescribeCharacterSetNameResponse) { + response = &DescribeCharacterSetNameResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_cloud_dba_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_cloud_dba_service.go new file mode 100644 index 0000000..c92cc04 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_cloud_dba_service.go @@ -0,0 +1,107 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCloudDBAService invokes the rds.DescribeCloudDBAService API synchronously +// api document: https://help.aliyun.com/api/rds/describeclouddbaservice.html +func (client *Client) DescribeCloudDBAService(request *DescribeCloudDBAServiceRequest) (response *DescribeCloudDBAServiceResponse, err error) { + response = CreateDescribeCloudDBAServiceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCloudDBAServiceWithChan invokes the rds.DescribeCloudDBAService API asynchronously +// api document: https://help.aliyun.com/api/rds/describeclouddbaservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCloudDBAServiceWithChan(request *DescribeCloudDBAServiceRequest) (<-chan *DescribeCloudDBAServiceResponse, <-chan error) { + responseChan := make(chan *DescribeCloudDBAServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCloudDBAService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCloudDBAServiceWithCallback invokes the rds.DescribeCloudDBAService API asynchronously +// api document: https://help.aliyun.com/api/rds/describeclouddbaservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCloudDBAServiceWithCallback(request *DescribeCloudDBAServiceRequest, callback func(response *DescribeCloudDBAServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCloudDBAServiceResponse + var err error + defer close(result) + response, err = client.DescribeCloudDBAService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCloudDBAServiceRequest is the request struct for api DescribeCloudDBAService +type DescribeCloudDBAServiceRequest struct { + *requests.RpcRequest + DBInstanceId string `position:"Query" name:"DBInstanceId"` + ServiceRequestType string `position:"Query" name:"ServiceRequestType"` + ServiceRequestParam string `position:"Query" name:"ServiceRequestParam"` +} + +// DescribeCloudDBAServiceResponse is the response struct for api DescribeCloudDBAService +type DescribeCloudDBAServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ListData string `json:"ListData" xml:"ListData"` + AttrData string `json:"AttrData" xml:"AttrData"` +} + +// CreateDescribeCloudDBAServiceRequest creates a request to invoke DescribeCloudDBAService API +func CreateDescribeCloudDBAServiceRequest() (request *DescribeCloudDBAServiceRequest) { + request = &DescribeCloudDBAServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeCloudDBAService", "rds", "openAPI") + return +} + +// CreateDescribeCloudDBAServiceResponse creates a response to parse from DescribeCloudDBAService response +func CreateDescribeCloudDBAServiceResponse() (response *DescribeCloudDBAServiceResponse) { + response = &DescribeCloudDBAServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_custins_kernel_release_notes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_custins_kernel_release_notes.go new file mode 100644 index 0000000..41a8d7d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_custins_kernel_release_notes.go @@ -0,0 +1,108 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCustinsKernelReleaseNotes invokes the rds.DescribeCustinsKernelReleaseNotes API synchronously +// api document: https://help.aliyun.com/api/rds/describecustinskernelreleasenotes.html +func (client *Client) DescribeCustinsKernelReleaseNotes(request *DescribeCustinsKernelReleaseNotesRequest) (response *DescribeCustinsKernelReleaseNotesResponse, err error) { + response = CreateDescribeCustinsKernelReleaseNotesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCustinsKernelReleaseNotesWithChan invokes the rds.DescribeCustinsKernelReleaseNotes API asynchronously +// api document: https://help.aliyun.com/api/rds/describecustinskernelreleasenotes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCustinsKernelReleaseNotesWithChan(request *DescribeCustinsKernelReleaseNotesRequest) (<-chan *DescribeCustinsKernelReleaseNotesResponse, <-chan error) { + responseChan := make(chan *DescribeCustinsKernelReleaseNotesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCustinsKernelReleaseNotes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCustinsKernelReleaseNotesWithCallback invokes the rds.DescribeCustinsKernelReleaseNotes API asynchronously +// api document: https://help.aliyun.com/api/rds/describecustinskernelreleasenotes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCustinsKernelReleaseNotesWithCallback(request *DescribeCustinsKernelReleaseNotesRequest, callback func(response *DescribeCustinsKernelReleaseNotesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCustinsKernelReleaseNotesResponse + var err error + defer close(result) + response, err = client.DescribeCustinsKernelReleaseNotes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCustinsKernelReleaseNotesRequest is the request struct for api DescribeCustinsKernelReleaseNotes +type DescribeCustinsKernelReleaseNotesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` +} + +// DescribeCustinsKernelReleaseNotesResponse is the response struct for api DescribeCustinsKernelReleaseNotes +type DescribeCustinsKernelReleaseNotesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + DBInstanceDiffReleaseNote string `json:"DBInstanceDiffReleaseNote" xml:"DBInstanceDiffReleaseNote"` +} + +// CreateDescribeCustinsKernelReleaseNotesRequest creates a request to invoke DescribeCustinsKernelReleaseNotes API +func CreateDescribeCustinsKernelReleaseNotesRequest() (request *DescribeCustinsKernelReleaseNotesRequest) { + request = &DescribeCustinsKernelReleaseNotesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeCustinsKernelReleaseNotes", "rds", "openAPI") + return +} + +// CreateDescribeCustinsKernelReleaseNotesResponse creates a response to parse from DescribeCustinsKernelReleaseNotes response +func CreateDescribeCustinsKernelReleaseNotesResponse() (response *DescribeCustinsKernelReleaseNotesResponse) { + response = &DescribeCustinsKernelReleaseNotesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_damp_policies_by_cid.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_damp_policies_by_cid.go new file mode 100644 index 0000000..f796b75 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_damp_policies_by_cid.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDampPoliciesByCid invokes the rds.DescribeDampPoliciesByCid API synchronously +// api document: https://help.aliyun.com/api/rds/describedamppoliciesbycid.html +func (client *Client) DescribeDampPoliciesByCid(request *DescribeDampPoliciesByCidRequest) (response *DescribeDampPoliciesByCidResponse, err error) { + response = CreateDescribeDampPoliciesByCidResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDampPoliciesByCidWithChan invokes the rds.DescribeDampPoliciesByCid API asynchronously +// api document: https://help.aliyun.com/api/rds/describedamppoliciesbycid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDampPoliciesByCidWithChan(request *DescribeDampPoliciesByCidRequest) (<-chan *DescribeDampPoliciesByCidResponse, <-chan error) { + responseChan := make(chan *DescribeDampPoliciesByCidResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDampPoliciesByCid(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDampPoliciesByCidWithCallback invokes the rds.DescribeDampPoliciesByCid API asynchronously +// api document: https://help.aliyun.com/api/rds/describedamppoliciesbycid.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDampPoliciesByCidWithCallback(request *DescribeDampPoliciesByCidRequest, callback func(response *DescribeDampPoliciesByCidResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDampPoliciesByCidResponse + var err error + defer close(result) + response, err = client.DescribeDampPoliciesByCid(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDampPoliciesByCidRequest is the request struct for api DescribeDampPoliciesByCid +type DescribeDampPoliciesByCidRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` +} + +// DescribeDampPoliciesByCidResponse is the response struct for api DescribeDampPoliciesByCid +type DescribeDampPoliciesByCidResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Policies Policies `json:"Policies" xml:"Policies"` +} + +// CreateDescribeDampPoliciesByCidRequest creates a request to invoke DescribeDampPoliciesByCid API +func CreateDescribeDampPoliciesByCidRequest() (request *DescribeDampPoliciesByCidRequest) { + request = &DescribeDampPoliciesByCidRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeDampPoliciesByCid", "rds", "openAPI") + return +} + +// CreateDescribeDampPoliciesByCidResponse creates a response to parse from DescribeDampPoliciesByCid response +func CreateDescribeDampPoliciesByCidResponse() (response *DescribeDampPoliciesByCidResponse) { + response = &DescribeDampPoliciesByCidResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_damp_policy_by_comment.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_damp_policy_by_comment.go new file mode 100644 index 0000000..a2c4411 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_damp_policy_by_comment.go @@ -0,0 +1,114 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDampPolicyByComment invokes the rds.DescribeDampPolicyByComment API synchronously +// api document: https://help.aliyun.com/api/rds/describedamppolicybycomment.html +func (client *Client) DescribeDampPolicyByComment(request *DescribeDampPolicyByCommentRequest) (response *DescribeDampPolicyByCommentResponse, err error) { + response = CreateDescribeDampPolicyByCommentResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDampPolicyByCommentWithChan invokes the rds.DescribeDampPolicyByComment API asynchronously +// api document: https://help.aliyun.com/api/rds/describedamppolicybycomment.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDampPolicyByCommentWithChan(request *DescribeDampPolicyByCommentRequest) (<-chan *DescribeDampPolicyByCommentResponse, <-chan error) { + responseChan := make(chan *DescribeDampPolicyByCommentResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDampPolicyByComment(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDampPolicyByCommentWithCallback invokes the rds.DescribeDampPolicyByComment API asynchronously +// api document: https://help.aliyun.com/api/rds/describedamppolicybycomment.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDampPolicyByCommentWithCallback(request *DescribeDampPolicyByCommentRequest, callback func(response *DescribeDampPolicyByCommentResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDampPolicyByCommentResponse + var err error + defer close(result) + response, err = client.DescribeDampPolicyByComment(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDampPolicyByCommentRequest is the request struct for api DescribeDampPolicyByComment +type DescribeDampPolicyByCommentRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + PolicyName string `position:"Query" name:"PolicyName"` +} + +// DescribeDampPolicyByCommentResponse is the response struct for api DescribeDampPolicyByComment +type DescribeDampPolicyByCommentResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Policy string `json:"Policy" xml:"Policy"` + TimeRules string `json:"TimeRules" xml:"TimeRules"` + ActionRules string `json:"ActionRules" xml:"ActionRules"` + SourceRules string `json:"SourceRules" xml:"SourceRules"` + Handler string `json:"Handler" xml:"Handler"` +} + +// CreateDescribeDampPolicyByCommentRequest creates a request to invoke DescribeDampPolicyByComment API +func CreateDescribeDampPolicyByCommentRequest() (request *DescribeDampPolicyByCommentRequest) { + request = &DescribeDampPolicyByCommentRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeDampPolicyByComment", "rds", "openAPI") + return +} + +// CreateDescribeDampPolicyByCommentResponse creates a response to parse from DescribeDampPolicyByComment response +func CreateDescribeDampPolicyByCommentResponse() (response *DescribeDampPolicyByCommentResponse) { + response = &DescribeDampPolicyByCommentResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_damp_policy_by_policy_name.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_damp_policy_by_policy_name.go new file mode 100644 index 0000000..4c14e1a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_damp_policy_by_policy_name.go @@ -0,0 +1,114 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDampPolicyByPolicyName invokes the rds.DescribeDampPolicyByPolicyName API synchronously +// api document: https://help.aliyun.com/api/rds/describedamppolicybypolicyname.html +func (client *Client) DescribeDampPolicyByPolicyName(request *DescribeDampPolicyByPolicyNameRequest) (response *DescribeDampPolicyByPolicyNameResponse, err error) { + response = CreateDescribeDampPolicyByPolicyNameResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDampPolicyByPolicyNameWithChan invokes the rds.DescribeDampPolicyByPolicyName API asynchronously +// api document: https://help.aliyun.com/api/rds/describedamppolicybypolicyname.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDampPolicyByPolicyNameWithChan(request *DescribeDampPolicyByPolicyNameRequest) (<-chan *DescribeDampPolicyByPolicyNameResponse, <-chan error) { + responseChan := make(chan *DescribeDampPolicyByPolicyNameResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDampPolicyByPolicyName(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDampPolicyByPolicyNameWithCallback invokes the rds.DescribeDampPolicyByPolicyName API asynchronously +// api document: https://help.aliyun.com/api/rds/describedamppolicybypolicyname.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDampPolicyByPolicyNameWithCallback(request *DescribeDampPolicyByPolicyNameRequest, callback func(response *DescribeDampPolicyByPolicyNameResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDampPolicyByPolicyNameResponse + var err error + defer close(result) + response, err = client.DescribeDampPolicyByPolicyName(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDampPolicyByPolicyNameRequest is the request struct for api DescribeDampPolicyByPolicyName +type DescribeDampPolicyByPolicyNameRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + PolicyName string `position:"Query" name:"PolicyName"` +} + +// DescribeDampPolicyByPolicyNameResponse is the response struct for api DescribeDampPolicyByPolicyName +type DescribeDampPolicyByPolicyNameResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Policy string `json:"Policy" xml:"Policy"` + TimeRules string `json:"TimeRules" xml:"TimeRules"` + ActionRules string `json:"ActionRules" xml:"ActionRules"` + SourceRules string `json:"SourceRules" xml:"SourceRules"` + Handler string `json:"Handler" xml:"Handler"` +} + +// CreateDescribeDampPolicyByPolicyNameRequest creates a request to invoke DescribeDampPolicyByPolicyName API +func CreateDescribeDampPolicyByPolicyNameRequest() (request *DescribeDampPolicyByPolicyNameRequest) { + request = &DescribeDampPolicyByPolicyNameRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeDampPolicyByPolicyName", "rds", "openAPI") + return +} + +// CreateDescribeDampPolicyByPolicyNameResponse creates a response to parse from DescribeDampPolicyByPolicyName response +func CreateDescribeDampPolicyByPolicyNameResponse() (response *DescribeDampPolicyByPolicyNameResponse) { + response = &DescribeDampPolicyByPolicyNameResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_database_lock_diagnosis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_database_lock_diagnosis.go new file mode 100644 index 0000000..cd5eabe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_database_lock_diagnosis.go @@ -0,0 +1,106 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDatabaseLockDiagnosis invokes the rds.DescribeDatabaseLockDiagnosis API synchronously +// api document: https://help.aliyun.com/api/rds/describedatabaselockdiagnosis.html +func (client *Client) DescribeDatabaseLockDiagnosis(request *DescribeDatabaseLockDiagnosisRequest) (response *DescribeDatabaseLockDiagnosisResponse, err error) { + response = CreateDescribeDatabaseLockDiagnosisResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDatabaseLockDiagnosisWithChan invokes the rds.DescribeDatabaseLockDiagnosis API asynchronously +// api document: https://help.aliyun.com/api/rds/describedatabaselockdiagnosis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDatabaseLockDiagnosisWithChan(request *DescribeDatabaseLockDiagnosisRequest) (<-chan *DescribeDatabaseLockDiagnosisResponse, <-chan error) { + responseChan := make(chan *DescribeDatabaseLockDiagnosisResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDatabaseLockDiagnosis(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDatabaseLockDiagnosisWithCallback invokes the rds.DescribeDatabaseLockDiagnosis API asynchronously +// api document: https://help.aliyun.com/api/rds/describedatabaselockdiagnosis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDatabaseLockDiagnosisWithCallback(request *DescribeDatabaseLockDiagnosisRequest, callback func(response *DescribeDatabaseLockDiagnosisResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDatabaseLockDiagnosisResponse + var err error + defer close(result) + response, err = client.DescribeDatabaseLockDiagnosis(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDatabaseLockDiagnosisRequest is the request struct for api DescribeDatabaseLockDiagnosis +type DescribeDatabaseLockDiagnosisRequest struct { + *requests.RpcRequest + DBInstanceId string `position:"Query" name:"DBInstanceId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` +} + +// DescribeDatabaseLockDiagnosisResponse is the response struct for api DescribeDatabaseLockDiagnosis +type DescribeDatabaseLockDiagnosisResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DeadLockList DeadLockList `json:"DeadLockList" xml:"DeadLockList"` +} + +// CreateDescribeDatabaseLockDiagnosisRequest creates a request to invoke DescribeDatabaseLockDiagnosis API +func CreateDescribeDatabaseLockDiagnosisRequest() (request *DescribeDatabaseLockDiagnosisRequest) { + request = &DescribeDatabaseLockDiagnosisRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeDatabaseLockDiagnosis", "rds", "openAPI") + return +} + +// CreateDescribeDatabaseLockDiagnosisResponse creates a response to parse from DescribeDatabaseLockDiagnosis response +func CreateDescribeDatabaseLockDiagnosisResponse() (response *DescribeDatabaseLockDiagnosisResponse) { + response = &DescribeDatabaseLockDiagnosisResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_databases.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_databases.go new file mode 100644 index 0000000..de7babb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_databases.go @@ -0,0 +1,112 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDatabases invokes the rds.DescribeDatabases API synchronously +// api document: https://help.aliyun.com/api/rds/describedatabases.html +func (client *Client) DescribeDatabases(request *DescribeDatabasesRequest) (response *DescribeDatabasesResponse, err error) { + response = CreateDescribeDatabasesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDatabasesWithChan invokes the rds.DescribeDatabases API asynchronously +// api document: https://help.aliyun.com/api/rds/describedatabases.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDatabasesWithChan(request *DescribeDatabasesRequest) (<-chan *DescribeDatabasesResponse, <-chan error) { + responseChan := make(chan *DescribeDatabasesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDatabases(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDatabasesWithCallback invokes the rds.DescribeDatabases API asynchronously +// api document: https://help.aliyun.com/api/rds/describedatabases.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDatabasesWithCallback(request *DescribeDatabasesRequest, callback func(response *DescribeDatabasesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDatabasesResponse + var err error + defer close(result) + response, err = client.DescribeDatabases(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDatabasesRequest is the request struct for api DescribeDatabases +type DescribeDatabasesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + DBName string `position:"Query" name:"DBName"` + DBStatus string `position:"Query" name:"DBStatus"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeDatabasesResponse is the response struct for api DescribeDatabases +type DescribeDatabasesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Databases DatabasesInDescribeDatabases `json:"Databases" xml:"Databases"` +} + +// CreateDescribeDatabasesRequest creates a request to invoke DescribeDatabases API +func CreateDescribeDatabasesRequest() (request *DescribeDatabasesRequest) { + request = &DescribeDatabasesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeDatabases", "rds", "openAPI") + return +} + +// CreateDescribeDatabasesResponse creates a response to parse from DescribeDatabases response +func CreateDescribeDatabasesResponse() (response *DescribeDatabasesResponse) { + response = &DescribeDatabasesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_attribute.go new file mode 100644 index 0000000..c3fcebe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_attribute.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDBInstanceAttribute invokes the rds.DescribeDBInstanceAttribute API synchronously +// api document: https://help.aliyun.com/api/rds/describedbinstanceattribute.html +func (client *Client) DescribeDBInstanceAttribute(request *DescribeDBInstanceAttributeRequest) (response *DescribeDBInstanceAttributeResponse, err error) { + response = CreateDescribeDBInstanceAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDBInstanceAttributeWithChan invokes the rds.DescribeDBInstanceAttribute API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstanceattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceAttributeWithChan(request *DescribeDBInstanceAttributeRequest) (<-chan *DescribeDBInstanceAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeDBInstanceAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDBInstanceAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDBInstanceAttributeWithCallback invokes the rds.DescribeDBInstanceAttribute API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstanceattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceAttributeWithCallback(request *DescribeDBInstanceAttributeRequest, callback func(response *DescribeDBInstanceAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDBInstanceAttributeResponse + var err error + defer close(result) + response, err = client.DescribeDBInstanceAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDBInstanceAttributeRequest is the request struct for api DescribeDBInstanceAttribute +type DescribeDBInstanceAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` +} + +// DescribeDBInstanceAttributeResponse is the response struct for api DescribeDBInstanceAttribute +type DescribeDBInstanceAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Items ItemsInDescribeDBInstanceAttribute `json:"Items" xml:"Items"` +} + +// CreateDescribeDBInstanceAttributeRequest creates a request to invoke DescribeDBInstanceAttribute API +func CreateDescribeDBInstanceAttributeRequest() (request *DescribeDBInstanceAttributeRequest) { + request = &DescribeDBInstanceAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeDBInstanceAttribute", "rds", "openAPI") + return +} + +// CreateDescribeDBInstanceAttributeResponse creates a response to parse from DescribeDBInstanceAttribute response +func CreateDescribeDBInstanceAttributeResponse() (response *DescribeDBInstanceAttributeResponse) { + response = &DescribeDBInstanceAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_by_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_by_tags.go new file mode 100644 index 0000000..0585163 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_by_tags.go @@ -0,0 +1,115 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDBInstanceByTags invokes the rds.DescribeDBInstanceByTags API synchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancebytags.html +func (client *Client) DescribeDBInstanceByTags(request *DescribeDBInstanceByTagsRequest) (response *DescribeDBInstanceByTagsResponse, err error) { + response = CreateDescribeDBInstanceByTagsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDBInstanceByTagsWithChan invokes the rds.DescribeDBInstanceByTags API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancebytags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceByTagsWithChan(request *DescribeDBInstanceByTagsRequest) (<-chan *DescribeDBInstanceByTagsResponse, <-chan error) { + responseChan := make(chan *DescribeDBInstanceByTagsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDBInstanceByTags(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDBInstanceByTagsWithCallback invokes the rds.DescribeDBInstanceByTags API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancebytags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceByTagsWithCallback(request *DescribeDBInstanceByTagsRequest, callback func(response *DescribeDBInstanceByTagsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDBInstanceByTagsResponse + var err error + defer close(result) + response, err = client.DescribeDBInstanceByTags(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDBInstanceByTagsRequest is the request struct for api DescribeDBInstanceByTags +type DescribeDBInstanceByTagsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + ProxyId string `position:"Query" name:"proxyId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeDBInstanceByTagsResponse is the response struct for api DescribeDBInstanceByTags +type DescribeDBInstanceByTagsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + Items ItemsInDescribeDBInstanceByTags `json:"Items" xml:"Items"` +} + +// CreateDescribeDBInstanceByTagsRequest creates a request to invoke DescribeDBInstanceByTags API +func CreateDescribeDBInstanceByTagsRequest() (request *DescribeDBInstanceByTagsRequest) { + request = &DescribeDBInstanceByTagsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeDBInstanceByTags", "rds", "openAPI") + return +} + +// CreateDescribeDBInstanceByTagsResponse creates a response to parse from DescribeDBInstanceByTags response +func CreateDescribeDBInstanceByTagsResponse() (response *DescribeDBInstanceByTagsResponse) { + response = &DescribeDBInstanceByTagsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_extend_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_extend_attribute.go new file mode 100644 index 0000000..5b449d1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_extend_attribute.go @@ -0,0 +1,115 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDBInstanceExtendAttribute invokes the rds.DescribeDBInstanceExtendAttribute API synchronously +// api document: https://help.aliyun.com/api/rds/describedbinstanceextendattribute.html +func (client *Client) DescribeDBInstanceExtendAttribute(request *DescribeDBInstanceExtendAttributeRequest) (response *DescribeDBInstanceExtendAttributeResponse, err error) { + response = CreateDescribeDBInstanceExtendAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDBInstanceExtendAttributeWithChan invokes the rds.DescribeDBInstanceExtendAttribute API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstanceextendattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceExtendAttributeWithChan(request *DescribeDBInstanceExtendAttributeRequest) (<-chan *DescribeDBInstanceExtendAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeDBInstanceExtendAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDBInstanceExtendAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDBInstanceExtendAttributeWithCallback invokes the rds.DescribeDBInstanceExtendAttribute API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstanceextendattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceExtendAttributeWithCallback(request *DescribeDBInstanceExtendAttributeRequest, callback func(response *DescribeDBInstanceExtendAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDBInstanceExtendAttributeResponse + var err error + defer close(result) + response, err = client.DescribeDBInstanceExtendAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDBInstanceExtendAttributeRequest is the request struct for api DescribeDBInstanceExtendAttribute +type DescribeDBInstanceExtendAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` +} + +// DescribeDBInstanceExtendAttributeResponse is the response struct for api DescribeDBInstanceExtendAttribute +type DescribeDBInstanceExtendAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CanTempUpgrade bool `json:"CanTempUpgrade" xml:"CanTempUpgrade"` + TempUpgradeTimeStart string `json:"TempUpgradeTimeStart" xml:"TempUpgradeTimeStart"` + TempUpgradeTimeEnd string `json:"TempUpgradeTimeEnd" xml:"TempUpgradeTimeEnd"` + TempUpgradeRecoveryTime string `json:"TempUpgradeRecoveryTime" xml:"TempUpgradeRecoveryTime"` + TempUpgradeRecoveryClass string `json:"TempUpgradeRecoveryClass" xml:"TempUpgradeRecoveryClass"` + TempUpgradeRecoveryCpu int `json:"TempUpgradeRecoveryCpu" xml:"TempUpgradeRecoveryCpu"` + TempUpgradeRecoveryMemory int `json:"TempUpgradeRecoveryMemory" xml:"TempUpgradeRecoveryMemory"` + TempUpgradeRecoveryMaxIOPS string `json:"TempUpgradeRecoveryMaxIOPS" xml:"TempUpgradeRecoveryMaxIOPS"` + TempUpgradeRecoveryMaxConnections string `json:"TempUpgradeRecoveryMaxConnections" xml:"TempUpgradeRecoveryMaxConnections"` +} + +// CreateDescribeDBInstanceExtendAttributeRequest creates a request to invoke DescribeDBInstanceExtendAttribute API +func CreateDescribeDBInstanceExtendAttributeRequest() (request *DescribeDBInstanceExtendAttributeRequest) { + request = &DescribeDBInstanceExtendAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeDBInstanceExtendAttribute", "rds", "openAPI") + return +} + +// CreateDescribeDBInstanceExtendAttributeResponse creates a response to parse from DescribeDBInstanceExtendAttribute response +func CreateDescribeDBInstanceExtendAttributeResponse() (response *DescribeDBInstanceExtendAttributeResponse) { + response = &DescribeDBInstanceExtendAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_ha_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_ha_config.go new file mode 100644 index 0000000..63f5808 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_ha_config.go @@ -0,0 +1,111 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDBInstanceHAConfig invokes the rds.DescribeDBInstanceHAConfig API synchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancehaconfig.html +func (client *Client) DescribeDBInstanceHAConfig(request *DescribeDBInstanceHAConfigRequest) (response *DescribeDBInstanceHAConfigResponse, err error) { + response = CreateDescribeDBInstanceHAConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDBInstanceHAConfigWithChan invokes the rds.DescribeDBInstanceHAConfig API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancehaconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceHAConfigWithChan(request *DescribeDBInstanceHAConfigRequest) (<-chan *DescribeDBInstanceHAConfigResponse, <-chan error) { + responseChan := make(chan *DescribeDBInstanceHAConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDBInstanceHAConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDBInstanceHAConfigWithCallback invokes the rds.DescribeDBInstanceHAConfig API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancehaconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceHAConfigWithCallback(request *DescribeDBInstanceHAConfigRequest, callback func(response *DescribeDBInstanceHAConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDBInstanceHAConfigResponse + var err error + defer close(result) + response, err = client.DescribeDBInstanceHAConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDBInstanceHAConfigRequest is the request struct for api DescribeDBInstanceHAConfig +type DescribeDBInstanceHAConfigRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeDBInstanceHAConfigResponse is the response struct for api DescribeDBInstanceHAConfig +type DescribeDBInstanceHAConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + SyncMode string `json:"SyncMode" xml:"SyncMode"` + HAMode string `json:"HAMode" xml:"HAMode"` + HostInstanceInfos HostInstanceInfos `json:"HostInstanceInfos" xml:"HostInstanceInfos"` +} + +// CreateDescribeDBInstanceHAConfigRequest creates a request to invoke DescribeDBInstanceHAConfig API +func CreateDescribeDBInstanceHAConfigRequest() (request *DescribeDBInstanceHAConfigRequest) { + request = &DescribeDBInstanceHAConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeDBInstanceHAConfig", "rds", "openAPI") + return +} + +// CreateDescribeDBInstanceHAConfigResponse creates a response to parse from DescribeDBInstanceHAConfig response +func CreateDescribeDBInstanceHAConfigResponse() (response *DescribeDBInstanceHAConfigResponse) { + response = &DescribeDBInstanceHAConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_ip_array_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_ip_array_list.go new file mode 100644 index 0000000..7d8ec93 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_ip_array_list.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDBInstanceIPArrayList invokes the rds.DescribeDBInstanceIPArrayList API synchronously +// api document: https://help.aliyun.com/api/rds/describedbinstanceiparraylist.html +func (client *Client) DescribeDBInstanceIPArrayList(request *DescribeDBInstanceIPArrayListRequest) (response *DescribeDBInstanceIPArrayListResponse, err error) { + response = CreateDescribeDBInstanceIPArrayListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDBInstanceIPArrayListWithChan invokes the rds.DescribeDBInstanceIPArrayList API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstanceiparraylist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceIPArrayListWithChan(request *DescribeDBInstanceIPArrayListRequest) (<-chan *DescribeDBInstanceIPArrayListResponse, <-chan error) { + responseChan := make(chan *DescribeDBInstanceIPArrayListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDBInstanceIPArrayList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDBInstanceIPArrayListWithCallback invokes the rds.DescribeDBInstanceIPArrayList API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstanceiparraylist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceIPArrayListWithCallback(request *DescribeDBInstanceIPArrayListRequest, callback func(response *DescribeDBInstanceIPArrayListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDBInstanceIPArrayListResponse + var err error + defer close(result) + response, err = client.DescribeDBInstanceIPArrayList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDBInstanceIPArrayListRequest is the request struct for api DescribeDBInstanceIPArrayList +type DescribeDBInstanceIPArrayListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + WhitelistNetworkType string `position:"Query" name:"WhitelistNetworkType"` +} + +// DescribeDBInstanceIPArrayListResponse is the response struct for api DescribeDBInstanceIPArrayList +type DescribeDBInstanceIPArrayListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Items ItemsInDescribeDBInstanceIPArrayList `json:"Items" xml:"Items"` +} + +// CreateDescribeDBInstanceIPArrayListRequest creates a request to invoke DescribeDBInstanceIPArrayList API +func CreateDescribeDBInstanceIPArrayListRequest() (request *DescribeDBInstanceIPArrayListRequest) { + request = &DescribeDBInstanceIPArrayListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeDBInstanceIPArrayList", "rds", "openAPI") + return +} + +// CreateDescribeDBInstanceIPArrayListResponse creates a response to parse from DescribeDBInstanceIPArrayList response +func CreateDescribeDBInstanceIPArrayListResponse() (response *DescribeDBInstanceIPArrayListResponse) { + response = &DescribeDBInstanceIPArrayListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_monitor.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_monitor.go new file mode 100644 index 0000000..5e1b979 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_monitor.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDBInstanceMonitor invokes the rds.DescribeDBInstanceMonitor API synchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancemonitor.html +func (client *Client) DescribeDBInstanceMonitor(request *DescribeDBInstanceMonitorRequest) (response *DescribeDBInstanceMonitorResponse, err error) { + response = CreateDescribeDBInstanceMonitorResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDBInstanceMonitorWithChan invokes the rds.DescribeDBInstanceMonitor API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancemonitor.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceMonitorWithChan(request *DescribeDBInstanceMonitorRequest) (<-chan *DescribeDBInstanceMonitorResponse, <-chan error) { + responseChan := make(chan *DescribeDBInstanceMonitorResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDBInstanceMonitor(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDBInstanceMonitorWithCallback invokes the rds.DescribeDBInstanceMonitor API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancemonitor.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceMonitorWithCallback(request *DescribeDBInstanceMonitorRequest, callback func(response *DescribeDBInstanceMonitorResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDBInstanceMonitorResponse + var err error + defer close(result) + response, err = client.DescribeDBInstanceMonitor(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDBInstanceMonitorRequest is the request struct for api DescribeDBInstanceMonitor +type DescribeDBInstanceMonitorRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeDBInstanceMonitorResponse is the response struct for api DescribeDBInstanceMonitor +type DescribeDBInstanceMonitorResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Period string `json:"Period" xml:"Period"` +} + +// CreateDescribeDBInstanceMonitorRequest creates a request to invoke DescribeDBInstanceMonitor API +func CreateDescribeDBInstanceMonitorRequest() (request *DescribeDBInstanceMonitorRequest) { + request = &DescribeDBInstanceMonitorRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeDBInstanceMonitor", "rds", "openAPI") + return +} + +// CreateDescribeDBInstanceMonitorResponse creates a response to parse from DescribeDBInstanceMonitor response +func CreateDescribeDBInstanceMonitorResponse() (response *DescribeDBInstanceMonitorResponse) { + response = &DescribeDBInstanceMonitorResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_net_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_net_info.go new file mode 100644 index 0000000..221594b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_net_info.go @@ -0,0 +1,112 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDBInstanceNetInfo invokes the rds.DescribeDBInstanceNetInfo API synchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancenetinfo.html +func (client *Client) DescribeDBInstanceNetInfo(request *DescribeDBInstanceNetInfoRequest) (response *DescribeDBInstanceNetInfoResponse, err error) { + response = CreateDescribeDBInstanceNetInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDBInstanceNetInfoWithChan invokes the rds.DescribeDBInstanceNetInfo API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancenetinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceNetInfoWithChan(request *DescribeDBInstanceNetInfoRequest) (<-chan *DescribeDBInstanceNetInfoResponse, <-chan error) { + responseChan := make(chan *DescribeDBInstanceNetInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDBInstanceNetInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDBInstanceNetInfoWithCallback invokes the rds.DescribeDBInstanceNetInfo API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancenetinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceNetInfoWithCallback(request *DescribeDBInstanceNetInfoRequest, callback func(response *DescribeDBInstanceNetInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDBInstanceNetInfoResponse + var err error + defer close(result) + response, err = client.DescribeDBInstanceNetInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDBInstanceNetInfoRequest is the request struct for api DescribeDBInstanceNetInfo +type DescribeDBInstanceNetInfoRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + Flag string `position:"Query" name:"Flag"` + DBInstanceNetRWSplitType string `position:"Query" name:"DBInstanceNetRWSplitType"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeDBInstanceNetInfoResponse is the response struct for api DescribeDBInstanceNetInfo +type DescribeDBInstanceNetInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceNetworkType string `json:"InstanceNetworkType" xml:"InstanceNetworkType"` + DBInstanceNetInfos DBInstanceNetInfos `json:"DBInstanceNetInfos" xml:"DBInstanceNetInfos"` +} + +// CreateDescribeDBInstanceNetInfoRequest creates a request to invoke DescribeDBInstanceNetInfo API +func CreateDescribeDBInstanceNetInfoRequest() (request *DescribeDBInstanceNetInfoRequest) { + request = &DescribeDBInstanceNetInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeDBInstanceNetInfo", "rds", "openAPI") + return +} + +// CreateDescribeDBInstanceNetInfoResponse creates a response to parse from DescribeDBInstanceNetInfo response +func CreateDescribeDBInstanceNetInfoResponse() (response *DescribeDBInstanceNetInfoResponse) { + response = &DescribeDBInstanceNetInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_performance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_performance.go new file mode 100644 index 0000000..6c30453 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_performance.go @@ -0,0 +1,115 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDBInstancePerformance invokes the rds.DescribeDBInstancePerformance API synchronously +// api document: https://help.aliyun.com/api/rds/describedbinstanceperformance.html +func (client *Client) DescribeDBInstancePerformance(request *DescribeDBInstancePerformanceRequest) (response *DescribeDBInstancePerformanceResponse, err error) { + response = CreateDescribeDBInstancePerformanceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDBInstancePerformanceWithChan invokes the rds.DescribeDBInstancePerformance API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstanceperformance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstancePerformanceWithChan(request *DescribeDBInstancePerformanceRequest) (<-chan *DescribeDBInstancePerformanceResponse, <-chan error) { + responseChan := make(chan *DescribeDBInstancePerformanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDBInstancePerformance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDBInstancePerformanceWithCallback invokes the rds.DescribeDBInstancePerformance API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstanceperformance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstancePerformanceWithCallback(request *DescribeDBInstancePerformanceRequest, callback func(response *DescribeDBInstancePerformanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDBInstancePerformanceResponse + var err error + defer close(result) + response, err = client.DescribeDBInstancePerformance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDBInstancePerformanceRequest is the request struct for api DescribeDBInstancePerformance +type DescribeDBInstancePerformanceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + Key string `position:"Query" name:"Key"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` +} + +// DescribeDBInstancePerformanceResponse is the response struct for api DescribeDBInstancePerformance +type DescribeDBInstancePerformanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + Engine string `json:"Engine" xml:"Engine"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + PerformanceKeys PerformanceKeysInDescribeDBInstancePerformance `json:"PerformanceKeys" xml:"PerformanceKeys"` +} + +// CreateDescribeDBInstancePerformanceRequest creates a request to invoke DescribeDBInstancePerformance API +func CreateDescribeDBInstancePerformanceRequest() (request *DescribeDBInstancePerformanceRequest) { + request = &DescribeDBInstancePerformanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeDBInstancePerformance", "rds", "openAPI") + return +} + +// CreateDescribeDBInstancePerformanceResponse creates a response to parse from DescribeDBInstancePerformance response +func CreateDescribeDBInstancePerformanceResponse() (response *DescribeDBInstancePerformanceResponse) { + response = &DescribeDBInstancePerformanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_ssl.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_ssl.go new file mode 100644 index 0000000..b174f1f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_ssl.go @@ -0,0 +1,111 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDBInstanceSSL invokes the rds.DescribeDBInstanceSSL API synchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancessl.html +func (client *Client) DescribeDBInstanceSSL(request *DescribeDBInstanceSSLRequest) (response *DescribeDBInstanceSSLResponse, err error) { + response = CreateDescribeDBInstanceSSLResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDBInstanceSSLWithChan invokes the rds.DescribeDBInstanceSSL API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancessl.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceSSLWithChan(request *DescribeDBInstanceSSLRequest) (<-chan *DescribeDBInstanceSSLResponse, <-chan error) { + responseChan := make(chan *DescribeDBInstanceSSLResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDBInstanceSSL(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDBInstanceSSLWithCallback invokes the rds.DescribeDBInstanceSSL API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancessl.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceSSLWithCallback(request *DescribeDBInstanceSSLRequest, callback func(response *DescribeDBInstanceSSLResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDBInstanceSSLResponse + var err error + defer close(result) + response, err = client.DescribeDBInstanceSSL(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDBInstanceSSLRequest is the request struct for api DescribeDBInstanceSSL +type DescribeDBInstanceSSLRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeDBInstanceSSLResponse is the response struct for api DescribeDBInstanceSSL +type DescribeDBInstanceSSLResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ConnectionString string `json:"ConnectionString" xml:"ConnectionString"` + SSLExpireTime string `json:"SSLExpireTime" xml:"SSLExpireTime"` + RequireUpdate string `json:"RequireUpdate" xml:"RequireUpdate"` + RequireUpdateReason string `json:"RequireUpdateReason" xml:"RequireUpdateReason"` +} + +// CreateDescribeDBInstanceSSLRequest creates a request to invoke DescribeDBInstanceSSL API +func CreateDescribeDBInstanceSSLRequest() (request *DescribeDBInstanceSSLRequest) { + request = &DescribeDBInstanceSSLRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeDBInstanceSSL", "rds", "openAPI") + return +} + +// CreateDescribeDBInstanceSSLResponse creates a response to parse from DescribeDBInstanceSSL response +func CreateDescribeDBInstanceSSLResponse() (response *DescribeDBInstanceSSLResponse) { + response = &DescribeDBInstanceSSLResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_tde.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_tde.go new file mode 100644 index 0000000..a810f4b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_tde.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDBInstanceTDE invokes the rds.DescribeDBInstanceTDE API synchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancetde.html +func (client *Client) DescribeDBInstanceTDE(request *DescribeDBInstanceTDERequest) (response *DescribeDBInstanceTDEResponse, err error) { + response = CreateDescribeDBInstanceTDEResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDBInstanceTDEWithChan invokes the rds.DescribeDBInstanceTDE API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancetde.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceTDEWithChan(request *DescribeDBInstanceTDERequest) (<-chan *DescribeDBInstanceTDEResponse, <-chan error) { + responseChan := make(chan *DescribeDBInstanceTDEResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDBInstanceTDE(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDBInstanceTDEWithCallback invokes the rds.DescribeDBInstanceTDE API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancetde.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceTDEWithCallback(request *DescribeDBInstanceTDERequest, callback func(response *DescribeDBInstanceTDEResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDBInstanceTDEResponse + var err error + defer close(result) + response, err = client.DescribeDBInstanceTDE(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDBInstanceTDERequest is the request struct for api DescribeDBInstanceTDE +type DescribeDBInstanceTDERequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeDBInstanceTDEResponse is the response struct for api DescribeDBInstanceTDE +type DescribeDBInstanceTDEResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TDEStatus string `json:"TDEStatus" xml:"TDEStatus"` + Databases DatabasesInDescribeDBInstanceTDE `json:"Databases" xml:"Databases"` +} + +// CreateDescribeDBInstanceTDERequest creates a request to invoke DescribeDBInstanceTDE API +func CreateDescribeDBInstanceTDERequest() (request *DescribeDBInstanceTDERequest) { + request = &DescribeDBInstanceTDERequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeDBInstanceTDE", "rds", "openAPI") + return +} + +// CreateDescribeDBInstanceTDEResponse creates a response to parse from DescribeDBInstanceTDE response +func CreateDescribeDBInstanceTDEResponse() (response *DescribeDBInstanceTDEResponse) { + response = &DescribeDBInstanceTDEResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_user.go new file mode 100644 index 0000000..c47c01c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instance_user.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDBInstanceUser invokes the rds.DescribeDBInstanceUser API synchronously +// api document: https://help.aliyun.com/api/rds/describedbinstanceuser.html +func (client *Client) DescribeDBInstanceUser(request *DescribeDBInstanceUserRequest) (response *DescribeDBInstanceUserResponse, err error) { + response = CreateDescribeDBInstanceUserResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDBInstanceUserWithChan invokes the rds.DescribeDBInstanceUser API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstanceuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceUserWithChan(request *DescribeDBInstanceUserRequest) (<-chan *DescribeDBInstanceUserResponse, <-chan error) { + responseChan := make(chan *DescribeDBInstanceUserResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDBInstanceUser(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDBInstanceUserWithCallback invokes the rds.DescribeDBInstanceUser API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstanceuser.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstanceUserWithCallback(request *DescribeDBInstanceUserRequest, callback func(response *DescribeDBInstanceUserResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDBInstanceUserResponse + var err error + defer close(result) + response, err = client.DescribeDBInstanceUser(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDBInstanceUserRequest is the request struct for api DescribeDBInstanceUser +type DescribeDBInstanceUserRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + ConnectionString string `position:"Query" name:"ConnectionString"` +} + +// DescribeDBInstanceUserResponse is the response struct for api DescribeDBInstanceUser +type DescribeDBInstanceUserResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceName string `json:"DBInstanceName" xml:"DBInstanceName"` + InternalDBFlag string `json:"InternalDBFlag" xml:"InternalDBFlag"` +} + +// CreateDescribeDBInstanceUserRequest creates a request to invoke DescribeDBInstanceUser API +func CreateDescribeDBInstanceUserRequest() (request *DescribeDBInstanceUserRequest) { + request = &DescribeDBInstanceUserRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeDBInstanceUser", "rds", "openAPI") + return +} + +// CreateDescribeDBInstanceUserResponse creates a response to parse from DescribeDBInstanceUser response +func CreateDescribeDBInstanceUserResponse() (response *DescribeDBInstanceUserResponse) { + response = &DescribeDBInstanceUserResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instances.go new file mode 100644 index 0000000..1be6be5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instances.go @@ -0,0 +1,134 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDBInstances invokes the rds.DescribeDBInstances API synchronously +// api document: https://help.aliyun.com/api/rds/describedbinstances.html +func (client *Client) DescribeDBInstances(request *DescribeDBInstancesRequest) (response *DescribeDBInstancesResponse, err error) { + response = CreateDescribeDBInstancesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDBInstancesWithChan invokes the rds.DescribeDBInstances API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstancesWithChan(request *DescribeDBInstancesRequest) (<-chan *DescribeDBInstancesResponse, <-chan error) { + responseChan := make(chan *DescribeDBInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDBInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDBInstancesWithCallback invokes the rds.DescribeDBInstances API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstancesWithCallback(request *DescribeDBInstancesRequest, callback func(response *DescribeDBInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDBInstancesResponse + var err error + defer close(result) + response, err = client.DescribeDBInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDBInstancesRequest is the request struct for api DescribeDBInstances +type DescribeDBInstancesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + ProxyId string `position:"Query" name:"proxyId"` + Engine string `position:"Query" name:"Engine"` + DBInstanceStatus string `position:"Query" name:"DBInstanceStatus"` + SearchKey string `position:"Query" name:"SearchKey"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + DBInstanceType string `position:"Query" name:"DBInstanceType"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + InstanceNetworkType string `position:"Query" name:"InstanceNetworkType"` + VpcId string `position:"Query" name:"VpcId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + ConnectionMode string `position:"Query" name:"ConnectionMode"` + Tag1Key string `position:"Query" name:"Tag.1.key"` + Tag2Key string `position:"Query" name:"Tag.2.key"` + Tag3Key string `position:"Query" name:"Tag.3.key"` + Tag4Key string `position:"Query" name:"Tag.4.key"` + Tag5Key string `position:"Query" name:"Tag.5.key"` + Tag1Value string `position:"Query" name:"Tag.1.value"` + Tag2Value string `position:"Query" name:"Tag.2.value"` + Tag3Value string `position:"Query" name:"Tag.3.value"` + Tag4Value string `position:"Query" name:"Tag.4.value"` + Tag5Value string `position:"Query" name:"Tag.5.value"` + Tags string `position:"Query" name:"Tags"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeDBInstancesResponse is the response struct for api DescribeDBInstances +type DescribeDBInstancesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeDBInstances `json:"Items" xml:"Items"` +} + +// CreateDescribeDBInstancesRequest creates a request to invoke DescribeDBInstances API +func CreateDescribeDBInstancesRequest() (request *DescribeDBInstancesRequest) { + request = &DescribeDBInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeDBInstances", "rds", "openAPI") + return +} + +// CreateDescribeDBInstancesResponse creates a response to parse from DescribeDBInstances response +func CreateDescribeDBInstancesResponse() (response *DescribeDBInstancesResponse) { + response = &DescribeDBInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instances_as_csv.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instances_as_csv.go new file mode 100644 index 0000000..27f3447 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instances_as_csv.go @@ -0,0 +1,107 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDBInstancesAsCsv invokes the rds.DescribeDBInstancesAsCsv API synchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancesascsv.html +func (client *Client) DescribeDBInstancesAsCsv(request *DescribeDBInstancesAsCsvRequest) (response *DescribeDBInstancesAsCsvResponse, err error) { + response = CreateDescribeDBInstancesAsCsvResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDBInstancesAsCsvWithChan invokes the rds.DescribeDBInstancesAsCsv API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancesascsv.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstancesAsCsvWithChan(request *DescribeDBInstancesAsCsvRequest) (<-chan *DescribeDBInstancesAsCsvResponse, <-chan error) { + responseChan := make(chan *DescribeDBInstancesAsCsvResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDBInstancesAsCsv(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDBInstancesAsCsvWithCallback invokes the rds.DescribeDBInstancesAsCsv API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancesascsv.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstancesAsCsvWithCallback(request *DescribeDBInstancesAsCsvRequest, callback func(response *DescribeDBInstancesAsCsvResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDBInstancesAsCsvResponse + var err error + defer close(result) + response, err = client.DescribeDBInstancesAsCsv(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDBInstancesAsCsvRequest is the request struct for api DescribeDBInstancesAsCsv +type DescribeDBInstancesAsCsvRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` +} + +// DescribeDBInstancesAsCsvResponse is the response struct for api DescribeDBInstancesAsCsv +type DescribeDBInstancesAsCsvResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Items ItemsInDescribeDBInstancesAsCsv `json:"Items" xml:"Items"` +} + +// CreateDescribeDBInstancesAsCsvRequest creates a request to invoke DescribeDBInstancesAsCsv API +func CreateDescribeDBInstancesAsCsvRequest() (request *DescribeDBInstancesAsCsvRequest) { + request = &DescribeDBInstancesAsCsvRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeDBInstancesAsCsv", "rds", "openAPI") + return +} + +// CreateDescribeDBInstancesAsCsvResponse creates a response to parse from DescribeDBInstancesAsCsv response +func CreateDescribeDBInstancesAsCsvResponse() (response *DescribeDBInstancesAsCsvResponse) { + response = &DescribeDBInstancesAsCsvResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instances_by_expire_time.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instances_by_expire_time.go new file mode 100644 index 0000000..8b8befc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instances_by_expire_time.go @@ -0,0 +1,116 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDBInstancesByExpireTime invokes the rds.DescribeDBInstancesByExpireTime API synchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancesbyexpiretime.html +func (client *Client) DescribeDBInstancesByExpireTime(request *DescribeDBInstancesByExpireTimeRequest) (response *DescribeDBInstancesByExpireTimeResponse, err error) { + response = CreateDescribeDBInstancesByExpireTimeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDBInstancesByExpireTimeWithChan invokes the rds.DescribeDBInstancesByExpireTime API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancesbyexpiretime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstancesByExpireTimeWithChan(request *DescribeDBInstancesByExpireTimeRequest) (<-chan *DescribeDBInstancesByExpireTimeResponse, <-chan error) { + responseChan := make(chan *DescribeDBInstancesByExpireTimeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDBInstancesByExpireTime(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDBInstancesByExpireTimeWithCallback invokes the rds.DescribeDBInstancesByExpireTime API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancesbyexpiretime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstancesByExpireTimeWithCallback(request *DescribeDBInstancesByExpireTimeRequest, callback func(response *DescribeDBInstancesByExpireTimeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDBInstancesByExpireTimeResponse + var err error + defer close(result) + response, err = client.DescribeDBInstancesByExpireTime(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDBInstancesByExpireTimeRequest is the request struct for api DescribeDBInstancesByExpireTime +type DescribeDBInstancesByExpireTimeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ProxyId string `position:"Query" name:"proxyId"` + ExpirePeriod requests.Integer `position:"Query" name:"ExpirePeriod"` + Expired requests.Boolean `position:"Query" name:"Expired"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + Tags string `position:"Query" name:"Tags"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeDBInstancesByExpireTimeResponse is the response struct for api DescribeDBInstancesByExpireTime +type DescribeDBInstancesByExpireTimeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeDBInstancesByExpireTime `json:"Items" xml:"Items"` +} + +// CreateDescribeDBInstancesByExpireTimeRequest creates a request to invoke DescribeDBInstancesByExpireTime API +func CreateDescribeDBInstancesByExpireTimeRequest() (request *DescribeDBInstancesByExpireTimeRequest) { + request = &DescribeDBInstancesByExpireTimeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeDBInstancesByExpireTime", "rds", "openAPI") + return +} + +// CreateDescribeDBInstancesByExpireTimeResponse creates a response to parse from DescribeDBInstancesByExpireTime response +func CreateDescribeDBInstancesByExpireTimeResponse() (response *DescribeDBInstancesByExpireTimeResponse) { + response = &DescribeDBInstancesByExpireTimeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instances_by_performance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instances_by_performance.go new file mode 100644 index 0000000..681a5bd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_db_instances_by_performance.go @@ -0,0 +1,128 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDBInstancesByPerformance invokes the rds.DescribeDBInstancesByPerformance API synchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancesbyperformance.html +func (client *Client) DescribeDBInstancesByPerformance(request *DescribeDBInstancesByPerformanceRequest) (response *DescribeDBInstancesByPerformanceResponse, err error) { + response = CreateDescribeDBInstancesByPerformanceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDBInstancesByPerformanceWithChan invokes the rds.DescribeDBInstancesByPerformance API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancesbyperformance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstancesByPerformanceWithChan(request *DescribeDBInstancesByPerformanceRequest) (<-chan *DescribeDBInstancesByPerformanceResponse, <-chan error) { + responseChan := make(chan *DescribeDBInstancesByPerformanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDBInstancesByPerformance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDBInstancesByPerformanceWithCallback invokes the rds.DescribeDBInstancesByPerformance API asynchronously +// api document: https://help.aliyun.com/api/rds/describedbinstancesbyperformance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDBInstancesByPerformanceWithCallback(request *DescribeDBInstancesByPerformanceRequest, callback func(response *DescribeDBInstancesByPerformanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDBInstancesByPerformanceResponse + var err error + defer close(result) + response, err = client.DescribeDBInstancesByPerformance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDBInstancesByPerformanceRequest is the request struct for api DescribeDBInstancesByPerformance +type DescribeDBInstancesByPerformanceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + ProxyId string `position:"Query" name:"proxyId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + SortMethod string `position:"Query" name:"SortMethod"` + SortKey string `position:"Query" name:"SortKey"` + Tags string `position:"Query" name:"Tags"` + Tag1Key string `position:"Query" name:"Tag.1.key"` + Tag2Key string `position:"Query" name:"Tag.2.key"` + Tag3Key string `position:"Query" name:"Tag.3.key"` + Tag4Key string `position:"Query" name:"Tag.4.key"` + Tag5Key string `position:"Query" name:"Tag.5.key"` + Tag1Value string `position:"Query" name:"Tag.1.value"` + Tag2Value string `position:"Query" name:"Tag.2.value"` + Tag3Value string `position:"Query" name:"Tag.3.value"` + Tag4Value string `position:"Query" name:"Tag.4.value"` + Tag5Value string `position:"Query" name:"Tag.5.value"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeDBInstancesByPerformanceResponse is the response struct for api DescribeDBInstancesByPerformance +type DescribeDBInstancesByPerformanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeDBInstancesByPerformance `json:"Items" xml:"Items"` +} + +// CreateDescribeDBInstancesByPerformanceRequest creates a request to invoke DescribeDBInstancesByPerformance API +func CreateDescribeDBInstancesByPerformanceRequest() (request *DescribeDBInstancesByPerformanceRequest) { + request = &DescribeDBInstancesByPerformanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeDBInstancesByPerformance", "rds", "openAPI") + return +} + +// CreateDescribeDBInstancesByPerformanceResponse creates a response to parse from DescribeDBInstancesByPerformance response +func CreateDescribeDBInstancesByPerformanceResponse() (response *DescribeDBInstancesByPerformanceResponse) { + response = &DescribeDBInstancesByPerformanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_diagnostic_report_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_diagnostic_report_list.go new file mode 100644 index 0000000..8a9be4f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_diagnostic_report_list.go @@ -0,0 +1,104 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDiagnosticReportList invokes the rds.DescribeDiagnosticReportList API synchronously +// api document: https://help.aliyun.com/api/rds/describediagnosticreportlist.html +func (client *Client) DescribeDiagnosticReportList(request *DescribeDiagnosticReportListRequest) (response *DescribeDiagnosticReportListResponse, err error) { + response = CreateDescribeDiagnosticReportListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDiagnosticReportListWithChan invokes the rds.DescribeDiagnosticReportList API asynchronously +// api document: https://help.aliyun.com/api/rds/describediagnosticreportlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDiagnosticReportListWithChan(request *DescribeDiagnosticReportListRequest) (<-chan *DescribeDiagnosticReportListResponse, <-chan error) { + responseChan := make(chan *DescribeDiagnosticReportListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDiagnosticReportList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDiagnosticReportListWithCallback invokes the rds.DescribeDiagnosticReportList API asynchronously +// api document: https://help.aliyun.com/api/rds/describediagnosticreportlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeDiagnosticReportListWithCallback(request *DescribeDiagnosticReportListRequest, callback func(response *DescribeDiagnosticReportListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDiagnosticReportListResponse + var err error + defer close(result) + response, err = client.DescribeDiagnosticReportList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDiagnosticReportListRequest is the request struct for api DescribeDiagnosticReportList +type DescribeDiagnosticReportListRequest struct { + *requests.RpcRequest + DBInstanceId string `position:"Query" name:"DBInstanceId"` +} + +// DescribeDiagnosticReportListResponse is the response struct for api DescribeDiagnosticReportList +type DescribeDiagnosticReportListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ReportList []Report `json:"ReportList" xml:"ReportList"` +} + +// CreateDescribeDiagnosticReportListRequest creates a request to invoke DescribeDiagnosticReportList API +func CreateDescribeDiagnosticReportListRequest() (request *DescribeDiagnosticReportListRequest) { + request = &DescribeDiagnosticReportListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeDiagnosticReportList", "rds", "openAPI") + return +} + +// CreateDescribeDiagnosticReportListResponse creates a response to parse from DescribeDiagnosticReportList response +func CreateDescribeDiagnosticReportListResponse() (response *DescribeDiagnosticReportListResponse) { + response = &DescribeDiagnosticReportListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_error_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_error_logs.go new file mode 100644 index 0000000..e8fa9b0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_error_logs.go @@ -0,0 +1,115 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeErrorLogs invokes the rds.DescribeErrorLogs API synchronously +// api document: https://help.aliyun.com/api/rds/describeerrorlogs.html +func (client *Client) DescribeErrorLogs(request *DescribeErrorLogsRequest) (response *DescribeErrorLogsResponse, err error) { + response = CreateDescribeErrorLogsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeErrorLogsWithChan invokes the rds.DescribeErrorLogs API asynchronously +// api document: https://help.aliyun.com/api/rds/describeerrorlogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeErrorLogsWithChan(request *DescribeErrorLogsRequest) (<-chan *DescribeErrorLogsResponse, <-chan error) { + responseChan := make(chan *DescribeErrorLogsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeErrorLogs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeErrorLogsWithCallback invokes the rds.DescribeErrorLogs API asynchronously +// api document: https://help.aliyun.com/api/rds/describeerrorlogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeErrorLogsWithCallback(request *DescribeErrorLogsRequest, callback func(response *DescribeErrorLogsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeErrorLogsResponse + var err error + defer close(result) + response, err = client.DescribeErrorLogs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeErrorLogsRequest is the request struct for api DescribeErrorLogs +type DescribeErrorLogsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeErrorLogsResponse is the response struct for api DescribeErrorLogs +type DescribeErrorLogsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeErrorLogs `json:"Items" xml:"Items"` +} + +// CreateDescribeErrorLogsRequest creates a request to invoke DescribeErrorLogs API +func CreateDescribeErrorLogsRequest() (request *DescribeErrorLogsRequest) { + request = &DescribeErrorLogsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeErrorLogs", "rds", "openAPI") + return +} + +// CreateDescribeErrorLogsResponse creates a response to parse from DescribeErrorLogs response +func CreateDescribeErrorLogsResponse() (response *DescribeErrorLogsResponse) { + response = &DescribeErrorLogsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_instance_auto_renew_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_instance_auto_renew_attribute.go new file mode 100644 index 0000000..b230504 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_instance_auto_renew_attribute.go @@ -0,0 +1,115 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstanceAutoRenewAttribute invokes the rds.DescribeInstanceAutoRenewAttribute API synchronously +// api document: https://help.aliyun.com/api/rds/describeinstanceautorenewattribute.html +func (client *Client) DescribeInstanceAutoRenewAttribute(request *DescribeInstanceAutoRenewAttributeRequest) (response *DescribeInstanceAutoRenewAttributeResponse, err error) { + response = CreateDescribeInstanceAutoRenewAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstanceAutoRenewAttributeWithChan invokes the rds.DescribeInstanceAutoRenewAttribute API asynchronously +// api document: https://help.aliyun.com/api/rds/describeinstanceautorenewattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceAutoRenewAttributeWithChan(request *DescribeInstanceAutoRenewAttributeRequest) (<-chan *DescribeInstanceAutoRenewAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeInstanceAutoRenewAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstanceAutoRenewAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstanceAutoRenewAttributeWithCallback invokes the rds.DescribeInstanceAutoRenewAttribute API asynchronously +// api document: https://help.aliyun.com/api/rds/describeinstanceautorenewattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceAutoRenewAttributeWithCallback(request *DescribeInstanceAutoRenewAttributeRequest, callback func(response *DescribeInstanceAutoRenewAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstanceAutoRenewAttributeResponse + var err error + defer close(result) + response, err = client.DescribeInstanceAutoRenewAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstanceAutoRenewAttributeRequest is the request struct for api DescribeInstanceAutoRenewAttribute +type DescribeInstanceAutoRenewAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + ProxyId string `position:"Query" name:"proxyId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeInstanceAutoRenewAttributeResponse is the response struct for api DescribeInstanceAutoRenewAttribute +type DescribeInstanceAutoRenewAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeInstanceAutoRenewAttribute `json:"Items" xml:"Items"` +} + +// CreateDescribeInstanceAutoRenewAttributeRequest creates a request to invoke DescribeInstanceAutoRenewAttribute API +func CreateDescribeInstanceAutoRenewAttributeRequest() (request *DescribeInstanceAutoRenewAttributeRequest) { + request = &DescribeInstanceAutoRenewAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeInstanceAutoRenewAttribute", "rds", "openAPI") + return +} + +// CreateDescribeInstanceAutoRenewAttributeResponse creates a response to parse from DescribeInstanceAutoRenewAttribute response +func CreateDescribeInstanceAutoRenewAttributeResponse() (response *DescribeInstanceAutoRenewAttributeResponse) { + response = &DescribeInstanceAutoRenewAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_instance_auto_renewal_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_instance_auto_renewal_attribute.go new file mode 100644 index 0000000..db71f4c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_instance_auto_renewal_attribute.go @@ -0,0 +1,115 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstanceAutoRenewalAttribute invokes the rds.DescribeInstanceAutoRenewalAttribute API synchronously +// api document: https://help.aliyun.com/api/rds/describeinstanceautorenewalattribute.html +func (client *Client) DescribeInstanceAutoRenewalAttribute(request *DescribeInstanceAutoRenewalAttributeRequest) (response *DescribeInstanceAutoRenewalAttributeResponse, err error) { + response = CreateDescribeInstanceAutoRenewalAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstanceAutoRenewalAttributeWithChan invokes the rds.DescribeInstanceAutoRenewalAttribute API asynchronously +// api document: https://help.aliyun.com/api/rds/describeinstanceautorenewalattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceAutoRenewalAttributeWithChan(request *DescribeInstanceAutoRenewalAttributeRequest) (<-chan *DescribeInstanceAutoRenewalAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeInstanceAutoRenewalAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstanceAutoRenewalAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstanceAutoRenewalAttributeWithCallback invokes the rds.DescribeInstanceAutoRenewalAttribute API asynchronously +// api document: https://help.aliyun.com/api/rds/describeinstanceautorenewalattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceAutoRenewalAttributeWithCallback(request *DescribeInstanceAutoRenewalAttributeRequest, callback func(response *DescribeInstanceAutoRenewalAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstanceAutoRenewalAttributeResponse + var err error + defer close(result) + response, err = client.DescribeInstanceAutoRenewalAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstanceAutoRenewalAttributeRequest is the request struct for api DescribeInstanceAutoRenewalAttribute +type DescribeInstanceAutoRenewalAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + ProxyId string `position:"Query" name:"proxyId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeInstanceAutoRenewalAttributeResponse is the response struct for api DescribeInstanceAutoRenewalAttribute +type DescribeInstanceAutoRenewalAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeInstanceAutoRenewalAttribute `json:"Items" xml:"Items"` +} + +// CreateDescribeInstanceAutoRenewalAttributeRequest creates a request to invoke DescribeInstanceAutoRenewalAttribute API +func CreateDescribeInstanceAutoRenewalAttributeRequest() (request *DescribeInstanceAutoRenewalAttributeRequest) { + request = &DescribeInstanceAutoRenewalAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeInstanceAutoRenewalAttribute", "rds", "openAPI") + return +} + +// CreateDescribeInstanceAutoRenewalAttributeResponse creates a response to parse from DescribeInstanceAutoRenewalAttribute response +func CreateDescribeInstanceAutoRenewalAttributeResponse() (response *DescribeInstanceAutoRenewalAttributeResponse) { + response = &DescribeInstanceAutoRenewalAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_logic_db_instance_topology.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_logic_db_instance_topology.go new file mode 100644 index 0000000..5048e09 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_logic_db_instance_topology.go @@ -0,0 +1,113 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLogicDBInstanceTopology invokes the rds.DescribeLogicDBInstanceTopology API synchronously +// api document: https://help.aliyun.com/api/rds/describelogicdbinstancetopology.html +func (client *Client) DescribeLogicDBInstanceTopology(request *DescribeLogicDBInstanceTopologyRequest) (response *DescribeLogicDBInstanceTopologyResponse, err error) { + response = CreateDescribeLogicDBInstanceTopologyResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLogicDBInstanceTopologyWithChan invokes the rds.DescribeLogicDBInstanceTopology API asynchronously +// api document: https://help.aliyun.com/api/rds/describelogicdbinstancetopology.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLogicDBInstanceTopologyWithChan(request *DescribeLogicDBInstanceTopologyRequest) (<-chan *DescribeLogicDBInstanceTopologyResponse, <-chan error) { + responseChan := make(chan *DescribeLogicDBInstanceTopologyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLogicDBInstanceTopology(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLogicDBInstanceTopologyWithCallback invokes the rds.DescribeLogicDBInstanceTopology API asynchronously +// api document: https://help.aliyun.com/api/rds/describelogicdbinstancetopology.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLogicDBInstanceTopologyWithCallback(request *DescribeLogicDBInstanceTopologyRequest, callback func(response *DescribeLogicDBInstanceTopologyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLogicDBInstanceTopologyResponse + var err error + defer close(result) + response, err = client.DescribeLogicDBInstanceTopology(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLogicDBInstanceTopologyRequest is the request struct for api DescribeLogicDBInstanceTopology +type DescribeLogicDBInstanceTopologyRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` +} + +// DescribeLogicDBInstanceTopologyResponse is the response struct for api DescribeLogicDBInstanceTopology +type DescribeLogicDBInstanceTopologyResponse struct { + *responses.BaseResponse + DBInstanceId int `json:"DBInstanceId" xml:"DBInstanceId"` + DBInstanceName string `json:"DBInstanceName" xml:"DBInstanceName"` + DBInstanceStatus int `json:"DBInstanceStatus" xml:"DBInstanceStatus"` + DBInstanceStatusDesc string `json:"DBInstanceStatusDesc" xml:"DBInstanceStatusDesc"` + DBInstanceConnType string `json:"DBInstanceConnType" xml:"DBInstanceConnType"` + DBInstanceDescription string `json:"DBInstanceDescription" xml:"DBInstanceDescription"` + Engine string `json:"Engine" xml:"Engine"` + EngineVersion string `json:"EngineVersion" xml:"EngineVersion"` + Items ItemsInDescribeLogicDBInstanceTopology `json:"Items" xml:"Items"` +} + +// CreateDescribeLogicDBInstanceTopologyRequest creates a request to invoke DescribeLogicDBInstanceTopology API +func CreateDescribeLogicDBInstanceTopologyRequest() (request *DescribeLogicDBInstanceTopologyRequest) { + request = &DescribeLogicDBInstanceTopologyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeLogicDBInstanceTopology", "rds", "openAPI") + return +} + +// CreateDescribeLogicDBInstanceTopologyResponse creates a response to parse from DescribeLogicDBInstanceTopology response +func CreateDescribeLogicDBInstanceTopologyResponse() (response *DescribeLogicDBInstanceTopologyResponse) { + response = &DescribeLogicDBInstanceTopologyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_migrate_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_migrate_tasks.go new file mode 100644 index 0000000..233d287 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_migrate_tasks.go @@ -0,0 +1,115 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeMigrateTasks invokes the rds.DescribeMigrateTasks API synchronously +// api document: https://help.aliyun.com/api/rds/describemigratetasks.html +func (client *Client) DescribeMigrateTasks(request *DescribeMigrateTasksRequest) (response *DescribeMigrateTasksResponse, err error) { + response = CreateDescribeMigrateTasksResponse() + err = client.DoAction(request, response) + return +} + +// DescribeMigrateTasksWithChan invokes the rds.DescribeMigrateTasks API asynchronously +// api document: https://help.aliyun.com/api/rds/describemigratetasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMigrateTasksWithChan(request *DescribeMigrateTasksRequest) (<-chan *DescribeMigrateTasksResponse, <-chan error) { + responseChan := make(chan *DescribeMigrateTasksResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeMigrateTasks(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeMigrateTasksWithCallback invokes the rds.DescribeMigrateTasks API asynchronously +// api document: https://help.aliyun.com/api/rds/describemigratetasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMigrateTasksWithCallback(request *DescribeMigrateTasksRequest, callback func(response *DescribeMigrateTasksResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeMigrateTasksResponse + var err error + defer close(result) + response, err = client.DescribeMigrateTasks(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeMigrateTasksRequest is the request struct for api DescribeMigrateTasks +type DescribeMigrateTasksRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeMigrateTasksResponse is the response struct for api DescribeMigrateTasks +type DescribeMigrateTasksResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeMigrateTasks `json:"Items" xml:"Items"` +} + +// CreateDescribeMigrateTasksRequest creates a request to invoke DescribeMigrateTasks API +func CreateDescribeMigrateTasksRequest() (request *DescribeMigrateTasksRequest) { + request = &DescribeMigrateTasksRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeMigrateTasks", "rds", "openAPI") + return +} + +// CreateDescribeMigrateTasksResponse creates a response to parse from DescribeMigrateTasks response +func CreateDescribeMigrateTasksResponse() (response *DescribeMigrateTasksResponse) { + response = &DescribeMigrateTasksResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_migrate_tasks_for_sql_server.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_migrate_tasks_for_sql_server.go new file mode 100644 index 0000000..c04c458 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_migrate_tasks_for_sql_server.go @@ -0,0 +1,118 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeMigrateTasksForSQLServer invokes the rds.DescribeMigrateTasksForSQLServer API synchronously +// api document: https://help.aliyun.com/api/rds/describemigratetasksforsqlserver.html +func (client *Client) DescribeMigrateTasksForSQLServer(request *DescribeMigrateTasksForSQLServerRequest) (response *DescribeMigrateTasksForSQLServerResponse, err error) { + response = CreateDescribeMigrateTasksForSQLServerResponse() + err = client.DoAction(request, response) + return +} + +// DescribeMigrateTasksForSQLServerWithChan invokes the rds.DescribeMigrateTasksForSQLServer API asynchronously +// api document: https://help.aliyun.com/api/rds/describemigratetasksforsqlserver.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMigrateTasksForSQLServerWithChan(request *DescribeMigrateTasksForSQLServerRequest) (<-chan *DescribeMigrateTasksForSQLServerResponse, <-chan error) { + responseChan := make(chan *DescribeMigrateTasksForSQLServerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeMigrateTasksForSQLServer(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeMigrateTasksForSQLServerWithCallback invokes the rds.DescribeMigrateTasksForSQLServer API asynchronously +// api document: https://help.aliyun.com/api/rds/describemigratetasksforsqlserver.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMigrateTasksForSQLServerWithCallback(request *DescribeMigrateTasksForSQLServerRequest, callback func(response *DescribeMigrateTasksForSQLServerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeMigrateTasksForSQLServerResponse + var err error + defer close(result) + response, err = client.DescribeMigrateTasksForSQLServer(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeMigrateTasksForSQLServerRequest is the request struct for api DescribeMigrateTasksForSQLServer +type DescribeMigrateTasksForSQLServerRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeMigrateTasksForSQLServerResponse is the response struct for api DescribeMigrateTasksForSQLServer +type DescribeMigrateTasksForSQLServerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceID string `json:"DBInstanceID" xml:"DBInstanceID"` + DBInstanceName string `json:"DBInstanceName" xml:"DBInstanceName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeMigrateTasksForSQLServer `json:"Items" xml:"Items"` +} + +// CreateDescribeMigrateTasksForSQLServerRequest creates a request to invoke DescribeMigrateTasksForSQLServer API +func CreateDescribeMigrateTasksForSQLServerRequest() (request *DescribeMigrateTasksForSQLServerRequest) { + request = &DescribeMigrateTasksForSQLServerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeMigrateTasksForSQLServer", "rds", "openAPI") + return +} + +// CreateDescribeMigrateTasksForSQLServerResponse creates a response to parse from DescribeMigrateTasksForSQLServer response +func CreateDescribeMigrateTasksForSQLServerResponse() (response *DescribeMigrateTasksForSQLServerResponse) { + response = &DescribeMigrateTasksForSQLServerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_modify_parameter_log.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_modify_parameter_log.go new file mode 100644 index 0000000..b7c91d9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_modify_parameter_log.go @@ -0,0 +1,118 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeModifyParameterLog invokes the rds.DescribeModifyParameterLog API synchronously +// api document: https://help.aliyun.com/api/rds/describemodifyparameterlog.html +func (client *Client) DescribeModifyParameterLog(request *DescribeModifyParameterLogRequest) (response *DescribeModifyParameterLogResponse, err error) { + response = CreateDescribeModifyParameterLogResponse() + err = client.DoAction(request, response) + return +} + +// DescribeModifyParameterLogWithChan invokes the rds.DescribeModifyParameterLog API asynchronously +// api document: https://help.aliyun.com/api/rds/describemodifyparameterlog.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeModifyParameterLogWithChan(request *DescribeModifyParameterLogRequest) (<-chan *DescribeModifyParameterLogResponse, <-chan error) { + responseChan := make(chan *DescribeModifyParameterLogResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeModifyParameterLog(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeModifyParameterLogWithCallback invokes the rds.DescribeModifyParameterLog API asynchronously +// api document: https://help.aliyun.com/api/rds/describemodifyparameterlog.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeModifyParameterLogWithCallback(request *DescribeModifyParameterLogRequest, callback func(response *DescribeModifyParameterLogResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeModifyParameterLogResponse + var err error + defer close(result) + response, err = client.DescribeModifyParameterLog(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeModifyParameterLogRequest is the request struct for api DescribeModifyParameterLog +type DescribeModifyParameterLogRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeModifyParameterLogResponse is the response struct for api DescribeModifyParameterLog +type DescribeModifyParameterLogResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Engine string `json:"Engine" xml:"Engine"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + EngineVersion string `json:"EngineVersion" xml:"EngineVersion"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeModifyParameterLog `json:"Items" xml:"Items"` +} + +// CreateDescribeModifyParameterLogRequest creates a request to invoke DescribeModifyParameterLog API +func CreateDescribeModifyParameterLogRequest() (request *DescribeModifyParameterLogRequest) { + request = &DescribeModifyParameterLogRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeModifyParameterLog", "rds", "openAPI") + return +} + +// CreateDescribeModifyParameterLogResponse creates a response to parse from DescribeModifyParameterLog response +func CreateDescribeModifyParameterLogResponse() (response *DescribeModifyParameterLogResponse) { + response = &DescribeModifyParameterLogResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_operator_permission.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_operator_permission.go new file mode 100644 index 0000000..7bf1404 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_operator_permission.go @@ -0,0 +1,110 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeOperatorPermission invokes the rds.DescribeOperatorPermission API synchronously +// api document: https://help.aliyun.com/api/rds/describeoperatorpermission.html +func (client *Client) DescribeOperatorPermission(request *DescribeOperatorPermissionRequest) (response *DescribeOperatorPermissionResponse, err error) { + response = CreateDescribeOperatorPermissionResponse() + err = client.DoAction(request, response) + return +} + +// DescribeOperatorPermissionWithChan invokes the rds.DescribeOperatorPermission API asynchronously +// api document: https://help.aliyun.com/api/rds/describeoperatorpermission.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeOperatorPermissionWithChan(request *DescribeOperatorPermissionRequest) (<-chan *DescribeOperatorPermissionResponse, <-chan error) { + responseChan := make(chan *DescribeOperatorPermissionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeOperatorPermission(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeOperatorPermissionWithCallback invokes the rds.DescribeOperatorPermission API asynchronously +// api document: https://help.aliyun.com/api/rds/describeoperatorpermission.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeOperatorPermissionWithCallback(request *DescribeOperatorPermissionRequest, callback func(response *DescribeOperatorPermissionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeOperatorPermissionResponse + var err error + defer close(result) + response, err = client.DescribeOperatorPermission(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeOperatorPermissionRequest is the request struct for api DescribeOperatorPermission +type DescribeOperatorPermissionRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeOperatorPermissionResponse is the response struct for api DescribeOperatorPermission +type DescribeOperatorPermissionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Privileges string `json:"Privileges" xml:"Privileges"` + CreatedTime string `json:"CreatedTime" xml:"CreatedTime"` + ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` +} + +// CreateDescribeOperatorPermissionRequest creates a request to invoke DescribeOperatorPermission API +func CreateDescribeOperatorPermissionRequest() (request *DescribeOperatorPermissionRequest) { + request = &DescribeOperatorPermissionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeOperatorPermission", "rds", "openAPI") + return +} + +// CreateDescribeOperatorPermissionResponse creates a response to parse from DescribeOperatorPermission response +func CreateDescribeOperatorPermissionResponse() (response *DescribeOperatorPermissionResponse) { + response = &DescribeOperatorPermissionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_optimize_advice_on_big_table.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_optimize_advice_on_big_table.go new file mode 100644 index 0000000..508110d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_optimize_advice_on_big_table.go @@ -0,0 +1,113 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeOptimizeAdviceOnBigTable invokes the rds.DescribeOptimizeAdviceOnBigTable API synchronously +// api document: https://help.aliyun.com/api/rds/describeoptimizeadviceonbigtable.html +func (client *Client) DescribeOptimizeAdviceOnBigTable(request *DescribeOptimizeAdviceOnBigTableRequest) (response *DescribeOptimizeAdviceOnBigTableResponse, err error) { + response = CreateDescribeOptimizeAdviceOnBigTableResponse() + err = client.DoAction(request, response) + return +} + +// DescribeOptimizeAdviceOnBigTableWithChan invokes the rds.DescribeOptimizeAdviceOnBigTable API asynchronously +// api document: https://help.aliyun.com/api/rds/describeoptimizeadviceonbigtable.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeOptimizeAdviceOnBigTableWithChan(request *DescribeOptimizeAdviceOnBigTableRequest) (<-chan *DescribeOptimizeAdviceOnBigTableResponse, <-chan error) { + responseChan := make(chan *DescribeOptimizeAdviceOnBigTableResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeOptimizeAdviceOnBigTable(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeOptimizeAdviceOnBigTableWithCallback invokes the rds.DescribeOptimizeAdviceOnBigTable API asynchronously +// api document: https://help.aliyun.com/api/rds/describeoptimizeadviceonbigtable.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeOptimizeAdviceOnBigTableWithCallback(request *DescribeOptimizeAdviceOnBigTableRequest, callback func(response *DescribeOptimizeAdviceOnBigTableResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeOptimizeAdviceOnBigTableResponse + var err error + defer close(result) + response, err = client.DescribeOptimizeAdviceOnBigTable(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeOptimizeAdviceOnBigTableRequest is the request struct for api DescribeOptimizeAdviceOnBigTable +type DescribeOptimizeAdviceOnBigTableRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeOptimizeAdviceOnBigTableResponse is the response struct for api DescribeOptimizeAdviceOnBigTable +type DescribeOptimizeAdviceOnBigTableResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalRecordsCount int `json:"TotalRecordsCount" xml:"TotalRecordsCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeOptimizeAdviceOnBigTable `json:"Items" xml:"Items"` +} + +// CreateDescribeOptimizeAdviceOnBigTableRequest creates a request to invoke DescribeOptimizeAdviceOnBigTable API +func CreateDescribeOptimizeAdviceOnBigTableRequest() (request *DescribeOptimizeAdviceOnBigTableRequest) { + request = &DescribeOptimizeAdviceOnBigTableRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeOptimizeAdviceOnBigTable", "rds", "openAPI") + return +} + +// CreateDescribeOptimizeAdviceOnBigTableResponse creates a response to parse from DescribeOptimizeAdviceOnBigTable response +func CreateDescribeOptimizeAdviceOnBigTableResponse() (response *DescribeOptimizeAdviceOnBigTableResponse) { + response = &DescribeOptimizeAdviceOnBigTableResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_optimize_advice_on_excess_index.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_optimize_advice_on_excess_index.go new file mode 100644 index 0000000..4749ccf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_optimize_advice_on_excess_index.go @@ -0,0 +1,113 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeOptimizeAdviceOnExcessIndex invokes the rds.DescribeOptimizeAdviceOnExcessIndex API synchronously +// api document: https://help.aliyun.com/api/rds/describeoptimizeadviceonexcessindex.html +func (client *Client) DescribeOptimizeAdviceOnExcessIndex(request *DescribeOptimizeAdviceOnExcessIndexRequest) (response *DescribeOptimizeAdviceOnExcessIndexResponse, err error) { + response = CreateDescribeOptimizeAdviceOnExcessIndexResponse() + err = client.DoAction(request, response) + return +} + +// DescribeOptimizeAdviceOnExcessIndexWithChan invokes the rds.DescribeOptimizeAdviceOnExcessIndex API asynchronously +// api document: https://help.aliyun.com/api/rds/describeoptimizeadviceonexcessindex.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeOptimizeAdviceOnExcessIndexWithChan(request *DescribeOptimizeAdviceOnExcessIndexRequest) (<-chan *DescribeOptimizeAdviceOnExcessIndexResponse, <-chan error) { + responseChan := make(chan *DescribeOptimizeAdviceOnExcessIndexResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeOptimizeAdviceOnExcessIndex(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeOptimizeAdviceOnExcessIndexWithCallback invokes the rds.DescribeOptimizeAdviceOnExcessIndex API asynchronously +// api document: https://help.aliyun.com/api/rds/describeoptimizeadviceonexcessindex.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeOptimizeAdviceOnExcessIndexWithCallback(request *DescribeOptimizeAdviceOnExcessIndexRequest, callback func(response *DescribeOptimizeAdviceOnExcessIndexResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeOptimizeAdviceOnExcessIndexResponse + var err error + defer close(result) + response, err = client.DescribeOptimizeAdviceOnExcessIndex(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeOptimizeAdviceOnExcessIndexRequest is the request struct for api DescribeOptimizeAdviceOnExcessIndex +type DescribeOptimizeAdviceOnExcessIndexRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeOptimizeAdviceOnExcessIndexResponse is the response struct for api DescribeOptimizeAdviceOnExcessIndex +type DescribeOptimizeAdviceOnExcessIndexResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalRecordsCount int `json:"TotalRecordsCount" xml:"TotalRecordsCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeOptimizeAdviceOnExcessIndex `json:"Items" xml:"Items"` +} + +// CreateDescribeOptimizeAdviceOnExcessIndexRequest creates a request to invoke DescribeOptimizeAdviceOnExcessIndex API +func CreateDescribeOptimizeAdviceOnExcessIndexRequest() (request *DescribeOptimizeAdviceOnExcessIndexRequest) { + request = &DescribeOptimizeAdviceOnExcessIndexRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeOptimizeAdviceOnExcessIndex", "rds", "openAPI") + return +} + +// CreateDescribeOptimizeAdviceOnExcessIndexResponse creates a response to parse from DescribeOptimizeAdviceOnExcessIndex response +func CreateDescribeOptimizeAdviceOnExcessIndexResponse() (response *DescribeOptimizeAdviceOnExcessIndexResponse) { + response = &DescribeOptimizeAdviceOnExcessIndexResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_optimize_advice_on_miss_index.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_optimize_advice_on_miss_index.go new file mode 100644 index 0000000..6a5ea09 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_optimize_advice_on_miss_index.go @@ -0,0 +1,114 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeOptimizeAdviceOnMissIndex invokes the rds.DescribeOptimizeAdviceOnMissIndex API synchronously +// api document: https://help.aliyun.com/api/rds/describeoptimizeadviceonmissindex.html +func (client *Client) DescribeOptimizeAdviceOnMissIndex(request *DescribeOptimizeAdviceOnMissIndexRequest) (response *DescribeOptimizeAdviceOnMissIndexResponse, err error) { + response = CreateDescribeOptimizeAdviceOnMissIndexResponse() + err = client.DoAction(request, response) + return +} + +// DescribeOptimizeAdviceOnMissIndexWithChan invokes the rds.DescribeOptimizeAdviceOnMissIndex API asynchronously +// api document: https://help.aliyun.com/api/rds/describeoptimizeadviceonmissindex.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeOptimizeAdviceOnMissIndexWithChan(request *DescribeOptimizeAdviceOnMissIndexRequest) (<-chan *DescribeOptimizeAdviceOnMissIndexResponse, <-chan error) { + responseChan := make(chan *DescribeOptimizeAdviceOnMissIndexResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeOptimizeAdviceOnMissIndex(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeOptimizeAdviceOnMissIndexWithCallback invokes the rds.DescribeOptimizeAdviceOnMissIndex API asynchronously +// api document: https://help.aliyun.com/api/rds/describeoptimizeadviceonmissindex.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeOptimizeAdviceOnMissIndexWithCallback(request *DescribeOptimizeAdviceOnMissIndexRequest, callback func(response *DescribeOptimizeAdviceOnMissIndexResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeOptimizeAdviceOnMissIndexResponse + var err error + defer close(result) + response, err = client.DescribeOptimizeAdviceOnMissIndex(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeOptimizeAdviceOnMissIndexRequest is the request struct for api DescribeOptimizeAdviceOnMissIndex +type DescribeOptimizeAdviceOnMissIndexRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeOptimizeAdviceOnMissIndexResponse is the response struct for api DescribeOptimizeAdviceOnMissIndex +type DescribeOptimizeAdviceOnMissIndexResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + TotalRecordsCount int `json:"TotalRecordsCount" xml:"TotalRecordsCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeOptimizeAdviceOnMissIndex `json:"Items" xml:"Items"` +} + +// CreateDescribeOptimizeAdviceOnMissIndexRequest creates a request to invoke DescribeOptimizeAdviceOnMissIndex API +func CreateDescribeOptimizeAdviceOnMissIndexRequest() (request *DescribeOptimizeAdviceOnMissIndexRequest) { + request = &DescribeOptimizeAdviceOnMissIndexRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeOptimizeAdviceOnMissIndex", "rds", "openAPI") + return +} + +// CreateDescribeOptimizeAdviceOnMissIndexResponse creates a response to parse from DescribeOptimizeAdviceOnMissIndex response +func CreateDescribeOptimizeAdviceOnMissIndexResponse() (response *DescribeOptimizeAdviceOnMissIndexResponse) { + response = &DescribeOptimizeAdviceOnMissIndexResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_optimize_advice_on_miss_pk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_optimize_advice_on_miss_pk.go new file mode 100644 index 0000000..a9b2ffc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_optimize_advice_on_miss_pk.go @@ -0,0 +1,113 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeOptimizeAdviceOnMissPK invokes the rds.DescribeOptimizeAdviceOnMissPK API synchronously +// api document: https://help.aliyun.com/api/rds/describeoptimizeadviceonmisspk.html +func (client *Client) DescribeOptimizeAdviceOnMissPK(request *DescribeOptimizeAdviceOnMissPKRequest) (response *DescribeOptimizeAdviceOnMissPKResponse, err error) { + response = CreateDescribeOptimizeAdviceOnMissPKResponse() + err = client.DoAction(request, response) + return +} + +// DescribeOptimizeAdviceOnMissPKWithChan invokes the rds.DescribeOptimizeAdviceOnMissPK API asynchronously +// api document: https://help.aliyun.com/api/rds/describeoptimizeadviceonmisspk.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeOptimizeAdviceOnMissPKWithChan(request *DescribeOptimizeAdviceOnMissPKRequest) (<-chan *DescribeOptimizeAdviceOnMissPKResponse, <-chan error) { + responseChan := make(chan *DescribeOptimizeAdviceOnMissPKResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeOptimizeAdviceOnMissPK(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeOptimizeAdviceOnMissPKWithCallback invokes the rds.DescribeOptimizeAdviceOnMissPK API asynchronously +// api document: https://help.aliyun.com/api/rds/describeoptimizeadviceonmisspk.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeOptimizeAdviceOnMissPKWithCallback(request *DescribeOptimizeAdviceOnMissPKRequest, callback func(response *DescribeOptimizeAdviceOnMissPKResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeOptimizeAdviceOnMissPKResponse + var err error + defer close(result) + response, err = client.DescribeOptimizeAdviceOnMissPK(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeOptimizeAdviceOnMissPKRequest is the request struct for api DescribeOptimizeAdviceOnMissPK +type DescribeOptimizeAdviceOnMissPKRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeOptimizeAdviceOnMissPKResponse is the response struct for api DescribeOptimizeAdviceOnMissPK +type DescribeOptimizeAdviceOnMissPKResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalRecordsCount int `json:"TotalRecordsCount" xml:"TotalRecordsCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeOptimizeAdviceOnMissPK `json:"Items" xml:"Items"` +} + +// CreateDescribeOptimizeAdviceOnMissPKRequest creates a request to invoke DescribeOptimizeAdviceOnMissPK API +func CreateDescribeOptimizeAdviceOnMissPKRequest() (request *DescribeOptimizeAdviceOnMissPKRequest) { + request = &DescribeOptimizeAdviceOnMissPKRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeOptimizeAdviceOnMissPK", "rds", "openAPI") + return +} + +// CreateDescribeOptimizeAdviceOnMissPKResponse creates a response to parse from DescribeOptimizeAdviceOnMissPK response +func CreateDescribeOptimizeAdviceOnMissPKResponse() (response *DescribeOptimizeAdviceOnMissPKResponse) { + response = &DescribeOptimizeAdviceOnMissPKResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_optimize_advice_on_storage.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_optimize_advice_on_storage.go new file mode 100644 index 0000000..deb00e9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_optimize_advice_on_storage.go @@ -0,0 +1,114 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeOptimizeAdviceOnStorage invokes the rds.DescribeOptimizeAdviceOnStorage API synchronously +// api document: https://help.aliyun.com/api/rds/describeoptimizeadviceonstorage.html +func (client *Client) DescribeOptimizeAdviceOnStorage(request *DescribeOptimizeAdviceOnStorageRequest) (response *DescribeOptimizeAdviceOnStorageResponse, err error) { + response = CreateDescribeOptimizeAdviceOnStorageResponse() + err = client.DoAction(request, response) + return +} + +// DescribeOptimizeAdviceOnStorageWithChan invokes the rds.DescribeOptimizeAdviceOnStorage API asynchronously +// api document: https://help.aliyun.com/api/rds/describeoptimizeadviceonstorage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeOptimizeAdviceOnStorageWithChan(request *DescribeOptimizeAdviceOnStorageRequest) (<-chan *DescribeOptimizeAdviceOnStorageResponse, <-chan error) { + responseChan := make(chan *DescribeOptimizeAdviceOnStorageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeOptimizeAdviceOnStorage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeOptimizeAdviceOnStorageWithCallback invokes the rds.DescribeOptimizeAdviceOnStorage API asynchronously +// api document: https://help.aliyun.com/api/rds/describeoptimizeadviceonstorage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeOptimizeAdviceOnStorageWithCallback(request *DescribeOptimizeAdviceOnStorageRequest, callback func(response *DescribeOptimizeAdviceOnStorageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeOptimizeAdviceOnStorageResponse + var err error + defer close(result) + response, err = client.DescribeOptimizeAdviceOnStorage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeOptimizeAdviceOnStorageRequest is the request struct for api DescribeOptimizeAdviceOnStorage +type DescribeOptimizeAdviceOnStorageRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeOptimizeAdviceOnStorageResponse is the response struct for api DescribeOptimizeAdviceOnStorage +type DescribeOptimizeAdviceOnStorageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + TotalRecordsCount int `json:"TotalRecordsCount" xml:"TotalRecordsCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeOptimizeAdviceOnStorage `json:"Items" xml:"Items"` +} + +// CreateDescribeOptimizeAdviceOnStorageRequest creates a request to invoke DescribeOptimizeAdviceOnStorage API +func CreateDescribeOptimizeAdviceOnStorageRequest() (request *DescribeOptimizeAdviceOnStorageRequest) { + request = &DescribeOptimizeAdviceOnStorageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeOptimizeAdviceOnStorage", "rds", "openAPI") + return +} + +// CreateDescribeOptimizeAdviceOnStorageResponse creates a response to parse from DescribeOptimizeAdviceOnStorage response +func CreateDescribeOptimizeAdviceOnStorageResponse() (response *DescribeOptimizeAdviceOnStorageResponse) { + response = &DescribeOptimizeAdviceOnStorageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_oss_downloads.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_oss_downloads.go new file mode 100644 index 0000000..352559f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_oss_downloads.go @@ -0,0 +1,110 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeOssDownloads invokes the rds.DescribeOssDownloads API synchronously +// api document: https://help.aliyun.com/api/rds/describeossdownloads.html +func (client *Client) DescribeOssDownloads(request *DescribeOssDownloadsRequest) (response *DescribeOssDownloadsResponse, err error) { + response = CreateDescribeOssDownloadsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeOssDownloadsWithChan invokes the rds.DescribeOssDownloads API asynchronously +// api document: https://help.aliyun.com/api/rds/describeossdownloads.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeOssDownloadsWithChan(request *DescribeOssDownloadsRequest) (<-chan *DescribeOssDownloadsResponse, <-chan error) { + responseChan := make(chan *DescribeOssDownloadsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeOssDownloads(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeOssDownloadsWithCallback invokes the rds.DescribeOssDownloads API asynchronously +// api document: https://help.aliyun.com/api/rds/describeossdownloads.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeOssDownloadsWithCallback(request *DescribeOssDownloadsRequest, callback func(response *DescribeOssDownloadsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeOssDownloadsResponse + var err error + defer close(result) + response, err = client.DescribeOssDownloads(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeOssDownloadsRequest is the request struct for api DescribeOssDownloads +type DescribeOssDownloadsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + MigrateTaskId string `position:"Query" name:"MigrateTaskId"` +} + +// DescribeOssDownloadsResponse is the response struct for api DescribeOssDownloads +type DescribeOssDownloadsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + MigrateTaskId string `json:"MigrateTaskId" xml:"MigrateTaskId"` + Items ItemsInDescribeOssDownloads `json:"Items" xml:"Items"` +} + +// CreateDescribeOssDownloadsRequest creates a request to invoke DescribeOssDownloads API +func CreateDescribeOssDownloadsRequest() (request *DescribeOssDownloadsRequest) { + request = &DescribeOssDownloadsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeOssDownloads", "rds", "openAPI") + return +} + +// CreateDescribeOssDownloadsResponse creates a response to parse from DescribeOssDownloads response +func CreateDescribeOssDownloadsResponse() (response *DescribeOssDownloadsResponse) { + response = &DescribeOssDownloadsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_oss_downloads_for_sql_server.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_oss_downloads_for_sql_server.go new file mode 100644 index 0000000..f99058a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_oss_downloads_for_sql_server.go @@ -0,0 +1,110 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeOssDownloadsForSQLServer invokes the rds.DescribeOssDownloadsForSQLServer API synchronously +// api document: https://help.aliyun.com/api/rds/describeossdownloadsforsqlserver.html +func (client *Client) DescribeOssDownloadsForSQLServer(request *DescribeOssDownloadsForSQLServerRequest) (response *DescribeOssDownloadsForSQLServerResponse, err error) { + response = CreateDescribeOssDownloadsForSQLServerResponse() + err = client.DoAction(request, response) + return +} + +// DescribeOssDownloadsForSQLServerWithChan invokes the rds.DescribeOssDownloadsForSQLServer API asynchronously +// api document: https://help.aliyun.com/api/rds/describeossdownloadsforsqlserver.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeOssDownloadsForSQLServerWithChan(request *DescribeOssDownloadsForSQLServerRequest) (<-chan *DescribeOssDownloadsForSQLServerResponse, <-chan error) { + responseChan := make(chan *DescribeOssDownloadsForSQLServerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeOssDownloadsForSQLServer(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeOssDownloadsForSQLServerWithCallback invokes the rds.DescribeOssDownloadsForSQLServer API asynchronously +// api document: https://help.aliyun.com/api/rds/describeossdownloadsforsqlserver.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeOssDownloadsForSQLServerWithCallback(request *DescribeOssDownloadsForSQLServerRequest, callback func(response *DescribeOssDownloadsForSQLServerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeOssDownloadsForSQLServerResponse + var err error + defer close(result) + response, err = client.DescribeOssDownloadsForSQLServer(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeOssDownloadsForSQLServerRequest is the request struct for api DescribeOssDownloadsForSQLServer +type DescribeOssDownloadsForSQLServerRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + MigrateTaskId string `position:"Query" name:"MigrateTaskId"` +} + +// DescribeOssDownloadsForSQLServerResponse is the response struct for api DescribeOssDownloadsForSQLServer +type DescribeOssDownloadsForSQLServerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceName string `json:"DBInstanceName" xml:"DBInstanceName"` + MigrateIaskId string `json:"MigrateIaskId" xml:"MigrateIaskId"` + Items ItemsInDescribeOssDownloadsForSQLServer `json:"Items" xml:"Items"` +} + +// CreateDescribeOssDownloadsForSQLServerRequest creates a request to invoke DescribeOssDownloadsForSQLServer API +func CreateDescribeOssDownloadsForSQLServerRequest() (request *DescribeOssDownloadsForSQLServerRequest) { + request = &DescribeOssDownloadsForSQLServerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeOssDownloadsForSQLServer", "rds", "openAPI") + return +} + +// CreateDescribeOssDownloadsForSQLServerResponse creates a response to parse from DescribeOssDownloadsForSQLServer response +func CreateDescribeOssDownloadsForSQLServerResponse() (response *DescribeOssDownloadsForSQLServerResponse) { + response = &DescribeOssDownloadsForSQLServerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_parameter_templates.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_parameter_templates.go new file mode 100644 index 0000000..3f67a53 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_parameter_templates.go @@ -0,0 +1,113 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeParameterTemplates invokes the rds.DescribeParameterTemplates API synchronously +// api document: https://help.aliyun.com/api/rds/describeparametertemplates.html +func (client *Client) DescribeParameterTemplates(request *DescribeParameterTemplatesRequest) (response *DescribeParameterTemplatesResponse, err error) { + response = CreateDescribeParameterTemplatesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeParameterTemplatesWithChan invokes the rds.DescribeParameterTemplates API asynchronously +// api document: https://help.aliyun.com/api/rds/describeparametertemplates.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeParameterTemplatesWithChan(request *DescribeParameterTemplatesRequest) (<-chan *DescribeParameterTemplatesResponse, <-chan error) { + responseChan := make(chan *DescribeParameterTemplatesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeParameterTemplates(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeParameterTemplatesWithCallback invokes the rds.DescribeParameterTemplates API asynchronously +// api document: https://help.aliyun.com/api/rds/describeparametertemplates.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeParameterTemplatesWithCallback(request *DescribeParameterTemplatesRequest, callback func(response *DescribeParameterTemplatesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeParameterTemplatesResponse + var err error + defer close(result) + response, err = client.DescribeParameterTemplates(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeParameterTemplatesRequest is the request struct for api DescribeParameterTemplates +type DescribeParameterTemplatesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + Engine string `position:"Query" name:"Engine"` + EngineVersion string `position:"Query" name:"EngineVersion"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeParameterTemplatesResponse is the response struct for api DescribeParameterTemplates +type DescribeParameterTemplatesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Engine string `json:"Engine" xml:"Engine"` + EngineVersion string `json:"EngineVersion" xml:"EngineVersion"` + ParameterCount string `json:"ParameterCount" xml:"ParameterCount"` + Parameters Parameters `json:"Parameters" xml:"Parameters"` +} + +// CreateDescribeParameterTemplatesRequest creates a request to invoke DescribeParameterTemplates API +func CreateDescribeParameterTemplatesRequest() (request *DescribeParameterTemplatesRequest) { + request = &DescribeParameterTemplatesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeParameterTemplates", "rds", "openAPI") + return +} + +// CreateDescribeParameterTemplatesResponse creates a response to parse from DescribeParameterTemplates response +func CreateDescribeParameterTemplatesResponse() (response *DescribeParameterTemplatesResponse) { + response = &DescribeParameterTemplatesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_parameters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_parameters.go new file mode 100644 index 0000000..05d9e09 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_parameters.go @@ -0,0 +1,112 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeParameters invokes the rds.DescribeParameters API synchronously +// api document: https://help.aliyun.com/api/rds/describeparameters.html +func (client *Client) DescribeParameters(request *DescribeParametersRequest) (response *DescribeParametersResponse, err error) { + response = CreateDescribeParametersResponse() + err = client.DoAction(request, response) + return +} + +// DescribeParametersWithChan invokes the rds.DescribeParameters API asynchronously +// api document: https://help.aliyun.com/api/rds/describeparameters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeParametersWithChan(request *DescribeParametersRequest) (<-chan *DescribeParametersResponse, <-chan error) { + responseChan := make(chan *DescribeParametersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeParameters(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeParametersWithCallback invokes the rds.DescribeParameters API asynchronously +// api document: https://help.aliyun.com/api/rds/describeparameters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeParametersWithCallback(request *DescribeParametersRequest, callback func(response *DescribeParametersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeParametersResponse + var err error + defer close(result) + response, err = client.DescribeParameters(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeParametersRequest is the request struct for api DescribeParameters +type DescribeParametersRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeParametersResponse is the response struct for api DescribeParameters +type DescribeParametersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Engine string `json:"Engine" xml:"Engine"` + EngineVersion string `json:"EngineVersion" xml:"EngineVersion"` + ConfigParameters ConfigParameters `json:"ConfigParameters" xml:"ConfigParameters"` + RunningParameters RunningParameters `json:"RunningParameters" xml:"RunningParameters"` +} + +// CreateDescribeParametersRequest creates a request to invoke DescribeParameters API +func CreateDescribeParametersRequest() (request *DescribeParametersRequest) { + request = &DescribeParametersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeParameters", "rds", "openAPI") + return +} + +// CreateDescribeParametersResponse creates a response to parse from DescribeParameters response +func CreateDescribeParametersResponse() (response *DescribeParametersResponse) { + response = &DescribeParametersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_pre_check_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_pre_check_results.go new file mode 100644 index 0000000..a7ec871 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_pre_check_results.go @@ -0,0 +1,111 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribePreCheckResults invokes the rds.DescribePreCheckResults API synchronously +// api document: https://help.aliyun.com/api/rds/describeprecheckresults.html +func (client *Client) DescribePreCheckResults(request *DescribePreCheckResultsRequest) (response *DescribePreCheckResultsResponse, err error) { + response = CreateDescribePreCheckResultsResponse() + err = client.DoAction(request, response) + return +} + +// DescribePreCheckResultsWithChan invokes the rds.DescribePreCheckResults API asynchronously +// api document: https://help.aliyun.com/api/rds/describeprecheckresults.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePreCheckResultsWithChan(request *DescribePreCheckResultsRequest) (<-chan *DescribePreCheckResultsResponse, <-chan error) { + responseChan := make(chan *DescribePreCheckResultsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribePreCheckResults(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribePreCheckResultsWithCallback invokes the rds.DescribePreCheckResults API asynchronously +// api document: https://help.aliyun.com/api/rds/describeprecheckresults.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePreCheckResultsWithCallback(request *DescribePreCheckResultsRequest, callback func(response *DescribePreCheckResultsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribePreCheckResultsResponse + var err error + defer close(result) + response, err = client.DescribePreCheckResults(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribePreCheckResultsRequest is the request struct for api DescribePreCheckResults +type DescribePreCheckResultsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + PreCheckId string `position:"Query" name:"PreCheckId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribePreCheckResultsResponse is the response struct for api DescribePreCheckResults +type DescribePreCheckResultsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + Items ItemsInDescribePreCheckResults `json:"Items" xml:"Items"` +} + +// CreateDescribePreCheckResultsRequest creates a request to invoke DescribePreCheckResults API +func CreateDescribePreCheckResultsRequest() (request *DescribePreCheckResultsRequest) { + request = &DescribePreCheckResultsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribePreCheckResults", "rds", "openAPI") + return +} + +// CreateDescribePreCheckResultsResponse creates a response to parse from DescribePreCheckResults response +func CreateDescribePreCheckResultsResponse() (response *DescribePreCheckResultsResponse) { + response = &DescribePreCheckResultsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_price.go new file mode 100644 index 0000000..d9ea07e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_price.go @@ -0,0 +1,121 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribePrice invokes the rds.DescribePrice API synchronously +// api document: https://help.aliyun.com/api/rds/describeprice.html +func (client *Client) DescribePrice(request *DescribePriceRequest) (response *DescribePriceResponse, err error) { + response = CreateDescribePriceResponse() + err = client.DoAction(request, response) + return +} + +// DescribePriceWithChan invokes the rds.DescribePrice API asynchronously +// api document: https://help.aliyun.com/api/rds/describeprice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePriceWithChan(request *DescribePriceRequest) (<-chan *DescribePriceResponse, <-chan error) { + responseChan := make(chan *DescribePriceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribePrice(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribePriceWithCallback invokes the rds.DescribePrice API asynchronously +// api document: https://help.aliyun.com/api/rds/describeprice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePriceWithCallback(request *DescribePriceRequest, callback func(response *DescribePriceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribePriceResponse + var err error + defer close(result) + response, err = client.DescribePrice(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribePriceRequest is the request struct for api DescribePrice +type DescribePriceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + CommodityCode string `position:"Query" name:"CommodityCode"` + Engine string `position:"Query" name:"Engine"` + EngineVersion string `position:"Query" name:"EngineVersion"` + DBInstanceClass string `position:"Query" name:"DBInstanceClass"` + DBInstanceStorage requests.Integer `position:"Query" name:"DBInstanceStorage"` + PayType string `position:"Query" name:"PayType"` + ZoneId string `position:"Query" name:"ZoneId"` + UsedTime string `position:"Query" name:"UsedTime"` + TimeType string `position:"Query" name:"TimeType"` + Quantity requests.Integer `position:"Query" name:"Quantity"` + InstanceUsedType requests.Integer `position:"Query" name:"InstanceUsedType"` + OrderType string `position:"Query" name:"OrderType"` +} + +// DescribePriceResponse is the response struct for api DescribePrice +type DescribePriceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PriceInfo PriceInfo `json:"PriceInfo" xml:"PriceInfo"` + Rules RulesInDescribePrice `json:"Rules" xml:"Rules"` +} + +// CreateDescribePriceRequest creates a request to invoke DescribePrice API +func CreateDescribePriceRequest() (request *DescribePriceRequest) { + request = &DescribePriceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribePrice", "rds", "openAPI") + return +} + +// CreateDescribePriceResponse creates a response to parse from DescribePrice response +func CreateDescribePriceResponse() (response *DescribePriceResponse) { + response = &DescribePriceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_realtime_diagnoses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_realtime_diagnoses.go new file mode 100644 index 0000000..a9d60be --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_realtime_diagnoses.go @@ -0,0 +1,116 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRealtimeDiagnoses invokes the rds.DescribeRealtimeDiagnoses API synchronously +// api document: https://help.aliyun.com/api/rds/describerealtimediagnoses.html +func (client *Client) DescribeRealtimeDiagnoses(request *DescribeRealtimeDiagnosesRequest) (response *DescribeRealtimeDiagnosesResponse, err error) { + response = CreateDescribeRealtimeDiagnosesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRealtimeDiagnosesWithChan invokes the rds.DescribeRealtimeDiagnoses API asynchronously +// api document: https://help.aliyun.com/api/rds/describerealtimediagnoses.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRealtimeDiagnosesWithChan(request *DescribeRealtimeDiagnosesRequest) (<-chan *DescribeRealtimeDiagnosesResponse, <-chan error) { + responseChan := make(chan *DescribeRealtimeDiagnosesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRealtimeDiagnoses(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRealtimeDiagnosesWithCallback invokes the rds.DescribeRealtimeDiagnoses API asynchronously +// api document: https://help.aliyun.com/api/rds/describerealtimediagnoses.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRealtimeDiagnosesWithCallback(request *DescribeRealtimeDiagnosesRequest, callback func(response *DescribeRealtimeDiagnosesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRealtimeDiagnosesResponse + var err error + defer close(result) + response, err = client.DescribeRealtimeDiagnoses(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRealtimeDiagnosesRequest is the request struct for api DescribeRealtimeDiagnoses +type DescribeRealtimeDiagnosesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeRealtimeDiagnosesResponse is the response struct for api DescribeRealtimeDiagnoses +type DescribeRealtimeDiagnosesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Engine string `json:"Engine" xml:"Engine"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Tasks Tasks `json:"Tasks" xml:"Tasks"` +} + +// CreateDescribeRealtimeDiagnosesRequest creates a request to invoke DescribeRealtimeDiagnoses API +func CreateDescribeRealtimeDiagnosesRequest() (request *DescribeRealtimeDiagnosesRequest) { + request = &DescribeRealtimeDiagnosesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeRealtimeDiagnoses", "rds", "openAPI") + return +} + +// CreateDescribeRealtimeDiagnosesResponse creates a response to parse from DescribeRealtimeDiagnoses response +func CreateDescribeRealtimeDiagnosesResponse() (response *DescribeRealtimeDiagnosesResponse) { + response = &DescribeRealtimeDiagnosesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_regions.go new file mode 100644 index 0000000..a795c9d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_regions.go @@ -0,0 +1,108 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 rds.DescribeRegions API synchronously +// api document: https://help.aliyun.com/api/rds/describeregions.html +func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) { + response = CreateDescribeRegionsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRegionsWithChan invokes the rds.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/rds/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 rds.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/rds/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// 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("Rds", "2014-08-15", "DescribeRegions", "rds", "openAPI") + 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/rds/describe_renewal_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_renewal_price.go new file mode 100644 index 0000000..63ab7c5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_renewal_price.go @@ -0,0 +1,119 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRenewalPrice invokes the rds.DescribeRenewalPrice API synchronously +// api document: https://help.aliyun.com/api/rds/describerenewalprice.html +func (client *Client) DescribeRenewalPrice(request *DescribeRenewalPriceRequest) (response *DescribeRenewalPriceResponse, err error) { + response = CreateDescribeRenewalPriceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRenewalPriceWithChan invokes the rds.DescribeRenewalPrice API asynchronously +// api document: https://help.aliyun.com/api/rds/describerenewalprice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRenewalPriceWithChan(request *DescribeRenewalPriceRequest) (<-chan *DescribeRenewalPriceResponse, <-chan error) { + responseChan := make(chan *DescribeRenewalPriceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRenewalPrice(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRenewalPriceWithCallback invokes the rds.DescribeRenewalPrice API asynchronously +// api document: https://help.aliyun.com/api/rds/describerenewalprice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRenewalPriceWithCallback(request *DescribeRenewalPriceRequest, callback func(response *DescribeRenewalPriceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRenewalPriceResponse + var err error + defer close(result) + response, err = client.DescribeRenewalPrice(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRenewalPriceRequest is the request struct for api DescribeRenewalPrice +type DescribeRenewalPriceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + CommodityCode string `position:"Query" name:"CommodityCode"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + PayType string `position:"Query" name:"PayType"` + DBInstanceClass string `position:"Query" name:"DBInstanceClass"` + UsedTime string `position:"Query" name:"UsedTime"` + TimeType string `position:"Query" name:"TimeType"` + Quantity requests.Integer `position:"Query" name:"Quantity"` + OrderType string `position:"Query" name:"OrderType"` + PromotionCode string `position:"Query" name:"PromotionCode"` + BusinessInfo string `position:"Query" name:"BusinessInfo"` +} + +// DescribeRenewalPriceResponse is the response struct for api DescribeRenewalPrice +type DescribeRenewalPriceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PriceInfo PriceInfo `json:"PriceInfo" xml:"PriceInfo"` + Rules RulesInDescribeRenewalPrice `json:"Rules" xml:"Rules"` +} + +// CreateDescribeRenewalPriceRequest creates a request to invoke DescribeRenewalPrice API +func CreateDescribeRenewalPriceRequest() (request *DescribeRenewalPriceRequest) { + request = &DescribeRenewalPriceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeRenewalPrice", "rds", "openAPI") + return +} + +// CreateDescribeRenewalPriceResponse creates a response to parse from DescribeRenewalPrice response +func CreateDescribeRenewalPriceResponse() (response *DescribeRenewalPriceResponse) { + response = &DescribeRenewalPriceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_replica_conflict_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_replica_conflict_info.go new file mode 100644 index 0000000..671bedc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_replica_conflict_info.go @@ -0,0 +1,117 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeReplicaConflictInfo invokes the rds.DescribeReplicaConflictInfo API synchronously +// api document: https://help.aliyun.com/api/rds/describereplicaconflictinfo.html +func (client *Client) DescribeReplicaConflictInfo(request *DescribeReplicaConflictInfoRequest) (response *DescribeReplicaConflictInfoResponse, err error) { + response = CreateDescribeReplicaConflictInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeReplicaConflictInfoWithChan invokes the rds.DescribeReplicaConflictInfo API asynchronously +// api document: https://help.aliyun.com/api/rds/describereplicaconflictinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReplicaConflictInfoWithChan(request *DescribeReplicaConflictInfoRequest) (<-chan *DescribeReplicaConflictInfoResponse, <-chan error) { + responseChan := make(chan *DescribeReplicaConflictInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeReplicaConflictInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeReplicaConflictInfoWithCallback invokes the rds.DescribeReplicaConflictInfo API asynchronously +// api document: https://help.aliyun.com/api/rds/describereplicaconflictinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReplicaConflictInfoWithCallback(request *DescribeReplicaConflictInfoRequest, callback func(response *DescribeReplicaConflictInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeReplicaConflictInfoResponse + var err error + defer close(result) + response, err = client.DescribeReplicaConflictInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeReplicaConflictInfoRequest is the request struct for api DescribeReplicaConflictInfo +type DescribeReplicaConflictInfoRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeReplicaConflictInfoResponse is the response struct for api DescribeReplicaConflictInfo +type DescribeReplicaConflictInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ReplicaId string `json:"ReplicaId" xml:"ReplicaId"` + PagNumber int `json:"PagNumber" xml:"PagNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + Items []ItemsItem `json:"Items" xml:"Items"` +} + +// CreateDescribeReplicaConflictInfoRequest creates a request to invoke DescribeReplicaConflictInfo API +func CreateDescribeReplicaConflictInfoRequest() (request *DescribeReplicaConflictInfoRequest) { + request = &DescribeReplicaConflictInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeReplicaConflictInfo", "rds", "openAPI") + return +} + +// CreateDescribeReplicaConflictInfoResponse creates a response to parse from DescribeReplicaConflictInfo response +func CreateDescribeReplicaConflictInfoResponse() (response *DescribeReplicaConflictInfoResponse) { + response = &DescribeReplicaConflictInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_replica_initialize_progress.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_replica_initialize_progress.go new file mode 100644 index 0000000..7b45ca0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_replica_initialize_progress.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeReplicaInitializeProgress invokes the rds.DescribeReplicaInitializeProgress API synchronously +// api document: https://help.aliyun.com/api/rds/describereplicainitializeprogress.html +func (client *Client) DescribeReplicaInitializeProgress(request *DescribeReplicaInitializeProgressRequest) (response *DescribeReplicaInitializeProgressResponse, err error) { + response = CreateDescribeReplicaInitializeProgressResponse() + err = client.DoAction(request, response) + return +} + +// DescribeReplicaInitializeProgressWithChan invokes the rds.DescribeReplicaInitializeProgress API asynchronously +// api document: https://help.aliyun.com/api/rds/describereplicainitializeprogress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReplicaInitializeProgressWithChan(request *DescribeReplicaInitializeProgressRequest) (<-chan *DescribeReplicaInitializeProgressResponse, <-chan error) { + responseChan := make(chan *DescribeReplicaInitializeProgressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeReplicaInitializeProgress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeReplicaInitializeProgressWithCallback invokes the rds.DescribeReplicaInitializeProgress API asynchronously +// api document: https://help.aliyun.com/api/rds/describereplicainitializeprogress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReplicaInitializeProgressWithCallback(request *DescribeReplicaInitializeProgressRequest, callback func(response *DescribeReplicaInitializeProgressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeReplicaInitializeProgressResponse + var err error + defer close(result) + response, err = client.DescribeReplicaInitializeProgress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeReplicaInitializeProgressRequest is the request struct for api DescribeReplicaInitializeProgress +type DescribeReplicaInitializeProgressRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` +} + +// DescribeReplicaInitializeProgressResponse is the response struct for api DescribeReplicaInitializeProgress +type DescribeReplicaInitializeProgressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Items []ItemsItem `json:"Items" xml:"Items"` +} + +// CreateDescribeReplicaInitializeProgressRequest creates a request to invoke DescribeReplicaInitializeProgress API +func CreateDescribeReplicaInitializeProgressRequest() (request *DescribeReplicaInitializeProgressRequest) { + request = &DescribeReplicaInitializeProgressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeReplicaInitializeProgress", "rds", "openAPI") + return +} + +// CreateDescribeReplicaInitializeProgressResponse creates a response to parse from DescribeReplicaInitializeProgress response +func CreateDescribeReplicaInitializeProgressResponse() (response *DescribeReplicaInitializeProgressResponse) { + response = &DescribeReplicaInitializeProgressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_replica_performance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_replica_performance.go new file mode 100644 index 0000000..5a56354 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_replica_performance.go @@ -0,0 +1,116 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeReplicaPerformance invokes the rds.DescribeReplicaPerformance API synchronously +// api document: https://help.aliyun.com/api/rds/describereplicaperformance.html +func (client *Client) DescribeReplicaPerformance(request *DescribeReplicaPerformanceRequest) (response *DescribeReplicaPerformanceResponse, err error) { + response = CreateDescribeReplicaPerformanceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeReplicaPerformanceWithChan invokes the rds.DescribeReplicaPerformance API asynchronously +// api document: https://help.aliyun.com/api/rds/describereplicaperformance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReplicaPerformanceWithChan(request *DescribeReplicaPerformanceRequest) (<-chan *DescribeReplicaPerformanceResponse, <-chan error) { + responseChan := make(chan *DescribeReplicaPerformanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeReplicaPerformance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeReplicaPerformanceWithCallback invokes the rds.DescribeReplicaPerformance API asynchronously +// api document: https://help.aliyun.com/api/rds/describereplicaperformance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReplicaPerformanceWithCallback(request *DescribeReplicaPerformanceRequest, callback func(response *DescribeReplicaPerformanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeReplicaPerformanceResponse + var err error + defer close(result) + response, err = client.DescribeReplicaPerformance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeReplicaPerformanceRequest is the request struct for api DescribeReplicaPerformance +type DescribeReplicaPerformanceRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + SourceDBInstanceId string `position:"Query" name:"SourceDBInstanceId"` + Key string `position:"Query" name:"Key"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` +} + +// DescribeReplicaPerformanceResponse is the response struct for api DescribeReplicaPerformance +type DescribeReplicaPerformanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + ReplicaId string `json:"ReplicaId" xml:"ReplicaId"` + PerformanceKeys PerformanceKeys `json:"PerformanceKeys" xml:"PerformanceKeys"` +} + +// CreateDescribeReplicaPerformanceRequest creates a request to invoke DescribeReplicaPerformance API +func CreateDescribeReplicaPerformanceRequest() (request *DescribeReplicaPerformanceRequest) { + request = &DescribeReplicaPerformanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeReplicaPerformance", "rds", "openAPI") + return +} + +// CreateDescribeReplicaPerformanceResponse creates a response to parse from DescribeReplicaPerformance response +func CreateDescribeReplicaPerformanceResponse() (response *DescribeReplicaPerformanceResponse) { + response = &DescribeReplicaPerformanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_replica_usage.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_replica_usage.go new file mode 100644 index 0000000..37ca422 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_replica_usage.go @@ -0,0 +1,113 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeReplicaUsage invokes the rds.DescribeReplicaUsage API synchronously +// api document: https://help.aliyun.com/api/rds/describereplicausage.html +func (client *Client) DescribeReplicaUsage(request *DescribeReplicaUsageRequest) (response *DescribeReplicaUsageResponse, err error) { + response = CreateDescribeReplicaUsageResponse() + err = client.DoAction(request, response) + return +} + +// DescribeReplicaUsageWithChan invokes the rds.DescribeReplicaUsage API asynchronously +// api document: https://help.aliyun.com/api/rds/describereplicausage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReplicaUsageWithChan(request *DescribeReplicaUsageRequest) (<-chan *DescribeReplicaUsageResponse, <-chan error) { + responseChan := make(chan *DescribeReplicaUsageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeReplicaUsage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeReplicaUsageWithCallback invokes the rds.DescribeReplicaUsage API asynchronously +// api document: https://help.aliyun.com/api/rds/describereplicausage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReplicaUsageWithCallback(request *DescribeReplicaUsageRequest, callback func(response *DescribeReplicaUsageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeReplicaUsageResponse + var err error + defer close(result) + response, err = client.DescribeReplicaUsage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeReplicaUsageRequest is the request struct for api DescribeReplicaUsage +type DescribeReplicaUsageRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + SourceDBInstanceId string `position:"Query" name:"SourceDBInstanceId"` +} + +// DescribeReplicaUsageResponse is the response struct for api DescribeReplicaUsage +type DescribeReplicaUsageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + ReplicaId string `json:"ReplicaId" xml:"ReplicaId"` + PerformanceKeys PerformanceKeys `json:"PerformanceKeys" xml:"PerformanceKeys"` +} + +// CreateDescribeReplicaUsageRequest creates a request to invoke DescribeReplicaUsage API +func CreateDescribeReplicaUsageRequest() (request *DescribeReplicaUsageRequest) { + request = &DescribeReplicaUsageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeReplicaUsage", "rds", "openAPI") + return +} + +// CreateDescribeReplicaUsageResponse creates a response to parse from DescribeReplicaUsage response +func CreateDescribeReplicaUsageResponse() (response *DescribeReplicaUsageResponse) { + response = &DescribeReplicaUsageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_replicas.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_replicas.go new file mode 100644 index 0000000..e8cb866 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_replicas.go @@ -0,0 +1,114 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeReplicas invokes the rds.DescribeReplicas API synchronously +// api document: https://help.aliyun.com/api/rds/describereplicas.html +func (client *Client) DescribeReplicas(request *DescribeReplicasRequest) (response *DescribeReplicasResponse, err error) { + response = CreateDescribeReplicasResponse() + err = client.DoAction(request, response) + return +} + +// DescribeReplicasWithChan invokes the rds.DescribeReplicas API asynchronously +// api document: https://help.aliyun.com/api/rds/describereplicas.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReplicasWithChan(request *DescribeReplicasRequest) (<-chan *DescribeReplicasResponse, <-chan error) { + responseChan := make(chan *DescribeReplicasResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeReplicas(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeReplicasWithCallback invokes the rds.DescribeReplicas API asynchronously +// api document: https://help.aliyun.com/api/rds/describereplicas.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReplicasWithCallback(request *DescribeReplicasRequest, callback func(response *DescribeReplicasResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeReplicasResponse + var err error + defer close(result) + response, err = client.DescribeReplicas(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeReplicasRequest is the request struct for api DescribeReplicas +type DescribeReplicasRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeReplicasResponse is the response struct for api DescribeReplicas +type DescribeReplicasResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber string `json:"PageNumber" xml:"PageNumber"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Replicas []Items `json:"Replicas" xml:"Replicas"` +} + +// CreateDescribeReplicasRequest creates a request to invoke DescribeReplicas API +func CreateDescribeReplicasRequest() (request *DescribeReplicasRequest) { + request = &DescribeReplicasRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeReplicas", "rds", "openAPI") + return +} + +// CreateDescribeReplicasResponse creates a response to parse from DescribeReplicas response +func CreateDescribeReplicasResponse() (response *DescribeReplicasResponse) { + response = &DescribeReplicasResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_resource_diagnosis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_resource_diagnosis.go new file mode 100644 index 0000000..791034d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_resource_diagnosis.go @@ -0,0 +1,112 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeResourceDiagnosis invokes the rds.DescribeResourceDiagnosis API synchronously +// api document: https://help.aliyun.com/api/rds/describeresourcediagnosis.html +func (client *Client) DescribeResourceDiagnosis(request *DescribeResourceDiagnosisRequest) (response *DescribeResourceDiagnosisResponse, err error) { + response = CreateDescribeResourceDiagnosisResponse() + err = client.DoAction(request, response) + return +} + +// DescribeResourceDiagnosisWithChan invokes the rds.DescribeResourceDiagnosis API asynchronously +// api document: https://help.aliyun.com/api/rds/describeresourcediagnosis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeResourceDiagnosisWithChan(request *DescribeResourceDiagnosisRequest) (<-chan *DescribeResourceDiagnosisResponse, <-chan error) { + responseChan := make(chan *DescribeResourceDiagnosisResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeResourceDiagnosis(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeResourceDiagnosisWithCallback invokes the rds.DescribeResourceDiagnosis API asynchronously +// api document: https://help.aliyun.com/api/rds/describeresourcediagnosis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeResourceDiagnosisWithCallback(request *DescribeResourceDiagnosisRequest, callback func(response *DescribeResourceDiagnosisResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeResourceDiagnosisResponse + var err error + defer close(result) + response, err = client.DescribeResourceDiagnosis(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeResourceDiagnosisRequest is the request struct for api DescribeResourceDiagnosis +type DescribeResourceDiagnosisRequest struct { + *requests.RpcRequest + DBInstanceId string `position:"Query" name:"DBInstanceId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` +} + +// DescribeResourceDiagnosisResponse is the response struct for api DescribeResourceDiagnosis +type DescribeResourceDiagnosisResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + CPU []string `json:"CPU" xml:"CPU"` + Memory []string `json:"Memory" xml:"Memory"` + Storage []string `json:"Storage" xml:"Storage"` + IOPS []string `json:"IOPS" xml:"IOPS"` + Connection []string `json:"Connection" xml:"Connection"` +} + +// CreateDescribeResourceDiagnosisRequest creates a request to invoke DescribeResourceDiagnosis API +func CreateDescribeResourceDiagnosisRequest() (request *DescribeResourceDiagnosisRequest) { + request = &DescribeResourceDiagnosisRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeResourceDiagnosis", "rds", "openAPI") + return +} + +// CreateDescribeResourceDiagnosisResponse creates a response to parse from DescribeResourceDiagnosis response +func CreateDescribeResourceDiagnosisResponse() (response *DescribeResourceDiagnosisResponse) { + response = &DescribeResourceDiagnosisResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_resource_usage.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_resource_usage.go new file mode 100644 index 0000000..307db35 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_resource_usage.go @@ -0,0 +1,116 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeResourceUsage invokes the rds.DescribeResourceUsage API synchronously +// api document: https://help.aliyun.com/api/rds/describeresourceusage.html +func (client *Client) DescribeResourceUsage(request *DescribeResourceUsageRequest) (response *DescribeResourceUsageResponse, err error) { + response = CreateDescribeResourceUsageResponse() + err = client.DoAction(request, response) + return +} + +// DescribeResourceUsageWithChan invokes the rds.DescribeResourceUsage API asynchronously +// api document: https://help.aliyun.com/api/rds/describeresourceusage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeResourceUsageWithChan(request *DescribeResourceUsageRequest) (<-chan *DescribeResourceUsageResponse, <-chan error) { + responseChan := make(chan *DescribeResourceUsageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeResourceUsage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeResourceUsageWithCallback invokes the rds.DescribeResourceUsage API asynchronously +// api document: https://help.aliyun.com/api/rds/describeresourceusage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeResourceUsageWithCallback(request *DescribeResourceUsageRequest, callback func(response *DescribeResourceUsageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeResourceUsageResponse + var err error + defer close(result) + response, err = client.DescribeResourceUsage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeResourceUsageRequest is the request struct for api DescribeResourceUsage +type DescribeResourceUsageRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeResourceUsageResponse is the response struct for api DescribeResourceUsage +type DescribeResourceUsageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + Engine string `json:"Engine" xml:"Engine"` + DiskUsed int `json:"DiskUsed" xml:"DiskUsed"` + DataSize int `json:"DataSize" xml:"DataSize"` + LogSize int `json:"LogSize" xml:"LogSize"` + BackupSize int `json:"BackupSize" xml:"BackupSize"` + SQLSize int `json:"SQLSize" xml:"SQLSize"` + ColdBackupSize int `json:"ColdBackupSize" xml:"ColdBackupSize"` +} + +// CreateDescribeResourceUsageRequest creates a request to invoke DescribeResourceUsage API +func CreateDescribeResourceUsageRequest() (request *DescribeResourceUsageRequest) { + request = &DescribeResourceUsageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeResourceUsage", "rds", "openAPI") + return +} + +// CreateDescribeResourceUsageResponse creates a response to parse from DescribeResourceUsage response +func CreateDescribeResourceUsageResponse() (response *DescribeResourceUsageResponse) { + response = &DescribeResourceUsageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_security_group_configuration.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_security_group_configuration.go new file mode 100644 index 0000000..fce66fd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_security_group_configuration.go @@ -0,0 +1,108 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSecurityGroupConfiguration invokes the rds.DescribeSecurityGroupConfiguration API synchronously +// api document: https://help.aliyun.com/api/rds/describesecuritygroupconfiguration.html +func (client *Client) DescribeSecurityGroupConfiguration(request *DescribeSecurityGroupConfigurationRequest) (response *DescribeSecurityGroupConfigurationResponse, err error) { + response = CreateDescribeSecurityGroupConfigurationResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSecurityGroupConfigurationWithChan invokes the rds.DescribeSecurityGroupConfiguration API asynchronously +// api document: https://help.aliyun.com/api/rds/describesecuritygroupconfiguration.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSecurityGroupConfigurationWithChan(request *DescribeSecurityGroupConfigurationRequest) (<-chan *DescribeSecurityGroupConfigurationResponse, <-chan error) { + responseChan := make(chan *DescribeSecurityGroupConfigurationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSecurityGroupConfiguration(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSecurityGroupConfigurationWithCallback invokes the rds.DescribeSecurityGroupConfiguration API asynchronously +// api document: https://help.aliyun.com/api/rds/describesecuritygroupconfiguration.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSecurityGroupConfigurationWithCallback(request *DescribeSecurityGroupConfigurationRequest, callback func(response *DescribeSecurityGroupConfigurationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSecurityGroupConfigurationResponse + var err error + defer close(result) + response, err = client.DescribeSecurityGroupConfiguration(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSecurityGroupConfigurationRequest is the request struct for api DescribeSecurityGroupConfiguration +type DescribeSecurityGroupConfigurationRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` +} + +// DescribeSecurityGroupConfigurationResponse is the response struct for api DescribeSecurityGroupConfiguration +type DescribeSecurityGroupConfigurationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceName string `json:"DBInstanceName" xml:"DBInstanceName"` + Items ItemsInDescribeSecurityGroupConfiguration `json:"Items" xml:"Items"` +} + +// CreateDescribeSecurityGroupConfigurationRequest creates a request to invoke DescribeSecurityGroupConfiguration API +func CreateDescribeSecurityGroupConfigurationRequest() (request *DescribeSecurityGroupConfigurationRequest) { + request = &DescribeSecurityGroupConfigurationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeSecurityGroupConfiguration", "rds", "openAPI") + return +} + +// CreateDescribeSecurityGroupConfigurationResponse creates a response to parse from DescribeSecurityGroupConfiguration response +func CreateDescribeSecurityGroupConfigurationResponse() (response *DescribeSecurityGroupConfigurationResponse) { + response = &DescribeSecurityGroupConfigurationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_slow_log_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_slow_log_records.go new file mode 100644 index 0000000..0a8449d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_slow_log_records.go @@ -0,0 +1,118 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSlowLogRecords invokes the rds.DescribeSlowLogRecords API synchronously +// api document: https://help.aliyun.com/api/rds/describeslowlogrecords.html +func (client *Client) DescribeSlowLogRecords(request *DescribeSlowLogRecordsRequest) (response *DescribeSlowLogRecordsResponse, err error) { + response = CreateDescribeSlowLogRecordsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSlowLogRecordsWithChan invokes the rds.DescribeSlowLogRecords API asynchronously +// api document: https://help.aliyun.com/api/rds/describeslowlogrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSlowLogRecordsWithChan(request *DescribeSlowLogRecordsRequest) (<-chan *DescribeSlowLogRecordsResponse, <-chan error) { + responseChan := make(chan *DescribeSlowLogRecordsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSlowLogRecords(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSlowLogRecordsWithCallback invokes the rds.DescribeSlowLogRecords API asynchronously +// api document: https://help.aliyun.com/api/rds/describeslowlogrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSlowLogRecordsWithCallback(request *DescribeSlowLogRecordsRequest, callback func(response *DescribeSlowLogRecordsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSlowLogRecordsResponse + var err error + defer close(result) + response, err = client.DescribeSlowLogRecords(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSlowLogRecordsRequest is the request struct for api DescribeSlowLogRecords +type DescribeSlowLogRecordsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + SQLId requests.Integer `position:"Query" name:"SQLId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + DBName string `position:"Query" name:"DBName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeSlowLogRecordsResponse is the response struct for api DescribeSlowLogRecords +type DescribeSlowLogRecordsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Engine string `json:"Engine" xml:"Engine"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeSlowLogRecords `json:"Items" xml:"Items"` +} + +// CreateDescribeSlowLogRecordsRequest creates a request to invoke DescribeSlowLogRecords API +func CreateDescribeSlowLogRecordsRequest() (request *DescribeSlowLogRecordsRequest) { + request = &DescribeSlowLogRecordsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeSlowLogRecords", "rds", "openAPI") + return +} + +// CreateDescribeSlowLogRecordsResponse creates a response to parse from DescribeSlowLogRecords response +func CreateDescribeSlowLogRecordsResponse() (response *DescribeSlowLogRecordsResponse) { + response = &DescribeSlowLogRecordsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_slow_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_slow_logs.go new file mode 100644 index 0000000..405bc63 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_slow_logs.go @@ -0,0 +1,120 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSlowLogs invokes the rds.DescribeSlowLogs API synchronously +// api document: https://help.aliyun.com/api/rds/describeslowlogs.html +func (client *Client) DescribeSlowLogs(request *DescribeSlowLogsRequest) (response *DescribeSlowLogsResponse, err error) { + response = CreateDescribeSlowLogsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSlowLogsWithChan invokes the rds.DescribeSlowLogs API asynchronously +// api document: https://help.aliyun.com/api/rds/describeslowlogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSlowLogsWithChan(request *DescribeSlowLogsRequest) (<-chan *DescribeSlowLogsResponse, <-chan error) { + responseChan := make(chan *DescribeSlowLogsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSlowLogs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSlowLogsWithCallback invokes the rds.DescribeSlowLogs API asynchronously +// api document: https://help.aliyun.com/api/rds/describeslowlogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSlowLogsWithCallback(request *DescribeSlowLogsRequest, callback func(response *DescribeSlowLogsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSlowLogsResponse + var err error + defer close(result) + response, err = client.DescribeSlowLogs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSlowLogsRequest is the request struct for api DescribeSlowLogs +type DescribeSlowLogsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + DBName string `position:"Query" name:"DBName"` + SortKey string `position:"Query" name:"SortKey"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeSlowLogsResponse is the response struct for api DescribeSlowLogs +type DescribeSlowLogsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Engine string `json:"Engine" xml:"Engine"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeSlowLogs `json:"Items" xml:"Items"` +} + +// CreateDescribeSlowLogsRequest creates a request to invoke DescribeSlowLogs API +func CreateDescribeSlowLogsRequest() (request *DescribeSlowLogsRequest) { + request = &DescribeSlowLogsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeSlowLogs", "rds", "openAPI") + return +} + +// CreateDescribeSlowLogsResponse creates a response to parse from DescribeSlowLogs response +func CreateDescribeSlowLogsResponse() (response *DescribeSlowLogsResponse) { + response = &DescribeSlowLogsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_collector_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_collector_policy.go new file mode 100644 index 0000000..5386a08 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_collector_policy.go @@ -0,0 +1,110 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSQLCollectorPolicy invokes the rds.DescribeSQLCollectorPolicy API synchronously +// api document: https://help.aliyun.com/api/rds/describesqlcollectorpolicy.html +func (client *Client) DescribeSQLCollectorPolicy(request *DescribeSQLCollectorPolicyRequest) (response *DescribeSQLCollectorPolicyResponse, err error) { + response = CreateDescribeSQLCollectorPolicyResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSQLCollectorPolicyWithChan invokes the rds.DescribeSQLCollectorPolicy API asynchronously +// api document: https://help.aliyun.com/api/rds/describesqlcollectorpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSQLCollectorPolicyWithChan(request *DescribeSQLCollectorPolicyRequest) (<-chan *DescribeSQLCollectorPolicyResponse, <-chan error) { + responseChan := make(chan *DescribeSQLCollectorPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSQLCollectorPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSQLCollectorPolicyWithCallback invokes the rds.DescribeSQLCollectorPolicy API asynchronously +// api document: https://help.aliyun.com/api/rds/describesqlcollectorpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSQLCollectorPolicyWithCallback(request *DescribeSQLCollectorPolicyRequest, callback func(response *DescribeSQLCollectorPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSQLCollectorPolicyResponse + var err error + defer close(result) + response, err = client.DescribeSQLCollectorPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSQLCollectorPolicyRequest is the request struct for api DescribeSQLCollectorPolicy +type DescribeSQLCollectorPolicyRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeSQLCollectorPolicyResponse is the response struct for api DescribeSQLCollectorPolicy +type DescribeSQLCollectorPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SQLCollectorStatus string `json:"SQLCollectorStatus" xml:"SQLCollectorStatus"` + StoragePeriod int `json:"StoragePeriod" xml:"StoragePeriod"` +} + +// CreateDescribeSQLCollectorPolicyRequest creates a request to invoke DescribeSQLCollectorPolicy API +func CreateDescribeSQLCollectorPolicyRequest() (request *DescribeSQLCollectorPolicyRequest) { + request = &DescribeSQLCollectorPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeSQLCollectorPolicy", "rds", "openAPI") + return +} + +// CreateDescribeSQLCollectorPolicyResponse creates a response to parse from DescribeSQLCollectorPolicy response +func CreateDescribeSQLCollectorPolicyResponse() (response *DescribeSQLCollectorPolicyResponse) { + response = &DescribeSQLCollectorPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_diagnosis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_diagnosis.go new file mode 100644 index 0000000..5118fe0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_diagnosis.go @@ -0,0 +1,105 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSQLDiagnosis invokes the rds.DescribeSQLDiagnosis API synchronously +// api document: https://help.aliyun.com/api/rds/describesqldiagnosis.html +func (client *Client) DescribeSQLDiagnosis(request *DescribeSQLDiagnosisRequest) (response *DescribeSQLDiagnosisResponse, err error) { + response = CreateDescribeSQLDiagnosisResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSQLDiagnosisWithChan invokes the rds.DescribeSQLDiagnosis API asynchronously +// api document: https://help.aliyun.com/api/rds/describesqldiagnosis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSQLDiagnosisWithChan(request *DescribeSQLDiagnosisRequest) (<-chan *DescribeSQLDiagnosisResponse, <-chan error) { + responseChan := make(chan *DescribeSQLDiagnosisResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSQLDiagnosis(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSQLDiagnosisWithCallback invokes the rds.DescribeSQLDiagnosis API asynchronously +// api document: https://help.aliyun.com/api/rds/describesqldiagnosis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSQLDiagnosisWithCallback(request *DescribeSQLDiagnosisRequest, callback func(response *DescribeSQLDiagnosisResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSQLDiagnosisResponse + var err error + defer close(result) + response, err = client.DescribeSQLDiagnosis(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSQLDiagnosisRequest is the request struct for api DescribeSQLDiagnosis +type DescribeSQLDiagnosisRequest struct { + *requests.RpcRequest + DBInstanceId string `position:"Query" name:"DBInstanceId"` + SQLDiagId string `position:"Query" name:"SQLDiagId"` +} + +// DescribeSQLDiagnosisResponse is the response struct for api DescribeSQLDiagnosis +type DescribeSQLDiagnosisResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SQLList []string `json:"SQLList" xml:"SQLList"` +} + +// CreateDescribeSQLDiagnosisRequest creates a request to invoke DescribeSQLDiagnosis API +func CreateDescribeSQLDiagnosisRequest() (request *DescribeSQLDiagnosisRequest) { + request = &DescribeSQLDiagnosisRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeSQLDiagnosis", "rds", "openAPI") + return +} + +// CreateDescribeSQLDiagnosisResponse creates a response to parse from DescribeSQLDiagnosis response +func CreateDescribeSQLDiagnosisResponse() (response *DescribeSQLDiagnosisResponse) { + response = &DescribeSQLDiagnosisResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_diagnosis_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_diagnosis_list.go new file mode 100644 index 0000000..aaf51ea --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_diagnosis_list.go @@ -0,0 +1,104 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSQLDiagnosisList invokes the rds.DescribeSQLDiagnosisList API synchronously +// api document: https://help.aliyun.com/api/rds/describesqldiagnosislist.html +func (client *Client) DescribeSQLDiagnosisList(request *DescribeSQLDiagnosisListRequest) (response *DescribeSQLDiagnosisListResponse, err error) { + response = CreateDescribeSQLDiagnosisListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSQLDiagnosisListWithChan invokes the rds.DescribeSQLDiagnosisList API asynchronously +// api document: https://help.aliyun.com/api/rds/describesqldiagnosislist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSQLDiagnosisListWithChan(request *DescribeSQLDiagnosisListRequest) (<-chan *DescribeSQLDiagnosisListResponse, <-chan error) { + responseChan := make(chan *DescribeSQLDiagnosisListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSQLDiagnosisList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSQLDiagnosisListWithCallback invokes the rds.DescribeSQLDiagnosisList API asynchronously +// api document: https://help.aliyun.com/api/rds/describesqldiagnosislist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSQLDiagnosisListWithCallback(request *DescribeSQLDiagnosisListRequest, callback func(response *DescribeSQLDiagnosisListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSQLDiagnosisListResponse + var err error + defer close(result) + response, err = client.DescribeSQLDiagnosisList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSQLDiagnosisListRequest is the request struct for api DescribeSQLDiagnosisList +type DescribeSQLDiagnosisListRequest struct { + *requests.RpcRequest + DBInstanceId string `position:"Query" name:"DBInstanceId"` +} + +// DescribeSQLDiagnosisListResponse is the response struct for api DescribeSQLDiagnosisList +type DescribeSQLDiagnosisListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SQLDiagList []SQLDiag `json:"SQLDiagList" xml:"SQLDiagList"` +} + +// CreateDescribeSQLDiagnosisListRequest creates a request to invoke DescribeSQLDiagnosisList API +func CreateDescribeSQLDiagnosisListRequest() (request *DescribeSQLDiagnosisListRequest) { + request = &DescribeSQLDiagnosisListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeSQLDiagnosisList", "rds", "openAPI") + return +} + +// CreateDescribeSQLDiagnosisListResponse creates a response to parse from DescribeSQLDiagnosisList response +func CreateDescribeSQLDiagnosisListResponse() (response *DescribeSQLDiagnosisListResponse) { + response = &DescribeSQLDiagnosisListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_injection_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_injection_infos.go new file mode 100644 index 0000000..dc1b13d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_injection_infos.go @@ -0,0 +1,116 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSQLInjectionInfos invokes the rds.DescribeSQLInjectionInfos API synchronously +// api document: https://help.aliyun.com/api/rds/describesqlinjectioninfos.html +func (client *Client) DescribeSQLInjectionInfos(request *DescribeSQLInjectionInfosRequest) (response *DescribeSQLInjectionInfosResponse, err error) { + response = CreateDescribeSQLInjectionInfosResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSQLInjectionInfosWithChan invokes the rds.DescribeSQLInjectionInfos API asynchronously +// api document: https://help.aliyun.com/api/rds/describesqlinjectioninfos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSQLInjectionInfosWithChan(request *DescribeSQLInjectionInfosRequest) (<-chan *DescribeSQLInjectionInfosResponse, <-chan error) { + responseChan := make(chan *DescribeSQLInjectionInfosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSQLInjectionInfos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSQLInjectionInfosWithCallback invokes the rds.DescribeSQLInjectionInfos API asynchronously +// api document: https://help.aliyun.com/api/rds/describesqlinjectioninfos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSQLInjectionInfosWithCallback(request *DescribeSQLInjectionInfosRequest, callback func(response *DescribeSQLInjectionInfosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSQLInjectionInfosResponse + var err error + defer close(result) + response, err = client.DescribeSQLInjectionInfos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSQLInjectionInfosRequest is the request struct for api DescribeSQLInjectionInfos +type DescribeSQLInjectionInfosRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeSQLInjectionInfosResponse is the response struct for api DescribeSQLInjectionInfos +type DescribeSQLInjectionInfosResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Engine string `json:"Engine" xml:"Engine"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeSQLInjectionInfos `json:"Items" xml:"Items"` +} + +// CreateDescribeSQLInjectionInfosRequest creates a request to invoke DescribeSQLInjectionInfos API +func CreateDescribeSQLInjectionInfosRequest() (request *DescribeSQLInjectionInfosRequest) { + request = &DescribeSQLInjectionInfosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeSQLInjectionInfos", "rds", "openAPI") + return +} + +// CreateDescribeSQLInjectionInfosResponse creates a response to parse from DescribeSQLInjectionInfos response +func CreateDescribeSQLInjectionInfosResponse() (response *DescribeSQLInjectionInfosResponse) { + response = &DescribeSQLInjectionInfosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_log_files.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_log_files.go new file mode 100644 index 0000000..89a51e4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_log_files.go @@ -0,0 +1,114 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSQLLogFiles invokes the rds.DescribeSQLLogFiles API synchronously +// api document: https://help.aliyun.com/api/rds/describesqllogfiles.html +func (client *Client) DescribeSQLLogFiles(request *DescribeSQLLogFilesRequest) (response *DescribeSQLLogFilesResponse, err error) { + response = CreateDescribeSQLLogFilesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSQLLogFilesWithChan invokes the rds.DescribeSQLLogFiles API asynchronously +// api document: https://help.aliyun.com/api/rds/describesqllogfiles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSQLLogFilesWithChan(request *DescribeSQLLogFilesRequest) (<-chan *DescribeSQLLogFilesResponse, <-chan error) { + responseChan := make(chan *DescribeSQLLogFilesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSQLLogFiles(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSQLLogFilesWithCallback invokes the rds.DescribeSQLLogFiles API asynchronously +// api document: https://help.aliyun.com/api/rds/describesqllogfiles.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSQLLogFilesWithCallback(request *DescribeSQLLogFilesRequest, callback func(response *DescribeSQLLogFilesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSQLLogFilesResponse + var err error + defer close(result) + response, err = client.DescribeSQLLogFiles(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSQLLogFilesRequest is the request struct for api DescribeSQLLogFiles +type DescribeSQLLogFilesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + FileName string `position:"Query" name:"FileName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeSQLLogFilesResponse is the response struct for api DescribeSQLLogFiles +type DescribeSQLLogFilesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeSQLLogFiles `json:"Items" xml:"Items"` +} + +// CreateDescribeSQLLogFilesRequest creates a request to invoke DescribeSQLLogFiles API +func CreateDescribeSQLLogFilesRequest() (request *DescribeSQLLogFilesRequest) { + request = &DescribeSQLLogFilesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeSQLLogFiles", "rds", "openAPI") + return +} + +// CreateDescribeSQLLogFilesResponse creates a response to parse from DescribeSQLLogFiles response +func CreateDescribeSQLLogFilesResponse() (response *DescribeSQLLogFilesResponse) { + response = &DescribeSQLLogFilesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_log_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_log_records.go new file mode 100644 index 0000000..a3686a7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_log_records.go @@ -0,0 +1,121 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSQLLogRecords invokes the rds.DescribeSQLLogRecords API synchronously +// api document: https://help.aliyun.com/api/rds/describesqllogrecords.html +func (client *Client) DescribeSQLLogRecords(request *DescribeSQLLogRecordsRequest) (response *DescribeSQLLogRecordsResponse, err error) { + response = CreateDescribeSQLLogRecordsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSQLLogRecordsWithChan invokes the rds.DescribeSQLLogRecords API asynchronously +// api document: https://help.aliyun.com/api/rds/describesqllogrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSQLLogRecordsWithChan(request *DescribeSQLLogRecordsRequest) (<-chan *DescribeSQLLogRecordsResponse, <-chan error) { + responseChan := make(chan *DescribeSQLLogRecordsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSQLLogRecords(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSQLLogRecordsWithCallback invokes the rds.DescribeSQLLogRecords API asynchronously +// api document: https://help.aliyun.com/api/rds/describesqllogrecords.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSQLLogRecordsWithCallback(request *DescribeSQLLogRecordsRequest, callback func(response *DescribeSQLLogRecordsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSQLLogRecordsResponse + var err error + defer close(result) + response, err = client.DescribeSQLLogRecords(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSQLLogRecordsRequest is the request struct for api DescribeSQLLogRecords +type DescribeSQLLogRecordsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + SQLId requests.Integer `position:"Query" name:"SQLId"` + QueryKeywords string `position:"Query" name:"QueryKeywords"` + StartTime string `position:"Query" name:"StartTime"` + Database string `position:"Query" name:"Database"` + User string `position:"Query" name:"User"` + Form string `position:"Query" name:"Form"` + EndTime string `position:"Query" name:"EndTime"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeSQLLogRecordsResponse is the response struct for api DescribeSQLLogRecords +type DescribeSQLLogRecordsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeSQLLogRecords `json:"Items" xml:"Items"` +} + +// CreateDescribeSQLLogRecordsRequest creates a request to invoke DescribeSQLLogRecords API +func CreateDescribeSQLLogRecordsRequest() (request *DescribeSQLLogRecordsRequest) { + request = &DescribeSQLLogRecordsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeSQLLogRecords", "rds", "openAPI") + return +} + +// CreateDescribeSQLLogRecordsResponse creates a response to parse from DescribeSQLLogRecords response +func CreateDescribeSQLLogRecordsResponse() (response *DescribeSQLLogRecordsResponse) { + response = &DescribeSQLLogRecordsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_log_report_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_log_report_list.go new file mode 100644 index 0000000..aff82eb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_log_report_list.go @@ -0,0 +1,115 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSQLLogReportList invokes the rds.DescribeSQLLogReportList API synchronously +// api document: https://help.aliyun.com/api/rds/describesqllogreportlist.html +func (client *Client) DescribeSQLLogReportList(request *DescribeSQLLogReportListRequest) (response *DescribeSQLLogReportListResponse, err error) { + response = CreateDescribeSQLLogReportListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSQLLogReportListWithChan invokes the rds.DescribeSQLLogReportList API asynchronously +// api document: https://help.aliyun.com/api/rds/describesqllogreportlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSQLLogReportListWithChan(request *DescribeSQLLogReportListRequest) (<-chan *DescribeSQLLogReportListResponse, <-chan error) { + responseChan := make(chan *DescribeSQLLogReportListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSQLLogReportList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSQLLogReportListWithCallback invokes the rds.DescribeSQLLogReportList API asynchronously +// api document: https://help.aliyun.com/api/rds/describesqllogreportlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSQLLogReportListWithCallback(request *DescribeSQLLogReportListRequest, callback func(response *DescribeSQLLogReportListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSQLLogReportListResponse + var err error + defer close(result) + response, err = client.DescribeSQLLogReportList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSQLLogReportListRequest is the request struct for api DescribeSQLLogReportList +type DescribeSQLLogReportListRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeSQLLogReportListResponse is the response struct for api DescribeSQLLogReportList +type DescribeSQLLogReportListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeSQLLogReportList `json:"Items" xml:"Items"` +} + +// CreateDescribeSQLLogReportListRequest creates a request to invoke DescribeSQLLogReportList API +func CreateDescribeSQLLogReportListRequest() (request *DescribeSQLLogReportListRequest) { + request = &DescribeSQLLogReportListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeSQLLogReportList", "rds", "openAPI") + return +} + +// CreateDescribeSQLLogReportListResponse creates a response to parse from DescribeSQLLogReportList response +func CreateDescribeSQLLogReportListResponse() (response *DescribeSQLLogReportListResponse) { + response = &DescribeSQLLogReportListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_log_reports.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_log_reports.go new file mode 100644 index 0000000..ff683e7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_log_reports.go @@ -0,0 +1,115 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSQLLogReports invokes the rds.DescribeSQLLogReports API synchronously +// api document: https://help.aliyun.com/api/rds/describesqllogreports.html +func (client *Client) DescribeSQLLogReports(request *DescribeSQLLogReportsRequest) (response *DescribeSQLLogReportsResponse, err error) { + response = CreateDescribeSQLLogReportsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSQLLogReportsWithChan invokes the rds.DescribeSQLLogReports API asynchronously +// api document: https://help.aliyun.com/api/rds/describesqllogreports.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSQLLogReportsWithChan(request *DescribeSQLLogReportsRequest) (<-chan *DescribeSQLLogReportsResponse, <-chan error) { + responseChan := make(chan *DescribeSQLLogReportsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSQLLogReports(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSQLLogReportsWithCallback invokes the rds.DescribeSQLLogReports API asynchronously +// api document: https://help.aliyun.com/api/rds/describesqllogreports.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSQLLogReportsWithCallback(request *DescribeSQLLogReportsRequest, callback func(response *DescribeSQLLogReportsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSQLLogReportsResponse + var err error + defer close(result) + response, err = client.DescribeSQLLogReports(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSQLLogReportsRequest is the request struct for api DescribeSQLLogReports +type DescribeSQLLogReportsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeSQLLogReportsResponse is the response struct for api DescribeSQLLogReports +type DescribeSQLLogReportsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeSQLLogReports `json:"Items" xml:"Items"` +} + +// CreateDescribeSQLLogReportsRequest creates a request to invoke DescribeSQLLogReports API +func CreateDescribeSQLLogReportsRequest() (request *DescribeSQLLogReportsRequest) { + request = &DescribeSQLLogReportsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeSQLLogReports", "rds", "openAPI") + return +} + +// CreateDescribeSQLLogReportsResponse creates a response to parse from DescribeSQLLogReports response +func CreateDescribeSQLLogReportsResponse() (response *DescribeSQLLogReportsResponse) { + response = &DescribeSQLLogReportsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_reports.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_reports.go new file mode 100644 index 0000000..8b886a0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_reports.go @@ -0,0 +1,115 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSQLReports invokes the rds.DescribeSQLReports API synchronously +// api document: https://help.aliyun.com/api/rds/describesqlreports.html +func (client *Client) DescribeSQLReports(request *DescribeSQLReportsRequest) (response *DescribeSQLReportsResponse, err error) { + response = CreateDescribeSQLReportsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSQLReportsWithChan invokes the rds.DescribeSQLReports API asynchronously +// api document: https://help.aliyun.com/api/rds/describesqlreports.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSQLReportsWithChan(request *DescribeSQLReportsRequest) (<-chan *DescribeSQLReportsResponse, <-chan error) { + responseChan := make(chan *DescribeSQLReportsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSQLReports(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSQLReportsWithCallback invokes the rds.DescribeSQLReports API asynchronously +// api document: https://help.aliyun.com/api/rds/describesqlreports.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSQLReportsWithCallback(request *DescribeSQLReportsRequest, callback func(response *DescribeSQLReportsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSQLReportsResponse + var err error + defer close(result) + response, err = client.DescribeSQLReports(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSQLReportsRequest is the request struct for api DescribeSQLReports +type DescribeSQLReportsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeSQLReportsResponse is the response struct for api DescribeSQLReports +type DescribeSQLReportsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeSQLReports `json:"Items" xml:"Items"` +} + +// CreateDescribeSQLReportsRequest creates a request to invoke DescribeSQLReports API +func CreateDescribeSQLReportsRequest() (request *DescribeSQLReportsRequest) { + request = &DescribeSQLReportsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeSQLReports", "rds", "openAPI") + return +} + +// CreateDescribeSQLReportsResponse creates a response to parse from DescribeSQLReports response +func CreateDescribeSQLReportsResponse() (response *DescribeSQLReportsResponse) { + response = &DescribeSQLReportsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_static_verification_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_static_verification_list.go new file mode 100644 index 0000000..2a92ec0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_static_verification_list.go @@ -0,0 +1,123 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeStaticVerificationList invokes the rds.DescribeStaticVerificationList API synchronously +// api document: https://help.aliyun.com/api/rds/describestaticverificationlist.html +func (client *Client) DescribeStaticVerificationList(request *DescribeStaticVerificationListRequest) (response *DescribeStaticVerificationListResponse, err error) { + response = CreateDescribeStaticVerificationListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeStaticVerificationListWithChan invokes the rds.DescribeStaticVerificationList API asynchronously +// api document: https://help.aliyun.com/api/rds/describestaticverificationlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeStaticVerificationListWithChan(request *DescribeStaticVerificationListRequest) (<-chan *DescribeStaticVerificationListResponse, <-chan error) { + responseChan := make(chan *DescribeStaticVerificationListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeStaticVerificationList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeStaticVerificationListWithCallback invokes the rds.DescribeStaticVerificationList API asynchronously +// api document: https://help.aliyun.com/api/rds/describestaticverificationlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeStaticVerificationListWithCallback(request *DescribeStaticVerificationListRequest, callback func(response *DescribeStaticVerificationListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeStaticVerificationListResponse + var err error + defer close(result) + response, err = client.DescribeStaticVerificationList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeStaticVerificationListRequest is the request struct for api DescribeStaticVerificationList +type DescribeStaticVerificationListRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + SourceInstanceId string `position:"Query" name:"SourceInstanceId"` + DestinationInstanceId string `position:"Query" name:"DestinationInstanceId"` +} + +// DescribeStaticVerificationListResponse is the response struct for api DescribeStaticVerificationList +type DescribeStaticVerificationListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ReplicaId string `json:"ReplicaId" xml:"ReplicaId"` + SourceInstanceId string `json:"SourceInstanceId" xml:"SourceInstanceId"` + SourceDBNumber int `json:"SourceDBNumber" xml:"SourceDBNumber"` + SourceTableNumber int `json:"SourceTableNumber" xml:"SourceTableNumber"` + SourceCountNumber int `json:"SourceCountNumber" xml:"SourceCountNumber"` + SourceDBSize int `json:"SourceDBSize" xml:"SourceDBSize"` + DestinationInstanceId string `json:"DestinationInstanceId" xml:"DestinationInstanceId"` + DestinationDBNumber int `json:"DestinationDBNumber" xml:"DestinationDBNumber"` + DestinationTableNumber int `json:"DestinationTableNumber" xml:"DestinationTableNumber"` + DestinationCountNumber int `json:"DestinationCountNumber" xml:"DestinationCountNumber"` + DestinationDBSize int `json:"DestinationDBSize" xml:"DestinationDBSize"` + ConsistencyPercent string `json:"ConsistencyPercent" xml:"ConsistencyPercent"` + Items []ItemsItem `json:"Items" xml:"Items"` +} + +// CreateDescribeStaticVerificationListRequest creates a request to invoke DescribeStaticVerificationList API +func CreateDescribeStaticVerificationListRequest() (request *DescribeStaticVerificationListRequest) { + request = &DescribeStaticVerificationListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeStaticVerificationList", "rds", "openAPI") + return +} + +// CreateDescribeStaticVerificationListResponse creates a response to parse from DescribeStaticVerificationList response +func CreateDescribeStaticVerificationListResponse() (response *DescribeStaticVerificationListResponse) { + response = &DescribeStaticVerificationListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_strategy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_strategy.go new file mode 100644 index 0000000..11284db --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_strategy.go @@ -0,0 +1,111 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeStrategy invokes the rds.DescribeStrategy API synchronously +// api document: https://help.aliyun.com/api/rds/describestrategy.html +func (client *Client) DescribeStrategy(request *DescribeStrategyRequest) (response *DescribeStrategyResponse, err error) { + response = CreateDescribeStrategyResponse() + err = client.DoAction(request, response) + return +} + +// DescribeStrategyWithChan invokes the rds.DescribeStrategy API asynchronously +// api document: https://help.aliyun.com/api/rds/describestrategy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeStrategyWithChan(request *DescribeStrategyRequest) (<-chan *DescribeStrategyResponse, <-chan error) { + responseChan := make(chan *DescribeStrategyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeStrategy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeStrategyWithCallback invokes the rds.DescribeStrategy API asynchronously +// api document: https://help.aliyun.com/api/rds/describestrategy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeStrategyWithCallback(request *DescribeStrategyRequest, callback func(response *DescribeStrategyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeStrategyResponse + var err error + defer close(result) + response, err = client.DescribeStrategy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeStrategyRequest is the request struct for api DescribeStrategy +type DescribeStrategyRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` +} + +// DescribeStrategyResponse is the response struct for api DescribeStrategy +type DescribeStrategyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ReplicaId string `json:"ReplicaId" xml:"ReplicaId"` + RecoveryMode string `json:"RecoveryMode" xml:"RecoveryMode"` + VerificationMode string `json:"VerificationMode" xml:"VerificationMode"` +} + +// CreateDescribeStrategyRequest creates a request to invoke DescribeStrategy API +func CreateDescribeStrategyRequest() (request *DescribeStrategyRequest) { + request = &DescribeStrategyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeStrategy", "rds", "openAPI") + return +} + +// CreateDescribeStrategyResponse creates a response to parse from DescribeStrategy response +func CreateDescribeStrategyResponse() (response *DescribeStrategyResponse) { + response = &DescribeStrategyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_tags.go new file mode 100644 index 0000000..96605b5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_tags.go @@ -0,0 +1,111 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 rds.DescribeTags API synchronously +// api document: https://help.aliyun.com/api/rds/describetags.html +func (client *Client) DescribeTags(request *DescribeTagsRequest) (response *DescribeTagsResponse, err error) { + response = CreateDescribeTagsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeTagsWithChan invokes the rds.DescribeTags API asynchronously +// api document: https://help.aliyun.com/api/rds/describetags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 rds.DescribeTags API asynchronously +// api document: https://help.aliyun.com/api/rds/describetags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + ProxyId string `position:"Query" name:"proxyId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + Tags string `position:"Query" name:"Tags"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeTagsResponse is the response struct for api DescribeTags +type DescribeTagsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Items ItemsInDescribeTags `json:"Items" xml:"Items"` +} + +// CreateDescribeTagsRequest creates a request to invoke DescribeTags API +func CreateDescribeTagsRequest() (request *DescribeTagsRequest) { + request = &DescribeTagsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeTags", "rds", "openAPI") + 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/rds/describe_task_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_task_info.go new file mode 100644 index 0000000..0092a21 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_task_info.go @@ -0,0 +1,121 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeTaskInfo invokes the rds.DescribeTaskInfo API synchronously +// api document: https://help.aliyun.com/api/rds/describetaskinfo.html +func (client *Client) DescribeTaskInfo(request *DescribeTaskInfoRequest) (response *DescribeTaskInfoResponse, err error) { + response = CreateDescribeTaskInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeTaskInfoWithChan invokes the rds.DescribeTaskInfo API asynchronously +// api document: https://help.aliyun.com/api/rds/describetaskinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTaskInfoWithChan(request *DescribeTaskInfoRequest) (<-chan *DescribeTaskInfoResponse, <-chan error) { + responseChan := make(chan *DescribeTaskInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeTaskInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeTaskInfoWithCallback invokes the rds.DescribeTaskInfo API asynchronously +// api document: https://help.aliyun.com/api/rds/describetaskinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTaskInfoWithCallback(request *DescribeTaskInfoRequest, callback func(response *DescribeTaskInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeTaskInfoResponse + var err error + defer close(result) + response, err = client.DescribeTaskInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeTaskInfoRequest is the request struct for api DescribeTaskInfo +type DescribeTaskInfoRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + TaskId requests.Integer `position:"Query" name:"TaskId"` +} + +// DescribeTaskInfoResponse is the response struct for api DescribeTaskInfo +type DescribeTaskInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskId string `json:"TaskId" xml:"TaskId"` + BeginTime string `json:"BeginTime" xml:"BeginTime"` + FinishTime string `json:"FinishTime" xml:"FinishTime"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TaskAction string `json:"TaskAction" xml:"TaskAction"` + DBName string `json:"DBName" xml:"DBName"` + TaskErrorCode string `json:"TaskErrorCode" xml:"TaskErrorCode"` + Progress string `json:"Progress" xml:"Progress"` + ExpectedFinishTime string `json:"ExpectedFinishTime" xml:"ExpectedFinishTime"` + TaskErrorMessage string `json:"TaskErrorMessage" xml:"TaskErrorMessage"` + ProgressInfo string `json:"ProgressInfo" xml:"ProgressInfo"` + Status string `json:"Status" xml:"Status"` +} + +// CreateDescribeTaskInfoRequest creates a request to invoke DescribeTaskInfo API +func CreateDescribeTaskInfoRequest() (request *DescribeTaskInfoRequest) { + request = &DescribeTaskInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeTaskInfo", "rds", "openAPI") + return +} + +// CreateDescribeTaskInfoResponse creates a response to parse from DescribeTaskInfo response +func CreateDescribeTaskInfoResponse() (response *DescribeTaskInfoResponse) { + response = &DescribeTaskInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_tasks.go new file mode 100644 index 0000000..c78a3e7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_tasks.go @@ -0,0 +1,117 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeTasks invokes the rds.DescribeTasks API synchronously +// api document: https://help.aliyun.com/api/rds/describetasks.html +func (client *Client) DescribeTasks(request *DescribeTasksRequest) (response *DescribeTasksResponse, err error) { + response = CreateDescribeTasksResponse() + err = client.DoAction(request, response) + return +} + +// DescribeTasksWithChan invokes the rds.DescribeTasks API asynchronously +// api document: https://help.aliyun.com/api/rds/describetasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTasksWithChan(request *DescribeTasksRequest) (<-chan *DescribeTasksResponse, <-chan error) { + responseChan := make(chan *DescribeTasksResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeTasks(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeTasksWithCallback invokes the rds.DescribeTasks API asynchronously +// api document: https://help.aliyun.com/api/rds/describetasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeTasksWithCallback(request *DescribeTasksRequest, callback func(response *DescribeTasksResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeTasksResponse + var err error + defer close(result) + response, err = client.DescribeTasks(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeTasksRequest is the request struct for api DescribeTasks +type DescribeTasksRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + Status string `position:"Query" name:"Status"` + TaskAction string `position:"Query" name:"TaskAction"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeTasksResponse is the response struct for api DescribeTasks +type DescribeTasksResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + Items ItemsInDescribeTasks `json:"Items" xml:"Items"` +} + +// CreateDescribeTasksRequest creates a request to invoke DescribeTasks API +func CreateDescribeTasksRequest() (request *DescribeTasksRequest) { + request = &DescribeTasksRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeTasks", "rds", "openAPI") + return +} + +// CreateDescribeTasksResponse creates a response to parse from DescribeTasks response +func CreateDescribeTasksResponse() (response *DescribeTasksResponse) { + response = &DescribeTasksResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_verification_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_verification_list.go new file mode 100644 index 0000000..4fb6cb0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_verification_list.go @@ -0,0 +1,117 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVerificationList invokes the rds.DescribeVerificationList API synchronously +// api document: https://help.aliyun.com/api/rds/describeverificationlist.html +func (client *Client) DescribeVerificationList(request *DescribeVerificationListRequest) (response *DescribeVerificationListResponse, err error) { + response = CreateDescribeVerificationListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVerificationListWithChan invokes the rds.DescribeVerificationList API asynchronously +// api document: https://help.aliyun.com/api/rds/describeverificationlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVerificationListWithChan(request *DescribeVerificationListRequest) (<-chan *DescribeVerificationListResponse, <-chan error) { + responseChan := make(chan *DescribeVerificationListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVerificationList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVerificationListWithCallback invokes the rds.DescribeVerificationList API asynchronously +// api document: https://help.aliyun.com/api/rds/describeverificationlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVerificationListWithCallback(request *DescribeVerificationListRequest, callback func(response *DescribeVerificationListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVerificationListResponse + var err error + defer close(result) + response, err = client.DescribeVerificationList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVerificationListRequest is the request struct for api DescribeVerificationList +type DescribeVerificationListRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeVerificationListResponse is the response struct for api DescribeVerificationList +type DescribeVerificationListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ReplicaId string `json:"ReplicaId" xml:"ReplicaId"` + PagNumber int `json:"PagNumber" xml:"PagNumber"` + PageRecordCount int `json:"PageRecordCount" xml:"PageRecordCount"` + TotalRecordCount int `json:"TotalRecordCount" xml:"TotalRecordCount"` + Items []ItemsItem `json:"Items" xml:"Items"` +} + +// CreateDescribeVerificationListRequest creates a request to invoke DescribeVerificationList API +func CreateDescribeVerificationListRequest() (request *DescribeVerificationListRequest) { + request = &DescribeVerificationListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeVerificationList", "rds", "openAPI") + return +} + +// CreateDescribeVerificationListResponse creates a response to parse from DescribeVerificationList response +func CreateDescribeVerificationListResponse() (response *DescribeVerificationListResponse) { + response = &DescribeVerificationListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_vpc_zone_nos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_vpc_zone_nos.go new file mode 100644 index 0000000..507de53 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_vpc_zone_nos.go @@ -0,0 +1,110 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVpcZoneNos invokes the rds.DescribeVpcZoneNos API synchronously +// api document: https://help.aliyun.com/api/rds/describevpczonenos.html +func (client *Client) DescribeVpcZoneNos(request *DescribeVpcZoneNosRequest) (response *DescribeVpcZoneNosResponse, err error) { + response = CreateDescribeVpcZoneNosResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVpcZoneNosWithChan invokes the rds.DescribeVpcZoneNos API asynchronously +// api document: https://help.aliyun.com/api/rds/describevpczonenos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVpcZoneNosWithChan(request *DescribeVpcZoneNosRequest) (<-chan *DescribeVpcZoneNosResponse, <-chan error) { + responseChan := make(chan *DescribeVpcZoneNosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVpcZoneNos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVpcZoneNosWithCallback invokes the rds.DescribeVpcZoneNos API asynchronously +// api document: https://help.aliyun.com/api/rds/describevpczonenos.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVpcZoneNosWithCallback(request *DescribeVpcZoneNosRequest, callback func(response *DescribeVpcZoneNosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVpcZoneNosResponse + var err error + defer close(result) + response, err = client.DescribeVpcZoneNos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVpcZoneNosRequest is the request struct for api DescribeVpcZoneNos +type DescribeVpcZoneNosRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Region string `position:"Query" name:"Region"` + ZoneId string `position:"Query" name:"ZoneId"` +} + +// DescribeVpcZoneNosResponse is the response struct for api DescribeVpcZoneNos +type DescribeVpcZoneNosResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Items ItemsInDescribeVpcZoneNos `json:"Items" xml:"Items"` +} + +// CreateDescribeVpcZoneNosRequest creates a request to invoke DescribeVpcZoneNos API +func CreateDescribeVpcZoneNosRequest() (request *DescribeVpcZoneNosRequest) { + request = &DescribeVpcZoneNosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "DescribeVpcZoneNos", "rds", "openAPI") + return +} + +// CreateDescribeVpcZoneNosResponse creates a response to parse from DescribeVpcZoneNos response +func CreateDescribeVpcZoneNosResponse() (response *DescribeVpcZoneNosResponse) { + response = &DescribeVpcZoneNosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/grant_account_privilege.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/grant_account_privilege.go new file mode 100644 index 0000000..220083c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/grant_account_privilege.go @@ -0,0 +1,110 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GrantAccountPrivilege invokes the rds.GrantAccountPrivilege API synchronously +// api document: https://help.aliyun.com/api/rds/grantaccountprivilege.html +func (client *Client) GrantAccountPrivilege(request *GrantAccountPrivilegeRequest) (response *GrantAccountPrivilegeResponse, err error) { + response = CreateGrantAccountPrivilegeResponse() + err = client.DoAction(request, response) + return +} + +// GrantAccountPrivilegeWithChan invokes the rds.GrantAccountPrivilege API asynchronously +// api document: https://help.aliyun.com/api/rds/grantaccountprivilege.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GrantAccountPrivilegeWithChan(request *GrantAccountPrivilegeRequest) (<-chan *GrantAccountPrivilegeResponse, <-chan error) { + responseChan := make(chan *GrantAccountPrivilegeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GrantAccountPrivilege(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GrantAccountPrivilegeWithCallback invokes the rds.GrantAccountPrivilege API asynchronously +// api document: https://help.aliyun.com/api/rds/grantaccountprivilege.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GrantAccountPrivilegeWithCallback(request *GrantAccountPrivilegeRequest, callback func(response *GrantAccountPrivilegeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GrantAccountPrivilegeResponse + var err error + defer close(result) + response, err = client.GrantAccountPrivilege(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GrantAccountPrivilegeRequest is the request struct for api GrantAccountPrivilege +type GrantAccountPrivilegeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + AccountName string `position:"Query" name:"AccountName"` + DBName string `position:"Query" name:"DBName"` + AccountPrivilege string `position:"Query" name:"AccountPrivilege"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// GrantAccountPrivilegeResponse is the response struct for api GrantAccountPrivilege +type GrantAccountPrivilegeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateGrantAccountPrivilegeRequest creates a request to invoke GrantAccountPrivilege API +func CreateGrantAccountPrivilegeRequest() (request *GrantAccountPrivilegeRequest) { + request = &GrantAccountPrivilegeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "GrantAccountPrivilege", "rds", "openAPI") + return +} + +// CreateGrantAccountPrivilegeResponse creates a response to parse from GrantAccountPrivilege response +func CreateGrantAccountPrivilegeResponse() (response *GrantAccountPrivilegeResponse) { + response = &GrantAccountPrivilegeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/grant_operator_permission.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/grant_operator_permission.go new file mode 100644 index 0000000..dd9dda2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/grant_operator_permission.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GrantOperatorPermission invokes the rds.GrantOperatorPermission API synchronously +// api document: https://help.aliyun.com/api/rds/grantoperatorpermission.html +func (client *Client) GrantOperatorPermission(request *GrantOperatorPermissionRequest) (response *GrantOperatorPermissionResponse, err error) { + response = CreateGrantOperatorPermissionResponse() + err = client.DoAction(request, response) + return +} + +// GrantOperatorPermissionWithChan invokes the rds.GrantOperatorPermission API asynchronously +// api document: https://help.aliyun.com/api/rds/grantoperatorpermission.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GrantOperatorPermissionWithChan(request *GrantOperatorPermissionRequest) (<-chan *GrantOperatorPermissionResponse, <-chan error) { + responseChan := make(chan *GrantOperatorPermissionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GrantOperatorPermission(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GrantOperatorPermissionWithCallback invokes the rds.GrantOperatorPermission API asynchronously +// api document: https://help.aliyun.com/api/rds/grantoperatorpermission.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GrantOperatorPermissionWithCallback(request *GrantOperatorPermissionRequest, callback func(response *GrantOperatorPermissionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GrantOperatorPermissionResponse + var err error + defer close(result) + response, err = client.GrantOperatorPermission(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GrantOperatorPermissionRequest is the request struct for api GrantOperatorPermission +type GrantOperatorPermissionRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + ExpiredTime string `position:"Query" name:"ExpiredTime"` + Privileges string `position:"Query" name:"Privileges"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// GrantOperatorPermissionResponse is the response struct for api GrantOperatorPermission +type GrantOperatorPermissionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateGrantOperatorPermissionRequest creates a request to invoke GrantOperatorPermission API +func CreateGrantOperatorPermissionRequest() (request *GrantOperatorPermissionRequest) { + request = &GrantOperatorPermissionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "GrantOperatorPermission", "rds", "openAPI") + return +} + +// CreateGrantOperatorPermissionResponse creates a response to parse from GrantOperatorPermission response +func CreateGrantOperatorPermissionResponse() (response *GrantOperatorPermissionResponse) { + response = &GrantOperatorPermissionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/import_data_for_sql_server.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/import_data_for_sql_server.go new file mode 100644 index 0000000..9595097 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/import_data_for_sql_server.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ImportDataForSQLServer invokes the rds.ImportDataForSQLServer API synchronously +// api document: https://help.aliyun.com/api/rds/importdataforsqlserver.html +func (client *Client) ImportDataForSQLServer(request *ImportDataForSQLServerRequest) (response *ImportDataForSQLServerResponse, err error) { + response = CreateImportDataForSQLServerResponse() + err = client.DoAction(request, response) + return +} + +// ImportDataForSQLServerWithChan invokes the rds.ImportDataForSQLServer API asynchronously +// api document: https://help.aliyun.com/api/rds/importdataforsqlserver.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImportDataForSQLServerWithChan(request *ImportDataForSQLServerRequest) (<-chan *ImportDataForSQLServerResponse, <-chan error) { + responseChan := make(chan *ImportDataForSQLServerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ImportDataForSQLServer(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ImportDataForSQLServerWithCallback invokes the rds.ImportDataForSQLServer API asynchronously +// api document: https://help.aliyun.com/api/rds/importdataforsqlserver.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImportDataForSQLServerWithCallback(request *ImportDataForSQLServerRequest, callback func(response *ImportDataForSQLServerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ImportDataForSQLServerResponse + var err error + defer close(result) + response, err = client.ImportDataForSQLServer(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ImportDataForSQLServerRequest is the request struct for api ImportDataForSQLServer +type ImportDataForSQLServerRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + FileName string `position:"Query" name:"FileName"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ImportDataForSQLServerResponse is the response struct for api ImportDataForSQLServer +type ImportDataForSQLServerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ImportID int `json:"ImportID" xml:"ImportID"` +} + +// CreateImportDataForSQLServerRequest creates a request to invoke ImportDataForSQLServer API +func CreateImportDataForSQLServerRequest() (request *ImportDataForSQLServerRequest) { + request = &ImportDataForSQLServerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ImportDataForSQLServer", "rds", "openAPI") + return +} + +// CreateImportDataForSQLServerResponse creates a response to parse from ImportDataForSQLServer response +func CreateImportDataForSQLServerResponse() (response *ImportDataForSQLServerResponse) { + response = &ImportDataForSQLServerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/import_data_from_database.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/import_data_from_database.go new file mode 100644 index 0000000..ec0582e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/import_data_from_database.go @@ -0,0 +1,115 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ImportDataFromDatabase invokes the rds.ImportDataFromDatabase API synchronously +// api document: https://help.aliyun.com/api/rds/importdatafromdatabase.html +func (client *Client) ImportDataFromDatabase(request *ImportDataFromDatabaseRequest) (response *ImportDataFromDatabaseResponse, err error) { + response = CreateImportDataFromDatabaseResponse() + err = client.DoAction(request, response) + return +} + +// ImportDataFromDatabaseWithChan invokes the rds.ImportDataFromDatabase API asynchronously +// api document: https://help.aliyun.com/api/rds/importdatafromdatabase.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImportDataFromDatabaseWithChan(request *ImportDataFromDatabaseRequest) (<-chan *ImportDataFromDatabaseResponse, <-chan error) { + responseChan := make(chan *ImportDataFromDatabaseResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ImportDataFromDatabase(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ImportDataFromDatabaseWithCallback invokes the rds.ImportDataFromDatabase API asynchronously +// api document: https://help.aliyun.com/api/rds/importdatafromdatabase.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImportDataFromDatabaseWithCallback(request *ImportDataFromDatabaseRequest, callback func(response *ImportDataFromDatabaseResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ImportDataFromDatabaseResponse + var err error + defer close(result) + response, err = client.ImportDataFromDatabase(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ImportDataFromDatabaseRequest is the request struct for api ImportDataFromDatabase +type ImportDataFromDatabaseRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + SourceDatabaseIp string `position:"Query" name:"SourceDatabaseIp"` + SourceDatabasePort string `position:"Query" name:"SourceDatabasePort"` + SourceDatabaseUserName string `position:"Query" name:"SourceDatabaseUserName"` + SourceDatabasePassword string `position:"Query" name:"SourceDatabasePassword"` + ImportDataType string `position:"Query" name:"ImportDataType"` + IsLockTable string `position:"Query" name:"IsLockTable"` + SourceDatabaseDBNames string `position:"Query" name:"SourceDatabaseDBNames"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ImportDataFromDatabaseResponse is the response struct for api ImportDataFromDatabase +type ImportDataFromDatabaseResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ImportId int `json:"ImportId" xml:"ImportId"` +} + +// CreateImportDataFromDatabaseRequest creates a request to invoke ImportDataFromDatabase API +func CreateImportDataFromDatabaseRequest() (request *ImportDataFromDatabaseRequest) { + request = &ImportDataFromDatabaseRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ImportDataFromDatabase", "rds", "openAPI") + return +} + +// CreateImportDataFromDatabaseResponse creates a response to parse from ImportDataFromDatabase response +func CreateImportDataFromDatabaseResponse() (response *ImportDataFromDatabaseResponse) { + response = &ImportDataFromDatabaseResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/import_database_between_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/import_database_between_instances.go new file mode 100644 index 0000000..09af6c9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/import_database_between_instances.go @@ -0,0 +1,110 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ImportDatabaseBetweenInstances invokes the rds.ImportDatabaseBetweenInstances API synchronously +// api document: https://help.aliyun.com/api/rds/importdatabasebetweeninstances.html +func (client *Client) ImportDatabaseBetweenInstances(request *ImportDatabaseBetweenInstancesRequest) (response *ImportDatabaseBetweenInstancesResponse, err error) { + response = CreateImportDatabaseBetweenInstancesResponse() + err = client.DoAction(request, response) + return +} + +// ImportDatabaseBetweenInstancesWithChan invokes the rds.ImportDatabaseBetweenInstances API asynchronously +// api document: https://help.aliyun.com/api/rds/importdatabasebetweeninstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImportDatabaseBetweenInstancesWithChan(request *ImportDatabaseBetweenInstancesRequest) (<-chan *ImportDatabaseBetweenInstancesResponse, <-chan error) { + responseChan := make(chan *ImportDatabaseBetweenInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ImportDatabaseBetweenInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ImportDatabaseBetweenInstancesWithCallback invokes the rds.ImportDatabaseBetweenInstances API asynchronously +// api document: https://help.aliyun.com/api/rds/importdatabasebetweeninstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ImportDatabaseBetweenInstancesWithCallback(request *ImportDatabaseBetweenInstancesRequest, callback func(response *ImportDatabaseBetweenInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ImportDatabaseBetweenInstancesResponse + var err error + defer close(result) + response, err = client.ImportDatabaseBetweenInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ImportDatabaseBetweenInstancesRequest is the request struct for api ImportDatabaseBetweenInstances +type ImportDatabaseBetweenInstancesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + SourceDBInstanceId string `position:"Query" name:"SourceDBInstanceId"` + DBInfo string `position:"Query" name:"DBInfo"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ImportDatabaseBetweenInstancesResponse is the response struct for api ImportDatabaseBetweenInstances +type ImportDatabaseBetweenInstancesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ImportId string `json:"ImportId" xml:"ImportId"` +} + +// CreateImportDatabaseBetweenInstancesRequest creates a request to invoke ImportDatabaseBetweenInstances API +func CreateImportDatabaseBetweenInstancesRequest() (request *ImportDatabaseBetweenInstancesRequest) { + request = &ImportDatabaseBetweenInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ImportDatabaseBetweenInstances", "rds", "openAPI") + return +} + +// CreateImportDatabaseBetweenInstancesResponse creates a response to parse from ImportDatabaseBetweenInstances response +func CreateImportDatabaseBetweenInstancesResponse() (response *ImportDatabaseBetweenInstancesResponse) { + response = &ImportDatabaseBetweenInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/login_db_instancefrom_cloud_dba.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/login_db_instancefrom_cloud_dba.go new file mode 100644 index 0000000..7e1a029 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/login_db_instancefrom_cloud_dba.go @@ -0,0 +1,107 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// LoginDBInstancefromCloudDBA invokes the rds.LoginDBInstancefromCloudDBA API synchronously +// api document: https://help.aliyun.com/api/rds/logindbinstancefromclouddba.html +func (client *Client) LoginDBInstancefromCloudDBA(request *LoginDBInstancefromCloudDBARequest) (response *LoginDBInstancefromCloudDBAResponse, err error) { + response = CreateLoginDBInstancefromCloudDBAResponse() + err = client.DoAction(request, response) + return +} + +// LoginDBInstancefromCloudDBAWithChan invokes the rds.LoginDBInstancefromCloudDBA API asynchronously +// api document: https://help.aliyun.com/api/rds/logindbinstancefromclouddba.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) LoginDBInstancefromCloudDBAWithChan(request *LoginDBInstancefromCloudDBARequest) (<-chan *LoginDBInstancefromCloudDBAResponse, <-chan error) { + responseChan := make(chan *LoginDBInstancefromCloudDBAResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.LoginDBInstancefromCloudDBA(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// LoginDBInstancefromCloudDBAWithCallback invokes the rds.LoginDBInstancefromCloudDBA API asynchronously +// api document: https://help.aliyun.com/api/rds/logindbinstancefromclouddba.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) LoginDBInstancefromCloudDBAWithCallback(request *LoginDBInstancefromCloudDBARequest, callback func(response *LoginDBInstancefromCloudDBAResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *LoginDBInstancefromCloudDBAResponse + var err error + defer close(result) + response, err = client.LoginDBInstancefromCloudDBA(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// LoginDBInstancefromCloudDBARequest is the request struct for api LoginDBInstancefromCloudDBA +type LoginDBInstancefromCloudDBARequest struct { + *requests.RpcRequest + DBInstanceId string `position:"Query" name:"DBInstanceId"` + ServiceRequestType string `position:"Query" name:"ServiceRequestType"` + ServiceRequestParam string `position:"Query" name:"ServiceRequestParam"` +} + +// LoginDBInstancefromCloudDBAResponse is the response struct for api LoginDBInstancefromCloudDBA +type LoginDBInstancefromCloudDBAResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ListData string `json:"ListData" xml:"ListData"` + AttrData string `json:"AttrData" xml:"AttrData"` +} + +// CreateLoginDBInstancefromCloudDBARequest creates a request to invoke LoginDBInstancefromCloudDBA API +func CreateLoginDBInstancefromCloudDBARequest() (request *LoginDBInstancefromCloudDBARequest) { + request = &LoginDBInstancefromCloudDBARequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "LoginDBInstancefromCloudDBA", "rds", "openAPI") + return +} + +// CreateLoginDBInstancefromCloudDBAResponse creates a response to parse from LoginDBInstancefromCloudDBA response +func CreateLoginDBInstancefromCloudDBAResponse() (response *LoginDBInstancefromCloudDBAResponse) { + response = &LoginDBInstancefromCloudDBAResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/migrate_to_other_zone.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/migrate_to_other_zone.go new file mode 100644 index 0000000..e0ba0bc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/migrate_to_other_zone.go @@ -0,0 +1,110 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// MigrateToOtherZone invokes the rds.MigrateToOtherZone API synchronously +// api document: https://help.aliyun.com/api/rds/migratetootherzone.html +func (client *Client) MigrateToOtherZone(request *MigrateToOtherZoneRequest) (response *MigrateToOtherZoneResponse, err error) { + response = CreateMigrateToOtherZoneResponse() + err = client.DoAction(request, response) + return +} + +// MigrateToOtherZoneWithChan invokes the rds.MigrateToOtherZone API asynchronously +// api document: https://help.aliyun.com/api/rds/migratetootherzone.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) MigrateToOtherZoneWithChan(request *MigrateToOtherZoneRequest) (<-chan *MigrateToOtherZoneResponse, <-chan error) { + responseChan := make(chan *MigrateToOtherZoneResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.MigrateToOtherZone(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// MigrateToOtherZoneWithCallback invokes the rds.MigrateToOtherZone API asynchronously +// api document: https://help.aliyun.com/api/rds/migratetootherzone.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) MigrateToOtherZoneWithCallback(request *MigrateToOtherZoneRequest, callback func(response *MigrateToOtherZoneResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *MigrateToOtherZoneResponse + var err error + defer close(result) + response, err = client.MigrateToOtherZone(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// MigrateToOtherZoneRequest is the request struct for api MigrateToOtherZone +type MigrateToOtherZoneRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + ZoneId string `position:"Query" name:"ZoneId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EffectiveTime string `position:"Query" name:"EffectiveTime"` + VSwitchId string `position:"Query" name:"VSwitchId"` +} + +// MigrateToOtherZoneResponse is the response struct for api MigrateToOtherZone +type MigrateToOtherZoneResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateMigrateToOtherZoneRequest creates a request to invoke MigrateToOtherZone API +func CreateMigrateToOtherZoneRequest() (request *MigrateToOtherZoneRequest) { + request = &MigrateToOtherZoneRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "MigrateToOtherZone", "rds", "openAPI") + return +} + +// CreateMigrateToOtherZoneResponse creates a response to parse from MigrateToOtherZone response +func CreateMigrateToOtherZoneResponse() (response *MigrateToOtherZoneResponse) { + response = &MigrateToOtherZoneResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_account_description.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_account_description.go new file mode 100644 index 0000000..91b8001 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_account_description.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyAccountDescription invokes the rds.ModifyAccountDescription API synchronously +// api document: https://help.aliyun.com/api/rds/modifyaccountdescription.html +func (client *Client) ModifyAccountDescription(request *ModifyAccountDescriptionRequest) (response *ModifyAccountDescriptionResponse, err error) { + response = CreateModifyAccountDescriptionResponse() + err = client.DoAction(request, response) + return +} + +// ModifyAccountDescriptionWithChan invokes the rds.ModifyAccountDescription API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyaccountdescription.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyAccountDescriptionWithChan(request *ModifyAccountDescriptionRequest) (<-chan *ModifyAccountDescriptionResponse, <-chan error) { + responseChan := make(chan *ModifyAccountDescriptionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyAccountDescription(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyAccountDescriptionWithCallback invokes the rds.ModifyAccountDescription API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyaccountdescription.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyAccountDescriptionWithCallback(request *ModifyAccountDescriptionRequest, callback func(response *ModifyAccountDescriptionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyAccountDescriptionResponse + var err error + defer close(result) + response, err = client.ModifyAccountDescription(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyAccountDescriptionRequest is the request struct for api ModifyAccountDescription +type ModifyAccountDescriptionRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + AccountName string `position:"Query" name:"AccountName"` + AccountDescription string `position:"Query" name:"AccountDescription"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyAccountDescriptionResponse is the response struct for api ModifyAccountDescription +type ModifyAccountDescriptionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyAccountDescriptionRequest creates a request to invoke ModifyAccountDescription API +func CreateModifyAccountDescriptionRequest() (request *ModifyAccountDescriptionRequest) { + request = &ModifyAccountDescriptionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyAccountDescription", "rds", "openAPI") + return +} + +// CreateModifyAccountDescriptionResponse creates a response to parse from ModifyAccountDescription response +func CreateModifyAccountDescriptionResponse() (response *ModifyAccountDescriptionResponse) { + response = &ModifyAccountDescriptionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_backup_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_backup_policy.go new file mode 100644 index 0000000..10fbae9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_backup_policy.go @@ -0,0 +1,112 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyBackupPolicy invokes the rds.ModifyBackupPolicy API synchronously +// api document: https://help.aliyun.com/api/rds/modifybackuppolicy.html +func (client *Client) ModifyBackupPolicy(request *ModifyBackupPolicyRequest) (response *ModifyBackupPolicyResponse, err error) { + response = CreateModifyBackupPolicyResponse() + err = client.DoAction(request, response) + return +} + +// ModifyBackupPolicyWithChan invokes the rds.ModifyBackupPolicy API asynchronously +// api document: https://help.aliyun.com/api/rds/modifybackuppolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyBackupPolicyWithChan(request *ModifyBackupPolicyRequest) (<-chan *ModifyBackupPolicyResponse, <-chan error) { + responseChan := make(chan *ModifyBackupPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyBackupPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyBackupPolicyWithCallback invokes the rds.ModifyBackupPolicy API asynchronously +// api document: https://help.aliyun.com/api/rds/modifybackuppolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyBackupPolicyWithCallback(request *ModifyBackupPolicyRequest, callback func(response *ModifyBackupPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyBackupPolicyResponse + var err error + defer close(result) + response, err = client.ModifyBackupPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyBackupPolicyRequest is the request struct for api ModifyBackupPolicy +type ModifyBackupPolicyRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + PreferredBackupTime string `position:"Query" name:"PreferredBackupTime"` + PreferredBackupPeriod string `position:"Query" name:"PreferredBackupPeriod"` + BackupRetentionPeriod string `position:"Query" name:"BackupRetentionPeriod"` + BackupLog string `position:"Query" name:"BackupLog"` + LogBackupRetentionPeriod string `position:"Query" name:"LogBackupRetentionPeriod"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyBackupPolicyResponse is the response struct for api ModifyBackupPolicy +type ModifyBackupPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyBackupPolicyRequest creates a request to invoke ModifyBackupPolicy API +func CreateModifyBackupPolicyRequest() (request *ModifyBackupPolicyRequest) { + request = &ModifyBackupPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyBackupPolicy", "rds", "openAPI") + return +} + +// CreateModifyBackupPolicyResponse creates a response to parse from ModifyBackupPolicy response +func CreateModifyBackupPolicyResponse() (response *ModifyBackupPolicyResponse) { + response = &ModifyBackupPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_damp_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_damp_policy.go new file mode 100644 index 0000000..9f25c68 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_damp_policy.go @@ -0,0 +1,115 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDampPolicy invokes the rds.ModifyDampPolicy API synchronously +// api document: https://help.aliyun.com/api/rds/modifydamppolicy.html +func (client *Client) ModifyDampPolicy(request *ModifyDampPolicyRequest) (response *ModifyDampPolicyResponse, err error) { + response = CreateModifyDampPolicyResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDampPolicyWithChan invokes the rds.ModifyDampPolicy API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydamppolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDampPolicyWithChan(request *ModifyDampPolicyRequest) (<-chan *ModifyDampPolicyResponse, <-chan error) { + responseChan := make(chan *ModifyDampPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDampPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDampPolicyWithCallback invokes the rds.ModifyDampPolicy API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydamppolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDampPolicyWithCallback(request *ModifyDampPolicyRequest, callback func(response *ModifyDampPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDampPolicyResponse + var err error + defer close(result) + response, err = client.ModifyDampPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDampPolicyRequest is the request struct for api ModifyDampPolicy +type ModifyDampPolicyRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + PolicyName string `position:"Query" name:"PolicyName"` + Handlers string `position:"Query" name:"Handlers"` + SourceRules string `position:"Query" name:"SourceRules"` + TimeRules string `position:"Query" name:"TimeRules"` + ActionRules string `position:"Query" name:"ActionRules"` +} + +// ModifyDampPolicyResponse is the response struct for api ModifyDampPolicy +type ModifyDampPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PolicyId string `json:"PolicyId" xml:"PolicyId"` + PolicyName string `json:"PolicyName" xml:"PolicyName"` +} + +// CreateModifyDampPolicyRequest creates a request to invoke ModifyDampPolicy API +func CreateModifyDampPolicyRequest() (request *ModifyDampPolicyRequest) { + request = &ModifyDampPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyDampPolicy", "rds", "openAPI") + return +} + +// CreateModifyDampPolicyResponse creates a response to parse from ModifyDampPolicy response +func CreateModifyDampPolicyResponse() (response *ModifyDampPolicyResponse) { + response = &ModifyDampPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_description.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_description.go new file mode 100644 index 0000000..e8bc490 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_description.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDBDescription invokes the rds.ModifyDBDescription API synchronously +// api document: https://help.aliyun.com/api/rds/modifydbdescription.html +func (client *Client) ModifyDBDescription(request *ModifyDBDescriptionRequest) (response *ModifyDBDescriptionResponse, err error) { + response = CreateModifyDBDescriptionResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDBDescriptionWithChan invokes the rds.ModifyDBDescription API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbdescription.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBDescriptionWithChan(request *ModifyDBDescriptionRequest) (<-chan *ModifyDBDescriptionResponse, <-chan error) { + responseChan := make(chan *ModifyDBDescriptionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDBDescription(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDBDescriptionWithCallback invokes the rds.ModifyDBDescription API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbdescription.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBDescriptionWithCallback(request *ModifyDBDescriptionRequest, callback func(response *ModifyDBDescriptionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDBDescriptionResponse + var err error + defer close(result) + response, err = client.ModifyDBDescription(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDBDescriptionRequest is the request struct for api ModifyDBDescription +type ModifyDBDescriptionRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + DBName string `position:"Query" name:"DBName"` + DBDescription string `position:"Query" name:"DBDescription"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyDBDescriptionResponse is the response struct for api ModifyDBDescription +type ModifyDBDescriptionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyDBDescriptionRequest creates a request to invoke ModifyDBDescription API +func CreateModifyDBDescriptionRequest() (request *ModifyDBDescriptionRequest) { + request = &ModifyDBDescriptionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyDBDescription", "rds", "openAPI") + return +} + +// CreateModifyDBDescriptionResponse creates a response to parse from ModifyDBDescription response +func CreateModifyDBDescriptionResponse() (response *ModifyDBDescriptionResponse) { + response = &ModifyDBDescriptionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_connection_mode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_connection_mode.go new file mode 100644 index 0000000..27061f8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_connection_mode.go @@ -0,0 +1,108 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDBInstanceConnectionMode invokes the rds.ModifyDBInstanceConnectionMode API synchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstanceconnectionmode.html +func (client *Client) ModifyDBInstanceConnectionMode(request *ModifyDBInstanceConnectionModeRequest) (response *ModifyDBInstanceConnectionModeResponse, err error) { + response = CreateModifyDBInstanceConnectionModeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDBInstanceConnectionModeWithChan invokes the rds.ModifyDBInstanceConnectionMode API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstanceconnectionmode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceConnectionModeWithChan(request *ModifyDBInstanceConnectionModeRequest) (<-chan *ModifyDBInstanceConnectionModeResponse, <-chan error) { + responseChan := make(chan *ModifyDBInstanceConnectionModeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDBInstanceConnectionMode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDBInstanceConnectionModeWithCallback invokes the rds.ModifyDBInstanceConnectionMode API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstanceconnectionmode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceConnectionModeWithCallback(request *ModifyDBInstanceConnectionModeRequest, callback func(response *ModifyDBInstanceConnectionModeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDBInstanceConnectionModeResponse + var err error + defer close(result) + response, err = client.ModifyDBInstanceConnectionMode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDBInstanceConnectionModeRequest is the request struct for api ModifyDBInstanceConnectionMode +type ModifyDBInstanceConnectionModeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + ConnectionMode string `position:"Query" name:"ConnectionMode"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyDBInstanceConnectionModeResponse is the response struct for api ModifyDBInstanceConnectionMode +type ModifyDBInstanceConnectionModeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyDBInstanceConnectionModeRequest creates a request to invoke ModifyDBInstanceConnectionMode API +func CreateModifyDBInstanceConnectionModeRequest() (request *ModifyDBInstanceConnectionModeRequest) { + request = &ModifyDBInstanceConnectionModeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyDBInstanceConnectionMode", "rds", "openAPI") + return +} + +// CreateModifyDBInstanceConnectionModeResponse creates a response to parse from ModifyDBInstanceConnectionMode response +func CreateModifyDBInstanceConnectionModeResponse() (response *ModifyDBInstanceConnectionModeResponse) { + response = &ModifyDBInstanceConnectionModeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_connection_string.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_connection_string.go new file mode 100644 index 0000000..8b99d6e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_connection_string.go @@ -0,0 +1,110 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDBInstanceConnectionString invokes the rds.ModifyDBInstanceConnectionString API synchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstanceconnectionstring.html +func (client *Client) ModifyDBInstanceConnectionString(request *ModifyDBInstanceConnectionStringRequest) (response *ModifyDBInstanceConnectionStringResponse, err error) { + response = CreateModifyDBInstanceConnectionStringResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDBInstanceConnectionStringWithChan invokes the rds.ModifyDBInstanceConnectionString API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstanceconnectionstring.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceConnectionStringWithChan(request *ModifyDBInstanceConnectionStringRequest) (<-chan *ModifyDBInstanceConnectionStringResponse, <-chan error) { + responseChan := make(chan *ModifyDBInstanceConnectionStringResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDBInstanceConnectionString(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDBInstanceConnectionStringWithCallback invokes the rds.ModifyDBInstanceConnectionString API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstanceconnectionstring.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceConnectionStringWithCallback(request *ModifyDBInstanceConnectionStringRequest, callback func(response *ModifyDBInstanceConnectionStringResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDBInstanceConnectionStringResponse + var err error + defer close(result) + response, err = client.ModifyDBInstanceConnectionString(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDBInstanceConnectionStringRequest is the request struct for api ModifyDBInstanceConnectionString +type ModifyDBInstanceConnectionStringRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + CurrentConnectionString string `position:"Query" name:"CurrentConnectionString"` + ConnectionStringPrefix string `position:"Query" name:"ConnectionStringPrefix"` + Port string `position:"Query" name:"Port"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyDBInstanceConnectionStringResponse is the response struct for api ModifyDBInstanceConnectionString +type ModifyDBInstanceConnectionStringResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyDBInstanceConnectionStringRequest creates a request to invoke ModifyDBInstanceConnectionString API +func CreateModifyDBInstanceConnectionStringRequest() (request *ModifyDBInstanceConnectionStringRequest) { + request = &ModifyDBInstanceConnectionStringRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyDBInstanceConnectionString", "rds", "openAPI") + return +} + +// CreateModifyDBInstanceConnectionStringResponse creates a response to parse from ModifyDBInstanceConnectionString response +func CreateModifyDBInstanceConnectionStringResponse() (response *ModifyDBInstanceConnectionStringResponse) { + response = &ModifyDBInstanceConnectionStringResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_description.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_description.go new file mode 100644 index 0000000..97afb51 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_description.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDBInstanceDescription invokes the rds.ModifyDBInstanceDescription API synchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancedescription.html +func (client *Client) ModifyDBInstanceDescription(request *ModifyDBInstanceDescriptionRequest) (response *ModifyDBInstanceDescriptionResponse, err error) { + response = CreateModifyDBInstanceDescriptionResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDBInstanceDescriptionWithChan invokes the rds.ModifyDBInstanceDescription API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancedescription.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceDescriptionWithChan(request *ModifyDBInstanceDescriptionRequest) (<-chan *ModifyDBInstanceDescriptionResponse, <-chan error) { + responseChan := make(chan *ModifyDBInstanceDescriptionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDBInstanceDescription(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDBInstanceDescriptionWithCallback invokes the rds.ModifyDBInstanceDescription API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancedescription.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceDescriptionWithCallback(request *ModifyDBInstanceDescriptionRequest, callback func(response *ModifyDBInstanceDescriptionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDBInstanceDescriptionResponse + var err error + defer close(result) + response, err = client.ModifyDBInstanceDescription(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDBInstanceDescriptionRequest is the request struct for api ModifyDBInstanceDescription +type ModifyDBInstanceDescriptionRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + DBInstanceDescription string `position:"Query" name:"DBInstanceDescription"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyDBInstanceDescriptionResponse is the response struct for api ModifyDBInstanceDescription +type ModifyDBInstanceDescriptionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyDBInstanceDescriptionRequest creates a request to invoke ModifyDBInstanceDescription API +func CreateModifyDBInstanceDescriptionRequest() (request *ModifyDBInstanceDescriptionRequest) { + request = &ModifyDBInstanceDescriptionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyDBInstanceDescription", "rds", "openAPI") + return +} + +// CreateModifyDBInstanceDescriptionResponse creates a response to parse from ModifyDBInstanceDescription response +func CreateModifyDBInstanceDescriptionResponse() (response *ModifyDBInstanceDescriptionResponse) { + response = &ModifyDBInstanceDescriptionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_ha_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_ha_config.go new file mode 100644 index 0000000..c947543 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_ha_config.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDBInstanceHAConfig invokes the rds.ModifyDBInstanceHAConfig API synchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancehaconfig.html +func (client *Client) ModifyDBInstanceHAConfig(request *ModifyDBInstanceHAConfigRequest) (response *ModifyDBInstanceHAConfigResponse, err error) { + response = CreateModifyDBInstanceHAConfigResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDBInstanceHAConfigWithChan invokes the rds.ModifyDBInstanceHAConfig API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancehaconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceHAConfigWithChan(request *ModifyDBInstanceHAConfigRequest) (<-chan *ModifyDBInstanceHAConfigResponse, <-chan error) { + responseChan := make(chan *ModifyDBInstanceHAConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDBInstanceHAConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDBInstanceHAConfigWithCallback invokes the rds.ModifyDBInstanceHAConfig API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancehaconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceHAConfigWithCallback(request *ModifyDBInstanceHAConfigRequest, callback func(response *ModifyDBInstanceHAConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDBInstanceHAConfigResponse + var err error + defer close(result) + response, err = client.ModifyDBInstanceHAConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDBInstanceHAConfigRequest is the request struct for api ModifyDBInstanceHAConfig +type ModifyDBInstanceHAConfigRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SyncMode string `position:"Query" name:"SyncMode"` + HAMode string `position:"Query" name:"HAMode"` + DbInstanceId string `position:"Query" name:"DbInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyDBInstanceHAConfigResponse is the response struct for api ModifyDBInstanceHAConfig +type ModifyDBInstanceHAConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyDBInstanceHAConfigRequest creates a request to invoke ModifyDBInstanceHAConfig API +func CreateModifyDBInstanceHAConfigRequest() (request *ModifyDBInstanceHAConfigRequest) { + request = &ModifyDBInstanceHAConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyDBInstanceHAConfig", "rds", "openAPI") + return +} + +// CreateModifyDBInstanceHAConfigResponse creates a response to parse from ModifyDBInstanceHAConfig response +func CreateModifyDBInstanceHAConfigResponse() (response *ModifyDBInstanceHAConfigResponse) { + response = &ModifyDBInstanceHAConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_maintain_time.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_maintain_time.go new file mode 100644 index 0000000..331600f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_maintain_time.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDBInstanceMaintainTime invokes the rds.ModifyDBInstanceMaintainTime API synchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancemaintaintime.html +func (client *Client) ModifyDBInstanceMaintainTime(request *ModifyDBInstanceMaintainTimeRequest) (response *ModifyDBInstanceMaintainTimeResponse, err error) { + response = CreateModifyDBInstanceMaintainTimeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDBInstanceMaintainTimeWithChan invokes the rds.ModifyDBInstanceMaintainTime API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancemaintaintime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceMaintainTimeWithChan(request *ModifyDBInstanceMaintainTimeRequest) (<-chan *ModifyDBInstanceMaintainTimeResponse, <-chan error) { + responseChan := make(chan *ModifyDBInstanceMaintainTimeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDBInstanceMaintainTime(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDBInstanceMaintainTimeWithCallback invokes the rds.ModifyDBInstanceMaintainTime API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancemaintaintime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceMaintainTimeWithCallback(request *ModifyDBInstanceMaintainTimeRequest, callback func(response *ModifyDBInstanceMaintainTimeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDBInstanceMaintainTimeResponse + var err error + defer close(result) + response, err = client.ModifyDBInstanceMaintainTime(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDBInstanceMaintainTimeRequest is the request struct for api ModifyDBInstanceMaintainTime +type ModifyDBInstanceMaintainTimeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + MaintainTime string `position:"Query" name:"MaintainTime"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyDBInstanceMaintainTimeResponse is the response struct for api ModifyDBInstanceMaintainTime +type ModifyDBInstanceMaintainTimeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyDBInstanceMaintainTimeRequest creates a request to invoke ModifyDBInstanceMaintainTime API +func CreateModifyDBInstanceMaintainTimeRequest() (request *ModifyDBInstanceMaintainTimeRequest) { + request = &ModifyDBInstanceMaintainTimeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyDBInstanceMaintainTime", "rds", "openAPI") + return +} + +// CreateModifyDBInstanceMaintainTimeResponse creates a response to parse from ModifyDBInstanceMaintainTime response +func CreateModifyDBInstanceMaintainTimeResponse() (response *ModifyDBInstanceMaintainTimeResponse) { + response = &ModifyDBInstanceMaintainTimeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_monitor.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_monitor.go new file mode 100644 index 0000000..f003658 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_monitor.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDBInstanceMonitor invokes the rds.ModifyDBInstanceMonitor API synchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancemonitor.html +func (client *Client) ModifyDBInstanceMonitor(request *ModifyDBInstanceMonitorRequest) (response *ModifyDBInstanceMonitorResponse, err error) { + response = CreateModifyDBInstanceMonitorResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDBInstanceMonitorWithChan invokes the rds.ModifyDBInstanceMonitor API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancemonitor.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceMonitorWithChan(request *ModifyDBInstanceMonitorRequest) (<-chan *ModifyDBInstanceMonitorResponse, <-chan error) { + responseChan := make(chan *ModifyDBInstanceMonitorResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDBInstanceMonitor(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDBInstanceMonitorWithCallback invokes the rds.ModifyDBInstanceMonitor API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancemonitor.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceMonitorWithCallback(request *ModifyDBInstanceMonitorRequest, callback func(response *ModifyDBInstanceMonitorResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDBInstanceMonitorResponse + var err error + defer close(result) + response, err = client.ModifyDBInstanceMonitor(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDBInstanceMonitorRequest is the request struct for api ModifyDBInstanceMonitor +type ModifyDBInstanceMonitorRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + Period string `position:"Query" name:"Period"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyDBInstanceMonitorResponse is the response struct for api ModifyDBInstanceMonitor +type ModifyDBInstanceMonitorResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyDBInstanceMonitorRequest creates a request to invoke ModifyDBInstanceMonitor API +func CreateModifyDBInstanceMonitorRequest() (request *ModifyDBInstanceMonitorRequest) { + request = &ModifyDBInstanceMonitorRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyDBInstanceMonitor", "rds", "openAPI") + return +} + +// CreateModifyDBInstanceMonitorResponse creates a response to parse from ModifyDBInstanceMonitor response +func CreateModifyDBInstanceMonitorResponse() (response *ModifyDBInstanceMonitorResponse) { + response = &ModifyDBInstanceMonitorResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_network_expire_time.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_network_expire_time.go new file mode 100644 index 0000000..e4ce62f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_network_expire_time.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDBInstanceNetworkExpireTime invokes the rds.ModifyDBInstanceNetworkExpireTime API synchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancenetworkexpiretime.html +func (client *Client) ModifyDBInstanceNetworkExpireTime(request *ModifyDBInstanceNetworkExpireTimeRequest) (response *ModifyDBInstanceNetworkExpireTimeResponse, err error) { + response = CreateModifyDBInstanceNetworkExpireTimeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDBInstanceNetworkExpireTimeWithChan invokes the rds.ModifyDBInstanceNetworkExpireTime API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancenetworkexpiretime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceNetworkExpireTimeWithChan(request *ModifyDBInstanceNetworkExpireTimeRequest) (<-chan *ModifyDBInstanceNetworkExpireTimeResponse, <-chan error) { + responseChan := make(chan *ModifyDBInstanceNetworkExpireTimeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDBInstanceNetworkExpireTime(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDBInstanceNetworkExpireTimeWithCallback invokes the rds.ModifyDBInstanceNetworkExpireTime API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancenetworkexpiretime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceNetworkExpireTimeWithCallback(request *ModifyDBInstanceNetworkExpireTimeRequest, callback func(response *ModifyDBInstanceNetworkExpireTimeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDBInstanceNetworkExpireTimeResponse + var err error + defer close(result) + response, err = client.ModifyDBInstanceNetworkExpireTime(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDBInstanceNetworkExpireTimeRequest is the request struct for api ModifyDBInstanceNetworkExpireTime +type ModifyDBInstanceNetworkExpireTimeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + ConnectionString string `position:"Query" name:"ConnectionString"` + ClassicExpiredDays requests.Integer `position:"Query" name:"ClassicExpiredDays"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyDBInstanceNetworkExpireTimeResponse is the response struct for api ModifyDBInstanceNetworkExpireTime +type ModifyDBInstanceNetworkExpireTimeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyDBInstanceNetworkExpireTimeRequest creates a request to invoke ModifyDBInstanceNetworkExpireTime API +func CreateModifyDBInstanceNetworkExpireTimeRequest() (request *ModifyDBInstanceNetworkExpireTimeRequest) { + request = &ModifyDBInstanceNetworkExpireTimeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyDBInstanceNetworkExpireTime", "rds", "openAPI") + return +} + +// CreateModifyDBInstanceNetworkExpireTimeResponse creates a response to parse from ModifyDBInstanceNetworkExpireTime response +func CreateModifyDBInstanceNetworkExpireTimeResponse() (response *ModifyDBInstanceNetworkExpireTimeResponse) { + response = &ModifyDBInstanceNetworkExpireTimeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_network_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_network_type.go new file mode 100644 index 0000000..dc86523 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_network_type.go @@ -0,0 +1,116 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDBInstanceNetworkType invokes the rds.ModifyDBInstanceNetworkType API synchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancenetworktype.html +func (client *Client) ModifyDBInstanceNetworkType(request *ModifyDBInstanceNetworkTypeRequest) (response *ModifyDBInstanceNetworkTypeResponse, err error) { + response = CreateModifyDBInstanceNetworkTypeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDBInstanceNetworkTypeWithChan invokes the rds.ModifyDBInstanceNetworkType API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancenetworktype.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceNetworkTypeWithChan(request *ModifyDBInstanceNetworkTypeRequest) (<-chan *ModifyDBInstanceNetworkTypeResponse, <-chan error) { + responseChan := make(chan *ModifyDBInstanceNetworkTypeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDBInstanceNetworkType(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDBInstanceNetworkTypeWithCallback invokes the rds.ModifyDBInstanceNetworkType API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancenetworktype.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceNetworkTypeWithCallback(request *ModifyDBInstanceNetworkTypeRequest, callback func(response *ModifyDBInstanceNetworkTypeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDBInstanceNetworkTypeResponse + var err error + defer close(result) + response, err = client.ModifyDBInstanceNetworkType(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDBInstanceNetworkTypeRequest is the request struct for api ModifyDBInstanceNetworkType +type ModifyDBInstanceNetworkTypeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + RetainClassic string `position:"Query" name:"RetainClassic"` + ClassicExpiredDays string `position:"Query" name:"ClassicExpiredDays"` + InstanceNetworkType string `position:"Query" name:"InstanceNetworkType"` + ReadWriteSplittingClassicExpiredDays requests.Integer `position:"Query" name:"ReadWriteSplittingClassicExpiredDays"` + VPCId string `position:"Query" name:"VPCId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` + ReadWriteSplittingPrivateIpAddress string `position:"Query" name:"ReadWriteSplittingPrivateIpAddress"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyDBInstanceNetworkTypeResponse is the response struct for api ModifyDBInstanceNetworkType +type ModifyDBInstanceNetworkTypeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskId string `json:"TaskId" xml:"TaskId"` +} + +// CreateModifyDBInstanceNetworkTypeRequest creates a request to invoke ModifyDBInstanceNetworkType API +func CreateModifyDBInstanceNetworkTypeRequest() (request *ModifyDBInstanceNetworkTypeRequest) { + request = &ModifyDBInstanceNetworkTypeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyDBInstanceNetworkType", "rds", "openAPI") + return +} + +// CreateModifyDBInstanceNetworkTypeResponse creates a response to parse from ModifyDBInstanceNetworkType response +func CreateModifyDBInstanceNetworkTypeResponse() (response *ModifyDBInstanceNetworkTypeResponse) { + response = &ModifyDBInstanceNetworkTypeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_proxy_configuration.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_proxy_configuration.go new file mode 100644 index 0000000..5086777 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_proxy_configuration.go @@ -0,0 +1,108 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDBInstanceProxyConfiguration invokes the rds.ModifyDBInstanceProxyConfiguration API synchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstanceproxyconfiguration.html +func (client *Client) ModifyDBInstanceProxyConfiguration(request *ModifyDBInstanceProxyConfigurationRequest) (response *ModifyDBInstanceProxyConfigurationResponse, err error) { + response = CreateModifyDBInstanceProxyConfigurationResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDBInstanceProxyConfigurationWithChan invokes the rds.ModifyDBInstanceProxyConfiguration API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstanceproxyconfiguration.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceProxyConfigurationWithChan(request *ModifyDBInstanceProxyConfigurationRequest) (<-chan *ModifyDBInstanceProxyConfigurationResponse, <-chan error) { + responseChan := make(chan *ModifyDBInstanceProxyConfigurationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDBInstanceProxyConfiguration(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDBInstanceProxyConfigurationWithCallback invokes the rds.ModifyDBInstanceProxyConfiguration API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstanceproxyconfiguration.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceProxyConfigurationWithCallback(request *ModifyDBInstanceProxyConfigurationRequest, callback func(response *ModifyDBInstanceProxyConfigurationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDBInstanceProxyConfigurationResponse + var err error + defer close(result) + response, err = client.ModifyDBInstanceProxyConfiguration(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDBInstanceProxyConfigurationRequest is the request struct for api ModifyDBInstanceProxyConfiguration +type ModifyDBInstanceProxyConfigurationRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + ProxyConfigurationKey string `position:"Query" name:"ProxyConfigurationKey"` + ProxyConfigurationValue string `position:"Query" name:"ProxyConfigurationValue"` +} + +// ModifyDBInstanceProxyConfigurationResponse is the response struct for api ModifyDBInstanceProxyConfiguration +type ModifyDBInstanceProxyConfigurationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyDBInstanceProxyConfigurationRequest creates a request to invoke ModifyDBInstanceProxyConfiguration API +func CreateModifyDBInstanceProxyConfigurationRequest() (request *ModifyDBInstanceProxyConfigurationRequest) { + request = &ModifyDBInstanceProxyConfigurationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyDBInstanceProxyConfiguration", "rds", "openAPI") + return +} + +// CreateModifyDBInstanceProxyConfigurationResponse creates a response to parse from ModifyDBInstanceProxyConfiguration response +func CreateModifyDBInstanceProxyConfigurationResponse() (response *ModifyDBInstanceProxyConfigurationResponse) { + response = &ModifyDBInstanceProxyConfigurationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_spec.go new file mode 100644 index 0000000..44306e0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_spec.go @@ -0,0 +1,112 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDBInstanceSpec invokes the rds.ModifyDBInstanceSpec API synchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancespec.html +func (client *Client) ModifyDBInstanceSpec(request *ModifyDBInstanceSpecRequest) (response *ModifyDBInstanceSpecResponse, err error) { + response = CreateModifyDBInstanceSpecResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDBInstanceSpecWithChan invokes the rds.ModifyDBInstanceSpec API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceSpecWithChan(request *ModifyDBInstanceSpecRequest) (<-chan *ModifyDBInstanceSpecResponse, <-chan error) { + responseChan := make(chan *ModifyDBInstanceSpecResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDBInstanceSpec(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDBInstanceSpecWithCallback invokes the rds.ModifyDBInstanceSpec API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceSpecWithCallback(request *ModifyDBInstanceSpecRequest, callback func(response *ModifyDBInstanceSpecResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDBInstanceSpecResponse + var err error + defer close(result) + response, err = client.ModifyDBInstanceSpec(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDBInstanceSpecRequest is the request struct for api ModifyDBInstanceSpec +type ModifyDBInstanceSpecRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + DBInstanceClass string `position:"Query" name:"DBInstanceClass"` + DBInstanceStorage requests.Integer `position:"Query" name:"DBInstanceStorage"` + PayType string `position:"Query" name:"PayType"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EffectiveTime string `position:"Query" name:"EffectiveTime"` +} + +// ModifyDBInstanceSpecResponse is the response struct for api ModifyDBInstanceSpec +type ModifyDBInstanceSpecResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyDBInstanceSpecRequest creates a request to invoke ModifyDBInstanceSpec API +func CreateModifyDBInstanceSpecRequest() (request *ModifyDBInstanceSpecRequest) { + request = &ModifyDBInstanceSpecRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyDBInstanceSpec", "rds", "openAPI") + return +} + +// CreateModifyDBInstanceSpecResponse creates a response to parse from ModifyDBInstanceSpec response +func CreateModifyDBInstanceSpecResponse() (response *ModifyDBInstanceSpecResponse) { + response = &ModifyDBInstanceSpecResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_ssl.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_ssl.go new file mode 100644 index 0000000..feb5dce --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_ssl.go @@ -0,0 +1,108 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDBInstanceSSL invokes the rds.ModifyDBInstanceSSL API synchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancessl.html +func (client *Client) ModifyDBInstanceSSL(request *ModifyDBInstanceSSLRequest) (response *ModifyDBInstanceSSLResponse, err error) { + response = CreateModifyDBInstanceSSLResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDBInstanceSSLWithChan invokes the rds.ModifyDBInstanceSSL API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancessl.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceSSLWithChan(request *ModifyDBInstanceSSLRequest) (<-chan *ModifyDBInstanceSSLResponse, <-chan error) { + responseChan := make(chan *ModifyDBInstanceSSLResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDBInstanceSSL(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDBInstanceSSLWithCallback invokes the rds.ModifyDBInstanceSSL API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancessl.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceSSLWithCallback(request *ModifyDBInstanceSSLRequest, callback func(response *ModifyDBInstanceSSLResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDBInstanceSSLResponse + var err error + defer close(result) + response, err = client.ModifyDBInstanceSSL(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDBInstanceSSLRequest is the request struct for api ModifyDBInstanceSSL +type ModifyDBInstanceSSLRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + ConnectionString string `position:"Query" name:"ConnectionString"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyDBInstanceSSLResponse is the response struct for api ModifyDBInstanceSSL +type ModifyDBInstanceSSLResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyDBInstanceSSLRequest creates a request to invoke ModifyDBInstanceSSL API +func CreateModifyDBInstanceSSLRequest() (request *ModifyDBInstanceSSLRequest) { + request = &ModifyDBInstanceSSLRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyDBInstanceSSL", "rds", "openAPI") + return +} + +// CreateModifyDBInstanceSSLResponse creates a response to parse from ModifyDBInstanceSSL response +func CreateModifyDBInstanceSSLResponse() (response *ModifyDBInstanceSSLResponse) { + response = &ModifyDBInstanceSSLResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_tde.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_tde.go new file mode 100644 index 0000000..b14de85 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_db_instance_tde.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDBInstanceTDE invokes the rds.ModifyDBInstanceTDE API synchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancetde.html +func (client *Client) ModifyDBInstanceTDE(request *ModifyDBInstanceTDERequest) (response *ModifyDBInstanceTDEResponse, err error) { + response = CreateModifyDBInstanceTDEResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDBInstanceTDEWithChan invokes the rds.ModifyDBInstanceTDE API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancetde.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceTDEWithChan(request *ModifyDBInstanceTDERequest) (<-chan *ModifyDBInstanceTDEResponse, <-chan error) { + responseChan := make(chan *ModifyDBInstanceTDEResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDBInstanceTDE(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDBInstanceTDEWithCallback invokes the rds.ModifyDBInstanceTDE API asynchronously +// api document: https://help.aliyun.com/api/rds/modifydbinstancetde.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyDBInstanceTDEWithCallback(request *ModifyDBInstanceTDERequest, callback func(response *ModifyDBInstanceTDEResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDBInstanceTDEResponse + var err error + defer close(result) + response, err = client.ModifyDBInstanceTDE(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDBInstanceTDERequest is the request struct for api ModifyDBInstanceTDE +type ModifyDBInstanceTDERequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + TDEStatus string `position:"Query" name:"TDEStatus"` + DBName string `position:"Query" name:"DBName"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyDBInstanceTDEResponse is the response struct for api ModifyDBInstanceTDE +type ModifyDBInstanceTDEResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyDBInstanceTDERequest creates a request to invoke ModifyDBInstanceTDE API +func CreateModifyDBInstanceTDERequest() (request *ModifyDBInstanceTDERequest) { + request = &ModifyDBInstanceTDERequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyDBInstanceTDE", "rds", "openAPI") + return +} + +// CreateModifyDBInstanceTDEResponse creates a response to parse from ModifyDBInstanceTDE response +func CreateModifyDBInstanceTDEResponse() (response *ModifyDBInstanceTDEResponse) { + response = &ModifyDBInstanceTDEResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_guard_domain_mode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_guard_domain_mode.go new file mode 100644 index 0000000..c55dab3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_guard_domain_mode.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyGuardDomainMode invokes the rds.ModifyGuardDomainMode API synchronously +// api document: https://help.aliyun.com/api/rds/modifyguarddomainmode.html +func (client *Client) ModifyGuardDomainMode(request *ModifyGuardDomainModeRequest) (response *ModifyGuardDomainModeResponse, err error) { + response = CreateModifyGuardDomainModeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyGuardDomainModeWithChan invokes the rds.ModifyGuardDomainMode API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyguarddomainmode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyGuardDomainModeWithChan(request *ModifyGuardDomainModeRequest) (<-chan *ModifyGuardDomainModeResponse, <-chan error) { + responseChan := make(chan *ModifyGuardDomainModeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyGuardDomainMode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyGuardDomainModeWithCallback invokes the rds.ModifyGuardDomainMode API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyguarddomainmode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyGuardDomainModeWithCallback(request *ModifyGuardDomainModeRequest, callback func(response *ModifyGuardDomainModeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyGuardDomainModeResponse + var err error + defer close(result) + response, err = client.ModifyGuardDomainMode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyGuardDomainModeRequest is the request struct for api ModifyGuardDomainMode +type ModifyGuardDomainModeRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + DomainMode string `position:"Query" name:"DomainMode"` +} + +// ModifyGuardDomainModeResponse is the response struct for api ModifyGuardDomainMode +type ModifyGuardDomainModeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyGuardDomainModeRequest creates a request to invoke ModifyGuardDomainMode API +func CreateModifyGuardDomainModeRequest() (request *ModifyGuardDomainModeRequest) { + request = &ModifyGuardDomainModeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyGuardDomainMode", "rds", "openAPI") + return +} + +// CreateModifyGuardDomainModeResponse creates a response to parse from ModifyGuardDomainMode response +func CreateModifyGuardDomainModeResponse() (response *ModifyGuardDomainModeResponse) { + response = &ModifyGuardDomainModeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_instance_auto_renewal_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_instance_auto_renewal_attribute.go new file mode 100644 index 0000000..f0c28b3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_instance_auto_renewal_attribute.go @@ -0,0 +1,110 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyInstanceAutoRenewalAttribute invokes the rds.ModifyInstanceAutoRenewalAttribute API synchronously +// api document: https://help.aliyun.com/api/rds/modifyinstanceautorenewalattribute.html +func (client *Client) ModifyInstanceAutoRenewalAttribute(request *ModifyInstanceAutoRenewalAttributeRequest) (response *ModifyInstanceAutoRenewalAttributeResponse, err error) { + response = CreateModifyInstanceAutoRenewalAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyInstanceAutoRenewalAttributeWithChan invokes the rds.ModifyInstanceAutoRenewalAttribute API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyinstanceautorenewalattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceAutoRenewalAttributeWithChan(request *ModifyInstanceAutoRenewalAttributeRequest) (<-chan *ModifyInstanceAutoRenewalAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyInstanceAutoRenewalAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyInstanceAutoRenewalAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyInstanceAutoRenewalAttributeWithCallback invokes the rds.ModifyInstanceAutoRenewalAttribute API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyinstanceautorenewalattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceAutoRenewalAttributeWithCallback(request *ModifyInstanceAutoRenewalAttributeRequest, callback func(response *ModifyInstanceAutoRenewalAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyInstanceAutoRenewalAttributeResponse + var err error + defer close(result) + response, err = client.ModifyInstanceAutoRenewalAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyInstanceAutoRenewalAttributeRequest is the request struct for api ModifyInstanceAutoRenewalAttribute +type ModifyInstanceAutoRenewalAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + Duration string `position:"Query" name:"Duration"` + AutoRenew string `position:"Query" name:"AutoRenew"` +} + +// ModifyInstanceAutoRenewalAttributeResponse is the response struct for api ModifyInstanceAutoRenewalAttribute +type ModifyInstanceAutoRenewalAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyInstanceAutoRenewalAttributeRequest creates a request to invoke ModifyInstanceAutoRenewalAttribute API +func CreateModifyInstanceAutoRenewalAttributeRequest() (request *ModifyInstanceAutoRenewalAttributeRequest) { + request = &ModifyInstanceAutoRenewalAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyInstanceAutoRenewalAttribute", "rds", "openAPI") + return +} + +// CreateModifyInstanceAutoRenewalAttributeResponse creates a response to parse from ModifyInstanceAutoRenewalAttribute response +func CreateModifyInstanceAutoRenewalAttributeResponse() (response *ModifyInstanceAutoRenewalAttributeResponse) { + response = &ModifyInstanceAutoRenewalAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_parameter.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_parameter.go new file mode 100644 index 0000000..fa76c3e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_parameter.go @@ -0,0 +1,110 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyParameter invokes the rds.ModifyParameter API synchronously +// api document: https://help.aliyun.com/api/rds/modifyparameter.html +func (client *Client) ModifyParameter(request *ModifyParameterRequest) (response *ModifyParameterResponse, err error) { + response = CreateModifyParameterResponse() + err = client.DoAction(request, response) + return +} + +// ModifyParameterWithChan invokes the rds.ModifyParameter API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyparameter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyParameterWithChan(request *ModifyParameterRequest) (<-chan *ModifyParameterResponse, <-chan error) { + responseChan := make(chan *ModifyParameterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyParameter(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyParameterWithCallback invokes the rds.ModifyParameter API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyparameter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyParameterWithCallback(request *ModifyParameterRequest, callback func(response *ModifyParameterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyParameterResponse + var err error + defer close(result) + response, err = client.ModifyParameter(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyParameterRequest is the request struct for api ModifyParameter +type ModifyParameterRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + Parameters string `position:"Query" name:"Parameters"` + Forcerestart requests.Boolean `position:"Query" name:"Forcerestart"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyParameterResponse is the response struct for api ModifyParameter +type ModifyParameterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyParameterRequest creates a request to invoke ModifyParameter API +func CreateModifyParameterRequest() (request *ModifyParameterRequest) { + request = &ModifyParameterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyParameter", "rds", "openAPI") + return +} + +// CreateModifyParameterResponse creates a response to parse from ModifyParameter response +func CreateModifyParameterResponse() (response *ModifyParameterResponse) { + response = &ModifyParameterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_postpaid_db_instance_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_postpaid_db_instance_spec.go new file mode 100644 index 0000000..89b7a4a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_postpaid_db_instance_spec.go @@ -0,0 +1,110 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyPostpaidDBInstanceSpec invokes the rds.ModifyPostpaidDBInstanceSpec API synchronously +// api document: https://help.aliyun.com/api/rds/modifypostpaiddbinstancespec.html +func (client *Client) ModifyPostpaidDBInstanceSpec(request *ModifyPostpaidDBInstanceSpecRequest) (response *ModifyPostpaidDBInstanceSpecResponse, err error) { + response = CreateModifyPostpaidDBInstanceSpecResponse() + err = client.DoAction(request, response) + return +} + +// ModifyPostpaidDBInstanceSpecWithChan invokes the rds.ModifyPostpaidDBInstanceSpec API asynchronously +// api document: https://help.aliyun.com/api/rds/modifypostpaiddbinstancespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyPostpaidDBInstanceSpecWithChan(request *ModifyPostpaidDBInstanceSpecRequest) (<-chan *ModifyPostpaidDBInstanceSpecResponse, <-chan error) { + responseChan := make(chan *ModifyPostpaidDBInstanceSpecResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyPostpaidDBInstanceSpec(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyPostpaidDBInstanceSpecWithCallback invokes the rds.ModifyPostpaidDBInstanceSpec API asynchronously +// api document: https://help.aliyun.com/api/rds/modifypostpaiddbinstancespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyPostpaidDBInstanceSpecWithCallback(request *ModifyPostpaidDBInstanceSpecRequest, callback func(response *ModifyPostpaidDBInstanceSpecResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyPostpaidDBInstanceSpecResponse + var err error + defer close(result) + response, err = client.ModifyPostpaidDBInstanceSpec(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyPostpaidDBInstanceSpecRequest is the request struct for api ModifyPostpaidDBInstanceSpec +type ModifyPostpaidDBInstanceSpecRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + DBInstanceClass string `position:"Query" name:"DBInstanceClass"` + DBInstanceStorage requests.Integer `position:"Query" name:"DBInstanceStorage"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyPostpaidDBInstanceSpecResponse is the response struct for api ModifyPostpaidDBInstanceSpec +type ModifyPostpaidDBInstanceSpecResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyPostpaidDBInstanceSpecRequest creates a request to invoke ModifyPostpaidDBInstanceSpec API +func CreateModifyPostpaidDBInstanceSpecRequest() (request *ModifyPostpaidDBInstanceSpecRequest) { + request = &ModifyPostpaidDBInstanceSpecRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyPostpaidDBInstanceSpec", "rds", "openAPI") + return +} + +// CreateModifyPostpaidDBInstanceSpecResponse creates a response to parse from ModifyPostpaidDBInstanceSpec response +func CreateModifyPostpaidDBInstanceSpecResponse() (response *ModifyPostpaidDBInstanceSpecResponse) { + response = &ModifyPostpaidDBInstanceSpecResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_read_write_splitting_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_read_write_splitting_connection.go new file mode 100644 index 0000000..ff64922 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_read_write_splitting_connection.go @@ -0,0 +1,112 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyReadWriteSplittingConnection invokes the rds.ModifyReadWriteSplittingConnection API synchronously +// api document: https://help.aliyun.com/api/rds/modifyreadwritesplittingconnection.html +func (client *Client) ModifyReadWriteSplittingConnection(request *ModifyReadWriteSplittingConnectionRequest) (response *ModifyReadWriteSplittingConnectionResponse, err error) { + response = CreateModifyReadWriteSplittingConnectionResponse() + err = client.DoAction(request, response) + return +} + +// ModifyReadWriteSplittingConnectionWithChan invokes the rds.ModifyReadWriteSplittingConnection API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyreadwritesplittingconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReadWriteSplittingConnectionWithChan(request *ModifyReadWriteSplittingConnectionRequest) (<-chan *ModifyReadWriteSplittingConnectionResponse, <-chan error) { + responseChan := make(chan *ModifyReadWriteSplittingConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyReadWriteSplittingConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyReadWriteSplittingConnectionWithCallback invokes the rds.ModifyReadWriteSplittingConnection API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyreadwritesplittingconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReadWriteSplittingConnectionWithCallback(request *ModifyReadWriteSplittingConnectionRequest, callback func(response *ModifyReadWriteSplittingConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyReadWriteSplittingConnectionResponse + var err error + defer close(result) + response, err = client.ModifyReadWriteSplittingConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyReadWriteSplittingConnectionRequest is the request struct for api ModifyReadWriteSplittingConnection +type ModifyReadWriteSplittingConnectionRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + ConnectionStringPrefix string `position:"Query" name:"ConnectionStringPrefix"` + Port string `position:"Query" name:"Port"` + MaxDelayTime string `position:"Query" name:"MaxDelayTime"` + DistributionType string `position:"Query" name:"DistributionType"` + Weight string `position:"Query" name:"Weight"` +} + +// ModifyReadWriteSplittingConnectionResponse is the response struct for api ModifyReadWriteSplittingConnection +type ModifyReadWriteSplittingConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyReadWriteSplittingConnectionRequest creates a request to invoke ModifyReadWriteSplittingConnection API +func CreateModifyReadWriteSplittingConnectionRequest() (request *ModifyReadWriteSplittingConnectionRequest) { + request = &ModifyReadWriteSplittingConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyReadWriteSplittingConnection", "rds", "openAPI") + return +} + +// CreateModifyReadWriteSplittingConnectionResponse creates a response to parse from ModifyReadWriteSplittingConnection response +func CreateModifyReadWriteSplittingConnectionResponse() (response *ModifyReadWriteSplittingConnectionResponse) { + response = &ModifyReadWriteSplittingConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_replica_description.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_replica_description.go new file mode 100644 index 0000000..54766a1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_replica_description.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyReplicaDescription invokes the rds.ModifyReplicaDescription API synchronously +// api document: https://help.aliyun.com/api/rds/modifyreplicadescription.html +func (client *Client) ModifyReplicaDescription(request *ModifyReplicaDescriptionRequest) (response *ModifyReplicaDescriptionResponse, err error) { + response = CreateModifyReplicaDescriptionResponse() + err = client.DoAction(request, response) + return +} + +// ModifyReplicaDescriptionWithChan invokes the rds.ModifyReplicaDescription API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyreplicadescription.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReplicaDescriptionWithChan(request *ModifyReplicaDescriptionRequest) (<-chan *ModifyReplicaDescriptionResponse, <-chan error) { + responseChan := make(chan *ModifyReplicaDescriptionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyReplicaDescription(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyReplicaDescriptionWithCallback invokes the rds.ModifyReplicaDescription API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyreplicadescription.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReplicaDescriptionWithCallback(request *ModifyReplicaDescriptionRequest, callback func(response *ModifyReplicaDescriptionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyReplicaDescriptionResponse + var err error + defer close(result) + response, err = client.ModifyReplicaDescription(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyReplicaDescriptionRequest is the request struct for api ModifyReplicaDescription +type ModifyReplicaDescriptionRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + ReplicaDescription string `position:"Query" name:"ReplicaDescription"` +} + +// ModifyReplicaDescriptionResponse is the response struct for api ModifyReplicaDescription +type ModifyReplicaDescriptionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyReplicaDescriptionRequest creates a request to invoke ModifyReplicaDescription API +func CreateModifyReplicaDescriptionRequest() (request *ModifyReplicaDescriptionRequest) { + request = &ModifyReplicaDescriptionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyReplicaDescription", "rds", "openAPI") + return +} + +// CreateModifyReplicaDescriptionResponse creates a response to parse from ModifyReplicaDescription response +func CreateModifyReplicaDescriptionResponse() (response *ModifyReplicaDescriptionResponse) { + response = &ModifyReplicaDescriptionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_replica_mode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_replica_mode.go new file mode 100644 index 0000000..91e2db8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_replica_mode.go @@ -0,0 +1,111 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyReplicaMode invokes the rds.ModifyReplicaMode API synchronously +// api document: https://help.aliyun.com/api/rds/modifyreplicamode.html +func (client *Client) ModifyReplicaMode(request *ModifyReplicaModeRequest) (response *ModifyReplicaModeResponse, err error) { + response = CreateModifyReplicaModeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyReplicaModeWithChan invokes the rds.ModifyReplicaMode API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyreplicamode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReplicaModeWithChan(request *ModifyReplicaModeRequest) (<-chan *ModifyReplicaModeResponse, <-chan error) { + responseChan := make(chan *ModifyReplicaModeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyReplicaMode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyReplicaModeWithCallback invokes the rds.ModifyReplicaMode API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyreplicamode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReplicaModeWithCallback(request *ModifyReplicaModeRequest, callback func(response *ModifyReplicaModeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyReplicaModeResponse + var err error + defer close(result) + response, err = client.ModifyReplicaMode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyReplicaModeRequest is the request struct for api ModifyReplicaMode +type ModifyReplicaModeRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + ReplicaMode string `position:"Query" name:"ReplicaMode"` + PrimaryInstanceId string `position:"Query" name:"PrimaryInstanceId"` + DomainMode string `position:"Query" name:"DomainMode"` +} + +// ModifyReplicaModeResponse is the response struct for api ModifyReplicaMode +type ModifyReplicaModeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyReplicaModeRequest creates a request to invoke ModifyReplicaMode API +func CreateModifyReplicaModeRequest() (request *ModifyReplicaModeRequest) { + request = &ModifyReplicaModeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyReplicaMode", "rds", "openAPI") + return +} + +// CreateModifyReplicaModeResponse creates a response to parse from ModifyReplicaMode response +func CreateModifyReplicaModeResponse() (response *ModifyReplicaModeResponse) { + response = &ModifyReplicaModeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_replica_recovery_mode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_replica_recovery_mode.go new file mode 100644 index 0000000..902c22d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_replica_recovery_mode.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyReplicaRecoveryMode invokes the rds.ModifyReplicaRecoveryMode API synchronously +// api document: https://help.aliyun.com/api/rds/modifyreplicarecoverymode.html +func (client *Client) ModifyReplicaRecoveryMode(request *ModifyReplicaRecoveryModeRequest) (response *ModifyReplicaRecoveryModeResponse, err error) { + response = CreateModifyReplicaRecoveryModeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyReplicaRecoveryModeWithChan invokes the rds.ModifyReplicaRecoveryMode API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyreplicarecoverymode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReplicaRecoveryModeWithChan(request *ModifyReplicaRecoveryModeRequest) (<-chan *ModifyReplicaRecoveryModeResponse, <-chan error) { + responseChan := make(chan *ModifyReplicaRecoveryModeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyReplicaRecoveryMode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyReplicaRecoveryModeWithCallback invokes the rds.ModifyReplicaRecoveryMode API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyreplicarecoverymode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReplicaRecoveryModeWithCallback(request *ModifyReplicaRecoveryModeRequest, callback func(response *ModifyReplicaRecoveryModeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyReplicaRecoveryModeResponse + var err error + defer close(result) + response, err = client.ModifyReplicaRecoveryMode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyReplicaRecoveryModeRequest is the request struct for api ModifyReplicaRecoveryMode +type ModifyReplicaRecoveryModeRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + RecoveryMode string `position:"Query" name:"RecoveryMode"` +} + +// ModifyReplicaRecoveryModeResponse is the response struct for api ModifyReplicaRecoveryMode +type ModifyReplicaRecoveryModeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyReplicaRecoveryModeRequest creates a request to invoke ModifyReplicaRecoveryMode API +func CreateModifyReplicaRecoveryModeRequest() (request *ModifyReplicaRecoveryModeRequest) { + request = &ModifyReplicaRecoveryModeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyReplicaRecoveryMode", "rds", "openAPI") + return +} + +// CreateModifyReplicaRecoveryModeResponse creates a response to parse from ModifyReplicaRecoveryMode response +func CreateModifyReplicaRecoveryModeResponse() (response *ModifyReplicaRecoveryModeResponse) { + response = &ModifyReplicaRecoveryModeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_replica_relation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_replica_relation.go new file mode 100644 index 0000000..ce421b1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_replica_relation.go @@ -0,0 +1,108 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyReplicaRelation invokes the rds.ModifyReplicaRelation API synchronously +// api document: https://help.aliyun.com/api/rds/modifyreplicarelation.html +func (client *Client) ModifyReplicaRelation(request *ModifyReplicaRelationRequest) (response *ModifyReplicaRelationResponse, err error) { + response = CreateModifyReplicaRelationResponse() + err = client.DoAction(request, response) + return +} + +// ModifyReplicaRelationWithChan invokes the rds.ModifyReplicaRelation API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyreplicarelation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReplicaRelationWithChan(request *ModifyReplicaRelationRequest) (<-chan *ModifyReplicaRelationResponse, <-chan error) { + responseChan := make(chan *ModifyReplicaRelationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyReplicaRelation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyReplicaRelationWithCallback invokes the rds.ModifyReplicaRelation API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyreplicarelation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReplicaRelationWithCallback(request *ModifyReplicaRelationRequest, callback func(response *ModifyReplicaRelationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyReplicaRelationResponse + var err error + defer close(result) + response, err = client.ModifyReplicaRelation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyReplicaRelationRequest is the request struct for api ModifyReplicaRelation +type ModifyReplicaRelationRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` +} + +// ModifyReplicaRelationResponse is the response struct for api ModifyReplicaRelation +type ModifyReplicaRelationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyReplicaRelationRequest creates a request to invoke ModifyReplicaRelation API +func CreateModifyReplicaRelationRequest() (request *ModifyReplicaRelationRequest) { + request = &ModifyReplicaRelationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyReplicaRelation", "rds", "openAPI") + return +} + +// CreateModifyReplicaRelationResponse creates a response to parse from ModifyReplicaRelation response +func CreateModifyReplicaRelationResponse() (response *ModifyReplicaRelationResponse) { + response = &ModifyReplicaRelationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_replica_verification_mode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_replica_verification_mode.go new file mode 100644 index 0000000..7baf865 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_replica_verification_mode.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyReplicaVerificationMode invokes the rds.ModifyReplicaVerificationMode API synchronously +// api document: https://help.aliyun.com/api/rds/modifyreplicaverificationmode.html +func (client *Client) ModifyReplicaVerificationMode(request *ModifyReplicaVerificationModeRequest) (response *ModifyReplicaVerificationModeResponse, err error) { + response = CreateModifyReplicaVerificationModeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyReplicaVerificationModeWithChan invokes the rds.ModifyReplicaVerificationMode API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyreplicaverificationmode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReplicaVerificationModeWithChan(request *ModifyReplicaVerificationModeRequest) (<-chan *ModifyReplicaVerificationModeResponse, <-chan error) { + responseChan := make(chan *ModifyReplicaVerificationModeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyReplicaVerificationMode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyReplicaVerificationModeWithCallback invokes the rds.ModifyReplicaVerificationMode API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyreplicaverificationmode.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyReplicaVerificationModeWithCallback(request *ModifyReplicaVerificationModeRequest, callback func(response *ModifyReplicaVerificationModeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyReplicaVerificationModeResponse + var err error + defer close(result) + response, err = client.ModifyReplicaVerificationMode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyReplicaVerificationModeRequest is the request struct for api ModifyReplicaVerificationMode +type ModifyReplicaVerificationModeRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` + VerificationMode string `position:"Query" name:"VerificationMode"` +} + +// ModifyReplicaVerificationModeResponse is the response struct for api ModifyReplicaVerificationMode +type ModifyReplicaVerificationModeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyReplicaVerificationModeRequest creates a request to invoke ModifyReplicaVerificationMode API +func CreateModifyReplicaVerificationModeRequest() (request *ModifyReplicaVerificationModeRequest) { + request = &ModifyReplicaVerificationModeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyReplicaVerificationMode", "rds", "openAPI") + return +} + +// CreateModifyReplicaVerificationModeResponse creates a response to parse from ModifyReplicaVerificationMode response +func CreateModifyReplicaVerificationModeResponse() (response *ModifyReplicaVerificationModeResponse) { + response = &ModifyReplicaVerificationModeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_resource_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_resource_group.go new file mode 100644 index 0000000..5be3219 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_resource_group.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyResourceGroup invokes the rds.ModifyResourceGroup API synchronously +// api document: https://help.aliyun.com/api/rds/modifyresourcegroup.html +func (client *Client) ModifyResourceGroup(request *ModifyResourceGroupRequest) (response *ModifyResourceGroupResponse, err error) { + response = CreateModifyResourceGroupResponse() + err = client.DoAction(request, response) + return +} + +// ModifyResourceGroupWithChan invokes the rds.ModifyResourceGroup API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyresourcegroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyResourceGroupWithChan(request *ModifyResourceGroupRequest) (<-chan *ModifyResourceGroupResponse, <-chan error) { + responseChan := make(chan *ModifyResourceGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyResourceGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyResourceGroupWithCallback invokes the rds.ModifyResourceGroup API asynchronously +// api document: https://help.aliyun.com/api/rds/modifyresourcegroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyResourceGroupWithCallback(request *ModifyResourceGroupRequest, callback func(response *ModifyResourceGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyResourceGroupResponse + var err error + defer close(result) + response, err = client.ModifyResourceGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyResourceGroupRequest is the request struct for api ModifyResourceGroup +type ModifyResourceGroupRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` +} + +// ModifyResourceGroupResponse is the response struct for api ModifyResourceGroup +type ModifyResourceGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyResourceGroupRequest creates a request to invoke ModifyResourceGroup API +func CreateModifyResourceGroupRequest() (request *ModifyResourceGroupRequest) { + request = &ModifyResourceGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifyResourceGroup", "rds", "openAPI") + return +} + +// CreateModifyResourceGroupResponse creates a response to parse from ModifyResourceGroup response +func CreateModifyResourceGroupResponse() (response *ModifyResourceGroupResponse) { + response = &ModifyResourceGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_security_group_configuration.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_security_group_configuration.go new file mode 100644 index 0000000..710410b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_security_group_configuration.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifySecurityGroupConfiguration invokes the rds.ModifySecurityGroupConfiguration API synchronously +// api document: https://help.aliyun.com/api/rds/modifysecuritygroupconfiguration.html +func (client *Client) ModifySecurityGroupConfiguration(request *ModifySecurityGroupConfigurationRequest) (response *ModifySecurityGroupConfigurationResponse, err error) { + response = CreateModifySecurityGroupConfigurationResponse() + err = client.DoAction(request, response) + return +} + +// ModifySecurityGroupConfigurationWithChan invokes the rds.ModifySecurityGroupConfiguration API asynchronously +// api document: https://help.aliyun.com/api/rds/modifysecuritygroupconfiguration.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySecurityGroupConfigurationWithChan(request *ModifySecurityGroupConfigurationRequest) (<-chan *ModifySecurityGroupConfigurationResponse, <-chan error) { + responseChan := make(chan *ModifySecurityGroupConfigurationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifySecurityGroupConfiguration(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifySecurityGroupConfigurationWithCallback invokes the rds.ModifySecurityGroupConfiguration API asynchronously +// api document: https://help.aliyun.com/api/rds/modifysecuritygroupconfiguration.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySecurityGroupConfigurationWithCallback(request *ModifySecurityGroupConfigurationRequest, callback func(response *ModifySecurityGroupConfigurationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifySecurityGroupConfigurationResponse + var err error + defer close(result) + response, err = client.ModifySecurityGroupConfiguration(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifySecurityGroupConfigurationRequest is the request struct for api ModifySecurityGroupConfiguration +type ModifySecurityGroupConfigurationRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` +} + +// ModifySecurityGroupConfigurationResponse is the response struct for api ModifySecurityGroupConfiguration +type ModifySecurityGroupConfigurationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceName string `json:"DBInstanceName" xml:"DBInstanceName"` + Items ItemsInModifySecurityGroupConfiguration `json:"Items" xml:"Items"` +} + +// CreateModifySecurityGroupConfigurationRequest creates a request to invoke ModifySecurityGroupConfiguration API +func CreateModifySecurityGroupConfigurationRequest() (request *ModifySecurityGroupConfigurationRequest) { + request = &ModifySecurityGroupConfigurationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifySecurityGroupConfiguration", "rds", "openAPI") + return +} + +// CreateModifySecurityGroupConfigurationResponse creates a response to parse from ModifySecurityGroupConfiguration response +func CreateModifySecurityGroupConfigurationResponse() (response *ModifySecurityGroupConfigurationResponse) { + response = &ModifySecurityGroupConfigurationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_security_ips.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_security_ips.go new file mode 100644 index 0000000..d168690 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_security_ips.go @@ -0,0 +1,115 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifySecurityIps invokes the rds.ModifySecurityIps API synchronously +// api document: https://help.aliyun.com/api/rds/modifysecurityips.html +func (client *Client) ModifySecurityIps(request *ModifySecurityIpsRequest) (response *ModifySecurityIpsResponse, err error) { + response = CreateModifySecurityIpsResponse() + err = client.DoAction(request, response) + return +} + +// ModifySecurityIpsWithChan invokes the rds.ModifySecurityIps API asynchronously +// api document: https://help.aliyun.com/api/rds/modifysecurityips.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySecurityIpsWithChan(request *ModifySecurityIpsRequest) (<-chan *ModifySecurityIpsResponse, <-chan error) { + responseChan := make(chan *ModifySecurityIpsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifySecurityIps(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifySecurityIpsWithCallback invokes the rds.ModifySecurityIps API asynchronously +// api document: https://help.aliyun.com/api/rds/modifysecurityips.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySecurityIpsWithCallback(request *ModifySecurityIpsRequest, callback func(response *ModifySecurityIpsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifySecurityIpsResponse + var err error + defer close(result) + response, err = client.ModifySecurityIps(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifySecurityIpsRequest is the request struct for api ModifySecurityIps +type ModifySecurityIpsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + SecurityIps string `position:"Query" name:"SecurityIps"` + DBInstanceIPArrayName string `position:"Query" name:"DBInstanceIPArrayName"` + DBInstanceIPArrayAttribute string `position:"Query" name:"DBInstanceIPArrayAttribute"` + WhitelistNetworkType string `position:"Query" name:"WhitelistNetworkType"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + ModifyMode string `position:"Query" name:"ModifyMode"` +} + +// ModifySecurityIpsResponse is the response struct for api ModifySecurityIps +type ModifySecurityIpsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskId string `json:"TaskId" xml:"TaskId"` +} + +// CreateModifySecurityIpsRequest creates a request to invoke ModifySecurityIps API +func CreateModifySecurityIpsRequest() (request *ModifySecurityIpsRequest) { + request = &ModifySecurityIpsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifySecurityIps", "rds", "openAPI") + return +} + +// CreateModifySecurityIpsResponse creates a response to parse from ModifySecurityIps response +func CreateModifySecurityIpsResponse() (response *ModifySecurityIpsResponse) { + response = &ModifySecurityIpsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_sql_collector_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_sql_collector_policy.go new file mode 100644 index 0000000..17cc762 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/modify_sql_collector_policy.go @@ -0,0 +1,110 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifySQLCollectorPolicy invokes the rds.ModifySQLCollectorPolicy API synchronously +// api document: https://help.aliyun.com/api/rds/modifysqlcollectorpolicy.html +func (client *Client) ModifySQLCollectorPolicy(request *ModifySQLCollectorPolicyRequest) (response *ModifySQLCollectorPolicyResponse, err error) { + response = CreateModifySQLCollectorPolicyResponse() + err = client.DoAction(request, response) + return +} + +// ModifySQLCollectorPolicyWithChan invokes the rds.ModifySQLCollectorPolicy API asynchronously +// api document: https://help.aliyun.com/api/rds/modifysqlcollectorpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySQLCollectorPolicyWithChan(request *ModifySQLCollectorPolicyRequest) (<-chan *ModifySQLCollectorPolicyResponse, <-chan error) { + responseChan := make(chan *ModifySQLCollectorPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifySQLCollectorPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifySQLCollectorPolicyWithCallback invokes the rds.ModifySQLCollectorPolicy API asynchronously +// api document: https://help.aliyun.com/api/rds/modifysqlcollectorpolicy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySQLCollectorPolicyWithCallback(request *ModifySQLCollectorPolicyRequest, callback func(response *ModifySQLCollectorPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifySQLCollectorPolicyResponse + var err error + defer close(result) + response, err = client.ModifySQLCollectorPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifySQLCollectorPolicyRequest is the request struct for api ModifySQLCollectorPolicy +type ModifySQLCollectorPolicyRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + SQLCollectorStatus string `position:"Query" name:"SQLCollectorStatus"` + StoragePeriod requests.Integer `position:"Query" name:"StoragePeriod"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifySQLCollectorPolicyResponse is the response struct for api ModifySQLCollectorPolicy +type ModifySQLCollectorPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifySQLCollectorPolicyRequest creates a request to invoke ModifySQLCollectorPolicy API +func CreateModifySQLCollectorPolicyRequest() (request *ModifySQLCollectorPolicyRequest) { + request = &ModifySQLCollectorPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ModifySQLCollectorPolicy", "rds", "openAPI") + return +} + +// CreateModifySQLCollectorPolicyResponse creates a response to parse from ModifySQLCollectorPolicy response +func CreateModifySQLCollectorPolicyResponse() (response *ModifySQLCollectorPolicyResponse) { + response = &ModifySQLCollectorPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/pre_check_before_import_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/pre_check_before_import_data.go new file mode 100644 index 0000000..54ef09b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/pre_check_before_import_data.go @@ -0,0 +1,115 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PreCheckBeforeImportData invokes the rds.PreCheckBeforeImportData API synchronously +// api document: https://help.aliyun.com/api/rds/precheckbeforeimportdata.html +func (client *Client) PreCheckBeforeImportData(request *PreCheckBeforeImportDataRequest) (response *PreCheckBeforeImportDataResponse, err error) { + response = CreatePreCheckBeforeImportDataResponse() + err = client.DoAction(request, response) + return +} + +// PreCheckBeforeImportDataWithChan invokes the rds.PreCheckBeforeImportData API asynchronously +// api document: https://help.aliyun.com/api/rds/precheckbeforeimportdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PreCheckBeforeImportDataWithChan(request *PreCheckBeforeImportDataRequest) (<-chan *PreCheckBeforeImportDataResponse, <-chan error) { + responseChan := make(chan *PreCheckBeforeImportDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PreCheckBeforeImportData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PreCheckBeforeImportDataWithCallback invokes the rds.PreCheckBeforeImportData API asynchronously +// api document: https://help.aliyun.com/api/rds/precheckbeforeimportdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PreCheckBeforeImportDataWithCallback(request *PreCheckBeforeImportDataRequest, callback func(response *PreCheckBeforeImportDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PreCheckBeforeImportDataResponse + var err error + defer close(result) + response, err = client.PreCheckBeforeImportData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PreCheckBeforeImportDataRequest is the request struct for api PreCheckBeforeImportData +type PreCheckBeforeImportDataRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + SourceDatabaseIp string `position:"Query" name:"SourceDatabaseIp"` + SourceDatabasePort string `position:"Query" name:"SourceDatabasePort"` + SourceDatabaseUserName string `position:"Query" name:"SourceDatabaseUserName"` + SourceDatabasePassword string `position:"Query" name:"SourceDatabasePassword"` + ImportDataType string `position:"Query" name:"ImportDataType"` + SourceDatabaseDBNames string `position:"Query" name:"SourceDatabaseDBNames"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// PreCheckBeforeImportDataResponse is the response struct for api PreCheckBeforeImportData +type PreCheckBeforeImportDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PreCheckId string `json:"PreCheckId" xml:"PreCheckId"` +} + +// CreatePreCheckBeforeImportDataRequest creates a request to invoke PreCheckBeforeImportData API +func CreatePreCheckBeforeImportDataRequest() (request *PreCheckBeforeImportDataRequest) { + request = &PreCheckBeforeImportDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "PreCheckBeforeImportData", "rds", "openAPI") + return +} + +// CreatePreCheckBeforeImportDataResponse creates a response to parse from PreCheckBeforeImportData response +func CreatePreCheckBeforeImportDataResponse() (response *PreCheckBeforeImportDataResponse) { + response = &PreCheckBeforeImportDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/purge_db_instance_log.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/purge_db_instance_log.go new file mode 100644 index 0000000..a75793a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/purge_db_instance_log.go @@ -0,0 +1,108 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PurgeDBInstanceLog invokes the rds.PurgeDBInstanceLog API synchronously +// api document: https://help.aliyun.com/api/rds/purgedbinstancelog.html +func (client *Client) PurgeDBInstanceLog(request *PurgeDBInstanceLogRequest) (response *PurgeDBInstanceLogResponse, err error) { + response = CreatePurgeDBInstanceLogResponse() + err = client.DoAction(request, response) + return +} + +// PurgeDBInstanceLogWithChan invokes the rds.PurgeDBInstanceLog API asynchronously +// api document: https://help.aliyun.com/api/rds/purgedbinstancelog.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PurgeDBInstanceLogWithChan(request *PurgeDBInstanceLogRequest) (<-chan *PurgeDBInstanceLogResponse, <-chan error) { + responseChan := make(chan *PurgeDBInstanceLogResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PurgeDBInstanceLog(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PurgeDBInstanceLogWithCallback invokes the rds.PurgeDBInstanceLog API asynchronously +// api document: https://help.aliyun.com/api/rds/purgedbinstancelog.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PurgeDBInstanceLogWithCallback(request *PurgeDBInstanceLogRequest, callback func(response *PurgeDBInstanceLogResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PurgeDBInstanceLogResponse + var err error + defer close(result) + response, err = client.PurgeDBInstanceLog(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PurgeDBInstanceLogRequest is the request struct for api PurgeDBInstanceLog +type PurgeDBInstanceLogRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// PurgeDBInstanceLogResponse is the response struct for api PurgeDBInstanceLog +type PurgeDBInstanceLogResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreatePurgeDBInstanceLogRequest creates a request to invoke PurgeDBInstanceLog API +func CreatePurgeDBInstanceLogRequest() (request *PurgeDBInstanceLogRequest) { + request = &PurgeDBInstanceLogRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "PurgeDBInstanceLog", "rds", "openAPI") + return +} + +// CreatePurgeDBInstanceLogResponse creates a response to parse from PurgeDBInstanceLog response +func CreatePurgeDBInstanceLogResponse() (response *PurgeDBInstanceLogResponse) { + response = &PurgeDBInstanceLogResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/query_price_for_buy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/query_price_for_buy.go new file mode 100644 index 0000000..72ef62b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/query_price_for_buy.go @@ -0,0 +1,121 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryPriceForBuy invokes the rds.QueryPriceForBuy API synchronously +// api document: https://help.aliyun.com/api/rds/querypriceforbuy.html +func (client *Client) QueryPriceForBuy(request *QueryPriceForBuyRequest) (response *QueryPriceForBuyResponse, err error) { + response = CreateQueryPriceForBuyResponse() + err = client.DoAction(request, response) + return +} + +// QueryPriceForBuyWithChan invokes the rds.QueryPriceForBuy API asynchronously +// api document: https://help.aliyun.com/api/rds/querypriceforbuy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryPriceForBuyWithChan(request *QueryPriceForBuyRequest) (<-chan *QueryPriceForBuyResponse, <-chan error) { + responseChan := make(chan *QueryPriceForBuyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryPriceForBuy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryPriceForBuyWithCallback invokes the rds.QueryPriceForBuy API asynchronously +// api document: https://help.aliyun.com/api/rds/querypriceforbuy.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryPriceForBuyWithCallback(request *QueryPriceForBuyRequest, callback func(response *QueryPriceForBuyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryPriceForBuyResponse + var err error + defer close(result) + response, err = client.QueryPriceForBuy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryPriceForBuyRequest is the request struct for api QueryPriceForBuy +type QueryPriceForBuyRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + CommodityCode string `position:"Query" name:"CommodityCode"` + Engine string `position:"Query" name:"Engine"` + EngineVersion string `position:"Query" name:"EngineVersion"` + DBInstanceClass string `position:"Query" name:"DBInstanceClass"` + DBInstanceStorage requests.Integer `position:"Query" name:"DBInstanceStorage"` + PayType string `position:"Query" name:"PayType"` + ZoneId string `position:"Query" name:"ZoneId"` + UsedTime string `position:"Query" name:"UsedTime"` + TimeType string `position:"Query" name:"TimeType"` + Quantity requests.Integer `position:"Query" name:"Quantity"` + InstanceUsedType requests.Integer `position:"Query" name:"InstanceUsedType"` + OrderType string `position:"Query" name:"OrderType"` +} + +// QueryPriceForBuyResponse is the response struct for api QueryPriceForBuy +type QueryPriceForBuyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PriceInfo PriceInfo `json:"PriceInfo" xml:"PriceInfo"` + Rules RulesInQueryPriceForBuy `json:"Rules" xml:"Rules"` +} + +// CreateQueryPriceForBuyRequest creates a request to invoke QueryPriceForBuy API +func CreateQueryPriceForBuyRequest() (request *QueryPriceForBuyRequest) { + request = &QueryPriceForBuyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "QueryPriceForBuy", "rds", "openAPI") + return +} + +// CreateQueryPriceForBuyResponse creates a response to parse from QueryPriceForBuy response +func CreateQueryPriceForBuyResponse() (response *QueryPriceForBuyResponse) { + response = &QueryPriceForBuyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/release_instance_public_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/release_instance_public_connection.go new file mode 100644 index 0000000..1b9d462 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/release_instance_public_connection.go @@ -0,0 +1,108 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReleaseInstancePublicConnection invokes the rds.ReleaseInstancePublicConnection API synchronously +// api document: https://help.aliyun.com/api/rds/releaseinstancepublicconnection.html +func (client *Client) ReleaseInstancePublicConnection(request *ReleaseInstancePublicConnectionRequest) (response *ReleaseInstancePublicConnectionResponse, err error) { + response = CreateReleaseInstancePublicConnectionResponse() + err = client.DoAction(request, response) + return +} + +// ReleaseInstancePublicConnectionWithChan invokes the rds.ReleaseInstancePublicConnection API asynchronously +// api document: https://help.aliyun.com/api/rds/releaseinstancepublicconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReleaseInstancePublicConnectionWithChan(request *ReleaseInstancePublicConnectionRequest) (<-chan *ReleaseInstancePublicConnectionResponse, <-chan error) { + responseChan := make(chan *ReleaseInstancePublicConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReleaseInstancePublicConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReleaseInstancePublicConnectionWithCallback invokes the rds.ReleaseInstancePublicConnection API asynchronously +// api document: https://help.aliyun.com/api/rds/releaseinstancepublicconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReleaseInstancePublicConnectionWithCallback(request *ReleaseInstancePublicConnectionRequest, callback func(response *ReleaseInstancePublicConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReleaseInstancePublicConnectionResponse + var err error + defer close(result) + response, err = client.ReleaseInstancePublicConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReleaseInstancePublicConnectionRequest is the request struct for api ReleaseInstancePublicConnection +type ReleaseInstancePublicConnectionRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + CurrentConnectionString string `position:"Query" name:"CurrentConnectionString"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ReleaseInstancePublicConnectionResponse is the response struct for api ReleaseInstancePublicConnection +type ReleaseInstancePublicConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateReleaseInstancePublicConnectionRequest creates a request to invoke ReleaseInstancePublicConnection API +func CreateReleaseInstancePublicConnectionRequest() (request *ReleaseInstancePublicConnectionRequest) { + request = &ReleaseInstancePublicConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ReleaseInstancePublicConnection", "rds", "openAPI") + return +} + +// CreateReleaseInstancePublicConnectionResponse creates a response to parse from ReleaseInstancePublicConnection response +func CreateReleaseInstancePublicConnectionResponse() (response *ReleaseInstancePublicConnectionResponse) { + response = &ReleaseInstancePublicConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/release_read_write_splitting_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/release_read_write_splitting_connection.go new file mode 100644 index 0000000..1cde1bb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/release_read_write_splitting_connection.go @@ -0,0 +1,107 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReleaseReadWriteSplittingConnection invokes the rds.ReleaseReadWriteSplittingConnection API synchronously +// api document: https://help.aliyun.com/api/rds/releasereadwritesplittingconnection.html +func (client *Client) ReleaseReadWriteSplittingConnection(request *ReleaseReadWriteSplittingConnectionRequest) (response *ReleaseReadWriteSplittingConnectionResponse, err error) { + response = CreateReleaseReadWriteSplittingConnectionResponse() + err = client.DoAction(request, response) + return +} + +// ReleaseReadWriteSplittingConnectionWithChan invokes the rds.ReleaseReadWriteSplittingConnection API asynchronously +// api document: https://help.aliyun.com/api/rds/releasereadwritesplittingconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReleaseReadWriteSplittingConnectionWithChan(request *ReleaseReadWriteSplittingConnectionRequest) (<-chan *ReleaseReadWriteSplittingConnectionResponse, <-chan error) { + responseChan := make(chan *ReleaseReadWriteSplittingConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReleaseReadWriteSplittingConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReleaseReadWriteSplittingConnectionWithCallback invokes the rds.ReleaseReadWriteSplittingConnection API asynchronously +// api document: https://help.aliyun.com/api/rds/releasereadwritesplittingconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReleaseReadWriteSplittingConnectionWithCallback(request *ReleaseReadWriteSplittingConnectionRequest, callback func(response *ReleaseReadWriteSplittingConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReleaseReadWriteSplittingConnectionResponse + var err error + defer close(result) + response, err = client.ReleaseReadWriteSplittingConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReleaseReadWriteSplittingConnectionRequest is the request struct for api ReleaseReadWriteSplittingConnection +type ReleaseReadWriteSplittingConnectionRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` +} + +// ReleaseReadWriteSplittingConnectionResponse is the response struct for api ReleaseReadWriteSplittingConnection +type ReleaseReadWriteSplittingConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateReleaseReadWriteSplittingConnectionRequest creates a request to invoke ReleaseReadWriteSplittingConnection API +func CreateReleaseReadWriteSplittingConnectionRequest() (request *ReleaseReadWriteSplittingConnectionRequest) { + request = &ReleaseReadWriteSplittingConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ReleaseReadWriteSplittingConnection", "rds", "openAPI") + return +} + +// CreateReleaseReadWriteSplittingConnectionResponse creates a response to parse from ReleaseReadWriteSplittingConnection response +func CreateReleaseReadWriteSplittingConnectionResponse() (response *ReleaseReadWriteSplittingConnectionResponse) { + response = &ReleaseReadWriteSplittingConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/release_replica.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/release_replica.go new file mode 100644 index 0000000..549ca25 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/release_replica.go @@ -0,0 +1,108 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReleaseReplica invokes the rds.ReleaseReplica API synchronously +// api document: https://help.aliyun.com/api/rds/releasereplica.html +func (client *Client) ReleaseReplica(request *ReleaseReplicaRequest) (response *ReleaseReplicaResponse, err error) { + response = CreateReleaseReplicaResponse() + err = client.DoAction(request, response) + return +} + +// ReleaseReplicaWithChan invokes the rds.ReleaseReplica API asynchronously +// api document: https://help.aliyun.com/api/rds/releasereplica.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReleaseReplicaWithChan(request *ReleaseReplicaRequest) (<-chan *ReleaseReplicaResponse, <-chan error) { + responseChan := make(chan *ReleaseReplicaResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReleaseReplica(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReleaseReplicaWithCallback invokes the rds.ReleaseReplica API asynchronously +// api document: https://help.aliyun.com/api/rds/releasereplica.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReleaseReplicaWithCallback(request *ReleaseReplicaRequest, callback func(response *ReleaseReplicaResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReleaseReplicaResponse + var err error + defer close(result) + response, err = client.ReleaseReplica(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReleaseReplicaRequest is the request struct for api ReleaseReplica +type ReleaseReplicaRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ReplicaId string `position:"Query" name:"ReplicaId"` +} + +// ReleaseReplicaResponse is the response struct for api ReleaseReplica +type ReleaseReplicaResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateReleaseReplicaRequest creates a request to invoke ReleaseReplica API +func CreateReleaseReplicaRequest() (request *ReleaseReplicaRequest) { + request = &ReleaseReplicaRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ReleaseReplica", "rds", "openAPI") + return +} + +// CreateReleaseReplicaResponse creates a response to parse from ReleaseReplica response +func CreateReleaseReplicaResponse() (response *ReleaseReplicaResponse) { + response = &ReleaseReplicaResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/remove_tags_from_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/remove_tags_from_resource.go new file mode 100644 index 0000000..0c04c72 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/remove_tags_from_resource.go @@ -0,0 +1,120 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveTagsFromResource invokes the rds.RemoveTagsFromResource API synchronously +// api document: https://help.aliyun.com/api/rds/removetagsfromresource.html +func (client *Client) RemoveTagsFromResource(request *RemoveTagsFromResourceRequest) (response *RemoveTagsFromResourceResponse, err error) { + response = CreateRemoveTagsFromResourceResponse() + err = client.DoAction(request, response) + return +} + +// RemoveTagsFromResourceWithChan invokes the rds.RemoveTagsFromResource API asynchronously +// api document: https://help.aliyun.com/api/rds/removetagsfromresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveTagsFromResourceWithChan(request *RemoveTagsFromResourceRequest) (<-chan *RemoveTagsFromResourceResponse, <-chan error) { + responseChan := make(chan *RemoveTagsFromResourceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveTagsFromResource(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveTagsFromResourceWithCallback invokes the rds.RemoveTagsFromResource API asynchronously +// api document: https://help.aliyun.com/api/rds/removetagsfromresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveTagsFromResourceWithCallback(request *RemoveTagsFromResourceRequest, callback func(response *RemoveTagsFromResourceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveTagsFromResourceResponse + var err error + defer close(result) + response, err = client.RemoveTagsFromResource(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveTagsFromResourceRequest is the request struct for api RemoveTagsFromResource +type RemoveTagsFromResourceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + ProxyId string `position:"Query" name:"proxyId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + Tags string `position:"Query" name:"Tags"` + Tag1Key string `position:"Query" name:"Tag.1.key"` + Tag2Key string `position:"Query" name:"Tag.2.key"` + Tag3Key string `position:"Query" name:"Tag.3.key"` + Tag4Key string `position:"Query" name:"Tag.4.key"` + Tag5Key string `position:"Query" name:"Tag.5.key"` + Tag1Value string `position:"Query" name:"Tag.1.value"` + Tag2Value string `position:"Query" name:"Tag.2.value"` + Tag3Value string `position:"Query" name:"Tag.3.value"` + Tag4Value string `position:"Query" name:"Tag.4.value"` + Tag5Value string `position:"Query" name:"Tag.5.value"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// RemoveTagsFromResourceResponse is the response struct for api RemoveTagsFromResource +type RemoveTagsFromResourceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveTagsFromResourceRequest creates a request to invoke RemoveTagsFromResource API +func CreateRemoveTagsFromResourceRequest() (request *RemoveTagsFromResourceRequest) { + request = &RemoveTagsFromResourceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "RemoveTagsFromResource", "rds", "openAPI") + return +} + +// CreateRemoveTagsFromResourceResponse creates a response to parse from RemoveTagsFromResource response +func CreateRemoveTagsFromResourceResponse() (response *RemoveTagsFromResourceResponse) { + response = &RemoveTagsFromResourceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/renew_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/renew_instance.go new file mode 100644 index 0000000..74c01dc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/renew_instance.go @@ -0,0 +1,111 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RenewInstance invokes the rds.RenewInstance API synchronously +// api document: https://help.aliyun.com/api/rds/renewinstance.html +func (client *Client) RenewInstance(request *RenewInstanceRequest) (response *RenewInstanceResponse, err error) { + response = CreateRenewInstanceResponse() + err = client.DoAction(request, response) + return +} + +// RenewInstanceWithChan invokes the rds.RenewInstance API asynchronously +// api document: https://help.aliyun.com/api/rds/renewinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RenewInstanceWithChan(request *RenewInstanceRequest) (<-chan *RenewInstanceResponse, <-chan error) { + responseChan := make(chan *RenewInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RenewInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RenewInstanceWithCallback invokes the rds.RenewInstance API asynchronously +// api document: https://help.aliyun.com/api/rds/renewinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RenewInstanceWithCallback(request *RenewInstanceRequest, callback func(response *RenewInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RenewInstanceResponse + var err error + defer close(result) + response, err = client.RenewInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RenewInstanceRequest is the request struct for api RenewInstance +type RenewInstanceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + Period string `position:"Query" name:"Period"` + AutoPay string `position:"Query" name:"AutoPay"` + BusinessInfo string `position:"Query" name:"BusinessInfo"` +} + +// RenewInstanceResponse is the response struct for api RenewInstance +type RenewInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + OrderId int `json:"OrderId" xml:"OrderId"` +} + +// CreateRenewInstanceRequest creates a request to invoke RenewInstance API +func CreateRenewInstanceRequest() (request *RenewInstanceRequest) { + request = &RenewInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "RenewInstance", "rds", "openAPI") + return +} + +// CreateRenewInstanceResponse creates a response to parse from RenewInstance response +func CreateRenewInstanceResponse() (response *RenewInstanceResponse) { + response = &RenewInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/request_service_of_cloud_dba.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/request_service_of_cloud_dba.go new file mode 100644 index 0000000..b3bcd82 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/request_service_of_cloud_dba.go @@ -0,0 +1,107 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RequestServiceOfCloudDBA invokes the rds.RequestServiceOfCloudDBA API synchronously +// api document: https://help.aliyun.com/api/rds/requestserviceofclouddba.html +func (client *Client) RequestServiceOfCloudDBA(request *RequestServiceOfCloudDBARequest) (response *RequestServiceOfCloudDBAResponse, err error) { + response = CreateRequestServiceOfCloudDBAResponse() + err = client.DoAction(request, response) + return +} + +// RequestServiceOfCloudDBAWithChan invokes the rds.RequestServiceOfCloudDBA API asynchronously +// api document: https://help.aliyun.com/api/rds/requestserviceofclouddba.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RequestServiceOfCloudDBAWithChan(request *RequestServiceOfCloudDBARequest) (<-chan *RequestServiceOfCloudDBAResponse, <-chan error) { + responseChan := make(chan *RequestServiceOfCloudDBAResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RequestServiceOfCloudDBA(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RequestServiceOfCloudDBAWithCallback invokes the rds.RequestServiceOfCloudDBA API asynchronously +// api document: https://help.aliyun.com/api/rds/requestserviceofclouddba.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RequestServiceOfCloudDBAWithCallback(request *RequestServiceOfCloudDBARequest, callback func(response *RequestServiceOfCloudDBAResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RequestServiceOfCloudDBAResponse + var err error + defer close(result) + response, err = client.RequestServiceOfCloudDBA(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RequestServiceOfCloudDBARequest is the request struct for api RequestServiceOfCloudDBA +type RequestServiceOfCloudDBARequest struct { + *requests.RpcRequest + DBInstanceId string `position:"Query" name:"DBInstanceId"` + ServiceRequestType string `position:"Query" name:"ServiceRequestType"` + ServiceRequestParam string `position:"Query" name:"ServiceRequestParam"` +} + +// RequestServiceOfCloudDBAResponse is the response struct for api RequestServiceOfCloudDBA +type RequestServiceOfCloudDBAResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ListData string `json:"ListData" xml:"ListData"` + AttrData string `json:"AttrData" xml:"AttrData"` +} + +// CreateRequestServiceOfCloudDBARequest creates a request to invoke RequestServiceOfCloudDBA API +func CreateRequestServiceOfCloudDBARequest() (request *RequestServiceOfCloudDBARequest) { + request = &RequestServiceOfCloudDBARequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "RequestServiceOfCloudDBA", "rds", "openAPI") + return +} + +// CreateRequestServiceOfCloudDBAResponse creates a response to parse from RequestServiceOfCloudDBA response +func CreateRequestServiceOfCloudDBAResponse() (response *RequestServiceOfCloudDBAResponse) { + response = &RequestServiceOfCloudDBAResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/reset_account.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/reset_account.go new file mode 100644 index 0000000..a3984f5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/reset_account.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ResetAccount invokes the rds.ResetAccount API synchronously +// api document: https://help.aliyun.com/api/rds/resetaccount.html +func (client *Client) ResetAccount(request *ResetAccountRequest) (response *ResetAccountResponse, err error) { + response = CreateResetAccountResponse() + err = client.DoAction(request, response) + return +} + +// ResetAccountWithChan invokes the rds.ResetAccount API asynchronously +// api document: https://help.aliyun.com/api/rds/resetaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResetAccountWithChan(request *ResetAccountRequest) (<-chan *ResetAccountResponse, <-chan error) { + responseChan := make(chan *ResetAccountResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ResetAccount(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ResetAccountWithCallback invokes the rds.ResetAccount API asynchronously +// api document: https://help.aliyun.com/api/rds/resetaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResetAccountWithCallback(request *ResetAccountRequest, callback func(response *ResetAccountResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ResetAccountResponse + var err error + defer close(result) + response, err = client.ResetAccount(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ResetAccountRequest is the request struct for api ResetAccount +type ResetAccountRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + AccountName string `position:"Query" name:"AccountName"` + AccountPassword string `position:"Query" name:"AccountPassword"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ResetAccountResponse is the response struct for api ResetAccount +type ResetAccountResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateResetAccountRequest creates a request to invoke ResetAccount API +func CreateResetAccountRequest() (request *ResetAccountRequest) { + request = &ResetAccountRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ResetAccount", "rds", "openAPI") + return +} + +// CreateResetAccountResponse creates a response to parse from ResetAccount response +func CreateResetAccountResponse() (response *ResetAccountResponse) { + response = &ResetAccountResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/reset_account_for_pg.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/reset_account_for_pg.go new file mode 100644 index 0000000..fe2ebb0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/reset_account_for_pg.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ResetAccountForPG invokes the rds.ResetAccountForPG API synchronously +// api document: https://help.aliyun.com/api/rds/resetaccountforpg.html +func (client *Client) ResetAccountForPG(request *ResetAccountForPGRequest) (response *ResetAccountForPGResponse, err error) { + response = CreateResetAccountForPGResponse() + err = client.DoAction(request, response) + return +} + +// ResetAccountForPGWithChan invokes the rds.ResetAccountForPG API asynchronously +// api document: https://help.aliyun.com/api/rds/resetaccountforpg.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResetAccountForPGWithChan(request *ResetAccountForPGRequest) (<-chan *ResetAccountForPGResponse, <-chan error) { + responseChan := make(chan *ResetAccountForPGResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ResetAccountForPG(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ResetAccountForPGWithCallback invokes the rds.ResetAccountForPG API asynchronously +// api document: https://help.aliyun.com/api/rds/resetaccountforpg.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResetAccountForPGWithCallback(request *ResetAccountForPGRequest, callback func(response *ResetAccountForPGResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ResetAccountForPGResponse + var err error + defer close(result) + response, err = client.ResetAccountForPG(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ResetAccountForPGRequest is the request struct for api ResetAccountForPG +type ResetAccountForPGRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + AccountName string `position:"Query" name:"AccountName"` + AccountPassword string `position:"Query" name:"AccountPassword"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ResetAccountForPGResponse is the response struct for api ResetAccountForPG +type ResetAccountForPGResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateResetAccountForPGRequest creates a request to invoke ResetAccountForPG API +func CreateResetAccountForPGRequest() (request *ResetAccountForPGRequest) { + request = &ResetAccountForPGRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ResetAccountForPG", "rds", "openAPI") + return +} + +// CreateResetAccountForPGResponse creates a response to parse from ResetAccountForPG response +func CreateResetAccountForPGResponse() (response *ResetAccountForPGResponse) { + response = &ResetAccountForPGResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/reset_account_password.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/reset_account_password.go new file mode 100644 index 0000000..c4c89f0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/reset_account_password.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ResetAccountPassword invokes the rds.ResetAccountPassword API synchronously +// api document: https://help.aliyun.com/api/rds/resetaccountpassword.html +func (client *Client) ResetAccountPassword(request *ResetAccountPasswordRequest) (response *ResetAccountPasswordResponse, err error) { + response = CreateResetAccountPasswordResponse() + err = client.DoAction(request, response) + return +} + +// ResetAccountPasswordWithChan invokes the rds.ResetAccountPassword API asynchronously +// api document: https://help.aliyun.com/api/rds/resetaccountpassword.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResetAccountPasswordWithChan(request *ResetAccountPasswordRequest) (<-chan *ResetAccountPasswordResponse, <-chan error) { + responseChan := make(chan *ResetAccountPasswordResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ResetAccountPassword(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ResetAccountPasswordWithCallback invokes the rds.ResetAccountPassword API asynchronously +// api document: https://help.aliyun.com/api/rds/resetaccountpassword.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ResetAccountPasswordWithCallback(request *ResetAccountPasswordRequest, callback func(response *ResetAccountPasswordResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ResetAccountPasswordResponse + var err error + defer close(result) + response, err = client.ResetAccountPassword(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ResetAccountPasswordRequest is the request struct for api ResetAccountPassword +type ResetAccountPasswordRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + AccountName string `position:"Query" name:"AccountName"` + AccountPassword string `position:"Query" name:"AccountPassword"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ResetAccountPasswordResponse is the response struct for api ResetAccountPassword +type ResetAccountPasswordResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateResetAccountPasswordRequest creates a request to invoke ResetAccountPassword API +func CreateResetAccountPasswordRequest() (request *ResetAccountPasswordRequest) { + request = &ResetAccountPasswordRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "ResetAccountPassword", "rds", "openAPI") + return +} + +// CreateResetAccountPasswordResponse creates a response to parse from ResetAccountPassword response +func CreateResetAccountPasswordResponse() (response *ResetAccountPasswordResponse) { + response = &ResetAccountPasswordResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/restart_db_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/restart_db_instance.go new file mode 100644 index 0000000..58fdb24 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/restart_db_instance.go @@ -0,0 +1,108 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RestartDBInstance invokes the rds.RestartDBInstance API synchronously +// api document: https://help.aliyun.com/api/rds/restartdbinstance.html +func (client *Client) RestartDBInstance(request *RestartDBInstanceRequest) (response *RestartDBInstanceResponse, err error) { + response = CreateRestartDBInstanceResponse() + err = client.DoAction(request, response) + return +} + +// RestartDBInstanceWithChan invokes the rds.RestartDBInstance API asynchronously +// api document: https://help.aliyun.com/api/rds/restartdbinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RestartDBInstanceWithChan(request *RestartDBInstanceRequest) (<-chan *RestartDBInstanceResponse, <-chan error) { + responseChan := make(chan *RestartDBInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RestartDBInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RestartDBInstanceWithCallback invokes the rds.RestartDBInstance API asynchronously +// api document: https://help.aliyun.com/api/rds/restartdbinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RestartDBInstanceWithCallback(request *RestartDBInstanceRequest, callback func(response *RestartDBInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RestartDBInstanceResponse + var err error + defer close(result) + response, err = client.RestartDBInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RestartDBInstanceRequest is the request struct for api RestartDBInstance +type RestartDBInstanceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// RestartDBInstanceResponse is the response struct for api RestartDBInstance +type RestartDBInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRestartDBInstanceRequest creates a request to invoke RestartDBInstance API +func CreateRestartDBInstanceRequest() (request *RestartDBInstanceRequest) { + request = &RestartDBInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "RestartDBInstance", "rds", "openAPI") + return +} + +// CreateRestartDBInstanceResponse creates a response to parse from RestartDBInstance response +func CreateRestartDBInstanceResponse() (response *RestartDBInstanceResponse) { + response = &RestartDBInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/restore_db_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/restore_db_instance.go new file mode 100644 index 0000000..2d7da82 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/restore_db_instance.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RestoreDBInstance invokes the rds.RestoreDBInstance API synchronously +// api document: https://help.aliyun.com/api/rds/restoredbinstance.html +func (client *Client) RestoreDBInstance(request *RestoreDBInstanceRequest) (response *RestoreDBInstanceResponse, err error) { + response = CreateRestoreDBInstanceResponse() + err = client.DoAction(request, response) + return +} + +// RestoreDBInstanceWithChan invokes the rds.RestoreDBInstance API asynchronously +// api document: https://help.aliyun.com/api/rds/restoredbinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RestoreDBInstanceWithChan(request *RestoreDBInstanceRequest) (<-chan *RestoreDBInstanceResponse, <-chan error) { + responseChan := make(chan *RestoreDBInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RestoreDBInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RestoreDBInstanceWithCallback invokes the rds.RestoreDBInstance API asynchronously +// api document: https://help.aliyun.com/api/rds/restoredbinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RestoreDBInstanceWithCallback(request *RestoreDBInstanceRequest, callback func(response *RestoreDBInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RestoreDBInstanceResponse + var err error + defer close(result) + response, err = client.RestoreDBInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RestoreDBInstanceRequest is the request struct for api RestoreDBInstance +type RestoreDBInstanceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + BackupId string `position:"Query" name:"BackupId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// RestoreDBInstanceResponse is the response struct for api RestoreDBInstance +type RestoreDBInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRestoreDBInstanceRequest creates a request to invoke RestoreDBInstance API +func CreateRestoreDBInstanceRequest() (request *RestoreDBInstanceRequest) { + request = &RestoreDBInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "RestoreDBInstance", "rds", "openAPI") + return +} + +// CreateRestoreDBInstanceResponse creates a response to parse from RestoreDBInstance response +func CreateRestoreDBInstanceResponse() (response *RestoreDBInstanceResponse) { + response = &RestoreDBInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/revoke_account_privilege.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/revoke_account_privilege.go new file mode 100644 index 0000000..7521493 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/revoke_account_privilege.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RevokeAccountPrivilege invokes the rds.RevokeAccountPrivilege API synchronously +// api document: https://help.aliyun.com/api/rds/revokeaccountprivilege.html +func (client *Client) RevokeAccountPrivilege(request *RevokeAccountPrivilegeRequest) (response *RevokeAccountPrivilegeResponse, err error) { + response = CreateRevokeAccountPrivilegeResponse() + err = client.DoAction(request, response) + return +} + +// RevokeAccountPrivilegeWithChan invokes the rds.RevokeAccountPrivilege API asynchronously +// api document: https://help.aliyun.com/api/rds/revokeaccountprivilege.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RevokeAccountPrivilegeWithChan(request *RevokeAccountPrivilegeRequest) (<-chan *RevokeAccountPrivilegeResponse, <-chan error) { + responseChan := make(chan *RevokeAccountPrivilegeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RevokeAccountPrivilege(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RevokeAccountPrivilegeWithCallback invokes the rds.RevokeAccountPrivilege API asynchronously +// api document: https://help.aliyun.com/api/rds/revokeaccountprivilege.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RevokeAccountPrivilegeWithCallback(request *RevokeAccountPrivilegeRequest, callback func(response *RevokeAccountPrivilegeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RevokeAccountPrivilegeResponse + var err error + defer close(result) + response, err = client.RevokeAccountPrivilege(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RevokeAccountPrivilegeRequest is the request struct for api RevokeAccountPrivilege +type RevokeAccountPrivilegeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + AccountName string `position:"Query" name:"AccountName"` + DBName string `position:"Query" name:"DBName"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// RevokeAccountPrivilegeResponse is the response struct for api RevokeAccountPrivilege +type RevokeAccountPrivilegeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRevokeAccountPrivilegeRequest creates a request to invoke RevokeAccountPrivilege API +func CreateRevokeAccountPrivilegeRequest() (request *RevokeAccountPrivilegeRequest) { + request = &RevokeAccountPrivilegeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "RevokeAccountPrivilege", "rds", "openAPI") + return +} + +// CreateRevokeAccountPrivilegeResponse creates a response to parse from RevokeAccountPrivilege response +func CreateRevokeAccountPrivilegeResponse() (response *RevokeAccountPrivilegeResponse) { + response = &RevokeAccountPrivilegeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/revoke_operator_permission.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/revoke_operator_permission.go new file mode 100644 index 0000000..adebcb7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/revoke_operator_permission.go @@ -0,0 +1,107 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RevokeOperatorPermission invokes the rds.RevokeOperatorPermission API synchronously +// api document: https://help.aliyun.com/api/rds/revokeoperatorpermission.html +func (client *Client) RevokeOperatorPermission(request *RevokeOperatorPermissionRequest) (response *RevokeOperatorPermissionResponse, err error) { + response = CreateRevokeOperatorPermissionResponse() + err = client.DoAction(request, response) + return +} + +// RevokeOperatorPermissionWithChan invokes the rds.RevokeOperatorPermission API asynchronously +// api document: https://help.aliyun.com/api/rds/revokeoperatorpermission.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RevokeOperatorPermissionWithChan(request *RevokeOperatorPermissionRequest) (<-chan *RevokeOperatorPermissionResponse, <-chan error) { + responseChan := make(chan *RevokeOperatorPermissionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RevokeOperatorPermission(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RevokeOperatorPermissionWithCallback invokes the rds.RevokeOperatorPermission API asynchronously +// api document: https://help.aliyun.com/api/rds/revokeoperatorpermission.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RevokeOperatorPermissionWithCallback(request *RevokeOperatorPermissionRequest, callback func(response *RevokeOperatorPermissionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RevokeOperatorPermissionResponse + var err error + defer close(result) + response, err = client.RevokeOperatorPermission(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RevokeOperatorPermissionRequest is the request struct for api RevokeOperatorPermission +type RevokeOperatorPermissionRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// RevokeOperatorPermissionResponse is the response struct for api RevokeOperatorPermission +type RevokeOperatorPermissionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRevokeOperatorPermissionRequest creates a request to invoke RevokeOperatorPermission API +func CreateRevokeOperatorPermissionRequest() (request *RevokeOperatorPermissionRequest) { + request = &RevokeOperatorPermissionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "RevokeOperatorPermission", "rds", "openAPI") + return +} + +// CreateRevokeOperatorPermissionResponse creates a response to parse from RevokeOperatorPermission response +func CreateRevokeOperatorPermissionResponse() (response *RevokeOperatorPermissionResponse) { + response = &RevokeOperatorPermissionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/start_archive_sql_log.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/start_archive_sql_log.go new file mode 100644 index 0000000..bf79aaf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/start_archive_sql_log.go @@ -0,0 +1,112 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StartArchiveSQLLog invokes the rds.StartArchiveSQLLog API synchronously +// api document: https://help.aliyun.com/api/rds/startarchivesqllog.html +func (client *Client) StartArchiveSQLLog(request *StartArchiveSQLLogRequest) (response *StartArchiveSQLLogResponse, err error) { + response = CreateStartArchiveSQLLogResponse() + err = client.DoAction(request, response) + return +} + +// StartArchiveSQLLogWithChan invokes the rds.StartArchiveSQLLog API asynchronously +// api document: https://help.aliyun.com/api/rds/startarchivesqllog.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartArchiveSQLLogWithChan(request *StartArchiveSQLLogRequest) (<-chan *StartArchiveSQLLogResponse, <-chan error) { + responseChan := make(chan *StartArchiveSQLLogResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartArchiveSQLLog(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartArchiveSQLLogWithCallback invokes the rds.StartArchiveSQLLog API asynchronously +// api document: https://help.aliyun.com/api/rds/startarchivesqllog.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartArchiveSQLLogWithCallback(request *StartArchiveSQLLogRequest, callback func(response *StartArchiveSQLLogResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartArchiveSQLLogResponse + var err error + defer close(result) + response, err = client.StartArchiveSQLLog(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartArchiveSQLLogRequest is the request struct for api StartArchiveSQLLog +type StartArchiveSQLLogRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + QueryKeywords string `position:"Query" name:"QueryKeywords"` + StartTime string `position:"Query" name:"StartTime"` + Database string `position:"Query" name:"Database"` + User string `position:"Query" name:"User"` + EndTime string `position:"Query" name:"EndTime"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// StartArchiveSQLLogResponse is the response struct for api StartArchiveSQLLog +type StartArchiveSQLLogResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStartArchiveSQLLogRequest creates a request to invoke StartArchiveSQLLog API +func CreateStartArchiveSQLLogRequest() (request *StartArchiveSQLLogRequest) { + request = &StartArchiveSQLLogRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "StartArchiveSQLLog", "rds", "openAPI") + return +} + +// CreateStartArchiveSQLLogResponse creates a response to parse from StartArchiveSQLLog response +func CreateStartArchiveSQLLogResponse() (response *StartArchiveSQLLogResponse) { + response = &StartArchiveSQLLogResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/start_db_instance_diagnose.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/start_db_instance_diagnose.go new file mode 100644 index 0000000..056a3b0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/start_db_instance_diagnose.go @@ -0,0 +1,111 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StartDBInstanceDiagnose invokes the rds.StartDBInstanceDiagnose API synchronously +// api document: https://help.aliyun.com/api/rds/startdbinstancediagnose.html +func (client *Client) StartDBInstanceDiagnose(request *StartDBInstanceDiagnoseRequest) (response *StartDBInstanceDiagnoseResponse, err error) { + response = CreateStartDBInstanceDiagnoseResponse() + err = client.DoAction(request, response) + return +} + +// StartDBInstanceDiagnoseWithChan invokes the rds.StartDBInstanceDiagnose API asynchronously +// api document: https://help.aliyun.com/api/rds/startdbinstancediagnose.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartDBInstanceDiagnoseWithChan(request *StartDBInstanceDiagnoseRequest) (<-chan *StartDBInstanceDiagnoseResponse, <-chan error) { + responseChan := make(chan *StartDBInstanceDiagnoseResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartDBInstanceDiagnose(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartDBInstanceDiagnoseWithCallback invokes the rds.StartDBInstanceDiagnose API asynchronously +// api document: https://help.aliyun.com/api/rds/startdbinstancediagnose.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartDBInstanceDiagnoseWithCallback(request *StartDBInstanceDiagnoseRequest, callback func(response *StartDBInstanceDiagnoseResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartDBInstanceDiagnoseResponse + var err error + defer close(result) + response, err = client.StartDBInstanceDiagnose(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartDBInstanceDiagnoseRequest is the request struct for api StartDBInstanceDiagnose +type StartDBInstanceDiagnoseRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + ProxyId string `position:"Query" name:"proxyId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// StartDBInstanceDiagnoseResponse is the response struct for api StartDBInstanceDiagnose +type StartDBInstanceDiagnoseResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceName string `json:"DBInstanceName" xml:"DBInstanceName"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` +} + +// CreateStartDBInstanceDiagnoseRequest creates a request to invoke StartDBInstanceDiagnose API +func CreateStartDBInstanceDiagnoseRequest() (request *StartDBInstanceDiagnoseRequest) { + request = &StartDBInstanceDiagnoseRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "StartDBInstanceDiagnose", "rds", "openAPI") + return +} + +// CreateStartDBInstanceDiagnoseResponse creates a response to parse from StartDBInstanceDiagnose response +func CreateStartDBInstanceDiagnoseResponse() (response *StartDBInstanceDiagnoseResponse) { + response = &StartDBInstanceDiagnoseResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/stop_syncing.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/stop_syncing.go new file mode 100644 index 0000000..b0b5819 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/stop_syncing.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StopSyncing invokes the rds.StopSyncing API synchronously +// api document: https://help.aliyun.com/api/rds/stopsyncing.html +func (client *Client) StopSyncing(request *StopSyncingRequest) (response *StopSyncingResponse, err error) { + response = CreateStopSyncingResponse() + err = client.DoAction(request, response) + return +} + +// StopSyncingWithChan invokes the rds.StopSyncing API asynchronously +// api document: https://help.aliyun.com/api/rds/stopsyncing.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopSyncingWithChan(request *StopSyncingRequest) (<-chan *StopSyncingResponse, <-chan error) { + responseChan := make(chan *StopSyncingResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopSyncing(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopSyncingWithCallback invokes the rds.StopSyncing API asynchronously +// api document: https://help.aliyun.com/api/rds/stopsyncing.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopSyncingWithCallback(request *StopSyncingRequest, callback func(response *StopSyncingResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopSyncingResponse + var err error + defer close(result) + response, err = client.StopSyncing(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopSyncingRequest is the request struct for api StopSyncing +type StopSyncingRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + ImportId requests.Integer `position:"Query" name:"ImportId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// StopSyncingResponse is the response struct for api StopSyncing +type StopSyncingResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStopSyncingRequest creates a request to invoke StopSyncing API +func CreateStopSyncingRequest() (request *StopSyncingRequest) { + request = &StopSyncingRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "StopSyncing", "rds", "openAPI") + return +} + +// CreateStopSyncingResponse creates a response to parse from StopSyncing response +func CreateStopSyncingResponse() (response *StopSyncingResponse) { + response = &StopSyncingResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_abnormal_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_abnormal_item.go new file mode 100644 index 0000000..8a74f04 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_abnormal_item.go @@ -0,0 +1,27 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AbnormalItem is a nested struct in rds response +type AbnormalItem struct { + CheckTime string `json:"CheckTime" xml:"CheckTime"` + CheckItem string `json:"CheckItem" xml:"CheckItem"` + AbnormalReason string `json:"AbnormalReason" xml:"AbnormalReason"` + AbnormalValue string `json:"AbnormalValue" xml:"AbnormalValue"` + AbnormalDetail string `json:"AbnormalDetail" xml:"AbnormalDetail"` + AdviceKey string `json:"AdviceKey" xml:"AdviceKey"` + AdviseValue AdviseValue `json:"AdviseValue" xml:"AdviseValue"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_abnormal_items.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_abnormal_items.go new file mode 100644 index 0000000..7034510 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_abnormal_items.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AbnormalItems is a nested struct in rds response +type AbnormalItems struct { + AbnormalItem []AbnormalItem `json:"AbnormalItem" xml:"AbnormalItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_account_privilege_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_account_privilege_info.go new file mode 100644 index 0000000..2daf106 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_account_privilege_info.go @@ -0,0 +1,23 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AccountPrivilegeInfo is a nested struct in rds response +type AccountPrivilegeInfo struct { + Account string `json:"Account" xml:"Account"` + AccountPrivilege string `json:"AccountPrivilege" xml:"AccountPrivilege"` + AccountPrivilegeDetail string `json:"AccountPrivilegeDetail" xml:"AccountPrivilegeDetail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_accounts_in_describe_accounts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_accounts_in_describe_accounts.go new file mode 100644 index 0000000..d1a7614 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_accounts_in_describe_accounts.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AccountsInDescribeAccounts is a nested struct in rds response +type AccountsInDescribeAccounts struct { + DBInstanceAccount []DBInstanceAccount `json:"DBInstanceAccount" xml:"DBInstanceAccount"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_accounts_in_describe_databases.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_accounts_in_describe_databases.go new file mode 100644 index 0000000..06f72d5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_accounts_in_describe_databases.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AccountsInDescribeDatabases is a nested struct in rds response +type AccountsInDescribeDatabases struct { + AccountPrivilegeInfo []AccountPrivilegeInfo `json:"AccountPrivilegeInfo" xml:"AccountPrivilegeInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_activity_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_activity_info.go new file mode 100644 index 0000000..2f10701 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_activity_info.go @@ -0,0 +1,23 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ActivityInfo is a nested struct in rds response +type ActivityInfo struct { + Success string `json:"Success" xml:"Success"` + CheckErrMsg string `json:"CheckErrMsg" xml:"CheckErrMsg"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advice_on_big_table.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advice_on_big_table.go new file mode 100644 index 0000000..44ef94a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advice_on_big_table.go @@ -0,0 +1,25 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AdviceOnBigTable is a nested struct in rds response +type AdviceOnBigTable struct { + DBName string `json:"DBName" xml:"DBName"` + TableName string `json:"TableName" xml:"TableName"` + TableSize int `json:"TableSize" xml:"TableSize"` + DataSize int `json:"DataSize" xml:"DataSize"` + IndexSize int `json:"IndexSize" xml:"IndexSize"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advice_on_excess_index.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advice_on_excess_index.go new file mode 100644 index 0000000..afe4ace --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advice_on_excess_index.go @@ -0,0 +1,23 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AdviceOnExcessIndex is a nested struct in rds response +type AdviceOnExcessIndex struct { + DBName string `json:"DBName" xml:"DBName"` + TableName string `json:"TableName" xml:"TableName"` + IndexCount int `json:"IndexCount" xml:"IndexCount"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advice_on_miss_index.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advice_on_miss_index.go new file mode 100644 index 0000000..fd48907 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advice_on_miss_index.go @@ -0,0 +1,24 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AdviceOnMissIndex is a nested struct in rds response +type AdviceOnMissIndex struct { + DBName string `json:"DBName" xml:"DBName"` + TableName string `json:"TableName" xml:"TableName"` + QueryColumn string `json:"QueryColumn" xml:"QueryColumn"` + SQLText string `json:"SQLText" xml:"SQLText"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advice_on_miss_pk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advice_on_miss_pk.go new file mode 100644 index 0000000..77822aa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advice_on_miss_pk.go @@ -0,0 +1,22 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AdviceOnMissPK is a nested struct in rds response +type AdviceOnMissPK struct { + DBName string `json:"DBName" xml:"DBName"` + TableName string `json:"TableName" xml:"TableName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advice_on_storage.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advice_on_storage.go new file mode 100644 index 0000000..1900cdf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advice_on_storage.go @@ -0,0 +1,24 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AdviceOnStorage is a nested struct in rds response +type AdviceOnStorage struct { + DBName string `json:"DBName" xml:"DBName"` + TableName string `json:"TableName" xml:"TableName"` + CurrentEngine string `json:"CurrentEngine" xml:"CurrentEngine"` + AdviseEngine string `json:"AdviseEngine" xml:"AdviseEngine"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advise_value.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advise_value.go new file mode 100644 index 0000000..f40fd05 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_advise_value.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AdviseValue is a nested struct in rds response +type AdviseValue struct { + String []string `json:"String" xml:"String"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_backup.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_backup.go new file mode 100644 index 0000000..773b3fd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_backup.go @@ -0,0 +1,38 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Backup is a nested struct in rds response +type Backup struct { + BackupExtractionStatus string `json:"BackupExtractionStatus" xml:"BackupExtractionStatus"` + HostInstanceID string `json:"HostInstanceID" xml:"HostInstanceID"` + BackupMode string `json:"BackupMode" xml:"BackupMode"` + BackupIntranetDownloadURL string `json:"BackupIntranetDownloadURL" xml:"BackupIntranetDownloadURL"` + BackupEndTime string `json:"BackupEndTime" xml:"BackupEndTime"` + BackupMethod string `json:"BackupMethod" xml:"BackupMethod"` + BackupDBNames string `json:"BackupDBNames" xml:"BackupDBNames"` + BackupType string `json:"BackupType" xml:"BackupType"` + TotalBackupSize int `json:"TotalBackupSize" xml:"TotalBackupSize"` + BackupSize int `json:"BackupSize" xml:"BackupSize"` + BackupStatus string `json:"BackupStatus" xml:"BackupStatus"` + StoreStatus string `json:"StoreStatus" xml:"StoreStatus"` + BackupStartTime string `json:"BackupStartTime" xml:"BackupStartTime"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + BackupId string `json:"BackupId" xml:"BackupId"` + BackupLocation string `json:"BackupLocation" xml:"BackupLocation"` + BackupScale string `json:"BackupScale" xml:"BackupScale"` + BackupDownloadURL string `json:"BackupDownloadURL" xml:"BackupDownloadURL"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_backup_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_backup_job.go new file mode 100644 index 0000000..9198ff9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_backup_job.go @@ -0,0 +1,25 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackupJob is a nested struct in rds response +type BackupJob struct { + BackupProgressStatus string `json:"BackupProgressStatus" xml:"BackupProgressStatus"` + JobMode string `json:"JobMode" xml:"JobMode"` + Process string `json:"Process" xml:"Process"` + TaskAction string `json:"TaskAction" xml:"TaskAction"` + BackupjobId string `json:"BackupjobId" xml:"BackupjobId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_bin_log_file.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_bin_log_file.go new file mode 100644 index 0000000..03911fd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_bin_log_file.go @@ -0,0 +1,28 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BinLogFile is a nested struct in rds response +type BinLogFile struct { + FileSize int `json:"FileSize" xml:"FileSize"` + LogBeginTime string `json:"LogBeginTime" xml:"LogBeginTime"` + LogEndTime string `json:"LogEndTime" xml:"LogEndTime"` + DownloadLink string `json:"DownloadLink" xml:"DownloadLink"` + IntranetDownloadLink string `json:"IntranetDownloadLink" xml:"IntranetDownloadLink"` + LinkExpiredTime string `json:"LinkExpiredTime" xml:"LinkExpiredTime"` + Checksum string `json:"Checksum" xml:"Checksum"` + HostInstanceID string `json:"HostInstanceID" xml:"HostInstanceID"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_character_set_name_items.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_character_set_name_items.go new file mode 100644 index 0000000..1a95e56 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_character_set_name_items.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CharacterSetNameItems is a nested struct in rds response +type CharacterSetNameItems struct { + CharacterSetName []string `json:"CharacterSetName" xml:"CharacterSetName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_config_parameters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_config_parameters.go new file mode 100644 index 0000000..49158cc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_config_parameters.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ConfigParameters is a nested struct in rds response +type ConfigParameters struct { + DBInstanceParameter []DBInstanceParameter `json:"DBInstanceParameter" xml:"DBInstanceParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_connection.go new file mode 100644 index 0000000..d4c7b8a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_connection.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Connection is a nested struct in rds response +type Connection struct { + Detail []string `json:"Detail" xml:"Detail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_coupon.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_coupon.go new file mode 100644 index 0000000..daff42b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_coupon.go @@ -0,0 +1,24 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Coupon is a nested struct in rds response +type Coupon struct { + Name string `json:"Name" xml:"Name"` + CouponNo string `json:"CouponNo" xml:"CouponNo"` + IsSelected string `json:"IsSelected" xml:"IsSelected"` + Description string `json:"Description" xml:"Description"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_coupons_in_describe_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_coupons_in_describe_price.go new file mode 100644 index 0000000..45dc8e7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_coupons_in_describe_price.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CouponsInDescribePrice is a nested struct in rds response +type CouponsInDescribePrice struct { + Coupon []Coupon `json:"Coupon" xml:"Coupon"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_coupons_in_describe_renewal_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_coupons_in_describe_renewal_price.go new file mode 100644 index 0000000..1a64e45 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_coupons_in_describe_renewal_price.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CouponsInDescribeRenewalPrice is a nested struct in rds response +type CouponsInDescribeRenewalPrice struct { + Coupon []Coupon `json:"Coupon" xml:"Coupon"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_coupons_in_query_price_for_buy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_coupons_in_query_price_for_buy.go new file mode 100644 index 0000000..434235a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_coupons_in_query_price_for_buy.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CouponsInQueryPriceForBuy is a nested struct in rds response +type CouponsInQueryPriceForBuy struct { + Coupon []Coupon `json:"Coupon" xml:"Coupon"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_cpu.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_cpu.go new file mode 100644 index 0000000..92239ae --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_cpu.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CPU is a nested struct in rds response +type CPU struct { + Detail []string `json:"Detail" xml:"Detail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_database.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_database.go new file mode 100644 index 0000000..3dd8c6a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_database.go @@ -0,0 +1,28 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Database is a nested struct in rds response +type Database struct { + CharacterSetName string `json:"CharacterSetName" xml:"CharacterSetName"` + Engine string `json:"Engine" xml:"Engine"` + DBStatus string `json:"DBStatus" xml:"DBStatus"` + TDEStatus string `json:"TDEStatus" xml:"TDEStatus"` + DBName string `json:"DBName" xml:"DBName"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + DBDescription string `json:"DBDescription" xml:"DBDescription"` + Accounts AccountsInDescribeDatabases `json:"Accounts" xml:"Accounts"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_database_privilege.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_database_privilege.go new file mode 100644 index 0000000..280d8a0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_database_privilege.go @@ -0,0 +1,23 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DatabasePrivilege is a nested struct in rds response +type DatabasePrivilege struct { + DBName string `json:"DBName" xml:"DBName"` + AccountPrivilege string `json:"AccountPrivilege" xml:"AccountPrivilege"` + AccountPrivilegeDetail string `json:"AccountPrivilegeDetail" xml:"AccountPrivilegeDetail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_database_privileges.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_database_privileges.go new file mode 100644 index 0000000..66118f7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_database_privileges.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DatabasePrivileges is a nested struct in rds response +type DatabasePrivileges struct { + DatabasePrivilege []DatabasePrivilege `json:"DatabasePrivilege" xml:"DatabasePrivilege"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_databases_in_describe_databases.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_databases_in_describe_databases.go new file mode 100644 index 0000000..e8e8867 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_databases_in_describe_databases.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DatabasesInDescribeDatabases is a nested struct in rds response +type DatabasesInDescribeDatabases struct { + Database []Database `json:"Database" xml:"Database"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_databases_in_describe_db_instance_tde.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_databases_in_describe_db_instance_tde.go new file mode 100644 index 0000000..87bb0c6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_databases_in_describe_db_instance_tde.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DatabasesInDescribeDBInstanceTDE is a nested struct in rds response +type DatabasesInDescribeDBInstanceTDE struct { + Database []Database `json:"Database" xml:"Database"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance.go new file mode 100644 index 0000000..e1c30be --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance.go @@ -0,0 +1,48 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DBInstance is a nested struct in rds response +type DBInstance struct { + InsId int `json:"InsId" xml:"InsId"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + DBInstanceDescription string `json:"DBInstanceDescription" xml:"DBInstanceDescription"` + PayType string `json:"PayType" xml:"PayType"` + DBInstanceType string `json:"DBInstanceType" xml:"DBInstanceType"` + RegionId string `json:"RegionId" xml:"RegionId"` + ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` + DBInstanceStatus string `json:"DBInstanceStatus" xml:"DBInstanceStatus"` + Engine string `json:"Engine" xml:"Engine"` + DBInstanceNetType string `json:"DBInstanceNetType" xml:"DBInstanceNetType"` + ConnectionMode string `json:"ConnectionMode" xml:"ConnectionMode"` + LockMode string `json:"LockMode" xml:"LockMode"` + DBInstanceClass string `json:"DBInstanceClass" xml:"DBInstanceClass"` + InstanceNetworkType string `json:"InstanceNetworkType" xml:"InstanceNetworkType"` + VpcCloudInstanceId string `json:"VpcCloudInstanceId" xml:"VpcCloudInstanceId"` + LockReason string `json:"LockReason" xml:"LockReason"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + MutriORsignle bool `json:"MutriORsignle" xml:"MutriORsignle"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + EngineVersion string `json:"EngineVersion" xml:"EngineVersion"` + GuardDBInstanceId string `json:"GuardDBInstanceId" xml:"GuardDBInstanceId"` + TempDBInstanceId string `json:"TempDBInstanceId" xml:"TempDBInstanceId"` + MasterInstanceId string `json:"MasterInstanceId" xml:"MasterInstanceId"` + VpcId string `json:"VpcId" xml:"VpcId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + ReplicateId string `json:"ReplicateId" xml:"ReplicateId"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + ReadOnlyDBInstanceIds ReadOnlyDBInstanceIdsInDescribeDBInstances `json:"ReadOnlyDBInstanceIds" xml:"ReadOnlyDBInstanceIds"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_account.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_account.go new file mode 100644 index 0000000..ac8f843 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_account.go @@ -0,0 +1,27 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DBInstanceAccount is a nested struct in rds response +type DBInstanceAccount struct { + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + AccountName string `json:"AccountName" xml:"AccountName"` + AccountStatus string `json:"AccountStatus" xml:"AccountStatus"` + AccountType string `json:"AccountType" xml:"AccountType"` + AccountDescription string `json:"AccountDescription" xml:"AccountDescription"` + PrivExceeded string `json:"PrivExceeded" xml:"PrivExceeded"` + DatabasePrivileges DatabasePrivileges `json:"DatabasePrivileges" xml:"DatabasePrivileges"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_attribute.go new file mode 100644 index 0000000..1561b33 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_attribute.go @@ -0,0 +1,80 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DBInstanceAttribute is a nested struct in rds response +type DBInstanceAttribute struct { + Engine string `json:"Engine" xml:"Engine"` + TempUpgradeTimeStart string `json:"TempUpgradeTimeStart" xml:"TempUpgradeTimeStart"` + TempUpgradeRecoveryTime string `json:"TempUpgradeRecoveryTime" xml:"TempUpgradeRecoveryTime"` + TempUpgradeRecoveryMaxIOPS string `json:"TempUpgradeRecoveryMaxIOPS" xml:"TempUpgradeRecoveryMaxIOPS"` + DBInstanceDiskUsed string `json:"DBInstanceDiskUsed" xml:"DBInstanceDiskUsed"` + AdvancedFeatures string `json:"AdvancedFeatures" xml:"AdvancedFeatures"` + DBInstanceClass string `json:"DBInstanceClass" xml:"DBInstanceClass"` + DBInstanceNetType string `json:"DBInstanceNetType" xml:"DBInstanceNetType"` + VpcCloudInstanceId string `json:"VpcCloudInstanceId" xml:"VpcCloudInstanceId"` + DBMaxQuantity int `json:"DBMaxQuantity" xml:"DBMaxQuantity"` + DBInstanceCPU string `json:"DBInstanceCPU" xml:"DBInstanceCPU"` + MaxConnections int `json:"MaxConnections" xml:"MaxConnections"` + IncrementSourceDBInstanceId string `json:"IncrementSourceDBInstanceId" xml:"IncrementSourceDBInstanceId"` + InstanceNetworkType string `json:"InstanceNetworkType" xml:"InstanceNetworkType"` + DBInstanceType string `json:"DBInstanceType" xml:"DBInstanceType"` + TempUpgradeRecoveryClass string `json:"TempUpgradeRecoveryClass" xml:"TempUpgradeRecoveryClass"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + DBInstanceMemory int `json:"DBInstanceMemory" xml:"DBInstanceMemory"` + VpcId string `json:"VpcId" xml:"VpcId"` + DBInstanceStorageType string `json:"DBInstanceStorageType" xml:"DBInstanceStorageType"` + SecurityIPList string `json:"SecurityIPList" xml:"SecurityIPList"` + SupportUpgradeAccountType string `json:"SupportUpgradeAccountType" xml:"SupportUpgradeAccountType"` + MaxIOPS int `json:"MaxIOPS" xml:"MaxIOPS"` + Tags string `json:"Tags" xml:"Tags"` + EngineVersion string `json:"EngineVersion" xml:"EngineVersion"` + MaintainTime string `json:"MaintainTime" xml:"MaintainTime"` + PayType string `json:"PayType" xml:"PayType"` + DBInstanceStorage int `json:"DBInstanceStorage" xml:"DBInstanceStorage"` + SupportCreateSuperAccount string `json:"SupportCreateSuperAccount" xml:"SupportCreateSuperAccount"` + TempDBInstanceId string `json:"TempDBInstanceId" xml:"TempDBInstanceId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + ConnectionMode string `json:"ConnectionMode" xml:"ConnectionMode"` + LockMode string `json:"LockMode" xml:"LockMode"` + CanTempUpgrade bool `json:"CanTempUpgrade" xml:"CanTempUpgrade"` + LockReason string `json:"LockReason" xml:"LockReason"` + Category string `json:"Category" xml:"Category"` + GuardDBInstanceId string `json:"GuardDBInstanceId" xml:"GuardDBInstanceId"` + InsId int `json:"InsId" xml:"InsId"` + DBInstanceDescription string `json:"DBInstanceDescription" xml:"DBInstanceDescription"` + AccountType string `json:"AccountType" xml:"AccountType"` + GuardDBInstanceName string `json:"GuardDBInstanceName" xml:"GuardDBInstanceName"` + RegionId string `json:"RegionId" xml:"RegionId"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + TempUpgradeTimeEnd string `json:"TempUpgradeTimeEnd" xml:"TempUpgradeTimeEnd"` + ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` + TempUpgradeRecoveryMemory int `json:"TempUpgradeRecoveryMemory" xml:"TempUpgradeRecoveryMemory"` + AccountMaxQuantity int `json:"AccountMaxQuantity" xml:"AccountMaxQuantity"` + TempUpgradeRecoveryMaxConnections string `json:"TempUpgradeRecoveryMaxConnections" xml:"TempUpgradeRecoveryMaxConnections"` + Port string `json:"Port" xml:"Port"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + MasterInstanceId string `json:"MasterInstanceId" xml:"MasterInstanceId"` + DBInstanceClassType string `json:"DBInstanceClassType" xml:"DBInstanceClassType"` + ReadDelayTime string `json:"ReadDelayTime" xml:"ReadDelayTime"` + DBInstanceStatus string `json:"DBInstanceStatus" xml:"DBInstanceStatus"` + ReplicateId string `json:"ReplicateId" xml:"ReplicateId"` + ConnectionString string `json:"ConnectionString" xml:"ConnectionString"` + TempUpgradeRecoveryCpu int `json:"TempUpgradeRecoveryCpu" xml:"TempUpgradeRecoveryCpu"` + AvailabilityValue string `json:"AvailabilityValue" xml:"AvailabilityValue"` + ReadOnlyDBInstanceIds ReadOnlyDBInstanceIdsInDescribeDBInstanceAttribute `json:"ReadOnlyDBInstanceIds" xml:"ReadOnlyDBInstanceIds"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_expire_time.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_expire_time.go new file mode 100644 index 0000000..5f9c531 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_expire_time.go @@ -0,0 +1,25 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DBInstanceExpireTime is a nested struct in rds response +type DBInstanceExpireTime struct { + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + DBInstanceDescription string `json:"DBInstanceDescription" xml:"DBInstanceDescription"` + ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` + DBInstanceStatus string `json:"DBInstanceStatus" xml:"DBInstanceStatus"` + LockMode string `json:"LockMode" xml:"LockMode"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_ids.go new file mode 100644 index 0000000..94c4de3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_ids.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DBInstanceIds is a nested struct in rds response +type DBInstanceIds struct { + DBInstanceIds []string `json:"DBInstanceIds" xml:"DBInstanceIds"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_ip_array.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_ip_array.go new file mode 100644 index 0000000..a2e56ad --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_ip_array.go @@ -0,0 +1,24 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DBInstanceIPArray is a nested struct in rds response +type DBInstanceIPArray struct { + DBInstanceIPArrayName string `json:"DBInstanceIPArrayName" xml:"DBInstanceIPArrayName"` + DBInstanceIPArrayAttribute string `json:"DBInstanceIPArrayAttribute" xml:"DBInstanceIPArrayAttribute"` + SecurityIPList string `json:"SecurityIPList" xml:"SecurityIPList"` + WhitelistNetworkType string `json:"WhitelistNetworkType" xml:"WhitelistNetworkType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_net_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_net_info.go new file mode 100644 index 0000000..6e09e5a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_net_info.go @@ -0,0 +1,33 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DBInstanceNetInfo is a nested struct in rds response +type DBInstanceNetInfo struct { + Upgradeable string `json:"Upgradeable" xml:"Upgradeable"` + ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` + ConnectionString string `json:"ConnectionString" xml:"ConnectionString"` + IPAddress string `json:"IPAddress" xml:"IPAddress"` + IPType string `json:"IPType" xml:"IPType"` + Port string `json:"Port" xml:"Port"` + VPCId string `json:"VPCId" xml:"VPCId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + ConnectionStringType string `json:"ConnectionStringType" xml:"ConnectionStringType"` + MaxDelayTime string `json:"MaxDelayTime" xml:"MaxDelayTime"` + DistributionType string `json:"DistributionType" xml:"DistributionType"` + SecurityIPGroups SecurityIPGroups `json:"SecurityIPGroups" xml:"SecurityIPGroups"` + DBInstanceWeights DBInstanceWeights `json:"DBInstanceWeights" xml:"DBInstanceWeights"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_net_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_net_infos.go new file mode 100644 index 0000000..ccc2fe8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_net_infos.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DBInstanceNetInfos is a nested struct in rds response +type DBInstanceNetInfos struct { + DBInstanceNetInfo []DBInstanceNetInfo `json:"DBInstanceNetInfo" xml:"DBInstanceNetInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_parameter.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_parameter.go new file mode 100644 index 0000000..7cb56ad --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_parameter.go @@ -0,0 +1,23 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DBInstanceParameter is a nested struct in rds response +type DBInstanceParameter struct { + ParameterName string `json:"ParameterName" xml:"ParameterName"` + ParameterDescription string `json:"ParameterDescription" xml:"ParameterDescription"` + ParameterValue string `json:"ParameterValue" xml:"ParameterValue"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_performance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_performance.go new file mode 100644 index 0000000..f7f70b8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_performance.go @@ -0,0 +1,26 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DBInstancePerformance is a nested struct in rds response +type DBInstancePerformance struct { + CPUUsage string `json:"CPUUsage" xml:"CPUUsage"` + IOPSUsage string `json:"IOPSUsage" xml:"IOPSUsage"` + DiskUsage string `json:"DiskUsage" xml:"DiskUsage"` + SessionUsage string `json:"SessionUsage" xml:"SessionUsage"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + DBInstanceDescription string `json:"DBInstanceDescription" xml:"DBInstanceDescription"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_tag.go new file mode 100644 index 0000000..d5549df --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_tag.go @@ -0,0 +1,22 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DBInstanceTag is a nested struct in rds response +type DBInstanceTag struct { + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + Tags Tags `json:"Tags" xml:"Tags"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_weight.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_weight.go new file mode 100644 index 0000000..3ceeff4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_weight.go @@ -0,0 +1,24 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DBInstanceWeight is a nested struct in rds response +type DBInstanceWeight struct { + Availability string `json:"Availability" xml:"Availability"` + DBInstanceType string `json:"DBInstanceType" xml:"DBInstanceType"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + Weight string `json:"Weight" xml:"Weight"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_weights.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_weights.go new file mode 100644 index 0000000..23a18d4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instance_weights.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DBInstanceWeights is a nested struct in rds response +type DBInstanceWeights struct { + DBInstanceWeight []DBInstanceWeight `json:"DBInstanceWeight" xml:"DBInstanceWeight"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instances.go new file mode 100644 index 0000000..91021e5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_db_instances.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DBInstances is a nested struct in rds response +type DBInstances struct { + Items []Items `json:"Items" xml:"Items"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_dead_lock_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_dead_lock_list.go new file mode 100644 index 0000000..1570bbc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_dead_lock_list.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DeadLockList is a nested struct in rds response +type DeadLockList struct { + DeadLock []string `json:"DeadLock" xml:"DeadLock"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_ecs_security_group_relation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_ecs_security_group_relation.go new file mode 100644 index 0000000..6f7640a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_ecs_security_group_relation.go @@ -0,0 +1,23 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EcsSecurityGroupRelation is a nested struct in rds response +type EcsSecurityGroupRelation struct { + RegionId string `json:"RegionId" xml:"RegionId"` + SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_error_log.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_error_log.go new file mode 100644 index 0000000..035666b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_error_log.go @@ -0,0 +1,22 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ErrorLog is a nested struct in rds response +type ErrorLog struct { + ErrorInfo string `json:"ErrorInfo" xml:"ErrorInfo"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_host_instance_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_host_instance_infos.go new file mode 100644 index 0000000..ba9a84e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_host_instance_infos.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HostInstanceInfos is a nested struct in rds response +type HostInstanceInfos struct { + NodeInfo []NodeInfo `json:"NodeInfo" xml:"NodeInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_import_result_from_db.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_import_result_from_db.go new file mode 100644 index 0000000..e6cdcbf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_import_result_from_db.go @@ -0,0 +1,25 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ImportResultFromDB is a nested struct in rds response +type ImportResultFromDB struct { + ImportId int `json:"ImportId" xml:"ImportId"` + ImportDataType string `json:"ImportDataType" xml:"ImportDataType"` + ImportDataStatus string `json:"ImportDataStatus" xml:"ImportDataStatus"` + ImportDataStatusDescription string `json:"ImportDataStatusDescription" xml:"ImportDataStatusDescription"` + IncrementalImportingTime string `json:"IncrementalImportingTime" xml:"IncrementalImportingTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_instance_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_instance_result.go new file mode 100644 index 0000000..77a73bd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_instance_result.go @@ -0,0 +1,23 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceResult is a nested struct in rds response +type InstanceResult struct { + DBInstanceDescription string `json:"DBInstanceDescription" xml:"DBInstanceDescription"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + AbnormalItems AbnormalItems `json:"AbnormalItems" xml:"AbnormalItems"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_iops.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_iops.go new file mode 100644 index 0000000..e1ae9d2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_iops.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IOPS is a nested struct in rds response +type IOPS struct { + Detail []string `json:"Detail" xml:"Detail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_item.go new file mode 100644 index 0000000..9ecbecf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_item.go @@ -0,0 +1,28 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Item is a nested struct in rds response +type Item struct { + RegionId string `json:"RegionId" xml:"RegionId"` + Duration int `json:"Duration" xml:"Duration"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + Status string `json:"Status" xml:"Status"` + AutoRenew string `json:"AutoRenew" xml:"AutoRenew"` + ReportTime string `json:"ReportTime" xml:"ReportTime"` + LatencyTopNItems LatencyTopNItemsInDescribeSQLReports `json:"LatencyTopNItems" xml:"LatencyTopNItems"` + QPSTopNItems QPSTopNItemsInDescribeSQLReports `json:"QPSTopNItems" xml:"QPSTopNItems"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items.go new file mode 100644 index 0000000..d2990f5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items.go @@ -0,0 +1,29 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Items is a nested struct in rds response +type Items struct { + ReplicaMode string `json:"ReplicaMode" xml:"ReplicaMode"` + Role string `json:"Role" xml:"Role"` + ReadWriteType string `json:"ReadWriteType" xml:"ReadWriteType"` + DomainMode string `json:"DomainMode" xml:"DomainMode"` + ReplicaDescription string `json:"ReplicaDescription" xml:"ReplicaDescription"` + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` + ReplicaStatus string `json:"ReplicaStatus" xml:"ReplicaStatus"` + ReplicaId string `json:"ReplicaId" xml:"ReplicaId"` + DBInstances []Items `json:"DBInstances" xml:"DBInstances"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_calculate_db_instance_weight.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_calculate_db_instance_weight.go new file mode 100644 index 0000000..37763d5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_calculate_db_instance_weight.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInCalculateDBInstanceWeight is a nested struct in rds response +type ItemsInCalculateDBInstanceWeight struct { + DBInstanceWeight []DBInstanceWeight `json:"DBInstanceWeight" xml:"DBInstanceWeight"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_descibe_imports_from_database.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_descibe_imports_from_database.go new file mode 100644 index 0000000..7efd4a4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_descibe_imports_from_database.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescibeImportsFromDatabase is a nested struct in rds response +type ItemsInDescibeImportsFromDatabase struct { + ImportResultFromDB []ImportResultFromDB `json:"ImportResultFromDB" xml:"ImportResultFromDB"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_abnormal_db_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_abnormal_db_instances.go new file mode 100644 index 0000000..f2646ce --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_abnormal_db_instances.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeAbnormalDBInstances is a nested struct in rds response +type ItemsInDescribeAbnormalDBInstances struct { + InstanceResult []InstanceResult `json:"InstanceResult" xml:"InstanceResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_backup_sets_for_security.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_backup_sets_for_security.go new file mode 100644 index 0000000..8f774e9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_backup_sets_for_security.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeBackupSetsForSecurity is a nested struct in rds response +type ItemsInDescribeBackupSetsForSecurity struct { + Backup []Backup `json:"Backup" xml:"Backup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_backup_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_backup_tasks.go new file mode 100644 index 0000000..034c0e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_backup_tasks.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeBackupTasks is a nested struct in rds response +type ItemsInDescribeBackupTasks struct { + BackupJob []BackupJob `json:"BackupJob" xml:"BackupJob"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_backups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_backups.go new file mode 100644 index 0000000..a223f39 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_backups.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeBackups is a nested struct in rds response +type ItemsInDescribeBackups struct { + Backup []Backup `json:"Backup" xml:"Backup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_backups_for_security.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_backups_for_security.go new file mode 100644 index 0000000..a1e7657 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_backups_for_security.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeBackupsForSecurity is a nested struct in rds response +type ItemsInDescribeBackupsForSecurity struct { + Backup []Backup `json:"Backup" xml:"Backup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_binlog_files.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_binlog_files.go new file mode 100644 index 0000000..de667f2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_binlog_files.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeBinlogFiles is a nested struct in rds response +type ItemsInDescribeBinlogFiles struct { + BinLogFile []BinLogFile `json:"BinLogFile" xml:"BinLogFile"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instance_attribute.go new file mode 100644 index 0000000..82eaa65 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instance_attribute.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeDBInstanceAttribute is a nested struct in rds response +type ItemsInDescribeDBInstanceAttribute struct { + DBInstanceAttribute []DBInstanceAttribute `json:"DBInstanceAttribute" xml:"DBInstanceAttribute"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instance_by_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instance_by_tags.go new file mode 100644 index 0000000..6bf6858 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instance_by_tags.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeDBInstanceByTags is a nested struct in rds response +type ItemsInDescribeDBInstanceByTags struct { + DBInstanceTag []DBInstanceTag `json:"DBInstanceTag" xml:"DBInstanceTag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instance_ip_array_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instance_ip_array_list.go new file mode 100644 index 0000000..6eddc13 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instance_ip_array_list.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeDBInstanceIPArrayList is a nested struct in rds response +type ItemsInDescribeDBInstanceIPArrayList struct { + DBInstanceIPArray []DBInstanceIPArray `json:"DBInstanceIPArray" xml:"DBInstanceIPArray"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instances.go new file mode 100644 index 0000000..0ef3bab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instances.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeDBInstances is a nested struct in rds response +type ItemsInDescribeDBInstances struct { + DBInstance []DBInstance `json:"DBInstance" xml:"DBInstance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instances_as_csv.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instances_as_csv.go new file mode 100644 index 0000000..5810538 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instances_as_csv.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeDBInstancesAsCsv is a nested struct in rds response +type ItemsInDescribeDBInstancesAsCsv struct { + DBInstanceAttribute []DBInstanceAttribute `json:"DBInstanceAttribute" xml:"DBInstanceAttribute"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instances_by_expire_time.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instances_by_expire_time.go new file mode 100644 index 0000000..de55eaa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instances_by_expire_time.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeDBInstancesByExpireTime is a nested struct in rds response +type ItemsInDescribeDBInstancesByExpireTime struct { + DBInstanceExpireTime []DBInstanceExpireTime `json:"DBInstanceExpireTime" xml:"DBInstanceExpireTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instances_by_performance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instances_by_performance.go new file mode 100644 index 0000000..041d136 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_db_instances_by_performance.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeDBInstancesByPerformance is a nested struct in rds response +type ItemsInDescribeDBInstancesByPerformance struct { + DBInstancePerformance []DBInstancePerformance `json:"DBInstancePerformance" xml:"DBInstancePerformance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_error_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_error_logs.go new file mode 100644 index 0000000..b88ffe7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_error_logs.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeErrorLogs is a nested struct in rds response +type ItemsInDescribeErrorLogs struct { + ErrorLog []ErrorLog `json:"ErrorLog" xml:"ErrorLog"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_instance_auto_renew_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_instance_auto_renew_attribute.go new file mode 100644 index 0000000..fb47dc2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_instance_auto_renew_attribute.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeInstanceAutoRenewAttribute is a nested struct in rds response +type ItemsInDescribeInstanceAutoRenewAttribute struct { + Item []Item `json:"Item" xml:"Item"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_instance_auto_renewal_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_instance_auto_renewal_attribute.go new file mode 100644 index 0000000..d111af0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_instance_auto_renewal_attribute.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeInstanceAutoRenewalAttribute is a nested struct in rds response +type ItemsInDescribeInstanceAutoRenewalAttribute struct { + Item []Item `json:"Item" xml:"Item"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_logic_db_instance_topology.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_logic_db_instance_topology.go new file mode 100644 index 0000000..80d1b4b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_logic_db_instance_topology.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeLogicDBInstanceTopology is a nested struct in rds response +type ItemsInDescribeLogicDBInstanceTopology struct { + LogicDBInstanceParameter []LogicDBInstanceParameter `json:"LogicDBInstanceParameter" xml:"LogicDBInstanceParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_migrate_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_migrate_tasks.go new file mode 100644 index 0000000..e0d372d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_migrate_tasks.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeMigrateTasks is a nested struct in rds response +type ItemsInDescribeMigrateTasks struct { + MigrateTask []MigrateTask `json:"MigrateTask" xml:"MigrateTask"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_migrate_tasks_for_sql_server.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_migrate_tasks_for_sql_server.go new file mode 100644 index 0000000..86ebdd8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_migrate_tasks_for_sql_server.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeMigrateTasksForSQLServer is a nested struct in rds response +type ItemsInDescribeMigrateTasksForSQLServer struct { + MigrateTask []MigrateTask `json:"MigrateTask" xml:"MigrateTask"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_modify_parameter_log.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_modify_parameter_log.go new file mode 100644 index 0000000..89d0681 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_modify_parameter_log.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeModifyParameterLog is a nested struct in rds response +type ItemsInDescribeModifyParameterLog struct { + ParameterChangeLog []ParameterChangeLog `json:"ParameterChangeLog" xml:"ParameterChangeLog"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_optimize_advice_on_big_table.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_optimize_advice_on_big_table.go new file mode 100644 index 0000000..7f2f7a1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_optimize_advice_on_big_table.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeOptimizeAdviceOnBigTable is a nested struct in rds response +type ItemsInDescribeOptimizeAdviceOnBigTable struct { + AdviceOnBigTable []AdviceOnBigTable `json:"AdviceOnBigTable" xml:"AdviceOnBigTable"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_optimize_advice_on_excess_index.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_optimize_advice_on_excess_index.go new file mode 100644 index 0000000..971b72b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_optimize_advice_on_excess_index.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeOptimizeAdviceOnExcessIndex is a nested struct in rds response +type ItemsInDescribeOptimizeAdviceOnExcessIndex struct { + AdviceOnExcessIndex []AdviceOnExcessIndex `json:"AdviceOnExcessIndex" xml:"AdviceOnExcessIndex"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_optimize_advice_on_miss_index.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_optimize_advice_on_miss_index.go new file mode 100644 index 0000000..26098ba --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_optimize_advice_on_miss_index.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeOptimizeAdviceOnMissIndex is a nested struct in rds response +type ItemsInDescribeOptimizeAdviceOnMissIndex struct { + AdviceOnMissIndex []AdviceOnMissIndex `json:"AdviceOnMissIndex" xml:"AdviceOnMissIndex"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_optimize_advice_on_miss_pk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_optimize_advice_on_miss_pk.go new file mode 100644 index 0000000..fb4cb1c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_optimize_advice_on_miss_pk.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeOptimizeAdviceOnMissPK is a nested struct in rds response +type ItemsInDescribeOptimizeAdviceOnMissPK struct { + AdviceOnMissPK []AdviceOnMissPK `json:"AdviceOnMissPK" xml:"AdviceOnMissPK"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_optimize_advice_on_storage.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_optimize_advice_on_storage.go new file mode 100644 index 0000000..1db6eb5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_optimize_advice_on_storage.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeOptimizeAdviceOnStorage is a nested struct in rds response +type ItemsInDescribeOptimizeAdviceOnStorage struct { + AdviceOnStorage []AdviceOnStorage `json:"AdviceOnStorage" xml:"AdviceOnStorage"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_oss_downloads.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_oss_downloads.go new file mode 100644 index 0000000..b7bb000 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_oss_downloads.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeOssDownloads is a nested struct in rds response +type ItemsInDescribeOssDownloads struct { + OssDownload []OssDownload `json:"OssDownload" xml:"OssDownload"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_oss_downloads_for_sql_server.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_oss_downloads_for_sql_server.go new file mode 100644 index 0000000..c6eb416 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_oss_downloads_for_sql_server.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeOssDownloadsForSQLServer is a nested struct in rds response +type ItemsInDescribeOssDownloadsForSQLServer struct { + OssDownload []OssDownload `json:"OssDownload" xml:"OssDownload"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_pre_check_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_pre_check_results.go new file mode 100644 index 0000000..c7fe577 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_pre_check_results.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribePreCheckResults is a nested struct in rds response +type ItemsInDescribePreCheckResults struct { + PreCheckResult []PreCheckResult `json:"PreCheckResult" xml:"PreCheckResult"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_replica_conflict_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_replica_conflict_info.go new file mode 100644 index 0000000..314b193 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_replica_conflict_info.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeReplicaConflictInfo is a nested struct in rds response +type ItemsInDescribeReplicaConflictInfo struct { + ItemsItem []ItemsItem `json:"ItemsItem" xml:"ItemsItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_replica_initialize_progress.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_replica_initialize_progress.go new file mode 100644 index 0000000..ac83878 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_replica_initialize_progress.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeReplicaInitializeProgress is a nested struct in rds response +type ItemsInDescribeReplicaInitializeProgress struct { + ItemsItem []ItemsItem `json:"ItemsItem" xml:"ItemsItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_security_group_configuration.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_security_group_configuration.go new file mode 100644 index 0000000..1af8708 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_security_group_configuration.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeSecurityGroupConfiguration is a nested struct in rds response +type ItemsInDescribeSecurityGroupConfiguration struct { + EcsSecurityGroupRelation []EcsSecurityGroupRelation `json:"EcsSecurityGroupRelation" xml:"EcsSecurityGroupRelation"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_slow_log_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_slow_log_records.go new file mode 100644 index 0000000..d0c3921 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_slow_log_records.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeSlowLogRecords is a nested struct in rds response +type ItemsInDescribeSlowLogRecords struct { + SQLSlowRecord []SQLSlowRecord `json:"SQLSlowRecord" xml:"SQLSlowRecord"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_slow_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_slow_logs.go new file mode 100644 index 0000000..a0febe2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_slow_logs.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeSlowLogs is a nested struct in rds response +type ItemsInDescribeSlowLogs struct { + SQLSlowLog []SQLSlowLog `json:"SQLSlowLog" xml:"SQLSlowLog"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_injection_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_injection_infos.go new file mode 100644 index 0000000..4c37096 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_injection_infos.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeSQLInjectionInfos is a nested struct in rds response +type ItemsInDescribeSQLInjectionInfos struct { + SQLInjectionInfo []SQLInjectionInfo `json:"SQLInjectionInfo" xml:"SQLInjectionInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_log_files.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_log_files.go new file mode 100644 index 0000000..8cb9a44 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_log_files.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeSQLLogFiles is a nested struct in rds response +type ItemsInDescribeSQLLogFiles struct { + LogFile []LogFile `json:"LogFile" xml:"LogFile"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_log_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_log_records.go new file mode 100644 index 0000000..70a025e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_log_records.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeSQLLogRecords is a nested struct in rds response +type ItemsInDescribeSQLLogRecords struct { + SQLRecord []SQLRecord `json:"SQLRecord" xml:"SQLRecord"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_log_report_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_log_report_list.go new file mode 100644 index 0000000..cd52694 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_log_report_list.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeSQLLogReportList is a nested struct in rds response +type ItemsInDescribeSQLLogReportList struct { + Item []Item `json:"Item" xml:"Item"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_log_reports.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_log_reports.go new file mode 100644 index 0000000..4db36d4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_log_reports.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeSQLLogReports is a nested struct in rds response +type ItemsInDescribeSQLLogReports struct { + Item []Item `json:"Item" xml:"Item"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_reports.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_reports.go new file mode 100644 index 0000000..454925a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_sql_reports.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeSQLReports is a nested struct in rds response +type ItemsInDescribeSQLReports struct { + Item []Item `json:"Item" xml:"Item"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_static_verification_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_static_verification_list.go new file mode 100644 index 0000000..b17c369 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_static_verification_list.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeStaticVerificationList is a nested struct in rds response +type ItemsInDescribeStaticVerificationList struct { + ItemsItem []ItemsItem `json:"ItemsItem" xml:"ItemsItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_tags.go new file mode 100644 index 0000000..c0d12f7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_tags.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeTags is a nested struct in rds response +type ItemsInDescribeTags struct { + TagInfos []TagInfos `json:"TagInfos" xml:"TagInfos"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_tasks.go new file mode 100644 index 0000000..e426c53 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_tasks.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeTasks is a nested struct in rds response +type ItemsInDescribeTasks struct { + TaskProgressInfo []TaskProgressInfo `json:"TaskProgressInfo" xml:"TaskProgressInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_verification_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_verification_list.go new file mode 100644 index 0000000..02019cb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_verification_list.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeVerificationList is a nested struct in rds response +type ItemsInDescribeVerificationList struct { + ItemsItem []ItemsItem `json:"ItemsItem" xml:"ItemsItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_vpc_zone_nos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_vpc_zone_nos.go new file mode 100644 index 0000000..b8cf315 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_vpc_zone_nos.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInDescribeVpcZoneNos is a nested struct in rds response +type ItemsInDescribeVpcZoneNos struct { + VpcZoneId []VpcZoneId `json:"VpcZoneId" xml:"VpcZoneId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_modify_security_group_configuration.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_modify_security_group_configuration.go new file mode 100644 index 0000000..e8d5af2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_modify_security_group_configuration.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsInModifySecurityGroupConfiguration is a nested struct in rds response +type ItemsInModifySecurityGroupConfiguration struct { + EcsSecurityGroupRelation []EcsSecurityGroupRelation `json:"EcsSecurityGroupRelation" xml:"EcsSecurityGroupRelation"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_item.go new file mode 100644 index 0000000..ff376c8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_item.go @@ -0,0 +1,44 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ItemsItem is a nested struct in rds response +type ItemsItem struct { + Schema string `json:"Schema" xml:"Schema"` + ConfictReason string `json:"ConfictReason" xml:"ConfictReason"` + SourceDetail string `json:"SourceDetail" xml:"SourceDetail"` + InconsistentFields string `json:"InconsistentFields" xml:"InconsistentFields"` + InstanceIdA string `json:"InstanceIdA" xml:"InstanceIdA"` + DestinationInstanceId string `json:"DestinationInstanceId" xml:"DestinationInstanceId"` + ConflictGtid string `json:"ConflictGtid" xml:"ConflictGtid"` + DestinationDetail string `json:"DestinationDetail" xml:"DestinationDetail"` + FinishTime string `json:"FinishTime" xml:"FinishTime"` + OccurTime string `json:"OccurTime" xml:"OccurTime"` + Key string `json:"Key" xml:"Key"` + Progress string `json:"Progress" xml:"Progress"` + InstanceIdB string `json:"InstanceIdB" xml:"InstanceIdB"` + CurrentStep string `json:"CurrentStep" xml:"CurrentStep"` + SourceInstanceId string `json:"SourceInstanceId" xml:"SourceInstanceId"` + RecoveryMode string `json:"RecoveryMode" xml:"RecoveryMode"` + AbnormalType string `json:"AbnormalType" xml:"AbnormalType"` + InconsistentType string `json:"InconsistentType" xml:"InconsistentType"` + ConfictKey string `json:"ConfictKey" xml:"ConfictKey"` + KeyType string `json:"KeyType" xml:"KeyType"` + Status string `json:"Status" xml:"Status"` + DatabaseName string `json:"DatabaseName" xml:"DatabaseName"` + ReplicaId string `json:"ReplicaId" xml:"ReplicaId"` + DetailInfo string `json:"DetailInfo" xml:"DetailInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_latency_top_n_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_latency_top_n_item.go new file mode 100644 index 0000000..5c59225 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_latency_top_n_item.go @@ -0,0 +1,23 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LatencyTopNItem is a nested struct in rds response +type LatencyTopNItem struct { + SQLExecuteTimes int `json:"SQLExecuteTimes" xml:"SQLExecuteTimes"` + AvgLatency int `json:"AvgLatency" xml:"AvgLatency"` + SQLText string `json:"SQLText" xml:"SQLText"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_latency_top_n_items_in_describe_sql_log_report_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_latency_top_n_items_in_describe_sql_log_report_list.go new file mode 100644 index 0000000..c62c7d0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_latency_top_n_items_in_describe_sql_log_report_list.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LatencyTopNItemsInDescribeSQLLogReportList is a nested struct in rds response +type LatencyTopNItemsInDescribeSQLLogReportList struct { + LatencyTopNItem []LatencyTopNItem `json:"LatencyTopNItem" xml:"LatencyTopNItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_latency_top_n_items_in_describe_sql_log_reports.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_latency_top_n_items_in_describe_sql_log_reports.go new file mode 100644 index 0000000..22140dc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_latency_top_n_items_in_describe_sql_log_reports.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LatencyTopNItemsInDescribeSQLLogReports is a nested struct in rds response +type LatencyTopNItemsInDescribeSQLLogReports struct { + LatencyTopNItem []LatencyTopNItem `json:"LatencyTopNItem" xml:"LatencyTopNItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_latency_top_n_items_in_describe_sql_reports.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_latency_top_n_items_in_describe_sql_reports.go new file mode 100644 index 0000000..55874ba --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_latency_top_n_items_in_describe_sql_reports.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LatencyTopNItemsInDescribeSQLReports is a nested struct in rds response +type LatencyTopNItemsInDescribeSQLReports struct { + LatencyTopNItem []LatencyTopNItem `json:"LatencyTopNItem" xml:"LatencyTopNItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_log_file.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_log_file.go new file mode 100644 index 0000000..ff36712 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_log_file.go @@ -0,0 +1,26 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LogFile is a nested struct in rds response +type LogFile struct { + FileID string `json:"FileID" xml:"FileID"` + LogStatus string `json:"LogStatus" xml:"LogStatus"` + LogDownloadURL string `json:"LogDownloadURL" xml:"LogDownloadURL"` + LogSize string `json:"LogSize" xml:"LogSize"` + LogStartTime string `json:"LogStartTime" xml:"LogStartTime"` + LogEndTime string `json:"LogEndTime" xml:"LogEndTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_logic_db_instance_parameter.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_logic_db_instance_parameter.go new file mode 100644 index 0000000..601bc15 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_logic_db_instance_parameter.go @@ -0,0 +1,29 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LogicDBInstanceParameter is a nested struct in rds response +type LogicDBInstanceParameter struct { + DBInstanceID int `json:"DBInstanceID" xml:"DBInstanceID"` + DBInstanceName string `json:"DBInstanceName" xml:"DBInstanceName"` + DBInstanceStatus int `json:"DBInstanceStatus" xml:"DBInstanceStatus"` + DBInstanceStatusDesc string `json:"DBInstanceStatusDesc" xml:"DBInstanceStatusDesc"` + DBInstanceConnType string `json:"DBInstanceConnType" xml:"DBInstanceConnType"` + DBInstanceDescription string `json:"DBInstanceDescription" xml:"DBInstanceDescription"` + Engine string `json:"Engine" xml:"Engine"` + EngineVersion string `json:"EngineVersion" xml:"EngineVersion"` + CharacterType string `json:"CharacterType" xml:"CharacterType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_memory.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_memory.go new file mode 100644 index 0000000..8316be9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_memory.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Memory is a nested struct in rds response +type Memory struct { + Detail []string `json:"Detail" xml:"Detail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_migrate_task.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_migrate_task.go new file mode 100644 index 0000000..cb21035 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_migrate_task.go @@ -0,0 +1,31 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MigrateTask is a nested struct in rds response +type MigrateTask struct { + BackupMode string `json:"BackupMode" xml:"BackupMode"` + EndTime string `json:"EndTime" xml:"EndTime"` + Desc string `json:"Desc" xml:"Desc"` + MigrateTaskId string `json:"MigrateTaskId" xml:"MigrateTaskId"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + DBName string `json:"DBName" xml:"DBName"` + MigrateIaskId string `json:"MigrateIaskId" xml:"MigrateIaskId"` + IsDBReplaced string `json:"IsDBReplaced" xml:"IsDBReplaced"` + TaskType string `json:"TaskType" xml:"TaskType"` + Status string `json:"Status" xml:"Status"` + Description string `json:"Description" xml:"Description"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_node_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_node_info.go new file mode 100644 index 0000000..7646dba --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_node_info.go @@ -0,0 +1,27 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NodeInfo is a nested struct in rds response +type NodeInfo struct { + NodeId string `json:"NodeId" xml:"NodeId"` + RegionId string `json:"RegionId" xml:"RegionId"` + LogSyncTime string `json:"LogSyncTime" xml:"LogSyncTime"` + DataSyncTime string `json:"DataSyncTime" xml:"DataSyncTime"` + NodeType string `json:"NodeType" xml:"NodeType"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + SyncStatus string `json:"SyncStatus" xml:"SyncStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_oss_download.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_oss_download.go new file mode 100644 index 0000000..e57eef0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_oss_download.go @@ -0,0 +1,31 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OssDownload is a nested struct in rds response +type OssDownload struct { + FileSize string `json:"FileSize" xml:"FileSize"` + IsAvail string `json:"IsAvail" xml:"IsAvail"` + BackupMode string `json:"BackupMode" xml:"BackupMode"` + Desc string `json:"Desc" xml:"Desc"` + EndTime string `json:"EndTime" xml:"EndTime"` + IsAvailable string `json:"IsAvailable" xml:"IsAvailable"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + BakType string `json:"BakType" xml:"BakType"` + Status string `json:"Status" xml:"Status"` + FileName string `json:"FileName" xml:"FileName"` + Description string `json:"Description" xml:"Description"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_parameter_change_log.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_parameter_change_log.go new file mode 100644 index 0000000..fc88596 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_parameter_change_log.go @@ -0,0 +1,25 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ParameterChangeLog is a nested struct in rds response +type ParameterChangeLog struct { + ModifyTime string `json:"ModifyTime" xml:"ModifyTime"` + OldParameterValue string `json:"OldParameterValue" xml:"OldParameterValue"` + NewParameterValue string `json:"NewParameterValue" xml:"NewParameterValue"` + ParameterName string `json:"ParameterName" xml:"ParameterName"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_parameters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_parameters.go new file mode 100644 index 0000000..134f2a0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_parameters.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Parameters is a nested struct in rds response +type Parameters struct { + TemplateRecord []TemplateRecord `json:"TemplateRecord" xml:"TemplateRecord"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_key.go new file mode 100644 index 0000000..6d15ec1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_key.go @@ -0,0 +1,24 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PerformanceKey is a nested struct in rds response +type PerformanceKey struct { + Key string `json:"Key" xml:"Key"` + Unit string `json:"Unit" xml:"Unit"` + ValueFormat string `json:"ValueFormat" xml:"ValueFormat"` + Values Values `json:"Values" xml:"Values"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_key_in_describe_replica_performance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_key_in_describe_replica_performance.go new file mode 100644 index 0000000..eec0e76 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_key_in_describe_replica_performance.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PerformanceKeyInDescribeReplicaPerformance is a nested struct in rds response +type PerformanceKeyInDescribeReplicaPerformance struct { + PerformanceKeyItem []PerformanceKeyItem `json:"PerformanceKeyItem" xml:"PerformanceKeyItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_key_in_describe_replica_usage.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_key_in_describe_replica_usage.go new file mode 100644 index 0000000..91a4b19 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_key_in_describe_replica_usage.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PerformanceKeyInDescribeReplicaUsage is a nested struct in rds response +type PerformanceKeyInDescribeReplicaUsage struct { + PerformanceKeyItem []PerformanceKeyItem `json:"PerformanceKeyItem" xml:"PerformanceKeyItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_key_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_key_item.go new file mode 100644 index 0000000..9c8fb58 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_key_item.go @@ -0,0 +1,24 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PerformanceKeyItem is a nested struct in rds response +type PerformanceKeyItem struct { + Key string `json:"Key" xml:"Key"` + Unit string `json:"Unit" xml:"Unit"` + ValueFormat string `json:"ValueFormat" xml:"ValueFormat"` + PerformanceValues PerformanceValues `json:"PerformanceValues" xml:"PerformanceValues"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_keys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_keys.go new file mode 100644 index 0000000..42f4b90 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_keys.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PerformanceKeys is a nested struct in rds response +type PerformanceKeys struct { + PerformanceKey []PerformanceKeyItem `json:"PerformanceKey" xml:"PerformanceKey"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_keys_in_describe_db_instance_performance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_keys_in_describe_db_instance_performance.go new file mode 100644 index 0000000..30bc59b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_keys_in_describe_db_instance_performance.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PerformanceKeysInDescribeDBInstancePerformance is a nested struct in rds response +type PerformanceKeysInDescribeDBInstancePerformance struct { + PerformanceKey []PerformanceKey `json:"PerformanceKey" xml:"PerformanceKey"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_value.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_value.go new file mode 100644 index 0000000..462e743 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_value.go @@ -0,0 +1,22 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PerformanceValue is a nested struct in rds response +type PerformanceValue struct { + Value string `json:"Value" xml:"Value"` + Date string `json:"Date" xml:"Date"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_value_in_describe_replica_performance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_value_in_describe_replica_performance.go new file mode 100644 index 0000000..0803892 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_value_in_describe_replica_performance.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PerformanceValueInDescribeReplicaPerformance is a nested struct in rds response +type PerformanceValueInDescribeReplicaPerformance struct { + PerformanceValueItem []PerformanceValueItem `json:"PerformanceValueItem" xml:"PerformanceValueItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_value_in_describe_replica_usage.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_value_in_describe_replica_usage.go new file mode 100644 index 0000000..119bb3b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_value_in_describe_replica_usage.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PerformanceValueInDescribeReplicaUsage is a nested struct in rds response +type PerformanceValueInDescribeReplicaUsage struct { + PerformanceValueItem []PerformanceValueItem `json:"PerformanceValueItem" xml:"PerformanceValueItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_value_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_value_item.go new file mode 100644 index 0000000..c5b5e50 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_value_item.go @@ -0,0 +1,22 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PerformanceValueItem is a nested struct in rds response +type PerformanceValueItem struct { + Value string `json:"Value" xml:"Value"` + Date string `json:"Date" xml:"Date"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_values.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_values.go new file mode 100644 index 0000000..5629f17 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_performance_values.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PerformanceValues is a nested struct in rds response +type PerformanceValues struct { + PerformanceValue []PerformanceValueItem `json:"PerformanceValue" xml:"PerformanceValue"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_policies.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_policies.go new file mode 100644 index 0000000..f9a952d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_policies.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Policies is a nested struct in rds response +type Policies struct { + Policy []Policy `json:"Policy" xml:"Policy"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_policy.go new file mode 100644 index 0000000..26a5807 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_policy.go @@ -0,0 +1,22 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Policy is a nested struct in rds response +type Policy struct { + PolicyName string `json:"PolicyName" xml:"PolicyName"` + Comment string `json:"Comment" xml:"Comment"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_pre_check_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_pre_check_result.go new file mode 100644 index 0000000..cc3efd4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_pre_check_result.go @@ -0,0 +1,24 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PreCheckResult is a nested struct in rds response +type PreCheckResult struct { + PreCheckName string `json:"PreCheckName" xml:"PreCheckName"` + PreCheckResult string `json:"PreCheckResult" xml:"PreCheckResult"` + FailReasion string `json:"FailReasion" xml:"FailReasion"` + RepairMethod string `json:"RepairMethod" xml:"RepairMethod"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_price_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_price_info.go new file mode 100644 index 0000000..b2cd5b4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_price_info.go @@ -0,0 +1,27 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PriceInfo is a nested struct in rds response +type PriceInfo struct { + TradePrice float64 `json:"TradePrice" xml:"TradePrice"` + DiscountPrice float64 `json:"DiscountPrice" xml:"DiscountPrice"` + OriginalPrice float64 `json:"OriginalPrice" xml:"OriginalPrice"` + Currency string `json:"Currency" xml:"Currency"` + RuleIds RuleIdsInQueryPriceForBuy `json:"RuleIds" xml:"RuleIds"` + ActivityInfo ActivityInfo `json:"ActivityInfo" xml:"ActivityInfo"` + Coupons CouponsInQueryPriceForBuy `json:"Coupons" xml:"Coupons"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_qps_top_n_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_qps_top_n_item.go new file mode 100644 index 0000000..eb1ac93 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_qps_top_n_item.go @@ -0,0 +1,22 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// QPSTopNItem is a nested struct in rds response +type QPSTopNItem struct { + SQLExecuteTimes int `json:"SQLExecuteTimes" xml:"SQLExecuteTimes"` + SQLText string `json:"SQLText" xml:"SQLText"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_qps_top_n_items_in_describe_sql_log_report_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_qps_top_n_items_in_describe_sql_log_report_list.go new file mode 100644 index 0000000..f4045c1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_qps_top_n_items_in_describe_sql_log_report_list.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// QPSTopNItemsInDescribeSQLLogReportList is a nested struct in rds response +type QPSTopNItemsInDescribeSQLLogReportList struct { + QPSTopNItem []QPSTopNItem `json:"QPSTopNItem" xml:"QPSTopNItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_qps_top_n_items_in_describe_sql_log_reports.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_qps_top_n_items_in_describe_sql_log_reports.go new file mode 100644 index 0000000..13f3f56 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_qps_top_n_items_in_describe_sql_log_reports.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// QPSTopNItemsInDescribeSQLLogReports is a nested struct in rds response +type QPSTopNItemsInDescribeSQLLogReports struct { + QPSTopNItem []QPSTopNItem `json:"QPSTopNItem" xml:"QPSTopNItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_qps_top_n_items_in_describe_sql_reports.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_qps_top_n_items_in_describe_sql_reports.go new file mode 100644 index 0000000..2584739 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_qps_top_n_items_in_describe_sql_reports.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// QPSTopNItemsInDescribeSQLReports is a nested struct in rds response +type QPSTopNItemsInDescribeSQLReports struct { + QPSTopNItem []QPSTopNItem `json:"QPSTopNItem" xml:"QPSTopNItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rds_region.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rds_region.go new file mode 100644 index 0000000..27db26c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rds_region.go @@ -0,0 +1,22 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RDSRegion is a nested struct in rds response +type RDSRegion struct { + RegionId string `json:"RegionId" xml:"RegionId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_read_only_db_instance_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_read_only_db_instance_id.go new file mode 100644 index 0000000..be666d7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_read_only_db_instance_id.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ReadOnlyDBInstanceId is a nested struct in rds response +type ReadOnlyDBInstanceId struct { + DBInstanceId string `json:"DBInstanceId" xml:"DBInstanceId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_read_only_db_instance_ids_in_describe_db_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_read_only_db_instance_ids_in_describe_db_instance_attribute.go new file mode 100644 index 0000000..f3decf8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_read_only_db_instance_ids_in_describe_db_instance_attribute.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ReadOnlyDBInstanceIdsInDescribeDBInstanceAttribute is a nested struct in rds response +type ReadOnlyDBInstanceIdsInDescribeDBInstanceAttribute struct { + ReadOnlyDBInstanceId []ReadOnlyDBInstanceId `json:"ReadOnlyDBInstanceId" xml:"ReadOnlyDBInstanceId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_read_only_db_instance_ids_in_describe_db_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_read_only_db_instance_ids_in_describe_db_instances.go new file mode 100644 index 0000000..31bebe1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_read_only_db_instance_ids_in_describe_db_instances.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ReadOnlyDBInstanceIdsInDescribeDBInstances is a nested struct in rds response +type ReadOnlyDBInstanceIdsInDescribeDBInstances struct { + ReadOnlyDBInstanceId []ReadOnlyDBInstanceId `json:"ReadOnlyDBInstanceId" xml:"ReadOnlyDBInstanceId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_realtime_diagnose_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_realtime_diagnose_tasks.go new file mode 100644 index 0000000..b58d4b1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_realtime_diagnose_tasks.go @@ -0,0 +1,24 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RealtimeDiagnoseTasks is a nested struct in rds response +type RealtimeDiagnoseTasks struct { + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TaskId string `json:"TaskId" xml:"TaskId"` + HealthScore string `json:"HealthScore" xml:"HealthScore"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_regions.go new file mode 100644 index 0000000..39aff90 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_regions.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 rds response +type Regions struct { + RDSRegion []RDSRegion `json:"RDSRegion" xml:"RDSRegion"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_replicas.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_replicas.go new file mode 100644 index 0000000..d5ab183 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_replicas.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Replicas is a nested struct in rds response +type Replicas struct { + Items []Items `json:"Items" xml:"Items"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_report.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_report.go new file mode 100644 index 0000000..e4172c7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_report.go @@ -0,0 +1,25 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Report is a nested struct in rds response +type Report struct { + DiagnosticTime string `json:"DiagnosticTime" xml:"DiagnosticTime"` + Score int `json:"Score" xml:"Score"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DownloadURL string `json:"DownloadURL" xml:"DownloadURL"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_report_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_report_list.go new file mode 100644 index 0000000..2fb1e6d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_report_list.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ReportList is a nested struct in rds response +type ReportList struct { + Report []Report `json:"Report" xml:"Report"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_resource.go new file mode 100644 index 0000000..47a02a8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_resource.go @@ -0,0 +1,23 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Resource is a nested struct in rds response +type Resource struct { + DBInstanceAvailable string `json:"DBInstanceAvailable" xml:"DBInstanceAvailable"` + Engine string `json:"Engine" xml:"Engine"` + EngineVersion string `json:"EngineVersion" xml:"EngineVersion"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_resources.go new file mode 100644 index 0000000..a44c76e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_resources.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Resources is a nested struct in rds response +type Resources struct { + Resource []Resource `json:"Resource" xml:"Resource"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rule.go new file mode 100644 index 0000000..1d1f926 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rule.go @@ -0,0 +1,23 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Rule is a nested struct in rds response +type Rule struct { + Name string `json:"Name" xml:"Name"` + RuleId int `json:"RuleId" xml:"RuleId"` + Description string `json:"Description" xml:"Description"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rule_ids_in_describe_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rule_ids_in_describe_price.go new file mode 100644 index 0000000..791940f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rule_ids_in_describe_price.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RuleIdsInDescribePrice is a nested struct in rds response +type RuleIdsInDescribePrice struct { + RuleId []string `json:"RuleId" xml:"RuleId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rule_ids_in_describe_renewal_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rule_ids_in_describe_renewal_price.go new file mode 100644 index 0000000..5df3b81 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rule_ids_in_describe_renewal_price.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RuleIdsInDescribeRenewalPrice is a nested struct in rds response +type RuleIdsInDescribeRenewalPrice struct { + RuleId []string `json:"RuleId" xml:"RuleId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rule_ids_in_query_price_for_buy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rule_ids_in_query_price_for_buy.go new file mode 100644 index 0000000..2465da9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rule_ids_in_query_price_for_buy.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RuleIdsInQueryPriceForBuy is a nested struct in rds response +type RuleIdsInQueryPriceForBuy struct { + RuleId []string `json:"RuleId" xml:"RuleId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rules_in_describe_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rules_in_describe_price.go new file mode 100644 index 0000000..acd2452 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rules_in_describe_price.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RulesInDescribePrice is a nested struct in rds response +type RulesInDescribePrice struct { + Rule []Rule `json:"Rule" xml:"Rule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rules_in_describe_renewal_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rules_in_describe_renewal_price.go new file mode 100644 index 0000000..0913f72 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rules_in_describe_renewal_price.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RulesInDescribeRenewalPrice is a nested struct in rds response +type RulesInDescribeRenewalPrice struct { + Rule []Rule `json:"Rule" xml:"Rule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rules_in_query_price_for_buy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rules_in_query_price_for_buy.go new file mode 100644 index 0000000..f60ed56 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_rules_in_query_price_for_buy.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RulesInQueryPriceForBuy is a nested struct in rds response +type RulesInQueryPriceForBuy struct { + Rule []Rule `json:"Rule" xml:"Rule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_running_parameters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_running_parameters.go new file mode 100644 index 0000000..6189d6b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_running_parameters.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RunningParameters is a nested struct in rds response +type RunningParameters struct { + DBInstanceParameter []DBInstanceParameter `json:"DBInstanceParameter" xml:"DBInstanceParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_security_ip_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_security_ip_group.go new file mode 100644 index 0000000..1f8756f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_security_ip_group.go @@ -0,0 +1,22 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SecurityIPGroup is a nested struct in rds response +type SecurityIPGroup struct { + SecurityIPGroupName string `json:"SecurityIPGroupName" xml:"SecurityIPGroupName"` + SecurityIPs string `json:"SecurityIPs" xml:"SecurityIPs"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_security_ip_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_security_ip_groups.go new file mode 100644 index 0000000..649ff76 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_security_ip_groups.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SecurityIPGroups is a nested struct in rds response +type SecurityIPGroups struct { + SecurityIPGroup []SecurityIPGroup `json:"securityIPGroup" xml:"securityIPGroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_diag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_diag.go new file mode 100644 index 0000000..aff18a8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_diag.go @@ -0,0 +1,25 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SQLDiag is a nested struct in rds response +type SQLDiag struct { + SQLDiagId string `json:"SQLDiagId" xml:"SQLDiagId"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + Status int `json:"Status" xml:"Status"` + Progress int `json:"Progress" xml:"Progress"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_diag_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_diag_list.go new file mode 100644 index 0000000..accf81e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_diag_list.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SQLDiagList is a nested struct in rds response +type SQLDiagList struct { + SQLDiag []SQLDiag `json:"SQLDiag" xml:"SQLDiag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_injection_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_injection_info.go new file mode 100644 index 0000000..5a4922c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_injection_info.go @@ -0,0 +1,27 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SQLInjectionInfo is a nested struct in rds response +type SQLInjectionInfo struct { + DBName string `json:"DBName" xml:"DBName"` + SQLText string `json:"SQLText" xml:"SQLText"` + LatencyTime string `json:"LatencyTime" xml:"LatencyTime"` + HostAddress string `json:"HostAddress" xml:"HostAddress"` + ExecuteTime string `json:"ExecuteTime" xml:"ExecuteTime"` + AccountName string `json:"AccountName" xml:"AccountName"` + EffectRowCount string `json:"EffectRowCount" xml:"EffectRowCount"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_list.go new file mode 100644 index 0000000..4873c82 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_list.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SQLList is a nested struct in rds response +type SQLList struct { + SQL []string `json:"SQL" xml:"SQL"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_record.go new file mode 100644 index 0000000..2510529 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_record.go @@ -0,0 +1,28 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SQLRecord is a nested struct in rds response +type SQLRecord struct { + DBName string `json:"DBName" xml:"DBName"` + AccountName string `json:"AccountName" xml:"AccountName"` + HostAddress string `json:"HostAddress" xml:"HostAddress"` + SQLText string `json:"SQLText" xml:"SQLText"` + TotalExecutionTimes int `json:"TotalExecutionTimes" xml:"TotalExecutionTimes"` + ReturnRowCounts int `json:"ReturnRowCounts" xml:"ReturnRowCounts"` + ExecuteTime string `json:"ExecuteTime" xml:"ExecuteTime"` + ThreadID string `json:"ThreadID" xml:"ThreadID"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_slow_log.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_slow_log.go new file mode 100644 index 0000000..d092fc8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_slow_log.go @@ -0,0 +1,40 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SQLSlowLog is a nested struct in rds response +type SQLSlowLog struct { + SlowLogId int `json:"SlowLogId" xml:"SlowLogId"` + SQLId int `json:"SQLId" xml:"SQLId"` + DBName string `json:"DBName" xml:"DBName"` + SQLText string `json:"SQLText" xml:"SQLText"` + MySQLTotalExecutionCounts int `json:"MySQLTotalExecutionCounts" xml:"MySQLTotalExecutionCounts"` + MySQLTotalExecutionTimes int `json:"MySQLTotalExecutionTimes" xml:"MySQLTotalExecutionTimes"` + TotalLockTimes int `json:"TotalLockTimes" xml:"TotalLockTimes"` + MaxLockTime int `json:"MaxLockTime" xml:"MaxLockTime"` + ParseTotalRowCounts int `json:"ParseTotalRowCounts" xml:"ParseTotalRowCounts"` + ParseMaxRowCount int `json:"ParseMaxRowCount" xml:"ParseMaxRowCount"` + ReturnTotalRowCounts int `json:"ReturnTotalRowCounts" xml:"ReturnTotalRowCounts"` + ReturnMaxRowCount int `json:"ReturnMaxRowCount" xml:"ReturnMaxRowCount"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + SQLServerTotalExecutionCounts int `json:"SQLServerTotalExecutionCounts" xml:"SQLServerTotalExecutionCounts"` + SQLServerTotalExecutionTimes int `json:"SQLServerTotalExecutionTimes" xml:"SQLServerTotalExecutionTimes"` + TotalLogicalReadCounts int `json:"TotalLogicalReadCounts" xml:"TotalLogicalReadCounts"` + TotalPhysicalReadCounts int `json:"TotalPhysicalReadCounts" xml:"TotalPhysicalReadCounts"` + ReportTime string `json:"ReportTime" xml:"ReportTime"` + MaxExecutionTime int `json:"MaxExecutionTime" xml:"MaxExecutionTime"` + AvgExecutionTime int `json:"AvgExecutionTime" xml:"AvgExecutionTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_slow_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_slow_record.go new file mode 100644 index 0000000..e9a0b89 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_sql_slow_record.go @@ -0,0 +1,28 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SQLSlowRecord is a nested struct in rds response +type SQLSlowRecord struct { + HostAddress string `json:"HostAddress" xml:"HostAddress"` + DBName string `json:"DBName" xml:"DBName"` + SQLText string `json:"SQLText" xml:"SQLText"` + QueryTimes int `json:"QueryTimes" xml:"QueryTimes"` + LockTimes int `json:"LockTimes" xml:"LockTimes"` + ParseRowCounts int `json:"ParseRowCounts" xml:"ParseRowCounts"` + ReturnRowCounts int `json:"ReturnRowCounts" xml:"ReturnRowCounts"` + ExecutionStartTime string `json:"ExecutionStartTime" xml:"ExecutionStartTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_storage.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_storage.go new file mode 100644 index 0000000..aec163a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_storage.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Storage is a nested struct in rds response +type Storage struct { + Detail []string `json:"Detail" xml:"Detail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_tag.go new file mode 100644 index 0000000..cec05e2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_tag.go @@ -0,0 +1,22 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 rds response +type Tag struct { + TagKey string `json:"TagKey" xml:"TagKey"` + TagValue string `json:"TagValue" xml:"TagValue"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_tag_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_tag_infos.go new file mode 100644 index 0000000..55b87f4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_tag_infos.go @@ -0,0 +1,23 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagInfos is a nested struct in rds response +type TagInfos struct { + TagKey string `json:"TagKey" xml:"TagKey"` + TagValue string `json:"TagValue" xml:"TagValue"` + DBInstanceIds DBInstanceIds `json:"DBInstanceIds" xml:"DBInstanceIds"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_tags.go new file mode 100644 index 0000000..c29619c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_tags.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 rds response +type Tags struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_task_progress_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_task_progress_info.go new file mode 100644 index 0000000..7dc969b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_task_progress_info.go @@ -0,0 +1,31 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TaskProgressInfo is a nested struct in rds response +type TaskProgressInfo struct { + DBName string `json:"DBName" xml:"DBName"` + BeginTime string `json:"BeginTime" xml:"BeginTime"` + ProgressInfo string `json:"ProgressInfo" xml:"ProgressInfo"` + FinishTime string `json:"FinishTime" xml:"FinishTime"` + TaskAction string `json:"TaskAction" xml:"TaskAction"` + TaskId string `json:"TaskId" xml:"TaskId"` + Progress string `json:"Progress" xml:"Progress"` + ExpectedFinishTime string `json:"ExpectedFinishTime" xml:"ExpectedFinishTime"` + Status string `json:"Status" xml:"Status"` + TaskErrorCode string `json:"TaskErrorCode" xml:"TaskErrorCode"` + TaskErrorMessage string `json:"TaskErrorMessage" xml:"TaskErrorMessage"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_tasks.go new file mode 100644 index 0000000..9c1381e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_tasks.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Tasks is a nested struct in rds response +type Tasks struct { + RealtimeDiagnoseTasks []RealtimeDiagnoseTasks `json:"RealtimeDiagnoseTasks" xml:"RealtimeDiagnoseTasks"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_template_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_template_record.go new file mode 100644 index 0000000..af3bf6d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_template_record.go @@ -0,0 +1,26 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TemplateRecord is a nested struct in rds response +type TemplateRecord struct { + ParameterName string `json:"ParameterName" xml:"ParameterName"` + ParameterValue string `json:"ParameterValue" xml:"ParameterValue"` + ForceModify string `json:"ForceModify" xml:"ForceModify"` + ForceRestart string `json:"ForceRestart" xml:"ForceRestart"` + CheckingCode string `json:"CheckingCode" xml:"CheckingCode"` + ParameterDescription string `json:"ParameterDescription" xml:"ParameterDescription"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_values.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_values.go new file mode 100644 index 0000000..cd24d0a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_values.go @@ -0,0 +1,21 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 rds response +type Values struct { + PerformanceValue []PerformanceValue `json:"PerformanceValue" xml:"PerformanceValue"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_vpc_zone_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_vpc_zone_id.go new file mode 100644 index 0000000..8e38e96 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_vpc_zone_id.go @@ -0,0 +1,23 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VpcZoneId is a nested struct in rds response +type VpcZoneId struct { + ZoneId string `json:"ZoneId" xml:"ZoneId"` + Region string `json:"Region" xml:"Region"` + SubDomain string `json:"SubDomain" xml:"SubDomain"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/switch_db_instance_ha.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/switch_db_instance_ha.go new file mode 100644 index 0000000..958cc47 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/switch_db_instance_ha.go @@ -0,0 +1,111 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SwitchDBInstanceHA invokes the rds.SwitchDBInstanceHA API synchronously +// api document: https://help.aliyun.com/api/rds/switchdbinstanceha.html +func (client *Client) SwitchDBInstanceHA(request *SwitchDBInstanceHARequest) (response *SwitchDBInstanceHAResponse, err error) { + response = CreateSwitchDBInstanceHAResponse() + err = client.DoAction(request, response) + return +} + +// SwitchDBInstanceHAWithChan invokes the rds.SwitchDBInstanceHA API asynchronously +// api document: https://help.aliyun.com/api/rds/switchdbinstanceha.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SwitchDBInstanceHAWithChan(request *SwitchDBInstanceHARequest) (<-chan *SwitchDBInstanceHAResponse, <-chan error) { + responseChan := make(chan *SwitchDBInstanceHAResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SwitchDBInstanceHA(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SwitchDBInstanceHAWithCallback invokes the rds.SwitchDBInstanceHA API asynchronously +// api document: https://help.aliyun.com/api/rds/switchdbinstanceha.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SwitchDBInstanceHAWithCallback(request *SwitchDBInstanceHARequest, callback func(response *SwitchDBInstanceHAResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SwitchDBInstanceHAResponse + var err error + defer close(result) + response, err = client.SwitchDBInstanceHA(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SwitchDBInstanceHARequest is the request struct for api SwitchDBInstanceHA +type SwitchDBInstanceHARequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + NodeId string `position:"Query" name:"NodeId"` + Operation string `position:"Query" name:"Operation"` + Force string `position:"Query" name:"Force"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EffectiveTime string `position:"Query" name:"EffectiveTime"` +} + +// SwitchDBInstanceHAResponse is the response struct for api SwitchDBInstanceHA +type SwitchDBInstanceHAResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSwitchDBInstanceHARequest creates a request to invoke SwitchDBInstanceHA API +func CreateSwitchDBInstanceHARequest() (request *SwitchDBInstanceHARequest) { + request = &SwitchDBInstanceHARequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "SwitchDBInstanceHA", "rds", "openAPI") + return +} + +// CreateSwitchDBInstanceHAResponse creates a response to parse from SwitchDBInstanceHA response +func CreateSwitchDBInstanceHAResponse() (response *SwitchDBInstanceHAResponse) { + response = &SwitchDBInstanceHAResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/switch_db_instance_net_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/switch_db_instance_net_type.go new file mode 100644 index 0000000..0213160 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/switch_db_instance_net_type.go @@ -0,0 +1,111 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SwitchDBInstanceNetType invokes the rds.SwitchDBInstanceNetType API synchronously +// api document: https://help.aliyun.com/api/rds/switchdbinstancenettype.html +func (client *Client) SwitchDBInstanceNetType(request *SwitchDBInstanceNetTypeRequest) (response *SwitchDBInstanceNetTypeResponse, err error) { + response = CreateSwitchDBInstanceNetTypeResponse() + err = client.DoAction(request, response) + return +} + +// SwitchDBInstanceNetTypeWithChan invokes the rds.SwitchDBInstanceNetType API asynchronously +// api document: https://help.aliyun.com/api/rds/switchdbinstancenettype.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SwitchDBInstanceNetTypeWithChan(request *SwitchDBInstanceNetTypeRequest) (<-chan *SwitchDBInstanceNetTypeResponse, <-chan error) { + responseChan := make(chan *SwitchDBInstanceNetTypeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SwitchDBInstanceNetType(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SwitchDBInstanceNetTypeWithCallback invokes the rds.SwitchDBInstanceNetType API asynchronously +// api document: https://help.aliyun.com/api/rds/switchdbinstancenettype.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SwitchDBInstanceNetTypeWithCallback(request *SwitchDBInstanceNetTypeRequest, callback func(response *SwitchDBInstanceNetTypeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SwitchDBInstanceNetTypeResponse + var err error + defer close(result) + response, err = client.SwitchDBInstanceNetType(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SwitchDBInstanceNetTypeRequest is the request struct for api SwitchDBInstanceNetType +type SwitchDBInstanceNetTypeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + ConnectionStringPrefix string `position:"Query" name:"ConnectionStringPrefix"` + Port string `position:"Query" name:"Port"` + ConnectionStringType string `position:"Query" name:"ConnectionStringType"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// SwitchDBInstanceNetTypeResponse is the response struct for api SwitchDBInstanceNetType +type SwitchDBInstanceNetTypeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSwitchDBInstanceNetTypeRequest creates a request to invoke SwitchDBInstanceNetType API +func CreateSwitchDBInstanceNetTypeRequest() (request *SwitchDBInstanceNetTypeRequest) { + request = &SwitchDBInstanceNetTypeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "SwitchDBInstanceNetType", "rds", "openAPI") + return +} + +// CreateSwitchDBInstanceNetTypeResponse creates a response to parse from SwitchDBInstanceNetType response +func CreateSwitchDBInstanceNetTypeResponse() (response *SwitchDBInstanceNetTypeResponse) { + response = &SwitchDBInstanceNetTypeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/upgrade_db_instance_engine_version.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/upgrade_db_instance_engine_version.go new file mode 100644 index 0000000..97887c1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/upgrade_db_instance_engine_version.go @@ -0,0 +1,111 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpgradeDBInstanceEngineVersion invokes the rds.UpgradeDBInstanceEngineVersion API synchronously +// api document: https://help.aliyun.com/api/rds/upgradedbinstanceengineversion.html +func (client *Client) UpgradeDBInstanceEngineVersion(request *UpgradeDBInstanceEngineVersionRequest) (response *UpgradeDBInstanceEngineVersionResponse, err error) { + response = CreateUpgradeDBInstanceEngineVersionResponse() + err = client.DoAction(request, response) + return +} + +// UpgradeDBInstanceEngineVersionWithChan invokes the rds.UpgradeDBInstanceEngineVersion API asynchronously +// api document: https://help.aliyun.com/api/rds/upgradedbinstanceengineversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpgradeDBInstanceEngineVersionWithChan(request *UpgradeDBInstanceEngineVersionRequest) (<-chan *UpgradeDBInstanceEngineVersionResponse, <-chan error) { + responseChan := make(chan *UpgradeDBInstanceEngineVersionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpgradeDBInstanceEngineVersion(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpgradeDBInstanceEngineVersionWithCallback invokes the rds.UpgradeDBInstanceEngineVersion API asynchronously +// api document: https://help.aliyun.com/api/rds/upgradedbinstanceengineversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpgradeDBInstanceEngineVersionWithCallback(request *UpgradeDBInstanceEngineVersionRequest, callback func(response *UpgradeDBInstanceEngineVersionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpgradeDBInstanceEngineVersionResponse + var err error + defer close(result) + response, err = client.UpgradeDBInstanceEngineVersion(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpgradeDBInstanceEngineVersionRequest is the request struct for api UpgradeDBInstanceEngineVersion +type UpgradeDBInstanceEngineVersionRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + EngineVersion string `position:"Query" name:"EngineVersion"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EffectiveTime string `position:"Query" name:"EffectiveTime"` +} + +// UpgradeDBInstanceEngineVersionResponse is the response struct for api UpgradeDBInstanceEngineVersion +type UpgradeDBInstanceEngineVersionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskId string `json:"TaskId" xml:"TaskId"` +} + +// CreateUpgradeDBInstanceEngineVersionRequest creates a request to invoke UpgradeDBInstanceEngineVersion API +func CreateUpgradeDBInstanceEngineVersionRequest() (request *UpgradeDBInstanceEngineVersionRequest) { + request = &UpgradeDBInstanceEngineVersionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "UpgradeDBInstanceEngineVersion", "rds", "openAPI") + return +} + +// CreateUpgradeDBInstanceEngineVersionResponse creates a response to parse from UpgradeDBInstanceEngineVersion response +func CreateUpgradeDBInstanceEngineVersionResponse() (response *UpgradeDBInstanceEngineVersionResponse) { + response = &UpgradeDBInstanceEngineVersionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/upgrade_db_instance_kernel_version.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/upgrade_db_instance_kernel_version.go new file mode 100644 index 0000000..277d1fd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/upgrade_db_instance_kernel_version.go @@ -0,0 +1,111 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpgradeDBInstanceKernelVersion invokes the rds.UpgradeDBInstanceKernelVersion API synchronously +// api document: https://help.aliyun.com/api/rds/upgradedbinstancekernelversion.html +func (client *Client) UpgradeDBInstanceKernelVersion(request *UpgradeDBInstanceKernelVersionRequest) (response *UpgradeDBInstanceKernelVersionResponse, err error) { + response = CreateUpgradeDBInstanceKernelVersionResponse() + err = client.DoAction(request, response) + return +} + +// UpgradeDBInstanceKernelVersionWithChan invokes the rds.UpgradeDBInstanceKernelVersion API asynchronously +// api document: https://help.aliyun.com/api/rds/upgradedbinstancekernelversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpgradeDBInstanceKernelVersionWithChan(request *UpgradeDBInstanceKernelVersionRequest) (<-chan *UpgradeDBInstanceKernelVersionResponse, <-chan error) { + responseChan := make(chan *UpgradeDBInstanceKernelVersionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpgradeDBInstanceKernelVersion(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpgradeDBInstanceKernelVersionWithCallback invokes the rds.UpgradeDBInstanceKernelVersion API asynchronously +// api document: https://help.aliyun.com/api/rds/upgradedbinstancekernelversion.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpgradeDBInstanceKernelVersionWithCallback(request *UpgradeDBInstanceKernelVersionRequest, callback func(response *UpgradeDBInstanceKernelVersionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpgradeDBInstanceKernelVersionResponse + var err error + defer close(result) + response, err = client.UpgradeDBInstanceKernelVersion(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpgradeDBInstanceKernelVersionRequest is the request struct for api UpgradeDBInstanceKernelVersion +type UpgradeDBInstanceKernelVersionRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + SwitchTimeMode string `position:"Query" name:"SwitchTimeMode"` + SwitchTime string `position:"Query" name:"SwitchTime"` +} + +// UpgradeDBInstanceKernelVersionResponse is the response struct for api UpgradeDBInstanceKernelVersion +type UpgradeDBInstanceKernelVersionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceName string `json:"DBInstanceName" xml:"DBInstanceName"` + TaskId string `json:"TaskId" xml:"TaskId"` + TargetMinorVersion string `json:"TargetMinorVersion" xml:"TargetMinorVersion"` +} + +// CreateUpgradeDBInstanceKernelVersionRequest creates a request to invoke UpgradeDBInstanceKernelVersion API +func CreateUpgradeDBInstanceKernelVersionRequest() (request *UpgradeDBInstanceKernelVersionRequest) { + request = &UpgradeDBInstanceKernelVersionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "UpgradeDBInstanceKernelVersion", "rds", "openAPI") + return +} + +// CreateUpgradeDBInstanceKernelVersionResponse creates a response to parse from UpgradeDBInstanceKernelVersion response +func CreateUpgradeDBInstanceKernelVersionResponse() (response *UpgradeDBInstanceKernelVersionResponse) { + response = &UpgradeDBInstanceKernelVersionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/upgrade_db_instance_net_work_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/upgrade_db_instance_net_work_info.go new file mode 100644 index 0000000..00fe0e5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/upgrade_db_instance_net_work_info.go @@ -0,0 +1,107 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpgradeDBInstanceNetWorkInfo invokes the rds.UpgradeDBInstanceNetWorkInfo API synchronously +// api document: https://help.aliyun.com/api/rds/upgradedbinstancenetworkinfo.html +func (client *Client) UpgradeDBInstanceNetWorkInfo(request *UpgradeDBInstanceNetWorkInfoRequest) (response *UpgradeDBInstanceNetWorkInfoResponse, err error) { + response = CreateUpgradeDBInstanceNetWorkInfoResponse() + err = client.DoAction(request, response) + return +} + +// UpgradeDBInstanceNetWorkInfoWithChan invokes the rds.UpgradeDBInstanceNetWorkInfo API asynchronously +// api document: https://help.aliyun.com/api/rds/upgradedbinstancenetworkinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpgradeDBInstanceNetWorkInfoWithChan(request *UpgradeDBInstanceNetWorkInfoRequest) (<-chan *UpgradeDBInstanceNetWorkInfoResponse, <-chan error) { + responseChan := make(chan *UpgradeDBInstanceNetWorkInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpgradeDBInstanceNetWorkInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpgradeDBInstanceNetWorkInfoWithCallback invokes the rds.UpgradeDBInstanceNetWorkInfo API asynchronously +// api document: https://help.aliyun.com/api/rds/upgradedbinstancenetworkinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpgradeDBInstanceNetWorkInfoWithCallback(request *UpgradeDBInstanceNetWorkInfoRequest, callback func(response *UpgradeDBInstanceNetWorkInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpgradeDBInstanceNetWorkInfoResponse + var err error + defer close(result) + response, err = client.UpgradeDBInstanceNetWorkInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpgradeDBInstanceNetWorkInfoRequest is the request struct for api UpgradeDBInstanceNetWorkInfo +type UpgradeDBInstanceNetWorkInfoRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + ConnectionString string `position:"Query" name:"ConnectionString"` +} + +// UpgradeDBInstanceNetWorkInfoResponse is the response struct for api UpgradeDBInstanceNetWorkInfo +type UpgradeDBInstanceNetWorkInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpgradeDBInstanceNetWorkInfoRequest creates a request to invoke UpgradeDBInstanceNetWorkInfo API +func CreateUpgradeDBInstanceNetWorkInfoRequest() (request *UpgradeDBInstanceNetWorkInfoRequest) { + request = &UpgradeDBInstanceNetWorkInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "UpgradeDBInstanceNetWorkInfo", "rds", "openAPI") + return +} + +// CreateUpgradeDBInstanceNetWorkInfoResponse creates a response to parse from UpgradeDBInstanceNetWorkInfo response +func CreateUpgradeDBInstanceNetWorkInfoResponse() (response *UpgradeDBInstanceNetWorkInfoResponse) { + response = &UpgradeDBInstanceNetWorkInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/upgrade_db_instance_network.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/upgrade_db_instance_network.go new file mode 100644 index 0000000..8959091 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/upgrade_db_instance_network.go @@ -0,0 +1,109 @@ +package rds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpgradeDBInstanceNetwork invokes the rds.UpgradeDBInstanceNetwork API synchronously +// api document: https://help.aliyun.com/api/rds/upgradedbinstancenetwork.html +func (client *Client) UpgradeDBInstanceNetwork(request *UpgradeDBInstanceNetworkRequest) (response *UpgradeDBInstanceNetworkResponse, err error) { + response = CreateUpgradeDBInstanceNetworkResponse() + err = client.DoAction(request, response) + return +} + +// UpgradeDBInstanceNetworkWithChan invokes the rds.UpgradeDBInstanceNetwork API asynchronously +// api document: https://help.aliyun.com/api/rds/upgradedbinstancenetwork.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpgradeDBInstanceNetworkWithChan(request *UpgradeDBInstanceNetworkRequest) (<-chan *UpgradeDBInstanceNetworkResponse, <-chan error) { + responseChan := make(chan *UpgradeDBInstanceNetworkResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpgradeDBInstanceNetwork(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpgradeDBInstanceNetworkWithCallback invokes the rds.UpgradeDBInstanceNetwork API asynchronously +// api document: https://help.aliyun.com/api/rds/upgradedbinstancenetwork.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpgradeDBInstanceNetworkWithCallback(request *UpgradeDBInstanceNetworkRequest, callback func(response *UpgradeDBInstanceNetworkResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpgradeDBInstanceNetworkResponse + var err error + defer close(result) + response, err = client.UpgradeDBInstanceNetwork(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpgradeDBInstanceNetworkRequest is the request struct for api UpgradeDBInstanceNetwork +type UpgradeDBInstanceNetworkRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + ConnectionString string `position:"Query" name:"ConnectionString"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// UpgradeDBInstanceNetworkResponse is the response struct for api UpgradeDBInstanceNetwork +type UpgradeDBInstanceNetworkResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DBInstanceName string `json:"DBInstanceName" xml:"DBInstanceName"` +} + +// CreateUpgradeDBInstanceNetworkRequest creates a request to invoke UpgradeDBInstanceNetwork API +func CreateUpgradeDBInstanceNetworkRequest() (request *UpgradeDBInstanceNetworkRequest) { + request = &UpgradeDBInstanceNetworkRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Rds", "2014-08-15", "UpgradeDBInstanceNetwork", "rds", "openAPI") + return +} + +// CreateUpgradeDBInstanceNetworkResponse creates a response to parse from UpgradeDBInstanceNetwork response +func CreateUpgradeDBInstanceNetworkResponse() (response *UpgradeDBInstanceNetworkResponse) { + response = &UpgradeDBInstanceNetworkResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/client.go new file mode 100644 index 0000000..01e529a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/client.go @@ -0,0 +1,81 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/create_channel.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/create_channel.go new file mode 100644 index 0000000..171cc42 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/create_channel.go @@ -0,0 +1,108 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateChannel invokes the rtc.CreateChannel API synchronously +// api document: https://help.aliyun.com/api/rtc/createchannel.html +func (client *Client) CreateChannel(request *CreateChannelRequest) (response *CreateChannelResponse, err error) { + response = CreateCreateChannelResponse() + err = client.DoAction(request, response) + return +} + +// CreateChannelWithChan invokes the rtc.CreateChannel API asynchronously +// api document: https://help.aliyun.com/api/rtc/createchannel.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateChannelWithChan(request *CreateChannelRequest) (<-chan *CreateChannelResponse, <-chan error) { + responseChan := make(chan *CreateChannelResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateChannel(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateChannelWithCallback invokes the rtc.CreateChannel API asynchronously +// api document: https://help.aliyun.com/api/rtc/createchannel.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateChannelWithCallback(request *CreateChannelRequest, callback func(response *CreateChannelResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateChannelResponse + var err error + defer close(result) + response, err = client.CreateChannel(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateChannelRequest is the request struct for api CreateChannel +type CreateChannelRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AppId string `position:"Query" name:"AppId"` + ChannelId string `position:"Query" name:"ChannelId"` +} + +// CreateChannelResponse is the response struct for api CreateChannel +type CreateChannelResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ChannelKey string `json:"ChannelKey" xml:"ChannelKey"` + Nonce string `json:"Nonce" xml:"Nonce"` + Timestamp int `json:"Timestamp" xml:"Timestamp"` +} + +// CreateCreateChannelRequest creates a request to invoke CreateChannel API +func CreateCreateChannelRequest() (request *CreateChannelRequest) { + request = &CreateChannelRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "CreateChannel", "rtc", "openAPI") + return +} + +// CreateCreateChannelResponse creates a response to parse from CreateChannel response +func CreateCreateChannelResponse() (response *CreateChannelResponse) { + response = &CreateChannelResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/create_conference.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/create_conference.go new file mode 100644 index 0000000..3842780 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/create_conference.go @@ -0,0 +1,111 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateConference invokes the rtc.CreateConference API synchronously +// api document: https://help.aliyun.com/api/rtc/createconference.html +func (client *Client) CreateConference(request *CreateConferenceRequest) (response *CreateConferenceResponse, err error) { + response = CreateCreateConferenceResponse() + err = client.DoAction(request, response) + return +} + +// CreateConferenceWithChan invokes the rtc.CreateConference API asynchronously +// api document: https://help.aliyun.com/api/rtc/createconference.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateConferenceWithChan(request *CreateConferenceRequest) (<-chan *CreateConferenceResponse, <-chan error) { + responseChan := make(chan *CreateConferenceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateConference(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateConferenceWithCallback invokes the rtc.CreateConference API asynchronously +// api document: https://help.aliyun.com/api/rtc/createconference.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateConferenceWithCallback(request *CreateConferenceRequest, callback func(response *CreateConferenceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateConferenceResponse + var err error + defer close(result) + response, err = client.CreateConference(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateConferenceRequest is the request struct for api CreateConference +type CreateConferenceRequest struct { + *requests.RpcRequest + ClientToken string `position:"Query" name:"ClientToken"` + StartTime string `position:"Query" name:"StartTime"` + Type string `position:"Query" name:"Type"` + ConferenceName string `position:"Query" name:"ConferenceName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AppId string `position:"Query" name:"AppId"` + RemindNotice requests.Integer `position:"Query" name:"RemindNotice"` +} + +// CreateConferenceResponse is the response struct for api CreateConference +type CreateConferenceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ConferenceId string `json:"ConferenceId" xml:"ConferenceId"` + AuthInfo AuthInfo `json:"AuthInfo" xml:"AuthInfo"` +} + +// CreateCreateConferenceRequest creates a request to invoke CreateConference API +func CreateCreateConferenceRequest() (request *CreateConferenceRequest) { + request = &CreateConferenceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "CreateConference", "rtc", "openAPI") + return +} + +// CreateCreateConferenceResponse creates a response to parse from CreateConference response +func CreateCreateConferenceResponse() (response *CreateConferenceResponse) { + response = &CreateConferenceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/delete_channel.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/delete_channel.go new file mode 100644 index 0000000..bc4163a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/delete_channel.go @@ -0,0 +1,105 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteChannel invokes the rtc.DeleteChannel API synchronously +// api document: https://help.aliyun.com/api/rtc/deletechannel.html +func (client *Client) DeleteChannel(request *DeleteChannelRequest) (response *DeleteChannelResponse, err error) { + response = CreateDeleteChannelResponse() + err = client.DoAction(request, response) + return +} + +// DeleteChannelWithChan invokes the rtc.DeleteChannel API asynchronously +// api document: https://help.aliyun.com/api/rtc/deletechannel.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteChannelWithChan(request *DeleteChannelRequest) (<-chan *DeleteChannelResponse, <-chan error) { + responseChan := make(chan *DeleteChannelResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteChannel(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteChannelWithCallback invokes the rtc.DeleteChannel API asynchronously +// api document: https://help.aliyun.com/api/rtc/deletechannel.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteChannelWithCallback(request *DeleteChannelRequest, callback func(response *DeleteChannelResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteChannelResponse + var err error + defer close(result) + response, err = client.DeleteChannel(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteChannelRequest is the request struct for api DeleteChannel +type DeleteChannelRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AppId string `position:"Query" name:"AppId"` + ChannelId string `position:"Query" name:"ChannelId"` +} + +// DeleteChannelResponse is the response struct for api DeleteChannel +type DeleteChannelResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteChannelRequest creates a request to invoke DeleteChannel API +func CreateDeleteChannelRequest() (request *DeleteChannelRequest) { + request = &DeleteChannelRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "DeleteChannel", "rtc", "openAPI") + return +} + +// CreateDeleteChannelResponse creates a response to parse from DeleteChannel response +func CreateDeleteChannelResponse() (response *DeleteChannelResponse) { + response = &DeleteChannelResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/delete_conference.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/delete_conference.go new file mode 100644 index 0000000..8170004 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/delete_conference.go @@ -0,0 +1,106 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteConference invokes the rtc.DeleteConference API synchronously +// api document: https://help.aliyun.com/api/rtc/deleteconference.html +func (client *Client) DeleteConference(request *DeleteConferenceRequest) (response *DeleteConferenceResponse, err error) { + response = CreateDeleteConferenceResponse() + err = client.DoAction(request, response) + return +} + +// DeleteConferenceWithChan invokes the rtc.DeleteConference API asynchronously +// api document: https://help.aliyun.com/api/rtc/deleteconference.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteConferenceWithChan(request *DeleteConferenceRequest) (<-chan *DeleteConferenceResponse, <-chan error) { + responseChan := make(chan *DeleteConferenceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteConference(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteConferenceWithCallback invokes the rtc.DeleteConference API asynchronously +// api document: https://help.aliyun.com/api/rtc/deleteconference.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteConferenceWithCallback(request *DeleteConferenceRequest, callback func(response *DeleteConferenceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteConferenceResponse + var err error + defer close(result) + response, err = client.DeleteConference(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteConferenceRequest is the request struct for api DeleteConference +type DeleteConferenceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ConferenceId string `position:"Query" name:"ConferenceId"` + AppId string `position:"Query" name:"AppId"` +} + +// DeleteConferenceResponse is the response struct for api DeleteConference +type DeleteConferenceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ConferenceId string `json:"ConferenceId" xml:"ConferenceId"` +} + +// CreateDeleteConferenceRequest creates a request to invoke DeleteConference API +func CreateDeleteConferenceRequest() (request *DeleteConferenceRequest) { + request = &DeleteConferenceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "DeleteConference", "rtc", "openAPI") + return +} + +// CreateDeleteConferenceResponse creates a response to parse from DeleteConference response +func CreateDeleteConferenceResponse() (response *DeleteConferenceResponse) { + response = &DeleteConferenceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_apps.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_apps.go new file mode 100644 index 0000000..ca97e6a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_apps.go @@ -0,0 +1,111 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeApps invokes the rtc.DescribeApps API synchronously +// api document: https://help.aliyun.com/api/rtc/describeapps.html +func (client *Client) DescribeApps(request *DescribeAppsRequest) (response *DescribeAppsResponse, err error) { + response = CreateDescribeAppsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAppsWithChan invokes the rtc.DescribeApps API asynchronously +// api document: https://help.aliyun.com/api/rtc/describeapps.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAppsWithChan(request *DescribeAppsRequest) (<-chan *DescribeAppsResponse, <-chan error) { + responseChan := make(chan *DescribeAppsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeApps(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAppsWithCallback invokes the rtc.DescribeApps API asynchronously +// api document: https://help.aliyun.com/api/rtc/describeapps.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAppsWithCallback(request *DescribeAppsRequest, callback func(response *DescribeAppsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAppsResponse + var err error + defer close(result) + response, err = client.DescribeApps(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAppsRequest is the request struct for api DescribeApps +type DescribeAppsRequest struct { + *requests.RpcRequest + PageNum requests.Integer `position:"Query" name:"PageNum"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Order string `position:"Query" name:"Order"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AppId string `position:"Query" name:"AppId"` + Status string `position:"Query" name:"Status"` +} + +// DescribeAppsResponse is the response struct for api DescribeApps +type DescribeAppsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalNum int `json:"TotalNum" xml:"TotalNum"` + TotalPage int `json:"TotalPage" xml:"TotalPage"` + AppList AppList `json:"AppList" xml:"AppList"` +} + +// CreateDescribeAppsRequest creates a request to invoke DescribeApps API +func CreateDescribeAppsRequest() (request *DescribeAppsRequest) { + request = &DescribeAppsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "DescribeApps", "rtc", "openAPI") + return +} + +// CreateDescribeAppsResponse creates a response to parse from DescribeApps response +func CreateDescribeAppsResponse() (response *DescribeAppsResponse) { + response = &DescribeAppsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_conference_auth_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_conference_auth_info.go new file mode 100644 index 0000000..e60aad7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_conference_auth_info.go @@ -0,0 +1,107 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeConferenceAuthInfo invokes the rtc.DescribeConferenceAuthInfo API synchronously +// api document: https://help.aliyun.com/api/rtc/describeconferenceauthinfo.html +func (client *Client) DescribeConferenceAuthInfo(request *DescribeConferenceAuthInfoRequest) (response *DescribeConferenceAuthInfoResponse, err error) { + response = CreateDescribeConferenceAuthInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeConferenceAuthInfoWithChan invokes the rtc.DescribeConferenceAuthInfo API asynchronously +// api document: https://help.aliyun.com/api/rtc/describeconferenceauthinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeConferenceAuthInfoWithChan(request *DescribeConferenceAuthInfoRequest) (<-chan *DescribeConferenceAuthInfoResponse, <-chan error) { + responseChan := make(chan *DescribeConferenceAuthInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeConferenceAuthInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeConferenceAuthInfoWithCallback invokes the rtc.DescribeConferenceAuthInfo API asynchronously +// api document: https://help.aliyun.com/api/rtc/describeconferenceauthinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeConferenceAuthInfoWithCallback(request *DescribeConferenceAuthInfoRequest, callback func(response *DescribeConferenceAuthInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeConferenceAuthInfoResponse + var err error + defer close(result) + response, err = client.DescribeConferenceAuthInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeConferenceAuthInfoRequest is the request struct for api DescribeConferenceAuthInfo +type DescribeConferenceAuthInfoRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ConferenceId string `position:"Query" name:"ConferenceId"` + AppId string `position:"Query" name:"AppId"` +} + +// DescribeConferenceAuthInfoResponse is the response struct for api DescribeConferenceAuthInfo +type DescribeConferenceAuthInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ConferenceId string `json:"ConferenceId" xml:"ConferenceId"` + AuthInfo AuthInfo `json:"AuthInfo" xml:"AuthInfo"` +} + +// CreateDescribeConferenceAuthInfoRequest creates a request to invoke DescribeConferenceAuthInfo API +func CreateDescribeConferenceAuthInfoRequest() (request *DescribeConferenceAuthInfoRequest) { + request = &DescribeConferenceAuthInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "DescribeConferenceAuthInfo", "rtc", "openAPI") + return +} + +// CreateDescribeConferenceAuthInfoResponse creates a response to parse from DescribeConferenceAuthInfo response +func CreateDescribeConferenceAuthInfoResponse() (response *DescribeConferenceAuthInfoResponse) { + response = &DescribeConferenceAuthInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_real_time_record_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_real_time_record_detail.go new file mode 100644 index 0000000..24b4618 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_real_time_record_detail.go @@ -0,0 +1,107 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRealTimeRecordDetail invokes the rtc.DescribeRealTimeRecordDetail API synchronously +// api document: https://help.aliyun.com/api/rtc/describerealtimerecorddetail.html +func (client *Client) DescribeRealTimeRecordDetail(request *DescribeRealTimeRecordDetailRequest) (response *DescribeRealTimeRecordDetailResponse, err error) { + response = CreateDescribeRealTimeRecordDetailResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRealTimeRecordDetailWithChan invokes the rtc.DescribeRealTimeRecordDetail API asynchronously +// api document: https://help.aliyun.com/api/rtc/describerealtimerecorddetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRealTimeRecordDetailWithChan(request *DescribeRealTimeRecordDetailRequest) (<-chan *DescribeRealTimeRecordDetailResponse, <-chan error) { + responseChan := make(chan *DescribeRealTimeRecordDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRealTimeRecordDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRealTimeRecordDetailWithCallback invokes the rtc.DescribeRealTimeRecordDetail API asynchronously +// api document: https://help.aliyun.com/api/rtc/describerealtimerecorddetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRealTimeRecordDetailWithCallback(request *DescribeRealTimeRecordDetailRequest, callback func(response *DescribeRealTimeRecordDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRealTimeRecordDetailResponse + var err error + defer close(result) + response, err = client.DescribeRealTimeRecordDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRealTimeRecordDetailRequest is the request struct for api DescribeRealTimeRecordDetail +type DescribeRealTimeRecordDetailRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + RecordId string `position:"Query" name:"RecordId"` + AppId string `position:"Query" name:"AppId"` + ChannelId string `position:"Query" name:"ChannelId"` +} + +// DescribeRealTimeRecordDetailResponse is the response struct for api DescribeRealTimeRecordDetail +type DescribeRealTimeRecordDetailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RecordDetailInfos RecordDetailInfosInDescribeRealTimeRecordDetail `json:"RecordDetailInfos" xml:"RecordDetailInfos"` +} + +// CreateDescribeRealTimeRecordDetailRequest creates a request to invoke DescribeRealTimeRecordDetail API +func CreateDescribeRealTimeRecordDetailRequest() (request *DescribeRealTimeRecordDetailRequest) { + request = &DescribeRealTimeRecordDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "DescribeRealTimeRecordDetail", "rtc", "openAPI") + return +} + +// CreateDescribeRealTimeRecordDetailResponse creates a response to parse from DescribeRealTimeRecordDetail response +func CreateDescribeRealTimeRecordDetailResponse() (response *DescribeRealTimeRecordDetailResponse) { + response = &DescribeRealTimeRecordDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_real_time_record_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_real_time_record_list.go new file mode 100644 index 0000000..c62f09c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_real_time_record_list.go @@ -0,0 +1,106 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRealTimeRecordList invokes the rtc.DescribeRealTimeRecordList API synchronously +// api document: https://help.aliyun.com/api/rtc/describerealtimerecordlist.html +func (client *Client) DescribeRealTimeRecordList(request *DescribeRealTimeRecordListRequest) (response *DescribeRealTimeRecordListResponse, err error) { + response = CreateDescribeRealTimeRecordListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRealTimeRecordListWithChan invokes the rtc.DescribeRealTimeRecordList API asynchronously +// api document: https://help.aliyun.com/api/rtc/describerealtimerecordlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRealTimeRecordListWithChan(request *DescribeRealTimeRecordListRequest) (<-chan *DescribeRealTimeRecordListResponse, <-chan error) { + responseChan := make(chan *DescribeRealTimeRecordListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRealTimeRecordList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRealTimeRecordListWithCallback invokes the rtc.DescribeRealTimeRecordList API asynchronously +// api document: https://help.aliyun.com/api/rtc/describerealtimerecordlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRealTimeRecordListWithCallback(request *DescribeRealTimeRecordListRequest, callback func(response *DescribeRealTimeRecordListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRealTimeRecordListResponse + var err error + defer close(result) + response, err = client.DescribeRealTimeRecordList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRealTimeRecordListRequest is the request struct for api DescribeRealTimeRecordList +type DescribeRealTimeRecordListRequest struct { + *requests.RpcRequest + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeRealTimeRecordListResponse is the response struct for api DescribeRealTimeRecordList +type DescribeRealTimeRecordListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CommunicationRecordInfos CommunicationRecordInfosInDescribeRealTimeRecordList `json:"CommunicationRecordInfos" xml:"CommunicationRecordInfos"` +} + +// CreateDescribeRealTimeRecordListRequest creates a request to invoke DescribeRealTimeRecordList API +func CreateDescribeRealTimeRecordListRequest() (request *DescribeRealTimeRecordListRequest) { + request = &DescribeRealTimeRecordListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "DescribeRealTimeRecordList", "rtc", "openAPI") + return +} + +// CreateDescribeRealTimeRecordListResponse creates a response to parse from DescribeRealTimeRecordList response +func CreateDescribeRealTimeRecordListResponse() (response *DescribeRealTimeRecordListResponse) { + response = &DescribeRealTimeRecordListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_record_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_record_detail.go new file mode 100644 index 0000000..c7cd198 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_record_detail.go @@ -0,0 +1,110 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRecordDetail invokes the rtc.DescribeRecordDetail API synchronously +// api document: https://help.aliyun.com/api/rtc/describerecorddetail.html +func (client *Client) DescribeRecordDetail(request *DescribeRecordDetailRequest) (response *DescribeRecordDetailResponse, err error) { + response = CreateDescribeRecordDetailResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRecordDetailWithChan invokes the rtc.DescribeRecordDetail API asynchronously +// api document: https://help.aliyun.com/api/rtc/describerecorddetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRecordDetailWithChan(request *DescribeRecordDetailRequest) (<-chan *DescribeRecordDetailResponse, <-chan error) { + responseChan := make(chan *DescribeRecordDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRecordDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRecordDetailWithCallback invokes the rtc.DescribeRecordDetail API asynchronously +// api document: https://help.aliyun.com/api/rtc/describerecorddetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRecordDetailWithCallback(request *DescribeRecordDetailRequest, callback func(response *DescribeRecordDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRecordDetailResponse + var err error + defer close(result) + response, err = client.DescribeRecordDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRecordDetailRequest is the request struct for api DescribeRecordDetail +type DescribeRecordDetailRequest struct { + *requests.RpcRequest + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + RecordId string `position:"Query" name:"RecordId"` + AppId string `position:"Query" name:"AppId"` + ChannelId string `position:"Query" name:"ChannelId"` +} + +// DescribeRecordDetailResponse is the response struct for api DescribeRecordDetail +type DescribeRecordDetailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Duration Duration `json:"Duration" xml:"Duration"` + RecordDetailInfos RecordDetailInfosInDescribeRecordDetail `json:"RecordDetailInfos" xml:"RecordDetailInfos"` +} + +// CreateDescribeRecordDetailRequest creates a request to invoke DescribeRecordDetail API +func CreateDescribeRecordDetailRequest() (request *DescribeRecordDetailRequest) { + request = &DescribeRecordDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "DescribeRecordDetail", "rtc", "openAPI") + return +} + +// CreateDescribeRecordDetailResponse creates a response to parse from DescribeRecordDetail response +func CreateDescribeRecordDetailResponse() (response *DescribeRecordDetailResponse) { + response = &DescribeRecordDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_record_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_record_list.go new file mode 100644 index 0000000..358eb4c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_record_list.go @@ -0,0 +1,116 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRecordList invokes the rtc.DescribeRecordList API synchronously +// api document: https://help.aliyun.com/api/rtc/describerecordlist.html +func (client *Client) DescribeRecordList(request *DescribeRecordListRequest) (response *DescribeRecordListResponse, err error) { + response = CreateDescribeRecordListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRecordListWithChan invokes the rtc.DescribeRecordList API asynchronously +// api document: https://help.aliyun.com/api/rtc/describerecordlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRecordListWithChan(request *DescribeRecordListRequest) (<-chan *DescribeRecordListResponse, <-chan error) { + responseChan := make(chan *DescribeRecordListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRecordList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRecordListWithCallback invokes the rtc.DescribeRecordList API asynchronously +// api document: https://help.aliyun.com/api/rtc/describerecordlist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRecordListWithCallback(request *DescribeRecordListRequest, callback func(response *DescribeRecordListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRecordListResponse + var err error + defer close(result) + response, err = client.DescribeRecordList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRecordListRequest is the request struct for api DescribeRecordList +type DescribeRecordListRequest struct { + *requests.RpcRequest + SortType string `position:"Query" name:"SortType"` + StartTime string `position:"Query" name:"StartTime"` + ServiceArea string `position:"Query" name:"ServiceArea"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Id string `position:"Query" name:"Id"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + IdType string `position:"Query" name:"IdType"` + PageNo requests.Integer `position:"Query" name:"PageNo"` + AppId string `position:"Query" name:"AppId"` +} + +// DescribeRecordListResponse is the response struct for api DescribeRecordList +type DescribeRecordListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNo int `json:"PageNo" xml:"PageNo"` + TotalCnt int `json:"TotalCnt" xml:"TotalCnt"` + CommunicationRecordInfos CommunicationRecordInfosInDescribeRecordList `json:"CommunicationRecordInfos" xml:"CommunicationRecordInfos"` +} + +// CreateDescribeRecordListRequest creates a request to invoke DescribeRecordList API +func CreateDescribeRecordListRequest() (request *DescribeRecordListRequest) { + request = &DescribeRecordListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "DescribeRecordList", "rtc", "openAPI") + return +} + +// CreateDescribeRecordListResponse creates a response to parse from DescribeRecordList response +func CreateDescribeRecordListResponse() (response *DescribeRecordListResponse) { + response = &DescribeRecordListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_statis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_statis.go new file mode 100644 index 0000000..1872149 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/describe_statis.go @@ -0,0 +1,111 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeStatis invokes the rtc.DescribeStatis API synchronously +// api document: https://help.aliyun.com/api/rtc/describestatis.html +func (client *Client) DescribeStatis(request *DescribeStatisRequest) (response *DescribeStatisResponse, err error) { + response = CreateDescribeStatisResponse() + err = client.DoAction(request, response) + return +} + +// DescribeStatisWithChan invokes the rtc.DescribeStatis API asynchronously +// api document: https://help.aliyun.com/api/rtc/describestatis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeStatisWithChan(request *DescribeStatisRequest) (<-chan *DescribeStatisResponse, <-chan error) { + responseChan := make(chan *DescribeStatisResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeStatis(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeStatisWithCallback invokes the rtc.DescribeStatis API asynchronously +// api document: https://help.aliyun.com/api/rtc/describestatis.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeStatisWithCallback(request *DescribeStatisRequest, callback func(response *DescribeStatisResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeStatisResponse + var err error + defer close(result) + response, err = client.DescribeStatis(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeStatisRequest is the request struct for api DescribeStatis +type DescribeStatisRequest struct { + *requests.RpcRequest + SortType string `position:"Query" name:"SortType"` + StartTime string `position:"Query" name:"StartTime"` + DataType string `position:"Query" name:"DataType"` + ServiceArea string `position:"Query" name:"ServiceArea"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AppId string `position:"Query" name:"AppId"` + Interval string `position:"Query" name:"Interval"` +} + +// DescribeStatisResponse is the response struct for api DescribeStatis +type DescribeStatisResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + StatisInfos StatisInfos `json:"StatisInfos" xml:"StatisInfos"` +} + +// CreateDescribeStatisRequest creates a request to invoke DescribeStatis API +func CreateDescribeStatisRequest() (request *DescribeStatisRequest) { + request = &DescribeStatisRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "DescribeStatis", "rtc", "openAPI") + return +} + +// CreateDescribeStatisResponse creates a response to parse from DescribeStatis response +func CreateDescribeStatisResponse() (response *DescribeStatisResponse) { + response = &DescribeStatisResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/modify_app.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/modify_app.go new file mode 100644 index 0000000..79dc95d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/modify_app.go @@ -0,0 +1,105 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyApp invokes the rtc.ModifyApp API synchronously +// api document: https://help.aliyun.com/api/rtc/modifyapp.html +func (client *Client) ModifyApp(request *ModifyAppRequest) (response *ModifyAppResponse, err error) { + response = CreateModifyAppResponse() + err = client.DoAction(request, response) + return +} + +// ModifyAppWithChan invokes the rtc.ModifyApp API asynchronously +// api document: https://help.aliyun.com/api/rtc/modifyapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyAppWithChan(request *ModifyAppRequest) (<-chan *ModifyAppResponse, <-chan error) { + responseChan := make(chan *ModifyAppResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyApp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyAppWithCallback invokes the rtc.ModifyApp API asynchronously +// api document: https://help.aliyun.com/api/rtc/modifyapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyAppWithCallback(request *ModifyAppRequest, callback func(response *ModifyAppResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyAppResponse + var err error + defer close(result) + response, err = client.ModifyApp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyAppRequest is the request struct for api ModifyApp +type ModifyAppRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AppName string `position:"Query" name:"AppName"` + AppId string `position:"Query" name:"AppId"` +} + +// ModifyAppResponse is the response struct for api ModifyApp +type ModifyAppResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyAppRequest creates a request to invoke ModifyApp API +func CreateModifyAppRequest() (request *ModifyAppRequest) { + request = &ModifyAppRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "ModifyApp", "rtc", "openAPI") + return +} + +// CreateModifyAppResponse creates a response to parse from ModifyApp response +func CreateModifyAppResponse() (response *ModifyAppResponse) { + response = &ModifyAppResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/modify_conference.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/modify_conference.go new file mode 100644 index 0000000..bc8cf01 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/modify_conference.go @@ -0,0 +1,110 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyConference invokes the rtc.ModifyConference API synchronously +// api document: https://help.aliyun.com/api/rtc/modifyconference.html +func (client *Client) ModifyConference(request *ModifyConferenceRequest) (response *ModifyConferenceResponse, err error) { + response = CreateModifyConferenceResponse() + err = client.DoAction(request, response) + return +} + +// ModifyConferenceWithChan invokes the rtc.ModifyConference API asynchronously +// api document: https://help.aliyun.com/api/rtc/modifyconference.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyConferenceWithChan(request *ModifyConferenceRequest) (<-chan *ModifyConferenceResponse, <-chan error) { + responseChan := make(chan *ModifyConferenceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyConference(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyConferenceWithCallback invokes the rtc.ModifyConference API asynchronously +// api document: https://help.aliyun.com/api/rtc/modifyconference.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyConferenceWithCallback(request *ModifyConferenceRequest, callback func(response *ModifyConferenceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyConferenceResponse + var err error + defer close(result) + response, err = client.ModifyConference(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyConferenceRequest is the request struct for api ModifyConference +type ModifyConferenceRequest struct { + *requests.RpcRequest + StartTime string `position:"Query" name:"StartTime"` + Type string `position:"Query" name:"Type"` + ConferenceId string `position:"Query" name:"ConferenceId"` + ConferenceName string `position:"Query" name:"ConferenceName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AppId string `position:"Query" name:"AppId"` + RemindNotice requests.Integer `position:"Query" name:"RemindNotice"` +} + +// ModifyConferenceResponse is the response struct for api ModifyConference +type ModifyConferenceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ConferenceId string `json:"ConferenceId" xml:"ConferenceId"` +} + +// CreateModifyConferenceRequest creates a request to invoke ModifyConference API +func CreateModifyConferenceRequest() (request *ModifyConferenceRequest) { + request = &ModifyConferenceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "ModifyConference", "rtc", "openAPI") + return +} + +// CreateModifyConferenceResponse creates a response to parse from ModifyConference response +func CreateModifyConferenceResponse() (response *ModifyConferenceResponse) { + response = &ModifyConferenceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/mute_audio.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/mute_audio.go new file mode 100644 index 0000000..0d71c4f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/mute_audio.go @@ -0,0 +1,108 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// MuteAudio invokes the rtc.MuteAudio API synchronously +// api document: https://help.aliyun.com/api/rtc/muteaudio.html +func (client *Client) MuteAudio(request *MuteAudioRequest) (response *MuteAudioResponse, err error) { + response = CreateMuteAudioResponse() + err = client.DoAction(request, response) + return +} + +// MuteAudioWithChan invokes the rtc.MuteAudio API asynchronously +// api document: https://help.aliyun.com/api/rtc/muteaudio.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) MuteAudioWithChan(request *MuteAudioRequest) (<-chan *MuteAudioResponse, <-chan error) { + responseChan := make(chan *MuteAudioResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.MuteAudio(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// MuteAudioWithCallback invokes the rtc.MuteAudio API asynchronously +// api document: https://help.aliyun.com/api/rtc/muteaudio.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) MuteAudioWithCallback(request *MuteAudioRequest, callback func(response *MuteAudioResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *MuteAudioResponse + var err error + defer close(result) + response, err = client.MuteAudio(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// MuteAudioRequest is the request struct for api MuteAudio +type MuteAudioRequest struct { + *requests.RpcRequest + ParticipantIds *[]string `position:"Query" name:"ParticipantIds" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ConferenceId string `position:"Query" name:"ConferenceId"` + AppId string `position:"Query" name:"AppId"` +} + +// MuteAudioResponse is the response struct for api MuteAudio +type MuteAudioResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ConferenceId string `json:"ConferenceId" xml:"ConferenceId"` + Participants ParticipantsInMuteAudio `json:"Participants" xml:"Participants"` +} + +// CreateMuteAudioRequest creates a request to invoke MuteAudio API +func CreateMuteAudioRequest() (request *MuteAudioRequest) { + request = &MuteAudioRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "MuteAudio", "rtc", "openAPI") + return +} + +// CreateMuteAudioResponse creates a response to parse from MuteAudio response +func CreateMuteAudioResponse() (response *MuteAudioResponse) { + response = &MuteAudioResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/mute_audio_all.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/mute_audio_all.go new file mode 100644 index 0000000..1822ae5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/mute_audio_all.go @@ -0,0 +1,108 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// MuteAudioAll invokes the rtc.MuteAudioAll API synchronously +// api document: https://help.aliyun.com/api/rtc/muteaudioall.html +func (client *Client) MuteAudioAll(request *MuteAudioAllRequest) (response *MuteAudioAllResponse, err error) { + response = CreateMuteAudioAllResponse() + err = client.DoAction(request, response) + return +} + +// MuteAudioAllWithChan invokes the rtc.MuteAudioAll API asynchronously +// api document: https://help.aliyun.com/api/rtc/muteaudioall.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) MuteAudioAllWithChan(request *MuteAudioAllRequest) (<-chan *MuteAudioAllResponse, <-chan error) { + responseChan := make(chan *MuteAudioAllResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.MuteAudioAll(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// MuteAudioAllWithCallback invokes the rtc.MuteAudioAll API asynchronously +// api document: https://help.aliyun.com/api/rtc/muteaudioall.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) MuteAudioAllWithCallback(request *MuteAudioAllRequest, callback func(response *MuteAudioAllResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *MuteAudioAllResponse + var err error + defer close(result) + response, err = client.MuteAudioAll(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// MuteAudioAllRequest is the request struct for api MuteAudioAll +type MuteAudioAllRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ParticipantId string `position:"Query" name:"ParticipantId"` + ConferenceId string `position:"Query" name:"ConferenceId"` + AppId string `position:"Query" name:"AppId"` +} + +// MuteAudioAllResponse is the response struct for api MuteAudioAll +type MuteAudioAllResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ConferenceId string `json:"ConferenceId" xml:"ConferenceId"` + Participants ParticipantsInMuteAudioAll `json:"Participants" xml:"Participants"` +} + +// CreateMuteAudioAllRequest creates a request to invoke MuteAudioAll API +func CreateMuteAudioAllRequest() (request *MuteAudioAllRequest) { + request = &MuteAudioAllRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "MuteAudioAll", "rtc", "openAPI") + return +} + +// CreateMuteAudioAllResponse creates a response to parse from MuteAudioAll response +func CreateMuteAudioAllResponse() (response *MuteAudioAllResponse) { + response = &MuteAudioAllResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/remove_participants.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/remove_participants.go new file mode 100644 index 0000000..cfc1217 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/remove_participants.go @@ -0,0 +1,108 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveParticipants invokes the rtc.RemoveParticipants API synchronously +// api document: https://help.aliyun.com/api/rtc/removeparticipants.html +func (client *Client) RemoveParticipants(request *RemoveParticipantsRequest) (response *RemoveParticipantsResponse, err error) { + response = CreateRemoveParticipantsResponse() + err = client.DoAction(request, response) + return +} + +// RemoveParticipantsWithChan invokes the rtc.RemoveParticipants API asynchronously +// api document: https://help.aliyun.com/api/rtc/removeparticipants.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveParticipantsWithChan(request *RemoveParticipantsRequest) (<-chan *RemoveParticipantsResponse, <-chan error) { + responseChan := make(chan *RemoveParticipantsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveParticipants(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveParticipantsWithCallback invokes the rtc.RemoveParticipants API asynchronously +// api document: https://help.aliyun.com/api/rtc/removeparticipants.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveParticipantsWithCallback(request *RemoveParticipantsRequest, callback func(response *RemoveParticipantsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveParticipantsResponse + var err error + defer close(result) + response, err = client.RemoveParticipants(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveParticipantsRequest is the request struct for api RemoveParticipants +type RemoveParticipantsRequest struct { + *requests.RpcRequest + ParticipantIds *[]string `position:"Query" name:"ParticipantIds" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ConferenceId string `position:"Query" name:"ConferenceId"` + AppId string `position:"Query" name:"AppId"` +} + +// RemoveParticipantsResponse is the response struct for api RemoveParticipants +type RemoveParticipantsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ConferenceId string `json:"ConferenceId" xml:"ConferenceId"` + Participants ParticipantsInRemoveParticipants `json:"Participants" xml:"Participants"` +} + +// CreateRemoveParticipantsRequest creates a request to invoke RemoveParticipants API +func CreateRemoveParticipantsRequest() (request *RemoveParticipantsRequest) { + request = &RemoveParticipantsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "RemoveParticipants", "rtc", "openAPI") + return +} + +// CreateRemoveParticipantsResponse creates a response to parse from RemoveParticipants response +func CreateRemoveParticipantsResponse() (response *RemoveParticipantsResponse) { + response = &RemoveParticipantsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/remove_terminals.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/remove_terminals.go new file mode 100644 index 0000000..692207a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/remove_terminals.go @@ -0,0 +1,107 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveTerminals invokes the rtc.RemoveTerminals API synchronously +// api document: https://help.aliyun.com/api/rtc/removeterminals.html +func (client *Client) RemoveTerminals(request *RemoveTerminalsRequest) (response *RemoveTerminalsResponse, err error) { + response = CreateRemoveTerminalsResponse() + err = client.DoAction(request, response) + return +} + +// RemoveTerminalsWithChan invokes the rtc.RemoveTerminals API asynchronously +// api document: https://help.aliyun.com/api/rtc/removeterminals.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveTerminalsWithChan(request *RemoveTerminalsRequest) (<-chan *RemoveTerminalsResponse, <-chan error) { + responseChan := make(chan *RemoveTerminalsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveTerminals(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveTerminalsWithCallback invokes the rtc.RemoveTerminals API asynchronously +// api document: https://help.aliyun.com/api/rtc/removeterminals.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveTerminalsWithCallback(request *RemoveTerminalsRequest, callback func(response *RemoveTerminalsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveTerminalsResponse + var err error + defer close(result) + response, err = client.RemoveTerminals(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveTerminalsRequest is the request struct for api RemoveTerminals +type RemoveTerminalsRequest struct { + *requests.RpcRequest + TerminalIds *[]string `position:"Query" name:"TerminalIds" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AppId string `position:"Query" name:"AppId"` + ChannelId string `position:"Query" name:"ChannelId"` +} + +// RemoveTerminalsResponse is the response struct for api RemoveTerminals +type RemoveTerminalsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Terminals Terminals `json:"Terminals" xml:"Terminals"` +} + +// CreateRemoveTerminalsRequest creates a request to invoke RemoveTerminals API +func CreateRemoveTerminalsRequest() (request *RemoveTerminalsRequest) { + request = &RemoveTerminalsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "RemoveTerminals", "rtc", "openAPI") + return +} + +// CreateRemoveTerminalsResponse creates a response to parse from RemoveTerminals response +func CreateRemoveTerminalsResponse() (response *RemoveTerminalsResponse) { + response = &RemoveTerminalsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/start_app.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/start_app.go new file mode 100644 index 0000000..e16fd53 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/start_app.go @@ -0,0 +1,104 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StartApp invokes the rtc.StartApp API synchronously +// api document: https://help.aliyun.com/api/rtc/startapp.html +func (client *Client) StartApp(request *StartAppRequest) (response *StartAppResponse, err error) { + response = CreateStartAppResponse() + err = client.DoAction(request, response) + return +} + +// StartAppWithChan invokes the rtc.StartApp API asynchronously +// api document: https://help.aliyun.com/api/rtc/startapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartAppWithChan(request *StartAppRequest) (<-chan *StartAppResponse, <-chan error) { + responseChan := make(chan *StartAppResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartApp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartAppWithCallback invokes the rtc.StartApp API asynchronously +// api document: https://help.aliyun.com/api/rtc/startapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartAppWithCallback(request *StartAppRequest, callback func(response *StartAppResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartAppResponse + var err error + defer close(result) + response, err = client.StartApp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartAppRequest is the request struct for api StartApp +type StartAppRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AppId string `position:"Query" name:"AppId"` +} + +// StartAppResponse is the response struct for api StartApp +type StartAppResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStartAppRequest creates a request to invoke StartApp API +func CreateStartAppRequest() (request *StartAppRequest) { + request = &StartAppRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "StartApp", "rtc", "openAPI") + return +} + +// CreateStartAppResponse creates a response to parse from StartApp response +func CreateStartAppResponse() (response *StartAppResponse) { + response = &StartAppResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/stop_app.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/stop_app.go new file mode 100644 index 0000000..cf18fcb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/stop_app.go @@ -0,0 +1,104 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StopApp invokes the rtc.StopApp API synchronously +// api document: https://help.aliyun.com/api/rtc/stopapp.html +func (client *Client) StopApp(request *StopAppRequest) (response *StopAppResponse, err error) { + response = CreateStopAppResponse() + err = client.DoAction(request, response) + return +} + +// StopAppWithChan invokes the rtc.StopApp API asynchronously +// api document: https://help.aliyun.com/api/rtc/stopapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopAppWithChan(request *StopAppRequest) (<-chan *StopAppResponse, <-chan error) { + responseChan := make(chan *StopAppResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopApp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopAppWithCallback invokes the rtc.StopApp API asynchronously +// api document: https://help.aliyun.com/api/rtc/stopapp.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopAppWithCallback(request *StopAppRequest, callback func(response *StopAppResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopAppResponse + var err error + defer close(result) + response, err = client.StopApp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopAppRequest is the request struct for api StopApp +type StopAppRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AppId string `position:"Query" name:"AppId"` +} + +// StopAppResponse is the response struct for api StopApp +type StopAppResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStopAppRequest creates a request to invoke StopApp API +func CreateStopAppRequest() (request *StopAppRequest) { + request = &StopAppRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "StopApp", "rtc", "openAPI") + return +} + +// CreateStopAppResponse creates a response to parse from StopApp response +func CreateStopAppResponse() (response *StopAppResponse) { + response = &StopAppResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_app.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_app.go new file mode 100644 index 0000000..f32206a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_app.go @@ -0,0 +1,27 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// App is a nested struct in rtc response +type App struct { + Status int `json:"Status" xml:"Status"` + AppId string `json:"AppId" xml:"AppId"` + AppName string `json:"AppName" xml:"AppName"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + AppType string `json:"AppType" xml:"AppType"` + BillType string `json:"BillType" xml:"BillType"` + ServiceAreas ServiceAreas `json:"ServiceAreas" xml:"ServiceAreas"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_app_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_app_list.go new file mode 100644 index 0000000..8953520 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_app_list.go @@ -0,0 +1,21 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AppList is a nested struct in rtc response +type AppList struct { + App []App `json:"App" xml:"App"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_auth_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_auth_info.go new file mode 100644 index 0000000..e36abe5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_auth_info.go @@ -0,0 +1,23 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AuthInfo is a nested struct in rtc response +type AuthInfo struct { + Key string `json:"Key" xml:"Key"` + Nonce string `json:"Nonce" xml:"Nonce"` + Timestamp int `json:"Timestamp" xml:"Timestamp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_call_areas_in_describe_real_time_record_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_call_areas_in_describe_real_time_record_list.go new file mode 100644 index 0000000..ee06889 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_call_areas_in_describe_real_time_record_list.go @@ -0,0 +1,21 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CallAreasInDescribeRealTimeRecordList is a nested struct in rtc response +type CallAreasInDescribeRealTimeRecordList struct { + CallArea []string `json:"CallArea" xml:"CallArea"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_call_areas_in_describe_record_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_call_areas_in_describe_record_list.go new file mode 100644 index 0000000..e17cd0c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_call_areas_in_describe_record_list.go @@ -0,0 +1,21 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CallAreasInDescribeRecordList is a nested struct in rtc response +type CallAreasInDescribeRecordList struct { + CallArea []string `json:"CallArea" xml:"CallArea"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_channel_statis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_channel_statis.go new file mode 100644 index 0000000..44668e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_channel_statis.go @@ -0,0 +1,21 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ChannelStatis is a nested struct in rtc response +type ChannelStatis struct { + ChannelStatisItem []ChannelStatisItem `json:"ChannelStatisItem" xml:"ChannelStatisItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_channel_statis_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_channel_statis_item.go new file mode 100644 index 0000000..4857768 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_channel_statis_item.go @@ -0,0 +1,23 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ChannelStatisItem is a nested struct in rtc response +type ChannelStatisItem struct { + AccChannelCnt int `json:"AccChannelCnt" xml:"AccChannelCnt"` + ConChannelPeak int `json:"ConChannelPeak" xml:"ConChannelPeak"` + ConChannelPeakTime string `json:"ConChannelPeakTime" xml:"ConChannelPeakTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_communication_record_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_communication_record_info.go new file mode 100644 index 0000000..206e172 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_communication_record_info.go @@ -0,0 +1,28 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CommunicationRecordInfo is a nested struct in rtc response +type CommunicationRecordInfo struct { + Status bool `json:"Status" xml:"Status"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + ChannelId string `json:"ChannelId" xml:"ChannelId"` + TotalUserCnt int `json:"TotalUserCnt" xml:"TotalUserCnt"` + RecordId string `json:"RecordId" xml:"RecordId"` + OnlineUserCnt int `json:"OnlineUserCnt" xml:"OnlineUserCnt"` + CallAreas CallAreasInDescribeRecordList `json:"CallAreas" xml:"CallAreas"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_communication_record_infos_in_describe_real_time_record_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_communication_record_infos_in_describe_real_time_record_list.go new file mode 100644 index 0000000..5d31d33 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_communication_record_infos_in_describe_real_time_record_list.go @@ -0,0 +1,21 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CommunicationRecordInfosInDescribeRealTimeRecordList is a nested struct in rtc response +type CommunicationRecordInfosInDescribeRealTimeRecordList struct { + CommunicationRecordInfo []CommunicationRecordInfo `json:"CommunicationRecordInfo" xml:"CommunicationRecordInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_communication_record_infos_in_describe_record_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_communication_record_infos_in_describe_record_list.go new file mode 100644 index 0000000..b5e54aa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_communication_record_infos_in_describe_record_list.go @@ -0,0 +1,21 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CommunicationRecordInfosInDescribeRecordList is a nested struct in rtc response +type CommunicationRecordInfosInDescribeRecordList struct { + CommunicationRecordInfo []CommunicationRecordInfo `json:"CommunicationRecordInfo" xml:"CommunicationRecordInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_duration.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_duration.go new file mode 100644 index 0000000..dfe9bb0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_duration.go @@ -0,0 +1,25 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Duration is a nested struct in rtc response +type Duration struct { + Sd float64 `json:"Sd" xml:"Sd"` + All float64 `json:"All" xml:"All"` + Fhd float64 `json:"Fhd" xml:"Fhd"` + Audio float64 `json:"Audio" xml:"Audio"` + Hd float64 `json:"Hd" xml:"Hd"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_duration_in_describe_statis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_duration_in_describe_statis.go new file mode 100644 index 0000000..d5a38f0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_duration_in_describe_statis.go @@ -0,0 +1,21 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DurationInDescribeStatis is a nested struct in rtc response +type DurationInDescribeStatis struct { + DurationItem []DurationItem `json:"DurationItem" xml:"DurationItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_duration_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_duration_item.go new file mode 100644 index 0000000..b2ffb1e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_duration_item.go @@ -0,0 +1,25 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DurationItem is a nested struct in rtc response +type DurationItem struct { + TotalDuration float64 `json:"TotalDuration" xml:"TotalDuration"` + AudioDuration float64 `json:"AudioDuration" xml:"AudioDuration"` + SdDuration float64 `json:"SdDuration" xml:"SdDuration"` + HdDuration float64 `json:"HdDuration" xml:"HdDuration"` + FhdDuration float64 `json:"FhdDuration" xml:"FhdDuration"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participant.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participant.go new file mode 100644 index 0000000..4857f3e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participant.go @@ -0,0 +1,23 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Participant is a nested struct in rtc response +type Participant struct { + Message string `json:"Message" xml:"Message"` + Code string `json:"Code" xml:"Code"` + Id string `json:"Id" xml:"Id"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participants_in_mute_audio.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participants_in_mute_audio.go new file mode 100644 index 0000000..64891e7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participants_in_mute_audio.go @@ -0,0 +1,21 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ParticipantsInMuteAudio is a nested struct in rtc response +type ParticipantsInMuteAudio struct { + Participant []Participant `json:"Participant" xml:"Participant"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participants_in_mute_audio_all.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participants_in_mute_audio_all.go new file mode 100644 index 0000000..f6477af --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participants_in_mute_audio_all.go @@ -0,0 +1,21 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ParticipantsInMuteAudioAll is a nested struct in rtc response +type ParticipantsInMuteAudioAll struct { + Participant []Participant `json:"Participant" xml:"Participant"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participants_in_remove_participants.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participants_in_remove_participants.go new file mode 100644 index 0000000..3fbd49d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participants_in_remove_participants.go @@ -0,0 +1,21 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ParticipantsInRemoveParticipants is a nested struct in rtc response +type ParticipantsInRemoveParticipants struct { + Participant []Participant `json:"Participant" xml:"Participant"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participants_in_unmute_audio.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participants_in_unmute_audio.go new file mode 100644 index 0000000..ad237cb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participants_in_unmute_audio.go @@ -0,0 +1,21 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ParticipantsInUnmuteAudio is a nested struct in rtc response +type ParticipantsInUnmuteAudio struct { + Participant []Participant `json:"Participant" xml:"Participant"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participants_in_unmute_audio_all.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participants_in_unmute_audio_all.go new file mode 100644 index 0000000..524ac06 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_participants_in_unmute_audio_all.go @@ -0,0 +1,21 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ParticipantsInUnmuteAudioAll is a nested struct in rtc response +type ParticipantsInUnmuteAudioAll struct { + Participant []Participant `json:"Participant" xml:"Participant"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_record_detail_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_record_detail_info.go new file mode 100644 index 0000000..6cc9c99 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_record_detail_info.go @@ -0,0 +1,25 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordDetailInfo is a nested struct in rtc response +type RecordDetailInfo struct { + Uid string `json:"Uid" xml:"Uid"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DeviceType string `json:"DeviceType" xml:"DeviceType"` + SDKVersion string `json:"SDKVersion" xml:"SDKVersion"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_record_detail_infos_in_describe_real_time_record_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_record_detail_infos_in_describe_real_time_record_detail.go new file mode 100644 index 0000000..48c7599 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_record_detail_infos_in_describe_real_time_record_detail.go @@ -0,0 +1,21 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordDetailInfosInDescribeRealTimeRecordDetail is a nested struct in rtc response +type RecordDetailInfosInDescribeRealTimeRecordDetail struct { + RecordDetailInfo []RecordDetailInfo `json:"RecordDetailInfo" xml:"RecordDetailInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_record_detail_infos_in_describe_record_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_record_detail_infos_in_describe_record_detail.go new file mode 100644 index 0000000..90f180b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_record_detail_infos_in_describe_record_detail.go @@ -0,0 +1,21 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RecordDetailInfosInDescribeRecordDetail is a nested struct in rtc response +type RecordDetailInfosInDescribeRecordDetail struct { + RecordDetailInfo []RecordDetailInfo `json:"RecordDetailInfo" xml:"RecordDetailInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_service_areas.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_service_areas.go new file mode 100644 index 0000000..ccd920e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_service_areas.go @@ -0,0 +1,21 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServiceAreas is a nested struct in rtc response +type ServiceAreas struct { + ServiceArea []string `json:"ServiceArea" xml:"ServiceArea"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_statis_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_statis_info.go new file mode 100644 index 0000000..68348ce --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_statis_info.go @@ -0,0 +1,24 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StatisInfo is a nested struct in rtc response +type StatisInfo struct { + Time string `json:"Time" xml:"Time"` + Duration DurationInDescribeStatis `json:"Duration" xml:"Duration"` + UserStatis UserStatis `json:"UserStatis" xml:"UserStatis"` + ChannelStatis ChannelStatis `json:"ChannelStatis" xml:"ChannelStatis"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_statis_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_statis_infos.go new file mode 100644 index 0000000..3d05101 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_statis_infos.go @@ -0,0 +1,21 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StatisInfos is a nested struct in rtc response +type StatisInfos struct { + StatisInfo []StatisInfo `json:"StatisInfo" xml:"StatisInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_terminal.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_terminal.go new file mode 100644 index 0000000..02846f1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_terminal.go @@ -0,0 +1,23 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Terminal is a nested struct in rtc response +type Terminal struct { + Id string `json:"Id" xml:"Id"` + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_terminals.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_terminals.go new file mode 100644 index 0000000..e99dfc2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_terminals.go @@ -0,0 +1,21 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Terminals is a nested struct in rtc response +type Terminals struct { + Terminal []Terminal `json:"Terminal" xml:"Terminal"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_user_statis.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_user_statis.go new file mode 100644 index 0000000..7d2bfc6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_user_statis.go @@ -0,0 +1,21 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UserStatis is a nested struct in rtc response +type UserStatis struct { + UserStatisItem []UserStatisItem `json:"UserStatisItem" xml:"UserStatisItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_user_statis_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_user_statis_item.go new file mode 100644 index 0000000..96aaa71 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/struct_user_statis_item.go @@ -0,0 +1,23 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UserStatisItem is a nested struct in rtc response +type UserStatisItem struct { + ActiveUserCnt int `json:"ActiveUserCnt" xml:"ActiveUserCnt"` + ConSessionPeak int `json:"ConSessionPeak" xml:"ConSessionPeak"` + ConSessionPeakTime string `json:"ConSessionPeakTime" xml:"ConSessionPeakTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/unmute_audio.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/unmute_audio.go new file mode 100644 index 0000000..2446315 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/unmute_audio.go @@ -0,0 +1,108 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UnmuteAudio invokes the rtc.UnmuteAudio API synchronously +// api document: https://help.aliyun.com/api/rtc/unmuteaudio.html +func (client *Client) UnmuteAudio(request *UnmuteAudioRequest) (response *UnmuteAudioResponse, err error) { + response = CreateUnmuteAudioResponse() + err = client.DoAction(request, response) + return +} + +// UnmuteAudioWithChan invokes the rtc.UnmuteAudio API asynchronously +// api document: https://help.aliyun.com/api/rtc/unmuteaudio.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnmuteAudioWithChan(request *UnmuteAudioRequest) (<-chan *UnmuteAudioResponse, <-chan error) { + responseChan := make(chan *UnmuteAudioResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UnmuteAudio(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UnmuteAudioWithCallback invokes the rtc.UnmuteAudio API asynchronously +// api document: https://help.aliyun.com/api/rtc/unmuteaudio.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnmuteAudioWithCallback(request *UnmuteAudioRequest, callback func(response *UnmuteAudioResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UnmuteAudioResponse + var err error + defer close(result) + response, err = client.UnmuteAudio(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UnmuteAudioRequest is the request struct for api UnmuteAudio +type UnmuteAudioRequest struct { + *requests.RpcRequest + ParticipantIds *[]string `position:"Query" name:"ParticipantIds" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ConferenceId string `position:"Query" name:"ConferenceId"` + AppId string `position:"Query" name:"AppId"` +} + +// UnmuteAudioResponse is the response struct for api UnmuteAudio +type UnmuteAudioResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ConferenceId string `json:"ConferenceId" xml:"ConferenceId"` + Participants ParticipantsInUnmuteAudio `json:"Participants" xml:"Participants"` +} + +// CreateUnmuteAudioRequest creates a request to invoke UnmuteAudio API +func CreateUnmuteAudioRequest() (request *UnmuteAudioRequest) { + request = &UnmuteAudioRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "UnmuteAudio", "rtc", "openAPI") + return +} + +// CreateUnmuteAudioResponse creates a response to parse from UnmuteAudio response +func CreateUnmuteAudioResponse() (response *UnmuteAudioResponse) { + response = &UnmuteAudioResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/unmute_audio_all.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/unmute_audio_all.go new file mode 100644 index 0000000..cfeb1a6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/unmute_audio_all.go @@ -0,0 +1,108 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UnmuteAudioAll invokes the rtc.UnmuteAudioAll API synchronously +// api document: https://help.aliyun.com/api/rtc/unmuteaudioall.html +func (client *Client) UnmuteAudioAll(request *UnmuteAudioAllRequest) (response *UnmuteAudioAllResponse, err error) { + response = CreateUnmuteAudioAllResponse() + err = client.DoAction(request, response) + return +} + +// UnmuteAudioAllWithChan invokes the rtc.UnmuteAudioAll API asynchronously +// api document: https://help.aliyun.com/api/rtc/unmuteaudioall.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnmuteAudioAllWithChan(request *UnmuteAudioAllRequest) (<-chan *UnmuteAudioAllResponse, <-chan error) { + responseChan := make(chan *UnmuteAudioAllResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UnmuteAudioAll(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UnmuteAudioAllWithCallback invokes the rtc.UnmuteAudioAll API asynchronously +// api document: https://help.aliyun.com/api/rtc/unmuteaudioall.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnmuteAudioAllWithCallback(request *UnmuteAudioAllRequest, callback func(response *UnmuteAudioAllResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UnmuteAudioAllResponse + var err error + defer close(result) + response, err = client.UnmuteAudioAll(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UnmuteAudioAllRequest is the request struct for api UnmuteAudioAll +type UnmuteAudioAllRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ParticipantId string `position:"Query" name:"ParticipantId"` + ConferenceId string `position:"Query" name:"ConferenceId"` + AppId string `position:"Query" name:"AppId"` +} + +// UnmuteAudioAllResponse is the response struct for api UnmuteAudioAll +type UnmuteAudioAllResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ConferenceId string `json:"ConferenceId" xml:"ConferenceId"` + Participants ParticipantsInUnmuteAudioAll `json:"Participants" xml:"Participants"` +} + +// CreateUnmuteAudioAllRequest creates a request to invoke UnmuteAudioAll API +func CreateUnmuteAudioAllRequest() (request *UnmuteAudioAllRequest) { + request = &UnmuteAudioAllRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "UnmuteAudioAll", "rtc", "openAPI") + return +} + +// CreateUnmuteAudioAllResponse creates a response to parse from UnmuteAudioAll response +func CreateUnmuteAudioAllResponse() (response *UnmuteAudioAllResponse) { + response = &UnmuteAudioAllResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/update_channel.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/update_channel.go new file mode 100644 index 0000000..769b223 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rtc/update_channel.go @@ -0,0 +1,108 @@ +package rtc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateChannel invokes the rtc.UpdateChannel API synchronously +// api document: https://help.aliyun.com/api/rtc/updatechannel.html +func (client *Client) UpdateChannel(request *UpdateChannelRequest) (response *UpdateChannelResponse, err error) { + response = CreateUpdateChannelResponse() + err = client.DoAction(request, response) + return +} + +// UpdateChannelWithChan invokes the rtc.UpdateChannel API asynchronously +// api document: https://help.aliyun.com/api/rtc/updatechannel.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateChannelWithChan(request *UpdateChannelRequest) (<-chan *UpdateChannelResponse, <-chan error) { + responseChan := make(chan *UpdateChannelResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateChannel(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateChannelWithCallback invokes the rtc.UpdateChannel API asynchronously +// api document: https://help.aliyun.com/api/rtc/updatechannel.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateChannelWithCallback(request *UpdateChannelRequest, callback func(response *UpdateChannelResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateChannelResponse + var err error + defer close(result) + response, err = client.UpdateChannel(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateChannelRequest is the request struct for api UpdateChannel +type UpdateChannelRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Nonce string `position:"Query" name:"Nonce"` + AppId string `position:"Query" name:"AppId"` + ChannelId string `position:"Query" name:"ChannelId"` +} + +// UpdateChannelResponse is the response struct for api UpdateChannel +type UpdateChannelResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Nonce string `json:"Nonce" xml:"Nonce"` + Timestamp int `json:"Timestamp" xml:"Timestamp"` +} + +// CreateUpdateChannelRequest creates a request to invoke UpdateChannel API +func CreateUpdateChannelRequest() (request *UpdateChannelRequest) { + request = &UpdateChannelRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("rtc", "2018-01-11", "UpdateChannel", "rtc", "openAPI") + return +} + +// CreateUpdateChannelResponse creates a response to parse from UpdateChannel response +func CreateUpdateChannelResponse() (response *UpdateChannelResponse) { + response = &UpdateChannelResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/add_scdn_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/add_scdn_domain.go new file mode 100644 index 0000000..f674eb5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/add_scdn_domain.go @@ -0,0 +1,110 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddScdnDomain invokes the scdn.AddScdnDomain API synchronously +// api document: https://help.aliyun.com/api/scdn/addscdndomain.html +func (client *Client) AddScdnDomain(request *AddScdnDomainRequest) (response *AddScdnDomainResponse, err error) { + response = CreateAddScdnDomainResponse() + err = client.DoAction(request, response) + return +} + +// AddScdnDomainWithChan invokes the scdn.AddScdnDomain API asynchronously +// api document: https://help.aliyun.com/api/scdn/addscdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddScdnDomainWithChan(request *AddScdnDomainRequest) (<-chan *AddScdnDomainResponse, <-chan error) { + responseChan := make(chan *AddScdnDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddScdnDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddScdnDomainWithCallback invokes the scdn.AddScdnDomain API asynchronously +// api document: https://help.aliyun.com/api/scdn/addscdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddScdnDomainWithCallback(request *AddScdnDomainRequest, callback func(response *AddScdnDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddScdnDomainResponse + var err error + defer close(result) + response, err = client.AddScdnDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddScdnDomainRequest is the request struct for api AddScdnDomain +type AddScdnDomainRequest struct { + *requests.RpcRequest + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Sources string `position:"Query" name:"Sources"` + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Scope string `position:"Query" name:"Scope"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + CheckUrl string `position:"Query" name:"CheckUrl"` +} + +// AddScdnDomainResponse is the response struct for api AddScdnDomain +type AddScdnDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddScdnDomainRequest creates a request to invoke AddScdnDomain API +func CreateAddScdnDomainRequest() (request *AddScdnDomainRequest) { + request = &AddScdnDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "AddScdnDomain", "", "") + return +} + +// CreateAddScdnDomainResponse creates a response to parse from AddScdnDomain response +func CreateAddScdnDomainResponse() (response *AddScdnDomainResponse) { + response = &AddScdnDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/batch_delete_scdn_domain_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/batch_delete_scdn_domain_configs.go new file mode 100644 index 0000000..bdf24df --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/batch_delete_scdn_domain_configs.go @@ -0,0 +1,107 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// BatchDeleteScdnDomainConfigs invokes the scdn.BatchDeleteScdnDomainConfigs API synchronously +// api document: https://help.aliyun.com/api/scdn/batchdeletescdndomainconfigs.html +func (client *Client) BatchDeleteScdnDomainConfigs(request *BatchDeleteScdnDomainConfigsRequest) (response *BatchDeleteScdnDomainConfigsResponse, err error) { + response = CreateBatchDeleteScdnDomainConfigsResponse() + err = client.DoAction(request, response) + return +} + +// BatchDeleteScdnDomainConfigsWithChan invokes the scdn.BatchDeleteScdnDomainConfigs API asynchronously +// api document: https://help.aliyun.com/api/scdn/batchdeletescdndomainconfigs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BatchDeleteScdnDomainConfigsWithChan(request *BatchDeleteScdnDomainConfigsRequest) (<-chan *BatchDeleteScdnDomainConfigsResponse, <-chan error) { + responseChan := make(chan *BatchDeleteScdnDomainConfigsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BatchDeleteScdnDomainConfigs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BatchDeleteScdnDomainConfigsWithCallback invokes the scdn.BatchDeleteScdnDomainConfigs API asynchronously +// api document: https://help.aliyun.com/api/scdn/batchdeletescdndomainconfigs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BatchDeleteScdnDomainConfigsWithCallback(request *BatchDeleteScdnDomainConfigsRequest, callback func(response *BatchDeleteScdnDomainConfigsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BatchDeleteScdnDomainConfigsResponse + var err error + defer close(result) + response, err = client.BatchDeleteScdnDomainConfigs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BatchDeleteScdnDomainConfigsRequest is the request struct for api BatchDeleteScdnDomainConfigs +type BatchDeleteScdnDomainConfigsRequest struct { + *requests.RpcRequest + FunctionNames string `position:"Query" name:"FunctionNames"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainNames string `position:"Query" name:"DomainNames"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// BatchDeleteScdnDomainConfigsResponse is the response struct for api BatchDeleteScdnDomainConfigs +type BatchDeleteScdnDomainConfigsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateBatchDeleteScdnDomainConfigsRequest creates a request to invoke BatchDeleteScdnDomainConfigs API +func CreateBatchDeleteScdnDomainConfigsRequest() (request *BatchDeleteScdnDomainConfigsRequest) { + request = &BatchDeleteScdnDomainConfigsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "BatchDeleteScdnDomainConfigs", "", "") + return +} + +// CreateBatchDeleteScdnDomainConfigsResponse creates a response to parse from BatchDeleteScdnDomainConfigs response +func CreateBatchDeleteScdnDomainConfigsResponse() (response *BatchDeleteScdnDomainConfigsResponse) { + response = &BatchDeleteScdnDomainConfigsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/check_scdn_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/check_scdn_service.go new file mode 100644 index 0000000..d9801ef --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/check_scdn_service.go @@ -0,0 +1,108 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckScdnService invokes the scdn.CheckScdnService API synchronously +// api document: https://help.aliyun.com/api/scdn/checkscdnservice.html +func (client *Client) CheckScdnService(request *CheckScdnServiceRequest) (response *CheckScdnServiceResponse, err error) { + response = CreateCheckScdnServiceResponse() + err = client.DoAction(request, response) + return +} + +// CheckScdnServiceWithChan invokes the scdn.CheckScdnService API asynchronously +// api document: https://help.aliyun.com/api/scdn/checkscdnservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckScdnServiceWithChan(request *CheckScdnServiceRequest) (<-chan *CheckScdnServiceResponse, <-chan error) { + responseChan := make(chan *CheckScdnServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckScdnService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckScdnServiceWithCallback invokes the scdn.CheckScdnService API asynchronously +// api document: https://help.aliyun.com/api/scdn/checkscdnservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CheckScdnServiceWithCallback(request *CheckScdnServiceRequest, callback func(response *CheckScdnServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckScdnServiceResponse + var err error + defer close(result) + response, err = client.CheckScdnService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckScdnServiceRequest is the request struct for api CheckScdnService +type CheckScdnServiceRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// CheckScdnServiceResponse is the response struct for api CheckScdnService +type CheckScdnServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Enabled bool `json:"Enabled" xml:"Enabled"` + OnService bool `json:"OnService" xml:"OnService"` + InDebt bool `json:"InDebt" xml:"InDebt"` + InDebtOverdue bool `json:"InDebtOverdue" xml:"InDebtOverdue"` +} + +// CreateCheckScdnServiceRequest creates a request to invoke CheckScdnService API +func CreateCheckScdnServiceRequest() (request *CheckScdnServiceRequest) { + request = &CheckScdnServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "CheckScdnService", "", "") + return +} + +// CreateCheckScdnServiceResponse creates a response to parse from CheckScdnService response +func CreateCheckScdnServiceResponse() (response *CheckScdnServiceResponse) { + response = &CheckScdnServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/client.go new file mode 100644 index 0000000..852d582 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/client.go @@ -0,0 +1,81 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/delete_scdn_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/delete_scdn_domain.go new file mode 100644 index 0000000..59f0aed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/delete_scdn_domain.go @@ -0,0 +1,107 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteScdnDomain invokes the scdn.DeleteScdnDomain API synchronously +// api document: https://help.aliyun.com/api/scdn/deletescdndomain.html +func (client *Client) DeleteScdnDomain(request *DeleteScdnDomainRequest) (response *DeleteScdnDomainResponse, err error) { + response = CreateDeleteScdnDomainResponse() + err = client.DoAction(request, response) + return +} + +// DeleteScdnDomainWithChan invokes the scdn.DeleteScdnDomain API asynchronously +// api document: https://help.aliyun.com/api/scdn/deletescdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteScdnDomainWithChan(request *DeleteScdnDomainRequest) (<-chan *DeleteScdnDomainResponse, <-chan error) { + responseChan := make(chan *DeleteScdnDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteScdnDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteScdnDomainWithCallback invokes the scdn.DeleteScdnDomain API asynchronously +// api document: https://help.aliyun.com/api/scdn/deletescdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteScdnDomainWithCallback(request *DeleteScdnDomainRequest, callback func(response *DeleteScdnDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteScdnDomainResponse + var err error + defer close(result) + response, err = client.DeleteScdnDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteScdnDomainRequest is the request struct for api DeleteScdnDomain +type DeleteScdnDomainRequest struct { + *requests.RpcRequest + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteScdnDomainResponse is the response struct for api DeleteScdnDomain +type DeleteScdnDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteScdnDomainRequest creates a request to invoke DeleteScdnDomain API +func CreateDeleteScdnDomainRequest() (request *DeleteScdnDomainRequest) { + request = &DeleteScdnDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DeleteScdnDomain", "", "") + return +} + +// CreateDeleteScdnDomainResponse creates a response to parse from DeleteScdnDomain response +func CreateDeleteScdnDomainResponse() (response *DeleteScdnDomainResponse) { + response = &DeleteScdnDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_certificate_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_certificate_detail.go new file mode 100644 index 0000000..0305864 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_certificate_detail.go @@ -0,0 +1,109 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScdnCertificateDetail invokes the scdn.DescribeScdnCertificateDetail API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdncertificatedetail.html +func (client *Client) DescribeScdnCertificateDetail(request *DescribeScdnCertificateDetailRequest) (response *DescribeScdnCertificateDetailResponse, err error) { + response = CreateDescribeScdnCertificateDetailResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnCertificateDetailWithChan invokes the scdn.DescribeScdnCertificateDetail API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdncertificatedetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnCertificateDetailWithChan(request *DescribeScdnCertificateDetailRequest) (<-chan *DescribeScdnCertificateDetailResponse, <-chan error) { + responseChan := make(chan *DescribeScdnCertificateDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnCertificateDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnCertificateDetailWithCallback invokes the scdn.DescribeScdnCertificateDetail API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdncertificatedetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnCertificateDetailWithCallback(request *DescribeScdnCertificateDetailRequest, callback func(response *DescribeScdnCertificateDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnCertificateDetailResponse + var err error + defer close(result) + response, err = client.DescribeScdnCertificateDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnCertificateDetailRequest is the request struct for api DescribeScdnCertificateDetail +type DescribeScdnCertificateDetailRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + CertName string `position:"Query" name:"CertName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeScdnCertificateDetailResponse is the response struct for api DescribeScdnCertificateDetail +type DescribeScdnCertificateDetailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Cert string `json:"Cert" xml:"Cert"` + Key string `json:"Key" xml:"Key"` + CertId int `json:"CertId" xml:"CertId"` + CertName string `json:"CertName" xml:"CertName"` +} + +// CreateDescribeScdnCertificateDetailRequest creates a request to invoke DescribeScdnCertificateDetail API +func CreateDescribeScdnCertificateDetailRequest() (request *DescribeScdnCertificateDetailRequest) { + request = &DescribeScdnCertificateDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnCertificateDetail", "", "") + return +} + +// CreateDescribeScdnCertificateDetailResponse creates a response to parse from DescribeScdnCertificateDetail response +func CreateDescribeScdnCertificateDetailResponse() (response *DescribeScdnCertificateDetailResponse) { + response = &DescribeScdnCertificateDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_certificate_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_certificate_list.go new file mode 100644 index 0000000..2003e5b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_certificate_list.go @@ -0,0 +1,106 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScdnCertificateList invokes the scdn.DescribeScdnCertificateList API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdncertificatelist.html +func (client *Client) DescribeScdnCertificateList(request *DescribeScdnCertificateListRequest) (response *DescribeScdnCertificateListResponse, err error) { + response = CreateDescribeScdnCertificateListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnCertificateListWithChan invokes the scdn.DescribeScdnCertificateList API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdncertificatelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnCertificateListWithChan(request *DescribeScdnCertificateListRequest) (<-chan *DescribeScdnCertificateListResponse, <-chan error) { + responseChan := make(chan *DescribeScdnCertificateListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnCertificateList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnCertificateListWithCallback invokes the scdn.DescribeScdnCertificateList API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdncertificatelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnCertificateListWithCallback(request *DescribeScdnCertificateListRequest, callback func(response *DescribeScdnCertificateListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnCertificateListResponse + var err error + defer close(result) + response, err = client.DescribeScdnCertificateList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnCertificateListRequest is the request struct for api DescribeScdnCertificateList +type DescribeScdnCertificateListRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeScdnCertificateListResponse is the response struct for api DescribeScdnCertificateList +type DescribeScdnCertificateListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CertificateListModel CertificateListModel `json:"CertificateListModel" xml:"CertificateListModel"` +} + +// CreateDescribeScdnCertificateListRequest creates a request to invoke DescribeScdnCertificateList API +func CreateDescribeScdnCertificateListRequest() (request *DescribeScdnCertificateListRequest) { + request = &DescribeScdnCertificateListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnCertificateList", "", "") + return +} + +// CreateDescribeScdnCertificateListResponse creates a response to parse from DescribeScdnCertificateList response +func CreateDescribeScdnCertificateListResponse() (response *DescribeScdnCertificateListResponse) { + response = &DescribeScdnCertificateListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_bps_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_bps_data.go new file mode 100644 index 0000000..a5b68ab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_bps_data.go @@ -0,0 +1,116 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScdnDomainBpsData invokes the scdn.DescribeScdnDomainBpsData API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainbpsdata.html +func (client *Client) DescribeScdnDomainBpsData(request *DescribeScdnDomainBpsDataRequest) (response *DescribeScdnDomainBpsDataResponse, err error) { + response = CreateDescribeScdnDomainBpsDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnDomainBpsDataWithChan invokes the scdn.DescribeScdnDomainBpsData API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainbpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainBpsDataWithChan(request *DescribeScdnDomainBpsDataRequest) (<-chan *DescribeScdnDomainBpsDataResponse, <-chan error) { + responseChan := make(chan *DescribeScdnDomainBpsDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnDomainBpsData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnDomainBpsDataWithCallback invokes the scdn.DescribeScdnDomainBpsData API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainbpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainBpsDataWithCallback(request *DescribeScdnDomainBpsDataRequest, callback func(response *DescribeScdnDomainBpsDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnDomainBpsDataResponse + var err error + defer close(result) + response, err = client.DescribeScdnDomainBpsData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnDomainBpsDataRequest is the request struct for api DescribeScdnDomainBpsData +type DescribeScdnDomainBpsDataRequest struct { + *requests.RpcRequest + LocationNameEn string `position:"Query" name:"LocationNameEn"` + StartTime string `position:"Query" name:"StartTime"` + IspNameEn string `position:"Query" name:"IspNameEn"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Version string `position:"Query" name:"Version"` + Interval string `position:"Query" name:"Interval"` +} + +// DescribeScdnDomainBpsDataResponse is the response struct for api DescribeScdnDomainBpsData +type DescribeScdnDomainBpsDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + BpsDataPerInterval BpsDataPerInterval `json:"BpsDataPerInterval" xml:"BpsDataPerInterval"` +} + +// CreateDescribeScdnDomainBpsDataRequest creates a request to invoke DescribeScdnDomainBpsData API +func CreateDescribeScdnDomainBpsDataRequest() (request *DescribeScdnDomainBpsDataRequest) { + request = &DescribeScdnDomainBpsDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnDomainBpsData", "", "") + return +} + +// CreateDescribeScdnDomainBpsDataResponse creates a response to parse from DescribeScdnDomainBpsData response +func CreateDescribeScdnDomainBpsDataResponse() (response *DescribeScdnDomainBpsDataResponse) { + response = &DescribeScdnDomainBpsDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_certificate_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_certificate_info.go new file mode 100644 index 0000000..5cc7ae9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_certificate_info.go @@ -0,0 +1,105 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScdnDomainCertificateInfo invokes the scdn.DescribeScdnDomainCertificateInfo API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomaincertificateinfo.html +func (client *Client) DescribeScdnDomainCertificateInfo(request *DescribeScdnDomainCertificateInfoRequest) (response *DescribeScdnDomainCertificateInfoResponse, err error) { + response = CreateDescribeScdnDomainCertificateInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnDomainCertificateInfoWithChan invokes the scdn.DescribeScdnDomainCertificateInfo API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomaincertificateinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainCertificateInfoWithChan(request *DescribeScdnDomainCertificateInfoRequest) (<-chan *DescribeScdnDomainCertificateInfoResponse, <-chan error) { + responseChan := make(chan *DescribeScdnDomainCertificateInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnDomainCertificateInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnDomainCertificateInfoWithCallback invokes the scdn.DescribeScdnDomainCertificateInfo API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomaincertificateinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainCertificateInfoWithCallback(request *DescribeScdnDomainCertificateInfoRequest, callback func(response *DescribeScdnDomainCertificateInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnDomainCertificateInfoResponse + var err error + defer close(result) + response, err = client.DescribeScdnDomainCertificateInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnDomainCertificateInfoRequest is the request struct for api DescribeScdnDomainCertificateInfo +type DescribeScdnDomainCertificateInfoRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeScdnDomainCertificateInfoResponse is the response struct for api DescribeScdnDomainCertificateInfo +type DescribeScdnDomainCertificateInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CertInfos CertInfos `json:"CertInfos" xml:"CertInfos"` +} + +// CreateDescribeScdnDomainCertificateInfoRequest creates a request to invoke DescribeScdnDomainCertificateInfo API +func CreateDescribeScdnDomainCertificateInfoRequest() (request *DescribeScdnDomainCertificateInfoRequest) { + request = &DescribeScdnDomainCertificateInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnDomainCertificateInfo", "", "") + return +} + +// CreateDescribeScdnDomainCertificateInfoResponse creates a response to parse from DescribeScdnDomainCertificateInfo response +func CreateDescribeScdnDomainCertificateInfoResponse() (response *DescribeScdnDomainCertificateInfoResponse) { + response = &DescribeScdnDomainCertificateInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_cname.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_cname.go new file mode 100644 index 0000000..dff4616 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_cname.go @@ -0,0 +1,105 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScdnDomainCname invokes the scdn.DescribeScdnDomainCname API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomaincname.html +func (client *Client) DescribeScdnDomainCname(request *DescribeScdnDomainCnameRequest) (response *DescribeScdnDomainCnameResponse, err error) { + response = CreateDescribeScdnDomainCnameResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnDomainCnameWithChan invokes the scdn.DescribeScdnDomainCname API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomaincname.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainCnameWithChan(request *DescribeScdnDomainCnameRequest) (<-chan *DescribeScdnDomainCnameResponse, <-chan error) { + responseChan := make(chan *DescribeScdnDomainCnameResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnDomainCname(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnDomainCnameWithCallback invokes the scdn.DescribeScdnDomainCname API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomaincname.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainCnameWithCallback(request *DescribeScdnDomainCnameRequest, callback func(response *DescribeScdnDomainCnameResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnDomainCnameResponse + var err error + defer close(result) + response, err = client.DescribeScdnDomainCname(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnDomainCnameRequest is the request struct for api DescribeScdnDomainCname +type DescribeScdnDomainCnameRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeScdnDomainCnameResponse is the response struct for api DescribeScdnDomainCname +type DescribeScdnDomainCnameResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CnameDatas CnameDatas `json:"CnameDatas" xml:"CnameDatas"` +} + +// CreateDescribeScdnDomainCnameRequest creates a request to invoke DescribeScdnDomainCname API +func CreateDescribeScdnDomainCnameRequest() (request *DescribeScdnDomainCnameRequest) { + request = &DescribeScdnDomainCnameRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnDomainCname", "", "") + return +} + +// CreateDescribeScdnDomainCnameResponse creates a response to parse from DescribeScdnDomainCname response +func CreateDescribeScdnDomainCnameResponse() (response *DescribeScdnDomainCnameResponse) { + response = &DescribeScdnDomainCnameResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_configs.go new file mode 100644 index 0000000..b8311e9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_configs.go @@ -0,0 +1,107 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScdnDomainConfigs invokes the scdn.DescribeScdnDomainConfigs API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainconfigs.html +func (client *Client) DescribeScdnDomainConfigs(request *DescribeScdnDomainConfigsRequest) (response *DescribeScdnDomainConfigsResponse, err error) { + response = CreateDescribeScdnDomainConfigsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnDomainConfigsWithChan invokes the scdn.DescribeScdnDomainConfigs API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainconfigs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainConfigsWithChan(request *DescribeScdnDomainConfigsRequest) (<-chan *DescribeScdnDomainConfigsResponse, <-chan error) { + responseChan := make(chan *DescribeScdnDomainConfigsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnDomainConfigs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnDomainConfigsWithCallback invokes the scdn.DescribeScdnDomainConfigs API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainconfigs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainConfigsWithCallback(request *DescribeScdnDomainConfigsRequest, callback func(response *DescribeScdnDomainConfigsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnDomainConfigsResponse + var err error + defer close(result) + response, err = client.DescribeScdnDomainConfigs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnDomainConfigsRequest is the request struct for api DescribeScdnDomainConfigs +type DescribeScdnDomainConfigsRequest struct { + *requests.RpcRequest + FunctionNames string `position:"Query" name:"FunctionNames"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeScdnDomainConfigsResponse is the response struct for api DescribeScdnDomainConfigs +type DescribeScdnDomainConfigsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainConfigs DomainConfigs `json:"DomainConfigs" xml:"DomainConfigs"` +} + +// CreateDescribeScdnDomainConfigsRequest creates a request to invoke DescribeScdnDomainConfigs API +func CreateDescribeScdnDomainConfigsRequest() (request *DescribeScdnDomainConfigsRequest) { + request = &DescribeScdnDomainConfigsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnDomainConfigs", "", "") + return +} + +// CreateDescribeScdnDomainConfigsResponse creates a response to parse from DescribeScdnDomainConfigs response +func CreateDescribeScdnDomainConfigsResponse() (response *DescribeScdnDomainConfigsResponse) { + response = &DescribeScdnDomainConfigsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_detail.go new file mode 100644 index 0000000..44a7b7a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_detail.go @@ -0,0 +1,106 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScdnDomainDetail invokes the scdn.DescribeScdnDomainDetail API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomaindetail.html +func (client *Client) DescribeScdnDomainDetail(request *DescribeScdnDomainDetailRequest) (response *DescribeScdnDomainDetailResponse, err error) { + response = CreateDescribeScdnDomainDetailResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnDomainDetailWithChan invokes the scdn.DescribeScdnDomainDetail API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomaindetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainDetailWithChan(request *DescribeScdnDomainDetailRequest) (<-chan *DescribeScdnDomainDetailResponse, <-chan error) { + responseChan := make(chan *DescribeScdnDomainDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnDomainDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnDomainDetailWithCallback invokes the scdn.DescribeScdnDomainDetail API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomaindetail.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainDetailWithCallback(request *DescribeScdnDomainDetailRequest, callback func(response *DescribeScdnDomainDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnDomainDetailResponse + var err error + defer close(result) + response, err = client.DescribeScdnDomainDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnDomainDetailRequest is the request struct for api DescribeScdnDomainDetail +type DescribeScdnDomainDetailRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeScdnDomainDetailResponse is the response struct for api DescribeScdnDomainDetail +type DescribeScdnDomainDetailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainDetail DomainDetail `json:"DomainDetail" xml:"DomainDetail"` +} + +// CreateDescribeScdnDomainDetailRequest creates a request to invoke DescribeScdnDomainDetail API +func CreateDescribeScdnDomainDetailRequest() (request *DescribeScdnDomainDetailRequest) { + request = &DescribeScdnDomainDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnDomainDetail", "", "") + return +} + +// CreateDescribeScdnDomainDetailResponse creates a response to parse from DescribeScdnDomainDetail response +func CreateDescribeScdnDomainDetailResponse() (response *DescribeScdnDomainDetailResponse) { + response = &DescribeScdnDomainDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_hit_rate_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_hit_rate_data.go new file mode 100644 index 0000000..afd97cb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_hit_rate_data.go @@ -0,0 +1,112 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScdnDomainHitRateData invokes the scdn.DescribeScdnDomainHitRateData API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainhitratedata.html +func (client *Client) DescribeScdnDomainHitRateData(request *DescribeScdnDomainHitRateDataRequest) (response *DescribeScdnDomainHitRateDataResponse, err error) { + response = CreateDescribeScdnDomainHitRateDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnDomainHitRateDataWithChan invokes the scdn.DescribeScdnDomainHitRateData API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainhitratedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainHitRateDataWithChan(request *DescribeScdnDomainHitRateDataRequest) (<-chan *DescribeScdnDomainHitRateDataResponse, <-chan error) { + responseChan := make(chan *DescribeScdnDomainHitRateDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnDomainHitRateData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnDomainHitRateDataWithCallback invokes the scdn.DescribeScdnDomainHitRateData API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainhitratedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainHitRateDataWithCallback(request *DescribeScdnDomainHitRateDataRequest, callback func(response *DescribeScdnDomainHitRateDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnDomainHitRateDataResponse + var err error + defer close(result) + response, err = client.DescribeScdnDomainHitRateData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnDomainHitRateDataRequest is the request struct for api DescribeScdnDomainHitRateData +type DescribeScdnDomainHitRateDataRequest struct { + *requests.RpcRequest + StartTime string `position:"Query" name:"StartTime"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Interval string `position:"Query" name:"Interval"` +} + +// DescribeScdnDomainHitRateDataResponse is the response struct for api DescribeScdnDomainHitRateData +type DescribeScdnDomainHitRateDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + HitRatePerInterval HitRatePerInterval `json:"HitRatePerInterval" xml:"HitRatePerInterval"` +} + +// CreateDescribeScdnDomainHitRateDataRequest creates a request to invoke DescribeScdnDomainHitRateData API +func CreateDescribeScdnDomainHitRateDataRequest() (request *DescribeScdnDomainHitRateDataRequest) { + request = &DescribeScdnDomainHitRateDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnDomainHitRateData", "", "") + return +} + +// CreateDescribeScdnDomainHitRateDataResponse creates a response to parse from DescribeScdnDomainHitRateData response +func CreateDescribeScdnDomainHitRateDataResponse() (response *DescribeScdnDomainHitRateDataResponse) { + response = &DescribeScdnDomainHitRateDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_http_code_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_http_code_data.go new file mode 100644 index 0000000..28a7326 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_http_code_data.go @@ -0,0 +1,114 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScdnDomainHttpCodeData invokes the scdn.DescribeScdnDomainHttpCodeData API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainhttpcodedata.html +func (client *Client) DescribeScdnDomainHttpCodeData(request *DescribeScdnDomainHttpCodeDataRequest) (response *DescribeScdnDomainHttpCodeDataResponse, err error) { + response = CreateDescribeScdnDomainHttpCodeDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnDomainHttpCodeDataWithChan invokes the scdn.DescribeScdnDomainHttpCodeData API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainhttpcodedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainHttpCodeDataWithChan(request *DescribeScdnDomainHttpCodeDataRequest) (<-chan *DescribeScdnDomainHttpCodeDataResponse, <-chan error) { + responseChan := make(chan *DescribeScdnDomainHttpCodeDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnDomainHttpCodeData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnDomainHttpCodeDataWithCallback invokes the scdn.DescribeScdnDomainHttpCodeData API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainhttpcodedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainHttpCodeDataWithCallback(request *DescribeScdnDomainHttpCodeDataRequest, callback func(response *DescribeScdnDomainHttpCodeDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnDomainHttpCodeDataResponse + var err error + defer close(result) + response, err = client.DescribeScdnDomainHttpCodeData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnDomainHttpCodeDataRequest is the request struct for api DescribeScdnDomainHttpCodeData +type DescribeScdnDomainHttpCodeDataRequest struct { + *requests.RpcRequest + LocationNameEn string `position:"Query" name:"LocationNameEn"` + StartTime string `position:"Query" name:"StartTime"` + IspNameEn string `position:"Query" name:"IspNameEn"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Interval string `position:"Query" name:"Interval"` +} + +// DescribeScdnDomainHttpCodeDataResponse is the response struct for api DescribeScdnDomainHttpCodeData +type DescribeScdnDomainHttpCodeDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + DataPerInterval DataPerInterval `json:"DataPerInterval" xml:"DataPerInterval"` +} + +// CreateDescribeScdnDomainHttpCodeDataRequest creates a request to invoke DescribeScdnDomainHttpCodeData API +func CreateDescribeScdnDomainHttpCodeDataRequest() (request *DescribeScdnDomainHttpCodeDataRequest) { + request = &DescribeScdnDomainHttpCodeDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnDomainHttpCodeData", "", "") + return +} + +// CreateDescribeScdnDomainHttpCodeDataResponse creates a response to parse from DescribeScdnDomainHttpCodeData response +func CreateDescribeScdnDomainHttpCodeDataResponse() (response *DescribeScdnDomainHttpCodeDataResponse) { + response = &DescribeScdnDomainHttpCodeDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_log.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_log.go new file mode 100644 index 0000000..9c949c2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_log.go @@ -0,0 +1,110 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScdnDomainLog invokes the scdn.DescribeScdnDomainLog API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainlog.html +func (client *Client) DescribeScdnDomainLog(request *DescribeScdnDomainLogRequest) (response *DescribeScdnDomainLogResponse, err error) { + response = CreateDescribeScdnDomainLogResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnDomainLogWithChan invokes the scdn.DescribeScdnDomainLog API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainlog.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainLogWithChan(request *DescribeScdnDomainLogRequest) (<-chan *DescribeScdnDomainLogResponse, <-chan error) { + responseChan := make(chan *DescribeScdnDomainLogResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnDomainLog(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnDomainLogWithCallback invokes the scdn.DescribeScdnDomainLog API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainlog.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainLogWithCallback(request *DescribeScdnDomainLogRequest, callback func(response *DescribeScdnDomainLogResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnDomainLogResponse + var err error + defer close(result) + response, err = client.DescribeScdnDomainLog(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnDomainLogRequest is the request struct for api DescribeScdnDomainLog +type DescribeScdnDomainLogRequest struct { + *requests.RpcRequest + StartTime string `position:"Query" name:"StartTime"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeScdnDomainLogResponse is the response struct for api DescribeScdnDomainLog +type DescribeScdnDomainLogResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + DomainLogDetails DomainLogDetails `json:"DomainLogDetails" xml:"DomainLogDetails"` +} + +// CreateDescribeScdnDomainLogRequest creates a request to invoke DescribeScdnDomainLog API +func CreateDescribeScdnDomainLogRequest() (request *DescribeScdnDomainLogRequest) { + request = &DescribeScdnDomainLogRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnDomainLog", "", "") + return +} + +// CreateDescribeScdnDomainLogResponse creates a response to parse from DescribeScdnDomainLog response +func CreateDescribeScdnDomainLogResponse() (response *DescribeScdnDomainLogResponse) { + response = &DescribeScdnDomainLogResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_origin_bps_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_origin_bps_data.go new file mode 100644 index 0000000..b076d23 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_origin_bps_data.go @@ -0,0 +1,114 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScdnDomainOriginBpsData invokes the scdn.DescribeScdnDomainOriginBpsData API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainoriginbpsdata.html +func (client *Client) DescribeScdnDomainOriginBpsData(request *DescribeScdnDomainOriginBpsDataRequest) (response *DescribeScdnDomainOriginBpsDataResponse, err error) { + response = CreateDescribeScdnDomainOriginBpsDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnDomainOriginBpsDataWithChan invokes the scdn.DescribeScdnDomainOriginBpsData API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainoriginbpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainOriginBpsDataWithChan(request *DescribeScdnDomainOriginBpsDataRequest) (<-chan *DescribeScdnDomainOriginBpsDataResponse, <-chan error) { + responseChan := make(chan *DescribeScdnDomainOriginBpsDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnDomainOriginBpsData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnDomainOriginBpsDataWithCallback invokes the scdn.DescribeScdnDomainOriginBpsData API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainoriginbpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainOriginBpsDataWithCallback(request *DescribeScdnDomainOriginBpsDataRequest, callback func(response *DescribeScdnDomainOriginBpsDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnDomainOriginBpsDataResponse + var err error + defer close(result) + response, err = client.DescribeScdnDomainOriginBpsData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnDomainOriginBpsDataRequest is the request struct for api DescribeScdnDomainOriginBpsData +type DescribeScdnDomainOriginBpsDataRequest struct { + *requests.RpcRequest + StartTime string `position:"Query" name:"StartTime"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Version string `position:"Query" name:"Version"` + Interval string `position:"Query" name:"Interval"` +} + +// DescribeScdnDomainOriginBpsDataResponse is the response struct for api DescribeScdnDomainOriginBpsData +type DescribeScdnDomainOriginBpsDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + OriginBpsDataPerInterval OriginBpsDataPerInterval `json:"OriginBpsDataPerInterval" xml:"OriginBpsDataPerInterval"` +} + +// CreateDescribeScdnDomainOriginBpsDataRequest creates a request to invoke DescribeScdnDomainOriginBpsData API +func CreateDescribeScdnDomainOriginBpsDataRequest() (request *DescribeScdnDomainOriginBpsDataRequest) { + request = &DescribeScdnDomainOriginBpsDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnDomainOriginBpsData", "", "") + return +} + +// CreateDescribeScdnDomainOriginBpsDataResponse creates a response to parse from DescribeScdnDomainOriginBpsData response +func CreateDescribeScdnDomainOriginBpsDataResponse() (response *DescribeScdnDomainOriginBpsDataResponse) { + response = &DescribeScdnDomainOriginBpsDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_origin_traffic_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_origin_traffic_data.go new file mode 100644 index 0000000..4251e16 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_origin_traffic_data.go @@ -0,0 +1,114 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScdnDomainOriginTrafficData invokes the scdn.DescribeScdnDomainOriginTrafficData API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainorigintrafficdata.html +func (client *Client) DescribeScdnDomainOriginTrafficData(request *DescribeScdnDomainOriginTrafficDataRequest) (response *DescribeScdnDomainOriginTrafficDataResponse, err error) { + response = CreateDescribeScdnDomainOriginTrafficDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnDomainOriginTrafficDataWithChan invokes the scdn.DescribeScdnDomainOriginTrafficData API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainorigintrafficdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainOriginTrafficDataWithChan(request *DescribeScdnDomainOriginTrafficDataRequest) (<-chan *DescribeScdnDomainOriginTrafficDataResponse, <-chan error) { + responseChan := make(chan *DescribeScdnDomainOriginTrafficDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnDomainOriginTrafficData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnDomainOriginTrafficDataWithCallback invokes the scdn.DescribeScdnDomainOriginTrafficData API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainorigintrafficdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainOriginTrafficDataWithCallback(request *DescribeScdnDomainOriginTrafficDataRequest, callback func(response *DescribeScdnDomainOriginTrafficDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnDomainOriginTrafficDataResponse + var err error + defer close(result) + response, err = client.DescribeScdnDomainOriginTrafficData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnDomainOriginTrafficDataRequest is the request struct for api DescribeScdnDomainOriginTrafficData +type DescribeScdnDomainOriginTrafficDataRequest struct { + *requests.RpcRequest + StartTime string `position:"Query" name:"StartTime"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Version string `position:"Query" name:"Version"` + Interval string `position:"Query" name:"Interval"` +} + +// DescribeScdnDomainOriginTrafficDataResponse is the response struct for api DescribeScdnDomainOriginTrafficData +type DescribeScdnDomainOriginTrafficDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + OriginTrafficDataPerInterval OriginTrafficDataPerInterval `json:"OriginTrafficDataPerInterval" xml:"OriginTrafficDataPerInterval"` +} + +// CreateDescribeScdnDomainOriginTrafficDataRequest creates a request to invoke DescribeScdnDomainOriginTrafficData API +func CreateDescribeScdnDomainOriginTrafficDataRequest() (request *DescribeScdnDomainOriginTrafficDataRequest) { + request = &DescribeScdnDomainOriginTrafficDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnDomainOriginTrafficData", "", "") + return +} + +// CreateDescribeScdnDomainOriginTrafficDataResponse creates a response to parse from DescribeScdnDomainOriginTrafficData response +func CreateDescribeScdnDomainOriginTrafficDataResponse() (response *DescribeScdnDomainOriginTrafficDataResponse) { + response = &DescribeScdnDomainOriginTrafficDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_qps_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_qps_data.go new file mode 100644 index 0000000..403b056 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_qps_data.go @@ -0,0 +1,114 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScdnDomainQpsData invokes the scdn.DescribeScdnDomainQpsData API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainqpsdata.html +func (client *Client) DescribeScdnDomainQpsData(request *DescribeScdnDomainQpsDataRequest) (response *DescribeScdnDomainQpsDataResponse, err error) { + response = CreateDescribeScdnDomainQpsDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnDomainQpsDataWithChan invokes the scdn.DescribeScdnDomainQpsData API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainqpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainQpsDataWithChan(request *DescribeScdnDomainQpsDataRequest) (<-chan *DescribeScdnDomainQpsDataResponse, <-chan error) { + responseChan := make(chan *DescribeScdnDomainQpsDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnDomainQpsData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnDomainQpsDataWithCallback invokes the scdn.DescribeScdnDomainQpsData API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomainqpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainQpsDataWithCallback(request *DescribeScdnDomainQpsDataRequest, callback func(response *DescribeScdnDomainQpsDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnDomainQpsDataResponse + var err error + defer close(result) + response, err = client.DescribeScdnDomainQpsData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnDomainQpsDataRequest is the request struct for api DescribeScdnDomainQpsData +type DescribeScdnDomainQpsDataRequest struct { + *requests.RpcRequest + LocationNameEn string `position:"Query" name:"LocationNameEn"` + StartTime string `position:"Query" name:"StartTime"` + IspNameEn string `position:"Query" name:"IspNameEn"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Interval string `position:"Query" name:"Interval"` +} + +// DescribeScdnDomainQpsDataResponse is the response struct for api DescribeScdnDomainQpsData +type DescribeScdnDomainQpsDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + QpsDataPerInterval QpsDataPerInterval `json:"QpsDataPerInterval" xml:"QpsDataPerInterval"` +} + +// CreateDescribeScdnDomainQpsDataRequest creates a request to invoke DescribeScdnDomainQpsData API +func CreateDescribeScdnDomainQpsDataRequest() (request *DescribeScdnDomainQpsDataRequest) { + request = &DescribeScdnDomainQpsDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnDomainQpsData", "", "") + return +} + +// CreateDescribeScdnDomainQpsDataResponse creates a response to parse from DescribeScdnDomainQpsData response +func CreateDescribeScdnDomainQpsDataResponse() (response *DescribeScdnDomainQpsDataResponse) { + response = &DescribeScdnDomainQpsDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_traffic_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_traffic_data.go new file mode 100644 index 0000000..d440fd9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_domain_traffic_data.go @@ -0,0 +1,116 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScdnDomainTrafficData invokes the scdn.DescribeScdnDomainTrafficData API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomaintrafficdata.html +func (client *Client) DescribeScdnDomainTrafficData(request *DescribeScdnDomainTrafficDataRequest) (response *DescribeScdnDomainTrafficDataResponse, err error) { + response = CreateDescribeScdnDomainTrafficDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnDomainTrafficDataWithChan invokes the scdn.DescribeScdnDomainTrafficData API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomaintrafficdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainTrafficDataWithChan(request *DescribeScdnDomainTrafficDataRequest) (<-chan *DescribeScdnDomainTrafficDataResponse, <-chan error) { + responseChan := make(chan *DescribeScdnDomainTrafficDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnDomainTrafficData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnDomainTrafficDataWithCallback invokes the scdn.DescribeScdnDomainTrafficData API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdndomaintrafficdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDomainTrafficDataWithCallback(request *DescribeScdnDomainTrafficDataRequest, callback func(response *DescribeScdnDomainTrafficDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnDomainTrafficDataResponse + var err error + defer close(result) + response, err = client.DescribeScdnDomainTrafficData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnDomainTrafficDataRequest is the request struct for api DescribeScdnDomainTrafficData +type DescribeScdnDomainTrafficDataRequest struct { + *requests.RpcRequest + LocationNameEn string `position:"Query" name:"LocationNameEn"` + StartTime string `position:"Query" name:"StartTime"` + IspNameEn string `position:"Query" name:"IspNameEn"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Version string `position:"Query" name:"Version"` + Interval string `position:"Query" name:"Interval"` +} + +// DescribeScdnDomainTrafficDataResponse is the response struct for api DescribeScdnDomainTrafficData +type DescribeScdnDomainTrafficDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + TrafficDataPerInterval TrafficDataPerInterval `json:"TrafficDataPerInterval" xml:"TrafficDataPerInterval"` +} + +// CreateDescribeScdnDomainTrafficDataRequest creates a request to invoke DescribeScdnDomainTrafficData API +func CreateDescribeScdnDomainTrafficDataRequest() (request *DescribeScdnDomainTrafficDataRequest) { + request = &DescribeScdnDomainTrafficDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnDomainTrafficData", "", "") + return +} + +// CreateDescribeScdnDomainTrafficDataResponse creates a response to parse from DescribeScdnDomainTrafficData response +func CreateDescribeScdnDomainTrafficDataResponse() (response *DescribeScdnDomainTrafficDataResponse) { + response = &DescribeScdnDomainTrafficDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_refresh_quota.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_refresh_quota.go new file mode 100644 index 0000000..5d91a2e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_refresh_quota.go @@ -0,0 +1,112 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScdnRefreshQuota invokes the scdn.DescribeScdnRefreshQuota API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdnrefreshquota.html +func (client *Client) DescribeScdnRefreshQuota(request *DescribeScdnRefreshQuotaRequest) (response *DescribeScdnRefreshQuotaResponse, err error) { + response = CreateDescribeScdnRefreshQuotaResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnRefreshQuotaWithChan invokes the scdn.DescribeScdnRefreshQuota API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdnrefreshquota.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnRefreshQuotaWithChan(request *DescribeScdnRefreshQuotaRequest) (<-chan *DescribeScdnRefreshQuotaResponse, <-chan error) { + responseChan := make(chan *DescribeScdnRefreshQuotaResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnRefreshQuota(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnRefreshQuotaWithCallback invokes the scdn.DescribeScdnRefreshQuota API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdnrefreshquota.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnRefreshQuotaWithCallback(request *DescribeScdnRefreshQuotaRequest, callback func(response *DescribeScdnRefreshQuotaResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnRefreshQuotaResponse + var err error + defer close(result) + response, err = client.DescribeScdnRefreshQuota(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnRefreshQuotaRequest is the request struct for api DescribeScdnRefreshQuota +type DescribeScdnRefreshQuotaRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeScdnRefreshQuotaResponse is the response struct for api DescribeScdnRefreshQuota +type DescribeScdnRefreshQuotaResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + UrlQuota string `json:"UrlQuota" xml:"UrlQuota"` + DirQuota string `json:"DirQuota" xml:"DirQuota"` + UrlRemain string `json:"UrlRemain" xml:"UrlRemain"` + DirRemain string `json:"DirRemain" xml:"DirRemain"` + PreloadQuota string `json:"PreloadQuota" xml:"PreloadQuota"` + BlockQuota string `json:"BlockQuota" xml:"BlockQuota"` + PreloadRemain string `json:"PreloadRemain" xml:"PreloadRemain"` + BlockRemain string `json:"blockRemain" xml:"blockRemain"` +} + +// CreateDescribeScdnRefreshQuotaRequest creates a request to invoke DescribeScdnRefreshQuota API +func CreateDescribeScdnRefreshQuotaRequest() (request *DescribeScdnRefreshQuotaRequest) { + request = &DescribeScdnRefreshQuotaRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnRefreshQuota", "", "") + return +} + +// CreateDescribeScdnRefreshQuotaResponse creates a response to parse from DescribeScdnRefreshQuota response +func CreateDescribeScdnRefreshQuotaResponse() (response *DescribeScdnRefreshQuotaResponse) { + response = &DescribeScdnRefreshQuotaResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_refresh_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_refresh_tasks.go new file mode 100644 index 0000000..0ad3418 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_refresh_tasks.go @@ -0,0 +1,118 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScdnRefreshTasks invokes the scdn.DescribeScdnRefreshTasks API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdnrefreshtasks.html +func (client *Client) DescribeScdnRefreshTasks(request *DescribeScdnRefreshTasksRequest) (response *DescribeScdnRefreshTasksResponse, err error) { + response = CreateDescribeScdnRefreshTasksResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnRefreshTasksWithChan invokes the scdn.DescribeScdnRefreshTasks API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdnrefreshtasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnRefreshTasksWithChan(request *DescribeScdnRefreshTasksRequest) (<-chan *DescribeScdnRefreshTasksResponse, <-chan error) { + responseChan := make(chan *DescribeScdnRefreshTasksResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnRefreshTasks(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnRefreshTasksWithCallback invokes the scdn.DescribeScdnRefreshTasks API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdnrefreshtasks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnRefreshTasksWithCallback(request *DescribeScdnRefreshTasksRequest, callback func(response *DescribeScdnRefreshTasksResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnRefreshTasksResponse + var err error + defer close(result) + response, err = client.DescribeScdnRefreshTasks(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnRefreshTasksRequest is the request struct for api DescribeScdnRefreshTasks +type DescribeScdnRefreshTasksRequest struct { + *requests.RpcRequest + ObjectPath string `position:"Query" name:"ObjectPath"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ObjectType string `position:"Query" name:"ObjectType"` + TaskId string `position:"Query" name:"TaskId"` + Status string `position:"Query" name:"Status"` +} + +// DescribeScdnRefreshTasksResponse is the response struct for api DescribeScdnRefreshTasks +type DescribeScdnRefreshTasksResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Tasks Tasks `json:"Tasks" xml:"Tasks"` +} + +// CreateDescribeScdnRefreshTasksRequest creates a request to invoke DescribeScdnRefreshTasks API +func CreateDescribeScdnRefreshTasksRequest() (request *DescribeScdnRefreshTasksRequest) { + request = &DescribeScdnRefreshTasksRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnRefreshTasks", "", "") + return +} + +// CreateDescribeScdnRefreshTasksResponse creates a response to parse from DescribeScdnRefreshTasks response +func CreateDescribeScdnRefreshTasksResponse() (response *DescribeScdnRefreshTasksResponse) { + response = &DescribeScdnRefreshTasksResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_service.go new file mode 100644 index 0000000..8c68d5b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_service.go @@ -0,0 +1,122 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScdnService invokes the scdn.DescribeScdnService API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdnservice.html +func (client *Client) DescribeScdnService(request *DescribeScdnServiceRequest) (response *DescribeScdnServiceResponse, err error) { + response = CreateDescribeScdnServiceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnServiceWithChan invokes the scdn.DescribeScdnService API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdnservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnServiceWithChan(request *DescribeScdnServiceRequest) (<-chan *DescribeScdnServiceResponse, <-chan error) { + responseChan := make(chan *DescribeScdnServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnServiceWithCallback invokes the scdn.DescribeScdnService API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdnservice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnServiceWithCallback(request *DescribeScdnServiceRequest, callback func(response *DescribeScdnServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnServiceResponse + var err error + defer close(result) + response, err = client.DescribeScdnService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnServiceRequest is the request struct for api DescribeScdnService +type DescribeScdnServiceRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeScdnServiceResponse is the response struct for api DescribeScdnService +type DescribeScdnServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + OpenTime string `json:"OpenTime" xml:"OpenTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + ProtectType string `json:"ProtectType" xml:"ProtectType"` + ProtectTypeValue string `json:"ProtectTypeValue" xml:"ProtectTypeValue"` + Bandwidth string `json:"Bandwidth" xml:"Bandwidth"` + CcProtection string `json:"CcProtection" xml:"CcProtection"` + DDoSBasic string `json:"DDoSBasic" xml:"DDoSBasic"` + DomainCount string `json:"DomainCount" xml:"DomainCount"` + ElasticProtection string `json:"ElasticProtection" xml:"ElasticProtection"` + BandwidthValue string `json:"BandwidthValue" xml:"BandwidthValue"` + CcProtectionValue string `json:"CcProtectionValue" xml:"CcProtectionValue"` + DDoSBasicValue string `json:"DDoSBasicValue" xml:"DDoSBasicValue"` + DomainCountValue string `json:"DomainCountValue" xml:"DomainCountValue"` + ElasticProtectionValue string `json:"ElasticProtectionValue" xml:"ElasticProtectionValue"` + PriceType string `json:"PriceType" xml:"PriceType"` + PricingCycle string `json:"PricingCycle" xml:"PricingCycle"` + OperationLocks OperationLocks `json:"OperationLocks" xml:"OperationLocks"` +} + +// CreateDescribeScdnServiceRequest creates a request to invoke DescribeScdnService API +func CreateDescribeScdnServiceRequest() (request *DescribeScdnServiceRequest) { + request = &DescribeScdnServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnService", "", "") + return +} + +// CreateDescribeScdnServiceResponse creates a response to parse from DescribeScdnService response +func CreateDescribeScdnServiceResponse() (response *DescribeScdnServiceResponse) { + response = &DescribeScdnServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_user_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_user_domains.go new file mode 100644 index 0000000..d2be292 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_user_domains.go @@ -0,0 +1,117 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScdnUserDomains invokes the scdn.DescribeScdnUserDomains API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdnuserdomains.html +func (client *Client) DescribeScdnUserDomains(request *DescribeScdnUserDomainsRequest) (response *DescribeScdnUserDomainsResponse, err error) { + response = CreateDescribeScdnUserDomainsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnUserDomainsWithChan invokes the scdn.DescribeScdnUserDomains API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdnuserdomains.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnUserDomainsWithChan(request *DescribeScdnUserDomainsRequest) (<-chan *DescribeScdnUserDomainsResponse, <-chan error) { + responseChan := make(chan *DescribeScdnUserDomainsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnUserDomains(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnUserDomainsWithCallback invokes the scdn.DescribeScdnUserDomains API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdnuserdomains.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnUserDomainsWithCallback(request *DescribeScdnUserDomainsRequest, callback func(response *DescribeScdnUserDomainsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnUserDomainsResponse + var err error + defer close(result) + response, err = client.DescribeScdnUserDomains(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnUserDomainsRequest is the request struct for api DescribeScdnUserDomains +type DescribeScdnUserDomainsRequest struct { + *requests.RpcRequest + FuncFilter string `position:"Query" name:"FuncFilter"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + FuncId string `position:"Query" name:"FuncId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + DomainStatus string `position:"Query" name:"DomainStatus"` + DomainSearchType string `position:"Query" name:"DomainSearchType"` + CheckDomainShow requests.Boolean `position:"Query" name:"CheckDomainShow"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeScdnUserDomainsResponse is the response struct for api DescribeScdnUserDomains +type DescribeScdnUserDomainsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Domains Domains `json:"Domains" xml:"Domains"` +} + +// CreateDescribeScdnUserDomainsRequest creates a request to invoke DescribeScdnUserDomains API +func CreateDescribeScdnUserDomainsRequest() (request *DescribeScdnUserDomainsRequest) { + request = &DescribeScdnUserDomainsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnUserDomains", "", "") + return +} + +// CreateDescribeScdnUserDomainsResponse creates a response to parse from DescribeScdnUserDomains response +func CreateDescribeScdnUserDomainsResponse() (response *DescribeScdnUserDomainsResponse) { + response = &DescribeScdnUserDomainsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_user_quota.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_user_quota.go new file mode 100644 index 0000000..b1b8e43 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/describe_scdn_user_quota.go @@ -0,0 +1,113 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeScdnUserQuota invokes the scdn.DescribeScdnUserQuota API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdnuserquota.html +func (client *Client) DescribeScdnUserQuota(request *DescribeScdnUserQuotaRequest) (response *DescribeScdnUserQuotaResponse, err error) { + response = CreateDescribeScdnUserQuotaResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnUserQuotaWithChan invokes the scdn.DescribeScdnUserQuota API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdnuserquota.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnUserQuotaWithChan(request *DescribeScdnUserQuotaRequest) (<-chan *DescribeScdnUserQuotaResponse, <-chan error) { + responseChan := make(chan *DescribeScdnUserQuotaResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnUserQuota(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnUserQuotaWithCallback invokes the scdn.DescribeScdnUserQuota API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdnuserquota.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnUserQuotaWithCallback(request *DescribeScdnUserQuotaRequest, callback func(response *DescribeScdnUserQuotaResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnUserQuotaResponse + var err error + defer close(result) + response, err = client.DescribeScdnUserQuota(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnUserQuotaRequest is the request struct for api DescribeScdnUserQuota +type DescribeScdnUserQuotaRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeScdnUserQuotaResponse is the response struct for api DescribeScdnUserQuota +type DescribeScdnUserQuotaResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainQuota int `json:"DomainQuota" xml:"DomainQuota"` + RefreshUrlQuota int `json:"RefreshUrlQuota" xml:"RefreshUrlQuota"` + RefreshDirQuota int `json:"RefreshDirQuota" xml:"RefreshDirQuota"` + RefreshUrlRemain int `json:"RefreshUrlRemain" xml:"RefreshUrlRemain"` + RefreshDirRemain int `json:"RefreshDirRemain" xml:"RefreshDirRemain"` + PreloadQuota int `json:"PreloadQuota" xml:"PreloadQuota"` + PreloadRemain int `json:"PreloadRemain" xml:"PreloadRemain"` + BlockQuota int `json:"BlockQuota" xml:"BlockQuota"` + BlockRemain int `json:"BlockRemain" xml:"BlockRemain"` +} + +// CreateDescribeScdnUserQuotaRequest creates a request to invoke DescribeScdnUserQuota API +func CreateDescribeScdnUserQuotaRequest() (request *DescribeScdnUserQuotaRequest) { + request = &DescribeScdnUserQuotaRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnUserQuota", "", "") + return +} + +// CreateDescribeScdnUserQuotaResponse creates a response to parse from DescribeScdnUserQuota response +func CreateDescribeScdnUserQuotaResponse() (response *DescribeScdnUserQuotaResponse) { + response = &DescribeScdnUserQuotaResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/preload_scdn_object_caches.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/preload_scdn_object_caches.go new file mode 100644 index 0000000..88b27ad --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/preload_scdn_object_caches.go @@ -0,0 +1,106 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PreloadScdnObjectCaches invokes the scdn.PreloadScdnObjectCaches API synchronously +// api document: https://help.aliyun.com/api/scdn/preloadscdnobjectcaches.html +func (client *Client) PreloadScdnObjectCaches(request *PreloadScdnObjectCachesRequest) (response *PreloadScdnObjectCachesResponse, err error) { + response = CreatePreloadScdnObjectCachesResponse() + err = client.DoAction(request, response) + return +} + +// PreloadScdnObjectCachesWithChan invokes the scdn.PreloadScdnObjectCaches API asynchronously +// api document: https://help.aliyun.com/api/scdn/preloadscdnobjectcaches.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PreloadScdnObjectCachesWithChan(request *PreloadScdnObjectCachesRequest) (<-chan *PreloadScdnObjectCachesResponse, <-chan error) { + responseChan := make(chan *PreloadScdnObjectCachesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PreloadScdnObjectCaches(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PreloadScdnObjectCachesWithCallback invokes the scdn.PreloadScdnObjectCaches API asynchronously +// api document: https://help.aliyun.com/api/scdn/preloadscdnobjectcaches.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) PreloadScdnObjectCachesWithCallback(request *PreloadScdnObjectCachesRequest, callback func(response *PreloadScdnObjectCachesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PreloadScdnObjectCachesResponse + var err error + defer close(result) + response, err = client.PreloadScdnObjectCaches(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PreloadScdnObjectCachesRequest is the request struct for api PreloadScdnObjectCaches +type PreloadScdnObjectCachesRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + ObjectPath string `position:"Query" name:"ObjectPath"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// PreloadScdnObjectCachesResponse is the response struct for api PreloadScdnObjectCaches +type PreloadScdnObjectCachesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PreloadTaskId string `json:"PreloadTaskId" xml:"PreloadTaskId"` +} + +// CreatePreloadScdnObjectCachesRequest creates a request to invoke PreloadScdnObjectCaches API +func CreatePreloadScdnObjectCachesRequest() (request *PreloadScdnObjectCachesRequest) { + request = &PreloadScdnObjectCachesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "PreloadScdnObjectCaches", "", "") + return +} + +// CreatePreloadScdnObjectCachesResponse creates a response to parse from PreloadScdnObjectCaches response +func CreatePreloadScdnObjectCachesResponse() (response *PreloadScdnObjectCachesResponse) { + response = &PreloadScdnObjectCachesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/refresh_scdn_object_caches.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/refresh_scdn_object_caches.go new file mode 100644 index 0000000..d977afe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/refresh_scdn_object_caches.go @@ -0,0 +1,107 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RefreshScdnObjectCaches invokes the scdn.RefreshScdnObjectCaches API synchronously +// api document: https://help.aliyun.com/api/scdn/refreshscdnobjectcaches.html +func (client *Client) RefreshScdnObjectCaches(request *RefreshScdnObjectCachesRequest) (response *RefreshScdnObjectCachesResponse, err error) { + response = CreateRefreshScdnObjectCachesResponse() + err = client.DoAction(request, response) + return +} + +// RefreshScdnObjectCachesWithChan invokes the scdn.RefreshScdnObjectCaches API asynchronously +// api document: https://help.aliyun.com/api/scdn/refreshscdnobjectcaches.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RefreshScdnObjectCachesWithChan(request *RefreshScdnObjectCachesRequest) (<-chan *RefreshScdnObjectCachesResponse, <-chan error) { + responseChan := make(chan *RefreshScdnObjectCachesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RefreshScdnObjectCaches(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RefreshScdnObjectCachesWithCallback invokes the scdn.RefreshScdnObjectCaches API asynchronously +// api document: https://help.aliyun.com/api/scdn/refreshscdnobjectcaches.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RefreshScdnObjectCachesWithCallback(request *RefreshScdnObjectCachesRequest, callback func(response *RefreshScdnObjectCachesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RefreshScdnObjectCachesResponse + var err error + defer close(result) + response, err = client.RefreshScdnObjectCaches(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RefreshScdnObjectCachesRequest is the request struct for api RefreshScdnObjectCaches +type RefreshScdnObjectCachesRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + ObjectPath string `position:"Query" name:"ObjectPath"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ObjectType string `position:"Query" name:"ObjectType"` +} + +// RefreshScdnObjectCachesResponse is the response struct for api RefreshScdnObjectCaches +type RefreshScdnObjectCachesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RefreshTaskId string `json:"RefreshTaskId" xml:"RefreshTaskId"` +} + +// CreateRefreshScdnObjectCachesRequest creates a request to invoke RefreshScdnObjectCaches API +func CreateRefreshScdnObjectCachesRequest() (request *RefreshScdnObjectCachesRequest) { + request = &RefreshScdnObjectCachesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "RefreshScdnObjectCaches", "", "") + return +} + +// CreateRefreshScdnObjectCachesResponse creates a response to parse from RefreshScdnObjectCaches response +func CreateRefreshScdnObjectCachesResponse() (response *RefreshScdnObjectCachesResponse) { + response = &RefreshScdnObjectCachesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/set_scdn_domain_certificate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/set_scdn_domain_certificate.go new file mode 100644 index 0000000..a8c2997 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/set_scdn_domain_certificate.go @@ -0,0 +1,111 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetScdnDomainCertificate invokes the scdn.SetScdnDomainCertificate API synchronously +// api document: https://help.aliyun.com/api/scdn/setscdndomaincertificate.html +func (client *Client) SetScdnDomainCertificate(request *SetScdnDomainCertificateRequest) (response *SetScdnDomainCertificateResponse, err error) { + response = CreateSetScdnDomainCertificateResponse() + err = client.DoAction(request, response) + return +} + +// SetScdnDomainCertificateWithChan invokes the scdn.SetScdnDomainCertificate API asynchronously +// api document: https://help.aliyun.com/api/scdn/setscdndomaincertificate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetScdnDomainCertificateWithChan(request *SetScdnDomainCertificateRequest) (<-chan *SetScdnDomainCertificateResponse, <-chan error) { + responseChan := make(chan *SetScdnDomainCertificateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetScdnDomainCertificate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetScdnDomainCertificateWithCallback invokes the scdn.SetScdnDomainCertificate API asynchronously +// api document: https://help.aliyun.com/api/scdn/setscdndomaincertificate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetScdnDomainCertificateWithCallback(request *SetScdnDomainCertificateRequest, callback func(response *SetScdnDomainCertificateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetScdnDomainCertificateResponse + var err error + defer close(result) + response, err = client.SetScdnDomainCertificate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetScdnDomainCertificateRequest is the request struct for api SetScdnDomainCertificate +type SetScdnDomainCertificateRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + CertType string `position:"Query" name:"CertType"` + SSLPub string `position:"Query" name:"SSLPub"` + CertName string `position:"Query" name:"CertName"` + SSLProtocol string `position:"Query" name:"SSLProtocol"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Region string `position:"Query" name:"Region"` + SSLPri string `position:"Query" name:"SSLPri"` +} + +// SetScdnDomainCertificateResponse is the response struct for api SetScdnDomainCertificate +type SetScdnDomainCertificateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetScdnDomainCertificateRequest creates a request to invoke SetScdnDomainCertificate API +func CreateSetScdnDomainCertificateRequest() (request *SetScdnDomainCertificateRequest) { + request = &SetScdnDomainCertificateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "SetScdnDomainCertificate", "", "") + return +} + +// CreateSetScdnDomainCertificateResponse creates a response to parse from SetScdnDomainCertificate response +func CreateSetScdnDomainCertificateResponse() (response *SetScdnDomainCertificateResponse) { + response = &SetScdnDomainCertificateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/start_scdn_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/start_scdn_domain.go new file mode 100644 index 0000000..5ea722f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/start_scdn_domain.go @@ -0,0 +1,105 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StartScdnDomain invokes the scdn.StartScdnDomain API synchronously +// api document: https://help.aliyun.com/api/scdn/startscdndomain.html +func (client *Client) StartScdnDomain(request *StartScdnDomainRequest) (response *StartScdnDomainResponse, err error) { + response = CreateStartScdnDomainResponse() + err = client.DoAction(request, response) + return +} + +// StartScdnDomainWithChan invokes the scdn.StartScdnDomain API asynchronously +// api document: https://help.aliyun.com/api/scdn/startscdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartScdnDomainWithChan(request *StartScdnDomainRequest) (<-chan *StartScdnDomainResponse, <-chan error) { + responseChan := make(chan *StartScdnDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartScdnDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartScdnDomainWithCallback invokes the scdn.StartScdnDomain API asynchronously +// api document: https://help.aliyun.com/api/scdn/startscdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartScdnDomainWithCallback(request *StartScdnDomainRequest, callback func(response *StartScdnDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartScdnDomainResponse + var err error + defer close(result) + response, err = client.StartScdnDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartScdnDomainRequest is the request struct for api StartScdnDomain +type StartScdnDomainRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// StartScdnDomainResponse is the response struct for api StartScdnDomain +type StartScdnDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStartScdnDomainRequest creates a request to invoke StartScdnDomain API +func CreateStartScdnDomainRequest() (request *StartScdnDomainRequest) { + request = &StartScdnDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "StartScdnDomain", "", "") + return +} + +// CreateStartScdnDomainResponse creates a response to parse from StartScdnDomain response +func CreateStartScdnDomainResponse() (response *StartScdnDomainResponse) { + response = &StartScdnDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/stop_scdn_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/stop_scdn_domain.go new file mode 100644 index 0000000..1f14491 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/stop_scdn_domain.go @@ -0,0 +1,105 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StopScdnDomain invokes the scdn.StopScdnDomain API synchronously +// api document: https://help.aliyun.com/api/scdn/stopscdndomain.html +func (client *Client) StopScdnDomain(request *StopScdnDomainRequest) (response *StopScdnDomainResponse, err error) { + response = CreateStopScdnDomainResponse() + err = client.DoAction(request, response) + return +} + +// StopScdnDomainWithChan invokes the scdn.StopScdnDomain API asynchronously +// api document: https://help.aliyun.com/api/scdn/stopscdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopScdnDomainWithChan(request *StopScdnDomainRequest) (<-chan *StopScdnDomainResponse, <-chan error) { + responseChan := make(chan *StopScdnDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopScdnDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopScdnDomainWithCallback invokes the scdn.StopScdnDomain API asynchronously +// api document: https://help.aliyun.com/api/scdn/stopscdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopScdnDomainWithCallback(request *StopScdnDomainRequest, callback func(response *StopScdnDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopScdnDomainResponse + var err error + defer close(result) + response, err = client.StopScdnDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopScdnDomainRequest is the request struct for api StopScdnDomain +type StopScdnDomainRequest struct { + *requests.RpcRequest + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// StopScdnDomainResponse is the response struct for api StopScdnDomain +type StopScdnDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStopScdnDomainRequest creates a request to invoke StopScdnDomain API +func CreateStopScdnDomainRequest() (request *StopScdnDomainRequest) { + request = &StopScdnDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "StopScdnDomain", "", "") + return +} + +// CreateStopScdnDomainResponse creates a response to parse from StopScdnDomain response +func CreateStopScdnDomainResponse() (response *StopScdnDomainResponse) { + response = &StopScdnDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_bps_data_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_bps_data_per_interval.go new file mode 100644 index 0000000..ce8228d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_bps_data_per_interval.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BpsDataPerInterval is a nested struct in scdn response +type BpsDataPerInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_cert.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_cert.go new file mode 100644 index 0000000..895bab9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_cert.go @@ -0,0 +1,26 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Cert is a nested struct in scdn response +type Cert struct { + CertName string `json:"CertName" xml:"CertName"` + CertId int `json:"CertId" xml:"CertId"` + Fingerprint string `json:"Fingerprint" xml:"Fingerprint"` + Common string `json:"Common" xml:"Common"` + Issuer string `json:"Issuer" xml:"Issuer"` + LastTime int `json:"LastTime" xml:"LastTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_cert_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_cert_info.go new file mode 100644 index 0000000..5904814 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_cert_info.go @@ -0,0 +1,30 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CertInfo is a nested struct in scdn response +type CertInfo struct { + DomainName string `json:"DomainName" xml:"DomainName"` + CertName string `json:"CertName" xml:"CertName"` + CertDomainName string `json:"CertDomainName" xml:"CertDomainName"` + CertExpireTime string `json:"CertExpireTime" xml:"CertExpireTime"` + CertLife string `json:"CertLife" xml:"CertLife"` + CertOrg string `json:"CertOrg" xml:"CertOrg"` + CertType string `json:"CertType" xml:"CertType"` + SSLProtocol string `json:"SSLProtocol" xml:"SSLProtocol"` + Status string `json:"Status" xml:"Status"` + SSLPub string `json:"SSLPub" xml:"SSLPub"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_cert_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_cert_infos.go new file mode 100644 index 0000000..ac43ed0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_cert_infos.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CertInfos is a nested struct in scdn response +type CertInfos struct { + CertInfo []CertInfo `json:"CertInfo" xml:"CertInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_cert_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_cert_list.go new file mode 100644 index 0000000..3c1d943 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_cert_list.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CertList is a nested struct in scdn response +type CertList struct { + Cert []Cert `json:"Cert" xml:"Cert"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_certificate_list_model.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_certificate_list_model.go new file mode 100644 index 0000000..2437713 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_certificate_list_model.go @@ -0,0 +1,22 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CertificateListModel is a nested struct in scdn response +type CertificateListModel struct { + Count int `json:"Count" xml:"Count"` + CertList CertList `json:"CertList" xml:"CertList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_cname_datas.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_cname_datas.go new file mode 100644 index 0000000..3067e0f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_cname_datas.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CnameDatas is a nested struct in scdn response +type CnameDatas struct { + Data []Data `json:"Data" xml:"Data"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_data.go new file mode 100644 index 0000000..a745a76 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_data.go @@ -0,0 +1,23 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 scdn response +type Data struct { + Domain string `json:"Domain" xml:"Domain"` + Cname string `json:"Cname" xml:"Cname"` + Status int `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_data_module.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_data_module.go new file mode 100644 index 0000000..a1db083 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_data_module.go @@ -0,0 +1,39 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataModule is a nested struct in scdn response +type DataModule struct { + HttpAccValue string `json:"HttpAccValue" xml:"HttpAccValue"` + BpsValue string `json:"BpsValue" xml:"BpsValue"` + HttpQpsValue string `json:"HttpQpsValue" xml:"HttpQpsValue"` + ByteHitRate string `json:"ByteHitRate" xml:"ByteHitRate"` + HttpsTrafficValue string `json:"HttpsTrafficValue" xml:"HttpsTrafficValue"` + AccValue string `json:"AccValue" xml:"AccValue"` + TrafficValue string `json:"TrafficValue" xml:"TrafficValue"` + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` + QpsValue string `json:"QpsValue" xml:"QpsValue"` + ReqHitRate string `json:"ReqHitRate" xml:"ReqHitRate"` + HttpBpsValue string `json:"HttpBpsValue" xml:"HttpBpsValue"` + HttpsQpsValue string `json:"HttpsQpsValue" xml:"HttpsQpsValue"` + HttpsBpsValue string `json:"HttpsBpsValue" xml:"HttpsBpsValue"` + HttpTrafficValue string `json:"HttpTrafficValue" xml:"HttpTrafficValue"` + HttpsAccValue string `json:"HttpsAccValue" xml:"HttpsAccValue"` + OriginBpsValue string `json:"OriginBpsValue" xml:"OriginBpsValue"` + HttpsOriginBpsValue string `json:"HttpsOriginBpsValue" xml:"HttpsOriginBpsValue"` + HttpOriginBpsValue string `json:"HttpOriginBpsValue" xml:"HttpOriginBpsValue"` + HttpCodeDataPerInterval HttpCodeDataPerInterval `json:"HttpCodeDataPerInterval" xml:"HttpCodeDataPerInterval"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_data_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_data_per_interval.go new file mode 100644 index 0000000..dac8d26 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_data_per_interval.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataPerInterval is a nested struct in scdn response +type DataPerInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domain_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domain_config.go new file mode 100644 index 0000000..c64ae04 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domain_config.go @@ -0,0 +1,24 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainConfig is a nested struct in scdn response +type DomainConfig struct { + FunctionName string `json:"FunctionName" xml:"FunctionName"` + ConfigId string `json:"ConfigId" xml:"ConfigId"` + Status string `json:"Status" xml:"Status"` + FunctionArgs FunctionArgs `json:"FunctionArgs" xml:"FunctionArgs"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domain_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domain_configs.go new file mode 100644 index 0000000..517f9ce --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domain_configs.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainConfigs is a nested struct in scdn response +type DomainConfigs struct { + DomainConfig []DomainConfig `json:"DomainConfig" xml:"DomainConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domain_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domain_detail.go new file mode 100644 index 0000000..7bdda0a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domain_detail.go @@ -0,0 +1,32 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainDetail is a nested struct in scdn response +type DomainDetail struct { + GmtCreated string `json:"GmtCreated" xml:"GmtCreated"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + DomainStatus string `json:"DomainStatus" xml:"DomainStatus"` + Cname string `json:"Cname" xml:"Cname"` + DomainName string `json:"DomainName" xml:"DomainName"` + Description string `json:"Description" xml:"Description"` + SSLProtocol string `json:"SSLProtocol" xml:"SSLProtocol"` + SSLPub string `json:"SSLPub" xml:"SSLPub"` + Scope string `json:"Scope" xml:"Scope"` + CertName string `json:"CertName" xml:"CertName"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + Sources SourcesInDescribeScdnDomainDetail `json:"Sources" xml:"Sources"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domain_log_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domain_log_detail.go new file mode 100644 index 0000000..125c15e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domain_log_detail.go @@ -0,0 +1,23 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainLogDetail is a nested struct in scdn response +type DomainLogDetail struct { + LogCount int `json:"LogCount" xml:"LogCount"` + PageInfos PageInfos `json:"PageInfos" xml:"PageInfos"` + LogInfos LogInfos `json:"LogInfos" xml:"LogInfos"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domain_log_details.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domain_log_details.go new file mode 100644 index 0000000..f23dd63 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domain_log_details.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainLogDetails is a nested struct in scdn response +type DomainLogDetails struct { + DomainLogDetail []DomainLogDetail `json:"DomainLogDetail" xml:"DomainLogDetail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domains.go new file mode 100644 index 0000000..6fab42b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_domains.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Domains is a nested struct in scdn response +type Domains struct { + PageData []PageData `json:"PageData" xml:"PageData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_function_arg.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_function_arg.go new file mode 100644 index 0000000..583d801 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_function_arg.go @@ -0,0 +1,22 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FunctionArg is a nested struct in scdn response +type FunctionArg struct { + ArgName string `json:"ArgName" xml:"ArgName"` + ArgValue string `json:"ArgValue" xml:"ArgValue"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_function_args.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_function_args.go new file mode 100644 index 0000000..1826bae --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_function_args.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FunctionArgs is a nested struct in scdn response +type FunctionArgs struct { + FunctionArg []FunctionArg `json:"FunctionArg" xml:"FunctionArg"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_hit_rate_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_hit_rate_per_interval.go new file mode 100644 index 0000000..b952f3b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_hit_rate_per_interval.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HitRatePerInterval is a nested struct in scdn response +type HitRatePerInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_http_code_data_module.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_http_code_data_module.go new file mode 100644 index 0000000..2589fbf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_http_code_data_module.go @@ -0,0 +1,23 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HttpCodeDataModule is a nested struct in scdn response +type HttpCodeDataModule struct { + Code string `json:"Code" xml:"Code"` + Proportion string `json:"Proportion" xml:"Proportion"` + Count string `json:"Count" xml:"Count"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_http_code_data_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_http_code_data_per_interval.go new file mode 100644 index 0000000..b30619c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_http_code_data_per_interval.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HttpCodeDataPerInterval is a nested struct in scdn response +type HttpCodeDataPerInterval struct { + HttpCodeDataModule []HttpCodeDataModule `json:"HttpCodeDataModule" xml:"HttpCodeDataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_lock_reason.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_lock_reason.go new file mode 100644 index 0000000..b8b972a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_lock_reason.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LockReason is a nested struct in scdn response +type LockReason struct { + LockReason string `json:"LockReason" xml:"LockReason"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_log_info_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_log_info_detail.go new file mode 100644 index 0000000..7091b89 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_log_info_detail.go @@ -0,0 +1,25 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LogInfoDetail is a nested struct in scdn response +type LogInfoDetail struct { + LogName string `json:"LogName" xml:"LogName"` + LogPath string `json:"LogPath" xml:"LogPath"` + LogSize int `json:"LogSize" xml:"LogSize"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_log_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_log_infos.go new file mode 100644 index 0000000..fe0f883 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_log_infos.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LogInfos is a nested struct in scdn response +type LogInfos struct { + LogInfoDetail []LogInfoDetail `json:"LogInfoDetail" xml:"LogInfoDetail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_operation_locks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_operation_locks.go new file mode 100644 index 0000000..65020f1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_operation_locks.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OperationLocks is a nested struct in scdn response +type OperationLocks struct { + LockReason []LockReason `json:"LockReason" xml:"LockReason"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_origin_bps_data_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_origin_bps_data_per_interval.go new file mode 100644 index 0000000..36302e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_origin_bps_data_per_interval.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OriginBpsDataPerInterval is a nested struct in scdn response +type OriginBpsDataPerInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_origin_traffic_data_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_origin_traffic_data_per_interval.go new file mode 100644 index 0000000..14b6f57 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_origin_traffic_data_per_interval.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OriginTrafficDataPerInterval is a nested struct in scdn response +type OriginTrafficDataPerInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_page_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_page_data.go new file mode 100644 index 0000000..7b5106c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_page_data.go @@ -0,0 +1,30 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PageData is a nested struct in scdn response +type PageData struct { + DomainName string `json:"DomainName" xml:"DomainName"` + Cname string `json:"Cname" xml:"Cname"` + DomainStatus string `json:"DomainStatus" xml:"DomainStatus"` + GmtCreated string `json:"GmtCreated" xml:"GmtCreated"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + Description string `json:"Description" xml:"Description"` + SSLProtocol string `json:"SSLProtocol" xml:"SSLProtocol"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + Sandbox string `json:"Sandbox" xml:"Sandbox"` + Sources SourcesInDescribeScdnUserDomains `json:"Sources" xml:"Sources"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_page_info_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_page_info_detail.go new file mode 100644 index 0000000..4b9e533 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_page_info_detail.go @@ -0,0 +1,23 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PageInfoDetail is a nested struct in scdn response +type PageInfoDetail struct { + PageIndex int `json:"PageIndex" xml:"PageIndex"` + PageSize int `json:"PageSize" xml:"PageSize"` + Total int `json:"Total" xml:"Total"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_page_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_page_infos.go new file mode 100644 index 0000000..93ea538 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_page_infos.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PageInfos is a nested struct in scdn response +type PageInfos struct { + PageInfoDetail []PageInfoDetail `json:"PageInfoDetail" xml:"PageInfoDetail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_qps_data_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_qps_data_per_interval.go new file mode 100644 index 0000000..75273f5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_qps_data_per_interval.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// QpsDataPerInterval is a nested struct in scdn response +type QpsDataPerInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_source.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_source.go new file mode 100644 index 0000000..28f6592 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_source.go @@ -0,0 +1,25 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Source is a nested struct in scdn response +type Source struct { + Port int `json:"Port" xml:"Port"` + Content string `json:"Content" xml:"Content"` + Enabled string `json:"Enabled" xml:"Enabled"` + Priority string `json:"Priority" xml:"Priority"` + Type string `json:"Type" xml:"Type"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_sources_in_describe_scdn_domain_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_sources_in_describe_scdn_domain_detail.go new file mode 100644 index 0000000..c5f5899 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_sources_in_describe_scdn_domain_detail.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SourcesInDescribeScdnDomainDetail is a nested struct in scdn response +type SourcesInDescribeScdnDomainDetail struct { + Source []Source `json:"Source" xml:"Source"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_sources_in_describe_scdn_user_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_sources_in_describe_scdn_user_domains.go new file mode 100644 index 0000000..3b29521 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_sources_in_describe_scdn_user_domains.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SourcesInDescribeScdnUserDomains is a nested struct in scdn response +type SourcesInDescribeScdnUserDomains struct { + Source []Source `json:"Source" xml:"Source"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_task.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_task.go new file mode 100644 index 0000000..fb4899f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_task.go @@ -0,0 +1,27 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Task is a nested struct in scdn response +type Task struct { + TaskId string `json:"TaskId" xml:"TaskId"` + ObjectPath string `json:"ObjectPath" xml:"ObjectPath"` + Process string `json:"Process" xml:"Process"` + Status string `json:"Status" xml:"Status"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Description string `json:"Description" xml:"Description"` + ObjectType string `json:"ObjectType" xml:"ObjectType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_tasks.go new file mode 100644 index 0000000..76559e0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_tasks.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Tasks is a nested struct in scdn response +type Tasks struct { + Task []Task `json:"Task" xml:"Task"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_traffic_data_per_interval.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_traffic_data_per_interval.go new file mode 100644 index 0000000..1176e4b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/struct_traffic_data_per_interval.go @@ -0,0 +1,21 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TrafficDataPerInterval is a nested struct in scdn response +type TrafficDataPerInterval struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/update_scdn_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/update_scdn_domain.go new file mode 100644 index 0000000..3ec33aa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/scdn/update_scdn_domain.go @@ -0,0 +1,107 @@ +package scdn + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateScdnDomain invokes the scdn.UpdateScdnDomain API synchronously +// api document: https://help.aliyun.com/api/scdn/updatescdndomain.html +func (client *Client) UpdateScdnDomain(request *UpdateScdnDomainRequest) (response *UpdateScdnDomainResponse, err error) { + response = CreateUpdateScdnDomainResponse() + err = client.DoAction(request, response) + return +} + +// UpdateScdnDomainWithChan invokes the scdn.UpdateScdnDomain API asynchronously +// api document: https://help.aliyun.com/api/scdn/updatescdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateScdnDomainWithChan(request *UpdateScdnDomainRequest) (<-chan *UpdateScdnDomainResponse, <-chan error) { + responseChan := make(chan *UpdateScdnDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateScdnDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateScdnDomainWithCallback invokes the scdn.UpdateScdnDomain API asynchronously +// api document: https://help.aliyun.com/api/scdn/updatescdndomain.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateScdnDomainWithCallback(request *UpdateScdnDomainRequest, callback func(response *UpdateScdnDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateScdnDomainResponse + var err error + defer close(result) + response, err = client.UpdateScdnDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateScdnDomainRequest is the request struct for api UpdateScdnDomain +type UpdateScdnDomainRequest struct { + *requests.RpcRequest + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Sources string `position:"Query" name:"Sources"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// UpdateScdnDomainResponse is the response struct for api UpdateScdnDomain +type UpdateScdnDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateScdnDomainRequest creates a request to invoke UpdateScdnDomain API +func CreateUpdateScdnDomainRequest() (request *UpdateScdnDomainRequest) { + request = &UpdateScdnDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "UpdateScdnDomain", "", "") + return +} + +// CreateUpdateScdnDomainResponse creates a response to parse from UpdateScdnDomain response +func CreateUpdateScdnDomainResponse() (response *UpdateScdnDomainResponse) { + response = &UpdateScdnDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_backend_servers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_backend_servers.go new file mode 100644 index 0000000..f7869a2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_backend_servers.go @@ -0,0 +1,112 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddBackendServers invokes the slb.AddBackendServers API synchronously +// api document: https://help.aliyun.com/api/slb/addbackendservers.html +func (client *Client) AddBackendServers(request *AddBackendServersRequest) (response *AddBackendServersResponse, err error) { + response = CreateAddBackendServersResponse() + err = client.DoAction(request, response) + return +} + +// AddBackendServersWithChan invokes the slb.AddBackendServers API asynchronously +// api document: https://help.aliyun.com/api/slb/addbackendservers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddBackendServersWithChan(request *AddBackendServersRequest) (<-chan *AddBackendServersResponse, <-chan error) { + responseChan := make(chan *AddBackendServersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddBackendServers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddBackendServersWithCallback invokes the slb.AddBackendServers API asynchronously +// api document: https://help.aliyun.com/api/slb/addbackendservers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddBackendServersWithCallback(request *AddBackendServersRequest, callback func(response *AddBackendServersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddBackendServersResponse + var err error + defer close(result) + response, err = client.AddBackendServers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddBackendServersRequest is the request struct for api AddBackendServers +type AddBackendServersRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + BackendServers string `position:"Query" name:"BackendServers"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// AddBackendServersResponse is the response struct for api AddBackendServers +type AddBackendServersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + BackendServers BackendServersInAddBackendServers `json:"BackendServers" xml:"BackendServers"` +} + +// CreateAddBackendServersRequest creates a request to invoke AddBackendServers API +func CreateAddBackendServersRequest() (request *AddBackendServersRequest) { + request = &AddBackendServersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "AddBackendServers", "slb", "openAPI") + return +} + +// CreateAddBackendServersResponse creates a response to parse from AddBackendServers response +func CreateAddBackendServersResponse() (response *AddBackendServersResponse) { + response = &AddBackendServersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_listener_white_list_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_listener_white_list_item.go new file mode 100644 index 0000000..14d6479 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_listener_white_list_item.go @@ -0,0 +1,111 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddListenerWhiteListItem invokes the slb.AddListenerWhiteListItem API synchronously +// api document: https://help.aliyun.com/api/slb/addlistenerwhitelistitem.html +func (client *Client) AddListenerWhiteListItem(request *AddListenerWhiteListItemRequest) (response *AddListenerWhiteListItemResponse, err error) { + response = CreateAddListenerWhiteListItemResponse() + err = client.DoAction(request, response) + return +} + +// AddListenerWhiteListItemWithChan invokes the slb.AddListenerWhiteListItem API asynchronously +// api document: https://help.aliyun.com/api/slb/addlistenerwhitelistitem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddListenerWhiteListItemWithChan(request *AddListenerWhiteListItemRequest) (<-chan *AddListenerWhiteListItemResponse, <-chan error) { + responseChan := make(chan *AddListenerWhiteListItemResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddListenerWhiteListItem(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddListenerWhiteListItemWithCallback invokes the slb.AddListenerWhiteListItem API asynchronously +// api document: https://help.aliyun.com/api/slb/addlistenerwhitelistitem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddListenerWhiteListItemWithCallback(request *AddListenerWhiteListItemRequest, callback func(response *AddListenerWhiteListItemResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddListenerWhiteListItemResponse + var err error + defer close(result) + response, err = client.AddListenerWhiteListItem(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddListenerWhiteListItemRequest is the request struct for api AddListenerWhiteListItem +type AddListenerWhiteListItemRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + SourceItems string `position:"Query" name:"SourceItems"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// AddListenerWhiteListItemResponse is the response struct for api AddListenerWhiteListItem +type AddListenerWhiteListItemResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddListenerWhiteListItemRequest creates a request to invoke AddListenerWhiteListItem API +func CreateAddListenerWhiteListItemRequest() (request *AddListenerWhiteListItemRequest) { + request = &AddListenerWhiteListItemRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "AddListenerWhiteListItem", "slb", "openAPI") + return +} + +// CreateAddListenerWhiteListItemResponse creates a response to parse from AddListenerWhiteListItem response +func CreateAddListenerWhiteListItemResponse() (response *AddListenerWhiteListItemResponse) { + response = &AddListenerWhiteListItemResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_tags.go new file mode 100644 index 0000000..0c93f32 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_tags.go @@ -0,0 +1,109 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddTags invokes the slb.AddTags API synchronously +// api document: https://help.aliyun.com/api/slb/addtags.html +func (client *Client) AddTags(request *AddTagsRequest) (response *AddTagsResponse, err error) { + response = CreateAddTagsResponse() + err = client.DoAction(request, response) + return +} + +// AddTagsWithChan invokes the slb.AddTags API asynchronously +// api document: https://help.aliyun.com/api/slb/addtags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddTagsWithChan(request *AddTagsRequest) (<-chan *AddTagsResponse, <-chan error) { + responseChan := make(chan *AddTagsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddTags(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddTagsWithCallback invokes the slb.AddTags API asynchronously +// api document: https://help.aliyun.com/api/slb/addtags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddTagsWithCallback(request *AddTagsRequest, callback func(response *AddTagsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddTagsResponse + var err error + defer close(result) + response, err = client.AddTags(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddTagsRequest is the request struct for api AddTags +type AddTagsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + Tags string `position:"Query" name:"Tags"` +} + +// AddTagsResponse is the response struct for api AddTags +type AddTagsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddTagsRequest creates a request to invoke AddTags API +func CreateAddTagsRequest() (request *AddTagsRequest) { + request = &AddTagsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "AddTags", "slb", "openAPI") + return +} + +// CreateAddTagsResponse creates a response to parse from AddTags response +func CreateAddTagsResponse() (response *AddTagsResponse) { + response = &AddTagsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_v_server_group_backend_servers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_v_server_group_backend_servers.go new file mode 100644 index 0000000..dd87592 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_v_server_group_backend_servers.go @@ -0,0 +1,112 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddVServerGroupBackendServers invokes the slb.AddVServerGroupBackendServers API synchronously +// api document: https://help.aliyun.com/api/slb/addvservergroupbackendservers.html +func (client *Client) AddVServerGroupBackendServers(request *AddVServerGroupBackendServersRequest) (response *AddVServerGroupBackendServersResponse, err error) { + response = CreateAddVServerGroupBackendServersResponse() + err = client.DoAction(request, response) + return +} + +// AddVServerGroupBackendServersWithChan invokes the slb.AddVServerGroupBackendServers API asynchronously +// api document: https://help.aliyun.com/api/slb/addvservergroupbackendservers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddVServerGroupBackendServersWithChan(request *AddVServerGroupBackendServersRequest) (<-chan *AddVServerGroupBackendServersResponse, <-chan error) { + responseChan := make(chan *AddVServerGroupBackendServersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddVServerGroupBackendServers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddVServerGroupBackendServersWithCallback invokes the slb.AddVServerGroupBackendServers API asynchronously +// api document: https://help.aliyun.com/api/slb/addvservergroupbackendservers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddVServerGroupBackendServersWithCallback(request *AddVServerGroupBackendServersRequest, callback func(response *AddVServerGroupBackendServersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddVServerGroupBackendServersResponse + var err error + defer close(result) + response, err = client.AddVServerGroupBackendServers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddVServerGroupBackendServersRequest is the request struct for api AddVServerGroupBackendServers +type AddVServerGroupBackendServersRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` + BackendServers string `position:"Query" name:"BackendServers"` +} + +// AddVServerGroupBackendServersResponse is the response struct for api AddVServerGroupBackendServers +type AddVServerGroupBackendServersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + BackendServers BackendServersInAddVServerGroupBackendServers `json:"BackendServers" xml:"BackendServers"` +} + +// CreateAddVServerGroupBackendServersRequest creates a request to invoke AddVServerGroupBackendServers API +func CreateAddVServerGroupBackendServersRequest() (request *AddVServerGroupBackendServersRequest) { + request = &AddVServerGroupBackendServersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "AddVServerGroupBackendServers", "slb", "openAPI") + return +} + +// CreateAddVServerGroupBackendServersResponse creates a response to parse from AddVServerGroupBackendServers response +func CreateAddVServerGroupBackendServersResponse() (response *AddVServerGroupBackendServersResponse) { + response = &AddVServerGroupBackendServersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/client.go new file mode 100644 index 0000000..a14fa3b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/client.go @@ -0,0 +1,81 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer.go new file mode 100644 index 0000000..3ef193d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer.go @@ -0,0 +1,132 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateLoadBalancer invokes the slb.CreateLoadBalancer API synchronously +// api document: https://help.aliyun.com/api/slb/createloadbalancer.html +func (client *Client) CreateLoadBalancer(request *CreateLoadBalancerRequest) (response *CreateLoadBalancerResponse, err error) { + response = CreateCreateLoadBalancerResponse() + err = client.DoAction(request, response) + return +} + +// CreateLoadBalancerWithChan invokes the slb.CreateLoadBalancer API asynchronously +// api document: https://help.aliyun.com/api/slb/createloadbalancer.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLoadBalancerWithChan(request *CreateLoadBalancerRequest) (<-chan *CreateLoadBalancerResponse, <-chan error) { + responseChan := make(chan *CreateLoadBalancerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateLoadBalancer(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateLoadBalancerWithCallback invokes the slb.CreateLoadBalancer API asynchronously +// api document: https://help.aliyun.com/api/slb/createloadbalancer.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLoadBalancerWithCallback(request *CreateLoadBalancerRequest, callback func(response *CreateLoadBalancerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateLoadBalancerResponse + var err error + defer close(result) + response, err = client.CreateLoadBalancer(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateLoadBalancerRequest is the request struct for api CreateLoadBalancer +type CreateLoadBalancerRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AddressType string `position:"Query" name:"AddressType"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + ClientToken string `position:"Query" name:"ClientToken"` + LoadBalancerName string `position:"Query" name:"LoadBalancerName"` + VpcId string `position:"Query" name:"VpcId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + MasterZoneId string `position:"Query" name:"MasterZoneId"` + SlaveZoneId string `position:"Query" name:"SlaveZoneId"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + EnableVpcVipFlow string `position:"Query" name:"EnableVpcVipFlow"` + LoadBalancerSpec string `position:"Query" name:"LoadBalancerSpec"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + PayType string `position:"Query" name:"PayType"` + PricingCycle string `position:"Query" name:"PricingCycle"` + Duration requests.Integer `position:"Query" name:"Duration"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` +} + +// CreateLoadBalancerResponse is the response struct for api CreateLoadBalancer +type CreateLoadBalancerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + Address string `json:"Address" xml:"Address"` + LoadBalancerName string `json:"LoadBalancerName" xml:"LoadBalancerName"` + VpcId string `json:"VpcId" xml:"VpcId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + OrderId int `json:"OrderId" xml:"OrderId"` +} + +// CreateCreateLoadBalancerRequest creates a request to invoke CreateLoadBalancer API +func CreateCreateLoadBalancerRequest() (request *CreateLoadBalancerRequest) { + request = &CreateLoadBalancerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "CreateLoadBalancer", "slb", "openAPI") + return +} + +// CreateCreateLoadBalancerResponse creates a response to parse from CreateLoadBalancer response +func CreateCreateLoadBalancerResponse() (response *CreateLoadBalancerResponse) { + response = &CreateLoadBalancerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_http_listener.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_http_listener.go new file mode 100644 index 0000000..cfaaf53 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_http_listener.go @@ -0,0 +1,133 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateLoadBalancerHTTPListener invokes the slb.CreateLoadBalancerHTTPListener API synchronously +// api document: https://help.aliyun.com/api/slb/createloadbalancerhttplistener.html +func (client *Client) CreateLoadBalancerHTTPListener(request *CreateLoadBalancerHTTPListenerRequest) (response *CreateLoadBalancerHTTPListenerResponse, err error) { + response = CreateCreateLoadBalancerHTTPListenerResponse() + err = client.DoAction(request, response) + return +} + +// CreateLoadBalancerHTTPListenerWithChan invokes the slb.CreateLoadBalancerHTTPListener API asynchronously +// api document: https://help.aliyun.com/api/slb/createloadbalancerhttplistener.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLoadBalancerHTTPListenerWithChan(request *CreateLoadBalancerHTTPListenerRequest) (<-chan *CreateLoadBalancerHTTPListenerResponse, <-chan error) { + responseChan := make(chan *CreateLoadBalancerHTTPListenerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateLoadBalancerHTTPListener(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateLoadBalancerHTTPListenerWithCallback invokes the slb.CreateLoadBalancerHTTPListener API asynchronously +// api document: https://help.aliyun.com/api/slb/createloadbalancerhttplistener.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLoadBalancerHTTPListenerWithCallback(request *CreateLoadBalancerHTTPListenerRequest, callback func(response *CreateLoadBalancerHTTPListenerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateLoadBalancerHTTPListenerResponse + var err error + defer close(result) + response, err = client.CreateLoadBalancerHTTPListener(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateLoadBalancerHTTPListenerRequest is the request struct for api CreateLoadBalancerHTTPListener +type CreateLoadBalancerHTTPListenerRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + BackendServerPort requests.Integer `position:"Query" name:"BackendServerPort"` + XForwardedFor string `position:"Query" name:"XForwardedFor"` + Scheduler string `position:"Query" name:"Scheduler"` + StickySession string `position:"Query" name:"StickySession"` + StickySessionType string `position:"Query" name:"StickySessionType"` + CookieTimeout requests.Integer `position:"Query" name:"CookieTimeout"` + Cookie string `position:"Query" name:"Cookie"` + HealthCheck string `position:"Query" name:"HealthCheck"` + HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` + HealthCheckURI string `position:"Query" name:"HealthCheckURI"` + HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` + UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` + HealthCheckTimeout requests.Integer `position:"Query" name:"HealthCheckTimeout"` + HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` + HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` + HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` + MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` + Tags string `position:"Query" name:"Tags"` + XForwardedForSLBIP string `position:"Query" name:"XForwardedFor_SLBIP"` + XForwardedForSLBID string `position:"Query" name:"XForwardedFor_SLBID"` + XForwardedForProto string `position:"Query" name:"XForwardedFor_proto"` + Gzip string `position:"Query" name:"Gzip"` +} + +// CreateLoadBalancerHTTPListenerResponse is the response struct for api CreateLoadBalancerHTTPListener +type CreateLoadBalancerHTTPListenerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateLoadBalancerHTTPListenerRequest creates a request to invoke CreateLoadBalancerHTTPListener API +func CreateCreateLoadBalancerHTTPListenerRequest() (request *CreateLoadBalancerHTTPListenerRequest) { + request = &CreateLoadBalancerHTTPListenerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "CreateLoadBalancerHTTPListener", "slb", "openAPI") + return +} + +// CreateCreateLoadBalancerHTTPListenerResponse creates a response to parse from CreateLoadBalancerHTTPListener response +func CreateCreateLoadBalancerHTTPListenerResponse() (response *CreateLoadBalancerHTTPListenerResponse) { + response = &CreateLoadBalancerHTTPListenerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_https_listener.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_https_listener.go new file mode 100644 index 0000000..57279d8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_https_listener.go @@ -0,0 +1,135 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateLoadBalancerHTTPSListener invokes the slb.CreateLoadBalancerHTTPSListener API synchronously +// api document: https://help.aliyun.com/api/slb/createloadbalancerhttpslistener.html +func (client *Client) CreateLoadBalancerHTTPSListener(request *CreateLoadBalancerHTTPSListenerRequest) (response *CreateLoadBalancerHTTPSListenerResponse, err error) { + response = CreateCreateLoadBalancerHTTPSListenerResponse() + err = client.DoAction(request, response) + return +} + +// CreateLoadBalancerHTTPSListenerWithChan invokes the slb.CreateLoadBalancerHTTPSListener API asynchronously +// api document: https://help.aliyun.com/api/slb/createloadbalancerhttpslistener.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLoadBalancerHTTPSListenerWithChan(request *CreateLoadBalancerHTTPSListenerRequest) (<-chan *CreateLoadBalancerHTTPSListenerResponse, <-chan error) { + responseChan := make(chan *CreateLoadBalancerHTTPSListenerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateLoadBalancerHTTPSListener(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateLoadBalancerHTTPSListenerWithCallback invokes the slb.CreateLoadBalancerHTTPSListener API asynchronously +// api document: https://help.aliyun.com/api/slb/createloadbalancerhttpslistener.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLoadBalancerHTTPSListenerWithCallback(request *CreateLoadBalancerHTTPSListenerRequest, callback func(response *CreateLoadBalancerHTTPSListenerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateLoadBalancerHTTPSListenerResponse + var err error + defer close(result) + response, err = client.CreateLoadBalancerHTTPSListener(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateLoadBalancerHTTPSListenerRequest is the request struct for api CreateLoadBalancerHTTPSListener +type CreateLoadBalancerHTTPSListenerRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + BackendServerPort requests.Integer `position:"Query" name:"BackendServerPort"` + XForwardedFor string `position:"Query" name:"XForwardedFor"` + Scheduler string `position:"Query" name:"Scheduler"` + StickySession string `position:"Query" name:"StickySession"` + StickySessionType string `position:"Query" name:"StickySessionType"` + CookieTimeout requests.Integer `position:"Query" name:"CookieTimeout"` + Cookie string `position:"Query" name:"Cookie"` + HealthCheck string `position:"Query" name:"HealthCheck"` + HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` + HealthCheckURI string `position:"Query" name:"HealthCheckURI"` + HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` + UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` + HealthCheckTimeout requests.Integer `position:"Query" name:"HealthCheckTimeout"` + HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` + HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` + HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` + ServerCertificateId string `position:"Query" name:"ServerCertificateId"` + MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` + CACertificateId string `position:"Query" name:"CACertificateId"` + Tags string `position:"Query" name:"Tags"` + XForwardedForSLBIP string `position:"Query" name:"XForwardedFor_SLBIP"` + XForwardedForSLBID string `position:"Query" name:"XForwardedFor_SLBID"` + XForwardedForProto string `position:"Query" name:"XForwardedFor_proto"` + Gzip string `position:"Query" name:"Gzip"` +} + +// CreateLoadBalancerHTTPSListenerResponse is the response struct for api CreateLoadBalancerHTTPSListener +type CreateLoadBalancerHTTPSListenerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateLoadBalancerHTTPSListenerRequest creates a request to invoke CreateLoadBalancerHTTPSListener API +func CreateCreateLoadBalancerHTTPSListenerRequest() (request *CreateLoadBalancerHTTPSListenerRequest) { + request = &CreateLoadBalancerHTTPSListenerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "CreateLoadBalancerHTTPSListener", "slb", "openAPI") + return +} + +// CreateCreateLoadBalancerHTTPSListenerResponse creates a response to parse from CreateLoadBalancerHTTPSListener response +func CreateCreateLoadBalancerHTTPSListenerResponse() (response *CreateLoadBalancerHTTPSListenerResponse) { + response = &CreateLoadBalancerHTTPSListenerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_tcp_listener.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_tcp_listener.go new file mode 100644 index 0000000..c716e08 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_tcp_listener.go @@ -0,0 +1,127 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateLoadBalancerTCPListener invokes the slb.CreateLoadBalancerTCPListener API synchronously +// api document: https://help.aliyun.com/api/slb/createloadbalancertcplistener.html +func (client *Client) CreateLoadBalancerTCPListener(request *CreateLoadBalancerTCPListenerRequest) (response *CreateLoadBalancerTCPListenerResponse, err error) { + response = CreateCreateLoadBalancerTCPListenerResponse() + err = client.DoAction(request, response) + return +} + +// CreateLoadBalancerTCPListenerWithChan invokes the slb.CreateLoadBalancerTCPListener API asynchronously +// api document: https://help.aliyun.com/api/slb/createloadbalancertcplistener.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLoadBalancerTCPListenerWithChan(request *CreateLoadBalancerTCPListenerRequest) (<-chan *CreateLoadBalancerTCPListenerResponse, <-chan error) { + responseChan := make(chan *CreateLoadBalancerTCPListenerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateLoadBalancerTCPListener(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateLoadBalancerTCPListenerWithCallback invokes the slb.CreateLoadBalancerTCPListener API asynchronously +// api document: https://help.aliyun.com/api/slb/createloadbalancertcplistener.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLoadBalancerTCPListenerWithCallback(request *CreateLoadBalancerTCPListenerRequest, callback func(response *CreateLoadBalancerTCPListenerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateLoadBalancerTCPListenerResponse + var err error + defer close(result) + response, err = client.CreateLoadBalancerTCPListener(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateLoadBalancerTCPListenerRequest is the request struct for api CreateLoadBalancerTCPListener +type CreateLoadBalancerTCPListenerRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + BackendServerPort requests.Integer `position:"Query" name:"BackendServerPort"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + Scheduler string `position:"Query" name:"Scheduler"` + PersistenceTimeout requests.Integer `position:"Query" name:"PersistenceTimeout"` + EstablishedTimeout requests.Integer `position:"Query" name:"EstablishedTimeout"` + HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` + UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` + HealthCheckConnectTimeout requests.Integer `position:"Query" name:"HealthCheckConnectTimeout"` + HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` + HealthCheckInterval requests.Integer `position:"Query" name:"healthCheckInterval"` + HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` + HealthCheckURI string `position:"Query" name:"HealthCheckURI"` + HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` + HealthCheckType string `position:"Query" name:"HealthCheckType"` + MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` + MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` + Tags string `position:"Query" name:"Tags"` +} + +// CreateLoadBalancerTCPListenerResponse is the response struct for api CreateLoadBalancerTCPListener +type CreateLoadBalancerTCPListenerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateLoadBalancerTCPListenerRequest creates a request to invoke CreateLoadBalancerTCPListener API +func CreateCreateLoadBalancerTCPListenerRequest() (request *CreateLoadBalancerTCPListenerRequest) { + request = &CreateLoadBalancerTCPListenerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "CreateLoadBalancerTCPListener", "slb", "openAPI") + return +} + +// CreateCreateLoadBalancerTCPListenerResponse creates a response to parse from CreateLoadBalancerTCPListener response +func CreateCreateLoadBalancerTCPListenerResponse() (response *CreateLoadBalancerTCPListenerResponse) { + response = &CreateLoadBalancerTCPListenerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_udp_listener.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_udp_listener.go new file mode 100644 index 0000000..9564461 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_udp_listener.go @@ -0,0 +1,124 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateLoadBalancerUDPListener invokes the slb.CreateLoadBalancerUDPListener API synchronously +// api document: https://help.aliyun.com/api/slb/createloadbalancerudplistener.html +func (client *Client) CreateLoadBalancerUDPListener(request *CreateLoadBalancerUDPListenerRequest) (response *CreateLoadBalancerUDPListenerResponse, err error) { + response = CreateCreateLoadBalancerUDPListenerResponse() + err = client.DoAction(request, response) + return +} + +// CreateLoadBalancerUDPListenerWithChan invokes the slb.CreateLoadBalancerUDPListener API asynchronously +// api document: https://help.aliyun.com/api/slb/createloadbalancerudplistener.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLoadBalancerUDPListenerWithChan(request *CreateLoadBalancerUDPListenerRequest) (<-chan *CreateLoadBalancerUDPListenerResponse, <-chan error) { + responseChan := make(chan *CreateLoadBalancerUDPListenerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateLoadBalancerUDPListener(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateLoadBalancerUDPListenerWithCallback invokes the slb.CreateLoadBalancerUDPListener API asynchronously +// api document: https://help.aliyun.com/api/slb/createloadbalancerudplistener.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateLoadBalancerUDPListenerWithCallback(request *CreateLoadBalancerUDPListenerRequest, callback func(response *CreateLoadBalancerUDPListenerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateLoadBalancerUDPListenerResponse + var err error + defer close(result) + response, err = client.CreateLoadBalancerUDPListener(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateLoadBalancerUDPListenerRequest is the request struct for api CreateLoadBalancerUDPListener +type CreateLoadBalancerUDPListenerRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + BackendServerPort requests.Integer `position:"Query" name:"BackendServerPort"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + Scheduler string `position:"Query" name:"Scheduler"` + PersistenceTimeout requests.Integer `position:"Query" name:"PersistenceTimeout"` + HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` + UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` + HealthCheckConnectTimeout requests.Integer `position:"Query" name:"HealthCheckConnectTimeout"` + HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` + HealthCheckInterval requests.Integer `position:"Query" name:"healthCheckInterval"` + HealthCheckReq string `position:"Query" name:"healthCheckReq"` + HealthCheckExp string `position:"Query" name:"healthCheckExp"` + MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` + MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` + Tags string `position:"Query" name:"Tags"` +} + +// CreateLoadBalancerUDPListenerResponse is the response struct for api CreateLoadBalancerUDPListener +type CreateLoadBalancerUDPListenerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateLoadBalancerUDPListenerRequest creates a request to invoke CreateLoadBalancerUDPListener API +func CreateCreateLoadBalancerUDPListenerRequest() (request *CreateLoadBalancerUDPListenerRequest) { + request = &CreateLoadBalancerUDPListenerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "CreateLoadBalancerUDPListener", "slb", "openAPI") + return +} + +// CreateCreateLoadBalancerUDPListenerResponse creates a response to parse from CreateLoadBalancerUDPListener response +func CreateCreateLoadBalancerUDPListenerResponse() (response *CreateLoadBalancerUDPListenerResponse) { + response = &CreateLoadBalancerUDPListenerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_master_slave_server_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_master_slave_server_group.go new file mode 100644 index 0000000..5b500be --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_master_slave_server_group.go @@ -0,0 +1,113 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateMasterSlaveServerGroup invokes the slb.CreateMasterSlaveServerGroup API synchronously +// api document: https://help.aliyun.com/api/slb/createmasterslaveservergroup.html +func (client *Client) CreateMasterSlaveServerGroup(request *CreateMasterSlaveServerGroupRequest) (response *CreateMasterSlaveServerGroupResponse, err error) { + response = CreateCreateMasterSlaveServerGroupResponse() + err = client.DoAction(request, response) + return +} + +// CreateMasterSlaveServerGroupWithChan invokes the slb.CreateMasterSlaveServerGroup API asynchronously +// api document: https://help.aliyun.com/api/slb/createmasterslaveservergroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateMasterSlaveServerGroupWithChan(request *CreateMasterSlaveServerGroupRequest) (<-chan *CreateMasterSlaveServerGroupResponse, <-chan error) { + responseChan := make(chan *CreateMasterSlaveServerGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateMasterSlaveServerGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateMasterSlaveServerGroupWithCallback invokes the slb.CreateMasterSlaveServerGroup API asynchronously +// api document: https://help.aliyun.com/api/slb/createmasterslaveservergroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateMasterSlaveServerGroupWithCallback(request *CreateMasterSlaveServerGroupRequest, callback func(response *CreateMasterSlaveServerGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateMasterSlaveServerGroupResponse + var err error + defer close(result) + response, err = client.CreateMasterSlaveServerGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateMasterSlaveServerGroupRequest is the request struct for api CreateMasterSlaveServerGroup +type CreateMasterSlaveServerGroupRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + MasterSlaveServerGroupName string `position:"Query" name:"MasterSlaveServerGroupName"` + MasterSlaveBackendServers string `position:"Query" name:"MasterSlaveBackendServers"` +} + +// CreateMasterSlaveServerGroupResponse is the response struct for api CreateMasterSlaveServerGroup +type CreateMasterSlaveServerGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` + MasterSlaveBackendServers MasterSlaveBackendServersInCreateMasterSlaveServerGroup `json:"MasterSlaveBackendServers" xml:"MasterSlaveBackendServers"` +} + +// CreateCreateMasterSlaveServerGroupRequest creates a request to invoke CreateMasterSlaveServerGroup API +func CreateCreateMasterSlaveServerGroupRequest() (request *CreateMasterSlaveServerGroupRequest) { + request = &CreateMasterSlaveServerGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "CreateMasterSlaveServerGroup", "slb", "openAPI") + return +} + +// CreateCreateMasterSlaveServerGroupResponse creates a response to parse from CreateMasterSlaveServerGroup response +func CreateCreateMasterSlaveServerGroupResponse() (response *CreateMasterSlaveServerGroupResponse) { + response = &CreateMasterSlaveServerGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_master_slave_v_server_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_master_slave_v_server_group.go new file mode 100644 index 0000000..f16dd5c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_master_slave_v_server_group.go @@ -0,0 +1,113 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateMasterSlaveVServerGroup invokes the slb.CreateMasterSlaveVServerGroup API synchronously +// api document: https://help.aliyun.com/api/slb/createmasterslavevservergroup.html +func (client *Client) CreateMasterSlaveVServerGroup(request *CreateMasterSlaveVServerGroupRequest) (response *CreateMasterSlaveVServerGroupResponse, err error) { + response = CreateCreateMasterSlaveVServerGroupResponse() + err = client.DoAction(request, response) + return +} + +// CreateMasterSlaveVServerGroupWithChan invokes the slb.CreateMasterSlaveVServerGroup API asynchronously +// api document: https://help.aliyun.com/api/slb/createmasterslavevservergroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateMasterSlaveVServerGroupWithChan(request *CreateMasterSlaveVServerGroupRequest) (<-chan *CreateMasterSlaveVServerGroupResponse, <-chan error) { + responseChan := make(chan *CreateMasterSlaveVServerGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateMasterSlaveVServerGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateMasterSlaveVServerGroupWithCallback invokes the slb.CreateMasterSlaveVServerGroup API asynchronously +// api document: https://help.aliyun.com/api/slb/createmasterslavevservergroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateMasterSlaveVServerGroupWithCallback(request *CreateMasterSlaveVServerGroupRequest, callback func(response *CreateMasterSlaveVServerGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateMasterSlaveVServerGroupResponse + var err error + defer close(result) + response, err = client.CreateMasterSlaveVServerGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateMasterSlaveVServerGroupRequest is the request struct for api CreateMasterSlaveVServerGroup +type CreateMasterSlaveVServerGroupRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + MasterSlaveVServerGroupName string `position:"Query" name:"MasterSlaveVServerGroupName"` + MasterSlaveBackendServers string `position:"Query" name:"MasterSlaveBackendServers"` +} + +// CreateMasterSlaveVServerGroupResponse is the response struct for api CreateMasterSlaveVServerGroup +type CreateMasterSlaveVServerGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MasterSlaveVServerGroupId string `json:"MasterSlaveVServerGroupId" xml:"MasterSlaveVServerGroupId"` + MasterSlaveBackendServers MasterSlaveBackendServersInCreateMasterSlaveVServerGroup `json:"MasterSlaveBackendServers" xml:"MasterSlaveBackendServers"` +} + +// CreateCreateMasterSlaveVServerGroupRequest creates a request to invoke CreateMasterSlaveVServerGroup API +func CreateCreateMasterSlaveVServerGroupRequest() (request *CreateMasterSlaveVServerGroupRequest) { + request = &CreateMasterSlaveVServerGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "CreateMasterSlaveVServerGroup", "slb", "openAPI") + return +} + +// CreateCreateMasterSlaveVServerGroupResponse creates a response to parse from CreateMasterSlaveVServerGroup response +func CreateCreateMasterSlaveVServerGroupResponse() (response *CreateMasterSlaveVServerGroupResponse) { + response = &CreateMasterSlaveVServerGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_rules.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_rules.go new file mode 100644 index 0000000..e96148f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_rules.go @@ -0,0 +1,112 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateRules invokes the slb.CreateRules API synchronously +// api document: https://help.aliyun.com/api/slb/createrules.html +func (client *Client) CreateRules(request *CreateRulesRequest) (response *CreateRulesResponse, err error) { + response = CreateCreateRulesResponse() + err = client.DoAction(request, response) + return +} + +// CreateRulesWithChan invokes the slb.CreateRules API asynchronously +// api document: https://help.aliyun.com/api/slb/createrules.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateRulesWithChan(request *CreateRulesRequest) (<-chan *CreateRulesResponse, <-chan error) { + responseChan := make(chan *CreateRulesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateRules(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateRulesWithCallback invokes the slb.CreateRules API asynchronously +// api document: https://help.aliyun.com/api/slb/createrules.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateRulesWithCallback(request *CreateRulesRequest, callback func(response *CreateRulesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateRulesResponse + var err error + defer close(result) + response, err = client.CreateRules(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateRulesRequest is the request struct for api CreateRules +type CreateRulesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + RuleList string `position:"Query" name:"RuleList"` +} + +// CreateRulesResponse is the response struct for api CreateRules +type CreateRulesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Rules RulesInCreateRules `json:"Rules" xml:"Rules"` +} + +// CreateCreateRulesRequest creates a request to invoke CreateRules API +func CreateCreateRulesRequest() (request *CreateRulesRequest) { + request = &CreateRulesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "CreateRules", "slb", "openAPI") + return +} + +// CreateCreateRulesResponse creates a response to parse from CreateRules response +func CreateCreateRulesResponse() (response *CreateRulesResponse) { + response = &CreateRulesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_v_server_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_v_server_group.go new file mode 100644 index 0000000..9be1ec5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_v_server_group.go @@ -0,0 +1,113 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateVServerGroup invokes the slb.CreateVServerGroup API synchronously +// api document: https://help.aliyun.com/api/slb/createvservergroup.html +func (client *Client) CreateVServerGroup(request *CreateVServerGroupRequest) (response *CreateVServerGroupResponse, err error) { + response = CreateCreateVServerGroupResponse() + err = client.DoAction(request, response) + return +} + +// CreateVServerGroupWithChan invokes the slb.CreateVServerGroup API asynchronously +// api document: https://help.aliyun.com/api/slb/createvservergroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVServerGroupWithChan(request *CreateVServerGroupRequest) (<-chan *CreateVServerGroupResponse, <-chan error) { + responseChan := make(chan *CreateVServerGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateVServerGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateVServerGroupWithCallback invokes the slb.CreateVServerGroup API asynchronously +// api document: https://help.aliyun.com/api/slb/createvservergroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVServerGroupWithCallback(request *CreateVServerGroupRequest, callback func(response *CreateVServerGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateVServerGroupResponse + var err error + defer close(result) + response, err = client.CreateVServerGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateVServerGroupRequest is the request struct for api CreateVServerGroup +type CreateVServerGroupRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + VServerGroupName string `position:"Query" name:"VServerGroupName"` + BackendServers string `position:"Query" name:"BackendServers"` +} + +// CreateVServerGroupResponse is the response struct for api CreateVServerGroup +type CreateVServerGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + BackendServers BackendServersInCreateVServerGroup `json:"BackendServers" xml:"BackendServers"` +} + +// CreateCreateVServerGroupRequest creates a request to invoke CreateVServerGroup API +func CreateCreateVServerGroupRequest() (request *CreateVServerGroupRequest) { + request = &CreateVServerGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "CreateVServerGroup", "slb", "openAPI") + return +} + +// CreateCreateVServerGroupResponse creates a response to parse from CreateVServerGroup response +func CreateCreateVServerGroupResponse() (response *CreateVServerGroupResponse) { + response = &CreateVServerGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_ca_certificate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_ca_certificate.go new file mode 100644 index 0000000..ff2aa3b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_ca_certificate.go @@ -0,0 +1,108 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCACertificate invokes the slb.DeleteCACertificate API synchronously +// api document: https://help.aliyun.com/api/slb/deletecacertificate.html +func (client *Client) DeleteCACertificate(request *DeleteCACertificateRequest) (response *DeleteCACertificateResponse, err error) { + response = CreateDeleteCACertificateResponse() + err = client.DoAction(request, response) + return +} + +// DeleteCACertificateWithChan invokes the slb.DeleteCACertificate API asynchronously +// api document: https://help.aliyun.com/api/slb/deletecacertificate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCACertificateWithChan(request *DeleteCACertificateRequest) (<-chan *DeleteCACertificateResponse, <-chan error) { + responseChan := make(chan *DeleteCACertificateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCACertificate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteCACertificateWithCallback invokes the slb.DeleteCACertificate API asynchronously +// api document: https://help.aliyun.com/api/slb/deletecacertificate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCACertificateWithCallback(request *DeleteCACertificateRequest, callback func(response *DeleteCACertificateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteCACertificateResponse + var err error + defer close(result) + response, err = client.DeleteCACertificate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteCACertificateRequest is the request struct for api DeleteCACertificate +type DeleteCACertificateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + CACertificateId string `position:"Query" name:"CACertificateId"` +} + +// DeleteCACertificateResponse is the response struct for api DeleteCACertificate +type DeleteCACertificateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteCACertificateRequest creates a request to invoke DeleteCACertificate API +func CreateDeleteCACertificateRequest() (request *DeleteCACertificateRequest) { + request = &DeleteCACertificateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DeleteCACertificate", "slb", "openAPI") + return +} + +// CreateDeleteCACertificateResponse creates a response to parse from DeleteCACertificate response +func CreateDeleteCACertificateResponse() (response *DeleteCACertificateResponse) { + response = &DeleteCACertificateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_load_balancer.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_load_balancer.go new file mode 100644 index 0000000..780197d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_load_balancer.go @@ -0,0 +1,109 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLoadBalancer invokes the slb.DeleteLoadBalancer API synchronously +// api document: https://help.aliyun.com/api/slb/deleteloadbalancer.html +func (client *Client) DeleteLoadBalancer(request *DeleteLoadBalancerRequest) (response *DeleteLoadBalancerResponse, err error) { + response = CreateDeleteLoadBalancerResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLoadBalancerWithChan invokes the slb.DeleteLoadBalancer API asynchronously +// api document: https://help.aliyun.com/api/slb/deleteloadbalancer.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLoadBalancerWithChan(request *DeleteLoadBalancerRequest) (<-chan *DeleteLoadBalancerResponse, <-chan error) { + responseChan := make(chan *DeleteLoadBalancerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLoadBalancer(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLoadBalancerWithCallback invokes the slb.DeleteLoadBalancer API asynchronously +// api document: https://help.aliyun.com/api/slb/deleteloadbalancer.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLoadBalancerWithCallback(request *DeleteLoadBalancerRequest, callback func(response *DeleteLoadBalancerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLoadBalancerResponse + var err error + defer close(result) + response, err = client.DeleteLoadBalancer(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLoadBalancerRequest is the request struct for api DeleteLoadBalancer +type DeleteLoadBalancerRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// DeleteLoadBalancerResponse is the response struct for api DeleteLoadBalancer +type DeleteLoadBalancerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLoadBalancerRequest creates a request to invoke DeleteLoadBalancer API +func CreateDeleteLoadBalancerRequest() (request *DeleteLoadBalancerRequest) { + request = &DeleteLoadBalancerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DeleteLoadBalancer", "slb", "openAPI") + return +} + +// CreateDeleteLoadBalancerResponse creates a response to parse from DeleteLoadBalancer response +func CreateDeleteLoadBalancerResponse() (response *DeleteLoadBalancerResponse) { + response = &DeleteLoadBalancerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_load_balancer_listener.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_load_balancer_listener.go new file mode 100644 index 0000000..e4a481f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_load_balancer_listener.go @@ -0,0 +1,110 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLoadBalancerListener invokes the slb.DeleteLoadBalancerListener API synchronously +// api document: https://help.aliyun.com/api/slb/deleteloadbalancerlistener.html +func (client *Client) DeleteLoadBalancerListener(request *DeleteLoadBalancerListenerRequest) (response *DeleteLoadBalancerListenerResponse, err error) { + response = CreateDeleteLoadBalancerListenerResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLoadBalancerListenerWithChan invokes the slb.DeleteLoadBalancerListener API asynchronously +// api document: https://help.aliyun.com/api/slb/deleteloadbalancerlistener.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLoadBalancerListenerWithChan(request *DeleteLoadBalancerListenerRequest) (<-chan *DeleteLoadBalancerListenerResponse, <-chan error) { + responseChan := make(chan *DeleteLoadBalancerListenerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLoadBalancerListener(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLoadBalancerListenerWithCallback invokes the slb.DeleteLoadBalancerListener API asynchronously +// api document: https://help.aliyun.com/api/slb/deleteloadbalancerlistener.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLoadBalancerListenerWithCallback(request *DeleteLoadBalancerListenerRequest, callback func(response *DeleteLoadBalancerListenerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLoadBalancerListenerResponse + var err error + defer close(result) + response, err = client.DeleteLoadBalancerListener(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLoadBalancerListenerRequest is the request struct for api DeleteLoadBalancerListener +type DeleteLoadBalancerListenerRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// DeleteLoadBalancerListenerResponse is the response struct for api DeleteLoadBalancerListener +type DeleteLoadBalancerListenerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLoadBalancerListenerRequest creates a request to invoke DeleteLoadBalancerListener API +func CreateDeleteLoadBalancerListenerRequest() (request *DeleteLoadBalancerListenerRequest) { + request = &DeleteLoadBalancerListenerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DeleteLoadBalancerListener", "slb", "openAPI") + return +} + +// CreateDeleteLoadBalancerListenerResponse creates a response to parse from DeleteLoadBalancerListener response +func CreateDeleteLoadBalancerListenerResponse() (response *DeleteLoadBalancerListenerResponse) { + response = &DeleteLoadBalancerListenerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_master_slave_server_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_master_slave_server_group.go new file mode 100644 index 0000000..a48cda9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_master_slave_server_group.go @@ -0,0 +1,109 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteMasterSlaveServerGroup invokes the slb.DeleteMasterSlaveServerGroup API synchronously +// api document: https://help.aliyun.com/api/slb/deletemasterslaveservergroup.html +func (client *Client) DeleteMasterSlaveServerGroup(request *DeleteMasterSlaveServerGroupRequest) (response *DeleteMasterSlaveServerGroupResponse, err error) { + response = CreateDeleteMasterSlaveServerGroupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteMasterSlaveServerGroupWithChan invokes the slb.DeleteMasterSlaveServerGroup API asynchronously +// api document: https://help.aliyun.com/api/slb/deletemasterslaveservergroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteMasterSlaveServerGroupWithChan(request *DeleteMasterSlaveServerGroupRequest) (<-chan *DeleteMasterSlaveServerGroupResponse, <-chan error) { + responseChan := make(chan *DeleteMasterSlaveServerGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteMasterSlaveServerGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteMasterSlaveServerGroupWithCallback invokes the slb.DeleteMasterSlaveServerGroup API asynchronously +// api document: https://help.aliyun.com/api/slb/deletemasterslaveservergroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteMasterSlaveServerGroupWithCallback(request *DeleteMasterSlaveServerGroupRequest, callback func(response *DeleteMasterSlaveServerGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteMasterSlaveServerGroupResponse + var err error + defer close(result) + response, err = client.DeleteMasterSlaveServerGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteMasterSlaveServerGroupRequest is the request struct for api DeleteMasterSlaveServerGroup +type DeleteMasterSlaveServerGroupRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` +} + +// DeleteMasterSlaveServerGroupResponse is the response struct for api DeleteMasterSlaveServerGroup +type DeleteMasterSlaveServerGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteMasterSlaveServerGroupRequest creates a request to invoke DeleteMasterSlaveServerGroup API +func CreateDeleteMasterSlaveServerGroupRequest() (request *DeleteMasterSlaveServerGroupRequest) { + request = &DeleteMasterSlaveServerGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DeleteMasterSlaveServerGroup", "slb", "openAPI") + return +} + +// CreateDeleteMasterSlaveServerGroupResponse creates a response to parse from DeleteMasterSlaveServerGroup response +func CreateDeleteMasterSlaveServerGroupResponse() (response *DeleteMasterSlaveServerGroupResponse) { + response = &DeleteMasterSlaveServerGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_master_slave_v_server_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_master_slave_v_server_group.go new file mode 100644 index 0000000..f7af187 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_master_slave_v_server_group.go @@ -0,0 +1,109 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteMasterSlaveVServerGroup invokes the slb.DeleteMasterSlaveVServerGroup API synchronously +// api document: https://help.aliyun.com/api/slb/deletemasterslavevservergroup.html +func (client *Client) DeleteMasterSlaveVServerGroup(request *DeleteMasterSlaveVServerGroupRequest) (response *DeleteMasterSlaveVServerGroupResponse, err error) { + response = CreateDeleteMasterSlaveVServerGroupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteMasterSlaveVServerGroupWithChan invokes the slb.DeleteMasterSlaveVServerGroup API asynchronously +// api document: https://help.aliyun.com/api/slb/deletemasterslavevservergroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteMasterSlaveVServerGroupWithChan(request *DeleteMasterSlaveVServerGroupRequest) (<-chan *DeleteMasterSlaveVServerGroupResponse, <-chan error) { + responseChan := make(chan *DeleteMasterSlaveVServerGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteMasterSlaveVServerGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteMasterSlaveVServerGroupWithCallback invokes the slb.DeleteMasterSlaveVServerGroup API asynchronously +// api document: https://help.aliyun.com/api/slb/deletemasterslavevservergroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteMasterSlaveVServerGroupWithCallback(request *DeleteMasterSlaveVServerGroupRequest, callback func(response *DeleteMasterSlaveVServerGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteMasterSlaveVServerGroupResponse + var err error + defer close(result) + response, err = client.DeleteMasterSlaveVServerGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteMasterSlaveVServerGroupRequest is the request struct for api DeleteMasterSlaveVServerGroup +type DeleteMasterSlaveVServerGroupRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + MasterSlaveVServerGroupId string `position:"Query" name:"MasterSlaveVServerGroupId"` +} + +// DeleteMasterSlaveVServerGroupResponse is the response struct for api DeleteMasterSlaveVServerGroup +type DeleteMasterSlaveVServerGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteMasterSlaveVServerGroupRequest creates a request to invoke DeleteMasterSlaveVServerGroup API +func CreateDeleteMasterSlaveVServerGroupRequest() (request *DeleteMasterSlaveVServerGroupRequest) { + request = &DeleteMasterSlaveVServerGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DeleteMasterSlaveVServerGroup", "slb", "openAPI") + return +} + +// CreateDeleteMasterSlaveVServerGroupResponse creates a response to parse from DeleteMasterSlaveVServerGroup response +func CreateDeleteMasterSlaveVServerGroupResponse() (response *DeleteMasterSlaveVServerGroupResponse) { + response = &DeleteMasterSlaveVServerGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_rules.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_rules.go new file mode 100644 index 0000000..6e40cab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_rules.go @@ -0,0 +1,109 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteRules invokes the slb.DeleteRules API synchronously +// api document: https://help.aliyun.com/api/slb/deleterules.html +func (client *Client) DeleteRules(request *DeleteRulesRequest) (response *DeleteRulesResponse, err error) { + response = CreateDeleteRulesResponse() + err = client.DoAction(request, response) + return +} + +// DeleteRulesWithChan invokes the slb.DeleteRules API asynchronously +// api document: https://help.aliyun.com/api/slb/deleterules.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteRulesWithChan(request *DeleteRulesRequest) (<-chan *DeleteRulesResponse, <-chan error) { + responseChan := make(chan *DeleteRulesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteRules(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteRulesWithCallback invokes the slb.DeleteRules API asynchronously +// api document: https://help.aliyun.com/api/slb/deleterules.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteRulesWithCallback(request *DeleteRulesRequest, callback func(response *DeleteRulesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteRulesResponse + var err error + defer close(result) + response, err = client.DeleteRules(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteRulesRequest is the request struct for api DeleteRules +type DeleteRulesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + RuleIds string `position:"Query" name:"RuleIds"` +} + +// DeleteRulesResponse is the response struct for api DeleteRules +type DeleteRulesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteRulesRequest creates a request to invoke DeleteRules API +func CreateDeleteRulesRequest() (request *DeleteRulesRequest) { + request = &DeleteRulesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DeleteRules", "slb", "openAPI") + return +} + +// CreateDeleteRulesResponse creates a response to parse from DeleteRules response +func CreateDeleteRulesResponse() (response *DeleteRulesResponse) { + response = &DeleteRulesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_server_certificate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_server_certificate.go new file mode 100644 index 0000000..47a805c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_server_certificate.go @@ -0,0 +1,109 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteServerCertificate invokes the slb.DeleteServerCertificate API synchronously +// api document: https://help.aliyun.com/api/slb/deleteservercertificate.html +func (client *Client) DeleteServerCertificate(request *DeleteServerCertificateRequest) (response *DeleteServerCertificateResponse, err error) { + response = CreateDeleteServerCertificateResponse() + err = client.DoAction(request, response) + return +} + +// DeleteServerCertificateWithChan invokes the slb.DeleteServerCertificate API asynchronously +// api document: https://help.aliyun.com/api/slb/deleteservercertificate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteServerCertificateWithChan(request *DeleteServerCertificateRequest) (<-chan *DeleteServerCertificateResponse, <-chan error) { + responseChan := make(chan *DeleteServerCertificateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteServerCertificate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteServerCertificateWithCallback invokes the slb.DeleteServerCertificate API asynchronously +// api document: https://help.aliyun.com/api/slb/deleteservercertificate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteServerCertificateWithCallback(request *DeleteServerCertificateRequest, callback func(response *DeleteServerCertificateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteServerCertificateResponse + var err error + defer close(result) + response, err = client.DeleteServerCertificate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteServerCertificateRequest is the request struct for api DeleteServerCertificate +type DeleteServerCertificateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ServerCertificateId string `position:"Query" name:"ServerCertificateId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// DeleteServerCertificateResponse is the response struct for api DeleteServerCertificate +type DeleteServerCertificateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteServerCertificateRequest creates a request to invoke DeleteServerCertificate API +func CreateDeleteServerCertificateRequest() (request *DeleteServerCertificateRequest) { + request = &DeleteServerCertificateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DeleteServerCertificate", "slb", "openAPI") + return +} + +// CreateDeleteServerCertificateResponse creates a response to parse from DeleteServerCertificate response +func CreateDeleteServerCertificateResponse() (response *DeleteServerCertificateResponse) { + response = &DeleteServerCertificateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_v_server_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_v_server_group.go new file mode 100644 index 0000000..5e58228 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_v_server_group.go @@ -0,0 +1,109 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteVServerGroup invokes the slb.DeleteVServerGroup API synchronously +// api document: https://help.aliyun.com/api/slb/deletevservergroup.html +func (client *Client) DeleteVServerGroup(request *DeleteVServerGroupRequest) (response *DeleteVServerGroupResponse, err error) { + response = CreateDeleteVServerGroupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteVServerGroupWithChan invokes the slb.DeleteVServerGroup API asynchronously +// api document: https://help.aliyun.com/api/slb/deletevservergroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteVServerGroupWithChan(request *DeleteVServerGroupRequest) (<-chan *DeleteVServerGroupResponse, <-chan error) { + responseChan := make(chan *DeleteVServerGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteVServerGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteVServerGroupWithCallback invokes the slb.DeleteVServerGroup API asynchronously +// api document: https://help.aliyun.com/api/slb/deletevservergroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteVServerGroupWithCallback(request *DeleteVServerGroupRequest, callback func(response *DeleteVServerGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteVServerGroupResponse + var err error + defer close(result) + response, err = client.DeleteVServerGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteVServerGroupRequest is the request struct for api DeleteVServerGroup +type DeleteVServerGroupRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` +} + +// DeleteVServerGroupResponse is the response struct for api DeleteVServerGroup +type DeleteVServerGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteVServerGroupRequest creates a request to invoke DeleteVServerGroup API +func CreateDeleteVServerGroupRequest() (request *DeleteVServerGroupRequest) { + request = &DeleteVServerGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DeleteVServerGroup", "slb", "openAPI") + return +} + +// CreateDeleteVServerGroupResponse creates a response to parse from DeleteVServerGroup response +func CreateDeleteVServerGroupResponse() (response *DeleteVServerGroupResponse) { + response = &DeleteVServerGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_ca_certificates.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_ca_certificates.go new file mode 100644 index 0000000..d4fb96a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_ca_certificates.go @@ -0,0 +1,110 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCACertificates invokes the slb.DescribeCACertificates API synchronously +// api document: https://help.aliyun.com/api/slb/describecacertificates.html +func (client *Client) DescribeCACertificates(request *DescribeCACertificatesRequest) (response *DescribeCACertificatesResponse, err error) { + response = CreateDescribeCACertificatesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCACertificatesWithChan invokes the slb.DescribeCACertificates API asynchronously +// api document: https://help.aliyun.com/api/slb/describecacertificates.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCACertificatesWithChan(request *DescribeCACertificatesRequest) (<-chan *DescribeCACertificatesResponse, <-chan error) { + responseChan := make(chan *DescribeCACertificatesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCACertificates(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCACertificatesWithCallback invokes the slb.DescribeCACertificates API asynchronously +// api document: https://help.aliyun.com/api/slb/describecacertificates.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCACertificatesWithCallback(request *DescribeCACertificatesRequest, callback func(response *DescribeCACertificatesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCACertificatesResponse + var err error + defer close(result) + response, err = client.DescribeCACertificates(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCACertificatesRequest is the request struct for api DescribeCACertificates +type DescribeCACertificatesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + CACertificateId string `position:"Query" name:"CACertificateId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` +} + +// DescribeCACertificatesResponse is the response struct for api DescribeCACertificates +type DescribeCACertificatesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CACertificates CACertificates `json:"CACertificates" xml:"CACertificates"` +} + +// CreateDescribeCACertificatesRequest creates a request to invoke DescribeCACertificates API +func CreateDescribeCACertificatesRequest() (request *DescribeCACertificatesRequest) { + request = &DescribeCACertificatesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeCACertificates", "slb", "openAPI") + return +} + +// CreateDescribeCACertificatesResponse creates a response to parse from DescribeCACertificates response +func CreateDescribeCACertificatesResponse() (response *DescribeCACertificatesResponse) { + response = &DescribeCACertificatesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_health_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_health_status.go new file mode 100644 index 0000000..3f8605b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_health_status.go @@ -0,0 +1,111 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeHealthStatus invokes the slb.DescribeHealthStatus API synchronously +// api document: https://help.aliyun.com/api/slb/describehealthstatus.html +func (client *Client) DescribeHealthStatus(request *DescribeHealthStatusRequest) (response *DescribeHealthStatusResponse, err error) { + response = CreateDescribeHealthStatusResponse() + err = client.DoAction(request, response) + return +} + +// DescribeHealthStatusWithChan invokes the slb.DescribeHealthStatus API asynchronously +// api document: https://help.aliyun.com/api/slb/describehealthstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeHealthStatusWithChan(request *DescribeHealthStatusRequest) (<-chan *DescribeHealthStatusResponse, <-chan error) { + responseChan := make(chan *DescribeHealthStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeHealthStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeHealthStatusWithCallback invokes the slb.DescribeHealthStatus API asynchronously +// api document: https://help.aliyun.com/api/slb/describehealthstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeHealthStatusWithCallback(request *DescribeHealthStatusRequest, callback func(response *DescribeHealthStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeHealthStatusResponse + var err error + defer close(result) + response, err = client.DescribeHealthStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeHealthStatusRequest is the request struct for api DescribeHealthStatus +type DescribeHealthStatusRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// DescribeHealthStatusResponse is the response struct for api DescribeHealthStatus +type DescribeHealthStatusResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + BackendServers BackendServersInDescribeHealthStatus `json:"BackendServers" xml:"BackendServers"` +} + +// CreateDescribeHealthStatusRequest creates a request to invoke DescribeHealthStatus API +func CreateDescribeHealthStatusRequest() (request *DescribeHealthStatusRequest) { + request = &DescribeHealthStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeHealthStatus", "slb", "openAPI") + return +} + +// CreateDescribeHealthStatusResponse creates a response to parse from DescribeHealthStatus response +func CreateDescribeHealthStatusResponse() (response *DescribeHealthStatusResponse) { + response = &DescribeHealthStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_listener_access_control_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_listener_access_control_attribute.go new file mode 100644 index 0000000..5b08a60 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_listener_access_control_attribute.go @@ -0,0 +1,112 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeListenerAccessControlAttribute invokes the slb.DescribeListenerAccessControlAttribute API synchronously +// api document: https://help.aliyun.com/api/slb/describelisteneraccesscontrolattribute.html +func (client *Client) DescribeListenerAccessControlAttribute(request *DescribeListenerAccessControlAttributeRequest) (response *DescribeListenerAccessControlAttributeResponse, err error) { + response = CreateDescribeListenerAccessControlAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeListenerAccessControlAttributeWithChan invokes the slb.DescribeListenerAccessControlAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/describelisteneraccesscontrolattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeListenerAccessControlAttributeWithChan(request *DescribeListenerAccessControlAttributeRequest) (<-chan *DescribeListenerAccessControlAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeListenerAccessControlAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeListenerAccessControlAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeListenerAccessControlAttributeWithCallback invokes the slb.DescribeListenerAccessControlAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/describelisteneraccesscontrolattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeListenerAccessControlAttributeWithCallback(request *DescribeListenerAccessControlAttributeRequest, callback func(response *DescribeListenerAccessControlAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeListenerAccessControlAttributeResponse + var err error + defer close(result) + response, err = client.DescribeListenerAccessControlAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeListenerAccessControlAttributeRequest is the request struct for api DescribeListenerAccessControlAttribute +type DescribeListenerAccessControlAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// DescribeListenerAccessControlAttributeResponse is the response struct for api DescribeListenerAccessControlAttribute +type DescribeListenerAccessControlAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AccessControlStatus string `json:"AccessControlStatus" xml:"AccessControlStatus"` + SourceItems string `json:"SourceItems" xml:"SourceItems"` +} + +// CreateDescribeListenerAccessControlAttributeRequest creates a request to invoke DescribeListenerAccessControlAttribute API +func CreateDescribeListenerAccessControlAttributeRequest() (request *DescribeListenerAccessControlAttributeRequest) { + request = &DescribeListenerAccessControlAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeListenerAccessControlAttribute", "slb", "openAPI") + return +} + +// CreateDescribeListenerAccessControlAttributeResponse creates a response to parse from DescribeListenerAccessControlAttribute response +func CreateDescribeListenerAccessControlAttributeResponse() (response *DescribeListenerAccessControlAttributeResponse) { + response = &DescribeListenerAccessControlAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_attribute.go new file mode 100644 index 0000000..f438d5e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_attribute.go @@ -0,0 +1,135 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLoadBalancerAttribute invokes the slb.DescribeLoadBalancerAttribute API synchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancerattribute.html +func (client *Client) DescribeLoadBalancerAttribute(request *DescribeLoadBalancerAttributeRequest) (response *DescribeLoadBalancerAttributeResponse, err error) { + response = CreateDescribeLoadBalancerAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLoadBalancerAttributeWithChan invokes the slb.DescribeLoadBalancerAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancerattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLoadBalancerAttributeWithChan(request *DescribeLoadBalancerAttributeRequest) (<-chan *DescribeLoadBalancerAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeLoadBalancerAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLoadBalancerAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLoadBalancerAttributeWithCallback invokes the slb.DescribeLoadBalancerAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancerattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLoadBalancerAttributeWithCallback(request *DescribeLoadBalancerAttributeRequest, callback func(response *DescribeLoadBalancerAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLoadBalancerAttributeResponse + var err error + defer close(result) + response, err = client.DescribeLoadBalancerAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLoadBalancerAttributeRequest is the request struct for api DescribeLoadBalancerAttribute +type DescribeLoadBalancerAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// DescribeLoadBalancerAttributeResponse is the response struct for api DescribeLoadBalancerAttribute +type DescribeLoadBalancerAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + LoadBalancerName string `json:"LoadBalancerName" xml:"LoadBalancerName"` + LoadBalancerStatus string `json:"LoadBalancerStatus" xml:"LoadBalancerStatus"` + RegionId string `json:"RegionId" xml:"RegionId"` + RegionIdAlias string `json:"RegionIdAlias" xml:"RegionIdAlias"` + Address string `json:"Address" xml:"Address"` + AddressType string `json:"AddressType" xml:"AddressType"` + VpcId string `json:"VpcId" xml:"VpcId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + AutoReleaseTime int `json:"AutoReleaseTime" xml:"AutoReleaseTime"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + LoadBalancerSpec string `json:"LoadBalancerSpec" xml:"LoadBalancerSpec"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + CreateTimeStamp int `json:"CreateTimeStamp" xml:"CreateTimeStamp"` + EndTime string `json:"EndTime" xml:"EndTime"` + EndTimeStamp int `json:"EndTimeStamp" xml:"EndTimeStamp"` + PayType string `json:"PayType" xml:"PayType"` + MasterZoneId string `json:"MasterZoneId" xml:"MasterZoneId"` + SlaveZoneId string `json:"SlaveZoneId" xml:"SlaveZoneId"` + ListenerPorts ListenerPorts `json:"ListenerPorts" xml:"ListenerPorts"` + ListenerPortsAndProtocal ListenerPortsAndProtocal `json:"ListenerPortsAndProtocal" xml:"ListenerPortsAndProtocal"` + ListenerPortsAndProtocol ListenerPortsAndProtocol `json:"ListenerPortsAndProtocol" xml:"ListenerPortsAndProtocol"` + BackendServers BackendServersInDescribeLoadBalancerAttribute `json:"BackendServers" xml:"BackendServers"` +} + +// CreateDescribeLoadBalancerAttributeRequest creates a request to invoke DescribeLoadBalancerAttribute API +func CreateDescribeLoadBalancerAttributeRequest() (request *DescribeLoadBalancerAttributeRequest) { + request = &DescribeLoadBalancerAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeLoadBalancerAttribute", "slb", "openAPI") + return +} + +// CreateDescribeLoadBalancerAttributeResponse creates a response to parse from DescribeLoadBalancerAttribute response +func CreateDescribeLoadBalancerAttributeResponse() (response *DescribeLoadBalancerAttributeResponse) { + response = &DescribeLoadBalancerAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_auto_release_time.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_auto_release_time.go new file mode 100644 index 0000000..b56eab6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_auto_release_time.go @@ -0,0 +1,110 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLoadBalancerAutoReleaseTime invokes the slb.DescribeLoadBalancerAutoReleaseTime API synchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancerautoreleasetime.html +func (client *Client) DescribeLoadBalancerAutoReleaseTime(request *DescribeLoadBalancerAutoReleaseTimeRequest) (response *DescribeLoadBalancerAutoReleaseTimeResponse, err error) { + response = CreateDescribeLoadBalancerAutoReleaseTimeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLoadBalancerAutoReleaseTimeWithChan invokes the slb.DescribeLoadBalancerAutoReleaseTime API asynchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancerautoreleasetime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLoadBalancerAutoReleaseTimeWithChan(request *DescribeLoadBalancerAutoReleaseTimeRequest) (<-chan *DescribeLoadBalancerAutoReleaseTimeResponse, <-chan error) { + responseChan := make(chan *DescribeLoadBalancerAutoReleaseTimeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLoadBalancerAutoReleaseTime(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLoadBalancerAutoReleaseTimeWithCallback invokes the slb.DescribeLoadBalancerAutoReleaseTime API asynchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancerautoreleasetime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLoadBalancerAutoReleaseTimeWithCallback(request *DescribeLoadBalancerAutoReleaseTimeRequest, callback func(response *DescribeLoadBalancerAutoReleaseTimeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLoadBalancerAutoReleaseTimeResponse + var err error + defer close(result) + response, err = client.DescribeLoadBalancerAutoReleaseTime(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLoadBalancerAutoReleaseTimeRequest is the request struct for api DescribeLoadBalancerAutoReleaseTime +type DescribeLoadBalancerAutoReleaseTimeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` +} + +// DescribeLoadBalancerAutoReleaseTimeResponse is the response struct for api DescribeLoadBalancerAutoReleaseTime +type DescribeLoadBalancerAutoReleaseTimeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AutoReleaseTime int `json:"AutoReleaseTime" xml:"AutoReleaseTime"` +} + +// CreateDescribeLoadBalancerAutoReleaseTimeRequest creates a request to invoke DescribeLoadBalancerAutoReleaseTime API +func CreateDescribeLoadBalancerAutoReleaseTimeRequest() (request *DescribeLoadBalancerAutoReleaseTimeRequest) { + request = &DescribeLoadBalancerAutoReleaseTimeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeLoadBalancerAutoReleaseTime", "slb", "openAPI") + return +} + +// CreateDescribeLoadBalancerAutoReleaseTimeResponse creates a response to parse from DescribeLoadBalancerAutoReleaseTime response +func CreateDescribeLoadBalancerAutoReleaseTimeResponse() (response *DescribeLoadBalancerAutoReleaseTimeResponse) { + response = &DescribeLoadBalancerAutoReleaseTimeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_http_listener_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_http_listener_attribute.go new file mode 100644 index 0000000..5bc9446 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_http_listener_attribute.go @@ -0,0 +1,136 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLoadBalancerHTTPListenerAttribute invokes the slb.DescribeLoadBalancerHTTPListenerAttribute API synchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancerhttplistenerattribute.html +func (client *Client) DescribeLoadBalancerHTTPListenerAttribute(request *DescribeLoadBalancerHTTPListenerAttributeRequest) (response *DescribeLoadBalancerHTTPListenerAttributeResponse, err error) { + response = CreateDescribeLoadBalancerHTTPListenerAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLoadBalancerHTTPListenerAttributeWithChan invokes the slb.DescribeLoadBalancerHTTPListenerAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancerhttplistenerattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLoadBalancerHTTPListenerAttributeWithChan(request *DescribeLoadBalancerHTTPListenerAttributeRequest) (<-chan *DescribeLoadBalancerHTTPListenerAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeLoadBalancerHTTPListenerAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLoadBalancerHTTPListenerAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLoadBalancerHTTPListenerAttributeWithCallback invokes the slb.DescribeLoadBalancerHTTPListenerAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancerhttplistenerattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLoadBalancerHTTPListenerAttributeWithCallback(request *DescribeLoadBalancerHTTPListenerAttributeRequest, callback func(response *DescribeLoadBalancerHTTPListenerAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLoadBalancerHTTPListenerAttributeResponse + var err error + defer close(result) + response, err = client.DescribeLoadBalancerHTTPListenerAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLoadBalancerHTTPListenerAttributeRequest is the request struct for api DescribeLoadBalancerHTTPListenerAttribute +type DescribeLoadBalancerHTTPListenerAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// DescribeLoadBalancerHTTPListenerAttributeResponse is the response struct for api DescribeLoadBalancerHTTPListenerAttribute +type DescribeLoadBalancerHTTPListenerAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` + BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + Status string `json:"Status" xml:"Status"` + SecurityStatus string `json:"SecurityStatus" xml:"SecurityStatus"` + XForwardedFor string `json:"XForwardedFor" xml:"XForwardedFor"` + Scheduler string `json:"Scheduler" xml:"Scheduler"` + StickySession string `json:"StickySession" xml:"StickySession"` + StickySessionType string `json:"StickySessionType" xml:"StickySessionType"` + CookieTimeout int `json:"CookieTimeout" xml:"CookieTimeout"` + Cookie string `json:"Cookie" xml:"Cookie"` + HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` + HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` + HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` + HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` + UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` + HealthCheckTimeout int `json:"HealthCheckTimeout" xml:"HealthCheckTimeout"` + HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` + HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` + HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` + MaxConnection int `json:"MaxConnection" xml:"MaxConnection"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + Gzip string `json:"Gzip" xml:"Gzip"` + XForwardedForSLBIP string `json:"XForwardedFor_SLBIP" xml:"XForwardedFor_SLBIP"` + XForwardedForSLBID string `json:"XForwardedFor_SLBID" xml:"XForwardedFor_SLBID"` + XForwardedForProto string `json:"XForwardedFor_proto" xml:"XForwardedFor_proto"` +} + +// CreateDescribeLoadBalancerHTTPListenerAttributeRequest creates a request to invoke DescribeLoadBalancerHTTPListenerAttribute API +func CreateDescribeLoadBalancerHTTPListenerAttributeRequest() (request *DescribeLoadBalancerHTTPListenerAttributeRequest) { + request = &DescribeLoadBalancerHTTPListenerAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeLoadBalancerHTTPListenerAttribute", "slb", "openAPI") + return +} + +// CreateDescribeLoadBalancerHTTPListenerAttributeResponse creates a response to parse from DescribeLoadBalancerHTTPListenerAttribute response +func CreateDescribeLoadBalancerHTTPListenerAttributeResponse() (response *DescribeLoadBalancerHTTPListenerAttributeResponse) { + response = &DescribeLoadBalancerHTTPListenerAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_https_listener_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_https_listener_attribute.go new file mode 100644 index 0000000..51c48c0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_https_listener_attribute.go @@ -0,0 +1,138 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLoadBalancerHTTPSListenerAttribute invokes the slb.DescribeLoadBalancerHTTPSListenerAttribute API synchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancerhttpslistenerattribute.html +func (client *Client) DescribeLoadBalancerHTTPSListenerAttribute(request *DescribeLoadBalancerHTTPSListenerAttributeRequest) (response *DescribeLoadBalancerHTTPSListenerAttributeResponse, err error) { + response = CreateDescribeLoadBalancerHTTPSListenerAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLoadBalancerHTTPSListenerAttributeWithChan invokes the slb.DescribeLoadBalancerHTTPSListenerAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancerhttpslistenerattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLoadBalancerHTTPSListenerAttributeWithChan(request *DescribeLoadBalancerHTTPSListenerAttributeRequest) (<-chan *DescribeLoadBalancerHTTPSListenerAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeLoadBalancerHTTPSListenerAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLoadBalancerHTTPSListenerAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLoadBalancerHTTPSListenerAttributeWithCallback invokes the slb.DescribeLoadBalancerHTTPSListenerAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancerhttpslistenerattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLoadBalancerHTTPSListenerAttributeWithCallback(request *DescribeLoadBalancerHTTPSListenerAttributeRequest, callback func(response *DescribeLoadBalancerHTTPSListenerAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLoadBalancerHTTPSListenerAttributeResponse + var err error + defer close(result) + response, err = client.DescribeLoadBalancerHTTPSListenerAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLoadBalancerHTTPSListenerAttributeRequest is the request struct for api DescribeLoadBalancerHTTPSListenerAttribute +type DescribeLoadBalancerHTTPSListenerAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// DescribeLoadBalancerHTTPSListenerAttributeResponse is the response struct for api DescribeLoadBalancerHTTPSListenerAttribute +type DescribeLoadBalancerHTTPSListenerAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` + BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + Status string `json:"Status" xml:"Status"` + SecurityStatus string `json:"SecurityStatus" xml:"SecurityStatus"` + XForwardedFor string `json:"XForwardedFor" xml:"XForwardedFor"` + Scheduler string `json:"Scheduler" xml:"Scheduler"` + StickySession string `json:"StickySession" xml:"StickySession"` + StickySessionType string `json:"StickySessionType" xml:"StickySessionType"` + CookieTimeout int `json:"CookieTimeout" xml:"CookieTimeout"` + Cookie string `json:"Cookie" xml:"Cookie"` + HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` + HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` + HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` + HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` + UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` + HealthCheckTimeout int `json:"HealthCheckTimeout" xml:"HealthCheckTimeout"` + HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` + HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` + HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` + ServerCertificateId string `json:"ServerCertificateId" xml:"ServerCertificateId"` + CACertificateId string `json:"CACertificateId" xml:"CACertificateId"` + MaxConnection int `json:"MaxConnection" xml:"MaxConnection"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + Gzip string `json:"Gzip" xml:"Gzip"` + XForwardedForSLBIP string `json:"XForwardedFor_SLBIP" xml:"XForwardedFor_SLBIP"` + XForwardedForSLBID string `json:"XForwardedFor_SLBID" xml:"XForwardedFor_SLBID"` + XForwardedForProto string `json:"XForwardedFor_proto" xml:"XForwardedFor_proto"` +} + +// CreateDescribeLoadBalancerHTTPSListenerAttributeRequest creates a request to invoke DescribeLoadBalancerHTTPSListenerAttribute API +func CreateDescribeLoadBalancerHTTPSListenerAttributeRequest() (request *DescribeLoadBalancerHTTPSListenerAttributeRequest) { + request = &DescribeLoadBalancerHTTPSListenerAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeLoadBalancerHTTPSListenerAttribute", "slb", "openAPI") + return +} + +// CreateDescribeLoadBalancerHTTPSListenerAttributeResponse creates a response to parse from DescribeLoadBalancerHTTPSListenerAttribute response +func CreateDescribeLoadBalancerHTTPSListenerAttributeResponse() (response *DescribeLoadBalancerHTTPSListenerAttributeResponse) { + response = &DescribeLoadBalancerHTTPSListenerAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_tcp_listener_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_tcp_listener_attribute.go new file mode 100644 index 0000000..4f60b0e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_tcp_listener_attribute.go @@ -0,0 +1,131 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLoadBalancerTCPListenerAttribute invokes the slb.DescribeLoadBalancerTCPListenerAttribute API synchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancertcplistenerattribute.html +func (client *Client) DescribeLoadBalancerTCPListenerAttribute(request *DescribeLoadBalancerTCPListenerAttributeRequest) (response *DescribeLoadBalancerTCPListenerAttributeResponse, err error) { + response = CreateDescribeLoadBalancerTCPListenerAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLoadBalancerTCPListenerAttributeWithChan invokes the slb.DescribeLoadBalancerTCPListenerAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancertcplistenerattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLoadBalancerTCPListenerAttributeWithChan(request *DescribeLoadBalancerTCPListenerAttributeRequest) (<-chan *DescribeLoadBalancerTCPListenerAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeLoadBalancerTCPListenerAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLoadBalancerTCPListenerAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLoadBalancerTCPListenerAttributeWithCallback invokes the slb.DescribeLoadBalancerTCPListenerAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancertcplistenerattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLoadBalancerTCPListenerAttributeWithCallback(request *DescribeLoadBalancerTCPListenerAttributeRequest, callback func(response *DescribeLoadBalancerTCPListenerAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLoadBalancerTCPListenerAttributeResponse + var err error + defer close(result) + response, err = client.DescribeLoadBalancerTCPListenerAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLoadBalancerTCPListenerAttributeRequest is the request struct for api DescribeLoadBalancerTCPListenerAttribute +type DescribeLoadBalancerTCPListenerAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// DescribeLoadBalancerTCPListenerAttributeResponse is the response struct for api DescribeLoadBalancerTCPListenerAttribute +type DescribeLoadBalancerTCPListenerAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` + BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` + Status string `json:"Status" xml:"Status"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + Scheduler string `json:"Scheduler" xml:"Scheduler"` + SynProxy string `json:"SynProxy" xml:"SynProxy"` + PersistenceTimeout int `json:"PersistenceTimeout" xml:"PersistenceTimeout"` + EstablishedTimeout int `json:"EstablishedTimeout" xml:"EstablishedTimeout"` + HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` + HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` + UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` + HealthCheckConnectTimeout int `json:"HealthCheckConnectTimeout" xml:"HealthCheckConnectTimeout"` + HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` + HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` + HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` + HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` + HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` + HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` + MaxConnection int `json:"MaxConnection" xml:"MaxConnection"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` +} + +// CreateDescribeLoadBalancerTCPListenerAttributeRequest creates a request to invoke DescribeLoadBalancerTCPListenerAttribute API +func CreateDescribeLoadBalancerTCPListenerAttributeRequest() (request *DescribeLoadBalancerTCPListenerAttributeRequest) { + request = &DescribeLoadBalancerTCPListenerAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeLoadBalancerTCPListenerAttribute", "slb", "openAPI") + return +} + +// CreateDescribeLoadBalancerTCPListenerAttributeResponse creates a response to parse from DescribeLoadBalancerTCPListenerAttribute response +func CreateDescribeLoadBalancerTCPListenerAttributeResponse() (response *DescribeLoadBalancerTCPListenerAttributeResponse) { + response = &DescribeLoadBalancerTCPListenerAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_udp_listener_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_udp_listener_attribute.go new file mode 100644 index 0000000..3f4fdad --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_udp_listener_attribute.go @@ -0,0 +1,127 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLoadBalancerUDPListenerAttribute invokes the slb.DescribeLoadBalancerUDPListenerAttribute API synchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancerudplistenerattribute.html +func (client *Client) DescribeLoadBalancerUDPListenerAttribute(request *DescribeLoadBalancerUDPListenerAttributeRequest) (response *DescribeLoadBalancerUDPListenerAttributeResponse, err error) { + response = CreateDescribeLoadBalancerUDPListenerAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLoadBalancerUDPListenerAttributeWithChan invokes the slb.DescribeLoadBalancerUDPListenerAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancerudplistenerattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLoadBalancerUDPListenerAttributeWithChan(request *DescribeLoadBalancerUDPListenerAttributeRequest) (<-chan *DescribeLoadBalancerUDPListenerAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeLoadBalancerUDPListenerAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLoadBalancerUDPListenerAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLoadBalancerUDPListenerAttributeWithCallback invokes the slb.DescribeLoadBalancerUDPListenerAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancerudplistenerattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLoadBalancerUDPListenerAttributeWithCallback(request *DescribeLoadBalancerUDPListenerAttributeRequest, callback func(response *DescribeLoadBalancerUDPListenerAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLoadBalancerUDPListenerAttributeResponse + var err error + defer close(result) + response, err = client.DescribeLoadBalancerUDPListenerAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLoadBalancerUDPListenerAttributeRequest is the request struct for api DescribeLoadBalancerUDPListenerAttribute +type DescribeLoadBalancerUDPListenerAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// DescribeLoadBalancerUDPListenerAttributeResponse is the response struct for api DescribeLoadBalancerUDPListenerAttribute +type DescribeLoadBalancerUDPListenerAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` + BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` + Status string `json:"Status" xml:"Status"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + Scheduler string `json:"Scheduler" xml:"Scheduler"` + PersistenceTimeout int `json:"PersistenceTimeout" xml:"PersistenceTimeout"` + HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` + HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` + UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` + HealthCheckConnectTimeout int `json:"HealthCheckConnectTimeout" xml:"HealthCheckConnectTimeout"` + HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` + HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` + HealthCheckReq string `json:"HealthCheckReq" xml:"HealthCheckReq"` + HealthCheckExp string `json:"HealthCheckExp" xml:"HealthCheckExp"` + MaxConnection int `json:"MaxConnection" xml:"MaxConnection"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` +} + +// CreateDescribeLoadBalancerUDPListenerAttributeRequest creates a request to invoke DescribeLoadBalancerUDPListenerAttribute API +func CreateDescribeLoadBalancerUDPListenerAttributeRequest() (request *DescribeLoadBalancerUDPListenerAttributeRequest) { + request = &DescribeLoadBalancerUDPListenerAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeLoadBalancerUDPListenerAttribute", "slb", "openAPI") + return +} + +// CreateDescribeLoadBalancerUDPListenerAttributeResponse creates a response to parse from DescribeLoadBalancerUDPListenerAttribute response +func CreateDescribeLoadBalancerUDPListenerAttributeResponse() (response *DescribeLoadBalancerUDPListenerAttributeResponse) { + response = &DescribeLoadBalancerUDPListenerAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancers.go new file mode 100644 index 0000000..08a4896 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancers.go @@ -0,0 +1,128 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLoadBalancers invokes the slb.DescribeLoadBalancers API synchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancers.html +func (client *Client) DescribeLoadBalancers(request *DescribeLoadBalancersRequest) (response *DescribeLoadBalancersResponse, err error) { + response = CreateDescribeLoadBalancersResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLoadBalancersWithChan invokes the slb.DescribeLoadBalancers API asynchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLoadBalancersWithChan(request *DescribeLoadBalancersRequest) (<-chan *DescribeLoadBalancersResponse, <-chan error) { + responseChan := make(chan *DescribeLoadBalancersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLoadBalancers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLoadBalancersWithCallback invokes the slb.DescribeLoadBalancers API asynchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLoadBalancersWithCallback(request *DescribeLoadBalancersRequest, callback func(response *DescribeLoadBalancersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLoadBalancersResponse + var err error + defer close(result) + response, err = client.DescribeLoadBalancers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLoadBalancersRequest is the request struct for api DescribeLoadBalancers +type DescribeLoadBalancersRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ServerId string `position:"Query" name:"ServerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + LoadBalancerName string `position:"Query" name:"LoadBalancerName"` + ServerIntranetAddress string `position:"Query" name:"ServerIntranetAddress"` + AddressType string `position:"Query" name:"AddressType"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + VpcId string `position:"Query" name:"VpcId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + NetworkType string `position:"Query" name:"NetworkType"` + Address string `position:"Query" name:"Address"` + MasterZoneId string `position:"Query" name:"MasterZoneId"` + SlaveZoneId string `position:"Query" name:"SlaveZoneId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + PayType string `position:"Query" name:"PayType"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeLoadBalancersResponse is the response struct for api DescribeLoadBalancers +type DescribeLoadBalancersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + LoadBalancers LoadBalancersInDescribeLoadBalancers `json:"LoadBalancers" xml:"LoadBalancers"` +} + +// CreateDescribeLoadBalancersRequest creates a request to invoke DescribeLoadBalancers API +func CreateDescribeLoadBalancersRequest() (request *DescribeLoadBalancersRequest) { + request = &DescribeLoadBalancersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeLoadBalancers", "slb", "openAPI") + return +} + +// CreateDescribeLoadBalancersResponse creates a response to parse from DescribeLoadBalancers response +func CreateDescribeLoadBalancersResponse() (response *DescribeLoadBalancersResponse) { + response = &DescribeLoadBalancersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancers_related_ecs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancers_related_ecs.go new file mode 100644 index 0000000..3c092eb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancers_related_ecs.go @@ -0,0 +1,112 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLoadBalancersRelatedEcs invokes the slb.DescribeLoadBalancersRelatedEcs API synchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancersrelatedecs.html +func (client *Client) DescribeLoadBalancersRelatedEcs(request *DescribeLoadBalancersRelatedEcsRequest) (response *DescribeLoadBalancersRelatedEcsResponse, err error) { + response = CreateDescribeLoadBalancersRelatedEcsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLoadBalancersRelatedEcsWithChan invokes the slb.DescribeLoadBalancersRelatedEcs API asynchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancersrelatedecs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLoadBalancersRelatedEcsWithChan(request *DescribeLoadBalancersRelatedEcsRequest) (<-chan *DescribeLoadBalancersRelatedEcsResponse, <-chan error) { + responseChan := make(chan *DescribeLoadBalancersRelatedEcsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLoadBalancersRelatedEcs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLoadBalancersRelatedEcsWithCallback invokes the slb.DescribeLoadBalancersRelatedEcs API asynchronously +// api document: https://help.aliyun.com/api/slb/describeloadbalancersrelatedecs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLoadBalancersRelatedEcsWithCallback(request *DescribeLoadBalancersRelatedEcsRequest, callback func(response *DescribeLoadBalancersRelatedEcsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLoadBalancersRelatedEcsResponse + var err error + defer close(result) + response, err = client.DescribeLoadBalancersRelatedEcs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLoadBalancersRelatedEcsRequest is the request struct for api DescribeLoadBalancersRelatedEcs +type DescribeLoadBalancersRelatedEcsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` +} + +// DescribeLoadBalancersRelatedEcsResponse is the response struct for api DescribeLoadBalancersRelatedEcs +type DescribeLoadBalancersRelatedEcsResponse struct { + *responses.BaseResponse + Message string `json:"Message" xml:"Message"` + Success bool `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` + LoadBalancers LoadBalancersInDescribeLoadBalancersRelatedEcs `json:"LoadBalancers" xml:"LoadBalancers"` +} + +// CreateDescribeLoadBalancersRelatedEcsRequest creates a request to invoke DescribeLoadBalancersRelatedEcs API +func CreateDescribeLoadBalancersRelatedEcsRequest() (request *DescribeLoadBalancersRelatedEcsRequest) { + request = &DescribeLoadBalancersRelatedEcsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeLoadBalancersRelatedEcs", "slb", "openAPI") + return +} + +// CreateDescribeLoadBalancersRelatedEcsResponse creates a response to parse from DescribeLoadBalancersRelatedEcs response +func CreateDescribeLoadBalancersRelatedEcsResponse() (response *DescribeLoadBalancersRelatedEcsResponse) { + response = &DescribeLoadBalancersRelatedEcsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_server_group_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_server_group_attribute.go new file mode 100644 index 0000000..ddfce7d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_server_group_attribute.go @@ -0,0 +1,112 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeMasterSlaveServerGroupAttribute invokes the slb.DescribeMasterSlaveServerGroupAttribute API synchronously +// api document: https://help.aliyun.com/api/slb/describemasterslaveservergroupattribute.html +func (client *Client) DescribeMasterSlaveServerGroupAttribute(request *DescribeMasterSlaveServerGroupAttributeRequest) (response *DescribeMasterSlaveServerGroupAttributeResponse, err error) { + response = CreateDescribeMasterSlaveServerGroupAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeMasterSlaveServerGroupAttributeWithChan invokes the slb.DescribeMasterSlaveServerGroupAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/describemasterslaveservergroupattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMasterSlaveServerGroupAttributeWithChan(request *DescribeMasterSlaveServerGroupAttributeRequest) (<-chan *DescribeMasterSlaveServerGroupAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeMasterSlaveServerGroupAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeMasterSlaveServerGroupAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeMasterSlaveServerGroupAttributeWithCallback invokes the slb.DescribeMasterSlaveServerGroupAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/describemasterslaveservergroupattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMasterSlaveServerGroupAttributeWithCallback(request *DescribeMasterSlaveServerGroupAttributeRequest, callback func(response *DescribeMasterSlaveServerGroupAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeMasterSlaveServerGroupAttributeResponse + var err error + defer close(result) + response, err = client.DescribeMasterSlaveServerGroupAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeMasterSlaveServerGroupAttributeRequest is the request struct for api DescribeMasterSlaveServerGroupAttribute +type DescribeMasterSlaveServerGroupAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` +} + +// DescribeMasterSlaveServerGroupAttributeResponse is the response struct for api DescribeMasterSlaveServerGroupAttribute +type DescribeMasterSlaveServerGroupAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` + MasterSlaveServerGroupName string `json:"MasterSlaveServerGroupName" xml:"MasterSlaveServerGroupName"` + MasterSlaveBackendServers MasterSlaveBackendServersInDescribeMasterSlaveServerGroupAttribute `json:"MasterSlaveBackendServers" xml:"MasterSlaveBackendServers"` +} + +// CreateDescribeMasterSlaveServerGroupAttributeRequest creates a request to invoke DescribeMasterSlaveServerGroupAttribute API +func CreateDescribeMasterSlaveServerGroupAttributeRequest() (request *DescribeMasterSlaveServerGroupAttributeRequest) { + request = &DescribeMasterSlaveServerGroupAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeMasterSlaveServerGroupAttribute", "slb", "openAPI") + return +} + +// CreateDescribeMasterSlaveServerGroupAttributeResponse creates a response to parse from DescribeMasterSlaveServerGroupAttribute response +func CreateDescribeMasterSlaveServerGroupAttributeResponse() (response *DescribeMasterSlaveServerGroupAttributeResponse) { + response = &DescribeMasterSlaveServerGroupAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_server_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_server_groups.go new file mode 100644 index 0000000..6d29216 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_server_groups.go @@ -0,0 +1,110 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeMasterSlaveServerGroups invokes the slb.DescribeMasterSlaveServerGroups API synchronously +// api document: https://help.aliyun.com/api/slb/describemasterslaveservergroups.html +func (client *Client) DescribeMasterSlaveServerGroups(request *DescribeMasterSlaveServerGroupsRequest) (response *DescribeMasterSlaveServerGroupsResponse, err error) { + response = CreateDescribeMasterSlaveServerGroupsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeMasterSlaveServerGroupsWithChan invokes the slb.DescribeMasterSlaveServerGroups API asynchronously +// api document: https://help.aliyun.com/api/slb/describemasterslaveservergroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMasterSlaveServerGroupsWithChan(request *DescribeMasterSlaveServerGroupsRequest) (<-chan *DescribeMasterSlaveServerGroupsResponse, <-chan error) { + responseChan := make(chan *DescribeMasterSlaveServerGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeMasterSlaveServerGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeMasterSlaveServerGroupsWithCallback invokes the slb.DescribeMasterSlaveServerGroups API asynchronously +// api document: https://help.aliyun.com/api/slb/describemasterslaveservergroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMasterSlaveServerGroupsWithCallback(request *DescribeMasterSlaveServerGroupsRequest, callback func(response *DescribeMasterSlaveServerGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeMasterSlaveServerGroupsResponse + var err error + defer close(result) + response, err = client.DescribeMasterSlaveServerGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeMasterSlaveServerGroupsRequest is the request struct for api DescribeMasterSlaveServerGroups +type DescribeMasterSlaveServerGroupsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` +} + +// DescribeMasterSlaveServerGroupsResponse is the response struct for api DescribeMasterSlaveServerGroups +type DescribeMasterSlaveServerGroupsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MasterSlaveServerGroups MasterSlaveServerGroups `json:"MasterSlaveServerGroups" xml:"MasterSlaveServerGroups"` +} + +// CreateDescribeMasterSlaveServerGroupsRequest creates a request to invoke DescribeMasterSlaveServerGroups API +func CreateDescribeMasterSlaveServerGroupsRequest() (request *DescribeMasterSlaveServerGroupsRequest) { + request = &DescribeMasterSlaveServerGroupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeMasterSlaveServerGroups", "slb", "openAPI") + return +} + +// CreateDescribeMasterSlaveServerGroupsResponse creates a response to parse from DescribeMasterSlaveServerGroups response +func CreateDescribeMasterSlaveServerGroupsResponse() (response *DescribeMasterSlaveServerGroupsResponse) { + response = &DescribeMasterSlaveServerGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_v_server_group_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_v_server_group_attribute.go new file mode 100644 index 0000000..08c8a5a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_v_server_group_attribute.go @@ -0,0 +1,112 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeMasterSlaveVServerGroupAttribute invokes the slb.DescribeMasterSlaveVServerGroupAttribute API synchronously +// api document: https://help.aliyun.com/api/slb/describemasterslavevservergroupattribute.html +func (client *Client) DescribeMasterSlaveVServerGroupAttribute(request *DescribeMasterSlaveVServerGroupAttributeRequest) (response *DescribeMasterSlaveVServerGroupAttributeResponse, err error) { + response = CreateDescribeMasterSlaveVServerGroupAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeMasterSlaveVServerGroupAttributeWithChan invokes the slb.DescribeMasterSlaveVServerGroupAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/describemasterslavevservergroupattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMasterSlaveVServerGroupAttributeWithChan(request *DescribeMasterSlaveVServerGroupAttributeRequest) (<-chan *DescribeMasterSlaveVServerGroupAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeMasterSlaveVServerGroupAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeMasterSlaveVServerGroupAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeMasterSlaveVServerGroupAttributeWithCallback invokes the slb.DescribeMasterSlaveVServerGroupAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/describemasterslavevservergroupattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMasterSlaveVServerGroupAttributeWithCallback(request *DescribeMasterSlaveVServerGroupAttributeRequest, callback func(response *DescribeMasterSlaveVServerGroupAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeMasterSlaveVServerGroupAttributeResponse + var err error + defer close(result) + response, err = client.DescribeMasterSlaveVServerGroupAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeMasterSlaveVServerGroupAttributeRequest is the request struct for api DescribeMasterSlaveVServerGroupAttribute +type DescribeMasterSlaveVServerGroupAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + MasterSlaveVServerGroupId string `position:"Query" name:"MasterSlaveVServerGroupId"` +} + +// DescribeMasterSlaveVServerGroupAttributeResponse is the response struct for api DescribeMasterSlaveVServerGroupAttribute +type DescribeMasterSlaveVServerGroupAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MasterSlaveVServerGroupId string `json:"MasterSlaveVServerGroupId" xml:"MasterSlaveVServerGroupId"` + MasterSlaveVServerGroupName string `json:"MasterSlaveVServerGroupName" xml:"MasterSlaveVServerGroupName"` + MasterSlaveBackendServers MasterSlaveBackendServersInDescribeMasterSlaveVServerGroupAttribute `json:"MasterSlaveBackendServers" xml:"MasterSlaveBackendServers"` +} + +// CreateDescribeMasterSlaveVServerGroupAttributeRequest creates a request to invoke DescribeMasterSlaveVServerGroupAttribute API +func CreateDescribeMasterSlaveVServerGroupAttributeRequest() (request *DescribeMasterSlaveVServerGroupAttributeRequest) { + request = &DescribeMasterSlaveVServerGroupAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeMasterSlaveVServerGroupAttribute", "slb", "openAPI") + return +} + +// CreateDescribeMasterSlaveVServerGroupAttributeResponse creates a response to parse from DescribeMasterSlaveVServerGroupAttribute response +func CreateDescribeMasterSlaveVServerGroupAttributeResponse() (response *DescribeMasterSlaveVServerGroupAttributeResponse) { + response = &DescribeMasterSlaveVServerGroupAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_v_server_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_v_server_groups.go new file mode 100644 index 0000000..9409f84 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_v_server_groups.go @@ -0,0 +1,110 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeMasterSlaveVServerGroups invokes the slb.DescribeMasterSlaveVServerGroups API synchronously +// api document: https://help.aliyun.com/api/slb/describemasterslavevservergroups.html +func (client *Client) DescribeMasterSlaveVServerGroups(request *DescribeMasterSlaveVServerGroupsRequest) (response *DescribeMasterSlaveVServerGroupsResponse, err error) { + response = CreateDescribeMasterSlaveVServerGroupsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeMasterSlaveVServerGroupsWithChan invokes the slb.DescribeMasterSlaveVServerGroups API asynchronously +// api document: https://help.aliyun.com/api/slb/describemasterslavevservergroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMasterSlaveVServerGroupsWithChan(request *DescribeMasterSlaveVServerGroupsRequest) (<-chan *DescribeMasterSlaveVServerGroupsResponse, <-chan error) { + responseChan := make(chan *DescribeMasterSlaveVServerGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeMasterSlaveVServerGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeMasterSlaveVServerGroupsWithCallback invokes the slb.DescribeMasterSlaveVServerGroups API asynchronously +// api document: https://help.aliyun.com/api/slb/describemasterslavevservergroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeMasterSlaveVServerGroupsWithCallback(request *DescribeMasterSlaveVServerGroupsRequest, callback func(response *DescribeMasterSlaveVServerGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeMasterSlaveVServerGroupsResponse + var err error + defer close(result) + response, err = client.DescribeMasterSlaveVServerGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeMasterSlaveVServerGroupsRequest is the request struct for api DescribeMasterSlaveVServerGroups +type DescribeMasterSlaveVServerGroupsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` +} + +// DescribeMasterSlaveVServerGroupsResponse is the response struct for api DescribeMasterSlaveVServerGroups +type DescribeMasterSlaveVServerGroupsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MasterSlaveVServerGroups MasterSlaveVServerGroupsInDescribeMasterSlaveVServerGroups `json:"MasterSlaveVServerGroups" xml:"MasterSlaveVServerGroups"` +} + +// CreateDescribeMasterSlaveVServerGroupsRequest creates a request to invoke DescribeMasterSlaveVServerGroups API +func CreateDescribeMasterSlaveVServerGroupsRequest() (request *DescribeMasterSlaveVServerGroupsRequest) { + request = &DescribeMasterSlaveVServerGroupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeMasterSlaveVServerGroups", "slb", "openAPI") + return +} + +// CreateDescribeMasterSlaveVServerGroupsResponse creates a response to parse from DescribeMasterSlaveVServerGroups response +func CreateDescribeMasterSlaveVServerGroupsResponse() (response *DescribeMasterSlaveVServerGroupsResponse) { + response = &DescribeMasterSlaveVServerGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_regions.go new file mode 100644 index 0000000..c61e67c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_regions.go @@ -0,0 +1,109 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 slb.DescribeRegions API synchronously +// api document: https://help.aliyun.com/api/slb/describeregions.html +func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) { + response = CreateDescribeRegionsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRegionsWithChan invokes the slb.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/slb/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 slb.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/slb/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// 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("Slb", "2014-05-15", "DescribeRegions", "slb", "openAPI") + 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/slb/describe_rule_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_rule_attribute.go new file mode 100644 index 0000000..8b11ff5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_rule_attribute.go @@ -0,0 +1,115 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRuleAttribute invokes the slb.DescribeRuleAttribute API synchronously +// api document: https://help.aliyun.com/api/slb/describeruleattribute.html +func (client *Client) DescribeRuleAttribute(request *DescribeRuleAttributeRequest) (response *DescribeRuleAttributeResponse, err error) { + response = CreateDescribeRuleAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRuleAttributeWithChan invokes the slb.DescribeRuleAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/describeruleattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRuleAttributeWithChan(request *DescribeRuleAttributeRequest) (<-chan *DescribeRuleAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeRuleAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRuleAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRuleAttributeWithCallback invokes the slb.DescribeRuleAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/describeruleattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRuleAttributeWithCallback(request *DescribeRuleAttributeRequest, callback func(response *DescribeRuleAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRuleAttributeResponse + var err error + defer close(result) + response, err = client.DescribeRuleAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRuleAttributeRequest is the request struct for api DescribeRuleAttribute +type DescribeRuleAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + RuleId string `position:"Query" name:"RuleId"` +} + +// DescribeRuleAttributeResponse is the response struct for api DescribeRuleAttribute +type DescribeRuleAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RuleName string `json:"RuleName" xml:"RuleName"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + ListenerPort string `json:"ListenerPort" xml:"ListenerPort"` + Domain string `json:"Domain" xml:"Domain"` + Url string `json:"Url" xml:"Url"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` +} + +// CreateDescribeRuleAttributeRequest creates a request to invoke DescribeRuleAttribute API +func CreateDescribeRuleAttributeRequest() (request *DescribeRuleAttributeRequest) { + request = &DescribeRuleAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeRuleAttribute", "slb", "openAPI") + return +} + +// CreateDescribeRuleAttributeResponse creates a response to parse from DescribeRuleAttribute response +func CreateDescribeRuleAttributeResponse() (response *DescribeRuleAttributeResponse) { + response = &DescribeRuleAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_rules.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_rules.go new file mode 100644 index 0000000..aaed936 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_rules.go @@ -0,0 +1,111 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRules invokes the slb.DescribeRules API synchronously +// api document: https://help.aliyun.com/api/slb/describerules.html +func (client *Client) DescribeRules(request *DescribeRulesRequest) (response *DescribeRulesResponse, err error) { + response = CreateDescribeRulesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRulesWithChan invokes the slb.DescribeRules API asynchronously +// api document: https://help.aliyun.com/api/slb/describerules.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRulesWithChan(request *DescribeRulesRequest) (<-chan *DescribeRulesResponse, <-chan error) { + responseChan := make(chan *DescribeRulesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRules(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRulesWithCallback invokes the slb.DescribeRules API asynchronously +// api document: https://help.aliyun.com/api/slb/describerules.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRulesWithCallback(request *DescribeRulesRequest, callback func(response *DescribeRulesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRulesResponse + var err error + defer close(result) + response, err = client.DescribeRules(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRulesRequest is the request struct for api DescribeRules +type DescribeRulesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` +} + +// DescribeRulesResponse is the response struct for api DescribeRules +type DescribeRulesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Rules RulesInDescribeRules `json:"Rules" xml:"Rules"` +} + +// CreateDescribeRulesRequest creates a request to invoke DescribeRules API +func CreateDescribeRulesRequest() (request *DescribeRulesRequest) { + request = &DescribeRulesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeRules", "slb", "openAPI") + return +} + +// CreateDescribeRulesResponse creates a response to parse from DescribeRules response +func CreateDescribeRulesResponse() (response *DescribeRulesResponse) { + response = &DescribeRulesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_server_certificates.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_server_certificates.go new file mode 100644 index 0000000..9e4ed44 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_server_certificates.go @@ -0,0 +1,111 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeServerCertificates invokes the slb.DescribeServerCertificates API synchronously +// api document: https://help.aliyun.com/api/slb/describeservercertificates.html +func (client *Client) DescribeServerCertificates(request *DescribeServerCertificatesRequest) (response *DescribeServerCertificatesResponse, err error) { + response = CreateDescribeServerCertificatesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeServerCertificatesWithChan invokes the slb.DescribeServerCertificates API asynchronously +// api document: https://help.aliyun.com/api/slb/describeservercertificates.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeServerCertificatesWithChan(request *DescribeServerCertificatesRequest) (<-chan *DescribeServerCertificatesResponse, <-chan error) { + responseChan := make(chan *DescribeServerCertificatesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeServerCertificates(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeServerCertificatesWithCallback invokes the slb.DescribeServerCertificates API asynchronously +// api document: https://help.aliyun.com/api/slb/describeservercertificates.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeServerCertificatesWithCallback(request *DescribeServerCertificatesRequest, callback func(response *DescribeServerCertificatesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeServerCertificatesResponse + var err error + defer close(result) + response, err = client.DescribeServerCertificates(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeServerCertificatesRequest is the request struct for api DescribeServerCertificates +type DescribeServerCertificatesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ServerCertificateId string `position:"Query" name:"ServerCertificateId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` +} + +// DescribeServerCertificatesResponse is the response struct for api DescribeServerCertificates +type DescribeServerCertificatesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ServerCertificates ServerCertificates `json:"ServerCertificates" xml:"ServerCertificates"` +} + +// CreateDescribeServerCertificatesRequest creates a request to invoke DescribeServerCertificates API +func CreateDescribeServerCertificatesRequest() (request *DescribeServerCertificatesRequest) { + request = &DescribeServerCertificatesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeServerCertificates", "slb", "openAPI") + return +} + +// CreateDescribeServerCertificatesResponse creates a response to parse from DescribeServerCertificates response +func CreateDescribeServerCertificatesResponse() (response *DescribeServerCertificatesResponse) { + response = &DescribeServerCertificatesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_tags.go new file mode 100644 index 0000000..371a100 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_tags.go @@ -0,0 +1,116 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 slb.DescribeTags API synchronously +// api document: https://help.aliyun.com/api/slb/describetags.html +func (client *Client) DescribeTags(request *DescribeTagsRequest) (response *DescribeTagsResponse, err error) { + response = CreateDescribeTagsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeTagsWithChan invokes the slb.DescribeTags API asynchronously +// api document: https://help.aliyun.com/api/slb/describetags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 slb.DescribeTags API asynchronously +// api document: https://help.aliyun.com/api/slb/describetags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + Tags string `position:"Query" name:"Tags"` + DistinctKey requests.Boolean `position:"Query" name:"DistinctKey"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` +} + +// DescribeTagsResponse is the response struct for api DescribeTags +type DescribeTagsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + TagSets TagSets `json:"TagSets" xml:"TagSets"` +} + +// CreateDescribeTagsRequest creates a request to invoke DescribeTags API +func CreateDescribeTagsRequest() (request *DescribeTagsRequest) { + request = &DescribeTagsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeTags", "slb", "openAPI") + 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/slb/describe_v_server_group_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_v_server_group_attribute.go new file mode 100644 index 0000000..0bdd509 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_v_server_group_attribute.go @@ -0,0 +1,112 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVServerGroupAttribute invokes the slb.DescribeVServerGroupAttribute API synchronously +// api document: https://help.aliyun.com/api/slb/describevservergroupattribute.html +func (client *Client) DescribeVServerGroupAttribute(request *DescribeVServerGroupAttributeRequest) (response *DescribeVServerGroupAttributeResponse, err error) { + response = CreateDescribeVServerGroupAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVServerGroupAttributeWithChan invokes the slb.DescribeVServerGroupAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/describevservergroupattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVServerGroupAttributeWithChan(request *DescribeVServerGroupAttributeRequest) (<-chan *DescribeVServerGroupAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeVServerGroupAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVServerGroupAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVServerGroupAttributeWithCallback invokes the slb.DescribeVServerGroupAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/describevservergroupattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVServerGroupAttributeWithCallback(request *DescribeVServerGroupAttributeRequest, callback func(response *DescribeVServerGroupAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVServerGroupAttributeResponse + var err error + defer close(result) + response, err = client.DescribeVServerGroupAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVServerGroupAttributeRequest is the request struct for api DescribeVServerGroupAttribute +type DescribeVServerGroupAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` +} + +// DescribeVServerGroupAttributeResponse is the response struct for api DescribeVServerGroupAttribute +type DescribeVServerGroupAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + VServerGroupName string `json:"VServerGroupName" xml:"VServerGroupName"` + BackendServers BackendServersInDescribeVServerGroupAttribute `json:"BackendServers" xml:"BackendServers"` +} + +// CreateDescribeVServerGroupAttributeRequest creates a request to invoke DescribeVServerGroupAttribute API +func CreateDescribeVServerGroupAttributeRequest() (request *DescribeVServerGroupAttributeRequest) { + request = &DescribeVServerGroupAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeVServerGroupAttribute", "slb", "openAPI") + return +} + +// CreateDescribeVServerGroupAttributeResponse creates a response to parse from DescribeVServerGroupAttribute response +func CreateDescribeVServerGroupAttributeResponse() (response *DescribeVServerGroupAttributeResponse) { + response = &DescribeVServerGroupAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_v_server_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_v_server_groups.go new file mode 100644 index 0000000..fe1ed5d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_v_server_groups.go @@ -0,0 +1,110 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVServerGroups invokes the slb.DescribeVServerGroups API synchronously +// api document: https://help.aliyun.com/api/slb/describevservergroups.html +func (client *Client) DescribeVServerGroups(request *DescribeVServerGroupsRequest) (response *DescribeVServerGroupsResponse, err error) { + response = CreateDescribeVServerGroupsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVServerGroupsWithChan invokes the slb.DescribeVServerGroups API asynchronously +// api document: https://help.aliyun.com/api/slb/describevservergroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVServerGroupsWithChan(request *DescribeVServerGroupsRequest) (<-chan *DescribeVServerGroupsResponse, <-chan error) { + responseChan := make(chan *DescribeVServerGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVServerGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVServerGroupsWithCallback invokes the slb.DescribeVServerGroups API asynchronously +// api document: https://help.aliyun.com/api/slb/describevservergroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVServerGroupsWithCallback(request *DescribeVServerGroupsRequest, callback func(response *DescribeVServerGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVServerGroupsResponse + var err error + defer close(result) + response, err = client.DescribeVServerGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVServerGroupsRequest is the request struct for api DescribeVServerGroups +type DescribeVServerGroupsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` +} + +// DescribeVServerGroupsResponse is the response struct for api DescribeVServerGroups +type DescribeVServerGroupsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VServerGroups VServerGroupsInDescribeVServerGroups `json:"VServerGroups" xml:"VServerGroups"` +} + +// CreateDescribeVServerGroupsRequest creates a request to invoke DescribeVServerGroups API +func CreateDescribeVServerGroupsRequest() (request *DescribeVServerGroupsRequest) { + request = &DescribeVServerGroupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeVServerGroups", "slb", "openAPI") + return +} + +// CreateDescribeVServerGroupsResponse creates a response to parse from DescribeVServerGroups response +func CreateDescribeVServerGroupsResponse() (response *DescribeVServerGroupsResponse) { + response = &DescribeVServerGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_zones.go new file mode 100644 index 0000000..8c19db3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_zones.go @@ -0,0 +1,109 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 slb.DescribeZones API synchronously +// api document: https://help.aliyun.com/api/slb/describezones.html +func (client *Client) DescribeZones(request *DescribeZonesRequest) (response *DescribeZonesResponse, err error) { + response = CreateDescribeZonesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeZonesWithChan invokes the slb.DescribeZones API asynchronously +// api document: https://help.aliyun.com/api/slb/describezones.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 slb.DescribeZones API asynchronously +// api document: https://help.aliyun.com/api/slb/describezones.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// DescribeZonesResponse is the response struct for api DescribeZones +type DescribeZonesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Zones Zones `json:"Zones" xml:"Zones"` +} + +// CreateDescribeZonesRequest creates a request to invoke DescribeZones API +func CreateDescribeZonesRequest() (request *DescribeZonesRequest) { + request = &DescribeZonesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeZones", "slb", "openAPI") + 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/slb/modify_load_balancer_instance_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_instance_spec.go new file mode 100644 index 0000000..e776d61 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_instance_spec.go @@ -0,0 +1,112 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyLoadBalancerInstanceSpec invokes the slb.ModifyLoadBalancerInstanceSpec API synchronously +// api document: https://help.aliyun.com/api/slb/modifyloadbalancerinstancespec.html +func (client *Client) ModifyLoadBalancerInstanceSpec(request *ModifyLoadBalancerInstanceSpecRequest) (response *ModifyLoadBalancerInstanceSpecResponse, err error) { + response = CreateModifyLoadBalancerInstanceSpecResponse() + err = client.DoAction(request, response) + return +} + +// ModifyLoadBalancerInstanceSpecWithChan invokes the slb.ModifyLoadBalancerInstanceSpec API asynchronously +// api document: https://help.aliyun.com/api/slb/modifyloadbalancerinstancespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyLoadBalancerInstanceSpecWithChan(request *ModifyLoadBalancerInstanceSpecRequest) (<-chan *ModifyLoadBalancerInstanceSpecResponse, <-chan error) { + responseChan := make(chan *ModifyLoadBalancerInstanceSpecResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyLoadBalancerInstanceSpec(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyLoadBalancerInstanceSpecWithCallback invokes the slb.ModifyLoadBalancerInstanceSpec API asynchronously +// api document: https://help.aliyun.com/api/slb/modifyloadbalancerinstancespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyLoadBalancerInstanceSpecWithCallback(request *ModifyLoadBalancerInstanceSpecRequest, callback func(response *ModifyLoadBalancerInstanceSpecResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyLoadBalancerInstanceSpecResponse + var err error + defer close(result) + response, err = client.ModifyLoadBalancerInstanceSpec(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyLoadBalancerInstanceSpecRequest is the request struct for api ModifyLoadBalancerInstanceSpec +type ModifyLoadBalancerInstanceSpecRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerSpec string `position:"Query" name:"LoadBalancerSpec"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` +} + +// ModifyLoadBalancerInstanceSpecResponse is the response struct for api ModifyLoadBalancerInstanceSpec +type ModifyLoadBalancerInstanceSpecResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + OrderId int `json:"OrderId" xml:"OrderId"` +} + +// CreateModifyLoadBalancerInstanceSpecRequest creates a request to invoke ModifyLoadBalancerInstanceSpec API +func CreateModifyLoadBalancerInstanceSpecRequest() (request *ModifyLoadBalancerInstanceSpecRequest) { + request = &ModifyLoadBalancerInstanceSpecRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "ModifyLoadBalancerInstanceSpec", "slb", "openAPI") + return +} + +// CreateModifyLoadBalancerInstanceSpecResponse creates a response to parse from ModifyLoadBalancerInstanceSpec response +func CreateModifyLoadBalancerInstanceSpecResponse() (response *ModifyLoadBalancerInstanceSpecResponse) { + response = &ModifyLoadBalancerInstanceSpecResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_internet_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_internet_spec.go new file mode 100644 index 0000000..6f958ef --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_internet_spec.go @@ -0,0 +1,113 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyLoadBalancerInternetSpec invokes the slb.ModifyLoadBalancerInternetSpec API synchronously +// api document: https://help.aliyun.com/api/slb/modifyloadbalancerinternetspec.html +func (client *Client) ModifyLoadBalancerInternetSpec(request *ModifyLoadBalancerInternetSpecRequest) (response *ModifyLoadBalancerInternetSpecResponse, err error) { + response = CreateModifyLoadBalancerInternetSpecResponse() + err = client.DoAction(request, response) + return +} + +// ModifyLoadBalancerInternetSpecWithChan invokes the slb.ModifyLoadBalancerInternetSpec API asynchronously +// api document: https://help.aliyun.com/api/slb/modifyloadbalancerinternetspec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyLoadBalancerInternetSpecWithChan(request *ModifyLoadBalancerInternetSpecRequest) (<-chan *ModifyLoadBalancerInternetSpecResponse, <-chan error) { + responseChan := make(chan *ModifyLoadBalancerInternetSpecResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyLoadBalancerInternetSpec(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyLoadBalancerInternetSpecWithCallback invokes the slb.ModifyLoadBalancerInternetSpec API asynchronously +// api document: https://help.aliyun.com/api/slb/modifyloadbalancerinternetspec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyLoadBalancerInternetSpecWithCallback(request *ModifyLoadBalancerInternetSpecRequest, callback func(response *ModifyLoadBalancerInternetSpecResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyLoadBalancerInternetSpecResponse + var err error + defer close(result) + response, err = client.ModifyLoadBalancerInternetSpec(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyLoadBalancerInternetSpecRequest is the request struct for api ModifyLoadBalancerInternetSpec +type ModifyLoadBalancerInternetSpecRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` +} + +// ModifyLoadBalancerInternetSpecResponse is the response struct for api ModifyLoadBalancerInternetSpec +type ModifyLoadBalancerInternetSpecResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + OrderId int `json:"OrderId" xml:"OrderId"` +} + +// CreateModifyLoadBalancerInternetSpecRequest creates a request to invoke ModifyLoadBalancerInternetSpec API +func CreateModifyLoadBalancerInternetSpecRequest() (request *ModifyLoadBalancerInternetSpecRequest) { + request = &ModifyLoadBalancerInternetSpecRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "ModifyLoadBalancerInternetSpec", "slb", "openAPI") + return +} + +// CreateModifyLoadBalancerInternetSpecResponse creates a response to parse from ModifyLoadBalancerInternetSpec response +func CreateModifyLoadBalancerInternetSpecResponse() (response *ModifyLoadBalancerInternetSpecResponse) { + response = &ModifyLoadBalancerInternetSpecResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_pay_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_pay_type.go new file mode 100644 index 0000000..a051c8e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_pay_type.go @@ -0,0 +1,114 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyLoadBalancerPayType invokes the slb.ModifyLoadBalancerPayType API synchronously +// api document: https://help.aliyun.com/api/slb/modifyloadbalancerpaytype.html +func (client *Client) ModifyLoadBalancerPayType(request *ModifyLoadBalancerPayTypeRequest) (response *ModifyLoadBalancerPayTypeResponse, err error) { + response = CreateModifyLoadBalancerPayTypeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyLoadBalancerPayTypeWithChan invokes the slb.ModifyLoadBalancerPayType API asynchronously +// api document: https://help.aliyun.com/api/slb/modifyloadbalancerpaytype.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyLoadBalancerPayTypeWithChan(request *ModifyLoadBalancerPayTypeRequest) (<-chan *ModifyLoadBalancerPayTypeResponse, <-chan error) { + responseChan := make(chan *ModifyLoadBalancerPayTypeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyLoadBalancerPayType(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyLoadBalancerPayTypeWithCallback invokes the slb.ModifyLoadBalancerPayType API asynchronously +// api document: https://help.aliyun.com/api/slb/modifyloadbalancerpaytype.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyLoadBalancerPayTypeWithCallback(request *ModifyLoadBalancerPayTypeRequest, callback func(response *ModifyLoadBalancerPayTypeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyLoadBalancerPayTypeResponse + var err error + defer close(result) + response, err = client.ModifyLoadBalancerPayType(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyLoadBalancerPayTypeRequest is the request struct for api ModifyLoadBalancerPayType +type ModifyLoadBalancerPayTypeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + PayType string `position:"Query" name:"PayType"` + PricingCycle string `position:"Query" name:"PricingCycle"` + Duration requests.Integer `position:"Query" name:"Duration"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` +} + +// ModifyLoadBalancerPayTypeResponse is the response struct for api ModifyLoadBalancerPayType +type ModifyLoadBalancerPayTypeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + OrderId int `json:"OrderId" xml:"OrderId"` +} + +// CreateModifyLoadBalancerPayTypeRequest creates a request to invoke ModifyLoadBalancerPayType API +func CreateModifyLoadBalancerPayTypeRequest() (request *ModifyLoadBalancerPayTypeRequest) { + request = &ModifyLoadBalancerPayTypeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "ModifyLoadBalancerPayType", "slb", "openAPI") + return +} + +// CreateModifyLoadBalancerPayTypeResponse creates a response to parse from ModifyLoadBalancerPayType response +func CreateModifyLoadBalancerPayTypeResponse() (response *ModifyLoadBalancerPayTypeResponse) { + response = &ModifyLoadBalancerPayTypeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_v_server_group_backend_servers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_v_server_group_backend_servers.go new file mode 100644 index 0000000..63e2408 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_v_server_group_backend_servers.go @@ -0,0 +1,113 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyVServerGroupBackendServers invokes the slb.ModifyVServerGroupBackendServers API synchronously +// api document: https://help.aliyun.com/api/slb/modifyvservergroupbackendservers.html +func (client *Client) ModifyVServerGroupBackendServers(request *ModifyVServerGroupBackendServersRequest) (response *ModifyVServerGroupBackendServersResponse, err error) { + response = CreateModifyVServerGroupBackendServersResponse() + err = client.DoAction(request, response) + return +} + +// ModifyVServerGroupBackendServersWithChan invokes the slb.ModifyVServerGroupBackendServers API asynchronously +// api document: https://help.aliyun.com/api/slb/modifyvservergroupbackendservers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVServerGroupBackendServersWithChan(request *ModifyVServerGroupBackendServersRequest) (<-chan *ModifyVServerGroupBackendServersResponse, <-chan error) { + responseChan := make(chan *ModifyVServerGroupBackendServersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyVServerGroupBackendServers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyVServerGroupBackendServersWithCallback invokes the slb.ModifyVServerGroupBackendServers API asynchronously +// api document: https://help.aliyun.com/api/slb/modifyvservergroupbackendservers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVServerGroupBackendServersWithCallback(request *ModifyVServerGroupBackendServersRequest, callback func(response *ModifyVServerGroupBackendServersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyVServerGroupBackendServersResponse + var err error + defer close(result) + response, err = client.ModifyVServerGroupBackendServers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyVServerGroupBackendServersRequest is the request struct for api ModifyVServerGroupBackendServers +type ModifyVServerGroupBackendServersRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` + OldBackendServers string `position:"Query" name:"OldBackendServers"` + NewBackendServers string `position:"Query" name:"NewBackendServers"` +} + +// ModifyVServerGroupBackendServersResponse is the response struct for api ModifyVServerGroupBackendServers +type ModifyVServerGroupBackendServersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + BackendServers BackendServersInModifyVServerGroupBackendServers `json:"BackendServers" xml:"BackendServers"` +} + +// CreateModifyVServerGroupBackendServersRequest creates a request to invoke ModifyVServerGroupBackendServers API +func CreateModifyVServerGroupBackendServersRequest() (request *ModifyVServerGroupBackendServersRequest) { + request = &ModifyVServerGroupBackendServersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "ModifyVServerGroupBackendServers", "slb", "openAPI") + return +} + +// CreateModifyVServerGroupBackendServersResponse creates a response to parse from ModifyVServerGroupBackendServers response +func CreateModifyVServerGroupBackendServersResponse() (response *ModifyVServerGroupBackendServersResponse) { + response = &ModifyVServerGroupBackendServersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/move_resource_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/move_resource_group.go new file mode 100644 index 0000000..2fce94b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/move_resource_group.go @@ -0,0 +1,112 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 slb.MoveResourceGroup API synchronously +// api document: https://help.aliyun.com/api/slb/moveresourcegroup.html +func (client *Client) MoveResourceGroup(request *MoveResourceGroupRequest) (response *MoveResourceGroupResponse, err error) { + response = CreateMoveResourceGroupResponse() + err = client.DoAction(request, response) + return +} + +// MoveResourceGroupWithChan invokes the slb.MoveResourceGroup API asynchronously +// api document: https://help.aliyun.com/api/slb/moveresourcegroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 slb.MoveResourceGroup API asynchronously +// api document: https://help.aliyun.com/api/slb/moveresourcegroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceId string `position:"Query" name:"ResourceId"` + ResourceType string `position:"Query" name:"ResourceType"` + NewResourceGroupId string `position:"Query" name:"NewResourceGroupId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// 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("Slb", "2014-05-15", "MoveResourceGroup", "slb", "openAPI") + 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/slb/remove_backend_servers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_backend_servers.go new file mode 100644 index 0000000..11d1293 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_backend_servers.go @@ -0,0 +1,112 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveBackendServers invokes the slb.RemoveBackendServers API synchronously +// api document: https://help.aliyun.com/api/slb/removebackendservers.html +func (client *Client) RemoveBackendServers(request *RemoveBackendServersRequest) (response *RemoveBackendServersResponse, err error) { + response = CreateRemoveBackendServersResponse() + err = client.DoAction(request, response) + return +} + +// RemoveBackendServersWithChan invokes the slb.RemoveBackendServers API asynchronously +// api document: https://help.aliyun.com/api/slb/removebackendservers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveBackendServersWithChan(request *RemoveBackendServersRequest) (<-chan *RemoveBackendServersResponse, <-chan error) { + responseChan := make(chan *RemoveBackendServersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveBackendServers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveBackendServersWithCallback invokes the slb.RemoveBackendServers API asynchronously +// api document: https://help.aliyun.com/api/slb/removebackendservers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveBackendServersWithCallback(request *RemoveBackendServersRequest, callback func(response *RemoveBackendServersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveBackendServersResponse + var err error + defer close(result) + response, err = client.RemoveBackendServers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveBackendServersRequest is the request struct for api RemoveBackendServers +type RemoveBackendServersRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + BackendServers string `position:"Query" name:"BackendServers"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// RemoveBackendServersResponse is the response struct for api RemoveBackendServers +type RemoveBackendServersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + BackendServers BackendServersInRemoveBackendServers `json:"BackendServers" xml:"BackendServers"` +} + +// CreateRemoveBackendServersRequest creates a request to invoke RemoveBackendServers API +func CreateRemoveBackendServersRequest() (request *RemoveBackendServersRequest) { + request = &RemoveBackendServersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "RemoveBackendServers", "slb", "openAPI") + return +} + +// CreateRemoveBackendServersResponse creates a response to parse from RemoveBackendServers response +func CreateRemoveBackendServersResponse() (response *RemoveBackendServersResponse) { + response = &RemoveBackendServersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_listener_white_list_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_listener_white_list_item.go new file mode 100644 index 0000000..dc43436 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_listener_white_list_item.go @@ -0,0 +1,111 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveListenerWhiteListItem invokes the slb.RemoveListenerWhiteListItem API synchronously +// api document: https://help.aliyun.com/api/slb/removelistenerwhitelistitem.html +func (client *Client) RemoveListenerWhiteListItem(request *RemoveListenerWhiteListItemRequest) (response *RemoveListenerWhiteListItemResponse, err error) { + response = CreateRemoveListenerWhiteListItemResponse() + err = client.DoAction(request, response) + return +} + +// RemoveListenerWhiteListItemWithChan invokes the slb.RemoveListenerWhiteListItem API asynchronously +// api document: https://help.aliyun.com/api/slb/removelistenerwhitelistitem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveListenerWhiteListItemWithChan(request *RemoveListenerWhiteListItemRequest) (<-chan *RemoveListenerWhiteListItemResponse, <-chan error) { + responseChan := make(chan *RemoveListenerWhiteListItemResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveListenerWhiteListItem(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveListenerWhiteListItemWithCallback invokes the slb.RemoveListenerWhiteListItem API asynchronously +// api document: https://help.aliyun.com/api/slb/removelistenerwhitelistitem.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveListenerWhiteListItemWithCallback(request *RemoveListenerWhiteListItemRequest, callback func(response *RemoveListenerWhiteListItemResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveListenerWhiteListItemResponse + var err error + defer close(result) + response, err = client.RemoveListenerWhiteListItem(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveListenerWhiteListItemRequest is the request struct for api RemoveListenerWhiteListItem +type RemoveListenerWhiteListItemRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + SourceItems string `position:"Query" name:"SourceItems"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// RemoveListenerWhiteListItemResponse is the response struct for api RemoveListenerWhiteListItem +type RemoveListenerWhiteListItemResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveListenerWhiteListItemRequest creates a request to invoke RemoveListenerWhiteListItem API +func CreateRemoveListenerWhiteListItemRequest() (request *RemoveListenerWhiteListItemRequest) { + request = &RemoveListenerWhiteListItemRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "RemoveListenerWhiteListItem", "slb", "openAPI") + return +} + +// CreateRemoveListenerWhiteListItemResponse creates a response to parse from RemoveListenerWhiteListItem response +func CreateRemoveListenerWhiteListItemResponse() (response *RemoveListenerWhiteListItemResponse) { + response = &RemoveListenerWhiteListItemResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_tags.go new file mode 100644 index 0000000..d22ea90 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_tags.go @@ -0,0 +1,109 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveTags invokes the slb.RemoveTags API synchronously +// api document: https://help.aliyun.com/api/slb/removetags.html +func (client *Client) RemoveTags(request *RemoveTagsRequest) (response *RemoveTagsResponse, err error) { + response = CreateRemoveTagsResponse() + err = client.DoAction(request, response) + return +} + +// RemoveTagsWithChan invokes the slb.RemoveTags API asynchronously +// api document: https://help.aliyun.com/api/slb/removetags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveTagsWithChan(request *RemoveTagsRequest) (<-chan *RemoveTagsResponse, <-chan error) { + responseChan := make(chan *RemoveTagsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveTags(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveTagsWithCallback invokes the slb.RemoveTags API asynchronously +// api document: https://help.aliyun.com/api/slb/removetags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveTagsWithCallback(request *RemoveTagsRequest, callback func(response *RemoveTagsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveTagsResponse + var err error + defer close(result) + response, err = client.RemoveTags(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveTagsRequest is the request struct for api RemoveTags +type RemoveTagsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + Tags string `position:"Query" name:"Tags"` +} + +// RemoveTagsResponse is the response struct for api RemoveTags +type RemoveTagsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveTagsRequest creates a request to invoke RemoveTags API +func CreateRemoveTagsRequest() (request *RemoveTagsRequest) { + request = &RemoveTagsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "RemoveTags", "slb", "openAPI") + return +} + +// CreateRemoveTagsResponse creates a response to parse from RemoveTags response +func CreateRemoveTagsResponse() (response *RemoveTagsResponse) { + response = &RemoveTagsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_v_server_group_backend_servers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_v_server_group_backend_servers.go new file mode 100644 index 0000000..7051500 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_v_server_group_backend_servers.go @@ -0,0 +1,112 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveVServerGroupBackendServers invokes the slb.RemoveVServerGroupBackendServers API synchronously +// api document: https://help.aliyun.com/api/slb/removevservergroupbackendservers.html +func (client *Client) RemoveVServerGroupBackendServers(request *RemoveVServerGroupBackendServersRequest) (response *RemoveVServerGroupBackendServersResponse, err error) { + response = CreateRemoveVServerGroupBackendServersResponse() + err = client.DoAction(request, response) + return +} + +// RemoveVServerGroupBackendServersWithChan invokes the slb.RemoveVServerGroupBackendServers API asynchronously +// api document: https://help.aliyun.com/api/slb/removevservergroupbackendservers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveVServerGroupBackendServersWithChan(request *RemoveVServerGroupBackendServersRequest) (<-chan *RemoveVServerGroupBackendServersResponse, <-chan error) { + responseChan := make(chan *RemoveVServerGroupBackendServersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveVServerGroupBackendServers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveVServerGroupBackendServersWithCallback invokes the slb.RemoveVServerGroupBackendServers API asynchronously +// api document: https://help.aliyun.com/api/slb/removevservergroupbackendservers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveVServerGroupBackendServersWithCallback(request *RemoveVServerGroupBackendServersRequest, callback func(response *RemoveVServerGroupBackendServersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveVServerGroupBackendServersResponse + var err error + defer close(result) + response, err = client.RemoveVServerGroupBackendServers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveVServerGroupBackendServersRequest is the request struct for api RemoveVServerGroupBackendServers +type RemoveVServerGroupBackendServersRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` + BackendServers string `position:"Query" name:"BackendServers"` +} + +// RemoveVServerGroupBackendServersResponse is the response struct for api RemoveVServerGroupBackendServers +type RemoveVServerGroupBackendServersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + BackendServers BackendServersInRemoveVServerGroupBackendServers `json:"BackendServers" xml:"BackendServers"` +} + +// CreateRemoveVServerGroupBackendServersRequest creates a request to invoke RemoveVServerGroupBackendServers API +func CreateRemoveVServerGroupBackendServersRequest() (request *RemoveVServerGroupBackendServersRequest) { + request = &RemoveVServerGroupBackendServersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "RemoveVServerGroupBackendServers", "slb", "openAPI") + return +} + +// CreateRemoveVServerGroupBackendServersResponse creates a response to parse from RemoveVServerGroupBackendServers response +func CreateRemoveVServerGroupBackendServersResponse() (response *RemoveVServerGroupBackendServersResponse) { + response = &RemoveVServerGroupBackendServersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_backend_servers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_backend_servers.go new file mode 100644 index 0000000..eab8fdf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_backend_servers.go @@ -0,0 +1,112 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetBackendServers invokes the slb.SetBackendServers API synchronously +// api document: https://help.aliyun.com/api/slb/setbackendservers.html +func (client *Client) SetBackendServers(request *SetBackendServersRequest) (response *SetBackendServersResponse, err error) { + response = CreateSetBackendServersResponse() + err = client.DoAction(request, response) + return +} + +// SetBackendServersWithChan invokes the slb.SetBackendServers API asynchronously +// api document: https://help.aliyun.com/api/slb/setbackendservers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetBackendServersWithChan(request *SetBackendServersRequest) (<-chan *SetBackendServersResponse, <-chan error) { + responseChan := make(chan *SetBackendServersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetBackendServers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetBackendServersWithCallback invokes the slb.SetBackendServers API asynchronously +// api document: https://help.aliyun.com/api/slb/setbackendservers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetBackendServersWithCallback(request *SetBackendServersRequest, callback func(response *SetBackendServersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetBackendServersResponse + var err error + defer close(result) + response, err = client.SetBackendServers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetBackendServersRequest is the request struct for api SetBackendServers +type SetBackendServersRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + BackendServers string `position:"Query" name:"BackendServers"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// SetBackendServersResponse is the response struct for api SetBackendServers +type SetBackendServersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + BackendServers BackendServersInSetBackendServers `json:"BackendServers" xml:"BackendServers"` +} + +// CreateSetBackendServersRequest creates a request to invoke SetBackendServers API +func CreateSetBackendServersRequest() (request *SetBackendServersRequest) { + request = &SetBackendServersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "SetBackendServers", "slb", "openAPI") + return +} + +// CreateSetBackendServersResponse creates a response to parse from SetBackendServers response +func CreateSetBackendServersResponse() (response *SetBackendServersResponse) { + response = &SetBackendServersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_ca_certificate_name.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_ca_certificate_name.go new file mode 100644 index 0000000..60245fa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_ca_certificate_name.go @@ -0,0 +1,109 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetCACertificateName invokes the slb.SetCACertificateName API synchronously +// api document: https://help.aliyun.com/api/slb/setcacertificatename.html +func (client *Client) SetCACertificateName(request *SetCACertificateNameRequest) (response *SetCACertificateNameResponse, err error) { + response = CreateSetCACertificateNameResponse() + err = client.DoAction(request, response) + return +} + +// SetCACertificateNameWithChan invokes the slb.SetCACertificateName API asynchronously +// api document: https://help.aliyun.com/api/slb/setcacertificatename.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetCACertificateNameWithChan(request *SetCACertificateNameRequest) (<-chan *SetCACertificateNameResponse, <-chan error) { + responseChan := make(chan *SetCACertificateNameResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetCACertificateName(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetCACertificateNameWithCallback invokes the slb.SetCACertificateName API asynchronously +// api document: https://help.aliyun.com/api/slb/setcacertificatename.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetCACertificateNameWithCallback(request *SetCACertificateNameRequest, callback func(response *SetCACertificateNameResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetCACertificateNameResponse + var err error + defer close(result) + response, err = client.SetCACertificateName(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetCACertificateNameRequest is the request struct for api SetCACertificateName +type SetCACertificateNameRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + CACertificateId string `position:"Query" name:"CACertificateId"` + CACertificateName string `position:"Query" name:"CACertificateName"` +} + +// SetCACertificateNameResponse is the response struct for api SetCACertificateName +type SetCACertificateNameResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetCACertificateNameRequest creates a request to invoke SetCACertificateName API +func CreateSetCACertificateNameRequest() (request *SetCACertificateNameRequest) { + request = &SetCACertificateNameRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "SetCACertificateName", "slb", "openAPI") + return +} + +// CreateSetCACertificateNameResponse creates a response to parse from SetCACertificateName response +func CreateSetCACertificateNameResponse() (response *SetCACertificateNameResponse) { + response = &SetCACertificateNameResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_listener_access_control_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_listener_access_control_status.go new file mode 100644 index 0000000..39dc62b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_listener_access_control_status.go @@ -0,0 +1,111 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetListenerAccessControlStatus invokes the slb.SetListenerAccessControlStatus API synchronously +// api document: https://help.aliyun.com/api/slb/setlisteneraccesscontrolstatus.html +func (client *Client) SetListenerAccessControlStatus(request *SetListenerAccessControlStatusRequest) (response *SetListenerAccessControlStatusResponse, err error) { + response = CreateSetListenerAccessControlStatusResponse() + err = client.DoAction(request, response) + return +} + +// SetListenerAccessControlStatusWithChan invokes the slb.SetListenerAccessControlStatus API asynchronously +// api document: https://help.aliyun.com/api/slb/setlisteneraccesscontrolstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetListenerAccessControlStatusWithChan(request *SetListenerAccessControlStatusRequest) (<-chan *SetListenerAccessControlStatusResponse, <-chan error) { + responseChan := make(chan *SetListenerAccessControlStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetListenerAccessControlStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetListenerAccessControlStatusWithCallback invokes the slb.SetListenerAccessControlStatus API asynchronously +// api document: https://help.aliyun.com/api/slb/setlisteneraccesscontrolstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetListenerAccessControlStatusWithCallback(request *SetListenerAccessControlStatusRequest, callback func(response *SetListenerAccessControlStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetListenerAccessControlStatusResponse + var err error + defer close(result) + response, err = client.SetListenerAccessControlStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetListenerAccessControlStatusRequest is the request struct for api SetListenerAccessControlStatus +type SetListenerAccessControlStatusRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + AccessControlStatus string `position:"Query" name:"AccessControlStatus"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// SetListenerAccessControlStatusResponse is the response struct for api SetListenerAccessControlStatus +type SetListenerAccessControlStatusResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetListenerAccessControlStatusRequest creates a request to invoke SetListenerAccessControlStatus API +func CreateSetListenerAccessControlStatusRequest() (request *SetListenerAccessControlStatusRequest) { + request = &SetListenerAccessControlStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "SetListenerAccessControlStatus", "slb", "openAPI") + return +} + +// CreateSetListenerAccessControlStatusResponse creates a response to parse from SetListenerAccessControlStatus response +func CreateSetListenerAccessControlStatusResponse() (response *SetListenerAccessControlStatusResponse) { + response = &SetListenerAccessControlStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_auto_release_time.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_auto_release_time.go new file mode 100644 index 0000000..8e7b6f6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_auto_release_time.go @@ -0,0 +1,110 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetLoadBalancerAutoReleaseTime invokes the slb.SetLoadBalancerAutoReleaseTime API synchronously +// api document: https://help.aliyun.com/api/slb/setloadbalancerautoreleasetime.html +func (client *Client) SetLoadBalancerAutoReleaseTime(request *SetLoadBalancerAutoReleaseTimeRequest) (response *SetLoadBalancerAutoReleaseTimeResponse, err error) { + response = CreateSetLoadBalancerAutoReleaseTimeResponse() + err = client.DoAction(request, response) + return +} + +// SetLoadBalancerAutoReleaseTimeWithChan invokes the slb.SetLoadBalancerAutoReleaseTime API asynchronously +// api document: https://help.aliyun.com/api/slb/setloadbalancerautoreleasetime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetLoadBalancerAutoReleaseTimeWithChan(request *SetLoadBalancerAutoReleaseTimeRequest) (<-chan *SetLoadBalancerAutoReleaseTimeResponse, <-chan error) { + responseChan := make(chan *SetLoadBalancerAutoReleaseTimeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetLoadBalancerAutoReleaseTime(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetLoadBalancerAutoReleaseTimeWithCallback invokes the slb.SetLoadBalancerAutoReleaseTime API asynchronously +// api document: https://help.aliyun.com/api/slb/setloadbalancerautoreleasetime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetLoadBalancerAutoReleaseTimeWithCallback(request *SetLoadBalancerAutoReleaseTimeRequest, callback func(response *SetLoadBalancerAutoReleaseTimeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetLoadBalancerAutoReleaseTimeResponse + var err error + defer close(result) + response, err = client.SetLoadBalancerAutoReleaseTime(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetLoadBalancerAutoReleaseTimeRequest is the request struct for api SetLoadBalancerAutoReleaseTime +type SetLoadBalancerAutoReleaseTimeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + AutoReleaseTime requests.Integer `position:"Query" name:"AutoReleaseTime"` +} + +// SetLoadBalancerAutoReleaseTimeResponse is the response struct for api SetLoadBalancerAutoReleaseTime +type SetLoadBalancerAutoReleaseTimeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetLoadBalancerAutoReleaseTimeRequest creates a request to invoke SetLoadBalancerAutoReleaseTime API +func CreateSetLoadBalancerAutoReleaseTimeRequest() (request *SetLoadBalancerAutoReleaseTimeRequest) { + request = &SetLoadBalancerAutoReleaseTimeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "SetLoadBalancerAutoReleaseTime", "slb", "openAPI") + return +} + +// CreateSetLoadBalancerAutoReleaseTimeResponse creates a response to parse from SetLoadBalancerAutoReleaseTime response +func CreateSetLoadBalancerAutoReleaseTimeResponse() (response *SetLoadBalancerAutoReleaseTimeResponse) { + response = &SetLoadBalancerAutoReleaseTimeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_http_listener_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_http_listener_attribute.go new file mode 100644 index 0000000..6d98e50 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_http_listener_attribute.go @@ -0,0 +1,133 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetLoadBalancerHTTPListenerAttribute invokes the slb.SetLoadBalancerHTTPListenerAttribute API synchronously +// api document: https://help.aliyun.com/api/slb/setloadbalancerhttplistenerattribute.html +func (client *Client) SetLoadBalancerHTTPListenerAttribute(request *SetLoadBalancerHTTPListenerAttributeRequest) (response *SetLoadBalancerHTTPListenerAttributeResponse, err error) { + response = CreateSetLoadBalancerHTTPListenerAttributeResponse() + err = client.DoAction(request, response) + return +} + +// SetLoadBalancerHTTPListenerAttributeWithChan invokes the slb.SetLoadBalancerHTTPListenerAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/setloadbalancerhttplistenerattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetLoadBalancerHTTPListenerAttributeWithChan(request *SetLoadBalancerHTTPListenerAttributeRequest) (<-chan *SetLoadBalancerHTTPListenerAttributeResponse, <-chan error) { + responseChan := make(chan *SetLoadBalancerHTTPListenerAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetLoadBalancerHTTPListenerAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetLoadBalancerHTTPListenerAttributeWithCallback invokes the slb.SetLoadBalancerHTTPListenerAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/setloadbalancerhttplistenerattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetLoadBalancerHTTPListenerAttributeWithCallback(request *SetLoadBalancerHTTPListenerAttributeRequest, callback func(response *SetLoadBalancerHTTPListenerAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetLoadBalancerHTTPListenerAttributeResponse + var err error + defer close(result) + response, err = client.SetLoadBalancerHTTPListenerAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetLoadBalancerHTTPListenerAttributeRequest is the request struct for api SetLoadBalancerHTTPListenerAttribute +type SetLoadBalancerHTTPListenerAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + XForwardedFor string `position:"Query" name:"XForwardedFor"` + Scheduler string `position:"Query" name:"Scheduler"` + StickySession string `position:"Query" name:"StickySession"` + StickySessionType string `position:"Query" name:"StickySessionType"` + CookieTimeout requests.Integer `position:"Query" name:"CookieTimeout"` + Cookie string `position:"Query" name:"Cookie"` + HealthCheck string `position:"Query" name:"HealthCheck"` + HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` + HealthCheckURI string `position:"Query" name:"HealthCheckURI"` + HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` + UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` + HealthCheckTimeout requests.Integer `position:"Query" name:"HealthCheckTimeout"` + HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` + HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` + HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` + MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + VServerGroup string `position:"Query" name:"VServerGroup"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` + Tags string `position:"Query" name:"Tags"` + XForwardedForSLBIP string `position:"Query" name:"XForwardedFor_SLBIP"` + XForwardedForSLBID string `position:"Query" name:"XForwardedFor_SLBID"` + XForwardedForProto string `position:"Query" name:"XForwardedFor_proto"` + Gzip string `position:"Query" name:"Gzip"` +} + +// SetLoadBalancerHTTPListenerAttributeResponse is the response struct for api SetLoadBalancerHTTPListenerAttribute +type SetLoadBalancerHTTPListenerAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetLoadBalancerHTTPListenerAttributeRequest creates a request to invoke SetLoadBalancerHTTPListenerAttribute API +func CreateSetLoadBalancerHTTPListenerAttributeRequest() (request *SetLoadBalancerHTTPListenerAttributeRequest) { + request = &SetLoadBalancerHTTPListenerAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "SetLoadBalancerHTTPListenerAttribute", "slb", "openAPI") + return +} + +// CreateSetLoadBalancerHTTPListenerAttributeResponse creates a response to parse from SetLoadBalancerHTTPListenerAttribute response +func CreateSetLoadBalancerHTTPListenerAttributeResponse() (response *SetLoadBalancerHTTPListenerAttributeResponse) { + response = &SetLoadBalancerHTTPListenerAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_https_listener_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_https_listener_attribute.go new file mode 100644 index 0000000..dc0be00 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_https_listener_attribute.go @@ -0,0 +1,135 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetLoadBalancerHTTPSListenerAttribute invokes the slb.SetLoadBalancerHTTPSListenerAttribute API synchronously +// api document: https://help.aliyun.com/api/slb/setloadbalancerhttpslistenerattribute.html +func (client *Client) SetLoadBalancerHTTPSListenerAttribute(request *SetLoadBalancerHTTPSListenerAttributeRequest) (response *SetLoadBalancerHTTPSListenerAttributeResponse, err error) { + response = CreateSetLoadBalancerHTTPSListenerAttributeResponse() + err = client.DoAction(request, response) + return +} + +// SetLoadBalancerHTTPSListenerAttributeWithChan invokes the slb.SetLoadBalancerHTTPSListenerAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/setloadbalancerhttpslistenerattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetLoadBalancerHTTPSListenerAttributeWithChan(request *SetLoadBalancerHTTPSListenerAttributeRequest) (<-chan *SetLoadBalancerHTTPSListenerAttributeResponse, <-chan error) { + responseChan := make(chan *SetLoadBalancerHTTPSListenerAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetLoadBalancerHTTPSListenerAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetLoadBalancerHTTPSListenerAttributeWithCallback invokes the slb.SetLoadBalancerHTTPSListenerAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/setloadbalancerhttpslistenerattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetLoadBalancerHTTPSListenerAttributeWithCallback(request *SetLoadBalancerHTTPSListenerAttributeRequest, callback func(response *SetLoadBalancerHTTPSListenerAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetLoadBalancerHTTPSListenerAttributeResponse + var err error + defer close(result) + response, err = client.SetLoadBalancerHTTPSListenerAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetLoadBalancerHTTPSListenerAttributeRequest is the request struct for api SetLoadBalancerHTTPSListenerAttribute +type SetLoadBalancerHTTPSListenerAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + XForwardedFor string `position:"Query" name:"XForwardedFor"` + Scheduler string `position:"Query" name:"Scheduler"` + StickySession string `position:"Query" name:"StickySession"` + StickySessionType string `position:"Query" name:"StickySessionType"` + CookieTimeout requests.Integer `position:"Query" name:"CookieTimeout"` + Cookie string `position:"Query" name:"Cookie"` + HealthCheck string `position:"Query" name:"HealthCheck"` + HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` + HealthCheckURI string `position:"Query" name:"HealthCheckURI"` + HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` + UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` + HealthCheckTimeout requests.Integer `position:"Query" name:"HealthCheckTimeout"` + HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` + HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` + HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` + MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + ServerCertificateId string `position:"Query" name:"ServerCertificateId"` + CACertificateId string `position:"Query" name:"CACertificateId"` + VServerGroup string `position:"Query" name:"VServerGroup"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` + Tags string `position:"Query" name:"Tags"` + XForwardedForSLBIP string `position:"Query" name:"XForwardedFor_SLBIP"` + XForwardedForSLBID string `position:"Query" name:"XForwardedFor_SLBID"` + XForwardedForProto string `position:"Query" name:"XForwardedFor_proto"` + Gzip string `position:"Query" name:"Gzip"` +} + +// SetLoadBalancerHTTPSListenerAttributeResponse is the response struct for api SetLoadBalancerHTTPSListenerAttribute +type SetLoadBalancerHTTPSListenerAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetLoadBalancerHTTPSListenerAttributeRequest creates a request to invoke SetLoadBalancerHTTPSListenerAttribute API +func CreateSetLoadBalancerHTTPSListenerAttributeRequest() (request *SetLoadBalancerHTTPSListenerAttributeRequest) { + request = &SetLoadBalancerHTTPSListenerAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "SetLoadBalancerHTTPSListenerAttribute", "slb", "openAPI") + return +} + +// CreateSetLoadBalancerHTTPSListenerAttributeResponse creates a response to parse from SetLoadBalancerHTTPSListenerAttribute response +func CreateSetLoadBalancerHTTPSListenerAttributeResponse() (response *SetLoadBalancerHTTPSListenerAttributeResponse) { + response = &SetLoadBalancerHTTPSListenerAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_name.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_name.go new file mode 100644 index 0000000..f5a106f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_name.go @@ -0,0 +1,110 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetLoadBalancerName invokes the slb.SetLoadBalancerName API synchronously +// api document: https://help.aliyun.com/api/slb/setloadbalancername.html +func (client *Client) SetLoadBalancerName(request *SetLoadBalancerNameRequest) (response *SetLoadBalancerNameResponse, err error) { + response = CreateSetLoadBalancerNameResponse() + err = client.DoAction(request, response) + return +} + +// SetLoadBalancerNameWithChan invokes the slb.SetLoadBalancerName API asynchronously +// api document: https://help.aliyun.com/api/slb/setloadbalancername.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetLoadBalancerNameWithChan(request *SetLoadBalancerNameRequest) (<-chan *SetLoadBalancerNameResponse, <-chan error) { + responseChan := make(chan *SetLoadBalancerNameResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetLoadBalancerName(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetLoadBalancerNameWithCallback invokes the slb.SetLoadBalancerName API asynchronously +// api document: https://help.aliyun.com/api/slb/setloadbalancername.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetLoadBalancerNameWithCallback(request *SetLoadBalancerNameRequest, callback func(response *SetLoadBalancerNameResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetLoadBalancerNameResponse + var err error + defer close(result) + response, err = client.SetLoadBalancerName(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetLoadBalancerNameRequest is the request struct for api SetLoadBalancerName +type SetLoadBalancerNameRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + LoadBalancerName string `position:"Query" name:"LoadBalancerName"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// SetLoadBalancerNameResponse is the response struct for api SetLoadBalancerName +type SetLoadBalancerNameResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetLoadBalancerNameRequest creates a request to invoke SetLoadBalancerName API +func CreateSetLoadBalancerNameRequest() (request *SetLoadBalancerNameRequest) { + request = &SetLoadBalancerNameRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "SetLoadBalancerName", "slb", "openAPI") + return +} + +// CreateSetLoadBalancerNameResponse creates a response to parse from SetLoadBalancerName response +func CreateSetLoadBalancerNameResponse() (response *SetLoadBalancerNameResponse) { + response = &SetLoadBalancerNameResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_status.go new file mode 100644 index 0000000..b36d9d7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_status.go @@ -0,0 +1,110 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetLoadBalancerStatus invokes the slb.SetLoadBalancerStatus API synchronously +// api document: https://help.aliyun.com/api/slb/setloadbalancerstatus.html +func (client *Client) SetLoadBalancerStatus(request *SetLoadBalancerStatusRequest) (response *SetLoadBalancerStatusResponse, err error) { + response = CreateSetLoadBalancerStatusResponse() + err = client.DoAction(request, response) + return +} + +// SetLoadBalancerStatusWithChan invokes the slb.SetLoadBalancerStatus API asynchronously +// api document: https://help.aliyun.com/api/slb/setloadbalancerstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetLoadBalancerStatusWithChan(request *SetLoadBalancerStatusRequest) (<-chan *SetLoadBalancerStatusResponse, <-chan error) { + responseChan := make(chan *SetLoadBalancerStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetLoadBalancerStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetLoadBalancerStatusWithCallback invokes the slb.SetLoadBalancerStatus API asynchronously +// api document: https://help.aliyun.com/api/slb/setloadbalancerstatus.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetLoadBalancerStatusWithCallback(request *SetLoadBalancerStatusRequest, callback func(response *SetLoadBalancerStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetLoadBalancerStatusResponse + var err error + defer close(result) + response, err = client.SetLoadBalancerStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetLoadBalancerStatusRequest is the request struct for api SetLoadBalancerStatus +type SetLoadBalancerStatusRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + LoadBalancerStatus string `position:"Query" name:"LoadBalancerStatus"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// SetLoadBalancerStatusResponse is the response struct for api SetLoadBalancerStatus +type SetLoadBalancerStatusResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetLoadBalancerStatusRequest creates a request to invoke SetLoadBalancerStatus API +func CreateSetLoadBalancerStatusRequest() (request *SetLoadBalancerStatusRequest) { + request = &SetLoadBalancerStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "SetLoadBalancerStatus", "slb", "openAPI") + return +} + +// CreateSetLoadBalancerStatusResponse creates a response to parse from SetLoadBalancerStatus response +func CreateSetLoadBalancerStatusResponse() (response *SetLoadBalancerStatusResponse) { + response = &SetLoadBalancerStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_tcp_listener_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_tcp_listener_attribute.go new file mode 100644 index 0000000..43f64b1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_tcp_listener_attribute.go @@ -0,0 +1,129 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetLoadBalancerTCPListenerAttribute invokes the slb.SetLoadBalancerTCPListenerAttribute API synchronously +// api document: https://help.aliyun.com/api/slb/setloadbalancertcplistenerattribute.html +func (client *Client) SetLoadBalancerTCPListenerAttribute(request *SetLoadBalancerTCPListenerAttributeRequest) (response *SetLoadBalancerTCPListenerAttributeResponse, err error) { + response = CreateSetLoadBalancerTCPListenerAttributeResponse() + err = client.DoAction(request, response) + return +} + +// SetLoadBalancerTCPListenerAttributeWithChan invokes the slb.SetLoadBalancerTCPListenerAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/setloadbalancertcplistenerattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetLoadBalancerTCPListenerAttributeWithChan(request *SetLoadBalancerTCPListenerAttributeRequest) (<-chan *SetLoadBalancerTCPListenerAttributeResponse, <-chan error) { + responseChan := make(chan *SetLoadBalancerTCPListenerAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetLoadBalancerTCPListenerAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetLoadBalancerTCPListenerAttributeWithCallback invokes the slb.SetLoadBalancerTCPListenerAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/setloadbalancertcplistenerattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetLoadBalancerTCPListenerAttributeWithCallback(request *SetLoadBalancerTCPListenerAttributeRequest, callback func(response *SetLoadBalancerTCPListenerAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetLoadBalancerTCPListenerAttributeResponse + var err error + defer close(result) + response, err = client.SetLoadBalancerTCPListenerAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetLoadBalancerTCPListenerAttributeRequest is the request struct for api SetLoadBalancerTCPListenerAttribute +type SetLoadBalancerTCPListenerAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + Scheduler string `position:"Query" name:"Scheduler"` + PersistenceTimeout requests.Integer `position:"Query" name:"PersistenceTimeout"` + EstablishedTimeout requests.Integer `position:"Query" name:"EstablishedTimeout"` + HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` + UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` + HealthCheckConnectTimeout requests.Integer `position:"Query" name:"HealthCheckConnectTimeout"` + HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` + HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` + HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` + HealthCheckURI string `position:"Query" name:"HealthCheckURI"` + HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` + HealthCheckType string `position:"Query" name:"HealthCheckType"` + SynProxy string `position:"Query" name:"SynProxy"` + MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + VServerGroup string `position:"Query" name:"VServerGroup"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` + MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` + MasterSlaveServerGroup string `position:"Query" name:"MasterSlaveServerGroup"` +} + +// SetLoadBalancerTCPListenerAttributeResponse is the response struct for api SetLoadBalancerTCPListenerAttribute +type SetLoadBalancerTCPListenerAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetLoadBalancerTCPListenerAttributeRequest creates a request to invoke SetLoadBalancerTCPListenerAttribute API +func CreateSetLoadBalancerTCPListenerAttributeRequest() (request *SetLoadBalancerTCPListenerAttributeRequest) { + request = &SetLoadBalancerTCPListenerAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "SetLoadBalancerTCPListenerAttribute", "slb", "openAPI") + return +} + +// CreateSetLoadBalancerTCPListenerAttributeResponse creates a response to parse from SetLoadBalancerTCPListenerAttribute response +func CreateSetLoadBalancerTCPListenerAttributeResponse() (response *SetLoadBalancerTCPListenerAttributeResponse) { + response = &SetLoadBalancerTCPListenerAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_udp_listener_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_udp_listener_attribute.go new file mode 100644 index 0000000..a21b413 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_udp_listener_attribute.go @@ -0,0 +1,125 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetLoadBalancerUDPListenerAttribute invokes the slb.SetLoadBalancerUDPListenerAttribute API synchronously +// api document: https://help.aliyun.com/api/slb/setloadbalancerudplistenerattribute.html +func (client *Client) SetLoadBalancerUDPListenerAttribute(request *SetLoadBalancerUDPListenerAttributeRequest) (response *SetLoadBalancerUDPListenerAttributeResponse, err error) { + response = CreateSetLoadBalancerUDPListenerAttributeResponse() + err = client.DoAction(request, response) + return +} + +// SetLoadBalancerUDPListenerAttributeWithChan invokes the slb.SetLoadBalancerUDPListenerAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/setloadbalancerudplistenerattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetLoadBalancerUDPListenerAttributeWithChan(request *SetLoadBalancerUDPListenerAttributeRequest) (<-chan *SetLoadBalancerUDPListenerAttributeResponse, <-chan error) { + responseChan := make(chan *SetLoadBalancerUDPListenerAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetLoadBalancerUDPListenerAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetLoadBalancerUDPListenerAttributeWithCallback invokes the slb.SetLoadBalancerUDPListenerAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/setloadbalancerudplistenerattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetLoadBalancerUDPListenerAttributeWithCallback(request *SetLoadBalancerUDPListenerAttributeRequest, callback func(response *SetLoadBalancerUDPListenerAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetLoadBalancerUDPListenerAttributeResponse + var err error + defer close(result) + response, err = client.SetLoadBalancerUDPListenerAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetLoadBalancerUDPListenerAttributeRequest is the request struct for api SetLoadBalancerUDPListenerAttribute +type SetLoadBalancerUDPListenerAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + Scheduler string `position:"Query" name:"Scheduler"` + PersistenceTimeout requests.Integer `position:"Query" name:"PersistenceTimeout"` + HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` + UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` + HealthCheckConnectTimeout requests.Integer `position:"Query" name:"HealthCheckConnectTimeout"` + HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` + HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` + HealthCheckReq string `position:"Query" name:"healthCheckReq"` + HealthCheckExp string `position:"Query" name:"healthCheckExp"` + MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + VServerGroup string `position:"Query" name:"VServerGroup"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` + MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` + MasterSlaveServerGroup string `position:"Query" name:"MasterSlaveServerGroup"` +} + +// SetLoadBalancerUDPListenerAttributeResponse is the response struct for api SetLoadBalancerUDPListenerAttribute +type SetLoadBalancerUDPListenerAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetLoadBalancerUDPListenerAttributeRequest creates a request to invoke SetLoadBalancerUDPListenerAttribute API +func CreateSetLoadBalancerUDPListenerAttributeRequest() (request *SetLoadBalancerUDPListenerAttributeRequest) { + request = &SetLoadBalancerUDPListenerAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "SetLoadBalancerUDPListenerAttribute", "slb", "openAPI") + return +} + +// CreateSetLoadBalancerUDPListenerAttributeResponse creates a response to parse from SetLoadBalancerUDPListenerAttribute response +func CreateSetLoadBalancerUDPListenerAttributeResponse() (response *SetLoadBalancerUDPListenerAttributeResponse) { + response = &SetLoadBalancerUDPListenerAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_rule.go new file mode 100644 index 0000000..b220f3e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_rule.go @@ -0,0 +1,110 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetRule invokes the slb.SetRule API synchronously +// api document: https://help.aliyun.com/api/slb/setrule.html +func (client *Client) SetRule(request *SetRuleRequest) (response *SetRuleResponse, err error) { + response = CreateSetRuleResponse() + err = client.DoAction(request, response) + return +} + +// SetRuleWithChan invokes the slb.SetRule API asynchronously +// api document: https://help.aliyun.com/api/slb/setrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetRuleWithChan(request *SetRuleRequest) (<-chan *SetRuleResponse, <-chan error) { + responseChan := make(chan *SetRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetRuleWithCallback invokes the slb.SetRule API asynchronously +// api document: https://help.aliyun.com/api/slb/setrule.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetRuleWithCallback(request *SetRuleRequest, callback func(response *SetRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetRuleResponse + var err error + defer close(result) + response, err = client.SetRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetRuleRequest is the request struct for api SetRule +type SetRuleRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + RuleId string `position:"Query" name:"RuleId"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` +} + +// SetRuleResponse is the response struct for api SetRule +type SetRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetRuleRequest creates a request to invoke SetRule API +func CreateSetRuleRequest() (request *SetRuleRequest) { + request = &SetRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "SetRule", "slb", "openAPI") + return +} + +// CreateSetRuleResponse creates a response to parse from SetRule response +func CreateSetRuleResponse() (response *SetRuleResponse) { + response = &SetRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_server_certificate_name.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_server_certificate_name.go new file mode 100644 index 0000000..56b6f41 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_server_certificate_name.go @@ -0,0 +1,110 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetServerCertificateName invokes the slb.SetServerCertificateName API synchronously +// api document: https://help.aliyun.com/api/slb/setservercertificatename.html +func (client *Client) SetServerCertificateName(request *SetServerCertificateNameRequest) (response *SetServerCertificateNameResponse, err error) { + response = CreateSetServerCertificateNameResponse() + err = client.DoAction(request, response) + return +} + +// SetServerCertificateNameWithChan invokes the slb.SetServerCertificateName API asynchronously +// api document: https://help.aliyun.com/api/slb/setservercertificatename.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetServerCertificateNameWithChan(request *SetServerCertificateNameRequest) (<-chan *SetServerCertificateNameResponse, <-chan error) { + responseChan := make(chan *SetServerCertificateNameResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetServerCertificateName(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetServerCertificateNameWithCallback invokes the slb.SetServerCertificateName API asynchronously +// api document: https://help.aliyun.com/api/slb/setservercertificatename.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetServerCertificateNameWithCallback(request *SetServerCertificateNameRequest, callback func(response *SetServerCertificateNameResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetServerCertificateNameResponse + var err error + defer close(result) + response, err = client.SetServerCertificateName(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetServerCertificateNameRequest is the request struct for api SetServerCertificateName +type SetServerCertificateNameRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ServerCertificateId string `position:"Query" name:"ServerCertificateId"` + ServerCertificateName string `position:"Query" name:"ServerCertificateName"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// SetServerCertificateNameResponse is the response struct for api SetServerCertificateName +type SetServerCertificateNameResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetServerCertificateNameRequest creates a request to invoke SetServerCertificateName API +func CreateSetServerCertificateNameRequest() (request *SetServerCertificateNameRequest) { + request = &SetServerCertificateNameRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "SetServerCertificateName", "slb", "openAPI") + return +} + +// CreateSetServerCertificateNameResponse creates a response to parse from SetServerCertificateName response +func CreateSetServerCertificateNameResponse() (response *SetServerCertificateNameResponse) { + response = &SetServerCertificateNameResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_v_server_group_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_v_server_group_attribute.go new file mode 100644 index 0000000..ee8bbbf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_v_server_group_attribute.go @@ -0,0 +1,114 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetVServerGroupAttribute invokes the slb.SetVServerGroupAttribute API synchronously +// api document: https://help.aliyun.com/api/slb/setvservergroupattribute.html +func (client *Client) SetVServerGroupAttribute(request *SetVServerGroupAttributeRequest) (response *SetVServerGroupAttributeResponse, err error) { + response = CreateSetVServerGroupAttributeResponse() + err = client.DoAction(request, response) + return +} + +// SetVServerGroupAttributeWithChan invokes the slb.SetVServerGroupAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/setvservergroupattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetVServerGroupAttributeWithChan(request *SetVServerGroupAttributeRequest) (<-chan *SetVServerGroupAttributeResponse, <-chan error) { + responseChan := make(chan *SetVServerGroupAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetVServerGroupAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetVServerGroupAttributeWithCallback invokes the slb.SetVServerGroupAttribute API asynchronously +// api document: https://help.aliyun.com/api/slb/setvservergroupattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetVServerGroupAttributeWithCallback(request *SetVServerGroupAttributeRequest, callback func(response *SetVServerGroupAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetVServerGroupAttributeResponse + var err error + defer close(result) + response, err = client.SetVServerGroupAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetVServerGroupAttributeRequest is the request struct for api SetVServerGroupAttribute +type SetVServerGroupAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` + VServerGroupName string `position:"Query" name:"VServerGroupName"` + BackendServers string `position:"Query" name:"BackendServers"` +} + +// SetVServerGroupAttributeResponse is the response struct for api SetVServerGroupAttribute +type SetVServerGroupAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + VServerGroupName string `json:"VServerGroupName" xml:"VServerGroupName"` + BackendServers BackendServersInSetVServerGroupAttribute `json:"BackendServers" xml:"BackendServers"` +} + +// CreateSetVServerGroupAttributeRequest creates a request to invoke SetVServerGroupAttribute API +func CreateSetVServerGroupAttributeRequest() (request *SetVServerGroupAttributeRequest) { + request = &SetVServerGroupAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "SetVServerGroupAttribute", "slb", "openAPI") + return +} + +// CreateSetVServerGroupAttributeResponse creates a response to parse from SetVServerGroupAttribute response +func CreateSetVServerGroupAttributeResponse() (response *SetVServerGroupAttributeResponse) { + response = &SetVServerGroupAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/start_load_balancer_listener.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/start_load_balancer_listener.go new file mode 100644 index 0000000..aec5db1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/start_load_balancer_listener.go @@ -0,0 +1,110 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StartLoadBalancerListener invokes the slb.StartLoadBalancerListener API synchronously +// api document: https://help.aliyun.com/api/slb/startloadbalancerlistener.html +func (client *Client) StartLoadBalancerListener(request *StartLoadBalancerListenerRequest) (response *StartLoadBalancerListenerResponse, err error) { + response = CreateStartLoadBalancerListenerResponse() + err = client.DoAction(request, response) + return +} + +// StartLoadBalancerListenerWithChan invokes the slb.StartLoadBalancerListener API asynchronously +// api document: https://help.aliyun.com/api/slb/startloadbalancerlistener.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartLoadBalancerListenerWithChan(request *StartLoadBalancerListenerRequest) (<-chan *StartLoadBalancerListenerResponse, <-chan error) { + responseChan := make(chan *StartLoadBalancerListenerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartLoadBalancerListener(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartLoadBalancerListenerWithCallback invokes the slb.StartLoadBalancerListener API asynchronously +// api document: https://help.aliyun.com/api/slb/startloadbalancerlistener.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StartLoadBalancerListenerWithCallback(request *StartLoadBalancerListenerRequest, callback func(response *StartLoadBalancerListenerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartLoadBalancerListenerResponse + var err error + defer close(result) + response, err = client.StartLoadBalancerListener(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartLoadBalancerListenerRequest is the request struct for api StartLoadBalancerListener +type StartLoadBalancerListenerRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// StartLoadBalancerListenerResponse is the response struct for api StartLoadBalancerListener +type StartLoadBalancerListenerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStartLoadBalancerListenerRequest creates a request to invoke StartLoadBalancerListener API +func CreateStartLoadBalancerListenerRequest() (request *StartLoadBalancerListenerRequest) { + request = &StartLoadBalancerListenerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "StartLoadBalancerListener", "slb", "openAPI") + return +} + +// CreateStartLoadBalancerListenerResponse creates a response to parse from StartLoadBalancerListener response +func CreateStartLoadBalancerListenerResponse() (response *StartLoadBalancerListenerResponse) { + response = &StartLoadBalancerListenerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/stop_load_balancer_listener.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/stop_load_balancer_listener.go new file mode 100644 index 0000000..22389bf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/stop_load_balancer_listener.go @@ -0,0 +1,110 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StopLoadBalancerListener invokes the slb.StopLoadBalancerListener API synchronously +// api document: https://help.aliyun.com/api/slb/stoploadbalancerlistener.html +func (client *Client) StopLoadBalancerListener(request *StopLoadBalancerListenerRequest) (response *StopLoadBalancerListenerResponse, err error) { + response = CreateStopLoadBalancerListenerResponse() + err = client.DoAction(request, response) + return +} + +// StopLoadBalancerListenerWithChan invokes the slb.StopLoadBalancerListener API asynchronously +// api document: https://help.aliyun.com/api/slb/stoploadbalancerlistener.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopLoadBalancerListenerWithChan(request *StopLoadBalancerListenerRequest) (<-chan *StopLoadBalancerListenerResponse, <-chan error) { + responseChan := make(chan *StopLoadBalancerListenerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopLoadBalancerListener(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopLoadBalancerListenerWithCallback invokes the slb.StopLoadBalancerListener API asynchronously +// api document: https://help.aliyun.com/api/slb/stoploadbalancerlistener.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) StopLoadBalancerListenerWithCallback(request *StopLoadBalancerListenerRequest, callback func(response *StopLoadBalancerListenerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopLoadBalancerListenerResponse + var err error + defer close(result) + response, err = client.StopLoadBalancerListener(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopLoadBalancerListenerRequest is the request struct for api StopLoadBalancerListener +type StopLoadBalancerListenerRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` +} + +// StopLoadBalancerListenerResponse is the response struct for api StopLoadBalancerListener +type StopLoadBalancerListenerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStopLoadBalancerListenerRequest creates a request to invoke StopLoadBalancerListener API +func CreateStopLoadBalancerListenerRequest() (request *StopLoadBalancerListenerRequest) { + request = &StopLoadBalancerListenerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "StopLoadBalancerListener", "slb", "openAPI") + return +} + +// CreateStopLoadBalancerListenerResponse creates a response to parse from StopLoadBalancerListener response +func CreateStopLoadBalancerListenerResponse() (response *StopLoadBalancerListenerResponse) { + response = &StopLoadBalancerListenerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server.go new file mode 100644 index 0000000..962f57b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server.go @@ -0,0 +1,27 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServer is a nested struct in slb response +type BackendServer struct { + Port int `json:"Port" xml:"Port"` + ServerHealthStatus string `json:"ServerHealthStatus" xml:"ServerHealthStatus"` + VmName string `json:"VmName" xml:"VmName"` + ServerId string `json:"ServerId" xml:"ServerId"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` + Weight int `json:"Weight" xml:"Weight"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_add_backend_servers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_add_backend_servers.go new file mode 100644 index 0000000..3e25b6f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_add_backend_servers.go @@ -0,0 +1,22 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServerInAddBackendServers is a nested struct in slb response +type BackendServerInAddBackendServers struct { + ServerId string `json:"ServerId" xml:"ServerId"` + Weight string `json:"Weight" xml:"Weight"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_set_backend_servers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_set_backend_servers.go new file mode 100644 index 0000000..1d0f6bd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_set_backend_servers.go @@ -0,0 +1,22 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServerInSetBackendServers is a nested struct in slb response +type BackendServerInSetBackendServers struct { + ServerId string `json:"ServerId" xml:"ServerId"` + Weight string `json:"Weight" xml:"Weight"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_add_backend_servers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_add_backend_servers.go new file mode 100644 index 0000000..9906645 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_add_backend_servers.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServersInAddBackendServers is a nested struct in slb response +type BackendServersInAddBackendServers struct { + BackendServer []BackendServerInAddBackendServers `json:"BackendServer" xml:"BackendServer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_add_v_server_group_backend_servers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_add_v_server_group_backend_servers.go new file mode 100644 index 0000000..ae44450 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_add_v_server_group_backend_servers.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServersInAddVServerGroupBackendServers is a nested struct in slb response +type BackendServersInAddVServerGroupBackendServers struct { + BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_create_v_server_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_create_v_server_group.go new file mode 100644 index 0000000..27a4e09 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_create_v_server_group.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServersInCreateVServerGroup is a nested struct in slb response +type BackendServersInCreateVServerGroup struct { + BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_health_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_health_status.go new file mode 100644 index 0000000..63f094f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_health_status.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServersInDescribeHealthStatus is a nested struct in slb response +type BackendServersInDescribeHealthStatus struct { + BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_load_balancer_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_load_balancer_attribute.go new file mode 100644 index 0000000..5f803bb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_load_balancer_attribute.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServersInDescribeLoadBalancerAttribute is a nested struct in slb response +type BackendServersInDescribeLoadBalancerAttribute struct { + BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_load_balancers_related_ecs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_load_balancers_related_ecs.go new file mode 100644 index 0000000..841daec --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_load_balancers_related_ecs.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServersInDescribeLoadBalancersRelatedEcs is a nested struct in slb response +type BackendServersInDescribeLoadBalancersRelatedEcs struct { + BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_v_server_group_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_v_server_group_attribute.go new file mode 100644 index 0000000..a9b2ba5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_v_server_group_attribute.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServersInDescribeVServerGroupAttribute is a nested struct in slb response +type BackendServersInDescribeVServerGroupAttribute struct { + BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_modify_v_server_group_backend_servers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_modify_v_server_group_backend_servers.go new file mode 100644 index 0000000..bca4d47 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_modify_v_server_group_backend_servers.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServersInModifyVServerGroupBackendServers is a nested struct in slb response +type BackendServersInModifyVServerGroupBackendServers struct { + BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_remove_backend_servers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_remove_backend_servers.go new file mode 100644 index 0000000..07a1898 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_remove_backend_servers.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServersInRemoveBackendServers is a nested struct in slb response +type BackendServersInRemoveBackendServers struct { + BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_remove_v_server_group_backend_servers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_remove_v_server_group_backend_servers.go new file mode 100644 index 0000000..88a6baa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_remove_v_server_group_backend_servers.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServersInRemoveVServerGroupBackendServers is a nested struct in slb response +type BackendServersInRemoveVServerGroupBackendServers struct { + BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_set_backend_servers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_set_backend_servers.go new file mode 100644 index 0000000..18dd872 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_set_backend_servers.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServersInSetBackendServers is a nested struct in slb response +type BackendServersInSetBackendServers struct { + BackendServer []BackendServerInSetBackendServers `json:"BackendServer" xml:"BackendServer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_set_v_server_group_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_set_v_server_group_attribute.go new file mode 100644 index 0000000..175d7cf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_set_v_server_group_attribute.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServersInSetVServerGroupAttribute is a nested struct in slb response +type BackendServersInSetVServerGroupAttribute struct { + BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_ca_certificate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_ca_certificate.go new file mode 100644 index 0000000..ee60289 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_ca_certificate.go @@ -0,0 +1,27 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CACertificate is a nested struct in slb response +type CACertificate struct { + RegionId string `json:"RegionId" xml:"RegionId"` + CACertificateId string `json:"CACertificateId" xml:"CACertificateId"` + CACertificateName string `json:"CACertificateName" xml:"CACertificateName"` + Fingerprint string `json:"Fingerprint" xml:"Fingerprint"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + CreateTimeStamp int `json:"CreateTimeStamp" xml:"CreateTimeStamp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_ca_certificates.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_ca_certificates.go new file mode 100644 index 0000000..3ef188e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_ca_certificates.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CACertificates is a nested struct in slb response +type CACertificates struct { + CACertificate []CACertificate `json:"CACertificate" xml:"CACertificate"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_port_and_protocal.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_port_and_protocal.go new file mode 100644 index 0000000..4e240eb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_port_and_protocal.go @@ -0,0 +1,22 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ListenerPortAndProtocal is a nested struct in slb response +type ListenerPortAndProtocal struct { + ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` + ListenerProtocal string `json:"ListenerProtocal" xml:"ListenerProtocal"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_port_and_protocol.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_port_and_protocol.go new file mode 100644 index 0000000..24bff72 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_port_and_protocol.go @@ -0,0 +1,22 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ListenerPortAndProtocol is a nested struct in slb response +type ListenerPortAndProtocol struct { + ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` + ListenerProtocol string `json:"ListenerProtocol" xml:"ListenerProtocol"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_ports.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_ports.go new file mode 100644 index 0000000..17bbb92 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_ports.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ListenerPorts is a nested struct in slb response +type ListenerPorts struct { + ListenerPort []string `json:"ListenerPort" xml:"ListenerPort"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_ports_and_protocal.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_ports_and_protocal.go new file mode 100644 index 0000000..92cbc1f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_ports_and_protocal.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ListenerPortsAndProtocal is a nested struct in slb response +type ListenerPortsAndProtocal struct { + ListenerPortAndProtocal []ListenerPortAndProtocal `json:"ListenerPortAndProtocal" xml:"ListenerPortAndProtocal"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_ports_and_protocol.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_ports_and_protocol.go new file mode 100644 index 0000000..8ce12a3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_ports_and_protocol.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ListenerPortsAndProtocol is a nested struct in slb response +type ListenerPortsAndProtocol struct { + ListenerPortAndProtocol []ListenerPortAndProtocol `json:"ListenerPortAndProtocol" xml:"ListenerPortAndProtocol"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_load_balancer.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_load_balancer.go new file mode 100644 index 0000000..f850071 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_load_balancer.go @@ -0,0 +1,41 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LoadBalancer is a nested struct in slb response +type LoadBalancer struct { + Count int `json:"Count" xml:"Count"` + SlaveZoneId string `json:"SlaveZoneId" xml:"SlaveZoneId"` + LoadBalancerStatus string `json:"LoadBalancerStatus" xml:"LoadBalancerStatus"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + MasterZoneId string `json:"MasterZoneId" xml:"MasterZoneId"` + PayType string `json:"PayType" xml:"PayType"` + RegionIdAlias string `json:"RegionIdAlias" xml:"RegionIdAlias"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Address string `json:"Address" xml:"Address"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + CreateTimeStamp int `json:"CreateTimeStamp" xml:"CreateTimeStamp"` + RegionId string `json:"RegionId" xml:"RegionId"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + LoadBalancerName string `json:"LoadBalancerName" xml:"LoadBalancerName"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + AddressType string `json:"AddressType" xml:"AddressType"` + VpcId string `json:"VpcId" xml:"VpcId"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + BackendServers BackendServersInDescribeLoadBalancersRelatedEcs `json:"BackendServers" xml:"BackendServers"` + VServerGroups VServerGroupsInDescribeLoadBalancersRelatedEcs `json:"VServerGroups" xml:"VServerGroups"` + MasterSlaveVServerGroups MasterSlaveVServerGroupsInDescribeLoadBalancersRelatedEcs `json:"MasterSlaveVServerGroups" xml:"MasterSlaveVServerGroups"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_load_balancers_in_describe_load_balancers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_load_balancers_in_describe_load_balancers.go new file mode 100644 index 0000000..38eaa9f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_load_balancers_in_describe_load_balancers.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LoadBalancersInDescribeLoadBalancers is a nested struct in slb response +type LoadBalancersInDescribeLoadBalancers struct { + LoadBalancer []LoadBalancer `json:"LoadBalancer" xml:"LoadBalancer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_load_balancers_in_describe_load_balancers_related_ecs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_load_balancers_in_describe_load_balancers_related_ecs.go new file mode 100644 index 0000000..2ce134b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_load_balancers_in_describe_load_balancers_related_ecs.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LoadBalancersInDescribeLoadBalancersRelatedEcs is a nested struct in slb response +type LoadBalancersInDescribeLoadBalancersRelatedEcs struct { + LoadBalancer []LoadBalancer `json:"LoadBalancer" xml:"LoadBalancer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_server.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_server.go new file mode 100644 index 0000000..5bcdbc6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_server.go @@ -0,0 +1,25 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MasterSlaveBackendServer is a nested struct in slb response +type MasterSlaveBackendServer struct { + Port int `json:"Port" xml:"Port"` + ServerId string `json:"ServerId" xml:"ServerId"` + ServerType string `json:"ServerType" xml:"ServerType"` + Weight int `json:"Weight" xml:"Weight"` + IsBackup int `json:"IsBackup" xml:"IsBackup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_create_master_slave_server_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_create_master_slave_server_group.go new file mode 100644 index 0000000..3437fb5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_create_master_slave_server_group.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MasterSlaveBackendServersInCreateMasterSlaveServerGroup is a nested struct in slb response +type MasterSlaveBackendServersInCreateMasterSlaveServerGroup struct { + MasterSlaveBackendServer []MasterSlaveBackendServer `json:"MasterSlaveBackendServer" xml:"MasterSlaveBackendServer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_create_master_slave_v_server_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_create_master_slave_v_server_group.go new file mode 100644 index 0000000..95e232a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_create_master_slave_v_server_group.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MasterSlaveBackendServersInCreateMasterSlaveVServerGroup is a nested struct in slb response +type MasterSlaveBackendServersInCreateMasterSlaveVServerGroup struct { + MasterSlaveBackendServer []MasterSlaveBackendServer `json:"MasterSlaveBackendServer" xml:"MasterSlaveBackendServer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_describe_master_slave_server_group_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_describe_master_slave_server_group_attribute.go new file mode 100644 index 0000000..9d87530 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_describe_master_slave_server_group_attribute.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MasterSlaveBackendServersInDescribeMasterSlaveServerGroupAttribute is a nested struct in slb response +type MasterSlaveBackendServersInDescribeMasterSlaveServerGroupAttribute struct { + MasterSlaveBackendServer []MasterSlaveBackendServer `json:"MasterSlaveBackendServer" xml:"MasterSlaveBackendServer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_describe_master_slave_v_server_group_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_describe_master_slave_v_server_group_attribute.go new file mode 100644 index 0000000..2a5574d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_describe_master_slave_v_server_group_attribute.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MasterSlaveBackendServersInDescribeMasterSlaveVServerGroupAttribute is a nested struct in slb response +type MasterSlaveBackendServersInDescribeMasterSlaveVServerGroupAttribute struct { + MasterSlaveBackendServer []MasterSlaveBackendServer `json:"MasterSlaveBackendServer" xml:"MasterSlaveBackendServer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_server_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_server_group.go new file mode 100644 index 0000000..f3096e4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_server_group.go @@ -0,0 +1,22 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MasterSlaveServerGroup is a nested struct in slb response +type MasterSlaveServerGroup struct { + MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` + MasterSlaveServerGroupName string `json:"MasterSlaveServerGroupName" xml:"MasterSlaveServerGroupName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_server_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_server_groups.go new file mode 100644 index 0000000..5a127bb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_server_groups.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MasterSlaveServerGroups is a nested struct in slb response +type MasterSlaveServerGroups struct { + MasterSlaveServerGroup []MasterSlaveServerGroup `json:"MasterSlaveServerGroup" xml:"MasterSlaveServerGroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_v_server_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_v_server_group.go new file mode 100644 index 0000000..e5ee8f5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_v_server_group.go @@ -0,0 +1,25 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MasterSlaveVServerGroup is a nested struct in slb response +type MasterSlaveVServerGroup struct { + MasterSlaveVServerGroupId string `json:"MasterSlaveVServerGroupId" xml:"MasterSlaveVServerGroupId"` + MasterSlaveVServerGroupName string `json:"MasterSlaveVServerGroupName" xml:"MasterSlaveVServerGroupName"` + GroupName string `json:"GroupName" xml:"GroupName"` + GroupId string `json:"GroupId" xml:"GroupId"` + BackendServers BackendServersInDescribeLoadBalancersRelatedEcs `json:"BackendServers" xml:"BackendServers"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_v_server_groups_in_describe_load_balancers_related_ecs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_v_server_groups_in_describe_load_balancers_related_ecs.go new file mode 100644 index 0000000..42a9244 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_v_server_groups_in_describe_load_balancers_related_ecs.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MasterSlaveVServerGroupsInDescribeLoadBalancersRelatedEcs is a nested struct in slb response +type MasterSlaveVServerGroupsInDescribeLoadBalancersRelatedEcs struct { + MasterSlaveVServerGroup []MasterSlaveVServerGroup `json:"MasterSlaveVServerGroup" xml:"MasterSlaveVServerGroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_v_server_groups_in_describe_master_slave_v_server_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_v_server_groups_in_describe_master_slave_v_server_groups.go new file mode 100644 index 0000000..12ebb78 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_v_server_groups_in_describe_master_slave_v_server_groups.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MasterSlaveVServerGroupsInDescribeMasterSlaveVServerGroups is a nested struct in slb response +type MasterSlaveVServerGroupsInDescribeMasterSlaveVServerGroups struct { + MasterSlaveVServerGroup []MasterSlaveVServerGroup `json:"MasterSlaveVServerGroup" xml:"MasterSlaveVServerGroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_region.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_region.go new file mode 100644 index 0000000..6c1a66a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_region.go @@ -0,0 +1,22 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 slb response +type Region struct { + RegionId string `json:"RegionId" xml:"RegionId"` + LocalName string `json:"LocalName" xml:"LocalName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_regions.go new file mode 100644 index 0000000..7e5dcd0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_regions.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 slb response +type Regions struct { + Region []Region `json:"Region" xml:"Region"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_rule.go new file mode 100644 index 0000000..7aa5ed2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_rule.go @@ -0,0 +1,25 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Rule is a nested struct in slb response +type Rule struct { + Domain string `json:"Domain" xml:"Domain"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + RuleName string `json:"RuleName" xml:"RuleName"` + RuleId string `json:"RuleId" xml:"RuleId"` + Url string `json:"Url" xml:"Url"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_rules_in_create_rules.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_rules_in_create_rules.go new file mode 100644 index 0000000..c33f188 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_rules_in_create_rules.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RulesInCreateRules is a nested struct in slb response +type RulesInCreateRules struct { + Rule []Rule `json:"Rule" xml:"Rule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_rules_in_describe_rules.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_rules_in_describe_rules.go new file mode 100644 index 0000000..50c324b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_rules_in_describe_rules.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RulesInDescribeRules is a nested struct in slb response +type RulesInDescribeRules struct { + Rule []Rule `json:"Rule" xml:"Rule"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificate.go new file mode 100644 index 0000000..15ac040 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificate.go @@ -0,0 +1,31 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServerCertificate is a nested struct in slb response +type ServerCertificate struct { + ServerCertificateId string `json:"ServerCertificateId" xml:"ServerCertificateId"` + Fingerprint string `json:"Fingerprint" xml:"Fingerprint"` + ServerCertificateName string `json:"ServerCertificateName" xml:"ServerCertificateName"` + RegionId string `json:"RegionId" xml:"RegionId"` + RegionIdAlias string `json:"RegionIdAlias" xml:"RegionIdAlias"` + AliCloudCertificateId string `json:"AliCloudCertificateId" xml:"AliCloudCertificateId"` + AliCloudCertificateName string `json:"AliCloudCertificateName" xml:"AliCloudCertificateName"` + IsAliCloudCertificate int `json:"IsAliCloudCertificate" xml:"IsAliCloudCertificate"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + CreateTimeStamp int `json:"CreateTimeStamp" xml:"CreateTimeStamp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificates.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificates.go new file mode 100644 index 0000000..56f19db --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificates.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServerCertificates is a nested struct in slb response +type ServerCertificates struct { + ServerCertificate []ServerCertificate `json:"ServerCertificate" xml:"ServerCertificate"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_slave_zone.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_slave_zone.go new file mode 100644 index 0000000..ef43116 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_slave_zone.go @@ -0,0 +1,22 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SlaveZone is a nested struct in slb response +type SlaveZone struct { + ZoneId string `json:"ZoneId" xml:"ZoneId"` + LocalName string `json:"LocalName" xml:"LocalName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_slave_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_slave_zones.go new file mode 100644 index 0000000..badda39 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_slave_zones.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SlaveZones is a nested struct in slb response +type SlaveZones struct { + SlaveZone []SlaveZone `json:"SlaveZone" xml:"SlaveZone"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tag_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tag_set.go new file mode 100644 index 0000000..aef08ef --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tag_set.go @@ -0,0 +1,23 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagSet is a nested struct in slb response +type TagSet struct { + TagKey string `json:"TagKey" xml:"TagKey"` + TagValue string `json:"TagValue" xml:"TagValue"` + InstanceCount int `json:"InstanceCount" xml:"InstanceCount"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tag_sets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tag_sets.go new file mode 100644 index 0000000..d095ab2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tag_sets.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagSets is a nested struct in slb response +type TagSets struct { + TagSet []TagSet `json:"TagSet" xml:"TagSet"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_v_server_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_v_server_group.go new file mode 100644 index 0000000..4a655e7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_v_server_group.go @@ -0,0 +1,25 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VServerGroup is a nested struct in slb response +type VServerGroup struct { + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + GroupName string `json:"GroupName" xml:"GroupName"` + GroupId string `json:"GroupId" xml:"GroupId"` + VServerGroupName string `json:"VServerGroupName" xml:"VServerGroupName"` + BackendServers BackendServersInDescribeLoadBalancersRelatedEcs `json:"BackendServers" xml:"BackendServers"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_v_server_groups_in_describe_load_balancers_related_ecs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_v_server_groups_in_describe_load_balancers_related_ecs.go new file mode 100644 index 0000000..34cf846 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_v_server_groups_in_describe_load_balancers_related_ecs.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VServerGroupsInDescribeLoadBalancersRelatedEcs is a nested struct in slb response +type VServerGroupsInDescribeLoadBalancersRelatedEcs struct { + VServerGroup []VServerGroup `json:"VServerGroup" xml:"VServerGroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_v_server_groups_in_describe_v_server_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_v_server_groups_in_describe_v_server_groups.go new file mode 100644 index 0000000..0399d0b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_v_server_groups_in_describe_v_server_groups.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VServerGroupsInDescribeVServerGroups is a nested struct in slb response +type VServerGroupsInDescribeVServerGroups struct { + VServerGroup []VServerGroup `json:"VServerGroup" xml:"VServerGroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_zone.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_zone.go new file mode 100644 index 0000000..3bb51f0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_zone.go @@ -0,0 +1,23 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 slb response +type Zone struct { + ZoneId string `json:"ZoneId" xml:"ZoneId"` + LocalName string `json:"LocalName" xml:"LocalName"` + SlaveZones SlaveZones `json:"SlaveZones" xml:"SlaveZones"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_zones.go new file mode 100644 index 0000000..bd2d1ef --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_zones.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Zones is a nested struct in slb response +type Zones struct { + Zone []Zone `json:"Zone" xml:"Zone"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/upload_ca_certificate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/upload_ca_certificate.go new file mode 100644 index 0000000..5edcebf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/upload_ca_certificate.go @@ -0,0 +1,116 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UploadCACertificate invokes the slb.UploadCACertificate API synchronously +// api document: https://help.aliyun.com/api/slb/uploadcacertificate.html +func (client *Client) UploadCACertificate(request *UploadCACertificateRequest) (response *UploadCACertificateResponse, err error) { + response = CreateUploadCACertificateResponse() + err = client.DoAction(request, response) + return +} + +// UploadCACertificateWithChan invokes the slb.UploadCACertificate API asynchronously +// api document: https://help.aliyun.com/api/slb/uploadcacertificate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UploadCACertificateWithChan(request *UploadCACertificateRequest) (<-chan *UploadCACertificateResponse, <-chan error) { + responseChan := make(chan *UploadCACertificateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UploadCACertificate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UploadCACertificateWithCallback invokes the slb.UploadCACertificate API asynchronously +// api document: https://help.aliyun.com/api/slb/uploadcacertificate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UploadCACertificateWithCallback(request *UploadCACertificateRequest, callback func(response *UploadCACertificateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UploadCACertificateResponse + var err error + defer close(result) + response, err = client.UploadCACertificate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UploadCACertificateRequest is the request struct for api UploadCACertificate +type UploadCACertificateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + CACertificate string `position:"Query" name:"CACertificate"` + CACertificateName string `position:"Query" name:"CACertificateName"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` +} + +// UploadCACertificateResponse is the response struct for api UploadCACertificate +type UploadCACertificateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CACertificateId string `json:"CACertificateId" xml:"CACertificateId"` + CACertificateName string `json:"CACertificateName" xml:"CACertificateName"` + Fingerprint string `json:"Fingerprint" xml:"Fingerprint"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + CreateTimeStamp int `json:"CreateTimeStamp" xml:"CreateTimeStamp"` +} + +// CreateUploadCACertificateRequest creates a request to invoke UploadCACertificate API +func CreateUploadCACertificateRequest() (request *UploadCACertificateRequest) { + request = &UploadCACertificateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "UploadCACertificate", "slb", "openAPI") + return +} + +// CreateUploadCACertificateResponse creates a response to parse from UploadCACertificate response +func CreateUploadCACertificateResponse() (response *UploadCACertificateResponse) { + response = &UploadCACertificateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/upload_server_certificate.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/upload_server_certificate.go new file mode 100644 index 0000000..5227f8b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/upload_server_certificate.go @@ -0,0 +1,125 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UploadServerCertificate invokes the slb.UploadServerCertificate API synchronously +// api document: https://help.aliyun.com/api/slb/uploadservercertificate.html +func (client *Client) UploadServerCertificate(request *UploadServerCertificateRequest) (response *UploadServerCertificateResponse, err error) { + response = CreateUploadServerCertificateResponse() + err = client.DoAction(request, response) + return +} + +// UploadServerCertificateWithChan invokes the slb.UploadServerCertificate API asynchronously +// api document: https://help.aliyun.com/api/slb/uploadservercertificate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UploadServerCertificateWithChan(request *UploadServerCertificateRequest) (<-chan *UploadServerCertificateResponse, <-chan error) { + responseChan := make(chan *UploadServerCertificateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UploadServerCertificate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UploadServerCertificateWithCallback invokes the slb.UploadServerCertificate API asynchronously +// api document: https://help.aliyun.com/api/slb/uploadservercertificate.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UploadServerCertificateWithCallback(request *UploadServerCertificateRequest, callback func(response *UploadServerCertificateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UploadServerCertificateResponse + var err error + defer close(result) + response, err = client.UploadServerCertificate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UploadServerCertificateRequest is the request struct for api UploadServerCertificate +type UploadServerCertificateRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AliCloudCertificateId string `position:"Query" name:"AliCloudCertificateId"` + AliCloudCertificateName string `position:"Query" name:"AliCloudCertificateName"` + ServerCertificate string `position:"Query" name:"ServerCertificate"` + PrivateKey string `position:"Query" name:"PrivateKey"` + ServerCertificateName string `position:"Query" name:"ServerCertificateName"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccessKeyId string `position:"Query" name:"access_key_id"` + Tags string `position:"Query" name:"Tags"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` +} + +// UploadServerCertificateResponse is the response struct for api UploadServerCertificate +type UploadServerCertificateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ServerCertificateId string `json:"ServerCertificateId" xml:"ServerCertificateId"` + Fingerprint string `json:"Fingerprint" xml:"Fingerprint"` + ServerCertificateName string `json:"ServerCertificateName" xml:"ServerCertificateName"` + RegionId string `json:"RegionId" xml:"RegionId"` + RegionIdAlias string `json:"RegionIdAlias" xml:"RegionIdAlias"` + AliCloudCertificateId string `json:"AliCloudCertificateId" xml:"AliCloudCertificateId"` + AliCloudCertificateName string `json:"AliCloudCertificateName" xml:"AliCloudCertificateName"` + IsAliCloudCertificate int `json:"IsAliCloudCertificate" xml:"IsAliCloudCertificate"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + CreateTimeStamp int `json:"CreateTimeStamp" xml:"CreateTimeStamp"` +} + +// CreateUploadServerCertificateRequest creates a request to invoke UploadServerCertificate API +func CreateUploadServerCertificateRequest() (request *UploadServerCertificateRequest) { + request = &UploadServerCertificateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "UploadServerCertificate", "slb", "openAPI") + return +} + +// CreateUploadServerCertificateResponse creates a response to parse from UploadServerCertificate response +func CreateUploadServerCertificateResponse() (response *UploadServerCertificateResponse) { + response = &UploadServerCertificateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sls/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sls/client.go new file mode 100644 index 0000000..0475ecb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sls/client.go @@ -0,0 +1,81 @@ +package sls + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sls/open_account.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sls/open_account.go new file mode 100644 index 0000000..ed11a22 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sls/open_account.go @@ -0,0 +1,104 @@ +package sls + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// OpenAccount invokes the sls.OpenAccount API synchronously +// api document: https://help.aliyun.com/api/sls/openaccount.html +func (client *Client) OpenAccount(request *OpenAccountRequest) (response *OpenAccountResponse, err error) { + response = CreateOpenAccountResponse() + err = client.DoAction(request, response) + return +} + +// OpenAccountWithChan invokes the sls.OpenAccount API asynchronously +// api document: https://help.aliyun.com/api/sls/openaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) OpenAccountWithChan(request *OpenAccountRequest) (<-chan *OpenAccountResponse, <-chan error) { + responseChan := make(chan *OpenAccountResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.OpenAccount(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// OpenAccountWithCallback invokes the sls.OpenAccount API asynchronously +// api document: https://help.aliyun.com/api/sls/openaccount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) OpenAccountWithCallback(request *OpenAccountRequest, callback func(response *OpenAccountResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *OpenAccountResponse + var err error + defer close(result) + response, err = client.OpenAccount(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// OpenAccountRequest is the request struct for api OpenAccount +type OpenAccountRequest struct { + *requests.RpcRequest + Bid string `position:"Query" name:"Bid"` + AliUid requests.Integer `position:"Query" name:"AliUid"` +} + +// OpenAccountResponse is the response struct for api OpenAccount +type OpenAccountResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateOpenAccountRequest creates a request to invoke OpenAccount API +func CreateOpenAccountRequest() (request *OpenAccountRequest) { + request = &OpenAccountRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Sls", "2016-08-01", "OpenAccount", "", "") + return +} + +// CreateOpenAccountResponse creates a response to parse from OpenAccount response +func CreateOpenAccountResponse() (response *OpenAccountResponse) { + response = &OpenAccountResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sls/order_succeeded_callback.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sls/order_succeeded_callback.go new file mode 100644 index 0000000..a287724 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sls/order_succeeded_callback.go @@ -0,0 +1,106 @@ +package sls + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// OrderSucceededCallback invokes the sls.OrderSucceededCallback API synchronously +// api document: https://help.aliyun.com/api/sls/ordersucceededcallback.html +func (client *Client) OrderSucceededCallback(request *OrderSucceededCallbackRequest) (response *OrderSucceededCallbackResponse, err error) { + response = CreateOrderSucceededCallbackResponse() + err = client.DoAction(request, response) + return +} + +// OrderSucceededCallbackWithChan invokes the sls.OrderSucceededCallback API asynchronously +// api document: https://help.aliyun.com/api/sls/ordersucceededcallback.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) OrderSucceededCallbackWithChan(request *OrderSucceededCallbackRequest) (<-chan *OrderSucceededCallbackResponse, <-chan error) { + responseChan := make(chan *OrderSucceededCallbackResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.OrderSucceededCallback(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// OrderSucceededCallbackWithCallback invokes the sls.OrderSucceededCallback API asynchronously +// api document: https://help.aliyun.com/api/sls/ordersucceededcallback.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) OrderSucceededCallbackWithCallback(request *OrderSucceededCallbackRequest, callback func(response *OrderSucceededCallbackResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *OrderSucceededCallbackResponse + var err error + defer close(result) + response, err = client.OrderSucceededCallback(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// OrderSucceededCallbackRequest is the request struct for api OrderSucceededCallback +type OrderSucceededCallbackRequest struct { + *requests.RpcRequest + Data string `position:"Body" name:"data"` +} + +// OrderSucceededCallbackResponse is the response struct for api OrderSucceededCallback +type OrderSucceededCallbackResponse struct { + *responses.BaseResponse + RequestId string `json:"requestId" xml:"requestId"` + Data string `json:"data" xml:"data"` + Success bool `json:"success" xml:"success"` + Synchro bool `json:"synchro" xml:"synchro"` +} + +// CreateOrderSucceededCallbackRequest creates a request to invoke OrderSucceededCallback API +func CreateOrderSucceededCallbackRequest() (request *OrderSucceededCallbackRequest) { + request = &OrderSucceededCallbackRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Sls", "2016-08-01", "OrderSucceededCallback", "", "") + return +} + +// CreateOrderSucceededCallbackResponse creates a response to parse from OrderSucceededCallback response +func CreateOrderSucceededCallbackResponse() (response *OrderSucceededCallbackResponse) { + response = &OrderSucceededCallbackResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/assume_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/assume_role.go new file mode 100644 index 0000000..40f7a93 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/assume_role.go @@ -0,0 +1,108 @@ +package sts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AssumeRole invokes the sts.AssumeRole API synchronously +// api document: https://help.aliyun.com/api/sts/assumerole.html +func (client *Client) AssumeRole(request *AssumeRoleRequest) (response *AssumeRoleResponse, err error) { + response = CreateAssumeRoleResponse() + err = client.DoAction(request, response) + return +} + +// AssumeRoleWithChan invokes the sts.AssumeRole API asynchronously +// api document: https://help.aliyun.com/api/sts/assumerole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AssumeRoleWithChan(request *AssumeRoleRequest) (<-chan *AssumeRoleResponse, <-chan error) { + responseChan := make(chan *AssumeRoleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AssumeRole(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AssumeRoleWithCallback invokes the sts.AssumeRole API asynchronously +// api document: https://help.aliyun.com/api/sts/assumerole.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AssumeRoleWithCallback(request *AssumeRoleRequest, callback func(response *AssumeRoleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AssumeRoleResponse + var err error + defer close(result) + response, err = client.AssumeRole(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AssumeRoleRequest is the request struct for api AssumeRole +type AssumeRoleRequest struct { + *requests.RpcRequest + DurationSeconds requests.Integer `position:"Query" name:"DurationSeconds"` + Policy string `position:"Query" name:"Policy"` + RoleArn string `position:"Query" name:"RoleArn"` + RoleSessionName string `position:"Query" name:"RoleSessionName"` +} + +// AssumeRoleResponse is the response struct for api AssumeRole +type AssumeRoleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Credentials Credentials `json:"Credentials" xml:"Credentials"` + AssumedRoleUser AssumedRoleUser `json:"AssumedRoleUser" xml:"AssumedRoleUser"` +} + +// CreateAssumeRoleRequest creates a request to invoke AssumeRole API +func CreateAssumeRoleRequest() (request *AssumeRoleRequest) { + request = &AssumeRoleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Sts", "2015-04-01", "AssumeRole", "", "") + return +} + +// CreateAssumeRoleResponse creates a response to parse from AssumeRole response +func CreateAssumeRoleResponse() (response *AssumeRoleResponse) { + response = &AssumeRoleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/client.go new file mode 100644 index 0000000..dcb893d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/client.go @@ -0,0 +1,81 @@ +package sts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/generate_session_access_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/generate_session_access_key.go new file mode 100644 index 0000000..d9e9fe0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/generate_session_access_key.go @@ -0,0 +1,104 @@ +package sts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GenerateSessionAccessKey invokes the sts.GenerateSessionAccessKey API synchronously +// api document: https://help.aliyun.com/api/sts/generatesessionaccesskey.html +func (client *Client) GenerateSessionAccessKey(request *GenerateSessionAccessKeyRequest) (response *GenerateSessionAccessKeyResponse, err error) { + response = CreateGenerateSessionAccessKeyResponse() + err = client.DoAction(request, response) + return +} + +// GenerateSessionAccessKeyWithChan invokes the sts.GenerateSessionAccessKey API asynchronously +// api document: https://help.aliyun.com/api/sts/generatesessionaccesskey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GenerateSessionAccessKeyWithChan(request *GenerateSessionAccessKeyRequest) (<-chan *GenerateSessionAccessKeyResponse, <-chan error) { + responseChan := make(chan *GenerateSessionAccessKeyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GenerateSessionAccessKey(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GenerateSessionAccessKeyWithCallback invokes the sts.GenerateSessionAccessKey API asynchronously +// api document: https://help.aliyun.com/api/sts/generatesessionaccesskey.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GenerateSessionAccessKeyWithCallback(request *GenerateSessionAccessKeyRequest, callback func(response *GenerateSessionAccessKeyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GenerateSessionAccessKeyResponse + var err error + defer close(result) + response, err = client.GenerateSessionAccessKey(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GenerateSessionAccessKeyRequest is the request struct for api GenerateSessionAccessKey +type GenerateSessionAccessKeyRequest struct { + *requests.RpcRequest + DurationSeconds requests.Integer `position:"Query" name:"DurationSeconds"` +} + +// GenerateSessionAccessKeyResponse is the response struct for api GenerateSessionAccessKey +type GenerateSessionAccessKeyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SessionAccessKey SessionAccessKey `json:"SessionAccessKey" xml:"SessionAccessKey"` +} + +// CreateGenerateSessionAccessKeyRequest creates a request to invoke GenerateSessionAccessKey API +func CreateGenerateSessionAccessKeyRequest() (request *GenerateSessionAccessKeyRequest) { + request = &GenerateSessionAccessKeyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Sts", "2015-04-01", "GenerateSessionAccessKey", "", "") + return +} + +// CreateGenerateSessionAccessKeyResponse creates a response to parse from GenerateSessionAccessKey response +func CreateGenerateSessionAccessKeyResponse() (response *GenerateSessionAccessKeyResponse) { + response = &GenerateSessionAccessKeyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/get_caller_identity.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/get_caller_identity.go new file mode 100644 index 0000000..7997f04 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/get_caller_identity.go @@ -0,0 +1,108 @@ +package sts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetCallerIdentity invokes the sts.GetCallerIdentity API synchronously +// api document: https://help.aliyun.com/api/sts/getcalleridentity.html +func (client *Client) GetCallerIdentity(request *GetCallerIdentityRequest) (response *GetCallerIdentityResponse, err error) { + response = CreateGetCallerIdentityResponse() + err = client.DoAction(request, response) + return +} + +// GetCallerIdentityWithChan invokes the sts.GetCallerIdentity API asynchronously +// api document: https://help.aliyun.com/api/sts/getcalleridentity.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetCallerIdentityWithChan(request *GetCallerIdentityRequest) (<-chan *GetCallerIdentityResponse, <-chan error) { + responseChan := make(chan *GetCallerIdentityResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetCallerIdentity(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetCallerIdentityWithCallback invokes the sts.GetCallerIdentity API asynchronously +// api document: https://help.aliyun.com/api/sts/getcalleridentity.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetCallerIdentityWithCallback(request *GetCallerIdentityRequest, callback func(response *GetCallerIdentityResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetCallerIdentityResponse + var err error + defer close(result) + response, err = client.GetCallerIdentity(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetCallerIdentityRequest is the request struct for api GetCallerIdentity +type GetCallerIdentityRequest struct { + *requests.RpcRequest +} + +// GetCallerIdentityResponse is the response struct for api GetCallerIdentity +type GetCallerIdentityResponse struct { + *responses.BaseResponse + AccountId string `json:"AccountId" xml:"AccountId"` + UserId string `json:"UserId" xml:"UserId"` + RoleId string `json:"RoleId" xml:"RoleId"` + Arn string `json:"Arn" xml:"Arn"` + IdentityType string `json:"IdentityType" xml:"IdentityType"` + PrincipalId string `json:"PrincipalId" xml:"PrincipalId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateGetCallerIdentityRequest creates a request to invoke GetCallerIdentity API +func CreateGetCallerIdentityRequest() (request *GetCallerIdentityRequest) { + request = &GetCallerIdentityRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Sts", "2015-04-01", "GetCallerIdentity", "", "") + return +} + +// CreateGetCallerIdentityResponse creates a response to parse from GetCallerIdentity response +func CreateGetCallerIdentityResponse() (response *GetCallerIdentityResponse) { + response = &GetCallerIdentityResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/struct_assumed_role_user.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/struct_assumed_role_user.go new file mode 100644 index 0000000..37107b6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/struct_assumed_role_user.go @@ -0,0 +1,22 @@ +package sts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AssumedRoleUser is a nested struct in sts response +type AssumedRoleUser struct { + Arn string `json:"Arn" xml:"Arn"` + AssumedRoleId string `json:"AssumedRoleId" xml:"AssumedRoleId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/struct_credentials.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/struct_credentials.go new file mode 100644 index 0000000..24d7a2a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/struct_credentials.go @@ -0,0 +1,24 @@ +package sts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Credentials is a nested struct in sts response +type Credentials struct { + SecurityToken string `json:"SecurityToken" xml:"SecurityToken"` + AccessKeySecret string `json:"AccessKeySecret" xml:"AccessKeySecret"` + AccessKeyId string `json:"AccessKeyId" xml:"AccessKeyId"` + Expiration string `json:"Expiration" xml:"Expiration"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/struct_session_access_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/struct_session_access_key.go new file mode 100644 index 0000000..cda251a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/sts/struct_session_access_key.go @@ -0,0 +1,23 @@ +package sts + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SessionAccessKey is a nested struct in sts response +type SessionAccessKey struct { + SessionAccessKeyId string `json:"SessionAccessKeyId" xml:"SessionAccessKeyId"` + SessionAccessKeySecret string `json:"SessionAccessKeySecret" xml:"SessionAccessKeySecret"` + Expiration string `json:"Expiration" xml:"Expiration"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/action.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/action.go new file mode 100644 index 0000000..c24ed1a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/action.go @@ -0,0 +1,106 @@ +package tesladam + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// Action invokes the tesladam.Action API synchronously +// api document: https://help.aliyun.com/api/tesladam/action.html +func (client *Client) Action(request *ActionRequest) (response *ActionResponse, err error) { + response = CreateActionResponse() + err = client.DoAction(request, response) + return +} + +// ActionWithChan invokes the tesladam.Action API asynchronously +// api document: https://help.aliyun.com/api/tesladam/action.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ActionWithChan(request *ActionRequest) (<-chan *ActionResponse, <-chan error) { + responseChan := make(chan *ActionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.Action(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ActionWithCallback invokes the tesladam.Action API asynchronously +// api document: https://help.aliyun.com/api/tesladam/action.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ActionWithCallback(request *ActionRequest, callback func(response *ActionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ActionResponse + var err error + defer close(result) + response, err = client.Action(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ActionRequest is the request struct for api Action +type ActionRequest struct { + *requests.RpcRequest + OrderId requests.Integer `position:"Query" name:"OrderId"` + StepCode string `position:"Query" name:"StepCode"` +} + +// ActionResponse is the response struct for api Action +type ActionResponse struct { + *responses.BaseResponse + Status bool `json:"Status" xml:"Status"` + Message string `json:"Message" xml:"Message"` + Result string `json:"Result" xml:"Result"` +} + +// CreateActionRequest creates a request to invoke Action API +func CreateActionRequest() (request *ActionRequest) { + request = &ActionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("TeslaDam", "2018-01-18", "Action", "", "") + return +} + +// CreateActionResponse creates a response to parse from Action response +func CreateActionResponse() (response *ActionResponse) { + response = &ActionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/action_disk_check.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/action_disk_check.go new file mode 100644 index 0000000..65b3f8c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/action_disk_check.go @@ -0,0 +1,106 @@ +package tesladam + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ActionDiskCheck invokes the tesladam.ActionDiskCheck API synchronously +// api document: https://help.aliyun.com/api/tesladam/actiondiskcheck.html +func (client *Client) ActionDiskCheck(request *ActionDiskCheckRequest) (response *ActionDiskCheckResponse, err error) { + response = CreateActionDiskCheckResponse() + err = client.DoAction(request, response) + return +} + +// ActionDiskCheckWithChan invokes the tesladam.ActionDiskCheck API asynchronously +// api document: https://help.aliyun.com/api/tesladam/actiondiskcheck.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ActionDiskCheckWithChan(request *ActionDiskCheckRequest) (<-chan *ActionDiskCheckResponse, <-chan error) { + responseChan := make(chan *ActionDiskCheckResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ActionDiskCheck(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ActionDiskCheckWithCallback invokes the tesladam.ActionDiskCheck API asynchronously +// api document: https://help.aliyun.com/api/tesladam/actiondiskcheck.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ActionDiskCheckWithCallback(request *ActionDiskCheckRequest, callback func(response *ActionDiskCheckResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ActionDiskCheckResponse + var err error + defer close(result) + response, err = client.ActionDiskCheck(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ActionDiskCheckRequest is the request struct for api ActionDiskCheck +type ActionDiskCheckRequest struct { + *requests.RpcRequest + Ip string `position:"Query" name:"Ip"` + DiskMount string `position:"Query" name:"DiskMount"` +} + +// ActionDiskCheckResponse is the response struct for api ActionDiskCheck +type ActionDiskCheckResponse struct { + *responses.BaseResponse + Status bool `json:"Status" xml:"Status"` + Message string `json:"Message" xml:"Message"` + Result string `json:"Result" xml:"Result"` +} + +// CreateActionDiskCheckRequest creates a request to invoke ActionDiskCheck API +func CreateActionDiskCheckRequest() (request *ActionDiskCheckRequest) { + request = &ActionDiskCheckRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("TeslaDam", "2018-01-18", "ActionDiskCheck", "", "") + return +} + +// CreateActionDiskCheckResponse creates a response to parse from ActionDiskCheck response +func CreateActionDiskCheckResponse() (response *ActionDiskCheckResponse) { + response = &ActionDiskCheckResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/action_disk_mask.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/action_disk_mask.go new file mode 100644 index 0000000..fc9a332 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/action_disk_mask.go @@ -0,0 +1,107 @@ +package tesladam + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ActionDiskMask invokes the tesladam.ActionDiskMask API synchronously +// api document: https://help.aliyun.com/api/tesladam/actiondiskmask.html +func (client *Client) ActionDiskMask(request *ActionDiskMaskRequest) (response *ActionDiskMaskResponse, err error) { + response = CreateActionDiskMaskResponse() + err = client.DoAction(request, response) + return +} + +// ActionDiskMaskWithChan invokes the tesladam.ActionDiskMask API asynchronously +// api document: https://help.aliyun.com/api/tesladam/actiondiskmask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ActionDiskMaskWithChan(request *ActionDiskMaskRequest) (<-chan *ActionDiskMaskResponse, <-chan error) { + responseChan := make(chan *ActionDiskMaskResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ActionDiskMask(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ActionDiskMaskWithCallback invokes the tesladam.ActionDiskMask API asynchronously +// api document: https://help.aliyun.com/api/tesladam/actiondiskmask.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ActionDiskMaskWithCallback(request *ActionDiskMaskRequest, callback func(response *ActionDiskMaskResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ActionDiskMaskResponse + var err error + defer close(result) + response, err = client.ActionDiskMask(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ActionDiskMaskRequest is the request struct for api ActionDiskMask +type ActionDiskMaskRequest struct { + *requests.RpcRequest + Ip string `position:"Query" name:"Ip"` + DiskMount string `position:"Query" name:"DiskMount"` + Op string `position:"Query" name:"Op"` +} + +// ActionDiskMaskResponse is the response struct for api ActionDiskMask +type ActionDiskMaskResponse struct { + *responses.BaseResponse + Status bool `json:"Status" xml:"Status"` + Message string `json:"Message" xml:"Message"` + Result string `json:"Result" xml:"Result"` +} + +// CreateActionDiskMaskRequest creates a request to invoke ActionDiskMask API +func CreateActionDiskMaskRequest() (request *ActionDiskMaskRequest) { + request = &ActionDiskMaskRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("TeslaDam", "2018-01-18", "ActionDiskMask", "", "") + return +} + +// CreateActionDiskMaskResponse creates a response to parse from ActionDiskMask response +func CreateActionDiskMaskResponse() (response *ActionDiskMaskResponse) { + response = &ActionDiskMaskResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/action_disk_rma.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/action_disk_rma.go new file mode 100644 index 0000000..bb31024 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/action_disk_rma.go @@ -0,0 +1,111 @@ +package tesladam + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ActionDiskRma invokes the tesladam.ActionDiskRma API synchronously +// api document: https://help.aliyun.com/api/tesladam/actiondiskrma.html +func (client *Client) ActionDiskRma(request *ActionDiskRmaRequest) (response *ActionDiskRmaResponse, err error) { + response = CreateActionDiskRmaResponse() + err = client.DoAction(request, response) + return +} + +// ActionDiskRmaWithChan invokes the tesladam.ActionDiskRma API asynchronously +// api document: https://help.aliyun.com/api/tesladam/actiondiskrma.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ActionDiskRmaWithChan(request *ActionDiskRmaRequest) (<-chan *ActionDiskRmaResponse, <-chan error) { + responseChan := make(chan *ActionDiskRmaResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ActionDiskRma(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ActionDiskRmaWithCallback invokes the tesladam.ActionDiskRma API asynchronously +// api document: https://help.aliyun.com/api/tesladam/actiondiskrma.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ActionDiskRmaWithCallback(request *ActionDiskRmaRequest, callback func(response *ActionDiskRmaResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ActionDiskRmaResponse + var err error + defer close(result) + response, err = client.ActionDiskRma(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ActionDiskRmaRequest is the request struct for api ActionDiskRma +type ActionDiskRmaRequest struct { + *requests.RpcRequest + Hostname string `position:"Query" name:"Hostname"` + DiskMount string `position:"Query" name:"DiskMount"` + ExecutionId string `position:"Query" name:"ExecutionId"` + DiskSlot string `position:"Query" name:"DiskSlot"` + DiskName string `position:"Query" name:"DiskName"` + DiskSn string `position:"Query" name:"DiskSn"` + DiskReason string `position:"Query" name:"DiskReason"` +} + +// ActionDiskRmaResponse is the response struct for api ActionDiskRma +type ActionDiskRmaResponse struct { + *responses.BaseResponse + Status bool `json:"Status" xml:"Status"` + Message string `json:"Message" xml:"Message"` + Result string `json:"Result" xml:"Result"` +} + +// CreateActionDiskRmaRequest creates a request to invoke ActionDiskRma API +func CreateActionDiskRmaRequest() (request *ActionDiskRmaRequest) { + request = &ActionDiskRmaRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("TeslaDam", "2018-01-18", "ActionDiskRma", "", "") + return +} + +// CreateActionDiskRmaResponse creates a response to parse from ActionDiskRma response +func CreateActionDiskRmaResponse() (response *ActionDiskRmaResponse) { + response = &ActionDiskRmaResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/client.go new file mode 100644 index 0000000..08d3d28 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/client.go @@ -0,0 +1,81 @@ +package tesladam + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/host_gets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/host_gets.go new file mode 100644 index 0000000..e698ec8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/host_gets.go @@ -0,0 +1,108 @@ +package tesladam + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// HostGets invokes the tesladam.HostGets API synchronously +// api document: https://help.aliyun.com/api/tesladam/hostgets.html +func (client *Client) HostGets(request *HostGetsRequest) (response *HostGetsResponse, err error) { + response = CreateHostGetsResponse() + err = client.DoAction(request, response) + return +} + +// HostGetsWithChan invokes the tesladam.HostGets API asynchronously +// api document: https://help.aliyun.com/api/tesladam/hostgets.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) HostGetsWithChan(request *HostGetsRequest) (<-chan *HostGetsResponse, <-chan error) { + responseChan := make(chan *HostGetsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.HostGets(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// HostGetsWithCallback invokes the tesladam.HostGets API asynchronously +// api document: https://help.aliyun.com/api/tesladam/hostgets.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) HostGetsWithCallback(request *HostGetsRequest, callback func(response *HostGetsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *HostGetsResponse + var err error + defer close(result) + response, err = client.HostGets(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// HostGetsRequest is the request struct for api HostGets +type HostGetsRequest struct { + *requests.RpcRequest + QueryType string `position:"Query" name:"QueryType"` + Query string `position:"Query" name:"Query"` + EndTime requests.Integer `position:"Query" name:"EndTime"` + StartTime requests.Integer `position:"Query" name:"StartTime"` +} + +// HostGetsResponse is the response struct for api HostGets +type HostGetsResponse struct { + *responses.BaseResponse + Status bool `json:"Status" xml:"Status"` + Message string `json:"Message" xml:"Message"` + Data []Data `json:"Data" xml:"Data"` +} + +// CreateHostGetsRequest creates a request to invoke HostGets API +func CreateHostGetsRequest() (request *HostGetsRequest) { + request = &HostGetsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("TeslaDam", "2018-01-18", "HostGets", "", "") + return +} + +// CreateHostGetsResponse creates a response to parse from HostGets response +func CreateHostGetsResponse() (response *HostGetsResponse) { + response = &HostGetsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/struct_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/struct_data.go new file mode 100644 index 0000000..f9a8f65 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/struct_data.go @@ -0,0 +1,28 @@ +package tesladam + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 tesladam response +type Data struct { + ClusterCode string `json:"ClusterCode" xml:"ClusterCode"` + Ip string `json:"Ip" xml:"Ip"` + Hostname string `json:"Hostname" xml:"Hostname"` + SshStatus int `json:"SshStatus" xml:"SshStatus"` + HealthScoreLast int `json:"HealthScoreLast" xml:"HealthScoreLast"` + HealthReasonLast string `json:"HealthReasonLast" xml:"HealthReasonLast"` + AppCode string `json:"AppCode" xml:"AppCode"` + HeartStatus int `json:"heartStatus" xml:"heartStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/struct_data_in_host_gets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/struct_data_in_host_gets.go new file mode 100644 index 0000000..6cf81e1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/tesladam/struct_data_in_host_gets.go @@ -0,0 +1,21 @@ +package tesladam + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInHostGets is a nested struct in tesladam response +type DataInHostGets struct { + Data []Data `json:"data" xml:"data"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/client.go new file mode 100644 index 0000000..d37e08a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/client.go @@ -0,0 +1,81 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_cluster_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_cluster_instance.go new file mode 100644 index 0000000..5327d24 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_cluster_instance.go @@ -0,0 +1,110 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetClusterInstance invokes the teslamaxcompute.GetClusterInstance API synchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/getclusterinstance.html +func (client *Client) GetClusterInstance(request *GetClusterInstanceRequest) (response *GetClusterInstanceResponse, err error) { + response = CreateGetClusterInstanceResponse() + err = client.DoAction(request, response) + return +} + +// GetClusterInstanceWithChan invokes the teslamaxcompute.GetClusterInstance API asynchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/getclusterinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetClusterInstanceWithChan(request *GetClusterInstanceRequest) (<-chan *GetClusterInstanceResponse, <-chan error) { + responseChan := make(chan *GetClusterInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetClusterInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetClusterInstanceWithCallback invokes the teslamaxcompute.GetClusterInstance API asynchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/getclusterinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetClusterInstanceWithCallback(request *GetClusterInstanceRequest, callback func(response *GetClusterInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetClusterInstanceResponse + var err error + defer close(result) + response, err = client.GetClusterInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetClusterInstanceRequest is the request struct for api GetClusterInstance +type GetClusterInstanceRequest struct { + *requests.RpcRequest + Cluster string `position:"Query" name:"Cluster"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Status string `position:"Query" name:"Status"` + Region string `position:"Query" name:"Region"` +} + +// GetClusterInstanceResponse is the response struct for api GetClusterInstance +type GetClusterInstanceResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateGetClusterInstanceRequest creates a request to invoke GetClusterInstance API +func CreateGetClusterInstanceRequest() (request *GetClusterInstanceRequest) { + request = &GetClusterInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetClusterInstance", "", "") + return +} + +// CreateGetClusterInstanceResponse creates a response to parse from GetClusterInstance response +func CreateGetClusterInstanceResponse() (response *GetClusterInstanceResponse) { + response = &GetClusterInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_instances_status_count.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_instances_status_count.go new file mode 100644 index 0000000..5e8ac01 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_instances_status_count.go @@ -0,0 +1,109 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetInstancesStatusCount invokes the teslamaxcompute.GetInstancesStatusCount API synchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/getinstancesstatuscount.html +func (client *Client) GetInstancesStatusCount(request *GetInstancesStatusCountRequest) (response *GetInstancesStatusCountResponse, err error) { + response = CreateGetInstancesStatusCountResponse() + err = client.DoAction(request, response) + return +} + +// GetInstancesStatusCountWithChan invokes the teslamaxcompute.GetInstancesStatusCount API asynchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/getinstancesstatuscount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetInstancesStatusCountWithChan(request *GetInstancesStatusCountRequest) (<-chan *GetInstancesStatusCountResponse, <-chan error) { + responseChan := make(chan *GetInstancesStatusCountResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetInstancesStatusCount(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetInstancesStatusCountWithCallback invokes the teslamaxcompute.GetInstancesStatusCount API asynchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/getinstancesstatuscount.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetInstancesStatusCountWithCallback(request *GetInstancesStatusCountRequest, callback func(response *GetInstancesStatusCountResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetInstancesStatusCountResponse + var err error + defer close(result) + response, err = client.GetInstancesStatusCount(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetInstancesStatusCountRequest is the request struct for api GetInstancesStatusCount +type GetInstancesStatusCountRequest struct { + *requests.RpcRequest + Region string `position:"Query" name:"Region"` + Cluster string `position:"Query" name:"Cluster"` + QuotaName string `position:"Query" name:"QuotaName"` + QuotaId string `position:"Query" name:"QuotaId"` +} + +// GetInstancesStatusCountResponse is the response struct for api GetInstancesStatusCount +type GetInstancesStatusCountResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data []DataItem `json:"Data" xml:"Data"` +} + +// CreateGetInstancesStatusCountRequest creates a request to invoke GetInstancesStatusCount API +func CreateGetInstancesStatusCountRequest() (request *GetInstancesStatusCountRequest) { + request = &GetInstancesStatusCountRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetInstancesStatusCount", "", "") + return +} + +// CreateGetInstancesStatusCountResponse creates a response to parse from GetInstancesStatusCount response +func CreateGetInstancesStatusCountResponse() (response *GetInstancesStatusCountResponse) { + response = &GetInstancesStatusCountResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_project_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_project_instance.go new file mode 100644 index 0000000..5d18e85 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_project_instance.go @@ -0,0 +1,110 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetProjectInstance invokes the teslamaxcompute.GetProjectInstance API synchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/getprojectinstance.html +func (client *Client) GetProjectInstance(request *GetProjectInstanceRequest) (response *GetProjectInstanceResponse, err error) { + response = CreateGetProjectInstanceResponse() + err = client.DoAction(request, response) + return +} + +// GetProjectInstanceWithChan invokes the teslamaxcompute.GetProjectInstance API asynchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/getprojectinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetProjectInstanceWithChan(request *GetProjectInstanceRequest) (<-chan *GetProjectInstanceResponse, <-chan error) { + responseChan := make(chan *GetProjectInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetProjectInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetProjectInstanceWithCallback invokes the teslamaxcompute.GetProjectInstance API asynchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/getprojectinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetProjectInstanceWithCallback(request *GetProjectInstanceRequest, callback func(response *GetProjectInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetProjectInstanceResponse + var err error + defer close(result) + response, err = client.GetProjectInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetProjectInstanceRequest is the request struct for api GetProjectInstance +type GetProjectInstanceRequest struct { + *requests.RpcRequest + Project string `position:"Query" name:"Project"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Status string `position:"Query" name:"Status"` + Region string `position:"Query" name:"Region"` +} + +// GetProjectInstanceResponse is the response struct for api GetProjectInstance +type GetProjectInstanceResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateGetProjectInstanceRequest creates a request to invoke GetProjectInstance API +func CreateGetProjectInstanceRequest() (request *GetProjectInstanceRequest) { + request = &GetProjectInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetProjectInstance", "", "") + return +} + +// CreateGetProjectInstanceResponse creates a response to parse from GetProjectInstance response +func CreateGetProjectInstanceResponse() (response *GetProjectInstanceResponse) { + response = &GetProjectInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_quota_history_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_quota_history_info.go new file mode 100644 index 0000000..c457d8a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_quota_history_info.go @@ -0,0 +1,110 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetQuotaHistoryInfo invokes the teslamaxcompute.GetQuotaHistoryInfo API synchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/getquotahistoryinfo.html +func (client *Client) GetQuotaHistoryInfo(request *GetQuotaHistoryInfoRequest) (response *GetQuotaHistoryInfoResponse, err error) { + response = CreateGetQuotaHistoryInfoResponse() + err = client.DoAction(request, response) + return +} + +// GetQuotaHistoryInfoWithChan invokes the teslamaxcompute.GetQuotaHistoryInfo API asynchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/getquotahistoryinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetQuotaHistoryInfoWithChan(request *GetQuotaHistoryInfoRequest) (<-chan *GetQuotaHistoryInfoResponse, <-chan error) { + responseChan := make(chan *GetQuotaHistoryInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetQuotaHistoryInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetQuotaHistoryInfoWithCallback invokes the teslamaxcompute.GetQuotaHistoryInfo API asynchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/getquotahistoryinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetQuotaHistoryInfoWithCallback(request *GetQuotaHistoryInfoRequest, callback func(response *GetQuotaHistoryInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetQuotaHistoryInfoResponse + var err error + defer close(result) + response, err = client.GetQuotaHistoryInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetQuotaHistoryInfoRequest is the request struct for api GetQuotaHistoryInfo +type GetQuotaHistoryInfoRequest struct { + *requests.RpcRequest + Cluster string `position:"Query" name:"Cluster"` + EndTime requests.Integer `position:"Query" name:"EndTime"` + QuotaName string `position:"Query" name:"QuotaName"` + Region string `position:"Query" name:"Region"` + StartTime requests.Integer `position:"Query" name:"StartTime"` +} + +// GetQuotaHistoryInfoResponse is the response struct for api GetQuotaHistoryInfo +type GetQuotaHistoryInfoResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data []DataItem `json:"Data" xml:"Data"` +} + +// CreateGetQuotaHistoryInfoRequest creates a request to invoke GetQuotaHistoryInfo API +func CreateGetQuotaHistoryInfoRequest() (request *GetQuotaHistoryInfoRequest) { + request = &GetQuotaHistoryInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetQuotaHistoryInfo", "", "") + return +} + +// CreateGetQuotaHistoryInfoResponse creates a response to parse from GetQuotaHistoryInfo response +func CreateGetQuotaHistoryInfoResponse() (response *GetQuotaHistoryInfoResponse) { + response = &GetQuotaHistoryInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_quota_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_quota_instance.go new file mode 100644 index 0000000..e883c8f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_quota_instance.go @@ -0,0 +1,112 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetQuotaInstance invokes the teslamaxcompute.GetQuotaInstance API synchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/getquotainstance.html +func (client *Client) GetQuotaInstance(request *GetQuotaInstanceRequest) (response *GetQuotaInstanceResponse, err error) { + response = CreateGetQuotaInstanceResponse() + err = client.DoAction(request, response) + return +} + +// GetQuotaInstanceWithChan invokes the teslamaxcompute.GetQuotaInstance API asynchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/getquotainstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetQuotaInstanceWithChan(request *GetQuotaInstanceRequest) (<-chan *GetQuotaInstanceResponse, <-chan error) { + responseChan := make(chan *GetQuotaInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetQuotaInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetQuotaInstanceWithCallback invokes the teslamaxcompute.GetQuotaInstance API asynchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/getquotainstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetQuotaInstanceWithCallback(request *GetQuotaInstanceRequest, callback func(response *GetQuotaInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetQuotaInstanceResponse + var err error + defer close(result) + response, err = client.GetQuotaInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetQuotaInstanceRequest is the request struct for api GetQuotaInstance +type GetQuotaInstanceRequest struct { + *requests.RpcRequest + Cluster string `position:"Query" name:"Cluster"` + QuotaId string `position:"Query" name:"QuotaId"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Status string `position:"Query" name:"Status"` + Region string `position:"Query" name:"Region"` + QuotaName string `position:"Query" name:"QuotaName"` +} + +// GetQuotaInstanceResponse is the response struct for api GetQuotaInstance +type GetQuotaInstanceResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data DataInGetQuotaInstance `json:"Data" xml:"Data"` +} + +// CreateGetQuotaInstanceRequest creates a request to invoke GetQuotaInstance API +func CreateGetQuotaInstanceRequest() (request *GetQuotaInstanceRequest) { + request = &GetQuotaInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetQuotaInstance", "", "") + return +} + +// CreateGetQuotaInstanceResponse creates a response to parse from GetQuotaInstance response +func CreateGetQuotaInstanceResponse() (response *GetQuotaInstanceResponse) { + response = &GetQuotaInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_user_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_user_instance.go new file mode 100644 index 0000000..6fd6728 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/get_user_instance.go @@ -0,0 +1,110 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetUserInstance invokes the teslamaxcompute.GetUserInstance API synchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/getuserinstance.html +func (client *Client) GetUserInstance(request *GetUserInstanceRequest) (response *GetUserInstanceResponse, err error) { + response = CreateGetUserInstanceResponse() + err = client.DoAction(request, response) + return +} + +// GetUserInstanceWithChan invokes the teslamaxcompute.GetUserInstance API asynchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/getuserinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetUserInstanceWithChan(request *GetUserInstanceRequest) (<-chan *GetUserInstanceResponse, <-chan error) { + responseChan := make(chan *GetUserInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetUserInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetUserInstanceWithCallback invokes the teslamaxcompute.GetUserInstance API asynchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/getuserinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetUserInstanceWithCallback(request *GetUserInstanceRequest, callback func(response *GetUserInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetUserInstanceResponse + var err error + defer close(result) + response, err = client.GetUserInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetUserInstanceRequest is the request struct for api GetUserInstance +type GetUserInstanceRequest struct { + *requests.RpcRequest + User string `position:"Query" name:"User"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Status string `position:"Query" name:"Status"` + Region string `position:"Query" name:"Region"` +} + +// GetUserInstanceResponse is the response struct for api GetUserInstance +type GetUserInstanceResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateGetUserInstanceRequest creates a request to invoke GetUserInstance API +func CreateGetUserInstanceRequest() (request *GetUserInstanceRequest) { + request = &GetUserInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "GetUserInstance", "", "") + return +} + +// CreateGetUserInstanceResponse creates a response to parse from GetUserInstance response +func CreateGetUserInstanceResponse() (response *GetUserInstanceResponse) { + response = &GetUserInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/query_customer_sale_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/query_customer_sale_info.go new file mode 100644 index 0000000..f6ae664 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/query_customer_sale_info.go @@ -0,0 +1,106 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryCustomerSaleInfo invokes the teslamaxcompute.QueryCustomerSaleInfo API synchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/querycustomersaleinfo.html +func (client *Client) QueryCustomerSaleInfo(request *QueryCustomerSaleInfoRequest) (response *QueryCustomerSaleInfoResponse, err error) { + response = CreateQueryCustomerSaleInfoResponse() + err = client.DoAction(request, response) + return +} + +// QueryCustomerSaleInfoWithChan invokes the teslamaxcompute.QueryCustomerSaleInfo API asynchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/querycustomersaleinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCustomerSaleInfoWithChan(request *QueryCustomerSaleInfoRequest) (<-chan *QueryCustomerSaleInfoResponse, <-chan error) { + responseChan := make(chan *QueryCustomerSaleInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryCustomerSaleInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryCustomerSaleInfoWithCallback invokes the teslamaxcompute.QueryCustomerSaleInfo API asynchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/querycustomersaleinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryCustomerSaleInfoWithCallback(request *QueryCustomerSaleInfoRequest, callback func(response *QueryCustomerSaleInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryCustomerSaleInfoResponse + var err error + defer close(result) + response, err = client.QueryCustomerSaleInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryCustomerSaleInfoRequest is the request struct for api QueryCustomerSaleInfo +type QueryCustomerSaleInfoRequest struct { + *requests.RpcRequest + RegionName string `position:"Query" name:"RegionName"` +} + +// QueryCustomerSaleInfoResponse is the response struct for api QueryCustomerSaleInfo +type QueryCustomerSaleInfoResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateQueryCustomerSaleInfoRequest creates a request to invoke QueryCustomerSaleInfo API +func CreateQueryCustomerSaleInfoRequest() (request *QueryCustomerSaleInfoRequest) { + request = &QueryCustomerSaleInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "QueryCustomerSaleInfo", "", "") + return +} + +// CreateQueryCustomerSaleInfoResponse creates a response to parse from QueryCustomerSaleInfo response +func CreateQueryCustomerSaleInfoResponse() (response *QueryCustomerSaleInfoResponse) { + response = &QueryCustomerSaleInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/query_resource_inventory.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/query_resource_inventory.go new file mode 100644 index 0000000..e389483 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/query_resource_inventory.go @@ -0,0 +1,105 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryResourceInventory invokes the teslamaxcompute.QueryResourceInventory API synchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/queryresourceinventory.html +func (client *Client) QueryResourceInventory(request *QueryResourceInventoryRequest) (response *QueryResourceInventoryResponse, err error) { + response = CreateQueryResourceInventoryResponse() + err = client.DoAction(request, response) + return +} + +// QueryResourceInventoryWithChan invokes the teslamaxcompute.QueryResourceInventory API asynchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/queryresourceinventory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryResourceInventoryWithChan(request *QueryResourceInventoryRequest) (<-chan *QueryResourceInventoryResponse, <-chan error) { + responseChan := make(chan *QueryResourceInventoryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryResourceInventory(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryResourceInventoryWithCallback invokes the teslamaxcompute.QueryResourceInventory API asynchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/queryresourceinventory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryResourceInventoryWithCallback(request *QueryResourceInventoryRequest, callback func(response *QueryResourceInventoryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryResourceInventoryResponse + var err error + defer close(result) + response, err = client.QueryResourceInventory(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryResourceInventoryRequest is the request struct for api QueryResourceInventory +type QueryResourceInventoryRequest struct { + *requests.RpcRequest +} + +// QueryResourceInventoryResponse is the response struct for api QueryResourceInventory +type QueryResourceInventoryResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateQueryResourceInventoryRequest creates a request to invoke QueryResourceInventory API +func CreateQueryResourceInventoryRequest() (request *QueryResourceInventoryRequest) { + request = &QueryResourceInventoryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "QueryResourceInventory", "", "") + return +} + +// CreateQueryResourceInventoryResponse creates a response to parse from QueryResourceInventory response +func CreateQueryResourceInventoryResponse() (response *QueryResourceInventoryResponse) { + response = &QueryResourceInventoryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/query_topology.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/query_topology.go new file mode 100644 index 0000000..28257b1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/query_topology.go @@ -0,0 +1,105 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTopology invokes the teslamaxcompute.QueryTopology API synchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/querytopology.html +func (client *Client) QueryTopology(request *QueryTopologyRequest) (response *QueryTopologyResponse, err error) { + response = CreateQueryTopologyResponse() + err = client.DoAction(request, response) + return +} + +// QueryTopologyWithChan invokes the teslamaxcompute.QueryTopology API asynchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/querytopology.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTopologyWithChan(request *QueryTopologyRequest) (<-chan *QueryTopologyResponse, <-chan error) { + responseChan := make(chan *QueryTopologyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTopology(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTopologyWithCallback invokes the teslamaxcompute.QueryTopology API asynchronously +// api document: https://help.aliyun.com/api/teslamaxcompute/querytopology.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryTopologyWithCallback(request *QueryTopologyRequest, callback func(response *QueryTopologyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTopologyResponse + var err error + defer close(result) + response, err = client.QueryTopology(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTopologyRequest is the request struct for api QueryTopology +type QueryTopologyRequest struct { + *requests.RpcRequest +} + +// QueryTopologyResponse is the response struct for api QueryTopology +type QueryTopologyResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Result Result `json:"Result" xml:"Result"` +} + +// CreateQueryTopologyRequest creates a request to invoke QueryTopology API +func CreateQueryTopologyRequest() (request *QueryTopologyRequest) { + request = &QueryTopologyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("TeslaMaxCompute", "2018-01-04", "QueryTopology", "", "") + return +} + +// CreateQueryTopologyResponse creates a response to parse from QueryTopology response +func CreateQueryTopologyResponse() (response *QueryTopologyResponse) { + response = &QueryTopologyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_cluster.go new file mode 100644 index 0000000..8c5a533 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_cluster.go @@ -0,0 +1,27 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Cluster is a nested struct in teslamaxcompute response +type Cluster struct { + Region string `json:"Region" xml:"Region"` + MachineRoom string `json:"MachineRoom" xml:"MachineRoom"` + Status string `json:"Status" xml:"Status"` + Cluster string `json:"Cluster" xml:"Cluster"` + SaleInfos SaleInfos `json:"SaleInfos" xml:"SaleInfos"` + ResourceInventories ResourceInventories `json:"ResourceInventories" xml:"ResourceInventories"` + ResourceParameters ResourceParameters `json:"ResourceParameters" xml:"ResourceParameters"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_cluster_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_cluster_item.go new file mode 100644 index 0000000..16dc058 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_cluster_item.go @@ -0,0 +1,27 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ClusterItem is a nested struct in teslamaxcompute response +type ClusterItem struct { + Cluster string `json:"Cluster" xml:"Cluster"` + ProductLine string `json:"ProductLine" xml:"ProductLine"` + ProductClass string `json:"ProductClass" xml:"ProductClass"` + NetCode string `json:"NetCode" xml:"NetCode"` + Business string `json:"Business" xml:"Business"` + MachineRoom string `json:"MachineRoom" xml:"MachineRoom"` + NetArch string `json:"NetArch" xml:"NetArch"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_clusters_in_query_customer_sale_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_clusters_in_query_customer_sale_info.go new file mode 100644 index 0000000..e2db387 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_clusters_in_query_customer_sale_info.go @@ -0,0 +1,21 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ClustersInQueryCustomerSaleInfo is a nested struct in teslamaxcompute response +type ClustersInQueryCustomerSaleInfo struct { + Cluster []Cluster `json:"cluster" xml:"cluster"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_clusters_in_query_resource_inventory.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_clusters_in_query_resource_inventory.go new file mode 100644 index 0000000..36831fd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_clusters_in_query_resource_inventory.go @@ -0,0 +1,21 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ClustersInQueryResourceInventory is a nested struct in teslamaxcompute response +type ClustersInQueryResourceInventory struct { + Cluster []Cluster `json:"cluster" xml:"cluster"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_clusters_in_query_topology.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_clusters_in_query_topology.go new file mode 100644 index 0000000..6aa86bf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_clusters_in_query_topology.go @@ -0,0 +1,21 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ClustersInQueryTopology is a nested struct in teslamaxcompute response +type ClustersInQueryTopology struct { + ClusterItem []ClusterItem `json:"clusterItem" xml:"clusterItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_cpu_max_quota.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_cpu_max_quota.go new file mode 100644 index 0000000..172633c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_cpu_max_quota.go @@ -0,0 +1,23 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CpuMaxQuota is a nested struct in teslamaxcompute response +type CpuMaxQuota struct { + Min float64 `json:"Min" xml:"Min"` + Max float64 `json:"Max" xml:"Max"` + Avg float64 `json:"Avg" xml:"Avg"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_cpu_min_quota.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_cpu_min_quota.go new file mode 100644 index 0000000..66d1e49 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_cpu_min_quota.go @@ -0,0 +1,23 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CpuMinQuota is a nested struct in teslamaxcompute response +type CpuMinQuota struct { + Min float64 `json:"Min" xml:"Min"` + Max float64 `json:"Max" xml:"Max"` + Avg float64 `json:"Avg" xml:"Avg"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_cpu_used.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_cpu_used.go new file mode 100644 index 0000000..ecb77ab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_cpu_used.go @@ -0,0 +1,23 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CpuUsed is a nested struct in teslamaxcompute response +type CpuUsed struct { + Min float64 `json:"Min" xml:"Min"` + Max float64 `json:"Max" xml:"Max"` + Avg float64 `json:"Avg" xml:"Avg"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_data.go new file mode 100644 index 0000000..20000ad --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_data.go @@ -0,0 +1,24 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 teslamaxcompute response +type Data struct { + Total int `json:"Total" xml:"Total"` + LastUpdate string `json:"LastUpdate" xml:"LastUpdate"` + Clusters []Cluster `json:"Clusters" xml:"Clusters"` + Detail []Instance `json:"Detail" xml:"Detail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_data_in_get_instances_status_count.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_data_in_get_instances_status_count.go new file mode 100644 index 0000000..d243a15 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_data_in_get_instances_status_count.go @@ -0,0 +1,21 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInGetInstancesStatusCount is a nested struct in teslamaxcompute response +type DataInGetInstancesStatusCount struct { + DataItem []DataItem `json:"DataItem" xml:"DataItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_data_in_get_quota_history_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_data_in_get_quota_history_info.go new file mode 100644 index 0000000..b1bb311 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_data_in_get_quota_history_info.go @@ -0,0 +1,21 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInGetQuotaHistoryInfo is a nested struct in teslamaxcompute response +type DataInGetQuotaHistoryInfo struct { + DataItem []DataItem `json:"DataItem" xml:"DataItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_data_in_get_quota_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_data_in_get_quota_instance.go new file mode 100644 index 0000000..581430b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_data_in_get_quota_instance.go @@ -0,0 +1,22 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInGetQuotaInstance is a nested struct in teslamaxcompute response +type DataInGetQuotaInstance struct { + Total int `json:"Total" xml:"Total"` + Detail []Instance `json:"Detail" xml:"Detail"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_data_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_data_item.go new file mode 100644 index 0000000..cdebe9b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_data_item.go @@ -0,0 +1,24 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataItem is a nested struct in teslamaxcompute response +type DataItem struct { + Size int `json:"Size" xml:"Size"` + Times int `json:"Times" xml:"Times"` + Status string `json:"Status" xml:"Status"` + Point Point `json:"Point" xml:"Point"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_detail_in_get_cluster_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_detail_in_get_cluster_instance.go new file mode 100644 index 0000000..3b35399 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_detail_in_get_cluster_instance.go @@ -0,0 +1,21 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DetailInGetClusterInstance is a nested struct in teslamaxcompute response +type DetailInGetClusterInstance struct { + Instance []Instance `json:"instance" xml:"instance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_detail_in_get_project_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_detail_in_get_project_instance.go new file mode 100644 index 0000000..47b4757 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_detail_in_get_project_instance.go @@ -0,0 +1,21 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DetailInGetProjectInstance is a nested struct in teslamaxcompute response +type DetailInGetProjectInstance struct { + Instance []Instance `json:"instance" xml:"instance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_detail_in_get_quota_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_detail_in_get_quota_instance.go new file mode 100644 index 0000000..0e7090a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_detail_in_get_quota_instance.go @@ -0,0 +1,21 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DetailInGetQuotaInstance is a nested struct in teslamaxcompute response +type DetailInGetQuotaInstance struct { + Instance []Instance `json:"Instance" xml:"Instance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_detail_in_get_user_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_detail_in_get_user_instance.go new file mode 100644 index 0000000..42a0a9f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_detail_in_get_user_instance.go @@ -0,0 +1,21 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DetailInGetUserInstance is a nested struct in teslamaxcompute response +type DetailInGetUserInstance struct { + Instance []Instance `json:"instance" xml:"instance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_instance.go new file mode 100644 index 0000000..781c374 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_instance.go @@ -0,0 +1,45 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 teslamaxcompute response +type Instance struct { + User string `json:"User" xml:"User"` + SkynetId string `json:"SkynetId" xml:"SkynetId"` + CpuUsedRatioMin float64 `json:"CpuUsedRatioMin" xml:"CpuUsedRatioMin"` + CpuRequest int `json:"CpuRequest" xml:"CpuRequest"` + MemUsedRatioMin float64 `json:"MemUsedRatioMin" xml:"MemUsedRatioMin"` + QuotaId int `json:"QuotaId" xml:"QuotaId"` + RunTime string `json:"RunTime" xml:"RunTime"` + Project string `json:"Project" xml:"Project"` + MemUsedRatioMax float64 `json:"MemUsedRatioMax" xml:"MemUsedRatioMax"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + NickName string `json:"NickName" xml:"NickName"` + CpuUsedRatioMax float64 `json:"CpuUsedRatioMax" xml:"CpuUsedRatioMax"` + MemUsedTotal int `json:"MemUsedTotal" xml:"MemUsedTotal"` + ProjectOwner string `json:"ProjectOwner" xml:"ProjectOwner"` + QuotaName string `json:"QuotaName" xml:"QuotaName"` + MemRequest int `json:"MemRequest" xml:"MemRequest"` + CollectTime string `json:"CollectTime" xml:"CollectTime"` + Cluster string `json:"Cluster" xml:"Cluster"` + CpuUsed int `json:"CpuUsed" xml:"CpuUsed"` + IsRealOwner string `json:"IsRealOwner" xml:"IsRealOwner"` + Status string `json:"Status" xml:"Status"` + TaskType string `json:"TaskType" xml:"TaskType"` + UserAccount string `json:"UserAccount" xml:"UserAccount"` + MemUsed int `json:"MemUsed" xml:"MemUsed"` + CpuUsedTotal int `json:"CpuUsedTotal" xml:"CpuUsedTotal"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_mem_max_quota.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_mem_max_quota.go new file mode 100644 index 0000000..fcd0b39 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_mem_max_quota.go @@ -0,0 +1,23 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MemMaxQuota is a nested struct in teslamaxcompute response +type MemMaxQuota struct { + Min float64 `json:"Min" xml:"Min"` + Max float64 `json:"Max" xml:"Max"` + Avg float64 `json:"Avg" xml:"Avg"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_mem_min_quota.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_mem_min_quota.go new file mode 100644 index 0000000..3136428 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_mem_min_quota.go @@ -0,0 +1,23 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MemMinQuota is a nested struct in teslamaxcompute response +type MemMinQuota struct { + Min float64 `json:"Min" xml:"Min"` + Max float64 `json:"Max" xml:"Max"` + Avg float64 `json:"Avg" xml:"Avg"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_mem_used.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_mem_used.go new file mode 100644 index 0000000..256fff3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_mem_used.go @@ -0,0 +1,23 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MemUsed is a nested struct in teslamaxcompute response +type MemUsed struct { + Min float64 `json:"Min" xml:"Min"` + Max float64 `json:"Max" xml:"Max"` + Avg float64 `json:"Avg" xml:"Avg"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_point.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_point.go new file mode 100644 index 0000000..3680851 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_point.go @@ -0,0 +1,26 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Point is a nested struct in teslamaxcompute response +type Point struct { + CpuMaxQuota CpuMaxQuota `json:"CpuMaxQuota" xml:"CpuMaxQuota"` + CpuMinQuota CpuMinQuota `json:"CpuMinQuota" xml:"CpuMinQuota"` + MemUsed MemUsed `json:"MemUsed" xml:"MemUsed"` + CpuUsed CpuUsed `json:"CpuUsed" xml:"CpuUsed"` + MemMaxQuota MemMaxQuota `json:"MemMaxQuota" xml:"MemMaxQuota"` + MemMinQuota MemMinQuota `json:"MemMinQuota" xml:"MemMinQuota"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_region_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_region_item.go new file mode 100644 index 0000000..2480cdb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_region_item.go @@ -0,0 +1,24 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RegionItem is a nested struct in teslamaxcompute response +type RegionItem struct { + Region string `json:"Region" xml:"Region"` + RegionEnName string `json:"RegionEnName" xml:"RegionEnName"` + RegionCnName string `json:"RegionCnName" xml:"RegionCnName"` + Clusters ClustersInQueryTopology `json:"Clusters" xml:"Clusters"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_regions.go new file mode 100644 index 0000000..f4241d3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_regions.go @@ -0,0 +1,21 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 teslamaxcompute response +type Regions struct { + RegionItem []RegionItem `json:"regionItem" xml:"regionItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_resource_inventories.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_resource_inventories.go new file mode 100644 index 0000000..56edaa1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_resource_inventories.go @@ -0,0 +1,21 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResourceInventories is a nested struct in teslamaxcompute response +type ResourceInventories struct { + ResourceInventory []ResourceInventory `json:"resourceInventory" xml:"resourceInventory"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_resource_inventory.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_resource_inventory.go new file mode 100644 index 0000000..1f43b16 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_resource_inventory.go @@ -0,0 +1,24 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResourceInventory is a nested struct in teslamaxcompute response +type ResourceInventory struct { + Total int `json:"Total" xml:"Total"` + Available int `json:"Available" xml:"Available"` + Used int `json:"Used" xml:"Used"` + ResourceType string `json:"ResourceType" xml:"ResourceType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_resource_parameter.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_resource_parameter.go new file mode 100644 index 0000000..1b92710 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_resource_parameter.go @@ -0,0 +1,22 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResourceParameter is a nested struct in teslamaxcompute response +type ResourceParameter struct { + ParaName string `json:"ParaName" xml:"ParaName"` + ParaValue string `json:"ParaValue" xml:"ParaValue"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_resource_parameters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_resource_parameters.go new file mode 100644 index 0000000..83a148a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_resource_parameters.go @@ -0,0 +1,21 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResourceParameters is a nested struct in teslamaxcompute response +type ResourceParameters struct { + ResourceParameter []ResourceParameter `json:"resourceParameter" xml:"resourceParameter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_result.go new file mode 100644 index 0000000..e9ed0e8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_result.go @@ -0,0 +1,21 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Result is a nested struct in teslamaxcompute response +type Result struct { + ResultItem []ResultItem `json:"resultItem" xml:"resultItem"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_result_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_result_item.go new file mode 100644 index 0000000..bbb5813 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_result_item.go @@ -0,0 +1,22 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ResultItem is a nested struct in teslamaxcompute response +type ResultItem struct { + LastUpdate string `json:"LastUpdate" xml:"LastUpdate"` + Regions Regions `json:"Regions" xml:"Regions"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_sale_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_sale_info.go new file mode 100644 index 0000000..1935ab0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_sale_info.go @@ -0,0 +1,27 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SaleInfo is a nested struct in teslamaxcompute response +type SaleInfo struct { + SaleMode string `json:"SaleMode" xml:"SaleMode"` + Uid string `json:"Uid" xml:"Uid"` + Mem int `json:"Mem" xml:"Mem"` + Cpu int `json:"Cpu" xml:"Cpu"` + BizCategory string `json:"BizCategory" xml:"BizCategory"` + Owner string `json:"Owner" xml:"Owner"` + QueryDate string `json:"QueryDate" xml:"QueryDate"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_sale_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_sale_infos.go new file mode 100644 index 0000000..dee7538 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslamaxcompute/struct_sale_infos.go @@ -0,0 +1,21 @@ +package teslamaxcompute + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SaleInfos is a nested struct in teslamaxcompute response +type SaleInfos struct { + SaleInfo []SaleInfo `json:"saleInfo" xml:"saleInfo"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/batch_get_job_metric_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/batch_get_job_metric_info.go new file mode 100644 index 0000000..638e8a7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/batch_get_job_metric_info.go @@ -0,0 +1,106 @@ +package teslastream + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// BatchGetJobMetricInfo invokes the teslastream.BatchGetJobMetricInfo API synchronously +// api document: https://help.aliyun.com/api/teslastream/batchgetjobmetricinfo.html +func (client *Client) BatchGetJobMetricInfo(request *BatchGetJobMetricInfoRequest) (response *BatchGetJobMetricInfoResponse, err error) { + response = CreateBatchGetJobMetricInfoResponse() + err = client.DoAction(request, response) + return +} + +// BatchGetJobMetricInfoWithChan invokes the teslastream.BatchGetJobMetricInfo API asynchronously +// api document: https://help.aliyun.com/api/teslastream/batchgetjobmetricinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BatchGetJobMetricInfoWithChan(request *BatchGetJobMetricInfoRequest) (<-chan *BatchGetJobMetricInfoResponse, <-chan error) { + responseChan := make(chan *BatchGetJobMetricInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BatchGetJobMetricInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BatchGetJobMetricInfoWithCallback invokes the teslastream.BatchGetJobMetricInfo API asynchronously +// api document: https://help.aliyun.com/api/teslastream/batchgetjobmetricinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BatchGetJobMetricInfoWithCallback(request *BatchGetJobMetricInfoRequest, callback func(response *BatchGetJobMetricInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BatchGetJobMetricInfoResponse + var err error + defer close(result) + response, err = client.BatchGetJobMetricInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BatchGetJobMetricInfoRequest is the request struct for api BatchGetJobMetricInfo +type BatchGetJobMetricInfoRequest struct { + *requests.RpcRequest + JobInfos string `position:"Query" name:"JobInfos"` +} + +// BatchGetJobMetricInfoResponse is the response struct for api BatchGetJobMetricInfo +type BatchGetJobMetricInfoResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data []Job `json:"Data" xml:"Data"` +} + +// CreateBatchGetJobMetricInfoRequest creates a request to invoke BatchGetJobMetricInfo API +func CreateBatchGetJobMetricInfoRequest() (request *BatchGetJobMetricInfoRequest) { + request = &BatchGetJobMetricInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("TeslaStream", "2018-01-15", "BatchGetJobMetricInfo", "", "") + return +} + +// CreateBatchGetJobMetricInfoResponse creates a response to parse from BatchGetJobMetricInfo response +func CreateBatchGetJobMetricInfoResponse() (response *BatchGetJobMetricInfoResponse) { + response = &BatchGetJobMetricInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/batch_get_plugin_config_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/batch_get_plugin_config_info.go new file mode 100644 index 0000000..92e082b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/batch_get_plugin_config_info.go @@ -0,0 +1,106 @@ +package teslastream + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// BatchGetPluginConfigInfo invokes the teslastream.BatchGetPluginConfigInfo API synchronously +// api document: https://help.aliyun.com/api/teslastream/batchgetpluginconfiginfo.html +func (client *Client) BatchGetPluginConfigInfo(request *BatchGetPluginConfigInfoRequest) (response *BatchGetPluginConfigInfoResponse, err error) { + response = CreateBatchGetPluginConfigInfoResponse() + err = client.DoAction(request, response) + return +} + +// BatchGetPluginConfigInfoWithChan invokes the teslastream.BatchGetPluginConfigInfo API asynchronously +// api document: https://help.aliyun.com/api/teslastream/batchgetpluginconfiginfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BatchGetPluginConfigInfoWithChan(request *BatchGetPluginConfigInfoRequest) (<-chan *BatchGetPluginConfigInfoResponse, <-chan error) { + responseChan := make(chan *BatchGetPluginConfigInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BatchGetPluginConfigInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BatchGetPluginConfigInfoWithCallback invokes the teslastream.BatchGetPluginConfigInfo API asynchronously +// api document: https://help.aliyun.com/api/teslastream/batchgetpluginconfiginfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) BatchGetPluginConfigInfoWithCallback(request *BatchGetPluginConfigInfoRequest, callback func(response *BatchGetPluginConfigInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BatchGetPluginConfigInfoResponse + var err error + defer close(result) + response, err = client.BatchGetPluginConfigInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BatchGetPluginConfigInfoRequest is the request struct for api BatchGetPluginConfigInfo +type BatchGetPluginConfigInfoRequest struct { + *requests.RpcRequest + PluginInfos string `position:"Query" name:"PluginInfos"` +} + +// BatchGetPluginConfigInfoResponse is the response struct for api BatchGetPluginConfigInfo +type BatchGetPluginConfigInfoResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data []Plugin `json:"Data" xml:"Data"` +} + +// CreateBatchGetPluginConfigInfoRequest creates a request to invoke BatchGetPluginConfigInfo API +func CreateBatchGetPluginConfigInfoRequest() (request *BatchGetPluginConfigInfoRequest) { + request = &BatchGetPluginConfigInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("TeslaStream", "2018-01-15", "BatchGetPluginConfigInfo", "", "") + return +} + +// CreateBatchGetPluginConfigInfoResponse creates a response to parse from BatchGetPluginConfigInfo response +func CreateBatchGetPluginConfigInfoResponse() (response *BatchGetPluginConfigInfoResponse) { + response = &BatchGetPluginConfigInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/client.go new file mode 100644 index 0000000..a4a563d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/client.go @@ -0,0 +1,81 @@ +package teslastream + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/get_job_topology.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/get_job_topology.go new file mode 100644 index 0000000..e3d7457 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/get_job_topology.go @@ -0,0 +1,106 @@ +package teslastream + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetJobTopology invokes the teslastream.GetJobTopology API synchronously +// api document: https://help.aliyun.com/api/teslastream/getjobtopology.html +func (client *Client) GetJobTopology(request *GetJobTopologyRequest) (response *GetJobTopologyResponse, err error) { + response = CreateGetJobTopologyResponse() + err = client.DoAction(request, response) + return +} + +// GetJobTopologyWithChan invokes the teslastream.GetJobTopology API asynchronously +// api document: https://help.aliyun.com/api/teslastream/getjobtopology.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetJobTopologyWithChan(request *GetJobTopologyRequest) (<-chan *GetJobTopologyResponse, <-chan error) { + responseChan := make(chan *GetJobTopologyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetJobTopology(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetJobTopologyWithCallback invokes the teslastream.GetJobTopology API asynchronously +// api document: https://help.aliyun.com/api/teslastream/getjobtopology.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetJobTopologyWithCallback(request *GetJobTopologyRequest, callback func(response *GetJobTopologyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetJobTopologyResponse + var err error + defer close(result) + response, err = client.GetJobTopology(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetJobTopologyRequest is the request struct for api GetJobTopology +type GetJobTopologyRequest struct { + *requests.RpcRequest + JobName string `position:"Query" name:"JobName"` +} + +// GetJobTopologyResponse is the response struct for api GetJobTopology +type GetJobTopologyResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data []Job `json:"Data" xml:"Data"` +} + +// CreateGetJobTopologyRequest creates a request to invoke GetJobTopology API +func CreateGetJobTopologyRequest() (request *GetJobTopologyRequest) { + request = &GetJobTopologyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("TeslaStream", "2018-01-15", "GetJobTopology", "", "") + return +} + +// CreateGetJobTopologyResponse creates a response to parse from GetJobTopology response +func CreateGetJobTopologyResponse() (response *GetJobTopologyResponse) { + response = &GetJobTopologyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_childrens.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_childrens.go new file mode 100644 index 0000000..d065a5e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_childrens.go @@ -0,0 +1,21 @@ +package teslastream + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Childrens is a nested struct in teslastream response +type Childrens struct { + Children []string `json:"Children" xml:"Children"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_data_in_batch_get_job_metric_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_data_in_batch_get_job_metric_info.go new file mode 100644 index 0000000..6581dc7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_data_in_batch_get_job_metric_info.go @@ -0,0 +1,21 @@ +package teslastream + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInBatchGetJobMetricInfo is a nested struct in teslastream response +type DataInBatchGetJobMetricInfo struct { + Job []Job `json:"Job" xml:"Job"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_data_in_batch_get_plugin_config_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_data_in_batch_get_plugin_config_info.go new file mode 100644 index 0000000..2ed25ee --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_data_in_batch_get_plugin_config_info.go @@ -0,0 +1,21 @@ +package teslastream + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInBatchGetPluginConfigInfo is a nested struct in teslastream response +type DataInBatchGetPluginConfigInfo struct { + Plugin []Plugin `json:"plugin" xml:"plugin"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_data_in_get_job_topology.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_data_in_get_job_topology.go new file mode 100644 index 0000000..259561f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_data_in_get_job_topology.go @@ -0,0 +1,21 @@ +package teslastream + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInGetJobTopology is a nested struct in teslastream response +type DataInGetJobTopology struct { + Job []Job `json:"Job" xml:"Job"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_job.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_job.go new file mode 100644 index 0000000..5887786 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_job.go @@ -0,0 +1,35 @@ +package teslastream + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Job is a nested struct in teslastream response +type Job struct { + Text string `json:"Text" xml:"Text"` + TpsOut int `json:"TpsOut" xml:"TpsOut"` + CpuUsed float64 `json:"CpuUsed" xml:"CpuUsed"` + Priority string `json:"Priority" xml:"Priority"` + TpsIn int `json:"TpsIn" xml:"TpsIn"` + Nickname string `json:"Nickname" xml:"Nickname"` + CpuRequest int `json:"CpuRequest" xml:"CpuRequest"` + MemUsed float64 `json:"MemUsed" xml:"MemUsed"` + PluginRelation string `json:"PluginRelation" xml:"PluginRelation"` + JobUniqKey string `json:"JobUniqKey" xml:"JobUniqKey"` + Delay int `json:"Delay" xml:"Delay"` + MemRequest int `json:"MemRequest" xml:"MemRequest"` + Type string `json:"Type" xml:"Type"` + Parents []string `json:"Parents" xml:"Parents"` + Childrens []string `json:"Childrens" xml:"Childrens"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_parents.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_parents.go new file mode 100644 index 0000000..284cd97 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_parents.go @@ -0,0 +1,21 @@ +package teslastream + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Parents is a nested struct in teslastream response +type Parents struct { + Parent []string `json:"Parent" xml:"Parent"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_plugin.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_plugin.go new file mode 100644 index 0000000..cf1a117 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/teslastream/struct_plugin.go @@ -0,0 +1,22 @@ +package teslastream + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Plugin is a nested struct in teslastream response +type Plugin struct { + PluginProperties string `json:"PluginProperties" xml:"PluginProperties"` + PluginUniqKey string `json:"PluginUniqKey" xml:"PluginUniqKey"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/activate_router_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/activate_router_interface.go new file mode 100644 index 0000000..0091fed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/activate_router_interface.go @@ -0,0 +1,106 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ActivateRouterInterface invokes the vpc.ActivateRouterInterface API synchronously +// api document: https://help.aliyun.com/api/vpc/activaterouterinterface.html +func (client *Client) ActivateRouterInterface(request *ActivateRouterInterfaceRequest) (response *ActivateRouterInterfaceResponse, err error) { + response = CreateActivateRouterInterfaceResponse() + err = client.DoAction(request, response) + return +} + +// ActivateRouterInterfaceWithChan invokes the vpc.ActivateRouterInterface API asynchronously +// api document: https://help.aliyun.com/api/vpc/activaterouterinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ActivateRouterInterfaceWithChan(request *ActivateRouterInterfaceRequest) (<-chan *ActivateRouterInterfaceResponse, <-chan error) { + responseChan := make(chan *ActivateRouterInterfaceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ActivateRouterInterface(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ActivateRouterInterfaceWithCallback invokes the vpc.ActivateRouterInterface API asynchronously +// api document: https://help.aliyun.com/api/vpc/activaterouterinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ActivateRouterInterfaceWithCallback(request *ActivateRouterInterfaceRequest, callback func(response *ActivateRouterInterfaceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ActivateRouterInterfaceResponse + var err error + defer close(result) + response, err = client.ActivateRouterInterface(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ActivateRouterInterfaceRequest is the request struct for api ActivateRouterInterface +type ActivateRouterInterfaceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + RouterInterfaceId string `position:"Query" name:"RouterInterfaceId"` +} + +// ActivateRouterInterfaceResponse is the response struct for api ActivateRouterInterface +type ActivateRouterInterfaceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateActivateRouterInterfaceRequest creates a request to invoke ActivateRouterInterface API +func CreateActivateRouterInterfaceRequest() (request *ActivateRouterInterfaceRequest) { + request = &ActivateRouterInterfaceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ActivateRouterInterface", "vpc", "openAPI") + return +} + +// CreateActivateRouterInterfaceResponse creates a response to parse from ActivateRouterInterface response +func CreateActivateRouterInterfaceResponse() (response *ActivateRouterInterfaceResponse) { + response = &ActivateRouterInterfaceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/add_bandwidth_package_ips.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/add_bandwidth_package_ips.go new file mode 100644 index 0000000..96add22 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/add_bandwidth_package_ips.go @@ -0,0 +1,109 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddBandwidthPackageIps invokes the vpc.AddBandwidthPackageIps API synchronously +// api document: https://help.aliyun.com/api/vpc/addbandwidthpackageips.html +func (client *Client) AddBandwidthPackageIps(request *AddBandwidthPackageIpsRequest) (response *AddBandwidthPackageIpsResponse, err error) { + response = CreateAddBandwidthPackageIpsResponse() + err = client.DoAction(request, response) + return +} + +// AddBandwidthPackageIpsWithChan invokes the vpc.AddBandwidthPackageIps API asynchronously +// api document: https://help.aliyun.com/api/vpc/addbandwidthpackageips.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddBandwidthPackageIpsWithChan(request *AddBandwidthPackageIpsRequest) (<-chan *AddBandwidthPackageIpsResponse, <-chan error) { + responseChan := make(chan *AddBandwidthPackageIpsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddBandwidthPackageIps(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddBandwidthPackageIpsWithCallback invokes the vpc.AddBandwidthPackageIps API asynchronously +// api document: https://help.aliyun.com/api/vpc/addbandwidthpackageips.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddBandwidthPackageIpsWithCallback(request *AddBandwidthPackageIpsRequest, callback func(response *AddBandwidthPackageIpsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddBandwidthPackageIpsResponse + var err error + defer close(result) + response, err = client.AddBandwidthPackageIps(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddBandwidthPackageIpsRequest is the request struct for api AddBandwidthPackageIps +type AddBandwidthPackageIpsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` + IpCount string `position:"Query" name:"IpCount"` + ClientToken string `position:"Query" name:"ClientToken"` +} + +// AddBandwidthPackageIpsResponse is the response struct for api AddBandwidthPackageIps +type AddBandwidthPackageIpsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddBandwidthPackageIpsRequest creates a request to invoke AddBandwidthPackageIps API +func CreateAddBandwidthPackageIpsRequest() (request *AddBandwidthPackageIpsRequest) { + request = &AddBandwidthPackageIpsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "AddBandwidthPackageIps", "vpc", "openAPI") + return +} + +// CreateAddBandwidthPackageIpsResponse creates a response to parse from AddBandwidthPackageIps response +func CreateAddBandwidthPackageIpsResponse() (response *AddBandwidthPackageIpsResponse) { + response = &AddBandwidthPackageIpsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/add_bgp_network.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/add_bgp_network.go new file mode 100644 index 0000000..458d471 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/add_bgp_network.go @@ -0,0 +1,110 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddBgpNetwork invokes the vpc.AddBgpNetwork API synchronously +// api document: https://help.aliyun.com/api/vpc/addbgpnetwork.html +func (client *Client) AddBgpNetwork(request *AddBgpNetworkRequest) (response *AddBgpNetworkResponse, err error) { + response = CreateAddBgpNetworkResponse() + err = client.DoAction(request, response) + return +} + +// AddBgpNetworkWithChan invokes the vpc.AddBgpNetwork API asynchronously +// api document: https://help.aliyun.com/api/vpc/addbgpnetwork.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddBgpNetworkWithChan(request *AddBgpNetworkRequest) (<-chan *AddBgpNetworkResponse, <-chan error) { + responseChan := make(chan *AddBgpNetworkResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddBgpNetwork(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddBgpNetworkWithCallback invokes the vpc.AddBgpNetwork API asynchronously +// api document: https://help.aliyun.com/api/vpc/addbgpnetwork.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddBgpNetworkWithCallback(request *AddBgpNetworkRequest, callback func(response *AddBgpNetworkResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddBgpNetworkResponse + var err error + defer close(result) + response, err = client.AddBgpNetwork(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddBgpNetworkRequest is the request struct for api AddBgpNetwork +type AddBgpNetworkRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DstCidrBlock string `position:"Query" name:"DstCidrBlock"` + VpcId string `position:"Query" name:"VpcId"` + RouterId string `position:"Query" name:"RouterId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// AddBgpNetworkResponse is the response struct for api AddBgpNetwork +type AddBgpNetworkResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddBgpNetworkRequest creates a request to invoke AddBgpNetwork API +func CreateAddBgpNetworkRequest() (request *AddBgpNetworkRequest) { + request = &AddBgpNetworkRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "AddBgpNetwork", "vpc", "openAPI") + return +} + +// CreateAddBgpNetworkResponse creates a response to parse from AddBgpNetwork response +func CreateAddBgpNetworkResponse() (response *AddBgpNetworkResponse) { + response = &AddBgpNetworkResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/add_common_bandwidth_package_ip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/add_common_bandwidth_package_ip.go new file mode 100644 index 0000000..77b6c81 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/add_common_bandwidth_package_ip.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddCommonBandwidthPackageIp invokes the vpc.AddCommonBandwidthPackageIp API synchronously +// api document: https://help.aliyun.com/api/vpc/addcommonbandwidthpackageip.html +func (client *Client) AddCommonBandwidthPackageIp(request *AddCommonBandwidthPackageIpRequest) (response *AddCommonBandwidthPackageIpResponse, err error) { + response = CreateAddCommonBandwidthPackageIpResponse() + err = client.DoAction(request, response) + return +} + +// AddCommonBandwidthPackageIpWithChan invokes the vpc.AddCommonBandwidthPackageIp API asynchronously +// api document: https://help.aliyun.com/api/vpc/addcommonbandwidthpackageip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCommonBandwidthPackageIpWithChan(request *AddCommonBandwidthPackageIpRequest) (<-chan *AddCommonBandwidthPackageIpResponse, <-chan error) { + responseChan := make(chan *AddCommonBandwidthPackageIpResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddCommonBandwidthPackageIp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddCommonBandwidthPackageIpWithCallback invokes the vpc.AddCommonBandwidthPackageIp API asynchronously +// api document: https://help.aliyun.com/api/vpc/addcommonbandwidthpackageip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddCommonBandwidthPackageIpWithCallback(request *AddCommonBandwidthPackageIpRequest, callback func(response *AddCommonBandwidthPackageIpResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddCommonBandwidthPackageIpResponse + var err error + defer close(result) + response, err = client.AddCommonBandwidthPackageIp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddCommonBandwidthPackageIpRequest is the request struct for api AddCommonBandwidthPackageIp +type AddCommonBandwidthPackageIpRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` + IpInstanceId string `position:"Query" name:"IpInstanceId"` +} + +// AddCommonBandwidthPackageIpResponse is the response struct for api AddCommonBandwidthPackageIp +type AddCommonBandwidthPackageIpResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddCommonBandwidthPackageIpRequest creates a request to invoke AddCommonBandwidthPackageIp API +func CreateAddCommonBandwidthPackageIpRequest() (request *AddCommonBandwidthPackageIpRequest) { + request = &AddCommonBandwidthPackageIpRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "AddCommonBandwidthPackageIp", "vpc", "openAPI") + return +} + +// CreateAddCommonBandwidthPackageIpResponse creates a response to parse from AddCommonBandwidthPackageIp response +func CreateAddCommonBandwidthPackageIpResponse() (response *AddCommonBandwidthPackageIpResponse) { + response = &AddCommonBandwidthPackageIpResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/add_global_acceleration_instance_ip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/add_global_acceleration_instance_ip.go new file mode 100644 index 0000000..c53ffb9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/add_global_acceleration_instance_ip.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AddGlobalAccelerationInstanceIp invokes the vpc.AddGlobalAccelerationInstanceIp API synchronously +// api document: https://help.aliyun.com/api/vpc/addglobalaccelerationinstanceip.html +func (client *Client) AddGlobalAccelerationInstanceIp(request *AddGlobalAccelerationInstanceIpRequest) (response *AddGlobalAccelerationInstanceIpResponse, err error) { + response = CreateAddGlobalAccelerationInstanceIpResponse() + err = client.DoAction(request, response) + return +} + +// AddGlobalAccelerationInstanceIpWithChan invokes the vpc.AddGlobalAccelerationInstanceIp API asynchronously +// api document: https://help.aliyun.com/api/vpc/addglobalaccelerationinstanceip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddGlobalAccelerationInstanceIpWithChan(request *AddGlobalAccelerationInstanceIpRequest) (<-chan *AddGlobalAccelerationInstanceIpResponse, <-chan error) { + responseChan := make(chan *AddGlobalAccelerationInstanceIpResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddGlobalAccelerationInstanceIp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddGlobalAccelerationInstanceIpWithCallback invokes the vpc.AddGlobalAccelerationInstanceIp API asynchronously +// api document: https://help.aliyun.com/api/vpc/addglobalaccelerationinstanceip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddGlobalAccelerationInstanceIpWithCallback(request *AddGlobalAccelerationInstanceIpRequest, callback func(response *AddGlobalAccelerationInstanceIpResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddGlobalAccelerationInstanceIpResponse + var err error + defer close(result) + response, err = client.AddGlobalAccelerationInstanceIp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddGlobalAccelerationInstanceIpRequest is the request struct for api AddGlobalAccelerationInstanceIp +type AddGlobalAccelerationInstanceIpRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + GlobalAccelerationInstanceId string `position:"Query" name:"GlobalAccelerationInstanceId"` + IpInstanceId string `position:"Query" name:"IpInstanceId"` +} + +// AddGlobalAccelerationInstanceIpResponse is the response struct for api AddGlobalAccelerationInstanceIp +type AddGlobalAccelerationInstanceIpResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddGlobalAccelerationInstanceIpRequest creates a request to invoke AddGlobalAccelerationInstanceIp API +func CreateAddGlobalAccelerationInstanceIpRequest() (request *AddGlobalAccelerationInstanceIpRequest) { + request = &AddGlobalAccelerationInstanceIpRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "AddGlobalAccelerationInstanceIp", "vpc", "openAPI") + return +} + +// CreateAddGlobalAccelerationInstanceIpResponse creates a response to parse from AddGlobalAccelerationInstanceIp response +func CreateAddGlobalAccelerationInstanceIpResponse() (response *AddGlobalAccelerationInstanceIpResponse) { + response = &AddGlobalAccelerationInstanceIpResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/allocate_eip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/allocate_eip_address.go new file mode 100644 index 0000000..d44b01f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/allocate_eip_address.go @@ -0,0 +1,120 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AllocateEipAddress invokes the vpc.AllocateEipAddress API synchronously +// api document: https://help.aliyun.com/api/vpc/allocateeipaddress.html +func (client *Client) AllocateEipAddress(request *AllocateEipAddressRequest) (response *AllocateEipAddressResponse, err error) { + response = CreateAllocateEipAddressResponse() + err = client.DoAction(request, response) + return +} + +// AllocateEipAddressWithChan invokes the vpc.AllocateEipAddress API asynchronously +// api document: https://help.aliyun.com/api/vpc/allocateeipaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AllocateEipAddressWithChan(request *AllocateEipAddressRequest) (<-chan *AllocateEipAddressResponse, <-chan error) { + responseChan := make(chan *AllocateEipAddressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AllocateEipAddress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AllocateEipAddressWithCallback invokes the vpc.AllocateEipAddress API asynchronously +// api document: https://help.aliyun.com/api/vpc/allocateeipaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AllocateEipAddressWithCallback(request *AllocateEipAddressRequest, callback func(response *AllocateEipAddressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AllocateEipAddressResponse + var err error + defer close(result) + response, err = client.AllocateEipAddress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AllocateEipAddressRequest is the request struct for api AllocateEipAddress +type AllocateEipAddressRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Bandwidth string `position:"Query" name:"Bandwidth"` + Period requests.Integer `position:"Query" name:"Period"` + ISP string `position:"Query" name:"ISP"` + Netmode string `position:"Query" name:"Netmode"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` + PricingCycle string `position:"Query" name:"PricingCycle"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` +} + +// AllocateEipAddressResponse is the response struct for api AllocateEipAddress +type AllocateEipAddressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AllocationId string `json:"AllocationId" xml:"AllocationId"` + EipAddress string `json:"EipAddress" xml:"EipAddress"` + OrderId int `json:"OrderId" xml:"OrderId"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` +} + +// CreateAllocateEipAddressRequest creates a request to invoke AllocateEipAddress API +func CreateAllocateEipAddressRequest() (request *AllocateEipAddressRequest) { + request = &AllocateEipAddressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "AllocateEipAddress", "vpc", "openAPI") + return +} + +// CreateAllocateEipAddressResponse creates a response to parse from AllocateEipAddress response +func CreateAllocateEipAddressResponse() (response *AllocateEipAddressResponse) { + response = &AllocateEipAddressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/associate_eip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/associate_eip_address.go new file mode 100644 index 0000000..e5def30 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/associate_eip_address.go @@ -0,0 +1,110 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AssociateEipAddress invokes the vpc.AssociateEipAddress API synchronously +// api document: https://help.aliyun.com/api/vpc/associateeipaddress.html +func (client *Client) AssociateEipAddress(request *AssociateEipAddressRequest) (response *AssociateEipAddressResponse, err error) { + response = CreateAssociateEipAddressResponse() + err = client.DoAction(request, response) + return +} + +// AssociateEipAddressWithChan invokes the vpc.AssociateEipAddress API asynchronously +// api document: https://help.aliyun.com/api/vpc/associateeipaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AssociateEipAddressWithChan(request *AssociateEipAddressRequest) (<-chan *AssociateEipAddressResponse, <-chan error) { + responseChan := make(chan *AssociateEipAddressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AssociateEipAddress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AssociateEipAddressWithCallback invokes the vpc.AssociateEipAddress API asynchronously +// api document: https://help.aliyun.com/api/vpc/associateeipaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AssociateEipAddressWithCallback(request *AssociateEipAddressRequest, callback func(response *AssociateEipAddressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AssociateEipAddressResponse + var err error + defer close(result) + response, err = client.AssociateEipAddress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AssociateEipAddressRequest is the request struct for api AssociateEipAddress +type AssociateEipAddressRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AllocationId string `position:"Query" name:"AllocationId"` + InstanceId string `position:"Query" name:"InstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + InstanceType string `position:"Query" name:"InstanceType"` + InstanceRegionId string `position:"Query" name:"InstanceRegionId"` +} + +// AssociateEipAddressResponse is the response struct for api AssociateEipAddress +type AssociateEipAddressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAssociateEipAddressRequest creates a request to invoke AssociateEipAddress API +func CreateAssociateEipAddressRequest() (request *AssociateEipAddressRequest) { + request = &AssociateEipAddressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "AssociateEipAddress", "vpc", "openAPI") + return +} + +// CreateAssociateEipAddressResponse creates a response to parse from AssociateEipAddress response +func CreateAssociateEipAddressResponse() (response *AssociateEipAddressResponse) { + response = &AssociateEipAddressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/associate_global_acceleration_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/associate_global_acceleration_instance.go new file mode 100644 index 0000000..468f1c0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/associate_global_acceleration_instance.go @@ -0,0 +1,110 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AssociateGlobalAccelerationInstance invokes the vpc.AssociateGlobalAccelerationInstance API synchronously +// api document: https://help.aliyun.com/api/vpc/associateglobalaccelerationinstance.html +func (client *Client) AssociateGlobalAccelerationInstance(request *AssociateGlobalAccelerationInstanceRequest) (response *AssociateGlobalAccelerationInstanceResponse, err error) { + response = CreateAssociateGlobalAccelerationInstanceResponse() + err = client.DoAction(request, response) + return +} + +// AssociateGlobalAccelerationInstanceWithChan invokes the vpc.AssociateGlobalAccelerationInstance API asynchronously +// api document: https://help.aliyun.com/api/vpc/associateglobalaccelerationinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AssociateGlobalAccelerationInstanceWithChan(request *AssociateGlobalAccelerationInstanceRequest) (<-chan *AssociateGlobalAccelerationInstanceResponse, <-chan error) { + responseChan := make(chan *AssociateGlobalAccelerationInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AssociateGlobalAccelerationInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AssociateGlobalAccelerationInstanceWithCallback invokes the vpc.AssociateGlobalAccelerationInstance API asynchronously +// api document: https://help.aliyun.com/api/vpc/associateglobalaccelerationinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AssociateGlobalAccelerationInstanceWithCallback(request *AssociateGlobalAccelerationInstanceRequest, callback func(response *AssociateGlobalAccelerationInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AssociateGlobalAccelerationInstanceResponse + var err error + defer close(result) + response, err = client.AssociateGlobalAccelerationInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AssociateGlobalAccelerationInstanceRequest is the request struct for api AssociateGlobalAccelerationInstance +type AssociateGlobalAccelerationInstanceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + GlobalAccelerationInstanceId string `position:"Query" name:"GlobalAccelerationInstanceId"` + BackendServerId string `position:"Query" name:"BackendServerId"` + BackendServerRegionId string `position:"Query" name:"BackendServerRegionId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + BackendServerType string `position:"Query" name:"BackendServerType"` +} + +// AssociateGlobalAccelerationInstanceResponse is the response struct for api AssociateGlobalAccelerationInstance +type AssociateGlobalAccelerationInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAssociateGlobalAccelerationInstanceRequest creates a request to invoke AssociateGlobalAccelerationInstance API +func CreateAssociateGlobalAccelerationInstanceRequest() (request *AssociateGlobalAccelerationInstanceRequest) { + request = &AssociateGlobalAccelerationInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "AssociateGlobalAccelerationInstance", "vpc", "openAPI") + return +} + +// CreateAssociateGlobalAccelerationInstanceResponse creates a response to parse from AssociateGlobalAccelerationInstance response +func CreateAssociateGlobalAccelerationInstanceResponse() (response *AssociateGlobalAccelerationInstanceResponse) { + response = &AssociateGlobalAccelerationInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/associate_ha_vip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/associate_ha_vip.go new file mode 100644 index 0000000..0518fe1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/associate_ha_vip.go @@ -0,0 +1,109 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AssociateHaVip invokes the vpc.AssociateHaVip API synchronously +// api document: https://help.aliyun.com/api/vpc/associatehavip.html +func (client *Client) AssociateHaVip(request *AssociateHaVipRequest) (response *AssociateHaVipResponse, err error) { + response = CreateAssociateHaVipResponse() + err = client.DoAction(request, response) + return +} + +// AssociateHaVipWithChan invokes the vpc.AssociateHaVip API asynchronously +// api document: https://help.aliyun.com/api/vpc/associatehavip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AssociateHaVipWithChan(request *AssociateHaVipRequest) (<-chan *AssociateHaVipResponse, <-chan error) { + responseChan := make(chan *AssociateHaVipResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AssociateHaVip(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AssociateHaVipWithCallback invokes the vpc.AssociateHaVip API asynchronously +// api document: https://help.aliyun.com/api/vpc/associatehavip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AssociateHaVipWithCallback(request *AssociateHaVipRequest, callback func(response *AssociateHaVipResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AssociateHaVipResponse + var err error + defer close(result) + response, err = client.AssociateHaVip(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AssociateHaVipRequest is the request struct for api AssociateHaVip +type AssociateHaVipRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + HaVipId string `position:"Query" name:"HaVipId"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// AssociateHaVipResponse is the response struct for api AssociateHaVip +type AssociateHaVipResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAssociateHaVipRequest creates a request to invoke AssociateHaVip API +func CreateAssociateHaVipRequest() (request *AssociateHaVipRequest) { + request = &AssociateHaVipRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "AssociateHaVip", "vpc", "openAPI") + return +} + +// CreateAssociateHaVipResponse creates a response to parse from AssociateHaVip response +func CreateAssociateHaVipResponse() (response *AssociateHaVipResponse) { + response = &AssociateHaVipResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/associate_physical_connection_to_virtual_border_router.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/associate_physical_connection_to_virtual_border_router.go new file mode 100644 index 0000000..0420bd7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/associate_physical_connection_to_virtual_border_router.go @@ -0,0 +1,114 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AssociatePhysicalConnectionToVirtualBorderRouter invokes the vpc.AssociatePhysicalConnectionToVirtualBorderRouter API synchronously +// api document: https://help.aliyun.com/api/vpc/associatephysicalconnectiontovirtualborderrouter.html +func (client *Client) AssociatePhysicalConnectionToVirtualBorderRouter(request *AssociatePhysicalConnectionToVirtualBorderRouterRequest) (response *AssociatePhysicalConnectionToVirtualBorderRouterResponse, err error) { + response = CreateAssociatePhysicalConnectionToVirtualBorderRouterResponse() + err = client.DoAction(request, response) + return +} + +// AssociatePhysicalConnectionToVirtualBorderRouterWithChan invokes the vpc.AssociatePhysicalConnectionToVirtualBorderRouter API asynchronously +// api document: https://help.aliyun.com/api/vpc/associatephysicalconnectiontovirtualborderrouter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AssociatePhysicalConnectionToVirtualBorderRouterWithChan(request *AssociatePhysicalConnectionToVirtualBorderRouterRequest) (<-chan *AssociatePhysicalConnectionToVirtualBorderRouterResponse, <-chan error) { + responseChan := make(chan *AssociatePhysicalConnectionToVirtualBorderRouterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AssociatePhysicalConnectionToVirtualBorderRouter(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AssociatePhysicalConnectionToVirtualBorderRouterWithCallback invokes the vpc.AssociatePhysicalConnectionToVirtualBorderRouter API asynchronously +// api document: https://help.aliyun.com/api/vpc/associatephysicalconnectiontovirtualborderrouter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AssociatePhysicalConnectionToVirtualBorderRouterWithCallback(request *AssociatePhysicalConnectionToVirtualBorderRouterRequest, callback func(response *AssociatePhysicalConnectionToVirtualBorderRouterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AssociatePhysicalConnectionToVirtualBorderRouterResponse + var err error + defer close(result) + response, err = client.AssociatePhysicalConnectionToVirtualBorderRouter(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AssociatePhysicalConnectionToVirtualBorderRouterRequest is the request struct for api AssociatePhysicalConnectionToVirtualBorderRouter +type AssociatePhysicalConnectionToVirtualBorderRouterRequest struct { + *requests.RpcRequest + VbrId string `position:"Query" name:"VbrId"` + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` + VlanId string `position:"Query" name:"VlanId"` + CircuitCode string `position:"Query" name:"CircuitCode"` + LocalGatewayIp string `position:"Query" name:"LocalGatewayIp"` + PeerGatewayIp string `position:"Query" name:"PeerGatewayIp"` + PeeringSubnetMask string `position:"Query" name:"PeeringSubnetMask"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// AssociatePhysicalConnectionToVirtualBorderRouterResponse is the response struct for api AssociatePhysicalConnectionToVirtualBorderRouter +type AssociatePhysicalConnectionToVirtualBorderRouterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAssociatePhysicalConnectionToVirtualBorderRouterRequest creates a request to invoke AssociatePhysicalConnectionToVirtualBorderRouter API +func CreateAssociatePhysicalConnectionToVirtualBorderRouterRequest() (request *AssociatePhysicalConnectionToVirtualBorderRouterRequest) { + request = &AssociatePhysicalConnectionToVirtualBorderRouterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "AssociatePhysicalConnectionToVirtualBorderRouter", "vpc", "openAPI") + return +} + +// CreateAssociatePhysicalConnectionToVirtualBorderRouterResponse creates a response to parse from AssociatePhysicalConnectionToVirtualBorderRouter response +func CreateAssociatePhysicalConnectionToVirtualBorderRouterResponse() (response *AssociatePhysicalConnectionToVirtualBorderRouterResponse) { + response = &AssociatePhysicalConnectionToVirtualBorderRouterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/cancel_physical_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/cancel_physical_connection.go new file mode 100644 index 0000000..0848139 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/cancel_physical_connection.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CancelPhysicalConnection invokes the vpc.CancelPhysicalConnection API synchronously +// api document: https://help.aliyun.com/api/vpc/cancelphysicalconnection.html +func (client *Client) CancelPhysicalConnection(request *CancelPhysicalConnectionRequest) (response *CancelPhysicalConnectionResponse, err error) { + response = CreateCancelPhysicalConnectionResponse() + err = client.DoAction(request, response) + return +} + +// CancelPhysicalConnectionWithChan invokes the vpc.CancelPhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/vpc/cancelphysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelPhysicalConnectionWithChan(request *CancelPhysicalConnectionRequest) (<-chan *CancelPhysicalConnectionResponse, <-chan error) { + responseChan := make(chan *CancelPhysicalConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CancelPhysicalConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CancelPhysicalConnectionWithCallback invokes the vpc.CancelPhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/vpc/cancelphysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CancelPhysicalConnectionWithCallback(request *CancelPhysicalConnectionRequest, callback func(response *CancelPhysicalConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CancelPhysicalConnectionResponse + var err error + defer close(result) + response, err = client.CancelPhysicalConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CancelPhysicalConnectionRequest is the request struct for api CancelPhysicalConnection +type CancelPhysicalConnectionRequest struct { + *requests.RpcRequest + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// CancelPhysicalConnectionResponse is the response struct for api CancelPhysicalConnection +type CancelPhysicalConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCancelPhysicalConnectionRequest creates a request to invoke CancelPhysicalConnection API +func CreateCancelPhysicalConnectionRequest() (request *CancelPhysicalConnectionRequest) { + request = &CancelPhysicalConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CancelPhysicalConnection", "vpc", "openAPI") + return +} + +// CreateCancelPhysicalConnectionResponse creates a response to parse from CancelPhysicalConnection response +func CreateCancelPhysicalConnectionResponse() (response *CancelPhysicalConnectionResponse) { + response = &CancelPhysicalConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/client.go new file mode 100644 index 0000000..7065624 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/client.go @@ -0,0 +1,81 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + 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) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://help.aliyun.com/document_detail/66217.html +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://help.aliyun.com/document_detail/66222.html +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://help.aliyun.com/document_detail/66223.html +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// attention: rsa key pair auth is only Japan regions available +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/connect_router_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/connect_router_interface.go new file mode 100644 index 0000000..af32f7d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/connect_router_interface.go @@ -0,0 +1,106 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ConnectRouterInterface invokes the vpc.ConnectRouterInterface API synchronously +// api document: https://help.aliyun.com/api/vpc/connectrouterinterface.html +func (client *Client) ConnectRouterInterface(request *ConnectRouterInterfaceRequest) (response *ConnectRouterInterfaceResponse, err error) { + response = CreateConnectRouterInterfaceResponse() + err = client.DoAction(request, response) + return +} + +// ConnectRouterInterfaceWithChan invokes the vpc.ConnectRouterInterface API asynchronously +// api document: https://help.aliyun.com/api/vpc/connectrouterinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ConnectRouterInterfaceWithChan(request *ConnectRouterInterfaceRequest) (<-chan *ConnectRouterInterfaceResponse, <-chan error) { + responseChan := make(chan *ConnectRouterInterfaceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ConnectRouterInterface(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ConnectRouterInterfaceWithCallback invokes the vpc.ConnectRouterInterface API asynchronously +// api document: https://help.aliyun.com/api/vpc/connectrouterinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ConnectRouterInterfaceWithCallback(request *ConnectRouterInterfaceRequest, callback func(response *ConnectRouterInterfaceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ConnectRouterInterfaceResponse + var err error + defer close(result) + response, err = client.ConnectRouterInterface(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ConnectRouterInterfaceRequest is the request struct for api ConnectRouterInterface +type ConnectRouterInterfaceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + RouterInterfaceId string `position:"Query" name:"RouterInterfaceId"` +} + +// ConnectRouterInterfaceResponse is the response struct for api ConnectRouterInterface +type ConnectRouterInterfaceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateConnectRouterInterfaceRequest creates a request to invoke ConnectRouterInterface API +func CreateConnectRouterInterfaceRequest() (request *ConnectRouterInterfaceRequest) { + request = &ConnectRouterInterfaceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ConnectRouterInterface", "vpc", "openAPI") + return +} + +// CreateConnectRouterInterfaceResponse creates a response to parse from ConnectRouterInterface response +func CreateConnectRouterInterfaceResponse() (response *ConnectRouterInterfaceResponse) { + response = &ConnectRouterInterfaceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_bandwidth_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_bandwidth_package.go new file mode 100644 index 0000000..bb22c1f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_bandwidth_package.go @@ -0,0 +1,116 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateBandwidthPackage invokes the vpc.CreateBandwidthPackage API synchronously +// api document: https://help.aliyun.com/api/vpc/createbandwidthpackage.html +func (client *Client) CreateBandwidthPackage(request *CreateBandwidthPackageRequest) (response *CreateBandwidthPackageResponse, err error) { + response = CreateCreateBandwidthPackageResponse() + err = client.DoAction(request, response) + return +} + +// CreateBandwidthPackageWithChan invokes the vpc.CreateBandwidthPackage API asynchronously +// api document: https://help.aliyun.com/api/vpc/createbandwidthpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateBandwidthPackageWithChan(request *CreateBandwidthPackageRequest) (<-chan *CreateBandwidthPackageResponse, <-chan error) { + responseChan := make(chan *CreateBandwidthPackageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateBandwidthPackage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateBandwidthPackageWithCallback invokes the vpc.CreateBandwidthPackage API asynchronously +// api document: https://help.aliyun.com/api/vpc/createbandwidthpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateBandwidthPackageWithCallback(request *CreateBandwidthPackageRequest, callback func(response *CreateBandwidthPackageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateBandwidthPackageResponse + var err error + defer close(result) + response, err = client.CreateBandwidthPackage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateBandwidthPackageRequest is the request struct for api CreateBandwidthPackage +type CreateBandwidthPackageRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + NatGatewayId string `position:"Query" name:"NatGatewayId"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` + ClientToken string `position:"Query" name:"ClientToken"` + IpCount requests.Integer `position:"Query" name:"IpCount"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + ISP string `position:"Query" name:"ISP"` + Zone string `position:"Query" name:"Zone"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` +} + +// CreateBandwidthPackageResponse is the response struct for api CreateBandwidthPackage +type CreateBandwidthPackageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + BandwidthPackageId string `json:"BandwidthPackageId" xml:"BandwidthPackageId"` +} + +// CreateCreateBandwidthPackageRequest creates a request to invoke CreateBandwidthPackage API +func CreateCreateBandwidthPackageRequest() (request *CreateBandwidthPackageRequest) { + request = &CreateBandwidthPackageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateBandwidthPackage", "vpc", "openAPI") + return +} + +// CreateCreateBandwidthPackageResponse creates a response to parse from CreateBandwidthPackage response +func CreateCreateBandwidthPackageResponse() (response *CreateBandwidthPackageResponse) { + response = &CreateBandwidthPackageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_bgp_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_bgp_group.go new file mode 100644 index 0000000..2b28765 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_bgp_group.go @@ -0,0 +1,114 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateBgpGroup invokes the vpc.CreateBgpGroup API synchronously +// api document: https://help.aliyun.com/api/vpc/createbgpgroup.html +func (client *Client) CreateBgpGroup(request *CreateBgpGroupRequest) (response *CreateBgpGroupResponse, err error) { + response = CreateCreateBgpGroupResponse() + err = client.DoAction(request, response) + return +} + +// CreateBgpGroupWithChan invokes the vpc.CreateBgpGroup API asynchronously +// api document: https://help.aliyun.com/api/vpc/createbgpgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateBgpGroupWithChan(request *CreateBgpGroupRequest) (<-chan *CreateBgpGroupResponse, <-chan error) { + responseChan := make(chan *CreateBgpGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateBgpGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateBgpGroupWithCallback invokes the vpc.CreateBgpGroup API asynchronously +// api document: https://help.aliyun.com/api/vpc/createbgpgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateBgpGroupWithCallback(request *CreateBgpGroupRequest, callback func(response *CreateBgpGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateBgpGroupResponse + var err error + defer close(result) + response, err = client.CreateBgpGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateBgpGroupRequest is the request struct for api CreateBgpGroup +type CreateBgpGroupRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + RouterId string `position:"Query" name:"RouterId"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` + PeerAsn requests.Integer `position:"Query" name:"PeerAsn"` + AuthKey string `position:"Query" name:"AuthKey"` + IsFakeAsn requests.Boolean `position:"Query" name:"IsFakeAsn"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// CreateBgpGroupResponse is the response struct for api CreateBgpGroup +type CreateBgpGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + BgpGroupId string `json:"BgpGroupId" xml:"BgpGroupId"` +} + +// CreateCreateBgpGroupRequest creates a request to invoke CreateBgpGroup API +func CreateCreateBgpGroupRequest() (request *CreateBgpGroupRequest) { + request = &CreateBgpGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateBgpGroup", "vpc", "openAPI") + return +} + +// CreateCreateBgpGroupResponse creates a response to parse from CreateBgpGroup response +func CreateCreateBgpGroupResponse() (response *CreateBgpGroupResponse) { + response = &CreateBgpGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_bgp_peer.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_bgp_peer.go new file mode 100644 index 0000000..65dd68f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_bgp_peer.go @@ -0,0 +1,110 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateBgpPeer invokes the vpc.CreateBgpPeer API synchronously +// api document: https://help.aliyun.com/api/vpc/createbgppeer.html +func (client *Client) CreateBgpPeer(request *CreateBgpPeerRequest) (response *CreateBgpPeerResponse, err error) { + response = CreateCreateBgpPeerResponse() + err = client.DoAction(request, response) + return +} + +// CreateBgpPeerWithChan invokes the vpc.CreateBgpPeer API asynchronously +// api document: https://help.aliyun.com/api/vpc/createbgppeer.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateBgpPeerWithChan(request *CreateBgpPeerRequest) (<-chan *CreateBgpPeerResponse, <-chan error) { + responseChan := make(chan *CreateBgpPeerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateBgpPeer(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateBgpPeerWithCallback invokes the vpc.CreateBgpPeer API asynchronously +// api document: https://help.aliyun.com/api/vpc/createbgppeer.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateBgpPeerWithCallback(request *CreateBgpPeerRequest, callback func(response *CreateBgpPeerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateBgpPeerResponse + var err error + defer close(result) + response, err = client.CreateBgpPeer(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateBgpPeerRequest is the request struct for api CreateBgpPeer +type CreateBgpPeerRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + BgpGroupId string `position:"Query" name:"BgpGroupId"` + PeerIpAddress string `position:"Query" name:"PeerIpAddress"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// CreateBgpPeerResponse is the response struct for api CreateBgpPeer +type CreateBgpPeerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + BgpPeerId string `json:"BgpPeerId" xml:"BgpPeerId"` +} + +// CreateCreateBgpPeerRequest creates a request to invoke CreateBgpPeer API +func CreateCreateBgpPeerRequest() (request *CreateBgpPeerRequest) { + request = &CreateBgpPeerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateBgpPeer", "vpc", "openAPI") + return +} + +// CreateCreateBgpPeerResponse creates a response to parse from CreateBgpPeer response +func CreateCreateBgpPeerResponse() (response *CreateBgpPeerResponse) { + response = &CreateBgpPeerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_common_bandwidth_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_common_bandwidth_package.go new file mode 100644 index 0000000..c26d184 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_common_bandwidth_package.go @@ -0,0 +1,113 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateCommonBandwidthPackage invokes the vpc.CreateCommonBandwidthPackage API synchronously +// api document: https://help.aliyun.com/api/vpc/createcommonbandwidthpackage.html +func (client *Client) CreateCommonBandwidthPackage(request *CreateCommonBandwidthPackageRequest) (response *CreateCommonBandwidthPackageResponse, err error) { + response = CreateCreateCommonBandwidthPackageResponse() + err = client.DoAction(request, response) + return +} + +// CreateCommonBandwidthPackageWithChan invokes the vpc.CreateCommonBandwidthPackage API asynchronously +// api document: https://help.aliyun.com/api/vpc/createcommonbandwidthpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateCommonBandwidthPackageWithChan(request *CreateCommonBandwidthPackageRequest) (<-chan *CreateCommonBandwidthPackageResponse, <-chan error) { + responseChan := make(chan *CreateCommonBandwidthPackageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateCommonBandwidthPackage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateCommonBandwidthPackageWithCallback invokes the vpc.CreateCommonBandwidthPackage API asynchronously +// api document: https://help.aliyun.com/api/vpc/createcommonbandwidthpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateCommonBandwidthPackageWithCallback(request *CreateCommonBandwidthPackageRequest, callback func(response *CreateCommonBandwidthPackageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateCommonBandwidthPackageResponse + var err error + defer close(result) + response, err = client.CreateCommonBandwidthPackage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateCommonBandwidthPackageRequest is the request struct for api CreateCommonBandwidthPackage +type CreateCommonBandwidthPackageRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` + ClientToken string `position:"Query" name:"ClientToken"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + Ratio requests.Integer `position:"Query" name:"Ratio"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` +} + +// CreateCommonBandwidthPackageResponse is the response struct for api CreateCommonBandwidthPackage +type CreateCommonBandwidthPackageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + BandwidthPackageId string `json:"BandwidthPackageId" xml:"BandwidthPackageId"` +} + +// CreateCreateCommonBandwidthPackageRequest creates a request to invoke CreateCommonBandwidthPackage API +func CreateCreateCommonBandwidthPackageRequest() (request *CreateCommonBandwidthPackageRequest) { + request = &CreateCommonBandwidthPackageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateCommonBandwidthPackage", "vpc", "openAPI") + return +} + +// CreateCreateCommonBandwidthPackageResponse creates a response to parse from CreateCommonBandwidthPackage response +func CreateCreateCommonBandwidthPackageResponse() (response *CreateCommonBandwidthPackageResponse) { + response = &CreateCommonBandwidthPackageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_customer_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_customer_gateway.go new file mode 100644 index 0000000..a78b440 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_customer_gateway.go @@ -0,0 +1,115 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateCustomerGateway invokes the vpc.CreateCustomerGateway API synchronously +// api document: https://help.aliyun.com/api/vpc/createcustomergateway.html +func (client *Client) CreateCustomerGateway(request *CreateCustomerGatewayRequest) (response *CreateCustomerGatewayResponse, err error) { + response = CreateCreateCustomerGatewayResponse() + err = client.DoAction(request, response) + return +} + +// CreateCustomerGatewayWithChan invokes the vpc.CreateCustomerGateway API asynchronously +// api document: https://help.aliyun.com/api/vpc/createcustomergateway.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateCustomerGatewayWithChan(request *CreateCustomerGatewayRequest) (<-chan *CreateCustomerGatewayResponse, <-chan error) { + responseChan := make(chan *CreateCustomerGatewayResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateCustomerGateway(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateCustomerGatewayWithCallback invokes the vpc.CreateCustomerGateway API asynchronously +// api document: https://help.aliyun.com/api/vpc/createcustomergateway.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateCustomerGatewayWithCallback(request *CreateCustomerGatewayRequest, callback func(response *CreateCustomerGatewayResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateCustomerGatewayResponse + var err error + defer close(result) + response, err = client.CreateCustomerGateway(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateCustomerGatewayRequest is the request struct for api CreateCustomerGateway +type CreateCustomerGatewayRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + IpAddress string `position:"Query" name:"IpAddress"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` +} + +// CreateCustomerGatewayResponse is the response struct for api CreateCustomerGateway +type CreateCustomerGatewayResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CustomerGatewayId string `json:"CustomerGatewayId" xml:"CustomerGatewayId"` + IpAddress string `json:"IpAddress" xml:"IpAddress"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` +} + +// CreateCreateCustomerGatewayRequest creates a request to invoke CreateCustomerGateway API +func CreateCreateCustomerGatewayRequest() (request *CreateCustomerGatewayRequest) { + request = &CreateCustomerGatewayRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateCustomerGateway", "vpc", "openAPI") + return +} + +// CreateCreateCustomerGatewayResponse creates a response to parse from CreateCustomerGateway response +func CreateCreateCustomerGatewayResponse() (response *CreateCustomerGatewayResponse) { + response = &CreateCustomerGatewayResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_forward_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_forward_entry.go new file mode 100644 index 0000000..588e59a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_forward_entry.go @@ -0,0 +1,113 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateForwardEntry invokes the vpc.CreateForwardEntry API synchronously +// api document: https://help.aliyun.com/api/vpc/createforwardentry.html +func (client *Client) CreateForwardEntry(request *CreateForwardEntryRequest) (response *CreateForwardEntryResponse, err error) { + response = CreateCreateForwardEntryResponse() + err = client.DoAction(request, response) + return +} + +// CreateForwardEntryWithChan invokes the vpc.CreateForwardEntry API asynchronously +// api document: https://help.aliyun.com/api/vpc/createforwardentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateForwardEntryWithChan(request *CreateForwardEntryRequest) (<-chan *CreateForwardEntryResponse, <-chan error) { + responseChan := make(chan *CreateForwardEntryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateForwardEntry(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateForwardEntryWithCallback invokes the vpc.CreateForwardEntry API asynchronously +// api document: https://help.aliyun.com/api/vpc/createforwardentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateForwardEntryWithCallback(request *CreateForwardEntryRequest, callback func(response *CreateForwardEntryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateForwardEntryResponse + var err error + defer close(result) + response, err = client.CreateForwardEntry(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateForwardEntryRequest is the request struct for api CreateForwardEntry +type CreateForwardEntryRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ForwardTableId string `position:"Query" name:"ForwardTableId"` + ExternalIp string `position:"Query" name:"ExternalIp"` + ExternalPort string `position:"Query" name:"ExternalPort"` + InternalIp string `position:"Query" name:"InternalIp"` + InternalPort string `position:"Query" name:"InternalPort"` + IpProtocol string `position:"Query" name:"IpProtocol"` +} + +// CreateForwardEntryResponse is the response struct for api CreateForwardEntry +type CreateForwardEntryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ForwardEntryId string `json:"ForwardEntryId" xml:"ForwardEntryId"` +} + +// CreateCreateForwardEntryRequest creates a request to invoke CreateForwardEntry API +func CreateCreateForwardEntryRequest() (request *CreateForwardEntryRequest) { + request = &CreateForwardEntryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateForwardEntry", "vpc", "openAPI") + return +} + +// CreateCreateForwardEntryResponse creates a response to parse from CreateForwardEntry response +func CreateCreateForwardEntryResponse() (response *CreateForwardEntryResponse) { + response = &CreateForwardEntryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_global_acceleration_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_global_acceleration_instance.go new file mode 100644 index 0000000..879ef14 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_global_acceleration_instance.go @@ -0,0 +1,115 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateGlobalAccelerationInstance invokes the vpc.CreateGlobalAccelerationInstance API synchronously +// api document: https://help.aliyun.com/api/vpc/createglobalaccelerationinstance.html +func (client *Client) CreateGlobalAccelerationInstance(request *CreateGlobalAccelerationInstanceRequest) (response *CreateGlobalAccelerationInstanceResponse, err error) { + response = CreateCreateGlobalAccelerationInstanceResponse() + err = client.DoAction(request, response) + return +} + +// CreateGlobalAccelerationInstanceWithChan invokes the vpc.CreateGlobalAccelerationInstance API asynchronously +// api document: https://help.aliyun.com/api/vpc/createglobalaccelerationinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateGlobalAccelerationInstanceWithChan(request *CreateGlobalAccelerationInstanceRequest) (<-chan *CreateGlobalAccelerationInstanceResponse, <-chan error) { + responseChan := make(chan *CreateGlobalAccelerationInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateGlobalAccelerationInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateGlobalAccelerationInstanceWithCallback invokes the vpc.CreateGlobalAccelerationInstance API asynchronously +// api document: https://help.aliyun.com/api/vpc/createglobalaccelerationinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateGlobalAccelerationInstanceWithCallback(request *CreateGlobalAccelerationInstanceRequest, callback func(response *CreateGlobalAccelerationInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateGlobalAccelerationInstanceResponse + var err error + defer close(result) + response, err = client.CreateGlobalAccelerationInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateGlobalAccelerationInstanceRequest is the request struct for api CreateGlobalAccelerationInstance +type CreateGlobalAccelerationInstanceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ServiceLocation string `position:"Query" name:"ServiceLocation"` + Bandwidth string `position:"Query" name:"Bandwidth"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + BandwidthType string `position:"Query" name:"BandwidthType"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` +} + +// CreateGlobalAccelerationInstanceResponse is the response struct for api CreateGlobalAccelerationInstance +type CreateGlobalAccelerationInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + GlobalAccelerationInstanceId string `json:"GlobalAccelerationInstanceId" xml:"GlobalAccelerationInstanceId"` + IpAddress string `json:"IpAddress" xml:"IpAddress"` +} + +// CreateCreateGlobalAccelerationInstanceRequest creates a request to invoke CreateGlobalAccelerationInstance API +func CreateCreateGlobalAccelerationInstanceRequest() (request *CreateGlobalAccelerationInstanceRequest) { + request = &CreateGlobalAccelerationInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateGlobalAccelerationInstance", "vpc", "openAPI") + return +} + +// CreateCreateGlobalAccelerationInstanceResponse creates a response to parse from CreateGlobalAccelerationInstance response +func CreateCreateGlobalAccelerationInstanceResponse() (response *CreateGlobalAccelerationInstanceResponse) { + response = &CreateGlobalAccelerationInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_ha_vip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_ha_vip.go new file mode 100644 index 0000000..b5df2d4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_ha_vip.go @@ -0,0 +1,111 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateHaVip invokes the vpc.CreateHaVip API synchronously +// api document: https://help.aliyun.com/api/vpc/createhavip.html +func (client *Client) CreateHaVip(request *CreateHaVipRequest) (response *CreateHaVipResponse, err error) { + response = CreateCreateHaVipResponse() + err = client.DoAction(request, response) + return +} + +// CreateHaVipWithChan invokes the vpc.CreateHaVip API asynchronously +// api document: https://help.aliyun.com/api/vpc/createhavip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateHaVipWithChan(request *CreateHaVipRequest) (<-chan *CreateHaVipResponse, <-chan error) { + responseChan := make(chan *CreateHaVipResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateHaVip(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateHaVipWithCallback invokes the vpc.CreateHaVip API asynchronously +// api document: https://help.aliyun.com/api/vpc/createhavip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateHaVipWithCallback(request *CreateHaVipRequest, callback func(response *CreateHaVipResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateHaVipResponse + var err error + defer close(result) + response, err = client.CreateHaVip(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateHaVipRequest is the request struct for api CreateHaVip +type CreateHaVipRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + VSwitchId string `position:"Query" name:"VSwitchId"` + IpAddress string `position:"Query" name:"IpAddress"` + Description string `position:"Query" name:"Description"` +} + +// CreateHaVipResponse is the response struct for api CreateHaVip +type CreateHaVipResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + HaVipId string `json:"HaVipId" xml:"HaVipId"` +} + +// CreateCreateHaVipRequest creates a request to invoke CreateHaVip API +func CreateCreateHaVipRequest() (request *CreateHaVipRequest) { + request = &CreateHaVipRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateHaVip", "vpc", "openAPI") + return +} + +// CreateCreateHaVipResponse creates a response to parse from CreateHaVip response +func CreateCreateHaVipResponse() (response *CreateHaVipResponse) { + response = &CreateHaVipResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_nat_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_nat_gateway.go new file mode 100644 index 0000000..04a57ec --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_nat_gateway.go @@ -0,0 +1,125 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateNatGateway invokes the vpc.CreateNatGateway API synchronously +// api document: https://help.aliyun.com/api/vpc/createnatgateway.html +func (client *Client) CreateNatGateway(request *CreateNatGatewayRequest) (response *CreateNatGatewayResponse, err error) { + response = CreateCreateNatGatewayResponse() + err = client.DoAction(request, response) + return +} + +// CreateNatGatewayWithChan invokes the vpc.CreateNatGateway API asynchronously +// api document: https://help.aliyun.com/api/vpc/createnatgateway.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateNatGatewayWithChan(request *CreateNatGatewayRequest) (<-chan *CreateNatGatewayResponse, <-chan error) { + responseChan := make(chan *CreateNatGatewayResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateNatGateway(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateNatGatewayWithCallback invokes the vpc.CreateNatGateway API asynchronously +// api document: https://help.aliyun.com/api/vpc/createnatgateway.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateNatGatewayWithCallback(request *CreateNatGatewayRequest, callback func(response *CreateNatGatewayResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateNatGatewayResponse + var err error + defer close(result) + response, err = client.CreateNatGateway(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateNatGatewayRequest is the request struct for api CreateNatGateway +type CreateNatGatewayRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + VpcId string `position:"Query" name:"VpcId"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` + ClientToken string `position:"Query" name:"ClientToken"` + Spec string `position:"Query" name:"Spec"` + BandwidthPackage *[]CreateNatGatewayBandwidthPackage `position:"Query" name:"BandwidthPackage" type:"Repeated"` +} + +// CreateNatGatewayBandwidthPackage is a repeated param struct in CreateNatGatewayRequest +type CreateNatGatewayBandwidthPackage struct { + IpCount string `name:"IpCount"` + Bandwidth string `name:"Bandwidth"` + Zone string `name:"Zone"` + ISP string `name:"ISP"` + InternetChargeType string `name:"InternetChargeType"` +} + +// CreateNatGatewayResponse is the response struct for api CreateNatGateway +type CreateNatGatewayResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` + ForwardTableIds ForwardTableIdsInCreateNatGateway `json:"ForwardTableIds" xml:"ForwardTableIds"` + SnatTableIds SnatTableIdsInCreateNatGateway `json:"SnatTableIds" xml:"SnatTableIds"` + BandwidthPackageIds BandwidthPackageIdsInCreateNatGateway `json:"BandwidthPackageIds" xml:"BandwidthPackageIds"` +} + +// CreateCreateNatGatewayRequest creates a request to invoke CreateNatGateway API +func CreateCreateNatGatewayRequest() (request *CreateNatGatewayRequest) { + request = &CreateNatGatewayRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateNatGateway", "vpc", "openAPI") + return +} + +// CreateCreateNatGatewayResponse creates a response to parse from CreateNatGateway response +func CreateCreateNatGatewayResponse() (response *CreateNatGatewayResponse) { + response = &CreateNatGatewayResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_nqa.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_nqa.go new file mode 100644 index 0000000..c2ebb0d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_nqa.go @@ -0,0 +1,110 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateNqa invokes the vpc.CreateNqa API synchronously +// api document: https://help.aliyun.com/api/vpc/createnqa.html +func (client *Client) CreateNqa(request *CreateNqaRequest) (response *CreateNqaResponse, err error) { + response = CreateCreateNqaResponse() + err = client.DoAction(request, response) + return +} + +// CreateNqaWithChan invokes the vpc.CreateNqa API asynchronously +// api document: https://help.aliyun.com/api/vpc/createnqa.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateNqaWithChan(request *CreateNqaRequest) (<-chan *CreateNqaResponse, <-chan error) { + responseChan := make(chan *CreateNqaResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateNqa(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateNqaWithCallback invokes the vpc.CreateNqa API asynchronously +// api document: https://help.aliyun.com/api/vpc/createnqa.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateNqaWithCallback(request *CreateNqaRequest, callback func(response *CreateNqaResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateNqaResponse + var err error + defer close(result) + response, err = client.CreateNqa(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateNqaRequest is the request struct for api CreateNqa +type CreateNqaRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DestinationIp string `position:"Query" name:"DestinationIp"` + RouterId string `position:"Query" name:"RouterId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// CreateNqaResponse is the response struct for api CreateNqa +type CreateNqaResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NqaId string `json:"NqaId" xml:"NqaId"` +} + +// CreateCreateNqaRequest creates a request to invoke CreateNqa API +func CreateCreateNqaRequest() (request *CreateNqaRequest) { + request = &CreateNqaRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateNqa", "vpc", "openAPI") + return +} + +// CreateCreateNqaResponse creates a response to parse from CreateNqa response +func CreateCreateNqaResponse() (response *CreateNqaResponse) { + response = &CreateNqaResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_physical_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_physical_connection.go new file mode 100644 index 0000000..4222e47 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_physical_connection.go @@ -0,0 +1,118 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreatePhysicalConnection invokes the vpc.CreatePhysicalConnection API synchronously +// api document: https://help.aliyun.com/api/vpc/createphysicalconnection.html +func (client *Client) CreatePhysicalConnection(request *CreatePhysicalConnectionRequest) (response *CreatePhysicalConnectionResponse, err error) { + response = CreateCreatePhysicalConnectionResponse() + err = client.DoAction(request, response) + return +} + +// CreatePhysicalConnectionWithChan invokes the vpc.CreatePhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/vpc/createphysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreatePhysicalConnectionWithChan(request *CreatePhysicalConnectionRequest) (<-chan *CreatePhysicalConnectionResponse, <-chan error) { + responseChan := make(chan *CreatePhysicalConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreatePhysicalConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreatePhysicalConnectionWithCallback invokes the vpc.CreatePhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/vpc/createphysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreatePhysicalConnectionWithCallback(request *CreatePhysicalConnectionRequest, callback func(response *CreatePhysicalConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreatePhysicalConnectionResponse + var err error + defer close(result) + response, err = client.CreatePhysicalConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreatePhysicalConnectionRequest is the request struct for api CreatePhysicalConnection +type CreatePhysicalConnectionRequest struct { + *requests.RpcRequest + AccessPointId string `position:"Query" name:"AccessPointId"` + Type string `position:"Query" name:"Type"` + LineOperator string `position:"Query" name:"LineOperator"` + Bandwidth requests.Integer `position:"Query" name:"bandwidth"` + PeerLocation string `position:"Query" name:"PeerLocation"` + PortType string `position:"Query" name:"PortType"` + RedundantPhysicalConnectionId string `position:"Query" name:"RedundantPhysicalConnectionId"` + Description string `position:"Query" name:"Description"` + Name string `position:"Query" name:"Name"` + CircuitCode string `position:"Query" name:"CircuitCode"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// CreatePhysicalConnectionResponse is the response struct for api CreatePhysicalConnection +type CreatePhysicalConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` +} + +// CreateCreatePhysicalConnectionRequest creates a request to invoke CreatePhysicalConnection API +func CreateCreatePhysicalConnectionRequest() (request *CreatePhysicalConnectionRequest) { + request = &CreatePhysicalConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreatePhysicalConnection", "vpc", "openAPI") + return +} + +// CreateCreatePhysicalConnectionResponse creates a response to parse from CreatePhysicalConnection response +func CreateCreatePhysicalConnectionResponse() (response *CreatePhysicalConnectionResponse) { + response = &CreatePhysicalConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_physical_connection_new.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_physical_connection_new.go new file mode 100644 index 0000000..42b9912 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_physical_connection_new.go @@ -0,0 +1,120 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreatePhysicalConnectionNew invokes the vpc.CreatePhysicalConnectionNew API synchronously +// api document: https://help.aliyun.com/api/vpc/createphysicalconnectionnew.html +func (client *Client) CreatePhysicalConnectionNew(request *CreatePhysicalConnectionNewRequest) (response *CreatePhysicalConnectionNewResponse, err error) { + response = CreateCreatePhysicalConnectionNewResponse() + err = client.DoAction(request, response) + return +} + +// CreatePhysicalConnectionNewWithChan invokes the vpc.CreatePhysicalConnectionNew API asynchronously +// api document: https://help.aliyun.com/api/vpc/createphysicalconnectionnew.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreatePhysicalConnectionNewWithChan(request *CreatePhysicalConnectionNewRequest) (<-chan *CreatePhysicalConnectionNewResponse, <-chan error) { + responseChan := make(chan *CreatePhysicalConnectionNewResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreatePhysicalConnectionNew(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreatePhysicalConnectionNewWithCallback invokes the vpc.CreatePhysicalConnectionNew API asynchronously +// api document: https://help.aliyun.com/api/vpc/createphysicalconnectionnew.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreatePhysicalConnectionNewWithCallback(request *CreatePhysicalConnectionNewRequest, callback func(response *CreatePhysicalConnectionNewResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreatePhysicalConnectionNewResponse + var err error + defer close(result) + response, err = client.CreatePhysicalConnectionNew(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreatePhysicalConnectionNewRequest is the request struct for api CreatePhysicalConnectionNew +type CreatePhysicalConnectionNewRequest struct { + *requests.RpcRequest + AccessPointId string `position:"Query" name:"AccessPointId"` + Type string `position:"Query" name:"Type"` + LineOperator string `position:"Query" name:"LineOperator"` + Bandwidth requests.Integer `position:"Query" name:"bandwidth"` + PeerLocation string `position:"Query" name:"PeerLocation"` + PortType string `position:"Query" name:"PortType"` + RedundantPhysicalConnectionId string `position:"Query" name:"RedundantPhysicalConnectionId"` + Description string `position:"Query" name:"Description"` + Name string `position:"Query" name:"Name"` + CircuitCode string `position:"Query" name:"CircuitCode"` + ClientToken string `position:"Query" name:"ClientToken"` + DeviceName string `position:"Query" name:"DeviceName"` + InterfaceName string `position:"Query" name:"InterfaceName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// CreatePhysicalConnectionNewResponse is the response struct for api CreatePhysicalConnectionNew +type CreatePhysicalConnectionNewResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` +} + +// CreateCreatePhysicalConnectionNewRequest creates a request to invoke CreatePhysicalConnectionNew API +func CreateCreatePhysicalConnectionNewRequest() (request *CreatePhysicalConnectionNewRequest) { + request = &CreatePhysicalConnectionNewRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreatePhysicalConnectionNew", "vpc", "openAPI") + return +} + +// CreateCreatePhysicalConnectionNewResponse creates a response to parse from CreatePhysicalConnectionNew response +func CreateCreatePhysicalConnectionNewResponse() (response *CreatePhysicalConnectionNewResponse) { + response = &CreatePhysicalConnectionNewResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_route_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_route_entry.go new file mode 100644 index 0000000..a0560fd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_route_entry.go @@ -0,0 +1,119 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateRouteEntry invokes the vpc.CreateRouteEntry API synchronously +// api document: https://help.aliyun.com/api/vpc/createrouteentry.html +func (client *Client) CreateRouteEntry(request *CreateRouteEntryRequest) (response *CreateRouteEntryResponse, err error) { + response = CreateCreateRouteEntryResponse() + err = client.DoAction(request, response) + return +} + +// CreateRouteEntryWithChan invokes the vpc.CreateRouteEntry API asynchronously +// api document: https://help.aliyun.com/api/vpc/createrouteentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateRouteEntryWithChan(request *CreateRouteEntryRequest) (<-chan *CreateRouteEntryResponse, <-chan error) { + responseChan := make(chan *CreateRouteEntryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateRouteEntry(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateRouteEntryWithCallback invokes the vpc.CreateRouteEntry API asynchronously +// api document: https://help.aliyun.com/api/vpc/createrouteentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateRouteEntryWithCallback(request *CreateRouteEntryRequest, callback func(response *CreateRouteEntryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateRouteEntryResponse + var err error + defer close(result) + response, err = client.CreateRouteEntry(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateRouteEntryRequest is the request struct for api CreateRouteEntry +type CreateRouteEntryRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + RouteTableId string `position:"Query" name:"RouteTableId"` + DestinationCidrBlock string `position:"Query" name:"DestinationCidrBlock"` + NextHopId string `position:"Query" name:"NextHopId"` + ClientToken string `position:"Query" name:"ClientToken"` + NextHopType string `position:"Query" name:"NextHopType"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + NextHopList *[]CreateRouteEntryNextHopList `position:"Query" name:"NextHopList" type:"Repeated"` +} + +// CreateRouteEntryNextHopList is a repeated param struct in CreateRouteEntryRequest +type CreateRouteEntryNextHopList struct { + NextHopType string `name:"NextHopType"` + NextHopId string `name:"NextHopId"` + Weight string `name:"Weight"` +} + +// CreateRouteEntryResponse is the response struct for api CreateRouteEntry +type CreateRouteEntryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateRouteEntryRequest creates a request to invoke CreateRouteEntry API +func CreateCreateRouteEntryRequest() (request *CreateRouteEntryRequest) { + request = &CreateRouteEntryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateRouteEntry", "vpc", "openAPI") + return +} + +// CreateCreateRouteEntryResponse creates a response to parse from CreateRouteEntry response +func CreateCreateRouteEntryResponse() (response *CreateRouteEntryResponse) { + response = &CreateRouteEntryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_router_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_router_interface.go new file mode 100644 index 0000000..3d589d2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_router_interface.go @@ -0,0 +1,123 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateRouterInterface invokes the vpc.CreateRouterInterface API synchronously +// api document: https://help.aliyun.com/api/vpc/createrouterinterface.html +func (client *Client) CreateRouterInterface(request *CreateRouterInterfaceRequest) (response *CreateRouterInterfaceResponse, err error) { + response = CreateCreateRouterInterfaceResponse() + err = client.DoAction(request, response) + return +} + +// CreateRouterInterfaceWithChan invokes the vpc.CreateRouterInterface API asynchronously +// api document: https://help.aliyun.com/api/vpc/createrouterinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateRouterInterfaceWithChan(request *CreateRouterInterfaceRequest) (<-chan *CreateRouterInterfaceResponse, <-chan error) { + responseChan := make(chan *CreateRouterInterfaceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateRouterInterface(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateRouterInterfaceWithCallback invokes the vpc.CreateRouterInterface API asynchronously +// api document: https://help.aliyun.com/api/vpc/createrouterinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateRouterInterfaceWithCallback(request *CreateRouterInterfaceRequest, callback func(response *CreateRouterInterfaceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateRouterInterfaceResponse + var err error + defer close(result) + response, err = client.CreateRouterInterface(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateRouterInterfaceRequest is the request struct for api CreateRouterInterface +type CreateRouterInterfaceRequest struct { + *requests.RpcRequest + Role string `position:"Query" name:"Role"` + OppositeRegionId string `position:"Query" name:"OppositeRegionId"` + Spec string `position:"Query" name:"Spec"` + RouterType string `position:"Query" name:"RouterType"` + RouterId string `position:"Query" name:"RouterId"` + OppositeInterfaceId string `position:"Query" name:"OppositeInterfaceId"` + OppositeRouterId string `position:"Query" name:"OppositeRouterId"` + OppositeRouterType string `position:"Query" name:"OppositeRouterType"` + OppositeInterfaceOwnerId string `position:"Query" name:"OppositeInterfaceOwnerId"` + HealthCheckSourceIp string `position:"Query" name:"HealthCheckSourceIp"` + HealthCheckTargetIp string `position:"Query" name:"HealthCheckTargetIp"` + AccessPointId string `position:"Query" name:"AccessPointId"` + OppositeAccessPointId string `position:"Query" name:"OppositeAccessPointId"` + Description string `position:"Query" name:"Description"` + Name string `position:"Query" name:"Name"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// CreateRouterInterfaceResponse is the response struct for api CreateRouterInterface +type CreateRouterInterfaceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RouterInterfaceId string `json:"RouterInterfaceId" xml:"RouterInterfaceId"` +} + +// CreateCreateRouterInterfaceRequest creates a request to invoke CreateRouterInterface API +func CreateCreateRouterInterfaceRequest() (request *CreateRouterInterfaceRequest) { + request = &CreateRouterInterfaceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateRouterInterface", "vpc", "openAPI") + return +} + +// CreateCreateRouterInterfaceResponse creates a response to parse from CreateRouterInterface response +func CreateCreateRouterInterfaceResponse() (response *CreateRouterInterfaceResponse) { + response = &CreateRouterInterfaceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_snat_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_snat_entry.go new file mode 100644 index 0000000..2123272 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_snat_entry.go @@ -0,0 +1,111 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateSnatEntry invokes the vpc.CreateSnatEntry API synchronously +// api document: https://help.aliyun.com/api/vpc/createsnatentry.html +func (client *Client) CreateSnatEntry(request *CreateSnatEntryRequest) (response *CreateSnatEntryResponse, err error) { + response = CreateCreateSnatEntryResponse() + err = client.DoAction(request, response) + return +} + +// CreateSnatEntryWithChan invokes the vpc.CreateSnatEntry API asynchronously +// api document: https://help.aliyun.com/api/vpc/createsnatentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSnatEntryWithChan(request *CreateSnatEntryRequest) (<-chan *CreateSnatEntryResponse, <-chan error) { + responseChan := make(chan *CreateSnatEntryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateSnatEntry(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateSnatEntryWithCallback invokes the vpc.CreateSnatEntry API asynchronously +// api document: https://help.aliyun.com/api/vpc/createsnatentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSnatEntryWithCallback(request *CreateSnatEntryRequest, callback func(response *CreateSnatEntryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateSnatEntryResponse + var err error + defer close(result) + response, err = client.CreateSnatEntry(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateSnatEntryRequest is the request struct for api CreateSnatEntry +type CreateSnatEntryRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SnatTableId string `position:"Query" name:"SnatTableId"` + SourceVSwitchId string `position:"Query" name:"SourceVSwitchId"` + SourceCIDR string `position:"Query" name:"SourceCIDR"` + SnatIp string `position:"Query" name:"SnatIp"` +} + +// CreateSnatEntryResponse is the response struct for api CreateSnatEntry +type CreateSnatEntryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SnatEntryId string `json:"SnatEntryId" xml:"SnatEntryId"` +} + +// CreateCreateSnatEntryRequest creates a request to invoke CreateSnatEntry API +func CreateCreateSnatEntryRequest() (request *CreateSnatEntryRequest) { + request = &CreateSnatEntryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateSnatEntry", "vpc", "openAPI") + return +} + +// CreateCreateSnatEntryResponse creates a response to parse from CreateSnatEntry response +func CreateCreateSnatEntryResponse() (response *CreateSnatEntryResponse) { + response = &CreateSnatEntryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_ssl_vpn_client_cert.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_ssl_vpn_client_cert.go new file mode 100644 index 0000000..73cc1ad --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_ssl_vpn_client_cert.go @@ -0,0 +1,111 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateSslVpnClientCert invokes the vpc.CreateSslVpnClientCert API synchronously +// api document: https://help.aliyun.com/api/vpc/createsslvpnclientcert.html +func (client *Client) CreateSslVpnClientCert(request *CreateSslVpnClientCertRequest) (response *CreateSslVpnClientCertResponse, err error) { + response = CreateCreateSslVpnClientCertResponse() + err = client.DoAction(request, response) + return +} + +// CreateSslVpnClientCertWithChan invokes the vpc.CreateSslVpnClientCert API asynchronously +// api document: https://help.aliyun.com/api/vpc/createsslvpnclientcert.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSslVpnClientCertWithChan(request *CreateSslVpnClientCertRequest) (<-chan *CreateSslVpnClientCertResponse, <-chan error) { + responseChan := make(chan *CreateSslVpnClientCertResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateSslVpnClientCert(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateSslVpnClientCertWithCallback invokes the vpc.CreateSslVpnClientCert API asynchronously +// api document: https://help.aliyun.com/api/vpc/createsslvpnclientcert.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSslVpnClientCertWithCallback(request *CreateSslVpnClientCertRequest, callback func(response *CreateSslVpnClientCertResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateSslVpnClientCertResponse + var err error + defer close(result) + response, err = client.CreateSslVpnClientCert(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateSslVpnClientCertRequest is the request struct for api CreateSslVpnClientCert +type CreateSslVpnClientCertRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + SslVpnServerId string `position:"Query" name:"SslVpnServerId"` + Name string `position:"Query" name:"Name"` +} + +// CreateSslVpnClientCertResponse is the response struct for api CreateSslVpnClientCert +type CreateSslVpnClientCertResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Name string `json:"Name" xml:"Name"` + SslVpnClientCertId string `json:"SslVpnClientCertId" xml:"SslVpnClientCertId"` +} + +// CreateCreateSslVpnClientCertRequest creates a request to invoke CreateSslVpnClientCert API +func CreateCreateSslVpnClientCertRequest() (request *CreateSslVpnClientCertRequest) { + request = &CreateSslVpnClientCertRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateSslVpnClientCert", "vpc", "openAPI") + return +} + +// CreateCreateSslVpnClientCertResponse creates a response to parse from CreateSslVpnClientCert response +func CreateCreateSslVpnClientCertResponse() (response *CreateSslVpnClientCertResponse) { + response = &CreateSslVpnClientCertResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_ssl_vpn_server.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_ssl_vpn_server.go new file mode 100644 index 0000000..0ceeb3b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_ssl_vpn_server.go @@ -0,0 +1,117 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateSslVpnServer invokes the vpc.CreateSslVpnServer API synchronously +// api document: https://help.aliyun.com/api/vpc/createsslvpnserver.html +func (client *Client) CreateSslVpnServer(request *CreateSslVpnServerRequest) (response *CreateSslVpnServerResponse, err error) { + response = CreateCreateSslVpnServerResponse() + err = client.DoAction(request, response) + return +} + +// CreateSslVpnServerWithChan invokes the vpc.CreateSslVpnServer API asynchronously +// api document: https://help.aliyun.com/api/vpc/createsslvpnserver.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSslVpnServerWithChan(request *CreateSslVpnServerRequest) (<-chan *CreateSslVpnServerResponse, <-chan error) { + responseChan := make(chan *CreateSslVpnServerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateSslVpnServer(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateSslVpnServerWithCallback invokes the vpc.CreateSslVpnServer API asynchronously +// api document: https://help.aliyun.com/api/vpc/createsslvpnserver.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateSslVpnServerWithCallback(request *CreateSslVpnServerRequest, callback func(response *CreateSslVpnServerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateSslVpnServerResponse + var err error + defer close(result) + response, err = client.CreateSslVpnServer(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateSslVpnServerRequest is the request struct for api CreateSslVpnServer +type CreateSslVpnServerRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + VpnGatewayId string `position:"Query" name:"VpnGatewayId"` + Name string `position:"Query" name:"Name"` + ClientIpPool string `position:"Query" name:"ClientIpPool"` + LocalSubnet string `position:"Query" name:"LocalSubnet"` + Proto string `position:"Query" name:"Proto"` + Cipher string `position:"Query" name:"Cipher"` + Port requests.Integer `position:"Query" name:"Port"` + Compress requests.Boolean `position:"Query" name:"Compress"` +} + +// CreateSslVpnServerResponse is the response struct for api CreateSslVpnServer +type CreateSslVpnServerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SslVpnServerId string `json:"SslVpnServerId" xml:"SslVpnServerId"` + Name string `json:"Name" xml:"Name"` +} + +// CreateCreateSslVpnServerRequest creates a request to invoke CreateSslVpnServer API +func CreateCreateSslVpnServerRequest() (request *CreateSslVpnServerRequest) { + request = &CreateSslVpnServerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateSslVpnServer", "vpc", "openAPI") + return +} + +// CreateCreateSslVpnServerResponse creates a response to parse from CreateSslVpnServer response +func CreateCreateSslVpnServerResponse() (response *CreateSslVpnServerResponse) { + response = &CreateSslVpnServerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_v_switch.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_v_switch.go new file mode 100644 index 0000000..b8e39ba --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_v_switch.go @@ -0,0 +1,113 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateVSwitch invokes the vpc.CreateVSwitch API synchronously +// api document: https://help.aliyun.com/api/vpc/createvswitch.html +func (client *Client) CreateVSwitch(request *CreateVSwitchRequest) (response *CreateVSwitchResponse, err error) { + response = CreateCreateVSwitchResponse() + err = client.DoAction(request, response) + return +} + +// CreateVSwitchWithChan invokes the vpc.CreateVSwitch API asynchronously +// api document: https://help.aliyun.com/api/vpc/createvswitch.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVSwitchWithChan(request *CreateVSwitchRequest) (<-chan *CreateVSwitchResponse, <-chan error) { + responseChan := make(chan *CreateVSwitchResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateVSwitch(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateVSwitchWithCallback invokes the vpc.CreateVSwitch API asynchronously +// api document: https://help.aliyun.com/api/vpc/createvswitch.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVSwitchWithCallback(request *CreateVSwitchRequest, callback func(response *CreateVSwitchResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateVSwitchResponse + var err error + defer close(result) + response, err = client.CreateVSwitch(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateVSwitchRequest is the request struct for api CreateVSwitch +type CreateVSwitchRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ZoneId string `position:"Query" name:"ZoneId"` + CidrBlock string `position:"Query" name:"CidrBlock"` + VpcId string `position:"Query" name:"VpcId"` + VSwitchName string `position:"Query" name:"VSwitchName"` + Description string `position:"Query" name:"Description"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// CreateVSwitchResponse is the response struct for api CreateVSwitch +type CreateVSwitchResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` +} + +// CreateCreateVSwitchRequest creates a request to invoke CreateVSwitch API +func CreateCreateVSwitchRequest() (request *CreateVSwitchRequest) { + request = &CreateVSwitchRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateVSwitch", "vpc", "openAPI") + return +} + +// CreateCreateVSwitchResponse creates a response to parse from CreateVSwitch response +func CreateCreateVSwitchResponse() (response *CreateVSwitchResponse) { + response = &CreateVSwitchResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_virtual_border_router.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_virtual_border_router.go new file mode 100644 index 0000000..418d67a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_virtual_border_router.go @@ -0,0 +1,117 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateVirtualBorderRouter invokes the vpc.CreateVirtualBorderRouter API synchronously +// api document: https://help.aliyun.com/api/vpc/createvirtualborderrouter.html +func (client *Client) CreateVirtualBorderRouter(request *CreateVirtualBorderRouterRequest) (response *CreateVirtualBorderRouterResponse, err error) { + response = CreateCreateVirtualBorderRouterResponse() + err = client.DoAction(request, response) + return +} + +// CreateVirtualBorderRouterWithChan invokes the vpc.CreateVirtualBorderRouter API asynchronously +// api document: https://help.aliyun.com/api/vpc/createvirtualborderrouter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVirtualBorderRouterWithChan(request *CreateVirtualBorderRouterRequest) (<-chan *CreateVirtualBorderRouterResponse, <-chan error) { + responseChan := make(chan *CreateVirtualBorderRouterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateVirtualBorderRouter(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateVirtualBorderRouterWithCallback invokes the vpc.CreateVirtualBorderRouter API asynchronously +// api document: https://help.aliyun.com/api/vpc/createvirtualborderrouter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVirtualBorderRouterWithCallback(request *CreateVirtualBorderRouterRequest, callback func(response *CreateVirtualBorderRouterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateVirtualBorderRouterResponse + var err error + defer close(result) + response, err = client.CreateVirtualBorderRouter(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateVirtualBorderRouterRequest is the request struct for api CreateVirtualBorderRouter +type CreateVirtualBorderRouterRequest struct { + *requests.RpcRequest + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` + VbrOwnerId requests.Integer `position:"Query" name:"VbrOwnerId"` + VlanId requests.Integer `position:"Query" name:"VlanId"` + CircuitCode string `position:"Query" name:"CircuitCode"` + LocalGatewayIp string `position:"Query" name:"LocalGatewayIp"` + PeerGatewayIp string `position:"Query" name:"PeerGatewayIp"` + PeeringSubnetMask string `position:"Query" name:"PeeringSubnetMask"` + Description string `position:"Query" name:"Description"` + Name string `position:"Query" name:"Name"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// CreateVirtualBorderRouterResponse is the response struct for api CreateVirtualBorderRouter +type CreateVirtualBorderRouterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VbrId string `json:"VbrId" xml:"VbrId"` +} + +// CreateCreateVirtualBorderRouterRequest creates a request to invoke CreateVirtualBorderRouter API +func CreateCreateVirtualBorderRouterRequest() (request *CreateVirtualBorderRouterRequest) { + request = &CreateVirtualBorderRouterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateVirtualBorderRouter", "vpc", "openAPI") + return +} + +// CreateCreateVirtualBorderRouterResponse creates a response to parse from CreateVirtualBorderRouter response +func CreateCreateVirtualBorderRouterResponse() (response *CreateVirtualBorderRouterResponse) { + response = &CreateVirtualBorderRouterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_vpc.go new file mode 100644 index 0000000..f524faf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_vpc.go @@ -0,0 +1,116 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateVpc invokes the vpc.CreateVpc API synchronously +// api document: https://help.aliyun.com/api/vpc/createvpc.html +func (client *Client) CreateVpc(request *CreateVpcRequest) (response *CreateVpcResponse, err error) { + response = CreateCreateVpcResponse() + err = client.DoAction(request, response) + return +} + +// CreateVpcWithChan invokes the vpc.CreateVpc API asynchronously +// api document: https://help.aliyun.com/api/vpc/createvpc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVpcWithChan(request *CreateVpcRequest) (<-chan *CreateVpcResponse, <-chan error) { + responseChan := make(chan *CreateVpcResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateVpc(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateVpcWithCallback invokes the vpc.CreateVpc API asynchronously +// api document: https://help.aliyun.com/api/vpc/createvpc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVpcWithCallback(request *CreateVpcRequest, callback func(response *CreateVpcResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateVpcResponse + var err error + defer close(result) + response, err = client.CreateVpc(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateVpcRequest is the request struct for api CreateVpc +type CreateVpcRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CidrBlock string `position:"Query" name:"CidrBlock"` + VpcName string `position:"Query" name:"VpcName"` + Description string `position:"Query" name:"Description"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + UserCidr string `position:"Query" name:"UserCidr"` +} + +// CreateVpcResponse is the response struct for api CreateVpc +type CreateVpcResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VpcId string `json:"VpcId" xml:"VpcId"` + VRouterId string `json:"VRouterId" xml:"VRouterId"` + RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` +} + +// CreateCreateVpcRequest creates a request to invoke CreateVpc API +func CreateCreateVpcRequest() (request *CreateVpcRequest) { + request = &CreateVpcRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateVpc", "vpc", "openAPI") + return +} + +// CreateCreateVpcResponse creates a response to parse from CreateVpc response +func CreateCreateVpcResponse() (response *CreateVpcResponse) { + response = &CreateVpcResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_vpn_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_vpn_connection.go new file mode 100644 index 0000000..2171c3d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/create_vpn_connection.go @@ -0,0 +1,118 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateVpnConnection invokes the vpc.CreateVpnConnection API synchronously +// api document: https://help.aliyun.com/api/vpc/createvpnconnection.html +func (client *Client) CreateVpnConnection(request *CreateVpnConnectionRequest) (response *CreateVpnConnectionResponse, err error) { + response = CreateCreateVpnConnectionResponse() + err = client.DoAction(request, response) + return +} + +// CreateVpnConnectionWithChan invokes the vpc.CreateVpnConnection API asynchronously +// api document: https://help.aliyun.com/api/vpc/createvpnconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVpnConnectionWithChan(request *CreateVpnConnectionRequest) (<-chan *CreateVpnConnectionResponse, <-chan error) { + responseChan := make(chan *CreateVpnConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateVpnConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateVpnConnectionWithCallback invokes the vpc.CreateVpnConnection API asynchronously +// api document: https://help.aliyun.com/api/vpc/createvpnconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVpnConnectionWithCallback(request *CreateVpnConnectionRequest, callback func(response *CreateVpnConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateVpnConnectionResponse + var err error + defer close(result) + response, err = client.CreateVpnConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateVpnConnectionRequest is the request struct for api CreateVpnConnection +type CreateVpnConnectionRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + CustomerGatewayId string `position:"Query" name:"CustomerGatewayId"` + VpnGatewayId string `position:"Query" name:"VpnGatewayId"` + Name string `position:"Query" name:"Name"` + LocalSubnet string `position:"Query" name:"LocalSubnet"` + RemoteSubnet string `position:"Query" name:"RemoteSubnet"` + EffectImmediately requests.Boolean `position:"Query" name:"EffectImmediately"` + IkeConfig string `position:"Query" name:"IkeConfig"` + IpsecConfig string `position:"Query" name:"IpsecConfig"` +} + +// CreateVpnConnectionResponse is the response struct for api CreateVpnConnection +type CreateVpnConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VpnConnectionId string `json:"VpnConnectionId" xml:"VpnConnectionId"` + Name string `json:"Name" xml:"Name"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` +} + +// CreateCreateVpnConnectionRequest creates a request to invoke CreateVpnConnection API +func CreateCreateVpnConnectionRequest() (request *CreateVpnConnectionRequest) { + request = &CreateVpnConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateVpnConnection", "vpc", "openAPI") + return +} + +// CreateCreateVpnConnectionResponse creates a response to parse from CreateVpnConnection response +func CreateCreateVpnConnectionResponse() (response *CreateVpnConnectionResponse) { + response = &CreateVpnConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/deactivate_router_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/deactivate_router_interface.go new file mode 100644 index 0000000..16d390f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/deactivate_router_interface.go @@ -0,0 +1,106 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeactivateRouterInterface invokes the vpc.DeactivateRouterInterface API synchronously +// api document: https://help.aliyun.com/api/vpc/deactivaterouterinterface.html +func (client *Client) DeactivateRouterInterface(request *DeactivateRouterInterfaceRequest) (response *DeactivateRouterInterfaceResponse, err error) { + response = CreateDeactivateRouterInterfaceResponse() + err = client.DoAction(request, response) + return +} + +// DeactivateRouterInterfaceWithChan invokes the vpc.DeactivateRouterInterface API asynchronously +// api document: https://help.aliyun.com/api/vpc/deactivaterouterinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeactivateRouterInterfaceWithChan(request *DeactivateRouterInterfaceRequest) (<-chan *DeactivateRouterInterfaceResponse, <-chan error) { + responseChan := make(chan *DeactivateRouterInterfaceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeactivateRouterInterface(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeactivateRouterInterfaceWithCallback invokes the vpc.DeactivateRouterInterface API asynchronously +// api document: https://help.aliyun.com/api/vpc/deactivaterouterinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeactivateRouterInterfaceWithCallback(request *DeactivateRouterInterfaceRequest, callback func(response *DeactivateRouterInterfaceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeactivateRouterInterfaceResponse + var err error + defer close(result) + response, err = client.DeactivateRouterInterface(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeactivateRouterInterfaceRequest is the request struct for api DeactivateRouterInterface +type DeactivateRouterInterfaceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + RouterInterfaceId string `position:"Query" name:"RouterInterfaceId"` +} + +// DeactivateRouterInterfaceResponse is the response struct for api DeactivateRouterInterface +type DeactivateRouterInterfaceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeactivateRouterInterfaceRequest creates a request to invoke DeactivateRouterInterface API +func CreateDeactivateRouterInterfaceRequest() (request *DeactivateRouterInterfaceRequest) { + request = &DeactivateRouterInterfaceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeactivateRouterInterface", "vpc", "openAPI") + return +} + +// CreateDeactivateRouterInterfaceResponse creates a response to parse from DeactivateRouterInterface response +func CreateDeactivateRouterInterfaceResponse() (response *DeactivateRouterInterfaceResponse) { + response = &DeactivateRouterInterfaceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_bandwidth_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_bandwidth_package.go new file mode 100644 index 0000000..3a204b6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_bandwidth_package.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteBandwidthPackage invokes the vpc.DeleteBandwidthPackage API synchronously +// api document: https://help.aliyun.com/api/vpc/deletebandwidthpackage.html +func (client *Client) DeleteBandwidthPackage(request *DeleteBandwidthPackageRequest) (response *DeleteBandwidthPackageResponse, err error) { + response = CreateDeleteBandwidthPackageResponse() + err = client.DoAction(request, response) + return +} + +// DeleteBandwidthPackageWithChan invokes the vpc.DeleteBandwidthPackage API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletebandwidthpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteBandwidthPackageWithChan(request *DeleteBandwidthPackageRequest) (<-chan *DeleteBandwidthPackageResponse, <-chan error) { + responseChan := make(chan *DeleteBandwidthPackageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteBandwidthPackage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteBandwidthPackageWithCallback invokes the vpc.DeleteBandwidthPackage API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletebandwidthpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteBandwidthPackageWithCallback(request *DeleteBandwidthPackageRequest, callback func(response *DeleteBandwidthPackageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteBandwidthPackageResponse + var err error + defer close(result) + response, err = client.DeleteBandwidthPackage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteBandwidthPackageRequest is the request struct for api DeleteBandwidthPackage +type DeleteBandwidthPackageRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` + Force requests.Boolean `position:"Query" name:"Force"` +} + +// DeleteBandwidthPackageResponse is the response struct for api DeleteBandwidthPackage +type DeleteBandwidthPackageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteBandwidthPackageRequest creates a request to invoke DeleteBandwidthPackage API +func CreateDeleteBandwidthPackageRequest() (request *DeleteBandwidthPackageRequest) { + request = &DeleteBandwidthPackageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteBandwidthPackage", "vpc", "openAPI") + return +} + +// CreateDeleteBandwidthPackageResponse creates a response to parse from DeleteBandwidthPackage response +func CreateDeleteBandwidthPackageResponse() (response *DeleteBandwidthPackageResponse) { + response = &DeleteBandwidthPackageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_bgp_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_bgp_group.go new file mode 100644 index 0000000..6d8caa7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_bgp_group.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteBgpGroup invokes the vpc.DeleteBgpGroup API synchronously +// api document: https://help.aliyun.com/api/vpc/deletebgpgroup.html +func (client *Client) DeleteBgpGroup(request *DeleteBgpGroupRequest) (response *DeleteBgpGroupResponse, err error) { + response = CreateDeleteBgpGroupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteBgpGroupWithChan invokes the vpc.DeleteBgpGroup API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletebgpgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteBgpGroupWithChan(request *DeleteBgpGroupRequest) (<-chan *DeleteBgpGroupResponse, <-chan error) { + responseChan := make(chan *DeleteBgpGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteBgpGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteBgpGroupWithCallback invokes the vpc.DeleteBgpGroup API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletebgpgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteBgpGroupWithCallback(request *DeleteBgpGroupRequest, callback func(response *DeleteBgpGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteBgpGroupResponse + var err error + defer close(result) + response, err = client.DeleteBgpGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteBgpGroupRequest is the request struct for api DeleteBgpGroup +type DeleteBgpGroupRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + BgpGroupId string `position:"Query" name:"BgpGroupId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DeleteBgpGroupResponse is the response struct for api DeleteBgpGroup +type DeleteBgpGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteBgpGroupRequest creates a request to invoke DeleteBgpGroup API +func CreateDeleteBgpGroupRequest() (request *DeleteBgpGroupRequest) { + request = &DeleteBgpGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteBgpGroup", "vpc", "openAPI") + return +} + +// CreateDeleteBgpGroupResponse creates a response to parse from DeleteBgpGroup response +func CreateDeleteBgpGroupResponse() (response *DeleteBgpGroupResponse) { + response = &DeleteBgpGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_bgp_network.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_bgp_network.go new file mode 100644 index 0000000..7e70e21 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_bgp_network.go @@ -0,0 +1,109 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteBgpNetwork invokes the vpc.DeleteBgpNetwork API synchronously +// api document: https://help.aliyun.com/api/vpc/deletebgpnetwork.html +func (client *Client) DeleteBgpNetwork(request *DeleteBgpNetworkRequest) (response *DeleteBgpNetworkResponse, err error) { + response = CreateDeleteBgpNetworkResponse() + err = client.DoAction(request, response) + return +} + +// DeleteBgpNetworkWithChan invokes the vpc.DeleteBgpNetwork API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletebgpnetwork.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteBgpNetworkWithChan(request *DeleteBgpNetworkRequest) (<-chan *DeleteBgpNetworkResponse, <-chan error) { + responseChan := make(chan *DeleteBgpNetworkResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteBgpNetwork(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteBgpNetworkWithCallback invokes the vpc.DeleteBgpNetwork API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletebgpnetwork.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteBgpNetworkWithCallback(request *DeleteBgpNetworkRequest, callback func(response *DeleteBgpNetworkResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteBgpNetworkResponse + var err error + defer close(result) + response, err = client.DeleteBgpNetwork(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteBgpNetworkRequest is the request struct for api DeleteBgpNetwork +type DeleteBgpNetworkRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DstCidrBlock string `position:"Query" name:"DstCidrBlock"` + RouterId string `position:"Query" name:"RouterId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DeleteBgpNetworkResponse is the response struct for api DeleteBgpNetwork +type DeleteBgpNetworkResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteBgpNetworkRequest creates a request to invoke DeleteBgpNetwork API +func CreateDeleteBgpNetworkRequest() (request *DeleteBgpNetworkRequest) { + request = &DeleteBgpNetworkRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteBgpNetwork", "vpc", "openAPI") + return +} + +// CreateDeleteBgpNetworkResponse creates a response to parse from DeleteBgpNetwork response +func CreateDeleteBgpNetworkResponse() (response *DeleteBgpNetworkResponse) { + response = &DeleteBgpNetworkResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_bgp_peer.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_bgp_peer.go new file mode 100644 index 0000000..e7975ec --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_bgp_peer.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteBgpPeer invokes the vpc.DeleteBgpPeer API synchronously +// api document: https://help.aliyun.com/api/vpc/deletebgppeer.html +func (client *Client) DeleteBgpPeer(request *DeleteBgpPeerRequest) (response *DeleteBgpPeerResponse, err error) { + response = CreateDeleteBgpPeerResponse() + err = client.DoAction(request, response) + return +} + +// DeleteBgpPeerWithChan invokes the vpc.DeleteBgpPeer API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletebgppeer.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteBgpPeerWithChan(request *DeleteBgpPeerRequest) (<-chan *DeleteBgpPeerResponse, <-chan error) { + responseChan := make(chan *DeleteBgpPeerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteBgpPeer(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteBgpPeerWithCallback invokes the vpc.DeleteBgpPeer API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletebgppeer.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteBgpPeerWithCallback(request *DeleteBgpPeerRequest, callback func(response *DeleteBgpPeerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteBgpPeerResponse + var err error + defer close(result) + response, err = client.DeleteBgpPeer(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteBgpPeerRequest is the request struct for api DeleteBgpPeer +type DeleteBgpPeerRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + BgpPeerId string `position:"Query" name:"BgpPeerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DeleteBgpPeerResponse is the response struct for api DeleteBgpPeer +type DeleteBgpPeerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteBgpPeerRequest creates a request to invoke DeleteBgpPeer API +func CreateDeleteBgpPeerRequest() (request *DeleteBgpPeerRequest) { + request = &DeleteBgpPeerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteBgpPeer", "vpc", "openAPI") + return +} + +// CreateDeleteBgpPeerResponse creates a response to parse from DeleteBgpPeer response +func CreateDeleteBgpPeerResponse() (response *DeleteBgpPeerResponse) { + response = &DeleteBgpPeerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_common_bandwidth_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_common_bandwidth_package.go new file mode 100644 index 0000000..6b7cadb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_common_bandwidth_package.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCommonBandwidthPackage invokes the vpc.DeleteCommonBandwidthPackage API synchronously +// api document: https://help.aliyun.com/api/vpc/deletecommonbandwidthpackage.html +func (client *Client) DeleteCommonBandwidthPackage(request *DeleteCommonBandwidthPackageRequest) (response *DeleteCommonBandwidthPackageResponse, err error) { + response = CreateDeleteCommonBandwidthPackageResponse() + err = client.DoAction(request, response) + return +} + +// DeleteCommonBandwidthPackageWithChan invokes the vpc.DeleteCommonBandwidthPackage API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletecommonbandwidthpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCommonBandwidthPackageWithChan(request *DeleteCommonBandwidthPackageRequest) (<-chan *DeleteCommonBandwidthPackageResponse, <-chan error) { + responseChan := make(chan *DeleteCommonBandwidthPackageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCommonBandwidthPackage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteCommonBandwidthPackageWithCallback invokes the vpc.DeleteCommonBandwidthPackage API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletecommonbandwidthpackage.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCommonBandwidthPackageWithCallback(request *DeleteCommonBandwidthPackageRequest, callback func(response *DeleteCommonBandwidthPackageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteCommonBandwidthPackageResponse + var err error + defer close(result) + response, err = client.DeleteCommonBandwidthPackage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteCommonBandwidthPackageRequest is the request struct for api DeleteCommonBandwidthPackage +type DeleteCommonBandwidthPackageRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Force string `position:"Query" name:"Force"` + BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` +} + +// DeleteCommonBandwidthPackageResponse is the response struct for api DeleteCommonBandwidthPackage +type DeleteCommonBandwidthPackageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteCommonBandwidthPackageRequest creates a request to invoke DeleteCommonBandwidthPackage API +func CreateDeleteCommonBandwidthPackageRequest() (request *DeleteCommonBandwidthPackageRequest) { + request = &DeleteCommonBandwidthPackageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteCommonBandwidthPackage", "vpc", "openAPI") + return +} + +// CreateDeleteCommonBandwidthPackageResponse creates a response to parse from DeleteCommonBandwidthPackage response +func CreateDeleteCommonBandwidthPackageResponse() (response *DeleteCommonBandwidthPackageResponse) { + response = &DeleteCommonBandwidthPackageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_customer_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_customer_gateway.go new file mode 100644 index 0000000..2d35c7e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_customer_gateway.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteCustomerGateway invokes the vpc.DeleteCustomerGateway API synchronously +// api document: https://help.aliyun.com/api/vpc/deletecustomergateway.html +func (client *Client) DeleteCustomerGateway(request *DeleteCustomerGatewayRequest) (response *DeleteCustomerGatewayResponse, err error) { + response = CreateDeleteCustomerGatewayResponse() + err = client.DoAction(request, response) + return +} + +// DeleteCustomerGatewayWithChan invokes the vpc.DeleteCustomerGateway API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletecustomergateway.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCustomerGatewayWithChan(request *DeleteCustomerGatewayRequest) (<-chan *DeleteCustomerGatewayResponse, <-chan error) { + responseChan := make(chan *DeleteCustomerGatewayResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteCustomerGateway(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteCustomerGatewayWithCallback invokes the vpc.DeleteCustomerGateway API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletecustomergateway.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteCustomerGatewayWithCallback(request *DeleteCustomerGatewayRequest, callback func(response *DeleteCustomerGatewayResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteCustomerGatewayResponse + var err error + defer close(result) + response, err = client.DeleteCustomerGateway(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteCustomerGatewayRequest is the request struct for api DeleteCustomerGateway +type DeleteCustomerGatewayRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + CustomerGatewayId string `position:"Query" name:"CustomerGatewayId"` +} + +// DeleteCustomerGatewayResponse is the response struct for api DeleteCustomerGateway +type DeleteCustomerGatewayResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteCustomerGatewayRequest creates a request to invoke DeleteCustomerGateway API +func CreateDeleteCustomerGatewayRequest() (request *DeleteCustomerGatewayRequest) { + request = &DeleteCustomerGatewayRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteCustomerGateway", "vpc", "openAPI") + return +} + +// CreateDeleteCustomerGatewayResponse creates a response to parse from DeleteCustomerGateway response +func CreateDeleteCustomerGatewayResponse() (response *DeleteCustomerGatewayResponse) { + response = &DeleteCustomerGatewayResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_forward_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_forward_entry.go new file mode 100644 index 0000000..95ef421 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_forward_entry.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteForwardEntry invokes the vpc.DeleteForwardEntry API synchronously +// api document: https://help.aliyun.com/api/vpc/deleteforwardentry.html +func (client *Client) DeleteForwardEntry(request *DeleteForwardEntryRequest) (response *DeleteForwardEntryResponse, err error) { + response = CreateDeleteForwardEntryResponse() + err = client.DoAction(request, response) + return +} + +// DeleteForwardEntryWithChan invokes the vpc.DeleteForwardEntry API asynchronously +// api document: https://help.aliyun.com/api/vpc/deleteforwardentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteForwardEntryWithChan(request *DeleteForwardEntryRequest) (<-chan *DeleteForwardEntryResponse, <-chan error) { + responseChan := make(chan *DeleteForwardEntryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteForwardEntry(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteForwardEntryWithCallback invokes the vpc.DeleteForwardEntry API asynchronously +// api document: https://help.aliyun.com/api/vpc/deleteforwardentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteForwardEntryWithCallback(request *DeleteForwardEntryRequest, callback func(response *DeleteForwardEntryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteForwardEntryResponse + var err error + defer close(result) + response, err = client.DeleteForwardEntry(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteForwardEntryRequest is the request struct for api DeleteForwardEntry +type DeleteForwardEntryRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ForwardTableId string `position:"Query" name:"ForwardTableId"` + ForwardEntryId string `position:"Query" name:"ForwardEntryId"` +} + +// DeleteForwardEntryResponse is the response struct for api DeleteForwardEntry +type DeleteForwardEntryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteForwardEntryRequest creates a request to invoke DeleteForwardEntry API +func CreateDeleteForwardEntryRequest() (request *DeleteForwardEntryRequest) { + request = &DeleteForwardEntryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteForwardEntry", "vpc", "openAPI") + return +} + +// CreateDeleteForwardEntryResponse creates a response to parse from DeleteForwardEntry response +func CreateDeleteForwardEntryResponse() (response *DeleteForwardEntryResponse) { + response = &DeleteForwardEntryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_global_acceleration_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_global_acceleration_instance.go new file mode 100644 index 0000000..cc590f3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_global_acceleration_instance.go @@ -0,0 +1,107 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteGlobalAccelerationInstance invokes the vpc.DeleteGlobalAccelerationInstance API synchronously +// api document: https://help.aliyun.com/api/vpc/deleteglobalaccelerationinstance.html +func (client *Client) DeleteGlobalAccelerationInstance(request *DeleteGlobalAccelerationInstanceRequest) (response *DeleteGlobalAccelerationInstanceResponse, err error) { + response = CreateDeleteGlobalAccelerationInstanceResponse() + err = client.DoAction(request, response) + return +} + +// DeleteGlobalAccelerationInstanceWithChan invokes the vpc.DeleteGlobalAccelerationInstance API asynchronously +// api document: https://help.aliyun.com/api/vpc/deleteglobalaccelerationinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteGlobalAccelerationInstanceWithChan(request *DeleteGlobalAccelerationInstanceRequest) (<-chan *DeleteGlobalAccelerationInstanceResponse, <-chan error) { + responseChan := make(chan *DeleteGlobalAccelerationInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteGlobalAccelerationInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteGlobalAccelerationInstanceWithCallback invokes the vpc.DeleteGlobalAccelerationInstance API asynchronously +// api document: https://help.aliyun.com/api/vpc/deleteglobalaccelerationinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteGlobalAccelerationInstanceWithCallback(request *DeleteGlobalAccelerationInstanceRequest, callback func(response *DeleteGlobalAccelerationInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteGlobalAccelerationInstanceResponse + var err error + defer close(result) + response, err = client.DeleteGlobalAccelerationInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteGlobalAccelerationInstanceRequest is the request struct for api DeleteGlobalAccelerationInstance +type DeleteGlobalAccelerationInstanceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + GlobalAccelerationInstanceId string `position:"Query" name:"GlobalAccelerationInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DeleteGlobalAccelerationInstanceResponse is the response struct for api DeleteGlobalAccelerationInstance +type DeleteGlobalAccelerationInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteGlobalAccelerationInstanceRequest creates a request to invoke DeleteGlobalAccelerationInstance API +func CreateDeleteGlobalAccelerationInstanceRequest() (request *DeleteGlobalAccelerationInstanceRequest) { + request = &DeleteGlobalAccelerationInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteGlobalAccelerationInstance", "vpc", "openAPI") + return +} + +// CreateDeleteGlobalAccelerationInstanceResponse creates a response to parse from DeleteGlobalAccelerationInstance response +func CreateDeleteGlobalAccelerationInstanceResponse() (response *DeleteGlobalAccelerationInstanceResponse) { + response = &DeleteGlobalAccelerationInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_ha_vip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_ha_vip.go new file mode 100644 index 0000000..90de80e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_ha_vip.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteHaVip invokes the vpc.DeleteHaVip API synchronously +// api document: https://help.aliyun.com/api/vpc/deletehavip.html +func (client *Client) DeleteHaVip(request *DeleteHaVipRequest) (response *DeleteHaVipResponse, err error) { + response = CreateDeleteHaVipResponse() + err = client.DoAction(request, response) + return +} + +// DeleteHaVipWithChan invokes the vpc.DeleteHaVip API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletehavip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteHaVipWithChan(request *DeleteHaVipRequest) (<-chan *DeleteHaVipResponse, <-chan error) { + responseChan := make(chan *DeleteHaVipResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteHaVip(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteHaVipWithCallback invokes the vpc.DeleteHaVip API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletehavip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteHaVipWithCallback(request *DeleteHaVipRequest, callback func(response *DeleteHaVipResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteHaVipResponse + var err error + defer close(result) + response, err = client.DeleteHaVip(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteHaVipRequest is the request struct for api DeleteHaVip +type DeleteHaVipRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + HaVipId string `position:"Query" name:"HaVipId"` +} + +// DeleteHaVipResponse is the response struct for api DeleteHaVip +type DeleteHaVipResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteHaVipRequest creates a request to invoke DeleteHaVip API +func CreateDeleteHaVipRequest() (request *DeleteHaVipRequest) { + request = &DeleteHaVipRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteHaVip", "vpc", "openAPI") + return +} + +// CreateDeleteHaVipResponse creates a response to parse from DeleteHaVip response +func CreateDeleteHaVipResponse() (response *DeleteHaVipResponse) { + response = &DeleteHaVipResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_nat_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_nat_gateway.go new file mode 100644 index 0000000..984d690 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_nat_gateway.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteNatGateway invokes the vpc.DeleteNatGateway API synchronously +// api document: https://help.aliyun.com/api/vpc/deletenatgateway.html +func (client *Client) DeleteNatGateway(request *DeleteNatGatewayRequest) (response *DeleteNatGatewayResponse, err error) { + response = CreateDeleteNatGatewayResponse() + err = client.DoAction(request, response) + return +} + +// DeleteNatGatewayWithChan invokes the vpc.DeleteNatGateway API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletenatgateway.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteNatGatewayWithChan(request *DeleteNatGatewayRequest) (<-chan *DeleteNatGatewayResponse, <-chan error) { + responseChan := make(chan *DeleteNatGatewayResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteNatGateway(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteNatGatewayWithCallback invokes the vpc.DeleteNatGateway API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletenatgateway.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteNatGatewayWithCallback(request *DeleteNatGatewayRequest, callback func(response *DeleteNatGatewayResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteNatGatewayResponse + var err error + defer close(result) + response, err = client.DeleteNatGateway(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteNatGatewayRequest is the request struct for api DeleteNatGateway +type DeleteNatGatewayRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + NatGatewayId string `position:"Query" name:"NatGatewayId"` + Force requests.Boolean `position:"Query" name:"Force"` +} + +// DeleteNatGatewayResponse is the response struct for api DeleteNatGateway +type DeleteNatGatewayResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteNatGatewayRequest creates a request to invoke DeleteNatGateway API +func CreateDeleteNatGatewayRequest() (request *DeleteNatGatewayRequest) { + request = &DeleteNatGatewayRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteNatGateway", "vpc", "openAPI") + return +} + +// CreateDeleteNatGatewayResponse creates a response to parse from DeleteNatGateway response +func CreateDeleteNatGatewayResponse() (response *DeleteNatGatewayResponse) { + response = &DeleteNatGatewayResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_nqa.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_nqa.go new file mode 100644 index 0000000..c139e3a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_nqa.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteNqa invokes the vpc.DeleteNqa API synchronously +// api document: https://help.aliyun.com/api/vpc/deletenqa.html +func (client *Client) DeleteNqa(request *DeleteNqaRequest) (response *DeleteNqaResponse, err error) { + response = CreateDeleteNqaResponse() + err = client.DoAction(request, response) + return +} + +// DeleteNqaWithChan invokes the vpc.DeleteNqa API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletenqa.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteNqaWithChan(request *DeleteNqaRequest) (<-chan *DeleteNqaResponse, <-chan error) { + responseChan := make(chan *DeleteNqaResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteNqa(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteNqaWithCallback invokes the vpc.DeleteNqa API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletenqa.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteNqaWithCallback(request *DeleteNqaRequest, callback func(response *DeleteNqaResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteNqaResponse + var err error + defer close(result) + response, err = client.DeleteNqa(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteNqaRequest is the request struct for api DeleteNqa +type DeleteNqaRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + NqaId string `position:"Query" name:"NqaId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DeleteNqaResponse is the response struct for api DeleteNqa +type DeleteNqaResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteNqaRequest creates a request to invoke DeleteNqa API +func CreateDeleteNqaRequest() (request *DeleteNqaRequest) { + request = &DeleteNqaRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteNqa", "vpc", "openAPI") + return +} + +// CreateDeleteNqaResponse creates a response to parse from DeleteNqa response +func CreateDeleteNqaResponse() (response *DeleteNqaResponse) { + response = &DeleteNqaResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_physical_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_physical_connection.go new file mode 100644 index 0000000..5fd68ab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_physical_connection.go @@ -0,0 +1,109 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeletePhysicalConnection invokes the vpc.DeletePhysicalConnection API synchronously +// api document: https://help.aliyun.com/api/vpc/deletephysicalconnection.html +func (client *Client) DeletePhysicalConnection(request *DeletePhysicalConnectionRequest) (response *DeletePhysicalConnectionResponse, err error) { + response = CreateDeletePhysicalConnectionResponse() + err = client.DoAction(request, response) + return +} + +// DeletePhysicalConnectionWithChan invokes the vpc.DeletePhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletephysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeletePhysicalConnectionWithChan(request *DeletePhysicalConnectionRequest) (<-chan *DeletePhysicalConnectionResponse, <-chan error) { + responseChan := make(chan *DeletePhysicalConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeletePhysicalConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeletePhysicalConnectionWithCallback invokes the vpc.DeletePhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletephysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeletePhysicalConnectionWithCallback(request *DeletePhysicalConnectionRequest, callback func(response *DeletePhysicalConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeletePhysicalConnectionResponse + var err error + defer close(result) + response, err = client.DeletePhysicalConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeletePhysicalConnectionRequest is the request struct for api DeletePhysicalConnection +type DeletePhysicalConnectionRequest struct { + *requests.RpcRequest + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + UserCidr string `position:"Query" name:"UserCidr"` +} + +// DeletePhysicalConnectionResponse is the response struct for api DeletePhysicalConnection +type DeletePhysicalConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeletePhysicalConnectionRequest creates a request to invoke DeletePhysicalConnection API +func CreateDeletePhysicalConnectionRequest() (request *DeletePhysicalConnectionRequest) { + request = &DeletePhysicalConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeletePhysicalConnection", "vpc", "openAPI") + return +} + +// CreateDeletePhysicalConnectionResponse creates a response to parse from DeletePhysicalConnection response +func CreateDeletePhysicalConnectionResponse() (response *DeletePhysicalConnectionResponse) { + response = &DeletePhysicalConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_route_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_route_entry.go new file mode 100644 index 0000000..500e597 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_route_entry.go @@ -0,0 +1,116 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteRouteEntry invokes the vpc.DeleteRouteEntry API synchronously +// api document: https://help.aliyun.com/api/vpc/deleterouteentry.html +func (client *Client) DeleteRouteEntry(request *DeleteRouteEntryRequest) (response *DeleteRouteEntryResponse, err error) { + response = CreateDeleteRouteEntryResponse() + err = client.DoAction(request, response) + return +} + +// DeleteRouteEntryWithChan invokes the vpc.DeleteRouteEntry API asynchronously +// api document: https://help.aliyun.com/api/vpc/deleterouteentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteRouteEntryWithChan(request *DeleteRouteEntryRequest) (<-chan *DeleteRouteEntryResponse, <-chan error) { + responseChan := make(chan *DeleteRouteEntryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteRouteEntry(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteRouteEntryWithCallback invokes the vpc.DeleteRouteEntry API asynchronously +// api document: https://help.aliyun.com/api/vpc/deleterouteentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteRouteEntryWithCallback(request *DeleteRouteEntryRequest, callback func(response *DeleteRouteEntryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteRouteEntryResponse + var err error + defer close(result) + response, err = client.DeleteRouteEntry(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteRouteEntryRequest is the request struct for api DeleteRouteEntry +type DeleteRouteEntryRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + RouteTableId string `position:"Query" name:"RouteTableId"` + DestinationCidrBlock string `position:"Query" name:"DestinationCidrBlock"` + NextHopId string `position:"Query" name:"NextHopId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + NextHopList *[]DeleteRouteEntryNextHopList `position:"Query" name:"NextHopList" type:"Repeated"` +} + +// DeleteRouteEntryNextHopList is a repeated param struct in DeleteRouteEntryRequest +type DeleteRouteEntryNextHopList struct { + NextHopType string `name:"NextHopType"` + NextHopId string `name:"NextHopId"` +} + +// DeleteRouteEntryResponse is the response struct for api DeleteRouteEntry +type DeleteRouteEntryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteRouteEntryRequest creates a request to invoke DeleteRouteEntry API +func CreateDeleteRouteEntryRequest() (request *DeleteRouteEntryRequest) { + request = &DeleteRouteEntryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteRouteEntry", "vpc", "openAPI") + return +} + +// CreateDeleteRouteEntryResponse creates a response to parse from DeleteRouteEntry response +func CreateDeleteRouteEntryResponse() (response *DeleteRouteEntryResponse) { + response = &DeleteRouteEntryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_router_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_router_interface.go new file mode 100644 index 0000000..09238ff --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_router_interface.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteRouterInterface invokes the vpc.DeleteRouterInterface API synchronously +// api document: https://help.aliyun.com/api/vpc/deleterouterinterface.html +func (client *Client) DeleteRouterInterface(request *DeleteRouterInterfaceRequest) (response *DeleteRouterInterfaceResponse, err error) { + response = CreateDeleteRouterInterfaceResponse() + err = client.DoAction(request, response) + return +} + +// DeleteRouterInterfaceWithChan invokes the vpc.DeleteRouterInterface API asynchronously +// api document: https://help.aliyun.com/api/vpc/deleterouterinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteRouterInterfaceWithChan(request *DeleteRouterInterfaceRequest) (<-chan *DeleteRouterInterfaceResponse, <-chan error) { + responseChan := make(chan *DeleteRouterInterfaceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteRouterInterface(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteRouterInterfaceWithCallback invokes the vpc.DeleteRouterInterface API asynchronously +// api document: https://help.aliyun.com/api/vpc/deleterouterinterface.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteRouterInterfaceWithCallback(request *DeleteRouterInterfaceRequest, callback func(response *DeleteRouterInterfaceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteRouterInterfaceResponse + var err error + defer close(result) + response, err = client.DeleteRouterInterface(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteRouterInterfaceRequest is the request struct for api DeleteRouterInterface +type DeleteRouterInterfaceRequest struct { + *requests.RpcRequest + RouterInterfaceId string `position:"Query" name:"RouterInterfaceId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DeleteRouterInterfaceResponse is the response struct for api DeleteRouterInterface +type DeleteRouterInterfaceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteRouterInterfaceRequest creates a request to invoke DeleteRouterInterface API +func CreateDeleteRouterInterfaceRequest() (request *DeleteRouterInterfaceRequest) { + request = &DeleteRouterInterfaceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteRouterInterface", "vpc", "openAPI") + return +} + +// CreateDeleteRouterInterfaceResponse creates a response to parse from DeleteRouterInterface response +func CreateDeleteRouterInterfaceResponse() (response *DeleteRouterInterfaceResponse) { + response = &DeleteRouterInterfaceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_snat_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_snat_entry.go new file mode 100644 index 0000000..b1f3fd1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_snat_entry.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteSnatEntry invokes the vpc.DeleteSnatEntry API synchronously +// api document: https://help.aliyun.com/api/vpc/deletesnatentry.html +func (client *Client) DeleteSnatEntry(request *DeleteSnatEntryRequest) (response *DeleteSnatEntryResponse, err error) { + response = CreateDeleteSnatEntryResponse() + err = client.DoAction(request, response) + return +} + +// DeleteSnatEntryWithChan invokes the vpc.DeleteSnatEntry API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletesnatentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSnatEntryWithChan(request *DeleteSnatEntryRequest) (<-chan *DeleteSnatEntryResponse, <-chan error) { + responseChan := make(chan *DeleteSnatEntryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteSnatEntry(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteSnatEntryWithCallback invokes the vpc.DeleteSnatEntry API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletesnatentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSnatEntryWithCallback(request *DeleteSnatEntryRequest, callback func(response *DeleteSnatEntryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteSnatEntryResponse + var err error + defer close(result) + response, err = client.DeleteSnatEntry(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteSnatEntryRequest is the request struct for api DeleteSnatEntry +type DeleteSnatEntryRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SnatTableId string `position:"Query" name:"SnatTableId"` + SnatEntryId string `position:"Query" name:"SnatEntryId"` +} + +// DeleteSnatEntryResponse is the response struct for api DeleteSnatEntry +type DeleteSnatEntryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteSnatEntryRequest creates a request to invoke DeleteSnatEntry API +func CreateDeleteSnatEntryRequest() (request *DeleteSnatEntryRequest) { + request = &DeleteSnatEntryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteSnatEntry", "vpc", "openAPI") + return +} + +// CreateDeleteSnatEntryResponse creates a response to parse from DeleteSnatEntry response +func CreateDeleteSnatEntryResponse() (response *DeleteSnatEntryResponse) { + response = &DeleteSnatEntryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_ssl_vpn_client_cert.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_ssl_vpn_client_cert.go new file mode 100644 index 0000000..a148f3d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_ssl_vpn_client_cert.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteSslVpnClientCert invokes the vpc.DeleteSslVpnClientCert API synchronously +// api document: https://help.aliyun.com/api/vpc/deletesslvpnclientcert.html +func (client *Client) DeleteSslVpnClientCert(request *DeleteSslVpnClientCertRequest) (response *DeleteSslVpnClientCertResponse, err error) { + response = CreateDeleteSslVpnClientCertResponse() + err = client.DoAction(request, response) + return +} + +// DeleteSslVpnClientCertWithChan invokes the vpc.DeleteSslVpnClientCert API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletesslvpnclientcert.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSslVpnClientCertWithChan(request *DeleteSslVpnClientCertRequest) (<-chan *DeleteSslVpnClientCertResponse, <-chan error) { + responseChan := make(chan *DeleteSslVpnClientCertResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteSslVpnClientCert(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteSslVpnClientCertWithCallback invokes the vpc.DeleteSslVpnClientCert API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletesslvpnclientcert.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSslVpnClientCertWithCallback(request *DeleteSslVpnClientCertRequest, callback func(response *DeleteSslVpnClientCertResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteSslVpnClientCertResponse + var err error + defer close(result) + response, err = client.DeleteSslVpnClientCert(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteSslVpnClientCertRequest is the request struct for api DeleteSslVpnClientCert +type DeleteSslVpnClientCertRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + SslVpnClientCertId string `position:"Query" name:"SslVpnClientCertId"` +} + +// DeleteSslVpnClientCertResponse is the response struct for api DeleteSslVpnClientCert +type DeleteSslVpnClientCertResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteSslVpnClientCertRequest creates a request to invoke DeleteSslVpnClientCert API +func CreateDeleteSslVpnClientCertRequest() (request *DeleteSslVpnClientCertRequest) { + request = &DeleteSslVpnClientCertRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteSslVpnClientCert", "vpc", "openAPI") + return +} + +// CreateDeleteSslVpnClientCertResponse creates a response to parse from DeleteSslVpnClientCert response +func CreateDeleteSslVpnClientCertResponse() (response *DeleteSslVpnClientCertResponse) { + response = &DeleteSslVpnClientCertResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_ssl_vpn_server.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_ssl_vpn_server.go new file mode 100644 index 0000000..3f5b5c3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_ssl_vpn_server.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteSslVpnServer invokes the vpc.DeleteSslVpnServer API synchronously +// api document: https://help.aliyun.com/api/vpc/deletesslvpnserver.html +func (client *Client) DeleteSslVpnServer(request *DeleteSslVpnServerRequest) (response *DeleteSslVpnServerResponse, err error) { + response = CreateDeleteSslVpnServerResponse() + err = client.DoAction(request, response) + return +} + +// DeleteSslVpnServerWithChan invokes the vpc.DeleteSslVpnServer API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletesslvpnserver.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSslVpnServerWithChan(request *DeleteSslVpnServerRequest) (<-chan *DeleteSslVpnServerResponse, <-chan error) { + responseChan := make(chan *DeleteSslVpnServerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteSslVpnServer(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteSslVpnServerWithCallback invokes the vpc.DeleteSslVpnServer API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletesslvpnserver.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteSslVpnServerWithCallback(request *DeleteSslVpnServerRequest, callback func(response *DeleteSslVpnServerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteSslVpnServerResponse + var err error + defer close(result) + response, err = client.DeleteSslVpnServer(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteSslVpnServerRequest is the request struct for api DeleteSslVpnServer +type DeleteSslVpnServerRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + SslVpnServerId string `position:"Query" name:"SslVpnServerId"` +} + +// DeleteSslVpnServerResponse is the response struct for api DeleteSslVpnServer +type DeleteSslVpnServerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteSslVpnServerRequest creates a request to invoke DeleteSslVpnServer API +func CreateDeleteSslVpnServerRequest() (request *DeleteSslVpnServerRequest) { + request = &DeleteSslVpnServerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteSslVpnServer", "vpc", "openAPI") + return +} + +// CreateDeleteSslVpnServerResponse creates a response to parse from DeleteSslVpnServer response +func CreateDeleteSslVpnServerResponse() (response *DeleteSslVpnServerResponse) { + response = &DeleteSslVpnServerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_v_switch.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_v_switch.go new file mode 100644 index 0000000..548c5b0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_v_switch.go @@ -0,0 +1,107 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteVSwitch invokes the vpc.DeleteVSwitch API synchronously +// api document: https://help.aliyun.com/api/vpc/deletevswitch.html +func (client *Client) DeleteVSwitch(request *DeleteVSwitchRequest) (response *DeleteVSwitchResponse, err error) { + response = CreateDeleteVSwitchResponse() + err = client.DoAction(request, response) + return +} + +// DeleteVSwitchWithChan invokes the vpc.DeleteVSwitch API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletevswitch.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteVSwitchWithChan(request *DeleteVSwitchRequest) (<-chan *DeleteVSwitchResponse, <-chan error) { + responseChan := make(chan *DeleteVSwitchResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteVSwitch(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteVSwitchWithCallback invokes the vpc.DeleteVSwitch API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletevswitch.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteVSwitchWithCallback(request *DeleteVSwitchRequest, callback func(response *DeleteVSwitchResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteVSwitchResponse + var err error + defer close(result) + response, err = client.DeleteVSwitch(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteVSwitchRequest is the request struct for api DeleteVSwitch +type DeleteVSwitchRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DeleteVSwitchResponse is the response struct for api DeleteVSwitch +type DeleteVSwitchResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteVSwitchRequest creates a request to invoke DeleteVSwitch API +func CreateDeleteVSwitchRequest() (request *DeleteVSwitchRequest) { + request = &DeleteVSwitchRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteVSwitch", "vpc", "openAPI") + return +} + +// CreateDeleteVSwitchResponse creates a response to parse from DeleteVSwitch response +func CreateDeleteVSwitchResponse() (response *DeleteVSwitchResponse) { + response = &DeleteVSwitchResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_virtual_border_router.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_virtual_border_router.go new file mode 100644 index 0000000..9941e28 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_virtual_border_router.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteVirtualBorderRouter invokes the vpc.DeleteVirtualBorderRouter API synchronously +// api document: https://help.aliyun.com/api/vpc/deletevirtualborderrouter.html +func (client *Client) DeleteVirtualBorderRouter(request *DeleteVirtualBorderRouterRequest) (response *DeleteVirtualBorderRouterResponse, err error) { + response = CreateDeleteVirtualBorderRouterResponse() + err = client.DoAction(request, response) + return +} + +// DeleteVirtualBorderRouterWithChan invokes the vpc.DeleteVirtualBorderRouter API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletevirtualborderrouter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteVirtualBorderRouterWithChan(request *DeleteVirtualBorderRouterRequest) (<-chan *DeleteVirtualBorderRouterResponse, <-chan error) { + responseChan := make(chan *DeleteVirtualBorderRouterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteVirtualBorderRouter(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteVirtualBorderRouterWithCallback invokes the vpc.DeleteVirtualBorderRouter API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletevirtualborderrouter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteVirtualBorderRouterWithCallback(request *DeleteVirtualBorderRouterRequest, callback func(response *DeleteVirtualBorderRouterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteVirtualBorderRouterResponse + var err error + defer close(result) + response, err = client.DeleteVirtualBorderRouter(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteVirtualBorderRouterRequest is the request struct for api DeleteVirtualBorderRouter +type DeleteVirtualBorderRouterRequest struct { + *requests.RpcRequest + VbrId string `position:"Query" name:"VbrId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DeleteVirtualBorderRouterResponse is the response struct for api DeleteVirtualBorderRouter +type DeleteVirtualBorderRouterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteVirtualBorderRouterRequest creates a request to invoke DeleteVirtualBorderRouter API +func CreateDeleteVirtualBorderRouterRequest() (request *DeleteVirtualBorderRouterRequest) { + request = &DeleteVirtualBorderRouterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteVirtualBorderRouter", "vpc", "openAPI") + return +} + +// CreateDeleteVirtualBorderRouterResponse creates a response to parse from DeleteVirtualBorderRouter response +func CreateDeleteVirtualBorderRouterResponse() (response *DeleteVirtualBorderRouterResponse) { + response = &DeleteVirtualBorderRouterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_vpc.go new file mode 100644 index 0000000..efd842d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_vpc.go @@ -0,0 +1,107 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteVpc invokes the vpc.DeleteVpc API synchronously +// api document: https://help.aliyun.com/api/vpc/deletevpc.html +func (client *Client) DeleteVpc(request *DeleteVpcRequest) (response *DeleteVpcResponse, err error) { + response = CreateDeleteVpcResponse() + err = client.DoAction(request, response) + return +} + +// DeleteVpcWithChan invokes the vpc.DeleteVpc API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletevpc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteVpcWithChan(request *DeleteVpcRequest) (<-chan *DeleteVpcResponse, <-chan error) { + responseChan := make(chan *DeleteVpcResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteVpc(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteVpcWithCallback invokes the vpc.DeleteVpc API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletevpc.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteVpcWithCallback(request *DeleteVpcRequest, callback func(response *DeleteVpcResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteVpcResponse + var err error + defer close(result) + response, err = client.DeleteVpc(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteVpcRequest is the request struct for api DeleteVpc +type DeleteVpcRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VpcId string `position:"Query" name:"VpcId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DeleteVpcResponse is the response struct for api DeleteVpc +type DeleteVpcResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteVpcRequest creates a request to invoke DeleteVpc API +func CreateDeleteVpcRequest() (request *DeleteVpcRequest) { + request = &DeleteVpcRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteVpc", "vpc", "openAPI") + return +} + +// CreateDeleteVpcResponse creates a response to parse from DeleteVpc response +func CreateDeleteVpcResponse() (response *DeleteVpcResponse) { + response = &DeleteVpcResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_vpn_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_vpn_connection.go new file mode 100644 index 0000000..5058cf7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_vpn_connection.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteVpnConnection invokes the vpc.DeleteVpnConnection API synchronously +// api document: https://help.aliyun.com/api/vpc/deletevpnconnection.html +func (client *Client) DeleteVpnConnection(request *DeleteVpnConnectionRequest) (response *DeleteVpnConnectionResponse, err error) { + response = CreateDeleteVpnConnectionResponse() + err = client.DoAction(request, response) + return +} + +// DeleteVpnConnectionWithChan invokes the vpc.DeleteVpnConnection API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletevpnconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteVpnConnectionWithChan(request *DeleteVpnConnectionRequest) (<-chan *DeleteVpnConnectionResponse, <-chan error) { + responseChan := make(chan *DeleteVpnConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteVpnConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteVpnConnectionWithCallback invokes the vpc.DeleteVpnConnection API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletevpnconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteVpnConnectionWithCallback(request *DeleteVpnConnectionRequest, callback func(response *DeleteVpnConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteVpnConnectionResponse + var err error + defer close(result) + response, err = client.DeleteVpnConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteVpnConnectionRequest is the request struct for api DeleteVpnConnection +type DeleteVpnConnectionRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + VpnConnectionId string `position:"Query" name:"VpnConnectionId"` +} + +// DeleteVpnConnectionResponse is the response struct for api DeleteVpnConnection +type DeleteVpnConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteVpnConnectionRequest creates a request to invoke DeleteVpnConnection API +func CreateDeleteVpnConnectionRequest() (request *DeleteVpnConnectionRequest) { + request = &DeleteVpnConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteVpnConnection", "vpc", "openAPI") + return +} + +// CreateDeleteVpnConnectionResponse creates a response to parse from DeleteVpnConnection response +func CreateDeleteVpnConnectionResponse() (response *DeleteVpnConnectionResponse) { + response = &DeleteVpnConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_vpn_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_vpn_gateway.go new file mode 100644 index 0000000..342b220 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/delete_vpn_gateway.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteVpnGateway invokes the vpc.DeleteVpnGateway API synchronously +// api document: https://help.aliyun.com/api/vpc/deletevpngateway.html +func (client *Client) DeleteVpnGateway(request *DeleteVpnGatewayRequest) (response *DeleteVpnGatewayResponse, err error) { + response = CreateDeleteVpnGatewayResponse() + err = client.DoAction(request, response) + return +} + +// DeleteVpnGatewayWithChan invokes the vpc.DeleteVpnGateway API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletevpngateway.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteVpnGatewayWithChan(request *DeleteVpnGatewayRequest) (<-chan *DeleteVpnGatewayResponse, <-chan error) { + responseChan := make(chan *DeleteVpnGatewayResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteVpnGateway(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteVpnGatewayWithCallback invokes the vpc.DeleteVpnGateway API asynchronously +// api document: https://help.aliyun.com/api/vpc/deletevpngateway.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteVpnGatewayWithCallback(request *DeleteVpnGatewayRequest, callback func(response *DeleteVpnGatewayResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteVpnGatewayResponse + var err error + defer close(result) + response, err = client.DeleteVpnGateway(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteVpnGatewayRequest is the request struct for api DeleteVpnGateway +type DeleteVpnGatewayRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + VpnGatewayId string `position:"Query" name:"VpnGatewayId"` +} + +// DeleteVpnGatewayResponse is the response struct for api DeleteVpnGateway +type DeleteVpnGatewayResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteVpnGatewayRequest creates a request to invoke DeleteVpnGateway API +func CreateDeleteVpnGatewayRequest() (request *DeleteVpnGatewayRequest) { + request = &DeleteVpnGatewayRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteVpnGateway", "vpc", "openAPI") + return +} + +// CreateDeleteVpnGatewayResponse creates a response to parse from DeleteVpnGateway response +func CreateDeleteVpnGatewayResponse() (response *DeleteVpnGatewayResponse) { + response = &DeleteVpnGatewayResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_access_points.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_access_points.go new file mode 100644 index 0000000..db8698a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_access_points.go @@ -0,0 +1,121 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAccessPoints invokes the vpc.DescribeAccessPoints API synchronously +// api document: https://help.aliyun.com/api/vpc/describeaccesspoints.html +func (client *Client) DescribeAccessPoints(request *DescribeAccessPointsRequest) (response *DescribeAccessPointsResponse, err error) { + response = CreateDescribeAccessPointsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAccessPointsWithChan invokes the vpc.DescribeAccessPoints API asynchronously +// api document: https://help.aliyun.com/api/vpc/describeaccesspoints.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccessPointsWithChan(request *DescribeAccessPointsRequest) (<-chan *DescribeAccessPointsResponse, <-chan error) { + responseChan := make(chan *DescribeAccessPointsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAccessPoints(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAccessPointsWithCallback invokes the vpc.DescribeAccessPoints API asynchronously +// api document: https://help.aliyun.com/api/vpc/describeaccesspoints.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccessPointsWithCallback(request *DescribeAccessPointsRequest, callback func(response *DescribeAccessPointsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAccessPointsResponse + var err error + defer close(result) + response, err = client.DescribeAccessPoints(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAccessPointsRequest is the request struct for api DescribeAccessPoints +type DescribeAccessPointsRequest struct { + *requests.RpcRequest + Filter *[]DescribeAccessPointsFilter `position:"Query" name:"Filter" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Type string `position:"Query" name:"Type"` + Name string `position:"Query" name:"Name"` + HostOperator string `position:"Query" name:"HostOperator"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeAccessPointsFilter is a repeated param struct in DescribeAccessPointsRequest +type DescribeAccessPointsFilter struct { + Key string `name:"Key"` + Value *[]string `name:"Value" type:"Repeated"` +} + +// DescribeAccessPointsResponse is the response struct for api DescribeAccessPoints +type DescribeAccessPointsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + AccessPointSet AccessPointSet `json:"AccessPointSet" xml:"AccessPointSet"` +} + +// CreateDescribeAccessPointsRequest creates a request to invoke DescribeAccessPoints API +func CreateDescribeAccessPointsRequest() (request *DescribeAccessPointsRequest) { + request = &DescribeAccessPointsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeAccessPoints", "vpc", "openAPI") + return +} + +// CreateDescribeAccessPointsResponse creates a response to parse from DescribeAccessPoints response +func CreateDescribeAccessPointsResponse() (response *DescribeAccessPointsResponse) { + response = &DescribeAccessPointsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_bandwidth_package_public_ip_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_bandwidth_package_public_ip_monitor_data.go new file mode 100644 index 0000000..13af4b9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_bandwidth_package_public_ip_monitor_data.go @@ -0,0 +1,111 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeBandwidthPackagePublicIpMonitorData invokes the vpc.DescribeBandwidthPackagePublicIpMonitorData API synchronously +// api document: https://help.aliyun.com/api/vpc/describebandwidthpackagepublicipmonitordata.html +func (client *Client) DescribeBandwidthPackagePublicIpMonitorData(request *DescribeBandwidthPackagePublicIpMonitorDataRequest) (response *DescribeBandwidthPackagePublicIpMonitorDataResponse, err error) { + response = CreateDescribeBandwidthPackagePublicIpMonitorDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeBandwidthPackagePublicIpMonitorDataWithChan invokes the vpc.DescribeBandwidthPackagePublicIpMonitorData API asynchronously +// api document: https://help.aliyun.com/api/vpc/describebandwidthpackagepublicipmonitordata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBandwidthPackagePublicIpMonitorDataWithChan(request *DescribeBandwidthPackagePublicIpMonitorDataRequest) (<-chan *DescribeBandwidthPackagePublicIpMonitorDataResponse, <-chan error) { + responseChan := make(chan *DescribeBandwidthPackagePublicIpMonitorDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeBandwidthPackagePublicIpMonitorData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeBandwidthPackagePublicIpMonitorDataWithCallback invokes the vpc.DescribeBandwidthPackagePublicIpMonitorData API asynchronously +// api document: https://help.aliyun.com/api/vpc/describebandwidthpackagepublicipmonitordata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBandwidthPackagePublicIpMonitorDataWithCallback(request *DescribeBandwidthPackagePublicIpMonitorDataRequest, callback func(response *DescribeBandwidthPackagePublicIpMonitorDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeBandwidthPackagePublicIpMonitorDataResponse + var err error + defer close(result) + response, err = client.DescribeBandwidthPackagePublicIpMonitorData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeBandwidthPackagePublicIpMonitorDataRequest is the request struct for api DescribeBandwidthPackagePublicIpMonitorData +type DescribeBandwidthPackagePublicIpMonitorDataRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AllocationId string `position:"Query" name:"AllocationId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + Period requests.Integer `position:"Query" name:"Period"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeBandwidthPackagePublicIpMonitorDataResponse is the response struct for api DescribeBandwidthPackagePublicIpMonitorData +type DescribeBandwidthPackagePublicIpMonitorDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MonitorDatas MonitorDatas `json:"MonitorDatas" xml:"MonitorDatas"` +} + +// CreateDescribeBandwidthPackagePublicIpMonitorDataRequest creates a request to invoke DescribeBandwidthPackagePublicIpMonitorData API +func CreateDescribeBandwidthPackagePublicIpMonitorDataRequest() (request *DescribeBandwidthPackagePublicIpMonitorDataRequest) { + request = &DescribeBandwidthPackagePublicIpMonitorDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeBandwidthPackagePublicIpMonitorData", "vpc", "openAPI") + return +} + +// CreateDescribeBandwidthPackagePublicIpMonitorDataResponse creates a response to parse from DescribeBandwidthPackagePublicIpMonitorData response +func CreateDescribeBandwidthPackagePublicIpMonitorDataResponse() (response *DescribeBandwidthPackagePublicIpMonitorDataResponse) { + response = &DescribeBandwidthPackagePublicIpMonitorDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_bandwidth_packages.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_bandwidth_packages.go new file mode 100644 index 0000000..12ff91d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_bandwidth_packages.go @@ -0,0 +1,114 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeBandwidthPackages invokes the vpc.DescribeBandwidthPackages API synchronously +// api document: https://help.aliyun.com/api/vpc/describebandwidthpackages.html +func (client *Client) DescribeBandwidthPackages(request *DescribeBandwidthPackagesRequest) (response *DescribeBandwidthPackagesResponse, err error) { + response = CreateDescribeBandwidthPackagesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeBandwidthPackagesWithChan invokes the vpc.DescribeBandwidthPackages API asynchronously +// api document: https://help.aliyun.com/api/vpc/describebandwidthpackages.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBandwidthPackagesWithChan(request *DescribeBandwidthPackagesRequest) (<-chan *DescribeBandwidthPackagesResponse, <-chan error) { + responseChan := make(chan *DescribeBandwidthPackagesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeBandwidthPackages(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeBandwidthPackagesWithCallback invokes the vpc.DescribeBandwidthPackages API asynchronously +// api document: https://help.aliyun.com/api/vpc/describebandwidthpackages.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBandwidthPackagesWithCallback(request *DescribeBandwidthPackagesRequest, callback func(response *DescribeBandwidthPackagesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeBandwidthPackagesResponse + var err error + defer close(result) + response, err = client.DescribeBandwidthPackages(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeBandwidthPackagesRequest is the request struct for api DescribeBandwidthPackages +type DescribeBandwidthPackagesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` + NatGatewayId string `position:"Query" name:"NatGatewayId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeBandwidthPackagesResponse is the response struct for api DescribeBandwidthPackages +type DescribeBandwidthPackagesResponse 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"` + BandwidthPackages BandwidthPackages `json:"BandwidthPackages" xml:"BandwidthPackages"` +} + +// CreateDescribeBandwidthPackagesRequest creates a request to invoke DescribeBandwidthPackages API +func CreateDescribeBandwidthPackagesRequest() (request *DescribeBandwidthPackagesRequest) { + request = &DescribeBandwidthPackagesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeBandwidthPackages", "vpc", "openAPI") + return +} + +// CreateDescribeBandwidthPackagesResponse creates a response to parse from DescribeBandwidthPackages response +func CreateDescribeBandwidthPackagesResponse() (response *DescribeBandwidthPackagesResponse) { + response = &DescribeBandwidthPackagesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_bgp_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_bgp_groups.go new file mode 100644 index 0000000..802c0a9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_bgp_groups.go @@ -0,0 +1,115 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeBgpGroups invokes the vpc.DescribeBgpGroups API synchronously +// api document: https://help.aliyun.com/api/vpc/describebgpgroups.html +func (client *Client) DescribeBgpGroups(request *DescribeBgpGroupsRequest) (response *DescribeBgpGroupsResponse, err error) { + response = CreateDescribeBgpGroupsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeBgpGroupsWithChan invokes the vpc.DescribeBgpGroups API asynchronously +// api document: https://help.aliyun.com/api/vpc/describebgpgroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBgpGroupsWithChan(request *DescribeBgpGroupsRequest) (<-chan *DescribeBgpGroupsResponse, <-chan error) { + responseChan := make(chan *DescribeBgpGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeBgpGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeBgpGroupsWithCallback invokes the vpc.DescribeBgpGroups API asynchronously +// api document: https://help.aliyun.com/api/vpc/describebgpgroups.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBgpGroupsWithCallback(request *DescribeBgpGroupsRequest, callback func(response *DescribeBgpGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeBgpGroupsResponse + var err error + defer close(result) + response, err = client.DescribeBgpGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeBgpGroupsRequest is the request struct for api DescribeBgpGroups +type DescribeBgpGroupsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + RouterId string `position:"Query" name:"RouterId"` + BgpGroupId string `position:"Query" name:"BgpGroupId"` + IsDefault requests.Boolean `position:"Query" name:"IsDefault"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeBgpGroupsResponse is the response struct for api DescribeBgpGroups +type DescribeBgpGroupsResponse 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"` + BgpGroups BgpGroups `json:"BgpGroups" xml:"BgpGroups"` +} + +// CreateDescribeBgpGroupsRequest creates a request to invoke DescribeBgpGroups API +func CreateDescribeBgpGroupsRequest() (request *DescribeBgpGroupsRequest) { + request = &DescribeBgpGroupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeBgpGroups", "vpc", "openAPI") + return +} + +// CreateDescribeBgpGroupsResponse creates a response to parse from DescribeBgpGroups response +func CreateDescribeBgpGroupsResponse() (response *DescribeBgpGroupsResponse) { + response = &DescribeBgpGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_bgp_peers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_bgp_peers.go new file mode 100644 index 0000000..dfe6188 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_bgp_peers.go @@ -0,0 +1,116 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeBgpPeers invokes the vpc.DescribeBgpPeers API synchronously +// api document: https://help.aliyun.com/api/vpc/describebgppeers.html +func (client *Client) DescribeBgpPeers(request *DescribeBgpPeersRequest) (response *DescribeBgpPeersResponse, err error) { + response = CreateDescribeBgpPeersResponse() + err = client.DoAction(request, response) + return +} + +// DescribeBgpPeersWithChan invokes the vpc.DescribeBgpPeers API asynchronously +// api document: https://help.aliyun.com/api/vpc/describebgppeers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBgpPeersWithChan(request *DescribeBgpPeersRequest) (<-chan *DescribeBgpPeersResponse, <-chan error) { + responseChan := make(chan *DescribeBgpPeersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeBgpPeers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeBgpPeersWithCallback invokes the vpc.DescribeBgpPeers API asynchronously +// api document: https://help.aliyun.com/api/vpc/describebgppeers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBgpPeersWithCallback(request *DescribeBgpPeersRequest, callback func(response *DescribeBgpPeersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeBgpPeersResponse + var err error + defer close(result) + response, err = client.DescribeBgpPeers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeBgpPeersRequest is the request struct for api DescribeBgpPeers +type DescribeBgpPeersRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + RouterId string `position:"Query" name:"RouterId"` + BgpPeerId string `position:"Query" name:"BgpPeerId"` + BgpGroupId string `position:"Query" name:"BgpGroupId"` + IsDefault requests.Boolean `position:"Query" name:"IsDefault"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeBgpPeersResponse is the response struct for api DescribeBgpPeers +type DescribeBgpPeersResponse 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"` + BgpPeers BgpPeers `json:"BgpPeers" xml:"BgpPeers"` +} + +// CreateDescribeBgpPeersRequest creates a request to invoke DescribeBgpPeers API +func CreateDescribeBgpPeersRequest() (request *DescribeBgpPeersRequest) { + request = &DescribeBgpPeersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeBgpPeers", "vpc", "openAPI") + return +} + +// CreateDescribeBgpPeersResponse creates a response to parse from DescribeBgpPeers response +func CreateDescribeBgpPeersResponse() (response *DescribeBgpPeersResponse) { + response = &DescribeBgpPeersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_common_bandwidth_packages.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_common_bandwidth_packages.go new file mode 100644 index 0000000..3ed31f9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_common_bandwidth_packages.go @@ -0,0 +1,114 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCommonBandwidthPackages invokes the vpc.DescribeCommonBandwidthPackages API synchronously +// api document: https://help.aliyun.com/api/vpc/describecommonbandwidthpackages.html +func (client *Client) DescribeCommonBandwidthPackages(request *DescribeCommonBandwidthPackagesRequest) (response *DescribeCommonBandwidthPackagesResponse, err error) { + response = CreateDescribeCommonBandwidthPackagesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCommonBandwidthPackagesWithChan invokes the vpc.DescribeCommonBandwidthPackages API asynchronously +// api document: https://help.aliyun.com/api/vpc/describecommonbandwidthpackages.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCommonBandwidthPackagesWithChan(request *DescribeCommonBandwidthPackagesRequest) (<-chan *DescribeCommonBandwidthPackagesResponse, <-chan error) { + responseChan := make(chan *DescribeCommonBandwidthPackagesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCommonBandwidthPackages(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCommonBandwidthPackagesWithCallback invokes the vpc.DescribeCommonBandwidthPackages API asynchronously +// api document: https://help.aliyun.com/api/vpc/describecommonbandwidthpackages.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCommonBandwidthPackagesWithCallback(request *DescribeCommonBandwidthPackagesRequest, callback func(response *DescribeCommonBandwidthPackagesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCommonBandwidthPackagesResponse + var err error + defer close(result) + response, err = client.DescribeCommonBandwidthPackages(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCommonBandwidthPackagesRequest is the request struct for api DescribeCommonBandwidthPackages +type DescribeCommonBandwidthPackagesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` + Name string `position:"Query" name:"Name"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeCommonBandwidthPackagesResponse is the response struct for api DescribeCommonBandwidthPackages +type DescribeCommonBandwidthPackagesResponse 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"` + CommonBandwidthPackages CommonBandwidthPackages `json:"CommonBandwidthPackages" xml:"CommonBandwidthPackages"` +} + +// CreateDescribeCommonBandwidthPackagesRequest creates a request to invoke DescribeCommonBandwidthPackages API +func CreateDescribeCommonBandwidthPackagesRequest() (request *DescribeCommonBandwidthPackagesRequest) { + request = &DescribeCommonBandwidthPackagesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeCommonBandwidthPackages", "vpc", "openAPI") + return +} + +// CreateDescribeCommonBandwidthPackagesResponse creates a response to parse from DescribeCommonBandwidthPackages response +func CreateDescribeCommonBandwidthPackagesResponse() (response *DescribeCommonBandwidthPackagesResponse) { + response = &DescribeCommonBandwidthPackagesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_customer_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_customer_gateway.go new file mode 100644 index 0000000..9e8fa42 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_customer_gateway.go @@ -0,0 +1,112 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCustomerGateway invokes the vpc.DescribeCustomerGateway API synchronously +// api document: https://help.aliyun.com/api/vpc/describecustomergateway.html +func (client *Client) DescribeCustomerGateway(request *DescribeCustomerGatewayRequest) (response *DescribeCustomerGatewayResponse, err error) { + response = CreateDescribeCustomerGatewayResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCustomerGatewayWithChan invokes the vpc.DescribeCustomerGateway API asynchronously +// api document: https://help.aliyun.com/api/vpc/describecustomergateway.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCustomerGatewayWithChan(request *DescribeCustomerGatewayRequest) (<-chan *DescribeCustomerGatewayResponse, <-chan error) { + responseChan := make(chan *DescribeCustomerGatewayResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCustomerGateway(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCustomerGatewayWithCallback invokes the vpc.DescribeCustomerGateway API asynchronously +// api document: https://help.aliyun.com/api/vpc/describecustomergateway.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCustomerGatewayWithCallback(request *DescribeCustomerGatewayRequest, callback func(response *DescribeCustomerGatewayResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCustomerGatewayResponse + var err error + defer close(result) + response, err = client.DescribeCustomerGateway(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCustomerGatewayRequest is the request struct for api DescribeCustomerGateway +type DescribeCustomerGatewayRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CustomerGatewayId string `position:"Query" name:"CustomerGatewayId"` +} + +// DescribeCustomerGatewayResponse is the response struct for api DescribeCustomerGateway +type DescribeCustomerGatewayResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CustomerGatewayId string `json:"CustomerGatewayId" xml:"CustomerGatewayId"` + IpAddress string `json:"IpAddress" xml:"IpAddress"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` +} + +// CreateDescribeCustomerGatewayRequest creates a request to invoke DescribeCustomerGateway API +func CreateDescribeCustomerGatewayRequest() (request *DescribeCustomerGatewayRequest) { + request = &DescribeCustomerGatewayRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeCustomerGateway", "vpc", "openAPI") + return +} + +// CreateDescribeCustomerGatewayResponse creates a response to parse from DescribeCustomerGateway response +func CreateDescribeCustomerGatewayResponse() (response *DescribeCustomerGatewayResponse) { + response = &DescribeCustomerGatewayResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_customer_gateways.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_customer_gateways.go new file mode 100644 index 0000000..c3dc090 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_customer_gateways.go @@ -0,0 +1,113 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCustomerGateways invokes the vpc.DescribeCustomerGateways API synchronously +// api document: https://help.aliyun.com/api/vpc/describecustomergateways.html +func (client *Client) DescribeCustomerGateways(request *DescribeCustomerGatewaysRequest) (response *DescribeCustomerGatewaysResponse, err error) { + response = CreateDescribeCustomerGatewaysResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCustomerGatewaysWithChan invokes the vpc.DescribeCustomerGateways API asynchronously +// api document: https://help.aliyun.com/api/vpc/describecustomergateways.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCustomerGatewaysWithChan(request *DescribeCustomerGatewaysRequest) (<-chan *DescribeCustomerGatewaysResponse, <-chan error) { + responseChan := make(chan *DescribeCustomerGatewaysResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCustomerGateways(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCustomerGatewaysWithCallback invokes the vpc.DescribeCustomerGateways API asynchronously +// api document: https://help.aliyun.com/api/vpc/describecustomergateways.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCustomerGatewaysWithCallback(request *DescribeCustomerGatewaysRequest, callback func(response *DescribeCustomerGatewaysResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCustomerGatewaysResponse + var err error + defer close(result) + response, err = client.DescribeCustomerGateways(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCustomerGatewaysRequest is the request struct for api DescribeCustomerGateways +type DescribeCustomerGatewaysRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CustomerGatewayId string `position:"Query" name:"CustomerGatewayId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeCustomerGatewaysResponse is the response struct for api DescribeCustomerGateways +type DescribeCustomerGatewaysResponse 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"` + CustomerGateways CustomerGateways `json:"CustomerGateways" xml:"CustomerGateways"` +} + +// CreateDescribeCustomerGatewaysRequest creates a request to invoke DescribeCustomerGateways API +func CreateDescribeCustomerGatewaysRequest() (request *DescribeCustomerGatewaysRequest) { + request = &DescribeCustomerGatewaysRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeCustomerGateways", "vpc", "openAPI") + return +} + +// CreateDescribeCustomerGatewaysResponse creates a response to parse from DescribeCustomerGateways response +func CreateDescribeCustomerGatewaysResponse() (response *DescribeCustomerGatewaysResponse) { + response = &DescribeCustomerGatewaysResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_eip_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_eip_addresses.go new file mode 100644 index 0000000..733f329 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_eip_addresses.go @@ -0,0 +1,124 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeEipAddresses invokes the vpc.DescribeEipAddresses API synchronously +// api document: https://help.aliyun.com/api/vpc/describeeipaddresses.html +func (client *Client) DescribeEipAddresses(request *DescribeEipAddressesRequest) (response *DescribeEipAddressesResponse, err error) { + response = CreateDescribeEipAddressesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeEipAddressesWithChan invokes the vpc.DescribeEipAddresses API asynchronously +// api document: https://help.aliyun.com/api/vpc/describeeipaddresses.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeEipAddressesWithChan(request *DescribeEipAddressesRequest) (<-chan *DescribeEipAddressesResponse, <-chan error) { + responseChan := make(chan *DescribeEipAddressesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeEipAddresses(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeEipAddressesWithCallback invokes the vpc.DescribeEipAddresses API asynchronously +// api document: https://help.aliyun.com/api/vpc/describeeipaddresses.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeEipAddressesWithCallback(request *DescribeEipAddressesRequest, callback func(response *DescribeEipAddressesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeEipAddressesResponse + var err error + defer close(result) + response, err = client.DescribeEipAddresses(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeEipAddressesRequest is the request struct for api DescribeEipAddresses +type DescribeEipAddressesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Status string `position:"Query" name:"Status"` + EipAddress string `position:"Query" name:"EipAddress"` + AllocationId string `position:"Query" name:"AllocationId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Filter1Key string `position:"Query" name:"Filter.1.Key"` + Filter2Key string `position:"Query" name:"Filter.2.Key"` + Filter1Value string `position:"Query" name:"Filter.1.Value"` + Filter2Value string `position:"Query" name:"Filter.2.Value"` + LockReason string `position:"Query" name:"LockReason"` + AssociatedInstanceType string `position:"Query" name:"AssociatedInstanceType"` + AssociatedInstanceId string `position:"Query" name:"AssociatedInstanceId"` + ChargeType string `position:"Query" name:"ChargeType"` +} + +// DescribeEipAddressesResponse is the response struct for api DescribeEipAddresses +type DescribeEipAddressesResponse 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"` + EipAddresses EipAddresses `json:"EipAddresses" xml:"EipAddresses"` +} + +// CreateDescribeEipAddressesRequest creates a request to invoke DescribeEipAddresses API +func CreateDescribeEipAddressesRequest() (request *DescribeEipAddressesRequest) { + request = &DescribeEipAddressesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeEipAddresses", "vpc", "openAPI") + return +} + +// CreateDescribeEipAddressesResponse creates a response to parse from DescribeEipAddresses response +func CreateDescribeEipAddressesResponse() (response *DescribeEipAddressesResponse) { + response = &DescribeEipAddressesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_eip_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_eip_monitor_data.go new file mode 100644 index 0000000..76356ff --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_eip_monitor_data.go @@ -0,0 +1,111 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeEipMonitorData invokes the vpc.DescribeEipMonitorData API synchronously +// api document: https://help.aliyun.com/api/vpc/describeeipmonitordata.html +func (client *Client) DescribeEipMonitorData(request *DescribeEipMonitorDataRequest) (response *DescribeEipMonitorDataResponse, err error) { + response = CreateDescribeEipMonitorDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeEipMonitorDataWithChan invokes the vpc.DescribeEipMonitorData API asynchronously +// api document: https://help.aliyun.com/api/vpc/describeeipmonitordata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeEipMonitorDataWithChan(request *DescribeEipMonitorDataRequest) (<-chan *DescribeEipMonitorDataResponse, <-chan error) { + responseChan := make(chan *DescribeEipMonitorDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeEipMonitorData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeEipMonitorDataWithCallback invokes the vpc.DescribeEipMonitorData API asynchronously +// api document: https://help.aliyun.com/api/vpc/describeeipmonitordata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeEipMonitorDataWithCallback(request *DescribeEipMonitorDataRequest, callback func(response *DescribeEipMonitorDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeEipMonitorDataResponse + var err error + defer close(result) + response, err = client.DescribeEipMonitorData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeEipMonitorDataRequest is the request struct for api DescribeEipMonitorData +type DescribeEipMonitorDataRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AllocationId string `position:"Query" name:"AllocationId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + Period requests.Integer `position:"Query" name:"Period"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeEipMonitorDataResponse is the response struct for api DescribeEipMonitorData +type DescribeEipMonitorDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + EipMonitorDatas EipMonitorDatasInDescribeEipMonitorData `json:"EipMonitorDatas" xml:"EipMonitorDatas"` +} + +// CreateDescribeEipMonitorDataRequest creates a request to invoke DescribeEipMonitorData API +func CreateDescribeEipMonitorDataRequest() (request *DescribeEipMonitorDataRequest) { + request = &DescribeEipMonitorDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeEipMonitorData", "vpc", "openAPI") + return +} + +// CreateDescribeEipMonitorDataResponse creates a response to parse from DescribeEipMonitorData response +func CreateDescribeEipMonitorDataResponse() (response *DescribeEipMonitorDataResponse) { + response = &DescribeEipMonitorDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_forward_table_entries.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_forward_table_entries.go new file mode 100644 index 0000000..0227e22 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_forward_table_entries.go @@ -0,0 +1,114 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeForwardTableEntries invokes the vpc.DescribeForwardTableEntries API synchronously +// api document: https://help.aliyun.com/api/vpc/describeforwardtableentries.html +func (client *Client) DescribeForwardTableEntries(request *DescribeForwardTableEntriesRequest) (response *DescribeForwardTableEntriesResponse, err error) { + response = CreateDescribeForwardTableEntriesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeForwardTableEntriesWithChan invokes the vpc.DescribeForwardTableEntries API asynchronously +// api document: https://help.aliyun.com/api/vpc/describeforwardtableentries.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeForwardTableEntriesWithChan(request *DescribeForwardTableEntriesRequest) (<-chan *DescribeForwardTableEntriesResponse, <-chan error) { + responseChan := make(chan *DescribeForwardTableEntriesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeForwardTableEntries(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeForwardTableEntriesWithCallback invokes the vpc.DescribeForwardTableEntries API asynchronously +// api document: https://help.aliyun.com/api/vpc/describeforwardtableentries.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeForwardTableEntriesWithCallback(request *DescribeForwardTableEntriesRequest, callback func(response *DescribeForwardTableEntriesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeForwardTableEntriesResponse + var err error + defer close(result) + response, err = client.DescribeForwardTableEntries(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeForwardTableEntriesRequest is the request struct for api DescribeForwardTableEntries +type DescribeForwardTableEntriesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ForwardTableId string `position:"Query" name:"ForwardTableId"` + ForwardEntryId string `position:"Query" name:"ForwardEntryId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeForwardTableEntriesResponse is the response struct for api DescribeForwardTableEntries +type DescribeForwardTableEntriesResponse 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"` + ForwardTableEntries ForwardTableEntries `json:"ForwardTableEntries" xml:"ForwardTableEntries"` +} + +// CreateDescribeForwardTableEntriesRequest creates a request to invoke DescribeForwardTableEntries API +func CreateDescribeForwardTableEntriesRequest() (request *DescribeForwardTableEntriesRequest) { + request = &DescribeForwardTableEntriesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeForwardTableEntries", "vpc", "openAPI") + return +} + +// CreateDescribeForwardTableEntriesResponse creates a response to parse from DescribeForwardTableEntries response +func CreateDescribeForwardTableEntriesResponse() (response *DescribeForwardTableEntriesResponse) { + response = &DescribeForwardTableEntriesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_forward_tables.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_forward_tables.go new file mode 100644 index 0000000..db34445 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_forward_tables.go @@ -0,0 +1,113 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeForwardTables invokes the vpc.DescribeForwardTables API synchronously +// api document: https://help.aliyun.com/api/vpc/describeforwardtables.html +func (client *Client) DescribeForwardTables(request *DescribeForwardTablesRequest) (response *DescribeForwardTablesResponse, err error) { + response = CreateDescribeForwardTablesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeForwardTablesWithChan invokes the vpc.DescribeForwardTables API asynchronously +// api document: https://help.aliyun.com/api/vpc/describeforwardtables.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeForwardTablesWithChan(request *DescribeForwardTablesRequest) (<-chan *DescribeForwardTablesResponse, <-chan error) { + responseChan := make(chan *DescribeForwardTablesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeForwardTables(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeForwardTablesWithCallback invokes the vpc.DescribeForwardTables API asynchronously +// api document: https://help.aliyun.com/api/vpc/describeforwardtables.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeForwardTablesWithCallback(request *DescribeForwardTablesRequest, callback func(response *DescribeForwardTablesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeForwardTablesResponse + var err error + defer close(result) + response, err = client.DescribeForwardTables(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeForwardTablesRequest is the request struct for api DescribeForwardTables +type DescribeForwardTablesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ForwardTableId string `position:"Query" name:"ForwardTableId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeForwardTablesResponse is the response struct for api DescribeForwardTables +type DescribeForwardTablesResponse 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"` + ForwardTables ForwardTables `json:"ForwardTables" xml:"ForwardTables"` +} + +// CreateDescribeForwardTablesRequest creates a request to invoke DescribeForwardTables API +func CreateDescribeForwardTablesRequest() (request *DescribeForwardTablesRequest) { + request = &DescribeForwardTablesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeForwardTables", "vpc", "openAPI") + return +} + +// CreateDescribeForwardTablesResponse creates a response to parse from DescribeForwardTables response +func CreateDescribeForwardTablesResponse() (response *DescribeForwardTablesResponse) { + response = &DescribeForwardTablesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_global_acceleration_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_global_acceleration_instances.go new file mode 100644 index 0000000..499a562 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_global_acceleration_instances.go @@ -0,0 +1,119 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeGlobalAccelerationInstances invokes the vpc.DescribeGlobalAccelerationInstances API synchronously +// api document: https://help.aliyun.com/api/vpc/describeglobalaccelerationinstances.html +func (client *Client) DescribeGlobalAccelerationInstances(request *DescribeGlobalAccelerationInstancesRequest) (response *DescribeGlobalAccelerationInstancesResponse, err error) { + response = CreateDescribeGlobalAccelerationInstancesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeGlobalAccelerationInstancesWithChan invokes the vpc.DescribeGlobalAccelerationInstances API asynchronously +// api document: https://help.aliyun.com/api/vpc/describeglobalaccelerationinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeGlobalAccelerationInstancesWithChan(request *DescribeGlobalAccelerationInstancesRequest) (<-chan *DescribeGlobalAccelerationInstancesResponse, <-chan error) { + responseChan := make(chan *DescribeGlobalAccelerationInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeGlobalAccelerationInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeGlobalAccelerationInstancesWithCallback invokes the vpc.DescribeGlobalAccelerationInstances API asynchronously +// api document: https://help.aliyun.com/api/vpc/describeglobalaccelerationinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeGlobalAccelerationInstancesWithCallback(request *DescribeGlobalAccelerationInstancesRequest, callback func(response *DescribeGlobalAccelerationInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeGlobalAccelerationInstancesResponse + var err error + defer close(result) + response, err = client.DescribeGlobalAccelerationInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeGlobalAccelerationInstancesRequest is the request struct for api DescribeGlobalAccelerationInstances +type DescribeGlobalAccelerationInstancesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + GlobalAccelerationInstanceId string `position:"Query" name:"GlobalAccelerationInstanceId"` + IpAddress string `position:"Query" name:"IpAddress"` + Name string `position:"Query" name:"Name"` + Status string `position:"Query" name:"Status"` + BandwidthType string `position:"Query" name:"BandwidthType"` + ServiceLocation string `position:"Query" name:"ServiceLocation"` + ServerId string `position:"Query" name:"ServerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeGlobalAccelerationInstancesResponse is the response struct for api DescribeGlobalAccelerationInstances +type DescribeGlobalAccelerationInstancesResponse 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"` + GlobalAccelerationInstances GlobalAccelerationInstancesInDescribeGlobalAccelerationInstances `json:"GlobalAccelerationInstances" xml:"GlobalAccelerationInstances"` +} + +// CreateDescribeGlobalAccelerationInstancesRequest creates a request to invoke DescribeGlobalAccelerationInstances API +func CreateDescribeGlobalAccelerationInstancesRequest() (request *DescribeGlobalAccelerationInstancesRequest) { + request = &DescribeGlobalAccelerationInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeGlobalAccelerationInstances", "vpc", "openAPI") + return +} + +// CreateDescribeGlobalAccelerationInstancesResponse creates a response to parse from DescribeGlobalAccelerationInstances response +func CreateDescribeGlobalAccelerationInstancesResponse() (response *DescribeGlobalAccelerationInstancesResponse) { + response = &DescribeGlobalAccelerationInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_ha_vips.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_ha_vips.go new file mode 100644 index 0000000..3c7897a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_ha_vips.go @@ -0,0 +1,119 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeHaVips invokes the vpc.DescribeHaVips API synchronously +// api document: https://help.aliyun.com/api/vpc/describehavips.html +func (client *Client) DescribeHaVips(request *DescribeHaVipsRequest) (response *DescribeHaVipsResponse, err error) { + response = CreateDescribeHaVipsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeHaVipsWithChan invokes the vpc.DescribeHaVips API asynchronously +// api document: https://help.aliyun.com/api/vpc/describehavips.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeHaVipsWithChan(request *DescribeHaVipsRequest) (<-chan *DescribeHaVipsResponse, <-chan error) { + responseChan := make(chan *DescribeHaVipsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeHaVips(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeHaVipsWithCallback invokes the vpc.DescribeHaVips API asynchronously +// api document: https://help.aliyun.com/api/vpc/describehavips.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeHaVipsWithCallback(request *DescribeHaVipsRequest, callback func(response *DescribeHaVipsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeHaVipsResponse + var err error + defer close(result) + response, err = client.DescribeHaVips(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeHaVipsRequest is the request struct for api DescribeHaVips +type DescribeHaVipsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Filter *[]DescribeHaVipsFilter `position:"Query" name:"Filter" type:"Repeated"` +} + +// DescribeHaVipsFilter is a repeated param struct in DescribeHaVipsRequest +type DescribeHaVipsFilter struct { + Key string `name:"Key"` + Value *[]string `name:"Value" type:"Repeated"` +} + +// DescribeHaVipsResponse is the response struct for api DescribeHaVips +type DescribeHaVipsResponse 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"` + HaVips HaVips `json:"HaVips" xml:"HaVips"` +} + +// CreateDescribeHaVipsRequest creates a request to invoke DescribeHaVips API +func CreateDescribeHaVipsRequest() (request *DescribeHaVipsRequest) { + request = &DescribeHaVipsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeHaVips", "vpc", "openAPI") + return +} + +// CreateDescribeHaVipsResponse creates a response to parse from DescribeHaVips response +func CreateDescribeHaVipsResponse() (response *DescribeHaVipsResponse) { + response = &DescribeHaVipsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_nat_gateways.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_nat_gateways.go new file mode 100644 index 0000000..d559d99 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_nat_gateways.go @@ -0,0 +1,115 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeNatGateways invokes the vpc.DescribeNatGateways API synchronously +// api document: https://help.aliyun.com/api/vpc/describenatgateways.html +func (client *Client) DescribeNatGateways(request *DescribeNatGatewaysRequest) (response *DescribeNatGatewaysResponse, err error) { + response = CreateDescribeNatGatewaysResponse() + err = client.DoAction(request, response) + return +} + +// DescribeNatGatewaysWithChan invokes the vpc.DescribeNatGateways API asynchronously +// api document: https://help.aliyun.com/api/vpc/describenatgateways.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeNatGatewaysWithChan(request *DescribeNatGatewaysRequest) (<-chan *DescribeNatGatewaysResponse, <-chan error) { + responseChan := make(chan *DescribeNatGatewaysResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeNatGateways(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeNatGatewaysWithCallback invokes the vpc.DescribeNatGateways API asynchronously +// api document: https://help.aliyun.com/api/vpc/describenatgateways.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeNatGatewaysWithCallback(request *DescribeNatGatewaysRequest, callback func(response *DescribeNatGatewaysResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeNatGatewaysResponse + var err error + defer close(result) + response, err = client.DescribeNatGateways(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeNatGatewaysRequest is the request struct for api DescribeNatGateways +type DescribeNatGatewaysRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + NatGatewayId string `position:"Query" name:"NatGatewayId"` + VpcId string `position:"Query" name:"VpcId"` + Name string `position:"Query" name:"Name"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeNatGatewaysResponse is the response struct for api DescribeNatGateways +type DescribeNatGatewaysResponse 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"` + NatGateways NatGateways `json:"NatGateways" xml:"NatGateways"` +} + +// CreateDescribeNatGatewaysRequest creates a request to invoke DescribeNatGateways API +func CreateDescribeNatGatewaysRequest() (request *DescribeNatGatewaysRequest) { + request = &DescribeNatGatewaysRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeNatGateways", "vpc", "openAPI") + return +} + +// CreateDescribeNatGatewaysResponse creates a response to parse from DescribeNatGateways response +func CreateDescribeNatGatewaysResponse() (response *DescribeNatGatewaysResponse) { + response = &DescribeNatGatewaysResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_new_project_eip_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_new_project_eip_monitor_data.go new file mode 100644 index 0000000..2f4938b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_new_project_eip_monitor_data.go @@ -0,0 +1,111 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeNewProjectEipMonitorData invokes the vpc.DescribeNewProjectEipMonitorData API synchronously +// api document: https://help.aliyun.com/api/vpc/describenewprojecteipmonitordata.html +func (client *Client) DescribeNewProjectEipMonitorData(request *DescribeNewProjectEipMonitorDataRequest) (response *DescribeNewProjectEipMonitorDataResponse, err error) { + response = CreateDescribeNewProjectEipMonitorDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeNewProjectEipMonitorDataWithChan invokes the vpc.DescribeNewProjectEipMonitorData API asynchronously +// api document: https://help.aliyun.com/api/vpc/describenewprojecteipmonitordata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeNewProjectEipMonitorDataWithChan(request *DescribeNewProjectEipMonitorDataRequest) (<-chan *DescribeNewProjectEipMonitorDataResponse, <-chan error) { + responseChan := make(chan *DescribeNewProjectEipMonitorDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeNewProjectEipMonitorData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeNewProjectEipMonitorDataWithCallback invokes the vpc.DescribeNewProjectEipMonitorData API asynchronously +// api document: https://help.aliyun.com/api/vpc/describenewprojecteipmonitordata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeNewProjectEipMonitorDataWithCallback(request *DescribeNewProjectEipMonitorDataRequest, callback func(response *DescribeNewProjectEipMonitorDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeNewProjectEipMonitorDataResponse + var err error + defer close(result) + response, err = client.DescribeNewProjectEipMonitorData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeNewProjectEipMonitorDataRequest is the request struct for api DescribeNewProjectEipMonitorData +type DescribeNewProjectEipMonitorDataRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AllocationId string `position:"Query" name:"AllocationId"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + Period requests.Integer `position:"Query" name:"Period"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeNewProjectEipMonitorDataResponse is the response struct for api DescribeNewProjectEipMonitorData +type DescribeNewProjectEipMonitorDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + EipMonitorDatas EipMonitorDatasInDescribeNewProjectEipMonitorData `json:"EipMonitorDatas" xml:"EipMonitorDatas"` +} + +// CreateDescribeNewProjectEipMonitorDataRequest creates a request to invoke DescribeNewProjectEipMonitorData API +func CreateDescribeNewProjectEipMonitorDataRequest() (request *DescribeNewProjectEipMonitorDataRequest) { + request = &DescribeNewProjectEipMonitorDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeNewProjectEipMonitorData", "vpc", "openAPI") + return +} + +// CreateDescribeNewProjectEipMonitorDataResponse creates a response to parse from DescribeNewProjectEipMonitorData response +func CreateDescribeNewProjectEipMonitorDataResponse() (response *DescribeNewProjectEipMonitorDataResponse) { + response = &DescribeNewProjectEipMonitorDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_nqas.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_nqas.go new file mode 100644 index 0000000..ae81a67 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_nqas.go @@ -0,0 +1,115 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeNqas invokes the vpc.DescribeNqas API synchronously +// api document: https://help.aliyun.com/api/vpc/describenqas.html +func (client *Client) DescribeNqas(request *DescribeNqasRequest) (response *DescribeNqasResponse, err error) { + response = CreateDescribeNqasResponse() + err = client.DoAction(request, response) + return +} + +// DescribeNqasWithChan invokes the vpc.DescribeNqas API asynchronously +// api document: https://help.aliyun.com/api/vpc/describenqas.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeNqasWithChan(request *DescribeNqasRequest) (<-chan *DescribeNqasResponse, <-chan error) { + responseChan := make(chan *DescribeNqasResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeNqas(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeNqasWithCallback invokes the vpc.DescribeNqas API asynchronously +// api document: https://help.aliyun.com/api/vpc/describenqas.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeNqasWithCallback(request *DescribeNqasRequest, callback func(response *DescribeNqasResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeNqasResponse + var err error + defer close(result) + response, err = client.DescribeNqas(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeNqasRequest is the request struct for api DescribeNqas +type DescribeNqasRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + RouterId string `position:"Query" name:"RouterId"` + NqaId string `position:"Query" name:"NqaId"` + IsDefault requests.Boolean `position:"Query" name:"IsDefault"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeNqasResponse is the response struct for api DescribeNqas +type DescribeNqasResponse 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"` + Nqas Nqas `json:"Nqas" xml:"Nqas"` +} + +// CreateDescribeNqasRequest creates a request to invoke DescribeNqas API +func CreateDescribeNqasRequest() (request *DescribeNqasRequest) { + request = &DescribeNqasRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeNqas", "vpc", "openAPI") + return +} + +// CreateDescribeNqasResponse creates a response to parse from DescribeNqas response +func CreateDescribeNqasResponse() (response *DescribeNqasResponse) { + response = &DescribeNqasResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_physical_connections.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_physical_connections.go new file mode 100644 index 0000000..900a239 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_physical_connections.go @@ -0,0 +1,120 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribePhysicalConnections invokes the vpc.DescribePhysicalConnections API synchronously +// api document: https://help.aliyun.com/api/vpc/describephysicalconnections.html +func (client *Client) DescribePhysicalConnections(request *DescribePhysicalConnectionsRequest) (response *DescribePhysicalConnectionsResponse, err error) { + response = CreateDescribePhysicalConnectionsResponse() + err = client.DoAction(request, response) + return +} + +// DescribePhysicalConnectionsWithChan invokes the vpc.DescribePhysicalConnections API asynchronously +// api document: https://help.aliyun.com/api/vpc/describephysicalconnections.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePhysicalConnectionsWithChan(request *DescribePhysicalConnectionsRequest) (<-chan *DescribePhysicalConnectionsResponse, <-chan error) { + responseChan := make(chan *DescribePhysicalConnectionsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribePhysicalConnections(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribePhysicalConnectionsWithCallback invokes the vpc.DescribePhysicalConnections API asynchronously +// api document: https://help.aliyun.com/api/vpc/describephysicalconnections.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribePhysicalConnectionsWithCallback(request *DescribePhysicalConnectionsRequest, callback func(response *DescribePhysicalConnectionsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribePhysicalConnectionsResponse + var err error + defer close(result) + response, err = client.DescribePhysicalConnections(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribePhysicalConnectionsRequest is the request struct for api DescribePhysicalConnections +type DescribePhysicalConnectionsRequest struct { + *requests.RpcRequest + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Filter *[]DescribePhysicalConnectionsFilter `position:"Query" name:"Filter" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribePhysicalConnectionsFilter is a repeated param struct in DescribePhysicalConnectionsRequest +type DescribePhysicalConnectionsFilter struct { + Key string `name:"Key"` + Value *[]string `name:"Value" type:"Repeated"` +} + +// DescribePhysicalConnectionsResponse is the response struct for api DescribePhysicalConnections +type DescribePhysicalConnectionsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PhysicalConnectionSet PhysicalConnectionSet `json:"PhysicalConnectionSet" xml:"PhysicalConnectionSet"` +} + +// CreateDescribePhysicalConnectionsRequest creates a request to invoke DescribePhysicalConnections API +func CreateDescribePhysicalConnectionsRequest() (request *DescribePhysicalConnectionsRequest) { + request = &DescribePhysicalConnectionsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribePhysicalConnections", "vpc", "openAPI") + return +} + +// CreateDescribePhysicalConnectionsResponse creates a response to parse from DescribePhysicalConnections response +func CreateDescribePhysicalConnectionsResponse() (response *DescribePhysicalConnectionsResponse) { + response = &DescribePhysicalConnectionsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_regions.go new file mode 100644 index 0000000..ad5eb4e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_regions.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 vpc.DescribeRegions API synchronously +// api document: https://help.aliyun.com/api/vpc/describeregions.html +func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) { + response = CreateDescribeRegionsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRegionsWithChan invokes the vpc.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/vpc/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 vpc.DescribeRegions API asynchronously +// api document: https://help.aliyun.com/api/vpc/describeregions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + ProductType string `position:"Query" name:"ProductType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// 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("Vpc", "2016-04-28", "DescribeRegions", "vpc", "openAPI") + 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/vpc/describe_route_table_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_route_table_list.go new file mode 100644 index 0000000..b8a1ca9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_route_table_list.go @@ -0,0 +1,120 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRouteTableList invokes the vpc.DescribeRouteTableList API synchronously +// api document: https://help.aliyun.com/api/vpc/describeroutetablelist.html +func (client *Client) DescribeRouteTableList(request *DescribeRouteTableListRequest) (response *DescribeRouteTableListResponse, err error) { + response = CreateDescribeRouteTableListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRouteTableListWithChan invokes the vpc.DescribeRouteTableList API asynchronously +// api document: https://help.aliyun.com/api/vpc/describeroutetablelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRouteTableListWithChan(request *DescribeRouteTableListRequest) (<-chan *DescribeRouteTableListResponse, <-chan error) { + responseChan := make(chan *DescribeRouteTableListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRouteTableList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRouteTableListWithCallback invokes the vpc.DescribeRouteTableList API asynchronously +// api document: https://help.aliyun.com/api/vpc/describeroutetablelist.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRouteTableListWithCallback(request *DescribeRouteTableListRequest, callback func(response *DescribeRouteTableListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRouteTableListResponse + var err error + defer close(result) + response, err = client.DescribeRouteTableList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRouteTableListRequest is the request struct for api DescribeRouteTableList +type DescribeRouteTableListRequest struct { + *requests.RpcRequest + RouterType string `position:"Query" name:"RouterType"` + RouterId string `position:"Query" name:"RouterId"` + VpcId string `position:"Query" name:"VpcId"` + RouteTableId string `position:"Query" name:"RouteTableId"` + RouteTableName string `position:"Query" name:"RouteTableName"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeRouteTableListResponse is the response struct for api DescribeRouteTableList +type DescribeRouteTableListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Success bool `json:"Success" xml:"Success"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RouterTableList RouterTableList `json:"RouterTableList" xml:"RouterTableList"` +} + +// CreateDescribeRouteTableListRequest creates a request to invoke DescribeRouteTableList API +func CreateDescribeRouteTableListRequest() (request *DescribeRouteTableListRequest) { + request = &DescribeRouteTableListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeRouteTableList", "vpc", "openAPI") + return +} + +// CreateDescribeRouteTableListResponse creates a response to parse from DescribeRouteTableList response +func CreateDescribeRouteTableListResponse() (response *DescribeRouteTableListResponse) { + response = &DescribeRouteTableListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_route_tables.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_route_tables.go new file mode 100644 index 0000000..66673fd --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_route_tables.go @@ -0,0 +1,118 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRouteTables invokes the vpc.DescribeRouteTables API synchronously +// api document: https://help.aliyun.com/api/vpc/describeroutetables.html +func (client *Client) DescribeRouteTables(request *DescribeRouteTablesRequest) (response *DescribeRouteTablesResponse, err error) { + response = CreateDescribeRouteTablesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRouteTablesWithChan invokes the vpc.DescribeRouteTables API asynchronously +// api document: https://help.aliyun.com/api/vpc/describeroutetables.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRouteTablesWithChan(request *DescribeRouteTablesRequest) (<-chan *DescribeRouteTablesResponse, <-chan error) { + responseChan := make(chan *DescribeRouteTablesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRouteTables(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRouteTablesWithCallback invokes the vpc.DescribeRouteTables API asynchronously +// api document: https://help.aliyun.com/api/vpc/describeroutetables.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRouteTablesWithCallback(request *DescribeRouteTablesRequest, callback func(response *DescribeRouteTablesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRouteTablesResponse + var err error + defer close(result) + response, err = client.DescribeRouteTables(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRouteTablesRequest is the request struct for api DescribeRouteTables +type DescribeRouteTablesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VRouterId string `position:"Query" name:"VRouterId"` + RouteTableId string `position:"Query" name:"RouteTableId"` + RouterType string `position:"Query" name:"RouterType"` + RouterId string `position:"Query" name:"RouterId"` + Type string `position:"Query" name:"Type"` + RouteTableName string `position:"Query" name:"RouteTableName"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeRouteTablesResponse is the response struct for api DescribeRouteTables +type DescribeRouteTablesResponse 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"` + RouteTables RouteTables `json:"RouteTables" xml:"RouteTables"` +} + +// CreateDescribeRouteTablesRequest creates a request to invoke DescribeRouteTables API +func CreateDescribeRouteTablesRequest() (request *DescribeRouteTablesRequest) { + request = &DescribeRouteTablesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeRouteTables", "vpc", "openAPI") + return +} + +// CreateDescribeRouteTablesResponse creates a response to parse from DescribeRouteTables response +func CreateDescribeRouteTablesResponse() (response *DescribeRouteTablesResponse) { + response = &DescribeRouteTablesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_router_interfaces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_router_interfaces.go new file mode 100644 index 0000000..56b45d2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_router_interfaces.go @@ -0,0 +1,118 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRouterInterfaces invokes the vpc.DescribeRouterInterfaces API synchronously +// api document: https://help.aliyun.com/api/vpc/describerouterinterfaces.html +func (client *Client) DescribeRouterInterfaces(request *DescribeRouterInterfacesRequest) (response *DescribeRouterInterfacesResponse, err error) { + response = CreateDescribeRouterInterfacesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRouterInterfacesWithChan invokes the vpc.DescribeRouterInterfaces API asynchronously +// api document: https://help.aliyun.com/api/vpc/describerouterinterfaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRouterInterfacesWithChan(request *DescribeRouterInterfacesRequest) (<-chan *DescribeRouterInterfacesResponse, <-chan error) { + responseChan := make(chan *DescribeRouterInterfacesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRouterInterfaces(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRouterInterfacesWithCallback invokes the vpc.DescribeRouterInterfaces API asynchronously +// api document: https://help.aliyun.com/api/vpc/describerouterinterfaces.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRouterInterfacesWithCallback(request *DescribeRouterInterfacesRequest, callback func(response *DescribeRouterInterfacesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRouterInterfacesResponse + var err error + defer close(result) + response, err = client.DescribeRouterInterfaces(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRouterInterfacesRequest is the request struct for api DescribeRouterInterfaces +type DescribeRouterInterfacesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Filter *[]DescribeRouterInterfacesFilter `position:"Query" name:"Filter" type:"Repeated"` +} + +// DescribeRouterInterfacesFilter is a repeated param struct in DescribeRouterInterfacesRequest +type DescribeRouterInterfacesFilter struct { + Key string `name:"Key"` + Value *[]string `name:"Value" type:"Repeated"` +} + +// DescribeRouterInterfacesResponse is the response struct for api DescribeRouterInterfaces +type DescribeRouterInterfacesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RouterInterfaceSet RouterInterfaceSetInDescribeRouterInterfaces `json:"RouterInterfaceSet" xml:"RouterInterfaceSet"` +} + +// CreateDescribeRouterInterfacesRequest creates a request to invoke DescribeRouterInterfaces API +func CreateDescribeRouterInterfacesRequest() (request *DescribeRouterInterfacesRequest) { + request = &DescribeRouterInterfacesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeRouterInterfaces", "vpc", "openAPI") + return +} + +// CreateDescribeRouterInterfacesResponse creates a response to parse from DescribeRouterInterfaces response +func CreateDescribeRouterInterfacesResponse() (response *DescribeRouterInterfacesResponse) { + response = &DescribeRouterInterfacesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_router_interfaces_for_global.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_router_interfaces_for_global.go new file mode 100644 index 0000000..dbdbd8f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_router_interfaces_for_global.go @@ -0,0 +1,117 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRouterInterfacesForGlobal invokes the vpc.DescribeRouterInterfacesForGlobal API synchronously +// api document: https://help.aliyun.com/api/vpc/describerouterinterfacesforglobal.html +func (client *Client) DescribeRouterInterfacesForGlobal(request *DescribeRouterInterfacesForGlobalRequest) (response *DescribeRouterInterfacesForGlobalResponse, err error) { + response = CreateDescribeRouterInterfacesForGlobalResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRouterInterfacesForGlobalWithChan invokes the vpc.DescribeRouterInterfacesForGlobal API asynchronously +// api document: https://help.aliyun.com/api/vpc/describerouterinterfacesforglobal.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRouterInterfacesForGlobalWithChan(request *DescribeRouterInterfacesForGlobalRequest) (<-chan *DescribeRouterInterfacesForGlobalResponse, <-chan error) { + responseChan := make(chan *DescribeRouterInterfacesForGlobalResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRouterInterfacesForGlobal(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRouterInterfacesForGlobalWithCallback invokes the vpc.DescribeRouterInterfacesForGlobal API asynchronously +// api document: https://help.aliyun.com/api/vpc/describerouterinterfacesforglobal.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeRouterInterfacesForGlobalWithCallback(request *DescribeRouterInterfacesForGlobalRequest, callback func(response *DescribeRouterInterfacesForGlobalResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRouterInterfacesForGlobalResponse + var err error + defer close(result) + response, err = client.DescribeRouterInterfacesForGlobal(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRouterInterfacesForGlobalRequest is the request struct for api DescribeRouterInterfacesForGlobal +type DescribeRouterInterfacesForGlobalRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Status string `position:"Query" name:"Status"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeRouterInterfacesForGlobalResponse is the response struct for api DescribeRouterInterfacesForGlobal +type DescribeRouterInterfacesForGlobalResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Desc string `json:"desc" xml:"desc"` + Success bool `json:"Success" xml:"Success"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RouterInterfaceSet RouterInterfaceSetInDescribeRouterInterfacesForGlobal `json:"RouterInterfaceSet" xml:"RouterInterfaceSet"` +} + +// CreateDescribeRouterInterfacesForGlobalRequest creates a request to invoke DescribeRouterInterfacesForGlobal API +func CreateDescribeRouterInterfacesForGlobalRequest() (request *DescribeRouterInterfacesForGlobalRequest) { + request = &DescribeRouterInterfacesForGlobalRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeRouterInterfacesForGlobal", "vpc", "openAPI") + return +} + +// CreateDescribeRouterInterfacesForGlobalResponse creates a response to parse from DescribeRouterInterfacesForGlobal response +func CreateDescribeRouterInterfacesForGlobalResponse() (response *DescribeRouterInterfacesForGlobalResponse) { + response = &DescribeRouterInterfacesForGlobalResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_server_related_global_acceleration_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_server_related_global_acceleration_instances.go new file mode 100644 index 0000000..afb07f3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_server_related_global_acceleration_instances.go @@ -0,0 +1,109 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeServerRelatedGlobalAccelerationInstances invokes the vpc.DescribeServerRelatedGlobalAccelerationInstances API synchronously +// api document: https://help.aliyun.com/api/vpc/describeserverrelatedglobalaccelerationinstances.html +func (client *Client) DescribeServerRelatedGlobalAccelerationInstances(request *DescribeServerRelatedGlobalAccelerationInstancesRequest) (response *DescribeServerRelatedGlobalAccelerationInstancesResponse, err error) { + response = CreateDescribeServerRelatedGlobalAccelerationInstancesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeServerRelatedGlobalAccelerationInstancesWithChan invokes the vpc.DescribeServerRelatedGlobalAccelerationInstances API asynchronously +// api document: https://help.aliyun.com/api/vpc/describeserverrelatedglobalaccelerationinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeServerRelatedGlobalAccelerationInstancesWithChan(request *DescribeServerRelatedGlobalAccelerationInstancesRequest) (<-chan *DescribeServerRelatedGlobalAccelerationInstancesResponse, <-chan error) { + responseChan := make(chan *DescribeServerRelatedGlobalAccelerationInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeServerRelatedGlobalAccelerationInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeServerRelatedGlobalAccelerationInstancesWithCallback invokes the vpc.DescribeServerRelatedGlobalAccelerationInstances API asynchronously +// api document: https://help.aliyun.com/api/vpc/describeserverrelatedglobalaccelerationinstances.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeServerRelatedGlobalAccelerationInstancesWithCallback(request *DescribeServerRelatedGlobalAccelerationInstancesRequest, callback func(response *DescribeServerRelatedGlobalAccelerationInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeServerRelatedGlobalAccelerationInstancesResponse + var err error + defer close(result) + response, err = client.DescribeServerRelatedGlobalAccelerationInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeServerRelatedGlobalAccelerationInstancesRequest is the request struct for api DescribeServerRelatedGlobalAccelerationInstances +type DescribeServerRelatedGlobalAccelerationInstancesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ServerId string `position:"Query" name:"ServerId"` + ServerType string `position:"Query" name:"ServerType"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeServerRelatedGlobalAccelerationInstancesResponse is the response struct for api DescribeServerRelatedGlobalAccelerationInstances +type DescribeServerRelatedGlobalAccelerationInstancesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + GlobalAccelerationInstances GlobalAccelerationInstancesInDescribeServerRelatedGlobalAccelerationInstances `json:"GlobalAccelerationInstances" xml:"GlobalAccelerationInstances"` +} + +// CreateDescribeServerRelatedGlobalAccelerationInstancesRequest creates a request to invoke DescribeServerRelatedGlobalAccelerationInstances API +func CreateDescribeServerRelatedGlobalAccelerationInstancesRequest() (request *DescribeServerRelatedGlobalAccelerationInstancesRequest) { + request = &DescribeServerRelatedGlobalAccelerationInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeServerRelatedGlobalAccelerationInstances", "vpc", "openAPI") + return +} + +// CreateDescribeServerRelatedGlobalAccelerationInstancesResponse creates a response to parse from DescribeServerRelatedGlobalAccelerationInstances response +func CreateDescribeServerRelatedGlobalAccelerationInstancesResponse() (response *DescribeServerRelatedGlobalAccelerationInstancesResponse) { + response = &DescribeServerRelatedGlobalAccelerationInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_snat_table_entries.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_snat_table_entries.go new file mode 100644 index 0000000..988e086 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_snat_table_entries.go @@ -0,0 +1,114 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSnatTableEntries invokes the vpc.DescribeSnatTableEntries API synchronously +// api document: https://help.aliyun.com/api/vpc/describesnattableentries.html +func (client *Client) DescribeSnatTableEntries(request *DescribeSnatTableEntriesRequest) (response *DescribeSnatTableEntriesResponse, err error) { + response = CreateDescribeSnatTableEntriesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSnatTableEntriesWithChan invokes the vpc.DescribeSnatTableEntries API asynchronously +// api document: https://help.aliyun.com/api/vpc/describesnattableentries.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSnatTableEntriesWithChan(request *DescribeSnatTableEntriesRequest) (<-chan *DescribeSnatTableEntriesResponse, <-chan error) { + responseChan := make(chan *DescribeSnatTableEntriesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSnatTableEntries(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSnatTableEntriesWithCallback invokes the vpc.DescribeSnatTableEntries API asynchronously +// api document: https://help.aliyun.com/api/vpc/describesnattableentries.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSnatTableEntriesWithCallback(request *DescribeSnatTableEntriesRequest, callback func(response *DescribeSnatTableEntriesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSnatTableEntriesResponse + var err error + defer close(result) + response, err = client.DescribeSnatTableEntries(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSnatTableEntriesRequest is the request struct for api DescribeSnatTableEntries +type DescribeSnatTableEntriesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SnatTableId string `position:"Query" name:"SnatTableId"` + SnatEntryId string `position:"Query" name:"SnatEntryId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeSnatTableEntriesResponse is the response struct for api DescribeSnatTableEntries +type DescribeSnatTableEntriesResponse 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"` + SnatTableEntries SnatTableEntries `json:"SnatTableEntries" xml:"SnatTableEntries"` +} + +// CreateDescribeSnatTableEntriesRequest creates a request to invoke DescribeSnatTableEntries API +func CreateDescribeSnatTableEntriesRequest() (request *DescribeSnatTableEntriesRequest) { + request = &DescribeSnatTableEntriesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeSnatTableEntries", "vpc", "openAPI") + return +} + +// CreateDescribeSnatTableEntriesResponse creates a response to parse from DescribeSnatTableEntries response +func CreateDescribeSnatTableEntriesResponse() (response *DescribeSnatTableEntriesResponse) { + response = &DescribeSnatTableEntriesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_ssl_vpn_client_cert.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_ssl_vpn_client_cert.go new file mode 100644 index 0000000..e9506fe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_ssl_vpn_client_cert.go @@ -0,0 +1,118 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSslVpnClientCert invokes the vpc.DescribeSslVpnClientCert API synchronously +// api document: https://help.aliyun.com/api/vpc/describesslvpnclientcert.html +func (client *Client) DescribeSslVpnClientCert(request *DescribeSslVpnClientCertRequest) (response *DescribeSslVpnClientCertResponse, err error) { + response = CreateDescribeSslVpnClientCertResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSslVpnClientCertWithChan invokes the vpc.DescribeSslVpnClientCert API asynchronously +// api document: https://help.aliyun.com/api/vpc/describesslvpnclientcert.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSslVpnClientCertWithChan(request *DescribeSslVpnClientCertRequest) (<-chan *DescribeSslVpnClientCertResponse, <-chan error) { + responseChan := make(chan *DescribeSslVpnClientCertResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSslVpnClientCert(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSslVpnClientCertWithCallback invokes the vpc.DescribeSslVpnClientCert API asynchronously +// api document: https://help.aliyun.com/api/vpc/describesslvpnclientcert.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSslVpnClientCertWithCallback(request *DescribeSslVpnClientCertRequest, callback func(response *DescribeSslVpnClientCertResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSslVpnClientCertResponse + var err error + defer close(result) + response, err = client.DescribeSslVpnClientCert(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSslVpnClientCertRequest is the request struct for api DescribeSslVpnClientCert +type DescribeSslVpnClientCertRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SslVpnClientCertId string `position:"Query" name:"SslVpnClientCertId"` +} + +// DescribeSslVpnClientCertResponse is the response struct for api DescribeSslVpnClientCert +type DescribeSslVpnClientCertResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegionId string `json:"RegionId" xml:"RegionId"` + SslVpnClientCertId string `json:"SslVpnClientCertId" xml:"SslVpnClientCertId"` + Name string `json:"Name" xml:"Name"` + SslVpnServerId string `json:"SslVpnServerId" xml:"SslVpnServerId"` + CaCert string `json:"CaCert" xml:"CaCert"` + ClientCert string `json:"ClientCert" xml:"ClientCert"` + ClientKey string `json:"ClientKey" xml:"ClientKey"` + ClientConfig string `json:"ClientConfig" xml:"ClientConfig"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` + EndTime int `json:"EndTime" xml:"EndTime"` + Status string `json:"Status" xml:"Status"` +} + +// CreateDescribeSslVpnClientCertRequest creates a request to invoke DescribeSslVpnClientCert API +func CreateDescribeSslVpnClientCertRequest() (request *DescribeSslVpnClientCertRequest) { + request = &DescribeSslVpnClientCertRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeSslVpnClientCert", "vpc", "openAPI") + return +} + +// CreateDescribeSslVpnClientCertResponse creates a response to parse from DescribeSslVpnClientCert response +func CreateDescribeSslVpnClientCertResponse() (response *DescribeSslVpnClientCertResponse) { + response = &DescribeSslVpnClientCertResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_ssl_vpn_client_certs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_ssl_vpn_client_certs.go new file mode 100644 index 0000000..3d7fd58 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_ssl_vpn_client_certs.go @@ -0,0 +1,114 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSslVpnClientCerts invokes the vpc.DescribeSslVpnClientCerts API synchronously +// api document: https://help.aliyun.com/api/vpc/describesslvpnclientcerts.html +func (client *Client) DescribeSslVpnClientCerts(request *DescribeSslVpnClientCertsRequest) (response *DescribeSslVpnClientCertsResponse, err error) { + response = CreateDescribeSslVpnClientCertsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSslVpnClientCertsWithChan invokes the vpc.DescribeSslVpnClientCerts API asynchronously +// api document: https://help.aliyun.com/api/vpc/describesslvpnclientcerts.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSslVpnClientCertsWithChan(request *DescribeSslVpnClientCertsRequest) (<-chan *DescribeSslVpnClientCertsResponse, <-chan error) { + responseChan := make(chan *DescribeSslVpnClientCertsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSslVpnClientCerts(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSslVpnClientCertsWithCallback invokes the vpc.DescribeSslVpnClientCerts API asynchronously +// api document: https://help.aliyun.com/api/vpc/describesslvpnclientcerts.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSslVpnClientCertsWithCallback(request *DescribeSslVpnClientCertsRequest, callback func(response *DescribeSslVpnClientCertsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSslVpnClientCertsResponse + var err error + defer close(result) + response, err = client.DescribeSslVpnClientCerts(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSslVpnClientCertsRequest is the request struct for api DescribeSslVpnClientCerts +type DescribeSslVpnClientCertsRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SslVpnServerId string `position:"Query" name:"SslVpnServerId"` + Name string `position:"Query" name:"Name"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeSslVpnClientCertsResponse is the response struct for api DescribeSslVpnClientCerts +type DescribeSslVpnClientCertsResponse 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"` + SslVpnClientCertKeys SslVpnClientCertKeys `json:"SslVpnClientCertKeys" xml:"SslVpnClientCertKeys"` +} + +// CreateDescribeSslVpnClientCertsRequest creates a request to invoke DescribeSslVpnClientCerts API +func CreateDescribeSslVpnClientCertsRequest() (request *DescribeSslVpnClientCertsRequest) { + request = &DescribeSslVpnClientCertsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeSslVpnClientCerts", "vpc", "openAPI") + return +} + +// CreateDescribeSslVpnClientCertsResponse creates a response to parse from DescribeSslVpnClientCerts response +func CreateDescribeSslVpnClientCertsResponse() (response *DescribeSslVpnClientCertsResponse) { + response = &DescribeSslVpnClientCertsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_ssl_vpn_servers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_ssl_vpn_servers.go new file mode 100644 index 0000000..bf7c3fa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_ssl_vpn_servers.go @@ -0,0 +1,115 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSslVpnServers invokes the vpc.DescribeSslVpnServers API synchronously +// api document: https://help.aliyun.com/api/vpc/describesslvpnservers.html +func (client *Client) DescribeSslVpnServers(request *DescribeSslVpnServersRequest) (response *DescribeSslVpnServersResponse, err error) { + response = CreateDescribeSslVpnServersResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSslVpnServersWithChan invokes the vpc.DescribeSslVpnServers API asynchronously +// api document: https://help.aliyun.com/api/vpc/describesslvpnservers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSslVpnServersWithChan(request *DescribeSslVpnServersRequest) (<-chan *DescribeSslVpnServersResponse, <-chan error) { + responseChan := make(chan *DescribeSslVpnServersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSslVpnServers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSslVpnServersWithCallback invokes the vpc.DescribeSslVpnServers API asynchronously +// api document: https://help.aliyun.com/api/vpc/describesslvpnservers.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeSslVpnServersWithCallback(request *DescribeSslVpnServersRequest, callback func(response *DescribeSslVpnServersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSslVpnServersResponse + var err error + defer close(result) + response, err = client.DescribeSslVpnServers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSslVpnServersRequest is the request struct for api DescribeSslVpnServers +type DescribeSslVpnServersRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SslVpnServerId string `position:"Query" name:"SslVpnServerId"` + VpnGatewayId string `position:"Query" name:"VpnGatewayId"` + Name string `position:"Query" name:"Name"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeSslVpnServersResponse is the response struct for api DescribeSslVpnServers +type DescribeSslVpnServersResponse 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"` + SslVpnServers SslVpnServers `json:"SslVpnServers" xml:"SslVpnServers"` +} + +// CreateDescribeSslVpnServersRequest creates a request to invoke DescribeSslVpnServers API +func CreateDescribeSslVpnServersRequest() (request *DescribeSslVpnServersRequest) { + request = &DescribeSslVpnServersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeSslVpnServers", "vpc", "openAPI") + return +} + +// CreateDescribeSslVpnServersResponse creates a response to parse from DescribeSslVpnServers response +func CreateDescribeSslVpnServersResponse() (response *DescribeSslVpnServersResponse) { + response = &DescribeSslVpnServersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_v_routers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_v_routers.go new file mode 100644 index 0000000..4e5adec --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_v_routers.go @@ -0,0 +1,113 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVRouters invokes the vpc.DescribeVRouters API synchronously +// api document: https://help.aliyun.com/api/vpc/describevrouters.html +func (client *Client) DescribeVRouters(request *DescribeVRoutersRequest) (response *DescribeVRoutersResponse, err error) { + response = CreateDescribeVRoutersResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVRoutersWithChan invokes the vpc.DescribeVRouters API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevrouters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVRoutersWithChan(request *DescribeVRoutersRequest) (<-chan *DescribeVRoutersResponse, <-chan error) { + responseChan := make(chan *DescribeVRoutersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVRouters(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVRoutersWithCallback invokes the vpc.DescribeVRouters API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevrouters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVRoutersWithCallback(request *DescribeVRoutersRequest, callback func(response *DescribeVRoutersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVRoutersResponse + var err error + defer close(result) + response, err = client.DescribeVRouters(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVRoutersRequest is the request struct for api DescribeVRouters +type DescribeVRoutersRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VRouterId string `position:"Query" name:"VRouterId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeVRoutersResponse is the response struct for api DescribeVRouters +type DescribeVRoutersResponse 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"` + VRouters VRouters `json:"VRouters" xml:"VRouters"` +} + +// CreateDescribeVRoutersRequest creates a request to invoke DescribeVRouters API +func CreateDescribeVRoutersRequest() (request *DescribeVRoutersRequest) { + request = &DescribeVRoutersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeVRouters", "vpc", "openAPI") + return +} + +// CreateDescribeVRoutersResponse creates a response to parse from DescribeVRouters response +func CreateDescribeVRoutersResponse() (response *DescribeVRoutersResponse) { + response = &DescribeVRoutersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_v_switch_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_v_switch_attributes.go new file mode 100644 index 0000000..a1f9982 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_v_switch_attributes.go @@ -0,0 +1,118 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVSwitchAttributes invokes the vpc.DescribeVSwitchAttributes API synchronously +// api document: https://help.aliyun.com/api/vpc/describevswitchattributes.html +func (client *Client) DescribeVSwitchAttributes(request *DescribeVSwitchAttributesRequest) (response *DescribeVSwitchAttributesResponse, err error) { + response = CreateDescribeVSwitchAttributesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVSwitchAttributesWithChan invokes the vpc.DescribeVSwitchAttributes API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevswitchattributes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVSwitchAttributesWithChan(request *DescribeVSwitchAttributesRequest) (<-chan *DescribeVSwitchAttributesResponse, <-chan error) { + responseChan := make(chan *DescribeVSwitchAttributesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVSwitchAttributes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVSwitchAttributesWithCallback invokes the vpc.DescribeVSwitchAttributes API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevswitchattributes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVSwitchAttributesWithCallback(request *DescribeVSwitchAttributesRequest, callback func(response *DescribeVSwitchAttributesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVSwitchAttributesResponse + var err error + defer close(result) + response, err = client.DescribeVSwitchAttributes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVSwitchAttributesRequest is the request struct for api DescribeVSwitchAttributes +type DescribeVSwitchAttributesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeVSwitchAttributesResponse is the response struct for api DescribeVSwitchAttributes +type DescribeVSwitchAttributesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + VpcId string `json:"VpcId" xml:"VpcId"` + Status string `json:"Status" xml:"Status"` + CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + AvailableIpAddressCount int `json:"AvailableIpAddressCount" xml:"AvailableIpAddressCount"` + Description string `json:"Description" xml:"Description"` + VSwitchName string `json:"VSwitchName" xml:"VSwitchName"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + IsDefault bool `json:"IsDefault" xml:"IsDefault"` + CloudResources CloudResourcesInDescribeVSwitchAttributes `json:"CloudResources" xml:"CloudResources"` +} + +// CreateDescribeVSwitchAttributesRequest creates a request to invoke DescribeVSwitchAttributes API +func CreateDescribeVSwitchAttributesRequest() (request *DescribeVSwitchAttributesRequest) { + request = &DescribeVSwitchAttributesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeVSwitchAttributes", "vpc", "openAPI") + return +} + +// CreateDescribeVSwitchAttributesResponse creates a response to parse from DescribeVSwitchAttributes response +func CreateDescribeVSwitchAttributesResponse() (response *DescribeVSwitchAttributesResponse) { + response = &DescribeVSwitchAttributesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_v_switches.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_v_switches.go new file mode 100644 index 0000000..57bed1a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_v_switches.go @@ -0,0 +1,117 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVSwitches invokes the vpc.DescribeVSwitches API synchronously +// api document: https://help.aliyun.com/api/vpc/describevswitches.html +func (client *Client) DescribeVSwitches(request *DescribeVSwitchesRequest) (response *DescribeVSwitchesResponse, err error) { + response = CreateDescribeVSwitchesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVSwitchesWithChan invokes the vpc.DescribeVSwitches API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevswitches.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVSwitchesWithChan(request *DescribeVSwitchesRequest) (<-chan *DescribeVSwitchesResponse, <-chan error) { + responseChan := make(chan *DescribeVSwitchesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVSwitches(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVSwitchesWithCallback invokes the vpc.DescribeVSwitches API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevswitches.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVSwitchesWithCallback(request *DescribeVSwitchesRequest, callback func(response *DescribeVSwitchesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVSwitchesResponse + var err error + defer close(result) + response, err = client.DescribeVSwitches(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVSwitchesRequest is the request struct for api DescribeVSwitches +type DescribeVSwitchesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VpcId string `position:"Query" name:"VpcId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + ZoneId string `position:"Query" name:"ZoneId"` + VSwitchName string `position:"Query" name:"VSwitchName"` + IsDefault requests.Boolean `position:"Query" name:"IsDefault"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeVSwitchesResponse is the response struct for api DescribeVSwitches +type DescribeVSwitchesResponse 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"` + VSwitches VSwitches `json:"VSwitches" xml:"VSwitches"` +} + +// CreateDescribeVSwitchesRequest creates a request to invoke DescribeVSwitches API +func CreateDescribeVSwitchesRequest() (request *DescribeVSwitchesRequest) { + request = &DescribeVSwitchesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeVSwitches", "vpc", "openAPI") + return +} + +// CreateDescribeVSwitchesResponse creates a response to parse from DescribeVSwitches response +func CreateDescribeVSwitchesResponse() (response *DescribeVSwitchesResponse) { + response = &DescribeVSwitchesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_virtual_border_routers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_virtual_border_routers.go new file mode 100644 index 0000000..ff4764e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_virtual_border_routers.go @@ -0,0 +1,118 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVirtualBorderRouters invokes the vpc.DescribeVirtualBorderRouters API synchronously +// api document: https://help.aliyun.com/api/vpc/describevirtualborderrouters.html +func (client *Client) DescribeVirtualBorderRouters(request *DescribeVirtualBorderRoutersRequest) (response *DescribeVirtualBorderRoutersResponse, err error) { + response = CreateDescribeVirtualBorderRoutersResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVirtualBorderRoutersWithChan invokes the vpc.DescribeVirtualBorderRouters API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevirtualborderrouters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVirtualBorderRoutersWithChan(request *DescribeVirtualBorderRoutersRequest) (<-chan *DescribeVirtualBorderRoutersResponse, <-chan error) { + responseChan := make(chan *DescribeVirtualBorderRoutersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVirtualBorderRouters(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVirtualBorderRoutersWithCallback invokes the vpc.DescribeVirtualBorderRouters API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevirtualborderrouters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVirtualBorderRoutersWithCallback(request *DescribeVirtualBorderRoutersRequest, callback func(response *DescribeVirtualBorderRoutersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVirtualBorderRoutersResponse + var err error + defer close(result) + response, err = client.DescribeVirtualBorderRouters(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVirtualBorderRoutersRequest is the request struct for api DescribeVirtualBorderRouters +type DescribeVirtualBorderRoutersRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Filter *[]DescribeVirtualBorderRoutersFilter `position:"Query" name:"Filter" type:"Repeated"` +} + +// DescribeVirtualBorderRoutersFilter is a repeated param struct in DescribeVirtualBorderRoutersRequest +type DescribeVirtualBorderRoutersFilter struct { + Key string `name:"Key"` + Value *[]string `name:"Value" type:"Repeated"` +} + +// DescribeVirtualBorderRoutersResponse is the response struct for api DescribeVirtualBorderRouters +type DescribeVirtualBorderRoutersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + VirtualBorderRouterSet VirtualBorderRouterSet `json:"VirtualBorderRouterSet" xml:"VirtualBorderRouterSet"` +} + +// CreateDescribeVirtualBorderRoutersRequest creates a request to invoke DescribeVirtualBorderRouters API +func CreateDescribeVirtualBorderRoutersRequest() (request *DescribeVirtualBorderRoutersRequest) { + request = &DescribeVirtualBorderRoutersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeVirtualBorderRouters", "vpc", "openAPI") + return +} + +// CreateDescribeVirtualBorderRoutersResponse creates a response to parse from DescribeVirtualBorderRouters response +func CreateDescribeVirtualBorderRoutersResponse() (response *DescribeVirtualBorderRoutersResponse) { + response = &DescribeVirtualBorderRoutersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_virtual_border_routers_for_physical_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_virtual_border_routers_for_physical_connection.go new file mode 100644 index 0000000..4ae63e1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_virtual_border_routers_for_physical_connection.go @@ -0,0 +1,119 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVirtualBorderRoutersForPhysicalConnection invokes the vpc.DescribeVirtualBorderRoutersForPhysicalConnection API synchronously +// api document: https://help.aliyun.com/api/vpc/describevirtualborderroutersforphysicalconnection.html +func (client *Client) DescribeVirtualBorderRoutersForPhysicalConnection(request *DescribeVirtualBorderRoutersForPhysicalConnectionRequest) (response *DescribeVirtualBorderRoutersForPhysicalConnectionResponse, err error) { + response = CreateDescribeVirtualBorderRoutersForPhysicalConnectionResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVirtualBorderRoutersForPhysicalConnectionWithChan invokes the vpc.DescribeVirtualBorderRoutersForPhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevirtualborderroutersforphysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVirtualBorderRoutersForPhysicalConnectionWithChan(request *DescribeVirtualBorderRoutersForPhysicalConnectionRequest) (<-chan *DescribeVirtualBorderRoutersForPhysicalConnectionResponse, <-chan error) { + responseChan := make(chan *DescribeVirtualBorderRoutersForPhysicalConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVirtualBorderRoutersForPhysicalConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVirtualBorderRoutersForPhysicalConnectionWithCallback invokes the vpc.DescribeVirtualBorderRoutersForPhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevirtualborderroutersforphysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVirtualBorderRoutersForPhysicalConnectionWithCallback(request *DescribeVirtualBorderRoutersForPhysicalConnectionRequest, callback func(response *DescribeVirtualBorderRoutersForPhysicalConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVirtualBorderRoutersForPhysicalConnectionResponse + var err error + defer close(result) + response, err = client.DescribeVirtualBorderRoutersForPhysicalConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVirtualBorderRoutersForPhysicalConnectionRequest is the request struct for api DescribeVirtualBorderRoutersForPhysicalConnection +type DescribeVirtualBorderRoutersForPhysicalConnectionRequest struct { + *requests.RpcRequest + Filter *[]DescribeVirtualBorderRoutersForPhysicalConnectionFilter `position:"Query" name:"Filter" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeVirtualBorderRoutersForPhysicalConnectionFilter is a repeated param struct in DescribeVirtualBorderRoutersForPhysicalConnectionRequest +type DescribeVirtualBorderRoutersForPhysicalConnectionFilter struct { + Key string `name:"Key"` + Value *[]string `name:"Value" type:"Repeated"` +} + +// DescribeVirtualBorderRoutersForPhysicalConnectionResponse is the response struct for api DescribeVirtualBorderRoutersForPhysicalConnection +type DescribeVirtualBorderRoutersForPhysicalConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + VirtualBorderRouterForPhysicalConnectionSet VirtualBorderRouterForPhysicalConnectionSet `json:"VirtualBorderRouterForPhysicalConnectionSet" xml:"VirtualBorderRouterForPhysicalConnectionSet"` +} + +// CreateDescribeVirtualBorderRoutersForPhysicalConnectionRequest creates a request to invoke DescribeVirtualBorderRoutersForPhysicalConnection API +func CreateDescribeVirtualBorderRoutersForPhysicalConnectionRequest() (request *DescribeVirtualBorderRoutersForPhysicalConnectionRequest) { + request = &DescribeVirtualBorderRoutersForPhysicalConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeVirtualBorderRoutersForPhysicalConnection", "vpc", "openAPI") + return +} + +// CreateDescribeVirtualBorderRoutersForPhysicalConnectionResponse creates a response to parse from DescribeVirtualBorderRoutersForPhysicalConnection response +func CreateDescribeVirtualBorderRoutersForPhysicalConnectionResponse() (response *DescribeVirtualBorderRoutersForPhysicalConnectionResponse) { + response = &DescribeVirtualBorderRoutersForPhysicalConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpc_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpc_attribute.go new file mode 100644 index 0000000..f57d2ad --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpc_attribute.go @@ -0,0 +1,123 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVpcAttribute invokes the vpc.DescribeVpcAttribute API synchronously +// api document: https://help.aliyun.com/api/vpc/describevpcattribute.html +func (client *Client) DescribeVpcAttribute(request *DescribeVpcAttributeRequest) (response *DescribeVpcAttributeResponse, err error) { + response = CreateDescribeVpcAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVpcAttributeWithChan invokes the vpc.DescribeVpcAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevpcattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVpcAttributeWithChan(request *DescribeVpcAttributeRequest) (<-chan *DescribeVpcAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeVpcAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVpcAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVpcAttributeWithCallback invokes the vpc.DescribeVpcAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevpcattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVpcAttributeWithCallback(request *DescribeVpcAttributeRequest, callback func(response *DescribeVpcAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVpcAttributeResponse + var err error + defer close(result) + response, err = client.DescribeVpcAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVpcAttributeRequest is the request struct for api DescribeVpcAttribute +type DescribeVpcAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VpcId string `position:"Query" name:"VpcId"` + IsDefault requests.Boolean `position:"Query" name:"IsDefault"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeVpcAttributeResponse is the response struct for api DescribeVpcAttribute +type DescribeVpcAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VpcId string `json:"VpcId" xml:"VpcId"` + RegionId string `json:"RegionId" xml:"RegionId"` + Status string `json:"Status" xml:"Status"` + VpcName string `json:"VpcName" xml:"VpcName"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` + VRouterId string `json:"VRouterId" xml:"VRouterId"` + Description string `json:"Description" xml:"Description"` + IsDefault bool `json:"IsDefault" xml:"IsDefault"` + ClassicLinkEnabled bool `json:"ClassicLinkEnabled" xml:"ClassicLinkEnabled"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + VSwitchIds VSwitchIdsInDescribeVpcAttribute `json:"VSwitchIds" xml:"VSwitchIds"` + UserCidrs UserCidrsInDescribeVpcAttribute `json:"UserCidrs" xml:"UserCidrs"` + AssociatedCens AssociatedCensInDescribeVpcAttribute `json:"AssociatedCens" xml:"AssociatedCens"` + CloudResources CloudResourcesInDescribeVpcAttribute `json:"CloudResources" xml:"CloudResources"` +} + +// CreateDescribeVpcAttributeRequest creates a request to invoke DescribeVpcAttribute API +func CreateDescribeVpcAttributeRequest() (request *DescribeVpcAttributeRequest) { + request = &DescribeVpcAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeVpcAttribute", "vpc", "openAPI") + return +} + +// CreateDescribeVpcAttributeResponse creates a response to parse from DescribeVpcAttribute response +func CreateDescribeVpcAttributeResponse() (response *DescribeVpcAttributeResponse) { + response = &DescribeVpcAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpcs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpcs.go new file mode 100644 index 0000000..11158ee --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpcs.go @@ -0,0 +1,116 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVpcs invokes the vpc.DescribeVpcs API synchronously +// api document: https://help.aliyun.com/api/vpc/describevpcs.html +func (client *Client) DescribeVpcs(request *DescribeVpcsRequest) (response *DescribeVpcsResponse, err error) { + response = CreateDescribeVpcsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVpcsWithChan invokes the vpc.DescribeVpcs API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevpcs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVpcsWithChan(request *DescribeVpcsRequest) (<-chan *DescribeVpcsResponse, <-chan error) { + responseChan := make(chan *DescribeVpcsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVpcs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVpcsWithCallback invokes the vpc.DescribeVpcs API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevpcs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVpcsWithCallback(request *DescribeVpcsRequest, callback func(response *DescribeVpcsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVpcsResponse + var err error + defer close(result) + response, err = client.DescribeVpcs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVpcsRequest is the request struct for api DescribeVpcs +type DescribeVpcsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VpcId string `position:"Query" name:"VpcId"` + VpcName string `position:"Query" name:"VpcName"` + IsDefault requests.Boolean `position:"Query" name:"IsDefault"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeVpcsResponse is the response struct for api DescribeVpcs +type DescribeVpcsResponse 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"` + Vpcs Vpcs `json:"Vpcs" xml:"Vpcs"` +} + +// CreateDescribeVpcsRequest creates a request to invoke DescribeVpcs API +func CreateDescribeVpcsRequest() (request *DescribeVpcsRequest) { + request = &DescribeVpcsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeVpcs", "vpc", "openAPI") + return +} + +// CreateDescribeVpcsResponse creates a response to parse from DescribeVpcs response +func CreateDescribeVpcsResponse() (response *DescribeVpcsResponse) { + response = &DescribeVpcsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpn_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpn_connection.go new file mode 100644 index 0000000..e6c0d82 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpn_connection.go @@ -0,0 +1,118 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVpnConnection invokes the vpc.DescribeVpnConnection API synchronously +// api document: https://help.aliyun.com/api/vpc/describevpnconnection.html +func (client *Client) DescribeVpnConnection(request *DescribeVpnConnectionRequest) (response *DescribeVpnConnectionResponse, err error) { + response = CreateDescribeVpnConnectionResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVpnConnectionWithChan invokes the vpc.DescribeVpnConnection API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevpnconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVpnConnectionWithChan(request *DescribeVpnConnectionRequest) (<-chan *DescribeVpnConnectionResponse, <-chan error) { + responseChan := make(chan *DescribeVpnConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVpnConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVpnConnectionWithCallback invokes the vpc.DescribeVpnConnection API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevpnconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVpnConnectionWithCallback(request *DescribeVpnConnectionRequest, callback func(response *DescribeVpnConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVpnConnectionResponse + var err error + defer close(result) + response, err = client.DescribeVpnConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVpnConnectionRequest is the request struct for api DescribeVpnConnection +type DescribeVpnConnectionRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VpnConnectionId string `position:"Query" name:"VpnConnectionId"` +} + +// DescribeVpnConnectionResponse is the response struct for api DescribeVpnConnection +type DescribeVpnConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VpnConnectionId string `json:"VpnConnectionId" xml:"VpnConnectionId"` + CustomerGatewayId string `json:"CustomerGatewayId" xml:"CustomerGatewayId"` + VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` + Name string `json:"Name" xml:"Name"` + LocalSubnet string `json:"LocalSubnet" xml:"LocalSubnet"` + RemoteSubnet string `json:"RemoteSubnet" xml:"RemoteSubnet"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` + EffectImmediately bool `json:"EffectImmediately" xml:"EffectImmediately"` + Status string `json:"Status" xml:"Status"` + IkeConfig IkeConfig `json:"IkeConfig" xml:"IkeConfig"` + IpsecConfig IpsecConfig `json:"IpsecConfig" xml:"IpsecConfig"` +} + +// CreateDescribeVpnConnectionRequest creates a request to invoke DescribeVpnConnection API +func CreateDescribeVpnConnectionRequest() (request *DescribeVpnConnectionRequest) { + request = &DescribeVpnConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeVpnConnection", "vpc", "openAPI") + return +} + +// CreateDescribeVpnConnectionResponse creates a response to parse from DescribeVpnConnection response +func CreateDescribeVpnConnectionResponse() (response *DescribeVpnConnectionResponse) { + response = &DescribeVpnConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpn_connection_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpn_connection_logs.go new file mode 100644 index 0000000..db458d7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpn_connection_logs.go @@ -0,0 +1,117 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVpnConnectionLogs invokes the vpc.DescribeVpnConnectionLogs API synchronously +// api document: https://help.aliyun.com/api/vpc/describevpnconnectionlogs.html +func (client *Client) DescribeVpnConnectionLogs(request *DescribeVpnConnectionLogsRequest) (response *DescribeVpnConnectionLogsResponse, err error) { + response = CreateDescribeVpnConnectionLogsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVpnConnectionLogsWithChan invokes the vpc.DescribeVpnConnectionLogs API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevpnconnectionlogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVpnConnectionLogsWithChan(request *DescribeVpnConnectionLogsRequest) (<-chan *DescribeVpnConnectionLogsResponse, <-chan error) { + responseChan := make(chan *DescribeVpnConnectionLogsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVpnConnectionLogs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVpnConnectionLogsWithCallback invokes the vpc.DescribeVpnConnectionLogs API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevpnconnectionlogs.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVpnConnectionLogsWithCallback(request *DescribeVpnConnectionLogsRequest, callback func(response *DescribeVpnConnectionLogsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVpnConnectionLogsResponse + var err error + defer close(result) + response, err = client.DescribeVpnConnectionLogs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVpnConnectionLogsRequest is the request struct for api DescribeVpnConnectionLogs +type DescribeVpnConnectionLogsRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VpnConnectionId string `position:"Query" name:"VpnConnectionId"` + From requests.Integer `position:"Query" name:"From"` + To requests.Integer `position:"Query" name:"To"` + MinutePeriod requests.Integer `position:"Query" name:"MinutePeriod"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeVpnConnectionLogsResponse is the response struct for api DescribeVpnConnectionLogs +type DescribeVpnConnectionLogsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Count int `json:"Count" xml:"Count"` + IsCompleted bool `json:"IsCompleted" xml:"IsCompleted"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateDescribeVpnConnectionLogsRequest creates a request to invoke DescribeVpnConnectionLogs API +func CreateDescribeVpnConnectionLogsRequest() (request *DescribeVpnConnectionLogsRequest) { + request = &DescribeVpnConnectionLogsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeVpnConnectionLogs", "vpc", "openAPI") + return +} + +// CreateDescribeVpnConnectionLogsResponse creates a response to parse from DescribeVpnConnectionLogs response +func CreateDescribeVpnConnectionLogsResponse() (response *DescribeVpnConnectionLogsResponse) { + response = &DescribeVpnConnectionLogsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpn_connections.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpn_connections.go new file mode 100644 index 0000000..e0d2d1c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpn_connections.go @@ -0,0 +1,114 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVpnConnections invokes the vpc.DescribeVpnConnections API synchronously +// api document: https://help.aliyun.com/api/vpc/describevpnconnections.html +func (client *Client) DescribeVpnConnections(request *DescribeVpnConnectionsRequest) (response *DescribeVpnConnectionsResponse, err error) { + response = CreateDescribeVpnConnectionsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVpnConnectionsWithChan invokes the vpc.DescribeVpnConnections API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevpnconnections.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVpnConnectionsWithChan(request *DescribeVpnConnectionsRequest) (<-chan *DescribeVpnConnectionsResponse, <-chan error) { + responseChan := make(chan *DescribeVpnConnectionsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVpnConnections(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVpnConnectionsWithCallback invokes the vpc.DescribeVpnConnections API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevpnconnections.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVpnConnectionsWithCallback(request *DescribeVpnConnectionsRequest, callback func(response *DescribeVpnConnectionsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVpnConnectionsResponse + var err error + defer close(result) + response, err = client.DescribeVpnConnections(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVpnConnectionsRequest is the request struct for api DescribeVpnConnections +type DescribeVpnConnectionsRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VpnGatewayId string `position:"Query" name:"VpnGatewayId"` + CustomerGatewayId string `position:"Query" name:"CustomerGatewayId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeVpnConnectionsResponse is the response struct for api DescribeVpnConnections +type DescribeVpnConnectionsResponse 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"` + VpnConnections VpnConnections `json:"VpnConnections" xml:"VpnConnections"` +} + +// CreateDescribeVpnConnectionsRequest creates a request to invoke DescribeVpnConnections API +func CreateDescribeVpnConnectionsRequest() (request *DescribeVpnConnectionsRequest) { + request = &DescribeVpnConnectionsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeVpnConnections", "vpc", "openAPI") + return +} + +// CreateDescribeVpnConnectionsResponse creates a response to parse from DescribeVpnConnections response +func CreateDescribeVpnConnectionsResponse() (response *DescribeVpnConnectionsResponse) { + response = &DescribeVpnConnectionsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpn_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpn_gateway.go new file mode 100644 index 0000000..9d66c9d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpn_gateway.go @@ -0,0 +1,122 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVpnGateway invokes the vpc.DescribeVpnGateway API synchronously +// api document: https://help.aliyun.com/api/vpc/describevpngateway.html +func (client *Client) DescribeVpnGateway(request *DescribeVpnGatewayRequest) (response *DescribeVpnGatewayResponse, err error) { + response = CreateDescribeVpnGatewayResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVpnGatewayWithChan invokes the vpc.DescribeVpnGateway API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevpngateway.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVpnGatewayWithChan(request *DescribeVpnGatewayRequest) (<-chan *DescribeVpnGatewayResponse, <-chan error) { + responseChan := make(chan *DescribeVpnGatewayResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVpnGateway(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVpnGatewayWithCallback invokes the vpc.DescribeVpnGateway API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevpngateway.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVpnGatewayWithCallback(request *DescribeVpnGatewayRequest, callback func(response *DescribeVpnGatewayResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVpnGatewayResponse + var err error + defer close(result) + response, err = client.DescribeVpnGateway(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVpnGatewayRequest is the request struct for api DescribeVpnGateway +type DescribeVpnGatewayRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VpnGatewayId string `position:"Query" name:"VpnGatewayId"` +} + +// DescribeVpnGatewayResponse is the response struct for api DescribeVpnGateway +type DescribeVpnGatewayResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` + VpcId string `json:"VpcId" xml:"VpcId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + InternetIp string `json:"InternetIp" xml:"InternetIp"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` + EndTime int `json:"EndTime" xml:"EndTime"` + Spec string `json:"Spec" xml:"Spec"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + Status string `json:"Status" xml:"Status"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + IpsecVpn string `json:"IpsecVpn" xml:"IpsecVpn"` + SslVpn string `json:"SslVpn" xml:"SslVpn"` + SslMaxConnections int `json:"SslMaxConnections" xml:"SslMaxConnections"` +} + +// CreateDescribeVpnGatewayRequest creates a request to invoke DescribeVpnGateway API +func CreateDescribeVpnGatewayRequest() (request *DescribeVpnGatewayRequest) { + request = &DescribeVpnGatewayRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeVpnGateway", "vpc", "openAPI") + return +} + +// CreateDescribeVpnGatewayResponse creates a response to parse from DescribeVpnGateway response +func CreateDescribeVpnGatewayResponse() (response *DescribeVpnGatewayResponse) { + response = &DescribeVpnGatewayResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpn_gateways.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpn_gateways.go new file mode 100644 index 0000000..571f4ae --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_vpn_gateways.go @@ -0,0 +1,116 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeVpnGateways invokes the vpc.DescribeVpnGateways API synchronously +// api document: https://help.aliyun.com/api/vpc/describevpngateways.html +func (client *Client) DescribeVpnGateways(request *DescribeVpnGatewaysRequest) (response *DescribeVpnGatewaysResponse, err error) { + response = CreateDescribeVpnGatewaysResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVpnGatewaysWithChan invokes the vpc.DescribeVpnGateways API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevpngateways.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVpnGatewaysWithChan(request *DescribeVpnGatewaysRequest) (<-chan *DescribeVpnGatewaysResponse, <-chan error) { + responseChan := make(chan *DescribeVpnGatewaysResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVpnGateways(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVpnGatewaysWithCallback invokes the vpc.DescribeVpnGateways API asynchronously +// api document: https://help.aliyun.com/api/vpc/describevpngateways.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeVpnGatewaysWithCallback(request *DescribeVpnGatewaysRequest, callback func(response *DescribeVpnGatewaysResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVpnGatewaysResponse + var err error + defer close(result) + response, err = client.DescribeVpnGateways(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVpnGatewaysRequest is the request struct for api DescribeVpnGateways +type DescribeVpnGatewaysRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VpcId string `position:"Query" name:"VpcId"` + VpnGatewayId string `position:"Query" name:"VpnGatewayId"` + Status string `position:"Query" name:"Status"` + BusinessStatus string `position:"Query" name:"BusinessStatus"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeVpnGatewaysResponse is the response struct for api DescribeVpnGateways +type DescribeVpnGatewaysResponse 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"` + VpnGateways VpnGateways `json:"VpnGateways" xml:"VpnGateways"` +} + +// CreateDescribeVpnGatewaysRequest creates a request to invoke DescribeVpnGateways API +func CreateDescribeVpnGatewaysRequest() (request *DescribeVpnGatewaysRequest) { + request = &DescribeVpnGatewaysRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeVpnGateways", "vpc", "openAPI") + return +} + +// CreateDescribeVpnGatewaysResponse creates a response to parse from DescribeVpnGateways response +func CreateDescribeVpnGatewaysResponse() (response *DescribeVpnGatewaysResponse) { + response = &DescribeVpnGatewaysResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_zones.go new file mode 100644 index 0000000..ee27df6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/describe_zones.go @@ -0,0 +1,107 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 vpc.DescribeZones API synchronously +// api document: https://help.aliyun.com/api/vpc/describezones.html +func (client *Client) DescribeZones(request *DescribeZonesRequest) (response *DescribeZonesResponse, err error) { + response = CreateDescribeZonesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeZonesWithChan invokes the vpc.DescribeZones API asynchronously +// api document: https://help.aliyun.com/api/vpc/describezones.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 vpc.DescribeZones API asynchronously +// api document: https://help.aliyun.com/api/vpc/describezones.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DescribeZonesResponse is the response struct for api DescribeZones +type DescribeZonesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Zones Zones `json:"Zones" xml:"Zones"` +} + +// CreateDescribeZonesRequest creates a request to invoke DescribeZones API +func CreateDescribeZonesRequest() (request *DescribeZonesRequest) { + request = &DescribeZonesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeZones", "vpc", "openAPI") + 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/vpc/disable_vpc_classic_link.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/disable_vpc_classic_link.go new file mode 100644 index 0000000..50ab189 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/disable_vpc_classic_link.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DisableVpcClassicLink invokes the vpc.DisableVpcClassicLink API synchronously +// api document: https://help.aliyun.com/api/vpc/disablevpcclassiclink.html +func (client *Client) DisableVpcClassicLink(request *DisableVpcClassicLinkRequest) (response *DisableVpcClassicLinkResponse, err error) { + response = CreateDisableVpcClassicLinkResponse() + err = client.DoAction(request, response) + return +} + +// DisableVpcClassicLinkWithChan invokes the vpc.DisableVpcClassicLink API asynchronously +// api document: https://help.aliyun.com/api/vpc/disablevpcclassiclink.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DisableVpcClassicLinkWithChan(request *DisableVpcClassicLinkRequest) (<-chan *DisableVpcClassicLinkResponse, <-chan error) { + responseChan := make(chan *DisableVpcClassicLinkResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DisableVpcClassicLink(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DisableVpcClassicLinkWithCallback invokes the vpc.DisableVpcClassicLink API asynchronously +// api document: https://help.aliyun.com/api/vpc/disablevpcclassiclink.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DisableVpcClassicLinkWithCallback(request *DisableVpcClassicLinkRequest, callback func(response *DisableVpcClassicLinkResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DisableVpcClassicLinkResponse + var err error + defer close(result) + response, err = client.DisableVpcClassicLink(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DisableVpcClassicLinkRequest is the request struct for api DisableVpcClassicLink +type DisableVpcClassicLinkRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VpcId string `position:"Query" name:"VpcId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// DisableVpcClassicLinkResponse is the response struct for api DisableVpcClassicLink +type DisableVpcClassicLinkResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDisableVpcClassicLinkRequest creates a request to invoke DisableVpcClassicLink API +func CreateDisableVpcClassicLinkRequest() (request *DisableVpcClassicLinkRequest) { + request = &DisableVpcClassicLinkRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DisableVpcClassicLink", "vpc", "openAPI") + return +} + +// CreateDisableVpcClassicLinkResponse creates a response to parse from DisableVpcClassicLink response +func CreateDisableVpcClassicLinkResponse() (response *DisableVpcClassicLinkResponse) { + response = &DisableVpcClassicLinkResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/download_vpn_connection_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/download_vpn_connection_config.go new file mode 100644 index 0000000..a8de0a4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/download_vpn_connection_config.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DownloadVpnConnectionConfig invokes the vpc.DownloadVpnConnectionConfig API synchronously +// api document: https://help.aliyun.com/api/vpc/downloadvpnconnectionconfig.html +func (client *Client) DownloadVpnConnectionConfig(request *DownloadVpnConnectionConfigRequest) (response *DownloadVpnConnectionConfigResponse, err error) { + response = CreateDownloadVpnConnectionConfigResponse() + err = client.DoAction(request, response) + return +} + +// DownloadVpnConnectionConfigWithChan invokes the vpc.DownloadVpnConnectionConfig API asynchronously +// api document: https://help.aliyun.com/api/vpc/downloadvpnconnectionconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DownloadVpnConnectionConfigWithChan(request *DownloadVpnConnectionConfigRequest) (<-chan *DownloadVpnConnectionConfigResponse, <-chan error) { + responseChan := make(chan *DownloadVpnConnectionConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DownloadVpnConnectionConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DownloadVpnConnectionConfigWithCallback invokes the vpc.DownloadVpnConnectionConfig API asynchronously +// api document: https://help.aliyun.com/api/vpc/downloadvpnconnectionconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DownloadVpnConnectionConfigWithCallback(request *DownloadVpnConnectionConfigRequest, callback func(response *DownloadVpnConnectionConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DownloadVpnConnectionConfigResponse + var err error + defer close(result) + response, err = client.DownloadVpnConnectionConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DownloadVpnConnectionConfigRequest is the request struct for api DownloadVpnConnectionConfig +type DownloadVpnConnectionConfigRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VpnConnectionId string `position:"Query" name:"VpnConnectionId"` +} + +// DownloadVpnConnectionConfigResponse is the response struct for api DownloadVpnConnectionConfig +type DownloadVpnConnectionConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VpnConnectionConfig VpnConnectionConfig `json:"VpnConnectionConfig" xml:"VpnConnectionConfig"` +} + +// CreateDownloadVpnConnectionConfigRequest creates a request to invoke DownloadVpnConnectionConfig API +func CreateDownloadVpnConnectionConfigRequest() (request *DownloadVpnConnectionConfigRequest) { + request = &DownloadVpnConnectionConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DownloadVpnConnectionConfig", "vpc", "openAPI") + return +} + +// CreateDownloadVpnConnectionConfigResponse creates a response to parse from DownloadVpnConnectionConfig response +func CreateDownloadVpnConnectionConfigResponse() (response *DownloadVpnConnectionConfigResponse) { + response = &DownloadVpnConnectionConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/enable_physical_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/enable_physical_connection.go new file mode 100644 index 0000000..8b78c9c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/enable_physical_connection.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EnablePhysicalConnection invokes the vpc.EnablePhysicalConnection API synchronously +// api document: https://help.aliyun.com/api/vpc/enablephysicalconnection.html +func (client *Client) EnablePhysicalConnection(request *EnablePhysicalConnectionRequest) (response *EnablePhysicalConnectionResponse, err error) { + response = CreateEnablePhysicalConnectionResponse() + err = client.DoAction(request, response) + return +} + +// EnablePhysicalConnectionWithChan invokes the vpc.EnablePhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/vpc/enablephysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnablePhysicalConnectionWithChan(request *EnablePhysicalConnectionRequest) (<-chan *EnablePhysicalConnectionResponse, <-chan error) { + responseChan := make(chan *EnablePhysicalConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EnablePhysicalConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EnablePhysicalConnectionWithCallback invokes the vpc.EnablePhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/vpc/enablephysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnablePhysicalConnectionWithCallback(request *EnablePhysicalConnectionRequest, callback func(response *EnablePhysicalConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EnablePhysicalConnectionResponse + var err error + defer close(result) + response, err = client.EnablePhysicalConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EnablePhysicalConnectionRequest is the request struct for api EnablePhysicalConnection +type EnablePhysicalConnectionRequest struct { + *requests.RpcRequest + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// EnablePhysicalConnectionResponse is the response struct for api EnablePhysicalConnection +type EnablePhysicalConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateEnablePhysicalConnectionRequest creates a request to invoke EnablePhysicalConnection API +func CreateEnablePhysicalConnectionRequest() (request *EnablePhysicalConnectionRequest) { + request = &EnablePhysicalConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "EnablePhysicalConnection", "vpc", "openAPI") + return +} + +// CreateEnablePhysicalConnectionResponse creates a response to parse from EnablePhysicalConnection response +func CreateEnablePhysicalConnectionResponse() (response *EnablePhysicalConnectionResponse) { + response = &EnablePhysicalConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/enable_vpc_classic_link.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/enable_vpc_classic_link.go new file mode 100644 index 0000000..a61a889 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/enable_vpc_classic_link.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EnableVpcClassicLink invokes the vpc.EnableVpcClassicLink API synchronously +// api document: https://help.aliyun.com/api/vpc/enablevpcclassiclink.html +func (client *Client) EnableVpcClassicLink(request *EnableVpcClassicLinkRequest) (response *EnableVpcClassicLinkResponse, err error) { + response = CreateEnableVpcClassicLinkResponse() + err = client.DoAction(request, response) + return +} + +// EnableVpcClassicLinkWithChan invokes the vpc.EnableVpcClassicLink API asynchronously +// api document: https://help.aliyun.com/api/vpc/enablevpcclassiclink.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnableVpcClassicLinkWithChan(request *EnableVpcClassicLinkRequest) (<-chan *EnableVpcClassicLinkResponse, <-chan error) { + responseChan := make(chan *EnableVpcClassicLinkResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EnableVpcClassicLink(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EnableVpcClassicLinkWithCallback invokes the vpc.EnableVpcClassicLink API asynchronously +// api document: https://help.aliyun.com/api/vpc/enablevpcclassiclink.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EnableVpcClassicLinkWithCallback(request *EnableVpcClassicLinkRequest, callback func(response *EnableVpcClassicLinkResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EnableVpcClassicLinkResponse + var err error + defer close(result) + response, err = client.EnableVpcClassicLink(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EnableVpcClassicLinkRequest is the request struct for api EnableVpcClassicLink +type EnableVpcClassicLinkRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VpcId string `position:"Query" name:"VpcId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// EnableVpcClassicLinkResponse is the response struct for api EnableVpcClassicLink +type EnableVpcClassicLinkResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateEnableVpcClassicLinkRequest creates a request to invoke EnableVpcClassicLink API +func CreateEnableVpcClassicLinkRequest() (request *EnableVpcClassicLinkRequest) { + request = &EnableVpcClassicLinkRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "EnableVpcClassicLink", "vpc", "openAPI") + return +} + +// CreateEnableVpcClassicLinkResponse creates a response to parse from EnableVpcClassicLink response +func CreateEnableVpcClassicLinkResponse() (response *EnableVpcClassicLinkResponse) { + response = &EnableVpcClassicLinkResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_bandwidth_package_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_bandwidth_package_attribute.go new file mode 100644 index 0000000..349e68a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_bandwidth_package_attribute.go @@ -0,0 +1,109 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyBandwidthPackageAttribute invokes the vpc.ModifyBandwidthPackageAttribute API synchronously +// api document: https://help.aliyun.com/api/vpc/modifybandwidthpackageattribute.html +func (client *Client) ModifyBandwidthPackageAttribute(request *ModifyBandwidthPackageAttributeRequest) (response *ModifyBandwidthPackageAttributeResponse, err error) { + response = CreateModifyBandwidthPackageAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyBandwidthPackageAttributeWithChan invokes the vpc.ModifyBandwidthPackageAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifybandwidthpackageattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyBandwidthPackageAttributeWithChan(request *ModifyBandwidthPackageAttributeRequest) (<-chan *ModifyBandwidthPackageAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyBandwidthPackageAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyBandwidthPackageAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyBandwidthPackageAttributeWithCallback invokes the vpc.ModifyBandwidthPackageAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifybandwidthpackageattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyBandwidthPackageAttributeWithCallback(request *ModifyBandwidthPackageAttributeRequest, callback func(response *ModifyBandwidthPackageAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyBandwidthPackageAttributeResponse + var err error + defer close(result) + response, err = client.ModifyBandwidthPackageAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyBandwidthPackageAttributeRequest is the request struct for api ModifyBandwidthPackageAttribute +type ModifyBandwidthPackageAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` +} + +// ModifyBandwidthPackageAttributeResponse is the response struct for api ModifyBandwidthPackageAttribute +type ModifyBandwidthPackageAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyBandwidthPackageAttributeRequest creates a request to invoke ModifyBandwidthPackageAttribute API +func CreateModifyBandwidthPackageAttributeRequest() (request *ModifyBandwidthPackageAttributeRequest) { + request = &ModifyBandwidthPackageAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyBandwidthPackageAttribute", "vpc", "openAPI") + return +} + +// CreateModifyBandwidthPackageAttributeResponse creates a response to parse from ModifyBandwidthPackageAttribute response +func CreateModifyBandwidthPackageAttributeResponse() (response *ModifyBandwidthPackageAttributeResponse) { + response = &ModifyBandwidthPackageAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_bandwidth_package_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_bandwidth_package_spec.go new file mode 100644 index 0000000..51cacd3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_bandwidth_package_spec.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyBandwidthPackageSpec invokes the vpc.ModifyBandwidthPackageSpec API synchronously +// api document: https://help.aliyun.com/api/vpc/modifybandwidthpackagespec.html +func (client *Client) ModifyBandwidthPackageSpec(request *ModifyBandwidthPackageSpecRequest) (response *ModifyBandwidthPackageSpecResponse, err error) { + response = CreateModifyBandwidthPackageSpecResponse() + err = client.DoAction(request, response) + return +} + +// ModifyBandwidthPackageSpecWithChan invokes the vpc.ModifyBandwidthPackageSpec API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifybandwidthpackagespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyBandwidthPackageSpecWithChan(request *ModifyBandwidthPackageSpecRequest) (<-chan *ModifyBandwidthPackageSpecResponse, <-chan error) { + responseChan := make(chan *ModifyBandwidthPackageSpecResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyBandwidthPackageSpec(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyBandwidthPackageSpecWithCallback invokes the vpc.ModifyBandwidthPackageSpec API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifybandwidthpackagespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyBandwidthPackageSpecWithCallback(request *ModifyBandwidthPackageSpecRequest, callback func(response *ModifyBandwidthPackageSpecResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyBandwidthPackageSpecResponse + var err error + defer close(result) + response, err = client.ModifyBandwidthPackageSpec(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyBandwidthPackageSpecRequest is the request struct for api ModifyBandwidthPackageSpec +type ModifyBandwidthPackageSpecRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` + Bandwidth string `position:"Query" name:"Bandwidth"` +} + +// ModifyBandwidthPackageSpecResponse is the response struct for api ModifyBandwidthPackageSpec +type ModifyBandwidthPackageSpecResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyBandwidthPackageSpecRequest creates a request to invoke ModifyBandwidthPackageSpec API +func CreateModifyBandwidthPackageSpecRequest() (request *ModifyBandwidthPackageSpecRequest) { + request = &ModifyBandwidthPackageSpecRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyBandwidthPackageSpec", "vpc", "openAPI") + return +} + +// CreateModifyBandwidthPackageSpecResponse creates a response to parse from ModifyBandwidthPackageSpec response +func CreateModifyBandwidthPackageSpecResponse() (response *ModifyBandwidthPackageSpecResponse) { + response = &ModifyBandwidthPackageSpecResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_bgp_group_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_bgp_group_attribute.go new file mode 100644 index 0000000..5bee664 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_bgp_group_attribute.go @@ -0,0 +1,113 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyBgpGroupAttribute invokes the vpc.ModifyBgpGroupAttribute API synchronously +// api document: https://help.aliyun.com/api/vpc/modifybgpgroupattribute.html +func (client *Client) ModifyBgpGroupAttribute(request *ModifyBgpGroupAttributeRequest) (response *ModifyBgpGroupAttributeResponse, err error) { + response = CreateModifyBgpGroupAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyBgpGroupAttributeWithChan invokes the vpc.ModifyBgpGroupAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifybgpgroupattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyBgpGroupAttributeWithChan(request *ModifyBgpGroupAttributeRequest) (<-chan *ModifyBgpGroupAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyBgpGroupAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyBgpGroupAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyBgpGroupAttributeWithCallback invokes the vpc.ModifyBgpGroupAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifybgpgroupattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyBgpGroupAttributeWithCallback(request *ModifyBgpGroupAttributeRequest, callback func(response *ModifyBgpGroupAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyBgpGroupAttributeResponse + var err error + defer close(result) + response, err = client.ModifyBgpGroupAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyBgpGroupAttributeRequest is the request struct for api ModifyBgpGroupAttribute +type ModifyBgpGroupAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + BgpGroupId string `position:"Query" name:"BgpGroupId"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` + PeerAsn requests.Integer `position:"Query" name:"PeerAsn"` + AuthKey string `position:"Query" name:"AuthKey"` + IsFakeAsn requests.Boolean `position:"Query" name:"IsFakeAsn"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyBgpGroupAttributeResponse is the response struct for api ModifyBgpGroupAttribute +type ModifyBgpGroupAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyBgpGroupAttributeRequest creates a request to invoke ModifyBgpGroupAttribute API +func CreateModifyBgpGroupAttributeRequest() (request *ModifyBgpGroupAttributeRequest) { + request = &ModifyBgpGroupAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyBgpGroupAttribute", "vpc", "openAPI") + return +} + +// CreateModifyBgpGroupAttributeResponse creates a response to parse from ModifyBgpGroupAttribute response +func CreateModifyBgpGroupAttributeResponse() (response *ModifyBgpGroupAttributeResponse) { + response = &ModifyBgpGroupAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_common_bandwidth_package_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_common_bandwidth_package_attribute.go new file mode 100644 index 0000000..346a77b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_common_bandwidth_package_attribute.go @@ -0,0 +1,109 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyCommonBandwidthPackageAttribute invokes the vpc.ModifyCommonBandwidthPackageAttribute API synchronously +// api document: https://help.aliyun.com/api/vpc/modifycommonbandwidthpackageattribute.html +func (client *Client) ModifyCommonBandwidthPackageAttribute(request *ModifyCommonBandwidthPackageAttributeRequest) (response *ModifyCommonBandwidthPackageAttributeResponse, err error) { + response = CreateModifyCommonBandwidthPackageAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyCommonBandwidthPackageAttributeWithChan invokes the vpc.ModifyCommonBandwidthPackageAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifycommonbandwidthpackageattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCommonBandwidthPackageAttributeWithChan(request *ModifyCommonBandwidthPackageAttributeRequest) (<-chan *ModifyCommonBandwidthPackageAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyCommonBandwidthPackageAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyCommonBandwidthPackageAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyCommonBandwidthPackageAttributeWithCallback invokes the vpc.ModifyCommonBandwidthPackageAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifycommonbandwidthpackageattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCommonBandwidthPackageAttributeWithCallback(request *ModifyCommonBandwidthPackageAttributeRequest, callback func(response *ModifyCommonBandwidthPackageAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyCommonBandwidthPackageAttributeResponse + var err error + defer close(result) + response, err = client.ModifyCommonBandwidthPackageAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyCommonBandwidthPackageAttributeRequest is the request struct for api ModifyCommonBandwidthPackageAttribute +type ModifyCommonBandwidthPackageAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` +} + +// ModifyCommonBandwidthPackageAttributeResponse is the response struct for api ModifyCommonBandwidthPackageAttribute +type ModifyCommonBandwidthPackageAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyCommonBandwidthPackageAttributeRequest creates a request to invoke ModifyCommonBandwidthPackageAttribute API +func CreateModifyCommonBandwidthPackageAttributeRequest() (request *ModifyCommonBandwidthPackageAttributeRequest) { + request = &ModifyCommonBandwidthPackageAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyCommonBandwidthPackageAttribute", "vpc", "openAPI") + return +} + +// CreateModifyCommonBandwidthPackageAttributeResponse creates a response to parse from ModifyCommonBandwidthPackageAttribute response +func CreateModifyCommonBandwidthPackageAttributeResponse() (response *ModifyCommonBandwidthPackageAttributeResponse) { + response = &ModifyCommonBandwidthPackageAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_common_bandwidth_package_pay_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_common_bandwidth_package_pay_type.go new file mode 100644 index 0000000..30327c8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_common_bandwidth_package_pay_type.go @@ -0,0 +1,118 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyCommonBandwidthPackagePayType invokes the vpc.ModifyCommonBandwidthPackagePayType API synchronously +// api document: https://help.aliyun.com/api/vpc/modifycommonbandwidthpackagepaytype.html +func (client *Client) ModifyCommonBandwidthPackagePayType(request *ModifyCommonBandwidthPackagePayTypeRequest) (response *ModifyCommonBandwidthPackagePayTypeResponse, err error) { + response = CreateModifyCommonBandwidthPackagePayTypeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyCommonBandwidthPackagePayTypeWithChan invokes the vpc.ModifyCommonBandwidthPackagePayType API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifycommonbandwidthpackagepaytype.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCommonBandwidthPackagePayTypeWithChan(request *ModifyCommonBandwidthPackagePayTypeRequest) (<-chan *ModifyCommonBandwidthPackagePayTypeResponse, <-chan error) { + responseChan := make(chan *ModifyCommonBandwidthPackagePayTypeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyCommonBandwidthPackagePayType(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyCommonBandwidthPackagePayTypeWithCallback invokes the vpc.ModifyCommonBandwidthPackagePayType API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifycommonbandwidthpackagepaytype.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCommonBandwidthPackagePayTypeWithCallback(request *ModifyCommonBandwidthPackagePayTypeRequest, callback func(response *ModifyCommonBandwidthPackagePayTypeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyCommonBandwidthPackagePayTypeResponse + var err error + defer close(result) + response, err = client.ModifyCommonBandwidthPackagePayType(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyCommonBandwidthPackagePayTypeRequest is the request struct for api ModifyCommonBandwidthPackagePayType +type ModifyCommonBandwidthPackagePayTypeRequest struct { + *requests.RpcRequest + BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` + PayType string `position:"Query" name:"PayType"` + PricingCycle string `position:"Query" name:"PricingCycle"` + Duration requests.Integer `position:"Query" name:"Duration"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Bandwidth string `position:"Query" name:"Bandwidth"` + KbpsBandwidth string `position:"Query" name:"KbpsBandwidth"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ResourceBid string `position:"Query" name:"ResourceBid"` + ResourceUid requests.Integer `position:"Query" name:"ResourceUid"` +} + +// ModifyCommonBandwidthPackagePayTypeResponse is the response struct for api ModifyCommonBandwidthPackagePayType +type ModifyCommonBandwidthPackagePayTypeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + OrderId int `json:"OrderId" xml:"OrderId"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` +} + +// CreateModifyCommonBandwidthPackagePayTypeRequest creates a request to invoke ModifyCommonBandwidthPackagePayType API +func CreateModifyCommonBandwidthPackagePayTypeRequest() (request *ModifyCommonBandwidthPackagePayTypeRequest) { + request = &ModifyCommonBandwidthPackagePayTypeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyCommonBandwidthPackagePayType", "vpc", "openAPI") + return +} + +// CreateModifyCommonBandwidthPackagePayTypeResponse creates a response to parse from ModifyCommonBandwidthPackagePayType response +func CreateModifyCommonBandwidthPackagePayTypeResponse() (response *ModifyCommonBandwidthPackagePayTypeResponse) { + response = &ModifyCommonBandwidthPackagePayTypeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_common_bandwidth_package_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_common_bandwidth_package_spec.go new file mode 100644 index 0000000..f7dab3c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_common_bandwidth_package_spec.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyCommonBandwidthPackageSpec invokes the vpc.ModifyCommonBandwidthPackageSpec API synchronously +// api document: https://help.aliyun.com/api/vpc/modifycommonbandwidthpackagespec.html +func (client *Client) ModifyCommonBandwidthPackageSpec(request *ModifyCommonBandwidthPackageSpecRequest) (response *ModifyCommonBandwidthPackageSpecResponse, err error) { + response = CreateModifyCommonBandwidthPackageSpecResponse() + err = client.DoAction(request, response) + return +} + +// ModifyCommonBandwidthPackageSpecWithChan invokes the vpc.ModifyCommonBandwidthPackageSpec API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifycommonbandwidthpackagespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCommonBandwidthPackageSpecWithChan(request *ModifyCommonBandwidthPackageSpecRequest) (<-chan *ModifyCommonBandwidthPackageSpecResponse, <-chan error) { + responseChan := make(chan *ModifyCommonBandwidthPackageSpecResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyCommonBandwidthPackageSpec(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyCommonBandwidthPackageSpecWithCallback invokes the vpc.ModifyCommonBandwidthPackageSpec API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifycommonbandwidthpackagespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCommonBandwidthPackageSpecWithCallback(request *ModifyCommonBandwidthPackageSpecRequest, callback func(response *ModifyCommonBandwidthPackageSpecResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyCommonBandwidthPackageSpecResponse + var err error + defer close(result) + response, err = client.ModifyCommonBandwidthPackageSpec(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyCommonBandwidthPackageSpecRequest is the request struct for api ModifyCommonBandwidthPackageSpec +type ModifyCommonBandwidthPackageSpecRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` + Bandwidth string `position:"Query" name:"Bandwidth"` +} + +// ModifyCommonBandwidthPackageSpecResponse is the response struct for api ModifyCommonBandwidthPackageSpec +type ModifyCommonBandwidthPackageSpecResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyCommonBandwidthPackageSpecRequest creates a request to invoke ModifyCommonBandwidthPackageSpec API +func CreateModifyCommonBandwidthPackageSpecRequest() (request *ModifyCommonBandwidthPackageSpecRequest) { + request = &ModifyCommonBandwidthPackageSpecRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyCommonBandwidthPackageSpec", "vpc", "openAPI") + return +} + +// CreateModifyCommonBandwidthPackageSpecResponse creates a response to parse from ModifyCommonBandwidthPackageSpec response +func CreateModifyCommonBandwidthPackageSpecResponse() (response *ModifyCommonBandwidthPackageSpecResponse) { + response = &ModifyCommonBandwidthPackageSpecResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_customer_gateway_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_customer_gateway_attribute.go new file mode 100644 index 0000000..14de881 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_customer_gateway_attribute.go @@ -0,0 +1,115 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyCustomerGatewayAttribute invokes the vpc.ModifyCustomerGatewayAttribute API synchronously +// api document: https://help.aliyun.com/api/vpc/modifycustomergatewayattribute.html +func (client *Client) ModifyCustomerGatewayAttribute(request *ModifyCustomerGatewayAttributeRequest) (response *ModifyCustomerGatewayAttributeResponse, err error) { + response = CreateModifyCustomerGatewayAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyCustomerGatewayAttributeWithChan invokes the vpc.ModifyCustomerGatewayAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifycustomergatewayattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCustomerGatewayAttributeWithChan(request *ModifyCustomerGatewayAttributeRequest) (<-chan *ModifyCustomerGatewayAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyCustomerGatewayAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyCustomerGatewayAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyCustomerGatewayAttributeWithCallback invokes the vpc.ModifyCustomerGatewayAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifycustomergatewayattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCustomerGatewayAttributeWithCallback(request *ModifyCustomerGatewayAttributeRequest, callback func(response *ModifyCustomerGatewayAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyCustomerGatewayAttributeResponse + var err error + defer close(result) + response, err = client.ModifyCustomerGatewayAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyCustomerGatewayAttributeRequest is the request struct for api ModifyCustomerGatewayAttribute +type ModifyCustomerGatewayAttributeRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + CustomerGatewayId string `position:"Query" name:"CustomerGatewayId"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` +} + +// ModifyCustomerGatewayAttributeResponse is the response struct for api ModifyCustomerGatewayAttribute +type ModifyCustomerGatewayAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CustomerGatewayId string `json:"CustomerGatewayId" xml:"CustomerGatewayId"` + IpAddress string `json:"IpAddress" xml:"IpAddress"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` +} + +// CreateModifyCustomerGatewayAttributeRequest creates a request to invoke ModifyCustomerGatewayAttribute API +func CreateModifyCustomerGatewayAttributeRequest() (request *ModifyCustomerGatewayAttributeRequest) { + request = &ModifyCustomerGatewayAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyCustomerGatewayAttribute", "vpc", "openAPI") + return +} + +// CreateModifyCustomerGatewayAttributeResponse creates a response to parse from ModifyCustomerGatewayAttribute response +func CreateModifyCustomerGatewayAttributeResponse() (response *ModifyCustomerGatewayAttributeResponse) { + response = &ModifyCustomerGatewayAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_eip_address_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_eip_address_attribute.go new file mode 100644 index 0000000..46c2eb4 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_eip_address_attribute.go @@ -0,0 +1,110 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyEipAddressAttribute invokes the vpc.ModifyEipAddressAttribute API synchronously +// api document: https://help.aliyun.com/api/vpc/modifyeipaddressattribute.html +func (client *Client) ModifyEipAddressAttribute(request *ModifyEipAddressAttributeRequest) (response *ModifyEipAddressAttributeResponse, err error) { + response = CreateModifyEipAddressAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyEipAddressAttributeWithChan invokes the vpc.ModifyEipAddressAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyeipaddressattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyEipAddressAttributeWithChan(request *ModifyEipAddressAttributeRequest) (<-chan *ModifyEipAddressAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyEipAddressAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyEipAddressAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyEipAddressAttributeWithCallback invokes the vpc.ModifyEipAddressAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyeipaddressattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyEipAddressAttributeWithCallback(request *ModifyEipAddressAttributeRequest, callback func(response *ModifyEipAddressAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyEipAddressAttributeResponse + var err error + defer close(result) + response, err = client.ModifyEipAddressAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyEipAddressAttributeRequest is the request struct for api ModifyEipAddressAttribute +type ModifyEipAddressAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AllocationId string `position:"Query" name:"AllocationId"` + Bandwidth string `position:"Query" name:"Bandwidth"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyEipAddressAttributeResponse is the response struct for api ModifyEipAddressAttribute +type ModifyEipAddressAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyEipAddressAttributeRequest creates a request to invoke ModifyEipAddressAttribute API +func CreateModifyEipAddressAttributeRequest() (request *ModifyEipAddressAttributeRequest) { + request = &ModifyEipAddressAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyEipAddressAttribute", "vpc", "openAPI") + return +} + +// CreateModifyEipAddressAttributeResponse creates a response to parse from ModifyEipAddressAttribute response +func CreateModifyEipAddressAttributeResponse() (response *ModifyEipAddressAttributeResponse) { + response = &ModifyEipAddressAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_forward_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_forward_entry.go new file mode 100644 index 0000000..7fe3ee0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_forward_entry.go @@ -0,0 +1,113 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyForwardEntry invokes the vpc.ModifyForwardEntry API synchronously +// api document: https://help.aliyun.com/api/vpc/modifyforwardentry.html +func (client *Client) ModifyForwardEntry(request *ModifyForwardEntryRequest) (response *ModifyForwardEntryResponse, err error) { + response = CreateModifyForwardEntryResponse() + err = client.DoAction(request, response) + return +} + +// ModifyForwardEntryWithChan invokes the vpc.ModifyForwardEntry API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyforwardentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyForwardEntryWithChan(request *ModifyForwardEntryRequest) (<-chan *ModifyForwardEntryResponse, <-chan error) { + responseChan := make(chan *ModifyForwardEntryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyForwardEntry(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyForwardEntryWithCallback invokes the vpc.ModifyForwardEntry API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyforwardentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyForwardEntryWithCallback(request *ModifyForwardEntryRequest, callback func(response *ModifyForwardEntryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyForwardEntryResponse + var err error + defer close(result) + response, err = client.ModifyForwardEntry(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyForwardEntryRequest is the request struct for api ModifyForwardEntry +type ModifyForwardEntryRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ForwardTableId string `position:"Query" name:"ForwardTableId"` + ForwardEntryId string `position:"Query" name:"ForwardEntryId"` + ExternalIp string `position:"Query" name:"ExternalIp"` + ExternalPort string `position:"Query" name:"ExternalPort"` + InternalIp string `position:"Query" name:"InternalIp"` + InternalPort string `position:"Query" name:"InternalPort"` + IpProtocol string `position:"Query" name:"IpProtocol"` +} + +// ModifyForwardEntryResponse is the response struct for api ModifyForwardEntry +type ModifyForwardEntryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyForwardEntryRequest creates a request to invoke ModifyForwardEntry API +func CreateModifyForwardEntryRequest() (request *ModifyForwardEntryRequest) { + request = &ModifyForwardEntryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyForwardEntry", "vpc", "openAPI") + return +} + +// CreateModifyForwardEntryResponse creates a response to parse from ModifyForwardEntry response +func CreateModifyForwardEntryResponse() (response *ModifyForwardEntryResponse) { + response = &ModifyForwardEntryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_global_acceleration_instance_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_global_acceleration_instance_attributes.go new file mode 100644 index 0000000..0431600 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_global_acceleration_instance_attributes.go @@ -0,0 +1,109 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyGlobalAccelerationInstanceAttributes invokes the vpc.ModifyGlobalAccelerationInstanceAttributes API synchronously +// api document: https://help.aliyun.com/api/vpc/modifyglobalaccelerationinstanceattributes.html +func (client *Client) ModifyGlobalAccelerationInstanceAttributes(request *ModifyGlobalAccelerationInstanceAttributesRequest) (response *ModifyGlobalAccelerationInstanceAttributesResponse, err error) { + response = CreateModifyGlobalAccelerationInstanceAttributesResponse() + err = client.DoAction(request, response) + return +} + +// ModifyGlobalAccelerationInstanceAttributesWithChan invokes the vpc.ModifyGlobalAccelerationInstanceAttributes API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyglobalaccelerationinstanceattributes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyGlobalAccelerationInstanceAttributesWithChan(request *ModifyGlobalAccelerationInstanceAttributesRequest) (<-chan *ModifyGlobalAccelerationInstanceAttributesResponse, <-chan error) { + responseChan := make(chan *ModifyGlobalAccelerationInstanceAttributesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyGlobalAccelerationInstanceAttributes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyGlobalAccelerationInstanceAttributesWithCallback invokes the vpc.ModifyGlobalAccelerationInstanceAttributes API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyglobalaccelerationinstanceattributes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyGlobalAccelerationInstanceAttributesWithCallback(request *ModifyGlobalAccelerationInstanceAttributesRequest, callback func(response *ModifyGlobalAccelerationInstanceAttributesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyGlobalAccelerationInstanceAttributesResponse + var err error + defer close(result) + response, err = client.ModifyGlobalAccelerationInstanceAttributes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyGlobalAccelerationInstanceAttributesRequest is the request struct for api ModifyGlobalAccelerationInstanceAttributes +type ModifyGlobalAccelerationInstanceAttributesRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + GlobalAccelerationInstanceId string `position:"Query" name:"GlobalAccelerationInstanceId"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyGlobalAccelerationInstanceAttributesResponse is the response struct for api ModifyGlobalAccelerationInstanceAttributes +type ModifyGlobalAccelerationInstanceAttributesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyGlobalAccelerationInstanceAttributesRequest creates a request to invoke ModifyGlobalAccelerationInstanceAttributes API +func CreateModifyGlobalAccelerationInstanceAttributesRequest() (request *ModifyGlobalAccelerationInstanceAttributesRequest) { + request = &ModifyGlobalAccelerationInstanceAttributesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyGlobalAccelerationInstanceAttributes", "vpc", "openAPI") + return +} + +// CreateModifyGlobalAccelerationInstanceAttributesResponse creates a response to parse from ModifyGlobalAccelerationInstanceAttributes response +func CreateModifyGlobalAccelerationInstanceAttributesResponse() (response *ModifyGlobalAccelerationInstanceAttributesResponse) { + response = &ModifyGlobalAccelerationInstanceAttributesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_global_acceleration_instance_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_global_acceleration_instance_spec.go new file mode 100644 index 0000000..e3efa1c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_global_acceleration_instance_spec.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyGlobalAccelerationInstanceSpec invokes the vpc.ModifyGlobalAccelerationInstanceSpec API synchronously +// api document: https://help.aliyun.com/api/vpc/modifyglobalaccelerationinstancespec.html +func (client *Client) ModifyGlobalAccelerationInstanceSpec(request *ModifyGlobalAccelerationInstanceSpecRequest) (response *ModifyGlobalAccelerationInstanceSpecResponse, err error) { + response = CreateModifyGlobalAccelerationInstanceSpecResponse() + err = client.DoAction(request, response) + return +} + +// ModifyGlobalAccelerationInstanceSpecWithChan invokes the vpc.ModifyGlobalAccelerationInstanceSpec API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyglobalaccelerationinstancespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyGlobalAccelerationInstanceSpecWithChan(request *ModifyGlobalAccelerationInstanceSpecRequest) (<-chan *ModifyGlobalAccelerationInstanceSpecResponse, <-chan error) { + responseChan := make(chan *ModifyGlobalAccelerationInstanceSpecResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyGlobalAccelerationInstanceSpec(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyGlobalAccelerationInstanceSpecWithCallback invokes the vpc.ModifyGlobalAccelerationInstanceSpec API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyglobalaccelerationinstancespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyGlobalAccelerationInstanceSpecWithCallback(request *ModifyGlobalAccelerationInstanceSpecRequest, callback func(response *ModifyGlobalAccelerationInstanceSpecResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyGlobalAccelerationInstanceSpecResponse + var err error + defer close(result) + response, err = client.ModifyGlobalAccelerationInstanceSpec(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyGlobalAccelerationInstanceSpecRequest is the request struct for api ModifyGlobalAccelerationInstanceSpec +type ModifyGlobalAccelerationInstanceSpecRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + GlobalAccelerationInstanceId string `position:"Query" name:"GlobalAccelerationInstanceId"` + Bandwidth string `position:"Query" name:"Bandwidth"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyGlobalAccelerationInstanceSpecResponse is the response struct for api ModifyGlobalAccelerationInstanceSpec +type ModifyGlobalAccelerationInstanceSpecResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyGlobalAccelerationInstanceSpecRequest creates a request to invoke ModifyGlobalAccelerationInstanceSpec API +func CreateModifyGlobalAccelerationInstanceSpecRequest() (request *ModifyGlobalAccelerationInstanceSpecRequest) { + request = &ModifyGlobalAccelerationInstanceSpecRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyGlobalAccelerationInstanceSpec", "vpc", "openAPI") + return +} + +// CreateModifyGlobalAccelerationInstanceSpecResponse creates a response to parse from ModifyGlobalAccelerationInstanceSpec response +func CreateModifyGlobalAccelerationInstanceSpecResponse() (response *ModifyGlobalAccelerationInstanceSpecResponse) { + response = &ModifyGlobalAccelerationInstanceSpecResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_ha_vip_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_ha_vip_attribute.go new file mode 100644 index 0000000..0faab54 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_ha_vip_attribute.go @@ -0,0 +1,109 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyHaVipAttribute invokes the vpc.ModifyHaVipAttribute API synchronously +// api document: https://help.aliyun.com/api/vpc/modifyhavipattribute.html +func (client *Client) ModifyHaVipAttribute(request *ModifyHaVipAttributeRequest) (response *ModifyHaVipAttributeResponse, err error) { + response = CreateModifyHaVipAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyHaVipAttributeWithChan invokes the vpc.ModifyHaVipAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyhavipattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyHaVipAttributeWithChan(request *ModifyHaVipAttributeRequest) (<-chan *ModifyHaVipAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyHaVipAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyHaVipAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyHaVipAttributeWithCallback invokes the vpc.ModifyHaVipAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyhavipattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyHaVipAttributeWithCallback(request *ModifyHaVipAttributeRequest, callback func(response *ModifyHaVipAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyHaVipAttributeResponse + var err error + defer close(result) + response, err = client.ModifyHaVipAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyHaVipAttributeRequest is the request struct for api ModifyHaVipAttribute +type ModifyHaVipAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + HaVipId string `position:"Query" name:"HaVipId"` + Description string `position:"Query" name:"Description"` +} + +// ModifyHaVipAttributeResponse is the response struct for api ModifyHaVipAttribute +type ModifyHaVipAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyHaVipAttributeRequest creates a request to invoke ModifyHaVipAttribute API +func CreateModifyHaVipAttributeRequest() (request *ModifyHaVipAttributeRequest) { + request = &ModifyHaVipAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyHaVipAttribute", "vpc", "openAPI") + return +} + +// CreateModifyHaVipAttributeResponse creates a response to parse from ModifyHaVipAttribute response +func CreateModifyHaVipAttributeResponse() (response *ModifyHaVipAttributeResponse) { + response = &ModifyHaVipAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_nat_gateway_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_nat_gateway_attribute.go new file mode 100644 index 0000000..381a14d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_nat_gateway_attribute.go @@ -0,0 +1,109 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyNatGatewayAttribute invokes the vpc.ModifyNatGatewayAttribute API synchronously +// api document: https://help.aliyun.com/api/vpc/modifynatgatewayattribute.html +func (client *Client) ModifyNatGatewayAttribute(request *ModifyNatGatewayAttributeRequest) (response *ModifyNatGatewayAttributeResponse, err error) { + response = CreateModifyNatGatewayAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyNatGatewayAttributeWithChan invokes the vpc.ModifyNatGatewayAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifynatgatewayattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyNatGatewayAttributeWithChan(request *ModifyNatGatewayAttributeRequest) (<-chan *ModifyNatGatewayAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyNatGatewayAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyNatGatewayAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyNatGatewayAttributeWithCallback invokes the vpc.ModifyNatGatewayAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifynatgatewayattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyNatGatewayAttributeWithCallback(request *ModifyNatGatewayAttributeRequest, callback func(response *ModifyNatGatewayAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyNatGatewayAttributeResponse + var err error + defer close(result) + response, err = client.ModifyNatGatewayAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyNatGatewayAttributeRequest is the request struct for api ModifyNatGatewayAttribute +type ModifyNatGatewayAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + NatGatewayId string `position:"Query" name:"NatGatewayId"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` +} + +// ModifyNatGatewayAttributeResponse is the response struct for api ModifyNatGatewayAttribute +type ModifyNatGatewayAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyNatGatewayAttributeRequest creates a request to invoke ModifyNatGatewayAttribute API +func CreateModifyNatGatewayAttributeRequest() (request *ModifyNatGatewayAttributeRequest) { + request = &ModifyNatGatewayAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyNatGatewayAttribute", "vpc", "openAPI") + return +} + +// CreateModifyNatGatewayAttributeResponse creates a response to parse from ModifyNatGatewayAttribute response +func CreateModifyNatGatewayAttributeResponse() (response *ModifyNatGatewayAttributeResponse) { + response = &ModifyNatGatewayAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_nat_gateway_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_nat_gateway_spec.go new file mode 100644 index 0000000..8eaf3d9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_nat_gateway_spec.go @@ -0,0 +1,109 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyNatGatewaySpec invokes the vpc.ModifyNatGatewaySpec API synchronously +// api document: https://help.aliyun.com/api/vpc/modifynatgatewayspec.html +func (client *Client) ModifyNatGatewaySpec(request *ModifyNatGatewaySpecRequest) (response *ModifyNatGatewaySpecResponse, err error) { + response = CreateModifyNatGatewaySpecResponse() + err = client.DoAction(request, response) + return +} + +// ModifyNatGatewaySpecWithChan invokes the vpc.ModifyNatGatewaySpec API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifynatgatewayspec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyNatGatewaySpecWithChan(request *ModifyNatGatewaySpecRequest) (<-chan *ModifyNatGatewaySpecResponse, <-chan error) { + responseChan := make(chan *ModifyNatGatewaySpecResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyNatGatewaySpec(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyNatGatewaySpecWithCallback invokes the vpc.ModifyNatGatewaySpec API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifynatgatewayspec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyNatGatewaySpecWithCallback(request *ModifyNatGatewaySpecRequest, callback func(response *ModifyNatGatewaySpecResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyNatGatewaySpecResponse + var err error + defer close(result) + response, err = client.ModifyNatGatewaySpec(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyNatGatewaySpecRequest is the request struct for api ModifyNatGatewaySpec +type ModifyNatGatewaySpecRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + NatGatewayId string `position:"Query" name:"NatGatewayId"` + Spec string `position:"Query" name:"Spec"` + ClientToken string `position:"Query" name:"ClientToken"` +} + +// ModifyNatGatewaySpecResponse is the response struct for api ModifyNatGatewaySpec +type ModifyNatGatewaySpecResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyNatGatewaySpecRequest creates a request to invoke ModifyNatGatewaySpec API +func CreateModifyNatGatewaySpecRequest() (request *ModifyNatGatewaySpecRequest) { + request = &ModifyNatGatewaySpecRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyNatGatewaySpec", "vpc", "openAPI") + return +} + +// CreateModifyNatGatewaySpecResponse creates a response to parse from ModifyNatGatewaySpec response +func CreateModifyNatGatewaySpecResponse() (response *ModifyNatGatewaySpecResponse) { + response = &ModifyNatGatewaySpecResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_nqa.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_nqa.go new file mode 100644 index 0000000..86472b1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_nqa.go @@ -0,0 +1,109 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyNqa invokes the vpc.ModifyNqa API synchronously +// api document: https://help.aliyun.com/api/vpc/modifynqa.html +func (client *Client) ModifyNqa(request *ModifyNqaRequest) (response *ModifyNqaResponse, err error) { + response = CreateModifyNqaResponse() + err = client.DoAction(request, response) + return +} + +// ModifyNqaWithChan invokes the vpc.ModifyNqa API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifynqa.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyNqaWithChan(request *ModifyNqaRequest) (<-chan *ModifyNqaResponse, <-chan error) { + responseChan := make(chan *ModifyNqaResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyNqa(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyNqaWithCallback invokes the vpc.ModifyNqa API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifynqa.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyNqaWithCallback(request *ModifyNqaRequest, callback func(response *ModifyNqaResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyNqaResponse + var err error + defer close(result) + response, err = client.ModifyNqa(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyNqaRequest is the request struct for api ModifyNqa +type ModifyNqaRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DestinationIp string `position:"Query" name:"DestinationIp"` + NqaId string `position:"Query" name:"NqaId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyNqaResponse is the response struct for api ModifyNqa +type ModifyNqaResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyNqaRequest creates a request to invoke ModifyNqa API +func CreateModifyNqaRequest() (request *ModifyNqaRequest) { + request = &ModifyNqaRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyNqa", "vpc", "openAPI") + return +} + +// CreateModifyNqaResponse creates a response to parse from ModifyNqa response +func CreateModifyNqaResponse() (response *ModifyNqaResponse) { + response = &ModifyNqaResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_physical_connection_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_physical_connection_attribute.go new file mode 100644 index 0000000..5e33b82 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_physical_connection_attribute.go @@ -0,0 +1,116 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyPhysicalConnectionAttribute invokes the vpc.ModifyPhysicalConnectionAttribute API synchronously +// api document: https://help.aliyun.com/api/vpc/modifyphysicalconnectionattribute.html +func (client *Client) ModifyPhysicalConnectionAttribute(request *ModifyPhysicalConnectionAttributeRequest) (response *ModifyPhysicalConnectionAttributeResponse, err error) { + response = CreateModifyPhysicalConnectionAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyPhysicalConnectionAttributeWithChan invokes the vpc.ModifyPhysicalConnectionAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyphysicalconnectionattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyPhysicalConnectionAttributeWithChan(request *ModifyPhysicalConnectionAttributeRequest) (<-chan *ModifyPhysicalConnectionAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyPhysicalConnectionAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyPhysicalConnectionAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyPhysicalConnectionAttributeWithCallback invokes the vpc.ModifyPhysicalConnectionAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyphysicalconnectionattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyPhysicalConnectionAttributeWithCallback(request *ModifyPhysicalConnectionAttributeRequest, callback func(response *ModifyPhysicalConnectionAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyPhysicalConnectionAttributeResponse + var err error + defer close(result) + response, err = client.ModifyPhysicalConnectionAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyPhysicalConnectionAttributeRequest is the request struct for api ModifyPhysicalConnectionAttribute +type ModifyPhysicalConnectionAttributeRequest struct { + *requests.RpcRequest + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` + LineOperator string `position:"Query" name:"LineOperator"` + Bandwidth requests.Integer `position:"Query" name:"bandwidth"` + PeerLocation string `position:"Query" name:"PeerLocation"` + PortType string `position:"Query" name:"PortType"` + RedundantPhysicalConnectionId string `position:"Query" name:"RedundantPhysicalConnectionId"` + Description string `position:"Query" name:"Description"` + Name string `position:"Query" name:"Name"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + CircuitCode string `position:"Query" name:"CircuitCode"` +} + +// ModifyPhysicalConnectionAttributeResponse is the response struct for api ModifyPhysicalConnectionAttribute +type ModifyPhysicalConnectionAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyPhysicalConnectionAttributeRequest creates a request to invoke ModifyPhysicalConnectionAttribute API +func CreateModifyPhysicalConnectionAttributeRequest() (request *ModifyPhysicalConnectionAttributeRequest) { + request = &ModifyPhysicalConnectionAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyPhysicalConnectionAttribute", "vpc", "openAPI") + return +} + +// CreateModifyPhysicalConnectionAttributeResponse creates a response to parse from ModifyPhysicalConnectionAttribute response +func CreateModifyPhysicalConnectionAttributeResponse() (response *ModifyPhysicalConnectionAttributeResponse) { + response = &ModifyPhysicalConnectionAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_route_table_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_route_table_attributes.go new file mode 100644 index 0000000..c5ab1e3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_route_table_attributes.go @@ -0,0 +1,116 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyRouteTableAttributes invokes the vpc.ModifyRouteTableAttributes API synchronously +// api document: https://help.aliyun.com/api/vpc/modifyroutetableattributes.html +func (client *Client) ModifyRouteTableAttributes(request *ModifyRouteTableAttributesRequest) (response *ModifyRouteTableAttributesResponse, err error) { + response = CreateModifyRouteTableAttributesResponse() + err = client.DoAction(request, response) + return +} + +// ModifyRouteTableAttributesWithChan invokes the vpc.ModifyRouteTableAttributes API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyroutetableattributes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyRouteTableAttributesWithChan(request *ModifyRouteTableAttributesRequest) (<-chan *ModifyRouteTableAttributesResponse, <-chan error) { + responseChan := make(chan *ModifyRouteTableAttributesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyRouteTableAttributes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyRouteTableAttributesWithCallback invokes the vpc.ModifyRouteTableAttributes API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyroutetableattributes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyRouteTableAttributesWithCallback(request *ModifyRouteTableAttributesRequest, callback func(response *ModifyRouteTableAttributesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyRouteTableAttributesResponse + var err error + defer close(result) + response, err = client.ModifyRouteTableAttributes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyRouteTableAttributesRequest is the request struct for api ModifyRouteTableAttributes +type ModifyRouteTableAttributesRequest struct { + *requests.RpcRequest + RouteTableId string `position:"Query" name:"RouteTableId"` + RouteTableName string `position:"Query" name:"RouteTableName"` + Description string `position:"Query" name:"Description"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Bandwidth string `position:"Query" name:"Bandwidth"` + KbpsBandwidth string `position:"Query" name:"KbpsBandwidth"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ResourceBid string `position:"Query" name:"ResourceBid"` + ResourceUid requests.Integer `position:"Query" name:"ResourceUid"` +} + +// ModifyRouteTableAttributesResponse is the response struct for api ModifyRouteTableAttributes +type ModifyRouteTableAttributesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Success bool `json:"Success" xml:"Success"` +} + +// CreateModifyRouteTableAttributesRequest creates a request to invoke ModifyRouteTableAttributes API +func CreateModifyRouteTableAttributesRequest() (request *ModifyRouteTableAttributesRequest) { + request = &ModifyRouteTableAttributesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyRouteTableAttributes", "vpc", "openAPI") + return +} + +// CreateModifyRouteTableAttributesResponse creates a response to parse from ModifyRouteTableAttributes response +func CreateModifyRouteTableAttributesResponse() (response *ModifyRouteTableAttributesResponse) { + response = &ModifyRouteTableAttributesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_router_interface_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_router_interface_attribute.go new file mode 100644 index 0000000..a863da6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_router_interface_attribute.go @@ -0,0 +1,115 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyRouterInterfaceAttribute invokes the vpc.ModifyRouterInterfaceAttribute API synchronously +// api document: https://help.aliyun.com/api/vpc/modifyrouterinterfaceattribute.html +func (client *Client) ModifyRouterInterfaceAttribute(request *ModifyRouterInterfaceAttributeRequest) (response *ModifyRouterInterfaceAttributeResponse, err error) { + response = CreateModifyRouterInterfaceAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyRouterInterfaceAttributeWithChan invokes the vpc.ModifyRouterInterfaceAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyrouterinterfaceattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyRouterInterfaceAttributeWithChan(request *ModifyRouterInterfaceAttributeRequest) (<-chan *ModifyRouterInterfaceAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyRouterInterfaceAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyRouterInterfaceAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyRouterInterfaceAttributeWithCallback invokes the vpc.ModifyRouterInterfaceAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyrouterinterfaceattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyRouterInterfaceAttributeWithCallback(request *ModifyRouterInterfaceAttributeRequest, callback func(response *ModifyRouterInterfaceAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyRouterInterfaceAttributeResponse + var err error + defer close(result) + response, err = client.ModifyRouterInterfaceAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyRouterInterfaceAttributeRequest is the request struct for api ModifyRouterInterfaceAttribute +type ModifyRouterInterfaceAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + RouterInterfaceId string `position:"Query" name:"RouterInterfaceId"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` + OppositeInterfaceId string `position:"Query" name:"OppositeInterfaceId"` + OppositeRouterId string `position:"Query" name:"OppositeRouterId"` + OppositeRouterType string `position:"Query" name:"OppositeRouterType"` + OppositeInterfaceOwnerId requests.Integer `position:"Query" name:"OppositeInterfaceOwnerId"` + HealthCheckSourceIp string `position:"Query" name:"HealthCheckSourceIp"` + HealthCheckTargetIp string `position:"Query" name:"HealthCheckTargetIp"` + DeleteHealthCheckIp requests.Boolean `position:"Query" name:"DeleteHealthCheckIp"` +} + +// ModifyRouterInterfaceAttributeResponse is the response struct for api ModifyRouterInterfaceAttribute +type ModifyRouterInterfaceAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyRouterInterfaceAttributeRequest creates a request to invoke ModifyRouterInterfaceAttribute API +func CreateModifyRouterInterfaceAttributeRequest() (request *ModifyRouterInterfaceAttributeRequest) { + request = &ModifyRouterInterfaceAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyRouterInterfaceAttribute", "vpc", "openAPI") + return +} + +// CreateModifyRouterInterfaceAttributeResponse creates a response to parse from ModifyRouterInterfaceAttribute response +func CreateModifyRouterInterfaceAttributeResponse() (response *ModifyRouterInterfaceAttributeResponse) { + response = &ModifyRouterInterfaceAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_router_interface_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_router_interface_spec.go new file mode 100644 index 0000000..3e68c8c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_router_interface_spec.go @@ -0,0 +1,110 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyRouterInterfaceSpec invokes the vpc.ModifyRouterInterfaceSpec API synchronously +// api document: https://help.aliyun.com/api/vpc/modifyrouterinterfacespec.html +func (client *Client) ModifyRouterInterfaceSpec(request *ModifyRouterInterfaceSpecRequest) (response *ModifyRouterInterfaceSpecResponse, err error) { + response = CreateModifyRouterInterfaceSpecResponse() + err = client.DoAction(request, response) + return +} + +// ModifyRouterInterfaceSpecWithChan invokes the vpc.ModifyRouterInterfaceSpec API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyrouterinterfacespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyRouterInterfaceSpecWithChan(request *ModifyRouterInterfaceSpecRequest) (<-chan *ModifyRouterInterfaceSpecResponse, <-chan error) { + responseChan := make(chan *ModifyRouterInterfaceSpecResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyRouterInterfaceSpec(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyRouterInterfaceSpecWithCallback invokes the vpc.ModifyRouterInterfaceSpec API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyrouterinterfacespec.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyRouterInterfaceSpecWithCallback(request *ModifyRouterInterfaceSpecRequest, callback func(response *ModifyRouterInterfaceSpecResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyRouterInterfaceSpecResponse + var err error + defer close(result) + response, err = client.ModifyRouterInterfaceSpec(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyRouterInterfaceSpecRequest is the request struct for api ModifyRouterInterfaceSpec +type ModifyRouterInterfaceSpecRequest struct { + *requests.RpcRequest + RouterInterfaceId string `position:"Query" name:"RouterInterfaceId"` + Spec string `position:"Query" name:"Spec"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyRouterInterfaceSpecResponse is the response struct for api ModifyRouterInterfaceSpec +type ModifyRouterInterfaceSpecResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Spec string `json:"Spec" xml:"Spec"` +} + +// CreateModifyRouterInterfaceSpecRequest creates a request to invoke ModifyRouterInterfaceSpec API +func CreateModifyRouterInterfaceSpecRequest() (request *ModifyRouterInterfaceSpecRequest) { + request = &ModifyRouterInterfaceSpecRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyRouterInterfaceSpec", "vpc", "openAPI") + return +} + +// CreateModifyRouterInterfaceSpecResponse creates a response to parse from ModifyRouterInterfaceSpec response +func CreateModifyRouterInterfaceSpecResponse() (response *ModifyRouterInterfaceSpecResponse) { + response = &ModifyRouterInterfaceSpecResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_snat_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_snat_entry.go new file mode 100644 index 0000000..d26ae32 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_snat_entry.go @@ -0,0 +1,109 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifySnatEntry invokes the vpc.ModifySnatEntry API synchronously +// api document: https://help.aliyun.com/api/vpc/modifysnatentry.html +func (client *Client) ModifySnatEntry(request *ModifySnatEntryRequest) (response *ModifySnatEntryResponse, err error) { + response = CreateModifySnatEntryResponse() + err = client.DoAction(request, response) + return +} + +// ModifySnatEntryWithChan invokes the vpc.ModifySnatEntry API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifysnatentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySnatEntryWithChan(request *ModifySnatEntryRequest) (<-chan *ModifySnatEntryResponse, <-chan error) { + responseChan := make(chan *ModifySnatEntryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifySnatEntry(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifySnatEntryWithCallback invokes the vpc.ModifySnatEntry API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifysnatentry.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySnatEntryWithCallback(request *ModifySnatEntryRequest, callback func(response *ModifySnatEntryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifySnatEntryResponse + var err error + defer close(result) + response, err = client.ModifySnatEntry(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifySnatEntryRequest is the request struct for api ModifySnatEntry +type ModifySnatEntryRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SnatTableId string `position:"Query" name:"SnatTableId"` + SnatEntryId string `position:"Query" name:"SnatEntryId"` + SnatIp string `position:"Query" name:"SnatIp"` +} + +// ModifySnatEntryResponse is the response struct for api ModifySnatEntry +type ModifySnatEntryResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifySnatEntryRequest creates a request to invoke ModifySnatEntry API +func CreateModifySnatEntryRequest() (request *ModifySnatEntryRequest) { + request = &ModifySnatEntryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifySnatEntry", "vpc", "openAPI") + return +} + +// CreateModifySnatEntryResponse creates a response to parse from ModifySnatEntry response +func CreateModifySnatEntryResponse() (response *ModifySnatEntryResponse) { + response = &ModifySnatEntryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_ssl_vpn_client_cert.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_ssl_vpn_client_cert.go new file mode 100644 index 0000000..dc62ab1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_ssl_vpn_client_cert.go @@ -0,0 +1,111 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifySslVpnClientCert invokes the vpc.ModifySslVpnClientCert API synchronously +// api document: https://help.aliyun.com/api/vpc/modifysslvpnclientcert.html +func (client *Client) ModifySslVpnClientCert(request *ModifySslVpnClientCertRequest) (response *ModifySslVpnClientCertResponse, err error) { + response = CreateModifySslVpnClientCertResponse() + err = client.DoAction(request, response) + return +} + +// ModifySslVpnClientCertWithChan invokes the vpc.ModifySslVpnClientCert API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifysslvpnclientcert.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySslVpnClientCertWithChan(request *ModifySslVpnClientCertRequest) (<-chan *ModifySslVpnClientCertResponse, <-chan error) { + responseChan := make(chan *ModifySslVpnClientCertResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifySslVpnClientCert(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifySslVpnClientCertWithCallback invokes the vpc.ModifySslVpnClientCert API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifysslvpnclientcert.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySslVpnClientCertWithCallback(request *ModifySslVpnClientCertRequest, callback func(response *ModifySslVpnClientCertResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifySslVpnClientCertResponse + var err error + defer close(result) + response, err = client.ModifySslVpnClientCert(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifySslVpnClientCertRequest is the request struct for api ModifySslVpnClientCert +type ModifySslVpnClientCertRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + SslVpnClientCertId string `position:"Query" name:"SslVpnClientCertId"` + Name string `position:"Query" name:"Name"` +} + +// ModifySslVpnClientCertResponse is the response struct for api ModifySslVpnClientCert +type ModifySslVpnClientCertResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Name string `json:"Name" xml:"Name"` + SslVpnClientCertId string `json:"SslVpnClientCertId" xml:"SslVpnClientCertId"` +} + +// CreateModifySslVpnClientCertRequest creates a request to invoke ModifySslVpnClientCert API +func CreateModifySslVpnClientCertRequest() (request *ModifySslVpnClientCertRequest) { + request = &ModifySslVpnClientCertRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifySslVpnClientCert", "vpc", "openAPI") + return +} + +// CreateModifySslVpnClientCertResponse creates a response to parse from ModifySslVpnClientCert response +func CreateModifySslVpnClientCertResponse() (response *ModifySslVpnClientCertResponse) { + response = &ModifySslVpnClientCertResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_ssl_vpn_server.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_ssl_vpn_server.go new file mode 100644 index 0000000..df6cf7a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_ssl_vpn_server.go @@ -0,0 +1,129 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifySslVpnServer invokes the vpc.ModifySslVpnServer API synchronously +// api document: https://help.aliyun.com/api/vpc/modifysslvpnserver.html +func (client *Client) ModifySslVpnServer(request *ModifySslVpnServerRequest) (response *ModifySslVpnServerResponse, err error) { + response = CreateModifySslVpnServerResponse() + err = client.DoAction(request, response) + return +} + +// ModifySslVpnServerWithChan invokes the vpc.ModifySslVpnServer API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifysslvpnserver.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySslVpnServerWithChan(request *ModifySslVpnServerRequest) (<-chan *ModifySslVpnServerResponse, <-chan error) { + responseChan := make(chan *ModifySslVpnServerResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifySslVpnServer(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifySslVpnServerWithCallback invokes the vpc.ModifySslVpnServer API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifysslvpnserver.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifySslVpnServerWithCallback(request *ModifySslVpnServerRequest, callback func(response *ModifySslVpnServerResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifySslVpnServerResponse + var err error + defer close(result) + response, err = client.ModifySslVpnServer(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifySslVpnServerRequest is the request struct for api ModifySslVpnServer +type ModifySslVpnServerRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + SslVpnServerId string `position:"Query" name:"SslVpnServerId"` + Name string `position:"Query" name:"Name"` + ClientIpPool string `position:"Query" name:"ClientIpPool"` + LocalSubnet string `position:"Query" name:"LocalSubnet"` + Proto string `position:"Query" name:"Proto"` + Cipher string `position:"Query" name:"Cipher"` + Port requests.Integer `position:"Query" name:"Port"` + Compress requests.Boolean `position:"Query" name:"Compress"` +} + +// ModifySslVpnServerResponse is the response struct for api ModifySslVpnServer +type ModifySslVpnServerResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RegionId string `json:"RegionId" xml:"RegionId"` + SslVpnServerId string `json:"SslVpnServerId" xml:"SslVpnServerId"` + VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` + Name string `json:"Name" xml:"Name"` + LocalSubnet string `json:"LocalSubnet" xml:"LocalSubnet"` + ClientIpPool string `json:"ClientIpPool" xml:"ClientIpPool"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` + Cipher string `json:"Cipher" xml:"Cipher"` + Proto string `json:"Proto" xml:"Proto"` + Port int `json:"Port" xml:"Port"` + Compress bool `json:"Compress" xml:"Compress"` + Connections int `json:"Connections" xml:"Connections"` + MaxConnections int `json:"MaxConnections" xml:"MaxConnections"` + InternetIp string `json:"InternetIp" xml:"InternetIp"` +} + +// CreateModifySslVpnServerRequest creates a request to invoke ModifySslVpnServer API +func CreateModifySslVpnServerRequest() (request *ModifySslVpnServerRequest) { + request = &ModifySslVpnServerRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifySslVpnServer", "vpc", "openAPI") + return +} + +// CreateModifySslVpnServerResponse creates a response to parse from ModifySslVpnServer response +func CreateModifySslVpnServerResponse() (response *ModifySslVpnServerResponse) { + response = &ModifySslVpnServerResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_v_router_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_v_router_attribute.go new file mode 100644 index 0000000..c9d4f19 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_v_router_attribute.go @@ -0,0 +1,109 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyVRouterAttribute invokes the vpc.ModifyVRouterAttribute API synchronously +// api document: https://help.aliyun.com/api/vpc/modifyvrouterattribute.html +func (client *Client) ModifyVRouterAttribute(request *ModifyVRouterAttributeRequest) (response *ModifyVRouterAttributeResponse, err error) { + response = CreateModifyVRouterAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyVRouterAttributeWithChan invokes the vpc.ModifyVRouterAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyvrouterattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVRouterAttributeWithChan(request *ModifyVRouterAttributeRequest) (<-chan *ModifyVRouterAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyVRouterAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyVRouterAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyVRouterAttributeWithCallback invokes the vpc.ModifyVRouterAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyvrouterattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVRouterAttributeWithCallback(request *ModifyVRouterAttributeRequest, callback func(response *ModifyVRouterAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyVRouterAttributeResponse + var err error + defer close(result) + response, err = client.ModifyVRouterAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyVRouterAttributeRequest is the request struct for api ModifyVRouterAttribute +type ModifyVRouterAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VRouterId string `position:"Query" name:"VRouterId"` + VRouterName string `position:"Query" name:"VRouterName"` + Description string `position:"Query" name:"Description"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyVRouterAttributeResponse is the response struct for api ModifyVRouterAttribute +type ModifyVRouterAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyVRouterAttributeRequest creates a request to invoke ModifyVRouterAttribute API +func CreateModifyVRouterAttributeRequest() (request *ModifyVRouterAttributeRequest) { + request = &ModifyVRouterAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyVRouterAttribute", "vpc", "openAPI") + return +} + +// CreateModifyVRouterAttributeResponse creates a response to parse from ModifyVRouterAttribute response +func CreateModifyVRouterAttributeResponse() (response *ModifyVRouterAttributeResponse) { + response = &ModifyVRouterAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_v_switch_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_v_switch_attribute.go new file mode 100644 index 0000000..10e0e78 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_v_switch_attribute.go @@ -0,0 +1,109 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyVSwitchAttribute invokes the vpc.ModifyVSwitchAttribute API synchronously +// api document: https://help.aliyun.com/api/vpc/modifyvswitchattribute.html +func (client *Client) ModifyVSwitchAttribute(request *ModifyVSwitchAttributeRequest) (response *ModifyVSwitchAttributeResponse, err error) { + response = CreateModifyVSwitchAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyVSwitchAttributeWithChan invokes the vpc.ModifyVSwitchAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyvswitchattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVSwitchAttributeWithChan(request *ModifyVSwitchAttributeRequest) (<-chan *ModifyVSwitchAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyVSwitchAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyVSwitchAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyVSwitchAttributeWithCallback invokes the vpc.ModifyVSwitchAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyvswitchattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVSwitchAttributeWithCallback(request *ModifyVSwitchAttributeRequest, callback func(response *ModifyVSwitchAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyVSwitchAttributeResponse + var err error + defer close(result) + response, err = client.ModifyVSwitchAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyVSwitchAttributeRequest is the request struct for api ModifyVSwitchAttribute +type ModifyVSwitchAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + VSwitchName string `position:"Query" name:"VSwitchName"` + Description string `position:"Query" name:"Description"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyVSwitchAttributeResponse is the response struct for api ModifyVSwitchAttribute +type ModifyVSwitchAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyVSwitchAttributeRequest creates a request to invoke ModifyVSwitchAttribute API +func CreateModifyVSwitchAttributeRequest() (request *ModifyVSwitchAttributeRequest) { + request = &ModifyVSwitchAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyVSwitchAttribute", "vpc", "openAPI") + return +} + +// CreateModifyVSwitchAttributeResponse creates a response to parse from ModifyVSwitchAttribute response +func CreateModifyVSwitchAttributeResponse() (response *ModifyVSwitchAttributeResponse) { + response = &ModifyVSwitchAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_virtual_border_router_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_virtual_border_router_attribute.go new file mode 100644 index 0000000..7643fe8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_virtual_border_router_attribute.go @@ -0,0 +1,116 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyVirtualBorderRouterAttribute invokes the vpc.ModifyVirtualBorderRouterAttribute API synchronously +// api document: https://help.aliyun.com/api/vpc/modifyvirtualborderrouterattribute.html +func (client *Client) ModifyVirtualBorderRouterAttribute(request *ModifyVirtualBorderRouterAttributeRequest) (response *ModifyVirtualBorderRouterAttributeResponse, err error) { + response = CreateModifyVirtualBorderRouterAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyVirtualBorderRouterAttributeWithChan invokes the vpc.ModifyVirtualBorderRouterAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyvirtualborderrouterattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVirtualBorderRouterAttributeWithChan(request *ModifyVirtualBorderRouterAttributeRequest) (<-chan *ModifyVirtualBorderRouterAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyVirtualBorderRouterAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyVirtualBorderRouterAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyVirtualBorderRouterAttributeWithCallback invokes the vpc.ModifyVirtualBorderRouterAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyvirtualborderrouterattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVirtualBorderRouterAttributeWithCallback(request *ModifyVirtualBorderRouterAttributeRequest, callback func(response *ModifyVirtualBorderRouterAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyVirtualBorderRouterAttributeResponse + var err error + defer close(result) + response, err = client.ModifyVirtualBorderRouterAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyVirtualBorderRouterAttributeRequest is the request struct for api ModifyVirtualBorderRouterAttribute +type ModifyVirtualBorderRouterAttributeRequest struct { + *requests.RpcRequest + VbrId string `position:"Query" name:"VbrId"` + VlanId requests.Integer `position:"Query" name:"VlanId"` + CircuitCode string `position:"Query" name:"CircuitCode"` + LocalGatewayIp string `position:"Query" name:"LocalGatewayIp"` + PeerGatewayIp string `position:"Query" name:"PeerGatewayIp"` + PeeringSubnetMask string `position:"Query" name:"PeeringSubnetMask"` + Description string `position:"Query" name:"Description"` + Name string `position:"Query" name:"Name"` + AssociatedPhysicalConnections string `position:"Query" name:"AssociatedPhysicalConnections"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyVirtualBorderRouterAttributeResponse is the response struct for api ModifyVirtualBorderRouterAttribute +type ModifyVirtualBorderRouterAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyVirtualBorderRouterAttributeRequest creates a request to invoke ModifyVirtualBorderRouterAttribute API +func CreateModifyVirtualBorderRouterAttributeRequest() (request *ModifyVirtualBorderRouterAttributeRequest) { + request = &ModifyVirtualBorderRouterAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyVirtualBorderRouterAttribute", "vpc", "openAPI") + return +} + +// CreateModifyVirtualBorderRouterAttributeResponse creates a response to parse from ModifyVirtualBorderRouterAttribute response +func CreateModifyVirtualBorderRouterAttributeResponse() (response *ModifyVirtualBorderRouterAttributeResponse) { + response = &ModifyVirtualBorderRouterAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_vpc_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_vpc_attribute.go new file mode 100644 index 0000000..a714d9d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_vpc_attribute.go @@ -0,0 +1,109 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyVpcAttribute invokes the vpc.ModifyVpcAttribute API synchronously +// api document: https://help.aliyun.com/api/vpc/modifyvpcattribute.html +func (client *Client) ModifyVpcAttribute(request *ModifyVpcAttributeRequest) (response *ModifyVpcAttributeResponse, err error) { + response = CreateModifyVpcAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyVpcAttributeWithChan invokes the vpc.ModifyVpcAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyvpcattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVpcAttributeWithChan(request *ModifyVpcAttributeRequest) (<-chan *ModifyVpcAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyVpcAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyVpcAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyVpcAttributeWithCallback invokes the vpc.ModifyVpcAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyvpcattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVpcAttributeWithCallback(request *ModifyVpcAttributeRequest, callback func(response *ModifyVpcAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyVpcAttributeResponse + var err error + defer close(result) + response, err = client.ModifyVpcAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyVpcAttributeRequest is the request struct for api ModifyVpcAttribute +type ModifyVpcAttributeRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VpcId string `position:"Query" name:"VpcId"` + Description string `position:"Query" name:"Description"` + VpcName string `position:"Query" name:"VpcName"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ModifyVpcAttributeResponse is the response struct for api ModifyVpcAttribute +type ModifyVpcAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyVpcAttributeRequest creates a request to invoke ModifyVpcAttribute API +func CreateModifyVpcAttributeRequest() (request *ModifyVpcAttributeRequest) { + request = &ModifyVpcAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyVpcAttribute", "vpc", "openAPI") + return +} + +// CreateModifyVpcAttributeResponse creates a response to parse from ModifyVpcAttribute response +func CreateModifyVpcAttributeResponse() (response *ModifyVpcAttributeResponse) { + response = &ModifyVpcAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_vpn_connection_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_vpn_connection_attribute.go new file mode 100644 index 0000000..8c97f8f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_vpn_connection_attribute.go @@ -0,0 +1,125 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyVpnConnectionAttribute invokes the vpc.ModifyVpnConnectionAttribute API synchronously +// api document: https://help.aliyun.com/api/vpc/modifyvpnconnectionattribute.html +func (client *Client) ModifyVpnConnectionAttribute(request *ModifyVpnConnectionAttributeRequest) (response *ModifyVpnConnectionAttributeResponse, err error) { + response = CreateModifyVpnConnectionAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyVpnConnectionAttributeWithChan invokes the vpc.ModifyVpnConnectionAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyvpnconnectionattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVpnConnectionAttributeWithChan(request *ModifyVpnConnectionAttributeRequest) (<-chan *ModifyVpnConnectionAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyVpnConnectionAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyVpnConnectionAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyVpnConnectionAttributeWithCallback invokes the vpc.ModifyVpnConnectionAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyvpnconnectionattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVpnConnectionAttributeWithCallback(request *ModifyVpnConnectionAttributeRequest, callback func(response *ModifyVpnConnectionAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyVpnConnectionAttributeResponse + var err error + defer close(result) + response, err = client.ModifyVpnConnectionAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyVpnConnectionAttributeRequest is the request struct for api ModifyVpnConnectionAttribute +type ModifyVpnConnectionAttributeRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + VpnConnectionId string `position:"Query" name:"VpnConnectionId"` + Name string `position:"Query" name:"Name"` + LocalSubnet string `position:"Query" name:"LocalSubnet"` + RemoteSubnet string `position:"Query" name:"RemoteSubnet"` + EffectImmediately requests.Boolean `position:"Query" name:"EffectImmediately"` + IkeConfig string `position:"Query" name:"IkeConfig"` + IpsecConfig string `position:"Query" name:"IpsecConfig"` +} + +// ModifyVpnConnectionAttributeResponse is the response struct for api ModifyVpnConnectionAttribute +type ModifyVpnConnectionAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VpnConnectionId string `json:"VpnConnectionId" xml:"VpnConnectionId"` + CustomerGatewayId string `json:"CustomerGatewayId" xml:"CustomerGatewayId"` + VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + LocalSubnet string `json:"LocalSubnet" xml:"LocalSubnet"` + RemoteSubnet string `json:"RemoteSubnet" xml:"RemoteSubnet"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` + EffectImmediately bool `json:"EffectImmediately" xml:"EffectImmediately"` + IkeConfig IkeConfig `json:"IkeConfig" xml:"IkeConfig"` + IpsecConfig IpsecConfig `json:"IpsecConfig" xml:"IpsecConfig"` +} + +// CreateModifyVpnConnectionAttributeRequest creates a request to invoke ModifyVpnConnectionAttribute API +func CreateModifyVpnConnectionAttributeRequest() (request *ModifyVpnConnectionAttributeRequest) { + request = &ModifyVpnConnectionAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyVpnConnectionAttribute", "vpc", "openAPI") + return +} + +// CreateModifyVpnConnectionAttributeResponse creates a response to parse from ModifyVpnConnectionAttribute response +func CreateModifyVpnConnectionAttributeResponse() (response *ModifyVpnConnectionAttributeResponse) { + response = &ModifyVpnConnectionAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_vpn_gateway_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_vpn_gateway_attribute.go new file mode 100644 index 0000000..8adf1ae --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/modify_vpn_gateway_attribute.go @@ -0,0 +1,122 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyVpnGatewayAttribute invokes the vpc.ModifyVpnGatewayAttribute API synchronously +// api document: https://help.aliyun.com/api/vpc/modifyvpngatewayattribute.html +func (client *Client) ModifyVpnGatewayAttribute(request *ModifyVpnGatewayAttributeRequest) (response *ModifyVpnGatewayAttributeResponse, err error) { + response = CreateModifyVpnGatewayAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyVpnGatewayAttributeWithChan invokes the vpc.ModifyVpnGatewayAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyvpngatewayattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVpnGatewayAttributeWithChan(request *ModifyVpnGatewayAttributeRequest) (<-chan *ModifyVpnGatewayAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyVpnGatewayAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyVpnGatewayAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyVpnGatewayAttributeWithCallback invokes the vpc.ModifyVpnGatewayAttribute API asynchronously +// api document: https://help.aliyun.com/api/vpc/modifyvpngatewayattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyVpnGatewayAttributeWithCallback(request *ModifyVpnGatewayAttributeRequest, callback func(response *ModifyVpnGatewayAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyVpnGatewayAttributeResponse + var err error + defer close(result) + response, err = client.ModifyVpnGatewayAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyVpnGatewayAttributeRequest is the request struct for api ModifyVpnGatewayAttribute +type ModifyVpnGatewayAttributeRequest struct { + *requests.RpcRequest + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + VpnGatewayId string `position:"Query" name:"VpnGatewayId"` + Name string `position:"Query" name:"Name"` + Description string `position:"Query" name:"Description"` +} + +// ModifyVpnGatewayAttributeResponse is the response struct for api ModifyVpnGatewayAttribute +type ModifyVpnGatewayAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` + VpcId string `json:"VpcId" xml:"VpcId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + InternetIp string `json:"InternetIp" xml:"InternetIp"` + IntranetIp string `json:"IntranetIp" xml:"IntranetIp"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` + EndTime int `json:"EndTime" xml:"EndTime"` + Spec string `json:"Spec" xml:"Spec"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + Status string `json:"Status" xml:"Status"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` +} + +// CreateModifyVpnGatewayAttributeRequest creates a request to invoke ModifyVpnGatewayAttribute API +func CreateModifyVpnGatewayAttributeRequest() (request *ModifyVpnGatewayAttributeRequest) { + request = &ModifyVpnGatewayAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyVpnGatewayAttribute", "vpc", "openAPI") + return +} + +// CreateModifyVpnGatewayAttributeResponse creates a response to parse from ModifyVpnGatewayAttribute response +func CreateModifyVpnGatewayAttributeResponse() (response *ModifyVpnGatewayAttributeResponse) { + response = &ModifyVpnGatewayAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/move_resource_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/move_resource_group.go new file mode 100644 index 0000000..7bde8d3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/move_resource_group.go @@ -0,0 +1,109 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost 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 vpc.MoveResourceGroup API synchronously +// api document: https://help.aliyun.com/api/vpc/moveresourcegroup.html +func (client *Client) MoveResourceGroup(request *MoveResourceGroupRequest) (response *MoveResourceGroupResponse, err error) { + response = CreateMoveResourceGroupResponse() + err = client.DoAction(request, response) + return +} + +// MoveResourceGroupWithChan invokes the vpc.MoveResourceGroup API asynchronously +// api document: https://help.aliyun.com/api/vpc/moveresourcegroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 vpc.MoveResourceGroup API asynchronously +// api document: https://help.aliyun.com/api/vpc/moveresourcegroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +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 + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceId string `position:"Query" name:"ResourceId"` + ResourceType string `position:"Query" name:"ResourceType"` + NewResourceGroupId string `position:"Query" name:"NewResourceGroupId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// 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("Vpc", "2016-04-28", "MoveResourceGroup", "vpc", "openAPI") + 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/vpc/recover_virtual_border_router.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/recover_virtual_border_router.go new file mode 100644 index 0000000..17418b0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/recover_virtual_border_router.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RecoverVirtualBorderRouter invokes the vpc.RecoverVirtualBorderRouter API synchronously +// api document: https://help.aliyun.com/api/vpc/recovervirtualborderrouter.html +func (client *Client) RecoverVirtualBorderRouter(request *RecoverVirtualBorderRouterRequest) (response *RecoverVirtualBorderRouterResponse, err error) { + response = CreateRecoverVirtualBorderRouterResponse() + err = client.DoAction(request, response) + return +} + +// RecoverVirtualBorderRouterWithChan invokes the vpc.RecoverVirtualBorderRouter API asynchronously +// api document: https://help.aliyun.com/api/vpc/recovervirtualborderrouter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RecoverVirtualBorderRouterWithChan(request *RecoverVirtualBorderRouterRequest) (<-chan *RecoverVirtualBorderRouterResponse, <-chan error) { + responseChan := make(chan *RecoverVirtualBorderRouterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RecoverVirtualBorderRouter(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RecoverVirtualBorderRouterWithCallback invokes the vpc.RecoverVirtualBorderRouter API asynchronously +// api document: https://help.aliyun.com/api/vpc/recovervirtualborderrouter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RecoverVirtualBorderRouterWithCallback(request *RecoverVirtualBorderRouterRequest, callback func(response *RecoverVirtualBorderRouterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RecoverVirtualBorderRouterResponse + var err error + defer close(result) + response, err = client.RecoverVirtualBorderRouter(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RecoverVirtualBorderRouterRequest is the request struct for api RecoverVirtualBorderRouter +type RecoverVirtualBorderRouterRequest struct { + *requests.RpcRequest + VbrId string `position:"Query" name:"VbrId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// RecoverVirtualBorderRouterResponse is the response struct for api RecoverVirtualBorderRouter +type RecoverVirtualBorderRouterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRecoverVirtualBorderRouterRequest creates a request to invoke RecoverVirtualBorderRouter API +func CreateRecoverVirtualBorderRouterRequest() (request *RecoverVirtualBorderRouterRequest) { + request = &RecoverVirtualBorderRouterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "RecoverVirtualBorderRouter", "vpc", "openAPI") + return +} + +// CreateRecoverVirtualBorderRouterResponse creates a response to parse from RecoverVirtualBorderRouter response +func CreateRecoverVirtualBorderRouterResponse() (response *RecoverVirtualBorderRouterResponse) { + response = &RecoverVirtualBorderRouterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/release_eip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/release_eip_address.go new file mode 100644 index 0000000..cc2deaa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/release_eip_address.go @@ -0,0 +1,107 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReleaseEipAddress invokes the vpc.ReleaseEipAddress API synchronously +// api document: https://help.aliyun.com/api/vpc/releaseeipaddress.html +func (client *Client) ReleaseEipAddress(request *ReleaseEipAddressRequest) (response *ReleaseEipAddressResponse, err error) { + response = CreateReleaseEipAddressResponse() + err = client.DoAction(request, response) + return +} + +// ReleaseEipAddressWithChan invokes the vpc.ReleaseEipAddress API asynchronously +// api document: https://help.aliyun.com/api/vpc/releaseeipaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReleaseEipAddressWithChan(request *ReleaseEipAddressRequest) (<-chan *ReleaseEipAddressResponse, <-chan error) { + responseChan := make(chan *ReleaseEipAddressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReleaseEipAddress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReleaseEipAddressWithCallback invokes the vpc.ReleaseEipAddress API asynchronously +// api document: https://help.aliyun.com/api/vpc/releaseeipaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReleaseEipAddressWithCallback(request *ReleaseEipAddressRequest, callback func(response *ReleaseEipAddressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReleaseEipAddressResponse + var err error + defer close(result) + response, err = client.ReleaseEipAddress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReleaseEipAddressRequest is the request struct for api ReleaseEipAddress +type ReleaseEipAddressRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AllocationId string `position:"Query" name:"AllocationId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// ReleaseEipAddressResponse is the response struct for api ReleaseEipAddress +type ReleaseEipAddressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateReleaseEipAddressRequest creates a request to invoke ReleaseEipAddress API +func CreateReleaseEipAddressRequest() (request *ReleaseEipAddressRequest) { + request = &ReleaseEipAddressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ReleaseEipAddress", "vpc", "openAPI") + return +} + +// CreateReleaseEipAddressResponse creates a response to parse from ReleaseEipAddress response +func CreateReleaseEipAddressResponse() (response *ReleaseEipAddressResponse) { + response = &ReleaseEipAddressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/remove_bandwidth_package_ips.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/remove_bandwidth_package_ips.go new file mode 100644 index 0000000..f148911 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/remove_bandwidth_package_ips.go @@ -0,0 +1,109 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveBandwidthPackageIps invokes the vpc.RemoveBandwidthPackageIps API synchronously +// api document: https://help.aliyun.com/api/vpc/removebandwidthpackageips.html +func (client *Client) RemoveBandwidthPackageIps(request *RemoveBandwidthPackageIpsRequest) (response *RemoveBandwidthPackageIpsResponse, err error) { + response = CreateRemoveBandwidthPackageIpsResponse() + err = client.DoAction(request, response) + return +} + +// RemoveBandwidthPackageIpsWithChan invokes the vpc.RemoveBandwidthPackageIps API asynchronously +// api document: https://help.aliyun.com/api/vpc/removebandwidthpackageips.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveBandwidthPackageIpsWithChan(request *RemoveBandwidthPackageIpsRequest) (<-chan *RemoveBandwidthPackageIpsResponse, <-chan error) { + responseChan := make(chan *RemoveBandwidthPackageIpsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveBandwidthPackageIps(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveBandwidthPackageIpsWithCallback invokes the vpc.RemoveBandwidthPackageIps API asynchronously +// api document: https://help.aliyun.com/api/vpc/removebandwidthpackageips.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveBandwidthPackageIpsWithCallback(request *RemoveBandwidthPackageIpsRequest, callback func(response *RemoveBandwidthPackageIpsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveBandwidthPackageIpsResponse + var err error + defer close(result) + response, err = client.RemoveBandwidthPackageIps(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveBandwidthPackageIpsRequest is the request struct for api RemoveBandwidthPackageIps +type RemoveBandwidthPackageIpsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` + ClientToken string `position:"Query" name:"ClientToken"` + RemovedIpAddresses *[]string `position:"Query" name:"RemovedIpAddresses" type:"Repeated"` +} + +// RemoveBandwidthPackageIpsResponse is the response struct for api RemoveBandwidthPackageIps +type RemoveBandwidthPackageIpsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveBandwidthPackageIpsRequest creates a request to invoke RemoveBandwidthPackageIps API +func CreateRemoveBandwidthPackageIpsRequest() (request *RemoveBandwidthPackageIpsRequest) { + request = &RemoveBandwidthPackageIpsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "RemoveBandwidthPackageIps", "vpc", "openAPI") + return +} + +// CreateRemoveBandwidthPackageIpsResponse creates a response to parse from RemoveBandwidthPackageIps response +func CreateRemoveBandwidthPackageIpsResponse() (response *RemoveBandwidthPackageIpsResponse) { + response = &RemoveBandwidthPackageIpsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/remove_common_bandwidth_package_ip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/remove_common_bandwidth_package_ip.go new file mode 100644 index 0000000..0f697e7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/remove_common_bandwidth_package_ip.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveCommonBandwidthPackageIp invokes the vpc.RemoveCommonBandwidthPackageIp API synchronously +// api document: https://help.aliyun.com/api/vpc/removecommonbandwidthpackageip.html +func (client *Client) RemoveCommonBandwidthPackageIp(request *RemoveCommonBandwidthPackageIpRequest) (response *RemoveCommonBandwidthPackageIpResponse, err error) { + response = CreateRemoveCommonBandwidthPackageIpResponse() + err = client.DoAction(request, response) + return +} + +// RemoveCommonBandwidthPackageIpWithChan invokes the vpc.RemoveCommonBandwidthPackageIp API asynchronously +// api document: https://help.aliyun.com/api/vpc/removecommonbandwidthpackageip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveCommonBandwidthPackageIpWithChan(request *RemoveCommonBandwidthPackageIpRequest) (<-chan *RemoveCommonBandwidthPackageIpResponse, <-chan error) { + responseChan := make(chan *RemoveCommonBandwidthPackageIpResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveCommonBandwidthPackageIp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveCommonBandwidthPackageIpWithCallback invokes the vpc.RemoveCommonBandwidthPackageIp API asynchronously +// api document: https://help.aliyun.com/api/vpc/removecommonbandwidthpackageip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveCommonBandwidthPackageIpWithCallback(request *RemoveCommonBandwidthPackageIpRequest, callback func(response *RemoveCommonBandwidthPackageIpResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveCommonBandwidthPackageIpResponse + var err error + defer close(result) + response, err = client.RemoveCommonBandwidthPackageIp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveCommonBandwidthPackageIpRequest is the request struct for api RemoveCommonBandwidthPackageIp +type RemoveCommonBandwidthPackageIpRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` + IpInstanceId string `position:"Query" name:"IpInstanceId"` +} + +// RemoveCommonBandwidthPackageIpResponse is the response struct for api RemoveCommonBandwidthPackageIp +type RemoveCommonBandwidthPackageIpResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveCommonBandwidthPackageIpRequest creates a request to invoke RemoveCommonBandwidthPackageIp API +func CreateRemoveCommonBandwidthPackageIpRequest() (request *RemoveCommonBandwidthPackageIpRequest) { + request = &RemoveCommonBandwidthPackageIpRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "RemoveCommonBandwidthPackageIp", "vpc", "openAPI") + return +} + +// CreateRemoveCommonBandwidthPackageIpResponse creates a response to parse from RemoveCommonBandwidthPackageIp response +func CreateRemoveCommonBandwidthPackageIpResponse() (response *RemoveCommonBandwidthPackageIpResponse) { + response = &RemoveCommonBandwidthPackageIpResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/remove_global_acceleration_instance_ip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/remove_global_acceleration_instance_ip.go new file mode 100644 index 0000000..3915593 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/remove_global_acceleration_instance_ip.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RemoveGlobalAccelerationInstanceIp invokes the vpc.RemoveGlobalAccelerationInstanceIp API synchronously +// api document: https://help.aliyun.com/api/vpc/removeglobalaccelerationinstanceip.html +func (client *Client) RemoveGlobalAccelerationInstanceIp(request *RemoveGlobalAccelerationInstanceIpRequest) (response *RemoveGlobalAccelerationInstanceIpResponse, err error) { + response = CreateRemoveGlobalAccelerationInstanceIpResponse() + err = client.DoAction(request, response) + return +} + +// RemoveGlobalAccelerationInstanceIpWithChan invokes the vpc.RemoveGlobalAccelerationInstanceIp API asynchronously +// api document: https://help.aliyun.com/api/vpc/removeglobalaccelerationinstanceip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveGlobalAccelerationInstanceIpWithChan(request *RemoveGlobalAccelerationInstanceIpRequest) (<-chan *RemoveGlobalAccelerationInstanceIpResponse, <-chan error) { + responseChan := make(chan *RemoveGlobalAccelerationInstanceIpResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveGlobalAccelerationInstanceIp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveGlobalAccelerationInstanceIpWithCallback invokes the vpc.RemoveGlobalAccelerationInstanceIp API asynchronously +// api document: https://help.aliyun.com/api/vpc/removeglobalaccelerationinstanceip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RemoveGlobalAccelerationInstanceIpWithCallback(request *RemoveGlobalAccelerationInstanceIpRequest, callback func(response *RemoveGlobalAccelerationInstanceIpResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveGlobalAccelerationInstanceIpResponse + var err error + defer close(result) + response, err = client.RemoveGlobalAccelerationInstanceIp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveGlobalAccelerationInstanceIpRequest is the request struct for api RemoveGlobalAccelerationInstanceIp +type RemoveGlobalAccelerationInstanceIpRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + GlobalAccelerationInstanceId string `position:"Query" name:"GlobalAccelerationInstanceId"` + IpInstanceId string `position:"Query" name:"IpInstanceId"` +} + +// RemoveGlobalAccelerationInstanceIpResponse is the response struct for api RemoveGlobalAccelerationInstanceIp +type RemoveGlobalAccelerationInstanceIpResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveGlobalAccelerationInstanceIpRequest creates a request to invoke RemoveGlobalAccelerationInstanceIp API +func CreateRemoveGlobalAccelerationInstanceIpRequest() (request *RemoveGlobalAccelerationInstanceIpRequest) { + request = &RemoveGlobalAccelerationInstanceIpRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "RemoveGlobalAccelerationInstanceIp", "vpc", "openAPI") + return +} + +// CreateRemoveGlobalAccelerationInstanceIpResponse creates a response to parse from RemoveGlobalAccelerationInstanceIp response +func CreateRemoveGlobalAccelerationInstanceIpResponse() (response *RemoveGlobalAccelerationInstanceIpResponse) { + response = &RemoveGlobalAccelerationInstanceIpResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_access_point_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_access_point_set.go new file mode 100644 index 0000000..ca1b0e6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_access_point_set.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AccessPointSet is a nested struct in vpc response +type AccessPointSet struct { + AccessPointType []AccessPointType `json:"AccessPointType" xml:"AccessPointType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_access_point_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_access_point_type.go new file mode 100644 index 0000000..663c9c3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_access_point_type.go @@ -0,0 +1,28 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AccessPointType is a nested struct in vpc response +type AccessPointType struct { + AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` + Status string `json:"Status" xml:"Status"` + Type string `json:"Type" xml:"Type"` + AttachedRegionNo string `json:"AttachedRegionNo" xml:"AttachedRegionNo"` + Location string `json:"Location" xml:"Location"` + HostOperator string `json:"HostOperator" xml:"HostOperator"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_cen.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_cen.go new file mode 100644 index 0000000..89c96ab --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_cen.go @@ -0,0 +1,23 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AssociatedCen is a nested struct in vpc response +type AssociatedCen struct { + CenStatus string `json:"CenStatus" xml:"CenStatus"` + CenOwnerId int `json:"CenOwnerId" xml:"CenOwnerId"` + CenId string `json:"CenId" xml:"CenId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_cens_in_describe_virtual_border_routers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_cens_in_describe_virtual_border_routers.go new file mode 100644 index 0000000..392efdc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_cens_in_describe_virtual_border_routers.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AssociatedCensInDescribeVirtualBorderRouters is a nested struct in vpc response +type AssociatedCensInDescribeVirtualBorderRouters struct { + AssociatedCen []AssociatedCen `json:"AssociatedCen" xml:"AssociatedCen"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_cens_in_describe_vpc_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_cens_in_describe_vpc_attribute.go new file mode 100644 index 0000000..82dea69 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_cens_in_describe_vpc_attribute.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AssociatedCensInDescribeVpcAttribute is a nested struct in vpc response +type AssociatedCensInDescribeVpcAttribute struct { + AssociatedCen []AssociatedCen `json:"AssociatedCen" xml:"AssociatedCen"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_eip_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_eip_addresses.go new file mode 100644 index 0000000..489ce9f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_eip_addresses.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AssociatedEipAddresses is a nested struct in vpc response +type AssociatedEipAddresses struct { + AssociatedEipAddresse []string `json:"associatedEipAddresse" xml:"associatedEipAddresse"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_instances.go new file mode 100644 index 0000000..f85c900 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_instances.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AssociatedInstances is a nested struct in vpc response +type AssociatedInstances struct { + AssociatedInstance []string `json:"associatedInstance" xml:"associatedInstance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_physical_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_physical_connection.go new file mode 100644 index 0000000..b7c15c3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_physical_connection.go @@ -0,0 +1,30 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AssociatedPhysicalConnection is a nested struct in vpc response +type AssociatedPhysicalConnection struct { + CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` + VlanInterfaceId string `json:"VlanInterfaceId" xml:"VlanInterfaceId"` + LocalGatewayIp string `json:"LocalGatewayIp" xml:"LocalGatewayIp"` + PeerGatewayIp string `json:"PeerGatewayIp" xml:"PeerGatewayIp"` + PeeringSubnetMask string `json:"PeeringSubnetMask" xml:"PeeringSubnetMask"` + PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` + PhysicalConnectionStatus string `json:"PhysicalConnectionStatus" xml:"PhysicalConnectionStatus"` + PhysicalConnectionBusinessStatus string `json:"PhysicalConnectionBusinessStatus" xml:"PhysicalConnectionBusinessStatus"` + PhysicalConnectionOwnerUid string `json:"PhysicalConnectionOwnerUid" xml:"PhysicalConnectionOwnerUid"` + VlanId string `json:"VlanId" xml:"VlanId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_physical_connections.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_physical_connections.go new file mode 100644 index 0000000..d60507d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_associated_physical_connections.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AssociatedPhysicalConnections is a nested struct in vpc response +type AssociatedPhysicalConnections struct { + AssociatedPhysicalConnection []AssociatedPhysicalConnection `json:"AssociatedPhysicalConnection" xml:"AssociatedPhysicalConnection"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_available_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_available_regions.go new file mode 100644 index 0000000..208cf67 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_available_regions.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AvailableRegions is a nested struct in vpc response +type AvailableRegions struct { + AvailableRegion []string `json:"AvailableRegion" xml:"AvailableRegion"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_backend_server.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_backend_server.go new file mode 100644 index 0000000..e22487a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_backend_server.go @@ -0,0 +1,24 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServer is a nested struct in vpc response +type BackendServer struct { + RegionId string `json:"RegionId" xml:"RegionId"` + ServerId string `json:"ServerId" xml:"ServerId"` + ServerIpAddress string `json:"ServerIpAddress" xml:"ServerIpAddress"` + ServerType string `json:"ServerType" xml:"ServerType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_backend_servers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_backend_servers.go new file mode 100644 index 0000000..43ccff3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_backend_servers.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServers is a nested struct in vpc response +type BackendServers struct { + BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bandwidth_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bandwidth_package.go new file mode 100644 index 0000000..68cdc57 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bandwidth_package.go @@ -0,0 +1,35 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BandwidthPackage is a nested struct in vpc response +type BandwidthPackage struct { + BandwidthPackageId string `json:"BandwidthPackageId" xml:"BandwidthPackageId"` + RegionId string `json:"RegionId" xml:"RegionId"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` + Bandwidth string `json:"Bandwidth" xml:"Bandwidth"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + IpCount string `json:"IpCount" xml:"IpCount"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Status string `json:"Status" xml:"Status"` + ISP string `json:"ISP" xml:"ISP"` + PublicIpAddresses PublicIpAddressesInDescribeBandwidthPackages `json:"PublicIpAddresses" xml:"PublicIpAddresses"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bandwidth_package_ids_in_create_nat_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bandwidth_package_ids_in_create_nat_gateway.go new file mode 100644 index 0000000..714a19d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bandwidth_package_ids_in_create_nat_gateway.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BandwidthPackageIdsInCreateNatGateway is a nested struct in vpc response +type BandwidthPackageIdsInCreateNatGateway struct { + BandwidthPackageId []string `json:"BandwidthPackageId" xml:"BandwidthPackageId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bandwidth_package_ids_in_describe_nat_gateways.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bandwidth_package_ids_in_describe_nat_gateways.go new file mode 100644 index 0000000..1126380 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bandwidth_package_ids_in_describe_nat_gateways.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BandwidthPackageIdsInDescribeNatGateways is a nested struct in vpc response +type BandwidthPackageIdsInDescribeNatGateways struct { + BandwidthPackageId []string `json:"BandwidthPackageId" xml:"BandwidthPackageId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bandwidth_packages.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bandwidth_packages.go new file mode 100644 index 0000000..3a285c6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bandwidth_packages.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BandwidthPackages is a nested struct in vpc response +type BandwidthPackages struct { + BandwidthPackage []BandwidthPackage `json:"BandwidthPackage" xml:"BandwidthPackage"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bgp_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bgp_group.go new file mode 100644 index 0000000..0b992b8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bgp_group.go @@ -0,0 +1,33 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BgpGroup is a nested struct in vpc response +type BgpGroup struct { + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + BgpGroupId string `json:"BgpGroupId" xml:"BgpGroupId"` + PeerAsn string `json:"PeerAsn" xml:"PeerAsn"` + AuthKey string `json:"AuthKey" xml:"AuthKey"` + RouterId string `json:"RouterId" xml:"RouterId"` + Status string `json:"Status" xml:"Status"` + Keepalive string `json:"Keepalive" xml:"Keepalive"` + LocalAsn string `json:"LocalAsn" xml:"LocalAsn"` + Hold string `json:"Hold" xml:"Hold"` + IsFake string `json:"IsFake" xml:"IsFake"` + RouteLimit string `json:"RouteLimit" xml:"RouteLimit"` + RegionId string `json:"RegionId" xml:"RegionId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bgp_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bgp_groups.go new file mode 100644 index 0000000..5b71eed --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bgp_groups.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BgpGroups is a nested struct in vpc response +type BgpGroups struct { + BgpGroup []BgpGroup `json:"BgpGroup" xml:"BgpGroup"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bgp_peer.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bgp_peer.go new file mode 100644 index 0000000..14b14fe --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bgp_peer.go @@ -0,0 +1,36 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BgpPeer is a nested struct in vpc response +type BgpPeer struct { + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + BgpPeerId string `json:"BgpPeerId" xml:"BgpPeerId"` + BgpGroupId string `json:"BgpGroupId" xml:"BgpGroupId"` + PeerIpAddress string `json:"PeerIpAddress" xml:"PeerIpAddress"` + PeerAsn string `json:"PeerAsn" xml:"PeerAsn"` + AuthKey string `json:"AuthKey" xml:"AuthKey"` + RouterId string `json:"RouterId" xml:"RouterId"` + BgpStatus string `json:"BgpStatus" xml:"BgpStatus"` + Status string `json:"Status" xml:"Status"` + Keepalive string `json:"Keepalive" xml:"Keepalive"` + LocalAsn string `json:"LocalAsn" xml:"LocalAsn"` + Hold string `json:"Hold" xml:"Hold"` + IsFake string `json:"IsFake" xml:"IsFake"` + RouteLimit string `json:"RouteLimit" xml:"RouteLimit"` + RegionId string `json:"RegionId" xml:"RegionId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bgp_peers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bgp_peers.go new file mode 100644 index 0000000..10fac65 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_bgp_peers.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BgpPeers is a nested struct in vpc response +type BgpPeers struct { + BgpPeer []BgpPeer `json:"BgpPeer" xml:"BgpPeer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_cloud_resource_set_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_cloud_resource_set_type.go new file mode 100644 index 0000000..27e39f3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_cloud_resource_set_type.go @@ -0,0 +1,22 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CloudResourceSetType is a nested struct in vpc response +type CloudResourceSetType struct { + ResourceType string `json:"ResourceType" xml:"ResourceType"` + ResourceCount int `json:"ResourceCount" xml:"ResourceCount"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_cloud_resources_in_describe_v_switch_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_cloud_resources_in_describe_v_switch_attributes.go new file mode 100644 index 0000000..a7f5352 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_cloud_resources_in_describe_v_switch_attributes.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CloudResourcesInDescribeVSwitchAttributes is a nested struct in vpc response +type CloudResourcesInDescribeVSwitchAttributes struct { + CloudResourceSetType []CloudResourceSetType `json:"CloudResourceSetType" xml:"CloudResourceSetType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_cloud_resources_in_describe_vpc_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_cloud_resources_in_describe_vpc_attribute.go new file mode 100644 index 0000000..b819628 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_cloud_resources_in_describe_vpc_attribute.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CloudResourcesInDescribeVpcAttribute is a nested struct in vpc response +type CloudResourcesInDescribeVpcAttribute struct { + CloudResourceSetType []CloudResourceSetType `json:"CloudResourceSetType" xml:"CloudResourceSetType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_common_bandwidth_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_common_bandwidth_package.go new file mode 100644 index 0000000..eda1bba --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_common_bandwidth_package.go @@ -0,0 +1,33 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CommonBandwidthPackage is a nested struct in vpc response +type CommonBandwidthPackage struct { + BandwidthPackageId string `json:"BandwidthPackageId" xml:"BandwidthPackageId"` + RegionId string `json:"RegionId" xml:"RegionId"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + Bandwidth string `json:"Bandwidth" xml:"Bandwidth"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` + Status string `json:"Status" xml:"Status"` + Ratio int `json:"Ratio" xml:"Ratio"` + PublicIpAddresses PublicIpAddressesInDescribeCommonBandwidthPackages `json:"PublicIpAddresses" xml:"PublicIpAddresses"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_common_bandwidth_packages.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_common_bandwidth_packages.go new file mode 100644 index 0000000..f2dd28a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_common_bandwidth_packages.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CommonBandwidthPackages is a nested struct in vpc response +type CommonBandwidthPackages struct { + CommonBandwidthPackage []CommonBandwidthPackage `json:"CommonBandwidthPackage" xml:"CommonBandwidthPackage"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_customer_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_customer_gateway.go new file mode 100644 index 0000000..1afd1a2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_customer_gateway.go @@ -0,0 +1,25 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CustomerGateway is a nested struct in vpc response +type CustomerGateway struct { + CustomerGatewayId string `json:"CustomerGatewayId" xml:"CustomerGatewayId"` + Name string `json:"Name" xml:"Name"` + IpAddress string `json:"IpAddress" xml:"IpAddress"` + Description string `json:"Description" xml:"Description"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_customer_gateways.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_customer_gateways.go new file mode 100644 index 0000000..2b832b8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_customer_gateways.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CustomerGateways is a nested struct in vpc response +type CustomerGateways struct { + CustomerGateway []CustomerGateway `json:"CustomerGateway" xml:"CustomerGateway"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_data.go new file mode 100644 index 0000000..7827063 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_data.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 vpc response +type Data struct { + Logs []string `json:"Logs" xml:"Logs"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_eip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_eip_address.go new file mode 100644 index 0000000..8a1b735 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_eip_address.go @@ -0,0 +1,40 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EipAddress is a nested struct in vpc response +type EipAddress struct { + RegionId string `json:"RegionId" xml:"RegionId"` + IpAddress string `json:"IpAddress" xml:"IpAddress"` + AllocationId string `json:"AllocationId" xml:"AllocationId"` + Status string `json:"Status" xml:"Status"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Bandwidth string `json:"Bandwidth" xml:"Bandwidth"` + EipBandwidth string `json:"EipBandwidth" xml:"EipBandwidth"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + AllocationTime string `json:"AllocationTime" xml:"AllocationTime"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + InstanceRegionId string `json:"InstanceRegionId" xml:"InstanceRegionId"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` + Name string `json:"Name" xml:"Name"` + Descritpion string `json:"Descritpion" xml:"Descritpion"` + BandwidthPackageId string `json:"BandwidthPackageId" xml:"BandwidthPackageId"` + BandwidthPackageType string `json:"BandwidthPackageType" xml:"BandwidthPackageType"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + AvailableRegions AvailableRegions `json:"AvailableRegions" xml:"AvailableRegions"` + OperationLocks OperationLocksInDescribeEipAddresses `json:"OperationLocks" xml:"OperationLocks"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_eip_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_eip_addresses.go new file mode 100644 index 0000000..81f6ac3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_eip_addresses.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EipAddresses is a nested struct in vpc response +type EipAddresses struct { + EipAddress []EipAddress `json:"EipAddress" xml:"EipAddress"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_eip_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_eip_monitor_data.go new file mode 100644 index 0000000..69bada9 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_eip_monitor_data.go @@ -0,0 +1,26 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EipMonitorData is a nested struct in vpc response +type EipMonitorData struct { + EipPackets int `json:"EipPackets" xml:"EipPackets"` + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` + EipFlow int `json:"EipFlow" xml:"EipFlow"` + EipRX int `json:"EipRX" xml:"EipRX"` + EipBandwidth int `json:"EipBandwidth" xml:"EipBandwidth"` + EipTX int `json:"EipTX" xml:"EipTX"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_eip_monitor_datas_in_describe_eip_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_eip_monitor_datas_in_describe_eip_monitor_data.go new file mode 100644 index 0000000..a5c8813 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_eip_monitor_datas_in_describe_eip_monitor_data.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EipMonitorDatasInDescribeEipMonitorData is a nested struct in vpc response +type EipMonitorDatasInDescribeEipMonitorData struct { + EipMonitorData []EipMonitorData `json:"EipMonitorData" xml:"EipMonitorData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_eip_monitor_datas_in_describe_new_project_eip_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_eip_monitor_datas_in_describe_new_project_eip_monitor_data.go new file mode 100644 index 0000000..5a5ef28 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_eip_monitor_datas_in_describe_new_project_eip_monitor_data.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EipMonitorDatasInDescribeNewProjectEipMonitorData is a nested struct in vpc response +type EipMonitorDatasInDescribeNewProjectEipMonitorData struct { + EipMonitorData []EipMonitorData `json:"EipMonitorData" xml:"EipMonitorData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_entry.go new file mode 100644 index 0000000..f41bffc --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_entry.go @@ -0,0 +1,28 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ForwardEntry is a nested struct in vpc response +type ForwardEntry struct { + ForwardTableId string `json:"ForwardTableId" xml:"ForwardTableId"` + ForwardEntryId string `json:"ForwardEntryId" xml:"ForwardEntryId"` + ExternalIp string `json:"ExternalIp" xml:"ExternalIp"` + ExternalPort string `json:"ExternalPort" xml:"ExternalPort"` + IpProtocol string `json:"IpProtocol" xml:"IpProtocol"` + InternalIp string `json:"InternalIp" xml:"InternalIp"` + InternalPort string `json:"InternalPort" xml:"InternalPort"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_entrys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_entrys.go new file mode 100644 index 0000000..a8cf5bf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_entrys.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ForwardEntrys is a nested struct in vpc response +type ForwardEntrys struct { + ForwardEntry []ForwardEntry `json:"ForwardEntry" xml:"ForwardEntry"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_table.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_table.go new file mode 100644 index 0000000..cd4900c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_table.go @@ -0,0 +1,24 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ForwardTable is a nested struct in vpc response +type ForwardTable struct { + NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` + ForwardTableId string `json:"ForwardTableId" xml:"ForwardTableId"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + ForwardEntrys ForwardEntrys `json:"ForwardEntrys" xml:"ForwardEntrys"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_table_entries.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_table_entries.go new file mode 100644 index 0000000..c1b6175 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_table_entries.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ForwardTableEntries is a nested struct in vpc response +type ForwardTableEntries struct { + ForwardTableEntry []ForwardTableEntry `json:"ForwardTableEntry" xml:"ForwardTableEntry"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_table_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_table_entry.go new file mode 100644 index 0000000..bd5fa8b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_table_entry.go @@ -0,0 +1,28 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ForwardTableEntry is a nested struct in vpc response +type ForwardTableEntry struct { + ForwardTableId string `json:"ForwardTableId" xml:"ForwardTableId"` + ForwardEntryId string `json:"ForwardEntryId" xml:"ForwardEntryId"` + ExternalIp string `json:"ExternalIp" xml:"ExternalIp"` + ExternalPort string `json:"ExternalPort" xml:"ExternalPort"` + IpProtocol string `json:"IpProtocol" xml:"IpProtocol"` + InternalIp string `json:"InternalIp" xml:"InternalIp"` + InternalPort string `json:"InternalPort" xml:"InternalPort"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_table_ids_in_create_nat_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_table_ids_in_create_nat_gateway.go new file mode 100644 index 0000000..c0bd01c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_table_ids_in_create_nat_gateway.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ForwardTableIdsInCreateNatGateway is a nested struct in vpc response +type ForwardTableIdsInCreateNatGateway struct { + ForwardTableId []string `json:"ForwardTableId" xml:"ForwardTableId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_table_ids_in_describe_nat_gateways.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_table_ids_in_describe_nat_gateways.go new file mode 100644 index 0000000..bc0dc2e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_table_ids_in_describe_nat_gateways.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ForwardTableIdsInDescribeNatGateways is a nested struct in vpc response +type ForwardTableIdsInDescribeNatGateways struct { + ForwardTableId []string `json:"ForwardTableId" xml:"ForwardTableId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_tables.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_tables.go new file mode 100644 index 0000000..f5746e2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_forward_tables.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ForwardTables is a nested struct in vpc response +type ForwardTables struct { + ForwardTable []ForwardTable `json:"ForwardTable" xml:"ForwardTable"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_global_acceleration_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_global_acceleration_instance.go new file mode 100644 index 0000000..221bfcf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_global_acceleration_instance.go @@ -0,0 +1,38 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// GlobalAccelerationInstance is a nested struct in vpc response +type GlobalAccelerationInstance struct { + Name string `json:"Name" xml:"Name"` + ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` + IpAddress string `json:"IpAddress" xml:"IpAddress"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + ServiceLocation string `json:"ServiceLocation" xml:"ServiceLocation"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + ServerIpAddress string `json:"ServerIpAddress" xml:"ServerIpAddress"` + RegionId string `json:"RegionId" xml:"RegionId"` + AccelerationLocation string `json:"AccelerationLocation" xml:"AccelerationLocation"` + BandwidthType string `json:"BandwidthType" xml:"BandwidthType"` + Bandwidth string `json:"Bandwidth" xml:"Bandwidth"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + GlobalAccelerationInstanceId string `json:"GlobalAccelerationInstanceId" xml:"GlobalAccelerationInstanceId"` + Status string `json:"Status" xml:"Status"` + Description string `json:"Description" xml:"Description"` + OperationLocks OperationLocksInDescribeGlobalAccelerationInstances `json:"OperationLocks" xml:"OperationLocks"` + PublicIpAddresses PublicIpAddressesInDescribeGlobalAccelerationInstances `json:"PublicIpAddresses" xml:"PublicIpAddresses"` + BackendServers BackendServers `json:"BackendServers" xml:"BackendServers"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_global_acceleration_instances_in_describe_global_acceleration_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_global_acceleration_instances_in_describe_global_acceleration_instances.go new file mode 100644 index 0000000..a5ab16b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_global_acceleration_instances_in_describe_global_acceleration_instances.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// GlobalAccelerationInstancesInDescribeGlobalAccelerationInstances is a nested struct in vpc response +type GlobalAccelerationInstancesInDescribeGlobalAccelerationInstances struct { + GlobalAccelerationInstance []GlobalAccelerationInstance `json:"GlobalAccelerationInstance" xml:"GlobalAccelerationInstance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_global_acceleration_instances_in_describe_server_related_global_acceleration_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_global_acceleration_instances_in_describe_server_related_global_acceleration_instances.go new file mode 100644 index 0000000..9cbc47c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_global_acceleration_instances_in_describe_server_related_global_acceleration_instances.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// GlobalAccelerationInstancesInDescribeServerRelatedGlobalAccelerationInstances is a nested struct in vpc response +type GlobalAccelerationInstancesInDescribeServerRelatedGlobalAccelerationInstances struct { + GlobalAccelerationInstance []GlobalAccelerationInstance `json:"GlobalAccelerationInstance" xml:"GlobalAccelerationInstance"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ha_vip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ha_vip.go new file mode 100644 index 0000000..ed731ae --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ha_vip.go @@ -0,0 +1,31 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HaVip is a nested struct in vpc response +type HaVip struct { + HaVipId string `json:"HaVipId" xml:"HaVipId"` + RegionId string `json:"RegionId" xml:"RegionId"` + VpcId string `json:"VpcId" xml:"VpcId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + IpAddress string `json:"IpAddress" xml:"IpAddress"` + Status string `json:"Status" xml:"Status"` + MasterInstanceId string `json:"MasterInstanceId" xml:"MasterInstanceId"` + Description string `json:"Description" xml:"Description"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + AssociatedInstances AssociatedInstances `json:"AssociatedInstances" xml:"AssociatedInstances"` + AssociatedEipAddresses AssociatedEipAddresses `json:"AssociatedEipAddresses" xml:"AssociatedEipAddresses"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ha_vips.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ha_vips.go new file mode 100644 index 0000000..3ba331c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ha_vips.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HaVips is a nested struct in vpc response +type HaVips struct { + HaVip []HaVip `json:"HaVip" xml:"HaVip"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ike_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ike_config.go new file mode 100644 index 0000000..789c406 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ike_config.go @@ -0,0 +1,29 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IkeConfig is a nested struct in vpc response +type IkeConfig struct { + LocalId string `json:"LocalId" xml:"LocalId"` + IkeAuthAlg string `json:"IkeAuthAlg" xml:"IkeAuthAlg"` + IkePfs string `json:"IkePfs" xml:"IkePfs"` + IkeMode string `json:"IkeMode" xml:"IkeMode"` + IkeEncAlg string `json:"IkeEncAlg" xml:"IkeEncAlg"` + Psk string `json:"Psk" xml:"Psk"` + RemoteId string `json:"RemoteId" xml:"RemoteId"` + IkeVersion string `json:"IkeVersion" xml:"IkeVersion"` + IkeLifetime int `json:"IkeLifetime" xml:"IkeLifetime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ip_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ip_list.go new file mode 100644 index 0000000..054108a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ip_list.go @@ -0,0 +1,24 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IpList is a nested struct in vpc response +type IpList struct { + AllocationId string `json:"AllocationId" xml:"AllocationId"` + IpAddress string `json:"IpAddress" xml:"IpAddress"` + UsingStatus string `json:"UsingStatus" xml:"UsingStatus"` + ApAccessEnabled bool `json:"ApAccessEnabled" xml:"ApAccessEnabled"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ip_lists.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ip_lists.go new file mode 100644 index 0000000..1864587 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ip_lists.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IpLists is a nested struct in vpc response +type IpLists struct { + IpList []IpList `json:"IpList" xml:"IpList"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ipsec_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ipsec_config.go new file mode 100644 index 0000000..e21132a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ipsec_config.go @@ -0,0 +1,24 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IpsecConfig is a nested struct in vpc response +type IpsecConfig struct { + IpsecAuthAlg string `json:"IpsecAuthAlg" xml:"IpsecAuthAlg"` + IpsecPfs string `json:"IpsecPfs" xml:"IpsecPfs"` + IpsecEncAlg string `json:"IpsecEncAlg" xml:"IpsecEncAlg"` + IpsecLifetime int `json:"IpsecLifetime" xml:"IpsecLifetime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_lock_reason.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_lock_reason.go new file mode 100644 index 0000000..4e80e41 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_lock_reason.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LockReason is a nested struct in vpc response +type LockReason struct { + LockReason string `json:"LockReason" xml:"LockReason"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_monitor_data.go new file mode 100644 index 0000000..9e17666 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_monitor_data.go @@ -0,0 +1,28 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MonitorData is a nested struct in vpc response +type MonitorData struct { + RX int `json:"RX" xml:"RX"` + TX int `json:"TX" xml:"TX"` + ReceivedBandwidth int `json:"ReceivedBandwidth" xml:"ReceivedBandwidth"` + TransportedBandwidth int `json:"TransportedBandwidth" xml:"TransportedBandwidth"` + Flow int `json:"Flow" xml:"Flow"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + Packets int `json:"Packets" xml:"Packets"` + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_monitor_datas.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_monitor_datas.go new file mode 100644 index 0000000..139ffff --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_monitor_datas.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MonitorDatas is a nested struct in vpc response +type MonitorDatas struct { + MonitorData []MonitorData `json:"MonitorData" xml:"MonitorData"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_nat_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_nat_gateway.go new file mode 100644 index 0000000..10522c1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_nat_gateway.go @@ -0,0 +1,34 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NatGateway is a nested struct in vpc response +type NatGateway struct { + NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` + RegionId string `json:"RegionId" xml:"RegionId"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + VpcId string `json:"VpcId" xml:"VpcId"` + Spec string `json:"Spec" xml:"Spec"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Status string `json:"Status" xml:"Status"` + ForwardTableIds ForwardTableIdsInDescribeNatGateways `json:"ForwardTableIds" xml:"ForwardTableIds"` + SnatTableIds SnatTableIdsInDescribeNatGateways `json:"SnatTableIds" xml:"SnatTableIds"` + BandwidthPackageIds BandwidthPackageIdsInDescribeNatGateways `json:"BandwidthPackageIds" xml:"BandwidthPackageIds"` + IpLists IpLists `json:"IpLists" xml:"IpLists"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_nat_gateway_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_nat_gateway_ids.go new file mode 100644 index 0000000..265e499 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_nat_gateway_ids.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NatGatewayIds is a nested struct in vpc response +type NatGatewayIds struct { + NatGatewayIds []string `json:"NatGatewayIds" xml:"NatGatewayIds"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_nat_gateways.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_nat_gateways.go new file mode 100644 index 0000000..2fa8689 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_nat_gateways.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NatGateways is a nested struct in vpc response +type NatGateways struct { + NatGateway []NatGateway `json:"NatGateway" xml:"NatGateway"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_next_hop.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_next_hop.go new file mode 100644 index 0000000..e807073 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_next_hop.go @@ -0,0 +1,25 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NextHop is a nested struct in vpc response +type NextHop struct { + NextHopType string `json:"NextHopType" xml:"NextHopType"` + NextHopId string `json:"NextHopId" xml:"NextHopId"` + Enabled int `json:"Enabled" xml:"Enabled"` + Weight int `json:"Weight" xml:"Weight"` + NextHopRegionId string `json:"NextHopRegionId" xml:"NextHopRegionId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_next_hops.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_next_hops.go new file mode 100644 index 0000000..146889b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_next_hops.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NextHops is a nested struct in vpc response +type NextHops struct { + NextHop []NextHop `json:"NextHop" xml:"NextHop"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_nqa.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_nqa.go new file mode 100644 index 0000000..45bd544 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_nqa.go @@ -0,0 +1,25 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Nqa is a nested struct in vpc response +type Nqa struct { + NqaId string `json:"NqaId" xml:"NqaId"` + RegionId string `json:"RegionId" xml:"RegionId"` + Status string `json:"Status" xml:"Status"` + RouterId string `json:"RouterId" xml:"RouterId"` + DestinationIp string `json:"DestinationIp" xml:"DestinationIp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_nqas.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_nqas.go new file mode 100644 index 0000000..509c04d --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_nqas.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Nqas is a nested struct in vpc response +type Nqas struct { + Nqa []Nqa `json:"Nqa" xml:"Nqa"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_operation_locks_in_describe_eip_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_operation_locks_in_describe_eip_addresses.go new file mode 100644 index 0000000..8b3f2ea --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_operation_locks_in_describe_eip_addresses.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OperationLocksInDescribeEipAddresses is a nested struct in vpc response +type OperationLocksInDescribeEipAddresses struct { + LockReason []LockReason `json:"LockReason" xml:"LockReason"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_operation_locks_in_describe_global_acceleration_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_operation_locks_in_describe_global_acceleration_instances.go new file mode 100644 index 0000000..fd0212c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_operation_locks_in_describe_global_acceleration_instances.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OperationLocksInDescribeGlobalAccelerationInstances is a nested struct in vpc response +type OperationLocksInDescribeGlobalAccelerationInstances struct { + LockReason []LockReason `json:"LockReason" xml:"LockReason"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_physical_connection_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_physical_connection_set.go new file mode 100644 index 0000000..149205c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_physical_connection_set.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PhysicalConnectionSet is a nested struct in vpc response +type PhysicalConnectionSet struct { + PhysicalConnectionType []PhysicalConnectionType `json:"PhysicalConnectionType" xml:"PhysicalConnectionType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_physical_connection_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_physical_connection_type.go new file mode 100644 index 0000000..826f7a0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_physical_connection_type.go @@ -0,0 +1,38 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PhysicalConnectionType is a nested struct in vpc response +type PhysicalConnectionType struct { + PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` + AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` + Type string `json:"Type" xml:"Type"` + Status string `json:"Status" xml:"Status"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + EnabledTime string `json:"EnabledTime" xml:"EnabledTime"` + LineOperator string `json:"LineOperator" xml:"LineOperator"` + Spec string `json:"Spec" xml:"Spec"` + PeerLocation string `json:"PeerLocation" xml:"PeerLocation"` + PortType string `json:"PortType" xml:"PortType"` + RedundantPhysicalConnectionId string `json:"RedundantPhysicalConnectionId" xml:"RedundantPhysicalConnectionId"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + AdLocation string `json:"AdLocation" xml:"AdLocation"` + PortNumber string `json:"PortNumber" xml:"PortNumber"` + CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_public_ip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_public_ip_address.go new file mode 100644 index 0000000..ac54251 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_public_ip_address.go @@ -0,0 +1,22 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PublicIpAddress is a nested struct in vpc response +type PublicIpAddress struct { + AllocationId string `json:"AllocationId" xml:"AllocationId"` + IpAddress string `json:"IpAddress" xml:"IpAddress"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_public_ip_addresse.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_public_ip_addresse.go new file mode 100644 index 0000000..6ef5054 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_public_ip_addresse.go @@ -0,0 +1,24 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PublicIpAddresse is a nested struct in vpc response +type PublicIpAddresse struct { + IpAddress string `json:"IpAddress" xml:"IpAddress"` + ApAccessEnabled bool `json:"ApAccessEnabled" xml:"ApAccessEnabled"` + AllocationId string `json:"AllocationId" xml:"AllocationId"` + UsingStatus string `json:"UsingStatus" xml:"UsingStatus"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_public_ip_addresses_in_describe_bandwidth_packages.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_public_ip_addresses_in_describe_bandwidth_packages.go new file mode 100644 index 0000000..24e36d1 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_public_ip_addresses_in_describe_bandwidth_packages.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PublicIpAddressesInDescribeBandwidthPackages is a nested struct in vpc response +type PublicIpAddressesInDescribeBandwidthPackages struct { + PublicIpAddresse []PublicIpAddresse `json:"PublicIpAddresse" xml:"PublicIpAddresse"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_public_ip_addresses_in_describe_common_bandwidth_packages.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_public_ip_addresses_in_describe_common_bandwidth_packages.go new file mode 100644 index 0000000..0802529 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_public_ip_addresses_in_describe_common_bandwidth_packages.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PublicIpAddressesInDescribeCommonBandwidthPackages is a nested struct in vpc response +type PublicIpAddressesInDescribeCommonBandwidthPackages struct { + PublicIpAddresse []PublicIpAddresse `json:"PublicIpAddresse" xml:"PublicIpAddresse"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_public_ip_addresses_in_describe_global_acceleration_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_public_ip_addresses_in_describe_global_acceleration_instances.go new file mode 100644 index 0000000..7a6e11e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_public_ip_addresses_in_describe_global_acceleration_instances.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PublicIpAddressesInDescribeGlobalAccelerationInstances is a nested struct in vpc response +type PublicIpAddressesInDescribeGlobalAccelerationInstances struct { + PublicIpAddress []PublicIpAddress `json:"PublicIpAddress" xml:"PublicIpAddress"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_region.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_region.go new file mode 100644 index 0000000..1180aa5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_region.go @@ -0,0 +1,22 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 vpc response +type Region struct { + RegionId string `json:"RegionId" xml:"RegionId"` + LocalName string `json:"LocalName" xml:"LocalName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_regions.go new file mode 100644 index 0000000..7d202b2 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_regions.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 vpc response +type Regions struct { + Region []Region `json:"Region" xml:"Region"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_route_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_route_entry.go new file mode 100644 index 0000000..ac7902a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_route_entry.go @@ -0,0 +1,28 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouteEntry is a nested struct in vpc response +type RouteEntry struct { + RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` + DestinationCidrBlock string `json:"DestinationCidrBlock" xml:"DestinationCidrBlock"` + Type string `json:"Type" xml:"Type"` + Status string `json:"Status" xml:"Status"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + NextHopType string `json:"NextHopType" xml:"NextHopType"` + NextHopRegionId string `json:"NextHopRegionId" xml:"NextHopRegionId"` + NextHops NextHops `json:"NextHops" xml:"NextHops"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_route_entrys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_route_entrys.go new file mode 100644 index 0000000..45905f7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_route_entrys.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouteEntrys is a nested struct in vpc response +type RouteEntrys struct { + RouteEntry []RouteEntry `json:"RouteEntry" xml:"RouteEntry"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_route_table.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_route_table.go new file mode 100644 index 0000000..84abfaf --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_route_table.go @@ -0,0 +1,25 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouteTable is a nested struct in vpc response +type RouteTable struct { + VRouterId string `json:"VRouterId" xml:"VRouterId"` + RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` + RouteTableType string `json:"RouteTableType" xml:"RouteTableType"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + RouteEntrys RouteEntrys `json:"RouteEntrys" xml:"RouteEntrys"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_route_table_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_route_table_ids.go new file mode 100644 index 0000000..44d73fb --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_route_table_ids.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouteTableIds is a nested struct in vpc response +type RouteTableIds struct { + RouteTableId []string `json:"RouteTableId" xml:"RouteTableId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_route_tables.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_route_tables.go new file mode 100644 index 0000000..020a5d7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_route_tables.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouteTables is a nested struct in vpc response +type RouteTables struct { + RouteTable []RouteTable `json:"RouteTable" xml:"RouteTable"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_interface_set_in_describe_router_interfaces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_interface_set_in_describe_router_interfaces.go new file mode 100644 index 0000000..0eb32b5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_interface_set_in_describe_router_interfaces.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouterInterfaceSetInDescribeRouterInterfaces is a nested struct in vpc response +type RouterInterfaceSetInDescribeRouterInterfaces struct { + RouterInterfaceType []RouterInterfaceTypeInDescribeRouterInterfaces `json:"RouterInterfaceType" xml:"RouterInterfaceType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_interface_set_in_describe_router_interfaces_for_global.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_interface_set_in_describe_router_interfaces_for_global.go new file mode 100644 index 0000000..0c82ad5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_interface_set_in_describe_router_interfaces_for_global.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouterInterfaceSetInDescribeRouterInterfacesForGlobal is a nested struct in vpc response +type RouterInterfaceSetInDescribeRouterInterfacesForGlobal struct { + RouterInterfaceType []RouterInterfaceType `json:"RouterInterfaceType" xml:"RouterInterfaceType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_interface_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_interface_type.go new file mode 100644 index 0000000..84e2b4b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_interface_type.go @@ -0,0 +1,47 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouterInterfaceType is a nested struct in vpc response +type RouterInterfaceType struct { + AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` + Name string `json:"Name" xml:"Name"` + ConnectedTime string `json:"ConnectedTime" xml:"ConnectedTime"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + RouterId string `json:"RouterId" xml:"RouterId"` + OppositeInterfaceId string `json:"OppositeInterfaceId" xml:"OppositeInterfaceId"` + HealthCheckSourceIp string `json:"HealthCheckSourceIp" xml:"HealthCheckSourceIp"` + RegionId string `json:"RegionId" xml:"RegionId"` + Role string `json:"Role" xml:"Role"` + HealthCheckTargetIp string `json:"HealthCheckTargetIp" xml:"HealthCheckTargetIp"` + RouterInterfaceId string `json:"RouterInterfaceId" xml:"RouterInterfaceId"` + OppositeInterfaceSpec string `json:"OppositeInterfaceSpec" xml:"OppositeInterfaceSpec"` + Description string `json:"Description" xml:"Description"` + OppositeInterfaceOwnerId int `json:"OppositeInterfaceOwnerId" xml:"OppositeInterfaceOwnerId"` + VpcInstanceId string `json:"VpcInstanceId" xml:"VpcInstanceId"` + RouterType string `json:"RouterType" xml:"RouterType"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + OppositeRouterType string `json:"OppositeRouterType" xml:"OppositeRouterType"` + OppositeVpcInstanceId string `json:"OppositeVpcInstanceId" xml:"OppositeVpcInstanceId"` + OppositeInterfaceBusinessStatus string `json:"OppositeInterfaceBusinessStatus" xml:"OppositeInterfaceBusinessStatus"` + Spec string `json:"Spec" xml:"Spec"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + OppositeInterfaceStatus string `json:"OppositeInterfaceStatus" xml:"OppositeInterfaceStatus"` + OppositeRouterId string `json:"OppositeRouterId" xml:"OppositeRouterId"` + Status string `json:"Status" xml:"Status"` + OppositeAccessPointId string `json:"OppositeAccessPointId" xml:"OppositeAccessPointId"` + OppositeRegionId string `json:"OppositeRegionId" xml:"OppositeRegionId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_interface_type_in_describe_router_interfaces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_interface_type_in_describe_router_interfaces.go new file mode 100644 index 0000000..cb2e36b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_interface_type_in_describe_router_interfaces.go @@ -0,0 +1,47 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouterInterfaceTypeInDescribeRouterInterfaces is a nested struct in vpc response +type RouterInterfaceTypeInDescribeRouterInterfaces struct { + RouterInterfaceId string `json:"RouterInterfaceId" xml:"RouterInterfaceId"` + OppositeRegionId string `json:"OppositeRegionId" xml:"OppositeRegionId"` + Role string `json:"Role" xml:"Role"` + Spec string `json:"Spec" xml:"Spec"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + RouterId string `json:"RouterId" xml:"RouterId"` + RouterType string `json:"RouterType" xml:"RouterType"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + Status string `json:"Status" xml:"Status"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + ConnectedTime string `json:"ConnectedTime" xml:"ConnectedTime"` + OppositeInterfaceId string `json:"OppositeInterfaceId" xml:"OppositeInterfaceId"` + OppositeInterfaceSpec string `json:"OppositeInterfaceSpec" xml:"OppositeInterfaceSpec"` + OppositeInterfaceStatus string `json:"OppositeInterfaceStatus" xml:"OppositeInterfaceStatus"` + OppositeInterfaceBusinessStatus string `json:"OppositeInterfaceBusinessStatus" xml:"OppositeInterfaceBusinessStatus"` + OppositeRouterId string `json:"OppositeRouterId" xml:"OppositeRouterId"` + OppositeRouterType string `json:"OppositeRouterType" xml:"OppositeRouterType"` + OppositeInterfaceOwnerId string `json:"OppositeInterfaceOwnerId" xml:"OppositeInterfaceOwnerId"` + AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` + OppositeAccessPointId string `json:"OppositeAccessPointId" xml:"OppositeAccessPointId"` + HealthCheckSourceIp string `json:"HealthCheckSourceIp" xml:"HealthCheckSourceIp"` + HealthCheckTargetIp string `json:"HealthCheckTargetIp" xml:"HealthCheckTargetIp"` + OppositeVpcInstanceId string `json:"OppositeVpcInstanceId" xml:"OppositeVpcInstanceId"` + VpcInstanceId string `json:"VpcInstanceId" xml:"VpcInstanceId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_table_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_table_ids.go new file mode 100644 index 0000000..8c9e9e7 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_table_ids.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouterTableIds is a nested struct in vpc response +type RouterTableIds struct { + RouterTableIds []string `json:"RouterTableIds" xml:"RouterTableIds"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_table_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_table_list.go new file mode 100644 index 0000000..bebbfe8 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_table_list.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouterTableList is a nested struct in vpc response +type RouterTableList struct { + RouterTableListType []RouterTableListType `json:"RouterTableListType" xml:"RouterTableListType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_table_list_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_table_list_type.go new file mode 100644 index 0000000..02dfb84 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_router_table_list_type.go @@ -0,0 +1,28 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RouterTableListType is a nested struct in vpc response +type RouterTableListType struct { + VpcId string `json:"VpcId" xml:"VpcId"` + RouterType string `json:"RouterType" xml:"RouterType"` + RouterId string `json:"RouterId" xml:"RouterId"` + RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` + RouteTableName string `json:"RouteTableName" xml:"RouteTableName"` + RouteTableType string `json:"RouteTableType" xml:"RouteTableType"` + Description string `json:"Description" xml:"Description"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_snat_table_entries.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_snat_table_entries.go new file mode 100644 index 0000000..c14837b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_snat_table_entries.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SnatTableEntries is a nested struct in vpc response +type SnatTableEntries struct { + SnatTableEntry []SnatTableEntry `json:"SnatTableEntry" xml:"SnatTableEntry"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_snat_table_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_snat_table_entry.go new file mode 100644 index 0000000..2c25f31 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_snat_table_entry.go @@ -0,0 +1,26 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SnatTableEntry is a nested struct in vpc response +type SnatTableEntry struct { + SnatTableId string `json:"SnatTableId" xml:"SnatTableId"` + SnatEntryId string `json:"SnatEntryId" xml:"SnatEntryId"` + SourceVSwitchId string `json:"SourceVSwitchId" xml:"SourceVSwitchId"` + SourceCIDR string `json:"SourceCIDR" xml:"SourceCIDR"` + SnatIp string `json:"SnatIp" xml:"SnatIp"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_snat_table_ids_in_create_nat_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_snat_table_ids_in_create_nat_gateway.go new file mode 100644 index 0000000..d017360 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_snat_table_ids_in_create_nat_gateway.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SnatTableIdsInCreateNatGateway is a nested struct in vpc response +type SnatTableIdsInCreateNatGateway struct { + SnatTableId []string `json:"SnatTableId" xml:"SnatTableId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_snat_table_ids_in_describe_nat_gateways.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_snat_table_ids_in_describe_nat_gateways.go new file mode 100644 index 0000000..f59bbde --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_snat_table_ids_in_describe_nat_gateways.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SnatTableIdsInDescribeNatGateways is a nested struct in vpc response +type SnatTableIdsInDescribeNatGateways struct { + SnatTableId []string `json:"SnatTableId" xml:"SnatTableId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ssl_vpn_client_cert_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ssl_vpn_client_cert_key.go new file mode 100644 index 0000000..35f768b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ssl_vpn_client_cert_key.go @@ -0,0 +1,27 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SslVpnClientCertKey is a nested struct in vpc response +type SslVpnClientCertKey struct { + RegionId string `json:"RegionId" xml:"RegionId"` + SslVpnClientCertId string `json:"SslVpnClientCertId" xml:"SslVpnClientCertId"` + Name string `json:"Name" xml:"Name"` + SslVpnServerId string `json:"SslVpnServerId" xml:"SslVpnServerId"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` + EndTime int `json:"EndTime" xml:"EndTime"` + Status string `json:"Status" xml:"Status"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ssl_vpn_client_cert_keys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ssl_vpn_client_cert_keys.go new file mode 100644 index 0000000..fdd5f64 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ssl_vpn_client_cert_keys.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SslVpnClientCertKeys is a nested struct in vpc response +type SslVpnClientCertKeys struct { + SslVpnClientCertKey []SslVpnClientCertKey `json:"SslVpnClientCertKey" xml:"SslVpnClientCertKey"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ssl_vpn_server.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ssl_vpn_server.go new file mode 100644 index 0000000..2f0eb9c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ssl_vpn_server.go @@ -0,0 +1,34 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SslVpnServer is a nested struct in vpc response +type SslVpnServer struct { + RegionId string `json:"RegionId" xml:"RegionId"` + SslVpnServerId string `json:"SslVpnServerId" xml:"SslVpnServerId"` + VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` + Name string `json:"Name" xml:"Name"` + LocalSubnet string `json:"LocalSubnet" xml:"LocalSubnet"` + ClientIpPool string `json:"ClientIpPool" xml:"ClientIpPool"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` + Cipher string `json:"Cipher" xml:"Cipher"` + Proto string `json:"Proto" xml:"Proto"` + Port int `json:"Port" xml:"Port"` + Compress bool `json:"Compress" xml:"Compress"` + Connections int `json:"Connections" xml:"Connections"` + MaxConnections int `json:"MaxConnections" xml:"MaxConnections"` + InternetIp string `json:"InternetIp" xml:"InternetIp"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ssl_vpn_servers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ssl_vpn_servers.go new file mode 100644 index 0000000..6721684 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_ssl_vpn_servers.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SslVpnServers is a nested struct in vpc response +type SslVpnServers struct { + SslVpnServer []SslVpnServer `json:"SslVpnServer" xml:"SslVpnServer"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_user_cidrs_in_describe_vpc_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_user_cidrs_in_describe_vpc_attribute.go new file mode 100644 index 0000000..248fb2f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_user_cidrs_in_describe_vpc_attribute.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UserCidrsInDescribeVpcAttribute is a nested struct in vpc response +type UserCidrsInDescribeVpcAttribute struct { + UserCidr []string `json:"UserCidr" xml:"UserCidr"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_user_cidrs_in_describe_vpcs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_user_cidrs_in_describe_vpcs.go new file mode 100644 index 0000000..84f135a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_user_cidrs_in_describe_vpcs.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UserCidrsInDescribeVpcs is a nested struct in vpc response +type UserCidrsInDescribeVpcs struct { + UserCidr []string `json:"UserCidr" xml:"UserCidr"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_router.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_router.go new file mode 100644 index 0000000..e681e47 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_router.go @@ -0,0 +1,27 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VRouter is a nested struct in vpc response +type VRouter struct { + RegionId string `json:"RegionId" xml:"RegionId"` + VpcId string `json:"VpcId" xml:"VpcId"` + VRouterName string `json:"VRouterName" xml:"VRouterName"` + Description string `json:"Description" xml:"Description"` + VRouterId string `json:"VRouterId" xml:"VRouterId"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + RouteTableIds RouteTableIds `json:"RouteTableIds" xml:"RouteTableIds"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_routers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_routers.go new file mode 100644 index 0000000..a7504b6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_routers.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VRouters is a nested struct in vpc response +type VRouters struct { + VRouter []VRouter `json:"VRouter" xml:"VRouter"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_switch.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_switch.go new file mode 100644 index 0000000..6ea3737 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_switch.go @@ -0,0 +1,30 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VSwitch is a nested struct in vpc response +type VSwitch struct { + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + VpcId string `json:"VpcId" xml:"VpcId"` + Status string `json:"Status" xml:"Status"` + CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + AvailableIpAddressCount int `json:"AvailableIpAddressCount" xml:"AvailableIpAddressCount"` + Description string `json:"Description" xml:"Description"` + VSwitchName string `json:"VSwitchName" xml:"VSwitchName"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + IsDefault bool `json:"IsDefault" xml:"IsDefault"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_switch_ids_in_describe_vpc_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_switch_ids_in_describe_vpc_attribute.go new file mode 100644 index 0000000..6a7532a --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_switch_ids_in_describe_vpc_attribute.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VSwitchIdsInDescribeVpcAttribute is a nested struct in vpc response +type VSwitchIdsInDescribeVpcAttribute struct { + VSwitchId []string `json:"VSwitchId" xml:"VSwitchId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_switch_ids_in_describe_vpcs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_switch_ids_in_describe_vpcs.go new file mode 100644 index 0000000..4b221f3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_switch_ids_in_describe_vpcs.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VSwitchIdsInDescribeVpcs is a nested struct in vpc response +type VSwitchIdsInDescribeVpcs struct { + VSwitchId []string `json:"VSwitchId" xml:"VSwitchId"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_switches.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_switches.go new file mode 100644 index 0000000..7948484 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_v_switches.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VSwitches is a nested struct in vpc response +type VSwitches struct { + VSwitch []VSwitch `json:"VSwitch" xml:"VSwitch"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_virtual_border_router_for_physical_connection_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_virtual_border_router_for_physical_connection_set.go new file mode 100644 index 0000000..ad59427 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_virtual_border_router_for_physical_connection_set.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VirtualBorderRouterForPhysicalConnectionSet is a nested struct in vpc response +type VirtualBorderRouterForPhysicalConnectionSet struct { + VirtualBorderRouterForPhysicalConnectionType []VirtualBorderRouterForPhysicalConnectionType `json:"VirtualBorderRouterForPhysicalConnectionType" xml:"VirtualBorderRouterForPhysicalConnectionType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_virtual_border_router_for_physical_connection_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_virtual_border_router_for_physical_connection_type.go new file mode 100644 index 0000000..790438e --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_virtual_border_router_for_physical_connection_type.go @@ -0,0 +1,28 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VirtualBorderRouterForPhysicalConnectionType is a nested struct in vpc response +type VirtualBorderRouterForPhysicalConnectionType struct { + VbrId string `json:"VbrId" xml:"VbrId"` + VbrOwnerUid int `json:"VbrOwnerUid" xml:"VbrOwnerUid"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + ActivationTime string `json:"ActivationTime" xml:"ActivationTime"` + TerminationTime string `json:"TerminationTime" xml:"TerminationTime"` + RecoveryTime string `json:"RecoveryTime" xml:"RecoveryTime"` + VlanId int `json:"VlanId" xml:"VlanId"` + CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_virtual_border_router_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_virtual_border_router_set.go new file mode 100644 index 0000000..b849c05 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_virtual_border_router_set.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VirtualBorderRouterSet is a nested struct in vpc response +type VirtualBorderRouterSet struct { + VirtualBorderRouterType []VirtualBorderRouterType `json:"VirtualBorderRouterType" xml:"VirtualBorderRouterType"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_virtual_border_router_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_virtual_border_router_type.go new file mode 100644 index 0000000..b72df18 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_virtual_border_router_type.go @@ -0,0 +1,42 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VirtualBorderRouterType is a nested struct in vpc response +type VirtualBorderRouterType struct { + VbrId string `json:"VbrId" xml:"VbrId"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + ActivationTime string `json:"ActivationTime" xml:"ActivationTime"` + TerminationTime string `json:"TerminationTime" xml:"TerminationTime"` + RecoveryTime string `json:"RecoveryTime" xml:"RecoveryTime"` + Status string `json:"Status" xml:"Status"` + VlanId int `json:"VlanId" xml:"VlanId"` + CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` + RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` + VlanInterfaceId string `json:"VlanInterfaceId" xml:"VlanInterfaceId"` + LocalGatewayIp string `json:"LocalGatewayIp" xml:"LocalGatewayIp"` + PeerGatewayIp string `json:"PeerGatewayIp" xml:"PeerGatewayIp"` + PeeringSubnetMask string `json:"PeeringSubnetMask" xml:"PeeringSubnetMask"` + PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` + PhysicalConnectionStatus string `json:"PhysicalConnectionStatus" xml:"PhysicalConnectionStatus"` + PhysicalConnectionBusinessStatus string `json:"PhysicalConnectionBusinessStatus" xml:"PhysicalConnectionBusinessStatus"` + PhysicalConnectionOwnerUid string `json:"PhysicalConnectionOwnerUid" xml:"PhysicalConnectionOwnerUid"` + AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + AssociatedPhysicalConnections AssociatedPhysicalConnections `json:"AssociatedPhysicalConnections" xml:"AssociatedPhysicalConnections"` + AssociatedCens AssociatedCensInDescribeVirtualBorderRouters `json:"AssociatedCens" xml:"AssociatedCens"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpc.go new file mode 100644 index 0000000..68360d3 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpc.go @@ -0,0 +1,34 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 vpc response +type Vpc struct { + VpcId string `json:"VpcId" xml:"VpcId"` + RegionId string `json:"RegionId" xml:"RegionId"` + Status string `json:"Status" xml:"Status"` + VpcName string `json:"VpcName" xml:"VpcName"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` + VRouterId string `json:"VRouterId" xml:"VRouterId"` + Description string `json:"Description" xml:"Description"` + IsDefault bool `json:"IsDefault" xml:"IsDefault"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + VSwitchIds VSwitchIdsInDescribeVpcs `json:"VSwitchIds" xml:"VSwitchIds"` + UserCidrs UserCidrsInDescribeVpcs `json:"UserCidrs" xml:"UserCidrs"` + NatGatewayIds NatGatewayIds `json:"NatGatewayIds" xml:"NatGatewayIds"` + RouterTableIds RouterTableIds `json:"RouterTableIds" xml:"RouterTableIds"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpcs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpcs.go new file mode 100644 index 0000000..b85bdc5 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpcs.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 vpc response +type Vpcs struct { + Vpc []Vpc `json:"Vpc" xml:"Vpc"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpn_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpn_connection.go new file mode 100644 index 0000000..d1bc912 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpn_connection.go @@ -0,0 +1,31 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VpnConnection is a nested struct in vpc response +type VpnConnection struct { + VpnConnectionId string `json:"VpnConnectionId" xml:"VpnConnectionId"` + CustomerGatewayId string `json:"CustomerGatewayId" xml:"CustomerGatewayId"` + VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` + Name string `json:"Name" xml:"Name"` + LocalSubnet string `json:"LocalSubnet" xml:"LocalSubnet"` + RemoteSubnet string `json:"RemoteSubnet" xml:"RemoteSubnet"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` + EffectImmediately bool `json:"EffectImmediately" xml:"EffectImmediately"` + Status string `json:"Status" xml:"Status"` + IkeConfig IkeConfig `json:"IkeConfig" xml:"IkeConfig"` + IpsecConfig IpsecConfig `json:"IpsecConfig" xml:"IpsecConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpn_connection_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpn_connection_config.go new file mode 100644 index 0000000..accc63c --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpn_connection_config.go @@ -0,0 +1,26 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VpnConnectionConfig is a nested struct in vpc response +type VpnConnectionConfig struct { + LocalSubnet string `json:"LocalSubnet" xml:"LocalSubnet"` + RemoteSubnet string `json:"RemoteSubnet" xml:"RemoteSubnet"` + Local string `json:"Local" xml:"Local"` + Remote string `json:"Remote" xml:"Remote"` + IkeConfig IkeConfig `json:"IkeConfig" xml:"IkeConfig"` + IpsecConfig IpsecConfig `json:"IpsecConfig" xml:"IpsecConfig"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpn_connections.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpn_connections.go new file mode 100644 index 0000000..b33443b --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpn_connections.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VpnConnections is a nested struct in vpc response +type VpnConnections struct { + VpnConnection []VpnConnection `json:"VpnConnection" xml:"VpnConnection"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpn_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpn_gateway.go new file mode 100644 index 0000000..657eb29 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpn_gateway.go @@ -0,0 +1,35 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VpnGateway is a nested struct in vpc response +type VpnGateway struct { + VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` + VpcId string `json:"VpcId" xml:"VpcId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + InternetIp string `json:"InternetIp" xml:"InternetIp"` + CreateTime int `json:"CreateTime" xml:"CreateTime"` + EndTime int `json:"EndTime" xml:"EndTime"` + Spec string `json:"Spec" xml:"Spec"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + Status string `json:"Status" xml:"Status"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + IpsecVpn string `json:"IpsecVpn" xml:"IpsecVpn"` + SslVpn string `json:"SslVpn" xml:"SslVpn"` + SslMaxConnections int `json:"SslMaxConnections" xml:"SslMaxConnections"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpn_gateways.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpn_gateways.go new file mode 100644 index 0000000..98c3fb6 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_vpn_gateways.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// VpnGateways is a nested struct in vpc response +type VpnGateways struct { + VpnGateway []VpnGateway `json:"VpnGateway" xml:"VpnGateway"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_zone.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_zone.go new file mode 100644 index 0000000..bc9ded0 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_zone.go @@ -0,0 +1,22 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under 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 vpc response +type Zone struct { + ZoneId string `json:"ZoneId" xml:"ZoneId"` + LocalName string `json:"LocalName" xml:"LocalName"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_zones.go new file mode 100644 index 0000000..c61fe87 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/struct_zones.go @@ -0,0 +1,21 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Zones is a nested struct in vpc response +type Zones struct { + Zone []Zone `json:"Zone" xml:"Zone"` +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/terminate_physical_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/terminate_physical_connection.go new file mode 100644 index 0000000..cb8f028 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/terminate_physical_connection.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TerminatePhysicalConnection invokes the vpc.TerminatePhysicalConnection API synchronously +// api document: https://help.aliyun.com/api/vpc/terminatephysicalconnection.html +func (client *Client) TerminatePhysicalConnection(request *TerminatePhysicalConnectionRequest) (response *TerminatePhysicalConnectionResponse, err error) { + response = CreateTerminatePhysicalConnectionResponse() + err = client.DoAction(request, response) + return +} + +// TerminatePhysicalConnectionWithChan invokes the vpc.TerminatePhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/vpc/terminatephysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TerminatePhysicalConnectionWithChan(request *TerminatePhysicalConnectionRequest) (<-chan *TerminatePhysicalConnectionResponse, <-chan error) { + responseChan := make(chan *TerminatePhysicalConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TerminatePhysicalConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TerminatePhysicalConnectionWithCallback invokes the vpc.TerminatePhysicalConnection API asynchronously +// api document: https://help.aliyun.com/api/vpc/terminatephysicalconnection.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TerminatePhysicalConnectionWithCallback(request *TerminatePhysicalConnectionRequest, callback func(response *TerminatePhysicalConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TerminatePhysicalConnectionResponse + var err error + defer close(result) + response, err = client.TerminatePhysicalConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TerminatePhysicalConnectionRequest is the request struct for api TerminatePhysicalConnection +type TerminatePhysicalConnectionRequest struct { + *requests.RpcRequest + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// TerminatePhysicalConnectionResponse is the response struct for api TerminatePhysicalConnection +type TerminatePhysicalConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateTerminatePhysicalConnectionRequest creates a request to invoke TerminatePhysicalConnection API +func CreateTerminatePhysicalConnectionRequest() (request *TerminatePhysicalConnectionRequest) { + request = &TerminatePhysicalConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "TerminatePhysicalConnection", "vpc", "openAPI") + return +} + +// CreateTerminatePhysicalConnectionResponse creates a response to parse from TerminatePhysicalConnection response +func CreateTerminatePhysicalConnectionResponse() (response *TerminatePhysicalConnectionResponse) { + response = &TerminatePhysicalConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/terminate_virtual_border_router.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/terminate_virtual_border_router.go new file mode 100644 index 0000000..9e0175f --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/terminate_virtual_border_router.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TerminateVirtualBorderRouter invokes the vpc.TerminateVirtualBorderRouter API synchronously +// api document: https://help.aliyun.com/api/vpc/terminatevirtualborderrouter.html +func (client *Client) TerminateVirtualBorderRouter(request *TerminateVirtualBorderRouterRequest) (response *TerminateVirtualBorderRouterResponse, err error) { + response = CreateTerminateVirtualBorderRouterResponse() + err = client.DoAction(request, response) + return +} + +// TerminateVirtualBorderRouterWithChan invokes the vpc.TerminateVirtualBorderRouter API asynchronously +// api document: https://help.aliyun.com/api/vpc/terminatevirtualborderrouter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TerminateVirtualBorderRouterWithChan(request *TerminateVirtualBorderRouterRequest) (<-chan *TerminateVirtualBorderRouterResponse, <-chan error) { + responseChan := make(chan *TerminateVirtualBorderRouterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TerminateVirtualBorderRouter(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TerminateVirtualBorderRouterWithCallback invokes the vpc.TerminateVirtualBorderRouter API asynchronously +// api document: https://help.aliyun.com/api/vpc/terminatevirtualborderrouter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TerminateVirtualBorderRouterWithCallback(request *TerminateVirtualBorderRouterRequest, callback func(response *TerminateVirtualBorderRouterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TerminateVirtualBorderRouterResponse + var err error + defer close(result) + response, err = client.TerminateVirtualBorderRouter(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TerminateVirtualBorderRouterRequest is the request struct for api TerminateVirtualBorderRouter +type TerminateVirtualBorderRouterRequest struct { + *requests.RpcRequest + VbrId string `position:"Query" name:"VbrId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// TerminateVirtualBorderRouterResponse is the response struct for api TerminateVirtualBorderRouter +type TerminateVirtualBorderRouterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateTerminateVirtualBorderRouterRequest creates a request to invoke TerminateVirtualBorderRouter API +func CreateTerminateVirtualBorderRouterRequest() (request *TerminateVirtualBorderRouterRequest) { + request = &TerminateVirtualBorderRouterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "TerminateVirtualBorderRouter", "vpc", "openAPI") + return +} + +// CreateTerminateVirtualBorderRouterResponse creates a response to parse from TerminateVirtualBorderRouter response +func CreateTerminateVirtualBorderRouterResponse() (response *TerminateVirtualBorderRouterResponse) { + response = &TerminateVirtualBorderRouterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/unassociate_eip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/unassociate_eip_address.go new file mode 100644 index 0000000..01b6469 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/unassociate_eip_address.go @@ -0,0 +1,109 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UnassociateEipAddress invokes the vpc.UnassociateEipAddress API synchronously +// api document: https://help.aliyun.com/api/vpc/unassociateeipaddress.html +func (client *Client) UnassociateEipAddress(request *UnassociateEipAddressRequest) (response *UnassociateEipAddressResponse, err error) { + response = CreateUnassociateEipAddressResponse() + err = client.DoAction(request, response) + return +} + +// UnassociateEipAddressWithChan invokes the vpc.UnassociateEipAddress API asynchronously +// api document: https://help.aliyun.com/api/vpc/unassociateeipaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnassociateEipAddressWithChan(request *UnassociateEipAddressRequest) (<-chan *UnassociateEipAddressResponse, <-chan error) { + responseChan := make(chan *UnassociateEipAddressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UnassociateEipAddress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UnassociateEipAddressWithCallback invokes the vpc.UnassociateEipAddress API asynchronously +// api document: https://help.aliyun.com/api/vpc/unassociateeipaddress.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnassociateEipAddressWithCallback(request *UnassociateEipAddressRequest, callback func(response *UnassociateEipAddressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UnassociateEipAddressResponse + var err error + defer close(result) + response, err = client.UnassociateEipAddress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UnassociateEipAddressRequest is the request struct for api UnassociateEipAddress +type UnassociateEipAddressRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AllocationId string `position:"Query" name:"AllocationId"` + InstanceId string `position:"Query" name:"InstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + InstanceType string `position:"Query" name:"InstanceType"` +} + +// UnassociateEipAddressResponse is the response struct for api UnassociateEipAddress +type UnassociateEipAddressResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUnassociateEipAddressRequest creates a request to invoke UnassociateEipAddress API +func CreateUnassociateEipAddressRequest() (request *UnassociateEipAddressRequest) { + request = &UnassociateEipAddressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "UnassociateEipAddress", "vpc", "openAPI") + return +} + +// CreateUnassociateEipAddressResponse creates a response to parse from UnassociateEipAddress response +func CreateUnassociateEipAddressResponse() (response *UnassociateEipAddressResponse) { + response = &UnassociateEipAddressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/unassociate_global_acceleration_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/unassociate_global_acceleration_instance.go new file mode 100644 index 0000000..64288aa --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/unassociate_global_acceleration_instance.go @@ -0,0 +1,108 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UnassociateGlobalAccelerationInstance invokes the vpc.UnassociateGlobalAccelerationInstance API synchronously +// api document: https://help.aliyun.com/api/vpc/unassociateglobalaccelerationinstance.html +func (client *Client) UnassociateGlobalAccelerationInstance(request *UnassociateGlobalAccelerationInstanceRequest) (response *UnassociateGlobalAccelerationInstanceResponse, err error) { + response = CreateUnassociateGlobalAccelerationInstanceResponse() + err = client.DoAction(request, response) + return +} + +// UnassociateGlobalAccelerationInstanceWithChan invokes the vpc.UnassociateGlobalAccelerationInstance API asynchronously +// api document: https://help.aliyun.com/api/vpc/unassociateglobalaccelerationinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnassociateGlobalAccelerationInstanceWithChan(request *UnassociateGlobalAccelerationInstanceRequest) (<-chan *UnassociateGlobalAccelerationInstanceResponse, <-chan error) { + responseChan := make(chan *UnassociateGlobalAccelerationInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UnassociateGlobalAccelerationInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UnassociateGlobalAccelerationInstanceWithCallback invokes the vpc.UnassociateGlobalAccelerationInstance API asynchronously +// api document: https://help.aliyun.com/api/vpc/unassociateglobalaccelerationinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnassociateGlobalAccelerationInstanceWithCallback(request *UnassociateGlobalAccelerationInstanceRequest, callback func(response *UnassociateGlobalAccelerationInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UnassociateGlobalAccelerationInstanceResponse + var err error + defer close(result) + response, err = client.UnassociateGlobalAccelerationInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UnassociateGlobalAccelerationInstanceRequest is the request struct for api UnassociateGlobalAccelerationInstance +type UnassociateGlobalAccelerationInstanceRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + GlobalAccelerationInstanceId string `position:"Query" name:"GlobalAccelerationInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + InstanceType string `position:"Query" name:"InstanceType"` +} + +// UnassociateGlobalAccelerationInstanceResponse is the response struct for api UnassociateGlobalAccelerationInstance +type UnassociateGlobalAccelerationInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUnassociateGlobalAccelerationInstanceRequest creates a request to invoke UnassociateGlobalAccelerationInstance API +func CreateUnassociateGlobalAccelerationInstanceRequest() (request *UnassociateGlobalAccelerationInstanceRequest) { + request = &UnassociateGlobalAccelerationInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "UnassociateGlobalAccelerationInstance", "vpc", "openAPI") + return +} + +// CreateUnassociateGlobalAccelerationInstanceResponse creates a response to parse from UnassociateGlobalAccelerationInstance response +func CreateUnassociateGlobalAccelerationInstanceResponse() (response *UnassociateGlobalAccelerationInstanceResponse) { + response = &UnassociateGlobalAccelerationInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/unassociate_ha_vip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/unassociate_ha_vip.go new file mode 100644 index 0000000..1da0a44 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/unassociate_ha_vip.go @@ -0,0 +1,110 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UnassociateHaVip invokes the vpc.UnassociateHaVip API synchronously +// api document: https://help.aliyun.com/api/vpc/unassociatehavip.html +func (client *Client) UnassociateHaVip(request *UnassociateHaVipRequest) (response *UnassociateHaVipResponse, err error) { + response = CreateUnassociateHaVipResponse() + err = client.DoAction(request, response) + return +} + +// UnassociateHaVipWithChan invokes the vpc.UnassociateHaVip API asynchronously +// api document: https://help.aliyun.com/api/vpc/unassociatehavip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnassociateHaVipWithChan(request *UnassociateHaVipRequest) (<-chan *UnassociateHaVipResponse, <-chan error) { + responseChan := make(chan *UnassociateHaVipResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UnassociateHaVip(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UnassociateHaVipWithCallback invokes the vpc.UnassociateHaVip API asynchronously +// api document: https://help.aliyun.com/api/vpc/unassociatehavip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnassociateHaVipWithCallback(request *UnassociateHaVipRequest, callback func(response *UnassociateHaVipResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UnassociateHaVipResponse + var err error + defer close(result) + response, err = client.UnassociateHaVip(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UnassociateHaVipRequest is the request struct for api UnassociateHaVip +type UnassociateHaVipRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ClientToken string `position:"Query" name:"ClientToken"` + HaVipId string `position:"Query" name:"HaVipId"` + InstanceId string `position:"Query" name:"InstanceId"` + Force string `position:"Query" name:"Force"` +} + +// UnassociateHaVipResponse is the response struct for api UnassociateHaVip +type UnassociateHaVipResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUnassociateHaVipRequest creates a request to invoke UnassociateHaVip API +func CreateUnassociateHaVipRequest() (request *UnassociateHaVipRequest) { + request = &UnassociateHaVipRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "UnassociateHaVip", "vpc", "openAPI") + return +} + +// CreateUnassociateHaVipResponse creates a response to parse from UnassociateHaVip response +func CreateUnassociateHaVipResponse() (response *UnassociateHaVipResponse) { + response = &UnassociateHaVipResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/unassociate_physical_connection_from_virtual_border_router.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/unassociate_physical_connection_from_virtual_border_router.go new file mode 100644 index 0000000..4559112 --- /dev/null +++ b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc/unassociate_physical_connection_from_virtual_border_router.go @@ -0,0 +1,109 @@ +package vpc + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UnassociatePhysicalConnectionFromVirtualBorderRouter invokes the vpc.UnassociatePhysicalConnectionFromVirtualBorderRouter API synchronously +// api document: https://help.aliyun.com/api/vpc/unassociatephysicalconnectionfromvirtualborderrouter.html +func (client *Client) UnassociatePhysicalConnectionFromVirtualBorderRouter(request *UnassociatePhysicalConnectionFromVirtualBorderRouterRequest) (response *UnassociatePhysicalConnectionFromVirtualBorderRouterResponse, err error) { + response = CreateUnassociatePhysicalConnectionFromVirtualBorderRouterResponse() + err = client.DoAction(request, response) + return +} + +// UnassociatePhysicalConnectionFromVirtualBorderRouterWithChan invokes the vpc.UnassociatePhysicalConnectionFromVirtualBorderRouter API asynchronously +// api document: https://help.aliyun.com/api/vpc/unassociatephysicalconnectionfromvirtualborderrouter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnassociatePhysicalConnectionFromVirtualBorderRouterWithChan(request *UnassociatePhysicalConnectionFromVirtualBorderRouterRequest) (<-chan *UnassociatePhysicalConnectionFromVirtualBorderRouterResponse, <-chan error) { + responseChan := make(chan *UnassociatePhysicalConnectionFromVirtualBorderRouterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UnassociatePhysicalConnectionFromVirtualBorderRouter(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UnassociatePhysicalConnectionFromVirtualBorderRouterWithCallback invokes the vpc.UnassociatePhysicalConnectionFromVirtualBorderRouter API asynchronously +// api document: https://help.aliyun.com/api/vpc/unassociatephysicalconnectionfromvirtualborderrouter.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnassociatePhysicalConnectionFromVirtualBorderRouterWithCallback(request *UnassociatePhysicalConnectionFromVirtualBorderRouterRequest, callback func(response *UnassociatePhysicalConnectionFromVirtualBorderRouterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UnassociatePhysicalConnectionFromVirtualBorderRouterResponse + var err error + defer close(result) + response, err = client.UnassociatePhysicalConnectionFromVirtualBorderRouter(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UnassociatePhysicalConnectionFromVirtualBorderRouterRequest is the request struct for api UnassociatePhysicalConnectionFromVirtualBorderRouter +type UnassociatePhysicalConnectionFromVirtualBorderRouterRequest struct { + *requests.RpcRequest + VbrId string `position:"Query" name:"VbrId"` + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` +} + +// UnassociatePhysicalConnectionFromVirtualBorderRouterResponse is the response struct for api UnassociatePhysicalConnectionFromVirtualBorderRouter +type UnassociatePhysicalConnectionFromVirtualBorderRouterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUnassociatePhysicalConnectionFromVirtualBorderRouterRequest creates a request to invoke UnassociatePhysicalConnectionFromVirtualBorderRouter API +func CreateUnassociatePhysicalConnectionFromVirtualBorderRouterRequest() (request *UnassociatePhysicalConnectionFromVirtualBorderRouterRequest) { + request = &UnassociatePhysicalConnectionFromVirtualBorderRouterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "UnassociatePhysicalConnectionFromVirtualBorderRouter", "vpc", "openAPI") + return +} + +// CreateUnassociatePhysicalConnectionFromVirtualBorderRouterResponse creates a response to parse from UnassociatePhysicalConnectionFromVirtualBorderRouter response +func CreateUnassociatePhysicalConnectionFromVirtualBorderRouterResponse() (response *UnassociatePhysicalConnectionFromVirtualBorderRouterResponse) { + response = &UnassociatePhysicalConnectionFromVirtualBorderRouterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/vendor/github.com/beorn7/perks/LICENSE b/vendor/github.com/beorn7/perks/LICENSE new file mode 100644 index 0000000..339177b --- /dev/null +++ b/vendor/github.com/beorn7/perks/LICENSE @@ -0,0 +1,20 @@ +Copyright (C) 2013 Blake Mizerany + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/github.com/beorn7/perks/quantile/exampledata.txt b/vendor/github.com/beorn7/perks/quantile/exampledata.txt new file mode 100644 index 0000000..1602287 --- /dev/null +++ b/vendor/github.com/beorn7/perks/quantile/exampledata.txt @@ -0,0 +1,2388 @@ +8 +5 +26 +12 +5 +235 +13 +6 +28 +30 +3 +3 +3 +3 +5 +2 +33 +7 +2 +4 +7 +12 +14 +5 +8 +3 +10 +4 +5 +3 +6 +6 +209 +20 +3 +10 +14 +3 +4 +6 +8 +5 +11 +7 +3 +2 +3 +3 +212 +5 +222 +4 +10 +10 +5 +6 +3 +8 +3 +10 +254 +220 +2 +3 +5 +24 +5 +4 +222 +7 +3 +3 +223 +8 +15 +12 +14 +14 +3 +2 +2 +3 +13 +3 +11 +4 +4 +6 +5 +7 +13 +5 +3 +5 +2 +5 +3 +5 +2 +7 +15 +17 +14 +3 +6 +6 +3 +17 +5 +4 +7 +6 +4 +4 +8 +6 +8 +3 +9 +3 +6 +3 +4 +5 +3 +3 +660 +4 +6 +10 +3 +6 +3 +2 +5 +13 +2 +4 +4 +10 +4 +8 +4 +3 +7 +9 +9 +3 +10 +37 +3 +13 +4 +12 +3 +6 +10 +8 +5 +21 +2 +3 +8 +3 +2 +3 +3 +4 +12 +2 +4 +8 +8 +4 +3 +2 +20 +1 +6 +32 +2 +11 +6 +18 +3 +8 +11 +3 +212 +3 +4 +2 +6 +7 +12 +11 +3 +2 +16 +10 +6 +4 +6 +3 +2 +7 +3 +2 +2 +2 +2 +5 +6 +4 +3 +10 +3 +4 +6 +5 +3 +4 +4 +5 +6 +4 +3 +4 +4 +5 +7 +5 +5 +3 +2 +7 +2 +4 +12 +4 +5 +6 +2 +4 +4 +8 +4 +15 +13 +7 +16 +5 +3 +23 +5 +5 +7 +3 +2 +9 +8 +7 +5 +8 +11 +4 +10 +76 +4 +47 +4 +3 +2 +7 +4 +2 +3 +37 +10 +4 +2 +20 +5 +4 +4 +10 +10 +4 +3 +7 +23 +240 +7 +13 +5 +5 +3 +3 +2 +5 +4 +2 +8 +7 +19 +2 +23 +8 +7 +2 +5 +3 +8 +3 +8 +13 +5 +5 +5 +2 +3 +23 +4 +9 +8 +4 +3 +3 +5 +220 +2 +3 +4 +6 +14 +3 +53 +6 +2 +5 +18 +6 +3 +219 +6 +5 +2 +5 +3 +6 +5 +15 +4 +3 +17 +3 +2 +4 +7 +2 +3 +3 +4 +4 +3 +2 +664 +6 +3 +23 +5 +5 +16 +5 +8 +2 +4 +2 +24 +12 +3 +2 +3 +5 +8 +3 +5 +4 +3 +14 +3 +5 +8 +2 +3 +7 +9 +4 +2 +3 +6 +8 +4 +3 +4 +6 +5 +3 +3 +6 +3 +19 +4 +4 +6 +3 +6 +3 +5 +22 +5 +4 +4 +3 +8 +11 +4 +9 +7 +6 +13 +4 +4 +4 +6 +17 +9 +3 +3 +3 +4 +3 +221 +5 +11 +3 +4 +2 +12 +6 +3 +5 +7 +5 +7 +4 +9 +7 +14 +37 +19 +217 +16 +3 +5 +2 +2 +7 +19 +7 +6 +7 +4 +24 +5 +11 +4 +7 +7 +9 +13 +3 +4 +3 +6 +28 +4 +4 +5 +5 +2 +5 +6 +4 +4 +6 +10 +5 +4 +3 +2 +3 +3 +6 +5 +5 +4 +3 +2 +3 +7 +4 +6 +18 +16 +8 +16 +4 +5 +8 +6 +9 +13 +1545 +6 +215 +6 +5 +6 +3 +45 +31 +5 +2 +2 +4 +3 +3 +2 +5 +4 +3 +5 +7 +7 +4 +5 +8 +5 +4 +749 +2 +31 +9 +11 +2 +11 +5 +4 +4 +7 +9 +11 +4 +5 +4 +7 +3 +4 +6 +2 +15 +3 +4 +3 +4 +3 +5 +2 +13 +5 +5 +3 +3 +23 +4 +4 +5 +7 +4 +13 +2 +4 +3 +4 +2 +6 +2 +7 +3 +5 +5 +3 +29 +5 +4 +4 +3 +10 +2 +3 +79 +16 +6 +6 +7 +7 +3 +5 +5 +7 +4 +3 +7 +9 +5 +6 +5 +9 +6 +3 +6 +4 +17 +2 +10 +9 +3 +6 +2 +3 +21 +22 +5 +11 +4 +2 +17 +2 +224 +2 +14 +3 +4 +4 +2 +4 +4 +4 +4 +5 +3 +4 +4 +10 +2 +6 +3 +3 +5 +7 +2 +7 +5 +6 +3 +218 +2 +2 +5 +2 +6 +3 +5 +222 +14 +6 +33 +3 +2 +5 +3 +3 +3 +9 +5 +3 +3 +2 +7 +4 +3 +4 +3 +5 +6 +5 +26 +4 +13 +9 +7 +3 +221 +3 +3 +4 +4 +4 +4 +2 +18 +5 +3 +7 +9 +6 +8 +3 +10 +3 +11 +9 +5 +4 +17 +5 +5 +6 +6 +3 +2 +4 +12 +17 +6 +7 +218 +4 +2 +4 +10 +3 +5 +15 +3 +9 +4 +3 +3 +6 +29 +3 +3 +4 +5 +5 +3 +8 +5 +6 +6 +7 +5 +3 +5 +3 +29 +2 +31 +5 +15 +24 +16 +5 +207 +4 +3 +3 +2 +15 +4 +4 +13 +5 +5 +4 +6 +10 +2 +7 +8 +4 +6 +20 +5 +3 +4 +3 +12 +12 +5 +17 +7 +3 +3 +3 +6 +10 +3 +5 +25 +80 +4 +9 +3 +2 +11 +3 +3 +2 +3 +8 +7 +5 +5 +19 +5 +3 +3 +12 +11 +2 +6 +5 +5 +5 +3 +3 +3 +4 +209 +14 +3 +2 +5 +19 +4 +4 +3 +4 +14 +5 +6 +4 +13 +9 +7 +4 +7 +10 +2 +9 +5 +7 +2 +8 +4 +6 +5 +5 +222 +8 +7 +12 +5 +216 +3 +4 +4 +6 +3 +14 +8 +7 +13 +4 +3 +3 +3 +3 +17 +5 +4 +3 +33 +6 +6 +33 +7 +5 +3 +8 +7 +5 +2 +9 +4 +2 +233 +24 +7 +4 +8 +10 +3 +4 +15 +2 +16 +3 +3 +13 +12 +7 +5 +4 +207 +4 +2 +4 +27 +15 +2 +5 +2 +25 +6 +5 +5 +6 +13 +6 +18 +6 +4 +12 +225 +10 +7 +5 +2 +2 +11 +4 +14 +21 +8 +10 +3 +5 +4 +232 +2 +5 +5 +3 +7 +17 +11 +6 +6 +23 +4 +6 +3 +5 +4 +2 +17 +3 +6 +5 +8 +3 +2 +2 +14 +9 +4 +4 +2 +5 +5 +3 +7 +6 +12 +6 +10 +3 +6 +2 +2 +19 +5 +4 +4 +9 +2 +4 +13 +3 +5 +6 +3 +6 +5 +4 +9 +6 +3 +5 +7 +3 +6 +6 +4 +3 +10 +6 +3 +221 +3 +5 +3 +6 +4 +8 +5 +3 +6 +4 +4 +2 +54 +5 +6 +11 +3 +3 +4 +4 +4 +3 +7 +3 +11 +11 +7 +10 +6 +13 +223 +213 +15 +231 +7 +3 +7 +228 +2 +3 +4 +4 +5 +6 +7 +4 +13 +3 +4 +5 +3 +6 +4 +6 +7 +2 +4 +3 +4 +3 +3 +6 +3 +7 +3 +5 +18 +5 +6 +8 +10 +3 +3 +3 +2 +4 +2 +4 +4 +5 +6 +6 +4 +10 +13 +3 +12 +5 +12 +16 +8 +4 +19 +11 +2 +4 +5 +6 +8 +5 +6 +4 +18 +10 +4 +2 +216 +6 +6 +6 +2 +4 +12 +8 +3 +11 +5 +6 +14 +5 +3 +13 +4 +5 +4 +5 +3 +28 +6 +3 +7 +219 +3 +9 +7 +3 +10 +6 +3 +4 +19 +5 +7 +11 +6 +15 +19 +4 +13 +11 +3 +7 +5 +10 +2 +8 +11 +2 +6 +4 +6 +24 +6 +3 +3 +3 +3 +6 +18 +4 +11 +4 +2 +5 +10 +8 +3 +9 +5 +3 +4 +5 +6 +2 +5 +7 +4 +4 +14 +6 +4 +4 +5 +5 +7 +2 +4 +3 +7 +3 +3 +6 +4 +5 +4 +4 +4 +3 +3 +3 +3 +8 +14 +2 +3 +5 +3 +2 +4 +5 +3 +7 +3 +3 +18 +3 +4 +4 +5 +7 +3 +3 +3 +13 +5 +4 +8 +211 +5 +5 +3 +5 +2 +5 +4 +2 +655 +6 +3 +5 +11 +2 +5 +3 +12 +9 +15 +11 +5 +12 +217 +2 +6 +17 +3 +3 +207 +5 +5 +4 +5 +9 +3 +2 +8 +5 +4 +3 +2 +5 +12 +4 +14 +5 +4 +2 +13 +5 +8 +4 +225 +4 +3 +4 +5 +4 +3 +3 +6 +23 +9 +2 +6 +7 +233 +4 +4 +6 +18 +3 +4 +6 +3 +4 +4 +2 +3 +7 +4 +13 +227 +4 +3 +5 +4 +2 +12 +9 +17 +3 +7 +14 +6 +4 +5 +21 +4 +8 +9 +2 +9 +25 +16 +3 +6 +4 +7 +8 +5 +2 +3 +5 +4 +3 +3 +5 +3 +3 +3 +2 +3 +19 +2 +4 +3 +4 +2 +3 +4 +4 +2 +4 +3 +3 +3 +2 +6 +3 +17 +5 +6 +4 +3 +13 +5 +3 +3 +3 +4 +9 +4 +2 +14 +12 +4 +5 +24 +4 +3 +37 +12 +11 +21 +3 +4 +3 +13 +4 +2 +3 +15 +4 +11 +4 +4 +3 +8 +3 +4 +4 +12 +8 +5 +3 +3 +4 +2 +220 +3 +5 +223 +3 +3 +3 +10 +3 +15 +4 +241 +9 +7 +3 +6 +6 +23 +4 +13 +7 +3 +4 +7 +4 +9 +3 +3 +4 +10 +5 +5 +1 +5 +24 +2 +4 +5 +5 +6 +14 +3 +8 +2 +3 +5 +13 +13 +3 +5 +2 +3 +15 +3 +4 +2 +10 +4 +4 +4 +5 +5 +3 +5 +3 +4 +7 +4 +27 +3 +6 +4 +15 +3 +5 +6 +6 +5 +4 +8 +3 +9 +2 +6 +3 +4 +3 +7 +4 +18 +3 +11 +3 +3 +8 +9 +7 +24 +3 +219 +7 +10 +4 +5 +9 +12 +2 +5 +4 +4 +4 +3 +3 +19 +5 +8 +16 +8 +6 +22 +3 +23 +3 +242 +9 +4 +3 +3 +5 +7 +3 +3 +5 +8 +3 +7 +5 +14 +8 +10 +3 +4 +3 +7 +4 +6 +7 +4 +10 +4 +3 +11 +3 +7 +10 +3 +13 +6 +8 +12 +10 +5 +7 +9 +3 +4 +7 +7 +10 +8 +30 +9 +19 +4 +3 +19 +15 +4 +13 +3 +215 +223 +4 +7 +4 +8 +17 +16 +3 +7 +6 +5 +5 +4 +12 +3 +7 +4 +4 +13 +4 +5 +2 +5 +6 +5 +6 +6 +7 +10 +18 +23 +9 +3 +3 +6 +5 +2 +4 +2 +7 +3 +3 +2 +5 +5 +14 +10 +224 +6 +3 +4 +3 +7 +5 +9 +3 +6 +4 +2 +5 +11 +4 +3 +3 +2 +8 +4 +7 +4 +10 +7 +3 +3 +18 +18 +17 +3 +3 +3 +4 +5 +3 +3 +4 +12 +7 +3 +11 +13 +5 +4 +7 +13 +5 +4 +11 +3 +12 +3 +6 +4 +4 +21 +4 +6 +9 +5 +3 +10 +8 +4 +6 +4 +4 +6 +5 +4 +8 +6 +4 +6 +4 +4 +5 +9 +6 +3 +4 +2 +9 +3 +18 +2 +4 +3 +13 +3 +6 +6 +8 +7 +9 +3 +2 +16 +3 +4 +6 +3 +2 +33 +22 +14 +4 +9 +12 +4 +5 +6 +3 +23 +9 +4 +3 +5 +5 +3 +4 +5 +3 +5 +3 +10 +4 +5 +5 +8 +4 +4 +6 +8 +5 +4 +3 +4 +6 +3 +3 +3 +5 +9 +12 +6 +5 +9 +3 +5 +3 +2 +2 +2 +18 +3 +2 +21 +2 +5 +4 +6 +4 +5 +10 +3 +9 +3 +2 +10 +7 +3 +6 +6 +4 +4 +8 +12 +7 +3 +7 +3 +3 +9 +3 +4 +5 +4 +4 +5 +5 +10 +15 +4 +4 +14 +6 +227 +3 +14 +5 +216 +22 +5 +4 +2 +2 +6 +3 +4 +2 +9 +9 +4 +3 +28 +13 +11 +4 +5 +3 +3 +2 +3 +3 +5 +3 +4 +3 +5 +23 +26 +3 +4 +5 +6 +4 +6 +3 +5 +5 +3 +4 +3 +2 +2 +2 +7 +14 +3 +6 +7 +17 +2 +2 +15 +14 +16 +4 +6 +7 +13 +6 +4 +5 +6 +16 +3 +3 +28 +3 +6 +15 +3 +9 +2 +4 +6 +3 +3 +22 +4 +12 +6 +7 +2 +5 +4 +10 +3 +16 +6 +9 +2 +5 +12 +7 +5 +5 +5 +5 +2 +11 +9 +17 +4 +3 +11 +7 +3 +5 +15 +4 +3 +4 +211 +8 +7 +5 +4 +7 +6 +7 +6 +3 +6 +5 +6 +5 +3 +4 +4 +26 +4 +6 +10 +4 +4 +3 +2 +3 +3 +4 +5 +9 +3 +9 +4 +4 +5 +5 +8 +2 +4 +2 +3 +8 +4 +11 +19 +5 +8 +6 +3 +5 +6 +12 +3 +2 +4 +16 +12 +3 +4 +4 +8 +6 +5 +6 +6 +219 +8 +222 +6 +16 +3 +13 +19 +5 +4 +3 +11 +6 +10 +4 +7 +7 +12 +5 +3 +3 +5 +6 +10 +3 +8 +2 +5 +4 +7 +2 +4 +4 +2 +12 +9 +6 +4 +2 +40 +2 +4 +10 +4 +223 +4 +2 +20 +6 +7 +24 +5 +4 +5 +2 +20 +16 +6 +5 +13 +2 +3 +3 +19 +3 +2 +4 +5 +6 +7 +11 +12 +5 +6 +7 +7 +3 +5 +3 +5 +3 +14 +3 +4 +4 +2 +11 +1 +7 +3 +9 +6 +11 +12 +5 +8 +6 +221 +4 +2 +12 +4 +3 +15 +4 +5 +226 +7 +218 +7 +5 +4 +5 +18 +4 +5 +9 +4 +4 +2 +9 +18 +18 +9 +5 +6 +6 +3 +3 +7 +3 +5 +4 +4 +4 +12 +3 +6 +31 +5 +4 +7 +3 +6 +5 +6 +5 +11 +2 +2 +11 +11 +6 +7 +5 +8 +7 +10 +5 +23 +7 +4 +3 +5 +34 +2 +5 +23 +7 +3 +6 +8 +4 +4 +4 +2 +5 +3 +8 +5 +4 +8 +25 +2 +3 +17 +8 +3 +4 +8 +7 +3 +15 +6 +5 +7 +21 +9 +5 +6 +6 +5 +3 +2 +3 +10 +3 +6 +3 +14 +7 +4 +4 +8 +7 +8 +2 +6 +12 +4 +213 +6 +5 +21 +8 +2 +5 +23 +3 +11 +2 +3 +6 +25 +2 +3 +6 +7 +6 +6 +4 +4 +6 +3 +17 +9 +7 +6 +4 +3 +10 +7 +2 +3 +3 +3 +11 +8 +3 +7 +6 +4 +14 +36 +3 +4 +3 +3 +22 +13 +21 +4 +2 +7 +4 +4 +17 +15 +3 +7 +11 +2 +4 +7 +6 +209 +6 +3 +2 +2 +24 +4 +9 +4 +3 +3 +3 +29 +2 +2 +4 +3 +3 +5 +4 +6 +3 +3 +2 +4 diff --git a/vendor/github.com/beorn7/perks/quantile/stream.go b/vendor/github.com/beorn7/perks/quantile/stream.go new file mode 100644 index 0000000..d7d14f8 --- /dev/null +++ b/vendor/github.com/beorn7/perks/quantile/stream.go @@ -0,0 +1,316 @@ +// Package quantile computes approximate quantiles over an unbounded data +// stream within low memory and CPU bounds. +// +// A small amount of accuracy is traded to achieve the above properties. +// +// Multiple streams can be merged before calling Query to generate a single set +// of results. This is meaningful when the streams represent the same type of +// data. See Merge and Samples. +// +// For more detailed information about the algorithm used, see: +// +// Effective Computation of Biased Quantiles over Data Streams +// +// http://www.cs.rutgers.edu/~muthu/bquant.pdf +package quantile + +import ( + "math" + "sort" +) + +// Sample holds an observed value and meta information for compression. JSON +// tags have been added for convenience. +type Sample struct { + Value float64 `json:",string"` + Width float64 `json:",string"` + Delta float64 `json:",string"` +} + +// Samples represents a slice of samples. It implements sort.Interface. +type Samples []Sample + +func (a Samples) Len() int { return len(a) } +func (a Samples) Less(i, j int) bool { return a[i].Value < a[j].Value } +func (a Samples) Swap(i, j int) { a[i], a[j] = a[j], a[i] } + +type invariant func(s *stream, r float64) float64 + +// NewLowBiased returns an initialized Stream for low-biased quantiles +// (e.g. 0.01, 0.1, 0.5) where the needed quantiles are not known a priori, but +// error guarantees can still be given even for the lower ranks of the data +// distribution. +// +// The provided epsilon is a relative error, i.e. the true quantile of a value +// returned by a query is guaranteed to be within (1±Epsilon)*Quantile. +// +// See http://www.cs.rutgers.edu/~muthu/bquant.pdf for time, space, and error +// properties. +func NewLowBiased(epsilon float64) *Stream { + ƒ := func(s *stream, r float64) float64 { + return 2 * epsilon * r + } + return newStream(ƒ) +} + +// NewHighBiased returns an initialized Stream for high-biased quantiles +// (e.g. 0.01, 0.1, 0.5) where the needed quantiles are not known a priori, but +// error guarantees can still be given even for the higher ranks of the data +// distribution. +// +// The provided epsilon is a relative error, i.e. the true quantile of a value +// returned by a query is guaranteed to be within 1-(1±Epsilon)*(1-Quantile). +// +// See http://www.cs.rutgers.edu/~muthu/bquant.pdf for time, space, and error +// properties. +func NewHighBiased(epsilon float64) *Stream { + ƒ := func(s *stream, r float64) float64 { + return 2 * epsilon * (s.n - r) + } + return newStream(ƒ) +} + +// NewTargeted returns an initialized Stream concerned with a particular set of +// quantile values that are supplied a priori. Knowing these a priori reduces +// space and computation time. The targets map maps the desired quantiles to +// their absolute errors, i.e. the true quantile of a value returned by a query +// is guaranteed to be within (Quantile±Epsilon). +// +// See http://www.cs.rutgers.edu/~muthu/bquant.pdf for time, space, and error properties. +func NewTargeted(targetMap map[float64]float64) *Stream { + // Convert map to slice to avoid slow iterations on a map. + // ƒ is called on the hot path, so converting the map to a slice + // beforehand results in significant CPU savings. + targets := targetMapToSlice(targetMap) + + ƒ := func(s *stream, r float64) float64 { + var m = math.MaxFloat64 + var f float64 + for _, t := range targets { + if t.quantile*s.n <= r { + f = (2 * t.epsilon * r) / t.quantile + } else { + f = (2 * t.epsilon * (s.n - r)) / (1 - t.quantile) + } + if f < m { + m = f + } + } + return m + } + return newStream(ƒ) +} + +type target struct { + quantile float64 + epsilon float64 +} + +func targetMapToSlice(targetMap map[float64]float64) []target { + targets := make([]target, 0, len(targetMap)) + + for quantile, epsilon := range targetMap { + t := target{ + quantile: quantile, + epsilon: epsilon, + } + targets = append(targets, t) + } + + return targets +} + +// Stream computes quantiles for a stream of float64s. It is not thread-safe by +// design. Take care when using across multiple goroutines. +type Stream struct { + *stream + b Samples + sorted bool +} + +func newStream(ƒ invariant) *Stream { + x := &stream{ƒ: ƒ} + return &Stream{x, make(Samples, 0, 500), true} +} + +// Insert inserts v into the stream. +func (s *Stream) Insert(v float64) { + s.insert(Sample{Value: v, Width: 1}) +} + +func (s *Stream) insert(sample Sample) { + s.b = append(s.b, sample) + s.sorted = false + if len(s.b) == cap(s.b) { + s.flush() + } +} + +// Query returns the computed qth percentiles value. If s was created with +// NewTargeted, and q is not in the set of quantiles provided a priori, Query +// will return an unspecified result. +func (s *Stream) Query(q float64) float64 { + if !s.flushed() { + // Fast path when there hasn't been enough data for a flush; + // this also yields better accuracy for small sets of data. + l := len(s.b) + if l == 0 { + return 0 + } + i := int(math.Ceil(float64(l) * q)) + if i > 0 { + i -= 1 + } + s.maybeSort() + return s.b[i].Value + } + s.flush() + return s.stream.query(q) +} + +// Merge merges samples into the underlying streams samples. This is handy when +// merging multiple streams from separate threads, database shards, etc. +// +// ATTENTION: This method is broken and does not yield correct results. The +// underlying algorithm is not capable of merging streams correctly. +func (s *Stream) Merge(samples Samples) { + sort.Sort(samples) + s.stream.merge(samples) +} + +// Reset reinitializes and clears the list reusing the samples buffer memory. +func (s *Stream) Reset() { + s.stream.reset() + s.b = s.b[:0] +} + +// Samples returns stream samples held by s. +func (s *Stream) Samples() Samples { + if !s.flushed() { + return s.b + } + s.flush() + return s.stream.samples() +} + +// Count returns the total number of samples observed in the stream +// since initialization. +func (s *Stream) Count() int { + return len(s.b) + s.stream.count() +} + +func (s *Stream) flush() { + s.maybeSort() + s.stream.merge(s.b) + s.b = s.b[:0] +} + +func (s *Stream) maybeSort() { + if !s.sorted { + s.sorted = true + sort.Sort(s.b) + } +} + +func (s *Stream) flushed() bool { + return len(s.stream.l) > 0 +} + +type stream struct { + n float64 + l []Sample + ƒ invariant +} + +func (s *stream) reset() { + s.l = s.l[:0] + s.n = 0 +} + +func (s *stream) insert(v float64) { + s.merge(Samples{{v, 1, 0}}) +} + +func (s *stream) merge(samples Samples) { + // TODO(beorn7): This tries to merge not only individual samples, but + // whole summaries. The paper doesn't mention merging summaries at + // all. Unittests show that the merging is inaccurate. Find out how to + // do merges properly. + var r float64 + i := 0 + for _, sample := range samples { + for ; i < len(s.l); i++ { + c := s.l[i] + if c.Value > sample.Value { + // Insert at position i. + s.l = append(s.l, Sample{}) + copy(s.l[i+1:], s.l[i:]) + s.l[i] = Sample{ + sample.Value, + sample.Width, + math.Max(sample.Delta, math.Floor(s.ƒ(s, r))-1), + // TODO(beorn7): How to calculate delta correctly? + } + i++ + goto inserted + } + r += c.Width + } + s.l = append(s.l, Sample{sample.Value, sample.Width, 0}) + i++ + inserted: + s.n += sample.Width + r += sample.Width + } + s.compress() +} + +func (s *stream) count() int { + return int(s.n) +} + +func (s *stream) query(q float64) float64 { + t := math.Ceil(q * s.n) + t += math.Ceil(s.ƒ(s, t) / 2) + p := s.l[0] + var r float64 + for _, c := range s.l[1:] { + r += p.Width + if r+c.Width+c.Delta > t { + return p.Value + } + p = c + } + return p.Value +} + +func (s *stream) compress() { + if len(s.l) < 2 { + return + } + x := s.l[len(s.l)-1] + xi := len(s.l) - 1 + r := s.n - 1 - x.Width + + for i := len(s.l) - 2; i >= 0; i-- { + c := s.l[i] + if c.Width+x.Width+x.Delta <= s.ƒ(s, r) { + x.Width += c.Width + s.l[xi] = x + // Remove element at i. + copy(s.l[i:], s.l[i+1:]) + s.l = s.l[:len(s.l)-1] + xi -= 1 + } else { + x = c + xi = i + } + r -= c.Width + } +} + +func (s *stream) samples() Samples { + samples := make(Samples, len(s.l)) + copy(samples, s.l) + return samples +} diff --git a/vendor/github.com/golang/protobuf/LICENSE b/vendor/github.com/golang/protobuf/LICENSE new file mode 100644 index 0000000..0f64693 --- /dev/null +++ b/vendor/github.com/golang/protobuf/LICENSE @@ -0,0 +1,28 @@ +Copyright 2010 The Go Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + diff --git a/vendor/github.com/golang/protobuf/proto/clone.go b/vendor/github.com/golang/protobuf/proto/clone.go new file mode 100644 index 0000000..3cd3249 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/clone.go @@ -0,0 +1,253 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2011 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Protocol buffer deep copy and merge. +// TODO: RawMessage. + +package proto + +import ( + "fmt" + "log" + "reflect" + "strings" +) + +// Clone returns a deep copy of a protocol buffer. +func Clone(src Message) Message { + in := reflect.ValueOf(src) + if in.IsNil() { + return src + } + out := reflect.New(in.Type().Elem()) + dst := out.Interface().(Message) + Merge(dst, src) + return dst +} + +// Merger is the interface representing objects that can merge messages of the same type. +type Merger interface { + // Merge merges src into this message. + // Required and optional fields that are set in src will be set to that value in dst. + // Elements of repeated fields will be appended. + // + // Merge may panic if called with a different argument type than the receiver. + Merge(src Message) +} + +// generatedMerger is the custom merge method that generated protos will have. +// We must add this method since a generate Merge method will conflict with +// many existing protos that have a Merge data field already defined. +type generatedMerger interface { + XXX_Merge(src Message) +} + +// Merge merges src into dst. +// Required and optional fields that are set in src will be set to that value in dst. +// Elements of repeated fields will be appended. +// Merge panics if src and dst are not the same type, or if dst is nil. +func Merge(dst, src Message) { + if m, ok := dst.(Merger); ok { + m.Merge(src) + return + } + + in := reflect.ValueOf(src) + out := reflect.ValueOf(dst) + if out.IsNil() { + panic("proto: nil destination") + } + if in.Type() != out.Type() { + panic(fmt.Sprintf("proto.Merge(%T, %T) type mismatch", dst, src)) + } + if in.IsNil() { + return // Merge from nil src is a noop + } + if m, ok := dst.(generatedMerger); ok { + m.XXX_Merge(src) + return + } + mergeStruct(out.Elem(), in.Elem()) +} + +func mergeStruct(out, in reflect.Value) { + sprop := GetProperties(in.Type()) + for i := 0; i < in.NumField(); i++ { + f := in.Type().Field(i) + if strings.HasPrefix(f.Name, "XXX_") { + continue + } + mergeAny(out.Field(i), in.Field(i), false, sprop.Prop[i]) + } + + if emIn, err := extendable(in.Addr().Interface()); err == nil { + emOut, _ := extendable(out.Addr().Interface()) + mIn, muIn := emIn.extensionsRead() + if mIn != nil { + mOut := emOut.extensionsWrite() + muIn.Lock() + mergeExtension(mOut, mIn) + muIn.Unlock() + } + } + + uf := in.FieldByName("XXX_unrecognized") + if !uf.IsValid() { + return + } + uin := uf.Bytes() + if len(uin) > 0 { + out.FieldByName("XXX_unrecognized").SetBytes(append([]byte(nil), uin...)) + } +} + +// mergeAny performs a merge between two values of the same type. +// viaPtr indicates whether the values were indirected through a pointer (implying proto2). +// prop is set if this is a struct field (it may be nil). +func mergeAny(out, in reflect.Value, viaPtr bool, prop *Properties) { + if in.Type() == protoMessageType { + if !in.IsNil() { + if out.IsNil() { + out.Set(reflect.ValueOf(Clone(in.Interface().(Message)))) + } else { + Merge(out.Interface().(Message), in.Interface().(Message)) + } + } + return + } + switch in.Kind() { + case reflect.Bool, reflect.Float32, reflect.Float64, reflect.Int32, reflect.Int64, + reflect.String, reflect.Uint32, reflect.Uint64: + if !viaPtr && isProto3Zero(in) { + return + } + out.Set(in) + case reflect.Interface: + // Probably a oneof field; copy non-nil values. + if in.IsNil() { + return + } + // Allocate destination if it is not set, or set to a different type. + // Otherwise we will merge as normal. + if out.IsNil() || out.Elem().Type() != in.Elem().Type() { + out.Set(reflect.New(in.Elem().Elem().Type())) // interface -> *T -> T -> new(T) + } + mergeAny(out.Elem(), in.Elem(), false, nil) + case reflect.Map: + if in.Len() == 0 { + return + } + if out.IsNil() { + out.Set(reflect.MakeMap(in.Type())) + } + // For maps with value types of *T or []byte we need to deep copy each value. + elemKind := in.Type().Elem().Kind() + for _, key := range in.MapKeys() { + var val reflect.Value + switch elemKind { + case reflect.Ptr: + val = reflect.New(in.Type().Elem().Elem()) + mergeAny(val, in.MapIndex(key), false, nil) + case reflect.Slice: + val = in.MapIndex(key) + val = reflect.ValueOf(append([]byte{}, val.Bytes()...)) + default: + val = in.MapIndex(key) + } + out.SetMapIndex(key, val) + } + case reflect.Ptr: + if in.IsNil() { + return + } + if out.IsNil() { + out.Set(reflect.New(in.Elem().Type())) + } + mergeAny(out.Elem(), in.Elem(), true, nil) + case reflect.Slice: + if in.IsNil() { + return + } + if in.Type().Elem().Kind() == reflect.Uint8 { + // []byte is a scalar bytes field, not a repeated field. + + // Edge case: if this is in a proto3 message, a zero length + // bytes field is considered the zero value, and should not + // be merged. + if prop != nil && prop.proto3 && in.Len() == 0 { + return + } + + // Make a deep copy. + // Append to []byte{} instead of []byte(nil) so that we never end up + // with a nil result. + out.SetBytes(append([]byte{}, in.Bytes()...)) + return + } + n := in.Len() + if out.IsNil() { + out.Set(reflect.MakeSlice(in.Type(), 0, n)) + } + switch in.Type().Elem().Kind() { + case reflect.Bool, reflect.Float32, reflect.Float64, reflect.Int32, reflect.Int64, + reflect.String, reflect.Uint32, reflect.Uint64: + out.Set(reflect.AppendSlice(out, in)) + default: + for i := 0; i < n; i++ { + x := reflect.Indirect(reflect.New(in.Type().Elem())) + mergeAny(x, in.Index(i), false, nil) + out.Set(reflect.Append(out, x)) + } + } + case reflect.Struct: + mergeStruct(out, in) + default: + // unknown type, so not a protocol buffer + log.Printf("proto: don't know how to copy %v", in) + } +} + +func mergeExtension(out, in map[int32]Extension) { + for extNum, eIn := range in { + eOut := Extension{desc: eIn.desc} + if eIn.value != nil { + v := reflect.New(reflect.TypeOf(eIn.value)).Elem() + mergeAny(v, reflect.ValueOf(eIn.value), false, nil) + eOut.value = v.Interface() + } + if eIn.enc != nil { + eOut.enc = make([]byte, len(eIn.enc)) + copy(eOut.enc, eIn.enc) + } + + out[extNum] = eOut + } +} diff --git a/vendor/github.com/golang/protobuf/proto/decode.go b/vendor/github.com/golang/protobuf/proto/decode.go new file mode 100644 index 0000000..d9aa3c4 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/decode.go @@ -0,0 +1,428 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2010 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +/* + * Routines for decoding protocol buffer data to construct in-memory representations. + */ + +import ( + "errors" + "fmt" + "io" +) + +// errOverflow is returned when an integer is too large to be represented. +var errOverflow = errors.New("proto: integer overflow") + +// ErrInternalBadWireType is returned by generated code when an incorrect +// wire type is encountered. It does not get returned to user code. +var ErrInternalBadWireType = errors.New("proto: internal error: bad wiretype for oneof") + +// DecodeVarint reads a varint-encoded integer from the slice. +// It returns the integer and the number of bytes consumed, or +// zero if there is not enough. +// This is the format for the +// int32, int64, uint32, uint64, bool, and enum +// protocol buffer types. +func DecodeVarint(buf []byte) (x uint64, n int) { + for shift := uint(0); shift < 64; shift += 7 { + if n >= len(buf) { + return 0, 0 + } + b := uint64(buf[n]) + n++ + x |= (b & 0x7F) << shift + if (b & 0x80) == 0 { + return x, n + } + } + + // The number is too large to represent in a 64-bit value. + return 0, 0 +} + +func (p *Buffer) decodeVarintSlow() (x uint64, err error) { + i := p.index + l := len(p.buf) + + for shift := uint(0); shift < 64; shift += 7 { + if i >= l { + err = io.ErrUnexpectedEOF + return + } + b := p.buf[i] + i++ + x |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + p.index = i + return + } + } + + // The number is too large to represent in a 64-bit value. + err = errOverflow + return +} + +// DecodeVarint reads a varint-encoded integer from the Buffer. +// This is the format for the +// int32, int64, uint32, uint64, bool, and enum +// protocol buffer types. +func (p *Buffer) DecodeVarint() (x uint64, err error) { + i := p.index + buf := p.buf + + if i >= len(buf) { + return 0, io.ErrUnexpectedEOF + } else if buf[i] < 0x80 { + p.index++ + return uint64(buf[i]), nil + } else if len(buf)-i < 10 { + return p.decodeVarintSlow() + } + + var b uint64 + // we already checked the first byte + x = uint64(buf[i]) - 0x80 + i++ + + b = uint64(buf[i]) + i++ + x += b << 7 + if b&0x80 == 0 { + goto done + } + x -= 0x80 << 7 + + b = uint64(buf[i]) + i++ + x += b << 14 + if b&0x80 == 0 { + goto done + } + x -= 0x80 << 14 + + b = uint64(buf[i]) + i++ + x += b << 21 + if b&0x80 == 0 { + goto done + } + x -= 0x80 << 21 + + b = uint64(buf[i]) + i++ + x += b << 28 + if b&0x80 == 0 { + goto done + } + x -= 0x80 << 28 + + b = uint64(buf[i]) + i++ + x += b << 35 + if b&0x80 == 0 { + goto done + } + x -= 0x80 << 35 + + b = uint64(buf[i]) + i++ + x += b << 42 + if b&0x80 == 0 { + goto done + } + x -= 0x80 << 42 + + b = uint64(buf[i]) + i++ + x += b << 49 + if b&0x80 == 0 { + goto done + } + x -= 0x80 << 49 + + b = uint64(buf[i]) + i++ + x += b << 56 + if b&0x80 == 0 { + goto done + } + x -= 0x80 << 56 + + b = uint64(buf[i]) + i++ + x += b << 63 + if b&0x80 == 0 { + goto done + } + // x -= 0x80 << 63 // Always zero. + + return 0, errOverflow + +done: + p.index = i + return x, nil +} + +// DecodeFixed64 reads a 64-bit integer from the Buffer. +// This is the format for the +// fixed64, sfixed64, and double protocol buffer types. +func (p *Buffer) DecodeFixed64() (x uint64, err error) { + // x, err already 0 + i := p.index + 8 + if i < 0 || i > len(p.buf) { + err = io.ErrUnexpectedEOF + return + } + p.index = i + + x = uint64(p.buf[i-8]) + x |= uint64(p.buf[i-7]) << 8 + x |= uint64(p.buf[i-6]) << 16 + x |= uint64(p.buf[i-5]) << 24 + x |= uint64(p.buf[i-4]) << 32 + x |= uint64(p.buf[i-3]) << 40 + x |= uint64(p.buf[i-2]) << 48 + x |= uint64(p.buf[i-1]) << 56 + return +} + +// DecodeFixed32 reads a 32-bit integer from the Buffer. +// This is the format for the +// fixed32, sfixed32, and float protocol buffer types. +func (p *Buffer) DecodeFixed32() (x uint64, err error) { + // x, err already 0 + i := p.index + 4 + if i < 0 || i > len(p.buf) { + err = io.ErrUnexpectedEOF + return + } + p.index = i + + x = uint64(p.buf[i-4]) + x |= uint64(p.buf[i-3]) << 8 + x |= uint64(p.buf[i-2]) << 16 + x |= uint64(p.buf[i-1]) << 24 + return +} + +// DecodeZigzag64 reads a zigzag-encoded 64-bit integer +// from the Buffer. +// This is the format used for the sint64 protocol buffer type. +func (p *Buffer) DecodeZigzag64() (x uint64, err error) { + x, err = p.DecodeVarint() + if err != nil { + return + } + x = (x >> 1) ^ uint64((int64(x&1)<<63)>>63) + return +} + +// DecodeZigzag32 reads a zigzag-encoded 32-bit integer +// from the Buffer. +// This is the format used for the sint32 protocol buffer type. +func (p *Buffer) DecodeZigzag32() (x uint64, err error) { + x, err = p.DecodeVarint() + if err != nil { + return + } + x = uint64((uint32(x) >> 1) ^ uint32((int32(x&1)<<31)>>31)) + return +} + +// DecodeRawBytes reads a count-delimited byte buffer from the Buffer. +// This is the format used for the bytes protocol buffer +// type and for embedded messages. +func (p *Buffer) DecodeRawBytes(alloc bool) (buf []byte, err error) { + n, err := p.DecodeVarint() + if err != nil { + return nil, err + } + + nb := int(n) + if nb < 0 { + return nil, fmt.Errorf("proto: bad byte length %d", nb) + } + end := p.index + nb + if end < p.index || end > len(p.buf) { + return nil, io.ErrUnexpectedEOF + } + + if !alloc { + // todo: check if can get more uses of alloc=false + buf = p.buf[p.index:end] + p.index += nb + return + } + + buf = make([]byte, nb) + copy(buf, p.buf[p.index:]) + p.index += nb + return +} + +// DecodeStringBytes reads an encoded string from the Buffer. +// This is the format used for the proto2 string type. +func (p *Buffer) DecodeStringBytes() (s string, err error) { + buf, err := p.DecodeRawBytes(false) + if err != nil { + return + } + return string(buf), nil +} + +// Unmarshaler is the interface representing objects that can +// unmarshal themselves. The argument points to data that may be +// overwritten, so implementations should not keep references to the +// buffer. +// Unmarshal implementations should not clear the receiver. +// Any unmarshaled data should be merged into the receiver. +// Callers of Unmarshal that do not want to retain existing data +// should Reset the receiver before calling Unmarshal. +type Unmarshaler interface { + Unmarshal([]byte) error +} + +// newUnmarshaler is the interface representing objects that can +// unmarshal themselves. The semantics are identical to Unmarshaler. +// +// This exists to support protoc-gen-go generated messages. +// The proto package will stop type-asserting to this interface in the future. +// +// DO NOT DEPEND ON THIS. +type newUnmarshaler interface { + XXX_Unmarshal([]byte) error +} + +// Unmarshal parses the protocol buffer representation in buf and places the +// decoded result in pb. If the struct underlying pb does not match +// the data in buf, the results can be unpredictable. +// +// Unmarshal resets pb before starting to unmarshal, so any +// existing data in pb is always removed. Use UnmarshalMerge +// to preserve and append to existing data. +func Unmarshal(buf []byte, pb Message) error { + pb.Reset() + if u, ok := pb.(newUnmarshaler); ok { + return u.XXX_Unmarshal(buf) + } + if u, ok := pb.(Unmarshaler); ok { + return u.Unmarshal(buf) + } + return NewBuffer(buf).Unmarshal(pb) +} + +// UnmarshalMerge parses the protocol buffer representation in buf and +// writes the decoded result to pb. If the struct underlying pb does not match +// the data in buf, the results can be unpredictable. +// +// UnmarshalMerge merges into existing data in pb. +// Most code should use Unmarshal instead. +func UnmarshalMerge(buf []byte, pb Message) error { + if u, ok := pb.(newUnmarshaler); ok { + return u.XXX_Unmarshal(buf) + } + if u, ok := pb.(Unmarshaler); ok { + // NOTE: The history of proto have unfortunately been inconsistent + // whether Unmarshaler should or should not implicitly clear itself. + // Some implementations do, most do not. + // Thus, calling this here may or may not do what people want. + // + // See https://github.com/golang/protobuf/issues/424 + return u.Unmarshal(buf) + } + return NewBuffer(buf).Unmarshal(pb) +} + +// DecodeMessage reads a count-delimited message from the Buffer. +func (p *Buffer) DecodeMessage(pb Message) error { + enc, err := p.DecodeRawBytes(false) + if err != nil { + return err + } + return NewBuffer(enc).Unmarshal(pb) +} + +// DecodeGroup reads a tag-delimited group from the Buffer. +// StartGroup tag is already consumed. This function consumes +// EndGroup tag. +func (p *Buffer) DecodeGroup(pb Message) error { + b := p.buf[p.index:] + x, y := findEndGroup(b) + if x < 0 { + return io.ErrUnexpectedEOF + } + err := Unmarshal(b[:x], pb) + p.index += y + return err +} + +// Unmarshal parses the protocol buffer representation in the +// Buffer and places the decoded result in pb. If the struct +// underlying pb does not match the data in the buffer, the results can be +// unpredictable. +// +// Unlike proto.Unmarshal, this does not reset pb before starting to unmarshal. +func (p *Buffer) Unmarshal(pb Message) error { + // If the object can unmarshal itself, let it. + if u, ok := pb.(newUnmarshaler); ok { + err := u.XXX_Unmarshal(p.buf[p.index:]) + p.index = len(p.buf) + return err + } + if u, ok := pb.(Unmarshaler); ok { + // NOTE: The history of proto have unfortunately been inconsistent + // whether Unmarshaler should or should not implicitly clear itself. + // Some implementations do, most do not. + // Thus, calling this here may or may not do what people want. + // + // See https://github.com/golang/protobuf/issues/424 + err := u.Unmarshal(p.buf[p.index:]) + p.index = len(p.buf) + return err + } + + // Slow workaround for messages that aren't Unmarshalers. + // This includes some hand-coded .pb.go files and + // bootstrap protos. + // TODO: fix all of those and then add Unmarshal to + // the Message interface. Then: + // The cast above and code below can be deleted. + // The old unmarshaler can be deleted. + // Clients can call Unmarshal directly (can already do that, actually). + var info InternalMessageInfo + err := info.Unmarshal(pb, p.buf[p.index:]) + p.index = len(p.buf) + return err +} diff --git a/vendor/github.com/golang/protobuf/proto/discard.go b/vendor/github.com/golang/protobuf/proto/discard.go new file mode 100644 index 0000000..dea2617 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/discard.go @@ -0,0 +1,350 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2017 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +import ( + "fmt" + "reflect" + "strings" + "sync" + "sync/atomic" +) + +type generatedDiscarder interface { + XXX_DiscardUnknown() +} + +// DiscardUnknown recursively discards all unknown fields from this message +// and all embedded messages. +// +// When unmarshaling a message with unrecognized fields, the tags and values +// of such fields are preserved in the Message. This allows a later call to +// marshal to be able to produce a message that continues to have those +// unrecognized fields. To avoid this, DiscardUnknown is used to +// explicitly clear the unknown fields after unmarshaling. +// +// For proto2 messages, the unknown fields of message extensions are only +// discarded from messages that have been accessed via GetExtension. +func DiscardUnknown(m Message) { + if m, ok := m.(generatedDiscarder); ok { + m.XXX_DiscardUnknown() + return + } + // TODO: Dynamically populate a InternalMessageInfo for legacy messages, + // but the master branch has no implementation for InternalMessageInfo, + // so it would be more work to replicate that approach. + discardLegacy(m) +} + +// DiscardUnknown recursively discards all unknown fields. +func (a *InternalMessageInfo) DiscardUnknown(m Message) { + di := atomicLoadDiscardInfo(&a.discard) + if di == nil { + di = getDiscardInfo(reflect.TypeOf(m).Elem()) + atomicStoreDiscardInfo(&a.discard, di) + } + di.discard(toPointer(&m)) +} + +type discardInfo struct { + typ reflect.Type + + initialized int32 // 0: only typ is valid, 1: everything is valid + lock sync.Mutex + + fields []discardFieldInfo + unrecognized field +} + +type discardFieldInfo struct { + field field // Offset of field, guaranteed to be valid + discard func(src pointer) +} + +var ( + discardInfoMap = map[reflect.Type]*discardInfo{} + discardInfoLock sync.Mutex +) + +func getDiscardInfo(t reflect.Type) *discardInfo { + discardInfoLock.Lock() + defer discardInfoLock.Unlock() + di := discardInfoMap[t] + if di == nil { + di = &discardInfo{typ: t} + discardInfoMap[t] = di + } + return di +} + +func (di *discardInfo) discard(src pointer) { + if src.isNil() { + return // Nothing to do. + } + + if atomic.LoadInt32(&di.initialized) == 0 { + di.computeDiscardInfo() + } + + for _, fi := range di.fields { + sfp := src.offset(fi.field) + fi.discard(sfp) + } + + // For proto2 messages, only discard unknown fields in message extensions + // that have been accessed via GetExtension. + if em, err := extendable(src.asPointerTo(di.typ).Interface()); err == nil { + // Ignore lock since DiscardUnknown is not concurrency safe. + emm, _ := em.extensionsRead() + for _, mx := range emm { + if m, ok := mx.value.(Message); ok { + DiscardUnknown(m) + } + } + } + + if di.unrecognized.IsValid() { + *src.offset(di.unrecognized).toBytes() = nil + } +} + +func (di *discardInfo) computeDiscardInfo() { + di.lock.Lock() + defer di.lock.Unlock() + if di.initialized != 0 { + return + } + t := di.typ + n := t.NumField() + + for i := 0; i < n; i++ { + f := t.Field(i) + if strings.HasPrefix(f.Name, "XXX_") { + continue + } + + dfi := discardFieldInfo{field: toField(&f)} + tf := f.Type + + // Unwrap tf to get its most basic type. + var isPointer, isSlice bool + if tf.Kind() == reflect.Slice && tf.Elem().Kind() != reflect.Uint8 { + isSlice = true + tf = tf.Elem() + } + if tf.Kind() == reflect.Ptr { + isPointer = true + tf = tf.Elem() + } + if isPointer && isSlice && tf.Kind() != reflect.Struct { + panic(fmt.Sprintf("%v.%s cannot be a slice of pointers to primitive types", t, f.Name)) + } + + switch tf.Kind() { + case reflect.Struct: + switch { + case !isPointer: + panic(fmt.Sprintf("%v.%s cannot be a direct struct value", t, f.Name)) + case isSlice: // E.g., []*pb.T + di := getDiscardInfo(tf) + dfi.discard = func(src pointer) { + sps := src.getPointerSlice() + for _, sp := range sps { + if !sp.isNil() { + di.discard(sp) + } + } + } + default: // E.g., *pb.T + di := getDiscardInfo(tf) + dfi.discard = func(src pointer) { + sp := src.getPointer() + if !sp.isNil() { + di.discard(sp) + } + } + } + case reflect.Map: + switch { + case isPointer || isSlice: + panic(fmt.Sprintf("%v.%s cannot be a pointer to a map or a slice of map values", t, f.Name)) + default: // E.g., map[K]V + if tf.Elem().Kind() == reflect.Ptr { // Proto struct (e.g., *T) + dfi.discard = func(src pointer) { + sm := src.asPointerTo(tf).Elem() + if sm.Len() == 0 { + return + } + for _, key := range sm.MapKeys() { + val := sm.MapIndex(key) + DiscardUnknown(val.Interface().(Message)) + } + } + } else { + dfi.discard = func(pointer) {} // Noop + } + } + case reflect.Interface: + // Must be oneof field. + switch { + case isPointer || isSlice: + panic(fmt.Sprintf("%v.%s cannot be a pointer to a interface or a slice of interface values", t, f.Name)) + default: // E.g., interface{} + // TODO: Make this faster? + dfi.discard = func(src pointer) { + su := src.asPointerTo(tf).Elem() + if !su.IsNil() { + sv := su.Elem().Elem().Field(0) + if sv.Kind() == reflect.Ptr && sv.IsNil() { + return + } + switch sv.Type().Kind() { + case reflect.Ptr: // Proto struct (e.g., *T) + DiscardUnknown(sv.Interface().(Message)) + } + } + } + } + default: + continue + } + di.fields = append(di.fields, dfi) + } + + di.unrecognized = invalidField + if f, ok := t.FieldByName("XXX_unrecognized"); ok { + if f.Type != reflect.TypeOf([]byte{}) { + panic("expected XXX_unrecognized to be of type []byte") + } + di.unrecognized = toField(&f) + } + + atomic.StoreInt32(&di.initialized, 1) +} + +func discardLegacy(m Message) { + v := reflect.ValueOf(m) + if v.Kind() != reflect.Ptr || v.IsNil() { + return + } + v = v.Elem() + if v.Kind() != reflect.Struct { + return + } + t := v.Type() + + for i := 0; i < v.NumField(); i++ { + f := t.Field(i) + if strings.HasPrefix(f.Name, "XXX_") { + continue + } + vf := v.Field(i) + tf := f.Type + + // Unwrap tf to get its most basic type. + var isPointer, isSlice bool + if tf.Kind() == reflect.Slice && tf.Elem().Kind() != reflect.Uint8 { + isSlice = true + tf = tf.Elem() + } + if tf.Kind() == reflect.Ptr { + isPointer = true + tf = tf.Elem() + } + if isPointer && isSlice && tf.Kind() != reflect.Struct { + panic(fmt.Sprintf("%T.%s cannot be a slice of pointers to primitive types", m, f.Name)) + } + + switch tf.Kind() { + case reflect.Struct: + switch { + case !isPointer: + panic(fmt.Sprintf("%T.%s cannot be a direct struct value", m, f.Name)) + case isSlice: // E.g., []*pb.T + for j := 0; j < vf.Len(); j++ { + discardLegacy(vf.Index(j).Interface().(Message)) + } + default: // E.g., *pb.T + discardLegacy(vf.Interface().(Message)) + } + case reflect.Map: + switch { + case isPointer || isSlice: + panic(fmt.Sprintf("%T.%s cannot be a pointer to a map or a slice of map values", m, f.Name)) + default: // E.g., map[K]V + tv := vf.Type().Elem() + if tv.Kind() == reflect.Ptr && tv.Implements(protoMessageType) { // Proto struct (e.g., *T) + for _, key := range vf.MapKeys() { + val := vf.MapIndex(key) + discardLegacy(val.Interface().(Message)) + } + } + } + case reflect.Interface: + // Must be oneof field. + switch { + case isPointer || isSlice: + panic(fmt.Sprintf("%T.%s cannot be a pointer to a interface or a slice of interface values", m, f.Name)) + default: // E.g., test_proto.isCommunique_Union interface + if !vf.IsNil() && f.Tag.Get("protobuf_oneof") != "" { + vf = vf.Elem() // E.g., *test_proto.Communique_Msg + if !vf.IsNil() { + vf = vf.Elem() // E.g., test_proto.Communique_Msg + vf = vf.Field(0) // E.g., Proto struct (e.g., *T) or primitive value + if vf.Kind() == reflect.Ptr { + discardLegacy(vf.Interface().(Message)) + } + } + } + } + } + } + + if vf := v.FieldByName("XXX_unrecognized"); vf.IsValid() { + if vf.Type() != reflect.TypeOf([]byte{}) { + panic("expected XXX_unrecognized to be of type []byte") + } + vf.Set(reflect.ValueOf([]byte(nil))) + } + + // For proto2 messages, only discard unknown fields in message extensions + // that have been accessed via GetExtension. + if em, err := extendable(m); err == nil { + // Ignore lock since discardLegacy is not concurrency safe. + emm, _ := em.extensionsRead() + for _, mx := range emm { + if m, ok := mx.value.(Message); ok { + discardLegacy(m) + } + } + } +} diff --git a/vendor/github.com/golang/protobuf/proto/encode.go b/vendor/github.com/golang/protobuf/proto/encode.go new file mode 100644 index 0000000..4c35d33 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/encode.go @@ -0,0 +1,218 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2010 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +/* + * Routines for encoding data into the wire format for protocol buffers. + */ + +import ( + "errors" + "fmt" + "reflect" +) + +// RequiredNotSetError is an error type returned by either Marshal or Unmarshal. +// Marshal reports this when a required field is not initialized. +// Unmarshal reports this when a required field is missing from the wire data. +type RequiredNotSetError struct { + field string +} + +func (e *RequiredNotSetError) Error() string { + if e.field == "" { + return fmt.Sprintf("proto: required field not set") + } + return fmt.Sprintf("proto: required field %q not set", e.field) +} + +var ( + // errRepeatedHasNil is the error returned if Marshal is called with + // a struct with a repeated field containing a nil element. + errRepeatedHasNil = errors.New("proto: repeated field has nil element") + + // errOneofHasNil is the error returned if Marshal is called with + // a struct with a oneof field containing a nil element. + errOneofHasNil = errors.New("proto: oneof field has nil value") + + // ErrNil is the error returned if Marshal is called with nil. + ErrNil = errors.New("proto: Marshal called with nil") + + // ErrTooLarge is the error returned if Marshal is called with a + // message that encodes to >2GB. + ErrTooLarge = errors.New("proto: message encodes to over 2 GB") +) + +// The fundamental encoders that put bytes on the wire. +// Those that take integer types all accept uint64 and are +// therefore of type valueEncoder. + +const maxVarintBytes = 10 // maximum length of a varint + +// EncodeVarint returns the varint encoding of x. +// This is the format for the +// int32, int64, uint32, uint64, bool, and enum +// protocol buffer types. +// Not used by the package itself, but helpful to clients +// wishing to use the same encoding. +func EncodeVarint(x uint64) []byte { + var buf [maxVarintBytes]byte + var n int + for n = 0; x > 127; n++ { + buf[n] = 0x80 | uint8(x&0x7F) + x >>= 7 + } + buf[n] = uint8(x) + n++ + return buf[0:n] +} + +// EncodeVarint writes a varint-encoded integer to the Buffer. +// This is the format for the +// int32, int64, uint32, uint64, bool, and enum +// protocol buffer types. +func (p *Buffer) EncodeVarint(x uint64) error { + for x >= 1<<7 { + p.buf = append(p.buf, uint8(x&0x7f|0x80)) + x >>= 7 + } + p.buf = append(p.buf, uint8(x)) + return nil +} + +// SizeVarint returns the varint encoding size of an integer. +func SizeVarint(x uint64) int { + switch { + case x < 1<<7: + return 1 + case x < 1<<14: + return 2 + case x < 1<<21: + return 3 + case x < 1<<28: + return 4 + case x < 1<<35: + return 5 + case x < 1<<42: + return 6 + case x < 1<<49: + return 7 + case x < 1<<56: + return 8 + case x < 1<<63: + return 9 + } + return 10 +} + +// EncodeFixed64 writes a 64-bit integer to the Buffer. +// This is the format for the +// fixed64, sfixed64, and double protocol buffer types. +func (p *Buffer) EncodeFixed64(x uint64) error { + p.buf = append(p.buf, + uint8(x), + uint8(x>>8), + uint8(x>>16), + uint8(x>>24), + uint8(x>>32), + uint8(x>>40), + uint8(x>>48), + uint8(x>>56)) + return nil +} + +// EncodeFixed32 writes a 32-bit integer to the Buffer. +// This is the format for the +// fixed32, sfixed32, and float protocol buffer types. +func (p *Buffer) EncodeFixed32(x uint64) error { + p.buf = append(p.buf, + uint8(x), + uint8(x>>8), + uint8(x>>16), + uint8(x>>24)) + return nil +} + +// EncodeZigzag64 writes a zigzag-encoded 64-bit integer +// to the Buffer. +// This is the format used for the sint64 protocol buffer type. +func (p *Buffer) EncodeZigzag64(x uint64) error { + // use signed number to get arithmetic right shift. + return p.EncodeVarint(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} + +// EncodeZigzag32 writes a zigzag-encoded 32-bit integer +// to the Buffer. +// This is the format used for the sint32 protocol buffer type. +func (p *Buffer) EncodeZigzag32(x uint64) error { + // use signed number to get arithmetic right shift. + return p.EncodeVarint(uint64((uint32(x) << 1) ^ uint32((int32(x) >> 31)))) +} + +// EncodeRawBytes writes a count-delimited byte buffer to the Buffer. +// This is the format used for the bytes protocol buffer +// type and for embedded messages. +func (p *Buffer) EncodeRawBytes(b []byte) error { + p.EncodeVarint(uint64(len(b))) + p.buf = append(p.buf, b...) + return nil +} + +// EncodeStringBytes writes an encoded string to the Buffer. +// This is the format used for the proto2 string type. +func (p *Buffer) EncodeStringBytes(s string) error { + p.EncodeVarint(uint64(len(s))) + p.buf = append(p.buf, s...) + return nil +} + +// Marshaler is the interface representing objects that can marshal themselves. +type Marshaler interface { + Marshal() ([]byte, error) +} + +// EncodeMessage writes the protocol buffer to the Buffer, +// prefixed by a varint-encoded length. +func (p *Buffer) EncodeMessage(pb Message) error { + siz := Size(pb) + p.EncodeVarint(uint64(siz)) + return p.Marshal(pb) +} + +// All protocol buffer fields are nillable, but be careful. +func isNil(v reflect.Value) bool { + switch v.Kind() { + case reflect.Interface, reflect.Map, reflect.Ptr, reflect.Slice: + return v.IsNil() + } + return false +} diff --git a/vendor/github.com/golang/protobuf/proto/equal.go b/vendor/github.com/golang/protobuf/proto/equal.go new file mode 100644 index 0000000..d4db5a1 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/equal.go @@ -0,0 +1,300 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2011 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Protocol buffer comparison. + +package proto + +import ( + "bytes" + "log" + "reflect" + "strings" +) + +/* +Equal returns true iff protocol buffers a and b are equal. +The arguments must both be pointers to protocol buffer structs. + +Equality is defined in this way: + - Two messages are equal iff they are the same type, + corresponding fields are equal, unknown field sets + are equal, and extensions sets are equal. + - Two set scalar fields are equal iff their values are equal. + If the fields are of a floating-point type, remember that + NaN != x for all x, including NaN. If the message is defined + in a proto3 .proto file, fields are not "set"; specifically, + zero length proto3 "bytes" fields are equal (nil == {}). + - Two repeated fields are equal iff their lengths are the same, + and their corresponding elements are equal. Note a "bytes" field, + although represented by []byte, is not a repeated field and the + rule for the scalar fields described above applies. + - Two unset fields are equal. + - Two unknown field sets are equal if their current + encoded state is equal. + - Two extension sets are equal iff they have corresponding + elements that are pairwise equal. + - Two map fields are equal iff their lengths are the same, + and they contain the same set of elements. Zero-length map + fields are equal. + - Every other combination of things are not equal. + +The return value is undefined if a and b are not protocol buffers. +*/ +func Equal(a, b Message) bool { + if a == nil || b == nil { + return a == b + } + v1, v2 := reflect.ValueOf(a), reflect.ValueOf(b) + if v1.Type() != v2.Type() { + return false + } + if v1.Kind() == reflect.Ptr { + if v1.IsNil() { + return v2.IsNil() + } + if v2.IsNil() { + return false + } + v1, v2 = v1.Elem(), v2.Elem() + } + if v1.Kind() != reflect.Struct { + return false + } + return equalStruct(v1, v2) +} + +// v1 and v2 are known to have the same type. +func equalStruct(v1, v2 reflect.Value) bool { + sprop := GetProperties(v1.Type()) + for i := 0; i < v1.NumField(); i++ { + f := v1.Type().Field(i) + if strings.HasPrefix(f.Name, "XXX_") { + continue + } + f1, f2 := v1.Field(i), v2.Field(i) + if f.Type.Kind() == reflect.Ptr { + if n1, n2 := f1.IsNil(), f2.IsNil(); n1 && n2 { + // both unset + continue + } else if n1 != n2 { + // set/unset mismatch + return false + } + f1, f2 = f1.Elem(), f2.Elem() + } + if !equalAny(f1, f2, sprop.Prop[i]) { + return false + } + } + + if em1 := v1.FieldByName("XXX_InternalExtensions"); em1.IsValid() { + em2 := v2.FieldByName("XXX_InternalExtensions") + if !equalExtensions(v1.Type(), em1.Interface().(XXX_InternalExtensions), em2.Interface().(XXX_InternalExtensions)) { + return false + } + } + + if em1 := v1.FieldByName("XXX_extensions"); em1.IsValid() { + em2 := v2.FieldByName("XXX_extensions") + if !equalExtMap(v1.Type(), em1.Interface().(map[int32]Extension), em2.Interface().(map[int32]Extension)) { + return false + } + } + + uf := v1.FieldByName("XXX_unrecognized") + if !uf.IsValid() { + return true + } + + u1 := uf.Bytes() + u2 := v2.FieldByName("XXX_unrecognized").Bytes() + return bytes.Equal(u1, u2) +} + +// v1 and v2 are known to have the same type. +// prop may be nil. +func equalAny(v1, v2 reflect.Value, prop *Properties) bool { + if v1.Type() == protoMessageType { + m1, _ := v1.Interface().(Message) + m2, _ := v2.Interface().(Message) + return Equal(m1, m2) + } + switch v1.Kind() { + case reflect.Bool: + return v1.Bool() == v2.Bool() + case reflect.Float32, reflect.Float64: + return v1.Float() == v2.Float() + case reflect.Int32, reflect.Int64: + return v1.Int() == v2.Int() + case reflect.Interface: + // Probably a oneof field; compare the inner values. + n1, n2 := v1.IsNil(), v2.IsNil() + if n1 || n2 { + return n1 == n2 + } + e1, e2 := v1.Elem(), v2.Elem() + if e1.Type() != e2.Type() { + return false + } + return equalAny(e1, e2, nil) + case reflect.Map: + if v1.Len() != v2.Len() { + return false + } + for _, key := range v1.MapKeys() { + val2 := v2.MapIndex(key) + if !val2.IsValid() { + // This key was not found in the second map. + return false + } + if !equalAny(v1.MapIndex(key), val2, nil) { + return false + } + } + return true + case reflect.Ptr: + // Maps may have nil values in them, so check for nil. + if v1.IsNil() && v2.IsNil() { + return true + } + if v1.IsNil() != v2.IsNil() { + return false + } + return equalAny(v1.Elem(), v2.Elem(), prop) + case reflect.Slice: + if v1.Type().Elem().Kind() == reflect.Uint8 { + // short circuit: []byte + + // Edge case: if this is in a proto3 message, a zero length + // bytes field is considered the zero value. + if prop != nil && prop.proto3 && v1.Len() == 0 && v2.Len() == 0 { + return true + } + if v1.IsNil() != v2.IsNil() { + return false + } + return bytes.Equal(v1.Interface().([]byte), v2.Interface().([]byte)) + } + + if v1.Len() != v2.Len() { + return false + } + for i := 0; i < v1.Len(); i++ { + if !equalAny(v1.Index(i), v2.Index(i), prop) { + return false + } + } + return true + case reflect.String: + return v1.Interface().(string) == v2.Interface().(string) + case reflect.Struct: + return equalStruct(v1, v2) + case reflect.Uint32, reflect.Uint64: + return v1.Uint() == v2.Uint() + } + + // unknown type, so not a protocol buffer + log.Printf("proto: don't know how to compare %v", v1) + return false +} + +// base is the struct type that the extensions are based on. +// x1 and x2 are InternalExtensions. +func equalExtensions(base reflect.Type, x1, x2 XXX_InternalExtensions) bool { + em1, _ := x1.extensionsRead() + em2, _ := x2.extensionsRead() + return equalExtMap(base, em1, em2) +} + +func equalExtMap(base reflect.Type, em1, em2 map[int32]Extension) bool { + if len(em1) != len(em2) { + return false + } + + for extNum, e1 := range em1 { + e2, ok := em2[extNum] + if !ok { + return false + } + + m1, m2 := e1.value, e2.value + + if m1 == nil && m2 == nil { + // Both have only encoded form. + if bytes.Equal(e1.enc, e2.enc) { + continue + } + // The bytes are different, but the extensions might still be + // equal. We need to decode them to compare. + } + + if m1 != nil && m2 != nil { + // Both are unencoded. + if !equalAny(reflect.ValueOf(m1), reflect.ValueOf(m2), nil) { + return false + } + continue + } + + // At least one is encoded. To do a semantically correct comparison + // we need to unmarshal them first. + var desc *ExtensionDesc + if m := extensionMaps[base]; m != nil { + desc = m[extNum] + } + if desc == nil { + // If both have only encoded form and the bytes are the same, + // it is handled above. We get here when the bytes are different. + // We don't know how to decode it, so just compare them as byte + // slices. + log.Printf("proto: don't know how to compare extension %d of %v", extNum, base) + return false + } + var err error + if m1 == nil { + m1, err = decodeExtension(e1.enc, desc) + } + if m2 == nil && err == nil { + m2, err = decodeExtension(e2.enc, desc) + } + if err != nil { + // The encoded form is invalid. + log.Printf("proto: badly encoded extension %d of %v: %v", extNum, base, err) + return false + } + if !equalAny(reflect.ValueOf(m1), reflect.ValueOf(m2), nil) { + return false + } + } + + return true +} diff --git a/vendor/github.com/golang/protobuf/proto/extensions.go b/vendor/github.com/golang/protobuf/proto/extensions.go new file mode 100644 index 0000000..816a3b9 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/extensions.go @@ -0,0 +1,543 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2010 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +/* + * Types and routines for supporting protocol buffer extensions. + */ + +import ( + "errors" + "fmt" + "io" + "reflect" + "strconv" + "sync" +) + +// ErrMissingExtension is the error returned by GetExtension if the named extension is not in the message. +var ErrMissingExtension = errors.New("proto: missing extension") + +// ExtensionRange represents a range of message extensions for a protocol buffer. +// Used in code generated by the protocol compiler. +type ExtensionRange struct { + Start, End int32 // both inclusive +} + +// extendableProto is an interface implemented by any protocol buffer generated by the current +// proto compiler that may be extended. +type extendableProto interface { + Message + ExtensionRangeArray() []ExtensionRange + extensionsWrite() map[int32]Extension + extensionsRead() (map[int32]Extension, sync.Locker) +} + +// extendableProtoV1 is an interface implemented by a protocol buffer generated by the previous +// version of the proto compiler that may be extended. +type extendableProtoV1 interface { + Message + ExtensionRangeArray() []ExtensionRange + ExtensionMap() map[int32]Extension +} + +// extensionAdapter is a wrapper around extendableProtoV1 that implements extendableProto. +type extensionAdapter struct { + extendableProtoV1 +} + +func (e extensionAdapter) extensionsWrite() map[int32]Extension { + return e.ExtensionMap() +} + +func (e extensionAdapter) extensionsRead() (map[int32]Extension, sync.Locker) { + return e.ExtensionMap(), notLocker{} +} + +// notLocker is a sync.Locker whose Lock and Unlock methods are nops. +type notLocker struct{} + +func (n notLocker) Lock() {} +func (n notLocker) Unlock() {} + +// extendable returns the extendableProto interface for the given generated proto message. +// If the proto message has the old extension format, it returns a wrapper that implements +// the extendableProto interface. +func extendable(p interface{}) (extendableProto, error) { + switch p := p.(type) { + case extendableProto: + if isNilPtr(p) { + return nil, fmt.Errorf("proto: nil %T is not extendable", p) + } + return p, nil + case extendableProtoV1: + if isNilPtr(p) { + return nil, fmt.Errorf("proto: nil %T is not extendable", p) + } + return extensionAdapter{p}, nil + } + // Don't allocate a specific error containing %T: + // this is the hot path for Clone and MarshalText. + return nil, errNotExtendable +} + +var errNotExtendable = errors.New("proto: not an extendable proto.Message") + +func isNilPtr(x interface{}) bool { + v := reflect.ValueOf(x) + return v.Kind() == reflect.Ptr && v.IsNil() +} + +// XXX_InternalExtensions is an internal representation of proto extensions. +// +// Each generated message struct type embeds an anonymous XXX_InternalExtensions field, +// thus gaining the unexported 'extensions' method, which can be called only from the proto package. +// +// The methods of XXX_InternalExtensions are not concurrency safe in general, +// but calls to logically read-only methods such as has and get may be executed concurrently. +type XXX_InternalExtensions struct { + // The struct must be indirect so that if a user inadvertently copies a + // generated message and its embedded XXX_InternalExtensions, they + // avoid the mayhem of a copied mutex. + // + // The mutex serializes all logically read-only operations to p.extensionMap. + // It is up to the client to ensure that write operations to p.extensionMap are + // mutually exclusive with other accesses. + p *struct { + mu sync.Mutex + extensionMap map[int32]Extension + } +} + +// extensionsWrite returns the extension map, creating it on first use. +func (e *XXX_InternalExtensions) extensionsWrite() map[int32]Extension { + if e.p == nil { + e.p = new(struct { + mu sync.Mutex + extensionMap map[int32]Extension + }) + e.p.extensionMap = make(map[int32]Extension) + } + return e.p.extensionMap +} + +// extensionsRead returns the extensions map for read-only use. It may be nil. +// The caller must hold the returned mutex's lock when accessing Elements within the map. +func (e *XXX_InternalExtensions) extensionsRead() (map[int32]Extension, sync.Locker) { + if e.p == nil { + return nil, nil + } + return e.p.extensionMap, &e.p.mu +} + +// ExtensionDesc represents an extension specification. +// Used in generated code from the protocol compiler. +type ExtensionDesc struct { + ExtendedType Message // nil pointer to the type that is being extended + ExtensionType interface{} // nil pointer to the extension type + Field int32 // field number + Name string // fully-qualified name of extension, for text formatting + Tag string // protobuf tag style + Filename string // name of the file in which the extension is defined +} + +func (ed *ExtensionDesc) repeated() bool { + t := reflect.TypeOf(ed.ExtensionType) + return t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8 +} + +// Extension represents an extension in a message. +type Extension struct { + // When an extension is stored in a message using SetExtension + // only desc and value are set. When the message is marshaled + // enc will be set to the encoded form of the message. + // + // When a message is unmarshaled and contains extensions, each + // extension will have only enc set. When such an extension is + // accessed using GetExtension (or GetExtensions) desc and value + // will be set. + desc *ExtensionDesc + value interface{} + enc []byte +} + +// SetRawExtension is for testing only. +func SetRawExtension(base Message, id int32, b []byte) { + epb, err := extendable(base) + if err != nil { + return + } + extmap := epb.extensionsWrite() + extmap[id] = Extension{enc: b} +} + +// isExtensionField returns true iff the given field number is in an extension range. +func isExtensionField(pb extendableProto, field int32) bool { + for _, er := range pb.ExtensionRangeArray() { + if er.Start <= field && field <= er.End { + return true + } + } + return false +} + +// checkExtensionTypes checks that the given extension is valid for pb. +func checkExtensionTypes(pb extendableProto, extension *ExtensionDesc) error { + var pbi interface{} = pb + // Check the extended type. + if ea, ok := pbi.(extensionAdapter); ok { + pbi = ea.extendableProtoV1 + } + if a, b := reflect.TypeOf(pbi), reflect.TypeOf(extension.ExtendedType); a != b { + return fmt.Errorf("proto: bad extended type; %v does not extend %v", b, a) + } + // Check the range. + if !isExtensionField(pb, extension.Field) { + return errors.New("proto: bad extension number; not in declared ranges") + } + return nil +} + +// extPropKey is sufficient to uniquely identify an extension. +type extPropKey struct { + base reflect.Type + field int32 +} + +var extProp = struct { + sync.RWMutex + m map[extPropKey]*Properties +}{ + m: make(map[extPropKey]*Properties), +} + +func extensionProperties(ed *ExtensionDesc) *Properties { + key := extPropKey{base: reflect.TypeOf(ed.ExtendedType), field: ed.Field} + + extProp.RLock() + if prop, ok := extProp.m[key]; ok { + extProp.RUnlock() + return prop + } + extProp.RUnlock() + + extProp.Lock() + defer extProp.Unlock() + // Check again. + if prop, ok := extProp.m[key]; ok { + return prop + } + + prop := new(Properties) + prop.Init(reflect.TypeOf(ed.ExtensionType), "unknown_name", ed.Tag, nil) + extProp.m[key] = prop + return prop +} + +// HasExtension returns whether the given extension is present in pb. +func HasExtension(pb Message, extension *ExtensionDesc) bool { + // TODO: Check types, field numbers, etc.? + epb, err := extendable(pb) + if err != nil { + return false + } + extmap, mu := epb.extensionsRead() + if extmap == nil { + return false + } + mu.Lock() + _, ok := extmap[extension.Field] + mu.Unlock() + return ok +} + +// ClearExtension removes the given extension from pb. +func ClearExtension(pb Message, extension *ExtensionDesc) { + epb, err := extendable(pb) + if err != nil { + return + } + // TODO: Check types, field numbers, etc.? + extmap := epb.extensionsWrite() + delete(extmap, extension.Field) +} + +// GetExtension retrieves a proto2 extended field from pb. +// +// If the descriptor is type complete (i.e., ExtensionDesc.ExtensionType is non-nil), +// then GetExtension parses the encoded field and returns a Go value of the specified type. +// If the field is not present, then the default value is returned (if one is specified), +// otherwise ErrMissingExtension is reported. +// +// If the descriptor is not type complete (i.e., ExtensionDesc.ExtensionType is nil), +// then GetExtension returns the raw encoded bytes of the field extension. +func GetExtension(pb Message, extension *ExtensionDesc) (interface{}, error) { + epb, err := extendable(pb) + if err != nil { + return nil, err + } + + if extension.ExtendedType != nil { + // can only check type if this is a complete descriptor + if err := checkExtensionTypes(epb, extension); err != nil { + return nil, err + } + } + + emap, mu := epb.extensionsRead() + if emap == nil { + return defaultExtensionValue(extension) + } + mu.Lock() + defer mu.Unlock() + e, ok := emap[extension.Field] + if !ok { + // defaultExtensionValue returns the default value or + // ErrMissingExtension if there is no default. + return defaultExtensionValue(extension) + } + + if e.value != nil { + // Already decoded. Check the descriptor, though. + if e.desc != extension { + // This shouldn't happen. If it does, it means that + // GetExtension was called twice with two different + // descriptors with the same field number. + return nil, errors.New("proto: descriptor conflict") + } + return e.value, nil + } + + if extension.ExtensionType == nil { + // incomplete descriptor + return e.enc, nil + } + + v, err := decodeExtension(e.enc, extension) + if err != nil { + return nil, err + } + + // Remember the decoded version and drop the encoded version. + // That way it is safe to mutate what we return. + e.value = v + e.desc = extension + e.enc = nil + emap[extension.Field] = e + return e.value, nil +} + +// defaultExtensionValue returns the default value for extension. +// If no default for an extension is defined ErrMissingExtension is returned. +func defaultExtensionValue(extension *ExtensionDesc) (interface{}, error) { + if extension.ExtensionType == nil { + // incomplete descriptor, so no default + return nil, ErrMissingExtension + } + + t := reflect.TypeOf(extension.ExtensionType) + props := extensionProperties(extension) + + sf, _, err := fieldDefault(t, props) + if err != nil { + return nil, err + } + + if sf == nil || sf.value == nil { + // There is no default value. + return nil, ErrMissingExtension + } + + if t.Kind() != reflect.Ptr { + // We do not need to return a Ptr, we can directly return sf.value. + return sf.value, nil + } + + // We need to return an interface{} that is a pointer to sf.value. + value := reflect.New(t).Elem() + value.Set(reflect.New(value.Type().Elem())) + if sf.kind == reflect.Int32 { + // We may have an int32 or an enum, but the underlying data is int32. + // Since we can't set an int32 into a non int32 reflect.value directly + // set it as a int32. + value.Elem().SetInt(int64(sf.value.(int32))) + } else { + value.Elem().Set(reflect.ValueOf(sf.value)) + } + return value.Interface(), nil +} + +// decodeExtension decodes an extension encoded in b. +func decodeExtension(b []byte, extension *ExtensionDesc) (interface{}, error) { + t := reflect.TypeOf(extension.ExtensionType) + unmarshal := typeUnmarshaler(t, extension.Tag) + + // t is a pointer to a struct, pointer to basic type or a slice. + // Allocate space to store the pointer/slice. + value := reflect.New(t).Elem() + + var err error + for { + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + wire := int(x) & 7 + + b, err = unmarshal(b, valToPointer(value.Addr()), wire) + if err != nil { + return nil, err + } + + if len(b) == 0 { + break + } + } + return value.Interface(), nil +} + +// GetExtensions returns a slice of the extensions present in pb that are also listed in es. +// The returned slice has the same length as es; missing extensions will appear as nil elements. +func GetExtensions(pb Message, es []*ExtensionDesc) (extensions []interface{}, err error) { + epb, err := extendable(pb) + if err != nil { + return nil, err + } + extensions = make([]interface{}, len(es)) + for i, e := range es { + extensions[i], err = GetExtension(epb, e) + if err == ErrMissingExtension { + err = nil + } + if err != nil { + return + } + } + return +} + +// ExtensionDescs returns a new slice containing pb's extension descriptors, in undefined order. +// For non-registered extensions, ExtensionDescs returns an incomplete descriptor containing +// just the Field field, which defines the extension's field number. +func ExtensionDescs(pb Message) ([]*ExtensionDesc, error) { + epb, err := extendable(pb) + if err != nil { + return nil, err + } + registeredExtensions := RegisteredExtensions(pb) + + emap, mu := epb.extensionsRead() + if emap == nil { + return nil, nil + } + mu.Lock() + defer mu.Unlock() + extensions := make([]*ExtensionDesc, 0, len(emap)) + for extid, e := range emap { + desc := e.desc + if desc == nil { + desc = registeredExtensions[extid] + if desc == nil { + desc = &ExtensionDesc{Field: extid} + } + } + + extensions = append(extensions, desc) + } + return extensions, nil +} + +// SetExtension sets the specified extension of pb to the specified value. +func SetExtension(pb Message, extension *ExtensionDesc, value interface{}) error { + epb, err := extendable(pb) + if err != nil { + return err + } + if err := checkExtensionTypes(epb, extension); err != nil { + return err + } + typ := reflect.TypeOf(extension.ExtensionType) + if typ != reflect.TypeOf(value) { + return errors.New("proto: bad extension value type") + } + // nil extension values need to be caught early, because the + // encoder can't distinguish an ErrNil due to a nil extension + // from an ErrNil due to a missing field. Extensions are + // always optional, so the encoder would just swallow the error + // and drop all the extensions from the encoded message. + if reflect.ValueOf(value).IsNil() { + return fmt.Errorf("proto: SetExtension called with nil value of type %T", value) + } + + extmap := epb.extensionsWrite() + extmap[extension.Field] = Extension{desc: extension, value: value} + return nil +} + +// ClearAllExtensions clears all extensions from pb. +func ClearAllExtensions(pb Message) { + epb, err := extendable(pb) + if err != nil { + return + } + m := epb.extensionsWrite() + for k := range m { + delete(m, k) + } +} + +// A global registry of extensions. +// The generated code will register the generated descriptors by calling RegisterExtension. + +var extensionMaps = make(map[reflect.Type]map[int32]*ExtensionDesc) + +// RegisterExtension is called from the generated code. +func RegisterExtension(desc *ExtensionDesc) { + st := reflect.TypeOf(desc.ExtendedType).Elem() + m := extensionMaps[st] + if m == nil { + m = make(map[int32]*ExtensionDesc) + extensionMaps[st] = m + } + if _, ok := m[desc.Field]; ok { + panic("proto: duplicate extension registered: " + st.String() + " " + strconv.Itoa(int(desc.Field))) + } + m[desc.Field] = desc +} + +// RegisteredExtensions returns a map of the registered extensions of a +// protocol buffer struct, indexed by the extension number. +// The argument pb should be a nil pointer to the struct type. +func RegisteredExtensions(pb Message) map[int32]*ExtensionDesc { + return extensionMaps[reflect.TypeOf(pb).Elem()] +} diff --git a/vendor/github.com/golang/protobuf/proto/lib.go b/vendor/github.com/golang/protobuf/proto/lib.go new file mode 100644 index 0000000..0e2191b --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/lib.go @@ -0,0 +1,921 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2010 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/* +Package proto converts data structures to and from the wire format of +protocol buffers. It works in concert with the Go source code generated +for .proto files by the protocol compiler. + +A summary of the properties of the protocol buffer interface +for a protocol buffer variable v: + + - Names are turned from camel_case to CamelCase for export. + - There are no methods on v to set fields; just treat + them as structure fields. + - There are getters that return a field's value if set, + and return the field's default value if unset. + The getters work even if the receiver is a nil message. + - The zero value for a struct is its correct initialization state. + All desired fields must be set before marshaling. + - A Reset() method will restore a protobuf struct to its zero state. + - Non-repeated fields are pointers to the values; nil means unset. + That is, optional or required field int32 f becomes F *int32. + - Repeated fields are slices. + - Helper functions are available to aid the setting of fields. + msg.Foo = proto.String("hello") // set field + - Constants are defined to hold the default values of all fields that + have them. They have the form Default_StructName_FieldName. + Because the getter methods handle defaulted values, + direct use of these constants should be rare. + - Enums are given type names and maps from names to values. + Enum values are prefixed by the enclosing message's name, or by the + enum's type name if it is a top-level enum. Enum types have a String + method, and a Enum method to assist in message construction. + - Nested messages, groups and enums have type names prefixed with the name of + the surrounding message type. + - Extensions are given descriptor names that start with E_, + followed by an underscore-delimited list of the nested messages + that contain it (if any) followed by the CamelCased name of the + extension field itself. HasExtension, ClearExtension, GetExtension + and SetExtension are functions for manipulating extensions. + - Oneof field sets are given a single field in their message, + with distinguished wrapper types for each possible field value. + - Marshal and Unmarshal are functions to encode and decode the wire format. + +When the .proto file specifies `syntax="proto3"`, there are some differences: + + - Non-repeated fields of non-message type are values instead of pointers. + - Enum types do not get an Enum method. + +The simplest way to describe this is to see an example. +Given file test.proto, containing + + package example; + + enum FOO { X = 17; } + + message Test { + required string label = 1; + optional int32 type = 2 [default=77]; + repeated int64 reps = 3; + optional group OptionalGroup = 4 { + required string RequiredField = 5; + } + oneof union { + int32 number = 6; + string name = 7; + } + } + +The resulting file, test.pb.go, is: + + package example + + import proto "github.com/golang/protobuf/proto" + import math "math" + + type FOO int32 + const ( + FOO_X FOO = 17 + ) + var FOO_name = map[int32]string{ + 17: "X", + } + var FOO_value = map[string]int32{ + "X": 17, + } + + func (x FOO) Enum() *FOO { + p := new(FOO) + *p = x + return p + } + func (x FOO) String() string { + return proto.EnumName(FOO_name, int32(x)) + } + func (x *FOO) UnmarshalJSON(data []byte) error { + value, err := proto.UnmarshalJSONEnum(FOO_value, data) + if err != nil { + return err + } + *x = FOO(value) + return nil + } + + type Test struct { + Label *string `protobuf:"bytes,1,req,name=label" json:"label,omitempty"` + Type *int32 `protobuf:"varint,2,opt,name=type,def=77" json:"type,omitempty"` + Reps []int64 `protobuf:"varint,3,rep,name=reps" json:"reps,omitempty"` + Optionalgroup *Test_OptionalGroup `protobuf:"group,4,opt,name=OptionalGroup" json:"optionalgroup,omitempty"` + // Types that are valid to be assigned to Union: + // *Test_Number + // *Test_Name + Union isTest_Union `protobuf_oneof:"union"` + XXX_unrecognized []byte `json:"-"` + } + func (m *Test) Reset() { *m = Test{} } + func (m *Test) String() string { return proto.CompactTextString(m) } + func (*Test) ProtoMessage() {} + + type isTest_Union interface { + isTest_Union() + } + + type Test_Number struct { + Number int32 `protobuf:"varint,6,opt,name=number"` + } + type Test_Name struct { + Name string `protobuf:"bytes,7,opt,name=name"` + } + + func (*Test_Number) isTest_Union() {} + func (*Test_Name) isTest_Union() {} + + func (m *Test) GetUnion() isTest_Union { + if m != nil { + return m.Union + } + return nil + } + const Default_Test_Type int32 = 77 + + func (m *Test) GetLabel() string { + if m != nil && m.Label != nil { + return *m.Label + } + return "" + } + + func (m *Test) GetType() int32 { + if m != nil && m.Type != nil { + return *m.Type + } + return Default_Test_Type + } + + func (m *Test) GetOptionalgroup() *Test_OptionalGroup { + if m != nil { + return m.Optionalgroup + } + return nil + } + + type Test_OptionalGroup struct { + RequiredField *string `protobuf:"bytes,5,req" json:"RequiredField,omitempty"` + } + func (m *Test_OptionalGroup) Reset() { *m = Test_OptionalGroup{} } + func (m *Test_OptionalGroup) String() string { return proto.CompactTextString(m) } + + func (m *Test_OptionalGroup) GetRequiredField() string { + if m != nil && m.RequiredField != nil { + return *m.RequiredField + } + return "" + } + + func (m *Test) GetNumber() int32 { + if x, ok := m.GetUnion().(*Test_Number); ok { + return x.Number + } + return 0 + } + + func (m *Test) GetName() string { + if x, ok := m.GetUnion().(*Test_Name); ok { + return x.Name + } + return "" + } + + func init() { + proto.RegisterEnum("example.FOO", FOO_name, FOO_value) + } + +To create and play with a Test object: + + package main + + import ( + "log" + + "github.com/golang/protobuf/proto" + pb "./example.pb" + ) + + func main() { + test := &pb.Test{ + Label: proto.String("hello"), + Type: proto.Int32(17), + Reps: []int64{1, 2, 3}, + Optionalgroup: &pb.Test_OptionalGroup{ + RequiredField: proto.String("good bye"), + }, + Union: &pb.Test_Name{"fred"}, + } + data, err := proto.Marshal(test) + if err != nil { + log.Fatal("marshaling error: ", err) + } + newTest := &pb.Test{} + err = proto.Unmarshal(data, newTest) + if err != nil { + log.Fatal("unmarshaling error: ", err) + } + // Now test and newTest contain the same data. + if test.GetLabel() != newTest.GetLabel() { + log.Fatalf("data mismatch %q != %q", test.GetLabel(), newTest.GetLabel()) + } + // Use a type switch to determine which oneof was set. + switch u := test.Union.(type) { + case *pb.Test_Number: // u.Number contains the number. + case *pb.Test_Name: // u.Name contains the string. + } + // etc. + } +*/ +package proto + +import ( + "encoding/json" + "errors" + "fmt" + "log" + "reflect" + "sort" + "strconv" + "sync" +) + +var errInvalidUTF8 = errors.New("proto: invalid UTF-8 string") + +// Message is implemented by generated protocol buffer messages. +type Message interface { + Reset() + String() string + ProtoMessage() +} + +// Stats records allocation details about the protocol buffer encoders +// and decoders. Useful for tuning the library itself. +type Stats struct { + Emalloc uint64 // mallocs in encode + Dmalloc uint64 // mallocs in decode + Encode uint64 // number of encodes + Decode uint64 // number of decodes + Chit uint64 // number of cache hits + Cmiss uint64 // number of cache misses + Size uint64 // number of sizes +} + +// Set to true to enable stats collection. +const collectStats = false + +var stats Stats + +// GetStats returns a copy of the global Stats structure. +func GetStats() Stats { return stats } + +// A Buffer is a buffer manager for marshaling and unmarshaling +// protocol buffers. It may be reused between invocations to +// reduce memory usage. It is not necessary to use a Buffer; +// the global functions Marshal and Unmarshal create a +// temporary Buffer and are fine for most applications. +type Buffer struct { + buf []byte // encode/decode byte stream + index int // read point + + deterministic bool +} + +// NewBuffer allocates a new Buffer and initializes its internal data to +// the contents of the argument slice. +func NewBuffer(e []byte) *Buffer { + return &Buffer{buf: e} +} + +// Reset resets the Buffer, ready for marshaling a new protocol buffer. +func (p *Buffer) Reset() { + p.buf = p.buf[0:0] // for reading/writing + p.index = 0 // for reading +} + +// SetBuf replaces the internal buffer with the slice, +// ready for unmarshaling the contents of the slice. +func (p *Buffer) SetBuf(s []byte) { + p.buf = s + p.index = 0 +} + +// Bytes returns the contents of the Buffer. +func (p *Buffer) Bytes() []byte { return p.buf } + +// SetDeterministic sets whether to use deterministic serialization. +// +// Deterministic serialization guarantees that for a given binary, equal +// messages will always be serialized to the same bytes. This implies: +// +// - Repeated serialization of a message will return the same bytes. +// - Different processes of the same binary (which may be executing on +// different machines) will serialize equal messages to the same bytes. +// +// Note that the deterministic serialization is NOT canonical across +// languages. It is not guaranteed to remain stable over time. It is unstable +// across different builds with schema changes due to unknown fields. +// Users who need canonical serialization (e.g., persistent storage in a +// canonical form, fingerprinting, etc.) should define their own +// canonicalization specification and implement their own serializer rather +// than relying on this API. +// +// If deterministic serialization is requested, map entries will be sorted +// by keys in lexographical order. This is an implementation detail and +// subject to change. +func (p *Buffer) SetDeterministic(deterministic bool) { + p.deterministic = deterministic +} + +/* + * Helper routines for simplifying the creation of optional fields of basic type. + */ + +// Bool is a helper routine that allocates a new bool value +// to store v and returns a pointer to it. +func Bool(v bool) *bool { + return &v +} + +// Int32 is a helper routine that allocates a new int32 value +// to store v and returns a pointer to it. +func Int32(v int32) *int32 { + return &v +} + +// Int is a helper routine that allocates a new int32 value +// to store v and returns a pointer to it, but unlike Int32 +// its argument value is an int. +func Int(v int) *int32 { + p := new(int32) + *p = int32(v) + return p +} + +// Int64 is a helper routine that allocates a new int64 value +// to store v and returns a pointer to it. +func Int64(v int64) *int64 { + return &v +} + +// Float32 is a helper routine that allocates a new float32 value +// to store v and returns a pointer to it. +func Float32(v float32) *float32 { + return &v +} + +// Float64 is a helper routine that allocates a new float64 value +// to store v and returns a pointer to it. +func Float64(v float64) *float64 { + return &v +} + +// Uint32 is a helper routine that allocates a new uint32 value +// to store v and returns a pointer to it. +func Uint32(v uint32) *uint32 { + return &v +} + +// Uint64 is a helper routine that allocates a new uint64 value +// to store v and returns a pointer to it. +func Uint64(v uint64) *uint64 { + return &v +} + +// String is a helper routine that allocates a new string value +// to store v and returns a pointer to it. +func String(v string) *string { + return &v +} + +// EnumName is a helper function to simplify printing protocol buffer enums +// by name. Given an enum map and a value, it returns a useful string. +func EnumName(m map[int32]string, v int32) string { + s, ok := m[v] + if ok { + return s + } + return strconv.Itoa(int(v)) +} + +// UnmarshalJSONEnum is a helper function to simplify recovering enum int values +// from their JSON-encoded representation. Given a map from the enum's symbolic +// names to its int values, and a byte buffer containing the JSON-encoded +// value, it returns an int32 that can be cast to the enum type by the caller. +// +// The function can deal with both JSON representations, numeric and symbolic. +func UnmarshalJSONEnum(m map[string]int32, data []byte, enumName string) (int32, error) { + if data[0] == '"' { + // New style: enums are strings. + var repr string + if err := json.Unmarshal(data, &repr); err != nil { + return -1, err + } + val, ok := m[repr] + if !ok { + return 0, fmt.Errorf("unrecognized enum %s value %q", enumName, repr) + } + return val, nil + } + // Old style: enums are ints. + var val int32 + if err := json.Unmarshal(data, &val); err != nil { + return 0, fmt.Errorf("cannot unmarshal %#q into enum %s", data, enumName) + } + return val, nil +} + +// DebugPrint dumps the encoded data in b in a debugging format with a header +// including the string s. Used in testing but made available for general debugging. +func (p *Buffer) DebugPrint(s string, b []byte) { + var u uint64 + + obuf := p.buf + index := p.index + p.buf = b + p.index = 0 + depth := 0 + + fmt.Printf("\n--- %s ---\n", s) + +out: + for { + for i := 0; i < depth; i++ { + fmt.Print(" ") + } + + index := p.index + if index == len(p.buf) { + break + } + + op, err := p.DecodeVarint() + if err != nil { + fmt.Printf("%3d: fetching op err %v\n", index, err) + break out + } + tag := op >> 3 + wire := op & 7 + + switch wire { + default: + fmt.Printf("%3d: t=%3d unknown wire=%d\n", + index, tag, wire) + break out + + case WireBytes: + var r []byte + + r, err = p.DecodeRawBytes(false) + if err != nil { + break out + } + fmt.Printf("%3d: t=%3d bytes [%d]", index, tag, len(r)) + if len(r) <= 6 { + for i := 0; i < len(r); i++ { + fmt.Printf(" %.2x", r[i]) + } + } else { + for i := 0; i < 3; i++ { + fmt.Printf(" %.2x", r[i]) + } + fmt.Printf(" ..") + for i := len(r) - 3; i < len(r); i++ { + fmt.Printf(" %.2x", r[i]) + } + } + fmt.Printf("\n") + + case WireFixed32: + u, err = p.DecodeFixed32() + if err != nil { + fmt.Printf("%3d: t=%3d fix32 err %v\n", index, tag, err) + break out + } + fmt.Printf("%3d: t=%3d fix32 %d\n", index, tag, u) + + case WireFixed64: + u, err = p.DecodeFixed64() + if err != nil { + fmt.Printf("%3d: t=%3d fix64 err %v\n", index, tag, err) + break out + } + fmt.Printf("%3d: t=%3d fix64 %d\n", index, tag, u) + + case WireVarint: + u, err = p.DecodeVarint() + if err != nil { + fmt.Printf("%3d: t=%3d varint err %v\n", index, tag, err) + break out + } + fmt.Printf("%3d: t=%3d varint %d\n", index, tag, u) + + case WireStartGroup: + fmt.Printf("%3d: t=%3d start\n", index, tag) + depth++ + + case WireEndGroup: + depth-- + fmt.Printf("%3d: t=%3d end\n", index, tag) + } + } + + if depth != 0 { + fmt.Printf("%3d: start-end not balanced %d\n", p.index, depth) + } + fmt.Printf("\n") + + p.buf = obuf + p.index = index +} + +// SetDefaults sets unset protocol buffer fields to their default values. +// It only modifies fields that are both unset and have defined defaults. +// It recursively sets default values in any non-nil sub-messages. +func SetDefaults(pb Message) { + setDefaults(reflect.ValueOf(pb), true, false) +} + +// v is a pointer to a struct. +func setDefaults(v reflect.Value, recur, zeros bool) { + v = v.Elem() + + defaultMu.RLock() + dm, ok := defaults[v.Type()] + defaultMu.RUnlock() + if !ok { + dm = buildDefaultMessage(v.Type()) + defaultMu.Lock() + defaults[v.Type()] = dm + defaultMu.Unlock() + } + + for _, sf := range dm.scalars { + f := v.Field(sf.index) + if !f.IsNil() { + // field already set + continue + } + dv := sf.value + if dv == nil && !zeros { + // no explicit default, and don't want to set zeros + continue + } + fptr := f.Addr().Interface() // **T + // TODO: Consider batching the allocations we do here. + switch sf.kind { + case reflect.Bool: + b := new(bool) + if dv != nil { + *b = dv.(bool) + } + *(fptr.(**bool)) = b + case reflect.Float32: + f := new(float32) + if dv != nil { + *f = dv.(float32) + } + *(fptr.(**float32)) = f + case reflect.Float64: + f := new(float64) + if dv != nil { + *f = dv.(float64) + } + *(fptr.(**float64)) = f + case reflect.Int32: + // might be an enum + if ft := f.Type(); ft != int32PtrType { + // enum + f.Set(reflect.New(ft.Elem())) + if dv != nil { + f.Elem().SetInt(int64(dv.(int32))) + } + } else { + // int32 field + i := new(int32) + if dv != nil { + *i = dv.(int32) + } + *(fptr.(**int32)) = i + } + case reflect.Int64: + i := new(int64) + if dv != nil { + *i = dv.(int64) + } + *(fptr.(**int64)) = i + case reflect.String: + s := new(string) + if dv != nil { + *s = dv.(string) + } + *(fptr.(**string)) = s + case reflect.Uint8: + // exceptional case: []byte + var b []byte + if dv != nil { + db := dv.([]byte) + b = make([]byte, len(db)) + copy(b, db) + } else { + b = []byte{} + } + *(fptr.(*[]byte)) = b + case reflect.Uint32: + u := new(uint32) + if dv != nil { + *u = dv.(uint32) + } + *(fptr.(**uint32)) = u + case reflect.Uint64: + u := new(uint64) + if dv != nil { + *u = dv.(uint64) + } + *(fptr.(**uint64)) = u + default: + log.Printf("proto: can't set default for field %v (sf.kind=%v)", f, sf.kind) + } + } + + for _, ni := range dm.nested { + f := v.Field(ni) + // f is *T or []*T or map[T]*T + switch f.Kind() { + case reflect.Ptr: + if f.IsNil() { + continue + } + setDefaults(f, recur, zeros) + + case reflect.Slice: + for i := 0; i < f.Len(); i++ { + e := f.Index(i) + if e.IsNil() { + continue + } + setDefaults(e, recur, zeros) + } + + case reflect.Map: + for _, k := range f.MapKeys() { + e := f.MapIndex(k) + if e.IsNil() { + continue + } + setDefaults(e, recur, zeros) + } + } + } +} + +var ( + // defaults maps a protocol buffer struct type to a slice of the fields, + // with its scalar fields set to their proto-declared non-zero default values. + defaultMu sync.RWMutex + defaults = make(map[reflect.Type]defaultMessage) + + int32PtrType = reflect.TypeOf((*int32)(nil)) +) + +// defaultMessage represents information about the default values of a message. +type defaultMessage struct { + scalars []scalarField + nested []int // struct field index of nested messages +} + +type scalarField struct { + index int // struct field index + kind reflect.Kind // element type (the T in *T or []T) + value interface{} // the proto-declared default value, or nil +} + +// t is a struct type. +func buildDefaultMessage(t reflect.Type) (dm defaultMessage) { + sprop := GetProperties(t) + for _, prop := range sprop.Prop { + fi, ok := sprop.decoderTags.get(prop.Tag) + if !ok { + // XXX_unrecognized + continue + } + ft := t.Field(fi).Type + + sf, nested, err := fieldDefault(ft, prop) + switch { + case err != nil: + log.Print(err) + case nested: + dm.nested = append(dm.nested, fi) + case sf != nil: + sf.index = fi + dm.scalars = append(dm.scalars, *sf) + } + } + + return dm +} + +// fieldDefault returns the scalarField for field type ft. +// sf will be nil if the field can not have a default. +// nestedMessage will be true if this is a nested message. +// Note that sf.index is not set on return. +func fieldDefault(ft reflect.Type, prop *Properties) (sf *scalarField, nestedMessage bool, err error) { + var canHaveDefault bool + switch ft.Kind() { + case reflect.Ptr: + if ft.Elem().Kind() == reflect.Struct { + nestedMessage = true + } else { + canHaveDefault = true // proto2 scalar field + } + + case reflect.Slice: + switch ft.Elem().Kind() { + case reflect.Ptr: + nestedMessage = true // repeated message + case reflect.Uint8: + canHaveDefault = true // bytes field + } + + case reflect.Map: + if ft.Elem().Kind() == reflect.Ptr { + nestedMessage = true // map with message values + } + } + + if !canHaveDefault { + if nestedMessage { + return nil, true, nil + } + return nil, false, nil + } + + // We now know that ft is a pointer or slice. + sf = &scalarField{kind: ft.Elem().Kind()} + + // scalar fields without defaults + if !prop.HasDefault { + return sf, false, nil + } + + // a scalar field: either *T or []byte + switch ft.Elem().Kind() { + case reflect.Bool: + x, err := strconv.ParseBool(prop.Default) + if err != nil { + return nil, false, fmt.Errorf("proto: bad default bool %q: %v", prop.Default, err) + } + sf.value = x + case reflect.Float32: + x, err := strconv.ParseFloat(prop.Default, 32) + if err != nil { + return nil, false, fmt.Errorf("proto: bad default float32 %q: %v", prop.Default, err) + } + sf.value = float32(x) + case reflect.Float64: + x, err := strconv.ParseFloat(prop.Default, 64) + if err != nil { + return nil, false, fmt.Errorf("proto: bad default float64 %q: %v", prop.Default, err) + } + sf.value = x + case reflect.Int32: + x, err := strconv.ParseInt(prop.Default, 10, 32) + if err != nil { + return nil, false, fmt.Errorf("proto: bad default int32 %q: %v", prop.Default, err) + } + sf.value = int32(x) + case reflect.Int64: + x, err := strconv.ParseInt(prop.Default, 10, 64) + if err != nil { + return nil, false, fmt.Errorf("proto: bad default int64 %q: %v", prop.Default, err) + } + sf.value = x + case reflect.String: + sf.value = prop.Default + case reflect.Uint8: + // []byte (not *uint8) + sf.value = []byte(prop.Default) + case reflect.Uint32: + x, err := strconv.ParseUint(prop.Default, 10, 32) + if err != nil { + return nil, false, fmt.Errorf("proto: bad default uint32 %q: %v", prop.Default, err) + } + sf.value = uint32(x) + case reflect.Uint64: + x, err := strconv.ParseUint(prop.Default, 10, 64) + if err != nil { + return nil, false, fmt.Errorf("proto: bad default uint64 %q: %v", prop.Default, err) + } + sf.value = x + default: + return nil, false, fmt.Errorf("proto: unhandled def kind %v", ft.Elem().Kind()) + } + + return sf, false, nil +} + +// mapKeys returns a sort.Interface to be used for sorting the map keys. +// Map fields may have key types of non-float scalars, strings and enums. +func mapKeys(vs []reflect.Value) sort.Interface { + s := mapKeySorter{vs: vs} + + // Type specialization per https://developers.google.com/protocol-buffers/docs/proto#maps. + if len(vs) == 0 { + return s + } + switch vs[0].Kind() { + case reflect.Int32, reflect.Int64: + s.less = func(a, b reflect.Value) bool { return a.Int() < b.Int() } + case reflect.Uint32, reflect.Uint64: + s.less = func(a, b reflect.Value) bool { return a.Uint() < b.Uint() } + case reflect.Bool: + s.less = func(a, b reflect.Value) bool { return !a.Bool() && b.Bool() } // false < true + case reflect.String: + s.less = func(a, b reflect.Value) bool { return a.String() < b.String() } + default: + panic(fmt.Sprintf("unsupported map key type: %v", vs[0].Kind())) + } + + return s +} + +type mapKeySorter struct { + vs []reflect.Value + less func(a, b reflect.Value) bool +} + +func (s mapKeySorter) Len() int { return len(s.vs) } +func (s mapKeySorter) Swap(i, j int) { s.vs[i], s.vs[j] = s.vs[j], s.vs[i] } +func (s mapKeySorter) Less(i, j int) bool { + return s.less(s.vs[i], s.vs[j]) +} + +// isProto3Zero reports whether v is a zero proto3 value. +func isProto3Zero(v reflect.Value) bool { + switch v.Kind() { + case reflect.Bool: + return !v.Bool() + case reflect.Int32, reflect.Int64: + return v.Int() == 0 + case reflect.Uint32, reflect.Uint64: + return v.Uint() == 0 + case reflect.Float32, reflect.Float64: + return v.Float() == 0 + case reflect.String: + return v.String() == "" + } + return false +} + +// ProtoPackageIsVersion2 is referenced from generated protocol buffer files +// to assert that that code is compatible with this version of the proto package. +const ProtoPackageIsVersion2 = true + +// ProtoPackageIsVersion1 is referenced from generated protocol buffer files +// to assert that that code is compatible with this version of the proto package. +const ProtoPackageIsVersion1 = true + +// InternalMessageInfo is a type used internally by generated .pb.go files. +// This type is not intended to be used by non-generated code. +// This type is not subject to any compatibility guarantee. +type InternalMessageInfo struct { + marshal *marshalInfo + unmarshal *unmarshalInfo + merge *mergeInfo + discard *discardInfo +} diff --git a/vendor/github.com/golang/protobuf/proto/message_set.go b/vendor/github.com/golang/protobuf/proto/message_set.go new file mode 100644 index 0000000..3b6ca41 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/message_set.go @@ -0,0 +1,314 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2010 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +/* + * Support for message sets. + */ + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "reflect" + "sort" + "sync" +) + +// errNoMessageTypeID occurs when a protocol buffer does not have a message type ID. +// A message type ID is required for storing a protocol buffer in a message set. +var errNoMessageTypeID = errors.New("proto does not have a message type ID") + +// The first two types (_MessageSet_Item and messageSet) +// model what the protocol compiler produces for the following protocol message: +// message MessageSet { +// repeated group Item = 1 { +// required int32 type_id = 2; +// required string message = 3; +// }; +// } +// That is the MessageSet wire format. We can't use a proto to generate these +// because that would introduce a circular dependency between it and this package. + +type _MessageSet_Item struct { + TypeId *int32 `protobuf:"varint,2,req,name=type_id"` + Message []byte `protobuf:"bytes,3,req,name=message"` +} + +type messageSet struct { + Item []*_MessageSet_Item `protobuf:"group,1,rep"` + XXX_unrecognized []byte + // TODO: caching? +} + +// Make sure messageSet is a Message. +var _ Message = (*messageSet)(nil) + +// messageTypeIder is an interface satisfied by a protocol buffer type +// that may be stored in a MessageSet. +type messageTypeIder interface { + MessageTypeId() int32 +} + +func (ms *messageSet) find(pb Message) *_MessageSet_Item { + mti, ok := pb.(messageTypeIder) + if !ok { + return nil + } + id := mti.MessageTypeId() + for _, item := range ms.Item { + if *item.TypeId == id { + return item + } + } + return nil +} + +func (ms *messageSet) Has(pb Message) bool { + return ms.find(pb) != nil +} + +func (ms *messageSet) Unmarshal(pb Message) error { + if item := ms.find(pb); item != nil { + return Unmarshal(item.Message, pb) + } + if _, ok := pb.(messageTypeIder); !ok { + return errNoMessageTypeID + } + return nil // TODO: return error instead? +} + +func (ms *messageSet) Marshal(pb Message) error { + msg, err := Marshal(pb) + if err != nil { + return err + } + if item := ms.find(pb); item != nil { + // reuse existing item + item.Message = msg + return nil + } + + mti, ok := pb.(messageTypeIder) + if !ok { + return errNoMessageTypeID + } + + mtid := mti.MessageTypeId() + ms.Item = append(ms.Item, &_MessageSet_Item{ + TypeId: &mtid, + Message: msg, + }) + return nil +} + +func (ms *messageSet) Reset() { *ms = messageSet{} } +func (ms *messageSet) String() string { return CompactTextString(ms) } +func (*messageSet) ProtoMessage() {} + +// Support for the message_set_wire_format message option. + +func skipVarint(buf []byte) []byte { + i := 0 + for ; buf[i]&0x80 != 0; i++ { + } + return buf[i+1:] +} + +// MarshalMessageSet encodes the extension map represented by m in the message set wire format. +// It is called by generated Marshal methods on protocol buffer messages with the message_set_wire_format option. +func MarshalMessageSet(exts interface{}) ([]byte, error) { + return marshalMessageSet(exts, false) +} + +// marshaMessageSet implements above function, with the opt to turn on / off deterministic during Marshal. +func marshalMessageSet(exts interface{}, deterministic bool) ([]byte, error) { + switch exts := exts.(type) { + case *XXX_InternalExtensions: + var u marshalInfo + siz := u.sizeMessageSet(exts) + b := make([]byte, 0, siz) + return u.appendMessageSet(b, exts, deterministic) + + case map[int32]Extension: + // This is an old-style extension map. + // Wrap it in a new-style XXX_InternalExtensions. + ie := XXX_InternalExtensions{ + p: &struct { + mu sync.Mutex + extensionMap map[int32]Extension + }{ + extensionMap: exts, + }, + } + + var u marshalInfo + siz := u.sizeMessageSet(&ie) + b := make([]byte, 0, siz) + return u.appendMessageSet(b, &ie, deterministic) + + default: + return nil, errors.New("proto: not an extension map") + } +} + +// UnmarshalMessageSet decodes the extension map encoded in buf in the message set wire format. +// It is called by Unmarshal methods on protocol buffer messages with the message_set_wire_format option. +func UnmarshalMessageSet(buf []byte, exts interface{}) error { + var m map[int32]Extension + switch exts := exts.(type) { + case *XXX_InternalExtensions: + m = exts.extensionsWrite() + case map[int32]Extension: + m = exts + default: + return errors.New("proto: not an extension map") + } + + ms := new(messageSet) + if err := Unmarshal(buf, ms); err != nil { + return err + } + for _, item := range ms.Item { + id := *item.TypeId + msg := item.Message + + // Restore wire type and field number varint, plus length varint. + // Be careful to preserve duplicate items. + b := EncodeVarint(uint64(id)<<3 | WireBytes) + if ext, ok := m[id]; ok { + // Existing data; rip off the tag and length varint + // so we join the new data correctly. + // We can assume that ext.enc is set because we are unmarshaling. + o := ext.enc[len(b):] // skip wire type and field number + _, n := DecodeVarint(o) // calculate length of length varint + o = o[n:] // skip length varint + msg = append(o, msg...) // join old data and new data + } + b = append(b, EncodeVarint(uint64(len(msg)))...) + b = append(b, msg...) + + m[id] = Extension{enc: b} + } + return nil +} + +// MarshalMessageSetJSON encodes the extension map represented by m in JSON format. +// It is called by generated MarshalJSON methods on protocol buffer messages with the message_set_wire_format option. +func MarshalMessageSetJSON(exts interface{}) ([]byte, error) { + var m map[int32]Extension + switch exts := exts.(type) { + case *XXX_InternalExtensions: + var mu sync.Locker + m, mu = exts.extensionsRead() + if m != nil { + // Keep the extensions map locked until we're done marshaling to prevent + // races between marshaling and unmarshaling the lazily-{en,de}coded + // values. + mu.Lock() + defer mu.Unlock() + } + case map[int32]Extension: + m = exts + default: + return nil, errors.New("proto: not an extension map") + } + var b bytes.Buffer + b.WriteByte('{') + + // Process the map in key order for deterministic output. + ids := make([]int32, 0, len(m)) + for id := range m { + ids = append(ids, id) + } + sort.Sort(int32Slice(ids)) // int32Slice defined in text.go + + for i, id := range ids { + ext := m[id] + msd, ok := messageSetMap[id] + if !ok { + // Unknown type; we can't render it, so skip it. + continue + } + + if i > 0 && b.Len() > 1 { + b.WriteByte(',') + } + + fmt.Fprintf(&b, `"[%s]":`, msd.name) + + x := ext.value + if x == nil { + x = reflect.New(msd.t.Elem()).Interface() + if err := Unmarshal(ext.enc, x.(Message)); err != nil { + return nil, err + } + } + d, err := json.Marshal(x) + if err != nil { + return nil, err + } + b.Write(d) + } + b.WriteByte('}') + return b.Bytes(), nil +} + +// UnmarshalMessageSetJSON decodes the extension map encoded in buf in JSON format. +// It is called by generated UnmarshalJSON methods on protocol buffer messages with the message_set_wire_format option. +func UnmarshalMessageSetJSON(buf []byte, exts interface{}) error { + // Common-case fast path. + if len(buf) == 0 || bytes.Equal(buf, []byte("{}")) { + return nil + } + + // This is fairly tricky, and it's not clear that it is needed. + return errors.New("TODO: UnmarshalMessageSetJSON not yet implemented") +} + +// A global registry of types that can be used in a MessageSet. + +var messageSetMap = make(map[int32]messageSetDesc) + +type messageSetDesc struct { + t reflect.Type // pointer to struct + name string +} + +// RegisterMessageSetType is called from the generated code. +func RegisterMessageSetType(m Message, fieldNum int32, name string) { + messageSetMap[fieldNum] = messageSetDesc{ + t: reflect.TypeOf(m), + name: name, + } +} diff --git a/vendor/github.com/golang/protobuf/proto/pointer_reflect.go b/vendor/github.com/golang/protobuf/proto/pointer_reflect.go new file mode 100644 index 0000000..b6cad90 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/pointer_reflect.go @@ -0,0 +1,357 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2012 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// +build purego appengine js + +// This file contains an implementation of proto field accesses using package reflect. +// It is slower than the code in pointer_unsafe.go but it avoids package unsafe and can +// be used on App Engine. + +package proto + +import ( + "reflect" + "sync" +) + +const unsafeAllowed = false + +// A field identifies a field in a struct, accessible from a pointer. +// In this implementation, a field is identified by the sequence of field indices +// passed to reflect's FieldByIndex. +type field []int + +// toField returns a field equivalent to the given reflect field. +func toField(f *reflect.StructField) field { + return f.Index +} + +// invalidField is an invalid field identifier. +var invalidField = field(nil) + +// zeroField is a noop when calling pointer.offset. +var zeroField = field([]int{}) + +// IsValid reports whether the field identifier is valid. +func (f field) IsValid() bool { return f != nil } + +// The pointer type is for the table-driven decoder. +// The implementation here uses a reflect.Value of pointer type to +// create a generic pointer. In pointer_unsafe.go we use unsafe +// instead of reflect to implement the same (but faster) interface. +type pointer struct { + v reflect.Value +} + +// toPointer converts an interface of pointer type to a pointer +// that points to the same target. +func toPointer(i *Message) pointer { + return pointer{v: reflect.ValueOf(*i)} +} + +// toAddrPointer converts an interface to a pointer that points to +// the interface data. +func toAddrPointer(i *interface{}, isptr bool) pointer { + v := reflect.ValueOf(*i) + u := reflect.New(v.Type()) + u.Elem().Set(v) + return pointer{v: u} +} + +// valToPointer converts v to a pointer. v must be of pointer type. +func valToPointer(v reflect.Value) pointer { + return pointer{v: v} +} + +// offset converts from a pointer to a structure to a pointer to +// one of its fields. +func (p pointer) offset(f field) pointer { + return pointer{v: p.v.Elem().FieldByIndex(f).Addr()} +} + +func (p pointer) isNil() bool { + return p.v.IsNil() +} + +// grow updates the slice s in place to make it one element longer. +// s must be addressable. +// Returns the (addressable) new element. +func grow(s reflect.Value) reflect.Value { + n, m := s.Len(), s.Cap() + if n < m { + s.SetLen(n + 1) + } else { + s.Set(reflect.Append(s, reflect.Zero(s.Type().Elem()))) + } + return s.Index(n) +} + +func (p pointer) toInt64() *int64 { + return p.v.Interface().(*int64) +} +func (p pointer) toInt64Ptr() **int64 { + return p.v.Interface().(**int64) +} +func (p pointer) toInt64Slice() *[]int64 { + return p.v.Interface().(*[]int64) +} + +var int32ptr = reflect.TypeOf((*int32)(nil)) + +func (p pointer) toInt32() *int32 { + return p.v.Convert(int32ptr).Interface().(*int32) +} + +// The toInt32Ptr/Slice methods don't work because of enums. +// Instead, we must use set/get methods for the int32ptr/slice case. +/* + func (p pointer) toInt32Ptr() **int32 { + return p.v.Interface().(**int32) +} + func (p pointer) toInt32Slice() *[]int32 { + return p.v.Interface().(*[]int32) +} +*/ +func (p pointer) getInt32Ptr() *int32 { + if p.v.Type().Elem().Elem() == reflect.TypeOf(int32(0)) { + // raw int32 type + return p.v.Elem().Interface().(*int32) + } + // an enum + return p.v.Elem().Convert(int32PtrType).Interface().(*int32) +} +func (p pointer) setInt32Ptr(v int32) { + // Allocate value in a *int32. Possibly convert that to a *enum. + // Then assign it to a **int32 or **enum. + // Note: we can convert *int32 to *enum, but we can't convert + // **int32 to **enum! + p.v.Elem().Set(reflect.ValueOf(&v).Convert(p.v.Type().Elem())) +} + +// getInt32Slice copies []int32 from p as a new slice. +// This behavior differs from the implementation in pointer_unsafe.go. +func (p pointer) getInt32Slice() []int32 { + if p.v.Type().Elem().Elem() == reflect.TypeOf(int32(0)) { + // raw int32 type + return p.v.Elem().Interface().([]int32) + } + // an enum + // Allocate a []int32, then assign []enum's values into it. + // Note: we can't convert []enum to []int32. + slice := p.v.Elem() + s := make([]int32, slice.Len()) + for i := 0; i < slice.Len(); i++ { + s[i] = int32(slice.Index(i).Int()) + } + return s +} + +// setInt32Slice copies []int32 into p as a new slice. +// This behavior differs from the implementation in pointer_unsafe.go. +func (p pointer) setInt32Slice(v []int32) { + if p.v.Type().Elem().Elem() == reflect.TypeOf(int32(0)) { + // raw int32 type + p.v.Elem().Set(reflect.ValueOf(v)) + return + } + // an enum + // Allocate a []enum, then assign []int32's values into it. + // Note: we can't convert []enum to []int32. + slice := reflect.MakeSlice(p.v.Type().Elem(), len(v), cap(v)) + for i, x := range v { + slice.Index(i).SetInt(int64(x)) + } + p.v.Elem().Set(slice) +} +func (p pointer) appendInt32Slice(v int32) { + grow(p.v.Elem()).SetInt(int64(v)) +} + +func (p pointer) toUint64() *uint64 { + return p.v.Interface().(*uint64) +} +func (p pointer) toUint64Ptr() **uint64 { + return p.v.Interface().(**uint64) +} +func (p pointer) toUint64Slice() *[]uint64 { + return p.v.Interface().(*[]uint64) +} +func (p pointer) toUint32() *uint32 { + return p.v.Interface().(*uint32) +} +func (p pointer) toUint32Ptr() **uint32 { + return p.v.Interface().(**uint32) +} +func (p pointer) toUint32Slice() *[]uint32 { + return p.v.Interface().(*[]uint32) +} +func (p pointer) toBool() *bool { + return p.v.Interface().(*bool) +} +func (p pointer) toBoolPtr() **bool { + return p.v.Interface().(**bool) +} +func (p pointer) toBoolSlice() *[]bool { + return p.v.Interface().(*[]bool) +} +func (p pointer) toFloat64() *float64 { + return p.v.Interface().(*float64) +} +func (p pointer) toFloat64Ptr() **float64 { + return p.v.Interface().(**float64) +} +func (p pointer) toFloat64Slice() *[]float64 { + return p.v.Interface().(*[]float64) +} +func (p pointer) toFloat32() *float32 { + return p.v.Interface().(*float32) +} +func (p pointer) toFloat32Ptr() **float32 { + return p.v.Interface().(**float32) +} +func (p pointer) toFloat32Slice() *[]float32 { + return p.v.Interface().(*[]float32) +} +func (p pointer) toString() *string { + return p.v.Interface().(*string) +} +func (p pointer) toStringPtr() **string { + return p.v.Interface().(**string) +} +func (p pointer) toStringSlice() *[]string { + return p.v.Interface().(*[]string) +} +func (p pointer) toBytes() *[]byte { + return p.v.Interface().(*[]byte) +} +func (p pointer) toBytesSlice() *[][]byte { + return p.v.Interface().(*[][]byte) +} +func (p pointer) toExtensions() *XXX_InternalExtensions { + return p.v.Interface().(*XXX_InternalExtensions) +} +func (p pointer) toOldExtensions() *map[int32]Extension { + return p.v.Interface().(*map[int32]Extension) +} +func (p pointer) getPointer() pointer { + return pointer{v: p.v.Elem()} +} +func (p pointer) setPointer(q pointer) { + p.v.Elem().Set(q.v) +} +func (p pointer) appendPointer(q pointer) { + grow(p.v.Elem()).Set(q.v) +} + +// getPointerSlice copies []*T from p as a new []pointer. +// This behavior differs from the implementation in pointer_unsafe.go. +func (p pointer) getPointerSlice() []pointer { + if p.v.IsNil() { + return nil + } + n := p.v.Elem().Len() + s := make([]pointer, n) + for i := 0; i < n; i++ { + s[i] = pointer{v: p.v.Elem().Index(i)} + } + return s +} + +// setPointerSlice copies []pointer into p as a new []*T. +// This behavior differs from the implementation in pointer_unsafe.go. +func (p pointer) setPointerSlice(v []pointer) { + if v == nil { + p.v.Elem().Set(reflect.New(p.v.Elem().Type()).Elem()) + return + } + s := reflect.MakeSlice(p.v.Elem().Type(), 0, len(v)) + for _, p := range v { + s = reflect.Append(s, p.v) + } + p.v.Elem().Set(s) +} + +// getInterfacePointer returns a pointer that points to the +// interface data of the interface pointed by p. +func (p pointer) getInterfacePointer() pointer { + if p.v.Elem().IsNil() { + return pointer{v: p.v.Elem()} + } + return pointer{v: p.v.Elem().Elem().Elem().Field(0).Addr()} // *interface -> interface -> *struct -> struct +} + +func (p pointer) asPointerTo(t reflect.Type) reflect.Value { + // TODO: check that p.v.Type().Elem() == t? + return p.v +} + +func atomicLoadUnmarshalInfo(p **unmarshalInfo) *unmarshalInfo { + atomicLock.Lock() + defer atomicLock.Unlock() + return *p +} +func atomicStoreUnmarshalInfo(p **unmarshalInfo, v *unmarshalInfo) { + atomicLock.Lock() + defer atomicLock.Unlock() + *p = v +} +func atomicLoadMarshalInfo(p **marshalInfo) *marshalInfo { + atomicLock.Lock() + defer atomicLock.Unlock() + return *p +} +func atomicStoreMarshalInfo(p **marshalInfo, v *marshalInfo) { + atomicLock.Lock() + defer atomicLock.Unlock() + *p = v +} +func atomicLoadMergeInfo(p **mergeInfo) *mergeInfo { + atomicLock.Lock() + defer atomicLock.Unlock() + return *p +} +func atomicStoreMergeInfo(p **mergeInfo, v *mergeInfo) { + atomicLock.Lock() + defer atomicLock.Unlock() + *p = v +} +func atomicLoadDiscardInfo(p **discardInfo) *discardInfo { + atomicLock.Lock() + defer atomicLock.Unlock() + return *p +} +func atomicStoreDiscardInfo(p **discardInfo, v *discardInfo) { + atomicLock.Lock() + defer atomicLock.Unlock() + *p = v +} + +var atomicLock sync.Mutex diff --git a/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go b/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go new file mode 100644 index 0000000..d55a335 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go @@ -0,0 +1,308 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2012 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// +build !purego,!appengine,!js + +// This file contains the implementation of the proto field accesses using package unsafe. + +package proto + +import ( + "reflect" + "sync/atomic" + "unsafe" +) + +const unsafeAllowed = true + +// A field identifies a field in a struct, accessible from a pointer. +// In this implementation, a field is identified by its byte offset from the start of the struct. +type field uintptr + +// toField returns a field equivalent to the given reflect field. +func toField(f *reflect.StructField) field { + return field(f.Offset) +} + +// invalidField is an invalid field identifier. +const invalidField = ^field(0) + +// zeroField is a noop when calling pointer.offset. +const zeroField = field(0) + +// IsValid reports whether the field identifier is valid. +func (f field) IsValid() bool { + return f != invalidField +} + +// The pointer type below is for the new table-driven encoder/decoder. +// The implementation here uses unsafe.Pointer to create a generic pointer. +// In pointer_reflect.go we use reflect instead of unsafe to implement +// the same (but slower) interface. +type pointer struct { + p unsafe.Pointer +} + +// size of pointer +var ptrSize = unsafe.Sizeof(uintptr(0)) + +// toPointer converts an interface of pointer type to a pointer +// that points to the same target. +func toPointer(i *Message) pointer { + // Super-tricky - read pointer out of data word of interface value. + // Saves ~25ns over the equivalent: + // return valToPointer(reflect.ValueOf(*i)) + return pointer{p: (*[2]unsafe.Pointer)(unsafe.Pointer(i))[1]} +} + +// toAddrPointer converts an interface to a pointer that points to +// the interface data. +func toAddrPointer(i *interface{}, isptr bool) pointer { + // Super-tricky - read or get the address of data word of interface value. + if isptr { + // The interface is of pointer type, thus it is a direct interface. + // The data word is the pointer data itself. We take its address. + return pointer{p: unsafe.Pointer(uintptr(unsafe.Pointer(i)) + ptrSize)} + } + // The interface is not of pointer type. The data word is the pointer + // to the data. + return pointer{p: (*[2]unsafe.Pointer)(unsafe.Pointer(i))[1]} +} + +// valToPointer converts v to a pointer. v must be of pointer type. +func valToPointer(v reflect.Value) pointer { + return pointer{p: unsafe.Pointer(v.Pointer())} +} + +// offset converts from a pointer to a structure to a pointer to +// one of its fields. +func (p pointer) offset(f field) pointer { + // For safety, we should panic if !f.IsValid, however calling panic causes + // this to no longer be inlineable, which is a serious performance cost. + /* + if !f.IsValid() { + panic("invalid field") + } + */ + return pointer{p: unsafe.Pointer(uintptr(p.p) + uintptr(f))} +} + +func (p pointer) isNil() bool { + return p.p == nil +} + +func (p pointer) toInt64() *int64 { + return (*int64)(p.p) +} +func (p pointer) toInt64Ptr() **int64 { + return (**int64)(p.p) +} +func (p pointer) toInt64Slice() *[]int64 { + return (*[]int64)(p.p) +} +func (p pointer) toInt32() *int32 { + return (*int32)(p.p) +} + +// See pointer_reflect.go for why toInt32Ptr/Slice doesn't exist. +/* + func (p pointer) toInt32Ptr() **int32 { + return (**int32)(p.p) + } + func (p pointer) toInt32Slice() *[]int32 { + return (*[]int32)(p.p) + } +*/ +func (p pointer) getInt32Ptr() *int32 { + return *(**int32)(p.p) +} +func (p pointer) setInt32Ptr(v int32) { + *(**int32)(p.p) = &v +} + +// getInt32Slice loads a []int32 from p. +// The value returned is aliased with the original slice. +// This behavior differs from the implementation in pointer_reflect.go. +func (p pointer) getInt32Slice() []int32 { + return *(*[]int32)(p.p) +} + +// setInt32Slice stores a []int32 to p. +// The value set is aliased with the input slice. +// This behavior differs from the implementation in pointer_reflect.go. +func (p pointer) setInt32Slice(v []int32) { + *(*[]int32)(p.p) = v +} + +// TODO: Can we get rid of appendInt32Slice and use setInt32Slice instead? +func (p pointer) appendInt32Slice(v int32) { + s := (*[]int32)(p.p) + *s = append(*s, v) +} + +func (p pointer) toUint64() *uint64 { + return (*uint64)(p.p) +} +func (p pointer) toUint64Ptr() **uint64 { + return (**uint64)(p.p) +} +func (p pointer) toUint64Slice() *[]uint64 { + return (*[]uint64)(p.p) +} +func (p pointer) toUint32() *uint32 { + return (*uint32)(p.p) +} +func (p pointer) toUint32Ptr() **uint32 { + return (**uint32)(p.p) +} +func (p pointer) toUint32Slice() *[]uint32 { + return (*[]uint32)(p.p) +} +func (p pointer) toBool() *bool { + return (*bool)(p.p) +} +func (p pointer) toBoolPtr() **bool { + return (**bool)(p.p) +} +func (p pointer) toBoolSlice() *[]bool { + return (*[]bool)(p.p) +} +func (p pointer) toFloat64() *float64 { + return (*float64)(p.p) +} +func (p pointer) toFloat64Ptr() **float64 { + return (**float64)(p.p) +} +func (p pointer) toFloat64Slice() *[]float64 { + return (*[]float64)(p.p) +} +func (p pointer) toFloat32() *float32 { + return (*float32)(p.p) +} +func (p pointer) toFloat32Ptr() **float32 { + return (**float32)(p.p) +} +func (p pointer) toFloat32Slice() *[]float32 { + return (*[]float32)(p.p) +} +func (p pointer) toString() *string { + return (*string)(p.p) +} +func (p pointer) toStringPtr() **string { + return (**string)(p.p) +} +func (p pointer) toStringSlice() *[]string { + return (*[]string)(p.p) +} +func (p pointer) toBytes() *[]byte { + return (*[]byte)(p.p) +} +func (p pointer) toBytesSlice() *[][]byte { + return (*[][]byte)(p.p) +} +func (p pointer) toExtensions() *XXX_InternalExtensions { + return (*XXX_InternalExtensions)(p.p) +} +func (p pointer) toOldExtensions() *map[int32]Extension { + return (*map[int32]Extension)(p.p) +} + +// getPointerSlice loads []*T from p as a []pointer. +// The value returned is aliased with the original slice. +// This behavior differs from the implementation in pointer_reflect.go. +func (p pointer) getPointerSlice() []pointer { + // Super-tricky - p should point to a []*T where T is a + // message type. We load it as []pointer. + return *(*[]pointer)(p.p) +} + +// setPointerSlice stores []pointer into p as a []*T. +// The value set is aliased with the input slice. +// This behavior differs from the implementation in pointer_reflect.go. +func (p pointer) setPointerSlice(v []pointer) { + // Super-tricky - p should point to a []*T where T is a + // message type. We store it as []pointer. + *(*[]pointer)(p.p) = v +} + +// getPointer loads the pointer at p and returns it. +func (p pointer) getPointer() pointer { + return pointer{p: *(*unsafe.Pointer)(p.p)} +} + +// setPointer stores the pointer q at p. +func (p pointer) setPointer(q pointer) { + *(*unsafe.Pointer)(p.p) = q.p +} + +// append q to the slice pointed to by p. +func (p pointer) appendPointer(q pointer) { + s := (*[]unsafe.Pointer)(p.p) + *s = append(*s, q.p) +} + +// getInterfacePointer returns a pointer that points to the +// interface data of the interface pointed by p. +func (p pointer) getInterfacePointer() pointer { + // Super-tricky - read pointer out of data word of interface value. + return pointer{p: (*(*[2]unsafe.Pointer)(p.p))[1]} +} + +// asPointerTo returns a reflect.Value that is a pointer to an +// object of type t stored at p. +func (p pointer) asPointerTo(t reflect.Type) reflect.Value { + return reflect.NewAt(t, p.p) +} + +func atomicLoadUnmarshalInfo(p **unmarshalInfo) *unmarshalInfo { + return (*unmarshalInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p)))) +} +func atomicStoreUnmarshalInfo(p **unmarshalInfo, v *unmarshalInfo) { + atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v)) +} +func atomicLoadMarshalInfo(p **marshalInfo) *marshalInfo { + return (*marshalInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p)))) +} +func atomicStoreMarshalInfo(p **marshalInfo, v *marshalInfo) { + atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v)) +} +func atomicLoadMergeInfo(p **mergeInfo) *mergeInfo { + return (*mergeInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p)))) +} +func atomicStoreMergeInfo(p **mergeInfo, v *mergeInfo) { + atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v)) +} +func atomicLoadDiscardInfo(p **discardInfo) *discardInfo { + return (*discardInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p)))) +} +func atomicStoreDiscardInfo(p **discardInfo, v *discardInfo) { + atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v)) +} diff --git a/vendor/github.com/golang/protobuf/proto/properties.go b/vendor/github.com/golang/protobuf/proto/properties.go new file mode 100644 index 0000000..50b99b8 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/properties.go @@ -0,0 +1,544 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2010 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +/* + * Routines for encoding data into the wire format for protocol buffers. + */ + +import ( + "fmt" + "log" + "os" + "reflect" + "sort" + "strconv" + "strings" + "sync" +) + +const debug bool = false + +// Constants that identify the encoding of a value on the wire. +const ( + WireVarint = 0 + WireFixed64 = 1 + WireBytes = 2 + WireStartGroup = 3 + WireEndGroup = 4 + WireFixed32 = 5 +) + +// tagMap is an optimization over map[int]int for typical protocol buffer +// use-cases. Encoded protocol buffers are often in tag order with small tag +// numbers. +type tagMap struct { + fastTags []int + slowTags map[int]int +} + +// tagMapFastLimit is the upper bound on the tag number that will be stored in +// the tagMap slice rather than its map. +const tagMapFastLimit = 1024 + +func (p *tagMap) get(t int) (int, bool) { + if t > 0 && t < tagMapFastLimit { + if t >= len(p.fastTags) { + return 0, false + } + fi := p.fastTags[t] + return fi, fi >= 0 + } + fi, ok := p.slowTags[t] + return fi, ok +} + +func (p *tagMap) put(t int, fi int) { + if t > 0 && t < tagMapFastLimit { + for len(p.fastTags) < t+1 { + p.fastTags = append(p.fastTags, -1) + } + p.fastTags[t] = fi + return + } + if p.slowTags == nil { + p.slowTags = make(map[int]int) + } + p.slowTags[t] = fi +} + +// StructProperties represents properties for all the fields of a struct. +// decoderTags and decoderOrigNames should only be used by the decoder. +type StructProperties struct { + Prop []*Properties // properties for each field + reqCount int // required count + decoderTags tagMap // map from proto tag to struct field number + decoderOrigNames map[string]int // map from original name to struct field number + order []int // list of struct field numbers in tag order + + // OneofTypes contains information about the oneof fields in this message. + // It is keyed by the original name of a field. + OneofTypes map[string]*OneofProperties +} + +// OneofProperties represents information about a specific field in a oneof. +type OneofProperties struct { + Type reflect.Type // pointer to generated struct type for this oneof field + Field int // struct field number of the containing oneof in the message + Prop *Properties +} + +// Implement the sorting interface so we can sort the fields in tag order, as recommended by the spec. +// See encode.go, (*Buffer).enc_struct. + +func (sp *StructProperties) Len() int { return len(sp.order) } +func (sp *StructProperties) Less(i, j int) bool { + return sp.Prop[sp.order[i]].Tag < sp.Prop[sp.order[j]].Tag +} +func (sp *StructProperties) Swap(i, j int) { sp.order[i], sp.order[j] = sp.order[j], sp.order[i] } + +// Properties represents the protocol-specific behavior of a single struct field. +type Properties struct { + Name string // name of the field, for error messages + OrigName string // original name before protocol compiler (always set) + JSONName string // name to use for JSON; determined by protoc + Wire string + WireType int + Tag int + Required bool + Optional bool + Repeated bool + Packed bool // relevant for repeated primitives only + Enum string // set for enum types only + proto3 bool // whether this is known to be a proto3 field + oneof bool // whether this is a oneof field + + Default string // default value + HasDefault bool // whether an explicit default was provided + + stype reflect.Type // set for struct types only + sprop *StructProperties // set for struct types only + + mtype reflect.Type // set for map types only + MapKeyProp *Properties // set for map types only + MapValProp *Properties // set for map types only +} + +// String formats the properties in the protobuf struct field tag style. +func (p *Properties) String() string { + s := p.Wire + s += "," + s += strconv.Itoa(p.Tag) + if p.Required { + s += ",req" + } + if p.Optional { + s += ",opt" + } + if p.Repeated { + s += ",rep" + } + if p.Packed { + s += ",packed" + } + s += ",name=" + p.OrigName + if p.JSONName != p.OrigName { + s += ",json=" + p.JSONName + } + if p.proto3 { + s += ",proto3" + } + if p.oneof { + s += ",oneof" + } + if len(p.Enum) > 0 { + s += ",enum=" + p.Enum + } + if p.HasDefault { + s += ",def=" + p.Default + } + return s +} + +// Parse populates p by parsing a string in the protobuf struct field tag style. +func (p *Properties) Parse(s string) { + // "bytes,49,opt,name=foo,def=hello!" + fields := strings.Split(s, ",") // breaks def=, but handled below. + if len(fields) < 2 { + fmt.Fprintf(os.Stderr, "proto: tag has too few fields: %q\n", s) + return + } + + p.Wire = fields[0] + switch p.Wire { + case "varint": + p.WireType = WireVarint + case "fixed32": + p.WireType = WireFixed32 + case "fixed64": + p.WireType = WireFixed64 + case "zigzag32": + p.WireType = WireVarint + case "zigzag64": + p.WireType = WireVarint + case "bytes", "group": + p.WireType = WireBytes + // no numeric converter for non-numeric types + default: + fmt.Fprintf(os.Stderr, "proto: tag has unknown wire type: %q\n", s) + return + } + + var err error + p.Tag, err = strconv.Atoi(fields[1]) + if err != nil { + return + } + +outer: + for i := 2; i < len(fields); i++ { + f := fields[i] + switch { + case f == "req": + p.Required = true + case f == "opt": + p.Optional = true + case f == "rep": + p.Repeated = true + case f == "packed": + p.Packed = true + case strings.HasPrefix(f, "name="): + p.OrigName = f[5:] + case strings.HasPrefix(f, "json="): + p.JSONName = f[5:] + case strings.HasPrefix(f, "enum="): + p.Enum = f[5:] + case f == "proto3": + p.proto3 = true + case f == "oneof": + p.oneof = true + case strings.HasPrefix(f, "def="): + p.HasDefault = true + p.Default = f[4:] // rest of string + if i+1 < len(fields) { + // Commas aren't escaped, and def is always last. + p.Default += "," + strings.Join(fields[i+1:], ",") + break outer + } + } + } +} + +var protoMessageType = reflect.TypeOf((*Message)(nil)).Elem() + +// setFieldProps initializes the field properties for submessages and maps. +func (p *Properties) setFieldProps(typ reflect.Type, f *reflect.StructField, lockGetProp bool) { + switch t1 := typ; t1.Kind() { + case reflect.Ptr: + if t1.Elem().Kind() == reflect.Struct { + p.stype = t1.Elem() + } + + case reflect.Slice: + if t2 := t1.Elem(); t2.Kind() == reflect.Ptr && t2.Elem().Kind() == reflect.Struct { + p.stype = t2.Elem() + } + + case reflect.Map: + p.mtype = t1 + p.MapKeyProp = &Properties{} + p.MapKeyProp.init(reflect.PtrTo(p.mtype.Key()), "Key", f.Tag.Get("protobuf_key"), nil, lockGetProp) + p.MapValProp = &Properties{} + vtype := p.mtype.Elem() + if vtype.Kind() != reflect.Ptr && vtype.Kind() != reflect.Slice { + // The value type is not a message (*T) or bytes ([]byte), + // so we need encoders for the pointer to this type. + vtype = reflect.PtrTo(vtype) + } + p.MapValProp.init(vtype, "Value", f.Tag.Get("protobuf_val"), nil, lockGetProp) + } + + if p.stype != nil { + if lockGetProp { + p.sprop = GetProperties(p.stype) + } else { + p.sprop = getPropertiesLocked(p.stype) + } + } +} + +var ( + marshalerType = reflect.TypeOf((*Marshaler)(nil)).Elem() +) + +// Init populates the properties from a protocol buffer struct tag. +func (p *Properties) Init(typ reflect.Type, name, tag string, f *reflect.StructField) { + p.init(typ, name, tag, f, true) +} + +func (p *Properties) init(typ reflect.Type, name, tag string, f *reflect.StructField, lockGetProp bool) { + // "bytes,49,opt,def=hello!" + p.Name = name + p.OrigName = name + if tag == "" { + return + } + p.Parse(tag) + p.setFieldProps(typ, f, lockGetProp) +} + +var ( + propertiesMu sync.RWMutex + propertiesMap = make(map[reflect.Type]*StructProperties) +) + +// GetProperties returns the list of properties for the type represented by t. +// t must represent a generated struct type of a protocol message. +func GetProperties(t reflect.Type) *StructProperties { + if t.Kind() != reflect.Struct { + panic("proto: type must have kind struct") + } + + // Most calls to GetProperties in a long-running program will be + // retrieving details for types we have seen before. + propertiesMu.RLock() + sprop, ok := propertiesMap[t] + propertiesMu.RUnlock() + if ok { + if collectStats { + stats.Chit++ + } + return sprop + } + + propertiesMu.Lock() + sprop = getPropertiesLocked(t) + propertiesMu.Unlock() + return sprop +} + +// getPropertiesLocked requires that propertiesMu is held. +func getPropertiesLocked(t reflect.Type) *StructProperties { + if prop, ok := propertiesMap[t]; ok { + if collectStats { + stats.Chit++ + } + return prop + } + if collectStats { + stats.Cmiss++ + } + + prop := new(StructProperties) + // in case of recursive protos, fill this in now. + propertiesMap[t] = prop + + // build properties + prop.Prop = make([]*Properties, t.NumField()) + prop.order = make([]int, t.NumField()) + + for i := 0; i < t.NumField(); i++ { + f := t.Field(i) + p := new(Properties) + name := f.Name + p.init(f.Type, name, f.Tag.Get("protobuf"), &f, false) + + oneof := f.Tag.Get("protobuf_oneof") // special case + if oneof != "" { + // Oneof fields don't use the traditional protobuf tag. + p.OrigName = oneof + } + prop.Prop[i] = p + prop.order[i] = i + if debug { + print(i, " ", f.Name, " ", t.String(), " ") + if p.Tag > 0 { + print(p.String()) + } + print("\n") + } + } + + // Re-order prop.order. + sort.Sort(prop) + + type oneofMessage interface { + XXX_OneofFuncs() (func(Message, *Buffer) error, func(Message, int, int, *Buffer) (bool, error), func(Message) int, []interface{}) + } + if om, ok := reflect.Zero(reflect.PtrTo(t)).Interface().(oneofMessage); ok { + var oots []interface{} + _, _, _, oots = om.XXX_OneofFuncs() + + // Interpret oneof metadata. + prop.OneofTypes = make(map[string]*OneofProperties) + for _, oot := range oots { + oop := &OneofProperties{ + Type: reflect.ValueOf(oot).Type(), // *T + Prop: new(Properties), + } + sft := oop.Type.Elem().Field(0) + oop.Prop.Name = sft.Name + oop.Prop.Parse(sft.Tag.Get("protobuf")) + // There will be exactly one interface field that + // this new value is assignable to. + for i := 0; i < t.NumField(); i++ { + f := t.Field(i) + if f.Type.Kind() != reflect.Interface { + continue + } + if !oop.Type.AssignableTo(f.Type) { + continue + } + oop.Field = i + break + } + prop.OneofTypes[oop.Prop.OrigName] = oop + } + } + + // build required counts + // build tags + reqCount := 0 + prop.decoderOrigNames = make(map[string]int) + for i, p := range prop.Prop { + if strings.HasPrefix(p.Name, "XXX_") { + // Internal fields should not appear in tags/origNames maps. + // They are handled specially when encoding and decoding. + continue + } + if p.Required { + reqCount++ + } + prop.decoderTags.put(p.Tag, i) + prop.decoderOrigNames[p.OrigName] = i + } + prop.reqCount = reqCount + + return prop +} + +// A global registry of enum types. +// The generated code will register the generated maps by calling RegisterEnum. + +var enumValueMaps = make(map[string]map[string]int32) + +// RegisterEnum is called from the generated code to install the enum descriptor +// maps into the global table to aid parsing text format protocol buffers. +func RegisterEnum(typeName string, unusedNameMap map[int32]string, valueMap map[string]int32) { + if _, ok := enumValueMaps[typeName]; ok { + panic("proto: duplicate enum registered: " + typeName) + } + enumValueMaps[typeName] = valueMap +} + +// EnumValueMap returns the mapping from names to integers of the +// enum type enumType, or a nil if not found. +func EnumValueMap(enumType string) map[string]int32 { + return enumValueMaps[enumType] +} + +// A registry of all linked message types. +// The string is a fully-qualified proto name ("pkg.Message"). +var ( + protoTypedNils = make(map[string]Message) // a map from proto names to typed nil pointers + protoMapTypes = make(map[string]reflect.Type) // a map from proto names to map types + revProtoTypes = make(map[reflect.Type]string) +) + +// RegisterType is called from generated code and maps from the fully qualified +// proto name to the type (pointer to struct) of the protocol buffer. +func RegisterType(x Message, name string) { + if _, ok := protoTypedNils[name]; ok { + // TODO: Some day, make this a panic. + log.Printf("proto: duplicate proto type registered: %s", name) + return + } + t := reflect.TypeOf(x) + if v := reflect.ValueOf(x); v.Kind() == reflect.Ptr && v.Pointer() == 0 { + // Generated code always calls RegisterType with nil x. + // This check is just for extra safety. + protoTypedNils[name] = x + } else { + protoTypedNils[name] = reflect.Zero(t).Interface().(Message) + } + revProtoTypes[t] = name +} + +// RegisterMapType is called from generated code and maps from the fully qualified +// proto name to the native map type of the proto map definition. +func RegisterMapType(x interface{}, name string) { + if reflect.TypeOf(x).Kind() != reflect.Map { + panic(fmt.Sprintf("RegisterMapType(%T, %q); want map", x, name)) + } + if _, ok := protoMapTypes[name]; ok { + log.Printf("proto: duplicate proto type registered: %s", name) + return + } + t := reflect.TypeOf(x) + protoMapTypes[name] = t + revProtoTypes[t] = name +} + +// MessageName returns the fully-qualified proto name for the given message type. +func MessageName(x Message) string { + type xname interface { + XXX_MessageName() string + } + if m, ok := x.(xname); ok { + return m.XXX_MessageName() + } + return revProtoTypes[reflect.TypeOf(x)] +} + +// MessageType returns the message type (pointer to struct) for a named message. +// The type is not guaranteed to implement proto.Message if the name refers to a +// map entry. +func MessageType(name string) reflect.Type { + if t, ok := protoTypedNils[name]; ok { + return reflect.TypeOf(t) + } + return protoMapTypes[name] +} + +// A registry of all linked proto files. +var ( + protoFiles = make(map[string][]byte) // file name => fileDescriptor +) + +// RegisterFile is called from generated code and maps from the +// full file name of a .proto file to its compressed FileDescriptorProto. +func RegisterFile(filename string, fileDescriptor []byte) { + protoFiles[filename] = fileDescriptor +} + +// FileDescriptor returns the compressed FileDescriptorProto for a .proto file. +func FileDescriptor(filename string) []byte { return protoFiles[filename] } diff --git a/vendor/github.com/golang/protobuf/proto/table_marshal.go b/vendor/github.com/golang/protobuf/proto/table_marshal.go new file mode 100644 index 0000000..5a98be7 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/table_marshal.go @@ -0,0 +1,2755 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2016 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +import ( + "errors" + "fmt" + "math" + "reflect" + "sort" + "strconv" + "strings" + "sync" + "sync/atomic" + "unicode/utf8" +) + +// a sizer takes a pointer to a field and the size of its tag, computes the size of +// the encoded data. +type sizer func(pointer, int) int + +// a marshaler takes a byte slice, a pointer to a field, and its tag (in wire format), +// marshals the field to the end of the slice, returns the slice and error (if any). +type marshaler func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) + +// marshalInfo is the information used for marshaling a message. +type marshalInfo struct { + typ reflect.Type + fields []*marshalFieldInfo + unrecognized field // offset of XXX_unrecognized + extensions field // offset of XXX_InternalExtensions + v1extensions field // offset of XXX_extensions + sizecache field // offset of XXX_sizecache + initialized int32 // 0 -- only typ is set, 1 -- fully initialized + messageset bool // uses message set wire format + hasmarshaler bool // has custom marshaler + sync.RWMutex // protect extElems map, also for initialization + extElems map[int32]*marshalElemInfo // info of extension elements +} + +// marshalFieldInfo is the information used for marshaling a field of a message. +type marshalFieldInfo struct { + field field + wiretag uint64 // tag in wire format + tagsize int // size of tag in wire format + sizer sizer + marshaler marshaler + isPointer bool + required bool // field is required + name string // name of the field, for error reporting + oneofElems map[reflect.Type]*marshalElemInfo // info of oneof elements +} + +// marshalElemInfo is the information used for marshaling an extension or oneof element. +type marshalElemInfo struct { + wiretag uint64 // tag in wire format + tagsize int // size of tag in wire format + sizer sizer + marshaler marshaler + isptr bool // elem is pointer typed, thus interface of this type is a direct interface (extension only) +} + +var ( + marshalInfoMap = map[reflect.Type]*marshalInfo{} + marshalInfoLock sync.Mutex +) + +// getMarshalInfo returns the information to marshal a given type of message. +// The info it returns may not necessarily initialized. +// t is the type of the message (NOT the pointer to it). +func getMarshalInfo(t reflect.Type) *marshalInfo { + marshalInfoLock.Lock() + u, ok := marshalInfoMap[t] + if !ok { + u = &marshalInfo{typ: t} + marshalInfoMap[t] = u + } + marshalInfoLock.Unlock() + return u +} + +// Size is the entry point from generated code, +// and should be ONLY called by generated code. +// It computes the size of encoded data of msg. +// a is a pointer to a place to store cached marshal info. +func (a *InternalMessageInfo) Size(msg Message) int { + u := getMessageMarshalInfo(msg, a) + ptr := toPointer(&msg) + if ptr.isNil() { + // We get here if msg is a typed nil ((*SomeMessage)(nil)), + // so it satisfies the interface, and msg == nil wouldn't + // catch it. We don't want crash in this case. + return 0 + } + return u.size(ptr) +} + +// Marshal is the entry point from generated code, +// and should be ONLY called by generated code. +// It marshals msg to the end of b. +// a is a pointer to a place to store cached marshal info. +func (a *InternalMessageInfo) Marshal(b []byte, msg Message, deterministic bool) ([]byte, error) { + u := getMessageMarshalInfo(msg, a) + ptr := toPointer(&msg) + if ptr.isNil() { + // We get here if msg is a typed nil ((*SomeMessage)(nil)), + // so it satisfies the interface, and msg == nil wouldn't + // catch it. We don't want crash in this case. + return b, ErrNil + } + return u.marshal(b, ptr, deterministic) +} + +func getMessageMarshalInfo(msg interface{}, a *InternalMessageInfo) *marshalInfo { + // u := a.marshal, but atomically. + // We use an atomic here to ensure memory consistency. + u := atomicLoadMarshalInfo(&a.marshal) + if u == nil { + // Get marshal information from type of message. + t := reflect.ValueOf(msg).Type() + if t.Kind() != reflect.Ptr { + panic(fmt.Sprintf("cannot handle non-pointer message type %v", t)) + } + u = getMarshalInfo(t.Elem()) + // Store it in the cache for later users. + // a.marshal = u, but atomically. + atomicStoreMarshalInfo(&a.marshal, u) + } + return u +} + +// size is the main function to compute the size of the encoded data of a message. +// ptr is the pointer to the message. +func (u *marshalInfo) size(ptr pointer) int { + if atomic.LoadInt32(&u.initialized) == 0 { + u.computeMarshalInfo() + } + + // If the message can marshal itself, let it do it, for compatibility. + // NOTE: This is not efficient. + if u.hasmarshaler { + m := ptr.asPointerTo(u.typ).Interface().(Marshaler) + b, _ := m.Marshal() + return len(b) + } + + n := 0 + for _, f := range u.fields { + if f.isPointer && ptr.offset(f.field).getPointer().isNil() { + // nil pointer always marshals to nothing + continue + } + n += f.sizer(ptr.offset(f.field), f.tagsize) + } + if u.extensions.IsValid() { + e := ptr.offset(u.extensions).toExtensions() + if u.messageset { + n += u.sizeMessageSet(e) + } else { + n += u.sizeExtensions(e) + } + } + if u.v1extensions.IsValid() { + m := *ptr.offset(u.v1extensions).toOldExtensions() + n += u.sizeV1Extensions(m) + } + if u.unrecognized.IsValid() { + s := *ptr.offset(u.unrecognized).toBytes() + n += len(s) + } + // cache the result for use in marshal + if u.sizecache.IsValid() { + atomic.StoreInt32(ptr.offset(u.sizecache).toInt32(), int32(n)) + } + return n +} + +// cachedsize gets the size from cache. If there is no cache (i.e. message is not generated), +// fall back to compute the size. +func (u *marshalInfo) cachedsize(ptr pointer) int { + if u.sizecache.IsValid() { + return int(atomic.LoadInt32(ptr.offset(u.sizecache).toInt32())) + } + return u.size(ptr) +} + +// marshal is the main function to marshal a message. It takes a byte slice and appends +// the encoded data to the end of the slice, returns the slice and error (if any). +// ptr is the pointer to the message. +// If deterministic is true, map is marshaled in deterministic order. +func (u *marshalInfo) marshal(b []byte, ptr pointer, deterministic bool) ([]byte, error) { + if atomic.LoadInt32(&u.initialized) == 0 { + u.computeMarshalInfo() + } + + // If the message can marshal itself, let it do it, for compatibility. + // NOTE: This is not efficient. + if u.hasmarshaler { + m := ptr.asPointerTo(u.typ).Interface().(Marshaler) + b1, err := m.Marshal() + b = append(b, b1...) + return b, err + } + + var err, errreq error + // The old marshaler encodes extensions at beginning. + if u.extensions.IsValid() { + e := ptr.offset(u.extensions).toExtensions() + if u.messageset { + b, err = u.appendMessageSet(b, e, deterministic) + } else { + b, err = u.appendExtensions(b, e, deterministic) + } + if err != nil { + return b, err + } + } + if u.v1extensions.IsValid() { + m := *ptr.offset(u.v1extensions).toOldExtensions() + b, err = u.appendV1Extensions(b, m, deterministic) + if err != nil { + return b, err + } + } + for _, f := range u.fields { + if f.required && errreq == nil { + if ptr.offset(f.field).getPointer().isNil() { + // Required field is not set. + // We record the error but keep going, to give a complete marshaling. + errreq = &RequiredNotSetError{f.name} + continue + } + } + if f.isPointer && ptr.offset(f.field).getPointer().isNil() { + // nil pointer always marshals to nothing + continue + } + b, err = f.marshaler(b, ptr.offset(f.field), f.wiretag, deterministic) + if err != nil { + if err1, ok := err.(*RequiredNotSetError); ok { + // Required field in submessage is not set. + // We record the error but keep going, to give a complete marshaling. + if errreq == nil { + errreq = &RequiredNotSetError{f.name + "." + err1.field} + } + continue + } + if err == errRepeatedHasNil { + err = errors.New("proto: repeated field " + f.name + " has nil element") + } + if err == errInvalidUTF8 { + fullName := revProtoTypes[reflect.PtrTo(u.typ)] + "." + f.name + err = fmt.Errorf("proto: string field %q contains invalid UTF-8", fullName) + } + return b, err + } + } + if u.unrecognized.IsValid() { + s := *ptr.offset(u.unrecognized).toBytes() + b = append(b, s...) + } + return b, errreq +} + +// computeMarshalInfo initializes the marshal info. +func (u *marshalInfo) computeMarshalInfo() { + u.Lock() + defer u.Unlock() + if u.initialized != 0 { // non-atomic read is ok as it is protected by the lock + return + } + + t := u.typ + u.unrecognized = invalidField + u.extensions = invalidField + u.v1extensions = invalidField + u.sizecache = invalidField + + // If the message can marshal itself, let it do it, for compatibility. + // NOTE: This is not efficient. + if reflect.PtrTo(t).Implements(marshalerType) { + u.hasmarshaler = true + atomic.StoreInt32(&u.initialized, 1) + return + } + + // get oneof implementers + var oneofImplementers []interface{} + if m, ok := reflect.Zero(reflect.PtrTo(t)).Interface().(oneofMessage); ok { + _, _, _, oneofImplementers = m.XXX_OneofFuncs() + } + + n := t.NumField() + + // deal with XXX fields first + for i := 0; i < t.NumField(); i++ { + f := t.Field(i) + if !strings.HasPrefix(f.Name, "XXX_") { + continue + } + switch f.Name { + case "XXX_sizecache": + u.sizecache = toField(&f) + case "XXX_unrecognized": + u.unrecognized = toField(&f) + case "XXX_InternalExtensions": + u.extensions = toField(&f) + u.messageset = f.Tag.Get("protobuf_messageset") == "1" + case "XXX_extensions": + u.v1extensions = toField(&f) + case "XXX_NoUnkeyedLiteral": + // nothing to do + default: + panic("unknown XXX field: " + f.Name) + } + n-- + } + + // normal fields + fields := make([]marshalFieldInfo, n) // batch allocation + u.fields = make([]*marshalFieldInfo, 0, n) + for i, j := 0, 0; i < t.NumField(); i++ { + f := t.Field(i) + + if strings.HasPrefix(f.Name, "XXX_") { + continue + } + field := &fields[j] + j++ + field.name = f.Name + u.fields = append(u.fields, field) + if f.Tag.Get("protobuf_oneof") != "" { + field.computeOneofFieldInfo(&f, oneofImplementers) + continue + } + if f.Tag.Get("protobuf") == "" { + // field has no tag (not in generated message), ignore it + u.fields = u.fields[:len(u.fields)-1] + j-- + continue + } + field.computeMarshalFieldInfo(&f) + } + + // fields are marshaled in tag order on the wire. + sort.Sort(byTag(u.fields)) + + atomic.StoreInt32(&u.initialized, 1) +} + +// helper for sorting fields by tag +type byTag []*marshalFieldInfo + +func (a byTag) Len() int { return len(a) } +func (a byTag) Swap(i, j int) { a[i], a[j] = a[j], a[i] } +func (a byTag) Less(i, j int) bool { return a[i].wiretag < a[j].wiretag } + +// getExtElemInfo returns the information to marshal an extension element. +// The info it returns is initialized. +func (u *marshalInfo) getExtElemInfo(desc *ExtensionDesc) *marshalElemInfo { + // get from cache first + u.RLock() + e, ok := u.extElems[desc.Field] + u.RUnlock() + if ok { + return e + } + + t := reflect.TypeOf(desc.ExtensionType) // pointer or slice to basic type or struct + tags := strings.Split(desc.Tag, ",") + tag, err := strconv.Atoi(tags[1]) + if err != nil { + panic("tag is not an integer") + } + wt := wiretype(tags[0]) + sizer, marshaler := typeMarshaler(t, tags, false, false) + e = &marshalElemInfo{ + wiretag: uint64(tag)<<3 | wt, + tagsize: SizeVarint(uint64(tag) << 3), + sizer: sizer, + marshaler: marshaler, + isptr: t.Kind() == reflect.Ptr, + } + + // update cache + u.Lock() + if u.extElems == nil { + u.extElems = make(map[int32]*marshalElemInfo) + } + u.extElems[desc.Field] = e + u.Unlock() + return e +} + +// computeMarshalFieldInfo fills up the information to marshal a field. +func (fi *marshalFieldInfo) computeMarshalFieldInfo(f *reflect.StructField) { + // parse protobuf tag of the field. + // tag has format of "bytes,49,opt,name=foo,def=hello!" + tags := strings.Split(f.Tag.Get("protobuf"), ",") + if tags[0] == "" { + return + } + tag, err := strconv.Atoi(tags[1]) + if err != nil { + panic("tag is not an integer") + } + wt := wiretype(tags[0]) + if tags[2] == "req" { + fi.required = true + } + fi.setTag(f, tag, wt) + fi.setMarshaler(f, tags) +} + +func (fi *marshalFieldInfo) computeOneofFieldInfo(f *reflect.StructField, oneofImplementers []interface{}) { + fi.field = toField(f) + fi.wiretag = 1<<31 - 1 // Use a large tag number, make oneofs sorted at the end. This tag will not appear on the wire. + fi.isPointer = true + fi.sizer, fi.marshaler = makeOneOfMarshaler(fi, f) + fi.oneofElems = make(map[reflect.Type]*marshalElemInfo) + + ityp := f.Type // interface type + for _, o := range oneofImplementers { + t := reflect.TypeOf(o) + if !t.Implements(ityp) { + continue + } + sf := t.Elem().Field(0) // oneof implementer is a struct with a single field + tags := strings.Split(sf.Tag.Get("protobuf"), ",") + tag, err := strconv.Atoi(tags[1]) + if err != nil { + panic("tag is not an integer") + } + wt := wiretype(tags[0]) + sizer, marshaler := typeMarshaler(sf.Type, tags, false, true) // oneof should not omit any zero value + fi.oneofElems[t.Elem()] = &marshalElemInfo{ + wiretag: uint64(tag)<<3 | wt, + tagsize: SizeVarint(uint64(tag) << 3), + sizer: sizer, + marshaler: marshaler, + } + } +} + +type oneofMessage interface { + XXX_OneofFuncs() (func(Message, *Buffer) error, func(Message, int, int, *Buffer) (bool, error), func(Message) int, []interface{}) +} + +// wiretype returns the wire encoding of the type. +func wiretype(encoding string) uint64 { + switch encoding { + case "fixed32": + return WireFixed32 + case "fixed64": + return WireFixed64 + case "varint", "zigzag32", "zigzag64": + return WireVarint + case "bytes": + return WireBytes + case "group": + return WireStartGroup + } + panic("unknown wire type " + encoding) +} + +// setTag fills up the tag (in wire format) and its size in the info of a field. +func (fi *marshalFieldInfo) setTag(f *reflect.StructField, tag int, wt uint64) { + fi.field = toField(f) + fi.wiretag = uint64(tag)<<3 | wt + fi.tagsize = SizeVarint(uint64(tag) << 3) +} + +// setMarshaler fills up the sizer and marshaler in the info of a field. +func (fi *marshalFieldInfo) setMarshaler(f *reflect.StructField, tags []string) { + switch f.Type.Kind() { + case reflect.Map: + // map field + fi.isPointer = true + fi.sizer, fi.marshaler = makeMapMarshaler(f) + return + case reflect.Ptr, reflect.Slice: + fi.isPointer = true + } + fi.sizer, fi.marshaler = typeMarshaler(f.Type, tags, true, false) +} + +// typeMarshaler returns the sizer and marshaler of a given field. +// t is the type of the field. +// tags is the generated "protobuf" tag of the field. +// If nozero is true, zero value is not marshaled to the wire. +// If oneof is true, it is a oneof field. +func typeMarshaler(t reflect.Type, tags []string, nozero, oneof bool) (sizer, marshaler) { + encoding := tags[0] + + pointer := false + slice := false + if t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8 { + slice = true + t = t.Elem() + } + if t.Kind() == reflect.Ptr { + pointer = true + t = t.Elem() + } + + packed := false + proto3 := false + validateUTF8 := true + for i := 2; i < len(tags); i++ { + if tags[i] == "packed" { + packed = true + } + if tags[i] == "proto3" { + proto3 = true + } + } + validateUTF8 = validateUTF8 && proto3 + + switch t.Kind() { + case reflect.Bool: + if pointer { + return sizeBoolPtr, appendBoolPtr + } + if slice { + if packed { + return sizeBoolPackedSlice, appendBoolPackedSlice + } + return sizeBoolSlice, appendBoolSlice + } + if nozero { + return sizeBoolValueNoZero, appendBoolValueNoZero + } + return sizeBoolValue, appendBoolValue + case reflect.Uint32: + switch encoding { + case "fixed32": + if pointer { + return sizeFixed32Ptr, appendFixed32Ptr + } + if slice { + if packed { + return sizeFixed32PackedSlice, appendFixed32PackedSlice + } + return sizeFixed32Slice, appendFixed32Slice + } + if nozero { + return sizeFixed32ValueNoZero, appendFixed32ValueNoZero + } + return sizeFixed32Value, appendFixed32Value + case "varint": + if pointer { + return sizeVarint32Ptr, appendVarint32Ptr + } + if slice { + if packed { + return sizeVarint32PackedSlice, appendVarint32PackedSlice + } + return sizeVarint32Slice, appendVarint32Slice + } + if nozero { + return sizeVarint32ValueNoZero, appendVarint32ValueNoZero + } + return sizeVarint32Value, appendVarint32Value + } + case reflect.Int32: + switch encoding { + case "fixed32": + if pointer { + return sizeFixedS32Ptr, appendFixedS32Ptr + } + if slice { + if packed { + return sizeFixedS32PackedSlice, appendFixedS32PackedSlice + } + return sizeFixedS32Slice, appendFixedS32Slice + } + if nozero { + return sizeFixedS32ValueNoZero, appendFixedS32ValueNoZero + } + return sizeFixedS32Value, appendFixedS32Value + case "varint": + if pointer { + return sizeVarintS32Ptr, appendVarintS32Ptr + } + if slice { + if packed { + return sizeVarintS32PackedSlice, appendVarintS32PackedSlice + } + return sizeVarintS32Slice, appendVarintS32Slice + } + if nozero { + return sizeVarintS32ValueNoZero, appendVarintS32ValueNoZero + } + return sizeVarintS32Value, appendVarintS32Value + case "zigzag32": + if pointer { + return sizeZigzag32Ptr, appendZigzag32Ptr + } + if slice { + if packed { + return sizeZigzag32PackedSlice, appendZigzag32PackedSlice + } + return sizeZigzag32Slice, appendZigzag32Slice + } + if nozero { + return sizeZigzag32ValueNoZero, appendZigzag32ValueNoZero + } + return sizeZigzag32Value, appendZigzag32Value + } + case reflect.Uint64: + switch encoding { + case "fixed64": + if pointer { + return sizeFixed64Ptr, appendFixed64Ptr + } + if slice { + if packed { + return sizeFixed64PackedSlice, appendFixed64PackedSlice + } + return sizeFixed64Slice, appendFixed64Slice + } + if nozero { + return sizeFixed64ValueNoZero, appendFixed64ValueNoZero + } + return sizeFixed64Value, appendFixed64Value + case "varint": + if pointer { + return sizeVarint64Ptr, appendVarint64Ptr + } + if slice { + if packed { + return sizeVarint64PackedSlice, appendVarint64PackedSlice + } + return sizeVarint64Slice, appendVarint64Slice + } + if nozero { + return sizeVarint64ValueNoZero, appendVarint64ValueNoZero + } + return sizeVarint64Value, appendVarint64Value + } + case reflect.Int64: + switch encoding { + case "fixed64": + if pointer { + return sizeFixedS64Ptr, appendFixedS64Ptr + } + if slice { + if packed { + return sizeFixedS64PackedSlice, appendFixedS64PackedSlice + } + return sizeFixedS64Slice, appendFixedS64Slice + } + if nozero { + return sizeFixedS64ValueNoZero, appendFixedS64ValueNoZero + } + return sizeFixedS64Value, appendFixedS64Value + case "varint": + if pointer { + return sizeVarintS64Ptr, appendVarintS64Ptr + } + if slice { + if packed { + return sizeVarintS64PackedSlice, appendVarintS64PackedSlice + } + return sizeVarintS64Slice, appendVarintS64Slice + } + if nozero { + return sizeVarintS64ValueNoZero, appendVarintS64ValueNoZero + } + return sizeVarintS64Value, appendVarintS64Value + case "zigzag64": + if pointer { + return sizeZigzag64Ptr, appendZigzag64Ptr + } + if slice { + if packed { + return sizeZigzag64PackedSlice, appendZigzag64PackedSlice + } + return sizeZigzag64Slice, appendZigzag64Slice + } + if nozero { + return sizeZigzag64ValueNoZero, appendZigzag64ValueNoZero + } + return sizeZigzag64Value, appendZigzag64Value + } + case reflect.Float32: + if pointer { + return sizeFloat32Ptr, appendFloat32Ptr + } + if slice { + if packed { + return sizeFloat32PackedSlice, appendFloat32PackedSlice + } + return sizeFloat32Slice, appendFloat32Slice + } + if nozero { + return sizeFloat32ValueNoZero, appendFloat32ValueNoZero + } + return sizeFloat32Value, appendFloat32Value + case reflect.Float64: + if pointer { + return sizeFloat64Ptr, appendFloat64Ptr + } + if slice { + if packed { + return sizeFloat64PackedSlice, appendFloat64PackedSlice + } + return sizeFloat64Slice, appendFloat64Slice + } + if nozero { + return sizeFloat64ValueNoZero, appendFloat64ValueNoZero + } + return sizeFloat64Value, appendFloat64Value + case reflect.String: + if validateUTF8 { + if pointer { + return sizeStringPtr, appendUTF8StringPtr + } + if slice { + return sizeStringSlice, appendUTF8StringSlice + } + if nozero { + return sizeStringValueNoZero, appendUTF8StringValueNoZero + } + return sizeStringValue, appendUTF8StringValue + } + if pointer { + return sizeStringPtr, appendStringPtr + } + if slice { + return sizeStringSlice, appendStringSlice + } + if nozero { + return sizeStringValueNoZero, appendStringValueNoZero + } + return sizeStringValue, appendStringValue + case reflect.Slice: + if slice { + return sizeBytesSlice, appendBytesSlice + } + if oneof { + // Oneof bytes field may also have "proto3" tag. + // We want to marshal it as a oneof field. Do this + // check before the proto3 check. + return sizeBytesOneof, appendBytesOneof + } + if proto3 { + return sizeBytes3, appendBytes3 + } + return sizeBytes, appendBytes + case reflect.Struct: + switch encoding { + case "group": + if slice { + return makeGroupSliceMarshaler(getMarshalInfo(t)) + } + return makeGroupMarshaler(getMarshalInfo(t)) + case "bytes": + if slice { + return makeMessageSliceMarshaler(getMarshalInfo(t)) + } + return makeMessageMarshaler(getMarshalInfo(t)) + } + } + panic(fmt.Sprintf("unknown or mismatched type: type: %v, wire type: %v", t, encoding)) +} + +// Below are functions to size/marshal a specific type of a field. +// They are stored in the field's info, and called by function pointers. +// They have type sizer or marshaler. + +func sizeFixed32Value(_ pointer, tagsize int) int { + return 4 + tagsize +} +func sizeFixed32ValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toUint32() + if v == 0 { + return 0 + } + return 4 + tagsize +} +func sizeFixed32Ptr(ptr pointer, tagsize int) int { + p := *ptr.toUint32Ptr() + if p == nil { + return 0 + } + return 4 + tagsize +} +func sizeFixed32Slice(ptr pointer, tagsize int) int { + s := *ptr.toUint32Slice() + return (4 + tagsize) * len(s) +} +func sizeFixed32PackedSlice(ptr pointer, tagsize int) int { + s := *ptr.toUint32Slice() + if len(s) == 0 { + return 0 + } + return 4*len(s) + SizeVarint(uint64(4*len(s))) + tagsize +} +func sizeFixedS32Value(_ pointer, tagsize int) int { + return 4 + tagsize +} +func sizeFixedS32ValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toInt32() + if v == 0 { + return 0 + } + return 4 + tagsize +} +func sizeFixedS32Ptr(ptr pointer, tagsize int) int { + p := ptr.getInt32Ptr() + if p == nil { + return 0 + } + return 4 + tagsize +} +func sizeFixedS32Slice(ptr pointer, tagsize int) int { + s := ptr.getInt32Slice() + return (4 + tagsize) * len(s) +} +func sizeFixedS32PackedSlice(ptr pointer, tagsize int) int { + s := ptr.getInt32Slice() + if len(s) == 0 { + return 0 + } + return 4*len(s) + SizeVarint(uint64(4*len(s))) + tagsize +} +func sizeFloat32Value(_ pointer, tagsize int) int { + return 4 + tagsize +} +func sizeFloat32ValueNoZero(ptr pointer, tagsize int) int { + v := math.Float32bits(*ptr.toFloat32()) + if v == 0 { + return 0 + } + return 4 + tagsize +} +func sizeFloat32Ptr(ptr pointer, tagsize int) int { + p := *ptr.toFloat32Ptr() + if p == nil { + return 0 + } + return 4 + tagsize +} +func sizeFloat32Slice(ptr pointer, tagsize int) int { + s := *ptr.toFloat32Slice() + return (4 + tagsize) * len(s) +} +func sizeFloat32PackedSlice(ptr pointer, tagsize int) int { + s := *ptr.toFloat32Slice() + if len(s) == 0 { + return 0 + } + return 4*len(s) + SizeVarint(uint64(4*len(s))) + tagsize +} +func sizeFixed64Value(_ pointer, tagsize int) int { + return 8 + tagsize +} +func sizeFixed64ValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toUint64() + if v == 0 { + return 0 + } + return 8 + tagsize +} +func sizeFixed64Ptr(ptr pointer, tagsize int) int { + p := *ptr.toUint64Ptr() + if p == nil { + return 0 + } + return 8 + tagsize +} +func sizeFixed64Slice(ptr pointer, tagsize int) int { + s := *ptr.toUint64Slice() + return (8 + tagsize) * len(s) +} +func sizeFixed64PackedSlice(ptr pointer, tagsize int) int { + s := *ptr.toUint64Slice() + if len(s) == 0 { + return 0 + } + return 8*len(s) + SizeVarint(uint64(8*len(s))) + tagsize +} +func sizeFixedS64Value(_ pointer, tagsize int) int { + return 8 + tagsize +} +func sizeFixedS64ValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toInt64() + if v == 0 { + return 0 + } + return 8 + tagsize +} +func sizeFixedS64Ptr(ptr pointer, tagsize int) int { + p := *ptr.toInt64Ptr() + if p == nil { + return 0 + } + return 8 + tagsize +} +func sizeFixedS64Slice(ptr pointer, tagsize int) int { + s := *ptr.toInt64Slice() + return (8 + tagsize) * len(s) +} +func sizeFixedS64PackedSlice(ptr pointer, tagsize int) int { + s := *ptr.toInt64Slice() + if len(s) == 0 { + return 0 + } + return 8*len(s) + SizeVarint(uint64(8*len(s))) + tagsize +} +func sizeFloat64Value(_ pointer, tagsize int) int { + return 8 + tagsize +} +func sizeFloat64ValueNoZero(ptr pointer, tagsize int) int { + v := math.Float64bits(*ptr.toFloat64()) + if v == 0 { + return 0 + } + return 8 + tagsize +} +func sizeFloat64Ptr(ptr pointer, tagsize int) int { + p := *ptr.toFloat64Ptr() + if p == nil { + return 0 + } + return 8 + tagsize +} +func sizeFloat64Slice(ptr pointer, tagsize int) int { + s := *ptr.toFloat64Slice() + return (8 + tagsize) * len(s) +} +func sizeFloat64PackedSlice(ptr pointer, tagsize int) int { + s := *ptr.toFloat64Slice() + if len(s) == 0 { + return 0 + } + return 8*len(s) + SizeVarint(uint64(8*len(s))) + tagsize +} +func sizeVarint32Value(ptr pointer, tagsize int) int { + v := *ptr.toUint32() + return SizeVarint(uint64(v)) + tagsize +} +func sizeVarint32ValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toUint32() + if v == 0 { + return 0 + } + return SizeVarint(uint64(v)) + tagsize +} +func sizeVarint32Ptr(ptr pointer, tagsize int) int { + p := *ptr.toUint32Ptr() + if p == nil { + return 0 + } + return SizeVarint(uint64(*p)) + tagsize +} +func sizeVarint32Slice(ptr pointer, tagsize int) int { + s := *ptr.toUint32Slice() + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v)) + tagsize + } + return n +} +func sizeVarint32PackedSlice(ptr pointer, tagsize int) int { + s := *ptr.toUint32Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v)) + } + return n + SizeVarint(uint64(n)) + tagsize +} +func sizeVarintS32Value(ptr pointer, tagsize int) int { + v := *ptr.toInt32() + return SizeVarint(uint64(v)) + tagsize +} +func sizeVarintS32ValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toInt32() + if v == 0 { + return 0 + } + return SizeVarint(uint64(v)) + tagsize +} +func sizeVarintS32Ptr(ptr pointer, tagsize int) int { + p := ptr.getInt32Ptr() + if p == nil { + return 0 + } + return SizeVarint(uint64(*p)) + tagsize +} +func sizeVarintS32Slice(ptr pointer, tagsize int) int { + s := ptr.getInt32Slice() + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v)) + tagsize + } + return n +} +func sizeVarintS32PackedSlice(ptr pointer, tagsize int) int { + s := ptr.getInt32Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v)) + } + return n + SizeVarint(uint64(n)) + tagsize +} +func sizeVarint64Value(ptr pointer, tagsize int) int { + v := *ptr.toUint64() + return SizeVarint(v) + tagsize +} +func sizeVarint64ValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toUint64() + if v == 0 { + return 0 + } + return SizeVarint(v) + tagsize +} +func sizeVarint64Ptr(ptr pointer, tagsize int) int { + p := *ptr.toUint64Ptr() + if p == nil { + return 0 + } + return SizeVarint(*p) + tagsize +} +func sizeVarint64Slice(ptr pointer, tagsize int) int { + s := *ptr.toUint64Slice() + n := 0 + for _, v := range s { + n += SizeVarint(v) + tagsize + } + return n +} +func sizeVarint64PackedSlice(ptr pointer, tagsize int) int { + s := *ptr.toUint64Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += SizeVarint(v) + } + return n + SizeVarint(uint64(n)) + tagsize +} +func sizeVarintS64Value(ptr pointer, tagsize int) int { + v := *ptr.toInt64() + return SizeVarint(uint64(v)) + tagsize +} +func sizeVarintS64ValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toInt64() + if v == 0 { + return 0 + } + return SizeVarint(uint64(v)) + tagsize +} +func sizeVarintS64Ptr(ptr pointer, tagsize int) int { + p := *ptr.toInt64Ptr() + if p == nil { + return 0 + } + return SizeVarint(uint64(*p)) + tagsize +} +func sizeVarintS64Slice(ptr pointer, tagsize int) int { + s := *ptr.toInt64Slice() + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v)) + tagsize + } + return n +} +func sizeVarintS64PackedSlice(ptr pointer, tagsize int) int { + s := *ptr.toInt64Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v)) + } + return n + SizeVarint(uint64(n)) + tagsize +} +func sizeZigzag32Value(ptr pointer, tagsize int) int { + v := *ptr.toInt32() + return SizeVarint(uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + tagsize +} +func sizeZigzag32ValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toInt32() + if v == 0 { + return 0 + } + return SizeVarint(uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + tagsize +} +func sizeZigzag32Ptr(ptr pointer, tagsize int) int { + p := ptr.getInt32Ptr() + if p == nil { + return 0 + } + v := *p + return SizeVarint(uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + tagsize +} +func sizeZigzag32Slice(ptr pointer, tagsize int) int { + s := ptr.getInt32Slice() + n := 0 + for _, v := range s { + n += SizeVarint(uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + tagsize + } + return n +} +func sizeZigzag32PackedSlice(ptr pointer, tagsize int) int { + s := ptr.getInt32Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += SizeVarint(uint64((uint32(v) << 1) ^ uint32((int32(v) >> 31)))) + } + return n + SizeVarint(uint64(n)) + tagsize +} +func sizeZigzag64Value(ptr pointer, tagsize int) int { + v := *ptr.toInt64() + return SizeVarint(uint64(v<<1)^uint64((int64(v)>>63))) + tagsize +} +func sizeZigzag64ValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toInt64() + if v == 0 { + return 0 + } + return SizeVarint(uint64(v<<1)^uint64((int64(v)>>63))) + tagsize +} +func sizeZigzag64Ptr(ptr pointer, tagsize int) int { + p := *ptr.toInt64Ptr() + if p == nil { + return 0 + } + v := *p + return SizeVarint(uint64(v<<1)^uint64((int64(v)>>63))) + tagsize +} +func sizeZigzag64Slice(ptr pointer, tagsize int) int { + s := *ptr.toInt64Slice() + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v<<1)^uint64((int64(v)>>63))) + tagsize + } + return n +} +func sizeZigzag64PackedSlice(ptr pointer, tagsize int) int { + s := *ptr.toInt64Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v<<1) ^ uint64((int64(v) >> 63))) + } + return n + SizeVarint(uint64(n)) + tagsize +} +func sizeBoolValue(_ pointer, tagsize int) int { + return 1 + tagsize +} +func sizeBoolValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toBool() + if !v { + return 0 + } + return 1 + tagsize +} +func sizeBoolPtr(ptr pointer, tagsize int) int { + p := *ptr.toBoolPtr() + if p == nil { + return 0 + } + return 1 + tagsize +} +func sizeBoolSlice(ptr pointer, tagsize int) int { + s := *ptr.toBoolSlice() + return (1 + tagsize) * len(s) +} +func sizeBoolPackedSlice(ptr pointer, tagsize int) int { + s := *ptr.toBoolSlice() + if len(s) == 0 { + return 0 + } + return len(s) + SizeVarint(uint64(len(s))) + tagsize +} +func sizeStringValue(ptr pointer, tagsize int) int { + v := *ptr.toString() + return len(v) + SizeVarint(uint64(len(v))) + tagsize +} +func sizeStringValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toString() + if v == "" { + return 0 + } + return len(v) + SizeVarint(uint64(len(v))) + tagsize +} +func sizeStringPtr(ptr pointer, tagsize int) int { + p := *ptr.toStringPtr() + if p == nil { + return 0 + } + v := *p + return len(v) + SizeVarint(uint64(len(v))) + tagsize +} +func sizeStringSlice(ptr pointer, tagsize int) int { + s := *ptr.toStringSlice() + n := 0 + for _, v := range s { + n += len(v) + SizeVarint(uint64(len(v))) + tagsize + } + return n +} +func sizeBytes(ptr pointer, tagsize int) int { + v := *ptr.toBytes() + if v == nil { + return 0 + } + return len(v) + SizeVarint(uint64(len(v))) + tagsize +} +func sizeBytes3(ptr pointer, tagsize int) int { + v := *ptr.toBytes() + if len(v) == 0 { + return 0 + } + return len(v) + SizeVarint(uint64(len(v))) + tagsize +} +func sizeBytesOneof(ptr pointer, tagsize int) int { + v := *ptr.toBytes() + return len(v) + SizeVarint(uint64(len(v))) + tagsize +} +func sizeBytesSlice(ptr pointer, tagsize int) int { + s := *ptr.toBytesSlice() + n := 0 + for _, v := range s { + n += len(v) + SizeVarint(uint64(len(v))) + tagsize + } + return n +} + +// appendFixed32 appends an encoded fixed32 to b. +func appendFixed32(b []byte, v uint32) []byte { + b = append(b, + byte(v), + byte(v>>8), + byte(v>>16), + byte(v>>24)) + return b +} + +// appendFixed64 appends an encoded fixed64 to b. +func appendFixed64(b []byte, v uint64) []byte { + b = append(b, + byte(v), + byte(v>>8), + byte(v>>16), + byte(v>>24), + byte(v>>32), + byte(v>>40), + byte(v>>48), + byte(v>>56)) + return b +} + +// appendVarint appends an encoded varint to b. +func appendVarint(b []byte, v uint64) []byte { + // TODO: make 1-byte (maybe 2-byte) case inline-able, once we + // have non-leaf inliner. + switch { + case v < 1<<7: + b = append(b, byte(v)) + case v < 1<<14: + b = append(b, + byte(v&0x7f|0x80), + byte(v>>7)) + case v < 1<<21: + b = append(b, + byte(v&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte(v>>14)) + case v < 1<<28: + b = append(b, + byte(v&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte(v>>21)) + case v < 1<<35: + b = append(b, + byte(v&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte(v>>28)) + case v < 1<<42: + b = append(b, + byte(v&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte((v>>28)&0x7f|0x80), + byte(v>>35)) + case v < 1<<49: + b = append(b, + byte(v&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte((v>>28)&0x7f|0x80), + byte((v>>35)&0x7f|0x80), + byte(v>>42)) + case v < 1<<56: + b = append(b, + byte(v&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte((v>>28)&0x7f|0x80), + byte((v>>35)&0x7f|0x80), + byte((v>>42)&0x7f|0x80), + byte(v>>49)) + case v < 1<<63: + b = append(b, + byte(v&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte((v>>28)&0x7f|0x80), + byte((v>>35)&0x7f|0x80), + byte((v>>42)&0x7f|0x80), + byte((v>>49)&0x7f|0x80), + byte(v>>56)) + default: + b = append(b, + byte(v&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte((v>>28)&0x7f|0x80), + byte((v>>35)&0x7f|0x80), + byte((v>>42)&0x7f|0x80), + byte((v>>49)&0x7f|0x80), + byte((v>>56)&0x7f|0x80), + 1) + } + return b +} + +func appendFixed32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toUint32() + b = appendVarint(b, wiretag) + b = appendFixed32(b, v) + return b, nil +} +func appendFixed32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toUint32() + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed32(b, v) + return b, nil +} +func appendFixed32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toUint32Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed32(b, *p) + return b, nil +} +func appendFixed32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toUint32Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendFixed32(b, v) + } + return b, nil +} +func appendFixed32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toUint32Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + b = appendVarint(b, uint64(4*len(s))) + for _, v := range s { + b = appendFixed32(b, v) + } + return b, nil +} +func appendFixedS32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt32() + b = appendVarint(b, wiretag) + b = appendFixed32(b, uint32(v)) + return b, nil +} +func appendFixedS32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt32() + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed32(b, uint32(v)) + return b, nil +} +func appendFixedS32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := ptr.getInt32Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed32(b, uint32(*p)) + return b, nil +} +func appendFixedS32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := ptr.getInt32Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendFixed32(b, uint32(v)) + } + return b, nil +} +func appendFixedS32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := ptr.getInt32Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + b = appendVarint(b, uint64(4*len(s))) + for _, v := range s { + b = appendFixed32(b, uint32(v)) + } + return b, nil +} +func appendFloat32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := math.Float32bits(*ptr.toFloat32()) + b = appendVarint(b, wiretag) + b = appendFixed32(b, v) + return b, nil +} +func appendFloat32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := math.Float32bits(*ptr.toFloat32()) + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed32(b, v) + return b, nil +} +func appendFloat32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toFloat32Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed32(b, math.Float32bits(*p)) + return b, nil +} +func appendFloat32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toFloat32Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendFixed32(b, math.Float32bits(v)) + } + return b, nil +} +func appendFloat32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toFloat32Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + b = appendVarint(b, uint64(4*len(s))) + for _, v := range s { + b = appendFixed32(b, math.Float32bits(v)) + } + return b, nil +} +func appendFixed64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toUint64() + b = appendVarint(b, wiretag) + b = appendFixed64(b, v) + return b, nil +} +func appendFixed64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toUint64() + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed64(b, v) + return b, nil +} +func appendFixed64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toUint64Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed64(b, *p) + return b, nil +} +func appendFixed64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toUint64Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendFixed64(b, v) + } + return b, nil +} +func appendFixed64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toUint64Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + b = appendVarint(b, uint64(8*len(s))) + for _, v := range s { + b = appendFixed64(b, v) + } + return b, nil +} +func appendFixedS64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt64() + b = appendVarint(b, wiretag) + b = appendFixed64(b, uint64(v)) + return b, nil +} +func appendFixedS64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt64() + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed64(b, uint64(v)) + return b, nil +} +func appendFixedS64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toInt64Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed64(b, uint64(*p)) + return b, nil +} +func appendFixedS64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toInt64Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendFixed64(b, uint64(v)) + } + return b, nil +} +func appendFixedS64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toInt64Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + b = appendVarint(b, uint64(8*len(s))) + for _, v := range s { + b = appendFixed64(b, uint64(v)) + } + return b, nil +} +func appendFloat64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := math.Float64bits(*ptr.toFloat64()) + b = appendVarint(b, wiretag) + b = appendFixed64(b, v) + return b, nil +} +func appendFloat64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := math.Float64bits(*ptr.toFloat64()) + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed64(b, v) + return b, nil +} +func appendFloat64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toFloat64Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed64(b, math.Float64bits(*p)) + return b, nil +} +func appendFloat64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toFloat64Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendFixed64(b, math.Float64bits(v)) + } + return b, nil +} +func appendFloat64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toFloat64Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + b = appendVarint(b, uint64(8*len(s))) + for _, v := range s { + b = appendFixed64(b, math.Float64bits(v)) + } + return b, nil +} +func appendVarint32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toUint32() + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v)) + return b, nil +} +func appendVarint32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toUint32() + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v)) + return b, nil +} +func appendVarint32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toUint32Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(*p)) + return b, nil +} +func appendVarint32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toUint32Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v)) + } + return b, nil +} +func appendVarint32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toUint32Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + // compute size + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v)) + } + b = appendVarint(b, uint64(n)) + for _, v := range s { + b = appendVarint(b, uint64(v)) + } + return b, nil +} +func appendVarintS32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt32() + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v)) + return b, nil +} +func appendVarintS32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt32() + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v)) + return b, nil +} +func appendVarintS32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := ptr.getInt32Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(*p)) + return b, nil +} +func appendVarintS32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := ptr.getInt32Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v)) + } + return b, nil +} +func appendVarintS32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := ptr.getInt32Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + // compute size + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v)) + } + b = appendVarint(b, uint64(n)) + for _, v := range s { + b = appendVarint(b, uint64(v)) + } + return b, nil +} +func appendVarint64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toUint64() + b = appendVarint(b, wiretag) + b = appendVarint(b, v) + return b, nil +} +func appendVarint64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toUint64() + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, v) + return b, nil +} +func appendVarint64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toUint64Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, *p) + return b, nil +} +func appendVarint64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toUint64Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendVarint(b, v) + } + return b, nil +} +func appendVarint64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toUint64Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + // compute size + n := 0 + for _, v := range s { + n += SizeVarint(v) + } + b = appendVarint(b, uint64(n)) + for _, v := range s { + b = appendVarint(b, v) + } + return b, nil +} +func appendVarintS64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt64() + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v)) + return b, nil +} +func appendVarintS64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt64() + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v)) + return b, nil +} +func appendVarintS64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toInt64Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(*p)) + return b, nil +} +func appendVarintS64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toInt64Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v)) + } + return b, nil +} +func appendVarintS64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toInt64Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + // compute size + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v)) + } + b = appendVarint(b, uint64(n)) + for _, v := range s { + b = appendVarint(b, uint64(v)) + } + return b, nil +} +func appendZigzag32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt32() + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + return b, nil +} +func appendZigzag32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt32() + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + return b, nil +} +func appendZigzag32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := ptr.getInt32Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + v := *p + b = appendVarint(b, uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + return b, nil +} +func appendZigzag32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := ptr.getInt32Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + } + return b, nil +} +func appendZigzag32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := ptr.getInt32Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + // compute size + n := 0 + for _, v := range s { + n += SizeVarint(uint64((uint32(v) << 1) ^ uint32((int32(v) >> 31)))) + } + b = appendVarint(b, uint64(n)) + for _, v := range s { + b = appendVarint(b, uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + } + return b, nil +} +func appendZigzag64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt64() + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v<<1)^uint64((int64(v)>>63))) + return b, nil +} +func appendZigzag64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt64() + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v<<1)^uint64((int64(v)>>63))) + return b, nil +} +func appendZigzag64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toInt64Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + v := *p + b = appendVarint(b, uint64(v<<1)^uint64((int64(v)>>63))) + return b, nil +} +func appendZigzag64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toInt64Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v<<1)^uint64((int64(v)>>63))) + } + return b, nil +} +func appendZigzag64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toInt64Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + // compute size + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v<<1) ^ uint64((int64(v) >> 63))) + } + b = appendVarint(b, uint64(n)) + for _, v := range s { + b = appendVarint(b, uint64(v<<1)^uint64((int64(v)>>63))) + } + return b, nil +} +func appendBoolValue(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toBool() + b = appendVarint(b, wiretag) + if v { + b = append(b, 1) + } else { + b = append(b, 0) + } + return b, nil +} +func appendBoolValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toBool() + if !v { + return b, nil + } + b = appendVarint(b, wiretag) + b = append(b, 1) + return b, nil +} + +func appendBoolPtr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toBoolPtr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + if *p { + b = append(b, 1) + } else { + b = append(b, 0) + } + return b, nil +} +func appendBoolSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toBoolSlice() + for _, v := range s { + b = appendVarint(b, wiretag) + if v { + b = append(b, 1) + } else { + b = append(b, 0) + } + } + return b, nil +} +func appendBoolPackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toBoolSlice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + b = appendVarint(b, uint64(len(s))) + for _, v := range s { + if v { + b = append(b, 1) + } else { + b = append(b, 0) + } + } + return b, nil +} +func appendStringValue(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toString() + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + return b, nil +} +func appendStringValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toString() + if v == "" { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + return b, nil +} +func appendStringPtr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toStringPtr() + if p == nil { + return b, nil + } + v := *p + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + return b, nil +} +func appendStringSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toStringSlice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + } + return b, nil +} +func appendUTF8StringValue(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toString() + if !utf8.ValidString(v) { + return nil, errInvalidUTF8 + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + return b, nil +} +func appendUTF8StringValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toString() + if v == "" { + return b, nil + } + if !utf8.ValidString(v) { + return nil, errInvalidUTF8 + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + return b, nil +} +func appendUTF8StringPtr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toStringPtr() + if p == nil { + return b, nil + } + v := *p + if !utf8.ValidString(v) { + return nil, errInvalidUTF8 + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + return b, nil +} +func appendUTF8StringSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toStringSlice() + for _, v := range s { + if !utf8.ValidString(v) { + return nil, errInvalidUTF8 + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + } + return b, nil +} +func appendBytes(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toBytes() + if v == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + return b, nil +} +func appendBytes3(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toBytes() + if len(v) == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + return b, nil +} +func appendBytesOneof(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toBytes() + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + return b, nil +} +func appendBytesSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toBytesSlice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + } + return b, nil +} + +// makeGroupMarshaler returns the sizer and marshaler for a group. +// u is the marshal info of the underlying message. +func makeGroupMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + p := ptr.getPointer() + if p.isNil() { + return 0 + } + return u.size(p) + 2*tagsize + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + p := ptr.getPointer() + if p.isNil() { + return b, nil + } + var err error + b = appendVarint(b, wiretag) // start group + b, err = u.marshal(b, p, deterministic) + b = appendVarint(b, wiretag+(WireEndGroup-WireStartGroup)) // end group + return b, err + } +} + +// makeGroupSliceMarshaler returns the sizer and marshaler for a group slice. +// u is the marshal info of the underlying message. +func makeGroupSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getPointerSlice() + n := 0 + for _, v := range s { + if v.isNil() { + continue + } + n += u.size(v) + 2*tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getPointerSlice() + var err, errreq error + for _, v := range s { + if v.isNil() { + return b, errRepeatedHasNil + } + b = appendVarint(b, wiretag) // start group + b, err = u.marshal(b, v, deterministic) + b = appendVarint(b, wiretag+(WireEndGroup-WireStartGroup)) // end group + if err != nil { + if _, ok := err.(*RequiredNotSetError); ok { + // Required field in submessage is not set. + // We record the error but keep going, to give a complete marshaling. + if errreq == nil { + errreq = err + } + continue + } + if err == ErrNil { + err = errRepeatedHasNil + } + return b, err + } + } + return b, errreq + } +} + +// makeMessageMarshaler returns the sizer and marshaler for a message field. +// u is the marshal info of the message. +func makeMessageMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + p := ptr.getPointer() + if p.isNil() { + return 0 + } + siz := u.size(p) + return siz + SizeVarint(uint64(siz)) + tagsize + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + p := ptr.getPointer() + if p.isNil() { + return b, nil + } + b = appendVarint(b, wiretag) + siz := u.cachedsize(p) + b = appendVarint(b, uint64(siz)) + return u.marshal(b, p, deterministic) + } +} + +// makeMessageSliceMarshaler returns the sizer and marshaler for a message slice. +// u is the marshal info of the message. +func makeMessageSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getPointerSlice() + n := 0 + for _, v := range s { + if v.isNil() { + continue + } + siz := u.size(v) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getPointerSlice() + var err, errreq error + for _, v := range s { + if v.isNil() { + return b, errRepeatedHasNil + } + b = appendVarint(b, wiretag) + siz := u.cachedsize(v) + b = appendVarint(b, uint64(siz)) + b, err = u.marshal(b, v, deterministic) + + if err != nil { + if _, ok := err.(*RequiredNotSetError); ok { + // Required field in submessage is not set. + // We record the error but keep going, to give a complete marshaling. + if errreq == nil { + errreq = err + } + continue + } + if err == ErrNil { + err = errRepeatedHasNil + } + return b, err + } + } + return b, errreq + } +} + +// makeMapMarshaler returns the sizer and marshaler for a map field. +// f is the pointer to the reflect data structure of the field. +func makeMapMarshaler(f *reflect.StructField) (sizer, marshaler) { + // figure out key and value type + t := f.Type + keyType := t.Key() + valType := t.Elem() + keyTags := strings.Split(f.Tag.Get("protobuf_key"), ",") + valTags := strings.Split(f.Tag.Get("protobuf_val"), ",") + keySizer, keyMarshaler := typeMarshaler(keyType, keyTags, false, false) // don't omit zero value in map + valSizer, valMarshaler := typeMarshaler(valType, valTags, false, false) // don't omit zero value in map + keyWireTag := 1<<3 | wiretype(keyTags[0]) + valWireTag := 2<<3 | wiretype(valTags[0]) + + // We create an interface to get the addresses of the map key and value. + // If value is pointer-typed, the interface is a direct interface, the + // idata itself is the value. Otherwise, the idata is the pointer to the + // value. + // Key cannot be pointer-typed. + valIsPtr := valType.Kind() == reflect.Ptr + + // If value is a message with nested maps, calling + // valSizer in marshal may be quadratic. We should use + // cached version in marshal (but not in size). + // If value is not message type, we don't have size cache, + // but it cannot be nested either. Just use valSizer. + valCachedSizer := valSizer + if valIsPtr && valType.Elem().Kind() == reflect.Struct { + u := getMarshalInfo(valType.Elem()) + valCachedSizer = func(ptr pointer, tagsize int) int { + // Same as message sizer, but use cache. + p := ptr.getPointer() + if p.isNil() { + return 0 + } + siz := u.cachedsize(p) + return siz + SizeVarint(uint64(siz)) + tagsize + } + } + return func(ptr pointer, tagsize int) int { + m := ptr.asPointerTo(t).Elem() // the map + n := 0 + for _, k := range m.MapKeys() { + ki := k.Interface() + vi := m.MapIndex(k).Interface() + kaddr := toAddrPointer(&ki, false) // pointer to key + vaddr := toAddrPointer(&vi, valIsPtr) // pointer to value + siz := keySizer(kaddr, 1) + valSizer(vaddr, 1) // tag of key = 1 (size=1), tag of val = 2 (size=1) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, tag uint64, deterministic bool) ([]byte, error) { + m := ptr.asPointerTo(t).Elem() // the map + var err error + keys := m.MapKeys() + if len(keys) > 1 && deterministic { + sort.Sort(mapKeys(keys)) + } + for _, k := range keys { + ki := k.Interface() + vi := m.MapIndex(k).Interface() + kaddr := toAddrPointer(&ki, false) // pointer to key + vaddr := toAddrPointer(&vi, valIsPtr) // pointer to value + b = appendVarint(b, tag) + siz := keySizer(kaddr, 1) + valCachedSizer(vaddr, 1) // tag of key = 1 (size=1), tag of val = 2 (size=1) + b = appendVarint(b, uint64(siz)) + b, err = keyMarshaler(b, kaddr, keyWireTag, deterministic) + if err != nil { + return b, err + } + b, err = valMarshaler(b, vaddr, valWireTag, deterministic) + if err != nil && err != ErrNil { // allow nil value in map + return b, err + } + } + return b, nil + } +} + +// makeOneOfMarshaler returns the sizer and marshaler for a oneof field. +// fi is the marshal info of the field. +// f is the pointer to the reflect data structure of the field. +func makeOneOfMarshaler(fi *marshalFieldInfo, f *reflect.StructField) (sizer, marshaler) { + // Oneof field is an interface. We need to get the actual data type on the fly. + t := f.Type + return func(ptr pointer, _ int) int { + p := ptr.getInterfacePointer() + if p.isNil() { + return 0 + } + v := ptr.asPointerTo(t).Elem().Elem().Elem() // *interface -> interface -> *struct -> struct + telem := v.Type() + e := fi.oneofElems[telem] + return e.sizer(p, e.tagsize) + }, + func(b []byte, ptr pointer, _ uint64, deterministic bool) ([]byte, error) { + p := ptr.getInterfacePointer() + if p.isNil() { + return b, nil + } + v := ptr.asPointerTo(t).Elem().Elem().Elem() // *interface -> interface -> *struct -> struct + telem := v.Type() + if telem.Field(0).Type.Kind() == reflect.Ptr && p.getPointer().isNil() { + return b, errOneofHasNil + } + e := fi.oneofElems[telem] + return e.marshaler(b, p, e.wiretag, deterministic) + } +} + +// sizeExtensions computes the size of encoded data for a XXX_InternalExtensions field. +func (u *marshalInfo) sizeExtensions(ext *XXX_InternalExtensions) int { + m, mu := ext.extensionsRead() + if m == nil { + return 0 + } + mu.Lock() + + n := 0 + for _, e := range m { + if e.value == nil || e.desc == nil { + // Extension is only in its encoded form. + n += len(e.enc) + continue + } + + // We don't skip extensions that have an encoded form set, + // because the extension value may have been mutated after + // the last time this function was called. + ei := u.getExtElemInfo(e.desc) + v := e.value + p := toAddrPointer(&v, ei.isptr) + n += ei.sizer(p, ei.tagsize) + } + mu.Unlock() + return n +} + +// appendExtensions marshals a XXX_InternalExtensions field to the end of byte slice b. +func (u *marshalInfo) appendExtensions(b []byte, ext *XXX_InternalExtensions, deterministic bool) ([]byte, error) { + m, mu := ext.extensionsRead() + if m == nil { + return b, nil + } + mu.Lock() + defer mu.Unlock() + + var err error + + // Fast-path for common cases: zero or one extensions. + // Don't bother sorting the keys. + if len(m) <= 1 { + for _, e := range m { + if e.value == nil || e.desc == nil { + // Extension is only in its encoded form. + b = append(b, e.enc...) + continue + } + + // We don't skip extensions that have an encoded form set, + // because the extension value may have been mutated after + // the last time this function was called. + + ei := u.getExtElemInfo(e.desc) + v := e.value + p := toAddrPointer(&v, ei.isptr) + b, err = ei.marshaler(b, p, ei.wiretag, deterministic) + if err != nil { + return b, err + } + } + return b, nil + } + + // Sort the keys to provide a deterministic encoding. + // Not sure this is required, but the old code does it. + keys := make([]int, 0, len(m)) + for k := range m { + keys = append(keys, int(k)) + } + sort.Ints(keys) + + for _, k := range keys { + e := m[int32(k)] + if e.value == nil || e.desc == nil { + // Extension is only in its encoded form. + b = append(b, e.enc...) + continue + } + + // We don't skip extensions that have an encoded form set, + // because the extension value may have been mutated after + // the last time this function was called. + + ei := u.getExtElemInfo(e.desc) + v := e.value + p := toAddrPointer(&v, ei.isptr) + b, err = ei.marshaler(b, p, ei.wiretag, deterministic) + if err != nil { + return b, err + } + } + return b, nil +} + +// message set format is: +// message MessageSet { +// repeated group Item = 1 { +// required int32 type_id = 2; +// required string message = 3; +// }; +// } + +// sizeMessageSet computes the size of encoded data for a XXX_InternalExtensions field +// in message set format (above). +func (u *marshalInfo) sizeMessageSet(ext *XXX_InternalExtensions) int { + m, mu := ext.extensionsRead() + if m == nil { + return 0 + } + mu.Lock() + + n := 0 + for id, e := range m { + n += 2 // start group, end group. tag = 1 (size=1) + n += SizeVarint(uint64(id)) + 1 // type_id, tag = 2 (size=1) + + if e.value == nil || e.desc == nil { + // Extension is only in its encoded form. + msgWithLen := skipVarint(e.enc) // skip old tag, but leave the length varint + siz := len(msgWithLen) + n += siz + 1 // message, tag = 3 (size=1) + continue + } + + // We don't skip extensions that have an encoded form set, + // because the extension value may have been mutated after + // the last time this function was called. + + ei := u.getExtElemInfo(e.desc) + v := e.value + p := toAddrPointer(&v, ei.isptr) + n += ei.sizer(p, 1) // message, tag = 3 (size=1) + } + mu.Unlock() + return n +} + +// appendMessageSet marshals a XXX_InternalExtensions field in message set format (above) +// to the end of byte slice b. +func (u *marshalInfo) appendMessageSet(b []byte, ext *XXX_InternalExtensions, deterministic bool) ([]byte, error) { + m, mu := ext.extensionsRead() + if m == nil { + return b, nil + } + mu.Lock() + defer mu.Unlock() + + var err error + + // Fast-path for common cases: zero or one extensions. + // Don't bother sorting the keys. + if len(m) <= 1 { + for id, e := range m { + b = append(b, 1<<3|WireStartGroup) + b = append(b, 2<<3|WireVarint) + b = appendVarint(b, uint64(id)) + + if e.value == nil || e.desc == nil { + // Extension is only in its encoded form. + msgWithLen := skipVarint(e.enc) // skip old tag, but leave the length varint + b = append(b, 3<<3|WireBytes) + b = append(b, msgWithLen...) + b = append(b, 1<<3|WireEndGroup) + continue + } + + // We don't skip extensions that have an encoded form set, + // because the extension value may have been mutated after + // the last time this function was called. + + ei := u.getExtElemInfo(e.desc) + v := e.value + p := toAddrPointer(&v, ei.isptr) + b, err = ei.marshaler(b, p, 3<<3|WireBytes, deterministic) + if err != nil { + return b, err + } + b = append(b, 1<<3|WireEndGroup) + } + return b, nil + } + + // Sort the keys to provide a deterministic encoding. + keys := make([]int, 0, len(m)) + for k := range m { + keys = append(keys, int(k)) + } + sort.Ints(keys) + + for _, id := range keys { + e := m[int32(id)] + b = append(b, 1<<3|WireStartGroup) + b = append(b, 2<<3|WireVarint) + b = appendVarint(b, uint64(id)) + + if e.value == nil || e.desc == nil { + // Extension is only in its encoded form. + msgWithLen := skipVarint(e.enc) // skip old tag, but leave the length varint + b = append(b, 3<<3|WireBytes) + b = append(b, msgWithLen...) + b = append(b, 1<<3|WireEndGroup) + continue + } + + // We don't skip extensions that have an encoded form set, + // because the extension value may have been mutated after + // the last time this function was called. + + ei := u.getExtElemInfo(e.desc) + v := e.value + p := toAddrPointer(&v, ei.isptr) + b, err = ei.marshaler(b, p, 3<<3|WireBytes, deterministic) + b = append(b, 1<<3|WireEndGroup) + if err != nil { + return b, err + } + } + return b, nil +} + +// sizeV1Extensions computes the size of encoded data for a V1-API extension field. +func (u *marshalInfo) sizeV1Extensions(m map[int32]Extension) int { + if m == nil { + return 0 + } + + n := 0 + for _, e := range m { + if e.value == nil || e.desc == nil { + // Extension is only in its encoded form. + n += len(e.enc) + continue + } + + // We don't skip extensions that have an encoded form set, + // because the extension value may have been mutated after + // the last time this function was called. + + ei := u.getExtElemInfo(e.desc) + v := e.value + p := toAddrPointer(&v, ei.isptr) + n += ei.sizer(p, ei.tagsize) + } + return n +} + +// appendV1Extensions marshals a V1-API extension field to the end of byte slice b. +func (u *marshalInfo) appendV1Extensions(b []byte, m map[int32]Extension, deterministic bool) ([]byte, error) { + if m == nil { + return b, nil + } + + // Sort the keys to provide a deterministic encoding. + keys := make([]int, 0, len(m)) + for k := range m { + keys = append(keys, int(k)) + } + sort.Ints(keys) + + var err error + for _, k := range keys { + e := m[int32(k)] + if e.value == nil || e.desc == nil { + // Extension is only in its encoded form. + b = append(b, e.enc...) + continue + } + + // We don't skip extensions that have an encoded form set, + // because the extension value may have been mutated after + // the last time this function was called. + + ei := u.getExtElemInfo(e.desc) + v := e.value + p := toAddrPointer(&v, ei.isptr) + b, err = ei.marshaler(b, p, ei.wiretag, deterministic) + if err != nil { + return b, err + } + } + return b, nil +} + +// newMarshaler is the interface representing objects that can marshal themselves. +// +// This exists to support protoc-gen-go generated messages. +// The proto package will stop type-asserting to this interface in the future. +// +// DO NOT DEPEND ON THIS. +type newMarshaler interface { + XXX_Size() int + XXX_Marshal(b []byte, deterministic bool) ([]byte, error) +} + +// Size returns the encoded size of a protocol buffer message. +// This is the main entry point. +func Size(pb Message) int { + if m, ok := pb.(newMarshaler); ok { + return m.XXX_Size() + } + if m, ok := pb.(Marshaler); ok { + // If the message can marshal itself, let it do it, for compatibility. + // NOTE: This is not efficient. + b, _ := m.Marshal() + return len(b) + } + // in case somehow we didn't generate the wrapper + if pb == nil { + return 0 + } + var info InternalMessageInfo + return info.Size(pb) +} + +// Marshal takes a protocol buffer message +// and encodes it into the wire format, returning the data. +// This is the main entry point. +func Marshal(pb Message) ([]byte, error) { + if m, ok := pb.(newMarshaler); ok { + siz := m.XXX_Size() + b := make([]byte, 0, siz) + return m.XXX_Marshal(b, false) + } + if m, ok := pb.(Marshaler); ok { + // If the message can marshal itself, let it do it, for compatibility. + // NOTE: This is not efficient. + return m.Marshal() + } + // in case somehow we didn't generate the wrapper + if pb == nil { + return nil, ErrNil + } + var info InternalMessageInfo + siz := info.Size(pb) + b := make([]byte, 0, siz) + return info.Marshal(b, pb, false) +} + +// Marshal takes a protocol buffer message +// and encodes it into the wire format, writing the result to the +// Buffer. +// This is an alternative entry point. It is not necessary to use +// a Buffer for most applications. +func (p *Buffer) Marshal(pb Message) error { + var err error + if m, ok := pb.(newMarshaler); ok { + siz := m.XXX_Size() + p.grow(siz) // make sure buf has enough capacity + p.buf, err = m.XXX_Marshal(p.buf, p.deterministic) + return err + } + if m, ok := pb.(Marshaler); ok { + // If the message can marshal itself, let it do it, for compatibility. + // NOTE: This is not efficient. + b, err := m.Marshal() + p.buf = append(p.buf, b...) + return err + } + // in case somehow we didn't generate the wrapper + if pb == nil { + return ErrNil + } + var info InternalMessageInfo + siz := info.Size(pb) + p.grow(siz) // make sure buf has enough capacity + p.buf, err = info.Marshal(p.buf, pb, p.deterministic) + return err +} + +// grow grows the buffer's capacity, if necessary, to guarantee space for +// another n bytes. After grow(n), at least n bytes can be written to the +// buffer without another allocation. +func (p *Buffer) grow(n int) { + need := len(p.buf) + n + if need <= cap(p.buf) { + return + } + newCap := len(p.buf) * 2 + if newCap < need { + newCap = need + } + p.buf = append(make([]byte, 0, newCap), p.buf...) +} diff --git a/vendor/github.com/golang/protobuf/proto/table_merge.go b/vendor/github.com/golang/protobuf/proto/table_merge.go new file mode 100644 index 0000000..5525def --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/table_merge.go @@ -0,0 +1,654 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2016 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +import ( + "fmt" + "reflect" + "strings" + "sync" + "sync/atomic" +) + +// Merge merges the src message into dst. +// This assumes that dst and src of the same type and are non-nil. +func (a *InternalMessageInfo) Merge(dst, src Message) { + mi := atomicLoadMergeInfo(&a.merge) + if mi == nil { + mi = getMergeInfo(reflect.TypeOf(dst).Elem()) + atomicStoreMergeInfo(&a.merge, mi) + } + mi.merge(toPointer(&dst), toPointer(&src)) +} + +type mergeInfo struct { + typ reflect.Type + + initialized int32 // 0: only typ is valid, 1: everything is valid + lock sync.Mutex + + fields []mergeFieldInfo + unrecognized field // Offset of XXX_unrecognized +} + +type mergeFieldInfo struct { + field field // Offset of field, guaranteed to be valid + + // isPointer reports whether the value in the field is a pointer. + // This is true for the following situations: + // * Pointer to struct + // * Pointer to basic type (proto2 only) + // * Slice (first value in slice header is a pointer) + // * String (first value in string header is a pointer) + isPointer bool + + // basicWidth reports the width of the field assuming that it is directly + // embedded in the struct (as is the case for basic types in proto3). + // The possible values are: + // 0: invalid + // 1: bool + // 4: int32, uint32, float32 + // 8: int64, uint64, float64 + basicWidth int + + // Where dst and src are pointers to the types being merged. + merge func(dst, src pointer) +} + +var ( + mergeInfoMap = map[reflect.Type]*mergeInfo{} + mergeInfoLock sync.Mutex +) + +func getMergeInfo(t reflect.Type) *mergeInfo { + mergeInfoLock.Lock() + defer mergeInfoLock.Unlock() + mi := mergeInfoMap[t] + if mi == nil { + mi = &mergeInfo{typ: t} + mergeInfoMap[t] = mi + } + return mi +} + +// merge merges src into dst assuming they are both of type *mi.typ. +func (mi *mergeInfo) merge(dst, src pointer) { + if dst.isNil() { + panic("proto: nil destination") + } + if src.isNil() { + return // Nothing to do. + } + + if atomic.LoadInt32(&mi.initialized) == 0 { + mi.computeMergeInfo() + } + + for _, fi := range mi.fields { + sfp := src.offset(fi.field) + + // As an optimization, we can avoid the merge function call cost + // if we know for sure that the source will have no effect + // by checking if it is the zero value. + if unsafeAllowed { + if fi.isPointer && sfp.getPointer().isNil() { // Could be slice or string + continue + } + if fi.basicWidth > 0 { + switch { + case fi.basicWidth == 1 && !*sfp.toBool(): + continue + case fi.basicWidth == 4 && *sfp.toUint32() == 0: + continue + case fi.basicWidth == 8 && *sfp.toUint64() == 0: + continue + } + } + } + + dfp := dst.offset(fi.field) + fi.merge(dfp, sfp) + } + + // TODO: Make this faster? + out := dst.asPointerTo(mi.typ).Elem() + in := src.asPointerTo(mi.typ).Elem() + if emIn, err := extendable(in.Addr().Interface()); err == nil { + emOut, _ := extendable(out.Addr().Interface()) + mIn, muIn := emIn.extensionsRead() + if mIn != nil { + mOut := emOut.extensionsWrite() + muIn.Lock() + mergeExtension(mOut, mIn) + muIn.Unlock() + } + } + + if mi.unrecognized.IsValid() { + if b := *src.offset(mi.unrecognized).toBytes(); len(b) > 0 { + *dst.offset(mi.unrecognized).toBytes() = append([]byte(nil), b...) + } + } +} + +func (mi *mergeInfo) computeMergeInfo() { + mi.lock.Lock() + defer mi.lock.Unlock() + if mi.initialized != 0 { + return + } + t := mi.typ + n := t.NumField() + + props := GetProperties(t) + for i := 0; i < n; i++ { + f := t.Field(i) + if strings.HasPrefix(f.Name, "XXX_") { + continue + } + + mfi := mergeFieldInfo{field: toField(&f)} + tf := f.Type + + // As an optimization, we can avoid the merge function call cost + // if we know for sure that the source will have no effect + // by checking if it is the zero value. + if unsafeAllowed { + switch tf.Kind() { + case reflect.Ptr, reflect.Slice, reflect.String: + // As a special case, we assume slices and strings are pointers + // since we know that the first field in the SliceSlice or + // StringHeader is a data pointer. + mfi.isPointer = true + case reflect.Bool: + mfi.basicWidth = 1 + case reflect.Int32, reflect.Uint32, reflect.Float32: + mfi.basicWidth = 4 + case reflect.Int64, reflect.Uint64, reflect.Float64: + mfi.basicWidth = 8 + } + } + + // Unwrap tf to get at its most basic type. + var isPointer, isSlice bool + if tf.Kind() == reflect.Slice && tf.Elem().Kind() != reflect.Uint8 { + isSlice = true + tf = tf.Elem() + } + if tf.Kind() == reflect.Ptr { + isPointer = true + tf = tf.Elem() + } + if isPointer && isSlice && tf.Kind() != reflect.Struct { + panic("both pointer and slice for basic type in " + tf.Name()) + } + + switch tf.Kind() { + case reflect.Int32: + switch { + case isSlice: // E.g., []int32 + mfi.merge = func(dst, src pointer) { + // NOTE: toInt32Slice is not defined (see pointer_reflect.go). + /* + sfsp := src.toInt32Slice() + if *sfsp != nil { + dfsp := dst.toInt32Slice() + *dfsp = append(*dfsp, *sfsp...) + if *dfsp == nil { + *dfsp = []int64{} + } + } + */ + sfs := src.getInt32Slice() + if sfs != nil { + dfs := dst.getInt32Slice() + dfs = append(dfs, sfs...) + if dfs == nil { + dfs = []int32{} + } + dst.setInt32Slice(dfs) + } + } + case isPointer: // E.g., *int32 + mfi.merge = func(dst, src pointer) { + // NOTE: toInt32Ptr is not defined (see pointer_reflect.go). + /* + sfpp := src.toInt32Ptr() + if *sfpp != nil { + dfpp := dst.toInt32Ptr() + if *dfpp == nil { + *dfpp = Int32(**sfpp) + } else { + **dfpp = **sfpp + } + } + */ + sfp := src.getInt32Ptr() + if sfp != nil { + dfp := dst.getInt32Ptr() + if dfp == nil { + dst.setInt32Ptr(*sfp) + } else { + *dfp = *sfp + } + } + } + default: // E.g., int32 + mfi.merge = func(dst, src pointer) { + if v := *src.toInt32(); v != 0 { + *dst.toInt32() = v + } + } + } + case reflect.Int64: + switch { + case isSlice: // E.g., []int64 + mfi.merge = func(dst, src pointer) { + sfsp := src.toInt64Slice() + if *sfsp != nil { + dfsp := dst.toInt64Slice() + *dfsp = append(*dfsp, *sfsp...) + if *dfsp == nil { + *dfsp = []int64{} + } + } + } + case isPointer: // E.g., *int64 + mfi.merge = func(dst, src pointer) { + sfpp := src.toInt64Ptr() + if *sfpp != nil { + dfpp := dst.toInt64Ptr() + if *dfpp == nil { + *dfpp = Int64(**sfpp) + } else { + **dfpp = **sfpp + } + } + } + default: // E.g., int64 + mfi.merge = func(dst, src pointer) { + if v := *src.toInt64(); v != 0 { + *dst.toInt64() = v + } + } + } + case reflect.Uint32: + switch { + case isSlice: // E.g., []uint32 + mfi.merge = func(dst, src pointer) { + sfsp := src.toUint32Slice() + if *sfsp != nil { + dfsp := dst.toUint32Slice() + *dfsp = append(*dfsp, *sfsp...) + if *dfsp == nil { + *dfsp = []uint32{} + } + } + } + case isPointer: // E.g., *uint32 + mfi.merge = func(dst, src pointer) { + sfpp := src.toUint32Ptr() + if *sfpp != nil { + dfpp := dst.toUint32Ptr() + if *dfpp == nil { + *dfpp = Uint32(**sfpp) + } else { + **dfpp = **sfpp + } + } + } + default: // E.g., uint32 + mfi.merge = func(dst, src pointer) { + if v := *src.toUint32(); v != 0 { + *dst.toUint32() = v + } + } + } + case reflect.Uint64: + switch { + case isSlice: // E.g., []uint64 + mfi.merge = func(dst, src pointer) { + sfsp := src.toUint64Slice() + if *sfsp != nil { + dfsp := dst.toUint64Slice() + *dfsp = append(*dfsp, *sfsp...) + if *dfsp == nil { + *dfsp = []uint64{} + } + } + } + case isPointer: // E.g., *uint64 + mfi.merge = func(dst, src pointer) { + sfpp := src.toUint64Ptr() + if *sfpp != nil { + dfpp := dst.toUint64Ptr() + if *dfpp == nil { + *dfpp = Uint64(**sfpp) + } else { + **dfpp = **sfpp + } + } + } + default: // E.g., uint64 + mfi.merge = func(dst, src pointer) { + if v := *src.toUint64(); v != 0 { + *dst.toUint64() = v + } + } + } + case reflect.Float32: + switch { + case isSlice: // E.g., []float32 + mfi.merge = func(dst, src pointer) { + sfsp := src.toFloat32Slice() + if *sfsp != nil { + dfsp := dst.toFloat32Slice() + *dfsp = append(*dfsp, *sfsp...) + if *dfsp == nil { + *dfsp = []float32{} + } + } + } + case isPointer: // E.g., *float32 + mfi.merge = func(dst, src pointer) { + sfpp := src.toFloat32Ptr() + if *sfpp != nil { + dfpp := dst.toFloat32Ptr() + if *dfpp == nil { + *dfpp = Float32(**sfpp) + } else { + **dfpp = **sfpp + } + } + } + default: // E.g., float32 + mfi.merge = func(dst, src pointer) { + if v := *src.toFloat32(); v != 0 { + *dst.toFloat32() = v + } + } + } + case reflect.Float64: + switch { + case isSlice: // E.g., []float64 + mfi.merge = func(dst, src pointer) { + sfsp := src.toFloat64Slice() + if *sfsp != nil { + dfsp := dst.toFloat64Slice() + *dfsp = append(*dfsp, *sfsp...) + if *dfsp == nil { + *dfsp = []float64{} + } + } + } + case isPointer: // E.g., *float64 + mfi.merge = func(dst, src pointer) { + sfpp := src.toFloat64Ptr() + if *sfpp != nil { + dfpp := dst.toFloat64Ptr() + if *dfpp == nil { + *dfpp = Float64(**sfpp) + } else { + **dfpp = **sfpp + } + } + } + default: // E.g., float64 + mfi.merge = func(dst, src pointer) { + if v := *src.toFloat64(); v != 0 { + *dst.toFloat64() = v + } + } + } + case reflect.Bool: + switch { + case isSlice: // E.g., []bool + mfi.merge = func(dst, src pointer) { + sfsp := src.toBoolSlice() + if *sfsp != nil { + dfsp := dst.toBoolSlice() + *dfsp = append(*dfsp, *sfsp...) + if *dfsp == nil { + *dfsp = []bool{} + } + } + } + case isPointer: // E.g., *bool + mfi.merge = func(dst, src pointer) { + sfpp := src.toBoolPtr() + if *sfpp != nil { + dfpp := dst.toBoolPtr() + if *dfpp == nil { + *dfpp = Bool(**sfpp) + } else { + **dfpp = **sfpp + } + } + } + default: // E.g., bool + mfi.merge = func(dst, src pointer) { + if v := *src.toBool(); v { + *dst.toBool() = v + } + } + } + case reflect.String: + switch { + case isSlice: // E.g., []string + mfi.merge = func(dst, src pointer) { + sfsp := src.toStringSlice() + if *sfsp != nil { + dfsp := dst.toStringSlice() + *dfsp = append(*dfsp, *sfsp...) + if *dfsp == nil { + *dfsp = []string{} + } + } + } + case isPointer: // E.g., *string + mfi.merge = func(dst, src pointer) { + sfpp := src.toStringPtr() + if *sfpp != nil { + dfpp := dst.toStringPtr() + if *dfpp == nil { + *dfpp = String(**sfpp) + } else { + **dfpp = **sfpp + } + } + } + default: // E.g., string + mfi.merge = func(dst, src pointer) { + if v := *src.toString(); v != "" { + *dst.toString() = v + } + } + } + case reflect.Slice: + isProto3 := props.Prop[i].proto3 + switch { + case isPointer: + panic("bad pointer in byte slice case in " + tf.Name()) + case tf.Elem().Kind() != reflect.Uint8: + panic("bad element kind in byte slice case in " + tf.Name()) + case isSlice: // E.g., [][]byte + mfi.merge = func(dst, src pointer) { + sbsp := src.toBytesSlice() + if *sbsp != nil { + dbsp := dst.toBytesSlice() + for _, sb := range *sbsp { + if sb == nil { + *dbsp = append(*dbsp, nil) + } else { + *dbsp = append(*dbsp, append([]byte{}, sb...)) + } + } + if *dbsp == nil { + *dbsp = [][]byte{} + } + } + } + default: // E.g., []byte + mfi.merge = func(dst, src pointer) { + sbp := src.toBytes() + if *sbp != nil { + dbp := dst.toBytes() + if !isProto3 || len(*sbp) > 0 { + *dbp = append([]byte{}, *sbp...) + } + } + } + } + case reflect.Struct: + switch { + case !isPointer: + panic(fmt.Sprintf("message field %s without pointer", tf)) + case isSlice: // E.g., []*pb.T + mi := getMergeInfo(tf) + mfi.merge = func(dst, src pointer) { + sps := src.getPointerSlice() + if sps != nil { + dps := dst.getPointerSlice() + for _, sp := range sps { + var dp pointer + if !sp.isNil() { + dp = valToPointer(reflect.New(tf)) + mi.merge(dp, sp) + } + dps = append(dps, dp) + } + if dps == nil { + dps = []pointer{} + } + dst.setPointerSlice(dps) + } + } + default: // E.g., *pb.T + mi := getMergeInfo(tf) + mfi.merge = func(dst, src pointer) { + sp := src.getPointer() + if !sp.isNil() { + dp := dst.getPointer() + if dp.isNil() { + dp = valToPointer(reflect.New(tf)) + dst.setPointer(dp) + } + mi.merge(dp, sp) + } + } + } + case reflect.Map: + switch { + case isPointer || isSlice: + panic("bad pointer or slice in map case in " + tf.Name()) + default: // E.g., map[K]V + mfi.merge = func(dst, src pointer) { + sm := src.asPointerTo(tf).Elem() + if sm.Len() == 0 { + return + } + dm := dst.asPointerTo(tf).Elem() + if dm.IsNil() { + dm.Set(reflect.MakeMap(tf)) + } + + switch tf.Elem().Kind() { + case reflect.Ptr: // Proto struct (e.g., *T) + for _, key := range sm.MapKeys() { + val := sm.MapIndex(key) + val = reflect.ValueOf(Clone(val.Interface().(Message))) + dm.SetMapIndex(key, val) + } + case reflect.Slice: // E.g. Bytes type (e.g., []byte) + for _, key := range sm.MapKeys() { + val := sm.MapIndex(key) + val = reflect.ValueOf(append([]byte{}, val.Bytes()...)) + dm.SetMapIndex(key, val) + } + default: // Basic type (e.g., string) + for _, key := range sm.MapKeys() { + val := sm.MapIndex(key) + dm.SetMapIndex(key, val) + } + } + } + } + case reflect.Interface: + // Must be oneof field. + switch { + case isPointer || isSlice: + panic("bad pointer or slice in interface case in " + tf.Name()) + default: // E.g., interface{} + // TODO: Make this faster? + mfi.merge = func(dst, src pointer) { + su := src.asPointerTo(tf).Elem() + if !su.IsNil() { + du := dst.asPointerTo(tf).Elem() + typ := su.Elem().Type() + if du.IsNil() || du.Elem().Type() != typ { + du.Set(reflect.New(typ.Elem())) // Initialize interface if empty + } + sv := su.Elem().Elem().Field(0) + if sv.Kind() == reflect.Ptr && sv.IsNil() { + return + } + dv := du.Elem().Elem().Field(0) + if dv.Kind() == reflect.Ptr && dv.IsNil() { + dv.Set(reflect.New(sv.Type().Elem())) // Initialize proto message if empty + } + switch sv.Type().Kind() { + case reflect.Ptr: // Proto struct (e.g., *T) + Merge(dv.Interface().(Message), sv.Interface().(Message)) + case reflect.Slice: // E.g. Bytes type (e.g., []byte) + dv.Set(reflect.ValueOf(append([]byte{}, sv.Bytes()...))) + default: // Basic type (e.g., string) + dv.Set(sv) + } + } + } + } + default: + panic(fmt.Sprintf("merger not found for type:%s", tf)) + } + mi.fields = append(mi.fields, mfi) + } + + mi.unrecognized = invalidField + if f, ok := t.FieldByName("XXX_unrecognized"); ok { + if f.Type != reflect.TypeOf([]byte{}) { + panic("expected XXX_unrecognized to be of type []byte") + } + mi.unrecognized = toField(&f) + } + + atomic.StoreInt32(&mi.initialized, 1) +} diff --git a/vendor/github.com/golang/protobuf/proto/table_unmarshal.go b/vendor/github.com/golang/protobuf/proto/table_unmarshal.go new file mode 100644 index 0000000..90ec6c2 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/table_unmarshal.go @@ -0,0 +1,2048 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2016 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +import ( + "errors" + "fmt" + "io" + "math" + "reflect" + "strconv" + "strings" + "sync" + "sync/atomic" + "unicode/utf8" +) + +// Unmarshal is the entry point from the generated .pb.go files. +// This function is not intended to be used by non-generated code. +// This function is not subject to any compatibility guarantee. +// msg contains a pointer to a protocol buffer struct. +// b is the data to be unmarshaled into the protocol buffer. +// a is a pointer to a place to store cached unmarshal information. +func (a *InternalMessageInfo) Unmarshal(msg Message, b []byte) error { + // Load the unmarshal information for this message type. + // The atomic load ensures memory consistency. + u := atomicLoadUnmarshalInfo(&a.unmarshal) + if u == nil { + // Slow path: find unmarshal info for msg, update a with it. + u = getUnmarshalInfo(reflect.TypeOf(msg).Elem()) + atomicStoreUnmarshalInfo(&a.unmarshal, u) + } + // Then do the unmarshaling. + err := u.unmarshal(toPointer(&msg), b) + return err +} + +type unmarshalInfo struct { + typ reflect.Type // type of the protobuf struct + + // 0 = only typ field is initialized + // 1 = completely initialized + initialized int32 + lock sync.Mutex // prevents double initialization + dense []unmarshalFieldInfo // fields indexed by tag # + sparse map[uint64]unmarshalFieldInfo // fields indexed by tag # + reqFields []string // names of required fields + reqMask uint64 // 1< 0 { + // Read tag and wire type. + // Special case 1 and 2 byte varints. + var x uint64 + if b[0] < 128 { + x = uint64(b[0]) + b = b[1:] + } else if len(b) >= 2 && b[1] < 128 { + x = uint64(b[0]&0x7f) + uint64(b[1])<<7 + b = b[2:] + } else { + var n int + x, n = decodeVarint(b) + if n == 0 { + return io.ErrUnexpectedEOF + } + b = b[n:] + } + tag := x >> 3 + wire := int(x) & 7 + + // Dispatch on the tag to one of the unmarshal* functions below. + var f unmarshalFieldInfo + if tag < uint64(len(u.dense)) { + f = u.dense[tag] + } else { + f = u.sparse[tag] + } + if fn := f.unmarshal; fn != nil { + var err error + b, err = fn(b, m.offset(f.field), wire) + if err == nil { + reqMask |= f.reqMask + continue + } + if r, ok := err.(*RequiredNotSetError); ok { + // Remember this error, but keep parsing. We need to produce + // a full parse even if a required field is missing. + rnse = r + reqMask |= f.reqMask + continue + } + if err != errInternalBadWireType { + if err == errInvalidUTF8 { + fullName := revProtoTypes[reflect.PtrTo(u.typ)] + "." + f.name + err = fmt.Errorf("proto: string field %q contains invalid UTF-8", fullName) + } + return err + } + // Fragments with bad wire type are treated as unknown fields. + } + + // Unknown tag. + if !u.unrecognized.IsValid() { + // Don't keep unrecognized data; just skip it. + var err error + b, err = skipField(b, wire) + if err != nil { + return err + } + continue + } + // Keep unrecognized data around. + // maybe in extensions, maybe in the unrecognized field. + z := m.offset(u.unrecognized).toBytes() + var emap map[int32]Extension + var e Extension + for _, r := range u.extensionRanges { + if uint64(r.Start) <= tag && tag <= uint64(r.End) { + if u.extensions.IsValid() { + mp := m.offset(u.extensions).toExtensions() + emap = mp.extensionsWrite() + e = emap[int32(tag)] + z = &e.enc + break + } + if u.oldExtensions.IsValid() { + p := m.offset(u.oldExtensions).toOldExtensions() + emap = *p + if emap == nil { + emap = map[int32]Extension{} + *p = emap + } + e = emap[int32(tag)] + z = &e.enc + break + } + panic("no extensions field available") + } + } + + // Use wire type to skip data. + var err error + b0 := b + b, err = skipField(b, wire) + if err != nil { + return err + } + *z = encodeVarint(*z, tag<<3|uint64(wire)) + *z = append(*z, b0[:len(b0)-len(b)]...) + + if emap != nil { + emap[int32(tag)] = e + } + } + if rnse != nil { + // A required field of a submessage/group is missing. Return that error. + return rnse + } + if reqMask != u.reqMask { + // A required field of this message is missing. + for _, n := range u.reqFields { + if reqMask&1 == 0 { + return &RequiredNotSetError{n} + } + reqMask >>= 1 + } + } + return nil +} + +// computeUnmarshalInfo fills in u with information for use +// in unmarshaling protocol buffers of type u.typ. +func (u *unmarshalInfo) computeUnmarshalInfo() { + u.lock.Lock() + defer u.lock.Unlock() + if u.initialized != 0 { + return + } + t := u.typ + n := t.NumField() + + // Set up the "not found" value for the unrecognized byte buffer. + // This is the default for proto3. + u.unrecognized = invalidField + u.extensions = invalidField + u.oldExtensions = invalidField + + // List of the generated type and offset for each oneof field. + type oneofField struct { + ityp reflect.Type // interface type of oneof field + field field // offset in containing message + } + var oneofFields []oneofField + + for i := 0; i < n; i++ { + f := t.Field(i) + if f.Name == "XXX_unrecognized" { + // The byte slice used to hold unrecognized input is special. + if f.Type != reflect.TypeOf(([]byte)(nil)) { + panic("bad type for XXX_unrecognized field: " + f.Type.Name()) + } + u.unrecognized = toField(&f) + continue + } + if f.Name == "XXX_InternalExtensions" { + // Ditto here. + if f.Type != reflect.TypeOf(XXX_InternalExtensions{}) { + panic("bad type for XXX_InternalExtensions field: " + f.Type.Name()) + } + u.extensions = toField(&f) + if f.Tag.Get("protobuf_messageset") == "1" { + u.isMessageSet = true + } + continue + } + if f.Name == "XXX_extensions" { + // An older form of the extensions field. + if f.Type != reflect.TypeOf((map[int32]Extension)(nil)) { + panic("bad type for XXX_extensions field: " + f.Type.Name()) + } + u.oldExtensions = toField(&f) + continue + } + if f.Name == "XXX_NoUnkeyedLiteral" || f.Name == "XXX_sizecache" { + continue + } + + oneof := f.Tag.Get("protobuf_oneof") + if oneof != "" { + oneofFields = append(oneofFields, oneofField{f.Type, toField(&f)}) + // The rest of oneof processing happens below. + continue + } + + tags := f.Tag.Get("protobuf") + tagArray := strings.Split(tags, ",") + if len(tagArray) < 2 { + panic("protobuf tag not enough fields in " + t.Name() + "." + f.Name + ": " + tags) + } + tag, err := strconv.Atoi(tagArray[1]) + if err != nil { + panic("protobuf tag field not an integer: " + tagArray[1]) + } + + name := "" + for _, tag := range tagArray[3:] { + if strings.HasPrefix(tag, "name=") { + name = tag[5:] + } + } + + // Extract unmarshaling function from the field (its type and tags). + unmarshal := fieldUnmarshaler(&f) + + // Required field? + var reqMask uint64 + if tagArray[2] == "req" { + bit := len(u.reqFields) + u.reqFields = append(u.reqFields, name) + reqMask = uint64(1) << uint(bit) + // TODO: if we have more than 64 required fields, we end up + // not verifying that all required fields are present. + // Fix this, perhaps using a count of required fields? + } + + // Store the info in the correct slot in the message. + u.setTag(tag, toField(&f), unmarshal, reqMask, name) + } + + // Find any types associated with oneof fields. + // TODO: XXX_OneofFuncs returns more info than we need. Get rid of some of it? + fn := reflect.Zero(reflect.PtrTo(t)).MethodByName("XXX_OneofFuncs") + if fn.IsValid() { + res := fn.Call(nil)[3] // last return value from XXX_OneofFuncs: []interface{} + for i := res.Len() - 1; i >= 0; i-- { + v := res.Index(i) // interface{} + tptr := reflect.ValueOf(v.Interface()).Type() // *Msg_X + typ := tptr.Elem() // Msg_X + + f := typ.Field(0) // oneof implementers have one field + baseUnmarshal := fieldUnmarshaler(&f) + tags := strings.Split(f.Tag.Get("protobuf"), ",") + fieldNum, err := strconv.Atoi(tags[1]) + if err != nil { + panic("protobuf tag field not an integer: " + tags[1]) + } + var name string + for _, tag := range tags { + if strings.HasPrefix(tag, "name=") { + name = strings.TrimPrefix(tag, "name=") + break + } + } + + // Find the oneof field that this struct implements. + // Might take O(n^2) to process all of the oneofs, but who cares. + for _, of := range oneofFields { + if tptr.Implements(of.ityp) { + // We have found the corresponding interface for this struct. + // That lets us know where this struct should be stored + // when we encounter it during unmarshaling. + unmarshal := makeUnmarshalOneof(typ, of.ityp, baseUnmarshal) + u.setTag(fieldNum, of.field, unmarshal, 0, name) + } + } + } + } + + // Get extension ranges, if any. + fn = reflect.Zero(reflect.PtrTo(t)).MethodByName("ExtensionRangeArray") + if fn.IsValid() { + if !u.extensions.IsValid() && !u.oldExtensions.IsValid() { + panic("a message with extensions, but no extensions field in " + t.Name()) + } + u.extensionRanges = fn.Call(nil)[0].Interface().([]ExtensionRange) + } + + // Explicitly disallow tag 0. This will ensure we flag an error + // when decoding a buffer of all zeros. Without this code, we + // would decode and skip an all-zero buffer of even length. + // [0 0] is [tag=0/wiretype=varint varint-encoded-0]. + u.setTag(0, zeroField, func(b []byte, f pointer, w int) ([]byte, error) { + return nil, fmt.Errorf("proto: %s: illegal tag 0 (wire type %d)", t, w) + }, 0, "") + + // Set mask for required field check. + u.reqMask = uint64(1)<= 0 && (tag < 16 || tag < 2*n) { // TODO: what are the right numbers here? + for len(u.dense) <= tag { + u.dense = append(u.dense, unmarshalFieldInfo{}) + } + u.dense[tag] = i + return + } + if u.sparse == nil { + u.sparse = map[uint64]unmarshalFieldInfo{} + } + u.sparse[uint64(tag)] = i +} + +// fieldUnmarshaler returns an unmarshaler for the given field. +func fieldUnmarshaler(f *reflect.StructField) unmarshaler { + if f.Type.Kind() == reflect.Map { + return makeUnmarshalMap(f) + } + return typeUnmarshaler(f.Type, f.Tag.Get("protobuf")) +} + +// typeUnmarshaler returns an unmarshaler for the given field type / field tag pair. +func typeUnmarshaler(t reflect.Type, tags string) unmarshaler { + tagArray := strings.Split(tags, ",") + encoding := tagArray[0] + name := "unknown" + proto3 := false + validateUTF8 := true + for _, tag := range tagArray[3:] { + if strings.HasPrefix(tag, "name=") { + name = tag[5:] + } + if tag == "proto3" { + proto3 = true + } + } + validateUTF8 = validateUTF8 && proto3 + + // Figure out packaging (pointer, slice, or both) + slice := false + pointer := false + if t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8 { + slice = true + t = t.Elem() + } + if t.Kind() == reflect.Ptr { + pointer = true + t = t.Elem() + } + + // We'll never have both pointer and slice for basic types. + if pointer && slice && t.Kind() != reflect.Struct { + panic("both pointer and slice for basic type in " + t.Name()) + } + + switch t.Kind() { + case reflect.Bool: + if pointer { + return unmarshalBoolPtr + } + if slice { + return unmarshalBoolSlice + } + return unmarshalBoolValue + case reflect.Int32: + switch encoding { + case "fixed32": + if pointer { + return unmarshalFixedS32Ptr + } + if slice { + return unmarshalFixedS32Slice + } + return unmarshalFixedS32Value + case "varint": + // this could be int32 or enum + if pointer { + return unmarshalInt32Ptr + } + if slice { + return unmarshalInt32Slice + } + return unmarshalInt32Value + case "zigzag32": + if pointer { + return unmarshalSint32Ptr + } + if slice { + return unmarshalSint32Slice + } + return unmarshalSint32Value + } + case reflect.Int64: + switch encoding { + case "fixed64": + if pointer { + return unmarshalFixedS64Ptr + } + if slice { + return unmarshalFixedS64Slice + } + return unmarshalFixedS64Value + case "varint": + if pointer { + return unmarshalInt64Ptr + } + if slice { + return unmarshalInt64Slice + } + return unmarshalInt64Value + case "zigzag64": + if pointer { + return unmarshalSint64Ptr + } + if slice { + return unmarshalSint64Slice + } + return unmarshalSint64Value + } + case reflect.Uint32: + switch encoding { + case "fixed32": + if pointer { + return unmarshalFixed32Ptr + } + if slice { + return unmarshalFixed32Slice + } + return unmarshalFixed32Value + case "varint": + if pointer { + return unmarshalUint32Ptr + } + if slice { + return unmarshalUint32Slice + } + return unmarshalUint32Value + } + case reflect.Uint64: + switch encoding { + case "fixed64": + if pointer { + return unmarshalFixed64Ptr + } + if slice { + return unmarshalFixed64Slice + } + return unmarshalFixed64Value + case "varint": + if pointer { + return unmarshalUint64Ptr + } + if slice { + return unmarshalUint64Slice + } + return unmarshalUint64Value + } + case reflect.Float32: + if pointer { + return unmarshalFloat32Ptr + } + if slice { + return unmarshalFloat32Slice + } + return unmarshalFloat32Value + case reflect.Float64: + if pointer { + return unmarshalFloat64Ptr + } + if slice { + return unmarshalFloat64Slice + } + return unmarshalFloat64Value + case reflect.Map: + panic("map type in typeUnmarshaler in " + t.Name()) + case reflect.Slice: + if pointer { + panic("bad pointer in slice case in " + t.Name()) + } + if slice { + return unmarshalBytesSlice + } + return unmarshalBytesValue + case reflect.String: + if validateUTF8 { + if pointer { + return unmarshalUTF8StringPtr + } + if slice { + return unmarshalUTF8StringSlice + } + return unmarshalUTF8StringValue + } + if pointer { + return unmarshalStringPtr + } + if slice { + return unmarshalStringSlice + } + return unmarshalStringValue + case reflect.Struct: + // message or group field + if !pointer { + panic(fmt.Sprintf("message/group field %s:%s without pointer", t, encoding)) + } + switch encoding { + case "bytes": + if slice { + return makeUnmarshalMessageSlicePtr(getUnmarshalInfo(t), name) + } + return makeUnmarshalMessagePtr(getUnmarshalInfo(t), name) + case "group": + if slice { + return makeUnmarshalGroupSlicePtr(getUnmarshalInfo(t), name) + } + return makeUnmarshalGroupPtr(getUnmarshalInfo(t), name) + } + } + panic(fmt.Sprintf("unmarshaler not found type:%s encoding:%s", t, encoding)) +} + +// Below are all the unmarshalers for individual fields of various types. + +func unmarshalInt64Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int64(x) + *f.toInt64() = v + return b, nil +} + +func unmarshalInt64Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int64(x) + *f.toInt64Ptr() = &v + return b, nil +} + +func unmarshalInt64Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + x, n = decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int64(x) + s := f.toInt64Slice() + *s = append(*s, v) + } + return res, nil + } + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int64(x) + s := f.toInt64Slice() + *s = append(*s, v) + return b, nil +} + +func unmarshalSint64Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int64(x>>1) ^ int64(x)<<63>>63 + *f.toInt64() = v + return b, nil +} + +func unmarshalSint64Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int64(x>>1) ^ int64(x)<<63>>63 + *f.toInt64Ptr() = &v + return b, nil +} + +func unmarshalSint64Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + x, n = decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int64(x>>1) ^ int64(x)<<63>>63 + s := f.toInt64Slice() + *s = append(*s, v) + } + return res, nil + } + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int64(x>>1) ^ int64(x)<<63>>63 + s := f.toInt64Slice() + *s = append(*s, v) + return b, nil +} + +func unmarshalUint64Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := uint64(x) + *f.toUint64() = v + return b, nil +} + +func unmarshalUint64Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := uint64(x) + *f.toUint64Ptr() = &v + return b, nil +} + +func unmarshalUint64Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + x, n = decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := uint64(x) + s := f.toUint64Slice() + *s = append(*s, v) + } + return res, nil + } + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := uint64(x) + s := f.toUint64Slice() + *s = append(*s, v) + return b, nil +} + +func unmarshalInt32Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int32(x) + *f.toInt32() = v + return b, nil +} + +func unmarshalInt32Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int32(x) + f.setInt32Ptr(v) + return b, nil +} + +func unmarshalInt32Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + x, n = decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int32(x) + f.appendInt32Slice(v) + } + return res, nil + } + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int32(x) + f.appendInt32Slice(v) + return b, nil +} + +func unmarshalSint32Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int32(x>>1) ^ int32(x)<<31>>31 + *f.toInt32() = v + return b, nil +} + +func unmarshalSint32Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int32(x>>1) ^ int32(x)<<31>>31 + f.setInt32Ptr(v) + return b, nil +} + +func unmarshalSint32Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + x, n = decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int32(x>>1) ^ int32(x)<<31>>31 + f.appendInt32Slice(v) + } + return res, nil + } + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int32(x>>1) ^ int32(x)<<31>>31 + f.appendInt32Slice(v) + return b, nil +} + +func unmarshalUint32Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := uint32(x) + *f.toUint32() = v + return b, nil +} + +func unmarshalUint32Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := uint32(x) + *f.toUint32Ptr() = &v + return b, nil +} + +func unmarshalUint32Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + x, n = decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := uint32(x) + s := f.toUint32Slice() + *s = append(*s, v) + } + return res, nil + } + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := uint32(x) + s := f.toUint32Slice() + *s = append(*s, v) + return b, nil +} + +func unmarshalFixed64Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed64 { + return b, errInternalBadWireType + } + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56 + *f.toUint64() = v + return b[8:], nil +} + +func unmarshalFixed64Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed64 { + return b, errInternalBadWireType + } + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56 + *f.toUint64Ptr() = &v + return b[8:], nil +} + +func unmarshalFixed64Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56 + s := f.toUint64Slice() + *s = append(*s, v) + b = b[8:] + } + return res, nil + } + if w != WireFixed64 { + return b, errInternalBadWireType + } + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56 + s := f.toUint64Slice() + *s = append(*s, v) + return b[8:], nil +} + +func unmarshalFixedS64Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed64 { + return b, errInternalBadWireType + } + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := int64(b[0]) | int64(b[1])<<8 | int64(b[2])<<16 | int64(b[3])<<24 | int64(b[4])<<32 | int64(b[5])<<40 | int64(b[6])<<48 | int64(b[7])<<56 + *f.toInt64() = v + return b[8:], nil +} + +func unmarshalFixedS64Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed64 { + return b, errInternalBadWireType + } + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := int64(b[0]) | int64(b[1])<<8 | int64(b[2])<<16 | int64(b[3])<<24 | int64(b[4])<<32 | int64(b[5])<<40 | int64(b[6])<<48 | int64(b[7])<<56 + *f.toInt64Ptr() = &v + return b[8:], nil +} + +func unmarshalFixedS64Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := int64(b[0]) | int64(b[1])<<8 | int64(b[2])<<16 | int64(b[3])<<24 | int64(b[4])<<32 | int64(b[5])<<40 | int64(b[6])<<48 | int64(b[7])<<56 + s := f.toInt64Slice() + *s = append(*s, v) + b = b[8:] + } + return res, nil + } + if w != WireFixed64 { + return b, errInternalBadWireType + } + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := int64(b[0]) | int64(b[1])<<8 | int64(b[2])<<16 | int64(b[3])<<24 | int64(b[4])<<32 | int64(b[5])<<40 | int64(b[6])<<48 | int64(b[7])<<56 + s := f.toInt64Slice() + *s = append(*s, v) + return b[8:], nil +} + +func unmarshalFixed32Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed32 { + return b, errInternalBadWireType + } + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24 + *f.toUint32() = v + return b[4:], nil +} + +func unmarshalFixed32Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed32 { + return b, errInternalBadWireType + } + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24 + *f.toUint32Ptr() = &v + return b[4:], nil +} + +func unmarshalFixed32Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24 + s := f.toUint32Slice() + *s = append(*s, v) + b = b[4:] + } + return res, nil + } + if w != WireFixed32 { + return b, errInternalBadWireType + } + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24 + s := f.toUint32Slice() + *s = append(*s, v) + return b[4:], nil +} + +func unmarshalFixedS32Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed32 { + return b, errInternalBadWireType + } + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := int32(b[0]) | int32(b[1])<<8 | int32(b[2])<<16 | int32(b[3])<<24 + *f.toInt32() = v + return b[4:], nil +} + +func unmarshalFixedS32Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed32 { + return b, errInternalBadWireType + } + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := int32(b[0]) | int32(b[1])<<8 | int32(b[2])<<16 | int32(b[3])<<24 + f.setInt32Ptr(v) + return b[4:], nil +} + +func unmarshalFixedS32Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := int32(b[0]) | int32(b[1])<<8 | int32(b[2])<<16 | int32(b[3])<<24 + f.appendInt32Slice(v) + b = b[4:] + } + return res, nil + } + if w != WireFixed32 { + return b, errInternalBadWireType + } + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := int32(b[0]) | int32(b[1])<<8 | int32(b[2])<<16 | int32(b[3])<<24 + f.appendInt32Slice(v) + return b[4:], nil +} + +func unmarshalBoolValue(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + // Note: any length varint is allowed, even though any sane + // encoder will use one byte. + // See https://github.com/golang/protobuf/issues/76 + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + // TODO: check if x>1? Tests seem to indicate no. + v := x != 0 + *f.toBool() = v + return b[n:], nil +} + +func unmarshalBoolPtr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + v := x != 0 + *f.toBoolPtr() = &v + return b[n:], nil +} + +func unmarshalBoolSlice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + x, n = decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + v := x != 0 + s := f.toBoolSlice() + *s = append(*s, v) + b = b[n:] + } + return res, nil + } + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + v := x != 0 + s := f.toBoolSlice() + *s = append(*s, v) + return b[n:], nil +} + +func unmarshalFloat64Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed64 { + return b, errInternalBadWireType + } + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := math.Float64frombits(uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56) + *f.toFloat64() = v + return b[8:], nil +} + +func unmarshalFloat64Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed64 { + return b, errInternalBadWireType + } + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := math.Float64frombits(uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56) + *f.toFloat64Ptr() = &v + return b[8:], nil +} + +func unmarshalFloat64Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := math.Float64frombits(uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56) + s := f.toFloat64Slice() + *s = append(*s, v) + b = b[8:] + } + return res, nil + } + if w != WireFixed64 { + return b, errInternalBadWireType + } + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := math.Float64frombits(uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56) + s := f.toFloat64Slice() + *s = append(*s, v) + return b[8:], nil +} + +func unmarshalFloat32Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed32 { + return b, errInternalBadWireType + } + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := math.Float32frombits(uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24) + *f.toFloat32() = v + return b[4:], nil +} + +func unmarshalFloat32Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed32 { + return b, errInternalBadWireType + } + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := math.Float32frombits(uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24) + *f.toFloat32Ptr() = &v + return b[4:], nil +} + +func unmarshalFloat32Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := math.Float32frombits(uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24) + s := f.toFloat32Slice() + *s = append(*s, v) + b = b[4:] + } + return res, nil + } + if w != WireFixed32 { + return b, errInternalBadWireType + } + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := math.Float32frombits(uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24) + s := f.toFloat32Slice() + *s = append(*s, v) + return b[4:], nil +} + +func unmarshalStringValue(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + v := string(b[:x]) + *f.toString() = v + return b[x:], nil +} + +func unmarshalStringPtr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + v := string(b[:x]) + *f.toStringPtr() = &v + return b[x:], nil +} + +func unmarshalStringSlice(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + v := string(b[:x]) + s := f.toStringSlice() + *s = append(*s, v) + return b[x:], nil +} + +func unmarshalUTF8StringValue(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + v := string(b[:x]) + if !utf8.ValidString(v) { + return nil, errInvalidUTF8 + } + *f.toString() = v + return b[x:], nil +} + +func unmarshalUTF8StringPtr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + v := string(b[:x]) + if !utf8.ValidString(v) { + return nil, errInvalidUTF8 + } + *f.toStringPtr() = &v + return b[x:], nil +} + +func unmarshalUTF8StringSlice(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + v := string(b[:x]) + if !utf8.ValidString(v) { + return nil, errInvalidUTF8 + } + s := f.toStringSlice() + *s = append(*s, v) + return b[x:], nil +} + +var emptyBuf [0]byte + +func unmarshalBytesValue(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + // The use of append here is a trick which avoids the zeroing + // that would be required if we used a make/copy pair. + // We append to emptyBuf instead of nil because we want + // a non-nil result even when the length is 0. + v := append(emptyBuf[:], b[:x]...) + *f.toBytes() = v + return b[x:], nil +} + +func unmarshalBytesSlice(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + v := append(emptyBuf[:], b[:x]...) + s := f.toBytesSlice() + *s = append(*s, v) + return b[x:], nil +} + +func makeUnmarshalMessagePtr(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + // First read the message field to see if something is there. + // The semantics of multiple submessages are weird. Instead of + // the last one winning (as it is for all other fields), multiple + // submessages are merged. + v := f.getPointer() + if v.isNil() { + v = valToPointer(reflect.New(sub.typ)) + f.setPointer(v) + } + err := sub.unmarshal(v, b[:x]) + if err != nil { + if r, ok := err.(*RequiredNotSetError); ok { + r.field = name + "." + r.field + } else { + return nil, err + } + } + return b[x:], err + } +} + +func makeUnmarshalMessageSlicePtr(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + v := valToPointer(reflect.New(sub.typ)) + err := sub.unmarshal(v, b[:x]) + if err != nil { + if r, ok := err.(*RequiredNotSetError); ok { + r.field = name + "." + r.field + } else { + return nil, err + } + } + f.appendPointer(v) + return b[x:], err + } +} + +func makeUnmarshalGroupPtr(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireStartGroup { + return b, errInternalBadWireType + } + x, y := findEndGroup(b) + if x < 0 { + return nil, io.ErrUnexpectedEOF + } + v := f.getPointer() + if v.isNil() { + v = valToPointer(reflect.New(sub.typ)) + f.setPointer(v) + } + err := sub.unmarshal(v, b[:x]) + if err != nil { + if r, ok := err.(*RequiredNotSetError); ok { + r.field = name + "." + r.field + } else { + return nil, err + } + } + return b[y:], err + } +} + +func makeUnmarshalGroupSlicePtr(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireStartGroup { + return b, errInternalBadWireType + } + x, y := findEndGroup(b) + if x < 0 { + return nil, io.ErrUnexpectedEOF + } + v := valToPointer(reflect.New(sub.typ)) + err := sub.unmarshal(v, b[:x]) + if err != nil { + if r, ok := err.(*RequiredNotSetError); ok { + r.field = name + "." + r.field + } else { + return nil, err + } + } + f.appendPointer(v) + return b[y:], err + } +} + +func makeUnmarshalMap(f *reflect.StructField) unmarshaler { + t := f.Type + kt := t.Key() + vt := t.Elem() + unmarshalKey := typeUnmarshaler(kt, f.Tag.Get("protobuf_key")) + unmarshalVal := typeUnmarshaler(vt, f.Tag.Get("protobuf_val")) + return func(b []byte, f pointer, w int) ([]byte, error) { + // The map entry is a submessage. Figure out how big it is. + if w != WireBytes { + return nil, fmt.Errorf("proto: bad wiretype for map field: got %d want %d", w, WireBytes) + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + r := b[x:] // unused data to return + b = b[:x] // data for map entry + + // Note: we could use #keys * #values ~= 200 functions + // to do map decoding without reflection. Probably not worth it. + // Maps will be somewhat slow. Oh well. + + // Read key and value from data. + k := reflect.New(kt) + v := reflect.New(vt) + for len(b) > 0 { + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + wire := int(x) & 7 + b = b[n:] + + var err error + switch x >> 3 { + case 1: + b, err = unmarshalKey(b, valToPointer(k), wire) + case 2: + b, err = unmarshalVal(b, valToPointer(v), wire) + default: + err = errInternalBadWireType // skip unknown tag + } + + if err == nil { + continue + } + if err != errInternalBadWireType { + return nil, err + } + + // Skip past unknown fields. + b, err = skipField(b, wire) + if err != nil { + return nil, err + } + } + + // Get map, allocate if needed. + m := f.asPointerTo(t).Elem() // an addressable map[K]T + if m.IsNil() { + m.Set(reflect.MakeMap(t)) + } + + // Insert into map. + m.SetMapIndex(k.Elem(), v.Elem()) + + return r, nil + } +} + +// makeUnmarshalOneof makes an unmarshaler for oneof fields. +// for: +// message Msg { +// oneof F { +// int64 X = 1; +// float64 Y = 2; +// } +// } +// typ is the type of the concrete entry for a oneof case (e.g. Msg_X). +// ityp is the interface type of the oneof field (e.g. isMsg_F). +// unmarshal is the unmarshaler for the base type of the oneof case (e.g. int64). +// Note that this function will be called once for each case in the oneof. +func makeUnmarshalOneof(typ, ityp reflect.Type, unmarshal unmarshaler) unmarshaler { + sf := typ.Field(0) + field0 := toField(&sf) + return func(b []byte, f pointer, w int) ([]byte, error) { + // Allocate holder for value. + v := reflect.New(typ) + + // Unmarshal data into holder. + // We unmarshal into the first field of the holder object. + var err error + b, err = unmarshal(b, valToPointer(v).offset(field0), w) + if err != nil { + return nil, err + } + + // Write pointer to holder into target field. + f.asPointerTo(ityp).Elem().Set(v) + + return b, nil + } +} + +// Error used by decode internally. +var errInternalBadWireType = errors.New("proto: internal error: bad wiretype") + +// skipField skips past a field of type wire and returns the remaining bytes. +func skipField(b []byte, wire int) ([]byte, error) { + switch wire { + case WireVarint: + _, k := decodeVarint(b) + if k == 0 { + return b, io.ErrUnexpectedEOF + } + b = b[k:] + case WireFixed32: + if len(b) < 4 { + return b, io.ErrUnexpectedEOF + } + b = b[4:] + case WireFixed64: + if len(b) < 8 { + return b, io.ErrUnexpectedEOF + } + b = b[8:] + case WireBytes: + m, k := decodeVarint(b) + if k == 0 || uint64(len(b)-k) < m { + return b, io.ErrUnexpectedEOF + } + b = b[uint64(k)+m:] + case WireStartGroup: + _, i := findEndGroup(b) + if i == -1 { + return b, io.ErrUnexpectedEOF + } + b = b[i:] + default: + return b, fmt.Errorf("proto: can't skip unknown wire type %d", wire) + } + return b, nil +} + +// findEndGroup finds the index of the next EndGroup tag. +// Groups may be nested, so the "next" EndGroup tag is the first +// unpaired EndGroup. +// findEndGroup returns the indexes of the start and end of the EndGroup tag. +// Returns (-1,-1) if it can't find one. +func findEndGroup(b []byte) (int, int) { + depth := 1 + i := 0 + for { + x, n := decodeVarint(b[i:]) + if n == 0 { + return -1, -1 + } + j := i + i += n + switch x & 7 { + case WireVarint: + _, k := decodeVarint(b[i:]) + if k == 0 { + return -1, -1 + } + i += k + case WireFixed32: + if len(b)-4 < i { + return -1, -1 + } + i += 4 + case WireFixed64: + if len(b)-8 < i { + return -1, -1 + } + i += 8 + case WireBytes: + m, k := decodeVarint(b[i:]) + if k == 0 { + return -1, -1 + } + i += k + if uint64(len(b)-i) < m { + return -1, -1 + } + i += int(m) + case WireStartGroup: + depth++ + case WireEndGroup: + depth-- + if depth == 0 { + return j, i + } + default: + return -1, -1 + } + } +} + +// encodeVarint appends a varint-encoded integer to b and returns the result. +func encodeVarint(b []byte, x uint64) []byte { + for x >= 1<<7 { + b = append(b, byte(x&0x7f|0x80)) + x >>= 7 + } + return append(b, byte(x)) +} + +// decodeVarint reads a varint-encoded integer from b. +// Returns the decoded integer and the number of bytes read. +// If there is an error, it returns 0,0. +func decodeVarint(b []byte) (uint64, int) { + var x, y uint64 + if len(b) <= 0 { + goto bad + } + x = uint64(b[0]) + if x < 0x80 { + return x, 1 + } + x -= 0x80 + + if len(b) <= 1 { + goto bad + } + y = uint64(b[1]) + x += y << 7 + if y < 0x80 { + return x, 2 + } + x -= 0x80 << 7 + + if len(b) <= 2 { + goto bad + } + y = uint64(b[2]) + x += y << 14 + if y < 0x80 { + return x, 3 + } + x -= 0x80 << 14 + + if len(b) <= 3 { + goto bad + } + y = uint64(b[3]) + x += y << 21 + if y < 0x80 { + return x, 4 + } + x -= 0x80 << 21 + + if len(b) <= 4 { + goto bad + } + y = uint64(b[4]) + x += y << 28 + if y < 0x80 { + return x, 5 + } + x -= 0x80 << 28 + + if len(b) <= 5 { + goto bad + } + y = uint64(b[5]) + x += y << 35 + if y < 0x80 { + return x, 6 + } + x -= 0x80 << 35 + + if len(b) <= 6 { + goto bad + } + y = uint64(b[6]) + x += y << 42 + if y < 0x80 { + return x, 7 + } + x -= 0x80 << 42 + + if len(b) <= 7 { + goto bad + } + y = uint64(b[7]) + x += y << 49 + if y < 0x80 { + return x, 8 + } + x -= 0x80 << 49 + + if len(b) <= 8 { + goto bad + } + y = uint64(b[8]) + x += y << 56 + if y < 0x80 { + return x, 9 + } + x -= 0x80 << 56 + + if len(b) <= 9 { + goto bad + } + y = uint64(b[9]) + x += y << 63 + if y < 2 { + return x, 10 + } + +bad: + return 0, 0 +} diff --git a/vendor/github.com/golang/protobuf/proto/text.go b/vendor/github.com/golang/protobuf/proto/text.go new file mode 100644 index 0000000..1aaee72 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/text.go @@ -0,0 +1,843 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2010 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +// Functions for writing the text protocol buffer format. + +import ( + "bufio" + "bytes" + "encoding" + "errors" + "fmt" + "io" + "log" + "math" + "reflect" + "sort" + "strings" +) + +var ( + newline = []byte("\n") + spaces = []byte(" ") + endBraceNewline = []byte("}\n") + backslashN = []byte{'\\', 'n'} + backslashR = []byte{'\\', 'r'} + backslashT = []byte{'\\', 't'} + backslashDQ = []byte{'\\', '"'} + backslashBS = []byte{'\\', '\\'} + posInf = []byte("inf") + negInf = []byte("-inf") + nan = []byte("nan") +) + +type writer interface { + io.Writer + WriteByte(byte) error +} + +// textWriter is an io.Writer that tracks its indentation level. +type textWriter struct { + ind int + complete bool // if the current position is a complete line + compact bool // whether to write out as a one-liner + w writer +} + +func (w *textWriter) WriteString(s string) (n int, err error) { + if !strings.Contains(s, "\n") { + if !w.compact && w.complete { + w.writeIndent() + } + w.complete = false + return io.WriteString(w.w, s) + } + // WriteString is typically called without newlines, so this + // codepath and its copy are rare. We copy to avoid + // duplicating all of Write's logic here. + return w.Write([]byte(s)) +} + +func (w *textWriter) Write(p []byte) (n int, err error) { + newlines := bytes.Count(p, newline) + if newlines == 0 { + if !w.compact && w.complete { + w.writeIndent() + } + n, err = w.w.Write(p) + w.complete = false + return n, err + } + + frags := bytes.SplitN(p, newline, newlines+1) + if w.compact { + for i, frag := range frags { + if i > 0 { + if err := w.w.WriteByte(' '); err != nil { + return n, err + } + n++ + } + nn, err := w.w.Write(frag) + n += nn + if err != nil { + return n, err + } + } + return n, nil + } + + for i, frag := range frags { + if w.complete { + w.writeIndent() + } + nn, err := w.w.Write(frag) + n += nn + if err != nil { + return n, err + } + if i+1 < len(frags) { + if err := w.w.WriteByte('\n'); err != nil { + return n, err + } + n++ + } + } + w.complete = len(frags[len(frags)-1]) == 0 + return n, nil +} + +func (w *textWriter) WriteByte(c byte) error { + if w.compact && c == '\n' { + c = ' ' + } + if !w.compact && w.complete { + w.writeIndent() + } + err := w.w.WriteByte(c) + w.complete = c == '\n' + return err +} + +func (w *textWriter) indent() { w.ind++ } + +func (w *textWriter) unindent() { + if w.ind == 0 { + log.Print("proto: textWriter unindented too far") + return + } + w.ind-- +} + +func writeName(w *textWriter, props *Properties) error { + if _, err := w.WriteString(props.OrigName); err != nil { + return err + } + if props.Wire != "group" { + return w.WriteByte(':') + } + return nil +} + +func requiresQuotes(u string) bool { + // When type URL contains any characters except [0-9A-Za-z./\-]*, it must be quoted. + for _, ch := range u { + switch { + case ch == '.' || ch == '/' || ch == '_': + continue + case '0' <= ch && ch <= '9': + continue + case 'A' <= ch && ch <= 'Z': + continue + case 'a' <= ch && ch <= 'z': + continue + default: + return true + } + } + return false +} + +// isAny reports whether sv is a google.protobuf.Any message +func isAny(sv reflect.Value) bool { + type wkt interface { + XXX_WellKnownType() string + } + t, ok := sv.Addr().Interface().(wkt) + return ok && t.XXX_WellKnownType() == "Any" +} + +// writeProto3Any writes an expanded google.protobuf.Any message. +// +// It returns (false, nil) if sv value can't be unmarshaled (e.g. because +// required messages are not linked in). +// +// It returns (true, error) when sv was written in expanded format or an error +// was encountered. +func (tm *TextMarshaler) writeProto3Any(w *textWriter, sv reflect.Value) (bool, error) { + turl := sv.FieldByName("TypeUrl") + val := sv.FieldByName("Value") + if !turl.IsValid() || !val.IsValid() { + return true, errors.New("proto: invalid google.protobuf.Any message") + } + + b, ok := val.Interface().([]byte) + if !ok { + return true, errors.New("proto: invalid google.protobuf.Any message") + } + + parts := strings.Split(turl.String(), "/") + mt := MessageType(parts[len(parts)-1]) + if mt == nil { + return false, nil + } + m := reflect.New(mt.Elem()) + if err := Unmarshal(b, m.Interface().(Message)); err != nil { + return false, nil + } + w.Write([]byte("[")) + u := turl.String() + if requiresQuotes(u) { + writeString(w, u) + } else { + w.Write([]byte(u)) + } + if w.compact { + w.Write([]byte("]:<")) + } else { + w.Write([]byte("]: <\n")) + w.ind++ + } + if err := tm.writeStruct(w, m.Elem()); err != nil { + return true, err + } + if w.compact { + w.Write([]byte("> ")) + } else { + w.ind-- + w.Write([]byte(">\n")) + } + return true, nil +} + +func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error { + if tm.ExpandAny && isAny(sv) { + if canExpand, err := tm.writeProto3Any(w, sv); canExpand { + return err + } + } + st := sv.Type() + sprops := GetProperties(st) + for i := 0; i < sv.NumField(); i++ { + fv := sv.Field(i) + props := sprops.Prop[i] + name := st.Field(i).Name + + if name == "XXX_NoUnkeyedLiteral" { + continue + } + + if strings.HasPrefix(name, "XXX_") { + // There are two XXX_ fields: + // XXX_unrecognized []byte + // XXX_extensions map[int32]proto.Extension + // The first is handled here; + // the second is handled at the bottom of this function. + if name == "XXX_unrecognized" && !fv.IsNil() { + if err := writeUnknownStruct(w, fv.Interface().([]byte)); err != nil { + return err + } + } + continue + } + if fv.Kind() == reflect.Ptr && fv.IsNil() { + // Field not filled in. This could be an optional field or + // a required field that wasn't filled in. Either way, there + // isn't anything we can show for it. + continue + } + if fv.Kind() == reflect.Slice && fv.IsNil() { + // Repeated field that is empty, or a bytes field that is unused. + continue + } + + if props.Repeated && fv.Kind() == reflect.Slice { + // Repeated field. + for j := 0; j < fv.Len(); j++ { + if err := writeName(w, props); err != nil { + return err + } + if !w.compact { + if err := w.WriteByte(' '); err != nil { + return err + } + } + v := fv.Index(j) + if v.Kind() == reflect.Ptr && v.IsNil() { + // A nil message in a repeated field is not valid, + // but we can handle that more gracefully than panicking. + if _, err := w.Write([]byte("\n")); err != nil { + return err + } + continue + } + if err := tm.writeAny(w, v, props); err != nil { + return err + } + if err := w.WriteByte('\n'); err != nil { + return err + } + } + continue + } + if fv.Kind() == reflect.Map { + // Map fields are rendered as a repeated struct with key/value fields. + keys := fv.MapKeys() + sort.Sort(mapKeys(keys)) + for _, key := range keys { + val := fv.MapIndex(key) + if err := writeName(w, props); err != nil { + return err + } + if !w.compact { + if err := w.WriteByte(' '); err != nil { + return err + } + } + // open struct + if err := w.WriteByte('<'); err != nil { + return err + } + if !w.compact { + if err := w.WriteByte('\n'); err != nil { + return err + } + } + w.indent() + // key + if _, err := w.WriteString("key:"); err != nil { + return err + } + if !w.compact { + if err := w.WriteByte(' '); err != nil { + return err + } + } + if err := tm.writeAny(w, key, props.MapKeyProp); err != nil { + return err + } + if err := w.WriteByte('\n'); err != nil { + return err + } + // nil values aren't legal, but we can avoid panicking because of them. + if val.Kind() != reflect.Ptr || !val.IsNil() { + // value + if _, err := w.WriteString("value:"); err != nil { + return err + } + if !w.compact { + if err := w.WriteByte(' '); err != nil { + return err + } + } + if err := tm.writeAny(w, val, props.MapValProp); err != nil { + return err + } + if err := w.WriteByte('\n'); err != nil { + return err + } + } + // close struct + w.unindent() + if err := w.WriteByte('>'); err != nil { + return err + } + if err := w.WriteByte('\n'); err != nil { + return err + } + } + continue + } + if props.proto3 && fv.Kind() == reflect.Slice && fv.Len() == 0 { + // empty bytes field + continue + } + if fv.Kind() != reflect.Ptr && fv.Kind() != reflect.Slice { + // proto3 non-repeated scalar field; skip if zero value + if isProto3Zero(fv) { + continue + } + } + + if fv.Kind() == reflect.Interface { + // Check if it is a oneof. + if st.Field(i).Tag.Get("protobuf_oneof") != "" { + // fv is nil, or holds a pointer to generated struct. + // That generated struct has exactly one field, + // which has a protobuf struct tag. + if fv.IsNil() { + continue + } + inner := fv.Elem().Elem() // interface -> *T -> T + tag := inner.Type().Field(0).Tag.Get("protobuf") + props = new(Properties) // Overwrite the outer props var, but not its pointee. + props.Parse(tag) + // Write the value in the oneof, not the oneof itself. + fv = inner.Field(0) + + // Special case to cope with malformed messages gracefully: + // If the value in the oneof is a nil pointer, don't panic + // in writeAny. + if fv.Kind() == reflect.Ptr && fv.IsNil() { + // Use errors.New so writeAny won't render quotes. + msg := errors.New("/* nil */") + fv = reflect.ValueOf(&msg).Elem() + } + } + } + + if err := writeName(w, props); err != nil { + return err + } + if !w.compact { + if err := w.WriteByte(' '); err != nil { + return err + } + } + + // Enums have a String method, so writeAny will work fine. + if err := tm.writeAny(w, fv, props); err != nil { + return err + } + + if err := w.WriteByte('\n'); err != nil { + return err + } + } + + // Extensions (the XXX_extensions field). + pv := sv.Addr() + if _, err := extendable(pv.Interface()); err == nil { + if err := tm.writeExtensions(w, pv); err != nil { + return err + } + } + + return nil +} + +// writeAny writes an arbitrary field. +func (tm *TextMarshaler) writeAny(w *textWriter, v reflect.Value, props *Properties) error { + v = reflect.Indirect(v) + + // Floats have special cases. + if v.Kind() == reflect.Float32 || v.Kind() == reflect.Float64 { + x := v.Float() + var b []byte + switch { + case math.IsInf(x, 1): + b = posInf + case math.IsInf(x, -1): + b = negInf + case math.IsNaN(x): + b = nan + } + if b != nil { + _, err := w.Write(b) + return err + } + // Other values are handled below. + } + + // We don't attempt to serialise every possible value type; only those + // that can occur in protocol buffers. + switch v.Kind() { + case reflect.Slice: + // Should only be a []byte; repeated fields are handled in writeStruct. + if err := writeString(w, string(v.Bytes())); err != nil { + return err + } + case reflect.String: + if err := writeString(w, v.String()); err != nil { + return err + } + case reflect.Struct: + // Required/optional group/message. + var bra, ket byte = '<', '>' + if props != nil && props.Wire == "group" { + bra, ket = '{', '}' + } + if err := w.WriteByte(bra); err != nil { + return err + } + if !w.compact { + if err := w.WriteByte('\n'); err != nil { + return err + } + } + w.indent() + if v.CanAddr() { + // Calling v.Interface on a struct causes the reflect package to + // copy the entire struct. This is racy with the new Marshaler + // since we atomically update the XXX_sizecache. + // + // Thus, we retrieve a pointer to the struct if possible to avoid + // a race since v.Interface on the pointer doesn't copy the struct. + // + // If v is not addressable, then we are not worried about a race + // since it implies that the binary Marshaler cannot possibly be + // mutating this value. + v = v.Addr() + } + if etm, ok := v.Interface().(encoding.TextMarshaler); ok { + text, err := etm.MarshalText() + if err != nil { + return err + } + if _, err = w.Write(text); err != nil { + return err + } + } else { + if v.Kind() == reflect.Ptr { + v = v.Elem() + } + if err := tm.writeStruct(w, v); err != nil { + return err + } + } + w.unindent() + if err := w.WriteByte(ket); err != nil { + return err + } + default: + _, err := fmt.Fprint(w, v.Interface()) + return err + } + return nil +} + +// equivalent to C's isprint. +func isprint(c byte) bool { + return c >= 0x20 && c < 0x7f +} + +// writeString writes a string in the protocol buffer text format. +// It is similar to strconv.Quote except we don't use Go escape sequences, +// we treat the string as a byte sequence, and we use octal escapes. +// These differences are to maintain interoperability with the other +// languages' implementations of the text format. +func writeString(w *textWriter, s string) error { + // use WriteByte here to get any needed indent + if err := w.WriteByte('"'); err != nil { + return err + } + // Loop over the bytes, not the runes. + for i := 0; i < len(s); i++ { + var err error + // Divergence from C++: we don't escape apostrophes. + // There's no need to escape them, and the C++ parser + // copes with a naked apostrophe. + switch c := s[i]; c { + case '\n': + _, err = w.w.Write(backslashN) + case '\r': + _, err = w.w.Write(backslashR) + case '\t': + _, err = w.w.Write(backslashT) + case '"': + _, err = w.w.Write(backslashDQ) + case '\\': + _, err = w.w.Write(backslashBS) + default: + if isprint(c) { + err = w.w.WriteByte(c) + } else { + _, err = fmt.Fprintf(w.w, "\\%03o", c) + } + } + if err != nil { + return err + } + } + return w.WriteByte('"') +} + +func writeUnknownStruct(w *textWriter, data []byte) (err error) { + if !w.compact { + if _, err := fmt.Fprintf(w, "/* %d unknown bytes */\n", len(data)); err != nil { + return err + } + } + b := NewBuffer(data) + for b.index < len(b.buf) { + x, err := b.DecodeVarint() + if err != nil { + _, err := fmt.Fprintf(w, "/* %v */\n", err) + return err + } + wire, tag := x&7, x>>3 + if wire == WireEndGroup { + w.unindent() + if _, err := w.Write(endBraceNewline); err != nil { + return err + } + continue + } + if _, err := fmt.Fprint(w, tag); err != nil { + return err + } + if wire != WireStartGroup { + if err := w.WriteByte(':'); err != nil { + return err + } + } + if !w.compact || wire == WireStartGroup { + if err := w.WriteByte(' '); err != nil { + return err + } + } + switch wire { + case WireBytes: + buf, e := b.DecodeRawBytes(false) + if e == nil { + _, err = fmt.Fprintf(w, "%q", buf) + } else { + _, err = fmt.Fprintf(w, "/* %v */", e) + } + case WireFixed32: + x, err = b.DecodeFixed32() + err = writeUnknownInt(w, x, err) + case WireFixed64: + x, err = b.DecodeFixed64() + err = writeUnknownInt(w, x, err) + case WireStartGroup: + err = w.WriteByte('{') + w.indent() + case WireVarint: + x, err = b.DecodeVarint() + err = writeUnknownInt(w, x, err) + default: + _, err = fmt.Fprintf(w, "/* unknown wire type %d */", wire) + } + if err != nil { + return err + } + if err = w.WriteByte('\n'); err != nil { + return err + } + } + return nil +} + +func writeUnknownInt(w *textWriter, x uint64, err error) error { + if err == nil { + _, err = fmt.Fprint(w, x) + } else { + _, err = fmt.Fprintf(w, "/* %v */", err) + } + return err +} + +type int32Slice []int32 + +func (s int32Slice) Len() int { return len(s) } +func (s int32Slice) Less(i, j int) bool { return s[i] < s[j] } +func (s int32Slice) Swap(i, j int) { s[i], s[j] = s[j], s[i] } + +// writeExtensions writes all the extensions in pv. +// pv is assumed to be a pointer to a protocol message struct that is extendable. +func (tm *TextMarshaler) writeExtensions(w *textWriter, pv reflect.Value) error { + emap := extensionMaps[pv.Type().Elem()] + ep, _ := extendable(pv.Interface()) + + // Order the extensions by ID. + // This isn't strictly necessary, but it will give us + // canonical output, which will also make testing easier. + m, mu := ep.extensionsRead() + if m == nil { + return nil + } + mu.Lock() + ids := make([]int32, 0, len(m)) + for id := range m { + ids = append(ids, id) + } + sort.Sort(int32Slice(ids)) + mu.Unlock() + + for _, extNum := range ids { + ext := m[extNum] + var desc *ExtensionDesc + if emap != nil { + desc = emap[extNum] + } + if desc == nil { + // Unknown extension. + if err := writeUnknownStruct(w, ext.enc); err != nil { + return err + } + continue + } + + pb, err := GetExtension(ep, desc) + if err != nil { + return fmt.Errorf("failed getting extension: %v", err) + } + + // Repeated extensions will appear as a slice. + if !desc.repeated() { + if err := tm.writeExtension(w, desc.Name, pb); err != nil { + return err + } + } else { + v := reflect.ValueOf(pb) + for i := 0; i < v.Len(); i++ { + if err := tm.writeExtension(w, desc.Name, v.Index(i).Interface()); err != nil { + return err + } + } + } + } + return nil +} + +func (tm *TextMarshaler) writeExtension(w *textWriter, name string, pb interface{}) error { + if _, err := fmt.Fprintf(w, "[%s]:", name); err != nil { + return err + } + if !w.compact { + if err := w.WriteByte(' '); err != nil { + return err + } + } + if err := tm.writeAny(w, reflect.ValueOf(pb), nil); err != nil { + return err + } + if err := w.WriteByte('\n'); err != nil { + return err + } + return nil +} + +func (w *textWriter) writeIndent() { + if !w.complete { + return + } + remain := w.ind * 2 + for remain > 0 { + n := remain + if n > len(spaces) { + n = len(spaces) + } + w.w.Write(spaces[:n]) + remain -= n + } + w.complete = false +} + +// TextMarshaler is a configurable text format marshaler. +type TextMarshaler struct { + Compact bool // use compact text format (one line). + ExpandAny bool // expand google.protobuf.Any messages of known types +} + +// Marshal writes a given protocol buffer in text format. +// The only errors returned are from w. +func (tm *TextMarshaler) Marshal(w io.Writer, pb Message) error { + val := reflect.ValueOf(pb) + if pb == nil || val.IsNil() { + w.Write([]byte("")) + return nil + } + var bw *bufio.Writer + ww, ok := w.(writer) + if !ok { + bw = bufio.NewWriter(w) + ww = bw + } + aw := &textWriter{ + w: ww, + complete: true, + compact: tm.Compact, + } + + if etm, ok := pb.(encoding.TextMarshaler); ok { + text, err := etm.MarshalText() + if err != nil { + return err + } + if _, err = aw.Write(text); err != nil { + return err + } + if bw != nil { + return bw.Flush() + } + return nil + } + // Dereference the received pointer so we don't have outer < and >. + v := reflect.Indirect(val) + if err := tm.writeStruct(aw, v); err != nil { + return err + } + if bw != nil { + return bw.Flush() + } + return nil +} + +// Text is the same as Marshal, but returns the string directly. +func (tm *TextMarshaler) Text(pb Message) string { + var buf bytes.Buffer + tm.Marshal(&buf, pb) + return buf.String() +} + +var ( + defaultTextMarshaler = TextMarshaler{} + compactTextMarshaler = TextMarshaler{Compact: true} +) + +// TODO: consider removing some of the Marshal functions below. + +// MarshalText writes a given protocol buffer in text format. +// The only errors returned are from w. +func MarshalText(w io.Writer, pb Message) error { return defaultTextMarshaler.Marshal(w, pb) } + +// MarshalTextString is the same as MarshalText, but returns the string directly. +func MarshalTextString(pb Message) string { return defaultTextMarshaler.Text(pb) } + +// CompactText writes a given protocol buffer in compact text format (one line). +func CompactText(w io.Writer, pb Message) error { return compactTextMarshaler.Marshal(w, pb) } + +// CompactTextString is the same as CompactText, but returns the string directly. +func CompactTextString(pb Message) string { return compactTextMarshaler.Text(pb) } diff --git a/vendor/github.com/golang/protobuf/proto/text_parser.go b/vendor/github.com/golang/protobuf/proto/text_parser.go new file mode 100644 index 0000000..bb55a3a --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/text_parser.go @@ -0,0 +1,880 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2010 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +// Functions for parsing the Text protocol buffer format. +// TODO: message sets. + +import ( + "encoding" + "errors" + "fmt" + "reflect" + "strconv" + "strings" + "unicode/utf8" +) + +// Error string emitted when deserializing Any and fields are already set +const anyRepeatedlyUnpacked = "Any message unpacked multiple times, or %q already set" + +type ParseError struct { + Message string + Line int // 1-based line number + Offset int // 0-based byte offset from start of input +} + +func (p *ParseError) Error() string { + if p.Line == 1 { + // show offset only for first line + return fmt.Sprintf("line 1.%d: %v", p.Offset, p.Message) + } + return fmt.Sprintf("line %d: %v", p.Line, p.Message) +} + +type token struct { + value string + err *ParseError + line int // line number + offset int // byte number from start of input, not start of line + unquoted string // the unquoted version of value, if it was a quoted string +} + +func (t *token) String() string { + if t.err == nil { + return fmt.Sprintf("%q (line=%d, offset=%d)", t.value, t.line, t.offset) + } + return fmt.Sprintf("parse error: %v", t.err) +} + +type textParser struct { + s string // remaining input + done bool // whether the parsing is finished (success or error) + backed bool // whether back() was called + offset, line int + cur token +} + +func newTextParser(s string) *textParser { + p := new(textParser) + p.s = s + p.line = 1 + p.cur.line = 1 + return p +} + +func (p *textParser) errorf(format string, a ...interface{}) *ParseError { + pe := &ParseError{fmt.Sprintf(format, a...), p.cur.line, p.cur.offset} + p.cur.err = pe + p.done = true + return pe +} + +// Numbers and identifiers are matched by [-+._A-Za-z0-9] +func isIdentOrNumberChar(c byte) bool { + switch { + case 'A' <= c && c <= 'Z', 'a' <= c && c <= 'z': + return true + case '0' <= c && c <= '9': + return true + } + switch c { + case '-', '+', '.', '_': + return true + } + return false +} + +func isWhitespace(c byte) bool { + switch c { + case ' ', '\t', '\n', '\r': + return true + } + return false +} + +func isQuote(c byte) bool { + switch c { + case '"', '\'': + return true + } + return false +} + +func (p *textParser) skipWhitespace() { + i := 0 + for i < len(p.s) && (isWhitespace(p.s[i]) || p.s[i] == '#') { + if p.s[i] == '#' { + // comment; skip to end of line or input + for i < len(p.s) && p.s[i] != '\n' { + i++ + } + if i == len(p.s) { + break + } + } + if p.s[i] == '\n' { + p.line++ + } + i++ + } + p.offset += i + p.s = p.s[i:len(p.s)] + if len(p.s) == 0 { + p.done = true + } +} + +func (p *textParser) advance() { + // Skip whitespace + p.skipWhitespace() + if p.done { + return + } + + // Start of non-whitespace + p.cur.err = nil + p.cur.offset, p.cur.line = p.offset, p.line + p.cur.unquoted = "" + switch p.s[0] { + case '<', '>', '{', '}', ':', '[', ']', ';', ',', '/': + // Single symbol + p.cur.value, p.s = p.s[0:1], p.s[1:len(p.s)] + case '"', '\'': + // Quoted string + i := 1 + for i < len(p.s) && p.s[i] != p.s[0] && p.s[i] != '\n' { + if p.s[i] == '\\' && i+1 < len(p.s) { + // skip escaped char + i++ + } + i++ + } + if i >= len(p.s) || p.s[i] != p.s[0] { + p.errorf("unmatched quote") + return + } + unq, err := unquoteC(p.s[1:i], rune(p.s[0])) + if err != nil { + p.errorf("invalid quoted string %s: %v", p.s[0:i+1], err) + return + } + p.cur.value, p.s = p.s[0:i+1], p.s[i+1:len(p.s)] + p.cur.unquoted = unq + default: + i := 0 + for i < len(p.s) && isIdentOrNumberChar(p.s[i]) { + i++ + } + if i == 0 { + p.errorf("unexpected byte %#x", p.s[0]) + return + } + p.cur.value, p.s = p.s[0:i], p.s[i:len(p.s)] + } + p.offset += len(p.cur.value) +} + +var ( + errBadUTF8 = errors.New("proto: bad UTF-8") +) + +func unquoteC(s string, quote rune) (string, error) { + // This is based on C++'s tokenizer.cc. + // Despite its name, this is *not* parsing C syntax. + // For instance, "\0" is an invalid quoted string. + + // Avoid allocation in trivial cases. + simple := true + for _, r := range s { + if r == '\\' || r == quote { + simple = false + break + } + } + if simple { + return s, nil + } + + buf := make([]byte, 0, 3*len(s)/2) + for len(s) > 0 { + r, n := utf8.DecodeRuneInString(s) + if r == utf8.RuneError && n == 1 { + return "", errBadUTF8 + } + s = s[n:] + if r != '\\' { + if r < utf8.RuneSelf { + buf = append(buf, byte(r)) + } else { + buf = append(buf, string(r)...) + } + continue + } + + ch, tail, err := unescape(s) + if err != nil { + return "", err + } + buf = append(buf, ch...) + s = tail + } + return string(buf), nil +} + +func unescape(s string) (ch string, tail string, err error) { + r, n := utf8.DecodeRuneInString(s) + if r == utf8.RuneError && n == 1 { + return "", "", errBadUTF8 + } + s = s[n:] + switch r { + case 'a': + return "\a", s, nil + case 'b': + return "\b", s, nil + case 'f': + return "\f", s, nil + case 'n': + return "\n", s, nil + case 'r': + return "\r", s, nil + case 't': + return "\t", s, nil + case 'v': + return "\v", s, nil + case '?': + return "?", s, nil // trigraph workaround + case '\'', '"', '\\': + return string(r), s, nil + case '0', '1', '2', '3', '4', '5', '6', '7': + if len(s) < 2 { + return "", "", fmt.Errorf(`\%c requires 2 following digits`, r) + } + ss := string(r) + s[:2] + s = s[2:] + i, err := strconv.ParseUint(ss, 8, 8) + if err != nil { + return "", "", fmt.Errorf(`\%s contains non-octal digits`, ss) + } + return string([]byte{byte(i)}), s, nil + case 'x', 'X', 'u', 'U': + var n int + switch r { + case 'x', 'X': + n = 2 + case 'u': + n = 4 + case 'U': + n = 8 + } + if len(s) < n { + return "", "", fmt.Errorf(`\%c requires %d following digits`, r, n) + } + ss := s[:n] + s = s[n:] + i, err := strconv.ParseUint(ss, 16, 64) + if err != nil { + return "", "", fmt.Errorf(`\%c%s contains non-hexadecimal digits`, r, ss) + } + if r == 'x' || r == 'X' { + return string([]byte{byte(i)}), s, nil + } + if i > utf8.MaxRune { + return "", "", fmt.Errorf(`\%c%s is not a valid Unicode code point`, r, ss) + } + return string(i), s, nil + } + return "", "", fmt.Errorf(`unknown escape \%c`, r) +} + +// Back off the parser by one token. Can only be done between calls to next(). +// It makes the next advance() a no-op. +func (p *textParser) back() { p.backed = true } + +// Advances the parser and returns the new current token. +func (p *textParser) next() *token { + if p.backed || p.done { + p.backed = false + return &p.cur + } + p.advance() + if p.done { + p.cur.value = "" + } else if len(p.cur.value) > 0 && isQuote(p.cur.value[0]) { + // Look for multiple quoted strings separated by whitespace, + // and concatenate them. + cat := p.cur + for { + p.skipWhitespace() + if p.done || !isQuote(p.s[0]) { + break + } + p.advance() + if p.cur.err != nil { + return &p.cur + } + cat.value += " " + p.cur.value + cat.unquoted += p.cur.unquoted + } + p.done = false // parser may have seen EOF, but we want to return cat + p.cur = cat + } + return &p.cur +} + +func (p *textParser) consumeToken(s string) error { + tok := p.next() + if tok.err != nil { + return tok.err + } + if tok.value != s { + p.back() + return p.errorf("expected %q, found %q", s, tok.value) + } + return nil +} + +// Return a RequiredNotSetError indicating which required field was not set. +func (p *textParser) missingRequiredFieldError(sv reflect.Value) *RequiredNotSetError { + st := sv.Type() + sprops := GetProperties(st) + for i := 0; i < st.NumField(); i++ { + if !isNil(sv.Field(i)) { + continue + } + + props := sprops.Prop[i] + if props.Required { + return &RequiredNotSetError{fmt.Sprintf("%v.%v", st, props.OrigName)} + } + } + return &RequiredNotSetError{fmt.Sprintf("%v.", st)} // should not happen +} + +// Returns the index in the struct for the named field, as well as the parsed tag properties. +func structFieldByName(sprops *StructProperties, name string) (int, *Properties, bool) { + i, ok := sprops.decoderOrigNames[name] + if ok { + return i, sprops.Prop[i], true + } + return -1, nil, false +} + +// Consume a ':' from the input stream (if the next token is a colon), +// returning an error if a colon is needed but not present. +func (p *textParser) checkForColon(props *Properties, typ reflect.Type) *ParseError { + tok := p.next() + if tok.err != nil { + return tok.err + } + if tok.value != ":" { + // Colon is optional when the field is a group or message. + needColon := true + switch props.Wire { + case "group": + needColon = false + case "bytes": + // A "bytes" field is either a message, a string, or a repeated field; + // those three become *T, *string and []T respectively, so we can check for + // this field being a pointer to a non-string. + if typ.Kind() == reflect.Ptr { + // *T or *string + if typ.Elem().Kind() == reflect.String { + break + } + } else if typ.Kind() == reflect.Slice { + // []T or []*T + if typ.Elem().Kind() != reflect.Ptr { + break + } + } else if typ.Kind() == reflect.String { + // The proto3 exception is for a string field, + // which requires a colon. + break + } + needColon = false + } + if needColon { + return p.errorf("expected ':', found %q", tok.value) + } + p.back() + } + return nil +} + +func (p *textParser) readStruct(sv reflect.Value, terminator string) error { + st := sv.Type() + sprops := GetProperties(st) + reqCount := sprops.reqCount + var reqFieldErr error + fieldSet := make(map[string]bool) + // A struct is a sequence of "name: value", terminated by one of + // '>' or '}', or the end of the input. A name may also be + // "[extension]" or "[type/url]". + // + // The whole struct can also be an expanded Any message, like: + // [type/url] < ... struct contents ... > + for { + tok := p.next() + if tok.err != nil { + return tok.err + } + if tok.value == terminator { + break + } + if tok.value == "[" { + // Looks like an extension or an Any. + // + // TODO: Check whether we need to handle + // namespace rooted names (e.g. ".something.Foo"). + extName, err := p.consumeExtName() + if err != nil { + return err + } + + if s := strings.LastIndex(extName, "/"); s >= 0 { + // If it contains a slash, it's an Any type URL. + messageName := extName[s+1:] + mt := MessageType(messageName) + if mt == nil { + return p.errorf("unrecognized message %q in google.protobuf.Any", messageName) + } + tok = p.next() + if tok.err != nil { + return tok.err + } + // consume an optional colon + if tok.value == ":" { + tok = p.next() + if tok.err != nil { + return tok.err + } + } + var terminator string + switch tok.value { + case "<": + terminator = ">" + case "{": + terminator = "}" + default: + return p.errorf("expected '{' or '<', found %q", tok.value) + } + v := reflect.New(mt.Elem()) + if pe := p.readStruct(v.Elem(), terminator); pe != nil { + return pe + } + b, err := Marshal(v.Interface().(Message)) + if err != nil { + return p.errorf("failed to marshal message of type %q: %v", messageName, err) + } + if fieldSet["type_url"] { + return p.errorf(anyRepeatedlyUnpacked, "type_url") + } + if fieldSet["value"] { + return p.errorf(anyRepeatedlyUnpacked, "value") + } + sv.FieldByName("TypeUrl").SetString(extName) + sv.FieldByName("Value").SetBytes(b) + fieldSet["type_url"] = true + fieldSet["value"] = true + continue + } + + var desc *ExtensionDesc + // This could be faster, but it's functional. + // TODO: Do something smarter than a linear scan. + for _, d := range RegisteredExtensions(reflect.New(st).Interface().(Message)) { + if d.Name == extName { + desc = d + break + } + } + if desc == nil { + return p.errorf("unrecognized extension %q", extName) + } + + props := &Properties{} + props.Parse(desc.Tag) + + typ := reflect.TypeOf(desc.ExtensionType) + if err := p.checkForColon(props, typ); err != nil { + return err + } + + rep := desc.repeated() + + // Read the extension structure, and set it in + // the value we're constructing. + var ext reflect.Value + if !rep { + ext = reflect.New(typ).Elem() + } else { + ext = reflect.New(typ.Elem()).Elem() + } + if err := p.readAny(ext, props); err != nil { + if _, ok := err.(*RequiredNotSetError); !ok { + return err + } + reqFieldErr = err + } + ep := sv.Addr().Interface().(Message) + if !rep { + SetExtension(ep, desc, ext.Interface()) + } else { + old, err := GetExtension(ep, desc) + var sl reflect.Value + if err == nil { + sl = reflect.ValueOf(old) // existing slice + } else { + sl = reflect.MakeSlice(typ, 0, 1) + } + sl = reflect.Append(sl, ext) + SetExtension(ep, desc, sl.Interface()) + } + if err := p.consumeOptionalSeparator(); err != nil { + return err + } + continue + } + + // This is a normal, non-extension field. + name := tok.value + var dst reflect.Value + fi, props, ok := structFieldByName(sprops, name) + if ok { + dst = sv.Field(fi) + } else if oop, ok := sprops.OneofTypes[name]; ok { + // It is a oneof. + props = oop.Prop + nv := reflect.New(oop.Type.Elem()) + dst = nv.Elem().Field(0) + field := sv.Field(oop.Field) + if !field.IsNil() { + return p.errorf("field '%s' would overwrite already parsed oneof '%s'", name, sv.Type().Field(oop.Field).Name) + } + field.Set(nv) + } + if !dst.IsValid() { + return p.errorf("unknown field name %q in %v", name, st) + } + + if dst.Kind() == reflect.Map { + // Consume any colon. + if err := p.checkForColon(props, dst.Type()); err != nil { + return err + } + + // Construct the map if it doesn't already exist. + if dst.IsNil() { + dst.Set(reflect.MakeMap(dst.Type())) + } + key := reflect.New(dst.Type().Key()).Elem() + val := reflect.New(dst.Type().Elem()).Elem() + + // The map entry should be this sequence of tokens: + // < key : KEY value : VALUE > + // However, implementations may omit key or value, and technically + // we should support them in any order. See b/28924776 for a time + // this went wrong. + + tok := p.next() + var terminator string + switch tok.value { + case "<": + terminator = ">" + case "{": + terminator = "}" + default: + return p.errorf("expected '{' or '<', found %q", tok.value) + } + for { + tok := p.next() + if tok.err != nil { + return tok.err + } + if tok.value == terminator { + break + } + switch tok.value { + case "key": + if err := p.consumeToken(":"); err != nil { + return err + } + if err := p.readAny(key, props.MapKeyProp); err != nil { + return err + } + if err := p.consumeOptionalSeparator(); err != nil { + return err + } + case "value": + if err := p.checkForColon(props.MapValProp, dst.Type().Elem()); err != nil { + return err + } + if err := p.readAny(val, props.MapValProp); err != nil { + return err + } + if err := p.consumeOptionalSeparator(); err != nil { + return err + } + default: + p.back() + return p.errorf(`expected "key", "value", or %q, found %q`, terminator, tok.value) + } + } + + dst.SetMapIndex(key, val) + continue + } + + // Check that it's not already set if it's not a repeated field. + if !props.Repeated && fieldSet[name] { + return p.errorf("non-repeated field %q was repeated", name) + } + + if err := p.checkForColon(props, dst.Type()); err != nil { + return err + } + + // Parse into the field. + fieldSet[name] = true + if err := p.readAny(dst, props); err != nil { + if _, ok := err.(*RequiredNotSetError); !ok { + return err + } + reqFieldErr = err + } + if props.Required { + reqCount-- + } + + if err := p.consumeOptionalSeparator(); err != nil { + return err + } + + } + + if reqCount > 0 { + return p.missingRequiredFieldError(sv) + } + return reqFieldErr +} + +// consumeExtName consumes extension name or expanded Any type URL and the +// following ']'. It returns the name or URL consumed. +func (p *textParser) consumeExtName() (string, error) { + tok := p.next() + if tok.err != nil { + return "", tok.err + } + + // If extension name or type url is quoted, it's a single token. + if len(tok.value) > 2 && isQuote(tok.value[0]) && tok.value[len(tok.value)-1] == tok.value[0] { + name, err := unquoteC(tok.value[1:len(tok.value)-1], rune(tok.value[0])) + if err != nil { + return "", err + } + return name, p.consumeToken("]") + } + + // Consume everything up to "]" + var parts []string + for tok.value != "]" { + parts = append(parts, tok.value) + tok = p.next() + if tok.err != nil { + return "", p.errorf("unrecognized type_url or extension name: %s", tok.err) + } + if p.done && tok.value != "]" { + return "", p.errorf("unclosed type_url or extension name") + } + } + return strings.Join(parts, ""), nil +} + +// consumeOptionalSeparator consumes an optional semicolon or comma. +// It is used in readStruct to provide backward compatibility. +func (p *textParser) consumeOptionalSeparator() error { + tok := p.next() + if tok.err != nil { + return tok.err + } + if tok.value != ";" && tok.value != "," { + p.back() + } + return nil +} + +func (p *textParser) readAny(v reflect.Value, props *Properties) error { + tok := p.next() + if tok.err != nil { + return tok.err + } + if tok.value == "" { + return p.errorf("unexpected EOF") + } + + switch fv := v; fv.Kind() { + case reflect.Slice: + at := v.Type() + if at.Elem().Kind() == reflect.Uint8 { + // Special case for []byte + if tok.value[0] != '"' && tok.value[0] != '\'' { + // Deliberately written out here, as the error after + // this switch statement would write "invalid []byte: ...", + // which is not as user-friendly. + return p.errorf("invalid string: %v", tok.value) + } + bytes := []byte(tok.unquoted) + fv.Set(reflect.ValueOf(bytes)) + return nil + } + // Repeated field. + if tok.value == "[" { + // Repeated field with list notation, like [1,2,3]. + for { + fv.Set(reflect.Append(fv, reflect.New(at.Elem()).Elem())) + err := p.readAny(fv.Index(fv.Len()-1), props) + if err != nil { + return err + } + tok := p.next() + if tok.err != nil { + return tok.err + } + if tok.value == "]" { + break + } + if tok.value != "," { + return p.errorf("Expected ']' or ',' found %q", tok.value) + } + } + return nil + } + // One value of the repeated field. + p.back() + fv.Set(reflect.Append(fv, reflect.New(at.Elem()).Elem())) + return p.readAny(fv.Index(fv.Len()-1), props) + case reflect.Bool: + // true/1/t/True or false/f/0/False. + switch tok.value { + case "true", "1", "t", "True": + fv.SetBool(true) + return nil + case "false", "0", "f", "False": + fv.SetBool(false) + return nil + } + case reflect.Float32, reflect.Float64: + v := tok.value + // Ignore 'f' for compatibility with output generated by C++, but don't + // remove 'f' when the value is "-inf" or "inf". + if strings.HasSuffix(v, "f") && tok.value != "-inf" && tok.value != "inf" { + v = v[:len(v)-1] + } + if f, err := strconv.ParseFloat(v, fv.Type().Bits()); err == nil { + fv.SetFloat(f) + return nil + } + case reflect.Int32: + if x, err := strconv.ParseInt(tok.value, 0, 32); err == nil { + fv.SetInt(x) + return nil + } + + if len(props.Enum) == 0 { + break + } + m, ok := enumValueMaps[props.Enum] + if !ok { + break + } + x, ok := m[tok.value] + if !ok { + break + } + fv.SetInt(int64(x)) + return nil + case reflect.Int64: + if x, err := strconv.ParseInt(tok.value, 0, 64); err == nil { + fv.SetInt(x) + return nil + } + + case reflect.Ptr: + // A basic field (indirected through pointer), or a repeated message/group + p.back() + fv.Set(reflect.New(fv.Type().Elem())) + return p.readAny(fv.Elem(), props) + case reflect.String: + if tok.value[0] == '"' || tok.value[0] == '\'' { + fv.SetString(tok.unquoted) + return nil + } + case reflect.Struct: + var terminator string + switch tok.value { + case "{": + terminator = "}" + case "<": + terminator = ">" + default: + return p.errorf("expected '{' or '<', found %q", tok.value) + } + // TODO: Handle nested messages which implement encoding.TextUnmarshaler. + return p.readStruct(fv, terminator) + case reflect.Uint32: + if x, err := strconv.ParseUint(tok.value, 0, 32); err == nil { + fv.SetUint(uint64(x)) + return nil + } + case reflect.Uint64: + if x, err := strconv.ParseUint(tok.value, 0, 64); err == nil { + fv.SetUint(x) + return nil + } + } + return p.errorf("invalid %v: %v", v.Type(), tok.value) +} + +// UnmarshalText reads a protocol buffer in Text format. UnmarshalText resets pb +// before starting to unmarshal, so any existing data in pb is always removed. +// If a required field is not set and no other error occurs, +// UnmarshalText returns *RequiredNotSetError. +func UnmarshalText(s string, pb Message) error { + if um, ok := pb.(encoding.TextUnmarshaler); ok { + return um.UnmarshalText([]byte(s)) + } + pb.Reset() + v := reflect.ValueOf(pb) + return newTextParser(s).readStruct(v.Elem(), "") +} diff --git a/vendor/github.com/jmespath/go-jmespath/LICENSE b/vendor/github.com/jmespath/go-jmespath/LICENSE new file mode 100644 index 0000000..b03310a --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/LICENSE @@ -0,0 +1,13 @@ +Copyright 2015 James Saryerwinnie + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT 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/jmespath/go-jmespath/Makefile b/vendor/github.com/jmespath/go-jmespath/Makefile new file mode 100644 index 0000000..a828d28 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/Makefile @@ -0,0 +1,44 @@ + +CMD = jpgo + +help: + @echo "Please use \`make ' where is one of" + @echo " test to run all the tests" + @echo " build to build the library and jp executable" + @echo " generate to run codegen" + + +generate: + go generate ./... + +build: + rm -f $(CMD) + go build ./... + rm -f cmd/$(CMD)/$(CMD) && cd cmd/$(CMD)/ && go build ./... + mv cmd/$(CMD)/$(CMD) . + +test: + go test -v ./... + +check: + go vet ./... + @echo "golint ./..." + @lint=`golint ./...`; \ + lint=`echo "$$lint" | grep -v "astnodetype_string.go" | grep -v "toktype_string.go"`; \ + echo "$$lint"; \ + if [ "$$lint" != "" ]; then exit 1; fi + +htmlc: + go test -coverprofile="/tmp/jpcov" && go tool cover -html="/tmp/jpcov" && unlink /tmp/jpcov + +buildfuzz: + go-fuzz-build github.com/jmespath/go-jmespath/fuzz + +fuzz: buildfuzz + go-fuzz -bin=./jmespath-fuzz.zip -workdir=fuzz/testdata + +bench: + go test -bench . -cpuprofile cpu.out + +pprof-cpu: + go tool pprof ./go-jmespath.test ./cpu.out diff --git a/vendor/github.com/jmespath/go-jmespath/README.md b/vendor/github.com/jmespath/go-jmespath/README.md new file mode 100644 index 0000000..187ef67 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/README.md @@ -0,0 +1,7 @@ +# go-jmespath - A JMESPath implementation in Go + +[![Build Status](https://img.shields.io/travis/jmespath/go-jmespath.svg)](https://travis-ci.org/jmespath/go-jmespath) + + + +See http://jmespath.org for more info. diff --git a/vendor/github.com/jmespath/go-jmespath/api.go b/vendor/github.com/jmespath/go-jmespath/api.go new file mode 100644 index 0000000..8e26ffe --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/api.go @@ -0,0 +1,49 @@ +package jmespath + +import "strconv" + +// JMESPath is the epresentation of a compiled JMES path query. A JMESPath is +// safe for concurrent use by multiple goroutines. +type JMESPath struct { + ast ASTNode + intr *treeInterpreter +} + +// Compile parses a JMESPath expression and returns, if successful, a JMESPath +// object that can be used to match against data. +func Compile(expression string) (*JMESPath, error) { + parser := NewParser() + ast, err := parser.Parse(expression) + if err != nil { + return nil, err + } + jmespath := &JMESPath{ast: ast, intr: newInterpreter()} + return jmespath, nil +} + +// MustCompile is like Compile but panics if the expression cannot be parsed. +// It simplifies safe initialization of global variables holding compiled +// JMESPaths. +func MustCompile(expression string) *JMESPath { + jmespath, err := Compile(expression) + if err != nil { + panic(`jmespath: Compile(` + strconv.Quote(expression) + `): ` + err.Error()) + } + return jmespath +} + +// Search evaluates a JMESPath expression against input data and returns the result. +func (jp *JMESPath) Search(data interface{}) (interface{}, error) { + return jp.intr.Execute(jp.ast, data) +} + +// Search evaluates a JMESPath expression against input data and returns the result. +func Search(expression string, data interface{}) (interface{}, error) { + intr := newInterpreter() + parser := NewParser() + ast, err := parser.Parse(expression) + if err != nil { + return nil, err + } + return intr.Execute(ast, data) +} diff --git a/vendor/github.com/jmespath/go-jmespath/astnodetype_string.go b/vendor/github.com/jmespath/go-jmespath/astnodetype_string.go new file mode 100644 index 0000000..1cd2d23 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/astnodetype_string.go @@ -0,0 +1,16 @@ +// generated by stringer -type astNodeType; DO NOT EDIT + +package jmespath + +import "fmt" + +const _astNodeType_name = "ASTEmptyASTComparatorASTCurrentNodeASTExpRefASTFunctionExpressionASTFieldASTFilterProjectionASTFlattenASTIdentityASTIndexASTIndexExpressionASTKeyValPairASTLiteralASTMultiSelectHashASTMultiSelectListASTOrExpressionASTAndExpressionASTNotExpressionASTPipeASTProjectionASTSubexpressionASTSliceASTValueProjection" + +var _astNodeType_index = [...]uint16{0, 8, 21, 35, 44, 65, 73, 92, 102, 113, 121, 139, 152, 162, 180, 198, 213, 229, 245, 252, 265, 281, 289, 307} + +func (i astNodeType) String() string { + if i < 0 || i >= astNodeType(len(_astNodeType_index)-1) { + return fmt.Sprintf("astNodeType(%d)", i) + } + return _astNodeType_name[_astNodeType_index[i]:_astNodeType_index[i+1]] +} diff --git a/vendor/github.com/jmespath/go-jmespath/functions.go b/vendor/github.com/jmespath/go-jmespath/functions.go new file mode 100644 index 0000000..9b7cd89 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/functions.go @@ -0,0 +1,842 @@ +package jmespath + +import ( + "encoding/json" + "errors" + "fmt" + "math" + "reflect" + "sort" + "strconv" + "strings" + "unicode/utf8" +) + +type jpFunction func(arguments []interface{}) (interface{}, error) + +type jpType string + +const ( + jpUnknown jpType = "unknown" + jpNumber jpType = "number" + jpString jpType = "string" + jpArray jpType = "array" + jpObject jpType = "object" + jpArrayNumber jpType = "array[number]" + jpArrayString jpType = "array[string]" + jpExpref jpType = "expref" + jpAny jpType = "any" +) + +type functionEntry struct { + name string + arguments []argSpec + handler jpFunction + hasExpRef bool +} + +type argSpec struct { + types []jpType + variadic bool +} + +type byExprString struct { + intr *treeInterpreter + node ASTNode + items []interface{} + hasError bool +} + +func (a *byExprString) Len() int { + return len(a.items) +} +func (a *byExprString) Swap(i, j int) { + a.items[i], a.items[j] = a.items[j], a.items[i] +} +func (a *byExprString) Less(i, j int) bool { + first, err := a.intr.Execute(a.node, a.items[i]) + if err != nil { + a.hasError = true + // Return a dummy value. + return true + } + ith, ok := first.(string) + if !ok { + a.hasError = true + return true + } + second, err := a.intr.Execute(a.node, a.items[j]) + if err != nil { + a.hasError = true + // Return a dummy value. + return true + } + jth, ok := second.(string) + if !ok { + a.hasError = true + return true + } + return ith < jth +} + +type byExprFloat struct { + intr *treeInterpreter + node ASTNode + items []interface{} + hasError bool +} + +func (a *byExprFloat) Len() int { + return len(a.items) +} +func (a *byExprFloat) Swap(i, j int) { + a.items[i], a.items[j] = a.items[j], a.items[i] +} +func (a *byExprFloat) Less(i, j int) bool { + first, err := a.intr.Execute(a.node, a.items[i]) + if err != nil { + a.hasError = true + // Return a dummy value. + return true + } + ith, ok := first.(float64) + if !ok { + a.hasError = true + return true + } + second, err := a.intr.Execute(a.node, a.items[j]) + if err != nil { + a.hasError = true + // Return a dummy value. + return true + } + jth, ok := second.(float64) + if !ok { + a.hasError = true + return true + } + return ith < jth +} + +type functionCaller struct { + functionTable map[string]functionEntry +} + +func newFunctionCaller() *functionCaller { + caller := &functionCaller{} + caller.functionTable = map[string]functionEntry{ + "length": { + name: "length", + arguments: []argSpec{ + {types: []jpType{jpString, jpArray, jpObject}}, + }, + handler: jpfLength, + }, + "starts_with": { + name: "starts_with", + arguments: []argSpec{ + {types: []jpType{jpString}}, + {types: []jpType{jpString}}, + }, + handler: jpfStartsWith, + }, + "abs": { + name: "abs", + arguments: []argSpec{ + {types: []jpType{jpNumber}}, + }, + handler: jpfAbs, + }, + "avg": { + name: "avg", + arguments: []argSpec{ + {types: []jpType{jpArrayNumber}}, + }, + handler: jpfAvg, + }, + "ceil": { + name: "ceil", + arguments: []argSpec{ + {types: []jpType{jpNumber}}, + }, + handler: jpfCeil, + }, + "contains": { + name: "contains", + arguments: []argSpec{ + {types: []jpType{jpArray, jpString}}, + {types: []jpType{jpAny}}, + }, + handler: jpfContains, + }, + "ends_with": { + name: "ends_with", + arguments: []argSpec{ + {types: []jpType{jpString}}, + {types: []jpType{jpString}}, + }, + handler: jpfEndsWith, + }, + "floor": { + name: "floor", + arguments: []argSpec{ + {types: []jpType{jpNumber}}, + }, + handler: jpfFloor, + }, + "map": { + name: "amp", + arguments: []argSpec{ + {types: []jpType{jpExpref}}, + {types: []jpType{jpArray}}, + }, + handler: jpfMap, + hasExpRef: true, + }, + "max": { + name: "max", + arguments: []argSpec{ + {types: []jpType{jpArrayNumber, jpArrayString}}, + }, + handler: jpfMax, + }, + "merge": { + name: "merge", + arguments: []argSpec{ + {types: []jpType{jpObject}, variadic: true}, + }, + handler: jpfMerge, + }, + "max_by": { + name: "max_by", + arguments: []argSpec{ + {types: []jpType{jpArray}}, + {types: []jpType{jpExpref}}, + }, + handler: jpfMaxBy, + hasExpRef: true, + }, + "sum": { + name: "sum", + arguments: []argSpec{ + {types: []jpType{jpArrayNumber}}, + }, + handler: jpfSum, + }, + "min": { + name: "min", + arguments: []argSpec{ + {types: []jpType{jpArrayNumber, jpArrayString}}, + }, + handler: jpfMin, + }, + "min_by": { + name: "min_by", + arguments: []argSpec{ + {types: []jpType{jpArray}}, + {types: []jpType{jpExpref}}, + }, + handler: jpfMinBy, + hasExpRef: true, + }, + "type": { + name: "type", + arguments: []argSpec{ + {types: []jpType{jpAny}}, + }, + handler: jpfType, + }, + "keys": { + name: "keys", + arguments: []argSpec{ + {types: []jpType{jpObject}}, + }, + handler: jpfKeys, + }, + "values": { + name: "values", + arguments: []argSpec{ + {types: []jpType{jpObject}}, + }, + handler: jpfValues, + }, + "sort": { + name: "sort", + arguments: []argSpec{ + {types: []jpType{jpArrayString, jpArrayNumber}}, + }, + handler: jpfSort, + }, + "sort_by": { + name: "sort_by", + arguments: []argSpec{ + {types: []jpType{jpArray}}, + {types: []jpType{jpExpref}}, + }, + handler: jpfSortBy, + hasExpRef: true, + }, + "join": { + name: "join", + arguments: []argSpec{ + {types: []jpType{jpString}}, + {types: []jpType{jpArrayString}}, + }, + handler: jpfJoin, + }, + "reverse": { + name: "reverse", + arguments: []argSpec{ + {types: []jpType{jpArray, jpString}}, + }, + handler: jpfReverse, + }, + "to_array": { + name: "to_array", + arguments: []argSpec{ + {types: []jpType{jpAny}}, + }, + handler: jpfToArray, + }, + "to_string": { + name: "to_string", + arguments: []argSpec{ + {types: []jpType{jpAny}}, + }, + handler: jpfToString, + }, + "to_number": { + name: "to_number", + arguments: []argSpec{ + {types: []jpType{jpAny}}, + }, + handler: jpfToNumber, + }, + "not_null": { + name: "not_null", + arguments: []argSpec{ + {types: []jpType{jpAny}, variadic: true}, + }, + handler: jpfNotNull, + }, + } + return caller +} + +func (e *functionEntry) resolveArgs(arguments []interface{}) ([]interface{}, error) { + if len(e.arguments) == 0 { + return arguments, nil + } + if !e.arguments[len(e.arguments)-1].variadic { + if len(e.arguments) != len(arguments) { + return nil, errors.New("incorrect number of args") + } + for i, spec := range e.arguments { + userArg := arguments[i] + err := spec.typeCheck(userArg) + if err != nil { + return nil, err + } + } + return arguments, nil + } + if len(arguments) < len(e.arguments) { + return nil, errors.New("Invalid arity.") + } + return arguments, nil +} + +func (a *argSpec) typeCheck(arg interface{}) error { + for _, t := range a.types { + switch t { + case jpNumber: + if _, ok := arg.(float64); ok { + return nil + } + case jpString: + if _, ok := arg.(string); ok { + return nil + } + case jpArray: + if isSliceType(arg) { + return nil + } + case jpObject: + if _, ok := arg.(map[string]interface{}); ok { + return nil + } + case jpArrayNumber: + if _, ok := toArrayNum(arg); ok { + return nil + } + case jpArrayString: + if _, ok := toArrayStr(arg); ok { + return nil + } + case jpAny: + return nil + case jpExpref: + if _, ok := arg.(expRef); ok { + return nil + } + } + } + return fmt.Errorf("Invalid type for: %v, expected: %#v", arg, a.types) +} + +func (f *functionCaller) CallFunction(name string, arguments []interface{}, intr *treeInterpreter) (interface{}, error) { + entry, ok := f.functionTable[name] + if !ok { + return nil, errors.New("unknown function: " + name) + } + resolvedArgs, err := entry.resolveArgs(arguments) + if err != nil { + return nil, err + } + if entry.hasExpRef { + var extra []interface{} + extra = append(extra, intr) + resolvedArgs = append(extra, resolvedArgs...) + } + return entry.handler(resolvedArgs) +} + +func jpfAbs(arguments []interface{}) (interface{}, error) { + num := arguments[0].(float64) + return math.Abs(num), nil +} + +func jpfLength(arguments []interface{}) (interface{}, error) { + arg := arguments[0] + if c, ok := arg.(string); ok { + return float64(utf8.RuneCountInString(c)), nil + } else if isSliceType(arg) { + v := reflect.ValueOf(arg) + return float64(v.Len()), nil + } else if c, ok := arg.(map[string]interface{}); ok { + return float64(len(c)), nil + } + return nil, errors.New("could not compute length()") +} + +func jpfStartsWith(arguments []interface{}) (interface{}, error) { + search := arguments[0].(string) + prefix := arguments[1].(string) + return strings.HasPrefix(search, prefix), nil +} + +func jpfAvg(arguments []interface{}) (interface{}, error) { + // We've already type checked the value so we can safely use + // type assertions. + args := arguments[0].([]interface{}) + length := float64(len(args)) + numerator := 0.0 + for _, n := range args { + numerator += n.(float64) + } + return numerator / length, nil +} +func jpfCeil(arguments []interface{}) (interface{}, error) { + val := arguments[0].(float64) + return math.Ceil(val), nil +} +func jpfContains(arguments []interface{}) (interface{}, error) { + search := arguments[0] + el := arguments[1] + if searchStr, ok := search.(string); ok { + if elStr, ok := el.(string); ok { + return strings.Index(searchStr, elStr) != -1, nil + } + return false, nil + } + // Otherwise this is a generic contains for []interface{} + general := search.([]interface{}) + for _, item := range general { + if item == el { + return true, nil + } + } + return false, nil +} +func jpfEndsWith(arguments []interface{}) (interface{}, error) { + search := arguments[0].(string) + suffix := arguments[1].(string) + return strings.HasSuffix(search, suffix), nil +} +func jpfFloor(arguments []interface{}) (interface{}, error) { + val := arguments[0].(float64) + return math.Floor(val), nil +} +func jpfMap(arguments []interface{}) (interface{}, error) { + intr := arguments[0].(*treeInterpreter) + exp := arguments[1].(expRef) + node := exp.ref + arr := arguments[2].([]interface{}) + mapped := make([]interface{}, 0, len(arr)) + for _, value := range arr { + current, err := intr.Execute(node, value) + if err != nil { + return nil, err + } + mapped = append(mapped, current) + } + return mapped, nil +} +func jpfMax(arguments []interface{}) (interface{}, error) { + if items, ok := toArrayNum(arguments[0]); ok { + if len(items) == 0 { + return nil, nil + } + if len(items) == 1 { + return items[0], nil + } + best := items[0] + for _, item := range items[1:] { + if item > best { + best = item + } + } + return best, nil + } + // Otherwise we're dealing with a max() of strings. + items, _ := toArrayStr(arguments[0]) + if len(items) == 0 { + return nil, nil + } + if len(items) == 1 { + return items[0], nil + } + best := items[0] + for _, item := range items[1:] { + if item > best { + best = item + } + } + return best, nil +} +func jpfMerge(arguments []interface{}) (interface{}, error) { + final := make(map[string]interface{}) + for _, m := range arguments { + mapped := m.(map[string]interface{}) + for key, value := range mapped { + final[key] = value + } + } + return final, nil +} +func jpfMaxBy(arguments []interface{}) (interface{}, error) { + intr := arguments[0].(*treeInterpreter) + arr := arguments[1].([]interface{}) + exp := arguments[2].(expRef) + node := exp.ref + if len(arr) == 0 { + return nil, nil + } else if len(arr) == 1 { + return arr[0], nil + } + start, err := intr.Execute(node, arr[0]) + if err != nil { + return nil, err + } + switch t := start.(type) { + case float64: + bestVal := t + bestItem := arr[0] + for _, item := range arr[1:] { + result, err := intr.Execute(node, item) + if err != nil { + return nil, err + } + current, ok := result.(float64) + if !ok { + return nil, errors.New("invalid type, must be number") + } + if current > bestVal { + bestVal = current + bestItem = item + } + } + return bestItem, nil + case string: + bestVal := t + bestItem := arr[0] + for _, item := range arr[1:] { + result, err := intr.Execute(node, item) + if err != nil { + return nil, err + } + current, ok := result.(string) + if !ok { + return nil, errors.New("invalid type, must be string") + } + if current > bestVal { + bestVal = current + bestItem = item + } + } + return bestItem, nil + default: + return nil, errors.New("invalid type, must be number of string") + } +} +func jpfSum(arguments []interface{}) (interface{}, error) { + items, _ := toArrayNum(arguments[0]) + sum := 0.0 + for _, item := range items { + sum += item + } + return sum, nil +} + +func jpfMin(arguments []interface{}) (interface{}, error) { + if items, ok := toArrayNum(arguments[0]); ok { + if len(items) == 0 { + return nil, nil + } + if len(items) == 1 { + return items[0], nil + } + best := items[0] + for _, item := range items[1:] { + if item < best { + best = item + } + } + return best, nil + } + items, _ := toArrayStr(arguments[0]) + if len(items) == 0 { + return nil, nil + } + if len(items) == 1 { + return items[0], nil + } + best := items[0] + for _, item := range items[1:] { + if item < best { + best = item + } + } + return best, nil +} + +func jpfMinBy(arguments []interface{}) (interface{}, error) { + intr := arguments[0].(*treeInterpreter) + arr := arguments[1].([]interface{}) + exp := arguments[2].(expRef) + node := exp.ref + if len(arr) == 0 { + return nil, nil + } else if len(arr) == 1 { + return arr[0], nil + } + start, err := intr.Execute(node, arr[0]) + if err != nil { + return nil, err + } + if t, ok := start.(float64); ok { + bestVal := t + bestItem := arr[0] + for _, item := range arr[1:] { + result, err := intr.Execute(node, item) + if err != nil { + return nil, err + } + current, ok := result.(float64) + if !ok { + return nil, errors.New("invalid type, must be number") + } + if current < bestVal { + bestVal = current + bestItem = item + } + } + return bestItem, nil + } else if t, ok := start.(string); ok { + bestVal := t + bestItem := arr[0] + for _, item := range arr[1:] { + result, err := intr.Execute(node, item) + if err != nil { + return nil, err + } + current, ok := result.(string) + if !ok { + return nil, errors.New("invalid type, must be string") + } + if current < bestVal { + bestVal = current + bestItem = item + } + } + return bestItem, nil + } else { + return nil, errors.New("invalid type, must be number of string") + } +} +func jpfType(arguments []interface{}) (interface{}, error) { + arg := arguments[0] + if _, ok := arg.(float64); ok { + return "number", nil + } + if _, ok := arg.(string); ok { + return "string", nil + } + if _, ok := arg.([]interface{}); ok { + return "array", nil + } + if _, ok := arg.(map[string]interface{}); ok { + return "object", nil + } + if arg == nil { + return "null", nil + } + if arg == true || arg == false { + return "boolean", nil + } + return nil, errors.New("unknown type") +} +func jpfKeys(arguments []interface{}) (interface{}, error) { + arg := arguments[0].(map[string]interface{}) + collected := make([]interface{}, 0, len(arg)) + for key := range arg { + collected = append(collected, key) + } + return collected, nil +} +func jpfValues(arguments []interface{}) (interface{}, error) { + arg := arguments[0].(map[string]interface{}) + collected := make([]interface{}, 0, len(arg)) + for _, value := range arg { + collected = append(collected, value) + } + return collected, nil +} +func jpfSort(arguments []interface{}) (interface{}, error) { + if items, ok := toArrayNum(arguments[0]); ok { + d := sort.Float64Slice(items) + sort.Stable(d) + final := make([]interface{}, len(d)) + for i, val := range d { + final[i] = val + } + return final, nil + } + // Otherwise we're dealing with sort()'ing strings. + items, _ := toArrayStr(arguments[0]) + d := sort.StringSlice(items) + sort.Stable(d) + final := make([]interface{}, len(d)) + for i, val := range d { + final[i] = val + } + return final, nil +} +func jpfSortBy(arguments []interface{}) (interface{}, error) { + intr := arguments[0].(*treeInterpreter) + arr := arguments[1].([]interface{}) + exp := arguments[2].(expRef) + node := exp.ref + if len(arr) == 0 { + return arr, nil + } else if len(arr) == 1 { + return arr, nil + } + start, err := intr.Execute(node, arr[0]) + if err != nil { + return nil, err + } + if _, ok := start.(float64); ok { + sortable := &byExprFloat{intr, node, arr, false} + sort.Stable(sortable) + if sortable.hasError { + return nil, errors.New("error in sort_by comparison") + } + return arr, nil + } else if _, ok := start.(string); ok { + sortable := &byExprString{intr, node, arr, false} + sort.Stable(sortable) + if sortable.hasError { + return nil, errors.New("error in sort_by comparison") + } + return arr, nil + } else { + return nil, errors.New("invalid type, must be number of string") + } +} +func jpfJoin(arguments []interface{}) (interface{}, error) { + sep := arguments[0].(string) + // We can't just do arguments[1].([]string), we have to + // manually convert each item to a string. + arrayStr := []string{} + for _, item := range arguments[1].([]interface{}) { + arrayStr = append(arrayStr, item.(string)) + } + return strings.Join(arrayStr, sep), nil +} +func jpfReverse(arguments []interface{}) (interface{}, error) { + if s, ok := arguments[0].(string); ok { + r := []rune(s) + for i, j := 0, len(r)-1; i < len(r)/2; i, j = i+1, j-1 { + r[i], r[j] = r[j], r[i] + } + return string(r), nil + } + items := arguments[0].([]interface{}) + length := len(items) + reversed := make([]interface{}, length) + for i, item := range items { + reversed[length-(i+1)] = item + } + return reversed, nil +} +func jpfToArray(arguments []interface{}) (interface{}, error) { + if _, ok := arguments[0].([]interface{}); ok { + return arguments[0], nil + } + return arguments[:1:1], nil +} +func jpfToString(arguments []interface{}) (interface{}, error) { + if v, ok := arguments[0].(string); ok { + return v, nil + } + result, err := json.Marshal(arguments[0]) + if err != nil { + return nil, err + } + return string(result), nil +} +func jpfToNumber(arguments []interface{}) (interface{}, error) { + arg := arguments[0] + if v, ok := arg.(float64); ok { + return v, nil + } + if v, ok := arg.(string); ok { + conv, err := strconv.ParseFloat(v, 64) + if err != nil { + return nil, nil + } + return conv, nil + } + if _, ok := arg.([]interface{}); ok { + return nil, nil + } + if _, ok := arg.(map[string]interface{}); ok { + return nil, nil + } + if arg == nil { + return nil, nil + } + if arg == true || arg == false { + return nil, nil + } + return nil, errors.New("unknown type") +} +func jpfNotNull(arguments []interface{}) (interface{}, error) { + for _, arg := range arguments { + if arg != nil { + return arg, nil + } + } + return nil, nil +} diff --git a/vendor/github.com/jmespath/go-jmespath/interpreter.go b/vendor/github.com/jmespath/go-jmespath/interpreter.go new file mode 100644 index 0000000..13c7460 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/interpreter.go @@ -0,0 +1,418 @@ +package jmespath + +import ( + "errors" + "reflect" + "unicode" + "unicode/utf8" +) + +/* This is a tree based interpreter. It walks the AST and directly + interprets the AST to search through a JSON document. +*/ + +type treeInterpreter struct { + fCall *functionCaller +} + +func newInterpreter() *treeInterpreter { + interpreter := treeInterpreter{} + interpreter.fCall = newFunctionCaller() + return &interpreter +} + +type expRef struct { + ref ASTNode +} + +// Execute takes an ASTNode and input data and interprets the AST directly. +// It will produce the result of applying the JMESPath expression associated +// with the ASTNode to the input data "value". +func (intr *treeInterpreter) Execute(node ASTNode, value interface{}) (interface{}, error) { + switch node.nodeType { + case ASTComparator: + left, err := intr.Execute(node.children[0], value) + if err != nil { + return nil, err + } + right, err := intr.Execute(node.children[1], value) + if err != nil { + return nil, err + } + switch node.value { + case tEQ: + return objsEqual(left, right), nil + case tNE: + return !objsEqual(left, right), nil + } + leftNum, ok := left.(float64) + if !ok { + return nil, nil + } + rightNum, ok := right.(float64) + if !ok { + return nil, nil + } + switch node.value { + case tGT: + return leftNum > rightNum, nil + case tGTE: + return leftNum >= rightNum, nil + case tLT: + return leftNum < rightNum, nil + case tLTE: + return leftNum <= rightNum, nil + } + case ASTExpRef: + return expRef{ref: node.children[0]}, nil + case ASTFunctionExpression: + resolvedArgs := []interface{}{} + for _, arg := range node.children { + current, err := intr.Execute(arg, value) + if err != nil { + return nil, err + } + resolvedArgs = append(resolvedArgs, current) + } + return intr.fCall.CallFunction(node.value.(string), resolvedArgs, intr) + case ASTField: + if m, ok := value.(map[string]interface{}); ok { + key := node.value.(string) + return m[key], nil + } + return intr.fieldFromStruct(node.value.(string), value) + case ASTFilterProjection: + left, err := intr.Execute(node.children[0], value) + if err != nil { + return nil, nil + } + sliceType, ok := left.([]interface{}) + if !ok { + if isSliceType(left) { + return intr.filterProjectionWithReflection(node, left) + } + return nil, nil + } + compareNode := node.children[2] + collected := []interface{}{} + for _, element := range sliceType { + result, err := intr.Execute(compareNode, element) + if err != nil { + return nil, err + } + if !isFalse(result) { + current, err := intr.Execute(node.children[1], element) + if err != nil { + return nil, err + } + if current != nil { + collected = append(collected, current) + } + } + } + return collected, nil + case ASTFlatten: + left, err := intr.Execute(node.children[0], value) + if err != nil { + return nil, nil + } + sliceType, ok := left.([]interface{}) + if !ok { + // If we can't type convert to []interface{}, there's + // a chance this could still work via reflection if we're + // dealing with user provided types. + if isSliceType(left) { + return intr.flattenWithReflection(left) + } + return nil, nil + } + flattened := []interface{}{} + for _, element := range sliceType { + if elementSlice, ok := element.([]interface{}); ok { + flattened = append(flattened, elementSlice...) + } else if isSliceType(element) { + reflectFlat := []interface{}{} + v := reflect.ValueOf(element) + for i := 0; i < v.Len(); i++ { + reflectFlat = append(reflectFlat, v.Index(i).Interface()) + } + flattened = append(flattened, reflectFlat...) + } else { + flattened = append(flattened, element) + } + } + return flattened, nil + case ASTIdentity, ASTCurrentNode: + return value, nil + case ASTIndex: + if sliceType, ok := value.([]interface{}); ok { + index := node.value.(int) + if index < 0 { + index += len(sliceType) + } + if index < len(sliceType) && index >= 0 { + return sliceType[index], nil + } + return nil, nil + } + // Otherwise try via reflection. + rv := reflect.ValueOf(value) + if rv.Kind() == reflect.Slice { + index := node.value.(int) + if index < 0 { + index += rv.Len() + } + if index < rv.Len() && index >= 0 { + v := rv.Index(index) + return v.Interface(), nil + } + } + return nil, nil + case ASTKeyValPair: + return intr.Execute(node.children[0], value) + case ASTLiteral: + return node.value, nil + case ASTMultiSelectHash: + if value == nil { + return nil, nil + } + collected := make(map[string]interface{}) + for _, child := range node.children { + current, err := intr.Execute(child, value) + if err != nil { + return nil, err + } + key := child.value.(string) + collected[key] = current + } + return collected, nil + case ASTMultiSelectList: + if value == nil { + return nil, nil + } + collected := []interface{}{} + for _, child := range node.children { + current, err := intr.Execute(child, value) + if err != nil { + return nil, err + } + collected = append(collected, current) + } + return collected, nil + case ASTOrExpression: + matched, err := intr.Execute(node.children[0], value) + if err != nil { + return nil, err + } + if isFalse(matched) { + matched, err = intr.Execute(node.children[1], value) + if err != nil { + return nil, err + } + } + return matched, nil + case ASTAndExpression: + matched, err := intr.Execute(node.children[0], value) + if err != nil { + return nil, err + } + if isFalse(matched) { + return matched, nil + } + return intr.Execute(node.children[1], value) + case ASTNotExpression: + matched, err := intr.Execute(node.children[0], value) + if err != nil { + return nil, err + } + if isFalse(matched) { + return true, nil + } + return false, nil + case ASTPipe: + result := value + var err error + for _, child := range node.children { + result, err = intr.Execute(child, result) + if err != nil { + return nil, err + } + } + return result, nil + case ASTProjection: + left, err := intr.Execute(node.children[0], value) + if err != nil { + return nil, err + } + sliceType, ok := left.([]interface{}) + if !ok { + if isSliceType(left) { + return intr.projectWithReflection(node, left) + } + return nil, nil + } + collected := []interface{}{} + var current interface{} + for _, element := range sliceType { + current, err = intr.Execute(node.children[1], element) + if err != nil { + return nil, err + } + if current != nil { + collected = append(collected, current) + } + } + return collected, nil + case ASTSubexpression, ASTIndexExpression: + left, err := intr.Execute(node.children[0], value) + if err != nil { + return nil, err + } + return intr.Execute(node.children[1], left) + case ASTSlice: + sliceType, ok := value.([]interface{}) + if !ok { + if isSliceType(value) { + return intr.sliceWithReflection(node, value) + } + return nil, nil + } + parts := node.value.([]*int) + sliceParams := make([]sliceParam, 3) + for i, part := range parts { + if part != nil { + sliceParams[i].Specified = true + sliceParams[i].N = *part + } + } + return slice(sliceType, sliceParams) + case ASTValueProjection: + left, err := intr.Execute(node.children[0], value) + if err != nil { + return nil, nil + } + mapType, ok := left.(map[string]interface{}) + if !ok { + return nil, nil + } + values := make([]interface{}, len(mapType)) + for _, value := range mapType { + values = append(values, value) + } + collected := []interface{}{} + for _, element := range values { + current, err := intr.Execute(node.children[1], element) + if err != nil { + return nil, err + } + if current != nil { + collected = append(collected, current) + } + } + return collected, nil + } + return nil, errors.New("Unknown AST node: " + node.nodeType.String()) +} + +func (intr *treeInterpreter) fieldFromStruct(key string, value interface{}) (interface{}, error) { + rv := reflect.ValueOf(value) + first, n := utf8.DecodeRuneInString(key) + fieldName := string(unicode.ToUpper(first)) + key[n:] + if rv.Kind() == reflect.Struct { + v := rv.FieldByName(fieldName) + if !v.IsValid() { + return nil, nil + } + return v.Interface(), nil + } else if rv.Kind() == reflect.Ptr { + // Handle multiple levels of indirection? + if rv.IsNil() { + return nil, nil + } + rv = rv.Elem() + v := rv.FieldByName(fieldName) + if !v.IsValid() { + return nil, nil + } + return v.Interface(), nil + } + return nil, nil +} + +func (intr *treeInterpreter) flattenWithReflection(value interface{}) (interface{}, error) { + v := reflect.ValueOf(value) + flattened := []interface{}{} + for i := 0; i < v.Len(); i++ { + element := v.Index(i).Interface() + if reflect.TypeOf(element).Kind() == reflect.Slice { + // Then insert the contents of the element + // slice into the flattened slice, + // i.e flattened = append(flattened, mySlice...) + elementV := reflect.ValueOf(element) + for j := 0; j < elementV.Len(); j++ { + flattened = append( + flattened, elementV.Index(j).Interface()) + } + } else { + flattened = append(flattened, element) + } + } + return flattened, nil +} + +func (intr *treeInterpreter) sliceWithReflection(node ASTNode, value interface{}) (interface{}, error) { + v := reflect.ValueOf(value) + parts := node.value.([]*int) + sliceParams := make([]sliceParam, 3) + for i, part := range parts { + if part != nil { + sliceParams[i].Specified = true + sliceParams[i].N = *part + } + } + final := []interface{}{} + for i := 0; i < v.Len(); i++ { + element := v.Index(i).Interface() + final = append(final, element) + } + return slice(final, sliceParams) +} + +func (intr *treeInterpreter) filterProjectionWithReflection(node ASTNode, value interface{}) (interface{}, error) { + compareNode := node.children[2] + collected := []interface{}{} + v := reflect.ValueOf(value) + for i := 0; i < v.Len(); i++ { + element := v.Index(i).Interface() + result, err := intr.Execute(compareNode, element) + if err != nil { + return nil, err + } + if !isFalse(result) { + current, err := intr.Execute(node.children[1], element) + if err != nil { + return nil, err + } + if current != nil { + collected = append(collected, current) + } + } + } + return collected, nil +} + +func (intr *treeInterpreter) projectWithReflection(node ASTNode, value interface{}) (interface{}, error) { + collected := []interface{}{} + v := reflect.ValueOf(value) + for i := 0; i < v.Len(); i++ { + element := v.Index(i).Interface() + result, err := intr.Execute(node.children[1], element) + if err != nil { + return nil, err + } + if result != nil { + collected = append(collected, result) + } + } + return collected, nil +} diff --git a/vendor/github.com/jmespath/go-jmespath/lexer.go b/vendor/github.com/jmespath/go-jmespath/lexer.go new file mode 100644 index 0000000..817900c --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/lexer.go @@ -0,0 +1,420 @@ +package jmespath + +import ( + "bytes" + "encoding/json" + "fmt" + "strconv" + "strings" + "unicode/utf8" +) + +type token struct { + tokenType tokType + value string + position int + length int +} + +type tokType int + +const eof = -1 + +// Lexer contains information about the expression being tokenized. +type Lexer struct { + expression string // The expression provided by the user. + currentPos int // The current position in the string. + lastWidth int // The width of the current rune. This + buf bytes.Buffer // Internal buffer used for building up values. +} + +// SyntaxError is the main error used whenever a lexing or parsing error occurs. +type SyntaxError struct { + msg string // Error message displayed to user + Expression string // Expression that generated a SyntaxError + Offset int // The location in the string where the error occurred +} + +func (e SyntaxError) Error() string { + // In the future, it would be good to underline the specific + // location where the error occurred. + return "SyntaxError: " + e.msg +} + +// HighlightLocation will show where the syntax error occurred. +// It will place a "^" character on a line below the expression +// at the point where the syntax error occurred. +func (e SyntaxError) HighlightLocation() string { + return e.Expression + "\n" + strings.Repeat(" ", e.Offset) + "^" +} + +//go:generate stringer -type=tokType +const ( + tUnknown tokType = iota + tStar + tDot + tFilter + tFlatten + tLparen + tRparen + tLbracket + tRbracket + tLbrace + tRbrace + tOr + tPipe + tNumber + tUnquotedIdentifier + tQuotedIdentifier + tComma + tColon + tLT + tLTE + tGT + tGTE + tEQ + tNE + tJSONLiteral + tStringLiteral + tCurrent + tExpref + tAnd + tNot + tEOF +) + +var basicTokens = map[rune]tokType{ + '.': tDot, + '*': tStar, + ',': tComma, + ':': tColon, + '{': tLbrace, + '}': tRbrace, + ']': tRbracket, // tLbracket not included because it could be "[]" + '(': tLparen, + ')': tRparen, + '@': tCurrent, +} + +// Bit mask for [a-zA-Z_] shifted down 64 bits to fit in a single uint64. +// When using this bitmask just be sure to shift the rune down 64 bits +// before checking against identifierStartBits. +const identifierStartBits uint64 = 576460745995190270 + +// Bit mask for [a-zA-Z0-9], 128 bits -> 2 uint64s. +var identifierTrailingBits = [2]uint64{287948901175001088, 576460745995190270} + +var whiteSpace = map[rune]bool{ + ' ': true, '\t': true, '\n': true, '\r': true, +} + +func (t token) String() string { + return fmt.Sprintf("Token{%+v, %s, %d, %d}", + t.tokenType, t.value, t.position, t.length) +} + +// NewLexer creates a new JMESPath lexer. +func NewLexer() *Lexer { + lexer := Lexer{} + return &lexer +} + +func (lexer *Lexer) next() rune { + if lexer.currentPos >= len(lexer.expression) { + lexer.lastWidth = 0 + return eof + } + r, w := utf8.DecodeRuneInString(lexer.expression[lexer.currentPos:]) + lexer.lastWidth = w + lexer.currentPos += w + return r +} + +func (lexer *Lexer) back() { + lexer.currentPos -= lexer.lastWidth +} + +func (lexer *Lexer) peek() rune { + t := lexer.next() + lexer.back() + return t +} + +// tokenize takes an expression and returns corresponding tokens. +func (lexer *Lexer) tokenize(expression string) ([]token, error) { + var tokens []token + lexer.expression = expression + lexer.currentPos = 0 + lexer.lastWidth = 0 +loop: + for { + r := lexer.next() + if identifierStartBits&(1<<(uint64(r)-64)) > 0 { + t := lexer.consumeUnquotedIdentifier() + tokens = append(tokens, t) + } else if val, ok := basicTokens[r]; ok { + // Basic single char token. + t := token{ + tokenType: val, + value: string(r), + position: lexer.currentPos - lexer.lastWidth, + length: 1, + } + tokens = append(tokens, t) + } else if r == '-' || (r >= '0' && r <= '9') { + t := lexer.consumeNumber() + tokens = append(tokens, t) + } else if r == '[' { + t := lexer.consumeLBracket() + tokens = append(tokens, t) + } else if r == '"' { + t, err := lexer.consumeQuotedIdentifier() + if err != nil { + return tokens, err + } + tokens = append(tokens, t) + } else if r == '\'' { + t, err := lexer.consumeRawStringLiteral() + if err != nil { + return tokens, err + } + tokens = append(tokens, t) + } else if r == '`' { + t, err := lexer.consumeLiteral() + if err != nil { + return tokens, err + } + tokens = append(tokens, t) + } else if r == '|' { + t := lexer.matchOrElse(r, '|', tOr, tPipe) + tokens = append(tokens, t) + } else if r == '<' { + t := lexer.matchOrElse(r, '=', tLTE, tLT) + tokens = append(tokens, t) + } else if r == '>' { + t := lexer.matchOrElse(r, '=', tGTE, tGT) + tokens = append(tokens, t) + } else if r == '!' { + t := lexer.matchOrElse(r, '=', tNE, tNot) + tokens = append(tokens, t) + } else if r == '=' { + t := lexer.matchOrElse(r, '=', tEQ, tUnknown) + tokens = append(tokens, t) + } else if r == '&' { + t := lexer.matchOrElse(r, '&', tAnd, tExpref) + tokens = append(tokens, t) + } else if r == eof { + break loop + } else if _, ok := whiteSpace[r]; ok { + // Ignore whitespace + } else { + return tokens, lexer.syntaxError(fmt.Sprintf("Unknown char: %s", strconv.QuoteRuneToASCII(r))) + } + } + tokens = append(tokens, token{tEOF, "", len(lexer.expression), 0}) + return tokens, nil +} + +// Consume characters until the ending rune "r" is reached. +// If the end of the expression is reached before seeing the +// terminating rune "r", then an error is returned. +// If no error occurs then the matching substring is returned. +// The returned string will not include the ending rune. +func (lexer *Lexer) consumeUntil(end rune) (string, error) { + start := lexer.currentPos + current := lexer.next() + for current != end && current != eof { + if current == '\\' && lexer.peek() != eof { + lexer.next() + } + current = lexer.next() + } + if lexer.lastWidth == 0 { + // Then we hit an EOF so we never reached the closing + // delimiter. + return "", SyntaxError{ + msg: "Unclosed delimiter: " + string(end), + Expression: lexer.expression, + Offset: len(lexer.expression), + } + } + return lexer.expression[start : lexer.currentPos-lexer.lastWidth], nil +} + +func (lexer *Lexer) consumeLiteral() (token, error) { + start := lexer.currentPos + value, err := lexer.consumeUntil('`') + if err != nil { + return token{}, err + } + value = strings.Replace(value, "\\`", "`", -1) + return token{ + tokenType: tJSONLiteral, + value: value, + position: start, + length: len(value), + }, nil +} + +func (lexer *Lexer) consumeRawStringLiteral() (token, error) { + start := lexer.currentPos + currentIndex := start + current := lexer.next() + for current != '\'' && lexer.peek() != eof { + if current == '\\' && lexer.peek() == '\'' { + chunk := lexer.expression[currentIndex : lexer.currentPos-1] + lexer.buf.WriteString(chunk) + lexer.buf.WriteString("'") + lexer.next() + currentIndex = lexer.currentPos + } + current = lexer.next() + } + if lexer.lastWidth == 0 { + // Then we hit an EOF so we never reached the closing + // delimiter. + return token{}, SyntaxError{ + msg: "Unclosed delimiter: '", + Expression: lexer.expression, + Offset: len(lexer.expression), + } + } + if currentIndex < lexer.currentPos { + lexer.buf.WriteString(lexer.expression[currentIndex : lexer.currentPos-1]) + } + value := lexer.buf.String() + // Reset the buffer so it can reused again. + lexer.buf.Reset() + return token{ + tokenType: tStringLiteral, + value: value, + position: start, + length: len(value), + }, nil +} + +func (lexer *Lexer) syntaxError(msg string) SyntaxError { + return SyntaxError{ + msg: msg, + Expression: lexer.expression, + Offset: lexer.currentPos - 1, + } +} + +// Checks for a two char token, otherwise matches a single character +// token. This is used whenever a two char token overlaps a single +// char token, e.g. "||" -> tPipe, "|" -> tOr. +func (lexer *Lexer) matchOrElse(first rune, second rune, matchedType tokType, singleCharType tokType) token { + start := lexer.currentPos - lexer.lastWidth + nextRune := lexer.next() + var t token + if nextRune == second { + t = token{ + tokenType: matchedType, + value: string(first) + string(second), + position: start, + length: 2, + } + } else { + lexer.back() + t = token{ + tokenType: singleCharType, + value: string(first), + position: start, + length: 1, + } + } + return t +} + +func (lexer *Lexer) consumeLBracket() token { + // There's three options here: + // 1. A filter expression "[?" + // 2. A flatten operator "[]" + // 3. A bare rbracket "[" + start := lexer.currentPos - lexer.lastWidth + nextRune := lexer.next() + var t token + if nextRune == '?' { + t = token{ + tokenType: tFilter, + value: "[?", + position: start, + length: 2, + } + } else if nextRune == ']' { + t = token{ + tokenType: tFlatten, + value: "[]", + position: start, + length: 2, + } + } else { + t = token{ + tokenType: tLbracket, + value: "[", + position: start, + length: 1, + } + lexer.back() + } + return t +} + +func (lexer *Lexer) consumeQuotedIdentifier() (token, error) { + start := lexer.currentPos + value, err := lexer.consumeUntil('"') + if err != nil { + return token{}, err + } + var decoded string + asJSON := []byte("\"" + value + "\"") + if err := json.Unmarshal([]byte(asJSON), &decoded); err != nil { + return token{}, err + } + return token{ + tokenType: tQuotedIdentifier, + value: decoded, + position: start - 1, + length: len(decoded), + }, nil +} + +func (lexer *Lexer) consumeUnquotedIdentifier() token { + // Consume runes until we reach the end of an unquoted + // identifier. + start := lexer.currentPos - lexer.lastWidth + for { + r := lexer.next() + if r < 0 || r > 128 || identifierTrailingBits[uint64(r)/64]&(1<<(uint64(r)%64)) == 0 { + lexer.back() + break + } + } + value := lexer.expression[start:lexer.currentPos] + return token{ + tokenType: tUnquotedIdentifier, + value: value, + position: start, + length: lexer.currentPos - start, + } +} + +func (lexer *Lexer) consumeNumber() token { + // Consume runes until we reach something that's not a number. + start := lexer.currentPos - lexer.lastWidth + for { + r := lexer.next() + if r < '0' || r > '9' { + lexer.back() + break + } + } + value := lexer.expression[start:lexer.currentPos] + return token{ + tokenType: tNumber, + value: value, + position: start, + length: lexer.currentPos - start, + } +} diff --git a/vendor/github.com/jmespath/go-jmespath/parser.go b/vendor/github.com/jmespath/go-jmespath/parser.go new file mode 100644 index 0000000..1240a17 --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/parser.go @@ -0,0 +1,603 @@ +package jmespath + +import ( + "encoding/json" + "fmt" + "strconv" + "strings" +) + +type astNodeType int + +//go:generate stringer -type astNodeType +const ( + ASTEmpty astNodeType = iota + ASTComparator + ASTCurrentNode + ASTExpRef + ASTFunctionExpression + ASTField + ASTFilterProjection + ASTFlatten + ASTIdentity + ASTIndex + ASTIndexExpression + ASTKeyValPair + ASTLiteral + ASTMultiSelectHash + ASTMultiSelectList + ASTOrExpression + ASTAndExpression + ASTNotExpression + ASTPipe + ASTProjection + ASTSubexpression + ASTSlice + ASTValueProjection +) + +// ASTNode represents the abstract syntax tree of a JMESPath expression. +type ASTNode struct { + nodeType astNodeType + value interface{} + children []ASTNode +} + +func (node ASTNode) String() string { + return node.PrettyPrint(0) +} + +// PrettyPrint will pretty print the parsed AST. +// The AST is an implementation detail and this pretty print +// function is provided as a convenience method to help with +// debugging. You should not rely on its output as the internal +// structure of the AST may change at any time. +func (node ASTNode) PrettyPrint(indent int) string { + spaces := strings.Repeat(" ", indent) + output := fmt.Sprintf("%s%s {\n", spaces, node.nodeType) + nextIndent := indent + 2 + if node.value != nil { + if converted, ok := node.value.(fmt.Stringer); ok { + // Account for things like comparator nodes + // that are enums with a String() method. + output += fmt.Sprintf("%svalue: %s\n", strings.Repeat(" ", nextIndent), converted.String()) + } else { + output += fmt.Sprintf("%svalue: %#v\n", strings.Repeat(" ", nextIndent), node.value) + } + } + lastIndex := len(node.children) + if lastIndex > 0 { + output += fmt.Sprintf("%schildren: {\n", strings.Repeat(" ", nextIndent)) + childIndent := nextIndent + 2 + for _, elem := range node.children { + output += elem.PrettyPrint(childIndent) + } + } + output += fmt.Sprintf("%s}\n", spaces) + return output +} + +var bindingPowers = map[tokType]int{ + tEOF: 0, + tUnquotedIdentifier: 0, + tQuotedIdentifier: 0, + tRbracket: 0, + tRparen: 0, + tComma: 0, + tRbrace: 0, + tNumber: 0, + tCurrent: 0, + tExpref: 0, + tColon: 0, + tPipe: 1, + tOr: 2, + tAnd: 3, + tEQ: 5, + tLT: 5, + tLTE: 5, + tGT: 5, + tGTE: 5, + tNE: 5, + tFlatten: 9, + tStar: 20, + tFilter: 21, + tDot: 40, + tNot: 45, + tLbrace: 50, + tLbracket: 55, + tLparen: 60, +} + +// Parser holds state about the current expression being parsed. +type Parser struct { + expression string + tokens []token + index int +} + +// NewParser creates a new JMESPath parser. +func NewParser() *Parser { + p := Parser{} + return &p +} + +// Parse will compile a JMESPath expression. +func (p *Parser) Parse(expression string) (ASTNode, error) { + lexer := NewLexer() + p.expression = expression + p.index = 0 + tokens, err := lexer.tokenize(expression) + if err != nil { + return ASTNode{}, err + } + p.tokens = tokens + parsed, err := p.parseExpression(0) + if err != nil { + return ASTNode{}, err + } + if p.current() != tEOF { + return ASTNode{}, p.syntaxError(fmt.Sprintf( + "Unexpected token at the end of the expresssion: %s", p.current())) + } + return parsed, nil +} + +func (p *Parser) parseExpression(bindingPower int) (ASTNode, error) { + var err error + leftToken := p.lookaheadToken(0) + p.advance() + leftNode, err := p.nud(leftToken) + if err != nil { + return ASTNode{}, err + } + currentToken := p.current() + for bindingPower < bindingPowers[currentToken] { + p.advance() + leftNode, err = p.led(currentToken, leftNode) + if err != nil { + return ASTNode{}, err + } + currentToken = p.current() + } + return leftNode, nil +} + +func (p *Parser) parseIndexExpression() (ASTNode, error) { + if p.lookahead(0) == tColon || p.lookahead(1) == tColon { + return p.parseSliceExpression() + } + indexStr := p.lookaheadToken(0).value + parsedInt, err := strconv.Atoi(indexStr) + if err != nil { + return ASTNode{}, err + } + indexNode := ASTNode{nodeType: ASTIndex, value: parsedInt} + p.advance() + if err := p.match(tRbracket); err != nil { + return ASTNode{}, err + } + return indexNode, nil +} + +func (p *Parser) parseSliceExpression() (ASTNode, error) { + parts := []*int{nil, nil, nil} + index := 0 + current := p.current() + for current != tRbracket && index < 3 { + if current == tColon { + index++ + p.advance() + } else if current == tNumber { + parsedInt, err := strconv.Atoi(p.lookaheadToken(0).value) + if err != nil { + return ASTNode{}, err + } + parts[index] = &parsedInt + p.advance() + } else { + return ASTNode{}, p.syntaxError( + "Expected tColon or tNumber" + ", received: " + p.current().String()) + } + current = p.current() + } + if err := p.match(tRbracket); err != nil { + return ASTNode{}, err + } + return ASTNode{ + nodeType: ASTSlice, + value: parts, + }, nil +} + +func (p *Parser) match(tokenType tokType) error { + if p.current() == tokenType { + p.advance() + return nil + } + return p.syntaxError("Expected " + tokenType.String() + ", received: " + p.current().String()) +} + +func (p *Parser) led(tokenType tokType, node ASTNode) (ASTNode, error) { + switch tokenType { + case tDot: + if p.current() != tStar { + right, err := p.parseDotRHS(bindingPowers[tDot]) + return ASTNode{ + nodeType: ASTSubexpression, + children: []ASTNode{node, right}, + }, err + } + p.advance() + right, err := p.parseProjectionRHS(bindingPowers[tDot]) + return ASTNode{ + nodeType: ASTValueProjection, + children: []ASTNode{node, right}, + }, err + case tPipe: + right, err := p.parseExpression(bindingPowers[tPipe]) + return ASTNode{nodeType: ASTPipe, children: []ASTNode{node, right}}, err + case tOr: + right, err := p.parseExpression(bindingPowers[tOr]) + return ASTNode{nodeType: ASTOrExpression, children: []ASTNode{node, right}}, err + case tAnd: + right, err := p.parseExpression(bindingPowers[tAnd]) + return ASTNode{nodeType: ASTAndExpression, children: []ASTNode{node, right}}, err + case tLparen: + name := node.value + var args []ASTNode + for p.current() != tRparen { + expression, err := p.parseExpression(0) + if err != nil { + return ASTNode{}, err + } + if p.current() == tComma { + if err := p.match(tComma); err != nil { + return ASTNode{}, err + } + } + args = append(args, expression) + } + if err := p.match(tRparen); err != nil { + return ASTNode{}, err + } + return ASTNode{ + nodeType: ASTFunctionExpression, + value: name, + children: args, + }, nil + case tFilter: + return p.parseFilter(node) + case tFlatten: + left := ASTNode{nodeType: ASTFlatten, children: []ASTNode{node}} + right, err := p.parseProjectionRHS(bindingPowers[tFlatten]) + return ASTNode{ + nodeType: ASTProjection, + children: []ASTNode{left, right}, + }, err + case tEQ, tNE, tGT, tGTE, tLT, tLTE: + right, err := p.parseExpression(bindingPowers[tokenType]) + if err != nil { + return ASTNode{}, err + } + return ASTNode{ + nodeType: ASTComparator, + value: tokenType, + children: []ASTNode{node, right}, + }, nil + case tLbracket: + tokenType := p.current() + var right ASTNode + var err error + if tokenType == tNumber || tokenType == tColon { + right, err = p.parseIndexExpression() + if err != nil { + return ASTNode{}, err + } + return p.projectIfSlice(node, right) + } + // Otherwise this is a projection. + if err := p.match(tStar); err != nil { + return ASTNode{}, err + } + if err := p.match(tRbracket); err != nil { + return ASTNode{}, err + } + right, err = p.parseProjectionRHS(bindingPowers[tStar]) + if err != nil { + return ASTNode{}, err + } + return ASTNode{ + nodeType: ASTProjection, + children: []ASTNode{node, right}, + }, nil + } + return ASTNode{}, p.syntaxError("Unexpected token: " + tokenType.String()) +} + +func (p *Parser) nud(token token) (ASTNode, error) { + switch token.tokenType { + case tJSONLiteral: + var parsed interface{} + err := json.Unmarshal([]byte(token.value), &parsed) + if err != nil { + return ASTNode{}, err + } + return ASTNode{nodeType: ASTLiteral, value: parsed}, nil + case tStringLiteral: + return ASTNode{nodeType: ASTLiteral, value: token.value}, nil + case tUnquotedIdentifier: + return ASTNode{ + nodeType: ASTField, + value: token.value, + }, nil + case tQuotedIdentifier: + node := ASTNode{nodeType: ASTField, value: token.value} + if p.current() == tLparen { + return ASTNode{}, p.syntaxErrorToken("Can't have quoted identifier as function name.", token) + } + return node, nil + case tStar: + left := ASTNode{nodeType: ASTIdentity} + var right ASTNode + var err error + if p.current() == tRbracket { + right = ASTNode{nodeType: ASTIdentity} + } else { + right, err = p.parseProjectionRHS(bindingPowers[tStar]) + } + return ASTNode{nodeType: ASTValueProjection, children: []ASTNode{left, right}}, err + case tFilter: + return p.parseFilter(ASTNode{nodeType: ASTIdentity}) + case tLbrace: + return p.parseMultiSelectHash() + case tFlatten: + left := ASTNode{ + nodeType: ASTFlatten, + children: []ASTNode{{nodeType: ASTIdentity}}, + } + right, err := p.parseProjectionRHS(bindingPowers[tFlatten]) + if err != nil { + return ASTNode{}, err + } + return ASTNode{nodeType: ASTProjection, children: []ASTNode{left, right}}, nil + case tLbracket: + tokenType := p.current() + //var right ASTNode + if tokenType == tNumber || tokenType == tColon { + right, err := p.parseIndexExpression() + if err != nil { + return ASTNode{}, nil + } + return p.projectIfSlice(ASTNode{nodeType: ASTIdentity}, right) + } else if tokenType == tStar && p.lookahead(1) == tRbracket { + p.advance() + p.advance() + right, err := p.parseProjectionRHS(bindingPowers[tStar]) + if err != nil { + return ASTNode{}, err + } + return ASTNode{ + nodeType: ASTProjection, + children: []ASTNode{{nodeType: ASTIdentity}, right}, + }, nil + } else { + return p.parseMultiSelectList() + } + case tCurrent: + return ASTNode{nodeType: ASTCurrentNode}, nil + case tExpref: + expression, err := p.parseExpression(bindingPowers[tExpref]) + if err != nil { + return ASTNode{}, err + } + return ASTNode{nodeType: ASTExpRef, children: []ASTNode{expression}}, nil + case tNot: + expression, err := p.parseExpression(bindingPowers[tNot]) + if err != nil { + return ASTNode{}, err + } + return ASTNode{nodeType: ASTNotExpression, children: []ASTNode{expression}}, nil + case tLparen: + expression, err := p.parseExpression(0) + if err != nil { + return ASTNode{}, err + } + if err := p.match(tRparen); err != nil { + return ASTNode{}, err + } + return expression, nil + case tEOF: + return ASTNode{}, p.syntaxErrorToken("Incomplete expression", token) + } + + return ASTNode{}, p.syntaxErrorToken("Invalid token: "+token.tokenType.String(), token) +} + +func (p *Parser) parseMultiSelectList() (ASTNode, error) { + var expressions []ASTNode + for { + expression, err := p.parseExpression(0) + if err != nil { + return ASTNode{}, err + } + expressions = append(expressions, expression) + if p.current() == tRbracket { + break + } + err = p.match(tComma) + if err != nil { + return ASTNode{}, err + } + } + err := p.match(tRbracket) + if err != nil { + return ASTNode{}, err + } + return ASTNode{ + nodeType: ASTMultiSelectList, + children: expressions, + }, nil +} + +func (p *Parser) parseMultiSelectHash() (ASTNode, error) { + var children []ASTNode + for { + keyToken := p.lookaheadToken(0) + if err := p.match(tUnquotedIdentifier); err != nil { + if err := p.match(tQuotedIdentifier); err != nil { + return ASTNode{}, p.syntaxError("Expected tQuotedIdentifier or tUnquotedIdentifier") + } + } + keyName := keyToken.value + err := p.match(tColon) + if err != nil { + return ASTNode{}, err + } + value, err := p.parseExpression(0) + if err != nil { + return ASTNode{}, err + } + node := ASTNode{ + nodeType: ASTKeyValPair, + value: keyName, + children: []ASTNode{value}, + } + children = append(children, node) + if p.current() == tComma { + err := p.match(tComma) + if err != nil { + return ASTNode{}, nil + } + } else if p.current() == tRbrace { + err := p.match(tRbrace) + if err != nil { + return ASTNode{}, nil + } + break + } + } + return ASTNode{ + nodeType: ASTMultiSelectHash, + children: children, + }, nil +} + +func (p *Parser) projectIfSlice(left ASTNode, right ASTNode) (ASTNode, error) { + indexExpr := ASTNode{ + nodeType: ASTIndexExpression, + children: []ASTNode{left, right}, + } + if right.nodeType == ASTSlice { + right, err := p.parseProjectionRHS(bindingPowers[tStar]) + return ASTNode{ + nodeType: ASTProjection, + children: []ASTNode{indexExpr, right}, + }, err + } + return indexExpr, nil +} +func (p *Parser) parseFilter(node ASTNode) (ASTNode, error) { + var right, condition ASTNode + var err error + condition, err = p.parseExpression(0) + if err != nil { + return ASTNode{}, err + } + if err := p.match(tRbracket); err != nil { + return ASTNode{}, err + } + if p.current() == tFlatten { + right = ASTNode{nodeType: ASTIdentity} + } else { + right, err = p.parseProjectionRHS(bindingPowers[tFilter]) + if err != nil { + return ASTNode{}, err + } + } + + return ASTNode{ + nodeType: ASTFilterProjection, + children: []ASTNode{node, right, condition}, + }, nil +} + +func (p *Parser) parseDotRHS(bindingPower int) (ASTNode, error) { + lookahead := p.current() + if tokensOneOf([]tokType{tQuotedIdentifier, tUnquotedIdentifier, tStar}, lookahead) { + return p.parseExpression(bindingPower) + } else if lookahead == tLbracket { + if err := p.match(tLbracket); err != nil { + return ASTNode{}, err + } + return p.parseMultiSelectList() + } else if lookahead == tLbrace { + if err := p.match(tLbrace); err != nil { + return ASTNode{}, err + } + return p.parseMultiSelectHash() + } + return ASTNode{}, p.syntaxError("Expected identifier, lbracket, or lbrace") +} + +func (p *Parser) parseProjectionRHS(bindingPower int) (ASTNode, error) { + current := p.current() + if bindingPowers[current] < 10 { + return ASTNode{nodeType: ASTIdentity}, nil + } else if current == tLbracket { + return p.parseExpression(bindingPower) + } else if current == tFilter { + return p.parseExpression(bindingPower) + } else if current == tDot { + err := p.match(tDot) + if err != nil { + return ASTNode{}, err + } + return p.parseDotRHS(bindingPower) + } else { + return ASTNode{}, p.syntaxError("Error") + } +} + +func (p *Parser) lookahead(number int) tokType { + return p.lookaheadToken(number).tokenType +} + +func (p *Parser) current() tokType { + return p.lookahead(0) +} + +func (p *Parser) lookaheadToken(number int) token { + return p.tokens[p.index+number] +} + +func (p *Parser) advance() { + p.index++ +} + +func tokensOneOf(elements []tokType, token tokType) bool { + for _, elem := range elements { + if elem == token { + return true + } + } + return false +} + +func (p *Parser) syntaxError(msg string) SyntaxError { + return SyntaxError{ + msg: msg, + Expression: p.expression, + Offset: p.lookaheadToken(0).position, + } +} + +// Create a SyntaxError based on the provided token. +// This differs from syntaxError() which creates a SyntaxError +// based on the current lookahead token. +func (p *Parser) syntaxErrorToken(msg string, t token) SyntaxError { + return SyntaxError{ + msg: msg, + Expression: p.expression, + Offset: t.position, + } +} diff --git a/vendor/github.com/jmespath/go-jmespath/toktype_string.go b/vendor/github.com/jmespath/go-jmespath/toktype_string.go new file mode 100644 index 0000000..dae79cb --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/toktype_string.go @@ -0,0 +1,16 @@ +// generated by stringer -type=tokType; DO NOT EDIT + +package jmespath + +import "fmt" + +const _tokType_name = "tUnknowntStartDottFiltertFlattentLparentRparentLbrackettRbrackettLbracetRbracetOrtPipetNumbertUnquotedIdentifiertQuotedIdentifiertCommatColontLTtLTEtGTtGTEtEQtNEtJSONLiteraltStringLiteraltCurrenttExpreftAndtNottEOF" + +var _tokType_index = [...]uint8{0, 8, 13, 17, 24, 32, 39, 46, 55, 64, 71, 78, 81, 86, 93, 112, 129, 135, 141, 144, 148, 151, 155, 158, 161, 173, 187, 195, 202, 206, 210, 214} + +func (i tokType) String() string { + if i < 0 || i >= tokType(len(_tokType_index)-1) { + return fmt.Sprintf("tokType(%d)", i) + } + return _tokType_name[_tokType_index[i]:_tokType_index[i+1]] +} diff --git a/vendor/github.com/jmespath/go-jmespath/util.go b/vendor/github.com/jmespath/go-jmespath/util.go new file mode 100644 index 0000000..ddc1b7d --- /dev/null +++ b/vendor/github.com/jmespath/go-jmespath/util.go @@ -0,0 +1,185 @@ +package jmespath + +import ( + "errors" + "reflect" +) + +// IsFalse determines if an object is false based on the JMESPath spec. +// JMESPath defines false values to be any of: +// - An empty string array, or hash. +// - The boolean value false. +// - nil +func isFalse(value interface{}) bool { + switch v := value.(type) { + case bool: + return !v + case []interface{}: + return len(v) == 0 + case map[string]interface{}: + return len(v) == 0 + case string: + return len(v) == 0 + case nil: + return true + } + // Try the reflection cases before returning false. + rv := reflect.ValueOf(value) + switch rv.Kind() { + case reflect.Struct: + // A struct type will never be false, even if + // all of its values are the zero type. + return false + case reflect.Slice, reflect.Map: + return rv.Len() == 0 + case reflect.Ptr: + if rv.IsNil() { + return true + } + // If it's a pointer type, we'll try to deref the pointer + // and evaluate the pointer value for isFalse. + element := rv.Elem() + return isFalse(element.Interface()) + } + return false +} + +// ObjsEqual is a generic object equality check. +// It will take two arbitrary objects and recursively determine +// if they are equal. +func objsEqual(left interface{}, right interface{}) bool { + return reflect.DeepEqual(left, right) +} + +// SliceParam refers to a single part of a slice. +// A slice consists of a start, a stop, and a step, similar to +// python slices. +type sliceParam struct { + N int + Specified bool +} + +// Slice supports [start:stop:step] style slicing that's supported in JMESPath. +func slice(slice []interface{}, parts []sliceParam) ([]interface{}, error) { + computed, err := computeSliceParams(len(slice), parts) + if err != nil { + return nil, err + } + start, stop, step := computed[0], computed[1], computed[2] + result := []interface{}{} + if step > 0 { + for i := start; i < stop; i += step { + result = append(result, slice[i]) + } + } else { + for i := start; i > stop; i += step { + result = append(result, slice[i]) + } + } + return result, nil +} + +func computeSliceParams(length int, parts []sliceParam) ([]int, error) { + var start, stop, step int + if !parts[2].Specified { + step = 1 + } else if parts[2].N == 0 { + return nil, errors.New("Invalid slice, step cannot be 0") + } else { + step = parts[2].N + } + var stepValueNegative bool + if step < 0 { + stepValueNegative = true + } else { + stepValueNegative = false + } + + if !parts[0].Specified { + if stepValueNegative { + start = length - 1 + } else { + start = 0 + } + } else { + start = capSlice(length, parts[0].N, step) + } + + if !parts[1].Specified { + if stepValueNegative { + stop = -1 + } else { + stop = length + } + } else { + stop = capSlice(length, parts[1].N, step) + } + return []int{start, stop, step}, nil +} + +func capSlice(length int, actual int, step int) int { + if actual < 0 { + actual += length + if actual < 0 { + if step < 0 { + actual = -1 + } else { + actual = 0 + } + } + } else if actual >= length { + if step < 0 { + actual = length - 1 + } else { + actual = length + } + } + return actual +} + +// ToArrayNum converts an empty interface type to a slice of float64. +// If any element in the array cannot be converted, then nil is returned +// along with a second value of false. +func toArrayNum(data interface{}) ([]float64, bool) { + // Is there a better way to do this with reflect? + if d, ok := data.([]interface{}); ok { + result := make([]float64, len(d)) + for i, el := range d { + item, ok := el.(float64) + if !ok { + return nil, false + } + result[i] = item + } + return result, true + } + return nil, false +} + +// ToArrayStr converts an empty interface type to a slice of strings. +// If any element in the array cannot be converted, then nil is returned +// along with a second value of false. If the input data could be entirely +// converted, then the converted data, along with a second value of true, +// will be returned. +func toArrayStr(data interface{}) ([]string, bool) { + // Is there a better way to do this with reflect? + if d, ok := data.([]interface{}); ok { + result := make([]string, len(d)) + for i, el := range d { + item, ok := el.(string) + if !ok { + return nil, false + } + result[i] = item + } + return result, true + } + return nil, false +} + +func isSliceType(v interface{}) bool { + if v == nil { + return false + } + return reflect.TypeOf(v).Kind() == reflect.Slice +} diff --git a/vendor/github.com/json-iterator/go/Gopkg.lock b/vendor/github.com/json-iterator/go/Gopkg.lock new file mode 100644 index 0000000..c8a9fbb --- /dev/null +++ b/vendor/github.com/json-iterator/go/Gopkg.lock @@ -0,0 +1,21 @@ +# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. + + +[[projects]] + name = "github.com/modern-go/concurrent" + packages = ["."] + revision = "e0a39a4cb4216ea8db28e22a69f4ec25610d513a" + version = "1.0.0" + +[[projects]] + name = "github.com/modern-go/reflect2" + packages = ["."] + revision = "4b7aa43c6742a2c18fdef89dd197aaae7dac7ccd" + version = "1.0.1" + +[solve-meta] + analyzer-name = "dep" + analyzer-version = 1 + inputs-digest = "ea54a775e5a354cb015502d2e7aa4b74230fc77e894f34a838b268c25ec8eeb8" + solver-name = "gps-cdcl" + solver-version = 1 diff --git a/vendor/github.com/json-iterator/go/Gopkg.toml b/vendor/github.com/json-iterator/go/Gopkg.toml new file mode 100644 index 0000000..313a0f8 --- /dev/null +++ b/vendor/github.com/json-iterator/go/Gopkg.toml @@ -0,0 +1,26 @@ +# Gopkg.toml example +# +# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md +# for detailed Gopkg.toml documentation. +# +# required = ["github.com/user/thing/cmd/thing"] +# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] +# +# [[constraint]] +# name = "github.com/user/project" +# version = "1.0.0" +# +# [[constraint]] +# name = "github.com/user/project2" +# branch = "dev" +# source = "github.com/myfork/project2" +# +# [[override]] +# name = "github.com/x/y" +# version = "2.4.0" + +ignored = ["github.com/davecgh/go-spew*","github.com/google/gofuzz*","github.com/stretchr/testify*"] + +[[constraint]] + name = "github.com/modern-go/reflect2" + version = "1.0.1" diff --git a/vendor/github.com/json-iterator/go/LICENSE b/vendor/github.com/json-iterator/go/LICENSE new file mode 100644 index 0000000..2cf4f5a --- /dev/null +++ b/vendor/github.com/json-iterator/go/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2016 json-iterator + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vendor/github.com/json-iterator/go/README.md b/vendor/github.com/json-iterator/go/README.md new file mode 100644 index 0000000..54d5afe --- /dev/null +++ b/vendor/github.com/json-iterator/go/README.md @@ -0,0 +1,91 @@ +[![Sourcegraph](https://sourcegraph.com/github.com/json-iterator/go/-/badge.svg)](https://sourcegraph.com/github.com/json-iterator/go?badge) +[![GoDoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](http://godoc.org/github.com/json-iterator/go) +[![Build Status](https://travis-ci.org/json-iterator/go.svg?branch=master)](https://travis-ci.org/json-iterator/go) +[![codecov](https://codecov.io/gh/json-iterator/go/branch/master/graph/badge.svg)](https://codecov.io/gh/json-iterator/go) +[![rcard](https://goreportcard.com/badge/github.com/json-iterator/go)](https://goreportcard.com/report/github.com/json-iterator/go) +[![License](http://img.shields.io/badge/license-mit-blue.svg?style=flat-square)](https://raw.githubusercontent.com/json-iterator/go/master/LICENSE) +[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/json-iterator/Lobby) + +A high-performance 100% compatible drop-in replacement of "encoding/json" + +You can also use thrift like JSON using [thrift-iterator](https://github.com/thrift-iterator/go) + +``` +Go开发者们请加入我们,滴滴出行平台技术部 taowen@didichuxing.com +``` + +# Benchmark + +![benchmark](http://jsoniter.com/benchmarks/go-benchmark.png) + +Source code: https://github.com/json-iterator/go-benchmark/blob/master/src/github.com/json-iterator/go-benchmark/benchmark_medium_payload_test.go + +Raw Result (easyjson requires static code generation) + +| | ns/op | allocation bytes | allocation times | +| --- | --- | --- | --- | +| std decode | 35510 ns/op | 1960 B/op | 99 allocs/op | +| easyjson decode | 8499 ns/op | 160 B/op | 4 allocs/op | +| jsoniter decode | 5623 ns/op | 160 B/op | 3 allocs/op | +| std encode | 2213 ns/op | 712 B/op | 5 allocs/op | +| easyjson encode | 883 ns/op | 576 B/op | 3 allocs/op | +| jsoniter encode | 837 ns/op | 384 B/op | 4 allocs/op | + +Always benchmark with your own workload. +The result depends heavily on the data input. + +# Usage + +100% compatibility with standard lib + +Replace + +```go +import "encoding/json" +json.Marshal(&data) +``` + +with + +```go +import "github.com/json-iterator/go" + +var json = jsoniter.ConfigCompatibleWithStandardLibrary +json.Marshal(&data) +``` + +Replace + +```go +import "encoding/json" +json.Unmarshal(input, &data) +``` + +with + +```go +import "github.com/json-iterator/go" + +var json = jsoniter.ConfigCompatibleWithStandardLibrary +json.Unmarshal(input, &data) +``` + +[More documentation](http://jsoniter.com/migrate-from-go-std.html) + +# How to get + +``` +go get github.com/json-iterator/go +``` + +# Contribution Welcomed ! + +Contributors + +* [thockin](https://github.com/thockin) +* [mattn](https://github.com/mattn) +* [cch123](https://github.com/cch123) +* [Oleg Shaldybin](https://github.com/olegshaldybin) +* [Jason Toffaletti](https://github.com/toffaletti) + +Report issue or pull request, or email taowen@gmail.com, or [![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/json-iterator/Lobby) diff --git a/vendor/github.com/json-iterator/go/adapter.go b/vendor/github.com/json-iterator/go/adapter.go new file mode 100644 index 0000000..f68b2db --- /dev/null +++ b/vendor/github.com/json-iterator/go/adapter.go @@ -0,0 +1,148 @@ +package jsoniter + +import ( + "bytes" + "io" +) + +// RawMessage to make replace json with jsoniter +type RawMessage []byte + +// Unmarshal adapts to json/encoding Unmarshal API +// +// Unmarshal parses the JSON-encoded data and stores the result in the value pointed to by v. +// Refer to https://godoc.org/encoding/json#Unmarshal for more information +func Unmarshal(data []byte, v interface{}) error { + return ConfigDefault.Unmarshal(data, v) +} + +// UnmarshalFromString convenient method to read from string instead of []byte +func UnmarshalFromString(str string, v interface{}) error { + return ConfigDefault.UnmarshalFromString(str, v) +} + +// Get quick method to get value from deeply nested JSON structure +func Get(data []byte, path ...interface{}) Any { + return ConfigDefault.Get(data, path...) +} + +// Marshal adapts to json/encoding Marshal API +// +// Marshal returns the JSON encoding of v, adapts to json/encoding Marshal API +// Refer to https://godoc.org/encoding/json#Marshal for more information +func Marshal(v interface{}) ([]byte, error) { + return ConfigDefault.Marshal(v) +} + +// MarshalIndent same as json.MarshalIndent. Prefix is not supported. +func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error) { + return ConfigDefault.MarshalIndent(v, prefix, indent) +} + +// MarshalToString convenient method to write as string instead of []byte +func MarshalToString(v interface{}) (string, error) { + return ConfigDefault.MarshalToString(v) +} + +// NewDecoder adapts to json/stream NewDecoder API. +// +// NewDecoder returns a new decoder that reads from r. +// +// Instead of a json/encoding Decoder, an Decoder is returned +// Refer to https://godoc.org/encoding/json#NewDecoder for more information +func NewDecoder(reader io.Reader) *Decoder { + return ConfigDefault.NewDecoder(reader) +} + +// Decoder reads and decodes JSON values from an input stream. +// Decoder provides identical APIs with json/stream Decoder (Token() and UseNumber() are in progress) +type Decoder struct { + iter *Iterator +} + +// Decode decode JSON into interface{} +func (adapter *Decoder) Decode(obj interface{}) error { + if adapter.iter.head == adapter.iter.tail && adapter.iter.reader != nil { + if !adapter.iter.loadMore() { + return io.EOF + } + } + adapter.iter.ReadVal(obj) + err := adapter.iter.Error + if err == io.EOF { + return nil + } + return adapter.iter.Error +} + +// More is there more? +func (adapter *Decoder) More() bool { + iter := adapter.iter + if iter.Error != nil { + return false + } + if iter.head != iter.tail { + return true + } + return iter.loadMore() +} + +// Buffered remaining buffer +func (adapter *Decoder) Buffered() io.Reader { + remaining := adapter.iter.buf[adapter.iter.head:adapter.iter.tail] + return bytes.NewReader(remaining) +} + +// UseNumber causes the Decoder to unmarshal a number into an interface{} as a +// Number instead of as a float64. +func (adapter *Decoder) UseNumber() { + cfg := adapter.iter.cfg.configBeforeFrozen + cfg.UseNumber = true + adapter.iter.cfg = cfg.frozeWithCacheReuse(adapter.iter.cfg.extraExtensions) +} + +// DisallowUnknownFields causes the Decoder to return an error when the destination +// is a struct and the input contains object keys which do not match any +// non-ignored, exported fields in the destination. +func (adapter *Decoder) DisallowUnknownFields() { + cfg := adapter.iter.cfg.configBeforeFrozen + cfg.DisallowUnknownFields = true + adapter.iter.cfg = cfg.frozeWithCacheReuse(adapter.iter.cfg.extraExtensions) +} + +// NewEncoder same as json.NewEncoder +func NewEncoder(writer io.Writer) *Encoder { + return ConfigDefault.NewEncoder(writer) +} + +// Encoder same as json.Encoder +type Encoder struct { + stream *Stream +} + +// Encode encode interface{} as JSON to io.Writer +func (adapter *Encoder) Encode(val interface{}) error { + adapter.stream.WriteVal(val) + adapter.stream.WriteRaw("\n") + adapter.stream.Flush() + return adapter.stream.Error +} + +// SetIndent set the indention. Prefix is not supported +func (adapter *Encoder) SetIndent(prefix, indent string) { + config := adapter.stream.cfg.configBeforeFrozen + config.IndentionStep = len(indent) + adapter.stream.cfg = config.frozeWithCacheReuse(adapter.stream.cfg.extraExtensions) +} + +// SetEscapeHTML escape html by default, set to false to disable +func (adapter *Encoder) SetEscapeHTML(escapeHTML bool) { + config := adapter.stream.cfg.configBeforeFrozen + config.EscapeHTML = escapeHTML + adapter.stream.cfg = config.frozeWithCacheReuse(adapter.stream.cfg.extraExtensions) +} + +// Valid reports whether data is a valid JSON encoding. +func Valid(data []byte) bool { + return ConfigDefault.Valid(data) +} diff --git a/vendor/github.com/json-iterator/go/any.go b/vendor/github.com/json-iterator/go/any.go new file mode 100644 index 0000000..daecfed --- /dev/null +++ b/vendor/github.com/json-iterator/go/any.go @@ -0,0 +1,321 @@ +package jsoniter + +import ( + "errors" + "fmt" + "github.com/modern-go/reflect2" + "io" + "reflect" + "strconv" + "unsafe" +) + +// Any generic object representation. +// The lazy json implementation holds []byte and parse lazily. +type Any interface { + LastError() error + ValueType() ValueType + MustBeValid() Any + ToBool() bool + ToInt() int + ToInt32() int32 + ToInt64() int64 + ToUint() uint + ToUint32() uint32 + ToUint64() uint64 + ToFloat32() float32 + ToFloat64() float64 + ToString() string + ToVal(val interface{}) + Get(path ...interface{}) Any + Size() int + Keys() []string + GetInterface() interface{} + WriteTo(stream *Stream) +} + +type baseAny struct{} + +func (any *baseAny) Get(path ...interface{}) Any { + return &invalidAny{baseAny{}, fmt.Errorf("GetIndex %v from simple value", path)} +} + +func (any *baseAny) Size() int { + return 0 +} + +func (any *baseAny) Keys() []string { + return []string{} +} + +func (any *baseAny) ToVal(obj interface{}) { + panic("not implemented") +} + +// WrapInt32 turn int32 into Any interface +func WrapInt32(val int32) Any { + return &int32Any{baseAny{}, val} +} + +// WrapInt64 turn int64 into Any interface +func WrapInt64(val int64) Any { + return &int64Any{baseAny{}, val} +} + +// WrapUint32 turn uint32 into Any interface +func WrapUint32(val uint32) Any { + return &uint32Any{baseAny{}, val} +} + +// WrapUint64 turn uint64 into Any interface +func WrapUint64(val uint64) Any { + return &uint64Any{baseAny{}, val} +} + +// WrapFloat64 turn float64 into Any interface +func WrapFloat64(val float64) Any { + return &floatAny{baseAny{}, val} +} + +// WrapString turn string into Any interface +func WrapString(val string) Any { + return &stringAny{baseAny{}, val} +} + +// Wrap turn a go object into Any interface +func Wrap(val interface{}) Any { + if val == nil { + return &nilAny{} + } + asAny, isAny := val.(Any) + if isAny { + return asAny + } + typ := reflect2.TypeOf(val) + switch typ.Kind() { + case reflect.Slice: + return wrapArray(val) + case reflect.Struct: + return wrapStruct(val) + case reflect.Map: + return wrapMap(val) + case reflect.String: + return WrapString(val.(string)) + case reflect.Int: + if strconv.IntSize == 32 { + return WrapInt32(int32(val.(int))) + } + return WrapInt64(int64(val.(int))) + case reflect.Int8: + return WrapInt32(int32(val.(int8))) + case reflect.Int16: + return WrapInt32(int32(val.(int16))) + case reflect.Int32: + return WrapInt32(val.(int32)) + case reflect.Int64: + return WrapInt64(val.(int64)) + case reflect.Uint: + if strconv.IntSize == 32 { + return WrapUint32(uint32(val.(uint))) + } + return WrapUint64(uint64(val.(uint))) + case reflect.Uintptr: + if ptrSize == 32 { + return WrapUint32(uint32(val.(uintptr))) + } + return WrapUint64(uint64(val.(uintptr))) + case reflect.Uint8: + return WrapUint32(uint32(val.(uint8))) + case reflect.Uint16: + return WrapUint32(uint32(val.(uint16))) + case reflect.Uint32: + return WrapUint32(uint32(val.(uint32))) + case reflect.Uint64: + return WrapUint64(val.(uint64)) + case reflect.Float32: + return WrapFloat64(float64(val.(float32))) + case reflect.Float64: + return WrapFloat64(val.(float64)) + case reflect.Bool: + if val.(bool) == true { + return &trueAny{} + } + return &falseAny{} + } + return &invalidAny{baseAny{}, fmt.Errorf("unsupported type: %v", typ)} +} + +// ReadAny read next JSON element as an Any object. It is a better json.RawMessage. +func (iter *Iterator) ReadAny() Any { + return iter.readAny() +} + +func (iter *Iterator) readAny() Any { + c := iter.nextToken() + switch c { + case '"': + iter.unreadByte() + return &stringAny{baseAny{}, iter.ReadString()} + case 'n': + iter.skipThreeBytes('u', 'l', 'l') // null + return &nilAny{} + case 't': + iter.skipThreeBytes('r', 'u', 'e') // true + return &trueAny{} + case 'f': + iter.skipFourBytes('a', 'l', 's', 'e') // false + return &falseAny{} + case '{': + return iter.readObjectAny() + case '[': + return iter.readArrayAny() + case '-': + return iter.readNumberAny(false) + case 0: + return &invalidAny{baseAny{}, errors.New("input is empty")} + default: + return iter.readNumberAny(true) + } +} + +func (iter *Iterator) readNumberAny(positive bool) Any { + iter.startCapture(iter.head - 1) + iter.skipNumber() + lazyBuf := iter.stopCapture() + return &numberLazyAny{baseAny{}, iter.cfg, lazyBuf, nil} +} + +func (iter *Iterator) readObjectAny() Any { + iter.startCapture(iter.head - 1) + iter.skipObject() + lazyBuf := iter.stopCapture() + return &objectLazyAny{baseAny{}, iter.cfg, lazyBuf, nil} +} + +func (iter *Iterator) readArrayAny() Any { + iter.startCapture(iter.head - 1) + iter.skipArray() + lazyBuf := iter.stopCapture() + return &arrayLazyAny{baseAny{}, iter.cfg, lazyBuf, nil} +} + +func locateObjectField(iter *Iterator, target string) []byte { + var found []byte + iter.ReadObjectCB(func(iter *Iterator, field string) bool { + if field == target { + found = iter.SkipAndReturnBytes() + return false + } + iter.Skip() + return true + }) + return found +} + +func locateArrayElement(iter *Iterator, target int) []byte { + var found []byte + n := 0 + iter.ReadArrayCB(func(iter *Iterator) bool { + if n == target { + found = iter.SkipAndReturnBytes() + return false + } + iter.Skip() + n++ + return true + }) + return found +} + +func locatePath(iter *Iterator, path []interface{}) Any { + for i, pathKeyObj := range path { + switch pathKey := pathKeyObj.(type) { + case string: + valueBytes := locateObjectField(iter, pathKey) + if valueBytes == nil { + return newInvalidAny(path[i:]) + } + iter.ResetBytes(valueBytes) + case int: + valueBytes := locateArrayElement(iter, pathKey) + if valueBytes == nil { + return newInvalidAny(path[i:]) + } + iter.ResetBytes(valueBytes) + case int32: + if '*' == pathKey { + return iter.readAny().Get(path[i:]...) + } + return newInvalidAny(path[i:]) + default: + return newInvalidAny(path[i:]) + } + } + if iter.Error != nil && iter.Error != io.EOF { + return &invalidAny{baseAny{}, iter.Error} + } + return iter.readAny() +} + +var anyType = reflect2.TypeOfPtr((*Any)(nil)).Elem() + +func createDecoderOfAny(ctx *ctx, typ reflect2.Type) ValDecoder { + if typ == anyType { + return &directAnyCodec{} + } + if typ.Implements(anyType) { + return &anyCodec{ + valType: typ, + } + } + return nil +} + +func createEncoderOfAny(ctx *ctx, typ reflect2.Type) ValEncoder { + if typ == anyType { + return &directAnyCodec{} + } + if typ.Implements(anyType) { + return &anyCodec{ + valType: typ, + } + } + return nil +} + +type anyCodec struct { + valType reflect2.Type +} + +func (codec *anyCodec) Decode(ptr unsafe.Pointer, iter *Iterator) { + panic("not implemented") +} + +func (codec *anyCodec) Encode(ptr unsafe.Pointer, stream *Stream) { + obj := codec.valType.UnsafeIndirect(ptr) + any := obj.(Any) + any.WriteTo(stream) +} + +func (codec *anyCodec) IsEmpty(ptr unsafe.Pointer) bool { + obj := codec.valType.UnsafeIndirect(ptr) + any := obj.(Any) + return any.Size() == 0 +} + +type directAnyCodec struct { +} + +func (codec *directAnyCodec) Decode(ptr unsafe.Pointer, iter *Iterator) { + *(*Any)(ptr) = iter.readAny() +} + +func (codec *directAnyCodec) Encode(ptr unsafe.Pointer, stream *Stream) { + any := *(*Any)(ptr) + any.WriteTo(stream) +} + +func (codec *directAnyCodec) IsEmpty(ptr unsafe.Pointer) bool { + any := *(*Any)(ptr) + return any.Size() == 0 +} diff --git a/vendor/github.com/json-iterator/go/any_array.go b/vendor/github.com/json-iterator/go/any_array.go new file mode 100644 index 0000000..0449e9a --- /dev/null +++ b/vendor/github.com/json-iterator/go/any_array.go @@ -0,0 +1,278 @@ +package jsoniter + +import ( + "reflect" + "unsafe" +) + +type arrayLazyAny struct { + baseAny + cfg *frozenConfig + buf []byte + err error +} + +func (any *arrayLazyAny) ValueType() ValueType { + return ArrayValue +} + +func (any *arrayLazyAny) MustBeValid() Any { + return any +} + +func (any *arrayLazyAny) LastError() error { + return any.err +} + +func (any *arrayLazyAny) ToBool() bool { + iter := any.cfg.BorrowIterator(any.buf) + defer any.cfg.ReturnIterator(iter) + return iter.ReadArray() +} + +func (any *arrayLazyAny) ToInt() int { + if any.ToBool() { + return 1 + } + return 0 +} + +func (any *arrayLazyAny) ToInt32() int32 { + if any.ToBool() { + return 1 + } + return 0 +} + +func (any *arrayLazyAny) ToInt64() int64 { + if any.ToBool() { + return 1 + } + return 0 +} + +func (any *arrayLazyAny) ToUint() uint { + if any.ToBool() { + return 1 + } + return 0 +} + +func (any *arrayLazyAny) ToUint32() uint32 { + if any.ToBool() { + return 1 + } + return 0 +} + +func (any *arrayLazyAny) ToUint64() uint64 { + if any.ToBool() { + return 1 + } + return 0 +} + +func (any *arrayLazyAny) ToFloat32() float32 { + if any.ToBool() { + return 1 + } + return 0 +} + +func (any *arrayLazyAny) ToFloat64() float64 { + if any.ToBool() { + return 1 + } + return 0 +} + +func (any *arrayLazyAny) ToString() string { + return *(*string)(unsafe.Pointer(&any.buf)) +} + +func (any *arrayLazyAny) ToVal(val interface{}) { + iter := any.cfg.BorrowIterator(any.buf) + defer any.cfg.ReturnIterator(iter) + iter.ReadVal(val) +} + +func (any *arrayLazyAny) Get(path ...interface{}) Any { + if len(path) == 0 { + return any + } + switch firstPath := path[0].(type) { + case int: + iter := any.cfg.BorrowIterator(any.buf) + defer any.cfg.ReturnIterator(iter) + valueBytes := locateArrayElement(iter, firstPath) + if valueBytes == nil { + return newInvalidAny(path) + } + iter.ResetBytes(valueBytes) + return locatePath(iter, path[1:]) + case int32: + if '*' == firstPath { + iter := any.cfg.BorrowIterator(any.buf) + defer any.cfg.ReturnIterator(iter) + arr := make([]Any, 0) + iter.ReadArrayCB(func(iter *Iterator) bool { + found := iter.readAny().Get(path[1:]...) + if found.ValueType() != InvalidValue { + arr = append(arr, found) + } + return true + }) + return wrapArray(arr) + } + return newInvalidAny(path) + default: + return newInvalidAny(path) + } +} + +func (any *arrayLazyAny) Size() int { + size := 0 + iter := any.cfg.BorrowIterator(any.buf) + defer any.cfg.ReturnIterator(iter) + iter.ReadArrayCB(func(iter *Iterator) bool { + size++ + iter.Skip() + return true + }) + return size +} + +func (any *arrayLazyAny) WriteTo(stream *Stream) { + stream.Write(any.buf) +} + +func (any *arrayLazyAny) GetInterface() interface{} { + iter := any.cfg.BorrowIterator(any.buf) + defer any.cfg.ReturnIterator(iter) + return iter.Read() +} + +type arrayAny struct { + baseAny + val reflect.Value +} + +func wrapArray(val interface{}) *arrayAny { + return &arrayAny{baseAny{}, reflect.ValueOf(val)} +} + +func (any *arrayAny) ValueType() ValueType { + return ArrayValue +} + +func (any *arrayAny) MustBeValid() Any { + return any +} + +func (any *arrayAny) LastError() error { + return nil +} + +func (any *arrayAny) ToBool() bool { + return any.val.Len() != 0 +} + +func (any *arrayAny) ToInt() int { + if any.val.Len() == 0 { + return 0 + } + return 1 +} + +func (any *arrayAny) ToInt32() int32 { + if any.val.Len() == 0 { + return 0 + } + return 1 +} + +func (any *arrayAny) ToInt64() int64 { + if any.val.Len() == 0 { + return 0 + } + return 1 +} + +func (any *arrayAny) ToUint() uint { + if any.val.Len() == 0 { + return 0 + } + return 1 +} + +func (any *arrayAny) ToUint32() uint32 { + if any.val.Len() == 0 { + return 0 + } + return 1 +} + +func (any *arrayAny) ToUint64() uint64 { + if any.val.Len() == 0 { + return 0 + } + return 1 +} + +func (any *arrayAny) ToFloat32() float32 { + if any.val.Len() == 0 { + return 0 + } + return 1 +} + +func (any *arrayAny) ToFloat64() float64 { + if any.val.Len() == 0 { + return 0 + } + return 1 +} + +func (any *arrayAny) ToString() string { + str, _ := MarshalToString(any.val.Interface()) + return str +} + +func (any *arrayAny) Get(path ...interface{}) Any { + if len(path) == 0 { + return any + } + switch firstPath := path[0].(type) { + case int: + if firstPath < 0 || firstPath >= any.val.Len() { + return newInvalidAny(path) + } + return Wrap(any.val.Index(firstPath).Interface()) + case int32: + if '*' == firstPath { + mappedAll := make([]Any, 0) + for i := 0; i < any.val.Len(); i++ { + mapped := Wrap(any.val.Index(i).Interface()).Get(path[1:]...) + if mapped.ValueType() != InvalidValue { + mappedAll = append(mappedAll, mapped) + } + } + return wrapArray(mappedAll) + } + return newInvalidAny(path) + default: + return newInvalidAny(path) + } +} + +func (any *arrayAny) Size() int { + return any.val.Len() +} + +func (any *arrayAny) WriteTo(stream *Stream) { + stream.WriteVal(any.val) +} + +func (any *arrayAny) GetInterface() interface{} { + return any.val.Interface() +} diff --git a/vendor/github.com/json-iterator/go/any_bool.go b/vendor/github.com/json-iterator/go/any_bool.go new file mode 100644 index 0000000..9452324 --- /dev/null +++ b/vendor/github.com/json-iterator/go/any_bool.go @@ -0,0 +1,137 @@ +package jsoniter + +type trueAny struct { + baseAny +} + +func (any *trueAny) LastError() error { + return nil +} + +func (any *trueAny) ToBool() bool { + return true +} + +func (any *trueAny) ToInt() int { + return 1 +} + +func (any *trueAny) ToInt32() int32 { + return 1 +} + +func (any *trueAny) ToInt64() int64 { + return 1 +} + +func (any *trueAny) ToUint() uint { + return 1 +} + +func (any *trueAny) ToUint32() uint32 { + return 1 +} + +func (any *trueAny) ToUint64() uint64 { + return 1 +} + +func (any *trueAny) ToFloat32() float32 { + return 1 +} + +func (any *trueAny) ToFloat64() float64 { + return 1 +} + +func (any *trueAny) ToString() string { + return "true" +} + +func (any *trueAny) WriteTo(stream *Stream) { + stream.WriteTrue() +} + +func (any *trueAny) Parse() *Iterator { + return nil +} + +func (any *trueAny) GetInterface() interface{} { + return true +} + +func (any *trueAny) ValueType() ValueType { + return BoolValue +} + +func (any *trueAny) MustBeValid() Any { + return any +} + +type falseAny struct { + baseAny +} + +func (any *falseAny) LastError() error { + return nil +} + +func (any *falseAny) ToBool() bool { + return false +} + +func (any *falseAny) ToInt() int { + return 0 +} + +func (any *falseAny) ToInt32() int32 { + return 0 +} + +func (any *falseAny) ToInt64() int64 { + return 0 +} + +func (any *falseAny) ToUint() uint { + return 0 +} + +func (any *falseAny) ToUint32() uint32 { + return 0 +} + +func (any *falseAny) ToUint64() uint64 { + return 0 +} + +func (any *falseAny) ToFloat32() float32 { + return 0 +} + +func (any *falseAny) ToFloat64() float64 { + return 0 +} + +func (any *falseAny) ToString() string { + return "false" +} + +func (any *falseAny) WriteTo(stream *Stream) { + stream.WriteFalse() +} + +func (any *falseAny) Parse() *Iterator { + return nil +} + +func (any *falseAny) GetInterface() interface{} { + return false +} + +func (any *falseAny) ValueType() ValueType { + return BoolValue +} + +func (any *falseAny) MustBeValid() Any { + return any +} diff --git a/vendor/github.com/json-iterator/go/any_float.go b/vendor/github.com/json-iterator/go/any_float.go new file mode 100644 index 0000000..35fdb09 --- /dev/null +++ b/vendor/github.com/json-iterator/go/any_float.go @@ -0,0 +1,83 @@ +package jsoniter + +import ( + "strconv" +) + +type floatAny struct { + baseAny + val float64 +} + +func (any *floatAny) Parse() *Iterator { + return nil +} + +func (any *floatAny) ValueType() ValueType { + return NumberValue +} + +func (any *floatAny) MustBeValid() Any { + return any +} + +func (any *floatAny) LastError() error { + return nil +} + +func (any *floatAny) ToBool() bool { + return any.ToFloat64() != 0 +} + +func (any *floatAny) ToInt() int { + return int(any.val) +} + +func (any *floatAny) ToInt32() int32 { + return int32(any.val) +} + +func (any *floatAny) ToInt64() int64 { + return int64(any.val) +} + +func (any *floatAny) ToUint() uint { + if any.val > 0 { + return uint(any.val) + } + return 0 +} + +func (any *floatAny) ToUint32() uint32 { + if any.val > 0 { + return uint32(any.val) + } + return 0 +} + +func (any *floatAny) ToUint64() uint64 { + if any.val > 0 { + return uint64(any.val) + } + return 0 +} + +func (any *floatAny) ToFloat32() float32 { + return float32(any.val) +} + +func (any *floatAny) ToFloat64() float64 { + return any.val +} + +func (any *floatAny) ToString() string { + return strconv.FormatFloat(any.val, 'E', -1, 64) +} + +func (any *floatAny) WriteTo(stream *Stream) { + stream.WriteFloat64(any.val) +} + +func (any *floatAny) GetInterface() interface{} { + return any.val +} diff --git a/vendor/github.com/json-iterator/go/any_int32.go b/vendor/github.com/json-iterator/go/any_int32.go new file mode 100644 index 0000000..1b56f39 --- /dev/null +++ b/vendor/github.com/json-iterator/go/any_int32.go @@ -0,0 +1,74 @@ +package jsoniter + +import ( + "strconv" +) + +type int32Any struct { + baseAny + val int32 +} + +func (any *int32Any) LastError() error { + return nil +} + +func (any *int32Any) ValueType() ValueType { + return NumberValue +} + +func (any *int32Any) MustBeValid() Any { + return any +} + +func (any *int32Any) ToBool() bool { + return any.val != 0 +} + +func (any *int32Any) ToInt() int { + return int(any.val) +} + +func (any *int32Any) ToInt32() int32 { + return any.val +} + +func (any *int32Any) ToInt64() int64 { + return int64(any.val) +} + +func (any *int32Any) ToUint() uint { + return uint(any.val) +} + +func (any *int32Any) ToUint32() uint32 { + return uint32(any.val) +} + +func (any *int32Any) ToUint64() uint64 { + return uint64(any.val) +} + +func (any *int32Any) ToFloat32() float32 { + return float32(any.val) +} + +func (any *int32Any) ToFloat64() float64 { + return float64(any.val) +} + +func (any *int32Any) ToString() string { + return strconv.FormatInt(int64(any.val), 10) +} + +func (any *int32Any) WriteTo(stream *Stream) { + stream.WriteInt32(any.val) +} + +func (any *int32Any) Parse() *Iterator { + return nil +} + +func (any *int32Any) GetInterface() interface{} { + return any.val +} diff --git a/vendor/github.com/json-iterator/go/any_int64.go b/vendor/github.com/json-iterator/go/any_int64.go new file mode 100644 index 0000000..c440d72 --- /dev/null +++ b/vendor/github.com/json-iterator/go/any_int64.go @@ -0,0 +1,74 @@ +package jsoniter + +import ( + "strconv" +) + +type int64Any struct { + baseAny + val int64 +} + +func (any *int64Any) LastError() error { + return nil +} + +func (any *int64Any) ValueType() ValueType { + return NumberValue +} + +func (any *int64Any) MustBeValid() Any { + return any +} + +func (any *int64Any) ToBool() bool { + return any.val != 0 +} + +func (any *int64Any) ToInt() int { + return int(any.val) +} + +func (any *int64Any) ToInt32() int32 { + return int32(any.val) +} + +func (any *int64Any) ToInt64() int64 { + return any.val +} + +func (any *int64Any) ToUint() uint { + return uint(any.val) +} + +func (any *int64Any) ToUint32() uint32 { + return uint32(any.val) +} + +func (any *int64Any) ToUint64() uint64 { + return uint64(any.val) +} + +func (any *int64Any) ToFloat32() float32 { + return float32(any.val) +} + +func (any *int64Any) ToFloat64() float64 { + return float64(any.val) +} + +func (any *int64Any) ToString() string { + return strconv.FormatInt(any.val, 10) +} + +func (any *int64Any) WriteTo(stream *Stream) { + stream.WriteInt64(any.val) +} + +func (any *int64Any) Parse() *Iterator { + return nil +} + +func (any *int64Any) GetInterface() interface{} { + return any.val +} diff --git a/vendor/github.com/json-iterator/go/any_invalid.go b/vendor/github.com/json-iterator/go/any_invalid.go new file mode 100644 index 0000000..1d859ea --- /dev/null +++ b/vendor/github.com/json-iterator/go/any_invalid.go @@ -0,0 +1,82 @@ +package jsoniter + +import "fmt" + +type invalidAny struct { + baseAny + err error +} + +func newInvalidAny(path []interface{}) *invalidAny { + return &invalidAny{baseAny{}, fmt.Errorf("%v not found", path)} +} + +func (any *invalidAny) LastError() error { + return any.err +} + +func (any *invalidAny) ValueType() ValueType { + return InvalidValue +} + +func (any *invalidAny) MustBeValid() Any { + panic(any.err) +} + +func (any *invalidAny) ToBool() bool { + return false +} + +func (any *invalidAny) ToInt() int { + return 0 +} + +func (any *invalidAny) ToInt32() int32 { + return 0 +} + +func (any *invalidAny) ToInt64() int64 { + return 0 +} + +func (any *invalidAny) ToUint() uint { + return 0 +} + +func (any *invalidAny) ToUint32() uint32 { + return 0 +} + +func (any *invalidAny) ToUint64() uint64 { + return 0 +} + +func (any *invalidAny) ToFloat32() float32 { + return 0 +} + +func (any *invalidAny) ToFloat64() float64 { + return 0 +} + +func (any *invalidAny) ToString() string { + return "" +} + +func (any *invalidAny) WriteTo(stream *Stream) { +} + +func (any *invalidAny) Get(path ...interface{}) Any { + if any.err == nil { + return &invalidAny{baseAny{}, fmt.Errorf("get %v from invalid", path)} + } + return &invalidAny{baseAny{}, fmt.Errorf("%v, get %v from invalid", any.err, path)} +} + +func (any *invalidAny) Parse() *Iterator { + return nil +} + +func (any *invalidAny) GetInterface() interface{} { + return nil +} diff --git a/vendor/github.com/json-iterator/go/any_nil.go b/vendor/github.com/json-iterator/go/any_nil.go new file mode 100644 index 0000000..d04cb54 --- /dev/null +++ b/vendor/github.com/json-iterator/go/any_nil.go @@ -0,0 +1,69 @@ +package jsoniter + +type nilAny struct { + baseAny +} + +func (any *nilAny) LastError() error { + return nil +} + +func (any *nilAny) ValueType() ValueType { + return NilValue +} + +func (any *nilAny) MustBeValid() Any { + return any +} + +func (any *nilAny) ToBool() bool { + return false +} + +func (any *nilAny) ToInt() int { + return 0 +} + +func (any *nilAny) ToInt32() int32 { + return 0 +} + +func (any *nilAny) ToInt64() int64 { + return 0 +} + +func (any *nilAny) ToUint() uint { + return 0 +} + +func (any *nilAny) ToUint32() uint32 { + return 0 +} + +func (any *nilAny) ToUint64() uint64 { + return 0 +} + +func (any *nilAny) ToFloat32() float32 { + return 0 +} + +func (any *nilAny) ToFloat64() float64 { + return 0 +} + +func (any *nilAny) ToString() string { + return "" +} + +func (any *nilAny) WriteTo(stream *Stream) { + stream.WriteNil() +} + +func (any *nilAny) Parse() *Iterator { + return nil +} + +func (any *nilAny) GetInterface() interface{} { + return nil +} diff --git a/vendor/github.com/json-iterator/go/any_number.go b/vendor/github.com/json-iterator/go/any_number.go new file mode 100644 index 0000000..9d1e901 --- /dev/null +++ b/vendor/github.com/json-iterator/go/any_number.go @@ -0,0 +1,123 @@ +package jsoniter + +import ( + "io" + "unsafe" +) + +type numberLazyAny struct { + baseAny + cfg *frozenConfig + buf []byte + err error +} + +func (any *numberLazyAny) ValueType() ValueType { + return NumberValue +} + +func (any *numberLazyAny) MustBeValid() Any { + return any +} + +func (any *numberLazyAny) LastError() error { + return any.err +} + +func (any *numberLazyAny) ToBool() bool { + return any.ToFloat64() != 0 +} + +func (any *numberLazyAny) ToInt() int { + iter := any.cfg.BorrowIterator(any.buf) + defer any.cfg.ReturnIterator(iter) + val := iter.ReadInt() + if iter.Error != nil && iter.Error != io.EOF { + any.err = iter.Error + } + return val +} + +func (any *numberLazyAny) ToInt32() int32 { + iter := any.cfg.BorrowIterator(any.buf) + defer any.cfg.ReturnIterator(iter) + val := iter.ReadInt32() + if iter.Error != nil && iter.Error != io.EOF { + any.err = iter.Error + } + return val +} + +func (any *numberLazyAny) ToInt64() int64 { + iter := any.cfg.BorrowIterator(any.buf) + defer any.cfg.ReturnIterator(iter) + val := iter.ReadInt64() + if iter.Error != nil && iter.Error != io.EOF { + any.err = iter.Error + } + return val +} + +func (any *numberLazyAny) ToUint() uint { + iter := any.cfg.BorrowIterator(any.buf) + defer any.cfg.ReturnIterator(iter) + val := iter.ReadUint() + if iter.Error != nil && iter.Error != io.EOF { + any.err = iter.Error + } + return val +} + +func (any *numberLazyAny) ToUint32() uint32 { + iter := any.cfg.BorrowIterator(any.buf) + defer any.cfg.ReturnIterator(iter) + val := iter.ReadUint32() + if iter.Error != nil && iter.Error != io.EOF { + any.err = iter.Error + } + return val +} + +func (any *numberLazyAny) ToUint64() uint64 { + iter := any.cfg.BorrowIterator(any.buf) + defer any.cfg.ReturnIterator(iter) + val := iter.ReadUint64() + if iter.Error != nil && iter.Error != io.EOF { + any.err = iter.Error + } + return val +} + +func (any *numberLazyAny) ToFloat32() float32 { + iter := any.cfg.BorrowIterator(any.buf) + defer any.cfg.ReturnIterator(iter) + val := iter.ReadFloat32() + if iter.Error != nil && iter.Error != io.EOF { + any.err = iter.Error + } + return val +} + +func (any *numberLazyAny) ToFloat64() float64 { + iter := any.cfg.BorrowIterator(any.buf) + defer any.cfg.ReturnIterator(iter) + val := iter.ReadFloat64() + if iter.Error != nil && iter.Error != io.EOF { + any.err = iter.Error + } + return val +} + +func (any *numberLazyAny) ToString() string { + return *(*string)(unsafe.Pointer(&any.buf)) +} + +func (any *numberLazyAny) WriteTo(stream *Stream) { + stream.Write(any.buf) +} + +func (any *numberLazyAny) GetInterface() interface{} { + iter := any.cfg.BorrowIterator(any.buf) + defer any.cfg.ReturnIterator(iter) + return iter.Read() +} diff --git a/vendor/github.com/json-iterator/go/any_object.go b/vendor/github.com/json-iterator/go/any_object.go new file mode 100644 index 0000000..c44ef5c --- /dev/null +++ b/vendor/github.com/json-iterator/go/any_object.go @@ -0,0 +1,374 @@ +package jsoniter + +import ( + "reflect" + "unsafe" +) + +type objectLazyAny struct { + baseAny + cfg *frozenConfig + buf []byte + err error +} + +func (any *objectLazyAny) ValueType() ValueType { + return ObjectValue +} + +func (any *objectLazyAny) MustBeValid() Any { + return any +} + +func (any *objectLazyAny) LastError() error { + return any.err +} + +func (any *objectLazyAny) ToBool() bool { + return true +} + +func (any *objectLazyAny) ToInt() int { + return 0 +} + +func (any *objectLazyAny) ToInt32() int32 { + return 0 +} + +func (any *objectLazyAny) ToInt64() int64 { + return 0 +} + +func (any *objectLazyAny) ToUint() uint { + return 0 +} + +func (any *objectLazyAny) ToUint32() uint32 { + return 0 +} + +func (any *objectLazyAny) ToUint64() uint64 { + return 0 +} + +func (any *objectLazyAny) ToFloat32() float32 { + return 0 +} + +func (any *objectLazyAny) ToFloat64() float64 { + return 0 +} + +func (any *objectLazyAny) ToString() string { + return *(*string)(unsafe.Pointer(&any.buf)) +} + +func (any *objectLazyAny) ToVal(obj interface{}) { + iter := any.cfg.BorrowIterator(any.buf) + defer any.cfg.ReturnIterator(iter) + iter.ReadVal(obj) +} + +func (any *objectLazyAny) Get(path ...interface{}) Any { + if len(path) == 0 { + return any + } + switch firstPath := path[0].(type) { + case string: + iter := any.cfg.BorrowIterator(any.buf) + defer any.cfg.ReturnIterator(iter) + valueBytes := locateObjectField(iter, firstPath) + if valueBytes == nil { + return newInvalidAny(path) + } + iter.ResetBytes(valueBytes) + return locatePath(iter, path[1:]) + case int32: + if '*' == firstPath { + mappedAll := map[string]Any{} + iter := any.cfg.BorrowIterator(any.buf) + defer any.cfg.ReturnIterator(iter) + iter.ReadMapCB(func(iter *Iterator, field string) bool { + mapped := locatePath(iter, path[1:]) + if mapped.ValueType() != InvalidValue { + mappedAll[field] = mapped + } + return true + }) + return wrapMap(mappedAll) + } + return newInvalidAny(path) + default: + return newInvalidAny(path) + } +} + +func (any *objectLazyAny) Keys() []string { + keys := []string{} + iter := any.cfg.BorrowIterator(any.buf) + defer any.cfg.ReturnIterator(iter) + iter.ReadMapCB(func(iter *Iterator, field string) bool { + iter.Skip() + keys = append(keys, field) + return true + }) + return keys +} + +func (any *objectLazyAny) Size() int { + size := 0 + iter := any.cfg.BorrowIterator(any.buf) + defer any.cfg.ReturnIterator(iter) + iter.ReadObjectCB(func(iter *Iterator, field string) bool { + iter.Skip() + size++ + return true + }) + return size +} + +func (any *objectLazyAny) WriteTo(stream *Stream) { + stream.Write(any.buf) +} + +func (any *objectLazyAny) GetInterface() interface{} { + iter := any.cfg.BorrowIterator(any.buf) + defer any.cfg.ReturnIterator(iter) + return iter.Read() +} + +type objectAny struct { + baseAny + err error + val reflect.Value +} + +func wrapStruct(val interface{}) *objectAny { + return &objectAny{baseAny{}, nil, reflect.ValueOf(val)} +} + +func (any *objectAny) ValueType() ValueType { + return ObjectValue +} + +func (any *objectAny) MustBeValid() Any { + return any +} + +func (any *objectAny) Parse() *Iterator { + return nil +} + +func (any *objectAny) LastError() error { + return any.err +} + +func (any *objectAny) ToBool() bool { + return any.val.NumField() != 0 +} + +func (any *objectAny) ToInt() int { + return 0 +} + +func (any *objectAny) ToInt32() int32 { + return 0 +} + +func (any *objectAny) ToInt64() int64 { + return 0 +} + +func (any *objectAny) ToUint() uint { + return 0 +} + +func (any *objectAny) ToUint32() uint32 { + return 0 +} + +func (any *objectAny) ToUint64() uint64 { + return 0 +} + +func (any *objectAny) ToFloat32() float32 { + return 0 +} + +func (any *objectAny) ToFloat64() float64 { + return 0 +} + +func (any *objectAny) ToString() string { + str, err := MarshalToString(any.val.Interface()) + any.err = err + return str +} + +func (any *objectAny) Get(path ...interface{}) Any { + if len(path) == 0 { + return any + } + switch firstPath := path[0].(type) { + case string: + field := any.val.FieldByName(firstPath) + if !field.IsValid() { + return newInvalidAny(path) + } + return Wrap(field.Interface()) + case int32: + if '*' == firstPath { + mappedAll := map[string]Any{} + for i := 0; i < any.val.NumField(); i++ { + field := any.val.Field(i) + if field.CanInterface() { + mapped := Wrap(field.Interface()).Get(path[1:]...) + if mapped.ValueType() != InvalidValue { + mappedAll[any.val.Type().Field(i).Name] = mapped + } + } + } + return wrapMap(mappedAll) + } + return newInvalidAny(path) + default: + return newInvalidAny(path) + } +} + +func (any *objectAny) Keys() []string { + keys := make([]string, 0, any.val.NumField()) + for i := 0; i < any.val.NumField(); i++ { + keys = append(keys, any.val.Type().Field(i).Name) + } + return keys +} + +func (any *objectAny) Size() int { + return any.val.NumField() +} + +func (any *objectAny) WriteTo(stream *Stream) { + stream.WriteVal(any.val) +} + +func (any *objectAny) GetInterface() interface{} { + return any.val.Interface() +} + +type mapAny struct { + baseAny + err error + val reflect.Value +} + +func wrapMap(val interface{}) *mapAny { + return &mapAny{baseAny{}, nil, reflect.ValueOf(val)} +} + +func (any *mapAny) ValueType() ValueType { + return ObjectValue +} + +func (any *mapAny) MustBeValid() Any { + return any +} + +func (any *mapAny) Parse() *Iterator { + return nil +} + +func (any *mapAny) LastError() error { + return any.err +} + +func (any *mapAny) ToBool() bool { + return true +} + +func (any *mapAny) ToInt() int { + return 0 +} + +func (any *mapAny) ToInt32() int32 { + return 0 +} + +func (any *mapAny) ToInt64() int64 { + return 0 +} + +func (any *mapAny) ToUint() uint { + return 0 +} + +func (any *mapAny) ToUint32() uint32 { + return 0 +} + +func (any *mapAny) ToUint64() uint64 { + return 0 +} + +func (any *mapAny) ToFloat32() float32 { + return 0 +} + +func (any *mapAny) ToFloat64() float64 { + return 0 +} + +func (any *mapAny) ToString() string { + str, err := MarshalToString(any.val.Interface()) + any.err = err + return str +} + +func (any *mapAny) Get(path ...interface{}) Any { + if len(path) == 0 { + return any + } + switch firstPath := path[0].(type) { + case int32: + if '*' == firstPath { + mappedAll := map[string]Any{} + for _, key := range any.val.MapKeys() { + keyAsStr := key.String() + element := Wrap(any.val.MapIndex(key).Interface()) + mapped := element.Get(path[1:]...) + if mapped.ValueType() != InvalidValue { + mappedAll[keyAsStr] = mapped + } + } + return wrapMap(mappedAll) + } + return newInvalidAny(path) + default: + value := any.val.MapIndex(reflect.ValueOf(firstPath)) + if !value.IsValid() { + return newInvalidAny(path) + } + return Wrap(value.Interface()) + } +} + +func (any *mapAny) Keys() []string { + keys := make([]string, 0, any.val.Len()) + for _, key := range any.val.MapKeys() { + keys = append(keys, key.String()) + } + return keys +} + +func (any *mapAny) Size() int { + return any.val.Len() +} + +func (any *mapAny) WriteTo(stream *Stream) { + stream.WriteVal(any.val) +} + +func (any *mapAny) GetInterface() interface{} { + return any.val.Interface() +} diff --git a/vendor/github.com/json-iterator/go/any_str.go b/vendor/github.com/json-iterator/go/any_str.go new file mode 100644 index 0000000..a4b93c7 --- /dev/null +++ b/vendor/github.com/json-iterator/go/any_str.go @@ -0,0 +1,166 @@ +package jsoniter + +import ( + "fmt" + "strconv" +) + +type stringAny struct { + baseAny + val string +} + +func (any *stringAny) Get(path ...interface{}) Any { + if len(path) == 0 { + return any + } + return &invalidAny{baseAny{}, fmt.Errorf("GetIndex %v from simple value", path)} +} + +func (any *stringAny) Parse() *Iterator { + return nil +} + +func (any *stringAny) ValueType() ValueType { + return StringValue +} + +func (any *stringAny) MustBeValid() Any { + return any +} + +func (any *stringAny) LastError() error { + return nil +} + +func (any *stringAny) ToBool() bool { + str := any.ToString() + if str == "0" { + return false + } + for _, c := range str { + switch c { + case ' ', '\n', '\r', '\t': + default: + return true + } + } + return false +} + +func (any *stringAny) ToInt() int { + return int(any.ToInt64()) + +} + +func (any *stringAny) ToInt32() int32 { + return int32(any.ToInt64()) +} + +func (any *stringAny) ToInt64() int64 { + if any.val == "" { + return 0 + } + + flag := 1 + startPos := 0 + endPos := 0 + if any.val[0] == '+' || any.val[0] == '-' { + startPos = 1 + } + + if any.val[0] == '-' { + flag = -1 + } + + for i := startPos; i < len(any.val); i++ { + if any.val[i] >= '0' && any.val[i] <= '9' { + endPos = i + 1 + } else { + break + } + } + parsed, _ := strconv.ParseInt(any.val[startPos:endPos], 10, 64) + return int64(flag) * parsed +} + +func (any *stringAny) ToUint() uint { + return uint(any.ToUint64()) +} + +func (any *stringAny) ToUint32() uint32 { + return uint32(any.ToUint64()) +} + +func (any *stringAny) ToUint64() uint64 { + if any.val == "" { + return 0 + } + + startPos := 0 + endPos := 0 + + if any.val[0] == '-' { + return 0 + } + if any.val[0] == '+' { + startPos = 1 + } + + for i := startPos; i < len(any.val); i++ { + if any.val[i] >= '0' && any.val[i] <= '9' { + endPos = i + 1 + } else { + break + } + } + parsed, _ := strconv.ParseUint(any.val[startPos:endPos], 10, 64) + return parsed +} + +func (any *stringAny) ToFloat32() float32 { + return float32(any.ToFloat64()) +} + +func (any *stringAny) ToFloat64() float64 { + if len(any.val) == 0 { + return 0 + } + + // first char invalid + if any.val[0] != '+' && any.val[0] != '-' && (any.val[0] > '9' || any.val[0] < '0') { + return 0 + } + + // extract valid num expression from string + // eg 123true => 123, -12.12xxa => -12.12 + endPos := 1 + for i := 1; i < len(any.val); i++ { + if any.val[i] == '.' || any.val[i] == 'e' || any.val[i] == 'E' || any.val[i] == '+' || any.val[i] == '-' { + endPos = i + 1 + continue + } + + // end position is the first char which is not digit + if any.val[i] >= '0' && any.val[i] <= '9' { + endPos = i + 1 + } else { + endPos = i + break + } + } + parsed, _ := strconv.ParseFloat(any.val[:endPos], 64) + return parsed +} + +func (any *stringAny) ToString() string { + return any.val +} + +func (any *stringAny) WriteTo(stream *Stream) { + stream.WriteString(any.val) +} + +func (any *stringAny) GetInterface() interface{} { + return any.val +} diff --git a/vendor/github.com/json-iterator/go/any_uint32.go b/vendor/github.com/json-iterator/go/any_uint32.go new file mode 100644 index 0000000..656bbd3 --- /dev/null +++ b/vendor/github.com/json-iterator/go/any_uint32.go @@ -0,0 +1,74 @@ +package jsoniter + +import ( + "strconv" +) + +type uint32Any struct { + baseAny + val uint32 +} + +func (any *uint32Any) LastError() error { + return nil +} + +func (any *uint32Any) ValueType() ValueType { + return NumberValue +} + +func (any *uint32Any) MustBeValid() Any { + return any +} + +func (any *uint32Any) ToBool() bool { + return any.val != 0 +} + +func (any *uint32Any) ToInt() int { + return int(any.val) +} + +func (any *uint32Any) ToInt32() int32 { + return int32(any.val) +} + +func (any *uint32Any) ToInt64() int64 { + return int64(any.val) +} + +func (any *uint32Any) ToUint() uint { + return uint(any.val) +} + +func (any *uint32Any) ToUint32() uint32 { + return any.val +} + +func (any *uint32Any) ToUint64() uint64 { + return uint64(any.val) +} + +func (any *uint32Any) ToFloat32() float32 { + return float32(any.val) +} + +func (any *uint32Any) ToFloat64() float64 { + return float64(any.val) +} + +func (any *uint32Any) ToString() string { + return strconv.FormatInt(int64(any.val), 10) +} + +func (any *uint32Any) WriteTo(stream *Stream) { + stream.WriteUint32(any.val) +} + +func (any *uint32Any) Parse() *Iterator { + return nil +} + +func (any *uint32Any) GetInterface() interface{} { + return any.val +} diff --git a/vendor/github.com/json-iterator/go/any_uint64.go b/vendor/github.com/json-iterator/go/any_uint64.go new file mode 100644 index 0000000..7df2fce --- /dev/null +++ b/vendor/github.com/json-iterator/go/any_uint64.go @@ -0,0 +1,74 @@ +package jsoniter + +import ( + "strconv" +) + +type uint64Any struct { + baseAny + val uint64 +} + +func (any *uint64Any) LastError() error { + return nil +} + +func (any *uint64Any) ValueType() ValueType { + return NumberValue +} + +func (any *uint64Any) MustBeValid() Any { + return any +} + +func (any *uint64Any) ToBool() bool { + return any.val != 0 +} + +func (any *uint64Any) ToInt() int { + return int(any.val) +} + +func (any *uint64Any) ToInt32() int32 { + return int32(any.val) +} + +func (any *uint64Any) ToInt64() int64 { + return int64(any.val) +} + +func (any *uint64Any) ToUint() uint { + return uint(any.val) +} + +func (any *uint64Any) ToUint32() uint32 { + return uint32(any.val) +} + +func (any *uint64Any) ToUint64() uint64 { + return any.val +} + +func (any *uint64Any) ToFloat32() float32 { + return float32(any.val) +} + +func (any *uint64Any) ToFloat64() float64 { + return float64(any.val) +} + +func (any *uint64Any) ToString() string { + return strconv.FormatUint(any.val, 10) +} + +func (any *uint64Any) WriteTo(stream *Stream) { + stream.WriteUint64(any.val) +} + +func (any *uint64Any) Parse() *Iterator { + return nil +} + +func (any *uint64Any) GetInterface() interface{} { + return any.val +} diff --git a/vendor/github.com/json-iterator/go/build.sh b/vendor/github.com/json-iterator/go/build.sh new file mode 100755 index 0000000..b45ef68 --- /dev/null +++ b/vendor/github.com/json-iterator/go/build.sh @@ -0,0 +1,12 @@ +#!/bin/bash +set -e +set -x + +if [ ! -d /tmp/build-golang/src/github.com/json-iterator ]; then + mkdir -p /tmp/build-golang/src/github.com/json-iterator + ln -s $PWD /tmp/build-golang/src/github.com/json-iterator/go +fi +export GOPATH=/tmp/build-golang +go get -u github.com/golang/dep/cmd/dep +cd /tmp/build-golang/src/github.com/json-iterator/go +exec $GOPATH/bin/dep ensure -update diff --git a/vendor/github.com/json-iterator/go/config.go b/vendor/github.com/json-iterator/go/config.go new file mode 100644 index 0000000..59e1614 --- /dev/null +++ b/vendor/github.com/json-iterator/go/config.go @@ -0,0 +1,375 @@ +package jsoniter + +import ( + "encoding/json" + "io" + "reflect" + "sync" + "unsafe" + + "github.com/modern-go/concurrent" + "github.com/modern-go/reflect2" +) + +// Config customize how the API should behave. +// The API is created from Config by Froze. +type Config struct { + IndentionStep int + MarshalFloatWith6Digits bool + EscapeHTML bool + SortMapKeys bool + UseNumber bool + DisallowUnknownFields bool + TagKey string + OnlyTaggedField bool + ValidateJsonRawMessage bool + ObjectFieldMustBeSimpleString bool + CaseSensitive bool +} + +// API the public interface of this package. +// Primary Marshal and Unmarshal. +type API interface { + IteratorPool + StreamPool + MarshalToString(v interface{}) (string, error) + Marshal(v interface{}) ([]byte, error) + MarshalIndent(v interface{}, prefix, indent string) ([]byte, error) + UnmarshalFromString(str string, v interface{}) error + Unmarshal(data []byte, v interface{}) error + Get(data []byte, path ...interface{}) Any + NewEncoder(writer io.Writer) *Encoder + NewDecoder(reader io.Reader) *Decoder + Valid(data []byte) bool + RegisterExtension(extension Extension) + DecoderOf(typ reflect2.Type) ValDecoder + EncoderOf(typ reflect2.Type) ValEncoder +} + +// ConfigDefault the default API +var ConfigDefault = Config{ + EscapeHTML: true, +}.Froze() + +// ConfigCompatibleWithStandardLibrary tries to be 100% compatible with standard library behavior +var ConfigCompatibleWithStandardLibrary = Config{ + EscapeHTML: true, + SortMapKeys: true, + ValidateJsonRawMessage: true, +}.Froze() + +// ConfigFastest marshals float with only 6 digits precision +var ConfigFastest = Config{ + EscapeHTML: false, + MarshalFloatWith6Digits: true, // will lose precession + ObjectFieldMustBeSimpleString: true, // do not unescape object field +}.Froze() + +type frozenConfig struct { + configBeforeFrozen Config + sortMapKeys bool + indentionStep int + objectFieldMustBeSimpleString bool + onlyTaggedField bool + disallowUnknownFields bool + decoderCache *concurrent.Map + encoderCache *concurrent.Map + encoderExtension Extension + decoderExtension Extension + extraExtensions []Extension + streamPool *sync.Pool + iteratorPool *sync.Pool + caseSensitive bool +} + +func (cfg *frozenConfig) initCache() { + cfg.decoderCache = concurrent.NewMap() + cfg.encoderCache = concurrent.NewMap() +} + +func (cfg *frozenConfig) addDecoderToCache(cacheKey uintptr, decoder ValDecoder) { + cfg.decoderCache.Store(cacheKey, decoder) +} + +func (cfg *frozenConfig) addEncoderToCache(cacheKey uintptr, encoder ValEncoder) { + cfg.encoderCache.Store(cacheKey, encoder) +} + +func (cfg *frozenConfig) getDecoderFromCache(cacheKey uintptr) ValDecoder { + decoder, found := cfg.decoderCache.Load(cacheKey) + if found { + return decoder.(ValDecoder) + } + return nil +} + +func (cfg *frozenConfig) getEncoderFromCache(cacheKey uintptr) ValEncoder { + encoder, found := cfg.encoderCache.Load(cacheKey) + if found { + return encoder.(ValEncoder) + } + return nil +} + +var cfgCache = concurrent.NewMap() + +func getFrozenConfigFromCache(cfg Config) *frozenConfig { + obj, found := cfgCache.Load(cfg) + if found { + return obj.(*frozenConfig) + } + return nil +} + +func addFrozenConfigToCache(cfg Config, frozenConfig *frozenConfig) { + cfgCache.Store(cfg, frozenConfig) +} + +// Froze forge API from config +func (cfg Config) Froze() API { + api := &frozenConfig{ + sortMapKeys: cfg.SortMapKeys, + indentionStep: cfg.IndentionStep, + objectFieldMustBeSimpleString: cfg.ObjectFieldMustBeSimpleString, + onlyTaggedField: cfg.OnlyTaggedField, + disallowUnknownFields: cfg.DisallowUnknownFields, + caseSensitive: cfg.CaseSensitive, + } + api.streamPool = &sync.Pool{ + New: func() interface{} { + return NewStream(api, nil, 512) + }, + } + api.iteratorPool = &sync.Pool{ + New: func() interface{} { + return NewIterator(api) + }, + } + api.initCache() + encoderExtension := EncoderExtension{} + decoderExtension := DecoderExtension{} + if cfg.MarshalFloatWith6Digits { + api.marshalFloatWith6Digits(encoderExtension) + } + if cfg.EscapeHTML { + api.escapeHTML(encoderExtension) + } + if cfg.UseNumber { + api.useNumber(decoderExtension) + } + if cfg.ValidateJsonRawMessage { + api.validateJsonRawMessage(encoderExtension) + } + api.encoderExtension = encoderExtension + api.decoderExtension = decoderExtension + api.configBeforeFrozen = cfg + return api +} + +func (cfg Config) frozeWithCacheReuse(extraExtensions []Extension) *frozenConfig { + api := getFrozenConfigFromCache(cfg) + if api != nil { + return api + } + api = cfg.Froze().(*frozenConfig) + for _, extension := range extraExtensions { + api.RegisterExtension(extension) + } + addFrozenConfigToCache(cfg, api) + return api +} + +func (cfg *frozenConfig) validateJsonRawMessage(extension EncoderExtension) { + encoder := &funcEncoder{func(ptr unsafe.Pointer, stream *Stream) { + rawMessage := *(*json.RawMessage)(ptr) + iter := cfg.BorrowIterator([]byte(rawMessage)) + iter.Read() + if iter.Error != nil { + stream.WriteRaw("null") + } else { + cfg.ReturnIterator(iter) + stream.WriteRaw(string(rawMessage)) + } + }, func(ptr unsafe.Pointer) bool { + return false + }} + extension[reflect2.TypeOfPtr((*json.RawMessage)(nil)).Elem()] = encoder + extension[reflect2.TypeOfPtr((*RawMessage)(nil)).Elem()] = encoder +} + +func (cfg *frozenConfig) useNumber(extension DecoderExtension) { + extension[reflect2.TypeOfPtr((*interface{})(nil)).Elem()] = &funcDecoder{func(ptr unsafe.Pointer, iter *Iterator) { + exitingValue := *((*interface{})(ptr)) + if exitingValue != nil && reflect.TypeOf(exitingValue).Kind() == reflect.Ptr { + iter.ReadVal(exitingValue) + return + } + if iter.WhatIsNext() == NumberValue { + *((*interface{})(ptr)) = json.Number(iter.readNumberAsString()) + } else { + *((*interface{})(ptr)) = iter.Read() + } + }} +} +func (cfg *frozenConfig) getTagKey() string { + tagKey := cfg.configBeforeFrozen.TagKey + if tagKey == "" { + return "json" + } + return tagKey +} + +func (cfg *frozenConfig) RegisterExtension(extension Extension) { + cfg.extraExtensions = append(cfg.extraExtensions, extension) + copied := cfg.configBeforeFrozen + cfg.configBeforeFrozen = copied +} + +type lossyFloat32Encoder struct { +} + +func (encoder *lossyFloat32Encoder) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.WriteFloat32Lossy(*((*float32)(ptr))) +} + +func (encoder *lossyFloat32Encoder) IsEmpty(ptr unsafe.Pointer) bool { + return *((*float32)(ptr)) == 0 +} + +type lossyFloat64Encoder struct { +} + +func (encoder *lossyFloat64Encoder) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.WriteFloat64Lossy(*((*float64)(ptr))) +} + +func (encoder *lossyFloat64Encoder) IsEmpty(ptr unsafe.Pointer) bool { + return *((*float64)(ptr)) == 0 +} + +// EnableLossyFloatMarshalling keeps 10**(-6) precision +// for float variables for better performance. +func (cfg *frozenConfig) marshalFloatWith6Digits(extension EncoderExtension) { + // for better performance + extension[reflect2.TypeOfPtr((*float32)(nil)).Elem()] = &lossyFloat32Encoder{} + extension[reflect2.TypeOfPtr((*float64)(nil)).Elem()] = &lossyFloat64Encoder{} +} + +type htmlEscapedStringEncoder struct { +} + +func (encoder *htmlEscapedStringEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + str := *((*string)(ptr)) + stream.WriteStringWithHTMLEscaped(str) +} + +func (encoder *htmlEscapedStringEncoder) IsEmpty(ptr unsafe.Pointer) bool { + return *((*string)(ptr)) == "" +} + +func (cfg *frozenConfig) escapeHTML(encoderExtension EncoderExtension) { + encoderExtension[reflect2.TypeOfPtr((*string)(nil)).Elem()] = &htmlEscapedStringEncoder{} +} + +func (cfg *frozenConfig) cleanDecoders() { + typeDecoders = map[string]ValDecoder{} + fieldDecoders = map[string]ValDecoder{} + *cfg = *(cfg.configBeforeFrozen.Froze().(*frozenConfig)) +} + +func (cfg *frozenConfig) cleanEncoders() { + typeEncoders = map[string]ValEncoder{} + fieldEncoders = map[string]ValEncoder{} + *cfg = *(cfg.configBeforeFrozen.Froze().(*frozenConfig)) +} + +func (cfg *frozenConfig) MarshalToString(v interface{}) (string, error) { + stream := cfg.BorrowStream(nil) + defer cfg.ReturnStream(stream) + stream.WriteVal(v) + if stream.Error != nil { + return "", stream.Error + } + return string(stream.Buffer()), nil +} + +func (cfg *frozenConfig) Marshal(v interface{}) ([]byte, error) { + stream := cfg.BorrowStream(nil) + defer cfg.ReturnStream(stream) + stream.WriteVal(v) + if stream.Error != nil { + return nil, stream.Error + } + result := stream.Buffer() + copied := make([]byte, len(result)) + copy(copied, result) + return copied, nil +} + +func (cfg *frozenConfig) MarshalIndent(v interface{}, prefix, indent string) ([]byte, error) { + if prefix != "" { + panic("prefix is not supported") + } + for _, r := range indent { + if r != ' ' { + panic("indent can only be space") + } + } + newCfg := cfg.configBeforeFrozen + newCfg.IndentionStep = len(indent) + return newCfg.frozeWithCacheReuse(cfg.extraExtensions).Marshal(v) +} + +func (cfg *frozenConfig) UnmarshalFromString(str string, v interface{}) error { + data := []byte(str) + iter := cfg.BorrowIterator(data) + defer cfg.ReturnIterator(iter) + iter.ReadVal(v) + c := iter.nextToken() + if c == 0 { + if iter.Error == io.EOF { + return nil + } + return iter.Error + } + iter.ReportError("Unmarshal", "there are bytes left after unmarshal") + return iter.Error +} + +func (cfg *frozenConfig) Get(data []byte, path ...interface{}) Any { + iter := cfg.BorrowIterator(data) + defer cfg.ReturnIterator(iter) + return locatePath(iter, path) +} + +func (cfg *frozenConfig) Unmarshal(data []byte, v interface{}) error { + iter := cfg.BorrowIterator(data) + defer cfg.ReturnIterator(iter) + iter.ReadVal(v) + c := iter.nextToken() + if c == 0 { + if iter.Error == io.EOF { + return nil + } + return iter.Error + } + iter.ReportError("Unmarshal", "there are bytes left after unmarshal") + return iter.Error +} + +func (cfg *frozenConfig) NewEncoder(writer io.Writer) *Encoder { + stream := NewStream(cfg, writer, 512) + return &Encoder{stream} +} + +func (cfg *frozenConfig) NewDecoder(reader io.Reader) *Decoder { + iter := Parse(cfg, reader, 512) + return &Decoder{iter} +} + +func (cfg *frozenConfig) Valid(data []byte) bool { + iter := cfg.BorrowIterator(data) + defer cfg.ReturnIterator(iter) + iter.Skip() + return iter.Error == nil +} diff --git a/vendor/github.com/json-iterator/go/fuzzy_mode_convert_table.md b/vendor/github.com/json-iterator/go/fuzzy_mode_convert_table.md new file mode 100644 index 0000000..3095662 --- /dev/null +++ b/vendor/github.com/json-iterator/go/fuzzy_mode_convert_table.md @@ -0,0 +1,7 @@ +| json type \ dest type | bool | int | uint | float |string| +| --- | --- | --- | --- |--|--| +| number | positive => true
negative => true
zero => false| 23.2 => 23
-32.1 => -32| 12.1 => 12
-12.1 => 0|as normal|same as origin| +| string | empty string => false
string "0" => false
other strings => true | "123.32" => 123
"-123.4" => -123
"123.23xxxw" => 123
"abcde12" => 0
"-32.1" => -32| 13.2 => 13
-1.1 => 0 |12.1 => 12.1
-12.3 => -12.3
12.4xxa => 12.4
+1.1e2 =>110 |same as origin| +| bool | true => true
false => false| true => 1
false => 0 | true => 1
false => 0 |true => 1
false => 0|true => "true"
false => "false"| +| object | true | 0 | 0 |0|originnal json| +| array | empty array => false
nonempty array => true| [] => 0
[1,2] => 1 | [] => 0
[1,2] => 1 |[] => 0
[1,2] => 1|original json| \ No newline at end of file diff --git a/vendor/github.com/json-iterator/go/iter.go b/vendor/github.com/json-iterator/go/iter.go new file mode 100644 index 0000000..95ae54f --- /dev/null +++ b/vendor/github.com/json-iterator/go/iter.go @@ -0,0 +1,322 @@ +package jsoniter + +import ( + "encoding/json" + "fmt" + "io" +) + +// ValueType the type for JSON element +type ValueType int + +const ( + // InvalidValue invalid JSON element + InvalidValue ValueType = iota + // StringValue JSON element "string" + StringValue + // NumberValue JSON element 100 or 0.10 + NumberValue + // NilValue JSON element null + NilValue + // BoolValue JSON element true or false + BoolValue + // ArrayValue JSON element [] + ArrayValue + // ObjectValue JSON element {} + ObjectValue +) + +var hexDigits []byte +var valueTypes []ValueType + +func init() { + hexDigits = make([]byte, 256) + for i := 0; i < len(hexDigits); i++ { + hexDigits[i] = 255 + } + for i := '0'; i <= '9'; i++ { + hexDigits[i] = byte(i - '0') + } + for i := 'a'; i <= 'f'; i++ { + hexDigits[i] = byte((i - 'a') + 10) + } + for i := 'A'; i <= 'F'; i++ { + hexDigits[i] = byte((i - 'A') + 10) + } + valueTypes = make([]ValueType, 256) + for i := 0; i < len(valueTypes); i++ { + valueTypes[i] = InvalidValue + } + valueTypes['"'] = StringValue + valueTypes['-'] = NumberValue + valueTypes['0'] = NumberValue + valueTypes['1'] = NumberValue + valueTypes['2'] = NumberValue + valueTypes['3'] = NumberValue + valueTypes['4'] = NumberValue + valueTypes['5'] = NumberValue + valueTypes['6'] = NumberValue + valueTypes['7'] = NumberValue + valueTypes['8'] = NumberValue + valueTypes['9'] = NumberValue + valueTypes['t'] = BoolValue + valueTypes['f'] = BoolValue + valueTypes['n'] = NilValue + valueTypes['['] = ArrayValue + valueTypes['{'] = ObjectValue +} + +// Iterator is a io.Reader like object, with JSON specific read functions. +// Error is not returned as return value, but stored as Error member on this iterator instance. +type Iterator struct { + cfg *frozenConfig + reader io.Reader + buf []byte + head int + tail int + captureStartedAt int + captured []byte + Error error + Attachment interface{} // open for customized decoder +} + +// NewIterator creates an empty Iterator instance +func NewIterator(cfg API) *Iterator { + return &Iterator{ + cfg: cfg.(*frozenConfig), + reader: nil, + buf: nil, + head: 0, + tail: 0, + } +} + +// Parse creates an Iterator instance from io.Reader +func Parse(cfg API, reader io.Reader, bufSize int) *Iterator { + return &Iterator{ + cfg: cfg.(*frozenConfig), + reader: reader, + buf: make([]byte, bufSize), + head: 0, + tail: 0, + } +} + +// ParseBytes creates an Iterator instance from byte array +func ParseBytes(cfg API, input []byte) *Iterator { + return &Iterator{ + cfg: cfg.(*frozenConfig), + reader: nil, + buf: input, + head: 0, + tail: len(input), + } +} + +// ParseString creates an Iterator instance from string +func ParseString(cfg API, input string) *Iterator { + return ParseBytes(cfg, []byte(input)) +} + +// Pool returns a pool can provide more iterator with same configuration +func (iter *Iterator) Pool() IteratorPool { + return iter.cfg +} + +// Reset reuse iterator instance by specifying another reader +func (iter *Iterator) Reset(reader io.Reader) *Iterator { + iter.reader = reader + iter.head = 0 + iter.tail = 0 + return iter +} + +// ResetBytes reuse iterator instance by specifying another byte array as input +func (iter *Iterator) ResetBytes(input []byte) *Iterator { + iter.reader = nil + iter.buf = input + iter.head = 0 + iter.tail = len(input) + return iter +} + +// WhatIsNext gets ValueType of relatively next json element +func (iter *Iterator) WhatIsNext() ValueType { + valueType := valueTypes[iter.nextToken()] + iter.unreadByte() + return valueType +} + +func (iter *Iterator) skipWhitespacesWithoutLoadMore() bool { + for i := iter.head; i < iter.tail; i++ { + c := iter.buf[i] + switch c { + case ' ', '\n', '\t', '\r': + continue + } + iter.head = i + return false + } + return true +} + +func (iter *Iterator) isObjectEnd() bool { + c := iter.nextToken() + if c == ',' { + return false + } + if c == '}' { + return true + } + iter.ReportError("isObjectEnd", "object ended prematurely, unexpected char "+string([]byte{c})) + return true +} + +func (iter *Iterator) nextToken() byte { + // a variation of skip whitespaces, returning the next non-whitespace token + for { + for i := iter.head; i < iter.tail; i++ { + c := iter.buf[i] + switch c { + case ' ', '\n', '\t', '\r': + continue + } + iter.head = i + 1 + return c + } + if !iter.loadMore() { + return 0 + } + } +} + +// ReportError record a error in iterator instance with current position. +func (iter *Iterator) ReportError(operation string, msg string) { + if iter.Error != nil { + if iter.Error != io.EOF { + return + } + } + peekStart := iter.head - 10 + if peekStart < 0 { + peekStart = 0 + } + peekEnd := iter.head + 10 + if peekEnd > iter.tail { + peekEnd = iter.tail + } + parsing := string(iter.buf[peekStart:peekEnd]) + contextStart := iter.head - 50 + if contextStart < 0 { + contextStart = 0 + } + contextEnd := iter.head + 50 + if contextEnd > iter.tail { + contextEnd = iter.tail + } + context := string(iter.buf[contextStart:contextEnd]) + iter.Error = fmt.Errorf("%s: %s, error found in #%v byte of ...|%s|..., bigger context ...|%s|...", + operation, msg, iter.head-peekStart, parsing, context) +} + +// CurrentBuffer gets current buffer as string for debugging purpose +func (iter *Iterator) CurrentBuffer() string { + peekStart := iter.head - 10 + if peekStart < 0 { + peekStart = 0 + } + return fmt.Sprintf("parsing #%v byte, around ...|%s|..., whole buffer ...|%s|...", iter.head, + string(iter.buf[peekStart:iter.head]), string(iter.buf[0:iter.tail])) +} + +func (iter *Iterator) readByte() (ret byte) { + if iter.head == iter.tail { + if iter.loadMore() { + ret = iter.buf[iter.head] + iter.head++ + return ret + } + return 0 + } + ret = iter.buf[iter.head] + iter.head++ + return ret +} + +func (iter *Iterator) loadMore() bool { + if iter.reader == nil { + if iter.Error == nil { + iter.head = iter.tail + iter.Error = io.EOF + } + return false + } + if iter.captured != nil { + iter.captured = append(iter.captured, + iter.buf[iter.captureStartedAt:iter.tail]...) + iter.captureStartedAt = 0 + } + for { + n, err := iter.reader.Read(iter.buf) + if n == 0 { + if err != nil { + if iter.Error == nil { + iter.Error = err + } + return false + } + } else { + iter.head = 0 + iter.tail = n + return true + } + } +} + +func (iter *Iterator) unreadByte() { + if iter.Error != nil { + return + } + iter.head-- + return +} + +// Read read the next JSON element as generic interface{}. +func (iter *Iterator) Read() interface{} { + valueType := iter.WhatIsNext() + switch valueType { + case StringValue: + return iter.ReadString() + case NumberValue: + if iter.cfg.configBeforeFrozen.UseNumber { + return json.Number(iter.readNumberAsString()) + } + return iter.ReadFloat64() + case NilValue: + iter.skipFourBytes('n', 'u', 'l', 'l') + return nil + case BoolValue: + return iter.ReadBool() + case ArrayValue: + arr := []interface{}{} + iter.ReadArrayCB(func(iter *Iterator) bool { + var elem interface{} + iter.ReadVal(&elem) + arr = append(arr, elem) + return true + }) + return arr + case ObjectValue: + obj := map[string]interface{}{} + iter.ReadMapCB(func(Iter *Iterator, field string) bool { + var elem interface{} + iter.ReadVal(&elem) + obj[field] = elem + return true + }) + return obj + default: + iter.ReportError("Read", fmt.Sprintf("unexpected value type: %v", valueType)) + return nil + } +} diff --git a/vendor/github.com/json-iterator/go/iter_array.go b/vendor/github.com/json-iterator/go/iter_array.go new file mode 100644 index 0000000..6188cb4 --- /dev/null +++ b/vendor/github.com/json-iterator/go/iter_array.go @@ -0,0 +1,58 @@ +package jsoniter + +// ReadArray read array element, tells if the array has more element to read. +func (iter *Iterator) ReadArray() (ret bool) { + c := iter.nextToken() + switch c { + case 'n': + iter.skipThreeBytes('u', 'l', 'l') + return false // null + case '[': + c = iter.nextToken() + if c != ']' { + iter.unreadByte() + return true + } + return false + case ']': + return false + case ',': + return true + default: + iter.ReportError("ReadArray", "expect [ or , or ] or n, but found "+string([]byte{c})) + return + } +} + +// ReadArrayCB read array with callback +func (iter *Iterator) ReadArrayCB(callback func(*Iterator) bool) (ret bool) { + c := iter.nextToken() + if c == '[' { + c = iter.nextToken() + if c != ']' { + iter.unreadByte() + if !callback(iter) { + return false + } + c = iter.nextToken() + for c == ',' { + if !callback(iter) { + return false + } + c = iter.nextToken() + } + if c != ']' { + iter.ReportError("ReadArrayCB", "expect ] in the end, but found "+string([]byte{c})) + return false + } + return true + } + return true + } + if c == 'n' { + iter.skipThreeBytes('u', 'l', 'l') + return true // null + } + iter.ReportError("ReadArrayCB", "expect [ or n, but found "+string([]byte{c})) + return false +} diff --git a/vendor/github.com/json-iterator/go/iter_float.go b/vendor/github.com/json-iterator/go/iter_float.go new file mode 100644 index 0000000..4f883c0 --- /dev/null +++ b/vendor/github.com/json-iterator/go/iter_float.go @@ -0,0 +1,347 @@ +package jsoniter + +import ( + "encoding/json" + "io" + "math/big" + "strconv" + "strings" + "unsafe" +) + +var floatDigits []int8 + +const invalidCharForNumber = int8(-1) +const endOfNumber = int8(-2) +const dotInNumber = int8(-3) + +func init() { + floatDigits = make([]int8, 256) + for i := 0; i < len(floatDigits); i++ { + floatDigits[i] = invalidCharForNumber + } + for i := int8('0'); i <= int8('9'); i++ { + floatDigits[i] = i - int8('0') + } + floatDigits[','] = endOfNumber + floatDigits[']'] = endOfNumber + floatDigits['}'] = endOfNumber + floatDigits[' '] = endOfNumber + floatDigits['\t'] = endOfNumber + floatDigits['\n'] = endOfNumber + floatDigits['.'] = dotInNumber +} + +// ReadBigFloat read big.Float +func (iter *Iterator) ReadBigFloat() (ret *big.Float) { + str := iter.readNumberAsString() + if iter.Error != nil && iter.Error != io.EOF { + return nil + } + prec := 64 + if len(str) > prec { + prec = len(str) + } + val, _, err := big.ParseFloat(str, 10, uint(prec), big.ToZero) + if err != nil { + iter.Error = err + return nil + } + return val +} + +// ReadBigInt read big.Int +func (iter *Iterator) ReadBigInt() (ret *big.Int) { + str := iter.readNumberAsString() + if iter.Error != nil && iter.Error != io.EOF { + return nil + } + ret = big.NewInt(0) + var success bool + ret, success = ret.SetString(str, 10) + if !success { + iter.ReportError("ReadBigInt", "invalid big int") + return nil + } + return ret +} + +//ReadFloat32 read float32 +func (iter *Iterator) ReadFloat32() (ret float32) { + c := iter.nextToken() + if c == '-' { + return -iter.readPositiveFloat32() + } + iter.unreadByte() + return iter.readPositiveFloat32() +} + +func (iter *Iterator) readPositiveFloat32() (ret float32) { + value := uint64(0) + c := byte(' ') + i := iter.head + // first char + if i == iter.tail { + return iter.readFloat32SlowPath() + } + c = iter.buf[i] + i++ + ind := floatDigits[c] + switch ind { + case invalidCharForNumber: + return iter.readFloat32SlowPath() + case endOfNumber: + iter.ReportError("readFloat32", "empty number") + return + case dotInNumber: + iter.ReportError("readFloat32", "leading dot is invalid") + return + case 0: + if i == iter.tail { + return iter.readFloat32SlowPath() + } + c = iter.buf[i] + switch c { + case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': + iter.ReportError("readFloat32", "leading zero is invalid") + return + } + } + value = uint64(ind) + // chars before dot +non_decimal_loop: + for ; i < iter.tail; i++ { + c = iter.buf[i] + ind := floatDigits[c] + switch ind { + case invalidCharForNumber: + return iter.readFloat32SlowPath() + case endOfNumber: + iter.head = i + return float32(value) + case dotInNumber: + break non_decimal_loop + } + if value > uint64SafeToMultiple10 { + return iter.readFloat32SlowPath() + } + value = (value << 3) + (value << 1) + uint64(ind) // value = value * 10 + ind; + } + // chars after dot + if c == '.' { + i++ + decimalPlaces := 0 + if i == iter.tail { + return iter.readFloat32SlowPath() + } + for ; i < iter.tail; i++ { + c = iter.buf[i] + ind := floatDigits[c] + switch ind { + case endOfNumber: + if decimalPlaces > 0 && decimalPlaces < len(pow10) { + iter.head = i + return float32(float64(value) / float64(pow10[decimalPlaces])) + } + // too many decimal places + return iter.readFloat32SlowPath() + case invalidCharForNumber: + fallthrough + case dotInNumber: + return iter.readFloat32SlowPath() + } + decimalPlaces++ + if value > uint64SafeToMultiple10 { + return iter.readFloat32SlowPath() + } + value = (value << 3) + (value << 1) + uint64(ind) + } + } + return iter.readFloat32SlowPath() +} + +func (iter *Iterator) readNumberAsString() (ret string) { + strBuf := [16]byte{} + str := strBuf[0:0] +load_loop: + for { + for i := iter.head; i < iter.tail; i++ { + c := iter.buf[i] + switch c { + case '+', '-', '.', 'e', 'E', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': + str = append(str, c) + continue + default: + iter.head = i + break load_loop + } + } + if !iter.loadMore() { + break + } + } + if iter.Error != nil && iter.Error != io.EOF { + return + } + if len(str) == 0 { + iter.ReportError("readNumberAsString", "invalid number") + } + return *(*string)(unsafe.Pointer(&str)) +} + +func (iter *Iterator) readFloat32SlowPath() (ret float32) { + str := iter.readNumberAsString() + if iter.Error != nil && iter.Error != io.EOF { + return + } + errMsg := validateFloat(str) + if errMsg != "" { + iter.ReportError("readFloat32SlowPath", errMsg) + return + } + val, err := strconv.ParseFloat(str, 32) + if err != nil { + iter.Error = err + return + } + return float32(val) +} + +// ReadFloat64 read float64 +func (iter *Iterator) ReadFloat64() (ret float64) { + c := iter.nextToken() + if c == '-' { + return -iter.readPositiveFloat64() + } + iter.unreadByte() + return iter.readPositiveFloat64() +} + +func (iter *Iterator) readPositiveFloat64() (ret float64) { + value := uint64(0) + c := byte(' ') + i := iter.head + // first char + if i == iter.tail { + return iter.readFloat64SlowPath() + } + c = iter.buf[i] + i++ + ind := floatDigits[c] + switch ind { + case invalidCharForNumber: + return iter.readFloat64SlowPath() + case endOfNumber: + iter.ReportError("readFloat64", "empty number") + return + case dotInNumber: + iter.ReportError("readFloat64", "leading dot is invalid") + return + case 0: + if i == iter.tail { + return iter.readFloat64SlowPath() + } + c = iter.buf[i] + switch c { + case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': + iter.ReportError("readFloat64", "leading zero is invalid") + return + } + } + value = uint64(ind) + // chars before dot +non_decimal_loop: + for ; i < iter.tail; i++ { + c = iter.buf[i] + ind := floatDigits[c] + switch ind { + case invalidCharForNumber: + return iter.readFloat64SlowPath() + case endOfNumber: + iter.head = i + return float64(value) + case dotInNumber: + break non_decimal_loop + } + if value > uint64SafeToMultiple10 { + return iter.readFloat64SlowPath() + } + value = (value << 3) + (value << 1) + uint64(ind) // value = value * 10 + ind; + } + // chars after dot + if c == '.' { + i++ + decimalPlaces := 0 + if i == iter.tail { + return iter.readFloat64SlowPath() + } + for ; i < iter.tail; i++ { + c = iter.buf[i] + ind := floatDigits[c] + switch ind { + case endOfNumber: + if decimalPlaces > 0 && decimalPlaces < len(pow10) { + iter.head = i + return float64(value) / float64(pow10[decimalPlaces]) + } + // too many decimal places + return iter.readFloat64SlowPath() + case invalidCharForNumber: + fallthrough + case dotInNumber: + return iter.readFloat64SlowPath() + } + decimalPlaces++ + if value > uint64SafeToMultiple10 { + return iter.readFloat64SlowPath() + } + value = (value << 3) + (value << 1) + uint64(ind) + } + } + return iter.readFloat64SlowPath() +} + +func (iter *Iterator) readFloat64SlowPath() (ret float64) { + str := iter.readNumberAsString() + if iter.Error != nil && iter.Error != io.EOF { + return + } + errMsg := validateFloat(str) + if errMsg != "" { + iter.ReportError("readFloat64SlowPath", errMsg) + return + } + val, err := strconv.ParseFloat(str, 64) + if err != nil { + iter.Error = err + return + } + return val +} + +func validateFloat(str string) string { + // strconv.ParseFloat is not validating `1.` or `1.e1` + if len(str) == 0 { + return "empty number" + } + if str[0] == '-' { + return "-- is not valid" + } + dotPos := strings.IndexByte(str, '.') + if dotPos != -1 { + if dotPos == len(str)-1 { + return "dot can not be last character" + } + switch str[dotPos+1] { + case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': + default: + return "missing digit after dot" + } + } + return "" +} + +// ReadNumber read json.Number +func (iter *Iterator) ReadNumber() (ret json.Number) { + return json.Number(iter.readNumberAsString()) +} diff --git a/vendor/github.com/json-iterator/go/iter_int.go b/vendor/github.com/json-iterator/go/iter_int.go new file mode 100644 index 0000000..2142320 --- /dev/null +++ b/vendor/github.com/json-iterator/go/iter_int.go @@ -0,0 +1,345 @@ +package jsoniter + +import ( + "math" + "strconv" +) + +var intDigits []int8 + +const uint32SafeToMultiply10 = uint32(0xffffffff)/10 - 1 +const uint64SafeToMultiple10 = uint64(0xffffffffffffffff)/10 - 1 + +func init() { + intDigits = make([]int8, 256) + for i := 0; i < len(intDigits); i++ { + intDigits[i] = invalidCharForNumber + } + for i := int8('0'); i <= int8('9'); i++ { + intDigits[i] = i - int8('0') + } +} + +// ReadUint read uint +func (iter *Iterator) ReadUint() uint { + if strconv.IntSize == 32 { + return uint(iter.ReadUint32()) + } + return uint(iter.ReadUint64()) +} + +// ReadInt read int +func (iter *Iterator) ReadInt() int { + if strconv.IntSize == 32 { + return int(iter.ReadInt32()) + } + return int(iter.ReadInt64()) +} + +// ReadInt8 read int8 +func (iter *Iterator) ReadInt8() (ret int8) { + c := iter.nextToken() + if c == '-' { + val := iter.readUint32(iter.readByte()) + if val > math.MaxInt8+1 { + iter.ReportError("ReadInt8", "overflow: "+strconv.FormatInt(int64(val), 10)) + return + } + return -int8(val) + } + val := iter.readUint32(c) + if val > math.MaxInt8 { + iter.ReportError("ReadInt8", "overflow: "+strconv.FormatInt(int64(val), 10)) + return + } + return int8(val) +} + +// ReadUint8 read uint8 +func (iter *Iterator) ReadUint8() (ret uint8) { + val := iter.readUint32(iter.nextToken()) + if val > math.MaxUint8 { + iter.ReportError("ReadUint8", "overflow: "+strconv.FormatInt(int64(val), 10)) + return + } + return uint8(val) +} + +// ReadInt16 read int16 +func (iter *Iterator) ReadInt16() (ret int16) { + c := iter.nextToken() + if c == '-' { + val := iter.readUint32(iter.readByte()) + if val > math.MaxInt16+1 { + iter.ReportError("ReadInt16", "overflow: "+strconv.FormatInt(int64(val), 10)) + return + } + return -int16(val) + } + val := iter.readUint32(c) + if val > math.MaxInt16 { + iter.ReportError("ReadInt16", "overflow: "+strconv.FormatInt(int64(val), 10)) + return + } + return int16(val) +} + +// ReadUint16 read uint16 +func (iter *Iterator) ReadUint16() (ret uint16) { + val := iter.readUint32(iter.nextToken()) + if val > math.MaxUint16 { + iter.ReportError("ReadUint16", "overflow: "+strconv.FormatInt(int64(val), 10)) + return + } + return uint16(val) +} + +// ReadInt32 read int32 +func (iter *Iterator) ReadInt32() (ret int32) { + c := iter.nextToken() + if c == '-' { + val := iter.readUint32(iter.readByte()) + if val > math.MaxInt32+1 { + iter.ReportError("ReadInt32", "overflow: "+strconv.FormatInt(int64(val), 10)) + return + } + return -int32(val) + } + val := iter.readUint32(c) + if val > math.MaxInt32 { + iter.ReportError("ReadInt32", "overflow: "+strconv.FormatInt(int64(val), 10)) + return + } + return int32(val) +} + +// ReadUint32 read uint32 +func (iter *Iterator) ReadUint32() (ret uint32) { + return iter.readUint32(iter.nextToken()) +} + +func (iter *Iterator) readUint32(c byte) (ret uint32) { + ind := intDigits[c] + if ind == 0 { + iter.assertInteger() + return 0 // single zero + } + if ind == invalidCharForNumber { + iter.ReportError("readUint32", "unexpected character: "+string([]byte{byte(ind)})) + return + } + value := uint32(ind) + if iter.tail-iter.head > 10 { + i := iter.head + ind2 := intDigits[iter.buf[i]] + if ind2 == invalidCharForNumber { + iter.head = i + iter.assertInteger() + return value + } + i++ + ind3 := intDigits[iter.buf[i]] + if ind3 == invalidCharForNumber { + iter.head = i + iter.assertInteger() + return value*10 + uint32(ind2) + } + //iter.head = i + 1 + //value = value * 100 + uint32(ind2) * 10 + uint32(ind3) + i++ + ind4 := intDigits[iter.buf[i]] + if ind4 == invalidCharForNumber { + iter.head = i + iter.assertInteger() + return value*100 + uint32(ind2)*10 + uint32(ind3) + } + i++ + ind5 := intDigits[iter.buf[i]] + if ind5 == invalidCharForNumber { + iter.head = i + iter.assertInteger() + return value*1000 + uint32(ind2)*100 + uint32(ind3)*10 + uint32(ind4) + } + i++ + ind6 := intDigits[iter.buf[i]] + if ind6 == invalidCharForNumber { + iter.head = i + iter.assertInteger() + return value*10000 + uint32(ind2)*1000 + uint32(ind3)*100 + uint32(ind4)*10 + uint32(ind5) + } + i++ + ind7 := intDigits[iter.buf[i]] + if ind7 == invalidCharForNumber { + iter.head = i + iter.assertInteger() + return value*100000 + uint32(ind2)*10000 + uint32(ind3)*1000 + uint32(ind4)*100 + uint32(ind5)*10 + uint32(ind6) + } + i++ + ind8 := intDigits[iter.buf[i]] + if ind8 == invalidCharForNumber { + iter.head = i + iter.assertInteger() + return value*1000000 + uint32(ind2)*100000 + uint32(ind3)*10000 + uint32(ind4)*1000 + uint32(ind5)*100 + uint32(ind6)*10 + uint32(ind7) + } + i++ + ind9 := intDigits[iter.buf[i]] + value = value*10000000 + uint32(ind2)*1000000 + uint32(ind3)*100000 + uint32(ind4)*10000 + uint32(ind5)*1000 + uint32(ind6)*100 + uint32(ind7)*10 + uint32(ind8) + iter.head = i + if ind9 == invalidCharForNumber { + iter.assertInteger() + return value + } + } + for { + for i := iter.head; i < iter.tail; i++ { + ind = intDigits[iter.buf[i]] + if ind == invalidCharForNumber { + iter.head = i + iter.assertInteger() + return value + } + if value > uint32SafeToMultiply10 { + value2 := (value << 3) + (value << 1) + uint32(ind) + if value2 < value { + iter.ReportError("readUint32", "overflow") + return + } + value = value2 + continue + } + value = (value << 3) + (value << 1) + uint32(ind) + } + if !iter.loadMore() { + iter.assertInteger() + return value + } + } +} + +// ReadInt64 read int64 +func (iter *Iterator) ReadInt64() (ret int64) { + c := iter.nextToken() + if c == '-' { + val := iter.readUint64(iter.readByte()) + if val > math.MaxInt64+1 { + iter.ReportError("ReadInt64", "overflow: "+strconv.FormatUint(uint64(val), 10)) + return + } + return -int64(val) + } + val := iter.readUint64(c) + if val > math.MaxInt64 { + iter.ReportError("ReadInt64", "overflow: "+strconv.FormatUint(uint64(val), 10)) + return + } + return int64(val) +} + +// ReadUint64 read uint64 +func (iter *Iterator) ReadUint64() uint64 { + return iter.readUint64(iter.nextToken()) +} + +func (iter *Iterator) readUint64(c byte) (ret uint64) { + ind := intDigits[c] + if ind == 0 { + iter.assertInteger() + return 0 // single zero + } + if ind == invalidCharForNumber { + iter.ReportError("readUint64", "unexpected character: "+string([]byte{byte(ind)})) + return + } + value := uint64(ind) + if iter.tail-iter.head > 10 { + i := iter.head + ind2 := intDigits[iter.buf[i]] + if ind2 == invalidCharForNumber { + iter.head = i + iter.assertInteger() + return value + } + i++ + ind3 := intDigits[iter.buf[i]] + if ind3 == invalidCharForNumber { + iter.head = i + iter.assertInteger() + return value*10 + uint64(ind2) + } + //iter.head = i + 1 + //value = value * 100 + uint32(ind2) * 10 + uint32(ind3) + i++ + ind4 := intDigits[iter.buf[i]] + if ind4 == invalidCharForNumber { + iter.head = i + iter.assertInteger() + return value*100 + uint64(ind2)*10 + uint64(ind3) + } + i++ + ind5 := intDigits[iter.buf[i]] + if ind5 == invalidCharForNumber { + iter.head = i + iter.assertInteger() + return value*1000 + uint64(ind2)*100 + uint64(ind3)*10 + uint64(ind4) + } + i++ + ind6 := intDigits[iter.buf[i]] + if ind6 == invalidCharForNumber { + iter.head = i + iter.assertInteger() + return value*10000 + uint64(ind2)*1000 + uint64(ind3)*100 + uint64(ind4)*10 + uint64(ind5) + } + i++ + ind7 := intDigits[iter.buf[i]] + if ind7 == invalidCharForNumber { + iter.head = i + iter.assertInteger() + return value*100000 + uint64(ind2)*10000 + uint64(ind3)*1000 + uint64(ind4)*100 + uint64(ind5)*10 + uint64(ind6) + } + i++ + ind8 := intDigits[iter.buf[i]] + if ind8 == invalidCharForNumber { + iter.head = i + iter.assertInteger() + return value*1000000 + uint64(ind2)*100000 + uint64(ind3)*10000 + uint64(ind4)*1000 + uint64(ind5)*100 + uint64(ind6)*10 + uint64(ind7) + } + i++ + ind9 := intDigits[iter.buf[i]] + value = value*10000000 + uint64(ind2)*1000000 + uint64(ind3)*100000 + uint64(ind4)*10000 + uint64(ind5)*1000 + uint64(ind6)*100 + uint64(ind7)*10 + uint64(ind8) + iter.head = i + if ind9 == invalidCharForNumber { + iter.assertInteger() + return value + } + } + for { + for i := iter.head; i < iter.tail; i++ { + ind = intDigits[iter.buf[i]] + if ind == invalidCharForNumber { + iter.head = i + iter.assertInteger() + return value + } + if value > uint64SafeToMultiple10 { + value2 := (value << 3) + (value << 1) + uint64(ind) + if value2 < value { + iter.ReportError("readUint64", "overflow") + return + } + value = value2 + continue + } + value = (value << 3) + (value << 1) + uint64(ind) + } + if !iter.loadMore() { + iter.assertInteger() + return value + } + } +} + +func (iter *Iterator) assertInteger() { + if iter.head < len(iter.buf) && iter.buf[iter.head] == '.' { + iter.ReportError("assertInteger", "can not decode float as int") + } +} diff --git a/vendor/github.com/json-iterator/go/iter_object.go b/vendor/github.com/json-iterator/go/iter_object.go new file mode 100644 index 0000000..6e7c370 --- /dev/null +++ b/vendor/github.com/json-iterator/go/iter_object.go @@ -0,0 +1,252 @@ +package jsoniter + +import ( + "fmt" + "unicode" +) + +// ReadObject read one field from object. +// If object ended, returns empty string. +// Otherwise, returns the field name. +func (iter *Iterator) ReadObject() (ret string) { + c := iter.nextToken() + switch c { + case 'n': + iter.skipThreeBytes('u', 'l', 'l') + return "" // null + case '{': + c = iter.nextToken() + if c == '"' { + iter.unreadByte() + field := iter.ReadString() + c = iter.nextToken() + if c != ':' { + iter.ReportError("ReadObject", "expect : after object field, but found "+string([]byte{c})) + } + return field + } + if c == '}' { + return "" // end of object + } + iter.ReportError("ReadObject", `expect " after {, but found `+string([]byte{c})) + return + case ',': + field := iter.ReadString() + c = iter.nextToken() + if c != ':' { + iter.ReportError("ReadObject", "expect : after object field, but found "+string([]byte{c})) + } + return field + case '}': + return "" // end of object + default: + iter.ReportError("ReadObject", fmt.Sprintf(`expect { or , or } or n, but found %s`, string([]byte{c}))) + return + } +} + +// CaseInsensitive +func (iter *Iterator) readFieldHash() int64 { + hash := int64(0x811c9dc5) + c := iter.nextToken() + if c != '"' { + iter.ReportError("readFieldHash", `expect ", but found `+string([]byte{c})) + return 0 + } + for { + for i := iter.head; i < iter.tail; i++ { + // require ascii string and no escape + b := iter.buf[i] + if b == '\\' { + iter.head = i + for _, b := range iter.readStringSlowPath() { + if 'A' <= b && b <= 'Z' && !iter.cfg.caseSensitive { + b += 'a' - 'A' + } + hash ^= int64(b) + hash *= 0x1000193 + } + c = iter.nextToken() + if c != ':' { + iter.ReportError("readFieldHash", `expect :, but found `+string([]byte{c})) + return 0 + } + return hash + } + if b == '"' { + iter.head = i + 1 + c = iter.nextToken() + if c != ':' { + iter.ReportError("readFieldHash", `expect :, but found `+string([]byte{c})) + return 0 + } + return hash + } + if 'A' <= b && b <= 'Z' && !iter.cfg.caseSensitive { + b += 'a' - 'A' + } + hash ^= int64(b) + hash *= 0x1000193 + } + if !iter.loadMore() { + iter.ReportError("readFieldHash", `incomplete field name`) + return 0 + } + } +} + +func calcHash(str string, caseSensitive bool) int64 { + hash := int64(0x811c9dc5) + for _, b := range str { + if caseSensitive { + hash ^= int64(b) + } else { + hash ^= int64(unicode.ToLower(b)) + } + hash *= 0x1000193 + } + return int64(hash) +} + +// ReadObjectCB read object with callback, the key is ascii only and field name not copied +func (iter *Iterator) ReadObjectCB(callback func(*Iterator, string) bool) bool { + c := iter.nextToken() + var field string + if c == '{' { + c = iter.nextToken() + if c == '"' { + iter.unreadByte() + field = iter.ReadString() + c = iter.nextToken() + if c != ':' { + iter.ReportError("ReadObject", "expect : after object field, but found "+string([]byte{c})) + } + if !callback(iter, field) { + return false + } + c = iter.nextToken() + for c == ',' { + field = iter.ReadString() + c = iter.nextToken() + if c != ':' { + iter.ReportError("ReadObject", "expect : after object field, but found "+string([]byte{c})) + } + if !callback(iter, field) { + return false + } + c = iter.nextToken() + } + if c != '}' { + iter.ReportError("ReadObjectCB", `object not ended with }`) + return false + } + return true + } + if c == '}' { + return true + } + iter.ReportError("ReadObjectCB", `expect " after }, but found `+string([]byte{c})) + return false + } + if c == 'n' { + iter.skipThreeBytes('u', 'l', 'l') + return true // null + } + iter.ReportError("ReadObjectCB", `expect { or n, but found `+string([]byte{c})) + return false +} + +// ReadMapCB read map with callback, the key can be any string +func (iter *Iterator) ReadMapCB(callback func(*Iterator, string) bool) bool { + c := iter.nextToken() + if c == '{' { + c = iter.nextToken() + if c == '"' { + iter.unreadByte() + field := iter.ReadString() + if iter.nextToken() != ':' { + iter.ReportError("ReadMapCB", "expect : after object field, but found "+string([]byte{c})) + return false + } + if !callback(iter, field) { + return false + } + c = iter.nextToken() + for c == ',' { + field = iter.ReadString() + if iter.nextToken() != ':' { + iter.ReportError("ReadMapCB", "expect : after object field, but found "+string([]byte{c})) + return false + } + if !callback(iter, field) { + return false + } + c = iter.nextToken() + } + if c != '}' { + iter.ReportError("ReadMapCB", `object not ended with }`) + return false + } + return true + } + if c == '}' { + return true + } + iter.ReportError("ReadMapCB", `expect " after }, but found `+string([]byte{c})) + return false + } + if c == 'n' { + iter.skipThreeBytes('u', 'l', 'l') + return true // null + } + iter.ReportError("ReadMapCB", `expect { or n, but found `+string([]byte{c})) + return false +} + +func (iter *Iterator) readObjectStart() bool { + c := iter.nextToken() + if c == '{' { + c = iter.nextToken() + if c == '}' { + return false + } + iter.unreadByte() + return true + } else if c == 'n' { + iter.skipThreeBytes('u', 'l', 'l') + return false + } + iter.ReportError("readObjectStart", "expect { or n, but found "+string([]byte{c})) + return false +} + +func (iter *Iterator) readObjectFieldAsBytes() (ret []byte) { + str := iter.ReadStringAsSlice() + if iter.skipWhitespacesWithoutLoadMore() { + if ret == nil { + ret = make([]byte, len(str)) + copy(ret, str) + } + if !iter.loadMore() { + return + } + } + if iter.buf[iter.head] != ':' { + iter.ReportError("readObjectFieldAsBytes", "expect : after object field, but found "+string([]byte{iter.buf[iter.head]})) + return + } + iter.head++ + if iter.skipWhitespacesWithoutLoadMore() { + if ret == nil { + ret = make([]byte, len(str)) + copy(ret, str) + } + if !iter.loadMore() { + return + } + } + if ret == nil { + return str + } + return ret +} diff --git a/vendor/github.com/json-iterator/go/iter_skip.go b/vendor/github.com/json-iterator/go/iter_skip.go new file mode 100644 index 0000000..f58beb9 --- /dev/null +++ b/vendor/github.com/json-iterator/go/iter_skip.go @@ -0,0 +1,129 @@ +package jsoniter + +import "fmt" + +// ReadNil reads a json object as nil and +// returns whether it's a nil or not +func (iter *Iterator) ReadNil() (ret bool) { + c := iter.nextToken() + if c == 'n' { + iter.skipThreeBytes('u', 'l', 'l') // null + return true + } + iter.unreadByte() + return false +} + +// ReadBool reads a json object as BoolValue +func (iter *Iterator) ReadBool() (ret bool) { + c := iter.nextToken() + if c == 't' { + iter.skipThreeBytes('r', 'u', 'e') + return true + } + if c == 'f' { + iter.skipFourBytes('a', 'l', 's', 'e') + return false + } + iter.ReportError("ReadBool", "expect t or f, but found "+string([]byte{c})) + return +} + +// SkipAndReturnBytes skip next JSON element, and return its content as []byte. +// The []byte can be kept, it is a copy of data. +func (iter *Iterator) SkipAndReturnBytes() []byte { + iter.startCapture(iter.head) + iter.Skip() + return iter.stopCapture() +} + +type captureBuffer struct { + startedAt int + captured []byte +} + +func (iter *Iterator) startCapture(captureStartedAt int) { + if iter.captured != nil { + panic("already in capture mode") + } + iter.captureStartedAt = captureStartedAt + iter.captured = make([]byte, 0, 32) +} + +func (iter *Iterator) stopCapture() []byte { + if iter.captured == nil { + panic("not in capture mode") + } + captured := iter.captured + remaining := iter.buf[iter.captureStartedAt:iter.head] + iter.captureStartedAt = -1 + iter.captured = nil + if len(captured) == 0 { + copied := make([]byte, len(remaining)) + copy(copied, remaining) + return copied + } + captured = append(captured, remaining...) + return captured +} + +// Skip skips a json object and positions to relatively the next json object +func (iter *Iterator) Skip() { + c := iter.nextToken() + switch c { + case '"': + iter.skipString() + case 'n': + iter.skipThreeBytes('u', 'l', 'l') // null + case 't': + iter.skipThreeBytes('r', 'u', 'e') // true + case 'f': + iter.skipFourBytes('a', 'l', 's', 'e') // false + case '0': + iter.unreadByte() + iter.ReadFloat32() + case '-', '1', '2', '3', '4', '5', '6', '7', '8', '9': + iter.skipNumber() + case '[': + iter.skipArray() + case '{': + iter.skipObject() + default: + iter.ReportError("Skip", fmt.Sprintf("do not know how to skip: %v", c)) + return + } +} + +func (iter *Iterator) skipFourBytes(b1, b2, b3, b4 byte) { + if iter.readByte() != b1 { + iter.ReportError("skipFourBytes", fmt.Sprintf("expect %s", string([]byte{b1, b2, b3, b4}))) + return + } + if iter.readByte() != b2 { + iter.ReportError("skipFourBytes", fmt.Sprintf("expect %s", string([]byte{b1, b2, b3, b4}))) + return + } + if iter.readByte() != b3 { + iter.ReportError("skipFourBytes", fmt.Sprintf("expect %s", string([]byte{b1, b2, b3, b4}))) + return + } + if iter.readByte() != b4 { + iter.ReportError("skipFourBytes", fmt.Sprintf("expect %s", string([]byte{b1, b2, b3, b4}))) + return + } +} + +func (iter *Iterator) skipThreeBytes(b1, b2, b3 byte) { + if iter.readByte() != b1 { + iter.ReportError("skipThreeBytes", fmt.Sprintf("expect %s", string([]byte{b1, b2, b3}))) + return + } + if iter.readByte() != b2 { + iter.ReportError("skipThreeBytes", fmt.Sprintf("expect %s", string([]byte{b1, b2, b3}))) + return + } + if iter.readByte() != b3 { + iter.ReportError("skipThreeBytes", fmt.Sprintf("expect %s", string([]byte{b1, b2, b3}))) + return + } +} diff --git a/vendor/github.com/json-iterator/go/iter_skip_sloppy.go b/vendor/github.com/json-iterator/go/iter_skip_sloppy.go new file mode 100644 index 0000000..8fcdc3b --- /dev/null +++ b/vendor/github.com/json-iterator/go/iter_skip_sloppy.go @@ -0,0 +1,144 @@ +//+build jsoniter_sloppy + +package jsoniter + +// sloppy but faster implementation, do not validate the input json + +func (iter *Iterator) skipNumber() { + for { + for i := iter.head; i < iter.tail; i++ { + c := iter.buf[i] + switch c { + case ' ', '\n', '\r', '\t', ',', '}', ']': + iter.head = i + return + } + } + if !iter.loadMore() { + return + } + } +} + +func (iter *Iterator) skipArray() { + level := 1 + for { + for i := iter.head; i < iter.tail; i++ { + switch iter.buf[i] { + case '"': // If inside string, skip it + iter.head = i + 1 + iter.skipString() + i = iter.head - 1 // it will be i++ soon + case '[': // If open symbol, increase level + level++ + case ']': // If close symbol, increase level + level-- + + // If we have returned to the original level, we're done + if level == 0 { + iter.head = i + 1 + return + } + } + } + if !iter.loadMore() { + iter.ReportError("skipObject", "incomplete array") + return + } + } +} + +func (iter *Iterator) skipObject() { + level := 1 + for { + for i := iter.head; i < iter.tail; i++ { + switch iter.buf[i] { + case '"': // If inside string, skip it + iter.head = i + 1 + iter.skipString() + i = iter.head - 1 // it will be i++ soon + case '{': // If open symbol, increase level + level++ + case '}': // If close symbol, increase level + level-- + + // If we have returned to the original level, we're done + if level == 0 { + iter.head = i + 1 + return + } + } + } + if !iter.loadMore() { + iter.ReportError("skipObject", "incomplete object") + return + } + } +} + +func (iter *Iterator) skipString() { + for { + end, escaped := iter.findStringEnd() + if end == -1 { + if !iter.loadMore() { + iter.ReportError("skipString", "incomplete string") + return + } + if escaped { + iter.head = 1 // skip the first char as last char read is \ + } + } else { + iter.head = end + return + } + } +} + +// adapted from: https://github.com/buger/jsonparser/blob/master/parser.go +// Tries to find the end of string +// Support if string contains escaped quote symbols. +func (iter *Iterator) findStringEnd() (int, bool) { + escaped := false + for i := iter.head; i < iter.tail; i++ { + c := iter.buf[i] + if c == '"' { + if !escaped { + return i + 1, false + } + j := i - 1 + for { + if j < iter.head || iter.buf[j] != '\\' { + // even number of backslashes + // either end of buffer, or " found + return i + 1, true + } + j-- + if j < iter.head || iter.buf[j] != '\\' { + // odd number of backslashes + // it is \" or \\\" + break + } + j-- + } + } else if c == '\\' { + escaped = true + } + } + j := iter.tail - 1 + for { + if j < iter.head || iter.buf[j] != '\\' { + // even number of backslashes + // either end of buffer, or " found + return -1, false // do not end with \ + } + j-- + if j < iter.head || iter.buf[j] != '\\' { + // odd number of backslashes + // it is \" or \\\" + break + } + j-- + + } + return -1, true // end with \ +} diff --git a/vendor/github.com/json-iterator/go/iter_skip_strict.go b/vendor/github.com/json-iterator/go/iter_skip_strict.go new file mode 100644 index 0000000..f67bc2e --- /dev/null +++ b/vendor/github.com/json-iterator/go/iter_skip_strict.go @@ -0,0 +1,89 @@ +//+build !jsoniter_sloppy + +package jsoniter + +import "fmt" + +func (iter *Iterator) skipNumber() { + if !iter.trySkipNumber() { + iter.unreadByte() + iter.ReadFloat32() + } +} + +func (iter *Iterator) trySkipNumber() bool { + dotFound := false + for i := iter.head; i < iter.tail; i++ { + c := iter.buf[i] + switch c { + case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': + case '.': + if dotFound { + iter.ReportError("validateNumber", `more than one dot found in number`) + return true // already failed + } + if i+1 == iter.tail { + return false + } + c = iter.buf[i+1] + switch c { + case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': + default: + iter.ReportError("validateNumber", `missing digit after dot`) + return true // already failed + } + dotFound = true + default: + switch c { + case ',', ']', '}', ' ', '\t', '\n', '\r': + if iter.head == i { + return false // if - without following digits + } + iter.head = i + return true // must be valid + } + return false // may be invalid + } + } + return false +} + +func (iter *Iterator) skipString() { + if !iter.trySkipString() { + iter.unreadByte() + iter.ReadString() + } +} + +func (iter *Iterator) trySkipString() bool { + for i := iter.head; i < iter.tail; i++ { + c := iter.buf[i] + if c == '"' { + iter.head = i + 1 + return true // valid + } else if c == '\\' { + return false + } else if c < ' ' { + iter.ReportError("trySkipString", + fmt.Sprintf(`invalid control character found: %d`, c)) + return true // already failed + } + } + return false +} + +func (iter *Iterator) skipObject() { + iter.unreadByte() + iter.ReadObjectCB(func(iter *Iterator, field string) bool { + iter.Skip() + return true + }) +} + +func (iter *Iterator) skipArray() { + iter.unreadByte() + iter.ReadArrayCB(func(iter *Iterator) bool { + iter.Skip() + return true + }) +} diff --git a/vendor/github.com/json-iterator/go/iter_str.go b/vendor/github.com/json-iterator/go/iter_str.go new file mode 100644 index 0000000..adc487e --- /dev/null +++ b/vendor/github.com/json-iterator/go/iter_str.go @@ -0,0 +1,215 @@ +package jsoniter + +import ( + "fmt" + "unicode/utf16" +) + +// ReadString read string from iterator +func (iter *Iterator) ReadString() (ret string) { + c := iter.nextToken() + if c == '"' { + for i := iter.head; i < iter.tail; i++ { + c := iter.buf[i] + if c == '"' { + ret = string(iter.buf[iter.head:i]) + iter.head = i + 1 + return ret + } else if c == '\\' { + break + } else if c < ' ' { + iter.ReportError("ReadString", + fmt.Sprintf(`invalid control character found: %d`, c)) + return + } + } + return iter.readStringSlowPath() + } else if c == 'n' { + iter.skipThreeBytes('u', 'l', 'l') + return "" + } + iter.ReportError("ReadString", `expects " or n, but found `+string([]byte{c})) + return +} + +func (iter *Iterator) readStringSlowPath() (ret string) { + var str []byte + var c byte + for iter.Error == nil { + c = iter.readByte() + if c == '"' { + return string(str) + } + if c == '\\' { + c = iter.readByte() + str = iter.readEscapedChar(c, str) + } else { + str = append(str, c) + } + } + iter.ReportError("readStringSlowPath", "unexpected end of input") + return +} + +func (iter *Iterator) readEscapedChar(c byte, str []byte) []byte { + switch c { + case 'u': + r := iter.readU4() + if utf16.IsSurrogate(r) { + c = iter.readByte() + if iter.Error != nil { + return nil + } + if c != '\\' { + iter.unreadByte() + str = appendRune(str, r) + return str + } + c = iter.readByte() + if iter.Error != nil { + return nil + } + if c != 'u' { + str = appendRune(str, r) + return iter.readEscapedChar(c, str) + } + r2 := iter.readU4() + if iter.Error != nil { + return nil + } + combined := utf16.DecodeRune(r, r2) + if combined == '\uFFFD' { + str = appendRune(str, r) + str = appendRune(str, r2) + } else { + str = appendRune(str, combined) + } + } else { + str = appendRune(str, r) + } + case '"': + str = append(str, '"') + case '\\': + str = append(str, '\\') + case '/': + str = append(str, '/') + case 'b': + str = append(str, '\b') + case 'f': + str = append(str, '\f') + case 'n': + str = append(str, '\n') + case 'r': + str = append(str, '\r') + case 't': + str = append(str, '\t') + default: + iter.ReportError("readEscapedChar", + `invalid escape char after \`) + return nil + } + return str +} + +// ReadStringAsSlice read string from iterator without copying into string form. +// The []byte can not be kept, as it will change after next iterator call. +func (iter *Iterator) ReadStringAsSlice() (ret []byte) { + c := iter.nextToken() + if c == '"' { + for i := iter.head; i < iter.tail; i++ { + // require ascii string and no escape + // for: field name, base64, number + if iter.buf[i] == '"' { + // fast path: reuse the underlying buffer + ret = iter.buf[iter.head:i] + iter.head = i + 1 + return ret + } + } + readLen := iter.tail - iter.head + copied := make([]byte, readLen, readLen*2) + copy(copied, iter.buf[iter.head:iter.tail]) + iter.head = iter.tail + for iter.Error == nil { + c := iter.readByte() + if c == '"' { + return copied + } + copied = append(copied, c) + } + return copied + } + iter.ReportError("ReadStringAsSlice", `expects " or n, but found `+string([]byte{c})) + return +} + +func (iter *Iterator) readU4() (ret rune) { + for i := 0; i < 4; i++ { + c := iter.readByte() + if iter.Error != nil { + return + } + if c >= '0' && c <= '9' { + ret = ret*16 + rune(c-'0') + } else if c >= 'a' && c <= 'f' { + ret = ret*16 + rune(c-'a'+10) + } else if c >= 'A' && c <= 'F' { + ret = ret*16 + rune(c-'A'+10) + } else { + iter.ReportError("readU4", "expects 0~9 or a~f, but found "+string([]byte{c})) + return + } + } + return ret +} + +const ( + t1 = 0x00 // 0000 0000 + tx = 0x80 // 1000 0000 + t2 = 0xC0 // 1100 0000 + t3 = 0xE0 // 1110 0000 + t4 = 0xF0 // 1111 0000 + t5 = 0xF8 // 1111 1000 + + maskx = 0x3F // 0011 1111 + mask2 = 0x1F // 0001 1111 + mask3 = 0x0F // 0000 1111 + mask4 = 0x07 // 0000 0111 + + rune1Max = 1<<7 - 1 + rune2Max = 1<<11 - 1 + rune3Max = 1<<16 - 1 + + surrogateMin = 0xD800 + surrogateMax = 0xDFFF + + maxRune = '\U0010FFFF' // Maximum valid Unicode code point. + runeError = '\uFFFD' // the "error" Rune or "Unicode replacement character" +) + +func appendRune(p []byte, r rune) []byte { + // Negative values are erroneous. Making it unsigned addresses the problem. + switch i := uint32(r); { + case i <= rune1Max: + p = append(p, byte(r)) + return p + case i <= rune2Max: + p = append(p, t2|byte(r>>6)) + p = append(p, tx|byte(r)&maskx) + return p + case i > maxRune, surrogateMin <= i && i <= surrogateMax: + r = runeError + fallthrough + case i <= rune3Max: + p = append(p, t3|byte(r>>12)) + p = append(p, tx|byte(r>>6)&maskx) + p = append(p, tx|byte(r)&maskx) + return p + default: + p = append(p, t4|byte(r>>18)) + p = append(p, tx|byte(r>>12)&maskx) + p = append(p, tx|byte(r>>6)&maskx) + p = append(p, tx|byte(r)&maskx) + return p + } +} diff --git a/vendor/github.com/json-iterator/go/jsoniter.go b/vendor/github.com/json-iterator/go/jsoniter.go new file mode 100644 index 0000000..c2934f9 --- /dev/null +++ b/vendor/github.com/json-iterator/go/jsoniter.go @@ -0,0 +1,18 @@ +// Package jsoniter implements encoding and decoding of JSON as defined in +// RFC 4627 and provides interfaces with identical syntax of standard lib encoding/json. +// Converting from encoding/json to jsoniter is no more than replacing the package with jsoniter +// and variable type declarations (if any). +// jsoniter interfaces gives 100% compatibility with code using standard lib. +// +// "JSON and Go" +// (https://golang.org/doc/articles/json_and_go.html) +// gives a description of how Marshal/Unmarshal operate +// between arbitrary or predefined json objects and bytes, +// and it applies to jsoniter.Marshal/Unmarshal as well. +// +// Besides, jsoniter.Iterator provides a different set of interfaces +// iterating given bytes/string/reader +// and yielding parsed elements one by one. +// This set of interfaces reads input as required and gives +// better performance. +package jsoniter diff --git a/vendor/github.com/json-iterator/go/pool.go b/vendor/github.com/json-iterator/go/pool.go new file mode 100644 index 0000000..e2389b5 --- /dev/null +++ b/vendor/github.com/json-iterator/go/pool.go @@ -0,0 +1,42 @@ +package jsoniter + +import ( + "io" +) + +// IteratorPool a thread safe pool of iterators with same configuration +type IteratorPool interface { + BorrowIterator(data []byte) *Iterator + ReturnIterator(iter *Iterator) +} + +// StreamPool a thread safe pool of streams with same configuration +type StreamPool interface { + BorrowStream(writer io.Writer) *Stream + ReturnStream(stream *Stream) +} + +func (cfg *frozenConfig) BorrowStream(writer io.Writer) *Stream { + stream := cfg.streamPool.Get().(*Stream) + stream.Reset(writer) + return stream +} + +func (cfg *frozenConfig) ReturnStream(stream *Stream) { + stream.out = nil + stream.Error = nil + stream.Attachment = nil + cfg.streamPool.Put(stream) +} + +func (cfg *frozenConfig) BorrowIterator(data []byte) *Iterator { + iter := cfg.iteratorPool.Get().(*Iterator) + iter.ResetBytes(data) + return iter +} + +func (cfg *frozenConfig) ReturnIterator(iter *Iterator) { + iter.Error = nil + iter.Attachment = nil + cfg.iteratorPool.Put(iter) +} diff --git a/vendor/github.com/json-iterator/go/reflect.go b/vendor/github.com/json-iterator/go/reflect.go new file mode 100644 index 0000000..4459e20 --- /dev/null +++ b/vendor/github.com/json-iterator/go/reflect.go @@ -0,0 +1,332 @@ +package jsoniter + +import ( + "fmt" + "reflect" + "unsafe" + + "github.com/modern-go/reflect2" +) + +// ValDecoder is an internal type registered to cache as needed. +// Don't confuse jsoniter.ValDecoder with json.Decoder. +// For json.Decoder's adapter, refer to jsoniter.AdapterDecoder(todo link). +// +// Reflection on type to create decoders, which is then cached +// Reflection on value is avoided as we can, as the reflect.Value itself will allocate, with following exceptions +// 1. create instance of new value, for example *int will need a int to be allocated +// 2. append to slice, if the existing cap is not enough, allocate will be done using Reflect.New +// 3. assignment to map, both key and value will be reflect.Value +// For a simple struct binding, it will be reflect.Value free and allocation free +type ValDecoder interface { + Decode(ptr unsafe.Pointer, iter *Iterator) +} + +// ValEncoder is an internal type registered to cache as needed. +// Don't confuse jsoniter.ValEncoder with json.Encoder. +// For json.Encoder's adapter, refer to jsoniter.AdapterEncoder(todo godoc link). +type ValEncoder interface { + IsEmpty(ptr unsafe.Pointer) bool + Encode(ptr unsafe.Pointer, stream *Stream) +} + +type checkIsEmpty interface { + IsEmpty(ptr unsafe.Pointer) bool +} + +type ctx struct { + *frozenConfig + prefix string + encoders map[reflect2.Type]ValEncoder + decoders map[reflect2.Type]ValDecoder +} + +func (b *ctx) caseSensitive() bool { + if b.frozenConfig == nil { + // default is case-insensitive + return false + } + return b.frozenConfig.caseSensitive +} + +func (b *ctx) append(prefix string) *ctx { + return &ctx{ + frozenConfig: b.frozenConfig, + prefix: b.prefix + " " + prefix, + encoders: b.encoders, + decoders: b.decoders, + } +} + +// ReadVal copy the underlying JSON into go interface, same as json.Unmarshal +func (iter *Iterator) ReadVal(obj interface{}) { + cacheKey := reflect2.RTypeOf(obj) + decoder := iter.cfg.getDecoderFromCache(cacheKey) + if decoder == nil { + typ := reflect2.TypeOf(obj) + if typ.Kind() != reflect.Ptr { + iter.ReportError("ReadVal", "can only unmarshal into pointer") + return + } + decoder = iter.cfg.DecoderOf(typ) + } + ptr := reflect2.PtrOf(obj) + if ptr == nil { + iter.ReportError("ReadVal", "can not read into nil pointer") + return + } + decoder.Decode(ptr, iter) +} + +// WriteVal copy the go interface into underlying JSON, same as json.Marshal +func (stream *Stream) WriteVal(val interface{}) { + if nil == val { + stream.WriteNil() + return + } + cacheKey := reflect2.RTypeOf(val) + encoder := stream.cfg.getEncoderFromCache(cacheKey) + if encoder == nil { + typ := reflect2.TypeOf(val) + encoder = stream.cfg.EncoderOf(typ) + } + encoder.Encode(reflect2.PtrOf(val), stream) +} + +func (cfg *frozenConfig) DecoderOf(typ reflect2.Type) ValDecoder { + cacheKey := typ.RType() + decoder := cfg.getDecoderFromCache(cacheKey) + if decoder != nil { + return decoder + } + ctx := &ctx{ + frozenConfig: cfg, + prefix: "", + decoders: map[reflect2.Type]ValDecoder{}, + encoders: map[reflect2.Type]ValEncoder{}, + } + ptrType := typ.(*reflect2.UnsafePtrType) + decoder = decoderOfType(ctx, ptrType.Elem()) + cfg.addDecoderToCache(cacheKey, decoder) + return decoder +} + +func decoderOfType(ctx *ctx, typ reflect2.Type) ValDecoder { + decoder := getTypeDecoderFromExtension(ctx, typ) + if decoder != nil { + return decoder + } + decoder = createDecoderOfType(ctx, typ) + for _, extension := range extensions { + decoder = extension.DecorateDecoder(typ, decoder) + } + decoder = ctx.decoderExtension.DecorateDecoder(typ, decoder) + for _, extension := range ctx.extraExtensions { + decoder = extension.DecorateDecoder(typ, decoder) + } + return decoder +} + +func createDecoderOfType(ctx *ctx, typ reflect2.Type) ValDecoder { + decoder := ctx.decoders[typ] + if decoder != nil { + return decoder + } + placeholder := &placeholderDecoder{} + ctx.decoders[typ] = placeholder + decoder = _createDecoderOfType(ctx, typ) + placeholder.decoder = decoder + return decoder +} + +func _createDecoderOfType(ctx *ctx, typ reflect2.Type) ValDecoder { + decoder := createDecoderOfJsonRawMessage(ctx, typ) + if decoder != nil { + return decoder + } + decoder = createDecoderOfJsonNumber(ctx, typ) + if decoder != nil { + return decoder + } + decoder = createDecoderOfMarshaler(ctx, typ) + if decoder != nil { + return decoder + } + decoder = createDecoderOfAny(ctx, typ) + if decoder != nil { + return decoder + } + decoder = createDecoderOfNative(ctx, typ) + if decoder != nil { + return decoder + } + switch typ.Kind() { + case reflect.Interface: + ifaceType, isIFace := typ.(*reflect2.UnsafeIFaceType) + if isIFace { + return &ifaceDecoder{valType: ifaceType} + } + return &efaceDecoder{} + case reflect.Struct: + return decoderOfStruct(ctx, typ) + case reflect.Array: + return decoderOfArray(ctx, typ) + case reflect.Slice: + return decoderOfSlice(ctx, typ) + case reflect.Map: + return decoderOfMap(ctx, typ) + case reflect.Ptr: + return decoderOfOptional(ctx, typ) + default: + return &lazyErrorDecoder{err: fmt.Errorf("%s%s is unsupported type", ctx.prefix, typ.String())} + } +} + +func (cfg *frozenConfig) EncoderOf(typ reflect2.Type) ValEncoder { + cacheKey := typ.RType() + encoder := cfg.getEncoderFromCache(cacheKey) + if encoder != nil { + return encoder + } + ctx := &ctx{ + frozenConfig: cfg, + prefix: "", + decoders: map[reflect2.Type]ValDecoder{}, + encoders: map[reflect2.Type]ValEncoder{}, + } + encoder = encoderOfType(ctx, typ) + if typ.LikePtr() { + encoder = &onePtrEncoder{encoder} + } + cfg.addEncoderToCache(cacheKey, encoder) + return encoder +} + +type onePtrEncoder struct { + encoder ValEncoder +} + +func (encoder *onePtrEncoder) IsEmpty(ptr unsafe.Pointer) bool { + return encoder.encoder.IsEmpty(unsafe.Pointer(&ptr)) +} + +func (encoder *onePtrEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + encoder.encoder.Encode(unsafe.Pointer(&ptr), stream) +} + +func encoderOfType(ctx *ctx, typ reflect2.Type) ValEncoder { + encoder := getTypeEncoderFromExtension(ctx, typ) + if encoder != nil { + return encoder + } + encoder = createEncoderOfType(ctx, typ) + for _, extension := range extensions { + encoder = extension.DecorateEncoder(typ, encoder) + } + encoder = ctx.encoderExtension.DecorateEncoder(typ, encoder) + for _, extension := range ctx.extraExtensions { + encoder = extension.DecorateEncoder(typ, encoder) + } + return encoder +} + +func createEncoderOfType(ctx *ctx, typ reflect2.Type) ValEncoder { + encoder := ctx.encoders[typ] + if encoder != nil { + return encoder + } + placeholder := &placeholderEncoder{} + ctx.encoders[typ] = placeholder + encoder = _createEncoderOfType(ctx, typ) + placeholder.encoder = encoder + return encoder +} +func _createEncoderOfType(ctx *ctx, typ reflect2.Type) ValEncoder { + encoder := createEncoderOfJsonRawMessage(ctx, typ) + if encoder != nil { + return encoder + } + encoder = createEncoderOfJsonNumber(ctx, typ) + if encoder != nil { + return encoder + } + encoder = createEncoderOfMarshaler(ctx, typ) + if encoder != nil { + return encoder + } + encoder = createEncoderOfAny(ctx, typ) + if encoder != nil { + return encoder + } + encoder = createEncoderOfNative(ctx, typ) + if encoder != nil { + return encoder + } + kind := typ.Kind() + switch kind { + case reflect.Interface: + return &dynamicEncoder{typ} + case reflect.Struct: + return encoderOfStruct(ctx, typ) + case reflect.Array: + return encoderOfArray(ctx, typ) + case reflect.Slice: + return encoderOfSlice(ctx, typ) + case reflect.Map: + return encoderOfMap(ctx, typ) + case reflect.Ptr: + return encoderOfOptional(ctx, typ) + default: + return &lazyErrorEncoder{err: fmt.Errorf("%s%s is unsupported type", ctx.prefix, typ.String())} + } +} + +type lazyErrorDecoder struct { + err error +} + +func (decoder *lazyErrorDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + if iter.WhatIsNext() != NilValue { + if iter.Error == nil { + iter.Error = decoder.err + } + } else { + iter.Skip() + } +} + +type lazyErrorEncoder struct { + err error +} + +func (encoder *lazyErrorEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + if ptr == nil { + stream.WriteNil() + } else if stream.Error == nil { + stream.Error = encoder.err + } +} + +func (encoder *lazyErrorEncoder) IsEmpty(ptr unsafe.Pointer) bool { + return false +} + +type placeholderDecoder struct { + decoder ValDecoder +} + +func (decoder *placeholderDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + decoder.decoder.Decode(ptr, iter) +} + +type placeholderEncoder struct { + encoder ValEncoder +} + +func (encoder *placeholderEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + encoder.encoder.Encode(ptr, stream) +} + +func (encoder *placeholderEncoder) IsEmpty(ptr unsafe.Pointer) bool { + return encoder.encoder.IsEmpty(ptr) +} diff --git a/vendor/github.com/json-iterator/go/reflect_array.go b/vendor/github.com/json-iterator/go/reflect_array.go new file mode 100644 index 0000000..13a0b7b --- /dev/null +++ b/vendor/github.com/json-iterator/go/reflect_array.go @@ -0,0 +1,104 @@ +package jsoniter + +import ( + "fmt" + "github.com/modern-go/reflect2" + "io" + "unsafe" +) + +func decoderOfArray(ctx *ctx, typ reflect2.Type) ValDecoder { + arrayType := typ.(*reflect2.UnsafeArrayType) + decoder := decoderOfType(ctx.append("[arrayElem]"), arrayType.Elem()) + return &arrayDecoder{arrayType, decoder} +} + +func encoderOfArray(ctx *ctx, typ reflect2.Type) ValEncoder { + arrayType := typ.(*reflect2.UnsafeArrayType) + if arrayType.Len() == 0 { + return emptyArrayEncoder{} + } + encoder := encoderOfType(ctx.append("[arrayElem]"), arrayType.Elem()) + return &arrayEncoder{arrayType, encoder} +} + +type emptyArrayEncoder struct{} + +func (encoder emptyArrayEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.WriteEmptyArray() +} + +func (encoder emptyArrayEncoder) IsEmpty(ptr unsafe.Pointer) bool { + return true +} + +type arrayEncoder struct { + arrayType *reflect2.UnsafeArrayType + elemEncoder ValEncoder +} + +func (encoder *arrayEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.WriteArrayStart() + elemPtr := unsafe.Pointer(ptr) + encoder.elemEncoder.Encode(elemPtr, stream) + for i := 1; i < encoder.arrayType.Len(); i++ { + stream.WriteMore() + elemPtr = encoder.arrayType.UnsafeGetIndex(ptr, i) + encoder.elemEncoder.Encode(elemPtr, stream) + } + stream.WriteArrayEnd() + if stream.Error != nil && stream.Error != io.EOF { + stream.Error = fmt.Errorf("%v: %s", encoder.arrayType, stream.Error.Error()) + } +} + +func (encoder *arrayEncoder) IsEmpty(ptr unsafe.Pointer) bool { + return false +} + +type arrayDecoder struct { + arrayType *reflect2.UnsafeArrayType + elemDecoder ValDecoder +} + +func (decoder *arrayDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + decoder.doDecode(ptr, iter) + if iter.Error != nil && iter.Error != io.EOF { + iter.Error = fmt.Errorf("%v: %s", decoder.arrayType, iter.Error.Error()) + } +} + +func (decoder *arrayDecoder) doDecode(ptr unsafe.Pointer, iter *Iterator) { + c := iter.nextToken() + arrayType := decoder.arrayType + if c == 'n' { + iter.skipThreeBytes('u', 'l', 'l') + return + } + if c != '[' { + iter.ReportError("decode array", "expect [ or n, but found "+string([]byte{c})) + return + } + c = iter.nextToken() + if c == ']' { + return + } + iter.unreadByte() + elemPtr := arrayType.UnsafeGetIndex(ptr, 0) + decoder.elemDecoder.Decode(elemPtr, iter) + length := 1 + for c = iter.nextToken(); c == ','; c = iter.nextToken() { + if length >= arrayType.Len() { + iter.Skip() + continue + } + idx := length + length += 1 + elemPtr = arrayType.UnsafeGetIndex(ptr, idx) + decoder.elemDecoder.Decode(elemPtr, iter) + } + if c != ']' { + iter.ReportError("decode array", "expect ], but found "+string([]byte{c})) + return + } +} diff --git a/vendor/github.com/json-iterator/go/reflect_dynamic.go b/vendor/github.com/json-iterator/go/reflect_dynamic.go new file mode 100644 index 0000000..8b6bc8b --- /dev/null +++ b/vendor/github.com/json-iterator/go/reflect_dynamic.go @@ -0,0 +1,70 @@ +package jsoniter + +import ( + "github.com/modern-go/reflect2" + "reflect" + "unsafe" +) + +type dynamicEncoder struct { + valType reflect2.Type +} + +func (encoder *dynamicEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + obj := encoder.valType.UnsafeIndirect(ptr) + stream.WriteVal(obj) +} + +func (encoder *dynamicEncoder) IsEmpty(ptr unsafe.Pointer) bool { + return encoder.valType.UnsafeIndirect(ptr) == nil +} + +type efaceDecoder struct { +} + +func (decoder *efaceDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + pObj := (*interface{})(ptr) + obj := *pObj + if obj == nil { + *pObj = iter.Read() + return + } + typ := reflect2.TypeOf(obj) + if typ.Kind() != reflect.Ptr { + *pObj = iter.Read() + return + } + ptrType := typ.(*reflect2.UnsafePtrType) + ptrElemType := ptrType.Elem() + if iter.WhatIsNext() == NilValue { + if ptrElemType.Kind() != reflect.Ptr { + iter.skipFourBytes('n', 'u', 'l', 'l') + *pObj = nil + return + } + } + if reflect2.IsNil(obj) { + obj := ptrElemType.New() + iter.ReadVal(obj) + *pObj = obj + return + } + iter.ReadVal(obj) +} + +type ifaceDecoder struct { + valType *reflect2.UnsafeIFaceType +} + +func (decoder *ifaceDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + if iter.ReadNil() { + decoder.valType.UnsafeSet(ptr, decoder.valType.UnsafeNew()) + return + } + obj := decoder.valType.UnsafeIndirect(ptr) + if reflect2.IsNil(obj) { + iter.ReportError("decode non empty interface", "can not unmarshal into nil") + return + } + iter.ReadVal(obj) +} diff --git a/vendor/github.com/json-iterator/go/reflect_extension.go b/vendor/github.com/json-iterator/go/reflect_extension.go new file mode 100644 index 0000000..04f6875 --- /dev/null +++ b/vendor/github.com/json-iterator/go/reflect_extension.go @@ -0,0 +1,483 @@ +package jsoniter + +import ( + "fmt" + "github.com/modern-go/reflect2" + "reflect" + "sort" + "strings" + "unicode" + "unsafe" +) + +var typeDecoders = map[string]ValDecoder{} +var fieldDecoders = map[string]ValDecoder{} +var typeEncoders = map[string]ValEncoder{} +var fieldEncoders = map[string]ValEncoder{} +var extensions = []Extension{} + +// StructDescriptor describe how should we encode/decode the struct +type StructDescriptor struct { + Type reflect2.Type + Fields []*Binding +} + +// GetField get one field from the descriptor by its name. +// Can not use map here to keep field orders. +func (structDescriptor *StructDescriptor) GetField(fieldName string) *Binding { + for _, binding := range structDescriptor.Fields { + if binding.Field.Name() == fieldName { + return binding + } + } + return nil +} + +// Binding describe how should we encode/decode the struct field +type Binding struct { + levels []int + Field reflect2.StructField + FromNames []string + ToNames []string + Encoder ValEncoder + Decoder ValDecoder +} + +// Extension the one for all SPI. Customize encoding/decoding by specifying alternate encoder/decoder. +// Can also rename fields by UpdateStructDescriptor. +type Extension interface { + UpdateStructDescriptor(structDescriptor *StructDescriptor) + CreateMapKeyDecoder(typ reflect2.Type) ValDecoder + CreateMapKeyEncoder(typ reflect2.Type) ValEncoder + CreateDecoder(typ reflect2.Type) ValDecoder + CreateEncoder(typ reflect2.Type) ValEncoder + DecorateDecoder(typ reflect2.Type, decoder ValDecoder) ValDecoder + DecorateEncoder(typ reflect2.Type, encoder ValEncoder) ValEncoder +} + +// DummyExtension embed this type get dummy implementation for all methods of Extension +type DummyExtension struct { +} + +// UpdateStructDescriptor No-op +func (extension *DummyExtension) UpdateStructDescriptor(structDescriptor *StructDescriptor) { +} + +// CreateMapKeyDecoder No-op +func (extension *DummyExtension) CreateMapKeyDecoder(typ reflect2.Type) ValDecoder { + return nil +} + +// CreateMapKeyEncoder No-op +func (extension *DummyExtension) CreateMapKeyEncoder(typ reflect2.Type) ValEncoder { + return nil +} + +// CreateDecoder No-op +func (extension *DummyExtension) CreateDecoder(typ reflect2.Type) ValDecoder { + return nil +} + +// CreateEncoder No-op +func (extension *DummyExtension) CreateEncoder(typ reflect2.Type) ValEncoder { + return nil +} + +// DecorateDecoder No-op +func (extension *DummyExtension) DecorateDecoder(typ reflect2.Type, decoder ValDecoder) ValDecoder { + return decoder +} + +// DecorateEncoder No-op +func (extension *DummyExtension) DecorateEncoder(typ reflect2.Type, encoder ValEncoder) ValEncoder { + return encoder +} + +type EncoderExtension map[reflect2.Type]ValEncoder + +// UpdateStructDescriptor No-op +func (extension EncoderExtension) UpdateStructDescriptor(structDescriptor *StructDescriptor) { +} + +// CreateDecoder No-op +func (extension EncoderExtension) CreateDecoder(typ reflect2.Type) ValDecoder { + return nil +} + +// CreateEncoder get encoder from map +func (extension EncoderExtension) CreateEncoder(typ reflect2.Type) ValEncoder { + return extension[typ] +} + +// CreateMapKeyDecoder No-op +func (extension EncoderExtension) CreateMapKeyDecoder(typ reflect2.Type) ValDecoder { + return nil +} + +// CreateMapKeyEncoder No-op +func (extension EncoderExtension) CreateMapKeyEncoder(typ reflect2.Type) ValEncoder { + return nil +} + +// DecorateDecoder No-op +func (extension EncoderExtension) DecorateDecoder(typ reflect2.Type, decoder ValDecoder) ValDecoder { + return decoder +} + +// DecorateEncoder No-op +func (extension EncoderExtension) DecorateEncoder(typ reflect2.Type, encoder ValEncoder) ValEncoder { + return encoder +} + +type DecoderExtension map[reflect2.Type]ValDecoder + +// UpdateStructDescriptor No-op +func (extension DecoderExtension) UpdateStructDescriptor(structDescriptor *StructDescriptor) { +} + +// CreateMapKeyDecoder No-op +func (extension DecoderExtension) CreateMapKeyDecoder(typ reflect2.Type) ValDecoder { + return nil +} + +// CreateMapKeyEncoder No-op +func (extension DecoderExtension) CreateMapKeyEncoder(typ reflect2.Type) ValEncoder { + return nil +} + +// CreateDecoder get decoder from map +func (extension DecoderExtension) CreateDecoder(typ reflect2.Type) ValDecoder { + return extension[typ] +} + +// CreateEncoder No-op +func (extension DecoderExtension) CreateEncoder(typ reflect2.Type) ValEncoder { + return nil +} + +// DecorateDecoder No-op +func (extension DecoderExtension) DecorateDecoder(typ reflect2.Type, decoder ValDecoder) ValDecoder { + return decoder +} + +// DecorateEncoder No-op +func (extension DecoderExtension) DecorateEncoder(typ reflect2.Type, encoder ValEncoder) ValEncoder { + return encoder +} + +type funcDecoder struct { + fun DecoderFunc +} + +func (decoder *funcDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + decoder.fun(ptr, iter) +} + +type funcEncoder struct { + fun EncoderFunc + isEmptyFunc func(ptr unsafe.Pointer) bool +} + +func (encoder *funcEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + encoder.fun(ptr, stream) +} + +func (encoder *funcEncoder) IsEmpty(ptr unsafe.Pointer) bool { + if encoder.isEmptyFunc == nil { + return false + } + return encoder.isEmptyFunc(ptr) +} + +// DecoderFunc the function form of TypeDecoder +type DecoderFunc func(ptr unsafe.Pointer, iter *Iterator) + +// EncoderFunc the function form of TypeEncoder +type EncoderFunc func(ptr unsafe.Pointer, stream *Stream) + +// RegisterTypeDecoderFunc register TypeDecoder for a type with function +func RegisterTypeDecoderFunc(typ string, fun DecoderFunc) { + typeDecoders[typ] = &funcDecoder{fun} +} + +// RegisterTypeDecoder register TypeDecoder for a typ +func RegisterTypeDecoder(typ string, decoder ValDecoder) { + typeDecoders[typ] = decoder +} + +// RegisterFieldDecoderFunc register TypeDecoder for a struct field with function +func RegisterFieldDecoderFunc(typ string, field string, fun DecoderFunc) { + RegisterFieldDecoder(typ, field, &funcDecoder{fun}) +} + +// RegisterFieldDecoder register TypeDecoder for a struct field +func RegisterFieldDecoder(typ string, field string, decoder ValDecoder) { + fieldDecoders[fmt.Sprintf("%s/%s", typ, field)] = decoder +} + +// RegisterTypeEncoderFunc register TypeEncoder for a type with encode/isEmpty function +func RegisterTypeEncoderFunc(typ string, fun EncoderFunc, isEmptyFunc func(unsafe.Pointer) bool) { + typeEncoders[typ] = &funcEncoder{fun, isEmptyFunc} +} + +// RegisterTypeEncoder register TypeEncoder for a type +func RegisterTypeEncoder(typ string, encoder ValEncoder) { + typeEncoders[typ] = encoder +} + +// RegisterFieldEncoderFunc register TypeEncoder for a struct field with encode/isEmpty function +func RegisterFieldEncoderFunc(typ string, field string, fun EncoderFunc, isEmptyFunc func(unsafe.Pointer) bool) { + RegisterFieldEncoder(typ, field, &funcEncoder{fun, isEmptyFunc}) +} + +// RegisterFieldEncoder register TypeEncoder for a struct field +func RegisterFieldEncoder(typ string, field string, encoder ValEncoder) { + fieldEncoders[fmt.Sprintf("%s/%s", typ, field)] = encoder +} + +// RegisterExtension register extension +func RegisterExtension(extension Extension) { + extensions = append(extensions, extension) +} + +func getTypeDecoderFromExtension(ctx *ctx, typ reflect2.Type) ValDecoder { + decoder := _getTypeDecoderFromExtension(ctx, typ) + if decoder != nil { + for _, extension := range extensions { + decoder = extension.DecorateDecoder(typ, decoder) + } + decoder = ctx.decoderExtension.DecorateDecoder(typ, decoder) + for _, extension := range ctx.extraExtensions { + decoder = extension.DecorateDecoder(typ, decoder) + } + } + return decoder +} +func _getTypeDecoderFromExtension(ctx *ctx, typ reflect2.Type) ValDecoder { + for _, extension := range extensions { + decoder := extension.CreateDecoder(typ) + if decoder != nil { + return decoder + } + } + decoder := ctx.decoderExtension.CreateDecoder(typ) + if decoder != nil { + return decoder + } + for _, extension := range ctx.extraExtensions { + decoder := extension.CreateDecoder(typ) + if decoder != nil { + return decoder + } + } + typeName := typ.String() + decoder = typeDecoders[typeName] + if decoder != nil { + return decoder + } + if typ.Kind() == reflect.Ptr { + ptrType := typ.(*reflect2.UnsafePtrType) + decoder := typeDecoders[ptrType.Elem().String()] + if decoder != nil { + return &OptionalDecoder{ptrType.Elem(), decoder} + } + } + return nil +} + +func getTypeEncoderFromExtension(ctx *ctx, typ reflect2.Type) ValEncoder { + encoder := _getTypeEncoderFromExtension(ctx, typ) + if encoder != nil { + for _, extension := range extensions { + encoder = extension.DecorateEncoder(typ, encoder) + } + encoder = ctx.encoderExtension.DecorateEncoder(typ, encoder) + for _, extension := range ctx.extraExtensions { + encoder = extension.DecorateEncoder(typ, encoder) + } + } + return encoder +} + +func _getTypeEncoderFromExtension(ctx *ctx, typ reflect2.Type) ValEncoder { + for _, extension := range extensions { + encoder := extension.CreateEncoder(typ) + if encoder != nil { + return encoder + } + } + encoder := ctx.encoderExtension.CreateEncoder(typ) + if encoder != nil { + return encoder + } + for _, extension := range ctx.extraExtensions { + encoder := extension.CreateEncoder(typ) + if encoder != nil { + return encoder + } + } + typeName := typ.String() + encoder = typeEncoders[typeName] + if encoder != nil { + return encoder + } + if typ.Kind() == reflect.Ptr { + typePtr := typ.(*reflect2.UnsafePtrType) + encoder := typeEncoders[typePtr.Elem().String()] + if encoder != nil { + return &OptionalEncoder{encoder} + } + } + return nil +} + +func describeStruct(ctx *ctx, typ reflect2.Type) *StructDescriptor { + structType := typ.(*reflect2.UnsafeStructType) + embeddedBindings := []*Binding{} + bindings := []*Binding{} + for i := 0; i < structType.NumField(); i++ { + field := structType.Field(i) + tag, hastag := field.Tag().Lookup(ctx.getTagKey()) + if ctx.onlyTaggedField && !hastag { + continue + } + tagParts := strings.Split(tag, ",") + if tag == "-" { + continue + } + if field.Anonymous() && (tag == "" || tagParts[0] == "") { + if field.Type().Kind() == reflect.Struct { + structDescriptor := describeStruct(ctx, field.Type()) + for _, binding := range structDescriptor.Fields { + binding.levels = append([]int{i}, binding.levels...) + omitempty := binding.Encoder.(*structFieldEncoder).omitempty + binding.Encoder = &structFieldEncoder{field, binding.Encoder, omitempty} + binding.Decoder = &structFieldDecoder{field, binding.Decoder} + embeddedBindings = append(embeddedBindings, binding) + } + continue + } else if field.Type().Kind() == reflect.Ptr { + ptrType := field.Type().(*reflect2.UnsafePtrType) + if ptrType.Elem().Kind() == reflect.Struct { + structDescriptor := describeStruct(ctx, ptrType.Elem()) + for _, binding := range structDescriptor.Fields { + binding.levels = append([]int{i}, binding.levels...) + omitempty := binding.Encoder.(*structFieldEncoder).omitempty + binding.Encoder = &dereferenceEncoder{binding.Encoder} + binding.Encoder = &structFieldEncoder{field, binding.Encoder, omitempty} + binding.Decoder = &dereferenceDecoder{ptrType.Elem(), binding.Decoder} + binding.Decoder = &structFieldDecoder{field, binding.Decoder} + embeddedBindings = append(embeddedBindings, binding) + } + continue + } + } + } + fieldNames := calcFieldNames(field.Name(), tagParts[0], tag) + fieldCacheKey := fmt.Sprintf("%s/%s", typ.String(), field.Name()) + decoder := fieldDecoders[fieldCacheKey] + if decoder == nil { + decoder = decoderOfType(ctx.append(field.Name()), field.Type()) + } + encoder := fieldEncoders[fieldCacheKey] + if encoder == nil { + encoder = encoderOfType(ctx.append(field.Name()), field.Type()) + } + binding := &Binding{ + Field: field, + FromNames: fieldNames, + ToNames: fieldNames, + Decoder: decoder, + Encoder: encoder, + } + binding.levels = []int{i} + bindings = append(bindings, binding) + } + return createStructDescriptor(ctx, typ, bindings, embeddedBindings) +} +func createStructDescriptor(ctx *ctx, typ reflect2.Type, bindings []*Binding, embeddedBindings []*Binding) *StructDescriptor { + structDescriptor := &StructDescriptor{ + Type: typ, + Fields: bindings, + } + for _, extension := range extensions { + extension.UpdateStructDescriptor(structDescriptor) + } + ctx.encoderExtension.UpdateStructDescriptor(structDescriptor) + ctx.decoderExtension.UpdateStructDescriptor(structDescriptor) + for _, extension := range ctx.extraExtensions { + extension.UpdateStructDescriptor(structDescriptor) + } + processTags(structDescriptor, ctx.frozenConfig) + // merge normal & embedded bindings & sort with original order + allBindings := sortableBindings(append(embeddedBindings, structDescriptor.Fields...)) + sort.Sort(allBindings) + structDescriptor.Fields = allBindings + return structDescriptor +} + +type sortableBindings []*Binding + +func (bindings sortableBindings) Len() int { + return len(bindings) +} + +func (bindings sortableBindings) Less(i, j int) bool { + left := bindings[i].levels + right := bindings[j].levels + k := 0 + for { + if left[k] < right[k] { + return true + } else if left[k] > right[k] { + return false + } + k++ + } +} + +func (bindings sortableBindings) Swap(i, j int) { + bindings[i], bindings[j] = bindings[j], bindings[i] +} + +func processTags(structDescriptor *StructDescriptor, cfg *frozenConfig) { + for _, binding := range structDescriptor.Fields { + shouldOmitEmpty := false + tagParts := strings.Split(binding.Field.Tag().Get(cfg.getTagKey()), ",") + for _, tagPart := range tagParts[1:] { + if tagPart == "omitempty" { + shouldOmitEmpty = true + } else if tagPart == "string" { + if binding.Field.Type().Kind() == reflect.String { + binding.Decoder = &stringModeStringDecoder{binding.Decoder, cfg} + binding.Encoder = &stringModeStringEncoder{binding.Encoder, cfg} + } else { + binding.Decoder = &stringModeNumberDecoder{binding.Decoder} + binding.Encoder = &stringModeNumberEncoder{binding.Encoder} + } + } + } + binding.Decoder = &structFieldDecoder{binding.Field, binding.Decoder} + binding.Encoder = &structFieldEncoder{binding.Field, binding.Encoder, shouldOmitEmpty} + } +} + +func calcFieldNames(originalFieldName string, tagProvidedFieldName string, wholeTag string) []string { + // ignore? + if wholeTag == "-" { + return []string{} + } + // rename? + var fieldNames []string + if tagProvidedFieldName == "" { + fieldNames = []string{originalFieldName} + } else { + fieldNames = []string{tagProvidedFieldName} + } + // private? + isNotExported := unicode.IsLower(rune(originalFieldName[0])) + if isNotExported { + fieldNames = []string{} + } + return fieldNames +} diff --git a/vendor/github.com/json-iterator/go/reflect_json_number.go b/vendor/github.com/json-iterator/go/reflect_json_number.go new file mode 100644 index 0000000..98d45c1 --- /dev/null +++ b/vendor/github.com/json-iterator/go/reflect_json_number.go @@ -0,0 +1,112 @@ +package jsoniter + +import ( + "encoding/json" + "github.com/modern-go/reflect2" + "strconv" + "unsafe" +) + +type Number string + +// String returns the literal text of the number. +func (n Number) String() string { return string(n) } + +// Float64 returns the number as a float64. +func (n Number) Float64() (float64, error) { + return strconv.ParseFloat(string(n), 64) +} + +// Int64 returns the number as an int64. +func (n Number) Int64() (int64, error) { + return strconv.ParseInt(string(n), 10, 64) +} + +func CastJsonNumber(val interface{}) (string, bool) { + switch typedVal := val.(type) { + case json.Number: + return string(typedVal), true + case Number: + return string(typedVal), true + } + return "", false +} + +var jsonNumberType = reflect2.TypeOfPtr((*json.Number)(nil)).Elem() +var jsoniterNumberType = reflect2.TypeOfPtr((*Number)(nil)).Elem() + +func createDecoderOfJsonNumber(ctx *ctx, typ reflect2.Type) ValDecoder { + if typ.AssignableTo(jsonNumberType) { + return &jsonNumberCodec{} + } + if typ.AssignableTo(jsoniterNumberType) { + return &jsoniterNumberCodec{} + } + return nil +} + +func createEncoderOfJsonNumber(ctx *ctx, typ reflect2.Type) ValEncoder { + if typ.AssignableTo(jsonNumberType) { + return &jsonNumberCodec{} + } + if typ.AssignableTo(jsoniterNumberType) { + return &jsoniterNumberCodec{} + } + return nil +} + +type jsonNumberCodec struct { +} + +func (codec *jsonNumberCodec) Decode(ptr unsafe.Pointer, iter *Iterator) { + switch iter.WhatIsNext() { + case StringValue: + *((*json.Number)(ptr)) = json.Number(iter.ReadString()) + case NilValue: + iter.skipFourBytes('n', 'u', 'l', 'l') + *((*json.Number)(ptr)) = "" + default: + *((*json.Number)(ptr)) = json.Number([]byte(iter.readNumberAsString())) + } +} + +func (codec *jsonNumberCodec) Encode(ptr unsafe.Pointer, stream *Stream) { + number := *((*json.Number)(ptr)) + if len(number) == 0 { + stream.writeByte('0') + } else { + stream.WriteRaw(string(number)) + } +} + +func (codec *jsonNumberCodec) IsEmpty(ptr unsafe.Pointer) bool { + return len(*((*json.Number)(ptr))) == 0 +} + +type jsoniterNumberCodec struct { +} + +func (codec *jsoniterNumberCodec) Decode(ptr unsafe.Pointer, iter *Iterator) { + switch iter.WhatIsNext() { + case StringValue: + *((*Number)(ptr)) = Number(iter.ReadString()) + case NilValue: + iter.skipFourBytes('n', 'u', 'l', 'l') + *((*Number)(ptr)) = "" + default: + *((*Number)(ptr)) = Number([]byte(iter.readNumberAsString())) + } +} + +func (codec *jsoniterNumberCodec) Encode(ptr unsafe.Pointer, stream *Stream) { + number := *((*Number)(ptr)) + if len(number) == 0 { + stream.writeByte('0') + } else { + stream.WriteRaw(string(number)) + } +} + +func (codec *jsoniterNumberCodec) IsEmpty(ptr unsafe.Pointer) bool { + return len(*((*Number)(ptr))) == 0 +} diff --git a/vendor/github.com/json-iterator/go/reflect_json_raw_message.go b/vendor/github.com/json-iterator/go/reflect_json_raw_message.go new file mode 100644 index 0000000..f261993 --- /dev/null +++ b/vendor/github.com/json-iterator/go/reflect_json_raw_message.go @@ -0,0 +1,60 @@ +package jsoniter + +import ( + "encoding/json" + "github.com/modern-go/reflect2" + "unsafe" +) + +var jsonRawMessageType = reflect2.TypeOfPtr((*json.RawMessage)(nil)).Elem() +var jsoniterRawMessageType = reflect2.TypeOfPtr((*RawMessage)(nil)).Elem() + +func createEncoderOfJsonRawMessage(ctx *ctx, typ reflect2.Type) ValEncoder { + if typ == jsonRawMessageType { + return &jsonRawMessageCodec{} + } + if typ == jsoniterRawMessageType { + return &jsoniterRawMessageCodec{} + } + return nil +} + +func createDecoderOfJsonRawMessage(ctx *ctx, typ reflect2.Type) ValDecoder { + if typ == jsonRawMessageType { + return &jsonRawMessageCodec{} + } + if typ == jsoniterRawMessageType { + return &jsoniterRawMessageCodec{} + } + return nil +} + +type jsonRawMessageCodec struct { +} + +func (codec *jsonRawMessageCodec) Decode(ptr unsafe.Pointer, iter *Iterator) { + *((*json.RawMessage)(ptr)) = json.RawMessage(iter.SkipAndReturnBytes()) +} + +func (codec *jsonRawMessageCodec) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.WriteRaw(string(*((*json.RawMessage)(ptr)))) +} + +func (codec *jsonRawMessageCodec) IsEmpty(ptr unsafe.Pointer) bool { + return len(*((*json.RawMessage)(ptr))) == 0 +} + +type jsoniterRawMessageCodec struct { +} + +func (codec *jsoniterRawMessageCodec) Decode(ptr unsafe.Pointer, iter *Iterator) { + *((*RawMessage)(ptr)) = RawMessage(iter.SkipAndReturnBytes()) +} + +func (codec *jsoniterRawMessageCodec) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.WriteRaw(string(*((*RawMessage)(ptr)))) +} + +func (codec *jsoniterRawMessageCodec) IsEmpty(ptr unsafe.Pointer) bool { + return len(*((*RawMessage)(ptr))) == 0 +} diff --git a/vendor/github.com/json-iterator/go/reflect_map.go b/vendor/github.com/json-iterator/go/reflect_map.go new file mode 100644 index 0000000..7f66a88 --- /dev/null +++ b/vendor/github.com/json-iterator/go/reflect_map.go @@ -0,0 +1,326 @@ +package jsoniter + +import ( + "fmt" + "github.com/modern-go/reflect2" + "io" + "reflect" + "sort" + "unsafe" +) + +func decoderOfMap(ctx *ctx, typ reflect2.Type) ValDecoder { + mapType := typ.(*reflect2.UnsafeMapType) + keyDecoder := decoderOfMapKey(ctx.append("[mapKey]"), mapType.Key()) + elemDecoder := decoderOfType(ctx.append("[mapElem]"), mapType.Elem()) + return &mapDecoder{ + mapType: mapType, + keyType: mapType.Key(), + elemType: mapType.Elem(), + keyDecoder: keyDecoder, + elemDecoder: elemDecoder, + } +} + +func encoderOfMap(ctx *ctx, typ reflect2.Type) ValEncoder { + mapType := typ.(*reflect2.UnsafeMapType) + if ctx.sortMapKeys { + return &sortKeysMapEncoder{ + mapType: mapType, + keyEncoder: encoderOfMapKey(ctx.append("[mapKey]"), mapType.Key()), + elemEncoder: encoderOfType(ctx.append("[mapElem]"), mapType.Elem()), + } + } + return &mapEncoder{ + mapType: mapType, + keyEncoder: encoderOfMapKey(ctx.append("[mapKey]"), mapType.Key()), + elemEncoder: encoderOfType(ctx.append("[mapElem]"), mapType.Elem()), + } +} + +func decoderOfMapKey(ctx *ctx, typ reflect2.Type) ValDecoder { + decoder := ctx.decoderExtension.CreateMapKeyDecoder(typ) + if decoder != nil { + return decoder + } + for _, extension := range ctx.extraExtensions { + decoder := extension.CreateMapKeyDecoder(typ) + if decoder != nil { + return decoder + } + } + switch typ.Kind() { + case reflect.String: + return decoderOfType(ctx, reflect2.DefaultTypeOfKind(reflect.String)) + case reflect.Bool, + reflect.Uint8, reflect.Int8, + reflect.Uint16, reflect.Int16, + reflect.Uint32, reflect.Int32, + reflect.Uint64, reflect.Int64, + reflect.Uint, reflect.Int, + reflect.Float32, reflect.Float64, + reflect.Uintptr: + typ = reflect2.DefaultTypeOfKind(typ.Kind()) + return &numericMapKeyDecoder{decoderOfType(ctx, typ)} + default: + ptrType := reflect2.PtrTo(typ) + if ptrType.Implements(textMarshalerType) { + return &referenceDecoder{ + &textUnmarshalerDecoder{ + valType: ptrType, + }, + } + } + if typ.Implements(textMarshalerType) { + return &textUnmarshalerDecoder{ + valType: typ, + } + } + return &lazyErrorDecoder{err: fmt.Errorf("unsupported map key type: %v", typ)} + } +} + +func encoderOfMapKey(ctx *ctx, typ reflect2.Type) ValEncoder { + encoder := ctx.encoderExtension.CreateMapKeyEncoder(typ) + if encoder != nil { + return encoder + } + for _, extension := range ctx.extraExtensions { + encoder := extension.CreateMapKeyEncoder(typ) + if encoder != nil { + return encoder + } + } + switch typ.Kind() { + case reflect.String: + return encoderOfType(ctx, reflect2.DefaultTypeOfKind(reflect.String)) + case reflect.Bool, + reflect.Uint8, reflect.Int8, + reflect.Uint16, reflect.Int16, + reflect.Uint32, reflect.Int32, + reflect.Uint64, reflect.Int64, + reflect.Uint, reflect.Int, + reflect.Float32, reflect.Float64, + reflect.Uintptr: + typ = reflect2.DefaultTypeOfKind(typ.Kind()) + return &numericMapKeyEncoder{encoderOfType(ctx, typ)} + default: + if typ == textMarshalerType { + return &directTextMarshalerEncoder{ + stringEncoder: ctx.EncoderOf(reflect2.TypeOf("")), + } + } + if typ.Implements(textMarshalerType) { + return &textMarshalerEncoder{ + valType: typ, + stringEncoder: ctx.EncoderOf(reflect2.TypeOf("")), + } + } + if typ.Kind() == reflect.Interface { + return &dynamicMapKeyEncoder{ctx, typ} + } + return &lazyErrorEncoder{err: fmt.Errorf("unsupported map key type: %v", typ)} + } +} + +type mapDecoder struct { + mapType *reflect2.UnsafeMapType + keyType reflect2.Type + elemType reflect2.Type + keyDecoder ValDecoder + elemDecoder ValDecoder +} + +func (decoder *mapDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + mapType := decoder.mapType + c := iter.nextToken() + if c == 'n' { + iter.skipThreeBytes('u', 'l', 'l') + *(*unsafe.Pointer)(ptr) = nil + mapType.UnsafeSet(ptr, mapType.UnsafeNew()) + return + } + if mapType.UnsafeIsNil(ptr) { + mapType.UnsafeSet(ptr, mapType.UnsafeMakeMap(0)) + } + if c != '{' { + iter.ReportError("ReadMapCB", `expect { or n, but found `+string([]byte{c})) + return + } + c = iter.nextToken() + if c == '}' { + return + } + if c != '"' { + iter.ReportError("ReadMapCB", `expect " after }, but found `+string([]byte{c})) + return + } + iter.unreadByte() + key := decoder.keyType.UnsafeNew() + decoder.keyDecoder.Decode(key, iter) + c = iter.nextToken() + if c != ':' { + iter.ReportError("ReadMapCB", "expect : after object field, but found "+string([]byte{c})) + return + } + elem := decoder.elemType.UnsafeNew() + decoder.elemDecoder.Decode(elem, iter) + decoder.mapType.UnsafeSetIndex(ptr, key, elem) + for c = iter.nextToken(); c == ','; c = iter.nextToken() { + key := decoder.keyType.UnsafeNew() + decoder.keyDecoder.Decode(key, iter) + c = iter.nextToken() + if c != ':' { + iter.ReportError("ReadMapCB", "expect : after object field, but found "+string([]byte{c})) + return + } + elem := decoder.elemType.UnsafeNew() + decoder.elemDecoder.Decode(elem, iter) + decoder.mapType.UnsafeSetIndex(ptr, key, elem) + } + if c != '}' { + iter.ReportError("ReadMapCB", `expect }, but found `+string([]byte{c})) + } +} + +type numericMapKeyDecoder struct { + decoder ValDecoder +} + +func (decoder *numericMapKeyDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + c := iter.nextToken() + if c != '"' { + iter.ReportError("ReadMapCB", `expect ", but found `+string([]byte{c})) + return + } + decoder.decoder.Decode(ptr, iter) + c = iter.nextToken() + if c != '"' { + iter.ReportError("ReadMapCB", `expect ", but found `+string([]byte{c})) + return + } +} + +type numericMapKeyEncoder struct { + encoder ValEncoder +} + +func (encoder *numericMapKeyEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.writeByte('"') + encoder.encoder.Encode(ptr, stream) + stream.writeByte('"') +} + +func (encoder *numericMapKeyEncoder) IsEmpty(ptr unsafe.Pointer) bool { + return false +} + +type dynamicMapKeyEncoder struct { + ctx *ctx + valType reflect2.Type +} + +func (encoder *dynamicMapKeyEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + obj := encoder.valType.UnsafeIndirect(ptr) + encoderOfMapKey(encoder.ctx, reflect2.TypeOf(obj)).Encode(reflect2.PtrOf(obj), stream) +} + +func (encoder *dynamicMapKeyEncoder) IsEmpty(ptr unsafe.Pointer) bool { + obj := encoder.valType.UnsafeIndirect(ptr) + return encoderOfMapKey(encoder.ctx, reflect2.TypeOf(obj)).IsEmpty(reflect2.PtrOf(obj)) +} + +type mapEncoder struct { + mapType *reflect2.UnsafeMapType + keyEncoder ValEncoder + elemEncoder ValEncoder +} + +func (encoder *mapEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.WriteObjectStart() + iter := encoder.mapType.UnsafeIterate(ptr) + for i := 0; iter.HasNext(); i++ { + if i != 0 { + stream.WriteMore() + } + key, elem := iter.UnsafeNext() + encoder.keyEncoder.Encode(key, stream) + if stream.indention > 0 { + stream.writeTwoBytes(byte(':'), byte(' ')) + } else { + stream.writeByte(':') + } + encoder.elemEncoder.Encode(elem, stream) + } + stream.WriteObjectEnd() +} + +func (encoder *mapEncoder) IsEmpty(ptr unsafe.Pointer) bool { + iter := encoder.mapType.UnsafeIterate(ptr) + return !iter.HasNext() +} + +type sortKeysMapEncoder struct { + mapType *reflect2.UnsafeMapType + keyEncoder ValEncoder + elemEncoder ValEncoder +} + +func (encoder *sortKeysMapEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + if *(*unsafe.Pointer)(ptr) == nil { + stream.WriteNil() + return + } + stream.WriteObjectStart() + mapIter := encoder.mapType.UnsafeIterate(ptr) + subStream := stream.cfg.BorrowStream(nil) + subIter := stream.cfg.BorrowIterator(nil) + keyValues := encodedKeyValues{} + for mapIter.HasNext() { + subStream.buf = make([]byte, 0, 64) + key, elem := mapIter.UnsafeNext() + encoder.keyEncoder.Encode(key, subStream) + if subStream.Error != nil && subStream.Error != io.EOF && stream.Error == nil { + stream.Error = subStream.Error + } + encodedKey := subStream.Buffer() + subIter.ResetBytes(encodedKey) + decodedKey := subIter.ReadString() + if stream.indention > 0 { + subStream.writeTwoBytes(byte(':'), byte(' ')) + } else { + subStream.writeByte(':') + } + encoder.elemEncoder.Encode(elem, subStream) + keyValues = append(keyValues, encodedKV{ + key: decodedKey, + keyValue: subStream.Buffer(), + }) + } + sort.Sort(keyValues) + for i, keyValue := range keyValues { + if i != 0 { + stream.WriteMore() + } + stream.Write(keyValue.keyValue) + } + stream.WriteObjectEnd() + stream.cfg.ReturnStream(subStream) + stream.cfg.ReturnIterator(subIter) +} + +func (encoder *sortKeysMapEncoder) IsEmpty(ptr unsafe.Pointer) bool { + iter := encoder.mapType.UnsafeIterate(ptr) + return !iter.HasNext() +} + +type encodedKeyValues []encodedKV + +type encodedKV struct { + key string + keyValue []byte +} + +func (sv encodedKeyValues) Len() int { return len(sv) } +func (sv encodedKeyValues) Swap(i, j int) { sv[i], sv[j] = sv[j], sv[i] } +func (sv encodedKeyValues) Less(i, j int) bool { return sv[i].key < sv[j].key } diff --git a/vendor/github.com/json-iterator/go/reflect_marshaler.go b/vendor/github.com/json-iterator/go/reflect_marshaler.go new file mode 100644 index 0000000..58ac959 --- /dev/null +++ b/vendor/github.com/json-iterator/go/reflect_marshaler.go @@ -0,0 +1,218 @@ +package jsoniter + +import ( + "encoding" + "encoding/json" + "github.com/modern-go/reflect2" + "unsafe" +) + +var marshalerType = reflect2.TypeOfPtr((*json.Marshaler)(nil)).Elem() +var unmarshalerType = reflect2.TypeOfPtr((*json.Unmarshaler)(nil)).Elem() +var textMarshalerType = reflect2.TypeOfPtr((*encoding.TextMarshaler)(nil)).Elem() +var textUnmarshalerType = reflect2.TypeOfPtr((*encoding.TextUnmarshaler)(nil)).Elem() + +func createDecoderOfMarshaler(ctx *ctx, typ reflect2.Type) ValDecoder { + ptrType := reflect2.PtrTo(typ) + if ptrType.Implements(unmarshalerType) { + return &referenceDecoder{ + &unmarshalerDecoder{ptrType}, + } + } + if ptrType.Implements(textUnmarshalerType) { + return &referenceDecoder{ + &textUnmarshalerDecoder{ptrType}, + } + } + return nil +} + +func createEncoderOfMarshaler(ctx *ctx, typ reflect2.Type) ValEncoder { + if typ == marshalerType { + checkIsEmpty := createCheckIsEmpty(ctx, typ) + var encoder ValEncoder = &directMarshalerEncoder{ + checkIsEmpty: checkIsEmpty, + } + return encoder + } + if typ.Implements(marshalerType) { + checkIsEmpty := createCheckIsEmpty(ctx, typ) + var encoder ValEncoder = &marshalerEncoder{ + valType: typ, + checkIsEmpty: checkIsEmpty, + } + return encoder + } + ptrType := reflect2.PtrTo(typ) + if ctx.prefix != "" && ptrType.Implements(marshalerType) { + checkIsEmpty := createCheckIsEmpty(ctx, ptrType) + var encoder ValEncoder = &marshalerEncoder{ + valType: ptrType, + checkIsEmpty: checkIsEmpty, + } + return &referenceEncoder{encoder} + } + if typ == textMarshalerType { + checkIsEmpty := createCheckIsEmpty(ctx, typ) + var encoder ValEncoder = &directTextMarshalerEncoder{ + checkIsEmpty: checkIsEmpty, + stringEncoder: ctx.EncoderOf(reflect2.TypeOf("")), + } + return encoder + } + if typ.Implements(textMarshalerType) { + checkIsEmpty := createCheckIsEmpty(ctx, typ) + var encoder ValEncoder = &textMarshalerEncoder{ + valType: typ, + stringEncoder: ctx.EncoderOf(reflect2.TypeOf("")), + checkIsEmpty: checkIsEmpty, + } + return encoder + } + // if prefix is empty, the type is the root type + if ctx.prefix != "" && ptrType.Implements(textMarshalerType) { + checkIsEmpty := createCheckIsEmpty(ctx, ptrType) + var encoder ValEncoder = &textMarshalerEncoder{ + valType: ptrType, + stringEncoder: ctx.EncoderOf(reflect2.TypeOf("")), + checkIsEmpty: checkIsEmpty, + } + return &referenceEncoder{encoder} + } + return nil +} + +type marshalerEncoder struct { + checkIsEmpty checkIsEmpty + valType reflect2.Type +} + +func (encoder *marshalerEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + obj := encoder.valType.UnsafeIndirect(ptr) + if encoder.valType.IsNullable() && reflect2.IsNil(obj) { + stream.WriteNil() + return + } + marshaler := obj.(json.Marshaler) + bytes, err := marshaler.MarshalJSON() + if err != nil { + stream.Error = err + } else { + stream.Write(bytes) + } +} + +func (encoder *marshalerEncoder) IsEmpty(ptr unsafe.Pointer) bool { + return encoder.checkIsEmpty.IsEmpty(ptr) +} + +type directMarshalerEncoder struct { + checkIsEmpty checkIsEmpty +} + +func (encoder *directMarshalerEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + marshaler := *(*json.Marshaler)(ptr) + if marshaler == nil { + stream.WriteNil() + return + } + bytes, err := marshaler.MarshalJSON() + if err != nil { + stream.Error = err + } else { + stream.Write(bytes) + } +} + +func (encoder *directMarshalerEncoder) IsEmpty(ptr unsafe.Pointer) bool { + return encoder.checkIsEmpty.IsEmpty(ptr) +} + +type textMarshalerEncoder struct { + valType reflect2.Type + stringEncoder ValEncoder + checkIsEmpty checkIsEmpty +} + +func (encoder *textMarshalerEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + obj := encoder.valType.UnsafeIndirect(ptr) + if encoder.valType.IsNullable() && reflect2.IsNil(obj) { + stream.WriteNil() + return + } + marshaler := (obj).(encoding.TextMarshaler) + bytes, err := marshaler.MarshalText() + if err != nil { + stream.Error = err + } else { + str := string(bytes) + encoder.stringEncoder.Encode(unsafe.Pointer(&str), stream) + } +} + +func (encoder *textMarshalerEncoder) IsEmpty(ptr unsafe.Pointer) bool { + return encoder.checkIsEmpty.IsEmpty(ptr) +} + +type directTextMarshalerEncoder struct { + stringEncoder ValEncoder + checkIsEmpty checkIsEmpty +} + +func (encoder *directTextMarshalerEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + marshaler := *(*encoding.TextMarshaler)(ptr) + if marshaler == nil { + stream.WriteNil() + return + } + bytes, err := marshaler.MarshalText() + if err != nil { + stream.Error = err + } else { + str := string(bytes) + encoder.stringEncoder.Encode(unsafe.Pointer(&str), stream) + } +} + +func (encoder *directTextMarshalerEncoder) IsEmpty(ptr unsafe.Pointer) bool { + return encoder.checkIsEmpty.IsEmpty(ptr) +} + +type unmarshalerDecoder struct { + valType reflect2.Type +} + +func (decoder *unmarshalerDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + valType := decoder.valType + obj := valType.UnsafeIndirect(ptr) + unmarshaler := obj.(json.Unmarshaler) + iter.nextToken() + iter.unreadByte() // skip spaces + bytes := iter.SkipAndReturnBytes() + err := unmarshaler.UnmarshalJSON(bytes) + if err != nil { + iter.ReportError("unmarshalerDecoder", err.Error()) + } +} + +type textUnmarshalerDecoder struct { + valType reflect2.Type +} + +func (decoder *textUnmarshalerDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + valType := decoder.valType + obj := valType.UnsafeIndirect(ptr) + if reflect2.IsNil(obj) { + ptrType := valType.(*reflect2.UnsafePtrType) + elemType := ptrType.Elem() + elem := elemType.UnsafeNew() + ptrType.UnsafeSet(ptr, unsafe.Pointer(&elem)) + obj = valType.UnsafeIndirect(ptr) + } + unmarshaler := (obj).(encoding.TextUnmarshaler) + str := iter.ReadString() + err := unmarshaler.UnmarshalText([]byte(str)) + if err != nil { + iter.ReportError("textUnmarshalerDecoder", err.Error()) + } +} diff --git a/vendor/github.com/json-iterator/go/reflect_native.go b/vendor/github.com/json-iterator/go/reflect_native.go new file mode 100644 index 0000000..9042eb0 --- /dev/null +++ b/vendor/github.com/json-iterator/go/reflect_native.go @@ -0,0 +1,451 @@ +package jsoniter + +import ( + "encoding/base64" + "reflect" + "strconv" + "unsafe" + + "github.com/modern-go/reflect2" +) + +const ptrSize = 32 << uintptr(^uintptr(0)>>63) + +func createEncoderOfNative(ctx *ctx, typ reflect2.Type) ValEncoder { + if typ.Kind() == reflect.Slice && typ.(reflect2.SliceType).Elem().Kind() == reflect.Uint8 { + sliceDecoder := decoderOfSlice(ctx, typ) + return &base64Codec{sliceDecoder: sliceDecoder} + } + typeName := typ.String() + kind := typ.Kind() + switch kind { + case reflect.String: + if typeName != "string" { + return encoderOfType(ctx, reflect2.TypeOfPtr((*string)(nil)).Elem()) + } + return &stringCodec{} + case reflect.Int: + if typeName != "int" { + return encoderOfType(ctx, reflect2.TypeOfPtr((*int)(nil)).Elem()) + } + if strconv.IntSize == 32 { + return &int32Codec{} + } + return &int64Codec{} + case reflect.Int8: + if typeName != "int8" { + return encoderOfType(ctx, reflect2.TypeOfPtr((*int8)(nil)).Elem()) + } + return &int8Codec{} + case reflect.Int16: + if typeName != "int16" { + return encoderOfType(ctx, reflect2.TypeOfPtr((*int16)(nil)).Elem()) + } + return &int16Codec{} + case reflect.Int32: + if typeName != "int32" { + return encoderOfType(ctx, reflect2.TypeOfPtr((*int32)(nil)).Elem()) + } + return &int32Codec{} + case reflect.Int64: + if typeName != "int64" { + return encoderOfType(ctx, reflect2.TypeOfPtr((*int64)(nil)).Elem()) + } + return &int64Codec{} + case reflect.Uint: + if typeName != "uint" { + return encoderOfType(ctx, reflect2.TypeOfPtr((*uint)(nil)).Elem()) + } + if strconv.IntSize == 32 { + return &uint32Codec{} + } + return &uint64Codec{} + case reflect.Uint8: + if typeName != "uint8" { + return encoderOfType(ctx, reflect2.TypeOfPtr((*uint8)(nil)).Elem()) + } + return &uint8Codec{} + case reflect.Uint16: + if typeName != "uint16" { + return encoderOfType(ctx, reflect2.TypeOfPtr((*uint16)(nil)).Elem()) + } + return &uint16Codec{} + case reflect.Uint32: + if typeName != "uint32" { + return encoderOfType(ctx, reflect2.TypeOfPtr((*uint32)(nil)).Elem()) + } + return &uint32Codec{} + case reflect.Uintptr: + if typeName != "uintptr" { + return encoderOfType(ctx, reflect2.TypeOfPtr((*uintptr)(nil)).Elem()) + } + if ptrSize == 32 { + return &uint32Codec{} + } + return &uint64Codec{} + case reflect.Uint64: + if typeName != "uint64" { + return encoderOfType(ctx, reflect2.TypeOfPtr((*uint64)(nil)).Elem()) + } + return &uint64Codec{} + case reflect.Float32: + if typeName != "float32" { + return encoderOfType(ctx, reflect2.TypeOfPtr((*float32)(nil)).Elem()) + } + return &float32Codec{} + case reflect.Float64: + if typeName != "float64" { + return encoderOfType(ctx, reflect2.TypeOfPtr((*float64)(nil)).Elem()) + } + return &float64Codec{} + case reflect.Bool: + if typeName != "bool" { + return encoderOfType(ctx, reflect2.TypeOfPtr((*bool)(nil)).Elem()) + } + return &boolCodec{} + } + return nil +} + +func createDecoderOfNative(ctx *ctx, typ reflect2.Type) ValDecoder { + if typ.Kind() == reflect.Slice && typ.(reflect2.SliceType).Elem().Kind() == reflect.Uint8 { + sliceDecoder := decoderOfSlice(ctx, typ) + return &base64Codec{sliceDecoder: sliceDecoder} + } + typeName := typ.String() + switch typ.Kind() { + case reflect.String: + if typeName != "string" { + return decoderOfType(ctx, reflect2.TypeOfPtr((*string)(nil)).Elem()) + } + return &stringCodec{} + case reflect.Int: + if typeName != "int" { + return decoderOfType(ctx, reflect2.TypeOfPtr((*int)(nil)).Elem()) + } + if strconv.IntSize == 32 { + return &int32Codec{} + } + return &int64Codec{} + case reflect.Int8: + if typeName != "int8" { + return decoderOfType(ctx, reflect2.TypeOfPtr((*int8)(nil)).Elem()) + } + return &int8Codec{} + case reflect.Int16: + if typeName != "int16" { + return decoderOfType(ctx, reflect2.TypeOfPtr((*int16)(nil)).Elem()) + } + return &int16Codec{} + case reflect.Int32: + if typeName != "int32" { + return decoderOfType(ctx, reflect2.TypeOfPtr((*int32)(nil)).Elem()) + } + return &int32Codec{} + case reflect.Int64: + if typeName != "int64" { + return decoderOfType(ctx, reflect2.TypeOfPtr((*int64)(nil)).Elem()) + } + return &int64Codec{} + case reflect.Uint: + if typeName != "uint" { + return decoderOfType(ctx, reflect2.TypeOfPtr((*uint)(nil)).Elem()) + } + if strconv.IntSize == 32 { + return &uint32Codec{} + } + return &uint64Codec{} + case reflect.Uint8: + if typeName != "uint8" { + return decoderOfType(ctx, reflect2.TypeOfPtr((*uint8)(nil)).Elem()) + } + return &uint8Codec{} + case reflect.Uint16: + if typeName != "uint16" { + return decoderOfType(ctx, reflect2.TypeOfPtr((*uint16)(nil)).Elem()) + } + return &uint16Codec{} + case reflect.Uint32: + if typeName != "uint32" { + return decoderOfType(ctx, reflect2.TypeOfPtr((*uint32)(nil)).Elem()) + } + return &uint32Codec{} + case reflect.Uintptr: + if typeName != "uintptr" { + return decoderOfType(ctx, reflect2.TypeOfPtr((*uintptr)(nil)).Elem()) + } + if ptrSize == 32 { + return &uint32Codec{} + } + return &uint64Codec{} + case reflect.Uint64: + if typeName != "uint64" { + return decoderOfType(ctx, reflect2.TypeOfPtr((*uint64)(nil)).Elem()) + } + return &uint64Codec{} + case reflect.Float32: + if typeName != "float32" { + return decoderOfType(ctx, reflect2.TypeOfPtr((*float32)(nil)).Elem()) + } + return &float32Codec{} + case reflect.Float64: + if typeName != "float64" { + return decoderOfType(ctx, reflect2.TypeOfPtr((*float64)(nil)).Elem()) + } + return &float64Codec{} + case reflect.Bool: + if typeName != "bool" { + return decoderOfType(ctx, reflect2.TypeOfPtr((*bool)(nil)).Elem()) + } + return &boolCodec{} + } + return nil +} + +type stringCodec struct { +} + +func (codec *stringCodec) Decode(ptr unsafe.Pointer, iter *Iterator) { + *((*string)(ptr)) = iter.ReadString() +} + +func (codec *stringCodec) Encode(ptr unsafe.Pointer, stream *Stream) { + str := *((*string)(ptr)) + stream.WriteString(str) +} + +func (codec *stringCodec) IsEmpty(ptr unsafe.Pointer) bool { + return *((*string)(ptr)) == "" +} + +type int8Codec struct { +} + +func (codec *int8Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.ReadNil() { + *((*int8)(ptr)) = iter.ReadInt8() + } +} + +func (codec *int8Codec) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.WriteInt8(*((*int8)(ptr))) +} + +func (codec *int8Codec) IsEmpty(ptr unsafe.Pointer) bool { + return *((*int8)(ptr)) == 0 +} + +type int16Codec struct { +} + +func (codec *int16Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.ReadNil() { + *((*int16)(ptr)) = iter.ReadInt16() + } +} + +func (codec *int16Codec) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.WriteInt16(*((*int16)(ptr))) +} + +func (codec *int16Codec) IsEmpty(ptr unsafe.Pointer) bool { + return *((*int16)(ptr)) == 0 +} + +type int32Codec struct { +} + +func (codec *int32Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.ReadNil() { + *((*int32)(ptr)) = iter.ReadInt32() + } +} + +func (codec *int32Codec) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.WriteInt32(*((*int32)(ptr))) +} + +func (codec *int32Codec) IsEmpty(ptr unsafe.Pointer) bool { + return *((*int32)(ptr)) == 0 +} + +type int64Codec struct { +} + +func (codec *int64Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.ReadNil() { + *((*int64)(ptr)) = iter.ReadInt64() + } +} + +func (codec *int64Codec) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.WriteInt64(*((*int64)(ptr))) +} + +func (codec *int64Codec) IsEmpty(ptr unsafe.Pointer) bool { + return *((*int64)(ptr)) == 0 +} + +type uint8Codec struct { +} + +func (codec *uint8Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.ReadNil() { + *((*uint8)(ptr)) = iter.ReadUint8() + } +} + +func (codec *uint8Codec) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.WriteUint8(*((*uint8)(ptr))) +} + +func (codec *uint8Codec) IsEmpty(ptr unsafe.Pointer) bool { + return *((*uint8)(ptr)) == 0 +} + +type uint16Codec struct { +} + +func (codec *uint16Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.ReadNil() { + *((*uint16)(ptr)) = iter.ReadUint16() + } +} + +func (codec *uint16Codec) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.WriteUint16(*((*uint16)(ptr))) +} + +func (codec *uint16Codec) IsEmpty(ptr unsafe.Pointer) bool { + return *((*uint16)(ptr)) == 0 +} + +type uint32Codec struct { +} + +func (codec *uint32Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.ReadNil() { + *((*uint32)(ptr)) = iter.ReadUint32() + } +} + +func (codec *uint32Codec) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.WriteUint32(*((*uint32)(ptr))) +} + +func (codec *uint32Codec) IsEmpty(ptr unsafe.Pointer) bool { + return *((*uint32)(ptr)) == 0 +} + +type uint64Codec struct { +} + +func (codec *uint64Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.ReadNil() { + *((*uint64)(ptr)) = iter.ReadUint64() + } +} + +func (codec *uint64Codec) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.WriteUint64(*((*uint64)(ptr))) +} + +func (codec *uint64Codec) IsEmpty(ptr unsafe.Pointer) bool { + return *((*uint64)(ptr)) == 0 +} + +type float32Codec struct { +} + +func (codec *float32Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.ReadNil() { + *((*float32)(ptr)) = iter.ReadFloat32() + } +} + +func (codec *float32Codec) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.WriteFloat32(*((*float32)(ptr))) +} + +func (codec *float32Codec) IsEmpty(ptr unsafe.Pointer) bool { + return *((*float32)(ptr)) == 0 +} + +type float64Codec struct { +} + +func (codec *float64Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.ReadNil() { + *((*float64)(ptr)) = iter.ReadFloat64() + } +} + +func (codec *float64Codec) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.WriteFloat64(*((*float64)(ptr))) +} + +func (codec *float64Codec) IsEmpty(ptr unsafe.Pointer) bool { + return *((*float64)(ptr)) == 0 +} + +type boolCodec struct { +} + +func (codec *boolCodec) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.ReadNil() { + *((*bool)(ptr)) = iter.ReadBool() + } +} + +func (codec *boolCodec) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.WriteBool(*((*bool)(ptr))) +} + +func (codec *boolCodec) IsEmpty(ptr unsafe.Pointer) bool { + return !(*((*bool)(ptr))) +} + +type base64Codec struct { + sliceType *reflect2.UnsafeSliceType + sliceDecoder ValDecoder +} + +func (codec *base64Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { + if iter.ReadNil() { + codec.sliceType.UnsafeSetNil(ptr) + return + } + switch iter.WhatIsNext() { + case StringValue: + src := iter.ReadString() + dst, err := base64.StdEncoding.DecodeString(src) + if err != nil { + iter.ReportError("decode base64", err.Error()) + } else { + codec.sliceType.UnsafeSet(ptr, unsafe.Pointer(&dst)) + } + case ArrayValue: + codec.sliceDecoder.Decode(ptr, iter) + default: + iter.ReportError("base64Codec", "invalid input") + } +} + +func (codec *base64Codec) Encode(ptr unsafe.Pointer, stream *Stream) { + src := *((*[]byte)(ptr)) + if len(src) == 0 { + stream.WriteNil() + return + } + encoding := base64.StdEncoding + stream.writeByte('"') + size := encoding.EncodedLen(len(src)) + buf := make([]byte, size) + encoding.Encode(buf, src) + stream.buf = append(stream.buf, buf...) + stream.writeByte('"') +} + +func (codec *base64Codec) IsEmpty(ptr unsafe.Pointer) bool { + return len(*((*[]byte)(ptr))) == 0 +} diff --git a/vendor/github.com/json-iterator/go/reflect_optional.go b/vendor/github.com/json-iterator/go/reflect_optional.go new file mode 100644 index 0000000..43ec71d --- /dev/null +++ b/vendor/github.com/json-iterator/go/reflect_optional.go @@ -0,0 +1,133 @@ +package jsoniter + +import ( + "github.com/modern-go/reflect2" + "reflect" + "unsafe" +) + +func decoderOfOptional(ctx *ctx, typ reflect2.Type) ValDecoder { + ptrType := typ.(*reflect2.UnsafePtrType) + elemType := ptrType.Elem() + decoder := decoderOfType(ctx, elemType) + if ctx.prefix == "" && elemType.Kind() == reflect.Ptr { + return &dereferenceDecoder{elemType, decoder} + } + return &OptionalDecoder{elemType, decoder} +} + +func encoderOfOptional(ctx *ctx, typ reflect2.Type) ValEncoder { + ptrType := typ.(*reflect2.UnsafePtrType) + elemType := ptrType.Elem() + elemEncoder := encoderOfType(ctx, elemType) + encoder := &OptionalEncoder{elemEncoder} + return encoder +} + +type OptionalDecoder struct { + ValueType reflect2.Type + ValueDecoder ValDecoder +} + +func (decoder *OptionalDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + if iter.ReadNil() { + *((*unsafe.Pointer)(ptr)) = nil + } else { + if *((*unsafe.Pointer)(ptr)) == nil { + //pointer to null, we have to allocate memory to hold the value + newPtr := decoder.ValueType.UnsafeNew() + decoder.ValueDecoder.Decode(newPtr, iter) + *((*unsafe.Pointer)(ptr)) = newPtr + } else { + //reuse existing instance + decoder.ValueDecoder.Decode(*((*unsafe.Pointer)(ptr)), iter) + } + } +} + +type dereferenceDecoder struct { + // only to deference a pointer + valueType reflect2.Type + valueDecoder ValDecoder +} + +func (decoder *dereferenceDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + if *((*unsafe.Pointer)(ptr)) == nil { + //pointer to null, we have to allocate memory to hold the value + newPtr := decoder.valueType.UnsafeNew() + decoder.valueDecoder.Decode(newPtr, iter) + *((*unsafe.Pointer)(ptr)) = newPtr + } else { + //reuse existing instance + decoder.valueDecoder.Decode(*((*unsafe.Pointer)(ptr)), iter) + } +} + +type OptionalEncoder struct { + ValueEncoder ValEncoder +} + +func (encoder *OptionalEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + if *((*unsafe.Pointer)(ptr)) == nil { + stream.WriteNil() + } else { + encoder.ValueEncoder.Encode(*((*unsafe.Pointer)(ptr)), stream) + } +} + +func (encoder *OptionalEncoder) IsEmpty(ptr unsafe.Pointer) bool { + return *((*unsafe.Pointer)(ptr)) == nil +} + +type dereferenceEncoder struct { + ValueEncoder ValEncoder +} + +func (encoder *dereferenceEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + if *((*unsafe.Pointer)(ptr)) == nil { + stream.WriteNil() + } else { + encoder.ValueEncoder.Encode(*((*unsafe.Pointer)(ptr)), stream) + } +} + +func (encoder *dereferenceEncoder) IsEmpty(ptr unsafe.Pointer) bool { + dePtr := *((*unsafe.Pointer)(ptr)) + if dePtr == nil { + return true + } + return encoder.ValueEncoder.IsEmpty(dePtr) +} + +func (encoder *dereferenceEncoder) IsEmbeddedPtrNil(ptr unsafe.Pointer) bool { + deReferenced := *((*unsafe.Pointer)(ptr)) + if deReferenced == nil { + return true + } + isEmbeddedPtrNil, converted := encoder.ValueEncoder.(IsEmbeddedPtrNil) + if !converted { + return false + } + fieldPtr := unsafe.Pointer(deReferenced) + return isEmbeddedPtrNil.IsEmbeddedPtrNil(fieldPtr) +} + +type referenceEncoder struct { + encoder ValEncoder +} + +func (encoder *referenceEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + encoder.encoder.Encode(unsafe.Pointer(&ptr), stream) +} + +func (encoder *referenceEncoder) IsEmpty(ptr unsafe.Pointer) bool { + return encoder.encoder.IsEmpty(unsafe.Pointer(&ptr)) +} + +type referenceDecoder struct { + decoder ValDecoder +} + +func (decoder *referenceDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + decoder.decoder.Decode(unsafe.Pointer(&ptr), iter) +} diff --git a/vendor/github.com/json-iterator/go/reflect_slice.go b/vendor/github.com/json-iterator/go/reflect_slice.go new file mode 100644 index 0000000..9441d79 --- /dev/null +++ b/vendor/github.com/json-iterator/go/reflect_slice.go @@ -0,0 +1,99 @@ +package jsoniter + +import ( + "fmt" + "github.com/modern-go/reflect2" + "io" + "unsafe" +) + +func decoderOfSlice(ctx *ctx, typ reflect2.Type) ValDecoder { + sliceType := typ.(*reflect2.UnsafeSliceType) + decoder := decoderOfType(ctx.append("[sliceElem]"), sliceType.Elem()) + return &sliceDecoder{sliceType, decoder} +} + +func encoderOfSlice(ctx *ctx, typ reflect2.Type) ValEncoder { + sliceType := typ.(*reflect2.UnsafeSliceType) + encoder := encoderOfType(ctx.append("[sliceElem]"), sliceType.Elem()) + return &sliceEncoder{sliceType, encoder} +} + +type sliceEncoder struct { + sliceType *reflect2.UnsafeSliceType + elemEncoder ValEncoder +} + +func (encoder *sliceEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + if encoder.sliceType.UnsafeIsNil(ptr) { + stream.WriteNil() + return + } + length := encoder.sliceType.UnsafeLengthOf(ptr) + if length == 0 { + stream.WriteEmptyArray() + return + } + stream.WriteArrayStart() + encoder.elemEncoder.Encode(encoder.sliceType.UnsafeGetIndex(ptr, 0), stream) + for i := 1; i < length; i++ { + stream.WriteMore() + elemPtr := encoder.sliceType.UnsafeGetIndex(ptr, i) + encoder.elemEncoder.Encode(elemPtr, stream) + } + stream.WriteArrayEnd() + if stream.Error != nil && stream.Error != io.EOF { + stream.Error = fmt.Errorf("%v: %s", encoder.sliceType, stream.Error.Error()) + } +} + +func (encoder *sliceEncoder) IsEmpty(ptr unsafe.Pointer) bool { + return encoder.sliceType.UnsafeLengthOf(ptr) == 0 +} + +type sliceDecoder struct { + sliceType *reflect2.UnsafeSliceType + elemDecoder ValDecoder +} + +func (decoder *sliceDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + decoder.doDecode(ptr, iter) + if iter.Error != nil && iter.Error != io.EOF { + iter.Error = fmt.Errorf("%v: %s", decoder.sliceType, iter.Error.Error()) + } +} + +func (decoder *sliceDecoder) doDecode(ptr unsafe.Pointer, iter *Iterator) { + c := iter.nextToken() + sliceType := decoder.sliceType + if c == 'n' { + iter.skipThreeBytes('u', 'l', 'l') + sliceType.UnsafeSetNil(ptr) + return + } + if c != '[' { + iter.ReportError("decode slice", "expect [ or n, but found "+string([]byte{c})) + return + } + c = iter.nextToken() + if c == ']' { + sliceType.UnsafeSet(ptr, sliceType.UnsafeMakeSlice(0, 0)) + return + } + iter.unreadByte() + sliceType.UnsafeGrow(ptr, 1) + elemPtr := sliceType.UnsafeGetIndex(ptr, 0) + decoder.elemDecoder.Decode(elemPtr, iter) + length := 1 + for c = iter.nextToken(); c == ','; c = iter.nextToken() { + idx := length + length += 1 + sliceType.UnsafeGrow(ptr, length) + elemPtr = sliceType.UnsafeGetIndex(ptr, idx) + decoder.elemDecoder.Decode(elemPtr, iter) + } + if c != ']' { + iter.ReportError("decode slice", "expect ], but found "+string([]byte{c})) + return + } +} diff --git a/vendor/github.com/json-iterator/go/reflect_struct_decoder.go b/vendor/github.com/json-iterator/go/reflect_struct_decoder.go new file mode 100644 index 0000000..355d2d1 --- /dev/null +++ b/vendor/github.com/json-iterator/go/reflect_struct_decoder.go @@ -0,0 +1,1048 @@ +package jsoniter + +import ( + "fmt" + "io" + "strings" + "unsafe" + + "github.com/modern-go/reflect2" +) + +func decoderOfStruct(ctx *ctx, typ reflect2.Type) ValDecoder { + bindings := map[string]*Binding{} + structDescriptor := describeStruct(ctx, typ) + for _, binding := range structDescriptor.Fields { + for _, fromName := range binding.FromNames { + old := bindings[fromName] + if old == nil { + bindings[fromName] = binding + continue + } + ignoreOld, ignoreNew := resolveConflictBinding(ctx.frozenConfig, old, binding) + if ignoreOld { + delete(bindings, fromName) + } + if !ignoreNew { + bindings[fromName] = binding + } + } + } + fields := map[string]*structFieldDecoder{} + for k, binding := range bindings { + fields[k] = binding.Decoder.(*structFieldDecoder) + } + + if !ctx.caseSensitive() { + for k, binding := range bindings { + if _, found := fields[strings.ToLower(k)]; !found { + fields[strings.ToLower(k)] = binding.Decoder.(*structFieldDecoder) + } + } + } + + return createStructDecoder(ctx, typ, fields) +} + +func createStructDecoder(ctx *ctx, typ reflect2.Type, fields map[string]*structFieldDecoder) ValDecoder { + if ctx.disallowUnknownFields { + return &generalStructDecoder{typ: typ, fields: fields, disallowUnknownFields: true} + } + knownHash := map[int64]struct{}{ + 0: {}, + } + + switch len(fields) { + case 0: + return &skipObjectDecoder{typ} + case 1: + for fieldName, fieldDecoder := range fields { + fieldHash := calcHash(fieldName, ctx.caseSensitive()) + _, known := knownHash[fieldHash] + if known { + return &generalStructDecoder{typ, fields, false} + } + knownHash[fieldHash] = struct{}{} + return &oneFieldStructDecoder{typ, fieldHash, fieldDecoder} + } + case 2: + var fieldHash1 int64 + var fieldHash2 int64 + var fieldDecoder1 *structFieldDecoder + var fieldDecoder2 *structFieldDecoder + for fieldName, fieldDecoder := range fields { + fieldHash := calcHash(fieldName, ctx.caseSensitive()) + _, known := knownHash[fieldHash] + if known { + return &generalStructDecoder{typ, fields, false} + } + knownHash[fieldHash] = struct{}{} + if fieldHash1 == 0 { + fieldHash1 = fieldHash + fieldDecoder1 = fieldDecoder + } else { + fieldHash2 = fieldHash + fieldDecoder2 = fieldDecoder + } + } + return &twoFieldsStructDecoder{typ, fieldHash1, fieldDecoder1, fieldHash2, fieldDecoder2} + case 3: + var fieldName1 int64 + var fieldName2 int64 + var fieldName3 int64 + var fieldDecoder1 *structFieldDecoder + var fieldDecoder2 *structFieldDecoder + var fieldDecoder3 *structFieldDecoder + for fieldName, fieldDecoder := range fields { + fieldHash := calcHash(fieldName, ctx.caseSensitive()) + _, known := knownHash[fieldHash] + if known { + return &generalStructDecoder{typ, fields, false} + } + knownHash[fieldHash] = struct{}{} + if fieldName1 == 0 { + fieldName1 = fieldHash + fieldDecoder1 = fieldDecoder + } else if fieldName2 == 0 { + fieldName2 = fieldHash + fieldDecoder2 = fieldDecoder + } else { + fieldName3 = fieldHash + fieldDecoder3 = fieldDecoder + } + } + return &threeFieldsStructDecoder{typ, + fieldName1, fieldDecoder1, + fieldName2, fieldDecoder2, + fieldName3, fieldDecoder3} + case 4: + var fieldName1 int64 + var fieldName2 int64 + var fieldName3 int64 + var fieldName4 int64 + var fieldDecoder1 *structFieldDecoder + var fieldDecoder2 *structFieldDecoder + var fieldDecoder3 *structFieldDecoder + var fieldDecoder4 *structFieldDecoder + for fieldName, fieldDecoder := range fields { + fieldHash := calcHash(fieldName, ctx.caseSensitive()) + _, known := knownHash[fieldHash] + if known { + return &generalStructDecoder{typ, fields, false} + } + knownHash[fieldHash] = struct{}{} + if fieldName1 == 0 { + fieldName1 = fieldHash + fieldDecoder1 = fieldDecoder + } else if fieldName2 == 0 { + fieldName2 = fieldHash + fieldDecoder2 = fieldDecoder + } else if fieldName3 == 0 { + fieldName3 = fieldHash + fieldDecoder3 = fieldDecoder + } else { + fieldName4 = fieldHash + fieldDecoder4 = fieldDecoder + } + } + return &fourFieldsStructDecoder{typ, + fieldName1, fieldDecoder1, + fieldName2, fieldDecoder2, + fieldName3, fieldDecoder3, + fieldName4, fieldDecoder4} + case 5: + var fieldName1 int64 + var fieldName2 int64 + var fieldName3 int64 + var fieldName4 int64 + var fieldName5 int64 + var fieldDecoder1 *structFieldDecoder + var fieldDecoder2 *structFieldDecoder + var fieldDecoder3 *structFieldDecoder + var fieldDecoder4 *structFieldDecoder + var fieldDecoder5 *structFieldDecoder + for fieldName, fieldDecoder := range fields { + fieldHash := calcHash(fieldName, ctx.caseSensitive()) + _, known := knownHash[fieldHash] + if known { + return &generalStructDecoder{typ, fields, false} + } + knownHash[fieldHash] = struct{}{} + if fieldName1 == 0 { + fieldName1 = fieldHash + fieldDecoder1 = fieldDecoder + } else if fieldName2 == 0 { + fieldName2 = fieldHash + fieldDecoder2 = fieldDecoder + } else if fieldName3 == 0 { + fieldName3 = fieldHash + fieldDecoder3 = fieldDecoder + } else if fieldName4 == 0 { + fieldName4 = fieldHash + fieldDecoder4 = fieldDecoder + } else { + fieldName5 = fieldHash + fieldDecoder5 = fieldDecoder + } + } + return &fiveFieldsStructDecoder{typ, + fieldName1, fieldDecoder1, + fieldName2, fieldDecoder2, + fieldName3, fieldDecoder3, + fieldName4, fieldDecoder4, + fieldName5, fieldDecoder5} + case 6: + var fieldName1 int64 + var fieldName2 int64 + var fieldName3 int64 + var fieldName4 int64 + var fieldName5 int64 + var fieldName6 int64 + var fieldDecoder1 *structFieldDecoder + var fieldDecoder2 *structFieldDecoder + var fieldDecoder3 *structFieldDecoder + var fieldDecoder4 *structFieldDecoder + var fieldDecoder5 *structFieldDecoder + var fieldDecoder6 *structFieldDecoder + for fieldName, fieldDecoder := range fields { + fieldHash := calcHash(fieldName, ctx.caseSensitive()) + _, known := knownHash[fieldHash] + if known { + return &generalStructDecoder{typ, fields, false} + } + knownHash[fieldHash] = struct{}{} + if fieldName1 == 0 { + fieldName1 = fieldHash + fieldDecoder1 = fieldDecoder + } else if fieldName2 == 0 { + fieldName2 = fieldHash + fieldDecoder2 = fieldDecoder + } else if fieldName3 == 0 { + fieldName3 = fieldHash + fieldDecoder3 = fieldDecoder + } else if fieldName4 == 0 { + fieldName4 = fieldHash + fieldDecoder4 = fieldDecoder + } else if fieldName5 == 0 { + fieldName5 = fieldHash + fieldDecoder5 = fieldDecoder + } else { + fieldName6 = fieldHash + fieldDecoder6 = fieldDecoder + } + } + return &sixFieldsStructDecoder{typ, + fieldName1, fieldDecoder1, + fieldName2, fieldDecoder2, + fieldName3, fieldDecoder3, + fieldName4, fieldDecoder4, + fieldName5, fieldDecoder5, + fieldName6, fieldDecoder6} + case 7: + var fieldName1 int64 + var fieldName2 int64 + var fieldName3 int64 + var fieldName4 int64 + var fieldName5 int64 + var fieldName6 int64 + var fieldName7 int64 + var fieldDecoder1 *structFieldDecoder + var fieldDecoder2 *structFieldDecoder + var fieldDecoder3 *structFieldDecoder + var fieldDecoder4 *structFieldDecoder + var fieldDecoder5 *structFieldDecoder + var fieldDecoder6 *structFieldDecoder + var fieldDecoder7 *structFieldDecoder + for fieldName, fieldDecoder := range fields { + fieldHash := calcHash(fieldName, ctx.caseSensitive()) + _, known := knownHash[fieldHash] + if known { + return &generalStructDecoder{typ, fields, false} + } + knownHash[fieldHash] = struct{}{} + if fieldName1 == 0 { + fieldName1 = fieldHash + fieldDecoder1 = fieldDecoder + } else if fieldName2 == 0 { + fieldName2 = fieldHash + fieldDecoder2 = fieldDecoder + } else if fieldName3 == 0 { + fieldName3 = fieldHash + fieldDecoder3 = fieldDecoder + } else if fieldName4 == 0 { + fieldName4 = fieldHash + fieldDecoder4 = fieldDecoder + } else if fieldName5 == 0 { + fieldName5 = fieldHash + fieldDecoder5 = fieldDecoder + } else if fieldName6 == 0 { + fieldName6 = fieldHash + fieldDecoder6 = fieldDecoder + } else { + fieldName7 = fieldHash + fieldDecoder7 = fieldDecoder + } + } + return &sevenFieldsStructDecoder{typ, + fieldName1, fieldDecoder1, + fieldName2, fieldDecoder2, + fieldName3, fieldDecoder3, + fieldName4, fieldDecoder4, + fieldName5, fieldDecoder5, + fieldName6, fieldDecoder6, + fieldName7, fieldDecoder7} + case 8: + var fieldName1 int64 + var fieldName2 int64 + var fieldName3 int64 + var fieldName4 int64 + var fieldName5 int64 + var fieldName6 int64 + var fieldName7 int64 + var fieldName8 int64 + var fieldDecoder1 *structFieldDecoder + var fieldDecoder2 *structFieldDecoder + var fieldDecoder3 *structFieldDecoder + var fieldDecoder4 *structFieldDecoder + var fieldDecoder5 *structFieldDecoder + var fieldDecoder6 *structFieldDecoder + var fieldDecoder7 *structFieldDecoder + var fieldDecoder8 *structFieldDecoder + for fieldName, fieldDecoder := range fields { + fieldHash := calcHash(fieldName, ctx.caseSensitive()) + _, known := knownHash[fieldHash] + if known { + return &generalStructDecoder{typ, fields, false} + } + knownHash[fieldHash] = struct{}{} + if fieldName1 == 0 { + fieldName1 = fieldHash + fieldDecoder1 = fieldDecoder + } else if fieldName2 == 0 { + fieldName2 = fieldHash + fieldDecoder2 = fieldDecoder + } else if fieldName3 == 0 { + fieldName3 = fieldHash + fieldDecoder3 = fieldDecoder + } else if fieldName4 == 0 { + fieldName4 = fieldHash + fieldDecoder4 = fieldDecoder + } else if fieldName5 == 0 { + fieldName5 = fieldHash + fieldDecoder5 = fieldDecoder + } else if fieldName6 == 0 { + fieldName6 = fieldHash + fieldDecoder6 = fieldDecoder + } else if fieldName7 == 0 { + fieldName7 = fieldHash + fieldDecoder7 = fieldDecoder + } else { + fieldName8 = fieldHash + fieldDecoder8 = fieldDecoder + } + } + return &eightFieldsStructDecoder{typ, + fieldName1, fieldDecoder1, + fieldName2, fieldDecoder2, + fieldName3, fieldDecoder3, + fieldName4, fieldDecoder4, + fieldName5, fieldDecoder5, + fieldName6, fieldDecoder6, + fieldName7, fieldDecoder7, + fieldName8, fieldDecoder8} + case 9: + var fieldName1 int64 + var fieldName2 int64 + var fieldName3 int64 + var fieldName4 int64 + var fieldName5 int64 + var fieldName6 int64 + var fieldName7 int64 + var fieldName8 int64 + var fieldName9 int64 + var fieldDecoder1 *structFieldDecoder + var fieldDecoder2 *structFieldDecoder + var fieldDecoder3 *structFieldDecoder + var fieldDecoder4 *structFieldDecoder + var fieldDecoder5 *structFieldDecoder + var fieldDecoder6 *structFieldDecoder + var fieldDecoder7 *structFieldDecoder + var fieldDecoder8 *structFieldDecoder + var fieldDecoder9 *structFieldDecoder + for fieldName, fieldDecoder := range fields { + fieldHash := calcHash(fieldName, ctx.caseSensitive()) + _, known := knownHash[fieldHash] + if known { + return &generalStructDecoder{typ, fields, false} + } + knownHash[fieldHash] = struct{}{} + if fieldName1 == 0 { + fieldName1 = fieldHash + fieldDecoder1 = fieldDecoder + } else if fieldName2 == 0 { + fieldName2 = fieldHash + fieldDecoder2 = fieldDecoder + } else if fieldName3 == 0 { + fieldName3 = fieldHash + fieldDecoder3 = fieldDecoder + } else if fieldName4 == 0 { + fieldName4 = fieldHash + fieldDecoder4 = fieldDecoder + } else if fieldName5 == 0 { + fieldName5 = fieldHash + fieldDecoder5 = fieldDecoder + } else if fieldName6 == 0 { + fieldName6 = fieldHash + fieldDecoder6 = fieldDecoder + } else if fieldName7 == 0 { + fieldName7 = fieldHash + fieldDecoder7 = fieldDecoder + } else if fieldName8 == 0 { + fieldName8 = fieldHash + fieldDecoder8 = fieldDecoder + } else { + fieldName9 = fieldHash + fieldDecoder9 = fieldDecoder + } + } + return &nineFieldsStructDecoder{typ, + fieldName1, fieldDecoder1, + fieldName2, fieldDecoder2, + fieldName3, fieldDecoder3, + fieldName4, fieldDecoder4, + fieldName5, fieldDecoder5, + fieldName6, fieldDecoder6, + fieldName7, fieldDecoder7, + fieldName8, fieldDecoder8, + fieldName9, fieldDecoder9} + case 10: + var fieldName1 int64 + var fieldName2 int64 + var fieldName3 int64 + var fieldName4 int64 + var fieldName5 int64 + var fieldName6 int64 + var fieldName7 int64 + var fieldName8 int64 + var fieldName9 int64 + var fieldName10 int64 + var fieldDecoder1 *structFieldDecoder + var fieldDecoder2 *structFieldDecoder + var fieldDecoder3 *structFieldDecoder + var fieldDecoder4 *structFieldDecoder + var fieldDecoder5 *structFieldDecoder + var fieldDecoder6 *structFieldDecoder + var fieldDecoder7 *structFieldDecoder + var fieldDecoder8 *structFieldDecoder + var fieldDecoder9 *structFieldDecoder + var fieldDecoder10 *structFieldDecoder + for fieldName, fieldDecoder := range fields { + fieldHash := calcHash(fieldName, ctx.caseSensitive()) + _, known := knownHash[fieldHash] + if known { + return &generalStructDecoder{typ, fields, false} + } + knownHash[fieldHash] = struct{}{} + if fieldName1 == 0 { + fieldName1 = fieldHash + fieldDecoder1 = fieldDecoder + } else if fieldName2 == 0 { + fieldName2 = fieldHash + fieldDecoder2 = fieldDecoder + } else if fieldName3 == 0 { + fieldName3 = fieldHash + fieldDecoder3 = fieldDecoder + } else if fieldName4 == 0 { + fieldName4 = fieldHash + fieldDecoder4 = fieldDecoder + } else if fieldName5 == 0 { + fieldName5 = fieldHash + fieldDecoder5 = fieldDecoder + } else if fieldName6 == 0 { + fieldName6 = fieldHash + fieldDecoder6 = fieldDecoder + } else if fieldName7 == 0 { + fieldName7 = fieldHash + fieldDecoder7 = fieldDecoder + } else if fieldName8 == 0 { + fieldName8 = fieldHash + fieldDecoder8 = fieldDecoder + } else if fieldName9 == 0 { + fieldName9 = fieldHash + fieldDecoder9 = fieldDecoder + } else { + fieldName10 = fieldHash + fieldDecoder10 = fieldDecoder + } + } + return &tenFieldsStructDecoder{typ, + fieldName1, fieldDecoder1, + fieldName2, fieldDecoder2, + fieldName3, fieldDecoder3, + fieldName4, fieldDecoder4, + fieldName5, fieldDecoder5, + fieldName6, fieldDecoder6, + fieldName7, fieldDecoder7, + fieldName8, fieldDecoder8, + fieldName9, fieldDecoder9, + fieldName10, fieldDecoder10} + } + return &generalStructDecoder{typ, fields, false} +} + +type generalStructDecoder struct { + typ reflect2.Type + fields map[string]*structFieldDecoder + disallowUnknownFields bool +} + +func (decoder *generalStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.readObjectStart() { + return + } + var c byte + for c = ','; c == ','; c = iter.nextToken() { + decoder.decodeOneField(ptr, iter) + } + if iter.Error != nil && iter.Error != io.EOF { + iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) + } + if c != '}' { + iter.ReportError("struct Decode", `expect }, but found `+string([]byte{c})) + } +} + +func (decoder *generalStructDecoder) decodeOneField(ptr unsafe.Pointer, iter *Iterator) { + var field string + var fieldDecoder *structFieldDecoder + if iter.cfg.objectFieldMustBeSimpleString { + fieldBytes := iter.ReadStringAsSlice() + field = *(*string)(unsafe.Pointer(&fieldBytes)) + fieldDecoder = decoder.fields[field] + if fieldDecoder == nil && !iter.cfg.caseSensitive { + fieldDecoder = decoder.fields[strings.ToLower(field)] + } + } else { + field = iter.ReadString() + fieldDecoder = decoder.fields[field] + if fieldDecoder == nil && !iter.cfg.caseSensitive { + fieldDecoder = decoder.fields[strings.ToLower(field)] + } + } + if fieldDecoder == nil { + msg := "found unknown field: " + field + if decoder.disallowUnknownFields { + iter.ReportError("ReadObject", msg) + } + c := iter.nextToken() + if c != ':' { + iter.ReportError("ReadObject", "expect : after object field, but found "+string([]byte{c})) + } + iter.Skip() + return + } + c := iter.nextToken() + if c != ':' { + iter.ReportError("ReadObject", "expect : after object field, but found "+string([]byte{c})) + } + fieldDecoder.Decode(ptr, iter) +} + +type skipObjectDecoder struct { + typ reflect2.Type +} + +func (decoder *skipObjectDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + valueType := iter.WhatIsNext() + if valueType != ObjectValue && valueType != NilValue { + iter.ReportError("skipObjectDecoder", "expect object or null") + return + } + iter.Skip() +} + +type oneFieldStructDecoder struct { + typ reflect2.Type + fieldHash int64 + fieldDecoder *structFieldDecoder +} + +func (decoder *oneFieldStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.readObjectStart() { + return + } + for { + if iter.readFieldHash() == decoder.fieldHash { + decoder.fieldDecoder.Decode(ptr, iter) + } else { + iter.Skip() + } + if iter.isObjectEnd() { + break + } + } + if iter.Error != nil && iter.Error != io.EOF { + iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) + } +} + +type twoFieldsStructDecoder struct { + typ reflect2.Type + fieldHash1 int64 + fieldDecoder1 *structFieldDecoder + fieldHash2 int64 + fieldDecoder2 *structFieldDecoder +} + +func (decoder *twoFieldsStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.readObjectStart() { + return + } + for { + switch iter.readFieldHash() { + case decoder.fieldHash1: + decoder.fieldDecoder1.Decode(ptr, iter) + case decoder.fieldHash2: + decoder.fieldDecoder2.Decode(ptr, iter) + default: + iter.Skip() + } + if iter.isObjectEnd() { + break + } + } + if iter.Error != nil && iter.Error != io.EOF { + iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) + } +} + +type threeFieldsStructDecoder struct { + typ reflect2.Type + fieldHash1 int64 + fieldDecoder1 *structFieldDecoder + fieldHash2 int64 + fieldDecoder2 *structFieldDecoder + fieldHash3 int64 + fieldDecoder3 *structFieldDecoder +} + +func (decoder *threeFieldsStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.readObjectStart() { + return + } + for { + switch iter.readFieldHash() { + case decoder.fieldHash1: + decoder.fieldDecoder1.Decode(ptr, iter) + case decoder.fieldHash2: + decoder.fieldDecoder2.Decode(ptr, iter) + case decoder.fieldHash3: + decoder.fieldDecoder3.Decode(ptr, iter) + default: + iter.Skip() + } + if iter.isObjectEnd() { + break + } + } + if iter.Error != nil && iter.Error != io.EOF { + iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) + } +} + +type fourFieldsStructDecoder struct { + typ reflect2.Type + fieldHash1 int64 + fieldDecoder1 *structFieldDecoder + fieldHash2 int64 + fieldDecoder2 *structFieldDecoder + fieldHash3 int64 + fieldDecoder3 *structFieldDecoder + fieldHash4 int64 + fieldDecoder4 *structFieldDecoder +} + +func (decoder *fourFieldsStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.readObjectStart() { + return + } + for { + switch iter.readFieldHash() { + case decoder.fieldHash1: + decoder.fieldDecoder1.Decode(ptr, iter) + case decoder.fieldHash2: + decoder.fieldDecoder2.Decode(ptr, iter) + case decoder.fieldHash3: + decoder.fieldDecoder3.Decode(ptr, iter) + case decoder.fieldHash4: + decoder.fieldDecoder4.Decode(ptr, iter) + default: + iter.Skip() + } + if iter.isObjectEnd() { + break + } + } + if iter.Error != nil && iter.Error != io.EOF { + iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) + } +} + +type fiveFieldsStructDecoder struct { + typ reflect2.Type + fieldHash1 int64 + fieldDecoder1 *structFieldDecoder + fieldHash2 int64 + fieldDecoder2 *structFieldDecoder + fieldHash3 int64 + fieldDecoder3 *structFieldDecoder + fieldHash4 int64 + fieldDecoder4 *structFieldDecoder + fieldHash5 int64 + fieldDecoder5 *structFieldDecoder +} + +func (decoder *fiveFieldsStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.readObjectStart() { + return + } + for { + switch iter.readFieldHash() { + case decoder.fieldHash1: + decoder.fieldDecoder1.Decode(ptr, iter) + case decoder.fieldHash2: + decoder.fieldDecoder2.Decode(ptr, iter) + case decoder.fieldHash3: + decoder.fieldDecoder3.Decode(ptr, iter) + case decoder.fieldHash4: + decoder.fieldDecoder4.Decode(ptr, iter) + case decoder.fieldHash5: + decoder.fieldDecoder5.Decode(ptr, iter) + default: + iter.Skip() + } + if iter.isObjectEnd() { + break + } + } + if iter.Error != nil && iter.Error != io.EOF { + iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) + } +} + +type sixFieldsStructDecoder struct { + typ reflect2.Type + fieldHash1 int64 + fieldDecoder1 *structFieldDecoder + fieldHash2 int64 + fieldDecoder2 *structFieldDecoder + fieldHash3 int64 + fieldDecoder3 *structFieldDecoder + fieldHash4 int64 + fieldDecoder4 *structFieldDecoder + fieldHash5 int64 + fieldDecoder5 *structFieldDecoder + fieldHash6 int64 + fieldDecoder6 *structFieldDecoder +} + +func (decoder *sixFieldsStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.readObjectStart() { + return + } + for { + switch iter.readFieldHash() { + case decoder.fieldHash1: + decoder.fieldDecoder1.Decode(ptr, iter) + case decoder.fieldHash2: + decoder.fieldDecoder2.Decode(ptr, iter) + case decoder.fieldHash3: + decoder.fieldDecoder3.Decode(ptr, iter) + case decoder.fieldHash4: + decoder.fieldDecoder4.Decode(ptr, iter) + case decoder.fieldHash5: + decoder.fieldDecoder5.Decode(ptr, iter) + case decoder.fieldHash6: + decoder.fieldDecoder6.Decode(ptr, iter) + default: + iter.Skip() + } + if iter.isObjectEnd() { + break + } + } + if iter.Error != nil && iter.Error != io.EOF { + iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) + } +} + +type sevenFieldsStructDecoder struct { + typ reflect2.Type + fieldHash1 int64 + fieldDecoder1 *structFieldDecoder + fieldHash2 int64 + fieldDecoder2 *structFieldDecoder + fieldHash3 int64 + fieldDecoder3 *structFieldDecoder + fieldHash4 int64 + fieldDecoder4 *structFieldDecoder + fieldHash5 int64 + fieldDecoder5 *structFieldDecoder + fieldHash6 int64 + fieldDecoder6 *structFieldDecoder + fieldHash7 int64 + fieldDecoder7 *structFieldDecoder +} + +func (decoder *sevenFieldsStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.readObjectStart() { + return + } + for { + switch iter.readFieldHash() { + case decoder.fieldHash1: + decoder.fieldDecoder1.Decode(ptr, iter) + case decoder.fieldHash2: + decoder.fieldDecoder2.Decode(ptr, iter) + case decoder.fieldHash3: + decoder.fieldDecoder3.Decode(ptr, iter) + case decoder.fieldHash4: + decoder.fieldDecoder4.Decode(ptr, iter) + case decoder.fieldHash5: + decoder.fieldDecoder5.Decode(ptr, iter) + case decoder.fieldHash6: + decoder.fieldDecoder6.Decode(ptr, iter) + case decoder.fieldHash7: + decoder.fieldDecoder7.Decode(ptr, iter) + default: + iter.Skip() + } + if iter.isObjectEnd() { + break + } + } + if iter.Error != nil && iter.Error != io.EOF { + iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) + } +} + +type eightFieldsStructDecoder struct { + typ reflect2.Type + fieldHash1 int64 + fieldDecoder1 *structFieldDecoder + fieldHash2 int64 + fieldDecoder2 *structFieldDecoder + fieldHash3 int64 + fieldDecoder3 *structFieldDecoder + fieldHash4 int64 + fieldDecoder4 *structFieldDecoder + fieldHash5 int64 + fieldDecoder5 *structFieldDecoder + fieldHash6 int64 + fieldDecoder6 *structFieldDecoder + fieldHash7 int64 + fieldDecoder7 *structFieldDecoder + fieldHash8 int64 + fieldDecoder8 *structFieldDecoder +} + +func (decoder *eightFieldsStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.readObjectStart() { + return + } + for { + switch iter.readFieldHash() { + case decoder.fieldHash1: + decoder.fieldDecoder1.Decode(ptr, iter) + case decoder.fieldHash2: + decoder.fieldDecoder2.Decode(ptr, iter) + case decoder.fieldHash3: + decoder.fieldDecoder3.Decode(ptr, iter) + case decoder.fieldHash4: + decoder.fieldDecoder4.Decode(ptr, iter) + case decoder.fieldHash5: + decoder.fieldDecoder5.Decode(ptr, iter) + case decoder.fieldHash6: + decoder.fieldDecoder6.Decode(ptr, iter) + case decoder.fieldHash7: + decoder.fieldDecoder7.Decode(ptr, iter) + case decoder.fieldHash8: + decoder.fieldDecoder8.Decode(ptr, iter) + default: + iter.Skip() + } + if iter.isObjectEnd() { + break + } + } + if iter.Error != nil && iter.Error != io.EOF { + iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) + } +} + +type nineFieldsStructDecoder struct { + typ reflect2.Type + fieldHash1 int64 + fieldDecoder1 *structFieldDecoder + fieldHash2 int64 + fieldDecoder2 *structFieldDecoder + fieldHash3 int64 + fieldDecoder3 *structFieldDecoder + fieldHash4 int64 + fieldDecoder4 *structFieldDecoder + fieldHash5 int64 + fieldDecoder5 *structFieldDecoder + fieldHash6 int64 + fieldDecoder6 *structFieldDecoder + fieldHash7 int64 + fieldDecoder7 *structFieldDecoder + fieldHash8 int64 + fieldDecoder8 *structFieldDecoder + fieldHash9 int64 + fieldDecoder9 *structFieldDecoder +} + +func (decoder *nineFieldsStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.readObjectStart() { + return + } + for { + switch iter.readFieldHash() { + case decoder.fieldHash1: + decoder.fieldDecoder1.Decode(ptr, iter) + case decoder.fieldHash2: + decoder.fieldDecoder2.Decode(ptr, iter) + case decoder.fieldHash3: + decoder.fieldDecoder3.Decode(ptr, iter) + case decoder.fieldHash4: + decoder.fieldDecoder4.Decode(ptr, iter) + case decoder.fieldHash5: + decoder.fieldDecoder5.Decode(ptr, iter) + case decoder.fieldHash6: + decoder.fieldDecoder6.Decode(ptr, iter) + case decoder.fieldHash7: + decoder.fieldDecoder7.Decode(ptr, iter) + case decoder.fieldHash8: + decoder.fieldDecoder8.Decode(ptr, iter) + case decoder.fieldHash9: + decoder.fieldDecoder9.Decode(ptr, iter) + default: + iter.Skip() + } + if iter.isObjectEnd() { + break + } + } + if iter.Error != nil && iter.Error != io.EOF { + iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) + } +} + +type tenFieldsStructDecoder struct { + typ reflect2.Type + fieldHash1 int64 + fieldDecoder1 *structFieldDecoder + fieldHash2 int64 + fieldDecoder2 *structFieldDecoder + fieldHash3 int64 + fieldDecoder3 *structFieldDecoder + fieldHash4 int64 + fieldDecoder4 *structFieldDecoder + fieldHash5 int64 + fieldDecoder5 *structFieldDecoder + fieldHash6 int64 + fieldDecoder6 *structFieldDecoder + fieldHash7 int64 + fieldDecoder7 *structFieldDecoder + fieldHash8 int64 + fieldDecoder8 *structFieldDecoder + fieldHash9 int64 + fieldDecoder9 *structFieldDecoder + fieldHash10 int64 + fieldDecoder10 *structFieldDecoder +} + +func (decoder *tenFieldsStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + if !iter.readObjectStart() { + return + } + for { + switch iter.readFieldHash() { + case decoder.fieldHash1: + decoder.fieldDecoder1.Decode(ptr, iter) + case decoder.fieldHash2: + decoder.fieldDecoder2.Decode(ptr, iter) + case decoder.fieldHash3: + decoder.fieldDecoder3.Decode(ptr, iter) + case decoder.fieldHash4: + decoder.fieldDecoder4.Decode(ptr, iter) + case decoder.fieldHash5: + decoder.fieldDecoder5.Decode(ptr, iter) + case decoder.fieldHash6: + decoder.fieldDecoder6.Decode(ptr, iter) + case decoder.fieldHash7: + decoder.fieldDecoder7.Decode(ptr, iter) + case decoder.fieldHash8: + decoder.fieldDecoder8.Decode(ptr, iter) + case decoder.fieldHash9: + decoder.fieldDecoder9.Decode(ptr, iter) + case decoder.fieldHash10: + decoder.fieldDecoder10.Decode(ptr, iter) + default: + iter.Skip() + } + if iter.isObjectEnd() { + break + } + } + if iter.Error != nil && iter.Error != io.EOF { + iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) + } +} + +type structFieldDecoder struct { + field reflect2.StructField + fieldDecoder ValDecoder +} + +func (decoder *structFieldDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + fieldPtr := decoder.field.UnsafeGet(ptr) + decoder.fieldDecoder.Decode(fieldPtr, iter) + if iter.Error != nil && iter.Error != io.EOF { + iter.Error = fmt.Errorf("%s: %s", decoder.field.Name(), iter.Error.Error()) + } +} + +type stringModeStringDecoder struct { + elemDecoder ValDecoder + cfg *frozenConfig +} + +func (decoder *stringModeStringDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + decoder.elemDecoder.Decode(ptr, iter) + str := *((*string)(ptr)) + tempIter := decoder.cfg.BorrowIterator([]byte(str)) + defer decoder.cfg.ReturnIterator(tempIter) + *((*string)(ptr)) = tempIter.ReadString() +} + +type stringModeNumberDecoder struct { + elemDecoder ValDecoder +} + +func (decoder *stringModeNumberDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { + c := iter.nextToken() + if c != '"' { + iter.ReportError("stringModeNumberDecoder", `expect ", but found `+string([]byte{c})) + return + } + decoder.elemDecoder.Decode(ptr, iter) + if iter.Error != nil { + return + } + c = iter.readByte() + if c != '"' { + iter.ReportError("stringModeNumberDecoder", `expect ", but found `+string([]byte{c})) + return + } +} diff --git a/vendor/github.com/json-iterator/go/reflect_struct_encoder.go b/vendor/github.com/json-iterator/go/reflect_struct_encoder.go new file mode 100644 index 0000000..d0759cf --- /dev/null +++ b/vendor/github.com/json-iterator/go/reflect_struct_encoder.go @@ -0,0 +1,210 @@ +package jsoniter + +import ( + "fmt" + "github.com/modern-go/reflect2" + "io" + "reflect" + "unsafe" +) + +func encoderOfStruct(ctx *ctx, typ reflect2.Type) ValEncoder { + type bindingTo struct { + binding *Binding + toName string + ignored bool + } + orderedBindings := []*bindingTo{} + structDescriptor := describeStruct(ctx, typ) + for _, binding := range structDescriptor.Fields { + for _, toName := range binding.ToNames { + new := &bindingTo{ + binding: binding, + toName: toName, + } + for _, old := range orderedBindings { + if old.toName != toName { + continue + } + old.ignored, new.ignored = resolveConflictBinding(ctx.frozenConfig, old.binding, new.binding) + } + orderedBindings = append(orderedBindings, new) + } + } + if len(orderedBindings) == 0 { + return &emptyStructEncoder{} + } + finalOrderedFields := []structFieldTo{} + for _, bindingTo := range orderedBindings { + if !bindingTo.ignored { + finalOrderedFields = append(finalOrderedFields, structFieldTo{ + encoder: bindingTo.binding.Encoder.(*structFieldEncoder), + toName: bindingTo.toName, + }) + } + } + return &structEncoder{typ, finalOrderedFields} +} + +func createCheckIsEmpty(ctx *ctx, typ reflect2.Type) checkIsEmpty { + encoder := createEncoderOfNative(ctx, typ) + if encoder != nil { + return encoder + } + kind := typ.Kind() + switch kind { + case reflect.Interface: + return &dynamicEncoder{typ} + case reflect.Struct: + return &structEncoder{typ: typ} + case reflect.Array: + return &arrayEncoder{} + case reflect.Slice: + return &sliceEncoder{} + case reflect.Map: + return encoderOfMap(ctx, typ) + case reflect.Ptr: + return &OptionalEncoder{} + default: + return &lazyErrorEncoder{err: fmt.Errorf("unsupported type: %v", typ)} + } +} + +func resolveConflictBinding(cfg *frozenConfig, old, new *Binding) (ignoreOld, ignoreNew bool) { + newTagged := new.Field.Tag().Get(cfg.getTagKey()) != "" + oldTagged := old.Field.Tag().Get(cfg.getTagKey()) != "" + if newTagged { + if oldTagged { + if len(old.levels) > len(new.levels) { + return true, false + } else if len(new.levels) > len(old.levels) { + return false, true + } else { + return true, true + } + } else { + return true, false + } + } else { + if oldTagged { + return true, false + } + if len(old.levels) > len(new.levels) { + return true, false + } else if len(new.levels) > len(old.levels) { + return false, true + } else { + return true, true + } + } +} + +type structFieldEncoder struct { + field reflect2.StructField + fieldEncoder ValEncoder + omitempty bool +} + +func (encoder *structFieldEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + fieldPtr := encoder.field.UnsafeGet(ptr) + encoder.fieldEncoder.Encode(fieldPtr, stream) + if stream.Error != nil && stream.Error != io.EOF { + stream.Error = fmt.Errorf("%s: %s", encoder.field.Name(), stream.Error.Error()) + } +} + +func (encoder *structFieldEncoder) IsEmpty(ptr unsafe.Pointer) bool { + fieldPtr := encoder.field.UnsafeGet(ptr) + return encoder.fieldEncoder.IsEmpty(fieldPtr) +} + +func (encoder *structFieldEncoder) IsEmbeddedPtrNil(ptr unsafe.Pointer) bool { + isEmbeddedPtrNil, converted := encoder.fieldEncoder.(IsEmbeddedPtrNil) + if !converted { + return false + } + fieldPtr := encoder.field.UnsafeGet(ptr) + return isEmbeddedPtrNil.IsEmbeddedPtrNil(fieldPtr) +} + +type IsEmbeddedPtrNil interface { + IsEmbeddedPtrNil(ptr unsafe.Pointer) bool +} + +type structEncoder struct { + typ reflect2.Type + fields []structFieldTo +} + +type structFieldTo struct { + encoder *structFieldEncoder + toName string +} + +func (encoder *structEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.WriteObjectStart() + isNotFirst := false + for _, field := range encoder.fields { + if field.encoder.omitempty && field.encoder.IsEmpty(ptr) { + continue + } + if field.encoder.IsEmbeddedPtrNil(ptr) { + continue + } + if isNotFirst { + stream.WriteMore() + } + stream.WriteObjectField(field.toName) + field.encoder.Encode(ptr, stream) + isNotFirst = true + } + stream.WriteObjectEnd() + if stream.Error != nil && stream.Error != io.EOF { + stream.Error = fmt.Errorf("%v.%s", encoder.typ, stream.Error.Error()) + } +} + +func (encoder *structEncoder) IsEmpty(ptr unsafe.Pointer) bool { + return false +} + +type emptyStructEncoder struct { +} + +func (encoder *emptyStructEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.WriteEmptyObject() +} + +func (encoder *emptyStructEncoder) IsEmpty(ptr unsafe.Pointer) bool { + return false +} + +type stringModeNumberEncoder struct { + elemEncoder ValEncoder +} + +func (encoder *stringModeNumberEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + stream.writeByte('"') + encoder.elemEncoder.Encode(ptr, stream) + stream.writeByte('"') +} + +func (encoder *stringModeNumberEncoder) IsEmpty(ptr unsafe.Pointer) bool { + return encoder.elemEncoder.IsEmpty(ptr) +} + +type stringModeStringEncoder struct { + elemEncoder ValEncoder + cfg *frozenConfig +} + +func (encoder *stringModeStringEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { + tempStream := encoder.cfg.BorrowStream(nil) + defer encoder.cfg.ReturnStream(tempStream) + encoder.elemEncoder.Encode(ptr, tempStream) + stream.WriteString(string(tempStream.Buffer())) +} + +func (encoder *stringModeStringEncoder) IsEmpty(ptr unsafe.Pointer) bool { + return encoder.elemEncoder.IsEmpty(ptr) +} diff --git a/vendor/github.com/json-iterator/go/stream.go b/vendor/github.com/json-iterator/go/stream.go new file mode 100644 index 0000000..17662fd --- /dev/null +++ b/vendor/github.com/json-iterator/go/stream.go @@ -0,0 +1,211 @@ +package jsoniter + +import ( + "io" +) + +// stream is a io.Writer like object, with JSON specific write functions. +// Error is not returned as return value, but stored as Error member on this stream instance. +type Stream struct { + cfg *frozenConfig + out io.Writer + buf []byte + Error error + indention int + Attachment interface{} // open for customized encoder +} + +// NewStream create new stream instance. +// cfg can be jsoniter.ConfigDefault. +// out can be nil if write to internal buffer. +// bufSize is the initial size for the internal buffer in bytes. +func NewStream(cfg API, out io.Writer, bufSize int) *Stream { + return &Stream{ + cfg: cfg.(*frozenConfig), + out: out, + buf: make([]byte, 0, bufSize), + Error: nil, + indention: 0, + } +} + +// Pool returns a pool can provide more stream with same configuration +func (stream *Stream) Pool() StreamPool { + return stream.cfg +} + +// Reset reuse this stream instance by assign a new writer +func (stream *Stream) Reset(out io.Writer) { + stream.out = out + stream.buf = stream.buf[:0] +} + +// Available returns how many bytes are unused in the buffer. +func (stream *Stream) Available() int { + return cap(stream.buf) - len(stream.buf) +} + +// Buffered returns the number of bytes that have been written into the current buffer. +func (stream *Stream) Buffered() int { + return len(stream.buf) +} + +// Buffer if writer is nil, use this method to take the result +func (stream *Stream) Buffer() []byte { + return stream.buf +} + +// SetBuffer allows to append to the internal buffer directly +func (stream *Stream) SetBuffer(buf []byte) { + stream.buf = buf +} + +// Write writes the contents of p into the buffer. +// It returns the number of bytes written. +// If nn < len(p), it also returns an error explaining +// why the write is short. +func (stream *Stream) Write(p []byte) (nn int, err error) { + stream.buf = append(stream.buf, p...) + if stream.out != nil { + nn, err = stream.out.Write(stream.buf) + stream.buf = stream.buf[nn:] + return + } + return len(p), nil +} + +// WriteByte writes a single byte. +func (stream *Stream) writeByte(c byte) { + stream.buf = append(stream.buf, c) +} + +func (stream *Stream) writeTwoBytes(c1 byte, c2 byte) { + stream.buf = append(stream.buf, c1, c2) +} + +func (stream *Stream) writeThreeBytes(c1 byte, c2 byte, c3 byte) { + stream.buf = append(stream.buf, c1, c2, c3) +} + +func (stream *Stream) writeFourBytes(c1 byte, c2 byte, c3 byte, c4 byte) { + stream.buf = append(stream.buf, c1, c2, c3, c4) +} + +func (stream *Stream) writeFiveBytes(c1 byte, c2 byte, c3 byte, c4 byte, c5 byte) { + stream.buf = append(stream.buf, c1, c2, c3, c4, c5) +} + +// Flush writes any buffered data to the underlying io.Writer. +func (stream *Stream) Flush() error { + if stream.out == nil { + return nil + } + if stream.Error != nil { + return stream.Error + } + n, err := stream.out.Write(stream.buf) + if err != nil { + if stream.Error == nil { + stream.Error = err + } + return err + } + stream.buf = stream.buf[n:] + return nil +} + +// WriteRaw write string out without quotes, just like []byte +func (stream *Stream) WriteRaw(s string) { + stream.buf = append(stream.buf, s...) +} + +// WriteNil write null to stream +func (stream *Stream) WriteNil() { + stream.writeFourBytes('n', 'u', 'l', 'l') +} + +// WriteTrue write true to stream +func (stream *Stream) WriteTrue() { + stream.writeFourBytes('t', 'r', 'u', 'e') +} + +// WriteFalse write false to stream +func (stream *Stream) WriteFalse() { + stream.writeFiveBytes('f', 'a', 'l', 's', 'e') +} + +// WriteBool write true or false into stream +func (stream *Stream) WriteBool(val bool) { + if val { + stream.WriteTrue() + } else { + stream.WriteFalse() + } +} + +// WriteObjectStart write { with possible indention +func (stream *Stream) WriteObjectStart() { + stream.indention += stream.cfg.indentionStep + stream.writeByte('{') + stream.writeIndention(0) +} + +// WriteObjectField write "field": with possible indention +func (stream *Stream) WriteObjectField(field string) { + stream.WriteString(field) + if stream.indention > 0 { + stream.writeTwoBytes(':', ' ') + } else { + stream.writeByte(':') + } +} + +// WriteObjectEnd write } with possible indention +func (stream *Stream) WriteObjectEnd() { + stream.writeIndention(stream.cfg.indentionStep) + stream.indention -= stream.cfg.indentionStep + stream.writeByte('}') +} + +// WriteEmptyObject write {} +func (stream *Stream) WriteEmptyObject() { + stream.writeByte('{') + stream.writeByte('}') +} + +// WriteMore write , with possible indention +func (stream *Stream) WriteMore() { + stream.writeByte(',') + stream.writeIndention(0) + stream.Flush() +} + +// WriteArrayStart write [ with possible indention +func (stream *Stream) WriteArrayStart() { + stream.indention += stream.cfg.indentionStep + stream.writeByte('[') + stream.writeIndention(0) +} + +// WriteEmptyArray write [] +func (stream *Stream) WriteEmptyArray() { + stream.writeTwoBytes('[', ']') +} + +// WriteArrayEnd write ] with possible indention +func (stream *Stream) WriteArrayEnd() { + stream.writeIndention(stream.cfg.indentionStep) + stream.indention -= stream.cfg.indentionStep + stream.writeByte(']') +} + +func (stream *Stream) writeIndention(delta int) { + if stream.indention == 0 { + return + } + stream.writeByte('\n') + toWrite := stream.indention - delta + for i := 0; i < toWrite; i++ { + stream.buf = append(stream.buf, ' ') + } +} diff --git a/vendor/github.com/json-iterator/go/stream_float.go b/vendor/github.com/json-iterator/go/stream_float.go new file mode 100644 index 0000000..f318d2c --- /dev/null +++ b/vendor/github.com/json-iterator/go/stream_float.go @@ -0,0 +1,94 @@ +package jsoniter + +import ( + "math" + "strconv" +) + +var pow10 []uint64 + +func init() { + pow10 = []uint64{1, 10, 100, 1000, 10000, 100000, 1000000} +} + +// WriteFloat32 write float32 to stream +func (stream *Stream) WriteFloat32(val float32) { + abs := math.Abs(float64(val)) + fmt := byte('f') + // Note: Must use float32 comparisons for underlying float32 value to get precise cutoffs right. + if abs != 0 { + if float32(abs) < 1e-6 || float32(abs) >= 1e21 { + fmt = 'e' + } + } + stream.buf = strconv.AppendFloat(stream.buf, float64(val), fmt, -1, 32) +} + +// WriteFloat32Lossy write float32 to stream with ONLY 6 digits precision although much much faster +func (stream *Stream) WriteFloat32Lossy(val float32) { + if val < 0 { + stream.writeByte('-') + val = -val + } + if val > 0x4ffffff { + stream.WriteFloat32(val) + return + } + precision := 6 + exp := uint64(1000000) // 6 + lval := uint64(float64(val)*float64(exp) + 0.5) + stream.WriteUint64(lval / exp) + fval := lval % exp + if fval == 0 { + return + } + stream.writeByte('.') + for p := precision - 1; p > 0 && fval < pow10[p]; p-- { + stream.writeByte('0') + } + stream.WriteUint64(fval) + for stream.buf[len(stream.buf)-1] == '0' { + stream.buf = stream.buf[:len(stream.buf)-1] + } +} + +// WriteFloat64 write float64 to stream +func (stream *Stream) WriteFloat64(val float64) { + abs := math.Abs(val) + fmt := byte('f') + // Note: Must use float32 comparisons for underlying float32 value to get precise cutoffs right. + if abs != 0 { + if abs < 1e-6 || abs >= 1e21 { + fmt = 'e' + } + } + stream.buf = strconv.AppendFloat(stream.buf, float64(val), fmt, -1, 64) +} + +// WriteFloat64Lossy write float64 to stream with ONLY 6 digits precision although much much faster +func (stream *Stream) WriteFloat64Lossy(val float64) { + if val < 0 { + stream.writeByte('-') + val = -val + } + if val > 0x4ffffff { + stream.WriteFloat64(val) + return + } + precision := 6 + exp := uint64(1000000) // 6 + lval := uint64(val*float64(exp) + 0.5) + stream.WriteUint64(lval / exp) + fval := lval % exp + if fval == 0 { + return + } + stream.writeByte('.') + for p := precision - 1; p > 0 && fval < pow10[p]; p-- { + stream.writeByte('0') + } + stream.WriteUint64(fval) + for stream.buf[len(stream.buf)-1] == '0' { + stream.buf = stream.buf[:len(stream.buf)-1] + } +} diff --git a/vendor/github.com/json-iterator/go/stream_int.go b/vendor/github.com/json-iterator/go/stream_int.go new file mode 100644 index 0000000..d1059ee --- /dev/null +++ b/vendor/github.com/json-iterator/go/stream_int.go @@ -0,0 +1,190 @@ +package jsoniter + +var digits []uint32 + +func init() { + digits = make([]uint32, 1000) + for i := uint32(0); i < 1000; i++ { + digits[i] = (((i / 100) + '0') << 16) + ((((i / 10) % 10) + '0') << 8) + i%10 + '0' + if i < 10 { + digits[i] += 2 << 24 + } else if i < 100 { + digits[i] += 1 << 24 + } + } +} + +func writeFirstBuf(space []byte, v uint32) []byte { + start := v >> 24 + if start == 0 { + space = append(space, byte(v>>16), byte(v>>8)) + } else if start == 1 { + space = append(space, byte(v>>8)) + } + space = append(space, byte(v)) + return space +} + +func writeBuf(buf []byte, v uint32) []byte { + return append(buf, byte(v>>16), byte(v>>8), byte(v)) +} + +// WriteUint8 write uint8 to stream +func (stream *Stream) WriteUint8(val uint8) { + stream.buf = writeFirstBuf(stream.buf, digits[val]) +} + +// WriteInt8 write int8 to stream +func (stream *Stream) WriteInt8(nval int8) { + var val uint8 + if nval < 0 { + val = uint8(-nval) + stream.buf = append(stream.buf, '-') + } else { + val = uint8(nval) + } + stream.buf = writeFirstBuf(stream.buf, digits[val]) +} + +// WriteUint16 write uint16 to stream +func (stream *Stream) WriteUint16(val uint16) { + q1 := val / 1000 + if q1 == 0 { + stream.buf = writeFirstBuf(stream.buf, digits[val]) + return + } + r1 := val - q1*1000 + stream.buf = writeFirstBuf(stream.buf, digits[q1]) + stream.buf = writeBuf(stream.buf, digits[r1]) + return +} + +// WriteInt16 write int16 to stream +func (stream *Stream) WriteInt16(nval int16) { + var val uint16 + if nval < 0 { + val = uint16(-nval) + stream.buf = append(stream.buf, '-') + } else { + val = uint16(nval) + } + stream.WriteUint16(val) +} + +// WriteUint32 write uint32 to stream +func (stream *Stream) WriteUint32(val uint32) { + q1 := val / 1000 + if q1 == 0 { + stream.buf = writeFirstBuf(stream.buf, digits[val]) + return + } + r1 := val - q1*1000 + q2 := q1 / 1000 + if q2 == 0 { + stream.buf = writeFirstBuf(stream.buf, digits[q1]) + stream.buf = writeBuf(stream.buf, digits[r1]) + return + } + r2 := q1 - q2*1000 + q3 := q2 / 1000 + if q3 == 0 { + stream.buf = writeFirstBuf(stream.buf, digits[q2]) + } else { + r3 := q2 - q3*1000 + stream.buf = append(stream.buf, byte(q3+'0')) + stream.buf = writeBuf(stream.buf, digits[r3]) + } + stream.buf = writeBuf(stream.buf, digits[r2]) + stream.buf = writeBuf(stream.buf, digits[r1]) +} + +// WriteInt32 write int32 to stream +func (stream *Stream) WriteInt32(nval int32) { + var val uint32 + if nval < 0 { + val = uint32(-nval) + stream.buf = append(stream.buf, '-') + } else { + val = uint32(nval) + } + stream.WriteUint32(val) +} + +// WriteUint64 write uint64 to stream +func (stream *Stream) WriteUint64(val uint64) { + q1 := val / 1000 + if q1 == 0 { + stream.buf = writeFirstBuf(stream.buf, digits[val]) + return + } + r1 := val - q1*1000 + q2 := q1 / 1000 + if q2 == 0 { + stream.buf = writeFirstBuf(stream.buf, digits[q1]) + stream.buf = writeBuf(stream.buf, digits[r1]) + return + } + r2 := q1 - q2*1000 + q3 := q2 / 1000 + if q3 == 0 { + stream.buf = writeFirstBuf(stream.buf, digits[q2]) + stream.buf = writeBuf(stream.buf, digits[r2]) + stream.buf = writeBuf(stream.buf, digits[r1]) + return + } + r3 := q2 - q3*1000 + q4 := q3 / 1000 + if q4 == 0 { + stream.buf = writeFirstBuf(stream.buf, digits[q3]) + stream.buf = writeBuf(stream.buf, digits[r3]) + stream.buf = writeBuf(stream.buf, digits[r2]) + stream.buf = writeBuf(stream.buf, digits[r1]) + return + } + r4 := q3 - q4*1000 + q5 := q4 / 1000 + if q5 == 0 { + stream.buf = writeFirstBuf(stream.buf, digits[q4]) + stream.buf = writeBuf(stream.buf, digits[r4]) + stream.buf = writeBuf(stream.buf, digits[r3]) + stream.buf = writeBuf(stream.buf, digits[r2]) + stream.buf = writeBuf(stream.buf, digits[r1]) + return + } + r5 := q4 - q5*1000 + q6 := q5 / 1000 + if q6 == 0 { + stream.buf = writeFirstBuf(stream.buf, digits[q5]) + } else { + stream.buf = writeFirstBuf(stream.buf, digits[q6]) + r6 := q5 - q6*1000 + stream.buf = writeBuf(stream.buf, digits[r6]) + } + stream.buf = writeBuf(stream.buf, digits[r5]) + stream.buf = writeBuf(stream.buf, digits[r4]) + stream.buf = writeBuf(stream.buf, digits[r3]) + stream.buf = writeBuf(stream.buf, digits[r2]) + stream.buf = writeBuf(stream.buf, digits[r1]) +} + +// WriteInt64 write int64 to stream +func (stream *Stream) WriteInt64(nval int64) { + var val uint64 + if nval < 0 { + val = uint64(-nval) + stream.buf = append(stream.buf, '-') + } else { + val = uint64(nval) + } + stream.WriteUint64(val) +} + +// WriteInt write int to stream +func (stream *Stream) WriteInt(val int) { + stream.WriteInt64(int64(val)) +} + +// WriteUint write uint to stream +func (stream *Stream) WriteUint(val uint) { + stream.WriteUint64(uint64(val)) +} diff --git a/vendor/github.com/json-iterator/go/stream_str.go b/vendor/github.com/json-iterator/go/stream_str.go new file mode 100644 index 0000000..54c2ba0 --- /dev/null +++ b/vendor/github.com/json-iterator/go/stream_str.go @@ -0,0 +1,372 @@ +package jsoniter + +import ( + "unicode/utf8" +) + +// htmlSafeSet holds the value true if the ASCII character with the given +// array position can be safely represented inside a JSON string, embedded +// inside of HTML